"use strict";this.default_kevlar_base=this.default_kevlar_base||{};(function(_){var window=this;
try{
_._F_toggles_initialize=function(S){(typeof globalThis!=="undefined"?globalThis:typeof self!=="undefined"?self:this)._F_toggles_default_kevlar_base=S||[]};
(0,_._F_toggles_initialize)([0x10000000, 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
*/
/*


 The MIT License (MIT)

 Copyright (c) 2015-present Dan Abramov

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

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

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

 The MIT License (MIT)

 Copyright (c) 2016 Denis Rul

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

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

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

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

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

 Copyright Google Inc. All Rights Reserved.

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

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

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

Copyright (c) 2018 The Polymer Project Authors. All rights reserved.
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
Code distributed by Google as part of the polymer project is also
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
*/
var pr,SXX,Lqu,YR,Iu,MwE,Kr,jw,rN,he,Iwe,dGr,XE,TNu,Wqe,gN,Hrw,Jew,yee,Ym,juq,req,hdw,XkG,Ped,QH,nc,hq,RP,gRG,FI,uEX,Pw,sl,fc,lwk,mE,oP,fww,mGk,oRr,cw,$Gw,pE,irw,LE,vRX,VL,NNX,Aer,pwu,st,Utd,YlX,LEN,MQX,IdR,Zs,twd,Fn,ceG,Sld,Hcr,zee,QPq,fE,nmE,Jqk,yqw,KEE,jPu,rqk,ReE,NY,Ptq,sPR,gmR,adw,fdG,qY,Su,Ctw,vme,YA,$td,qlE,Nmr,Mh,Bmw,L8,bcq,dZ,D3,zD,I5,n8,cqe,Aqw,tQe,b4,Std,pPw,UYE,Loq,YtN,FO,MXq,IsN,y8,VXR,TiR,gZ,OEN,zAR,l4,Kow,kqd,bEw,jTq,rdN,PJd,RAq,xA,m7,sTG,g5E,unw,fsX,o5X,Adw,pYk,dhk,MJ,TZw,O8d,WE,kq,
HE,zl,Q2,hA,Fq,Xq,Jik,lx,K7G,riG,$q,ix,h6e,BE,qJ,AA,tA,F7G,XYE,P4d,Z8w,s5w,e6G,gAG,uOR,wYk,a3X,Lu,Ya,f3X,C4X,xhG,mhX,EAu,oAr,ka,$hE,H4,Do,z7,Q9,J3,NZe,y9,qHw,pEu,r3,UJG,Y3u,L1G,h3,MOG,IOX,RO,P4,Tce,sV,klG,HhX,eo,zfe,DJX,QKe,nqd,JAX,yAw,w3,K1w,bhw,lV,jKw,rAG,aO,Cu,xa,EV,Glr,Rfu,hfu,mP,XEG,Pxq,Zhr,$a,N2,B4,q2,A3,t3,c4,sKe,efe,gqk,uqr,wEd,lOd,aOw,fOR,Cxd,xJG,EqE,p_,mJG,oqw,L_,vqr,IY,dO,$Je,Bcw,q3k,AAq,cAw,SVw,p4e,Mod,IoG,d2E,Voq,T3E,WPu,OuN,zze,Wi,QOe,naw,J3e,y3N,KPX,buw,r3k,w4N,low,aow,CVk,x2X,J9,Ear,
bI,iuG,N3u,B3e,qVk,A3w,tok,c3E,SFw,RY,UaE,vaR,YFw,LJd,Mbw,IDE,dar,VbE,TOX,WJq,O_N,DaN,H_w,nEX,zHe,QYd,KJe,b_u,jYw,J9G,GNE,y9r,RHe,xE,FJX,EF,oY,Xie,Z_u,sYw,upR,vEE,lDe,wiR,fDX,xae,aDw,BON,i_G,qFG,A9q,tbk,c9d,Srq,Udu,pmE,YrN,LzG,M$k,I1e,V$w,WzG,O2r,krk,Ddq,H2N,RRN,A9,FzN,P9w,Z2X,sWG,eRk,gYk,wmN,l1R,a1w,L2,Md,f1q,oYd,Tr,Wm,N5u,B5q,Mkd,s8N,zr,gjw,agR,wzN,lgG,b9,fgk,Coe,Ejk,mxw,ojX,vjX,$xE,iSe,Ndq,Gr,qIX,tkw,Ayk,pQw,sr,u9,Y0w,Lcr,MnE,ICE,dZw,VnG,WcN,k2X,OUE,i9,Bm,qd,tY,hwX,RwG,cm,FcG,XQe,UI,ZUN,Pbw,Cbr,
xZw,Esk,ose,N7q,q0G,AWE,tnN,cWw,pSq,Ygw,LYR,I8,V9e,OAw,kpG,HAr,DTR,z8R,WYE,dTe,I5R,Vk,M9G,Qxd,JIG,jxq,KYe,OI,GpG,R8u,FYu,XSE,Piw,zV,ZAE,e8X,sxN,gUN,wSw,Jy,oUw,$TG,NEN,qgX,AId,cIw,rd,hy,GV,YPd,t9E,Ljw,XG,Vae,sI,ek,Ofr,Dzw,QtG,n7q,JEG,gd,yER,KjG,bfe,rEq,GMr,hCe,RCw,XAd,wd,Pge,ZfX,a8,EI,g7e,uyG,wAG,o8,fuR,Cgr,E7u,cz,N6X,B6E,qPG,AEG,tau,Ys,LU,MZ,Id,pHN,Ve,UWE,Y9q,Lew,MPX,TKX,Ovw,kYw,Wew,WQ,Hvw,nvR,O0,QVE,JUd,DWG,yUG,HQ,bvw,jVw,rUe,GYw,RYX,hYk,Fee,ZvE,XHX,eYG,fPd,xWG,mWw,vve,NKe,ivw,$Ww,BKu,AUR,cUG,tPw,
SRr,U0k,YRX,L$R,Rd,d0G,Ice,VFq,TVE,XM,PQ,W$w,kTG,D0N,nuw,yrE,JrX,BQ,K$w,HZE,F$e,Xru,PNw,S9,ZZN,ekr,wrq,fcr,acu,m0d,ouR,vud,$0G,NVw,crE,BVw,ArG,tFe,S$E,pvG,Y$u,UUG,Mmu,Lae,HS,ILG,Vmr,TnG,H9u,bi,j9,DUe,z0G,Gp,y8X,Xu,PS,Z5,r8r,sg,R0G,ui,Fad,Xvd,PLN,Z9q,ax,s9u,gnk,u$N,lLE,fLd,EnR,onN,ii,vnd,$Ud,i9e,Nne,BnR,q$R,A8w,tmd,qT,pdX,UwG,YhG,Lpw,Mtw,I9R,dwr,VtG,TBe,Wpe,OpG,kIr,Hpe,Lf,hUG,RUe,Mz,It,d6,FpE,XdR,P5e,Zpr,s2X,eUw,gdr,f9e,C5N,xwR,Ede,mwN,HA,Q0,nf,JE,bg,ja,r6,vdG,hE,ipN,Rt,NBE,BBr,Fy,qhq,AaR,ttX,d9r,
Tte,D9X,JZN,nlw,V4G,yZE,j4k,l4w,XJe,Ele,ZKk,x9w,m9e,g6,vlN,w6,iKw,Ntd,qcw,AZk,t4d,S1d,ff,UIk,Y1w,LFG,Mvq,IGX,dIe,Vvr,pBe,OHX,kvd,HHG,x7,yBw,KFN,JBr,jSk,rBN,hFw,RFd,Gvw,gMe,wBe,aGw,CEd,cA,$Id,vMq,ABG,cBG,S2G,pTE,Usq,Y2q,L_G,VR,H3u,zqX,O3d,W_u,Dsw,Ilw,nkN,XTR,K_R,b3d,jsk,flw,xsE,ale,i3k,llN,Mpu,$su,yFk,F_w,CKw,Qsq,Vpu,dsw,T9X,k4R,wTe,GY,VVE,Wsq,Oze,kee,Hze,jfX,XXE,PTe,lQ,sfR,uiw,f$N,a$G,xmR,EXE,vXw,oXE,$mw,iQ,izq,Nxe,qWw,Bxw,NW,UFE,p7R,Soq,ItG,You,dFw,MMN,VMe,qW,TYe,HsE,Ose,kwX,zow,Qyw,J7G,SF,bsr,y7e,
jyG,Roq,FhG,ZsN,eow,LZ,M0,ltG,atr,IH,dV,ftk,VV,TT,CZE,Wr,xFe,OR,ELE,mFN,Hr,oLu,vLq,$FR,isk,NYR,qoR,BYG,tME,pGw,SKu,UBG,YKw,A7e,LLR,dBE,IeX,c7N,VSE,T8E,Jr,WLN,kyw,O6e,H6r,zlN,nOd,QFX,Jnq,KZ,KLk,b6k,ynN,rnX,Gyr,hle,P6q,elw,aeE,EOE,bN,vOR,$Be,jF,i6E,RH,Fj,cnR,GT,Zc,SEX,pIR,YEw,LUN,Ipu,VJG,TbG,WUk,OJR,DPw,yle,n9X,HJk,KUu,bJw,uN,Jlu,jAq,aH,rlR,GhG,hjr,Rjw,ZJG,FUw,POr,uNG,wIw,xPR,COw,o9w,qEe,Alk,clw,pOG,U_e,L6d,MCG,IaR,VCR,TIE,W6r,H4r,n1k,JxG,D_X,K6E,jpe,b4r,yxE,rxR,hOr,ROw,F6E,XOG,PGe,q0,Ar,Sm,U$,eON,
g1w,wOk,fae,Yn,L9,CGG,MU,m_e,o1w,v1q,dn,qpu,SxG,UOe,YxN,L5q,MRr,INq,T1k,T0,W5w,HTk,Wv,DOG,nCX,Jku,ykN,Qae,hye,XgE,Rye,PYw,eyw,uUG,lNe,xOe,CYe,vCq,z0,$Ok,iTe,n9,N1G,J8,B1R,qxE,Akd,ckw,tRG,SCw,pDw,UAE,YCX,WCw,kXk,DAw,H0e,dAE,Mcu,Q3w,JHN,rHe,GXw,FCG,gZN,wDG,jm,lxw,fxE,C1k,EZw,$Ar,NXE,qCN,AHq,tce,cHw,Lfe,SDq,Vlw,TMu,OWr,h8,HWr,DNw,zBr,QwG,nxG,J2X,y2G,bWk,jww,Pv,r2e,GBG,Ffu,s$,RBG,PRG,gxr,gn,u8G,w3G,lSe,CRe,xNr,aSd,mNN,iWq,NMw,BMk,C9,qDq,SBR,pFe,o9,LnG,UCr,YBG,I7R,VYe,Toe,HXR,QEX,zLk,DCE,ngE,yse,Knr,RLr,
bXr,Fnk,ZXE,XFr,l7N,Chw,EgG,ogR,csN,p1G,UVu,I0w,V0w,GI,gB,DVG,JcG,nru,KZX,bDu,rcR,jqk,GAq,hxX,u5,z$q,zxq,ycR,Qqd,sh,vd,X1G,Pae,gru,ufd,w1q,l0E,a0X,Nw,f0d,Bd,Caw,xVe,Ere,mVq,ta,orN,iDq,Blw,qwr,YbR,Mdw,IFX,dDG,TPw,Wlr,dt,kxE,HCR,DDk,zDk,QXq,nir,yKu,bCG,rKN,Gxr,dvG,MiG,ViG,OLr,kCe,D4,HLX,Dve,zKG,JhN,KwX,yhe,jUw,GCR,yr,RKX,Fww,hKN,X$R,Psd,sUq,gzd,eKd,u4G,ZLN,w$G,lEG,aEX,fEq,Csu,xvw,Eze,mvw,ozd,iLe,$vw,NHu,qSX,BHE,KK,Ahw,SOR,Mqd,tiq,IHe,dcr,Vqd,TeG,nSN,y1E,KSw,jgE,r1N,e4,FSR,sgX,gSX,gt,aHw,lHE,fHG,lM,
CBq,xcG,ESw,oSE,vSr,$ce,iQR,Beq,qOG,IrG,UuE,LtX,V8q,due,T_u,WtN,kEe,DuE,Q6q,J4N,Xtw,s6R,gVE,uze,wtG,lrR,are,Clw,xuG,oVR,vVR,$uE,iaN,N_E,B_u,q8u,A4e,Szd,LVE,q9,AZ,tZ,cJ,MLG,U1,dHw,QlX,jlr,KVw,fqX,CjR,xHd,TkX,z_r,ksG,mHw,o2w,v2u,JjR,i$q,BkX,Ajd,Sjw,pVd,DG,nH,JB,VNk,doG,kbr,HYe,jnN,Gbe,RZE,FgG,ZYu,eZr,snu,wVk,amN,vKG,mou,Czk,oKG,xoq,$or,qjE,gz,Mjk,Ubq,dbq,Vjr,WxE,Oje,wz,kWw,zWw,ntR,J6N,Kxw,y6k,fH,RWN,vB,XLq,PcN,iE,ZjE,skX,eWX,gtw,uhE,wLw,lhN,ahR,fhk,CcE,xbw,Etw,mbd,otr,vtu,NI,$bk,iju,NrE,BrE,qsw,A6w,
tjw,c6k,SQd,pWd,UKe,YQw,qI,MWX,dKG,Tsr,kFX,zIG,QrE,nBu,yOk,b7G,jrR,rOE,Is,XWw,RId,PAd,Z7w,srR,uPN,wWw,lkR,fkX,JF,xKw,Qd,mKd,oBN,yd,vBR,$KR,i7u,NsG,bK,tWX,SLw,MHk,LQR,dfR,VHe,XB,Tae,WQw,kQX,Dfq,zbN,nPw,JQw,Htw,yQw,GQG,Xhq,PSR,PT,Ztk,sme,lbq,ebN,uAr,whw,mfq,fbX,oPw,$fe,NaG,BaG,qLX,AQe,tHE,cQE,pcN,UnE,Yvr,L0e,Mew,dnq,TSX,k3N,QRd,yue,bgG,G3u,lK,hPw,RPe,F0d,Xcd,PXX,sRw,ePG,gyw,ube,wcu,l6u,a6X,f6E,CXE,xnw,EyR,oyE,mnE,igr,BSw,C3,qvu,cue,tek,E2,UQG,Yiw,dQk,Wik,VDd,IRw,Hmq,kgG,JgX,DQd,iK,Q0q,hpq,bmE,j0e,rgw,
Ggd,Rpw,Xnu,Fiw,Ns,BT,wnR,ZmE,uWN,g0E,s0N,epk,fRR,xQX,mQq,E0E,imN,$Qe,qie,Agu,cgE,S6w,tDd,pyr,Y6R,UrX,M7r,V7q,YX,T$G,W3k,HPG,JRw,GJG,Mm,Rmw,ZPw,uQE,g_E,sBe,emq,WX,fMw,wyE,lMw,C8G,E_w,xrr,v_w,$rd,N$X,B$e,q6e,ARd,t7q,SMq,pxG,rx,YMe,hS,Luw,VxG,TJG,PX,Wuk,kKe,bIw,uT,QJX,Kuw,neq,JLX,hSw,RSu,GKr,Fud,Xxr,eSw,PWw,geE,u6q,lT,lBN,aBq,fBw,wxk,xkr,CWe,af,veG,txw,cLG,Snw,p8X,UgR,Ynd,dgX,Mye,IVX,Lvd,Tqk,kPN,z4X,QIq,J5G,bbk,y5r,Kve,jIw,GPd,h4w,R4G,Fve,X8R,PFE,sId,iT,e4X,w8u,uYe,aVd,lVX,fVd,CFk,xgk,Nm,mgE,SYX,tyR,
YYN,LKw,WKX,ORw,kHN,HRN,DXR,zhe,JPd,yPw,KKr,bRX,GHr,hhG,Rhd,FKu,XqR,PHw,ZRe,sew,ehG,g6w,wqe,lKN,aKw,xXu,mXG,iRk,$Xw,v6q,o6X,APR,BQX,cPG,SGw,pew,YGR,Lrw,MAd,H7,IYe,d1R,VAq,knN,TwG,HNk,WrE,D1r,ns,z5R,QGk,nTX,ONw,JJw,rJG,GnX,h5w,Ks,R5w,Frd,Xew,PfR,ZNw,sGe,gTu,uHd,wew,lYE,Cfw,fYE,vTk,aYe,jM,$1u,x1w,oTw,Bwu,AJe,UjX,SNe,p9e,cJk,tAu,P7,YNk,Msu,IAE,djN,Vsu,TTN,DjR,Okw,W9k,kcE,hrR,r0R,Hku,jZw,erw,gFw,umr,w9w,lAr,aAX,fAr,EFG,oFk,$jk,NTr,BTr,qNk,SAw,c0G,p0G,YAw,qF,IvE,dMr,V5E,Tve,t7,c7,kmw,zvR,bFw,hvN,Rvk,FIw,
X0r,Pre,ZFr,evr,udk,gDe,w0G,avk,fve,CrG,xMw,EDw,mMe,L6,oDG,ANu,t5G,Nvw,iFw,qAr,Bvr,I_X,YyG,VP,dLe,VZe,T4R,Wmq,O5r,koN,H5e,DLG,z1r,n8R,yVr,b5r,rVX,h1e,PDG,Z5u,sbN,uok,g8w,e1u,wse,l_k,f_e,CDN,xLr,E8G,De,o8e,v8k,$Lu,N4E,i5E,B4w,AVG,tZd,cVN,ppq,UEX,Sad,VgG,OOr,ktw,HON,DEe,QLe,z9E,n4r,KbX,bOu,jLw,rzX,h9R,GtG,FbG,e9r,sLG,uKe,wpw,lTw,E4G,mEX,o4q,v4e,NCr,BCw,tgE,STN,cze,pNr,u6,USE,YTw,dSr,IzG,Vfe,Tfu,Old,kkX,znr,noN,JCE,yCE,KHq,blk,jce,rCq,GkG,hnw,Rne,XNe,FHX,P7X,Zle,scw,ene,goE,uRN,wNR,azu,fzu,lzG,EK,EoG,
mSG,ooe,vow,$Su,Nfe,qTq,ACw,tfG,cCq,SJk,p2w,YJG,LNu,I8w,Vrq,WNw,Dye,kae,Oie,HiX,zVG,JMR,Q$R,n3R,KNr,rMw,Gaw,hVu,FNe,X2N,Pdk,s$R,g3w,Zie,uZG,w2R,l8r,a8R,f8u,Cdw,E3r,xyu,myd,o3G,v3e,$yq,iie,NFw,BFr,qJR,cMw,Sqd,AMe,tru,Lye,M2q,pJ,Wyw,OVe,HVe,QNu,zQq,nIw,Jbe,UE,LJ,KyN,bVG,db,V4,hQe,jNw,rbG,Xfq,sNk,gIR,ueu,wfR,lyR,ayk,C2w,xqe,EIX,mqR,oIe,vIG,$qw,OE,iVR,NUw,HI,BUN,qqk,Abq,t2E,cbk,Sue,Q4,nJ,puw,Uew,Jl,YuE,LRR,MBX,IZG,VBw,The,OBd,QDq,z3r,DeG,nfe,JGe,G$w,bBe,jDR,KRu,rGR,KJ,Xuw,P_e,ZBw,sDe,e3N,ukE,fZG,lZe,
bO,wue,ofq,$ew,iBq,Nhw,BhE,quw,tBN,cGd,Sfw,pZX,Yfe,LTG,MKw,diw,VKN,WTE,Odw,Qve,Jow,npR,KTG,hGX,RGw,FTr,XZe,ZdN,RA,XN,FN,svR,eGe,gpX,u9w,lfR,afr,ffw,Cyk,Epd,opw,vpw,$ie,PI,idr,BLk,qfq,cok,SZX,Zp,sE,YZw,pbd,LGw,d$q,Mhu,Vhw,gb,WGe,OeG,D$N,Qzw,uO,Jme,ymG,KGr,beN,jzk,rmd,GOG,Raq,ZeX,szq,uSr,eaw,g$q,wbq,Cve,lQE,fQE,x$k,E$d,m$q,$$R,ieG,NRw,BRG,qZr,U3r,pRr,V_R,O1e,iO,k8G,Xmr,H1u,D3w,Qod,JTe,yTR,Rse,FMX,tl,XRq,Pnw,Z1w,soG,esw,u2k,lWr,gQX,wRd,fWd,aWN,x3G,EQd,m3X,oQR,vQu,$3e,i1e,N2q,t_E,p6d,cTR,U5k,Ymu,Lde,
Up,MUG,IJw,L4,VUq,d5X,TGE,Wde,k5k,HqE,zJG,QCG,nWR,JDw,yDr,jCE,hJr,X6d,Fdk,P0r,Zqq,gWr,oWR,aJX,$5N,iqr,BGd,qmw,SUu,YUw,M1G,Lku,d4E,V1w,TDw,Wkr,OMw,kze,D4e,nJe,Jpw,ypG,Kke,rpr,j_w,Fkw,X_q,Pwe,ZMw,s_R,euR,uwd,K4,lik,GU,fie,x4w,EJd,iMe,BDw,cpr,pMe,URk,LOw,Mze,IIG,Vzq,WOd,Oou,DRk,QhX,yXd,JXq,ncw,Za,boE,KOk,jhd,rXu,Guk,hNr,RNG,FOr,XMe,ZoE,shk,u0r,eNr,gcr,lIG,aIk,fIr,CPX,Ecd,mRN,AXe,tzr,cXu,S5R,poG,LXN,ap,WXE,OxG,kdw,HxN,Dlw,f4,C4,Nd,j1e,Ep,rvE,FXR,P$u,XoG,m6,Zxw,s1N,vAw;
_.Sw=function(S,p){if(Error.captureStackTrace)Error.captureStackTrace(this,_.Sw);else{var U=Error().stack;U&&(this.stack=U)}S&&(this.message=String(S));p!==void 0&&(this.cause=p)};
pr=function(){throw Error("B");};
SXX=function(S,p){p=String.fromCharCode.apply(null,p);return S==null?p:S+p};
Lqu=function(S){var p=!1;p=p===void 0?!1:p;if(pkE){if(p&&(UGu?!S.isWellFormed():/(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])/.test(S)))throw Error("C");S=(YXd||(YXd=new TextEncoder)).encode(S)}else{for(var U=0,Y=new Uint8Array(3*S.length),L=0;L<S.length;L++){var I=S.charCodeAt(L);if(I<128)Y[U++]=I;else{if(I<2048)Y[U++]=I>>6|192;else{if(I>=55296&&I<=57343){if(I<=56319&&L<S.length){var V=S.charCodeAt(++L);if(V>=56320&&V<=57343){I=(I-55296)*1024+V-56320+65536;Y[U++]=I>>18|
240;Y[U++]=I>>12&63|128;Y[U++]=I>>6&63|128;Y[U++]=I&63|128;continue}else L--}if(p)throw Error("C");I=65533}Y[U++]=I>>12|224;Y[U++]=I>>6&63|128}Y[U++]=I&63|128}}S=U===Y.length?Y:Y.subarray(0,U)}return S};
YR=function(S){_.UX.setTimeout(function(){throw S;},0)};
_.Lr=function(S,p){return S.lastIndexOf(p,0)==0};
Iu=function(S,p){var U=S.length-p.length;return U>=0&&S.indexOf(p,U)==U};
_.dN=function(S){return/^[\s\xa0]*$/.test(S)};
_.Wk=function(S,p){return S.indexOf(p)!=-1};
_.OX=function(S,p){return _.Wk(S.toLowerCase(),p.toLowerCase())};
_.Dw=function(S,p){var U=0;S=Hk(String(S)).split(".");p=Hk(String(p)).split(".");for(var Y=Math.max(S.length,p.length),L=0;U==0&&L<Y;L++){var I=S[L]||"",V=p[L]||"";do{I=/(\d*)(\D*)(.*)/.exec(I)||["","","",""];V=/(\d*)(\D*)(.*)/.exec(V)||["","","",""];if(I[0].length==0&&V[0].length==0)break;U=MwE(I[1].length==0?0:parseInt(I[1],10),V[1].length==0?0:parseInt(V[1],10))||MwE(I[2].length==0,V[2].length==0)||MwE(I[2],V[2]);I=I[3];V=V[3]}while(U==0)}return U};
MwE=function(S,p){return S<p?-1:S>p?1:0};
_.zG=function(){var S=_.UX.navigator;return S&&(S=S.userAgent)?S:""};
Kr=function(S){if(!Qw||!nr)return!1;for(var p=0;p<nr.brands.length;p++){var U=nr.brands[p].brand;if(U&&_.Wk(U,S))return!0}return!1};
jw=function(S){return _.Wk(_.zG(),S)};
rN=function(){return Qw?!!nr&&nr.brands.length>0:!1};
he=function(){return rN()?!1:jw("Opera")};
Iwe=function(){return rN()?!1:jw("Trident")||jw("MSIE")};
dGr=function(){return rN()?Kr("Microsoft Edge"):jw("Edg/")};
XE=function(){return jw("Firefox")||jw("FxiOS")};
_.ew=function(){return jw("Safari")&&!(_.Pk()||(rN()?0:jw("Coast"))||he()||(rN()?0:jw("Edge"))||dGr()||(rN()?Kr("Opera"):jw("OPR"))||XE()||jw("Silk")||jw("Android"))};
_.Pk=function(){return rN()?Kr("Chromium"):(jw("Chrome")||jw("CriOS"))&&!(rN()?0:jw("Edge"))||jw("Silk")};
_.Vwd=function(){return jw("Android")&&!(_.Pk()||XE()||he()||jw("Silk"))};
TNu=function(S){var p={};S.forEach(function(U){p[U[0]]=U[1]});
return function(U){return p[U.find(function(Y){return Y in p})]||""}};
Wqe=function(S){var p=_.zG();if(S==="Internet Explorer"){if(Iwe())if((S=/rv: *([\d\.]*)/.exec(p))&&S[1])p=S[1];else{S="";var U=/MSIE +([\d\.]+)/.exec(p);if(U&&U[1])if(p=/Trident\/(\d.\d)/.exec(p),U[1]=="7.0")if(p&&p[1])switch(p[1]){case "4.0":S="8.0";break;case "5.0":S="9.0";break;case "6.0":S="10.0";break;case "7.0":S="11.0"}else S="7.0";else S=U[1];p=S}else p="";return p}var Y=RegExp("([A-Z][\\w ]+)/([^\\s]+)\\s*(?:\\((.*?)\\))?","g");U=[];for(var L;L=Y.exec(p);)U.push([L[1],L[2],L[3]||void 0]);
p=TNu(U);switch(S){case "Opera":if(he())return p(["Version","Opera"]);if(rN()?Kr("Opera"):jw("OPR"))return p(["OPR"]);break;case "Microsoft Edge":if(rN()?0:jw("Edge"))return p(["Edge"]);if(dGr())return p(["Edg"]);break;case "Chromium":if(_.Pk())return p(["Chrome","CriOS","HeadlessChrome"])}return S==="Firefox"&&XE()||S==="Safari"&&_.ew()||S==="Android Browser"&&_.Vwd()||S==="Silk"&&jw("Silk")?(p=U[2])&&p[1]||"":""};
_.Ore=function(S){if(rN()&&S!=="Silk"){var p=nr.brands.find(function(U){return U.brand===S});
if(!p||!p.version)return NaN;p=p.version.split(".")}else{p=Wqe(S);if(p==="")return NaN;p=p.split(".")}return p.length===0?NaN:Number(p[0])};
gN=function(){return Qw?!!nr&&!!nr.platform:!1};
_.kGE=function(){return gN()?nr.platform==="Android":jw("Android")};
Hrw=function(){return jw("iPhone")&&!jw("iPod")&&!jw("iPad")};
_.ue=function(){return Hrw()||jw("iPad")||jw("iPod")};
_.DGq=function(){return gN()?nr.platform==="macOS":jw("Macintosh")};
_.zdw=function(){return gN()?nr.platform==="Windows":jw("Windows")};
_.Quw=function(){return gN()?nr.platform==="Chrome OS":jw("CrOS")};
_.le=function(S){return S[S.length-1]};
_.fr=function(S,p,U){p=_.nRr(S,p,U);return p<0?null:typeof S==="string"?S.charAt(p):S[p]};
_.nRr=function(S,p,U){for(var Y=S.length,L=typeof S==="string"?S.split(""):S,I=0;I<Y;I++)if(I in L&&p.call(U,L[I],I,S))return I;return-1};
Jew=function(S){for(var p=_.Cr,U=typeof S==="string"?S.split(""):S,Y=S.length-1;Y>=0;Y--)if(Y in U&&p.call(void 0,U[Y],Y,S))return Y;return-1};
_.ou=function(S,p){return _.xR(S,p)>=0};
_.$R=function(S,p){_.ou(S,p)||S.push(p)};
_.NG=function(S,p){p=_.xR(S,p);var U;(U=p>=0)&&_.ie(S,p);return U};
_.ie=function(S,p){Array.prototype.splice.call(S,p,1)};
_.qG=function(S){var p=S.length;if(p>0){for(var U=Array(p),Y=0;Y<p;Y++)U[Y]=S[Y];return U}return[]};
_.te=function(S,p){for(var U=1;U<arguments.length;U++){var Y=arguments[U];if(_.Ae(Y)){var L=S.length||0,I=Y.length||0;S.length=L+I;for(var V=0;V<I;V++)S[L+V]=Y[V]}else S.push(Y)}};
_.KqN=function(S,p,U,Y){Array.prototype.splice.apply(S,yee(arguments,1))};
yee=function(S,p,U){return arguments.length<=2?Array.prototype.slice.call(S,p):Array.prototype.slice.call(S,p,U)};
Ym=function(S,p){p=p||S;for(var U=0,Y=0,L={};Y<S.length;){var I=S[Y++],V=_.pc(I)?"o"+_.Ul(I):(typeof I).charAt(0)+I;Object.prototype.hasOwnProperty.call(L,V)||(L[V]=!0,p[U++]=I)}p.length=U};
_.brd=function(S,p,U){U=U||_.Lc;for(var Y=0,L=S.length,I;Y<L;){var V=Y+(L-Y>>>1);var W=U(p,S[V]);W>0?Y=V+1:(L=V,I=!W)}return I?Y:-Y-1};
_.dm=function(S,p,U){if(!_.Ae(S)||!_.Ae(p)||S.length!=p.length)return!1;var Y=S.length;U=U||juq;for(var L=0;L<Y;L++)if(!U(S[L],p[L]))return!1;return!0};
_.Lc=function(S,p){return S>p?1:S<p?-1:0};
juq=function(S,p){return S===p};
req=function(S,p,U){p=Array.prototype.splice.call(S,p,1);Array.prototype.splice.call(S,U,0,p[0])};
hdw=function(S){return GGe[S]||""};
XkG=function(S){if(!RdG)return _.Ol(S);S=Fqd.test(S)?S.replace(Fqd,hdw):S;S=atob(S);for(var p=new Uint8Array(S.length),U=0;U<S.length;U++)p[U]=S.charCodeAt(U);return p};
Ped=function(S,p){S.__closure__error__context__984382||(S.__closure__error__context__984382={});S.__closure__error__context__984382.severity=p};
_.km=function(S){S=Error(S);Ped(S,"warning");return S};
QH=function(S,p){if(S!=null){var U;var Y=(U=Zrq)!=null?U:Zrq={};U=Y[S]||0;U>=p||(Y[S]=U+1,S=Error(),Ped(S,"incident"),YR(S))}};
nc=function(S,p,U){return typeof Symbol==="function"&&typeof Symbol()==="symbol"?(U===void 0?0:U)&&Symbol.for&&S?Symbol.for(S):S!=null?Symbol(S):Symbol():p};
hq=function(S,p){bt||_.jQ in S||suu(S,edq);S[_.jQ]|=p};
RP=function(S,p){bt||_.jQ in S||suu(S,edq);S[_.jQ]=p};
gRG=function(S){if(4&S)return 512&S?512:1024&S?1024:0};
FI=function(S){hq(S,34);return S};
uEX=function(S){hq(S,32);return S};
Pw=function(){return typeof BigInt==="function"};
sl=function(S,p){return p===void 0?S.copyOnWrite!==Zd&&!!(2&(S.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows[_.jQ]|0)):!!(2&p)&&S.copyOnWrite!==Zd};
_.aP=function(S,p){if(S!=null)if(typeof S==="string")S=S?new gm(S,wm):_.lt();else if(S.constructor!==gm)if(wkr&&S!=null&&S instanceof Uint8Array)S=S.length?new gm(new Uint8Array(S),wm):_.lt();else{if(!p)throw Error();S=void 0}return S};
fc=function(S,p){if(typeof p!=="number"||p<0||p>=S.length)throw Error();};
lwk=function(S,p,U){var Y=p&128?0:-1,L=S.length,I;if(I=!!L)I=S[L-1],I=I!=null&&typeof I==="object"&&I.constructor===Object;var V=L+(I?-1:0);for(p=p&128?1:0;p<V;p++)U(p-Y,S[p]);if(I){S=S[L-1];for(var W in S)!isNaN(W)&&U(+W,S[W])}};
mE=function(S){return S&128?xm:void 0};
oP=function(S){S.isGuard_doNotManuallySetPrettyPlease=!0;return S};
fww=function(){var S=awq;return oP(function(p){for(var U in S)if(p===S[U]&&!/^[0-9]+$/.test(U))return!0;return!1})};
_.qt=function(S){var p=S;if(Cew(p)){if(!/^\s*(?:-?[1-9]\d*|0)?\s*$/.test(p))throw Error(String(p));}else if(xGw(p)&&!Number.isSafeInteger(p))throw Error(String(p));return Nt?BigInt(S):S=ERq(S)?S?"1":"0":Cew(S)?S.trim()||"0":String(S)};
mGk=function(S,p){if(S.length>p.length)return!1;if(S.length<p.length||S===p)return!0;for(var U=0;U<S.length;U++){var Y=S[U],L=p[U];if(Y>L)return!1;if(Y<L)return!0}};
oRr=function(S){var p=S>>>0;Aq=p;tq=(S-p)/4294967296>>>0};
cw=function(S){if(S<0){oRr(-S);var p=_.d(vRX(Aq,tq));S=p.next().value;p=p.next().value;Aq=S>>>0;tq=p>>>0}else oRr(S)};
$Gw=function(S,p){var U=p*4294967296+(S>>>0);return Number.isSafeInteger(U)?U:_.SX(S,p)};
pE=function(S,p){var U=p&2147483648;U&&(S=~S+1>>>0,p=~p>>>0,S==0&&(p=p+1>>>0));S=$Gw(S,p);return typeof S==="number"?U?-S:S:U?"-"+S:S};
_.SX=function(S,p){p>>>=0;S>>>=0;if(p<=2097151)var U=""+(4294967296*p+S);else Pw()?U=""+(BigInt(p)<<BigInt(32)|BigInt(S)):(U=(S>>>24|p<<8)&16777215,p=p>>16&65535,S=(S&16777215)+U*6777216+p*6710656,U+=p*8147497,p*=2,S>=1E7&&(U+=S/1E7>>>0,S%=1E7),U>=1E7&&(p+=U/1E7>>>0,U%=1E7),U=p+irw(U)+irw(S));return U};
irw=function(S){S=String(S);return"0000000".slice(S.length)+S};
_.Y5=function(S,p){p&2147483648?Pw()?S=""+(BigInt(p|0)<<BigInt(32)|BigInt(S>>>0)):(p=_.d(vRX(S,p)),S=p.next().value,p=p.next().value,S="-"+_.SX(S,p)):S=_.SX(S,p);return S};
LE=function(S){if(S.length<16)cw(Number(S));else if(Pw())S=BigInt(S),Aq=Number(S&BigInt(4294967295))>>>0,tq=Number(S>>BigInt(32)&BigInt(4294967295));else{var p=+(S[0]==="-");tq=Aq=0;for(var U=S.length,Y=p,L=(U-p)%6+p;L<=U;Y=L,L+=6)Y=Number(S.slice(Y,L)),tq*=1E6,Aq=Aq*1E6+Y,Aq>=4294967296&&(tq+=Math.trunc(Aq/4294967296),tq>>>=0,Aq>>>=0);p&&(p=_.d(vRX(Aq,tq)),S=p.next().value,p=p.next().value,Aq=S,tq=p)}};
vRX=function(S,p){p=~p;S?S=~S+1:p+=1;return[S,p]};
VL=function(S){return Array.prototype.slice.call(S)};
_.WP=function(S,p){throw Error(p===void 0?"unexpected value "+S+"!":p);};
_.Ot=function(S){if(S!=null&&typeof S!=="number")throw Error("I`"+typeof S+"`"+S);return S};
_.k5=function(S){if(S==null||typeof S==="number")return S;if(S==="NaN"||S==="Infinity"||S==="-Infinity")return Number(S)};
NNX=function(S){if(S!=null&&typeof S!=="boolean")throw Error("J`"+_.HP(S)+"`"+S);return S};
_.BNG=function(S){if(S==null||typeof S==="boolean")return S;if(typeof S==="number")return!!S};
_.yL=function(S){switch(typeof S){case "bigint":return!0;case "number":return QL(S);case "string":return qXq.test(S);default:return!1}};
_.jX=function(S){if(!QL(S))throw _.km("enum");return S|0};
_.ri=function(S){return S==null?S:QL(S)?S|0:void 0};
Aer=function(S){if(typeof S!=="number")throw _.km("int32");if(!QL(S))throw _.km("int32");return S|0};
_.Gq=function(S){return S==null?S:Aer(S)};
_.hd=function(S){if(S==null)return S;if(typeof S==="string"&&S)S=+S;else if(typeof S!=="number")return;return QL(S)?S|0:void 0};
_.RT=function(S){if(S==null)return S;if(typeof S==="string"&&S)S=+S;else if(typeof S!=="number")return;return QL(S)?S>>>0:void 0};
pwu=function(S){var p=0;p=p===void 0?0:p;if(!_.yL(S))throw _.km("int64");var U=typeof S;switch(p){case 512:switch(U){case "string":return Fn(S);case "bigint":return String(Xn(64,S));default:return twd(S)}case 1024:switch(U){case "string":return ceG(S);case "bigint":return _.qt(Xn(64,S));default:return Sld(S)}case 0:switch(U){case "string":return Fn(S);case "bigint":return _.qt(Xn(64,S));default:return Zs(S)}default:return _.WP(p,"Unknown format requested type for int64")}};
st=function(S){return S==null?S:pwu(S)};
Utd=function(S){if(S[0]==="-")return!1;var p=S.length;return p<20?!0:p===20&&Number(S.substring(0,6))<184467};
YlX=function(S){var p=S.length;return S[0]==="-"?p<20?!0:p===20&&Number(S.substring(0,7))>-922337:p<19?!0:p===19&&Number(S.substring(0,6))<922337};
LEN=function(S){if(S<0){cw(S);var p=_.SX(Aq,tq);S=Number(p);return eX(S)?S:p}p=String(S);if(Utd(p))return p;cw(S);return $Gw(Aq,tq)};
MQX=function(S){if(YlX(S))return S;LE(S);return _.Y5(Aq,tq)};
IdR=function(S){if(Utd(S))return S;LE(S);return _.SX(Aq,tq)};
Zs=function(S){S=gi(S);eX(S)||(cw(S),S=pE(Aq,tq));return S};
_.dtw=function(S){S=gi(S);return S>=0&&eX(S)?S:LEN(S)};
twd=function(S){S=gi(S);if(eX(S))S=String(S);else{var p=String(S);YlX(p)?S=p:(cw(S),S=_.Y5(Aq,tq))}return S};
_.VQk=function(S){S=gi(S);if(S>=0&&eX(S))S=String(S);else{var p=String(S);Utd(p)?S=p:(cw(S),S=_.SX(Aq,tq))}return S};
Fn=function(S){var p=gi(Number(S));if(eX(p))return String(p);p=S.indexOf(".");p!==-1&&(S=S.substring(0,p));return MQX(S)};
ceG=function(S){var p=gi(Number(S));if(eX(p))return _.qt(p);p=S.indexOf(".");p!==-1&&(S=S.substring(0,p));return Pw()?_.qt(Xn(64,BigInt(S))):_.qt(MQX(S))};
Sld=function(S){return eX(S)?_.qt(Zs(S)):_.qt(twd(S))};
_.TmN=function(S){return eX(S)?_.qt(_.dtw(S)):_.qt(_.VQk(S))};
_.WEG=function(S){var p=gi(Number(S));if(eX(p)&&p>=0)return String(p);p=S.indexOf(".");p!==-1&&(S=S.substring(0,p));return IdR(S)};
_.OcG=function(S){var p=gi(Number(S));if(eX(p)&&p>=0)return _.qt(p);p=S.indexOf(".");p!==-1&&(S=S.substring(0,p));return Pw()?_.qt((0,_.uJ)(64,BigInt(S))):_.qt(IdR(S))};
_.kjd=function(S){if(S==null)return S;if(typeof S==="bigint")return wi(S)?S=Number(S):(S=Xn(64,S),S=wi(S)?Number(S):String(S)),S;if(_.yL(S))return typeof S==="number"?Zs(S):Fn(S)};
Hcr=function(S,p){p=p===void 0?!1:p;var U=typeof S;if(S==null)return S;if(U==="bigint")return String(Xn(64,S));if(_.yL(S))return U==="string"?Fn(S):p?twd(S):Zs(S)};
_.Dtu=function(S){var p=typeof S;if(S==null)return S;if(p==="bigint")return _.qt(Xn(64,S));if(_.yL(S))return p==="string"?ceG(S):Sld(S)};
zee=function(S){if(S==null)return S;var p=typeof S;if(p==="bigint")return String(Xn(64,S));if(_.yL(S)){if(p==="string")return Fn(S);if(p==="number")return Zs(S)}};
QPq=function(S){if(S==null)return S;var p=typeof S;if(p==="bigint")return String((0,_.uJ)(64,S));if(_.yL(S)){if(p==="string")return _.WEG(S);if(p==="number")return _.dtw(S)}};
_.lJ=function(S){if(typeof S!=="string")throw Error();return S};
fE=function(S){if(S!=null&&typeof S!=="string")throw Error();return S};
_.CE=function(S){return S==null||typeof S==="string"?S:void 0};
nmE=function(S,p,U,Y){if(S!=null&&S[Et]===mo)return S;if(!Array.isArray(S))return U?Y&2?((S=p[oT])||(S=new p,FI(S.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows),S=p[oT]=S),p=S):p=new p:p=void 0,p;U=S[_.jQ]|0;Y=U|Y&32|Y&2;Y!==U&&RP(S,Y);return new p(S)};
Jqk=function(S,p,U){S=p?Aer(S):_.hd(S);return S==null?U?0:void 0:S|0};
yqw=function(S){return S};
KEE=function(S){return S};
jPu=function(S,p,U,Y,L,I){S=nmE(S,Y,U,I);L&&(S=bcq(S));return S};
rqk=function(S){return[S,this.get(S)]};
ReE=function(){return Gjw||(Gjw=new vP(FI([]),void 0,void 0,void 0,heu))};
NY=function(S){var p=$5(iJ);return p?S[p]:void 0};
Ptq=function(S,p){var U=U===void 0?!1:U;if($5(FEk)&&$5(iJ)&&void 0===FEk){var Y=S.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,L=Y[iJ];if(!L)return;if(L=L.reviveUnknownFields)try{L(Y,p,Xww);return}catch(I){YR(I)}}U&&(S=S.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,(U=$5(iJ))&&U in S&&(S=S[U])&&delete S[p])};
sPR=function(S,p){var U=$5(iJ),Y;bt&&U&&((Y=S[U])==null?void 0:Y[p])!=null&&QH(ZcN,3)};
gmR=function(S,p){p<100||QH(eeu,1)};
adw=function(S,p,U,Y){var L=Y!==void 0;Y=!!Y;var I=$5(iJ),V;!L&&bt&&I&&(V=S[I])&&BP(V,gmR);I=[];var W=S.length;V=4294967295;var O=!1,D=!!(p&64),z=D?p&128?0:-1:void 0;if(!(p&1)){var Q=W&&S[W-1];Q!=null&&typeof Q==="object"&&Q.constructor===Object?(W--,V=W):Q=void 0;if(D&&!(p&128)&&!L){O=!0;var J;V=((J=uIE)!=null?J:yqw)(V-z,z,S,Q)+z}}p=void 0;for(J=0;J<W;J++){var K=S[J];if(K!=null&&(K=U(K,Y))!=null)if(D&&J>=V){var G=J-z,X=void 0;((X=p)!=null?X:p={})[G]=K}else I[J]=K}if(Q)for(var Z in Q)W=Q[Z],W!=null&&
(W=U(W,Y))!=null&&(J=+Z,K=void 0,D&&!Number.isNaN(J)&&(K=J+z)<V?I[K]=W:(J=void 0,((J=p)!=null?J:p={})[Z]=W));p&&(O?I.push(p):I[V]=p);L&&$5(iJ)&&(S=NY(S))&&S instanceof wwq&&(I[iJ]=ldG(S));return I};
fdG=function(S){S[0]=qY(S[0]);S[1]=qY(S[1]);return S};
qY=function(S){switch(typeof S){case "number":return Number.isFinite(S)?S:""+S;case "bigint":return wi(S)?Number(S):""+S;case "boolean":return S?1:0;case "object":if(Array.isArray(S)){var p=S[_.jQ]|0;return S.length===0&&p&1?void 0:adw(S,p,qY)}if(S!=null&&S[Et]===mo)return Ctw(S);if(S instanceof gm){p=S.JSC$6820_value_;if(p==null)S="";else if(typeof p==="string")S=p;else{if(RdG){for(var U="",Y=0,L=p.length-10240;Y<L;)U+=String.fromCharCode.apply(null,p.subarray(Y,Y+=10240));U+=String.fromCharCode.apply(null,
Y?p.subarray(Y):p);p=btoa(U)}else p=_.Ad(p);S=S.JSC$6820_value_=p}return S}if(S instanceof vP)return S=S.size!==0?Array.from(cP.prototype.entries.call(S),fdG):void 0,S;return}return S};
Su=function(S,p){if(p){uIE=p==null||p===yqw||p[xtd]!==Eme?yqw:p;try{return Ctw(S)}finally{uIE=void 0}}return Ctw(S)};
Ctw=function(S){S=S.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return adw(S,S[_.jQ]|0,qY)};
vme=function(S){switch(typeof S){case "boolean":return mte||(mte=[0,void 0,!0]);case "number":return S>0?void 0:S===0?omd||(omd=[0,void 0]):[-S,void 0];case "string":return[0,S];case "object":return S}};
YA=function(S,p,U){return S=_.UH(S,p[0],p[1],U?1:2)};
_.UH=function(S,p,U,Y){Y=Y===void 0?0:Y;if(S==null){var L=32;U?(S=[U],L|=128):S=[];p&&(L=L&-8380417|(p&1023)<<13)}else{if(!Array.isArray(S))throw Error("L");L=S[_.jQ]|0;2048&L&&!(2&L)&&$td();if(L&256)throw Error("N");if(L&64)return Y!==0||L&2048||RP(S,L|2048),S;if(U&&(L|=128,U!==S[0]))throw Error("O");a:{U=S;L|=64;var I=U.length;if(I){var V=I-1,W=U[V];if(W!=null&&typeof W==="object"&&W.constructor===Object){p=L&128?0:-1;V-=p;if(V>=1024)throw Error("Q");for(var O in W)I=+O,I<V&&(U[I+p]=W[O],delete W[O]);
L=L&-8380417|(V&1023)<<13;break a}}if(p){O=Math.max(p,I-(L&128?0:-1));if(O>1024)throw Error("R");L=L&-8380417|(O&1023)<<13}}}L|=64;Y===0&&(L|=2048);RP(S,L);return S};
$td=function(){QH(icN,5)};
qlE=function(S,p){if(typeof S!=="object")return S;if(Array.isArray(S)){var U=S[_.jQ]|0;return S.length===0&&U&1?void 0:Nmr(S,U,p)}if(S!=null&&S[Et]===mo)return Bmw(S);if(S instanceof vP){p=S.arrayState;if(p&2)return S;if(!S.size)return;U=FI(Array.from(cP.prototype.entries.call(S)));if(S.valueCtor)for(S=0;S<U.length;S++){var Y=U[S],L=Y[1];L==null||typeof L!=="object"?L=void 0:L!=null&&L[Et]===mo?L=Bmw(L):Array.isArray(L)?L=Nmr(L,L[_.jQ]|0,!!(p&32)):L=void 0;Y[1]=L}return U}if(S instanceof gm)return S};
Nmr=function(S,p,U){if(p&2)return S;!U||4096&p||16&p?S=L8(S,p,!1,U&&!(p&16)):(hq(S,34),p&4&&Object.freeze(S));return S};
Mh=function(S,p,U){S=new S.constructor(p);U&&(S.copyOnWrite=Zd);S.noLegacyNull=Zd;return S};
Bmw=function(S){var p=S.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,U=p[_.jQ]|0;return sl(S,U)?S:I5(S,p,U)?Mh(S,p):L8(p,U)};
L8=function(S,p,U,Y){Y!=null||(Y=!!(34&p));S=adw(S,p,qlE,Y);Y=32;U&&(Y|=2);p=p&8380609|Y;RP(S,p);return S};
bcq=function(S){var p=S.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,U=p[_.jQ]|0;return sl(S,U)?I5(S,p,U)?Mh(S,p,!0):new S.constructor(L8(p,U,!1)):S};
dZ=function(S){if(S.copyOnWrite!==Zd)return!1;var p=S.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;p=L8(p,p[_.jQ]|0);hq(p,2048);S.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p;S.copyOnWrite=void 0;S.noLegacyNull=void 0;return!0};
D3=function(S){if(!dZ(S)&&sl(S,S.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows[_.jQ]|0))throw Error();};
zD=function(S,p){p===void 0&&(p=S[_.jQ]|0);p&32&&!(p&4096)&&RP(S,p|4096)};
I5=function(S,p,U){return U&2?!0:U&32&&!(U&4096)?(RP(p,U|2),S.copyOnWrite=Zd,!0):!1};
n8=function(S,p,U,Y,L){var I=U+(L?0:-1),V=S.length-1;if(V>=1+(L?0:-1)&&I>=V){var W=S[V];if(W!=null&&typeof W==="object"&&W.constructor===Object)return W[U]=Y,p}if(I<=V)return S[I]=Y,p;if(Y!==void 0){var O;V=((O=p)!=null?O:p=S[_.jQ]|0)>>13&1023||536870912;U>=V?Y!=null&&(I={},S[V+(L?0:-1)]=(I[U]=Y,I)):S[I]=Y}return p};
_.K8=function(S,p,U,Y,L){var I=S.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,V=I[_.jQ]|0;Y=sl(S,V)?1:Y;L=!!L||Y===3;Y===2&&dZ(S)&&(I=S.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,V=I[_.jQ]|0);S=Aqw(I,p);var W=S===Ji?7:S[_.jQ]|0,O=tQe(W,V);var D=4&O?!1:!0;if(D){4&O&&(S=VL(S),W=0,O=y8(O,V),V=n8(I,V,p,S));for(var z=0,Q=0;z<S.length;z++){var J=U(S[z]);J!=null&&(S[Q++]=J)}Q<z&&(S.length=Q);U=(O|4)&-513;O=U&=-1025;O&=-4097}O!==W&&(RP(S,O),2&O&&Object.freeze(S));return S=cqe(S,O,I,
V,p,Y,D,L)};
cqe=function(S,p,U,Y,L,I,V,W){var O=p;I===1||(I!==4?0:2&p||!(16&p)&&32&Y)?b4(p)||(p|=!S.length||V&&!(4096&p)||32&Y&&!(4096&p||16&p)?2:256,p!==O&&RP(S,p),Object.freeze(S)):(I===2&&b4(p)&&(S=VL(S),O=0,p=y8(p,Y),Y=n8(U,Y,L,S)),b4(p)||(W||(p|=16),p!==O&&RP(S,p)));2&p||!(4096&p||16&p)||zD(U,Y);return S};
Aqw=function(S,p,U){S=ju(S,p,U);return Array.isArray(S)?S:Ji};
tQe=function(S,p){2&p&&(S|=2);return S|1};
b4=function(S){return!!(2&S)&&!!(4&S)||!!(256&S)};
Std=function(S){return _.aP(S,!0)};
pPw=function(S,p){var U=S.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,Y=U[_.jQ]|0;a:{var L=Y;Y=sl(S,Y);!Y&&dZ(S)&&(U=S.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,L=U[_.jQ]|0);var I=ju(U,p);S=!1;if(I==null){if(Y){p=ReE();break a}I=[]}else if(I.constructor===vP)if(I.arrayState&2&&!Y)I=Array.from(cP.prototype.entries.call(I));else{p=I;break a}else Array.isArray(I)?S=!!((I[_.jQ]|0)&2):I=[];if(Y){if(!I.length){p=ReE();break a}S||(S=!0,FI(I))}else if(S){S=!1;Y=I;Y=VL(Y);for(I=0;I<
Y.length;I++){var V=Y[I]=VL(Y[I]);Array.isArray(V[1])&&(V[1]=FI(V[1]))}I=Y}!S&&L&32&&uEX(I);Y=new vP(I,void 0,Jqk,Jqk);L=n8(U,L,p,Y);S||zD(U,L);p=Y}return p};
_.rZ=function(S,p,U,Y){D3(S);var L=S.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,I=L[_.jQ]|0;if(U==null)return n8(L,I,p),S;var V=U===Ji?7:U[_.jQ]|0,W=V,O=b4(V),D=O||Object.isFrozen(U);O||(V=0);D||(U=VL(U),W=0,V=y8(V,I),D=!1);V|=5;var z;O=(z=gRG(V))!=null?z:0;for(z=0;z<U.length;z++){var Q=U[z],J=Y(Q,O);Object.is(Q,J)||(D&&(U=VL(U),W=0,V=y8(V,I),D=!1),U[z]=J)}V!==W&&(D&&(U=VL(U),V=y8(V,I)),RP(U,V));n8(L,I,p,U);return S};
_.GD=function(S,p,U,Y,L){D3(S);var I=S.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;n8(I,I[_.jQ]|0,p,(Y==="0"?Number(U)===0:U===Y)?void 0:U,L);return S};
_.hi=function(S,p,U){if(p&2)throw Error();var Y=mE(p),L=Aqw(S,U,Y),I=L===Ji?7:L[_.jQ]|0,V=tQe(I,p);if(2&V||b4(V)||16&V)L=VL(L),I=0,V=y8(V,p),n8(S,p,U,L,Y);V&=-13;V!==I&&RP(L,V);return L};
UYE=function(S){if(bt){var p;return(p=S[R5])!=null?p:S[R5]=new Map}if(R5 in S)return S[R5];p=new Map;Object.defineProperty(S,R5,{value:p});return p};
Loq=function(S,p,U,Y,L){var I=UYE(S),V=YtN(I,S,p,U,L);V!==Y&&(V&&(p=n8(S,p,V,void 0,L)),I.set(U,Y));return p};
YtN=function(S,p,U,Y,L){var I=S.get(Y);if(I!=null)return I;for(var V=I=0;V<Y.length;V++){var W=Y[V];ju(p,W,L)!=null&&(I!==0&&(U=n8(p,U,I,void 0,L)),I=W)}S.set(Y,I);return I};
FO=function(S,p,U,Y,L){var I=!1;Y=ju(S,Y,L,function(V){var W=nmE(V,U,!1,p);I=W!==V&&W!=null;return W});
if(Y!=null)return I&&!sl(Y)&&zD(S,p),Y};
MXq=function(S,p,U,Y,L,I,V,W){var O=sl(S,U);I=O?1:I;V=!!V||I===3;O=W&&!O;(I===2||O)&&dZ(S)&&(p=S.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,U=p[_.jQ]|0);S=Aqw(p,L);var D=S===Ji?7:S[_.jQ]|0,z=tQe(D,U);if(W=!(4&z)){var Q=S,J=U,K=!!(2&z);K&&(J|=2);for(var G=!K,X=!0,Z=0,l=0;Z<Q.length;Z++){var a=nmE(Q[Z],Y,!1,J);if(a instanceof Y){if(!K){var N=sl(a);G&&(G=!N);X&&(X=N)}Q[l++]=a}}l<Z&&(Q.length=l);z|=4;z=X?z&-4097:z|4096;z=G?z|8:z&-9}z!==D&&(RP(S,z),2&z&&Object.freeze(S));if(O&&!(8&z||!S.length&&
(I===1||(I!==4?0:2&z||!(16&z)&&32&U)))){b4(z)&&(S=VL(S),z=y8(z,U),U=n8(p,U,L,S));Y=S;O=z;for(D=0;D<Y.length;D++)Q=Y[D],z=bcq(Q),Q!==z&&(Y[D]=z);O|=8;z=O=Y.length?O|4096:O&-4097;RP(S,z)}return S=cqe(S,z,p,U,L,I,W,V)};
IsN=function(S){S==null&&(S=void 0);return S};
y8=function(S,p){return S=(2&p?S|2:S&-3)&-273};
_.dYd=function(S,p,U,Y,L){D3(S);p=_.K8(S,p,L,2,!0);var I;L=(I=gRG(p===Ji?7:p[_.jQ]|0))!=null?I:0;p.push(U(Y,L));return S};
VXR=function(S,p,U,Y,L,I,V){D3(S);var W=S.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;S=MXq(S,W,W[_.jQ]|0,U,p,2,!0);if(I&&V)L!=null||(L=S.length-1),fc(S,L),S.splice(L,I),S.length||(S[_.jQ]&=-4097);else{if(I){if(typeof L!=="number"||L<0||L>S.length)throw Error();}else Y=Y!=null?Y:new U;L!=void 0?S.splice(L,I,Y):S.push(Y);L=U=S===Ji?7:S[_.jQ]|0;(Y=sl(Y))?(U&=-9,S.length===1&&(U&=-4097)):U|=4096;U!==L&&RP(S,U);Y||zD(W)}};
TiR=function(S,p){if(typeof S==="string")return new sH(XkG(S),p);if(Array.isArray(S))return new sH(new Uint8Array(S),p);if(S.constructor===Uint8Array)return new sH(S,!1);if(S.constructor===ArrayBuffer)return S=new Uint8Array(S),new sH(S,!1);if(S.constructor===gm)return p=eu(S)||new Uint8Array(0),new sH(p,!0,S);if(S instanceof Uint8Array)return S=S.constructor===Uint8Array?S:new Uint8Array(S.buffer,S.byteOffset,S.byteLength),new sH(S,!1);throw Error();};
gZ=function(){var S=function(){throw Error();};
Object.setPrototypeOf(S,S.prototype);return S};
OEN=function(S,p){var U=U===void 0?WoE:U;return new wZ(S,p,U)};
zAR=function(S,p,U,Y,L){p=kqd(p,Y);p!=null&&(U=_.HEw(S,U),L(p,S),_.DYN(S,U))};
l4=function(S,p,U,Y){var L=Y[S];if(L)return L;L={};L.binaryFields=Y;L.messageMetadata=vme(Y[0]);var I=Y[1],V=1;I&&I.constructor===Object&&(L.extensions=I,I=Y[++V],typeof I==="function"&&(L.isMessageSet=!0,QTE!=null||(QTE=I),n5w!=null||(n5w=Y[V+1]),I=Y[V+=2]));for(var W={};I&&Array.isArray(I)&&I.length&&typeof I[0]==="number"&&I[0]>0;){for(var O=0;O<I.length;O++)W[I[O]]=I;I=Y[++V]}for(O=1;I!==void 0;){typeof I==="number"&&(O+=I,I=Y[++V]);var D=void 0;if(I instanceof wZ)var z=I;else z=JdG,V--;I=void 0;
if((I=z)==null?0:I.$$isMsg){I=Y[++V];D=Y;var Q=V;typeof I==="function"&&(I=I(),D[Q]=I);D=I}I=Y[++V];Q=O+1;typeof I==="number"&&I<0&&(Q-=I,I=Y[++V]);for(;O<Q;O++){var J=W[O];D?U(L,O,z,D,J):p(L,O,z,J)}}return Y[S]=L};
Kow=function(S){return Array.isArray(S)?S[0]instanceof wZ?S:[ydG,S]:[S,void 0]};
kqd=function(S,p){if(S instanceof _.a5)return S.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;if(Array.isArray(S))return YA(S,p,!1)};
bEw=function(S,p,U,Y){var L=U.$$binaryReaderFn;S[p]=Y?function(I,V,W){return L(I,V,W,Y)}:L};
jTq=function(S,p,U,Y,L){var I=U.$$binaryReaderFn,V,W;S[p]=function(O,D,z){return I(O,D,z,W||(W=l4(f8,bEw,jTq,Y).messageMetadata),V||(V=rdN(Y)),L)}};
rdN=function(S){var p=S[Gqd];if(p!=null)return p;var U=l4(f8,bEw,jTq,S);p=U.isMessageSet?function(Y,L){return QTE(Y,L,U)}:function(Y,L){for(;hAG(L)&&L.nextWireType_!=4;){var I=L.nextField_,V=U[I];
if(V==null){var W=U.extensions;W&&(W=W[I])&&(W=RAq(W),W!=null&&(V=U[I]=W))}if(V==null||!V(L,Y,I)){W=L;V=W.fieldCursor_;C8(W);if(W.discardUnknownFields)var O=void 0;else{var D=W.decoder_.cursor_-V;W.decoder_.cursor_=V;O=Foe(W.decoder_,D)}D=W=V=void 0;var z=Y;O&&((V=(W=(D=z[iJ])!=null?D:z[iJ]=new wwq)[I])!=null?V:W[I]=[]).push(O)}}if(Y=NY(Y))Y.reviveUnknownFields=U.binaryFields[XPe];return!0};
S[Gqd]=p;S[XPe]=PJd.bind(S);return p};
PJd=function(S,p,U,Y){var L=this[f8],I=this[Gqd],V=YA(void 0,L.messageMetadata,!1),W=NY(S);if(W){var O=!1,D=L.extensions;if(D){L=function(G,X,Z){if(Z.length!==0)if(D[X])for(G=_.d(Z),X=G.next();!X.done;X=G.next()){X=ZEw(X.value);try{O=!0,I(V,X)}finally{X.free()}}else Y==null||Y(S,X,Z)};
if(p==null)BP(W,L);else if(W!=null){var z=W[p];z&&L(W,p,z)}if(O){var Q=S[_.jQ]|0;if(Q&2&&Q&2048&&(U==null||!U.reviveIntoImmutable))throw Error();var J=mE(Q),K=function(G,X){if(ju(S,G,J)!=null)switch(U==null?void 0:U.resolutionBehavior){case 1:return;default:throw Error();}X!=null&&(Q=n8(S,Q,G,X,J));delete W[G]};
p==null?lwk(V,V[_.jQ]|0,function(G,X){K(G,X)}):K(p,ju(V,p,J))}}}};
RAq=function(S){S=Kow(S);var p=S[0].$$binaryReaderFn;if(S=S[1]){var U=rdN(S),Y=l4(f8,bEw,jTq,S).messageMetadata;return function(L,I,V){return p(L,I,V,Y,U)}}return p};
xA=function(S,p,U){S[p]=U.$$binaryWriterFn};
m7=function(S,p,U,Y){var L,I,V=U.$$binaryWriterFn;S[p]=function(W,O,D){return V(W,O,D,I||(I=l4(EH,xA,m7,Y).messageMetadata),L||(L=sTG(Y)))}};
sTG=function(S){var p=S[eAk];if(!p){var U=l4(EH,xA,m7,S);p=function(Y,L){return g5E(Y,L,U)};
S[eAk]=p}return p};
g5E=function(S,p,U){lwk(S,S[_.jQ]|0,function(Y,L){if(L!=null){var I=unw(U,Y);I?I(p,L,Y):Y<500||QH(wPw,3)}});
(S=NY(S))&&BP(S,function(Y,L,I){o5(p,p.encoder_.end());for(Y=0;Y<I.length;Y++)o5(p,eu(I[Y])||new Uint8Array(0))})};
unw=function(S,p){var U=S[p];if(U)return U;if(U=S.extensions)if(U=U[p]){U=Kow(U);var Y=U[0].$$binaryWriterFn;if(U=U[1]){var L=sTG(U),I=l4(EH,xA,m7,U).messageMetadata;U=S.isMessageSet?n5w(I,L):function(V,W,O){return Y(V,W,O,I,L)}}else U=Y;
return S[p]=U}};
_.lsr=function(S,p,U){if(Array.isArray(p)){var Y=p[_.jQ]|0;if(Y&4)return p;for(var L=0,I=0;L<p.length;L++){var V=S(p[L]);V!=null&&(p[I++]=V)}I<L&&(p.length=I);U&&(RP(p,(Y|5)&-1537),Y&2&&Object.freeze(p));return p}};
_.vY=function(S,p,U){return new wZ(S,p,U)};
_.ask=function(S,p,U){return new wZ(S,p,U)};
_.$A=function(S,p,U){n8(S,S[_.jQ]|0,p,U,mE(S[_.jQ]|0))};
fsX=function(S,p,U){p=_.k5(p);p!=null&&(_.Nh(S,U,1),S=S.encoder_,U=BY||(BY=new DataView(new ArrayBuffer(8))),U.setFloat64(0,+p,!0),Aq=U.getUint32(0,!0),tq=U.getUint32(4,!0),_.qh(S,Aq),_.qh(S,tq))};
_.Ai=function(S,p,U){p=zee(p);if(p!=null){switch(typeof p){case "string":CJe(p)}if(p!=null)switch(_.Nh(S,U,0),typeof p){case "number":S=S.encoder_;cw(p);xYG(S,Aq,tq);break;case "bigint":U=BigInt.asUintN(64,p);U=new E5w(Number(U&BigInt(4294967295)),Number(U>>BigInt(32)));xYG(S.encoder_,U.JSC$6872_lo,U.JSC$6872_hi);break;default:U=CJe(p),xYG(S.encoder_,U.JSC$6872_lo,U.JSC$6872_hi)}}};
o5X=function(S,p,U){p=_.hd(p);p!=null&&p!=null&&(_.Nh(S,U,0),_.mYX(S.encoder_,p))};
_.iEu=function(S,p,U){$Yw(S,U,QPq(p))};
_.Niq=function(S,p,U){p=_.BNG(p);p!=null&&(_.Nh(S,U,0),S.encoder_.JSC$6874_buffer_.push(p?1:0))};
_.qtG=function(S,p,U){p=_.CE(p);p!=null&&BiN(S,U,Lqu(p))};
Adw=function(S,p,U,Y,L){p=kqd(p,Y);p!=null&&(U=_.HEw(S,U),L(p,S),_.DYN(S,U))};
_.tXw=function(S,p,U){p=p==null||typeof p=="string"||p instanceof gm?p:void 0;p!=null&&BiN(S,U,TiR(p,!0).buffer)};
_.cde=function(S,p,U){p=_.hd(p);p!=null&&(p=parseInt(p,10),_.Nh(S,U,0),_.mYX(S.encoder_,p))};
_.ti=function(S,p){return function(U,Y){var L={treatNewDataAsImmutable:!0};Y&&Object.assign(L,Y);U=ZEw(U,void 0,void 0,L);try{var I=new S,V=I.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;rdN(p)(V,U);var W=I}finally{U.free()}return W}};
_.cY=function(S){return function(p){return SHG(p,S)}};
pYk=function(S){return function(){return SHG(this,S)}};
_.Uhw=function(S){return oP(function(p){return p instanceof S&&!sl(p)})};
_.SO=function(S){return function(p){return YHG(S,p)}};
dhk=function(S,p){return L7e({child:S,origin:p||"https://gamesnacks.com",channelName:"gspc",receiveMessageConstructor:Muu,getPayloadCase:function(U){return U.getPayloadCase()},
createInitMessage:function(U){var Y=new ph,L=new I3N;U=_.U3(L,1,U);return _.Yq(Y,5,Lh,U)}})};
MJ=function(S){return{valueOf:S}.valueOf()};
TZw=function(){var S=null;if(!VuG)return S;try{var p=function(U){return U};
S=VuG.createPolicy("goog#html",{createHTML:p,createScript:p,createScriptURL:p})}catch(U){}return S};
O8d=function(){W7w===void 0&&(W7w=TZw());return W7w};
_.dc=function(S){var p=O8d();S=p?p.createScriptURL(S):S;return new IK(S)};
_.Tl=function(S){if(S instanceof IK)return S.privateDoNotAccessOrElseWrappedResourceUrl;throw Error("da");};
WE=function(S){return S.toString().indexOf("`")===-1};
kq=function(S){return new _.O3(kDG,S)};
HE=function(S){return S instanceof _.O3};
_.DO=function(S){if(HE(S))return S.privateDoNotAccessOrElseWrappedUrl;throw Error("da");};
zl=function(S){return new H8N(function(p){return p.substr(0,S.length+1).toLowerCase()===S+":"})};
Q2=function(S,p){p=p===void 0?Dhe:p;if(HE(S))return S;for(var U=0;U<p.length;++U){var Y=p[U];if(Y instanceof H8N&&Y.isValid(S))return kq(S)}};
_.JA=function(S,p){p=p===void 0?Dhe:p;return Q2(S,p)||nh};
_.Kh=function(S){var p=window;if(typeof MediaSource!=="undefined"&&S instanceof MediaSource||typeof p.ManagedMediaSource!=="undefined"&&S instanceof p.ManagedMediaSource)return kq(URL.createObjectURL(S));p=S.type;p.toLowerCase()==="application/octet-stream"?p=!0:(p=p.match(/^([^;]+)(?:;\w+=(?:\w+|"[\w;,= ]+"))*$/i),p=(p==null?void 0:p.length)===2&&(/^image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp|x-icon|heic|heif|avif|x-ms-bmp)$/i.test(p[1])||/^video\/(?:3gpp|avi|mpeg|mpg|mp4|ogg|webm|x-flv|x-matroska|quicktime|x-ms-wmv)$/i.test(p[1])||
/^audio\/(?:3gpp2|3gpp|aac|amr|L16|midi|mp3|mp4|mpeg|oga|ogg|opus|x-m4a|x-matroska|x-wav|wav|webm)$/i.test(p[1])||/^font\/[\w-]+$/i.test(p[1])));if(!p)throw Error("da");return kq(URL.createObjectURL(S))};
_.rc=function(S){for(var p=_.jO.apply(1,arguments),U=[S[0]],Y=0;Y<p.length;Y++)U.push(String(p[Y])),U.push(S[Y+1]);return kq(U.join(""))};
_.Q5N=function(S){if(!z6X){a:{var p=document.createElement("a");try{p.href=S}catch(U){S=void 0;break a}S=p.protocol;S=S===":"||S===""?"https:":S}return S}try{p=new URL(S)}catch(U){return"https:"}return p.protocol};
_.Gl=function(S){S instanceof _.O3?S=_.DO(S):S=nAe.test(S)?S:void 0;return S};
hA=function(S,p){p=_.Gl(p);p!==void 0&&(S.href=p)};
Fq=function(S){var p=O8d();S=p?p.createHTML(S):S;return new RK(S)};
Xq=function(S){if(S instanceof RK)return S.privateDoNotAccessOrElseWrappedHtml;throw Error("da");};
_.PE=function(S,p){S.src=_.Tl(p).toString()};
Jik=function(S,p){S.setAttribute("sandbox","");for(var U=0;U<p.length;U++)S.sandbox.supports&&!S.sandbox.supports(p[U])||S.sandbox.add(p[U])};
_.yir=function(S,p,U){S.removeAttribute("srcdoc");switch(p){case 0:if(U instanceof IK)throw new ZO("TrustedResourceUrl",0);Jik(S,[]);p=_.Gl(U);p!==void 0&&(S.src=p);break;case 1:if(!(U instanceof IK))throw new ZO(typeof U,1);Jik(S,"allow-same-origin allow-scripts allow-forms allow-popups allow-popups-to-escape-sandbox allow-storage-access-by-user-activation".split(" "));_.PE(S,U);break;case 2:if(U instanceof IK)throw new ZO("TrustedResourceUrl",2);Jik(S,"allow-same-origin allow-scripts allow-forms allow-popups allow-popups-to-escape-sandbox allow-storage-access-by-user-activation".split(" "));
p=_.Gl(U);p!==void 0&&(S.src=p);break;default:_.WP(p)}};
_.s3=function(S,p,U,Y){p=_.Gl(p);return p!==void 0?S.open(p,U,Y):null};
_.eO=function(S){S=S===void 0?document:S;var p,U;S=(U=(p=S).querySelector)==null?void 0:U.call(p,"script[nonce]");return S==null?"":S.nonce||S.getAttribute("nonce")||""};
_.wc=function(S){var p=O8d();S=p?p.createScript(S):S;return new _.ux(S)};
lx=function(S){if(S instanceof _.ux)return S.privateDoNotAccessOrElseWrappedScript;throw Error("da");};
K7G=function(S){var p=_.eO(S.ownerDocument);p&&S.setAttribute("nonce",p)};
_.aK=function(S,p){S.textContent=lx(p);K7G(S)};
_.fh=function(S,p){S.src=_.Tl(p);K7G(S)};
_.Ch=function(S,p){if(S.nodeType===1&&/^(script|style)$/i.test(S.tagName))throw Error("da");S.innerHTML=Xq(p)};
_.xq=function(S,p,U,Y){if(S.length===0)throw Error("da");S=S.map(function(I){if(I instanceof b8G)I=I.privateDoNotAccessOrElseWrappedAttributePrefix;else throw Error("da");return I});
var L=U.toLowerCase();if(S.every(function(I){return L.indexOf(I)!==0}))throw Error("ea`"+U);
p.setAttribute(U,Y)};
_.E3=function(S,p,U){if(p instanceof IK)S.href=_.Tl(p).toString(),S.rel=U;else{if(j5G.indexOf(U)===-1)throw Error("fa`"+U);p=_.Gl(p);p!==void 0&&(S.href=p,S.rel=U)}};
riG=function(S){return"function"==typeof _.m1&&S instanceof _.m1};
_.GDG=function(S){if(riG(S))return S.privateDoNotAccessOrElseWrappedStyleSheet;throw Error("da");};
_.vE=function(S,p){p=_.Gl(p);p!==void 0&&(S.href=p)};
$q=function(S,p){S&&(p=S.indexOf(p),0<=p&&S.splice(p,1))};
ix=function(S){return typeof S==="function"};
h6e=function(S){return S instanceof NJ||S&&"closed"in S&&ix(S.remove)&&ix(S.add)&&ix(S.unsubscribe)};
BE=function(){};
qJ=function(S){R6e(function(){throw S;})};
AA=function(S){return S};
tA=function(){return F7G(_.jO.apply(0,arguments))};
F7G=function(S){return S.length===0?AA:S.length===1?S[0]:function(p){return S.reduce(function(U,Y){return Y(U)},p)}};
XYE=function(S){var p;return(p=S!=null?S:void 0)!=null?p:Promise};
P4d=function(S,p){return new So(function(U){var Y=0;return p.schedule(function(){Y===S.length?U.complete():(U.next(S[Y++]),U.closed||this.schedule())})})};
Z8w=function(S,p){if(!S)throw Error("ga");return new So(function(U){var Y=new NJ;Y.add(p.schedule(function(){var L=S[Symbol.asyncIterator]();Y.add(p.schedule(function(){var I=this;L.next().then(function(V){V.done?U.complete():(U.next(V.value),I.schedule())})}))}));
return Y})};
s5w=function(S,p,U){p=p.schedule(function(){try{U.call(this)}catch(Y){S.error(Y)}},0);
S.add(p)};
e6G=function(S,p){return new So(function(U){var Y;U.add(p.schedule(function(){Y=S[pu]();s5w(U,p,function(){var L=Y.next(),I=L.value;L.done?U.complete():(U.next(I),this.schedule())})}));
return function(){var L;return ix((L=Y)==null?void 0:L.return)&&Y.return()}})};
gAG=function(S,p){return new So(function(U){var Y=new NJ;Y.add(p.schedule(function(){var L=S[UV]();Y.add(L.subscribe({next:function(I){Y.add(p.schedule(function(){return U.next(I)}))},
error:function(I){Y.add(p.schedule(function(){return U.error(I)}))},
complete:function(){Y.add(p.schedule(function(){return U.complete()}))}}))}));
return Y})};
uOR=function(S,p){return new So(function(U){return p.schedule(function(){return S.then(function(Y){U.add(p.schedule(function(){U.next(Y);U.add(p.schedule(function(){return U.complete()}))}))},function(Y){U.add(p.schedule(function(){return U.error(Y)}))})})})};
wYk=function(S){return new TypeError("ha`"+(S!==null&&typeof S==="object"?"an invalid object":"'"+S+"'"))};
a3X=function(S,p){if(S!=null){if(ix(S[UV]))return gAG(S,p);if(l3R(S))return P4d(S,p);if(ix(S==null?void 0:S.then))return uOR(S,p);if(Symbol.asyncIterator&&ix(S==null?void 0:S[Symbol.asyncIterator]))return Z8w(S,p);if(ix(S==null?void 0:S[pu]))return e6G(S,p)}throw wYk(S);};
Lu=function(S,p){return p?a3X(S,p):Ya(S)};
Ya=function(S){if(S instanceof So)return S;if(S!=null){if(ix(S[UV]))return f3X(S);if(l3R(S))return C4X(S);if(ix(S==null?void 0:S.then))return xhG(S);if(Symbol.asyncIterator&&ix(S==null?void 0:S[Symbol.asyncIterator]))return EAu(S);if(ix(S==null?void 0:S[pu]))return mhX(S)}throw wYk(S);};
f3X=function(S){return new So(function(p){var U=S[UV]();if(ix(U.subscribe))return U.subscribe(p);throw new TypeError("ia");})};
C4X=function(S){return new So(function(p){for(var U=0;U<S.length&&!p.closed;U++)p.next(S[U]);p.complete()})};
xhG=function(S){return new So(function(p){S.then(function(U){p.closed||(p.next(U),p.complete())},function(U){return p.error(U)}).then(null,qJ)})};
mhX=function(S){return new So(function(p){for(var U=S[pu]();!p.closed;){var Y=U.next(),L=Y.value;Y.done?p.complete():p.next(L)}return function(){return ix(U==null?void 0:U.return)&&U.return()}})};
EAu=function(S){return new So(function(p){oAr(S,p).catch(function(U){return p.error(U)})})};
oAr=function(S,p){var U,Y,L,I,V,W;return _.T(function(O){switch(O.nextAddress){case 1:_.M2(O,2,3);var D=S[Symbol.asyncIterator];I=D!==void 0?D.call(S):new vAw(_.d(S));case 5:return _.k(O,I.next(),8);case 8:Y=O.yieldResult;if(Y.done){O.jumpTo(3);break}V=Y.value;p.next(V);O.jumpTo(5);break;case 3:_.IO(O);_.V9(O,9);if(!Y||Y.done||!(L=I.return)){O.jumpTo(9);break}return _.k(O,L.call(I),9);case 9:_.IO(O,0,0,1);if(U)throw U.error;_.T7(O,10,1);break;case 10:_.T7(O,4);break;case 2:W=_.W4(O);U={error:W};O.jumpTo(3);
break;case 4:p.complete(),_.OV(O)}})};
ka=function(S,p){return p?P4d(S,p):C4X(S)};
$hE=function(S){return ix(S[S.length-1])?S.pop():void 0};
H4=function(S){var p=S[S.length-1];return p&&ix(p.schedule)?S.pop():void 0};
Do=function(){var S=_.jO.apply(0,arguments),p=H4(S);return p?P4d(S,p):ka(S)};
z7=function(S){var p=ix(S)?S:function(){return S};
return new So(function(U){return U.error(p())})};
Q9=function(S){return function(p){if(ix(p==null?void 0:p.lift))return p.lift(function(U){try{return S(U,this)}catch(Y){this.error(Y)}});
throw new TypeError("ja");}};
J3=function(){return Q9(function(S,p){var U=null;S._refCount++;var Y=new nu(p,void 0,void 0,void 0,function(){if(!S||S._refCount<=0||0<--S._refCount)U=null;else{var L=S._connection,I=U;U=null;!L||I&&L!==I||L.unsubscribe();p.unsubscribe()}});
S.subscribe(Y);Y.closed||(U=S.connect())})};
NZe=function(){var S=i8w;var p=p===void 0?0:p;return Q9(function(U,Y){Y.add(S.schedule(function(){return U.subscribe(Y)},p))})};
y9=function(S){return Q9(function(p,U){var Y=0;p.subscribe(new nu(U,function(L){U.next(S.call(void 0,L,Y++))}))})};
qHw=function(S){return y9(function(p){return BZE(p)?S.apply(null,_.jo(p)):S(p)})};
pEu=function(S){if(S.length===1){var p=S[0];if(AiN(p))return{args:p,keys:null};if(p&&typeof p==="object"&&tuw(p)===ciw)return S=S3w(p),{args:S.map(function(U){return p[U]}),
keys:S}}return{args:S,keys:null}};
r3=function(){var S=_.jO.apply(0,arguments),p=H4(S),U=$hE(S);S=pEu(S);var Y=S.args,L=S.keys;if(Y.length===0)return Lu([],p);p=new So(UJG(Y,p,L?function(I){for(var V={},W=0;W<I.length;W++)V[L[W]]=I[W];return V}:AA));
return U?p.pipe(qHw(U)):p};
UJG=function(S,p,U){U=U===void 0?AA:U;return function(Y){Y3u(p,function(){for(var L=S.length,I=Array(L),V=L,W=S.map(function(){return!1}),O=!0,D={i$jscomp$260:0};D.i$jscomp$260<L;D={i$jscomp$260:D.i$jscomp$260},D.i$jscomp$260++)Y3u(p,function(z){return function(){Lu(S[z.i$jscomp$260],p).subscribe(new G7(Y,function(Q){I[z.i$jscomp$260]=Q;
O&&(W[z.i$jscomp$260]=!0,O=!W.every(AA));O||Y.next(U(I.slice()))},function(){return--V===0}))}}(D),Y)},Y)}};
Y3u=function(S,p,U){S?U.add(S.schedule(p)):p()};
L1G=function(S,p,U,Y){var L=[],I=0,V=0,W=!1,O=function(D){I++;Ya(U(D,V++)).subscribe(new nu(p,function(z){p.next(z)},void 0,function(){I--;
for(var z={};L.length&&I<Y;z={bufferedValue:void 0})z.bufferedValue=L.shift(),O(z.bufferedValue);!W||L.length||I||p.complete()}))};
S.subscribe(new nu(p,function(D){return I<Y?O(D):L.push(D)},void 0,function(){W=!0;
!W||L.length||I||p.complete()}));
return function(){L=null}};
h3=function(S,p){var U=U===void 0?Infinity:U;if(ix(p))return h3(function(Y,L){return y9(function(I,V){return p(Y,I,L,V)})(Ya(S(Y,L)))},U);
typeof p==="number"&&(U=p);return Q9(function(Y,L){return L1G(Y,L,S,U)})};
MOG=function(S){S=S===void 0?Infinity:S;return h3(AA,S)};
IOX=function(){var S=_.jO.apply(0,arguments);return MOG(1)(ka(S,H4(S)))};
RO=function(S){return new So(function(p){Ya(S()).subscribe(p)})};
P4=function(S,p,U){if(ix(U)){var Y=U;U=void 0}if(Y)return P4(S,p,U).pipe(qHw(Y));Y=_.d(ix(S.addEventListener)&&ix(S.removeEventListener)?dJw.map(function(V){return function(W){return S[V](p,W,U)}}):ix(S.addListener)&&ix(S.removeListener)?VON.map(Tce(S,p)):ix(S.on)&&ix(S.off)?W1e.map(Tce(S,p)):[]);
var L=Y.next().value,I=Y.next().value;return!L&&l3R(S)?h3(function(V){return P4(V,p,U)})(ka(S)):new So(function(V){if(!L)throw new TypeError("ka");
var W=function(){var O=_.jO.apply(0,arguments);return V.next(1<O.length?O:O[0])};
L(W);return function(){return I(W)}})};
Tce=function(S,p){return function(U){return function(Y){return S[U](p,Y)}}};
sV=function(){var S=_.jO.apply(0,arguments),p=H4(S);var U=typeof S[S.length-1]==="number"?S.pop():Infinity;return S.length?S.length===1?Ya(S[0]):MOG(U)(ka(S,p)):Zo};
klG=function(S){return S.length===1&&OhN(S[0])?S[0]:S};
HhX=function(){var S=klG(_.jO.apply(0,arguments));return Q9(function(p,U){var Y=[p].concat(_.jo(S)),L=function(){if(!U.closed)if(Y.length>0){try{var I=Ya(Y.shift())}catch(W){L();return}var V=new nu(U,void 0,BE,BE);U.add(I.subscribe(V));V.add(L)}else U.complete()};
L()})};
eo=function(S){return Q9(function(p,U){var Y=0;p.subscribe(new nu(U,function(L){return S.call(void 0,L,Y++)&&U.next(L)}))})};
zfe=function(){var S=_.jO.apply(0,arguments);S=klG(S);return S.length===1?Ya(S[0]):new So(DJX(S))};
DJX=function(S){return function(p){for(var U=[],Y={i$jscomp$263:0};U&&!p.closed&&Y.i$jscomp$263<S.length;Y={i$jscomp$263:Y.i$jscomp$263},Y.i$jscomp$263++)U.push(Ya(S[Y.i$jscomp$263]).subscribe(new nu(p,function(L){return function(I){if(U){for(var V=0;V<U.length;V++)V!==L.i$jscomp$263&&U[V].unsubscribe();U=null}p.next(I)}}(Y))))}};
QKe=function(){var S=_.jO.apply(0,arguments),p=$hE(S),U=klG(S);return U.length?new So(function(Y){var L=U.map(function(){return[]}),I=U.map(function(){return!1});
Y.add(function(){L=I=null});
for(var V={sourceIndex$jscomp$1:0};!Y.closed&&V.sourceIndex$jscomp$1<U.length;V={sourceIndex$jscomp$1:V.sourceIndex$jscomp$1},V.sourceIndex$jscomp$1++)Ya(U[V.sourceIndex$jscomp$1]).subscribe(new nu(Y,function(W){return function(O){L[W.sourceIndex$jscomp$1].push(O);L.every(function(D){return D.length})&&(O=L.map(function(D){return D.shift()}),Y.next(p?p.apply(null,_.jo(O)):O),L.some(function(D,z){return!D.length&&I[z]})&&Y.complete())}}(V),void 0,function(W){return function(){I[W.sourceIndex$jscomp$1]=
!0;
!L[W.sourceIndex$jscomp$1].length&&Y.complete()}}(V)));
return function(){L=I=null}}):Zo};
nqd=function(S){var p,U,Y;return!!S&&typeof S.active==="boolean"&&typeof((p=S.clock)==null?void 0:p.now)==="function"&&((U=S.clock)==null?void 0:U.timeline)!==void 0&&!((Y=S.lastMeasurement)==null||!Y.timestamp)&&typeof S.equivalentTo==="function"&&typeof S.extrapolateToNow==="function"&&typeof S.extrapolateToTime==="function"&&typeof S.map==="function"&&typeof S.joinWith==="function"};
JAX=function(S){function p(U){return typeof U==="boolean"||typeof U==="string"||typeof U==="number"||U===void 0||U===null}
return p(S)?!0:Array.isArray(S)?S.every(p):typeof S==="object"?Object.keys(S).every(function(U){return typeof U==="string"})&&Object.values(S).every(function(U){return Array.isArray(U)?U.every(p):p(U)}):!1};
yAw=function(S){if(JAX(S))return S;if(nqd(S))return{lastMeasurement:{value:yAw(S.lastMeasurement.value),timestamp:g3(S.lastMeasurement.timestamp,new uV(0,S.lastMeasurement.timestamp.timeline))},active:S.active};try{return JSON.parse(JSON.stringify(S))}catch(p){}return String(S)};
w3=function(S,p){return function(U){return new So(function(Y){return U.subscribe(function(L){S.timeExecution(p,function(){Y.next(L)})()},function(L){S.timeExecution(p,function(){Y.error(L)})()},function(){S.timeExecution(p,function(){Y.complete()})()})})}};
K1w=function(S,p){var U=!1;return new So(function(Y){var L=S.setTimeout(function(){U=!0;Y.next(!0);Y.complete()},p);
return function(){U||S.clearTimeout(L)}})};
bhw=function(S){S=S.global;if(S.fetchLater)return S.fetchLater.bind(S)};
lV=function(S){return Q9(function(p,U){var Y=null,L=!1,I;Y=p.subscribe(new nu(U,void 0,function(V){I=Ya(S(V,lV(S)(p)));Y?(Y.unsubscribe(),Y=null,I.subscribe(U)):L=!0}));
L&&(Y.unsubscribe(),Y=null,I.subscribe(U))})};
jKw=function(S,p,U){return function(Y,L){var I=U,V=p,W=0;Y.subscribe(new nu(L,function(O){var D=W++;V=I?S(V,O,D):(I=!0,O);L.next(V)},void 0,void 0))}};
rAG=function(S){S=S===void 0?null:S;return Q9(function(p,U){var Y=!1;p.subscribe(new nu(U,function(L){Y=!0;U.next(L)},void 0,function(){Y||U.next(S);
U.complete()}))})};
aO=function(){return Q9(function(S,p){S.subscribe(new nu(p,BE))})};
Cu=function(S){return Q9(function(p,U){p.subscribe(new nu(U,function(){return U.next(S)}))})};
xa=function(S){return S<=0?function(){return Zo}:Q9(function(p,U){var Y=0;
p.subscribe(new nu(U,function(L){++Y<=S&&(U.next(L),S<=Y&&U.complete())}))})};
EV=function(S){var p=p===void 0?AA:p;var U;S=(U=S)!=null?U:Glr;return Q9(function(Y,L){var I,V=!0;Y.subscribe(new nu(L,function(W){var O=p(W);if(V||!S(I,O))V=!1,I=O,L.next(W)}))})};
Glr=function(S,p){return S===p};
Rfu=function(S){S=S===void 0?hfu:S;return Q9(function(p,U){var Y=!1;p.subscribe(new nu(U,function(L){Y=!0;U.next(L)},void 0,function(){return Y?U.complete():U.error(S())}))})};
hfu=function(){return new F1X};
mP=function(){var S=_.jO.apply(0,arguments);return function(p){return IOX(p,Do.apply(null,_.jo(S)))}};
XEG=function(S){return Q9(function(p,U){var Y=0;p.subscribe(new nu(U,function(L){S.call(void 0,L,Y++,p)||(U.next(!1),U.complete())},void 0,function(){U.next(!0);
U.complete()}))})};
Pxq=function(){return Q9(function(S,p){var U=[];S.subscribe(new nu(p,function(Y){U.push(Y);1<U.length&&U.shift()},void 0,function(){for(var Y=_.d(U),L=Y.next();!L.done;L=Y.next())p.next(L.value);
p.complete()},function(){U=null}))})};
Zhr=function(S,p){var U=arguments.length>=2;return function(Y){return Y.pipe(S?eo(function(L,I){return S(L,I,Y)}):AA,Pxq(),U?rAG(p):Rfu(function(){return new F1X}))}};
$a=function(S){var p=ix(S)?S:function(){return S};
return ix()?Q9(function(U,Y){var L=p();(void 0)(L).subscribe(Y).add(U.subscribe(L))}):function(U){var Y=new v4(U,p);
ix(U==null?void 0:U.lift)&&(Y.lift=U.lift);Y.source=U;Y.subjectFactory=p;return Y}};
N2=function(S){var p=new iV(S,void 0,void 0);return function(U){return $a(function(){return p})(U)}};
B4=function(S,p){return Q9(jKw(S,p,arguments.length>=2))};
q2=function(){var S=_.jO.apply(0,arguments),p=H4(S);return Q9(function(U,Y){(p?IOX(S,U,p):IOX(S,U)).subscribe(Y)})};
A3=function(S){return Q9(function(p,U){var Y=null,L=0,I=!1;p.subscribe(new nu(U,function(V){var W;(W=Y)==null||W.unsubscribe();W=L++;Ya(S(V,W)).subscribe(Y=new nu(U,function(O){return U.next(O)},void 0,function(){Y=null;
I&&!Y&&U.complete()}))},void 0,function(){(I=!0,!Y)&&U.complete()}))})};
t3=function(S,p){p=p===void 0?!1:p;return Q9(function(U,Y){var L=0;U.subscribe(new nu(Y,function(I){var V=S(I,L++);(V||p)&&Y.next(I);!V&&Y.complete()}))})};
c4=function(S,p,U){var Y=ix(S)||p||U?{next:S,error:p,complete:U}:S;return Y?Q9(function(L,I){L.subscribe(new nu(I,function(V){var W;(W=Y.next)==null||W.call(Y,V);I.next(V)},function(V){var W;
(W=Y.error)==null||W.call(Y,V);I.error(V)},function(){var V;
(V=Y.complete)==null||V.call(Y);I.complete()}))}):AA};
sKe=function(){var S=_.jO.apply(0,arguments),p=$hE(S);return Q9(function(U,Y){for(var L=S.length,I=Array(L),V=S.map(function(){return!1}),W=!1,O={i$jscomp$273:0};O.i$jscomp$273<L;O={i$jscomp$273:O.i$jscomp$273},O.i$jscomp$273++)Ya(S[O.i$jscomp$273]).subscribe(new nu(Y,function(D){return function(z){I[D.i$jscomp$273]=z;
W||V[D.i$jscomp$273]||(V[D.i$jscomp$273]=!0,(W=V.every(AA))&&(V=null))}}(O),void 0,BE));
U.subscribe(new nu(Y,function(D){W&&(D=[D].concat(_.jo(I)),Y.next(p?p.apply(null,_.jo(D)):D))}))})};
efe=function(S){var p=[],U=0,Y;for(Y in S)p[U++]=Y;return p};
gqk=function(S,p){for(var U in S)if(S[U]==p)return!0;return!1};
uqr=function(S,p,U){for(var Y in S)if(p.call(U,S[Y],Y,S))return Y};
wEd=function(S){if(!S||typeof S!=="object")return S;if(typeof S.clone==="function")return S.clone();if(typeof Map!=="undefined"&&S instanceof Map)return new Map(S);if(typeof Set!=="undefined"&&S instanceof Set)return new Set(S);if(S instanceof Date)return new Date(S.getTime());var p=Array.isArray(S)?[]:typeof ArrayBuffer!=="function"||typeof ArrayBuffer.isView!=="function"||!ArrayBuffer.isView(S)||S instanceof DataView?{}:new S.constructor(S.length),U;for(U in S)p[U]=wEd(S[U]);return p};
lOd=function(S){var p=arguments.length;if(p==1&&Array.isArray(arguments[0]))return lOd.apply(null,arguments[0]);if(p%2)throw Error("oa");for(var U={},Y=0;Y<p;Y+=2)U[arguments[Y]]=arguments[Y+1];return U};
aOw=function(S){var p=arguments.length;if(p==1&&Array.isArray(arguments[0]))return aOw.apply(null,arguments[0]);for(var U={},Y=0;Y<p;Y++)U[arguments[Y]]=!0;return U};
_.Sb=function(S){return new b8G(S[0].toLowerCase())};
fOR=function(S){try{return new URL(S,window.document.baseURI)}catch(p){return new URL("about:invalid")}};
Cxd=function(S,p){var U=p.createRange();U.selectNode(p.body);S=Fq(S);return U.createContextualFragment(Xq(S))};
xJG=function(S){S=S.nodeName;return typeof S==="string"?S:"FORM"};
EqE=function(S){S=S.nodeType;return S===1||typeof S!=="number"};
p_=function(S,p,U){S.setAttribute(p,U)};
mJG=function(S){return S.parts.map(function(p){var U=p.descriptor;return""+p.url+(U?" "+U:"")}).join(" , ")};
_.UF=function(S){var p=_.jO.apply(1,arguments);if(p.length===0)return _.dc(S[0]);for(var U=S[0],Y=0;Y<p.length;Y++)U+=encodeURIComponent(p[Y])+S[Y+1];return _.dc(U)};
_.YE=function(S,p){S=_.Tl(S).toString();var U=S.split(/[?#]/),Y=/[?]/.test(S)?"?"+U[1]:"";return oqw(U[0],Y,/[#]/.test(S)?"#"+(Y?U[2]:U[1]):"",p)};
oqw=function(S,p,U,Y){function L(V,W){V!=null&&(Array.isArray(V)?V.forEach(function(O){return L(O,W)}):(p+=I+encodeURIComponent(W)+"="+encodeURIComponent(V),I="&"))}
var I=p.length?"&":"?";Y.constructor===Object&&(Y=Object.entries(Y));Array.isArray(Y)?Y.forEach(function(V){return L(V[1],V[0])}):Y.forEach(L);
return _.dc(S+p+U)};
L_=function(S,p,U,Y){this.top=S;this.right=p;this.bottom=U;this.left=Y};
vqr=function(S){S=S.global;if(S.PendingGetBeacon)return S.PendingGetBeacon};
IY=function(S){return function(p){return p.pipe($Je(S,$a(new Ma)))}};
dO=function(S){return function(p){return p.pipe($Je(S,N2(1)))}};
$Je=function(S,p){function U(Y){return new So(function(L){return Y.subscribe(function(I){Vs(S,function(){return void L.next(I)},3)},function(I){Vs(S,function(){return void L.error(I)},3)},function(){Vs(S,function(){return void L.complete()},3)})})}
return tA(U,NZe(),p,J3(),U)};
Bcw=function(S){var p=ihu(S);return p===null?new TN(null):p.pipe(y9(function(U){U=U.serialize();if(Ncd)U=_.UX.btoa(U);else{for(var Y=[],L=0,I=0;I<U.length;I++){var V=U.charCodeAt(I);V>255&&(Y[L++]=V&255,V>>=8);Y[L++]=V}U=_.Ad(Y)}return U}),xa(1),dO(S.queue))};
q3k=function(S){var p=p===void 0?{}:p;if(typeof Event==="function")return new Event(S,p);if(typeof document!=="undefined"){var U=document.createEvent("CustomEvent");U.initCustomEvent(S,p.bubbles||!1,p.cancelable||!1,p.detail);return U}throw Error();};
AAq=function(S){return typeof S==="string"?document.getElementById(S):S};
cAw=function(S){var p=!1;p=p===void 0?!1:p;if(S.tagName==="IMG"){if(S.complete&&(!S.naturalWidth||!S.naturalHeight))return!0;var U;if(p&&((U=S.style)==null?void 0:U.display)==="none")return!0}var Y,L;return tOk.test((Y=S.getAttribute("width"))!=null?Y:"")&&tOk.test((L=S.getAttribute("height"))!=null?L:"")};
SVw=function(S,p){if(S.tagName==="IMG")return S.naturalWidth&&S.naturalHeight?!0:!1;try{if(S.readyState)var U=S.readyState;else{var Y,L;U=(Y=S.contentWindow)==null?void 0:(L=Y.document)==null?void 0:L.readyState}return U==="complete"}catch(I){return p===void 0?!1:p}};
p4e=function(S){S||(S=function(p,U,Y){p.addEventListener(U,Y)});
return S};
Mod=function(S,p){var U=U2G();U=U===void 0?new YVq:U;if(S=AAq(S)){var Y=p4e(Y);for(var L=!1,I=function(Z){L||(L=!0,p(Z))},V,W=2,O=0;O<LPk.length;++O)if(LPk[O]===S.tagName){W=3;
V=[S];break}V||(V=S.querySelectorAll(LPk.join(",")));var D=0,z=0,Q=!0,J=S=!1;O={};for(var K=0;K<V.length;O={isImg:void 0},K++){var G=V[K];if(!cAw(G))if(O.isImg=G.tagName==="IMG",SVw(G,U.crossDomainLoadedDefault))S=!0,O.isImg&&(Q=!0);else{D++;var X=function(Z){return function(l){D--;!D&&Q&&I(W);Z.isImg&&(l=l&&l.type==="error",z--,l||(Q=!0),!z&&J&&Q&&I(W))}}(O);
Y(G,"load",X);O.isImg&&(z++,Y(G,"error",X))}}z===0&&(Q=!0);V=null;V=_.UX.document.readyState==="complete";if(D===0&&!S&&V)W=5;else if(D||!S){Y(_.UX,"load",function(){!U.pendingImagesBlockLoad||!z&&Q?I(4):J=!0});
return}I(W)}};
IoG=function(S,p,U){if(S)for(var Y=0;S!=null&&Y<500&&!U(S);++Y)S=p(S)};
d2E=function(S,p){IoG(S,function(U){try{return U===U.parent?null:U.parent}catch(Y){}return null},p)};
Voq=function(S,p){if(S.tagName=="IFRAME")p(S);else{S=S.querySelectorAll("IFRAME");for(var U=0;U<S.length&&!p(S[U]);++U);}};
T3E=function(S){return(S=S.ownerDocument)&&(S.parentWindow||S.defaultView)||null};
WPu=function(S,p,U){try{var Y=JSON.parse(U.data)}catch(V){}if(typeof Y==="object"&&Y&&Y.type==="creativeLoad"){var L=T3E(S);if(U.source&&L){var I;d2E(U.source,function(V){try{if(V.parent===L)return I=V,!0}catch(W){}});
I&&Voq(S,function(V){if(V.contentWindow===I)return p(Y),!0})}}};
OuN=function(S){return typeof S==="string"?document.getElementById(S):S};
zze=function(){var S={};return S[0]=_.UF(k7N,"current"),S[1]=_.UF(HuG),S[2]=_.UF(D2k),S};
Wi=function(S,p){return S.left===p.left&&S.top===p.top&&S.width===p.width&&S.height===p.height};
QOe=function(S,p){return{left:Math.max(S.left,p.left),top:Math.max(S.top,p.top),width:Math.max(0,Math.min(S.left+S.width,p.left+p.width)-Math.max(S.left,p.left)),height:Math.max(0,Math.min(S.top+S.height,p.top+p.height)-Math.max(S.top,p.top))}};
naw=function(S,p){return{left:Math.round(S.left+p.x),top:Math.round(S.top+p.y),width:S.width,height:S.height}};
J3e=function(S,p,U){if(S&&p!==null&&p!=p.top){if(!p.top)return new _.OF(-12245933,-12245933);p=p.top}try{return(U===void 0?0:U)?(new _.OF(p.innerWidth,p.innerHeight)).round():_.kE(p).round()}catch(Y){return new _.OF(-12245933,-12245933)}};
y3N=function(S,p,U){try{if(S){if(!p.top)return new L_(-12245933,-12245933,-12245933,-12245933);p=p.top}var Y=J3e(S,p,U),L=Y.height,I=Y.width;if(I===-12245933)return new L_(I,I,I,I);var V=Hi(DD(p.document)),W=V.x,O=V.y;return new L_(O,W+I,O+L,W)}catch(D){return new L_(-12245933,-12245933,-12245933,-12245933)}};
KPX=function(S){var p;return(p=S.google_tag_data)!=null?p:S.google_tag_data={}};
buw=function(S){var p,U;return typeof((p=S.navigator)==null?void 0:(U=p.userAgentData)==null?void 0:U.getHighEntropyValues)==="function"};
r3k=function(S){if(!buw(S))return null;var p=KPX(S);if(p.uach_promise)return p.uach_promise;S=S.navigator.userAgentData.getHighEntropyValues(jOe).then(function(U){p.uach!=null||(p.uach=U);return U});
return p.uach_promise=S};
w4N=function(S){var p;return G7w(hzw(RzX(FPk(X4k(PVX(Zur(sOd(ezX(new gaR,S.architecture||""),S.bitness||""),S.mobile||!1),S.model||""),S.platform||""),S.platformVersion||""),S.uaFullVersion||""),((p=S.fullVersionList)==null?void 0:p.map(function(U){var Y=new u5r;Y=_.zN(Y,1,U.brand);return _.zN(Y,2,U.version)}))||[]),S.wow64||!1)};
low=function(S){var p,U;return(U=(p=r3k(S))==null?void 0:p.then(function(Y){return w4N(Y)}))!=null?U:null};
aow=function(S,p){return new So(function(U){var Y=!1,L=Array(p.length);L.fill(void 0);var I=new Set,V=new Set,W=function(Q,J){S.running?(L[J]=Q,I.add(J),Y||(Y=!0,Vs(S,function(){Y=!1;U.next(_.qG(L))},1))):U.error(new Qs(J))},O=function(Q,J){V.add(J);
I.add(J);Vs(S,function(){U.error(Q)},1)},D=function(Q){V.add(Q);
Vs(S,function(){V.size===p.length&&U.complete()},1)},z=p.map(function(Q,J){return Q.subscribe(function(K){return void W(K,J)},function(K){return void O(K,J)},function(){return void D(J)})});
return function(){z.forEach(function(Q){return void Q.unsubscribe()})}})};
CVk=function(S,p,U){function Y(){if(p.debugChannel){var Z=p.debugChannel,l=Z.next;var a={creativeId:p.debugNames.getName(U),requiredSignals:L,signals:Object.assign({},I),hasPrematurelyCompleted:V,errorMessage:W,erroredSignalKey:O};a={specMajor:2,specMinor:0,specPatch:0,timestamp:g3(p.timeProvider.now(),new uV(0,p.timeProvider.timeline)),instanceId:p.debugNames.getName(p.symbol),creativeState:a};l.call(Z,a)}}
for(var L=Object.keys(S),I={},V=!1,W=null,O=null,D={},z=new Set,Q=[],J=[],K=_.d(L),G=K.next(),X={};!G.done;X={key$jscomp$374:void 0},G=K.next())X.key$jscomp$374=G.value,G=S[X.key$jscomp$374],G instanceof TN?(D[X.key$jscomp$374]=G.value,z.add(X.key$jscomp$374),p.debugChannel&&(I[String(X.key$jscomp$374)]=yAw(G.value))):(G=G.pipe(EV(function(Z,l){return nqd(Z)||nqd(l)?!1:Z===l}),y9(function(Z){return function(l){p.debugChannel&&(I[String(Z.key$jscomp$374)]=yAw(l),Y());
var a={};return a[Z.key$jscomp$374]=l,a}}(X)),lV(function(Z){return function(l){if(l instanceof Qs)throw new foe(String(Z.key$jscomp$374));
throw l;}}(X)),c4(function(Z){return function(){z.add(Z.key$jscomp$374)}}(X),function(Z){return function(l){O=String(Z.key$jscomp$374);
W=String(l);Y()}}(X),function(Z){return function(){z.has(Z.key$jscomp$374)||(V=!0,Y())}}(X))),J.push(X.key$jscomp$374),Q.push(G));
(S=Object.keys(I).length>0)&&Y();K=aow(p.queue,Q).pipe(lV(function(Z){if(Z instanceof Qs)throw new n_(String(J[Z.inputObservableIndex]));throw Z;}),y9(function(Z){return Object.freeze(Object.assign.apply(Object,[{},
D].concat(_.jo(Z))))}));
return(Q=Q.length>0)&&S?sV(Do(Object.freeze(D)),K):Q?K:Do(Object.freeze(D))};
x2X=function(S,p,U,Y,L){return S.performanceMonitor.timeExecution.bind(S.performanceMonitor)(733,function(){var I={};try{return p.pipe(lV(function(V){Y(Object.assign({},I,{error:V}));return Zo}),h3(function(V){try{var W=U(S,V)}catch(D){return Y(Object.assign({},I,{error:D instanceof Error?D:String(D)})),Zo}var O={};
return CVk(W,S,V.symbol).pipe(c4(function(D){O=D}),N2(1),J3()).pipe(L,lV(function(D){Y(Object.assign({},O,{error:D}));
return Zo}),mP(void 0),y9(function(){return!0}))})).pipe(B4(function(V){return V+1},0),lV(function(V){Y(Object.assign({},I,{error:V}));
return Zo}))}catch(V){return Y(Object.assign({},I,{error:V})),Zo}})()};
J9=function(S){var p=new Map;if(typeof S!=="object"||S===null)return p;Object.values(S).forEach(function(U){U&&typeof U.extrapolateToNow==="function"&&(p.has(U.clock.timeline)||p.set(U.clock.timeline,U.clock.now()))});
return p};
Ear=function(S,p){return typeof S==="string"?encodeURIComponent(S):typeof S==="number"?String(S):Array.isArray(S)?S.map(function(U){return Ear(U,p)}).join(","):S instanceof uV?S.toString():S&&typeof S.extrapolateToNow==="function"?Ear(S.extrapolateUsingTimestampMap(p).value,p):S===!0?"1":S===!1?"0":S===void 0||S===null?null:S instanceof m2G?oar(S):[S.top,
S.left,S.top+S.height,S.left+S.width].join()};
bI=function(S,p){S=Object.entries(S).map(function(U){var Y=_.d(U);U=Y.next().value;Y=Y.next().value;Y=Ear(Y,p);return Y===null?"":U+"="+Y}).filter(function(U){return U!==""});
return S.length?S.join("&"):""};
iuG=function(S,p){var U=vaR,Y=$2e;p=p===void 0?.01:p;return function(L){p>0&&Math.random()<=p&&(S.global.HTMLFencedFrameElement&&S.global.fence&&typeof S.global.fence.reportEvent==="function"&&S.global.fence.reportEvent({eventType:"active-view-error",eventData:"",destination:["buyer"]}),L=Object.assign({},L,{errorMessage:L.error instanceof Error&&L.error.message?L.error.message:String(L.error),errorStack:L.error instanceof Error&&L.error.stack?String(L.error.stack):null,errorName:L.error instanceof
Error&&L.error.name?String(L.error.name):null,errorContext:String(S.performanceMonitor.timedFunctionContext),errorEscapedQueryId:L.escapedQueryId}),U(Object.assign({},L,{payloadMapper:function(){return function(I){try{return Y(Object.assign({},I))}catch(V){return{}}}}(),
urlPrefixes:["https://pagead2.googlesyndication.com/pagead/gen_204?id=av-js&type=error&bin=17"]}),J9(L)).forEach(function(I){S.beaconFactory.makeBeacon(I).sendNow()}))}};
N3u=function(){var S=_.jO.apply(0,arguments);return function(p){var U=p.pipe(N2(1),J3());p=S.map(function(Y){return U.pipe(Y,mP(!0))});
return r3(p).pipe(xa(1),aO())}};
B3e=function(){var S=_.jO.apply(0,arguments);return function(p){var U=p.pipe(N2(1),J3());p=S.map(function(Y){return U.pipe(Y,mP(!0))});
return sV.apply(null,_.jo(p)).pipe(xa(1),aO())}};
qVk=function(S,p){return function(U){var Y=U.pipe(N2(1),J3());U=Y.pipe(S,mP(!0));Y=Y.pipe(tA(p,N2(),J3()),mP(!0));U=r3([U,Y]);return zfe(U,Y).pipe(xa(1),aO())}};
A3w=function(S,p,U){U(!0)};
tok=function(S,p){return tA(A3(function(U){var Y=S(U),L=p(U),I={};return Y&&L&&I?new So(function(V){L(Y,I,function(W){V.next(Object.assign({},U,{canEmit:W}));V.complete()});
return function(){}}):jb}),eo(function(U){return U.canEmit}))};
c3E=function(S){var p={attributes:!0,childList:!0,characterData:!0,subtree:!0};return function(U){return U.pipe(A3(function(Y){return new So(function(L){function I(){W.disconnect();O.unsubscribe()}
var V=S.MutationObserver;if(V&&Y.ref!==void 0){var W=new V(function(D){L.next(D)});
W.observe(Y.ref,p);var O=Y.JSC$7369_released.subscribe(I);return I}})}))}};
SFw=function(S){if(S.measurementDeferralState===3)return null;if(S.timeOnScreenReason!==void 0){var p=S.creativeFound===!1?"n":null;if(p!==null)return p}return S.geometricMeasurementErrors instanceof rO?"msf":S.contextValidationErrors instanceof GN?"c":S.contextVisibilityKnown===!1?"pv":S.geometricMeasurementErrors||S.contextValidationErrors?"x":null};
RY=function(S,p){return S.replace(pik,function(U,Y){try{var L=_.h9.get(p,Y);if(L==null||L.toString()==null)return U;L=L.toString();if(L==""||!_.dN(L==null?"":String(L)))return encodeURIComponent(L).replace(/%2C/g,",")}catch(I){}return U})};
UaE=function(S,p){var U=Object.assign({},S),Y=S.userAgentClientHints;U=(delete U.userAgentClientHints,U);U=S.payloadMapper(U);var L=bI(U,p);return _.Fp(S.urlPrefixes,function(I){var V="";typeof Y==="string"&&(V="&"+bI({uach:Y},p));var W={};return RY(I,(W.VIEWABILITY=L,W))+V})};
vaR=function(S,p){var U=S.payloadMapper(S),Y=bI(U,p);return Y?_.Fp(S.urlPrefixes,function(L){L=L.indexOf("?")>=0?L:L+"?";L="?&".indexOf(L.slice(-1))>=0?L:L+"&";return L+Y}):S.urlPrefixes};
YFw=function(){return tA(eo(function(S){return S!==void 0}),y9(function(S){return S}))};
LJd=function(S){return tA(y9(function(){return!0}),q2(!1),dO(S))};
Mbw=function(S){return S.length<=0?Zo:r3(S.map(function(p){var U=0;return p.pipe(y9(function(Y){return{index:U++,value:Y}}))})).pipe(eo(function(p){return p.every(function(U){return U.index===p[0].index})}),y9(function(p){return p.map(function(U){return U.value})}))};
IDE=function(S,p){S.currentState&&(S.previousState=S.currentState);S.currentState=p;S.previousState&&S.previousState.value?(p=Math.max(0,g3(p.timestamp,S.previousState.timestamp)),S.totalTime+=p,S.consecutiveTime+=p):S.consecutiveTime=0;return S};
dar=function(){return tA(B4(IDE,{totalTime:0,consecutiveTime:0}),y9(function(S){return S.totalTime}))};
VbE=function(){return tA(B4(IDE,{totalTime:0,consecutiveTime:0}),y9(function(S){return S.consecutiveTime}))};
TOX=function(S,p){return function(U){return Mbw(p.map(function(Y){return U.pipe(S(Y))}))}};
WJq=function(){var S;return tA(c4(function(p){return void(S=p.timestamp)}),VbE(),y9(function(p){return{timestamp:S,
value:Math.round(p)}}))};
O_N=function(S,p){return Wi(S.topWindowViewportExternalGeometry,p.topWindowViewportExternalGeometry)&&Wi(S.elementGeometry,p.elementGeometry)&&Wi(S.exposedViewportLocalGeometry,p.exposedViewportLocalGeometry)&&Wi(S.intersectionGeometry,p.intersectionGeometry)&&S.elementGeometrySourceName===p.elementGeometrySourceName&&S.measurementRequests===p.measurementRequests&&S.viewportGeometrySourceName===p.viewportGeometrySourceName&&S.viewportLocalAppOffset.x===p.viewportLocalAppOffset.x&&S.viewportLocalAppOffset.y===
p.viewportLocalAppOffset.y};
DaN=function(S,p){return function(U){return function(Y){var L=Y.pipe($a(new Ma),J3());Y=U.element.pipe(EV());L=L.pipe(y9(function(I){return I.value}));
return r3([Y,L,p]).pipe(y9(function(I){var V=_.d(I);I=V.next().value;var W=V.next().value;V=V.next().value;if(I.ref===void 0)var O={top:0,left:0,width:0,height:0};else{O=I.ref.getBoundingClientRect();var D=I.ref,z=S.global,Q=new _.Xp(0,0),J=Pi(_.ZD(D));if(sF(J,"parent")){do{if(J==z)var K=_.eb(D);else K=kNw(D),K=new _.Xp(K.left,K.top);Q.x+=K.x;Q.y+=K.y}while(J&&J!=z&&J!=J.parent&&(D=J.frameElement)&&(J=J.parent))}O={top:Q.y,left:Q.x,width:O.width,height:O.height}}O=naw(O,W.viewportLocalAppOffset);
z=QOe(O,W.exposedViewportLocalGeometry);Q=S.timeProvider.now();J=Object;D=J.assign;if(V!==2||S.inCrossDomainIframe||z.width<=0||z.height<=0)var G=!1;else try{var X=S.document.elementFromPoint(z.left+z.width/2,z.top+z.height/2);G=X?!H_w(X,I):!1}catch(Z){G=!1}return{timestamp:Q,value:D.call(J,{},W,{elementGeometrySourceName:"geo",intersectionGeometry:G?gO.intersectionGeometry:z,elementGeometry:O})}}),IY(S.queue))}}};
H_w=function(S,p,U){U=U===void 0?0:U;return S.ref===void 0||p.ref===void 0?!1:S.ref===p.ref||_.uI(p.ref,function(Y){return Y===S.ref})?!0:p.ref.ownerDocument&&p.ref.ownerDocument.defaultView&&p.ref.ownerDocument.defaultView===p.ref.ownerDocument.defaultView.top?!1:U<10&&p.ref.ownerDocument&&p.ref.ownerDocument.defaultView&&p.ref.ownerDocument.defaultView.frameElement?H_w(S,new wO(p.ref.ownerDocument.defaultView.frameElement),U+1):!0};
nEX=function(S){return function(p){return p.pipe(S.ResizeObserver?zHe(S):QYd(S),N2(1),J3())}};
zHe=function(S){return function(p){return p.pipe(A3(function(U){var Y=S.ResizeObserver;if(!Y||U.ref===void 0)return Do(gO.elementGeometry);var L=(new So(function(I){function V(){U.ref!==void 0&&W.unobserve(U.ref);W.disconnect();O.unsubscribe()}
if(U.ref===void 0)return I.complete(),function(){};
var W=new Y(function(D){D.forEach(function(z){I.next(z)})});
W.observe(U.ref);var O=U.JSC$7369_released.subscribe(V);return V})).pipe(w3(S.performanceMonitor,736),y9(function(I){return I.contentRect}));
return sV(Do(U.ref.getBoundingClientRect()),L)}),EV(Wi))}};
QYd=function(S){return function(p){var U=p.pipe(c3E(S)),Y=S.onResize;U=sV(p.pipe(y9(function(){return q3k("resize")})),U,Y);
return r3(p,U).pipe(w3(S.performanceMonitor,737),y9(function(L){L=_.d(L).next().value;return L.ref===void 0?void 0:L.ref.getBoundingClientRect()}),YFw(),EV(Wi))}};
KJe=function(S,p){var U=J9G(S,p).pipe(N2(1),J3());return function(Y){return function(L){L=L.pipe(A3(function(I){return I.element}),EV());
return r3([U,L]).pipe(A3(function(I){var V=_.d(I);I=V.next().value;V=V.next().value;return y9r(S,I.intersectionObserver,nEX(S),I.observations,Y,I.flushRecords,V)}),IY(S.queue))}}};
b_u=function(S){return y9(function(p){return p.value.viewportGeometrySourceName!=="nio"?p:Object.assign({},p,{value:Object.assign({},p.value,{exposedViewportLocalGeometry:lI(S,!0),topWindowViewportExternalGeometry:lI(S,!0)})})})};
jYw=function(S,p){return Do(p).pipe(S,y9(function(){return p}))};
J9G=function(S,p){return S.timeProvider.timeline!==r9q?z7(new rO(2)):S.MutationObserver?typeof IntersectionObserver==="undefined"?z7(new rO(0)):(new So(function(U){var Y=new Ma,L=new aY(Y.next.bind(Y),{threshold:[].concat(_.jo(p))});U.next({observations:Y.pipe(w3(S.performanceMonitor,735)),intersectionObserver:L,flushRecords:function(I){I=L.takeRecords(I);I.length>0&&Y.next(I)}})})).pipe(xa(1),N2(1),J3()):z7(new rO(1))};
GNE=function(S){return a3X(S.sort(function(p,U){return p.time-U.time}),i8w)};
y9r=function(S,p,U,Y,L,I,V){return new So(function(W){function O(){G||(G=!0,V.ref!==void 0&&p.unobserve(L,V.ref),z.unsubscribe(),K.unsubscribe(),J.unsubscribe(),X.unsubscribe())}
if(V.ref!==void 0){hHq(p,L);p.observe(L,V.ref);var D=new f_({timestamp:S.timeProvider.now(),value:Object.assign({},gO,{viewportGeometrySourceName:"nio",elementGeometrySourceName:"nio"})}),z=Y.pipe(h3(function(Z){return GNE(Z)}),eo(function(Z){return Z.target===V.ref}),y9(function(Z){return{timestamp:new uV(Z.time,r9q),
value:{viewportGeometrySourceName:"nio",exposedViewportLocalGeometry:Z.rootBounds||C_,topWindowViewportExternalGeometry:Z.rootBounds||lI(S,!0),measurementRequests:Q,elementGeometrySourceName:"nio",intersectionGeometry:Z.intersectionRect,elementGeometry:Z.boundingClientRect,viewportLocalAppOffset:{x:0,y:0},isIntersecting:Z.isIntersecting,isV2Visible:Z.isVisible}}}),$a(D),J3()).subscribe(W),Q=new Ma,J=Q.subscribe(function(){I(L);
W.next({timestamp:S.timeProvider.now(),value:D.value.value});V.ref!==void 0&&(p.unobserve(L,V.ref),p.observe(L,V.ref))}),K=jYw(U,V).subscribe(function(){Q.next()}),G=!1,X=V.JSC$7369_released.subscribe(function(){return O()});
return O}})};
RHe=function(S,p){var U=S.getOnBackgrounded().pipe(y9(function(){return"b"}));
return zfe(p,U).pipe(xa(1),dO(S.queue))};
xE=function(S){return function(p){var U;return p.pipe(c4(function(Y){return void(U=Y.timestamp)}),y9(function(Y){return Y.value}),S,y9(function(Y){return{timestamp:U,
value:Y}}))}};
FJX=function(S){return S.intersectionGeometry.width*S.intersectionGeometry.height/(S.elementGeometry.width*S.elementGeometry.height)};
EF=function(S,p,U){U=U===void 0?function(Y,L){return Y===L}:U;
return S.timestamp.equals(p.timestamp)&&U(S.value,p.value)};
oY=function(S,p){return p.pipe(y9(function(U){return new mJ(S.timeProvider,{timestamp:S.timeProvider.now(),value:U})}))};
Xie=function(S){return function(p){return p.pipe(sKe(S),y9(function(U){var Y=_.d(U);U=Y.next().value;Y=Y.next().value;var L=U.value;return{timestamp:U.timestamp,value:L>=1?!0:L<=0?!1:L>=Y}}))}};
Z_u=function(){return tA(eo(function(S,p){return p>0}),PIu,q2(-1),EV())};
sYw=function(S,p,U){return S?r3([p,U]).pipe(eo(function(Y){var L=_.d(Y);Y=L.next().value;L=L.next().value;return Y.timestamp.equals(L.timestamp)}),y9(function(Y){var L=_.d(Y);
Y=L.next().value;L=L.next().value;return Y.value>L.value?Y:L})):p};
upR=function(S){return function(p){var U=p.pipe(eHE),Y=p.pipe(gEX);return S instanceof So?S.pipe(A3(function(L){return sYw(L,U,Y)})):sYw(S.value,U,Y)}};
vEE=function(S,p,U,Y){var L=Y.geometryIsOccluded,I=Y.exposureThreshold,V=Y.wasLargeAdAtRender,W=Y.allowLargeAdThreshold,O=Y.largeAdExposureThreshold,D=Y.mayUseViewportShareExposure,z=Y.hasMeasurementStarted;Y=Y.useIntersectionObserverV2;p=wiR(S,U,p);U=lDe(S,U);Y=aDw(p,Y);var Q=fDX(S,L,D,p),J=Q.pipe(y9(function(A){return A.value}),EV(),dO(S),B4(function(A,q){return Math.max(A,q)},0)),K=Q.pipe(y9(function(A){return A.value}),Z_u(),dO(S)),G=p.pipe(CIk,y9(function(A){return A.value}),xa(2),EV(),dO(S));
V=xae(S,p,V,W);var X=V.pipe(q2(!1),EV(),y9(function(A){return A?O:I}));
W=Q.pipe(Xie(X),EV(),dO(S));var Z=r3([W,p]).pipe(eo(function(A){var q=_.d(A);A=q.next().value;q=q.next().value;return A.timestamp.equals(q.timestamp)}),y9(function(A){var q=_.d(A);
A=q.next().value;q=q.next().value;return{visible:A.value,geometry:q.value.elementGeometry}}),B4(function(A,q){return!q.visible&&A.visible?A:q},{visible:!1,
geometry:C_}),y9(function(A){return A.geometry}),q2(C_),dO(S),EV(Wi));
D=D instanceof So?D.pipe(EV(),Cu()):jb;X=r3([D,X]).pipe(Cu());var l=p.pipe(eo(function(A){return A.value.viewportGeometrySourceName!=="ns"&&A.value.elementGeometrySourceName!=="ns"}),B4(function(A){return A+1},0),q2(0),dO(S)),a=U.pipe(Cu(!0),q2(!1),dO(S));
a=r3([z,a]).pipe(y9(function(A){var q=_.d(A);A=q.next().value;q=q.next().value;return A&&!q}),dO(S));
var N=p.pipe(EEk,EV()),m=N.pipe(y9(function(A){return A.value}),B4(function(A,q){return Math.max(A,q)},0),EV(),dO(S));
S=N.pipe(y9(function(A){return A.value}),Z_u(),dO(S));
return{shouldResetExposureSignals:D,shouldResetViewabilitySignals:X,geometrySignals:{readyGeometryWithDefault:p,measurementStrategy:p.pipe(maw),creativePosition:Z.pipe(EV(Wi)),visible:W.pipe(EV(EF)),timestampedExposure:Q.pipe(EV(EF)),maximumExposure:J,minimumExposure:K,browserSize:p.pipe(oEe,EV(_.dm)),timestampedScreenShare:N,maxScreenShare:m,minScreenShare:S,geometricMeasurementErrors:U,measurementRequests:p.pipe(y9(function(A){return A.value.measurementRequests})),
isLargeAd:V,geometryIsOccluded:L,hasMeasurementStarted:z,geometryMeasurable:a,validMeasurementCount:l,loadTimeExposure:G,v2VisibilityBitVector:Y}}};
lDe=function(S,p){return p.pipe(eo(function(){return!1}),y9(function(U){return U}),lV(function(U){return vi(new TN(U),S)}))};
wiR=function(S,p,U){return p.pipe(HhX(jb),dO(S)).pipe(EV(function(Y,L){return EF(Y,L,O_N)}),q2({timestamp:U.now(),
value:gO}),dO(S))};
fDX=function(S,p,U,Y){U=Y.pipe(upR(U),xE(y9(function(L){return Math.round(L*100)/100})),dO(S));
return p instanceof TN?U:r3([U,p]).pipe(y9(function(L){var I=_.d(L);L=I.next().value;I=I.next().value;return{timestamp:I.timestamp.maximum(L.timestamp),value:I.value?0:L.value}}),EV(EF),dO(S))};
xae=function(S,p,U,Y){p=[p.pipe(y9(function(L){return L.value.elementGeometry.width*L.value.elementGeometry.height>=242500}))];
U instanceof So&&p.push(U.pipe(y9(function(L){return!!L})));
U=r3(p);return Y?U.pipe(y9(function(L){return L.some(function(I){return I})}),q2(!1),EV(),dO(S)):vi(new TN(!1),S)};
aDw=function(S,p){S=r3([S,p]).pipe(y9(function(L){var I=_.d(L);L=I.next().value;if(I.next().value&&L.value.isIntersecting)return L.value.isV2Visible}),EV());
var U=S.pipe(y9(function(L){return L===void 0?!0:L}),B4(function(L,I){return L||!I},!1)),Y=S.pipe(B4(function(L,I){return I===void 0?L:I?!1:L!=null?L:!0},void 0),y9(function(L){return!!L}));
return r3([p,QKe(S,U,Y)]).pipe(y9(function(L){var I=_.d(L);L=I.next().value;var V=_.d(I.next().value);I=V.next().value;var W=V.next().value;V=V.next().value;var O=0;if(!L)return 0;if(I===void 0)return 16;I&&(O|=1);I||(O|=2);W&&(O|=4);V&&(O|=8);return O}))};
BON=function(S,p,U,Y,L){var I=$E.timeThresholdMs;var V=V===void 0?new $aN(p,Y):V;return(new So(function(W){var O=U.pipe(q2(void 0),A3(function(){return i_G(L)})).pipe(y9(function(D){var z=D.value;
D=D.timestamp;var Q=z.visible;z=z.consecutiveViewTime;var J=z>=I;J||!Q?iI(V):(D=Math.max(0,g3(p.now(),D)),NOR(V,Math.max(0,I-z-D)));return J}),B4(function(D,z){return z||D},!1),EV()).subscribe(W);
return function(){V.dispose();O.unsubscribe()}})).pipe(t3(function(W){return!W},!0),dO(S))};
i_G=function(S){return Mbw([S,S.pipe(WJq())]).pipe(y9(function(p){var U=_.d(p);p=U.next().value;U=U.next().value;return{timestamp:p.timestamp,value:{visible:p.value,consecutiveViewTime:U.value}}}),EV(function(p,U){return EF(p,U,function(Y,L){return Y.consecutiveViewTime===L.consecutiveViewTime&&Y.visible===L.visible})}))};
qFG=function(){return tA(VbE(),B4(function(S,p){return Math.max(S,p)},0),y9(function(S){return Math.round(S)}))};
A9q=function(S){return tA(Xie(Do(S)),qFG())};
tbk=function(S,p){return p instanceof So?p.pipe(A3(function(U){return(U=U?15:null)?z7(new rO(U)):S})):(p=p.value?15:null)?z7(new rO(p)):S};
c9d=function(S){var p=new rO(13);if(S.length<1)return{chain:Zo,capturedErrors:Zo};var U=new Ma,Y=S[0];return{chain:S.slice(1).reduce(function(L,I){return L.pipe(lV(function(V){U.next(V);return I}))},Y).pipe(lV(function(L){U.next(L);
return z7(p)}),$a(new Ma),J3()),
capturedErrors:U}};
Srq=function(S,p){var U=S.pipe($a(new Ma),J3());return A3(function(Y){return U.pipe(p(Y))})};
Udu=function(S,p){if(S.inCrossDomainIframe)return z7(new rO(6));var U=new Ma;return sV(Do({}),p,U).pipe(y9(function(){return{timestamp:S.timeProvider.now(),value:{viewportGeometrySourceName:"geo",exposedViewportLocalGeometry:pmE(S),topWindowViewportExternalGeometry:lI(S,!0),measurementRequests:U,viewportLocalAppOffset:{x:0,y:0}}}}),IY(S.queue))};
pmE=function(S){var p=lI(S,!1);if(!S.inIframe||!Na(S.global.parent)||S.global.parent===S.global)return p;var U=new Bi(S.global.parent,S.debugChannel);U.beaconFactory=S.beaconFactory;U=pmE(U);S=S.global.frameElement.getBoundingClientRect();return QOe(naw(QOe(U,S),{x:p.left-S.left,y:p.top-S.top}),p)};
YrN=function(S){if(S.prerendering)return 3;var p;return(p={visible:1,hidden:2,prerender:3,preview:4,unloaded:5,"":0}[S.visibilityState||S.webkitVisibilityState||S.mozVisibilityState||""])!=null?p:0};
LzG=function(S){return S.document.JSC$7380_onVisibilityChange.pipe(y9(function(p){return p==="visible"}),EV(),dO(S.queue))};
M$k=function(S,p,U){var Y;return p.pipe(EV(),A3(function(L){return U.pipe(y9(function(){if(!Y){Y=!0;try{L.next()}finally{Y=!1}}return!0}))}),q2(!1),dO(S.queue))};
I1e=function(S){return tA(xE(y9(function(p){return p>=1?!0:p<=0?!1:p>=S})),dar(),y9(function(p){return Math.round(p)}))};
V$w=function(S,p,U,Y,L){var I=ddq;if(I.length>1)for(var V=0;V<I.length-1;V++)if(I[V]<I[V+1])throw Error();V=L.pipe(q2(void 0),A3(function(){return U.pipe(WJq())}),EV(),dO(S));
L=L.pipe(q2(void 0),A3(function(){return U.pipe(qFG())}),EV(),dO(S));
return{totalMeasurementTime:Y.pipe(q2(void 0),A3(function(){return p.pipe(y9(function(W){return{timestamp:W.timestamp,value:!0}}),dar())}),EV(),dO(S)),
totalUnviewedTime:Y.pipe(q2(void 0),A3(function(){return p.pipe(y9(function(W){return{timestamp:W.timestamp,value:W.value===0}}),dar())}),EV(),dO(S)),
maxTimeOnScreen:Y.pipe(q2(void 0),A3(function(){return p.pipe(TOX(A9q,I))}),EV(_.dm),dO(S)),
timeOnScreen:Y.pipe(q2(void 0),A3(function(){return p.pipe(TOX(I1e,I),y9(function(W){return W.map(function(O,D){return D>0?O-W[D-1]:O})}))}),EV(_.dm),dO(S)),
maxConsecutiveViewTime:L,consecutiveViewTime:V.pipe(EV(EF),dO(S))}};
WzG=function(S){var p=!0;p=p===void 0?!1:p;return tA(A3(function(U){return T5w(S.document,U,p)}),dO(S.queue))};
O2r=function(S,p,U){var Y=U.pipe(y9(function(L){return{value:L,timestamp:S.timeProvider.now()}}),EV(EF));
return p instanceof So?p.pipe(EV(),A3(function(L){return L?vi(new TN({value:!1,timestamp:S.timeProvider.now()}),S.queue):Y})):p.value===!1?Y:new TN(!1)};
krk=function(S,p,U,Y,L,I,V){var W=$E;p=p instanceof So?p.pipe(q2(!1),EV()):p;var O=!S.isMobile();U=O2r(S,U,Y);S=V.measurableCreative.pipe(LJd(S.queue));return Object.assign({},W,{geometryIsOccluded:U,wasLargeAdAtRender:L,allowLargeAdThreshold:O,mayUseViewportShareExposure:p,hasMeasurementStarted:S,useIntersectionObserverV2:I})};
Ddq=function(S,p,U,Y,L,I){var V=1;I=I===void 0?!0:I;V=V===void 0?.01:V;var W=W===void 0?S.timeProvider.intervalObservable(100).pipe(dO(S.queue)):W;return S.performanceMonitor.timeExecution(916,function(){return H2N(S,p.pipe(IY(S.queue)),U.pipe(IY(S.queue)),Y,L,I,V,W)})()};
H2N=function(S,p,U,Y,L,I,V,W){var O=LzG(S).pipe(y9(function(z){return!z})),D=new zRR(S,[new QWd(S,ddq),
new nYu(S,W)]);W=N3u(JYG,yYw);return x2X(S,p,function(z,Q){var J=vi(new TN(Q.element),z.queue).pipe(WzG(z),dO(z.queue)),K={loadedElement:J,shouldMeasure:J.pipe(Cu(!0)),measurableCreative:J.pipe(y9(function(A){var q=q===void 0?Symbol():q;return Object.freeze({symbol:q,element:vi(new TN(A),z.queue)})})),
creativeSearchResult:vi(new TN("mue"),z.queue)},G=new TN(!1),X=new TN(!1),Z=new TN(17),l=new TN(!1),a=new TN(!1),N=vi(qa,z.queue);G=D.buildGeometrySource(K,{inApp:G,useV2:!1,requestSource:vi(Z,z.queue)}).geometrySource;K=krk(z,l,X,O,a,N,K);X=vEE(z.queue,z.timeProvider,G,K);K=X.geometrySignals;l=X.shouldResetViewabilitySignals;X=V$w(z.queue,K.timestampedExposure,K.visible,X.shouldResetExposureSignals,l);l=BON(z.queue,z.timeProvider,l,K.measurementRequests,K.visible);a=U.pipe(eo(function(A){return A===
Q.element.ref}),y9(function(){return"ur"}));
N=K1w(z.timeProvider,L).pipe(Cu("t"));a=RHe(z,sV(a,N));N=M$k(z,K.measurementRequests,a.pipe(eo(function(A){return A!==null})));
G=a.pipe(eo(function(A){return A!==null}),y9(function(){return YrN(z.global.document)===1}));
var m=Kzu(z.document);return Object.assign({},{beaconFactory:new TN(z.beaconFactory),context:new TN(z),inferredPingId:new TN("lidar2"),timeOnScreenPingId:new TN("lidartos"),binaryContext:new TN(17),binaryVersion:new TN(Y),requestSource:Z,contextValidationErrors:new TN(z.validate()?null:new GN),contextVisibilityKnown:new TN(m),payloadMapper:new TN($2e),endOfSessionReason:a,timeOnScreenReason:a,requestMeasurementOnEndOfSession:N,hasImpressionFired:b2e,crossDomainIframeState:new TN(z.inCrossDomainIframe?
1:void 0),inStatefulBeaconExperiment:qa,inFetchLaterBeaconExperiment:qa,isTurtlex:qa,turtlexReportEventData:new TN(""),reportFencedFrameEvent:jb,isViewableAttributionEnabled:qa,inViewableAttributionExperiment:new TN(0),fetchBeaconFactory:jb,supportsPendingBeacon:qa,supportsFetchLater:qa,emit:new TN(A3w),beginToRenderEvent:new TN(Symbol()),activeViewUnmeasurableEvent:new TN(Symbol()),activeViewViewableEvent:new TN(Symbol()),creativeFound:b2e,immediateUrlPrefixes:new TN(Q.immediateUrls),timeOnScreenUrlPrefixes:new TN(Q.timeOnScreenUrls),
cpmavUrls:jb,viewableRelayUrls:jb,measurementDeferralState:new TN(2),urlSerializer:new TN(UaE),viewUrlSerializer:new TN(jWq),isCreativeLoaded:J.pipe(LJd(z.queue)),pageVisible:O.pipe(y9(function(A){return!A})),
eosPageVisible:G,timestampedExposureHistory:K.timestampedExposure.pipe(B4(function(A,q){A.push(q);return A},[]))},K,{viewable:oY(z,l),
maxTimeOnScreen:oY(z,X.maxTimeOnScreen),timeOnScreen:oY(z,X.timeOnScreen),maxConsecutiveViewTime:oY(z,X.maxConsecutiveViewTime),consecutiveViewTime:X.consecutiveViewTime.pipe(y9(function(A){return new mJ(z.timeProvider,A)})),
totalMeasurementTime:oY(z,X.totalMeasurementTime),totalUnviewedTime:oY(z,X.totalUnviewedTime),userAgentClientHints:Bcw(z),clientOrderPingCounter:new TN(new m2G)})},iuG(S,V),B3e(I?qVk(W,rYN):qVk(W,Grw),hRw))};
RRN=function(S){var p=_.jO.apply(1,arguments).filter(Boolean).join("&");if(!p)return S;var U=S.match(/[?&]adurl=/);return U?S.slice(0,U.index+1)+p+"&"+S.slice(U.index+1):S+(S.indexOf("?")<0?"?":"&")+p};
A9=function(S,p){return p?"&"+S+"="+encodeURIComponent(p):""};
FzN=function(){try{var S,p;return!!((S=window)==null?0:(p=S.top)==null?0:p.location.href)&&!1}catch(U){return!0}};
_.t9=function(S){S&&typeof S.dispose=="function"&&S.dispose()};
_.ci=function(S){for(var p=0,U=arguments.length;p<U;++p){var Y=arguments[p];_.Ae(Y)?_.ci.apply(null,Y):_.t9(Y)}};
P9w=function(){var S=Xmr();S=S===void 0?"bevasrsg":S;return new Promise(function(p){var U=window===window.top?window:FzN()?window:window.top,Y=U[S],L;((L=Y)==null?0:L.bevasrs)?p(new S$(Y.bevasrs)):(Y||(Y={},Y=(Y.nqfbel=[],Y),U[S]=Y),Y.nqfbel.push(function(I){p(new S$(I))}))})};
Z2X=function(S){var p={c:S.rM,e:S.qhV,mc:S.tIh,me:S.f54};S.tD&&(p.co={c:S.tD.qxU,a:S.tD.jd4,s:S.tD.lHH});return p};
sWG=function(S){var p,U,Y={rM:S.c,qhV:S.e,tIh:(p=S.mc)!=null?p:!1,f54:(U=S.me)!=null?U:!1};S.co&&(Y.tD={qxU:S.co.c,jd4:S.co.a,lHH:S.co.s});return Y};
eRk=function(S){return function(){var p;return _.T(function(U){if(U.nextAddress==1)return _.k(U,S(),2);p=U.yieldResult;return U.return({f:function(){return p.ueB()},
c:function(Y){return p.hGk(Y)},
m:function(Y){return p.fC(sWG(Y))},
mws:function(Y){return p.sO(sWG(Y))}})})}};
gYk=function(S,p){var U=Xmr();U=U===void 0?"bevasrsg":U;p={s:function(I){var V;return S.snapshot(Object.assign({},I.c&&{rM:I.c},I.s&&{vH6:I.s},{fXt:(V=I.p)!=null?V:!0}))},
e:function(I){var V;return void((V=S.xc6)==null?void 0:V.call(S,I))},
c:function(I,V){return S.vK6(I,V)},
p:S.iaC,l:function(){return S.v9G()},
wpc:p?eRk(p):void 0};var Y=window===window.top?window:FzN()?window:window.top,L=Y[U];if(L){L.bevasrs=p;if(L.nqfbel!==void 0)for(U=_.d(L.nqfbel),Y=U.next();!Y.done;Y=U.next())Y=Y.value,Y(p);L.nqfbel=void 0}else L={},L=(L.bevasrs=p,L.nqfbel=void 0,L),Y[U]=L};
wmN=function(S){var p=p===void 0?49:p;var U=[];_.p2(S,uaw,6,_.Ur()).forEach(function(Y){_.YY(Y,2)<=p&&U.push(_.YY(Y,1))});
return U};
l1R=function(S){var p=p===void 0?49:p;var U=[];_.p2(S,uaw,6,_.Ur()).forEach(function(Y){_.YY(Y,2)>p&&U.push(_.YY(Y,1))});
return U};
a1w=function(S){S.then(function(){},function(){})};
L2=function(S){return{fieldType:1,fieldName:S}};
Md=function(S){return{fieldType:2,fieldName:S}};
_.IW=function(S){return{fieldType:3,fieldName:S}};
f1q=function(){function S(){L[0]=1732584193;L[1]=4023233417;L[2]=2562383102;L[3]=271733878;L[4]=3285377520;z=D=0}
function p(Q){for(var J=V,K=0;K<64;K+=4)J[K/4]=Q[K]<<24|Q[K+1]<<16|Q[K+2]<<8|Q[K+3];for(K=16;K<80;K++)Q=J[K-3]^J[K-8]^J[K-14]^J[K-16],J[K]=(Q<<1|Q>>>31)&4294967295;Q=L[0];var G=L[1],X=L[2],Z=L[3],l=L[4];for(K=0;K<80;K++){if(K<40)if(K<20){var a=Z^G&(X^Z);var N=1518500249}else a=G^X^Z,N=1859775393;else K<60?(a=G&X|Z&(G|X),N=2400959708):(a=G^X^Z,N=3395469782);a=((Q<<5|Q>>>27)&4294967295)+a+l+N+J[K]&4294967295;l=Z;Z=X;X=(G<<30|G>>>2)&4294967295;G=Q;Q=a}L[0]=L[0]+Q&4294967295;L[1]=L[1]+G&4294967295;L[2]=
L[2]+X&4294967295;L[3]=L[3]+Z&4294967295;L[4]=L[4]+l&4294967295}
function U(Q,J){if(typeof Q==="string"){Q=unescape(encodeURIComponent(Q));for(var K=[],G=0,X=Q.length;G<X;++G)K.push(Q.charCodeAt(G));Q=K}J||(J=Q.length);K=0;if(D==0)for(;K+64<J;)p(Q.slice(K,K+64)),K+=64,z+=64;for(;K<J;)if(I[D++]=Q[K++],z++,D==64)for(D=0,p(I);K+64<J;)p(Q.slice(K,K+64)),K+=64,z+=64}
function Y(){var Q=[],J=z*8;D<56?U(W,56-D):U(W,64-(D-56));for(var K=63;K>=56;K--)I[K]=J&255,J>>>=8;p(I);for(K=J=0;K<5;K++)for(var G=24;G>=0;G-=8)Q[J++]=L[K]>>G&255;return Q}
for(var L=[],I=[],V=[],W=[128],O=1;O<64;++O)W[O]=0;var D,z;S();return{reset:S,update:U,digest:Y,digestString:function(){for(var Q=Y(),J="",K=0;K<Q.length;K++)J+="0123456789ABCDEF".charAt(Math.floor(Q[K]/16))+"0123456789ABCDEF".charAt(Q[K]%16);return J}}};
oYd=function(S,p){p=p===void 0?C9e:p;if(!xdE){var U;S=(U=S.navigator)==null?void 0:U.userAgentData;if(!S||typeof S.getHighEntropyValues!=="function"||S.brands&&typeof S.brands.map!=="function")return Promise.reject(Error("ya"));EYw((S.brands||[]).map(function(L){var I=new mdX;I=_.zN(I,1,L.brand);return _.zN(I,2,L.version)}));
typeof S.mobile==="boolean"&&_.d5(Vz,2,S.mobile);xdE=S.getHighEntropyValues(p)}var Y=new Set(p);return xdE.then(function(L){var I=Vz.clone();Y.has("platform")&&_.zN(I,3,L.platform);Y.has("platformVersion")&&_.zN(I,4,L.platformVersion);Y.has("architecture")&&_.zN(I,5,L.architecture);Y.has("model")&&_.zN(I,6,L.model);Y.has("uaFullVersion")&&_.zN(I,7,L.uaFullVersion);return I.serialize()}).catch(function(){return Vz.serialize()})};
Tr=function(S,p,U,Y){this.initialValue_=S;this.maxValue_=p;this.currBaseValue_=this.currValue_=S;this.randomFactor_=U||0;this.backoffFactor_=Y||2};
Wm=function(S){this.src=S;this.listeners={};this.typeCount_=0};
N5u=function(){for(var S;S=vYw.remove();){try{S.fn.call(S.scope)}catch(p){YR(p)}$dR.put(S)}i2E=!1};
_.Or=function(S){switch(S){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}};
B5q=function(S){switch(S){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""}};
_.qrX=function(){};
Mkd=function(S){return{z03:new AYe(S),errorCount:new t$G(S),eventCount:new cYG(S),kfq:new SIk(S),rNK:new pzE(S),qV5:new Uxw(S),wwZ:new YIw(S),ma8:new L4k(S)}};
s8N=function(S,p,U,Y){S=Igw(dxG(VkX(new _.kY(1828,"0"),S),new Tdw));p.length&&W4w(S,OSX(new kVE,p));Y!==void 0&&(S.destinationUrl=Y);var L=new ZSG(1828,"","",!1,"",S.build());_.Hm(L,S);var I=new D1({flush:function(V){try{L.flush(V)}catch(W){U(W)}}});
I.addOnDisposeCallback(function(){setTimeout(function(){try{I.snapshotAndFlush()}finally{L.dispose()}})});
I.invocationLimit=1E5;I.flushInterval=3E4;I.JSC$7796_flushTimer.setInterval(3E4);return I};
zr=function(){var S,p,U;return(U=(S=globalThis.performance)==null?void 0:(p=S.now)==null?void 0:p.call(S))!=null?U:Date.now()};
gjw=function(S,p,U){if(S.disable)return new eTE;p=p?wmN(p):[];if(U)return U.ePn(p),U.share();S={sQ:S.sQ,xai:S.yDa,eJU:S.zK5,destinationUrl:S.destinationUrl,mGT:S.mGT,gF:S.gF};U=p;U=U===void 0?[]:U;return new Qz(S,U)};
_.uGG=function(S){if(!S)return null;S=_.n2(S,4);return S===null||S===void 0?null:_.dc(S)};
agR=function(S,p){return p?wzN(p):S?lgG(S):Promise.resolve()};
wzN=function(S){return new Promise(function(p,U){var Y=_.JY("SCRIPT"),L=_.uGG(S);_.fh(Y,L);Y.onload=function(){_.yz(Y);p()};
Y.onerror=function(){_.yz(Y);U(Error("Ja"))};
(K2("HEAD")[0]||document.documentElement).appendChild(Y)})};
lgG=function(S){return new Promise(function(p){var U=_.JY("SCRIPT");if(S){var Y=_.n2(S,6);Y=Y===null||Y===void 0?null:_.wc(Y)}else Y=null;_.aK(U,Y);(K2("HEAD")[0]||document.documentElement).appendChild(U);_.yz(U);p()})};
b9=function(S,p,U){var Y,L=new Promise(function(I){Y=setTimeout(I,p)});
return Promise.race([S.finally(function(){return void clearTimeout(Y)}),
L.then(U)])};
fgk=function(S,p){try{return globalThis.sessionStorage.setItem(S,p),!0}catch(U){return!1}};
Coe=function(S,p,U,Y){p=p===void 0?0:p;U=U===void 0?S.length:U;var L=0;for(Y&&(L=Coe(Y));p<U;p++)Y=typeof S==="string"?S.charCodeAt(p):S[p],L=xxw(31,L)+Y|0;return L};
Ejk=function(S,p){return[Coe(S,0,S.length>>1,p),Coe(S,S.length>>1)]};
mxw=function(S){var p=_.d(Ejk(S,j$));S=p.next().value;p=p.next().value;return S.toString(16)+p.toString(16)};
ojX=function(S,p){var U=Ejk(p);S=new Uint32Array(S.buffer);p=S[0];var Y=_.d(U);U=Y.next().value;Y=Y.next().value;for(var L=1;L<S.length;L+=2){for(var I=p,V=L,W=U,O=Y,D=0;D<22;D++)V=V>>>8|V<<24,V+=I|0,V^=W+38293,I=I<<3|I>>>29,I^=V,O=O>>>8|O<<24,O+=W|0,O^=D+38293,W=W<<3|W>>>29,W^=O;I=[I,V];S[L]^=I[0];L+1<S.length&&(S[L+1]^=I[1])}};
vjX=function(S,p,U,Y,L){var I=(4-(j$.length+U.length)%4)%4,V=new Uint8Array(4+I+j$.length+4+U.length),W=new DataView(V.buffer),O=0;W.setUint32(O,Math.random()*4294967295);O=O+4+I;V.set(j$,O);O+=j$.length;W.setUint32(O,L);V.set(U,O+4);ojX(V,Y);return S.insert(p,function(D){return void globalThis.sessionStorage.removeItem(D)})?fgk(p,_.Ad(V))?"s":"t":"i"};
$xE=function(S,p){var U=globalThis.sessionStorage.getItem(S);if(!U)return["m"];try{var Y=_.Ol(U);ojX(Y,p)}catch(L){return globalThis.sessionStorage.removeItem(S),["c"]}for(p=4;p<7&&Y[p]===0;)p++;for(U=0;U<j$.length;U++)if(Y[p++]!==j$[U])return globalThis.sessionStorage.removeItem(S),["d"];U=(new DataView(Y.buffer)).getUint32(p);return Math.floor(Date.now()/1E3)>=U?(globalThis.sessionStorage.removeItem(S),["e"]):["a",new Uint8Array(Y.buffer,p+4)]};
iSe=function(S){return globalThis.TextEncoder?(new TextEncoder).encode(S):_.r5(S)};
Ndq=function(S){var p=S,U;return function(){if(p){var Y=p;p=void 0;U=Y.apply(this,arguments)}return U}};
Gr=function(S){return oP(function(p){if(p instanceof S)return!0;var U,Y,L=p==null?void 0:(U=p.ownerDocument)==null?void 0:(Y=U.defaultView)==null?void 0:Y[S.name];return Bdr(L)&&p instanceof L})};
_.Fa=function(S,p,U){_.hY.call(this);this.JSC$8006_listener_=S;this.JSC$8006_interval_=p||0;this.handler_=U;this.callback_=(0,_.RW)(this.JSC$8008_doAction_,this)};
_.Xa=function(S){S=qIX(S);return _.dc(S)};
qIX=function(S){return S===null?"null":S===void 0?"undefined":S};
tkw=function(S){if(S&&S.focus)if(S!==document.activeElement)S.focus();else return Ayk(function(){return _.T(function(p){document.activeElement&&document.activeElement.blur();return p.return(Ayk(function(){S.focus()}))})})};
_.cyk=function(S){var p=p===void 0?5:p;setTimeout(function(){var U;return _.T(function(Y){Y.nextAddress==1&&(U=document.activeElement);if(Y.nextAddress!=5)return(document.activeElement===U||document.activeElement===document.body)&&p>=0&&S?_.k(Y,tkw(S),5):Y.jumpTo(0);if(document.activeElement===S)return Y.return();S=S.parentElement;--p;return Y.jumpTo(2)})},15)};
Ayk=function(S){return new Promise(function(p){requestAnimationFrame(function(){p(S())})})};
pQw=function(S){if(_.Pm)S(_.Pm);else{var p;((p=S0X)!=null?p:S0X=[]).push(S)}};
sr=function(){!_.Pm&&_.Z1&&_.UZu(_.Z1());return _.Pm};
_.UZu=function(S){_.Pm=S;var p;(p=S0X)==null||p.forEach(pQw);S0X=void 0};
_.e$=function(S){_.Pm&&_.Pm.beforeLoadModuleCode(S)};
_.g5=function(){_.Pm&&_.Pm.JSC$8949_setLoaded()};
u9=function(S){return wi(S)?Number(S):String(S)};
Y0w=function(S){this.action=S;this.wfv=!1};
Lcr=function(S,p){Y0w.call(this,"set-drive-options");this.appId=S;this.appOrigin=p};
MnE=function(S){Y0w.call(this,"visibility");this.visible=S};
ICE=function(S,p,U){w5.call(this,S,p,U)};
dZw=function(S){l9.call(this,S)};
VnG=function(S){S=S&&S.getWindow()||window;return S.gadgets&&S.gadgets.rpc};
WcN=function(S,p){var U=p&&p.getWindow()||window;if(VnG(p))S();else if(T7G)T7G.push(S);else var Y=T7G=[S],L=U.setInterval(function(){if(VnG(p)){U.clearInterval(L);for(var I=0;I<Y.length;I++)Y[I]();T7G=null}},100)};
k2X=function(S,p){var U=new aW(S);_.Hm(p,U);var Y={passive:!1};p.listen(U,"mousewheel",function(L){return void OUE(S,L)},Y).listen(S,"scroll",function(L){return void OUE(S,L)},Y)};
OUE=function(S,p){var U;a:{for(U=p.target;U;){if(U.nodeType==1){var Y=_.f2(U,"overflowY");if(Y=="auto"||Y=="scroll")break a}U=U.parentNode}U=null}if(!U||!_.C2(S,U)||U.scrollHeight==U.clientHeight||p.deltaY>0&&Math.abs(U.scrollTop-(U.scrollHeight-U.clientHeight))<=1||p.deltaY<0&&U.scrollTop==0)p.preventDefault(),p.stopPropagation()};
i9=function(S,p,U,Y,L,I,V,W,O){W=W===void 0?!1:W;O=O===void 0?!1:O;w5.call(this,void 0,void 0,void 0);w5.call(this,I?I+" picker modal-dialog":"picker modal-dialog",!0,U);_.xY(S,"protocol");this.iframeManager_=new HUe;this.targetId_=Er();this.rpcToken_=Er();S=_.mz(S);_.oW(S,"hostId");U=_.oW(S,"parent");this.useGapi_=!O&&!0||(U==null?void 0:U.includes("onepick.corp.google.com"));W&&_.vm(S,"fv2","true");this.setUrl(S.toString());this.preferredDialogWidth_=Y;this.preferredDialogHeight_=L;Y!==void 0||
L!==void 0?Y=!0:(Y=_.oW(_.mz(S.toString()),"hostId"),DZu||(DZu=new Set("DocVerse fusiontables geo geowiki gm gmail-gadget gws hotpot jointly presentations pwa sites templates trix trix-copy-sheet webstore".split(" "))),Y=!DZu.has(Y));this.autoSizeDialog_=Y;this.JSC$8196_gadgetsDomHelper_=V||this.JSC$8147_dom_;p&&(V=this.JSC$8196_gadgetsDomHelper_,p=_.oW(_.mz(this.JSC$8198_url_),"grugl")=="true"?zwd:Qdq,VnG(V)||(V=V||DD(document),Y=V.createElement("SCRIPT"),_.fh(Y,p),Y.type="text/javascript",V.JSC$7335_document_.body.appendChild(Y)));
S=S.toString();p=null;V=S.indexOf("/picker?");V>-1?p=S.substring(0,V+8-1):Iu(S,"/picker")&&(p=S);p&&this.setRelayUrl(p+"/resources/rpc_relay.html");this.escapeToCancel_=!1;this.buttons_=null;this.buttonEl_&&(this.buttons_?(S=this.buttons_,S.JSC$8181_element_=this.buttonEl_,S.render()):_.Ch(this.buttonEl_,nsG),_.$Y(this.buttonEl_,!!this.buttons_))};
_.bUw=function(S){var p=p===void 0?JWG:p;var U=_.Ul(S),Y=function(I){I=_.d(I);I.next();I=Nd(I);return p(U,I)},L=function(I){var V=_.d(I);
I=V.next().value;V=Nd(V);return S.apply(I,V)};
return function(){var I=_.jO.apply(0,arguments),V=this||_.UX,W=yWd.get(V);W||(W={},yWd.set(V,W));return KcE(W,[this].concat(_.jo(I)),L,Y)}};
Bm=function(S){var p={};S=S.replace(/\r/g,"").split("\n");for(var U=0;U<S.length;U++){var Y=S[U],L=Y.indexOf(":");L<0||(p[Y.substring(0,L)]=Y.substring(L+2,Y.length))}return p};
qd=function(S,p,U){U=U===void 0?function(){}:U;
return S?p():U()};
_.rWq=function(S){var p;return((p=jde.documentOverride)!=null?p:S).__wizdispatcher};
tY=function(S){var p=AY;AY=S;return p};
hwX=function(S){return S===G2w||(S==null?void 0:S.name)==="\u0275NotFound"};
RwG=function(S,p){var U;if((U=S)==null?0:U.isDisposed)throw Error("nb`"+String(S.debugName));for(;S!==void 0;){U=S;if(U.retrieve)return U.retrieve(p,{optional:!0});S=S.parent}return G2w};
cm=function(S){return{"\u0275prov":{providedIn:"root",token:Symbol(S),factory:void 0,value:void 0}}};
FcG=function(S){var p=tY(S);S={};return S[Symbol.dispose]=function(){tY(p)},S};
XQe=function(S,p){S.disposables||(S.disposables=[]);S.disposables.push(p)};
UI=function(S){var p=AY;p&&!p.isDisposed&&(XQe(p,S),S.parent=p)};
ZUN=function(S){if(S.disposables){for(var p=_.d(S.disposables),U=p.next();!U.done;U=p.next())U=U.value,typeof U==="function"?U():Pbw(U);S.disposables.length=0}};
Pbw=function(S){if(!S.isDisposed){S.isDisposed=!0;var p;(p=S[Symbol.dispose])==null||p.call(S);delete S.parent;ZUN(S)}};
Cbr=function(S){var p={retrieve:function(U){switch(U.\u0275prov.token){case sde.\u0275prov.token:var Y=S.asyncDeps;break;case ewr.\u0275prov.token:Y=S.rootElement;break;case gsq.\u0275prov.token:Y=S.modelRootElement;break;case uMk.\u0275prov.token:Y=S.appContext;break;case wQN.\u0275prov.token:Y=S.rendererData;break;case lCw.\u0275prov.token:Y=S.injectingConstructor;break;case aCw.\u0275prov.token:Y=S.dispatcher}if(Y)U=Y;else a:{for(Y=p.parent;Y;){var L=Y;if(L.retrieve){U=L.retrieve(U);break a}Y=
Y.parent}Y=U.\u0275prov.token;L=fCX[Y];L!==void 0?U=L:(L=U.\u0275prov.providedIn,U.\u0275prov.factory?(U=U.\u0275prov.factory(),Y&&L==="root"&&(fCX[Y]=U)):U=G2w)}return U}};
UI(p);return p};
xZw=function(){var S=AY;if(!S)throw Error("ob");var p=RwG(S,uMk);hwX(p)&&(S=RwG(S,aCw),hwX(S)||S.getOptionalAppContext())};
Esk=function(S){if(typeof document!=="undefined"&&document&&document.getElementById&&(S=document.getElementById(S))){var p=S.tagName.toUpperCase();if(p=="SCRIPT"||p=="LINK")return S}return null};
ose=function(S,p){if((S=S===void 0?"":S)&&p)throw Error("ub");var U="";var Y=_.UX._F_jsUrl;(S=p||Esk(S))&&(U=S.src?S.src:S.getAttribute("href"));if(Y&&U){if(Y!=U)throw Error("vb`"+Y+"`"+U);U=Y}else U=Y||U;if(!mZG(U))throw Error("wb");return U};
N7q=function(){if(!vsw){vsw=!0;try{var S=ose(_.UX._F_jsUrl?"":"base-js")}catch(Y){return}var p=$Zd(iUr(S)),U=Object.keys(p);U.length!==0&&pQw(function(Y){for(var L=_.d(U),I=L.next();!I.done;I=L.next()){I=I.value;for(var V=_.d(Object.keys(p[I])),W=V.next();!W.done;W=V.next())Y.addExtraEdge(I,W.value)}})}};
q0G=function(){var S=Object.assign({},B7G);Object.getOwnPropertyNames(B7G).forEach(function(p){Yj[p]!==void 0&&(S[p]=Yj[p])});
return S};
AWE=function(S,p){if(Yj.enablePerformanceTiming){var U,Y;(Y=(U=performance).mark)==null||Y.call(U,S+"Start__"+p)}};
tnN=function(S,p){if(Yj.enablePerformanceTiming){var U,Y;(Y=(U=performance).measure)==null||Y.call(U,S+"__"+p,S+"Start__"+p)}};
cWw=function(S,p,U){var Y;return S&&p?S+"__"+p:(Y=S!=null?S:p)!=null?Y:U};
pSq=function(S,p){var U=Object.create(SgR);U.debugName=p;!AY||UI(U);p=tY(U);try{S(U)}finally{tY(p)}return function(){return void Pbw(U)}};
Ygw=function(S){return LS(S)&&UTX in S};
LYR=function(S,p){return Object.is(S,p)};
I8=function(S){var p=Mx;Mx=S;return p};
V9e=function(S){if(dd)throw Error("da");if(Mx!==null){var p=Mx.nextProducerIndex++;M9G(Mx);p<Mx.producerNode.length&&Mx.producerNode[p]!==S&&Vk(Mx)&&I5R(Mx.producerNode[p],Mx.producerIndexOfThis[p]);Mx.producerNode[p]!==S&&(Mx.producerNode[p]=S,Mx.producerIndexOfThis[p]=Vk(Mx)?dTe(S,Mx,p):0);Mx.producerLastReadVersion[p]=S.version}};
OAw=function(S){if(!Vk(S)||S.dirty)if(S.dirty||S.lastCleanEpoch!==TER)(S.producerMustRecompute(S)||WYE(S))&&S.producerRecomputeValue(S),S.dirty=!1,S.lastCleanEpoch=TER};
kpG=function(S){if(S.liveConsumerNode!==void 0){var p=dd;dd=!0;try{for(var U=_.d(S.liveConsumerNode),Y=U.next();!Y.done;Y=U.next()){var L=Y.value;L.dirty||(S=void 0,L.dirty=!0,kpG(L),(S=L.consumerMarkedDirty)==null||S.call(L,L))}}finally{dd=p}}};
HAr=function(){var S;return((S=Mx)==null?void 0:S.consumerAllowSignalWrites)!==!1};
DTR=function(S){S&&(S.nextProducerIndex=0);return I8(S)};
z8R=function(S,p){I8(p);if(S&&S.producerNode!==void 0&&S.producerIndexOfThis!==void 0&&S.producerLastReadVersion!==void 0){if(Vk(S))for(p=S.nextProducerIndex;p<S.producerNode.length;p++)I5R(S.producerNode[p],S.producerIndexOfThis[p]);for(;S.producerNode.length>S.nextProducerIndex;)S.producerNode.pop(),S.producerLastReadVersion.pop(),S.producerIndexOfThis.pop()}};
WYE=function(S){M9G(S);for(var p=0;p<S.producerNode.length;p++){var U=S.producerNode[p],Y=S.producerLastReadVersion[p];if(Y!==U.version)return!0;OAw(U);if(Y!==U.version)return!0}return!1};
dTe=function(S,p,U){Qxd(S);if(S.liveConsumerNode.length===0&&S.producerNode!==void 0)for(var Y=0;Y<S.producerNode.length;Y++)S.producerIndexOfThis[Y]=dTe(S.producerNode[Y],S,Y);S.liveConsumerIndexOfThis.push(U);return S.liveConsumerNode.push(p)-1};
I5R=function(S,p){Qxd(S);if(S.liveConsumerNode.length===1&&S.producerNode!==void 0)for(var U=0;U<S.producerNode.length;U++)I5R(S.producerNode[U],S.producerIndexOfThis[U]);U=S.liveConsumerNode.length-1;S.liveConsumerNode[p]=S.liveConsumerNode[U];S.liveConsumerIndexOfThis[p]=S.liveConsumerIndexOfThis[U];S.liveConsumerNode.length--;S.liveConsumerIndexOfThis.length--;p<S.liveConsumerNode.length&&(U=S.liveConsumerIndexOfThis[p],S=S.liveConsumerNode[p],M9G(S),S.producerIndexOfThis[U]=p)};
Vk=function(S){var p,U;return S.consumerIsAlwaysLive||((U=S==null?void 0:(p=S.liveConsumerNode)==null?void 0:p.length)!=null?U:0)>0};
M9G=function(S){S.producerNode!=null||(S.producerNode=[]);S.producerIndexOfThis!=null||(S.producerIndexOfThis=[]);S.producerLastReadVersion!=null||(S.producerLastReadVersion=[])};
Qxd=function(S){S.liveConsumerNode!=null||(S.liveConsumerNode=[]);S.liveConsumerIndexOfThis!=null||(S.liveConsumerIndexOfThis=[])};
JIG=function(S){var p=Object.create(nUX);p.computation=S;S=function(){OAw(p);V9e(p);if(p.value===TV)throw p.error;return p.value};
S[Wz]=p;return S};
jxq=function(S,p){var U=Object.create(yIN);U.value=S;p!==void 0&&(U.equal=p);S=function(){V9e(U);return U.value};
S[Wz]=U;return[S,function(Y){return KYe(U,Y)},
function(Y){HAr()||bAu(U);KYe(U,Y(U.value))}]};
KYe=function(S,p){HAr()||bAu(S);if(!S.equal(S.value,p)){S.value=p;S.version++;TER++;kpG(S);var U;(U=rIw)==null||U(S)}};
OI=function(S){var p=I8(null);try{return S()}finally{I8(p)}};
_.kj=function(S,p,U){U=U===void 0?"":U;S=jxq(S,p==null?void 0:p.equals);var Y=S[0],L=Y[Wz];L.debugName=cWw(p==null?void 0:p.debugName,U,"[signal]");if(!Yj.enablePerformanceTiming)return S;var I=S[1],V=S[2];return[Y,function(W){GpG(function(){return void I(W)},L)},
function(W){GpG(function(){return void V(W)},L)}]};
GpG=function(S,p){AWE("signalSet",p.debugName);try{S()}finally{tnN("signalSet",p.debugName)}};
R8u=function(S,p){var U=_.d(_.kj(S,void 0,"cPpJzc"));S=U.next().value;U=U.next().value;S[h8d]=U;S[Hz]=p;return S};
FYu=function(S){return!!S&&typeof S==="object"&&Object.getPrototypeOf(S)===Object.prototype};
XSE=function(S){return typeof S==="function"&&h8d in S&&typeof S[h8d]==="function"};
Piw=function(S,p){Object.defineProperty(S,Hz,{get:function(){return p}})};
zV=function(S,p){if(Dg(S)){var U=S.map(function(I){return zV(I,p)});
Piw(U,p);return U}if(FYu(S)){U={};S=_.d(Object.entries(S));for(var Y=S.next();!Y.done;Y=S.next()){var L=_.d(Y.value);Y=L.next().value;L=L.next().value;U[Y]=zV(L,p)}Piw(U,p);return U}return R8u(S,p)};
ZAE=function(S){if(Dg(S))return S.map(function(L){return ZAE(L)});
if(FYu(S)){var p={};S=_.d(Object.entries(S));for(var U=S.next();!U.done;U=S.next()){var Y=_.d(U.value);U=Y.next().value;Y=Y.next().value;p[U]=ZAE(Y)}return p}return XSE(S)?S():S};
e8X=function(){var S={height:0,width:0};if(!FYu(S))throw Error("Ib");var p=Symbol("Jb");return[zV(S,p),function(U,Y){if(U[Hz]===p)if(typeof Y==="function"){var L=[].concat(_.jo(ZAE(U)));Y=Y(L)||L;sxN(U,[].concat(_.jo(Y)))}else sxN(U,Y);else throw Error("Kb");}]};
sxN=function(S,p){if(XSE(S))S[h8d](p);else if(Dg(S)&&Dg(p))p=zV(p,S[Hz]),S.length=0,S.push.apply(S,_.jo(p));else if((FYu(S)||Dg(S))&&(Dg(p)||typeof p==="object"&&p!==null)){p=_.d(Object.entries(p));for(var U=p.next();!U.done;U=p.next()){var Y=_.d(U.value);U=Y.next().value;Y=Y.next().value;var L=S,I=L[U];Object.hasOwn(S,U)?sxN(I,Y):L[U]=zV(Y,S[Hz])}}else throw Error("Lb");};
gUN=function(S){return Object.create(Object.assign({},Qk,S))};
wSw=function(){var S;return(S=uuG)!=null?S:uuG=gUN({consumerAllowSignalWrites:!0})};
_.nS=function(S,p,U){U=U===void 0?"":U;S=JIG(S);var Y=S[Wz];Y.debugName=cWw(p==null?void 0:p.debugName,U,"[computed]");(p==null?void 0:p.equals)!=null&&(Y.equal=p.equals);return S};
Jy=function(S){var p=I8(l5w);try{S()}finally{I8(p)}};
oUw=function(S){if(!S.isDisposed)switch(S.effectType){case a5N:f5e.schedule(S);break;case CiG:xTN.schedule(S);break;case EUq:mTu.schedule(S);break;default:_.WP(S.effectType)}};
$TG=function(S){vUw.push(S);return function(){var p=vUw.indexOf(S);p!==-1&&vUw.splice(p,1)}};
NEN=function(){if(yk>0)f5e.flush();else for(var S=_.d(iAX),p=S.next();!p.done;p=S.next())p.value.flush()};
qgX=function(S){for(var p=_.d(S),U=p.next();!U.done;U=p.next()){var Y=U.value;for(U=[Y];Y.parent!==void 0;)Y=Y.parent,BEG(Y)&&S.has(Y)&&U.push(Y);for(;U.length>0;)Y=U.pop(),S.delete(Y),Y.run()}};
AId=function(S){yk--;if(S){S=_.d(iAX);for(var p=S.next();!p.done;p=S.next())p.value.clear()}else yk>0||NEN()};
cIw=function(S,p,U){var Y=t9E(S);KS={name:U?Y+" ("+U+")":Y,isReactive:S.componentType!==jk,parent:KS};S=p();KS=KS.parent;return S};
rd=function(){var S=KS;return S?S.isReactive:!1};
hy=function(S,p){var U=KS;p&&(KS=p);try{return S()}catch(I){S=I;GV(S,KS);if(S!==SPd){pAr=KS;p=[];for(var Y=AY;Y;){var L=void 0;p.push((L=Y.debugName)!=null?L:"[context]");L=void 0;Y=(L=Y.parent)!=null?L:null}Uze=p.reverse()}SPd=S;throw S;}finally{KS=U}};
GV=function(S,p){try{var U=YPd(p);if(U&&!S.componentStack&&(S.componentStack=U,Yj.enableComponentStacksInErrorMessages)){var Y=S.message+"\n\nComponent stack: "+U;S.stack&&(S.stack=S.stack.replace(S.message,Y));S.message=Y}}catch(L){}};
YPd=function(S){if(LS(S)&&S.name!==void 0&&S.isReactive!==void 0&&S.parent!==void 0||S===null){for(var p=0,U="";p<20&&S;)U+=S.name+" > ",S=S.parent,p++;S=U.slice(0,-3)}else if(Yj.enableContextBasedComponentStacks){a:{for(S=S===void 0?AY:S;S;){if(Ygw(S))break a;p=void 0;S=(p=S.parent)!=null?p:null}S=null}S=S.getComponentStack().slice(0,20).join(" > ")}else S="";return S};
t9E=function(S){return S.debugName||S.name||"[component]"};
Ljw=function(S,p,U){p=Object.create(p);p.effectFn=S;U&&(p.debugName=U);UI(p);p.componentStack=KS;return p};
_.R8=function(S,p){S=Ljw(S,MaX,p);oUw(S)};
_.FG=function(S){var p=AY;if(p){var U=KS;XQe(p,function(){var Y=I8(wSw());try{hy(function(){return void S()},U)}catch(L){throw Yj.enableContextBasedComponentStacks&&GV(L),L;
}finally{I8(Y)}})}};
XG=function(S,p){var U={};(p===void 0||p)&&UI(U);p=tY(U);try{S(U)}finally{tY(p)}return function(){return void Pbw(U)}};
_.Pz=function(S){return typeof S==="function"?S():(S==null?0:S[Iuu])?S.get():S};
_.Zg=function(S,p){S=Ljw(S,dze,p);oUw(S)};
Vae=function(S){if(AY)throw Error("rb");XG(S,!1)};
sI=function(S,p){S=tY(S);try{return OI(p)}finally{tY(S)}};
ek=function(S,p){var U=YPd(pAr),Y,L;var I=(L=(Y=Uze)==null?void 0:Y.slice())!=null?L:[];p={componentStack:U,contextTrace:I,errorSeverity:3,featureFlags:q0G(),tagName:p};return[S,p]};
Ofr=function(S,p,U){if(Object.hasOwnProperty.call(T6w,S)&&(S=T6w[S],Object.hasOwnProperty.call(S,p)&&(S=S[p],S instanceof Array))){for(var Y=null,L=!1,I=0,V=S.length;I<V;++I){var W=S[I],O=W.contingentAttribute;if(!O)return W.contract;Y===null&&(Y={});O=Object.hasOwnProperty.call(Y,O)?Y[O]:Y[O]=U(O);if(O===W.requiredValue)return W.contract;O==null&&(L=!0)}if(L)return null}p=Wjk[p];return typeof p==="number"?p:null};
Dzw=function(S,p,U){var Y=null;(S=kMd[S])&&(Y=S[p]);return typeof Y!=="number"&&((S=kMd["*"])&&(Y=S[p]),typeof Y!=="number")?!1:!0===Hfe[Y][String(U).toLowerCase()]};
QtG=function(S,p){p=Ofr(S.toLowerCase(),p,function(){var Y;(Y=Yj.handleError)==null||Y.call.apply(Y,[Yj].concat(_.jo(ek(Error("Qb"),S.toLowerCase()))))});
if(p===null)return null;var U;return(U=zCX[p])!=null?U:null};
n7q=function(S,p,U){if(U===null||U===void 0)return U;S=QtG(S,p);return S===null?U:S(p,U)};
JEG=function(){};
gd=function(S,p){for(;S.length>p;)S.pop()};
yER=function(S){S=Array(S);gd(S,0);return S};
KjG=function(S,p,U){if(U==null)S.removeAttribute(p);else{var Y;(Y=p.lastIndexOf("xml:",0)===0?"http://www.w3.org/XML/1998/namespace":p.lastIndexOf("xlink:",0)===0?"http://www.w3.org/1999/xlink":null)?S.setAttributeNS(Y,p,U):S.setAttribute(p,U)}};
bfe=function(S,p,U){S[p]=U};
rEq=function(S,p,U){S=S.style;if(typeof U==="string")S.cssText=U;else{S.cssText="";for(var Y in U)if(jtG.call(U,Y)){p=S;var L=Y,I=U[Y];L.indexOf("-")>=0?p.setProperty(L,I):p[L]=I}}};
GMr=function(S,p,U){var Y=typeof U;Y==="object"||Y==="function"?S[p]=U:KjG(S,p,U)};
hCe=function(){var S=new JEG;S[uo.default]=GMr;S.style=rEq;return S};
RCw=function(S,p,U,Y){(Y[p]||Y[uo.default])(S,p,U)};
XAd=function(S,p,U){p=new Fjw(p,U);return S.__incrementalDOMData=p};
wd=function(S,p){if(S.__incrementalDOMData)return S.__incrementalDOMData;var U=S.nodeType===1?S.localName:S.nodeName,Y=S.nodeType===1?S.getAttribute("key"):null;p=XAd(S,U,S.nodeType===1?Y||p:null);if(S.nodeType===1&&(S=S.attributes,U=S.length)){Y=p._attrsArr||(p._attrsArr=yER(U*2));for(var L=0,I=0;L<U;L+=1,I+=2){var V=S[L],W=V.value;Y[I]=V.name;Y[I+1]=W}}return p};
Pge=function(S,p,U,Y,L){return p==U&&Y==L};
ZfX=function(S){for(var p=lo,U=a8();U!==S;){var Y=U.nextSibling;p.removeChild(U);fS.deleted.push(U);U=Y}};
a8=function(){return xj?xj.nextSibling:lo.firstChild};
EI=function(){xj=a8()};
g7e=function(S,p,U){EI();var Y;a:{if(Y=xj){do{var L=Y,I=S,V=p,W=wd(L,V);if(ste(L,I,W.nameOrCtor,V,W.key))break a}while(p&&(Y=Y.nextSibling))}Y=null}Y||(S==="#text"?(U=m4.createTextNode(""),XAd(U,"#text",null),S=U):(Y=m4,L=lo,typeof S==="function"?Y=new S:Y=(L=S==="svg"?"http://www.w3.org/2000/svg":S==="math"?"http://www.w3.org/1998/Math/MathML":L==null||wd(L).nameOrCtor==="foreignObject"?null:L.namespaceURI)?Y.createElementNS(L,S):Y.createElement(S),XAd(Y,S,p),S=Y,U&&S.setAttribute("nonce",U)),fS.created.push(S),
Y=S);U=Y;if(U!==xj){if(eCw.indexOf(U)>=0)for(S=lo,p=U.nextSibling,Y=xj;Y!==null&&Y!==U;)L=Y.nextSibling,S.insertBefore(Y,p),Y=L;else lo.insertBefore(U,xj);xj=U}};
uyG=function(S,p,U){g7e(S,p,U);lo=xj;xj=null;return lo};
wAG=function(){ZfX(null);xj=lo;lo=lo.parentNode};
o8=function(){xj=lo.lastChild};
fuR=function(S,p){p=p===void 0?{}:p;var U=p.matches===void 0?Pge:p.matches;return function(Y,L,I){var V=fS,W=m4,O=eCw,D=vz,z=Bz,Q=xj,J=lo,K=ste;m4=Y.ownerDocument;fS=new luw(Y);ste=U;vz=[];Bz=[];xj=null;var G=lo=Y.parentNode,X,Z=auw.call(Y);if((X=Z.nodeType===11||Z.nodeType===9?Z.activeElement:null)&&Y.contains(X)){for(Z=[];X!==G;)Z.push(X),X=X.parentNode||(G?X.host:null);G=Z}else G=[];eCw=G;try{return S(Y,L,I)}finally{Y=fS,qx&&Y.deleted.length>0&&qx(Y.deleted),m4=W,fS=V,ste=K,vz=D,Bz=z,xj=Q,lo=J,
eCw=O}}};
Cgr=function(S,p,U,Y){Ay.push(RCw);Ay.push(S);Ay.push(p);Ay.push(U);Ay.push(Y)};
E7u=function(S,p,U){var Y=Bz;p=p._attrsArr||(p._attrsArr=yER(Y.length));for(var L=!p.length||!1,I=0;I<Y.length;I+=2){var V=Y[I];if(L)p[I]=V;else if(p[I]!==V)break;var W=Y[I+1];if(L||p[I+1]!==W)p[I+1]=W,Cgr(S,V,W,U)}if(I<Y.length||I<p.length){for(I=L=I;I<p.length;I+=2)ty[p[I]]=p[I+1];for(I=L;I<Y.length;I+=2)L=Y[I],V=Y[I+1],ty[L]!==V&&Cgr(S,L,V,U),p[I]=L,p[I+1]=V,delete ty[L];gd(p,Y.length);for(var O in ty)Cgr(S,O,void 0,U),delete ty[O]}S=xzN;xzN=U=Ay.length;for(O=S;O<U;O+=5)(0,Ay[O])(Ay[O+1],Ay[O+
2],Ay[O+3],Ay[O+4]);xzN=S;gd(Ay,S);gd(Y,0)};
cz=function(S){g7e("#text",null);var p=xj;var U=wd(p);if(U.text!==S){U=U.text=S;for(var Y=1;Y<arguments.length;Y+=1)U=(0,arguments[Y])(U);p.data!==U&&(p.data=U)}};
N6X=function(S,p,U){if(U===!1&&mzG.has(p))KjG(S,p,null);else if(p!=="idomKey"&&p!=="skip"&&p!=="skipchildren"&&p!=="children"&&p!=="el"){if(p.startsWith("on"))if(p[2]===":"){if(U===void 0||U===null){var Y;(Y=Yj.handleError)==null||Y.call.apply(Y,[Yj].concat(_.jo(ek(Error("Ub`"+p),S.tagName))));S[p]=void 0;return}if(typeof U!=="object"||U===null)throw Error("Vb`"+p+"`"+typeof U);if(typeof U.getFn!=="function")throw Error("Wb`"+p+"`"+Object.keys(U));var L=U.getFn(0),I=p.slice(3);if((Y=rd())&&S["on"+
I]===void 0)S.addEventListener(I,L),_.FG(function(){return void S.removeEventListener(I,L)});
else if(Y||!o7E.includes(I))S["on"+I]=L}else{v7w(S,p,U);return}else if(p.startsWith("data-")&&typeof U==="string")try{U=$zR(U)}catch(V){U="zSoyz"}typeof U!=="function"||S._disposeEffects!=null?(Yj.enableAttributeSanitization&&(U=n7q(S.tagName,p,U)),p==="style"?ifu(S,p,U):p.startsWith("prop:")?(p=p.slice(5),S[p]=U):v7w(S,p,U)):(S._signalProps||(S._signalProps=[]),S._signalValues||(S._signalValues=[]),S._signalProps.push(p))}};
B6E=function(S,p,U){U=(U===void 0?{}:U).isReactive;if(p==null?0:p.el){var Y=p.el;if(typeof Y==="function")Y(S);else{var L;(L=Y.onRender)==null||L.call(Y,S);S._disposeRef||(S._disposeRef=function(){var I;(I=Y.onUnmount)==null||I.call(Y);delete S._disposeRef},U&&_.FG(function(){var I;
return void((I=S._disposeRef)==null?void 0:I.call(S))}))}}};
qPG=function(S){return LS(S)&&Sn in S};
AEG=function(S){return qPG(S)?S[Sn].flattened:S};
tau=function(S,p){var U=_.jO.apply(2,arguments),Y;p=(Y=p)!=null?Y:{};Y={};return Y.type=S,Y.props=p,Y.children=U,Y[pU]=!0,Y};
_.U0=function(S){return S.children};
Ys=function(S){var p=cEN!==tau;cEN=S?S9G:tau;return p};
LU=function(S){return _.pc(S)?"nodeType"in S:!1};
MZ=function(){return document.createTextNode("")};
Id=function(S){S=document.createTextNode(String(S));S._isSignalTextNode=!0;return S};
pHN=function(S){var p=document.createElement("div");if(!(S instanceof RK)){if(S.contentKind!==d7)throw Error("Tb");S=Fq(S.toString())}_.Ch(p,S);S=_.d(p.childNodes);for(var U=S.next();!U.done;U=S.next())U.value._isSafeOrSanitizedHtmlNode=!0;return p};
Ve=function(S){S=typeof S;return S==="string"||S==="number"||S==="boolean"};
UWE=function(S){return S instanceof IK||HE(S)||"function"==typeof _.m1&&S instanceof _.m1||!1};
Y9q=function(S,p){var U=S.parentElement;if(!U)return p;U.replaceChild(p,S);return p};
Lew=function(S,p){var U=S[0].parentElement;if(U)if(S[0].previousSibling||S[S.length-1].nextSibling){U.insertBefore(p,S[0]);for(var Y=S.length-1;Y>=0;Y--)U.removeChild(S[Y])}else U.textContent="",U.appendChild(p);return p};
MPX=function(S,p){if(S[0].parentElement)for(var U=S[0].parentElement,Y=p.length,L=S.length,I=Y,V=0,W=0,O=S[L-1].nextSibling,D=null;V<L||W<I;)if(S[V]===p[W])V++,W++;else{for(;S[L-1]===p[I-1];)L--,I--;if(L===V)for(var z=I<Y?W?p[W-1].nextSibling:p[I-W]:O;W<I;){var Q=p[W++];U.insertBefore(Q,z)}else if(I===W)for(;V<L;)z=S[V],D&&D.has(z)||U.removeChild(z),V++;else if(S[V]===p[I-1]&&p[W]===S[L-1])z=S[--L].nextSibling,U.insertBefore(p[W++],S[V++].nextSibling),U.insertBefore(p[--I],z),S[L]=p[I];else{if(!D)for(D=
new Map,z=W;z<I;)D.set(p[z],z++);z=D.get(S[V]);if(z==null)U.removeChild(S[V]),V++;else if(W<z&&z<I){Q=V;for(var J=1,K=void 0;++Q<L&&Q<I&&(K=D.get(S[Q]))!=null&&K===z+J;)J++;if(J>z-W)for(Q=S[V];W<z;)U.insertBefore(p[W++],Q);else U.replaceChild(p[W++],S[V++])}else V++}}return p};
TKX=function(S,p){var U;p!=null?U=p:U=_.rWq(document).getAppContext();U.get(IPR).JSC$25469_getEventTarget().dispatchEvent(new dWd(VPw,S,d7))};
Ovw=function(S){if(Array.isArray(S)){if(S.length>1)throw Error("ec`"+S.length+"`"+S.map(Wew).join(", "));S=S[0]}if(S==null)return null;if(!(S instanceof _.ux)){var p,U;if((p=window)==null?0:(U=p.trustedTypes)==null?0:U.isScript(S))throw Error("dc");if(String(S).trim().length===0)return null;throw Error("fc`"+Wew(S));}return S};
kYw=function(S){if(Array.isArray(S)){if(S.length>1)throw Error("gc`"+S.length+"`"+S.map(Wew).join(", "));S=S[0]}if(S==null)return null;if(!riG(S)){if(String(S).trim().length===0)return null;throw Error("hc`"+Wew(S));}return S};
Wew=function(S){return"("+typeof S+") "+(S!=null&&typeof S==="object"?S.constructor.name:typeof S)+" "+S};
WQ=function(S,p){function U(){L=!1;p.isControlFlowComponent&&yk++;var I=Y[0],V=Y[Sn].flattened,W=Ys(!0);try{var O=S(),D=Hvw(I,O,Y);Array.isArray(D)||(Y[Sn].flattened=[D]);var z=Y[Sn].flattened;if(V&&(!Array.isArray(V)||V.length!==0)){var Q=Array.isArray(V)?V[0]:V,J=Q[T2],K=Q._disposeEffects;Q._disposeEffects=void 0;Q=Array.isArray(z)?z[0]:z;Q[T2]=J;Q[T2]&&(Q[T2].numNodes=Q===z?1:z.length);Q._disposeEffects=K}Y[0]=D;p.isControlFlowComponent&&AId(!1)}catch(G){throw p.isControlFlowComponent&&AId(!0),
G;}finally{Ys(W)}}
p=p===void 0?{}:p;var Y=DWG(),L=!0;Yj.legacyTriggerSoyRendererEvents&&xZw();_.Zg(function(){(zYe==null?0:zYe.logger)&&!L?zYe.logger.logGraft(Y[0],U):U()},p.debugName);
return Y};
Hvw=function(S,p,U){for(;typeof p==="function";)p=p();if(p!=null&&p[pU]){var Y,L,I;(I=Yj.handleError)==null||I.call.apply(I,[Yj].concat(_.jo(ek(Error("ic`"+((Y=p.type)==null?void 0:Y.TAG_NAME)),(L=p.type)==null?void 0:L.TAG_NAME))))}if(S==null)return p==null?MZ():Ve(p)?Id(p):UWE(p)?Id(p.toString()):LU(p)?p:p.length===0?MZ():QVE(p,U);if(LU(S)){if(p==null)return Y9q(S,MZ());if(Ve(p))return nvR(S,p);if(UWE(p))return nvR(S,p.toString());if(LU(p))return Y9q(S,p);if(p.length===0)return Y9q(S,MZ());p=QVE(p,
U);MPX([S],U[Sn].flattened);return p}S=O0(S);if(p==null)return Lew(S,MZ());if(Ve(p))return Lew(S,Id(p));if(UWE(p))return Lew(S,Id(p.toString()));if(LU(p))return MPX(S,[p])[0];if(p.length===0)return Lew(S,MZ());p=QVE(p,U);MPX(S,U[Sn].flattened);return p};
nvR=function(S,p){S.nodeType===Node.TEXT_NODE?S.textContent!==String(p)&&(S.textContent=String(p)):S=Y9q(S,Id(p));return S};
O0=function(S,p,U){return JUd(S,p!=null?p:[],U===void 0?!1:U)};
QVE=function(S,p){var U=O0(S,void 0,!0);if(U.length===0)return MZ();p[Sn].flattened=U;return S};
JUd=function(S,p,U,Y,L){p=p===void 0?[]:p;U=U===void 0?!1:U;L=L===void 0?-1:L;if(S==null)return p;if(S instanceof ks)return S=S.render(),JUd(S,p,U,Y,L);if(LU(p)&&p.nodeType===Node.ELEMENT_NODE)switch(p.tagName){case "SCRIPT":U=Ovw(S);U!==null&&_.aK(p,U);return;case "STYLE":U=kYw(S);U!==null&&(p.textContent=_.GDG(U));return}Ve(S)&&(S=Id(S),Y&&U&&(Y[L]=S));if(S!=null&&S.contentKind===d7||S instanceof RK){U=pHN(S);U=Array.from(U.childNodes);U=_.d(U);for(S=U.next();!S.done;S=U.next())yUG(p,S.value);return p}UWE(S)&&
(S=Id(S.toString()),Y&&U&&(Y[L]=S));if(LU(S))return yUG(p,S);if(Array.isArray(S)){for(var I=0;I<S.length;I++)JUd(S[I],p,U,S,I);return p}if(typeof S==="function"){S=WQ(S,{debugName:"qmF2ne"})[0];if(Array.isArray(S)){U=_.d(S);for(S=U.next();!S.done;S=U.next())yUG(p,S.value);return p}Y&&U&&(Y[L]=S);return yUG(p,S)}if(S!=null&&S[pU]){Y=Ys(!0);L=cEN;try{I=L.apply(null,[S.type,S.props].concat(_.jo(S.children)))}finally{Ys(Y)}return JUd(I,p,U)}var V;(V=Yj.handleError)==null||V.call.apply(V,[Yj].concat(_.jo(ek(Error("jc")))));
return p};
DWG=function(S){var p={};p=Object.assign([],(p[Sn]={flattened:[]},p));if(!S)return p;p[0]=QVE(S,p);return p};
yUG=function(S,p){Array.isArray(S)?S.push(p):S.appendChild(p);return S};
HQ=function(S){if(!Yj.enableLazyTsx)return S;if(Array.isArray(S)){for(var p=0;p<S.length;p++)S[p]=HQ(S[p]);return S}return S instanceof ks?(S=S.render(),HQ(S)):S};
bvw=function(S,p){var U,Y,L=t9E(S),I=function(K){Y=K;K=Ys(!0);var G=I8(z2);AWE("render",L);try{U=HQ(S(p))}finally{tnN("render",L),I8(G),Ys(K)}};
I=Yj.enableContextPerComponent?pSq(I,L):XG(I,Yj.alwaysTrackContexts||!!AY);Ygw(Y);if(!p.renderedFromIdom){var V=tY(Y);try{return Keu(S,p,U),U}finally{tY(V)}}!qPG(U)&&Array.isArray(U)&&(U=DWG(U));var W=AEG(U);V=Array.isArray(W)?W[0]:W;var O=!1;if(V){var D,z=(D=p==null?void 0:p.idomKey)!=null?D:S;D=W!==V;V._disposeEffects=I;var Q=V[T2]||{},J=qPG(U)?U:Q.sourceDynamicRange;Object.assign(Q,{key:z,numNodes:D?W.length:1,context:Y,higherOrder:!!V[T2],sourceDynamicRange:J});V[T2]=Q}else O=!0;(function(){var K=
tY(Y);try{Keu(S,p,W)}finally{tY(K)}})();
O&&I();return U};
jVw=function(S){var p={},U;for(U in S)p={prev$jscomp$23:void 0,next$jscomp$32:void 0},p.prev$jscomp$23=Qe[U],p.next$jscomp$32=S[U],Qe[U]=function(Y){return function(){var L=_.jO.apply(0,arguments);Y.prev$jscomp$23.apply(null,_.jo(L));Y.next$jscomp$32.apply(null,_.jo(L))}}(p)};
rUe=function(){if(rd())throw Error("kc");return nU};
GYw=function(S,p){if(!S.__unmounted&&p){S.__unmounted=!0;try{S.didUnmount()}catch(L){var U,Y;(Y=Yj.handleError)==null||Y.call.apply(Y,[Yj].concat(_.jo(ek(L,(U=S.JSC$8270___type)==null?void 0:U.TAG_NAME))))}Qe.didUnmount(S);S.el=null;p.__instance&&delete p.__instance}};
RYX=function(S,p,U){S._signalProps!=null&&S._disposeEffects==null&&((U===void 0?0:U)?S._disposeEffects=XG(function(){return void hYk(S,p)},Yj.alwaysTrackContexts||!!AY):hYk(S,p))};
hYk=function(S,p){_.Zg(function(){for(var U=S._signalProps,Y=S._signalValues,L=0;L<U.length;L++){var I=U[L],V=p[I]();Y[L]!==V&&(Y[L]=V,N6X(S,I,V))}},"e3YVbb")};
Fee=function(S,p,U){var Y,L=[];S._disposeEffects=XG(function(){_.Zg(function(){var I=U();if(I===null||I===void 0)I="";if(Ve(I)||I===null)Y!=null||(Y=document.createTextNode("")),Y.parentNode!==S&&(Y._isSignalTextNode=!0,S.insertBefore(Y,p)),Y.textContent=String(I);else if(I!=null&&I.contentKind===d7||I instanceof RK){for(var V=L.length>0?L[L.length-1].nextSibling:p,W=_.d(L),O=W.next();!O.done;O=W.next())S.removeChild(O.value);I=pHN(I);L=Array.from(I.childNodes);I=_.d(L);for(W=I.next();!W.done;W=I.next())S.insertBefore(W.value,
V)}else throw O=(W=(V=KS)==null?void 0:V.name)!=null?W:"unknown",Error("$b`"+O+"`"+typeof I);},"VvDgC")},Yj.alwaysTrackContexts||!!AY)};
ZvE=function(S,p){var U=_.jO.apply(2,arguments);p!=null||(p={});return!Yj.enableLazyTsx||KS!=null&&!rd()?XHX(S,p,U):new PQN(S,p,U)};
XHX=function(S,p,U){if(S===_.U0)return U;if(typeof S==="function")return KS&&!rd()&&(p.renderedFromIdom=!0),cIw(S,function(){var I=sVk(S,p,U);if(I)return I;U.length>0&&(p.children=U.length===1?U[0]:U);if(S.componentType===jk){var V;pSq(function(){var W=p;if(S.componentType!==jk)V=!1;else{W||(W={});var O=new JW(W,S),D=I8(z2);try{var z=O.render(W)}finally{I8(D)}z instanceof HTMLElement?(z.__instance=O,O.el=z,O.JSC$8270___type=S,S.TAG_NAME=z.tagName.toLowerCase(),Qe.didPatch(O),V=z):V=z}},S.name);
if(V)return V}return bvw(S,p)},p.debugInstance);
var Y=eYG(S,p),L;for(L in p)N6X(Y,L,p[L]);RYX(Y,p);O0(U,Y);B6E(Y,p,{isReactive:!0});gvX(Y,p);return Y};
eYG=function(S,p){S=(urw.has(S.toLowerCase())?0:wHu.has(S.startsWith("svg:")?S.replace("svg:",""):S))?document.createElementNS("http://www.w3.org/2000/svg",S.startsWith("svg:")?S.replace("svg:",""):S):lPu(S,p)||document.createElement(S);S[aPe]=!0;return S};
fPd=function(S){if(S){var p;(p=S._disposeRef)==null||p.call(S);var U;(U=S._disposeEffects)==null||U.call(S);S.__instance&&S.__instance instanceof ye&&(p=S.__instance,GYw(p,S),p instanceof JW&&p.disposeEffects());for(p=0;p<S.childNodes.length;p++)fPd(S.childNodes[p])}};
xWG=function(S){CQu.push(S)===1&&requestAnimationFrame(function(){setTimeout(function(){var p=[].concat(_.jo(CQu));CQu=[];p=_.d(p);for(var U=p.next();!U.done;U=p.next()){U=U.value;try{for(var Y=0;Y<U.length;Y++)fPd(U[Y])}catch(L){Y=U=void 0,(Y=(U=Yj).handleError)==null||Y.call.apply(Y,[U].concat(_.jo(ek(L))))}}})})};
_.H=function(S,p){return cEN.apply(null,[S,p].concat(_.jo(_.jO.apply(2,arguments))))};
mWw=function(){var S=document.body.firstElementChild;window.ng||S.__ngContext__||(S.__ngContext__={},S.setAttribute("ng-version","0.0.0-PLACEHOLDER"),window.ng=Evu)};
_.n=function(S){var p=S.cond;if(p===void 0)return S.else&&S.else();var U=_.nS(function(){return!!p()},void 0,"JHVi8"),Y=function(){var L=p();
if(!L){var I;(I=Yj.handleError)==null||I.call.apply(I,[Yj].concat(_.jo(ek(ovr.nonNullableCondIsNull()))))}return L};
return WQ(function(){var L=U(),I;XG(function(){var V=I8(z2);try{I=HQ(L?S.then(Y):S.else&&S.else())}finally{I8(V)}},!0);
return I},{debugName:S.debugInstance,
isControlFlowComponent:!0})};
vve=function(S){return _.n(S)};
_.KU=function(S){return S.keyBy==="INDEX"?$Ww(S):ivw(S)};
NKe=function(S){S=_.d(S);for(var p=S.next();!p.done;p=S.next()){var U=void 0;(U=p.value)==null||U()}};
ivw=function(S){var p=S.keyBy===void 0||S.keyBy==="REFERENCE",U=p?function(z){return z}:S.keyBy,Y=[],L=[],I=[],V=[],W=[],O=[],D=!0;
_.FG(function(){NKe(V)});
return WQ(function(){var z=S.each(),Q=z.length;if(Q===0){if(Y.length===0&&!D)return I;NKe(V);Y=z;L=[];for(z=0;z<Y.length;z++)L.push(U(Y[z]));I=[];V=[];W=[];O=[];S.fallback&&(V[0]=BKu(function(){I[0]=HQ(S.fallback())}));
D=!1;return I}for(var J=new q9w,K=Y.length-1;K>=0;K--)J.push(L[K],K);K=Array(Q);for(var G=Array(Q),X=Array(Q),Z=Array(Q),l=Array(p?0:Q),a={i$jscomp$486:0};a.i$jscomp$486<Q;a={i$jscomp$486:a.i$jscomp$486,item$jscomp$103:void 0,key$jscomp$523:void 0},a.i$jscomp$486++){a.item$jscomp$103=z[a.i$jscomp$486];a.key$jscomp$523=U(a.item$jscomp$103);var N=J.pop(a.key$jscomp$523);N!=null?(X[a.i$jscomp$486]=I[N],G[a.i$jscomp$486]=L[N],K[a.i$jscomp$486]=V[N],Z[a.i$jscomp$486]=W[N],p||(l[a.i$jscomp$486]=O[N]),Jy(function(m){return function(){Z[m.i$jscomp$486](m.i$jscomp$486);
if(!p)l[m.i$jscomp$486](m.item$jscomp$103)}}(a)),delete V[N]):K[a.i$jscomp$486]=BKu(function(m){return function(){var A=_.d(_.kj(m.i$jscomp$486,void 0,"Fqk1zd")),q=A.next().value;
A=A.next().value;Z[m.i$jscomp$486]=A;G[m.i$jscomp$486]=m.key$jscomp$523;if(p)X[m.i$jscomp$486]=HQ(S.children(m.item$jscomp$103,q));else{var TG=_.d(_.kj(m.item$jscomp$103,void 0,"GBj5de"));A=TG.next().value;TG=TG.next().value;l[m.i$jscomp$486]=TG;X[m.i$jscomp$486]=HQ(S.children(A,q))}}}(a))}NKe(V);
Y=z;L=G;I=X;V=K;W=Z;O=l;D=!1;return X},{debugName:S.debugInstance,
isControlFlowComponent:!0})};
$Ww=function(S){var p=[],U=[],Y=[],L=[],I=!1;_.FG(function(){for(var V=_.d(L),W=V.next();!W.done;W=V.next())W=W.value,W()});
return WQ(function(){var V=S.each();I&&V.length>0&&(L.pop()(),p.pop(),I=!1);for(var W=Array(V.length),O={i$jscomp$487:0};O.i$jscomp$487<V.length;O={i$jscomp$487:O.i$jscomp$487},O.i$jscomp$487++)if(O.i$jscomp$487<p.length)p[O.i$jscomp$487]!==V[O.i$jscomp$487]&&(Jy(function(z){return function(){return void U[z.i$jscomp$487](V[z.i$jscomp$487])}}(O)),p[O.i$jscomp$487]=V[O.i$jscomp$487]),W[O.i$jscomp$487]=Y[O.i$jscomp$487];
else{var D=BKu(function(z){return function(){p[z.i$jscomp$487]=V[z.i$jscomp$487];var Q=_.d(_.kj(V[z.i$jscomp$487],void 0,"kGMqJe")),J=Q.next().value;Q=Q.next().value;U[z.i$jscomp$487]=Q;W[z.i$jscomp$487]=HQ(S.children(J,z.i$jscomp$487))}}(O));
L[O.i$jscomp$487]=D}for(;p.length>V.length;)p.pop(),L.pop()(),U.pop();V.length===0&&!I&&S.fallback&&(O=BKu(function(){W[0]=HQ(S.fallback())}),L[0]=O,I=!0);
return Y=W},{debugName:S.debugInstance,
isControlFlowComponent:!0})};
BKu=function(S){var p=AY;return XG(function(U){var Y=I8(z2);try{U.parent=p,S(U)}finally{I8(Y)}},!1)};
_.bb=function(S){return S};
_.jn=function(S){return{isDefault:!0,children:S.children}};
_.r7=function(S){var p=AUR(S),U=_.nS(function(){return tPw(p)},void 0,"F1PF4");
return WQ(function(){var Y=U(),L;XG(function(){var I=I8(z2);try{L=HQ(Y())}finally{I8(I)}});
return L},{debugName:S.debugInstance,
isControlFlowComponent:!0})};
AUR=function(S){S=S.children;return Array.isArray(S)?S:[S]};
cUG=function(S){var p=S.props;S=S.getChildren()[0];return p.when?{when:p.when,children:S}:{isDefault:!0,children:S}};
tPw=function(S){var p=function(){return null};
S=_.d(S);for(var U=S.next();!U.done;U=S.next())if(U=U.value,U!=null&&U[pU]&&(U=U.type===_.jn?{isDefault:!0,children:U.children[0]}:{when:U.props.when,children:U.children[0]}),U instanceof ks&&(U=cUG(U)),U.isDefault)p=U.children;else if(U.when())return U.children;return p};
SRr=function(S){var p=null,U;return{value:null,onRender:function(Y){if(U&&Y!==U){var L;(L=p)==null||L();U._disposeRef=void 0}U=Y;p=S(Y)||null},
onUnmount:function(){var Y;(Y=p)==null||Y();p=null}}};
U0k=function(S){var p=rUe();if(p==null)throw prw.PRIMITIVE_INVALID_HOOK_CALL();var U=p.hookCounter++;p.hooks||(p.hooks=[]);var Y=p.hooks;Y[U]||(Y[U]={key:S,host:p});if(S!==Y[U].key){if(p.JSC$8270___type){var L;S=(L=p.JSC$8270___type)==null?void 0:L.name}else S=p instanceof JW?t9E(p.functionComponent):"<"+p.el.tagName.toLowerCase()+">";throw prw.OUT_OF_ORDER_HOOK_CALL(S);}return Y[U]};
YRX=function(S,p){return!S||S.length!==(p==null?void 0:p.length)||S.some(function(U,Y){return U!==p[Y]})};
L$R=function(S,p){var U=U0k("onChange"),Y=rUe();YRX(U.deps,p)&&(U.deps=p,U.pendingEffect=S,Y.__syncEffects||(Y.__syncEffects=[]),Y.__syncEffects.push(U))};
_.G2=function(S,p){var U=U===void 0?{enableDevtools:!1}:U;var Y=Yj.legacyTriggerSoyRendererEvents,L=U.appContext,I=hy(function(){var V=I8(z2);try{return XG(function(){var W=_.rWq(_.ZD(S)),O;var D=Cbr({rootElement:{value:S},appContext:L||(W==null?void 0:(O=W.getOptionalAppContext)==null?void 0:O.call(W)),dispatcher:W});W=tY(D);D=Ys(!0);yk++;try{O0(p(),S),AId(!1)}catch(z){throw AId(!0),z;}finally{Ys(D),tY(W)}},!1)}catch(W){throw Yj.enableContextBasedComponentStacks&&GV(W),W;
}finally{I8(V)}});
S[MFe]=!0;Y&&TKX(S,L);return function(){S.textContent="";I();S[MFe]=!1}};
_.hW=function(S){if(BEG(Mx)){var p;(p=Yj.handleError)==null||p.call.apply(p,[Yj].concat(_.jo(ek(Error("Zb")))))}var U=AY,Y=KS;Promise.resolve().then(function(){if(U&&!U.isDisposed){var L=tY(U);try{hy(function(){return void S()},Y)}catch(I){throw Yj.enableContextBasedComponentStacks&&GV(I),I;
}finally{tY(L)}}})};
Rd=function(S,p){L$R(function(){return OI(S)},p)};
_.FM=function(S){rd()?_.hW(function(){OI(S)}):L$R(function(){return OI(S)},[])};
d0G=function(S){var p=[].concat(_.jo(S));S.length=0;S=_.d(p);for(p=S.next();!p.done;p=S.next()){p=p.value;Ice(p);var U=p.pendingEffect;p.pendingEffect=null;if(U=U==null?void 0:U())p.pendingCleanup=U}};
Ice=function(S){var p=S.pendingCleanup;S.pendingCleanup=null;p==null||p()};
VFq=function(S,p){if(rd())return S();var U=U0k("useMemoInternal");YRX(U.deps,p)&&(U.deps=p,U.value=S());return U.value};
TVE=function(S,p){return VFq(S,p)};
XM=function(S){return VFq(S,[])};
PQ=function(S){return XM(function(){return{value:S}})};
_.ZC=function(S,p){if(!S)return null;S=Object.keys(S);S=_.d(S);for(var U=S.next();!U.done;U=S.next()){U=U.value;var Y=U.toLowerCase();if(Y.indexOf(p,Y.length-p.length)>-1)return U}return null};
_.en=function(){var S=arguments,p=_.s0;S.length>1?p[S[0]]=S[1]:S.length===1&&Object.assign(p,S[0])};
_.g7=function(S,p){return S in _.s0?_.s0[S]:p};
_.ub=function(S,p){return!!_.g7(S,p)};
W$w=function(S){var p=_.s0.EXPERIMENT_FLAGS;return p?p[S]:void 0};
kTG=function(S){OZw.forEach(function(p){return p(S)})};
_.lb=function(S){return S&&window.yterr?function(){try{return S.apply(this,arguments)}catch(p){_.w7(p)}}:S};
_.w7=function(S){var p=_.ad("yt.logging.errors.log");p?p(S,"ERROR",void 0,void 0,void 0,void 0,void 0):(p=_.g7("ERRORS",[]),p.push([S,"ERROR",void 0,void 0,void 0,void 0,void 0]),_.en("ERRORS",p));kTG(S)};
_.fU=function(S,p,U,Y,L){var I=_.ad("yt.logging.errors.log");I?I(S,"WARNING",p,U,Y,void 0,L):(I=_.g7("ERRORS",[]),I.push([S,"WARNING",p,U,Y,void 0,L]),_.en("ERRORS",I))};
D0N=function(S,p){p=S.split(p);for(var U={},Y=0,L=p.length;Y<L;Y++){var I=p[Y].split("=");if(I.length===1&&I[0]||I.length===2)try{var V=HZE(I[0]||""),W=HZE(I[1]||"");if(V in U){var O=U[V];Array.isArray(O)?_.te(O,W):U[V]=[O,W]}else U[V]=W}catch(J){var D=J,z=I[0],Q=String(D0N);D.args=[{key:z,value:I[1],query:S,method:zkw===Q?"unchanged":Q}];QHE.hasOwnProperty(z)||_.fU(D)}}return U};
nuw=function(S){var p=[];_.h9.forEach(S,function(U,Y){var L=_.CU(Y);_.xs(Array.isArray(U)?U:[U],function(I){I==""?p.push(L):p.push(L+"="+_.CU(I))})});
return p.join("&")};
_.E0=function(S){S.charAt(0)==="?"&&(S=S.substring(1));return D0N(S,"&")};
_.mc=function(S){return S.indexOf("?")!==-1?(S=(S||"").split("#")[0],S=S.split("?",2),_.E0(S.length>1?S[1]:S[0])):{}};
_.od=function(S,p){return JrX(S,p||{},!0)};
yrE=function(S,p){return JrX(S,p||{},!1)};
JrX=function(S,p,U){var Y=S.split("#",2);S=Y[0];Y=Y.length>1?"#"+Y[1]:"";var L=S.split("?",2);S=L[0];L=_.E0(L[1]||"");for(var I in p)if(U||!_.h9.containsKey(L,I))L[I]=p[I];return _.vQ(S,L)+Y};
BQ=function(S){if(!p)var p=window.location.href;var U=_.$s(S)[1]||null,Y=_.ib(S);return U&&Y?NZ(S,p):Y?_.ib(p)===Y&&(Number(_.$s(p)[4]||null)||null)===(Number(_.$s(S)[4]||null)||null):!0};
_.bZX=function(S){S=K$w(S);return S===null?!1:S[0]==="com"&&S[1].match(/^youtube(?:kids|-nocookie)?$/)?!0:!1};
K$w=function(S){S=_.ib(S);return S!==null?S.split(".").reverse():null};
HZE=function(S){return S&&S.match(jHe)?S:qZ(S)};
_.AW=function(S){return new rrk(S)};
_.tW=function(){GTq||(GTq=new hkR);return GTq};
F$e=function(S){var p=_.cQ,U,Y;_.T(function(L){U=_.tW();return(Y=U.resolve(_.AW(p)))?(S(Y),L.return(Promise.resolve(Y))):L.return(U.resolve(new Rkk(p)).then(function(I){S(I);return I}))})};
_.y=function(S){S=S9(S);return typeof S==="string"&&S==="false"?!1:!!S};
_.pA=function(S,p){S=S9(S);return S===void 0&&p!==void 0?p:Number(S||0)};
Xru=function(S){S=S9(S);return Array.isArray(S)?_.Fp(S,function(p){return Number(p||0)}):[Number(S||0)]};
_.Ug=function(S){S=S9(S);return S!==void 0?String(S):""};
_.YU=function(S){S=S9(S);return Array.isArray(S)?_.Fp(S,function(p){return String(p||"")}):[String(S||"")]};
PNw=function(){return _.g7("EXPERIMENTS_TOKEN","")};
S9=function(S){return _.g7("EXPERIMENT_FLAGS",{})[S]};
ZZN=function(){for(var S=[],p=_.g7("EXPERIMENTS_FORCED_FLAGS",{}),U=_.d(Object.keys(p)),Y=U.next();!Y.done;Y=U.next())Y=Y.value,S.push({key:Y,value:String(p[Y])});U=_.g7("EXPERIMENT_FLAGS",{});Y=_.d(Object.keys(U));for(var L=Y.next();!L.done;L=Y.next())L=L.value,L.startsWith("force_")&&p[L]===void 0&&S.push({key:L,value:String(U[L])});return S};
ekr=function(){if(!sHE)return null;var S=sHE();return"open"in S?S:null};
_.guu=function(S){switch(_.LA(S)){case 200:case 201:case 202:case 203:case 204:case 205:case 206:case 304:return!0;default:return!1}};
_.LA=function(S){return S&&"status"in S?S.status:-1};
_.MT=function(S,p){typeof S==="function"&&(S=_.lb(S));return window.setTimeout(S,p)};
_.dE=function(S,p){typeof S==="function"&&(S=_.lb(S));return window.setInterval(S,p)};
_.V7=function(S){window.clearTimeout(S)};
wrq=function(S){S=_.mc(S);for(var p=_.d(uje),U=p.next();!U.done;U=p.next())if(S[U.value]!==void 0)return!0;return!1};
fcr=function(S,p,U,Y,L,I,V,W){U=U===void 0?"GET":U;Y=Y===void 0?"":Y;W=W===void 0?!1:W;var O=ekr();if(!O)return null;var D=function(){(O&&"readyState"in O?O.readyState:0)===4&&p&&_.lb(p)(O)};
"onloadend"in O?O.addEventListener("loadend",D,!1):O.onreadystatechange=D;_.y("debug_forward_web_query_parameters")&&(S=lcN(S,window.location.search));O.open(U,S,!0);I&&(O.responseType=I);V&&(O.withCredentials=!0);U=U==="POST"&&(window.FormData===void 0||!(Y instanceof FormData));if(L=acu(S,L))for(var z in L)O.setRequestHeader(z,L[z]),"content-type"===z.toLowerCase()&&(U=!1);U&&O.setRequestHeader("Content-Type","application/x-www-form-urlencoded");if(W&&"setAttributionReporting"in XMLHttpRequest.prototype){S=
{eventSourceEligible:!0,triggerEligible:!1};try{O.setAttributionReporting(S)}catch(Q){_.fU(Q)}}O.send(Y);return O};
acu=function(S,p){p=p===void 0?{}:p;var U=BQ(S),Y=_.g7("INNERTUBE_CLIENT_NAME"),L=_.y("web_ajax_ignore_global_headers_if_set"),I;for(I in CNe){var V=_.g7(CNe[I]),W=I==="X-Goog-AuthUser"||I==="X-Goog-PageId";I!=="X-Goog-Visitor-Id"||V||(V=_.g7("VISITOR_DATA"));var O;if(!(O=!V)){if(!(O=U||(_.ib(S)?!1:!0))){O=S;var D;if(D=_.y("add_auth_headers_to_remarketing_google_dot_com_ping")&&I==="Authorization"&&(Y==="TVHTML5"||Y==="TVHTML5_UNPLUGGED"||Y==="TVHTML5_SIMPLY"))D=K$w(O),D=D===null?!1:D[1]==="google"?
!0:D[2]==="google"?D[0]==="au"&&D[1]==="com"?!0:D[0]==="uk"&&D[1]==="co"?!0:!1:!1;D&&(O=_.Tp(O)||"",O=O.split("/"),O="/"+(O.length>1?O[1]:""),D=O==="/pagead");O=D?!0:!1}O=!O}O||L&&p[I]!==void 0||Y==="TVHTML5_UNPLUGGED"&&W||(p[I]=V)}"X-Goog-EOM-Visitor-Id"in p&&"X-Goog-Visitor-Id"in p&&delete p["X-Goog-Visitor-Id"];if(U||!_.ib(S))p["X-YouTube-Utc-Offset"]=String(-(new Date).getTimezoneOffset());if(U||!_.ib(S)){try{var z=(new Intl.DateTimeFormat).resolvedOptions().timeZone}catch(Q){}z&&(p["X-YouTube-Time-Zone"]=
z)}document.location.hostname.endsWith("youtubeeducation.com")||!U&&_.ib(S)||(p["X-YouTube-Ad-Signals"]=nuw(x0u()));return p};
_.Eur=function(S,p){var U=_.ib(S);_.y("debug_handle_relative_url_for_query_forward_killswitch")||!U&&BQ(S)&&(U=document.location.hostname);var Y=_.Tp(S);Y=(U=U&&(U.endsWith("youtube.com")||U.endsWith("youtube-nocookie.com")))&&Y&&Y.startsWith("/api/");if(!U||Y)return S;var L=_.E0(p),I={};_.xs(uje,function(V){L[V]&&(I[V]=L[V])});
return yrE(S,I)};
m0d=function(S,p){p.method="POST";p.postParams||(p.postParams={});return _.WS(S,p)};
ouR=function(S,p){var U=_.g7("XSRF_FIELD_NAME"),Y;p.headers&&(Y=p.headers["Content-Type"]);return!p.excludeXsrf&&(!_.ib(S)||p.withCredentials||_.ib(S)===document.location.hostname)&&p.method==="POST"&&(!Y||Y==="application/x-www-form-urlencoded")&&!(p.postParams&&p.postParams[U])};
_.WS=function(S,p){var U=p.format||"JSON";S=vud(S,p);var Y=$0G(S,p),L=!1,I=iZe(S,function(O){if(!L){L=!0;W&&_.V7(W);var D=_.guu(O),z=null,Q=400<=O.status&&O.status<500,J=500<=O.status&&O.status<600;if(D||Q||J)z=NVw(S,U,O,p.convertToSafeHtml);D&&(D=BVw(U,O,z));z=z||{};Q=p.context||_.UX;D?p.onSuccess&&p.onSuccess.call(Q,O,z):p.onError&&p.onError.call(Q,O,z);p.onFinish&&p.onFinish.call(Q,O,z)}},p.method,Y,p.headers,p.responseType,p.withCredentials);
Y=p.timeout||0;if(p.onTimeout&&Y>0){var V=p.onTimeout;var W=_.MT(function(){L||(L=!0,I.abort(),_.V7(W),V.call(p.context||_.UX,I))},Y)}return I};
vud=function(S,p){p.includeDomain&&(S=document.location.protocol+"//"+document.location.hostname+(document.location.port?":"+document.location.port:"")+S);var U=_.g7("XSRF_FIELD_NAME");if(p=p.urlParams)p[U]&&delete p[U],S=_.od(S,p);return S};
$0G=function(S,p){var U=_.g7("XSRF_FIELD_NAME"),Y=_.g7("XSRF_TOKEN"),L=p.postBody||"",I=p.postParams;ouR(S,p)&&(I||(I={}),I[U]=Y);(_.y("ajax_parse_query_data_only_when_filled")&&I&&Object.keys(I).length>0||I)&&typeof L==="string"&&(L=_.E0(L),_.h9.extend(L,I),L=p.postBodyFormat&&p.postBodyFormat==="JSON"?JSON.stringify(L):_.Og(L));I=L||I&&!_.h9.isEmpty(I);!qRN&&I&&p.method!=="POST"&&(qRN=!0,_.w7(Error("Ec")));return L};
NVw=function(S,p,U,Y){var L=null;switch(p){case "JSON":try{var I=U.responseText}catch(V){throw Y=Error("Fc"),Y.params=S,_.fU(Y),V;}S=U.getResponseHeader("Content-Type")||"";I&&S.indexOf("json")>=0&&(I.substring(0,5)===")]}'\n"&&(I=I.substring(5)),L=JSON.parse(I));break;case "XML":if(S=(S=U.responseXML)?ArG(S):null)L={},_.xs(S.getElementsByTagName("*"),function(V){L[V.tagName]=tFe(V)})}Y&&crE(L);
return L};
crE=function(S){if(_.pc(S))for(var p in S)p==="html_content"||Iu(p,"_html")?S[p]=Fq(S[p]):crE(S[p])};
BVw=function(S,p,U){if(p&&p.status===204)return!0;switch(S){case "JSON":return!!U;case "XML":return Number(U&&U.return_code)===0;case "RAW":return!0;default:return!!U}};
ArG=function(S){return S?(S=("responseXML"in S?S.responseXML:S).getElementsByTagName("root"))&&S.length>0?S[0]:null:null};
tFe=function(S){var p="";_.xs(S.childNodes,function(U){p+=U.nodeValue});
return p};
S$E=function(S){if(S.name==="JavaException")return!0;S=S.stack;return S.includes("chrome://")||S.includes("-extension://")||S.includes("webkit-masked-url://")};
pvG=function(S){if(!S.stack)return!0;var p=!S.stack.includes("\n");return p&&S.stack.includes("ErrorType: ")||p&&S.stack.includes("Anonymous function (Unknown script")||S.stack.toLowerCase()==="not available"||S.fileName==="user-script"||S.fileName.startsWith("user-script:")?!0:!1};
_.kU=function(S){_.hY.call(this);this.JSC$8441_key_=1;this.pendingKeys_=[];this.publishDepth_=0;this.subscriptions_=[];this.topics_={};this.async_=!!S};
Y$u=function(S,p){var U=S.length,Y=0,L=function(){return S.charCodeAt(Y++)};
do{var I=UUG(L);if(I===Infinity)break;var V=I>>3;switch(I&7){case 0:I=UUG(L);if(V===p)return I;break;case 1:if(V===p)return;Y+=8;break;case 2:I=UUG(L);if(V===p)return S.substr(Y,I);Y+=I;break;case 5:if(V===p)return;Y+=4;break;default:return}}while(Y<U)};
UUG=function(S){var p=S(),U=p&127;if(p<128)return U;p=S();U|=(p&127)<<7;if(p<128)return U;p=S();U|=(p&127)<<14;if(p<128)return U;p=S();return p<128?U|(p&127)<<21:Infinity};
Mmu=function(S,p,U,Y){if(S)if(Array.isArray(S)){var L=Y;for(Y=0;Y<S.length&&!(S[Y]&&(L+=Lae(Y,S[Y],p,U),L>500));Y++);Y=L}else if(typeof S==="object")for(L in S){if(S[L]){var I=L;var V=S[L],W=p,O=U;I=typeof V!=="string"||I!=="clickTrackingParams"&&I!=="trackingParams"?0:(V=Y$u(atob(V.replace(/-/g,"+").replace(/_/g,"/")),2))?Lae(I+".ve",V,W,O):0;Y+=I;Y+=Lae(L,S[L],p,U);if(Y>500)break}}else U[p]=HS(S),Y+=U[p].length;else U[p]=HS(S),Y+=U[p].length;return Y};
Lae=function(S,p,U,Y){U+="."+S;S=HS(p);Y[U]=S;return U.length+S.length};
HS=function(S){try{return(typeof S==="string"?S:String(JSON.stringify(S))).substr(0,500)}catch(p){return"unable to serialize "+typeof S+" ("+p.message+")"}};
ILG=function(S){switch(S){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}};
_.zp=function(S,p,U,Y,L){_.D5.set(S,p,{maxAge:U,path:"/",domain:Y===void 0?"youtube.com":Y,secure:L===void 0?!1:L})};
_.dUN=function(S,p,U){_.D5.remove(S,p===void 0?"/":p,U===void 0?"youtube.com":U)};
_.Q7=function(){if(_.y("embeds_web_enable_cookie_detection_fix")){if(!_.UX.navigator.cookieEnabled)return!1}else if(!_.D5.isEnabled())return!1;if(!_.D5.isEmpty())return!0;_.y("embeds_web_enable_cookie_detection_fix")?_.D5.set("TESTCOOKIESENABLED","1",{maxAge:60,sameSite:"none",secure:!0}):_.D5.set("TESTCOOKIESENABLED","1",{maxAge:60});if(_.D5.get("TESTCOOKIESENABLED")!=="1")return!1;_.D5.remove("TESTCOOKIESENABLED");return!0};
Vmr=function(){var S=_.UX.navigator;return S?S.connection:void 0};
TnG=function(){if(typeof Intl!=="undefined")try{return(new Intl.DateTimeFormat).resolvedOptions().timeZone}catch(S){}};
_.O9w=function(){var S=Vmr();if(S){var p=WaX[S.type||"unknown"]||"CONN_UNKNOWN";S=WaX[S.effectiveType||"unknown"]||"CONN_UNKNOWN";p==="CONN_CELLULAR_UNKNOWN"&&S!=="CONN_UNKNOWN"&&(p=S);if(p!=="CONN_UNKNOWN")return p;if(S!=="CONN_UNKNOWN")return S}};
H9u=function(){var S=Vmr();if(S!=null&&S.effectiveType)return k0w.hasOwnProperty(S.effectiveType)?k0w[S.effectiveType]:"EFFECTIVE_CONNECTION_TYPE_UNKNOWN"};
_.JI=function(){try{return _.nA(),!0}catch(S){return!1}};
_.nA=function(S){if(_.g7("DATASYNC_ID")!==void 0)return _.g7("DATASYNC_ID");throw new _.y7("Datasync ID not set",S===void 0?"unknown":S);};
_.KA=function(S){this.mechanism=S};
bi=function(S){this.mechanism=S};
j9=function(S){this.storage_=S;this.cachedIsStorageAvailable_=null};
DUe=function(){var S=null;try{S=_.UX.localStorage||null}catch(p){}j9.call(this,S)};
z0G=function(){var S=null;try{S=_.UX.sessionStorage||null}catch(p){}j9.call(this,S)};
Gp=function(S,p){this.mechanism_=S;this.JSC$8543_prefix_=p+"::"};
_.Q9G=function(S){var p=new DUe;return p.isAvailable()?S?new Gp(p,S):p:null};
_.nnw=function(S){var p=new z0G;return p.isAvailable()?S?new Gp(p,S):p:null};
y8X=function(){var S;return(S=J8w())==null?void 0:S.get("LAST_RESULT_ENTRY_KEY",!0)};
_.Fu=function(S){KaR||(_.hI?_.hI.logError(S):(_.Rx.push({type:"ERROR",payload:S}),_.Rx.length>10&&_.Rx.shift()))};
Xu=function(S,p){KaR||(_.hI?_.hI.logEvent(S,p):(_.Rx.push({type:"EVENT",eventType:S,payload:p}),_.Rx.length>10&&_.Rx.shift()))};
PS=function(S){if(S.indexOf(":")>=0)throw Error("Mc");};
Z5=function(S){return S.substr(0,S.indexOf(":"))||S};
r8r=function(){return(b9R||j9u)&&sg("applewebkit")&&!sg("version")&&(!sg("safari")||sg("gsa/"))};
sg=function(S){var p=_.zG();return p?p.toLowerCase().indexOf(S)>=0:!1};
R0G=function(S,p,U,Y){p=Z5(p);var L=S instanceof Error?S:Error("Nc`"+S);if(L instanceof e9)return L;S={objectStoreNames:U,dbName:p,dbVersion:Y};if(L.name==="QuotaExceededError")return new e9("QUOTA_EXCEEDED",S);if(_.gE&&L.name==="UnknownError")return new e9("QUOTA_MAYBE_EXCEEDED",S);if(L instanceof G0w)return new e9("MISSING_INDEX",Object.assign({},S,{objectStore:L.objectStore,index:L.index}));if(L.name==="InvalidStateError"&&h0k.some(function(I){return L.message.includes(I)}))return new e9("EXECUTE_TRANSACTION_ON_CLOSED_DB",
S);
if(L.name==="AbortError")return new e9("UNKNOWN_ABORT",S,L.message);L.args=[Object.assign({},S,{name:"IdbError",originalName:L.name})];L.level="WARNING";return L};
ui=function(S,p,U){var Y=y8X();return new e9("IDB_NOT_SUPPORTED",{context:{caller:S,publicName:p,version:U,hasSucceededOnce:Y==null?void 0:Y.hasSucceededOnce}})};
Fad=function(S){if(!S)throw Error();throw S;};
Xvd=function(S){return S};
PLN=function(S,p,U){var Y=function(){try{S.removeEventListener("success",L),S.removeEventListener("error",I)}catch(V){}},L=function(){p(S.result);
Y()},I=function(){U(S.error);
Y()};
S.addEventListener("success",L);S.addEventListener("error",I)};
Z9q=function(S){return new Promise(function(p,U){PLN(S,p,U)})};
ax=function(S){return new wE(new li(function(p,U){PLN(S,p,U)}))};
s9u=function(S,p){return new wE(new li(function(U,Y){var L=function(){var I=S?p(S):null;I?I.then(function(V){S=V;L()},Y):U()};
L()}))};
gnk=function(S,p,U){return new Promise(function(Y,L){var I=p!==void 0?self.indexedDB.open(S,p):self.indexedDB.open(S);var V=U.blocked,W=U.blocking,O=U.terminated,D=U.upgrade,z=U.closed,Q,J=function(){Q||(Q=new fA(I.result,{closed:z}));return Q};
I.addEventListener("upgradeneeded",function(K){try{if(K.newVersion===null)throw Error("Sc");if(I.transaction===null)throw Error("Tc");K.dataLoss&&K.dataLoss!=="none"&&Xu("IDB_DATA_CORRUPTED",{reason:K.dataLossMessage||"unknown reason",dbName:Z5(S)});var G=J(),X=new e0u(I.transaction);D&&D(G,function(Z){return K.oldVersion<Z&&K.newVersion>=Z},X);
X.done.catch(function(Z){L(Z)})}catch(Z){L(Z)}});
I.addEventListener("success",function(){var K=I.result;W&&K.addEventListener("versionchange",function(){W(J())});
K.addEventListener("close",function(){Xu("IDB_UNEXPECTEDLY_CLOSED",{dbName:Z5(S),dbVersion:K.version});O&&O()});
Y(J())});
I.addEventListener("error",function(){L(I.error)});
V&&I.addEventListener("blocked",function(){V()})})};
u$N=function(S,p,U){U=U===void 0?{}:U;return gnk(S,p,U)};
_.xU=function(S,p){p=p===void 0?{}:p;var U,Y,L,I;return _.T(function(V){if(V.nextAddress==1)return _.M2(V,2),U=self.indexedDB.deleteDatabase(S),Y=p,(L=Y.blocked)&&U.addEventListener("blocked",function(){L()}),_.k(V,Z9q(U),4);
if(V.nextAddress!=2)return _.CA(V,0);I=_.W4(V);throw R0G(I,S,"",-1);})};
lLE=function(S,p){var U;return _.T(function(Y){if(Y.nextAddress==1)return _.k(Y,_.Eg(wvE,p),2);U=Y.yieldResult;return Y.return(_.mY(U,["databases"],{enableRetries:!0,mode:"readwrite"},function(L){var I=L.objectStore("databases");return I.get(S.actualName).then(function(V){if(V?S.actualName!==V.actualName||S.publicName!==V.publicName||S.userIdentifier!==V.userIdentifier:1)return I.put(S).then(function(){})})}))})};
_.ox=function(S,p){var U;return _.T(function(Y){if(Y.nextAddress==1)return S?_.k(Y,_.Eg(wvE,p),2):Y.return();U=Y.yieldResult;return Y.return(U.delete("databases",S))})};
_.aLq=function(S,p){var U,Y;return _.T(function(L){return L.nextAddress==1?(U=[],_.k(L,_.Eg(wvE,p),2)):L.nextAddress!=3?(Y=L.yieldResult,_.k(L,_.mY(Y,["databases"],{enableRetries:!0,mode:"readonly"},function(I){U.length=0;return vS(I.objectStore("databases"),{},function(V){S(V.getValue())&&U.push(V.getValue());return V.continue()})}),3)):L.return(U)})};
fLd=function(S,p){return _.aLq(function(U){return U.publicName===S&&U.userIdentifier!==void 0},p)};
EnR=function(){var S,p,U,Y;return _.T(function(L){switch(L.nextAddress){case 1:S=y8X();if((p=S)==null?0:p.hasSucceededOnce)return L.return(!0);var I;if(I=CLG)I=/WebKit\/([0-9]+)/.exec(_.zG()),I=!!(I&&parseInt(I[1],10)>=600);I&&(I=/WebKit\/([0-9]+)/.exec(_.zG()),I=!(I&&parseInt(I[1],10)>=602));if(I||$U)return L.return(!1);try{if(U=self,!(U.indexedDB&&U.IDBIndex&&U.IDBKeyRange&&U.IDBObjectStore))return L.return(!1)}catch(V){return L.return(!1)}if(!("IDBTransaction"in self&&"objectStoreNames"in IDBTransaction.prototype))return L.return(!1);
_.M2(L,2);Y={actualName:"yt-idb-test-do-not-use",publicName:"yt-idb-test-do-not-use",userIdentifier:void 0};return _.k(L,lLE(Y,xUw),4);case 4:return _.k(L,_.ox("yt-idb-test-do-not-use",xUw),5);case 5:return L.return(!0);case 2:return _.W4(L),L.return(!1)}})};
onN=function(){if(mUX!==void 0)return mUX;KaR=!0;return mUX=EnR().then(function(S){KaR=!1;var p;if((p=J8w())!=null&&p.expiringStorage_){var U;p={hasSucceededOnce:((U=y8X())==null?void 0:U.hasSucceededOnce)||S};var Y;(Y=J8w())==null||Y.set("LAST_RESULT_ENTRY_KEY",p,2592E3,!0)}return S})};
ii=function(){return _.ad("ytglobal.idbToken_")||void 0};
_.BS=function(){var S=ii();return S?Promise.resolve(S):onN().then(function(p){(p=p?xUw:void 0)&&_.NT("ytglobal.idbToken_",p);return p})};
vnd=function(S){if(!_.JI())throw S=new e9("AUTH_INVALID",{dbName:S}),_.Fu(S),S;var p=_.nA();return{actualName:S+":"+p,publicName:S,userIdentifier:p}};
$Ud=function(S,p,U,Y){var L,I,V,W,O,D;return _.T(function(z){switch(z.nextAddress){case 1:return I=(L=Error().stack)!=null?L:"",_.k(z,_.BS(),2);case 2:V=z.yieldResult;if(!V)throw W=ui("openDbImpl",S,p),_.y("ytidb_async_stack_killswitch")||(W.stack=W.stack+"\n"+I.substring(I.indexOf("\n")+1)),_.Fu(W),W;PS(S);O=U?{actualName:S,publicName:S,userIdentifier:void 0}:vnd(S);_.M2(z,3);return _.k(z,lLE(O,V),5);case 5:return _.k(z,u$N(O.actualName,p,Y),6);case 6:return z.return(z.yieldResult);case 3:return D=
_.W4(z),_.M2(z,7),_.k(z,_.ox(O.actualName,V),9);case 9:_.CA(z,8);break;case 7:_.W4(z);case 8:throw D;}})};
i9e=function(S,p,U){U=U===void 0?{}:U;return $Ud(S,p,!1,U)};
Nne=function(S,p,U){U=U===void 0?{}:U;return $Ud(S,p,!0,U)};
BnR=function(S,p){p=p===void 0?{}:p;var U,Y;return _.T(function(L){if(L.nextAddress==1)return _.k(L,_.BS(),2);if(L.nextAddress!=3){U=L.yieldResult;if(!U)return L.return();PS(S);Y=vnd(S);return _.k(L,_.xU(Y.actualName,p),3)}return _.k(L,_.ox(Y.actualName,U),0)})};
q$R=function(S,p,U){S=S.map(function(Y){return _.T(function(L){return L.nextAddress==1?_.k(L,_.xU(Y.actualName,p),2):_.k(L,_.ox(Y.actualName,U),0)})});
return Promise.all(S).then(function(){})};
A8w=function(S){var p=p===void 0?{}:p;var U,Y;return _.T(function(L){if(L.nextAddress==1)return _.k(L,_.BS(),2);if(L.nextAddress!=3){U=L.yieldResult;if(!U)return L.return();PS(S);return _.k(L,fLd(S,U),3)}Y=L.yieldResult;return _.k(L,q$R(Y,p,U),0)})};
tmd=function(S,p){p=p===void 0?{}:p;var U;return _.T(function(Y){if(Y.nextAddress==1)return _.k(Y,_.BS(),2);if(Y.nextAddress!=3){U=Y.yieldResult;if(!U)return Y.return();PS(S);return _.k(Y,_.xU(S,p),3)}return _.k(Y,_.ox(S,U),0)})};
qT=function(S,p){return c8q(S,p)};
pdX=function(S){return _.Eg(Shw(),S)};
UwG=function(S,p,U,Y){var L,I,V;return _.T(function(W){switch(W.nextAddress){case 1:return L={config:S,hashData:p,timestamp:Y!==void 0?Y:(0,_.AI)()},_.k(W,pdX(U),2);case 2:return I=W.yieldResult,_.k(W,I.clear("hotConfigStore"),3);case 3:return _.k(W,I.put("hotConfigStore",L),4);case 4:return V=W.yieldResult,W.return(V)}})};
YhG=function(S,p,U,Y,L){var I,V,W;return _.T(function(O){switch(O.nextAddress){case 1:return I={config:S,hashData:p,configData:U,timestamp:L!==void 0?L:(0,_.AI)()},_.k(O,pdX(Y),2);case 2:return V=O.yieldResult,_.k(O,V.clear("coldConfigStore"),3);case 3:return _.k(O,V.put("coldConfigStore",I),4);case 4:return W=O.yieldResult,O.return(W)}})};
Lpw=function(S){var p,U;return _.T(function(Y){return Y.nextAddress==1?_.k(Y,pdX(S),2):Y.nextAddress!=3?(p=Y.yieldResult,U=void 0,_.k(Y,_.mY(p,["coldConfigStore"],{mode:"readwrite",enableRetries:!0},function(L){return _.tI(L.objectStore("coldConfigStore").index("coldTimestampIndex"),{direction:"prev"},function(I){U=I.getValue()})}),3)):Y.return(U)})};
Mtw=function(S){var p,U;return _.T(function(Y){return Y.nextAddress==1?_.k(Y,pdX(S),2):Y.nextAddress!=3?(p=Y.yieldResult,U=void 0,_.k(Y,_.mY(p,["hotConfigStore"],{mode:"readwrite",enableRetries:!0},function(L){return _.tI(L.objectStore("hotConfigStore").index("hotTimestampIndex"),{direction:"prev"},function(I){U=I.getValue()})}),3)):Y.return(U)})};
I9R=function(){return _.T(function(S){return _.k(S,A8w("ytGcfConfig"),0)})};
dwr=function(){return"INNERTUBE_API_KEY"in _.s0&&"INNERTUBE_API_VERSION"in _.s0};
_.cS=function(){return{innertubeApiKey:_.g7("INNERTUBE_API_KEY"),innertubeApiVersion:_.g7("INNERTUBE_API_VERSION"),innertubeContextClientConfigInfo:_.g7("INNERTUBE_CONTEXT_CLIENT_CONFIG_INFO"),innertubeContextClientName:_.g7("INNERTUBE_CONTEXT_CLIENT_NAME","WEB"),innertubeContextClientNameFieldNumber:_.g7("INNERTUBE_CONTEXT_CLIENT_NAME",1),innertubeContextClientVersion:_.g7("INNERTUBE_CONTEXT_CLIENT_VERSION"),innertubeContextHostLanguage:_.g7("INNERTUBE_CONTEXT_HL"),innertubeContextGeoLocation:_.g7("INNERTUBE_CONTEXT_GL"),
innertubeHostOverride:_.g7("INNERTUBE_HOST_OVERRIDE")||"",innertubeUseThirdPartyAuth:_.ub("INNERTUBE_USE_THIRD_PARTY_AUTH",!1),innertubeOmitApiKeyWhenAuthHeaderIsPresent:_.ub("INNERTUBE_OMIT_API_KEY_WHEN_AUTH_HEADER_IS_PRESENT",!1),appInstallData:_.g7("SERIALIZED_CLIENT_CONFIG_DATA")}};
_.Dww=function(S){var p={client:{hl:S.innertubeContextHostLanguage,gl:S.innertubeContextGeoLocation,clientName:S.innertubeContextClientName,clientVersion:S.innertubeContextClientVersion,configInfo:S.innertubeContextClientConfigInfo}};navigator.userAgent&&(p.client.userAgent=String(navigator.userAgent));var U=_.UX.devicePixelRatio;U&&U!=1&&(p.client.screenDensityFloat=String(U));U=PNw();U!==""&&(p.client.experimentsToken=U);U=ZZN();U.length>0&&(p.request={internalExperimentFlags:U});VtG(S,void 0,p);
TBe(void 0,p);Wpe(void 0,p);OpG(S,void 0,p);kIr(void 0,p);_.y("start_client_gcf")&&Hpe(void 0,p);_.g7("DELEGATED_SESSION_ID")&&!_.y("pageid_as_header_web")&&(p.user={onBehalfOfUser:_.g7("DELEGATED_SESSION_ID")});!_.y("fill_delegate_context_in_gel_killswitch")&&(S=_.g7("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT"))&&(p.user=Object.assign({},p.user,{serializedDelegationContext:S}));S=_.g7("INNERTUBE_CONTEXT");var Y;if(_.y("enable_persistent_device_token")&&(S==null?0:(Y=S.client)==null?0:Y.rolloutToken)){var L;
p.client.rolloutToken=S==null?void 0:(L=S.client)==null?void 0:L.rolloutToken}Y=Object;L=Y.assign;S=p.client;U={};for(var I=_.d(Object.entries(_.E0(_.g7("DEVICE","")))),V=I.next();!V.done;V=I.next()){var W=_.d(V.value);V=W.next().value;W=W.next().value;V==="cbrand"?U.deviceMake=W:V==="cmodel"?U.deviceModel=W:V==="cbr"?U.browserName=W:V==="cbrver"?U.browserVersion=W:V==="cos"?U.osName=W:V==="cosver"?U.osVersion=W:V==="cplatform"&&(U.platform=W)}p.client=L.call(Y,S,U);return p};
VtG=function(S,p,U){S=S.innertubeContextClientName;if(S==="WEB"||S==="MWEB"||S===1||S===2)if(p){U=_.Sa(p,zUE,96)||new zUE;var Y=Q2e();Y=Object.keys(ndd).indexOf(Y);Y=Y===-1?null:Y;Y!==null&&_.pf(U,3,Y);_.U3(p,96,U)}else U&&(U.client.mainAppWebInfo=(Y=U.client.mainAppWebInfo)!=null?Y:{},U.client.mainAppWebInfo.webDisplayMode=Q2e())};
TBe=function(S,p){var U=_.ad("yt.embedded_player.embed_url");U&&(S?(p=_.Sa(S,Jae,7)||new Jae,_.zN(p,4,U),_.U3(S,7,p)):p&&(p.thirdParty={embedUrl:U}))};
Wpe=function(S,p){var U;if(_.y("web_log_memory_total_kbytes")&&((U=_.UX.navigator)==null?0:U.deviceMemory)){var Y;U=(Y=_.UX.navigator)==null?void 0:Y.deviceMemory;S?_.UP(S,95,st(U*1E6)):p&&(p.client.memoryTotalKbytes=""+U*1E6)}};
OpG=function(S,p,U){if(S.appInstallData)if(p){var Y;U=(Y=_.Sa(p,Y7,62))!=null?Y:new Y7;_.zN(U,6,S.appInstallData);_.U3(p,62,U)}else U&&(U.client.configInfo=U.client.configInfo||{},U.client.configInfo.appInstallData=S.appInstallData)};
kIr=function(S,p){var U=_.O9w();U&&(S?_.pf(S,61,yaw[U]):p&&(p.client.connectionType=U));_.y("web_log_effective_connection_type")&&(U=H9u())&&(S?_.pf(S,94,Kpe[U]):p&&(p.client.effectiveConnectionType=U))};
_.raw=function(S,p,U){U=U===void 0?{}:U;var Y={};_.g7("EOM_VISITOR_DATA")?Y={"X-Goog-EOM-Visitor-Id":_.g7("EOM_VISITOR_DATA")}:Y={"X-Goog-Visitor-Id":U.visitorData||_.g7("VISITOR_DATA","")};if(p&&p.includes("www.youtube-nocookie.com"))return Y;p=U.authorization||_.g7("AUTHORIZATION");p||(S?p="Bearer "+_.ad("gapi.auth.getToken")().access_token:(bpd.instance||(bpd.instance=new bpd),S=j2k(),_.y("pageid_as_header_web")||delete S["X-Goog-PageId"],Y=Object.assign({},Y,S)));p&&(Y.Authorization=p);return Y};
Hpe=function(S,p){var U=GIu();if(U){var Y=U.coldConfigData,L=U.coldHashData;U=U.hotHashData;if(S){var I;p=(I=_.Sa(S,Y7,62))!=null?I:new Y7;Y=_.zN(p,1,Y);_.zN(Y,3,L).setHotHashData(U);_.U3(S,62,p)}else p&&(p.client.configInfo=p.client.configInfo||{},Y&&(p.client.configInfo.coldConfigData=Y),L&&(p.client.configInfo.coldHashData=L),U&&(p.client.configInfo.hotHashData=U))}};
Lf=function(S){for(var p=S.length;--p>=0;)S[p]=0};
hUG=function(S,p,U,Y,L){this.static_tree=S;this.extra_bits=p;this.extra_base=U;this.elems=Y;this.max_length=L;this.has_stree=S&&S.length};
RUe=function(S,p){this.dyn_tree=S;this.max_code=0;this.stat_desc=p};
Mz=function(S,p){S.pending_buf[S.pending++]=p&255;S.pending_buf[S.pending++]=p>>>8&255};
It=function(S,p,U){S.bi_valid>16-U?(S.bi_buf|=p<<S.bi_valid&65535,Mz(S,S.bi_buf),S.bi_buf=p>>16-S.bi_valid,S.bi_valid+=U-16):(S.bi_buf|=p<<S.bi_valid&65535,S.bi_valid+=U)};
d6=function(S,p,U){It(S,U[p*2],U[p*2+1])};
FpE=function(S,p){var U=0;do U|=S&1,S>>>=1,U<<=1;while(--p>0);return U>>>1};
XdR=function(S,p,U){var Y=Array(16),L=0,I;for(I=1;I<=15;I++)Y[I]=L=L+U[I-1]<<1;for(U=0;U<=p;U++)L=S[U*2+1],L!==0&&(S[U*2]=FpE(Y[L]++,L))};
P5e=function(S){var p;for(p=0;p<286;p++)S.dyn_ltree[p*2]=0;for(p=0;p<30;p++)S.dyn_dtree[p*2]=0;for(p=0;p<19;p++)S.bl_tree[p*2]=0;S.dyn_ltree[512]=1;S.opt_len=S.static_len=0;S.last_lit=S.matches=0};
Zpr=function(S){S.bi_valid>8?Mz(S,S.bi_buf):S.bi_valid>0&&(S.pending_buf[S.pending++]=S.bi_buf);S.bi_buf=0;S.bi_valid=0};
s2X=function(S,p,U){Zpr(S);Mz(S,U);Mz(S,~U);V0.arraySet(S.pending_buf,S.window,p,U,S.pending);S.pending+=U};
eUw=function(S,p,U,Y){var L=p*2,I=U*2;return S[L]<S[I]||S[L]===S[I]&&Y[p]<=Y[U]};
gdr=function(S,p,U){for(var Y=S.heap[U],L=U<<1;L<=S.heap_len;){L<S.heap_len&&eUw(p,S.heap[L+1],S.heap[L],S.depth)&&L++;if(eUw(p,Y,S.heap[L],S.depth))break;S.heap[U]=S.heap[L];U=L;L<<=1}S.heap[U]=Y};
f9e=function(S,p,U){var Y=0;if(S.last_lit!==0){do{var L=S.pending_buf[S.d_buf+Y*2]<<8|S.pending_buf[S.d_buf+Y*2+1];var I=S.pending_buf[S.l_buf+Y];Y++;if(L===0)d6(S,I,p);else{var V=TM[I];d6(S,V+256+1,p);var W=ugd[V];W!==0&&(I-=wdw[V],It(S,I,W));L--;V=L<256?WA[L]:WA[256+(L>>>7)];d6(S,V,U);W=l9G[V];W!==0&&(L-=a9N[V],It(S,L,W))}}while(Y<S.last_lit)}d6(S,256,p)};
C5N=function(S,p){var U=p.dyn_tree,Y=p.stat_desc.static_tree,L=p.stat_desc.has_stree,I=p.stat_desc.elems,V,W=-1;S.heap_len=0;S.heap_max=573;for(V=0;V<I;V++)U[V*2]!==0?(S.heap[++S.heap_len]=W=V,S.depth[V]=0):U[V*2+1]=0;for(;S.heap_len<2;){var O=S.heap[++S.heap_len]=W<2?++W:0;U[O*2]=1;S.depth[O]=0;S.opt_len--;L&&(S.static_len-=Y[O*2+1])}p.max_code=W;for(V=S.heap_len>>1;V>=1;V--)gdr(S,U,V);O=I;do V=S.heap[1],S.heap[1]=S.heap[S.heap_len--],gdr(S,U,1),Y=S.heap[1],S.heap[--S.heap_max]=V,S.heap[--S.heap_max]=
Y,U[O*2]=U[V*2]+U[Y*2],S.depth[O]=(S.depth[V]>=S.depth[Y]?S.depth[V]:S.depth[Y])+1,U[V*2+1]=U[Y*2+1]=O,S.heap[1]=O++,gdr(S,U,1);while(S.heap_len>=2);S.heap[--S.heap_max]=S.heap[1];V=p.dyn_tree;O=p.max_code;Y=p.stat_desc.static_tree;L=p.stat_desc.has_stree;I=p.stat_desc.extra_bits;var D=p.stat_desc.extra_base,z=p.stat_desc.max_length,Q,J=0;for(Q=0;Q<=15;Q++)S.bl_count[Q]=0;V[S.heap[S.heap_max]*2+1]=0;for(p=S.heap_max+1;p<573;p++){var K=S.heap[p];Q=V[V[K*2+1]*2+1]+1;Q>z&&(Q=z,J++);V[K*2+1]=Q;if(!(K>
O)){S.bl_count[Q]++;var G=0;K>=D&&(G=I[K-D]);var X=V[K*2];S.opt_len+=X*(Q+G);L&&(S.static_len+=X*(Y[K*2+1]+G))}}if(J!==0){do{for(Q=z-1;S.bl_count[Q]===0;)Q--;S.bl_count[Q]--;S.bl_count[Q+1]+=2;S.bl_count[z]--;J-=2}while(J>0);for(Q=z;Q!==0;Q--)for(K=S.bl_count[Q];K!==0;)Y=S.heap[--p],Y>O||(V[Y*2+1]!==Q&&(S.opt_len+=(Q-V[Y*2+1])*V[Y*2],V[Y*2+1]=Q),K--)}XdR(U,W,S.bl_count)};
xwR=function(S,p,U){var Y,L=-1,I=p[1],V=0,W=7,O=4;I===0&&(W=138,O=3);p[(U+1)*2+1]=65535;for(Y=0;Y<=U;Y++){var D=I;I=p[(Y+1)*2+1];++V<W&&D===I||(V<O?S.bl_tree[D*2]+=V:D!==0?(D!==L&&S.bl_tree[D*2]++,S.bl_tree[32]++):V<=10?S.bl_tree[34]++:S.bl_tree[36]++,V=0,L=D,I===0?(W=138,O=3):D===I?(W=6,O=3):(W=7,O=4))}};
Ede=function(S,p,U){var Y,L=-1,I=p[1],V=0,W=7,O=4;I===0&&(W=138,O=3);for(Y=0;Y<=U;Y++){var D=I;I=p[(Y+1)*2+1];if(!(++V<W&&D===I)){if(V<O){do d6(S,D,S.bl_tree);while(--V!==0)}else D!==0?(D!==L&&(d6(S,D,S.bl_tree),V--),d6(S,16,S.bl_tree),It(S,V-3,2)):V<=10?(d6(S,17,S.bl_tree),It(S,V-3,3)):(d6(S,18,S.bl_tree),It(S,V-11,7));V=0;L=D;I===0?(W=138,O=3):D===I?(W=6,O=3):(W=7,O=4)}}};
mwN=function(S){var p=4093624447,U;for(U=0;U<=31;U++,p>>>=1)if(p&1&&S.dyn_ltree[U*2]!==0)return 0;if(S.dyn_ltree[18]!==0||S.dyn_ltree[20]!==0||S.dyn_ltree[26]!==0)return 1;for(U=32;U<256;U++)if(S.dyn_ltree[U*2]!==0)return 1;return 0};
HA=function(S,p,U){S.pending_buf[S.d_buf+S.last_lit*2]=p>>>8&255;S.pending_buf[S.d_buf+S.last_lit*2+1]=p&255;S.pending_buf[S.l_buf+S.last_lit]=U&255;S.last_lit++;p===0?S.dyn_ltree[U*2]++:(S.matches++,p--,S.dyn_ltree[(TM[U]+256+1)*2]++,S.dyn_dtree[(p<256?WA[p]:WA[256+(p>>>7)])*2]++);return S.last_lit===S.lit_bufsize-1};
Q0=function(S,p){S.msg=zM[p];return p};
nf=function(S){for(var p=S.length;--p>=0;)S[p]=0};
JE=function(S){var p=S.state,U=p.pending;U>S.avail_out&&(U=S.avail_out);U!==0&&(V0.arraySet(S.output,p.pending_buf,p.pending_out,U,S.next_out),S.next_out+=U,p.pending_out+=U,S.total_out+=U,S.avail_out-=U,p.pending-=U,p.pending===0&&(p.pending_out=0))};
bg=function(S,p){var U=S.block_start>=0?S.block_start:-1,Y=S.strstart-S.block_start,L=0;if(S.level>0){S.strm.data_type===2&&(S.strm.data_type=mwN(S));C5N(S,S.l_desc);C5N(S,S.d_desc);xwR(S,S.dyn_ltree,S.l_desc.max_code);xwR(S,S.dyn_dtree,S.d_desc.max_code);C5N(S,S.bl_desc);for(L=18;L>=3&&S.bl_tree[odk[L]*2+1]===0;L--);S.opt_len+=3*(L+1)+5+5+4;var I=S.opt_len+3+7>>>3;var V=S.static_len+3+7>>>3;V<=I&&(I=V)}else I=V=Y+5;if(Y+4<=I&&U!==-1)It(S,p?1:0,3),s2X(S,U,Y);else if(S.strategy===4||V===I)It(S,2+(p?
1:0),3),f9e(S,y0,Kf);else{It(S,4+(p?1:0),3);U=S.l_desc.max_code+1;Y=S.d_desc.max_code+1;L+=1;It(S,U-257,5);It(S,Y-1,5);It(S,L-4,4);for(I=0;I<L;I++)It(S,S.bl_tree[odk[I]*2+1],3);Ede(S,S.dyn_ltree,U-1);Ede(S,S.dyn_dtree,Y-1);f9e(S,S.dyn_ltree,S.dyn_dtree)}P5e(S);p&&Zpr(S);S.block_start=S.strstart;JE(S.strm)};
ja=function(S,p){S.pending_buf[S.pending++]=p};
r6=function(S,p){S.pending_buf[S.pending++]=p>>>8&255;S.pending_buf[S.pending++]=p&255};
vdG=function(S,p){var U=S.max_chain_length,Y=S.strstart,L=S.prev_length,I=S.nice_match,V=S.strstart>S.w_size-262?S.strstart-(S.w_size-262):0,W=S.window,O=S.w_mask,D=S.prev,z=S.strstart+258,Q=W[Y+L-1],J=W[Y+L];S.prev_length>=S.good_match&&(U>>=2);I>S.lookahead&&(I=S.lookahead);do{var K=p;if(W[K+L]===J&&W[K+L-1]===Q&&W[K]===W[Y]&&W[++K]===W[Y+1]){Y+=2;for(K++;W[++Y]===W[++K]&&W[++Y]===W[++K]&&W[++Y]===W[++K]&&W[++Y]===W[++K]&&W[++Y]===W[++K]&&W[++Y]===W[++K]&&W[++Y]===W[++K]&&W[++Y]===W[++K]&&Y<z;);
K=258-(z-Y);Y=z-258;if(K>L){S.match_start=p;L=K;if(K>=I)break;Q=W[Y+L-1];J=W[Y+L]}}}while((p=D[p&O])>V&&--U!==0);return L<=S.lookahead?L:S.lookahead};
hE=function(S){var p=S.w_size,U;do{var Y=S.window_size-S.lookahead-S.strstart;if(S.strstart>=p+(p-262)){V0.arraySet(S.window,S.window,p,p,0);S.match_start-=p;S.strstart-=p;S.block_start-=p;var L=U=S.hash_size;do{var I=S.head[--L];S.head[L]=I>=p?I-p:0}while(--U);L=U=p;do I=S.prev[--L],S.prev[L]=I>=p?I-p:0;while(--U);Y+=p}if(S.strm.avail_in===0)break;L=S.strm;U=S.window;I=S.strstart+S.lookahead;var V=L.avail_in;V>Y&&(V=Y);V===0?U=0:(L.avail_in-=V,V0.arraySet(U,L.input,L.next_in,V,I),L.state.wrap===
1?L.adler=$ww(L.adler,U,V,I):L.state.wrap===2&&(L.adler=GM(L.adler,U,V,I)),L.next_in+=V,L.total_in+=V,U=V);S.lookahead+=U;if(S.lookahead+S.insert>=3)for(Y=S.strstart-S.insert,S.ins_h=S.window[Y],S.ins_h=(S.ins_h<<S.hash_shift^S.window[Y+1])&S.hash_mask;S.insert&&!(S.ins_h=(S.ins_h<<S.hash_shift^S.window[Y+3-1])&S.hash_mask,S.prev[Y&S.w_mask]=S.head[S.ins_h],S.head[S.ins_h]=Y,Y++,S.insert--,S.lookahead+S.insert<3););}while(S.lookahead<262&&S.strm.avail_in!==0)};
ipN=function(S,p){for(var U;;){if(S.lookahead<262){hE(S);if(S.lookahead<262&&p===0)return 1;if(S.lookahead===0)break}U=0;S.lookahead>=3&&(S.ins_h=(S.ins_h<<S.hash_shift^S.window[S.strstart+3-1])&S.hash_mask,U=S.prev[S.strstart&S.w_mask]=S.head[S.ins_h],S.head[S.ins_h]=S.strstart);U!==0&&S.strstart-U<=S.w_size-262&&(S.match_length=vdG(S,U));if(S.match_length>=3)if(U=HA(S,S.strstart-S.match_start,S.match_length-3),S.lookahead-=S.match_length,S.match_length<=S.max_lazy_match&&S.lookahead>=3){S.match_length--;
do S.strstart++,S.ins_h=(S.ins_h<<S.hash_shift^S.window[S.strstart+3-1])&S.hash_mask,S.prev[S.strstart&S.w_mask]=S.head[S.ins_h],S.head[S.ins_h]=S.strstart;while(--S.match_length!==0);S.strstart++}else S.strstart+=S.match_length,S.match_length=0,S.ins_h=S.window[S.strstart],S.ins_h=(S.ins_h<<S.hash_shift^S.window[S.strstart+1])&S.hash_mask;else U=HA(S,0,S.window[S.strstart]),S.lookahead--,S.strstart++;if(U&&(bg(S,!1),S.strm.avail_out===0))return 1}S.insert=S.strstart<2?S.strstart:2;return p===4?(bg(S,
!0),S.strm.avail_out===0?3:4):S.last_lit&&(bg(S,!1),S.strm.avail_out===0)?1:2};
Rt=function(S,p){for(var U,Y;;){if(S.lookahead<262){hE(S);if(S.lookahead<262&&p===0)return 1;if(S.lookahead===0)break}U=0;S.lookahead>=3&&(S.ins_h=(S.ins_h<<S.hash_shift^S.window[S.strstart+3-1])&S.hash_mask,U=S.prev[S.strstart&S.w_mask]=S.head[S.ins_h],S.head[S.ins_h]=S.strstart);S.prev_length=S.match_length;S.prev_match=S.match_start;S.match_length=2;U!==0&&S.prev_length<S.max_lazy_match&&S.strstart-U<=S.w_size-262&&(S.match_length=vdG(S,U),S.match_length<=5&&(S.strategy===1||S.match_length===3&&
S.strstart-S.match_start>4096)&&(S.match_length=2));if(S.prev_length>=3&&S.match_length<=S.prev_length){Y=S.strstart+S.lookahead-3;U=HA(S,S.strstart-1-S.prev_match,S.prev_length-3);S.lookahead-=S.prev_length-1;S.prev_length-=2;do++S.strstart<=Y&&(S.ins_h=(S.ins_h<<S.hash_shift^S.window[S.strstart+3-1])&S.hash_mask,S.prev[S.strstart&S.w_mask]=S.head[S.ins_h],S.head[S.ins_h]=S.strstart);while(--S.prev_length!==0);S.match_available=0;S.match_length=2;S.strstart++;if(U&&(bg(S,!1),S.strm.avail_out===0))return 1}else if(S.match_available){if((U=
HA(S,0,S.window[S.strstart-1]))&&bg(S,!1),S.strstart++,S.lookahead--,S.strm.avail_out===0)return 1}else S.match_available=1,S.strstart++,S.lookahead--}S.match_available&&(HA(S,0,S.window[S.strstart-1]),S.match_available=0);S.insert=S.strstart<2?S.strstart:2;return p===4?(bg(S,!0),S.strm.avail_out===0?3:4):S.last_lit&&(bg(S,!1),S.strm.avail_out===0)?1:2};
NBE=function(S,p){for(var U,Y,L,I=S.window;;){if(S.lookahead<=258){hE(S);if(S.lookahead<=258&&p===0)return 1;if(S.lookahead===0)break}S.match_length=0;if(S.lookahead>=3&&S.strstart>0&&(Y=S.strstart-1,U=I[Y],U===I[++Y]&&U===I[++Y]&&U===I[++Y])){for(L=S.strstart+258;U===I[++Y]&&U===I[++Y]&&U===I[++Y]&&U===I[++Y]&&U===I[++Y]&&U===I[++Y]&&U===I[++Y]&&U===I[++Y]&&Y<L;);S.match_length=258-(L-Y);S.match_length>S.lookahead&&(S.match_length=S.lookahead)}S.match_length>=3?(U=HA(S,1,S.match_length-3),S.lookahead-=
S.match_length,S.strstart+=S.match_length,S.match_length=0):(U=HA(S,0,S.window[S.strstart]),S.lookahead--,S.strstart++);if(U&&(bg(S,!1),S.strm.avail_out===0))return 1}S.insert=0;return p===4?(bg(S,!0),S.strm.avail_out===0?3:4):S.last_lit&&(bg(S,!1),S.strm.avail_out===0)?1:2};
BBr=function(S,p){for(var U;;){if(S.lookahead===0&&(hE(S),S.lookahead===0)){if(p===0)return 1;break}S.match_length=0;U=HA(S,0,S.window[S.strstart]);S.lookahead--;S.strstart++;if(U&&(bg(S,!1),S.strm.avail_out===0))return 1}S.insert=0;return p===4?(bg(S,!0),S.strm.avail_out===0?3:4):S.last_lit&&(bg(S,!1),S.strm.avail_out===0)?1:2};
Fy=function(S,p,U,Y,L){this.good_length=S;this.max_lazy=p;this.nice_length=U;this.max_chain=Y;this.func=L};
qhq=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 V0.Buf16(1146);this.dyn_dtree=new V0.Buf16(122);this.bl_tree=new V0.Buf16(78);nf(this.dyn_ltree);nf(this.dyn_dtree);nf(this.bl_tree);this.bl_desc=this.d_desc=this.l_desc=null;this.bl_count=new V0.Buf16(16);this.heap=new V0.Buf16(573);nf(this.heap);this.heap_max=this.heap_len=0;this.depth=new V0.Buf16(573);nf(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};
AaR=function(S,p){if(!S||!S.state||p>5||p<0)return S?Q0(S,-2):-2;var U=S.state;if(!S.output||!S.input&&S.avail_in!==0||U.status===666&&p!==4)return Q0(S,S.avail_out===0?-5:-2);U.strm=S;var Y=U.last_flush;U.last_flush=p;if(U.status===42)if(U.wrap===2)S.adler=0,ja(U,31),ja(U,139),ja(U,8),U.gzhead?(ja(U,(U.gzhead.text?1:0)+(U.gzhead.hcrc?2:0)+(U.gzhead.extra?4:0)+(U.gzhead.name?8:0)+(U.gzhead.comment?16:0)),ja(U,U.gzhead.time&255),ja(U,U.gzhead.time>>8&255),ja(U,U.gzhead.time>>16&255),ja(U,U.gzhead.time>>
24&255),ja(U,U.level===9?2:U.strategy>=2||U.level<2?4:0),ja(U,U.gzhead.os&255),U.gzhead.extra&&U.gzhead.extra.length&&(ja(U,U.gzhead.extra.length&255),ja(U,U.gzhead.extra.length>>8&255)),U.gzhead.hcrc&&(S.adler=GM(S.adler,U.pending_buf,U.pending,0)),U.gzindex=0,U.status=69):(ja(U,0),ja(U,0),ja(U,0),ja(U,0),ja(U,0),ja(U,U.level===9?2:U.strategy>=2||U.level<2?4:0),ja(U,3),U.status=113);else{var L=8+(U.w_bits-8<<4)<<8;L|=(U.strategy>=2||U.level<2?0:U.level<6?1:U.level===6?2:3)<<6;U.strstart!==0&&(L|=
32);U.status=113;r6(U,L+(31-L%31));U.strstart!==0&&(r6(U,S.adler>>>16),r6(U,S.adler&65535));S.adler=1}if(U.status===69)if(U.gzhead.extra){for(L=U.pending;U.gzindex<(U.gzhead.extra.length&65535)&&(U.pending!==U.pending_buf_size||(U.gzhead.hcrc&&U.pending>L&&(S.adler=GM(S.adler,U.pending_buf,U.pending-L,L)),JE(S),L=U.pending,U.pending!==U.pending_buf_size));)ja(U,U.gzhead.extra[U.gzindex]&255),U.gzindex++;U.gzhead.hcrc&&U.pending>L&&(S.adler=GM(S.adler,U.pending_buf,U.pending-L,L));U.gzindex===U.gzhead.extra.length&&
(U.gzindex=0,U.status=73)}else U.status=73;if(U.status===73)if(U.gzhead.name){L=U.pending;do{if(U.pending===U.pending_buf_size&&(U.gzhead.hcrc&&U.pending>L&&(S.adler=GM(S.adler,U.pending_buf,U.pending-L,L)),JE(S),L=U.pending,U.pending===U.pending_buf_size)){var I=1;break}I=U.gzindex<U.gzhead.name.length?U.gzhead.name.charCodeAt(U.gzindex++)&255:0;ja(U,I)}while(I!==0);U.gzhead.hcrc&&U.pending>L&&(S.adler=GM(S.adler,U.pending_buf,U.pending-L,L));I===0&&(U.gzindex=0,U.status=91)}else U.status=91;if(U.status===
91)if(U.gzhead.comment){L=U.pending;do{if(U.pending===U.pending_buf_size&&(U.gzhead.hcrc&&U.pending>L&&(S.adler=GM(S.adler,U.pending_buf,U.pending-L,L)),JE(S),L=U.pending,U.pending===U.pending_buf_size)){I=1;break}I=U.gzindex<U.gzhead.comment.length?U.gzhead.comment.charCodeAt(U.gzindex++)&255:0;ja(U,I)}while(I!==0);U.gzhead.hcrc&&U.pending>L&&(S.adler=GM(S.adler,U.pending_buf,U.pending-L,L));I===0&&(U.status=103)}else U.status=103;U.status===103&&(U.gzhead.hcrc?(U.pending+2>U.pending_buf_size&&JE(S),
U.pending+2<=U.pending_buf_size&&(ja(U,S.adler&255),ja(U,S.adler>>8&255),S.adler=0,U.status=113)):U.status=113);if(U.pending!==0){if(JE(S),S.avail_out===0)return U.last_flush=-1,0}else if(S.avail_in===0&&(p<<1)-(p>4?9:0)<=(Y<<1)-(Y>4?9:0)&&p!==4)return Q0(S,-5);if(U.status===666&&S.avail_in!==0)return Q0(S,-5);if(S.avail_in!==0||U.lookahead!==0||p!==0&&U.status!==666){Y=U.strategy===2?BBr(U,p):U.strategy===3?NBE(U,p):Xy[U.level].func(U,p);if(Y===3||Y===4)U.status=666;if(Y===1||Y===3)return S.avail_out===
0&&(U.last_flush=-1),0;if(Y===2&&(p===1?(It(U,2,3),d6(U,256,y0),U.bi_valid===16?(Mz(U,U.bi_buf),U.bi_buf=0,U.bi_valid=0):U.bi_valid>=8&&(U.pending_buf[U.pending++]=U.bi_buf&255,U.bi_buf>>=8,U.bi_valid-=8)):p!==5&&(It(U,0,3),s2X(U,0,0),p===3&&(nf(U.head),U.lookahead===0&&(U.strstart=0,U.block_start=0,U.insert=0))),JE(S),S.avail_out===0))return U.last_flush=-1,0}if(p!==4)return 0;if(U.wrap<=0)return 1;U.wrap===2?(ja(U,S.adler&255),ja(U,S.adler>>8&255),ja(U,S.adler>>16&255),ja(U,S.adler>>24&255),ja(U,
S.total_in&255),ja(U,S.total_in>>8&255),ja(U,S.total_in>>16&255),ja(U,S.total_in>>24&255)):(r6(U,S.adler>>>16),r6(U,S.adler&65535));JE(S);U.wrap>0&&(U.wrap=-U.wrap);return U.pending!==0?0:1};
ttX=function(S){if(!(this instanceof ttX))return new ttX(S);S=this.options=V0.assign({level:-1,method:8,chunkSize:16384,windowBits:15,memLevel:8,strategy:0,to:""},S||{});S.raw&&S.windowBits>0?S.windowBits=-S.windowBits:S.gzip&&S.windowBits>0&&S.windowBits<16&&(S.windowBits+=16);this.err=0;this.msg="";this.ended=!1;this.chunks=[];this.strm=new car;this.strm.avail_out=0;var p=this.strm;var U=S.level,Y=S.method,L=S.windowBits,I=S.memLevel,V=S.strategy;if(p){var W=1;U===-1&&(U=6);L<0?(W=0,L=-L):L>15&&
(W=2,L-=16);if(I<1||I>9||Y!==8||L<8||L>15||U<0||U>9||V<0||V>4)p=Q0(p,-2);else{L===8&&(L=9);var O=new qhq;p.state=O;O.strm=p;O.wrap=W;O.gzhead=null;O.w_bits=L;O.w_size=1<<O.w_bits;O.w_mask=O.w_size-1;O.hash_bits=I+7;O.hash_size=1<<O.hash_bits;O.hash_mask=O.hash_size-1;O.hash_shift=~~((O.hash_bits+3-1)/3);O.window=new V0.Buf8(O.w_size*2);O.head=new V0.Buf16(O.hash_size);O.prev=new V0.Buf16(O.w_size);O.lit_bufsize=1<<I+6;O.pending_buf_size=O.lit_bufsize*4;O.pending_buf=new V0.Buf8(O.pending_buf_size);
O.d_buf=O.lit_bufsize;O.l_buf=3*O.lit_bufsize;O.level=U;O.strategy=V;O.method=Y;if(p&&p.state){p.total_in=p.total_out=0;p.data_type=2;U=p.state;U.pending=0;U.pending_out=0;U.wrap<0&&(U.wrap=-U.wrap);U.status=U.wrap?42:113;p.adler=U.wrap===2?0:1;U.last_flush=0;if(!Scr){Y=Array(16);for(I=V=0;I<28;I++)for(wdw[I]=V,L=0;L<1<<ugd[I];L++)TM[V++]=I;TM[V-1]=I;for(I=V=0;I<16;I++)for(a9N[I]=V,L=0;L<1<<l9G[I];L++)WA[V++]=I;for(V>>=7;I<30;I++)for(a9N[I]=V<<7,L=0;L<1<<l9G[I]-7;L++)WA[256+V++]=I;for(L=0;L<=15;L++)Y[L]=
0;for(L=0;L<=143;)y0[L*2+1]=8,L++,Y[8]++;for(;L<=255;)y0[L*2+1]=9,L++,Y[9]++;for(;L<=279;)y0[L*2+1]=7,L++,Y[7]++;for(;L<=287;)y0[L*2+1]=8,L++,Y[8]++;XdR(y0,287,Y);for(L=0;L<30;L++)Kf[L*2+1]=5,Kf[L*2]=FpE(L,5);pJG=new hUG(y0,ugd,257,286,15);U9q=new hUG(Kf,l9G,0,30,15);Ycw=new hUG([],LAk,0,19,7);Scr=!0}U.l_desc=new RUe(U.dyn_ltree,pJG);U.d_desc=new RUe(U.dyn_dtree,U9q);U.bl_desc=new RUe(U.bl_tree,Ycw);U.bi_buf=0;U.bi_valid=0;P5e(U);U=0}else U=Q0(p,-2);U===0&&(p=p.state,p.window_size=2*p.w_size,nf(p.head),
p.max_lazy_match=Xy[p.level].max_lazy,p.good_match=Xy[p.level].good_length,p.nice_match=Xy[p.level].nice_length,p.max_chain_length=Xy[p.level].max_chain,p.strstart=0,p.block_start=0,p.lookahead=0,p.insert=0,p.match_length=p.prev_length=2,p.match_available=0,p.ins_h=0);p=U}}else p=-2;if(p!==0)throw Error(zM[p]);S.header&&(p=this.strm)&&p.state&&p.state.wrap===2&&(p.state.gzhead=S.header);if(S.dictionary){var D;typeof S.dictionary==="string"?D=M4q(S.dictionary):I4q.call(S.dictionary)==="[object ArrayBuffer]"?
D=new Uint8Array(S.dictionary):D=S.dictionary;S=this.strm;I=D;V=I.length;if(S&&S.state)if(D=S.state,p=D.wrap,p===2||p===1&&D.status!==42||D.lookahead)p=-2;else{p===1&&(S.adler=$ww(S.adler,I,V,0));D.wrap=0;V>=D.w_size&&(p===0&&(nf(D.head),D.strstart=0,D.block_start=0,D.insert=0),U=new V0.Buf8(D.w_size),V0.arraySet(U,I,V-D.w_size,D.w_size,0),I=U,V=D.w_size);U=S.avail_in;Y=S.next_in;L=S.input;S.avail_in=V;S.next_in=0;S.input=I;for(hE(D);D.lookahead>=3;){I=D.strstart;V=D.lookahead-2;do D.ins_h=(D.ins_h<<
D.hash_shift^D.window[I+3-1])&D.hash_mask,D.prev[I&D.w_mask]=D.head[D.ins_h],D.head[D.ins_h]=I,I++;while(--V);D.strstart=I;D.lookahead=2;hE(D)}D.strstart+=D.lookahead;D.block_start=D.strstart;D.insert=D.lookahead;D.lookahead=0;D.match_length=D.prev_length=2;D.match_available=0;S.next_in=Y;S.input=L;S.avail_in=U;D.wrap=p;p=0}else p=-2;if(p!==0)throw Error(zM[p]);this._dict_set=!0}};
d9r=function(S,p){p=p||{};p.gzip=!0;p=new ttX(p);p.push(S,!0);if(p.err)throw p.msg||zM[p.err];return p.result};
Tte=function(S,p){var U=V4G();U&&U.publish.call(U,S.toString(),S,p)};
D9X=function(S,p,U){var Y=V4G();if(!Y)return 0;var L=Y.subscribe(S.toString(),function(I,V){var W=_.ad("ytPubsub2Pubsub2SkipSubKey");W&&W==L||(W=function(){if(WAG[L])try{if(V&&S instanceof OKr&&S!=I)try{var O=S.dataClass,D=V;if(!D.args||!D.version)throw Error("Vc");try{if(!O.version_){var z=new O;O.version_=z.version}var Q=O.version_}catch(J){}if(!Q||D.version!=Q)throw Error("Wc");try{V=Reflect.construct(O,_.qG(D.args))}catch(J){throw J.message="yt.pubsub2.Data.deserialize(): "+J.message,J;}}catch(J){throw J.message=
"yt.pubsub2.pubsub2 cross-binary conversion error for "+S.toString()+": "+J.message,J;}p.call(U||window,V)}catch(J){_.w7(J)}},kfX[S.toString()]?_.ad("yt.scheduler.instance")?_.PA.addLowPriorityJob(W):_.MT(W,0):W())});
WAG[L]=!0;HKe[S.toString()]||(HKe[S.toString()]=[]);HKe[S.toString()].push(L);return L};
JZN=function(){var S=z$q,p=D9X(Q4N,function(U){S.apply(void 0,arguments);nlw(p)});
return p};
nlw=function(S){var p=V4G();p&&(typeof S==="number"&&(S=[S]),_.xs(S,function(U){p.unsubscribeByKey(U);delete WAG[U]}))};
V4G=function(){return _.ad("ytPubsub2Pubsub2Instance")};
yZE=function(S,p,U){U=U===void 0?{sampleRate:.1}:U;Math.random()<Math.min(.02,U.sampleRate/100)&&Tte("meta_logging_csi_event",{timerName:S,timelineData:p})};
_.KAG=function(S){return S?(S=S.privateDoNotAccessOrElseSafeScriptWrappedValue)?_.wc(S):null:null};
_.Zu=function(S){return S?(S=S.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue)?_.dc(S):null:null};
j4k=function(){bKk||(bKk=_.Zu(_.g7("WORKER_SERIALIZATION_URL")));return bKk||void 0};
_.Gfw=function(){var S=j4k();rZE||S===void 0||(rZE=new Worker(_.Tl(S),void 0));return rZE};
_.h$q=function(){return typeof Worker==="function"&&j4k()?!0:!1};
_.PMw=function(){if(_.h$q()&&!R$u){var S=function(U){U=U.data;if(U.op==="gzippedGelBatch"){var Y=FAX.get(U.key);Y&&(XJe(U.gzippedBatch,Y.latencyPayload,Y.url,Y.options,Y.sendFn),FAX.delete(U.key))}},p=_.Gfw();
p&&(p.addEventListener("message",S),p.onerror=function(){FAX.clear()},R$u=!0)}};
l4w=function(S,p,U,Y,L){L=L===void 0?!1:L;var I={startTime:(0,_.AI)(),ticks:{},infos:{}};if(sP)try{var V=ZKk(p);if(V!=null&&(V>s4r||V<e$e))Y(S,U);else{if(_.y("gzip_gel_with_worker")&&(_.y("initial_gzip_use_main_thread")&&!glE||!_.y("initial_gzip_use_main_thread"))){R$u||_.PMw();var W=_.Gfw();if(W&&!L){FAX.set(u1N,{latencyPayload:I,url:S,options:U,sendFn:Y});W.postMessage({op:"gelBatchToGzip",serializedBatch:p,key:u1N});u1N++;return}}var O=d9r(wJe(p));XJe(O,I,S,U,Y)}}catch(D){_.fU(D),Y(S,U)}else Y(S,
U)};
XJe=function(S,p,U,Y,L){glE=!1;var I=(0,_.AI)();p.ticks.gelc=I;ea++;_.y("disable_compression_due_to_performance_degredation")&&I-p.startTime>=a4w&&(f4R++,_.y("abandon_compression_after_N_slow_zips")?ea===_.pA("compression_disable_point")&&f4R>CMe&&(sP=!1):sP=!1);x9w(p);Y.headers||(Y.headers={});Y.headers["Content-Encoding"]="gzip";Y.postBody=S;Y.postParams=void 0;L(U,Y)};
Ele=function(S){var p=p===void 0?!1:p;var U=U===void 0?!1:U;var Y=(0,_.AI)(),L={startTime:Y,ticks:{},infos:{}},I=p?_.ad("yt.logging.gzipForFetch",!1):!0;if(sP&&I){if(!S.body)return S;try{var V=U?S.body:typeof S.body==="string"?S.body:JSON.stringify(S.body);I=V;if(!U&&typeof V==="string"){var W=ZKk(V);if(W!=null&&(W>s4r||W<e$e))return S;U=p?{level:1}:void 0;I=d9r(wJe(V),U);var O=(0,_.AI)();L.ticks.gelc=O;if(p){ea++;if((_.y("disable_compression_due_to_performance_degredation")||_.y("disable_compression_due_to_performance_degradation_lr"))&&
O-Y>=a4w)if(f4R++,_.y("abandon_compression_after_N_slow_zips")||_.y("abandon_compression_after_N_slow_zips_lr")){p=f4R/ea;var D=CMe/_.pA("compression_disable_point");ea>0&&ea%_.pA("compression_disable_point")===0&&p>=D&&(sP=!1)}else sP=!1;x9w(L)}}S.headers=Object.assign({},{"Content-Encoding":"gzip"},S.headers||{});S.body=I;return S}catch(z){return _.fU(z),S}}else return S};
ZKk=function(S){try{return(new Blob(S.split(""))).size}catch(p){return _.fU(p),null}};
x9w=function(S){_.y("gel_compression_csi_killswitch")||!_.y("log_gel_compression_latency")&&!_.y("log_gel_compression_latency_lr")||yZE("gel_compression",S,{sampleRate:.1})};
m9e=function(){this.blockSize=-1};
g6=function(){this.blockSize=-1;this.blockSize=64;this.chain_=[];this.buf_=[];this.W_=[];this.pad_=[];this.pad_[0]=128;for(var S=1;S<this.blockSize;++S)this.pad_[S]=0;this.total_=this.inbuf_=0;this.reset()};
vlN=function(S){S=Object.assign({},S);delete S.Authorization;var p=olX();if(p){var U=new g6;U.update(_.g7("INNERTUBE_API_KEY"));U.update(p);S.hash=_.Ad(U.digest(),3)}return S};
w6=function(){$9w||($9w=new _.ug("yt.innertube"));return $9w};
iKw=function(S,p,U,Y){if(Y)return null;Y=w6().get("nextId",!0)||1;var L=w6().get("requests",!0)||{};L[Y]={method:S,request:p,authState:vlN(U),requestTime:Math.round((0,_.AI)())};w6().set("nextId",Y+1,86400,!0);w6().set("requests",L,86400,!0);return Y};
Ntd=function(S){var p=w6().get("requests",!0)||{};delete p[S];w6().set("requests",p,86400,!0)};
qcw=function(S){var p=w6().get("requests",!0);if(p){for(var U in p){var Y=p[U];if(!(Math.round((0,_.AI)())-Y.requestTime<6E4)){var L=Y.authState,I=vlN(_.raw(!1));_.h9.equals(L,I)&&(L=Y.request,"requestTimeMs"in L&&(L.requestTimeMs=Math.round((0,_.AI)())),BtG(S,Y.method,L,{}));delete p[U]}}w6().set("requests",p,86400,!0)}};
AZk=function(S){var p;return(S=S==null?void 0:(p=S.error)==null?void 0:p.code)&&S>=400&&S<=599?!1:!0};
t4d=function(S){var p;S=S==null?void 0:(p=S.error)==null?void 0:p.code;return!(S!==400&&S!==415)};
S1d=function(){if(cZq)return cZq();var S={};cZq=qT("LogsDatabaseV2",{objectStores:(S.LogsRequestsStore={addedAtVersion:2},S),shared:!1,upgrade:function(p,U,Y){U(2)&&lg(p,"LogsRequestsStore",{keyPath:"id",autoIncrement:!0});U(3);U(5)&&(Y=Y.objectStore("LogsRequestsStore"),Y.JSC$8602_wrapped.indexNames.contains("newRequest")&&Y.JSC$8602_wrapped.deleteIndex("newRequest"),at(Y,"newRequestV2",["status","interface","timestamp"]));U(7)&&p.JSC$8587_wrapped.objectStoreNames.contains("sapisid")&&p.JSC$8587_wrapped.deleteObjectStore("sapisid");
U(9)&&p.JSC$8587_wrapped.objectStoreNames.contains("SWHealthLog")&&p.JSC$8587_wrapped.deleteObjectStore("SWHealthLog")},
version:9});return cZq()};
ff=function(S){return _.Eg(S1d(),S)};
UIk=function(S,p){var U,Y,L,I;return _.T(function(V){if(V.nextAddress==1)return U={startTime:(0,_.AI)(),infos:{transactionType:"YT_IDB_TRANSACTION_TYPE_WRITE"},ticks:{}},_.k(V,ff(p),2);if(V.nextAddress!=3)return Y=V.yieldResult,L=Object.assign({},S,{options:JSON.parse(JSON.stringify(S.options)),interface:_.g7("INNERTUBE_CONTEXT_CLIENT_NAME",0)}),_.k(V,Y.put("LogsRequestsStore",L),3);I=V.yieldResult;U.ticks.tc=(0,_.AI)();pBe(U);return V.return(I)})};
Y1w=function(S,p){var U,Y,L,I,V,W,O,D;return _.T(function(z){if(z.nextAddress==1)return U={startTime:(0,_.AI)(),infos:{transactionType:"YT_IDB_TRANSACTION_TYPE_READ"},ticks:{}},_.k(z,ff(p),2);if(z.nextAddress!=3)return Y=z.yieldResult,L=_.g7("INNERTUBE_CONTEXT_CLIENT_NAME",0),I=[S,L,0],V=[S,L,(0,_.AI)()],W=IDBKeyRange.bound(I,V),O="prev",_.y("use_fifo_for_networkless")&&(O="next"),D=void 0,_.k(z,_.mY(Y,["LogsRequestsStore"],{mode:"readwrite",enableRetries:!0},function(Q){return _.tI(Q.objectStore("LogsRequestsStore").index("newRequestV2"),
{query:W,direction:O},function(J){J.getValue()&&(D=J.getValue(),S==="NEW"&&(D.status="QUEUED",J.update(D)))})}),3);
U.ticks.tc=(0,_.AI)();pBe(U);return z.return(D)})};
LFG=function(S,p){var U;return _.T(function(Y){if(Y.nextAddress==1)return _.k(Y,ff(p),2);U=Y.yieldResult;return Y.return(_.mY(U,["LogsRequestsStore"],{mode:"readwrite",enableRetries:!0},function(L){var I=L.objectStore("LogsRequestsStore");return I.get(S).then(function(V){if(V)return V.status="QUEUED",I.put(V).then(function(){return V})})}))})};
Mvq=function(S,p,U,Y){U=U===void 0?!0:U;var L;return _.T(function(I){if(I.nextAddress==1)return _.k(I,ff(p),2);L=I.yieldResult;return I.return(_.mY(L,["LogsRequestsStore"],{mode:"readwrite",enableRetries:!0},function(V){var W=V.objectStore("LogsRequestsStore");return W.get(S).then(function(O){return O?(O.status="NEW",U&&(O.sendCount+=1),Y!==void 0&&(O.options.compress=Y),W.put(O).then(function(){return O})):wE.resolve(void 0)})}))})};
IGX=function(S,p){var U;return _.T(function(Y){if(Y.nextAddress==1)return _.k(Y,ff(p),2);U=Y.yieldResult;return Y.return(U.delete("LogsRequestsStore",S))})};
dIe=function(S){var p,U;return _.T(function(Y){if(Y.nextAddress==1)return _.k(Y,ff(S),2);p=Y.yieldResult;U=(0,_.AI)()-2592E6;return _.k(Y,_.mY(p,["LogsRequestsStore"],{mode:"readwrite",enableRetries:!0},function(L){return vS(L.objectStore("LogsRequestsStore"),{},function(I){if(I.getValue().timestamp<=U)return I.delete().then(function(){return I.continue()})})}),0)})};
Vvr=function(){_.T(function(S){return _.k(S,A8w("LogsDatabaseV2"),0)})};
pBe=function(S){_.y("nwl_csi_killswitch")||yZE("networkless_performance",S,{sampleRate:1})};
_.WFq=function(S){return _.Eg(TzN(),S)};
OHX=function(S){var p,U;_.T(function(Y){if(Y.nextAddress==1)return _.k(Y,_.WFq(S),2);p=Y.yieldResult;U=(0,_.AI)()-2592E6;return _.k(Y,_.mY(p,["SWHealthLog"],{mode:"readwrite",enableRetries:!0},function(L){return vS(L.objectStore("SWHealthLog"),{},function(I){if(I.getValue().timestamp<=U)return I.delete().then(function(){return I.continue()})})}),0)})};
kvd=function(S){var p;return _.T(function(U){if(U.nextAddress==1)return _.k(U,_.WFq(S),2);p=U.yieldResult;return _.k(U,p.clear("SWHealthLog"),0)})};
_.Cf=function(S,p,U,Y,L,I,V){L=L===void 0?"":L;I=I===void 0?!1:I;V=V===void 0?!1:V;if(S)if(U&&!sg("cobalt"))_.fU(new _.y7("Legacy referrer-scrubbed ping detected")),S&&HHG(S,void 0,{scrubReferrer:!0});else if(L)fcr(S,p,"POST",L,Y);else if(_.g7("USE_NET_AJAX_FOR_PING_TRANSPORT",!1)||Y||V)fcr(S,p,"GET","",Y,void 0,I,V);else{b:{try{c:{var W=new DIw({url:S});if(W.urlParamValues_.dsh==="1")var O=null;else{var D=W.urlParamValues_.ae;if(D==="1"){var z=W.urlParamValues_.adurl;if(z)try{O={version:3,directUrl:decodeURIComponent(z),
asyncUrl:RRN(W.JSC$7485_url_,"act=1","ri=1",zFe(W))};break c}catch(G){}}O=D==="2"?{version:4,directUrl:RRN(W.JSC$7485_url_,"dct=1","suid="+W.suid_,""),asyncUrl:RRN(W.JSC$7485_url_,"act=1","ri=1","suid="+W.suid_)}:null}}if(O){var Q=_.Tp(S);var J=!(!Q||!Q.endsWith("/aclk")||_.xY(S,"ri")!=="1");break b}}catch(G){}J=!1}if(J){b:{try{if(window.navigator&&window.navigator.sendBeacon&&window.navigator.sendBeacon(S,"")){var K=!0;break b}}catch(G){}K=!1}K?(p&&p(),U=!0):U=!1}else U=!1;U||HHG(S,p)}};
HHG=function(S,p,U){U=U===void 0?{}:U;var Y=new Image,L=""+QSe++;nMX[L]=Y;Y.onload=Y.onerror=function(){p&&nMX[L]&&p();delete nMX[L]};
U.scrubReferrer&&(Y.referrerPolicy="no-referrer");Y.src=S};
x7=function(S,p){JBr(S,p==="ATTRIBUTION_SRC_MODE_XHR_OPTION")};
yBw=function(S){var p;return((p=document.featurePolicy)==null?0:p.allowedFeatures().includes("attribution-reporting"))?S+"&nis=6":S+"&nis=5"};
KFN=function(S){if(!S)return!1;try{var p;if(((p=_.E0(S))==null?void 0:p.asm)==="4")return!0}catch(U){_.w7(U)}return!1};
JBr=function(S,p){p?(S=yBw(S),_.Cf(S,void 0,void 0,void 0,"",!0,!0)):_.Cf(S)};
jSk=function(){bHe||(bHe=new _.ug("yt.offline"));return bHe};
rBN=function(S){if(_.y("offline_error_handling")){var p=jSk().get("errors",!0)||{};p[S.message]={name:S.name,stack:S.stack};S.level&&(p[S.message].level=S.level);jSk().set("errors",p,2592E3,!0)}};
hFw=function(S,p,U,Y){Y=Y===void 0?!1:Y;p=_.y("web_fp_via_jspb")?Object.assign({},p):p;_.y("use_cfr_monitor")&&Gvw(S,p);if(_.y("use_request_time_ms_header"))p.headers&&BQ(S)&&(p.headers["X-Goog-Request-Time"]=JSON.stringify(Math.round((0,_.AI)())));else{var L;if((L=p.postParams)==null?0:L.requestTimeMs)p.postParams.requestTimeMs=Math.round((0,_.AI)())}U&&Object.keys(p).length===0?_.Cf(S):p.compress?p.postBody?(typeof p.postBody!=="string"&&(p.postBody=JSON.stringify(p.postBody)),l4w(S,p.postBody,
p,_.WS,Y)):l4w(S,JSON.stringify(p.postParams),p,m0d,Y):_.WS(S,p)};
RFd=function(S,p){_.y("use_event_time_ms_header")&&BQ(S)&&(p.headers||(p.headers={}),p.headers["X-Goog-Event-Time"]=JSON.stringify(Math.round((0,_.AI)())));return p};
_.XBX=function(){FFG||(FFG=new _.EP({logOfflineErrors:!0,enablePolling:!0}));return FFG};
Gvw=function(S,p){var U=p.onError?p.onError:function(){};
p.onError=function(L,I){mj().requestComplete(S,!1);U(L,I)};
var Y=p.onSuccess?p.onSuccess:function(){};
p.onSuccess=function(L,I){mj().requestComplete(S,!0);Y(L,I)}};
_.PEr=function(){return _.ib(document.location.toString())!=="www.youtube-nocookie.com"};
_.eFw=function(){return _.ad("ytNetworklessLoggingInitializationOptions")?_.ZHG.isNwlInitialized:_.sSX};
gMe=function(S,p){if(_.y("polymer_on_demand_shady_dom")){var U;var Y=(U=S.__shady_native_firstElementChild)!=null?U:S.firstElementChild}else Y=S.firstElementChild;for(;Y;){if(S=p(Y)?Y:gMe(Y,p))return S;Y=Y.nextElementSibling}return null};
wBe=function(){var S=document;if("visibilityState"in S)return S.visibilityState;var p=u3e+"VisibilityState";if(p in S)return S[p]};
_.lGX=function(S,p){var U;$7(S,function(Y){U=p[Y];return!!U});
return U};
_.Nz=function(S){var p=aGw(S);p?p.focus():_.ig(S)};
aGw=function(S){return(S=gMe(S,function(p){return _.BA(p)?fGq(p)&&!!p.offsetParent:!1}))?S:null};
_.ig=function(S,p){S.hasAttribute("tabindex")||S.setAttribute("tabindex","-1");S.focus(p)};
CEd=function(S,p,U,Y){Y=Y===void 0?{}:Y;S.addEventListener&&(p!="mouseenter"||"onmouseenter"in document?p!="mouseleave"||"onmouseenter"in document?p=="mousewheel"&&"MozBoxSizing"in document.documentElement.style&&(p="MozMousePixelScroll"):p="mouseout":p="mouseover");return _.h9.findKey(qz,function(L){var I=typeof L[4]==="boolean"&&L[4]==!!Y,V=_.pc(L[4])&&_.pc(Y)&&_.h9.equals(L[4],Y);return!!L.length&&L[0]==S&&L[1]==p&&L[2]==U&&(I||V)})};
_.tE=function(S,p,U,Y){Y=Y===void 0?{}:Y;if(!S||!S.addEventListener&&!S.attachEvent)return"";var L=CEd(S,p,U,Y);if(L)return L;L=++xIk.count+"";var I=!(p!="mouseenter"&&p!="mouseleave"||!S.addEventListener||"onmouseenter"in document);var V=I?function(W){W=new AE(W);if(!_.uI(W.relatedTarget,function(O){return O==S},!0))return W.currentTarget=S,W.type=p,U.call(S,W)}:function(W){W=new AE(W);
W.currentTarget=S;return U.call(S,W)};
V=_.lb(V);S.addEventListener?(p=="mouseenter"&&I?p="mouseover":p=="mouseleave"&&I?p="mouseout":p=="mousewheel"&&"MozBoxSizing"in document.documentElement.style&&(p="MozMousePixelScroll"),EMd()||typeof Y==="boolean"?S.addEventListener(p,V,Y):S.addEventListener(p,V,!!Y.capture)):S.attachEvent("on"+p,V);qz[L]=[S,p,U,V,Y];return L};
_.oME=function(S,p,U){var Y=Y===void 0?{}:Y;var L=_.tE(S,p,function(){_.mIG(L);U.apply(S,arguments)},Y)};
_.mIG=function(S){S&&(typeof S=="string"&&(S=[S]),_.xs(S,function(p){if(p in qz){var U=qz[p],Y=U[0],L=U[1],I=U[3];U=U[4];Y.removeEventListener?EMd()||typeof U==="boolean"?Y.removeEventListener(L,I,U):Y.removeEventListener(L,I,!!U.capture):Y.detachEvent&&Y.detachEvent("on"+L,I);delete qz[p]}}))};
cA=function(S){this.callback_=S;this.position_=null;this.previousTime_=0;this.previousPosition_=null;this.previousVelocity_=0;this.cycles_=[];for(S=0;S<4;S++)this.cycles_.push(0);this.index_=0;this.mouseListenerKey_=_.tE(window,"mousemove",(0,_.RW)(this.onMouseMove_,this));this.timerId_=_.dE((0,_.RW)(this.checkPosition_,this),25)};
$Id=function(){var S={};var p=S.preferMobileEvents===void 0?!1:S.preferMobileEvents;S=S.enableScrollEventListener===void 0?!0:S.enableScrollEventListener;if(_.ad("_lact",window)==null){var U=parseInt(_.g7("LACT"),10);U=isFinite(U)?Date.now()-Math.max(U,0):-1;_.NT("_lact",U,window);_.NT("_fact",U,window);U==-1&&_.SP();_.tE(document,"keydown",_.SP);_.tE(document,"keyup",_.SP);_.tE(document,"mousedown",_.SP);_.tE(document,"mouseup",_.SP);p?_.tE(window,"touchmove",function(){vMq("touchmove",200)},{passive:!0}):
(_.tE(window,"resize",function(){vMq("resize",200)}),S&&_.tE(window,"scroll",function(){vMq("scroll",200)}));
new cA(function(){vMq("mouse",100)});
_.tE(document,"touchstart",_.SP,{passive:!0});_.tE(document,"touchend",_.SP,{passive:!0})}};
vMq=function(S,p){iHe[S]||(iHe[S]=!0,_.PA.addLowPriorityJob(function(){_.SP();iHe[S]=!1},p))};
_.SP=function(){_.ad("_lact",window)==null&&$Id();var S=Date.now();_.NT("_lact",S,window);_.ad("_fact",window)==-1&&_.NT("_fact",S,window);(S=_.ad("ytglobal.ytUtilActivityCallback_"))&&S()};
_.pv=function(){var S=_.ad("_lact",window);return S==null?-1:Math.max(Date.now()-S,0)};
_.MW=function(S,p,U){var Y=_.U9();if(Y&&p){var L=Y.subscribe(S,function(){var I=arguments,V=function(){Yv[L]&&p.apply&&typeof p.apply=="function"&&p.apply(U||window,I)};
try{_.NzN[S]?V():_.MT(V,0)}catch(W){_.w7(W)}},U);
Yv[L]=!0;Lv[S]||(Lv[S]=[]);Lv[S].push(L);return L}return 0};
_.Bze=function(S){var p=_.U9();p&&(typeof S==="number"?S=[S]:typeof S==="string"&&(S=[parseInt(S,10)]),_.xs(S,function(U){p.unsubscribeByKey(U);delete Yv[U]}))};
_.q1w=function(S,p){var U=_.U9();U&&U.publish.apply(U,arguments)};
_.tve=function(S){var p=_.U9();if(p)if(p.clear(S),S)ABG(S);else for(var U in Lv)ABG(U)};
_.U9=function(){return _.UX.ytPubsubPubsubInstance};
ABG=function(S){Lv[S]&&(S=Lv[S],_.xs(S,function(p){Yv[p]&&delete Yv[p]}),S.length=0)};
cBG=function(){var S,p;return"h5vcc"in IV&&((S=IV.h5vcc.traceEvent)==null?0:S.traceBegin)&&((p=IV.h5vcc.traceEvent)==null?0:p.traceEnd)?1:"performance"in IV&&IV.performance.mark&&IV.performance.measure?2:0};
S2G=function(S){var p=cBG();switch(p){case 1:IV.h5vcc.traceEvent.traceBegin("YTLR",S);break;case 2:IV.performance.mark(S+"-start");break;case 0:break;default:_.WP(p,"unknown trace type")}};
pTE=function(S){var p=cBG();switch(p){case 1:IV.h5vcc.traceEvent.traceEnd("YTLR",S);break;case 2:p=S+"-start";var U=S+"-end";IV.performance.mark(U);IV.performance.measure(S,p,U);break;case 0:break;default:_.WP(p,"unknown trace type")}};
Usq=function(S){var p,U;(U=(p=window).onerror)==null||U.call(p,S.message,"",0,0,S)};
Y2q=function(S){if(_.y("web_lifecycle_error_handling_killswitch"))return S();try{return S()}catch(p){Usq(p)}};
L_G=function(S){return[S.auth===void 0?"undefined":S.auth,S.isJspb===void 0?"undefined":S.isJspb,S.cttAuthInfo===void 0?"undefined":S.cttAuthInfo,S.tier===void 0?"undefined":S.tier].join("/")};
_.b=function(S,p){if(S)return S[p.name]};
VR=function(){var S=_.ad("yt.logging.ims");S||(S=new dK,_.NT("yt.logging.ims",S));return S};
H3u=function(S,p){if(S.endpoint==="log_event"){Mpu(S);var U=Ilw(S),Y=dsw(S.payload)||"",L=Vpu(Y),I=200;if(L){if(L.enabled===!1&&!_.y("web_payload_policy_disabled_killswitch"))return;I=T9X(L.tier);if(I===400){W_u(S,p);return}}TY[U]=!0;U={cttAuthInfo:U,isJspb:!1,tier:I};VR().storePayload(U,S.payload);O3d(p,!1,U,k4R(Y))}};
zqX=function(S,p,U){if(p.endpoint==="log_event"){Mpu(void 0,p);var Y=Ilw(p,!0),L=Vpu(S),I=200;if(L){if(L.enabled===!1&&!_.y("web_payload_policy_disabled_killswitch"))return;I=T9X(L.tier);if(I===400){Dsw(S,p,U);return}}TY[Y]=!0;Y={cttAuthInfo:Y,isJspb:!0,tier:I};VR().storePayload(Y,Su(p.payload));O3d(U,!0,Y,k4R(S))}};
O3d=function(S,p,U,Y){p=p===void 0?!1:p;Y=Y===void 0?!1:Y;S&&(WH=new S);S=_.pA("tvhtml5_logging_max_batch_ads_fork")||_.pA("tvhtml5_logging_max_batch")||_.pA("web_logging_max_batch")||100;var L=(0,_.AI)(),I=Qsq(p,U.tier),V=I.lastDebounceQueueFromLogTimeMs;Y&&(I.useVideoStatsEndPoint=!0);Y=0;U&&(Y=VR().getSequenceCount(U));var W=function(){nkN({writeThenSend:!0},p,U.tier)};
Y>=1E3?W():Y>=S?JFk||(JFk=yFk(function(){W();JFk=void 0},0)):L-V>=10&&(K_R(p,U.tier),I.lastDebounceQueueFromLogTimeMs=L)};
W_u=function(S,p){if(S.endpoint==="log_event"){_.y("more_accurate_gel_parser")&&VR().storePayload({isJspb:!1},S.payload);Mpu(S);var U=Ilw(S),Y=new Map;Y.set(U,[S.payload]);var L=dsw(S.payload)||"";p&&(WH=new p);return new _.O9(function(I,V){WH&&WH.isReady()?b3d(Y,WH,I,V,{bypassNetworkless:!0},!0,k4R(L)):I()})}};
Dsw=function(S,p,U){if(p.endpoint==="log_event"){Mpu(void 0,p);var Y=Ilw(p,!0),L=new Map;L.set(Y,[Su(p.payload)]);U&&(WH=new U);return new _.O9(function(I){WH&&WH.isReady()?jsk(L,WH,I,{bypassNetworkless:!0},!0,k4R(S)):I()})}};
Ilw=function(S,p){var U="";if(S.dangerousLogToVisitorSession)U="visitorOnlyApprovedKey";else if(S.cttAuthInfo){if(p===void 0?0:p){p=S.cttAuthInfo.token;U=S.cttAuthInfo;var Y=new rFr;U.videoId?Y.setVideoId(U.videoId):U.playlistId&&kv(Y,2,G4q,fE(U.playlistId));hqE[p]=Y}else p=S.cttAuthInfo,U={},p.videoId?U.videoId=p.videoId:p.playlistId&&(U.playlistId=p.playlistId),RqR[S.cttAuthInfo.token]=U;U=S.cttAuthInfo.token}return U};
nkN=function(S,p,U){S=S===void 0?{}:S;p=p===void 0?!1:p;new _.O9(function(Y,L){var I=Qsq(p,U),V=I.useVideoStatsEndPoint;I.useVideoStatsEndPoint=!1;F_w(I.queueTimer);F_w(I.queueMaxTimer);I.queueMaxTimer=0;WH&&WH.isReady()?U===void 0&&_.y("enable_web_tiered_gel")?XTR(Y,L,S,p,300,V):XTR(Y,L,S,p,U,V):(K_R(p,U),Y())})};
XTR=function(S,p,U,Y,L,I){var V=WH;U=U===void 0?{}:U;Y=Y===void 0?!1:Y;L=L===void 0?200:L;I=I===void 0?!1:I;var W=new Map,O=new Map,D={isJspb:Y,cttAuthInfo:void 0,tier:L},z={isJspb:Y,cttAuthInfo:void 0};if(Y){p=_.d(Object.keys(TY));for(L=p.next();!L.done;L=p.next())L=L.value,O=_.y("enable_web_tiered_gel")?VR().smartExtractMatchingEntries({keys:[D,z],sizeLimit:1E3}):VR().extractMatchingEntries({isJspb:!0,cttAuthInfo:L}),O.length>0&&W.set(L,O),(_.y("web_fp_via_jspb_and_json")&&U.writeThenSend||!_.y("web_fp_via_jspb_and_json"))&&
delete TY[L];jsk(W,V,S,U,!1,I)}else{W=_.d(Object.keys(TY));for(D=W.next();!D.done;D=W.next())D=D.value,z=_.y("enable_web_tiered_gel")?VR().smartExtractMatchingEntries({keys:[{isJspb:!1,cttAuthInfo:D,tier:L},{isJspb:!1,cttAuthInfo:D}],sizeLimit:1E3}):VR().extractMatchingEntries({isJspb:!1,cttAuthInfo:D}),z.length>0&&O.set(D,z),(_.y("web_fp_via_jspb_and_json")&&U.writeThenSend||!_.y("web_fp_via_jspb_and_json"))&&delete TY[D];b3d(O,V,S,p,U,!1,I)}};
K_R=function(S,p){S=S===void 0?!1:S;p=p===void 0?200:p;var U=function(){nkN({writeThenSend:!0},S,p)},Y=Qsq(S,p),L=Y===PKR||Y===Z3e?5E3:ssu;
_.y("web_gel_timeout_cap")&&!Y.queueMaxTimer&&(L=yFk(function(){U()},L),Y.queueMaxTimer=L);
F_w(Y.queueTimer);L=_.g7("LOGGING_BATCH_TIMEOUT",_.pA("web_gel_debounce_ms",1E4));_.y("shorten_initial_gel_batch_timeout")&&eqw&&(L=gkd);L=yFk(function(){_.pA("gel_min_batch_size")>0?VR().getSequenceCount({cttAuthInfo:void 0,isJspb:S,tier:p})>=uBe&&U():U()},L);
Y.queueTimer=L};
b3d=function(S,p,U,Y,L,I,V){L=L===void 0?{}:L;var W=Math.round((0,_.AI)()),O=S.size,D=wTe(V);S=_.d(S);var z=S.next();for(V={};!z.done;V={networkFailures:void 0,batchRequest:void 0,dangerousLogToVisitorSession:void 0,onSuccess$jscomp$3:void 0,onError$jscomp$5:void 0},z=S.next()){var Q=_.d(z.value);z=Q.next().value;Q=Q.next().value;V.batchRequest=_.h9.unsafeClone({context:_.Dww(p.config_||_.cS())});if(!_.Ae(Q)&&!_.y("throw_err_when_logevent_malformed_killswitch")){Y();break}V.batchRequest.events=Q;
(Q=RqR[z])&&llN(V.batchRequest,z,Q);delete RqR[z];V.dangerousLogToVisitorSession=z==="visitorOnlyApprovedKey";ale(V.batchRequest,W,V.dangerousLogToVisitorSession);flw(L);V.onSuccess$jscomp$3=function(J){_.y("start_client_gcf")&&_.PA.addLowPriorityJob(function(){return _.T(function(K){return _.k(K,CKw(J),0)})});
O--;O||U()};
V.networkFailures=0;V.onError$jscomp$5=function(J){return function(){J.networkFailures++;if(L.bypassNetworkless&&J.networkFailures===1)try{BtG(p,D,J.batchRequest,xsE({writeThenSend:!0},J.dangerousLogToVisitorSession,J.onSuccess$jscomp$3,J.onError$jscomp$5,I)),eqw=!1}catch(K){_.w7(K),Y()}O--;O||U()}}(V);
try{BtG(p,D,V.batchRequest,xsE(L,V.dangerousLogToVisitorSession,V.onSuccess$jscomp$3,V.onError$jscomp$5,I)),eqw=!1}catch(J){_.w7(J),Y()}}};
jsk=function(S,p,U,Y,L,I){Y=Y===void 0?{}:Y;var V=Math.round((0,_.AI)()),W={value:S.size},O=new Map([].concat(_.jo(S)));O=_.d(O);for(var D=O.next();!D.done;D=O.next()){var z=_.d(D.value).next().value,Q=S.get(z);D=new Ekr;var J=p.config_||_.cS(),K=new HH,G=new msk;_.zN(G,1,J.innertubeContextHostLanguage);_.zN(G,2,J.innertubeContextGeoLocation);_.pf(G,16,J.innertubeContextClientNameFieldNumber);_.zN(G,17,J.innertubeContextClientVersion);if(J.innertubeContextClientConfigInfo){var X=J.innertubeContextClientConfigInfo,
Z=new Y7;X.coldConfigData&&_.zN(Z,1,X.coldConfigData);X.appInstallData&&_.zN(Z,6,X.appInstallData);X.coldHashData&&_.zN(Z,3,X.coldHashData);X.hotHashData&&Z.setHotHashData(X.hotHashData);_.U3(G,62,Z)}(X=_.UX.devicePixelRatio)&&X!=1&&_.UP(G,65,_.Ot(X));X=PNw();X!==""&&_.zN(G,54,X);X=ZZN();if(X.length>0){Z=new okR;for(var l=0;l<X.length;l++){var a=new DP;a.setKey(X[l].key);kv(a,2,vkX,fE(X[l].value));zY(Z,15,DP,a)}_.U3(K,5,Z)}VtG(J,G);TBe(K);Wpe(G);OpG(J,G);kIr(G);_.y("start_client_gcf")&&Hpe(G);_.g7("DELEGATED_SESSION_ID")&&
!_.y("pageid_as_header_web")&&(J=new QR,_.zN(J,3,_.g7("DELEGATED_SESSION_ID")));!_.y("fill_delegate_context_in_gel_killswitch")&&(X=_.g7("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT"))&&(Z=_.Sa(K,QR,3)||new QR,J=K,X=_.zN(Z,18,X),_.U3(J,3,X));J=G;X=_.d(Object.entries(_.E0(_.g7("DEVICE",""))));for(Z=X.next();!Z.done;Z=X.next())l=_.d(Z.value),Z=l.next().value,l=l.next().value,Z==="cbrand"?_.zN(J,12,l):Z==="cmodel"?_.zN(J,13,l):Z==="cbr"?_.zN(J,87,l):Z==="cbrver"?_.zN(J,88,l):Z==="cos"?_.zN(J,18,
l):Z==="cosver"?_.zN(J,19,l):Z==="cplatform"&&_.pf(J,42,ILG(l));K.setClient(G);_.U3(D,1,K);if(G=hqE[z])a:{if(_.n2(G,nv(G,G4q,1)))K=1;else if(G.getPlaylistId())K=2;else break a;_.U3(D,4,G);G=D.getContext()||new HH;J=_.Sa(G,QR,3)||new QR;X=new JU;X.setToken(z);_.pf(X,1,K);zY(J,12,JU,X);_.U3(G,3,J)}delete hqE[z];z=z==="visitorOnlyApprovedKey";$su()||_.yR(D,2,V);!z&&(K=_.g7("EVENT_ID"))&&(G=i3k(),J=new N9u,_.zN(J,1,K),_.yR(J,2,G),_.U3(D,5,J));flw(Y);if(_.y("jspb_serialize_with_worker")&&(K=_.Gfw())&&
Y.writeThenSend){_.B9G.set(q2u,{client:p,resolve:U,networklessOptions:Y,isIsolated:L,useVSSEndpoint:I,dangerousLogToVisitorSession:z,requestsOutstanding:W});K.postMessage({op:"gelBatchToSerialize",batchRequest:Su(D),clientEvents:Q,key:q2u});q2u++;break}if(Q){K=[];for(G=0;G<Q.length;G++)try{K.push(new Kv(Q[G]))}catch(N){_.w7(new _.y7("Transport failed to deserialize "+String(Q[G])))}Q=K}else Q=[];Q=_.d(Q);for(K=Q.next();!K.done;K=Q.next())zY(D,3,Kv,K.value);Q={startTime:(0,_.AI)(),ticks:{},infos:{}};
D=D.serialize();Q.ticks.geljspc=(0,_.AI)();_.y("log_jspb_serialize_latency")&&yZE("gel_jspb_serialize",Q,{sampleRate:.1});_.AFk(D,p,U,Y,L,I,z,W)}};
_.AFk=function(S,p,U,Y,L,I,V,W){Y=Y===void 0?{}:Y;W=W===void 0?{value:0}:W;I=wTe(I);Y=xsE(Y,V,function(O){_.y("start_client_gcf")&&_.PA.addLowPriorityJob(function(){return _.T(function(D){return _.k(D,CKw(O),0)})});
W.value--;W.value||U()},function(){W.value--;
W.value||U()},L);
Y.headers["Content-Type"]="application/json+protobuf";Y.postBodyFormat="JSPB";Y.postBody=S;BtG(p,I,"",Y);eqw=!1};
flw=function(S){_.y("always_send_and_write")&&(S.writeThenSend=!1)};
xsE=function(S,p,U,Y,L){S={retry:!0,onSuccess:U,onError:Y,networklessOptions:S,dangerousLogToVisitorSession:p,bypassMonitoring:!!L,headers:{},postBodyFormat:"",postBody:"",compress:_.y("compress_gel")||_.y("compress_gel_lr")};$su()&&(S.headers["X-Goog-Request-Time"]=JSON.stringify(Math.round((0,_.AI)())));return S};
ale=function(S,p,U){$su()||(S.requestTimeMs=String(p));_.y("unsplit_gel_payloads_in_logs")&&(S.unsplitGelPayloadsInLogs=!0);!U&&(p=_.g7("EVENT_ID"))&&(U=i3k(),S.serializedClientEventId={serializedEventId:p,clientCounter:String(U)})};
i3k=function(){var S=_.g7("BATCH_CLIENT_COUNTER")||0;S||(S=Math.floor(Math.random()*65535/2));S++;S>65535&&(S=1);_.en("BATCH_CLIENT_COUNTER",S);return S};
llN=function(S,p,U){if(U.videoId)var Y="VIDEO";else if(U.playlistId)Y="PLAYLIST";else return;S.credentialTransferTokenTargetId=U;S.context=S.context||{};S.context.user=S.context.user||{};S.context.user.credentialTransferTokens=[{token:p,scope:Y}]};
Mpu=function(S,p){var U=_.Ug("il_payload_scraping")==="enable_il_payload_scraping";if(!_.ad("yt.logging.transport.enableScrapingForTest"))if(U)tpG=[],_.NT("yt.logging.transport.enableScrapingForTest",!0),_.NT("yt.logging.transport.scrapedPayloadsForTesting",tpG),_.NT("yt.logging.transport.payloadToScrape","visualElementShown visualElementHidden visualElementAttached screenCreated visualElementGestured visualElementStateChanged".split(" ")),_.NT("yt.logging.transport.getScrapedPayloadFromClientEventsFunction"),
_.NT("yt.logging.transport.scrapeClientEvent",!0);else return;U=_.ad("yt.logging.transport.scrapedPayloadsForTesting");var Y=_.ad("yt.logging.transport.payloadToScrape");p&&(p=_.ad("yt.logging.transport.getScrapedPayloadFromClientEventsFunction").bind(p.payload)())&&U.push(p);p=_.ad("yt.logging.transport.scrapeClientEvent");if(Y&&Y.length>=1)for(var L=0;L<Y.length;L++)if(S&&S.payload[Y[L]])if(p)U.push(S.payload);else{var I=void 0;U.push(((I=S)==null?void 0:I.payload)[Y[L]])}_.NT("yt.logging.transport.scrapedPayloadsForTesting",
U)};
$su=function(){return _.y("use_request_time_ms_header")||_.y("lr_use_request_time_ms_header")};
yFk=function(S,p){return _.y("transport_use_scheduler")===!1?_.MT(S,p):_.y("logging_avoid_blocking_during_navigation")||_.y("lr_logging_avoid_blocking_during_navigation")?_.bQ(_.PA,function(){if(_.cFk().currentState==="none")S();else{var U={};_.cFk().install((U.none={callback:S},U))}},p):_.bQ(_.PA,S,p)};
F_w=function(S){_.y("transport_use_scheduler")?_.PA.cancelJob(S):_.V7(S)};
CKw=function(S){var p,U,Y,L,I,V,W,O,D,z;return _.T(function(Q){return Q.nextAddress==1?(Y=(p=S)==null?void 0:(U=p.responseContext)==null?void 0:U.globalConfigGroup,L=_.b(Y,SWE),V=(I=Y)==null?void 0:I.hotHashData,W=_.b(Y,pXN),D=(O=Y)==null?void 0:O.coldHashData,(z=_.tW().resolve(_.AW(jP)))?V?L?_.k(Q,Ume(z,V,L),2):_.k(Q,Ume(z,V),2):Q.jumpTo(2):Q.return()):D?W?_.k(Q,YWu(z,D,W),0):_.k(Q,YWu(z,D),0):Q.jumpTo(0)})};
Qsq=function(S,p){p=p===void 0?200:p;return S?p===300?PKR:LsE:p===300?Z3e:MVE};
Vpu=function(S){if(_.y("enable_web_tiered_gel")){S=I$X[S||""];var p,U,Y,L=_.tW().resolve(_.AW(jP))==null?void 0:(p=dmE())==null?void 0:(U=p.loggingHotConfig)==null?void 0:(Y=U.eventLoggingConfig)==null?void 0:Y.payloadPolicies;if(L)for(p=0;p<L.length;p++)if(L[p].payloadNumber===S)return L[p]}};
dsw=function(S){S=Object.keys(S);S=_.d(S);for(var p=S.next();!p.done;p=S.next())if(p=p.value,I$X[p])return p};
T9X=function(S){switch(S){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}};
k4R=function(S){return S==="gelDebuggingEvent"};
wTe=function(S){return(S===void 0?0:S)&&_.y("vss_through_gel_video_stats")?"video_stats":"log_event"};
GY=function(S,p,U,Y){Y=Y===void 0?{}:Y;var L={},I=Math.round(Y.timestamp||(0,_.AI)());L.eventTimeMs=I<Number.MAX_SAFE_INTEGER?I:0;L[S]=p;S=_.pv();L.context={lastActivityMs:String(Y.timestamp||!isFinite(S)?-1:S)};Y.sequenceGroup&&!_.y("web_gel_sequence_info_killswitch")&&(S=L.context,p=Y.sequenceGroup,p={index:VVE(p),groupKey:p},S.sequence=p,Y.endOfSequence&&delete rK[Y.sequenceGroup]);(Y.sendIsolatedPayload?W_u:H3u)({endpoint:"log_event",payload:L,cttAuthInfo:Y.cttAuthInfo,dangerousLogToVisitorSession:Y.dangerousLogToVisitorSession},
U)};
VVE=function(S){rK[S]=S in rK?rK[S]+1:0;return rK[S]};
_.RV=function(S,p,U){U=U===void 0?{}:U;var Y=hU;_.ub("ytLoggingEventsDefaultDisabled",!1)&&hU===hU&&(Y=null);GY(S,p,Y,U)};
_.Fr=function(){if(_.y("web_fp_via_jspb")){var S=!0;S=S===void 0?!1:S;var p=Txr;Txr=[];if(p){p=_.d(p);for(var U=p.next();!U.done;U=p.next())U=U.value,S?GY(U.payloadName,U.payload,hU,U.options):_.RV(U.payloadName,U.payload,U.options)}nkN(void 0,!0);if(!_.y("web_fp_via_jspb_and_json"))return}nkN(void 0,!1)};
Wsq=function(S,p){var U;if((U=p)==null?0:U.componentStack)return p;if(S=S.componentStack)p||(p={}),p.componentStack=S;return p};
Oze=function(){_.xs(_.g7("ERRORS")||[],function(S){_.ZP.apply(null,S)});
_.en("ERRORS",[])};
_.s9=function(S){_.ZP(S)};
_.eP=function(S){_.ZP(S,"WARNING")};
kee=function(S){S instanceof Error?_.ZP(S):(S=_.pc(S)?JSON.stringify(S):String(S),S=new _.y7(S),S.name="RejectedPromiseError",_.eP(S))};
Hze=function(S,p,U,Y,L,I){p=p===void 0?"Unknown file":p;U=U===void 0?0:U;var V=!1,W=W$w("log_window_onerror_fraction");if(W&&Math.random()<W)V=!0;else{W=document.getElementsByTagName("script");for(var O=0,D=W.length;O<D;O++)if(W[O].src.indexOf("/debug-")>0){V=!0;break}}V&&(V=!1,L?V=!0:(typeof S==="string"?W=S:ErrorEvent&&S instanceof ErrorEvent?(V=!0,W=S.message,p=S.filename,U=S.lineno,Y=S.colno):(W="Unknown error",p="Unknown file",U=0),L=new _.y7(W),L.name="UnhandledWindowError",L.message=W,L.fileName=
p,L.lineNumber=U,isNaN(Y)?delete L.columnNumber:L.columnNumber=Y),_.y("wiz_enable_component_stack_propagation_killswitch")||(I=Wsq(L,I)),I&&_.gK(L,I),V?_.ZP(L):_.eP(L))};
_.ZP=function(S,p,U,Y,L,I,V,W){I=I===void 0?{}:I;I.name=U||_.g7("INNERTUBE_CONTEXT_CLIENT_NAME",1);I.version=Y||_.g7("INNERTUBE_CONTEXT_CLIENT_VERSION");U=I;p=p===void 0?"ERROR":p;V=V===void 0?!1:V;p=p===void 0?"ERROR":p;V=V===void 0?!1:V;if(S&&(S.hasOwnProperty("level")&&S.level&&(p=S.level),_.y("console_log_js_exceptions")&&(Y=[],Y.push("Name: "+S.name),Y.push("Message: "+S.message),S.hasOwnProperty("params")&&Y.push("Error Params: "+JSON.stringify(S.params)),S.hasOwnProperty("args")&&Y.push("Error args: "+
JSON.stringify(S.args)),Y.push("File name: "+S.fileName),Y.push("Stacktrace: "+S.stack),Y=Y.join("\n"),window.console.log(Y,S)),!(Dmu>=5))){Y=[];L=_.d(zMR);for(I=L.next();!I.done;I=L.next()){I=I.value;try{I()&&Y.push(I())}catch(Z){}}Y=[].concat(_.jo(Qfw),_.jo(Y));var O=nXu(S);L=O.message||"Unknown Error";I=O.name||"UnknownError";var D=O.stack||S.stacktrace||"Not available";if(D.startsWith(I+": "+L)){var z=D.split("\n");z.shift();D=z.join("\n")}z=O.lineNumber||"Not available";O=O.fileName||"Not available";
var Q=0;if(S.hasOwnProperty("args")&&S.args&&S.args.length)for(var J=0;J<S.args.length&&!(Q=Mmu(S.args[J],"params."+J,U,Q),Q>=500);J++);else if(S.hasOwnProperty("params")&&S.params){var K=S.params;if(typeof S.params==="object")for(J in K){if(K[J]){var G="params."+J,X=HS(K[J]);U[G]=X;Q+=G.length+X.length;if(Q>500)break}}else U.params=HS(K)}if(Y.length)for(J=0;J<Y.length&&!(Q=Mmu(Y[J],"params.context."+J,U,Q),Q>=500);J++);navigator.vendor&&!U.hasOwnProperty("vendor")&&(U["device.vendor"]=navigator.vendor);
J={message:L,name:I,lineNumber:z,fileName:O,stack:D,params:U,sampleWeight:1};U=Number(S.columnNumber);isNaN(U)||(J.lineNumber=J.lineNumber+":"+U);if(S.level==="IGNORED")S=0;else a:{S=JSN();U=_.d(S.messageWeights);for(Y=U.next();!Y.done;Y=U.next())if(Y=Y.value,J.message&&J.message.match(Y.messageRegExp)){S=Y.weight;break a}S=_.d(S.callbackWeights);for(U=S.next();!U.done;U=S.next())if(U=U.value,U.callback(J)){S=U.weight;break a}S=1}J.sampleWeight=S;S=_.d(ySE);for(U=S.next();!U.done;U=S.next())if(U=
U.value,U.patternsForType[J.name])for(L=_.d(U.patternsForType[J.name]),Y=L.next();!Y.done;Y=L.next())if(I=Y.value,Y=J.message.match(I.regexp)){J.params["params.error.original"]=Y[0];L=I.groups;I={};for(z=0;z<L.length;z++)I[L[z]]=Y[z+1],J.params["params.error."+L[z]]=Y[z+1];J.message=U.messageFn(I);break}J.params||(J.params={});S=JSN();J.params["params.errorServiceSignature"]="msg="+S.messageWeights.length+"&cb="+S.callbackWeights.length;J.params["params.serviceWorker"]="false";_.UX.document&&_.UX.document.querySelectorAll&&
(J.params["params.fscripts"]=String(document.querySelectorAll("script:not([nonce])").length));(new uQ(KsG,"sample")).constructor!==uQ&&(J.params["params.fconst"]="true");window.yterr&&typeof window.yterr==="function"&&window.yterr(J);if(J.sampleWeight!==0&&!bzr.has(J.message)){if(V&&_.y("web_enable_error_204"))jfX(p===void 0?"ERROR":p,J);else{p=p===void 0?"ERROR":p;p==="ERROR"?(rSE.publish("handleError",J),_.y("record_app_crashed_web")&&GeR===0&&J.sampleWeight===1&&(GeR++,V={appCrashType:"APP_CRASH_TYPE_BREAKPAD"},
_.y("report_client_error_with_app_crash_ks")||(V.systemHealth={crashData:{clientError:{logMessage:{message:J.message}}}}),_.RV("appCrashed",V)),hMG++):p==="WARNING"&&rSE.publish("handleWarning",J);if(_.y("kevlar_gel_error_routing")){V=p;W=W===void 0?{}:W;b:{S=_.d(RMG);for(U=S.next();!U.done;U=S.next())if(sg(U.value.toLowerCase())){S=!0;break b}S=!1}if(S)W=void 0;else{U={stackTrace:J.stack};J.fileName&&(U.filename=J.fileName);S=J.lineNumber&&J.lineNumber.split?J.lineNumber.split(":"):[];S.length!==
0&&(S.length!==1||isNaN(Number(S[0]))?S.length!==2||isNaN(Number(S[0]))||isNaN(Number(S[1]))||(U.lineNumber=Number(S[0]),U.columnNumber=Number(S[1])):U.lineNumber=Number(S[0]));S={level:"ERROR_LEVEL_UNKNOWN",message:J.message,errorClassName:J.name,sampleWeight:J.sampleWeight};V==="ERROR"?S.level="ERROR_LEVEL_ERROR":V==="WARNING"&&(S.level="ERROR_LEVEL_WARNNING");U={isObfuscated:!0,browserStackInfo:U};W.pageUrl=window.location.href;W.kvPairs=[];_.g7("FEXP_EXPERIMENTS")&&(W.experimentIds=_.g7("FEXP_EXPERIMENTS"));
Y=_.g7("LATEST_ECATCHER_SERVICE_TRACKING_PARAMS");if(!W$w("web_disable_gel_stp_ecatcher_killswitch")&&Y)for(L=_.d(Object.keys(Y)),I=L.next();!I.done;I=L.next())I=I.value,W.kvPairs.push({key:I,value:String(Y[I])});if(Y=J.params)for(L=_.d(Object.keys(Y)),I=L.next();!I.done;I=L.next())I=I.value,W.kvPairs.push({key:"client."+I,value:String(Y[I])});Y=_.g7("SERVER_NAME");L=_.g7("SERVER_VERSION");Y&&L&&(W.kvPairs.push({key:"server.name",value:Y}),W.kvPairs.push({key:"server.version",value:L}));W={errorMetadata:W,
stackTrace:U,logMessage:S}}W&&(_.RV("clientError",W),(V==="ERROR"||_.y("errors_flush_gel_always_killswitch"))&&_.Fr())}_.y("suppress_error_204_logging")||jfX(p,J)}try{bzr.add(J.message)}catch(Z){}Dmu++}}};
jfX=function(S,p){var U=p.params||{};S={urlParams:{a:"logerror",t:"jserror",type:p.name,msg:p.message.substr(0,250),line:p.lineNumber,level:S,"client.name":U.name},postParams:{url:_.g7("PAGE_NAME",window.location.href),file:p.fileName},method:"POST"};U.version&&(S["client.version"]=U.version);if(S.postParams){p.stack&&(S.postParams.stack=p.stack);p=_.d(Object.keys(U));for(var Y=p.next();!Y.done;Y=p.next())Y=Y.value,S.postParams["client."+Y]=U[Y];if(U=_.g7("LATEST_ECATCHER_SERVICE_TRACKING_PARAMS"))for(p=
_.d(Object.keys(U)),Y=p.next();!Y.done;Y=p.next())Y=Y.value,S.postParams[Y]=U[Y];(U=_.g7("LAVA_VERSION"))&&(S.postParams["lava.version"]=U);U=_.g7("SERVER_NAME");p=_.g7("SERVER_VERSION");U&&p&&(S.postParams["server.name"]=U,S.postParams["server.version"]=p)}_.WS(_.g7("ECATCHER_REPORT_HOST","")+"/error_204",S)};
_.FsE=function(S,p){p=p===void 0?"ERROR":p;var U=U===void 0?{}:U;var Y=_.ad("ytbin.polymer.shared.lib.tampering.info");Y&&(Y=Y())&&(U["params.tamperingInfo"]=Y.sort().join(","));_.ZP(S,p,void 0,void 0,!0,U)};
_.gK=function(S){var p=_.jO.apply(1,arguments);S.args||(S.args=[]);Array.isArray(S.args)&&S.args.push.apply(S.args,_.jo(p))};
XXE=function(S){S.level="IGNORED"};
PTe=function(S,p){Qfw.push(S);p();Qfw.pop()};
lQ=function(S,p){for(var U in p)p.hasOwnProperty(U)&&(S=_.wK(S,U,p[U]));return S};
_.ZzG=function(S,p,U){U=U===void 0?!1:U;if(!S)return null;if(S.adInfoDialogEndpoint||S.backstageImageUploadEndpoint||S.confirmDialogEndpoint||S.clientActionEndpoint||S.createBackstagePostDialogEndpoint||S.createCommentReplyDialogEndpoint||S.flowEndpoint||S.guideBuilderEndpoint||S.liveChatDialogEndpoint||S.modalEndpoint||S.openPopupAction||S.shareEndpoint||S.shareEntityEndpoint||S.showLiveChatItemEndpoint||S.subscriptionManagerEndpoint||S.unlimitedCreateFamilyEndpoint||S.unlimitedFamilyFlowEndpoint||
S.updateCommentDialogEndpoint||S.updateCommentReplyDialogEndpoint||S.userFeedbackEndpoint||S.videoEditorEndpoint||S.ypcCancelSurveyEndpoint)return p=_.pA("polymer_report_client_url_requested_rate"),!U&&Math.random()<p&&_.eP(new _.y7("urlForEndpoint used on client endpoint",S)),null;var Y=_.pA("polymer_report_missing_web_navigation_endpoint_rate");if(S.liveChatEndpoint||S.liveChatReplayEndpoint)Y=0;if(!S.commandMetadata&&!S.clickTrackingParams&&Math.random()<Y){var L={},I;for(I in S)L[I]="1";_.eP(new _.y7("Missing navigation data",
L))}L="";if(S.commandMetadata&&S.commandMetadata.webCommandMetadata&&S.commandMetadata.webCommandMetadata.url)L=S.commandMetadata.webCommandMetadata.url;else if(S.searchEndpoint)Math.random()<Y&&_.eP(new _.y7("Should not manually handle search",S)),L="/results?search_query="+encodeURIComponent(S.searchEndpoint.query).replace(/%20/g,"+"),S.searchEndpoint.params&&(L+="&sp="+S.searchEndpoint.params);else if(S.watchEndpoint)Math.random()<Y&&_.eP(new _.y7("Should not manually handle watch",S)),L="/watch?v="+
S.watchEndpoint.videoId,S.watchEndpoint.playlistId&&(L+="&list="+S.watchEndpoint.playlistId),S.watchEndpoint.index&&(L+="&index="+S.watchEndpoint.index),S.watchEndpoint.startTimeSeconds&&(L+="&t="+S.watchEndpoint.startTimeSeconds);else if(S.browseEndpoint)Y=S.browseEndpoint.browseId,(I=S.browseEndpoint.canonicalBaseUrl)?L=I:Y&&(L=Y.substr(0,2),L=L==="FE"?Y==="FEwhat_to_watch"?"/":Y==="FEmy_videos"?"/my_videos":"/feed/"+Y.substr(2):L==="VL"?"/playlist?list="+Y.substr(2):"/channel/"+Y),L&&S.browseEndpoint.query&&
(L=lQ(L+"/search",{query:S.browseEndpoint.query})),L&&S.browseEndpoint.params&&(L=lQ(L,{params:S.browseEndpoint.params}));else{if(S.urlEndpoint)return S.urlEndpoint.url;S.signInEndpoint?(L="https://accounts.google.com/ServiceLogin",Y={},_.h9.extend(Y,p||{},{"continue":window.location.href.split("#")[0],action_handle_signin:!0,passive:!0}),p=Y):S.uploadEndpoint?L="//www.youtube.com/upload":S.liveChatEndpoint?(L=S.liveChatEndpoint,Y=_.h9.clone(L),_.pc(L.continuation)&&(I=Object.keys(L.continuation)[0],
Y.continuation=L.continuation[I].continuation),L=lQ("/youtubei/v1/live_chat/get_live_chat",Y)):S.liveChatReplayEndpoint?(L=_.h9.clone(S.liveChatReplayEndpoint),L.currentPlayerState&&(_.h9.extend(L,L.currentPlayerState),delete L.currentPlayerState),L=lQ("/youtubei/v1/live_chat/get_live_chat_replay",L)):S.liveChatItemContextMenuEndpoint?L=lQ("/youtubei/v1/live_chat/get_item_context_menu",S.liveChatItemContextMenuEndpoint):S.liveChatPurchaseMessageEndpoint?L=lQ("/youtubei/v1/live_chat/get_live_chat_message_buy_flow",
S.liveChatPurchaseMessageEndpoint):S.openSuperStickerBuyFlowCommand?L=lQ("/youtubei/v1/live_chat/get_live_chat_super_sticker_buy_flow",S.openSuperStickerBuyFlowCommand):S.videoEditEndpoint?L=lQ("/edit",{video_id:S.videoEditEndpoint.videoId}):S.liveDashboardEndpoint?L=S.liveDashboardEndpoint.videoId?lQ("/live_dashboard",{v:S.liveDashboardEndpoint.videoId}):"/live_dashboard":S.signalNavigationEndpoint&&S.signalNavigationEndpoint.signal&&S.signalNavigationEndpoint.signal==="WEBCAM"?L="/webcam":S.getPdgBuyFlowCommand&&
(L=lQ(S.getPdgBuyFlowCommand.buyflowApiPath,{params:S.getPdgBuyFlowCommand.params}))}return L||U?lQ(L,p||{}):(_.eP(new _.y7("Error: Can't construct url for endpoint","keys:"+Object.keys(S).sort().join(","),S)),null)};
sfR=function(S){if(S){if(S.browseEndpoint)return!!S.browseEndpoint.nofollow;if(S.watchEndpoint)return!!S.watchEndpoint.nofollow;if(S.urlEndpoint)return!!S.urlEndpoint.nofollow}return!1};
_.gXw=function(S,p){var U=p+S,Y=eMN.get(U);if(Y)return Y;S=p+"-"+S.replace(/([A-Z])/g,"-$1").toLowerCase();eMN.set(U,S);return S};
uiw=function(S){var p=_.ZC(S,"action")||_.ZC(S,"command")||_.ZC(S,"endpoint");if(!p)return null;p=_.gXw(p,"yt");_.b(S,_.aV)&&(p+="-"+_.b(S,_.aV).signal.toLowerCase().replace(/_/g,"-"));return p};
f$N=function(S){try{var p=Object.keys(S)}catch(L){return[]}for(var U=0;U<p.length;U++){var Y=p[U];if(wXd.test(Y)||l$w.test(Y))return a$G(S[Y])}return[]};
a$G=function(S){return S.command?[S.command]:S.onExecutionAction?[S.onExecutionAction]:S.onResponseReceivedCommand?[S.onResponseReceivedCommand]:S.updateFlowCommand?[S.updateFlowCommand]:S.clientActions?S.clientActions:S.action?[S.action]:S.actions||S.commands||S.onResponseReceivedActions||S.onResponseReceivedCommands||S.onResponseReceivedEndpoints||[]};
xmR=function(S,p){p=p===void 0?!1:p;var U=_.tW().resolve(_.AW(fv));U||(U=new CTX,_.tW().addProvider({provide:fv,useValue:U}));return U&&S&&!_.h9.isEmpty(S)?U.getUrl(S,p):""};
EXE=function(S,p,U){U=U===void 0?"":U;if(p){S.data=p;var Y=xmR(p);Y?(hA(S,Y),sfR(p)||!BQ(Y)?S.rel="nofollow":S.removeAttribute("rel"),_.b(p,_.Cv)&&_.b(p,_.Cv).target==="TARGET_NEW_WINDOW"?S.target="_blank":U?S.target=U:S.removeAttribute("target")):(S.removeAttribute("href"),S.removeAttribute("rel"),S.removeAttribute("target"))}};
_.oV=function(S,p){var U=AY;if(rd())mmw(S,function(){var I=_.jO.apply(0,arguments);sI(U,function(){p.apply(null,_.jo(I))})});
else{var Y=_.xv.getInstance(),L=PQ(p);L$R(function(){L.value=p});
_.FM(function(){var I={},V=_.E9(Y,(I[S]=function(){var W=_.jO.apply(0,arguments);sI(U,function(){L.value.apply(L,_.jo(W))})},I));
return function(){var W={};_.me(Y,(W[S]="",W),V)}})}};
_.vH=function(S){return rd()?oXE(S):vXw(S)};
_.$v=function(S){return rd()?oXE(S):vXw(S)};
vXw=function(S){return XM(function(){return oXE(S)})};
oXE=function(S){var p=SRr(function(U){p.value&&p.value===U||(p.__count=p.__count?p.__count+1:1);p.value=U;var Y=function(){var L=I8(null);try{return S==null?void 0:S(U)}finally{I8(L)}}();
return function(){Y==null||Y();p.value=null}});
return p};
$mw=function(S){var p=AY,U=KS;return{getFn:function(){return function(Y){p.isDisposed||hy(function(){return OI(function(){return S(Y)})},U)!==!0&&Y.stopPropagation()}}}};
iQ=function(S){if(typeof S.children==="function")return S.children(),null;S=_.d(S.children);for(var p=S.next();!p.done;p=S.next())p=p.value,p();return null};
izq=function(S){var p;return((p=S.prototype)==null?void 0:p.render)===void 0};
Nxe=function(S){S=S.items.map(S.children);return S.length>0&&typeof S[0]==="string"?S.join(""):S};
qWw=function(S,p,U){U=U===void 0?!1:U;hy(function(){return Bxw(S,p,U)})};
Bxw=function(S,p,U){U=((U===void 0?0:U)?ASe:tVd)(S,function(){NW(p)});
return U===null?S:U};
NW=function(S){if(S!==void 0&&S!==null)if(S instanceof ks)for(var p=lo;a8()!=null&&aPe in a8()&&p.contains(a8());)EI();else if(Array.isArray(S))for(p=_.d(S),S=p.next();!S.done;S=p.next())NW(S.value);else if(S instanceof IK||"function"==typeof _.m1&&S instanceof _.m1)cz(S.toString());else if(LU(S)){if(a8()!==S){var U,Y;p=(Y=(U=KS)==null?void 0:U.name)!=null?Y:"unknown";throw Error("cc`"+S.tagName+"`"+p);}EI()}else if(S!=null&&S.contentKind===d7||S instanceof RK)for(p=pHN(S),p=Array.from(p.childNodes),
p=_.d(p),S=p.next();!S.done;S=p.next())lo.appendChild(S.value),EI();else if(HE(S)&&(S=S.toString()),U=typeof S,U==="boolean"||U==="number"||U==="string")cz(S);else if(typeof S==="function"){p=lo;var L=a8();L&&(L._isSignalTextNode||L._isSafeOrSanitizedHtmlNode)||Fee(p,L,S);EI()}else if(S.type===Nxe)NW(S.type(Object.assign({},S.props,{children:S.children[0]})));else{Qe.beforeVisit(S);if(typeof S.type==="string"){a:{S.__open||uyG(S.type,S.props.idomKey);L=lo;for(p in S.props)if(S.props[p]!==cSR){var I=
S.props[p];U=Bz;U.push(p);U.push(I)}p=Yj.attributes;p=p===void 0?BH:p;I=lo;U=wd(I);E7u(I,U,p);RYX(L,S.props,!0);if((S.props.skip||S.props.skipchildren)&&lo.hasChildNodes())o8();else{if(S.type==="style"&&kYw(S.children)===null){o8();p=void 0;break a}NW(S.children)}wAG();S.__open&&(S.__open=!1);B6E(L,S.props);p=L}return p}if(S.type===_.U0)NW(S.children);else if(!Soq(S)){p=S;try{p7R(p)}catch(V){S=V,(I=Yj.handleError)==null||I.call.apply(I,[Yj].concat(_.jo(ek(S,(L=p.type)==null?void 0:L.TAG_NAME))))}p.__open&&
(wAG(),p.__open=!1)}}};
UFE=function(S,p){var U;izq(S)?U=new JW(p,S):U=new S(p);U.JSC$8270___type=S;U.__updateContext={nextState:U.state,isForced:!1};return U};
p7R=function(S){var p=S.type,U=p.TAG_NAME;if(p===iQ)S.props.children=S.children,p(S.props);else{S.children.length>0&&(S.props.children=S.children);var Y;(Y=S.props).idomKey||(Y.idomKey=p);if(U){var L=uyG(U,S.props.idomKey);S.__open=!0;var I=L.__instance}I||(I=UFE(p,S.props),I.props=null,L&&(L.__instance=I,I.el=L));var V;U=((V=I.__updateContext)!=null?V:{nextState:I.state,isForced:!1}).nextState;I.__updateContext=void 0;p.getDerivedStateFromProps&&(U=p.getDerivedStateFromProps(S.props,U));I.props=
S.props;I.state=U;V=function(){var W=I;Qe.beforeRender(W);var O=W.render(W.props);Qe.afterRender(W,O);O?(W.props.idomKey&&(O.props.idomKey=W.props.idomKey),W=O):W=void 0;if(O=W)if(O.__open=S.__open,W=NW(O),S.__open=O.__open,!p.TAG_NAME)if(W)p.TAG_NAME=W.tagName.toLowerCase(),W.__instance=I,I.el=W;else{var D;if((D=I.hooks)==null?0:D.length){var z;(z=Yj.handleError)==null||z.call.apply(z,[Yj].concat(_.jo(ek(Error("id")))))}}I.didPatch();Qe.didPatch(I)};
(U=I.functionComponent)?cIw(U,V,I.props.debugInstance):V()}};
Soq=function(S){var p=S.type;if(!izq(p)||p===iQ||p.componentType===jk)return!1;S.props.children=S.children.length>1?S.children:S.children[0];var U,Y=(U=S.props.idomKey)!=null?U:S.type,L;if(a8()&&((L=a8()[T2])==null?void 0:L.key)===Y){var I=a8(),V=I[T2];if(!V)throw Error("bc`"+I.tagName);var W;(W=V.updateSignalsFromIdomProps)==null||W.call(V,S.props);You(V);return!0}if(Lhr.has(p.name))throw W=p.name,p=(V=(I=KS)==null?void 0:I.name)!=null?V:"unknown",Error("ac`"+W+"`"+p);sVk(S.type,S.props,S.children);
S.props.renderedFromIdom=!0;(W=cIw(S.type,function(){return bvw(S.type,S.props)},S.props.debugInstance))&&MMN(W);
return!0};
ItG=function(S){for(var p=0;p<O0(S).length;p++)EI()};
You=function(S){var p=dFw();if(p)ItG(p);else for(var U=0;U<S.numNodes;U++)(p=dFw())?ItG(p):EI()};
dFw=function(){var S;return(S=a8()[T2])==null?void 0:S.sourceDynamicRange};
MMN=function(S){S=AEG(S);S=Array.isArray(S)?S:[S];S=_.d(S);for(var p=S.next();!p.done;p=S.next())lo.insertBefore(p.value,a8()),EI()};
VMe=function(S){var p=rUe(),U=XM(function(){return{value:typeof S==="function"?S():S}});
return[U.value,function(Y){if(nU!==null){var L;(L=Yj.handleError)==null||L.call.apply(L,[Yj].concat(_.jo(ek(Error("jd")))))}U.value=typeof Y==="function"?Y(U.value):Y;p.__updateContext={nextState:p.state,isForced:!0};Y=tY(p.effectContext);L=Ys(!1);try{if(p.el){var I,V={},W=(V.props=p.props,V.type=p.JSC$8270___type,V.children=(I=p.props.children)!=null?I:[],V[pU]=!0,V);try{qWw(p.el,W,!0)}catch(z){var O,D;(D=Yj.handleError)==null||D.call.apply(D,[Yj].concat(_.jo(ek(z,(O=p.JSC$8270___type)==null?void 0:
O.TAG_NAME))))}}}finally{Ys(L),tY(Y)}}]};
qW=function(S,p){var U=AY,Y=function(L){sI(U,function(){p(L)})};
window.addEventListener(S,Y,void 0);_.FG(function(){window.removeEventListener(S,Y,void 0)})};
_.tU=function(S,p){var U=AY;_.FM(function(){var Y,L=(Y=p.observer)!=null?Y:_.tW().resolve(AU);if(Y=S.value){var I=TYe(Y),V=[];p.showOption&&V.push(L.observe(Y,function(){sI(U,function(){p.visibilityCallback(!0)})},p.showOption));
p.hideOption&&V.push(L.observe(Y,function(){sI(U,function(){p.visibilityCallback(!1)})},p.hideOption));
p.prescanOption&&p.prescanCallback&&V.push(L.observe(Y,function(){sI(U,function(){p.prescanCallback()})},p.prescanOption));
var W;I.visibilityMonitorKeys=((W=I.visibilityMonitorKeys)!=null?W:[]).concat(V)}})};
TYe=function(S){var p;return(p=S.polymerController)!=null?p:S};
_.cH=function(S){S.componentType=jk};
HsE=function(S,p){var U=Whk;return _.H(_.U0,null,qd(Yj.enableLazyTsx,function(){return _.H(Ose,{id:U,value:S,children:p})},function(){var Y=kwX(U,S);
UI(Y);Y=tY(Y);try{return p()}finally{tY(Y)}}))};
Ose=function(S){var p=S.children;S=kwX(S.id,S.value);UI(S);S=tY(S);try{return _.H(_.U0,null,HQ(p()))}finally{tY(S)}};
kwX=function(S,p){return Object.assign(Object.create(DFe),{id:S,contextValue:p})};
zow=function(S){var p,U=AY;_.Zg(function(){var Y=tY(U),L=Ys(!p);try{if(p)qWw(p,S.children(),!0);else if(p=HQ(S.children()),!(p instanceof Element))throw Error("kd");}finally{Ys(L),tY(Y)}});
return p};
Qyw=function(S){var p,U=XG(function(){var Y=Ys(!0);try{p=O0(S())}finally{Ys(Y)}},!1);
return[p,U]};
J7G=function(S){S=S.buf.charCodeAt(S.pos++);return nLe[S]};
SF=function(S){var p=0,U=0;do{var Y=J7G(S);p|=(Y&31)<<U;U+=5}while(Y&32);return p<0?p+4294967296:p};
bsr=function(S,p,U){y7e(S,p);S[p][KhR].unshift(U)};
y7e=function(S,p){if(!S[p]||!S[p][KhR]){var U=S[p],Y=U?[U]:[];S[p]=function(){for(var L=_.d(Y),I=L.next();!I.done;I=L.next())I.value.apply(this,arguments)};
S[p][KhR]=Y}};
jyG=function(S){if(!S)return[];var p=[];S=_.d(S);for(var U=S.next();!U.done;U=S.next())U=U.value,Array.isArray(U)?p.push.apply(p,_.jo(jyG(U))):p.push(U);return p};
_.UR=function(S,p){if(S&&r7E.test(S)||S==="//")return S;if(Gww===void 0){Gww=!1;try{var U=new URL("b","http://a");U.pathname="c%20d";Gww=U.href==="http://a/c%20d"}catch(Y){}}p||(p=document.baseURI||window.location.href);if(Gww)try{return(new URL(S,p)).href}catch(Y){return S}pZ||(pZ=document.implementation.createHTMLDocument("temp"),pZ.base=pZ.createElement("base"),pZ.head.appendChild(pZ.base),pZ.anchor=pZ.createElement("a"),pZ.body.appendChild(pZ.anchor));pZ.base.href=p;pZ.anchor.href=S;return pZ.anchor.href||
S};
Roq=function(S,p){return S.replace(hoG,function(U,Y,L,I){return Y+"'"+_.UR(L.replace(/["']/g,""),p)+"'"+I})};
FhG=function(S){return S.substring(0,S.lastIndexOf("/")+1)};
ZsN=function(){X7q=!1;for(var S=Yu.length,p=0;p<S;p++){var U=Yu[p];if(U)try{U()}catch(Y){setTimeout(function(){throw Y;})}}Yu.splice(0,S);
PZE+=S};
_._regLog$$module$third_party$javascript$polymer$v2$polymer$lib$utils$telemetry=function(S){console.log("["+S.is+"]: registered")};
eow=function(S){syN.push(S)};
LZ=function(S){return gLk[S]||(gLk[S]=S.indexOf("-")<0?S:S.replace(ucu,function(p){return p[1].toUpperCase()}))};
M0=function(S){return gLk[S]||(gLk[S]=S.replace(w7N,"-$1").toLowerCase())};
ltG=function(S,p){var U=p.parentInfo&&ltG(S,p.parentInfo);if(U)for(S=U.firstChild,U=0;S;S=S.nextSibling){if(p.parentIndex===U++)return S}else return S};
atr=function(S,p){S=S._methodHost||S;return function(U){if(S[p])S[p](U,U.detail);else console.warn("listener method `"+p+"` not defined")}};
IH=function(S){return S.indexOf(".")>=0};
dV=function(S){var p=S.indexOf(".");return p===-1?S:S.slice(0,p)};
ftk=function(S,p){return S.indexOf(p+".")===0};
VV=function(S,p){return p.indexOf(S+".")===0};
TT=function(S,p,U){return p+U.slice(S.length)};
CZE=function(S,p){return S===p||ftk(S,p)||VV(S,p)};
Wr=function(S){if(Array.isArray(S)){for(var p=[],U=0;U<S.length;U++)for(var Y=S[U].toString().split("."),L=0;L<Y.length;L++)p.push(Y[L]);return p.join(".")}return S};
xFe=function(S){return Array.isArray(S)?Wr(S).split("."):S.toString().split(".")};
OR=function(S,p,U){p=xFe(p);for(var Y=0;Y<p.length;Y++){if(!S)return;S=S[p[Y]]}U&&(U.path=p.join("."));return S};
ELE=function(S,p,U){var Y=xFe(p),L=Y[Y.length-1];if(Y.length>1){for(p=0;p<Y.length-1;p++)if(S=S[Y[p]],!S)return;S[L]=U}else S[p]=U;return Y.join(".")};
mFN=function(S,p,U){var Y=S[p];if(!Y)Y=S[p]={};else if(!S.hasOwnProperty(p)&&(Y=S[p]=Object.create(S[p]),U))for(var L in Y)for(S=Y[L],p=Y[L]=Array(S.length),U=0;U<S.length;U++)p[U]=S[U];return Y};
Hr=function(S,p,U,Y,L,I){if(p){var V=!1,W=ku++,O;for(O in U){var D=L?dV(O):O;if(D=p[D])for(var z=0,Q=D.length,J=void 0;z<Q&&(J=D[z]);z++)J.info&&J.info.lastRun===W||L&&!oLu(O,J.trigger)||(J.info&&(J.info.lastRun=W),J.fn(S,O,U,Y,J.info,L,I),V=!0)}return V}return!1};
oLu=function(S,p){if(p){var U=p.name;return U==S||!(!p.structured||!ftk(U,S))||!(!p.wildcard||!VV(U,S))}return!0};
vLq=function(S,p,U,Y,L){p=typeof L.method==="string"?S[L.method]:L.method;U=L.property;p?p.call(S,S.__data[U],Y[U]):L.dynamicFn||console.warn("observer method `"+L.method+"` not defined")};
$FR=function(S,p,U,Y){U={value:U,queueProperty:!0};Y&&(U.path=Y);(0,_.Dc)(S).dispatchEvent(new CustomEvent(p,{detail:U}))};
isk=function(S,p,U,Y,L,I){I=(Y=(I?dV(p):p)!=p?p:null)?OR(S,Y):S.__data[p];Y&&I===void 0&&(I=U[p]);$FR(S,L.eventName,I,Y)};
NYR=function(S,p,U,Y,L){U=S.__data[p];zT&&(U=zT(U,L.attrName,"attribute",S));S._propertyToAttribute(p,L.attrName,U)};
qoR=function(S){var p=S.constructor.__orderedComputedDeps;if(!p){p=new Map;for(var U=S.__computeEffects,Y=BYG(S),L=Y.counts,I=Y.ready,V=Y.total;Y=I.shift();)p.set(Y,p.size),(Y=U[Y])&&Y.forEach(function(W){W=W.info.methodInfo;--V;--L[W]===0&&I.push(W)});
V!==0&&console.warn("Computed graph for "+S.localName+" incomplete; circular?");S.constructor.__orderedComputedDeps=p}return p};
BYG=function(S){var p=S.__computeInfo,U={};S=S.__computeEffects;var Y=[],L=0,I;for(I in p){var V=p[I];L+=U[I]=V.args.filter(function(O){return!O.literal}).length+(V.dynamicFn?1:0)}for(var W in S)p[W]||Y.push(W);
return{counts:U,ready:Y,total:L}};
tME=function(S,p,U,Y,L){p=A7e(S,p,U,Y,L);if(p===QV)return!1;L=L.methodInfo;if(S.__dataHasAccessor&&S.__dataHasAccessor[L])return S._setPendingProperty(L,p,!0);S[L]=p;return!1};
pGw=function(S,p,U,Y,L,I,V){U.bindings=U.bindings||[];Y={kind:Y,target:L,parts:I,literal:V,isCompound:I.length!==1};U.bindings.push(Y);Y.target&&Y.kind!="attribute"&&Y.kind!="text"&&!Y.isCompound&&Y.parts[0].mode==="{"&&(U=Y.parts[0],I=U.negate,Y.listenerEvent=U.event||M0(L)+"-changed",Y.listenerNegate=I);L=p.nodeInfoList.length;for(U=0;U<Y.parts.length;U++){var W=Y.parts[U];W.compoundIndex=U;I=S;V=p;var O=Y,D=W,z=L;if(!D.literal)if(O.kind==="attribute"&&O.target[0]==="-")console.warn("Cannot set attribute "+
O.target+' because "-" is not a valid attribute starting character');else for(W=D.dependencies,O={index:z,binding:O,part:D,evaluator:I},D=0;D<W.length;D++)z=W[D],typeof z=="string"&&(z=c7N(z),z.wildcard=!0),I._addTemplatePropertyEffect(V,z.rootProperty,{fn:SKu,info:O,trigger:z})}};
SKu=function(S,p,U,Y,L,I,V){V=V[L.index];var W=L.binding,O=L.part;I&&O.source&&p.length>O.source.length&&W.kind=="property"&&!W.isCompound&&V.__isPropertyEffectsClient&&V.__dataHasAccessor&&V.__dataHasAccessor[W.target]?(U=U[p],p=TT(O.source,W.target,p),V._setPendingPropertyOrPath(p,U,!1,!0)&&S._enqueueClient(V)):(p=L.evaluator._evaluateBinding(S,O,p,U,Y,I),p!==QV&&(W.isCompound&&(U=V.__dataCompoundStorage[W.target],U[O.compoundIndex]=p,p=U.join("")),W.kind==="attribute"||W.target!=="textContent"&&
(W.target!=="value"||V.localName!=="input"&&V.localName!=="textarea")||(p=p==void 0?"":p),O=p,zT&&(O=zT(O,W.target,W.kind,V)),W.kind=="attribute"?S._valueToNodeAttribute(V,O,W.target):(W=W.target,V.__isPropertyEffectsClient&&V.__dataHasAccessor&&V.__dataHasAccessor[W]?V.__readOnly&&V.__readOnly[W]||V._setPendingProperty(W,O)&&S._enqueueClient(V):S._setUnmanagedPropertyToNode(V,W,O))))};
UBG=function(S,p,U){if(U.listenerEvent){var Y=U.parts[0];S.addEventListener(U.listenerEvent,function(L){var I=U.target,V=Y.source,W=Y.negate,O=L.detail,D=O&&O.path;D?(V=TT(I,V,D),L=O&&O.value):L=L.currentTarget[I];p.__readOnly&&p.__readOnly[V]||!p._setPendingPropertyOrPath(V,W?!L:L,!0,!!D)||O&&O.queueProperty||p._invalidateProperties()})}};
YKw=function(S,p,U,Y,L,I){I=p.static||I&&(typeof I!=="object"||I[p.methodName]);L={methodName:p.methodName,args:p.args,methodInfo:L,dynamicFn:I};for(var V=0,W=void 0;V<p.args.length&&(W=p.args[V]);V++)W.literal||S._addPropertyEffect(W.rootProperty,U,{fn:Y,info:L,trigger:W});I&&S._addPropertyEffect(p.methodName,U,{fn:Y,info:L});return L};
A7e=function(S,p,U,Y,L){Y=S._methodHost||S;var I=Y[L.methodName];if(I)return S=S._marshalArgs(L.args,p,U),S===QV?QV:I.apply(Y,S);L.dynamicFn||console.warn("method `"+L.methodName+"` not defined")};
LLR=function(S){for(var p="",U=0;U<S.length;U++)p+=S[U].literal||"";return p};
dBE=function(S){if(S=S.match(/([^\s]+?)\(([\s\S]*)\)/)){var p={methodName:S[1],static:!0,args:MSd};return S[2].trim()?IeX(S[2].replace(/\\,/g,"&comma;").split(","),p):p}return null};
IeX=function(S,p){p.args=S.map(function(U){U=c7N(U);U.literal||(p.static=!1);return U},this);
return p};
c7N=function(S){S=S.trim().replace(/&comma;/g,",").replace(/\\(.)/g,"$1");var p={name:S,value:"",literal:!1},U=S[0];U==="-"&&(U=S[1]);U>="0"&&U<="9"&&(U="#");switch(U){case "'":case '"':p.value=S.slice(1,-1);p.literal=!0;break;case "#":p.value=Number(S),p.literal=!0}p.literal||(p.rootProperty=dV(S),p.structured=IH(S),p.structured&&(p.wildcard=S.slice(-2)==".*",p.wildcard&&(p.name=S.slice(0,-2))));return p};
VSE=function(S,p,U){S=OR(S,U);S===void 0&&(S=p[U]);return S};
T8E=function(S,p,U,Y){Y={indexSplices:Y};nZ&&!S._overrideLegacyUndefined&&(p.splices=Y);S.notifyPath(U+".splices",Y);S.notifyPath(U+".length",p.length);nZ&&!S._overrideLegacyUndefined&&(Y.indexSplices=[])};
Jr=function(S,p,U,Y,L,I){T8E(S,p,U,[{index:Y,addedCount:L,removed:I,object:p,type:"splice"}])};
WLN=function(S){S=Roq((S.body?S.body:S).textContent,S.baseURI);var p=document.createElement("style");p.textContent=S;return p};
kyw=function(S){S=S.trim().split(/\s+/);for(var p=[],U=0;U<S.length;U++)p.push.apply(p,_.jo(O6e(S[U])));return p};
O6e=function(S){var p=yV.import(S);if(!p)return console.warn("Could not find style data in module named",S),[];if(p._styles===void 0){S=[];S.push.apply(S,_.jo(_._stylesFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather(p)));var U=p.querySelector("template");U&&S.push.apply(S,_.jo(H6r(U,p.assetpath)));p._styles=S}return p._styles};
H6r=function(S,p){if(!S._styles){for(var U=[],Y=S.content.querySelectorAll("style"),L=0;L<Y.length;L++){var I=Y[L],V=I.getAttribute("include");V&&U.push.apply(U,_.jo(kyw(V).filter(function(W,O,D){return D.indexOf(W)===O})));
p&&(I.textContent=Roq(I.textContent,p));U.push(I)}S._styles=U}return S._styles};
zlN=function(S){return(S=yV.import(S))?_._stylesFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather(S):[]};
_._stylesFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather=function(S){var p=[];S=S.querySelectorAll("link[rel=import][type~=css]");for(var U=0;U<S.length;U++){var Y=S[U];if(Y.import){var L=Y.import;if((Y=Y.hasAttribute("shady-unscoped"))&&!L._unscopedStyle){var I=WLN(L);I.setAttribute("shady-unscoped","");L._unscopedStyle=I}else L._style||(L._style=WLN(L));p.push(Y?L._unscopedStyle:L._style)}}return p};
nOd=function(S){S=S.trim().split(/\s+/);for(var p="",U=0;U<S.length;U++)p+=QFX(S[U]);return p};
QFX=function(S){var p=yV.import(S);if(p&&p._cssText===void 0){var U=_._cssFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather(p),Y=p.querySelector("template");Y&&(U+=Jnq(Y,p.assetpath));p._cssText=U||null}p||console.warn("Could not find style data in module named",S);return p&&p._cssText||""};
Jnq=function(S,p){var U="";S=H6r(S,p);for(p=0;p<S.length;p++){var Y=S[p];Y.parentNode&&Y.parentNode.removeChild(Y);U+=Y.textContent}return U};
_._cssFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather=function(S){var p="";S=_._stylesFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather(S);for(var U=0;U<S.length;U++)p+=S[U].textContent;return p};
KZ=function(S,p){return{index:S,removed:[],addedCount:p}};
KLk=function(S,p,U,Y){var L=0,I=0,V=0,W=0,O=Math.min(p-L,Y-I);if(L==0&&I==0)a:{for(V=0;V<O;V++)if(S[V]!==U[V])break a;V=O}if(p==S.length&&Y==U.length){W=S.length;for(var D=U.length,z=0;z<O-V&&ynN(S[--W],U[--D]);)z++;W=z}L+=V;I+=V;p-=W;Y-=W;if(p-L==0&&Y-I==0)return[];if(L==p){for(p=KZ(L,0);I<Y;)p.removed.push(U[I++]);return[p]}if(I==Y)return[KZ(L,p-L)];O=L;V=I;Y=Y-V+1;W=p-O+1;p=Array(Y);for(D=0;D<Y;D++)p[D]=Array(W),p[D][0]=D;for(D=0;D<W;D++)p[0][D]=D;for(D=1;D<Y;D++)for(z=1;z<W;z++)if(S[O+z-1]===
U[V+D-1])p[D][z]=p[D-1][z-1];else{var Q=p[D-1][z]+1,J=p[D][z-1]+1;p[D][z]=Q<J?Q:J}O=p.length-1;V=p[0].length-1;Y=p[O][V];for(S=[];O>0||V>0;)O==0?(S.push(2),V--):V==0?(S.push(3),O--):(W=p[O-1][V-1],D=p[O-1][V],z=p[O][V-1],Q=D<z?D<W?D:W:z<W?z:W,Q==W?(W==Y?S.push(0):(S.push(1),Y=W),O--,V--):Q==D?(S.push(3),O--,Y=D):(S.push(2),V--,Y=z));S.reverse();p=void 0;O=[];for(V=0;V<S.length;V++)switch(S[V]){case 0:p&&(O.push(p),p=void 0);L++;I++;break;case 1:p||(p=KZ(L,0));p.addedCount++;L++;p.removed.push(U[I]);
I++;break;case 2:p||(p=KZ(L,0));p.addedCount++;L++;break;case 3:p||(p=KZ(L,0)),p.removed.push(U[I]),I++}p&&O.push(p);return O};
b6k=function(S,p){return KLk(S,S.length,p,p.length)};
ynN=function(S,p){return S===p};
rnX=function(S){if(S instanceof jFd)return S.value;throw Error("Bd`"+S);};
Gyr=function(S,p){for(var U in p)U===null?S.style.removeProperty(U):S.style.setProperty(U,p[U])};
hle=function(S,p){return(S=window.getComputedStyle(S).getPropertyValue(p))?S.trim():""};
P6q=function(S){requestAnimationFrame(function(){Rle?Rle(S):(FLw||(FLw=new Promise(function(p){XGw=p}),document.readyState==="complete"?XGw():document.addEventListener("readystatechange",function(){document.readyState==="complete"&&XGw()})),FLw.then(function(){S&&S()}))})};
elw=function(S){Z6w=S&&S.shimcssproperties?!1:sFd||!(navigator.userAgent.match(/AppleWebKit\/601|Edge\/15/)||!window.CSS||!CSS.supports||!CSS.supports("box-shadow","0 0 0 var(--foo)"))};
aeE=function(S){if(!(gOu.indexOf(S)>-1)&&S!=="touchend"&&uCq&&wGw&&leq)return{passive:!0}};
EOE=function(S){for(var p=feG?["click"]:gOu,U=0,Y;U<p.length;U++)Y=p[U],S?(C6w.length=0,document.addEventListener(Y,xBE,!0)):document.removeEventListener(Y,xBE,!0)};
bN=function(S){var p=S.type;return gOu.indexOf(p)>-1?p==="mousemove"?(p=S.buttons===void 0?1:S.buttons,S instanceof window.MouseEvent&&!mBG&&(p=oOe[S.which]||0),!!(p&1)):(S.button===void 0?0:S.button)===0:!1};
vOR=function(S){if(S.type==="click"){if(S.detail===0)return!0;var p=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(S);if(!p.nodeType||p.nodeType!==Node.ELEMENT_NODE)return!0;p=p.getBoundingClientRect();var U=S.pageX;S=S.pageY;return!(U>=p.left&&U<=p.right&&S>=p.top&&S<=p.bottom)}return!1};
$Be=function(S,p,U){S.movefn=p;S.upfn=U;document.addEventListener("mousemove",p);document.addEventListener("mouseup",U)};
jF=function(S){document.removeEventListener("mousemove",S.movefn);document.removeEventListener("mouseup",S.upfn);S.movefn=null;S.upfn=null};
i6E=function(S,p){for(var U=document.elementFromPoint(S,p),Y=U;Y&&Y.shadowRoot&&!window.ShadyDOM;){var L=Y;Y=Y.shadowRoot.elementFromPoint(S,p);if(L===Y)break;Y&&(U=Y)}return U};
_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(S){var p=N8k(S);return p.length>0?p[0]:S.target};
_._handleNative$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(S){var p=S.type,U=S.currentTarget.__polymerGestures;if(U&&(U=U[p])){if(!S.__polymerGesturesHandled&&(S.__polymerGesturesHandled={},p.slice(0,5)==="touch")){var Y=S.changedTouches[0];p==="touchstart"&&S.touches.length===1&&(B8G=Y.identifier);if(B8G!==Y.identifier)return;uCq||(p==="touchstart"||p==="touchmove")&&_._handleTouchAction$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(S)}Y=
S.__polymerGesturesHandled;if(!Y.skip){for(var L=0,I;L<rV.length;L++)I=rV[L],U[I.name]&&!Y[I.name]&&I.flow&&I.flow.start.indexOf(S.type)>-1&&I.reset&&I.reset();for(L=0;L<rV.length;L++)I=rV[L],U[I.name]&&!Y[I.name]&&(Y[I.name]=!0,I[p](S))}}};
_._handleTouchAction$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(S){var p=S.changedTouches[0],U=S.type;if(U==="touchstart")qKX=p.clientX,Anw=p.clientY,tSR=!1;else if(U==="touchmove"&&!tSR){tSR=!0;U="auto";for(var Y=N8k(S),L=0,I;L<Y.length;L++)if(I=Y[L],I.__polymerGesturesTouchAction){U=I.__polymerGesturesTouchAction;break}Y=!1;L=Math.abs(qKX-p.clientX);p=Math.abs(Anw-p.clientY);S.cancelable&&(U==="none"?Y=!0:U==="pan-x"?Y=p>L:U==="pan-y"&&(Y=L>p));Y?S.preventDefault():
GT("track")}};
RH=function(S,p,U){return hr[p]?(_._add$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(S,p,U),!0):!1};
Fj=function(S,p,U){return hr[p]?(_._remove$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(S,p,U),!0):!1};
_._add$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(S,p,U){var Y=hr[p],L=Y.deps,I=Y.name,V=S.__polymerGestures;V||(S.__polymerGestures=V={});for(var W=0,O,D;W<L.length;W++)O=L[W],feG&&gOu.indexOf(O)>-1&&O!=="click"||((D=V[O])||(V[O]=D={_count:0}),D._count===0&&S.addEventListener(O,_._handleNative$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures,aeE(O)),D[I]=(D[I]||0)+1,D._count=(D._count||0)+1);S.addEventListener(p,U);Y.touchAction&&_.Xj(S,Y.touchAction)};
_._remove$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(S,p,U){var Y=hr[p],L=Y.deps;Y=Y.name;var I=S.__polymerGestures;if(I)for(var V=0,W,O;V<L.length;V++)W=L[V],(O=I[W])&&O[Y]&&(O[Y]=(O[Y]||1)-1,O._count=(O._count||1)-1,O._count===0&&S.removeEventListener(W,_._handleNative$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures,aeE(W)));S.removeEventListener(p,U)};
cnR=function(S){rV.push(S);for(var p=0;p<S.emits.length;p++)hr[S.emits[p]]=S};
_._findRecognizerByEvent$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(S){for(var p=0,U;p<rV.length;p++){U=rV[p];for(var Y=0,L;Y<U.emits.length;Y++)if(L=U.emits[Y],L===S)return U}return null};
_.Xj=function(S,p){uCq&&S instanceof HTMLElement&&Pr.run(function(){S.style.touchAction=p});
S.__polymerGesturesTouchAction=p};
_._fire$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(S,p,U){p=new Event(p,{bubbles:!0,cancelable:!0,composed:!0});p.detail=U;(0,_.Dc)(S).dispatchEvent(p);p.defaultPrevented&&(S=U.preventer||U.sourceEvent)&&S.preventDefault&&S.preventDefault()};
GT=function(S){S=_._findRecognizerByEvent$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(S);S.info&&(S.info.prevent=!0)};
Zc=function(S,p,U,Y){p&&_._fire$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(p,S,{x:U.clientX,y:U.clientY,sourceEvent:U,preventer:Y,prevent:function(L){return GT(L)}})};
SEX=function(S,p,U){if(S.prevent)return!1;if(S.started)return!0;U=Math.abs(S.y-U);return Math.abs(S.x-p)>=5||U>=5};
pIR=function(S,p,U){if(p){var Y=S.moves[S.moves.length-2],L=S.moves[S.moves.length-1],I=L.x-S.x,V=L.y-S.y,W=0;if(Y){var O=L.x-Y.x;W=L.y-Y.y}_._fire$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(p,"track",{state:S.state,x:U.clientX,y:U.clientY,dx:I,dy:V,ddx:O,ddy:W,sourceEvent:U,hover:function(){return i6E(U.clientX,U.clientY)}})}};
YEw=function(S,p,U){var Y=Math.abs(p.clientX-S.x),L=Math.abs(p.clientY-S.y),I=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(U||p);!I||UPk[I.localName]&&I.hasAttribute("disabled")||!(isNaN(Y)||isNaN(L)||Y<=25&&L<=25||vOR(p))||S.prevent||_._fire$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(I,"tap",{x:p.clientX,y:p.clientY,sourceEvent:p,preventer:U})};
LUN=function(S,p,U,Y,L){var I;L&&(I=typeof U==="object"&&U!==null)&&(Y=S.__dataTemp[p]);Y=Y!==U&&(Y===Y||U===U);I&&Y&&(S.__dataTemp[p]=U);return Y};
Ipu=function(){if(sR&&!eF){if(!MJG){MJG=!0;var S=document.createElement("style");S.textContent="dom-bind,dom-if,dom-repeat{display:none;}";document.head.appendChild(S)}return!0}return!1};
VJG=function(){return dPe};
TbG=function(S,p){dPe=S;Object.setPrototypeOf(S,p.prototype);new p;dPe=null};
WUk=function(S,p){for(var U=0;U<p.length;U++){var Y=p[U];if(!!S!=!!Y.__hideTemplateChildren__)if(Y.nodeType===Node.TEXT_NODE)S?(Y.__polymerTextContent__=Y.textContent,Y.textContent=""):Y.textContent=Y.__polymerTextContent__;else if(Y.localName==="slot")if(S)Y.__polymerReplaced__=document.createComment("hidden-slot"),(0,_.Dc)((0,_.Dc)(Y).parentNode).replaceChild(Y.__polymerReplaced__,Y);else{var L=Y.__polymerReplaced__;L&&(0,_.Dc)((0,_.Dc)(L).parentNode).replaceChild(Y,L)}else Y.style&&(S?(Y.__polymerDisplay__=
Y.style.display,Y.style.display="none"):Y.style.display=Y.__polymerDisplay__);Y.__hideTemplateChildren__=S;Y._showHideChildren&&Y._showHideChildren(S)}};
OJR=function(S){return(S=S.__dataHost)&&S._methodHost||S};
DPw=function(S,p,U){var Y=U.mutableData?khq:gV;uN.mixin&&(Y=uN.mixin(Y));var L=function(){return Y.apply(this,arguments)||this};
_.r(L,Y);L.prototype.__templatizeOptions=U;L.prototype._bindTemplate(S);HJk(L,S,p,U);return L};
yle=function(S,p,U,Y){var L=U.forwardHostProp;if(L&&p.hasHostProps){var I=S.localName=="template",V=p.templatizeTemplateClass;if(!V){if(I){var W=U.mutableData?zjw:QAw;V=function(){return W.apply(this,arguments)||this};
_.r(V,W);V=p.templatizeTemplateClass=V}else{var O=S.constructor;V=function(){return O.apply(this,arguments)||this};
_.r(V,O);V=p.templatizeTemplateClass=V}var D=p.hostProps,z;for(z in D)V.prototype._addPropertyEffect("_host_"+z,V.prototype.PROPERTY_EFFECT_TYPES.PROPAGATE,{fn:n9X(L)}),V.prototype._createNotifyingProperty("_host_"+z);wV&&Y&&Jlu(p,U,Y)}S.__dataProto&&Object.assign(S.__data,S.__dataProto);if(I)TbG(S,V),S.__dataTemp={},S.__dataPending=null,S.__dataOld=null,S._enableProperties();else{Object.setPrototypeOf(S,V.prototype);p=p.hostProps;for(var Q in p)Q="_host_"+Q,Q in S&&(p=S[Q],delete S[Q],S.__data[Q]=
p)}}};
n9X=function(S){return function(p,U,Y){S.call(p.__templatizeOwner,U.substring(6),Y[U])}};
HJk=function(S,p,U,Y){var L=U.hostProps||{},I;for(I in Y.instanceProps){delete L[I];var V=Y.notifyInstanceProp;V&&S.prototype._addPropertyEffect(I,S.prototype.PROPERTY_EFFECT_TYPES.NOTIFY,{fn:KUu(V)})}if(Y.forwardHostProp&&p.__dataHost)for(var W in L)U.hasHostProps||(U.hasHostProps=!0),S.prototype._addPropertyEffect(W,S.prototype.PROPERTY_EFFECT_TYPES.NOTIFY,{fn:bJw()})};
KUu=function(S){return function(p,U,Y){S.call(p.__templatizeOwner,p,U,Y[U])}};
bJw=function(){return function(S,p,U){S.__dataHost._setPendingPropertyOrPath("_host_"+p,U[p],!0,!0)}};
uN=function(S,p,U){if(lN&&!OJR(S))throw Error("Hd");U=U||{};if(S.__templatizeOwner)throw Error("Id");S.__templatizeOwner=p;var Y=(p?p.constructor:gV)._parseTemplate(S),L=Y.templatizeInstanceClass;L||(L=DPw(S,Y,U),Y.templatizeInstanceClass=L);var I=OJR(S);yle(S,Y,U,I);U=function(){return L.apply(this,arguments)||this};
_.r(U,L);U.prototype._methodHost=I;U.prototype.__dataHost=S;U.prototype.__templatizeOwner=p;U.prototype.__hostProps=Y.hostProps;return U};
Jlu=function(S,p,U){U=U.constructor._properties;S=S.propertyEffects;p=p.instanceProps;for(var Y in S)if(!(U[Y]||p&&p[Y]))for(var L=S[Y],I=0;I<L.length;I++){var V=L[I].info.part;if(!V.signature||!V.signature.static){console.warn("Property '"+Y+"' used in template but not declared in 'properties'; attribute will not be observed.");break}}};
jAq=function(S,p){for(var U;p;)if(U=p.__dataHost?p:p.__templatizeInstance)if(U.__dataHost!=S)p=U.__dataHost;else return U;else p=(0,_.Dc)(p).parentNode;return null};
aH=function(S){return S.localName==="slot"};
rlR=function(){for(var S=fZ.prototype,p="cloneNode appendChild insertBefore removeChild replaceChild setAttribute removeAttribute querySelector querySelectorAll attachShadow".split(" "),U={},Y=0;Y<p.length;U={method$jscomp$30:void 0},Y++)U.method$jscomp$30=p[Y],S[U.method$jscomp$30]=function(L){return function(){return this.node[L.method$jscomp$30].apply(this.node,arguments)}}(U)};
GhG=function(S,p){for(var U={},Y=0;Y<p.length;U={name$jscomp$380:void 0},Y++)U.name$jscomp$380=p[Y],Object.defineProperty(S,U.name$jscomp$380,{get:function(L){return function(){return this.node[L.name$jscomp$380]}}(U),
configurable:!0})};
hjr=function(){for(var S=fZ.prototype,p=["textContent","innerHTML","className"],U={},Y=0;Y<p.length;U={name$jscomp$381:void 0},Y++)U.name$jscomp$381=p[Y],Object.defineProperty(S,U.name$jscomp$381,{get:function(L){return function(){return this.node[L.name$jscomp$381]}}(U),
set:function(L){return function(I){this.node[L.name$jscomp$381]=I}}(U),
configurable:!0})};
Rjw=function(){CZ=document.documentElement.getAttribute("dir");CZ=document.documentElement.getAttribute("dir");for(var S=0;S<xu.length;S++){var p=xu[S];p.__autoDirOptOut||p.setAttribute("dir",CZ)}};
ZJG=function(){ER=!0;requestAnimationFrame(function(){ER=!1;FUw(XIk);setTimeout(function(){for(var S=0,p=m$.length;S<p;S++)POr(m$.shift())})})};
FUw=function(S){for(;S.length;)POr(S.shift())};
POr=function(S){var p=S[0],U=S[1];S=S[2];try{U.apply(p,S)}catch(Y){setTimeout(function(){throw Y;})}};
_.sAw=function(S,p,U){ER||ZJG();XIk.push([S,p,U])};
_.oH=function(S,p,U){ER||ZJG();m$.push([S,p,U])};
uNG=function(S,p){p=p===void 0?!1:p;if(!ejX||!g9e||!ejX.handlesDynamicScoping)return null;var U=g9e.ScopingShim;if(!U)return null;var Y=U.scopeForNode(S),L=(0,_.Dc)(S).getRootNode(),I=function(V){if((0,_.Dc)(V).getRootNode()===L){var W=Array.from(ejX.nativeMethods.querySelectorAll.call(V,"*"));W.push(V);for(V=0;V<W.length;V++){var O=W[V];if((0,_.Dc)(O).getRootNode()===L){var D=U.currentScopeForNode(O);D!==Y&&(D!==""&&U.unscopeNode(O,D),U.scopeNode(O,Y))}}}};
I(S);return p?(p=new MutationObserver(function(V){for(var W=0;W<V.length;W++)for(var O=V[W],D=0;D<O.addedNodes.length;D++){var z=O.addedNodes[D];z.nodeType===Node.ELEMENT_NODE&&I(z)}}),p.observe(S,{childList:!0,
subtree:!0}),p):null};
wIw=function(){document.body.removeAttribute("unresolved")};
xPR=function(S){var p=S=S.replace(lpR,"").replace(ape,""),U=new fpe;U.start=0;U.end=p.length;for(var Y=U,L=0,I=p.length;L<I;L++)if(p[L]==="{"){Y.rules||(Y.rules=[]);var V=Y,W=V.rules[V.rules.length-1]||null;Y=new fpe;Y.start=L+1;Y.parent=V;Y.previous=W;V.rules.push(Y)}else p[L]==="}"&&(Y.end=L+1,Y=Y.parent||U);return COw(U,S)};
COw=function(S,p){var U=p.substring(S.start,S.end-1);S.parsedCssText=S.cssText=U.trim();S.parent&&(U=p.substring(S.previous?S.previous.end:S.parent.start,S.start-1),U=_._expandUnicodeEscapes$$module$third_party$javascript$polymer$v2$shadycss$src$css_parse(U),U=U.replace(E9G," "),U=U.substring(U.lastIndexOf(";")+1),U=S.parsedSelector=S.selector=U.trim(),S.atRule=U.indexOf("@")===0,S.atRule?U.indexOf("@media")===0?S.type=4:U.match(mPR)&&(S.type=7,S.keyframesName=S.selector.split(E9G).pop()):U.indexOf("--")===
0?S.type=1E3:S.type=1);if(U=S.rules)for(var Y=0,L=U.length,I=void 0;Y<L&&(I=U[Y]);Y++)COw(I,p);return S};
_._expandUnicodeEscapes$$module$third_party$javascript$polymer$v2$shadycss$src$css_parse=function(S){return S.replace(/\\([0-9a-f]{1,6})\s/gi,function(){for(var p=arguments[1],U=6-p.length;U--;)p="0"+p;return"\\"+p})};
o9w=function(S,p,U){U=U===void 0?"":U;var Y="";if(S.cssText||S.rules){var L=S.rules;if(L&&!_._hasMixinRules$$module$third_party$javascript$polymer$v2$shadycss$src$css_parse(L))for(var I=0,V=L.length,W=void 0;I<V&&(W=L[I]);I++)Y=o9w(W,p,Y);else p?p=S.cssText:(p=S.cssText,p=p.replace(v9R,"").replace($PN,""),p=p.replace(iJu,"").replace(NbG,"")),(Y=p.trim())&&(Y="  "+Y+"\n")}Y&&(S.selector&&(U+=S.selector+" {\n"),U+=Y,S.selector&&(U+="}\n\n"));return U};
_._hasMixinRules$$module$third_party$javascript$polymer$v2$shadycss$src$css_parse=function(S){S=S[0];return!!S&&!!S.selector&&S.selector.indexOf("--")===0};
qEe=function(S){if(S=BbE[S])S._applyShimCurrentVersion=S._applyShimCurrentVersion||0,S._applyShimValidatingVersion=S._applyShimValidatingVersion||0,S._applyShimNextVersion=(S._applyShimNextVersion||0)+1};
Alk=function(S){return S._applyShimCurrentVersion===S._applyShimNextVersion};
clw=function(S){S._applyShimValidatingVersion=S._applyShimNextVersion;S._validating||(S._validating=!0,tJq.then(function(){S._applyShimCurrentVersion=S._applyShimNextVersion;S._validating=!1}))};
pOG=function(S){if(!S)return"";typeof S==="string"&&(S=xPR(S));return o9w(S,Spw)};
U_e=function(S){!S.__cssRules&&S.textContent&&(S.__cssRules=xPR(S.textContent));return S.__cssRules||null};
L6d=function(S,p,U,Y){if(S){var L=!1,I=S.type;if(Y&&I===4){var V=S.selector.match(YpX);V&&(window.matchMedia(V[1]).matches||(L=!0))}I===1?p(S):U&&I===7?U(S):I===1E3&&(L=!0);if((S=S.rules)&&!L)for(L=0,I=S.length,V=void 0;L<I&&(V=S[L]);L++)L6d(V,p,U,Y)}};
MCG=function(S,p){var U=S.indexOf("var(");if(U===-1)return p(S,"","","");a:{var Y=0;var L=U+3;for(var I=S.length;L<I;L++)if(S[L]==="(")Y++;else if(S[L]===")"&&--Y===0)break a;L=-1}Y=S.substring(U+4,L);U=S.substring(0,U);S=MCG(S.substring(L+1),p);I=Y.indexOf(",");if(I===-1)return p(U,Y.trim(),"",S);L=Y.substring(0,I).trim();Y=Y.substring(I+1).trim();return p(U,L,Y,S)};
IaR=function(S){if(vr!==void 0)return vr;if(S.__cssBuild===void 0){var p=S.getAttribute("css-build");if(p)S.__cssBuild=p;else{a:{p=S.localName==="template"?S.content.firstChild:S.firstChild;if(p instanceof Comment&&(p=p.textContent.trim().split(":"),p[0]==="css-build")){p=p[1];break a}p=""}if(p!==""){var U=S.localName==="template"?S.content.firstChild:S.firstChild;U.parentNode.removeChild(U)}S.__cssBuild=p}}return S.__cssBuild||""};
VCR=function(S,p,U,Y){for(var L=p._noAccessors,I=Object.getOwnPropertyNames(p),V=0;V<I.length;V++){var W=I[V];if(!(W in Y))if(L)S[W]=p[W];else{var O=Object.getOwnPropertyDescriptor(p,W);O&&(O.configurable=!0,Object.defineProperty(S,W,O))}}for(var D in d_d)p[D]&&(U[D]=U[D]||[],U[D].push(p[D]))};
TIE=function(S,p,U){p=p||[];for(var Y=S.length-1;Y>=0;Y--){var L=S[Y];L?Array.isArray(L)?TIE(L,p):p.indexOf(L)<0&&(!U||U.indexOf(L)<0)&&p.unshift(L):console.warn("behavior is null, check for missing or 404 import")}return p};
W6r=function(S,p){for(var U in p){var Y=S[U],L=p[U];S[U]=!("value"in L)&&Y&&"value"in Y?Object.assign({value:Y.value},L):L}};
H4r=function(S,p,U){var Y={},L=function(){return p.apply(this,arguments)||this};
_.r(L,p);L._finalizeClass=function(){if(this.hasOwnProperty("generatedFrom")){if(V)for(var O=0,D;O<V.length;O++)D=V[O],D.properties&&this.createProperties(D.properties),D.observers&&this.createObservers(D.observers,D.properties);S.properties&&this.createProperties(S.properties);S.observers&&this.createObservers(S.observers,S.properties);this._prepareTemplate()}else p._finalizeClass.call(this)};
L.prototype.created=function(){p.prototype.created.call(this);var O=Y.created;if(O)for(var D=0;D<O.length;D++)O[D].call(this)};
L.prototype._registered=function(){var O=L.prototype;if(!O.hasOwnProperty("__hasRegisterFinished")){O.__hasRegisterFinished=!0;p.prototype._registered.call(this);sR&&W(O);O=Object.getPrototypeOf(this);var D=Y.beforeRegister;if(D)for(var z=0;z<D.length;z++)D[z].call(O);if(D=Y.registered)for(z=0;z<D.length;z++)D[z].call(O)}};
L.prototype._applyListeners=function(){p.prototype._applyListeners.call(this);var O=Y.listeners;if(O)for(var D=0;D<O.length;D++){var z=O[D];if(z)for(var Q in z)this._addMethodEventListenerToNode(this,Q,z[Q])}};
L.prototype._ensureAttributes=function(){var O=Y.hostAttributes;if(O)for(var D=O.length-1;D>=0;D--){var z=O[D],Q;for(Q in z)this._ensureAttribute(Q,z[Q])}p.prototype._ensureAttributes.call(this)};
L.prototype.ready=function(){p.prototype.ready.call(this);var O=Y.ready;if(O)for(var D=0;D<O.length;D++)O[D].call(this)};
L.prototype.attached=function(){p.prototype.attached.call(this);var O=Y.attached;if(O)for(var D=0;D<O.length;D++)O[D].call(this)};
L.prototype.detached=function(){p.prototype.detached.call(this);var O=Y.detached;if(O)for(var D=0;D<O.length;D++)O[D].call(this)};
L.prototype.attributeChanged=function(O,D,z){p.prototype.attributeChanged.call(this);var Q=Y.attributeChanged;if(Q)for(var J=0;J<Q.length;J++)Q[J].call(this,O,D,z)};
_.$u.Object.defineProperties(L,{properties:{configurable:!0,enumerable:!0,get:function(){var O={};if(V)for(var D=0;D<V.length;D++)W6r(O,V[D].properties);W6r(O,S.properties);return O}},
observers:{configurable:!0,enumerable:!0,get:function(){var O=[];if(V)for(var D=0,z;D<V.length;D++)z=V[D],z.observers&&(O=O.concat(z.observers));S.observers&&(O=O.concat(S.observers));return O}}});
if(U){Array.isArray(U)||(U=[U]);var I=p.prototype.behaviors;var V=TIE(U,null,I);L.prototype.behaviors=I?I.concat(U):V}var W=function(O){if(V)for(var D=V,z=0;z<D.length;z++)VCR(O,D[z],Y,O4u);VCR(O,S,Y,kUe)};
sR||W(L.prototype);L.generatedFrom=S;return L};
n1k=function(S){var p=typeof S!=="string"?S:{is:S,notifyObserversOnUndefined:!0};p.fastInit===void 0&&(p.fastInit=!0);return function(U){if(!p.disableInheritanceCheck&&Object.getPrototypeOf(U.prototype).constructor!==_.iN)throw Error("Md");var Y=U.prototype;Y.is=p.is;bsr(Y,"created",function(){this.hostElement=this;this.polymerController=this});
D_X(Y,U,p.fastInit);p.notifyObserversOnUndefined&&(Y._overrideLegacyUndefined=!0);if(zOX)for(var L=_.d(Object.getOwnPropertyNames(Y)),I=L.next();!I.done;I=L.next()){I=I.value;var V=Object.getOwnPropertyDescriptor(Y,I);V.enumerable===!1&&(V.enumerable=!0,Object.defineProperty(Y,I,V))}if("template"in U)var W=function(){return U.template};
else p.template!==void 0&&(W=p.template);if(W!==void 0){var O;Object.defineProperty(Y,"_template",{get:function(){O===void 0&&(O=W());return O},
set:function(D){O=D},
configurable:!0,enumerable:!0})}Polymer(Y);U[Qpw]=Y}};
JxG=function(S){S=S===void 0?{}:S;S.fastInit===void 0&&(S.fastInit=!0);return function(p){if(!S.disableInheritanceCheck&&Object.getPrototypeOf(p.prototype).constructor!==N0)throw Error("Nd");D_X(p.prototype,p,S.fastInit)}};
D_X=function(S,p,U){U=U===void 0?!1:U;yxE(p);U?bsr(S,"created",function(){this.disableEnforceFastDefaultValuesCheck||K6E(p,this)}):bsr(S,"ready",function(){for(var Y={},L=_.d(jyG(this.behaviors)),I=L.next();!I.done;I=L.next())I=I.value,I.properties&&Object.assign(Y,b4r(this,I.properties));
Object.assign(Y,b4r(this,this.properties));K6E(p,this);L=_.d(Object.keys(Y));for(I=L.next();!I.done;I=L.next())I=I.value,this[I]=Y[I]})};
K6E=function(S,p){if(zOX){S=new S;for(var U=_.d(Object.getOwnPropertyNames(S)),Y=U.next();!Y.done;Y=U.next())Y=Y.value,p[Y]=S[Y];for(U=p;U&&U!==Object.prototype;U=Object.getPrototypeOf(U)){Y=_.d(Object.getOwnPropertyNames(U));for(var L=Y.next();!L.done;L=Y.next())L=L.value,S.hasOwnProperty(L)||Object.defineProperty(S,L,jpe(p,L))}}else S.apply(p)};
jpe=function(S,p){return{get:function(){var U=S[p];return U instanceof Function?U.bind(S):U},
set:function(U){S[p]=U}}};
b4r=function(S,p){if(!p)return{};for(var U={},Y=_.d(Object.keys(p)),L=Y.next();!L.done;L=Y.next())if(L=L.value,!p[L].readOnly){var I=S[L];I!==void 0&&(U[L]=I)}return U};
yxE=function(S){var p=new S;S=S.prototype.properties||{};for(var U=_.d(Object.keys(S)),Y=U.next();!Y.done;Y=U.next())if(Y=Y.value,p.hasOwnProperty(Y)){var L=S[Y];typeof L==="function"&&(S[Y]=L={type:L});p[Y]!=null&&L.type===Object&&(L.type=rxR(p[Y].constructor))}};
rxR=function(S){for(var p=_.d(GUw),U=p.next();!U.done;U=p.next())if(U=U.value,S===U)return U;return Object};
hOr=function(S){return function(p,U){p.behaviors=p.behaviors||[];p.behaviors.push(S||(window.Reflect!==void 0&&window.Reflect.getMetadata!==void 0?Reflect.getMetadata("design:type",p,U).prototype:void 0));Object.defineProperty(p,U,{get:function(){return this},
enumerable:!0,configurable:!0})}};
ROw=function(S){S=S===void 0?{}:S;return function(p,U){p.properties=p.properties||{};S.type||(window.Reflect!==void 0&&window.Reflect.getMetadata!==void 0?S.type=rxR(Reflect.getMetadata("design:type",p,U)):S.type=String);var Y=S,L=p.properties[U];p.properties[U]=L?Object.assign({},L,Y):Y}};
F6E=function(S){return function(p,U){p.listeners=p.listeners||{};p.listeners[S]=U}};
XOG=function(){var S=_.jO.apply(0,arguments);if(S.length===0)throw Error("Od");return function(p,U){p.observers=p.observers||[];p.observers.push(U+"("+S.join(",")+")")}};
PGe=function(){var S=_.jO.apply(0,arguments);return function(p,U,Y){var L=Object.getOwnPropertyDescriptor(p,U).get,I="__compute__"+U;Object.defineProperty(p,I,{value:L,enumerable:!0});p.properties=p.properties||{};L=p.properties[U];L||(L={},p.properties[U]=L);L.computed=I+"("+S.join(",")+")";Y.get=void 0}};
_.Br=function(S,p,U){_.hY.call(this);this.JSC$9215_id_=null;this.usingListeners_=!1;this.JSC$9215_listener_=S;this.handler_=U;this.JSC$9215_win_=p||window;this.callback_=(0,_.RW)(this.JSC$9217_doAction_,this)};
q0=function(S){this.range_=S};
Ar=function(S){this.range_=S};
Sm=function(S,p,U){_.hY.call(this);this.constrainScroll_=!1;this.horizontalScrolling_=!0;this.containerNode_=S;this.scrollTimer_=new _.tr(50);this.JSC$9294_eventHandler_=new _.cr(this);this.scrollDelta_=new _.Xp;this.containerIsActuallyContent_=S.tagName==="BODY"||S.tagName==="HTML";this.containerBounds_=Z4e(S);this.containerIsActuallyContent_&&(S=_.kE(),this.containerBounds_.height=S.height,this.containerBounds_.width=S.width);this.margin_=p||0;if(p){if(p=this.containerBounds_.clone(),S=this.margin_){var Y=
Math.min(S,p.height*.25);p.top+=Y;p.height-=2*Y;S=Math.min(S,p.width*.25);p.left+=S;p.width-=2*S}}else p=this.containerBounds_;this.scrollBounds_=p;U||this.JSC$9294_eventHandler_.listen(_.ZD(this.containerNode_),"mousemove",this.JSC$9296_onMouseMove);this.JSC$9294_eventHandler_.listen(this.scrollTimer_,"tick",this.JSC$9296_onTick_)};
_.p9=function(S){this.mechanism=S};
U$=function(S,p){this.JSC$9392_key_=S;this.JSC$9392_value_=p};
eON=function(S){if(S>=55296&&S<=57343||S>1114111)return"\ufffd";S in spw&&(S=spw[S]);var p="";S>65535&&(S-=65536,p+=String.fromCharCode(S>>>10&1023|55296),S=56320|S&1023);return p+=String.fromCharCode(S)};
g1w=function(S,p){return S<p?1:-1};
wOk=function(){return function(S){return S.charAt(1)==="#"?S.charAt(2)==="X"||S.charAt(2)==="x"?eON(parseInt(S.substr(3),16)):eON(parseInt(S.substr(2),10)):u7r[S.slice(1,-1)]}};
fae=function(S){return S.slice(1,S.length-1).trim().replace(laq,function(p){return aae[p]||" "})};
Yn=function(S){return S===32||S===9};
L9=function(S,p){return p<S.length?S.charCodeAt(p):-1};
CGG=function(S){for(;S;){if(S._lastLineBlank)return!0;var p=S.type;if(p==="list"||p==="item")S=S._lastChild;else break}return!1};
MU=function(S){if(x_u.test(S)){var p=1,U=0,Y=0;for(S[U]=="|"&&U++;U<S.length;){switch(S[U]){case "|":Y=1;break;case " ":break;case "\t":break;default:Y&&(Y=0,p++)}U++}return E1w.test(S)?-p:p}return 0};
m_e=function(S){return S=="table"||S=="row"||S=="cell"};
o1w=function(){return new I9("document",[[1,1],[0,0]])};
v1q=function(){};
dn=function(){var S={safe:!1};S=S||{};S.softbreak=S.softbreak||"\n";this.disableTags=0;this.lastOut="\n";this.options=S};
qpu=function(S,p){var U="";if(S)if(S=S.toLowerCase(),S===" "||$_d.test(S))U="space";else if(i4w.test(S))U="esc";else if(S.length==1){if(!p||NIw.test(S))U=S}else U=BIw.test(S)?S.replace("arrow",""):S=="multiply"?"*":S;return U};
SxG=function(S,p){var U=S.hasModifiers;if(p.key)U=qpu(p.key,U);else if(p.detail&&p.detail.key)U=qpu(p.detail.key,U);else{U=p.keyIdentifier;var Y="";U&&(U in Axw?Y=Axw[U]:tCE.test(U)?(U=parseInt(U.replace("U+","0x"),16),Y=String.fromCharCode(U).toLowerCase()):Y=U.toLowerCase());(U=Y)||(U=p.keyCode,Y="",Number(U)&&(U>=65&&U<=90?Y=String.fromCharCode(32+U):U>=112&&U<=123?Y="f"+(U-112+1):U>=48&&U<=57?Y=String(U-48):U>=96&&U<=105?Y=String(U-96):Y=cxd[U]),U=Y);U=U||""}return U===S.key&&(!S.hasModifiers||
!!p.shiftKey===!!S.shiftKey&&!!p.ctrlKey===!!S.ctrlKey&&!!p.altKey===!!S.altKey&&!!p.metaKey===!!S.metaKey)};
UOe=function(S){return S.length===1?{combo:S,key:S,event:"keydown"}:S.split("+").reduce(function(p,U){var Y=U.split(":");U=Y[0];Y=Y[1];U in pgu?(p[pgu[U]]=!0,p.hasModifiers=!0):(p.key=U,p.event=Y||"keydown");return p},{combo:S.split(":").shift()})};
YxN=function(S){return S.trim().split(" ").map(function(p){return UOe(p)})};
L5q=function(S,p){if(S&&S.fn){var U=S.fn;S.fn=function(){try{U.apply(this,arguments)}catch(Y){if(Y instanceof VI)console.warn("Argument '"+Y.arg+"'"+(p?" for method '"+p+"'":"")+" was undefined. Ensure it has a default value, or else ensure the method handles the argument being undefined.");else throw Y;}}}return S};
MRr=function(){var S=_.jO.apply(0,arguments);return S.length===0?function(p){return p}:S.length===1?S[0]:S.reduce(function(p,U){return function(){return p(U.apply(null,_.jo(_.jO.apply(0,arguments))))}})};
INq=function(){var S=_.jO.apply(0,arguments);return function(p){return function(U,Y){U=p(U,Y);var L=function(){throw Error("ye");},I={getState:U.getState,
dispatch:function(V){return L.apply(null,[V].concat(_.jo(_.jO.apply(1,arguments))))}};
Y=S.map(function(V){return V(I)});
L=MRr.apply(null,_.jo(Y))(U.dispatch);return Object.assign({},U,{dispatch:L})}}};
T1k=function(S){Object.keys(S).forEach(function(p){var U=S[p];if(typeof U(void 0,{type:dOw})==="undefined")throw Error("ze`"+p);if(typeof U(void 0,{type:"@@redux/PROBE_UNKNOWN_ACTION"+VRw()})==="undefined")throw Error("Ae`"+p+"`"+dOw);})};
T0=function(S){for(var p=Object.keys(S),U={},Y=0;Y<p.length;Y++){var L=p[Y];typeof S[L]==="function"&&(U[L]=S[L])}var I=Object.keys(U);try{T1k(U)}catch(W){var V=W}return function(W,O){W=W===void 0?{}:W;if(V)throw V;for(var D=!1,z={},Q=0;Q<I.length;Q++){var J=I[Q],K=W[J],G=(0,U[J])(K,O);if(typeof G==="undefined")throw W=O&&O.type,Error("Be`"+(W?'"'+String(W)+'"':"(unknown type)")+"`"+J);z[J]=G;D=D||G!==K}return(D=D||I.length!==Object.keys(W).length)?z:W}};
W5w=function(S,p,U){function Y(){if(z)throw Error("Ce");return W}
function L(K){if(typeof K!=="function")throw Error("De`"+typeof K);if(z)throw Error("Ee");var G=!0;D===O&&(D=O.slice());D.push(K);return function(){if(G){if(z)throw Error("Fe");G=!1;D===O&&(D=O.slice());var X=D.indexOf(K);D.splice(X,1);O=null}}}
function I(K){if(typeof K!=="object"||K===null)var G=!1;else{for(G=K;Object.getPrototypeOf(G)!==null;)G=Object.getPrototypeOf(G);G=Object.getPrototypeOf(K)===G}if(!G)throw Error("Ge`"+typeof K);if(typeof K.type==="undefined")throw Error("He");if(z)throw Error("Ie");try{z=!0,W=V(W,K)}finally{z=!1}G=O=D;for(var X=0;X<G.length;X++)(0,G[X])();return K}
if(typeof p==="function"&&typeof U==="function"||typeof U==="function"&&typeof arguments[3]==="function")throw Error("Je");typeof p==="function"&&typeof U==="undefined"&&(U=p,p=void 0);if(typeof U!=="undefined"){if(typeof U!=="function")throw Error("Ke`"+typeof U);return U(W5w)(S,p)}if(typeof S!=="function")throw Error("Le`"+typeof S);var V=S,W=p,O=[],D=O,z=!1;I({type:dOw});var Q={},J=(Q.dispatch=I,Q.subscribe=L,Q.getState=Y,Q.replaceReducer=function(K){if(typeof K!=="function")throw Error("Me`"+
typeof K);V=K;I({type:OTG});return J},Q[kRq]=function(){var K={};
return K.subscribe=function(G){function X(){G.next&&G.next(Y())}
if(typeof G!=="object"||G===null)throw new TypeError("Ne`"+typeof G);X();return{unsubscribe:L(X)}},K[kRq]=function(){return this},K},Q);
return J};
HTk=function(S){function p(){L&&(L=!1,S());I&&Y()}
function U(){requestAnimationFrame(p)}
function Y(){var W=Date.now();if(L){if(W-V<2)return;I=!0}else L=!0,I=!1,setTimeout(U,20);V=W}
var L=!1,I=!1,V=0;return Y};
Wv=function(S){return typeof S==="number"?S:parseFloat(S)||0};
DOG=function(S){return _.jO.apply(1,arguments).reduce(function(p,U){return p+Wv(S["border-"+U+"-width"])},0)};
_.h=function(S,p){p=Xq(Fq(p));S.innerHTML=p};
nCX=function(S){var p=zyw;p||(p=Qae(),p=zyw=_.h9.transpose(p));p=p[S];return typeof p==="string"?p:_.O$(S)};
Jku=function(S){S=String(S).toLowerCase();var p=Qae()[S];return typeof p==="string"?p:_.kn(S)};
ykN=function(S){S=S.toLowerCase();S=Qae()[S];return typeof S==="string"?S:null};
Qae=function(){if(!K5w){for(var S=Object.assign({},bTX),p=_.d(jaw),U=p.next();!U.done;U=p.next())U=U.value,S[U.toLowerCase()]=U;K5w=S}return K5w};
hye=function(S,p){var U=window.customElements;return U&&U.get(S)||rkw[S]===!0?2:p.name==="HTMLUnknownElement"?1:p.name==="HTMLElement"&&GRu.test(S)?3:0};
XgE=function(S,p){switch(p){case "innerHTML":return Rye(S)===1?2:null;case "textContent":return S=Rye(S),S===1||S===6?1:null;default:var U,Y;return(Y=(U=F5e[S.localName])==null?void 0:U[p])!=null?Y:null}};
Rye=function(S){var p=S.localName,U=hye(p,S.constructor);switch(U){case 0:case 1:return PYw(p,S);case 3:case 2:return 1;default:_.WP(U,"got an unknown element classification")}};
PYw=function(S,p){var U=Object.hasOwnProperty.call(ZTw,S)?ZTw[S]:null;return U!==null?U:Object.hasOwnProperty.call(sae,S)&&p instanceof SVGElement?sae[S]:null};
eyw=function(S,p){return p};
uUG=function(S){return(S=S.split(gCe,2))?{url:S[0],metadata:S[1]}:null};
lNe=function(S){var p=String(S.url).replace(wgd,encodeURIComponent);if(S=S.metadata){wgd.lastIndex=0;if(wgd.test(S))return null;p+=" "+S}return p};
xOe=function(S){function p(D){var z=D.localName;if(!D.getAttribute("is")&&hye(z,D.constructor)===2){var Q;return(Q=O)!=null?Q:O=document.createElement("polyresinuncustomized")}(D=W[z])||(D=W[z]=document.createElement(z));return D}
var U=S.reportHandler||void 0,Y=S.safeTypesBridge||aNk,L=/^$/;if(S=S.allowedIdentifierPrefixes){S=_.d(S);for(var I=S.next();!I.done;I=S.next())L=new RegExp(L.source+"|^"+_.fNR(I.value))}U&&U(!1,"initResin",null);var V=CYe(L,Y,U),W={},O=null;return function(D,z,Q){var J=D.nodeType;if(J!==Node.ELEMENT_NODE){if(J===Node.TEXT_NODE){z=D.parentElement;Q=!z;if(z&&z.nodeType===Node.ELEMENT_NODE){J=z.localName;var K=hye(J,z.constructor);switch(K){case 0:case 1:z=PYw(J,z);Q=z===1||z===6;break;case 3:case 2:Q=
!0;break;default:_.WP(K,"got an unknown element classification")}}if(Q)return function(l){return""+Y(l,"STRING",l)}}return function(l){if(!l&&l!==document.all)return l;
U&&U(!0,"Failed to sanitize "+(D.parentElement&&D.parentElement.nodeName)+" #text node to value "+l,D.parentElement);return Hv}}var G=D.localName;
J=p(D);var X=null;switch(Q){case "attribute":if(Jku(z)in J)break;return function(l){return l};
case "property":if(z in J){X=XgE(J,z);break}if((K=ykN(z))&&K in J)break;return function(l){return l};
default:_.WP(Q,"got an unknown resin type, expected either 'property' or 'attribute'")}var Z=Q==="attribute"?z.toLowerCase():nCX(z);X||(X=Ofr(G,Z,function(l){var a=D.getAttribute(l);return!a||/[\[\{]/.test(l)?null:a}));
return function(l){var a=DL,N=null;if(!l&&l!==document.all)return l;if(X!=null){var m=V[X],A=m.safeType;N=m.safeReplacement;A&&(a=Y(l,A,DL));a===DL&&(m.filterString?(a=String(Y(l,"STRING",l)),a=m.filterString(G,Z,a)):m.filterRaw&&(a=m.filterRaw(G,Z,l,D)),a===N&&(a=DL))}a===DL&&(a=N||Hv,U&&U(!0,"Failed to sanitize attribute of <"+G+">: <"+G+" "+Z+'="'+l+'">',D));return a}}};
CYe=function(S,p,U){return[,{filterRaw:function(Y,L,I){return I},
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:ECe,safeType:"URL"},{filterRaw:void 0,filterString:void 0,safeReplacement:ECe,safeType:"RESOURCE_URL"},{filterRaw:void 0,filterString:void 0,safeReplacement:Hv,safeType:"STYLE"},,{filterRaw:void 0,filterString:void 0,safeReplacement:mOr,safeType:"JAVASCRIPT"},{filterRaw:void 0,filterString:function(Y,L,I){I=
String(I).toLowerCase();return Dzw(Y,L,I)?I:Hv},
safeReplacement:Hv,safeType:void 0},,{filterRaw:void 0,filterString:function(Y,L,I){return S.test(I)?I:Hv},
safeReplacement:Hv,safeType:"CONSTANT"},{filterRaw:function(Y,L,I,V){if(typeof I==="string")var W=(W=I.match(oCR))?W.map(uUG).filter(Boolean):[];else if(Array.isArray(I))W=I;else return ECe;var O=W;W=[];var D=[],z={};if(Array.isArray(O))for(var Q=0,J=O.length;Q<J;++Q){var K=O[Q],G=K&&K.url;if(G){var X=p(G,"URL",z);if(X){var Z=X!==z;(Z?W:D).push({url:Z?X:G,metadata:K.metadata})}}}else D.push(O);O=D.length?JSON.stringify(D):null;D=DL;if(W.length){if(!Array.isArray(W))throw Error();D=W.map(lNe).filter(Boolean).join(" , ")||
DL}O&&U&&U(!0,"Failed to sanitize attribute value of <"+Y+">: <"+Y+" "+L+'="'+I+'">: '+O,V);return D===DL?ECe:D},
filterString:void 0,safeReplacement:void 0,safeType:void 0}]};
vCq=function(S){var p=xOe(S);return function(U,Y,L,I){return I||I===document.all?p(U,Y,L)(I):I}};
z0=function(S,p){function U(){function L(W,O,D){for(O=Reflect.getMetadata("parameters",W)||[];O.length<=D;)O.push(null);O[D]=O[D]||[];O[D].push(V);Reflect.defineMetadata(O,W);return W}
var I=_.jO.apply(0,arguments);if(this instanceof U)return Y.apply(this,I),this;var V=new (Function.prototype.bind.apply(U,[null].concat(_.jo(I))));L.annotation=V;return L}
var Y=$Ok(p);U.prototype.toString=function(){return"@"+S};
return U.annotationCls=U};
$Ok=function(S){return function(){var p=_.jO.apply(0,arguments),U=this;S.forEach(function(Y,L){L=p[L];if(Array.isArray(Y))U[Y[0]]=L&&L!==void 0?L:Y[1];else for(var I in Y)U[I]=L&&L[I]!==void 0?L[I]:Y[I]})}};
iTe=function(S){return S!==void 0&&S!==null};
n9=function(S){if(typeof S==="string")return S;if(S===void 0||S===null)return""+S;if(S.overriddenName)return S.overriddenName;if(S.name)return S.name;S=S.toString();var p=S.indexOf("\n");return p===-1?S:S.substring(0,p)};
N1G=function(S){S.__forward_ref__=N1G;S.toString=function(){return n9(this())};
return S};
J8=function(S){return typeof S==="function"&&S.hasOwnProperty("__forward_ref__")&&S.__forward_ref__===N1G?S():S};
B1R=function(S){return S?S.map(function(p){return new (Function.prototype.bind.apply(p.type.annotationCls,[null].concat(_.jo(p.args?p.args:[]))))}):[]};
qxE=function(S){for(var p=[],U=0;U<S.length;++U){if(p.indexOf(S[U])>-1){p.push(S[U]);break}p.push(S[U])}return p};
Akd=function(S){return S.length>1?" ("+qxE(S.slice().reverse()).map(function(p){return n9(p.token)}).join(" -> ")+")":""};
ckw=function(S,p,U,Y){if(Y){var L=Error("Ue``"+(Y instanceof Error?Y.message:Y));L.ngOriginalError=Y}else L=Error();L.addKey=tRG;L.keys=[p];L.injectors=[S];L.constructResolvingMessage=U;L.message=L.constructResolvingMessage();L.ngOriginalError=Y;return L};
tRG=function(S,p){this.injectors.push(S);this.keys.push(p);this.message=this.constructResolvingMessage()};
SCw=function(S,p){return ckw(S,p,function(){return"No provider for "+n9(this.keys[0].token)+"!"+Akd(this.keys)})};
pDw=function(S,p){return ckw(S,p,function(){return"Cannot instantiate cyclic dependency!"+Akd(this.keys)})};
UAE=function(S,p,U){return ckw(S,U,function(){var Y=n9(this.keys[0].token);return this.ngOriginalError.message+": Error during instantiation of "+Y+"!"+Akd(this.keys)+"."},p)};
YCX=function(S,p){for(var U=[],Y=0,L=p.length;Y<L;Y++){var I=p[Y];I&&I.length!=0?U.push(I.map(n9).join(" ")):U.push("?")}return Error("Ye`"+n9(S)+"`"+U.join(", ")+"`"+n9(S))};
WCw=function(S){var p=void 0,U=void 0;if(S&&S.useClass!==void 0){p=S.useClass;var Y=J8(S.useClass);var L=LCX.factory(Y);Y=Mcu(Y)}else S&&S.useExisting!==void 0?(L=function(I){return I},Y=[IxR(yI.get(J8(S.useExisting)))]):S&&S.useFactory!==void 0?(L=S.useFactory,Y=dAE(S.useFactory,S.deps)):(U=S.useValue,L=function(){return S.useValue},Y=Vcw);
return new TXd(L,Y,p,U)};
kXk=function(S){return new O0e(yI.get(J8(S.provide)),[WCw(S)],S.multi)};
DAw=function(S){S=H0e(S,[]).map(kXk);for(var p=new Map,U=0;U<S.length;U++){var Y=S[U],L=p.get(Y.key.id);if(L){if(Y.multiProvider!==L.multiProvider)throw Error("$e`"+L+"`"+Y);if(Y.multiProvider)for(var I=0;I<Y.resolvedFactories.length;I++)L.resolvedFactories.push(Y.resolvedFactories[I]);else p.set(Y.key.id,Y)}else L=void 0,Y.multiProvider?L=new O0e(Y.key,Y.resolvedFactories.slice(),Y.multiProvider):L=Y,p.set(Y.key.id,L)}return Array.from(p.values())};
H0e=function(S,p){S.forEach(function(U){if(U instanceof zXE)p.push({provide:U,useClass:U});else if(U&&typeof U=="object"&&U.provide!==void 0)p.push(U);else if(U instanceof Array)H0e(U,p);else throw Error("Xe`"+U);});
return p};
dAE=function(S,p){if(p){var U=p.map(function(Y){return[Y]});
return p.map(function(Y){return Q3w(S,Y,U)})}return Mcu(S)};
Mcu=function(S){var p=LCX.parameters(S);if(!p)return[];if(p.some(function(U){return U==null}))throw YCX(S,p);
return p.map(function(U){return Q3w(S,U,p)})};
Q3w=function(S,p,U){var Y=null,L=!1;if(!Array.isArray(p))return p instanceof nZE?JHN(p.token,L,null):JHN(p,L,null);for(var I=null,V=0;V<p.length;++V){var W=p[V];if(W instanceof zXE)Y=W;else if(W instanceof nZE)Y=W.token;else if(W instanceof yHN)L=!0;else if(W instanceof KCw||W instanceof b0e)I=W}Y=J8(Y);if(Y!=null)return JHN(Y,L,I);throw YCX(S,U);};
JHN=function(S,p,U){return new j3N(yI.get(J8(S)),p,U)};
rHe=function(S,p){for(var U=Array(S.providers.length),Y=0;Y<S.providers.length;++Y){var L=Y;if(Y<0||Y>=S.providers.length)throw Error("Ze`"+Y);U[L]=p(S.providers[Y])}return U};
GXw=function(S){return typeof S==="function"&&LCX.parameters(S).every(function(p){return!!p})};
FCG=function(S){var p=hXX;RXN.get(S)||RXN.set(S,new p);return RXN.get(S)};
_._hasCachedLockedElement$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(S){return _._lockedElementCache$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager.indexOf(S)>-1};
_._hasCachedUnlockedElement$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(S){return _._unlockedElementCache$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager.indexOf(S)>-1};
_._composedTreeContains$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(S,p){var U,Y;if(S.contains(p))return!0;S=_.K9(S).querySelectorAll("content,slot");for(U=0;U<S.length;++U){var L=_.K9(S[U]).getDistributedNodes();for(Y=0;Y<L.length;++Y)if(L[Y].nodeType===Node.ELEMENT_NODE&&_._composedTreeContains$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager(L[Y],p))return!0}return!1};
_._scrollInteractionHandler$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(S){S.cancelable&&_._shouldPreventScrolling$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager(S)&&S.preventDefault();S.targetTouches&&(S=S.targetTouches[0],XDG=S.pageX,P1e=S.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 S=0,p=bL.length;S<p;S++)document.addEventListener(bL[S],_._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 S=0,p=bL.length;S<p;S++)document.removeEventListener(bL[S],_._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(S){var p=_.K9(S).rootTarget;S.type!=="touchmove"&&Z0X!==p&&(Z0X=p,s3r=_._getScrollableNodes$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager(_.K9(S).path));if(!s3r.length)return!0;if(S.type==="touchstart")return!1;S=_._getScrollInfo$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager(S);
return!_._getScrollingNode$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager(s3r,S.deltaX,S.deltaY)};
_._getScrollableNodes$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(S){for(var p=[],U=S.indexOf(eXk),Y=0;Y<=U;Y++)if(S[Y].nodeType===Node.ELEMENT_NODE){var L=S[Y],I=L.style;I.overflow!=="scroll"&&I.overflow!=="auto"&&(I=window.getComputedStyle(L));I.overflow!=="scroll"&&I.overflow!=="auto"||p.push(L)}return p};
_._getScrollingNode$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(S,p,U){if(p||U)for(var Y=Math.abs(U)>=Math.abs(p),L=0;L<S.length;L++){var I=S[L];if(Y?U<0?I.scrollTop>0:I.scrollTop<I.scrollHeight-I.clientHeight:p<0?I.scrollLeft>0:I.scrollLeft<I.scrollWidth-I.clientWidth)return I}};
_._getScrollInfo$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(S){var p={deltaX:S.deltaX,deltaY:S.deltaY};"deltaX"in S||("wheelDeltaX"in S&&"wheelDeltaY"in S?(p.deltaX=-S.wheelDeltaX,p.deltaY=-S.wheelDeltaY):"wheelDelta"in S?(p.deltaX=0,p.deltaY=-S.wheelDelta):"axis"in S?(p.deltaX=S.axis===1?S.detail:0,p.deltaY=S.axis===2?S.detail:0):S.targetTouches&&(S=S.targetTouches[0],p.deltaX=XDG-S.pageX,p.deltaY=P1e-S.pageY));return p};
gZN=function(S){this.element=S;this.width=this.boundingRect.width;this.height=this.boundingRect.height;this.size=Math.max(this.width,this.height)};
wDG=function(S){this.element=S;this.color=window.getComputedStyle(S).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");_.K9(this.waveContainer).appendChild(this.wave);uXG(this)};
jm=function(S,p){for(var U in S)if(U.toLowerCase()===p.toLowerCase())return S[U]};
lxw=function(S,p){for(var U in S)if(U.toLowerCase()===p.toLowerCase()){delete S[U];break}};
fxE=function(S){S=_.h9.clone(S);for(var p=0;p<axw.length;++p){var U=axw[p],Y=jm(S,U);Y&&(S["X-Goog-Upload-Header-"+U]=Y,lxw(S,U))}return S};
C1k=function(S){S=_.h9.clone(S);lxw(S,"X-Goog-Upload-Status")};
EZw=function(S){return xAe.some(function(p){return p.test(S)})};
$Ar=function(S,p){var U;var Y=(U=S.formContent)==null?void 0:U.locale;U=Y==null?void 0:Y.split("-")[0];Y=Y&&mAq.includes(Y)?Y:U&&mAq.includes(U)?U:void 0;Y=(Y!=null?Y:"en").replaceAll("-","_").toLowerCase();var L;S=((L=S.initializationData)==null?0:L.useNightlyRelease)?"nightly":"live";var I;return(p==null?0:(I=p.getEnableAlohaBinarySplit)==null?0:I.call(p))?_.UF(oZE,S):_.UF(vZd,S,Y)};
NXE=function(S,p,U,Y){if(i0G)return i0G;var L=$Ar(S,Y);return i0G=p.feedbackV2GlobalObject?Promise.resolve(p.feedbackV2GlobalObject):new Promise(function(I,V){var W=_.JY("SCRIPT");_.fh(W,L);W.onload=function(){p.feedbackV2GlobalObject?I(p.feedbackV2GlobalObject):V(Error("cf"))};
W.onerror=function(){V(Error("df`"+L.toString()))};
U.body.appendChild(W)})};
qCN=function(S,p,U,Y){if(BXr)return BXr;var L=$Ar(S,Y);return BXr=p.feedbackV2GlobalObject?Promise.resolve(p.feedbackV2GlobalObject):new Promise(function(I,V){var W=_.JY("SCRIPT");_.fh(W,L);W.onload=function(){p.feedbackV2GlobalObject?I(p.feedbackV2GlobalObject):V(Error("cf"))};
W.onerror=function(){V(Error("df`"+L.toString()))};
U.body.appendChild(W)})};
AHq=function(S,p,U,Y,L){L=L===void 0?!0:L;var I,V,W,O,D;return _.T(function(z){switch(z.nextAddress){case 1:return I=Date.now(),_.k(z,NXE(S,U,Y,p),2);case 2:V=z.yieldResult;if(!(L||((O=S.initializationData)==null?0:O.useNightlyRelease)||((D=S.initializationData)==null?0:D.isLocalServer))){W=V.initializeFeedbackClient(S,I,p);z.jumpTo(3);break}return _.k(z,V.initializeFeedbackClientAsync(S,I,p),4);case 4:W=z.yieldResult;case 3:return W.initiateAloha(),z.return(W)}})};
tce=function(S,p,U,Y){var L,I,V;return _.T(function(W){if(W.nextAddress==1)return L=Date.now(),_.k(W,qCN(S,U,Y.document,p),2);if(W.nextAddress!=3)return I=W.yieldResult,_.k(W,I.initializeFeedbackClientAsync(S,L,p,Y),3);V=W.yieldResult;V.initiateAloha();return W.return(V)})};
cHw=function(S,p,U){var Y=!0;Y=Y===void 0?!0:Y;var L,I,V,W,O,D,z,Q,J,K;return _.T(function(G){L=U||_.UX;if((I=p)==null?0:(W=(V=I).getEnableAlohaBinarySplit)==null?0:W.call(V)){O=L;if(O.isFormOpened)throw D=Error("ef"),D.name="DuplicateFormError",D;O.isFormOpened=!0;S.callbacks=S.callbacks||{};z=S.callbacks.onClose||function(){};
S.callbacks.onClose=function(X){O.isFormOpened=!1;z(X)};
try{return G.return(tce(S,p,O,L))}catch(X){throw O.isFormOpened=!1,X;}}else{Q=L;if(Q.isFormOpened)throw J=Error("ef"),J.name="DuplicateFormError",J;Q.isFormOpened=!0;S.callbacks=S.callbacks||{};K=S.callbacks.onClose||function(){};
S.callbacks.onClose=function(X){Q.isFormOpened=!1;K(X)};
try{return G.return(AHq(S,p,Q,L.document,Y))}catch(X){throw Q.isFormOpened=!1,X;}}_.OV(G)})};
Lfe=function(S,p){return _.T(function(U){return U.return(new Promise(function(Y){var L=SDq(p!=null?p:"")+"/aloha_form_properties?productId="+S;p3d(L,function(I){I=I.target;var V=null;try{var W=JSON,O=W.stringify;if(I.JSC$7805_xhr_){var D=I.JSC$7805_xhr_.responseText;D.indexOf(")]}'\n")==0&&(D=D.substring(5));var z=(0,_.rn)(D)}else z=void 0;V=YHG(UNE,O.call(W,z))}catch(Q){O=new UNE,z=YDk(),z=_.G0(z,13,!1),z=_.G0(z,14,!0),z=_.G0(z,15,!0),z=_.G0(z,20,!1),V=_.U3(O,1,z)}Y(V)},"GET","",{},2E3,!0)}))})};
SDq=function(S){return EZw(S)?S:"https://www.google.com/tools/feedback"};
Vlw=function(S){S=S.match(new RegExp(MlE,"gi"))||[];S=_.d(S);for(var p=S.next();!p.done;p=S.next()){p=p.value;a:{var U=_.d(ISR);for(var Y=U.next();!Y.done;Y=U.next())if(Y.value.test(p)){U=!1;break a}U=!0}if(!U)a:{U=_.d(dNE);for(Y=U.next();!Y.done;Y=U.next())if(Y.value.test(p)){U=!0;break a}U=!1}if(U)return!0}return!1};
TMu=function(S){switch(S){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"}};
OWr=function(S){if(window.crypto&&window.crypto.getRandomValues)try{var p=Array(S),U=new Uint8Array(S);window.crypto.getRandomValues(U);for(var Y=0;Y<p.length;Y++)p[Y]=U[Y];return p}catch(I){}p=Array(S);for(U=0;U<S;U++){Y=Date.now();for(var L=0;L<Y%23;L++)p[U]=Math.random();p[U]=Math.floor(Math.random()*256)}if(Wfq)for(U=1,Y=0;Y<Wfq.length;Y++)p[U%S]^=p[(U-1)%S]/4^Wfq.charCodeAt(Y),U++;return p};
h8=function(S){S=OWr(S);for(var p=[],U=0;U<S.length;U++)p.push("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".charAt(S[U]&63));return p.join("")};
HWr=function(S){S&&_.RV("foregroundHeartbeatScreenAssociated",{clientDocumentNonce:kBE,clientScreenNonce:S})};
DNw=function(S){return _.g7("client-screen-nonce-store",{})[S===void 0?0:S]};
zBr=function(S,p){p=p===void 0?0:p;var U=_.g7("client-screen-nonce-store");U||(U={},_.en("client-screen-nonce-store",U));U[p]=S};
QwG=function(S){S=S===void 0?0:S;return S===0?"ROOT_VE_TYPE":"ROOT_VE_TYPE."+S};
nxG=function(S){return _.g7(QwG(S===void 0?0:S))};
_.F$=function(S){return(S=nxG(S===void 0?0:S))?new _.R9({veType:S,youtubeData:void 0,jspbYoutubeData:void 0}):null};
J2X=function(){var S=_.g7("csn-to-ctt-auth-info");S||(S={},_.en("csn-to-ctt-auth-info",S));return S};
y2G=function(){return Object.values(_.g7("client-screen-nonce-store",{})).filter(function(S){return S!==void 0})};
_.X$=function(S){S=DNw(S===void 0?0:S);if(!S&&!_.ub("USE_CSN_FALLBACK",!0))return null;S||(S="UNDEFINED_CSN");return S?S:null};
bWk=function(S){for(var p=_.d(Object.values(Kfd)),U=p.next();!U.done;U=p.next())if(_.X$(U.value)===S)return!0;return!1};
jww=function(S,p,U){var Y=J2X();(U=_.X$(U))&&delete Y[U];p&&(Y[S]=p)};
Pv=function(S){return J2X()[S]};
_.ZL=function(S,p,U,Y){U=U===void 0?0:U;if(S!==DNw(U)||p!==_.g7(QwG(U)))if(jww(S,Y,U),zBr(S,U),_.en(QwG(U),p),p=function(){setTimeout(function(){HWr(S)},0)},"requestAnimationFrame"in window)try{window.requestAnimationFrame(p)}catch(L){p()}else p()};
r2e=function(S,p){p=p===void 0?"":p;var U=[],Y;for(Y in S)if(S.hasOwnProperty(Y)){var L=p!==""?p+"."+Y:Y;typeof S[Y]==="object"?U.push.apply(U,_.jo(r2e(S[Y],L))):U.push([L,S[Y]])}U.sort();return U};
_.hBq=function(S){var p=_.jO.apply(1,arguments);if(!s$(S)||p.some(function(Y){return!s$(Y)}))throw Error("ff");
p=_.d(p);for(var U=p.next();!U.done;U=p.next())GBG(S,U.value)};
GBG=function(S,p){for(var U in p)if(s$(p[U])){if(U in S&&!s$(S[U]))throw Error("gf");U in S||(S[U]={});GBG(S[U],p[U])}else if(RBG(p[U])){if(U in S&&!RBG(S[U]))throw Error("hf");U in S||(S[U]=[]);Ffu(S[U],p[U])}else S[U]=p[U];return S};
Ffu=function(S,p){p=_.d(p);for(var U=p.next();!U.done;U=p.next())U=U.value,s$(U)?S.push(GBG({},U)):RBG(U)?S.push(Ffu([],U)):S.push(U);return S};
s$=function(S){return typeof S==="object"&&!Array.isArray(S)};
RBG=function(S){return typeof S==="object"&&Array.isArray(S)};
PRG=function(S){for(var p=_.d(Object.entries(X3q)),U=p.next();!U.done;U=p.next())if(U=_.d(U.value),U.next(),U=U.next().value,U==="SLI_STATUS_"+S)return U;return"SLI_STATUS_UNKNOWN"};
_.em=function(S,p,U,Y){return ZWq(S,p,function(){return new _.swG(S,p,U,Y)})};
_.eBr=function(){return _.em("SLI_NAME_YOUTUBE_WEB_APP_BOOTS","APP_BOOTS",12E4,"TIMEOUT")};
gxr=function(){return _.em("SLI_NAME_YOUTUBE_WEB_NETWORK_REQUEST","NETWORK_REQUEST",12E4,"TIMEOUT")};
gn=function(){return _.em("SLI_NAME_YOUTUBE_WEB_WARM_PAGE_NAVIGATION","WARM_PAGE_NAVIGATION",12E4,"TIMEOUT")};
u8G=function(){return _.em("SLI_NAME_YOUTUBE_WEB_YT_INITIAL_DATA_PRESENT","YT_INITIAL_DATA_LOADED",6E4,"FAILURE")};
w3G=function(){return _.em("SLI_NAME_YOUTUBE_WEB_STFE_GREATER_THAN_ONE_MINUTE","STFE_GREATER_THAN_ONE_MINUTE",6E4,"SUCCESS")};
lSe=function(){return _.em("SLI_NAME_YOUTUBE_WEB_STFE_GREATER_THAN_TEN_MINUTES","STFE_GREATER_THAN_TEN_MINUTES",6E5,"SUCCESS")};
CRe=function(S){S&&(S.dataset?S.dataset[aSd()]="true":_.xq([_.Sb(fSw)],S,"data-loaded","true".toString()))};
xNr=function(S){return S?S.dataset?S.dataset[aSd()]:S.getAttribute("data-loaded"):null};
aSd=function(){return Exe.loaded||(Exe.loaded="loaded".replace(/\-([a-z])/g,function(S,p){return p.toUpperCase()}))};
_.uL=function(S,p,U){mNN(S,p,U===void 0?null:U)};
_.vxe=function(S,p){S&&p&&(S=""+_.Ul(p),(S=oxE[S])&&_.Bze(S))};
mNN=function(S,p,U){U=U===void 0?null:U;var Y=_.$Nw(S),L=document.getElementById(Y),I=L&&xNr(L),V=L&&!I;I?p&&p():(p&&(I=_.MW(Y,p),p=""+_.Ul(p),oxE[p]=I),V||(L=iWq(S,Y,function(){xNr(L)||(CRe(L),_.q1w(Y),_.MT(function(){_.tve(Y)},0))},U)))};
iWq=function(S,p,U,Y){Y=Y===void 0?null:Y;var L=_.JY("SCRIPT");L.id=p;L.onload=function(){U&&setTimeout(U,0)};
L.onreadystatechange=function(){switch(L.readyState){case "loaded":case "complete":L.onload()}};
Y&&L.setAttribute("nonce",Y);_.fh(L,_.Xa(S));S=document.getElementsByTagName("head")[0]||document.body;S.insertBefore(L,S.firstChild);return L};
_.$Nw=function(S){var p=document.createElement("a");hA(p,S);return"js-"+wn(p.href.replace(/^[a-zA-Z]+:\/\//,"//"))};
NMw=function(S){var p=_.g7("INNERTUBE_HOST_OVERRIDE");p&&(S=String(p)+String(_.lL(S)));return S};
BMk=function(S){var p={};_.y("json_condensed_response")&&(p.prettyPrint="false");return S=yrE(S,p)};
_.a9=function(S){return BQ(S)?"same-origin":"include"};
_.f9=function(S){return BQ(S)?"same-origin":"cors"};
C9=function(S,p,U){U=U===void 0?{}:U;S={method:p===void 0?"POST":p,mode:_.f9(S),credentials:_.a9(S)};p={};for(var Y=_.d(Object.keys(U)),L=Y.next();!L.done;L=Y.next())L=L.value,U[L]&&(p[L]=U[L]);Object.keys(p).length>0&&(S.headers=p);return S};
_.xn=function(S,p){p=p===void 0?{}:p;return"service:"+S+"/"+Object.keys(p).sort().map(function(U){return U+":"+p[U]}).join("/")};
qDq=function(S){var p,U,Y,L;S=(p=_.b(S,_.E$))==null?void 0:(U=p.watchEndpointSupportedOnesieConfig)==null?void 0:(Y=U.html5PlaybackOnesieConfig)==null?void 0:(L=Y.commonConfig)==null?void 0:L.url;if(!S)return[];p=new _.ma(S);return p.JSC$8037_domain_?["https://"+p.JSC$8037_domain_+"/generate_204"]:[]};
_.c2w=function(){return A2N()||r8r()||tlw&&sg("version/")?!0:_.g7("EOM_VISITOR_DATA")?!1:!0};
SBR=function(S){var p=S.docid||S.video_id||S.videoId||S.id;if(p)return p;p=S.raw_player_response;p||(S=S.player_response)&&(p=JSON.parse(S));return p&&p.videoDetails&&p.videoDetails.videoId||null};
pFe=function(S){return S.replace(/([a-zA-Z])(?=[A-Z])/g,"$1-").toLowerCase()};
o9=function(S){return!isNaN(Number(S))&&!_.dN(S)};
_.$n=function(S,p,U,Y){Y=Y===void 0?!0:Y;var L=_.g7("VALID_SESSION_TEMPDATA_DOMAINS",[]),I=_.ib(window.location.href);I&&L.push(I);I=_.ib(S);if(_.ou(L,I)||!I&&_.Lr(S,"/"))if(L=document.createElement("a"),hA(L,S),S=L.href)if(S=_.lL(S),S=_.vv(S))Y&&!p.csn&&(p.itct||p.ved)&&(p=Object.assign({csn:_.X$()},p)),U?(U=parseInt(U,10),isFinite(U)&&U>0&&UCr(S,p,U)):UCr(S,p)};
LnG=function(S){var p=_.g7("VALID_SESSION_TEMPDATA_DOMAINS",[]),U=_.ib(window.location.href);U&&p.push(U);U=_.ib(S);if(!(_.ou(p,U)||!U&&_.Lr(S,"/")))return null;S=_.lL(S);(S=_.vv(S))?(S=YBG(S),S=(S=_.D5.get(S,void 0)||null)?_.E0(S):{}):S=null;return S};
UCr=function(S,p,U){S=YBG(S);p=p?_.Og(p):"";U=U||5;_.c2w()&&_.zp(S,p,U)};
YBG=function(S){for(var p=_.d(MYd),U=p.next();!U.done;U=p.next())S=_.iL(S,U.value);return"ST-"+wn(S).toString(36)};
I7R=function(S,p){S.commandMetadata&&_.b(S.commandMetadata,_.NU)&&_.b(S.commandMetadata,_.NU).url&&(S=_.mc(_.b(S.commandMetadata,_.NU).url).adurl)&&_.bZX(S)&&_.$n(_.lL(S),{encoded_ad_playback_context:p})};
_.dCu=function(S){if(S.requestFullscreen)S=S.requestFullscreen(void 0);else if(S.webkitRequestFullscreen)S=S.webkitRequestFullscreen();else if(S.mozRequestFullScreen)S=S.mozRequestFullScreen();else if(S.msRequestFullscreen)S=S.msRequestFullscreen();else if(S.webkitEnterFullscreen)S=S.webkitEnterFullscreen();else return Promise.reject(Error("rf"));return S instanceof Promise?S:Promise.resolve()};
_.qU=function(S){var p;_.lGX(["fullscreenEnabled","webkitFullscreenEnabled","mozFullScreenEnabled","msFullscreenEnabled"],document)?_.Bv()==S&&(p=document):p=S;if(p&&(S=_.lGX(["exitFullscreen","webkitExitFullscreen","mozCancelFullScreen","msExitFullscreen"],p))){S.call(p)instanceof Promise||Promise.resolve();return}Promise.resolve()};
_.Bv=function(){var S=S===void 0?!1:S;var p=_.lGX(["fullscreenElement","webkitFullscreenElement","mozFullScreenElement","msFullscreenElement"],document);if(S)for(;p&&p.shadowRoot;)p=p.shadowRoot.fullscreenElement;return p?p:null};
_.A8=function(S,p){p=p===void 0?!0:p;S.addEventListener("wheel",VYe);S.overscrollConfig={cooldown:p}};
_.t8=function(S){S.overscrollConfig=void 0;S.removeEventListener("wheel",VYe)};
VYe=function(S){var p=S.deltaY,U=S.target,Y=null;if(window.Polymer&&window.Polymer.Element){if(U=S.path||S.composedPath&&S.composedPath()){U=_.d(U);for(var L=U.next();!L.done&&(L=L.value,!Toe(L,p));L=U.next())if(L.overscrollConfig){Y=L;break}}}else for(;U&&!Toe(U,p);){if(U.overscrollConfig){Y=U;break}U=U.parentElement}Y&&(p=Y.overscrollConfig,p.cooldown?(Y=S.deltaY,U=p.lastDeltaY||0,p.lastDeltaY=Y,L=p.lastStopped||0,U&&L&&U>0==Y>0?Math.abs(U)>=Math.abs(Y)?(Y=L+1200,U=!1):(Y=L+600,U=!0):(Y=Date.now()+
600,U=!0),Y>Date.now()&&(S.preventDefault(),U&&(p.lastStopped=Date.now()))):S.preventDefault())};
Toe=function(S,p){return p<0&&S.scrollTop>0||p>0&&S.scrollTop<S.scrollHeight-S.clientHeight-1?(S=getComputedStyle(S).overflowY,S=="auto"||S=="scroll"):!1};
_.cv=function(S,p,U,Y){Y||(Y={bubbles:!0,cancelable:!1,composed:!0});U!==null&&U!==void 0&&(Y.detail=U);var L=new CustomEvent(p,Y);_.y("untrack_fire_custom_event_killswitch")?S.dispatchEvent(L):OI(function(){return void S.dispatchEvent(L)});
return L};
_.St=function(S,p,U,Y){p=new WnX(p,!(Y===void 0||!Y),U);_.cv(S,"yt-action",p);return p.returnValue};
_.pp=function(S,p,U){return _.St(S,p,U,!0)};
_.Uh=function(S,p,U){return _.St(S,p,U)[0]};
_.Lp=function(S,p,U,Y){p&&p.length&&p.forEach(function(L){var I=uiw(L);I&&(_.y("handle_service_request_actions")&&L.commandMetadata&&L.commandMetadata.webCommandMetadata&&L.commandMetadata.webCommandMetadata.sendPost?_.Yd(U?U:S,[L]):_.pp(S,I,[L,U,Y]))})};
_.Yd=function(S,p){var U=[S];p&&U.push.apply(U,p);p=_.St(S,"yt-service-request",U);return p.length>0&&(p=p[0],_.cv(S,"yt-service-request-sent",p),p&&p.ajaxPromise)?(p.ajaxPromise.then(function(Y){_.cv(S,"yt-service-request-completed",Y)},function(Y){_.cv(S,"yt-service-request-error",{error:Y,
params:U})},S),p.ajaxPromise):_.Mw()};
_.dB=function(S,p){if(_.y("handle_service_request_actions"))_.Lp(p,S,p);else{S=_.d(S);for(var U=S.next();!U.done;U=S.next()){U=U.value;var Y=void 0;((Y=_.b(U,_.I2))==null?0:Y.commands)?_.dB(_.b(U,_.I2).commands,p):(Y=void 0,((Y=_.b(U,_.TI))==null?0:Y.actions)?_.dB(_.b(U,_.TI).actions,p):(Y=void 0,((Y=_.b(U.commandMetadata,_.NU))==null?0:Y.sendPost)?_.Yd(p,[U]):_.Lp(p,[U],p)))}}};
_.k9e=function(S,p,U){p=p===void 0?{}:p;typeof p==="function"&&(p={callback:p});U||p._c&&p._c.jsl&&p._c.jsl.h||_.h9.extend(p,{_c:{jsl:{h:_.g7("GAPI_HINT_PARAMS")}}});(p.gapiHintOverride||_.g7("GAPI_HINT_OVERRIDE"))&&(U=_.mc(document.location.href).gapi_jsh)&&_.h9.extend(p,{_c:{jsl:{h:U}}});OXR(S,p)};
_.Oh=function(S,p,U){p=p===void 0?{}:p;S=(S=S in Wd?Wd[S]:U)||"";U={};for(var Y in p){U={key$jscomp$788:U.key$jscomp$788};U.key$jscomp$788=Y;var L=function(I){return function(){return String(p[I.key$jscomp$788])}}(U);
S=S.replace(new RegExp("\\$\\{"+U.key$jscomp$788+"\\}","gi"),L);S=S.replace(new RegExp("\\$"+U.key$jscomp$788,"gi"),L)}return S};
_.kd=function(S,p){return HXR(S in Wd?Wd[S]:{},p)};
HXR=function(S,p){var U=_.g7("I18N_PLURAL_RULES");U||(U=function(Y){return Y==1?"one":"other"});
return(S=S["case"+p]||S[U(p)])?S.replace("#",p.toString()):p+""};
QEX=function(S){var p=DCE(S),U=document.getElementById(p),Y=U&&xNr(U);Y||U&&!Y||(U=zLk(S,p,function(){if(!xNr(U)){CRe(U);_.q1w(p);var L=_.Hd(_.tve,p);_.MT(L,0)}}))};
zLk=function(S,p,U){var Y=document.createElement("link");Y.id=p;Y.onload=function(){U&&setTimeout(U,0)};
S=_.Xa(S);_.E3(Y,S,"stylesheet");(document.getElementsByTagName("head")[0]||document.body).appendChild(Y);return Y};
DCE=function(S){var p=_.JY("A");hA(p,kq(S));return"css-"+wn(p.href.replace(/^[a-zA-Z]+:\/\//,"//"))};
_.Jsw=function(S){var p=ngE();S!==p&&(p=_.D9(),!_.y("web_autonav_allow_off_by_default")&&S||_.zI(0,141,!0),_.zI(0,140,!S),p.save())};
ngE=function(){var S=_.D9();return _.y("web_autonav_allow_off_by_default")&&!S.getFlag(141)&&_.g7("AUTONAV_OFF_BY_DEFAULT")?!1:!S.getFlag(140)};
yse=function(S,p){var U,Y;S=((U=S.watchEndpointSupportedAuthorizationTokenConfig)==null?void 0:(Y=U.videoAuthorizationToken)==null?void 0:Y.credentialTransferTokens)||[];for(U=0;U<S.length;++U)if(S[U].scope===p)return S[U].token||void 0};
Knr=function(S){for(var p=0,U=0;U<S.length;U++)p=p*31+S.charCodeAt(U),U<S.length-1&&(p%=0x800000000000);return p%1E5};
_.QT=function(S){return _.ad("ytcsi."+(S||"")+"data_")||bXr(S)};
_.jEr=function(S){S=_.QT(S);S.metadata||(S.metadata={});return S.metadata};
_.rsX=function(S){S=_.QT(S);S.tick||(S.tick={});return S.tick};
_.G9X=function(S){S=_.QT(S);if(S.gel){var p=S.gel;p.gelInfos||(p.gelInfos={});p.gelTicks||(p.gelTicks={})}else S.gel={gelTicks:{},gelInfos:{}};return S.gel};
_.hLk=function(S){S=_.G9X(S);S.gelInfos||(S.gelInfos={});return S.gelInfos};
RLr=function(S){var p=_.QT(S).nonce;p||(p=h8(16),_.QT(S).nonce=p);return p};
bXr=function(S){var p={tick:{},info:{}};_.NT("ytcsi."+(S||"")+"data_",p);return p};
Fnk=function(){var S=_.ad("ytcsi.debug");S||(S=[],_.NT("ytcsi.debug",S),_.NT("ytcsi.reference",{}));return S};
_.Phw=function(S){S=S||"";var p=XFr();if(p[S])return p[S];var U=Fnk(),Y={timerName:S,info:{},tick:{},span:{},jspbInfo:[]};U.push(Y);return p[S]=Y};
ZXE=function(S){S=S||"";var p=XFr();p[S]&&delete p[S];var U=Fnk(),Y={timerName:S,info:{},tick:{},span:{},jspbInfo:[]};U.push(Y);p[S]=Y};
XFr=function(){var S=_.ad("ytcsi.reference");if(S)return S;Fnk();return _.ad("ytcsi.reference")};
_.eLE=function(S){return sEk[S]||"LATENCY_ACTION_UNKNOWN"};
l7N=function(S,p,U){U=U===void 0?{}:U;var Y=!1;_.ub("ytLoggingEventsDefaultDisabled",!1)&&(Y=!0);Y=Y?null:hU;U=U===void 0?{}:U;var L=Math.round(U.timestamp||(0,_.AI)());_.yR(p,1,L<Number.MAX_SAFE_INTEGER?L:0);L=new ggw;if(U.lact)_.yR(L,1,isFinite(U.lact)?U.lact:-1);else if(U.timestamp)_.yR(L,1,-1);else{var I=_.pv();_.yR(L,1,isFinite(I)?I:-1)}if(U.sequenceGroup&&!_.y("web_gel_sequence_info_killswitch")){I=U.sequenceGroup;var V=VVE(I),W=new ulu;_.yR(W,2,V);_.zN(W,1,I);_.U3(L,3,W);U.endOfSequence&&delete wFk[U.sequenceGroup]}_.U3(p,
33,L);(U.sendIsolatedPayload?Dsw:zqX)(S,{endpoint:"log_event",payload:p,cttAuthInfo:U.cttAuthInfo,dangerousLogToVisitorSession:U.dangerousLogToVisitorSession},Y)};
_.Ja=function(){return(_.y("csi_use_time_origin")||_.y("csi_use_time_origin_tvhtml5"))&&_.np.timeOrigin?Math.floor(_.np.timeOrigin):_.np.timing.navigationStart};
_.a7r=function(S,p){_.yT("_start",S,p)};
_.Kp=function(S,p){if(!_.y("web_csi_action_sampling_enabled")||!_.QT(p).actionDisabled){var U=_.Phw(p||"");_.hBq(U.info,S);S.loadType&&(U=S.loadType,_.jEr(p).loadType=U);_.hBq(_.hLk(p),S);U=RLr(p);p=_.QT(p).cttAuthInfo;f7e().info(S,U,p)}};
Chw=function(){var S,p,U,Y;return((Y=_.tW().resolve(_.AW(jP))==null?void 0:(S=dmE())==null?void 0:(p=S.loggingHotConfig)==null?void 0:(U=p.csiConfig)==null?void 0:U.debugTicks)!=null?Y:[]).map(function(L){return Object.values(L)[0]})};
_.yT=function(S,p,U){if(!_.y("web_csi_action_sampling_enabled")||!_.QT(U).actionDisabled){var Y=RLr(U),L;if(L=_.y("web_csi_debug_sample_enabled")&&Y){(_.tW().resolve(_.AW(jP))==null?0:dmE())&&!xCe&&(xCe=!0,_.yT("gcfl",(0,_.AI)(),U));var I,V,W;L=(_.tW().resolve(_.AW(jP))==null?void 0:(I=dmE())==null?void 0:(V=I.loggingHotConfig)==null?void 0:(W=V.csiConfig)==null?void 0:W.debugSampleWeight)||0;if(I=L!==0)b:{I=Chw();if(I.length>0)for(V=0;V<I.length;V++)if(S===I[V]){I=!0;break b}I=!1}I?(L=Knr(Y)%L!==
0,_.QT(U).debugTicksExcludedLogged||(I={},I.debugTicksExcluded=L,_.Kp(I,U)),_.QT(U).debugTicksExcludedLogged=!0):L=!1}if(!L){S[0]!=="_"&&EgG(S,U,p);L=_.Phw(U||"");L.tick[S]=p||(0,_.AI)();if(L.callback&&L.callback[S])for(L=_.d(L.callback[S]),I=L.next();!I.done;I=L.next())I=I.value,I();L=_.G9X(U);L.gelTicks&&(L.gelTicks[S]=!0);I=_.rsX(U);L=p||(0,_.AI)();_.y("log_repeated_ytcsi_ticks")?S in I||(I[S]=L):I[S]=L;I=_.QT(U).cttAuthInfo;S==="_start"?f7e().baseline(Y,p,I):f7e().tick(S,Y,p,I);_.mCG(U);return L}}};
EgG=function(S,p,U){if(_.np.mark)if(S.startsWith("mark_")||(S="mark_"+S),p&&(S+=" ("+p+")"),U===void 0||_.y("web_csi_disable_alt_time_performance_mark"))_.np.mark(S);else{U=_.y("csi_use_performance_navigation_timing")?U-_.np.timeOrigin:U-(_.np.timeOrigin||_.np.timing.navigationStart);try{_.np.mark(S,{startTime:U})}catch(Y){}}};
ogR=function(){var S,p=(S=_.np.getEntriesByType)==null?void 0:S.call(_.np,"mark");p&&p.forEach(function(U){if(U.name.startsWith("mark_")){var Y;(Y=_.np.clearMarks)==null||Y.call(_.np,U.name)}})};
_.vgX=function(){switch(wBe()){case "hidden":return 0;case "visible":return 1;case "prerender":return 2;case "unloaded":return 3;default:return-1}};
_.$Ce=function(S){var p={},U=function(I,V,W){V=V.match("_rid")?V.split("_rid")[0]:V;typeof W==="number"&&(W=JSON.stringify(W));I.requestIds?I.requestIds.push({endpoint:V,id:W}):I.requestIds=[{endpoint:V,id:W}]};
S=_.d(Object.entries(S));for(var Y=S.next();!Y.done;Y=S.next()){var L=_.d(Y.value);Y=L.next().value;L=L.next().value;switch(Y){case "GetBrowse_rid":U(p,Y,L);break;case "GetGuide_rid":U(p,Y,L);break;case "GetHome_rid":U(p,Y,L);break;case "GetPlayer_rid":U(p,Y,L);break;case "GetSearch_rid":U(p,Y,L);break;case "GetSettings_rid":U(p,Y,L);break;case "GetTrending_rid":U(p,Y,L);break;case "GetWatchNext_rid":U(p,Y,L);break;case "yt_red":p.isRedSubscriber=!!L;break;case "yt_ad":p.isMonetized=!!L}}return p};
_.iXq=function(S){var p=_.rB("aft",S);if(p)return p;p=_.g7((S||"")+"TIMING_AFT_KEYS",["ol"]);for(var U=p.length,Y=0;Y<U;Y++){var L=_.rB(p[Y],S);if(L)return L}return NaN};
_.Nou=function(S,p){_.NT("ytglobal.timing"+(p||"")+"ready_",S)};
_.rB=function(S,p){if(S=_.rsX(p)[S])return typeof S==="number"?S:S[S.length-1]};
_.mCG=function(S){var p=_.rB("_start",S),U=_.iXq(S),Y=!Bor;p&&U&&Y&&(Tte(qBe,new Asw(Math.round(U-p),S)),Bor=!0)};
csN=function(S){bXr(S);tYe();ogR();S||(_.g7("TIMING_ACTION")&&_.en("PREVIOUS_ACTION",_.g7("TIMING_ACTION")),_.en("TIMING_ACTION",""))};
_.SwE=function(S){S=S===void 0?{}:S;_.lb(function(){GI();ZXE();csN();_.Nou(!1);S.cttAuthInfo&&(_.QT().cttAuthInfo=S.cttAuthInfo);_.en("TIMING_AFT_KEYS",[]);S.isHot?_.ha({loadType:"hot"}):_.ha({loadType:"warm"});_.en("TIMING_ACTION","");delete _.g7("TIMING_INFO",{}).yt_lt;_.lb(_.a7r)(S.startTime,void 0)})()};
_.R2=function(S,p,U,Y){p=p===void 0?{}:p;_.lb(function(){var L=U?U:S;p1G(L);var I=p.sampleRate;if(!_.y("web_csi_action_sampling_enabled")||I===void 0||I<=1)I=!1;else{var V=RLr(L);I=Knr(V)%I!==0}I&&(_.QT(L).actionDisabled=!0);_.Phw(L||"").info.actionType=S;p.cttAuthInfo&&(_.QT(L).cttAuthInfo=p.cttAuthInfo);_.en(L+"TIMING_ACTION",S);_.lb(_.a7r)(p.startTime,L);I={actionType:Y||_.eLE(S)};p.logPreviousAction&&(I.previousAction=_.eLE(_.g7("TIMING_ACTION")));(V=_.X$())&&V!=="UNDEFINED_CSN"&&(I.clientScreenNonce=
V);_.ha(I,L);_.Nou(!0,L)})()};
p1G=function(S){_.lb(function(){GI(S);ZXE(S);csN(S)})()};
UVu=function(){_.lb(function(){var S=[],p;for(p in _.ad("ytcsi.".slice(0,-1)))p.endsWith("data_")&&S.push(p.slice(0,-5));S=_.d(S);for(p=S.next();!p.done;p=S.next())p1G(p.value);GI()})()};
_.LZG=function(S){return _.lb(function(){return _.YwG("_start",S)})()};
_.ha=function(S,p,U){_.lb(_.Kp)(S,p,U===void 0?!1:U)};
_.Fg=function(S,p,U){return _.lb(_.yT)(S,p,U)};
_.YwG=function(S,p){return _.lb(function(){var U=_.rsX(p);return S in U})()};
I0w=function(S){if(!_.y("universal_csi_network_ticks"))return"";S=_.Tp(S)||"";for(var p=Object.keys(M0w),U=0;U<p.length;U++){var Y=p[U];if(S.includes(Y))return Y}return""};
V0w=function(S){if(!_.y("universal_csi_network_ticks"))return function(){};
var p=M0w[S];return p?(_.Xg(p),function(){var U=_.y("universal_csi_network_ticks")?(U=dVq[S])?_.Xg(U):!1:!1;return U}):function(){}};
_.Xg=function(S,p,U){return _.lb(function(){if(_.YwG(S,U))return!1;_.Fg(S,p,U);return!0})()};
_.Pd=function(S,p,U){_.lb(function(){if(!_.LZG(U)||_.YwG(S,U))return!1;_.Fg(S,p,U);return!0})()};
_.Z9=function(S){return _.lb(_.rB)(S,void 0)};
GI=function(S){_.LZG(S)&&_.Fg("aa",void 0,S)};
_.HDE=function(S,p,U,Y,L,I,V,W,O){var D=Tle();W=new _.R9({veType:p,youtubeData:I,jspbYoutubeData:W});I=sh({},D);L&&(I.cttAuthInfo=L);L={csn:D,pageVe:W.getAsJson()};_.y("expectation_logging")&&O&&O.screenCreatedLoggingExpectations&&(L.screenCreatedLoggingExpectations=O.screenCreatedLoggingExpectations);U&&U.visualElement?(L.implicitGesture={parentCsn:U.clientScreenNonce,gesturedVe:U.visualElement.getAsJson()},V&&(L.implicitGesture.gestureType=V)):U&&_.eP(new _.y7("newScreen() parent element does not have a VE - rootVe",
p));Y&&(L.cloneCsn=Y);S?GY("screenCreated",L,S,I):_.RV("screenCreated",L,I);Tte(Q4N,new WZd(D));et.clear();ODe.clear();kAN.clear();return D};
gB=function(S,p,U,Y,L){DVG(S,p,U,[Y],L===void 0?!1:L)};
DVG=function(S,p,U,Y,L){L=L===void 0?!1:L;for(var I=sh({cttAuthInfo:Pv(p)||void 0},p),V=_.d(Y),W=V.next();!W.done;W=V.next()){W=W.value;var O=W.getAsJson();(_.h9.isEmpty(O)||!O.trackingParams&&!O.veType)&&_.eP(Error("sf"));if(_.y("no_client_ve_attach_unless_shown")){var D=zxq(W,p);if(O.veType&&!ODe.has(D)&&!kAN.has(D)&&!L){if(!_.y("il_attach_cache_limit")||et.size<1E3){et.set(D,[S,p,U,W]);return}_.y("il_attach_cache_limit")&&et.size>1E3&&_.eP(new _.y7("IL Attach cache exceeded limit"))}W=zxq(U,p);
et.has(W)?Qqd(U,p):kAN.set(W,!0)}}Y=Y.filter(function(z){z.csn!==p?(z.csn=p,z=!0):z=!1;return z});
U={csn:p,parentVe:U.getAsJson(),childVes:_.Fp(Y,function(z){return z.getAsJson()})};
p==="UNDEFINED_CSN"?u5("visualElementAttached",I,U):S?GY("visualElementAttached",U,S,I):_.RV("visualElementAttached",U,I)};
JcG=function(S,p,U,Y,L){nru(S,p,U,L)};
nru=function(S,p,U,Y){ycR(U,p);var L=sh({cttAuthInfo:Pv(p)||void 0},p);U={csn:p,ve:U.getAsJson(),eventType:1};Y&&(U.clientData=Y);p==="UNDEFINED_CSN"?u5("visualElementShown",L,U):S?GY("visualElementShown",U,S,L):_.RV("visualElementShown",U,L)};
KZX=function(S,p,U,Y){ycR(U,p);var L=sh({cttAuthInfo:Pv(p)||void 0},p);U={csn:p,ve:U.getAsJson(),eventType:4};Y&&(U.clientData=Y);p==="UNDEFINED_CSN"?u5("visualElementShown",L,U):S?GY("visualElementShown",U,S,L):_.RV("visualElementShown",U,L)};
bDu=function(S,p,U,Y,L){var I=(Y=Y===void 0?!1:Y)?16:8;Y=sh({cttAuthInfo:Pv(p)||void 0,endOfSequence:Y},p);U={csn:p,ve:U.getAsJson(),eventType:I};L&&(U.clientData=L);p==="UNDEFINED_CSN"?u5("visualElementHidden",Y,U):S?GY("visualElementHidden",U,S,Y):_.RV("visualElementHidden",U,Y)};
rcR=function(S,p,U,Y,L){jqk(S,p,U,void 0,Y,L)};
jqk=function(S,p,U,Y,L){ycR(U,p);Y=Y||"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK";var I=sh({cttAuthInfo:Pv(p)||void 0},p);U={csn:p,ve:U.getAsJson(),gestureType:Y};L&&(U.clientData=L);p==="UNDEFINED_CSN"?u5("visualElementGestured",I,U):S?GY("visualElementGestured",U,S,I):_.RV("visualElementGestured",U,I)};
GAq=function(S,p,U,Y){var L=sh({cttAuthInfo:Pv(p)||void 0},p);U={csn:p,ve:U.getAsJson(),clientData:Y};p==="UNDEFINED_CSN"?u5("visualElementStateChanged",L,U):S?GY("visualElementStateChanged",U,S,L):_.RV("visualElementStateChanged",U,L)};
hxX=function(){var S=OWr(16);for(var p=[],U=0;U<S.length;U++)p.push("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".charAt(S[U]&63));return p.join("")};
u5=function(S,p,U){Rxw.push({payloadName:S,payload:U,jspbPayload:void 0,options:p});FZw||(FZw=JZN())};
z$q=function(S){if(Rxw){for(var p=_.d(Rxw),U=p.next();!U.done;U=p.next())U=U.value,U.payload&&(U.payload.csn=S.csn,_.RV(U.payloadName,U.payload,U.options));Rxw.length=0}FZw=0};
zxq=function(S,p){return""+S.getAsJson().veType+S.getAsJson().veCounter+p};
ycR=function(S,p){if(_.y("no_client_ve_attach_unless_shown")){var U=zxq(S,p);ODe.set(U,!0);Qqd(S,p)}};
Qqd=function(S,p){S=zxq(S,p);et.has(S)&&(p=et.get(S)||[],gB(p[0],p[1],p[2],p[3],!0),et.delete(S))};
sh=function(S,p){_.y("log_sequence_info_on_gel_web")&&(S.sequenceGroup=p);return S};
_.wB=function(S,p,U){_.lb(gB)(void 0,S,p,U)};
_.l5=function(S,p,U){_.lb(DVG)(void 0,S,p,U)};
_.a2=function(S,p){_.lb(JcG)(void 0,S,p,void 0,void 0,void 0)};
_.fp=function(S,p,U){_.lb(function(){_.xs(p,function(Y){KZX(void 0,S,Y,U)})})()};
_.Cp=function(S,p,U,Y){_.lb(function(){_.xs(p,function(L){bDu(void 0,S,L,U,Y)})})()};
_.xd=function(S,p,U){_.lb(rcR)(void 0,S,p,U,void 0)};
_.Eh=function(S,p,U,Y){_.lb(jqk)(void 0,S,p,U,Y,void 0)};
_.mp=function(S,p,U){_.lb(GAq)(void 0,S,p,U,void 0)};
vd=function(S){return o2.get(S)};
X1G=function(S,p){o2.set(S,p)};
Pae=function(){return"10000000-1000-4000-8000-100000000000".replace(/[018]/g,function(S){return(+S^crypto.getRandomValues(new Uint8Array(1))[0]&15>>+S/4).toString(16)})};
gru=function(S,p){if($d&&$d.sample(S,p)){var U=ZDd++,Y,L;S=new sqw(S,p,performance.now(),U,exe,(L=(Y=i5)==null?void 0:Y.traceId)!=null?L:U);if(i5){var I;(I=i5).children||(I.children=[]);i5.children.push(S)}U=_.d($d.spanProcessors);for(Y=U.next();!Y.done;Y=U.next())I=L=void 0,(I=(L=Y.value).onSpanStart)==null||I.call(L,S);return i5=S}};
ufd=function(S){exe=Pae();$d=S};
w1q=function(S,p){var U=Object.keys(S);S=new _.y7("[Command Handler] "+p,{filteredCommandNames:U,originalCommand:S});_.ZP(S)};
l0E=function(S,p){w1q(S,p+" was called but not set")};
a0X=function(S){return function(){return new S}};
Nw=function(S){return function(){return _.tW().resolve(S)}};
f0d=function(S,p){var U=_.b(S,_.aV);if(U&&(U=p[U.signal]))return U();S=_.d(Object.keys(S));for(U=S.next();!U.done;U=S.next())if(U=U.value,p[U]&&(U=p[U]))return U()};
Bd=function(S,p,U,Y){return{browseEndpoint:{browseId:S},commandMetadata:{webCommandMetadata:{url:p,rootVe:U,webPageType:Y===void 0?"WEB_PAGE_TYPE_BROWSE":Y}}}};
Caw=function(S,p,U){var Y=p=p===void 0?0:p;U=U===void 0?0:U;var L=U-Y;return _.qw(S,"PPSV",void 0,void 0,(L>600?0:L<60||U<=0||Y/U>.9)?0:p)};
_.qw=function(S,p,U,Y,L){var I="/watch?v="+S;S={videoId:S};p&&(S.playlistId=p,I+="&list="+p);Y&&(I+="&pp="+Y);L&&(S.startTimeSeconds=L,I+="&t="+L+"s");p={watchEndpoint:S,commandMetadata:{webCommandMetadata:{url:I,rootVe:3832,webPageType:"WEB_PAGE_TYPE_WATCH"}}};U&&(p.clickTrackingParams=U);Y&&(_.b(p,_.E$).playerParams=Y);return p};
xVe=function(S){return{browseEndpoint:{browseId:"VL"+S},commandMetadata:{webCommandMetadata:{url:"/playlist?list="+S,rootVe:5754,webPageType:"WEB_PAGE_TYPE_PLAYLIST"}}}};
Ere=function(S){if(S){var p;if(S){var U=(p=_.b(S.commandMetadata,_.NU))==null?void 0:p.url;p=!(!U||U==="/service_ajax")}else p=!1;if(p)return S;var Y;if(S=(Y=_.b(S,_.I2))==null?void 0:Y.commands)for(Y=_.d(S),S=Y.next();!S.done;S=Y.next())if(S=Ere(S.value))return S}};
_.Aa=function(S){return{runs:[{text:S}]}};
mVq=function(S,p){return S&&p?{runs:[{text:S,navigationEndpoint:p}]}:void 0};
ta=function(S){return S?_.Aa(S):void 0};
_.cd=function(S){return S?{simpleText:S}:void 0};
_.S4=function(S){var p=S.type;S=S.payload;p={type:p};S!==void 0&&(p.payload=S);return p};
orN=function(S,p,U){for(var Y=Object.assign({},S),L=_.d(Object.keys(p)),I=L.next();!I.done;I=L.next()){I=I.value;var V=S[I],W=p[I];if(W===void 0)delete Y[I];else if(V===void 0)Y[I]=W;else if(Array.isArray(W)&&Array.isArray(V))Y[I]=U?[].concat(_.jo(V),_.jo(W)):W;else if(!Array.isArray(W)&&_.pc(W)&&!Array.isArray(V)&&_.pc(V))Y[I]=orN(V,W,U);else if(typeof W===typeof V)Y[I]=W;else return p=new _.y7("Attempted to merge fields of differing types.",{name:"DeepMergeError",key:I,originalValue:V,updateValue:W}),
_.ZP(p),S}return Y};
iDq=function(S){if(!S.length)return"";try{if(vrq)return vrq.decode(S);if("FetchInternal"in window)return FetchInternal.decodeFromUTF8(S)}catch(V){}for(var p=0,U=[],Y=S.length;p<Y;){for(var L=0;L<1024&&p<Y;){var I=S[p++];if(I<128)$Vd[L++]=I;else{if(I<224)I=(I&31)<<6|S[p++]&63;else if(I<240)I=(I&15)<<12|(S[p++]&63)<<6|S[p++]&63;else{if(L+1===1024){--p;break}I=(I&7)<<18|(S[p++]&63)<<12|(S[p++]&63)<<6|S[p++]&63;I-=65536;$Vd[L++]=55296|I>>10;I=56320|I&1023}$Vd[L++]=I}}I=String.fromCharCode.apply(String,
$Vd);L<1024&&(I=I.substring(0,L));U.push(I)}return U.join("")};
Blw=function(S,p){var U;if((U=NlE)==null?0:U.encodeInto)return p=NlE.encodeInto(S,p),p.read<S.length?S.length*4:p.written;for(var Y=U=0;Y<S.length;Y++){var L=S.charCodeAt(Y);L<128?p[U++]=L:(L<2048?p[U++]=L>>6|192:((L&64512)===55296&&Y+1<S.length&&(S.charCodeAt(Y+1)&64512)===56320?(L=65536+((L&1023)<<10)+(S.charCodeAt(++Y)&1023),p[U++]=L>>18|240,p[U++]=L>>12&63|128):p[U++]=L>>12|224,p[U++]=L>>6&63|128),p[U++]=L&63|128)}return U};
qwr=function(S,p){S=new Uint8Array(S);p&&S.set(p);return S};
_.Uc=function(S){S=new Ack(new t0q([_.Ol(decodeURIComponent(S))]));if(cck(S,2)){var p=pK(S);var U=S.pos;var Y=S.arrayView;U=U===void 0?0:U;var L=p===void 0?-1:p;U=U===void 0?0:U;L=L===void 0?-1:L;if(Y.totalLength&&L){L<0&&(L=Y.totalLength-U);Y.focus(U);if(!(U-Y.arrayPos+L<=Y.arrays[Y.arrayIdx].length)){var I=Y.arrayIdx,V=Y.arrayPos;Y.focus(U+L-1);V=new Uint8Array(Y.arrayPos+Y.arrays[Y.arrayIdx].length-V);for(var W=0,O=I;O<=Y.arrayIdx;O++)V.set(Y.arrays[O],W),W+=Y.arrays[O].length;Y.arrays.splice(I,
Y.arrayIdx-I+1,V);Y.arrayIdx=0;Y.arrayPos=0;Y.focus(U)}I=Y.arrays[Y.arrayIdx];Y=new DataView(I.buffer,I.byteOffset+U-Y.arrayPos,L)}else Y=new DataView(new ArrayBuffer(0));Y=new Uint8Array(Y.buffer,Y.byteOffset,Y.byteLength);S.pos+=p;p=Y}else p=void 0;p=p?iDq(p):void 0;S=cck(S,4)?pK(S):void 0;Y=Sbw[S];if(typeof Y==="undefined")throw S=new _.y7("Failed to recognize field number",{name:"EntityKeyHelperError",fieldNumber:S}),_.ZP(S),S;return{entityTypeFieldNumber:S,entityType:Y,entityId:p}};
_.M9=function(S,p,U){U=U===void 0?0:U;var Y=new pCG;if(NlE)S=NlE.encode(S);else{var L=new Uint8Array(Math.ceil(S.length*1.2)),I=Blw(S,L);L.length<I&&(L=new Uint8Array(I),I=Blw(S,L));L.length>I&&(L=L.subarray(0,I));S=L}S!==void 0&&(Yl(Y,18),L=S.length,Yl(Y,L),LK(Y,L),Y.buf.set(S,Y.pos),Y.pos+=L);S=UDR[p];if(typeof S==="undefined")throw U=new _.y7("Failed to recognize entity type",{name:"EntityKeyHelperError",entityType:p}),_.ZP(U),U;S!==void 0&&(Yl(Y,32),Yl(Y,S));Yl(Y,40);Yl(Y,1);p=new Uint8Array(Y.buf.buffer,
Y.buf.byteOffset,Y.pos);return encodeURIComponent(_.Ad(p,U))};
YbR=function(S){S=S.key||S.id;if(!S)throw Error("xf");return S};
Mdw=function(S,p){S=S===void 0?{}:S;return LlR(S,p)};
IFX=function(S,p,U,Y){if(Y===void 0)return Y=Object.assign({},S[p]||{}),U=(delete Y[U],Y),Y={},Object.assign({},S,(Y[p]=U,Y));var L={},I={};return Object.assign({},S,(I[p]=Object.assign({},S[p],(L[U]=Y,L)),I))};
dDG=function(S,p,U,Y,L){var I=S[p];if(I==null||!I[U])return S;Y=orN(I[U],Y,L==="REPEATED_FIELDS_MERGE_OPTION_APPEND");L={};I={};return Object.assign({},S,(I[p]=Object.assign({},S[p],(L[U]=Y,L)),I))};
_.I4=function(S,p,U){return S[p]?S[p][U]||null:null};
TPw=function(){if(Vdr)return Vdr();var S={};Vdr=qT("PersistentEntityStoreDb",{objectStores:(S.EntityStore={addedAtVersion:1},S.EntityAssociationStore={addedAtVersion:2},S),shared:!1,upgrade:function(p,U){U(1)&&at(lg(p,"EntityStore",{keyPath:"key"}),"entityType","entityType");U(2)&&(p=lg(p,"EntityAssociationStore",{keyPath:["parentEntityKey","childEntityKey"]}),at(p,"byParentEntityKey","parentEntityKey"),at(p,"byChildEntityKey","childEntityKey"))},
version:3});return Vdr()};
Wlr=function(S){return _.Eg(TPw(),S)};
dt=function(S){return window.Int32Array?new Int32Array(S):Array(S)};
kxE=function(S){return _.Eg(OCd(),S)};
HCR=function(S){return new Vr("WRONG_DATA_TYPE",{encoderVersion:S})};
DDk=function(S){return S instanceof Error?new Vr("UNKNOWN_ENCODE_ERROR",{originalMessage:S.message}):new Vr("UNKNOWN_ENCODE_ERROR")};
zDk=function(S){return S instanceof Error?new Vr("UNKNOWN_DECODE_ERROR",{originalMessage:S.message}):new Vr("UNKNOWN_DECODE_ERROR")};
QXq=function(S,p){S=S instanceof Vr?S:p(S);_.ZP(S);throw S;};
nir=function(S){S=(new TextEncoder).encode(S).subarray(0,16);var p=new Uint8Array(16);p.set(S);return p};
yKu=function(S){var p=JKw[S];if(p)return p;_.eP(new _.y7("Entity model not found.",{entityType:S}))};
_.Tf=function(){Kle||(Kle=bCG());return Kle};
bCG=function(){var S,p,U;return _.T(function(Y){if(Y.nextAddress==1)return _.M2(Y,2),_.k(Y,_.BS(),4);if(Y.nextAddress!=2){S=Y.yieldResult;if(!S||!_.JI()||typeof _.UX.BroadcastChannel==="undefined")return Y.return();p=new jXu;return Y.return(new WJ(S,p))}U=_.W4(Y);U instanceof Error&&_.ZP(U);return Y.return()})};
_.Oc=function(S,p){var U;return _.T(function(Y){if(Y.nextAddress==1){U=S.mutations;if(!U||U.length<=0)return Y.return();p&&p.dispatch(_.S4({type:"ENTITY_LOADED",payload:U}));return _.k(Y,rKN(U),2)}U.length=0;_.OV(Y)})};
rKN=function(S){var p;return _.T(function(U){return U.nextAddress==1?_.k(U,_.Tf(),2):(p=U.yieldResult)?_.k(U,_.kl(p,"readwrite",function(Y){for(var L={},I=_.d(S),V=I.next(),W={};!V.done;W={mutation$jscomp$4:void 0,mutationEntityType$jscomp$3:void 0},V=I.next())W.mutation$jscomp$4=V.value,W.mutation$jscomp$4.entityKey&&Gxr(W.mutation$jscomp$4)&&(W.mutationEntityType$jscomp$3=(0,_.h9.getAnyKey)(W.mutation$jscomp$4.payload),V=void 0,W.mutation$jscomp$4.type==="ENTITY_MUTATION_TYPE_REPLACE"&&(V=function(O){return function(){return _.hDw(Y,
O.mutation$jscomp$4.payload[O.mutationEntityType$jscomp$3],O.mutationEntityType$jscomp$3)}}(W)),W.mutation$jscomp$4.type==="ENTITY_MUTATION_TYPE_DELETE"&&(V=function(O){return function(){return YSG(Y,O.mutation$jscomp$4.entityKey)}}(W)),W.mutation$jscomp$4.type==="ENTITY_MUTATION_TYPE_UPDATE"&&(V=function(O){return function(){return Lwk(Y,O.mutation$jscomp$4.entityKey,O.mutation$jscomp$4.payload[O.mutationEntityType$jscomp$3],O.mutationEntityType$jscomp$3)}}(W)),V&&(L[W.mutation$jscomp$4.entityKey]=
L[W.mutation$jscomp$4.entityKey]?L[W.mutation$jscomp$4.entityKey].then(V):V()));
return wE.all(Object.values(L))}),0):U.return()})};
Gxr=function(S){var p;S=(p=S.options)==null?void 0:p.persistenceOption;return S==="ENTITY_PERSISTENCE_OPTION_PERSIST"||S==="ENTITY_PERSISTENCE_OPTION_INMEMORY_AND_PERSIST"};
dvG=function(S,p){var U,Y;_.T(function(L){if(L.nextAddress==1)return _.k(L,_.Tf(),2);if(L.nextAddress!=3)return(U=L.yieldResult)?_.k(L,_.kl(U,"readonly",function(I){var V={},W=Object.keys(p).map(function(O){var D=p[O]?[].concat(_.jo(p[O])):[];return MiG(I,O,D,V)});
return wE.all(W).then(function(){return V})}),3):L.return();
Y=L.yieldResult;Object.keys(Y).length>0&&S.dispatch(IEd(Y));_.OV(L)})};
MiG=function(S,p,U,Y){return HJ(S,p,U).then(function(L){Y[p]=ViG(U,L)})};
ViG=function(S,p){if(p.length!==S.length)throw Error("Af");return p.reduce(function(U,Y,L){U[S[L]]=Y;return U},{})};
OLr=function(S){var p=S.filter(function(L){var I;return(L==null?void 0:(I=L.transferEntity)==null?void 0:I.transferState)==="TRANSFER_STATE_COMPLETE"}).length,U=S.filter(function(L){var I;
return(L==null?void 0:(I=L.transferEntity)==null?void 0:I.transferState)==="TRANSFER_STATE_FAILED"}).length,Y=S.filter(function(L){var I;
return(L==null?void 0:(I=L.transferEntity)==null?void 0:I.transferState)&&THw.includes(L.transferEntity.transferState)});
if(!(p||Y!=null&&Y.length))return 0;p=_.Www(Y)+p;S=S.length-U;return S===0?0:Math.round(p*100/S)/100};
_.Www=function(S){var p=[];p=p.concat.apply(p,_.jo(S.filter(function(I){return I.streamEntity}).map(function(I){var V=Object.assign({},I.streamEntity),W,O=(W=I.transferEntity)==null?void 0:W.transferState;
V.streamsProgress=V.streamsProgress||[];V.streamsProgress=V.streamsProgress.map(function(D){var z=Object.assign({},D);z.numBytesDownloaded=O==="TRANSFER_STATE_COMPLETE"?D.numTotalBytes:D.numBytesDownloaded;return z});
return V}).map(function(I){return I.streamsProgress})));
var U=S=0;p=_.d(p);for(var Y=p.next();!Y.done;Y=p.next()){var L=Y.value;Y=Number(L.numBytesDownloaded);L=Number(L.numTotalBytes);U+=isNaN(Y)?0:Y;S+=isNaN(L)?0:L}return S===0?0:Math.round(U*100/S)/100};
kCe=function(S){if(!S||!S.expirationTimestamp||!S.action)return!1;var p=(0,_.AI)()/1E3;return Number(S.expirationTimestamp)>=p};
D4=function(S){return S&&S.expirationTimestamp&&S.action?kCe(S)&&S.action==="OFFLINE_VIDEO_POLICY_ACTION_OK":!1};
_.zf=function(S){return["TRANSFER_STATE_TRANSFER_IN_QUEUE","TRANSFER_STATE_PAUSED_BY_USER","TRANSFER_STATE_TRANSFERRING"].includes(S||"TRANSFER_STATE_UNKNOWN")};
HLX=function(S){var p=new pCG;if(S!==void 0){var U=Math.ceil(Math.log2(S.length*4+2)/7);U=U===void 0?2:U;Yl(p,10);p.submessagePosStack.push(p.pos);p.submessagePosStack.push(U);p.pos+=U;LK(p,S.length*1.2);U=Blw(S,p.buf.subarray(p.pos));p.pos+U>p.buf.length&&(LK(p,U),U=Blw(S,p.buf.subarray(p.pos)));p.pos+=U;S=p.submessagePosStack.pop();U=p.submessagePosStack.pop();for(var Y=p.pos-U-S;S--;){var L=S?128:0;p.view.setUint8(U++,Y&127|L);Y>>=7}}p=new Uint8Array(p.buf.buffer,p.buf.byteOffset,p.pos);return(new TextDecoder("utf-8")).decode(p)};
_.nK=function(S){var p=0;S=_.d(S);for(var U=S.next(),Y={};!U.done;Y={transferState$jscomp$3:void 0},U=S.next()){var L=U.value,I=void 0;U=(I=L.streamEntity)!=null?I:{};I=void 0;Y.transferState$jscomp$3=(I=L.transferEntity)==null?void 0:I.transferState;I=L=void 0;((L=U)==null?0:(I=L.streamsProgress)==null?0:I.length)&&U.streamsProgress.forEach(function(V){return function(W){W=Number(V.transferState$jscomp$3==="TRANSFER_STATE_COMPLETE"?W.numTotalBytes:W.numBytesDownloaded);isFinite(W)&&(p+=W)}}(Y))}return p};
Dve=function(S){return S.some(function(p){var U;if(!(p==null?0:(U=p.transferEntity)==null?0:U.transferState)){var Y;return!(p==null?0:(Y=p.policyEntity)==null?0:Y.action)||p.policyEntity.action==="OFFLINE_VIDEO_POLICY_ACTION_OK"}return THw.includes(p.transferEntity.transferState)})};
zKG=function(S,p){if(!p)return!1;if(_.y("of_pb_en_po_ks"))return!0;var U;S=(U=_.I4(S,"offlineVideoPolicy",_.M9(p,"offlineVideoPolicy")))!=null?U:void 0;return!!S&&D4(S)};
_.nzG=function(S){var p=["TRANSFER_STATE_COMPLETE"];p=p===void 0?QUk:p;return S.filter(function(U){var Y,L;return p.includes((L=(Y=U.transferEntity)==null?void 0:Y.transferState)!=null?L:"TRANSFER_STATE_UNKNOWN")})};
JhN=function(S,p){if(p){var U,Y=(U=_.I4(S,"playbackData",_.M9(p,"playbackData")))!=null?U:null,L;U=(L=_.I4(S,"transfer",_.M9(p,"transfer")))!=null?L:null;var I;L=(I=_.I4(S,"offlineVideoStreams",_.M9(p,"offlineVideoStreams")))!=null?I:null;var V;S=(V=_.I4(S,"offlineVideoPolicy",_.M9(p,"offlineVideoPolicy")))!=null?V:null;if(Y||U||L||S)return{playbackDataEntity:Y,transferEntity:U,streamEntity:L,policyEntity:S}}};
_.JZ=function(S){var p=S.playbackData;if(!p)return[];var U=[];p=_.d(Object.keys(p));for(var Y=p.next();!Y.done;Y=p.next()){var L=Y.value;if(!yhe(S,_.Uc(L).entityId)&&(Y=JhN(S,_.Uc(L).entityId))){var I=void 0,V=void 0;L=(V=Number((I=_.I4(S,"playbackData",L))==null?void 0:I.streamDownloadTimestampSeconds))!=null?V:(0,_.AI)();U.push({entity:Y,streamDownloadTimestamp:L})}}return U.sort(function(W,O){var D=W.streamDownloadTimestamp,z=O.streamDownloadTimestamp;return z===D?W.entity.streamEntity&&!O.entity.streamEntity?
1:-1:z-D}).map(function(W){return W.entity})};
KwX=function(S){return _.nzG(_.JZ(S))};
_.bLq=function(S){return _.JZ(S).filter(function(p){var U;if(((U=p.policyEntity)==null?0:U.action)&&p.policyEntity.action!=="OFFLINE_VIDEO_POLICY_ACTION_OK")return!1;var Y;if((Y=p.transferEntity)==null?0:Y.transferState){var L;return THw.includes((L=p.transferEntity)==null?void 0:L.transferState)}return!0})};
yhe=function(S,p){var U;return((U=_.I4(S,"downloadStatusEntity",_.M9(p,"downloadStatusEntity")))==null?void 0:U.downloadState)==="DOWNLOAD_STATE_USER_DELETED"?!0:!1};
jUw=function(S){var p;if(S==null?0:(p=S.playbackDataEntity)==null?0:p.key)return _.Uc(S.playbackDataEntity.key).entityId;var U;if(S==null?0:(U=S.transferEntity)==null?0:U.key)return _.Uc(S.transferEntity.key).entityId;var Y;if(S==null?0:(Y=S.streamEntity)==null?0:Y.key)return _.Uc(S.streamEntity.key).entityId;var L;if(S==null?0:(L=S.policyEntity)==null?0:L.key)return _.Uc(S.policyEntity.key).entityId};
GCR=function(S){var p=new Set,U;S=(U=S.mainDownloadsListEntity)==null?void 0:U[rhd];var Y;if(!(S==null?0:(Y=S.downloads)==null?0:Y.length))return p;var L;S==null||(L=S.downloads)==null||L.forEach(function(I){(I==null?0:I.videoItem)&&p.add(I.videoItem)});
return p};
yr=function(S,p){if(p){var U=_.I4(S,"mainVideoEntity",_.M9(p,"mainVideoEntity")),Y=_.I4(S,"downloadStatusEntity",_.M9(p,"downloadStatusEntity")),L=_.I4(S,"ytMainChannelEntity",_.M9(p,"ytMainChannelEntity")),I={playbackDataEntity:null,transferEntity:null,streamEntity:null,policyEntity:null};S=JhN(S,p);Y=(Y==null?void 0:Y.downloadState)==="DOWNLOAD_STATE_PENDING_DOWNLOAD"||!_.y("woffle_render_failed_download_state_ks")&&(Y==null?void 0:Y.downloadState)==="DOWNLOAD_STATE_FAILED";!S&&Y&&(S=I);if(S&&U&&
L)return Object.assign({},{videoEntity:U,channelEntity:L},S)}};
RKX=function(S,p){return hKN(S,p)==="TRANSFER_STATE_COMPLETE"&&zKG(S,p)};
Fww=function(S,p){if(!p)return!1;var U;S=(U=_.I4(S,"playbackData",_.M9(p,"playbackData")))!=null?U:void 0;return!!S&&!!S.playerResponseJson};
hKN=function(S,p){if(!p)return"TRANSFER_STATE_UNKNOWN";var U=_.I4(S,"transfer",_.M9(p,"transfer"));if(U){var Y;return(Y=U.transferState)!=null?Y:"TRANSFER_STATE_UNKNOWN"}U=_.I4(S,"offlineOrchestrationActionWrapperEntity",_.M9(p,"offlineOrchestrationActionWrapperEntity"));S=_.I4(S,"mainVideoEntity",_.M9(p,"mainVideoEntity"));return U||S?"TRANSFER_STATE_TRANSFER_IN_QUEUE":"TRANSFER_STATE_UNKNOWN"};
X$R=function(S,p){if(!p)return"TRANSFER_STATE_UNKNOWN";if(S=_.I4(S,"transfer",_.M9(p,"transfer"))){var U;return(U=S.transferState)!=null?U:"TRANSFER_STATE_UNKNOWN"}return"TRANSFER_STATE_UNKNOWN"};
Psd=function(S,p){return p&&(S=_.I4(S,"videoPlaybackPositionEntity",_.M9(p,"videoPlaybackPositionEntity")),S==null?0:S.lastPlaybackPositionSeconds)?Number(S.lastPlaybackPositionSeconds):0};
sUq=function(S,p){return ZLN(S).some(function(U){var Y;return(U==null?void 0:(Y=U.mainPlaylistEntity)==null?void 0:Y.playlistId)===p})};
gzd=function(S,p,U){var Y=eKd(S,p);if(!Y.length)return[];p=[];Y=_.d(Y);for(var L=Y.next();!L.done;L=Y.next()){L=L.value;var I=yr(S,L);U&&hKN(S,L)!=="TRANSFER_STATE_COMPLETE"||I&&p.push(I)}return p};
eKd=function(S,p){if(!p)return[];var U=_.M9(p,"mainPlaylistEntity"),Y;p=(Y=S.mainPlaylistEntity)==null?void 0:Y[U];Y=[];if(p==null||!p.videos)return Y;p=_.d(p.videos);for(U=p.next();!U.done;U=p.next()){U=U.value;var L=void 0,I=void 0,V=void 0,W=(L=S)==null?void 0:(I=L.mainPlaylistVideoEntity)==null?void 0:(V=I[U])==null?void 0:V.video;W&&(U=_.Uc(W).entityId)&&Y.push(U)}return Y};
u4G=function(S,p){if(p){var U=_.I4(S,"mainPlaylistEntity",_.M9(p,"mainPlaylistEntity")),Y=_.I4(S,"mainPlaylistDownloadStateEntity",_.M9(p,"mainPlaylistDownloadStateEntity"));S=_.I4(S,"ytMainChannelEntity",_.M9(p,"ytMainChannelEntity"));if(Y&&U)return Object.assign({},{mainPlaylistEntity:U,mainPlaylistDownloadStateEntity:Y},!!S&&{channelEntity:S})}};
ZLN=function(S){return w$G(S).sort(function(p,U){return U.addedTimestampMillis-p.addedTimestampMillis}).map(function(p){return p.downloadedPlaylistEntities})};
w$G=function(S){var p=S.mainPlaylistDownloadStateEntity,U=[];if(!p)return U;for(var Y=_.d(Object.keys(p)),L=Y.next();!L.done;L=Y.next()){var I=L.value;L=u4G(S,_.Uc(I).entityId);var V=void 0;I=Number((V=p[I])==null?void 0:V.addedTimestampMillis);V=isNaN(I)?(0,_.AI)():I;L!==void 0&&U.push({downloadedPlaylistEntities:L,addedTimestampMillis:V})}return U};
lEG=function(S){var p,U=(p=S.mainPlaylistVideoEntity)!=null?p:{};return new Set(ZLN(S).reduce(function(Y,L){Y=Y===void 0?[]:Y;var I,V;L==null||(I=L.mainPlaylistEntity)==null||(V=I.videos)==null||V.forEach(function(W){var O;(W=(O=U[W])==null?void 0:O.video)&&Y.push(W)});
return Y},[]))};
aEX=function(S){return"downloadedMusicPlaylistEntities"in S};
fEq=function(S){return"mainPlaylistEntity"in S&&"mainPlaylistDownloadStateEntity"in S};
Csu=function(S){return"videoEntity"in S&&"channelEntity"in S};
xvw=function(S){var p=S.musicPlaylistDownloadMetadataEntity,U=[];if(!p)return U;for(var Y=_.d(Object.keys(p)),L=Y.next();!L.done;L=Y.next()){L=L.value;a:{var I=S,V=_.Uc(L).entityId;if(V){var W=_.I4(I,"musicPlaylist",_.M9(V,"musicPlaylist"));I=_.I4(I,"musicPlaylistDownloadMetadataEntity",_.M9(V,"musicPlaylistDownloadMetadataEntity"));if(W&&I){W={musicPlaylistEntity:W,musicPlaylistDownloadStateEntity:I};break a}}W=void 0}I=void 0;L=Number((I=p[L])==null?void 0:I.addedTimestampMillis);L=isNaN(L)?(0,_.AI)():
L;W!==void 0&&U.push({downloadedMusicPlaylistEntities:W,addedTimestampMillis:L})}return U};
Eze=function(S){var p=new Set;S=_.d(S);for(var U=S.next();!U.done;U=S.next())if(U=U.value,"musicPlaylistEntity"in U&&"musicPlaylistDownloadStateEntity"in U){U=_.d(U.musicPlaylistEntity.tracks);for(var Y=U.next();!Y.done;Y=U.next())p.add(Y.value)}return p};
mvw=function(S,p){if(p){var U=_.I4(S,"musicTrack",_.M9(p,"musicTrack")),Y=_.I4(S,"musicArtist",_.M9(p,"musicArtist"))||{};if((S=JhN(S,p))&&U&&Y)return Object.assign({},{musicTrackEntity:U,musicArtistEntity:Y},S)}};
ozd=function(S){var p=S.musicTrackDownloadMetadataEntity,U=[];if(!p)return[];p=_.d(Object.keys(p));for(var Y=p.next();!Y.done;Y=p.next()){var L=Y.value;Y=mvw(S,_.Uc(L).entityId);var I=void 0;L=Number((I=_.I4(S,"musicTrackDownloadMetadataEntity",L))==null?void 0:I.addedTimestampMillis);I=isNaN(L)?(0,_.AI)():L;Y!==void 0&&U.push({downloadedMusicEntities:Y,addedTimestampMillis:I})}return U};
iLe=function(S,p){if(!p)return[];if(Object.values(vze).includes(p))return $vw(S,p);p=_.M9(p,"musicPlaylist");var U;S=(U=S.musicPlaylist)==null?void 0:U[p];U=[];if(S==null||!S.tracks)return U;S=_.d(S.tracks);for(p=S.next();!p.done;p=S.next())(p=_.Uc(p.value).entityId)&&U.push(p);return U};
$vw=function(S,p){var U=new Set,Y=xvw(S).map(function(I){return I.downloadedMusicPlaylistEntities});
Y=Eze(Y);Y=_.d(Y);for(var L=Y.next();!L.done;L=Y.next())(L=_.Uc(L.value).entityId)&&U.add(L);return NHu(S).downloadedMusicEntities.filter(function(I){var V;if((V=I.musicTrackEntity)!=null&&V.videoId){I=I.musicTrackEntity;if(V=p==="PPOM"?!0:!U.has(I.videoId))b:switch(I=I.musicVideoType,p){case "PPSE":V=I==="MUSIC_VIDEO_TYPE_PODCAST_EPISODE";break b;default:V=I!=="MUSIC_VIDEO_TYPE_PODCAST_EPISODE"}I=V}else I=!1;return I}).map(function(I){var V;
return(V=I.musicTrackEntity)==null?void 0:V.videoId})};
NHu=function(S){var p=ozd(S).sort(function(U,Y){return Y.addedTimestampMillis-U.addedTimestampMillis}).map(function(U){return"downloadedMusicEntities"in U?U.downloadedMusicEntities:aEX(U)?U.downloadedMusicPlaylistEntities:{}});
S=xvw(S).sort(function(U,Y){return Y.addedTimestampMillis-U.addedTimestampMillis}).map(function(U){return"downloadedMusicEntities"in U?U.downloadedMusicEntities:aEX(U)?U.downloadedMusicPlaylistEntities:{}});
return{downloadedMusicEntities:p,downloadedMusicPlaylistEntities:S}};
qSX=function(S,p){p=_.g7("INNERTUBE_CLIENT_NAME")==="WEB_REMIX"?iLe(S,p):eKd(S,p);if(!p.length)return"TRANSFER_STATE_UNKNOWN";p=p.map(function(U){return X$R(S,U)});
return BHE(p)};
BHE=function(S){var p=new Set(S);if(p.has("TRANSFER_STATE_FAILED")&&p.size===1)return"TRANSFER_STATE_FAILED";p.delete("TRANSFER_STATE_FAILED");if(p.has("TRANSFER_STATE_UNKNOWN")&&p.size===1)return"TRANSFER_STATE_PRE_TRANSFER";p.delete("TRANSFER_STATE_UNKNOWN");if(p.has("TRANSFER_STATE_PRE_TRANSFER")&&p.size===1||p.size===0)return"TRANSFER_STATE_PRE_TRANSFER";S=p.has("TRANSFER_STATE_TRANSFERRING");p=p.has("TRANSFER_STATE_TRANSFER_IN_QUEUE");return S||p?"TRANSFER_STATE_TRANSFERRING":"TRANSFER_STATE_COMPLETE"};
KK=function(S){var p=S.mainVideoDownloadStateEntity,U=[];if(!p)return[];p=_.d(Object.keys(p));for(var Y=p.next();!Y.done;Y=p.next()){var L=Y.value;if(!yhe(S,_.Uc(L).entityId)){Y=yr(S,_.Uc(L).entityId);var I=void 0,V=void 0;L=(V=Number((I=_.I4(S,"mainVideoDownloadStateEntity",L))==null?void 0:I.addedTimestampMillis))!=null?V:(0,_.AI)();Y!==void 0&&U.push({downloadedVideoEntities:Y,addedTimestampMillis:L})}}return U};
Ahw=function(S){return KK(S).sort(function(p,U){return U.addedTimestampMillis-p.addedTimestampMillis}).map(function(p){return p.downloadedVideoEntities})};
_.che=function(S){var p=lEG(S),U=_.bM(S),Y=GCR(S),L=KK(S).filter(function(V){var W,O;if((V==null?void 0:(W=V.downloadedVideoEntities)==null?void 0:(O=W.transferEntity)==null?void 0:O.transferState)!=="TRANSFER_STATE_COMPLETE")return!1;var D,z;V=V==null?void 0:(D=V.downloadedVideoEntities)==null?void 0:(z=D.videoEntity)==null?void 0:z.key;return _.y("kevlar_use_library_entity")?V&&(Y.has(V)||U[V]):V&&!p.has(V)}),I=w$G(S).filter(function(V){return qSX(S,V.downloadedPlaylistEntities.mainPlaylistEntity.playlistId)===
"TRANSFER_STATE_COMPLETE"});
return[].concat(_.jo(L),_.jo(I)).sort(function(V,W){return W.addedTimestampMillis-V.addedTimestampMillis}).map(function(V){return tiq(V)})};
SOR=function(S,p){if(p&&zKG(S,p)){var U,Y,L=(Y=(U=_.I4(S,"playbackData",_.M9(p,"playbackData")))!=null?U:void 0)==null?void 0:Y.playerResponseJson;if(L){try{var I=JSON.parse(L);var V=_.I4(S,"transfer",_.M9(p,"transfer")),W=Psd(S,p);W&&(I=Object.assign({},I,{playerConfig:Object.assign({},I.playerConfig,{playbackStartConfig:{startPosition:{streamTimeMillis:""+W*1E3}}})}));I.cotn=V==null?void 0:V.cotn}catch(O){}return I}}};
_.YOe=function(S){var p,U,Y;S=(Y=(U=((p=S.downloadsPageViewConfigurationEntity)!=null?p:{})[pjk])==null?void 0:U.smartDownloadsOptInBannerVisibility)!=null?Y:{};var L;return(L=_.b(S,Uce))!=null?L:{}};
_.bM=function(S){var p,U,Y;S=(Y=(U=((p=S.mainDownloadsListEntity)!=null?p:{})[_.LSw])==null?void 0:U.downloads)!=null?Y:[];p={};U=_.d(S);for(Y=U.next();!Y.done;Y=U.next())S=void 0,p[(S=Y.value.videoItem)!=null?S:""]=!0;return p};
Mqd=function(S){var p=_.bM(S);if(Object.keys(p).length===0)return!1;var U=S.mainVideoEntity;if(!U)return!0;U=_.d(Object.keys(U));for(var Y=U.next();!Y.done;Y=U.next()){Y=Y.value;var L=_.Uc(Y).entityId;if(p[Y]&&!yhe(S,L))return!1}return!0};
_.j4=function(S){var p=_.bM(S);return KK(S).sort(function(U,Y){return U.addedTimestampMillis-Y.addedTimestampMillis}).map(function(U){return U.downloadedVideoEntities}).filter(function(U){var Y;
return(U=U==null?void 0:(Y=U.videoEntity)==null?void 0:Y.key)&&!!p[U]})};
tiq=function(S){return"downloadedVideoEntities"in S?S.downloadedVideoEntities:"downloadedPlaylistEntities"in S?S.downloadedPlaylistEntities:{}};
IHe=function(S){var p=_.bM(S),U=lEG(S),Y=KK(S).filter(function(L){var I,V;return(L=L==null?void 0:(I=L.downloadedVideoEntities)==null?void 0:(V=I.videoEntity)==null?void 0:V.key)&&!p[L]&&!U.has(L)});
S=w$G(S);return[].concat(_.jo(Y),_.jo(S)).sort(function(L,I){return I.addedTimestampMillis-L.addedTimestampMillis}).map(function(L){return tiq(L)})};
_.rt=function(S){if(!_.y("kevlar_use_library_entity"))return IHe(S);var p=KK(S).filter(function(Y){var L,I;if(L=Y=Y==null?void 0:(L=Y.downloadedVideoEntities)==null?void 0:(I=L.videoEntity)==null?void 0:I.key){var V,W,O;L=((W=(V=S.mainDownloadsListEntity)==null?void 0:V[rhd])==null?0:(O=W.downloads)==null?0:O.length)?GCR(S).has(Y):!1}return L}),U=w$G(S);
return[].concat(_.jo(p),_.jo(U)).sort(function(Y,L){return L.addedTimestampMillis-Y.addedTimestampMillis}).map(function(Y){return tiq(Y)})};
dcr=function(S){var p=_.bM(S),U=lEG(S);return Ahw(S).filter(function(Y){var L;return(Y=Y==null?void 0:(L=Y.videoEntity)==null?void 0:L.key)&&!p[Y]&&!U.has(Y)})};
Vqd=function(S){if(!_.y("kevlar_use_library_entity"))return dcr(S);var p=_.bM(S),U=GCR(S);return Ahw(S).filter(function(Y){var L;return(Y=Y==null?void 0:(L=Y.videoEntity)==null?void 0:L.key)&&!p[Y]&&U.has(Y)})};
TeG=function(S,p){p=_.M9(p,"settingEntity");var U,Y,L;return!!((L=(Y=((U=S.settingEntity)!=null?U:{})[p])==null?void 0:Y.settingOptionValue)!=null?L:{}).boolValue};
_.Gf=function(S){var p=_.j4(S);if(Dve(p))return 0;var U=[];p=_.d(p);for(var Y=p.next();!Y.done;Y=p.next()){Y=Y.value;var L=void 0,I=void 0;if((L=Y)==null?0:(I=L.videoEntity)==null?0:I.key)L=_.Uc(Y.videoEntity.key).entityId,Y=S,L=_.M9(L,"mainVideoDownloadStateEntity"),Y=_.I4(Y,"mainVideoDownloadStateEntity",L),(Y=Number(Y==null?void 0:Y.addedTimestampMillis))&&U.push(Y)}return Math.max.apply(Math,_.jo(U))};
_.hZ=function(S){return S.ui.richGridMiniMode};
_.R4=function(S){return S.ui.richGridItemsPerRow};
_.WSu=function(S){return S.ui.richGridSlimItemsPerRow};
_.OQu=function(S){return S.ui.guideIsExpanded};
_.F1=function(S){return S.ui.miniplayerIsActive};
_.k1e=function(S){return S.ui.singleOptionSurveyIsActive};
_.PJ=function(S){return S.ui.currentPageType==="WEB_PAGE_TYPE_WATCH"};
_.HQX=function(S){return S.ui.currentPageType==="WEB_PAGE_TYPE_SHORTS"};
_.Dcw=function(S){return S.ui.inlinePreviewIsActive};
_.z2d=function(S){return S.ui.inlinePreviewIsEnabled};
_.QgG=function(S){return S.ui.miniplayerPlaybackState};
nSN=function(S){return S.ui.isOnline};
_.J1k=function(S){return S.ui.frostedGlassMode};
_.Z4=function(S,p){return hKN(S.entities,p)};
_.sc=function(S,p){return qSX(S.entities,p)};
y1E=function(S,p){var U;if(p){var Y;S=(Y=_.I4(S.entities,"offlineVideoPolicy",_.M9(p,"offlineVideoPolicy")))==null?void 0:Y.action}else S=void 0;return(U=S)!=null?U:"OFFLINE_VIDEO_POLICY_ACTION_UNKNOWN"};
KSw=function(S,p){var U;p?(S=_.I4(S.entities,"offlineVideoPolicy",_.M9(p,"offlineVideoPolicy")),S=Number(S==null?void 0:S.expirationTimestamp)):S=void 0;return(U=S)!=null?U:0};
_.bQG=function(S){return _.JZ(S.entities).length};
jgE=function(S,p){return yr(S.entities,p)};
r1N=function(S,p){return u4G(S.entities,p)};
e4=function(S,p){return(S=yr(S.entities,p))?_.Www([S]):0};
_.G1q=function(S,p){var U=_.g7("INNERTUBE_CLIENT_NAME")==="WEB_REMIX";if(U){var Y=S.entities;var L=iLe(Y,p);if(L.length){var I=[];L=_.d(L);for(var V=L.next();!V.done;V=L.next())(V=mvw(Y,V.value))&&I.push(V);Y=I}else Y=[]}else Y=gzd(S.entities,p);var W;if(U){var O=S.entities;p?(p=_.M9(p,"musicPlaylist"),O=(W=O.musicPlaylist)==null?void 0:W[p],W=O!=null&&O.tracks?O.tracks.length:0):W=0}else W=S.entities,p?(p=_.M9(p,"mainPlaylistEntity"),W=(O=W.mainPlaylistEntity)==null?void 0:O[p],W=W!=null&&W.videos?
W.videos.length:0):W=0;return Y.length!==W?0:Y?OLr(Y):0};
_.h2q=function(S){return S.download.isLeaderTab};
_.R2X=function(S,p,U){if(!p&&U){var Y=S.entities;if(U){var L=HLX(U),I,V;p=(V=(I=_.I4(Y,"offlineabilityEntity",_.M9(L,"offlineabilityEntity")))==null?void 0:I.addToOfflineButtonState)!=null?V:"ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"}else p="ADD_TO_OFFLINE_BUTTON_STATE_DISABLED"}else I=S.entities,p?(V=HLX(p),p=(L=(Y=_.I4(I,"offlineabilityEntity",_.M9(V,"offlineabilityEntity")))==null?void 0:Y.addToOfflineButtonState)!=null?L:"ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"):p="ADD_TO_OFFLINE_BUTTON_STATE_DISABLED";
return p};
FSR=function(S,p){S=S.entities;if(p){p=HLX(p);var U,Y;p=(Y=(U=_.I4(S,"offlineabilityEntity",_.M9(p,"offlineabilityEntity")))==null?void 0:U.addToOfflineButtonState)!=null?Y:"ADD_TO_OFFLINE_BUTTON_STATE_UNKNOWN"}else p="ADD_TO_OFFLINE_BUTTON_STATE_UNKNOWN";return p};
_.Xje=function(S){var p=S.entities;S=nSN(S);var U=TeG(p,"SMART_DOWNLOADS_OPT_IN_BANNER_DISMISSED");if(!_.y("kevlar_modern_downloads_page")&&U)var Y=!1;else{var L,I;p=(I=(L=((Y=p.downloadsPageViewConfigurationEntity)!=null?Y:{})[pjk])==null?void 0:L.smartDownloadsOptInBannerVisibility)!=null?I:{};Y=S?!!p.visibleWithConnection:!!p.visibleWithoutConnection}return Y};
_.PBq=function(S){return TeG(S.entities,"SMART_DOWNLOADS_ENABLED")};
_.ZQr=function(S){return Mqd(S.entities)};
sgX=function(S){return _.j4(S.entities).every(function(p){var U;return(p==null?void 0:(U=p.transferEntity)==null?void 0:U.transferState)&&!THw.includes(p.transferEntity.transferState)})};
_.e2e=function(S,p){return yhe(S.entities,p)};
gSX=function(S,p){if(p){var U,Y;S=(Y=(U=_.I4(S.entities,"downloadStatusEntity",_.M9(p,"downloadStatusEntity")))==null?void 0:U.downloadState)!=null?Y:"DOWNLOAD_STATE_UNKNOWN"}else S="DOWNLOAD_STATE_UNKNOWN";return S};
gt=function(S,p){return Psd(S.entities,p)};
aHw=function(S){S=_.uTe(S);var p=S.hours===void 0?0:S.hours,U=S.minutes===void 0?0:S.minutes,Y=S.seconds===void 0?0:S.seconds,L=p>0;S=[];L&&(p=_.wjd(p),S.push(p));p=L;p=p===void 0?!1:p;U=(["af","be","lt"].includes(_.uM)||p)&&U<10?lHE().format(U):(new Intl.NumberFormat("en-u-nu-latn")).format(U);S.push(U);U=lHE().format(Y);S.push(U);U=":";"da fi id si sr sr-Latn".split(" ").includes(_.uM)&&(U=".");return S.join(U)};
_.uTe=function(S){var p=S.hours||0,U=S.minutes||0,Y=S.seconds||0;p=Y+U*60+p*3600+(S.days||0)*86400+(S.weeks||0)*604800+(S.months||0)*2629800+(S.years||0)*31557600;if(p<=0)return{hours:0,minutes:0,seconds:0};S=p;p=Math.floor(S/3600);S%=3600;U=Math.floor(S/60);Y=Math.floor(S%60);return{hours:p,minutes:U,seconds:Y}};
_.wjd=function(S){S=(new Intl.NumberFormat("en-u-nu-latn")).format(S);var p=["fr"],U="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(_.uM)?S.replace(",","\u00a0"):p.includes(_.uM)?S.replace(",","\u202f"):U.includes(_.uM)?S.replace(",","."):S};
lHE=function(){return new Intl.NumberFormat("en-u-nu-latn",{minimumIntegerDigits:2})};
fHG=function(S){try{return(new _.wt(5)).format(S)}catch(p){}};
lM=function(S){return{thumbnailOverlayDownloadingRenderer:{state:S}}};
CBq=function(S){if(S=fHG(S))return{thumbnailOverlaySidePanelRenderer:{text:_.Aa(S),icon:{iconType:"PLAYLISTS"}}}};
xcG=function(){var S=_.Oh("PLAY_ALL",void 0,"Play all");return{thumbnailOverlayHoverTextRenderer:{text:_.Aa(S),icon:{iconType:"PLAY_ALL"}}}};
ESw=function(S){S=_.a4(S,2);return _.uM!=="ru"&&_.uM!=="es_419"&&_.uM!=="es-419"&&_.uM!=="es"&&_.uM!=="es_US"&&_.uM!=="es-US"&&_.uM!=="fr"&&_.uM!=="pl"&&_.uM!=="it"&&_.uM!=="nl"&&_.uM!=="uk"&&_.uM!=="fr_CA"&&_.uM!=="fr-CA"||S===""?S:S[0].toLocaleUpperCase()+S.substring(1)};
oSE=function(S){return function(p){var U=S(),Y=_.a4(p,U.dateFormat);p=_.a4(p,U.timeFormat);var L=mcN.DATETIMEFORMATS[U.joinerStyle];L=L.replace(/'(?!')/g,"");L=L.replace("{0}",p);L=L.replace("{1}",Y);return U.capitalize(L)}};
vSr=function(S){return S?typeof S.seconds==="string"&&(S.nanos===void 0||typeof S.nanos==="number"):!1};
$ce=function(S){return new Date(Number(S.seconds)*1E3+(S.nanos||0)*1E-6)};
_.a4=function(S,p){if(typeof S.getTime==="function")S={date:S};else if(vSr(S))S={date:$ce(S)};else if(typeof vSr(S.timestamp)&&typeof S.i18nInternalSecondsEastOfUtc==="number")S={date:$ce(S.timestamp),timeZone:fK(-S.i18nInternalSecondsEastOfUtc/60)};else throw Error("Bf`"+JSON.stringify(S));var U=S;S=U.date;U=U.timeZone;p=iQR(p).format(S,U);_.uM==="zh-TW"&&(S=U?Number(iQR("H").format(S,U)):S.getHours(),p=S<5?p.replace("\u4e0a\u5348","\u51cc\u6668"):S<8?p.replace("\u4e0a\u5348","\u65e9\u4e0a"):S<12?
p.replace("\u4e0a\u5348","\u4e0a\u5348"):S<13?p.replace("\u4e0b\u5348","\u4e2d\u5348"):S<19?p.replace("\u4e0b\u5348","\u4e0b\u5348"):p.replace("\u4e0b\u5348","\u665a\u4e0a"));return p};
iQR=function(S){if(NeR.has(S))return NeR.get(S);var p=Beq(S);p=qOG(p);A1w!==!0&&(A1w=!0);tqr=!0;tqr=!1;p=new CK(p,mcN);NeR.set(S,p);return p};
Beq=function(S){return(new CK(S,mcN)).patternParts_.map(function(p){return p.type===0?"'"+p.text+"'":p.text}).join("")};
qOG=function(S){return _.uM==="en"||_.uM==="es_US"||_.uM==="es-US"?S:S.replace(/(?:a\s?)?([hK]+)([:.]mm)(?:\s?a)?/g,function(p,U,Y){return"H".repeat(U.length)+Y})};
IrG=function(S,p){c1u||(_.xl=_.S8G,c1u=new ptR);var U=c1u;a:if(S=UuE(S),p=UuE(p||new Date),S>p)U=S.getTime()-p.getTime()>6048E5?_.a4(S,1):Y8R(S);else{for(var Y=0;LtX(S,12*(Y+1))<p;)++Y;if(Y>0)U=U.format(-Y,0);else{for(Y=0;LtX(S,Y+1)<p;)++Y;if(Y>0)U=U.format(-Y,2);else{S=p.getTime()-S.getTime();p=_.d(M8X);for(Y=p.next();!Y.done;Y=p.next()){Y=Y.value;var L=Y.unit,I=Math.floor(S/Y.unitDuration);if(I>=(Y.threshold===void 0?1:Y.threshold)){U=U.format(-I,L);break a}}U=U.format(-0,7)}}}return U};
UuE=function(S){if(typeof S.getTime==="function")return S;if(vSr(S))return $ce(S);throw Error("Cf`"+JSON.stringify(S));};
LtX=function(S,p){for(var U=0,Y;;++U)if(Y=new Date(S.getFullYear(),S.getMonth()+p,S.getDate()-U,S.getHours(),S.getMinutes(),S.getSeconds()),Y.getMonth()===(S.getMonth()+p)%12)return Y};
_.Ec=function(S){return{runs:[{text:S}]}};
_.mA=function(S){if(S&&S.simpleText)return S.simpleText;var p="";if(S&&S.runs)for(var U=0;U<S.runs.length;U++)S.runs[U].text&&(p+=S.runs[U].text);return p};
V8q=function(S,p,U,Y){return S.videoEntity&&!S.policyEntity&&U!=="DOWNLOAD_STATE_FAILED"?[lM("THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_DOWNLOADING")]:D4(S.policyEntity)&&p!=="TRANSFER_STATE_FAILED"&&p!=="TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH"?p==="TRANSFER_STATE_PAUSED_BY_USER"?[lM("THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_PAUSED_BY_USER")]:_.zf(p)?[lM("THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_DOWNLOADING")]:S.videoEntity.lengthSeconds?due(S.videoEntity.lengthSeconds,Y):[]:
[lM("THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_FAILED")]};
due=function(S,p){var U=[{thumbnailOverlayTimeStatusRenderer:{text:_.Aa(aHw({seconds:S})),style:"DEFAULT"}}];p&&(S=p<=0||S<=0?0:p>=S?100:Math.ceil(p*100/S),S>0&&U.push({thumbnailOverlayResumePlaybackRenderer:{percentDurationWatched:S}}));return U};
T_u=function(S,p,U,Y,L){if(p==="TRANSFER_STATE_UNKNOWN"||!S)return{};if(_.zf(p)||p==="TRANSFER_STATE_PRE_TRANSFER")var I=[lM("THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_DOWNLOADING")];else{var V,W;if(p==="TRANSFER_STATE_COMPLETE"&&((V=S.mainPlaylistEntity)==null?0:(W=V.videos)==null?0:W.length)){if(_.y("web_modern_collections_v2")){var O;var D=(I=S.mainPlaylistEntity)==null?void 0:(O=I.videos)==null?void 0:O.length;I=(I=fHG(D))?{thumbnailOverlayBottomPanelRenderer:{text:_.Aa(I),icon:{iconType:"PLAYLISTS"}}}:
void 0}else{var z;I=CBq((D=S.mainPlaylistEntity)==null?void 0:(z=D.videos)==null?void 0:z.length)}var Q;I=[xcG(),Object.assign({},(Q=I)!=null?Q:{})]}else I=[]}Q=I;a:if(p==="TRANSFER_STATE_PRE_TRANSFER")U=ta(_.Oh("PREPARING_TO_DOWNLOAD",void 0,"Preparing to download..."));else if(p==="TRANSFER_STATE_TRANSFER_IN_QUEUE")U=ta(_.Oh("WAITING_TO_DOWNLOAD"));else if(_.zf(p))U=Math.floor(U*100).toString(),U=ta(_.Oh("DOWNLOADING_PERCENT",{percent:U},"Downloading... "+U+"%"));else{if(Y&&(_.y("playlist_is_offline_selector_killswitch")&&
(L=_.tW().resolve(_.EP).isNetworkAvailable()),L)){U=mVq(_.Oh("VIEW_FULL_PLAYLIST",void 0,"View full playlist"),xVe(Y));break a}U=void 0}p=p==="TRANSFER_STATE_COMPLETE"?[{metadataBadgeRenderer:{label:_.Oh("DOWNLOADED",void 0,"Downloaded"),style:"BADGE_STYLE_TYPE_SIMPLE"}}]:[];return Object.assign({},Q.length?{thumbnailOverlays:Q}:{},U?{viewPlaylistText:U}:{viewPlaylistText:_.Ec("")},p.length?{badges:p}:{})};
WtN=function(S,p,U,Y,L,I){if(p==="TRANSFER_STATE_UNKNOWN"||!S)return{};if(Y==="DOWNLOAD_STATE_USER_DELETED")return{shortViewCountText:void 0,publishedTimeText:void 0,badges:void 0,thumbnailOverlays:void 0};var V=V8q(S,p,Y);if(S.videoEntity&&!S.policyEntity&&Y!=="DOWNLOAD_STATE_FAILED"){var W=_.Oh("WAITING_TO_DOWNLOAD");if(W)return{shortViewCountText:_.Ec(W),publishedTimeText:void 0,thumbnailOverlays:V}}if(!D4(S.policyEntity)){I=S.policyEntity&&!kCe(S.policyEntity)?_.Oh("DOWNLOAD_EXPIRED",{},"Download expired"):
_.Oh("TRANSFER_FAILED",{},"Download failed");var O;if((O=S.policyEntity)==null?0:O.shortMessageForDisabledAction)I=S.policyEntity.shortMessageForDisabledAction;return{shortViewCountText:ta(I),publishedTimeText:void 0,thumbnailOverlays:V}}if(p==="TRANSFER_STATE_PAUSED_BY_USER")return{shortViewCountText:_.Ec(_.Oh("DOWNLOAD_PAUSED",{},"Download paused")),publishedTimeText:void 0,thumbnailOverlays:V};if(p==="TRANSFER_STATE_FAILED"||p==="TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH")return{shortViewCountText:_.Ec(_.Oh("TRANSFER_FAILED",
{},"Download failed")),publishedTimeText:void 0,thumbnailOverlays:V};if(p==="TRANSFER_STATE_TRANSFER_IN_QUEUE"&&(O=_.Oh("WAITING_TO_DOWNLOAD"),Y==="DOWNLOAD_STATE_PAUSED"&&(O=_.Oh("DOWNLOAD_PAUSED",{},"Download paused")),O))return{shortViewCountText:_.Ec(O),publishedTimeText:void 0,thumbnailOverlays:V};if(_.zf(p))return S=Math.floor(U*100).toString(),{shortViewCountText:_.Ec(_.Oh("DOWNLOADING_PERCENT",{percent:S},"Downloading... "+S+"%")),publishedTimeText:void 0,thumbnailOverlays:V};p=void 0;S.videoEntity.publishedTimestampMillis&&
(p=new Date,L&&(p=new Date(L)),p=ta(IrG(new Date(Number(S.videoEntity.publishedTimestampMillis)),p)));L=[];_.y("kevlar_woffle_badge_killswitch")||(L=[{metadataBadgeRenderer:{label:_.Oh("DOWNLOADED",void 0,"Downloaded"),style:"BADGE_STYLE_TYPE_SIMPLE"}}]);var D;S=ta((D=S.videoEntity.localizedStrings)==null?void 0:D.viewCount);return Object.assign({},I?{shortViewCountText:void 0}:{shortViewCountText:S},I?{}:{publishedTimeText:p},{badges:L,thumbnailOverlays:V})};
kEe=function(S,p){S=S===void 0?Oar:S;switch(p.type){case "SET_COLLAB_INVITE_LINK":return{playlistId:p.payload.playlistId,inviteLinkURL:p.payload.inviteLinkUrl};default:return S}};
DuE=function(S,p){S=S===void 0?Hae:S;switch(p.type){case "SET_CURRENT_FORM_ID":return p=p.payload.formId,S.currentFormId===p?S:{currentFormId:p,commandsMap:{}};case "SET_COMMAND_FOR_GROUP_ID":var U=p.payload;p=U.groupId;U=U.command;if(S.currentFormId){var Y=Object.assign({},S.commandsMap);Y[p]=U;S=Object.assign({},S,{commandsMap:Y})}return S;case "RESET_COMMAND_MAP":return Object.assign({},S,{commandsMap:{}});default:return S}};
Q6q=function(S,p){S=S===void 0?zte:S;switch(p.type){case "SET_GUIDE_IS_EXPANDED":return Object.assign({},S,{guideIsExpanded:p.payload});case "SET_SCROLL_AT_TOP":return Object.assign({},S,{scrollAtTop:p.payload});case "SET_GUIDE_IS_VISIBLE_BUT_NOT_PERSISTENT":return Object.assign({},S,{guideIsVisibleButNotPersistent:p.payload});case "SET_MINIPLAYER_IS_ACTIVE":return Object.assign({},S,{miniplayerIsActive:p.payload});case "SET_SINGLE_OPTION_SURVEY_IS_ACTIVE":return Object.assign({},S,{singleOptionSurveyIsActive:p.payload});
case "SET_SLIMLINE_SURVEY_RATING_SELECTED_INDEX":return Object.assign({},S,{slimlineSurveyRatingSelectedIndex:p.payload});case "SET_RICH_GRID_MINI_MODE":return Object.assign({},S,{richGridMiniMode:p.payload});case "SET_RICH_GRID_ITEMS_PER_ROW":return Object.assign({},S,{richGridItemsPerRow:p.payload});case "SET_RICH_GRID_SLIM_ITEMS_PER_ROW":return Object.assign({},S,{richGridSlimItemsPerRow:p.payload});case "SET_RICH_GRID_CONTAINER_WIDTH":return Object.assign({},S,{richGridContainerWidth:p.payload});
case "SET_RICH_GRID_STYLE":return Object.assign({},S,{richGridStyle:p.payload});case "SET_CURRENT_PAGE_TYPE":return Object.assign({},S,{currentPageType:p.payload});case "SET_INLINE_PREVIEW_IS_ACTIVE":return Object.assign({},S,{inlinePreviewIsActive:p.payload});case "SET_INLINE_PREVIEW_IS_ENABLED":return Object.assign({},S,{inlinePreviewIsEnabled:p.payload});case "SET_DARK_MODE_IS_ENABLED":return Object.assign({},S,{darkModeIsEnabled:p.payload});case "SET_MINIPLAYER_PLAYBACK_STATE":return Object.assign({},
S,{miniplayerPlaybackState:p.payload});case "SET_TAB_GESTURES_IS_ACTIVE":return Object.assign({},S,{tabGesturesIsActive:p.payload});case "SET_ONLINE_STATUS":return Object.assign({},S,{isOnline:p.payload});case "SET_CHIP_BAR_IS_STICKY":return Object.assign({},S,{chipBarIsSticky:p.payload});case "SET_FROSTED_GLASS_MODE":return Object.assign({},S,{frostedGlassMode:p.payload});default:return S}};
J4N=function(S,p){S=S===void 0?nVN:S;switch(p.type){case "SET_TRANSCRIPTION_STATE":return Object.assign({},S,{transcription:p.payload});case "SET_OVERLAY_STATE":return Object.assign({},S,{overlay:p.payload});case "RESET_VOICE_SEARCH_STATE":return{};default:return S}};
Xtw=function(){return T0(Object.assign({},{continuation:y4R,entities:Mdw,download:Kte,reportChannelAbuse:baq,share:j6e,talkToRecs:r4R,ui:Q6q,voiceSearch:J4N,watch:GER,ypc:hte,shorts:RtE,radioButtonGroup:DuE,collabInviteLink:kEe},FtE))};
s6R=function(){return _.y("web_player_entities_middleware")?new o4(Xtw(),[PlG,ZaN]):new o4(Xtw(),[PlG])};
_.vJ=function(){etR||(etR=s6R());return etR};
gVE=function(S,p,U){if(S.length)return{titleText:_.Aa(p!=null?p:_.Oh("DOWNLOADS",void 0,"Downloads")),contents:S.map(function(Y){var L=Y.videoEntity;Y={videoId:L.videoId,title:ta(L.title),shortBylineText:ta(Y.channelEntity.title),thumbnail:L.thumbnail};var I=L.videoId?gt(_.vJ().getState(),L.videoId):0;L.videoId&&U?Y.navigationEndpoint=_.qw(L.videoId,U,void 0,void 0,I):L.videoId&&(Y.navigationEndpoint=Caw(L.videoId,I,L.lengthSeconds));L.lengthSeconds&&(Y.thumbnailOverlays=due(L.lengthSeconds,I));return{playlistPanelVideoRenderer:Y}}),
totalVideos:S.length}};
uze=function(S){return(S=(0,_.h9.getValueByKeys)(S,"playlistId"))?{playlistId:S}:null};
wtG=function(){return{}};
lrR=function(S,p){return new _.O9(function(U,Y){S.then(function(L){if(L){if(L=p(L))return U(L);Y()}},Y)})};
are=function(S){var p,U,Y,L=(p=S.contents)==null?void 0:(U=p.twoColumnWatchNextResults)==null?void 0:(Y=U.autoplay)==null?void 0:Y.autoplay,I,V,W;p=(I=S.contents)==null?void 0:(V=I.twoColumnWatchNextResults)==null?void 0:(W=V.playlist)==null?void 0:W.playlist;return L&&p&&p.playlistId?{rawResponse:S,autoplayRenderer:L,playlistPanelRenderer:p,playlistId:p.playlistId}:null};
Clw=function(S){var p=p===void 0?"UNKNOWN_INTERFACE":p;if(S.length===1)return S[0];var U=fru[p];if(U){U=new RegExp(U);for(var Y=_.d(S),L=Y.next();!L.done;L=Y.next())if(L=L.value,U.exec(L))return L}var I=[];Object.entries(fru).forEach(function(V){var W=_.d(V);V=W.next().value;W=W.next().value;p!==V&&I.push(W)});
U=new RegExp(I.join("|"));S.sort(function(V,W){return V.length-W.length});
Y=_.d(S);for(L=Y.next();!L.done;L=Y.next())if(L=L.value,!U.exec(L))return L;return S[0]};
_.$l=function(S){return"/youtubei/v1/"+Clw(S)};
_.iM=function(S){return{openPopupAction:{popupType:"TOAST",popup:{notificationActionRenderer:{responseText:S}}}}};
_.N9=function(S){return _.iM(_.Ec(S))};
xuG=function(S,p){var U={mode:"NORMAL"};S&&(U.autoplayVideo=S.navigationEndpoint,U.nextButtonVideo=S.navigationEndpoint);p&&(U.previousButtonVideo=p.navigationEndpoint);return U};
oVR=function(S,p,U){if(!U||!U.sets)return{sets:[xuG(S,p)]};var Y=U.sets.find(function(V){return V.mode==="NORMAL"}),L=(0,_.h9.unsafeClone)(U);
if(!Y)return L.sets.push(xuG(S,p)),L;if(!S)return U;Y=_.h9.getValueByKeys.apply(null,[Y].concat(_.jo(EVG)));var I=_.h9.getValueByKeys.apply(null,[S].concat(_.jo(muu)));if(Y===I)return U;L.sets=L.sets.filter(function(V){return V.mode!=="NORMAL"});
L.sets.push(xuG(S,p));return L};
vVR=function(S){return!!S.playlistPanelVideoRenderer&&!S.playlistPanelVideoRenderer.unplayableText};
$uE=function(S){return!!S.playlistPanelVideoRenderer&&!!S.playlistPanelVideoRenderer.title};
iaN=function(S,p){if(p.contents&&!(S>=p.contents.length)&&(S=p.contents.slice(S).find(vVR)))return S.playlistPanelVideoRenderer};
N_E=function(S,p){if(p.contents)return(p=p.contents.find(function(U){return!!U.playlistPanelVideoRenderer&&U.playlistPanelVideoRenderer.videoId===S}))?p.playlistPanelVideoRenderer:void 0};
B_u=function(S,p){return p.contents?p.contents.findIndex(function(U){return!!U.playlistPanelVideoRenderer&&U.playlistPanelVideoRenderer.videoId===S}):-1};
q8u=function(S,p){return p.contents?p.contents.findIndex(function(U){return!!U.playlistPanelVideoRenderer&&U.playlistPanelVideoRenderer.playlistSetVideoId===S}):-1};
A4e=function(S,p){S.contents&&p!==-1&&S.contents.splice(p,1).length===1&&S.totalVideos!==void 0&&(--S.totalVideos,delete S.videoCountText)};
_.t8E=function(S){var p=[];if(!S||!S.contents)return p;S=_.d(S.contents);for(var U=S.next();!U.done;U=S.next())U=U.value,U.playlistPanelVideoRenderer&&U.playlistPanelVideoRenderer.videoId&&p.push(U.playlistPanelVideoRenderer.videoId);return p};
_.c4w=function(S){if(S&&S.contents)return(S=S.contents.find(function(p){return!!p.playlistPanelVideoRenderer&&!!p.playlistPanelVideoRenderer.selected})||S.contents[S.currentIndex])?S.playlistPanelVideoRenderer:void 0};
Szd=function(S,p,U,Y,L,I,V){L=L===void 0?!1:L;I=I===void 0?!1:I;V=V===void 0?!1:V;if(S.contents&&S.contents.length!==0){Y&&(S.contents=S.contents.filter(Y));Y=S.contents.length;for(var W=0;W<Y;W++){var O=S.contents[W].playlistPanelVideoRenderer;O&&(W===p?(I&&delete O.menu,O.indexText=_.Ec("\u25b6")):L||S.isInfinite||O.indexText===void 0?delete O.indexText:O.indexText=_.Ec((W+1+U).toString()))}S.currentIndex=p+U;V&&(delete S.videoCountText,S.totalVideos=Y)}};
_.BJ=function(S){S=plG(S);if(S){var p=S.length;var U=-36%p;U<0&&(U=p+U);S=S.slice(p-U)+S.slice(0,p-U)}else S="";U="";for(p=0;p<S.length&&S[p]!==UHd;p++)U+=S[p];return U};
_.YzG=function(S,p){var U=document.body;p=p===void 0?function(W){return W}:p;
var Y,L=null;S=_.d(S);for(Y=S.next();!Y.done;Y=S.next()){var I=Y.value;Y=void 0;var V=(Y=I[2])!=null?Y:"div";Y=document.createElement(V);L||(L=Y);V=I[0];I=I[1];V&&(Y.id=p(V));if(I)for(I=_.d(I),V=I.next();!V.done;V=I.next())Y.classList.add(p(V.value));U.appendChild(Y);U=Y}return[L,U]};
LVE=function(S,p){for(var U="",Y=0;Y<p;Y++)U+=S.charAt(Math.floor(Math.random()*S.length));return U};
q9=function(S){return LVE("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-_",S)};
AZ=function(S){return LVE("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789",S)};
tZ=function(S){return LVE("0123456789",S)};
cJ=function(){var S=performance.now(),p=new Date;var U="2."+p.getFullYear()+String(p.getMonth()+1).padStart(2,"0")+String(p.getDate()).padStart(2,"0");for(var Y,L=Math.floor(Math.random()*11)+15,I=[],V=0;V<L;V++)I.push(Math.floor(Math.random()*26476865)+24547720);Y=I.join(",");var W=q9(10),O=q9(100),D=q9(102),z=q9(106),Q=q9(108),J=q9(11),K=q9(1140),G=q9(123),X=q9(14),Z=q9(16),l=q9(1900),a=q9(23),N=q9(26),m=q9(34),A=q9(397),q=q9(44),TG=q9(5),Je=q9(72),GG=q9(74),Zw=q9(75),Ru=q9(88),sX=q9(91),mq="rr4---sn-q4fl6ndl rr5---sn-q4fl6nsl rr3---sn-q4flrney rr4---sn-q4flrnlz rr2---sn-aigzrne7 rr4---sn-q4fl6n6z rr5---sn-q4flrnes rr2---sn-q4flrney rr3---sn-hgn7rnee rr5---sn-q4flrnsd rr5---sn-q4fl6nsr rr3---sn-aigl6nsd rr2---sn-hgn7ynek rr3---sn-q4fzene7 rr2---sn-q4flrnle rr3---sn-q4fl6nde rr4---sn-q4fl6n6d rr3---sn-q4fl6nsr rr5---sn-ntq7yney rr5---sn-q4fzen7l".split(" ");
var au=mq[Math.floor(Math.random()*mq.length)];var XI=(new Date("2010-01-01")).getTime();var nE=(new Date(XI+Math.random()*((new Date).getTime()-XI))).toISOString().split("T")[0];for(var ut,Hw=[],Tj=0;Tj<4;Tj++)Hw.push(Math.floor(Math.random()*100));ut=Hw.join(".");var Ut=Number(tZ(5)),Ww=Number(tZ(6)),kA=Number(tZ(7)),XO=Number(tZ(9)),Vw=tZ(1),Kc=tZ(10),eQ=tZ(16),x5=tZ(19),rm=tZ(2),Bw=tZ(20),oO=tZ(21),$m=tZ(3),Mt=tZ(4),El=tZ(5),KE=tZ(6),yH=tZ(7),Gj=tZ(8),MY=tZ(9);var V2=LVE("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-_/+",
27352);var Tq=[AZ(5),AZ(5),AZ(5)].join("%2C"),Ku=[tZ(3),tZ(5),tZ(5)].join("%2C"),VT=AZ(0),Cc=AZ(1),aT=AZ(10),td=AZ(108),V8=AZ(11),Ix=AZ(12),F5=AZ(13),CS=AZ(14),rE=AZ(15),cE=AZ(16),OP=AZ(17),be=AZ(18),wN=AZ(19),EX=AZ(2),Dd=AZ(20),IT=AZ(22),PY=AZ(23),Ds=AZ(24),Jq=AZ(266),zj=AZ(3),bJ=AZ(30),HY=AZ(34),IP=AZ(35),y2=AZ(36),ys=AZ(4),u4=AZ(40),bV=AZ(43),k7=AZ(47),Qr=AZ(5),vk=AZ(6),di=AZ(7),TD=AZ(75),WY=AZ(8),X5=AZ(80),fu=AZ(9),Z3="https://www."+AZ(12)+".com",QY={},nT={},y_={},v5G={},Kg={},Ef={},mT={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:Y}]},{service:"CSI",params:[{key:"yt_ad",value:"1"},{key:"c",value:"WEB"},{key:"cver",value:U},{key:"yt_li",value:"1"},{key:"GetPlayer_rid",value:"0x"+AZ(16).toLowerCase()}]},{service:"GUIDED_HELP",params:[{key:"logged_in",
value:"1"}]},{service:"ECATCHER",params:[{key:"client.version",value:U},{key:"client.name",value:"WEB"},{key:"client.fexp",value:Y}]}],maxAgeSeconds:0,mainAppWebResponseContext:{datasyncId:oO+"||",loggedOut:!1,trackingParam:"kx_fmPxh"+AZ(73)},webResponseContextExtensionData:{hasDecorated:!0}},playabilityStatus:{status:"OK",playableInEmbed:!0,offlineability:{buttonRenderer:{serviceEndpoint:{clickTrackingParams:u4,ypcGetOfflineUpsellEndpoint:{params:X5}},trackingParams:IP+"="}},miniplayer:{miniplayerRenderer:{playbackMode:"PLAYBACK_MODE_ALLOW"}},
contextParams:"Q0FFU0FnZ0M="},streamingData:{expiresInSeconds:"21540",formats:[{itag:18,url:"https://"+au+".googlevideo.com/videoplayback?expire="+Kc+"&ei="+a+"&ip="+ut+"&id=o-AF"+bV+"&itag=18&source=youtube&requiressl=yes&mh=X6&mm="+Ku+"&mn="+Tq+"&ms="+Tq+"&mv="+Cc+"&mvi="+Vw+"&pl="+rm+"&initcwndbps="+yH+"&siu="+Vw+"&spc="+q+"&vprv="+Vw+"&svpuc="+Vw+"&mime=video%2Fmp4&ns="+Ds+"&cnr="+rm+"&ratebypass=yes&dur="+Gj+"&lmt="+eQ+"&mt="+Kc+"&fvip=3&c=WEB&txp="+yH+"&n="+Z+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Ccnr%2Cratebypass%2Cdur%2Clmt&sig="+
Q+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+Q,mimeType:'video/mp4; codecs="avc1.42001E, mp4a.40.2"',bitrate:Ww,width:640,height:360,lastModified:eQ,quality:"medium",fps:30,qualityLabel:"360p",projectionType:"RECTANGULAR",audioQuality:"AUDIO_QUALITY_LOW",approxDurationMs:yH,audioSampleRate:"44100",audioChannels:2},{itag:22,url:"https://"+au+".googlevideo.com/videoplayback?expire="+Kc+"&ei="+a+"&ip="+ut+"&id=o-AF"+bV+"&itag=22&source=youtube&requiressl=yes&mh=X6&mm="+Ku+"&mn="+
Tq+"&ms="+Tq+"&mv="+Cc+"&mvi="+Vw+"&pl="+rm+"&initcwndbps="+yH+"&siu="+Vw+"&spc="+q+"&vprv="+Vw+"&svpuc="+Vw+"&mime=video%2Fmp4&ns="+Ds+"&cnr="+rm+"&ratebypass=yes&dur="+Gj+"&lmt="+eQ+"&mt="+Kc+"&fvip=3&c=WEB&txp="+yH+"&n="+Z+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Ccnr%2Cratebypass%2Cdur%2Clmt&sig="+td+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+Q,mimeType:'video/mp4; codecs="avc1.64001F, mp4a.40.2"',bitrate:Ww,width:1280,
height:720,lastModified:eQ,quality:"hd720",fps:30,qualityLabel:"720p",projectionType:"RECTANGULAR",audioQuality:"AUDIO_QUALITY_MEDIUM",approxDurationMs:yH,audioSampleRate:"44100",audioChannels:2}],adaptiveFormats:[{itag:137,url:"https://"+au+".googlevideo.com/videoplayback?expire="+Kc+"&ei="+a+"&ip="+ut+"&id=o-AF"+bV+"&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="+Ku+"&mn="+Tq+"&ms="+
Tq+"&mv="+Cc+"&mvi="+Vw+"&pl="+rm+"&initcwndbps="+yH+"&siu="+Vw+"&spc="+q+"&vprv="+Vw+"&svpuc="+Vw+"&mime=video%2Fmp4&ns="+Ds+"&gir="+zj+"&clen="+MY+"&dur="+Gj+"&lmt="+eQ+"&mt="+Kc+"&fvip=3&keepalive="+zj+"&c=WEB&txp="+yH+"&n="+cE+"&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="+Q,mimeType:'video/mp4; codecs="avc1.640028"',bitrate:kA,width:1920,height:1080,
initRange:{start:"0",end:"740"},indexRange:{start:$m,end:Mt},lastModified:eQ,contentLength:MY,quality:"hd1080",fps:30,qualityLabel:"1080p",projectionType:"RECTANGULAR",averageBitrate:kA,approxDurationMs:yH},{itag:248,url:"https://"+au+".googlevideo.com/videoplayback?expire="+Kc+"&ei="+a+"&ip="+ut+"&id=o-AF"+bV+"&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="+Ku+"&mn="+Tq+"&ms="+Tq+"&mv="+
Cc+"&mvi="+Vw+"&pl="+rm+"&initcwndbps="+yH+"&siu="+Vw+"&spc="+q+"&vprv="+Vw+"&svpuc="+Vw+"&mime=video%2Fwebm&ns="+Ds+"&gir="+zj+"&clen="+MY+"&dur="+Gj+"&lmt="+eQ+"&mt="+Kc+"&fvip=3&keepalive="+zj+"&c=WEB&txp="+yH+"&n="+cE+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+z+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+Q,mimeType:'video/webm; codecs="vp9"',bitrate:kA,width:1920,height:1080,initRange:{start:"0",
end:"220"},indexRange:{start:$m,end:Mt},lastModified:eQ,contentLength:MY,quality:"hd1080",fps:30,qualityLabel:"1080p",projectionType:"RECTANGULAR",averageBitrate:kA,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:yH},{itag:399,url:"https://"+au+".googlevideo.com/videoplayback?expire="+Kc+"&ei="+a+"&ip="+ut+"&id=o-AF"+bV+"&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="+
Ku+"&mn="+Tq+"&ms="+Tq+"&mv="+Cc+"&mvi="+Vw+"&pl="+rm+"&initcwndbps="+yH+"&siu="+Vw+"&spc="+q+"&vprv="+Vw+"&svpuc="+Vw+"&mime=video%2Fmp4&ns="+Ds+"&gir="+zj+"&clen="+MY+"&dur="+Gj+"&lmt="+eQ+"&mt="+Kc+"&fvip=3&keepalive="+zj+"&c=WEB&txp="+yH+"&n="+cE+"&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="+Q,mimeType:'video/mp4; codecs="av01.0.08M.08"',bitrate:kA,
width:1920,height:1080,initRange:{start:"0",end:"699"},indexRange:{start:$m,end:Mt},lastModified:eQ,contentLength:MY,quality:"hd1080",fps:30,qualityLabel:"1080p",projectionType:"RECTANGULAR",averageBitrate:kA,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:yH},{itag:136,url:"https://"+au+".googlevideo.com/videoplayback?expire="+Kc+"&ei="+a+"&ip="+ut+"&id=o-AF"+bV+"&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="+
Ku+"&mn="+Tq+"&ms="+Tq+"&mv="+Cc+"&mvi="+Vw+"&pl="+rm+"&initcwndbps="+yH+"&siu="+Vw+"&spc="+q+"&vprv="+Vw+"&svpuc="+Vw+"&mime=video%2Fmp4&ns="+Ds+"&gir="+zj+"&clen="+MY+"&dur="+Gj+"&lmt="+eQ+"&mt="+Kc+"&fvip=3&keepalive="+zj+"&c=WEB&txp="+yH+"&n="+cE+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+Q+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+Q,mimeType:'video/mp4; codecs="avc1.4d401f"',bitrate:kA,
width:1280,height:720,initRange:{start:"0",end:"738"},indexRange:{start:$m,end:Mt},lastModified:eQ,contentLength:MY,quality:"hd720",fps:30,qualityLabel:"720p",projectionType:"RECTANGULAR",averageBitrate:Ww,approxDurationMs:yH},{itag:247,url:"https://"+au+".googlevideo.com/videoplayback?expire="+Kc+"&ei="+a+"&ip="+ut+"&id=o-AF"+bV+"&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="+Ku+"&mn="+
Tq+"&ms="+Tq+"&mv="+Cc+"&mvi="+Vw+"&pl="+rm+"&initcwndbps="+yH+"&siu="+Vw+"&spc="+q+"&vprv="+Vw+"&svpuc="+Vw+"&mime=video%2Fwebm&ns="+Ds+"&gir="+zj+"&clen="+MY+"&dur="+Gj+"&lmt="+eQ+"&mt="+Kc+"&fvip=3&keepalive="+zj+"&c=WEB&txp="+yH+"&n="+cE+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+Q+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+Q,mimeType:'video/webm; codecs="vp9"',bitrate:kA,width:1280,
height:720,initRange:{start:"0",end:"219"},indexRange:{start:$m,end:Mt},lastModified:eQ,contentLength:MY,quality:"hd720",fps:30,qualityLabel:"720p",projectionType:"RECTANGULAR",averageBitrate:Ww,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:yH},{itag:398,url:"https://"+au+".googlevideo.com/videoplayback?expire="+Kc+"&ei="+a+"&ip="+ut+"&id=o-AF"+bV+"&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="+
Ku+"&mn="+Tq+"&ms="+Tq+"&mv="+Cc+"&mvi="+Vw+"&pl="+rm+"&initcwndbps="+yH+"&siu="+Vw+"&spc="+q+"&vprv="+Vw+"&svpuc="+Vw+"&mime=video%2Fmp4&ns="+Ds+"&gir="+zj+"&clen="+MY+"&dur="+Gj+"&lmt="+eQ+"&mt="+Kc+"&fvip=3&keepalive="+zj+"&c=WEB&txp="+yH+"&n="+cE+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+Q+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+Q,mimeType:'video/mp4; codecs="av01.0.05M.08"',bitrate:kA,
width:1280,height:720,initRange:{start:"0",end:"699"},indexRange:{start:$m,end:Mt},lastModified:eQ,contentLength:MY,quality:"hd720",fps:30,qualityLabel:"720p",projectionType:"RECTANGULAR",averageBitrate:Ww,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:yH},{itag:135,url:"https://"+au+".googlevideo.com/videoplayback?expire="+Kc+"&ei="+a+"&ip="+ut+"&id=o-AF"+bV+"&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="+
Ku+"&mn="+Tq+"&ms="+Tq+"&mv="+Cc+"&mvi="+Vw+"&pl="+rm+"&initcwndbps="+yH+"&siu="+Vw+"&spc="+q+"&vprv="+Vw+"&svpuc="+Vw+"&mime=video%2Fmp4&ns="+Ds+"&gir="+zj+"&clen="+Gj+"&dur="+Gj+"&lmt="+eQ+"&mt="+Kc+"&fvip=3&keepalive="+zj+"&c=WEB&txp="+yH+"&n="+cE+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+Q+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+Q,mimeType:'video/mp4; codecs="avc1.4d401f"',bitrate:Ww,
width:854,height:480,initRange:{start:"0",end:"738"},indexRange:{start:$m,end:Mt},lastModified:eQ,contentLength:Gj,quality:"large",fps:30,qualityLabel:"480p",projectionType:"RECTANGULAR",averageBitrate:Ww,approxDurationMs:yH},{itag:244,url:"https://"+au+".googlevideo.com/videoplayback?expire="+Kc+"&ei="+a+"&ip="+ut+"&id=o-AF"+bV+"&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="+Ku+"&mn="+
Tq+"&ms="+Tq+"&mv="+Cc+"&mvi="+Vw+"&pl="+rm+"&initcwndbps="+yH+"&siu="+Vw+"&spc="+q+"&vprv="+Vw+"&svpuc="+Vw+"&mime=video%2Fwebm&ns="+Ds+"&gir="+zj+"&clen="+Gj+"&dur="+Gj+"&lmt="+eQ+"&mt="+Kc+"&fvip=3&keepalive="+zj+"&c=WEB&txp="+yH+"&n="+cE+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+td+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+Q,mimeType:'video/webm; codecs="vp9"',bitrate:Ww,width:854,
height:480,initRange:{start:"0",end:"219"},indexRange:{start:$m,end:Mt},lastModified:eQ,contentLength:Gj,quality:"large",fps:30,qualityLabel:"480p",projectionType:"RECTANGULAR",averageBitrate:Ww,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:yH},{itag:397,url:"https://"+au+".googlevideo.com/videoplayback?expire="+Kc+"&ei="+a+"&ip="+ut+"&id=o-AF"+bV+"&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="+
Ku+"&mn="+Tq+"&ms="+Tq+"&mv="+Cc+"&mvi="+Vw+"&pl="+rm+"&initcwndbps="+yH+"&siu="+Vw+"&spc="+q+"&vprv="+Vw+"&svpuc="+Vw+"&mime=video%2Fmp4&ns="+Ds+"&gir="+zj+"&clen="+Gj+"&dur="+Gj+"&lmt="+eQ+"&mt="+Kc+"&fvip=3&keepalive="+zj+"&c=WEB&txp="+yH+"&n="+cE+"&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="+Q,mimeType:'video/mp4; codecs="av01.0.04M.08"',bitrate:Ww,
width:854,height:480,initRange:{start:"0",end:"699"},indexRange:{start:$m,end:Mt},lastModified:eQ,contentLength:Gj,quality:"large",fps:30,qualityLabel:"480p",projectionType:"RECTANGULAR",averageBitrate:Ww,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:yH},{itag:134,url:"https://"+au+".googlevideo.com/videoplayback?expire="+Kc+"&ei="+a+"&ip="+ut+"&id=o-AF"+bV+"&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="+
Ku+"&mn="+Tq+"&ms="+Tq+"&mv="+Cc+"&mvi="+Vw+"&pl="+rm+"&initcwndbps="+yH+"&siu="+Vw+"&spc="+q+"&vprv="+Vw+"&svpuc="+Vw+"&mime=video%2Fmp4&ns="+Ds+"&gir="+zj+"&clen="+Gj+"&dur="+Gj+"&lmt="+eQ+"&mt="+Kc+"&fvip=3&keepalive="+zj+"&c=WEB&txp="+yH+"&n="+cE+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+Q+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+Q,mimeType:'video/mp4; codecs="avc1.4d401e"',bitrate:Ww,
width:640,height:360,initRange:{start:"0",end:"738"},indexRange:{start:$m,end:Mt},lastModified:eQ,contentLength:Gj,quality:"medium",fps:30,qualityLabel:"360p",projectionType:"RECTANGULAR",averageBitrate:Ww,highReplication:!0,approxDurationMs:yH},{itag:243,url:"https://"+au+".googlevideo.com/videoplayback?expire="+Kc+"&ei="+a+"&ip="+ut+"&id=o-AF"+bV+"&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="+
Ku+"&mn="+Tq+"&ms="+Tq+"&mv="+Cc+"&mvi="+Vw+"&pl="+rm+"&initcwndbps="+yH+"&siu="+Vw+"&spc="+q+"&vprv="+Vw+"&svpuc="+Vw+"&mime=video%2Fwebm&ns="+Ds+"&gir="+zj+"&clen="+Gj+"&dur="+Gj+"&lmt="+eQ+"&mt="+Kc+"&fvip=3&keepalive="+zj+"&c=WEB&txp="+yH+"&n="+cE+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+z+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+Q,mimeType:'video/webm; codecs="vp9"',bitrate:Ww,
width:640,height:360,initRange:{start:"0",end:"219"},indexRange:{start:$m,end:Mt},lastModified:eQ,contentLength:Gj,quality:"medium",fps:30,qualityLabel:"360p",projectionType:"RECTANGULAR",averageBitrate:Ww,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:yH},{itag:396,url:"https://"+au+".googlevideo.com/videoplayback?expire="+Kc+"&ei="+a+"&ip="+ut+"&id=o-AF"+bV+"&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="+
Ku+"&mn="+Tq+"&ms="+Tq+"&mv="+Cc+"&mvi="+Vw+"&pl="+rm+"&initcwndbps="+yH+"&siu="+Vw+"&spc="+q+"&vprv="+Vw+"&svpuc="+Vw+"&mime=video%2Fmp4&ns="+Ds+"&gir="+zj+"&clen="+Gj+"&dur="+Gj+"&lmt="+eQ+"&mt="+Kc+"&fvip=3&keepalive="+zj+"&c=WEB&txp="+yH+"&n="+cE+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+Q+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+Q,mimeType:'video/mp4; codecs="av01.0.01M.08"',bitrate:Ww,
width:640,height:360,initRange:{start:"0",end:"699"},indexRange:{start:$m,end:Mt},lastModified:eQ,contentLength:Gj,quality:"medium",fps:30,qualityLabel:"360p",projectionType:"RECTANGULAR",averageBitrate:Ww,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:yH},{itag:133,url:"https://"+au+".googlevideo.com/videoplayback?expire="+Kc+"&ei="+a+"&ip="+ut+"&id=o-AF"+bV+"&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="+
Ku+"&mn="+Tq+"&ms="+Tq+"&mv="+Cc+"&mvi="+Vw+"&pl="+rm+"&initcwndbps="+yH+"&siu="+Vw+"&spc="+q+"&vprv="+Vw+"&svpuc="+Vw+"&mime=video%2Fmp4&ns="+Ds+"&gir="+zj+"&clen="+Gj+"&dur="+Gj+"&lmt="+eQ+"&mt="+Kc+"&fvip=3&keepalive="+zj+"&c=WEB&txp="+yH+"&n="+cE+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+Q+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+Q,mimeType:'video/mp4; codecs="avc1.4d4015"',bitrate:Ww,
width:426,height:240,initRange:{start:"0",end:"738"},indexRange:{start:$m,end:Mt},lastModified:eQ,contentLength:Gj,quality:"small",fps:30,qualityLabel:"240p",projectionType:"RECTANGULAR",averageBitrate:Ww,approxDurationMs:yH},{itag:242,url:"https://"+au+".googlevideo.com/videoplayback?expire="+Kc+"&ei="+a+"&ip="+ut+"&id=o-AF"+bV+"&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="+Ku+"&mn="+
Tq+"&ms="+Tq+"&mv="+Cc+"&mvi="+Vw+"&pl="+rm+"&initcwndbps="+yH+"&siu="+Vw+"&spc="+q+"&vprv="+Vw+"&svpuc="+Vw+"&mime=video%2Fwebm&ns="+Ds+"&gir="+zj+"&clen="+Gj+"&dur="+Gj+"&lmt="+eQ+"&mt="+Kc+"&fvip=3&keepalive="+zj+"&c=WEB&txp="+yH+"&n="+cE+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+Q+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+Q,mimeType:'video/webm; codecs="vp9"',bitrate:Ww,width:426,
height:240,initRange:{start:"0",end:"218"},indexRange:{start:$m,end:Mt},lastModified:eQ,contentLength:Gj,quality:"small",fps:30,qualityLabel:"240p",projectionType:"RECTANGULAR",averageBitrate:Ww,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:yH},{itag:395,url:"https://"+au+".googlevideo.com/videoplayback?expire="+Kc+"&ei="+a+"&ip="+ut+"&id=o-AF"+bV+"&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="+
Ku+"&mn="+Tq+"&ms="+Tq+"&mv="+Cc+"&mvi="+Vw+"&pl="+rm+"&initcwndbps="+yH+"&siu="+Vw+"&spc="+q+"&vprv="+Vw+"&svpuc="+Vw+"&mime=video%2Fmp4&ns="+Ds+"&gir="+zj+"&clen="+Gj+"&dur="+Gj+"&lmt="+eQ+"&mt="+Kc+"&fvip=3&keepalive="+zj+"&c=WEB&txp="+yH+"&n="+cE+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+Q+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+Q,mimeType:'video/mp4; codecs="av01.0.00M.08"',bitrate:Ww,
width:426,height:240,initRange:{start:"0",end:"699"},indexRange:{start:$m,end:Mt},lastModified:eQ,contentLength:Gj,quality:"small",fps:30,qualityLabel:"240p",projectionType:"RECTANGULAR",averageBitrate:Ww,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:yH},{itag:160,url:"https://"+au+".googlevideo.com/videoplayback?expire="+Kc+"&ei="+a+"&ip="+ut+"&id=o-AF"+bV+"&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="+
Ku+"&mn="+Tq+"&ms="+Tq+"&mv="+Cc+"&mvi="+Vw+"&pl="+rm+"&initcwndbps="+yH+"&siu="+Vw+"&spc="+q+"&vprv="+Vw+"&svpuc="+Vw+"&mime=video%2Fmp4&ns="+Ds+"&gir="+zj+"&clen="+Gj+"&dur="+Gj+"&lmt="+eQ+"&mt="+Kc+"&fvip=3&keepalive="+zj+"&c=WEB&txp="+yH+"&n="+cE+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+z+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+Q,mimeType:'video/mp4; codecs="avc1.4d400c"',bitrate:Ww,
width:256,height:144,initRange:{start:"0",end:"737"},indexRange:{start:$m,end:Mt},lastModified:eQ,contentLength:Gj,quality:"tiny",fps:30,qualityLabel:"144p",projectionType:"RECTANGULAR",averageBitrate:Ut,approxDurationMs:yH},{itag:278,url:"https://"+au+".googlevideo.com/videoplayback?expire="+Kc+"&ei="+a+"&ip="+ut+"&id=o-AF"+bV+"&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="+Ku+"&mn="+
Tq+"&ms="+Tq+"&mv="+Cc+"&mvi="+Vw+"&pl="+rm+"&initcwndbps="+yH+"&siu="+Vw+"&spc="+q+"&vprv="+Vw+"&svpuc="+Vw+"&mime=video%2Fwebm&ns="+Ds+"&gir="+zj+"&clen="+Gj+"&dur="+Gj+"&lmt="+eQ+"&mt="+Kc+"&fvip=3&keepalive="+zj+"&c=WEB&txp="+yH+"&n="+cE+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+Q+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+Q,mimeType:'video/webm; codecs="vp9"',bitrate:Ww,width:256,
height:144,initRange:{start:"0",end:"218"},indexRange:{start:$m,end:Mt},lastModified:eQ,contentLength:Gj,quality:"tiny",fps:30,qualityLabel:"144p",projectionType:"RECTANGULAR",averageBitrate:Ut,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:yH},{itag:394,url:"https://"+au+".googlevideo.com/videoplayback?expire="+Kc+"&ei="+a+"&ip="+ut+"&id=o-AF"+bV+"&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="+
Ku+"&mn="+Tq+"&ms="+Tq+"&mv="+Cc+"&mvi="+Vw+"&pl="+rm+"&initcwndbps="+yH+"&siu="+Vw+"&spc="+q+"&vprv="+Vw+"&svpuc="+Vw+"&mime=video%2Fmp4&ns="+Ds+"&gir="+zj+"&clen="+Gj+"&dur="+Gj+"&lmt="+eQ+"&mt="+Kc+"&fvip=3&keepalive="+zj+"&c=WEB&txp="+yH+"&n="+cE+"&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="+Q,mimeType:'video/mp4; codecs="av01.0.00M.08"',bitrate:Ut,
width:256,height:144,initRange:{start:"0",end:"699"},indexRange:{start:$m,end:Mt},lastModified:eQ,contentLength:Gj,quality:"tiny",fps:30,qualityLabel:"144p",projectionType:"RECTANGULAR",averageBitrate:Ut,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:yH},{itag:140,url:"https://"+au+".googlevideo.com/videoplayback?expire="+Kc+"&ei="+a+"&ip="+ut+"&id=o-AF"+bV+"&itag=140&source=youtube&requiressl=yes&mh=X6&mm="+
Ku+"&mn="+Tq+"&ms="+Tq+"&mv="+Cc+"&mvi="+Vw+"&pl="+rm+"&initcwndbps="+yH+"&siu="+Vw+"&spc="+q+"&vprv="+Vw+"&svpuc="+Vw+"&mime=audio%2Fmp4&ns="+Ds+"&gir="+zj+"&clen="+Gj+"&dur="+Gj+"&lmt="+eQ+"&mt="+Kc+"&fvip=3&keepalive="+zj+"&c=WEB&txp="+yH+"&n="+cE+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+z+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+Q,mimeType:'audio/mp4; codecs="mp4a.40.2"',bitrate:Ww,
initRange:{start:"0",end:"631"},indexRange:{start:$m,end:Mt},lastModified:eQ,contentLength:Gj,quality:"tiny",projectionType:"RECTANGULAR",averageBitrate:Ww,highReplication:!0,audioQuality:"AUDIO_QUALITY_MEDIUM",approxDurationMs:yH,audioSampleRate:"44100",audioChannels:2,loudnessDb:-3.7800007},{itag:249,url:"https://"+au+".googlevideo.com/videoplayback?expire="+Kc+"&ei="+a+"&ip="+ut+"&id=o-AF"+bV+"&itag=249&source=youtube&requiressl=yes&mh=X6&mm="+Ku+"&mn="+Tq+"&ms="+Tq+"&mv="+Cc+"&mvi="+Vw+"&pl="+
rm+"&initcwndbps="+yH+"&siu="+Vw+"&spc="+q+"&vprv="+Vw+"&svpuc="+Vw+"&mime=audio%2Fwebm&ns="+Ds+"&gir="+zj+"&clen="+yH+"&dur="+Gj+"&lmt="+eQ+"&mt="+Kc+"&fvip=3&keepalive="+zj+"&c=WEB&txp="+yH+"&n="+cE+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+z+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+Q,mimeType:'audio/webm; codecs="opus"',bitrate:Ut,initRange:{start:"0",end:"265"},indexRange:{start:$m,
end:Mt},lastModified:eQ,contentLength:yH,quality:"tiny",projectionType:"RECTANGULAR",averageBitrate:Ut,audioQuality:"AUDIO_QUALITY_LOW",approxDurationMs:yH,audioSampleRate:"48000",audioChannels:2,loudnessDb:-3.7800007},{itag:250,url:"https://"+au+".googlevideo.com/videoplayback?expire="+Kc+"&ei="+a+"&ip="+ut+"&id=o-AF"+bV+"&itag=250&source=youtube&requiressl=yes&mh=X6&mm="+Ku+"&mn="+Tq+"&ms="+Tq+"&mv="+Cc+"&mvi="+Vw+"&pl="+rm+"&initcwndbps="+yH+"&siu="+Vw+"&spc="+q+"&vprv="+Vw+"&svpuc="+Vw+"&mime=audio%2Fwebm&ns="+
Ds+"&gir="+zj+"&clen="+yH+"&dur="+Gj+"&lmt="+eQ+"&mt="+Kc+"&fvip=3&keepalive="+zj+"&c=WEB&txp="+yH+"&n="+cE+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+z+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+Q,mimeType:'audio/webm; codecs="opus"',bitrate:Ut,initRange:{start:"0",end:"265"},indexRange:{start:$m,end:Mt},lastModified:eQ,contentLength:yH,quality:"tiny",projectionType:"RECTANGULAR",averageBitrate:Ut,
audioQuality:"AUDIO_QUALITY_LOW",approxDurationMs:yH,audioSampleRate:"48000",audioChannels:2,loudnessDb:-3.7800007},{itag:251,url:"https://"+au+".googlevideo.com/videoplayback?expire="+Kc+"&ei="+a+"&ip="+ut+"&id=o-AF"+bV+"&itag=251&source=youtube&requiressl=yes&mh=X6&mm="+Ku+"&mn="+Tq+"&ms="+Tq+"&mv="+Cc+"&mvi="+Vw+"&pl="+rm+"&initcwndbps="+yH+"&siu="+Vw+"&spc="+q+"&vprv="+Vw+"&svpuc="+Vw+"&mime=audio%2Fwebm&ns="+Ds+"&gir="+zj+"&clen="+Gj+"&dur="+Gj+"&lmt="+eQ+"&mt="+Kc+"&fvip=3&keepalive="+zj+"&c=WEB&txp="+
yH+"&n="+cE+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+O+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+Q,mimeType:'audio/webm; codecs="opus"',bitrate:Ww,initRange:{start:"0",end:"265"},indexRange:{start:$m,end:Mt},lastModified:eQ,contentLength:Gj,quality:"tiny",projectionType:"RECTANGULAR",averageBitrate:Ww,audioQuality:"AUDIO_QUALITY_MEDIUM",approxDurationMs:yH,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="+MY+"&docid="+J+"&ei="+a+"&feature="+W+"&fexp="+VT+"&ns="+EX+"&plid="+Z+"&referrer=https%3A%2F%2Fwww.youtube.com%2F&sdetail=p%3A%2F&sourceid="+Cc+"&el="+aT+"&len="+Mt+"&of="+IT+
"&uga="+rm+"&vm="+Jq},videostatsDelayplayUrl:{baseUrl:"https://s.youtube.com/api/stats/delayplay?cl="+MY+"&docid="+J+"&ei="+a+"&feature="+W+"&fexp="+VT+"&ns="+EX+"&plid="+Z+"&referrer=https%3A%2F%2Fwww.youtube.com%2F&sdetail=p%3A%2F&sourceid="+Cc+"&el="+aT+"&len="+Mt+"&of="+IT+"&uga="+rm+"&vm="+Jq},videostatsWatchtimeUrl:{baseUrl:"https://s.youtube.com/api/stats/watchtime?cl="+MY+"&docid="+J+"&ei="+a+"&feature="+W+"&fexp="+VT+"&ns="+EX+"&plid="+Z+"&referrer=https%3A%2F%2Fwww.youtube.com%2F&sdetail=p%3A%2F&sourceid="+
Cc+"&el="+aT+"&len="+Mt+"&of="+IT+"&uga="+rm+"&vm="+Jq},ptrackingUrl:{baseUrl:"https://www.youtube.com/ptracking?ei="+a+"&m="+Ru+"&oid="+IT+"&plid="+Z+"&pltype="+di+"&ptchn="+IT+"&ptk="+X+"&video_id="+J},qoeUrl:{baseUrl:"https://s.youtube.com/api/stats/qoe?cl="+MY+"&docid="+J+"&ei="+a+"&event="+CS+"&feature="+W+"&fexp="+VT+"&ns="+EX+"&plid="+Z+"&referrer=https%3A%2F%2Fwww.youtube.com%2F&sdetail=p%3A%2F&sourceid="+Cc},atrUrl:{baseUrl:"https://s.youtube.com/api/stats/atr?docid="+J+"&ei="+a+"&feature="+
W+"&len="+Mt+"&ns="+EX+"&plid="+Z+"&ver="+Vw,elapsedMediaTimeSeconds:5},videostatsScheduledFlushWalltimeSeconds:[10,20,30],videostatsDefaultFlushIntervalSeconds:40},captions:{playerCaptionsTracklistRenderer:{captionTracks:[{baseUrl:"https://www.youtube.com/api/timedtext?v="+J+"&caps="+zj+"&opi="+MY+"&xoaf="+Vw+"&hl="+EX+"&ip="+ut+"&ipbits="+Vw+"&expire="+Kc+"&sparams=ip,ipbits,expire,v,caps,opi,xoaf&signature="+ut+"&key="+zj+"&lang="+TG,name:{simpleText:di},vssId:".en-US",languageCode:"en-US",isTranslatable:!0,
trackName:""},{baseUrl:"https://www.youtube.com/api/timedtext?v="+J+"&caps="+zj+"&opi="+MY+"&xoaf="+Vw+"&hl="+EX+"&ip="+ut+"&ipbits="+Vw+"&expire="+Kc+"&sparams=ip,ipbits,expire,v,caps,opi,xoaf&signature="+ut+"&key="+zj+"&kind="+zj+"&lang="+EX,name:{simpleText:cE},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:V8,title:OP,lengthSeconds:"1155",keywords:[Ix,Qr,Ix,ys],
channelId:Ds,isOwnerViewing:!1,shortDescription:ys,isCrawlable:!0,thumbnail:{thumbnails:[{url:"https://i.ytimg.com/vi/"+J+"/hqdefault.jpg?sqp=-oaymwE"+y2+"G&rs="+HY,width:168,height:94},{url:"https://i.ytimg.com/vi/"+J+"/hqdefault.jpg?sqp=-oaymwE"+y2+"G&rs="+HY,width:196,height:110},{url:"https://i.ytimg.com/vi/"+J+"/hqdefault.jpg?sqp=-oaymwE"+y2+"G&rs="+m,width:246,height:138},{url:"https://i.ytimg.com/vi/"+J+"/hqdefault.jpg?sqp=-oaymwE"+y2+"G&rs="+m,width:336,height:188},{url:"https://i.ytimg.com/vi/"+
J+"/maxresdefault.jpg",width:1920,height:1080}]},allowRatings:!0,viewCount:yH,author:F5,isPrivate:!1,isUnpluggedCorpus:!1,isLiveContent:!1},annotations:[{playerAnnotationsExpandedRenderer:{featuredChannel:{startTimeMs:"0",endTimeMs:yH,watermark:{thumbnails:[{url:"https://i.ytimg.com/an/"+IT+"/featured_channel.jpg?v="+WY,width:40,height:40}]},trackingParams:IP+"=",navigationEndpoint:{clickTrackingParams:u4,commandMetadata:{webCommandMetadata:{url:"/channel/"+Ds,webPageType:"WEB_PAGE_TYPE_CHANNEL",
rootVe:3611,apiUrl:"/youtubei/v1/browse"}},browseEndpoint:{browseId:Ds}},channelName:F5,subscribeButton:{subscribeButtonRenderer:{buttonText:{runs:[{text:Dd}]},subscribed:!1,enabled:!0,type:"FREE",channelId:Ds,showPreferences:!1,subscribedButtonText:{runs:[{text:Qr}]},unsubscribedButtonText:{runs:[{text:CS}]},trackingParams:IP+"=",unsubscribeButtonText:{runs:[{text:be}]},serviceEndpoints:[{clickTrackingParams:u4,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/subscription/subscribe"}},
subscribeEndpoint:{channelIds:[Ds],params:WY}},{clickTrackingParams:u4,commandMetadata:{webCommandMetadata:{sendPost:!0}},signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{clickTrackingParams:u4,openPopupAction:{popup:{confirmDialogRenderer:{trackingParams:IP+"=",dialogMessages:[{runs:[{text:V8},{text:OP},{text:V8}]}],confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",isDisabled:!1,text:{runs:[{text:CS}]},serviceEndpoint:{clickTrackingParams:u4,commandMetadata:{webCommandMetadata:{sendPost:!0,
apiUrl:"/youtubei/v1/subscription/unsubscribe"}},unsubscribeEndpoint:{channelIds:[Ds],params:WY}},accessibility:{label:wN},trackingParams:IP+"="}},cancelButton:{buttonRenderer:{style:"STYLE_TEXT",size:"SIZE_DEFAULT",isDisabled:!1,text:{runs:[{text:vk}]},accessibility:{label:Ix},trackingParams:IP+"="}},primaryIsCancel:!1}},popupType:"DIALOG"}}]}}],subscribeAccessibility:{accessibilityData:{label:ys}},unsubscribeAccessibility:{accessibilityData:{label:be}}}}},allowSwipeDismiss:!0,annotationId:"632ce843-0000-20d6-ace4-3c286d423086"}}],
playerConfig:{audioConfig:{loudnessDb:-3.7800007,perceptualLoudnessDb:-17.78,enablePerFormatLoudness:!0},streamSelectionConfig:{maxBitrate:Gj},mediaCommonConfig:{dynamicReadaheadConfig:{maxReadAheadMediaTimeMs:12E4,minReadAheadMediaTimeMs:15E3,readAheadGrowthRateMs:1E3}},webPlayerConfig:{useCobaltTvosDash:!0,webPlayerActionsPorting:{getSharePanelCommand:{clickTrackingParams:u4,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/share/get_web_player_share_panel"}},webPlayerShareEntityServiceEndpoint:{serializedShareEntity:"CgtndjNsdkt5X1dENA%3D%3D"}},
subscribeCommand:{clickTrackingParams:u4,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/subscription/subscribe"}},subscribeEndpoint:{channelIds:[Ds],params:WY}},unsubscribeCommand:{clickTrackingParams:u4,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/subscription/unsubscribe"}},unsubscribeEndpoint:{channelIds:[Ds],params:WY}},addToWatchLaterCommand:{clickTrackingParams:u4,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/browse/edit_playlist"}},
playlistEditEndpoint:{playlistId:"WL",actions:[{addedVideoId:V8,action:"ACTION_ADD_VIDEO"}]}},removeFromWatchLaterCommand:{clickTrackingParams:u4,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/browse/edit_playlist"}},playlistEditEndpoint:{playlistId:"WL",actions:[{action:"ACTION_REMOVE_VIDEO_BY_VIDEO_ID",removedVideoId:V8}]}}}}},storyboards:{playerStoryboardSpecRenderer:{spec:"https://i.ytimg.com/sb/"+J+"/storyboard3_L$L/$N.jpg?sqp=-oaymwE"+y2+"G",recommendedLevel:2}},microformat:{playerMicroformatRenderer:{thumbnail:{thumbnails:[{url:"https://i.ytimg.com/vi/"+
J+"/maxresdefault.jpg",width:1280,height:720}]},embed:{iframeUrl:"https://www.youtube.com/embed/"+V8,width:1280,height:720},title:{simpleText:be},description:{simpleText:rE},lengthSeconds:"1156",ownerProfileUrl:"http://www.youtube.com/@"+vk,externalChannelId:Ds,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:yH,category:"Travel & Events",publishDate:nE,ownerChannelName:F5,uploadDate:nE}},cards:{cardCollectionRenderer:{cards:[{cardRenderer:{teaser:{simpleCardTeaserRenderer:{message:{simpleText:vk},trackingParams:IP+"=",prominent:!0,logVisibilityUpdates:!0,onTapCommand:{clickTrackingParams:u4,changeEngagementPanelVisibilityAction:{targetId:"engagement-panel-error-corrections",visibility:"ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"}}}},cueRanges:[{startCardActiveMs:"0",
endCardActiveMs:"5000",teaserDurationMs:"6000",iconAfterTeaserMs:"5000"}],trackingParams:IP+"="}}],headerText:{simpleText:Dd},icon:{infoCardIconRenderer:{trackingParams:IP+"="}},closeButton:{infoCardIconRenderer:{trackingParams:IP+"="}},trackingParams:IP+"=",allowTeaserDismiss:!0,logIconVisibilityUpdates:!0}},trackingParams:IP+"=",attestation:{playerAttestationRenderer:{challenge:"a=6&a2=1&b=fTFKUEAUxxmXFgD-AByAUN6WwsY&c=1696917232&d=1&e="+V8+"&c1a=1&c6a=1&c6b=1&x4=1&hh=mbNf63Xfb0v-wi6-05i_8N3EUGCwK7F0b4rqZoUv9mY",
botguardData:{program:V2,interpreterSafeUrl:(QY.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="//www.google.com/js/th/"+bJ+".js",QY),serverEnvironment:1}}},videoQualityPromoSupportedRenderers:{videoQualityPromoRenderer:{triggerCriteria:{connectionWhitelist:["WIFI"],joinLatencySeconds:15,rebufferTimeSeconds:10,watchTimeWindowSeconds:180,refractorySeconds:2592E3},text:{runs:[{text:F5},{text:OP,bold:!0}]},endpoint:{clickTrackingParams:u4,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:IP+"=",snackbar:{notificationActionRenderer:{responseText:{runs:[{text:OP}]},actionButton:{buttonRenderer:{text:{runs:[{text:be}]},navigationEndpoint:{clickTrackingParams:u4,commandMetadata:{webCommandMetadata:{url:"https://www.google.com/get/videoqualityreport/?v="+J,webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.google.com/get/videoqualityreport/?v="+
J,target:"TARGET_NEW_WINDOW"}},trackingParams:IP+"="}},trackingParams:IP+"="}}}},endscreen:{endscreenRenderer:{elements:[{endscreenElementRenderer:{style:"CHANNEL",image:{thumbnails:[{url:"https://yt3.ggpht.com/"+Je+"=s250-c-k-c0x00ffffff-no-rj",width:250,height:250},{url:"https://yt3.ggpht.com/"+Je+"=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:yH,endMs:yH,title:{accessibility:{accessibilityData:{label:Qr}},simpleText:CS},metadata:{simpleText:V8},callToAction:{simpleText:CS},dismiss:{simpleText:CS},endpoint:{clickTrackingParams:u4,commandMetadata:{webCommandMetadata:{url:"/channel/"+Ds,webPageType:"WEB_PAGE_TYPE_CHANNEL",rootVe:3611,apiUrl:"/youtubei/v1/browse"}},browseEndpoint:{browseId:Ds}},hovercardButton:{subscribeButtonRenderer:{buttonText:{runs:[{text:Ix}]},subscribed:!1,enabled:!0,type:"FREE",channelId:Ds,showPreferences:!1,
subscribedButtonText:{runs:[{text:F5}]},unsubscribedButtonText:{runs:[{text:wN}]},trackingParams:IP+"=",unsubscribeButtonText:{runs:[{text:wN}]},serviceEndpoints:[{clickTrackingParams:u4,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/subscription/subscribe"}},subscribeEndpoint:{channelIds:[Ds],params:WY}},{clickTrackingParams:u4,commandMetadata:{webCommandMetadata:{sendPost:!0}},signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{clickTrackingParams:u4,openPopupAction:{popup:{confirmDialogRenderer:{trackingParams:IP+
"=",dialogMessages:[{runs:[{text:aT},{text:WY},{text:fu}]}],confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",isDisabled:!1,text:{runs:[{text:fu}]},serviceEndpoint:{clickTrackingParams:u4,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/subscription/unsubscribe"}},unsubscribeEndpoint:{channelIds:[Ds],params:WY}},accessibility:{label:OP},trackingParams:IP+"="}},cancelButton:{buttonRenderer:{style:"STYLE_TEXT",size:"SIZE_DEFAULT",isDisabled:!1,text:{runs:[{text:aT}]},
accessibility:{label:rE},trackingParams:IP+"="}},primaryIsCancel:!1}},popupType:"DIALOG"}}]}}],subscribeAccessibility:{accessibilityData:{label:Ix}},unsubscribeAccessibility:{accessibilityData:{label:Qr}}}},trackingParams:IP+"=",isSubscribe:!0,id:Bw}},{endscreenElementRenderer:{style:"VIDEO",image:{thumbnails:[{url:"https://i.ytimg.com/vi/"+J+"/hqdefault.jpg?sqp=-oaymwE"+y2+"G&rs="+m,width:168,height:94},{url:"https://i.ytimg.com/vi/"+J+"/hqdefault.jpg?sqp=-oaymwE"+y2+"G&rs="+HY,width:196,height:110},
{url:"https://i.ytimg.com/vi/"+J+"/hqdefault.jpg?sqp=-oaymwE"+y2+"G&rs="+m,width:246,height:138},{url:"https://i.ytimg.com/vi/"+J+"/hqdefault.jpg?sqp=-oaymwE"+y2+"G&rs="+m,width:336,height:188},{url:"https://i.ytimg.com/vi/"+J+"/maxresdefault.jpg",width:1920,height:1080}]},left:.654386,width:.322807,top:.32769307,aspectRatio:1.7777778,startMs:yH,endMs:yH,title:{accessibility:{accessibilityData:{label:Qr}},simpleText:be},metadata:{simpleText:CS},endpoint:{clickTrackingParams:u4,commandMetadata:{webCommandMetadata:{url:"/watch?v="+
V8,webPageType:"WEB_PAGE_TYPE_WATCH",rootVe:3832},interactionLoggingCommandMetadata:{loggingExpectations:{screenCreatedLoggingExpectations:{expectedParentScreens:[{screenVeType:3832}]}}}},watchEndpoint:{videoId:V8,watchEndpointSupportedOnesieConfig:{html5PlaybackOnesieConfig:{commonConfig:{url:"https://"+au+".googlevideo.com/videoplayback?source=youtube&oeis="+Vw+"&c=WEB&oad="+Mt+"&ovd="+Mt+"&oaad="+El+"&oavd="+El+"&ocs="+$m+"&oewis="+Vw+"&oputc="+Vw+"&ofpcc="+Vw+"&siu="+Vw+"&msp="+Vw+"&odepv="+Vw+
"&id=o-AF"+bV+"&ip="+ut+"&initcwndbps="+yH+"&mt="+Kc+"&oweuc="+VT}}}}},trackingParams:IP+"=",id:Bw,thumbnailOverlays:[{thumbnailOverlayTimeStatusRenderer:{text:{accessibility:{accessibilityData:{label:F5}},simpleText:ys},style:"DEFAULT"}}]}}],startMs:yH,trackingParams:IP+"="}},adPlacements:[{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_START",adTimeOffset:{offsetStartMilliseconds:Vw,offsetEndMilliseconds:El},hideCueRangeMarker:!0}},renderer:{linearAdSequenceRenderer:{linearAds:[{instreamVideoAdRenderer:{skipOffsetMilliseconds:5E3,
pings:{impressionPings:[{baseUrl:"https://ad.doubleclick.net/ddm/trackimp/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+MY+";dc_trk_cid="+MY+";dc_dbm_token="+Q+";ord="+Kc+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+Vw+";dc_rui="+Vw+";dc_exteid="+Bw+";dc_av="+$m+";dc_sk="+Vw+";dc_ctype="+rm+";dc_ref=http://www.youtube.com/video/"+V8+";dc_pubid="+Vw+";dc_btype=23?gclid="+sX+"&ase=2",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"},{baseUrl:"https://www.youtube.com/pagead/adview?ai=C"+
K+"____________"+G+"AxAA&sigh="+V8+"&cid="+N+"&ad_cpn=[AD_CPN]&lact=[LACT]"},{baseUrl:"https://www.youtube.com/api/stats/ads?ver="+Vw+"&ns="+Vw+"&event="+Vw+"&device="+Vw+"&content_v="+J+"&el="+aT+"&ei="+a+"&devicever="+U+"&bti="+yH+"&format="+KE+"&break_type="+Vw+"&conn=[CONN]&cpn=[CPN]&lact=[LACT]&m_pos="+Vw+"&mt=[MT]&p_h=[P_H]&p_w=[P_W]&rwt=[RWT]&sdkv="+ut+"&slot_pos="+Vw+"&slot_len="+Vw+"&vis=[VIS]&vol=[VOL]&wt=[WT]&ad_cpn=[AD_CPN]&ad_id="+Ku+"&ad_len="+El+"&ad_mt=[AD_MT]&ad_sys=YT%3AAdSense-Viral%2CAdSense-Viral&ad_v="+
V8+"&aqi="+a+"&ad_rmp="+Vw+"&sli="+Vw}],errorPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+K+"____________"+G+"AxAA&sigh="+J+"&cid="+N+"&label=videoplayfailed[ERRORCODE]"}],mutePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+K+"____________"+G+"AxAA&sigh="+J+"&cid="+N+"&label=admute&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+Vw+";dc_exteid="+Bw+";met="+Vw+";ecn"+Vw+"="+Vw+
";etm1="+Vw+";eid1="+rm+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],unmutePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+K+"____________"+G+"AxAA&sigh="+J+"&cid="+N+"&label=adunmute&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+Vw+";dc_exteid="+Bw+";met="+Vw+";ecn"+Vw+"="+Vw+";etm1="+Vw+";eid1="+KE+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],pausePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+
K+"____________"+G+"AxAA&sigh="+J+"&cid="+N+"&label=adpause&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+Vw+";dc_exteid="+Bw+";met="+Vw+";ecn"+Vw+"="+Vw+";etm1="+Vw+";eid1="+rm+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],rewindPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+K+"____________"+G+"AxAA&sigh="+J+"&cid="+N+"&label=adrewind&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],
resumePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+K+"____________"+G+"AxAA&sigh="+J+"&cid="+N+"&label=adresume&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+Vw+";dc_exteid="+Bw+";met="+Vw+";ecn"+Vw+"="+Vw+";etm1="+Vw+";eid1="+rm+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],skipPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+K+"____________"+G+"AxAA&sigh="+J+"&cid="+N+
"&label=videoskipped&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+Vw+";dc_exteid="+Bw+";met="+Vw+";ecn"+Vw+"="+Vw+";etm1="+Vw+";eid1="+yH+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],closePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+K+"____________"+G+"AxAA&sigh="+J+"&cid="+N+"&label=adclose&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],progressPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+
K+"____________"+G+"AxAA&sigh="+J+"&cid="+N+"&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"+K+"____________"+G+"AxAA&ase=2&num="+Vw+"&cid="+N+"&ad_cpn=%5BAD_CPN%5D&sig="+m+"&adurl="+Z3+"&ctype="+$m+"&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"+
K+"____________"+G+"AxAA&ase=2&num="+Vw+"&cid="+N+"&ad_cpn=%5BAD_CPN%5D&sig="+m+"&adurl="+Z3+"&label=video_engaged_view&ctype="+$m+"&ms=[CLICK_MS]",offsetMilliseconds:15E3,attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+Vw+";dc_exteid="+Bw+";met="+Vw+";ecn"+Vw+"="+Vw+";etm1="+Vw+";eid1="+KE+";?",offsetMilliseconds:15E3}],clickthroughPings:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+
MY+";dc_trk_cid="+MY+";dc_dbm_token="+Q+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+Vw+";ord="+MY+";dc_rui="+Vw+";dc_exteid="+x5+";dc_av="+Vw+";dc_sk="+Vw+";dc_ctype="+rm+";dc_pubid="+Vw+";dc_btype=3?gclid="+sX+"&ase=2",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}],fullscreenPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+K+"____________"+G+"AxAA&sigh="+J+"&cid="+N+"&label=adfullscreen&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},
{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+Vw+";dc_exteid="+Bw+";met="+Vw+";ecn"+Vw+"="+Vw+";etm1="+Vw+";eid1="+rm+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewViewablePings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+D+"&sig="+PY+"&ad_cpn=[AD_CPN]&id="+vk+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+vk+"&dc_pubid="+Vw+"&dc_exteid="+Bw+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],
endFullscreenPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+K+"____________"+G+"AxAA&sigh="+J+"&cid="+N+"&label=vast_exit_fullscreen&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],activeViewMeasurablePings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+D+"&sig="+PY+"&ad_cpn=[AD_CPN]&id="+vk+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]&avm="+Vw},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+vk+"&avm="+Vw+"&dc_pubid="+Vw+"&dc_exteid="+
Bw+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],abandonPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+K+"____________"+G+"AxAA&sigh="+J+"&cid="+N+"&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="+Vw+";dc_exteid="+Bw+";met="+Vw+";ecn"+Vw+"="+Vw+";etm1="+Vw+";eid1="+rm+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewFullyViewableAudibleHalfDurationPings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+
D+"&sig="+PY+"&ad_cpn=[AD_CPN]&id="+vk+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]&avgm="+Vw},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+vk+"&dc_pubid="+Vw+"&dc_exteid="+Bw+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],startPings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+Vw+";dc_exteid="+Bw+";met="+Vw+";ecn"+Vw+"="+Vw+";etm1="+Vw+";eid1="+rm+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],firstQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+
Vw+";dc_exteid="+Bw+";met="+Vw+";ecn"+Vw+"="+Vw+";etm1="+Vw+";eid1="+KE+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],secondQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+Vw+";dc_exteid="+Bw+";met="+Vw+";ecn"+Vw+"="+Vw+";etm1="+Vw+";eid1="+rm+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],thirdQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+Vw+";dc_exteid="+Bw+";met="+Vw+";ecn"+Vw+"="+Vw+";etm1="+Vw+";eid1="+KE+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],
completePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+K+"____________"+G+"AxAA&sigh="+J+"&cid="+N+"&label=videoplaytime100&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+Vw+";dc_exteid="+Bw+";met="+Vw+";ecn"+Vw+"="+Vw+";etm1="+Vw+";eid1="+rm+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewTracking:{trafficType:"ACTIVE_VIEW_TRAFFIC_TYPE_VIDEO"}},clickthroughEndpoint:{clickTrackingParams:u4,
commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+K+"____________"+G+"AxAA&ase=2&num="+Vw+"&cid="+N+"&ad_cpn=%5BAD_CPN%5D&sig="+m+"&adurl="+Z3+"&label=video_click_to_advertiser_site&ctype="+$m+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+K+"____________"+G+"AxAA&ase=2&num="+Vw+"&cid="+N+"&ad_cpn=%5BAD_CPN%5D&sig="+m+"&adurl="+Z3+"&label=video_click_to_advertiser_site&ctype="+
$m+"&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/"+J+"/mqdefault.jpg",width:320,height:180}]},trackingParams:IP+"="},trackingParams:IP+
"=",templatedCountdown:{templatedAdText:{text:Qr,isTemplated:!0,trackingParams:IP+"="}},durationMilliseconds:5E3}},skippableRenderer:{skipButtonRenderer:{message:{text:cE,isTemplated:!1,trackingParams:IP+"="},trackingParams:IP+"="}},trackingParams:IP+"=",skipOffsetMilliseconds:5E3}},trackingParams:IP+"=",visitAdvertiserRenderer:{buttonRenderer:{style:"STYLE_UNKNOWN",text:{simpleText:CS},icon:{iconType:"OPEN_IN_NEW"},navigationEndpoint:{clickTrackingParams:u4,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+
K+"____________"+G+"AxAA&ase=2&num="+Vw+"&cid="+N+"&ad_cpn=%5BAD_CPN%5D&sig="+m+"&adurl="+Z3+"&label=video_click_to_advertiser_site&ctype="+$m+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+K+"____________"+G+"AxAA&ase=2&num="+Vw+"&cid="+N+"&ad_cpn=%5BAD_CPN%5D&sig="+m+"&adurl="+Z3+"&label=video_click_to_advertiser_site&ctype="+$m+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:IP+"="}},adBadgeRenderer:{simpleAdBadgeRenderer:{text:{text:CS,isTemplated:!1,trackingParams:IP+"="},trackingParams:IP+"="}},adDurationRemaining:{adDurationRemainingRenderer:{templatedCountdown:{templatedAdText:{text:F5,isTemplated:!0,trackingParams:IP+"="}},trackingParams:IP+"="}},adInfoRenderer:{adHoverTextButtonRenderer:{button:{buttonRenderer:{style:"STYLE_UNKNOWN",size:"SIZE_DEFAULT",isDisabled:!1,serviceEndpoint:{clickTrackingParams:u4,openPopupAction:{popup:{aboutThisAdRenderer:{url:(nT.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue=
"https://www.youtube.com/aboutthisad?pf=web&source=youtube&reasons=A"+l+"&hl="+EX+"&origin=www.youtube.com&ata_theme="+ys,nT),trackingParams:IP+"="}},popupType:"DIALOG"}},icon:{iconType:"INFO_OUTLINE"},trackingParams:IP+"="}},hoverText:{runs:[{text:aT}]},trackingParams:IP+"="}},flyoutCtaRenderer:{flyoutCtaRenderer:{image:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/ytc/"+k7+"=s176-c-k-c0x00ffffff-no-rj"}]},trackingParams:IP+"="},headline:{text:ys,isTemplated:!1,trackingParams:IP+"="},description:{text:fu,
trackingParams:IP+"="},actionButton:{buttonRenderer:{text:{simpleText:F5},navigationEndpoint:{clickTrackingParams:u4,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+MY+";dc_trk_cid="+MY+";dc_dbm_token="+Q+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+Vw+";ord="+MY+";dc_rui="+Vw+";dc_exteid="+Bw+";dc_av="+Vw+";dc_sk="+Vw+";dc_ctype="+rm+";dc_pubid="+Vw+";dc_btype=3?gclid="+sX+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+
K+"____________"+G+"AxAA&ase=2&num="+Vw+"&cid="+N+"&ad_cpn=%5BAD_CPN%5D&sig="+m+"&adurl="+Z3+"&label=video_click_to_advertiser_site&ctype="+$m+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+K+"____________"+G+"AxAA&ase=2&num="+Vw+"&cid="+N+"&ad_cpn=%5BAD_CPN%5D&sig="+m+"&adurl="+Z3+"&label=video_click_to_advertiser_site&ctype="+$m+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:IP+"="}},startMs:Vw,trackingParams:IP+"="}},adLayoutLoggingData:{serializedAdServingDataEntry:V8},elementId:be}},elementId:CS,trackingParams:IP+"=",legacyInfoCardVastExtension:fu,sodarExtensionData:{siub:ys,bgub:cE,scs:fu,bgp:rE},externalVideoId:V8,adLayoutLoggingData:{serializedAdServingDataEntry:di},layoutId:"ZI7I3u4qvI4LVKlq"}},{adActionInterstitialRenderer:{image:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/ytc/"+k7+"=s176-c-k-c0x00ffffff-no-rj"}]},trackingParams:IP+"="},
headline:{text:ys,isTemplated:!1,trackingParams:IP+"="},description:{text:wN,isTemplated:!1,trackingParams:IP+"="},actionButton:{buttonRenderer:{style:"STYLE_PRIMARY",text:{simpleText:V8},navigationEndpoint:{clickTrackingParams:u4,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+MY+";dc_trk_cid="+MY+";dc_dbm_token="+Q+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+Vw+";ord="+MY+";dc_rui="+Vw+";dc_exteid="+
Bw+";dc_av="+Vw+";dc_sk="+Vw+";dc_ctype="+rm+";dc_pubid="+Vw+";dc_btype=3?gclid="+sX+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+K+"____________"+G+"AxAA&ase=2&num="+Vw+"&cid="+N+"&ad_cpn=%5BAD_CPN%5D&sig="+m+"&adurl="+Z3+"&label=video_click_to_advertiser_site&ctype="+$m+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+K+"____________"+G+"AxAA&ase=2&num="+
Vw+"&cid="+N+"&ad_cpn=%5BAD_CPN%5D&sig="+m+"&adurl="+Z3+"&label=video_click_to_advertiser_site&ctype="+$m+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:IP+"="}},durationMilliseconds:7E3,countdownRenderer:{timedPieCountdownRenderer:{trackingParams:IP+"="}},navigationEndpoint:{clickTrackingParams:u4,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+MY+";dc_trk_cid="+
MY+";dc_dbm_token="+Q+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+Vw+";ord="+MY+";dc_rui="+Vw+";dc_exteid="+Bw+";dc_av="+Vw+";dc_sk="+Vw+";dc_ctype="+rm+";dc_pubid="+Vw+";dc_btype=3?gclid="+sX+"&ase=2"},{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+K+"____________"+G+"AxAA&sigh="+J+"&cid="+N+"&label=video_card_endcap_action_headline_click"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+K+"____________"+
G+"AxAA&ase=2&num="+Vw+"&cid="+N+"&ad_cpn=%5BAD_CPN%5D&sig="+m+"&adurl="+Z3+"&label=video_click_to_advertiser_site&ctype="+$m+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+K+"____________"+G+"AxAA&ase=2&num="+Vw+"&cid="+N+"&ad_cpn=%5BAD_CPN%5D&sig="+m+"&adurl="+Z3+"&label=video_click_to_advertiser_site&ctype="+$m+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:IP+"=",backgroundImage:{thumbnail:{thumbnails:[{url:""}]},trackingParams:IP+"="},abandonCommands:{commands:[{clickTrackingParams:u4,loggingUrls:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+K+"____________"+G+"AxAA&sigh="+J+"&cid="+N+"&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="+Vw+";dc_exteid="+Bw+";met="+Vw+";ecn"+
Vw+"="+Vw+";etm1="+Vw+";eid1="+rm+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],pingingEndpoint:{hack:!0}}]},adRendererCommands:{impressionCommand:{clickTrackingParams:u4,commandExecutorCommand:{commands:[{clickTrackingParams:u4,loggingUrls:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+K+"____________"+G+"AxAA&sigh="+J+"&cid="+N+"&label=video_card_endcap_impression"}],pingingEndpoint:{hack:!0}}]}}},skipButton:{skipButtonRenderer:{message:{text:CS,isTemplated:!1,trackingParams:IP+
"="},trackingParams:IP+"="}},adLayoutLoggingData:{serializedAdServingDataEntry:be},skipPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+K+"____________"+G+"AxAA&sigh="+J+"&cid="+N+"&label=videoskipped&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+Vw+";dc_exteid="+Bw+";met="+Vw+";ecn"+Vw+"="+Vw+";etm1="+Vw+";eid1="+yH+";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="+MY+";dc_trk_cid="+MY+";ord="+Kc+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+Vw+";dc_rui="+Vw+";dc_exteid="+Bw+";dc_av="+$m+";dc_sk="+Vw+";dc_ctype="+rm+";dc_ref=http://www.youtube.com/video/"+V8+";dc_pubid="+Vw+";dc_btype=23?gclid="+sX+"&ase=2",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"},
{baseUrl:"https://www.youtube.com/pagead/adview?ai=C"+K+"____________"+G+"AxAA&sigh="+V8+"&cid="+N+"&ad_cpn=[AD_CPN]&lact=[LACT]"},{baseUrl:"https://www.youtube.com/api/stats/ads?ver="+Vw+"&ns="+Vw+"&event="+Vw+"&device="+Vw+"&content_v="+J+"&el="+aT+"&ei="+a+"&devicever="+U+"&bti="+yH+"&format="+KE+"&break_type="+Vw+"&conn=[CONN]&cpn=[CPN]&lact=[LACT]&m_pos="+Vw+"&mt=[MT]&p_h=[P_H]&p_w=[P_W]&rwt=[RWT]&sdkv="+ut+"&slot_pos="+Vw+"&slot_len="+Vw+"&vis=[VIS]&vol=[VOL]&wt=[WT]&ad_cpn=[AD_CPN]&ad_id="+
Ku+"&ad_len="+El+"&ad_mt=[AD_MT]&ad_sys=YT%3AAdSense-Viral%2CAdSense-Viral&ad_v="+V8+"&aqi="+a+"&ad_rmp="+Vw+"&sli="+Vw}],errorPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+K+"____________"+G+"AxAA&sigh="+V8+"&cid="+N+"&label=videoplayfailed[ERRORCODE]"}],mutePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+K+"____________"+G+"AxAA&sigh="+V8+"&cid="+N+"&label=admute&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+
Vw+";dc_exteid="+Bw+";met="+Vw+";ecn"+Vw+"="+Vw+";etm1="+Vw+";eid1="+rm+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],unmutePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+K+"____________"+G+"AxAA&sigh="+V8+"&cid="+N+"&label=adunmute&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+Vw+";dc_exteid="+Bw+";met="+Vw+";ecn"+Vw+"="+Vw+";etm1="+Vw+";eid1="+KE+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],
pausePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+K+"____________"+G+"AxAA&sigh="+V8+"&cid="+N+"&label=adpause&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+Vw+";dc_exteid="+Bw+";met="+Vw+";ecn"+Vw+"="+Vw+";etm1="+Vw+";eid1="+rm+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],rewindPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+K+"____________"+G+"AxAA&sigh="+V8+"&cid="+
N+"&label=adrewind&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],resumePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+K+"____________"+G+"AxAA&sigh="+V8+"&cid="+N+"&label=adresume&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+Vw+";dc_exteid="+Bw+";met="+Vw+";ecn"+Vw+"="+Vw+";etm1="+Vw+";eid1="+rm+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],skipPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+
K+"____________"+G+"AxAA&sigh="+V8+"&cid="+N+"&label=videoskipped&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+Vw+";dc_exteid="+Bw+";met="+Vw+";ecn"+Vw+"="+Vw+";etm1="+Vw+";eid1="+yH+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],closePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+K+"____________"+G+"AxAA&sigh="+V8+"&cid="+N+"&label=adclose&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],
progressPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+K+"____________"+G+"AxAA&sigh="+V8+"&cid="+N+"&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"+K+"____________"+G+"AxAA&ase=2&num="+Vw+"&cid="+N+"&ad_cpn=%5BAD_CPN%5D&sig="+m+"&adurl="+Z3+"&ctype="+$m+"&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"+K+"____________"+G+"AxAA&ase=2&num="+Vw+"&cid="+N+"&ad_cpn=%5BAD_CPN%5D&sig="+m+"&adurl="+Z3+"&label=video_engaged_view&ctype="+$m+"&ms=[CLICK_MS]",offsetMilliseconds:15E3,attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+Vw+";dc_exteid="+Bw+";met="+Vw+";ecn"+Vw+"="+Vw+";etm1="+Vw+";eid1="+KE+";?",offsetMilliseconds:15E3}],
fullscreenPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+K+"____________"+G+"AxAA&sigh="+V8+"&cid="+N+"&label=adfullscreen&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+Vw+";dc_exteid="+Bw+";met="+Vw+";ecn"+Vw+"="+Vw+";etm1="+Vw+";eid1="+rm+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewViewablePings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+D+"&sig="+PY+"&ad_cpn=[AD_CPN]&id="+
vk+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+vk+"&dc_pubid="+Vw+"&dc_exteid="+Bw+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],endFullscreenPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+K+"____________"+G+"AxAA&sigh="+V8+"&cid="+N+"&label=vast_exit_fullscreen&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],activeViewMeasurablePings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+D+
"&sig="+PY+"&ad_cpn=[AD_CPN]&id="+vk+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]&avm="+Vw},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+vk+"&avm="+Vw+"&dc_pubid="+Vw+"&dc_exteid="+Bw+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],abandonPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+K+"____________"+G+"AxAA&sigh="+V8+"&cid="+N+"&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="+Vw+";dc_exteid="+Bw+";met="+Vw+";ecn"+Vw+"="+Vw+";etm1="+Vw+";eid1="+rm+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewFullyViewableAudibleHalfDurationPings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+D+"&sig="+PY+"&ad_cpn=[AD_CPN]&id="+vk+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]&avgm="+Vw},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+vk+"&dc_pubid="+Vw+"&dc_exteid="+Bw+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],
startPings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+Vw+";dc_exteid="+Bw+";met="+Vw+";ecn"+Vw+"="+Vw+";etm1="+Vw+";eid1="+rm+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],firstQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+Vw+";dc_exteid="+Bw+";met="+Vw+";ecn"+Vw+"="+Vw+";etm1="+Vw+";eid1="+KE+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],secondQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+
Vw+";dc_exteid="+Bw+";met="+Vw+";ecn"+Vw+"="+Vw+";etm1="+Vw+";eid1="+rm+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],thirdQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+Vw+";dc_exteid="+Bw+";met="+Vw+";ecn"+Vw+"="+Vw+";etm1="+Vw+";eid1="+KE+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],completePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+K+"____________"+G+"AxAA&sigh="+V8+"&cid="+N+"&label=videoplaytime100&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},
{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+Vw+";dc_exteid="+Bw+";met="+Vw+";ecn"+Vw+"="+Vw+";etm1="+Vw+";eid1="+rm+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewTracking:{trafficType:"ACTIVE_VIEW_TRAFFIC_TYPE_VIDEO"}},clickthroughEndpoint:{clickTrackingParams:u4,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+K+"____________"+G+"AxAA&ase=2&num="+Vw+"&cid="+N+"&ad_cpn=%5BAD_CPN%5D&sig="+m+"&adurl="+Z3+"&label=video_click_to_advertiser_site&ctype="+
$m+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+K+"____________"+G+"AxAA&ase=2&num="+Vw+"&cid="+N+"&ad_cpn=%5BAD_CPN%5D&sig="+m+"&adurl="+Z3+"&label=video_click_to_advertiser_site&ctype="+$m+"&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/"+J+"/mqdefault.jpg",width:320,height:180}]},trackingParams:IP+"="},trackingParams:IP+"=",templatedCountdown:{templatedAdText:{text:fu,isTemplated:!0,trackingParams:IP+"="}},durationMilliseconds:5E3}},skippableRenderer:{skipButtonRenderer:{message:{text:V8,isTemplated:!1,trackingParams:IP+"="},trackingParams:IP+"="}},
trackingParams:IP+"=",skipOffsetMilliseconds:5E3}},trackingParams:IP+"=",visitAdvertiserRenderer:{buttonRenderer:{style:"STYLE_UNKNOWN",text:{simpleText:rE},icon:{iconType:"OPEN_IN_NEW"},navigationEndpoint:{clickTrackingParams:u4,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+K+"____________"+G+"AxAA&ase=2&num="+Vw+"&cid="+N+"&ad_cpn=%5BAD_CPN%5D&sig="+m+"&adurl="+Z3+"&label=video_click_to_advertiser_site&ctype="+$m+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",
rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+K+"____________"+G+"AxAA&ase=2&num="+Vw+"&cid="+N+"&ad_cpn=%5BAD_CPN%5D&sig="+m+"&adurl="+Z3+"&label=video_click_to_advertiser_site&ctype="+$m+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:IP+"="}},adBadgeRenderer:{simpleAdBadgeRenderer:{text:{text:rE,isTemplated:!1,trackingParams:IP+"="},trackingParams:IP+"="}},adDurationRemaining:{adDurationRemainingRenderer:{templatedCountdown:{templatedAdText:{text:Dd,
isTemplated:!0,trackingParams:IP+"="}},trackingParams:IP+"="}},adInfoRenderer:{adHoverTextButtonRenderer:{button:{buttonRenderer:{style:"STYLE_UNKNOWN",size:"SIZE_DEFAULT",isDisabled:!1,serviceEndpoint:{clickTrackingParams:u4,openPopupAction:{popup:{aboutThisAdRenderer:{url:(y_.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="https://www.youtube.com/aboutthisad?pf=web&source=youtube&reasons=A"+l+"&hl="+EX+"&origin=www.youtube.com&ata_theme="+ys,y_),trackingParams:IP+"="}},popupType:"DIALOG"}},
icon:{iconType:"INFO_OUTLINE"},trackingParams:IP+"="}},hoverText:{runs:[{text:F5}]},trackingParams:IP+"="}},flyoutCtaRenderer:{flyoutCtaRenderer:{image:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+GG+"=s176-c-k-c0x00ffffff-no-rj"}]},trackingParams:IP+"="},headline:{text:di,isTemplated:!1,trackingParams:IP+"="},description:{text:wN,trackingParams:IP+"="},actionButton:{buttonRenderer:{text:{simpleText:di},navigationEndpoint:{clickTrackingParams:u4,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+
K+"____________"+G+"AxAA&ase=2&num="+Vw+"&cid="+N+"&ad_cpn=%5BAD_CPN%5D&sig="+m+"&adurl="+Z3+"&label=video_click_to_advertiser_site&ctype="+$m+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+K+"____________"+G+"AxAA&ase=2&num="+Vw+"&cid="+N+"&ad_cpn=%5BAD_CPN%5D&sig="+m+"&adurl="+Z3+"&label=video_click_to_advertiser_site&ctype="+$m+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:IP+"="}},startMs:Vw,trackingParams:IP+"="}},adLayoutLoggingData:{serializedAdServingDataEntry:OP},elementId:Dd}},elementId:ys,trackingParams:IP+"=",legacyInfoCardVastExtension:wN,sodarExtensionData:{siub:di,bgub:WY,scs:Dd,bgp:be},externalVideoId:V8,adLayoutLoggingData:{serializedAdServingDataEntry:OP},layoutId:"OTH1kH5dWmSpUnNw"}},{adActionInterstitialRenderer:{image:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+GG+"=s176-c-k-c0x00ffffff-no-rj"}]},trackingParams:IP+"="},headline:{text:be,
isTemplated:!1,trackingParams:IP+"="},description:{text:di,isTemplated:!1,trackingParams:IP+"="},actionButton:{buttonRenderer:{style:"STYLE_PRIMARY",text:{simpleText:ys},navigationEndpoint:{clickTrackingParams:u4,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+K+"____________"+G+"AxAA&ase=2&num="+Vw+"&cid="+N+"&ad_cpn=%5BAD_CPN%5D&sig="+m+"&adurl="+Z3+"&label=video_click_to_advertiser_site&ctype="+$m+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",
rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+K+"____________"+G+"AxAA&ase=2&num="+Vw+"&cid="+N+"&ad_cpn=%5BAD_CPN%5D&sig="+m+"&adurl="+Z3+"&label=video_click_to_advertiser_site&ctype="+$m+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:IP+"="}},durationMilliseconds:7E3,countdownRenderer:{timedPieCountdownRenderer:{trackingParams:IP+"="}},navigationEndpoint:{clickTrackingParams:u4,loggingUrls:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+
K+"____________"+G+"AxAA&sigh="+V8+"&cid="+N+"&label=video_card_endcap_action_headline_click"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+K+"____________"+G+"AxAA&ase=2&num="+Vw+"&cid="+N+"&ad_cpn=%5BAD_CPN%5D&sig="+m+"&adurl="+Z3+"&label=video_click_to_advertiser_site&ctype="+$m+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+K+"____________"+G+"AxAA&ase=2&num="+
Vw+"&cid="+N+"&ad_cpn=%5BAD_CPN%5D&sig="+m+"&adurl="+Z3+"&label=video_click_to_advertiser_site&ctype="+$m+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:IP+"=",backgroundImage:{thumbnail:{thumbnails:[{url:""}]},trackingParams:IP+"="},abandonCommands:{commands:[{clickTrackingParams:u4,loggingUrls:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+K+"____________"+G+"AxAA&sigh="+V8+"&cid="+N+"&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="+Vw+";dc_exteid="+Bw+";met="+Vw+";ecn"+Vw+"="+Vw+";etm1="+Vw+";eid1="+rm+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],pingingEndpoint:{hack:!0}}]},adRendererCommands:{impressionCommand:{clickTrackingParams:u4,commandExecutorCommand:{commands:[{clickTrackingParams:u4,loggingUrls:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+K+"____________"+G+"AxAA&sigh="+V8+"&cid="+N+"&label=video_card_endcap_impression"}],pingingEndpoint:{hack:!0}}]}}},
skipButton:{skipButtonRenderer:{message:{text:cE,isTemplated:!1,trackingParams:IP+"="},trackingParams:IP+"="}},adLayoutLoggingData:{serializedAdServingDataEntry:OP},skipPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+K+"____________"+G+"AxAA&sigh="+V8+"&cid="+N+"&label=videoskipped&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+Vw+";dc_exteid="+Bw+";met="+Vw+";ecn"+Vw+"="+Vw+";etm1="+Vw+";eid1="+
yH+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],layoutId:"x0nw3inGkAJNdtYU"}}],adLayoutMetadata:{layoutId:"kaF8SbSZynKvp81K",layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",adLayoutLoggingData:{serializedAdServingDataEntry:OP}}}},adSlotLoggingData:{serializedSlotAdServingDataEntry:cE}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",adTimeOffset:{offsetStartMilliseconds:El,offsetEndMilliseconds:KE},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",
getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+a+"&m_pos="+rm+"&token=ALHj"+A+"&index="+Vw+"&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="+U+"&m_pos_ms="+El}},adSlotLoggingData:{serializedSlotAdServingDataEntry:Qr}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",
adTimeOffset:{offsetStartMilliseconds:KE,offsetEndMilliseconds:KE},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+a+"&m_pos="+$m+"&token=ALHj"+A+"&index="+Vw+"&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="+
U+"&m_pos_ms="+KE}},adSlotLoggingData:{serializedSlotAdServingDataEntry:Qr}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",adTimeOffset:{offsetStartMilliseconds:KE,offsetEndMilliseconds:KE},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+a+"&m_pos="+$m+"&token=ALHj"+A+"&index="+Vw+"&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="+
U+"&m_pos_ms="+KE}},adSlotLoggingData:{serializedSlotAdServingDataEntry:vk}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",adTimeOffset:{offsetStartMilliseconds:KE,offsetEndMilliseconds:KE},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+a+"&m_pos="+$m+"&token=ALHj"+A+"&index="+Vw+"&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="+
U+"&m_pos_ms="+KE}},adSlotLoggingData:{serializedSlotAdServingDataEntry:ys}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",adTimeOffset:{offsetStartMilliseconds:KE,offsetEndMilliseconds:rm},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+a+"&m_pos="+$m+"&token=ALHj"+A+"&index="+Vw+"&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="+
U+"&m_pos_ms="+KE}},adSlotLoggingData:{serializedSlotAdServingDataEntry:cE}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_END",adTimeOffset:{offsetStartMilliseconds:rm,offsetEndMilliseconds:rm},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+a+"&m_pos="+rm+"&token=ALHj"+A+"&index="+Vw+"&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="+
U+"&m_pos_ms="+rm}},adSlotLoggingData:{serializedSlotAdServingDataEntry:be}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_SELF_START"}},renderer:{actionCompanionAdRenderer:{headline:{text:F5,isTemplated:!1,trackingParams:IP+"="},description:{text:fu,isTemplated:!1,trackingParams:IP+"="},actionButton:{buttonRenderer:{text:{simpleText:cE},navigationEndpoint:{clickTrackingParams:u4,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+
MY+";dc_trk_cid="+MY+";dc_dbm_token="+Q+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+Vw+";ord="+MY+";dc_rui="+Vw+";dc_exteid="+Bw+";dc_av="+Vw+";dc_sk="+Vw+";dc_ctype="+rm+";dc_pubid="+Vw+";dc_btype=3?gclid="+sX+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+K+"____________"+G+"AxAA&ase=2&num="+Vw+"&cid="+N+"&ad_cpn=%5BAD_CPN%5D&sig="+m+"&adurl="+Z3+"&label=video_click_to_advertiser_site&ctype="+$m+"&ms=[CLICK_MS]",
webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+K+"____________"+G+"AxAA&ase=2&num="+Vw+"&cid="+N+"&ad_cpn=%5BAD_CPN%5D&sig="+m+"&adurl="+Z3+"&label=video_click_to_advertiser_site&ctype="+$m+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:IP+"="}},iconImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/ytc/"+k7+"=s88-c-k-c0x00ffffff-no-rj",width:48,
height:48}]},trackingParams:IP+"="},bannerImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+Zw+"=w1060-fcrop64=1,00005a57ffffa5a8-k-c0xffffffff-no-nd-rj",width:384,height:80}]},trackingParams:IP+"="},navigationEndpoint:{clickTrackingParams:u4,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+MY+";dc_trk_cid="+MY+";dc_dbm_token="+Q+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+Vw+";ord="+MY+
";dc_rui="+Vw+";dc_exteid="+Bw+";dc_av="+Vw+";dc_sk="+Vw+";dc_ctype="+rm+";dc_pubid="+Vw+";dc_btype=3?gclid="+sX+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+K+"____________"+G+"AxAA&ase=2&num="+Vw+"&cid="+N+"&ad_cpn=%5BAD_CPN%5D&sig="+m+"&adurl="+Z3+"&label=video_click_to_advertiser_site&ctype="+$m+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+
K+"____________"+G+"AxAA&ase=2&num="+Vw+"&cid="+N+"&ad_cpn=%5BAD_CPN%5D&sig="+m+"&adurl="+Z3+"&label=video_click_to_advertiser_site&ctype="+$m+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:IP+"=",adInfoRenderer:{adHoverTextButtonRenderer:{button:{buttonRenderer:{style:"STYLE_UNKNOWN",size:"SIZE_DEFAULT",isDisabled:!1,icon:{iconType:"INFO_OUTLINE"},navigationEndpoint:{clickTrackingParams:u4,openPopupAction:{popup:{aboutThisAdRenderer:{url:(v5G.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue=
"https://www.youtube.com/aboutthisad?pf=web&source=youtube&reasons=A"+l+"&hl="+EX+"&origin=www.youtube.com&ata_theme="+ys,v5G),trackingParams:IP+"="}},popupType:"DIALOG"}},trackingParams:IP+"="}},hoverText:{runs:[{text:vk}]},trackingParams:IP+"="}},adVideoId:V8,impressionPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+K+"____________"+G+"AxAA&sigh="+J+"&cid="+N+"&label=video_companion_impression_tracking"}],adLayoutLoggingData:{serializedAdServingDataEntry:Dd},associatedCompositePlayerBytesLayoutId:cE}},
adSlotLoggingData:{serializedSlotAdServingDataEntry:OP}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_SELF_START"}},renderer:{actionCompanionAdRenderer:{headline:{text:Qr,isTemplated:!1,trackingParams:IP+"="},description:{text:F5,isTemplated:!1,trackingParams:IP+"="},actionButton:{buttonRenderer:{text:{simpleText:ys},navigationEndpoint:{clickTrackingParams:u4,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+K+"____________"+
G+"AxAA&ase=2&num="+Vw+"&cid="+N+"&ad_cpn=%5BAD_CPN%5D&sig="+m+"&adurl="+Z3+"&label=video_click_to_advertiser_site&ctype="+$m+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+K+"____________"+G+"AxAA&ase=2&num="+Vw+"&cid="+N+"&ad_cpn=%5BAD_CPN%5D&sig="+m+"&adurl="+Z3+"&label=video_click_to_advertiser_site&ctype="+$m+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:IP+"="}},iconImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+GG+"=s88-c-k-c0x00ffffff-no-rj",width:48,height:48}]},trackingParams:IP+"="},bannerImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+TD+"=w1060-fcrop64=1,00005a57ffffa5a8-k-c0xffffffff-no-nd-rj",width:384,height:80}]},trackingParams:IP+"="},navigationEndpoint:{clickTrackingParams:u4,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+K+"____________"+G+"AxAA&ase=2&num="+
Vw+"&cid="+N+"&ad_cpn=%5BAD_CPN%5D&sig="+m+"&adurl="+Z3+"&label=video_click_to_advertiser_site&ctype="+$m+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+K+"____________"+G+"AxAA&ase=2&num="+Vw+"&cid="+N+"&ad_cpn=%5BAD_CPN%5D&sig="+m+"&adurl="+Z3+"&label=video_click_to_advertiser_site&ctype="+$m+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:IP+
"=",adInfoRenderer:{adHoverTextButtonRenderer:{button:{buttonRenderer:{style:"STYLE_UNKNOWN",size:"SIZE_DEFAULT",isDisabled:!1,icon:{iconType:"INFO_OUTLINE"},navigationEndpoint:{clickTrackingParams:u4,openPopupAction:{popup:{aboutThisAdRenderer:{url:(Kg.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="https://www.youtube.com/aboutthisad?pf=web&source=youtube&reasons=A"+l+"&hl="+EX+"&origin=www.youtube.com&ata_theme="+ys,Kg),trackingParams:IP+"="}},popupType:"DIALOG"}},trackingParams:IP+"="}},
hoverText:{runs:[{text:F5}]},trackingParams:IP+"="}},adVideoId:V8,impressionPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+K+"____________"+G+"AxAA&sigh="+V8+"&cid="+N+"&label=video_companion_impression_tracking"}],adLayoutLoggingData:{serializedAdServingDataEntry:vk},associatedCompositePlayerBytesLayoutId:cE}},adSlotLoggingData:{serializedSlotAdServingDataEntry:ys}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_SELF_START"}},renderer:{actionCompanionAdRenderer:{headline:{text:OP,
isTemplated:!1,trackingParams:IP+"="},description:{text:ys,isTemplated:!1,trackingParams:IP+"="},actionButton:{buttonRenderer:{text:{simpleText:Qr},navigationEndpoint:{clickTrackingParams:u4,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+MY+";dc_trk_cid="+MY+";dc_dbm_token="+Q+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+Vw+";ord="+MY+";dc_rui="+Vw+";dc_exteid="+Bw+";dc_av="+Vw+";dc_sk="+Vw+";dc_ctype="+
rm+";dc_pubid="+Vw+";dc_btype=3?gclid="+sX+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+K+"____________"+G+"AxAA&ase=2&num="+Vw+"&cid="+N+"&ad_cpn=%5BAD_CPN%5D&sig="+m+"&adurl="+Z3+"&label=video_click_to_advertiser_site&ctype="+$m+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+K+"____________"+G+"AxAA&ase=2&num="+Vw+"&cid="+N+"&ad_cpn=%5BAD_CPN%5D&sig="+
m+"&adurl="+Z3+"&label=video_click_to_advertiser_site&ctype="+$m+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:IP+"="}},iconImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/ytc/"+k7+"=s88-c-k-c0x00ffffff-no-rj",width:48,height:48}]},trackingParams:IP+"="},bannerImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+Zw+"=w1060-fcrop64=1,00005a57ffffa5a8-k-c0xffffffff-no-nd-rj",width:384,height:80}]},trackingParams:IP+
"="},navigationEndpoint:{clickTrackingParams:u4,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+MY+";dc_trk_cid="+MY+";dc_dbm_token="+Q+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+Vw+";ord="+MY+";dc_rui="+Vw+";dc_exteid="+Bw+";dc_av="+Vw+";dc_sk="+Vw+";dc_ctype="+rm+";dc_pubid="+Vw+";dc_btype=3?gclid="+sX+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+
K+"____________"+G+"AxAA&ase=2&num="+Vw+"&cid="+N+"&ad_cpn=%5BAD_CPN%5D&sig="+m+"&adurl="+Z3+"&label=video_click_to_advertiser_site&ctype="+$m+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+K+"____________"+G+"AxAA&ase=2&num="+Vw+"&cid="+N+"&ad_cpn=%5BAD_CPN%5D&sig="+m+"&adurl="+Z3+"&label=video_click_to_advertiser_site&ctype="+$m+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:IP+"=",adInfoRenderer:{adHoverTextButtonRenderer:{button:{buttonRenderer:{style:"STYLE_UNKNOWN",size:"SIZE_DEFAULT",isDisabled:!1,icon:{iconType:"INFO_OUTLINE"},navigationEndpoint:{clickTrackingParams:u4,openPopupAction:{popup:{aboutThisAdRenderer:{url:(Ef.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="https://www.youtube.com/aboutthisad?pf=web&source=youtube&reasons=A"+l+"&hl="+EX+"&origin=www.youtube.com&ata_theme="+ys,Ef),trackingParams:IP+"="}},popupType:"DIALOG"}},trackingParams:IP+
"="}},hoverText:{runs:[{text:di}]},trackingParams:IP+"="}},adVideoId:V8,impressionPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+K+"____________"+G+"AxAA&sigh="+J+"&cid="+N+"&label=video_companion_reshow_tracking"}],adLayoutLoggingData:{serializedAdServingDataEntry:ys},isContentVideoCompanion:!0,associatedCompositePlayerBytesLayoutId:cE}},adSlotLoggingData:{serializedSlotAdServingDataEntry:Dd}}}],adBreakHeartbeatParams:"Q0FBJTNE",frameworkUpdates:{entityBatchUpdate:{mutations:[{entityKey:bJ,
type:"ENTITY_MUTATION_TYPE_REPLACE",payload:{offlineabilityEntity:{key:bJ,command:{innertubeCommand:{clickTrackingParams:u4,ypcGetOfflineUpsellEndpoint:{params:X5}}},addToOfflineButtonState:"ADD_TO_OFFLINE_BUTTON_STATE_ENABLED",contentCheckOk:!1,racyCheckOk:!1,loggingDirectives:{trackingParams:IP+"=",visibility:{types:"4"},enableDisplayloggerExperiment:!0}}}}],timestamp:{seconds:Kc,nanos:XO}}}},DBG=JSON.stringify(mT),ov=performance.now()-S;return{objectRepresentation:mT,jsonRepresentation:DBG,generationTime:ov}};
MLG=function(S,p){if(S===p)return!0;if(!S||!p||typeof S!==typeof p)return!1;if(S instanceof Array&&p instanceof Array){if(S.length!==p.length)return!1;for(var U=0;U<S.length;U++)if(!MLG(S[U],p[U]))return!1;return!0}if(typeof S==="object"&&typeof p==="object"&&S&&p){for(U in S)if(!(U in p&&MLG(S[U],p[U])))return!1;for(var Y in p)if(!(Y in S))return!1;return!0}return!1};
_.pH=function(){if(!Sv){Sv=new D1(new Iqw);var S=_.pA("client_streamz_web_flush_count",-1);S!==-1&&(Sv.invocationLimit=S)}return Sv};
U1=function(S,p,U,Y){if(S===p)return!0;if(Array.isArray(S)&&Array.isArray(p)){if(S.length!==p.length)return!1;for(var L=0;L<S.length;L++)if(!U1(S[L],p[L],U,Y))return!1;return!0}if(S instanceof Set||p instanceof Set){if(S instanceof Set&&p instanceof Set){if(S.size!==p.size)return!1;Y=_.d(S.values());for(L=Y.next();!L.done;L=Y.next())if(!p.has(L.value))return!1;return!0}return!1}if(S instanceof Function){if(Y)return!0;S.name===""&&_.ZP(Error("Gf"),"ERROR");return!1}if(S instanceof Date&&p instanceof
Date)return S.getTime()===p.getTime();if(S instanceof Object&&p instanceof Object){if(dHw(S)&&dHw(p))try{return S.equals(p)}catch(V){_.ZP(Error("Hf`"+V),"ERROR")}L=Object.getOwnPropertyNames(S).filter(function(V){return U?S[V]!==void 0:!0});
var I=Object.getOwnPropertyNames(p).filter(function(V){return U?p[V]!==void 0:!0});
if(L.length!==I.length)return!1;L=_.d(L);for(I=L.next();!I.done;I=L.next())if(I=I.value,!U1(S[I],p[I],U,Y))return!1;return!0}return!1};
dHw=function(S){S=Object.getPrototypeOf(S).equals;return S instanceof Function&&S.length===1};
_.WVN=function(){return _.T(function(S){if(S.nextAddress==1)return VLd!==2?S.jumpTo(2):_.k(S,TkX(),3);S.nextAddress!=2&&(VLd=S.yieldResult);return S.return(VLd)})};
_.H$E=function(){return _.T(function(S){if(S.nextAddress==1)return _.y("ab_pl_man")?O$G!==2?S.jumpTo(2):_.k(S,ksG(),3):S.return(1);S.nextAddress!=2&&(O$G=S.yieldResult);return S.return(O$G)})};
QlX=function(){return _.T(function(S){if(S.nextAddress==1)return _.y("ab_fk_sk_cl")?DHr!==2?S.jumpTo(2):_.k(S,z_r(),3):S.return(1);S.nextAddress!=2&&(DHr=S.yieldResult);return S.return(DHr)})};
_.yjw=function(){return _.T(function(S){if(S.nextAddress==1)return _.y("ab_det_apb_b")?n2X!==2?S.jumpTo(2):_.k(S,JjR(),3):S.return(1);S.nextAddress!=2&&(n2X=S.yieldResult);return S.return(n2X)})};
jlr=function(){var S;return _.T(function(p){if(p.nextAddress==1)return _.k(p,Promise.all([_.WVN(),_.yjw(),_.H$E(),QlX()]),2);if(p.nextAddress!=3)return KVw()?p.return(!0):_.k(p,_.b$u(),3);S=p.yieldResult;return p.return(S===0)})};
KVw=function(){var S=!1,p=function(U,Y){rjw.increment(Y,U);U===0&&(S=!0)};
p(_.Gsw(),"j.s_");p(VLd,"f.i_");p(n2X,"a.b_");p(O$G,"p.m_");p(DHr,"i.f_");h_e===2&&(h_e=_.R_d(FVw));p(h_e,"e.h_");_.y("ks_det_gpbl")||p(_.XlX(),"p.i_");_.y("ks_get_o_pp")||p(_.Pjw(),"g.o_");_.y("ab_deg_unex_thr")||p(_.Z$e(),"a.o_");p(slR,"s.t_");_.y("ab_det_sc_inj_enf")&&p(_.e_X(),"s.i_");p(g2w,"d.p_");p(_.uFR(_.YM),"o.p_");p(_.wld()===0?0:_.lqr(),"o.a_");return _.y("debug_sk_em_precheck")?!0:S};
fqX=function(){var S=[].concat(_.jo(aqR));try{var p=cJ();S.push({jsonRepresentation:p.jsonRepresentation,objectRepresentation:p.objectRepresentation})}catch(U){S=[].concat(_.jo(aqR))}return S};
CjR=function(){var S=["adPlacements","adSlots"];try{return S.filter(function(){return!0}).length!==S.length?0:1}catch(p){return 0}};
_.Pjw=function(){if(CjR()===0)return 0;var S=cJ(),p=S.objectRepresentation,U=(0,_.h9.unsafeClone)(p),Y=[];if(p&&typeof p==="object")for(var L in p)Y.push(L);else return 4;S=S.objectRepresentation.adPlacements;if(!(S&&S.length>0))return 4;try{if(!MLG(Y,Object.getOwnPropertyNames(p)))return 0}catch(I){return 0}return MLG(U,p)?1:0};
_.uFR=function(S){if(!S||!S.length||typeof S==="string")return 0;for(var p=Object.getOwnPropertyNames(Object.prototype),U=0;U<S.length;U++)for(var Y=_.BJ(S[U]),L=_.d(p),I=L.next();!I.done;I=L.next())if(Y===I.value)return 0;return 1};
xHd=function(S){var p=_.BJ(S[1]);if(S[0]===null)return p;S=S[0];for(var U={},Y=0;Y<S.length;Y++){var L=_.BJ(S[Y]);if(Y===0)U[L]=p;else{var I={};I[L]=U;U=I}}return U};
_.wld=function(){for(var S=_.LH,p=0;p<S.length;p++){var U=xHd(S[p]),Y=[];Y.push(U);if(Y.length===0)return 0}return 1};
_.lqr=function(){for(var S=_.LH,p={},U=0;U<S.length;p={oa9:void 0},U++){var Y=[xHd(S[U])];p.oa9=[];Y.forEach(function(L){return function(I){L.oa9[L.oa9.length]=I}}(p));
if(p.oa9.length===0)return 0}return 1};
_.Gsw=function(){for(var S=_.d(fqX()),p=S.next();!p.done;p=S.next()){var U=p.value;p=U.jsonRepresentation;U=U.objectRepresentation;try{var Y=JSON.parse(p);if(!U1(Y,U,!1,!1))return 0}catch(L){return 0}}return 1};
_.e_X=function(){try{var S=_.YU("ab_det_sc_inj_val");S.length===1&&S[0]===""&&(S=['json=JSON.parse(text);for(k of["playerAds","adPlacements","adSlots"])']);for(var p=document.querySelectorAll("script"),U=_.d(p),Y=U.next();!Y.done;Y=U.next())for(var L=Y.value,I=_.d(S),V=I.next();!V.done;V=I.next()){var W=V.value;p=void 0;if((p=L.textContent)==null?0:p.includes(W))return 0}}catch(O){return 4}return 1};
_.b$u=function(){var S,p,U,Y,L,I,V;return _.T(function(W){switch(W.nextAddress){case 1:_.M2(W,2),S=_.d(aqR),p=S.next();case 4:if(p.done)return W.return(1);Y=U=p.value;L=Y.jsonRepresentation;I=Y.objectRepresentation;return _.k(W,(new Response(L,{status:200})).json(),7);case 7:V=W.yieldResult;if(!U1(V,I,!1,!1))return W.return(0);p=S.next();W.jumpTo(4);break;case 2:return _.W4(W),W.return(4)}})};
_.Z$e=function(){try{btoa("abc")}catch(S){return 0}return 1};
TkX=function(){var S,p,U,Y,L,I,V,W,O,D,z;return _.T(function(Q){switch(Q.nextAddress){case 1:_.M2(Q,2),S=_.d(fqX()),p=S.next();case 4:if(p.done)return Q.return(1);Y=U=p.value;L=Y.jsonRepresentation;I=Y.objectRepresentation;V=btoa(L);W="data:application/json;base64,"+V;O=new Request(W);Object.defineProperty(O,"url",{get:function(){return"https://www.youtube.com/youtubei/v1/player?key=AIzaSyAO_FJ2SlqU8Q4STEHLGCilw_Y9_11qcW8&prettyPrint=false"}});
Object.defineProperty(O,"method",{get:function(){return"POST"}});
Object.defineProperty(O,"bodyUsed",{get:function(){return!0}});
Object.defineProperty(O,"mode",{get:function(){return"same-origin"}});
Object.defineProperty(O,"body",{get:function(){return new ReadableStream}});
return _.k(Q,fetch(O),7);case 7:return D=Q.yieldResult,_.k(Q,D.json(),8);case 8:z=Q.yieldResult;if(!U1(z,I,!1,!1))return Q.return(0);p=S.next();Q.jumpTo(4);break;case 2:return _.W4(Q),Q.return(4)}})};
_.R_d=function(S){if(!S||!S.length||typeof S==="string")return 0;for(var p=function(L){return _.BJ(L)},U=2,Y=0;Y<S.length&&(U=_.E2w(_.YzG(S[Y],p)),U!==0);Y++);
return U};
_.E2w=function(S){var p=_.d(S);S=p.next().value;p=p.next().value;try{var U=document.createElement("div");document.body.appendChild(U);var Y=getComputedStyle(U).display;document.body.removeChild(U);if(Y==="none")return 4;var L=getComputedStyle(p).display==="none"?0:1;document.body.removeChild(S);return L}catch(I){return 4}};
z_r=function(){var S,p,U;return _.T(function(Y){S=new _.MI;p=document.createElement("button");p.classList.add("ytp-ad-skip-button");p.style.opacity="0";p.style.height="0px";p.style.width="0px";p.style.padding="0px";p.style.border="none";U=function(){p.parentElement&&p.parentElement.removeChild(p)};
p.onclick=function(){S.resolve(0);U()};
document.body.appendChild(p);setTimeout(function(){U();S.resolve(1)},50);
return Y.return(S.promise)})};
ksG=function(){var S,p,U,Y,L,I,V;return _.T(function(W){S=new _.MI;p=document.createElement("ytd-player");try{document.body.prepend(p)}catch(O){return W.return(4)}U=function(){p.parentElement&&p.parentElement.removeChild(p)};
p.getElementsByTagName("div").length>0?Y=p.getElementsByTagName("div")[0]:(Y=document.createElement("div"),p.appendChild(Y));L=document.createElement("div");Y.appendChild(L);I=document.createElement("video");V=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"});I.src=_.DO(_.Kh(V));I.ontimeupdate=function(){U();S.resolve(0)};
L.appendChild(I);I.classList.add("html5-main-video");setTimeout(function(){L.classList.add("ad-interrupting")},200);
setTimeout(function(){U();S.resolve(1)},5E3);
return W.return(S.promise)})};
mHw=function(S,p){var U,Y;return _.T(function(L){switch(L.nextAddress){case 1:U=[],Y=0;case 2:if(!(Y<3)){L.jumpTo(4);break}return _.k(L,fetch(S,{cache:"no-store",method:p}).then(function(I){U.push(I.status)}).catch(function(){U.push(-1)}),3);
case 3:Y++;L.jumpTo(2);break;case 4:return L.return(U)}})};
o2w=function(S){return S.domainLookupStart===0&&S.domainLookupEnd===0&&S.connectStart===0&&S.connectEnd===0};
v2u=function(S,p,U){U=U===void 0?"GET":U;var Y,L,I,V,W,O,D,z,Q,J;return _.T(function(K){if(K.nextAddress==1)return _.k(K,Promise.all([mHw(S,U),mHw(p,U)]),2);Y=K.yieldResult;L=_.d(Y);I=L.next().value;V=L.next().value;W=I;O=V;if(Math.min.apply(Math,_.jo(O))!==Math.max.apply(Math,_.jo(O))||Math.min.apply(Math,_.jo(W))!==Math.max.apply(Math,_.jo(W)))return K.return(2);if(Math.min.apply(Math,_.jo(O))===Math.min.apply(Math,_.jo(W)))return K.return(1);z=(D=performance.getEntriesByName(S))==null?void 0:D[0];
J=(Q=performance.getEntriesByName(p))==null?void 0:Q[0];return z&&J?o2w(J)?K.return(1):o2w(z)?K.return(0):K.return(1):K.return(2)})};
JjR=function(){var S;return _.T(function(p){var U=[];var Y;var L,I,V;(L=Y=(L=cJ().objectRepresentation.streamingData)==null?void 0:(I=L.formats)==null?void 0:(V=I[0])==null?void 0:V.url)&&L&&!Y.match(/&pfa=|yt_premiere_broadcast|yt_live_broadcast/)?(L=L.replace("initcwndbps","ctier=L&initcwndbps"),L=L.replace("%2Crequiressl%2C","%2Crequiressl%2Cctier%2C"),Y={testUrl:L,baseUrl:Y,method:"GET"}):Y=void 0;Y&&U.push(Y);_.y("ab_net_tp_e")&&U.push({testUrl:_.UX.location.origin+"/ad_companion",baseUrl:_.UX.location.origin+
"/generate_204",method:"OPTIONS"});if(_.y("ad_net_pb_ab")){var W;b:{Y=/api\/stats\/ads/;var O,D,z,Q;L=(W=cJ().objectRepresentation.adPlacements)==null?void 0:(O=W[0])==null?void 0:(D=O.adPlacementRenderer)==null?void 0:(z=D.renderer)==null?void 0:(Q=z.linearAdSequenceRenderer)==null?void 0:Q.linearAds;if(L!=null&&L.length&&(W=_.b(L[0],$Hr))&&(W=W.pings,W!=null&&W.impressionPings))for(O=[].concat(_.jo(W.impressionPings)),W.progressPings&&(O=[].concat(_.jo(O),_.jo(W.progressPings))),W=_.d(O),O=W.next();!O.done;O=
W.next())if(O=O.value,O.baseUrl&&Y.test(O.baseUrl)){W=O.baseUrl.replace("https://www.youtube.com","");break b}W=void 0}W&&U.push({testUrl:_.UX.location.origin+W,baseUrl:_.UX.location.origin+"/feed/download",method:"GET"})}if(_.y("ad_net_pb_pbp")){var J;b:{W=/api\/stats\/qoe/;if(O=cJ().objectRepresentation.playbackTracking){D=[];D.push(O==null?void 0:(J=O.videostatsPlaybackUrl)==null?void 0:J.baseUrl);var K;D.push(O==null?void 0:(K=O.videostatsDelayplayUrl)==null?void 0:K.baseUrl);var G;D.push(O==
null?void 0:(G=O.videostatsWatchtimeUrl)==null?void 0:G.baseUrl);var X;D.push(O==null?void 0:(X=O.ptrackingUrl)==null?void 0:X.baseUrl);var Z;D.push(O==null?void 0:(Z=O.qoeUrl)==null?void 0:Z.baseUrl);var l;D.push(O==null?void 0:(l=O.atrUrl)==null?void 0:l.baseUrl);J=_.d(D);for(K=J.next();!K.done;K=J.next())if((K=K.value)&&W.test(K)){J=K.replace("https://www.youtube.com","").replace("https://s.youtube.com","");break b}}J=void 0}J&&U.push({testUrl:_.UX.location.origin+J,baseUrl:_.UX.location.origin+
"/feed/download",method:"GET"})}U=U.length!==0?U[Math.floor(Math.random()*U.length)]:void 0;return(S=U)?p.return(v2u(S.testUrl,S.baseUrl,S.method)):p.return(4)})};
_.XlX=function(){if(_.UX.aWE===void 0||_.UX.aWE===null||typeof _.UX.aWE!=="function")return 2;try{return _.UX.aWE()===!0?0:1}catch(S){return 0}};
i$q=function(S){switch(S){case 2:return 0;case 1:return 2;case 0:return 3;case 4:case 3:return 1;default:_.WP(S,"unknown result type")}};
_.Nkq=function(S,p){var U=Number(_.g7("CATSTAT",0));if(p.s1C===void 0)return U;p=p.s1C;S=i$q(S);return U&~(3<<p)|S<<p};
BkX=function(S){var p,U;if((S=(p=S.auxiliaryUi)==null?void 0:(U=p.messageRenderers)==null?void 0:U.bkaEnforcementMessageViewModel)&&S.displayType==="ENFORCEMENT_MESSAGE_VIEW_MODEL_DISPLAY_TYPE_PLAYER")return S};
Ajd=function(){for(var S=_.d(Object.values(_.qzE)),p=S.next();!p.done;p=S.next())p=p.value,p.isAsync&&p.s1C&&_.en("CATSTAT",_.Nkq(2,p))};
_.Tv=function(S,p){S=_.IS("FLOW_EVENT_NAMESPACE_ADBLOCK_ENFORCEMENT",S);(p===void 0?0:p)?_.tLe(S,"FLOW_TYPE_ADBLOCK_ENFORCEMENT"):_.dz(_.VX(),S,"FLOW_TYPE_ADBLOCK_ENFORCEMENT")};
Sjw=function(){if(!cje){if(Polymer.Base){var S=Polymer.Base.createdCallback;Polymer.Base.createdCallback=function(){try{S.apply(this,arguments)}catch(Q){_.w7(Q)}};
var p=Polymer.Base.attachedCallback;Polymer.Base.attachedCallback=function(){try{p.apply(this,arguments)}catch(Q){_.w7(Q)}};
var U=Polymer.Base.detachedCallback;Polymer.Base.detachedCallback=function(){try{U.apply(this,arguments)}catch(Q){_.w7(Q)}};
var Y=Polymer.Base.attributeChangedCallback;Polymer.Base.attributeChangedCallback=function(){try{Y.apply(this,arguments)}catch(Q){_.w7(Q)}};
var L=Polymer.Base._listen,I=new WeakMap;Polymer.Base._listen=function(Q,J,K){var G=function(){try{K.apply(this,arguments)}catch(X){_.w7(X)}};
I.set(K,G);L.call(this,Q,J,G)};
var V=Polymer.Base._unlisten;Polymer.Base._unlisten=function(Q,J,K){V.call(this,Q,J,I.get(K))}}if(Polymer.Async){var W=Polymer.Async,O=W._atEndOfMicrotask;
W._atEndOfMicrotask=function(){try{O.apply(W,arguments)}catch(Q){_.w7(Q)}}}if(Polymer.RenderStatus){var D=Polymer.RenderStatus,z=D.afterNextRender;
D.afterNextRender=function(Q,J,K){z.call(D,Q,function(){try{J.apply(this,arguments)}catch(G){_.w7(G)}},K)}}cje=!0}};
_.WB=function(S){var p=S?_.Tp(S):"";if(p){if(p.indexOf("/channel/UCrpQ4p1Ql_hG8rKXIKM1MOQ")===0)return"fashion";if(p.indexOf("/channel/UC4R8DWoMoI7CAwX8_LjQHig")===0)return"live";if(p.indexOf("/channel/UCEgdi0XIXXZ-qJOFPf4JSKw")===0)return"sports";if(p.indexOf("/channel/UCYfdidRxbB8Qhf0Nx7ioOYw")===0)return"news";if(p.indexOf("/channel/UCtFRv9O2AHqOZjjynzrv-xg")===0)return"learning";if(p.indexOf("/channel/UC-9-kyTW8ZkZNDHQJ6FgpwQ")===0)return"music";p=p.toLowerCase();if(p==="/")return"home";if(p===
"/channel_memberships")return"channel-memberships-shopfront";if(p.indexOf("/feed/trending")===0)return"trending";if(p.indexOf("/feed/explore")===0)return"explore";if(p.indexOf("/live")===0)return"live";if(p.indexOf("/results")===0)return"search";if(p.indexOf("/sports")===0)return"sports";if(p.indexOf("/fashion")===0||p.indexOf("/feed/fashion_destination")===0)return"fashion";if(/^\/(news)|(feed\/news_destination)|(@news)(\/.*)?$/.test(p))return"news";if(/^\/(learning)|(@learning)(\/.*)?$/.test(p))return"learning";
if(p.indexOf("/channel/")===0||p.indexOf("/user/")===0||p.indexOf("/gaming")===0||p.indexOf("/post/")===0)return"channel";if(pVd(S))return"show";if(p==="/playlist"||p.indexOf("/playlist/")===0||p==="/view_play_list"||p.indexOf("/view_play_list/")===0||p.indexOf("/show/")===0)return"playlist";if(p==="/feed/history"||p.indexOf("/feed/history/")===0)return"history";if(p==="/new")return"labs";if(p==="/feed/subscriptions")return"subscriptions";if(p.indexOf("/feed/subscriptions/")===0)return"filteredsubscriptions";
if(p==="/history_controls")return"standalone";if(p.indexOf("/account")===0||p==="/gaia_link")return"WEB_PAGE_TYPE_SETTINGS";if(p.indexOf("/paid_memberships")===0||p.indexOf("/refund")===0||p.indexOf("/purchases")===0||p.indexOf("/feed/purchases")===0)return"memberships-and-purchases";if(p.indexOf("/product")===0)return"yts-products";if(p.indexOf("/premium")===0||p.indexOf("/musicpremium")===0)return p.indexOf("/premium/offers")===0||p.indexOf("/musicpremium/offers")===0?"ypc-offers":"red";if(p===
"/cart/checkout"||p==="/cart")return"ypc-checkout";if(p.indexOf("/feed/downloads")===0||p.indexOf("/redeem")===0||p.indexOf("/reporthistory")===0)return"browse";if(p.indexOf("/hashtag")===0)return"hashtag-landing-page";if(p.indexOf("/handle")===0)return"handle";if(p.indexOf("/source")===0)return"audio-pivot";if(p.search(RegExp("^/playables/(?!saved)."))===0)return"mini_app";if(p.indexOf("/playables")===0)return"playables";if(p.indexOf("/create/live/join")===0)return"open-in-app";if(p.indexOf("/shorts")===
0)return"shorts";if(p.indexOf("/feed/channels")===0)return"subscriptions-channels";(p=S?_.Tp(S):"")&&p.indexOf("/watch")===0&&_.y("web_watch_enable_learning_journey")?(S=_.mc(S),S=!!S.list&&S.list.indexOf("LJPP")===0):S=!1;if(S)return"learning_journey_watch"}};
_.O1=function(S){var p,U;(S=(U=_.b(S==null?void 0:S.commandMetadata,_.NU))==null?void 0:U.url)&&(p=_.WB(S));return p};
pVd=function(S){var p=S?_.Tp(S):"";if(!p)return!1;p=p.toLowerCase();return p.indexOf("/show/")===0||p.indexOf("/playlist")===0&&(S=_.mc(S),S.list&&S.list.indexOf("EL")===0)?!0:!1};
DG=function(S){var p="unknown",U;var Y=((U=_.b(S==null?void 0:S.commandMetadata,_.NU))==null?void 0:U.webPageType)||"";Y?(U=Y.toLowerCase(),U.startsWith("web_page_type_")&&(U=U.slice(14))):U=Y;U&&UoG[U.toUpperCase()]?p=UoG[U.toUpperCase()]:_.b(S,_.kM)||_.b(S,Yjk)?p="browse":_.b(S,_.HB)?p="search":_.b(S,_.E$)&&(p="watch");p==="watch"&&_.O1(S||null)==="learning_journey_watch"&&(p="learning_journey_watch");p==="unknown"&&_.eP(Error("Jf`"+JSON.stringify({clickTrackingParams:S==null?void 0:S.clickTrackingParams,
commandMetadata:S==null?void 0:S.commandMetadata,allEndpointKeys:Object.keys(S||[])})));return p};
_.zv=function(S){if(!_.LgX||S)_.LgX=_.kE();return _.LgX};
_.MNG=function(S){return!!_.b(S,_.E$)||!!_.b(S,_.QX)&&_.y("kevlar_enable_shorts_prefetch")};
_.ImG=function(S,p){S=_.b(S,_.E$)||_.b(S,_.QX);return"v"+S.videoId+(S.playlistId?"-pl"+S.playlistId:"")+(p?"-an1":"")+(S.params?"-pr"+S.params:"")};
nH=function(S){return function(){return new S}};
JB=function(S){var p=_.tW();return function(){return p.resolve(S)}};
VNk=function(S){var p=_.pA("web_pbj_log_warning_rate",0);p=p>0&&Math.random()<p;if(!_.b(S,_.QX))return p&&_.eP(Error("Mf")),!1;var U;return _.y("shorts_controller_retrieve_seedless_sequence_v2")&&((U=_.b(S,_.QX))==null?void 0:U.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS"?!0:doG(S)?!0:(p&&_.eP(Error("Nf")),!1)};
doG=function(S){var p=(_.b(S,_.E$)||_.b(S,_.QX)).videoId;if(!p||!TWR.test(p))return!1;var U;return(S=(U=_.b(S.commandMetadata,_.NU))==null?void 0:U.url)&&(S.includes(p)||S.startsWith("/clip"))?!0:!1};
_.OYw=function(){var S=_.D9();return S.getFlag(192)?S.getFlag(190):!(_.y("web_watch_cinematics_disabled_by_default")||_.y("web_watch_cinematics_preferred_reduced_motion_default_disabled")&&WgR())};
_.yX=function(S,p,U){var Y={};Y.currentUrl=p;Y.vis=S.vis!==void 0?S.vis:0;Y.splay=!1;p=_.D9();Y.autoCaptionsDefaultOn=p.getFlag(66);p.getFlag(141)?p.getFlag(140)?Y.autonavState="STATE_OFF":Y.autonavState="STATE_ON":Y.autonavState="STATE_NONE";Y.html5Preference="HTML5_PREF_WANTS";isNaN(_.g7("STS"))||(Y.signatureTimestamp=_.g7("STS"));S.autonav&&(Y.autoplay=!0,Y.autonav=!0);S.mutedAutoplay&&(Y.autoplay=!0,Y.mutedAutoplay=!0);S.inlinePlayback&&(Y.autoplay=!0,Y.autonav=!1,Y.isInlineUnmutedPlayback=!!S.inlineUnmuted);
Y.referer=U;Y.lactMilliseconds=S.lact!==void 0?S.lact.toString():"-1";_.y("enable_unknown_lact_fix_on_html5")&&Y.lactMilliseconds==="-1"&&_.eP(new _.y7("Unknown LACT is set in playbackContext.",{"lact in tempData":S.lact||"undefined",autonav:S.autonav||"undefined"}));S={};p.getFlag(194)&&(S.hasShownAmbientMode=!0);p.getFlag(192)&&(S.hasToggledOffAmbientMode=!0);_.OYw()&&(S.watchAmbientModeEnabled=!0);Y.watchAmbientModeContext=S;return Y};
kbr=function(S){var p={},U=S.pbis||0;U&&(p.playbackBeginsInSeconds=U);S.prefetch_reason&&S.prefetch_reason==="hc_pbis"&&(p.prefetchReason="PREFETCH_REASON_HINT_CONFIG_PLAYBACK_BEGINS_IN_SECONDS");return p};
_.bE=function(S){S=S===void 0?!1:S;var p=_.D9(),U="USER_INTERFACE_THEME_LIGHT";p.getFlag(165)?U="USER_INTERFACE_THEME_DARK":p.getFlag(174)?U="USER_INTERFACE_THEME_LIGHT":_.KH()&&(U="USER_INTERFACE_THEME_DARK");return S?U:HYe()||U};
_.DoR=function(){return!_.y("kevlar_legacy_browsers")&&window.matchMedia&&window.matchMedia("(prefers-color-scheme)").matches};
_.KH=function(){return _.DoR()&&window.matchMedia("(prefers-color-scheme: dark)").matches};
_.jv=function(){var S=_.D9();return _.DoR()&&!S.getFlag(165)&&!S.getFlag(174)};
HYe=function(){var S=S===void 0?window.location.href:S;if(_.y("kevlar_disable_theme_param"))return null;var p=_.Tp(S);if(_.zZw(p))return"USER_INTERFACE_THEME_DARK";try{var U=_.mc(S).theme;return QnE.get(U)||null}catch(Y){}return null};
_.zZw=function(S){return _.y("enable_dark_theme_only_on_shorts")?!(S==null||!S.startsWith("/shorts/")):!1};
_.ytE=function(S,p,U,Y,L){p=p===void 0?!1:p;U=U===void 0?!1:U;var I=_.g7("INNERTUBE_CONTEXT");if(!I)return _.ZP(Error("Qf")),{};I=(0,_.h9.unsafeClone)(I);_.y("web_no_tracking_params_in_shell_killswitch")||delete I.clickTracking;I.client||(I.client={});var V=I.client;V.clientName==="MWEB"&&V.clientFormFactor!=="AUTOMOTIVE_FORM_FACTOR"&&(V.clientFormFactor=_.g7("IS_TABLET")?"LARGE_FORM_FACTOR":"SMALL_FORM_FACTOR");V.screenWidthPoints=window.innerWidth;V.screenHeightPoints=window.innerHeight;V.screenPixelDensity=
Math.round(window.devicePixelRatio||1);V.screenDensityFloat=window.devicePixelRatio||1;V.utcOffsetMinutes=-Math.floor((new Date).getTimezoneOffset());V.userInterfaceTheme=_.bE();if(!p){var W=_.O9w();W&&(V.connectionType=W);_.y("web_log_effective_connection_type")&&(W=H9u())&&(I.client.effectiveConnectionType=W)}var O;if(_.y("web_log_memory_total_kbytes")&&((O=_.UX.navigator)==null?0:O.deviceMemory)){var D;O=(D=_.UX.navigator)==null?void 0:D.deviceMemory;I.client.memoryTotalKbytes=""+O*1E6}p&&Y&&!_.y("web_it_context_set_original_url_ks")&&
(V.originalUrl=nKG(_.UX.location.href,Y).toString());_.y("web_gcf_hashes_innertube")&&(W=GIu())&&(D=W.coldConfigData,O=W.coldHashData,W=W.hotHashData,I.client.configInfo=I.client.configInfo||{},D&&(I.client.configInfo.coldConfigData=D),O&&(I.client.configInfo.coldHashData=O),W&&(I.client.configInfo.hotHashData=W));D=_.mc(_.UX.location.href);!_.y("web_populate_internal_geo_killswitch")&&D.internalcountrycode&&(V.internalGeo=D.internalcountrycode);!_.y("web_populate_client_screen_killswitch")&&L&&(V.clientScreen=
L);V.clientName==="MWEB"||V.clientName==="WEB"?(V.mainAppWebInfo={graftUrl:Y||_.UX.location.href},_.y("kevlar_woffle")&&_.rz.instance&&(Y=_.rz.instance,V.mainAppWebInfo.pwaInstallabilityStatus=!Y.appInstalledEventFired&&Y.deferredInstallPrompt?"PWA_INSTALLABILITY_STATUS_CAN_BE_INSTALLED":"PWA_INSTALLABILITY_STATUS_UNKNOWN"),V.mainAppWebInfo.webDisplayMode=Q2e(),V.mainAppWebInfo.isWebNativeShareAvailable=navigator&&navigator.share!==void 0):V.clientName==="TVHTML5"&&(!_.y("web_lr_app_quality_killswitch")&&
(Y=_.g7("LIVING_ROOM_APP_QUALITY"))&&(V.tvAppInfo=Object.assign(V.tvAppInfo||{},{appQuality:Y})),Y=_.g7("LIVING_ROOM_CERTIFICATION_SCOPE"))&&(V.tvAppInfo=Object.assign(V.tvAppInfo||{},{certificationScope:Y}));!_.y("web_populate_time_zone_itc_killswitch")&&(Y=TnG())&&(V.timeZone=Y);(Y=PNw())?V.experimentsToken=Y:delete V.experimentsToken;V=ZZN();Y=_.Jtw();Y=(0,_.h9.getValues)(Y.tokenJars);I.request=Object.assign({},I.request,{internalExperimentFlags:V,consistencyTokenJars:Y});!_.y("web_prequest_context_killswitch")&&
(V=_.g7("INNERTUBE_CONTEXT_PREQUEST_CONTEXT"))&&(I.request.externalPrequestContext=V);Y=_.D9();V=Y.getFlag(58);Y=Y.get("gsml","");I.user=Object.assign({},I.user);V&&(I.user.enableSafetyMode=V);Y&&(I.user.lockedSafetyMode=!0);_.y("warm_op_csn_cleanup")?U&&(p=_.X$())&&(I.clientScreenNonce=p):!p&&(p=_.X$())&&(I.clientScreenNonce=p);S&&(I.clickTracking={clickTrackingParams:S});if(S=_.ad("yt.mdx.remote.remoteClient_"))I.remoteClient=S;_.Gv.getInstance().setLocationOnInnerTubeContext(I);try{var z=x0u(),
Q=z.bid;delete z.bid;I.adSignalsInfo={params:[],bid:Q};for(var J=_.d(Object.entries(z)),K=J.next();!K.done;K=J.next()){var G=_.d(K.value),X=G.next().value,Z=G.next().value;z=X;Q=Z;S=void 0;(S=I.adSignalsInfo.params)==null||S.push({key:z,value:""+Q})}var l,a;if(((l=I.client)==null?void 0:l.clientName)==="TVHTML5"||((a=I.client)==null?void 0:a.clientName)==="TVHTML5_UNPLUGGED"){var N=_.g7("INNERTUBE_CONTEXT");N.adSignalsInfo&&(I.adSignalsInfo.advertisingId=N.adSignalsInfo.advertisingId,I.adSignalsInfo.advertisingIdSignalType=
"DEVICE_ID_TYPE_CONNECTED_TV_IFA",I.adSignalsInfo.limitAdTracking=N.adSignalsInfo.limitAdTracking)}}catch(m){_.ZP(m)}return I};
_.Kge=function(S){var p=new hB(_.g7("ONE_PICK_URL",""));p.urlParamMap_.set("hostId",S);(S=_.g7("GAPI_LOCALE"))&&p.urlParamMap_.set("hl",S);(S=_.g7("SESSION_INDEX"))&&p.urlParamMap_.set("authuser",S);(S=_.g7("DELEGATED_SESSION_ID"))&&p.urlParamMap_.set("groupId",S);return p};
jnN=function(){var S=_.tW(),p=S.resolve(_.RS);S=S.resolve(_.F3);return new bYN(p,S)};
Gbe=function(S){if(window.IntersectionObserver)return new rtw(S,400);throw new TypeError("Xf");};
RZE=function(){var S=Hammer.TouchAction,p=S.prototype.preventDefaults;S.prototype.preventDefaults=function(U){var Y=this.actions.indexOf("pan-down")>-1;if(!Y)return p.call(this,U);if(!hZN){var L=U.srcEvent;U=U.direction;var I;if((I=this.manager)==null?0:I.session.prevented)L.preventDefault();else if(Y&&U&Hammer.DIRECTION_DOWN)return this.preventSrc(L)}}};
FgG=function(S){if(!S||S.size===0)return Hammer.DIRECTION_ALL;if(S.size===2){if(S.has("up")&&S.has("down"))return Hammer.DIRECTION_VERTICAL;if(S.has("right")&&S.has("left"))return Hammer.DIRECTION_HORIZONTAL}if(S.size===1){if(S.has("up"))return Hammer.DIRECTION_UP;if(S.has("down"))return Hammer.DIRECTION_DOWN;if(S.has("right"))return Hammer.DIRECTION_RIGHT;if(S.has("left"))return Hammer.DIRECTION_LEFT}return Hammer.DIRECTION_ALL};
_.Pzq=function(){return XVw?Promise.resolve(XVw):new Promise(function(S,p){var U=self.indexedDB.open("swpushnotificationsdb");U.onerror=p;U.onsuccess=function(){var Y=U.result;if(Y.objectStoreNames.contains("swpushnotificationsstore"))XVw=Y,S(XVw);else return self.indexedDB.deleteDatabase("swpushnotificationsdb"),_.Pzq()};
U.onupgradeneeded=ZYu})};
ZYu=function(S){S=S.target.result;S.objectStoreNames.contains("swpushnotificationsstore")&&S.deleteObjectStore("swpushnotificationsstore");S.createObjectStore("swpushnotificationsstore",{keyPath:"key"})};
eZr=function(S){var p=snu(),U;return _.T(function(Y){switch(Y.nextAddress){case 1:return _.M2(Y,2),_.k(Y,S.match(p,{cacheName:"yt-appshell-assets"}),4);case 4:U=Y.yieldResult;_.CA(Y,3);break;case 2:_.W4(Y);case 3:return Y.return(U)}})};
snu=function(){var S=typeof ServiceWorkerGlobalScope!=="undefined"&&self instanceof ServiceWorkerGlobalScope?gKr.registration.scope:utR;S.endsWith("/")&&(S=S.slice(0,-1));return S+"/app_shell_home"};
wVk=function(S){S.map(function(p){return p.source}).join("|")};
_.lmw=function(S){return _.T(function(p){return p.return(eZr(S))})};
amN=function(){var S=window.caches,p;return _.T(function(U){if(U.nextAddress==1)return _.k(U,_.lmw(S),2);p=U.yieldResult;return U.return(!!p)})};
vKG=function(){_.T(function(S){if(S.nextAddress==1){if(fme)return S.jumpTo(0);fme=!0;if(_.y("enable_system_health_primes_monitoring"))return _.dE(Czk,3E4),xoq(),S.return();if(!(Math.random()<_.pA("web_system_health_fraction")))return S.jumpTo(0);EKu={heightPixels:screen.height,widthPixels:screen.width};X3&&!isNaN(X3.jsHeapSizeLimit)&&(EKu.memoryTotalKbytes=String(Math.round(X3.jsHeapSizeLimit/1E3)));window.devicePixelRatio&&(EKu.devicePixelRatio=window.devicePixelRatio);return _.k(S,mou(),4)}_.dE(Czk,
3E4);return _.k(S,oKG(),0)})};
mou=function(){return _.T(function(S){if(S.nextAddress==1)return PB.intersectionObserverPresent="IntersectionObserver"in window,PB.serviceWorkerPresent="serviceWorker"in navigator,PB.webSharePresent="share"in navigator,PB.fullScreenApiPresent="exitFullscreen"in document||"webkitExitFullscreen"in document,PB.cacheStoragePresent="caches"in window,PB.storageEstimatePresent="storage"in navigator&&"estimate"in navigator.storage,PB.storagePersistPresent="storage"in navigator&&"persist"in navigator.storage,
PB.webkitTemporaryStoragePresent="webkitTemporaryStorage"in ZG&&ZG.webkitTemporaryStorage&&"queryUsageAndQuota"in ZG.webkitTemporaryStorage,PB.promiseRejectionEventPresent=typeof PromiseRejectionEvent!=="undefined",_.k(S,onN(),2);PB.indexedDbPresent=S.yieldResult;PB.subtleCryptoPresent="crypto"in window&&"subtle"in window.crypto&&"importKey"in window.crypto.subtle;PB.broadcastChannelPresent="BroadcastChannel"in window;PB.webLocksApiPresent="locks"in navigator;window.matchMedia&&window.matchMedia("(color-gamut)").matches&&
(PB.supportsP3Color=window.matchMedia("(color-gamut: p3)").matches,PB.supportsRec2020Color=window.matchMedia("(color-gamut: rec2020)").matches);_.OV(S)})};
Czk=function(){var S=9E4+Math.random()*2E3;_.pv()>S||(_.y("enable_system_health_primes_monitoring")?xoq():oKG())};
oKG=function(){var S;return _.T(function(p){if(p.nextAddress==1)return _.k(p,$or(),2);S=p.yieldResult;_.RV("systemHealthCaptured",S);_.OV(p)})};
xoq=function(){var S={metric:{}},p=iYk();p.networkEvents.length&&(S.metric.networkEvents=NWE(p));_.RV("systemHealthCaptured",S)};
$or=function(){var S,p,U,Y,L,I,V,W,O,D;return _.T(function(z){switch(z.nextAddress){case 1:S={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)};p=window.screen;_.y("enable_is_extended_monitoring")&&p&&"isExtended"in p&&(S.isExtended=!!p.isExtended);U={metric:{staticContext:EKu,dynamicContext:S,webMetric:BWw,webApiSupport:PB}};
if(Y=_.X$())U.csn=Y;X3&&(U.metric.webMetric.currentHeapKbytes=Math.round(X3.usedJSHeapSize/1E3));window.matchMedia&&(U.metric.dynamicContext.hasHoverSupport=window.matchMedia("(any-hover: hover)").matches,U.metric.dynamicContext.hasFinePointer=window.matchMedia("(any-pointer: fine)").matches,U.metric.dynamicContext.hasCoarsePointer=window.matchMedia("(any-pointer: coarse)").matches);if(!("getBattery"in ZG&&typeof ZG.getBattery==="function")){z.jumpTo(2);break}return _.k(z,ZG.getBattery(),3);case 3:if(L=
z.yieldResult)U.metric.dynamicContext.chargingStatus=L.charging?"CHARGING_AC":"CHARGING_INACTIVE";case 2:"onLine"in navigator&&(U.metric.dynamicContext.networkCoarseState=navigator.onLine?0:2);if(PB.storageEstimatePresent)return _.k(z,navigator.storage.estimate(),8);if(!PB.webkitTemporaryStoragePresent){z.jumpTo(5);break}return _.k(z,qjE(),7);case 7:I=z.yieldResult;z.jumpTo(5);break;case 8:I=z.yieldResult;case 5:return U.metric.dynamicContext.deviceStorageQuotaMbytes=((V=I)==null?0:V.quota)?String(Math.round(I.quota/
1048576/10)*10):"-1",U.metric.dynamicContext.deviceStorageUsageMbytes=((W=I)==null?0:W.usage)?String(Math.round(I.usage/1048576/10)*10):"-1",O=U.metric.dynamicContext,_.k(z,amN(),9);case 9:return O.hasAppShell=z.yieldResult,D=iYk(),D.networkEvents.length&&(U.metric.networkEvents=NWE(D)),z.return(U)}})};
qjE=function(){return new Promise(function(S){var p;PB.webkitTemporaryStoragePresent&&(p=ZG.webkitTemporaryStorage)!=null&&p.queryUsageAndQuota?ZG.webkitTemporaryStorage.queryUsageAndQuota(function(U,Y){S({usage:U,quota:Y})}):S(void 0)})};
_.s1=function(S){S&=16777215;S=[(S&16711680)>>16,(S&65280)>>8,S&255];return Atd(S[0],S[1],S[2])};
_.ev=function(S){S=[(S&16711680)>>>16,(S&65280)>>>8,S&255,(S&4278190080)>>>24];var p=_.tNw(S,function(U){return U==(U&255)});
S[3]=(S[3]/255).toFixed(3);if(!p)throw Error("Yf`"+S.join(","));return"rgba("+S.join(",")+")"};
_.ctk=function(S){return[(S&16711680)>>>16,(S&65280)>>>8,S&255]};
_.Ssk=function(S){S=S.map(function(p){p/=255;return p<=.03928?p/12.92:Math.pow((p+.05)/1.05,2.4)});
return S[0]*.2126+S[1]*.7152+S[2]*.0722};
gz=function(S,p){S=_.ctk(S);return"rgba("+S[0]+", "+S[1]+", "+S[2]+", "+p+")"};
_.pLw=function(){try{return!!self.localStorage}catch(S){return!1}};
Mjk=function(){if(Ubq())_.eP(Error("Zf"));else{var S=document.createElement("iframe");S.style.display="none";var p=p===void 0?window.location.href:p;var U=_.Zu(_.g7("PERSIST_IDENTITY_IFRAME_URL"));p=U?U:(new URL(p)).host.indexOf("studio")===0?_.UF(Ysd,"persist_identity"):_.UF(LxG,"persist_identity");_.yir(S,1,p);S.id="persist_identity";var Y;(Y=document.body)==null||Y.appendChild(S)}};
Ubq=function(){var S=Ihq;S||(S=document.querySelector("#persist_identity"));return S};
dbq=function(){var S=!1;try{S=!!window.sessionStorage.getItem("session_logininfo")}catch(p){S=!0}return(_.g7("INNERTUBE_CLIENT_NAME")==="WEB"||_.g7("INNERTUBE_CLIENT_NAME")==="WEB_CREATOR")&&S};
Vjr=function(S,p){if(!dbq())return!1;p||(p=_.g7("LOGIN_INFO"));return p?(S.session_logininfo=p,!0):!1};
WxE=function(S,p){S=S===void 0?!1:S;if((p===void 0||!p)&&TrX!=="IDENTITY_STICKINESS_INITIAL_STATE_ENUM_UNKNOWN")if(window.sessionStorage.getItem("from_switch_account"))window.sessionStorage.removeItem("from_switch_account");else if(_.ub("LOG_STICKINESS",!1)){p=_.X$();var U=_.F$(),Y={identityStickinessData:{initialState:TrX}};p&&U&&_.mp(p,U,Y)}if(p=Ubq())if(U=p.src?(new URL(p.src)).origin:"*",S){var L;(L=p.contentWindow)==null||L.postMessage({action:"clear"},U)}else if(!(Number(window.sessionStorage.getItem("stickiness_reload"))>=
2)&&(S=window.sessionStorage.getItem("session_logininfo"))){var I;(I=p.contentWindow)==null||I.postMessage({loginInfo:S},U)}};
_.uE=function(S){S=S===void 0?!0:S;try{window.sessionStorage.removeItem("stickiness_reload"),window.sessionStorage.removeItem("session_logininfo"),_.en("LOGIN_INFO",""),S&&window.sessionStorage.setItem("from_switch_account","1"),WxE(!0,S)}catch(p){}};
Oje=function(S){S&&(S.startsWith("https://accounts.google.com/AddSession")?_.uE():S.startsWith("https://accounts.google.com/ServiceLogin")?_.uE():S.startsWith("https://myaccount.google.com")&&_.mz(S).getPath().endsWith("/youtubeoptions")&&_.uE())};
wz=function(S,p){Oje(S);if(_.ub("LOGGED_IN",!0)&&dbq()){var U=LnG(S);U==null&&(U={});Vjr(U,p)&&_.$n(S,U)}};
kWw=function(){function S(p){for(p=p.target;p&&p.nodeName!=="A";)if(p=p.parentNode,!(p&&p instanceof HTMLElement))return;if(p&&!p.hasAttribute("download")&&p.getAttribute("rel")!=="external"&&p.href)return p.href}
document.addEventListener("mousedown",function(p){p.button!==0&&(p=S(p))&&wz(p)});
document.addEventListener("click",function(p){(p=S(p))&&wz(p)})};
zWw=function(){var S=new Hje;try{if(_.ub("LOGGED_IN",!0)){try{window.sessionStorage.setItem("canUseSessionStorage","true"),window.sessionStorage.removeItem("canUseSessionStorage")}catch(W){S.increment(5,!1);return}if(_.g7("LOGIN_INFO")){var p=Dbw?Dbw:window.location;_.g7("INNERTUBE_CLIENT_NAME")==="WEB_CREATOR"&&Mjk();var U=LnG(p.href);U==null&&(U={});var Y=U.session_logininfo,L=Number(window.sessionStorage.getItem("stickiness_reload")),I=Y===_.g7("LOGIN_INFO");if(!window.sessionStorage.getItem("session_logininfo")||
L>=2||I)L>=2?S.increment(2,I):I?S.increment(7,I):window.sessionStorage.getItem("session_logininfo")||(S.increment(3,I),TrX="IDENTITY_STICKINESS_INITIAL_STATE_ENUM_NEW_TAB"),window.sessionStorage.setItem("session_logininfo",_.g7("LOGIN_INFO")),window.sessionStorage.removeItem("stickiness_reload");else if(window.sessionStorage.getItem("session_logininfo"))if(_.g7("LOGIN_INFO")===window.sessionStorage.getItem("session_logininfo"))S.increment(4,I),window.sessionStorage.removeItem("stickiness_reload");
else if(L<2){window.sessionStorage.setItem("stickiness_reload",String(L+1));var V=p.href;V=_.iL(V,"sttick");wz(V,window.sessionStorage.getItem("session_logininfo"));V=_.od(V,{sttick:L});S.increment(L,I);_.vE(p,V)}}else S.increment(6,!1)}else _.uE(!1)}catch(W){}};
_.lE=function(S,p,U,Y,L){p=p===void 0?{}:p;U=U===void 0?"":U;Y=Y===void 0?window:Y;S=_.vQ(S,p);wz(S);U=_.JA(S+U,L);_.vE(Y.location,U)};
_.QkG=function(S,p,U,Y,L){L=L===void 0?!1:L;U&&_.$n(S,U);U=_.JA(S);var I=_.DO(U);S!=I&&_.fU(Error("$f`"+S));S=I;p=p||wn(S).toString(36);try{if(L)return L=S,L=yBw(L),wz(L),_.s3(window,L,p,"attributionsrc")}catch(V){_.w7(V)}wz(S);return _.s3(window,U,p,Y)};
ntR=function(S){if(S.urlEndpoint){if(S=_.mc(S.urlEndpoint.url),S.adurl)return qZ(S.adurl)}else if(S.watchEndpoint)return"//www.youtube.com/watch?v="+S.watchEndpoint.videoId;return null};
J6N=function(S){if(!S||!S.reportingPings)return null;var p={};S.reportingPings.forEach(function(U){U.pingType in p?p[U.pingType].push(U.url):p[U.pingType]=[U.url]});
return{adpings:nuw(p)}};
_.aS=function(){return{isShellLoad:_.ub("IS_SHELL_LOAD",!1)}};
Kxw=function(){navigator.serviceWorker.getRegistrations().then(function(S){S.forEach(y6k)})};
y6k=function(S){S&&_.bjN(jkE,S.scope)};
_.bjN=function(S,p){p={scope:p||_.Ug("service_worker_scope")||"/"};return navigator.serviceWorker.register(_.Tl(S),p)};
fH=function(S,p,U,Y){if(p&&p.serializedYpcCujLoggingParams){if(U){var L={};L.transactionErrorType=U;Y&&(L.errorMessage=Y);p.ypcCujLoggingClientPayload={ypcAcquisitionCujLoggingClientPayload:{ypcAcquisitionDebugLoggingParams:L}}}U={};U.ypcCujContext=p;S=_.IS("FLOW_EVENT_NAMESPACE_YPC_ACQUISITION",S,U);_.dz(_.VX(),S,"FLOW_TYPE_YPC_ACQUISITION")}};
_.r6X=function(S,p,U,Y){var L={};L.serializedTransactionFlowLoggingParams=p;U&&(L.errorType=U);Y&&(L.errorMessage=Y);_.RV(S,L);_.Fr()};
_.GWG=function(S){S&&_.r6X("transactionFlowStarted",S)};
_.hWG=function(S){S&&_.r6X("transactionFlowCancelled",S)};
_.CH=function(S,p,U){p&&_.r6X("transactionFlowFailed",p,S,U)};
RWN=function(S){if(_.y("enable_setting_app_inert_when_buy_flow_opens")){var p=document.querySelector("ytd-app")||document.querySelector("ytmusic-app");p&&(p.inert=S)}};
_.xM=function(){this.megabloxUrl_=null};
_.E1=function(S){try{var p=Fxw==null?void 0:Fxw.composedPath(S)}catch(U){p=S.composedPath?S.composedPath():[]}return p&&p.length>0?p:S.composedPath?S.composedPath():[]};
_.mF=function(S){return _.E1(S)[0]};
_.oS=function(S){if(!(S instanceof Element))return null;S=S.classList?Array.from(S.classList):void 0;if(!S)return null;var p=S.indexOf("style-scope");return p>-1&&p+1<S.length?S[p+1]:null};
vB=function(S){if(!(S instanceof HTMLElement))return null;var p=S&&(S.$$||S.polymerController)?S.tagName.toLowerCase():null;return p?p:_.oS(S)};
XLq=function(S,p){return S.replace(/[^a-z]*[^\s]+/g,function(U){return U+".style-scope."+p})};
PcN=function(S,p){return p?S.split(",").map(function(U){return XLq(U.trim(),p)}).join(", "):S};
_.$M=function(S){var p,U,Y,L;return(L=(Y=(U=(p=S.root)!=null?p:S.shadowRoot)!=null?U:S.__shady_native_shadowRoot)!=null?Y:S.__shady_shadowRoot)!=null?L:S};
iE=function(S){return S instanceof ShadowRoot?ShadowRoot:S instanceof DocumentFragment?DocumentFragment:S instanceof Document?Document:HTMLElement};
ZjE=function(S){var p,U,Y;return(Y=(U=(p=S.parentElement)!=null?p:S.__shady_native_parentElement)!=null?U:S.__shady_parentElement)!=null?Y:null};
skX=function(S){var p,U,Y;return(Y=(U=(p=S.parentNode)!=null?p:S.__shady_native_parentNode)!=null?U:S.__shady_parentNode)!=null?Y:null};
eWX=function(S){var p,U,Y;return(Y=(U=(p=S.__shady_parentNode)!=null?p:S.__shady_native_parentNode)!=null?U:S.parentNode)!=null?Y:null};
gtw=function(S){var p,U;return(U=(p=skX(S))!=null?p:S.host)!=null?U:null};
uhE=function(S){var p,U,Y;return(Y=(U=(p=S.nextSibling)!=null?p:S.__shady_native_nextSibling)!=null?U:S.__shady_nextSibling)!=null?Y:null};
wLw=function(S){var p,U,Y;return(Y=(U=(p=S.previousSibling)!=null?p:S.__shady_native_previousSibling)!=null?U:S.__shady_previousSibling)!=null?Y:null};
lhN=function(S){var p,U,Y;return(Y=(U=(p=S.nextElementSibling)!=null?p:S.__shady_native_nextElementSibling)!=null?U:S.__shady_nextElementSibling)!=null?Y:null};
ahR=function(S){var p,U,Y;return(Y=(U=(p=S.previousElementSibling)!=null?p:S.__shady_native_previousElementSibling)!=null?U:S.__shady_previousElementSibling)!=null?Y:null};
fhk=function(S){var p,U,Y;return new Set([].concat(_.jo((p=S.children)!=null?p:[]),_.jo((U=S.__shady_native_children)!=null?U:[]),_.jo((Y=S.__shady_children)!=null?Y:[])))};
CcE=function(S){var p,U,Y;return new Set([].concat(_.jo((p=S.childNodes)!=null?p:[]),_.jo((U=S.__shady_native_childNodes)!=null?U:[]),_.jo((Y=S.__shady_childNodes)!=null?Y:[])))};
xbw=function(S){if(!S)return null;var p=_.oS(S);if(!p){var U;return(U=Node.prototype.getRootNode)==null?void 0:U.call(S)}p=p.toUpperCase();for(S=ZjE(S);S&&S.tagName!==p;)S=ZjE(S);return S?_.$M(S):null};
Etw=function(S){for(;S&&!(S instanceof HTMLElement);)S=gtw(S);return S};
mbd=function(S){var p=Etw(S);return S===p?_.oS(S):p?vB(p):null};
otr=function(S){return(S=Etw(S))?vB(S):null};
vtu=function(S){if(S instanceof Comment)return!1;if(S instanceof Text){var p,U;if(((U=(p=S.textContent)==null?void 0:p.trim())!=null?U:"")==="")return!1}return!0};
NI=function(S,p,U){var Y=p(S);for(U=U===void 0?otr(S):U;Y&&(mbd(Y)!==U||!vtu(Y));)S=Y,Y=p(S);return Y};
$bk=function(S,p,U){if(!p)return null;S=otr(S);return mbd(p)===S&&vtu(p)?p:NI(p,U,S)};
iju=function(S){return NI(S,eWX,_.oS(S))};
NrE=function(S){return NI(S,lhN)};
BrE=function(S){return NI(S,uhE)};
qsw=function(S){return NI(S,ahR)};
A6w=function(S){return NI(S,wLw)};
tjw=function(S){return $bk(S,S.firstChild||S.__shady_native_firstChild||S.__shady_firstChild||null,uhE)};
c6k=function(S){var p,U,Y;var L=(Y=(U=(p=S.firstElementChild)!=null?p:S.__shady_native_firstElementChild)!=null?U:S.__shady_firstElementChild)!=null?Y:null;return $bk(S,L,lhN)};
SQd=function(S){var p,U,Y;var L=(Y=(U=(p=S.lastChild)!=null?p:S.__shady_native_lastChild)!=null?U:S.__shady_lastChild)!=null?Y:null;return $bk(S,L,wLw)};
pWd=function(S){var p,U,Y;var L=(Y=(U=(p=S.lastElementChild)!=null?p:S.__shady_native_lastElementChild)!=null?U:S.__shady_lastElementChild)!=null?Y:null;return $bk(S,L,ahR)};
UKe=function(S){var p=otr(S);return Array.from(CcE(S)).filter(function(U){return mbd(U)===p})};
YQw=function(S){var p=vB(S);return Array.from(fhk(S)).filter(function(U){return _.oS(U)===p})};
_.BB=function(S,p,U){if(S instanceof HTMLElement&&_.oS(S)===U){var Y=Array.from(S.classList).indexOf("style-scope");if(Y===-1)S.classList.add("style-scope"),S.classList.add(p);else if(!(Y+1>=S.classList.length)){Y=S.classList[Y+1];var L,I;S==null||(L=S.classList)==null||(I=L.replace)==null||I.call(L,Y,p)}}if(S instanceof HTMLElement||S instanceof DocumentFragment)for(L=_.d(fhk(S)),I=L.next();!I.done;I=L.next())_.BB(I.value,p,U);return S};
qI=function(S,p){if(S instanceof HTMLElement&&_.oS(S)===p){var U=Array.from(S.classList).indexOf("style-scope");U===-1||U+1>=S.classList.length||S.classList.remove("style-scope",S.classList[U+1])}if(S instanceof HTMLElement||S instanceof DocumentFragment){U=_.d(S.children);for(var Y=U.next();!Y.done;Y=U.next())qI(Y.value,p)}return S};
_.LBw=function(S,p){return iE(S).prototype.appendChild.call(S,p)};
MWX=function(S,p){if(S===p)return!0;S=CcE(S);return Array.from(S).some(function(U){return MWX(U,p)})};
_.tB=function(S,p){if(S instanceof AB)return S;(p==null?0:p.ignoreOwnerDocument)&&!Object.getOwnPropertyDescriptor(S,"ownerDocument")&&Object.defineProperty(S,"ownerDocument",{get:function(){return window.document}});
return new AB(S)};
dKG=function(){var S=AB.prototype,p=[].concat(_.jo(IkR?[]:["getRootNode"]),["setAttribute","removeAttribute"]);p=_.d(p);for(var U=p.next(),Y={};!U.done;Y={method$jscomp$48:void 0},U=p.next())Y.method$jscomp$48=U.value,S[Y.method$jscomp$48]=function(L){return function(){return this.host[L.method$jscomp$48].apply(this.host,arguments)}}(Y)};
Tsr=function(){var S=AB.prototype,p=[].concat(_.jo(IkR?[]:"cloneNode contains appendChild insertBefore removeChild replaceChild".split(" ")),_.jo(VWe?[]:["querySelector","querySelectorAll"]));p=_.d(p);for(var U=p.next(),Y={};!U.done;Y={method$jscomp$49:void 0},U=p.next())Y.method$jscomp$49=U.value,S[Y.method$jscomp$49]=function(L){return function(){return this.root[L.method$jscomp$49].apply(this.root,arguments)}}(Y)};
kFX=function(){var S=AB.prototype,p=[].concat(_.jo(WBw?[]:["nextSibling","previousSibling","nextElementSibling","previousElementSibling"]),_.jo(O7w?[]:["parentNode"]));p=_.d(p);for(var U=p.next(),Y={};!U.done;Y={prop$jscomp$62:void 0},U=p.next())Y.prop$jscomp$62=U.value,Object.defineProperty(S,Y.prop$jscomp$62,{get:function(L){return function(){return this.host[L.prop$jscomp$62]}}(Y),
configurable:!0})};
zIG=function(){var S=AB.prototype,p=["activeElement"].concat(_.jo(WBw?[]:["firstChild","firstElementChild","lastElementChild","childNodes"]),_.jo(H7w?[]:["children"]),_.jo(DKw?[]:["lastChild"]));p=_.d(p);for(var U=p.next(),Y={};!U.done;Y={prop$jscomp$63:void 0},U=p.next())Y.prop$jscomp$63=U.value,Object.defineProperty(S,Y.prop$jscomp$63,{get:function(L){return function(){return this.root[L.prop$jscomp$63]}}(Y),
configurable:!0})};
QrE=function(){for(var S=AB.prototype,p=_.d(["innerHTML","textContent"]),U=p.next(),Y={};!U.done;Y={prop$jscomp$64:void 0},U=p.next())Y.prop$jscomp$64=U.value,Object.defineProperty(S,Y.prop$jscomp$64,{get:function(L){return function(){return this.root[L.prop$jscomp$64]}}(Y),
set:function(L){return function(I){this.root[L.prop$jscomp$64]=I}}(Y),
configurable:!0})};
nBu=function(S){var p=AB.prototype;S=_.d(Object.entries(S));for(var U=S.next(),Y={};!U.done;Y={fn$jscomp$360:void 0},U=S.next()){var L=_.d(U.value);U=L.next().value;L=L.next().value;Y.fn$jscomp$360=L;p[U]=function(I){return function(){return I.fn$jscomp$360.apply(null,[this.host.node||this.host].concat(_.jo(arguments)))}}(Y)}};
yOk=function(){for(var S=AB.prototype,p=_.d(Object.entries(JOX)),U=p.next(),Y={};!U.done;Y={fn$jscomp$361:void 0},U=p.next()){var L=_.d(U.value);U=L.next().value;L=L.next().value;Y.fn$jscomp$361=L;Object.defineProperty(S,U,{get:function(I){return function(){return I.fn$jscomp$361.apply(null,[this.host.node||this.host].concat(_.jo(arguments)))}}(Y),
configurable:!0})}};
_.p3=function(S){return S instanceof KBd||S instanceof Document?S:new KBd(S)};
b7G=function(){for(var S=KBd.prototype,p=_.d("setAttribute removeAttribute cloneNode contains appendChild insertBefore getRootNode removeChild replaceChild querySelector querySelectorAll".split(" ")),U=p.next(),Y={};!U.done;Y={method$jscomp$50:void 0},U=p.next())Y.method$jscomp$50=U.value,S[Y.method$jscomp$50]=function(L){return function(){return HTMLElement.prototype[L.method$jscomp$50].call.apply(HTMLElement.prototype[L.method$jscomp$50],[this.node].concat(_.jo(arguments)))}}(Y)};
jrR=function(){for(var S=KBd.prototype,p=_.d("firstChild lastChild firstElementChild lastElementChild childNodes children parentNode nextSibling previousSibling nextElementSibling previousElementSibling classList innerHTML textContent".split(" ")),U=p.next(),Y={};!U.done;Y={prop$jscomp$65:void 0},U=p.next())Y.prop$jscomp$65=U.value,Object.defineProperty(S,Y.prop$jscomp$65,{get:function(L){return function(){var I;return(I=this.node["__shady_native_"+L.prop$jscomp$65])!=null?I:this.node[L.prop$jscomp$65]}}(Y),
configurable:!0})};
_.U2=function(S,p,U){U===void 0&&(U=!S.classList.contains(p));U?S.classList.add(p):S.classList.remove(p)};
_.Yk=function(S,p,U){U===void 0&&(U=!S.hasAttribute(p));if(p==="class")throw Error("dg");U?_.p3(S).setAttribute(p,""):_.p3(S).removeAttribute(p)};
rOE=function(S){return(S.localName!=="slot"?[]:(0,_.L3)(S).assignedNodes({flatten:!0})).filter(function(p){return p.nodeType===Node.ELEMENT_NODE})};
_.GFu=function(S){return(S=_.tB(S).querySelector("slot"))&&S.localName==="slot"?rOE(S):[]};
_.Ms=function(S,p){window.ShadyCSS&&window.ShadyCSS.styleSubtree(S,p)};
Is=function(S,p){var U=p.bind(S);return function(Y){U(Y,Y.detail)}};
_.d9=function(S,p){var U=hIe.get(S);U||(U=new WeakMap,hIe.set(S,U));if(U.has(p))return U.get(p);if(_.y("web_fi_listen_disable_bound_fn_helper")){var Y=p.bind(S);S=function(L){Y(L,L==null?void 0:L.detail)}}else S=Is(S,p);
U.set(p,S);return S};
XWw=function(S,p){RId(S);S.created[FBw].push(p)};
RId=function(S){if(!S.created||!S.created[FBw]){var p=S.created,U=p?[p]:[];S.created=function(){for(var Y=_.d(U),L=Y.next();!L.done;L=Y.next())L.value.apply(this)};
S.created[FBw]=U}};
PAd=function(S){return function(){var p=_.jO.apply(0,arguments);return function(U,Y,L){S.apply(null,_.jo(p))(U,Y,L)}}};
Z7w=function(){return function(){var S=_.jO.apply(0,arguments);return function(p,U,Y){hOr.apply(null,_.jo(S))(p,U,Y)}}};
_.F=function(S){return Z7w()(S)};
_.e=function(){return PAd(PGe).apply(null,_.jo(_.jO.apply(0,arguments)))};
_.Vd=function(S){return _.y("pbcm_fi_listen_decorators")?srR(S):PAd(F6E)(S)};
srR=function(S){return function(p,U){XWw(p,function(){var Y=this[U],L=_.y("web_fi_listen_disable_bound_fn_helper")?function(I){Y(I,I.detail)}.bind(this):Is(this,Y);
eIr.has(S)?RH(this.hostElement,S,L):this.hostElement.addEventListener(S,L)})}};
_.T4=function(){return PAd(XOG).apply(null,_.jo(_.jO.apply(0,arguments)))};
_.g=function(S){S=S===void 0?{}:S;return PAd(ROw)(S)};
_.WT=function(S){if(S.hostElement&&S!==S.hostElement){var p=_.K9(S.hostElement);p=S.renderIdom?p:p.shadowRoot}p||(S=S.root,p=S instanceof Node?_.K9(S):null);return p};
_.O2=function(S){return gBN?uPN(S):function(p,U){Object.defineProperty(p,U,{get:function(){var Y;return(Y=_.WT(this))==null?void 0:Y.querySelector(S)},
enumerable:!0,configurable:!0})}};
uPN=function(S){return function(p,U){Object.defineProperty(p,U,{get:function(){var Y,L=(Y=_.tB(this.hostElement))==null?void 0:Y.querySelector(S);if(L)return L;var I;return(I=_.WT(this))==null?void 0:I.querySelector(S)},
enumerable:!0,configurable:!0})}};
_.kk=function(S){return gBN?wWw(S):function(p,U){Object.defineProperty(p,U,{get:function(){var Y;return(Y=_.WT(this))==null?void 0:Y.querySelectorAll(S)},
enumerable:!0,configurable:!0})}};
wWw=function(S){return function(p,U){Object.defineProperty(p,U,{get:function(){var Y,L=(Y=_.tB(this.hostElement))==null?void 0:Y.querySelectorAll(S);if(L==null?0:L.length)return L;var I;return(I=_.WT(this))==null?void 0:I.querySelectorAll(S)},
enumerable:!0,configurable:!0})}};
lkR=function(S){return function(p){if(![_.iN,_.w].includes(Object.getPrototypeOf(p.prototype).constructor))throw Error("eg");n1k(Object.assign({},typeof S!=="string"?S:{is:S,notifyObserversOnUndefined:!0},{disableInheritanceCheck:!0,disableEnforceFastDefaultValuesCheck:!0}))(p)}};
_.Dl=function(){var S=S===void 0?{}:S;return function(p){if(![N0,_.HT].includes(Object.getPrototypeOf(p.prototype).constructor))throw Error("fg");JxG(Object.assign({},S,{disableInheritanceCheck:!0}))(p)}};
fkX=function(S,p){akN[S]!=null||(akN[S]=new Set);akN[S].add(p)};
_.z4=function(){var S=_.T4.apply(null,_.jo(_.jO.apply(0,arguments)));return function(p,U){fkX(p.is,U);S(p,U)}};
JF=function(S,p,U){if(Qd(S)&&!CAG.has(p)){p=p.replace(/^JSC\$[\d]+_/,"");p=p.replace(/\.\d+(\.|$)/g,function(I,V){return".#"+V});
n3[S]!=null||(n3[S]={});var Y,L;(Y=n3[S])[L=p]!=null||(Y[L]=new Set);n3[S][p].has(U)||(n3[S][p].add(U),_.RV("polymerPropertyAccessEvent",{componentName:S,propertyName:p,accessType:U}))}};
xKw=function(){return _.y("polymer_property_access_logging_debug")||_.y("polymer_enable_property_access_logging")};
Qd=function(S){if(_.y("polymer_property_access_logging_debug"))return!0;if(!_.y("polymer_enable_property_access_logging"))return!1;EBu||(EBu=Date.now());return(wn(S)+EBu)%100<_.pA("polymer_property_access_logging_percent")};
mKd=function(S,p){return Qd(p)&&S.hostElement.loggingStatus?new Proxy(S,{get:function(U,Y,L){if(U.hostElement.loggingStatus.bypassProxyController)return U[Y];U.hostElement.loggingStatus.isExternalGet=!0;var I=U[Y];U.hostElement.loggingStatus.isExternalGet=!1;if(I instanceof Function)return function(){var V=_.jO.apply(0,arguments);try{return U.hostElement.loggingStatus.currentExternalCall=Y,JF(p,Y,"PROPERTY_ACCESS_CALL_EXTERNAL_CONTROLLER"),I.apply(this===L?U:this,V)}finally{U.hostElement.loggingStatus.currentExternalCall=
void 0}};
JF(p,Y,"PROPERTY_ACCESS_GET_EXTERNAL_CONTROLLER");return I},
set:function(U,Y,L){if(U.hostElement.loggingStatus.bypassProxyController)return U[Y]=L,!0;U.hostElement.loggingStatus.isRendererStamper?JF(p,Y,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE"):U.hostElement.loggingStatus.isDeclarativeExternal||JF(p,Y,"PROPERTY_ACCESS_SET_EXTERNAL_CONTROLLER_IMPERATIVE");try{U.hostElement.loggingStatus.currentExternalSet=Y,U[Y]=L}finally{U.hostElement.loggingStatus.currentExternalSet=void 0}return!0}}):S};
oBN=function(S,p){S&&S.loggingStatus&&!S.loggingStatus.isDeclarativeExternal&&!S.loggingStatus.isExternalGet&&S.loggingStatus.currentExternalSet!==p&&JF(S.tagName.toLowerCase(),p,"PROPERTY_ACCESS_GET_INTERNAL")};
yd=function(S,p,U){S&&(U||S.loggingStatus&&!S.loggingStatus.isInitializing&&!S.loggingStatus.isDefiningPropertyAccessor&&S.loggingStatus.currentExternalSet!==p)&&JF(S.tagName.toLowerCase(),p,"PROPERTY_ACCESS_SET_INTERNAL")};
vBR=function(){return{_definePropertyAccessor:function(S,p){var U=this,Y=U.hostElement.loggingStatus;Y&&(Y.isDefiningPropertyAccessor=!0);var L=U[S];L!==void 0&&(U.__data?U._setPendingProperty(S,L):(U.__dataProto!=null||(U.__dataProto={}),U.__dataProto[S]=L));Y&&(Y.isDefiningPropertyAccessor=!1);Object.defineProperty(this,S,{get:function(){oBN(U.hostElement,S);return this.__data[S]},
set:function(I){p||this._setPendingProperty(S,I,!0)&&this._invalidateProperties()}})},
created:function(){var S=this._setPendingProperty.bind(this);this._setPendingProperty=function(p,U,Y){yd(this.hostElement,p);return S.apply(this,[p,U,Y])}}}};
$KR=function(S){xKw()&&_.F(K3.prototype)(S.prototype,"__templateBindingLoggingBehavior")};
i7u=function(S,p){if(p.resolvedFactories.length!==S.resolvedFactories.length)return!0;p=_.d(p.resolvedFactories.entries());for(var U=p.next();!U.done;U=p.next()){var Y=_.d(U.value);U=Y.next().value;Y=Y.next().value;if(Y.providerClass){if(Y.providerClass!==S.resolvedFactories[U].providerClass)return!0}else if(Y.providerValue){if(Y.providerValue!==S.resolvedFactories[U].providerValue)return!0}else if(Y.factory!==S.resolvedFactories[U].factory)return!0}return!1};
NsG=function(S,p){S=_.d(S);for(var U=S.next();!U.done;U=S.next())if(U=U.value,U.constructor===Array)NsG(U,p);else{var Y=p;Y.has(U)||(U.inject&&Y.add(U),U.behaviors&&NsG(U.behaviors,Y))}};
bK=function(S,p){var U=S[p];S[p]=function(){var Y=_.jO.apply(0,arguments);this.initializeInjection&&this.initializeInjection();if(U)return U.apply(this,Y)}};
tWX=function(){_.jp.Class=function(U,Y){U=Bsr(U,Y);bK(U.prototype,"created");return U};
bK(r9.prototype,"_initializeProperties");bK(_.G4.prototype,"_initializeProperties");if(qQw)bK(AOd,"created");else{var S=function(){bK(customElements.get("tp-yt-iron-list").prototype,"_initializeProperties")};
if(customElements.get("tp-yt-iron-list"))S();else{var p=customElements.define;customElements.define=function(U,Y,L){p.call(customElements,U,Y,L);U==="tp-yt-iron-list"&&(S(),customElements.define=p)}}}};
SLw=function(S,p){S.prototype.behaviors=S.prototype.behaviors||[];S.prototype.behaviors.unshift(cOX.InjectBehavior);S.prototype.provide=p};
_.FB=function(S){return function(p){if(!S.disableElementRegistration){S.noInjection||SLw(p,S.providers);var U=p.prototype;U.__templateHelpers||hOr(hF.prototype)(U,"__templateHelpers");U=S.is;phr||(phr=Date.now());(wn(U)+phr)%100<_.pA("polymer_log_prop_change_observer_percent")&&hOr(Rs.prototype)(p.prototype,"__propertyObserverObserver");p.prototype.behaviors=p.prototype.behaviors||[];p.prototype.behaviors.unshift(_.Ufk.YtHostElementBehavior);$KR(p);lkR({is:S.is,notifyObserversOnUndefined:S.notifyObserversOnUndefined!==
!1,fastInit:S.fastInit,template:S.template,disableEnforceFastDefaultValuesCheck:!0})(p)}}};
_.f=function(S){return _.FB({is:S.is,template:S.template,disableElementRegistration:S.disableElementRegistration,cssBuildOptOut:S.cssBuildOptOut,notifyObserversOnUndefined:!1,noInjection:!0})};
MHk=function(S,p){if(YLw){S=new S;for(var U=_.d(Object.getOwnPropertyNames(S)),Y=U.next();!Y.done;Y=U.next())Y=Y.value,p[Y]=S[Y];for(U=p;U&&U!==Object.prototype;U=Object.getPrototypeOf(U)){Y=_.d(Object.getOwnPropertyNames(U));for(var L=Y.next();!L.done;L=Y.next())L=L.value,S.hasOwnProperty(L)||Object.defineProperty(S,L,LQR(p,L))}}else S.apply(p)};
LQR=function(S,p){return{get:function(){var U=S[p];return U instanceof Function?U.bind(S):U},
set:function(U){S[p]=U}}};
dfR=function(S,p){for(var U=S._noAccessors,Y=_.d(Object.getOwnPropertyNames(S)),L=Y.next();!L.done;L=Y.next())if(L=L.value,!Ibr.has(L))if(U)p[L]=S[L];else{var I=Object.getOwnPropertyDescriptor(S,L);I&&(I.configurable=!0,Object.defineProperty(p,L,I))}};
VHe=function(S,p,U){return function(Y){if(U){var L=U();Y.model=L}if(S[p])S[p](Y,Y.detail)}};
XB=function(S){var p=[];if(typeof S==="string")S.length>0&&p.push.apply(p,_.jo(S.split(".")));else{S=_.d(S);for(var U=S.next();!U.done;U=S.next())U=U.value,typeof U==="string"?p.push.apply(p,_.jo(U.split("."))):p.push(U)}return p};
Tae=function(S,p){if(p[p.length-1]!=="*"&&p[p.length-1]!=="splices"){for(var U=0;U<p.length;U++){if(!S)return;S=S[p[U]]}return S}};
WQw=function(S,p){if(S.length>p.length)return!1;for(var U=0;U<S.length;U++)if(S[U]!==p[U])return!1;return!0};
kQX=function(S,p,U){if(p.type==="compute"){var Y=p.getter.bind(U);var L=p.args}else Y=function(){return U[p.method.methodName].apply(U,_.jo(_.jO.apply(0,arguments)))},L=p.method.args;
OtG(S,p.propertyKey,Y,L,p.value)};
Dfq=function(S,p){if(p.readOnly){var U=Object.getOwnPropertyDescriptor(S.model,p.propertyKey);Object.defineProperty(S.model,p.propertyKey,{get:U.get,set:function(){}});
S.model[Htw(p.propertyKey)]=U.set}};
zbN=function(S,p,U){if(U){var Y=p.propertyKey,L=p.selector;p=[{type:"path",path:"reduxPropertiesRecomputeTrigger"}].concat(_.jo(p.selectorArgs.map(function(I){return{type:"path",path:I}})));
OtG(S,Y,function(I){var V=_.jO.apply(1,arguments);return L.apply(null,[U.getState()].concat(_.jo(V)))},p)}};
nPw=function(S,p,U){var Y=_.O$(p.propertyKey)+"-changed";Qmd(S,function(L){var I={value:L.value,queueProperty:!0};L.path.split(".").length>1&&(I.path=L.path);U.dispatchEvent(new CustomEvent(Y,{detail:I}))},[{type:"wildcard",
path:p.propertyKey}])};
JQw=function(S,p,U){Qmd(S,function(){U[p.method.methodName].apply(U,_.jo(_.jO.apply(0,arguments)))},p.method.args)};
Htw=function(S){return"_set"+(S.charAt(0).toUpperCase()+S.slice(1))};
yQw=function(){var S,p=XG(function(U){S=U},!1);
return[S,p]};
GQG=function(S){S=S.trim().replace(KQR,",").replace(btq,"$1");var p=S[0];p==="-"&&(p=S[1]);if(p>="0"&&p<="9")return{type:"literal",value:Number(S)};if(p==="'"||p==='"')return{type:"literal",value:S.slice(1,-1)};if(p=S.match(jmE)){p=p[1];var U=rQw[p];if(U)return{type:U,path:S.slice(0,-(p.length+1))}}return{type:"path",path:S}};
Xhq=function(S){var p=S.match(hbw);if(p)return S={methodName:p[1],args:Rbe},p[2].trim()&&(p=p[2].replace(FQG,"&comma;").split(","),S.args=p.map(GQG)),S};
PSR=function(S,p,U,Y){Y=Y===void 0?!1:Y;p=_.O$(p);var L=zT;L&&(U=L(U,p,"attribute",S));PT(S,U,p,Y)};
PT=function(S,p,U,Y){p=Ztk(p,Y===void 0?!1:Y);p===void 0?S.removeAttribute(U):S.setAttribute(U,p)};
Ztk=function(S,p){switch(typeof S){case "object":case "function":if(S instanceof Date)return S.toString();if(S){if((p===void 0?0:p)&&!_.y("polymer_reflect_objects_as_boolean_killswitch"))return S?"":void 0;p=window.trustedTypes?window.trustedTypes.isHTML(S)||window.trustedTypes.isScript(S)||window.trustedTypes.isScriptURL(S):void 0;if(p)return S;try{return JSON.stringify(S)}catch(U){_.eP(Error("Bg`"+S))}}break;case "boolean":return S?"":void 0;default:return S!==null&&S!==void 0?S.toString():void 0}};
sme=function(S){if(S===void 0)throw Error("Cg");return S};
lbq=function(S,p,U,Y){var L=ebN(Y);if(L.length){Y=U;var I="property";gPe.test(U)?I="attribute":U[U.length-1]==="$"&&(U=U.slice(0,-1),I="attribute");var V=uAr(L);V&&I==="attribute"&&(U==="class"&&S.hasAttribute("class")&&(V+=" "+S.getAttribute(U)),PT(S,V,U));I==="attribute"&&Y==="disable-upgrade$"&&S.setAttribute("disable-upgrade","");S.localName==="input"&&Y==="value"&&S.setAttribute("value","");S.removeAttribute(Y);I==="property"&&(U=_.kn(U));p=sme(p);whw(p,I,U,L);return!0}return U.slice(0,3)===
"on-"?(S.removeAttribute(U),(I=p).events!=null||(I.events=[]),p.events.push({name:U.slice(3),value:Y}),!0):U==="id"?(p.id=Y,!0):!1};
ebN=function(S){for(var p=[],U=0,Y;(Y=abq.exec(S))!==null;){Y.index>U&&p.push({type:"literal",value:S.slice(U,Y.index)});var L=Y[1][0];U=!!Y[2];Y=Y[3].trim();if(L==="{")throw Error("Dg");(L=Xhq(Y))?p.push({type:"method",negate:U,signature:L}):p.push({type:"path",negate:U,path:Y});U=abq.lastIndex}U&&U<S.length&&(S=S.substring(U))&&p.push({type:"literal",value:S});return p};
uAr=function(S){for(var p="",U=0;U<S.length;U++){var Y=S[U];Y.type==="literal"&&(p+=Y.value)}return p};
whw=function(S,p,U,Y){S.bindings!=null||(S.bindings=[]);S.bindings.push({kind:p,target:U,parts:Y})};
mfq=function(S,p,U){var Y=!1;if(S.localName==="template"){Y=U;var L=p.stripWhitespace;L=fbX(S,L===void 0?!1:L);var I=S.content.ownerDocument.createDocumentFragment();L.content=I;I.appendChild(S.content);Y&&(Y.templateInfo=L);Y=!0}else S.localName==="slot"&&(p.hasInsertionPoint=!0);if(S.firstChild&&(L=U,S.localName!=="script"&&S.localName!=="style")){I=0;for(var V=S.firstChild;V;){var W=V;if(W.localName==="template"){var O=W.getAttribute("is");if((V=O==="dom-if")||O==="dom-repeat"){W.removeAttribute("is");
O=W.ownerDocument.createElement("ps-"+O);W.parentNode.replaceChild(O,W);O.appendChild(W);var D=Array.from(W.attributes);D=_.d(D);for(var z=D.next();!z.done;z=D.next())z=z.value,V?CSw.has(z.name)&&PT(O,z.value,z.name):xfq.has(z.name)?PT(O,z.value,z.name):EPu.has(z.name),W.removeAttribute(z.name);V=O}else V=W}if(V.nodeType===Node.TEXT_NODE){W=void 0;O=S;for(D=V;((W=D.nextSibling)==null?void 0:W.nodeType)===Node.TEXT_NODE;)z=void 0,(z=D).textContent!=null||(z.textContent=""),D.nextSibling.textContent&&
(D.textContent+=D.nextSibling.textContent),O.removeChild(D.nextSibling);if(p.stripWhitespace&&V.textContent&&!V.textContent.trim()){S.removeChild(V);V=V.nextSibling;continue}}mfq(V,p,{parentIndex:I,parentInfo:L});V.parentNode&&I++;V=V.nextSibling}}var Q;if((Q=S.hasAttributes)==null?0:Q.call(S)){Q=U=sme(U);L=!1;I=Array.from(S.attributes);I=_.d(I);for(W=I.next();!W.done;W=I.next())W=W.value,L=lbq(S,Q,W.name,W.value)||L;Y=L||Y}S.nodeType===Node.TEXT_NODE&&(Q=ebN(S.textContent),Q.length&&(S.textContent=
uAr(Q)||" ",U=sme(U),whw(U,"text","textContent",Q),Y=!0));U&&Y&&(U.infoIndex=p.nodeInfoList.push(U)-1)};
fbX=function(S,p){p={nodeInfoList:[],stripWhitespace:(p===void 0?!1:p)||S.hasAttribute("strip-whitespace")};mfq(S.content,p);return p};
oPw=function(S){Object.assign(S,{_disposeEffects:void 0,_signalProps:void 0,_signalValues:void 0})};
$fe=function(S,p,U){p.signalCache!=null||(p.signalCache={});var Y=p.signalCache[U];if(!Y){var L=U.split(".");Y=!vPw(S,L[0]);if(L.length>1&&Y){var I=S.getPathMutationSignal(L);Y=function(){var V=sI(S.owner,function(){return S.getWithPath([L[0]])}),W,O=(W=I())==null?void 0:W.value;
return{rootWasDefined:V!==void 0,value:O}}}else Y=function(){var V=S.getWithPath(L);
return{rootWasDefined:V!==void 0,value:V}};
p.signalCache[U]=Y}return Y()};
NaG=function(S,p,U,Y,L){p=p.parts.map(function(V,W){if(V.type==="literal"){U.partWasDefined!=null||(U.partWasDefined=[]);var O;(O=U.partWasDefined)[W]||(O[W]=V.value!==void 0);return V.value}var D;if(V.type==="method"){var z,Q=(z=(D=U.partWasDefined)==null?void 0:D[W])!=null?z:!1;Q||(Q=V.signature.args.every(function(G){return G.type==="literal"}));
var J=!1,K=!0;D=V.signature.args.map(function(G){if(G.type==="literal")return G.value;if(G.type!=="path")throw Error("Eg`"+G.type);var X=$fe(S,U,G.path);G=X.value;X=X.rootWasDefined;J||(J=X);K&&(K=X);return G});
Q||(Q=L===1?K:J);U.partWasDefined!=null||(U.partWasDefined={});U.partWasDefined[W]=Q;if(!Q)return;D=(W=$fe(S,U,V.signature.methodName).value)&&typeof W==="function"?W.apply(Y,D):void 0}else z=$fe(S,U,V.path),D=z.value,U.partWasDefined!=null||(U.partWasDefined={}),(Q=U.partWasDefined)[W]||(Q[W]=D!==void 0||z.rootWasDefined);V.negate&&(D=!D);return D});
if(p.length===1){var I;return((I=U.partWasDefined)==null?0:I[0])?p[0]:ite}return p.join("")};
BaG=function(S){return typeof S==="object"&&!!S&&"notifyPath"in S&&"canNotifyPath"in S};
qLX=function(S){return typeof S==="object"&&!!S&&"notifyPath"in S};
AQe=function(S){return"polymerController"in S};
tHE=function(S,p){p=""+XB(p)[0];if(BaG(S))return S.canNotifyPath(p);if(AQe(S)&&BaG(S.polymerController))return S.polymerController.canNotifyPath(p);if(qLX(S)){var U;return!((U=S.properties)==null||!U[p])}if(AQe(S)&&qLX(S.polymerController)){var Y;return!((Y=S.polymerController.properties)==null||!Y[p])}return!1};
cQE=function(S,p,U){BaG(S)||qLX(S)?S.notifyPath(p,U):AQe(S)&&(BaG(S.polymerController)||qLX(S.polymerController))&&S.polymerController.notifyPath(p,U)};
pcN=function(S,p,U){if(U!==ite){S.kind==="attribute"||S.target!=="textContent"&&(S.target!=="value"||p.localName!=="input"&&p.localName!=="textarea")||(U=U===void 0?"":U);var Y,L=(Y=Svk.Polymer)==null?void 0:Y.sanitizeDOMValue;L&&(U=L(U,S.target,S.kind,p));if(S.kind==="attribute"){S=S.target;if(S==="class"||S==="name"||S==="slot")p=(0,_.L3)(p);PT(p,U,S)}else if(S=S.target,U!==p[S]||typeof U==="object")p.loggingStatus&&(p.loggingStatus.isDeclarativeExternal=!0,JF(p.localName,S,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE")),
p[S]=U,p.loggingStatus&&(p.loggingStatus.isDeclarativeExternal=!1)}};
UnE=function(S,p,U,Y){var L=p.parts[0];if(p.parts.length!==1||L.type!=="path"||!tHE(U,p.target))return!1;var I=_.d(L.path.split(".")),V=I.next().value,W=Nd(I);if(vPw(S,V))return!1;Y.signalCache!=null||(Y.signalCache={});I=Y.signalCache[L.path];var O;I=(O=I)==null?void 0:O().value;if((I==null?void 0:I.path)!==void 0){Y=XB(I.path);var D=XB(L.path);Y=[p.target].concat(_.jo(Y.slice(D.length-1)));cQE(U,Y,L.negate?!I.value:I.value);return!0}var z=Zl(S,V);var Q=z.getChangeRecordSignal(W),J=!1;I=function(){if(!J){var G=
sI(S.owner,function(){return z.getWithPath([])});
J||(J=G!==void 0)}return{value:Q(),rootWasDefined:J}};
Y.signalCache[L.path]=I;Y.partWasDefined!=null||(Y.partWasDefined={});I=I();(D=Y.partWasDefined)[0]||(D[0]=I.rootWasDefined);var K=sI(S.owner,function(){return z.getWithPath(W)});
Y.partWasDefined[0]&&sI(S.owner,function(){return void pcN(p,U,L.negate?!K:K)});
return!0};
Yvr=function(S,p,U,Y,L,I){if(!UnE(S,p,U,Y)){var V=NaG(S,p,Y,L,I);sI(S.owner,function(){return void pcN(p,U,V)})}};
L0e=function(S,p,U,Y,L,I){U=_.d(U);for(var V=U.next(),W={};!V.done;W={infoIndex:void 0},V=U.next()){V=V.value;var O=V.bindings;W.infoIndex=V.infoIndex;V=V.parentInfo;if(O){O=_.d(O);for(var D=O.next(),z={};!D.done;z={b$jscomp$254:void 0,bindingCtx$jscomp$4:void 0},D=O.next()){z.b$jscomp$254=D.value;if(W.infoIndex===void 0)throw Error("Fg");z.bindingCtx$jscomp$4={};S.effect(function(Q,J){return function(){L&&!L()||Yvr(S,Q.b$jscomp$254,p[J.infoIndex],Q.bindingCtx$jscomp$4,Y,I)}}(z,W))}}V&&L0e(S,p,[V],
Y,L,I)}};
Mew=function(S,p){S=(p.parentInfo?Mew(S,p.parentInfo):S).firstChild;for(var U=0;S;S=S.nextSibling)if(p.parentIndex===U++)return S;throw Error("Gg");};
dnq=function(S,p,U,Y){S=document.importNode(S.content,!0);S.__noInsertionPoint=!(Y==null?0:Y.hasInsertionPoint);for(var L=Array(p.length),I={},V=0;V<p.length;V++){var W=p[V],O=Mew(S,W);L[V]=O;W.id&&(I[W.id]=O);if(W.templateInfo){var D=O.parentElement;D&&(D.templateInfo=W.templateInfo,D.parentSignalProxy=U,D.eventListenerHost=Y.eventListenerHost,D.stampingEnabled=Y.enabledSignal)}D=void 0;if((D=W.events)==null?0:D.length)for(D=0;D<W.events.length;D++){var z=W.events[D];I6k(Y.eventListenerHost,O,z.name,
z.value,Y.getModel)}}L0e(U,L,p,Y.thisCtx,Y.enabledSignal,Y.methodInvocationRequirement);return{root:S,nodes:L,nodesById:I}};
TSX=function(S,p){S=S();var U;(U=VeX.ShadyCSS)==null||U.prepareTemplate(S,p);p=fbX(S);return{template:S,nodeInfoList:p.nodeInfoList,hasInsertionPoint:p.hasInsertionPoint}};
k3N=function(){W0w=!1;for(var S=s2.length,p=0;p<S;p++){var U=s2[p];if(U)try{U()}catch(Y){Promise.resolve().then(function(){throw Y;})}}s2.splice(0,S);
OgR+=S};
QRd=function(S){W0w||(W0w=!0,Hgk.textContent=(Dnd++).toString());s2.push(S);return zPw++};
_.uK=function(S,p,U){ep++;S=p?new nyX(ep,S,p,U):new Jue(ep,S);g9.set(ep,S);return ep};
yue=function(S){(S=g9.get(S))&&S.cancel()};
bgG=function(S,p){S=K0N.get(S);return S?(p=S.get(p))?p:null:null};
_.w9=function(S,p,U,Y){var L=bgG(S,p);if(!L){L=new jRk;var I=K0N.get(S);I||(I=new Map,K0N.set(S,I));I.set(p,L)}S=U.bind(S);L.run(S,Y,void 0)};
_.ruG=function(S,p){var U;(U=bgG(S,p))==null||U.cancel()};
G3u=function(S){var p;(p=bgG(S,"doRender"))==null||p.flush()};
lK=function(S){var p;return(p=S.hostElement)!=null?p:S};
hPw=function(S){var p=S.indexOf(".");return p===-1?S:S.slice(0,p)};
RPe=function(S,p,U,Y,L,I){I=(L=(Y=I?hPw(p):p)?p:null)?S.get(L):S.__data[p];L&&I===void 0&&(I=U[p]);_.cv(S.hostElement,pFe(Y)+"-changed",{value:I,queueProperty:!0,path:L!=null?L:void 0},{bubbles:!1,composed:!1})};
F0d=function(S,p){S.__isReflecting=!0;PSR(S.hostElement,p,S.__data[p]);S.__isReflecting=!1};
Xcd=function(S){if(S._onIronRequestResizeNotifications){var p=S._onIronRequestResizeNotifications.bind(S);S._onIronRequestResizeNotifications=function(U){_.mF(U)!==S.hostElement&&p(U)}}S._ariaActiveAttributeChanged&&(S._ariaActiveAttributeChanged=S._ariaActiveAttributeChanged.bind(S.hostElement));
S._activeChanged&&(S._activeChanged=function(U){S.toggles?PT(S.hostElement,U?"true":"false",S.ariaActiveAttribute):S.hostElement.removeAttribute(S.ariaActiveAttribute);S._changedButtonState()});
S._asyncClick&&(S._asyncClick=function(){_.uK(function(){S.hostElement.click()},1)});
!S.keyEventTarget||S.keyEventTarget instanceof EventTarget||(S.keyEventTarget=lK(S.keyEventTarget));S._disabledChanged&&(S._disabledChanged=S._disabledChanged.bind(S.hostElement));S._observeItems&&(S._observeItems=function(U){var Y=lK(U);return _.K9(Y).observeNodes(function(L){S._updateItems();S._updateSelected();_.cv(Y,"iron-items-changed",L,{bubbles:!1,cancelable:!1})})});
S._updateItems&&S._updateItems===_.as._updateItems&&(S._updateItems=function(){var U=_.K9(S.hostElement).queryDistributedElements(S.selectable||"*");U=Array.prototype.filter.call(U,S._bindFilterItem);S._setItems(U)});
S._computeKeyboardClass&&(S._computeKeyboardClass=function(U){_.U2(S.hostElement,"keyboard-focus",U)});
S.ensureRipple&&(S.ensureRipple=function(U){if(S.hasRipple&&!S.hasRipple()){if(!S._createRipple)return;S._ripple=S._createRipple();S._ripple.noink=S.noink;var Y=S._rippleContainer||S.hostElement;Y&&_.tB(Y).appendChild(S._ripple)}var L;if(U&&((L=S._ripple)==null?0:L.uiDownAction)){Y=_.tB(S._rippleContainer||S.hostElement);var I;L=(I=U.composedPath())==null?void 0:I[0];Y.contains(L)&&S._ripple.uiDownAction(U)}});
S._updateMultiselectable&&(S._updateMultiselectable=function(U){U?S.hostElement.setAttribute("aria-multiselectable","true"):S.hostElement.removeAttribute("aria-multiselectable")})};
PXX=function(S,p,U){U=_.d(U);for(var Y=U.next();!Y.done;Y=U.next())MHk(Y.value.constructor,S);MHk(p.constructor,S)};
sRw=function(S,p){S=_.d(S);for(var U=S.next();!U.done;U=S.next())if(U=U.value,U.type==="signal"){var Y=U.propertyKey;if(p.hasOwnProperty(Y)&&p[Y]!=null&&U.attributeType===Object){a:{Y=p[Y].constructor;for(var L=_.d(Zgd),I=L.next();!I.done;I=L.next())if(I=I.value,Y===I){Y=I;break a}Y=Object}U.attributeType=Y}}};
ePG=function(){};
gyw=function(S){var p;return(p=S.hostElement)!=null?p:S};
ube=function(){throw Error("Kg");};
wcu=function(S,p){S.constructor.prototype.useSignals=!0;var U=new S.constructor;PXX(U,S,p.behaviors);sRw(p.reactiveSchemas,U);U={};for(var Y=_.d(p.reactiveSchemas),L=Y.next();!L.done;L=Y.next())L=L.value,L.type==="signal"&&(U[L.propertyKey]=L.attributeType);var I={copyPropertiesToProto:ube,didRegister:!1,typesForSignals:U},V=["disable-upgrade"].concat(_.jo(p.observedAttributes)),W=function(O){f3.call(this,S,p,I,O)};
_.r(W,f3);_.$u.Object.defineProperties(W,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return V}}});
I.copyPropertiesToProto=function(){for(var O=0;O<p.behaviors.length;O++)dfR(p.behaviors[O],W.prototype);dfR(S,W.prototype)};
p.legacyOptimizations||I.copyPropertiesToProto();W.prototype.is=S.is;return W};
l6u=function(S,p){if(Object.getPrototypeOf(p.prototype).constructor!==_.w)throw Error("Lg");p.prototype.is=S.is;return wcu(p.prototype,S)};
a6X=function(S){return S.type==="compute"||S.type==="computeWithMethod"};
f6E=function(S){for(var p=S.reactiveSchemas.filter(a6X),U=new Map,Y=new Map,L=new Map,I=_.d(p),V=I.next();!V.done;V=I.next())V=V.value,U.set(V.propertyKey,V),Y.set(V.propertyKey,[]),L.set(V.propertyKey,0);I=0;p=_.d(p);for(V=p.next();!V.done;V=p.next()){V=V.value;for(var W=_.d(V.type==="computeWithMethod"?V.method.args:V.args),O=W.next();!O.done;O=W.next())O=O.value,O.type!=="literal"&&(O=O.path.split(".")[0],Y.has(O)&&(Y.get(O).push(V.propertyKey),L.set(V.propertyKey,L.get(V.propertyKey)+1),I++))}V=
[].concat(_.jo(Y.keys())).filter(function(D){return L.get(D)===0});
for(p=[];V.length;)for(W=V.shift(),p.push(U.get(W)),W=_.d(Y.get(W)),O=W.next();!O.done;O=W.next())O=O.value,L.set(O,L.get(O)-1),I--,L.get(O)===0&&V.push(O);U=S.reactiveSchemas.filter(function(D){return!a6X(D)});
S.reactiveSchemas=[].concat(_.jo(U),_.jo(p))};
CXE=function(S,p){if(p.properties)for(var U=_.d(Object.entries(p.properties)),Y=U.next();!Y.done;Y=U.next()){var L=_.d(Y.value);Y=L.next().value;L=L.next().value;S.properties[Y]=typeof L==="function"?{type:L}:L}p.observers&&S.observers.push.apply(S.observers,_.jo(p.observers));p.disabledPolySiReactions&&S.disabledPolySiReactions.push.apply(S.disabledPolySiReactions,_.jo(p.disabledPolySiReactions))};
xnw=function(S,p){for(var U=p.length-1;U>=0;U--){var Y=p[U];Array.isArray(Y)?xnw(S,Y):S.indexOf(Y)<0&&S.unshift(Y)}};
EyR=function(S,p){S.reactiveSchemas=S.reactiveSchemas.filter(function(U){return U.type==="observe"&&p.includes(U.method.methodName)||a6X(U)&&p.includes(U.propertyKey)?!1:!0})};
oyE=function(S,p){var U=p.prototype,Y,L,I={is:S.is,reactiveSchemas:[],observedAttributes:[],behaviors:[cOX.InjectBehavior,hF.prototype],disableElementRegistration:S.disableElementRegistration,provide:(Y=S.providers)!=null?Y:[],reactivityMode:S.reactivityMode,signalProperties:(L=U.signalProperties)!=null?L:[]};"template"in p?I.templateGetter=function(){return p.template}:S.getTemplate&&(I.templateGetter=S.getTemplate);
U.behaviors&&xnw(I.behaviors,U.behaviors);mnE(I,p);return I};
mnE=function(S,p){for(var U=p.prototype,Y={properties:{},observers:[],disabledPolySiReactions:[]},L=_.d(S.behaviors),I=L.next();!I.done;I=L.next())CXE(Y,I.value);CXE(Y,U);if(S.signalProperties)for(U=_.d(S.signalProperties),L=U.next();!L.done;L=U.next())delete Y.properties[L.value];U=_.d(Object.entries(Y.properties));for(L=U.next();!L.done;L=U.next()){I=_.d(L.value);L=I.next().value;I=I.next().value;var V=void 0;if((V=S.signalProperties)==null||!V.includes(L)){V=void 0;var W=S,O=I.type;if(!O)if(window.Reflect!==
void 0&&window.Reflect.getMetadata!==void 0)a:{O=Reflect.getMetadata("design:type",p,L);for(var D=_.d(vyd),z=D.next();!z.done;z=D.next())if(z=z.value,O===z){O=z;break a}O=Object}else O=String;I.computed||I.selector||(W.reactiveSchemas.push({type:"signal",propertyKey:L,value:I.value,attributeType:O,readOnly:I.readOnly}),W.observedAttributes.push(_.O$(L)));I.reflectToAttribute&&W.reactiveSchemas.push({type:"reflect",propertyKey:L});if(I.computed){O=Xhq(I.computed);if(!O)throw Error("Mg");W.reactiveSchemas.push({type:"computeWithMethod",
propertyKey:L,method:O,value:I.value})}I.observer&&W.reactiveSchemas.push({type:"observe",method:{methodName:I.observer,args:[{type:"path",path:L}]}});I.notify&&W.reactiveSchemas.push({type:"notify",propertyKey:L});I.selector&&W.reactiveSchemas.push({type:"redux",propertyKey:L,selector:I.selector,selectorArgs:(V=I.selectorArgs)!=null?V:[]})}}$nG&&f6E(S);p=_.d(Y.observers);for(L=p.next();!L.done;L=p.next())U=S,L=L.value,(I=Xhq(L))?U.reactiveSchemas.push({type:"observe",method:I}):console.log('Warning: unable to parse observe declaration: "'+
L+'"');EyR(S,Y.disabledPolySiReactions)};
igr=function(S,p){for(var U=0;U<p.length;U++){var Y=p[U],L=void 0;(L=Y).showHideApi!=null||(L.showHideApi={});L=void 0;!!S!==!((L=Y.showHideApi)==null||!L.hideTemplateChildren)&&(Y.nodeType===Node.TEXT_NODE?S?(Y.showHideApi.polymerTextContent=Y.textContent,Y.textContent=""):(L=void 0,Y.textContent=(L=Y.showHideApi.polymerTextContent)!=null?L:null):Y instanceof Element&&Y.localName==="slot"?S?(Y.showHideApi.polymerReplaced=document.createComment("hidden-slot"),(0,_.L3)((0,_.L3)(Y).parentNode).replaceChild(Y.showHideApi.polymerReplaced,
Y)):(L=Y.showHideApi.polymerReplaced)&&(0,_.L3)((0,_.L3)(L).parentNode).replaceChild(Y,L):Y instanceof HTMLElement&&Y.style&&(S?(Y.showHideApi.polymerDisplay=Y.style.display,Y.style.display="none"):Y.style.display=Y.showHideApi.polymerDisplay));Y.showHideApi.hideTemplateChildren=S;Y.showHideChildren&&Y.showHideChildren(S)}};
BSw=function(){if(!NSd){var S=document.createElement("style");S.innerText="ps-dom-if,ps-dom-repeat{display:none;}";document.head.appendChild(S);NSd=!0}};
C3=function(){return _.y("disable_hidden_dom_if_using_stamper")||_.y("creator_disable_hidden_dom_if_using_stamper")};
qvu=function(S,p){var U=_.xk().getState();return p?S.apply(null,[U].concat(_.jo(p))):S(U)};
cue=function(){if(Auq)return Auq;var S=_.d(_.kj(0,void 0,"Nl6eIe")),p=S.next().value;S.next();var U=S.next().value;_.xk().subscribe(function(){tek(U)});
return Auq=p};
tek=function(S){_.y("delay_redux_signal_update_killswitch")?S(function(p){return p+1}):SiE||(SiE=!0,Promise.resolve().then(function(){S(function(p){return p+1});
SiE=!1}))};
_.xk=function(){return pne.getAppStore()};
E2=function(S,p){return pne.getSelectFn()(S,p)};
_.m_=function(S){pne.getDispatchFn()(S)};
UQG=function(S,p){var U={},Y;for(Y in S)U[Y]=p(S[Y],Y);return U};
_.os=function(S,p){return function(){var U;return(U=_.Pz(S))!=null?U:p}};
_.vT=function(S,p){var U=Object.assign({},S),Y;for(Y in p)p.hasOwnProperty(Y)&&(U[Y]=_.os(S[Y],p[Y]));return U};
Yiw=function(S,p,U){S instanceof Element&&(U.debugName||(U.debugName="<"+S.tagName.toLowerCase()+(S.tagName.includes("-")?">":"."+S.className+">")),_.y("ytwiz_enable_debug_component_props")&&(S.debugProps||(S.debugProps=UQG(p,function(Y){return function(){return Y()}}))))};
_.$k=function(S,p){var U=function(Y){var L={stack:[],error:void 0,hasError:!1};try{var I=Liw={};var V=MDw(L,gru("ytComponent",{})),W;if(((W=U)==null?0:W.idomCompat)&&Y.renderedFromIdom){V==null||V.attr("idomCompat",!0);var O,D=typeof U.idomCompat==="object"?(O=U)==null?void 0:O.idomCompat.callbacks:{},z=_.d(IRw(Y,D,U.debugName)),Q=z.next().value;z.next();var J=z.next().value,K=dQk(S,Q);I.privateValue=K;Liw=void 0;Yiw(K,Q,U);V==null||V.attr("debugName",U.debugName);var G=AEG(K),X=Array.isArray(G)?
G[0]:G;X[T2]||(X[T2]={});X[T2].updateSignalsFromIdomProps=J;return K}var Z=UQG(Y,VDd);var l=dQk(S,Z);I.privateValue=l;Liw=void 0;Yiw(l,Z,U);V==null||V.attr("debugName",U.debugName);return l}catch(a){L.error=a,L.hasError=!0}finally{TyX(L)}};
U.debugName=p===void 0?"":p;return U};
dQk=function(S,p){S=S(p);return HQ(S)};
Wik=function(S,p){S[p]||(S=new _.y7("IDOM interop setter undefined. Key:",p),_.ZP(S))};
VDd=function(S,p){return p==="children"||p==="ref"||typeof S==="function"||S===void 0?S:function(){return _.Pz(S)}};
IRw=function(S,p,U){var Y={},L={},I={},V={},W;for(W in S){V={key$jscomp$891:V.key$jscomp$891};V.key$jscomp$891=W;var O=S[V.key$jscomp$891];if(V.key$jscomp$891==="children"||V.key$jscomp$891==="ref")Y[V.key$jscomp$891]=O;else if(typeof O==="function")V.key$jscomp$891 in p||O.length>0?(I[V.key$jscomp$891]=O,Y[V.key$jscomp$891]=function(z){return function(){return I[z.key$jscomp$891].apply(I,_.jo(_.jO.apply(0,arguments)))}}(V)):Y[V.key$jscomp$891]=O;
else if(!(S[V.key$jscomp$891]===void 0&&V.key$jscomp$891 in p)){var D=_.d(_.kj(S[V.key$jscomp$891],{debugName:"__cwis:"+U+":"+V.key$jscomp$891},"cEBU8c"));O=D.next().value;D=D.next().value;Y[V.key$jscomp$891]=O;L[V.key$jscomp$891]=D}}return[Y,L,function(z){var Q={},J;for(J in z)Q={key$jscomp$892:Q.key$jscomp$892,val$jscomp$117:void 0},Q.key$jscomp$892=J,Q.val$jscomp$117=z[Q.key$jscomp$892],Q.key$jscomp$892!=="children"&&Q.key$jscomp$892!=="ref"&&(typeof Q.val$jscomp$117==="function"?Q.key$jscomp$892 in
p?I[Q.key$jscomp$892]=Q.val$jscomp$117:Q.val$jscomp$117.length>0&&(I[Q.key$jscomp$892]=Q.val$jscomp$117,_.eP(new _.y7("Callback detected that was not set in the idomCompat callbacks map. Key:",Q.key$jscomp$892))):Q.key$jscomp$892 in p&&Q.val$jscomp$117===void 0||(Wik(L,Q.key$jscomp$892),Jy(function(K){return function(){L[K.key$jscomp$892](K.val$jscomp$117)}}(Q))))}]};
Hmq=function(S,p,U){var Y=H4r(S.prototype,OmR,S.prototype.behaviors);Y.prototype.is=p;Y.prototype.localName=p;U&&kgG(Y,U);return function(L){L&&(Y.prototype.hostElement=L);var I=new Y;I.root=I;I.hostElement=L;return I}};
kgG=function(S,p){var U;Object.defineProperty(S.prototype,"_template",{get:function(){U===void 0&&(U=p());return U},
set:function(Y){U=Y},
configurable:!0,enumerable:!0})};
JgX=function(S,p,U,Y){function L(){if(!K){for(var G=new Set,X=_.d(z),Z=X.next();!Z.done;Z=X.next()){Z=Z.value;for(var l=_.d(Object.getOwnPropertyNames(Z)),a=l.next();!a.done;a=l.next()){a=a.value;var N=void 0,m=(N=Object.getOwnPropertyDescriptor(Z,a))==null?void 0:N.value;m&&m instanceof Function&&!iK(a)&&(!W[a]||_.y("polymer_forward_method_killswitch"))&&G.add(a)}}X=_.d(Object.entries(Object.getOwnPropertyDescriptors(S.prototype)));for(Z=X.next();!Z.done;Z=X.next())l=_.d(Z.value),Z=l.next().value,
l=l.next().value,l.value instanceof Function&&!iK(Z)&&G.add(Z);K=G}return K}
DQd(S,p,Y==null?void 0:Y.providers);D_X(S.prototype,S,!0);var I=Hmq(S,p,U),V,W=(V=S.prototype.properties)!=null?V:{},O,D,z=(D=(O=S.prototype.behaviors)==null?void 0:O.flat(Infinity))!=null?D:[];U=_.d(z);for(V=U.next();!V.done;V=U.next())W=Object.assign({},V.value.properties,W);var Q=[].concat(_.jo(zpe),_.jo(Object.keys(W).map(function(G){return _.O$(G)}))),J=!1,K;
return{ctor:function(G,X){var Z=I(G),l,a;G=[].concat(_.jo((l=Y==null?void 0:Y.allowedProps)!=null?l:[]),_.jo((a=Y==null?void 0:Y.allowedPropsFromBehaviors)!=null?a:[]));Z.allowedProps=G.length>0?G:void 0;l={};a=_.d(Q);for(G=a.next();!G.done;G=a.next())G=G.value,l[G]=_.kn(G);Z.__dataAttributes=l;var N=Z.ready.bind(Z);Z.ready=function(){X.beforeReady();N();if(Qd(p)&&!J){var m=Z.__templateInfo;if(m==null?0:m.hostProps){m=_.d(Object.keys(m.hostProps));for(var A=m.next();!A.done;A=m.next())JF(p,A.value,
"PROPERTY_ACCESS_GET_INTERNAL")}J=!0}};
Z._overrideLegacyUndefined=!0;return Z},
props:W,observedAttributes:Q,getInitialMethods:L,getPropsToForwardBeforeRegister:function(){for(var G=[],X=new Set,Z=_.d(Object.keys(W)),l=Z.next();!l.done;l=Z.next())l=l.value,G.push([l,W[l].readOnly]),X.add(l);Z=L();l=_.d(Object.keys(Object.getOwnPropertyDescriptors(S.prototype)));for(var a=l.next();!a.done;a=l.next())a=a.value,!Q0q(a)||Z.has(a)||X.has(a)||(G.push([a,!1]),X.add(a));X=_.d(n0e);for(Z=X.next();!Z.done;Z=X.next())G.push([Z.value,!0]);return G},
getPropsToForwardBeforeReady:function(G){for(var X=[],Z=_.d(Object.entries(G)),l=Z.next();!l.done;l=Z.next()){var a=_.d(l.value);l=a.next().value;a=a.next().value;if(Q0q(l)&&!(a instanceof Function)&&(X.push([l,!1]),Qd(p))){var N=a=void 0;(N=(a=G)._createPropertyAccessor)==null||N.call(a,l)}}return X},
shouldForwardProp:Q0q,shouldLog:Qd}};
DQd=function(S,p,U){SLw(S,U);S.prototype.behaviors.unshift(ygX);if(xKw()){if(Qd(p)){var Y;(Y=S.prototype).behaviors!=null||(Y.behaviors=[]);S.prototype.behaviors.unshift(vBR())}$KR(S)}_.F(hF.prototype)(S.prototype,"__templateHelpers")};
iK=function(S){return Kiw.has(S)||S.startsWith("__compute__")};
Q0q=function(S){return!iK(S)&&!S.startsWith("_")&&!S.endsWith("_")};
hpq=function(S,p){function U(){var J=O();J=_.d(J);for(var K=J.next();!K.done;K=J.next()){var G=_.d(K.value);K=G.next().value;G=G.next().value;bmE(Q.prototype,K,G)}Y=!0}
var Y=!1,L=S.ctor,I=S.getInitialMethods,V=S.observedAttributes,W=S.getPropsToForwardBeforeReady,O=S.getPropsToForwardBeforeRegister,D=S.shouldForwardProp,z=S.shouldLog,Q=function(){var J=HTMLElement.call(this)||this;J.didForwardDynamicProps=!1;J.loggingStatus={};Y||U();J.inst=L(J,{beforeReady:function(){J.didForwardDynamicProps||(J.forwardDynamicProps(),J.didForwardDynamicProps=!0)}});
J.controllerProxy=mKd(J.inst,p);J.forwardMethods();return J};
_.r(Q,HTMLElement);Q.prototype.forwardMethods=function(){for(var J=this,K=_.d(this.inst.getExtraMethodsToForward()),G=K.next(),X={};!G.done;X={method$jscomp$60:void 0},G=K.next()){var Z=_.d(G.value);G=Z.next().value;Z=Z.next().value;X.method$jscomp$60=Z;this[G]=function(l){return function(){return l.method$jscomp$60.call.apply(l.method$jscomp$60,[J.inst].concat(_.jo(_.jO.apply(0,arguments))))}}(X)}K=_.d(I());
for(X=K.next();!X.done;X=K.next())X=X.value,D(X)&&j0e(this,X),z(p)&&!iK(X)&&rgw(this.inst,X)};
Q.prototype.forwardDynamicProps=function(){var J=W(this.inst);J=_.d(J);for(var K=J.next();!K.done;K=J.next()){var G=_.d(K.value);K=G.next().value;G=G.next().value;bmE(this,K,G);z(p)&&!iK(K)&&Ggd(this.inst,K)}};
Q.prototype.connectedCallback=function(){this.inst.connectedCallback();this.inst.isConnected=!0};
Q.prototype.disconnectedCallback=function(){this.inst.disconnectedCallback();this.inst.isConnected=!1};
Q.prototype.attributeChangedCallback=function(J,K,G){this.inst.attributeChangedCallbackWrapper(J,K,G)};
_.$u.Object.defineProperties(Q.prototype,{is:{configurable:!0,enumerable:!0,get:function(){return p}},
polymerController:{configurable:!0,enumerable:!0,get:function(){return this.controllerProxy}}});
_.$u.Object.defineProperties(Q,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return V}}});
customElements.define(p,Q)};
bmE=function(S,p,U){S.hasOwnProperty(p)||Object.defineProperty(S,p,{get:function(){var Y,L=((Y=S.is)!=null?Y:S.tagName).toLowerCase();if(this.polymerController)return this.loggingStatus.isDeclarativeExternal||JF(L,p,"PROPERTY_ACCESS_GET_EXTERNAL"),this.loggingStatus.isExternalGet=!0,this.loggingStatus.bypassProxyController=!0,Y=this.polymerController[p],this.loggingStatus.isExternalGet=!1,this.loggingStatus.bypassProxyController=!1,Y},
set:function(Y){if(!U){var L,I=((L=S.is)!=null?L:S.tagName).toLowerCase();this.polymerController&&(this.loggingStatus.isDeclarativeExternal||JF(I,p,"PROPERTY_ACCESS_SET_EXTERNAL_IMPERATIVE"),this.loggingStatus.currentExternalSet=p,this.loggingStatus.bypassProxyController=!0,this.polymerController[p]!==Y&&(L={},this.polymerController.setProperties((L[p]=Y,L)),this.loggingStatus.currentExternalSet=void 0,this.loggingStatus.bypassProxyController=!1))}}})};
j0e=function(S,p,U){var Y=S.polymerController;S[p]=function(){var L=_.jO.apply(0,arguments);S.loggingStatus.currentExternalCall=p;S.loggingStatus.bypassProxyController=!0;var I,V=((I=S.is)!=null?I:S.tagName).toLowerCase();JF(V,p,"PROPERTY_ACCESS_CALL_EXTERNAL");var W;I=(W=U!=null?U:Y[p])==null?void 0:W.call.apply(W,[Y].concat(_.jo(L)));S.loggingStatus.currentExternalCall=void 0;S.loggingStatus.bypassProxyController=!1;return I}};
rgw=function(S,p){var U=S.hostElement,Y=S[p];S[p]=function(){var L=_.jO.apply(0,arguments);if(U.loggingStatus.currentExternalCall!==p){var I,V=((I=U.is)!=null?I:U.tagName).toLowerCase();JF(V,p,"PROPERTY_ACCESS_CALL_INTERNAL")}return Y==null?void 0:Y.apply(S,L)}};
Ggd=function(S,p){var U=Object.getOwnPropertyDescriptor(S,p);U&&!U.get&&Object.defineProperty(S,p,{get:function(){oBN(S.hostElement,p);return U.value},
set:function(Y){yd(S.hostElement,p);U.value=Y}})};
Rpw=function(S){return _.y("poly_si_dom_repeat_detached_fix_killswitch")||S.tagName!=="PS-DOM-REPEAT"?S.tagName==="DOM-REPEAT":!0};
Xnu=function(S,p){var U=Fiw(S);S instanceof Element&&U.unshift(S);S=_.d(U.filter(Rpw));for(var Y=S.next();!Y.done;Y=S.next()){var L=void 0;Y=_.d((L=Y.value.__instances)!=null?L:[]);for(L=Y.next();!L.done;L=Y.next())if(L=L.value,L.root){L=Array.from(L.root.children);L=_.d(L);for(var I=L.next();!I.done;I=L.next())U.push.apply(U,_.jo(Xnu(I.value,p)))}}return U.filter(function(V){return V.usePatchedLifecycles&&V.lifecycleIsConnected===p})};
Fiw=function(S){var p=null;S instanceof Element?p=Element.prototype.querySelectorAll:S instanceof DocumentFragment&&(p=DocumentFragment.prototype.querySelectorAll);return p?Array.from(p.call(S,"*")):[]};
Ns=function(S){OI(function(){for(var p=_.d(Xnu(S,!1)),U=p.next();!U.done;U=p.next()){U=U.value;U.lifecycleIsConnected=!0;try{var Y=void 0,L=void 0,I=void 0,V=void 0;(Y=(V=U.polymerController)!=null?V:U)==null||(I=(L=Y).connectedCallback)==null||I.call(L)}catch(W){_.ZP(W)}}})};
BT=function(S){OI(function(){for(var p=_.d(Xnu(S,!0)),U=p.next();!U.done;U=p.next()){U=U.value;U.lifecycleIsConnected=!1;try{var Y=void 0,L=void 0,I=void 0,V=void 0;(Y=(V=U.polymerController)!=null?V:U)==null||(I=(L=Y).disconnectedCallback)==null||I.call(L)}catch(W){_.ZP(W)}}})};
wnR=function(){if(!PqE){PqE=!0;var S=[Node];qs&&S.push(qs.Wrapper);var p=Node.prototype.insertBefore,U=Node.prototype.removeChild;S=_.d(S);for(var Y=S.next(),L={};!Y.done;L={nativeInsertBefore:void 0,nativeAppendChild:void 0,nativeRemoveChild:void 0,nativeReplaceChild:void 0},Y=S.next())Y=Y.value,L.nativeInsertBefore=Y.prototype.insertBefore,Y.prototype.insertBefore=function(V){return function(W,O){if(W instanceof DocumentFragment){var D=Array.from(W.children);W=V.nativeInsertBefore.call(this,W,O);
if(this.isConnected&&V.nativeInsertBefore===p)for(O=_.d(D),D=O.next();!D.done;D=O.next())Ns(D.value);return W}D=W instanceof Element&&W.isConnected;O=V.nativeInsertBefore.call(this,W,O);D&&BT(W);this.isConnected&&Ns(W);return O}}(L),L.nativeAppendChild=Y.prototype.appendChild,Y.prototype.appendChild=function(V){return function(W){if(W instanceof DocumentFragment){var O=Array.from(W.children);
W=V.nativeAppendChild.call(this,W);if(this.isConnected){O=_.d(O);for(var D=O.next();!D.done;D=O.next())Ns(D.value)}return W}O=W instanceof Element&&W.isConnected;D=V.nativeAppendChild.call(this,W);O&&BT(W);this.isConnected&&Ns(W);return D}}(L),L.nativeRemoveChild=Y.prototype.removeChild,Y.prototype.removeChild=function(V){return function(W){var O=W instanceof Element&&W.isConnected,D=V.nativeRemoveChild.call(this,W);
O&&U===V.nativeRemoveChild&&BT(W);return D}}(L),L.nativeReplaceChild=Y.prototype.replaceChild,Y.prototype.replaceChild=function(V){return function(W,O){if(W instanceof DocumentFragment){var D=Array.from(W.children);
W=V.nativeReplaceChild.call(this,W,O);if(this.isConnected)for(BT(O),O=_.d(D),D=O.next();!D.done;D=O.next())Ns(D.value);return W}D=W instanceof Element&&W.isConnected;var z=this.isConnected,Q=V.nativeReplaceChild.call(this,W,O);z&&BT(O);D&&BT(W);z&&Ns(W);return Q}}(L);
S=[Element];qs&&S.push(qs.Wrapper);S=_.d(S);Y=S.next();for(L={};!Y.done;L={nativeReplaceWith:void 0,nativeRemove:void 0,nativeInsertAdjacentElement:void 0,nativeSetAttribute:void 0,nativeRemoveAttribute:void 0,nativeToggleAttribute:void 0},Y=S.next())Y=Y.value,Y.prototype.before=ZmE(Y.prototype.before),Y.prototype.after=ZmE(Y.prototype.after),L.nativeReplaceWith=Y.prototype.replaceWith,Y.prototype.replaceWith=function(V){return function(){var W=_.jO.apply(0,arguments),O=_.d(s0N(W)),D=O.next().value,
z=O.next().value;O=this.isConnected;V.nativeReplaceWith.apply(this,W);W=_.d(z);for(z=W.next();!z.done;z=W.next())BT(z.value);if(O)for(BT(this),D=_.d(D),O=D.next();!O.done;O=D.next())O=O.value,O instanceof Element&&Ns(O)}}(L),L.nativeRemove=Y.prototype.remove,Y.prototype.remove=function(V){return function(){var W=this.isConnected;
V.nativeRemove.call(this);W&&BT(this)}}(L),L.nativeInsertAdjacentElement=Y.prototype.insertAdjacentElement,Y.prototype.insertAdjacentElement=function(V){return function(W,O){var D=O.isConnected;
W=V.nativeInsertAdjacentElement.call(this,W,O);D&&BT(O);W.isConnected&&Ns(W);return W}}(L),L.nativeSetAttribute=Y.prototype.setAttribute,Y.prototype.setAttribute=function(V){return function(W,O){var D=epk(this);
if(!D.usePatchedLifecycles)return V.nativeSetAttribute.call(this,W,O);var z=this.getAttribute(W);V.nativeSetAttribute.call(this,W,O);O=this.getAttribute(W);g0E(D,W,z,O)}}(L),L.nativeRemoveAttribute=Y.prototype.removeAttribute,Y.prototype.removeAttribute=function(V){return function(W){var O=epk(this);
if(!O.usePatchedLifecycles)return V.nativeRemoveAttribute.call(this,W);var D=this.getAttribute(W);V.nativeRemoveAttribute.call(this,W);D!==null&&g0E(O,W,D,null)}}(L),L.nativeToggleAttribute=Y.prototype.toggleAttribute,Y.prototype.toggleAttribute=function(V){return function(W,O){var D=epk(this);
if(!this.usePatchedLifecycles)return V.nativeToggleAttribute.call(this,W,O);var z=this.getAttribute(W),Q=z!==null;O=V.nativeToggleAttribute.call(this,W,O);O!==Q&&g0E(D,W,z,O?"":null);return O}}(L);
S=[Document,DocumentFragment,Element,ShadowRoot];qs&&S.push(qs.Wrapper);S=_.d(S);for(L=S.next();!L.done;L=S.next())L=L.value,L.prototype.prepend=ZmE(L.prototype.prepend),L.prototype.append=ZmE(L.prototype.append);(qs==null?void 0:qs.noPatch)===!0&&uWN();document.readyState==="complete"?Ns(document.body):document.addEventListener("readystatechange",function(){document.readyState==="complete"&&Ns(document.body)});
var I=Object.getOwnPropertyDescriptor(HTMLElement.prototype,"innerText");I&&I.get&&I.set&&Object.defineProperty(HTMLElement.prototype,"innerText",{enumerable:I.enumerable,configurable:!0,get:I.get,set:function(V){V||BT(this);I.set.call(this,V);return V}})}};
ZmE=function(S){return function(){var p=_.jO.apply(0,arguments),U=_.d(s0N(p)),Y=U.next().value;U=U.next().value;S.apply(this,p);p=_.d(U);for(U=p.next();!U.done;U=p.next())BT(U.value);if(this.isConnected)for(Y=_.d(Y),p=Y.next();!p.done;p=Y.next())p=p.value,p instanceof Element&&Ns(p)}};
uWN=function(){for(var S=_.d(lRu),p=S.next();!p.done;p=S.next()){p=p.value.prototype;for(var U=_.d(aRq),Y=U.next();!Y.done;Y=U.next()){Y=Y.value;var L=Object.getOwnPropertyDescriptor(p,Y);L&&Object.defineProperty(p,"__shady_native_"+Y,L)}}};
g0E=function(S,p,U,Y){var L,I;if((L=S.polymerController)==null?0:(I=L.observedAttributes)==null?0:I.includes(p))if(S=S.polymerController,S.attributeChangedCallbackWrapper)S.attributeChangedCallbackWrapper.call(S,p,U,Y);else{var V;(V=S.attributeChangedCallback)==null||V.call(S,p,U,Y)}};
s0N=function(S){var p=[],U=[];S=_.d(S);for(var Y=S.next();!Y.done;Y=S.next())Y=Y.value,Y instanceof Element&&Y.isConnected&&U.push(Y),Y instanceof DocumentFragment?p.push.apply(p,_.jo(Array.from(Y.children))):p.push(Y);return[p,U]};
epk=function(S){return!(S instanceof Element)&&S.node instanceof Element?S.node:S};
fRR=function(S,p){var U=p?["children"].concat(_.jo(p)):["children"];p=[];U=_.d(U);for(var Y=U.next();!Y.done;Y=U.next()){var L=Y.value;if(S.hasOwnProperty(L)){Y=S[L];Y=typeof Y==="function"?Y():Y;Y=HQ(Array.isArray(Y)?Y:[Y]).flat();if(L!=="children"){L=pFe(L);for(var I=_.d(Y),V=I.next();!V.done;V=I.next())V=V.value,V instanceof Element&&V.setAttribute("slot",L)}p.push(Y)}}p.length===0?S=[]:(S=HQ(_.H("div",null,p)),S=Array.from(S.childNodes));return S};
xQX=function(S,p,U){var Y={};_.Zg(function(){var L={},I;for(I in p)if(p.hasOwnProperty(I)){var V=void 0,W=void 0;if(!(((V=U.slotProps)==null?0:V.includes(I))||I==="children"||((W=U.callbackProps)==null?0:W.includes(I))||I==="ref")&&(V=_.Pz(p[I]),Y[I]!==V)){Y[I]=V;W=void 0;var O=(W=S.hostElement)!=null?W:S;CqE.has(I)&&(O[I]=V);L[I]=V}}Jy(function(){if(S.setProperties)S.setProperties(L);else for(var D=_.d(Object.entries(L)),z=D.next();!z.done;z=D.next()){var Q=_.d(z.value);z=Q.next().value;Q=Q.next().value;
S[z]=Q}})})};
mQq=function(S,p,U,Y){var L=fRR(U,Y.slotProps),I=(0,_.L3)(S);L=_.d(L);for(var V=L.next();!V.done;V=L.next())I.appendChild(V.value);xQX(p,U,Y);Y=_.d(Y.callbackProps||[]);L=Y.next();for(I={};!L.done;I={kebabEventName:void 0,eventListener:void 0},L=Y.next())V=L=L.value,String(L).substring(0,2)==="on"&&U[V]?(I.kebabEventName=pFe(String(L).substring(2)),I.eventListener=U[V],S.addEventListener(I.kebabEventName,I.eventListener),_.FG(function(z){return function(){S.removeEventListener(z.kebabEventName,z.eventListener)}}(I))):
p[V]=U[V];
if(U.ref){U=_.d(E0E(U.ref));var W=U.next().value,O=U.next().value,D=p.attached.bind(p);p.attached=function(){W(S);D()};
_.FG(function(){O()})}};
E0E=function(S){if(typeof S==="function"){var p;return[function(U){p=S(U)},
function(){var U;(U=p)==null||U()}]}if(!S.onRender||!S.onUnmount)throw Error("Qg");
return[S.onRender,S.onUnmount]};
imN=function(S,p,U,Y,L){Y=Y===void 0?{}:Y;var I=o0e,V=!1;I?(V=!0,o0e=void 0):(v0w=p,I=document.createElement(p),v0w=void 0);var W=I;W.usePatchedLifecycles=!0;W.lifecycleIsConnected=!1;I.loggingStatus={};var O=$Qe(S,p,I,Y,L);_.FG(function(){W.lifecycleIsConnected&&(W.lifecycleIsConnected=!1,O.disconnectedCallback())});
V||mQq(I,O,U,Y);return I};
$Qe=function(S,p,U,Y,L){L=L===void 0?JgX:L;Nyw[p]!=null||(Nyw[p]=L(S,p,Y==null?void 0:Y.getTemplate,Y));var I=Nyw[p],V=I.ctor;L=I.getInitialMethods;var W=I.getPropsToForwardBeforeReady;S=I.getPropsToForwardBeforeRegister;Y=I.shouldForwardProp;var O=I.observedAttributes,D=I.shouldLog,z=V(U,{beforeReady:function(){var Q=z;Q._takeAttributes?Q._takeAttributes():Q.setPropertiesFromInitialAttributeValues&&Q.setPropertiesFromInitialAttributeValues();Q=_.d(W(U.polymerController));for(var J=Q.next();!J.done;J=
Q.next()){var K=_.d(J.value);J=K.next().value;K=K.next().value;bmE(U,J,K);D(p)&&!iK(J)&&Ggd(U.polymerController,J)}U.polymerController=mKd(z,p)}});
U.polymerController=z;U.polymerController.observedAttributes=O;I=_.d(z.getExtraMethodsToForward());for(V=I.next();!V.done;V=I.next())O=_.d(V.value),V=O.next().value,O=O.next().value,j0e(U,V,O);L=_.d(L());for(I=L.next();!I.done;I=L.next())I=I.value,Y(I)&&j0e(U,I),D(p)&&!iK(I)&&rgw(z,I);S=_.d(S());for(Y=S.next();!Y.done;Y=S.next())L=_.d(Y.value),Y=L.next().value,L=L.next().value,bmE(U,Y,L);return z};
qie=function(S,p){return AF===p?(S.isInert=!0,AF="",!0):Bye===p?(S.isInert=!0,Bye="",!0):!1};
Agu=function(S){var p=tF;tF=S;return p};
cgE=function(S){if(cT.has(S))Bye=S;else if(SV.has(S)&&tF&&tDd(tF)===S){var p;(p=tF)._numRenders!=null||(p._numRenders=0);tF._numRenders++;if(tF._numRenders>1)throw Error("Rg");return tF}};
S6w=function(S){cT.has(tDd(S))?Bye=tDd(S):SV.has(tDd(S))&&tF!==S&&(S._isInert=!0)};
tDd=function(S){var p;return(p=S==null?void 0:S.tagName.toLowerCase())!=null?p:""};
pyr=function(S,p){if(S.componentType===jk)throw Error("Sg");SV.add(p);var U=function(){var Y=HTMLElement.call(this)||this;Y.is=p;if(v0w===p)return Y.isInert=!0,Y;Y.createElement();return Y};
_.r(U,HTMLElement);U.prototype.createElement=function(){if(!this.isInert){o0e=this;var Y=_.d(Qyw(function(){return _.H(S,null)})).next().value;
o0e=void 0;oPw(this);return Y}};
customElements.define(p,U)};
Y6R=function(S,p,U,Y,L){S.prototype.is=p;(Y==null?0:Y.useSink)?UrX(S,p,U,Y,L):(U=JgX(S,p,U,Y),hpq(U,p));return S};
UrX=function(S,p,U,Y,L){wnR();var I=_.$k(function(V){return imN(S,p,V,Object.assign({},Y,{getTemplate:U}),L)},"a");
pyr(I,p);return I};
M7r=function(S){return!L3e.has(S)};
V7q=function(S,p,U,Y){function L(){if(!Q){for(var J=new Set(IMR),K=_.d(I.behaviors),G=K.next();!G.done;G=K.next()){G=G.value;for(var X=_.d(Object.getOwnPropertyNames(G)),Z=X.next();!Z.done;Z=X.next()){Z=Z.value;var l=void 0,a=(l=Object.getOwnPropertyDescriptor(G,Z))==null?void 0:l.value;a&&a instanceof Function&&(!D[Z]||_.y("polymer_forward_method_killswitch"))&&J.add(Z)}}K=_.d(Object.entries(Object.getOwnPropertyDescriptors(S.prototype)));for(G=K.next();!G.done;G=K.next())X=_.d(G.value),G=X.next().value,
X=X.next().value,X.value instanceof Function&&J.add(G);Q=J}return Q}
var I=oyE({is:p,disableElementRegistration:!1,getTemplate:U,providers:Y==null?void 0:Y.providers,reactivityMode:Y==null?void 0:Y.reactivityMode},S);if((Y==null?0:Y.allowedProps)||(Y==null?0:Y.allowedPropsFromBehaviors)){var V,W;I.allowedProps=[].concat(_.jo((V=Y.allowedProps)!=null?V:[]),_.jo((W=Y.allowedPropsFromBehaviors)!=null?W:[]))}var O=l6u(I,S);p=O.observedAttributes;var D={};U=_.d(I.reactiveSchemas);for(Y=U.next();!Y.done;Y=U.next())if(Y=Y.value,Y.type==="signal")D[Y.propertyKey]={readOnly:Y.readOnly},
Y.readOnly&&(D[Htw(Y.propertyKey)]={readOnly:!0});else if(Y.type==="compute"||Y.type==="computeWithMethod"||Y.type==="redux")D[Y.propertyKey]={readOnly:!0};var z=I.reactiveSchemas.length,Q;return{ctor:function(J,K){J=new O(J);J.beforeReady=K.beforeReady;return J},
props:D,observedAttributes:p,getInitialMethods:L,getPropsToForwardBeforeRegister:function(){for(var J=[],K=new Set,G=_.d(drd),X=G.next();!X.done;X=G.next())X=X.value,J.push([X,X!=="observers"&&X!=="properties"]),K.add(X);G=_.d(Object.keys(D));for(X=G.next();!X.done;X=G.next())X=X.value,J.push([X,D[X].readOnly]),K.add(X);G=L();X=_.d(Object.keys(Object.getOwnPropertyDescriptors(S.prototype)));for(var Z=X.next();!Z.done;Z=X.next())Z=Z.value,!M7r(Z)||G.has(Z)||K.has(Z)||(J.push([Z,!1]),K.add(Z));J.push(["allowedProps",
!0]);return J},
getPropsToForwardBeforeReady:function(J){var K=[];J=_.d(Object.keys(J));for(var G=J.next();!G.done;G=J.next()){G=G.value;var X=L();M7r(G)&&!X.has(G)&&K.push([G,!1])}J=_.d(I.reactiveSchemas.slice(z));for(G=J.next();!G.done;G=J.next())G=G.value,G.type!=="compute"&&G.type!=="computeWithMethod"&&G.type!=="redux"&&G.type!=="signal"||K.push([G.propertyKey,G.type==="signal"?G.readOnly:!0]);return K},
shouldForwardProp:M7r,shouldLog:Qd}};
_.C=function(S,p,U,Y){var L,I,V=(I=(L=Y)==null?void 0:L.mode)!=null?I:0;Y!=null||(Y={});var W;(W=Y).reactivityMode!=null||(W.reactivityMode=0);V===1&&_.YU("creator_poly_si_disable_list").includes(p)&&(V=2);return V===1?Y6R(S,p,U,Object.assign({},Y,{useSink:!0}),V7q):Y6R(S,p,U,Object.assign({},Y,{useSink:V===2}))};
_.pz=function(){return function(S,p,U,Y){var L,I,V=(I=(L=Y)==null?void 0:L.mode)!=null?I:2;Y!=null||(Y={});var W;(W=Y).reactivityMode!=null||(W.reactivityMode=0);if(V===0)throw Error("Tg`"+V);return UrX(S,p,U,Y,V===1?V7q:void 0)}};
_.UW=function(S){return _.y("creator_poly_si_killswitch")?!1:_.y("force_all_poly_si_batches")&&(S==="poly_si_all_on_test_check"||S==="creator_poly_si_batch_050"?0:S)||document.documentElement.hasAttribute("use-signals")?!0:!S||_.y(S+"_holdback_enabled")&&_.y("kevlar_polysi_holdback")?!1:_.y(S)};
YX=function(S){return S?S.icon?S.icon.iconType.toLowerCase():S.customThumbnail?"member":"":""};
T$G=function(S){if(!S)return"";S=_.d(S);for(var p=S.next();!p.done;p=S.next())if((p=p.value)&&p.liveChatAuthorBadgeRenderer&&(p=YX(p.liveChatAuthorBadgeRenderer))&&p!=="verified")return p;return""};
W3k=function(S,p){if(!S)return null;var U;return((U=S.find(function(Y){return Y&&Y.liveChatAuthorBadgeRenderer?YX(Y.liveChatAuthorBadgeRenderer)===p:!1}))==null?void 0:U.liveChatAuthorBadgeRenderer)||null};
_.QBN=function(S){var p=getComputedStyle(document.querySelector("yt-live-chat-renderer")).backgroundColor;S=OPR(S);p=OPR(p);var U=kJG(S.hex);p=kJG(p.hex);var Y=p[0]/255;var L=p[1]/255,I=p[2]/255,V=Math.max(Y,L,I),W=Math.min(Y,L,I),O=0,D=0,z=.5*(V+W);V!=W&&(V==Y?O=60*(L-I)/(V-W):V==L?O=60*(I-Y)/(V-W)+120:V==I&&(O=60*(Y-L)/(V-W)+240),D=0<z&&z<=.5?(V-W)/(2*z):(V-W)/(2-2*z));Y=[Math.round(O+360)%360,D,z];U=HPG(U,p);for(S=Drk(S.hex);U<4.5;){S=Y[2]>=.5?S.darker((4.5-U)/2):S.brighter((4.5-U)/2);U=S.toString();
L=zmN(U);if(!L.length)throw Error("Qd`"+U);U=L;U=HPG(U,p)}return S.hex()};
HPG=function(S,p){S=_.Ssk(S);p=_.Ssk(p);return(Math.max(S,p)+.05)/(Math.min(S,p)+.05)};
_.Lz=function(S){return"#"+("000000"+(S&16777215).toString(16)).slice(-6)};
_.n_w=function(S){for(var p=0,U=0;U<S.length;U++)p=S.charCodeAt(U)+((p<<5)-p);S="#";for(U=0;U<3;U++)S+=("00"+(p>>U*8&255).toString(16)).slice(-2);return S};
JRw=function(S){S=(S||"").split(":");S.length===1&&S.unshift("yt-icons");S[1]=S[1].toLowerCase();return S};
GJG=function(S,p){var U=(p=p===void 0?!1:p)?yRw:K3w,Y=p?bPq:jBe;S.getIconNames().forEach(function(L){L=p?L:L.substring(L.indexOf(":")+1);S.name==="yt-icons"?rRe.add(L):L.includes("-filled")?U.add(L):Y.add(L)})};
Mm=function(S,p,U,Y){U=U===void 0?!1:U;Y=Y===void 0?!1:Y;var L,I,V;return _.T(function(W){if(W.nextAddress==1)return _.k(W,hmq,2);if(Y)return W.return(rRe.has(S));L=U?yRw:K3w;I=U?bPq:jBe;return p?(V=S.includes("-filled")?S:S.concat("-filled"),W.return(L.has(V))):W.return(I.has(S))})};
_.Xyw=function(S){if(Rmw(S))return S;var p=S=S.toLowerCase();(S=F3G.get(S))&&(p=S);return p};
_.If=function(S){if(Rmw(S))return S.toString();var p=P8X.get(S);if(p)return p;p=S.toLowerCase();var U="yt-icons",Y=p.replace(/_/g,"-");switch(S){case "MY_CHANNEL":p="account_circle";break;case "ADD_TO_LIBRARY":p="add";break;case "ALERT_WARN_RED":p="warning";break;case "ARTIST":case "ARTIST_ANALYTICS":p="person_music";break;case "BLOCK_USER":p="block";break;case "CAPTIONS":p="closed_caption";break;case "CLOSED_CAPTION":U="av";p="closed-caption";break;case "COLLECTION":U="maps";p="layers";break;case "CONTACT":U=
"icons";p="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":U="ytcp-icons";p=Y.split("creator-studio-")[1];break;case "DISMISSAL":p="close";break;case "DO_NOT_DISTURB":p="block";break;case "DOGFOOD":U="icons";p="pets";break;case "DRAFT":p="paper_corner_folded";break;
case "EMPTY_LIKE":p="like_outline";break;case "EXIT_APP":p="exit_to_app";break;case "EXPAND_MORE":case "EXPAND_LESS":p=Y;break;case "GAMES":U="ytg";p="my-games";break;case "GO_TO_PAGE":p="arrow-forward";break;case "GROUP":U="social";break;case "HIDE":p="not_interested";break;case "INPUT_COMPONENT":U="icons";p="settings-input-component";break;case "KIDS_BLOCK":p="block";break;case "MEMBERSHIP_LIMITED_PRE_PURCHASE":case "MEMBERSHIP_OFFER":U="ytg";p="membership-pre-purchase";break;case "MEMBERSHIP_LIMITED_POST_PURCHASE":U=
"ytg";p="membership-post-purchase";break;case "MULTIVIEW":p="screen_multi_view";break;case "MY_LOCATION":U="maps";p=Y;break;case "NOTIFICATIONS_INBOX":p="NOTIFICATIONS";break;case "NEXT":p="chevron_right";break;case "OFFLINE":p="power-settings-new";break;case "PAUSE":U="miniplayer";break;case "PAYMENT":U="icons";break;case "PHONE_DOWNLOAD":p="phone_download";break;case "PREMIUM_STANDALONE":U="yt-logos";p="premium_standalone";break;case "PREMIUM_STANDALONE_CAIRO":U="yt-logos";p="premium_standalone_cairo";
break;case "QUESTION_ANSWER":p="question_answer";break;case "REDEEM":U="icons";p="redeem";break;case "REMOVE":case "REMOVE_FROM_HISTORY":case "REMOVE_FROM_PLAYLIST":p="remove-circle-outline";break;case "SAVE_PLAYLIST":case "LIBRARY_ADD":p="library_add";break;case "SCHOOL":U="yt-sys-icons";p="creator_academy";break;case "SETTINGS_LIGHT":p="settings_applications";break;case "SETTINGS_MATERIAL":p="settings";break;case "SEARCH_HISTORY":p="watch_history";break;case "SHOPPING_BAG":p="bag";break;case "SOCIAL":case "PEOPLE":U=
"yt-icons";p="people";break;case "STAFF_PICK":U="ytg";p="spotlight";break;case "START_DVR":p="add";break;case "STOP_DVR":U="av";p="stop";break;case "TAB_LIKED":p="like";break;case "TAB_INBOX":p="mail";break;case "TERMS_OF_SERVICE":U="icons";p="description";break;case "TRENDING":p="fire";break;case "UNBLOCK_USER":p="remove";break;case "UNPLUGGED_DARK_THEME":U="image";p="brightness-3";break;case "UNPLUGGED_LIVE_GUIDE":case "LIVE":p="live";break;case "UNPLUGGED_SPORTS":U="ytu";p="visibility-off";break;
case "VIDEOS":U="av";p="play-circle-filled";break;case "YOUTUBE":U="yt-logos";p="lozenge";break;case "YOUTUBE_RED_LOGO":case "YOUTUBE_PREMIUM_LOGO":U="yt-logos-ext";p="yt-logo-red-updated";break;case "YOUTUBE_LOGO":U="yt-logos-ext";p="yt-logo-updated";break;case "OFFLINE_NO_CONTENT":U="offline-no-content";break;case "SHORTS_COMMENT":case "SHORTS_DISLIKE":case "SHORTS_LIKE":case "SHORTS_SHARE":U="shorts";p=Y;break;case "OUTLINE_YOUTUBE_IMPROVE_TV":U="yt-sys-icons";p="youtube_improve_tv";break;case "OUTLINE_BAG":U=
"yt-sys-icons";p="bag";break;case "QUEUE_PLAY_LAST":U="yt-sys-icons";p="list_queue_last";break;case "SLASH_CIRCLE_LEFT":p="slash_circle_left";break;case "SPEED_1_POINT_2X":p="1_point_2x";break;case "SPEED_1_POINT_5X":p="1_point_5x";break;case "SPEED_1_POINT_8X":p="1_point_8x";break;case "SPEED_POINT_2X":p="point_2x";break;case "SPEED_POINT_5X":p="point_5x";break;case "SPEED_POINT_8X":p="point_8x";break;case "SPEED_1X":p="1x";break;case "SPEED_2X":p="2x";break;case "TAB_BOOKMARK":p="bookmark";break;
case "OUTLINE_CLOCK_HALF_CIRCLE":U="yt-sys-icons";p="clock_half_circle";break;case "YOUTUBE_SHORTS_FILL_NO_TRIANGLE_RED_16":case "YOUTUBE_SHORTS_FILL_NO_TRIANGLE_WHITE_16":U="yt-sys-icons";p="youtube_shorts_no_triangle-filled";break;case "PLAYABLES_LOGO":U="yt-sys-icons",p="tic_tac_toe"}p=U+":"+p;P8X.set(S,p);return p};
Rmw=function(S){var p;_.y("kevlar_use_wil_icons")?p=!!_.tW().resolve(_.dx).resolveIcon({iconName:S.toString()}):p=!1;return p};
_.Te=function(S,p,U,Y){U=U===void 0?{}:U;Y=Y===void 0?!1:Y;U===null&&(U={});var L=_.YU("kevlar_command_handler_command_banlist");L=_.d(L);for(var I=L.next();!I.done;I=L.next())if(I=S?S.hasOwnProperty(I.value):void 0,I)return!1;L=_.b(S.commandMetadata,_.NU);return Y&&L!=null&&L.url?!1:!p.disableCommandHandlerOverride&&_.VO.instance?(Y=_.VO.instance,U.form||(U.form={element:p}),U.form.element||(U.form.element=p),!U.clickedVisualElement&&p.visualElement&&(U.clickedVisualElement=p.visualElement),Y.resolveCommand(S,
U),!0):!1};
ZPw=function(S,p){S=WX(S);for(var U=_.d(S.visibilityMonitorKeys||[]),Y=U.next();!Y.done;Y=U.next())p.unobserveByKey(Y.value);S.visibilityMonitorKeys=void 0};
uQE=function(S,p){if(_.X$()){if(_.y("kevlar_vimio_use_shared_monitor"))sBe(S,p.data);else if(!sBe(S,p.data))return;var U=p.data,Y=emq(U);if(_.y("enable_client_ve_spec_logging"))ZPw(S,p.observer);else{var L=WX(S);L.trackedParams&&L.trackedParams!==Y&&ZPw(S,p.observer)}L=WX(S);!U||L.data&&L.data===U||(L.data=U);g_E(S,p);L.trackedParams=Y}};
g_E=function(S,p){var U=p.observer;if(!U&&_.y("web_skip_missing_vimio_observer")){var Y,L;_.eP(new _.y7("VisibilityObserver is not defined.",S.tagName,S.trackedParams,(Y=p.data)==null?void 0:Y.trackingParams,(L=p.data)==null?void 0:L.loggingDirectives))}else{var I=p.layer,V=p.visibilityCallback||function(){},W=p.prescanCallback,O=WX(S);
Y=[];p.showOption&&Y.push(U.observe(S,function(){p.skipLogging&&p.skipLogging()||_.OW().reportShown(O,void 0,I);V(!0)},p.showOption));
p.hideOption&&Y.push(U.observe(S,function(){_.OW().reportHidden(O,void 0,I);V(!1)},p.hideOption));
p.prescanOption&&W&&Y.push(U.observe(S,function(){W()},p.prescanOption));
O.visibilityMonitorKeys=Y}};
sBe=function(S,p){S=WX(S);if(S.visualElement&&!p)return!0;if(!p)return!1;var U=!1;if(_.y("enable_client_ve_spec_logging")){var Y,L;U=!!((Y=p.loggingDirectives)==null?0:(L=Y.clientVeSpec)==null?0:L.uiType)}Y=emq(p);if(!Y&&!U)return!1;_.y("mweb_component_visibility_logging")&&(S.veContainer||(S.veContainer={}),S.veContainer.trackingParams=Y);if(S.trackedParams&&S.trackedParams===Y)return!1;var I;if(_.y("enable_client_ve_spec_logging")&&((I=S.visualElement)==null?0:I.isClientVe())){var V;I=(V=S.visualElement)==
null?void 0:V.getAsJspb();var W,O,D,z;if(_.YY(I,2)===((W=p.loggingDirectives)==null?void 0:(O=W.clientVeSpec)==null?void 0:O.uiType)&&_.YY(I,3,-1)===((D=p.loggingDirectives)==null?void 0:(z=D.clientVeSpec)==null?void 0:z.elementIndex))return!1}if(_.y("enable_client_ve_spec_logging")){var Q,J;!S.visualElement&&((Q=p.loggingDirectives)==null?0:(J=Q.clientVeSpec)==null?0:J.uiType)&&(W=p.loggingDirectives.clientVeSpec,p=W.uiType,V=W.elementIndex,W=W.clientYoutubeData,S.visualElement=_.kX(_.HX(),{veType:p,
elementIndex:V,clientYouTubeData:W}))}return!0};
emq=function(S){if(S==null?0:S.rendererContext){var p=_.b(S.rendererContext,_.D$);if(p==null?0:p.loggingDirectives)return p.loggingDirectives.trackingParams}return(S==null?0:S.loggingDirectives)?S.loggingDirectives.trackingParams:S==null?void 0:S.trackingParams};
WX=function(S){var p;return(p=S.polymerController)!=null?p:S};
fMw=function(S){_.OW();if(_.lb(ze().JSC$10465_elementShouldLogGesture).bind(ze())(S,4)){wyE(S);var p=lMw(S);aMw.set(S,p)}};
wyE=function(S){aMw.has(S)&&(aMw.get(S).cancel("untrack hover element"),aMw.delete(S))};
lMw=function(S){var p,U=[],Y=!1,L=new _.O9(function(I,V){QO(S,"mouseenter",_.lb(function(){var W,O,D;return _.T(function(z){if(z.nextAddress==1)return p=(0,_.AI)(),W=C8G(S),U.push(W),O=xrr(S,function(){Y=!0;V(Error("Ug"))}),_.k(z,W,2);
if(z.nextAddress!=3)return O&&nz(O),D=E_w(S),U.push(D),_.k(z,D,3);I();_.OV(z)})}))});
L.then(function(){var I=(0,_.AI)()-p;I=Math.round(I);if(!(500>I||6E5<=I)){var V=S.getScreenLayer?S.getScreenLayer():void 0;V=_.X$(V)||"";var W=mrw(_.OW(),S);_.Eh(V,S.visualElement?S.visualElement:_.JS(W),"INTERACTION_LOGGING_GESTURE_TYPE_HOVER",{hoverData:{durationHoveredMs:I}})}fMw(S)},function(){yO&&(yO(),yO=null);
Y&&(wyE(S),fMw(S))});
return L};
C8G=function(S){var p;return(new _.O9(function(U,Y){yO=function(){Y(Error("Vg"))};
p=_.PA.debounce(_.lb(function(){nz(L);U()}),1,100);
var L=_.Kz(S,"mousemove",p)})).thenCatch(function(){var U=_.PA.cancelDebouncedJobMap.get(p);
U&&_.PA.cancelJob(U)})};
E_w=function(S){var p;return(new _.O9(function(U,Y){yO=function(){Y(Error("Wg"))};
p=QO(S,"mouseleave",_.lb(function(){U()}))})).thenCatch(function(){nz(p)})};
xrr=function(S,p){return QO(S,"mouseleave",_.lb(p))};
v_w=function(S){o_E&&_.bT.cancel(o_E);o_E=_.bT.run(function(){_.cv(S,"yt-visibility-refresh");o_E=0})};
$rd=function(S){S=Number(S);return"rgba("+[S>>16&255,S>>8&255,S&255,(S>>24&255)/255].join()+")"};
N$X=function(S){if(!S)return!1;if(_.b(S,_.iPq))return!0;var p;if(S=(p=_.b(S,_.I2))==null?void 0:p.commands)for(p=_.d(S),S=p.next();!S.done;S=p.next())if(_.b(S.value,_.iPq))return!0;return!1};
B$e=function(S){var p=!0;p=p===void 0?!0:p;if(!S.useSignals&&!S.experimentalPropertiesChanged||_.y("experimental_templating_behavior_nopatch_killswitch")){var U=S._propertiesChanged;S._propertiesChanged=function(Y,L,I){p?S.debounceRender():S.doRender();U&&U.call(S,Y,L,I)}}};
q6e=function(S,p){if(S.useSignals||S.experimentalPropertiesChanged)if(_.y("experimental_templating_behavior_nopatch_killswitch"))S.experimentalPropertiesChanged=function(){};
else return;var U=new Set,Y=[S].concat(_.jo(S.behaviors));Y=_.d(Y);for(var L=Y.next();!L.done;L=Y.next()){L=L.value;for(var I in L.properties)U.has(I)||(S._addPropertyEffect(I,"function",p),U.add(I))}};
ARd=function(){var S=Polymer.Element,p=S._prepareTemplate;S._prepareTemplate=function(){p.call(this);var U=this.prototype;if(U.experimentalTemplatingInUse&&U.experimentalTemplatingInUse()&&U.switchTemplateAtRegistration&&this.template!==void 0)if(typeof this.template==="string")_.ZP(Error("Xg"));else{U=this.template.content.childNodes;for(var Y=U.length-1;Y>=0;Y--){var L=U[Y];L.nodeName!=="STYLE"&&L.nodeName!=="LINK"&&L.nodeName!=="SCRIPT"&&L.nodeName!=="#comment"&&L.remove()}}}};
t7q=function(S){var p=!0;p=p===void 0?!0:p;ARd();var U=S.ready;S.ready=function(){this._template=null;U.call(this)};
q6e(S,p?S.debounceRender:S.doRender)};
SMq=function(S,p,U){if(U===null||U===void 0)return U;var Y=Ofr(S.tagName.toLowerCase(),p,function(){throw Error("Qb");});
if(Y===null)return U;Y=cRG[Y];var L;if((L=Y.isUnwrappable)==null?0:L.call(Y,U)){if(Y.unwrap)return Y.unwrap(U);throw Error("$g");}return Y.filterString?Y.filterString(S.tagName,p,String(U)):U};
pxG=function(S,p,U){var Y=p[p.length-1]!=="$",L=SMq(S,p,U);if(Y)if(typeof L==="function"&&p.startsWith("reactiveon")&&p===p.toLowerCase()){var I=AY;bfe(S,p.slice(8),function(V){sI(I,function(){L(V)})})}else S[p]=L;
else U=L==null?null:String(L),KjG(S,p.slice(0,-1),U)};
rx=function(S){UkN.length===0&&requestAnimationFrame(function(){setTimeout(function(){var p=UkN.slice();UkN.length=0;p=_.d(p);for(var U=p.next();!U.done;U=p.next()){U=U.value;try{U()}catch(Y){_.jV(Y)}}})});
UkN.push(S)};
YMe=function(S){if(S){var p=S.component;if(p){var U;p==null||(U=p.events)==null||U.publish("DISCONNECTED");var Y;p==null||(Y=p.onDisconnected)==null||Y.call(p)}var L,I;(L=S.__spec)==null||(I=L.didUnmount)==null||I.call(L);for(p=0;p<S.childNodes.length;p++)YMe(S.childNodes[p])}};
hS=function(S,p,U){var Y=p&&p.key,L=vz;L[0]=S;L[1]=Y;L[2]=void 0;for(var I in p)p.hasOwnProperty(I)&&(S=p[I],Y=Bz,Y.push(I),Y.push(S));p=vz;a:{if(I=vz[2])for(S=0;S<I.length;S+=2)if(I[S]==="nonce"){I=I[S+1];break a}I=""}I=uyG(p[0],p[1],I);S=wd(I);Y=p[2];if(!S.staticsApplied&&(S.staticsApplied=!0,Y&&Y.length))if((L=S._attrsArr)&&L.length){for(L=0;L<Y.length;L+=2)Ge[Y[L]]=L+1;L=S._attrsArr||(S._attrsArr=yER(0));for(var V=0,W=0;W<L.length;W+=2){var O=L[W],D=L[W+1],z=Ge[O];z?Y[z]===D&&delete Ge[O]:(L[V]=
O,L[V+1]=D,V+=2)}gd(L,V);for(var Q in Ge)RCw(I,Q,Y[Ge[Q]],BH),delete Ge[Q]}else for(Q=0;Q<Y.length;Q+=2)RCw(I,Y[Q],Y[Q+1],BH);E7u(I,S,BH);gd(p,0);U&&U(lo);wAG()};
Luw=function(S){var p=S.toString().toLowerCase();return function(U,Y){hS(p,U,Y)}};
_.Rf=function(S,p,U){U===void 0?delete S[p.name]:S[p.name]=U};
_.Fi=function(S){var p={androidIncludeFontPadding:!1},U=0,Y=[],L=[],I=[];if(S.simpleText)return p.content=S.simpleText,p;if(S.runs===void 0)return p.content="",p;S=_.d(S.runs);for(var V=S.next();!V.done;V=S.next()){V=V.value;var W=V.text,O=void 0,D=(O=W)==null?void 0:O.length;if(W&&D){Y.push(W);if(V.bold||V.italics||V.strikethrough||V.underline||V.textColor!=null&&V.textColor!==0||V.deemphasize){W=L;O=W.push;var z={startIndex:U,length:D};V.bold&&(z.weightLabel="FONT_WEIGHT_MEDIUM");V.italics&&(z.italic=
!0);V.strikethrough&&(z.strikethrough="LINE_STYLE_SINGLE");V.underline&&(z.underline="LINE_STYLE_SINGLE");V.textColor!=null&&V.textColor!==0?document.documentElement.hasAttribute("dark")?z.fontColor=V.darkModeTextColor||V.textColor:z.fontColor=V.textColor:V.deemphasize&&(document.documentElement.hasAttribute("dark")?z.fontColor=parseInt("ff"+Mxq("#aaa").substring(1),16):z.fontColor=parseInt("ff"+Mxq("#606060").substring(1),16));O.call(W,z)}V.navigationEndpoint&&(W=I,O=W.push,z={startIndex:U,length:D,
onTap:{innertubeCommand:V.navigationEndpoint}},V.loggingDirectives&&_.Rf(z,IBG,V.loggingDirectives),O.call(W,z));U+=D}}p.content=Y.join("");p.styleRuns=L.length?L:void 0;p.commandRuns=I.length?I:void 0;return p};
VxG=function(S){if(S==null||!S.runs)return!0;S=_.d(S.runs);for(var p=S.next();!p.done;p=S.next())if(p=p.value,p.bracket||p.errorUnderline||p.deemphasize||_.b(p,Xi)||_.b(p,dkr))return!1;return!0};
TJG=function(S,p){return function(U){var Y=p.unit;if(Y!==U)throw Error("ch`"+S+"`"+Y+"`"+U);return p}};
PX=function(S){if(!((S==null?0:S.value)&&(S==null?0:S.unit)))return"";switch(S.unit){case "DIMENSION_UNIT_FRACTION":var p="%";break;default:p="px"}S=S.value;p==="%"&&(S*=100);return""+S+p};
Wuk=function(S){try{return S()}catch(p){_.eP(p)}};
_.sW=function(S){var p=_.b(S,_.Z$);if(p)return p;if((p=_.b(S,OIw))&&p.commands)return kKe(p.commands);if((p=_.b(S,HIq))&&p.commands)return kKe(p.commands);if((S=_.b(S,Dkk))&&S.identifier&&S.command&&(zSR||(zSR=[]),!zSR.includes(S.identifier)))return zSR.push(S.identifier),_.b(S.command,_.Z$)};
kKe=function(S){if(S.length!==0){var p=[];S=_.d(S);for(var U=S.next();!U.done;U=S.next())(U=_.sW(U.value))&&p.push(U);return{commandExecutorCommand:{commands:p}}}};
_.gx=function(S){var p=S.defaultTarget,U=S.elementConfig,Y=S.elementsCommand,L=S.skipOnClick,I=S.forceNewState,V=S.additionalCommandArgs,W=S.innertubeCommand||_.sW(Y);if(W){S={};var O=QJX(W);Y=O.navigatingCommand;O=O.href;Y&&O?(S.href$=O,neq(S,Y,O,p),_.y("web_atagconfig_pointerdown")&&JLX(S,Y),I&&(S["force-new-state$"]=!0)):(S.role$="button",S.href$="javascript:void(0);");_.b(W,yLw)&&(S["aria-haspopup$"]=!0);L||(S.onclick=function(D){if(Kuw(D)){var z=Object.assign({},{form:{element:D.target,event:D}},
V);D.preventDefault();_.eV(W,z)}});
return Object.assign({},U,S)}};
bIw=function(S){if(S.length){if(S.length===1)return S[0];var p={};_.Rf(p,_.I2,{commands:S});return p}};
uT=function(S){return S&&S.href$!=="javascript:void(0);"};
QJX=function(S){var p,U=((p=_.b(S,_.I2))==null?void 0:p.commands)||[S];S=_.d(U);for(p=S.next();!p.done;p=S.next()){p=p.value;var Y=void 0,L=void 0;U=(L=_.b((Y=p)==null?void 0:Y.commandMetadata,_.NU))==null?void 0:L.url;_.y("web_remove_web_navigation_endpoint_data")||(Y=void 0,U=U||((Y=_.b(p,jJk))==null?void 0:Y.url));if(U&&U!=="/service_ajax"){if(Y=Q2(U,rLX))return S=_.DO(Y),{navigatingCommand:p,href:S};_.eP(new _.y7("AttributedString URL could not be sanitized",U))}}return{}};
Kuw=function(S){return S.button!==void 0?S.button===0&&!(S.shiftKey||S.altKey||S.metaKey||S.ctrlKey):!(S.shiftKey||S.altKey||S.metaKey||S.ctrlKey)};
neq=function(S,p,U,Y){U=!BQ(U);var L,I,V;if((L=_.b(p,_.kM))!=null&&L.nofollow||(I=_.b(p,_.E$))!=null&&I.nofollow||(V=_.b(p,_.Cv))!=null&&V.nofollow||U)S.rel$="nofollow";var W;p=((W=_.b(p,_.Cv))==null?void 0:W.target)==="TARGET_NEW_WINDOW"?"_blank":Y===void 0?"":Y;S.target$=p};
JLX=function(S,p){p.clickTrackingParams&&(S.params={itct:p.clickTrackingParams});S.onpointerdown=function(U){GKr(U)};
S._data=p};
hSw=function(S){(S.loggingUrls||[]).forEach(function(p){x7(p.baseUrl,p.attributionSrcMode)})};
RSu=function(S){S.currentTarget._data&&hSw(S.currentTarget._data)};
GKr=function(S){var p=S.currentTarget;S=Wuk(function(){return p.href});
var U=p.params;S&&_.$n(S,U||{},8,!0)};
Fud=function(S,p){if(p=_.b(p,_.Cv))(p==null?void 0:p.target)==="TARGET_NEW_WINDOW"&&(S.target="_blank"),p.nofollow&&(S.rel="nofollow")};
Xxr=function(S){S=_.b(S==null?void 0:S.commandMetadata,_.NU);return(S==null?0:S.url)?S.url:null};
_.wx=function(S,p){(S=_.sW(S))&&_.eV(S,p)};
_.eV=function(S,p){F$e(function(U){p?U.resolveCommand(S,p):U.resolveCommand(S)})};
eSw=function(S,p){var U=["yt-core-attributed-string__link"];p!=null&&p.noLinkColor||((p==null?0:p.isOverlay)?U.push("yt-core-attributed-string__link--overlay-call-to-action-color"):U.push("yt-core-attributed-string__link--call-to-action-color"),(p==null?0:p.linkInheritColor)&&U.push("yt-core-attributed-string--link-inherit-color"));U={className:U.join(" "),tabindex$:"0"};var Y=S.onTap||S.onLongPress;if(!Y)return U;var L=PWw(S);L&&(U["aria-label$"]=L);p=_.gx({elementsCommand:Y,elementConfig:U,skipOnClick:!(p==
null||!p.skipOnClick),forceNewState:!0});S.onLongPress&&(Y=new ZIk(function(){var I=_.sW(S.onLongPress);I&&_.tW().resolve(_.cQ).resolveCommand(I)}),p&&sJE(Y,p));
return p||U};
PWw=function(S){var p,U;return(p=S.onTapOptions)==null?void 0:(U=p.accessibilityInfo)==null?void 0:U.accessibilityLabel};
geE=function(S){var p=S;S<=16777215&&(p+=parseInt("ff000000",16));return _.ev(p)};
u6q=function(S){var p=S.isDarkTheme;var U=S.extension;S=S.runColor;var Y=void 0;if(U=U==null?void 0:U.colorMap){p=p?"USER_INTERFACE_THEME_DARK":"USER_INTERFACE_THEME_LIGHT";U=_.d(U);for(var L=U.next();!L.done;L=U.next())if(L=L.value,p===L.key){Y=L.value;break}}Y==null&&S&&(Y=S);if(Y)return geE(Y)};
lT=function(S){var p=S.config;var U=S.image;var Y=S.imageConfig;var L=S.imageWrapperConfig;var I=S.run;var V=S.tag;var W=S.textLength;var O=S.startIndex===void 0?0:S.startIndex;S=S.length;O===void 0&&(O=0);I={run:I,startIndex:O,endIndex:S!==void 0?O+S:W,tag:V};U&&(I.image=U);Y&&(I.imageConfig=Y);L&&(I.imageWrapperConfig=L);p&&(I.config=p);return I};
lBN=function(S,p){var U=[];U.push("yt-core-attributed-string");(p==null?0:p.className)&&U.push(p==null?void 0:p.className);(p==null?0:p.ellipsisTruncate)?U.push("yt-core-attributed-string--ellipsis-truncate"):(p==null?0:p.noWrap)?U.push("yt-core-attributed-string--white-space-no-wrap"):(p==null?0:p.noPreWrap)||U.push("yt-core-attributed-string--white-space-pre-wrap");(p==null?0:p.linkInheritColor)&&U.push("yt-core-attributed-string--link-inherit-color");S.alignment&&U.push(wxk(S.alignment));S.lineBreakMode&&
U.push("yt-core-attributed-string--word-wrapping");return U.join(" ")};
aBq=function(S){if(S.weight)return S.weight;switch(S.weightLabel){case "FONT_WEIGHT_THIN":return 100;case "FONT_WEIGHT_EXTRA_LIGHT":return 200;case "FONT_WEIGHT_LIGHT":return 300;case "FONT_WEIGHT_MEDIUM":return 500;case "FONT_WEIGHT_SEMI_BOLD":return 600;case "FONT_WEIGHT_BOLD":return 700;case "FONT_WEIGHT_EXTRA_BOLD":return 800;case "FONT_WEIGHT_BLACK":return 900;default:return 400}};
fBw=function(S){switch(S){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"}};
wxk=function(S){switch(S){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"}};
xkr=function(S,p,U){var Y=p;S.content&&U&&(U=S.content.indexOf("\n"),U!==-1&&(Y=Math.min(p,U)));if(!S.content||S.content.length<=Y)p=S;else if(S.attachmentRuns||S.commandRuns||S.decorationRuns||S.styleRuns||S.paragraphStyleRuns){p=af(S.content,Y);U=Y;var L=S.attachmentRuns;if(L){var I=[];L=_.d(L);for(var V=L.next();!V.done;V=L.next())V=Object.assign({},V.value),V.startIndex===void 0||V.startIndex>=U||(V.length||(V.length=0),V.length+V.startIndex>U&&(V.length=U-V.startIndex),I.push(V));U=I}else U=
void 0;I=CWe(Y,S.commandRuns);L=Y;var W=S.decorationRuns;if(W){V=[];W=_.d(W);for(var O=W.next();!O.done;O=W.next()){O=O.value;var D=_.b(O.textDecorator,fz);if(D&&D.startIndex!==void 0&&!(D.startIndex>=L)){O=Object.assign({},O,{textDecorator:{highlightTextDecorator:Object.assign({},D)}});D=_.b(O.textDecorator,fz);if(!D.length||D.length+D.startIndex>L)D.length=L-D.startIndex;V.push(O)}}L=V}else L=void 0;V=CWe(Y,S.styleRuns);if(W=S.paragraphStyleRuns)for(S=[],W=_.d(W),O=W.next();!O.done;O=W.next()){var z=
O.value;O=Object.assign({},z);if(!(O.startIndex===void 0||O.startIndex>=Y)){if(!O.length||O.length+O.startIndex>Y)O.length=Y-O.startIndex;D=[];var Q=void 0,J=void 0;if((Q=z)==null?0:(J=Q.listGroup)==null?0:J.listItems)for(z=_.d(z.listGroup.listItems),Q=z.next();!Q.done;Q=z.next())if(Q=Object.assign({},Q.value),!(Q.startIndex===void 0||Q.startIndex>=Y)){if(!Q.length||Q.length+Q.startIndex>Y)Q.length=Y-Q.startIndex;D.push(Q)}D.length>0&&(O.listGroup||(O.listGroup={}),O.listGroup=Object.assign({},O.listGroup,
{listItems:D}));S.push(O)}}else S=void 0;p={content:p,attachmentRuns:U,commandRuns:I,decorationRuns:L,styleRuns:V,paragraphStyleRuns:S}}else p=Object.assign({},S,{content:af(S.content,Y)});return p};
CWe=function(S,p){if(p){var U=[];p=_.d(p);for(var Y=p.next();!Y.done;Y=p.next())if(Y=Object.assign({},Y.value),!(Y.startIndex===void 0||Y.startIndex>=S)){if(!Y.length||Y.length+Y.startIndex>S)Y.length=S-Y.startIndex;U.push(Y)}return U}};
af=function(S,p){var U=p,Y;if(Y=U>0)Y=S.charCodeAt(U-1),Y=Y>=55296&&Y<=56319;Y&&(U=S.charCodeAt(U),Y=U>=56320&&U<=57343);Y&&--p;return S.substring(0,p)};
veG=function(S,p,U){U=U===void 0?Eee:U;if(S){var Y=_.tW().resolve(AU);Y||_.y("mweb_no_observer_killswitch")?uQE(S,{data:p,observer:Y,visibilityCallback:U,hideOption:mkE,showOption:oer,layer:S.layer}):_.eP(new _.y7("Warning: monitorVisibility called with null observer",S.tagName,p==null?void 0:p.loggingDirectives,p==null?void 0:p.trackingParams))}else _.eP(new _.y7("Warning: monitorVisibility called with null element",p==null?void 0:p.loggingDirectives,p==null?void 0:p.trackingParams,p==null?void 0:
p.rendererContext))};
txw=function(S,p){var U=[],Y=S.content.length,L,I=(L=_.tW().resolve(_.AW(_.Cz)))==null?void 0:L();if(S.paragraphStyleRuns){L=_.d(S.paragraphStyleRuns);for(var V=L.next();!V.done;V=L.next()){var W=U.push,O=W.apply;var D=void 0;V=V.value;if((D=V.listGroup)!=null&&D.listItems){D=[];b:switch(V.listGroup.listType){case "LIST_TYPE_BULLET":var z="ul";break b;default:z="span"}D.push(lT({run:V,textLength:Y,tag:z,config:{className:"yt-core-attributed-string__list-group"},startIndex:V.startIndex,length:V.length}));
z=_.d(V.listGroup.listItems);for(var Q=z.next();!Q.done;Q=z.next()){Q=Q.value;b:switch(V.listGroup.listType){case "LIST_TYPE_BULLET":var J="li";break b;default:J="span"}D.push(lT({run:V,textLength:Y,tag:J,startIndex:Q.startIndex,length:Q.length}))}V=D}else V=[];O.call(W,U,_.jo(V))}}if(S.styleRuns&&(p==null||!p.noStyleRuns))for(L=_.d(S.styleRuns),W=L.next();!W.done;W=L.next()){W=W.value;O=u6q({extension:_.b(W.styleRunExtensions,$kG),isDarkTheme:I===void 0?!1:I,runColor:W.fontColor});D=[];O&&D.push("yt-core-attributed-string--link-inherit-color");
W.italic&&D.push("yt-core-attributed-string--italicized");W.underline&&W.strikethrough?D.push("yt-core-attributed-string--underline-strikethrough",fBw(W.underline)):W.underline?D.push("yt-core-attributed-string--underlined",fBw(W.underline)):W.strikethrough&&D.push("yt-core-attributed-string--strikethrough",fBw(W.strikethrough));if(W.baselineOffset){a:switch(W.baselineOffset){case "BASELINE_OFFSET_SUBSCRIPT":V="yt-core-attributed-string--baseline-offset-subscript";break a;case "BASELINE_OFFSET_SUPERSCRIPT":V=
"yt-core-attributed-string--baseline-offset-superscript";break a;default:V="yt-core-attributed-string--baseline-offset-unknown"}D.push(V)}V=D.join(" ");D=W;z={};if(D.weight||D.weightLabel)z.fontWeight=aBq(D).toString();O&&(z.color=O);U.push(lT({run:W,textLength:Y,tag:"span",config:{className:V,style:z},startIndex:W.startIndex,length:W.length}))}if(S.decorationRuns)for(L=_.d(S.decorationRuns),W=L.next();!W.done;W=L.next())W=W.value,O={},W.textDecorator&&(z=W.textDecorator,V=I===void 0?!1:I,Q=[],D=
_.b(z,fz),z=_.b(z,iIr),D?(z=Q,Q=z.concat,J=[],(V=u6q({extension:_.b(D.highlightTextDecoratorExtensions,NJe),isDarkTheme:V,runColor:D.backgroundColor}))&&J.push("background-color: "+V+";"),D.backgroundCornerRadius!==void 0&&J.push("border-radius: "+D.backgroundCornerRadius+"px;"),D.leftPadding!==void 0&&J.push("padding-left: "+D.leftPadding+"px;"),D.rightPadding!==void 0&&J.push("padding-right: "+D.rightPadding+"px;"),D.topPadding!==void 0&&J.push("padding-top: "+D.topPadding+"px;"),D.bottomPadding!==
void 0&&J.push("padding-bottom: "+D.bottomPadding+"px;"),Q=Q.call(z,J)):z&&(D=Q,Q=D.concat,V=V?"#2ba640":"#107516",V=z.color?geE(z.color):V,V=["padding: 2px;","border-top: solid "+V+" 2px;","border-bottom: solid "+V+" 2px;","background: linear-gradient(135deg, "+V+" 3px, rgba(0, 0, 0, 0) 3px),\n      linear-gradient(315deg, "+V+" 3px, rgba(0, 0, 0, 0) 3px);"],Q=Q.call(D,V)),V=Q.join(" "),O.style$=V,V=W.textDecorator,D=[],z=_.b(V,iIr),_.b(V,fz)?D.push("yt-core-attributed-string--highlight-text-decorator"):
z&&D.push("yt-core-attributed-string--bracket-text-decorator"),V=D.join(" "),O.className=V,O.dir="auto"),V=_.b(W.textDecorator,fz),D=_.b(W.textDecorator,iIr),z=_.b(W.textDecorator,fz),Q=_.b(W.textDecorator,iIr),U.push(lT({run:W,textLength:Y,tag:"span",config:O,startIndex:(V==null?void 0:V.startIndex)||(D==null?void 0:D.startIndex)||0,length:(z==null?void 0:z.length)||(Q==null?void 0:Q.length)||0}));if(S.commandRuns&&(p==null||!p.noEndpoints))for(I=_.d(S.commandRuns),L=I.next();!L.done;L=I.next())L=
L.value,W=eSw(L,p),U.push(lT({run:L,textLength:Y,tag:"a",config:W,startIndex:L.startIndex,length:L.length}));if(S.attachmentRuns)for(S=_.d(S.attachmentRuns),I=S.next();!I.done;I=S.next()){I=I.value;O=W=void 0;L={className:"yt-core-attributed-string--inline-block-mod"};if((O=I.element)==null?0:O.properties){O=(W=I.element)==null?void 0:W.properties;W=[];O=_.b(O,BJr);if(O==null?0:O.margin)O=O.margin,O.left&&W.push("margin-left: "+PX(O.left)+";"),O.right&&W.push("margin-right: "+PX(O.right)+";"),O.top&&
W.push("margin-top: "+PX(O.top)+";"),O.bottom&&W.push("margin-bottom: "+PX(O.bottom)+";");W=W.length!==0?W.join(" "):void 0;L.style$=W}V=void 0;W={alt:"",preserveHeight:!0,preserveWidth:!0};O=["yt-core-attributed-string__image-element"];if(I.alignment){a:switch(I.alignment){case "ALIGNMENT_BASELINE":D="yt-core-attributed-string__image-element--image-alignment-baseline";break a;case "ALIGNMENT_VERTICAL_CENTER":D="yt-core-attributed-string__image-element--image-alignment-vertical-center";break a;default:D=
"yt-core-attributed-string__image-element--image-alignment-bottom"}O.push(D)}if((V=I.element)==null?0:V.properties)V=[],D=_.b(I.element.properties,BJr),(D==null?0:D.height)&&V.push("height: "+PX(D.height)+";"),(D==null?0:D.width)&&V.push("width: "+PX(D.width)+";"),V=V.length!==0?V.join(" "):void 0,W.style$=V,D=void 0,V=((D=_.b(I.element.properties,qMd))==null?void 0:D.label)||"",W.alt=V;W.className=O.join(" ");O=void 0;z=D=void 0;V=((z=I.element)==null?0:z.type)?(D=_.b(I.element.type,ALu))==null?
void 0:D.image:void 0;U.push(lT({run:I,textLength:Y,tag:"img",image:V,imageConfig:W,imageWrapperConfig:L,startIndex:I.startIndex,length:(O=I.length)!=null?O:0}))}if(p==null?0:p.headerRuns)for(p=_.d(p.headerRuns),S=p.next();!S.done;S=p.next())if(S=S.value,S.headerMapping&&["ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_1","ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_2","ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_3"].includes(S.headerMapping)){a:{switch(S.headerMapping){case "ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_1":I=
"yt-core-attributed-string--heading-1";break a;case "ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_2":I="yt-core-attributed-string--heading-2";break a;case "ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_3":I="yt-core-attributed-string--heading-3";break a}I=void 0}U.push(lT({run:S,textLength:Y,tag:"span",config:I?{className:I}:void 0,startIndex:S.startIndex,length:S.length}))}return U};
_.xX=function(S){return(S==null?void 0:S.content)!==void 0};
cLG=function(S){return _.xX(S)?S:_.Fi(S)};
Snw=function(S){return S.image!==void 0&&S.imageConfig!==void 0};
p8X=function(S,p){if(p==null?0:p.userInput)for(S=_.d(S),p=S.next();!p.done;p=S.next())if(p=p.value,p.tag!=="a"&&p.tag!=="li"){var U=void 0;(U=p).config||(U.config={});p.config.dir=p.tag==="ul"?_.tW().resolve(_.EW):"auto"}};
UgR=function(S){return function(p){var U=S.run;(U.onTap!==void 0||U.onLongPress!==void 0)&&_.b(U,IBG)&&veG(p,{loggingDirectives:_.b(U,IBG)})}};
Ynd=function(S){return function(p){for(var U in S)(BH[U]||BH[uo["default"]])(p,U,S[U])}};
dgX=function(S,p){Lvd(p);var U={data:null,start:0,end:S.length,parts:[]};p=_.d(p);for(var Y=p.next();!Y.done;Y=p.next())Y=Y.value,Mye(U,Y.startIndex,Y.endIndex,Y);IVX(S,U);return U};
Mye=function(S,p,U,Y){for(var L=_.d(S.parts),I=L.next();!I.done;I=L.next()){I=I.value;if(typeof I==="string")throw Error("eh");if(I.start<=p&&U<=I.end){Mye(I,p,U,Y);return}}S.parts.push({data:Y,parts:[],start:p,end:U})};
IVX=function(S,p){for(var U=p.parts.length;U>=0;U--){var Y=p.parts[U],L=p.parts[U-1],I=U===p.parts.length?p.end:Y.start;L=U===0?p.start:L.end;I!==L&&p.parts.splice(U,0,S.slice(L,I));Y&&IVX(S,Y)}};
Lvd=function(S){S.sort(function(p,U){if(p.startIndex<U.startIndex)return-1;if(U.startIndex<p.startIndex)return 1;p=p.endIndex-p.startIndex;U=U.endIndex-U.startIndex;return p>U?-1:U>p?1:0})};
_.Vyw=function(S){var p=S.thumbnails;if(p){S={sources:[]};p=_.d(p);for(var U=p.next();!U.done;U=p.next()){U=U.value;var Y={};Y.url=U.url;Y.width=U.width;Y.height=U.height;S.sources.push(Y)}return S}};
Tqk=function(S,p,U,Y){if(!p)return S.length>=1?S[S.length-1]:null;if(Y)for(var L=_.d(S),I=L.next();!I.done;I=L.next()){I=I.value;var V=void 0,W=(V=I.url)==null?void 0:V.indexOf(Y);if(W!==void 0&&W>=0)return I}Y=_.d(S);for(L=Y.next();!L.done;L=Y.next())if(L=L.value,L.width&&L.height&&(U&&L.width>=p||!U&&L.height>=p))return L;for(p=S.length-1;p>=0;p--)if(U&&S[p].width||!U&&S[p].height)return S[p];return S[0]};
_.WvN=function(S){var p;return(S=(p=S.sources)==null?void 0:p[0])?S.width/S.height:0};
_.Obw=function(S){if(S.sources){S=_.d(S.sources);for(var p=S.next();!p.done;p=S.next()){p=p.value;var U=void 0;if((U=p.clientResource)==null?0:U.imageName)return p}}};
kPN=function(S){var p;if((p=S.clientResource)!=null&&p.imageColor)return _.ev(S.clientResource.imageColor)};
_.Dgu=function(S,p,U,Y,L,I,V){if(!p||p.length===0||p[0].clientResource)return null;if(U&&p[0].url)return p[0].url;Y===void 0&&(Y=!0);if(Y){var W;S=Hbq*(L||(S==null?void 0:(W=S.getBoundingClientRect())==null?void 0:W.width)||0)}else{var O;S=Hbq*(I||(S==null?void 0:(O=S.getBoundingClientRect())==null?void 0:O.height)||0)}p=Tqk(p,S,Y,V);return(p==null?0:p.url)?p.url:(p==null?0:p.imageData)?p.imageData:null};
z4X=function(S,p,U){U=U?[U]:[];S.opacity&&U.push("opacity: "+S.opacity+";");p&&S.placeholderColor?(S=_.ev(S.placeholderColor),U.push("background-color: "+S+";")):U.push("background-color: transparent;");return U.join(" ")};
QIq=function(S,p,U,Y,L){var I=["yt-core-image"];p&&I.push(p);U||I.push("yt-core-image--fill-parent-height");Y||I.push("yt-core-image--fill-parent-width");switch(S.contentMode){case "CONTENT_MODE_SCALE_ASPECT_FIT":I.push("yt-core-image--content-mode-scale-aspect-fit");break;case "CONTENT_MODE_SCALE_ASPECT_FILL":I.push("yt-core-image--content-mode-scale-aspect-fill");break;case "CONTENT_MODE_CENTER":I.push("yt-core-image--content-mode-center");break;default:I.push("yt-core-image--content-mode-scale-to-fill")}S.flipForRtlLayout&&
I.push("yt-core-image--flip-rtl");switch(L){case "TOP_START":var V;I.push(((V=document.body)==null?void 0:V.getAttribute("dir"))==="rtl"?"yt-core-image--object-position-top-right":"yt-core-image--object-position-top-left")}return I.join(" ")};
J5G=function(S){var p;if(S==null?0:(p=S.clientResource)==null?0:p.imageName){var U;S=(U=S.clientResource)==null?void 0:U.imageName;a:{switch(S){case "yt_premium_wordmark_header_light":case "yt_premium_wordmark_header_dark":U="yt-logos-ext:yt-logo-red-updated";break a;case "yt_wordmark_header_light":case "yt_wordmark_header_dark":U="yt-logos-ext:yt-logo-updated";break a}U=void 0}return U||nhw.get(S)||S}};
bbk=function(S){return _.y("mweb_wiz_skip_render")?y5r(S):Kve(S)};
y5r=function(S){return function(p){var U=uyG("wink-root");o8();wAG();qWw(U,_.H(S,p))}};
Kve=function(S){var p=p===void 0?!1:p;return function(U){if(!p||!_.y("mweb_skip_keto_to_c3_if_no_data")||U.data!==void 0){var Y=Ys(!1);try{var L=U.children;_.y("mweb_render_outside_patch_killswitch")||lo?L?NW(_.H(S,U,L)):NW(_.H(S,U)):_.eP(new _.y7("ketoToC3 called outside of a patch",{tagName:S.TAG_NAME}))}finally{Ys(Y)}}}};
jIw=function(){return window.matchMedia&&window.matchMedia("(orientation: landscape)").matches};
GPd=function(S,p){S.onViewportEntered=p;r5e.observe(S)};
h4w=function(){var S={rootMargin:"10%",threshold:.01};_.y("mweb_enable_set_io_root_to_null_safari")?S.root=null:_.y("mweb_enable_set_io_root_to_body_safari")&&(S.root=document.body);return new IntersectionObserver(function(p,U){p.filter(function(Y){return Y.intersectionRect.height>0}).forEach(function(Y){Y=Y.target;
if(!_.y("mweb_enable_only_update_image_when_connected")||Y.isConnected!==!1){var L;(L=Y.onViewportEntered)==null||L.call(Y);U.unobserve(Y)}})},S)};
R4G=function(S,p,U,Y,L){function I(){if(Y){var W=Y.loadedClass,O=Y.notifyOnUnloaded;W&&_.ms(S,W);O&&S.dispatchEvent(new Event("image-unloaded",{bubbles:!0,composed:!0}))}}
function V(){var W=U(p,S);W&&S.getAttribute("src")!==W&&(_.y("mweb_enable_only_update_image_when_connected")&&S.isConnected===!1||W===S.src||(S.src=W),I())}
L=L===void 0?!0:L;S.removeAttribute("src");I();p&&(L?GPd(S,V):V())};
Fve=function(S,p,U){if(!p)return!1;p=U(p,S);U=S.getAttribute("src");return p&&p===U&&S.complete};
X8R=function(S,p){for(var U in p)U==="className"?S.className=p[U]:(BH[U]||BH[uo.default])(S,U,p[U])};
PFE=function(S,p,U,Y){bbk(_.of)({contentMode:p.contentMode,loadedClass:p.loadedClass,isPreloaded:p.isPreloaded,notifyOnLoaded:p.notifyOnLoaded,notifyOnUnloaded:p.notifyOnUnloaded,preferredThumbnail:p.preferredThumbnail,preserveHeight:p.preserveHeight,preserveWidth:p.preserveWidth,objectPosition:p.objectPosition,targetWidth:p.targetWidth,targetHeight:p.targetHeight,shouldShowPlaceholder:p.shouldShowPlaceholder,useWidth:p.useWidth,alt:p.alt,className:p.className,onerror:p.onerror,onload:p.onload,style$:p.style$,
color:p.color,width:p.width,height:p.height,"aria-hidden$":p["aria-hidden$"],draggable:p.draggable,"data-disabled$":p["data-disabled$"],data:S,callback:U,renderLazy:Y===void 0?!0:Y,hideOn404:!1})};
sId=function(S,p,U){U=U===void 0?!1:U;var Y=S.sources!==void 0?S:_.Vyw(S);if(Y){var L=p.onload;p.onload=function(O){var D=O.target;U&&D.naturalWidth===120||_.vX(D,"yt-core-image--loaded");p.notifyOnLoaded&&D.dispatchEvent(new Event("image-loaded",{bubbles:!0,composed:!0}));L==null||L(O)};
p.targetWidth&&p.preserveWidth&&(p.width=p.targetWidth);p.targetHeight&&p.preserveHeight&&(p.height=p.targetHeight);var I=_.Obw(Y),V=I&&J5G(I);if(V)return(S=kPN(I))&&(p.color=S),{type:"icon",iconName:V,config:Object.assign({},p,p.alt?{}:{"aria-hidden$":"true"},{"aria-label$":p.alt,role:"img"})};if(S.sources===void 0){p.alt=S.accessibility&&S.accessibility.accessibilityData&&S.accessibility.accessibilityData.label||p.alt;p.style$=z4X(S,p.shouldShowPlaceholder,p.style$);var W;p.isPreloaded=!((W=_.b(S,
ZbE))==null||!W.isPreloaded)}p.contentMode&&!Y.contentMode&&(Y.contentMode=p.contentMode);p.className=QIq(Y,p.className,p.preserveHeight,p.preserveWidth,p.objectPosition);p.loadedClass="yt-core-image--loaded";return{type:"image",image:Y,config:p}}};
_.$X=function(){var S=_.jO.apply(0,arguments);return _.$v(function(p){var U=S.map(function(Y){return Y(p)});
return function(){return void U.forEach(function(Y){return void(Y==null?void 0:Y())})}})};
iT=function(S,p){var U=p==null?void 0:p.initial;return _.nS(function(){_.Pz(!0);return U=S(U)},{equals:p==null?void 0:p.isEqual},"rSlKsc")};
e4X=function(S,p){if(S===p)return!0;if(S===void 0||p===void 0)return!1;var U,Y,L,I,V,W,O,D;return S.content===p.content&&((U=S.styleRuns)==null?void 0:U.length)===((Y=p.styleRuns)==null?void 0:Y.length)&&((L=S.commandRuns)==null?void 0:L.length)===((I=p.commandRuns)==null?void 0:I.length)&&((V=S.attachmentRuns)==null?void 0:V.length)===((W=p.attachmentRuns)==null?void 0:W.length)&&((O=S.decorationRuns)==null?void 0:O.length)===((D=p.decorationRuns)==null?void 0:D.length)};
w8u=function(S,p){if(S){var U=cLG(S);if(U!=null&&U.content)if(_.y("attr_string_reactive"))bbk(ghk)({text:S,config:p});else{var Y=!(p==null||!p.ariaLabel)||!(U.commandRuns&&U.commandRuns.length!==0||U.paragraphStyleRuns&&U.paragraphStyleRuns.length!==0);S=Y?p==null?void 0:p.ariaLabel:null;Y=Y?"text":null;hS("span",{className:lBN(U,p),dir$:(p==null?0:p.userInput)?"auto":void 0,"aria-label$":S,role$:Y},function(){if(U.styleRuns||U.commandRuns||U.attachmentRuns||U.decorationRuns){var L=txw(U,p);p8X(L,
p);L=dgX(U.content,L);L=_.d(L.parts);for(var I=L.next();!I.done;I=L.next())uYe(I.value)}else cz(U.content)})}}};
uYe=function(S){typeof S==="string"?cz(S):Snw(S.data)?hS("span",S.data.imageWrapperConfig,function(){PFE(S.data.image,S.data.imageConfig)}):hS(S.data.tag,S.data.config,function(p){UgR(S.data)(p);
p=_.d(S.parts);for(var U=p.next();!U.done;U=p.next())uYe(U.value)})};
aVd=function(S){return S.parts.map(lVX)};
lVX=function(S){if(typeof S==="string")return S;S=Snw(S.data)?_.H("span",{el:_.$X(Ynd(S.data.imageWrapperConfig))},_.H(_.of,Object.assign({},{data:S.data.image},S.data.imageConfig))):_.H(S.data.tag,{el:_.$X(UgR(S.data),Ynd(S.data.config))},S.parts.map(lVX));return HQ(S)};
fVd=function(S,p){return S===p?!0:S===void 0||p===void 0?!1:S.noStyleRuns===p.noStyleRuns&&S.noLinkColor===p.noLinkColor&&S.noEndpoints===p.noEndpoints&&S.headerRuns===p.headerRuns&&S.isOverlay===p.isOverlay&&S.linkInheritColor===p.linkInheritColor&&S.userInput===p.userInput};
CFk=function(S){return function(){var p,U,Y,L,I,V,W,O,D,z,Q,J,K,G;return{ariaLabel:(p=S.ariaLabel)==null?void 0:p.call(S),className:(U=S.className)==null?void 0:U.call(S),ellipsisTruncate:(Y=S.ellipsisTruncate)==null?void 0:Y.call(S),isOverlay:(L=S.isOverlay)==null?void 0:L.call(S),linkInheritColor:(I=S.linkInheritColor)==null?void 0:I.call(S),noEndpoints:(V=S.noEndpoints)==null?void 0:V.call(S),noStyleRuns:(W=S.noStyleRuns)==null?void 0:W.call(S),noLinkColor:(O=S.noLinkColor)==null?void 0:O.call(S),
noPreWrap:(D=S.noPreWrap)==null?void 0:D.call(S),noWrap:(z=S.noWrap)==null?void 0:z.call(S),skipOnClick:(Q=S.skipOnClick)==null?void 0:Q.call(S),stopPropagation:(J=S.stopPropagation)==null?void 0:J.call(S),userInput:(K=S.userInput)==null?void 0:K.call(S),headerRuns:(G=S.headerRuns)==null?void 0:G.call(S)}}};
xgk=function(S){return S.value===""||S.value==="true"?!0:S.value==="false"?!1:isNaN(Number(S.value))?S.value:Number(S.value)};
Nm=function(S,p){S=new Ehd(S,p);_.ZP(S);throw S;};
mgE=function(S,p,U){var Y=Agu(S);S._numRenders=0;try{var L=Qyw(function(){return _.H(p,Object.assign({},U))})}catch(V){var I=function(W){W.args||(W.args=[]);
W.args.push("Error in web component wrapper");W.args.push(S.tagName.toLowerCase());return W};
_.s9(V instanceof Error?I(V):new Ehd("Wiz rendering error",S.tagName.toLowerCase()));throw V;}finally{Agu(Y)}return L};
_.qm=function(S,p,U){function Y(z){var Q={};z=_.d(z);for(var J=z.next();!J.done;J=z.next()){J=J.value;var K=void 0,G=void 0,X=void 0,Z=_.kn((X=(G=(K=J).getAttribute)==null?void 0:G.call(K,"slot"))!=null?X:"children");if(K=Q[Z])K.push(J);else if(Z in I||Z==="children")Q[Z]=[J]}z=_.d(Object.keys(Q));Z=z.next();for(J={};!Z.done;J={content$jscomp$55:void 0},Z=z.next())Z=Z.value,Z!=="children"&&(J.content$jscomp$55=Q[Z],Q[Z]=function(l){return function(){return l.content$jscomp$55}}(J));
return Q}
U=U===void 0?{}:U;S.componentType!==jk||Nm("Components must be marked reactive to be used from web component wrapper.",p);cT.has(p)&&Nm("Do not register a Wiz component to be rendered with boththe deprecated wrapper and the signals based wrapper.",p);var L,I=(L=U.props)!=null?L:{};SV.add(p);var V=ohG();L=function(){var z=V.apply(this,arguments)||this;z.rawProps={};z.queuingRender=!1;z.dispose=function(){};
z.isWebComponentWrapper=!0;z.isReparenting=!1;z.hasRendered=!1;return z};
_.r(L,V);L.prototype.render=function(){this.hasRendered=!0;for(var z=_.d([].concat(_.jo(this.attributes))),Q=z.next();!Q.done;Q=z.next())Q=Q.value,Q.name!=="slot"&&this.removeAttribute(Q.name);z=Object.assign({},this.componentProps,this.slotProps);Q=_.d(mgE(this,S,z));z=Q.next().value;Q=Q.next().value;!(z[0]instanceof Element)||z.length>1?Nm("Wrapped Wiz components must return a single root element.",p):(z=z[0].tagName.toLowerCase(),z!==p&&Nm("Wrapped Wiz components must have the same host tag name as the web component. Expected tag '"+
(z+" !== '"+p),p),this.dispose=Q)};
L.prototype.setUpProps=function(){for(var z=this.rawProps,Q=this.attributes,J=_.d(Object.keys(I)),K=J.next();!K.done;K=J.next()){K=K.value;var G=void 0;((G=this)==null?0:G[K])&&this[K]!==vhG&&z[K]===void 0&&(z[K]=this[K],(G=Object.getOwnPropertyDescriptor(this.constructor.prototype,K))&&Object.defineProperty(this,K,G))}J=_.d(Q);for(K=J.next();!K.done;K=J.next()){G=K.value;K=_.kn(G.name);var X=K==="class"&&!Q.getNamedItem("class-name");if(K in I||X)G=xgk(G),K!=="class"||z.className?z[K]=G:z.className=
G}Q={};for(var Z in I)I[Z]!==_.BX&&I[Z]!==$gu&&(z[Z]instanceof Function&&Nm("Function props must be configured as STATIC, not SIGNAL.",p),K=_.d(_.kj(z[Z],void 0,"Ri8MSe")),J=K.next().value,K=K.next().value,Q[Z]=K,z[Z]=J);z=_.d([z,Q]);this.componentProps=z.next().value;this.setters=z.next().value;this.slotProps=Y(this.childNodes)};
L.prototype.connectedCallback=function(){AF===p&&(this._isInert=!0);this._isInert||(this.isReparenting?this.isReparenting=!1:(this.queuingRender="data"in I&&!this.rawProps.data&&!this.getAttribute("data"),this.hasRendered||this.queuingRender||this.setUpProps(),this.queuingRender||this.render()))};
L.prototype.disconnectedCallback=function(){if(!this._isInert){var z;a:{if(_.ibw)for(z=this;z;){if(_.Nqu.has(z)){z=!0;break a}z=z.parentElement}z=!1}if(z)this.isReparenting=!0;else{this.dispose();if(!this.queuingRender){z=_.d([].concat(_.jo(this.attributes)));for(var Q=z.next();!Q.done;Q=z.next())Q=Q.value,Q.name!=="slot"&&this.removeAttribute(Q.name)}this.innerText="";oPw(this)}}};
L.prototype._setPendingPropertyOrPath=function(){};
L.prototype.notifyPath=function(){};
_.$u.Object.defineProperties(L.prototype,{__isPropertyEffectsClient:{configurable:!0,enumerable:!0,get:function(){return!1}},
__dataHasAccessor:{configurable:!0,enumerable:!0,get:function(){}}});
for(var W=_.d(Object.keys(I)),O=W.next(),D={};!O.done;D={prop$jscomp$104:void 0},O=W.next())D.prop$jscomp$104=O.value,O=void 0,((O=U.legacyPolymer)==null?0:O.forwardHostProps)&&CqE.has(D.prop$jscomp$104)||Object.defineProperty(L.prototype,D.prop$jscomp$104,{set:function(z){return function(Q){var J=this;this._isInert||(this.setters?Jy(function(){var K,G;return void((G=(K=J.setters)[z.prop$jscomp$104])==null?void 0:G.call(K,Q))}):(this.rawProps[z.prop$jscomp$104]=Q,this.queuingRender&&z.prop$jscomp$104===
"data"&&Q!=null&&(this.queuingRender=!1,this.setUpProps(),this.render())))}}(D),
get:BqN.has(D.prop$jscomp$104)?void 0:function(){return vhG}});
customElements.define(p,L)};
_.qne=function(S,p){return(S=_.AS(S,p))?_.DO(_.JA(S)):null};
_.tS=function(S){if(S=_.AS(S,Number.MAX_VALUE,void 0,"width"))return _.JA(S)};
_.AS=function(S,p,U,Y){Y=Y===void 0?"width":Y;if(!S||!S.length)return null;if(_.y("kevlar_tuner_should_always_use_device_pixel_ratio")){var L=window.devicePixelRatio;_.y("kevlar_tuner_should_clamp_device_pixel_ratio")?L=Math.min(L,_.pA("kevlar_tuner_clamp_device_pixel_ratio")):_.y("kevlar_tuner_should_use_thumbnail_factor")&&(L=_.pA("kevlar_tuner_thumbnail_factor"));A5e=L}else A5e||(A5e=window.devicePixelRatio);L=A5e;_.y("kevlar_tuner_should_always_use_device_pixel_ratio")?p*=L:L>1&&(p*=L);if(_.y("kevlar_tuner_min_thumbnail_quality"))return S[0].url||
null;L=S.length;if(_.y("kevlar_tuner_max_thumbnail_quality"))return S[L-1].url||null;if(U)for(var I=0;I<L;I++)if(S[I].url.indexOf(U)>=0)return S[I].url||null;for(U=0;U<L;U++)if(S[U][Y]>=p)return S[U].url||null;for(p=L-1;p>0;p--)if(S[p][Y])return S[p].url||null;return S[0].url||null};
SYX=function(){cX.size?setTimeout(function(){SM(tyR)},0):c5k=0};
tyR=function(){var S=(0,_.AI)(),p=null,U=!1;cX.forEach(function(L){L.loaded=!0;L.loadTime=S;L.pendingPaint=!1;var I=pqr.get(L);I&&I.resolve(S);p=L;U||!L.ftlEligible&&L.tagName!=="YT-THUMBNAIL-VIEW-MODEL"||(U=!0)});
var Y;((Y=p)==null?0:Y.markDirty)&&p.markDirty();cX.clear();c5k=0;U&&UXk(S)};
YYN=function(S){cX.add(S);S.pendingPaint=!0;c5k||(c5k=_.ps(_.PA,SYX))};
LKw=function(S){S.loaded=!1;S.loadTime=Infinity;var p=pqr.get(S);p&&(p.reject(Error("kh")),pqr.delete(S));S.pendingPaint&&(cX.delete(S),S.pendingPaint=!1)};
_.M3e=function(S){var p=S.indexOf(":");return p===-1?{originalName:S}:{originalName:S.substring(0,p),datasyncId:S.substring(p+1)}};
_.dXd=function(){return _.T(function(S){if(IKR!==void 0)return S.return(IKR);IKR=new Promise(function(p){var U;return _.T(function(Y){switch(Y.nextAddress){case 1:return _.M2(Y,2),_.k(Y,_.Uo.open("test-only"),4);case 4:return _.k(Y,_.Uo.delete("test-only"),5);case 5:_.CA(Y,3);break;case 2:if(U=_.W4(Y),U instanceof Error&&U.name==="SecurityError")return p(!1),Y.return();case 3:p("caches"in window),_.OV(Y)}})});
return S.return(IKR)})};
WKX=function(){return _.T(function(S){if(S.nextAddress==1)return _.k(S,_.dXd(),2);if(!S.yieldResult)return S.return(void 0);V3w||(V3w=new TQd);return S.return(V3w)})};
ORw=function(S){var p,U,Y,L;return _.T(function(I){switch(I.nextAddress){case 1:return _.k(I,WKX(),2);case 2:p=I.yieldResult;if(!p)throw Error("mh");return _.k(I,p.open("yt-player-local-img"),3);case 3:return U=I.yieldResult,_.k(I,U.match(S),4);case 4:Y=I.yieldResult;if(!Y)throw Error("nh");return _.k(I,Y.blob(),5);case 5:return L=I.yieldResult,I.return(L)}})};
kHN=function(S,p){for(var U in S)if(S.hasOwnProperty(U)&&p[U])return U;return null};
HRN=function(S){return"stamp"+S.replace("-","_")+"_"};
DXR=function(S){var p=S.match(/\[\[([\w\.]+)\]\]/);if(p&&p.length>1)return p[1];_.ZP(Error("ph`"+S));return null};
zhe=function(S){return S===void 0?_.ub("REUSE_COMPONENTS",!1):S||!1};
JPd=function(S,p,U){U&&(p.is?(QeG.has(p)&&(S=QeG.get(p),U=S.listener,delete p[S.property],U.type==="element"&&p.removeEventListener(U.eventName,U.handler),QeG.delete(p)),n6E(p)):p.__proto__==HTMLElement.prototype&&(p=new _.y7("Rendererstamper removed a non custom element","Stamper: "+S+" element: "+(p&&p.nodeName)),_.eP(p)))};
yPw=function(S,p,U,Y){var L=p.node?p.node:p;_.tB(U).parentNode===L&&(p.removeChild(U),JPd(S,U,Y));if(S=YL.get(U))YL.delete(U),_.PA.cancelJob(S);U.hidden=!1};
KKr=function(S,p,U,Y){if(p&&p.children&&(U=p.children[U]))if(_.ub("DEFERRED_DETACH"))for(;U&&!YL.has(U);){var L=S,I=p,V=U,W=Y;V.hidden=!0;L=_.bQ(_.PA,yPw.bind(null,L,I,V,W),0);YL.set(V,L);U=U.nextElementSibling}else for(;(V=p.lastElementChild)&&(p.removeChild(V),JPd(S,V,Y),V!=U););};
bRX=function(S){var p=_.vH();_.FM(function(){for(var U=_.d(S.slotContent),Y=U.next();!Y.done;Y=U.next())p.value.appendChild(Y.value)});
return _.H("__slot-el",{el:p,skip:!0})};
_.Ls=function(S,p,U){U=U===void 0?jee:U;cT.add(p);var Y;(Y=U).propNames!=null||(Y.propNames=[]);var L=new Set(U.propNames),I=ohG();Y=function(){var D=I.call(this)||this;D.props={};D.isUpdating=!1;D.hasAttached=!1;D.isInert=!1;D.updateQueued=!1;D.initialClasses=[];qie(D,p);return D};
_.r(Y,I);Y.prototype.forwardKebabCaseProp=function(D,z){D=_.kn(D);if(L.has(D)||D==="children")this.props[D]=z};
Y.prototype.afterFirstPatch=function(){this.isUpdating=!0;for(var D=_.d(this.initialClasses),z=D.next();!z.done;z=D.next())(z=z.value)&&this.classList.add(z);this.initialClasses.length>0&&(this.initialClasses.length=0);this.isUpdating=!1};
Y.prototype.handleSlottedContent=function(){for(var D=new Map,z=_.d(this.children),Q=z.next();!Q.done;Q=z.next()){Q=Q.value;var J=void 0,K=(J=Q.getAttribute("slot"))!=null?J:"children";(J=D.get(K))?J.push(Q):D.set(K,[Q]);if(!Q.getAttribute("key")){var G=void 0,X=void 0;Q.setAttribute("key",K+"_"+((X=(G=J)==null?void 0:G.length)!=null?X:0))}}D=_.d(D);for(z=D.next();!z.done;z=D.next())Q=_.d(z.value),z=Q.next().value,Q=Q.next().value,this.forwardKebabCaseProp(z,_.H(bRX,{slotContent:Q}))};
Y.prototype.connectedCallback=function(){var D=this;if(!qie(this,p)&&!this.isInert)if(this.hasAttached)this.enqueueUpdate();else{for(var z=_.d(this.attributes),Q=z.next();!Q.done;Q=z.next())Q=Q.value,this.forwardKebabCaseProp(Q.name,xgk(Q));this.handleSlottedContent();U.synchronous?(this.update(),this.afterFirstPatch()):this.enqueueUpdate().then(function(){D.afterFirstPatch()});
this.hasAttached=!0}};
Y.prototype.attributeChangedCallback=function(D,z,Q){this.isInert||this.isUpdating||this.isConnected||D!=="class"||this.initialClasses.push.apply(this.initialClasses,_.jo(Q.split(" ")))};
Y.prototype.disconnectedCallback=function(){fPd(this)};
Y.prototype.update=function(){if(!this.isInert){this.isUpdating=!0;try{var D,z;qWw(this,_.H(S,Object.assign({},this.props,{idomKey:(z=(D=this.__incrementalDOMData)==null?void 0:D.key)!=null?z:p})),!0)}catch(J){var Q=J instanceof Error?J:new _.y7("Wiz rendering error");Q.args||(Q.args=[]);Q.args.push("Error in deprecated web component wrapper");Q.args.push(p.toLowerCase());_.ZP(Q);throw J;}finally{this.updateQueued=this.isUpdating=!1}}};
Y.prototype.enqueueUpdate=function(){var D=this;return _.T(function(z){if(U.synchronous)return D.update(),z.return();if(D.updateQueued)return z.return();D.updateQueued=!0;return z.return(Promise.resolve().then(function(){D.update()}))})};
Y.prototype.notifyPath=function(){U.enableUnsafeRenderOnNotifyPath&&this.enqueueUpdate()};
_.$u.Object.defineProperties(Y,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return["class"]}}});
for(var V=_.d(U.propNames),W=V.next(),O={};!W.done;O={prop$jscomp$106:void 0},W=V.next())O.prop$jscomp$106=W.value,Object.defineProperty(Y.prototype,O.prop$jscomp$106,{set:function(D){return function(z){this.isInert||z===this.props[D.prop$jscomp$106]||(this.props[D.prop$jscomp$106]=z,this.hasAttached&&!this.isUpdating&&this.enqueueUpdate())}}(O)});
customElements.define(p,Y)};
_.rPE=function(S,p){return _.I4(S.entities,"markersEngagementPanelSyncEntity",p)};
GHr=function(S,p){return _.I4(S.entities,"fantasyWinProbabilityEntity",p)};
hhG=function(S,p){return _.I4(S.entities,"fantasyTeamEntity",p)};
Rhd=function(S,p){return _.I4(S.entities,"fantasyPlayerEntity",p)};
FKu=function(S,p){return _.I4(S.entities,"booleanEntity",p)};
XqR=function(S,p){return _.I4(S.entities,"qrCodeEntity",p)};
PHw=function(S){return _.I4(S.entities,"likeButtonAnimationEntity","EhxsaWtlX2J1dHRvbl9hbmltYXRpb25fZW50aXR5ILcEKAE%3D")};
ZRe=function(){if(MF)return MF;if(window.lottie)return MF=Promise.resolve(window.lottie);var S=_.Zu(_.g7("LOTTIE_URL"));return S?MF=new Promise(function(p,U){var Y=document.createElement("script");Y.addEventListener("load",function(){p(lottie)});
Y.addEventListener("error",function(L){var I="Lottie library failed to load.";L?L.message&&(I+=" Original description: "+L.message,_.gK(L,I)):L=Error(I);_.eP(L);U(L)});
Y.setAttribute("async","");_.fh(Y,S);document.head.appendChild(Y)}):Promise.reject(Error("qh"))};
sew=function(){return MF?MF:ZRe()};
ehG=function(S){if(S)switch(S){case "yt-icons:like":case "LIKE":case "LIKE_SELECTED":if(_.y("kevlar_use_wil_icons"))return S=(S=PHw(_.vJ().getState()))&&S.animationLightUrl&&S.animationDarkUrl?{name:"custom_animated_like_icon",nameDarkTheme:"custom_animated_like_icon_dark",path:S.animationLightUrl,pathDarkTheme:S.animationDarkUrl,lottiePlayerProps:{animationConfig:{loop:!1,autoplay:!1}},type:"CUSTOM_LIKE",totalFrames:60,lazyLoad:!0}:void 0,S?S:Iy.get("LIKE")}};
g6w=function(S){var p=ehG(S);if(p)return p;switch(S){case "FACE_FILLED_HAPPY":case "FACE_OUTLINED_HAPPY":return Iy.get("FACE_HAPPY");case "FACE_FILLED_MEH":case "FACE_OUTLINED_MEH":return Iy.get("FACE_MEH");case "FACE_FILLED_SAD":case "FACE_OUTLINED_SAD":return Iy.get("FACE_SAD");case "FACE_FILLED_UNHAPPY":case "FACE_OUTLINED_UNHAPPY":return Iy.get("FACE_UNHAPPY");case "FACE_FILLED_VERY_HAPPY":case "FACE_OUTLINED_VERY_HAPPY":return Iy.get("FACE_VERY_HAPPY");case "NOTIFICATIONS_NONE":return Iy.get("NOTIFICATION_BELL")}};
wqe=function(S,p){if(!S||usq)p=!1;else{if(S.closest){var U=!!ehG(p);U=_.g7("ID_TOKEN")&&U?!!S.closest("segmented-like-dislike-button-view-model"):!1}else U=!1;if(!U)if(S.closest)if(U=!_.g7("ID_TOKEN"),S=S.closest("ytd-subscription-notification-toggle-button-renderer-next"),U||!S)U=!1;else{var Y;U=((Y=S.data)==null?void 0:Y.targetId)==="notification-bell"&&p!=="EXPAND_MORE"}else U=!1;p=U}return p};
lKN=function(S){var p,U;return _.T(function(Y){switch(Y.nextAddress){case 1:return _.M2(Y,2),_.k(Y,fetch(S),4);case 4:return p=Y.yieldResult,_.k(Y,p.json(),5);case 5:return Y.return(Y.yieldResult);case 2:U=_.W4(Y),_.eP(U),_.OV(Y)}})};
aKw=function(S,p){var U,Y,L;return _.T(function(I){if(I.nextAddress==1)return(U=p?S.pathDarkTheme:S.path)?_.k(I,Promise.all([lKN(U),ZRe()]),2):I.return();Y=I.yieldResult;L=Y[0];dY.set(U,L);_.OV(I)})};
_.VD=function(){var S=_.jO.apply(0,arguments);return function(){for(var p="",U=_.d(S),Y=U.next();!Y.done;Y=U.next())if(Y=Y.value,typeof Y==="function"&&(Y=Y()),Y)if(typeof Y==="string")p+=" "+Y;else for(var L in Y)if(Y.hasOwnProperty(L)){var I=Y[L];typeof I==="function"&&(I=I());I&&(p+=" "+L)}p=p.trim()||void 0;return _.Pz(p)}};
_.Tw=function(S){var p;var U=S.data;var Y=S.className;var L=S.animationName;var I=S.animationRef;var V=(p=S.elRefForInterop)||_.vH(),W;_.FG(function(){var z;return void((z=W)==null?void 0:z.destroy())});
var O;_.R8(function(){var z=_.Pz(L);if(z!==O){O=z;var Q=Object.assign({},{animationName:z,animationRef:_.Pz(I)},_.Pz(U));try{_.tW().resolve(fKG)().then(function(G){var X;(X=W)==null||X.destroy();X=Q.animationRef;var Z=Q.listeners;G=G.loadAnimation(Object.assign({},{container:V.value},Q.animationConfig));X&&(X.lottieEl=G);if(Z)for(X=_.d(Object.entries(Z)),Z=X.next();!Z.done;Z=X.next()){var l=_.d(Z.value);Z=l.next().value;(l=l.next().value)&&G.addEventListener(Z,l)}W=G})}catch(G){z=G;
var J="LottieComponent error.";z.message&&(J+=" Original description: "+z.message);_.gK(z,J);_.eP(z);var K;((K=Q.listeners)==null?0:K.error)&&Q.listeners.error(z)}}});
var D=_.VD("ytLottieComponentHost",Y);return _.H(vve,{cond:function(){return!p},
then:function(){return _.H("lottie-component",{class:D,el:V})}})};
xXu=function(S,p,U,Y){function L(V,W){if(p.value===W&&S!=null&&S.value){for(;S.value.firstChild;)S.value.removeChild(S.value.firstChild);S.value.classList.add("yt-spec-icon-shape");V(S.value,Y)}}
U=_.CHE(_.tW().resolve(_.dx),U);if(typeof U==="function")p.value=null,L(U,null);else{var I=new _.O9(U.then,U);p.value=I;I.then(function(V){L(V,I)})}};
mXG=function(S,p){var U=document.createElement("div"),Y=_.G2(U,function(){return _.H(_.n,{cond:S,then:function(L){return _.H(E6e,{data:L,options:p})}})});
return[U,Y]};
_.W7=function(){for(var S=[],p=_.d(_.jO.apply(0,arguments)),U=p.next();!U.done;U=p.next())if(U=U.value)if(typeof U==="string")S.push(U);else{U=_.d(Object.entries(U));for(var Y=U.next();!Y.done;Y=U.next()){var L=_.d(Y.value);Y=L.next().value;(L=L.next().value)&&S.push(Y)}}return S.join(" ")};
iRk=function(S){var p=_.vH(),U=PQ(),Y=o9(S.character)||o9(S.previousCharacter);L$R(function(){if(S.marginMultiplier){var L;(L=U.value)==null||L.cancel();Y?(L=S.previousCharacter?Number(S.previousCharacter)+10:S.rollUp?0:30,S.shouldAnimate||(L-=o6X(S,L))):(L=S.rollUp?0:2,S.shouldAnimate||(L-=S.rollUp?-1:1));p.value.style.marginTop="-"+L*S.marginMultiplier+"px";S.shouldAnimate?U.value=v6q(p.value,S,L,Y):p.value.style.display=S.character?"":"none"}});
return _.H("animated-rolling-character",{el:p,class:"animated-rolling-character-wiz"},qd(Y,function(){for(var L=[],I=1;I<30;I++)L.push(_.H("div",null,I%10));return _.H(_.U0,null,_.H("div",null,"\u00a0"),L,_.H("div",null,"\u00a0"))},function(){return $Xw(S.character)}))};
$Xw=function(S){return _.H(_.U0,null,_.H("div",null,"\u00a0"),_.H(_.U0,null,qd(!S||_.dN(S),function(){return _.H("div",null,"\u00a0")},function(){return _.H("div",null,S)})),_.H("div",null,"\u00a0"))};
v6q=function(S,p,U,Y){U=new Animation(new KeyframeEffect(S,[{transform:"translateY(0px)"},{transform:"translateY("+(Y?o6X(p,U):p.rollUp?-1:1)*p.marginMultiplier+"px)"}],NQe),document.timeline);p.character?(S.style.display="",U.onfinish=null):U.onfinish=function(){S.style.display="none"};
U.play();return U};
o6X=function(S,p){var U=Number(S.character)+10;if(S.previousCharacter)if(S.character){var Y=Number(S.character),L=Number(S.previousCharacter);S=S.rollUp?L<Y?U:U+10:L<Y?U-10:U}else S=S.rollUp?30:0;else S=S.character==="0"?U:S.rollUp?U-10:U+10;return p-S};
_.Oo=function(S,p){return function(U){var Y={},L;for(L in U){var I=void 0,V=void 0;((I=p)==null?0:(V=I.callbacks)==null?0:V[L])||(Y[L]=U[L])}return _.H(zow,null,function(){for(var W in Y)U[W]=_.Pz(Y[W]);U.disableReactiveLogging=!0;return _.H(S,Object.assign({},U))})}};
APR=function(S,p,U,Y,L,I,V){U=new Animation(new KeyframeEffect(S,[{transform:"translateY(0px)"},{transform:"translateY("+(I?BQX(p,U,Y,L):Y?-1:1)*V+"px)"}],qYq),document.timeline);p?(S.style.display="",U.onfinish=null):U.onfinish=function(){S.style.display="none"};
U.play();return U};
BQX=function(S,p,U,Y){var L=Number(S)+10;p?S?(S=Number(S),p=Number(p),U=U?p<S?L:L+10:p<S?L-10:L):U=U?30:0:U=S==="0"?L:U?L-10:L+10;return Y-U};
cPG=function(S){var p=PQ(),U=PQ();Rd(function(){p.value=S.numberText;U.value=S.numberValue},[S.numberText]);
var Y=S.fontSizeMultiplier?S.heightPx*S.fontSizeMultiplier:S.heightPx,L=TVE(function(){if(S.numberText){var V=S.numberText;var W=S.forceRollUp||!U.value||!S.numberValue||U.value<S.numberValue;var O=!!S.shouldAnimate,D=p.value,z=[],Q=0,J=0,K=(D?D.replace(/\D/g,"").length:0)-(V?V.replace(/\D/g,"").length:0);D=D?D.split(/(\d)/).filter(Boolean):[];for(V=V.split(/(\d)/).filter(Boolean);K<0;){var G=V[J];z.push({character:G,rollUp:W,marginMultiplier:Y,shouldAnimate:O});J++;o9(G)&&K++}for(;Q<K;)G=D[Q],z.push({previousCharacter:G,
rollUp:W,marginMultiplier:Y,shouldAnimate:O}),Q++,o9(G)||K++;for(;J<V.length;)K=V[J],G=D[Q],o9(K)===o9(G)?(J++,Q++):o9(K)?(Q++,K=void 0):o9(G)&&(J++,G=void 0),z.push({character:K,previousCharacter:G,rollUp:W,marginMultiplier:Y,shouldAnimate:O});W=z}else W=[];return W},[S.numberText]),I=S.numberText?["height: "+Y+"px;",
"line-height: "+S.heightPx+"px;"].join(" "):"";return _.H("yt-animated-rolling-number",{class:"animated-rolling-number-wiz",style:I,dir:"ltr","aria-hidden":"true"},L.map(function(V){return _.H(t3u,Object.assign({},V))}))};
SGw=function(){};
pew=function(S,p){if(!S)return p();try{return p()}catch(U){throw U;}};
YGR=function(S){var p;return(p=U1G[S])!=null?p:"EVENT_SPAN_TYPE_UNKNOWN"};
Lrw=function(S){var p=S.nodeName;if(S.id)return p+="#"+S.id;if(S.classList)for(var U=_.d(S.classList),Y=U.next();!Y.done;Y=U.next())p+="."+Y.value;S.parentElement&&(p=Lrw(S.parentElement)+" > "+p);return p};
MAd=function(S){return function(p){var U=YGR(p.type);if(!U)return S(p);U=SGw({type:U,nodepath:p.target instanceof Element?Lrw(p.target):void 0});return pew(U,function(){return S(p)})}};
_.kL=function(S){S&&$d&&($d.enabledSpans?$d.enabledSpans.event:1)&&(S=MAd(S));return $mw(function(p){var U,Y=(U=S)==null?void 0:U(p);return typeof Y==="boolean"?Y:!0})};
H7=function(S){return function(){return S()?S():void 0}};
IYe=function(S){return new KeyframeEffect(S,[{offset:0,opacity:.1,easing:"cubic-bezier(0.05, 0.00, 0.00, 1.00)"},{offset:1,opacity:0}],{duration:400})};
d1R=function(S){return new KeyframeEffect(S,[{offset:0,opacity:.2,easing:"cubic-bezier(0.20, 0.00, 0.60, 1.00)"},{offset:1,opacity:0}],{duration:400})};
_.Dt=function(S){var p=iT(function(U){U=U?OI(U[0]):void 0;return _.kj(S(U),void 0,"AwTxXe")},{isEqual:function(U,Y){return OI(U[0])===OI(Y[0])}});
return[function(){return p()[0]()},
function(U){return void p()[1](U)}]};
_.zw=function(S){return function(){var p="",U;for(U in S){for(var Y=S[U];typeof Y==="function";)Y=Y();Y!==void 0&&Y!==null&&(p+="; "+U+": "+Y)}return p.length>0?_.Pz(p.slice(2)):_.Pz()}};
VAq=function(S){switch(S){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"}};
knN=function(S,p,U,Y,L,I){var V=TwG(S),W=V.disabled,O=V.iconPosition,D=V.style,z=V.focused,Q=function(){return!!G()&&O()==="icon-only"},J=function(){return!!G()&&O()==="icon-only-40"},K=function(){return!!G()&&O()==="icon-with-label"},G=function(){return!!p||!(Y==null||!Y())};
return{type:function(){return D()==="call-to-action-inverse"?"text":D()==="overlay-dark"&&S().type!=="filled"&&S().type!=="tonal"?"tonal":S().type},
shouldFocus:function(){return(z()||(I==null?void 0:I()))&&!W()},
hasIconLeading:function(){return!!G()&&O()==="leading"},
hasIconTrailing:function(){return!!G()&&O()==="trailing"},
hasIconLeadingTrailing:function(){return!!G()&&!!(U||L!=null&&L())&&O()==="leading-trailing"},
hasIconOnly:Q,hasIconOnly40:J,hasIconWithLabel:K,iconButton:function(){return Q()||J()||K()},
visiblyDisabled:function(){return(W()?"disabled":S().state)==="disabled"||W()},
overrideSmallSizeIcon:function(){return WrE(S(),G())},
iconToRender:p?p:function(){return _.H(_.QD,{icon:Y,size:function(){return ns(S(),!0)},
active:function(){return S().toggled},
iconFilter:function(){return ONw(S())}})},
secondaryIconToRender:U?U:function(){return _.H(_.QD,{icon:L,size:function(){return ns(S(),!0)},
active:function(){return S().toggled},
iconFilter:function(){return ONw(S())}})}}};
TwG=function(S){return{size:function(){return S().size},
style:function(){return S().style},
focused:function(){return S().focused},
disabled:function(){return S().disabled},
onTap:function(p){var U,Y;return(Y=(U=S()).onTap)==null?void 0:Y.call(U,p)},
alignByText:function(){return S().alignByText},
aTagConfig:function(){return S().aTagConfig},
customColors:function(){return S().customColors},
segmentedPosition:function(){return S().segmentedPosition},
toggled:function(){return S().toggled},
toggleable:function(){return S().toggleable},
accessibilityLabel:function(){return S().accessibilityLabel},
onToggle:function(p){var U,Y;return(Y=(U=S()).onToggle)==null?void 0:Y.call(U,p)},
iconPosition:function(){return S().iconPosition},
oneOffCustomTextWrap:function(){return S().oneOffCustomTextWrap},
disableTextEllipsis:function(){return S().disableTextEllipsis},
disableBackdropFilter:function(){return S().disableBackdropFilter},
tooltipText:function(){return S().tooltipText},
ariaHidden:function(){return S().ariaHidden},
tabIndex:function(){return S().tabIndex},
buttonText:function(){return S().buttonText},
formattedButtonText:function(){return S().formattedButtonText},
animatedTextProps:function(){return S().animatedTextProps}}};
HNk=function(S){return S.style==="overlay-dark"?4:S.style==="overlay"?S.type==="filled"?4:3:S.type==="filled"||S.style==="call-to-action-inverse"||S.style==="mono-inverse"?2:1};
WrE=function(S,p){p=(S.iconPosition==="icon-only"||S.iconPosition==="icon-only-40"||S.iconPosition==="icon-with-label")&&p;return!S.segmentedPosition&&p&&S.size==="S"};
D1r=function(){return!_.y("web_disable_backdrop_filter")};
ns=function(S,p){switch(S.size){case "XS":return 16;case "S":return WrE(S,p)?24:16;default:return 24}};
z5R=function(S){switch(S){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"}};
QGk=function(S){switch(S){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"}};
nTX=function(S){switch(S){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"}};
ONw=function(S){if(S.style==="overlay-dark"&&S.type==="tonal")return"drop-shadow(0px 1px 4px rgba(0, 0, 0, 0.3))"};
JJw=function(S){if(!S)return{};var p=S.color,U=S.backgroundColor;S=S.borderColor;var Y="";p&&(Y+="color: "+p+";");U&&(Y+="background-color: "+U+";");S&&(Y+="border-color: "+S+";");return{style:Y}};
rJG=function(S,p,U){var Y=S.buttonText,L=S.formattedButtonText,I=S.formattedButtonTextLegacy,V=S.animatedTextProps,W=S.style,O=S.size,D=S.focused,z=S.disabled,Q=S.onTap,J=S.alignByText,K=S.aTagConfig,G=S.customColors,X=S.segmentedPosition,Z=S.toggled,l=S.toggleable,a=S.accessibilityLabel,N=S.onToggle,m=S.iconPosition,A=S.oneOffCustomTextWrap,q=S.disableTextEllipsis,TG=S.disableBackdropFilter,Je=S.tooltipText,GG=S.ariaHidden,Zw=S.tabIndex,Ru=S.state,sX=S.type;W==="call-to-action-inverse"&&(sX="text");
W==="overlay-dark"&&sX!=="filled"&&sX!=="tonal"&&(sX="tonal");var mq=!!p&&m==="leading",au=!!p&&m==="trailing",XI=!!p&&!!U&&m==="leading-trailing",nE=!!p&&m==="icon-only",ut=!!p&&m==="icon-only-40",Hw=!!p&&m==="icon-with-label",Tj=nE||ut||Hw;z&&(Ru="disabled");var Ut=Ru==="disabled"||z;Ru=WrE(S,!!p);var Ww={},kA=(Ww["yt-spec-button-shape-next"]=!0,Ww[z5R(sX)]=!0,Ww[QGk(W)]=!Ut,Ww["yt-spec-button-shape-next--disabled"]=!!Ut,Ww[nTX(O)]=!0,Ww["yt-spec-button-shape-next--focused"]=!!D&&!z,Ww["yt-spec-button-shape-next--icon-trailing"]=
au,Ww["yt-spec-button-shape-next--icon-leading"]=mq,Ww["yt-spec-button-shape-next--icon-leading-trailing"]=XI,Ww["yt-spec-button-shape-next--icon-leading-trailing-no-text"]=XI&&!(Y||L),Ww["yt-spec-button-shape-next--icon-button"]=nE||Hw,Ww["yt-spec-button-shape-next--icon-only-default"]=ut,Ww["yt-spec-button-shape-next--align-by-text"]=!!J,Ww["yt-spec-button-shape-next--segmented-start"]=X==="start",Ww["yt-spec-button-shape-next--segmented-end"]=X==="end",Ww["yt-spec-button-shape-next--override-small-size-icon"]=
Ru,Ww["yt-spec-button-shape-next--one-off-custom-text-wrap-container"]=!!A,Ww["yt-spec-button-shape-next--disable-text-ellipsis"]=!!q,Ww["yt-spec-button-shape-next--enable-backdrop-filter-experiment"]=!TG&&D1r(),Ww),XO=function(){if(V)bbk(_.yJq)(V);else if(I)I(m==="icon-with-label"||A?{lineBreakMode:"LINE_BREAK_MODE_BY_WORD_WRAPPING",textAlignment:"TEXT_ALIGNMENT_CENTER"}:{});else if(L){var Bw=m==="icon-with-label"||A;w8u(Object.assign({},L,Bw?{lineBreakMode:"LINE_BREAK_MODE_BY_WORD_WRAPPING",alignment:"TEXT_ALIGNMENT_CENTER"}:
{}),{noLinkColor:!0,noWrap:!Bw})}else Y&&cz(Y)},Vw=function(Bw){Q==null||Q(Bw);
l&&(N==null||N(Bw))},Kc=K?KrG:bNw,eQ=K?"aria-current$":"aria-pressed$",x5=function(){p&&(mq||XI||Tj)&&function(){J7({className:"yt-spec-button-shape-next__icon",
"aria-hidden$":!0},function(){p()})}();
(Y||L||I||V)&&!Tj&&function(){J7({className:"yt-spec-button-shape-next__button-text-content"},function(){XO()})}();
au&&function(){J7({className:"yt-spec-button-shape-next__icon"},function(){p()})}();
XI&&function(){J7({className:"yt-spec-button-shape-next__secondary-icon"},function(){U()})}();
z||bbk(_.yD)({model:{color:HNk(S)}})},rm=function(){var Bw={};
Kc(Object.assign({},(Bw.className=_.W7(kA),Bw.onclick=K?void 0:Vw,Bw.disabled=z,Bw["aria-disabled$"]=Ut,Bw.style=z&&K?"pointer-events:none":void 0,Bw[eQ]=l?!!Z:void 0,Bw["aria-label$"]=a,Bw.title$=Je!=null?Je:"",Bw["aria-hidden$"]=GG,Bw.tabindex$=Zw,Bw),K,JJw(G)),function(){x5()})};
Hw?(O={},W=(O["yt-spec-button-shape-with-label"]=!0,O["yt-spec-button-shape-with-label--is-overlay"]=W==="overlay"||W==="overlay-dark",O),jGk({className:_.W7(W)},function(){rm();J7({"aria-hidden$":!0,className:"yt-spec-button-shape-with-label__label"},XO)})):rm()};
GnX=function(S,p){if(!AY){var U;Vae(function(){return U=HsE(S,p)});
return U}return HsE(S,p)};
h5w=function(){var S=RwG(AY||void 0,Whk);return hwX(S)?void 0:S};
Ks=function(S,p){_.eV(S,Object.assign({},p,{forceClickLogging:!0}))};
R5w=function(S,p,U,Y){var L=void 0;return function(I){var V=_.sW(U?S==null?void 0:S.onDisabledTap:S==null?void 0:S.onTap);if(V){var W;L=(W=L)!=null?W:p==null?void 0:p.value;if(V)if(_.y("web_button_vm_click_client_ve_killswitch"))Ks(V,Object.assign({},{form:{element:L,event:I}},void 0));else{var O;W=V==null?void 0:V.clickTrackingParams;var D,z=S==null?void 0:(O=S.loggingDirectives)==null?void 0:(D=O.clientVeSpec)==null?void 0:D.uiType;O=z&&!W?_.bZ(z):void 0;Ks(V,Object.assign({},{form:{element:L,event:I}},
{clickedVisualElement:O}))}}Y&&Y(I)}};
Frd=function(S){switch(S){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"}};
Xew=function(S){switch(S){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"}};
PfR=function(S){switch(S){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"}};
ZNw=function(S){switch(S){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"}};
sGe=function(S,p){return _.I4(S.entities,"engagementToolbarStateEntityPayload",p)};
gTu=function(S){(S=_.JS(S))&&_.e5u(S)};
_.e5u=function(S){var p=_.X$();p&&_.a2(p,S)};
uHd=function(S,p,U){_.St(S,"yt-open-popup-action",[p,U||S])};
wew=function(S,p){var U=_.ZC(S,"endpoint"),Y=_.ZC(S,"action");return(U=Y?Y:U)&&p&&(U=p.navigationEndpointPopupMap[U])&&(S=_.ad(U,S),(U=_.ZC(S,"renderer"))&&p.supportedPopups.hasOwnProperty(U))?{openPopupAction:{popupType:p.popupTypeMap[U],popup:S}}:null};
lYE=function(S,p,U,Y){if(Y){var L;U=U==null?void 0:(L=U.data)==null?void 0:L.contents;(L=U instanceof Array&&U.length?U[0]:U)&&(U=_.ZC(L,"renderer"))&&Y.supportedPopups.hasOwnProperty(U)&&(p.stopPropagation(),uHd(S,{openPopupAction:{popupType:Y.popupTypeMap[U],popup:L}}))}};
Cfw=function(S,p,U,Y){Y=Y===void 0?!1:Y;var L=aYe(p);if(L){L.href&&wz(L.href);var I=p.button;I=I!==void 0?I===0&&!jM(p):!jM(p);L.data&&I&&fYE(S,L,p,U,Y)}};
fYE=function(S,p,U,Y,L){L=L===void 0?!1:L;var I=_.pA("pbj_navigate_limit",-1)===0;x1w(p);_.tW().resolve(_.AW(fv));var V=p.data;if(Object.keys(V).length!==0)if(!_.y("unplugged_web_disable_actions_for_cec_endpoint")&&_.b(V,_.I2))_.y("endpoint_behavior_command_executor_fix_killswitch")||(U.preventDefault(),U.stopPropagation()),_.Lp(S,[V],S);else if(Y=wew(V,Y))V.loggingUrls&&V.loggingUrls.forEach(function(O){O.baseUrl&&_.Cf(O.baseUrl)}),U.preventDefault(),U.stopPropagation(),uHd(S,Y,p);
else{var W=ETw(0,p.data,U);if(S=p.getForm)S=S(),W.tempData=W.tempData||{},W.tempData=Object.assign({},W.tempData,S);S=_.E1(U);if(Y=S.find(function(O){return!!O.visualElement}))W.createScreenConfig=W.createScreenConfig||{},W.createScreenConfig.clickedVisualElement=Y.visualElement;
if(!I)if(U.preventDefault(),U.stopPropagation(),_.b(V,_.m1w)&&!L&&_.VO.instance)_.VO.instance.resolveCommand(V,W);else if(_.y("kevlar_command_handler_formatted_string")&&!L&&_.VO.instance&&oTw(V))L=S.find(function(O){return!!O.is})||U.target,U={form:Object.assign({},W,{event:U,
element:L,originatingNode:p})},_.VO.instance.resolveCommand(V,U);else{V=_.E1(U);U=[];for(L=0;L<V.length;L++)(I=V[L].is)&&U.push(I);PTe({parents:U.join(","),text:p.innerText},function(){_.cv(p,"yt-navigate",W)})}}};
vTk=function(S){if(S=aYe(S))x1w(S),Oje(S.href)};
aYe=function(S){S=_.E1(S);for(var p,U=0;U<S.length;U++)if(p=S[U],p.tagName==="A"&&p.classList.contains("yt-simple-endpoint")){if(!p.data)break;return p}return null};
jM=function(S){return S.shiftKey||S.altKey||S.metaKey||S.ctrlKey};
$1u=function(S,p){var U={itct:p.clickTrackingParams};_.y("kevlar_client_side_screens")&&(!_.b(p,_.QX)||_.y("kevlar_exclude_endpoint_killswitch"))&&(U.endpoint=JSON.stringify(p));_.y("enable_unknown_lact_fix_on_html5")&&_.tW().resolve(_.AW(_.rY))&&(U.lact=_.pv());Vjr(U);_.$n(S,U)};
x1w=function(S){S.href&&Object.keys(S.data).length!==0&&$1u(S.href,S.data)};
oTw=function(S){for(var p=_.d(iNe),U=p.next();!U.done;U=p.next())if(S[U.value])return!1;return!0};
_.Gw=function(S,p){if(p){var U={};Nww.forEach(function(Y){Y=Bwu(p,Y,"--yt-lightsource-");Object.assign(U,Y)});
qGw.forEach(function(Y){Y=Bwu(p,Y,"--yt-basic-");Object.assign(U,Y)});
_.Ms(S,U)}};
Bwu=function(S,p,U){var Y={};Y[U+_.O$(p)]=S&&S[p]?_.ev(S[p]):"";return Y};
_.Ry=function(S,p,U){h7[S]||(h7[S]={});h7[S][p]=U};
_.Fc=function(S){h7[S]||(h7[S]={});return h7[S]};
AJe=function(S){if(!S)return{};var p=S.foregroundTitleColor,U=S.backgroundColor;S=S.borderColor;var Y="text";S?Y="outline":U&&(Y="filled");return{type:Y,customColors:{color:p?_.ev(p):void 0,backgroundColor:U?_.ev(U):void 0,borderColor:S?_.ev(S):void 0}}};
UjX=function(S){var p=S.renderer;var U=S.element;var Y=S.commandController;var L=S.onTapCallback;var I=S.skipCommandHandling;var V=S.overrides;var W=S.forceIcon;var O=S.forceModernIconButton;var D=S.forceDisabled;var z=S.isSubscribe===void 0?!1:S.isSubscribe;var Q=S.isPressed===void 0?!1:S.isPressed;var J=S.useButtonSize===void 0?!1:S.useButtonSize;S=tAu(p);z&&(S.style="mono",S.type="filled");W=!p.icon||!W&&p.text?p.icon?p.iconPosition==="BUTTON_ICON_POSITION_TYPE_RIGHT_OF_TEXT"?"trailing":"leading":
void 0:O?"icon-only":"icon-only-40";W==="icon-only-40"&&(S.type="text");var K;O=Object;z=O.assign;J=cJk(p,J);Q=!!p.isSelected||!_.y("web_propagate_is_pressed_killswitch")&&!!Q;var G=p.isSelected!==void 0;D=D===void 0?p.isDisabled:D;var X=p.text?_.Fi(p.text):void 0;var Z,l,a,N=((Z=p.accessibilityData)==null?void 0:(l=Z.accessibilityData)==null?void 0:l.label)||((a=p.accessibility)==null?void 0:a.label);Z=N?N:_.mA(p.text);U=SNe(p,U,Y,L,I);Y=p9e(p);Y!=null&&Y.length?(Y=_.gx({innertubeCommand:bIw(Y),
forceNewState:!0}),Y=uT(Y)?Y:void 0):Y=void 0;return z.call(O,{},S,J,{iconPosition:W},V,{focused:!1,toggled:Q,toggleable:G,disabled:D,formattedButtonText:X,accessibilityLabel:Z,onTap:U,aTagConfig:Y},AJe((K=p.colorData)==null?void 0:K.basicColorPaletteData),{oneOffCustomTextWrap:p.oneOffCustomTextWrap})};
SNe=function(S,p,U,Y,L){return function(I){var V=p9e(S);Y(V,I);if(!L){V=_.d(V);for(var W=V.next();!W.done;W=V.next())Ks(W.value,{form:{element:p,event:I},commandController:U})}}};
p9e=function(S){var p=[];S.command&&p.push(S.command);S.serviceEndpoint&&p.push(S.serviceEndpoint);S.navigationEndpoint&&p.push(S.navigationEndpoint);return p};
cJk=function(S,p){if(p)switch(S.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(S.style){case "STYLE_COMPACT_GRAY":return{size:"S"};default:return{size:"M"}}};
tAu=function(S){switch(S.style){case "STYLE_VISIBLY_DISABLED":return{style:"call-to-action",type:"text",state:"disabled"};case "STYLE_PRIMARY":case "STYLE_PAYMENT":case "STYLE_CALL_TO_ACTION_FILLED":return{style:"call-to-action",type:"filled",state:"active"};case "STYLE_OUTLINE":case "STYLE_SUGGESTIVE":case "STYLE_SUGGESTED_ACTION":return{style:"call-to-action",type:"outline",state:"active"};case "STYLE_BLUE_TEXT":case "STYLE_ALERT_INFO":return{style:"call-to-action",type:"text",state:"active"};case "STYLE_OVERLAY":return{style:"overlay",
type:"filled",state:"active"};case "STYLE_WHITE_WITH_BORDER":return{style:"overlay",type:"outline",state:"active"};case "STYLE_LIGHT_TEXT":return{style:"overlay",type:"text",state:"active"};case "STYLE_MONO_FILLED_OVERLAY":return{style:"overlay",type:"filled",state:"active"};case "STYLE_MONO_TONAL_OVERLAY":case "STYLE_DARK_ON_BLACK":return{style:"overlay",type:"tonal",state:"active"};case "STYLE_OVERLAY_PROTECTED":return{style:"overlay-dark",type:"tonal",state:"active"};case "STYLE_MONO_FILLED":case "STYLE_DESTRUCTIVE":return{style:"mono",
type:"filled",state:"active"};case "STYLE_DEFAULT":case "STYLE_COMPACT_GRAY":case "STYLE_MONO_TONAL":return{style:"mono",type:"tonal",state:"active"};case "STYLE_INACTIVE_OUTLINE":case "STYLE_MONO_OUTLINE":return{style:"mono",type:"outline",state:"active"};case "STYLE_BLUE_TEXT_WITH_INVERSE_THEME":return{style:"call-to-action-inverse",type:"text",state:"active"};case "STYLE_BRAND_GRADIENT":return{style:"brand-gradient",type:"filled",state:"active"};case "STYLE_GENERATIVE_GRADIENT":return{style:"gen-ai-gradient",
type:"filled",state:"active"};default:return{style:"mono",type:"text",state:"active"}}};
_.Xc=function(S){return _.nS(function(){cue()();return E2(S)},void 0,"Icv7j")};
P7=function(S,p){return _.I4(S.entities,"likeStatusEntity",p)};
YNk=function(S,p){return _.I4(S.entities,"likeCountEntity",p)};
_.L9e=function(S,p){return _.I4(S.entities,"stringEntity",p)};
Msu=function(S,p){if(!S)return!1;var U,Y=(U=_.b(S,_.TI))==null?void 0:U.signal;if(Y&&p.signalEndpointMap)return!!p.signalEndpointMap[Y];var L;if((U=(L=_.b(S,_.Zt))==null?void 0:L.request)&&p.continuationEndpointMap)return!!p.continuationEndpointMap[U];for(var I in S)if(p.commandEndpointMap[I])return!0;return!1};
IAE=function(S,p){if(p.streamingEndpointMap)for(var U in S)if(p.streamingEndpointMap[U]&&(S=p.streamingEndpointMap[U]))return S()};
djN=function(S,p){var U,Y=(U=_.b(S,_.TI))==null?void 0:U.signal;if(Y&&p.signalEndpointMap&&(U=p.signalEndpointMap[Y]))return U();var L;if((U=(L=_.b(S,_.Zt))==null?void 0:L.request)&&p.continuationEndpointMap&&(L=p.continuationEndpointMap[U]))return L();for(var I in S)if(p.commandEndpointMap[I]&&(S=p.commandEndpointMap[I]))return S()};
Vsu=function(S){var p={"Content-Type":"application/json"};_.g7("EOM_VISITOR_DATA")?p["X-Goog-EOM-Visitor-Id"]=_.g7("EOM_VISITOR_DATA"):_.g7("VISITOR_DATA")&&(p["X-Goog-Visitor-Id"]=_.g7("VISITOR_DATA"));p["X-Youtube-Bootstrap-Logged-In"]=_.g7("LOGGED_IN",!1);_.g7("DEBUG_SETTINGS_METADATA")&&(p["X-Debug-Settings-Metadata"]=_.g7("DEBUG_SETTINGS_METADATA"));S!=="cors"&&((S=_.g7("INNERTUBE_CONTEXT_CLIENT_NAME"))&&(p["X-Youtube-Client-Name"]=S),(S=_.g7("INNERTUBE_CONTEXT_CLIENT_VERSION"))&&(p["X-Youtube-Client-Version"]=
S),(S=_.g7("CHROME_CONNECTED_HEADER"))&&(p["X-Youtube-Chrome-Connected"]=S),(S=_.g7("DOMAIN_ADMIN_STATE"))&&(p["X-Youtube-Domain-Admin-State"]=S),_.ub("ENABLE_LAVA_HEADER_ON_IT_EXPANSION")&&(S=_.g7("SERIALIZED_LAVA_DEVICE_CONTEXT"))&&(p["X-YouTube-Lava-Device-Context"]=S));return p};
TTN=function(S,p){p.watchNextResponse||p.reelItemWatchResponse?p.watchNextResponse?S.content=p.watchNextResponse:S.content=p.reelItemWatchResponse:p.playerResponse?S.player=p.playerResponse:p.reelWatchSequenceResponse&&(S.reelSequence=p.reelWatchSequenceResponse)};
_.so=function(S){if(!S)return null;for(var p=[],U=0;U<S.textSegments.length;U++){var Y=S.textSegments[U];Y.text?p.push(Y):Y.emojiId&&p.push({emoji_id:Y.emojiId})}return{text_segments:p}};
DjR=function(S,p,U,Y,L,I,V){I=I===void 0?[]:I;var W=new _.eM;W.endpoint=U;if(!U)return _.s9(new _.y7("handle undefined endpoint",p.tagName)),W;var O=f$N(U);O.length&&(_.Lp(S,O,p,Y),W.actions=O);U.loggingUrls&&U.loggingUrls.forEach(function(z){z.baseUrl&&x7(z.baseUrl,z.attributionSrcMode)});
O=!_.y("web_skip_impression_click_killswitch")&&Y&&Y.impression;if(U.clickTrackingParams&&!W9k(U)&&!Okw(p)&&!O&&(O=_.HX(),!_.gY(O,p))){var D=p.getScreenLayer&&p.getScreenLayer();D?O.clickCommand(U,null,D):O.clickCommand(U,null)}O=!1;for(D=0;D<I.length;D++)if((0,I[D])(p,U,Y)){O=!0;break}!O&&kcE(U)&&(W.ajaxPromise=Hku(S,p,U,Y,L,V));return W};
Okw=function(S){var p;return(S=(p=S.data)==null?void 0:p.navigationEndpoint)&&!!S.clickTrackingParams};
W9k=function(S){var p=_.b(S,_.TI);if(p&&(p=p.signal)&&zrE.indexOf(p)>=0)return!0;for(var U in S)if(QZE.indexOf(U)>=0)return!0;return!1};
kcE=function(S){var p;if(((p=_.b(S,_.TI))==null?void 0:p.signal)==="CLIENT_SIGNAL")return!1;for(var U in S)if(nFq.indexOf(U)>=0)return!1;S=Object.keys(S);return S.length===1&&S[0]==="loggingUrls"?!1:!0};
hrR=function(S,p,U,Y,L,I,V){var W=_.uZ.instance;if(W&&_.wY(W,Y))var O=_.lZ(W,Y,L).then(function(z){return(z==null?0:z.data)?z:{data:z}});
else O=S.requestDataForServiceEndpoint(Y,L),_.b(Y,J0u)||_.b(Y,y0E)||_.b(Y,_.K9N)||_.b(Y,bke)||_.eP(new _.y7("No RequestBuilder for endpoint",Y));var D=_.ay();D.promise.thenCatch(function(){var z=_.ZC(Y,"action")||_.ZC(Y,"command")||_.ZC(Y,"endpoint");z&&(z=Y[z],z.hasOwnProperty("onFailureAction")?_.Lp(p,[z.onFailureAction],U):z.hasOwnProperty("onFailureCommand")&&_.Lp(p,z.onFailureCommand,U));O.cancel("Resolver promise rejected")});
O.then(function(z){if(z){var Q=z.error;if(Q){if(I&&I.onServerError)I.onServerError(Y,z);D.reject(new _.y7("Response error",Y,Q))}else if(z=z.data)if(Q=z.error){if(I&&I.onServerError)I.onServerError(Y,z);D.reject(new _.y7("Returned error",Y,Q))}else{jZw(p,U,z,Y);r0R(z);if(Q=a$G(z))for(var J=_.d(Q),K=J.next();!K.done;K=J.next()){K=K.value;var G=_.tW().resolve(_.AW(Gcu))||fs;if(!_.uZ.instance||!G.some(function(Z){return!!_.b(Y,Z)})||_.y("kevlar_response_processor_allowlist_killswitch")){var X=G=void 0;
((X=_.b((G=K)==null?void 0:G.commandMetadata,_.NU))==null?0:X.sendPost)?_.Yd(p,[K]):_.Lp(p,[K],U)}}(J=_.b(z==null?void 0:z.frameworkUpdates,Cs))&&V&&V(J);if(I&&I.onSuccess)I.onSuccess(Y,z);D.resolve(new _.xL(z,Q))}}else D.reject(new _.y7("Invalid service endpoint provided",Y))},function(z){D.reject(z)});
return D.promise};
r0R=function(S){var p;(S=(p=_.b(S==null?void 0:S.onResponseReceivedCommand,_.Rre))==null?void 0:p.continuationItems)&&(S==null?void 0:S.length)===1&&_.b(S[0],F9w)&&_.Fg("so_r",void 0,"search_overview_answer")};
Hku=function(S,p,U,Y,L,I){var V;return(V=p.getNetworkManager&&p.getNetworkManager()?p.getNetworkManager():_.tW().resolve(_.AW(_.RS)))?hrR(V,S,p,U,Y,L,I):_.jV("No network manager.")};
jZw=function(S,p,U,Y){if(U=U.trackingParams||U.loggingDirectives&&U.loggingDirectives.trackingParams){var L;(_.b(Y,X9w)||_.b(Y,Puu)||_.b(Y,ZkG))&&Y.clickTrackingParams?L=_.JS(Y.clickTrackingParams):_.y("web_graft_to_parent_command")&&Y.clickTrackingParams&&(L=_.JS(Y.clickTrackingParams));var I;Y=(I=p.getScreenLayer)==null?void 0:I.call(p);p=_.HX().graftServerVe(U,L,Y);_.pp(S,"yt-store-grafted-ve-action",[p])}};
_.sZe=function(S){var p=new Image;return new _.O9(function(U,Y){p.addEventListener("load",function(){U()});
p.addEventListener("error",function(){Y()});
p.src=S})};
erw=function(S){return!!S};
gFw=function(S){return!!S};
umr=function(S,p,U){var Y=S.rowIndex;Y!==void 0&&_.pp(S.hostElement,"yt-section-reactive-dismissal",[Y,p,U])};
_.Eo=function(S,p,U){S=_.d(S);for(var Y=S.next();!Y.done;Y=S.next()){Y=Y.value;if(Y===p)break;for(var L=_.d(U),I=L.next();!I.done;I=L.next())if(I=I.value,Y.tagName===I||!_.y("web_event_button_role_check_killswitch")&&Y.role==="button"&&I==="BUTTON")return!0}return!1};
_.mh=function(S,p,U){S=_.d(S);for(var Y=S.next();!Y.done;Y=S.next()){Y=Y.value;if(Y===p)break;for(var L=_.d(U),I=L.next();!I.done;I=L.next())if(Y.id===I.value)return!0}return!1};
w9w=function(S,p){if(!S&&!p)return"medium";S=Math.max(S||0,p||0);return S>=256?"large":S>=96?"medium":"small"};
lAr=function(S){switch(S){case 1:return 2/3;case 4:return.5625;case 3:return 1;default:return 16/9}};
_.$L=function(){var S=_.tW().resolve(_.AW(_.oy));return S?(S=S.getCurrentPage())?_.v7(S):null:null};
_.iZ=function(){var S=_.$L();if(!S){var p=_.tW().resolve(_.AW(_.oy)),U=p?typeof p:"no page manager";p=p?p.getCurrentPage():null;U=new _.y7("Player is missing when requested.",U,p?p.tagName:"no page");_.ZP(U)}return S};
_.v7=function(S){return S&&S.getPlayer?S.getPlayer():null};
aAX=function(S,p){S={args:{raw_player_response:S}};p&&(S.args=Object.assign({},S.args,p));return S};
fAr=function(S){if(S.args){if(S.args.raw_player_response)return S.args.raw_player_response;if(S.args.player_response)return JSON.parse(S.args.player_response)}};
_.CuX=function(S,p){var U={url:"/watch?v="+S.videoId,webPageType:"WEB_PAGE_TYPE_WATCH",rootVe:3832};S.playlistId&&(U.url+="&list="+S.playlistId);S.playerParams&&(U.url+="&pp="+S.playerParams);S={watchEndpoint:S,commandMetadata:{webCommandMetadata:U}};p&&(S.clickTrackingParams=p);return S};
EFG=function(){return xjw||!!_.ad("yt.player.Application")};
oFk=function(){return mjr||!!document.querySelector("link#player-css")};
$jk=function(){function S(){xjw=!0;vFd.resolve()}
var p,U;return _.T(function(Y){vFd||(vFd=new _.MI,EFG()?S():(p=document.createElement("script"),p.addEventListener("load",S),U=_.Xa(_.g7("PLAYER_JS_URL")),_.fh(p,U),document.head.appendChild(p)));return Y.return(vFd.promise)})};
NTr=function(){function S(){mjr=!0;ikk.resolve()}
if(!ikk)if(ikk=new _.MI,oFk())S();else{var p=document.createElement("link");p.id="player-css";p.addEventListener("load",S);var U=_.Xa(_.g7("PLAYER_CSS_URL"));_.E3(p,U,"stylesheet");document.head.appendChild(p)}return ikk.promise};
BTr=function(){return EFG()&&oFk()?Promise.resolve([]):Promise.all([$jk(),NTr()])};
qNk=function(S,p,U){var Y={args:{}};S&&(Y.args.raw_player_response=S);p&&(Y.args.raw_watch_next_response=p);U&&(Y.args=Object.assign({},Y.args,U));return Y};
SAw=function(S,p,U){var Y=!1;Y=Y===void 0?!0:Y;S=typeof S==="string"?_.NF(document,S):S;var L=A0w+"_"+_.Ul(S),I=tsd[L];if(I&&Y)return c0G(p,U)?I.api.loadVideoByPlayerVars(p.args||null):I.loadNewVideoConfig(p),I.api;I=new B7(S,L,p,U,void 0);tsd[L]=I;I.addOnDisposeCallback(function(){delete tsd[I.getId()]});
return I.api};
c0G=function(S,p){return p&&p.serializedExperimentFlags?p.serializedExperimentFlags.includes("web_player_remove_playerproxy=true"):S&&S.args&&S.args.fflags?S.args.fflags.includes("web_player_remove_playerproxy=true"):!1};
p0G=function(){var S=new _.MI;S.resolved=!1;var p=S.resolve;S.resolve=function(U){S.resolved=!0;p(U)};
return S};
YAw=function(S){var p={};UMX().install((p.document_disposed={callback:S},p))};
qF=function(S,p){if(!S&&Math.random()<=_.pA("kevlar_unified_player_logging_threshold")){S=Error("sh`"+(p?p:"Unspecified error"));if(_.y("kevlar_unified_player_throw_errors"))throw S;_.eP(S)}};
_.LIu=function(){var S=_.ad("ytDebugData.callbacks");S||(S={},_.NT("ytDebugData.callbacks",S));return S};
IvE=function(S,p){var U=_.LIu();if(_.y("web_dd_iu")||M5G.includes(S))U[S]=p};
dMr=function(){return _.T(function(S){return S.return({isLeader:_.h2q(_.vJ().getState()),c:_.g7("INNERTUBE_CONTEXT_CLIENT_NAME"),cver:_.g7("INNERTUBE_CONTEXT_CLIENT_VERSION")})})};
V5E=function(){var S;_.T(function(p){if(p.nextAddress==1)return IvE("APP_STATE",dMr),_.k(p,_.tW().resolve(_.A7),2);S=p.yieldResult;IvE("PI",function(){return _.T(function(U){return U.return(S.getVideoStats())})});
_.OV(p)})};
Tve=function(S){var p=_.vv(_.lL(_.UX.location.href));S=_.vv(_.lL(S));return _.y("kevlar_clear_non_displayable_url_params")?p==t7(S):t7(p)==t7(S)};
t7=function(S){var p=_.WId(S);S=S.slice(0);var U=["frags"];_.y("kevlar_hide_pp_url_param")&&U.push("pp");_.y("kevlar_hide_time_continue_url_param")&&U.push("time_continue");U=_.d(U);for(var Y=U.next();!Y.done;Y=U.next())Y=Y.value,S=_.iL(_.vv(S),Y);return _.vv(S)+(p?"#"+p:"")};
c7=function(S,p){p=Number(p)*1E3;var U=Math.round((0,_.AI)()),Y=U.toString();S={innertubeResponse:S,serverDateTimestampMs:Y,lastModifiedTimestampMs:Y,expireTimestampMs:(U+p).toString()};if(p=_.g7("INNERTUBE_CONTEXT_CLIENT_NAME"))S.clientName=p;return S};
kmw=function(){return window&&window.performance&&window.performance.now?window.performance.now():Date&&Date.now?Date.now():++OFu};
_.HFk=function(){var S=_.F$(),p=_.X$();p&&S&&_.Cp(p,[S],!0)};
zvR=function(S){return S&&DMN.some(function(p){return S.includes(p)})};
bFw=function(S){var p=_.b(S,_.Cv);if(!p)return!1;var U=p.url,Y=p.attributionSrcMode==="ATTRIBUTION_SRC_MODE_LABEL_CHROME";if(!U)return _.ZP(Error("xh")),!1;if(p.target==="TARGET_NEW_WINDOW"){var L={};_.y("resolve_url_parent_tracking_params")&&(!_.ib(U)||NZ(window.location.href,U))&&(L={endpoint:S,itct:S.clickTrackingParams});Vjr(L);S=null;try{if(Y)return S=_.QkG(U,"_blank",L,void 0,Y),QQe(_.tW().resolve(nDw),S,U),!0}catch(J){_.ZP(J)}_.$n(U,L);p={target:"_blank",noopener:_.y("set_window_noopener_ks")&&
!p.allowOpener};S=window;Y=HE(U)?U:_.JA(typeof U.href!="undefined"?U.href:String(U));L=self.crossOriginIsolated!==void 0;var I="strict-origin-when-cross-origin";window.Request&&(I=(new Request("/")).referrerPolicy);var V=p.noreferrer;if(L&&V&&I==="unsafe-url")throw Error("oe");I=V&&!L;V=p.target||U.target;var W=[],O=[],D=!1;for(Q in p){var z=p[Q];switch(Q){case "width":case "height":case "top":case "left":W.push(Q+"="+z);break;case "target":break;case "noopener":case "noreferrer":z?O.push(Q):(D=!0,
O.push(Q+"=false"));break;case "attributionsrc":W.push(Q+(z?"="+z:""));break;default:W.push(Q+"="+(z?1:0))}}var Q=V!==void 0&&!["_blank","_self","_top","_parent",""].includes(V);Q=XE()&&Q;JNe&&L&&W.length===0&&O.length>0&&!Q&&!D?(O.length===2&&(O=["noreferrer"]),_.s3(S,Y,V,O[0]),S=yNw()):(Q=W.join(","),_.ue()&&S.navigator&&S.navigator.standalone&&V&&V!="_self"?(Q=_.JY("A"),hA(Q,Y),Q.target=V,I&&(Q.rel="noreferrer"),((p=p.attributionsrc)||p==="")&&Q.setAttribute("attributionsrc",p),p=document.createEvent("MouseEvent"),
p.initMouseEvent("click",!0,!0,S,1),Q.dispatchEvent(p),S=yNw()):I?(S=_.s3(S,"",V,Q),p=_.DO(Y),S&&(S.opener=null,p===""&&(p="javascript:''"),p='<meta name="referrer" content="no-referrer"><meta http-equiv="refresh" content="0; url='+SS(p)+'">',p=Fq(p),(Y=S.document)&&Y.write&&(Y.write(Xq(p)),Y.close()))):((S=_.s3(S,Y,V,Q))&&p.noopener&&(S.opener=null),S&&p.noreferrer&&(S.opener=null)));QQe(_.tW().resolve(nDw),S,U);return!0}p=_.Tp(U);p=zvR(p)||U==="https://studio.youtube.com/";Y=!(!_.ib(U)||NZ(window.location.href,
U));Q=U.indexOf("disable_polymer=1")>=0;if(Y||Q||p)wz(U),GI(),_.lE(U,void 0,void 0,window.top,KIw);else return _.eP(new _.y7("UrlEndpoint should not be used for same origin navigations. Use a better typed command instead",S)),!1;return!0};
_.Gmw=function(S,p){p=p===void 0?0:p;if(!(_.b(S,jQG)||_.b(S,rNe)||_.b(S,_.Cv)&&_.b(S,_.Cv).url))return!1;var U,Y=(U=_.b(S,_.Cv))==null?void 0:U.url;U=Y?{externalLinkData:{url:Y}}:null;return _.HX().clickCommand(S,U,p)};
hvN=function(S,p){return _.I4(S.entities,"subscriptionStateEntity",p)};
Rvk=function(S,p){return _.I4(S.entities,"subscriptionNotificationStateEntity",p)};
FIw=function(S,p){return _.I4(S.entities,"upcomingEventReminderStateEntity",p)};
X0r=function(S,p){return _.I4(S.entities,"engagementToolbarSurfaceEntityPayload",p)};
Pre=function(S,p){return _.I4(S.entities,"triStateButtonStateEntityPayload",p)};
ZFr=function(S,p){return _.I4(S.entities,"commerceCartCheckoutButtonEntity",p)};
_.sQd=function(S,p){return _.I4(S.entities,"playlistLoopStateEntity",p)};
evr=function(S,p){return _.I4(S.entities,"commandEntity",p)};
udk=function(S,p,U,Y,L){L=L===void 0?{}:L;return function(I){var V,W;var O=((V=S.loggingDirectives)==null?0:(W=V.clientVeSpec)==null?0:W.uiType)?_.bZ(S.loggingDirectives.clientVeSpec.uiType):void 0;L.clickedVisualElement||(L.clickedVisualElement=O);O=gDe(S,p);U(O,I);O=_.d(O);for(V=O.next();!V.done;V=O.next()){V=V.value;W=Y;var D=I,z=L;z.form?z.form.event=D:z.form={element:W,event:D};Ks(V,z)}}};
gDe=function(S,p){var U=[];p?(S.toggledCommand&&U.push(S.toggledCommand),S.toggledServiceEndpoint&&U.push(S.toggledServiceEndpoint)):(S.defaultCommand&&U.push(S.defaultCommand),S.defaultServiceEndpoint&&U.push(S.defaultServiceEndpoint),S.defaultNavigationEndpoint&&U.push(S.defaultNavigationEndpoint));return U};
w0G=function(S,p){var U=S.toggledStyle||S.style,Y;switch((Y=p?U:S.style)==null?void 0:Y.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"}}};
_.p6=function(){return _.T(function(S){return S.nextAddress==1?_.k(S,_.tW().resolve(_.A7),2):S.return(_.tW().resolve(lvX)())})};
_.UK=function(){return _.tW().resolve(lvX)()};
_.YO=function(){return XM(function(){return{lottieEl:void 0}})};
avk=function(S,p){return S.startsWith(p.uniqueId)};
fve=function(S){var p,U;_.T(function(Y){if(Y.nextAddress==1)return _.k(Y,_.p6(),2);p=Y.yieldResult;if((U=p)==null||!U.addEventListener)return L6(),Y.return();p.addEventListener("onCueRangeEnter",S);_.OV(Y)})};
CrG=function(S){var p,U;_.T(function(Y){if(Y.nextAddress==1)return _.k(Y,_.p6(),2);p=Y.yieldResult;if((U=p)==null||!U.removeEventListener)return L6(),Y.return();p.removeEventListener("onCueRangeEnter",S);_.OV(Y)})};
xMw=function(S){var p,U,Y,L,I;_.T(function(V){if(V.nextAddress==1)return _.k(V,_.p6(),2);p=V.yieldResult;if((U=p)==null||!U.addCueRange)return L6(),V.return();Y=_.d(S.timings);for(L=Y.next();!L.done;L=Y.next())I=L.value,p.addCueRange(S.uniqueId+"-"+I,I/1E3,(I+100)/1E3);_.OV(V)})};
EDw=function(S){var p,U,Y,L,I;_.T(function(V){if(V.nextAddress==1)return _.k(V,_.p6(),2);p=V.yieldResult;if((U=p)==null||!U.removeCueRange)return L6(),V.return();Y=_.d(S.timings);for(L=Y.next();!L.done;L=Y.next())I=L.value,p.removeCueRange(S.uniqueId+"-"+I);_.OV(V)})};
mMe=function(){var S,p,U;return _.T(function(Y){if(Y.nextAddress==1)return _.k(Y,_.p6(),2);S=Y.yieldResult;if((p=S)==null||!p.getPlayerState)return L6(),Y.return();U=S.getPlayerState();return Y.return(U===2)})};
L6=function(){_.eP(new _.y7("Smartimation player does not exist or is corrupted"))};
oDG=function(){try{var S;return(S=window.CSS)!=null&&S.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(p){return _.eP(new _.y7("Smartimation CSS.supports threw an error")),!1}};
ANu=function(S,p,U,Y,L){var I=S.playlistId?vDw:$MG;p=p();U=U();L=!!S.videoId&&L()==="ADD_TO_OFFLINE_BUTTON_STATE_DISABLED";if(_.zf(p))return iFw({data:S,actionType:I,disabled:L},U);if(S.videoId&&Y())return Nvw({data:S,actionType:I,disabled:L});switch(p){case "TRANSFER_STATE_UNKNOWN":return Nvw({data:S,actionType:I,disabled:L});case "TRANSFER_STATE_FAILED":return S.videoId?Bvr({data:S,actionType:I,disabled:L}):qAr({data:S,actionType:I,disabled:L});case "TRANSFER_STATE_COMPLETE":return qAr({data:S,
actionType:I,disabled:L});case "TRANSFER_STATE_PRE_TRANSFER":case "TRANSFER_STATE_TRANSFER_IN_QUEUE":case "TRANSFER_STATE_TRANSFERRING":return iFw({data:S,actionType:I,disabled:L},U);case "TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH":return S.videoId?Bvr({data:S,actionType:I,disabled:L}):Nvw({data:S,actionType:I,disabled:L});default:return Nvw({data:S,actionType:I,disabled:L})}};
t5G=function(S,p){var U=S.onTapCommand,Y=_.sW(U);if(S.videoId&&_.b(Y,_.MB))return _.b(Y,_.MB).action=p,U;S.playlistId&&_.b(Y,_.d8)&&(_.b(Y,_.d8).action=p);return U};
Nvw=function(S){var p=S.data;var U=S.actionType;S=S.disabled;return{text:cNG,iconType:"OFFLINE_DOWNLOAD",onTap:t5G(p,U.ACTION_ADD),disabled:S}};
iFw=function(S,p){var U=S.data;var Y=S.actionType;S=S.disabled;var L="OFFLINE_DOWNLOAD";p>=0&&p<=.1?L="OFFLINE_DOWNLOADING_ZERO":p>.1&&p<=.3?L="OFFLINE_DOWNLOADING_TWENTY":p>.3&&p<=.5?L="OFFLINE_DOWNLOADING_FORTY":p>.5&&p<=.7?L="OFFLINE_DOWNLOADING_SIXTY":p>.7&&p<1?L="OFFLINE_DOWNLOADING_EIGHTY":p===1&&(L="OFFLINE_PIN");return{text:SyN,iconType:L,onTap:t5G(U,Y.ACTION_REMOVE_WITH_PROMPT),disabled:S}};
qAr=function(S){var p=S.data;var U=S.actionType;S=S.disabled;return{text:psN,iconType:"OFFLINE_PIN",onTap:t5G(p,U.ACTION_REMOVE_WITH_PROMPT),disabled:S}};
Bvr=function(S){var p=S.data;var U=S.actionType;S=S.disabled;return{text:ULR,iconType:"OFFLINE_DOWNLOAD",onTap:t5G(p,U.ACTION_RETRY),disabled:S}};
I_X=function(S){var p=YyG;Lmd.push(S);MZw||(p(function(){for(var U=_.d(Lmd),Y=U.next();!Y.done;Y=U.next())Y=Y.value,Y();Lmd.length=0;MZw=!1}),MZw=!0)};
YyG=function(S){Promise.resolve().then(S)};
VP=function(S){S=_.d(VMe(S));var p=S.next().value,U=S.next().value,Y=!1;_.FM(function(){return function(){Y=!0}});
return[p,function(L){I_X(function(){Y&&!_.y("cow_prevent_state_setter_after_cleanup_killswitch")||U(L)})}]};
dLe=function(){var S=_.d(VP(!1)),p=S.next().value,U=S.next().value;return function(){U(!p)}};
VZe=function(S){return XM(function(){return{value:S}})};
T4R=function(S,p){var U=VZe(S),Y=VZe(p);Rd(function(){U.value=S},[S]);
Rd(function(){Y.value=p},p&&p.length>=1?p:[void 0]);
var L=XM(function(){return{value:void 0}});
if(S!==U.value||Y.value!==p||L.value===void 0)L.value=E2(S,p);var I=dLe();_.FM(function(){function V(){var O=E2(U.value,p);O!==L.value&&(L.value=O,I())}
var W=_.xk().subscribe(V);V();return W});
return L.value};
_.Ty=function(S,p){var U=cue();return _.nS(function(){U();return E2(S,[_.Pz(p)||""])},void 0,"HaeHEc")};
Wmq=function(S){var p=_.Ty(_.Z4,function(){return S().videoId}),U=_.Ty(_.sc,function(){return S().playlistId});
return function(){return S().videoId?p:S().playlistId?U:_.d(_.kj("TRANSFER_STATE_UNKNOWN",void 0,"Qibycf")).next().value}};
O5r=function(S){var p=_.Ty(e4,function(){return S().videoId}),U=_.Ty(_.G1q,function(){return S().playlistId});
return function(){return S().videoId?p:S().playlistId?U:_.d(_.kj(0,void 0,"K4tgOc")).next().value}};
koN=function(S){var p=_.Ty(_.e2e,function(){return S().videoId});
return function(){return S().videoId?p:_.d(_.kj(!1,void 0,"Oaxwcf")).next().value}};
H5e=function(S){var p=_.Ty(FSR,function(){return S().videoId});
return function(){return S().videoId?p:_.d(_.kj("ADD_TO_OFFLINE_BUTTON_STATE_UNKNOWN",void 0,"MsSpJc")).next().value}};
DLG=function(){return{}};
z1r=function(){var S,p;return(p=(S=_.tW().resolve(_.AW(_.Cz)))==null?void 0:S())!=null?p:!1};
n8R=function(S,p){S=S===void 0?QbX:S;switch(p.type){case "SET_IS_BOTTOM_SHEET_OPEN_STATE":return Object.assign({},S,{isOpen:p.payload});default:return S}};
yVr=function(S,p){S=S===void 0?JVX:S;switch(p.type){case "SET_CINEMATIC_SETTING_STATE":return Object.assign({},S,{isAllowed:p.payload});default:return S}};
b5r=function(S,p){S=S===void 0?Kmw:S;switch(p.type){case "SET_ERROR_MESSAGE_CREATE_PLAYLIST_STATE":return Object.assign({},S,{errorMessage:p.payload});case "SET_TITLE_CREATE_PLAYLIST_STATE":return Object.assign({},S,{title:p.payload});case "SET_PRIVACY_CREATE_PLAYLIST_STATE":return Object.assign({},S,{privacy:p.payload});case "SET_IS_DISABLED_CREATE_PLAYLIST_STATE":return Object.assign({},S,{isDisabled:p.payload});default:return S}};
rVX=function(S,p){S=S===void 0?jbR:S;switch(p.type){case "SET_IS_DRAWER_LAYOUT_OPEN_STATE":return Object.assign({},S,{isOpen:p.payload});default:return S}};
h1e=function(S,p){S=S===void 0?God:S;switch(p.type){case "SET_IS_FULLSCREEN_STATE":return Object.assign({},S,{isFullscreen:p.payload});case "SET_NAVIGATION_BUTTON":var U=p.payload.targetId,Y=Object.assign({},S.navigationButtons);Y[U]=p.payload.button;return Object.assign({},S,{navigationButtons:Y});case "SET_TOP_PANEL_ID_STATE":return Object.assign({},S,{topPanelId:p.payload});case "SET_SECONDARY_HEADER":return U=p.payload.panelId,Y=Object.assign({},S.secondaryHeader),Y[U]=p.payload.secondaryHeader,
Object.assign({},S,{secondaryHeader:Y});default:return S}};
PDG=function(){return T0(Object.assign({},{entities:Mdw,voiceSearch:J4N,engagementPanel:h1e,bottomSheet:n8R,cinematicSetting:yVr,shorts:RtE,drawerLayout:rVX,createPlaylist:b5r,locationCollection:R1k,reportChannel:Fmq,reportForm:XsG},FtE))};
Z5u=function(S,p){_.PA.addLowPriorityJob(function(){var U,Y,L;return _.T(function(I){switch(I.nextAddress){case 1:return _.M2(I,2),_.k(I,ZRe(),4);case 4:return _.k(I,fetch(S),5);case 5:return U=I.yieldResult,_.k(I,U.json(),6);case 6:Y=I.yieldResult;dY.set(S,Y);requestAnimationFrame(function(){p(Y)});
_.CA(I,0);break;case 2:L=_.W4(I),_.eP(L),_.OV(I)}})})};
sbN=function(S){var p={animationConfig:{},listeners:{}},U=function(){S(!0)};
p.listeners.data_failed=U;p.listeners.error=U;p.listeners.data_ready=function(){S(!1)};
return p};
uok=function(S){var p=S.model;var U=S.subscribed;var Y=S.isOverlay;var L=S.element;var I=S.commandController;var V=S.notificationState;if(U){var W,O;var D=(p==null?void 0:(W=p.buttonStyle)==null?void 0:W.subscribedStateStyle)==="SUBSCRIBE_BUTTON_VIEW_MODEL_SUBSCRIBED_STATE_STYLE_DROPDOWN_COMPACT"?void 0:p==null?void 0:(O=p.unsubscribeButtonContent)==null?void 0:O.buttonText}else{var z;D=p==null?void 0:(z=p.subscribeButtonContent)==null?void 0:z.buttonText}a:{var Q;switch(p==null?void 0:(Q=p.buttonStyle)==
null?void 0:Q.buttonSize){case "SUBSCRIBE_BUTTON_VIEW_MODEL_SIZE_XSMALL":W="S";break a;default:W="M"}}a:if(Y)Y="overlay";else switch(p.backgroundStyle){case "SUBSCRIBE_BUTTON_VIEW_MODEL_BACKGROUND_STYLE_OVERLAY":case "SUBSCRIBE_BUTTON_VIEW_MODEL_BACKGROUND_STYLE_FULLSCREEN_OVERLAY":case "SUBSCRIBE_BUTTON_VIEW_MODEL_BACKGROUND_STYLE_IMMERSIVE_OVERLAY":case "SUBSCRIBE_BUTTON_VIEW_MODEL_BACKGROUND_STYLE_IMMERSIVE_OVERLAY_RED":Y="overlay";break a;default:Y="mono"}a:if(U)var J="tonal";else switch((J=p.buttonStyle)==
null?void 0:J.unsubscribedStateStyle){case "SUBSCRIBE_BUTTON_VIEW_MODEL_UNSUBSCRIBED_STATE_STYLE_SECONDARY":J="tonal";break a;default:J="filled"}return{style:Y,type:J,state:p.disableSubscribeButton?"disabled":"active",size:W,focused:S.focused,toggled:U,accessibilityLabel:e1u(p,U,V),buttonText:D,iconPosition:p.disableNotificationBell?"none":"leading-trailing",onTap:g8w(p,U,L,I),disableTextEllipsis:!!S.disableTextEllipsis}};
g8w=function(S,p,U,Y){return function(L){if(p){var I;var V=S.disableNotificationBell?_.sW(S==null?void 0:(I=S.unsubscribeButtonContent)==null?void 0:I.onTapCommand):_.sW(S==null?void 0:S.onShowSubscriptionOptions)}else{var W;V=_.sW(S==null?void 0:(W=S.subscribeButtonContent)==null?void 0:W.onTapCommand)}V&&Ks(V,{form:{element:U==null?void 0:U.value},commandController:Y});L.stopPropagation()}};
e1u=function(S,p,U){if(p){if(S==null?0:S.disableNotificationBell){var Y;return S==null?void 0:(Y=S.unsubscribeButtonContent)==null?void 0:Y.accessibilityText}switch(U){case "SUBSCRIPTION_NOTIFICATION_STATE_OCCASIONAL":var L;return S==null?void 0:(L=S.bellAccessibilityData)==null?void 0:L.occasionalLabel;case "SUBSCRIPTION_NOTIFICATION_STATE_ALL":var I;return S==null?void 0:(I=S.bellAccessibilityData)==null?void 0:I.allLabel;case "SUBSCRIPTION_NOTIFICATION_STATE_OFF":var V;return S==null?void 0:(V=
S.bellAccessibilityData)==null?void 0:V.offLabel;case "SUBSCRIPTION_NOTIFICATION_STATE_DISABLED":var W;return S==null?void 0:(W=S.bellAccessibilityData)==null?void 0:W.disabledLabel;default:var O;return S==null?void 0:(O=S.unsubscribeButtonContent)==null?void 0:O.accessibilityText}}else{var D;return S==null?void 0:(D=S.subscribeButtonContent)==null?void 0:D.accessibilityText}};
wse=function(S){if(S){switch(S){case "SUBSCRIPTION_NOTIFICATION_STATE_ALL":S="NOTIFICATIONS_ACTIVE";break;case "SUBSCRIPTION_NOTIFICATION_STATE_OFF":case "SUBSCRIPTION_NOTIFICATION_STATE_DISABLED":S="NOTIFICATIONS_OFF";break;default:S="NOTIFICATIONS_NONE"}return S}};
l_k=function(S,p,U){U.subscribed!==p&&((U=U.key)&&_.m_(_.WG("subscriptionStateEntity",U,{key:U,subscribed:p})),S.dispatchEvent(new CustomEvent("yt-subscription-changed",{bubbles:!0,detail:p})),p||_.St(S,"yt-unsubscribe-action"))};
f_e=function(S){S=_.b(_.sW(S),_.OK);var p,U,Y,L;return(L=_.b(S==null?void 0:(p=S.panelLoadingStrategy)==null?void 0:(U=p.inlineContent)==null?void 0:(Y=U.sheetViewModel)==null?void 0:Y.content,a_w))==null?void 0:L.listItems};
CDN=function(S,p){if(S.onShowSubscriptionOptions&&p&&(S=f_e(S.onShowSubscriptionOptions),S!=null&&S.length)){var U=wse(p);S.forEach(function(Y){Y=_.b(Y,_.kO);var L,I,V,W,O=Y==null?void 0:(L=Y.leadingImage)==null?void 0:(I=L.sources)==null?void 0:(V=I[0])==null?void 0:(W=V.clientResource)==null?void 0:W.imageName;Y&&O&&(Y.isSelected=O===U)})}};
xLr=function(S,p,U,Y){p&&U?S.style.width=U+"px":!p&&Y&&(S.style.width=Y+"px")};
E8G=function(S,p,U){var Y;(Y=S.lottieEl)==null||Y.goToAndPlay(0);var L;(L=p.lottieEl)==null||L.goToAndPlay(0);_.HG(_.PA,function(){var I;(I=U.lottieEl)==null||I.goToAndPlay(0)},300)};
De=function(){return _.tW().resolve(_.AW(mLR))||{}};
o8e=function(S){return typeof S==="function"};
_.zy=function(S){Object.keys(S);var p=function(U,Y){var L=p.mapping||S;if(!U)return _.H(_.U0,null);if(Array.isArray(U)&&(U=v8k(L,p,U),Array.isArray(U))){if(!U.length)return _.H(_.U0,null);if(U.length>1){for(var I=!1,V=!1,W=[],O={},D=0;D<U.length;O={data$jscomp$1841:void 0},D++)if(O.data$jscomp$1841=U[D],O.data$jscomp$1841){var z=$Lu(O.data$jscomp$1841,L),Q=z.mappingEntry;z=z.rendererName;Q&&z&&(Q&&(!o8e(Q)&&i5E(Q)&&(V=!0),!o8e(Q)&&Q.asyncId||(I=!0)),W.push(N4E(O.data$jscomp$1841,Q,z,p,Y)))}return V&&
!I?_.H(_.U0,null,B4w()):_.H(_.U0,null,W)}U=U[0]}if(!U)return _.H(_.U0,null);U=v8k(L,p,[U])[0];if(!U)return _.H(_.U0,null);I=$Lu(U,L);L=I.mappingEntry;I=I.rendererName;return L&&I?_.H(_.U0,null,N4E(U,L,I,p,Y)):_.H(_.U0,null)};
p.mapping=S;return p};
_.qyw=function(S){var p=void 0,U;for(U in S)if(S.hasOwnProperty(U)){p=U;break}return p};
v8k=function(S,p,U){var Y,L=(Y=De().preProcessOptions)==null?void 0:Y.idomOptions;if(!L)return U;De();return L.preProcessPropsIdom(S,U,p.triggerRerender)};
$Lu=function(S,p){return(S=_.qyw(S))?{mappingEntry:p[S],rendererName:S}:{mappingEntry:void 0,rendererName:void 0}};
N4E=function(S,p,U,Y,L){if(!p)return _.H(_.U0,null);var I={};L&&L[U]&&(I=Object.assign({},L[U]));S[U]!==void 0&&(I.data=S[U]);if(o8e(p))return p.debugName||(p.debugName=U),_.H(p,I);p.asyncId&&(Y.pendingIdsMap=Y.pendingIdsMap||{},Y.pendingIdsMap[U]=p.asyncId);return p.templateFn?p.templateFn(I):i5E(p)?B4w():_.H(_.U0,null)};
i5E=function(S){var p;return(p=S.showPlaceholder)!=null?p:De().defaultShowPlaceholder};
B4w=function(){var S=De().placeholder;return S()};
AVG=function(S,p){p=p===void 0?{shouldPersist:!0}:p;return{useUpdatableData:function(U,Y){var L=[],I=_.d(_.Dt(function(){var D=U();if(Y!=null&&Y.length&&L){var z=L.length>0;for(var Q=!1,J=0;J<Y.length;J++){var K=Y[J]();z&&K!==L[J]&&(Q=!0);L[J]=K}z=Q}else z=!1;if(z)_.QP.remove(O());else if(z=_.QP.get(O()))return z;return D})),V=I.next().value,W=I.next().value,O=_.nS(function(){return S(U())},void 0,"VFraLb");
_.R8(function(){if(O()!=null){n6.set(O(),[V,W,!1]);var D=O();_.FG(function(){n6.delete(D)})}});
return[V,function(D){W(D);p.shouldPersist&&_.QP.set(O(),D)}]},
getData:function(U){var Y;return(Y=n6.get(S(U)))==null?void 0:Y[0]()},
updateData:function(U,Y){U=S(U);var L=n6.get(U);if(!L)return!1;var I=_.d(L);L=I.next().value;I=I.next().value;Y=Y(L());I(Y);p.shouldPersist&&_.QP.set(U,Y);return!0},
useUpdatableDataIdom:function(U,Y){var L=S(U),I=_.QP.get(L),V=_.d(VP(I!=null?I:U)),W=V.next().value,O=V.next().value,D=PQ(I!=null?I:U);Rd(function(){if(L!=null)return n6.set(L,[function(){return D.value},
function(z){O(z);D.value=z},
n6.has(L)]),_.PA.addJob(function(){_.Jn(_.PA,function(){var z=n6.get(L);z&&(z[2]=!1)},0)},8),function(){var z;
((z=n6.get(L))==null?0:z[2])||n6.delete(L)}},[L]);
Rd(function(){W!==U&&(O(U),D.value=U)},Y?[].concat(_.jo(Y),[L]):[L]);
return[W,O]}}};
tZd=function(S){var p=_.d(_.kj(!0,void 0,"bKtO6d")),U=p.next().value;p.next();return function(){var Y=HQ(S.children());return _.H(_.n,{cond:U,then:function(){return Y},
else:S.fallback})}()};
_.yP=function(S){var p=cVN(S),U=p.data,Y=p.mapping,L=p.wrapper;p=p.pendingFallback;var I=function(){return Sad(_.Pz(U))},V=function(){var W=I(),O=[];
W=_.d(W);for(var D=W.next();!D.done;D=W.next()){var z=void 0;D=D.value;var Q=void 0;for(z in D)if(!(!D).hasOwnProperty(z)){Q=z;break}(z=Q)&&O.push(z)}return O};
return S.data?_.H(tZd,{fallback:p},function(){return _.H(_.KU,{each:V},function(W,O){var D=L?function(Q){return L(function(){return Y[W](Q,O)},z,O)}:function(Q){return Y[W](Q,O)};
D.debugName||(D.debugName=String(W));if(!Y[String(W)])return document.createComment("");var z=ppq(I,W,O);return _.H(D,{data:z})})}):_.H(_.U0,null)};
cVN=function(S){var p=S.targetId||UEX(S.children);if(!S.data||!p||_.y("mweb_new_replaceables_killswitch"))return Object.assign({},S,{mapping:S.children,wrapper:void 0});var U="stamper-"+Yaw++,Y=function(){var W;return(W=_.Pz(S.targetId))!=null?W:U};
p=_.d(LbX(function(){var W=Sad(S.data());W.targetId=Y;return W})).next().value;
var L=Object.assign({},De().replaceableMapping,S.children);if(S.replacementWrapper){var I=L.notificationTextRenderer,V=L.notificationMultiActionRenderer;I&&(L.notificationTextRenderer=function(W,O){return S.replacementWrapper(I({data:W.data},O))});
V&&(L.notificationMultiActionRenderer=function(W,O){return S.replacementWrapper(V({data:W.data},O))})}return Object.assign({},S,{data:p,
mapping:L,wrapper:function(W,O,D){return GnX({targetId:Y,stamperIndex:D},W)}})};
ppq=function(S,p,U){var Y;return _.nS(function(){var L=S()[U()];if(L)Y=L[p];else return _.eP(new _.y7("Stamper failed to find "+String(p)+" at index "+U()+" of data array of length "+(S().length+" (b/365643359). Did you access a signal after a component has been cleaned up?"))),Y;return L[p]},void 0,"DHuMIe")};
UEX=function(S){S=_.d(Object.keys(S));for(var p=S.next();!p.done;p=S.next())if(p=p.value,Mgd.includes(p)||ITr.includes(p)||dER.includes(p))return!0;return!1};
Sad=function(S){return S?Array.isArray(S)?S:[S]:[]};
VgG=function(S){S=_.b(S,_.K6);return(S==null?void 0:S.iconName)&&!(S==null?0:S.title)};
OOr=function(S,p,U){var Y;return _.H(_.U0,null,S==null?void 0:(Y=S.actions)==null?void 0:Y.map(function(L){return _.H("div",{class:function(){var I={"yt-flexible-actions-view-model-wiz__action":!0};I["yt-flexible-actions-view-model-wiz__action--row-action"]=p;I["yt-flexible-actions-view-model-wiz__action--row-action-feature-phone"]=!1;if(VgG(L))var V=!0;else if(V=_.b(L,_.b6),(V==null?0:V.isToggled)&&VgG(V==null?void 0:V.toggledButtonViewModel)||(V==null||!V.isToggled)&&VgG(V==null?void 0:V.defaultButtonViewModel))V=
!0;else{var W;V=((W=_.b(L,TCN))==null?0:W.playlistId)?!0:!1}I=(I["yt-flexible-actions-view-model-wiz__action--icon-only-button"]=V,I["yt-flexible-actions-view-model-wiz__action--intrinsic-width"]=U,I);return _.W7(I)}},Wbd([L],{subscribeButtonViewModel:{isOverlay:!1,
animateWidth:!p}}))}))};
ktw=function(S){var p=S.layout===1,U,Y=((U=S.data)==null?void 0:U.style)==="FLEXIBLE_ACTIONS_STYLE_SCROLLING";U={};Y=(U["yt-flexible-actions-view-model-wiz"]=!0,U["yt-flexible-actions-view-model-wiz--inline"]=!p,U["yt-flexible-actions-view-model-wiz--scrollable"]=Y,U);var L,I;return _.H("yt-flexible-actions-view-model",{class:_.W7(S.className,Y)},(L=S.data)==null?void 0:(I=L.actionsRows)==null?void 0:I.map(function(V){if(p){var W;return _.H("div",{class:"yt-flexible-actions-view-model-wiz__action-row"},
OOr(V,p,!((W=S.data)==null||!W.respectActionIntrinsicWidth)))}return OOr(V,p,!1)}))};
HON=function(S){return!(S==null||!S.iconName||(S==null?0:S.title))};
DEe=function(S){var p=_.b(S.data.toggleButtonViewModel,_.b6),U,Y=(U=S.data.dislikeEntityKey)!=null?U:"",L=T4R(P7,[Y]);p=Object.assign({},p,{isToggled:L?L.likeStatus==="DISLIKE":p.isToggled});return _.H("dislike-button-view-model",{class:"ytDislikeButtonViewModelHost"},_.H(_.jS,{data:p,buttonShapeOverrides:S.buttonShapeOverrideables,onToggle:function(I){L&&I!==(L.likeStatus==="DISLIKE")&&L.key&&_.m_(_.r8("likeStatusEntity",L.key,{likeStatus:I?"DISLIKE":"INDIFFERENT",hadUserInteraction:I}))}}))};
QLe=function(S){var p=_.y("web_supports_animations_api"),U=_.b(S.data.toggleButtonViewModel,_.b6),Y,L,I,V,W=_.d(VP({numberText:(V=(Y=S.likeCountEntity)==null?void 0:(L=Y.likeCountIfIndifferent)==null?void 0:L.content)!=null?V:"",numberValue:Number((I=S.likeCountEntity)==null?void 0:I.likeCountIfIndifferentNumber),heightPx:36,shouldAnimate:!1})),O=W.next().value,D=W.next().value,z,Q,J,K;Y=_.d(VP({numberText:(K=(z=S.likeCountEntity)==null?void 0:(Q=z.likeCountIfLiked)==null?void 0:Q.content)!=null?
K:"",numberValue:Number((J=S.likeCountEntity)==null?void 0:J.likeCountIfLikedNumber),heightPx:36,shouldAnimate:!1}));z=Y.next().value;var G=Y.next().value;Q=_.d(VP());var X=Q.next().value,Z=Q.next().value,l;Q=(l=S.data.likeStatusEntityKey)!=null?l:"";var a,N;l=(N=(a=S.likeCountEntity)==null?void 0:a.key)!=null?N:"";var m=T4R(P7,[Q]),A=T4R(YNk,[l]);a=TVE(function(){return(m==null?void 0:m.likeStatus)==="LIKE"},[m]);
Rd(function(){var q,TG=A&&((q=A.likeCountIfIndifferent)==null?void 0:q.content)!==O.numberText;if(!X&&TG){var Je,GG;D({numberText:(GG=A==null?void 0:(Je=A.likeCountIfIndifferent)==null?void 0:Je.content)!=null?GG:"",numberValue:Number(A==null?void 0:A.likeCountIfIndifferentNumber),heightPx:36,shouldAnimate:!0});var Zw,Ru;G({numberText:(Ru=A==null?void 0:(Zw=A.likeCountIfLiked)==null?void 0:Zw.content)!=null?Ru:"",numberValue:Number(A==null?void 0:A.likeCountIfLikedNumber),heightPx:36,shouldAnimate:!0})}},
[A]);
U=Object.assign({},U,{isToggled:a});p=p&&S.likeCountEntity;return _.H("like-button-view-model",{class:"ytLikeButtonViewModelHost"},_.H(_.jS,{data:U,buttonShapeOverrides:S.buttonShapeOverrideables,animatedTextPropsDefault:p?O:void 0,animatedTextPropsToggled:p?z:void 0,onToggle:function(q){z9E(q,m,X,Z)},
style:function(){return S.disableIconAnimation?void 0:{animateIcon:"true"}}}))};
z9E=function(S,p,U,Y){U&&_.PA.cancelJob(U);U=_.PA.addLowPriorityJob(function(){Y(void 0)},5E3);
Y(U);p&&S!==(p.likeStatus==="LIKE")&&p.key&&_.m_(_.WG("likeStatusEntity",p.key,{key:p.key,likeStatus:S?"LIKE":"INDIFFERENT",hadUserInteraction:S}))};
n4r=function(S,p,U,Y){U&&_.PA.cancelJob(U);U=_.PA.addLowPriorityJob(function(){Y(void 0)},5E3);
Y(U);p&&S!==(p.likeStatus==="LIKE")&&p.key&&_.m_(_.WG("likeStatusEntity",p.key,{key:p.key,likeStatus:S?"LIKE":"INDIFFERENT",hadUserInteraction:S}))};
KbX=function(S){var p,U=_.b((p=S.data)==null?void 0:p.likeButtonViewModel,_.Gy),Y;p=_.b((Y=S.data)==null?void 0:Y.dislikeButtonViewModel,_.hn);var L,I=(L=T4R(P7,[(U==null?void 0:U.likeStatusEntityKey)||""]))!=null?L:U==null?void 0:U.likeStatusEntity;Y=TVE(function(){var V=S.data,W;V=(V==null?void 0:(W=V.timedAnimationData)==null?void 0:W.animationTiming)||[];return{uniqueId:"like-dislike",timings:V,enabled:(I==null?void 0:I.likeStatus)==="INDIFFERENT"&&V.length>0,experimentEnabled:V.length>0}},[S.data,
I]);return _.H("segmented-like-dislike-button-view-model",{class:_.W7(S.className,"ytSegmentedLikeDislikeButtonViewModelHost"),"button-renderer":!0},_.H(RF,{settings:Y},_.H("div",{class:"ytSegmentedLikeDislikeButtonViewModelSegmentedButtonsWrapper"},U?_.H(Jzu,{data:U,likeCountEntity:S.data.likeCountEntity,buttonShapeOverrideables:{segmentedPosition:"start"}}):null,p?_.H(yzG,{data:p,buttonShapeOverrideables:{iconPosition:"icon-only",segmentedPosition:"end"}}):null)))};
bOu=function(S,p){var U=vd(S)||{layerNode:p};U.layerNode=p;X1G(S,U);S.getScreenLayer=function(){return FC(U.layerNode)}};
jLw=function(S){var p;S=S.parentNode;for(var U;S&&((p=vd(S))==null||!p.isRenderer)&&!((U=S.polymerController)!=null?U:S).isRenderer_;)S=S.parentNode||S.host;if(p=S)return vd(p)};
rzX=function(S){if(S){o2.delete(S);var p=_.tW().resolve(AU);ZPw(S,p)}};
h9R=function(S,p,U){if(U===void 0?0:U){if(U=S.getAttribute("client-ve-type"),p.data&&!p.disableReactiveLogging||U)_.Zg(function(){GtG(S,_.Pz(p.data))}),_.FG(function(){return void rzX(S)})}else typeof p.data!=="function"&&GtG(S,p.data)};
GtG=function(S,p){R9r++;FbG(S,p)&&_.PA.addJob(function(){_.Jn(_.PA,function(){if(FbG(S,p)&&S.ownerDocument.documentElement===document.documentElement&&S){var U;if(S.getAttribute("layer")){var Y=U=Number(S.getAttribute("layer")),L=vd(S);L?L.layerNode.layer=Y:bOu(S,new XpE(Y));(Y=jLw(S))&&(L=vd(S))!=null&&(L.layerNode.parent=Y.layerNode)}else if(U=vd(S))U=FC(U.layerNode);else{U=FC;Y=new XpE;if(L=jLw(S))Y.parent=L.layerNode;bOu(S,Y);U=U(Y)}U!=null||(U=0);Y=S.getAttribute("client-ve-type");L=Number(Y);
var I=!1;Y=!1;var V=vd(S),W;if((W=V)&&!(W=V[XC]!==p)&&(W=L)){var O;W=((O=o2.get(S))==null?void 0:O.clientVeType)===void 0}W&&(V[XC]=p,I=Y=V.isRenderer=!0);o2.has(S)&&(o2.get(S).clientVeType=L);S.visualElement&&(Y=!0);if(_.y("wiz_next_ld_fix_client_ve_spec")){var D;O=((D=_.b(p==null?void 0:p.rendererContext,_.D$))==null?void 0:D.loggingDirectives)||(p==null?void 0:p.loggingDirectives)}else O=p==null?void 0:p.loggingDirectives;O&&O.clientVeSpec&&(D=Pmw(_.OW(),S),D=_.ZOw(_.HX(),O,D||void 0,U))&&(S.visualElement=
D);!S.visualElement&&L&&I&&(S.veType=L,D=void 0,_.y("wiz_next_client_ve_parent_fix")&&(D=Pmw(_.OW(),S)),D=_.kX(_.HX(),S,D,U),S.visualElement=D);Y&&(D=_.tW().resolve(AU),uQE(S,{data:p,observer:D,layer:U,showOption:{calledOnce:!1,state:"visible"},hideOption:{calledOnce:!1,state:"hidden"}}))}},0)},8)};
FbG=function(S,p){return(p==null?0:p.trackingParams)||(p==null?0:p.loggingDirectives)||_.b(p==null?void 0:p.rendererContext,_.D$)||S.getAttribute("client-ve-type")?!0:!1};
e9r=function(S){return _.y("cow_logging_in_component_wrapper")?function(p){h9R(p,S,!0)}:sLG};
sLG=function(){};
_.g4w=function(S,p){return _.I4(S.entities,"accountLinkStatusEntity",p)};
uKe=function(S,p){return _.I4(S.entities,"hatsSurveyEntity",p)};
wpw=function(S,p){return _.I4(S.entities,"hatsSurveyStateEntity",p)};
lTw=function(S,p){return _.I4(S.entities,"quantityIncrementerEntity",p)};
E4G=function(S){var p=S.data;var U=S.className===void 0?"":S.className;var Y=S.setMinWidth;S=S.forceIconOnly;var L=_.vH(e9r({data:p}));Y=Y?"ytwAccountLinkButtonViewModelHostMinWidth":"";var I=_.Ty(_.g4w,function(){var Q;return(Q=_.Pz(p).accountLinkStatusEntityKey)!=null?Q:""}),V=_.Ty(_.g4w,function(){var Q;
return(Q=_.Pz(p).accountLinkStatusSecondaryEntityKey)!=null?Q:""}),W=function(){if(!_.y("web_account_link_secondary_killswitch")){var Q,J;
return((Q=I())==null?void 0:Q.linked)||((J=V())==null?void 0:J.linked)}var K;return(K=I())==null?void 0:K.linked};
_.R8(function(){var Q=I();if(Q){var J=aTR(new fTr,CmG(new xEX,!!Q.linked));_.p6().then(function(K){K&&(K.setAccountLinkState(_.Ad(J.JSC$10069_serializeBinary(),4)),K.updateAccountLinkingConfig(!!Q.linked))})}});
var O=function(){return _.b(_.Pz(p).toggleButtonViewModel,_.b6)};
_.oV("yt-signal-action-show-account-link-dialog",function(){if(O()){var Q=W()?O().toggledButtonViewModel:O().defaultButtonViewModel;Q=_.b(Q,_.K6);var J;if((J=I())==null?0:J.isWarning){J=_.b(_.Pz(p).warningButtonViewModel,_.K6);if(!J){_.fU(Error("yh"));return}Q=J}var K;(J=_.sW((K=Q)==null?void 0:K.onTap))&&_.dB([J],L.value)}else _.fU(Error("zh"))});
var D=function(){var Q=O();return Object.assign({},Q,{isToggled:W()})},z=S?{iconPosition:"icon-only"}:{};
return _.H("account-link-button-view-model",{class:_.VD("ytwAccountLinkButtonViewModelHost",function(){return _.Pz(U)},Y),
el:L,"button-renderer":!0},_.H("div",null,_.H(_.n,{cond:function(){var Q;if((Q=I())==null?0:Q.isWarning)return(Q=_.b(_.Pz(p).warningButtonViewModel,_.K6))||_.fU(Error("yh")),Q},
then:function(Q){return _.H(_.PG,{data:Q,buttonOverrides:z})},
else:function(){return _.H(_.jS,{data:D,buttonShapeOverrides:z})}})))};
mEX=function(S){switch(S){case "BADGE_STYLE_TYPE_MEMBERS_ONLY":return 8;case "BADGE_STYLE_TYPE_PREMIUM":return 5;case "BADGE_STYLE_TYPE_SIMPLE":return 0;case "BADGE_STYLE_TYPE_AD":return 2;default:return 0}};
o4q=function(S){switch(S){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}};
v4e=function(S){switch(S){case 2:return"badge-shape-wiz--ad";case 1:return"badge-shape-wiz--media";case 3:return"badge-shape-wiz--promoted";case 4:return"badge-shape-wiz--timely";case 5:return"badge-shape-wiz--premium";case 6:return"badge-shape-wiz--sale";case 7:return"badge-shape-wiz--membership";case 8:return"badge-shape-wiz--commerce";case 10:return"badge-shape-wiz--live";case 11:return"badge-shape-wiz--status-new";case 12:return"badge-shape-wiz--status-complete";case 13:return"badge-shape-wiz--status-warning";
case 14:return"badge-shape-wiz--status-error";case 15:return"badge-shape-wiz--status-default";case 16:return"badge-shape-wiz--thumbnail-default";case 17:return"badge-shape-wiz--thumbnail-live";case 18:return"badge-shape-wiz--thumbnail-special";default:return"badge-shape-wiz--default"}};
_.iOw=function(S){var p=_.pA("web_generic_client_event_wait_period ",0);p||(p=3E5);var U=$Er.get(S);!_.y("enable_web_client_experiment_event_timeout_killswitch")&&U&&(0,_.AI)()-U<p||($Er.set(S,(0,_.AI)()),_.RV("genericClientExperimentEvent",{eventType:S}))};
NCr=function(S){switch(S){case "small":return"collections-stack-wiz__collection-stack1--small";case "medium":return"collections-stack-wiz__collection-stack1--medium";case "large":return"collections-stack-wiz__collection-stack1--large";default:return""}};
BCw=function(S){if(!S)return"";var p,U=(p=_.tW().resolve(_.AW(_.Cz)))==null?void 0:p(),Y;if(!U&&((Y=S.vibrantColorPalette)==null?0:Y.iconInactiveColor))return gz(S.vibrantColorPalette.iconInactiveColor,"1");var L;return U&&((L=S.darkColorPalette)==null?0:L.iconInactiveColor)?gz(S.darkColorPalette.iconInactiveColor,"1"):S.color?gz(S.color,"1"):S.sampledThumbnailColor?(S=S.sampledThumbnailColor,"rgba("+S.red+","+S.green+","+S.blue+");"):""};
_.Ze=function(S,p){if(!S.includes("DATE_PLACEHOLDER"))return S;var U=new Date(0);U.setUTCSeconds(p);return S.replace("DATE_PLACEHOLDER",qaw(U))};
_.sK=function(S){return S!=null&&S.watch?S.watch.isTheaterMode:!1};
_.eS=function(S){return S!=null&&S.watch?S.watch.isWatchFullscreen:!1};
_.g8=function(S){S=_.Azq(S);return _.y("web_watch_enable_single_column_grid_view")?S:!1};
_.Azq=function(S){return S.watch.isWatchNarrowWidth};
tgE=function(S,p,U){return function(Y){var L=S.command;L&&(Ks(L,{form:{element:U}}),p([L],Y))}};
STN=function(S,p,U,Y,L){return function(I){var V=cze(S,U);V&&Ks(V,{form:{element:Y},commandController:L});p&&p.stopPropagation&&I.stopPropagation()}};
cze=function(S,p){if(S.signInEndpoint&&!_.y("web_subscribe_sign_in_endpoint_killswitch"))return S.signInEndpoint;if(p){if(S.serviceEndpoints)return S.serviceEndpoints[1];if(S.onUnsubscribeEndpoints)return S.onUnsubscribeEndpoints[0]}else{if(S.serviceEndpoints)return S.serviceEndpoints[0];if(S.onSubscribeEndpoints)return S.onSubscribeEndpoints[0]}};
pNr=function(S,p){var U,Y,L,I;p=p&&((U=S.unsubscribeAccessibility)==null?void 0:(Y=U.accessibilityData)==null?void 0:Y.label)||((L=S.subscribeAccessibility)==null?void 0:(I=L.accessibilityData)==null?void 0:I.label);return S.longSubscriberCountText?[p,_.mA(S.longSubscriberCountText)].filter(function(V){return V}).join(" "):p};
u6=function(S,p){return p||(S==null?0:S.isChannelDelegate)?"disabled":"active"};
USE=function(S,p){var U;switch((U=S.style)==null?void 0:U.styleType){case "COMPACT_GRAY":return{style:"mono",type:"tonal",state:u6(S)};case "MEDIUM_GRAY":return{style:"mono",type:"tonal",state:u6(S)};case "VISIBLY_DISABLED":return{style:"mono",type:"text",state:u6(S,!0)};case "OVERLAY":return p?{style:"overlay",type:"tonal",state:u6(S)}:{style:"overlay",type:"filled",state:u6(S)};default:return p?{style:"mono",type:"tonal",state:u6(S)}:{style:"mono",type:"filled",state:u6(S)}}};
YTw=function(S,p){var U=S.map(function(Y){return Y.toString()});
return _.kL(function(Y){if(U.includes(Y.key)){p&&Y.preventDefault();var L;(L=Y.currentTarget)==null||L.click()}})};
_.LHN=function(){return YTw(["Enter"])};
_.MfG=function(){return YTw(["Enter"," "],!0)};
_.w8=function(S){if(S.composedPath)return S.composedPath();if(!S.__composedPath){for(var p=[],U=S.target;U;)p.push(U),U=U.parentNode;p.push(window);S.__composedPath=p}return S.__composedPath};
_.l6=function(S,p,U){S=_.d(S);for(var Y=S.next();!Y.done;Y=S.next()){Y=Y.value;if(Y===p)break;for(var L=_.d(U),I=L.next();!I.done;I=L.next())if(I=I.value,Y.tagName===I||Y.role==="button"&&I==="BUTTON")return!0}return!1};
dSr=function(S,p){var U,Y=(U=p.observer)!=null?U:_.tW().resolve(AU);if(S){U=IzG(S);var L=[];p.showOption&&L.push(Y.observe(S,function(){p.visibilityCallback(!0)},p.showOption));
p.hideOption&&L.push(Y.observe(S,function(){p.visibilityCallback(!1)},p.hideOption));
p.prescanOption&&p.prescanCallback&&L.push(Y.observe(S,function(){p.prescanCallback()},p.prescanOption));
var I;U.visibilityMonitorKeys=((I=U.visibilityMonitorKeys)!=null?I:[]).concat(L)}};
IzG=function(S){var p;return(p=S.polymerController)!=null?p:S};
_.f6=function(S){return!!_.aF(S)};
_.WHq=function(S,p){var U=h5w();Rd(function(){var Y=S.value;if(Y)return Vfe(Y,p),Tfu(Y,p,void 0,void 0,void 0,U)},[p])};
_.C6=function(S,p,U,Y,L,I){var V=h5w();_.R8(function(){var W=S.value;W&&(Vfe(W,p(),I),W=Tfu(W,p(),U,Y,L,V),_.FG(W))})};
Vfe=function(S,p,U){var Y=Old(p),L=kkX(p);p=Y&&Hlu;var I=L&&DSG;(Y||L)&&dSr(S,{visibilityCallback:function(V){var W=_.tW().resolve(_.cQ);V&&Y?W.resolveCommand(Y,{form:{element:U?S:void 0},disableClickTracking:!0}):!V&&L&&W.resolveCommand(L,{form:{element:U?S:void 0},disableClickTracking:!0})},
showOption:p,hideOption:I})};
Tfu=function(S,p,U,Y,L,I){var V=new Map;if(p=_.aF(p)){var W;S=(Y==null?void 0:(W=Y.onTap)==null?void 0:W.value)||S;U=znr(p,S,U==null?void 0:U.onTap,L,I);S.addEventListener("click",U);V.set("click",U)}return function(){for(var O=_.d(V),D=O.next();!D.done;D=O.next()){var z=_.d(D.value);D=z.next().value;z=z.next().value;S.removeEventListener(D,z)}}};
_.aF=function(S){var p;return(S=(p=_.b(S,QcG))==null?void 0:p.onTap)&&_.sW(S)};
Old=function(S){var p;return(S=(p=_.b(S,QcG))==null?void 0:p.onVisible)&&_.sW(S)};
kkX=function(S){var p;return(S=(p=_.b(S,QcG))==null?void 0:p.onHidden)&&_.sW(S)};
znr=function(S,p,U,Y,L){var I=function(W){_.tW().resolve(_.cQ).resolveCommand(S,W)},V=function(W){Y&&_.l6(_.w8(W),p,Y)||I(W.target?{form:{element:W.target,
sourceData:S,mutationContext:L}}:void 0)};
U&&(V=function(W){U(W,I)});
return V};
noN=function(S){switch(S){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}};
JCE=function(S){var p=S.numAvatarsInCluster;switch(S.clusterSize){case "small":return p===2?22:18;case "40":return p===2?24:22;default:return p===2?24:20}};
yCE=function(S,p){return function(U){var Y=Object.keys(p);_.R8(function(){if(S()){for(var L=_.d(Y),I=L.next();!I.done;I=L.next())I=I.value,U.addEventListener(I,p[I]);_.FG(function(){for(var V=_.d(Y),W=V.next();!W.done;W=V.next())W=W.value,U.removeEventListener(W,p[W])})}})}};
KHq=function(S){switch(JCE(S)){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""}};
blk=function(S){switch(S){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""}};
jce=function(S){switch(JCE(S)){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""}};
rCq=function(S){switch(S){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""}};
GkG=function(S){switch(S){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}};
hnw=function(S){return S==="medium"||S==="48"||S==="large"||S==="extra-large"||S==="extra-extra-large"||S==="giant"};
Rne=function(S){return!!((S==null?0:S.includes(3))||(S==null?0:S.includes(5)))};
XNe=function(S){return{size:FHX(S.data.avatarImageSize),onTap:S.onTap,decorations:S.decorations||[],badgeText:S.badgeText,accessibilityText:S.accessibilityText,avatarButtonCustomClassName:S.avatarButtonCustomClassName,clusterLayoutConfig:S.clusterLayoutConfig}};
FHX=function(S){switch(S){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"}};
P7X=function(S){switch(S){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}};
Zle=function(S){switch(S){case "AVATAR_SIZE_XS":return"yt-avatar-stack-view-model-wiz__avatar--avatar-size-extra-small";case "AVATAR_SIZE_S":return"yt-avatar-stack-view-model-wiz__avatar--avatar-size-small";case "AVATAR_SIZE_M":return"yt-avatar-stack-view-model-wiz__avatar--avatar-size-medium";case "AVATAR_SIZE_48":return"yt-avatar-stack-view-model-wiz__avatar--avatar-size-48";case "AVATAR_SIZE_L":return"yt-avatar-stack-view-model-wiz__avatar--avatar-size-large";case "AVATAR_SIZE_XL":return"yt-avatar-stack-view-model-wiz__avatar--avatar-size-extra-large";
case "AVATAR_SIZE_XXL":return"yt-avatar-stack-view-model-wiz__avatar--avatar-size-extra-extra-large";case "AVATAR_SIZE_XXXL":return"yt-avatar-stack-view-model-wiz__avatar--avatar-size-giant";default:return""}};
scw=function(S){var p=S.layoutType==="AVATAR_STACK_LAYOUT_CLUSTER",U,Y=S.avatars&&S.avatars.length>0?(U=_.b(S.avatars[0],_.xO))==null?void 0:U.avatarImageSize:"AVATAR_SIZE_UNKNOWN";U=P7X(Y)||0;if(p){var L,I=(L=S.avatarClusterSize)!=null?L:"AVATAR_SIZE_M";p=P7X(I);var V,W,O=Math.min((W=(V=S.avatars)==null?void 0:V.length)!=null?W:0,4),D;return{avatars:((D=S.avatars)==null?void 0:D.slice(0,4))||[],avatarSizeInPx:U,avatarStackStyle:{width:p+"px",height:p+"px",position:"relative"},avatarStyle:function(Q){var J=
JCE({clusterSize:FHX(I),numAvatarsInCluster:O,avatarIndex:Q});var K=P7X(I);O===3&&Q===2?(K=(K-J)/2,K=(_.g7("HTML_DIR")==="rtl"||document.body.getAttribute("dir")==="rtl"?-1:1)*K):K=void 0;return{position:"absolute",top:O===2&&Q===1||O===3&&Q===2||O===4&&Q>=2?"0":void 0,bottom:O===2&&Q===0||O>2&&Q<2?"0":void 0,left:O===2&&Q===1||O>2&&(Q===1||Q===3)?"0":void 0,right:O<=3&&Q===0||O===4&&(Q===0||Q===2)?"0":void 0,transform:K?"translateX("+K+"px)":void 0,width:J+"px",height:J+"px"}},
avatarStackClass:void 0,avatarClass:void 0,clusterLayoutConfig:function(Q){return{clusterSize:FHX(S.avatarClusterSize),numAvatarsInCluster:O,avatarIndex:Q}},
avatarButtonCustomClassName:void 0}}var z;return{avatars:((z=S.avatars)==null?void 0:z.slice())||[],avatarSizeInPx:U,avatarStackClass:"yt-avatar-stack-view-model-wiz__avatars",avatarClass:Zle(Y),avatarStyle:function(){return{}},
avatarStackStyle:{},clusterLayoutConfig:void 0,avatarButtonCustomClassName:"yt-avatar-stack-view-model-wiz__avatar-button"}};
ene=function(S,p,U){return function(){Ks(S,{form:{element:p},commandController:U})}};
goE=function(S){switch(S){case "small":return"ytThumbnailOverlayAvatarStackViewModelavatarStackSmall";case "medium":return"ytThumbnailOverlayAvatarStackViewModelavatarStackMedium";case "large":return"ytThumbnailOverlayAvatarStackViewModelavatarStackLarge";default:return"ytThumbnailOverlayAvatarStackViewModelavatarStackMedium"}};
uRN=function(S){switch(S){case "small":return"yt-thumbnail-overlay-badge-view-model-wiz--small";case "medium":return"yt-thumbnail-overlay-badge-view-model-wiz--medium";case "large":return"yt-thumbnail-overlay-badge-view-model-wiz--large";default:return"yt-thumbnail-overlay-badge-view-model-wiz--medium"}};
wNR=function(S){var p=S.data;S=S.hidden===void 0?!1:S.hidden;var U={};S={class:_.W7("yt-page-indicator-view-model",(U["yt-page-indicator-view-model__indicator--hidden"]=!p.indicatorCount,U)),hidden:S};if(p.indicatorCount){U=[];for(var Y=0;Y<p.indicatorCount;Y++){var L={};L=_.W7("yt-page-indicator-view-model__indicator",(L["yt-page-indicator-view-model__indicator--selected"]=p.selectedIndex===Y,L));U.push(_.H("div",{class:L}))}p=_.H(_.U0,null,U)}else p=_.H(_.U0,null);return _.H("yt-page-indicator-view-model",
S,p)};
azu=function(S){S&&(lzG(S)?delete S.inlinePlayerData:"inlinePlaybackEndpoint"in S&&delete S.inlinePlaybackEndpoint)};
fzu=function(S){if("accessibilityText"in S)return S.accessibilityText||"";if("title"in S){var p,U,Y;return((p=S.title)==null?void 0:(U=p.accessibility)==null?void 0:(Y=U.accessibilityData)==null?void 0:Y.label)||""}if("accessibility"in S){var L,I;return((L=S.accessibility)==null?void 0:(I=L.accessibilityData)==null?void 0:I.label)||""}return""};
lzG=function(S){return"inlinePlayerData"in S};
EK=function(S){return new C7d(S)};
_.xSw=function(S,p,U,Y,L,I){var V=function(D){D.preventDefault()},W=function(){var D=S.value;
if(D)return(D._data=p)?(D.addEventListener("touchstart",GKr,{passive:!0}),D.addEventListener("click",RSu),p.clickTrackingParams&&(D.params={itct:p.clickTrackingParams}),Fud(D,p),hA(D,Xxr(p)||"")):D.addEventListener("click",V),function(){p?(D.removeEventListener("touchstart",GKr,{passive:!0}),D.removeEventListener("click",RSu)):D.removeEventListener("click",V)}},O=function(){var D=S.value;
if(D){var z=_.gx({innertubeCommand:p,elementsCommand:U,forceNewState:Y,stopPropagation:I});if(z)return D._data=z._data,z["aria-haspopup$"]&&D.setAttribute("aria-haspopup",z["aria-haspopup$"].toString()),z["force-new-state$"]&&D.setAttribute("force-new-state",z["force-new-state$"].toString()),z.href$&&hA(D,z.href$),z.rel$&&(D.rel=z.rel$),z.role$&&D.setAttribute("role",z.role$),z.target$&&(D.target=z.target$),D.params=z.params,z.onclick&&D.addEventListener("click",z.onclick),z.onpointerdown&&D.addEventListener("onpointerdown",
z.onpointerdown),function(){z.onclick&&D.removeEventListener("click",z.onclick);z.onpointerdown&&D.removeEventListener("onpointerdown",z.onpointerdown)}}};
Rd(L?O:W,[p,U])};
EoG=function(S){var p=S.children;var U=S.className;var Y=S.dir;var L=S.style;var I=S.role;var V=S.ariaSelected;var W=S.ariaLabel;var O=S.ariaHidden;var D=S.ariaLabelledby;var z=S.ariaDescribedby;var Q=S.command;var J=S.elementsCommand;var K=S.forceNewState;var G=S.isPlaceholder;var X=S.tabIdentifier;var Z=S.target;var l=S.tabIndex;var a=S.useATagConfig;var N=S.stopPropagation;S=_.vH();_.xSw(S,Q,J,K,a,N);return _.H("a",{el:S,"on:click":_.kL(function(){return N===!1}),
class:U,style:L,dir:Y,role:I?I:Q?void 0:"group","aria-hidden":O?!0:void 0,"aria-label":W,"aria-labelledby":D,"aria-describedby":z,"aria-selected":V,tabindex:l!==void 0?l:void 0,target:Z,"tab-identifier":X,"force-new-state":K?!0:void 0,"is-placeholder":G?!0:void 0},p)};
mSG=function(S){var p=S.data;S=_.kL(function(){var L=_.b(p.onTap,_.Z$);L&&_.tW().resolve(_.cQ).resolveCommand(L);return!1});
var U={sources:[{url:p.thumbnailUrl,width:120,height:90}]},Y=p.rating&&p.ratingA11yLabel&&p.reviewsCount&&p.reviewsCountA11yLabel;return _.H("place-data-view-model",null,p.placeName&&p.placeCategory?_.H("div",{class:"yt-spec-place-data-view-model-shape","on:click":S},_.H(_.of,{data:U,alt:"",targetWidth:120,targetHeight:90,className:"yt-spec-place-data-view-model-shape__thumbnail"}),_.H(EoG,{className:"yt-spec-place-data-view-model-shape__place-link",command:_.b(p.onTap,_.Z$),forceNewState:!0,useATagConfig:!0},
_.H("h3",{class:"yt-spec-place-data-view-model-shape__name",title:p.placeName},p.placeName)),_.H("div",{class:"yt-spec-place-data-view-model-shape__metadata"},Y?_.H("div",{class:"yt-spec-place-data-view-model-shape__metadata-row yt-spec-place-data-view-model-shape__metadata-row-ratings"},_.H("span",{class:"score",title:p.ratingA11yLabel},p.rating),_.H("span",{class:"yt-spec-place-data-view-model-shape__metadata-row-star-icon"},_.H(_.QD,{icon:"STAR",active:!0,style:"width: 14px; height: 14px; color: #fabb05"})),
_.H("span",{class:"yt-spec-place-data-view-model-shape__metadata-row-reviews",title:p.reviewsCountA11yLabel},p.reviewsCount)):_.H("div",{class:"yt-spec-place-data-view-model-shape__metadata-row yt-spec-place-data-view-model-shape__metadata-row-ratings"}),_.H("div",{class:"yt-spec-place-data-view-model-shape__metadata-row yt-spec-place-data-view-model-shape__metadata-row-categories"},_.H("span",{class:"category",title:p.placeCategory},p.placeCategory)))):null)};
ooe=function(S){return function(p){S&&(S.thumbnailElRef=p.thumbnailElRef,S.thumbnail=p.thumbnail,S.thumbnailOverlays=p.thumbnailOverlays,S.thumbnailSize=p.thumbnailSize)}};
vow=function(S){var p;return(p=S.sharedUi)==null?void 0:p.animatedThumbnailEnabled};
$Su=function(S){var p;return(p=S.sharedUi)==null?void 0:p.inlinePreviewEnabled};
_.ile=function(S){var p;return(p=S.sharedUi)==null?void 0:p.currentPageSubType};
Nfe=function(S){switch(S){case 1:return"yt-thumbnail-view-model--aspect-ratio-2-by-3";case 4:return"yt-thumbnail-view-model--shorts-aspect-ratio-9-by-16";case 3:return"yt-thumbnail-view-model--aspect-ratio-1-by-1";default:return"yt-thumbnail-view-model--aspect-ratio-16-by-9"}};
qTq=function(S){var p=_.d(_.kj(!1,void 0,"RIOonf")),U=p.next().value,Y=p.next().value;_.FM(function(){var L=S==null?void 0:S();if(L){var I=_.tW().resolve(_.AW(BfR));if(I){var V={triggeringElement:L,onDwellTriggeredFn:function(){Y(!0)},
onDwellEndFn:function(){Y(!1)}};
I.registerElement(V);_.FG(function(){I.unregisterElement(V)})}}});
return U};
ACw=function(S,p,U){U?U(p):_.wx(p,S.target?{form:{element:S.target}}:void 0)};
_.mL=function(S,p,U,Y){_.R8(function(){var L=S.value;if(L){var I=new Map,V,W=(V=p())==null?void 0:V.onTap;W&&(V=function(O){a:{var D=O.composedPath();D=_.d(D);for(var z=D.next();!z.done;z=D.next()){z=z.value;if(z===L)break;if(z.className.indexOf("HostIsClickableAdComponent")>=0||z.tagName==="A".toString()||z.tagName==="BUTTON".toString()){D=!0;break a}}D=!1}D||(_.y("enable_square_image_components_ui_web_with_float_button")?_.cv(S.value,"yt-navigate",{endpoint:_.sW(W)}):ACw(O,W,U))},(Y==null?0:Y())||
_.y("enable_web_home_top_landscape_image_layout_level_click")?(L.addEventListener("tap",V),I.set("tap",V)):(L.addEventListener("click",V),I.set("click",V)));
_.FG(function(){for(var O=_.d(I),D=O.next();!D.done;D=O.next()){var z=_.d(D.value);D=z.next().value;z=z.next().value;L.removeEventListener(D,z)}})}})};
tfG=function(S,p){var U,Y=(U=S.interaction)==null?void 0:U.onTap;if(S=_.gx({elementsCommand:Y,forceNewState:!0,skipOnClick:!0}))return S.onclick=function(L){Kuw(L)&&(L.preventDefault(),Y&&ACw(L,Y,p))},uT(S)?S:void 0};
cCq=function(S){switch(S){case "AD_BUTTON_SIZE_COMPACT":return"S";case "AD_BUTTON_SIZE_DEFAULT":return"M";case "AD_BUTTON_SIZE_LARGE":return"L";default:return"M"}};
SJk=function(S){switch(S){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"}};
p2w=function(S){switch(S){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"}};
_.UyG=function(S){return _.y("rich_grid_enable_dynamic_offset")&&S?Math.max(Math.round((S-_.pA("rich_grid_dynamic_offset_anchor_width",1300))/100*_.pA("rich_grid_dynamic_offset_offset_per_100",10)),_.pA("rich_grid_dynamic_offset_lower_bound",-60)):0};
YJG=function(S,p){switch(p){case 4:return 16;case 1:return S<528?16:S<1024?32:48;case 2:return(S>=528?16:8)/2;case 3:return(S<528?16:S<1024?32:48)+(S>=528?16:8)/2;default:return 0}};
LNu=function(S){var p=S.originalContainerWidth;var U=S.sizing;var Y=S.standardUnit;if(S.isCompactList&&p<528)return 1;switch(U){case "STANDARD":return Y;case "COMPACT":return Y+1;case "EXTRA_COMPACT":return _.y("web_responsive_extra_compact_2x")?Y*2:_.y("web_responsive_current")?Y===1?2:Y%2===0?Y/2*3:Y+2:Y<4?Y*2:Math.ceil(Y*3/2);case "MINI":return Y>1?Y*2:3;default:return Y}};
I8w=function(S){var p=S.containerWidth;var U=S.peek;var Y=S.gutter;var L=S.numItems;S=S.ignoreMaxWidthLimit;p=U?Math.max((p-U-Y*L)/L,0):Math.max((p-Y*(L-1))/L,0);return S?p:Math.min(p,MrG)};
_.oF=function(S){var p=S.containerWidth;var U=S.hasPeek;var Y=S.sizing;var L=S.marginSettings;var I=S.isCompactList;var V=S.enableFullBleedForSingleCol;var W=S.standardUnitMinWidth;Y=Y||"STANDARD";U=!!U;S=p>=528?16:8;var O=U?p>=528?48:24:0;L=YJG(p,L);var D=Math.max(p-L*2,0);W=_.y("kevlar_disable_min_width_override")?void 0:W;W=Math.min(Math.max(Math.floor((D-O+S)/((W!=null?W:dyG)+_.UyG(p)+S)),1),6);var z=(V=!!V&&W===1)||W===1&&Y!=="STANDARD";U=U||z?D:Math.min(D,(MrG+S)*W-S);Y=LNu({originalContainerWidth:p,
sizing:Y,standardUnit:W,isCompactList:I});return{itemWidth:I8w({containerWidth:U,peek:O,gutter:S,numItems:Y,ignoreMaxWidthLimit:z}),gutter:S,maxContainerWidth:U,numItems:Y,margin:V?0:L,contentMargin:YJG(p,1),typographyBump:I8w({containerWidth:U,peek:O,gutter:S,numItems:W,ignoreMaxWidthLimit:z})>400&&!(I&&p<528),standardUnit:W}};
Vrq=function(S){switch(S){case "RESPONSIVE_SIZE_COMPACT":return"COMPACT";case "RESPONSIVE_SIZE_EXTRA_COMPACT":return"EXTRA_COMPACT";case "RESPONSIVE_SIZE_TINY":return"MINI";default:return"STANDARD"}};
_.TFN=function(S){if(S){var p;if((p=S.responsiveContainerConfiguration)==null?0:p.responsiveSize)return Vrq(S.responsiveContainerConfiguration.responsiveSize);if(S.layoutSizing)switch(S.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"}}};
WNw=function(S){if(S.fullbleed)return 1;switch(S.containerType){case "CONTAINER_TYPE_VERTICAL_LIST":return 3;case "CONTAINER_TYPE_GRID":return 2;case "CONTAINER_TYPE_HORIZONTAL_LIST":return 4;default:return 3}};
Dye=function(S,p,U,Y,L,I,V,W){a:switch(S){case 4:I=!!(I&&I<100);break a;default:I=!1}a:switch(S){case 3:case 4:var O=Y==="LOCKUP_CONTENT_TYPE_CHANNEL"||Y==="LOCKUP_CONTENT_TYPE_SOURCE";break a;default:O=!1}a:switch(S){case 5:var D=!0;break a;case 4:D=!1;break a;default:D=!1}a:if(S===4&&Y==="LOCKUP_CONTENT_TYPE_SOURCE")var z=1;else switch(S){case 3:z=1;break a;default:z=0}return{isOverlay:D,isCard:Oie(Y,V),sizing:p!=null?p:"STANDARD",typographyBump:U!=null?U:!1,isTiny:I,isCentered:O,isCollection:kae(Y),
arrangement:z,addMarginForFullbleed:S===1&&Y!=="LOCKUP_CONTENT_TYPE_VIDEO",fullbleed:S===1&&Y==="LOCKUP_CONTENT_TYPE_VIDEO",aspectRatio:HiX(Y,L,W),disableRounding:S===5||Oie(Y,V)||S===1&&Y==="LOCKUP_CONTENT_TYPE_VIDEO",collectionStackNumber:kae(Y)?2:0,useLegacyTypography:!(W==null||!W.useLegacyTypography),useRichGridLegacyTypography:!(W==null||!W.useRichGridLegacyTypography)&&!_.y("web_enable_typography_bump")}};
kae=function(S){switch(S){case "LOCKUP_CONTENT_TYPE_PLAYLIST":case "LOCKUP_CONTENT_TYPE_ALBUM":case "LOCKUP_CONTENT_TYPE_PODCAST":case "LOCKUP_CONTENT_TYPE_SHOPPING_COLLECTION":return!0;default:return!1}};
Oie=function(S,p){if(p&&S==="LOCKUP_CONTENT_TYPE_VIDEO")return!0;switch(S){case "LOCKUP_CONTENT_TYPE_SOURCE":return!0;default:return!1}};
HiX=function(S,p,U){if(p&&(U==null||!U.alwaysRespectPodcastShowAspectRatio||S!=="LOCKUP_CONTENT_TYPE_PODCAST"))return 0;switch(S){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}};
zVG=function(S){switch(S){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"}};
JMR=function(S,p,U){a:switch(S.badgeStyle){case "BADGE_OVERLAY":var Y=!0;break a;default:Y=!1}return{type:p?16:Q$R(S.badgeStyle),brNzRatingBadgeType:n3R(S.badgeStyle),text:S.badgeText,icon:S.iconName,isOverlay:Y,modern:U||_.y("web_modern_badge_view_model")}};
Q$R=function(S){switch(S){case "BADGE_COMMERCE":case "BADGE_MEMBERS_ONLY":return 8;case "BADGE_STATUS_NEW":return 11;case "BADGE_PREMIUM":return 5;default:return 0}};
n3R=function(S){switch(S){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}};
KNr=function(S){var p=S.data?JMR(S.data,!!S.workaroundShortsIsThumbnailBadge,S.modern):void 0;return _.H("yt-badge-view-model",{class:_.W7("yt-badge-view-model-wiz",S.class)},qd(p==null?void 0:p.brNzRatingBadgeType,function(){return _.H(yMq,{data:p})}),qd(p&&!p.brNzRatingBadgeType,function(){return _.H(_.vG,{data:p})}))};
_.$O=function(S){if(S){var p;return((p=_.tW().resolve(_.AW(_.Cz)))==null?0:p())?S.darkThemeImage:S.image}};
rMw=function(S,p,U,Y,L,I){if(L&&I&&p==="CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_EXPLICIT_SIZING")return{width:L,height:I};if(!U)return{};L=U.size;U=U.allowFullWidth;if(p==="CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_FULL_WIDTH"&&U)return{fullWidth:!0};if(L===void 0)return{};switch(S){case "CONTENT_PREVIEW_IMAGE_STYLE_SQUARE":case "CONTENT_PREVIEW_IMAGE_STYLE_CIRCLE":return{width:L,height:L};case "CONTENT_PREVIEW_IMAGE_STYLE_VERTICAL_RECTANGLE_2_BY_3":return{width:L,height:1/biw*L};case "CONTENT_PREVIEW_IMAGE_STYLE_HORIZONTAL_RECTANGLE_16_BY_9":return{width:L*
j$e,height:L};default:return(Y==null?0:Y.height)&&(Y==null?0:Y.width)?Y.width/Y.height>1?{maxWidth:L*j$e}:{maxWidth:L}:{maxWidth:L}}};
Gaw=function(S){var p;return S&&((p=_.$O(S.themedImage))!=null?p:S.image)};
hVu=function(S){var p;return S==null?void 0:(p=S.sources)==null?void 0:p[0]};
FNe=function(S,p){var U,Y;return!!((S==null?0:(U=S.byline)==null?0:U.hideAvatar)&&((Y=_.b(p,RVq))==null?void 0:Y.contentType)==="METADATA_ROW_CONTENT_TYPE_BYLINE")};
X2N=function(S,p){var U,Y;return!!((S==null?0:(U=S.byline)==null?0:U.addPadding)&&((Y=_.b(p,RVq))==null?void 0:Y.contentType)==="METADATA_ROW_CONTENT_TYPE_BYLINE")};
Pdk=function(S,p,U,Y){var L={},I=(L["yt-content-metadata-view-model-wiz__delimiter"]=!0,L["yt-content-metadata-view-model-wiz__delimiter--standalone"]=Y,L);return qd(p-1>U,function(){return _.H("span",{class:_.W7(I),"aria-hidden":!0},S)})};
s$R=function(S,p){return _.H(_.i6,{text:S.text,linkInheritColor:!0,className:Zie(p),userInput:!0})};
g3w=function(S){var p=S.metadataPart;var U=S.isOverlay;var Y=S.useMediumText;var L=S.hideAvatar;var I=1;p.maxLines!==void 0&&(I=p.maxLines);return _.H(_.U0,null,qd(p.avatarStack,function(){return eVw(p.avatarStack,{avatarStackViewModel:{isOverlay:U,useMediumText:Y,hideAvatar:L}})}),qd(p.text,function(){var V=I;
return _.H(_.U0,null,p.tooltip?_.H("span",{title:p.tooltip,role:"tooltip"},s$R(p,V)):s$R(p,V))}))};
Zie=function(S){switch(S){case 0:return"yt-content-metadata-view-model-wiz__metadata-text-max-lines-0";case 1:return"yt-content-metadata-view-model-wiz__metadata-text";case 2:return"yt-content-metadata-view-model-wiz__metadata-text-max-lines-2";case 3:return"yt-content-metadata-view-model-wiz__metadata-text-max-lines-3";default:return"yt-content-metadata-view-model-wiz__metadata-text-max-lines-4"}};
uZG=function(S){var p=S.metadataRow;var U=S.isInline;var Y=S.delimiter;var L=S.isOverlay;var I=S.useMediumText;var V=S.extensions;var W=FNe(V==null?void 0:V.lockupMetadata,p);S=X2N(V==null?void 0:V.lockupMetadata,p);V=!(!((V==null?0:V.lockupMetadata)&&p.badges)||p.metadataParts);var O={};S=(O["yt-content-metadata-view-model-wiz__metadata-row"]=!0,O["yt-content-metadata-view-model-wiz__metadata-row--metadata-row-inline"]=U,O["yt-content-metadata-view-model-wiz__metadata-row--metadata-row-padding"]=
S,O["yt-content-metadata-view-model-wiz__metadata-row--metadata-row-wrap"]=V,O);var D,z;return _.H("div",{class:_.W7(S)},(D=p.badges)==null?void 0:D.map(function(Q){return _.H("div",{class:"yt-content-metadata-view-model-wiz__badge"},eVw(Q))}),(z=p.metadataParts)==null?void 0:z.map(function(Q,J){return _.H(_.U0,null,g3w({metadataPart:Q,
isOverlay:L,useMediumText:I,hideAvatar:W}),Pdk(Y,p.metadataParts.length,J,!1))}),qd(p.isSpacerRow&&!U,function(){return _.H("div",{class:"yt-content-metadata-view-model-wiz__spacer"})}))};
w2R=function(S){var p=S.className;var U=S.data;var Y=S.layout===void 0?0:S.layout;var L=S.isOverlay===void 0?!1:S.isOverlay;var I=S.useMediumText;var V=S.extensions;S=_.vH();var W=Y===0;Y={};Y=(Y["yt-content-metadata-view-model-wiz"]=!0,Y["yt-content-metadata-view-model-wiz--inline"]=W,Y["yt-content-metadata-view-model-wiz--tappable"]=_.f6(U.rendererContext),Y["yt-content-metadata-view-model-wiz--medium-text"]=I,Y);_.WHq(S,U.rendererContext);return _.H("yt-content-metadata-view-model",{class:_.W7(p,
Y),el:S},qd(U.metadataRows,function(){return U.metadataRows.map(function(O,D){return _.H(_.U0,null,uZG({metadataRow:O,isInline:W,delimiter:U.delimiter,isOverlay:L,useMediumText:I,extensions:V}),qd(W&&!O.isSpacerRow,function(){return Pdk(U.delimiter,U.metadataRows.length,D,!0)}))})}))};
l8r=function(S){switch(S){case 0:return"yt-content-metadata-view-model-wiz__metadata-text-max-lines-0";case 1:return"yt-content-metadata-view-model-wiz__metadata-text";case 2:return"yt-content-metadata-view-model-wiz__metadata-text-max-lines-2";case 3:return"yt-content-metadata-view-model-wiz__metadata-text-max-lines-3";default:return"yt-content-metadata-view-model-wiz__metadata-text-max-lines-4"}};
a8R=function(S){switch(S.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"}}};
f8u=function(S){var p=_.ile(_.xk().getState())||"";return S?S+p:""};
Cdw=function(S){switch(S){case 1:return"ytDismissibleItemAspectRatio2By3";case 2:return"ytDismissibleItemAspectRatio3By4";case 4:return"ytDismissibleItemShortsAspectRatio9By16";case 3:return"ytDismissibleItemAspectRatio1By1";case 0:return"ytDismissibleItemAspectRatio16By9"}};
E3r=function(S){var p=_.d(_.kj(void 0,void 0,"BIquNb")),U=p.next().value,Y=p.next().value,L=_.d(_.kj(void 0,void 0,"eR0GH"));p=L.next().value;var I=L.next().value;L=_.d(_.kj(void 0,void 0,"UmkP0"));var V=L.next().value,W=L.next().value;return{touchFeedbackEvents:{pointerUpEvent:U,pointerDownEvent:p,pointerLeaveEvent:V},touchFeedbackOnPointerUp:_.kL(function(O){if(xyu(_.w8(O)))return!1;Y(O);I(void 0);W(void 0);return!0}),
touchFeedbackOnPointerDown:_.kL(function(O){S==null||S(O);if(xyu(_.w8(O)))return!1;I(O);Y(void 0);W(void 0);return!0}),
touchFeedbackOnPointerLeave:_.kL(function(O){xyu(_.w8(O))||(W(O),I(void 0),Y(void 0))})}};
xyu=function(S){var p=["BUTTON".toString()];S=_.d(S);for(var U=S.next();!U.done;U=S.next()){U=U.value;for(var Y=_.d(p),L=Y.next();!L.done;L=Y.next())if(U.tagName===L.value)return!0}return!1};
myd=function(S){switch(S){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"}};
o3G=function(S,p){var U;return xkr(S,((U=S.content)==null?void 0:U.length)||0,!p)};
v3e=function(S,p){p=o3G(S,p);var U,Y;return(((U=S.content)==null?void 0:U.length)||0)>(((Y=p.content)==null?void 0:Y.length)||0)};
$yq=function(S){var p=S.isTruncated;var U=S.isAbsoluteButton;var Y=S.lineHeight;var L=S.contentRef.value,I=S.placeholderTruncationTextRef.value,V=S.truncationTextRef.value;S=S.appDirection==="rtl";if(L&&I){var W=I.offsetLeft;S&&(W=L.offsetWidth-I.offsetWidth-I.offsetLeft);if(p){p=I.offsetWidth;I=L.offsetWidth;var O=U?I-p-70:W-70;Y="linear-gradient(\n      to top, transparent 0%,\n      transparent "+Y+"px,\n      #000 "+Y+"px,\n      #000 100%), linear-gradient(\n      to "+((S?"left":"right")+",\n      #000 0px,\n      #000 "+
O+"px,\n      transparent "+(U?I-p:O+70)+"px)");L.style.setProperty("-webkit-mask-image",Y);L.style.setProperty("mask-image",Y)}else L.style.setProperty("-webkit-mask-image",""),L.style.setProperty("mask-image","");U?S?(V.style.setProperty("left","0"),V.style.setProperty("right","unset")):(V.style.setProperty("left",""),V.style.setProperty("right","0")):S?(V.style.setProperty("left","unset"),V.style.setProperty("right",W+"px")):(V.style.setProperty("left",W+"px"),V.style.setProperty("right","unset"))}};
iie=function(S,p,U,Y,L,I,V){var W=_.vH(),O=_.vH(),D=_.vH(),z=o3G(S,L),Q=_.tW().resolve(_.EW),J=_.d(VP(v3e(S,L))),K=J.next().value,G=J.next().value,X=PQ(null);Rd(function(){function Z(){if(W.value&&O.value&&D.value){var N=W.value;N.scrollHeight-N.offsetHeight>1?(G(!0),Y||$yq({isTruncated:!0,isAbsoluteButton:!0,lineHeight:U,contentRef:W,placeholderTruncationTextRef:O,truncationTextRef:D,appDirection:Q})):(N=v3e(S,L),G(N),Y||$yq({isTruncated:N,isAbsoluteButton:!1,lineHeight:U,contentRef:W,placeholderTruncationTextRef:O,
truncationTextRef:D,appDirection:Q}))}}
var l,a;(l=X.value)==null||(a=l.stop)==null||a.call(l);l=new _.NB(Z,17);Z();X.value=l},[S.content,
p,U,Q,Y,I,V,L]);_.FM(function(){var Z=function(){var a,N;(a=X.value)==null||(N=a.fire)==null||N.call(a)};
if(window.ResizeObserver){var l=new ResizeObserver(Z);l.observe(W.value);return function(){var a,N;(a=X.value)==null||(N=a.stop)==null||N.call(a);l.disconnect()}}window.addEventListener("resize",Z);
return function(){var a,N;(a=X.value)==null||(N=a.stop)==null||N.call(a);window.removeEventListener("resize",Z)}});
return{isTruncated:K,displayText:z,contentRef:W,placeholderTruncationTextRef:O,truncationTextRef:D}};
NFw=function(S){return _.H("button",{"aria-disabled":!0,disabled:!0,class:S.className,el:S.elRef,style:"line-height: "+S.lineHeight+"px;"},_.H(_.i6,{text:S.text}))};
BFr=function(S){var p=S.text;var U=S.alwaysShowTruncationText;var Y=S.truncationText;var L=S.onExpandClick;var I=S.lineHeight===void 0?16:S.lineHeight;var V=S.maxLines===void 0?2:S.maxLines;var W=S.disableTextMask===void 0?!1:S.disableTextMask;var O=S.textStyle===void 0?"default":S.textStyle;var D=S.accessibilityLabel===void 0?"":S.accessibilityLabel;var z=S.textSize===void 0?"small":S.textSize;var Q=_.kL(function(){return void(L==null?void 0:L())}),J=iie(p,V,I,W,S.alwaysTruncateAtMaxLines===void 0?
!1:S.alwaysTruncateAtMaxLines,z,O),K=J.isTruncated;
S=J.displayText;p=J.contentRef;var G=J.placeholderTruncationTextRef;J=J.truncationTextRef;var X={};U=_.W7((X["truncated-text-wiz__absolute-button"]=!W,X["truncated-text-wiz__bottom-button"]=W,X["truncated-text-wiz--hidden"]=!(U||K),X));W={};O=_.W7((W["truncated-text-wiz"]=!0,W["truncated-text-wiz--overlay"]=O==="overlay",W["truncated-text-wiz--medium-text"]=z==="medium",W["truncated-text-wiz--large-text"]=z==="large",W["truncated-text-wiz--primary-text"]=O==="primary-text",W));return _.H("truncated-text",
{class:O,"on:click":Q,style:"line-height: "+I+"px;"},_.H("truncated-text-content",{class:"truncated-text-wiz__truncated-text-content",el:p,style:"max-height: "+V*I+"px;"},_.H(_.i6,{text:S}),_.H(NFw,{text:Y,lineHeight:I,elRef:G,className:"truncated-text-wiz__inline-button"})),_.H("button",{"aria-label":D,class:U,el:J,style:"line-height: "+I+"px;"},_.H(_.i6,{text:Y})))};
qJR=function(S){return{content:S!=null?S:""}};
cMw=function(S){var p=S.data;var U;S={class:S.className};a:switch(p.orientation){case "VIDEO_ATTRIBUTE_ORIENTATION_VERTICAL":var Y="yt-video-attribute-view-model--vertical";break a;default:Y="yt-video-attribute-view-model--horizontal"}a:switch(p.imageSize){case "VIDEO_ATTRIBUTE_IMAGE_SIZE_SMALL":var L="yt-video-attribute-view-model--image-small";break a;default:L="yt-video-attribute-view-model--image-large"}a:switch(p.imageStyle){case "VIDEO_ATTRIBUTE_IMAGE_STYLE_SQUARE":var I="yt-video-attribute-view-model--image-square";
break a;case "VIDEO_ATTRIBUTE_IMAGE_STYLE_AVATAR":I="yt-video-attribute-view-model--image-avatar";break a;default:I=""}a:switch(p.metadataStyle){case "VIDEO_ATTRIBUTE_METADATA_STYLE_HEADER":var V="yt-video-attribute-view-model--metadata-header";break a;default:V=""}a:switch(p.containerStyle){case "VIDEO_ATTRIBUTE_CONTAINER_STYLE_CARD":var W="yt-video-attribute-view-model--container-card";break a;default:W=""}var O=_.sW(p.onTap)||_.aF(p.rendererContext)?"yt-video-attribute-view-model--clickable":"";
Y=["yt-video-attribute-view-model",Y,L,I,V,W,O].join(" ");if(p.containerStyle!=="VIDEO_ATTRIBUTE_CONTAINER_STYLE_CARD")var D="";else L=p.lightColorPalette,I=p.darkColorPalette,V=((D=_.tW().resolve(_.AW(_.Cz)))==null?0:D())&&I?I:L,D=(D=V==null?void 0:V.section2Color)?_.ev(D):"";return _.H("yt-video-attribute-view-model",S,_.H("div",{class:Y,style:_.zw({"background-color":D})},_.H(EoG,{className:"yt-video-attribute-view-model__link-container",useATagConfig:!0,stopPropagation:!1,command:(U=_.sW(p.onTap))!=
null?U:_.aF(p.rendererContext),role:"group",ariaLabel:p.title,forceNewState:!0},p.heroText||p.image?_.H(AMe,{data:p}):null,_.H(tru,{data:p,sizeSmall:p.imageSize==="VIDEO_ATTRIBUTE_IMAGE_SIZE_SMALL"}))))};
Sqd=function(S){return{iconPosition:"icon-only",state:"active",style:"overlay",type:"text",size:"S",accessibilityLabel:S.overflowMenuA11yLabel,onTap:function(p){p.preventDefault();p.stopPropagation();if(S.overflowMenuOnTap){var U=_.gx({elementsCommand:S.overflowMenuOnTap,forceNewState:!0});if(U==null?0:U.onclick)U.onclick(p)}}}};
AMe=function(S){S=S.data;var p,U=((p=_.tW().resolve(_.AW(_.Cz)))==null?0:p())&&S.darkThemeImage?S.darkThemeImage:S.image;p=Sqd(S);return _.H("div",{class:"yt-video-attribute-view-model__hero-section"},U?_.H(_.of,{data:U,className:"yt-video-attribute-view-model__hero-image",alt:"",contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"}):S.heroText?_.H("div",{class:"yt-video-attribute-view-model__hero-text-wrapper"},_.H("span",{class:"yt-video-attribute-view-model__hero-text"},S.heroText)):null,S.overflowMenuOnTap?
_.H("div",{class:"yt-video-attribute-view-model__overflow-menu"},_.H(BG,{data:p,iconName:"MORE_VERT"})):null)};
tru=function(S){var p=S.data;S=S.sizeSmall;var U=p.containerStyle==="VIDEO_ATTRIBUTE_CONTAINER_STYLE_CARD",Y=_.sW(p.onTap)||_.aF(p.rendererContext);Y=_.gx({innertubeCommand:Y});Y=uT(Y);var L={};S={class:_.W7("yt-video-attribute-view-model__metadata",(L["yt-video-attribute-view-model--small-font"]=S,L)),role:Y?"link":"group"};Y=_.H("h1",{class:"yt-video-attribute-view-model__title"},p.title);U=p.subtitle?_.H("h4",{class:"yt-video-attribute-view-model__subtitle"},U?_.H(BFr,{text:qJR(p.subtitle),truncationText:qJR(p.subtitleTruncationText),
maxLines:2}):_.H("span",null,p.subtitle)):null;if(p.secondarySubtitle){L=p.secondarySubtitle;if(L!=null&&L.attachmentRuns){for(var I=[],V=_.d(L.attachmentRuns),W=V.next();!W.done;W=V.next())W=W.value,W.element&&I.push(Object.assign({},W,{element:Object.assign({},W.element,{properties:{layoutProperties:{height:{unit:"DIMENSION_UNIT_POINT",value:15},width:{unit:"DIMENSION_UNIT_POINT",value:15}}}})}));L=Object.assign({},L,{attachmentRuns:I})}L=_.H("span",{class:"yt-video-attribute-view-model__secondary-subtitle"},
_.H(_.i6,{text:L}))}else L=null;return _.H("div",S,Y,U,L,p.buttonViewModel?pfu(p.buttonViewModel,{buttonViewModel:{className:"yt-video-attribute-view-model__button"}}):null)};
_.qB=function(S,p,U,Y,L){Y=Y===void 0?{}:Y;if(!L||Math.random()<5E-4){p=p||null;U=U||null;S=S instanceof Error?S:new _.y7(S);if(S.args)for(var I=_.d(S.args),V=I.next();!V.done;V=I.next())V=V.value,V instanceof Object&&(Y=Object.assign({},V,Y));Y.category="H5 Ads Control Flow";p&&(Y.slot=p?"slot:  "+p.slotType:"");U&&(Y.layout=U?"layout:  "+U.layoutType:"",Y.layoutId=U.layoutId);L&&(Y.known_error_aggressively_sampled=!0);S.args=[Y];_.eP(S)}};
_.Uqe=function(S,p){_.St(S,"yt-open-popup-action",[_.iM(p),S])};
_.An=function(S,p){_.Uqe(S,_.Ec(p))};
Lye=function(S){if(!S)return"";if(Yqw[S])return Yqw[S];tn||(tn=_.JY("A"));tn.href!==S&&hA(tn,S);var p=tn.pathname;Yqw[S]=p.startsWith("/")?p:"/"+p;return Yqw[S]};
M2q=function(){var S=Lye(window.location.href);if(S==="/")return"home";if(S.startsWith("/results"))return"search";if(S.startsWith("/watch"))return"watch";if(S.startsWith("/shorts"))return"shorts";if(S.startsWith("/hashtag"))return"hashtag";if(S.startsWith("/create_channel"))return"create_channel";if(S.startsWith("/@")||S.startsWith("/user/")||S.startsWith("/channel/"))return"channel";if(S.startsWith("/experiments"))return"experiments";if(S.startsWith("/sponsor_channel"))return"sponsorship";if(S.startsWith("/select_site"))return"settings";
if(S.startsWith("/locate"))return"locate";if(S.startsWith("/redeem"))return"redeem";if(S.startsWith("/musicpremium")||S.startsWith("/premium")||S.startsWith("/red"))return"premium";if(S.startsWith("/paid_memberships"))return"paid_memberships";if(S.startsWith("/oops"))return"oops";if(S.startsWith("/clip"))return"clip";var p;return(cG==null?void 0:(p=cG.response)==null?void 0:p.page)==="404"?"404":S.startsWith("/feed/history")?"history":S.startsWith("/feed/library")?"library":S.startsWith("/feed/subscriptions")?
"subscriptions":S.startsWith("/feed/trending")?"trending":S.startsWith("/feed/news_destination")?"news":S.startsWith("/playlist")?"playlist":S.startsWith("/minor_moment")?"minor_moment":S.startsWith("/playable/")||S.match("^/playables/(?!saved).")?"mini_app":S.startsWith("/playables")?"playables":S.startsWith("/create/live/join")?"open_in_app":S.startsWith("/feed/explore")?"explore":"browse"};
_.TUw=function(){var S=cG==null?void 0:cG.response,p=S==null?void 0:S.endpoint;if(!p)return(S==null?void 0:S.page)==="watch"?"watch":M2q();var U;S=(U=_.b(p==null?void 0:p.commandMetadata,_.NU))==null?void 0:U.webPageType;U=!1;if(S&&!IyX.includes(S))switch(S){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 Y;return((Y=_.b(p==null?void 0:p.commandMetadata,_.NU))==null?0:Y.url)&&Lye(_.b(p.commandMetadata,_.NU).url).startsWith("/clip")?"clip":"watch";case "WEB_PAGE_TYPE_BROWSE":var L;return(p=(L=_.b(p,_.kM))==null?void 0:L.browseId)?dqr[p]||"browse":"browse";default:U=!0}if(_.b(p,_.SJ)||_.b(p,V2e))return"sponsorship";L=Lye(window.location.href);if(L.startsWith("/experiments"))return"experiments";if(L.startsWith("/create_channel"))return"create_channel";
if(_.b(p,_.Cv)&&L.startsWith("/shorts"))return"shorts";if(_.b(p,_.Cv)&&L.startsWith("/watch"))return"watch";U&&(p=new _.y7("Unsupported mWeb page type",{pathname:L,webPageType:S}),_.ZP(p));return"browse"};
pJ=function(S,p,U,Y){return S&&p?S!==U||p!==Y?(_.qB(Error("Fh"),void 0,void 0,{"stored-slot":S,"stored-layout":p,"latest-slot":U,"latest-layout":Y}),!1):!0:!1};
Wyw=function(S,p,U){return S({targetId:p},function(Y){return U.slot==="RELOAD_CONTINUATION_SLOT_HEADER"?Object.assign({},Y,{header:U.continuationItems?U.continuationItems[0]:void 0}):Object.assign({},Y,{contents:U.continuationItems?U.continuationItems:[]})})};
OVe=function(S,p,U,Y){if(p=p.trackingParams){var L,I=(L=U.getScreenLayer)==null?void 0:L.call(U);U=_.X$(I);L=_.F$(I);if(U&&L){var V=_.JS(p);_.y("combine_ve_grafts")?S.graftServerVe(p,L,I):_.wB(U,L,V);Y==null||Y(V)}}};
HVe=function(S){var p;return((p=kZw.get(S))==null?void 0:p.successEvent)||"ADS_CLIENT_EVENT_TYPE_UNSPECIFIED"};
QNu=function(S,p){var U={type:p.slotType,controlFlowManagerLayer:Dqu.get(p.managerLayer)||"CONTROL_FLOW_MANAGER_LAYER_UNSPECIFIED"};p.slotEntryTrigger&&(U.entryTriggerType=p.slotEntryTrigger.triggerType);p.slotPhysicalPosition!==1&&(U.slotPhysicalPosition=p.slotPhysicalPosition);if(S){U.debugData={slotId:p.slotId};if(S=p.slotEntryTrigger)U.debugData.slotEntryTriggerData=zQq(S);S=p.slotFulfillmentTriggers;U.debugData.fulfillmentTriggerData=[];S=_.d(S);for(var Y=S.next();!Y.done;Y=S.next())U.debugData.fulfillmentTriggerData.push(zQq(Y.value));
p=p.slotExpirationTriggers;U.debugData.expirationTriggerData=[];p=_.d(p);for(S=p.next();!S.done;S=p.next())U.debugData.expirationTriggerData.push(zQq(S.value))}return U};
zQq=function(S,p){var U={type:S.triggerType};p!=null&&(U.category=p);S.triggeringSlotId!=null&&(U.triggerSourceData||(U.triggerSourceData={}),U.triggerSourceData.associatedSlotId=S.triggeringSlotId);S.triggeringLayoutId!=null&&(U.triggerSourceData||(U.triggerSourceData={}),U.triggerSourceData.associatedLayoutId=S.triggeringLayoutId);return U};
nIw=function(S,p,U,Y){p={opportunityType:p};S&&(Y||U)&&(Y=_.Fp(Y||[],function(L){return QNu(S,L)}),p.debugData=Object.assign({},U&&U.length>0?{associatedSlotId:U}:{},Y.length>0?{slots:Y}:{}));
return p};
Jbe=function(S){return UE(S.opportunityAdapterMap).concat(UE(S.triggerAdapterMap)).concat(UE(S.fulfillmentAdapterFactoryMap)).concat(UE(S.slotAdapterFactoryMap)).concat(UE(S.layoutRenderingAdapterFactoryMap))};
UE=function(S){var p=[];S=_.d(S.values());for(var U=S.next();!U.done;U=S.next())U=U.value,U.isAdsControlFlowEventListener&&p.push(U);return p};
LJ=function(S){var p=S.slotId,U=S.slotType,Y=S.slotPhysicalPosition;return p===void 0?new Y9("Cannot construct a slot due to the missing id.",{adSlotMetadata:S}):U===void 0?new Y9("Cannot construct a slot due to the missing type.",{adSlotMetadata:S}):Y===void 0?new Y9("Cannot construct a slot due to the missing physical position.",{adSlotMetadata:S}):{slotId:p,slotType:U,slotPhysicalPosition:Y,managerLayer:"external",adSlotLoggingData:S.adSlotLoggingData,slotEntryTrigger:void 0,slotFulfillmentTriggers:[],
slotExpirationTriggers:[],clientMetadata:new ybX}};
KyN=function(S){var p=S.layoutId,U=S.layoutType;return p===void 0?new MP("Cannot construct a layout due to the missing id.",{adLayoutMetadata:S}):U===void 0?new MP("Cannot construct a layout due to the missing type.",{adLayoutMetadata:S}):{layoutId:p,layoutType:U,managerLayer:"external",adLayoutLoggingData:S.adLayoutLoggingData,trackingPings:new Map,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[],
clientMetadata:new ybX,interactionLoggingAdsClientData:{}}};
bVG=function(S){if((S=S.value)&&S.querySelector("img")){var p=S.querySelector("img");p.addEventListener("error",function(){ORw(p.src).then(function(U){(U=_.Kh(U).toString())?p.src=U:p.removeAttribute("src")}).catch(function(){p.src="data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mN8XA8AAksBZG7LpHYAAAAASUVORK5CYII="})})}};
db=function(S,p){if(p&&(jNw(p.viewableCommand)||jNw(p.endOfSessionCommand))){S=S.value;var U=rbG(p==null?void 0:p.viewableCommand);p=rbG(p==null?void 0:p.endOfSessionCommand);if(!IA){var Y=_.pA("custom_active_view_tos_timeout_ms");IA=Y>0&&Y!==36E5?new GZe(hQe(),Y):new GZe(hQe())}RQw(IA,S);FyE(IA,S,U,p)}};
V4=function(S){IA&&RQw(IA,S.value)};
hQe=function(){var S=_.g7("INNERTUBE_CONTEXT_CLIENT_VERSION","").match(/^\d+\.(\d{8})/);return(S==null?void 0:S.length)===2?S[1]:null};
jNw=function(S){S=_.sW(S);return!(S==null||!S.loggingUrls)&&S.loggingUrls.length>0};
rbG=function(S){if(!S)return[];var p=[],U,Y;((Y=(U=_.sW(S))==null?void 0:U.loggingUrls)!=null?Y:[]).forEach(function(L){L.baseUrl&&p.push(L.baseUrl)});
return p};
Xfq=function(S){return S.shorts.isDesktopSmallWidth};
_.P2r=function(S){return S.shorts.isWatchWhileMode};
_.Th=function(S){return S.shorts.isFullscreen};
_.WI=function(S){return S.shorts.isShortsPipActive};
sNk=function(S){var p,U;if(S=(p=_.b(S.reelsAdCardButtoned,ZVe))==null?void 0:(U=p.animatedRenderingConfig)==null?void 0:U.easeOutSeconds)return S+"s"};
gIR=function(S,p,U){return _.T(function(Y){return Y.return(new Promise(function(L){var I=new Image;I.onload=function(){L(new eQw(S,p,U,I.naturalWidth,I.naturalHeight))};
I.src=U.toString()}))})};
ueu=function(S,p){return Math.round(S/1E-5)===Math.round(p/1E-5)};
wfR=function(S,p){return Math.round(S/1E-5)===Math.round(p/1E-5)};
lyR=function(S,p){return S.year===p.year&&S.month===p.month&&S.day===p.day};
ayk=function(S,p){return S.year!==p.year?S.year<p.year:S.month!==p.month?S.month<p.month:S.day<p.day};
C2w=function(S){return S.day===fyw(S.year,S.month)?S.month===11?{year:S.year+1,month:0,day:1}:{year:S.year,month:S.month+1,day:1}:{year:S.year,month:S.month,day:S.day+1}};
xqe=function(){var S=new Date,p={year:S.getFullYear(),month:S.getMonth(),day:S.getDate()};return{start:p,end:{year:S.getFullYear()+2,month:S.getMonth(),day:S.getDate()},selectedDate:C2w(p)}};
EIX=function(S){return(new CK(2)).format(new Date(S.year,S.month,S.day))};
mqR=function(S){return{year:S.getFullYear(),month:S.getMonth(),day:S.getDate()}};
oIe=function(S,p){S=(S+(Number(p.utcOffsetSec)+(new Date(S*1E3)).getTimezoneOffset()*60))*1E3;p=mqR(new Date(S));return{date:p,secondsSinceMidnight:Math.floor((S-(new Date(p.year,p.month,p.day)).getTime())/1E3)}};
vIG=function(S,p){p=p.months.findIndex(function(U){return U.year===S.year&&U.month===S.month});
return p>=0?p:void 0};
$qw=function(S){if(!S)return!1;try{if(S.host&&S.host.tagName==="YT-FORMATTED-STRING"&&S.host.id==="contenteditable-textarea"||S.nodeType===Node.ELEMENT_NODE&&S.tagName==="YTD-COMMENTBOX")return!0}catch(p){return!1}return $qw(S.parentNode)};
OE=function(S){return S?!(S.tagName!=="A"||!S.href||!S.classList.contains("yt-simple-endpoint")):!1};
iVR=function(S){return S?S.tagName==="IMG"&&S.classList.contains("emoji"):!1};
NUw=function(S,p,U){if(!S)return null;var Y=OE(S);if(Y&&U)return p=S.pathname.substring(S.pathname.indexOf("/channel/")+9),document.createTextNode("@"+p);if(Y&&!U)return document.createTextNode("");if(iVR(S))return U=S.alt,S=S.dataset.emojiId,!S&&p&&(p=_.k9(p,U))&&p.isCustomEmoji&&(S=p.emojiId),S?document.createTextNode("<URehb0Lc5mi4S0dpuLG8:"+S+">"):document.createTextNode(U);Y=S.cloneNode(!1);for(var L=0;L<S.childNodes.length;++L){var I=NUw(S.childNodes[L],p,U);I&&Y.appendChild(I)}return Y};
HI=function(S){return S?OE(S)?S:HI(S.lastChild):null};
BUN=function(S){return S?OE(S)?S:BUN(S.firstChild):null};
qqk=function(S){if(!S)return null;for(var p=S.previousSibling;p;)if(p.nodeType===Node.ELEMENT_NODE&&p.nodeName==="BR")p=p.previousSibling;else if(p.nodeType===Node.TEXT_NODE&&/\s+/.test(p.textContent))p=p.previousSibling;else break;(p=HI(p))?S=p:S=(S=S.parentNode)?HI(S.previousElementSibling):null;return S};
Abq=function(S){if(!S)return null;for(var p=S.nextSibling;p;)if(p.nodeType===Node.ELEMENT_NODE&&p.nodeName==="BR")p=p.nextSibling;else if(p.nodeType===Node.TEXT_NODE&&/\s+/.test(p.textContent))p=p.nextSibling;else break;return(p=BUN(p))?p:Abq(S.parentNode)};
t2E=function(S){var p=_.Dp(),U=p.JSC$9248_getStartNode();if(!$qw(U.parentNode))return null;p=p.JSC$9248_getStartOffset();if(U.nodeType===Node.TEXT_NODE){var Y=_.uI(U,OE);if(Y){if(S&&p===0||!S&&p===U.length)return Y}else{if(S&&p===U.length)return!U||U.nodeName==="BR"||U.nextElementSibling&&_.zh(U.nextElementSibling,"display")==="block"?null:BUN(U.nextElementSibling);if(!S&&p===0)return U?HI(U.previousElementSibling):null}}if(U.nodeType===Node.ELEMENT_NODE)if(S){if(0<=p&&p<U.childNodes.length)return BUN(U.childNodes[p])}else if(0<
p&&p<=U.childNodes.length)return HI(U.childNodes[p-1]);return null};
cbk=function(S,p,U){if(!S)return null;if(S.nodeType===Node.TEXT_NODE)if(U){var Y=qqk(S);if(Y&&!/^\s+\S/.test(S.wholeText.substr(0,p)))return Y}else if((Y=Abq(S))&&!/\S\s+/.test(S.wholeText.substr(p,S.wholeText.length)))return Y;return S.nodeType===Node.ELEMENT_NODE?U?qqk(S.childNodes[p]):Abq(S.childNodes[p]):cbk(S.parentNode,p,U)};
Sue=function(S){if(S.hasChildNodes())switch(S.tagName){case "DIV":case "A":case "SPAN":var p="";for(S=S.firstChild;S;S=S.nextSibling)p+=Sue(S);return p;default:return""}else switch(S.nodeType){case 3:return S.textContent;default:return""}};
Q4=function(S,p){return S.year===p.year&&S.month===p.month&&S.day===p.day};
nJ=function(S,p){return S.year!==p.year?S.year<p.year:S.month!==p.month?S.month<p.month:S.day<p.day};
puw=function(S){return{year:S.getFullYear(),month:S.getMonth(),day:S.getDate()}};
Uew=function(S){var p=ESw;p=p===void 0?ESw:p;p(new Date(S.year,S.month,S.day))};
Jl=function(S){return puw(new Date(Number(S.seconds)*1E3))};
YuE=function(S){return S.year!==void 0&&S.month!==void 0&&S.day!==void 0};
LRR=function(S){return S.start!==void 0&&S.end!==void 0};
MBX=function(S){return LRR(S)?S.start:S};
IZG=function(S){return LRR(S)?S.end:void 0};
VBw=function(S,p){for(var U=[],Y=new Date(S.start.year,S.start.month);Y.getFullYear()<S.end.year||Y.getFullYear()===S.end.year&&Y.getMonth()<=S.end.month;){var L=U,I=L.push,V=Y.getFullYear(),W=Y.getMonth(),O=S,D=p,z=void 0,Q=[],J=Object.freeze({extraCssClass:"invisible"}),K=new Date(V,W),G=puw(K);K=K.getDay();for(var X=puw(new Date);G.month===W;){K!==dee&&z||(z=Array.from({length:7}).fill(J),Q.push(z));var Z={date:{year:V,month:W,day:G.day},extraCssClass:"",debugClass:""};Z.extraCssClass=D(Z.date,
G,X,O).trim();z[(K-dee+7)%7]=Z;G=G.day===fyw(G.year,G.month)?G.month===11?{year:G.year+1,month:0,day:1}:{year:G.year,month:G.month+1,day:1}:{year:G.year,month:G.month,day:G.day+1};K=(K+1)%7}I.call(L,{weeks:Q,monthLabel:y4.SHORTMONTHS[W]+" "+V,year:V,month:W,monthLabelExtraCssClass:Q[0][2]===J?"shift-down-label":""});Y.setMonth(Y.getMonth()+1)}return U};
The=function(S,p){p=p.months.findIndex(function(U){return U.year===S.year&&U.month===S.month});
return p>=0?p:void 0};
OBd=function(S,p){a:{var U=U===void 0?[2,3]:U;U=_.d(U);for(var Y=U.next();!Y.done;Y=U.next()){var L=new Date;if((new WRe(Y.value)).parse(p,L,{validate:!0})){L.setHours(0,0,0,0);p=L;break a}}p=null}if(!p)return{isValid:!1,value:void 0};p=puw(p);U=S.end;return nJ(p,S.start)||nJ(U,p)?{isValid:!1,value:void 0}:{isValid:!0,value:p}};
QDq=function(S){var p=k$G;p=p===void 0?HBX:p;var U=S.columnsToShow||[],Y=DeG(S.columnDimensions,S.columnsToShow,S.leftFloatingColumns,p);return U.map(function(L,I){var V=S.columns[L];if(V===void 0)throw Error("Lh");var W=Y?Y[I]:"";var O=S.getCustomTooltip?S.getCustomTooltip(L,V.headerTooltipParagraphs):V.headerTooltipParagraphs;var D=z3r(S,L);return{type:L,index:I,style:W,classes:D,headerName:V.headerName||"",headerIcon:V.headerIcon,headerTooltipParagraphs:O||[],headerTooltipHelpContext:V.headerTooltipHelpContext,
sortOrders:V.sortOrders||[],selectionState:V.isSelectionCheckbox?S.selectionState:void 0}})};
z3r=function(S,p){var U=["DEFAULTS","FLOATING","RIGHT_ALIGN","SORTING"],Y=S.columns[p];if(Y===void 0)return"";var L=U.includes("DEFAULTS")&&Y.cssClass?[Y.cssClass]:[];if(U.includes("SORTING")){Y.sortOrders&&Y.sortOrders.length&&L.push("sortable");if(S.sorting&&S.sorting.columnType===p)a:switch(S.sorting.sortOrder){case "ASCENDING":case "DESCENDING":var I="column-sorted";break a;default:I=""}else I="";I&&L.push(I)}U.includes("FLOATING")&&(p=S.columnsToShow.indexOf(p),S.leftFloatingColumns&&p<S.leftFloatingColumns&&
L.push("floating-column"),S.leftFloatingColumns&&p===S.leftFloatingColumns-1&&L.push("last-floating-column"));U.includes("RIGHT_ALIGN")&&Y.rightAlignHeader&&L.push("right-align");return L.filter(function(V){return V}).join(" ")};
DeG=function(S,p,U,Y){U=U===void 0?0:U;Y=Y===void 0?HBX:Y;if(S){var L=[],I=0;nfe(S,p,Y).forEach(function(V,W){var O="min-width:"+V.minWidth+"px;padding-left:"+V.paddingLeft+"px;padding-right:"+V.paddingRight+"px;flex:"+V.flexGrow+" 0 "+V.minWidth+"px;";V.maxWidth!==Infinity&&(O=[O,"max-width:"+V.maxWidth+"px;"].join(""));I>0&&W<U&&(O=[O,"left:"+I+"px;"].join(""));L.push(O);I+=V.minWidth+V.paddingLeft+V.paddingRight});
return L}};
nfe=function(S,p,U){U=U===void 0?HBX:U;return p.map(function(Y,L){Y=S&&S[Y]||{};var I=L===0?U.paddingLeftFirstColumn:U.padding;Y.paddingLeft!==void 0&&(I=Y.paddingLeft);L=L===p.length-1?U.paddingRightLastColumn:U.padding;Y.paddingRight!==void 0&&(L=Y.paddingRight);return{paddingLeft:I,paddingRight:L,minWidth:Y.minWidth!==void 0?Y.minWidth:U.minWidth,maxWidth:Y.maxWidth!==void 0?Y.maxWidth:U.maxWidth,flexGrow:Y.flexGrow!==void 0?Y.flexGrow:U.flexGrow}})};
JGe=function(S){var p=S.reduce(function(Y,L){var I=L.columnId,V={};L.headerText&&(V.headerName=_.mA(L.headerText));L.rightAlignHeader&&(V.rightAlignHeader=L.rightAlignHeader);var W;if((W=L.headerIcon)==null?0:W.iconType)V.headerIcon=_.If(L.headerIcon.iconType);Y[I]=V;return Y},{}),U=S.filter(function(Y){return!Y.hideColumn}).map(function(Y){return Y.columnId});
S=S.filter(function(Y){return!!Y.dimensions}).reduce(function(Y,L){Y[L.columnId]=L.dimensions;
return Y},{});
return{columns:p,columnsToShow:U,columnDimensions:S}};
_.yGu=function(S){return S?S.simpleText?S.simpleText:S.runs?S.runs.map(function(p){return p.text}).join(""):"":""};
G$w=function(S){var p=S.data;var U=S.onTap;var Y=S.isSelected;var L=S.onFocusIn;if(!p)return{};S=KRu(p);Y===void 0&&(Y=p==null?void 0:p.isSelected);var I;return{text:bBe(p,S),startIcon:(I=p.icon)==null?void 0:I.iconType,state:Y?0:2,type:0,onTap:jDR(p,U),accessibilityLabel:rGR(p,S),onFocusIn:function(){return L==null?void 0:L()}}};
bBe=function(S,p){if(!p)return S.text?_.yGu(S.text):void 0};
jDR=function(S,p){return function(U){p==null||p(U,S)}};
KRu=function(S){S=S.style&&S.style.styleType;return!h3w&&S==="STYLE_EXPLORE_LAUNCHER_CHIP"};
rGR=function(S,p){if(p){var U,Y,L;return(L=(U=S.accessibilityData)==null?void 0:(Y=U.accessibilityData)==null?void 0:Y.label)!=null?L:bBe(S,!1)}};
KJ=function(S){return{signalAction:{signal:S}}};
Xuw=function(){return _.g7("INNERTUBE_CLIENT_NAME")==="WEB_REMIX"?R3G:_.FRG};
P_e=function(S,p){S=S===void 0?"SOFT_RELOAD_PAGE":S;p=p===void 0?49504:p;return{style:"STYLE_OVERLAY",size:"SIZE_DEFAULT",text:_.Aa(_.Oh("RETRY",void 0,"Retry")),loggingDirectives:{clientVeSpec:{uiType:p}},serviceEndpoint:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{signalAction:{signal:S}}]}}}};
ZBw=function(){return{style:"STYLE_SUGGESTIVE",size:"SIZE_SMALL",text:_.Aa(_.Oh("GO_TO_DOWNLOADS",void 0,"Go to downloads")),loggingDirectives:{clientVeSpec:{uiType:49503}},navigationEndpoint:Xuw()}};
sDe=function(){return{style:"STYLE_LIGHT_TEXT",size:"SIZE_DEFAULT",text:_.Aa(_.Oh("VIEW_DOWNLOADS",void 0,"View")),loggingDirectives:{clientVeSpec:{uiType:98970}},navigationEndpoint:Xuw()}};
e3N=function(S,p){var U=_.Aa(_.Oh("CONNECT_TO_THE_INTERNET",void 0,"Connect to the internet")),Y=_.Aa(_.Oh("OFFLINE_CHECK_CONNECTION",void 0,"You're offline. Check your connection.")),L={style:"STYLE_SUGGESTIVE",size:"SIZE_SMALL",text:_.Aa(_.Oh("RETRY",void 0,"Retry")),loggingDirectives:{clientVeSpec:{uiType:49504}}};L.serviceEndpoint=S?S:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[KJ("SOFT_RELOAD_PAGE")]}};return{title:U,bodyText:Y,icon:{iconType:"OFFLINE_NO_CONTENT"},ctaButton:{reloadPageButtonRenderer:L},
style:{value:p!=null?p:"BACKGROUND_PROMO_STYLE_TYPE_FULL_HEIGHT"},loggingDirectives:{clientVeSpec:{uiType:22233}}}};
ukE=function(S){S=S===void 0?{}:S;return{title:_.Aa(S.localizedZeroStateTitleText===void 0?"":S.localizedZeroStateTitleText),bodyText:_.Aa(S.localizedZeroStateMessage===void 0?"":S.localizedZeroStateMessage),ctaButton:{toggleButtonRenderer:{style:{styleType:"STYLE_PRIMARY"},size:{sizeType:"SIZE_DEFAULT"},defaultText:_.Aa(S.localizedZeroStateButtonText===void 0?"":S.localizedZeroStateButtonText),isDisabled:!1,defaultServiceEndpoint:{updateLocalAppSettingCommand:{settingItemId:"SMART_DOWNLOADS_ENABLED",
boolValue:!0}},loggingDirectives:{clientVeSpec:{uiType:127983}}}},thumbnail:{thumbnails:[gfk]},style:{value:"BACKGROUND_PROMO_STYLE_TYPE_ADAPTIVE_FULL_HEIGHT"},loggingDirectives:{clientVeSpec:{uiType:127982}}}};
_.aZe=function(S,p,U,Y,L,I,V,W){Y=Y===void 0?!1:Y;L=L===void 0?!1:L;I=I===void 0?0:I;V=V===void 0?-Infinity:V;W=W===void 0?!1:W;var O=[],D=_.Aa(_.Oh("SMART_DOWNLOADS",void 0,"Smart downloads"));V=_.Aa(wue(I,V,S.length));I=void 0;Y?I=S.length>0?lZe(S,"RICH_SHELF_ENTITY_SELECTOR_TYPE_DOWNLOADS_PAGE_SMART_DOWNLOADS",_.y("kevlar_manual_downloads_above"),D,V):W?{alertBannerViewModel:{heading:{content:U.localizedOptInBannerTitleText===void 0?"":U.localizedOptInBannerTitleText},body:{content:U.localizedPromptMessage===
void 0?"":U.localizedPromptMessage},type:"ALERT_BANNER_TYPE_INFORMATIONAL",hideIcon:!0,actionButton:{buttonViewModel:{title:_.Oh("UPDATE_SMART_DOWNLOADS_NOW",void 0,"Update now"),accessibilityText:_.Oh("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:_.LSw}]}}}}},rendererContext:{loggingContext:{loggingDirectives:{clientVeSpec:{uiType:129729}}}}}}:{backgroundPromoRenderer:{bodyText:_.Aa(_.Oh("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"}}}:L&&(I={alertBannerViewModel:{heading:{content:U.localizedOptInBannerTitleText===void 0?"":U.localizedOptInBannerTitleText},body:{content:U.localizedOptInMessage===
void 0?"":U.localizedOptInMessage},type:"ALERT_BANNER_TYPE_INFORMATIONAL",hideIcon:!0,actionButton:{buttonViewModel:{title:_.Oh("TURN_ON",void 0,"Turn on"),accessibilityText:_.Oh("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}}}}}});U=_.Aa(_.Oh("YOUR_DOWNLOADS",void 0,"Your downloads"));L=void 0;p.length>0?(L=void 0,_.y("kevlar_display_downloads_numbers")&&(L=_.Aa(_.kd("VIDEO_COUNT",p.length))),L=lZe(p,"RICH_SHELF_ENTITY_SELECTOR_TYPE_DOWNLOADS_PAGE_MANUAL_DOWNLOADS",!0,U,L)):Y||S.length||(L={backgroundPromoRenderer:{bodyText:_.Aa(_.Oh("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}}}});I&&!_.y("kevlar_manual_downloads_above")&&O.push({richSectionRenderer:{content:I,loggingDirectives:{clientVeSpec:{uiType:139572}}}});L&&O.push({richSectionRenderer:{content:L,loggingDirectives:{clientVeSpec:{uiType:51721}}}});I&&_.y("kevlar_manual_downloads_above")&&O.push({richSectionRenderer:{content:I,loggingDirectives:{clientVeSpec:{uiType:139572}}}});(p.length>0||Y&&S.length>0)&&O.push({richSectionRenderer:{content:{messageRenderer:{subtext:{messageSubtextRenderer:{text:_.Aa(_.Oh("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}};
_.C_w=function(S){return fZG(S,"RICH_SHELF_ENTITY_SELECTOR_TYPE_SMART_DOWNLOADS_PAGE")};
_.xeN=function(S){return fZG(S,"RICH_SHELF_ENTITY_SELECTOR_TYPE_OFFLINE_HOME_PAGE")};
fZG=function(S,p){var U=[];S=lZe(S,p,!0);U.push({richSectionRenderer:{content:S}});return{contents:U}};
lZe=function(S,p,U,Y,L){U=U===void 0?!1:U;var I="RESPONSIVE_SIZE_STANDARD";_.y("kevlar_modern_downloads_compact")?I="RESPONSIVE_SIZE_COMPACT":_.y("kevlar_modern_downloads_extra_compact")&&(I="RESPONSIVE_SIZE_EXTRA_COMPACT");S={isExpanded:U,contents:bO(S),entitySelectorType:p,responsiveContainerConfiguration:{responsiveSize:I}};Y&&(S.title=Y);L&&(S.subtitle=L);U||(_.y("kevlar_smart_downloads_show_more_button")?(S.showMoreButton={buttonRenderer:{accessibility:{label:_.Oh("SHOW_MORE",void 0,"Show more")},
icon:{iconType:"EXPAND"},style:"STYLE_OPACITY",size:"SIZE_DEFAULT",loggingDirectives:{clientVeSpec:{uiType:192921}},text:_.Aa(_.Oh("SHOW_MORE",void 0,"Show more"))}},S.showLessButton={buttonRenderer:{accessibility:{label:_.Oh("SHOW_LESS",void 0,"Show less")},icon:{iconType:"COLLAPSE"},style:"STYLE_OPACITY",size:"SIZE_DEFAULT",text:_.Aa(_.Oh("SHOW_LESS",void 0,"Show less"))}}):(S.previousButton={buttonViewModel:{iconName:"CHEVRON_LEFT",accessibilityText:_.Oh("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}}}},S.nextButton={buttonViewModel:{iconName:"CHEVRON_RIGHT",accessibilityText:_.Oh("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}}}},S.menu={menuRenderer:{topLevelButtons:[{buttonViewModel:{title:_.Oh("VIEW_ALL",void 0,"View all"),accessibilityText:_.Oh("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:Bd("FEsmart_downloads","/feed/smart_downloads",248381)}}}]}}));return{richShelfRenderer:S}};
bO=function(S){var p=[];S=_.d(S);for(var U=S.next();!U.done;U=S.next())if(U=U.value,Csu(U)){var Y=p,L=Y.push;var I=void 0;if(U==null?0:(I=U.videoEntity)==null?0:I.videoId){I=gt(_.vJ().getState(),U.videoEntity.videoId);var V=_.vJ().getState();var W=_.M9(U.videoEntity.videoId,"mainVideoEntity");V=!!_.bM(V.entities)[W];V={videoId:U.videoEntity.videoId,title:ta(U.videoEntity.title),shortBylineText:ta(U.channelEntity.title),thumbnail:U.videoEntity.thumbnail,loggingDirectives:{clientVeSpec:{uiType:V&&_.y("kevlar_modern_downloads_page")?
129218:42356}},navigationEndpoint:Caw(U.videoEntity.videoId,I,U.videoEntity.lengthSeconds),badges:[{metadataBadgeRenderer:{label:_.Oh("DOWNLOADED",void 0,"Downloaded"),style:"BADGE_STYLE_TYPE_SIMPLE"}}]};U.videoEntity.lengthSeconds&&(V.thumbnailOverlays=due(U.videoEntity.lengthSeconds,I));V.isWatched=I>0;_.y("kevlar_modern_downloads_page")&&(V.menu={menuRenderer:{items:[{menuServiceItemDownloadRenderer:{serviceEndpoint:{offlineVideoEndpoint:{videoId:U.videoEntity.videoId}}}}],accessibility:{accessibilityData:{label:_.Oh("VIDEO_ACTION_MENU",
void 0,"Action menu")}}}},V.badges=void 0);U=V}else U={};L.call(Y,{richItemRenderer:{content:{videoRenderer:U},entitySelectorType:"RICH_ITEM_ENTITY_SELECTOR_TYPE_VIDEO"}})}else if(fEq(U)){Y=p;L=Y.push;var O=W=I=void 0,D=void 0,z=void 0,Q=void 0,J=void 0,K=void 0,G=void 0,X=void 0,Z=void 0,l=void 0;V=U.mainPlaylistEntity.playlistId;var a=U==null?void 0:(l=U.mainPlaylistEntity)==null?void 0:(Z=l.thumbnailStyleData)==null?void 0:(X=Z[0])==null?void 0:(G=X.value)==null?void 0:(K=G.collageThumbnail)==
null?void 0:K.coverThumbnail;if(V&&a){K=xVe(V);!_.y("enable_offline_playlist_page")&&(U==null?0:(J=U.mainPlaylistEntity)==null?0:J.videos)&&(J=U==null?void 0:(Q=U.mainPlaylistEntity)==null?void 0:(z=Q.videos)==null?void 0:z[0],z=_.Uc(J).entityId,z=JSON.parse(z).videoId,z!==void 0&&(Q=gt(_.vJ().getState(),z),K=_.qw(z,V,void 0,void 0,Q)));z=[];if(U==null?0:(D=U.mainPlaylistEntity)==null?0:(O=D.videos)==null?0:O.length)z=[xcG(),Object.assign({},(W=CBq(U==null?void 0:U.mainPlaylistEntity.videos.length))!=
null?W:{})];U={playlistId:V,thumbnailRenderer:{playlistVideoThumbnailRenderer:{thumbnail:a}},navigationEndpoint:K,loggingDirectives:{clientVeSpec:{uiType:42357}},thumbnailOverlays:z,title:ta(U.mainPlaylistEntity.title),shortBylineText:ta(U==null?void 0:(I=U.channelEntity)==null?void 0:I.title),badges:[{metadataBadgeRenderer:{label:_.Oh("DOWNLOADED",void 0,"Downloaded"),style:"BADGE_STYLE_TYPE_SIMPLE"}}]};_.y("kevlar_modern_downloads_page")&&(U.menu={menuRenderer:{items:[{menuServiceItemRenderer:{text:EfX,
icon:{iconType:"DELETE"},serviceEndpoint:{offlinePlaylistEndpoint:{playlistId:V,action:"ACTION_REMOVE_WITH_PROMPT"}}}}],accessibility:{accessibilityData:{label:_.Oh("VIDEO_ACTION_MENU",void 0,"Action menu")}}}},U.badges=void 0)}else U=void 0;L.call(Y,{richItemRenderer:{content:{playlistRenderer:U},entitySelectorType:"RICH_ITEM_ENTITY_SELECTOR_TYPE_PLAYLIST"}})}return p};
wue=function(S,p,U){S=S?mew(S):"";p!==void 0&&isFinite(p)?p===0?p=_.Oh("UPDATING",void 0,"Updating..."):(p=IrG(new Date(p),new Date),p=_.Oh("UPDATED_TIME",{relative_time:p},"Updated "+p)):p="";var Y="";S&&p&&(Y=" \u2022 ");if(U&&_.y("kevlar_display_downloads_numbers")){U=_.kd("VIDEO_COUNT",U);if(S||p)Y=" \u2022 ";return U+Y+S+Y+p}return S+Y+p};
ofq=function(S){return ZLN(S.entities).length};
_.vfr=function(S,p){var U=Vrq(S.responsiveSize),Y;S=!((Y=S.responsiveMap)==null||!Y.some(function(L){return L.containerSize==="CONTAINER_SIZE_NARROW"&&L.containerType==="CONTAINER_TYPE_VERTICAL_LIST"}));
return{marginSettings:2,containerWidth:p,sizing:U,enableFullBleedForSingleCol:!1,isCompactList:U==="COMPACT"&&S}};
$ew=function(S,p){return _.I4(S.entities,"votingEntity",p)};
iBq=function(S){if(S){var p;return((p=_.tW().resolve(_.AW(_.Cz)))==null?0:p())?S.darkTheme:S.lightTheme}};
Nhw=function(S,p){if(S.simpleText)return Object.assign({},S,{simpleText:af(S.simpleText,p)});if(!S.runs)return S;for(var U=Object.assign({},S,{runs:[]}),Y=0,L=_.d(S.runs),I=L.next();!I.done;I=L.next())if(I=I.value,I.text)if(Y+I.text.length<=p)U.runs.push(I),Y+=I.text.length;else return U.runs.push(Object.assign({},I,{text:af(I.text,p-Y)})),U;return S};
BhE=function(S,p){return _.I4(S.entities,"chipBarStateEntity",p)};
quw=function(S,p){return _.I4(S.entities,"chipEntity",p)};
tBN=function(S,p,U,Y){return function(){var L=AGE.has(S.displayType)&&S.selected,I=L&&S.deselectCommand?S.deselectCommand:S.tapCommand;!I||L&&Y||_.wx(I,{form:{element:p==null?void 0:p.value}});U==null||U()}};
cGd=function(S){switch(S){case "DIVIDER_STYLE_FULL_BLEED_4_PX":return"divider-view-model-wiz__base-divider--full-bleed-4px";case "DIVIDER_STYLE_FULL_BLEED_THICK":return"divider-view-model-wiz__base-divider--full-bleed-thick";case "DIVIDER_STYLE_FULL_BLEED_8_PX":return"divider-view-model-wiz__base-divider--full-bleed-8px";case "DIVIDER_STYLE_FULL_BLEED_12_PX":return"divider-view-model-wiz__base-divider--full-bleed-12px";default:return""}};
Sfw=function(S,p){return{triggeringElement:S,onDwellTriggeredFn:function(){var U={triggeringElement:S,loadVideoPreviewEventData:p},Y=document.querySelector(".video-preview");Y&&Y.dispatchEvent(new CustomEvent("yt-load-video-preview",{detail:U}))},
onDwellEndFn:function(){var U=document.querySelector(".video-preview");U&&U.dispatchEvent(new CustomEvent("yt-end-video-preview"))}}};
pZX=function(S,p){var U=_.tW().resolve(_.AW(BfR)),Y=function(){var L=p();return U&&L?Sfw(S.value,L):null};
_.R8(function(){var L=Y();U&&L&&Promise.resolve().then(function(){U.registerElement(L)});
_.FG(function(){U&&L&&Promise.resolve().then(function(){U.unregisterElement(L)})})})};
Yfe=function(S){var p=S.dataset.resizeObserverId;if(p)return p;p=""+UiX++;return S.dataset.resizeObserverId=p};
LTG=function(S,p){var U=Yfe(S);jJ.has(U)||jJ.set(U,new Set);jJ.get(U).add(p);rb.has(U)&&p(Object.assign({},{target:S},rb.get(U)))};
MKw=function(S){S=_.d(S);for(var p=S.next();!p.done;p=S.next()){p=p.value;var U=Yfe(p.target),Y=Object.assign({},{target:p.target},rb.get(U));if(Y!=null&&Y.contentRect?Y.contentRect.width!==p.contentRect.width||Y.contentRect.height!==p.contentRect.height:1)for(rb.set(U,{borderBoxSize:p.borderBoxSize,contentBoxSize:p.contentBoxSize,contentRect:p.contentRect,devicePixelContentBoxSize:p.devicePixelContentBoxSize}),U=_.d(jJ.get(U)||[]),Y=U.next();!Y.done;Y=U.next())Y=Y.value,Y(p)}};
diw=function(){return Gh?Gh:Gh=new Ifw(MKw)};
VKN=function(S,p){var U=Yfe(S);jJ.has(U)&&(jJ.get(U).delete(p),jJ.get(U).size===0&&(jJ.delete(U),rb.delete(U),Gh.unobserve(S),delete S.dataset.resizeObserverId));jJ.size===0&&Gh&&(Gh.disconnect(),Gh=void 0)};
WTE=function(S,p){var U=_.tW().resolve(AU);return TLX.map(function(Y){return U.observe(S,p,Y)})};
Odw=function(S){var p=_.tW().resolve(AU);S.forEach(function(U){p.unobserveByKey(U)})};
_.Die=function(S,p){var U=Object.assign({},kiX,p);p=_.d(e8X());var Y=p.next().value,L=p.next().value,I=function(V){var W=V.contentRect.height;if((V=V.contentRect.width)||W||U.canHaveZeroSize)Y.width()===V&&Y.height()===W||L(Y,{height:W,width:V})};
_.FM(function(){var V=S instanceof HTMLElement?S:S.value,W=Hde(I,U.throttleMs),O=[];U.useVisibilityObserver&&(O=WTE(V,function(D,z){requestAnimationFrame(function(){z==="visible"?(LTG(V,W),diw().observe(V)):VKN(V,W)})}));
O.length||(LTG(V,W),diw().observe(V));_.FG(function(){O.length&&(Odw(O),O.length=0);VKN(V,W)})});
return Y};
Qve=function(S){var p=S.data;var U=S.callback;var Y=S.enableSingleChipSelection;var L=S.disableChipsScrollAnimation;var I=_.$v(),V=PQ(!1),W=PQ(0);S={};S=_.d(VP(p.autoselectedChipIndex!=null?(S[p.autoselectedChipIndex]=!0,S):{}));var O=S.next().value,D=S.next().value,z=function(){var Je=I.value;return Je==null||Je.scrollLeft-1<=0},Q=function(){var Je=I.value;
return Je==null?!1:Je.scrollLeft+1>=(Je==null?NaN:Je.scrollWidth)-(Je==null?NaN:Je.clientWidth)};
S=_.d(VP(z()));var J=S.next().value,K=S.next().value;S=_.d(VP(Q()));var G=S.next().value,X=S.next().value;S=p.isHorizontallyScrollable;var Z=function(Je){I.value!=null&&(_.g7("HTML_DIR")==="rtl"&&(Je=-Je),I.value.scrollBy({left:Je,behavior:L?"instant":"smooth"}))},l=function(){Z(-320)},a=function(){Z(320)},N=_.kL(function(Je){V.value=!0;
W.value=Je.clientX}),m=_.kL(function(Je){if(V.value){Je=Je.clientX;
var GG=Je-W.value;W.value=Je;var Zw;(Zw=I.value)==null||Zw.scrollBy({left:-GG})}}),A=_.kL(function(){var Je=z(),GG=Q();
Je!==J&&K(Je);GG!==G&&X(GG)});
qW("pointerup",function(){V.value&&(V.value=!1)});
var q={},TG={};return _.H("chips-shelf-view-model",{class:"ytChipsShelfViewModelHost"},qd(p.title,function(){return _.H("div",{class:"ytChipsShelfViewModelChipsShelfHeader"},_.H("h2",{class:"ytChipsShelfViewModelChipsShelfTitle"},p.title),zGk(p.overflowButton))}),_.H("div",{class:"ytChipsShelfViewModelChipsShelfContent"},qd(p.previousButton!=null,function(){var Je={};
return _.H("div",{class:_.W7("ytChipsShelfViewModelLeftArrowContainer",(Je.ytChipsShelfViewModelLeftArrowContainerIsHidden=J,Je))},zGk(p.previousButton,{buttonViewModel:{className:"ytChipsShelfViewModelLeftArrow",onClick:l}}))}),_.H("div",{el:I,
"on:pointerdown":N,"on:pointermove":m,"on:scroll":A,class:_.W7("ytChipsShelfViewModelChipsScrollContainer",(q.ytChipsShelfViewModelChipsScrollContainerIsHorizontallyScrollable=!!S,q))},_.H("div",{class:_.W7("ytChipsShelfViewModelChipsContainer",(TG.ytChipsShelfViewModelChipsContainerIsHorizontallyScrollable=!!S,TG.ytChipsShelfViewModelChipsContainerIsHorizontallyScrollableFeaturePhone=!!S&&!1,TG))},(p.contents||[]).map(function(Je,GG){return _.H("div",{class:"ytChipsShelfViewModelChipWrapper"},zGk(Je,
{chipViewModel:{callback:function(Zw,Ru){if(Y){var sX={};D((sX[GG]=Ru,sX))}else sX={},D(Object.assign({},O,(sX[GG]=Ru,sX)));U==null||U(Zw,Ru,GG)},
disableDeselection:Y,selected:!!O[GG]}}))}))),qd(p.nextButton!=null,function(){var Je={};
return _.H("div",{class:_.W7("ytChipsShelfViewModelRightArrowContainer",(Je.ytChipsShelfViewModelRightArrowContainerIsHidden=G,Je))},zGk(p.nextButton,{buttonViewModel:{className:"ytChipsShelfViewModelRightArrow",onClick:a}}))})))};
Jow=function(S,p,U,Y,L){S=p?S.switchOffCommand:S.switchOnCommand;if(Y&&L)npR(S,U,L);else{var I,V;(I=_.gx({elementsCommand:S}))==null||(V=I.onclick)==null||V.call(I,U)}};
npR=function(S,p,U){S=_.gx({elementsCommand:S,additionalCommandArgs:{commandController:{onSuccess:function(){U(!1)},
onServerError:function(){U(!1)}}}});
if(S==null?0:S.onclick)S.onclick(p),U(!0)};
KTG=function(S){if(S)return _.b(S,yor)};
hGX=function(S,p,U){if(p)return[bdw];switch(S){case "TRANSFER_STATE_TRANSFER_IN_QUEUE":case "TRANSFER_STATE_COMPLETE":return[hl];case "TRANSFER_STATE_PRE_TRANSFER":case "TRANSFER_STATE_TRANSFERRING":return U?[hl]:[jvd,hl];case "TRANSFER_STATE_PAUSED_BY_USER":return[roN,hl];case "TRANSFER_STATE_FAILED":case "TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH":return[Gid,hl];default:return[bdw]}};
RGw=function(S,p,U,Y){return hGX(S,p,Y).map(function(L){var I=L.text,V=L.iconType,W=L.videoAction;L=L.playlistAction;I=I?{content:I}:void 0;V=V&&{sources:[{clientResource:{imageName:V}}]};var O=(0,_.h9.unsafeClone)(U);if(O){var D=_.b(O,_.MB),z=_.b(O,_.d8);D&&W?D.action=W:z&&L&&(z.action=L)}return{title:I,leadingImage:V,rendererContext:O&&{commandContext:{onTap:{innertubeCommand:O}}}}})};
FTr=function(S){S=_.aF(S.rendererContext);var p;return(p=_.b(S,_.d8))==null?void 0:p.playlistId};
XZe=function(S){var p;return(p=S.listItems)==null?void 0:p.some(function(U){var Y;return _.f6((Y=_.b(U,_.kO))==null?void 0:Y.rendererContext)})};
ZdN=function(S){var p;return(p=S.listItems)==null?void 0:p.some(function(U){U=_.b(U,_.kO);return!!_.b(U==null?void 0:U.leadingAccessory,Pyu)})};
RA=function(S){var p=_.tW().resolve(_.AW(_.Cz));return p!=null&&p()?S.darkThemeColorPalette:S.lightThemeColorPalette};
XN=function(S){return{primaryTextColor:FN(S,0),secondaryTextColor:FN(S,1),optionColor:FN(S,2),backgroundColor:FN(S,3),videoBackgroundColor:FN(S,4)}};
FN=function(S,p){if(S){switch(p){case 0:S=S.primaryTitleColor;break;case 1:S=S.secondaryTitleColor;break;case 2:S=S.surgeColor;break;case 3:S=S.section2Color;break;case 4:S=S.section3Color;break;default:return}if(S)return _.s1(S)}};
svR=function(S){return S?_.ev(S):""};
eGe=function(S){return(S==null?void 0:S.contentType)==="LOCKUP_CONTENT_TYPE_SOURCE"?64:void 0};
gpX=function(S,p){var U;return"linear-gradient(to bottom, "+((U=p==null?void 0:p.map(function(Y){var L=S?Y.darkThemeColor:Y.lightThemeColor;return L?_.ev(L)+" "+((Y==null?void 0:Y.startLocation)||0)*100+"%":"transparent"}))==null?void 0:U.join(", "))+")"};
u9w=function(S,p,U,Y,L){if(!((Y==null?0:Y.height)&&(Y==null?0:Y.width)))return{size:0};var I=Y.width;Y=Y.height;if(L)return p==="CONTENT_PREVIEW_IMAGE_STYLE_HORIZONTAL_RECTANGLE_16_BY_9"||p==="CONTENT_PREVIEW_IMAGE_STYLE_CUSTOM_ASPECT_RATIO"&&I>Y?{size:312/j$e}:p==="CONTENT_PREVIEW_IMAGE_STYLE_VERTICAL_RECTANGLE_2_BY_3"?{size:160}:{size:312};if(!(U!=="CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_FULL_WIDTH"||S!==1&&S!==2||p!=="CONTENT_PREVIEW_IMAGE_STYLE_SQUARE"&&p!=="CONTENT_PREVIEW_IMAGE_STYLE_CIRCLE"&&p!==
"CONTENT_PREVIEW_IMAGE_STYLE_HORIZONTAL_RECTANGLE_16_BY_9"))return{allowFullWidth:!0};if(p==="CONTENT_PREVIEW_IMAGE_STYLE_SQUARE"||p==="CONTENT_PREVIEW_IMAGE_STYLE_CIRCLE"||Y===I)switch(S){case 1:return{size:208};case 2:case 3:return{size:240};default:return{size:360}}if(p==="CONTENT_PREVIEW_IMAGE_STYLE_VERTICAL_RECTANGLE_2_BY_3"||Y>I)switch(S){case 1:case 3:return{size:240*biw};default:return{size:360*biw}}switch(S){case 1:case 2:return{size:1/j$e*(window.innerWidth-32)};case 3:return{size:160};
default:return{size:240}}};
_.wZu=function(S){if(!("matchMedia"in window))return _.fU(Error("Mh")),function(){return!1};
var p=window.matchMedia(S);S=_.d(_.kj(p.matches,void 0,"jLJc8e"));var U=S.next().value,Y=S.next().value,L=function(I){Y(I.matches)};
p.addEventListener?(p.addEventListener("change",L),_.FG(function(){p.removeEventListener("change",L)})):p.addListener&&(p.addListener(L),_.FG(function(){p.removeListener(L)}));
return U};
lfR=function(S){return S==="IMAGE_BANNER_STYLE_INSET"||S==="IMAGE_BANNER_STYLE_UNKNOWN"};
afr=function(){if(!("matchMedia"in window))return _.fU(Error("Mh")),function(){return 0};
var S=XM(function(){return window.matchMedia("(max-width: 527.9px)")}),p=XM(function(){return window.matchMedia("(min-width: 528px) and (max-width: 839.9px)")}),U=XM(function(){return window.matchMedia("(min-width: 840px) and (max-width: 1023.9px)")}),Y=XM(function(){return window.matchMedia("(min-width: 1024px)")}),L=_.d(_.kj(S.matches,void 0,"og9kEc")),I=L.next().value,V=L.next().value;
L=_.d(_.kj(p.matches,void 0,"ybDWCb"));var W=L.next().value,O=L.next().value;L=_.d(_.kj(U.matches,void 0,"o0Gfh"));var D=L.next().value,z=L.next().value;L=_.d(_.kj(Y.matches,void 0,"yqUUgd"));var Q=L.next().value,J=L.next().value,K=XM(function(){return function(l){V(l.matches)}}),G=XM(function(){return function(l){O(l.matches)}}),X=XM(function(){return function(l){z(l.matches)}}),Z=XM(function(){return function(l){J(l.matches)}});
_.FM(function(){S.addEventListener?(S.addEventListener("change",K),p.addEventListener("change",G),U.addEventListener("change",X),Y.addEventListener("change",Z)):S.addListener&&(S.addListener(K),p.addListener(G),U.addListener(X),Y.addListener(Z));_.FG(function(){S.removeEventListener?(S.removeEventListener("change",K),p.removeEventListener("change",G),U.removeEventListener("change",X),Y.removeEventListener("change",Z)):S.removeListener&&(S.removeListener(K),p.removeListener(G),U.removeListener(X),
Y.removeListener(Z))})});
return function(){return I()?1:W()?2:D()?3:Q()?4:0}};
ffw=function(S){var p=0;S=_.d([S.title,S.metadata,S.actions,S.description,S.attribution]);for(var U=S.next();!U.done;U=S.next())U.value&&p++;return p};
Cyk=function(S){return S===1||S===2?1:0};
Epd=function(S){var p,U=((p=_.tW().resolve(_.AW(_.Cz)))==null?0:p())&&S.data.darkThemeImage?S.data.darkThemeImage:S.data.image;p=_.H("div",{class:"ytwSearchFrictionViewModelHostImageAndMenuWrapper"},_.H("div",{class:"ytwSearchFrictionViewModelHostImageContainer"},U?_.H(_.of,{data:U,alt:"",className:"ytwSearchFrictionViewModelHostImage"}):null),xid(S.data.overflowMenuButton,{buttonViewModel:{className:"ytwSearchFrictionViewModelHostMenuButton"}}));U=_.H(_.i6,{text:S.data.title,className:"ytwSearchFrictionViewModelHostTitle"});
var Y=S.data;if(Y.bodyText){var L=[];Y=_.d(Y.bodyText);for(var I=Y.next();!I.done;I=Y.next())L.push(_.H(_.i6,{text:I.value,className:"ytwSearchFrictionViewModelHostBodyText"}))}else L=_.H(_.U0,null);return _.H("ytw-search-friction-view-model",{class:"ytwSearchFrictionViewModelHost"},p,U,L,xid(S.data.actions,{buttonViewModel:{className:"ytwSearchFrictionViewModelHostButton"}}),_.H(_.i6,{text:S.data.disclaimer,className:"ytwSearchFrictionViewModelHostDisclaimer"}),_.H(_.i6,{text:S.data.attribution,
className:"ytwSearchFrictionViewModelHostAttribution"}))};
opw=function(S){S=(new miw).parse(S);return(new dn).render(S).replace(/\b(?:\d{1,2}:)?(?:\d{1,2}:)\d{1,2}\b/g,function(p){var U=p.split(":").map(Number),Y=0,L=0;if(U.length===3)U=_.d(U),Y=U.next().value,L=U.next().value,U=U.next().value;else if(U.length===2)U=_.d(U),L=U.next().value,U=U.next().value;else if(U.length===1)U=_.d(U).next().value;else throw Error("Nh");return'<span class="ytwMarkdownDivTimestamp" data-time="'+(Y*3600+L*60+U)+'" role="button">'+p+"</span>"})};
vpw=function(S){S=_.d(S.getElementsByClassName("ytwMarkdownDivTimestamp"));for(var p=S.next(),U={};!p.done;U={clickHandler$jscomp$4:void 0},p=S.next()){p=p.value;U.clickHandler$jscomp$4=function(L){L=Number(L.target.getAttribute("data-time"));if(isNaN(L))throw Error("Oh");var I;(I=_.UK())==null||I.seekTo(L,!0)};
var Y=function(L){return function(I){I.key!=="Enter"&&I.key!=="Space"||(0,L.clickHandler$jscomp$4)(I)}}(U);
p.setAttribute("tabindex","0");p.removeEventListener("click",U.clickHandler$jscomp$4);p.removeEventListener("keydown",Y);p.addEventListener("click",U.clickHandler$jscomp$4);p.addEventListener("keydown",Y)}};
$ie=function(){return _.H("overview-answer-ghost-card",{class:"ytwOverviewAnswerGhostCardHost"},_.H(PI,{percentWidth:100}),_.H(PI,{animationDelay:200}),_.H(PI,{animationDelay:400}),_.H(PI,{animationDelay:600}),_.H(PI,{animationDelay:800,percentWidth:60}),_.H("div",{class:"ytwOverviewAnswerGhostCardLineBreak"}),_.H(PI,{percentWidth:100}),_.H(PI,{animationDelay:200}),_.H(PI,{animationDelay:400}),_.H(PI,{animationDelay:600,percentWidth:50}))};
PI=function(S){return _.H("div",{class:"ytwOverviewAnswerGhostCardGhostLine",style:"max-width:"+(S.percentWidth===void 0?100:S.percentWidth)+"%"},_.H("div",{class:"ytwOverviewAnswerGhostCardSlider",style:"animation-delay:"+(S.animationDelay===void 0?0:S.animationDelay)+"ms"}))};
idr=function(){var S=_.d(_.kj(function(){return""},void 0,"v2wS5e")),p=S.next().value;
return[function(){return p()()},
S.next().value]};
BLk=function(S){S=S===void 0?{}:S;return{title:_.Aa(S.localizedOptInBannerTitleText===void 0?"":S.localizedOptInBannerTitleText),titleLength:19,subtitle:_.Aa(S.localizedOptInMessage===void 0?"":S.localizedOptInMessage),primaryButton:{toggleButtonRenderer:{style:{styleType:"STYLE_BLUE_TEXT"},size:{sizeType:"SIZE_DEFAULT"},defaultText:_.Aa(_.Oh("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:_.Aa(_.Oh("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:[NLr]},
loggingDirectives:{clientVeSpec:{uiType:127982}}}};
qfq=function(S,p){S=S?mew(S):"";p!==void 0&&isFinite(p)?p===0?p=_.Oh("UPDATING",void 0,"Updating..."):(p=IrG(new Date(p),new Date),p=_.Oh("UPDATED_TIME",{relative_time:p},"Updated "+p)):p="";var U="";S&&p&&(U=" \u2022 ");return _.Aa(S+U+p)};
cok=function(S,p,U,Y,L,I){p=p===void 0?0:p;var V=Aor[p],W=V.title,O=V.iconType,D=V.topButtonRenderer,z=V.sectionClientVE;V=V.videoClientVE;var Q;if(p!==1||S.length){U=[];S=_.d(S);for(Y=S.next();!Y.done;Y=S.next()){var J=Y.value;if(Csu(J))U.push({downloadedVideoGridVideoRenderer:{renderer:{gridVideoRenderer:{videoId:J.videoEntity.videoId,title:ta(J.videoEntity.title),shortBylineText:ta(J.channelEntity.title),thumbnail:J.videoEntity.thumbnail,menu:{menuRenderer:{items:[{menuServiceItemDownloadRenderer:{serviceEndpoint:{offlineVideoEndpoint:{videoId:J.videoEntity.videoId}}}}],
accessibility:{accessibilityData:{label:_.Oh("VIDEO_ACTION_MENU",void 0,"Action menu")}}}},loggingDirectives:{clientVeSpec:{uiType:V}}}}}});else if(fEq(J)){Y=U;var K=Y.push;var G=void 0,X=void 0,Z=void 0,l=void 0,a=void 0,N=void 0,m=void 0,A=void 0,q=J.mainPlaylistEntity.playlistId,TG=J==null?void 0:(A=J.mainPlaylistEntity)==null?void 0:(m=A.thumbnailStyleData)==null?void 0:(N=m[0])==null?void 0:(a=N.value)==null?void 0:(l=a.collageThumbnail)==null?void 0:l.coverThumbnail;l=xVe(q);if(!_.y("enable_offline_playlist_page")&&
(J==null?0:(Z=J.mainPlaylistEntity)==null?0:Z.videos)){b:{Z=J==null?void 0:(X=J.mainPlaylistEntity)==null?void 0:X.videos;X=_.vJ().getState().entities;if(Z!=null&&Z.length&&X)for(Z=_.d(Z),a=Z.next();!a.done;a=Z.next())if(a=_.Uc(a.value).entityId,(a=JSON.parse(a).videoId)&&X$R(X,a)==="TRANSFER_STATE_COMPLETE"){X=a;break b}X=""}X!==void 0&&(l=gt(_.vJ().getState(),X),l=_.qw(X,q,void 0,void 0,l))}X=mVq(_.Oh("VIEW_FULL_PLAYLIST",void 0,"View full playlist"),xVe(q));J=q&&TG&&X?{playlistId:q,navigationEndpoint:l,
viewPlaylistText:X,thumbnailRenderer:{playlistVideoThumbnailRenderer:{thumbnail:TG}},title:ta(J.mainPlaylistEntity.title),shortBylineText:ta(J==null?void 0:(G=J.channelEntity)==null?void 0:G.title),menu:{menuRenderer:{items:[{menuServiceItemRenderer:{text:tKd,icon:{iconType:"DELETE"},serviceEndpoint:{offlinePlaylistEndpoint:{playlistId:q,action:"ACTION_REMOVE_WITH_PROMPT"}}}}],accessibility:{accessibilityData:{label:_.Oh("VIDEO_ACTION_MENU",void 0,"Action menu")}}}},loggingDirectives:{clientVeSpec:{uiType:V}}}:
void 0;K.call(Y,{gridPlaylistRenderer:J})}}V={gridRenderer:{items:U}};p===1&&(Q=qfq(L,I))}else if(Y){var Je=_.Aa((K=U==null?void 0:U.localizedPromptMessage)!=null?K:"");V={horizontalListRenderer:{items:[{toggleButtonRenderer:{style:{styleType:"STYLE_PRIMARY"},size:{sizeType:"SIZE_DEFAULT"},defaultText:_.Aa(_.Oh("UPDATE_SMART_DOWNLOADS_NOW",void 0,"Update now")),isDisabled:!1,defaultServiceEndpoint:{offlineOrchestrationActionCommand:{actions:[{actionType:"OFFLINE_ORCHESTRATION_ACTION_TYPE_REFRESH",
entityKey:_.LSw}]}},loggingDirectives:{clientVeSpec:{uiType:129730}}}},{toggleButtonRenderer:{style:{styleType:"STYLE_BLUE_TEXT"},size:{sizeType:"SIZE_DEFAULT"},defaultText:_.Aa(_.Oh("TURN_OFF",void 0,"Turn off")),isDisabled:!1,defaultServiceEndpoint:{updateLocalAppSettingCommand:{settingItemId:"SMART_DOWNLOADS_ENABLED",boolValue:!1}},loggingDirectives:{clientVeSpec:{uiType:129731}}}}],loggingDirectives:{clientVeSpec:{uiType:129729}}}};Q=qfq(L,I)}else Je=_.Aa(_.Oh("WAITING_TO_DOWNLOAD",void 0,"Waiting to download...")),
V={};return{contents:[{shelfRenderer:{title:W,titleAnnotation:Q,icon:{iconType:O},subtitle:Je,content:V,menu:{menuRenderer:{topLevelButtons:[{buttonRenderer:D}]}}}}],loggingDirectives:{clientVeSpec:{uiType:z}}}};
SZX=function(S,p,U,Y,L,I,V,W){U=U===void 0?{}:U;Y=Y===void 0?!1:Y;L=L===void 0?!1:L;I=I===void 0?!1:I;V=V===void 0?0:V;W=W===void 0?-Infinity:W;if(!p.length&&!S.length&&!Y)return L?[{itemSectionRenderer:{contents:[{backgroundPromoRenderer:ukE(U)}]}}]:[{itemSectionRenderer:{contents:[{backgroundPromoRenderer:{title:_.Aa(_.Oh("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=[];S.length&&O.push(cok(S,0));Y?O.push(cok(p,1,U,I,V,W)):L&&O.push({contents:[{statementBannerRenderer:BLk(U)}]});(Y&&p.length||S.length)&&O.push({contents:[{messageRenderer:{subtext:{messageSubtextRenderer:{text:_.Aa(_.Oh("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(D){return{itemSectionRenderer:D}})};
Zp=function(S,p){if(typeof S!=="object")return null;S=_.d(Object.entries(S));for(var U=S.next();!U.done;U=S.next()){var Y=_.d(U.value);U=Y.next().value;Y=Y.next().value;if(U===p)return U;if(Y=Zp(Y,p))return U+"."+Y}return null};
sE=function(S){var p=S.content;return(S=S.styleRuns)&&p?{runs:S.map(function(U){var Y={text:p.slice(U.startIndex,U.startIndex+U.length)};U.fontColor&&(Y.textColor=U.fontColor);return Y})}:{simpleText:p}};
YZw=function(S,p,U,Y){var L=pbd;Y&&(S.quantity=Y);if(!S.quantity||!S.maxQuantity)return{};Y=S.minusButton;var I=S.plusButton,V,W,O,D;return{value:S.quantity,maxValue:S.maxQuantity,onChangeCallback:function(z){L(S,z)},
minusLabel:(V=_.b(Y,U$w))==null?void 0:V.label,minimumReachedLabel:(W=_.b(Y,U$w))==null?void 0:W.limitReachedLabel,plusLabel:(O=_.b(I,U$w))==null?void 0:O.label,maximumReachedLabel:(D=_.b(I,U$w))==null?void 0:D.limitReachedLabel,disabled:p,onRemoveCommand:U}};
pbd=function(S,p){var U=S.quantityIncrementerEntityKey;if(U){var Y={};Y.quantity=p;_.m_(_.r8("quantityIncrementerEntity",U,Y));S.onChangeCommand&&_.wx(S.onChangeCommand)}};
LGw=function(S){return _.y("kevlar_comments_clone_data_killswitch")?S:_.h9.unsafeClone(S)};
d$q=function(S,p){(S=Mhu(S))&&(p?IQw.push({command:S,sourceData:{},commandContext:void 0}):_.tW().resolve(_.cQ).resolveCommand(S))};
Mhu=function(S){return _.b(S,_.Z$)};
Vhw=function(){var S=window.performance.timeOrigin+window.performance.now(),p=(new _.eJ).setSeconds(S/1E9);return _.GD(p,2,_.Gq(S%1E9),0)};
gb=function(S,p){var U=_.b(_.b(S,_.Z$),TRr);U&&(p&&(U.serializedAdditionalMetadata=_.Ad(p)),d$q(S,!0))};
WGe=function(S){switch(S){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"}};
OeG=function(){return!!_.g7("ID_TOKEN")};
D$N=function(S){return S instanceof Error&&S.cause instanceof kOG&&S.cause.rpcErrorCode!==void 0?!Hew.includes(S.cause.rpcErrorCode):!0};
Qzw=function(){return _.vQ(zae,{authuser:""+(_.g7("SESSION_INDEX")||0)})};
uO=function(S,p,U,Y){U=U===void 0?"MINI_APP_SDK_API_UNSPECIFIED":U;Y=Y===void 0?"":Y;var L=new _.y7;U={source:"MINI_APP_ERROR_SOURCE_PLAYABLE_CONTAINER",sdkVersion:Y,sdkApi:U};S instanceof Error&&(L.message=S.message,L.name=S.name,S.cause instanceof kOG&&S.cause.rpcErrorCode!==void 0&&(U.rpcErrorCode=S.cause.rpcErrorCode));var I;(I=p.onError)==null||I.call(p,{loggingError:L,metadata:U})};
Jme=function(S,p,U,Y){switch(S){case "MINI_APP_SOURCE_GAMESNACKS":return new wb(p,U,Y);default:return new n$d(p,U,Y)}};
ymG=function(S){switch(S){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"}};
KGr=function(S){switch(S){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"}};
beN=function(S){switch(S){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"}};
jzk=function(){return Math.floor(Math.random()*4)+1};
rmd=function(S,p,U,Y){S=_.d(Object.entries(S));for(var L=S.next(),I={};!L.done;I={message$jscomp$957:void 0},L=S.next()){var V=_.d(L.value);L=V.next().value;V=V.next().value;I.message$jscomp$957=V;p.push(setTimeout(function(W){return function(){Y(!1);U(W.message$jscomp$957.text)}}(I),I.message$jscomp$957.delayMs));
Number(L)>0&&p.push(setTimeout(function(){Y(!0)},I.message$jscomp$957.delayMs-400))}};
GOG=function(S,p){var U=U===void 0?Eee:U;_.y("mweb_fix_monitor_visibility_after_render")?S&&rx(function(){veG(S,p,U)}):rx(function(){veG(S,p,U)})};
Raq=function(S){var p=S.data;var U=S.uniqueId;S=S.overrides;var Y,L=((Y=p.timedAnimationData)==null?void 0:Y.animationTiming)||[];return _.H("timed-animation-button-renderer",{class:"ytwTimedAnimationButtonRendererHost"},_.H(RF,{settings:{uniqueId:U,timings:L,experimentEnabled:L.length>0,enabled:L.length>0}},haX(p.buttonRenderer,{buttonRenderer:{buttonOverrides:S}})))};
ZeX=function(S){FGe||(FGe=XbE(new _.wt(1,void 0,void 0,Pvd),0));var p=FGe.format(Math.floor(S));p=_.uM==="be"||_.uM==="bg"||_.uM==="es"||_.uM==="et"||_.uM==="hu"||_.uM==="ka"||_.uM==="lv"||_.uM==="pl"||_.uM==="pt-PT"||_.uM==="sq"?p.replace(new RegExp("^(\\d)"+Pvd.GROUP_SEP.replace(".","\\.")+"(\\d+("+Pvd.DECIMAL_SEP.replace(".","\\.")+"\\d+)?\\D*)$"),"$1$2"):p;return S>=1E3&&S<=9999&&p[1]==="."&&(_.uM==="sl"||_.uM==="it")?p.replace(".",""):p};
szq=function(S,p){hS("ytd-button-renderer",{data:S,className:p?p.className:"",overrides:p==null?void 0:p.buttonOverrides},o8)};
uSr=function(S,p,U,Y){if(S)return Y=Y||S.likeStatus,p?{style:{styleType:"STYLE_TEXT"},toggledStyle:{styleType:"STYLE_DEFAULT_ACTIVE"},isToggled:Y==="LIKE",isDisabled:!S.likesAllowed,defaultIcon:{iconType:U},defaultText:Y==="LIKE"?S.likeCountWithUnlikeText:S.likeCountText,toggledText:Y==="LIKE"?S.likeCountText:S.likeCountWithLikeText,defaultNavigationEndpoint:eaw(S,"LIKE"),defaultServiceEndpoint:g$q(S,"LIKE"),toggledServiceEndpoint:g$q(S,"INDIFFERENT"),defaultTooltip:_.mA(S.likeCountTooltipText),toggledTooltip:_.mA(S.likeCountTooltipText),
targetId:S.targetId}:{style:{styleType:"STYLE_TEXT"},toggledStyle:{styleType:"STYLE_DEFAULT_ACTIVE"},isToggled:Y==="DISLIKE",isDisabled:!S.likesAllowed,defaultIcon:{iconType:U},defaultText:Y==="DISLIKE"?S.dislikeCountWithUndislikeText:S.dislikeCountText,toggledText:Y==="DISLIKE"?S.dislikeCountText:S.dislikeCountWithDislikeText,defaultNavigationEndpoint:eaw(S,"DISLIKE"),defaultServiceEndpoint:g$q(S,"DISLIKE"),toggledServiceEndpoint:g$q(S,"INDIFFERENT"),defaultTooltip:_.mA(S.dislikeCountTooltipText),
toggledTooltip:_.mA(S.dislikeCountTooltipText)}};
eaw=function(S,p){if(p==="LIKE")return S.likeCommand;if(p==="DISLIKE")return S.dislikeNavigationEndpoint};
g$q=function(S,p){var U;return(U=S.serviceEndpoints)==null?void 0:U.find(function(Y){var L;return((L=_.b(Y,_.lO))==null?void 0:L.status)===p})};
_.aQq=function(S,p,U){return window.spf&&!_.y("web_disable_spfjs_client")?wbq(S,p,U):lQE(S,p)};
wbq=function(S,p,U){var Y=null,L=(new _.O9(function(I,V){var W={};if(p){W.method=p.method;var O=p.postParams||{};ouR(S,p)&&(O[_.g7("XSRF_FIELD_NAME")]=_.g7("XSRF_TOKEN"));W.postData=_.Og(O);p.type&&(W.type=p.type);O=p.headers}W.headers=acu(S,O);_.y("debug_forward_web_query_parameters")&&(S=_.Eur(S,window.location.search));W.experimental_headers=W.headers;W.onError=function(D){D.err&&D.xhr&&(D.err.params={url:D.xhr.responseURL,response:D.xhr.responseText.substr(0,64)});V(D.err)};
W.onPartDone=function(D){U&&U.call(null,D.part)};
W.onDone=function(D){var z=fQE(D.response,"xsrf_token");NZ(window.location.href,S)&&z&&_.en("XSRF_TOKEN",z);if(z=fQE(D.response,"service_worker_killswitch"))_.en("SERVICE_WORKER_KILLSWITCH",z),Kxw();I(D.response)};
Y=spf.request(S,W)})).then(Cve);
L.thenCatch(function(I){var V=I instanceof _.aA,W=I&&I.hasOwnProperty("params")&&I.params.response?I.params.response:"";I instanceof Error&&(W?V?XXE(I):W===')]}\'\n{"reload":"now"}'?XXE(I):(x$k(I,S,W),E$d(I,W)?_.eP(I):_.ZP(I)):XXE(I));Y&&Y.abort()});
return L};
Cve=function(S){if(S.type==="multipart"){var p=S.timing;S=S.parts.reduce(function(U,Y){Object.assign(U,Y);return U},{});
S.timing=S.timing||{};Object.assign(S.timing,p);S.type="reduced"}return S};
lQE=function(S,p){p=p===void 0?{}:p;var U=null,Y=new _.O9(function(L,I){p.onFinish=function(V){if(V.readyState===XMLHttpRequest.DONE)if(V.status===200){if(V.responseType!=="json"){var W=V.response;W.substring(0,5)===")]}'\n"&&(W=W.substring(5));try{var O=JSON.parse(W)}catch(D){O=D}}else O=V.response;O instanceof Error?I(O):(W=fQE(O,"xsrf_token"),NZ(window.location.href,S)&&W&&_.en("XSRF_TOKEN",W),V=V.responseURL,window.performance&&window.performance.getEntriesByName?(W=window.performance.getEntriesByName(V).pop())?
V={responseStart:(0,_.AI)()-(W.responseEnd-W.responseStart)}:(Math.random()<.01&&(W=Error("$h"),W.params=V,_.eP(W)),V={responseStart:-1}):V={responseStart:0},O.timing=O.timing||{},Object.assign(O.timing,V),L(O))}else I(Error("Zh`"+V.status))};
(U=_.WS(S,p))||I(Error("Zh`"+U.status))});
Y.thenCatch(function(L){L instanceof Error&&(x$k(L,S),E$d(L)&&(L.level="WARNING"))});
_.y("cancel_pending_navs")&&Y.thenCatch(function(){U.abort()});
return Y};
fQE=function(S,p){var U=S[p],Y=S.parts;S.type==="multipart"&&Y&&(U=(S=Y.find(function(L){return p in L}))&&S[p]);
return U};
x$k=function(S,p,U){var Y=S.message||"";p={original:Y,url:p};if(U)if(Y=Y.match(/position:?\s*(\d+)/)){Y=Y&&Number(Y[1])?Number(Y[1]):0;var L=Math.max(Y-25,0);p.position=Y;p.response=U.substring(L,Y+25)}else p.response=U.substring(0,50);_.gK(S,p);try{S.message="JSON parse error"}catch(I){}};
E$d=function(S,p){S=S.message||"";S=!!(S.indexOf("<")>=0||S.indexOf("end of ")>=0||S.indexOf("Unterminated string")>=0||S.indexOf("Unexpected EOF"));if(!S&&p)for(var U=p.length,Y=!1,L=0;L<U;L++)if(Y&&p[L]==="\\")L++;else if(p[L]==='"')Y=!Y;else if(p[L]==="<"&&!Y){S=!0;break}return S};
m$q=function(){return document.documentElement.hasAttribute("dark")};
_.o$w=function(S,p){if(S!=="GFEEDBACK"&&S!=="GUIDED_HELP")_.w7(Error("ai`"+S));else{var U=_.tW().resolve(_.AW(_.oy));if(U&&(U=U.getCurrentPage())&&U.getServiceTrackingParams&&(U=U.getServiceTrackingParams()))for(var Y=0,L;L=U[Y++];)if(L.service===S){if(S=L.params)for(U=0;Y=S[U++];)p[Y.key]=Y.value;break}}};
_.v$E=function(S){var p=_.$L();p&&(p=p.getPlayer())&&(p.pauseVideo(),S.playback_id=p.getVideoData().cpn,S.eid=p.getVideoData().eventId,Object.assign(S,p.getFeedbackProductData()))};
$$R=function(){var S={abuseLink:"https://support.google.com/youtube/bin/answer.py?answer=140536",customZIndex:"2000000005",allowNonLoggedInFeedback:!0};_.g7("GOOGLE_FEEDBACK_FORCE_ANONYMOUS")&&(S.enableAnonymousFeedback=!0);_.g7("SESSION_INDEX")&&(S.authuser=String(_.g7("SESSION_INDEX")));_.y("enable_pageid_for_feedback")&&_.g7("DELEGATED_SESSION_ID")&&(S.pageId=String(_.g7("DELEGATED_SESSION_ID")));return S};
_.fJ=function(S){_.y("enable_ypc_spinners")&&_.St(S,"yt-open-popup-action",[{openPopupAction:{popupType:"FULLSCREEN_OVERLAY",properties:{noCancelOnOutsideClick:!0,noAutoFocus:!0},popup:{loadingRenderer:{hack:!0}}}},S])};
_.CJ=function(S){_.y("enable_ypc_spinners")&&_.St(S,"yt-close-popup-action",["yt-loading-renderer"])};
ieG=function(S){return new Promise(function(p,U){_.eV({verifyCommand:{recaptchaToken:S.recaptchaResponse}},{commandController:{onSuccess:function(Y,L){L||U("ChallengeService did not return a response.");var I;p({challengeCompleted:(I=L.verified)!=null?I:!1})},
onServerError:function(Y,L){U(L)}}})})};
NRw=function(S,p,U,Y){p({recaptchaResponse:Y}).then(function(L){L.challengeCompleted?_.Q7()?(U(3),_.tW().resolve(_.cQ).resolveCommand({signalAction:{signal:"RELOAD_PAGE"}},{form:{element:S}})):U(2):U(4)},function(){U(4)})};
BRG=function(S,p,U){_.uL("https://www.google.com/recaptcha/api.js?trustedtypes=true&hl="+_.g7("HL"),function(){var Y;(Y=window.grecaptcha)==null||Y.ready(function(){var L=window.grecaptcha;L?(U(L.render(S,{sitekey:"6Lf39AMTAAAAALPbLZdcrWDa8Ygmgk_fmGmrlRog",callback:NRw.bind(null,S,ieG,p)})),p(1)):p(4)})})};
qZr=function(S,p){return function(){switch(p()){case 0:return S().captchaLoadingMessage;case 1:return S().challengeReason;case 3:return S().captchaSuccessfulMessage;case 2:return S().captchaCookieSetFailureMessage;case 4:return S().captchaFailedMessage;default:return S().challengeReason}}()};
_.x9=function(){if(!Amr){var S=document.querySelector("#player.skeleton");S&&(_.yz(S),Amr=!0)}};
_.cmG=function(){return thd=KVw()};
U3r=function(){return _.T(function(S){return S4u!==void 0?S.return():_.k(S,pRr(),0)})};
pRr=function(){return _.T(function(S){if(S.nextAddress==1)return _.k(S,jlr(),2);thd=S.yieldResult;S4u=_.PA.addLowPriorityJob(pRr,5E3);_.OV(S)})};
V_R=function(S){var p=p===void 0?Y4u:p;var U,Y,L=(U=S.responseContext)==null?void 0:(Y=U.mainAppWebResponseContext)==null?void 0:Y.trackingParam;if(!L){p.increment("MISSING");var I,V,W,O,D,z;_.eP(new _.y7("282054944_a",{jCp:!!((I=S.responseContext)==null?0:(V=I.mainAppWebResponseContext)==null?0:V.loggedOut),iF8:((W=S.responseContext)==null?void 0:W.mainAppWebResponseContext)===void 0,hiy:S.responseContext===void 0,cEy:(O=S.playabilityStatus)==null?void 0:O.contextParams,oE1:(((D=S.streamingData)==
null?void 0:D.formats)||[]).length>0,bq8:(((z=S.streamingData)==null?void 0:z.adaptiveFormats)||[]).length>0,os:!!S.offlineState,cotn:S.cotn}));return 2}U="";try{U=LMX(L)}catch(K){return p.increment("C_ERROR"),_.ZP(K),2}try{var Q=_.M_X(U);var J=IWw(Q)}catch(K){return p.increment("P_ERROR"),_.ZP(K),2}J=_.p2(J,d3w,1,_.Ur());L=[];J=_.d(J);for(Q=J.next();!Q.done;Q=J.next())Y=Q.value,Q=Y.getPath(),U=(0,_.h9.getValueByKeys)(S,Q.split(".")),U=String(U===void 0||U===null?"":U),Y=Y.getValue()||"",I=/[+\-\/_]/g,
U.replace(I,"")!==Y.replace(I,"")&&(p.increment("MISMATCH"),_.y("ab_mis_log_err")&&(U=new _.y7("282054944_p",{sby:Q,g:String(U),e:String(Y)}),_.ZP(U)),["auxiliaryUi.messageRenderers.enforcementMessageViewModel.displayType"].includes(Q)||(Q.match(/enforcementMessageViewModel/i)?L.push(3):L.push(2)));if(L.length>0)return Math.max.apply(Math,_.jo(L));p.increment("SUCCESS");return 1};
O1e=function(S){var p=new vI;if(S.interpreterJavascript){var U=_.KAG(S.interpreterJavascript);U=lx(U).toString();var Y=new T2N;_.zN(Y,6,U);_.U3(p,1,Y,xm)}else S.interpreterUrl&&(U=_.Zu(S.interpreterUrl),U=_.Tl(U).toString(),Y=new _.WMk,_.zN(Y,4,U),_.U3(p,2,Y,xm));S.interpreterHash&&_.$9(p,3,S.interpreterHash,xm);S.program&&_.$9(p,4,S.program,xm);S.globalName&&_.$9(p,5,S.globalName,xm);S.clientExperimentsStateBlob&&_.$9(p,7,S.clientExperimentsStateBlob,xm);return p};
iO=function(S){var p={};S=_.d(S.split("&"));for(var U=S.next();!U.done;U=S.next())U=U.value.split("="),U.length===2&&(p[U[0]]=U[1]);return p};
k8G=function(S){return Number(S.t)||7200};
Xmr=function(){if(_.y("bg_st_hr"))return"havuokmhhs-0";var S,p=((S=performance)==null?void 0:S.timeOrigin)||0;return"havuokmhhs-"+Math.floor(p)};
H1u=function(){return new Promise(function(S){var p=window.top;p.ntpevasrs!==void 0?S(new NP(p.ntpevasrs)):(p.ntpqfbel===void 0&&(p.ntpqfbel=[]),p.ntpqfbel.push(function(U){S(new NP(U))}))})};
D3w=function(S){var p=S.rKC.bind(S);_.NT("yt.aba.att",p);S=S.uAa.bind(S);_.NT("yt.aba.att2",S)};
Qod=function(S){switch(_.Tp(S.input)){case _.$l(zsw):var p={};return p.encryptedVideoId=S.innerTubeRequest.externalVideoId,p}return{}};
JTe=function(S){switch(_.Tp(S.input)){case _.$l(zsw):if(_.y("enable_att_for_transcript_request_on_web_client"))return"ENGAGEMENT_TYPE_VIDEO_TRANSCRIPT_REQUEST";break;case _.$l(BI):if(_.y("PremiumClientSharedConfig__enable_att_for_get_premium_on_web_client")&&S.innerTubeRequest.browseId==="SPunlimited")return"ENGAGEMENT_TYPE_YPC_GET_PREMIUM_PAGE";break;case _.$l(nQX):var p,U;if(_.y("PremiumClientSharedConfig__enable_att_for_get_download_action_on_web_client")&&((U=_.b((p=S.config)==null?void 0:p.command,
X9w))==null?0:U.requiresAttestationResponse))return"ENGAGEMENT_TYPE_YPC_GET_DOWNLOAD_ACTION"}return null};
_.KMX=function(S){var p;if(S.playlistVideoRenderer&&((p=S.playlistVideoRenderer)==null?0:p.engagementBar))return yTR(S.playlistVideoRenderer.engagementBar);if(_.b(S,qP)){var U;if(S=(U=_.b(S,qP))==null?void 0:U.engagementBar)return yTR(S)}return""};
yTR=function(S){if(!S)return"";S=_.b(S,_.b1G);if(S==null||!S.actions)return"";S=_.d(S.actions);for(S=S.next();!S.done;S=S.next()){S=_.b(S.value,_.joe);var p=void 0;if((p=S)==null||!p.itemId)break;return S.itemId}return""};
_.rTw=function(S){var p;if(S.playlistVideoRenderer&&((p=S.playlistVideoRenderer)==null?0:p.videoId))return S.playlistVideoRenderer.videoId;if(_.b(S,qP)){var U,Y;if(S=(U=_.b(S,qP))==null?void 0:(Y=U.playlistItemData)==null?void 0:Y.videoId)return S}return""};
_.G8E=function(S){var p;if(S.playlistVideoRenderer&&((p=S.playlistVideoRenderer)==null?0:p.voteCount))return S.playlistVideoRenderer.voteCount;if(_.b(S,qP)){var U,Y;if(S=(U=_.b(S,qP))==null?void 0:(Y=U.playlistItemData)==null?void 0:Y.voteCount)return S}return 0};
_.Al=function(S,p){return _.I4(S.entities,"flowStateEntity",p)};
Rse=function(S,p,U,Y){var L=void 0;S=_.d(S[p.iconName]||[]);for(var I=S.next();!I.done;I=S.next()){I=I.value;var V=p.iconSize;var W=p.iconStyle;V=!V||V===I[2];var O=hsX[I[0]];Y&&Y!==I[1]||!V||W&&W!==O?W=!1:L?(W=hsX[I[0]],W=!!p.iconStyle||W==="youtube_outline",V=L.version<=I[1],W=(!!p.iconSize||I[2]===24)&&W&&V):W=!0;W&&(L={name:p.iconName,style:hsX[I[0]],size:I[2],version:I[1],allowMirroring:!!I[3],url:U(p.iconName,I)})}return L};
FMX=function(S,p,U,Y){return S+(""+hsX[U[0]]+((Y===void 0?0:Y)?"_experimental":"")+"/"+p+"/v"+U[1]+"/")+(U[2]+"px.svg")};
tl=function(S){return _.y("web_bookmark_playlist_save_icon")?"bookmark":S};
XRq=function(S,p){return FMX("https://fonts.gstatic.com/s/i/",S,p)};
Pnw=function(S,p){return FMX("https://fonts.gstatic.com/s/i/",S,p,!0)};
Z1w=function(S,p){return FMX("https://www.gstatic.com/youtube/img/icons/web/",S,p)};
soG=function(S){var p=S.enabled;var U=S.itemPlaybackModel;var Y=S.thumbnailElRef;var L=S.containerElRef;var I=S.options;var V;_.R8(function(){var W=L==null?void 0:L.value;var O,D=(O=Y())==null?void 0:O.value;O=U();var z=I();if(p&&O&&W&&D&&(z==null?0:z.thumbnail)){var Q={data:O,hostElement:W},J,K,G=_.y("web_explore_hub_on_hover")||_.y("web_client_explore_hub_on_hover")?[].concat(_.jo((J=z.thumbnailOverlays)!=null?J:[]),_.jo((K=O.overlays)!=null?K:[])):z.thumbnailOverlays||[],X,Z;W={mediaRenderer:Q,
lockupElement:W,thumbnailElement:D,videoPreviewOpts:{videoPreviewData:{inlinePlaybackEndpoint:_.sW((X=O.inlinePlayerData)==null?void 0:X.onVisible),navigationEndpoint:_.sW((Z=O.inlinePlayerData)==null?void 0:Z.onSelect),thumbnail:z.thumbnail,thumbnailOverlays:G,accessibilityText:z.accessibilityText||""},thumbnailSize:z.thumbnailSize,enableRounding:z.enableRounding}}}else W=void 0;if(X=W){var l;(l=V)==null||cI(l);V=EK(X)}});
_.FG(function(){var W;(W=V)==null||cI(W)})};
esw=function(S){S=atob(S);for(var p=[],U=0;U<S.length;U++)p.push(S.charCodeAt(U));return new Blob([new Uint8Array(p)],{type:"image/png"})};
u2k=function(S,p,U,Y){Y=Y===void 0?"INSERTION_POSITION_UNSPECIFIED":Y;return S({targetId:p},function(L){var I,V=(I=L.contents)!=null?I:[];I=U!=null?U:[];var W=gQX(V);switch(Y){case "INSERTION_POSITION_UNSPECIFIED":return Object.assign({},L,{contents:[].concat(_.jo(V.slice(0,W)),_.jo(I),_.jo(V.slice(W+1)))});case "INSERTION_POSITION_FIRST":return Object.assign({},L,{contents:[].concat(_.jo(I),_.jo(V))});case "INSERTION_POSITION_LAST":return Object.assign({},L,{contents:[].concat(_.jo(V),_.jo(I))});
default:return L}})};
lWr=function(S,p,U,Y,L){L=L===void 0?"RELATIVE_INSERTION_POSITION_AFTER":L;return S({targetId:p},function(I){var V,W=(V=I.contents)!=null?V:[];V=wRd(W,U);if(V<0)return I;V=L==="RELATIVE_INSERTION_POSITION_BEFORE"?V:V+1;return Object.assign({},I,{contents:[].concat(_.jo(W.slice(0,V)),_.jo(Y),_.jo(W.slice(V)))})})};
gQX=function(S){var p=S.findIndex(function(U){return _.b(U,_.SC)});
return p>=0?p:S.length};
wRd=function(S,p){return S.findIndex(function(U){a:{U=_.d(Object.values(U));for(var Y=U.next();!Y.done;Y=U.next())if((Y=Y.value)&&Y.targetId){U=Y.targetId;break a}U=""}return U===p})};
fWd=function(S,p,U){return S({targetId:p},function(Y){var L,I=(L=Y.contents)!=null?L:[];return Object.assign({},Y,{contents:aWN(I,U)})})};
aWN=function(S,p){return S.filter(function(U){var Y=p.includes;a:{U=_.d(Object.values(U));for(var L=U.next();!L.done;L=U.next())if((L=L.value)&&L.targetId){U=L.targetId;break a}U=""}return!Y.call(p,U||"")})};
_.CnG=function(S,p){return{engagementPanelSectionListRenderer:{panelIdentifier:S,identifier:p,visibility:"ENGAGEMENT_PANEL_VISIBILITY_EXPANDED",content:{contentLoadingRenderer:{useSpinner:!0}}}}};
x3G=function(S){return S.getOption("captions","tracklist",{includeAsr:!0})};
EQd=function(S){var p=x3G(S);if(p==null?0:p.length)return p;S.loadModule("captions");return x3G(S)};
m3X=function(S,p,U){if(S.getVideoData){var Y,L=(Y=EQd(S))==null?void 0:Y.find(function(I){return I.languageCode===U});
Y=_.M9("/youtube/app/player_caption_language_entity_key","stringEntity",2);p.dispatch(_.WG("stringEntity",Y,{key:Y,value:(L==null?void 0:L.displayName)||""}));L?S.setOption("captions","track",L):(S.setOption("captions","stickyLoading",{}),S.setOption("captions","track",{}))}};
oQR=function(S){return S.getOption("captions","tracklist",{includeAsr:!0})};
vQu=function(S){return S.getOption("captions","tracklist",{includeAsr:!0})};
$3e=function(S){var p=vQu(S);if(p==null?0:p.length)return p;S.loadModule("captions");return vQu(S)};
i1e=function(S){var p=S.getOption("captions","track");if(p)return p;S.loadModule("captions");return S.getOption("captions","track")};
N2q=function(S){var p=$3e(S);if(p!=null&&p.length){var U=i1e(S);return{showSheetCommand:{panelLoadingStrategy:{inlineContent:{sheetViewModel:{content:{listViewModel:{listItems:[{listItemViewModel:{title:{content:_.Oh("PLAYER_CAPTION_OFF",void 0,"Off")},isSelected:!(U==null?0:U.languageCode),selectionStyle:"LIST_ITEM_SELECTION_STYLE_DEFAULT",rendererContext:{commandContext:{onTap:{innertubeCommand:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{captionLanguageSelectActionCommand:{languageCode:""}}]}}}}}}}].concat(_.jo(p.map(function(Y){return{listItemViewModel:{title:{content:Y.displayName},
isSelected:Y.languageCode===(U==null?void 0:U.languageCode),selectionStyle:"LIST_ITEM_SELECTION_STYLE_DEFAULT",rendererContext:{commandContext:{onTap:{innertubeCommand:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{captionLanguageSelectActionCommand:{languageCode:Y.languageCode}}]}}}}}}}})))}}}}}}}}};
t_E=function(S){return new Promise(function(p,U){if(S===void 0)_.ZP(Error("Bi"),"ERROR"),U(Error("Bi"));else{U=new _.B2w;var Y=_.q4N();U=U.init();var L=_.ATk(_.g7("YPC_MB_URL"),!0);Promise.all([U,L]).then(function(){var I=payments.business.integration.ClientTokenFactory.createClientToken(S,Y);p(I)})}})};
p6d=function(S,p,U,Y,L,I,V){var W=_.ay();U=U.replace(/-/g,"+").replace(/_/g,"/");var O=_.D9().get("hl"),D=_.p4(_.xM),z=p==null?void 0:p.element;z&&_.fJ(z);cTR(p,!0);_.Smd(D,U,W.resolve,function(){z&&_.CJ(z)},function(Q){z&&_.CJ(z);
W.reject(Q)},O,Y?function(Q){Y&&_.lZ(S,Y,{backend_analytics:Q})}:void 0,W.resolve,L,I,V);
return W.promise};
cTR=function(S,p){!(S=S==null?void 0:S.element)||S.tagName!=="YT-BUTTON-RENDERER"&&S.tagName!=="YTD-BUTTON-RENDERER"||(S.disabled=p)};
U5k=function(){var S=_.Oh("DOWNLOADED",void 0,"Downloaded");return{popup:{notificationActionRenderer:{responseText:_.Aa(S),actionButton:{buttonRenderer:sDe()}}},popupType:"TOAST"}};
Ymu=function(){var S=_.Oh("UNAVAILABLE_OFFLINE",void 0,"Unavailable offline");return{popup:{notificationActionRenderer:{responseText:_.Aa(S),loggingDirectives:{clientVeSpec:{uiType:135356}}}},popupType:"TOAST"}};
Lde=function(S){return{itemSectionRenderer:{contents:[{backgroundPromoRenderer:S}]}}};
Up=function(S,p,U,Y){var L;return _.T(function(I){if(I.nextAddress==1)return _.M2(I,2),_.k(I,S,4);if(I.nextAddress!=2)return(L=_.JZ(p.getState().entities).length>0)?I.return({title:_.Aa(_.Oh("YOU_ARE_OFFLINE",void 0,"You are offline")),bodyText:_.Aa(_.Oh("CHECK_CONNECTION_OR_DOWNLOADS",void 0,"Please check your connection or watch your downloaded videos.")),icon:{iconType:"OFFLINE_NO_CONTENT"},ctaButton:{buttonRenderer:ZBw()},style:{value:"BACKGROUND_PROMO_STYLE_TYPE_FULL_HEIGHT"},loggingDirectives:{clientVeSpec:{uiType:22233}}}):
I.return(e3N(U,Y));_.W4(I);return I.return(e3N(U,Y))})};
MUG=function(S,p){return p?p==="PPSV"||sUq(S,p):!1};
IJw=function(S){S.responseContext||(S.responseContext={});S.responseContext.maxAgeSeconds=0;return S};
L4=function(S){var p;return _.T(function(U){return U.nextAddress==1?_.k(U,d5X(S,"service:topbar:fallback"),2):(p=U.yieldResult)&&_.Y1(p)?U.return(IJw(_.Y1(p))):U.return()})};
VUq=function(S){var p;return _.T(function(U){return U.nextAddress==1?_.k(U,d5X(S,"service:downloads_settings:fallback"),2):(p=U.yieldResult)&&_.Y1(p)?U.return(p):U.return()})};
d5X=function(S,p){var U;return _.T(function(Y){if(Y.nextAddress==1)return S?_.k(Y,S.get(p),2):Y.return();U=Y.yieldResult;return!U||!_.Y1(U)||!isNaN(Number(U.data.expireTimestampMs))&&U.isExpired()?Y.return():Y.return(U)})};
TGE=function(S){var p=_.tW().resolve(M_).getState().entities;return S.playlistId?MUG(p,S.playlistId):!1};
Wde=function(S,p){var U;if(p==null?0:(U=p.requestTemplate)==null?0:U.panelId)S.panelId=p.requestTemplate.panelId;var Y;if(p==null?0:(Y=p.requestTemplate)==null?0:Y.params)S.params=p.requestTemplate.params};
k5k=function(){if(Oqe)return Oqe();var S=!_.y("idb_response_store_auth_killswitch"),p={};Oqe=qT("yt-it-response-store",{objectStores:(p.ResponseStore={addedAtVersion:1},p),shared:!S,upgrade:function(U,Y){Y(1)&&(U=lg(U,"ResponseStore",{keyPath:["key","clientName"]}),at(U,"byExpiration","expireTimestampMs"),at(U,"byInterface","clientName"))},
version:1});return Oqe()};
HqE=function(S){return _.Eg(k5k(),S)};
zJG=function(S,p){var U;return _.T(function(Y){return Y.nextAddress==1?_.k(Y,_.BS(),2):(U=Y.yieldResult)?Y.return(new D5w(S,p,U)):Y.return()})};
QCG=function(S){var p=Object.keys(S)[0];if(p)return S.screenExit&&(p=p+";"+S.screenExit.screen),p};
nWR=function(S){var p=new Map;S=_.d(S);for(var U=S.next();!U.done;U=S.next())U=U.value,U!=null&&(p.has(U.taskType)||p.set(U.taskType,[]),p.get(U.taskType).push(U));return p};
JDw=function(S){return!isNaN(S)&&S>0};
yDr=function(S){S=[].concat(_.jo(S)).sort(function(U,Y){return U-Y});
var p=Math.floor(S.length/2);return S.length%2?S[p]:(S[p-1]+S[p])/2};
jCE=function(S,p){S=S===void 0?Hze:S;p=p===void 0?{}:p;_.NT("yt.logging.errors.log",_.ZP);Oze();KdR(JSN(),p);window.onerror=S;bqw=kee;window.addEventListener("unhandledrejection",function(U){if(U.reason instanceof Error){var Y=U.reason;_.gK(Y,{source:"unhandledrejection"});Y.name==="AbortError"&&(Y.level="WARNING")}kee(U.reason);U.preventDefault()})};
_.rDk=function(S){return S.a11y.ephemeralAction||null};
_.G5E=function(S){var p,U,Y,L,I,V,W,O,D,z,Q,J,K,G,X,Z,l,a,N,m,A,q,TG,Je,GG,Zw,Ru,sX,mq,au,XI,nE,ut,Hw,Tj,Ut,Ww,kA,XO,Vw;return _.T(function(Kc){if(Kc.nextAddress==1)return _.k(Kc,_.kl(S,{mode:"readonly",enableRetries:!0},function(eQ){return HJ(eQ,"playbackData").then(function(x5){var rm=x5.map(function(Mt){return Mt.transfer}).filter(function(Mt){return!!Mt}),Bw=x5.map(function(Mt){return Mt.offlineVideoPolicy}).filter(function(Mt){return!!Mt}),oO=x5.filter(function(Mt){return!!Mt.key}).map(function(Mt){return _.M9(_.Uc(Mt.key).entityId,
"downloadStatusEntity")});
rm=HJ(eQ,"transfer",rm);Bw=HJ(eQ,"offlineVideoPolicy",Bw);oO=HJ(eQ,"downloadStatusEntity",oO);var $m=rm.then(function(Mt){Mt=Mt.reduce(function(El,KE){(KE==null?0:KE.offlineVideoStreams)&&El.push.apply(El,_.jo(KE.offlineVideoStreams));return El},[]).filter(function(El){return!!El});
return HJ(eQ,"offlineVideoStreams",Mt)});
return wE.all([rm,Bw,$m,oO]).then(function(Mt){var El=_.d(Mt);Mt=El.next().value;var KE=El.next().value;var yH=El.next().value;El=El.next().value;return[x5,Mt,KE,yH,El]})})}),2);
if(Kc.nextAddress!=3)return p=Kc.yieldResult,_.k(Kc,_.kl(S,{mode:"readonly",enableRetries:!0},function(eQ){return HJ(eQ,"mainDownloadsListEntity").then(function(x5){var rm,Bw;return(Bw=(rm=x5[0])==null?void 0:rm.downloads)!=null?Bw:[]})}),3);
U=Kc.yieldResult;Y=_.d(p);L=Y.next().value;I=Y.next().value;V=Y.next().value;W=Y.next().value;O=Y.next().value;D=L;z=I;Q=V;J=W;K=O;G={};X={};Z={};l={};a={};N=[];m=_.d(z);for(A=m.next();!A.done;A=m.next())(q=A.value)&&(G[q.key]=q);TG=_.d(Q);for(Je=TG.next();!Je.done;Je=TG.next())(GG=Je.value)&&(X[GG.key]=GG);Zw=_.d(K);for(Ru=Zw.next();!Ru.done;Ru=Zw.next())(sX=Ru.value)&&(Z[sX.key]=sX);mq=_.d(J);for(au=mq.next();!au.done;au=mq.next())(XI=au.value)&&(l[XI.key]=XI);nE=_.d(U);for(ut=nE.next();!ut.done;ut=
nE.next())Hw=ut.value,Tj=void 0,a[(Tj=Hw.videoItem)!=null?Tj:""]=!0,Hw.videoItem&&(Ww=Ut=void 0,kA=(Ww=(Ut=_.Uc(Hw.videoItem))==null?void 0:Ut.entityId)!=null?Ww:"",N.push({externalVideoId:kA}));XO=D.filter(function(eQ){if(!eQ||!eQ.key||!eQ.offlineVideoPolicy)return!1;eQ=_.Uc(eQ.key).entityId;eQ=_.M9(eQ,"downloadStatusEntity");var x5;return!(eQ&&((x5=Z[eQ])==null?void 0:x5.downloadState)==="DOWNLOAD_STATE_USER_DELETED")});
Vw=XO.map(function(eQ){var x5=G[eQ.transfer],rm=[];if(x5==null?0:x5.offlineVideoStreams)for(var Bw=_.d(x5.offlineVideoStreams),oO=Bw.next();!oO.done;oO=Bw.next())(oO=l[oO.value])&&rm.push(oO);Bw=X[eQ.offlineVideoPolicy];oO=a;var $m=eQ==null?void 0:eQ.playerResponseTimestamp,Mt=_.Uc(Bw.key).entityId;eQ=_.M9(Mt,"mainVideoEntity");if(Bw.action==="OFFLINE_VIDEO_POLICY_ACTION_DISABLE"){var El="OFFLINE_VIDEO_STATE_DISABLED";Bw.expirationTimestamp&&Number(Bw.expirationTimestamp)<Date.now()/1E3&&(El="OFFLINE_VIDEO_STATE_EXPIRED")}else if(Bw.action===
"OFFLINE_VIDEO_POLICY_ACTION_DOWNLOAD_FAILED")El="OFFLINE_VIDEO_STATE_OFFLINE_FAILED";else{switch(x5==null?void 0:x5.transferState){case "TRANSFER_STATE_TRANSFER_IN_QUEUE":El="OFFLINE_VIDEO_STATE_PENDING";break;case "TRANSFER_STATE_TRANSFERRING":El="OFFLINE_VIDEO_STATE_TRANSFERRING";break;case "TRANSFER_STATE_PAUSED_BY_USER":El="OFFLINE_VIDEO_STATE_PAUSED_TRANSFER";break;case "TRANSFER_STATE_FAILED":El="OFFLINE_VIDEO_STATE_OFFLINE_FAILED";break;case "TRANSFER_STATE_COMPLETE":El="OFFLINE_VIDEO_STATE_PLAYABLE";
break;case "TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH":El="OFFLINE_VIDEO_STATE_STREAMS_OUT_OF_DATE";break;default:El="OFFLINE_VIDEO_STATE_UNKNOWN"}if(El==="OFFLINE_VIDEO_STATE_OFFLINE_FAILED")switch(x5==null?void 0:x5.failureReason){case "TRANSFER_FAILURE_REASON_EXTERNAL_FILESYSTEM_WRITE":case "TRANSFER_FAILURE_REASON_FILESYSTEM_WRITE":El="OFFLINE_VIDEO_STATE_OUT_OF_STORAGE_ERROR";break;case "TRANSFER_FAILURE_REASON_STREAM_MISSING":El="OFFLINE_VIDEO_STATE_STREAMS_MISSING";break;case "TRANSFER_FAILURE_REASON_NETWORK":case "TRANSFER_FAILURE_REASON_NETWORK_LOST":El=
"OFFLINE_VIDEO_STATE_NETWORK_ERROR"}}Mt={id:Mt,videoState:El};if(x5==null?0:x5.cotn)Mt.cotn=x5.cotn;if(x5==null?0:x5.maximumDownloadQuality)Mt.selectedVideoQuality=x5==null?void 0:x5.maximumDownloadQuality;if(x5==null?0:x5.lastProgressTimeMs)Mt.lastProgressTimeMs=x5.lastProgressTimeMs;$m&&(Mt.playerResponseSavedTimeMs=String(Number($m)*1E3));x5=String;$m=0;rm=_.d(rm);for(El=rm.next();!El.done;El=rm.next())if(El=El.value,El.streamsProgress){El=_.d(El.streamsProgress);for(var KE=El.next();!KE.done;KE=
El.next()){var yH=void 0;$m+=Number((yH=KE.value.numBytesDownloaded)!=null?yH:0)}}Mt.downloadedBytes=x5($m);Mt.selectedOfflineMode=oO[eQ]?"OFFLINE_MODE_TYPE_AUTO_OFFLINE":"OFFLINE_NOW";Bw.action==="OFFLINE_VIDEO_POLICY_ACTION_DISABLE"&&(Mt.offlinePlaybackDisabledReason=Bw.offlinePlaybackDisabledReason);return Mt});
return Kc.return({offlineVideos:Vw,additionalOfflineClientState:{mainAppAdditionalOfflineClientState:{smartDownloadVideos:N}}})})};
hJr=function(){var S;return _.T(function(p){return p.nextAddress==1?_.k(p,_.Tf(),2):(S=p.yieldResult)?p.return(_.G5E(S)):p.return({state:"PES Unavailable"})})};
X6d=function(){var S,p,U,Y;return _.T(function(L){if(L.nextAddress==1)return _.k(L,_.Tf(),2);if(L.nextAddress!=3)return(S=L.yieldResult)?_.k(L,RJu(S),3):L.return({state:"PES Unavailable"});p=L.yieldResult;U={};Y=p.reduce(function(I,V){I[V.key]=V;return I},U);
return L.return(Fdk(Y))})};
Fdk=function(S){for(var p={},U=[],Y=_.d(Object.keys(S)),L=Y.next();!L.done;L=Y.next()){var I=L.value;L=S[I];var V=void 0;if(((V=L)==null?void 0:V.entityType)==="mainVideoEntity"){delete S[I];var W=L.data;L={};if(W){var O=void 0;V=(O=W.videoId)!=null?O:"vid-"+I;I=S;L.video=W;delete L.video.formattedDescription;delete L.video.thumbnail;W.owner&&(O=I[W.owner],O==null?0:O.data)&&(delete I[O.key],L.video.owner=O.data,delete L.video.owner.avatar);if(W=W.downloadState)if(O=I[W],O==null?0:O.data)if(delete I[W],
W=O.data.playbackData)if(O=I[W],O!=null&&O.data){delete I[W];W=O.data;delete W.playerResponseJson;L.playbackData=W;if(W.transfer&&(O=I[W.transfer],O==null?0:O.data)){delete I[O.key];var D=O.data;L.transfer=D;O=[];D=_.d(D.offlineVideoStreams||[]);for(var z=D.next();!z.done;z=D.next())if(z=I[z.value])delete I[z.key],O.push(z.data);O&&(L.streams=O)}(W=W.offlineVideoPolicy)&&(W=I[W])&&W.data&&(delete I[W.key],L.offlineVideoPolicy=W.data)}p[V]=L}}else L&&L.entityType==="offlineOrchestrationActionWrapperEntity"&&
L.data&&(delete S[L.key],V=L.data,I=void 0,U.push({id:V.rootActionId,type:((I=V.actionProto)==null?void 0:I.actionType)||"",entity:L}))}p.wrapperEntities=U;Object.keys(S).length>0&&(p.unknownKeys=S);return p};
P0r=function(){var S,p,U,Y,L,I,V,W,O;return _.T(function(D){if(D.nextAddress==1)return S=!!(new _.ug("")).expiringStorage_,Y=!!((p=_.UX.crypto)==null?0:(U=p.subtle)==null?0:U.importKey),L=!!_.UX.BroadcastChannel,I=!!_.UX.navigator.locks,_.k(D,onN(),2);V=D.yieldResult;W=S&&Y&&L&&I&&V;O={isSupported:W};if(W)return D.return(O);O.missingBrowserFeatures=[];V||O.missingBrowserFeatures.push("OFFLINE_WEB_CLIENT_BROWSER_FEATURE_INDEXED_DB");S||O.missingBrowserFeatures.push("OFFLINE_WEB_CLIENT_BROWSER_FEATURE_LOCALSTORAGE");
Y||O.missingBrowserFeatures.push("OFFLINE_WEB_CLIENT_BROWSER_FEATURE_CRYPTO_EXTENSION");L||O.missingBrowserFeatures.push("OFFLINE_WEB_CLIENT_BROWSER_FEATURE_BROADCAST_CHANNEL");I||O.missingBrowserFeatures.push("OFFLINE_WEB_CLIENT_BROWSER_FEATURE_WEB_LOCKS_API");return D.return(O)})};
Zqq=function(){var S;return!((S=Ip?Ip:null)==null||!S.window)};
_.eJE=function(S){if(_.Pk()&&_.Ore("Chromium")>=120){var p=_.sCE().mediaSession;try{p.setActionHandler("enterpictureinpicture",function(){S()})}catch(U){}}};
gWr=function(S){for(var p=[],U=_.d(document.styleSheets),Y=U.next(),L={};!Y.done;L={node$jscomp$725:void 0},Y=U.next())L.node$jscomp$725=Y.value.ownerNode,L.node$jscomp$725&&(L.node$jscomp$725 instanceof HTMLStyleElement||L.node$jscomp$725 instanceof HTMLLinkElement)&&p.push(new Promise(function(I){return function(V){var W=I.node$jscomp$725.cloneNode(!0);W.onload=function(){V()};
W.onerror=function(){_.eP(Error("dj"));V()};
S.document.head.appendChild(W)}}(L)));
return Promise.all(p)};
oWR=function(S){var p=[_.Sb(uxu),_.Sb(w6r),_.Sb(lJR)];aJX(window.document.documentElement,S.document.documentElement,[_.Sb(fJw),_.Sb(C0e),_.Sb(x5N),_.Sb(EWk),_.Sb(m5w)]);aJX(window.document.body,S.document.body,p)};
aJX=function(S,p,U){S=_.d(S.attributes);for(var Y=S.next();!Y.done;Y=S.next())if(Y=Y.value)try{_.xq(U,p,Y.name,Y.value)}catch(L){}};
$5N=function(S,p){S=new _.dI(S.document.documentElement);S.start(vWw,p);return S};
iqr=function(S){var p=S.document.documentElement;p.addEventListener("click",function(U){Cfw(p,U)});
p.addEventListener("touchstart",function(U){vTk(U)});
p.addEventListener("mousedown",function(U){vTk(U)})};
BGd=function(S,p,U,Y){Y=Y===void 0?!1:Y;p=new NGX(p||S,U||S);return{x:S.x+((Y===void 0?0:Y)?p.lengthX*-1:p.lengthX)*.2,y:S.y+((Y===void 0?0:Y)?p.lengthY*-1:p.lengthY)*.2}};
qmw=function(S){if(!S)return!1;var p=S.status==="OK"||S.status==="LIVE_STREAM_OFFLINE",U,Y,L,I=(L=(U=S.errorScreen)==null?void 0:U.playerLegacyDesktopYpcTrailerRenderer)!=null?L:(Y=S.errorScreen)==null?void 0:Y.ypcTrailerRenderer;return!!p||!!I};
_.ADu=function(S,p){if(!S)return!1;var U,Y=(U=S.errorScreen)==null?void 0:U.playerLegacyDesktopYpcOfferRenderer,L;p=!!(p==null?0:(L=p.playerOverlayRenderer)==null?0:L.gatedActionsOverlayRenderer);return!!qmw(S)||!!Y||!!p};
SUu=function(S){return tUE(S,0,"gclid",S.search(cDX))>=0||tUE(S,0,"gad_source",S.search(cDX))>=0};
YUw=function(S){var p=[],U=0;return{clear:function(){U=p.length=0},
push:function(Y){p[U]=Y;U=(U+1)%S},
iterate:function(){return function L(){var I,V,W,O;return _.p_N(L,function(D){switch(D.nextAddress){case 1:_.V9(D,2),I=p.length,V=0;case 4:if(!(V<I)){D.jumpTo(2);break}W=U+V;O=_.U4e;return _.k(D,p[W%I],7);case 7:O(D.yieldResult);V++;D.jumpTo(4);break;case 2:_.IO(D),_.T7(D,0)}})}()}}};
M1G=function(){var S=_.pA("web_max_tracing_events",0);_.y("web_enable_tracing")&&S>0&&Lku(S)};
Lku=function(S){var p=YUw(S);ufd({enabledSpans:{event:!0},sample:function(U,Y){return U==="event"?!IiG.has(Y.type):!1},
spanProcessors:[{onSpanStart:function(U){p.push(U)}}]});
rSE.subscribe("handleError",function(U){try{Object.assign(U.params,{breadcrumbs:JSON.stringify(Array.from(p.iterate()))})}catch(Y){_.ZP(Y,"WARNING")}})};
d4E=function(S){return new Promise(function(p){window.setTimeout(p,S)})};
V1w=function(S){var p={bicf:function(I){S.c1t=I},
blc:function(){return S.getLatestChallengeResponse()},
bcr:function(I){S.mdk.push(I)}},U=window.top;
U.ntpevasrs=p;if(U.ntpqfbel!==void 0)for(var Y=_.d(U.ntpqfbel),L=Y.next();!L.done;L=Y.next())L=L.value,L(p);U.ntpqfbel=void 0};
TDw=function(S){return _.T(function(p){if(p.nextAddress==1)return _.M2(p,2),_.k(p,S.ueB(),4);if(p.nextAddress!=2)return _.CA(p,0);_.W4(p);_.OV(p)})};
Wkr=function(S){var p,U;(p=S.ytcsi)==null||(U=p.tick)==null||U.call(p,"pot_ist")};
OMw=function(S){if(S instanceof Error){var p=_.ad("yt.logging.errors.log");p&&p(S,"WARNING")}};
kze=function(S){try{var p=JSON.parse(S);if(p.bgChallenge)return p}catch(U){}};
D4e=function(){var S=window,p={networkStatusManagerPromise:_.tW().resolve(new Rkk(_.EP)),initialChallengeSli:_.y("wpo_att_sli")?new _.swG("SLI_NAME_YOUTUBE_WEB_INITIAL_ATTESTATION_CHALLENGE","",3E3,"TIMEOUT"):void 0};S=S===void 0?window:S;var U=S.ytAtR,Y;p==null||(Y=p.initialChallengeSli)==null||_.Vj(Y);if(U){if(U=kze(U)){var L;p==null||(L=p.initialChallengeSli)==null||_.TU(L,"SUCCESS");HMr(U,p)}S.ytAtR=void 0}else S.ytAtRC=function(I){if(I=kze(I)){var V;p==null||(V=p.initialChallengeSli)==null||
_.TU(V,"SUCCESS");HMr(I,p);S.ytAtRC=void 0}}};
nJe=function(){if(zue)return zue;try{var S=_.JY("IFRAME");_.PE(S,_.UF(Q_w));S.sandbox.add("allow-same-origin");S.style.display="none";document.body.appendChild(S);return zue=S}catch(p){S=new _.y7("Failed to create sandbox iframe"),_.ZP(S)}};
Jpw=function(S){var p,U;return(U=S==null?void 0:(p=S.contentWindow)==null?void 0:p.fetch)!=null?U:window.fetch};
ypG=function(S){var p,U;return(U=S==null?void 0:(p=S.contentWindow)==null?void 0:p.JSON.parse)!=null?U:JSON.parse};
Kke=function(S){var p,U;return(U=S==null?void 0:(p=S.contentWindow)==null?void 0:p.Request)!=null?U:window.Request};
rpr=function(){if(wBe()==="hidden")var S="FOREGROUND_HEARTBEAT_TRIGGER_ON_BACKGROUND";else wBe()==="visible"&&(S="FOREGROUND_HEARTBEAT_TRIGGER_ON_FOREGROUND",bMN=null);S&&j_w(S)};
j_w=function(S){if(S==="FOREGROUND_HEARTBEAT_TRIGGER_ON_BACKGROUND"||S==="FOREGROUND_HEARTBEAT_TRIGGER_ON_FOREGROUND"){if(GzE===S)return;GzE=S}var p=9E4+Math.random()*2E3;if(S!=="FOREGROUND_HEARTBEAT_TRIGGER_ON_INTERVAL"||!(_.pv()>p)&&wBe()==="visible"){p=-1;bMN&&(p=Math.round((0,_.AI)()-bMN));var U=String;var Y=_.ad("_fact",window);Y=Y==null||Y==-1?-1:Math.max(Date.now()-Y,0);_.RV("foregroundHeartbeat",{firstActivityMs:U(Y),clientDocumentNonce:kBE,index:String(huX),lastEventDeltaMs:String(p),trigger:S});
_.NT("_fact",-1,window);huX++;bMN=(0,_.AI)()}};
_.Rur=function(){try{return!!self.sessionStorage}catch(S){return!1}};
Fkw=function(){var S=navigator;return new Promise(function(p,U){var Y;(Y=S.webkitTemporaryStorage)!=null&&Y.queryUsageAndQuota?S.webkitTemporaryStorage.queryUsageAndQuota(function(L,I){p({usage:L,quota:I})},function(L){U(L)}):U(Error("mj"))})};
X_q=function(S,p){var U={errorSeverity:p.errorSeverity.toString(),wizFeatureFlags:Object.entries(p.featureFlags).join("\n")};Wsq(p,U);p=p.errorSeverity;p===3?_.ZP(S,"ERROR",void 0,void 0,void 0,U):p===2&&_.ZP(S,"WARNING",void 0,void 0,void 0,U);_.y("cow_if_errors_in_popup")&&p===3&&S.message.indexOf("<If>")!==-1&&window.alert(S.message)};
Pwe=function(S,p,U){S.componentType!==jk&&U instanceof HTMLElement&&p&&!_.y("cow_logging_in_component_wrapper")&&h9R(U,p,!0)};
ZMw=function(S,p,U){p=p===void 0?{}:p;var Y,L=(Y=_.b(S.commandMetadata,_.NU))==null?void 0:Y.url;Y=p.form||{};!U||Y.element||Y.skipDefaultElement||(p.form=p.form||{},p.form.element=U);if(L&&L!=="/service_ajax")return{type:0,command:S,form:p.form};if(_.y("kevlar_service_command_check")){if(_.wY(_.tW().resolve(_.F3),S))return Object.assign({},{type:1,command:S},p)}else{var I;if((I=_.b(S.commandMetadata,_.NU))==null?0:I.apiUrl)return Object.assign({},{type:1,command:S},p)}return{type:2,command:S,form:p.form}};
s_R=function(S){if(S.form){var p=S.form,U=Object.assign({},p);p=p.element;U=(delete U.element,U);if(p)return[_.Yd(p,[S.command,U,S.commandController])]}return[]};
euR=function(S){if(S.form){var p=S.form,U=Object.assign({},p);p=p.element;U=(delete U.element,U);p&&_.Lp(p,[S.command],p,U)}};
uwd=function(S,p,U){var Y=new gJw(S,p),L=new WO(S,p,U);S={"/youtubei/v1/browse":new Op(S,p,U),"/youtubei/v1/player":Y,"/youtubei/v1/navigation/resolve_url":new k1,"/youtubei/v1/next":L,"/youtubei/v1/guide":new HO(U),"/youtubei/v1/search":new Da(S,p,U),"/youtubei/v1/reel/reel_item_watch":new zU(S,p,U),"/youtubei/v1/get_watch":new Qj(Y,L)};S["/youtubei/v1/account/account_menu"]=new n4;S["/youtubei/v1/notification/get_notification_menu"]=new Jx;return S};
K4=function(){var S=_.tW().resolve(yj);return Promise.resolve(w_d(S,_.UX.location.href,{},document.referrer,function(){return 0},function(){return!1}))};
lik=function(S){return S&&(S=_.bG(_.WId(S)))?(new URLSearchParams(S)).get("service"):null};
GU=function(S,p){_.ps(_.jC(),function(){_.Fg("adl")});
_.tW().resolve(aid)(p);S=S.root;S.loadData&&S.loadData(p);(p==null?0:p.response)?_.TU(u8G(),"SUCCESS"):_.eP(new _.y7("Lifecycle: No response in data",_.ub("IS_SHELL_LOAD"),p?p.page:"NO_PAGE",p?p.endpoint:"NO_ENDPOINT"));S.polymerController.$["page-manager"].lazyPrepareCriticalPages((p==null?void 0:p.page)||"",p.endpoint);var U,Y;((Y=_.b(p==null?void 0:(U=p.endpoint)==null?void 0:U.commandMetadata,_.NU))==null?0:Y.webPageType)&&_.vJ().dispatch(_.rI(_.b(p.endpoint.commandMetadata,_.NU).webPageType))};
fie=function(){var S,p;return _.T(function(U){switch(U.nextAddress){case 1:S=window;if(!S.getDataPromise){U.jumpTo(2);break}_.M2(U,3);return _.k(U,S.getDataPromise(),5);case 5:return U.return(U.yieldResult);case 3:return _.W4(U),_.k(U,K4(),6);case 6:return U.return(U.yieldResult);case 2:if(S.getInitialData)return p=S.getInitialData(),S.getInitialData=void 0,U.return(p);throw Error("oj`"+_.UX.location.href);}})};
x4w=function(){_.en("CSI_SERVICE_NAME","youtube");_.ha({loadType:"cold"});_.y("kevlar_log_lcp")&&Cww(function(S){_.Fg("lcp",S.value)})};
EJd=function(){var S=_.xY(document.location.href,"enable");S&&S.indexOf("scraper")>-1&&_.en("ADD_SCRAPER_ATTRIBUTES",!0)};
iMe=function(S){var p=S.root;S=[m4k,oJw,_.hx];_.y("web_feedback_endpoint_autolog_allowlist_killswitch")&&S.push(_.Rp,vJu);$4G(function(U,Y){return ZMw(U,Y,p)},function(U){if(!U.command)return[];
var Y;((Y=U.form)==null?0:Y.element)?U.form.element.dispatchEvent(new CustomEvent("yt-navigate",{bubbles:!0,composed:!0,detail:Object.assign({},U.form,{endpoint:U.command})})):p.handleNavigate(U);return[]},S);
_.tW().addProvider({provide:_.cQ,useValue:_.VO.instance})};
BDw=function(){var S={},p={},U;for(U in NDq){var Y=_.d(_.kj(NDq[U],void 0,"NBH2te"));S[U]=Y.next().value;p[U]=Y.next().value}return[S,function(L){for(var I in L){var V=void 0;(V=p[I])==null||V(L[I])}}]};
_.t1w=function(S,p){var U=_.h9.getValueByKeys(S,"contents","twoColumnWatchNextResults","results","results","contents"),Y=_.h9.getValueByKeys(S,"contents","twoColumnWatchNextResults","playlist","playlist")||null,L=null,I=null;if(Y)L=_.h9.getValueByKeys(Y,"titleText"),I=_.h9.unsafeClone(_.h9.getValueByKeys(Y,"longBylineText")),U="",I&&(U=_.mA(I)),I=_.Ec(U);else if(U){U=_.d(U);for(var V=U.next();!V.done;V=U.next())V=V.value,V.videoPrimaryInfoRenderer&&(L=_.h9.getValueByKeys.apply(_.h9,[V].concat(_.jo(qUe)))),
V.videoSecondaryInfoRenderer&&(I=_.h9.getValueByKeys.apply(_.h9,[V].concat(_.jo(Apw))))}else _.fU(Error("tj"));var W;S.currentVideoEndpoint?W=S.currentVideoEndpoint:_.fU(Error("uj"));var O;p&&(O=_.h9.getValueByKeys(p,"playabilityStatus","miniplayer","miniplayerRenderer"));S={miniplayerTitle:L,miniplayerSubtitle:I,watchEndpoint:W,playlistData:Y};O&&(S.miniplayerRenderer=O);return S};
cpr=function(S){if(S)return _.Fi(S)};
_.SdN=function(){return{isFullscreen:function(){throw Error("vj");},
toggleFullscreen:function(){throw Error("wj");},
exitFullscreen:function(){throw Error("xj");},
isAutonavEnabled:function(){throw Error("yj");},
setAutonavEnabled:function(){throw Error("zj");},
isAutoplaySetExplicitly:function(){throw Error("Aj");}}};
pMe=function(S){return S.videoDuration?S.numTaps>1&&S.tapDirection!==0?_.F7(S.draggedTime/S.videoDuration,0,1):_.F7((S.playedTime||0)/S.videoDuration,0,1):0};
URk=function(S){return S.videoDuration?S.isDragging||S.numTaps>1&&S.tapDirection!==0?_.F7(S.draggedTime/S.videoDuration,0,1):_.F7((S.playedTime||0)/S.videoDuration,0,1):0};
LOw=function(S){var p,U,Y;return _.b(S==null?void 0:(p=S.markersMap)==null?void 0:(U=p.find(function(L){return L.key==="HEATSEEKER"}))==null?void 0:(Y=U.value)==null?void 0:Y.heatmap,YdX)};
Mze=function(S){var p,U;return(U=(p=LOw(S))==null?void 0:p.heatMarkersDecorations)!=null?U:[]};
IIG=function(S){if(_.y("mweb_supported_chapters_killswitch"))return!0;var p;return!!(S==null?0:(p=S.markersMap)==null?0:p.find(function(U){return["DESCRIPTION_CHAPTERS","AUTO_CHAPTERS"].includes(U.key)}))};
_.dRw=function(S){var p=Object,U=p.assign,Y;S={isDragging:!1,draggedTime:0,isHovering:!1,hoveredTime:0,percentLoaded:0,playerState:(Y=S==null?void 0:S.getPlayerState())!=null?Y:-1,videoDuration:0,playedTime:0,wasPlaying:!1};return U.call(p,{},{isLive:!1,isPlaylist:!1,playerType:1,isProbablyAScreenreaderUser:!1,videoId:void 0,captionsEnabled:!1,captionsAvailable:!1,volume:0,volumeMuted:!0,draggedYDistance:0,isLooping:!1,isLongPressSpeedup:!1},{enabledFullscreenControlsGesture:!1,expandedFullscreenControls:!1,
isFullscreen:!1,numTaps:0,tapDirection:0},{autonavCanceled:!1,autonavEnabled:!1,autonavPaused:!1,autonavCountdown:0,showAutonavMessage:!1},S,{playbackRate:1},{controlsVisible:!1,shouldWaitToHideControls:!1,isOverlayHidden:!1},{fineScrubbingActiveState:"off",storyboardInterval:0,filmStripXDistance:0,fineScrubbingEnteredTime:0})};
Vzq=function(S){return function(p){var U=S(),Y,L=(Y=U.playerApi)==null?void 0:Y.getPlayerState();p&&p!==U.playerState&&(p===1||p===2)&&U.setState({playerState:L})}};
WOd=function(S){return function(p){var U=S(),Y=U.playerApi;Y&&(p==null?void 0:p.type)==="newdata"&&(Tge&&(clearTimeout(Tge),Tge=void 0),_.y("web_shorts_use_progress_state_for_gapless")?(p=Y==null?void 0:Y.getProgressState(p==null?void 0:p.playertype),p=p.seekableEnd-p.seekableStart):p=Y==null?void 0:Y.getDuration(p==null?void 0:p.playertype),U.setState({playedTime:0,videoDuration:p}))}};
Oou=function(S){return function(p){var U=S(),Y=U.playerApi;if(Y){var L=Y.getPresentingPlayerType();_.y("web_shorts_use_progress_state_for_gapless")?(Y=Y.getProgressState(L),Y=Y.seekableEnd-Y.seekableStart):Y=Y.getDuration(L);U.setState({playedTime:p,videoDuration:Y})}}};
DRk=function(S){var p=S.element;var U=S.veType;var Y=S.storedVisualElement===void 0?null:S.storedVisualElement;var L=S.elementIndex===void 0?0:S.elementIndex;S=S.clientYouTubeData;var I=_.X$();I!==kue&&(Hoq.clear(),kue=I);if(p.visualElement&&Hoq.has(p.visualElement))return null;if(Y&&Hoq.has(Y))return p.visualElement=Y,null;U=_.kX(_.HX(),{veType:U,elementIndex:L,clientYouTubeData:S});if(!U)return null;p.visualElement=U;Hoq.add(U);return U};
_.X7=function(S,p,U,Y){U=U===void 0?null:U;Y=Y===void 0?Eee:Y;var L=L===void 0?null:L;rx(function(){if(p){U instanceof Function&&(U=U());var I=DRk({element:p,veType:S,storedVisualElement:U,clientYouTubeData:void 0});I&&(veG(p,L),Y(I))}})};
QhX=function(S){_.X7(112394,S,function(){return zNG},function(p){zNG=p})};
yXd=function(S,p){if(!S)return[];var U,Y,L;S=((U=S.markersMap)==null?void 0:(Y=U.find(function(I){return["DESCRIPTION_CHAPTERS","AUTO_CHAPTERS"].includes(I.key)}))==null?void 0:(L=Y.value)==null?void 0:L.chapters)||[];
!ncw(S)||(p==null?0:p.ignoreStub)||(S=[JXq()].concat(_.jo(S)));return S};
JXq=function(){return{chapterRenderer:{timeRangeStartMillis:0}}};
ncw=function(S){if(S.length===0)return!1;var p;return((p=_.b(S[0],PO))==null?void 0:p.timeRangeStartMillis)!==0};
Za=function(S){return S?S.timeRangeStartMillis||0:0};
boE=function(S,p){if(S.isDragging&&p)return S=KOk(S,p),S===-1?JXq():yXd(p)[S]};
KOk=function(S,p){return S.isDragging&&p?yXd(p,{ignoreStub:!0}).findIndex(function(U,Y,L){U=jhd(S);return rXu(U,L,Y).scrubberHovering}):-1};
jhd=function(S){return Object.assign({},S,{videoDuration:S.videoDuration*1E3,playedTime:S.playedTime*1E3,draggedTime:S.draggedTime*1E3})};
rXu=function(S,p,U){var Y=Za(_.b(p[U],PO));p=Za(_.b(p[U+1],PO))||S.videoDuration;U=S.isDragging;var L;if(L=S.isDragging)L=S.draggedTime,L=L!==null&&L>=Y&&L<p;var I=S.playedTime;return I!==null&&I>=Y&&I<p?{videoPosition:"active",isScrubbing:U,scrubberHovering:L}:S.playedTime<Y?{videoPosition:"pending",isScrubbing:U,scrubberHovering:L}:{videoPosition:"seen",isScrubbing:U,scrubberHovering:L}};
Guk=function(S,p){return S.videoPosition==="seen"||(p===void 0?0:p)>0};
hNr=function(S,p,U){p=S/p.storyboardInterval;var Y=yXd(U);if(!Y.length)return-p*72;U=0;Y=_.d(Y);for(var L=Y.next();!L.done;L=Y.next())if(Za(_.b(L.value,PO))/1E3<S)U++;else break;return-(p*72)-U*56};
RNG=function(S){return S?S.width/S.columns:0};
FOr=function(S){return S.isHovering?S.hoveredTime:S.draggedTime};
XMe=function(S,p){S=S.draggedTime*1E3;return S>=p.visibleTimeRangeStartMillis&&S<=p.visibleTimeRangeEndMillis};
_.PPw=function(S){if(S===void 0||Number.isNaN(S))return"--:--";var p=Math.abs(Math.floor(S)),U=Math.floor(p/86400),Y=Math.floor(p%86400/3600),L=Math.floor(p%3600/60);p=Math.floor(p%60);var I="";U>0&&(I+=U+":",Y<10&&(I+="0"));if(U>0||Y>0)I+=Y+":",L<10&&(I+="0");I+=L+":";p<10&&(I+="0");I+=p;return S>=0?I:"-"+I};
ZoE=function(S,p){return function(){var U=FOr(S());var Y=p();var L=S().playerApi;if(L&&L.getNumberOfStoryboardLevels()!==0){var I=L.getStoryboardFrameIndex(U,1);I!==-1?Y=L.getStoryboardFrame(I,1):(U=L.getStoryboardFrameIndex(U,0),L=L.getStoryboardFrame(U,0),Y&&L&&(L.height*=3,L.width*=3),Y=L)}else Y=null;if(!Y)return null;p()&&(Y.width=90*Y.columns,Y.height=160*Y.rows);return Y}};
_.sp=function(S){if(!S||S.getVideoData)return S};
shk=function(){var S;return{playerApi:(S=_.UK())!=null?S:void 0}};
_.wMq=function(S){function p(Ru){Ru!==0||K?Ru>50&&(K||!X)?(G(!1),Z(!0)):Ru<=50&&(K||X)&&(G(!1),Z(!1)):G(!0)}
function U(){var Ru;return _.T(function(sX){if(sX.nextAddress==1)return _.k(sX,_.p6(),2);(Ru=sX.yieldResult)&&(Ru.isMuted()?G(!0):G(!1));_.OV(sX)})}
function Y(Ru,sX,mq){var au;return _.T(function(XI){if(XI.nextAddress==1)return _.k(XI,_.p6(),2);au=XI.yieldResult;sX&&au?(au.unMute(!0),!mq&&Ru&&(eNr(Ru,au.getVolume()),a(au.getVolume()))):au&&(au.mute(!0),!mq&&Ru&&eNr(Ru,0));_.OV(XI)})}
function L(Ru){var sX,mq;return _.T(function(au){if(au.nextAddress==1)return _.k(au,_.p6(),2);sX=au.yieldResult;mq=50;sX&&(mq=sX.getVolume(),sX.isMuted()?eNr(Ru,0):eNr(Ru,mq));a(mq);_.OV(au)})}
var I=S.noSlider;var V=S.orientation;S=_.vH();var W=_.vH(),O=_.$v(),D=_.d(VP(!1)),z=D.next().value,Q=D.next().value,J=_.d(VP(!1));D=J.next().value;J=J.next().value;var K=D,G=J;J=_.d(VP(!0));D=J.next().value;J=J.next().value;var X=D,Z=J;D=_.d(VP(50));var l=D.next().value,a=D.next().value,N=K?l+"% volume muted":l+"% volume";D=V==="vertical_down";_.FM(function(){function Ru(){Q(!0)}
function sX(){Q(!1)}
I?(U(),p(K?0:100)):O&&O.value&&(O.value.addEventListener("focus",Ru),O.value.addEventListener("focusout",sX),L(O.value).then(function(){p(Number(gcr(O.value)))}));
W&&W.value&&(W.value.addEventListener("focus",Ru),W.value.addEventListener("focusout",sX));return function(){var mq;O==null||(mq=O.value)==null||mq.removeEventListener("focus",Ru);var au;O==null||(au=O.value)==null||au.removeEventListener("focusout",sX);W.value.removeEventListener("focus",Ru);W.value.removeEventListener("focusout",sX)}});
var m=_.kL(function(){if(O&&O.value){var Ru=Number(gcr(O.value));u0r(Ru);a(Ru);O.value.style.setProperty("--gradient-percent",Ru+"%");p(Ru)}return!1});
J={};J=(J.ytdDesktopShortsVolumeControlsHost=!0,J.ytdDesktopShortsVolumeControlsHostVertical=D,J.ytdDesktopShortsVolumeControlsHostExpanded=z,J);var A={},q=(A.ytdDesktopShortsVolumeControlsSliderContainer=!0,A.ytdDesktopShortsVolumeControlsSliderContainerExpanded=z,A.ytdDesktopShortsVolumeControlsSliderContainerVertical=D,A.ytdDesktopShortsVolumeControlsSliderContainerVerticalDown=V==="vertical_down",A.ytdDesktopShortsVolumeControlsSliderContainerVerticalExpanded=z&&D,A);V={};var TG=(V.ytdDesktopShortsVolumeControlsBackgroundScrim=
!0,V.ytdDesktopShortsVolumeControlsBackgroundScrimExpanded=I?!1:z,V);z={};z=(z.ytdDesktopShortsVolumeControlsMuteIconButtonContainer=D,z);V=_.kL(function(){Q(!0)});
A=_.kL(function(){Q(!1)});
var Je=_.kL(function(){if(O&&O.value||I)Y(O.value,K,I),G(!K);return!1}),GG=_.y("web_shorts_keyboard_enable_mute_shortcut")?K?_.Oh("PLAYER_LABEL_UNMUTE",void 0,"Unmute (m)"):_.Oh("PLAYER_LABEL_MUTE",void 0,"Mute (m)"):K?_.Oh("UNMUTE_VOLUME",void 0,"Unmute"):_.Oh("MUTE_VOLUME",void 0,"Mute"),Zw={sources:[{clientResource:{imageName:K?_.y("web_shorts_modern_controls")?"VOLUME_OFF_DELHI_PLAYER":"VOLUME_OFF_FILLED":X?_.y("web_shorts_modern_controls")?"VOLUME_UP_DELHI_PLAYER_FILLED":"VOLUME_UP_FILLED":_.y("web_shorts_modern_controls")?
"VOLUME_DOWN_DELHI_PLAYER_FILLED":"VOLUME_DOWN_FILLED"}}]};
return _.H("desktop-shorts-volume-controls",{"on:pointerleave":A,class:_.W7(J),el:S},qd(!D,function(){return _.H("div",{class:_.W7(TG)})}),_.H("div",{class:_.W7(z)},_.H("button",{"aria-label":GG,
title:GG,el:W,"on:click":Je,"on:pointerenter":V,class:"ytdDesktopShortsVolumeControlsMuteIconButton"},Zw?_.H(_.of,{data:Zw,alt:GG,className:"ytdDesktopShortsVolumeControlsMuteIcon"}):null)),qd(!I,function(){return _.H("div",{class:_.W7(q)},_.H("input",{"aria-label":_.Oh("VOLUME"),title:_.Oh("VOLUME"),el:O,"on:input":m,type:"range",class:"ytdDesktopShortsVolumeControlsNativeSlider",id:"volume-input",role:"slider","aria-valuenow":l,"aria-valuetext":N,"aria-valuemin":0,"aria-valuemax":100}))}))};
u0r=function(S){var p;_.T(function(U){if(U.nextAddress==1)return _.k(U,_.p6(),2);if(p=U.yieldResult)p.unMute(!0),p.setVolume(S,!0);_.OV(U)})};
eNr=function(S,p){S&&(S.value=""+p,S.style.setProperty("--gradient-percent",p+"%"))};
gcr=function(S){var p;return(p=S==null?void 0:S.value)!=null?p:0};
lIG=function(){var S;_.T(function(p){if(p.nextAddress==1)return _.k(p,_.p6(),2);S=p.yieldResult;if(!S)return p.return();S.isMuted()?S.unMute(!0):S.mute(!0);_.OV(p)})};
aIk=function(S){var p=_.tW().resolve(_.eC).getPlayerElement();p&&S&&(S===1?p.pause():p.play())};
fIr=function(S){_.pp(S,"yt-miniplayer-navigate-shorts",["REEL_NAVIGATION_DESTINATION_PREV"])};
CPX=function(S){_.pp(S,"yt-miniplayer-navigate-shorts",["REEL_NAVIGATION_DESTINATION_NEXT"])};
Ecd=function(S){return _.G2(S.document.body,function(){return _.H(xRq,null)})};
mRN=function(){var S=window.performance.getEntriesByType("navigation");return S?S.map(function(p){return p.type}).includes("reload"):!1};
AXe=function(){gI(gI(gI(gI(gI(gI(gI(_.tW().resolve(_.uG),_.ocw),_.vcq),_.$Re),_.iod),_.NgX),_.BgN),_.qdu)};
tzr=function(S,p){p=p===void 0?!1:p;var U,Y,L,I;return _.T(function(V){if(V.nextAddress==1)return p||!_.y("kevlar_shorts_seedless_retry_initial_load")||(U=window,Y=!(!U.getDataPromise&&!U.getInitialData),Y)?_.k(V,fie(),2):(setTimeout(tzr.bind(window,S,!0),1E3),V.return());if(V.nextAddress!=3)return L=V.yieldResult,_.k(V,cXu(L),3);I=V.yieldResult;GU(S,I);_.OV(V)})};
cXu=function(S){var p;if((p=S.response)==null||!p.replacementEndpoint)return _.Mw(S);p=_.tW().resolve(yj);S=S.response;_.b(S.replacementEndpoint,_.QX)&&S.sequenceContinuation&&(_.b(S.replacementEndpoint,_.QX).sequenceParams=S.sequenceContinuation);return wI(p,S.replacementEndpoint,{},_.UX.location.href,"shorts",function(){},function(){return!1})};
S5R=function(S){var p=_.vJ(),U,Y=_.b((U=S.response)==null?void 0:U.frameworkUpdates,Cs),L;U=_.b((L=S.playerResponse)==null?void 0:L.frameworkUpdates,Cs);var I;S=_.b((I=S.reelWatchSequenceResponse)==null?void 0:I.frameworkUpdates,Cs);Y&&_.Oc(Y,p);U&&_.Oc(U,p);S&&_.Oc(S,p)};
poG=function(S){var p;_.y("enable_redirect_linking_for_desktop_web_client")&&((p=window.location.hash)==null?0:p.includes("redirect_state"))&&S.url&&(S.url=S.url.toString()+window.location.hash)};
LXN=function(S){var p=_.tW(),U=p.resolve(yj);p=p.resolve(_.Ulu);S.endpoint&&(U=Y5k(U,S.endpoint),U.content&&S.response&&_.lG(p,S.response,U.content),U.player&&S.playerResponse&&_.lG(p,S.playerResponse,U.player),U.reelSequence&&S.reelWatchSequenceResponse&&_.lG(p,S.reelWatchSequenceResponse,U.reelSequence))};
ap=function(S,p){S5R(p);var U;(p==null?0:p.url)&&((U=window.location.hash)==null?0:U.includes("redirect_state"))&&(poG(p),(U=lik(p.url))&&_.St(S.root,"yt-initialize-third-party",[U,p]));LXN(p);U=_.tW();var Y=U.resolve(MIe);p.playerResponse&&U.resolve(IUX).handleResponse(p.playerResponse);if(p.playerResponse){U=void 0;if(_.y("ab_v_vid_sig")&&p.endpoint){var L,I=(L=_.b(p.endpoint,_.E$))!=null?L:_.b(p.endpoint,_.QX);I&&(U=I.videoId)}dlk(Y,p.playerResponse,U)}p.playerResponse&&BkX(p.playerResponse)&&
_.y("web_enable_ab_rsp_cl")?U3r().then(function(){VIw(Y,p.playerResponse);GU(S,p)}):GU(S,p)};
WXE=function(S){if(S=S.root.data){var p=_.tW().resolve(TAw);S.endpoint&&(S.response&&p.handleResponse(S.response,void 0,document.querySelector("ytd-app")),S.playerResponse&&p.handleResponse(S.playerResponse),S.reelWatchSequenceResponse&&p.handleResponse(S.reelWatchSequenceResponse))}};
OxG=function(S){var p,U,Y,L,I,V;return _.T(function(W){switch(W.nextAddress){case 1:p=window;if(!p.getDataPromise){W.jumpTo(2);break}_.M2(W,3);return _.k(W,p.getDataPromise(),5);case 5:U=W.yieldResult;ap(S,U);_.CA(W,4);break;case 3:return _.W4(W),_.k(W,K4(),6);case 6:Y=W.yieldResult,GU(S,Y);case 4:return W.return();case 2:if(!_.y("sw_nav_preload_pbj")){W.jumpTo(7);break}p.fetchInitialData=function(){var O;return _.T(function(D){if(D.nextAddress==1)return _.k(D,K4(),2);O=D.yieldResult;GU(S,O);_.OV(D)})};
if(p.getInitialData){p.loadInitialData=function(O){ap(S,O)};
L=p.getInitialData();p.getInitialData=void 0;ap(S,L);W.jumpTo(8);break}p.fetchInitialData=void 0;return _.k(W,K4(),9);case 9:I=W.yieldResult,GU(S,I);case 8:return W.return();case 7:p.getInitialData?(V=p.getInitialData(),p.getInitialData=void 0,ap(S,V)):p.loadInitialData=function(O){ap(S,O)},_.OV(W)}})};
kdw=function(S){var p=0;return function(){return p<S.length?{done:!1,value:S[p++]}:{done:!0}}};
HxN=typeof Object.defineProperties=="function"?Object.defineProperty:function(S,p,U){if(S==Array.prototype||S==Object.prototype)return S;S[p]=U.value;return S};
Dlw=function(S){S=["object"==typeof globalThis&&globalThis,S,"object"==typeof window&&window,"object"==typeof self&&self,"object"==typeof global&&global];for(var p=0;p<S.length;++p){var U=S[p];if(U&&U.Math==Math)return U}throw Error("a");};
_.$u=Dlw(this);f4=function(S,p){if(p)a:{var U=_.$u;S=S.split(".");for(var Y=0;Y<S.length-1;Y++){var L=S[Y];if(!(L in U))break a;U=U[L]}S=S[S.length-1];Y=U[S];p=p(Y);p!=Y&&p!=null&&HxN(U,S,{configurable:!0,writable:!0,value:p})}};
f4("Symbol",function(S){if(S)return S;var p=function(I,V){this.$jscomp$symbol$id_=I;HxN(this,"description",{configurable:!0,writable:!0,value:V})};
p.prototype.toString=function(){return this.$jscomp$symbol$id_};
var U="jscomp_symbol_"+(Math.random()*1E9>>>0)+"_",Y=0,L=function(I){if(this instanceof L)throw new TypeError("b");return new p(U+(I||"")+"_"+Y++,I)};
return L});
f4("Symbol.iterator",function(S){if(S)return S;S=Symbol("c");for(var p="Array Int8Array Uint8Array Uint8ClampedArray Int16Array Uint16Array Int32Array Uint32Array Float32Array Float64Array".split(" "),U=0;U<p.length;U++){var Y=_.$u[p[U]];typeof Y==="function"&&typeof Y.prototype[S]!="function"&&HxN(Y.prototype,S,{configurable:!0,writable:!0,value:function(){return z7w(kdw(this))}})}return S});
f4("Symbol.asyncIterator",function(S){return S?S:Symbol("d")});
var z7w=function(S){S={next:S};S[Symbol.iterator]=function(){return this};
return S},Q1X=typeof Object.create=="function"?Object.create:function(S){var p=function(){};
p.prototype=S;return new p},nbe=function(){function S(){function U(){}
new U;Reflect.construct(U,[],function(){});
return new U instanceof U}
if(typeof Reflect!="undefined"&&Reflect.construct){if(S())return Reflect.construct;var p=Reflect.construct;return function(U,Y,L){U=p(U,Y);L&&Reflect.setPrototypeOf(U,L.prototype);return U}}return function(U,Y,L){L===void 0&&(L=U);
L=Q1X(L.prototype||Object.prototype);return Function.prototype.apply.call(U,L,Y)||L}}(),Jvk;
if(typeof Object.setPrototypeOf=="function")Jvk=Object.setPrototypeOf;else{var yvq;a:{var KXk={a:!0},bxq={};try{bxq.__proto__=KXk;yvq=bxq.a;break a}catch(S){}yvq=!1}Jvk=yvq?function(S,p){S.__proto__=p;if(S.__proto__!==p)throw new TypeError("e`"+S);return S}:null}C4=Jvk;
_.r=function(S,p){S.prototype=Q1X(p.prototype);S.prototype.constructor=S;if(C4)C4(S,p);else for(var U in p)if(U!="prototype")if(Object.defineProperties){var Y=Object.getOwnPropertyDescriptor(p,U);Y&&Object.defineProperty(S,U,Y)}else S[U]=p[U];S.superClass_=p.prototype};
_.d=function(S){var p=typeof Symbol!="undefined"&&Symbol.iterator&&S[Symbol.iterator];if(p)return p.call(S);if(typeof S.length=="number")return{next:kdw(S)};throw Error("f`"+String(S));};
Nd=function(S){for(var p,U=[];!(p=S.next()).done;)U.push(p.value);return U};
_.jo=function(S){return S instanceof Array?S:Nd(_.d(S))};
_.x1=function(S){return j1e(S,S)};
j1e=function(S,p){S.raw=p;Object.freeze&&(Object.freeze(S),Object.freeze(p));return S};
Ep=function(S,p){return Object.prototype.hasOwnProperty.call(S,p)};
rvE=typeof Object.assign=="function"?Object.assign:function(S,p){for(var U=1;U<arguments.length;U++){var Y=arguments[U];if(Y)for(var L in Y)Ep(Y,L)&&(S[L]=Y[L])}return S};
f4("Object.assign",function(S){return S||rvE});
var Gdk=function(){this.isRunning_=!1;this.yieldAllIterator_=null;this.yieldResult=void 0;this.nextAddress=1;this.finallyAddress_=this.catchAddress_=0;this.finallyContexts_=this.abruptCompletion_=null},h7R=function(S){if(S.isRunning_)throw new TypeError("h");
S.isRunning_=!0};
Gdk.prototype.JSC$6740_next_=function(S){this.yieldResult=S};
var R7w=function(S,p){S.abruptCompletion_={exception:p,isException:!0};S.nextAddress=S.catchAddress_||S.finallyAddress_};
Gdk.prototype.return=function(S){this.abruptCompletion_={return:S};this.nextAddress=this.finallyAddress_};
_.k=function(S,p,U){S.nextAddress=U;return{value:p}};
Gdk.prototype.jumpTo=function(S){this.nextAddress=S};
_.OV=function(S){S.nextAddress=0};
_.M2=function(S,p,U){S.catchAddress_=p;U!=void 0&&(S.finallyAddress_=U)};
_.V9=function(S,p){S.catchAddress_=0;S.finallyAddress_=p||0};
_.CA=function(S,p,U){S.nextAddress=p;S.catchAddress_=U||0};
_.W4=function(S,p){S.catchAddress_=p||0;p=S.abruptCompletion_.exception;S.abruptCompletion_=null;return p};
_.IO=function(S,p,U,Y){Y?S.finallyContexts_[Y]=S.abruptCompletion_:S.finallyContexts_=[S.abruptCompletion_];S.catchAddress_=p||0;S.finallyAddress_=U||0};
_.T7=function(S,p,U){U=S.finallyContexts_.splice(U||0)[0];(U=S.abruptCompletion_=S.abruptCompletion_||U)?U.isException?S.nextAddress=S.catchAddress_||S.finallyAddress_:U.jumpTo!=void 0&&S.finallyAddress_<U.jumpTo?(S.nextAddress=U.jumpTo,S.abruptCompletion_=null):S.nextAddress=S.finallyAddress_:S.nextAddress=p};
FXR=function(S){this.JSC$6745_context_=new Gdk;this.program_=S};
P$u=function(S,p){h7R(S.JSC$6745_context_);var U=S.JSC$6745_context_.yieldAllIterator_;if(U)return XoG(S,"return"in U?U["return"]:function(Y){return{value:Y,done:!0}},p,S.JSC$6745_context_.return);
S.JSC$6745_context_.return(p);return m6(S)};
XoG=function(S,p,U,Y){try{var L=p.call(S.JSC$6745_context_.yieldAllIterator_,U);if(!(L instanceof Object))throw new TypeError("g`"+L);if(!L.done)return S.JSC$6745_context_.isRunning_=!1,L;var I=L.value}catch(V){return S.JSC$6745_context_.yieldAllIterator_=null,R7w(S.JSC$6745_context_,V),m6(S)}S.JSC$6745_context_.yieldAllIterator_=null;Y.call(S.JSC$6745_context_,I);return m6(S)};
m6=function(S){for(;S.JSC$6745_context_.nextAddress;)try{var p=S.program_(S.JSC$6745_context_);if(p)return S.JSC$6745_context_.isRunning_=!1,{value:p.value,done:!1}}catch(U){S.JSC$6745_context_.yieldResult=void 0,R7w(S.JSC$6745_context_,U)}S.JSC$6745_context_.isRunning_=!1;if(S.JSC$6745_context_.abruptCompletion_){p=S.JSC$6745_context_.abruptCompletion_;S.JSC$6745_context_.abruptCompletion_=null;if(p.isException)throw p.exception;return{value:p.return,done:!0}}return{value:void 0,done:!0}};
Zxw=function(S){this.next=function(p){h7R(S.JSC$6745_context_);S.JSC$6745_context_.yieldAllIterator_?p=XoG(S,S.JSC$6745_context_.yieldAllIterator_.next,p,S.JSC$6745_context_.JSC$6740_next_):(S.JSC$6745_context_.JSC$6740_next_(p),p=m6(S));return p};
this.throw=function(p){h7R(S.JSC$6745_context_);S.JSC$6745_context_.yieldAllIterator_?p=XoG(S,S.JSC$6745_context_.yieldAllIterator_["throw"],p,S.JSC$6745_context_.JSC$6740_next_):(R7w(S.JSC$6745_context_,p),p=m6(S));return p};
this.return=function(p){return P$u(S,p)};
this[Symbol.iterator]=function(){return this}};
_.p_N=function(S,p){p=new Zxw(new FXR(p));C4&&S.prototype&&C4(p,S.prototype);return p};
s1N=function(S){function p(Y){return S.next(Y)}
function U(Y){return S.throw(Y)}
return new Promise(function(Y,L){function I(V){V.done?Y(V.value):Promise.resolve(V.value).then(p,U).then(I,L)}
I(S.next())})};
_.T=function(S){return s1N(new Zxw(new FXR(S)))};
vAw=function(S){this[Symbol.asyncIterator]=function(){return this};
this[Symbol.iterator]=function(){return S};
this.next=function(p){return Promise.resolve(S.next(p))};
this["throw"]=function(p){return new Promise(function(U,Y){var L=S["throw"];L!==void 0?U(L.call(S,p)):(U=S["return"],U!==void 0&&U.call(S),Y(new TypeError("i")))})};
S["return"]!==void 0&&(this["return"]=function(p){return Promise.resolve(S["return"](p))})};
_.jO=function(){for(var S=Number(this),p=[],U=S;U<arguments.length;U++)p[U-S]=arguments[U];return p};
_.U4e=function(S){return S};
f4("globalThis",function(S){return S||_.$u});
f4("Reflect",function(S){return S?S:{}});
f4("Reflect.construct",function(){return nbe});
f4("Reflect.setPrototypeOf",function(S){return S?S:C4?function(p,U){try{return C4(p,U),!0}catch(Y){return!1}}:null});
f4("Promise",function(S){function p(){this.batch_=null}
function U(V){return V instanceof L?V:new L(function(W){W(V)})}
if(S&&(typeof _.$u.PromiseRejectionEvent!=="undefined"||!_.$u.Promise||_.$u.Promise.toString().indexOf("[native code]")===-1))return S;p.prototype.asyncExecute=function(V){if(this.batch_==null){this.batch_=[];var W=this;this.asyncExecuteFunction(function(){W.executeBatch_()})}this.batch_.push(V)};
var Y=_.$u.setTimeout;p.prototype.asyncExecuteFunction=function(V){Y(V,0)};
p.prototype.executeBatch_=function(){for(;this.batch_&&this.batch_.length;){var V=this.batch_;this.batch_=[];for(var W=0;W<V.length;++W){var O=V[W];V[W]=null;try{O()}catch(D){this.asyncThrow_(D)}}}this.batch_=null};
p.prototype.asyncThrow_=function(V){this.asyncExecuteFunction(function(){throw V;})};
var L=function(V){this.state_=0;this.result_=void 0;this.onSettledCallbacks_=[];this.isRejectionHandled_=!1;var W=this.createResolveAndReject_();try{V(W.resolve,W.reject)}catch(O){W.reject(O)}};
L.prototype.createResolveAndReject_=function(){function V(D){return function(z){O||(O=!0,D.call(W,z))}}
var W=this,O=!1;return{resolve:V(this.resolveTo_),reject:V(this.JSC$6761_reject_)}};
L.prototype.resolveTo_=function(V){if(V===this)this.JSC$6761_reject_(new TypeError("j"));else if(V instanceof L)this.settleSameAsPromise_(V);else{a:switch(typeof V){case "object":var W=V!=null;break a;case "function":W=!0;break a;default:W=!1}W?this.resolveToNonPromiseObj_(V):this.fulfill_(V)}};
L.prototype.resolveToNonPromiseObj_=function(V){var W=void 0;try{W=V.then}catch(O){this.JSC$6761_reject_(O);return}typeof W=="function"?this.settleSameAsThenable_(W,V):this.fulfill_(V)};
L.prototype.JSC$6761_reject_=function(V){this.settle_(2,V)};
L.prototype.fulfill_=function(V){this.settle_(1,V)};
L.prototype.settle_=function(V,W){if(this.state_!=0)throw Error("k`"+V+"`"+W+"`"+this.state_);this.state_=V;this.result_=W;this.state_===2&&this.scheduleUnhandledRejectionCheck_();this.executeOnSettledCallbacks_()};
L.prototype.scheduleUnhandledRejectionCheck_=function(){var V=this;Y(function(){if(V.notifyUnhandledRejection_()){var W=_.$u.console;typeof W!=="undefined"&&W.error(V.result_)}},1)};
L.prototype.notifyUnhandledRejection_=function(){if(this.isRejectionHandled_)return!1;var V=_.$u.CustomEvent,W=_.$u.Event,O=_.$u.dispatchEvent;if(typeof O==="undefined")return!0;typeof V==="function"?V=new V("unhandledrejection",{cancelable:!0}):typeof W==="function"?V=new W("unhandledrejection",{cancelable:!0}):(V=_.$u.document.createEvent("CustomEvent"),V.initCustomEvent("unhandledrejection",!1,!0,V));V.promise=this;V.reason=this.result_;return O(V)};
L.prototype.executeOnSettledCallbacks_=function(){if(this.onSettledCallbacks_!=null){for(var V=0;V<this.onSettledCallbacks_.length;++V)I.asyncExecute(this.onSettledCallbacks_[V]);this.onSettledCallbacks_=null}};
var I=new p;L.prototype.settleSameAsPromise_=function(V){var W=this.createResolveAndReject_();V.callWhenSettled_(W.resolve,W.reject)};
L.prototype.settleSameAsThenable_=function(V,W){var O=this.createResolveAndReject_();try{V.call(W,O.resolve,O.reject)}catch(D){O.reject(D)}};
L.prototype.then=function(V,W){function O(J,K){return typeof J=="function"?function(G){try{D(J(G))}catch(X){z(X)}}:K}
var D,z,Q=new L(function(J,K){D=J;z=K});
this.callWhenSettled_(O(V,D),O(W,z));return Q};
L.prototype.catch=function(V){return this.then(void 0,V)};
L.prototype.callWhenSettled_=function(V,W){function O(){switch(D.state_){case 1:V(D.result_);break;case 2:W(D.result_);break;default:throw Error("l`"+D.state_);}}
var D=this;this.onSettledCallbacks_==null?I.asyncExecute(O):this.onSettledCallbacks_.push(O);this.isRejectionHandled_=!0};
L.resolve=U;L.reject=function(V){return new L(function(W,O){O(V)})};
L.race=function(V){return new L(function(W,O){for(var D=_.d(V),z=D.next();!z.done;z=D.next())U(z.value).callWhenSettled_(W,O)})};
L.all=function(V){var W=_.d(V),O=W.next();return O.done?U([]):new L(function(D,z){function Q(G){return function(X){J[G]=X;K--;K==0&&D(J)}}
var J=[],K=0;do J.push(void 0),K++,U(O.value).callWhenSettled_(Q(J.length-1),z),O=W.next();while(!O.done)})};
return L});
var op=function(S,p,U){if(S==null)throw new TypeError("m`"+U);if(p instanceof RegExp)throw new TypeError("n`"+U);return S+""};
f4("String.prototype.startsWith",function(S){return S?S:function(p,U){var Y=op(this,p,"startsWith"),L=Y.length,I=p.length;U=Math.max(0,Math.min(U|0,Y.length));for(var V=0;V<I&&U<L;)if(Y[U++]!=p[V++])return!1;return V>=I}});
f4("Object.setPrototypeOf",function(S){return S||C4});
f4("Symbol.dispose",function(S){return S?S:Symbol("o")});
f4("SuppressedError",function(S){function p(U,Y,L){if(!(this instanceof p))return new p(U,Y,L);L=Error(L);"stack"in L&&(this.stack=L.stack);this.message=L.message;this.error=U;this.suppressed=Y}
if(S)return S;_.r(p,Error);p.prototype.name="SuppressedError";return p});
var e7G=function(S,p,U){S instanceof String&&(S=String(S));for(var Y=S.length,L=0;L<Y;L++){var I=S[L];if(p.call(U,I,L,S))return{i:L,v:I}}return{i:-1,v:void 0}};
f4("Array.prototype.find",function(S){return S?S:function(p,U){return e7G(this,p,U).v}});
f4("WeakMap",function(S){function p(){}
function U(O){var D=typeof O;return D==="object"&&O!==null||D==="function"}
function Y(O){if(!Ep(O,I)){var D=new p;HxN(O,I,{value:D})}}
function L(O){var D=Object[O];D&&(Object[O]=function(z){if(z instanceof p)return z;Object.isExtensible(z)&&Y(z);return D(z)})}
if(function(){if(!S||!Object.seal)return!1;try{var O=Object.seal({}),D=Object.seal({}),z=new S([[O,2],[D,3]]);if(z.get(O)!=2||z.get(D)!=3)return!1;z.delete(O);z.set(D,4);return!z.has(O)&&z.get(D)==4}catch(Q){return!1}}())return S;
var I="$jscomp_hidden_"+Math.random();L("freeze");L("preventExtensions");L("seal");var V=0,W=function(O){this.JSC$6768_id_=(V+=Math.random()+1).toString();if(O){O=_.d(O);for(var D;!(D=O.next()).done;)D=D.value,this.set(D[0],D[1])}};
W.prototype.set=function(O,D){if(!U(O))throw Error("p");Y(O);if(!Ep(O,I))throw Error("q`"+O);O[I][this.JSC$6768_id_]=D;return this};
W.prototype.get=function(O){return U(O)&&Ep(O,I)?O[I][this.JSC$6768_id_]:void 0};
W.prototype.has=function(O){return U(O)&&Ep(O,I)&&Ep(O[I],this.JSC$6768_id_)};
W.prototype.delete=function(O){return U(O)&&Ep(O,I)&&Ep(O[I],this.JSC$6768_id_)?delete O[I][this.JSC$6768_id_]:!1};
return W});
f4("Map",function(S){if(function(){if(!S||typeof S!="function"||!S.prototype.entries||typeof Object.seal!="function")return!1;try{var W=Object.seal({x:4}),O=new S(_.d([[W,"s"]]));if(O.get(W)!="s"||O.size!=1||O.get({x:4})||O.set({x:4},"t")!=O||O.size!=2)return!1;var D=O.entries(),z=D.next();if(z.done||z.value[0]!=W||z.value[1]!="s")return!1;z=D.next();return z.done||z.value[0].x!=4||z.value[1]!="t"||!D.next().done?!1:!0}catch(Q){return!1}}())return S;
var p=new WeakMap,U=function(W){this[0]={};this[1]=I();this.size=0;if(W){W=_.d(W);for(var O;!(O=W.next()).done;)O=O.value,this.set(O[0],O[1])}};
U.prototype.set=function(W,O){W=W===0?0:W;var D=Y(this,W);D.list||(D.list=this[0][D.id]=[]);D.entry?D.entry.value=O:(D.entry={next:this[1],previous:this[1].previous,head:this[1],key:W,value:O},D.list.push(D.entry),this[1].previous.next=D.entry,this[1].previous=D.entry,this.size++);return this};
U.prototype.delete=function(W){W=Y(this,W);return W.entry&&W.list?(W.list.splice(W.index,1),W.list.length||delete this[0][W.id],W.entry.previous.next=W.entry.next,W.entry.next.previous=W.entry.previous,W.entry.head=null,this.size--,!0):!1};
U.prototype.clear=function(){this[0]={};this[1]=this[1].previous=I();this.size=0};
U.prototype.has=function(W){return!!Y(this,W).entry};
U.prototype.get=function(W){return(W=Y(this,W).entry)&&W.value};
U.prototype.entries=function(){return L(this,function(W){return[W.key,W.value]})};
U.prototype.keys=function(){return L(this,function(W){return W.key})};
U.prototype.values=function(){return L(this,function(W){return W.value})};
U.prototype.forEach=function(W,O){for(var D=this.entries(),z;!(z=D.next()).done;)z=z.value,W.call(O,z[1],z[0],this)};
U.prototype[Symbol.iterator]=U.prototype.entries;var Y=function(W,O){var D=O&&typeof O;D=="object"||D=="function"?p.has(O)?D=p.get(O):(D=""+ ++V,p.set(O,D)):D="p_"+O;var z=W[0][D];if(z&&Ep(W[0],D))for(W=0;W<z.length;W++){var Q=z[W];if(O!==O&&Q.key!==Q.key||O===Q.key)return{id:D,list:z,index:W,entry:Q}}return{id:D,list:z,index:-1,entry:void 0}},L=function(W,O){var D=W[1];
return z7w(function(){if(D){for(;D.head!=W[1];)D=D.previous;for(;D.next!=D.head;)return D=D.next,{done:!1,value:O(D)};D=null}return{done:!0,value:void 0}})},I=function(){var W={};
return W.previous=W.next=W.head=W},V=0;
return U});
f4("Set",function(S){if(function(){if(!S||typeof S!="function"||!S.prototype.entries||typeof Object.seal!="function")return!1;try{var U=Object.seal({x:4}),Y=new S(_.d([U]));if(!Y.has(U)||Y.size!=1||Y.add(U)!=Y||Y.size!=1||Y.add({x:4})!=Y||Y.size!=2)return!1;var L=Y.entries(),I=L.next();if(I.done||I.value[0]!=U||I.value[1]!=U)return!1;I=L.next();return I.done||I.value[0]==U||I.value[0].x!=4||I.value[1]!=I.value[0]?!1:L.next().done}catch(V){return!1}}())return S;
var p=function(U){this.JSC$6782_map_=new Map;if(U){U=_.d(U);for(var Y;!(Y=U.next()).done;)this.add(Y.value)}this.size=this.JSC$6782_map_.size};
p.prototype.add=function(U){U=U===0?0:U;this.JSC$6782_map_.set(U,U);this.size=this.JSC$6782_map_.size;return this};
p.prototype.delete=function(U){U=this.JSC$6782_map_.delete(U);this.size=this.JSC$6782_map_.size;return U};
p.prototype.clear=function(){this.JSC$6782_map_.clear();this.size=0};
p.prototype.has=function(U){return this.JSC$6782_map_.has(U)};
p.prototype.entries=function(){return this.JSC$6782_map_.entries()};
p.prototype.values=function(){return this.JSC$6782_map_.values()};
p.prototype.keys=p.prototype.values;p.prototype[Symbol.iterator]=p.prototype.values;p.prototype.forEach=function(U,Y){var L=this;this.JSC$6782_map_.forEach(function(I){return U.call(Y,I,I,L)})};
return p});
f4("Math.log2",function(S){return S?S:function(p){return Math.log(p)/Math.LN2}});
f4("Object.values",function(S){return S?S:function(p){var U=[],Y;for(Y in p)Ep(p,Y)&&U.push(p[Y]);return U}});
f4("Object.is",function(S){return S?S:function(p,U){return p===U?p!==0||1/p===1/U:p!==p&&U!==U}});
f4("Array.prototype.includes",function(S){return S?S:function(p,U){var Y=this;Y instanceof String&&(Y=String(Y));var L=Y.length;U=U||0;for(U<0&&(U=Math.max(U+L,0));U<L;U++){var I=Y[U];if(I===p||Object.is(I,p))return!0}return!1}});
f4("String.prototype.includes",function(S){return S?S:function(p,U){return op(this,p,"includes").indexOf(p,U||0)!==-1}});
f4("Array.from",function(S){return S?S:function(p,U,Y){U=U!=null?U:function(W){return W};
var L=[],I=typeof Symbol!="undefined"&&Symbol.iterator&&p[Symbol.iterator];if(typeof I=="function"){p=I.call(p);for(var V=0;!(I=p.next()).done;)L.push(U.call(Y,I.value,V++))}else for(I=p.length,V=0;V<I;V++)L.push(U.call(Y,p[V],V));return L}});
f4("Object.entries",function(S){return S?S:function(p){var U=[],Y;for(Y in p)Ep(p,Y)&&U.push([Y,p[Y]]);return U}});
f4("Number.isFinite",function(S){return S?S:function(p){return typeof p!=="number"?!1:!isNaN(p)&&p!==Infinity&&p!==-Infinity}});
f4("Number.MAX_SAFE_INTEGER",function(){return 9007199254740991});
f4("Number.MIN_SAFE_INTEGER",function(){return-9007199254740991});
f4("Number.isInteger",function(S){return S?S:function(p){return Number.isFinite(p)?p===Math.floor(p):!1}});
f4("Number.isSafeInteger",function(S){return S?S:function(p){return Number.isInteger(p)&&Math.abs(p)<=Number.MAX_SAFE_INTEGER}});
f4("String.prototype.endsWith",function(S){return S?S:function(p,U){var Y=op(this,p,"endsWith");U===void 0&&(U=Y.length);U=Math.max(0,Math.min(U|0,Y.length));for(var L=p.length;L>0&&U>0;)if(Y[--U]!=p[--L])return!1;return L<=0}});
var gbw=function(S,p){S instanceof String&&(S+="");var U=0,Y=!1,L={next:function(){if(!Y&&U<S.length){var I=U++;return{value:p(I,S[I]),done:!1}}Y=!0;return{done:!0,value:void 0}}};
L[Symbol.iterator]=function(){return L};
return L};
f4("Array.prototype.entries",function(S){return S?S:function(){return gbw(this,function(p,U){return[p,U]})}});
f4("Math.imul",function(S){return S?S:function(p,U){p=Number(p);U=Number(U);var Y=p&65535,L=U&65535;return Y*L+((p>>>16&65535)*L+Y*(U>>>16&65535)<<16>>>0)|0}});
f4("Math.trunc",function(S){return S?S:function(p){p=Number(p);if(isNaN(p)||p===Infinity||p===-Infinity||p===0)return p;var U=Math.floor(Math.abs(p));return p<0?-U:U}});
f4("Number.isNaN",function(S){return S?S:function(p){return typeof p==="number"&&isNaN(p)}});
f4("Array.prototype.keys",function(S){return S?S:function(){return gbw(this,function(p){return p})}});
f4("Array.prototype.values",function(S){return S?S:function(){return gbw(this,function(p,U){return U})}});
f4("Array.prototype.fill",function(S){return S?S:function(p,U,Y){var L=this.length||0;U<0&&(U=Math.max(0,L+U));if(Y==null||Y>L)Y=L;Y=Number(Y);Y<0&&(Y=Math.max(0,L+Y));for(U=Number(U||0);U<Y;U++)this[U]=p;return this}});
var vO=function(S){return S?S:Array.prototype.fill};
f4("Int8Array.prototype.fill",vO);f4("Uint8Array.prototype.fill",vO);f4("Uint8ClampedArray.prototype.fill",vO);f4("Int16Array.prototype.fill",vO);f4("Uint16Array.prototype.fill",vO);f4("Int32Array.prototype.fill",vO);f4("Uint32Array.prototype.fill",vO);f4("Float32Array.prototype.fill",vO);f4("Float64Array.prototype.fill",vO);
f4("Object.fromEntries",function(S){return S?S:function(p){var U={};if(!(Symbol.iterator in p))throw new TypeError("r`"+p);p=p[Symbol.iterator].call(p);for(var Y=p.next();!Y.done;Y=p.next()){Y=Y.value;if(Object(Y)!==Y)throw new TypeError("s");U[Y[0]]=Y[1]}return U}});
f4("String.prototype.replaceAll",function(S){return S?S:function(p,U){if(p instanceof RegExp&&!p.global)throw new TypeError("t");return p instanceof RegExp?this.replace(p,U):this.replace(new RegExp(String(p).replace(/([-()\[\]{}+?*.$\^|,:#<!\\])/g,"\\$1").replace(/\x08/g,"\\x08"),"g"),U)}});
f4("Object.getOwnPropertySymbols",function(S){return S?S:function(){return[]}});
f4("String.prototype.repeat",function(S){return S?S:function(p){var U=op(this,null,"repeat");if(p<0||p>1342177279)throw new RangeError("u");p|=0;for(var Y="";p;)if(p&1&&(Y+=U),p>>>=1)U+=U;return Y}});
f4("Array.prototype.findIndex",function(S){return S?S:function(p,U){return e7G(this,p,U).i}});
f4("Array.prototype.flatMap",function(S){return S?S:function(p,U){var Y=[];Array.prototype.forEach.call(this,function(L,I){L=p.call(U,L,I,this);Array.isArray(L)?Y.push.apply(Y,L):Y.push(L)});
return Y}});
f4("String.prototype.codePointAt",function(S){return S?S:function(p){var U=op(this,null,"codePointAt"),Y=U.length;p=Number(p)||0;if(p>=0&&p<Y){p|=0;var L=U.charCodeAt(p);if(L<55296||L>56319||p+1===Y)return L;p=U.charCodeAt(p+1);return p<56320||p>57343?L:(L-55296)*1024+p+9216}}});
f4("String.fromCodePoint",function(S){return S?S:function(p){for(var U="",Y=0;Y<arguments.length;Y++){var L=Number(arguments[Y]);if(L<0||L>1114111||L!==Math.floor(L))throw new RangeError("v`"+L);L<=65535?U+=String.fromCharCode(L):(L-=65536,U+=String.fromCharCode(L>>>10&1023|55296),U+=String.fromCharCode(L&1023|56320))}return U}});
f4("String.prototype.padStart",function(S){return S?S:function(p,U){var Y=op(this,null,"padStart");p-=Y.length;U=U!==void 0?String(U):" ";return(p>0&&U?U.repeat(Math.ceil(p/U.length)).substring(0,p):"")+Y}});
f4("Promise.prototype.finally",function(S){return S?S:function(p){return this.then(function(U){return Promise.resolve(p()).then(function(){return U})},function(U){return Promise.resolve(p()).then(function(){throw U;
})})}});
f4("Object.hasOwn",function(S){return S?S:function(p,U){return Object.prototype.hasOwnProperty.call(p,U)}});
f4("Math.sign",function(S){return S?S:function(p){p=Number(p);return p===0||isNaN(p)?p:p>0?1:-1}});
f4("Array.prototype.flat",function(S){return S?S:function(p){p=p===void 0?1:p;var U=[];Array.prototype.forEach.call(this,function(Y){Array.isArray(Y)&&p>0?(Y=Array.prototype.flat.call(Y,p-1),U.push.apply(U,Y)):U.push(Y)});
return U}});
f4("String.raw",function(S){return S?S:function(p,U){if(p==null)throw new TypeError("w");for(var Y=p.raw,L=Y.length,I="",V=0;V<L;++V)I+=Y[V],V+1<L&&V+1<arguments.length&&(I+=String(arguments[V+1]));return I}});
f4("Reflect.ownKeys",function(S){return S?S:function(p){var U=[],Y=Object.getOwnPropertyNames(p);p=Object.getOwnPropertySymbols(p);for(var L=0;L<Y.length;L++)(Y[L].substring(0,14)=="jscomp_symbol_"?p:U).push(Y[L]);return U.concat(p)}});
f4("Object.getOwnPropertyDescriptors",function(S){return S?S:function(p){for(var U={},Y=Reflect.ownKeys(p),L=0;L<Y.length;L++)U[Y[L]]=Object.getOwnPropertyDescriptor(p,Y[L]);return U}});
f4("WeakSet",function(S){if(function(){if(!S||!Object.seal)return!1;try{var U=Object.seal({}),Y=Object.seal({}),L=new S([U]);if(!L.has(U)||L.has(Y))return!1;L.delete(U);L.add(Y);return!L.has(U)&&L.has(Y)}catch(I){return!1}}())return S;
var p=function(U){this.JSC$6789_map_=new WeakMap;if(U){U=_.d(U);for(var Y;!(Y=U.next()).done;)this.add(Y.value)}};
p.prototype.add=function(U){this.JSC$6789_map_.set(U,!0);return this};
p.prototype.has=function(U){return this.JSC$6789_map_.has(U)};
p.prototype.delete=function(U){return this.JSC$6789_map_.delete(U)};
return p});
f4("Promise.allSettled",function(S){function p(Y){return{status:"fulfilled",value:Y}}
function U(Y){return{status:"rejected",reason:Y}}
return S?S:function(Y){var L=this;Y=Array.from(Y,function(I){return L.resolve(I).then(p,U)});
return L.all(Y)}});
f4("Number.parseInt",function(S){return S||parseInt});
_._DumpException=window._DumpException||function(S){throw S;};
window._DumpException=_._DumpException;var uLR,woN,$1,iG,lUN,aUd,fUG,C$X,$5,xld;uLR=uLR||{};_.UX=this||self;_.NT=function(S,p,U){S=S.split(".");U=U||_.UX;for(var Y;S.length&&(Y=S.shift());)S.length||p===void 0?U[Y]&&U[Y]!==Object.prototype[Y]?U=U[Y]:U=U[Y]={}:U[Y]=p};
woN=function(S){var p=_.ad("WIZ_global_data.oxN3nb");S=p&&p[S];return S!=null?S:!1};
$1=_.UX._F_toggles_default_kevlar_base||[];iG=function(){};
iG.get=function(){return null};
_.ad=function(S,p){S=S.split(".");p=p||_.UX;for(var U=0;U<S.length;U++)if(p=p[S[U]],p==null)return null;return p};
_.N_=function(S){S.instance_=void 0;S.getInstance=function(){return S.instance_?S.instance_:S.instance_=new S}};
_.HP=function(S){var p=typeof S;return p!="object"?p:S?Array.isArray(S)?"array":p:"null"};
_.Ae=function(S){var p=_.HP(S);return p=="array"||p=="object"&&typeof S.length=="number"};
_.pc=function(S){var p=typeof S;return p=="object"&&S!=null||p=="function"};
_.Ul=function(S){return Object.prototype.hasOwnProperty.call(S,lUN)&&S[lUN]||(S[lUN]=++aUd)};
lUN="closure_uid_"+(Math.random()*1E9>>>0);aUd=0;fUG=function(S,p,U){return S.call.apply(S.bind,arguments)};
C$X=function(S,p,U){if(!S)throw Error();if(arguments.length>2){var Y=Array.prototype.slice.call(arguments,2);return function(){var L=Array.prototype.slice.call(arguments);Array.prototype.unshift.apply(L,Y);return S.apply(p,L)}}return function(){return S.apply(p,arguments)}};
_.RW=function(S,p,U){_.RW=Function.prototype.bind&&Function.prototype.bind.toString().indexOf("native code")!=-1?fUG:C$X;return _.RW.apply(null,arguments)};
_.Hd=function(S,p){var U=Array.prototype.slice.call(arguments,1);return function(){var Y=U.slice();Y.push.apply(Y,arguments);return S.apply(this,Y)}};
_.BO=function(){return Date.now()};
$5=function(S){return S};
_.q_=function(S,p){function U(){}
U.prototype=p.prototype;S.superClass_=p.prototype;S.prototype=new U;S.prototype.constructor=S;S.base=function(Y,L,I){for(var V=Array(arguments.length-2),W=2;W<arguments.length;W++)V[W-2]=arguments[W];return p.prototype[L].apply(Y,V)}};
xld=function(S){return S};var MDw,TyX;_.x=function(S,p,U,Y){var L=arguments.length,I=L<3?p:Y===null?Y=Object.getOwnPropertyDescriptor(p,U):Y,V;if(Reflect&&typeof Reflect==="object"&&typeof Reflect.decorate==="function")I=Reflect.decorate(S,p,U,Y);else for(var W=S.length-1;W>=0;W--)if(V=S[W])I=(L<3?V(I):L>3?V(p,U,I):V(p,U))||I;return L>3&&I&&Object.defineProperty(p,U,I),I};
_.E=function(S,p){if(Reflect&&typeof Reflect==="object"&&typeof Reflect.metadata==="function")return Reflect.metadata(S,p)};
MDw=function(S,p){if(p!==null&&p!==void 0){if(typeof p!=="object"&&typeof p!=="function")throw new TypeError("x");if(U===void 0){if(!Symbol.dispose)throw new TypeError("z");var U=p[Symbol.dispose]}if(typeof U!=="function")throw new TypeError("A");S.stack.push({value:p,dispose:U,async:!1})}return p};
TyX=function(S){function p(I){S.error=S.hasError?new SuppressedError(I,S.error,"An error was suppressed during disposal."):I;S.hasError=!0}
function U(){for(;Y=S.stack.pop();)try{if(!Y.async&&L===1)return L=0,S.stack.push(Y),Promise.resolve().then(U);if(Y.dispose){var I=Y.dispose.call(Y.value);if(Y.async)return L|=2,Promise.resolve(I).then(U,function(V){p(V);return U()})}else L|=1}catch(V){p(V)}if(L===1)return S.hasError?Promise.reject(S.error):Promise.resolve();
if(S.hasError)throw S.error;}
var Y,L=0;U()};_.q_(_.Sw,Error);_.Sw.prototype.name="CustomError";var EbR;var mlG=void 0,obe,vbe=typeof TextDecoder!=="undefined",YXd,UGu=typeof String.prototype.isWellFormed==="function",pkE=typeof TextEncoder!=="undefined";var $lw;_.r5=function(S){for(var p=[],U=0,Y=0;Y<S.length;Y++){var L=S.charCodeAt(Y);L<128?p[U++]=L:(L<2048?p[U++]=L>>6|192:((L&64512)==55296&&Y+1<S.length&&(S.charCodeAt(Y+1)&64512)==56320?(L=65536+((L&1023)<<10)+(S.charCodeAt(++Y)&1023),p[U++]=L>>18|240,p[U++]=L>>12&63|128):p[U++]=L>>12|224,p[U++]=L>>6&63|128),p[U++]=L&63|128)}return p};
$lw=function(S){for(var p=[],U=0,Y=0;U<S.length;){var L=S[U++];if(L<128)p[Y++]=String.fromCharCode(L);else if(L>191&&L<224){var I=S[U++];p[Y++]=String.fromCharCode((L&31)<<6|I&63)}else if(L>239&&L<365){I=S[U++];var V=S[U++],W=S[U++];L=((L&7)<<18|(I&63)<<12|(V&63)<<6|W&63)-65536;p[Y++]=String.fromCharCode(55296+(L>>10));p[Y++]=String.fromCharCode(56320+(L&1023))}else I=S[U++],V=S[U++],p[Y++]=String.fromCharCode((L&15)<<12|(I&63)<<6|V&63)}return p.join("")};var Hk=String.prototype.trim?function(S){return S.trim()}:function(S){return/^[\s\xa0]*([\s\S]*?)[\s\xa0]*$/.exec(S)[1]},ixN=/&/g,NAR=/</g,BAw=/>/g,q5w=/"/g,Avw=/'/g,tIr=/\x00/g,cvE=/[\x00&<>"']/;var S7w=!!($1[0]>>16&1),pKN=!!($1[0]>>17&1),U6u=!!($1[0]&2),Y7G=!!($1[0]&4),L8R=!!($1[0]&32);var Qw=S7w?pKN:woN(610401301),MGq=S7w?U6u:woN(513659523),I2k=S7w?Y7G:woN(568333945),JNe=S7w?L8R:woN(1331761403);var nr,d6N=_.UX.navigator;nr=d6N?d6N.userAgentData||null:null;var $7;_.xR=function(S,p){return Array.prototype.indexOf.call(S,p,void 0)};
_.xs=function(S,p,U){Array.prototype.forEach.call(S,p,U)};
_.Ax=function(S,p,U){return Array.prototype.filter.call(S,p,U)};
_.Fp=function(S,p,U){return Array.prototype.map.call(S,p,U)};
$7=function(S,p,U){return Array.prototype.some.call(S,p,U)};
_.tNw=function(S,p,U){return Array.prototype.every.call(S,p,U)};var tx=function(S){tx[" "](S);return S};
tx[" "]=function(){};
var sF=function(S,p){try{return tx(S[p]),!0}catch(U){}return!1},KcE=function(S,p,U,Y){Y=Y?Y(p):p;
return Object.prototype.hasOwnProperty.call(S,Y)?S[Y]:S[Y]=U(p)};var VGE,$U,Tju,W8N,kSw,HnN,tlw,D6e,ziu,Q7R,h3w,J$w,y$w,r$e,GSX,hiN;_.sCE=function(){return _.UX.navigator||null};
VGE=he();_.cO=Iwe();$U=jw("Edge");Tju=$U||_.cO;_.SR=jw("Gecko")&&!(_.OX(_.zG(),"WebKit")&&!jw("Edge"))&&!(jw("Trident")||jw("MSIE"))&&!jw("Edge");_.pT=_.OX(_.zG(),"WebKit")&&!jw("Edge");W8N=_.pT&&jw("Mobile");_.Onr=_.DGq();kSw=_.zdw();HnN=(gN()?nr.platform==="Linux":jw("Linux"))||_.Quw();tlw=_.kGE();D6e=Hrw();ziu=jw("iPad");Q7R=jw("iPod");_.nwN=_.ue();h3w=_.OX(_.zG(),"KaiOS");J$w=function(){var S=_.UX.document;return S?S.documentMode:void 0};
a:{var K8X="",bnR=function(){var S=_.zG();if(_.SR)return/rv:([^\);]+)(\)|;)/.exec(S);if($U)return/Edge\/([\d\.]+)/.exec(S);if(_.cO)return/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/.exec(S);if(_.pT)return/WebKit\/(\S+)/.exec(S);if(VGE)return/(?:Version)[ \/]?(\S+)/.exec(S)}();
bnR&&(K8X=bnR?bnR[1]:"");if(_.cO){var j7w=J$w();if(j7w!=null&&j7w>parseFloat(K8X)){y$w=String(j7w);break a}}y$w=K8X}r$e=y$w;GSX={};_.Ux=function(S){return KcE(GSX,S,function(){return _.Dw(r$e,S)>=0})};
if(_.UX.document&&_.cO){var Riw=J$w();hiN=Riw?Riw:parseInt(r$e,10)||void 0}else hiN=void 0;_.F8w=hiN;var b9R,j9u,XKR;_.YC=XE();b9R=Hrw()||jw("iPod");j9u=jw("iPad");XKR=_.Vwd();_.LT=_.Pk();_.gE=_.ew()&&!_.ue();var PUe,MO,Ncd,plG,s7N,ZnG;PUe={};MO=null;Ncd=_.SR||_.pT||typeof _.UX.btoa=="function";_.Ad=function(S,p){p===void 0&&(p=0);ZnG();p=PUe[p];for(var U=Array(Math.floor(S.length/3)),Y=p[64]||"",L=0,I=0;L<S.length-2;L+=3){var V=S[L],W=S[L+1],O=S[L+2],D=p[V>>2];V=p[(V&3)<<4|W>>4];W=p[(W&15)<<2|O>>6];O=p[O&63];U[I++]=D+V+W+O}D=0;O=Y;switch(S.length-L){case 2:D=S[L+1],O=p[(D&15)<<2]||Y;case 1:S=S[L],U[I]=p[S>>2]+p[(S&3)<<4|D>>4]+O+Y}return U.join("")};
plG=function(S){var p="";s7N(S,function(U){p+=String.fromCharCode(U)});
return p};
_.M_X=function(S){var p=[];s7N(S,function(U){p.push(U)});
return p};
_.Ol=function(S){var p=S.length,U=p*3/4;U%3?U=Math.floor(U):_.Wk("=.",S[p-1])&&(U=_.Wk("=.",S[p-2])?U-2:U-1);var Y=new Uint8Array(U),L=0;s7N(S,function(I){Y[L++]=I});
return L!==U?Y.subarray(0,L):Y};
s7N=function(S,p){function U(O){for(;Y<S.length;){var D=S.charAt(Y++),z=MO[D];if(z!=null)return z;if(!_.dN(D))throw Error("E`"+D);}return O}
ZnG();for(var Y=0;;){var L=U(-1),I=U(0),V=U(64),W=U(64);if(W===64&&L===-1)break;p(L<<2|I>>4);V!=64&&(p(I<<4&240|V>>2),W!=64&&p(V<<6&192|W))}};
ZnG=function(){if(!MO){MO={};for(var S="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".split(""),p=["+/=","+/","-_=","-_.","-_"],U=0;U<5;U++){var Y=S.concat(p[U].split(""));PUe[U]=Y;for(var L=0;L<Y.length;L++){var I=Y[L];MO[I]===void 0&&(MO[I]=L)}}}};var wkr=typeof Uint8Array!=="undefined",RdG=!_.cO&&typeof btoa==="function",Fqd=/[-_.]/g,GGe={"-":"+",_:"/",".":"="},wm={};var gm,gww;gm=function(S,p){if(p!==wm)throw Error("G");this.JSC$6820_value_=S;if(S!=null&&S.length===0)throw Error("F");};
_.lt=function(){return eir||(eir=new gm(null,wm))};
gww=function(S){return new Uint8Array(eu(S)||0)};
gm.prototype.isEmpty=function(){return this.JSC$6820_value_==null};
gm.prototype.sizeBytes=function(){var S=eu(this);return S?S.length:0};
var eu=function(S){if(wm!==wm)throw Error("G");var p=S.JSC$6820_value_;p=p==null||wkr&&p!=null&&p instanceof Uint8Array?p:typeof p==="string"?XkG(p):null;return p==null?p:S.JSC$6820_value_=p},eir;var Zrq=void 0;var bt=typeof Symbol==="function"&&typeof Symbol()==="symbol",u_r=nc("jas",void 0,!0),oT=nc(void 0,"0di"),R5=nc(void 0,"1oa"),iJ=nc(void 0,Symbol()),ZcN=nc(void 0,"0ub"),eeu=nc(void 0,"0ubs"),wPw=nc(void 0,"0ubsb"),icN=nc(void 0,"0actk"),Et=nc("m_m","messagePrototypeMarker",!0),xtd=nc(void 0,"vps"),FEk=nc();var edq,suu,Ji,wKw;edq={internalArrayState:{value:0,configurable:!0,writable:!0,enumerable:!1}};suu=Object.defineProperties;_.jQ=bt?u_r:"internalArrayState";wKw=[];RP(wKw,7);Ji=Object.freeze(wKw);var mo={},Zd={},l2w=function(S,p,U){this.iterable=S;this.mapper=p;this.thisArg=U};
l2w.prototype.next=function(){var S=this.iterable.next();S.done||(S.value=this.mapper.call(this.thisArg,S.value));return S};
l2w.prototype[Symbol.iterator]=function(){return this};
var a2R=Object.freeze({}),xm={};_.f2w=oP(function(S){return S!==null&&S!==void 0});var xGw=oP(function(S){return typeof S==="number"}),Cew=oP(function(S){return typeof S==="string"}),ERq=oP(function(S){return typeof S==="boolean"}),CUR=oP(function(S){return S!=null&&typeof S==="object"&&typeof S.then==="function"}),Bdr=oP(function(S){return typeof S==="function"}),LS=oP(function(S){return!!S&&(typeof S==="object"||typeof S==="function")});var Nt=typeof _.UX.BigInt==="function"&&typeof _.UX.BigInt(0)==="bigint";var wi=oP(function(S){return Nt?S>=x6X&&S<=EwG:S[0]==="-"?mGk(S,m6X):mGk(S,oww)}),m6X=Number.MIN_SAFE_INTEGER.toString(),x6X=Nt?BigInt(Number.MIN_SAFE_INTEGER):void 0,oww=Number.MAX_SAFE_INTEGER.toString(),EwG=Nt?BigInt(Number.MAX_SAFE_INTEGER):void 0;var vwd=typeof Uint8Array.prototype.slice==="function",Aq=0,tq=0,BY;var Xn,eX,QL,gi,qXq;Xn=typeof BigInt==="function"?BigInt.asIntN:void 0;_.uJ=typeof BigInt==="function"?BigInt.asUintN:void 0;eX=Number.isSafeInteger;QL=Number.isFinite;gi=Math.trunc;qXq=/^-?([1-9][0-9]*|0)(\.[0-9]+)?$/;var Eme={};var heu={},$6E=function(){try{var S=function(){return nbe(Map,[],this.constructor)};
_.r(S,Map);tx(new S);return!1}catch(p){return!0}}(),Ia=function(){this.JSC$6848_map_=new Map};
_.M=Ia.prototype;_.M.get=function(S){return this.JSC$6848_map_.get(S)};
_.M.set=function(S,p){this.JSC$6848_map_.set(S,p);this.size=this.JSC$6848_map_.size;return this};
_.M.delete=function(S){S=this.JSC$6848_map_.delete(S);this.size=this.JSC$6848_map_.size;return S};
_.M.clear=function(){this.JSC$6848_map_.clear();this.size=this.JSC$6848_map_.size};
_.M.has=function(S){return this.JSC$6848_map_.has(S)};
_.M.entries=function(){return this.JSC$6848_map_.entries()};
_.M.keys=function(){return this.JSC$6848_map_.keys()};
_.M.values=function(){return this.JSC$6848_map_.values()};
_.M.forEach=function(S,p){return this.JSC$6848_map_.forEach(S,p)};
Ia.prototype[Symbol.iterator]=function(){return this.entries()};
var cP=function(){if($6E)return Object.setPrototypeOf(Ia.prototype,Map.prototype),Object.defineProperties(Ia.prototype,{size:{value:0,configurable:!0,enumerable:!0,writable:!0}}),Ia;var S=function(){return nbe(Map,[],this.constructor)};
_.r(S,Map);return S}(),vP=function(S,p,U,Y){U=U===void 0?KEE:U;
Y=Y===void 0?KEE:Y;var L=cP.call(this)||this;L.arrayState=S[_.jQ]|0;L.valueCtor=p;L.keyToApi=U;L.valueToApi=L.valueCtor?jPu:Y;for(var I=0;I<S.length;I++){var V=S[I],W=U(V[0],!1,!0),O=V[1];p?O===void 0&&(O=null):O=Y(V[1],!1,!0,void 0,void 0,L.arrayState);cP.prototype.set.call(L,W,O)}return L};
_.r(vP,cP);var inX=function(S){if(S.arrayState&2)throw Error("K");};
_.M=vP.prototype;_.M.clear=function(){inX(this);cP.prototype.clear.call(this)};
_.M.delete=function(S){inX(this);return cP.prototype.delete.call(this,this.keyToApi(S,!0,!1))};
_.M.entries=function(){if(this.valueCtor){var S=cP.prototype.keys.call(this);S=new l2w(S,rqk,this)}else S=cP.prototype.entries.call(this);return S};
_.M.values=function(){if(this.valueCtor){var S=cP.prototype.keys.call(this);S=new l2w(S,vP.prototype.get,this)}else S=cP.prototype.values.call(this);return S};
_.M.forEach=function(S,p){this.valueCtor?cP.prototype.forEach.call(this,function(U,Y,L){S.call(p,L.get(Y),Y,L)}):cP.prototype.forEach.call(this,S,p)};
_.M.set=function(S,p){inX(this);S=this.keyToApi(S,!0,!1);return S==null?this:p==null?(cP.prototype.delete.call(this,S),this):cP.prototype.set.call(this,S,this.valueToApi(p,!0,!0,this.valueCtor,!1,this.arrayState))};
_.M.has=function(S){return cP.prototype.has.call(this,this.keyToApi(S,!1,!1))};
_.M.get=function(S){S=this.keyToApi(S,!1,!1);var p=cP.prototype.get.call(this,S);if(p!==void 0){var U=this.valueCtor;return U?(U=this.valueToApi(p,!1,!0,U,this.callToMutableOnAccess,this.arrayState),U!==p&&cP.prototype.set.call(this,S,U),U):p}};
vP.prototype[Symbol.iterator]=function(){return this.entries()};
vP.prototype.toJSON=void 0;var Gjw;var wwq=function(){},BP=function(S,p){for(var U in S)!isNaN(U)&&p(S,+U,S[U])},ldG=function(S){var p=new wwq;
BP(S,function(U,Y,L){p[Y]=VL(L)});
p.reviveUnknownFields=S.reviveUnknownFields;return p},Xww={reviveIntoImmutable:!0};var uIE;var mte,omd;var Njr,ju,kv,nv,Bjw,DN,zY,q7G,A$G,KT,tGr,bY,GR,hk;Njr=_.qt(0);_.d1={};_.VY=function(S,p,U,Y,L){p=ju(S.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,p,U,L);if(p!==null||Y&&S.noLegacyNull!==Zd)return p};
ju=function(S,p,U,Y){if(p===-1)return null;var L=p+(U?0:-1),I=S.length-1;if(!(I<1+(U?0:-1))){if(L>=I){var V=S[I];if(V!=null&&typeof V==="object"&&V.constructor===Object){U=V[p];var W=!0}else if(L===I)U=V;else return}else U=S[L];if(Y&&U!=null){Y=Y(U);if(Y==null)return Y;if(!Object.is(Y,U))return W?V[p]=Y:S[L]=Y,Y}return U}};
_.UP=function(S,p,U,Y){D3(S);var L=S.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;n8(L,L[_.jQ]|0,p,U,Y);return S};
_.TR=function(S,p,U){S=S.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return FO(S,S[_.jQ]|0,p,U)!==void 0};
_.Wg=function(S,p,U,Y){var L=S.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return FO(L,L[_.jQ]|0,p,nv(S,Y,U))!==void 0};
_.Ur=function(S){return S===a2R?2:4};
_.Ox=function(S,p){S=_.VY(S,p,void 0,void 0,Std);return S==null?_.lt():S};
kv=function(S,p,U,Y){D3(S);var L=S.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,I=L[_.jQ]|0;if(Y==null){var V=UYE(L);if(YtN(V,L,I,U)===p)V.set(U,0);else return S}else I=Loq(L,I,U,p);n8(L,I,p,Y);return S};
_.kC=function(S,p,U,Y){var L=S[_.jQ]|0,I=mE(L);L=Loq(S,L,U,p,I);n8(S,L,p,Y,I)};
nv=function(S,p,U){return _.Hg(S,p)===U?U:-1};
_.Hg=function(S,p){S=S.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return YtN(UYE(S),S,void 0,p,void 0)};
Bjw=function(S,p,U){var Y=S[_.jQ]|0,L=mE(Y),I=ju(S,U,L);if(I!=null&&I[Et]===mo){if(!sl(I))return dZ(I),I.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;var V=I.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows}else Array.isArray(I)&&(V=I);if(V){var W=V[_.jQ]|0;W&2&&(V=L8(V,W))}V=YA(V,p,!0);V!==I&&n8(S,Y,U,V,L);return V};
_.Sa=function(S,p,U,Y){var L=S.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,I=L[_.jQ]|0;p=FO(L,I,p,U,Y);if(p==null)return p;I=L[_.jQ]|0;if(!sl(S,I)){var V=bcq(p);V!==p&&(dZ(S)&&(L=S.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,I=L[_.jQ]|0),p=V,I=n8(L,I,U,p,Y),zD(L,I))}return p};
_.p2=function(S,p,U,Y){var L=S.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return MXq(S,L,L[_.jQ]|0,p,U,Y,!1,!0)};
_.U3=function(S,p,U,Y){U=IsN(U);_.UP(S,p,U,Y);U&&!sl(U)&&zD(S.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows);return S};
_.Yq=function(S,p,U,Y){Y=IsN(Y);kv(S,p,U,Y);Y&&!sl(Y)&&zD(S.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows);return S};
DN=function(S,p,U){D3(S);var Y=S.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,L=Y[_.jQ]|0;if(U==null)return n8(Y,L,p),S;for(var I=U===Ji?7:U[_.jQ]|0,V=I,W=b4(I),O=W||Object.isFrozen(U),D=!0,z=!0,Q=0;Q<U.length;Q++){var J=U[Q];W||(J=sl(J),D&&(D=!J),z&&(z=J))}W||(I=D?13:5,I=z?I&-4097:I|4096);O&&I===V||(U=VL(U),V=0,I=y8(I,L));I!==V&&RP(U,I);L=n8(Y,L,p,U);2&I||!(4096&I||16&I)||zD(Y,L);return S};
zY=function(S,p,U,Y){VXR(S,p,U,Y);return S};
q7G=function(S,p,U){VXR(S,p,zR,void 0,U,1,!0);return S};
_.Jk=function(S,p,U){S=_.VY(S,p,void 0,U);p=typeof S;S=S==null?S:p==="bigint"?_.qt((0,_.uJ)(64,S)):_.yL(S)?p==="string"?_.OcG(S):_.TmN(S):void 0;return S};
_.yY=function(S,p){var U=U===void 0?!1:U;var Y;return(Y=_.BNG(_.VY(S,p)))!=null?Y:U};
_.YY=function(S,p,U){U=U===void 0?0:U;var Y;return(Y=_.hd(_.VY(S,p)))!=null?Y:U};
A$G=function(S,p){var U=U===void 0?0:U;S=_.RT(_.VY(S,p));return S!=null?S:U};
KT=function(S,p,U){U=U===void 0?Njr:U;var Y;return(Y=_.Dtu(_.VY(S,p)))!=null?Y:U};
tGr=function(S){var p=p===void 0?Njr:p;var U;return(U=_.Jk(S,23))!=null?U:p};
bY=function(S,p){var U=U===void 0?0:U;var Y;return(Y=_.VY(S,p,void 0,void 0,_.k5))!=null?Y:U};
_.jR=function(S,p,U,Y){U=U===void 0?"":U;var L;return(L=_.CE(_.VY(S,p,Y)))!=null?L:U};
_.r1=function(S,p){var U=U===void 0?0:U;var Y;return(Y=_.ri(_.VY(S,p)))!=null?Y:U};
GR=function(S,p){var U=U===void 0?"0":U;S=Hcr(_.VY(S,p),!0);return S!=null?S:U};
hk=function(S,p,U){return _.jR(S,nv(S,U,p))};
_.Ra=function(S,p,U,Y){return _.Sa(S,p,nv(S,Y,U),void 0)};
_.n2=function(S,p){return _.CE(_.VY(S,p,void 0,_.d1))};
_.d5=function(S,p,U){return _.UP(S,p,NNX(U))};
_.G0=function(S,p,U){return _.GD(S,p,NNX(U),!1)};
_.FU=function(S,p,U){return _.UP(S,p,_.Gq(U))};
_.yR=function(S,p,U){return _.UP(S,p,st(U))};
_.zN=function(S,p,U){return _.UP(S,p,fE(U))};
_.$9=function(S,p,U,Y){return _.GD(S,p,fE(U),"",Y)};
_.pf=function(S,p,U){return _.UP(S,p,U==null?U:_.jX(U))};
_.XU=function(S,p,U){return _.GD(S,p,U==null?U:_.jX(U),0)};var sH=function(S,p,U){this.buffer=S;if(U&&!p)throw Error();this.JSC$6860_isImmutable=p};var c$r=function(S,p,U,Y){this.bytes_=null;this.bytesAreImmutable_=!1;this.cursor_=this.end_=this.JSC$6863_start_=0;this.init(S,p,U,Y)},Pg,p5X,U7q,LWR,Foe,S_k;
_.M=c$r.prototype;_.M.init=function(S,p,U,Y){var L=Y===void 0?{}:Y;Y=L.aliasBytesFields===void 0?!1:L.aliasBytesFields;L=L.treatNewDataAsImmutable===void 0?!1:L.treatNewDataAsImmutable;this.aliasBytesFields=Y;this.treatNewDataAsImmutable=L;S&&(S=TiR(S,this.treatNewDataAsImmutable),this.bytes_=S.buffer,this.bytesAreImmutable_=S.JSC$6860_isImmutable,this.JSC$6863_start_=p||0,this.end_=U!==void 0?this.JSC$6863_start_+U:this.bytes_.length,this.cursor_=this.JSC$6863_start_)};
_.M.free=function(){this.clear();S_k.length<100&&S_k.push(this)};
_.M.clear=function(){this.bytes_=null;this.bytesAreImmutable_=!1;this.cursor_=this.end_=this.JSC$6863_start_=0;this.aliasBytesFields=!1};
_.M.reset=function(){this.cursor_=this.JSC$6863_start_};
_.M.atEnd=function(){return this.cursor_==this.end_};
_.ZN=function(S,p){var U=0,Y=0,L=0,I=S.bytes_,V=S.cursor_;do{var W=I[V++];U|=(W&127)<<L;L+=7}while(L<32&&W&128);L>32&&(Y|=(W&127)>>4);for(L=3;L<32&&W&128;L+=7)W=I[V++],Y|=(W&127)<<L;Pg(S,V);if(W<128)return p(U>>>0,Y>>>0);throw Error("X");};
Pg=function(S,p){S.cursor_=p;if(p>S.end_)throw Error("Y`"+p+"`"+S.end_);};
_.sx=function(S){var p=S.bytes_,U=S.cursor_,Y=p[U++],L=Y&127;if(Y&128&&(Y=p[U++],L|=(Y&127)<<7,Y&128&&(Y=p[U++],L|=(Y&127)<<14,Y&128&&(Y=p[U++],L|=(Y&127)<<21,Y&128&&(Y=p[U++],L|=Y<<28,Y&128&&p[U++]&128&&p[U++]&128&&p[U++]&128&&p[U++]&128&&p[U++]&128)))))throw Error("X");Pg(S,U);return L};
_.eR=function(S){var p=S.bytes_,U=S.cursor_,Y=p[U],L=p[U+1],I=p[U+2];p=p[U+3];Pg(S,S.cursor_+4);return(Y<<0|L<<8|I<<16|p<<24)>>>0};
p5X=function(S){var p=_.eR(S);S=_.eR(S);return $Gw(p,S)};
U7q=function(S){var p=_.eR(S),U=_.eR(S);S=(U>>31)*2+1;var Y=U>>>20&2047;p=4294967296*(U&1048575)+p;return Y==2047?p?NaN:S*Infinity:Y==0?S*4.9E-324*p:S*Math.pow(2,Y-1075)*(p+4503599627370496)};
_.Y_N=function(S){for(var p=0,U=S.cursor_,Y=U+10,L=S.bytes_;U<Y;){var I=L[U++];p|=I;if((I&128)===0)return Pg(S,U),!!(p&127)}throw Error("X");};
LWR=function(S,p){if(p<0)throw Error("Z`"+p);var U=S.cursor_,Y=U+p;if(Y>S.end_)throw Error("Y`"+(S.end_-U)+"`"+p);S.cursor_=Y;return U};
Foe=function(S,p){if(p==0)return _.lt();var U=LWR(S,p);S.aliasBytesFields&&S.bytesAreImmutable_?U=S.bytes_.subarray(U,U+p):(S=S.bytes_,p=U+p,U=U===p?new Uint8Array(0):vwd?S.slice(U,p):new Uint8Array(S.subarray(U,p)));return U.length==0?_.lt():new gm(U,wm)};
S_k=[];var IXw=function(S,p,U,Y){if(S_k.length){var L=S_k.pop();L.init(S,p,U,Y);S=L}else S=new c$r(S,p,U,Y);this.decoder_=S;this.fieldCursor_=this.decoder_.cursor_;this.nextWireType_=this.nextField_=-1;MEX(this,Y)},MEX=function(S,p){p=p===void 0?{}:p;
S.discardUnknownFields=p.discardUnknownFields===void 0?!1:p.discardUnknownFields},ZEw=function(S,p,U,Y){if(d7e.length){var L=d7e.pop();
MEX(L,Y);L.decoder_.init(S,p,U,Y);return L}return new IXw(S,p,U,Y)},hAG,C8,VER,d7e;
IXw.prototype.free=function(){this.decoder_.clear();this.nextWireType_=this.nextField_=-1;d7e.length<100&&d7e.push(this)};
IXw.prototype.reset=function(){this.decoder_.reset();this.fieldCursor_=this.decoder_.cursor_;this.nextWireType_=this.nextField_=-1};
hAG=function(S){if(S.decoder_.atEnd())return!1;S.fieldCursor_=S.decoder_.cursor_;var p=_.sx(S.decoder_)>>>0,U=p>>>3;p&=7;if(!(p>=0&&p<=5))throw Error("T`"+p+"`"+S.fieldCursor_);if(U<1)throw Error("U`"+U+"`"+S.fieldCursor_);S.nextField_=U;S.nextWireType_=p;return!0};
C8=function(S){switch(S.nextWireType_){case 0:S.nextWireType_!=0?C8(S):_.Y_N(S.decoder_);break;case 1:S=S.decoder_;Pg(S,S.cursor_+8);break;case 2:if(S.nextWireType_!=2)C8(S);else{var p=_.sx(S.decoder_)>>>0;S=S.decoder_;Pg(S,S.cursor_+p)}break;case 5:S=S.decoder_;Pg(S,S.cursor_+4);break;case 3:p=S.nextField_;do{if(!hAG(S))throw Error("V");if(S.nextWireType_==4){if(S.nextField_!=p)throw Error("W");break}C8(S)}while(1);break;default:throw Error("T`"+S.nextWireType_+"`"+S.fieldCursor_);}};
VER=function(S,p,U){var Y=S.decoder_.end_,L=_.sx(S.decoder_)>>>0,I=S.decoder_.cursor_+L,V=I-Y;V<=0&&(S.decoder_.end_=I,U(p,S,void 0,void 0,void 0),V=I-S.decoder_.cursor_);if(V)throw Error("S`"+L+"`"+(L-V));S.decoder_.cursor_=I;S.decoder_.end_=Y};
_.TpG=function(S){var p=_.sx(S.decoder_)>>>0;S=S.decoder_;var U=LWR(S,p);S=S.bytes_;if(vbe){var Y=S,L;(L=obe)||(L=obe=new TextDecoder("utf-8",{fatal:!0}));p=U+p;Y=U===0&&p===Y.length?Y:Y.subarray(U,p);try{var I=L.decode(Y)}catch(D){if(mlG===void 0){try{L.decode(new Uint8Array([128]))}catch(z){}try{L.decode(new Uint8Array([97])),mlG=!0}catch(z){mlG=!1}}!mlG&&(obe=void 0);throw D;}}else{I=U;p=I+p;U=[];for(var V=null,W,O;I<p;)W=S[I++],W<128?U.push(W):W<224?I>=p?pr():(O=S[I++],W<194||(O&192)!==128?(I--,
pr()):U.push((W&31)<<6|O&63)):W<240?I>=p-1?pr():(O=S[I++],(O&192)!==128||W===224&&O<160||W===237&&O>=160||((L=S[I++])&192)!==128?(I--,pr()):U.push((W&15)<<12|(O&63)<<6|L&63)):W<=244?I>=p-2?pr():(O=S[I++],(O&192)!==128||(W<<28)+(O-144)>>30!==0||((L=S[I++])&192)!==128||((Y=S[I++])&192)!==128?(I--,pr()):(W=(W&7)<<18|(O&63)<<12|(L&63)<<6|Y&63,W-=65536,U.push((W>>10&1023)+55296,(W&1023)+56320))):pr(),U.length>=8192&&(V=SXX(V,U),U.length=0);I=SXX(V,U)}return I};
_.WWN=function(S){var p=_.sx(S.decoder_)>>>0;return Foe(S.decoder_,p)};
_.OwN=function(S,p,U){var Y=_.sx(S.decoder_)>>>0;for(Y=S.decoder_.cursor_+Y;S.decoder_.cursor_<Y;)U.push(p(S.decoder_))};
d7e=[];var k6X=function(S,p){this.JSC$6870_lo=S>>>0;this.JSC$6870_hi=p>>>0},D7G=function(S){if(!S)return HwG||(HwG=new k6X(0,0));
if(!/^\d+$/.test(S))return null;LE(S);return new k6X(Aq,tq)},HwG,E5w=function(S,p){this.JSC$6872_lo=S>>>0;
this.JSC$6872_hi=p>>>0},CJe=function(S){if(!S)return zgR||(zgR=new E5w(0,0));
if(!/^-?\d+$/.test(S))return null;LE(S);return new E5w(Aq,tq)},zgR;var Qjk=function(){this.JSC$6874_buffer_=[]},xYG,nHe;
Qjk.prototype.length=function(){return this.JSC$6874_buffer_.length};
Qjk.prototype.end=function(){var S=this.JSC$6874_buffer_;this.JSC$6874_buffer_=[];return S};
xYG=function(S,p,U){for(;U>0||p>127;)S.JSC$6874_buffer_.push(p&127|128),p=(p>>>7|U<<25)>>>0,U>>>=7;S.JSC$6874_buffer_.push(p)};
nHe=function(S,p){for(;p>127;)S.JSC$6874_buffer_.push(p&127|128),p>>>=7;S.JSC$6874_buffer_.push(p)};
_.mYX=function(S,p){if(p>=0)nHe(S,p);else{for(var U=0;U<9;U++)S.JSC$6874_buffer_.push(p&127|128),p>>=7;S.JSC$6874_buffer_.push(1)}};
_.qh=function(S,p){S.JSC$6874_buffer_.push(p>>>0&255);S.JSC$6874_buffer_.push(p>>>8&255);S.JSC$6874_buffer_.push(p>>>16&255);S.JSC$6874_buffer_.push(p>>>24&255)};var JwG,o5,$Yw,BiN;JwG=function(){this.blocks_=[];this.totalLength_=0;this.encoder_=new Qjk};
o5=function(S,p){p.length!==0&&(S.blocks_.push(p),S.totalLength_+=p.length)};
_.HEw=function(S,p){_.Nh(S,p,2);p=S.encoder_.end();o5(S,p);p.push(S.totalLength_);return p};
_.DYN=function(S,p){var U=p.pop();for(U=S.totalLength_+S.encoder_.length()-U;U>127;)p.push(U&127|128),U>>>=7,S.totalLength_++;p.push(U);S.totalLength_++};
_.Nh=function(S,p,U){nHe(S.encoder_,p*8+U)};
$Yw=function(S,p,U){if(U!=null){switch(typeof U){case "string":D7G(U)}_.Nh(S,p,1);switch(typeof U){case "number":S=S.encoder_;oRr(U);_.qh(S,Aq);_.qh(S,tq);break;case "bigint":U=BigInt.asUintN(64,U);U=new k6X(Number(U&BigInt(4294967295)),Number(U>>BigInt(32)));S=S.encoder_;p=U.JSC$6870_hi;_.qh(S,U.JSC$6870_lo);_.qh(S,p);break;default:U=D7G(U),S=S.encoder_,p=U.JSC$6870_hi,_.qh(S,U.JSC$6870_lo),_.qh(S,p)}}};
BiN=function(S,p,U){_.Nh(S,p,2);nHe(S.encoder_,U.length);o5(S,S.encoder_.end());o5(S,U)};var WoE,bwu,jje,hgq,Rgw;WoE=gZ();_.ywq=gZ();_.KWw=gZ();bwu=gZ();jje=gZ();_.rwu=gZ();_.g1=gZ();_.G6R=gZ();hgq=gZ();Rgw=gZ();_.FWk=gZ();_.X5E=gZ();_.a5=function(S,p,U){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.UH(S,p,U)};
_.a5.prototype.toJSON=function(){return Su(this)};
_.a5.prototype.serialize=function(S){return JSON.stringify(Su(this,S))};
var YHG=function(S,p){if(p==null||p=="")return new S;p=JSON.parse(p);if(!Array.isArray(p))throw Error("$");return new S(uEX(p))};
_.a5.prototype.getExtension=function(S){sPR(this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,S.fieldIndex);Ptq(this,S.fieldIndex);return S.ctor?S.isRepeated?S.getExtensionFn(this,S.ctor,S.fieldIndex,_.Ur(),S.JSC$6885_hasMessageId):S.getExtensionFn(this,S.ctor,S.fieldIndex,S.JSC$6885_hasMessageId):S.isRepeated?S.getExtensionFn(this,S.fieldIndex,_.Ur(),S.JSC$6885_hasMessageId):S.getExtensionFn(this,S.fieldIndex,S.defaultValue,S.JSC$6885_hasMessageId)};
_.a5.prototype.clone=function(){var S=this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,p=S[_.jQ]|0;return I5(this,S,p)?Mh(this,S,!0):new this.constructor(L8(S,p,!1))};
_.a5.prototype[Et]=mo;_.a5.prototype.toString=function(){return this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows.toString()};var wZ=function(S,p,U){this.$$binaryReaderFn=S;this.$$binaryWriterFn=p;S=$5(WoE);this.$$isMsg=!!S&&U===S||!1},JdG=OEN(function(S,p,U,Y,L){if(S.nextWireType_!==2)return!1;
VER(S,Bjw(p,Y,U),L);return!0},zAR),ydG=OEN(function(S,p,U,Y,L){if(S.nextWireType_!==2)return!1;
VER(S,Bjw(p,Y,U),L);return!0},zAR),EH=Symbol(),f8=Symbol(),Gqd=Symbol(),eAk=Symbol(),XPe=Symbol(),QTE,n5w;var SHG,P3w,ZwG,sjq,egw,gHr,uvd,w5q,lXN,aXu,fXR,x7r,EHE,oHk,vHG;SHG=function(S,p){var U=new JwG;g5E(S.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,U,l4(EH,xA,m7,p));o5(U,U.encoder_.end());S=new Uint8Array(U.totalLength_);p=U.blocks_;for(var Y=p.length,L=0,I=0;I<Y;I++){var V=p[I];S.set(V,L);L+=V.length}U.blocks_=[S];return S};
P3w=_.vY(function(S,p,U){if(S.nextWireType_!==1)return!1;_.$A(p,U,U7q(S.decoder_));return!0},fsX,Rgw);
ZwG=_.vY(function(S,p,U,Y){if(S.nextWireType_!==1)return!1;_.kC(p,U,Y,U7q(S.decoder_));return!0},fsX,Rgw);
sjq=_.vY(function(S,p,U,Y){if(S.nextWireType_!==5)return!1;var L=_.eR(S.decoder_);S=(L>>31)*2+1;var I=L>>>23&255;L&=8388607;_.kC(p,U,Y,I==255?L?NaN:S*Infinity:I==0?S*1.401298464324817E-45*L:S*Math.pow(2,I-150)*(L+8388608));return!0},function(S,p,U){p=_.k5(p);
p!=null&&(_.Nh(S,U,5),S=S.encoder_,U=BY||(BY=new DataView(new ArrayBuffer(8))),U.setFloat32(0,+p,!0),tq=0,Aq=U.getUint32(0,!0),_.qh(S,Aq))},hgq);
_.uY=_.vY(function(S,p,U){if(S.nextWireType_!==0)return!1;_.$A(p,U,_.ZN(S.decoder_,pE));return!0},_.Ai,_.g1);
egw=_.vY(function(S,p,U){if(S.nextWireType_!==0)return!1;S=_.ZN(S.decoder_,pE);_.$A(p,U,S===0?void 0:S);return!0},_.Ai,_.g1);
gHr=_.vY(function(S,p,U,Y){if(S.nextWireType_!==0)return!1;_.kC(p,U,Y,_.ZN(S.decoder_,pE));return!0},_.Ai,_.g1);
_.w1=_.vY(function(S,p,U){if(S.nextWireType_!==0)return!1;_.$A(p,U,_.sx(S.decoder_));return!0},o5X,bwu);
uvd=_.vY(function(S,p,U){if(S.nextWireType_!==0)return!1;S=_.sx(S.decoder_);_.$A(p,U,S===0?void 0:S);return!0},o5X,bwu);
w5q=_.vY(function(S,p,U,Y){if(S.nextWireType_!==0)return!1;_.kC(p,U,Y,_.sx(S.decoder_));return!0},o5X,bwu);
lXN=_.vY(function(S,p,U){if(S.nextWireType_!==1)return!1;_.$A(p,U,p5X(S.decoder_));return!0},_.iEu,_.G6R);
aXu=_.ask(function(S,p,U){if(S.nextWireType_!==1&&S.nextWireType_!==2)return!1;p=_.hi(p,p[_.jQ]|0,U);S.nextWireType_==2?_.OwN(S,p5X,p):p.push(p5X(S.decoder_));return!0},function(S,p,U){p=_.lsr(QPq,p,!1);
if(p!=null)for(var Y=0;Y<p.length;Y++)$Yw(S,U,p[Y])},_.G6R);
_.lY=_.vY(function(S,p,U){if(S.nextWireType_!==0)return!1;_.$A(p,U,_.Y_N(S.decoder_));return!0},_.Niq,_.ywq);
fXR=_.vY(function(S,p,U,Y){if(S.nextWireType_!==0)return!1;_.kC(p,U,Y,_.Y_N(S.decoder_));return!0},_.Niq,_.ywq);
_.fT=_.vY(function(S,p,U){if(S.nextWireType_!==2)return!1;_.$A(p,U,_.TpG(S));return!0},_.qtG,_.KWw);
_.C3N=_.vY(function(S,p,U,Y){if(S.nextWireType_!==2)return!1;_.kC(p,U,Y,_.TpG(S));return!0},_.qtG,_.KWw);
x7r=_.ask(function(S,p,U){if(S.nextWireType_!==2)return!1;S=_.TpG(S);_.hi(p,p[_.jQ]|0,U).push(S);return!0},function(S,p,U){p=_.lsr(_.CE,p,!0);
if(p!=null)for(var Y=0;Y<p.length;Y++){var L=S,I=U,V=p[Y];V!=null&&BiN(L,I,Lqu(V))}},_.KWw);
EHE=void 0;EHE=EHE===void 0?WoE:EHE;_.CT=new wZ(function(S,p,U,Y,L){if(S.nextWireType_!==2)return!1;Y=YA(void 0,Y,!0);_.hi(p,p[_.jQ]|0,U).push(Y);VER(S,Y,L);return!0},function(S,p,U,Y,L){if(Array.isArray(p))for(var I=0;I<p.length;I++)Adw(S,p[I],U,Y,L)},EHE);
_.xC=OEN(function(S,p,U,Y,L,I){if(S.nextWireType_!==2)return!1;var V=p[_.jQ]|0;Loq(p,V,I,U,mE(V));p=Bjw(p,Y,U);VER(S,p,L);return!0},Adw);
_.m7u=_.vY(function(S,p,U){if(S.nextWireType_!==2)return!1;_.$A(p,U,_.WWN(S));return!0},_.tXw,_.FWk);
oHk=_.vY(function(S,p,U,Y){if(S.nextWireType_!==2)return!1;_.kC(p,U,Y,_.WWN(S));return!0},_.tXw,_.FWk);
vHG=_.vY(function(S,p,U,Y){if(S.nextWireType_!==0)return!1;_.kC(p,U,Y,_.sx(S.decoder_)>>>0);return!0},function(S,p,U){p=_.RT(p);
p!=null&&p!=null&&(_.Nh(S,U,0),nHe(S.encoder_,p))},jje);
_.Ex=_.vY(function(S,p,U){if(S.nextWireType_!==0)return!1;_.$A(p,U,_.sx(S.decoder_));return!0},_.cde,_.X5E);var Npw=function(){var S=$7G,p=iwq;this.fieldIndex=175237375;this.ctor=p;this.isRepeated=0;this.getExtensionFn=_.Sa;this.defaultValue=void 0;this.JSC$6885_hasMessageId=S.messageId!=null?xm:void 0};
Npw.prototype.register=function(){tx(this)};var Bpr=function(S){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.UH(S)};
_.r(Bpr,_.a5);var q_R=function(S){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.UH(S)};
_.r(q_R,_.a5);var I3N=function(S){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.UH(S)};
_.r(I3N,_.a5);var Aww=function(S){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.UH(S)};
_.r(Aww,_.a5);var tEe=function(S){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.UH(S)};
_.r(tEe,_.a5);var cwk=function(S){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.UH(S)};
_.r(cwk,_.a5);var Skr=function(S){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.UH(S)};
_.r(Skr,_.a5);Skr.prototype.getData=function(){return _.Ox(this,2)};var pUw=function(S){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.UH(S)};
_.r(pUw,_.a5);var Upk=function(S){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.UH(S)};
_.r(Upk,_.a5);Upk.prototype.getStyle=function(){return _.Sa(this,Bpr,1)};var ph=function(S){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.UH(S)};
_.r(ph,_.a5);ph.prototype.getPayloadCase=function(){return _.Hg(this,Lh)};
ph.prototype.getStyle=function(){return _.Ra(this,Upk,6,Lh)};
var Ykq=function(){var S=new ph,p=new tEe;return _.Yq(S,7,Lh,p)},LDk=function(){var S=new ph,p=new cwk;
return _.Yq(S,8,Lh,p)},Lh=[1,
2,3,4,5,6,7,8];var MTe=function(S){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.UH(S)};
_.r(MTe,_.a5);var Ije=function(S){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.UH(S)};
_.r(Ije,_.a5);var dpw=function(S){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.UH(S)};
_.r(dpw,_.a5);var VTu=function(S){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.UH(S)};
_.r(VTu,_.a5);var T0w=function(S){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.UH(S)};
_.r(T0w,_.a5);var WDu=function(S){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.UH(S)};
_.r(WDu,_.a5);var OGe=function(S){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.UH(S)};
_.r(OGe,_.a5);var k_e=function(S){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.UH(S)};
_.r(k_e,_.a5);k_e.prototype.getData=function(){return _.Ox(this,2)};var HGr=function(S){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.UH(S)};
_.r(HGr,_.a5);var Muu=function(S){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.UH(S)};
_.r(Muu,_.a5);Muu.prototype.getPayloadCase=function(){return _.Hg(this,m5)};
var m5=[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15];var oa=function(S,p){S=Error.call(this,S);this.message=S.message;"stack"in S&&(this.stack=S.stack);this.code=p===void 0?2:p};
_.r(oa,Error);var DpG=Promise;var zEG=function(S){this.channelPromise=S};
zEG.prototype.send=function(S,p,U){this.channelPromise.then(function(Y){Y.send(S,p,U)})};var QiR=function(S,p){this.data=S;this.channel=p};
QiR.prototype.reply=function(S,p,U){this.channel.send(S,p,U)};var nGq=function(S){this.JSC$6951_port_=S};
nGq.prototype.send=function(S,p,U){U=U===void 0?[]:U;var Y=new MessageChannel;JfG(Y.port1,p);this.JSC$6951_port_.postMessage(S,[Y.port2].concat(U))};
var yfr=function(S,p){JfG(S,p);return new nGq(S)},JfG=function(S,p){p&&(S.onmessage=function(U){p(new QiR(U.data,yfr(U.ports[0])))})};var KDw=function(S){this.verifier_=S},bGu=function(S){var p=Object.create(null);
(typeof S==="string"?[S]:S).forEach(function(U){if(U==="null")throw Error("ba");p[U]=!0});
return function(U){return p[U]===!0}};_.jiw=function(){if(!_.UX.addEventListener||!Object.defineProperty)return!1;var S=!1,p=Object.defineProperty({},"passive",{get:function(){S=!0}});
try{var U=function(){};
_.UX.addEventListener("test",U,p);_.UX.removeEventListener("test",U,p)}catch(Y){}return S}();var rfe;_.vg=function(S){var p=S.destination;var U=S.iframe;var Y=S.origin;var L=S.channelName===void 0?"ZNWN1d":S.channelName;var I=S.onMessage===void 0?void 0:S.onMessage;S=S.onEstablished===void 0?void 0:S.onEstablished;return rfe({destination:p,getSource:function(){return U.contentWindow},
originVerifier:Y instanceof KDw?Y:typeof Y==="function"?new KDw(Y):new KDw(bGu(Y)),channelName:L,onMessage:I,onEstablished:S})};
rfe=function(S){var p=S.destination;var U=S.getSource;var Y=S.originVerifier;var L=S.token===void 0?void 0:S.token;var I=S.channelName;var V=S.onMessage===void 0?void 0:S.onMessage;var W=S.onEstablished===void 0?void 0:S.onEstablished;return new zEG(new DpG(function(O,D){var z=function(Q){Q.source&&Q.source===U()&&Y.verifier_(Q.origin)&&(Q.data.n||Q.data)===I&&(p.removeEventListener("message",z,!1),L&&Q.data.t!==L?D(Error("ca`"+I+"`"+L+"`"+Q.data.t)):(O(yfr(Q.ports[0],V)),W&&W(Q)))};
p.addEventListener("message",z,!1)}))};var G_N=function(S){try{S()}catch(p){YR(p)}};var REe=function(S){var p=this;var U=S.getMessageType;var Y=S.onUnregisteredMessage===void 0?function(){}:S.onUnregisteredMessage;
var L=S.onBeforeRegisteredMessage===void 0?function(){}:S.onBeforeRegisteredMessage;
S=S.onAfterRegisteredMessage===void 0?function(){}:S.onAfterRegisteredMessage;
this.registry_=new Map;this.getMessageType_=U;this.onUnregisteredMessage_=Y;this.onBeforeRegisteredMessage_=L;this.onAfterRegisteredMessage_=S;this.onMessage=function(I){return hEq(p,I)}};
REe.prototype.register=function(S,p){this.registry_.set(S,p);return this};
var hEq=function(S,p){var U=S.getMessageType_(p.data),Y=S.registry_.get(U);Y?(G_N(function(){return S.onBeforeRegisteredMessage_(p,U)}),G_N(function(){return Y(p)}),G_N(function(){return S.onAfterRegisteredMessage_(p,U)})):G_N(function(){return S.onUnregisteredMessage_(p,U)})};var FDG=function(S){this.JSC$6968_channel_=S},PCR,ZGk;
FDG.prototype.send=function(S,p,U){this.JSC$6968_channel_.send(Su(S),p,U)};
_.XUq=function(S,p){return function(U){var Y=new S(U.data);return p(new QiR(Y,U.channel))}};
PCR=function(S){return function(p){return S(new QiR(p.data,new FDG(p.channel)))}};
ZGk=function(S,p){return PCR(_.XUq(S,p))};var siN=function(S,p,U,Y){this.registry=S;this.delegate=p;this.receiveMessageConstructor=U;this.createInitMessage=Y;this.initialised=!1;this.registry.register.bind(this.registry);this.features=new Set},L7e=function(S){var p=new REe({getMessageType:S.getPayloadCase});
return new siN(p,new FDG(_.vg({iframe:S.child,destination:window,origin:S.origin,channelName:S.channelName,onMessage:ZGk(S.receiveMessageConstructor,p.onMessage)})),S.receiveMessageConstructor,S.createInitMessage)},eEG=function(S,p){S.createInitMessage=p};
siN.prototype.send=function(S){if(!this.initialised)throw new oa("Attempted to send a message before initialisation.");this.delegate.send(S)};
var gGN=function(S,p){return _.T(function(U){if(!S.initialised)throw new oa("Attempted to send a message before initialisation.");return U.return(new Promise(function(Y){S.delegate.send(p,ZGk(S.receiveMessageConstructor,Y))}))})};
siN.prototype.init=function(){var S=this;return _.T(function(p){if(S.initialised)throw new oa("Attempted to initialise twice. The SDK can only be initialised once.");if(S.createInitMessage!==void 0){var U=S.delegate,Y=U.send,L=S.createInitMessage;var I=new q_R;var V=[].concat(_.jo(S.features));I=_.rZ(I,1,V,_.jX);Y.call(U,L.call(S,I))}S.initialised=!0;_.OV(p)})};
var $C=function(S,p){if(S.initialised)throw new oa('Attempted to set up API "'+p+'" after initialisation. All APIs must be set up before initialising the SDK.');S.features.add(p);return S.registry};
_.$u.Object.defineProperties(siN.prototype,{isInitialised:{configurable:!0,enumerable:!0,get:function(){return this.initialised}}});var uJN=function(S){this.channel=S;this.registered=!1};
uJN.prototype.update=function(S){if(this.channel.isInitialised){if(!this.registered)throw new oa("Using unregistered Audio Feature. Please call audio.update() before init() to indicate usage of the Audio Api.");var p=new ph;var U=new Aww;U=_.d5(U,1,S);p=_.Yq(p,2,Lh,U);this.channel.send(p)}else this.register();this.JSC$6982_audioEnabled=S};
uJN.prototype.register=function(){$C(this.channel,1);this.registered=!0};
uJN.prototype.isAudioEnabled=function(){return this.JSC$6982_audioEnabled};var wUd=function(S){this.channel=S};
_.M=wUd.prototype;_.M.onFirstFrameReady=function(S){$C(this.channel,2).register(11,function(p){p=_.Ra(p.data,MTe,11,m5);if(!p)throw new oa("Unexpectedly nonexistent GameFirstFrameReadyEvent");S(_.jR(p,1))})};
_.M.onReady=function(S){$C(this.channel,2).register(4,function(p){p=_.Ra(p.data,dpw,4,m5);if(!p)throw new oa("Unexpectedly nonexistent GameReadyEvent");S(_.jR(p,1))})};
_.M.onLevelComplete=function(S){$C(this.channel,2).register(5,function(p){p=_.Ra(p.data,VTu,5,m5);if(!p)throw new oa("Unexpectedly nonexistent LevelCompleteEvent");S(_.jR(p,1),_.YY(p,2))})};
_.M.onGameOver=function(S){$C(this.channel,2).register(6,function(p){p=_.Ra(p.data,Ije,6,m5);if(!p)throw new oa("Unexpectedly nonexistent GameOverEvent");S(_.jR(p,1))})};
_.M.pause=function(){var S=this;if(!this.channel.isInitialised)return $C(this.channel,2),Promise.resolve();if(!this.channel.features.has(2))throw new oa("Using unregistered Game Feature: pause.");var p=Ykq();return new Promise(function(U){return _.T(function(Y){if(Y.nextAddress==1)return _.k(Y,gGN(S.channel,p),2);U();_.OV(Y)})})};
_.M.resume=function(){var S=this;if(!this.channel.isInitialised)return $C(this.channel,2),Promise.resolve();if(!this.channel.features.has(2))throw new oa("Using unregistered Game Feature: resume.");var p=LDk();return new Promise(function(U){return _.T(function(Y){if(Y.nextAddress==1)return _.k(Y,gGN(S.channel,p),2);U();_.OV(Y)})})};var ljE=function(S){this.channel=S};
ljE.prototype.onReady=function(S){$C(this.channel,5).register(8,function(p){if(!_.Ra(p.data,T0w,8,m5))throw new oa("Unexpectedly nonexistent PageReadyEvent");S()})};var ajd=function(S){this.channel=S};
ajd.prototype.onChange=function(S){$C(this.channel,3).register(7,function(p){p=_.Ra(p.data,WDu,7,m5);if(!p)throw new oa("Unexpectedly nonexistent ScoreEvent");S(_.jR(p,1),_.YY(p,2))})};var fjE={load:function(){throw new oa("Storage used, but storage.onLoad() listener not set!");},
save:function(){throw new oa("Storage used, but storage.onSave() listener not set!");}},CCd=function(S){this.channel=S;
this.saveRegistered=this.loadRegistered=this.initialSetupDone=!1},xpX=function(S){$C(S.channel,4).register(2,fjE.load).register(3,fjE.save);
S.initialSetupDone=!0};
CCd.prototype.onLoad=function(S){this.initialSetupDone||xpX(this);this.loadRegistered||(this.loadRegistered=!0,$C(this.channel,4).register(2,function(p){var U,Y,L;return _.T(function(I){if(I.nextAddress==1){U=_.Ra(p.data,OGe,2,m5);if(!U)throw new oa("Unexpectedly nonexistent StorageLoad");Y=_.jR(U,1);return _.k(I,S(Y),2)}L=I.yieldResult;var V=p.reply,W=new ph;var O=new Skr;O=_.zN(O,1,Y);O=_.UP(O,2,_.aP(L,!1));W=_.Yq(W,3,Lh,O);V.call(p,W);_.OV(I)})}))};
CCd.prototype.onSave=function(S){this.initialSetupDone||xpX(this);this.saveRegistered||(this.saveRegistered=!0,$C(this.channel,4).register(3,function(p){var U,Y,L;return _.T(function(I){if(I.nextAddress==1){U=_.Ra(p.data,k_e,3,m5);if(!U)throw new oa("Unexpectedly nonexistent StorageSave");Y=_.jR(U,1);L=gww(U.getData());return _.k(I,S(Y,L),2)}var V=p.reply,W=new ph;var O=new pUw;O=_.zN(O,1,Y);W=_.Yq(W,4,Lh,O);V.call(p,W);_.OV(I)})}))};var EGu=function(S){this.channel=S};
EGu.prototype.update=function(S){if(!this.channel.features.has(6))throw new oa("Using unregistered Style Feature. Please call style.register() before init() to indicate usage of the Style Api.");var p=new ph,U=new Upk;S=_.U3(U,1,S);p=_.Yq(p,6,Lh,S);this.channel.send(p)};
EGu.prototype.register=function(){$C(this.channel,6)};var mpw=function(S){this.channel=S;this.userActivityLoggingIntervalMs=0};
mpw.prototype.onUserActivity=function(S,p){this.userActivityLoggingIntervalMs=p;$C(this.channel,7).register(9,function(U){if(!_.Ra(U.data,HGr,9,m5))throw new oa("Unexpectedly nonexistent ClickEvent");S()})};var oGX=function(S){var p=this;this.channel=S;this.init=this.channel.init.bind(this.channel);this.page=new ljE(this.channel);this.game=new wUd(this.channel);this.audio=new uJN(this.channel);this.score=new ajd(this.channel);this.storage=new CCd(this.channel);this.style=new EGu(this.channel);this.userActivity=new mpw(this.channel);eEG(this.channel,function(U){var Y=new I3N;U=_.U3(Y,1,U);U=_.FU(U,3,p.userActivity.userActivityLoggingIntervalMs);Y=p.audio.isAudioEnabled();Y!==void 0&&_.d5(U,2,Y);Y=new ph;
return _.Yq(Y,5,Lh,U)})};var vGw=function(){this.timedFunctionContext=0};
vGw.prototype.timeExecution=function(S,p){var U=this;return function(){var Y=_.jO.apply(0,arguments);U.timedFunctionContext=S;return p.apply(null,_.jo(Y))}};var $pe=function(){var S={};this.priorityTasks=(S[3]=[],S[2]=[],S[1]=[],S);this.isFlushing=!1},Vs=function(S,p,U){var Y=iGw(S,U);
S.priorityTasks[U].push(p);Y&&S.priorityTasks[U].length===1&&S.flush()},iGw=function(S,p){return Object.keys(S.priorityTasks).map(function(U){return Number(U)}).filter(function(U){return!isNaN(U)&&U>p}).every(function(U){return S.priorityTasks[U].length===0})};
$pe.prototype.flush=function(){if(!this.isFlushing){this.isFlushing=!0;try{for(;Object.values(this.priorityTasks).some(function(S){return S.length>0});)N0q(this,3),N0q(this,2),N0q(this,1)}catch(S){throw Object.values(this.priorityTasks).forEach(function(p){return void p.splice(0,p.length)}),S;
}finally{this.isFlushing=!1}}};
var N0q=function(S,p){for(;iGw(S,p)&&S.priorityTasks[p].length>0;)S.priorityTasks[p][0](),S.priorityTasks[p].shift()};
_.$u.Object.defineProperties($pe.prototype,{running:{configurable:!0,enumerable:!0,get:function(){return Object.values(this.priorityTasks).some(function(S){return S.length>0})}}});var kDG={};var B0w=globalThis.trustedTypes,VuG=B0w,W7w;var IK=function(S){this.privateDoNotAccessOrElseWrappedResourceUrl=S};
IK.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedResourceUrl+""};var qkN=_.x1([""]),Afq=j1e(["\x00"],["\\0"]),tTX=j1e(["\n"],["\\n"]),cfu=j1e(["\x00"],["\\u0000"]);WE(function(S){return S(qkN)})||WE(function(S){return S(Afq)})||WE(function(S){return S(tTX)})||WE(function(S){return S(cfu)});var nh;_.O3=function(S,p){this.privateDoNotAccessOrElseWrappedUrl=p};
_.O3.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedUrl};
_.Sew=kq("about:blank");nh=kq("about:invalid#zClosurez");var H8N=function(S){this.isValid=S},pad=new H8N(function(S){return/^[^:]*([/?#]|$)/.test(S)}),U8k=zl("data"),Yee=zl("http"),L2d=zl("https"),M6w=zl("ftp"),Inu=zl("mailto"),d8e=zl("intent"),V6N=zl("vnd.youtube"),Dhe=[U8k,
Yee,L2d,Inu,M6w,pad],z6X=MJ(function(){return typeof URL==="function"}),Tuw=["data:",
"http:","https:","mailto:","ftp:"],nAe=/^\s*(?!javascript:)(?:[\w+.-]+:|[^:/?#]*(?:[/?#]|$))/i;var RK=function(S){this.privateDoNotAccessOrElseWrappedHtml=S};
RK.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedHtml+""};
var nsG=MJ(function(){return new RK(B0w?B0w.emptyHTML:"")});var W2X={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"},ZO=function(S,p){var U=Error.call(this,S+" cannot be used with intent "+W2X[p]);this.message=U.message;"stack"in U&&(this.stack=U.stack);this.type=S;this.intent=p;this.name="TypeCannotBeUsedWithIframeIntentError"};
_.r(ZO,Error);_.ux=function(S){this.privateDoNotAccessOrElseWrappedScript=S};
_.ux.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedScript+""};var b8G=function(S){this.privateDoNotAccessOrElseWrappedAttributePrefix=S};
b8G.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedAttributePrefix};var j5G="alternate author bookmark canonical cite help icon license modulepreload next prefetch dns-prefetch prerender preconnect preload prev search subresource".split(" ");var nXu=function(S){var p=_.ad("window.location.href");S==null&&(S='Unknown Error of type "null/undefined"');if(typeof S==="string")return{message:S,name:"Unknown error",lineNumber:"Not available",fileName:p,stack:"Not available"};var U=!1;try{var Y=S.lineNumber||S.line||"Not available"}catch(V){Y="Not available",U=!0}try{var L=S.fileName||S.filename||S.sourceURL||_.UX.$googDebugFname||p}catch(V){L="Not available",U=!0}p=Oyk(S);if(!(!U&&S.lineNumber&&S.fileName&&S.stack&&S.message&&S.name)){U=S.message;
if(U==null){if(S.constructor&&S.constructor instanceof Function){if(S.constructor.name)U=S.constructor.name;else if(U=S.constructor,iY[U])U=iY[U];else{U=String(U);if(!iY[U]){var I=/function\s+([^\(]+)/m.exec(U);iY[U]=I?I[1]:"[Anonymous]"}U=iY[U]}U='Unknown Error of type "'+U+'"'}else U="Unknown Error of unknown type";typeof S.toString==="function"&&Object.prototype.toString!==S.toString&&(U+=": "+S.toString())}return{message:U,name:S.name||"UnknownError",lineNumber:Y,fileName:L,stack:p||"Not available"}}return{message:S.message,
name:S.name,lineNumber:S.lineNumber,fileName:S.fileName,stack:p}},Oyk=function(S,p){p||(p={});
p[kLu(S)]=!0;var U=S.stack||"",Y=S.cause;Y&&!p[kLu(Y)]&&(U+="\nCaused by: ",Y.stack&&Y.stack.indexOf(Y.toString())==0||(U+=typeof Y==="string"?Y:Y.message+"\n"),U+=Oyk(Y,p));S=S.errors;if(Array.isArray(S)){Y=1;var L;for(L=0;L<S.length&&!(Y>4);L++)p[kLu(S[L])]||(U+="\nInner error "+Y++ +": ",S[L].stack&&S[L].stack.indexOf(S[L].toString())==0||(U+=typeof S[L]==="string"?S[L]:S[L].message+"\n"),U+=Oyk(S[L],p));L<S.length&&(U+="\n... "+(S.length-L)+" more inner errors")}return U},kLu=function(S){var p=
"";
typeof S.toString==="function"&&(p=""+S);return p+S.stack},iY={};var Hyw,qZ,SS,zcd,QMw,D8R,Er,wn,J_R;Hyw=function(S,p){for(var U=S.split("%s"),Y="",L=Array.prototype.slice.call(arguments,1);L.length&&U.length>1;)Y+=U.shift()+L.shift();return Y+U.join("%s")};
_.CU=function(S){return encodeURIComponent(String(S))};
qZ=function(S){return decodeURIComponent(S.replace(/\+/g," "))};
SS=function(S){cvE.test(S)&&(S.indexOf("&")!=-1&&(S=S.replace(ixN,"&amp;")),S.indexOf("<")!=-1&&(S=S.replace(NAR,"&lt;")),S.indexOf(">")!=-1&&(S=S.replace(BAw,"&gt;")),S.indexOf('"')!=-1&&(S=S.replace(q5w,"&quot;")),S.indexOf("'")!=-1&&(S=S.replace(Avw,"&#39;")),S.indexOf("\x00")!=-1&&(S=S.replace(tIr,"&#0;")));return S};
zcd=function(S){var p={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"'};var U=_.UX.document.createElement("div");return S.replace(D8R,function(Y,L){var I=p[Y];if(I)return I;L.charAt(0)=="#"&&(L=Number("0"+L.slice(1)),isNaN(L)||(I=String.fromCharCode(L)));I||(_.Ch(U,Fq(Y+" ")),I=U.firstChild.nodeValue.slice(0,-1));return p[Y]=I})};
QMw=function(S){return S.replace(/&([^;]+);/g,function(p,U){switch(U){case "amp":return"&";case "lt":return"<";case "gt":return">";case "quot":return'"';default:return U.charAt(0)!="#"||(U=Number("0"+U.slice(1)),isNaN(U))?p:String.fromCharCode(U)}})};
D8R=/&([^;\s<&]+);?/g;_.fNR=function(S){return String(S).replace(/([-()\[\]{}+?*.$\^|,:#<!\\])/g,"\\$1").replace(/\x08/g,"\\x08")};
_.nNR=String.prototype.repeat?function(S,p){return S.repeat(p)}:function(S,p){return Array(p+1).join(S)};
_.NO=function(S,p){if(!Number.isFinite(S))return String(S);S=String(S);var U=S.indexOf(".");U===-1&&(U=S.length);var Y=S[0]==="-"?"-":"";Y&&(S=S.substring(1));return Y+(0,_.nNR)("0",Math.max(0,p-U))+S};
Er=function(){return Math.floor(Math.random()*2147483648).toString(36)+Math.abs(Math.floor(Math.random()*2147483648)^_.BO()).toString(36)};
wn=function(S){for(var p=0,U=0;U<S.length;++U)p=31*p+S.charCodeAt(U)>>>0;return p};
_.kn=function(S){return String(S).replace(/\-([a-z])/g,function(p,U){return U.toUpperCase()})};
_.O$=function(S){return String(S).replace(/([A-Z])/g,"-$1").toLowerCase()};
J_R=function(S){return S.replace(RegExp("(^|[\\s]+)([a-z])","g"),function(p,U,Y){return U+Y.toUpperCase()})};var y_N=function(){this.names=new Map};
y_N.prototype.getName=function(S){var p=this.names.get(S);if(p)return p;var U;p=(U=S.description)!=null?U:Er();this.names.set(S,p);return p};var K2w=function(S){var p=Error.call(this,S?S.length+" errors occurred during unsubscription:\n"+S.map(function(U,Y){return Y+1+") "+U.toString()}).join("\n  "):"");
this.message=p.message;"stack"in p&&(this.stack=p.stack);this.errors=S;Object.setPrototypeOf(this,this.constructor.prototype);this.name="UnsubscriptionError"};
_.r(K2w,Error);var NJ=function(S){this.initialTeardown=S;this.closed=!1;this._teardowns=this._parentage=null};
_.M=NJ.prototype;
_.M.unsubscribe=function(){if(!this.closed){this.closed=!0;var S=this._parentage;if(Array.isArray(S))for(var p=_.d(S),U=p.next();!U.done;U=p.next())U.value.remove(this);else S==null||S.remove(this);p=this.initialTeardown;if(ix(p))try{p()}catch(I){var Y=I instanceof K2w?I.errors:[I]}var L=this._teardowns;if(L)for(this._teardowns=null,p=_.d(L),U=p.next();!U.done;U=p.next()){U=U.value;try{ix(U)?U():U.unsubscribe()}catch(I){U=void 0,Y=(U=Y)!=null?U:[],I instanceof K2w?Y=[].concat(_.jo(Y),_.jo(I.errors)):
Y.push(I)}}if(Y)throw new K2w(Y);}};
_.M.add=function(S){if(S&&S!==this)if(this.closed)ix(S)?S():S.unsubscribe();else{if(S instanceof NJ){if(S.closed||S._hasParent(this))return;S._addParent(this)}var p;(this._teardowns=(p=this._teardowns)!=null?p:[]).push(S)}};
_.M._hasParent=function(S){var p=this._parentage;return p===S||Array.isArray(p)&&p.includes(S)};
_.M._addParent=function(S){var p=this._parentage;this._parentage=Array.isArray(p)?(p.push(S),p):p?[p,S]:S};
_.M._removeParent=function(S){var p=this._parentage;p===S?this._parentage=null:Array.isArray(p)&&$q(p,S)};
_.M.remove=function(S){var p=this._teardowns;p&&$q(p,S);S instanceof NJ&&S._removeParent(this)};
var byk=new NJ;byk.closed=!0;NJ.JSC$7078_EMPTY=byk;var R6e=function(){setTimeout.apply(null,_.jo(_.jO.apply(0,arguments)))};var Bg=function(S){NJ.call(this);this.JSC$7083_isStopped=!1;this.destination=S instanceof Bg?S:new qO(!S||ix(S)?{next:S!=null?S:void 0}:S);h6e(S)&&S.add(this)};
_.r(Bg,NJ);Bg.JSC$7078_EMPTY=NJ.JSC$7078_EMPTY;Bg.create=function(S,p,U){return new Ak(S,p,U)};
_.M=Bg.prototype;_.M.next=function(S){this.JSC$7083_isStopped||this._next(S)};
_.M.error=function(S){this.JSC$7083_isStopped||(this.JSC$7083_isStopped=!0,this._error(S))};
_.M.complete=function(){this.JSC$7083_isStopped||(this.JSC$7083_isStopped=!0,this._complete())};
_.M.unsubscribe=function(){this.closed||(this.JSC$7083_isStopped=!0,NJ.prototype.unsubscribe.call(this))};
_.M._next=function(S){this.destination.next(S)};
_.M._error=function(S){this.destination.error(S);this.unsubscribe()};
_.M._complete=function(){this.destination.complete();this.unsubscribe()};
var qO=function(S){this.partialObserver=S};
qO.prototype.next=function(S){var p=this.partialObserver;if(p.next)try{p.next(S)}catch(U){qJ(U)}};
qO.prototype.error=function(S){var p=this.partialObserver;if(p.error)try{p.error(S)}catch(U){qJ(U)}else qJ(S)};
qO.prototype.complete=function(){var S=this.partialObserver;if(S.complete)try{S.complete()}catch(p){qJ(p)}};
var Ak=function(S,p,U){Bg.call(this);var Y;ix(S)||!S?Y={next:S!=null?S:void 0,error:p!=null?p:void 0,complete:U!=null?U:void 0}:Y=S;this.destination=new qO(Y)};
_.r(Ak,Bg);Ak.JSC$7078_EMPTY=Bg.JSC$7078_EMPTY;Ak.create=Bg.create;var UV=typeof Symbol==="function"&&Symbol.observable||"@@observable";var So=function(S){S&&(this._subscribe=S)};
_.M=So.prototype;_.M.lift=function(S){var p=new So;p.source=this;p.operator=S;return p};
_.M.subscribe=function(S,p,U){S=S&&S instanceof Bg||S&&ix(S.next)&&ix(S.error)&&ix(S.complete)&&h6e(S)?S:new Ak(S,p,U);p=this.operator;U=this.source;S.add(p?p.call(S,U):U?this._subscribe(S):this._trySubscribe(S));return S};
_.M._trySubscribe=function(S){try{return this._subscribe(S)}catch(p){S.error(p)}};
_.M.forEach=function(S,p){var U=this;p=XYE(p);return new p(function(Y,L){var I=U.subscribe(function(V){try{S(V)}catch(W){L(W),I==null||I.unsubscribe()}},L,Y)})};
_.M._subscribe=function(S){var p;return(p=this.source)==null?void 0:p.subscribe(S)};
So.prototype[UV]=function(){return this};
So.prototype.pipe=function(){var S=_.jO.apply(0,arguments);return S.length?F7G(S)(this):this};
So.create=function(S){return new So(S)};var jME=function(){var S=Error.call(this,"object unsubscribed");this.message=S.message;"stack"in S&&(this.stack=S.stack);Object.setPrototypeOf(this,this.constructor.prototype);this.name="ObjectUnsubscribedError"};
_.r(jME,Error);var Ma=function(){this.observers=[];this.hasError=this.JSC$7099_isStopped=this.closed=!1;this.thrownError=null};
_.r(Ma,So);_.M=Ma.prototype;_.M.lift=function(S){var p=new tk(this,this);p.operator=S;return p};
_.M._throwIfClosed=function(){if(this.closed)throw new jME;};
_.M.next=function(S){this._throwIfClosed();if(!this.JSC$7099_isStopped){var p=this.observers.slice();p=_.d(p);for(var U=p.next();!U.done;U=p.next())U.value.next(S)}};
_.M.error=function(S){this._throwIfClosed();if(!this.JSC$7099_isStopped){this.hasError=this.JSC$7099_isStopped=!0;this.thrownError=S;for(var p=this.observers;p.length;)p.shift().error(S)}};
_.M.complete=function(){this._throwIfClosed();if(!this.JSC$7099_isStopped){this.JSC$7099_isStopped=!0;for(var S=this.observers;S.length;)S.shift().complete()}};
_.M.unsubscribe=function(){this.JSC$7099_isStopped=this.closed=!0;this.observers=null};
_.M._trySubscribe=function(S){this._throwIfClosed();return So.prototype._trySubscribe.call(this,S)};
_.M._subscribe=function(S){this._throwIfClosed();this._checkFinalizedStatuses(S);return this._innerSubscribe(S)};
_.M._innerSubscribe=function(S){var p=this,U=this.JSC$7099_isStopped,Y=this.observers;return this.hasError||U?NJ.JSC$7078_EMPTY:(Y.push(S),new NJ(function(){return $q(p.observers,S)}))};
_.M._checkFinalizedStatuses=function(S){var p=this.thrownError,U=this.JSC$7099_isStopped;this.hasError?S.error(p):U&&S.complete()};
Ma.create=function(S,p){return new tk(S,p)};
var tk=function(S,p){Ma.call(this);this.destination=S;this.source=p};
_.r(tk,Ma);tk.create=Ma.create;tk.prototype.next=function(S){var p,U;(p=this.destination)==null||(U=p.next)==null||U.call(p,S)};
tk.prototype.error=function(S){var p,U;(p=this.destination)==null||(U=p.error)==null||U.call(p,S)};
tk.prototype.complete=function(){var S,p;(S=this.destination)==null||(p=S.complete)==null||p.call(S)};
tk.prototype._subscribe=function(S){var p,U;return(U=(p=this.source)==null?void 0:p.subscribe(S))!=null?U:NJ.JSC$7078_EMPTY};var f_=function(S){Ma.call(this);this._value=S};
_.r(f_,Ma);f_.create=Ma.create;f_.prototype._subscribe=function(S){var p=Ma.prototype._subscribe.call(this,S);!p.closed&&S.next(this._value);return p};
f_.prototype.getValue=function(){var S=this.thrownError,p=this._value;if(this.hasError)throw S;this._throwIfClosed();return p};
f_.prototype.next=function(S){Ma.prototype.next.call(this,this._value=S)};
_.$u.Object.defineProperties(f_.prototype,{value:{configurable:!0,enumerable:!0,get:function(){return this.getValue()}}});var Zo=new So(function(S){return S.complete()});var pu=typeof Symbol==="function"&&Symbol.iterator?Symbol.iterator:"@@iterator";var l3R=function(S){return S&&typeof S.length==="number"&&typeof S!=="function"};var r_w={now:function(){return(r_w.delegate||Date).now()},
delegate:void 0};var iV=function(S,p,U){S=S===void 0?Infinity:S;p=p===void 0?Infinity:p;U=U===void 0?r_w:U;Ma.call(this);this.JSC$7121_bufferSize=S;this.windowTime=p;this.timestampProvider=U;this.buffer=[];this.infiniteTimeWindow=!0;this.infiniteTimeWindow=p===Infinity;this.JSC$7121_bufferSize=Math.max(1,S);this.windowTime=Math.max(1,p)};
_.r(iV,Ma);iV.create=Ma.create;iV.prototype.next=function(S){var p=this.buffer,U=this.infiniteTimeWindow,Y=this.timestampProvider,L=this.windowTime;this.JSC$7099_isStopped||(p.push(S),!U&&p.push(Y.now()+L));GLr(this);Ma.prototype.next.call(this,S)};
iV.prototype._subscribe=function(S){this._throwIfClosed();GLr(this);for(var p=this._innerSubscribe(S),U=this.infiniteTimeWindow,Y=this.buffer.slice(),L=0;L<Y.length&&!S.closed;L+=U?1:2)S.next(Y[L]);this._checkFinalizedStatuses(S);return p};
var GLr=function(S){var p=S.JSC$7121_bufferSize,U=S.timestampProvider,Y=S.buffer;S=S.infiniteTimeWindow;var L=(S?1:2)*p;p<Infinity&&L<Y.length&&Y.splice(0,Y.length-L);if(!S){p=U.now();U=0;for(S=1;S<Y.length&&Y[S]<=p;S+=2)U=S;U&&Y.splice(0,U+1)}};var Rce=function(S,p){p=p===void 0?hcG:p;this.schedulerActionCtor=S;this.now=p};
Rce.prototype.schedule=function(S,p,U){p=p===void 0?0:p;return(new this.schedulerActionCtor(this,S)).schedule(U,p)};
var hcG=r_w.now;var F1X=function(){var S=Error.call(this,"no elements in sequence");this.message=S.message;"stack"in S&&(this.stack=S.stack);Object.setPrototypeOf(this,this.constructor.prototype);this.name="EmptyError"};
_.r(F1X,Error);var nu=function(S,p,U,Y,L){Bg.call(this,S);this.onUnsubscribe=L;p&&(this._next=function(I){try{p(I)}catch(V){this.destination.error(V)}});
U&&(this._error=function(I){try{U(I)}catch(V){this.destination.error(V)}this.unsubscribe()});
Y&&(this._complete=function(){try{Y()}catch(I){this.destination.error(I)}this.unsubscribe()})};
_.r(nu,Bg);nu.JSC$7078_EMPTY=Bg.JSC$7078_EMPTY;nu.create=Bg.create;nu.prototype.unsubscribe=function(){var S;this.closed||(S=this.onUnsubscribe)!=null&&S.call(this);Bg.prototype.unsubscribe.call(this)};var v4=function(S,p){this.source=S;this.subjectFactory=p;this._subject=null;this._refCount=0;this._connection=null};
_.r(v4,So);v4.create=So.create;v4.prototype._subscribe=function(S){return F2k(this).subscribe(S)};
var F2k=function(S){var p=S._subject;if(!p||p.JSC$7099_isStopped)S._subject=S.subjectFactory();return S._subject};
v4.prototype._teardown=function(){this._refCount=0;var S=this._connection;this._subject=this._connection=null;S==null||S.unsubscribe()};
v4.prototype.connect=function(){var S=this,p=this._connection;if(!p){p=this._connection=new NJ;var U=F2k(this);p.add(this.source.subscribe(new nu(U,void 0,function(Y){S._teardown();U.error(Y)},function(){S._teardown();
U.complete()},function(){return S._teardown()})));
p.closed&&(this._connection=null,p=NJ.JSC$7078_EMPTY)}return p};var BZE=Array.isArray;var AiN=Array.isArray,Xaq=Object,tuw=Xaq.getPrototypeOf,ciw=Xaq.prototype,S3w=Xaq.keys;var G7=function(S,p,U){Bg.call(this,S);this._next=p;this.shouldComplete=U};
_.r(G7,Bg);G7.JSC$7078_EMPTY=Bg.JSC$7078_EMPTY;G7.create=Bg.create;G7.prototype._complete=function(){this.shouldComplete()?Bg.prototype._complete.call(this):this.unsubscribe()};var VON=["addListener","removeListener"],dJw=["addEventListener","removeEventListener"],W1e=["on","off"];var cg=function(){NJ.call(this)};
_.r(cg,NJ);cg.JSC$7078_EMPTY=NJ.JSC$7078_EMPTY;cg.prototype.schedule=function(){return this};var Pku=function(S,p){return setInterval.apply(null,[S,p].concat(_.jo(_.jO.apply(2,arguments))))};var Sc=function(S,p){NJ.call(this);this.scheduler=S;this.work=p;this.pending=!1};
_.r(Sc,cg);Sc.JSC$7078_EMPTY=cg.JSC$7078_EMPTY;Sc.prototype.schedule=function(S,p){p=p===void 0?0:p;if(this.closed)return this;this.state=S;S=this.id;var U=this.scheduler;S!=null&&(this.id=Zyq(this,S,p));this.pending=!0;this.delay=p;this.id=this.id||this.requestAsyncId(U,this.id,p);return this};
Sc.prototype.requestAsyncId=function(S,p,U){U=U===void 0?0:U;return Pku(S.flush.bind(S,this),U)};
var Zyq=function(S,p,U){U=U===void 0?0:U;if(U!=null&&S.delay===U&&S.pending===!1)return p;clearInterval(p)};
Sc.prototype.execute=function(S,p){if(this.closed)return Error("la");this.pending=!1;if(S=this._execute(S,p))return S;this.pending===!1&&this.id!=null&&(this.id=Zyq(this,this.id,null))};
Sc.prototype._execute=function(S){var p=!1;try{this.work(S)}catch(Y){p=!0;var U=!!Y&&Y||Error(Y)}if(p)return this.unsubscribe(),U};
Sc.prototype.unsubscribe=function(){if(!this.closed){var S=this.id,p=this.scheduler.actions;this.work=this.state=this.scheduler=null;this.pending=!1;$q(p,this);S!=null&&(this.id=Zyq(this,S,null));this.delay=null;cg.prototype.unsubscribe.call(this)}};var sMR=function(S,p){p=p===void 0?hcG:p;Rce.call(this,S,p);this.actions=[];this.active=!1;this.scheduled=void 0};
_.r(sMR,Rce);sMR.prototype.flush=function(S){var p=this.actions;if(this.active)p.push(S);else{var U;this.active=!0;do if(U=S.execute(S.state,S.delay))break;while(S=p.shift());this.active=!1;if(U){for(;S=p.shift();)S.unsubscribe();throw U;}}};var jb=new So(BE);var OhN=Array.isArray;var p0=function(S,p){Sc.call(this,S,p);this.scheduler=S;this.work=p};
_.r(p0,Sc);p0.JSC$7078_EMPTY=Sc.JSC$7078_EMPTY;p0.prototype.schedule=function(S,p){p=p===void 0?0:p;if(p>0)return Sc.prototype.schedule.call(this,S,p);this.delay=p;this.state=S;this.scheduler.flush(this);return this};
p0.prototype.execute=function(S,p){return p>0||this.closed?Sc.prototype.execute.call(this,S,p):this._execute(S,p)};
p0.prototype.requestAsyncId=function(S,p,U){U=U===void 0?0:U;return U!=null&&U>0||U==null&&this.delay>0?Sc.prototype.requestAsyncId.call(this,S,p,U):S.flush(this)};var ecw=function(){sMR.apply(this,arguments)};
_.r(ecw,sMR);var i8w=new ecw(p0);var gNN=function(){this.performanceMonitor=new vGw;this.queue=new $pe;this.internalSymbol=Symbol();this.debugNames=new y_N};
gNN.prototype.getOnBackgrounded=function(){return jb};
_.$u.Object.defineProperties(gNN.prototype,{symbol:{configurable:!0,enumerable:!0,get:function(){return this.internalSymbol}}});var UC=function(S,p){p=Error.call(this,p?S+": "+p:String(S));this.message=p.message;"stack"in p&&(this.stack=p.stack);this.code=S;this.__proto__=UC.prototype;this.name=String(S)};
_.r(UC,Error);var rO=function(S){UC.call(this,1E3,'sfr:"'+S+'"');this.measurementStrategyFailureReason=S;this.__proto__=rO.prototype};
_.r(rO,UC);var GN=function(){UC.call(this,1003);this.__proto__=GN.prototype};
_.r(GN,UC);var YZ=function(){UC.call(this,1009);this.__proto__=YZ.prototype};
_.r(YZ,UC);var uVN=function(){UC.call(this,1011);this.__proto__=uVN.prototype};
_.r(uVN,UC);var waq=function(){UC.call(this,1007);this.__proto__=GN.prototype};
_.r(waq,UC);var Qs=function(S){UC.call(this,1004,String(S));this.inputObservableIndex=S;this.__proto__=Qs.prototype};
_.r(Qs,UC);var foe=function(S){UC.call(this,1010,S);this.__proto__=n_.prototype};
_.r(foe,UC);var n_=function(S){UC.call(this,1005,S);this.__proto__=n_.prototype};
_.r(n_,UC);var lnr=function(S){var p=_.jO.apply(1,arguments),U=this;this.orderedFactories=[];this.orderedFactories.push(S);p.forEach(function(Y){U.orderedFactories.push(Y)})};
lnr.prototype.isSupported=function(S){return this.orderedFactories.some(function(p){return p.isSupported(S)})};
lnr.prototype.makeBeacon=function(S,p){for(var U=0;U<this.orderedFactories.length;U++)if(this.orderedFactories[U].isSupported(p))return this.orderedFactories[U].makeBeacon(S,p);throw new YZ;};var r9q=Symbol("ma"),anG=Symbol("na"),uV=function(S,p){this.value=S;this.timeline=p},g3=function(S,p){if(p.timeline!==S.timeline)throw new waq;
return S.value-p.value};
_.M=uV.prototype;_.M.equals=function(S){return g3(this,S)===0};
_.M.maximum=function(S){if(S.timeline!==this.timeline)throw new waq;return this.value>=S.value?this:S};
_.M.round=function(){return new uV(Math.round(this.value),this.timeline)};
_.M.add=function(S){return new uV(this.value+S,this.timeline)};
_.M.toString=function(){return String(this.value)};var L0=function(S,p){this.context=S;this.JSC$7205_pinger=p};
L0.prototype.isSupported=function(S){return this.JSC$7205_pinger.isSupported(S)};
L0.prototype.makeBeacon=function(S,p){if(!this.isSupported(p))throw new YZ;return new MA(this.context,this.JSC$7205_pinger,p!=null?p:void 0,S)};
var MA=function(S,p,U,Y){var L=this;this.JSC$7211_pinger=p;this.properties=U;this.url=Y;this.internalIsPending=!0;this.customHeaders=new Map;this.body=void 0;var I;this.method=(I=U==null?void 0:U.beaconMethod)!=null?I:"GET";this.backgroundedSubscription=S.getOnBackgrounded().subscribe(function(){L.sendNow()})};
MA.prototype.deactivate=function(){this.internalIsPending=!1};
MA.prototype.sendNow=function(){if(this.internalIsPending)if(this.backgroundedSubscription.unsubscribe(),this.JSC$7211_pinger.isSupported(this.properties))try{if(this.customHeaders.size>0||this.body!==void 0){var S,p;this.JSC$7211_pinger.pingWithHeadersAndBody((S=this.properties)!=null?S:{},this.customHeaders,(p=this.body)!=null?p:"",this.url)}else this.JSC$7211_pinger.ping(this.url);this.internalIsPending=!1}catch(U){}else this.internalIsPending=!1};
MA.prototype.setHeader=function(S){this.customHeaders.set(S,void 0)};
_.$u.Object.defineProperties(MA.prototype,{isPending:{configurable:!0,enumerable:!0,get:function(){return this.internalIsPending}}});var Cke=function(){for(var S=_.d(_.jO.apply(0,arguments)),p=S.next();!p.done;p=S.next())if(p=p.value,p.available()){this.timeProvider=p;return}this.timeProvider=new fnw};
_.M=Cke.prototype;_.M.available=function(){return this.timeProvider.available()};
_.M.now=function(){return this.timeProvider.now()};
_.M.setTimeout=function(S,p){return this.timeProvider.setTimeout(S,p)};
_.M.clearTimeout=function(S){this.timeProvider.clearTimeout(S)};
_.M.interval=function(S,p){var U=this.intervalObservable(S).subscribe(p);return function(){return void U.unsubscribe()}};
_.M.intervalObservable=function(S){return this.timeProvider.intervalObservable(S)};
_.$u.Object.defineProperties(Cke.prototype,{timeline:{configurable:!0,enumerable:!0,get:function(){return this.timeProvider.timeline}}});
var fnw=function(){this.timeline=Symbol()};
_.M=fnw.prototype;_.M.available=function(){return!1};
_.M.now=function(){return new uV(0,this.timeline)};
_.M.setTimeout=function(){return 0};
_.M.clearTimeout=function(){};
_.M.interval=function(){return function(){}};
_.M.intervalObservable=function(){return jb};var I3=function(S,p){this.intrinsicFunctionNamespace=S;this.performanceMonitor=p};
_.M=I3.prototype;_.M.setTimeout=function(S,p){return this.intrinsicFunctionNamespace.setTimeout(this.performanceMonitor.timeExecution(734,S),p)};
_.M.clearTimeout=function(S){this.intrinsicFunctionNamespace.clearTimeout(S)};
_.M.interval=function(S,p){var U=this.intervalObservable(S).subscribe(p);return function(){return void U.unsubscribe()}};
_.M.intervalObservable=function(S){var p=this;return new So(function(U){var Y=0,L=p.intrinsicFunctionNamespace.setInterval(function(){U.next(Y++)},S);
return function(){p.intrinsicFunctionNamespace.clearInterval(L)}})};
_.M.available=function(){return!!this.intrinsicFunctionNamespace.clearTimeout&&"setTimeout"in this.intrinsicFunctionNamespace&&"setInterval"in this.intrinsicFunctionNamespace&&!!this.intrinsicFunctionNamespace.clearInterval};var x8w=function(S,p){I3.call(this,S,p);this.timeline=anG};
_.r(x8w,I3);x8w.prototype.now=function(){return new uV(this.intrinsicFunctionNamespace.Date.now(),this.timeline)};
x8w.prototype.available=function(){return!!this.intrinsicFunctionNamespace.Date&&!!this.intrinsicFunctionNamespace.Date.now&&I3.prototype.available.call(this)};var ENe=function(S,p){I3.call(this,S,p);this.timeline=r9q};
_.r(ENe,I3);ENe.prototype.now=function(){return new uV(this.intrinsicFunctionNamespace.performance.now(),this.timeline)};
ENe.prototype.available=function(){return!!this.intrinsicFunctionNamespace.performance&&!!this.intrinsicFunctionNamespace.performance.now&&I3.prototype.available.call(this)};var oNG=function(S){this.context=S;if(m8r===void 0)a:{var p,U,Y=(p=S.global)==null?void 0:(U=p.document)==null?void 0:U.createElement("meta");if(Y)try{Y.httpEquiv="origin-trial";Y.content="AxjhRadLCARYRJawRjMjq4U8V8okQvSnrBIJWdMajuEkN3/DfVAcLcFhMVrUWnOXagwlI8dQD84FwJDGj9ohqAYAAABveyJvcmlnaW4iOiJodHRwczovL2dvb2dsZWFkc2VydmljZXMuY29tOjQ0MyIsImZlYXR1cmUiOiJGZXRjaExhdGVyQVBJIiwiZXhwaXJ5IjoxNzI1NDA3OTk5LCJpc1RoaXJkUGFydHkiOnRydWV9";S.global.document.head.append(Y);m8r=Y;break a}catch(L){}m8r=void 0}},
m8r;
oNG.prototype.isSupported=function(S){return bhw(this.context)!==void 0&&!(S==null||!S.endOfSession)&&!dX(this.context)&&!(S==null?0:S.attributionEnabled)&&!(S==null?0:S.customHeaders)&&!(S==null?0:S.customBody)};
oNG.prototype.makeBeacon=function(S,p){if(!this.isSupported(p))throw new YZ;return new VC(this.context,S,p)};
var VC=function(S,p,U){this.context=S;this.properties=U;this.JSC$7238_urlWithoutToken=p;var Y;this.beaconMethod=(Y=U==null?void 0:U.beaconMethod)!=null?Y:"GET";S=bhw(this.context);if(S===void 0)throw Error();this.fetchLater=S;vNr(this,$8e(this))},vNr=function(S,p){S.beaconResult&&S.beaconResult.activated||(S.beaconAbort=new AbortController,S.beaconResult=S.fetchLater(p,{method:S.beaconMethod,
cache:"no-cache",mode:"no-cors",signal:S.beaconAbort.signal,activateAfter:96E4}))},$8e=function(S){S=S.JSC$7238_urlWithoutToken;
return(S.slice(-1)[0]==="&"?S:S+"&")+"flapi=1"};
VC.prototype.deactivate=function(){this.beaconResult&&!this.beaconResult.activated&&this.beaconAbort&&(this.beaconAbort.abort(),this.beaconResult=void 0)};
VC.prototype.sendNow=function(){};
VC.prototype.setHeader=function(){};
_.$u.Object.defineProperties(VC.prototype,{url:{configurable:!0,enumerable:!0,get:function(){return this.JSC$7238_urlWithoutToken},
set:function(S){this.JSC$7238_urlWithoutToken=S;S=$8e(this);this.beaconResult&&this.beaconResult.activated||!this.beaconAbort||(this.beaconAbort.abort(),this.beaconResult=void 0);vNr(this,S)}},
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 iyG=function(S){this.context=S};
iyG.prototype.isSupported=function(){return!dX(this.context)&&!!this.context.global.fetch};
iyG.prototype.ping=function(){var S=this;return sV.apply(null,_.jo(_.jO.apply(0,arguments).map(function(p){return Lu(S.context.global.fetch(p,{method:"GET",cache:"no-cache",keepalive:!0,mode:"no-cors"})).pipe(y9(function(U){return U.status===200}))}))).pipe(XEG(function(p){return p}),Zhr())};
iyG.prototype.pingWithHeadersAndBody=function(S,p,U){for(var Y=_.jO.apply(3,arguments),L=this,I=new Headers,V=_.d(p.entries()),W=V.next();!W.done;W=V.next()){var O=_.d(W.value);W=O.next().value;O=O.next().value;I.set(W,O)}var D,z=(D=S.keepAlive)!=null?D:!1;sV.apply(null,_.jo(Y.map(function(Q){return Lu(L.context.global.fetch(Q,Object.assign({},{method:String(S.beaconMethod),cache:"no-cache"},z?{keepalive:!0}:{},{mode:"no-cors",headers:I,body:U}))).pipe(y9(function(J){return J.status===200}))}))).pipe(XEG(function(Q){return Q}),
Zhr())};var Nuu,Hde;_.TX=function(){};
_.Cr=function(S){return S};
Nuu=function(S){var p=p||0;return function(){return S.apply(this,Array.prototype.slice.call(arguments,0,p))}};
_.WD=function(S){var p=!1,U;return function(){p||(U=S(),p=!0);return U}};
_.OC=function(S,p){var U=0;return function(Y){_.UX.clearTimeout(U);var L=arguments;U=_.UX.setTimeout(function(){S.apply(void 0,L)},p)}};
Hde=function(S,p){var U=0,Y=!1,L=[],I=function(){U=0;Y&&(Y=!1,V())},V=function(){U=_.UX.setTimeout(I,p);
var W=L;L=[];S.apply(void 0,W)};
return function(W){L=arguments;U?Y=!0:V()}};var qeG=function(){return Qw&&nr?nr.mobile:!Buw()&&(jw("iPod")||jw("iPhone")||jw("Android")||jw("IEMobile"))},Buw=function(){return Qw&&nr?!nr.mobile&&(jw("iPad")||jw("Android")||jw("Silk")):jw("iPad")||jw("Android")&&!jw("Mobile")||jw("Silk")};var A_N;_.h9={};A_N="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");_.h9.add=function(S,p,U){if(S!==null&&p in S)throw Error("pa`"+p);S[p]=U};
_.h9.clear=function(S){for(var p in S)delete S[p]};
_.h9.clone=function(S){var p={},U;for(U in S)p[U]=S[U];return p};
_.h9.contains=function(S,p){return gqk(S,p)};
_.h9.containsKey=function(S,p){return S!==null&&p in S};
_.h9.containsValue=gqk;_.h9.create=lOd;_.h9.createImmutableView=function(S){var p=S;Object.isFrozen&&!Object.isFrozen(S)&&(p=Object.create(S),Object.freeze(p));return p};
_.h9.createSet=aOw;_.h9.equals=function(S,p){for(var U in S)if(!(U in p)||S[U]!==p[U])return!1;for(var Y in p)if(!(Y in S))return!1;return!0};
_.h9.every=function(S,p,U){for(var Y in S)if(!p.call(U,S[Y],Y,S))return!1;return!0};
_.h9.extend=function(S,p){for(var U,Y,L=1;L<arguments.length;L++){Y=arguments[L];for(U in Y)S[U]=Y[U];for(var I=0;I<A_N.length;I++)U=A_N[I],Object.prototype.hasOwnProperty.call(Y,U)&&(S[U]=Y[U])}};
_.h9.filter=function(S,p,U){var Y={},L;for(L in S)p.call(U,S[L],L,S)&&(Y[L]=S[L]);return Y};
_.h9.findKey=uqr;_.h9.findValue=function(S,p,U){return(p=uqr(S,p,U))&&S[p]};
_.h9.forEach=function(S,p,U){for(var Y in S)p.call(U,S[Y],Y,S)};
_.h9.get=function(S,p,U){return S!==null&&p in S?S[p]:U};
_.h9.getAllPropertyNames=function(S,p,U){if(!S)return[];if(!Object.getOwnPropertyNames||!Object.getPrototypeOf)return efe(S);for(var Y={};S&&(S!==Object.prototype||p)&&(S!==Function.prototype||U);){for(var L=Object.getOwnPropertyNames(S),I=0;I<L.length;I++)Y[L[I]]=!0;S=Object.getPrototypeOf(S)}return efe(Y)};
_.h9.getAnyKey=function(S){for(var p in S)return p};
_.h9.getAnyValue=function(S){for(var p in S)return S[p]};
_.h9.getCount=function(S){var p=0,U;for(U in S)p++;return p};
_.h9.getKeys=efe;_.h9.getSuperClass=function(S){return(S=Object.getPrototypeOf(S.prototype))&&S.constructor};
_.h9.getValueByKeys=function(S,p){var U=_.Ae(p),Y=U?p:arguments;for(U=U?0:1;U<Y.length;U++){if(S==null)return;S=S[Y[U]]}return S};
_.h9.getValues=function(S){var p=[],U=0,Y;for(Y in S)p[U++]=S[Y];return p};
_.h9.isEmpty=function(S){for(var p in S)return!1;return!0};
_.h9.isImmutableView=function(S){return!!Object.isFrozen&&Object.isFrozen(S)};
_.h9.map=function(S,p,U){var Y={},L;for(L in S)Y[L]=p.call(U,S[L],L,S);return Y};
_.h9.remove=function(S,p){var U;(U=p in S)&&delete S[p];return U};
_.h9.set=function(S,p,U){S[p]=U};
_.h9.setIfUndefined=function(S,p,U){return p in S?S[p]:S[p]=U};
_.h9.setWithReturnValueIfNotSet=function(S,p,U){if(p in S)return S[p];U=U();return S[p]=U};
_.h9.some=function(S,p,U){for(var Y in S)if(p.call(U,S[Y],Y,S))return!0;return!1};
_.h9.transpose=function(S){var p={},U;for(U in S)p[S[U]]=U;return p};
_.h9.unsafeClone=wEd;var kZ=function(S,p,U,Y,L){this.allowedElements=S;this.elementPolicies=p;this.allowedGlobalAttributes=U;this.globalAttributePolicies=Y;this.globallyAllowedAttributePrefixes=L},t6u=function(S,p,U){U=S.elementPolicies.get(U);
return(U==null?0:U.has(p))?U.get(p):S.allowedGlobalAttributes.has(p)?{policyAction:1}:(U=S.globalAttributePolicies.get(p))?U:S.globallyAllowedAttributePrefixes&&[].concat(_.jo(S.globallyAllowedAttributePrefixes)).some(function(Y){return p.indexOf(Y)===0})?{policyAction:1}:{policyAction:0}};var c_k="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(" "),
SXl=[["A",new Map([["href",{policyAction:2}]])],["AREA",new Map([["href",{policyAction:2}]])],["LINK",new Map([["href",{policyAction:5,conditions:new Map([["rel",new Set("alternate author bookmark canonical cite help icon license next prefetch dns-prefetch prerender preconnect preload prev search subresource".split(" "))]])}]])],["SOURCE",new Map([["src",{policyAction:5}],["srcset",{policyAction:6}]])],["IMG",new Map([["src",{policyAction:5}],["srcset",{policyAction:6}]])],["VIDEO",new Map([["src",
{policyAction:5}]])],["AUDIO",new Map([["src",{policyAction:5}]])]],pkI="title aria-atomic aria-autocomplete aria-busy aria-checked aria-current aria-disabled aria-dropeffect aria-expanded aria-haspopup aria-hidden aria-invalid aria-label aria-level aria-live aria-multiline aria-multiselectable aria-orientation aria-posinset aria-pressed aria-readonly aria-relevant aria-required aria-selected aria-setsize aria-sort aria-valuemax aria-valuemin aria-valuenow aria-valuetext alt align autocapitalize autocomplete autocorrect autofocus autoplay bgcolor border cellpadding cellspacing checked cite color cols colspan controls controlslist crossorigin datetime disabled download draggable enctype face formenctype frameborder height hreflang hidden ismap label lang loop max maxlength media minlength min multiple muted nonce open playsinline placeholder poster preload rel required reversed role rows rowspan selected shape size sizes slot span spellcheck start step summary translate type valign value width wrap itemscope itemtype itemid itemprop itemref".split(" "),
UGP=[["dir",{policyAction:3,conditions:MJ(function(){return new Map([["dir",new Set(["auto","ltr","rtl"])]])})}],
["async",{policyAction:3,conditions:MJ(function(){return new Map([["async",new Set(["async"])]])})}],
["loading",{policyAction:3,conditions:MJ(function(){return new Map([["loading",new Set(["eager","lazy"])]])})}],
["target",{policyAction:3,conditions:MJ(function(){return new Map([["target",new Set(["_self","_blank"])]])})}]],YXe=new kZ(new Set(c_k),new Map(SXl),new Set(pkI),new Map(UGP)),LqP=new kZ(new Set(c_k.concat(["BUTTON",
"INPUT"])),new Map(SXl),new Set(MJ(function(){return pkI.concat(["class","id","name"])})),new Map(MJ(function(){return UGP.concat([["style",
{policyAction:1}]])})));var MwI,Iwt,Vwe;MwI=function(S,p,U,Y){this.JSC$7298_sanitizerTable=S;this.styleElementSanitizer=p;this.styleAttributeSanitizer=U;this.JSC$7298_resourceUrlPolicy=Y;this.changes=[]};
_.dGc=function(S,p){var U=document.implementation.createHTMLDocument("");S=Iwt(S,p,U);U=U.body;U.appendChild(S);U=(new XMLSerializer).serializeToString(U);U=U.slice(U.indexOf(">")+1,U.lastIndexOf("</"));return Fq(U)};
Iwt=function(S,p,U){p=Cxd(p,U);p=document.createTreeWalker(p,5,function(W){if(W.nodeType===3)W=1;else if(EqE(W))if(W=xJG(W),W===null)W=2;else{var O=S.JSC$7298_sanitizerTable;W=W!=="FORM"&&(O.allowedElements.has(W)||O.elementPolicies.has(W))?1:2}else W=2;return W});
for(var Y=p.nextNode(),L=U.createDocumentFragment(),I=L;Y!==null;){var V=void 0;if(Y.nodeType===3)S.styleElementSanitizer&&I.nodeName==="STYLE"?(Y=S.styleElementSanitizer(Y.data),V=S.createTextNode(Y)):V=S.createTextNode(Y.data);else if(EqE(Y))V=Vwe(S,Y,U);else throw Error("da");I.appendChild(V);if(Y=p.firstChild())I=V;else for(;!(Y=p.nextSibling())&&(Y=p.parentNode());)I=I.parentNode}return L};
MwI.prototype.createTextNode=function(S){return document.createTextNode(S)};
Vwe=function(S,p,U){var Y,L=xJG(p);U=U.createElement(L);p=p.attributes;for(var I=_.d(p),V=I.next();!V.done;V=I.next()){var W=V.value;V=W.name;W=W.value;var O=t6u(S.JSC$7298_sanitizerTable,V,L);a:{if(Y=O.conditions){Y=_.d(Y);for(var D=Y.next();!D.done;D=Y.next()){var z=_.d(D.value);D=z.next().value;z=z.next().value;var Q=void 0;if((D=(Q=p.getNamedItem(D))==null?void 0:Q.value)&&!z.has(D)){Y=!1;break a}}}Y=!0}if(Y)switch(O.policyAction){case 1:p_(U,V,W);break;case 2:O=_.Q5N(W);W=O!==void 0&&Tuw.indexOf(O.toLowerCase())!==
-1?W:"about:invalid#zClosurez";p_(U,V,W);break;case 3:p_(U,V,W.toLowerCase());break;case 4:S.styleAttributeSanitizer?(W=S.styleAttributeSanitizer(W),p_(U,V,W)):p_(U,V,W);break;case 5:S.JSC$7298_resourceUrlPolicy?(O={type:2,attributeName:V,elementName:L},W=fOR(W),(W=S.JSC$7298_resourceUrlPolicy(W,O))&&p_(U,V,W.toString())):p_(U,V,W);break;case 6:if(S.JSC$7298_resourceUrlPolicy){O={type:2,attributeName:V,elementName:L};Y=[];W=_.d(W.split(","));for(D=W.next();!D.done;D=W.next())z=_.d(D.value.trim().split(/\s+/,
2)),D=z.next().value,z=z.next().value,Y.push({url:D,descriptor:z});W={parts:[]};Y=_.d(Y);for(D=Y.next();!D.done;D=Y.next())D=D.value,z=fOR(D.url),(z=S.JSC$7298_resourceUrlPolicy(z,O))&&W.parts.push({url:z.toString(),descriptor:D.descriptor});p_(U,V,mJG(W))}else p_(U,V,W)}}return U};
_.TNP=MJ(function(){return new MwI(YXe)});
_.Wqt=MJ(function(){return new MwI(LqP)});var Ort=function(){this.calledBuild=!1;this.JSC$7310_sanitizerTable=YXe},kGI=function(){Ort.apply(this,arguments)};
_.r(kGI,Ort);kGI.prototype.build=function(){if(this.calledBuild)throw Error("ra");this.calledBuild=!0;return new MwI(this.JSC$7310_sanitizerTable,void 0,void 0,this.JSC$7310_resourceUrlPolicy)};var HrH=/[^#]*/;var Na=function(S){try{return!!S&&S.location.href!=null&&sF(S,"foo")}catch(p){return!1}},zdQ=function(S){var p=DGE;
if(p)for(var U in p)Object.prototype.hasOwnProperty.call(p,U)&&S(p[U],U,p)},QuH=function(){var S=[];
zdQ(function(p){S.push(p)});
return S},DGE={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"},nRc=_.WD(function(){return QuH()}),yeq=function(){var S=Jed("IFRAME"),
p={};
_.xs(nRc(),function(U){S.sandbox&&S.sandbox.supports&&S.sandbox.supports(U)&&(p[U]=!0)});
return p},Jed=function(S,p){p=p===void 0?document:p;
return p.createElement(String(S).toLowerCase())};var HD;_.F7=function(S,p,U){return Math.min(Math.max(S,p),U)};
HD=function(S,p,U){return S+U*(p-S)};_.Xp=function(S,p){this.x=S!==void 0?S:0;this.y=p!==void 0?p:0};
_.M=_.Xp.prototype;_.M.clone=function(){return new _.Xp(this.x,this.y)};
_.M.equals=function(S){return S instanceof _.Xp&&(this==S?!0:this&&S?this.x==S.x&&this.y==S.y:!1)};
_.M.ceil=function(){this.x=Math.ceil(this.x);this.y=Math.ceil(this.y);return this};
_.M.floor=function(){this.x=Math.floor(this.x);this.y=Math.floor(this.y);return this};
_.M.round=function(){this.x=Math.round(this.x);this.y=Math.round(this.y);return this};
_.M.translate=function(S,p){S instanceof _.Xp?(this.x+=S.x,this.y+=S.y):(this.x+=Number(S),typeof p==="number"&&(this.y+=p));return this};
_.M.scale=function(S,p){this.x*=S;this.y*=typeof p==="number"?p:S;return this};_.OF=function(S,p){this.width=S;this.height=p};
_.M=_.OF.prototype;_.M.clone=function(){return new _.OF(this.width,this.height)};
_.M.area=function(){return this.width*this.height};
_.M.aspectRatio=function(){return this.width/this.height};
_.M.isEmpty=function(){return!this.area()};
_.M.ceil=function(){this.width=Math.ceil(this.width);this.height=Math.ceil(this.height);return this};
_.M.floor=function(){this.width=Math.floor(this.width);this.height=Math.floor(this.height);return this};
_.M.round=function(){this.width=Math.round(this.width);this.height=Math.round(this.height);return this};
_.M.scale=function(S,p){this.width*=S;this.height*=typeof p==="number"?p:S;return this};var uQ=function(S,p){this.stringConstValueWithSecurityContract__googStringSecurityPrivate_=S===KsG&&p||"";this.STRING_CONST_TYPE_MARKER__GOOG_STRING_SECURITY_PRIVATE_=Kqm};
uQ.prototype.toString=function(){return this.stringConstValueWithSecurityContract__googStringSecurityPrivate_};
var bre=function(S){return S instanceof uQ&&S.constructor===uQ&&S.STRING_CONST_TYPE_MARKER__GOOG_STRING_SECURITY_PRIVATE_===Kqm?S.stringConstValueWithSecurityContract__googStringSecurityPrivate_:"type_error:Const"},Kqm={},KsG={};
new uQ(KsG,"");var DD,K2,zX,juE,hdd,GGt,Pi,Fqe,Pee,Xkj,yC,ZrE,awE,lww,wkc,fwH,CeQ,xGH,ERE,fGq,mGw,vRl,$Gd,oRc,Dx;DD=function(S){return S?new Dx(_.ZD(S)):EbR||(EbR=new Dx)};
_.NF=function(S,p){return typeof p==="string"?S.getElementById(p):p};
K2=function(S,p){return(p||document).getElementsByTagName(String(S))};
_.reE=function(S){return juE("yt-formatted-string","paper-input-input",S)};
zX=function(S,p,U,Y){S=Y||S;return(p=p&&p!="*"?String(p).toUpperCase():"")||U?S.querySelectorAll(p+(U?"."+U:"")):S.getElementsByTagName("*")};
juE=function(S,p,U){var Y=document,L=S&&S!="*"?String(S).toUpperCase():"";return L||p?(U||Y).querySelector(L+(p?"."+p:"")):zX(Y,S,p,U)[0]||null};
hdd=function(S,p){_.h9.forEach(p,function(U,Y){Y=="style"?S.style.cssText=U:Y=="class"?S.className=U:Y=="for"?S.htmlFor=U:GGt.hasOwnProperty(Y)?S.setAttribute(GGt[Y],U):_.Lr(Y,"aria-")||_.Lr(Y,"data-")?S.setAttribute(Y,U):S[Y]=U})};
GGt={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"};_.kE=function(S){S=(S||window).document;S=S.compatMode=="CSS1Compat"?S.documentElement:S.body;return new _.OF(S.clientWidth,S.clientHeight)};
_.Rdj=function(S){var p=_.QC(S);S=S.defaultView;return new _.Xp(S.pageXOffset||p.scrollLeft,S.pageYOffset||p.scrollTop)};
_.QC=function(S){return S.scrollingElement?S.scrollingElement:_.pT||S.compatMode!="CSS1Compat"?S.body||S.documentElement:S.documentElement};
Pi=function(S){return S?S.defaultView:window};
_.n0=function(S,p,U){return Fqe(document,arguments)};
Fqe=function(S,p){var U=p[1],Y=Xkj(S,String(p[0]));U&&(typeof U==="string"?Y.className=U:Array.isArray(U)?Y.className=U.join(" "):hdd(Y,U));p.length>2&&Pee(S,Y,p,2);return Y};
Pee=function(S,p,U,Y){function L(W){W&&p.appendChild(typeof W==="string"?S.createTextNode(W):W)}
for(;Y<U.length;Y++){var I=U[Y];if(!_.Ae(I)||_.pc(I)&&I.nodeType>0)L(I);else{a:{if(I&&typeof I.length=="number"){if(_.pc(I)){var V=typeof I.item=="function"||typeof I.item=="string";break a}if(typeof I==="function"){V=typeof I.item=="function";break a}}V=!1}_.xs(V?_.qG(I):I,L)}}};
_.JY=function(S){return Xkj(document,S)};
Xkj=function(S,p){p=String(p);S.contentType==="application/xhtml+xml"&&(p=p.toLowerCase());return S.createElement(p)};
_.JH=function(){return document.createTextNode("\n")};
yC=function(S){if(S.nodeType!=1)return!1;switch(S.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};
ZrE=function(S,p){Pee(_.ZD(S),S,arguments,1)};
_.K0=function(S){for(var p;p=S.firstChild;)S.removeChild(p)};
_.b1=function(S,p){p.parentNode&&p.parentNode.insertBefore(S,p)};
_.jc=function(S,p){p.parentNode&&p.parentNode.insertBefore(S,p.nextSibling)};
_.yz=function(S){return S&&S.parentNode?S.parentNode.removeChild(S):null};
_.suP=function(S,p){var U=p.parentNode;U&&U.replaceChild(S,p)};
_.edE=function(S){var p,U=S.parentNode;if(U&&U.nodeType!=11)if(S.removeNode)S.removeNode(!1);else{for(;p=S.firstChild;)U.insertBefore(p,S);_.yz(S)}};
_.rX=function(S){return S.children!=void 0?S.children:Array.prototype.filter.call(S.childNodes,function(p){return p.nodeType==1})};
_.uEl=function(S){return S.nextElementSibling!==void 0?S.nextElementSibling:_.gRj(S.nextSibling,!0)};
_.gRj=function(S,p){for(;S&&S.nodeType!=1;)S=p?S.nextSibling:S.previousSibling;return S};
_.BA=function(S){return _.pc(S)&&S.nodeType==1};
_.C2=function(S,p){if(!S||!p)return!1;if(S.contains&&p.nodeType==1)return S==p||S.contains(p);if(typeof S.compareDocumentPosition!="undefined")return S==p||!!(S.compareDocumentPosition(p)&16);for(;p&&S!=p;)p=p.parentNode;return p==S};
awE=function(S,p){if(S==p)return 0;if(S.compareDocumentPosition)return S.compareDocumentPosition(p)&2?1:-1;if("sourceIndex"in S||S.parentNode&&"sourceIndex"in S.parentNode){var U=S.nodeType==1,Y=p.nodeType==1;if(U&&Y)return S.sourceIndex-p.sourceIndex;var L=S.parentNode,I=p.parentNode;return L==I?wkc(S,p):!U&&_.C2(L,p)?-1*lww(S,p):!Y&&_.C2(I,S)?lww(p,S):(U?S.sourceIndex:L.sourceIndex)-(Y?p.sourceIndex:I.sourceIndex)}Y=_.ZD(S);U=Y.createRange();U.selectNode(S);U.collapse(!0);S=Y.createRange();S.selectNode(p);
S.collapse(!0);return U.compareBoundaryPoints(_.UX.Range.START_TO_END,S)};
lww=function(S,p){var U=S.parentNode;if(U==p)return-1;for(;p.parentNode!=U;)p=p.parentNode;return wkc(p,S)};
wkc=function(S,p){for(;p=p.previousSibling;)if(p==S)return-1;return 1};
fwH=function(S){var p,U=arguments.length;if(!U)return null;if(U==1)return arguments[0];var Y=[],L=Infinity;for(p=0;p<U;p++){for(var I=[],V=arguments[p];V;)I.unshift(V),V=V.parentNode;Y.push(I);L=Math.min(L,I.length)}I=null;for(p=0;p<L;p++){V=Y[0][p];for(var W=1;W<U;W++)if(V!=Y[W][p])return I;I=V}return I};
_.ZD=function(S){return S.nodeType==9?S:S.ownerDocument||S.document};
CeQ=function(S){return S.contentDocument||S.contentWindow.document};
_.GX=function(S,p){if("textContent"in S)S.textContent=p;else if(S.nodeType==3)S.data=String(p);else if(S.firstChild&&S.firstChild.nodeType==3){for(;S.lastChild!=S.firstChild;)S.removeChild(S.lastChild);S.firstChild.data=String(p)}else _.K0(S),S.appendChild(_.ZD(S).createTextNode(String(p)))};
xGH={SCRIPT:1,STYLE:1,HEAD:1,IFRAME:1,OBJECT:1};ERE={IMG:" ",BR:"\n"};fGq=function(S){var p;S.tagName=="A"&&S.hasAttribute("href")||S.tagName=="INPUT"||S.tagName=="TEXTAREA"||S.tagName=="SELECT"||S.tagName=="BUTTON"?p=!S.disabled&&(!S.hasAttribute("tabindex")||mGw(S)):p=S.hasAttribute("tabindex")&&mGw(S);return p};
mGw=function(S){S=S.tabIndex;return typeof S==="number"&&S>=0&&S<32768};
vRl=function(S){var p=[];oRc(S,p,!0);S=p.join("");S=S.replace(/ \xAD /g," ").replace(/\xAD/g,"");S=S.replace(/\u200B/g,"");S=S.replace(/ +/g," ");S!=" "&&(S=S.replace(/^\s*/,""));return S};
$Gd=function(S){var p=[];oRc(S,p,!1);return p.join("")};
oRc=function(S,p,U){if(!(S.nodeName in xGH))if(S.nodeType==3)U?p.push(String(S.nodeValue).replace(/(\r\n|\r|\n)/g,"")):p.push(S.nodeValue);else if(S.nodeName in ERE)p.push(ERE[S.nodeName]);else for(S=S.firstChild;S;)oRc(S,p,U),S=S.nextSibling};
_.irQ=function(S,p,U){if(!p&&!U)return null;var Y=p?String(p).toUpperCase():null;return _.uI(S,function(L){return(!Y||L.nodeName==Y)&&(!U||typeof L.className==="string"&&_.ou(L.className.split(/\s+/),U))},!0)};
_.uI=function(S,p,U){S&&!U&&(S=S.parentNode);for(U=0;S;){if(p(S))return S;S=S.parentNode;U++}return null};
Dx=function(S){this.JSC$7335_document_=S||_.UX.document||document};
_.M=Dx.prototype;_.M.getElement=function(S){return _.NF(this.JSC$7335_document_,S)};
_.M.$=Dx.prototype.getElement;_.M.getElementsByTagName=function(S,p){return(p||this.JSC$7335_document_).getElementsByTagName(String(S))};
_.M.getElementsByTagNameAndClass=function(S,p,U){return zX(this.JSC$7335_document_,S,p,U)};
_.M.$$=Dx.prototype.getElementsByTagNameAndClass;_.M.setProperties=hdd;_.M.JSC$7337_createDom=function(S,p,U){return Fqe(this.JSC$7335_document_,arguments)};
_.M.createElement=function(S){return Xkj(this.JSC$7335_document_,S)};
_.M.createTextNode=function(S){return this.JSC$7335_document_.createTextNode(String(S))};
_.M.getWindow=function(){return this.JSC$7335_document_.defaultView};
var Hi=function(S){return _.Rdj(S.JSC$7335_document_)};
_.M=Dx.prototype;_.M.appendChild=function(S,p){S.appendChild(p)};
_.M.append=ZrE;_.M.canHaveChildren=yC;_.M.removeNode=_.yz;_.M.getChildren=_.rX;_.M.contains=_.C2;_.M=L_.prototype;_.M.getWidth=function(){return this.right-this.left};
_.M.getHeight=function(){return this.bottom-this.top};
_.M.clone=function(){return new L_(this.top,this.right,this.bottom,this.left)};
_.M.contains=function(S){return this&&S?S instanceof L_?S.left>=this.left&&S.right<=this.right&&S.top>=this.top&&S.bottom<=this.bottom:S.x>=this.left&&S.x<=this.right&&S.y>=this.top&&S.y<=this.bottom:!1};
_.M.expand=function(S,p,U,Y){_.pc(S)?(this.top-=S.top,this.right+=S.right,this.bottom+=S.bottom,this.left-=S.left):(this.top-=S,this.right+=Number(p),this.bottom+=Number(U),this.left-=Number(Y));return this};
_.M.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};
_.M.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};
_.M.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};
_.M.translate=function(S,p){S instanceof _.Xp?(this.left+=S.x,this.right+=S.x,this.top+=S.y,this.bottom+=S.y):(this.left+=S,this.right+=S,typeof p==="number"&&(this.top+=p,this.bottom+=p));return this};
_.M.scale=function(S,p){p=typeof p==="number"?p:S;this.left*=S;this.right*=S;this.top*=p;this.bottom*=p;return this};var hH=function(S,p,U,Y){this.left=S;this.top=p;this.width=U;this.height=Y};
_.M=hH.prototype;_.M.clone=function(){return new hH(this.left,this.top,this.width,this.height)};
_.M.boundingRect=function(S){var p=Math.max(this.left+this.width,S.left+S.width),U=Math.max(this.top+this.height,S.top+S.height);this.left=Math.min(this.left,S.left);this.top=Math.min(this.top,S.top);this.width=p-this.left;this.height=U-this.top};
_.M.contains=function(S){return S instanceof _.Xp?S.x>=this.left&&S.x<=this.left+this.width&&S.y>=this.top&&S.y<=this.top+this.height:this.left<=S.left&&this.left+this.width>=S.left+S.width&&this.top<=S.top&&this.top+this.height>=S.top+S.height};
_.M.distance=function(S){var p=S.x<this.left?this.left-S.x:Math.max(S.x-(this.left+this.width),0);S=S.y<this.top?this.top-S.y:Math.max(S.y-(this.top+this.height),0);return Math.sqrt(p*p+S*S)};
_.M.getSize=function(){return new _.OF(this.width,this.height)};
_.M.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};
_.M.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};
_.M.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};
_.M.translate=function(S,p){S instanceof _.Xp?(this.left+=S.x,this.top+=S.y):(this.left+=S,typeof p==="number"&&(this.top+=p));return this};
_.M.scale=function(S,p){p=typeof p==="number"?p:S;this.left*=S;this.width*=S;this.top*=p;this.height*=p;return this};var BNj,XX,kNw,FX,cej,twe,Sle,Z4e,pwP,Yll;_.R3=function(S,p,U){if(typeof p==="string")(p=_.NNl(S,p))&&(S.style[p]=U);else for(var Y in p){U=S;var L=p[Y],I=_.NNl(U,Y);I&&(U.style[I]=L)}};
BNj={};_.NNl=function(S,p){var U=BNj[p];if(!U){var Y=_.kn(p);U=Y;S.style[Y]===void 0&&(Y=(_.pT?"Webkit":_.SR?"Moz":null)+J_R(Y),S.style[Y]!==void 0&&(U=Y));BNj[p]=U}return U};
_.zh=function(S,p){var U=_.ZD(S);return U.defaultView&&U.defaultView.getComputedStyle&&(S=U.defaultView.getComputedStyle(S,null))?S[p]||S.getPropertyValue(p)||"":""};
_.f2=function(S,p){return _.zh(S,p)||(S.currentStyle?S.currentStyle[p]:null)||S.style&&S.style[p]};
_.qXE=function(S){return _.f2(S,"position")};
XX=function(S,p,U){if(p instanceof _.Xp){var Y=p.x;p=p.y}else Y=p,p=U;S.style.left=FX(Y,!1);S.style.top=FX(p,!1)};
kNw=function(S){try{return S.getBoundingClientRect()}catch(p){return{left:0,top:0,right:0,bottom:0}}};
_.eb=function(S){var p=_.ZD(S),U=new _.Xp(0,0);if(S==(p?_.ZD(p):document).documentElement)return U;S=kNw(S);p=Hi(DD(p));U.x=S.left+p.x;U.y=S.top+p.y;return U};
_.Aec=function(S,p,U){if(p instanceof _.OF)U=p.height,p=p.width;else if(U==void 0)throw Error("sa");S.style.width=FX(p,!0);S.style.height=FX(U,!0)};
FX=function(S,p){typeof S=="number"&&(S=(p?Math.round(S):S)+"px");return S};
cej=function(S){return twe(S)};
twe=function(S){var p=Sle;if(_.f2(S,"display")!="none")return p(S);var U=S.style,Y=U.display,L=U.visibility,I=U.position;U.visibility="hidden";U.position="absolute";U.display="inline";S=p(S);U.display=Y;U.position=I;U.visibility=L;return S};
Sle=function(S){var p=S.offsetWidth,U=S.offsetHeight,Y=_.pT&&!p&&!U;return(p===void 0||Y)&&S.getBoundingClientRect?(S=kNw(S),new _.OF(S.right-S.left,S.bottom-S.top)):new _.OF(p,U)};
Z4e=function(S){var p=_.eb(S);S=twe(S);return new hH(p.x,p.y,S.width,S.height)};
pwP=function(S,p){S=S.style;"opacity"in S?S.opacity=p:"MozOpacity"in S?S.MozOpacity=p:"filter"in S&&(S.filter=p===""?"":"alpha(opacity="+Number(p)*100+")")};
_.$Y=function(S,p){S.style.display=p?"":"none"};
_.Ute=function(S){return"rtl"==_.f2(S,"direction")};
Yll=function(S){var p=_.zh(S,"marginLeft"),U=_.zh(S,"marginRight"),Y=_.zh(S,"marginTop");S=_.zh(S,"marginBottom");return new L_(parseFloat(Y),parseFloat(U),parseFloat(S),parseFloat(p))};
_.LEm=function(S){var p=_.zh(S,"borderLeftWidth"),U=_.zh(S,"borderRightWidth"),Y=_.zh(S,"borderTopWidth");S=_.zh(S,"borderBottomWidth");return new L_(parseFloat(Y),parseFloat(U),parseFloat(S),parseFloat(p))};var PD=function(S){this.context=S};
PD.prototype.isSupported=function(S){return(S==null?0:S.attributionEnabled)||(S==null?void 0:S.beaconMethod)==="POST"||(S==null?0:S.customHeaders)||(S==null?0:S.customBody)||(S==null?0:S.keepAlive)?!1:!dX(this.context)};
PD.prototype.ping=function(){var S=this;return Do(_.jO.apply(0,arguments).map(function(p){try{var U=S.context.global,Y=!1;Y=Y===void 0?!1:Y;U.google_image_requests||(U.google_image_requests=[]);var L=Jed("IMG",U.document);Y&&(L.attributionSrc="");L.src=p;U.google_image_requests.push(L);return!0}catch(I){return!1}}).every(function(p){return p}))};
PD.prototype.pingWithHeadersAndBody=function(S,p,U){this.ping.apply(this,_.jo(_.jO.apply(3,arguments)))};var MQl=function(S){this.context=S};
MQl.prototype.isSupported=function(S){return Idm&&!dX(this.context)&&vqr(this.context)!==void 0&&!(S==null?0:S.attributionEnabled)&&(S==null?void 0:S.beaconMethod)!=="POST"&&!(S==null?0:S.customHeaders)&&!(S==null?0:S.customBody)};
MQl.prototype.makeBeacon=function(S,p){if(!this.isSupported(p))throw new YZ;return new Zx(this.context,S)};
var Idm=!1,Zx=function(S,p){this.context=S;this.JSC$7356_urlWithoutToken=p;S=vqr(this.context);if(S===void 0)throw Error();this.wrappedBeacon=new S(dtd(this),{})},dtd=function(S){S=S.JSC$7356_urlWithoutToken;
return(S.slice(-1)[0]==="&"?S:S+"&")+"pbapi=1"};
Zx.prototype.deactivate=function(){this.wrappedBeacon.deactivate()};
Zx.prototype.sendNow=function(){this.wrappedBeacon.sendNow()};
Zx.prototype.setHeader=function(){};
_.$u.Object.defineProperties(Zx.prototype,{url:{configurable:!0,enumerable:!0,get:function(){return this.JSC$7356_urlWithoutToken},
set:function(S){this.JSC$7356_urlWithoutToken=S;this.wrappedBeacon.setURL(dtd(this))}},
method:{configurable:!0,enumerable:!0,get:function(){return"GET"},
set:function(S){if(S!=="GET")throw new YZ;}},
isPending:{configurable:!0,enumerable:!0,get:function(){return this.wrappedBeacon.pending}}});var VQw=function(S){this.context=S};
VQw.prototype.isSupported=function(S){if((S==null?0:S.attributionEnabled)||(S==null?void 0:S.beaconMethod)==="GET"||(S==null?0:S.customHeaders)||(S==null?0:S.customBody)||(S==null?0:S.keepAlive))return!1;var p;return!dX(this.context)&&((p=this.context.global.navigator)==null?void 0:p.sendBeacon)!==void 0};
VQw.prototype.ping=function(){var S=this;return Do(_.jO.apply(0,arguments).map(function(p){var U;return(U=S.context.global.navigator)==null?void 0:U.sendBeacon(p)}).every(function(p){return p}))};
VQw.prototype.pingWithHeadersAndBody=function(S,p,U){this.ping.apply(this,_.jo(_.jO.apply(3,arguments)))};var TN=function(S){this.value=S},vi=function(S,p){return Do(S.value).pipe(dO(p))},qa=new TN(!1),b2e=new TN(!0);var wO=function(S){this.value=S;this.releasedSubject=new Ma};
wO.prototype.release=function(){this.releasedSubject.next();this.releasedSubject.complete();this.value=void 0};
_.$u.Object.defineProperties(wO.prototype,{ref:{configurable:!0,enumerable:!0,get:function(){return this.value}},
JSC$7369_released:{configurable:!0,enumerable:!0,get:function(){return this.releasedSubject}}});var LPk=["FRAME","IMG","IFRAME"],tOk=/^[01](px)?$/,YVq=function(){this.pendingImagesBlockLoad=this.crossDomainLoadedDefault=!1},U2G=function(){var S=new YVq;
S.crossDomainLoadedDefault=!0;S.pendingImagesBlockLoad=!0;return S};var Tmm=function(S,p){var U=OuN(S);if(U)if(U.onCreativeLoad)U.onCreativeLoad(p);else{var Y=p?[p]:[],L=function(I){for(var V=0;V<Y.length;++V)try{Y[V](1,I)}catch(W){}Y={push:function(W){W(1,I)}}};
U.onCreativeLoad=function(I){Y.push(I)};
U.setAttribute("data-creative-load-listener","");U.addEventListener("creativeLoad",function(I){L(I.detail)});
_.UX.addEventListener("message",function(I){WPu(U,L,I)})}};var sC=function(S,p){var U=this;this.global=S;this.parentContext=p;this.JSC$7380_onVisibilityChange=this.document?sV(Do(!0),P4(this.document,"visibilitychange")).pipe(w3(this.parentContext.performanceMonitor,748),y9(function(){return U.getVisibilityState()}),EV()):Do("visible");
this.document?P4(this.document,"DOMContentLoaded").pipe(w3(this.parentContext.performanceMonitor,739),xa(1)):Do(q3k("DOMContentLoaded"))},Kzu=function(S){return S.document!==null&&S.document.visibilityState!==void 0};
sC.prototype.getVisibilityState=function(){return this.document?this.document.visibilityState:"visible"};
sC.prototype.querySelector=function(S){return this.document?this.document.querySelector(S):null};
sC.prototype.querySelectorAll=function(S){return this.document?_.qG(this.document.querySelectorAll(S)):[]};
sC.prototype.elementFromPoint=function(S,p){if(!this.document||this.document===null||typeof this.document.elementFromPoint!=="function")return null;S=this.document.elementFromPoint(S,p);return S===null?null:new wO(S)};
var T5w=function(S,p,U){U=U===void 0?!1:U;if(p.ref===void 0||!S.document)return Do(p).pipe(w3(S.parentContext.performanceMonitor,749));var Y=new iV(1),L=function(){Y.next(p)};
U||Tmm(p.ref,L);Mod(p.ref,L);return Y.pipe(w3(S.parentContext.performanceMonitor,749),xa(1))};
_.$u.Object.defineProperties(sC.prototype,{document:{configurable:!0,enumerable:!0,get:function(){return sF(this.global,"document")?this.global.document||null:null}}});var k7N=_.x1(["https://www.googleadservices.com/pagead/managed/js/activeview/","/reach_worklet.html"]),HuG=_.x1(["./reach_worklet.js"]),D2k=_.x1(["./reach_worklet.js"]),WEt=_.x1(["./reach_worklet.html"]),Ocj=_.x1(["./reach_worklet.js"]),kje=_.x1(["./reach_worklet.js"]);_.UF(WEt);_.UF(Ocj);_.UF(kje);var C_={left:0,top:0,width:0,height:0};var Hcc,DtP,zet,QPE,NZ,Jqw,yqd,KEI,tUE,cDX,rqw,Gjd;Hcc=function(S,p,U,Y,L,I,V){var W="";S&&(W+=S+":");U&&(W+="//",p&&(W+=p+"@"),W+=U,Y&&(W+=":"+Y));L&&(W+=L);I&&(W+="?"+I);V&&(W+="#"+V);return W};
DtP=RegExp("^(?:([^:/?#.]+):)?(?://(?:([^\\\\/?#]*)@)?([^\\\\/?#]*?)(?::([0-9]+))?(?=[\\\\/?#]|$))?([^?#]+)?(?:\\?([^#]*))?(?:#([\\s\\S]*))?$");_.$s=function(S){return S.match(DtP)};
_.bG=function(S,p){return S?p?decodeURI(S):decodeURIComponent(S):S};
zet=function(S){S=_.$s(S)[1]||null;!S&&_.UX.self&&_.UX.self.location&&(S=_.UX.self.location.protocol.slice(0,-1));return S?S.toLowerCase():""};
_.ib=function(S){return _.bG(_.$s(S)[3]||null,!0)};
_.Tp=function(S){return _.bG(_.$s(S)[5]||null,!0)};
_.WId=function(S){var p=S.indexOf("#");return p<0?null:S.slice(p+1)};
QPE=function(S){S=_.$s(S);return Hcc(S[1],S[2],S[3],S[4])};
_.nmI=function(S){S=_.$s(S);return Hcc(S[1],null,S[3],S[4])};
_.lL=function(S){S=_.$s(S);return Hcc(null,null,null,null,S[5],S[6],S[7])};
_.vv=function(S){var p=S.indexOf("#");return p<0?S:S.slice(0,p)};
NZ=function(S,p){S=_.$s(S);p=_.$s(p);return S[3]==p[3]&&S[1]==p[1]&&S[4]==p[4]};
Jqw=function(S,p){if(S){S=S.split("&");for(var U=0;U<S.length;U++){var Y=S[U].indexOf("="),L=null;if(Y>=0){var I=S[U].substring(0,Y);L=S[U].substring(Y+1)}else I=S[U];p(I,L?qZ(L):"")}}};
yqd=function(S){var p=S.indexOf("#");p<0&&(p=S.length);var U=S.indexOf("?");if(U<0||U>p){U=p;var Y=""}else Y=S.substring(U+1,p);return[S.slice(0,U),Y,S.slice(p)]};
KEI=function(S,p){return p?S?S+"&"+p:p:S};
_.bcE=function(S,p){if(!p)return S;S=yqd(S);S[1]=KEI(S[1],p);return S[0]+(S[1]?"?"+S[1]:"")+S[2]};
_.jPP=function(S,p,U){if(Array.isArray(p))for(var Y=0;Y<p.length;Y++)_.jPP(S,String(p[Y]),U);else p!=null&&U.push(S+(p===""?"":"="+_.CU(p)))};
_.Og=function(S){var p=[],U;for(U in S)_.jPP(U,S[U],p);return p.join("&")};
_.vQ=function(S,p){p=_.Og(p);return _.bcE(S,p)};
_.ec=function(S,p,U){U=U!=null?"="+_.CU(U):"";return _.bcE(S,p+U)};
tUE=function(S,p,U,Y){for(var L=U.length;(p=S.indexOf(U,p))>=0&&p<Y;){var I=S.charCodeAt(p-1);if(I==38||I==63)if(I=S.charCodeAt(p+L),!I||I==61||I==38||I==35)return p;p+=L+1}return-1};
cDX=/#|$/;_.xY=function(S,p){var U=S.search(cDX),Y=tUE(S,0,p,U);if(Y<0)return null;var L=S.indexOf("&",Y);if(L<0||L>U)L=U;Y+=p.length+1;return qZ(S.slice(Y,L!==-1?L:0))};
rqw=/[?&]($|#)/;_.iL=function(S,p){for(var U=S.search(cDX),Y=0,L,I=[];(L=tUE(S,Y,p,U))>=0;)I.push(S.substring(Y,L)),Y=Math.min(S.indexOf("&",L)+1||U,U);I.push(S.slice(Y));return I.join("").replace(rqw,"$1")};
_.wK=function(S,p,U){return _.ec(_.iL(S,p),p,U)};
Gjd=function(S){var p=yqd(window.location.href),U=p[1],Y=[];U&&U.split("&").forEach(function(L){var I=L.indexOf("=");I=I>=0?L.slice(0,I):L;S.hasOwnProperty(I)||Y.push(L)});
p[1]=KEI(Y.join("&"),_.Og(S));return p[0]+(p[1]?"?"+p[1]:"")+p[2]};var u5r=function(S){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.UH(S)};
_.r(u5r,_.a5);u5r.prototype.getVersion=function(){return _.jR(this,2)};var gaR=function(S){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.UH(S)};
_.r(gaR,_.a5);var FPk=function(S,p){return _.zN(S,2,p)},ezX=function(S,p){return _.zN(S,3,p)};
gaR.prototype.getModel=function(){return _.jR(this,4)};
var PVX=function(S,p){return _.zN(S,4,p)},RzX=function(S,p){return _.zN(S,5,p)},sOd=function(S,p){return _.zN(S,9,p)},hzw=function(S,p){return DN(S,10,p)},G7w=function(S,p){return _.d5(S,11,p)},X4k=function(S,p){return _.zN(S,1,p)},Zur=function(S,p){return _.d5(S,7,p)};var jOe="platform platformVersion architecture model uaFullVersion bitness fullVersionList wow64".split(" ");var Bi=function(S,p,U,Y){S=S===void 0?window:S;p=p===void 0?null:p;U=U===void 0?new vGw:U;Y=Y===void 0?zze():Y;gNN.call(this);var L=this;this.global=S;this.debugChannel=p;this.performanceMonitor=U;this.onPageHide=RO(function(){return P4(L.global,"pagehide")}).pipe(w3(this.performanceMonitor,941));
this.onLoad=RO(function(){return P4(L.global,"load")}).pipe(w3(this.performanceMonitor,738),xa(1));
this.onResize=RO(function(){return P4(L.global,"resize")}).pipe(w3(this.performanceMonitor,741));
this.onMessage=RO(function(){return P4(L.global,"message")}).pipe(w3(this.performanceMonitor,740));
this.document=new sC(this.global,this);this.timeProvider=new Cke(new ENe(this.intrinsicFunctionNamespace,this.performanceMonitor),new x8w(this.intrinsicFunctionNamespace,this.performanceMonitor));this.beaconFactory=new lnr(new oNG(this),new MQl(this),new L0(this,new iyG(this)),new L0(this,new VQw(this)),new L0(this,new PD(this)))};
_.r(Bi,gNN);var dX=function(S){var p=S.global;return!!S.global.HTMLFencedFrameElement&&!!p.fence&&typeof p.fence.reportEvent==="function"};
_.M=Bi.prototype;_.M.reportFencedFrameEvent=function(S){dX(this)&&this.global.fence.reportEvent(S)};
_.M.getOnBackgrounded=function(){return this.onPageHide.pipe(w3(this.performanceMonitor,942),dO(this.queue),y9(function(){}))};
_.M.postMessage=function(S,p,U){U=U===void 0?[]:U;this.global.postMessage(S,p,U)};
_.M.getWidth=function(){return Na(this.global)?this.global.width:0};
_.M.getHeight=function(){return Na(this.global)?this.global.height:0};
_.M.isMobile=function(){return Buw()||qeG()};
var lI=function(S,p){try{var U=y3N(p,S.global,S.isMobile());return{left:U.left,top:U.top,width:U.getWidth(),height:U.getHeight()}}catch(Y){return C_}};
Bi.prototype.validate=function(){var S=this.beaconFactory.isSupported()||dX(this);return this.global&&this.timeProvider.available()&&S};
var ihu=function(S){return(S=low(S.global))?Lu(S):null};
_.$u.Object.defineProperties(Bi.prototype,{sharedStorage:{configurable:!0,enumerable:!0,get:function(){try{return this.global.sharedStorage}catch(S){}}},
intrinsicFunctionNamespace:{configurable:!0,enumerable:!0,get:function(){return window}},
inCrossDomainIframe:{configurable:!0,enumerable:!0,get:function(){return!Na(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}}});_.heP=!_.cO&&!_.ew();var jWq=function(S){return S};var Grw=function(S){return S.pipe(eo(function(p){var U=p.endOfSessionReason;var Y;return((Y=p.viewable)==null?void 0:Y.extrapolateToNow().value)||U!=void 0}),xa(1),aO())};var m2G=function(){this.startTime=Math.floor(Date.now()/1E3-1704067200);this.sequenceNumber=0},oar=function(S){var p=S.sequenceNumber.toString(10).padStart(2,"0");
p=""+S.startTime+p;S.sequenceNumber<99&&S.sequenceNumber++;return p};var yYw=tA(t3(function(S){return S.endOfSessionReason===void 0}),y9(function(S){return Object.assign({},S,{timestamps:J9(S)})}),eo(function(S){var p=S.viewable;
S=S.timestamps;var U;return(U=p==null?void 0:p.extrapolateUsingTimestampMap(S).value)!=null?U:!1}),y9(function(S){var p=S.beaconFactory;
var U=S.timestampedExposureHistory;var Y=S.timeOnScreen;var L=S.binaryContext;S=S.timestamps;if(p===void 0||U===void 0||Y===void 0||L===void 0)return!1;if(Y.extrapolateUsingTimestampMap(S).value.every(function(I){return I>=0}))return!0;
U=U.map(function(I){return I.timestamp+":"+I.value}).join(",");
Y=bI({bin:L,tos:Y},S);p.makeBeacon("https://pagead2.googlesyndication.com/pagead/gen_204?id=av-js&type=dv&"+Y+("&eh="+U)).sendNow();return!0}),t3(function(S){return!S}),aO());var $2e=function(S){return{id:S.pingId,mcvt:S.maxConsecutiveViewTime,p:S.creativePosition,asp:S.adSpeedPosition,tm:S.totalMeasurementTime,tu:S.totalUnviewedTime,mtos:S.maxTimeOnScreen,tos:S.timeOnScreen,v:S.binaryVersion,bin:S.binaryContext,avms:S.measurementStrategy,bs:S.browserSize,mc:S.maximumExposure,"if":S.crossDomainIframeState,vu:S.delayedImpressionJsState,app:S.inApp,mse:S.mraidError,mtop:S.mraidSituation,itpl:S.injectedTemplateId,adk:S.adKey,exk:S.awbidKey,rs:S.requestSource,la:S.isLargeAd,
cr:S.isContentRecommendationAd,uach:S.userAgentClientHints,vs:S.viewState,r:S.reasonCode,pay:S.hasCpmavUrl,co:S.clientPingOrderCounter,rst:S.adRenderStartTime,rpt:S.adRenderPeriodTime,isd:S.initialScrollDepth,lsd:S.loadedScrollDepth,context:S.errorContext,msg:S.errorMessage,stack:S.errorStack,name:S.errorName,ec:S.hasElementChanged,sfr:S.strategyFailureReasons,met:S.creativeSearchResult,wmsd:S.webMeasurementStartDiagnostic,pv:S.pageVisible,epv:S.eosPageVisible,pbe:S.inStatefulBeaconExperiment,fle:S.inFetchLaterBeaconExperiment,
vae:S.inViewableAttributionExperiment,spb:S.supportsPendingBeacon,sfl:S.supportsFetchLater,ffslot:S.isFencedFrameSlotTurtlex,reach:S.sharedStorageReachMode,io2:S.v2VisibilityBitVector,rxdbg:S.rxDebugger,omida:S.omidAppId,omidp:S.omidPartner,omidpv:S.omidPartnerVersion,omidor:S.omidOcclusionReasons,omidv:S.omidVersion,omids:S.omidSessionType,omidam:S.omidAccessMode,omidct:S.omidCreativeType,omidia:S.omidInApp,omiddc:S.omidDeviceCategory,omidlat:S.omidLastActivity,omiddit:S.omidDeviceIdleTime,qid:S.errorEscapedQueryId}};var rYN=function(S){var p=[];return S.pipe(y9(function(U){var Y=U.beaconFactory,L=U.fetchBeaconFactory,I=U.timeOnScreen,V=U.timeOnScreenUrlPrefixes,W=U.payloadMapper,O=U.timeOnScreenPingId,D=U.timeOnScreenReason,z=U.urlSerializer,Q=U.viewable,J=U.hasImpressionFired,K=U.inStatefulBeaconExperiment,G=U.supportsPendingBeacon,X=U.supportsFetchLater,Z=U.turtlexReportEventData;if(!U.geometryMeasurable||!J||U.maxTimeOnScreen===void 0||I===void 0||V===void 0||W===void 0||O===void 0||z===void 0||Y===void 0)return!1;
if(U.isTurtlex){if(D===void 0)return!1;V=U.reportFencedFrameEvent;if(!V)return!1;V({eventType:"active-view-time-on-screen",eventData:Z!=null?Z:"",destination:["buyer"]});return!0}if(!(K||X||D))return!1;Z=J9(U);var l;Q=(l=Q==null?void 0:Q.extrapolateUsingTimestampMap(Z).value)!=null?l:!1;l=z(Object.assign({},U,{pingId:O,viewState:Q?4:3,reasonCode:D!=null?D:"u",payloadMapper:W,urlPrefixes:V}),Z);if(K){for(;p.length>V.length;)U=void 0,(U=p.shift())==null||U.deactivate();l.forEach(function(N,m){m>=p.length?
p.push(Y.makeBeacon(N)):p[m].url=N});
return G&&L&&D!==void 0?(l.forEach(function(N){L.makeBeacon(N).sendNow()}),!0):D!==void 0}if(G&&L&&D!==void 0)return l.forEach(function(N){L.makeBeacon(N).sendNow()}),!0;
if(X&&L){for(;p.length>V.length;)G=void 0,(G=p.shift())==null||G.deactivate();var a=z(Object.assign({},U,{pingId:O,viewState:Q?4:3,reasonCode:D!=null?D:"u",payloadMapper:W,urlPrefixes:["https://pagead2.googlesyndication.com/pagead/gen_204?id=av-js&type=fetch&later&lidartos"]}),Z)[0];l.forEach(function(N,m){m>=p.length?p.push(Y.makeBeacon(a,{endOfSession:!0})):p[m].url=a});
return D!==void 0?(l.forEach(function(N){L.makeBeacon(N).sendNow()}),!0):D!==void 0}return D!==void 0?(l.forEach(function(N){Y.makeBeacon(N).sendNow()}),!0):!1}),t3(function(U){return!U}),aO())};var hRw=tA(eo(function(S){return S.immediateUrlPrefixes!==void 0&&S.payloadMapper!==void 0&&S.urlSerializer!==void 0&&S.inferredPingId!==void 0&&S.beaconFactory!==void 0}),eo(function(S){return SFw(S)!==null}),tok(function(S){return S.activeViewUnmeasurableEvent},function(S){return S.emit}),y9(function(S){if(S.isTurtlex){var p=S.reportFencedFrameEvent;
if(p){var U;p({eventType:"active-view-unmeasurable",eventData:(U=S.turtlexReportEventData)!=null?U:"",destination:["buyer"]})}}else{U=void 0;var Y=SFw(S);if(Y==="x"){var L,I=(L=S.geometricMeasurementErrors)!=null?L:S.contextValidationErrors;I&&(p=I.stack,U=I.message)}S.urlSerializer(Object.assign({},S,{urlPrefixes:S.immediateUrlPrefixes,payloadMapper:S.payloadMapper,pingId:S.inferredPingId,viewState:2,reasonCode:Y,errorMessage:U,errorStack:p}),J9(S)).forEach(function(V){S.beaconFactory.makeBeacon(V).sendNow()})}}),
xa(1),aO());var pik=/(?:\[|%5B)([a-zA-Z0-9_]+)(?:\]|%5D)/g;var JYG=tA(eo(function(S){return S.payloadMapper!==void 0&&S.immediateUrlPrefixes!==void 0&&S.urlSerializer!==void 0&&S.inferredPingId!==void 0&&S.beaconFactory!==void 0}),y9(function(S){return Object.assign({},S,{timestamps:J9(S)})}),eo(function(S){var p=S.viewable;
var U=S.hasImpressionFired;S=S.timestamps;var Y;return!!U&&((Y=p==null?void 0:p.extrapolateUsingTimestampMap(S).value)!=null?Y:!1)}),tok(function(S){return S.activeViewViewableEvent},function(S){return S.emit}),y9(function(S){var p=S.beaconFactory,U=S.turtlexReportEventData;
if(S.isTurtlex){var Y=S.reportFencedFrameEvent;if(!Y)return!1;Y({eventType:"active-view-viewable",eventData:U!=null?U:"",destination:["buyer"]});return!0}U=S.urlSerializer(Object.assign({},S,{urlPrefixes:S.immediateUrlPrefixes,payloadMapper:S.payloadMapper,pingId:S.inferredPingId,viewState:4,reasonCode:"v"}),S.timestamps);(Y=S.cpmavUrls)&&Y.length>0&&S.viewUrlSerializer&&S.viewUrlSerializer(Y,S).forEach(function(L){p.makeBeacon(L).sendNow()});
(Y=S.viewableRelayUrls)&&Y.length>0&&S.viewUrlSerializer&&S.viewUrlSerializer(Y,S).forEach(function(L){p.makeBeacon(L).sendNow()});
U.forEach(function(L){p.makeBeacon(L,{attributionEnabled:S.isViewableAttributionEnabled}).sendNow()});
return!0}),t3(function(S){return!S}),aO());var oEe=y9(function(S){return[S.value.topWindowViewportExternalGeometry.width,S.value.topWindowViewportExternalGeometry.height]});var aY=function(S,p){this.callback=S;this.options=p;this.intersectionObserverV2=this.intersectionObserverV1=null},hHq=function(S,p){p?S.intersectionObserverV2||(p=Object.assign({},S.options,{delay:100,
trackVisibility:!0}),S.intersectionObserverV2=new IntersectionObserver(S.callback,p)):S.intersectionObserverV1||(S.intersectionObserverV1=new IntersectionObserver(S.callback,S.options))},ReI=function(S,p){S=p?S.intersectionObserverV2:S.intersectionObserverV1;
if(!S)throw new uVN;return S};
aY.prototype.observe=function(S,p){ReI(this,S).observe(p)};
aY.prototype.unobserve=function(S,p){ReI(this,S).unobserve(p)};
aY.prototype.disconnect=function(S){ReI(this,S).disconnect()};
aY.prototype.takeRecords=function(S){return ReI(this,S).takeRecords()};var gO={viewportGeometrySourceName:"ns",exposedViewportLocalGeometry:C_,topWindowViewportExternalGeometry:C_,measurementRequests:new Ma,elementGeometrySourceName:"ns",elementGeometry:C_,intersectionGeometry:C_,viewportLocalAppOffset:{x:0,y:0}};var eHE=xE(tA(y9(function(S){var p;return(p=S.exposureOverride)!=null?p:FJX(S)}),y9(function(S){return isFinite(S)?S:0}))),CIk=xE(tA(y9(function(S){var p;
return(p=S.exposureOverride)!=null?p:FJX(S)}),y9(function(S){return isFinite(S)?S:-1})));var gX=function(S,p){this.a=S;this.b=p;if(S.clock.timeline!==p.clock.timeline)throw Error();};
gX.prototype.equivalentTo=function(S){return S instanceof gX?this.a.equivalentTo(S.a)&&this.b.equivalentTo(S.b):!1};
gX.prototype.extrapolateToTime=function(S){var p=this.a.extrapolateToTime(S).value,U=this.b.extrapolateToTime(S).value;return{timestamp:S,value:[p,U]}};
_.$u.Object.defineProperties(gX.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 S=this.a.lastMeasurement.timestamp.maximum(this.b.lastMeasurement.timestamp),p=this.a.lastMeasurement.timestamp.equals(S)?this.a.lastMeasurement.value:this.a.extrapolateToTime(S).value,U=this.b.lastMeasurement.timestamp.equals(S)?this.b.lastMeasurement.value:this.b.extrapolateToTime(S).value;return{timestamp:S,value:[p,U]}}}});var u1=function(S,p){this.input=S;this.mapFunction=p;this.lastMeasurement={timestamp:this.input.lastMeasurement.timestamp,value:this.mapFunction(this.input.lastMeasurement.value)}};
u1.prototype.equivalentTo=function(S){return S instanceof u1?this.input.equivalentTo(S.input)&&this.mapFunction===S.mapFunction:!1};
u1.prototype.extrapolateToTime=function(S){S=this.input.extrapolateToTime(S);return{timestamp:S.timestamp,value:this.mapFunction(S.value)}};
_.$u.Object.defineProperties(u1.prototype,{active:{configurable:!0,enumerable:!0,get:function(){return this.input.active}},
clock:{configurable:!0,enumerable:!0,get:function(){return this.input.clock}}});var wX=function(){};
wX.prototype.extrapolateToNow=function(){return this.extrapolateToTime(this.clock.now())};
wX.prototype.extrapolateUsingTimestampMap=function(S){var p=this.clock.timeline,U,Y=(U=S.get(p))!=null?U:this.clock.now();S.set(p,Y);return this.extrapolateToTime(Y)};
wX.prototype.map=function(S){return new FEw(this,S)};
wX.prototype.joinWith=function(S){return new XwQ(this,S)};
var XwQ=function(){gX.apply(this,arguments);this.map=wX.prototype.map;this.joinWith=wX.prototype.joinWith;this.extrapolateToNow=wX.prototype.extrapolateToNow;this.extrapolateUsingTimestampMap=wX.prototype.extrapolateUsingTimestampMap};
_.r(XwQ,gX);var FEw=function(){u1.apply(this,arguments);this.map=wX.prototype.map;this.joinWith=wX.prototype.joinWith;this.extrapolateToNow=wX.prototype.extrapolateToNow;this.extrapolateUsingTimestampMap=wX.prototype.extrapolateUsingTimestampMap};
_.r(FEw,u1);var mJ=function(S,p){this.lastMeasurement=p;this.extrapolateToNow=wX.prototype.extrapolateToNow;this.extrapolateUsingTimestampMap=wX.prototype.extrapolateUsingTimestampMap;this.map=wX.prototype.map;this.joinWith=wX.prototype.joinWith;this.clock=S};
mJ.prototype.equivalentTo=function(S){return S.active};
mJ.prototype.extrapolateToTime=function(){return this.lastMeasurement};
_.$u.Object.defineProperties(mJ.prototype,{active:{configurable:!0,enumerable:!0,get:function(){return!1}}});var maw=y9(function(S){if(S.value.viewportGeometrySourceName==="omid"){if(S.value.elementGeometrySourceName==="nio")return"omio";if(S.value.elementGeometrySourceName==="geo")return"omgeo"}return S.value.elementGeometrySourceName==="geo"||S.value.elementGeometrySourceName==="nio"?S.value.viewportGeometrySourceName:S.value.elementGeometrySourceName});var PIu=tA(eo(function(S){return!isNaN(S)}),B4(function(S,p){return isNaN(S)?p:Math.min(S,p)},NaN),EV());var gEX=xE(tA(y9(function(S){return S.intersectionGeometry.width*S.intersectionGeometry.height/(S.exposedViewportLocalGeometry.width*S.exposedViewportLocalGeometry.height)}),y9(function(S){return isFinite(S)?Math.min(1,S):0})));var EEk=tA(xE(y9(function(S){S=S.exposureOverride?S.elementGeometry.width*S.elementGeometry.height*S.exposureOverride/(S.topWindowViewportExternalGeometry.width*S.topWindowViewportExternalGeometry.height):S.intersectionGeometry.width*S.intersectionGeometry.height/(S.topWindowViewportExternalGeometry.width*S.topWindowViewportExternalGeometry.height);return isFinite(S)?S:0})));var $aN=function(S,p){var U=this;this.timeProvider=S;this.measurementRequestObserver=this.lastMeasurementRequest=null;this.requestSubscription=p.pipe(EV()).subscribe(function(Y){iI(U);U.measurementRequestObserver=Y})},NOR=function(S,p){iI(S);
S.lastMeasurementRequest=S.timeProvider.setTimeout(function(){var U;return void((U=S.measurementRequestObserver)==null?void 0:U.next())},p)},iI=function(S){S.lastMeasurementRequest!==null&&S.timeProvider.clearTimeout(S.lastMeasurementRequest);
S.lastMeasurementRequest=null};
$aN.prototype.dispose=function(){iI(this);this.requestSubscription.unsubscribe();this.measurementRequestObserver=null};var PtE=function(){};var zRR=function(S,p){this.context=S;this.strategies=p};
_.r(zRR,PtE);zRR.prototype.buildGeometrySource=function(S,p){var U=this.strategies.map(function(I){return I.buildGeometrySource(S,p)}),Y=c9d(U.map(function(I){return I.geometrySource})),L=Y.capturedErrors.pipe(Zcm());
return{geometrySource:Y.chain.pipe(dO(this.context.queue)),additionalOutputs:Object.assign.apply(Object,[{strategyFailureReasons:L,strategyErrors:Y.capturedErrors}].concat(_.jo(U.map(function(I){return I.additionalOutputs}))))}};
var Zcm=function(){return B4(function(S,p){p instanceof rO?S.push(p.measurementStrategyFailureReason):S.push(-1);return S},[])};var nYu=function(S,p){this.context=S;this.poller=p};
_.r(nYu,PtE);nYu.prototype.buildGeometrySource=function(S,p){var U=Srq(Udu(this.context,this.poller),DaN(this.context,p.requestSource));return{geometrySource:tbk(S.measurableCreative.pipe(U),p.inApp),additionalOutputs:{}}};var QWd=function(S,p,U){U=U===void 0?KJe(S,p):U;this.context=S;this.intersectionObserverStrategy=U};
_.r(QWd,PtE);QWd.prototype.buildGeometrySource=function(S,p){var U=this.intersectionObserverStrategy(p.useV2);return{geometrySource:tbk(S.measurableCreative.pipe(U,b_u(this.context)),p.inApp),additionalOutputs:{}}};var sPm=function(S,p,U){var Y=Y===void 0?Symbol():Y;this.element=S;this.immediateUrls=p;this.timeOnScreenUrls=U;this.symbol=Y};var $E=Object.freeze({timeThresholdMs:1E3,exposureThreshold:.5,largeAdExposureThreshold:.3}),ddq=Object.freeze([1,.75,$E.exposureThreshold,$E.largeAdExposureThreshold,0]);var GZe=function(S,p){p=p===void 0?36E5:p;var U=U===void 0?!0:U;this.creatives=new Ma;this.elementsToUnregister=new Ma;this.elementMap=new Map;var Y=new Bi(window,null);Y.beaconFactory=new L0(Y,new PD(Y));Ddq(Y,this.creatives,this.elementsToUnregister,S,p,U).subscribe()},FyE=function(S,p,U,Y){if(!S.elementMap.has(p)){var L=new wO(p);
S.elementMap.set(p,L);S.creatives.next(new sPm(L,U,Y))}},RQw=function(S,p){S.elementsToUnregister.next(p);
var U=S.elementMap.get(p);U!==void 0&&(U.release(),S.elementMap.delete(p))};var DIw=function(S){var p=S.url;S=S.uaDataValues;this.JSC$7485_url_=p;this.uaDataValues_=S;this.suid_=(new Date).getTime()-17040672E5;this.urlParamValues_={};for(var U=/[?&]([^&=]+)=([^&]*)/g;S=U.exec(p);)this.urlParamValues_[S[1]]=S[2]},zFe=function(S){S=S.uaDataValues_;
if(!S)return"";var p=A9("uap",S.platform)+A9("uapv",S.platformVersion)+A9("uafv",S.uaFullVersion)+A9("uaa",S.architecture)+A9("uam",S.model)+A9("uab",S.bitness);S.fullVersionList&&(p+="&uafvl="+encodeURIComponent(S.fullVersionList.map(function(U){return encodeURIComponent(U.brand)+";"+encodeURIComponent(U.version)}).join("|")));
S.wow64!=null&&(p+="&uaw="+Number(S.wow64));return p.slice(1)};var l1=function(S){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.UH(S)};
_.r(l1,_.a5);l1.prototype.getId=function(){return _.jR(this,1)};
l1.prototype.setId=function(S){return _.$9(this,1,S)};var a3=function(S){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.UH(S)};
_.r(a3,_.a5);a3.prototype.getSeconds=function(){return KT(this,1)};
a3.prototype.setSeconds=function(S){return _.GD(this,1,st(S),"0")};_.eJ=function(S){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.UH(S)};
_.r(_.eJ,_.a5);_.eJ.prototype.getSeconds=function(){return KT(this,1)};
_.eJ.prototype.setSeconds=function(S){return _.GD(this,1,st(S),"0")};
_.eeP=function(S){var p=Number(GR(S,1));S=_.YY(S,2);return new Date(p*1E3+S/1E6)};var f0=function(S){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.UH(S)};
_.r(f0,_.a5);f0.prototype.getUrl=function(){return _.jR(this,1)};
f0.prototype.setUrl=function(S){return _.$9(this,1,S)};
f0.prototype.getHeight=function(){return _.YY(this,2)};
f0.prototype.getWidth=function(){return _.YY(this,3)};var C0=function(S){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.UH(S)};
_.r(C0,_.a5);C0.prototype.getAspectRatio=function(){return bY(this,1)};
C0.prototype.setAspectRatio=function(S){return _.GD(this,1,_.Ot(S),0)};
C0.prototype.getDuration=function(){return _.Sa(this,a3,2)};var gmm=function(S){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.UH(S)};
_.r(gmm,_.a5);var uII=function(S){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.UH(S)};
_.r(uII,_.a5);var wwE=function(S){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.UH(S)};
_.r(wwE,_.a5);var ldj=function(S){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.UH(S)};
_.r(ldj,_.a5);var add=function(S){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.UH(S)};
_.r(add,_.a5);var fdj=function(S){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.UH(S)};
_.r(fdj,_.a5);var CtH=function(S){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.UH(S)};
_.r(CtH,_.a5);var xte=function(S){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.UH(S)};
_.r(xte,_.a5);var Emt=function(S){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.UH(S)};
_.r(Emt,_.a5);var xZ=function(S){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.UH(S)};
_.r(xZ,_.a5);var EC=[2,4,5,6,7];var mtt=function(S){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.UH(S)};
_.r(mtt,_.a5);var zR=function(S){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.UH(S)};
_.r(zR,_.a5);_.M=zR.prototype;_.M.getId=function(){return _.Sa(this,l1,1)};
_.M.setId=function(S){return _.U3(this,1,S)};
_.M.getName=function(){return _.jR(this,2)};
_.M.setDescription=function(S){return _.$9(this,3,S)};
_.M.getUrl=function(){return _.jR(this,8)};
_.M.setUrl=function(S){return _.$9(this,8,S)};
var mC=function(S){return _.p2(S,f0,10,_.Ur())};
zR.prototype.getOwner=function(S){var p=_.K8(this,40,_.CE,3,!0);fc(p,S);return p[S]};
zR.prototype.getVersion=function(){return KT(this,45)};
var o3=function(S){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.UH(S)};
_.r(o3,_.a5);_.ome=[0,egw,uvd];_.vmq=[0,egw,uvd];var $te=function(S){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.UH(S)};
_.r($te,_.a5);var vD=function(S){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.UH(S)};
_.r(vD,_.a5);vD.prototype.getStatus=function(){return _.r1(this,1)};
vD.prototype.removeItem=function(S){return q7G(this,2,S)};var icm=function(S){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.UH(S)};
_.r(icm,_.a5);icm.prototype.getName=function(){return _.jR(this,8)};var $Z=function(S){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.UH(S)};
_.r($Z,_.a5);$Z.prototype.getCommand=function(){return _.r1(this,1)};
$Z.prototype.getSource=function(){return _.Sa(this,icm,2)};
$Z.prototype.setVisible=function(S){return _.G0(this,5,S)};
$Z.prototype.removeItem=function(S){return q7G(this,7,S)};var Nmc=function(S){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.UH(S)};
_.r(Nmc,_.a5);Nmc.prototype.getCommand=function(){return _.r1(this,1)};
Nmc.prototype.removeItem=function(S){return q7G(this,4,S)};
var BmH=_.SO(Nmc);var i1=function(S,p,U){U=U===void 0?Error():U;var Y=Error.call(this);this.message=Y.message;"stack"in Y&&(this.stack=Y.stack);this.code=S;p+=":";U instanceof Error?(this.message=p+U.message,this.stack=U.stack||""):(this.message=p+String(U),this.stack="");Object.setPrototypeOf(this,this.constructor.prototype)};
_.r(i1,Error);_.hY=function(){this.JSC$7543_disposed_=this.JSC$7543_disposed_;this.onDisposeCallbacks_=this.onDisposeCallbacks_};
_.hY.prototype.JSC$7543_disposed_=!1;_.hY.prototype.isDisposed=function(){return this.JSC$7543_disposed_};
_.hY.prototype.dispose=function(){this.JSC$7543_disposed_||(this.JSC$7543_disposed_=!0,this.disposeInternal())};
_.hY.prototype[Symbol.dispose]=function(){this.dispose()};
_.Hm=function(S,p){S.addOnDisposeCallback(_.Hd(_.t9,p))};
_.hY.prototype.addOnDisposeCallback=function(S,p){this.JSC$7543_disposed_?p!==void 0?S.call(p):S():(this.onDisposeCallbacks_||(this.onDisposeCallbacks_=[]),p&&(S=S.bind(p)),this.onDisposeCallbacks_.push(S))};
_.hY.prototype.disposeInternal=function(){if(this.onDisposeCallbacks_)for(;this.onDisposeCallbacks_.length;)this.onDisposeCallbacks_.shift()()};var NA=function(S){_.hY.call(this);this.wpc=S};
_.r(NA,_.hY);NA.prototype.ueB=function(){return this.wpc.f()};
NA.prototype.hGk=function(S){return this.wpc.c(S)};
NA.prototype.fC=function(S){return this.wpc.m(Z2X(S))};
NA.prototype.sO=function(S){return this.wpc.mws(Z2X(S))};
var S$=function(S){_.hY.call(this);var p=this;this.rX=S;this.veN="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.uaZ=void 0;this.iaC=this.rX.p;this.pwc=this.xc6.bind(this);this.addOnDisposeCallback(function(){return void qlI(p)})};
_.r(S$,_.hY);var Aqd=function(S){var p;return _.T(function(U){if(U.nextAddress==1){if(!S.rX.wpc)throw new i1(30,"NWA");return S.b2i?U.return(S.b2i):_.k(U,S.rX.wpc(),2)}p=U.yieldResult;S.b2i=new NA(p);return U.return(S.b2i)})};
S$.prototype.snapshot=function(S){return this.rX.s(Object.assign({},S.rM&&{c:S.rM},S.vH6&&{s:S.vH6},S.bQ5!==void 0&&{p:S.bQ5}))};
S$.prototype.xc6=function(S){this.rX.e(S)};
S$.prototype.vK6=function(S,p){return this.rX.c(S,p,!1)};
var qlI=function(S){S.uaZ!==void 0&&(S.veN.forEach(function(p){var U;(U=S.uaZ)==null||U.removeEventListener(p,S.pwc)}),S.uaZ=void 0)};
S$.prototype.v9G=function(){return this.rX.l()};var tQq,BD=function(){_.hY.apply(this,arguments);this.dYQ=1;this[tQq]=this.dispose};
_.r(BD,_.hY);BD.prototype.share=function(){if(this.isDisposed())throw Error("ta");this.dYQ++;return this};
BD.prototype.dispose=function(){--this.dYQ||_.hY.prototype.dispose.call(this)};
tQq=Symbol.dispose;var AYe=function(S){this.ub8=S;S.addNewEventMetric("/client_streamz/bg/frs",_.IW("mk"))};
AYe.prototype.record=function(S,p){this.ub8.record("/client_streamz/bg/frs",S,p)};
var pzE=function(S){this.a8q=S;S.addNewEventMetric("/client_streamz/bg/wrl",_.IW("mn"),Md("ac"),Md("sc"),_.IW("rk"),_.IW("mk"))};
pzE.prototype.record=function(S,p,U,Y,L,I){this.a8q.record("/client_streamz/bg/wrl",S,p,U,Y,L,I)};
var cYG=function(S){this.hvX=S;S.addNewCounter("/client_streamz/bg/ec",_.IW("en"),_.IW("mk"))};
cYG.prototype.increment=function(S,p){this.hvX.JSC$7796_incrementCounter("/client_streamz/bg/ec",S,p)};
var SIk=function(S){this.gia=S;S.addNewEventMetric("/client_streamz/bg/el",_.IW("en"),_.IW("mk"))};
SIk.prototype.record=function(S,p,U){this.gia.record("/client_streamz/bg/el",S,p,U)};
var t$G=function(S){this.k7X=S;S.addNewCounter("/client_streamz/bg/cec",Md("ec"),_.IW("mk"))};
t$G.prototype.increment=function(S,p){this.k7X.JSC$7796_incrementCounter("/client_streamz/bg/cec",S,p)};
var Uxw=function(S){this.xgO=S;S.addNewCounter("/client_streamz/bg/po/csc",Md("cs"),_.IW("mk"))};
Uxw.prototype.increment=function(S,p){this.xgO.JSC$7796_incrementCounter("/client_streamz/bg/po/csc",S,p)};
var YIw=function(S){this.zvq=S;S.addNewCounter("/client_streamz/bg/po/ctav",_.IW("av"),_.IW("mk"))};
YIw.prototype.increment=function(S,p){this.zvq.JSC$7796_incrementCounter("/client_streamz/bg/po/ctav",S,p)};
var L4k=function(S){this.pKX=S;S.addNewCounter("/client_streamz/bg/po/cwsc",_.IW("su"),_.IW("mk"))};
L4k.prototype.increment=function(S,p){this.pKX.JSC$7796_incrementCounter("/client_streamz/bg/po/cwsc",S,p)};var kVE=function(S){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.UH(S)};
_.r(kVE,_.a5);var OSX=function(S,p){return _.rZ(S,3,p,Aer)};var cqt=function(S){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.UH(S)};
_.r(cqt,_.a5);var Ste=[1,2,3];var pPH=[0,Ste,_.C3N,w5q,fXR];var UYI=[0,_.CT,[0,P3w,_.uY]];var Ytm=function(S){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.UH(S)};
_.r(Ytm,_.a5);var LoE=[1,2,3];var MXE=[0,LoE,gHr,ZwG,_.xC,UYI];var Ism=function(S){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.UH(S)};
_.r(Ism,_.a5);var dYe=[0,_.CT,pPH,MXE];var VXm=[0,_.fT];var Tim=function(S){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.UH(S)};
_.r(Tim,_.a5);var WoI=[0,_.fT,-1,_.lY];var OEm=[0,_.fT,-1,_.w1,_.lY];var kqe=function(S){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.UH(S)};
_.r(kqe,_.a5);var HEH=[1,2,3];var DYm=[0,HEH,_.xC,WoI,_.xC,OEm,_.xC,VXm];var zAm=function(S){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.UH(S)};
_.r(zAm,_.a5);zAm.prototype.JSC$7616_serializeBinary=pYk([0,_.fT,DYm,x7r,_.CT,dYe,lXN,aXu]);var QTI=function(S){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.UH(S)};
_.r(QTI,_.a5);var ydj=function(S){var p=new zAm;p=_.zN(p,1,S.JSC$7732_metricName);var U=n5H(S);p=_.rZ(p,3,U,_.lJ);U=[];for(var Y=[],L=_.d(S.cellMap.keys()),I=L.next();!I.done;I=L.next())Y.push(I.value.split(","));for(L=0;L<Y.length;L++){I=Y[L];for(var V=S.cellType,W=S.getCells(I)||[],O=[],D=0;D<W.length;D++){var z=W[D],Q=z&&z.cellValue;z=new Ytm;switch(V){case 3:Q=Number(Q);Number.isFinite(Q)&&kv(z,1,LoE,st(Q));break;case 2:kv(z,2,LoE,_.Ot(Number(Q)))}O.push(z)}V=O;for(W=0;W<V.length;W++){O=V[W];D=new Ism;O=_.U3(D,
2,O);D=[];z=Jdj(S);for(Q=0;Q<z.length;Q++){var J=z[Q],K=I[Q],G=new cqt;switch(J){case 3:kv(G,1,Ste,fE(String(K)));break;case 2:J=Number(K);Number.isFinite(J)&&kv(G,2,Ste,_.Gq(J));break;case 1:kv(G,3,Ste,NNX(K==="true"))}D.push(G)}DN(O,1,D);U.push(O)}}DN(p,4,U);return p};var KoQ=function(S){if(!S)return"";if(/^about:(?:blank|srcdoc)$/.test(S))return window.origin||"";S.indexOf("blob:")===0&&(S=S.substring(5));S=S.split("#")[0].split("?")[0];S=S.toLowerCase();S.indexOf("//")==0&&(S=window.location.protocol+S);/^[\w\-]*:\/\//.test(S)||(S=window.location.href);var p=S.substring(S.indexOf("://")+3),U=p.indexOf("/");U!=-1&&(p=p.substring(0,U));U=S.substring(0,S.indexOf("://"));if(!U)throw Error("ua`"+S);if(U!=="http"&&U!=="https"&&U!=="chrome-extension"&&U!=="moz-extension"&&
U!=="file"&&U!=="android-app"&&U!=="chrome-search"&&U!=="chrome-untrusted"&&U!=="chrome"&&U!=="app"&&U!=="devtools")throw Error("va`"+U);S="";var Y=p.indexOf(":");if(Y!=-1){var L=p.substring(Y+1);p=p.substring(0,Y);if(U==="http"&&L!=="80"||U==="https"&&L!=="443")S=":"+L}return U+"://"+p+S};var jTE=function(S,p,U){var Y=String(_.UX.location.href);return Y&&S&&p?[p,bEd(KoQ(Y),S,U||null)].join(" "):null},bEd=function(S,p,U){var Y=[],L=[];
if((Array.isArray(U)?2:1)==1)return L=[p,S],_.xs(Y,function(W){L.push(W)}),rdm(L.join(" "));
var I=[],V=[];_.xs(U,function(W){V.push(W.key);I.push(W.value)});
U=Math.floor((new Date).getTime()/1E3);L=I.length==0?[U,p,S]:[I.join(":"),U,p,S];_.xs(Y,function(W){L.push(W)});
S=rdm(L.join(" "));S=[U,S];V.length==0||S.push(V.join(""));return S.join("_")},rdm=function(S){var p=f1q();
p.update(S);return p.digestString().toLowerCase()};var qA=function(S){this.JSC$7627_document_=S||{cookie:""}},Gqe;
_.M=qA.prototype;_.M.isEnabled=function(){if(!_.UX.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};
_.M.set=function(S,p,U){var Y=!1;if(typeof U==="object"){var L=U.sameSite;Y=U.secure||!1;var I=U.domain||void 0;var V=U.path||void 0;var W=U.maxAge}if(/[;=\s]/.test(S))throw Error("wa`"+S);if(/[;\r\n]/.test(p))throw Error("xa`"+p);W===void 0&&(W=-1);U=I?";domain="+I:"";V=V?";path="+V:"";Y=Y?";secure":"";W=W<0?"":W==0?";expires="+(new Date(1970,1,1)).toUTCString():";expires="+(new Date(Date.now()+W*1E3)).toUTCString();this.JSC$7627_document_.cookie=S+"="+p+U+V+W+Y+(L!=null?";samesite="+L:"")};
_.M.get=function(S,p){for(var U=S+"=",Y=(this.JSC$7627_document_.cookie||"").split(";"),L=0,I;L<Y.length;L++){I=Hk(Y[L]);if(I.lastIndexOf(U,0)==0)return I.slice(U.length);if(I==S)return""}return p};
_.M.remove=function(S,p,U){var Y=this.containsKey(S);this.set(S,"",{maxAge:0,path:p,domain:U});return Y};
_.M.getKeys=function(){return Gqe(this).keys};
_.M.getValues=function(){return Gqe(this).values};
_.M.isEmpty=function(){return!this.JSC$7627_document_.cookie};
_.M.getCount=function(){return this.JSC$7627_document_.cookie?(this.JSC$7627_document_.cookie||"").split(";").length:0};
_.M.containsKey=function(S){return this.get(S)!==void 0};
_.M.containsValue=function(S){for(var p=Gqe(this).values,U=0;U<p.length;U++)if(p[U]==S)return!0;return!1};
_.M.clear=function(){for(var S=Gqe(this).keys,p=S.length-1;p>=0;p--)this.remove(S[p])};
Gqe=function(S){S=(S.JSC$7627_document_.cookie||"").split(";");for(var p=[],U=[],Y,L,I=0;I<S.length;I++)L=Hk(S[I]),Y=L.indexOf("="),Y==-1?(p.push(""),U.push(L)):(p.push(L.substring(0,Y)),U.push(L.substring(Y+1)));return{keys:p,values:U}};
_.D5=new qA(typeof document=="undefined"?null:document);var A2N=function(){var S=_.UX.__SAPISID||_.UX.__APISID||_.UX.__3PSAPISID||_.UX.__1PSAPISID||_.UX.__OVERRIDE_SID;if(S)return!0;typeof document!=="undefined"&&(S=new qA(document),S=S.get("SAPISID")||S.get("APISID")||S.get("__Secure-3PAPISID")||S.get("__Secure-1PAPISID"));return!!S},hAt=function(S,p,U,Y){(S=_.UX[S])||typeof document==="undefined"||(S=(new qA(document)).get(p));
return S?jTE(S,U,Y):null},olX=function(S){var p=KoQ(_.UX==null?void 0:_.UX.location.href),U=[];
if(A2N()){p=p.indexOf("https:")==0||p.indexOf("chrome-extension:")==0||p.indexOf("chrome-untrusted://new-tab-page")==0||p.indexOf("moz-extension:")==0;var Y=p?_.UX.__SAPISID:_.UX.__APISID;Y||typeof document==="undefined"||(Y=new qA(document),Y=Y.get(p?"SAPISID":"APISID")||Y.get("__Secure-3PAPISID"));(Y=Y?jTE(Y,p?"SAPISIDHASH":"APISIDHASH",S):null)&&U.push(Y);p&&((p=hAt("__1PSAPISID","__Secure-1PAPISID","SAPISID1PHASH",S))&&U.push(p),(S=hAt("__3PSAPISID","__Secure-3PAPISID","SAPISID3PHASH",S))&&U.push(S))}return U.length==
0?null:U.join(" ")};var RAE=function(){this.minSize=1024};
RAE.prototype.compress=function(S){var p,U,Y,L;return _.T(function(I){switch(I.nextAddress){case 1:return p=new CompressionStream("gzip"),U=(new Response(p.readable)).arrayBuffer(),Y=p.writable.getWriter(),_.k(I,Y.write((new TextEncoder).encode(S)),2);case 2:return _.k(I,Y.close(),3);case 3:return L=Uint8Array,_.k(I,U,4);case 4:return I.return(new L(I.yieldResult))}})};
RAE.prototype.isSupported=function(S){return S<this.minSize?!1:typeof CompressionStream!=="undefined"};var Fot=function(S){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.UH(S)};
_.r(Fot,_.a5);var AH=function(S,p){this.intervalMs=S;this.callback=p;this.enabled=!1;this.nowFn=function(){return _.BO()};
this.lastTimeMs=this.nowFn()};
AH.prototype.setInterval=function(S){this.intervalMs=S;this.timer&&this.enabled?(this.stop(),this.start()):this.timer&&this.stop()};
AH.prototype.start=function(){var S=this;this.enabled=!0;this.timer||(this.timer=setTimeout(function(){S.tick()},this.intervalMs),this.lastTimeMs=this.nowFn())};
AH.prototype.stop=function(){this.enabled=!1;this.timer&&(clearTimeout(this.timer),this.timer=void 0)};
AH.prototype.tick=function(){var S=this;if(this.enabled){var p=Math.max(this.nowFn()-this.lastTimeMs,0);p<this.intervalMs*.8?this.timer=setTimeout(function(){S.tick()},this.intervalMs-p):(this.timer&&(clearTimeout(this.timer),this.timer=void 0),this.callback(),this.enabled&&(this.stop(),this.start()))}else this.timer=void 0};var XPq=function(S){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.UH(S)};
_.r(XPq,_.a5);var PJe=function(S){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.UH(S)};
_.r(PJe,_.a5);var ZEd=function(S){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.UH(S)};
_.r(ZEd,_.a5);ZEd.prototype.getTransmissionType=function(){return _.r1(this,1)};var mdX=function(S){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.UH(S)};
_.r(mdX,_.a5);mdX.prototype.getVersion=function(){return _.jR(this,2)};var tH=function(S){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.UH(S)};
_.r(tH,_.a5);var EYw=function(S){DN(Vz,1,S)};
tH.prototype.getModel=function(){return _.jR(this,6)};
var sTj=_.SO(tH);var eAw=function(S){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.UH(S)};
_.r(eAw,_.a5);var C9e=["platform","platformVersion","architecture","model","uaFullVersion"],Vz=new tH,xdE=null;var g5I=function(S){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.UH(S)};
_.r(g5I,_.a5);var unQ=function(S){return _.pf(S,1,1)};var wPd=function(S){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.UH(S,4)};
_.r(wPd,_.a5);_.cD=function(S){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.UH(S,36)};
_.r(_.cD,_.a5);_.cD.prototype.getExperimentIds=function(){return _.Sa(this,Fot,16)};var lsc=function(S){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.UH(S,19)};
_.r(lsc,_.a5);lsc.prototype.setLogSource=function(S){return _.pf(this,2,S)};
lsc.prototype.setScheduler=function(S){return _.pf(this,10,S)};var fsl=function(S,p){this.isServiceWorkerScope=p=p===void 0?!1:p;this.uach=this.locale=null;this.transmissionType=0;this.isFinal=!1;this.logRequest=new lsc;Number.isInteger(S)&&this.logRequest.setLogSource(S);p||(this.locale=document.documentElement.getAttribute("lang"));asw(this,new g5I)};
fsl.prototype.setLogSource=function(S){this.logRequest.setLogSource(S);return this};
var asw=function(S,p){_.U3(S.logRequest,1,p);_.r1(p,1)||unQ(p);S.isServiceWorkerScope||(p=Sl(S),_.jR(p,5)||_.zN(p,5,S.locale));S.uach&&(p=Sl(S),_.Sa(p,tH,9)||_.U3(p,9,S.uach))},CJq=function(S,p){S.transmissionType=p},xYj=function(S){var p=p===void 0?C9e:p;
var U=S.isServiceWorkerScope?void 0:Pi();U?oYd(U,p).then(function(Y){S.uach=sTj(Y!=null?Y:"[]");Y=Sl(S);_.U3(Y,9,S.uach);return!0}).catch(function(){return!1}):Promise.resolve(!1)},Sl=function(S){S=_.Sa(S.logRequest,g5I,1);
var p=_.Sa(S,eAw,11);p||(p=new eAw,_.U3(S,11,p));return p};
fsl.prototype.build=function(S,p,U,Y,L,I){p=p===void 0?0:p;U=U===void 0?0:U;Y=Y===void 0?null:Y;L=L===void 0?0:L;I=I===void 0?0:I;if(!this.isServiceWorkerScope){var V=Sl(this);var W=new ZEd;W=_.pf(W,1,this.transmissionType);W=_.d5(W,2,this.isFinal);U=_.FU(W,3,U>0?U:void 0);U=_.FU(U,4,L>0?L:void 0);U=_.FU(U,5,I>0?I:void 0);L=U.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;I=L[_.jQ]|0;U=sl(U,I)?U:I5(U,L,I)?Mh(U,L):new U.constructor(L8(L,I,!0));_.U3(V,10,U)}V=this.logRequest.clone();U=Date.now().toString();
V=_.UP(V,4,st(U));S=S.slice();S=DN(V,3,S);Y&&(V=new XPq,Y=_.FU(V,13,Y),V=new PJe,Y=_.U3(V,2,Y),V=new wPd,Y=_.U3(V,1,Y),Y=_.pf(Y,2,9),_.U3(S,18,Y));p&&_.yR(S,14,p);return S};Tr.prototype.currBackoffCount_=0;Tr.prototype.reset=function(){this.currBaseValue_=this.currValue_=this.initialValue_;this.currBackoffCount_=0};
Tr.prototype.getValue=function(){return this.currValue_};
var E5Q=function(S){S.currBaseValue_=Math.min(S.maxValue_,S.currBaseValue_*S.backoffFactor_);S.currValue_=Math.min(S.maxValue_,S.currBaseValue_+(S.randomFactor_?Math.round(S.randomFactor_*(Math.random()-.5)*2*S.currBaseValue_):0));S.currBackoffCount_++};var $7G=function(S){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.UH(S,8)};
_.r($7G,_.a5);var mYl=_.SO($7G);var iwq=function(S){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.UH(S)};
_.r(iwq,_.a5);var pW;pW=new Npw;var UD=function(S){_.hY.call(this);var p=this;this.componentId="";this.pendingEvents=[];this.lastFailedAuth="";this.pageId=null;this.noFlushUntilMs=this.startWaitingMs=-1;this.JSC$7705_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$7705_sendBeaconApiEnabled=!1;this.logSource=S.logSource;this.getAuthHeaderValue=
S.getAuthHeaderValue||function(){};
this.logRequestBuilder=new fsl(S.logSource,S.isServiceWorkerScope);this.network=S.network||null;this.productID=S.productID||null;this.clearcutUrl=S.urlOverride||null;this.sessionIndex=S.sessionIndex||null;this.disableAutomaticFlush=S.disableAutomaticFlush||!1;this.logger=null;this.withCredentials=!S.disableWithCredentials;this.isServiceWorkerScope=S.isServiceWorkerScope||!1;this.isSendBeaconSupported=!this.isServiceWorkerScope&&!!Pi()&&!!Pi().navigator&&Pi().navigator.sendBeacon!==void 0;this.isBrowserSupported=
typeof URLSearchParams!=="undefined"&&!!(new URL(o5l())).searchParams&&!!(new URL(o5l())).searchParams.set;var U=unQ(new g5I);asw(this.logRequestBuilder,U);this.flushBackoff=new Tr(1E4,3E5,.1);S=v5t(this,S.backgroundJobDeferrer);this.JSC$7705_flushTimer=new AH(this.flushBackoff.getValue(),S);this.backupTimer=new AH(6E5,S);this.disableAutomaticFlush||this.backupTimer.start();this.isServiceWorkerScope||(document.addEventListener("visibilitychange",function(){if(document.visibilityState==="hidden"){$YH(p);
var Y;(Y=p.metalogService)==null||Y.flush()}}),document.addEventListener("pagehide",function(){$YH(p);
var Y;(Y=p.metalogService)==null||Y.flush()}))};
_.r(UD,_.hY);var v5t=function(S,p){return S.isBrowserSupported?p?function(){p().then(function(){S.flush()})}:function(){S.flush()}:function(){}};
UD.prototype.disposeInternal=function(){$YH(this);this.JSC$7705_flushTimer.stop();this.backupTimer.stop();_.hY.prototype.disposeInternal.call(this)};
var iEP=function(S){S.clearcutUrl||(S.clearcutUrl=o5l());try{return(new URL(S.clearcutUrl)).toString()}catch(p){return(new URL(S.clearcutUrl,Pi().location.origin)).toString()}};
UD.prototype.dispatch=function(S){if(S instanceof _.cD)this.log(S);else try{var p=new _.cD,U=S.serialize();var Y=_.zN(p,8,U);this.log(Y)}catch(L){Yx(this,4,1)}};
var Yx=function(S,p,U){S.metalogService&&S.metalogService.increment(p,U)};
UD.prototype.log=function(S){Yx(this,2,1);if(this.isBrowserSupported){S=S.clone();var p=this.sequencePosition++;S=_.yR(S,21,p);this.componentId&&_.zN(S,26,this.componentId);p=S;if(Hcr(_.VY(p,1))==null){var U=Date.now();U=Number.isFinite(U)?U.toString():"0";_.UP(p,1,st(U))}_.kjd(_.VY(p,15))!=null||_.yR(p,15,(new Date).getTimezoneOffset()*60);this.experimentIds&&(U=this.experimentIds.clone(),_.U3(p,16,U));Yx(this,1,1);p=this.pendingEvents.length-1E3+1;p>0&&(this.pendingEvents.splice(0,p),this.numLogsDroppedSinceLastFlush+=
p,Yx(this,3,p));this.pendingEvents.push(S);this.disableAutomaticFlush||this.JSC$7705_flushTimer.enabled||this.JSC$7705_flushTimer.start()}};
UD.prototype.flush=function(S,p){var U=this;if(this.pendingEvents.length===0)S&&S();else if(this.JSC$7705_sendBeaconApiEnabled&&this.isSendBeaconSupported)this.logRequestBuilder.transmissionType=3,NiE(this);else{var Y=Date.now();if(this.noFlushUntilMs>Y&&this.startWaitingMs<Y)p&&p("throttled");else{this.network&&(typeof this.network.getTransmissionType==="function"?CJq(this.logRequestBuilder,this.network.getTransmissionType()):this.logRequestBuilder.transmissionType=0);var L=this.pendingEvents.length,
I=this.logRequestBuilder.build(this.pendingEvents,this.numLogsDroppedSinceLastFlush,this.numRetriesSinceLastSuccessfulFlush,this.productID,this.persistedLogRecoveredCount,this.persistedLogExpiredCount),V=this.getAuthHeaderValue();if(V&&this.lastFailedAuth===V)p&&p("stale-auth-token");else{this.pendingEvents=[];this.JSC$7705_flushTimer.enabled&&this.JSC$7705_flushTimer.stop();this.numLogsDroppedSinceLastFlush=0;Y=I.serialize();var W;this.JSC$7705_compressor&&this.JSC$7705_compressor.isSupported(Y.length)&&
(W=this.JSC$7705_compressor.compress(Y));var O=Bim(this,Y,V),D=function(J){U.flushBackoff.reset();U.JSC$7705_flushTimer.setInterval(U.flushBackoff.getValue());if(J){var K=null;try{var G=JSON.stringify(JSON.parse(J.replace(")]}'\n","")));K=mYl(G)}catch(X){}K&&(J=Number(KT(K,1,_.qt("-1"))),J>0&&(U.startWaitingMs=Date.now(),U.noFlushUntilMs=U.startWaitingMs+J),sPR(K.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,pW.fieldIndex),Ptq(K,pW.fieldIndex),K=pW.ctor?pW.getExtensionFn(K,pW.ctor,pW.fieldIndex,
pW.JSC$6885_hasMessageId):pW.getExtensionFn(K,pW.fieldIndex,null,pW.JSC$6885_hasMessageId),K=K===null?void 0:K)&&(K=_.YY(K,1,-1),K!==-1&&(U.flushBackoff=new Tr(K<1?1:K,3E5,.1),U.JSC$7705_flushTimer.setInterval(U.flushBackoff.getValue())))}S&&S();U.numRetriesSinceLastSuccessfulFlush=0},z=function(J,K){var G=_.p2(I,_.cD,3,_.Ur());
var X=Number(KT(I,14));E5Q(U.flushBackoff);U.JSC$7705_flushTimer.setInterval(U.flushBackoff.getValue());J===401&&V&&(U.lastFailedAuth=V);X&&(U.numLogsDroppedSinceLastFlush+=X);K===void 0&&(K=U.isRetryable(J));K&&(U.pendingEvents=G.concat(U.pendingEvents),U.disableAutomaticFlush||U.JSC$7705_flushTimer.enabled||U.JSC$7705_flushTimer.start());Yx(U,7,1);p&&p("net-send-failed",J);++U.numRetriesSinceLastSuccessfulFlush},Q=function(){U.network&&U.network.send(O,D,z)};
W?W.then(function(J){Yx(U,5,L);O.requestHeaders["Content-Encoding"]="gzip";O.requestHeaders["Content-Type"]="application/binary";O.body=J;O.bodyType=2;Q()},function(){Yx(U,6,L);
Q()}):Q()}}}};
var Bim=function(S,p,U){U=U===void 0?null:U;var Y=Y===void 0?S.withCredentials:Y;var L={},I=new URL(iEP(S));U&&(L.Authorization=U);S.sessionIndex&&(L["X-Goog-AuthUser"]=S.sessionIndex,I.searchParams.set("authuser",S.sessionIndex));S.pageId&&(Object.defineProperty(L,"X-Goog-PageId",{value:S.pageId}),I.searchParams.set("pageId",S.pageId));return{url:I.toString(),body:p,bodyType:1,requestHeaders:L,requestType:"POST",withCredentials:Y,timeoutMillis:S.timeoutMillis}},$YH=function(S){S.logRequestBuilder.isFinal=
!0;
S.flush();S.logRequestBuilder.isFinal=!1},NiE=function(S){qtj(S,function(p,U){p=new URL(p);
p.searchParams.set("format","json");var Y=!1;try{Y=Pi().navigator.sendBeacon(p.toString(),U.serialize())}catch(L){}Y||(S.isSendBeaconSupported=!1);return Y})},qtj=function(S,p){if(S.pendingEvents.length!==0){var U=new URL(iEP(S));
U.searchParams.delete("format");var Y=S.getAuthHeaderValue();Y&&U.searchParams.set("auth",Y);U.searchParams.set("authuser",S.sessionIndex||"0");for(Y=0;Y<10&&S.pendingEvents.length;++Y){var L=S.pendingEvents.slice(0,32),I=S.logRequestBuilder.build(L,S.numLogsDroppedSinceLastFlush,S.numRetriesSinceLastSuccessfulFlush,S.productID,S.persistedLogRecoveredCount,S.persistedLogExpiredCount);if(!p(U.toString(),I)){++S.numRetriesSinceLastSuccessfulFlush;break}S.numLogsDroppedSinceLastFlush=0;S.numRetriesSinceLastSuccessfulFlush=
0;S.persistedLogRecoveredCount=0;S.persistedLogExpiredCount=0;S.pendingEvents=S.pendingEvents.slice(L.length)}S.JSC$7705_flushTimer.enabled&&S.JSC$7705_flushTimer.stop()}};
UD.prototype.isRetryable=function(S){return 500<=S&&S<600||S===401||S===0};
var o5l=function(){return"https://play.google.com/log?format=json&hasfast=true"};var AdQ=function(){this.abortSupported=typeof AbortController!=="undefined"};
AdQ.prototype.send=function(S,p,U){var Y=this,L,I,V,W,O,D,z,Q,J,K;return _.T(function(G){switch(G.nextAddress){case 1:return I=(L=Y.abortSupported?new AbortController:void 0)?setTimeout(function(){L.abort()},S.timeoutMillis):void 0,_.M2(G,2,3),V=Object.assign({},{method:S.requestType,
headers:Object.assign({},S.requestHeaders)},S.body&&{body:S.body},S.withCredentials&&{credentials:"include"},{signal:S.timeoutMillis&&L?L.signal:null}),_.k(G,fetch(S.url,V),5);case 5:W=G.yieldResult;if(W.status!==200){(O=U)==null||O(W.status);G.jumpTo(3);break}if((D=p)==null){G.jumpTo(7);break}return _.k(G,W.text(),8);case 8:D(G.yieldResult);case 7:case 3:_.IO(G);clearTimeout(I);_.T7(G,0);break;case 2:z=_.W4(G);switch((Q=z)==null?void 0:Q.name){case "AbortError":(J=U)==null||J(408);break;default:(K=
U)==null||K(400)}G.jumpTo(3)}})};
AdQ.prototype.getTransmissionType=function(){return 4};_.kY=function(S,p){p=p===void 0?"0":p;_.hY.call(this);this.logSource=S;this.sessionIndex=p;this.destinationUrl="https://play.google.com/log?format=json&hasfast=true";this.buildLabel=null;this.serviceWorkerScopeEnabled=!1;this.network=null;this.componentId="";this.JSC$7723_clearExperimentIds=this.productID=null;this.JSC$7723_sendBeaconApiEnabled=!1;this.pageId=null};
_.r(_.kY,_.hY);var VkX=function(S,p){S.buildLabel=p;return S},dxG=function(S,p){S.network=p;
return S},W4w=function(S,p){S.JSC$7723_clearExperimentIds=p},Igw=function(S){S.JSC$7723_sendBeaconApiEnabled=!0;
return S};
_.kY.prototype.disableWithCredentials=function(){this.withCredentialsDisabled=!0;return this};
_.kY.prototype.build=function(){this.network||(this.network=new AdQ);var S=new UD({logSource:this.logSource,getAuthHeaderValue:this.getAuthHeaderValue?this.getAuthHeaderValue:olX,sessionIndex:this.sessionIndex,urlOverride:this.destinationUrl,isServiceWorkerScope:this.serviceWorkerScopeEnabled,disableAutomaticFlush:!1,disableWithCredentials:this.withCredentialsDisabled,backgroundJobDeferrer:this.backgroundJobDeferrer,network:this.network});_.Hm(this,S);if(this.buildLabel){var p=this.buildLabel,U=Sl(S.logRequestBuilder);
_.zN(U,7,p)}S.JSC$7705_compressor=new RAE;this.componentId&&(S.componentId=this.componentId);this.productID&&(S.productID=this.productID);this.pageId&&(S.pageId=this.pageId);this.JSC$7723_clearExperimentIds&&((U=this.JSC$7723_clearExperimentIds)?(S.experimentIds||(S.experimentIds=new Fot),p=S.experimentIds,U=U.serialize(),_.zN(p,4,U)):S.experimentIds&&_.UP(S.experimentIds,4));this.JSC$7723_sendBeaconApiEnabled&&(S.JSC$7705_sendBeaconApiEnabled=S.isSendBeaconSupported);xYj(S.logRequestBuilder);this.network.setLogSource&&
this.network.setLogSource(this.logSource);this.network.setTransportReferenceAndAttemptFlush&&this.network.setTransportReferenceAndAttemptFlush(S);return S};var ZSG=function(S,p,U,Y,L,I,V){S=S===void 0?-1:S;p=p===void 0?"":p;U=U===void 0?"":U;Y=Y===void 0?!1:Y;L=L===void 0?"":L;_.hY.call(this);this.logSource=S;this.componentId=p;I?p=I:(S=new _.kY(S,"0"),S.componentId=p,_.Hm(this,S),U!==""&&(S.destinationUrl=U),Y&&(S.serviceWorkerScopeEnabled=!0),L&&VkX(S,L),V&&dxG(S,V),p=S.build());this.JSC$7727_transport=p};
_.r(ZSG,_.hY);ZSG.prototype.flush=function(S){S=S||[];if(S.length){for(var p=new QTI,U=[],Y=0;Y<S.length;Y++){var L=S[Y],I=ydj(L);U.push(I);L.clear()}DN(p,1,U);this.JSC$7727_transport.dispatch(p);this.JSC$7727_transport.flush()}};var tXQ=function(S){this.cellValue=S};var LW=function(S,p,U){this.JSC$7732_metricName=S;this.cellType=p;this.fields=U||[];this.cellMap=new Map},Jdj=function(S){return S.fields.map(function(p){return p.fieldType})},n5H=function(S){return S.fields.map(function(p){return p.fieldName})};
_.M=LW.prototype;_.M.addCell=function(S){var p=_.jO.apply(1,arguments),U=this.getCells(p);U?U.push(new tXQ(S)):this.JSC$7732_setCell(S,p)};
_.M.JSC$7732_setCell=function(S){var p=this.JSC$7732_getKey(_.jO.apply(1,arguments));this.cellMap.set(p,[new tXQ(S)])};
_.M.getCells=function(){var S=this.JSC$7732_getKey(_.jO.apply(0,arguments));return this.cellMap.has(S)?this.cellMap.get(S):void 0};
_.M.getCell=function(){var S=this.getCells(_.jO.apply(0,arguments));return S&&S.length?S[0]:void 0};
_.M.clear=function(){this.cellMap.clear()};
_.M.JSC$7732_getKey=function(){var S=_.jO.apply(0,arguments);return S?S.join(","):"key"};var cdt=function(S,p){LW.call(this,S,3,p)};
_.r(cdt,LW);cdt.prototype.JSC$7735_incrementCounterBy=function(S){var p=_.jO.apply(1,arguments),U=0,Y=this.getCell(p);Y&&(U=Y.cellValue);this.JSC$7732_setCell(U+S,p)};var SHt=function(S,p){LW.call(this,S,2,p)};
_.r(SHt,LW);SHt.prototype.record=function(S){this.addCell(S,_.jO.apply(1,arguments))};_.MN=function(S){this.id=S};
_.MN.prototype.toString=function(){return this.id};_.Iw=function(S,p){this.type=S instanceof _.MN?String(S):S;this.currentTarget=this.target=p;this.defaultPrevented=this.propagationStopped_=!1};
_.Iw.prototype.stopPropagation=function(){this.propagationStopped_=!0};
_.Iw.prototype.preventDefault=function(){this.defaultPrevented=!0};_.dM=function(S,p){_.Iw.call(this,S?S.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;S&&this.init(S,p)};
_.q_(_.dM,_.Iw);
_.dM.prototype.init=function(S,p){var U=this.type=S.type,Y=S.changedTouches&&S.changedTouches.length?S.changedTouches[0]:null;this.target=S.target||S.srcElement;this.currentTarget=p;p=S.relatedTarget;p||(U=="mouseover"?p=S.fromElement:U=="mouseout"&&(p=S.toElement));this.relatedTarget=p;Y?(this.clientX=Y.clientX!==void 0?Y.clientX:Y.pageX,this.clientY=Y.clientY!==void 0?Y.clientY:Y.pageY,this.screenX=Y.screenX||0,this.screenY=Y.screenY||0):(this.offsetX=_.pT||S.offsetX!==void 0?S.offsetX:S.layerX,
this.offsetY=_.pT||S.offsetY!==void 0?S.offsetY:S.layerY,this.clientX=S.clientX!==void 0?S.clientX:S.pageX,this.clientY=S.clientY!==void 0?S.clientY:S.pageY,this.screenX=S.screenX||0,this.screenY=S.screenY||0);this.button=S.button;this.keyCode=S.keyCode||0;this.key=S.key||"";this.charCode=S.charCode||(U=="keypress"?S.keyCode:0);this.ctrlKey=S.ctrlKey;this.altKey=S.altKey;this.shiftKey=S.shiftKey;this.metaKey=S.metaKey;this.pointerId=S.pointerId||0;this.pointerType=S.pointerType;this.state=S.state;
this.timeStamp=S.timeStamp;this.event_=S;S.defaultPrevented&&_.dM.superClass_.preventDefault.call(this)};
_.dM.prototype.stopPropagation=function(){_.dM.superClass_.stopPropagation.call(this);this.event_.stopPropagation?this.event_.stopPropagation():this.event_.cancelBubble=!0};
_.dM.prototype.preventDefault=function(){_.dM.superClass_.preventDefault.call(this);var S=this.event_;S.preventDefault?S.preventDefault():S.returnValue=!1};var pYw="closure_listenable_"+(Math.random()*1E6|0),Vf=function(S){return!(!S||!S[pYw])};var UhH=0;var YHt=function(S,p,U,Y,L){this.listener=S;this.proxy=null;this.src=p;this.type=U;this.capture=!!Y;this.handler=L;this.key=++UhH;this.removed=this.callOnce=!1},L7q=function(S){S.removed=!0;
S.listener=null;S.proxy=null;S.src=null;S.handler=null};Wm.prototype.add=function(S,p,U,Y,L){var I=S.toString();S=this.listeners[I];S||(S=this.listeners[I]=[],this.typeCount_++);var V=MuP(S,p,Y,L);V>-1?(p=S[V],U||(p.callOnce=!1)):(p=new YHt(p,this.src,I,!!Y,L),p.callOnce=U,S.push(p));return p};
Wm.prototype.remove=function(S,p,U,Y){S=S.toString();if(!(S in this.listeners))return!1;var L=this.listeners[S];p=MuP(L,p,U,Y);return p>-1?(L7q(L[p]),_.ie(L,p),L.length==0&&(delete this.listeners[S],this.typeCount_--),!0):!1};
var I3m=function(S,p){var U=p.type;if(!(U in S.listeners))return!1;var Y=_.NG(S.listeners[U],p);Y&&(L7q(p),S.listeners[U].length==0&&(delete S.listeners[U],S.typeCount_--));return Y};
Wm.prototype.removeAll=function(S){S=S&&S.toString();var p=0,U;for(U in this.listeners)if(!S||U==S){for(var Y=this.listeners[U],L=0;L<Y.length;L++)++p,L7q(Y[L]);delete this.listeners[U];this.typeCount_--}return p};
Wm.prototype.getListener=function(S,p,U,Y){S=this.listeners[S.toString()];var L=-1;S&&(L=MuP(S,p,U,Y));return L>-1?S[L]:null};
Wm.prototype.hasListener=function(S,p){var U=S!==void 0,Y=U?S.toString():"",L=p!==void 0;return _.h9.some(this.listeners,function(I){for(var V=0;V<I.length;++V)if(!(U&&I[V].type!=Y||L&&I[V].capture!=p))return!0;return!1})};
var MuP=function(S,p,U,Y){for(var L=0;L<S.length;++L){var I=S[L];if(!I.removed&&I.listener==p&&I.capture==!!U&&I.handler==Y)return L}return-1};var dhw,Vuj,TZH,O8e,kDt,QO,nz,z6l,H8m,Dht,TB,Q5m,W7Q;dhw="closure_lm_"+(Math.random()*1E6|0);Vuj={};TZH=0;_.Kz=function(S,p,U,Y,L){if(Y&&Y.once)return QO(S,p,U,Y,L);if(Array.isArray(p)){for(var I=0;I<p.length;I++)_.Kz(S,p[I],U,Y,L);return null}U=W7Q(U);return Vf(S)?S.listen(p,U,_.pc(Y)?!!Y.capture:!!Y,L):O8e(S,p,U,!1,Y,L)};
O8e=function(S,p,U,Y,L,I){if(!p)throw Error("za");var V=_.pc(L)?!!L.capture:!!L,W=TB(S);W||(S[dhw]=W=new Wm(S));U=W.add(p,U,Y,V,I);if(U.proxy)return U;Y=kDt();U.proxy=Y;Y.src=S;Y.listener=U;if(S.addEventListener)_.jiw||(L=V),L===void 0&&(L=!1),S.addEventListener(p.toString(),Y,L);else if(S.attachEvent)S.attachEvent(H8m(p.toString()),Y);else if(S.addListener&&S.removeListener)S.addListener(Y);else throw Error("Aa");TZH++;return U};
kDt=function(){var S=Dht,p=function(U){return S.call(p.src,p.listener,U)};
return p};
QO=function(S,p,U,Y,L){if(Array.isArray(p)){for(var I=0;I<p.length;I++)QO(S,p[I],U,Y,L);return null}U=W7Q(U);return Vf(S)?S.listenOnce(p,U,_.pc(Y)?!!Y.capture:!!Y,L):O8e(S,p,U,!0,Y,L)};
_.W3=function(S,p,U,Y,L){if(Array.isArray(p))for(var I=0;I<p.length;I++)_.W3(S,p[I],U,Y,L);else Y=_.pc(Y)?!!Y.capture:!!Y,U=W7Q(U),Vf(S)?S.unlisten(p,U,Y,L):S&&(S=TB(S))&&(p=S.getListener(p,U,Y,L))&&nz(p)};
nz=function(S){if(typeof S==="number"||!S||S.removed)return!1;var p=S.src;if(Vf(p))return I3m(p.eventTargetListeners_,S);var U=S.type,Y=S.proxy;p.removeEventListener?p.removeEventListener(U,Y,S.capture):p.detachEvent?p.detachEvent(H8m(U),Y):p.addListener&&p.removeListener&&p.removeListener(Y);TZH--;(U=TB(p))?(I3m(U,S),U.typeCount_==0&&(U.src=null,p[dhw]=null)):L7q(S);return!0};
z6l=function(S,p,U,Y,L){U=W7Q(U);Y=!!Y;return Vf(S)?S.getListener(p,U,Y,L):S?(S=TB(S))?S.getListener(p,U,Y,L):null:null};
H8m=function(S){return S in Vuj?Vuj[S]:Vuj[S]="on"+S};
Dht=function(S,p){if(S.removed)S=!0;else{p=new _.dM(p,this);var U=S.listener,Y=S.handler||S.src;S.callOnce&&nz(S);S=U.call(Y,p)}return S};
TB=function(S){S=S[dhw];return S instanceof Wm?S:null};
Q5m="__closure_events_fn_"+(Math.random()*1E9>>>0);W7Q=function(S){if(typeof S==="function")return S;S[Q5m]||(S[Q5m]=function(p){return S.handleEvent(p)});
return S[Q5m]};_.OD=function(){_.hY.call(this);this.eventTargetListeners_=new Wm(this);this.actualEventTarget_=this;this.parentEventTarget_=null};
_.q_(_.OD,_.hY);_.OD.prototype[pYw]=!0;_.M=_.OD.prototype;_.M.setParentEventTarget=function(S){this.parentEventTarget_=S};
_.M.addEventListener=function(S,p,U,Y){_.Kz(this,S,p,U,Y)};
_.M.removeEventListener=function(S,p,U,Y){_.W3(this,S,p,U,Y)};
_.M.dispatchEvent=function(S){var p,U=this.parentEventTarget_;if(U)for(p=[];U;U=U.parentEventTarget_)p.push(U);U=this.actualEventTarget_;var Y=S.type||S;if(typeof S==="string")S=new _.Iw(S,U);else if(S instanceof _.Iw)S.target=S.target||U;else{var L=S;S=new _.Iw(Y,U);_.h9.extend(S,L)}L=!0;var I;if(p)for(I=p.length-1;!S.propagationStopped_&&I>=0;I--){var V=S.currentTarget=p[I];L=nAt(V,Y,!0,S)&&L}S.propagationStopped_||(V=S.currentTarget=U,L=nAt(V,Y,!0,S)&&L,S.propagationStopped_||(L=nAt(V,Y,!1,S)&&
L));if(p)for(I=0;!S.propagationStopped_&&I<p.length;I++)V=S.currentTarget=p[I],L=nAt(V,Y,!1,S)&&L;return L};
_.M.disposeInternal=function(){_.OD.superClass_.disposeInternal.call(this);this.removeAllListeners();this.parentEventTarget_=null};
_.M.listen=function(S,p,U,Y){return this.eventTargetListeners_.add(String(S),p,!1,U,Y)};
_.M.listenOnce=function(S,p,U,Y){return this.eventTargetListeners_.add(String(S),p,!0,U,Y)};
_.M.unlisten=function(S,p,U,Y){return this.eventTargetListeners_.remove(String(S),p,U,Y)};
_.M.removeAllListeners=function(S){return this.eventTargetListeners_?this.eventTargetListeners_.removeAll(S):0};
var nAt=function(S,p,U,Y){p=S.eventTargetListeners_.listeners[String(p)];if(!p)return!0;p=p.concat();for(var L=!0,I=0;I<p.length;++I){var V=p[I];if(V&&!V.removed&&V.capture==U){var W=V.listener,O=V.handler||V.src;V.callOnce&&I3m(S.eventTargetListeners_,V);L=W.call(O,Y)!==!1&&L}}return L&&!Y.defaultPrevented};
_.OD.prototype.getListener=function(S,p,U,Y){return this.eventTargetListeners_.getListener(String(S),p,U,Y)};
_.OD.prototype.hasListener=function(S,p){return this.eventTargetListeners_.hasListener(S!==void 0?String(S):void 0,p)};var kx=typeof AsyncContext!=="undefined"&&typeof AsyncContext.Snapshot==="function"?function(S){return S&&AsyncContext.Snapshot.wrap(S)}:function(S){return S};var Jiw=function(S,p){this.create_=S;this.reset_=p;this.occupants_=0;this.JSC$7767_head_=null};
Jiw.prototype.get=function(){if(this.occupants_>0){this.occupants_--;var S=this.JSC$7767_head_;this.JSC$7767_head_=S.next;S.next=null}else S=this.create_();return S};
Jiw.prototype.put=function(S){this.reset_(S);this.occupants_<100&&(this.occupants_++,S.next=this.JSC$7767_head_,this.JSC$7767_head_=S)};var yic=function(){this.workTail_=this.workHead_=null};
yic.prototype.add=function(S,p){var U=$dR.get();U.set(S,p);this.workTail_?this.workTail_.next=U:this.workHead_=U;this.workTail_=U};
yic.prototype.remove=function(){var S=null;this.workHead_&&(S=this.workHead_,this.workHead_=this.workHead_.next,this.workHead_||(this.workTail_=null),S.next=null);return S};
var $dR=new Jiw(function(){return new K7t},function(S){return S.reset()}),K7t=function(){this.next=this.scope=this.fn=null};
K7t.prototype.set=function(S,p){this.fn=S;this.scope=p;this.next=null};
K7t.prototype.reset=function(){this.next=this.scope=this.fn=null};var b8j,i2E,vYw,j5t;i2E=!1;vYw=new yic;_.H3=function(S,p){b8j||j5t();i2E||(b8j(),i2E=!0);vYw.add(S,p)};
j5t=function(){var S=Promise.resolve(void 0);b8j=function(){S.then(N5u)}};var rij=function(S){S.prototype.$goog_Thenable=!0},GDj=function(S){if(!S)return!1;
try{return!!S.$goog_Thenable}catch(p){return!1}};var h6t,R6t,F7t,P4e,Z8d,s5Q,wYw,f3l,mhl,xhj,bqw;_.O9=function(S,p){this.state_=0;this.result_=void 0;this.callbackEntriesTail_=this.callbackEntries_=this.parent_=null;this.hadUnhandledRejection_=this.executing_=!1;if(S!=_.TX)try{var U=this;S.call(p,function(Y){U.resolve_(2,Y)},function(Y){U.resolve_(3,Y)})}catch(Y){this.resolve_(3,Y)}};
h6t=function(){this.next=this.context=this.JSC$7778_onRejected=this.JSC$7778_onFulfilled=this.child=null;this.always=!1};
h6t.prototype.reset=function(){this.context=this.JSC$7778_onRejected=this.JSC$7778_onFulfilled=this.child=null;this.always=!1};
R6t=new Jiw(function(){return new h6t},function(S){S.reset()});
F7t=function(S,p,U){var Y=R6t.get();Y.JSC$7778_onFulfilled=S;Y.JSC$7778_onRejected=p;Y.context=U;return Y};
_.Mw=function(S){if(S instanceof _.O9)return S;var p=new _.O9(_.TX);p.resolve_(2,S);return p};
_.jV=function(S){return new _.O9(function(p,U){U(S)})};
P4e=function(S,p,U){XYI(S,p,U,null)||_.H3(_.Hd(p,S))};
_.DS=function(S){return new _.O9(function(p,U){var Y=S.length,L=[];if(Y)for(var I=function(D,z){Y--;L[D]=z;Y==0&&p(L)},V=function(D){U(D)},W,O=0;O<S.length;O++)W=S[O],P4e(W,_.Hd(I,O),V);
else p(L)})};
Z8d=function(S){return new _.O9(function(p){var U=S.length,Y=[];if(U)for(var L=function(W,O,D){U--;Y[W]=O?{fulfilled:!0,value:D}:{fulfilled:!1,reason:D};U==0&&p(Y)},I,V=0;V<S.length;V++)I=S[V],P4e(I,_.Hd(L,V,!0),_.Hd(L,V,!1));
else p(Y)})};
s5Q=function(S){return new _.O9(function(p,U){var Y=S.length,L=[];if(Y)for(var I=function(D){p(D)},V=function(D,z){Y--;
L[D]=z;Y==0&&U(L)},W,O=0;O<S.length;O++)W=S[O],P4e(W,I,_.Hd(V,O));
else p(void 0)})};
_.ay=function(){var S,p,U=new _.O9(function(Y,L){S=Y;p=L});
return new e6t(U,S,p)};
_.O9.prototype.then=function(S,p,U){return gAt(this,kx(typeof S==="function"?S:null),kx(typeof p==="function"?p:null),U)};
rij(_.O9);wYw=function(S,p,U,Y){uOm(S,F7t(p||_.TX,U||null,Y))};
_.zB=function(S,p){p=kx(p);p=F7t(p,p);p.always=!0;uOm(S,p);return S};
_.O9.prototype.finally=function(S){var p=this;S=kx(S);return new Promise(function(U,Y){wYw(p,function(L){S();U(L)},function(L){S();
Y(L)})})};
_.O9.prototype.thenCatch=function(S,p){return gAt(this,null,kx(S),p)};
_.O9.prototype.catch=_.O9.prototype.thenCatch;_.O9.prototype.cancel=function(S){if(this.state_==0){var p=new _.aA(S);_.H3(function(){l3m(this,p)},this)}};
var l3m=function(S,p){if(S.state_==0)if(S.parent_){var U=S.parent_;if(U.callbackEntries_){for(var Y=0,L=null,I=null,V=U.callbackEntries_;V&&(V.always||(Y++,V.child==S&&(L=V),!(L&&Y>1)));V=V.next)L||(I=V);L&&(U.state_==0&&Y==1?l3m(U,p):(I?(Y=I,Y.next==U.callbackEntriesTail_&&(U.callbackEntriesTail_=Y),Y.next=Y.next.next):a3l(U),f3l(U,L,3,p)))}S.parent_=null}else S.resolve_(3,p)},uOm=function(S,p){S.callbackEntries_||S.state_!=2&&S.state_!=3||C4l(S);
S.callbackEntriesTail_?S.callbackEntriesTail_.next=p:S.callbackEntries_=p;S.callbackEntriesTail_=p},gAt=function(S,p,U,Y){var L=F7t(null,null,null);
L.child=new _.O9(function(I,V){L.JSC$7778_onFulfilled=p?function(W){try{var O=p.call(Y,W);I(O)}catch(D){V(D)}}:I;
L.JSC$7778_onRejected=U?function(W){try{var O=U.call(Y,W);O===void 0&&W instanceof _.aA?V(W):I(O)}catch(D){V(D)}}:V});
L.child.parent_=S;uOm(S,L);return L.child};
_.O9.prototype.unblockAndFulfill_=function(S){this.state_=0;this.resolve_(2,S)};
_.O9.prototype.unblockAndReject_=function(S){this.state_=0;this.resolve_(3,S)};
_.O9.prototype.resolve_=function(S,p){this.state_==0&&(this===p&&(S=3,p=new TypeError("Ba")),this.state_=1,XYI(p,this.unblockAndFulfill_,this.unblockAndReject_,this)||(this.result_=p,this.state_=S,this.parent_=null,C4l(this),S!=3||p instanceof _.aA||xhj(this,p)))};
var XYI=function(S,p,U,Y){if(S instanceof _.O9)return wYw(S,p,U,Y),!0;if(GDj(S))return S.then(p,U,Y),!0;if(_.pc(S))try{var L=S.then;if(typeof L==="function")return EAP(S,L,p,U,Y),!0}catch(I){return U.call(Y,I),!0}return!1},EAP=function(S,p,U,Y,L){var I=!1,V=function(O){I||(I=!0,U.call(L,O))},W=function(O){I||(I=!0,Y.call(L,O))};
try{p.call(S,V,W)}catch(O){W(O)}},C4l=function(S){S.executing_||(S.executing_=!0,_.H3(S.executeCallbacks_,S))},a3l=function(S){var p=null;
S.callbackEntries_&&(p=S.callbackEntries_,S.callbackEntries_=p.next,p.next=null);S.callbackEntries_||(S.callbackEntriesTail_=null);return p};
_.O9.prototype.executeCallbacks_=function(){for(var S;S=a3l(this);)f3l(this,S,this.state_,this.result_);this.executing_=!1};
f3l=function(S,p,U,Y){if(U==3&&p.JSC$7778_onRejected&&!p.always)for(;S&&S.hadUnhandledRejection_;S=S.parent_)S.hadUnhandledRejection_=!1;if(p.child)p.child.parent_=null,mhl(p,U,Y);else try{p.always?p.JSC$7778_onFulfilled.call(p.context):mhl(p,U,Y)}catch(L){bqw.call(null,L)}R6t.put(p)};
mhl=function(S,p,U){p==2?S.JSC$7778_onFulfilled.call(S.context,U):S.JSC$7778_onRejected&&S.JSC$7778_onRejected.call(S.context,U)};
xhj=function(S,p){S.hadUnhandledRejection_=!0;_.H3(function(){S.hadUnhandledRejection_&&bqw.call(null,p)})};
bqw=YR;_.aA=function(S){_.Sw.call(this,S)};
_.q_(_.aA,_.Sw);_.aA.prototype.name="cancel";var e6t=function(S,p,U){this.promise=S;this.resolve=p;this.reject=U};var Qf;_.tr=function(S,p){_.OD.call(this);this.JSC$7790_interval_=S||1;this.timerObject_=p||_.UX;this.boundTick_=(0,_.RW)(this.tick_,this);this.last_=_.BO()};
_.q_(_.tr,_.OD);_.M=_.tr.prototype;_.M.enabled=!1;_.M.JSC$7792_timer_=null;_.M.setInterval=function(S){this.JSC$7790_interval_=S;this.JSC$7792_timer_&&this.enabled?(this.stop(),this.start()):this.JSC$7792_timer_&&this.stop()};
_.M.tick_=function(){if(this.enabled){var S=_.BO()-this.last_;S>0&&S<this.JSC$7790_interval_*.8?this.JSC$7792_timer_=this.timerObject_.setTimeout(this.boundTick_,this.JSC$7790_interval_-S):(this.JSC$7792_timer_&&(this.timerObject_.clearTimeout(this.JSC$7792_timer_),this.JSC$7792_timer_=null),this.dispatchEvent("tick"),this.enabled&&(this.stop(),this.start()))}};
_.M.start=function(){this.enabled=!0;this.JSC$7792_timer_||(this.JSC$7792_timer_=this.timerObject_.setTimeout(this.boundTick_,this.JSC$7790_interval_),this.last_=_.BO())};
_.M.stop=function(){this.enabled=!1;this.JSC$7792_timer_&&(this.timerObject_.clearTimeout(this.JSC$7792_timer_),this.JSC$7792_timer_=null)};
_.M.disposeInternal=function(){_.tr.superClass_.disposeInternal.call(this);this.stop();delete this.timerObject_};
Qf=function(S,p,U){if(typeof S==="function")U&&(S=(0,_.RW)(S,U));else if(S&&typeof S.handleEvent=="function")S=(0,_.RW)(S.handleEvent,S);else throw Error("Ca");return Number(p)>2147483647?-1:_.UX.setTimeout(S,p||0)};
_.oAc=function(S){var p=null;return(new _.O9(function(U,Y){p=Qf(function(){U(void 0)},S);
p==-1&&Y(Error("Da"))})).thenCatch(function(U){_.UX.clearTimeout(p);
throw U;})};var D1=function(S){_.hY.call(this);this.streamzLogger=S;this.invocationCount=0;this.invocationLimit=100;this.shouldSendIsolatedPayload=!1;this.metricMap=new Map;this.disabledMetrics=new Set;this.flushInterval=3E4;this.JSC$7796_flushTimer=new _.tr(this.flushInterval);this.JSC$7796_flushTimer.listen("tick",this.snapshotAndFlush,!1,this);_.Hm(this,this.JSC$7796_flushTimer)};
_.r(D1,_.hY);D1.prototype.sendIsolatedPayload=function(S){this.shouldSendIsolatedPayload=S;this.invocationLimit=1};
var vAH=function(S){S.JSC$7796_flushTimer.enabled||S.JSC$7796_flushTimer.start();S.invocationCount++;S.invocationCount>=S.invocationLimit&&S.snapshotAndFlush()};
D1.prototype.snapshotAndFlush=function(){var S=this.metricMap.values();S=[].concat(_.jo(S)).filter(function(p){return p.cellMap.size});
S.length&&this.streamzLogger.flush(S,this.shouldSendIsolatedPayload);$hI(S);this.invocationCount=0;this.JSC$7796_flushTimer.enabled&&this.JSC$7796_flushTimer.stop()};
D1.prototype.addNewCounter=function(S){var p=_.jO.apply(1,arguments);this.metricMap.has(S)||this.metricMap.set(S,new cdt(S,p))};
D1.prototype.addNewEventMetric=function(S){var p=_.jO.apply(1,arguments);this.metricMap.has(S)||this.metricMap.set(S,new SHt(S,p))};
var i8Q=function(S,p){return S.disabledMetrics.has(p)?void 0:S.metricMap.get(p)};
D1.prototype.JSC$7796_incrementCounter=function(S){this.JSC$7796_incrementCounterBy(S,1,_.jO.apply(1,arguments))};
D1.prototype.JSC$7796_incrementCounterBy=function(S,p){var U=_.jO.apply(2,arguments),Y=i8Q(this,S);Y&&Y instanceof cdt&&(Y.JSC$7735_incrementCounterBy(p,U),vAH(this))};
D1.prototype.record=function(S,p){var U=_.jO.apply(2,arguments),Y=i8Q(this,S);Y&&Y instanceof SHt&&(Y.record(p,U),vAH(this))};
var $hI=function(S){for(var p=0;p<S.length;p++)S[p].clear()};_.nW=function(S,p,U){U=U===void 0?{}:U;p=Error.call(this,p);this.message=p.message;"stack"in p&&(this.stack=p.stack);this.code=S;this.metadata=U;this.name="RpcError";Object.setPrototypeOf(this,this.constructor.prototype)};
_.r(_.nW,Error);_.nW.prototype.toString=function(){var S="RpcError("+(B5q(this.code)||String(this.code))+")";this.message&&(S+=": "+this.message);return S};_.NZq=_.UX.JSON.parse;_.J2=_.UX.JSON.stringify;_.rn=_.UX.JSON.parse;_.BZI=function(S){switch(S){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 qHd=function(S){switch(S){case 200:case 201:case 202:case 204:case 206:case 304:case 1223:return!0;default:return!1}};var Aim,tud=function(){};
_.q_(tud,_.qrX);tud.prototype.createInstance=function(){return new XMLHttpRequest};
Aim=new tud;_.yf=function(S){_.OD.call(this);this.headers=new Map;this.JSC$7805_xmlHttpFactory_=S||null;this.JSC$7805_active_=!1;this.JSC$7805_xhr_=null;this.JSC$7805_lastUri_="";this.JSC$7805_lastErrorCode_=0;this.JSC$7805_lastError_="";this.inAbort_=this.inOpen_=this.inSend_=this.errorDispatched_=!1;this.timeoutInterval_=0;this.JSC$7805_timeoutId_=null;this.responseType_="";this.JSC$7805_withCredentials_=!1};
_.q_(_.yf,_.OD);var ciQ=/^https?$/i,S3d=["POST","PUT"],pEP=[],p3d=function(S,p,U,Y,L,I,V){var W=new _.yf;pEP.push(W);p&&W.listen("complete",p);W.listenOnce("ready",W.cleanupSend_);I&&(W.timeoutInterval_=Math.max(0,I));V&&(W.JSC$7805_withCredentials_=V);W.send(S,U,Y,L)};
_.yf.prototype.cleanupSend_=function(){this.dispose();_.NG(pEP,this)};
_.yf.prototype.send=function(S,p,U,Y){if(this.JSC$7805_xhr_)throw Error("Ea`"+this.JSC$7805_lastUri_+"`"+S);p=p?p.toUpperCase():"GET";this.JSC$7805_lastUri_=S;this.JSC$7805_lastError_="";this.JSC$7805_lastErrorCode_=0;this.errorDispatched_=!1;this.JSC$7805_active_=!0;this.JSC$7805_xhr_=this.createXhr();this.JSC$7805_xhr_.onreadystatechange=kx((0,_.RW)(this.onReadyStateChange_,this));try{this.inOpen_=!0,this.JSC$7805_xhr_.open(p,String(S),!0),this.inOpen_=!1}catch(V){UJt(this,V);return}S=U||"";U=new Map(this.headers);
if(Y)if(Object.getPrototypeOf(Y)===Object.prototype)for(var L in Y)U.set(L,Y[L]);else if(typeof Y.keys==="function"&&typeof Y.get==="function"){L=_.d(Y.keys());for(var I=L.next();!I.done;I=L.next())I=I.value,U.set(I,Y.get(I))}else throw Error("Fa`"+String(Y));Y=Array.from(U.keys()).find(function(V){return"content-type"==V.toLowerCase()});
L=_.UX.FormData&&S instanceof _.UX.FormData;!_.ou(S3d,p)||Y||L||U.set("Content-Type","application/x-www-form-urlencoded;charset=utf-8");p=_.d(U);for(Y=p.next();!Y.done;Y=p.next())U=_.d(Y.value),Y=U.next().value,U=U.next().value,this.JSC$7805_xhr_.setRequestHeader(Y,U);this.responseType_&&(this.JSC$7805_xhr_.responseType=this.responseType_);"withCredentials"in this.JSC$7805_xhr_&&this.JSC$7805_xhr_.withCredentials!==this.JSC$7805_withCredentials_&&(this.JSC$7805_xhr_.withCredentials=this.JSC$7805_withCredentials_);
try{this.JSC$7805_timeoutId_&&(clearTimeout(this.JSC$7805_timeoutId_),this.JSC$7805_timeoutId_=null),this.timeoutInterval_>0&&(this.JSC$7805_timeoutId_=setTimeout(this.timeout_.bind(this),this.timeoutInterval_)),this.inSend_=!0,this.JSC$7805_xhr_.send(S),this.inSend_=!1}catch(V){UJt(this,V)}};
_.yf.prototype.createXhr=function(){return this.JSC$7805_xmlHttpFactory_?this.JSC$7805_xmlHttpFactory_.createInstance():Aim.createInstance()};
_.yf.prototype.timeout_=function(){typeof uLR!="undefined"&&this.JSC$7805_xhr_&&(this.JSC$7805_lastError_="Timed out after "+this.timeoutInterval_+"ms, aborting",this.JSC$7805_lastErrorCode_=8,this.dispatchEvent("timeout"),this.abort(8))};
var UJt=function(S,p){S.JSC$7805_active_=!1;S.JSC$7805_xhr_&&(S.inAbort_=!0,S.JSC$7805_xhr_.abort(),S.inAbort_=!1);S.JSC$7805_lastError_=p;S.JSC$7805_lastErrorCode_=5;Y3P(S);L1j(S)},Y3P=function(S){S.errorDispatched_||(S.errorDispatched_=!0,S.dispatchEvent("complete"),S.dispatchEvent("error"))};
_.yf.prototype.abort=function(S){this.JSC$7805_xhr_&&this.JSC$7805_active_&&(this.JSC$7805_active_=!1,this.inAbort_=!0,this.JSC$7805_xhr_.abort(),this.inAbort_=!1,this.JSC$7805_lastErrorCode_=S||7,this.dispatchEvent("complete"),this.dispatchEvent("abort"),L1j(this))};
_.yf.prototype.disposeInternal=function(){this.JSC$7805_xhr_&&(this.JSC$7805_active_&&(this.JSC$7805_active_=!1,this.inAbort_=!0,this.JSC$7805_xhr_.abort(),this.inAbort_=!1),L1j(this,!0));_.yf.superClass_.disposeInternal.call(this)};
_.yf.prototype.onReadyStateChange_=function(){if(!this.isDisposed())if(this.inOpen_||this.inSend_||this.inAbort_)MOt(this);else this.onReadyStateChangeEntryPoint_()};
_.yf.prototype.onReadyStateChangeEntryPoint_=function(){MOt(this)};
var MOt=function(S){if(S.JSC$7805_active_&&typeof uLR!="undefined")if(S.inSend_&&_.KW(S)==4)setTimeout(S.onReadyStateChange_.bind(S),0);else if(S.dispatchEvent("readystatechange"),S.isComplete()){S.JSC$7805_active_=!1;try{if(S.isSuccess())S.dispatchEvent("complete"),S.dispatchEvent("success");else{S.JSC$7805_lastErrorCode_=6;try{var p=_.KW(S)>2?S.JSC$7805_xhr_.statusText:""}catch(U){p=""}S.JSC$7805_lastError_=p+" ["+S.getStatus()+"]";Y3P(S)}}finally{L1j(S)}}},L1j=function(S,p){if(S.JSC$7805_xhr_){S.JSC$7805_timeoutId_&&
(clearTimeout(S.JSC$7805_timeoutId_),S.JSC$7805_timeoutId_=null);
var U=S.JSC$7805_xhr_;S.JSC$7805_xhr_=null;p||S.dispatchEvent("ready");try{U.onreadystatechange=null}catch(Y){}}};
_.yf.prototype.isActive=function(){return!!this.JSC$7805_xhr_};
_.yf.prototype.isComplete=function(){return _.KW(this)==4};
_.yf.prototype.isSuccess=function(){var S=this.getStatus(),p;if(!(p=qHd(S))){if(S=S===0)S=zet(String(this.JSC$7805_lastUri_)),S=!ciQ.test(S);p=S}return p};
_.KW=function(S){return S.JSC$7805_xhr_?S.JSC$7805_xhr_.readyState:0};
_.M=_.yf.prototype;_.M.getStatus=function(){try{return _.KW(this)>2?this.JSC$7805_xhr_.status:-1}catch(S){return-1}};
_.M.getResponseText=function(){try{return this.JSC$7805_xhr_?this.JSC$7805_xhr_.responseText:""}catch(S){return""}};
_.M.getResponse=function(){try{if(!this.JSC$7805_xhr_)return null;if("response"in this.JSC$7805_xhr_)return this.JSC$7805_xhr_.response;switch(this.responseType_){case "":case "text":return this.JSC$7805_xhr_.responseText;case "arraybuffer":if("mozResponseArrayBuffer"in this.JSC$7805_xhr_)return this.JSC$7805_xhr_.mozResponseArrayBuffer}return null}catch(S){return null}};
_.M.getAllResponseHeaders=function(){return this.JSC$7805_xhr_&&_.KW(this)>=2?this.JSC$7805_xhr_.getAllResponseHeaders()||"":""};
_.M.getLastError=function(){return typeof this.JSC$7805_lastError_==="string"?this.JSC$7805_lastError_:String(this.JSC$7805_lastError_)};var Tdw=function(){};
Tdw.prototype.send=function(S,p,U){p=p===void 0?function(){}:p;
U=U===void 0?function(){}:U;
p3d(S.url,function(Y){Y=Y.target;Y.isSuccess()?p(Y.getResponseText()):U(Y.getStatus())},S.requestType,S.body,S.requestHeaders,S.timeoutMillis,S.withCredentials)};
Tdw.prototype.getTransmissionType=function(){return 1};var IOl=function(S,p){this.logger=S;this.event=p;this.startTime=zr()};
IOl.prototype.done=function(){this.logger.tH(this.event,zr()-this.startTime)};
var bR=function(){BD.apply(this,arguments);this.TEST_ONLY={getExperimentIds:function(){return[]}}};
_.r(bR,BD);var jl=function(S,p,U){var Y=zr();p=p();S.tH(U,zr()-Y);return p},eTE=function(){bR.apply(this,arguments)};
_.r(eTE,bR);_.M=eTE.prototype;_.M.fvi=function(){};
_.M.cJ=function(){};
_.M.tH=function(){};
_.M.logError=function(){};
_.M.aw=function(){};
_.M.dq9=function(){};
_.M.jxV=function(){};
_.M.yEG=function(){};
_.M.ePn=function(){};
var dJQ=function(S){bR.call(this);var p=this;this.logger=S;this.TEST_ONLY={cVy:function(){return p.logger},
getExperimentIds:function(){return p.logger.TEST_ONLY.getExperimentIds()}};
this.addOnDisposeCallback(function(){return void p.logger.dispose()})};
_.r(dJQ,bR);_.M=dJQ.prototype;_.M.update=function(S){this.logger.dispose();this.logger=S};
_.M.cJ=function(S){this.logger.cJ(S)};
_.M.tH=function(S,p){this.logger.tH(S,p)};
_.M.logError=function(S){this.logger.logError(S)};
_.M.aw=function(){this.logger.aw()};
_.M.dq9=function(S){this.logger.dq9(S)};
_.M.jxV=function(S){this.logger.jxV(S)};
_.M.yEG=function(S){this.logger.yEG(S)};
_.M.ePn=function(S){this.logger.ePn(S)};
_.M.fvi=function(S){this.logger.fvi(S)};
var VOm=function(S,p){_.hY.call(this);var U=this;this.callback=S;this.pqa=p;this.rqc=-p;this.addOnDisposeCallback(function(){return void clearTimeout(U.timer)})};
_.r(VOm,_.hY);var Tcq=function(S){if(S.timer===void 0){var p=Math.max(0,S.rqc+S.pqa-zr());S.timer=setTimeout(function(){try{S.callback()}finally{S.rqc=zr(),S.timer=void 0}},p)}},W1q=function(S,p){bR.call(this);
this.metrics=S;this.sQ=p};
_.r(W1q,bR);_.M=W1q.prototype;_.M.fvi=function(S){this.metrics.z03.record(S,this.sQ)};
_.M.cJ=function(S){this.metrics.eventCount.increment(S,this.sQ)};
_.M.tH=function(S,p){this.metrics.kfq.record(p,S,this.sQ)};
_.M.logError=function(S){this.metrics.errorCount.increment(S,this.sQ)};
_.M.dq9=function(S){this.metrics.qV5.increment(S,this.sQ)};
_.M.jxV=function(S){this.metrics.wwZ.increment(S,this.sQ)};
_.M.yEG=function(S){this.metrics.ma8.increment(S,this.sQ)};
var Qz=function(S,p){p=p===void 0?[]:p;var U={sQ:S.sQ||"_",xai:S.xai||[],eJU:S.eJU|0,destinationUrl:S.destinationUrl,mGT:S.mGT||function(){},
gF:S.gF||function(I,V){return s8N(I,V,U.mGT,U.destinationUrl)}},Y=U.gF("49",U.xai.concat(p));
W1q.call(this,Mkd(Y),U.sQ);var L=this;this.TEST_ONLY={getExperimentIds:function(){return L.options.xai.concat(L.het).sort(function(I,V){return I-V})}};
this.options=U;this.service=Y;this.ryt=!S.gF;this.flushDebouncer=new VOm(function(){return void L.service.snapshotAndFlush()},U.eJU);
this.addOnDisposeCallback(function(){L.flushDebouncer.dispose();L.ryt&&L.service.dispose()});
(this.het=p.slice()).sort(_.Lc)};
_.r(Qz,W1q);Qz.prototype.ePn=function(S){var p=this;S=S.slice();S.sort(_.Lc);_.dm(S,this.het)||(this.flushDebouncer.dispose(),this.ryt&&this.service.dispose(),this.service=this.options.gF("49",this.options.xai.concat(S)),this.flushDebouncer=new VOm(function(){return void p.service.snapshotAndFlush()},this.options.eJU),this.metrics=Mkd(this.service),this.het=S)};
Qz.prototype.aw=function(){Tcq(this.flushDebouncer)};var T2N=function(S){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.UH(S)};
_.r(T2N,_.a5);_.WMk=function(S){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.UH(S)};
_.r(_.WMk,_.a5);var vI=function(S){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.UH(S,0,vI.messageId)};
_.r(vI,_.a5);var Ohm=_.Uhw(vI);vI.messageId="bfkj";var uaw=function(S){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.UH(S)};
_.r(uaw,_.a5);var klj=function(S){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.UH(S)};
_.r(klj,_.a5);var Hhl=_.SO(klj);_.MI=function(){var S=this;this.promise=new Promise(function(p,U){S.resolve=p;S.reject=U})};_.rM=function(S){_.hY.call(this);var p=this;this.fI9=Math.floor(Math.random()*200);this.kwm=new klj;if("challenge"in S&&Ohm(S.challenge)){var U=_.jR(S.challenge,4,void 0,xm);var Y=_.jR(S.challenge,5,void 0,xm);_.jR(S.challenge,7,void 0,xm)&&(this.kwm=Hhl(_.jR(S.challenge,7,void 0,xm)))}else U=S.program,Y=S.globalName;this.addOnDisposeCallback(function(){var G,X,Z;return _.T(function(l){if(l.nextAddress==1)return _.k(l,p.ofV,2);G=l.yieldResult;X=G.rGt;(Z=X)==null||Z();_.OV(l)})});
this.logger=gjw(S.lG||{},this.kwm,S.aep);_.Hm(this,this.logger);var L=new _.MI;this.ofV=L.promise;this.logger.cJ("t");var I=this.logger.share(),V=new IOl(I,"t"),W=function(G,X,Z,l){if(!p.logger.isDisposed()){var a="k";X?a="h":Z&&(a="u");a!=="k"?l!==0&&(p.logger.cJ(a),p.logger.tH(a,G)):p.fI9<=0?(p.logger.cJ(a),p.logger.tH(a,G),p.fI9=Math.floor(Math.random()*200)):p.fI9--}},O=function(G,X,Z,l){Promise.resolve().then(function(){V.done();
I.aw();I.dispose();L.resolve({r0q:G,rGt:X,wrZ:Z,suc:l})})};
if(!_.UX[Y])throw this.logger.logError(25),Error("Ga");if(!_.UX[Y].a)throw this.logger.logError(26),Error("Ha");try{var D=_.UX[Y].a;Y=[];for(var z=[],Q=wmN(this.kwm),J=0;J<Q.length;J++)Y.push(Q[J]),z.push(1);var K=l1R(this.kwm);for(Q=0;Q<K.length;Q++)Y.push(K[Q]),z.push(2);this.yvA=_.d(D(U,O,!0,S.dbZ,W,[Y,z],_.jR(this.kwm,5))).next().value;this.iaC=L.promise.then(function(){})}catch(G){throw this.logger.logError(28),G;
}};
_.r(_.rM,_.hY);_.rM.prototype.snapshot=function(S){if(this.isDisposed())throw Error("Ia");this.logger.cJ("n");var p=this.logger.share();return this.ofV.then(function(U){var Y=U.r0q;return new Promise(function(L){var I=new IOl(p,"n");Y(function(V){I.done();p.fvi(V.length);p.aw();p.dispose();L(V)},[S.rM,
S.vH6,S.l9N,S.bQ5])})})};
_.DJl=function(S,p){if(S.isDisposed())throw Error("Ia");S.logger.cJ("n");var U=jl(S.logger,function(){return S.yvA([p.rM,p.vH6,p.l9N,p.bQ5])},"n");
S.logger.fvi(U.length);S.logger.aw();return U};
_.rM.prototype.xc6=function(S){this.ofV.then(function(p){var U;(U=p.wrZ)==null||U(S)})};
_.rM.prototype.vK6=function(S,p){return this.ofV.then(function(U){var Y;return(Y=U.suc)==null?void 0:Y(S,p,!1)})};
_.rM.prototype.v9G=function(){return this.logger.share()};var zfq=function(){this.cOk={};this.nyk=null},QKt=function(){zfq.instance||(zfq.instance=new zfq);
return zfq.instance},JAl=function(S,p){return nqe(S,_.Sa(p,T2N,1,xm),_.Sa(p,_.WMk,2,xm),_.jR(p,3,void 0,xm))},nqe=function(S,p,U,Y){if(!p&&!U)return Promise.resolve();
if(!Y)return agR(p,U);var L;(L=S.cOk)[Y]||(L[Y]=new Promise(function(I,V){agR(p,U).then(function(){S.nyk=Y;I()},function(W){delete S.cOk[Y];
V(W)})}));
return S.cOk[Y]};var yAd=function(S){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.UH(S)};
_.r(yAd,_.a5);var K1Q=function(S,p){return _.$9(S,1,p)},bhd=function(S,p){return _.$9(S,2,p)};var GB=function(S){_.hY.call(this);var p=this;this.options=S;this.t6B=new _.MI;this.iaC=this.t6B.promise;this.flA=new _.MI;this.pNh=1;this.pnR=new _.MI;this.iQG=[];this.a79=S.a79||function(){};
this.logger=new dJQ(gjw(S.lG||{}));jKd(this,S.er,S.q1g,S.sJp,S.keK,Object.assign({},rAj,S.iRT||{}));this.addOnDisposeCallback(function(){return void Glc(p)})};
_.r(GB,_.hY);GB.prototype.snapshot=function(S){var p=this;return _.T(function(U){switch(U.nextAddress){case 1:if(p.isDisposed())throw Error("Ia");if(p.ze||p.pGs){U.jumpTo(2);break}return _.k(U,p.flA.promise,2);case 2:if(!p.ze){U.jumpTo(4);break}return _.k(U,p.ze.snapshot(S),5);case 5:return U.return(U.yieldResult);case 4:throw p.pGs;}})};
var hfP=function(S){var p;return _.T(function(U){if(S.isDisposed())throw Error("Ia");(p=S.cF)!=null&&(p.endTimeMs=0,p.resolver(1));return _.k(U,S.pnR.promise,0)})},Glc=function(S){S.pGs=Error("Ka");
S.flA.resolve();a1w(S.t6B.promise);S.t6B.reject(Error("Ka"));S.logger.dispose();Promise.all(S.iQG).then(function(){var U;return _.T(function(Y){(U=S.ze)==null||U.dispose();S.ze=void 0;_.OV(Y)})});
S.iQG=[];var p;(p=S.cF)!=null&&(p.endTimeMs=0,p.resolver(1));a1w(S.pnR.promise);S.pnR.reject(Error("Ka"))};
GB.prototype.xc6=function(S){var p,U;(p=this.ze)==null||(U=p.xc6)==null||U.call(p,S)};
GB.prototype.vK6=function(S,p){var U,Y,L;return(L=(U=this.ze)==null?void 0:(Y=U.vK6)==null?void 0:Y.call(U,S,p))!=null?L:Promise.resolve()};
var RfP=function(S,p){var U=S.a79;S.a79=function(){U();p()}},F1l=function(S,p){S.isDisposed()||(S.ze=p,S.logger.update(p.v9G()),S.flA.resolve(),S.t6B.resolve(void 0),S.a79())};
GB.prototype.handleError=function(S){if(!this.isDisposed()){this.pGs=S;this.flA.resolve();var p,U;(U=(p=this.options).ySH)==null||U.call(p,S)}};
var XEj=function(S,p){p&&(Promise.all(S.iQG).then(function(){return void p.dispose()}),S.iQG=[])},h2=function(S,p){S.pNh=p;
var U,Y;(Y=(U=S.options).zP8)==null||Y.call(U,p)},PxE=function(S){S.isDisposed()||(S.pnR.resolve(),S.pnR=new _.MI)},jKd=function(S,p,U,Y,L,I){Y=Y===void 0?QKt():Y;
L=L===void 0?Promise.resolve(void 0):L;var V,W,O,D,z,Q,J,K,G,X,Z,l;_.T(function(a){switch(a.nextAddress){case 1:return _.k(a,0,3);case 3:W=null;if(!V){a.jumpTo(6);break}h2(S,7);_.M2(a,7);return _.k(a,b9(V.snapshot({}),I.u5a,function(){return Promise.resolve("E:CTO")}),9);
case 9:W=a.yieldResult;_.CA(a,6);break;case 7:_.W4(a),W="E:UCE";case 6:O=void 0,D=V?I.rDO:I.cDq,z=new Tr(D,I.ivr,I.uoO,I.vBq),Q=1;case 10:if(!(Q<=I.maxAttempts)){a.jumpTo(12);break}if(Q===1){a.jumpTo(13);break}h2(S,0);S.cF=new Zhc(z.getValue(),I.e0c,I.ida);return _.k(a,S.cF.promise,14);case 14:J=a.yieldResult,S.cF=void 0,J===1?(Q=1,z.reset()):E5Q(z);case 13:_.M2(a,15);K=void 0;if(U){K=U;a.jumpTo(17);break}h2(S,5);G=Y.nyk;return _.k(a,b9(sKq(p,G,W),I.inq,function(){return Promise.reject(Error("La"))}),
18);
case 18:K=a.yieldResult;case 17:return h2(S,3),_.k(a,b9(JAl(Y,K),I.hSr,function(){return Promise.reject(Error("Ma"))}),19);
case 19:return h2(S,8),_.k(a,L,20);case 20:return X=new _.rM({challenge:K,lG:S.options.lG,dbZ:S.options.dbZ}),_.k(a,b9(X.iaC,I.m3v,function(){return Promise.reject(Error("Na"))}),21);
case 21:O=X;a.jumpTo(12);break;case 15:Z=_.W4(a),S.handleError(Z),PxE(S);case 11:Q++;a.jumpTo(10);break;case 12:if(S.isDisposed()){a.jumpTo(5);break}O&&(U=void 0,XEj(S,V),V=O,F1l(S,O),PxE(S));h2(S,2);S.cF=new Zhc(I.wps,I.e0c,I.ida);return _.k(a,S.cF.promise,22);case 22:S.cF=void 0;if(S.isDisposed()){a.jumpTo(5);break}a.jumpTo(3);break;case 5:(l=V)==null||l.dispose(),_.OV(a)}})};
GB.prototype.v9G=function(){return this.logger.share()};
var rAj={wps:432E5,e0c:3E5,ida:10,u5a:1E4,inq:3E4,hSr:3E4,m3v:6E4,cDq:1E3,rDO:6E4,ivr:6E5,uoO:.25,vBq:2,maxAttempts:10},Zhc=function(S,p,U){var Y=this;this.endTimeMs=Date.now()+S;this.promise=new Promise(function(I){Y.resolver=I});
var L=function(){var I=Y.endTimeMs-Date.now();I<=U?Y.resolver(0):setTimeout(L,Math.min(I,p))};
L()};var efq,xxw=(efq=Math.imul)!=null?efq:function(S,p){return S*p|0},j$=[196,
200,224,18],Rw=function(S,p,U){U=U===void 0?[]:U;this.maxItems=S;this.xC=p===void 0?0:p;this.kV=U},gqw=function(S){var p=globalThis.sessionStorage.getItem("iU5q-!O9@$");
if(!p)return new Rw(S);var U=p.split(",");if(U.length<2)return globalThis.sessionStorage.removeItem("iU5q-!O9@$"),new Rw(S);p=U.slice(1);p.length===1&&p[0]===""&&(p=[]);U=Number(U[0]);return isNaN(U)||U<0||U>p.length?(globalThis.sessionStorage.removeItem("iU5q-!O9@$"),new Rw(S)):new Rw(S,U,p)};
Rw.prototype.serialize=function(){return String(this.xC)+","+this.kV.join()};
Rw.prototype.insert=function(S,p){var U=void 0;if(this.kV[this.xC]!==S){var Y=this.kV.indexOf(S);Y!==-1?(this.kV.splice(Y,1),Y<this.xC&&this.xC--,this.kV.splice(this.xC,0,S)):(U=this.kV[this.xC],this.kV[this.xC]=S)}this.xC=(this.xC+1)%this.maxItems;S=fgk("iU5q-!O9@$",this.serialize());U&&S&&p(U);return S};
var uqc=function(S,p){this.logger=p;try{var U=globalThis.sessionStorage&&!!globalThis.sessionStorage.getItem&&!!globalThis.sessionStorage.setItem&&!!globalThis.sessionStorage.removeItem}catch(Y){U=!1}U&&(this.index=gqw(S))},wEe=function(S,p,U,Y,L){var I=S.index?jl(S.logger,function(){return vjX(S.index,mxw(p),U,Y,L)},"W"):"u";
S.logger.yEG(I)},lOe=function(S,p,U){var Y=_.d(S.index?jl(S.logger,function(){return $xE(mxw(p),U)},"R"):["u"]),L=Y.next().value;
Y=Y.next().value;S.logger.jxV(L);return Y};var aOd={toString:function(S){var p=[],U=0;S-=-2147483648;p[U++]="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ".charAt(S%52);for(S=Math.floor(S/52);S>0;)p[U++]="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789".charAt(S%62),S=Math.floor(S/62);return p.join("")}};var xJj=function(S){S=fOm(S);for(var p=2654435769,U=2654435769,Y=314159265,L=S.length,I=L,V=0,W=function(){p-=U;p-=Y;p^=Y>>>13;U-=Y;U-=p;U^=p<<8;Y-=p;Y-=U;Y^=U>>>13;p-=U;p-=Y;p^=Y>>>12;U-=Y;U-=p;U^=p<<16;Y-=p;Y-=U;Y^=U>>>5;p-=U;p-=Y;p^=Y>>>3;U-=Y;U-=p;U^=p<<10;Y-=p;Y-=U;Y^=U>>>15};I>=12;I-=12,V+=12)p+=Cxe(S,V),U+=Cxe(S,V+4),Y+=Cxe(S,V+8),W();
Y+=L;switch(I){case 11:Y+=S[V+10]<<24;case 10:Y+=S[V+9]<<16;case 9:Y+=S[V+8]<<8;case 8:U+=S[V+7]<<24;case 7:U+=S[V+6]<<16;case 6:U+=S[V+5]<<8;case 5:U+=S[V+4];case 4:p+=S[V+3]<<24;case 3:p+=S[V+2]<<16;case 2:p+=S[V+1]<<8;case 1:p+=S[V]}W();return aOd.toString(Y)},fOm=function(S){for(var p=[],U=0;U<S.length;U++)p.push(S.charCodeAt(U));
return p},Cxe=function(S,p){return S[p]+(S[p+1]<<8)+(S[p+2]<<16)+(S[p+3]<<24)};var EqI,F8=function(S){_.hY.call(this);this.logger=S;this.uqh=new _.MI;this[EqI]=this.dispose};
_.r(F8,_.hY);var mJj=function(S,p){var U=setTimeout(function(){S.uqh.resolve()},p);
S.addOnDisposeCallback(function(){return void clearTimeout(U)})};
F8.prototype.sO=function(S,p){var U=this.fC(S);p==null||p(U);return jl(this.logger,function(){return _.Ad(U,2)},this.vbi)};
var oqd=function(S,p,U,Y){return jl(S.logger,function(){return U?S.sO(p,Y):S.fC(p,Y)},S.t6)};
EqI=Symbol.dispose;var vqc=function(S,p,U,Y){F8.call(this,S);this.srq=p;this.fqq=U;this.t6="m";this.vbi="x";this.tza=0;mJj(this,Y)};
_.r(vqc,F8);vqc.prototype.fC=function(S,p){var U=this;this.logger.cJ(this.t6);++this.tza>=this.fqq&&this.uqh.resolve();var Y=S();S=jl(this.logger,function(){return U.srq(Y)},"C");
if(S===void 0)throw new i1(17,"YNJ:Undefined");if(!(S instanceof Uint8Array))throw new i1(18,"ODM:Invalid");p==null||p(S);return S};
var $Jq=function(S,p,U){F8.call(this,S);this.vgq=p;this.t6="f";this.vbi="z";mJj(this,U)};
_.r($Jq,F8);$Jq.prototype.fC=function(){return this.vgq};
var ihP=function(S,p,U){F8.call(this,S);this.s8X=p;this.t6="w";this.vbi="z";mJj(this,U)};
_.r(ihP,F8);ihP.prototype.fC=function(){var S=this;return jl(this.logger,function(){return _.Ol(S.s8X)},"d")};
ihP.prototype.sO=function(){return this.s8X};
var Nce=function(S,p){F8.call(this,S);this.error=p;this.t6="e";this.vbi="y"};
_.r(Nce,F8);var Bcd=function(S,p){var U=(p(S.error.message)+":"+p(S.error.stack)).substring(0,2048);p=U.length+1;U=iSe(U);var Y=new Uint8Array(4+U.length);Y.set([42,p&127|128,p>>7,S.error.code]);Y.set(U,4);return Y};
Nce.prototype.fC=function(){if(this.rLk)return this.rLk;this.rLk=Bcd(this,function(S){return"_"+xJj(S)});
return Bcd(this,function(S){return S})};
var q3w=function(S,p,U){F8.call(this,S);this.u1X=p;this.clientState=U;this.t6="S";this.vbi="q"};
_.r(q3w,F8);q3w.prototype.fC=function(){var S=Math.floor(Date.now()/1E3),p=[Math.random()*255,Math.random()*255],U=p.concat([this.u1X&255,this.clientState],[S>>24&255,S>>16&255,S>>8&255,S&255]);S=new Uint8Array(2+U.length);S[0]=34;S[1]=U.length;S.set(U,2);U=S.subarray(2);for(var Y=p=p.length;Y<U.length;++Y)U[Y]^=U[Y%p];this.logger.dq9(this.clientState);return S};var AAE={aP8:3E4,pGM:2E4},X8=function(S){_.hY.call(this);var p=this;this.pcC=new _.MI;this.pmU=0;this.yX=void 0;this.state=2;this.rX=S.rX;this.er=S.er;this.iRT=Object.assign({},AAE,S.iRT||{});this.logger=S.rX.v9G();var U;this.onError=(U=S.onError)!=null?U:function(){};
this.iy5=S.iy5||!1;if(tOw(S)){var Y=this.rX;this.eY5=function(){return hfP(Y).catch(function(V){V=p.reportError(new i1(p.ki?20:32,"TRG:Disposed",V));p.yX=V;var W;(W=p.ki)==null||W.dispose();p.ki=void 0;p.pcC.reject(V)})};
RfP(Y,function(){return void cAQ(p)});
Y.pNh===2&&cAQ(this)}else this.eY5=S.aTt,cAQ(this);var L=this.logger.share();L.cJ("o");var I=new IOl(L,"o");this.pcC.promise.then(function(){I.done();L.aw();L.dispose()},function(){return void L.dispose()});
this.addOnDisposeCallback(function(){p.ki?(p.ki.dispose(),p.ki=void 0):p.yX?p.logger.aw():(p.yX=p.reportError(new i1(32,"TNP:Disposed")),p.logger.aw(),p.pcC.reject(p.yX))});
_.Hm(this,this.logger)};
_.r(X8,_.hY);X8.prototype.ueB=function(){return this.pcC.promise};
var SVd=function(S,p){if(!(p instanceof i1))if(p instanceof _.nW){var U=Error(p.toString());U.stack=p.stack;p=new i1(11,"EBH:Error",U)}else p=new i1(12,"BSO:Unknown",p);return S.reportError(p)},cAQ=function(S){var p,U,Y,L,I,V,W,O,D,z,Q,J,K,G,X;
return _.T(function(Z){switch(Z.nextAddress){case 1:p=void 0;S.pmU++;U=new _.MI;S.rX instanceof GB&&S.rX.iQG.push(U.promise);if(!S.iy5){Z.jumpTo(2);break}Y=new _.MI;setTimeout(function(){return void Y.resolve()});
return _.k(Z,Y.promise,2);case 2:return L=S.logger.share(),_.M2(Z,4,5),S.state=5,I={},V=[],_.k(Z,b9(S.rX.snapshot({rM:I,l9N:V}),S.iRT.pGM,function(){return Promise.reject(new i1(15,"MDA:Timeout"))}),7);
case 7:W=Z.yieldResult;if(S.isDisposed())throw new i1(S.ki?20:32,"MDA:Disposed");O=V[0];S.state=6;return _.k(Z,b9(p4q(S.er,W),S.iRT.aP8,function(){return Promise.reject(new i1(10,"BWB:Timeout"))}),8);
case 8:D=Z.yieldResult;if(S.isDisposed())throw new i1(S.ki?20:32,"BWB:Disposed");S.state=7;p=jl(L,function(){var a=U2t(S,D,U,O);a.uqh.promise.then(function(){return void S.eY5()});
return a},"i");
case 5:_.IO(Z);L.dispose();_.T7(Z,6);break;case 4:z=_.W4(Z);(Q=p)==null||Q.dispose();if(!S.yX){J=SVd(S,z);U.resolve();var l;if(l=S.rX instanceof GB&&S.pmU<2)a:if(z instanceof i1)l=z.code!==32&&z.code!==20&&z.code!==10;else{if(z instanceof _.nW)switch(z.code){case 2:case 13:case 14:case 4:break;default:l=!1;break a}l=!0}if(l)return K=(1+Math.random()*.25)*(S.ki?6E4:1E3),G=setTimeout(function(){return void S.eY5()},K),S.addOnDisposeCallback(function(){return void clearTimeout(G)}),Z.return();
S.yX=J}L.logError(S.ki?13:14);S.pcC.reject(S.yX);return Z.return();case 6:S.state=8,S.pmU=0,(X=S.ki)==null||X.dispose(),S.ki=p,S.pcC.resolve(),_.OV(Z)}})},U2t=function(S,p,U,Y){var L=A$G(p,2)*1E3;
if(L<=0)throw new i1(31,"TTM:Invalid");if(_.jR(p,4))return new ihP(S.logger,_.jR(p,4),L);if(!A$G(p,3))return new $Jq(S.logger,gww(_.Ox(p,1)),L);if(!Y)throw new i1(4,"PMD:Undefined");Y=Y(gww(_.Ox(p,1)));if(!(Y instanceof Function))throw new i1(16,"APF:Failed");S.fZ5=Math.floor((Date.now()+L)/1E3);S=new vqc(S.logger,Y,A$G(p,3),L);S.addOnDisposeCallback(function(){return void U.resolve()});
return S};
X8.prototype.fC=function(S){return YVE(this,Object.assign({},S),!1)};
X8.prototype.sO=function(S){return YVE(this,Object.assign({},S),!0)};
X8.prototype.hGk=function(S){if(S>150)return!1;try{return this.cache=new uqc(S,this.logger),!0}catch(p){return this.reportError(new i1(22,"GBJ:init",p)),!1}};
X8.prototype.reportError=function(S){this.logger.logError(S.code);this.onError(S);return S};
var LPw=function(S,p){p=p instanceof i1?p:new i1(5,"TVD:error",p);return S.reportError(p)},YVE=function(S,p,U){try{if(S.isDisposed())throw new i1(21,"BNT:disposed");
if(!S.ki&&S.yX)throw S.yX;var Y,L;return(L=(Y=Moe(S,p,U))!=null?Y:Ioj(S,p,U))!=null?L:d2I(S,p,U)}catch(I){if(!p.f54)throw LPw(S,I);return VoE(S,U,I)}},Moe=function(S,p,U){var Y;
return(Y=S.ki)==null?void 0:oqd(Y,function(){return T3I(S,p)},U,function(L){var I;
if(S.ki instanceof vqc&&((I=p.tD)==null?0:I.lHH))try{var V;(V=S.cache)==null||wEe(V,T3I(S,p),L,p.tD.qxU,S.fZ5-120)}catch(W){S.reportError(new i1(24,"ELX:write",W))}})},Ioj=function(S,p,U){var Y;
if((Y=p.tD)!=null&&Y.jd4)try{var L,I=(L=S.cache)==null?void 0:lOe(L,T3I(S,p),p.tD.qxU);return I?U?jl(S.logger,function(){return _.Ad(I,2)},"a"):I:void 0}catch(V){S.reportError(new i1(23,"RXO:read",V))}},d2I=function(S,p,U){var Y={stack:[],
error:void 0,hasError:!1};try{if(!p.tIh)throw new i1(29,"SDF:notready");return oqd(MDw(Y,new q3w(S.logger,0,S.state)),function(){return T3I(S,p)},U)}catch(L){Y.error=L,Y.hasError=!0}finally{TyX(Y)}},VoE=function(S,p,U){var Y={stack:[],
error:void 0,hasError:!1};try{var L=LPw(S,U);return oqd(MDw(Y,new Nce(S.logger,L)),function(){return[]},p)}catch(I){Y.error=I,Y.hasError=!0}finally{TyX(Y)}},T3I=function(S,p){return p.qhV?p.qhV:p.rM?jl(S.logger,function(){return p.qhV=iSe(p.rM)},"c"):[]},tOw=function(S){return oP(function(p){if(!LS(p))return!1;
for(var U=_.d(Object.entries(S)),Y=U.next();!Y.done;Y=U.next()){var L=_.d(Y.value);Y=L.next().value;L=L.next().value;if(!(Y in p)){if(L.isOptionalGuard_doNotManuallySetPrettyPlease===!0)continue;return!1}if(!L(p[Y]))return!1}return!0})}({rX:function(S){return oP(function(p){return p instanceof S})}(GB)},"");var WPP=function(){var S=_.pH();this.JSC$7920_streamzService=S;S.addNewCounter("/client_streamz/youtube/web/debug/browser_cookie_setting",L2("cookie_enabled"),L2("cookie_3p_enabled"),_.IW("browser"))};
WPP.prototype.increment=function(S,p,U){this.JSC$7920_streamzService.JSC$7796_incrementCounter("/client_streamz/youtube/web/debug/browser_cookie_setting",S,p,U)};
var Hje=function(){var S=_.pH();this.JSC$7944_streamzService=S;S.addNewCounter("/client_streamz/youtube/identity/stickiness/reload",Md("tick"),L2("from_st_cookie"))};
Hje.prototype.increment=function(S,p){this.JSC$7944_streamzService.JSC$7796_incrementCounter("/client_streamz/youtube/identity/stickiness/reload",S,p)};
var Oum=function(){var S=_.pH();this.JSC$7950_streamzService=S;S.addNewCounter("/client_streamz/youtube/identity/high_frequency_cookie_rotation",_.IW("status"))};
Oum.prototype.increment=function(S){this.JSC$7950_streamzService.JSC$7796_incrementCounter("/client_streamz/youtube/identity/high_frequency_cookie_rotation",S)};
var k7m=function(){var S=_.pH();this.JSC$7953_streamzService=S;S.addNewCounter("/client_streamz/youtube/ads/desktop_masthead",_.IW("stage"),L2("is_using_ytd_player"),L2("has_expandable_tiles"))};
k7m.prototype.increment=function(S,p,U){this.JSC$7953_streamzService.JSC$7796_incrementCounter("/client_streamz/youtube/ads/desktop_masthead",S,p,U)};
var Huj=function(){var S=_.pH();this.JSC$7956_streamzService=S;S.addNewCounter("/client_streamz/youtube/web/response_signature",_.IW("check_status"))};
Huj.prototype.increment=function(S){this.JSC$7956_streamzService.JSC$7796_incrementCounter("/client_streamz/youtube/web/response_signature",S)};
var D2w=function(){var S=_.pH();this.JSC$7959_streamzService=S;S.addNewCounter("/client_streamz/youtube/web/e_sig_log",_.IW("sig"),Md("de"))};
D2w.prototype.increment=function(S,p){this.JSC$7959_streamzService.JSC$7796_incrementCounter("/client_streamz/youtube/web/e_sig_log",S,p)};
var zzq=function(){var S=_.pH();this.JSC$7962_streamzService=S;S.addNewCounter("/client_streamz/youtube/web/e_sig_en",_.IW("sig"),Md("de"))};
zzq.prototype.increment=function(S,p){this.JSC$7962_streamzService.JSC$7796_incrementCounter("/client_streamz/youtube/web/e_sig_en",S,p)};
_.QOt=function(){var S=_.pH();this.JSC$7965_streamzService=S;S.addNewCounter("/client_streamz/youtube/web/enforcement_intent",_.IW("action"))};
_.QOt.prototype.increment=function(S){this.JSC$7965_streamzService.JSC$7796_incrementCounter("/client_streamz/youtube/web/enforcement_intent",S)};var P3=window;var naH=(new Date).getTime();var J3q=function(S){this.servicePromise_=S;S.then((0,_.RW)(function(){},this),function(){},this)},y3m=function(S,p,U){S.servicePromise_.then(function(Y){var L=Y[p];
if(!L)throw Error("Oa`"+p);return L.apply(Y,U)})},jOq=function(S,p,U){for(var Y=Array(arguments.length-2),L=2;L<arguments.length;L++)Y[L-2]=arguments[L];
L=KPl(S,p).then(function(I){return I.apply(null,Y)},function(I){I=Error("Pa`"+p+"`"+S,{cause:I});
delete buH[p];return _.jV(I)});
return new J3q(L)},buH={},KPl=function(S,p){var U=buH[p];
if(U)return U;U=(U=_.ad(p))?_.Mw(U):(new _.O9(function(Y,L){var I=(new Dx(document)).createElement("SCRIPT");I.async=!0;_.fh(I,_.dc(bre(S)));I.onload=I.onreadystatechange=function(){I.readyState&&I.readyState!="loaded"&&I.readyState!="complete"||Y()};
I.onerror=function(V){L(Error("Qa`"+p+"`"+S,{cause:V}))};
(document.head||document.getElementsByTagName("head")[0]).appendChild(I)})).then(function(){var Y=_.ad(p);
if(!Y)throw Error("Ra`"+p+"`"+S);return Y});
return buH[p]=U};var r3w={GOOGLE:"https://www.google.com",SUPPORT:"https://support.google.com",PLAY:"https://play.google.com"},hzH=function(){var S=this;this.rsaForList=[];this.rsaForPromises=[];this.initialize=Ndq(function(){return _.T(function(p){if(p.nextAddress==1)return typeof document==="undefined"||document.requestStorageAccessFor===void 0||navigator.permissions===void 0||navigator.permissions.query===void 0||location.hostname.match(".+\\.google\\.com$")?p.return(Promise.resolve()):_.k(p,G7Q(S),2);S.rsaForList.length>
0&&document.addEventListener("click",S.requestAccessForHelpPanel);_.OV(p)})});
this.requestAccessForHelpPanel=function(){if(!(S.rsaForPromises.length>0)){for(var p=_.d(S.rsaForList),U=p.next();!U.done;U=p.next()){U=U.value;try{S.rsaForPromises.push(document.requestStorageAccessFor(U))}catch(Y){}}Promise.all(S.rsaForPromises).then(function(){}).catch(function(){}).finally(function(){S.reset()})}}};
hzH.prototype.reset=function(){document.removeEventListener("click",this.requestAccessForHelpPanel)};
var G7Q=function(S){var p,U,Y,L;return _.T(function(I){switch(I.nextAddress){case 1:p=_.d(Object.values(r3w)),U=p.next();case 2:if(U.done){I.jumpTo(0);break}Y=U.value;_.M2(I,5);return _.k(I,navigator.permissions.query({name:"top-level-storage-access",requestedOrigin:Y}),7);case 7:L=I.yieldResult;L.state!=="granted"&&S.rsaForList.push(Y);_.CA(I,3);break;case 5:_.W4(I);I.jumpTo(0);break;case 3:U=p.next(),I.jumpTo(2)}})};(new hzH).initialize();var Rzl=function(S){this.JSC$7979_loader_=S};
Rzl.prototype.startHelp=function(S){y3m(this.JSC$7979_loader_,"startHelp",arguments)};
Rzl.prototype.JSC$7981_loadChatSupport=function(S){y3m(this.JSC$7979_loader_,"loadChatSupport",arguments)};
var X4w=function(S,p){p=p||{};S=jOq(FPw,"help.service.Lazy.create",S,{apiKey:p.apiKey||p.apiKey,asxUiUri:p.asxUiUri||p.asxUiUri,environment:p.environment||p.environment,flow:p.flow||p.flow,frdProductData:p.frdProductData||p.frdProductData,frdProductDataSerializedJspb:p.frdProductDataSerializedJspb||p.frdProductDataSerializedJspb,helpCenterPath:p.helpCenterPath||p.helpCenterPath,locale:p.locale||p.locale||"en-US".replace(/-/g,"_"),nonce:p.nonce||p.nonce,productData:p.productData||p.productData,receiverUri:p.receiverUri||
p.receiverUri,renderApiUri:p.renderApiUri||p.renderApiUri,theme:p.theme||p.theme,window:p.window||p.window});return new Rzl(S)},FPw=new uQ(KsG,"https://www.gstatic.com/feedback/js/help/prod/service/lazy.min.js");var PVl=function(S){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.UH(S)};
_.r(PVl,_.a5);var Zuc=_.SO(PVl);_.sOe=new function(S,p,U,Y){this.configType=S;this.flagName=U;this.defaultValue=Y;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 gam=function(){this.retriever=_.tW().resolve(ezl)};Gr(Node);Gr(Element);var u5c=Gr(HTMLElement);Gr(SVGElement);var w4m,loH,el,aoQ;w4m=function(S){return typeof S.className=="string"?S.className:S.getAttribute&&S.getAttribute("class")||""};
loH=function(S){return S.classList?S.classList:w4m(S).match(/\S+/g)||[]};
_.ZS=function(S,p){typeof S.className=="string"?S.className=p:S.setAttribute&&S.setAttribute("class",p)};
_.sD=function(S,p){return S.classList?S.classList.contains(p):_.ou(loH(S),p)};
_.vX=function(S,p){if(S.classList)S.classList.add(p);else if(!_.sD(S,p)){var U=w4m(S);_.ZS(S,U+(U.length>0?" "+p:p))}};
el=function(S,p){if(S.classList)Array.prototype.forEach.call(p,function(L){_.vX(S,L)});
else{var U={};Array.prototype.forEach.call(loH(S),function(L){U[L]=!0});
Array.prototype.forEach.call(p,function(L){U[L]=!0});
p="";for(var Y in U)p+=p.length>0?" "+Y:Y;_.ZS(S,p)}};
_.ms=function(S,p){S.classList?S.classList.remove(p):_.sD(S,p)&&_.ZS(S,Array.prototype.filter.call(loH(S),function(U){return U!=p}).join(" "))};
aoQ=function(S,p){S.classList?Array.prototype.forEach.call(p,function(U){_.ms(S,U)}):_.ZS(S,Array.prototype.filter.call(loH(S),function(U){return!_.ou(p,U)}).join(" "))};var foq=function(S){this.logger=this.previouslyFocusedElement=this.focusChangeHandler=null;this.document=S.document},Eac=function(S,p){CVw(S);
var U=document.createElement("div"),Y;(Y=p.parentNode)==null||Y.insertBefore(U,p);U.tabIndex=0;U.id="fc-focus-trap-pre-div";U=document.createElement("div");var L;(L=p.parentNode)==null||L.insertBefore(U,p.nextSibling);U.tabIndex=0;U.id="fc-focus-trap-post-div";var I=x2l(S,p),V=x2l(S,p,!0);I&&V&&(S.focusChangeHandler=function(){var W=S.document.activeElement;if(W)if(_.C2(p,W))S.previouslyFocusedElement=W;else if(W===S.document.activeElement)switch(S.previouslyFocusedElement){case I:V.focus();S.previouslyFocusedElement=
V;break;default:I.focus(),S.previouslyFocusedElement=I}},S.document.addEventListener("focus",S.focusChangeHandler,!0),S.document.addEventListener("focusin",S.focusChangeHandler))},CVw=function(S){S.focusChangeHandler&&(document.removeEventListener("focus",S.focusChangeHandler,!0),document.removeEventListener("focusin",S.focusChangeHandler),S.focusChangeHandler=null);
var p;(p=document.getElementById("fc-focus-trap-pre-div"))==null||p.remove();var U;(U=document.getElementById("fc-focus-trap-post-div"))==null||U.remove()},m2t=function(S,p,U,Y,L){U=U===void 0?!0:U;
var I;L=(I=L===void 0?null:L)!=null?I:x2l(S,p,Y===void 0?!1:Y);L!==null&&(L.focus(),U&&Eac(S,p))};
foq.prototype.disableButton=function(S,p){p=p===void 0?null:p;S.disabled=!0;p&&_.vX(S,p)};
var x2l=function(S,p,U){U=U===void 0?!1:U;if(fGq(p)&&!U)return p;var Y=U?[].slice.call(p.children,0).reverse():p.children;Y=_.d(Y);for(var L=Y.next();!L.done;L=Y.next())if(L=L.value,u5c(L)&&(L=x2l(S,L,U)))return L;return fGq(p)&&U?p:null};var oac=function(S){this.originalBodyOverflow="";this.JSC$8005_domHelper=DD(S)};_.q_(_.Fa,_.hY);_.M=_.Fa.prototype;_.M.JSC$8008_id_=0;_.M.disposeInternal=function(){_.Fa.superClass_.disposeInternal.call(this);this.stop();delete this.JSC$8006_listener_;delete this.handler_};
_.M.start=function(S){this.stop();this.JSC$8008_id_=Qf(this.callback_,S!==void 0?S:this.JSC$8006_interval_)};
_.M.stop=function(){this.isActive()&&_.UX.clearTimeout(this.JSC$8008_id_);this.JSC$8008_id_=0};
_.M.fire=function(){this.stop();this.JSC$8008_doAction_()};
_.M.isActive=function(){return this.JSC$8008_id_!=0};
_.M.JSC$8008_doAction_=function(){this.JSC$8008_id_=0;this.JSC$8006_listener_&&this.JSC$8006_listener_.call(this.handler_)};_.cr=function(S){_.hY.call(this);this.handler_=S;this.JSC$8009_keys_={}};
_.q_(_.cr,_.hY);var vam=[];_.cr.prototype.listen=function(S,p,U,Y){Array.isArray(p)||(p&&(vam[0]=p.toString()),p=vam);for(var L=0;L<p.length;L++){var I=_.Kz(S,p[L],U||this.handleEvent,Y||!1,this.handler_||this);if(!I)break;this.JSC$8009_keys_[I.key]=I}return this};
_.cr.prototype.listenOnce=function(S,p,U,Y){return $2q(this,S,p,U,Y)};
var $2q=function(S,p,U,Y,L,I){if(Array.isArray(U))for(var V=0;V<U.length;V++)$2q(S,p,U[V],Y,L,I);else{p=QO(p,U,Y||S.handleEvent,L,I||S.handler_||S);if(!p)return S;S.JSC$8009_keys_[p.key]=p}return S};
_.cr.prototype.unlisten=function(S,p,U,Y,L){if(Array.isArray(p))for(var I=0;I<p.length;I++)this.unlisten(S,p[I],U,Y,L);else if(S=z6l(S,p,U||this.handleEvent,_.pc(Y)?!!Y.capture:!!Y,L||this.handler_||this))nz(S),delete this.JSC$8009_keys_[S.key];return this};
_.cr.prototype.removeAll=function(){_.h9.forEach(this.JSC$8009_keys_,function(S,p){this.JSC$8009_keys_.hasOwnProperty(p)&&nz(S)},this);
this.JSC$8009_keys_={}};
_.cr.prototype.disposeInternal=function(){_.cr.superClass_.disposeInternal.call(this);this.removeAll()};
_.cr.prototype.handleEvent=function(){throw Error("Sa");};var gM=function(){_.hY.call(this);this.services_={}};
_.q_(gM,_.hY);_.M=gM.prototype;_.M.logger=null;_.M.connect=function(S){S&&S()};
_.M.isConnected=function(){return!0};
_.M.registerService=function(S,p,U){this.services_[S]={callback:p,objectPayload:!!U}};
_.M.getService=function(S,p){var U=this.services_[S];return U?U:this.defaultService_?{callback:_.Hd(this.defaultService_,S),objectPayload:_.pc(p)}:null};
var iuj=function(S,p){if(p&&typeof S==="string")try{return JSON.parse(S)}catch(U){return null}else if(!p&&typeof S!=="string")return(0,_.J2)(S);return S};
gM.prototype.disposeInternal=function(){gM.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 uR=function(S,p){this.sequence_=[];this.onCancelFunction_=S;this.defaultScope_=p||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};
uR.prototype.cancel=function(S){if(this.fired_)this.result_ instanceof uR&&this.result_.cancel();else{if(this.parent_){var p=this.parent_;delete this.parent_;S?p.cancel(S):(p.branches_--,p.branches_<=0&&p.cancel())}this.onCancelFunction_?this.onCancelFunction_.call(this.defaultScope_,this):this.silentlyCanceled_=!0;this.fired_||this.errback(new wM(this))}};
uR.prototype.continue_=function(S,p){this.blocked_=!1;N3P(this,S,p)};
var N3P=function(S,p,U){S.fired_=!0;S.result_=U;S.hadError_=!p;B3t(S)},A3H=function(S){if(S.fired_){if(!S.silentlyCanceled_)throw new qVw(S);
S.silentlyCanceled_=!1}};
uR.prototype.callback=function(S){A3H(this);N3P(this,!0,S)};
uR.prototype.errback=function(S){A3H(this);N3P(this,!1,S)};
var tow=function(S,p,U){lR(S,p,null,U)};
uR.prototype.finally=function(S){var p=this;return new Promise(function(U,Y){lR(p,function(L){S();U(L)},function(L){S();
Y(L)})})};
var lR=function(S,p,U,Y){var L=S.fired_;L||(p===U?p=U=kx(p):(p=kx(p),U=kx(U)));S.sequence_.push([p,U,Y]);L&&B3t(S)};
uR.prototype.then=function(S,p,U){var Y,L,I=new _.O9(function(V,W){L=V;Y=W});
lR(this,L,function(V){V instanceof wM?I.cancel():Y(V);return c3I},this);
return I.then(S,p,U)};
rij(uR);var SFd=function(S,p){p instanceof uR?tow(S,(0,_.RW)(p.branch,p)):tow(S,function(){return p})};
uR.prototype.branch=function(S){var p=new uR;lR(this,p.callback,p.errback,p);S&&(p.parent_=this,this.branches_++);return p};
uR.prototype.isError=function(S){return S instanceof Error};
var piw=function(S){return $7(S.sequence_,function(p){return typeof p[1]==="function"})},c3I={},B3t=function(S){if(S.unhandledErrorId_&&S.fired_&&piw(S)){var p=S.unhandledErrorId_,U=UaI[p];
U&&(_.UX.clearTimeout(U.JSC$8026_id_),delete UaI[p]);S.unhandledErrorId_=0}S.parent_&&(S.parent_.branches_--,delete S.parent_);p=S.result_;for(var Y=U=!1;S.sequence_.length&&!S.blocked_;){var L=S.sequence_.shift(),I=L[0],V=L[1];L=L[2];if(I=S.hadError_?V:I)try{var W=I.call(L||S.defaultScope_,p);W===c3I&&(W=void 0);W!==void 0&&(S.hadError_=S.hadError_&&(W==p||S.isError(W)),S.result_=p=W);if(GDj(p)||typeof _.UX.Promise==="function"&&p instanceof _.UX.Promise)Y=!0,S.blocked_=!0}catch(O){p=O,S.hadError_=
!0,piw(S)||(U=!0)}}S.result_=p;Y&&(W=(0,_.RW)(S.continue_,S,!0),Y=(0,_.RW)(S.continue_,S,!1),p instanceof uR?(lR(p,W,Y),p.blocking_=!0):p.then(W,Y));U&&(p=new YFQ(p),UaI[p.JSC$8026_id_]=p,S.unhandledErrorId_=p.JSC$8026_id_)},qVw=function(){_.Sw.call(this)};
_.q_(qVw,_.Sw);qVw.prototype.message="Deferred has already fired";qVw.prototype.name="AlreadyCalledError";var wM=function(){_.Sw.call(this)};
_.q_(wM,_.Sw);wM.prototype.message="Deferred was canceled";wM.prototype.name="CanceledError";var YFQ=function(S){this.JSC$8026_id_=_.UX.setTimeout((0,_.RW)(this.throwError,this),0);this.JSC$8026_error_=S};
YFQ.prototype.throwError=function(){delete UaI[this.JSC$8026_id_];throw this.JSC$8026_error_;};
var UaI={};var LJe={1:"NativeMessagingTransport"},MbQ=["pu","lru","pru","lpu","ppu"],dac=function(){for(var S=10,p=IDI,U=p.length,Y="";S-- >0;)Y+=p.charAt(Math.floor(Math.random()*U));return Y},IDI="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789";var aw=function(S){_.hY.call(this);this.JSC$8029_domHelper_=S||DD()};
_.q_(aw,_.hY);aw.prototype.transportType=0;aw.prototype.getWindow=function(){return this.JSC$8029_domHelper_.getWindow()};
aw.prototype.getName=function(){return LJe[String(this.transportType)]||""};var fW=function(S,p,U,Y,L){aw.call(this,U);this.JSC$8032_channel_=S;this.protocolVersion_=L||2;this.peerHostname_=p||"*";this.JSC$8032_eventHandler_=new _.cr(this);this.maybeAttemptToConnectTimer_=new _.tr(100,this.getWindow());this.oneSidedHandshake_=!!Y;this.setupAckReceived_=new uR;this.setupAckSent_=new uR;this.JSC$8032_connected_=new uR;this.endpointId_=dac();this.peerEndpointId_=null;this.oneSidedHandshake_?VbI(this.JSC$8032_channel_)==1?SFd(this.JSC$8032_connected_,this.setupAckReceived_):
SFd(this.JSC$8032_connected_,this.setupAckSent_):(SFd(this.JSC$8032_connected_,this.setupAckReceived_),this.protocolVersion_==2&&SFd(this.JSC$8032_connected_,this.setupAckSent_));tow(this.JSC$8032_connected_,this.notifyConnected_,this);this.JSC$8032_connected_.callback(!0);this.JSC$8032_eventHandler_.listen(this.maybeAttemptToConnectTimer_,"tick",this.maybeAttemptToConnect_)};
_.q_(fW,aw);fW.prototype.peerProtocolVersion_=null;fW.prototype.initialized_=!1;fW.prototype.transportType=1;var TOl={};fW.prototype.sendTimerId_=0;
var kNH=function(S){var p=S.event_.data;if(typeof p!=="string")return!1;var U=p.indexOf("|"),Y=p.indexOf(":");if(U==-1||Y==-1)return!1;var L=p.substring(0,U);U=p.substring(U+1,Y);p=p.substring(Y+1);if(Y=CW[L])return Y.xpcDeliver(U,p,S.event_.origin),!0;Y=WJE(p)[0];for(var I in CW){var V=CW[I];if(VbI(V)==1&&!V.isConnected()&&U=="tp"&&(Y=="SETUP"||Y=="SETUP_NTPV2")&&O_m(V,S.event_.origin))return delete CW[V.name],V.name=L,CW[L]=V,V.xpcDeliver(U,p),!0}return!1},H_Q=function(S){S.protocolVersion_!=2||
S.peerProtocolVersion_!=null&&S.peerProtocolVersion_!=2||S.send("tp","SETUP_NTPV2,"+S.endpointId_);
S.peerProtocolVersion_!=null&&S.peerProtocolVersion_!=1||S.send("tp","SETUP")},Dam=function(S,p){if(S.protocolVersion_!=2||S.peerProtocolVersion_!=null&&S.peerProtocolVersion_!=2||p!=2){if(S.peerProtocolVersion_!=null&&S.peerProtocolVersion_!=1||p!=1)return;
S.send("tp","SETUP_ACK")}else S.send("tp","SETUP_ACK_NTPV2");S.setupAckSent_.fired_||S.setupAckSent_.callback(!0)},zHq=function(S,p){p>S.peerProtocolVersion_&&(S.peerProtocolVersion_=p);
S.peerProtocolVersion_==1&&(S.setupAckSent_.fired_||S.oneSidedHandshake_||S.setupAckSent_.callback(!0),S.peerEndpointId_=null)};
_.M=fW.prototype;_.M.connect=function(){var S=this.getWindow(),p=_.Ul(S),U=TOl[p];typeof U!=="number"&&(U=0);U==0&&_.Kz(S.postMessage?S:S.document,"message",kNH,!1,fW);TOl[p]=U+1;this.initialized_=!0;this.maybeAttemptToConnect_()};
_.M.maybeAttemptToConnect_=function(){var S=VbI(this.JSC$8032_channel_)==0;this.oneSidedHandshake_&&S||this.JSC$8032_channel_.isConnected()||this.isDisposed()?this.maybeAttemptToConnectTimer_.stop():(this.maybeAttemptToConnectTimer_.start(),H_Q(this))};
_.M.send=function(S,p){var U=this.JSC$8032_channel_.peerWindowObject_;U&&(this.send=function(Y,L){var I=this,V=this.JSC$8032_channel_.name;this.sendTimerId_=Qf(function(){I.sendTimerId_=0;try{var W=U.postMessage?U:U.document;W.postMessage&&W.postMessage(V+"|"+Y+":"+L,I.peerHostname_)}catch(O){}},0)},this.send(S,p))};
_.M.notifyConnected_=function(){var S=this.JSC$8032_channel_,p=this.protocolVersion_==1||this.peerProtocolVersion_==1?200:void 0;S.isConnected()||S.connectionDelay_&&S.connectionDelay_.isActive()||(S.state_=2,_.t9(S.connectionDelay_),p!==void 0?(S.connectionDelay_=new _.Fa(S.connectCb_,p),S.connectionDelay_.start()):(S.connectionDelay_=null,S.connectCb_()))};
_.M.disposeInternal=function(){if(this.initialized_){var S=this.getWindow(),p=_.Ul(S),U=TOl[p];TOl[p]=U-1;U==1&&_.W3(S.postMessage?S:S.document,"message",kNH,!1,fW)}this.sendTimerId_&&(_.UX.clearTimeout(this.sendTimerId_),this.sendTimerId_=0);_.t9(this.JSC$8032_eventHandler_);delete this.JSC$8032_eventHandler_;_.t9(this.maybeAttemptToConnectTimer_);delete this.maybeAttemptToConnectTimer_;this.setupAckReceived_.cancel();delete this.setupAckReceived_;this.setupAckSent_.cancel();delete this.setupAckSent_;
this.JSC$8032_connected_.cancel();delete this.JSC$8032_connected_;delete this.send;fW.superClass_.disposeInternal.call(this)};
var WJE=function(S){S=S.split(",");S[1]=S[1]||null;return S};_.xx=function(S){if(S.getValues&&typeof S.getValues=="function")return S.getValues();if(typeof Map!=="undefined"&&S instanceof Map||typeof Set!=="undefined"&&S instanceof Set)return Array.from(S.values());if(typeof S==="string")return S.split("");if(_.Ae(S)){for(var p=[],U=S.length,Y=0;Y<U;Y++)p.push(S[Y]);return p}return _.h9.getValues(S)};
_.QYe=function(S){if(S.getKeys&&typeof S.getKeys=="function")return S.getKeys();if(!S.getValues||typeof S.getValues!="function"){if(typeof Map!=="undefined"&&S instanceof Map)return Array.from(S.keys());if(!(typeof Set!=="undefined"&&S instanceof Set)){if(_.Ae(S)||typeof S==="string"){var p=[];S=S.length;for(var U=0;U<S;U++)p.push(U);return p}return _.h9.getKeys(S)}}};
_.nEl=function(S,p,U){if(S.forEach&&typeof S.forEach=="function")S.forEach(p,U);else if(_.Ae(S)||typeof S==="string")Array.prototype.forEach.call(S,p,U);else for(var Y=_.QYe(S),L=_.xx(S),I=L.length,V=0;V<I;V++)p.call(U,L[V],Y&&Y[V],S)};var nKG,NN,qN,GNI,J9j,KJt,y9c,r9E,b_P;
_.ma=function(S,p){this.JSC$8037_domain_=this.userInfo_=this.scheme_="";this.JSC$8037_port_=null;this.fragment_=this.JSC$8037_path_="";this.JSC$8037_ignoreCase_=!1;var U;S instanceof _.ma?(this.JSC$8037_ignoreCase_=p!==void 0?p:S.JSC$8037_ignoreCase_,_.ED(this,S.scheme_),this.userInfo_=S.userInfo_,_.mf(this,S.JSC$8037_domain_),_.ow(this,S.JSC$8037_port_),_.v3(this,S.getPath()),_.$x(this,S.JSC$8037_queryData_.clone()),_.iR(this,S.fragment_)):S&&(U=_.$s(String(S)))?(this.JSC$8037_ignoreCase_=!!p,_.ED(this,
U[1]||"",!0),this.userInfo_=NN(U[2]||""),_.mf(this,U[3]||"",!0),_.ow(this,U[4]),_.v3(this,U[5]||"",!0),_.$x(this,U[6]||"",!0),_.iR(this,U[7]||"",!0)):(this.JSC$8037_ignoreCase_=!!p,this.JSC$8037_queryData_=new _.B3(null,this.JSC$8037_ignoreCase_))};
_.ma.prototype.toString=function(){var S=[],p=this.scheme_;p&&S.push(qN(p,J9j,!0),":");var U=this.JSC$8037_domain_;if(U||p=="file")S.push("//"),(p=this.userInfo_)&&S.push(qN(p,J9j,!0),"@"),S.push(_.CU(U).replace(/%25([0-9a-fA-F]{2})/g,"%$1")),U=this.JSC$8037_port_,U!=null&&S.push(":",String(U));if(U=this.getPath())this.JSC$8037_domain_&&U.charAt(0)!="/"&&S.push("/"),S.push(qN(U,U.charAt(0)=="/"?y9c:KJt,!0));(U=this.JSC$8037_queryData_.toString())&&S.push("?",U);(U=this.fragment_)&&S.push("#",qN(U,
b_P));return S.join("")};
_.ma.prototype.resolve=function(S){var p=this.clone(),U=!!S.scheme_;U?_.ED(p,S.scheme_):U=!!S.userInfo_;U?p.userInfo_=S.userInfo_:U=!!S.JSC$8037_domain_;U?_.mf(p,S.JSC$8037_domain_):U=S.JSC$8037_port_!=null;var Y=S.getPath();if(U)_.ow(p,S.JSC$8037_port_);else if(U=!!S.JSC$8037_path_){if(Y.charAt(0)!="/")if(this.JSC$8037_domain_&&!this.JSC$8037_path_)Y="/"+Y;else{var L=p.getPath().lastIndexOf("/");L!=-1&&(Y=p.getPath().slice(0,L+1)+Y)}L=Y;if(L==".."||L==".")Y="";else if(_.Wk(L,"./")||_.Wk(L,"/.")){Y=
_.Lr(L,"/");L=L.split("/");for(var I=[],V=0;V<L.length;){var W=L[V++];W=="."?Y&&V==L.length&&I.push(""):W==".."?((I.length>1||I.length==1&&I[0]!="")&&I.pop(),Y&&V==L.length&&I.push("")):(I.push(W),Y=!0)}Y=I.join("/")}else Y=L}U?_.v3(p,Y):U=S.JSC$8037_queryData_.toString()!=="";U?_.$x(p,S.JSC$8037_queryData_.clone()):U=!!S.fragment_;U&&_.iR(p,S.fragment_);return p};
_.ma.prototype.clone=function(){return new _.ma(this)};
_.ED=function(S,p,U){S.scheme_=U?NN(p,!0):p;S.scheme_&&(S.scheme_=S.scheme_.replace(/:$/,""));return S};
_.mf=function(S,p,U){S.JSC$8037_domain_=U?NN(p,!0):p;return S};
_.ow=function(S,p){if(p){p=Number(p);if(isNaN(p)||p<0)throw Error("Ta`"+p);S.JSC$8037_port_=p}else S.JSC$8037_port_=null;return S};
_.ma.prototype.getPath=function(){return this.JSC$8037_path_};
_.v3=function(S,p,U){S.JSC$8037_path_=U?NN(p,!0):p;return S};
_.$x=function(S,p,U){p instanceof _.B3?(S.JSC$8037_queryData_=p,jYd(S.JSC$8037_queryData_,S.JSC$8037_ignoreCase_)):(U||(p=qN(p,r9E)),S.JSC$8037_queryData_=new _.B3(p,S.JSC$8037_ignoreCase_));return S};
_.vm=function(S,p,U){S.JSC$8037_queryData_.set(p,U);return S};
_.oW=function(S,p){return S.JSC$8037_queryData_.get(p)};
_.iR=function(S,p,U){S.fragment_=U?NN(p):p;return S};
_.A2=function(S){_.vm(S,"zx",Er());return S};
_.mz=function(S,p){return S instanceof _.ma?S.clone():new _.ma(S,p)};
nKG=function(S,p){S instanceof _.ma||(S=_.mz(S));p instanceof _.ma||(p=_.mz(p));return S.resolve(p)};
NN=function(S,p){return S?p?decodeURI(S.replace(/%25/g,"%2525")):decodeURIComponent(S):""};
qN=function(S,p,U){return typeof S==="string"?(S=encodeURI(S).replace(p,GNI),U&&(S=S.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),S):null};
GNI=function(S){S=S.charCodeAt(0);return"%"+(S>>4&15).toString(16)+(S&15).toString(16)};
J9j=/[#\/\?@]/g;KJt=/[#\?:]/g;y9c=/[#\?]/g;r9E=/[#\?@]/g;b_P=/#/g;_.B3=function(S,p){this.count_=this.keyMap_=null;this.encodedQuery_=S||null;this.JSC$8038_ignoreCase_=!!p};
_.t2=function(S){S.keyMap_||(S.keyMap_=new Map,S.count_=0,S.encodedQuery_&&Jqw(S.encodedQuery_,function(p,U){S.add(qZ(p),U)}))};
_.M=_.B3.prototype;_.M.getCount=function(){_.t2(this);return this.count_};
_.M.add=function(S,p){_.t2(this);this.encodedQuery_=null;S=c3(this,S);var U=this.keyMap_.get(S);U||this.keyMap_.set(S,U=[]);U.push(p);this.count_+=1;return this};
_.M.remove=function(S){_.t2(this);S=c3(this,S);return this.keyMap_.has(S)?(this.encodedQuery_=null,this.count_-=this.keyMap_.get(S).length,this.keyMap_.delete(S)):!1};
_.M.clear=function(){this.keyMap_=this.encodedQuery_=null;this.count_=0};
_.M.isEmpty=function(){_.t2(this);return this.count_==0};
_.M.containsKey=function(S){_.t2(this);S=c3(this,S);return this.keyMap_.has(S)};
_.M.containsValue=function(S){var p=this.getValues();return _.ou(p,S)};
_.M.forEach=function(S,p){_.t2(this);this.keyMap_.forEach(function(U,Y){U.forEach(function(L){S.call(p,L,Y,this)},this)},this)};
_.M.getKeys=function(){_.t2(this);for(var S=Array.from(this.keyMap_.values()),p=Array.from(this.keyMap_.keys()),U=[],Y=0;Y<p.length;Y++)for(var L=S[Y],I=0;I<L.length;I++)U.push(p[Y]);return U};
_.M.getValues=function(S){_.t2(this);var p=[];if(typeof S==="string")this.containsKey(S)&&(p=p.concat(this.keyMap_.get(c3(this,S))));else{S=Array.from(this.keyMap_.values());for(var U=0;U<S.length;U++)p=p.concat(S[U])}return p};
_.M.set=function(S,p){_.t2(this);this.encodedQuery_=null;S=c3(this,S);this.containsKey(S)&&(this.count_-=this.keyMap_.get(S).length);this.keyMap_.set(S,[p]);this.count_+=1;return this};
_.M.get=function(S,p){if(!S)return p;S=this.getValues(S);return S.length>0?String(S[0]):p};
_.hHE=function(S,p,U){S.remove(p);U.length>0&&(S.encodedQuery_=null,S.keyMap_.set(c3(S,p),_.qG(U)),S.count_+=U.length)};
_.B3.prototype.toString=function(){if(this.encodedQuery_)return this.encodedQuery_;if(!this.keyMap_)return"";for(var S=[],p=Array.from(this.keyMap_.keys()),U=0;U<p.length;U++){var Y=p[U],L=_.CU(Y);Y=this.getValues(Y);for(var I=0;I<Y.length;I++){var V=L;Y[I]!==""&&(V+="="+_.CU(Y[I]));S.push(V)}}return this.encodedQuery_=S.join("&")};
_.B3.prototype.clone=function(){var S=new _.B3;S.encodedQuery_=this.encodedQuery_;this.keyMap_&&(S.keyMap_=new Map(this.keyMap_),S.count_=this.count_);return S};
var c3=function(S,p){p=String(p);S.JSC$8038_ignoreCase_&&(p=p.toLowerCase());return p},jYd=function(S,p){p&&!S.JSC$8038_ignoreCase_&&(_.t2(S),S.encodedQuery_=null,S.keyMap_.forEach(function(U,Y){var L=Y.toLowerCase();
Y!=L&&(this.remove(Y),_.hHE(this,L,U))},S));
S.JSC$8038_ignoreCase_=p};
_.B3.prototype.extend=function(S){for(var p=0;p<arguments.length;p++)_.nEl(arguments[p],function(U,Y){this.add(Y,U)},this)};var SY=function(S,p){gM.call(this);for(var U=0,Y;Y=MbQ[U];U++)if(Y in S&&!/^https?:\/\//.test(S[Y]))throw Error("Va`"+S[Y]+"`"+Y);this.cfg_=S;this.name=this.cfg_.cn||dac();this.JSC$8033_domHelper_=p||DD();this.deferredDeliveries_=[];this.peerLoadHandler_=new _.cr(this);S.lpu=S.lpu||QPE(this.JSC$8033_domHelper_.getWindow().location.href)+"/robots.txt";S.ppu=S.ppu||QPE(S.pu||"")+"/robots.txt";CW[this.name]=this;z6l(window,"unload",RHq)||QO(window,"unload",RHq)};
_.q_(SY,gM);var FJl=RegExp("^%*tp$"),Xiq=RegExp("^%+tp$");_.M=SY.prototype;_.M.connectionDelay_=null;_.M.peerWindowDeferred_=null;_.M.transport_=null;_.M.state_=1;_.M.isConnected=function(){return this.state_==2};
_.M.peerWindowObject_=null;_.M.iframeElement_=null;_.M.connect=function(S){this.connectCb_=S||_.TX;this.state_==3&&(this.state_=1);this.peerWindowDeferred_?tow(this.peerWindowDeferred_,this.continueConnection_):this.continueConnection_()};
_.M.continueConnection_=function(){this.peerWindowDeferred_=null;this.cfg_.ifrid&&(this.iframeElement_=this.JSC$8033_domHelper_.getElement(this.cfg_.ifrid));if(this.iframeElement_){var S=this.iframeElement_.contentWindow;S||(S=window.frames[this.cfg_.ifrid]);this.peerWindowObject_=S}if(!this.peerWindowObject_){if(window==window.top)throw Error("Xa");this.peerWindowObject_=window.parent}if(!this.transport_){this.cfg_.tp||(this.cfg_.tp=typeof document.postMessage==="function"||typeof window.postMessage===
"function"?1:0);if(typeof this.cfg_.tp==="function")this.transport_=new this.cfg_.tp(this,this.JSC$8033_domHelper_);else switch(this.cfg_.tp){case 1:this.transport_=new fW(this,this.cfg_.ph,this.JSC$8033_domHelper_,!!this.cfg_.osh,this.cfg_.nativeProtocolVersion||2)}if(!this.transport_)throw Error("Wa");}for(this.transport_.connect();this.deferredDeliveries_.length>0;)this.deferredDeliveries_.shift()()};
_.M.close=function(){this.peerWindowDeferred_&&(this.peerWindowDeferred_.cancel(),this.peerWindowDeferred_=null);this.deferredDeliveries_.length=0;this.peerLoadHandler_.removeAll();this.state_=3;_.t9(this.transport_);this.connectCb_=this.transport_=null;_.t9(this.connectionDelay_);this.connectionDelay_=null};
_.M.send=function(S,p){if(this.isConnected()){try{var U=!!this.peerWindowObject_&&!this.peerWindowObject_.closed}catch(L){U=!1}if(U){_.pc(p)&&(p=(0,_.J2)(p));U=this.transport_;var Y=U.send;FJl.test(S)&&(S="%"+S);S=S.replace(/[%:|]/g,encodeURIComponent);Y.call(U,S,p)}else this.close()}};
_.M.xpcDeliver=function(S,p,U){if(this.peerWindowDeferred_)this.deferredDeliveries_.push((0,_.RW)(this.xpcDeliver,this,S,p,U));else if(O_m(this,U)&&!this.isDisposed()&&this.state_!=3)if(S&&S!="tp")this.isConnected()&&(S=S.replace(/%[0-9a-f]{2}/gi,decodeURIComponent),S=Xiq.test(S)?S.substring(1):S,S=this.getService(S,p))&&(p=iuj(p,S.objectPayload),p!=null&&S.callback(p));else switch(S=this.transport_,U=WJE(p),p=U[1],U[0]){case "SETUP_ACK":zHq(S,1);S.setupAckReceived_.fired_||S.setupAckReceived_.callback(!0);
break;case "SETUP_ACK_NTPV2":S.protocolVersion_==2&&(zHq(S,2),S.setupAckReceived_.fired_||S.setupAckReceived_.callback(!0));break;case "SETUP":zHq(S,1);Dam(S,1);break;case "SETUP_NTPV2":S.protocolVersion_==2&&(U=S.peerProtocolVersion_,zHq(S,2),Dam(S,2),U!=1&&S.peerEndpointId_==null||S.peerEndpointId_==p||H_Q(S),S.peerEndpointId_=p)}};
var VbI=function(S){var p=S.cfg_.role;return typeof p==="number"?p:window.parent==S.peerWindowObject_?1:0},O_m=function(S,p){var U=S.cfg_.ph;
return _.dN(p==null?"":String(p))||_.dN(U==null?"":String(U))||p==S.cfg_.ph};
SY.prototype.disposeInternal=function(){this.close();this.iframeElement_=this.peerWindowObject_=null;delete CW[this.name];_.t9(this.peerLoadHandler_);delete this.peerLoadHandler_;SY.superClass_.disposeInternal.call(this)};
var RHq=function(){for(var S in CW)_.t9(CW[S])},CW={};var Z_P=function(S,p){this.JSC$8047_win=S;this.allowAdsHttpEndpoint=p;this.wallElement=this.allowAdsCrossPageChannel=this.allowAdsPopup=null;this.JSC$8047_domHelper=DD(S);this.scrollManager=new oac(S);this.accessibilityManager=new foq(S);PIP(this)},PIP=function(S){var p=function(){S.allowAdsPopup&&S.allowAdsPopup.style.setProperty("display","none","important");
S.wallElement.style.setProperty("display","","important");CVw(S.accessibilityManager);m2t(S.accessibilityManager,S.wallElement.querySelector(".fc-dialog-container"),!1,!1,S.wallElement.querySelector(".fc-button-whitelist"));var L=S.scrollManager;L.JSC$8005_domHelper.JSC$7335_document_.body.style.overflow=L.originalBodyOverflow};
S.allowAdsPopup=S.JSC$8047_domHelper.JSC$7337_createDom("DIV",{"class":"fc-whitelist-root"});S.allowAdsPopup.style.setProperty("display","none","important");S.JSC$8047_domHelper.appendChild(S.JSC$8047_domHelper.JSC$7335_document_.body,S.allowAdsPopup);var U=S.JSC$8047_domHelper.JSC$7337_createDom("DIV",{"class":"fc-dialog-overlay"});S.JSC$8047_domHelper.appendChild(S.allowAdsPopup,U);var Y=S.JSC$8047_domHelper.JSC$7337_createDom("DIV",{"class":"fc-whitelist-dialog-wrapper",onclick:p});S.JSC$8047_domHelper.appendChild(S.allowAdsPopup,
Y);U=S.JSC$8047_domHelper.JSC$7337_createDom("IFRAME");U.className="fc-whitelist-dialog";U.frameBorder="0";U.id="fc-whitelist-iframe";U.tabIndex="0";_.PE(U,S.allowAdsHttpEndpoint);S.JSC$8047_domHelper.appendChild(Y,U);Y={};Y.pu=_.Tl(S.allowAdsHttpEndpoint).toString();Y.tp=1;Y.cn="fc-whitelist-channel";Y.ifrid=U.id;Y.osh=!0;S.allowAdsCrossPageChannel=new SY(Y);S.allowAdsCrossPageChannel.registerService("close",p);S.allowAdsCrossPageChannel.registerService("refresh",function(){S.JSC$8047_win.location.reload()});
S.allowAdsCrossPageChannel.registerService("resize",function(L){if(L){var I=S.allowAdsPopup.querySelector(".fc-whitelist-dialog");L.width&&I.style.setProperty("width",L.width,"important");L.height&&I.style.setProperty("height",L.height,"important")}},!0);
S.allowAdsCrossPageChannel.connect()};
Z_P.prototype.tearDown=function(){this.allowAdsPopup&&(this.JSC$8047_domHelper.removeNode(this.allowAdsPopup),this.allowAdsPopup=null);this.allowAdsCrossPageChannel&&this.allowAdsCrossPageChannel.close()};/*
 gapi.loader.OBJECT_CREATE_TEST_OVERRIDE &&*/
var pX=window,UB=document,sYQ=pX.location,eHI=function(){},gEl=/\[native code\]/,Yg=function(S,p,U){return S[p]=S[p]||U},upm=function(S){S=S.sort();
for(var p=[],U=void 0,Y=0;Y<S.length;Y++){var L=S[Y];L!=U&&p.push(L);U=L}return p},MC=function(){var S;
if((S=Object.create)&&gEl.test(S))S=S(null);else{S={};for(var p in S)S[p]=void 0}return S},IE=Yg(pX,"gapi",{});var Vt={};Vt=Yg(pX,"___jsl",MC());Yg(Vt,"I",0);Yg(Vt,"hel",10);var wim=function(){var S=sYQ.href;if(Vt.dpo)var p=Vt.h;else{p=Vt.h;var U=RegExp("([#].*&|[#])jsh=([^&#]*)","g"),Y=RegExp("([?#].*&|[?#])jsh=([^&#]*)","g");if(S=S&&(U.exec(S)||Y.exec(S)))try{p=decodeURIComponent(S[2])}catch(L){}}return p},lDt=function(S){var p=Yg(Vt,"PQ",[]);
Vt.PQ=[];var U=p.length;if(U===0)S();else for(var Y=0,L=function(){++Y===U&&S()},I=0;I<U;I++)p[I](L)},aDQ=function(S){return Yg(Yg(Vt,"H",MC()),S,MC())};var T9=function(S){this.JSC$8049_obj_=S};
T9.prototype.value=function(){return this.JSC$8049_obj_};
T9.prototype.getWidth=function(){return this.JSC$8049_obj_.width};
T9.prototype.getHeight=function(){return this.JSC$8049_obj_.height};
T9.prototype.getStyle=function(){return this.JSC$8049_obj_.style};var fDl=function(S){this.JSC$8052_obj_=S||{}};
_.M=fDl.prototype;_.M.value=function(){return this.JSC$8052_obj_};
_.M.setUrl=function(S){this.JSC$8052_obj_.url=S;return this};
_.M.getUrl=function(){return this.JSC$8052_obj_.url};
_.M.getStyle=function(){return this.JSC$8052_obj_.style};
_.M.setId=function(S){this.JSC$8052_obj_.id=S;return this};
_.M.getId=function(){return this.JSC$8052_obj_.id};
_.M.getContext=function(){return this.JSC$8052_obj_.context};
var CIw=function(S){S.JSC$8052_obj_.attributes=S.JSC$8052_obj_.attributes||{};return new T9(S.JSC$8052_obj_.attributes)};var xaq=function(){fDl.apply(this,arguments)};
_.r(xaq,fDl);var EEw=Yg(Vt,"perf",MC());Yg(EEw,"g",MC());var maQ=Yg(EEw,"i",MC());Yg(EEw,"r",[]);MC();MC();var vEI=function(S,p,U){p&&p.length>0&&(p=oEq(p),U&&U.length>0&&(p+="___"+oEq(U)),p.length>28&&(p=p.substr(0,28)+(p.length-28)),U=p,p=Yg(maQ,"_p",MC()),Yg(p,U,MC())[S]=(new Date).getTime(),p=EEw.r,typeof p==="function"?p(S,"_p",U):p.push([S,"_p",U]))},oEq=function(S){return S.join("__").replace(/\./g,"_").replace(/\-/g,"_").replace(/,/g,"_")};var $am=MC(),i_j=[],WF=function(S){throw Error("Ya`"+S);};
i_j.push(["jsl",function(S){for(var p in S)if(Object.prototype.hasOwnProperty.call(S,p)){var U=S[p];typeof U=="object"?Vt[p]=Yg(Vt,p,[]).concat(U):Yg(Vt,p,U)}if(p=S.u)S=Yg(Vt,"us",[]),S.push(p),(p=/^https:(.*)$/.exec(p))&&S.push("http:"+p[1])}]);
var NOm=/^(\/[a-zA-Z0-9_\-]+)+$/,BOm=[/\/amp\//,/\/amp$/,/^\/amp$/],qFt=/^[a-zA-Z0-9\-_\.,!]+$/,A9E=/^gapi\.loaded_[0-9]+$/,tbw=/^[a-zA-Z0-9,._-]+$/,UdP=function(S,p,U,Y,L){var I=S.split(";"),V=I.shift(),W=$am[V],O=null;W?O=W(I,p,U,Y):WF("no hint processor for: "+V);O||WF("failed to generate load url");p=O;U=p.match(c9e);(Y=p.match(SrE))&&Y.length===1&&pmI.test(p)&&U&&U.length===1||WF("failed sanity: "+S);try{S="?";if(L&&L.length>0){Ym(L);var D=L.join(",");O=O+"?le="+D;S="&"}if(Vt.rol){var z=Vt.ol;
z&&z.length&&(O=""+O+S+"ol="+z.length)}}catch(Q){}return O},M$w=function(S,p,U,Y){S=Yrm(S);
A9E.test(U)||WF("invalid_callback");p=Lzt(p);Y=Y&&Y.length?Lzt(Y):null;var L=function(I){return encodeURIComponent(I).replace(/%2C/g,",")};
return[encodeURIComponent(S.pathPrefix).replace(/%2C/g,",").replace(/%2F/g,"/"),"/k=",L(S.version),"/m=",L(p),Y?"/exm="+L(Y):"","/rt=j/sv=1/d=1/ed=1",S.activeMods?"/am="+L(S.activeMods):"",S.resourceSig?"/rs="+L(S.resourceSig):"",S.zcms?"/t="+L(S.zcms):"","/cb=",L(U)].join("")},Yrm=function(S){S.charAt(0)!=="/"&&WF("relative path");
for(var p=S.substring(1).split("/"),U=[];p.length;){S=p.shift();if(!S.length||S.indexOf(".")==0)WF("empty/relative directory");else if(S.indexOf("=")>0){p.unshift(S);break}U.push(S)}S={};for(var Y=0,L=p.length;Y<L;++Y){var I=p[Y].split("="),V=decodeURIComponent(I[0]),W=decodeURIComponent(I[1]);I.length==2&&V&&W&&(S[V]=S[V]||W)}p="/"+U.join("/");NOm.test(p)||WF("invalid_prefix");U=0;for(Y=BOm.length;U<Y;++U)BOm[U].test(p)&&WF("invalid_prefix");U=I1q(S,"k",!0);Y=I1q(S,"am");L=I1q(S,"rs");S=I1q(S,"t");
return{pathPrefix:p,version:U,activeMods:Y,resourceSig:L,zcms:S}},Lzt=function(S){for(var p=[],U=0,Y=S.length;U<Y;++U){var L=S[U].replace(/\./g,"_").replace(/-/g,"_");
tbw.test(L)&&p.push(L)}return p.join(",")},I1q=function(S,p,U){S=S[p];
!S&&U&&WF("missing: "+p);if(S){if(qFt.test(S))return S;WF("invalid: "+p)}return null},pmI=/^https?:\/\/[a-z0-9_.-]+\.google(rs)?\.com(:\d+)?\/[a-zA-Z0-9_.,!=\-\/]+$/,SrE=/\/cb=/g,c9e=/\/\//g;
$am.m=function(S,p,U,Y){(S=S[0])||WF("missing_hint");return"https://apis.google.com"+M$w(S,p,U,Y)};
var ddE=decodeURI("%73cript"),V$H=/^[-+_0-9\/A-Za-z]+={0,2}$/,T5H=function(S,p){for(var U=[],Y=0;Y<S.length;++Y){var L=S[Y],I;if(I=L){a:{for(I=0;I<p.length;I++)if(p[I]===L)break a;I=-1}I=I<0}I&&U.push(L)}return U},Wzj=function(){var S=Vt.nonce;
return S!==void 0?S&&S===String(S)&&S.match(V$H)?S:Vt.nonce=null:UB.querySelector?(S=UB.querySelector("script[nonce]"))?(S=S.nonce||S.getAttribute("nonce")||"",S&&S===String(S)&&S.match(V$H)?Vt.nonce=S:Vt.nonce=null):null:null},H2m=function(S){if(UB.readyState!="loading")O2c(S);
else{var p=Wzj(),U="";p!==null&&(U=' nonce="'+p+'"');S="<"+ddE+' src="'+encodeURI(S)+'"'+U+"></"+ddE+">";UB.write(krw?krw.createHTML(S):S)}},O2c=function(S){var p=UB.createElement(ddE);
p.setAttribute("src",krw?krw.createScriptURL(S):S);S=Wzj();S!==null&&p.setAttribute("nonce",S);p.async="true";(S=UB.getElementsByTagName(ddE)[0])?S.parentNode.insertBefore(p,S):(UB.head||UB.body||UB.documentElement).appendChild(p)},zRm=function(S,p,U){DdE(function(){var Y=p===wim()?Yg(IE,"_",MC()):MC();
Y=Yg(aDQ(p),"_",Y);S(Y)},U)},OXR=function(S,p){var U=p||{};
typeof p=="function"&&(U={},U.callback=p);var Y=(p=U)&&p._c;if(Y)for(var L=0;L<i_j.length;L++){var I=i_j[L][0],V=i_j[L][1];V&&Object.prototype.hasOwnProperty.call(Y,I)&&V(Y[I],S,p)}p=[];S?p=S.split(":"):U.features&&(p=U.features);if(!(S=U.h)&&(S=wim(),!S))throw Error("Za");QWe(p||[],U,S)},QWe=function(S,p,U){S=upm(S)||[];
var Y=p.callback,L=p.config,I=p.timeout,V=p.ontimeout,W=p.onerror,O=void 0;typeof W=="function"&&(O=W);var D=null,z=!1;if(I&&!V||!I&&V)throw"Timeout requires both the timeout parameter and ontimeout parameter to be set";W=Yg(aDQ(U),"r",[]).sort();var Q=Yg(aDQ(U),"L",[]).sort(),J=Vt.le||[],K=[].concat(W),G=function(N,m){if(z)return 0;pX.clearTimeout(D);Q.push.apply(Q,X);var A=((IE||{}).config||{}).update;A?A(L):L&&Yg(Vt,"cu",[]).push(L);if(m){vEI("me0",N,K);try{zRm(m,U,O)}finally{vEI("me1",N,K)}}return 1};
I>0&&(D=pX.setTimeout(function(){z=!0;V()},I));
var X=T5H(S,Q);if(X.length){X=T5H(S,W);var Z=Yg(Vt,"CP",[]),l=Z.length;Z[l]=function(N){if(!N)return 0;vEI("ml1",X,K);var m=function(q){Z[l]=null;G(X,N)&&lDt(function(){Y&&Y();q()})},A=function(){var q=Z[l+1];
q&&q()};
l>0&&Z[l-1]?Z[l]=function(){m(A)}:m(A)};
if(X.length){var a="loaded_"+Vt.I++;IE[a]=function(N){Z[l](N);IE[a]=null};
S=UdP(U,X,"gapi."+a,W,J);W.push.apply(W,X);vEI("ml0",X,K);p.sync||pX.___gapisync?H2m(S):O2c(S)}else Z[l](eHI)}else G(X)&&Y&&Y()},nYP;
var JYj=null,yYd=_.UX.trustedTypes;if(yYd&&yYd.createPolicy){try{JYj=yYd.createPolicy("goog#gapi",{createHTML:xld,createScript:xld,createScriptURL:xld})}catch(S){_.UX.console&&_.UX.console.error(S.message)}nYP=JYj}else nYP=JYj;var krw=nYP,DdE=function(S,p){if(Vt.hee&&Vt.hel>0)try{return S()}catch(U){p&&p(U),Vt.hel--,OXR("debug_error",function(){try{window.___jsl.hefn(U)}catch(Y){throw U;}})}else try{return S()}catch(U){throw p&&p(U),U;
}},KzP=IE.load;
KzP&&Yg(Vt,"ol",[]).push(KzP);IE.load=function(S,p){return DdE(function(){return OXR(S,p)})};var S0X;var b2q=function(S,p){this.serviceId_=S;this.moduleId_=p||null};
b2q.prototype.toString=function(){return this.serviceId_};
b2q.prototype.getModuleId=function(){return this.moduleId_};var IPR=new b2q("MpJwZc","MpJwZc");var VPw=new _.MN("a"),dWd=function(S,p,U){_.Iw.call(this,S,p);this.node=p;this.kind=U};
_.r(dWd,_.Iw);var jWE=function(){this.JSC$8065_keys_={};this.urlPrefix_="";this.JSC$8065_queryData_={}};
jWE.prototype.toString=function(){var S=this.urlPrefix_+rYm(this),p=_.Og(this.JSC$8065_queryData_),U="";p!=""&&(U="?"+p);return S+U};
var Grd=function(S){S=OB(S,"md");return!!S&&S!=="0"},rYm=function(S){var p=[],U=(0,_.RW)(function(Y){this.JSC$8065_keys_[Y]!==void 0&&p.push(Y+"="+this.JSC$8065_keys_[Y])},S);
Grd(S)?(U("md"),U("k"),U("ck"),U("am"),U("rs"),U("gssmodulesetproto"),U("slk"),U("dti")):(U("sdch"),U("k"),U("ck"),U("am"),U("rt"),"d"in S.JSC$8065_keys_||kg(S,"d","0"),U("d"),U("exm"),U("excm"),(S.JSC$8065_keys_.excm||S.JSC$8065_keys_.exm)&&p.push("ed=1"),U("im"),U("dg"),U("sm"),OB(S,"br")!="1"&&OB(S,"br")!="0"||U("br"),U("br-d"),OB(S,"rb")=="1"&&U("rb"),OB(S,"zs")!=="0"&&U("zs"),hRH(S)!==""&&U("wt"),U("gssmodulesetproto"),U("ujg"),U("sp"),U("rs"),U("cb"),U("ee"),U("slk"),U("dti"),U("m"));return p.join("/")},
OB=function(S,p){return S.JSC$8065_keys_[p]?S.JSC$8065_keys_[p]:null},kg=function(S,p,U){U?S.JSC$8065_keys_[p]=U:delete S.JSC$8065_keys_[p]},RRm=function(S,p){S.urlPrefix_=p},Fzm=function(S,p){p&&p.length>0?(p.sort(),kg(S,"exm",p.join(","))):kg(S,"exm",null)},Xmc=function(S,p){p&&p.length>0?(p.sort(),kg(S,"excm",p.join(","))):kg(S,"excm",null)},P9Q=function(S){return(S=OB(S,"m"))?S.split(","):[]},hRH=function(S){switch(OB(S,"wt")){case "0":return"0";
case "1":return"1";case "2":return"2";default:return""}},Z2l=function(S,p){var U=Object.keys(p).filter(function(Y){return!!Object.keys(p[Y]).length}).map(function(Y){var L=Object.keys(p[Y]);
L.length>1&&L.sort();return Y+":"+L.join(",")});
U.sort();kg(S,"ee",U.join(";"))},$Zd=function(S){var p=OB(S,"ee");
if(!p)return{};S={};p=_.d(p.split(";"));for(var U=p.next();!U.done;U=p.next()){var Y=_.d(U.value.split(":"));U=Y.next().value;Y=Y.next().value;S[U]={};Y=_.d(Y.split(","));for(var L=Y.next();!L.done;L=Y.next())S[U][L.value]=!0}return S},sWj=function(S){delete S.JSC$8065_keys_.m;
delete S.JSC$8065_keys_.exm;delete S.JSC$8065_keys_.ed};
jWE.prototype.clone=function(){var S=new jWE;S.JSC$8065_keys_=Object.assign({},this.JSC$8065_keys_);S.urlPrefix_=this.urlPrefix_;S.JSC$8065_queryData_=Object.assign({},this.JSC$8065_queryData_);return S};
var iUr=function(S,p){p=p===void 0?!0:p;var U=eRw(S),Y=new jWE,L=_.$s(U)[5];_.h9.forEach(gYw,function(V){var W=L.match("/"+V+"=([^/]+)");W&&kg(Y,V,W[1])});
var I="";I=S.indexOf("_/ss/")!=-1?"_/ss/":"_/js/";RRm(Y,S.substr(0,S.indexOf(I)+I.length));if(!p)return Y;(S=_.$s(U)[6]||null)&&Jqw(S,function(V,W){Y.JSC$8065_queryData_[V]=W});
return Y},mZG=function(S){S=_.Tp(eRw(S));
return S===null?!1:RegExp("(/_/js/)|(/_/ss/)","g").test(S)?/\/k=/.test(S):!1},eRw=function(S){return S.startsWith("https://uberproxy-pen-redirect.corp.google.com/uberproxy/pen?url=")?S.substr(65):S},gYw={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"},uaQ=RegExp("^loaded_(g|h)?[_\\d]+$");_.HF=function(S){this.JSC$8077_id_=S;this.opts={}};
_.HF.prototype.JSC$8079_setLabel=function(S){this.label_=S||void 0;return this};
_.HF.prototype.addUploadMetadata=function(S,p){var U=this.opts.data||{};U[S]=p;this.opts.data=U;return this};
var wmm=function(S){var p=_.h9.filter(S.opts,function(U){return U!==null});
p=_.h9.isEmpty(p)?null:p;S=[S.JSC$8077_id_,S.label_,p];p=Jew(S);return S=S.slice(0,p+1)};
_.HF.prototype.toString=function(){var S=wmm(this);return"("+_.Fp(S,function(p){return JSON.stringify(p)}).join(",")+")"};
_.HF.prototype.getId=function(){return this.JSC$8077_id_};
_.HF.prototype.getOptions=function(){return _.h9.clone(this.opts)};var D7=function(){_.HF.call(this,"image-search")};
_.r(D7,_.HF);D7.prototype.setSize=function(S){this.opts.imgsz=S;return this};
D7.prototype.JSC$8079_setLabel=function(S){_.HF.prototype.JSC$8079_setLabel.call(this,S);return this};
D7.prototype.addUploadMetadata=function(S,p){_.HF.prototype.addUploadMetadata.call(this,S,p);return this};var z9=function(){_.HF.call(this,"maps")};
_.r(z9,_.HF);z9.prototype.setZoom=function(S){this.opts.zoom=S;return this};
z9.prototype.JSC$8079_setLabel=function(S){_.HF.prototype.JSC$8079_setLabel.call(this,S);return this};
z9.prototype.addUploadMetadata=function(S,p){_.HF.prototype.addUploadMetadata.call(this,S,p);return this};_.Qt=function(){_.HF.call(this,"photos")};
_.r(_.Qt,_.HF);_.Qt.prototype.JSC$8079_setLabel=function(S){_.HF.prototype.JSC$8079_setLabel.call(this,S);return this};
_.Qt.prototype.addUploadMetadata=function(S,p){_.HF.prototype.addUploadMetadata.call(this,S,p);return this};var nX=function(){_.HF.call(this,"url")};
_.r(nX,_.HF);var l1m=function(){var S=new nX;S.opts.type="video";S.opts.site="youtube.com";return S};
nX.prototype.JSC$8079_setLabel=function(S){_.HF.prototype.JSC$8079_setLabel.call(this,S);return this};
nX.prototype.addUploadMetadata=function(S,p){_.HF.prototype.addUploadMetadata.call(this,S,p);return this};var Js=function(){_.HF.call(this,"video-search")};
_.r(Js,_.HF);var a1Q=function(){var S=new Js;S.opts.site="youtube.com";return S};
Js.prototype.JSC$8079_setLabel=function(S){_.HF.prototype.JSC$8079_setLabel.call(this,S);return this};
Js.prototype.addUploadMetadata=function(S,p){_.HF.prototype.addUploadMetadata.call(this,S,p);return this};var f1E=function(){_.HF.call(this,"web")};
_.r(f1E,_.HF);f1E.prototype.JSC$8079_setLabel=function(S){_.HF.prototype.JSC$8079_setLabel.call(this,S);return this};
f1E.prototype.addUploadMetadata=function(S,p){_.HF.prototype.addUploadMetadata.call(this,S,p);return this};var KX=function(){this.items_=[];this.opts={}},C9t=function(S){switch(S){case "image-search":return new D7;
case "maps":return new z9;case "photos":return new _.Qt;case "url":return new nX;case "video-search":return new Js;case "web":return new f1E}return new _.HF(S)};
KX.prototype.addView=function(S){this.items_.push(typeof S==="string"?C9t(S):S);return this};
var xdI=function(S){return"("+_.Fp(S.items_,function(p){return p.toString()}).join(",")+")"};
KX.prototype.toString=function(){return xdI(this)};
KX.prototype.getViews=function(S,p){p=p===void 0?[]:p;for(var U=this.items_,Y=0;Y<U.length;Y++){var L=U[Y];L instanceof KX?L.getViews(S,p):L.getId()==S&&p.push(L)}return p};
KX.prototype.getOptions=function(){return _.h9.clone(this.opts)};var l9=function(S){this.basePickerUrl_=S||"https://docs.google.com/picker";this.nav_=new KX};
l9.prototype.nav_=null;l9.prototype.addView=function(S){this.nav_.addView(S);return this};
l9.prototype.getBaseUrl=function(){return this.basePickerUrl_};
l9.prototype.getViews=function(S){return this.nav_.getViews(S)};
_.EYd=function(S,p){S.callback_=p;return S};var mdl=new Map;mdl.set("application/vnd.google-apps.document","application/vnd.google-gsuite.document-blob");mdl.set("application/vnd.google-apps.spreadsheet","application/vnd.google-gsuite.spreadsheet-blob");mdl.set("application/vnd.google-apps.presentation","application/vnd.google-gsuite.presentation-blob");var oYe=new Set;oYe.add("application/vnd.google-apps.kix");oYe.add("application/vnd.google-apps.ritz");oYe.add("application/vnd.google-apps.punch");var UxH=function(S,p,U){var Y=U&&_.jR(U,1);U=vYH(U);var L=S[0].getId();switch(_.r1(L,2)){case 13:return $dm(S,p,Y,U);case 3:return i2I(S,p,Y,U);case 10:return N5P(S,p,Y,U);case 27:return N5P(S,p,Y,U);case 12:return B5E(S,p);case 2:return qrl(S,p,Y,U);case 5:return AYt(S,p,Y,U);case 9:return t$j(S,p,Y,U);case 6:return cYt(S,p,Y,U);case 25:return SIw(S,p,Y,U);case 1:return _.TR(S[0],gmm,26)?pzI(S,p,Y,U):N5P(S,p,Y,U);default:return{}}},cYt=function(S,p,U,Y){S=S.map(function(L){return{id:L.getId().getId(),
serviceId:"youtube",name:L.getName(),description:_.jR(L,3),type:bh(L),lastEditedUtc:_.eeP(_.Sa(L,_.eJ,16)).getTime(),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",url:L.getUrl(),embedUrl:_.jR(L,13),thumbnails:jY(mC(L))}});
return{action:p,docs:S,viewToken:Y,view:U||"youtube",v2Translated:!0}},qrl=function(S,p,U,Y){var L=S.map(function(I){var V=I.getId().getId(),W=_.jR(I,7),O=I.getName(),D=bh(I),z=_.eeP(_.Sa(I,_.eJ,12)).getTime(),Q=I.getUrl(),J=Number(tGr(I)),K=_.jR(I,3),G=_.jR(I,11),X=jY(mC(I));
var Z=_.Sa(I,o3,21);Z=_.yY(Z,1);var l=_.Sa(I,o3,21);l=_.jR(l,10);var a=_.jR(I,13);var N=_.Sa(I,o3,21);N=_.yY(N,9);var m=_.Sa(I,o3,21);m=_.jR(m,11);V={id:V,serviceId:"docs",mimeType:W,name:O,type:D,lastEditedUtc:z,url:Q,sizeBytes:J,description:K,iconUrl:G,thumbnails:X,isShared:Z,downloadUrl:l,embedUrl:a,copyable:N,resourceKey:m};W=_.Sa(I,o3,21);_.yY(W,12)&&(V.uploadState="success",V.isNew=!0);W=_.Sa(I,o3,21);_.TR(W,C0,3)&&(I=_.Sa(I,o3,21),I=_.Sa(I,C0,3),_.TR(I,a3,2)&&(W=u9(I.getDuration().getSeconds()),
O=I.getDuration(),O=_.YY(O,2),V.duration=W+O/1E9),V.aspectRatio=I.getAspectRatio());return V});
return{action:p,docs:L,viewToken:Y,view:U||"all",extraUserInputs:YId(S),v2Translated:!0}},AYt=function(S,p,U,Y){S=S.map(function(L){var I=_.Sa(L,mtt,15);
I=_.Sa(I,f0,1);zY(L,10,f0,I);return{id:L.getId().getId(),serviceId:"web",mimeType:_.jR(L,7),name:L.getName(),type:bh(L),url:L.getUrl(),description:_.jR(L,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:jY(mC(L))}});
return{action:p,docs:S,viewToken:Y,view:U||"image-search",v2Translated:!0}},t$j=function(S,p,U,Y){S=S.map(function(L){return{serviceId:"url",
name:mC(L)[0].getUrl().split("/").pop(),type:bh(L),mimeType:_.jR(L,7),url:L.getUrl(),description:_.jR(L,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:jY(mC(L))}});
return{action:p,docs:S,viewToken:Y,view:U||"url",v2Translated:!0}},pzI=function(S,p,U,Y){S=S.map(function(L){return{id:L.getId().getId(),
serviceId:"picasa",name:L.getName(),type:bh(L),description:_.jR(L,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:jY(mC(L))}});
return{action:p,docs:S,viewToken:Y,view:U||"webcam",v2Translated:!0}},N5P=function(S,p,U,Y){return{action:p,
docs:S.map(L4w),viewToken:Y,view:Mke(U||"upload",S),extraUserInputs:YId(S),v2Translated:!0}},Mke=function(S,p){return p.some(function(U){var Y;
return((Y=_.Sa(U,xZ,30))==null?void 0:_.r1(Y,3))===9})?S+"/gmailphotos":S},i2I=function(S,p,U,Y){var L=S.map(function(I){var V={id:I.getId().getId(),
serviceId:"picasa",mimeType:_.jR(I,7),name:I.getName(),type:bh(I),lastEditedUtc:_.eeP(_.Sa(I,_.eJ,12)).getTime(),url:I.getUrl(),sizeBytes:Number(tGr(I)),description:_.jR(I,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:jY(mC(I)),mediaKey:I.getId().getId(),parentId:_.jR(I,4)},W,O=(W=_.Sa(I,ldj,18))==null?void 0:_.Sa(W,wwE,3);O&&(V.latitude=bY(O,1),V.longitude=bY(O,2));var D;I=(D=_.Sa(I,ldj,18))==null?void 0:KT(D,6);D=I!=null?u9(I):void 0;D&&(V.version=
D);return V});
return{action:p,docs:L,viewToken:Y,view:U||"photos",extraUserInputs:YId(S),v2Translated:!0}},$dm=function(S,p,U,Y){S=S.map(function(L){return{id:L.getId().getId(),
serviceId:"et",name:mC(L)[0].getUrl().split("/").pop(),description:_.jR(L,3),type:"et",iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:jY(mC(L),"etjpg")}});
return{action:p,docs:S,viewToken:Y,view:U||"et",v2Translated:!0}},SIw=function(S,p,U,Y){S=S.map(function(L){var I=L.getId().getId(),V=Y["2"];
return{id:I,serviceId:V.type!=="gmail_themes"&&V.parent==="6226252643674576769"?"picasa":"static_themes",name:L.getName(),mimeType:_.jR(L,7),type:bh(L),description:_.jR(L,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",url:L.getUrl(),embedUrl:L.getUrl(),thumbnails:jY(mC(L))}});
return{action:p,docs:S,viewToken:Y,view:U||"photos",v2Translated:!0}},B5E=function(S,p){S=S.map(function(U){var Y=_.Sa(U,uII,27);
Y=_.K8(Y,1,_.CE,_.Ur())[0];return{id:U.getId().getId(),serviceId:"contacts",mimeType:_.jR(U,7),name:U.getName(),description:_.jR(U,3),url:"mailto:"+Y,thumbnail:[{url:_.jR(U,11)}],email:Y}});
return{action:p,docs:S,view:"contacts",v2Translated:!0}},vYH=function(S){if(!S)return{};
var p=_.jR(S,3);p=p&&JSON.parse(p)||{};return{0:_.jR(S,1),1:_.jR(S,2),2:p}},jY=function(S,p){p=p===void 0?"":p;
if(!S.length)return null;p=="etjpg"&&(S=S.filter(function(U){return U.getUrl().includes("w1200-h300")}));
return S.map(function(U){return{url:U.getUrl(),height:U.getHeight(),width:U.getWidth(),type:p}})},YId=function(S){return{isAttachment:S.some(function(p){return _.yY(p,31)})}},L4w=function(S){var p,U={id:(p=S.getId())==null?void 0:p.getId(),
serviceId:Igd(S),mimeType:_.jR(S,7),name:S.getName(),type:bh(S),sizeBytes:Number(tGr(S)),description:_.jR(S,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:jY(mC(S)),isNew:!0};if(p=_.Sa(S,xZ,30)){U.dataUrl=_.jR(p,1)||null;a:{var Y=_.Sa(S,xZ,30);switch(_.r1(Y,3)){case 9:Y=_.Ra(Y,xte,2,EC);Y={remoteRefs:Y&&_.jR(Y,1)};break a;case 10:case 15:Y=_.Ra(Y,CtH,4,EC);var L=mC(S);Y={photo_id:Y&&_.jR(Y,1),media_key:S.getId().getId(),media_type:_.r1(S,6)===1?1:2,image_url:L&&
L[0].getUrl(),width:L&&String(L[0].getWidth()),height:L&&String(L[0].getHeight())};break a}Y=null}U.uploadMetadata=Y;U.uploadId=_.jR(p,9)||null;U.uploadState=dxt(p)||null}(Y=p&&_.Ra(p,CtH,4,EC))&&(U.id=_.jR(Y,1));(Y=p&&_.Ra(p,Emt,5,EC))&&(U.contentId=_.jR(Y,1));(Y=p&&_.Ra(p,add,7,EC))&&(U.contentId=_.jR(Y,1));(Y=p&&_.Ra(p,fdj,6,EC))&&(U.contentId=_.jR(Y,1));(p==null?void 0:_.r1(p,3))===1&&(U.mediaKey=S.getId().getId());return U},Igd=function(S){var p;
switch(((p=_.Sa(S,xZ,30))==null?void 0:_.r1(p,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},bh=function(S){switch(_.r1(S,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 _.jR(S,7).startsWith("application/vnd.google-apps.")?"document":"file";default:return"file"}},dxt=function(S){switch(S==null?void 0:_.r1(S,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 OSl,Vkl,TdH,W4Q;_.ro=function(S,p){var U=p||{};p=U.document||document;var Y=_.Tl(S).toString(),L=(new Dx(p)).createElement("SCRIPT"),I={script_:L,timeout_:void 0},V=new uR(Vkl,I),W=null,O=U.timeout!=null?U.timeout:5E3;O>0&&(W=window.setTimeout(function(){TdH(L,!0);V.errback(new W4Q(1,"Timeout reached for loading script "+Y))},O),I.timeout_=W);
L.onload=L.onreadystatechange=function(){L.readyState&&L.readyState!="loaded"&&L.readyState!="complete"||(TdH(L,U.cleanupWhenDone||!1,W),V.callback(null))};
L.onerror=function(){TdH(L,!0,W);V.errback(new W4Q(0,"Error while loading script "+Y))};
I=U.attributes||{};_.h9.extend(I,{type:"text/javascript",charset:"UTF-8"});hdd(L,I);_.fh(L,S);OSl(p).appendChild(L);return V};
OSl=function(S){var p=K2("HEAD",S);return p&&p.length!==0?p[0]:S.documentElement};
Vkl=function(){if(this&&this.script_){var S=this.script_;S&&S.tagName=="SCRIPT"&&TdH(S,!0,this.timeout_)}};
TdH=function(S,p,U){U!=null&&_.UX.clearTimeout(U);S.onload=function(){};
S.onerror=function(){};
S.onreadystatechange=function(){};
p&&window.setTimeout(function(){_.yz(S)},0)};
W4Q=function(S,p){var U="Jsloader error (code #"+S+")";p&&(U+=": "+p);_.Sw.call(this,U);this.code=S};
_.q_(W4Q,_.Sw);var kVI=_.x1(["https://apis.google.com/js/api.js"]),HSP=_.UF(kVI),njd=function(S,p){var U=!1,Y=DxE(S,p).then(function(I){U=!0;return I}),L=_.oAc(5E3).then(function(){return U?DxE(S,p):zTH(p).then(function(I){return Q8t(I,S)})});
return s5Q([Y,L])},DxE=function(S,p){return Jyt(p).then(function(U){return Q8t(U,S)})},Q8t=function(S,p){var U=_.Lr(p,"gapi.")?p.slice(5):p;
return S[U]?_.Mw(S[U]):new _.O9(function(Y,L){var I=Qf(function(){L(Error("bb"))},3E4);
S.load(p,{callback:function(){_.UX.clearTimeout(I);Y(S[U])},
onerror:function(V){_.UX.clearTimeout(I);L(V)}})})},Jyt=function(S){return S.gapi&&S.gapi.load?_.Mw(S.gapi):zTH(S)},zTH=function(S){return _.ro(HSP,{document:S.document}).then(function(){return S.gapi})},yyt=function(){};
yyt.prototype.load=function(S,p){p=p===void 0?window:p;var U=Date.now();return njd(S,p).then(function(Y){var L=Date.now();return{library:Y,loadStartMs:U,loadEndMs:L}},function(Y){throw Y instanceof Error?Y:Error(String(Y));
})};var HUe=function(){_.hY.call(this);this.gapiLoader_=new yyt;this.origin_=null;this.gapiPickerIframeResolver_=_.ay();this.gapiIframesResolver_=_.ay();this.gapiIframesResolver_.promise.then(null,function(){});
this.gapiPickerIframeResolver_.promise.then(null,function(){});
this.hostMessageHandlerInternal_={}};
_.r(HUe,_.hY);var K4q=function(S,p){var U=_.ad("gapi.iframes",p);return U?(S=Date.now(),_.Mw({library:U,loadStartMs:S,loadEndMs:S})):S.gapiLoader_.load("gapi.iframes",p)},bSE=function(S,p,U,Y,L,I){var V=!1;
V=V===void 0?!1:V;K4q(S,Pi(p.ownerDocument)).then(function(W){var O=W.library;S.gapiIframesResolver_.resolve(O);W=S.gapiPickerIframeResolver_;var D=W.resolve,z=V;z=z===void 0?!1:z;var Q={};Q["host-message-handler"]=U;S.hostMessageHandlerInternal_=Q;var J=_.mz(Y);J=_.mz(J);J=_.ow(_.mf(_.ED(new _.ma,J.scheme_),J.JSC$8037_domain_),J.JSC$8037_port_).toString();S.origin_=J;J=(new xaq).setUrl(Y);J.JSC$8052_obj_.where=p;J.JSC$8052_obj_.allowPost=z;J.JSC$8052_obj_.messageHandlers=Q;z=_.ad("makeWhiteListIframesFilter",
O)([S.origin_]);J.JSC$8052_obj_.messageHandlersFilter=z;L!=null&&J.setId(L);I!=null&&(J.JSC$8052_obj_.rpctoken=I);z=CIw(J);z.JSC$8049_obj_.style={display:"block","min-width":"100%",width:"1px"};z.JSC$8049_obj_.height="100%";CIw(J).value().allow="camera 'src' "+S.origin_;O=O.getContext().openChild(J.value());D.call(W,O)},function(W){S.gapiIframesResolver_.reject(W);
S.gapiPickerIframeResolver_.reject(W)});
return S.gapiPickerIframeResolver_.promise},j8m=function(S,p){return _.DS([S.gapiIframesResolver_.promise,
S.gapiPickerIframeResolver_.promise]).then(function(U){var Y=_.d(U);U=Y.next().value;return(Y=Y.next().value)?Y.send("picker-message-handler",p,void 0,_.ad("makeWhiteListIframesFilter",U)([S.origin_])):_.jV(Error("cb"))})};
HUe.prototype.disposeInternal=function(){ryP(this);_.hY.prototype.disposeInternal.call(this)};
var ryP=function(S){S.gapiPickerIframeResolver_.promise.then(function(p){p&&(p.unregister("host-message-handler"),delete S.hostMessageHandlerInternal_["host-message-handler"])})};var GVt=function(){this.nextId=0};var RTI=function(S,p){switch(S.action){case "select-contacts":S=hTE(S.contacts);break;case "visibility":S=S.visible;var U=new $Z;S=_.XU(U,1,7).setVisible(S);U={};U["iframe-command"]=S.serialize();S=U;break;default:S=null}return S?j8m(p,S):_.Mw()},hTE=function(S){if(!S||S.length==0)return null;
var p=new $Z;_.XU(p,1,11);var U=new GVt;S.forEach(function(Y){if(Y.email){var L=new zR;L=_.$9(L,2,Y.name?Y.name:Y.email);var I=new uII;Y=_.dYd(I,1,_.lJ,Y.email,_.CE);Y=_.U3(L,27,Y);L=Y.setId;I=(new l1).setId(":"+(U.nextId++).toString(36));I=_.XU(I,2,12);Y=L.call(Y,I)}else Y=null;Y&&zY(p,7,zR,Y)});
S={};S["iframe-command"]=p.serialize();return S};_.F4j=function(){if(kSw){var S=/Windows NT ([0-9.]+)/;return(S=S.exec(_.zG()))?S[1]:"0"}return _.Onr?(S=/1[0|1][_.][0-9_.]+/,(S=S.exec(_.zG()))?S[0].replace(/_/g,"."):"10"):tlw?(S=/Android\s+([^\);]+)(\)|;)/,(S=S.exec(_.zG()))?S[1]:""):D6e||ziu||Q7R?(S=/(?:iPhone|CPU)\s+OS\s+(\S+)/,(S=S.exec(_.zG()))?S[1].replace(/_/g,"."):""):""}();var G9;G9=function(S){return(S=S.exec(_.zG()))?S[1]:""};
_.XzI=function(){if(_.YC)return G9(/Firefox\/([0-9.]+)/);if(_.cO||$U||VGE)return r$e;if(_.LT){if(_.ue()||_.DGq()){var S=G9(/CriOS\/([0-9.]+)/);if(S)return S}return G9(/Chrome\/([0-9.]+)/)}if(_.gE&&!_.ue())return G9(/Version\/([0-9.]+)/);if(b9R||j9u){if(S=/Version\/(\S+).*Mobile\/(\S+)/.exec(_.zG()))return S[1]+"."+S[2]}else if(XKR)return(S=G9(/Android\s+([0-9.]+)/))?S:G9(/Version\/([0-9.]+)/);return""}();var PoI=function(){};
_.N_(PoI);PoI.prototype.nextId_=0;_.hs=function(S){return":"+(S.nextId_++).toString(36)};var RE=function(S){_.OD.call(this);this.JSC$8147_dom_=S||DD();this.JSC$8147_id_=null;this.inDocument_=!1;this.JSC$8147_element_=null;this.googUiComponentHandler_=void 0;this.childIndex_=this.children_=this.parent_=this.model_=null;this.wasDecorated_=!1};
_.q_(RE,_.OD);RE.prototype.idGenerator_=PoI.getInstance();RE.prototype.getId=function(){return this.JSC$8147_id_||(this.JSC$8147_id_=_.hs(this.idGenerator_))};
RE.prototype.setId=function(S){this.parent_&&this.parent_.childIndex_&&(_.h9.remove(this.parent_.childIndex_,this.JSC$8147_id_),_.h9.add(this.parent_.childIndex_,S,this));this.JSC$8147_id_=S};
RE.prototype.getElement=function(){return this.JSC$8147_element_};
var Fl=function(S){S.googUiComponentHandler_||(S.googUiComponentHandler_=new _.cr(S));return S.googUiComponentHandler_},ZSj=function(S,p){if(S==p)throw Error("db");
var U;if(U=p&&S.parent_&&S.JSC$8147_id_){U=S.parent_;var Y=S.JSC$8147_id_;U=U.childIndex_&&Y?_.h9.get(U.childIndex_,Y)||null:null}if(U&&S.parent_!=p)throw Error("db");S.parent_=p;RE.superClass_.setParentEventTarget.call(S,p)};
RE.prototype.setParentEventTarget=function(S){if(this.parent_&&this.parent_!=S)throw Error("eb");RE.superClass_.setParentEventTarget.call(this,S)};
RE.prototype.JSC$8149_createDom=function(){this.JSC$8147_element_=this.JSC$8147_dom_.createElement("DIV")};
RE.prototype.render=function(S){s8m(this,S)};
var s8m=function(S,p,U){if(S.inDocument_)throw Error("fb");S.JSC$8147_element_||S.JSC$8149_createDom();p?p.insertBefore(S.JSC$8147_element_,U||null):S.JSC$8147_dom_.JSC$7335_document_.body.appendChild(S.JSC$8147_element_);S.parent_&&!S.parent_.inDocument_||S.enterDocument()};
_.M=RE.prototype;_.M.decorate=function(S){if(this.inDocument_)throw Error("fb");if(S&&this.canDecorate(S)){this.wasDecorated_=!0;var p=_.ZD(S);this.JSC$8147_dom_&&this.JSC$8147_dom_.JSC$7335_document_==p||(this.JSC$8147_dom_=DD(S));this.decorateInternal(S);this.enterDocument()}else throw Error("gb");};
_.M.canDecorate=function(){return!0};
_.M.decorateInternal=function(S){this.JSC$8147_element_=S};
_.M.enterDocument=function(){this.inDocument_=!0;eTI(this,function(S){!S.inDocument_&&S.getElement()&&S.enterDocument()})};
_.M.exitDocument=function(){eTI(this,function(S){S.inDocument_&&S.exitDocument()});
this.googUiComponentHandler_&&this.googUiComponentHandler_.removeAll();this.inDocument_=!1};
_.M.disposeInternal=function(){this.inDocument_&&this.exitDocument();this.googUiComponentHandler_&&(this.googUiComponentHandler_.dispose(),delete this.googUiComponentHandler_);eTI(this,function(S){S.dispose()});
!this.wasDecorated_&&this.JSC$8147_element_&&_.yz(this.JSC$8147_element_);this.parent_=this.model_=this.JSC$8147_element_=this.childIndex_=this.children_=null;RE.superClass_.disposeInternal.call(this)};
_.M.getModel=function(){return this.model_};
_.M.addChild=function(S,p){var U=this.children_?this.children_.length:0;if(S.inDocument_&&(p||!this.inDocument_))throw Error("fb");if(U<0||U>(this.children_?this.children_.length:0))throw Error("hb");this.childIndex_&&this.children_||(this.childIndex_={},this.children_=[]);S.parent_==this?(_.h9.set(this.childIndex_,S.getId(),S),_.NG(this.children_,S)):_.h9.add(this.childIndex_,S.getId(),S);ZSj(S,this);_.KqN(this.children_,U,0,S);S.inDocument_&&this.inDocument_&&S.parent_==this?(p=this.getContentElement(),
(p.childNodes[U]||null)!=S.getElement()&&(S.getElement().parentElement==p&&p.removeChild(S.getElement()),U=p.childNodes[U]||null,p.insertBefore(S.getElement(),U))):p?(this.JSC$8147_element_||this.JSC$8149_createDom(),U=this.children_?this.children_[U+1]||null:null,s8m(S,this.getContentElement(),U?U.JSC$8147_element_:null)):this.inDocument_&&!S.inDocument_&&S.JSC$8147_element_&&S.JSC$8147_element_.parentNode&&S.JSC$8147_element_.parentNode.nodeType==1&&S.enterDocument()};
_.M.getContentElement=function(){return this.JSC$8147_element_};
var eTI=function(S,p){S.children_&&S.children_.forEach(p,void 0)};
RE.prototype.removeChild=function(S,p){if(S){var U=typeof S==="string"?S:S.getId();S=this.childIndex_&&U?_.h9.get(this.childIndex_,U)||null:null;U&&S&&(_.h9.remove(this.childIndex_,U),_.NG(this.children_,S),p&&(S.exitDocument(),S.JSC$8147_element_&&_.yz(S.JSC$8147_element_)),ZSj(S,null))}if(!S)throw Error("ib");return S};_.q_(Lcr,Y0w);_.q_(MnE,Y0w);var gjd;var uGj=function(S,p){p?S.setAttribute("role",p):S.removeAttribute("role")},Xl=function(S,p,U){Array.isArray(U)&&(U=U.join(" "));
var Y="aria-"+p;U===""||U==void 0?(gjd||(U={},gjd=(U.atomic=!1,U.autocomplete="none",U.dropeffect="none",U.haspopup=!1,U.live="off",U.multiline=!1,U.multiselectable=!1,U.orientation="vertical",U.readonly=!1,U.relevant="additions text",U.required=!1,U.sort="none",U.busy=!1,U.disabled=!1,U.hidden=!1,U.invalid="false",U)),U=gjd,p in U?S.setAttribute(Y,U[p]):S.removeAttribute(Y)):S.setAttribute(Y,U)};var wzm;_.PF=function(S,p,U){_.OD.call(this);this.target=S;this.handle=p||S;this.limits=U||new hH(NaN,NaN,NaN,NaN);this.JSC$8152_document_=_.ZD(S);this.JSC$8152_eventHandler_=new _.cr(this);_.Hm(this,this.JSC$8152_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;_.Kz(this.handle,["touchstart","mousedown"],this.startDrag,!1,this);this.useSetCapture_=wzm};
_.q_(_.PF,_.OD);wzm=_.UX.document&&_.UX.document.documentElement&&!!_.UX.document.documentElement.setCapture&&!!_.UX.document.releaseCapture;_.lgj=function(S,p){S.hysteresisDistanceSquared_=Math.pow(p,2)};
_.M=_.PF.prototype;_.M.setEnabled=function(S){this.enabled_=S};
_.M.disposeInternal=function(){_.PF.superClass_.disposeInternal.call(this);_.W3(this.handle,["touchstart","mousedown"],this.startDrag,!1,this);this.JSC$8152_eventHandler_.removeAll();this.useSetCapture_&&this.JSC$8152_document_.releaseCapture();this.handle=this.target=null};
_.M.startDrag=function(S){var p=S.type=="mousedown";if(!this.enabled_||this.dragging_||p&&(S.event_.button!=0||_.Onr&&S.ctrlKey))this.dispatchEvent("earlycancel");else{if(this.hysteresisDistanceSquared_==0)if(this.dispatchEvent(new Z7("start",this,S.clientX,S.clientY,S)))this.dragging_=!0,p&&S.preventDefault();else return;else p&&S.preventDefault();p=this.JSC$8152_document_;var U=p.documentElement,Y=!this.useSetCapture_;this.JSC$8152_eventHandler_.listen(p,["touchmove","mousemove"],this.handleMove_,
{capture:Y,passive:!1});this.JSC$8152_eventHandler_.listen(p,["touchend","mouseup"],this.endDrag,Y);this.useSetCapture_?(U.setCapture(!1),this.JSC$8152_eventHandler_.listen(U,"losecapture",this.endDrag)):this.JSC$8152_eventHandler_.listen(Pi(p),"blur",this.endDrag);this.scrollTarget_&&this.JSC$8152_eventHandler_.listen(this.scrollTarget_,"scroll",this.onScroll_,Y);this.clientX=this.startX=S.clientX;this.clientY=this.startY=S.clientY;this.screenX=S.screenX;this.screenY=S.screenY;this.deltaX=this.target.offsetLeft;
this.deltaY=this.target.offsetTop;this.pageScroll=Hi(DD(this.JSC$8152_document_))}};
_.M.endDrag=function(S,p){this.JSC$8152_eventHandler_.removeAll();this.useSetCapture_&&this.JSC$8152_document_.releaseCapture();this.dragging_?(this.dragging_=!1,this.dispatchEvent(new Z7("end",this,S.clientX,S.clientY,S,agm(this,this.deltaX),fgw(this,this.deltaY),p||S.type=="touchcancel"))):this.dispatchEvent("earlycancel")};
_.M.handleMove_=function(S){if(this.enabled_){var p=S.clientX-this.clientX,U=S.clientY-this.clientY;this.clientX=S.clientX;this.clientY=S.clientY;this.screenX=S.screenX;this.screenY=S.screenY;if(!this.dragging_){var Y=this.startX-this.clientX,L=this.startY-this.clientY;if(Y*Y+L*L>this.hysteresisDistanceSquared_)if(this.dispatchEvent(new Z7("start",this,S.clientX,S.clientY,S)))this.dragging_=!0;else{this.isDisposed()||this.endDrag(S);return}}U=Coq(this,p,U);p=U.x;U=U.y;this.dragging_&&this.dispatchEvent(new Z7("beforedrag",
this,S.clientX,S.clientY,S,p,U))&&(xxH(this,S,p,U),S.preventDefault())}};
var Coq=function(S,p,U){var Y=Hi(DD(S.JSC$8152_document_));p+=Y.x-S.pageScroll.x;U+=Y.y-S.pageScroll.y;S.pageScroll=Y;S.deltaX+=p;S.deltaY+=U;return new _.Xp(agm(S,S.deltaX),fgw(S,S.deltaY))};
_.PF.prototype.onScroll_=function(S){var p=Coq(this,0,0);S.clientX=this.clientX;S.clientY=this.clientY;xxH(this,S,p.x,p.y)};
var xxH=function(S,p,U,Y){S.target.style.left=U+"px";S.target.style.top=Y+"px";S.dispatchEvent(new Z7("drag",S,p.clientX,p.clientY,p,U,Y))},agm=function(S,p){var U=S.limits;
S=isNaN(U.left)?null:U.left;U=isNaN(U.width)?0:U.width;return Math.min(S!=null?S+U:Infinity,Math.max(S!=null?S:-Infinity,p))},fgw=function(S,p){var U=S.limits;
S=isNaN(U.top)?null:U.top;U=isNaN(U.height)?0:U.height;return Math.min(S!=null?S+U:Infinity,Math.max(S!=null?S:-Infinity,p))};
_.PF.prototype.isDragging=function(){return this.dragging_};
var Z7=function(S,p,U,Y,L,I,V){_.Iw.call(this,S);this.clientX=U;this.clientY=Y;this.browserEvent=L;this.left=I!==void 0?I:p.deltaX;this.top=V!==void 0?V:p.deltaY};
_.q_(Z7,_.Iw);var sB=function(S){this.JSC$8159_map_=new Map;var p=arguments.length;if(p>1){if(p%2)throw Error("oa");for(var U=0;U<p;U+=2)this.set(arguments[U],arguments[U+1])}else S&&this.addAll(S)};
_.M=sB.prototype;_.M.getCount=function(){return this.JSC$8159_map_.size};
_.M.getValues=function(){return Array.from(this.JSC$8159_map_.values())};
_.M.getKeys=function(){return Array.from(this.JSC$8159_map_.keys())};
_.M.containsKey=function(S){return this.JSC$8159_map_.has(S)};
_.M.containsValue=function(S){return this.getValues().some(function(p){return p==S})};
_.M.equals=function(S,p){var U=this;p=p===void 0?function(Y,L){return Y===L}:p;
return this===S?!0:this.JSC$8159_map_.size!=S.getCount()?!1:this.getKeys().every(function(Y){return p(U.JSC$8159_map_.get(Y),S.get(Y))})};
_.M.isEmpty=function(){return this.JSC$8159_map_.size==0};
_.M.clear=function(){this.JSC$8159_map_.clear()};
_.M.remove=function(S){return this.JSC$8159_map_.delete(S)};
_.M.get=function(S,p){return this.JSC$8159_map_.has(S)?this.JSC$8159_map_.get(S):p};
_.M.set=function(S,p){this.JSC$8159_map_.set(S,p);return this};
_.M.addAll=function(S){if(S instanceof sB){S=_.d(S.JSC$8159_map_);for(var p=S.next();!p.done;p=S.next()){var U=_.d(p.value);p=U.next().value;U=U.next().value;this.JSC$8159_map_.set(p,U)}}else if(S)for(S=_.d(Object.entries(S)),p=S.next();!p.done;p=S.next())U=_.d(p.value),p=U.next().value,U=U.next().value,this.JSC$8159_map_.set(p,U)};
_.M.forEach=function(S,p){var U=this;p=p===void 0?this:p;this.JSC$8159_map_.forEach(function(Y,L){return S.call(p,Y,L,U)})};
_.M.clone=function(){return new sB(this)};(function(){for(var S=["ms","moz","webkit","o"],p,U=0;p=S[U]&&!_.UX.requestAnimationFrame;++U)_.UX.requestAnimationFrame=_.UX[p+"RequestAnimationFrame"],_.UX.cancelAnimationFrame=_.UX[p+"CancelAnimationFrame"]||_.UX[p+"CancelRequestAnimationFrame"];if(!_.UX.requestAnimationFrame){var Y=0;_.UX.requestAnimationFrame=function(L){var I=(new Date).getTime(),V=Math.max(0,16-(I-Y));Y=I+V;return _.UX.setTimeout(function(){L(I+V)},V)};
_.UX.cancelAnimationFrame||(_.UX.cancelAnimationFrame=function(L){clearTimeout(L)})}})();
var Ejw=[[],[]],mxH=0,ojl=!1,vjl=0,iSq=function(S,p){var U=vjl++,Y={measureTask:{id:U,fn:S.measure,context:p},mutateTask:{id:U,fn:S.mutate,context:p},state:{},args:void 0,isScheduled:!1};return function(){arguments.length>0?(Y.args||(Y.args=[]),Y.args.length=0,Y.args.push.apply(Y.args,arguments),Y.args.push(Y.state)):Y.args&&Y.args.length!=0?(Y.args[0]=Y.state,Y.args.length=1):Y.args=[Y.state];Y.isScheduled||(Y.isScheduled=!0,Ejw[mxH].push(Y));ojl||(ojl=!0,window.requestAnimationFrame($xI))}},$xI=
function(){ojl=!1;
var S=Ejw[mxH],p=S.length;mxH=(mxH+1)%2;for(var U,Y=0;Y<p;++Y){U=S[Y];var L=U.measureTask;U.isScheduled=!1;L.fn&&L.fn.apply(L.context,U.args)}for(Y=0;Y<p;++Y)U=S[Y],L=U.mutateTask,U.isScheduled=!1,L.fn&&L.fn.apply(L.context,U.args),U.state={};S.length=0};var NdE=_.x1(["about:blank"]),Bdc=_.x1(["javascript:undefined"]),qIl=_.UF(NdE);_.Tl(qIl);var Ayw=_.UF(Bdc);_.Tl(Ayw);var eY=function(S){_.OD.call(this);this.JSC$8165_element_=S;this.listenKeyIn_=_.Kz(this.JSC$8165_element_,"focus",this,!0);this.listenKeyOut_=_.Kz(this.JSC$8165_element_,"blur",this,!0)};
_.q_(eY,_.OD);eY.prototype.handleEvent=function(S){var p=new _.dM(S.event_);p.type=S.type=="focusin"||S.type=="focus"?"focusin":"focusout";this.dispatchEvent(p)};
eY.prototype.disposeInternal=function(){eY.superClass_.disposeInternal.call(this);nz(this.listenKeyIn_);nz(this.listenKeyOut_);delete this.JSC$8165_element_};var tkd=function(S,p){this.JSC$8168_element_=S;this.JSC$8168_dom_=p};var go=function(S,p){RE.call(this,p);this.useIframeMask_=!!S;this.lastFocus_=null;this.resizeBackgroundTask_=iSq({mutate:this.resizeBackground_},this);iSq({mutate:this.updateModalAndBackground_},this)};
_.q_(go,RE);_.M=go.prototype;_.M.focusHandler_=null;_.M.visible_=!1;_.M.bgEl_=null;_.M.bgIframeEl_=null;_.M.tabCatcherElement_=null;_.M.backwardTabWrapInProgress_=!1;_.M.getCssClass=function(){return"goog-modalpopup"};
_.M.getBackgroundElement=function(){return this.bgEl_};
_.M.JSC$8149_createDom=function(){go.superClass_.JSC$8149_createDom.call(this);var S=this.getElement(),p=Hk(this.getCssClass()).split(" ");el(S,p);S.tabIndex=0;_.$Y(S,!1);cyw(this);S0l(this)};
var cyw=function(S){if(S.useIframeMask_&&!S.bgIframeEl_){var p=S.JSC$8147_dom_.JSC$7337_createDom("IFRAME",{frameborder:0,style:"border:0;vertical-align:bottom;"});_.PE(p,qIl);S.bgIframeEl_=p;S.bgIframeEl_.className=S.getCssClass()+"-bg";_.$Y(S.bgIframeEl_,!1);pwP(S.bgIframeEl_,0)}S.bgEl_||(S.bgEl_=S.JSC$8147_dom_.JSC$7337_createDom("DIV",S.getCssClass()+"-bg"),_.$Y(S.bgEl_,!1))},S0l=function(S){S.tabCatcherElement_||(S.tabCatcherElement_=S.JSC$8147_dom_.createElement("SPAN"),_.$Y(S.tabCatcherElement_,
!1),S.tabCatcherElement_.tabIndex=0,S.tabCatcherElement_.style.position="absolute")};
_.M=go.prototype;_.M.resetBackwardTabWrap_=function(){this.backwardTabWrapInProgress_=!1};
_.M.canDecorate=function(S){return!!S&&S.tagName=="DIV"};
_.M.decorateInternal=function(S){go.superClass_.decorateInternal.call(this,S);S=Hk(this.getCssClass()).split(" ");el(this.getElement(),S);cyw(this);S0l(this);this.getElement().tabIndex=0;_.$Y(this.getElement(),!1)};
_.M.enterDocument=function(){this.bgIframeEl_&&_.b1(this.bgIframeEl_,this.getElement());_.b1(this.bgEl_,this.getElement());go.superClass_.enterDocument.call(this);_.jc(this.tabCatcherElement_,this.getElement());this.focusHandler_=new eY(this.JSC$8147_dom_.JSC$7335_document_);Fl(this).listen(this.focusHandler_,"focusin",this.onFocus);pQH(this,!1)};
_.M.exitDocument=function(){this.isVisible()&&this.setVisible(!1);_.t9(this.focusHandler_);go.superClass_.exitDocument.call(this);_.yz(this.bgIframeEl_);_.yz(this.bgEl_);_.yz(this.tabCatcherElement_)};
_.M.setVisible=function(S){if(S!=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_&&pQH(this,S),S){if(this.dispatchEvent("beforeshow")){try{this.lastFocus_=this.JSC$8147_dom_.JSC$7335_document_.activeElement}catch(L){}this.updateModalAndBackground_();Fl(this).listen(this.JSC$8147_dom_.getWindow(),
"resize",this.resizeBackground_).listen(this.JSC$8147_dom_.getWindow(),"orientationchange",this.resizeBackgroundTask_);UZP(this,!0);this.focus();this.visible_=!0;if(this.popupShowTransition_&&this.bgShowTransition_)QO(this.popupShowTransition_,"end",this.onShow,!1,this),this.bgShowTransition_.play(),this.popupShowTransition_.play();else this.onShow()}}else if(this.dispatchEvent("beforehide")){Fl(this).unlisten(this.JSC$8147_dom_.getWindow(),"resize",this.resizeBackground_).unlisten(this.JSC$8147_dom_.getWindow(),
"orientationchange",this.resizeBackgroundTask_);this.visible_=!1;if(this.popupHideTransition_&&this.bgHideTransition_)QO(this.popupHideTransition_,"end",this.onHide,!1,this),this.bgHideTransition_.play(),this.popupHideTransition_.play();else this.onHide();a:{try{var p=this.JSC$8147_dom_,U=p.JSC$7335_document_.body,Y=p.JSC$7335_document_.activeElement||U;if(!this.lastFocus_||this.lastFocus_==U){this.lastFocus_=null;break a}(Y==U||p.contains(this.getElement(),Y))&&this.lastFocus_.focus()}catch(L){}this.lastFocus_=
null}}};
var pQH=function(S,p){S.modalAriaVisibilityHelper_||(S.modalAriaVisibilityHelper_=new tkd(S.JSC$8147_element_,S.JSC$8147_dom_));S=S.modalAriaVisibilityHelper_;if(p){S.hiddenElements_||(S.hiddenElements_=[]);p=S.JSC$8168_dom_.getChildren(S.JSC$8168_dom_.JSC$7335_document_.body);for(var U=0;U<p.length;U++){var Y=p[U],L;if(L=Y!=S.JSC$8168_element_)L=Y.getAttribute("aria-hidden"),L=!(L==null||L==void 0?0:String(L));L&&(Xl(Y,"hidden",!0),S.hiddenElements_.push(Y))}}else if(S.hiddenElements_){for(p=0;p<
S.hiddenElements_.length;p++)S.hiddenElements_[p].removeAttribute("aria-hidden");S.hiddenElements_=null}};
go.prototype.updateModalAndBackground_=function(){this.resizeBackground_();this.reposition()};
var UZP=function(S,p){S.bgIframeEl_&&_.$Y(S.bgIframeEl_,p);S.bgEl_&&_.$Y(S.bgEl_,p);_.$Y(S.getElement(),p);_.$Y(S.tabCatcherElement_,p)};
_.M=go.prototype;_.M.onShow=function(){this.dispatchEvent("show")};
_.M.onHide=function(){UZP(this,!1);this.dispatchEvent("hide")};
_.M.isVisible=function(){return this.visible_};
_.M.focus=function(){this.focusElement_()};
_.M.resizeBackground_=function(){this.bgIframeEl_&&_.$Y(this.bgIframeEl_,!1);this.bgEl_&&_.$Y(this.bgEl_,!1);var S=this.JSC$8147_dom_.JSC$7335_document_;var p=_.kE(Pi(this.JSC$8147_dom_.JSC$7335_document_)||window);var U=Math.max(p.width,Math.max(S.body.scrollWidth,S.documentElement.scrollWidth));S=Math.max(p.height,Math.max(S.body.scrollHeight,S.documentElement.scrollHeight));this.bgIframeEl_&&(_.$Y(this.bgIframeEl_,!0),_.Aec(this.bgIframeEl_,U,S));this.bgEl_&&(_.$Y(this.bgEl_,!0),_.Aec(this.bgEl_,
U,S))};
_.M.reposition=function(){var S;if(_.qXE(this.getElement())=="fixed")var p=S=0;else p=Hi(this.JSC$8147_dom_),S=p.x,p=p.y;var U=cej(this.getElement());var Y=_.kE(Pi(this.JSC$8147_dom_.JSC$7335_document_)||window);S=Math.max(S+Y.width/2-U.width/2,0);p=Math.max(p+Y.height/2-U.height/2,0);XX(this.getElement(),S,p);XX(this.tabCatcherElement_,S,p)};
_.M.onFocus=function(S){this.backwardTabWrapInProgress_?this.resetBackwardTabWrap_():S.target==this.tabCatcherElement_&&Qf(this.focusElement_,0,this)};
_.M.focusElement_=function(){try{this.getElement().focus()}catch(S){}};
_.M.disposeInternal=function(){_.t9(this.popupShowTransition_);this.popupShowTransition_=null;_.t9(this.popupHideTransition_);this.popupHideTransition_=null;_.t9(this.bgShowTransition_);this.bgShowTransition_=null;_.t9(this.bgHideTransition_);this.bgHideTransition_=null;go.superClass_.disposeInternal.call(this)};var w5=function(S,p,U){go.call(this,p,U);this.JSC$8178_class_=S||"modal-dialog";this.buttons_=(new uh).addButton(Y0Q,!0).addButton(Lcc,!1,!0)};
_.q_(w5,go);_.M=w5.prototype;_.M.escapeToCancel_=!0;_.M.hasTitleCloseButton_=!0;_.M.modal_=!0;_.M.draggable_=!0;_.M.backgroundElementOpacity_=.5;_.M.title_="";_.M.JSC$8180_dragger_=null;_.M.JSC$8180_disposeOnHide_=!1;_.M.titleEl_=null;_.M.titleTextEl_=null;_.M.titleTextId_=null;_.M.titleCloseEl_=null;_.M.contentEl_=null;_.M.buttonEl_=null;_.M.getCssClass=function(){return this.JSC$8178_class_};
_.M.setTitle=function(S){this.title_=S;this.titleTextEl_&&_.GX(this.titleTextEl_,S)};
_.M.getTitle=function(){return this.title_};
_.M.getContent=function(){return""};
_.M.getContentElement=function(){this.getElement()||this.render();return this.contentEl_};
var MnI=function(S){S.getElement()||S.render();return S.getElement()};
w5.prototype.getBackgroundElement=function(){this.getElement()||this.render();return w5.superClass_.getBackgroundElement.call(this)};
var ICI=function(S,p){S.backgroundElementOpacity_=p;S.getElement()&&(p=S.getBackgroundElement())&&pwP(p,S.backgroundElementOpacity_)};
w5.prototype.setDraggable=function(S){this.draggable_=S;dZd(this,S&&this.inDocument_)};
w5.prototype.JSC$8180_handleDrag=function(){};
var dZd=function(S,p){var U=Hk(S.JSC$8178_class_+"-title-draggable").split(" ");S.getElement()&&(p?el(S.titleEl_,U):aoQ(S.titleEl_,U));p&&!S.JSC$8180_dragger_?(p=new _.PF(S.getElement(),S.titleEl_),S.JSC$8180_dragger_=p,el(S.titleEl_,U),_.Kz(S.JSC$8180_dragger_,"start",S.setDraggerLimits_,!1,S),_.Kz(S.JSC$8180_dragger_,"drag",S.JSC$8180_handleDrag,!1,S)):!p&&S.JSC$8180_dragger_&&(S.JSC$8180_dragger_.dispose(),S.JSC$8180_dragger_=null)};
_.M=w5.prototype;
_.M.JSC$8149_createDom=function(){w5.superClass_.JSC$8149_createDom.call(this);var S=this.getElement(),p=this.JSC$8147_dom_;this.titleTextId_=this.getId();var U=this.getId()+".contentEl";this.titleEl_=p.JSC$7337_createDom("DIV",this.JSC$8178_class_+"-title",this.titleTextEl_=p.JSC$7337_createDom("SPAN",{className:this.JSC$8178_class_+"-title-text",id:this.titleTextId_},this.title_),this.titleCloseEl_=p.JSC$7337_createDom("SPAN",this.JSC$8178_class_+"-title-close"));ZrE(S,this.titleEl_,this.contentEl_=
p.JSC$7337_createDom("DIV",{className:this.JSC$8178_class_+"-content",id:U}),this.buttonEl_=p.JSC$7337_createDom("DIV",this.JSC$8178_class_+"-buttons"));uGj(this.titleTextEl_,"heading");uGj(this.titleCloseEl_,"button");this.titleCloseEl_.tabIndex=0;Xl(this.titleCloseEl_,"label","Close");uGj(S,"dialog");Xl(S,"labelledby",this.titleTextId_||"");_.$Y(this.titleCloseEl_,this.hasTitleCloseButton_);this.buttons_&&(S=this.buttons_,S.JSC$8181_element_=this.buttonEl_,S.render());_.$Y(this.buttonEl_,!!this.buttons_);
ICI(this,this.backgroundElementOpacity_)};
_.M.decorateInternal=function(S){w5.superClass_.decorateInternal.call(this,S);S=this.getElement();var p=this.JSC$8178_class_+"-content";this.contentEl_=zX(document,null,p,S)[0];this.contentEl_||(this.contentEl_=this.JSC$8147_dom_.JSC$7337_createDom("DIV",p),S.appendChild(this.contentEl_));p=this.JSC$8178_class_+"-title";var U=this.JSC$8178_class_+"-title-text",Y=this.JSC$8178_class_+"-title-close";(this.titleEl_=zX(document,null,p,S)[0])?(this.titleTextEl_=zX(document,null,U,this.titleEl_)[0],this.titleCloseEl_=
zX(document,null,Y,this.titleEl_)[0]):(this.titleEl_=this.JSC$8147_dom_.JSC$7337_createDom("DIV",p),S.insertBefore(this.titleEl_,this.contentEl_));this.titleTextEl_?(this.title_=vRl(this.titleTextEl_),this.titleTextEl_.id||(this.titleTextEl_.id=this.getId())):(this.titleTextEl_=_.n0("SPAN",{className:U,id:this.getId()}),this.titleEl_.appendChild(this.titleTextEl_));this.titleTextId_=this.titleTextEl_.id;Xl(S,"labelledby",this.titleTextId_||"");this.titleCloseEl_||(this.titleCloseEl_=this.JSC$8147_dom_.JSC$7337_createDom("SPAN",
Y),this.titleEl_.appendChild(this.titleCloseEl_));_.$Y(this.titleCloseEl_,this.hasTitleCloseButton_);p=this.JSC$8178_class_+"-buttons";(this.buttonEl_=zX(document,null,p,S)[0])?(this.buttons_=new uh(this.JSC$8147_dom_),this.buttons_.decorate(this.buttonEl_)):(this.buttonEl_=this.JSC$8147_dom_.JSC$7337_createDom("DIV",p),S.appendChild(this.buttonEl_),this.buttons_&&(S=this.buttons_,S.JSC$8181_element_=this.buttonEl_,S.render()),_.$Y(this.buttonEl_,!!this.buttons_));ICI(this,this.backgroundElementOpacity_)};
_.M.enterDocument=function(){w5.superClass_.enterDocument.call(this);Fl(this).listen(this.getElement(),"keydown",this.onKey_).listen(this.getElement(),"keypress",this.onKey_);Fl(this).listen(this.buttonEl_,"click",this.onButtonClick_);dZd(this,this.draggable_);Fl(this).listen(this.titleCloseEl_,"click",this.onTitleCloseClick_);var S=this.getElement();uGj(S,"dialog");this.titleTextEl_.id!==""&&Xl(S,"labelledby",this.titleTextEl_.id);if(!this.modal_){this.modal_=!1;if(this.inDocument_){S=this.JSC$8147_dom_;
var p=this.getBackgroundElement();S.removeNode(this.bgIframeEl_);S.removeNode(p)}this.isVisible()&&pQH(this,!1)}};
_.M.exitDocument=function(){this.isVisible()&&this.setVisible(!1);dZd(this,!1);w5.superClass_.exitDocument.call(this)};
_.M.setVisible=function(S){S!=this.isVisible()&&(this.inDocument_||this.render(),w5.superClass_.setVisible.call(this,S))};
_.M.onShow=function(){w5.superClass_.onShow.call(this);this.dispatchEvent("aftershow")};
_.M.onHide=function(){w5.superClass_.onHide.call(this);this.dispatchEvent("afterhide");this.JSC$8180_disposeOnHide_&&this.dispose()};
_.M.setDraggerLimits_=function(){var S=this.JSC$8147_dom_.JSC$7335_document_,p=_.kE(Pi(S)||window),U=Math.max(S.body.scrollWidth,p.width);S=Math.max(S.body.scrollHeight,p.height);var Y=cej(this.getElement());_.qXE(this.getElement())=="fixed"?this.JSC$8180_dragger_.limits=new hH(0,0,Math.max(0,p.width-Y.width),Math.max(0,p.height-Y.height)):this.JSC$8180_dragger_.limits=new hH(0,0,U-Y.width,S-Y.height)};
_.M.onTitleCloseClick_=function(){Vnt(this)};
var Vnt=function(S){if(S.hasTitleCloseButton_){var p=S.buttons_,U=p&&p.cancelButton_;U?(p=p.get(U),S.dispatchEvent(new wo(U,p))&&S.setVisible(!1)):S.setVisible(!1)}},T7j=function(S){S.hasTitleCloseButton_=!1;
S.titleCloseEl_&&_.$Y(S.titleCloseEl_,S.hasTitleCloseButton_)};
w5.prototype.disposeInternal=function(){this.buttonEl_=this.titleCloseEl_=null;w5.superClass_.disposeInternal.call(this)};
w5.prototype.onButtonClick_=function(S){a:{for(S=S.target;S!=null&&S!=this.buttonEl_;){if(S.tagName=="BUTTON")break a;S=S.parentNode}S=null}if(S&&!S.disabled){S=S.name;var p=this.buttons_.get(S);this.dispatchEvent(new wo(S,p))&&this.setVisible(!1)}};
w5.prototype.onKey_=function(S){var p=!1,U=!1,Y=this.buttons_,L=S.target;if(S.type=="keydown")if(this.escapeToCancel_&&S.keyCode==27){var I=Y&&Y.cancelButton_;L=L.tagName=="SELECT"&&!L.disabled;I&&!L?(U=!0,p=Y.get(I),p=this.dispatchEvent(new wo(I,p))):L||(p=!0)}else{if(S.keyCode==9&&S.shiftKey&&L==this.getElement()){this.backwardTabWrapInProgress_=!0;try{this.tabCatcherElement_.focus()}catch(z){}Qf(this.resetBackwardTabWrap_,0,this)}}else if(S.keyCode==13){if(L.tagName=="BUTTON"&&!L.disabled)I=L.name;
else if(L==this.titleCloseEl_)Vnt(this);else if(Y){var V=Y.defaultButton_,W;if(W=V)a:{W=K2("BUTTON",Y.JSC$8181_element_);for(var O,D=0;O=W[D];D++)if(O.name==V||O.id==V){W=O;break a}W=null}L=(L.tagName=="TEXTAREA"||L.tagName=="SELECT"||L.tagName=="A")&&!L.disabled;!W||W.disabled||L||(I=V)}I&&Y&&(U=!0,p=this.dispatchEvent(new wo(I,String(Y.get(I)))))}else L!=this.titleCloseEl_||S.keyCode!=32&&S.key!=" "||Vnt(this);if(p||U)S.stopPropagation(),S.preventDefault();p&&this.setVisible(!1)};
var wo=function(S,p){this.type="dialogselect";this.key=S;this.caption=p};
_.q_(wo,_.Iw);var uh=function(S){sB.call(this);S||DD();this.cancelButton_=this.JSC$8181_element_=this.defaultButton_=null};
_.q_(uh,sB);_.M=uh.prototype;_.M.clear=function(){sB.prototype.clear.call(this);this.defaultButton_=this.cancelButton_=null};
_.M.set=function(S,p,U,Y){sB.prototype.set.call(this,S,p);U&&(this.defaultButton_=S);Y&&(this.cancelButton_=S);return this};
_.M.addButton=function(S,p,U){return this.set(S.key,S.caption,p,U)};
_.M.render=function(){if(this.JSC$8181_element_){_.Ch(this.JSC$8181_element_,nsG);var S=DD(this.JSC$8181_element_);this.forEach(function(p,U){p=S.JSC$7337_createDom("BUTTON",{name:U},p);U==this.defaultButton_&&(p.className="goog-buttonset-default");this.JSC$8181_element_.appendChild(p)},this)}};
_.M.decorate=function(S){if(S&&S.nodeType==1){this.JSC$8181_element_=S;S=K2("BUTTON",this.JSC$8181_element_);for(var p,U,Y,L=0;p=S[L];L++)if(U=p.name||p.id,Y=vRl(p)||p.value,U){var I=L==0;this.set(U,Y,I,p.name=="cancel");I&&_.vX(p,"goog-buttonset-default")}}};
_.M.getElement=function(){return this.JSC$8181_element_};
var Y0Q={key:"ok",caption:"OK"},Lcc={key:"cancel",caption:"Cancel"},Wcm={key:"yes",caption:"Yes"},OUI={key:"no",caption:"No"},k2l={key:"save",caption:"Save"},HUq={key:"continue",caption:"Continue"};typeof document!="undefined"&&((new uh).addButton(Y0Q,!0,!0),(new uh).addButton(Y0Q,!0).addButton(Lcc,!1,!0),(new uh).addButton(Wcm,!0).addButton(OUI,!1,!0),(new uh).addButton(Wcm).addButton(OUI,!0).addButton(Lcc,!1,!0),(new uh).addButton(HUq).addButton(k2l).addButton(Lcc,!0,!0));_.q_(ICE,w5);_.q_(dZw,l9);var DZP=_.x1(["//www-onepick-opensocial.googleusercontent.com/gadgets/js/rpc.js?c=1&container=onepick"]),zwe=_.x1(["//apis.google.com/js/rpc.js"]),Qdq=_.UF(DZP),zwd=_.UF(zwe),T7G=null;var aW=function(S,p){_.OD.call(this);this.JSC$8190_element_=S;S=_.BA(this.JSC$8190_element_)?this.JSC$8190_element_:this.JSC$8190_element_?this.JSC$8190_element_.body:null;this.isRtl_=!!S&&_.Ute(S);this.listenKey_=_.Kz(this.JSC$8190_element_,_.SR?"DOMMouseScroll":"mousewheel",this,p)};
_.q_(aW,_.OD);aW.prototype.handleEvent=function(S){var p=0,U=0,Y=S.event_;Y.type=="mousewheel"?(S=QdE(-Y.wheelDelta),Y.wheelDeltaX!==void 0?(p=QdE(-Y.wheelDeltaX),U=QdE(-Y.wheelDeltaY)):U=S):(S=Y.detail,S>100?S=3:S<-100&&(S=-3),Y.axis!==void 0&&Y.axis===Y.HORIZONTAL_AXIS?p=S:U=S);typeof this.maxDeltaX_==="number"&&(p=_.F7(p,-this.maxDeltaX_,this.maxDeltaX_));typeof this.maxDeltaY_==="number"&&(U=_.F7(U,-this.maxDeltaY_,this.maxDeltaY_));this.isRtl_&&(p=-p);p=new nsj(S,Y,p,U);this.dispatchEvent(p)};
var QdE=function(S){return _.pT&&(_.Onr||HnN)&&S%40!=0?S:S/40};
aW.prototype.disposeInternal=function(){aW.superClass_.disposeInternal.call(this);nz(this.listenKey_);this.listenKey_=null};
var nsj=function(S,p,U,Y){_.dM.call(this,p);this.type="mousewheel";this.detail=S;this.deltaX=U;this.deltaY=Y};
_.q_(nsj,_.dM);_.p4=function(S){var p="instance_";if(S.instance_&&S.hasOwnProperty(p))return S.instance_;p=new S;return S.instance_=p};var DZu;var JWt=_.x1(["https://about:blank"]),yWe=_.x1(['javascript:""']),KcI=_.x1(["about:blank"]);_.q_(i9,ICE);_.M=i9.prototype;_.M.JSC$8198_url_="";_.M.JSC$8198_iframe_=null;_.M.iframeLoaded_=!1;_.M.loadedFired_=!1;_.M.callback_=function(){};
_.M.enterDocument=function(){i9.superClass_.enterDocument.call(this);k2X(this.getBackgroundElement(),Fl(this))};
_.M.render=function(S){var p=this;i9.superClass_.render.call(this,S);this.useGapi_?K4q(this.iframeManager_,window).then(function(){return bUQ(p)}).then(null,function(){p.callback_({action:"error"})}):jdt(this)};
var bUQ=function(S){var p=S.JSC$8147_dom_.JSC$7337_createDom("div",["picker-dialog-content","picker-frame"]);_.$Y(p,!1);S.getContentElement().appendChild(p);return bSE(S.iframeManager_,p,function(U){var Y=BmH(U["iframe-command"]);switch(Y.getCommand()){case 1:U=S.callback_;Y=_.Sa(Y,vD,2);var L="";switch(Y.getStatus()){case 2:L="cancel";break;case 1:L="picked";break;case 3:L="error"}var I=_.p2(Y,zR,2,_.Ur(a2R));Y=I.length===0?{action:L}:UxH(I,L,_.Sa(Y,$te,7));U.call(S,Y);S.setVisible(!1);break;case 4:T7j(S);
S.callback_({action:"loaded"});break;case 7:case 8:U=S.callback_;a:{L=Y.getCommand();I=_.Sa(Y,vD,2);switch(L){case 7:L="uploadScheduled";break;case 8:L="uploadStateChange";break;default:Y={};break a}Y=_.p2(I,zR,2,_.Ur(a2R));if(Y.length===0)Y={action:L};else{var V=_.Sa(I,$te,7);I=V&&_.jR(V,1);V=vYH(V);Y=N5P(Y,L,I,V)}}U.call(S,Y)}},S.JSC$8198_url_,S.targetId_,S.rpcToken_).then(function(U){S.JSC$8198_iframe_=U.getIframeEl();
rWE(S);_.$Y(S.JSC$8198_iframe_.parentElement,!0);_.vX(S.getElement(),"picker-dialog");G2d(S);return U})},jdt=function(S){S.JSC$8198_iframe_=S.JSC$8147_dom_.JSC$7337_createDom("IFRAME",{id:S.targetId_,
name:S.targetId_,"class":"picker-frame",frameBorder:"0",allow:"camera"});_.PE(S.JSC$8198_iframe_,hwl(S));_.vX(S.getElement(),"picker-dialog");S.getContentElement().appendChild(S.JSC$8198_iframe_);Fl(S).listen(S.JSC$8198_iframe_,"load",function(){return void rWE(S)});
S.JSC$8198_iframe_.src=S.JSC$8198_url_;G2d(S)},Fcj=function(S){Rwt(S,(0,_.RW)(function(p){p.setAuthToken(this.targetId_,this.rpcToken_)},S))},G2d=function(S){var p=_.oW(_.mz(S.JSC$8198_url_),"title");
p&&S.setTitle(p)},hwl=function(S){return _.Ore("Internet Explorer")>=7&&_.Lr(S.JSC$8198_url_,"https")?_.UF(JWt):_.cO?_.UF(yWe):_.UF(KcI)},rWE=function(S){Fcj(S);
S.iframeLoaded_=!0;S.JSC$8198_iframe_.tabIndex=0;S.isVisible()&&S.focus()};
i9.prototype.handleKeydown_=function(S){S.keyCode==27&&(this.setVisible(!1),this.callback_({action:"cancel"}),S.stopPropagation(),S.preventDefault())};
var Rwt=function(S,p){var U=S.JSC$8196_gadgetsDomHelper_;WcN(function(){p(U.getWindow().gadgets.rpc)},U)};
i9.prototype.setUrl=function(S){S=_.vm(new _.ma(S),"rpcService",this.targetId_);_.vm(S,"rpctoken",this.rpcToken_);_.iR(S,"rpctoken="+this.rpcToken_);_.ED(S,"https");this.JSC$8198_url_=S.toString();this.JSC$8198_iframe_&&(this.JSC$8198_iframe_.src=this.JSC$8198_url_)};
var XQt=function(S,p){S.callback_=p;Rwt(S,(0,_.RW)(function(U){U.register(this.targetId_,(0,_.RW)(this.handlePickerAction_,this))},S))};
i9.prototype.handlePickerAction_=function(S){var p=S.action;p=="loaded"&&(this.loadedFired_=!0,PbQ(this,new MnE(this.isVisible())),ZUm(this),T7j(this),Fl(this).unlisten(this.JSC$8147_dom_.getWindow(),"keydown",this.handleKeydown_),this.JSC$8198_iframe_.tabIndex=0);p!="picked"&&p!="cancel"||this.setVisible(!1);this.callback_(S)};
var ZUm=function(S){S.JSC$8198_appId_&&PbQ(S,new Lcr(S.JSC$8198_appId_,window.location.protocol+"//"+window.location.host))};
i9.prototype.setRelayUrl=function(S){Rwt(this,(0,_.RW)(function(p){p.setRelayUrl(this.targetId_,S)},this))};
var PbQ=function(S,p){S.useGapi_&&RTI(p,S.iframeManager_).then(null,function(){S.callback_({action:"error"})});
Rwt(S,(0,_.RW)(function(U){U.call(this.targetId_,"picker",null,p)},S))};
i9.prototype.resizePicker_=function(){var S=Pi(this.JSC$8147_dom_.JSC$7335_document_)||window;if(_.oW(_.mz(this.JSC$8198_url_),"ignoreLimits")=="true")S=new _.OF(this.preferredDialogWidth_,this.preferredDialogHeight_);else if(_.oW(_.mz(this.JSC$8198_url_),"shadeDialog")=="true"){var p=MnI(this);p=Yll(p);var U=_.kE(S);S=U.width-80;U=U.height-40;p&&(S-=p.left?p.left:0,S-=p.right?p.right:0,U-=p.top?p.top:0,U-=p.bottom?p.bottom:0);S=new _.OF(S>0?S:0,U>0?U:0)}else(p=this.preferredDialogWidth_)?(p=Math.max(320,
Math.min(1051,p)),(U=this.preferredDialogHeight_)||(U=_.kE(S).height*.85),U=Math.max(480,Math.min(650,U))):(p=_.kE(S),U=p.width*.618,U=U<p.height?Math.round(Math.max(480,Math.min(650,U*.85))):Math.round(Math.max(480,Math.min(650,p.height*.85))),p=Math.round(U/.618)),S=_.kE(S),p=Math.min(p,Math.max(S.width,320)),U=Math.min(U,Math.max(S.height,480)),S=new _.OF(p,U);_.Aec(this.getContentElement(),S);this.reposition()};
i9.prototype.reposition=function(){if(_.oW(_.mz(this.JSC$8198_url_),"shadeDialog")=="true"){var S=cej(this.getElement()),p=_.kE(this.JSC$8147_dom_.getWindow());S=Math.floor(p.width/2-S.width/2);p=MnI(this);if(p=Yll(p)){var U=p.left?p.left:0;U+=p.right?p.right:0;S=Math.floor(S-U/2)}S=S>0?S:0;p=Hi(this.JSC$8147_dom_).y;XX(this.getElement(),S,p)}else i9.superClass_.reposition.call(this)};
i9.prototype.setVisible=function(S){if(S!=this.isVisible()&&this.autoSizeDialog_){var p=this.JSC$8147_dom_.getWindow();S?(this.resizePicker_(),Fl(this).listen(p,"resize",this.resizePicker_),this.iframeLoaded_||Fl(this).listen(p,"keydown",this.handleKeydown_)):(Fl(this).unlisten(p,"resize",this.resizePicker_),this.iframeLoaded_||Fl(this).unlisten(p,"keydown",this.handleKeydown_))}i9.superClass_.setVisible.call(this,S);PbQ(this,new MnE(S))};
i9.prototype.focus=function(){i9.superClass_.focus.call(this);if(this.JSC$8198_iframe_&&this.iframeLoaded_&&this.loadedFired_)try{this.JSC$8198_iframe_.focus()}catch(S){}};var hB=function(S,p){p=p===void 0?i9:p;l9.call(this,S);this.pickerConstructor=p;this.urlParamMap_=new Map;this.urlParamMap_.set("protocol","gadgets");(S=window.location.origin)||(S=window.location.protocol+"//"+window.location.host);S&&this.urlParamMap_.set("origin",S);this.postProcessors_=[]};
_.r(hB,dZw);hB.prototype.JSC$8203_disposeOnHide_=!1;
hB.prototype.build=function(){this.JSC$8104_appId_&&this.urlParamMap_.has("oauth_token")&&this.urlParamMap_.set("appId",this.JSC$8104_appId_);this.getRelayUrl()||this.setRelayUrl(_.v3(_.iR(_.$x(_.mz(window.location.href)),""),"/favicon.ico").toString());this.urlParamMap_.set("ifls",Date.now());if(this.urlParamMap_.get("minimal"))throw Error("jb");var S=new this.pickerConstructor(sdq(this).toString(),!0,null,this.dialogWidth_,this.dialogHeight_,"",void 0,!1,!1);S.JSC$8180_disposeOnHide_=this.JSC$8203_disposeOnHide_;
S.JSC$8198_appId_=this.JSC$8104_appId_;S.loadedFired_&&ZUm(S);XQt(S,this.callback_);return S};
var ewc=function(S){S.urlParamMap_.set("multiselectEnabled","true");return S};
hB.prototype.getHeight=function(){return this.dialogHeight_};
hB.prototype.getRelayUrl=function(){return this.urlParamMap_.get("parent")};
hB.prototype.getTitle=function(){return this.urlParamMap_.get("title")};
hB.prototype.getWidth=function(){return this.dialogWidth_};
var gsE=function(S){S.JSC$8203_disposeOnHide_=void 0;return S};
hB.prototype.setRelayUrl=function(S){this.urlParamMap_.set("parent",S);return this};
var uMw=function(S,p){S.urlParamMap_.set("selectButtonLabel",p);return S};
hB.prototype.setSize=function(S,p){this.dialogWidth_=S;this.dialogHeight_=p;return this};
hB.prototype.setTitle=function(S){this.urlParamMap_.set("title",S);return this};
var sdq=function(S){S.postProcessors_.length&&S.urlParamMap_.set("pp",JSON.stringify(S.postProcessors_));S.urlParamMap_.set("nav",xdI(S.nav_));var p=new _.ma(S.getBaseUrl());S.urlParamMap_.forEach(function(U,Y){_.vm(p,Y,U)});
return p};var aCH=function(S,p){S.name!==void 0?(this.name=S.name,this.code=wQm[S.name]):(this.code=S=S.code,this.name=lCQ(S));_.Sw.call(this,Hyw("%s %s",this.name,p))};
_.q_(aCH,_.Sw);var lCQ=function(S){var p=_.h9.findKey(wQm,function(U){return S==U});
if(p===void 0)throw Error("lb`"+S);return p},lh={},wQm=(lh.AbortError=3,lh.EncodingError=5,lh.InvalidModificationError=9,lh.InvalidStateError=7,lh.NotFoundError=1,lh.NotReadableError=4,lh.NoModificationAllowedError=6,lh.PathExistsError=12,lh.QuotaExceededError=10,lh.SecurityError=2,lh.SyntaxError=8,lh.TypeMismatchError=11,lh);var fCl=function(S,p){_.Iw.call(this,S.type,p);this.event_=S};
_.q_(fCl,_.Iw);var Cbc=function(S,p,U){U===void 0&&(U=S.size);return S.slice?S.slice(p,U):null};var yWd=new WeakMap,JWG=function(S,p){S=[S];for(var U=p.length-1;U>=0;--U)S.push(typeof p[U],p[U]);return S.join("\v")};_.bUw(function(){if(!_.UX.Blob)return!1;var S=new Uint8Array(100);try{var p=new Blob([S])}catch(U){return!1}return p.size!=100?!1:!0});
var xZH=_.bUw(function(){if(!_.UX.Blob)return!1;var S=new Uint8Array(100);try{var p=new Blob([S])}catch(U){return!1}return Cbc(p,0,1)===null?!1:!0});_.UX.U3bHHf!=null||(_.UX.U3bHHf=0);_.UX.U3bHHf++;var jde={};var AY=void 0;var G2w=Symbol("tb");var aCw=cm("WizInjectionContext_Dispatcher");var ewr=cm("WizInjectionContext_RootElement");var uMk=cm("WizInjectionContext_AppContext"),gsq=cm("WizInjectionContext_ModelRootElement"),wQN=cm("WizInjectionContext_RendererData"),lCw=cm("WizInjectionContext_InjectingConstructor"),sde=cm("WizInjectionContext_AsyncDeps"),fCX={};var vsw=!1;var B7G={enableAttributeSanitization:!0,enableComponentStacksInErrorMessages:!0,enableContextBasedComponentStacks:!1,enableContextPerComponent:MGq,enableLazyTsx:I2k,enablePerformanceTiming:!1,alwaysTrackContexts:!1,enableClientOnlyWizVeLogging:!0,disableSoyJsRenderEvents:!1,legacyTriggerSoyRendererEvents:!1};var Yj=Object.assign({},{attributes:{},handleError:function(S){throw S;}},B7G);var Esw=Symbol("xb"),a5N=Symbol("yb"),EUq=Symbol("zb"),CiG=Symbol("Ab"),BEG=oP(function(S){return LS(S)&&Esw in S});var UTX=Symbol("Bb"),aE={},SgR=(aE[UTX]=!0,aE.debugName="[component]",aE.getComponentStack=function(){for(var S=[],p=this;p;)Ygw(p)&&S.push(p.debugName),p=p.parent;return S},aE.registerSignal=function(){},aE.registerEffect=function(){},aE);var Mx=null,dd=!1,TER=1,Wz=Symbol("Cb"),Qk={version:0,lastCleanEpoch:0,dirty:!1,producerNode:void 0,producerLastReadVersion:void 0,producerIndexOfThis:void 0,nextProducerIndex:0,liveConsumerNode:void 0,liveConsumerIndexOfThis:void 0,consumerAllowSignalWrites:!1,consumerIsAlwaysLive:!1,kind:"unknown",producerMustRecompute:function(){return!1},
producerRecomputeValue:function(){},
consumerMarkedDirty:function(){},
consumerOnSignalRead:function(){}};var fX=Symbol("Db"),CX=Symbol("Eb"),TV=Symbol("Fb"),nUX=Object.assign({},Qk,{value:fX,dirty:!0,error:null,equal:LYR,kind:"computed",producerMustRecompute:function(S){return S.value===fX||S.value===CX},
producerRecomputeValue:function(S){if(S.value===CX)throw Error("da");var p=S.value;S.value=CX;var U=DTR(S),Y=!1;try{var L=S.computation();I8(null);Y=p!==fX&&p!==TV&&L!==TV&&S.equal(p,L)}catch(I){L=TV,S.error=I}finally{z8R(S,U)}Y?S.value=p:(S.value=L,S.version++)}});var bAu=function(){throw Error();};var rIw=null,yIN=Object.assign({},Qk,{equal:LYR,value:void 0,kind:"signal"});Object.assign({},Qk,{value:fX,dirty:!0,error:null,equal:LYR,kind:"linkedSignal",producerMustRecompute:function(S){return S.value===fX||S.value===CX},
producerRecomputeValue:function(S){if(S.value===CX)throw Error("da");var p=S.value;S.value=CX;var U=DTR(S);try{var Y=S.source();var L=S.computation(Y,p===fX||p===TV?void 0:{source:S.sourceValue,value:p});S.sourceValue=Y}catch(I){L=TV,S.error=I}finally{z8R(S,U)}p!==fX&&L!==TV&&S.equal(p,L)?S.value=p:(S.value=L,S.version++)}});Object.assign({},Qk,{consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!1,consumerMarkedDirty:function(S){S.schedule!==null&&S.schedule(S.ref)},
hasRun:!1,cleanupFn:function(){}});var h8d=Symbol("Gb"),Hz=Symbol("Hb");var Dg=Array.isArray;var uuG;var mZj={},l5w=gUN(Object.assign({},{consumerAllowSignalWrites:!0},mZj)),z2=gUN(Object.assign({},{consumerAllowSignalWrites:!0},mZj));var yk=0,xg=function(){this.queue=new Set};
xg.prototype.remove=function(S){this.queue.delete(S)};
xg.prototype.clear=function(){this.queue.clear()};
var osq=function(){xg.apply(this,arguments)};
_.r(osq,xg);osq.prototype.schedule=function(S){this.queue.add(S)};
osq.prototype.flush=function(){if(this.queue.size)for(var S=_.d(this.queue),p=S.next();!p.done;p=S.next()){p=p.value;this.queue.delete(p);try{p.run()}catch(U){vsH(U)}}};
var $Ze=new osq,EB=function(){xg.apply(this,arguments)};
_.r(EB,xg);var iUc=function(){EB.apply(this,arguments)};
_.r(iUc,EB);iUc.prototype.schedule=function(S){S.hasRun?this.queue.add(S):S.run()};
iUc.prototype.flush=function(){if(this.queue.size){var S=this.queue;this.queue=new Set;qgX(S)}};
var f5e=new iUc,N7E=function(){EB.apply(this,arguments)};
_.r(N7E,EB);N7E.prototype.schedule=function(S){var p=this;return _.T(function(U){if(U.nextAddress==1)return S.hasRun?U.jumpTo(2):_.k(U,Promise.resolve(),3);if(U.nextAddress!=2)return S.run(),U.return();p.queue.add(S);_.OV(U)})};
N7E.prototype.flush=function(){var S=this;return _.T(function(p){if(p.nextAddress==1)return S.queue.size?_.k(p,Promise.resolve(),2):p.return();qgX(S.queue);_.OV(p)})};
var mTu=new N7E,B7j=function(){EB.apply(this,arguments)};
_.r(B7j,EB);B7j.prototype.schedule=function(S){this.queue.add(S)};
B7j.prototype.flush=function(){this.queue.size&&qgX(this.queue)};
var xTN=new B7j,iAX=[f5e,$Ze,xTN,mTu],q0j=[f5e,xTN,mTu],vUw=[];rIw=function(){NEN();for(var S=_.d(vUw),p=S.next();!p.done;p=S.next())p=p.value,p()};
var vsH=YR;var jk=Symbol("Mb");var KS=null,SPd,pAr=null,Uze;var mn={},AWI=Object.assign({},Qk,(mn[Esw]=!0,mn.effectType=a5N,mn.isResettableContext=!0,mn.producerNode=void 0,mn.hasRun=!1,mn.effectFn=null,mn.consumerIsAlwaysLive=!0,mn.consumerAllowSignalWrites=!0,mn.consumerMarkedDirty=oUw,mn.run=function(){if(this.effectFn!==null&&!this.isDisposed){if(dd)throw Error("Nb");this.dirty=!1;if(!this.hasRun||WYE(this)){this.hasRun=!0;ZUN(this);var S=tY(this),p=DTR(this);AWE("effectRun",this.debugName);try{hy(this.effectFn,this.componentStack)}catch(U){throw Yj.enableContextBasedComponentStacks&&
GV(U),U;}finally{tnN("effectRun",this.debugName),z8R(this,p),tY(S)}}}},mn.componentStack=void 0,mn.debugName="[effect]",mn[Symbol.dispose]=function(){M9G(this);
if(Vk(this))for(var S=0;S<this.producerNode.length;S++)I5R(this.producerNode[S],this.producerIndexOfThis[S]);this.producerNode.length=this.producerLastReadVersion.length=this.producerIndexOfThis.length=0;this.liveConsumerNode&&(this.liveConsumerNode.length=this.liveConsumerIndexOfThis.length=0);S=_.d(q0j);for(var p=S.next();!p.done;p=S.next())p.value.remove(this);Pbw(this)},mn));var MaX=Object.assign({},AWI,{effectType:EUq});var Iuu=Symbol("Ob");var dze=Object.assign({},AWI,{effectType:a5N});var mzG=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 pU=Symbol("Pb");var ks=function(){},ye=function(S){this.props=S;
this.__unmounted=!1};
ye.prototype.didPatch=function(){};
ye.prototype.didMount=function(){};
ye.prototype.didUnmount=function(){};
ye.prototype.didUpdate=function(){};var Wjk={align:1,alt:1,"aria-activedescendant":10,"aria-atomic":1,"aria-autocomplete":1,"aria-busy":1,"aria-checked":1,"aria-controls":10,"aria-current":1,"aria-describedby":10,"aria-disabled":1,"aria-dropeffect":1,"aria-expanded":1,"aria-haspopup":1,"aria-hidden":1,"aria-invalid":1,"aria-label":1,"aria-labelledby":10,"aria-level":1,"aria-live":1,"aria-multiline":1,"aria-multiselectable":1,"aria-orientation":1,"aria-owns":10,"aria-posinset":1,"aria-pressed":1,"aria-readonly":1,"aria-relevant":1,"aria-required":1,
"aria-selected":1,"aria-setsize":1,"aria-sort":1,"aria-valuemax":1,"aria-valuemin":1,"aria-valuenow":1,"aria-valuetext":1,async:8,autocapitalize:1,autocomplete:1,autocorrect:1,autofocus:1,autoplay:1,bgcolor:1,border:1,cellpadding:1,cellspacing:1,checked:1,cite:1,"class":1,color:1,cols:1,colspan:1,contenteditable:1,controls:1,controlslist:1,crossorigin:1,datetime:1,dir:8,disabled:1,download:1,draggable:1,enctype:1,face:1,"for":10,formenctype:1,frameborder:1,height:1,hidden:1,href:4,hreflang:1,id:10,
ismap:1,itemid:1,itemprop:1,itemref:1,itemscope:1,itemtype:1,label:1,lang:1,list:10,loading:8,loop:1,max:1,maxlength:1,media:1,min:1,minlength:1,multiple:1,muted:1,name:10,nonce:1,open:1,placeholder:1,playsinline:1,poster:1,preload:1,rel:1,required:1,reversed:1,role:1,rows:1,rowspan:1,selected:1,shape:1,size:1,sizes:1,slot:1,span:1,spellcheck:1,src:4,srcset:12,start:1,step:1,style:5,summary:1,tabindex:1,target:8,title:1,translate:1,type:1,valign:1,value:1,width:1,wrap:1},T6w={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}]}},ZTw={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},Hfe=[{auto:!0,ltr:!0,rtl:!0},{async:!0},{eager:!0,lazy:!0},{_self:!0,_blank:!0}],kMd={"*":{async:1,dir:0,loading:2,target:3}};var tnm=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i,oE={},zCX=(oE[1]=null,oE[2]=function(S,p){return p instanceof RK?Xq(p):nh.toString()},oE[3]=function(S,p){return HE(p)?_.DO(p):tnm.test(String(p))?String(p):nh.toString()},oE[4]=function(S,p){return p instanceof IK?_.Tl(p):nh.toString()},oE[5]=function(S,p){return String(p)},oE[7]=null,oE[8]=null,oE[10]=null,oE);var cSR=Symbol("Rb");var mew=function(S){var p=cWH,U=S,Y="",L="",I=1;S<0&&(S=-S);if(S===Infinity)S=(Infinity*Math.sign(U)).toString();else{for(var V=0;V<Sgm.length;V++){var W=Sgm[V];I=p[W];if(S>=I||I<=1&&S>.1*I){Y=W;break}}Y?(Y+="B",L=" "):I=1;S=Math.round(U/I*10)/10+L+Y}return S},Sgm="Y Z E P T G M K  m u n".split(" "),cWH={"":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};_.pSE=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 d7={};RegExp.prototype.hasOwnProperty("sticky");var $zR=function(S){S=String(S);for(var p=function(Y,L,I){for(var V=Math.min(L.length-I,Y.length),W=0;W<V;W++){var O=L[I+W];if(Y[W]!==("A"<=O&&O<="Z"?O.toLowerCase():O))return!1}return!0},U=0;(U=S.indexOf("<",U))!=-1;){if(p("\x3c/script",S,U)||p("\x3c!--",S,U))return"zSoyz";
U+=1}return S};var uo={default:"__default"};var jtG=Object.prototype.hasOwnProperty;JEG.prototype=Object.create(null);var BH=hCe();var qx=null;var luw=function(S){this.created=[];this.deleted=[];this.node=S};var auw=typeof Node!=="undefined"&&Node.prototype.getRootNode||function(){for(var S=this,p=S;S;)p=S,S=S.parentNode;return p};var Fjw=function(S,p){this._attrsArr=null;this.staticsApplied=!1;this.nameOrCtor=S;this.key=p;this.text=void 0};var fS=null,xj=null,lo=null,m4=null,eCw=[],ste=Pge,vz=[],Bz=[],tVd=function(S){return fuR(function(p,U,Y){lo=xj=p;xj=null;U(Y);ZfX(null);xj=lo;lo=lo.parentNode;return p},S)}(),ASe=function(S){return fuR(function(p,U,Y){var L={nextSibling:p};
xj=L;U(Y);lo&&ZfX(p.nextSibling);return L===xj?null:xj},S)}();var Ay=[],xzN=0;var ty=new JEG;var Ge=new JEG;var UTl=hCe(),v7w=UTl[uo.default],ifu=UTl.style,o7E=["focusin","focusout"];var sVk=function(){},Keu=function(){},lPu=function(){},gvX=function(){};var Sn=Symbol("Xb");var S9G,cEN=tau;var T2=Symbol("Yb");var zYe={};var wHu=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(" ")),
urw=new Set(["a","font","script","style","title"]);var Qe={afterOpen:function(){},
onElementDeleted:function(){},
beforeVisit:function(){},
beforeRender:function(){},
afterRender:function(){},
didMount:function(){},
didPatch:function(){},
didUnmount:function(){},
didUpdate:function(){}};var nU=null,JW=function(S,p){ye.call(this,S);var U=this;this.functionComponent=p;this.hooks=[];this.hookCounter=0;this.disposeEffects=XG(function(Y){U.effectContext=Y;_.FG(function(){GYw(U,U.el)})},Yj.alwaysTrackContexts||!!AY)};
_.r(JW,ye);JW.prototype.render=function(S){var p=nU;nU=this;this.hookCounter=0;var U=I8(z2),Y=tY(this.effectContext);try{return AWE("render",this.componentName),this.functionComponent(S)}finally{tnN("render",this.componentName),tY(Y),I8(U),nU=p}};
_.$u.Object.defineProperties(JW.prototype,{componentName:{configurable:!0,enumerable:!0,get:function(){return t9E(this.functionComponent)}}});var aPe=Symbol("lc"),PQN=function(S,p,U){this.kind=S;this.props=p;this.children=U};
_.r(PQN,ks);PQN.prototype.render=function(){return XHX(this.kind,this.props,this.children)};
PQN.prototype.getChildren=function(){return this.children};var CQu=[];bAu=function(S){throw Error("sb`"+S.debugName);};
(function(){var S=qx;qx=function(p){S==null||S(p);xWG(p)}})();var YgH=void 0,LYm={},M9j=new WeakMap,Evu={getComponent:function(S){if(S.hasAttribute("ng-version"))return LYm;if(!S.__wizComponent)return null;S=S.__wizComponent;M9j.set(S.propsAndState,S);return S.propsAndState},
getDirectiveMetadata:function(S){if(S===LYm)return{framework:"wiz",name:"<Root>",props:{}};S=M9j.get(S);if(!S)throw Error("mc");return{framework:"wiz",name:S.name,props:Object.fromEntries(Object.keys(S.props).map(function(p){return[p,p]}))}},
"\u0275setProfiler":function(S){var p;(p=YgH)==null||p();YgH=$TG(function(){S(2)})},
isSignal:function(S){return typeof S==="function"&&S[Wz]!==void 0}};_.n.debugName="RlDudd";var ovr={nonNullableCondIsNull:function(){return Error("qc")}};var q9w=function(){this.map=new Map};
q9w.prototype.push=function(S,p){var U=this.map;U.has(S)&&(this.multi||(this.multi=new Map),this.multi.set(p,U.get(S)));U.set(S,p)};
q9w.prototype.pop=function(S){var p=this.map,U=p.get(S),Y;U!==void 0&&((Y=this.multi)==null?0:Y.has(U))?(p.set(S,this.multi.get(U)),this.multi.delete(U)):p.delete(S);return U};_.KU.debugName="nsTGHd";_.bb.debugName="tbhMcf";_.jn.debugName="zyMFzb";_.r7.debugName="vI1rtf";var prw={LOG_NULL_EL_REF_VALUE:function(){return Error("rc")},
OUT_OF_ORDER_HOOK_CALL:function(S){return Error("sc`"+S)},
PRIMITIVE_INVALID_HOOK_CALL:function(){return Error("tc")},
RETURNING_CLEANUP_FUNCTION_FROM_ONINIT:function(){return Error("uc")},
SIGNAL_INVALID_HOOK_CALL:function(){return Error("vc")},
USE_ELEMENT_UNEXPECTED_ELEMENT:function(S,p){return Error("wc`"+S+"`"+p)},
USE_ELEMENT_MULTIPLE_ASSIGNMENTS:function(S){return Error("xc`"+S)},
USE_ELEMENT_NOT_ASSIGNED:function(S){return Error("yc`"+String(S))}};S9G=ZvE;var MFe=Symbol("zc");jVw({beforeRender:function(S){var p=tY(S.effectContext);try{var U;((U=S.__syncEffects)==null?0:U.length)&&d0G(S.__syncEffects)}finally{tY(p)}},
didPatch:function(S){var p=tY(S.effectContext);try{var U;((U=S.__syncEffects)==null?0:U.length)&&d0G(S.__syncEffects)}finally{tY(p)}},
didUnmount:function(S){var p;((p=S.hooks)==null?0:p.length)&&S.hooks.forEach(Ice)}});var I5m,dTt,V9q;I5m=_.UX.window;_.s0=(I5m==null?void 0:(dTt=I5m.yt)==null?void 0:dTt.config_)||(I5m==null?void 0:(V9q=I5m.ytcfg)==null?void 0:V9q.data_)||{};_.NT("yt.config_",_.s0);var TEm={},OZw=[];_.y7=function(S){var p=_.jO.apply(1,arguments);var U=Error.call(this,S);this.message=U.message;"stack"in U&&(this.stack=U.stack);this.args=[].concat(_.jo(p));Object.setPrototypeOf(this,this.constructor.prototype)};
_.r(_.y7,Error);var WnX=function(S,p,U){this.actionName=S;this.optionalAction=p===void 0?!1:p;this.args=U===void 0?null:U;this.returnValue=[]};_.v=function(S){this.name=S};_.aV=new _.v("signalAction");var jHe=/^[\w.]*$/,QHE={q:!0,search_query:!0},zkw=String(D0N);var vF;vF=Symbol("Ac");_.$g=function(S){this.name=S};
_.$g.prototype.toString=function(){return"InjectionToken("+this.name+")"};
var rrk=function(S){this.key=S},Rkk=function(S){this.deferredKey=S},hkR=function(){var S=this;
this.providers=new Map;this.JSC$8411_deferred=new Map;this.cachedValues=new Map;this.TEST_ONLY={getInjectionSnapshot:function(){return new Map(S.providers)}}};
hkR.prototype.addProvider=function(S){this.providers.set(S.provide,S);var p=this.JSC$8411_deferred.get(S.provide);if(p)try{p.resolver(this.resolve(S.provide))}catch(U){p.rejector(U)}};
hkR.prototype.resolve=function(S){return S instanceof Rkk?WYI(this,S):S instanceof rrk?OAH(this,S.key,[],!0):OAH(this,S,[])};
var WYI=function(S,p){p=p.deferredKey;if(S.JSC$8411_deferred.has(p))return S.JSC$8411_deferred.get(p).promise;var U={};U.promise=new Promise(function(Y,L){U.resolver=Y;U.rejector=L});
S.JSC$8411_deferred.set(p,U);return U.promise},OAH=function(S,p,U,Y){Y=Y===void 0?!1:Y;
if(U.indexOf(p)>-1)throw Error("Bc`"+p);if(S.cachedValues.has(p))return S.cachedValues.get(p);if(!S.providers.has(p)){if(Y)return;throw Error("Cc`"+p);}Y=S.providers.get(p);U.push(p);if(Y.useValue!==void 0)var L=Y.useValue;else if(Y.useFactory)L=Y[vF]?kpt(S,Y[vF],U):[],L=Y.useFactory.apply(Y,_.jo(L));else if(Y.useClass){L=Y.useClass;var I=L[vF]?kpt(S,L[vF],U):[];L=new (Function.prototype.bind.apply(L,[null].concat(_.jo(I))))}else throw Error("Dc`"+p);U.pop();Y.skipCache||S.cachedValues.set(p,L);return L},
kpt=function(S,p,U){return p?p.map(function(Y){return Y instanceof rrk?OAH(S,Y.key,U,!0):OAH(S,Y,U)}):[]};var GTq;var fv=new _.$g("ENDPOINT_HANDLER_TOKEN");_.Cv=new _.v("urlEndpoint");var HAc=function(){this.data=[];this.cachedPackedInt52=-1};
HAc.prototype.set=function(S,p){p=p===void 0?!0:p;0<=S&&S<52&&Number.isInteger(S)&&this.data[S]!==p&&(this.data[S]=p,this.cachedPackedInt52=-1)};
HAc.prototype.get=function(S){return!!this.data[S]};
var DTm=function(S){S.cachedPackedInt52===-1&&(S.cachedPackedInt52=S.data.reduce(function(p,U,Y){return p+(U?Math.pow(2,Y):0)},0));
return S.cachedPackedInt52};var x0u=function(S){var p=z8m;S=S===void 0?_.ad("yt.ads.biscotti.lastId_")||"":S;var U=Object,Y=U.assign,L={};L.dt=naH;L.flash="0";a:{try{var I=p.JSC$8417_win_.top.location.href}catch(Je){I=2;break a}I=I?I===p.doc_.location.href?0:1:2}L=(L.frm=I,L);try{L.u_tz=-(new Date).getTimezoneOffset();var V=V===void 0?P3:V;try{var W=V.history.length}catch(Je){W=0}L.u_his=W;var O;L.u_h=(O=P3.screen)==null?void 0:O.height;var D;L.u_w=(D=P3.screen)==null?void 0:D.width;var z;L.u_ah=(z=P3.screen)==null?void 0:z.availHeight;
var Q;L.u_aw=(Q=P3.screen)==null?void 0:Q.availWidth;var J;L.u_cd=(J=P3.screen)==null?void 0:J.colorDepth}catch(Je){}W=p.JSC$8417_win_;try{var K=W.screenX;var G=W.screenY}catch(Je){}try{var X=W.outerWidth;var Z=W.outerHeight}catch(Je){}try{var l=W.innerWidth;var a=W.innerHeight}catch(Je){}try{var N=W.screenLeft;var m=W.screenTop}catch(Je){}try{l=W.innerWidth,a=W.innerHeight}catch(Je){}try{var A=W.screen.availWidth;var q=W.screen.availTop}catch(Je){}K=[N,m,K,G,A,q,X,Z,l,a];G=J3e(!1,p.JSC$8417_win_.top);
X={};var TG=TG===void 0?_.UX:TG;Z=new HAc;"SVGElement"in TG&&"createElementNS"in TG.document&&Z.set(0);l=yeq();l["allow-top-navigation-by-user-activation"]&&Z.set(1);l["allow-popups-to-escape-sandbox"]&&Z.set(2);TG.crypto&&TG.crypto.subtle&&Z.set(3);"TextDecoder"in TG&&"TextEncoder"in TG&&Z.set(4);TG=DTm(Z);p=(X.bc=TG,X.bih=G.height,X.biw=G.width,X.brdim=K.join(),X.vis=YrN(p.doc_),X.wgl=!!P3.WebGLRenderingContext,X);U=Y.call(U,L,p);U.ca_type="image";S&&(U.bid=S);return U},z8m=new function(){var S=
window.document;
this.JSC$8417_win_=window;this.doc_=S};
_.NT("yt.ads_.signals_.getAdSignalsString",function(S){return nuw(x0u(S))});_.BO();navigator.userAgent.indexOf(" (CrKey ");var sHE="XMLHttpRequest"in _.UX?function(){return new XMLHttpRequest}:null;var Qxe="client_dev_domain client_dev_expflag client_dev_regex_map client_dev_root_url client_rollout_override expflag forcedCapability jsfeat jsmode mods".split(" "),nUl=[].concat(_.jo(Qxe),["client_dev_set_cookie"]);var CNe={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"},uje="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(_.jo(Qxe)),qRN=!1,lcN=_.Eur,iZe=fcr;var ySE=[{messageFn:function(S){return"Cannot read property '"+S.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(S){return"Cannot call '"+S.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(S){return S.key+" is not defined"},
patternsForType:{ReferenceError:[{regexp:/(.*) is not defined/,groups:["key"]},{regexp:/Can't find variable: (.*)/,groups:["key"]}]}}];var JIj={messageWeights:[],callbackWeights:[{callback:S$E,weight:500},{callback:pvG,weight:500}]};var yIm=function(){this.callbackWeights=[];this.messageWeights=[]},KYt,JSN=function(){if(!KYt){var S=KYt=new yIm;
S.messageWeights.length=0;S.callbackWeights.length=0;KdR(S,JIj)}return KYt},KdR=function(S,p){p.messageWeights&&S.messageWeights.push.apply(S.messageWeights,p.messageWeights);
p.callbackWeights&&S.callbackWeights.push.apply(S.callbackWeights,p.callbackWeights)};_.q_(_.kU,_.hY);_.kU.prototype.subscribe=function(S,p,U){var Y=this.topics_[S];Y||(Y=this.topics_[S]=[]);var L=this.JSC$8441_key_;this.subscriptions_[L]=S;this.subscriptions_[L+1]=p;this.subscriptions_[L+2]=U;this.JSC$8441_key_=L+3;Y.push(L);return L};
var bAP=function(S){var p=rSE,U=!1,Y=p.subscribe("handleError",function(L){U||(U=!0,this.unsubscribeByKey(Y),S.apply(void 0,arguments))},p)};
_.kU.prototype.unsubscribe=function(S,p,U){if(S=this.topics_[S]){var Y=this.subscriptions_;if(S=S.find(function(L){return Y[L+1]==p&&Y[L+2]==U}))return this.unsubscribeByKey(S)}return!1};
_.kU.prototype.unsubscribeByKey=function(S){var p=this.subscriptions_[S];if(p){var U=this.topics_[p];this.publishDepth_!=0?(this.pendingKeys_.push(S),this.subscriptions_[S+1]=function(){}):(U&&_.NG(U,S),delete this.subscriptions_[S],delete this.subscriptions_[S+1],delete this.subscriptions_[S+2])}return!!p};
_.kU.prototype.publish=function(S,p){var U=this.topics_[S];if(U){var Y=Array(arguments.length-1),L=arguments.length,I;for(I=1;I<L;I++)Y[I-1]=arguments[I];if(this.async_)for(I=0;I<U.length;I++)L=U[I],jxE(this.subscriptions_[L+1],this.subscriptions_[L+2],Y);else{this.publishDepth_++;try{for(I=0,L=U.length;I<L&&!this.isDisposed();I++){var V=U[I];this.subscriptions_[V+1].apply(this.subscriptions_[V+2],Y)}}finally{if(this.publishDepth_--,this.pendingKeys_.length>0&&this.publishDepth_==0)for(;U=this.pendingKeys_.pop();)this.unsubscribeByKey(U)}}return I!=
0}return!1};
var jxE=function(S,p,U){_.H3(function(){S.apply(p,U)})};
_.kU.prototype.clear=function(S){if(S){var p=this.topics_[S];p&&(p.forEach(this.unsubscribeByKey,this),delete this.topics_[S])}else this.subscriptions_.length=0,this.topics_={}};
_.kU.prototype.getCount=function(S){if(S){var p=this.topics_[S];return p?p.length:0}S=0;for(p in this.topics_)S+=this.getCount(p);return S};
_.kU.prototype.disposeInternal=function(){_.kU.superClass_.disposeInternal.call(this);this.clear();this.pendingKeys_.length=0};var rSE=new _.kU;var Y7=function(S){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.UH(S)};
_.r(Y7,_.a5);Y7.prototype.getColdHashData=function(){return _.jR(this,3)};
Y7.prototype.getHotHashData=function(){return _.jR(this,5)};
Y7.prototype.setHotHashData=function(S){return _.zN(this,5,S)};var zUE=function(S){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.UH(S)};
_.r(zUE,_.a5);var msk=function(S){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.UH(S)};
_.r(msk,_.a5);_.M=msk.prototype;_.M.getDeviceId=function(){return _.jR(this,6)};
_.M.getExperimentIds=function(S){var p=_.K8(this,9,_.hd,3,!0);fc(p,S);return p[S]};
_.M.getPlayerType=function(){return _.r1(this,36)};
_.M.setHomeGroupInfo=function(S){return _.U3(this,81,S)};
_.M.clearLocationPlayabilityToken=function(){return _.UP(this,89)};var DP=function(S){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.UH(S)};
_.r(DP,_.a5);DP.prototype.setKey=function(S){return _.zN(this,1,S)};
DP.prototype.getValue=function(){return hk(this,2,vkX)};
var vkX=[2,3,4,5,6];var rId=function(S){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.UH(S)};
_.r(rId,_.a5);rId.prototype.setTrackingParams=function(S){return _.UP(this,1,_.aP(S,!1))};var okR=function(S){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.UH(S)};
_.r(okR,_.a5);var Jae=function(S){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.UH(S)};
_.r(Jae,_.a5);Jae.prototype.getExperimentIds=function(S){var p=_.K8(this,5,_.RT,3,!0);fc(p,S);return p[S]};var JU=function(S){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.UH(S)};
_.r(JU,_.a5);JU.prototype.getToken=function(){return _.n2(this,2)};
JU.prototype.setToken=function(S){return _.zN(this,2,S)};var QR=function(S){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.UH(S)};
_.r(QR,_.a5);QR.prototype.setSafetyMode=function(S){return _.pf(this,5,S)};var HH=function(S){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.UH(S)};
_.r(HH,_.a5);HH.prototype.setClient=function(S){return _.U3(this,1,S)};var ndd={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 Q2e;_.rz=function(){var S=this;this.deferredInstallPrompt=void 0;this.appInstalledEventFired=!1;_.UX.addEventListener("beforeinstallprompt",function(p){p.preventDefault();S.deferredInstallPrompt=p});
_.UX.addEventListener("appinstalled",function(){S.appInstalledEventFired=!0},{once:!0})};
Q2e=function(){if(!_.UX.matchMedia)return"WEB_DISPLAY_MODE_UNKNOWN";try{return _.UX.matchMedia("(display-mode: standalone)").matches?"WEB_DISPLAY_MODE_STANDALONE":_.UX.matchMedia("(display-mode: minimal-ui)").matches?"WEB_DISPLAY_MODE_MINIMAL_UI":_.UX.matchMedia("(display-mode: fullscreen)").matches?"WEB_DISPLAY_MODE_FULLSCREEN":_.UX.matchMedia("(display-mode: browser)").matches?"WEB_DISPLAY_MODE_BROWSER":"WEB_DISPLAY_MODE_UNKNOWN"}catch(S){return"WEB_DISPLAY_MODE_UNKNOWN"}};var bpd=function(){this.syncHeaders=!0},j2k=function(S){var p={},U=[];
"USER_SESSION_ID"in _.s0&&U.push({key:"u",value:_.g7("USER_SESSION_ID")});if(U=olX(U))p.Authorization=U,U=S=S==null?void 0:S.sessionIndex,U===void 0&&(U=Number(_.g7("SESSION_INDEX",0)),U=isNaN(U)?0:U),_.y("voice_search_auth_header_removal")||(p["X-Goog-AuthUser"]=U.toString()),"INNERTUBE_HOST_OVERRIDE"in _.s0||(p["X-Origin"]=window.location.origin),S===void 0&&"DELEGATED_SESSION_ID"in _.s0&&(p["X-Goog-PageId"]=_.g7("DELEGATED_SESSION_ID"));return p};var Gpj={identityType:"UNAUTHENTICATED_IDENTITY_TYPE_UNKNOWN"};var ih=_.ad("ytglobal.prefsUserPrefsPrefs_")||{},h8e;_.NT("ytglobal.prefsUserPrefsPrefs_",ih);_.NC=function(){this.cookieName=_.g7("ALT_PREF_COOKIE_NAME","PREF");this.cookieDomain=_.g7("ALT_PREF_COOKIE_DOMAIN","youtube.com");var S=_.D5.get(this.cookieName,void 0);S&&this.parse(S)};
_.D9=function(){h8e||(h8e=new _.NC);return h8e};
_.NC.prototype.get=function(S,p){R8P(S);FYP(S);S=ih[S]!==void 0?ih[S].toString():null;return S!=null?S:p?p:""};
_.NC.prototype.set=function(S,p){R8P(S);FYP(S);if(p==null)throw Error("Gc");ih[S]=p.toString()};
_.NC.prototype.getFlag=function(S){return!!((XSI("f"+(Math.floor(S/31)+1))||0)&1<<S%31)};
_.zI=function(S,p,U){S="f"+(Math.floor(p/31)+1);p=1<<p%31;var Y=XSI(S)||0;Y=U?Y|p:Y&~p;Y===0?delete ih[S]:(U=Y.toString(16),ih[S]=U.toString())};
_.NC.prototype.remove=function(S){R8P(S);FYP(S);delete ih[S]};
_.NC.prototype.save=function(){var S=!0;_.y("web_secure_pref_cookie_killswitch")&&(S=!1);_.zp(this.cookieName,this.dump(),63072E3,this.cookieDomain,S)};
_.NC.prototype.clear=function(){_.h9.clear(ih)};
_.NC.prototype.dump=function(){var S=[],p;for(p in ih)ih.hasOwnProperty(p)&&S.push(p+"="+encodeURIComponent(String(ih[p])));return S.join("&")};
var FYP=function(S){if(/^f([1-9][0-9]*)$/.test(S))throw Error("Hc`"+S);},R8P=function(S){if(!/^\w+$/.test(S))throw Error("Ic`"+S);
},XSI=function(S){S=ih[S]!==void 0?ih[S].toString():null;
return S!=null&&/^[A-Fa-f0-9]+$/.test(S)?parseInt(S,16):null};
_.NC.prototype.parse=function(S){S=decodeURIComponent(S).split("&");for(var p=0;p<S.length;p++){var U=S[p].split("="),Y=U[0];(U=U[1])&&(ih[Y]=U.toString())}};var WaX={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"},yaw={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},Kpe={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},k0w={"slow-2g":"EFFECTIVE_CONNECTION_TYPE_SLOW_2G","2g":"EFFECTIVE_CONNECTION_TYPE_2G","3g":"EFFECTIVE_CONNECTION_TYPE_3G","4g":"EFFECTIVE_CONNECTION_TYPE_4G"};var SM;_.BF=function(){this.cancelDebouncedJobMap=new WeakMap;this.cancelThrottledJobMap=new WeakMap};
_.bQ=function(S,p,U){return S.addJob(p,0,U)};
_.BF.prototype.addLowPriorityJob=function(S,p){return this.addJob(S,1,p)};
_.HG=function(S,p,U){return S.addJob(p,2,U)};
_.Jn=function(S,p,U){return S.addJob(p,3,U)};
_.ps=function(S,p,U){return S.addJob(p,4,U)};
SM=function(S){var p=_.ad("yt.scheduler.instance.addImmediateJob");p?p(S):S()};
_.BF.prototype.debounce=function(S,p,U){var Y=this,L=0,I=function(){L&&Y.cancelJob(L);L=Y.addJob(S,p,U);Y.cancelDebouncedJobMap.set(I,L)};
return I};
_.BF.prototype.cancelThrottle=function(S){(S=this.cancelThrottledJobMap.get(S))&&S()};var qC=function(){_.BF.apply(this,arguments)};
_.r(qC,_.BF);_.jC=function(){qC.instance||(qC.instance=new qC);return qC.instance};
qC.prototype.addJob=function(S,p,U){U!==void 0&&Number.isNaN(Number(U))&&(U=void 0);var Y=_.ad("yt.scheduler.instance.addJob");return Y?Y(S,p,U):U===void 0?(S(),NaN):_.MT(S,U||0)};
qC.prototype.cancelJob=function(S){if(S===void 0||!Number.isNaN(Number(S))){var p=_.ad("yt.scheduler.instance.cancelJob");p?p(S):_.V7(S)}};
qC.prototype.start=function(){var S=_.ad("yt.scheduler.instance.start");S&&S()};
qC.prototype.pause=function(){var S=_.ad("yt.scheduler.instance.pause");S&&S()};
_.PA=_.jC();_.KA.prototype.set=function(S,p){p===void 0?this.mechanism.remove(S):this.mechanism.set(S,(0,_.J2)(p))};
_.KA.prototype.get=function(S){try{var p=this.mechanism.get(S)}catch(U){return}if(p!==null)try{return JSON.parse(p)}catch(U){throw"Storage: Invalid value was encountered";}};
_.KA.prototype.remove=function(S){this.mechanism.remove(S)};var As=function(S){this.mechanism=S};
_.q_(As,_.KA);var Pid=function(S){this.data=S},ZAI=function(S){return S===void 0||S instanceof Pid?S:new Pid(S)};
As.prototype.set=function(S,p){As.superClass_.set.call(this,S,ZAI(p))};
As.prototype.getWrapper=function(S){S=As.superClass_.get.call(this,S);if(S===void 0||S instanceof Object)return S;throw"Storage: Invalid value was encountered";};
As.prototype.get=function(S){if(S=this.getWrapper(S)){if(S=S.data,S===void 0)throw"Storage: Invalid value was encountered";}else S=void 0;return S};_.q_(bi,As);_.sxm=function(S){var p=S.creation;S=S.expiration;return!!S&&S<_.BO()||!!p&&p>_.BO()};
bi.prototype.set=function(S,p,U){if(p=ZAI(p)){if(U){if(U<_.BO()){bi.prototype.remove.call(this,S);return}p.expiration=U}p.creation=_.BO()}bi.superClass_.set.call(this,S,p)};
bi.prototype.getWrapper=function(S,p){var U=bi.superClass_.getWrapper.call(this,S);if(U)if(!p&&_.sxm(U))bi.prototype.remove.call(this,S);else return U};var ts=function(){};
ts.prototype.next=function(){return cF};
var cF={done:!0,value:void 0},S0=function(S){return{value:S,done:!1}};
ts.prototype.__iterator__=function(){return this};
_.e8l=function(S){if(S instanceof ts)return S;if(typeof S.__iterator__=="function")return S.__iterator__(!1);if(_.Ae(S)){var p=0,U=new ts;U.next=function(){for(;;){if(p>=S.length)return cF;if(p in S)return S0(S[p++]);p++}};
return U}throw Error("Jc");};var gUm=function(S){if(S instanceof pD||S instanceof Uw||S instanceof Yr)return S;if(typeof S.next=="function")return new pD(function(){return S});
if(typeof S[Symbol.iterator]=="function")return new pD(function(){return S[Symbol.iterator]()});
if(typeof S.__iterator__=="function")return new pD(function(){return S.__iterator__()});
throw Error("Kc");},pD=function(S){this.func_=S};
pD.prototype.__iterator__=function(){return new Uw(this.func_())};
pD.prototype[Symbol.iterator]=function(){return new Yr(this.func_())};
pD.prototype.toEs6=function(){return new Yr(this.func_())};
var Uw=function(S){this.JSC$8525_iter_=S};
_.r(Uw,ts);Uw.prototype.next=function(){return this.JSC$8525_iter_.next()};
Uw.prototype[Symbol.iterator]=function(){return new Yr(this.JSC$8525_iter_)};
Uw.prototype.toEs6=function(){return new Yr(this.JSC$8525_iter_)};
var Yr=function(S){pD.call(this,function(){return S});
this.JSC$8528_iter_=S};
_.r(Yr,pD);Yr.prototype.next=function(){return this.JSC$8528_iter_.next()};var uuj=function(){};var LD=function(){};
_.q_(LD,uuj);LD.prototype.getCount=function(){for(var S=0,p=_.d(this),U=p.next();!U.done;U=p.next())S++;return S};
LD.prototype[Symbol.iterator]=function(){return gUm(this.__iterator__(!0)).toEs6()};
LD.prototype.clear=function(){var S=Array.from(this);S=_.d(S);for(var p=S.next();!p.done;p=S.next())this.remove(p.value)};_.q_(j9,LD);_.M=j9.prototype;_.M.isAvailable=function(){if(this.cachedIsStorageAvailable_===null){var S=this.storage_;if(S)try{S.setItem("__sak","1");S.removeItem("__sak");var p=!0}catch(U){p=U instanceof DOMException&&(U.name==="QuotaExceededError"||U.code===22||U.code===1014||U.name==="NS_ERROR_DOM_QUOTA_REACHED")&&S&&S.length!==0}else p=!1;this.cachedIsStorageAvailable_=p}return this.cachedIsStorageAvailable_};
_.M.set=function(S,p){MV(this);try{this.storage_.setItem(S,p)}catch(U){if(this.storage_.length==0)throw"Storage mechanism: Storage disabled";throw"Storage mechanism: Quota exceeded";}};
_.M.get=function(S){MV(this);S=this.storage_.getItem(S);if(typeof S!=="string"&&S!==null)throw"Storage mechanism: Invalid value was encountered";return S};
_.M.remove=function(S){MV(this);this.storage_.removeItem(S)};
_.M.getCount=function(){MV(this);return this.storage_.length};
_.M.__iterator__=function(S){MV(this);var p=0,U=this.storage_,Y=new ts;Y.next=function(){if(p>=U.length)return cF;var L=U.key(p++);if(S)return S0(L);L=U.getItem(L);if(typeof L!=="string")throw"Storage mechanism: Invalid value was encountered";return S0(L)};
return Y};
_.M.clear=function(){MV(this);this.storage_.clear()};
_.M.key=function(S){MV(this);return this.storage_.key(S)};
var MV=function(S){if(S.storage_==null)throw Error("Lc");S.isAvailable()||YR(Error("Lc"))};_.q_(DUe,j9);_.q_(z0G,j9);_.q_(Gp,LD);Gp.prototype.set=function(S,p){this.mechanism_.set(this.JSC$8543_prefix_+S,p)};
Gp.prototype.get=function(S){return this.mechanism_.get(this.JSC$8543_prefix_+S)};
Gp.prototype.remove=function(S){this.mechanism_.remove(this.JSC$8543_prefix_+S)};
Gp.prototype.__iterator__=function(S){var p=this.mechanism_[Symbol.iterator](),U=this,Y=new ts;Y.next=function(){var L=p.next();if(L.done)return L;for(L=L.value;L.slice(0,U.JSC$8543_prefix_.length)!=U.JSC$8543_prefix_;){L=p.next();if(L.done)return L;L=L.value}return S0(S?L.slice(U.JSC$8543_prefix_.length):U.mechanism_.get(L))};
return Y};_.ug=function(S){this.expiringStorage_=(S=_.Q9G(S))?new bi(S):null;this.JSC$8547_domain_=document.domain||window.location.hostname};
_.ug.prototype.set=function(S,p,U,Y){U=U||31104E3;this.remove(S);if(this.expiringStorage_)try{this.expiringStorage_.set(S,p,Date.now()+U*1E3);return}catch(I){}var L="";if(Y)try{L=escape((0,_.J2)(p))}catch(I){return}else L=escape(p);_.zp(S,L,U,this.JSC$8547_domain_)};
_.ug.prototype.get=function(S,p){var U=void 0,Y=!this.expiringStorage_;if(!Y)try{U=this.expiringStorage_.get(S)}catch(L){Y=!0}if(Y&&(U=_.D5.get(S,void 0))&&(U=unescape(U),p))try{U=JSON.parse(U)}catch(L){this.remove(S),U=void 0}return U};
_.ug.prototype.remove=function(S){this.expiringStorage_&&this.expiringStorage_.remove(S);_.dUN(S,"/",this.JSC$8547_domain_)};
_.ug.prototype.getCreationTime=function(S){return this.expiringStorage_&&(S=(this.expiringStorage_.getWrapper(S)||{}).creation,typeof S==="number")?S:null};var J8w=function(){var S;return function(){S||(S=new _.ug("ytidb"));return S}}();var KaR;_.Rx=[];KaR=!1;var CLG=b9R||j9u;var Iq={},wSQ=(Iq.AUTH_INVALID="No user identifier specified.",Iq.EXPLICIT_ABORT="Transaction was explicitly aborted.",Iq.IDB_NOT_SUPPORTED="IndexedDB is not supported.",Iq.MISSING_INDEX="Index not created.",Iq.MISSING_OBJECT_STORES="Object stores not created.",Iq.DB_DELETED_BY_MISSING_OBJECT_STORES="Database is deleted because expected object stores were not created.",Iq.DB_REOPENED_BY_MISSING_OBJECT_STORES="Database is reopened because expected object stores were not created.",Iq.UNKNOWN_ABORT=
"Transaction was aborted for unknown reasons.",Iq.QUOTA_EXCEEDED="The current transaction exceeded its quota limitations.",Iq.QUOTA_MAYBE_EXCEEDED="The current transaction may have failed because of exceeding quota limitations.",Iq.EXECUTE_TRANSACTION_ON_CLOSED_DB="Can't start a transaction on a closed database",Iq.INCOMPATIBLE_DB_VERSION="The binary is incompatible with the database version",Iq),dl={},l5Q=(dl.AUTH_INVALID="ERROR",dl.EXECUTE_TRANSACTION_ON_CLOSED_DB="WARNING",dl.EXPLICIT_ABORT="IGNORED",
dl.IDB_NOT_SUPPORTED="ERROR",dl.MISSING_INDEX="WARNING",dl.MISSING_OBJECT_STORES="ERROR",dl.DB_DELETED_BY_MISSING_OBJECT_STORES="WARNING",dl.DB_REOPENED_BY_MISSING_OBJECT_STORES="WARNING",dl.QUOTA_EXCEEDED="WARNING",dl.QUOTA_MAYBE_EXCEEDED="WARNING",dl.UNKNOWN_ABORT="WARNING",dl.INCOMPATIBLE_DB_VERSION="WARNING",dl),Vl={},a5m=(Vl.AUTH_INVALID=!1,Vl.EXECUTE_TRANSACTION_ON_CLOSED_DB=!1,Vl.EXPLICIT_ABORT=!1,Vl.IDB_NOT_SUPPORTED=!1,Vl.MISSING_INDEX=!1,Vl.MISSING_OBJECT_STORES=!1,Vl.DB_DELETED_BY_MISSING_OBJECT_STORES=
!1,Vl.DB_REOPENED_BY_MISSING_OBJECT_STORES=!1,Vl.QUOTA_EXCEEDED=!1,Vl.QUOTA_MAYBE_EXCEEDED=!0,Vl.UNKNOWN_ABORT=!0,Vl.INCOMPATIBLE_DB_VERSION=!1,Vl),e9=function(S,p,U,Y,L){p=p===void 0?{}:p;U=U===void 0?wSQ[S]:U;Y=Y===void 0?l5Q[S]:Y;L=L===void 0?a5m[S]:L;_.y7.call(this,U,Object.assign({},{name:"YtIdbKnownError",isSw:self.document===void 0,isIframe:self!==self.top,type:S},p));this.type=S;this.message=U;this.level=Y;this.retryable=L;Object.setPrototypeOf(this,e9.prototype)};
_.r(e9,_.y7);var f5t=function(S,p){e9.call(this,"MISSING_OBJECT_STORES",{expectedObjectStores:p,foundObjectStores:S},wSQ.MISSING_OBJECT_STORES);Object.setPrototypeOf(this,f5t.prototype)};
_.r(f5t,e9);var G0w=function(S,p){var U=Error.call(this);this.message=U.message;"stack"in U&&(this.stack=U.stack);this.index=S;this.objectStore=p;Object.setPrototypeOf(this,G0w.prototype)};
_.r(G0w,Error);var h0k=["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 li=function(S){this.executor=S},wE=function(S){var p=this;
this.state={status:"PENDING"};this.JSC$8575_onFulfilled=[];this.JSC$8575_onRejected=[];S=S.executor;var U=function(L){if(p.state.status==="PENDING"){p.state={status:"FULFILLED",value:L};L=_.d(p.JSC$8575_onFulfilled);for(var I=L.next();!I.done;I=L.next())I=I.value,I()}},Y=function(L){if(p.state.status==="PENDING"){p.state={status:"REJECTED",
reason:L};L=_.d(p.JSC$8575_onRejected);for(var I=L.next();!I.done;I=L.next())I=I.value,I()}};
try{S(U,Y)}catch(L){Y(L)}};
wE.all=function(S){return new wE(new li(function(p,U){var Y=[],L=S.length;L===0&&p(Y);for(var I={i$jscomp$505:0};I.i$jscomp$505<S.length;I={i$jscomp$505:I.i$jscomp$505},++I.i$jscomp$505)wE.resolve(S[I.i$jscomp$505]).then(function(V){return function(W){Y[V.i$jscomp$505]=W;L--;L===0&&p(Y)}}(I)).catch(function(V){U(V)})}))};
wE.resolve=function(S){return new wE(new li(function(p,U){S instanceof wE?S.then(p,U):p(S)}))};
wE.reject=function(S){return new wE(new li(function(p,U){U(S)}))};
wE.prototype.then=function(S,p){var U=this,Y=S!=null?S:Xvd,L=p!=null?p:Fad;return new wE(new li(function(I,V){U.state.status==="PENDING"?(U.JSC$8575_onFulfilled.push(function(){Cij(U,U,Y,I,V)}),U.JSC$8575_onRejected.push(function(){xTm(U,U,L,I,V)})):U.state.status==="FULFILLED"?Cij(U,U,Y,I,V):U.state.status==="REJECTED"&&xTm(U,U,L,I,V)}))};
wE.prototype.catch=function(S){return this.then(void 0,S)};
var Cij=function(S,p,U,Y,L){try{if(S.state.status!=="FULFILLED")throw Error("Oc");var I=U(S.state.value);I instanceof wE?EUE(S,p,I,Y,L):Y(I)}catch(V){L(V)}},xTm=function(S,p,U,Y,L){try{if(S.state.status!=="REJECTED")throw Error("Pc");
var I=U(S.state.reason);I instanceof wE?EUE(S,p,I,Y,L):Y(I)}catch(V){L(V)}},EUE=function(S,p,U,Y,L){p===U?L(new TypeError("Qc")):U.then(function(I){I instanceof wE?EUE(S,p,I,Y,L):Y(I)},function(I){L(I)})};var TA;TA=window;_.AI=TA.ytcsi&&TA.ytcsi.now?TA.ytcsi.now:TA.performance&&TA.performance.timing&&TA.performance.now&&TA.performance.timing.navigationStart?function(){return TA.performance.timing.navigationStart+TA.performance.now()}:function(){return(new Date).getTime()};var fA=function(S,p){this.JSC$8587_wrapped=S;this.options=p;this.transactionCount=0;this.startedMs=Math.round((0,_.AI)());this.hasUnknownAbortedTransaction=!1},vUd,$Tj,kr,BEj;
fA.prototype.add=function(S,p,U){return _.mY(this,[S],{mode:"readwrite",enableRetries:!0},function(Y){return Y.objectStore(S).add(p,U)})};
fA.prototype.clear=function(S){return _.mY(this,[S],{mode:"readwrite",enableRetries:!0},function(p){return p.objectStore(S).clear()})};
fA.prototype.close=function(){this.JSC$8587_wrapped.close();var S;((S=this.options)==null?0:S.closed)&&this.options.closed()};
fA.prototype.count=function(S,p){return _.mY(this,[S],{mode:"readonly",enableRetries:!0},function(U){return U.objectStore(S).count(p)})};
var lg=function(S,p,U){S=S.JSC$8587_wrapped.createObjectStore(p,U);return new W1(S)};
fA.prototype.delete=function(S,p){return _.mY(this,[S],{mode:"readwrite",enableRetries:!0},function(U){return U.objectStore(S).delete(p)})};
var mTP=function(S,p){return _.mY(S,["ResponseStore"],{mode:"readwrite",enableRetries:!0},function(U){return U.objectStore("ResponseStore").index("byInterface").delete(p)})};
fA.prototype.get=function(S,p){return _.mY(this,[S],{mode:"readonly",enableRetries:!0},function(U){return U.objectStore(S).get(p)})};
fA.prototype.getAll=function(S,p,U){return _.mY(this,[S],{mode:"readonly",enableRetries:!0},function(Y){return Y.objectStore(S).getAll(p,U)})};
fA.prototype.put=function(S,p,U){return _.mY(this,[S],{mode:"readwrite",enableRetries:!0},function(Y){return Y.objectStore(S).put(p,U)})};
fA.prototype.objectStoreNames=function(){return Array.from(this.JSC$8587_wrapped.objectStoreNames)};
_.mY=function(S,p,U,Y){var L,I,V,W,O,D,z,Q,J,K,G,X;return _.T(function(Z){switch(Z.nextAddress){case 1:var l={mode:"readonly",enableRetries:!1,tag:"IDB_TRANSACTION_TAG_UNKNOWN"};typeof U==="string"?l.mode=U:Object.assign(l,U);L=l;S.transactionCount++;I=L.enableRetries?3:1;V=0;case 2:if(W){Z.jumpTo(4);break}V++;O=Math.round((0,_.AI)());_.M2(Z,5);D=S.JSC$8587_wrapped.transaction(p,L.mode);l=new e0u(D);l=oUH(l,Y);return _.k(Z,l,7);case 7:return z=Z.yieldResult,Q=Math.round((0,_.AI)()),vUd(S,O,Q,V,void 0,
p.join(),L),Z.return(z);case 5:J=_.W4(Z);K=Math.round((0,_.AI)());G=R0G(J,S.JSC$8587_wrapped.name,p.join(),S.JSC$8587_wrapped.version);if((X=G instanceof e9&&!G.retryable)||V>=I)vUd(S,O,K,V,G,p.join(),L),W=G;Z.jumpTo(2);break;case 4:return Z.return(Promise.reject(W))}})};
vUd=function(S,p,U,Y,L,I,V){p=U-p;L?(L instanceof e9&&(L.type==="QUOTA_EXCEEDED"||L.type==="QUOTA_MAYBE_EXCEEDED")&&Xu("QUOTA_EXCEEDED",{dbName:Z5(S.JSC$8587_wrapped.name),objectStoreNames:I,transactionCount:S.transactionCount,transactionMode:V.mode}),L instanceof e9&&L.type==="UNKNOWN_ABORT"&&(U-=S.startedMs,U<0&&U>=2147483648&&(U=0),Xu("TRANSACTION_UNEXPECTEDLY_ABORTED",{objectStoreNames:I,transactionDuration:p,transactionCount:S.transactionCount,dbDuration:U}),S.hasUnknownAbortedTransaction=!0),
$Tj(S,!1,Y,I,p,V.tag),_.Fu(L)):$Tj(S,!0,Y,I,p,V.tag)};
$Tj=function(S,p,U,Y,L,I){Xu("TRANSACTION_ENDED",{objectStoreNames:Y,connectionHasUnknownAbortedTransaction:S.hasUnknownAbortedTransaction,duration:L,isSuccessful:p,tryCount:U,tag:I===void 0?"IDB_TRANSACTION_TAG_UNKNOWN":I})};
fA.prototype.getVersion=function(){return this.JSC$8587_wrapped.version};
fA.prototype.getName=function(){return this.JSC$8587_wrapped.name};
var W1=function(S){this.JSC$8602_wrapped=S};
W1.prototype.add=function(S,p){return ax(this.JSC$8602_wrapped.add(S,p))};
W1.prototype.autoIncrement=function(){return this.JSC$8602_wrapped.autoIncrement};
W1.prototype.clear=function(){return ax(this.JSC$8602_wrapped.clear()).then(function(){})};
var at=function(S,p,U){S.JSC$8602_wrapped.createIndex(p,U,{unique:!1})};
W1.prototype.count=function(S){return ax(this.JSC$8602_wrapped.count(S))};
var iAl=function(S,p){return vS(S,{query:p},function(U){return U.delete().then(function(){return U.continue()})}).then(function(){})};
W1.prototype.delete=function(S){return S instanceof IDBKeyRange?iAl(this,S):ax(this.JSC$8602_wrapped.delete(S))};
W1.prototype.get=function(S){return ax(this.JSC$8602_wrapped.get(S))};
W1.prototype.getAll=function(S,p){return"getAll"in IDBObjectStore.prototype?ax(this.JSC$8602_wrapped.getAll(S,p)):NEm(this,S,p)};
var NEm=function(S,p,U){var Y=[];return vS(S,{query:p},function(L){if(!(U!==void 0&&Y.length>=U))return Y.push(L.getValue()),L.continue()}).then(function(){return Y})};
W1.prototype.index=function(S){try{return new Ow(this.JSC$8602_wrapped.index(S))}catch(p){if(p instanceof Error&&p.name==="NotFoundError")throw new G0w(S,this.JSC$8602_wrapped.name);throw p;}};
W1.prototype.getName=function(){return this.JSC$8602_wrapped.name};
W1.prototype.keyPath=function(){return this.JSC$8602_wrapped.keyPath};
W1.prototype.put=function(S,p){return ax(this.JSC$8602_wrapped.put(S,p))};
var vS=function(S,p,U){S=S.JSC$8602_wrapped.openCursor(p.query,p.direction);return BEj(S).then(function(Y){return s9u(Y,U)})},e0u=function(S){var p=this;
this.JSC$8610_wrapped=S;this.objectStoreCache=new Map;this.JSC$8610_aborted=!1;this.done=new Promise(function(U,Y){p.JSC$8610_wrapped.addEventListener("complete",function(){U()});
p.JSC$8610_wrapped.addEventListener("error",function(L){L.currentTarget===L.target&&Y(p.JSC$8610_wrapped.error)});
p.JSC$8610_wrapped.addEventListener("abort",function(){var L=p.JSC$8610_wrapped.error;if(L)Y(L);else if(!p.JSC$8610_aborted){L=e9;for(var I=p.JSC$8610_wrapped.objectStoreNames,V=[],W=0;W<I.length;W++){var O=I.item(W);if(O===null)throw Error("Rc");V.push(O)}L=new L("UNKNOWN_ABORT",{objectStoreNames:V.join(),dbName:p.JSC$8610_wrapped.db.name,mode:p.JSC$8610_wrapped.mode});Y(L)}})})},oUH=function(S,p){var U=new Promise(function(Y,L){try{p(S).then(function(I){Y(I)}).catch(L)}catch(I){L(I),S.abort()}});
return Promise.all([U,S.done]).then(function(Y){return _.d(Y).next().value})};
e0u.prototype.abort=function(){this.JSC$8610_wrapped.abort();this.JSC$8610_aborted=!0;throw new e9("EXPLICIT_ABORT");};
e0u.prototype.objectStore=function(S){S=this.JSC$8610_wrapped.objectStore(S);var p=this.objectStoreCache.get(S);p||(p=new W1(S),this.objectStoreCache.set(S,p));return p};
var Ow=function(S){this.JSC$8612_wrapped=S};
Ow.prototype.count=function(S){return ax(this.JSC$8612_wrapped.count(S))};
Ow.prototype.delete=function(S){return _.tI(this,{query:S},function(p){return p.delete().then(function(){return p.continue()})})};
Ow.prototype.get=function(S){return ax(this.JSC$8612_wrapped.get(S))};
Ow.prototype.getAll=function(S,p){return"getAll"in IDBIndex.prototype?ax(this.JSC$8612_wrapped.getAll(S,p)):qgl(this,S,p)};
var qgl=function(S,p,U){var Y=[];return _.tI(S,{query:p},function(L){if(!(U!==void 0&&Y.length>=U))return Y.push(L.getValue()),L.continue()}).then(function(){return Y})};
Ow.prototype.keyPath=function(){return this.JSC$8612_wrapped.keyPath};
Ow.prototype.unique=function(){return this.JSC$8612_wrapped.unique};
_.tI=function(S,p,U){S=S.JSC$8612_wrapped.openCursor(p.query===void 0?null:p.query,p.direction===void 0?"next":p.direction);return BEj(S).then(function(Y){return s9u(Y,U)})};
kr=function(S,p){this.request=S;this.cursor=p};
BEj=function(S){return ax(S).then(function(p){return p?new kr(S,p):null})};
kr.prototype.continue=function(S){this.cursor.continue(S);return BEj(this.request)};
kr.prototype.delete=function(){return ax(this.cursor.delete()).then(function(){})};
kr.prototype.getValue=function(){return this.cursor.value};
kr.prototype.update=function(S){return ax(this.cursor.update(S))};var H1=function(S,p){this.name=S;this.options=p;this.isCompatible=!0;this.timesReopenedToFixMissingObjectStore=this.timesDeletedToFixMissingObjectStore=0},AIe;
H1.prototype.openDb=function(S,p,U){U=U===void 0?{}:U;return u$N(S,p,U)};
H1.prototype.delete=function(S){S=S===void 0?{}:S;return _.xU(this.name,S)};
AIe=function(S,p){return new e9("INCOMPATIBLE_DB_VERSION",{dbName:S.name,oldVersion:S.options.version,newVersion:p})};
_.Eg=function(S,p){if(!p)throw ui("openWithToken",Z5(S.name));return S.open()};
H1.prototype.open=function(){var S=this;if(!this.isCompatible)throw AIe(this);if(this.connectionPromise)return this.connectionPromise;var p,U=function(){S.connectionPromise===p&&(S.connectionPromise=void 0)},Y={blocking:function(I){I.close()},
closed:U,terminated:U,upgrade:this.options.upgrade},L=function(){var I,V,W,O,D,z,Q,J,K,G;return _.T(function(X){switch(X.nextAddress){case 1:return V=(I=Error().stack)!=null?I:"",_.M2(X,2),_.k(X,S.openDb(S.name,S.options.version,Y),4);case 4:for(var Z=W=X.yieldResult,l=S.options,a=[],N=_.d(Object.keys(l.objectStores)),m=N.next();!m.done;m=N.next()){m=m.value;var A=l.objectStores[m],q=A.removedAtVersion===void 0?Number.MAX_VALUE:A.removedAtVersion;!(Z.JSC$8587_wrapped.version>=A.addedAtVersion)||Z.JSC$8587_wrapped.version>=
q||Z.JSC$8587_wrapped.objectStoreNames.contains(m)||a.push(m)}O=a;if(O.length===0){X.jumpTo(5);break}D=Object.keys(S.options.objectStores);z=W.objectStoreNames();if(S.timesReopenedToFixMissingObjectStore<_.pA("ytidb_reopen_db_retries",0))return S.timesReopenedToFixMissingObjectStore++,W.close(),_.Fu(new e9("DB_REOPENED_BY_MISSING_OBJECT_STORES",{dbName:S.name,expectedObjectStores:D,foundObjectStores:z})),X.return(L());if(!(S.timesDeletedToFixMissingObjectStore<_.pA("ytidb_remake_db_retries",1))){X.jumpTo(6);
break}S.timesDeletedToFixMissingObjectStore++;return _.k(X,S.delete(),7);case 7:return _.Fu(new e9("DB_DELETED_BY_MISSING_OBJECT_STORES",{dbName:S.name,expectedObjectStores:D,foundObjectStores:z})),X.return(L());case 6:throw new f5t(z,D);case 5:return X.return(W);case 2:Q=_.W4(X);if(Q instanceof DOMException?Q.name!=="VersionError":"DOMError"in self&&Q instanceof DOMError?Q.name!=="VersionError":!(Q instanceof Object&&"message"in Q)||Q.message!=="An attempt was made to open a database using a lower version than the existing version."){X.jumpTo(8);
break}return _.k(X,S.openDb(S.name,void 0,Object.assign({},Y,{upgrade:void 0})),9);case 9:J=X.yieldResult;K=J.getVersion();if(S.options.version!==void 0&&K>S.options.version+1)throw J.close(),S.isCompatible=!1,AIe(S,K);return X.return(J);case 8:throw U(),Q instanceof Error&&!_.y("ytidb_async_stack_killswitch")&&(Q.stack=Q.stack+"\n"+V.substring(V.indexOf("\n")+1)),R0G(Q,S.name,"",(G=S.options.version)!=null?G:-1);}})};
return this.connectionPromise=p=L()};var wvE=new H1("YtIdbMeta",{objectStores:{databases:{addedAtVersion:1}},upgrade:function(S,p){p(1)&&lg(S,"databases",{keyPath:"actualName"})}});var mUX,xUw=new function(){}(new function(){});new _.MI;var t9I=function(S,p){H1.call(this,S,p);this.options=p;PS(S)};
_.r(t9I,H1);var c8q=function(S,p){var U;return function(){U||(U=new t9I(S,p));return U}};
t9I.prototype.openDb=function(S,p,U){U=U===void 0?{}:U;return(this.options.shared?Nne:i9e)(S,p,Object.assign({},U))};
t9I.prototype.delete=function(S){S=S===void 0?{}:S;return(this.options.shared?tmd:BnR)(this.name,S)};var cIH={},Shw=qT("ytGcfConfig",{objectStores:(cIH.coldConfigStore={addedAtVersion:1},cIH.hotConfigStore={addedAtVersion:1},cIH),shared:!1,upgrade:function(S,p){p(1)&&(at(lg(S,"hotConfigStore",{keyPath:"key",autoIncrement:!0}),"hotTimestampIndex","timestamp"),at(lg(S,"coldConfigStore",{keyPath:"key",autoIncrement:!0}),"coldTimestampIndex","timestamp"))},
version:1});var SPe=function(){_.hY.call(this);this.localHotConfigJobQueue=[];this.sharedHotConfigJobQueue=[];var S=_.ad("yt.gcf.config.hotUpdateCallbacks");S?(this.localHotConfigJobQueue=[].concat(_.jo(S)),this.sharedHotConfigJobQueue=S):(this.sharedHotConfigJobQueue=[],_.NT("yt.gcf.config.hotUpdateCallbacks",this.sharedHotConfigJobQueue))};
_.r(SPe,_.hY);SPe.prototype.disposeInternal=function(){for(var S=_.d(this.localHotConfigJobQueue),p=S.next();!p.done;p=S.next()){var U=this.sharedHotConfigJobQueue;p=U.indexOf(p.value);p>=0&&U.splice(p,1)}this.localHotConfigJobQueue.length=0;_.hY.prototype.disposeInternal.call(this)};var jP=function(){var S=this;this.isConfigDbInitialized=!1;this.debounceTimer=this.initJob=0;this.configUpdateService=new SPe;this.TEST_ONLY={initializeConfigDb:function(){S.isConfigDbInitialized=!0},
getColdConfigGroup:function(){return S.coldGlobalConfigGroup},
setHotConfigGroup:function(p){pAc(S,p)},
setHotHashData:function(p){S.setHotHashData(p)},
setColdConfigGroup:function(p){Uzt(S,p)},
getColdHashData:function(){return S.coldHashData},
getHotHashData:function(){return S.hotHashData},
getHotConfigGroup:function(){return S.hotGlobalConfigGroup},
getExportedColdConfigGroup:function(){return YPe()},
getExportedHotConfigGroup:function(){return D0()},
getExportedColdHashData:function(){return _.ad("yt.gcf.config.coldHashData")},
getExportedHotHashData:function(){return _.ad("yt.gcf.config.hotHashData")},
triggerScheduleConfigs:function(){LjQ(S)},
resetInstance:function(){S.setHotHashData(void 0);Mal(S);delete jP.instance},
setDebounceTimer:function(p){S.debounceTimer=p},
getDebounceTimer:function(){return S.debounceTimer}}},IuP=function(){if(!jP.instance){var S=new jP;
jP.instance=S}return jP.instance},T6d=function(S){var p;
_.T(function(U){if(U.nextAddress==1)return _.y("start_client_gcf")||_.y("delete_gcf_config_db")?_.y("start_client_gcf")?_.k(U,_.BS(),3):U.jumpTo(2):U.return();U.nextAddress!=2&&((p=U.yieldResult)&&_.JI()&&!_.y("delete_gcf_config_db")?(S.isConfigDbInitialized=!0,LjQ(S)):(dzq(S),Vat(S)));return _.y("delete_gcf_config_db")?_.k(U,I9R(),0):U.jumpTo(0)})},dmE=function(){var S;
return(S=D0())!=null?S:_.g7("RAW_HOT_CONFIG_GROUP")},Wjw=function(S){var p,U,Y,L,I,V;
return _.T(function(W){switch(W.nextAddress){case 1:if(S.hotGlobalConfigGroup)return W.return(D0());if(!S.isConfigDbInitialized)return p=ui("getHotConfig IDB not initialized"),_.fU(p),W.return(Promise.reject(p));U=ii();Y=_.g7("TIME_CREATED_MS");if(!U){L=ui("getHotConfig token error");_.fU(L);W.jumpTo(2);break}return _.k(W,Mtw(U),3);case 3:if((I=W.yieldResult)&&I.timestamp>Y)return pAc(S,I.config),S.setHotHashData(I.hashData),W.return(D0());case 2:Vat(S);if(!(U&&S.hotGlobalConfigGroup&&S.hotHashData)){W.jumpTo(4);
break}return _.k(W,UwG(S.hotGlobalConfigGroup,S.hotHashData,U,Y),4);case 4:return S.hotGlobalConfigGroup?W.return(D0()):(V=new _.y7("Config not available in ytConfig"),_.fU(V),W.return(Promise.reject(V)))}})},kMe=function(S){var p,U,Y,L,I,V;
return _.T(function(W){switch(W.nextAddress){case 1:if(S.coldGlobalConfigGroup)return W.return(YPe());if(!S.isConfigDbInitialized)return p=ui("getColdConfig IDB not initialized"),_.fU(p),W.return(Promise.reject(p));U=ii();Y=_.g7("TIME_CREATED_MS");if(!U){L=ui("getColdConfig");_.fU(L);W.jumpTo(2);break}return _.k(W,Lpw(U),3);case 3:if((I=W.yieldResult)&&I.timestamp>Y)return Uzt(S,I.config),Ofc(S,I.configData),Mal(S,I.hashData),W.return(YPe());case 2:dzq(S);if(!(U&&S.coldGlobalConfigGroup&&S.coldHashData&&
S.configData)){W.jumpTo(4);break}return _.k(W,YhG(S.coldGlobalConfigGroup,S.coldHashData,S.configData,U,Y),4);case 4:return S.coldGlobalConfigGroup?W.return(YPe()):(V=new _.y7("Config not available in ytConfig"),_.fU(V),W.return(Promise.reject(V)))}})},LjQ=function(S){if(!S.hotGlobalConfigGroup||!S.coldGlobalConfigGroup){if(!ii()){var p=ui("scheduleGetConfigs");
_.fU(p)}S.initJob||(S.initJob=_.PA.addLowPriorityJob(function(){return _.T(function(U){switch(U.nextAddress){case 1:return _.M2(U,2),_.k(U,Wjw(S),4);case 4:_.CA(U,3);break;case 2:_.W4(U);case 3:return _.M2(U,5),_.k(U,kMe(S),7);case 7:_.CA(U,6);break;case 5:_.W4(U);case 6:S.initJob&&(S.initJob=0),_.OV(U)}})},100))}},Ume=function(S,p,U){var Y,L,I;
return _.T(function(V){switch(V.nextAddress){case 1:if(!_.y("start_client_gcf")){V.jumpTo(0);break}U&&pAc(S,U);S.setHotHashData(p);Y=ii();if(!Y){V.jumpTo(3);break}if(U){V.jumpTo(4);break}return _.k(V,Mtw(Y),5);case 5:L=V.yieldResult,U=(I=L)==null?void 0:I.config;case 4:return _.k(V,UwG(U,p,Y),3);case 3:if(U)for(var W=U,O=_.d(S.configUpdateService.sharedHotConfigJobQueue),D=O.next();!D.done;D=O.next())D=D.value,D(W);_.OV(V)}})},YWu=function(S,p,U){var Y,L,I,V;
return _.T(function(W){if(W.nextAddress==1){if(!_.y("start_client_gcf"))return W.jumpTo(0);Mal(S,p);return(Y=ii())?U?W.jumpTo(4):_.k(W,Lpw(Y),5):W.jumpTo(0)}W.nextAddress!=4&&(L=W.yieldResult,U=(I=L)==null?void 0:I.config);if(!U)return W.jumpTo(0);V=U.configData;return _.k(W,YhG(U,p,V,Y),0)})},GIu=function(){var S=IuP(),p=(0,_.AI)()-S.debounceTimer;
if(!(S.debounceTimer!==0&&p<_.pA("send_config_hash_timer"))){p=_.ad("yt.gcf.config.coldConfigData");var U=_.ad("yt.gcf.config.hotHashData"),Y=_.ad("yt.gcf.config.coldHashData");p&&U&&Y&&(S.debounceTimer=(0,_.AI)());return{coldConfigData:p,hotHashData:U,coldHashData:Y}}},dzq=function(S){Uzt(S,_.g7("RAW_COLD_CONFIG_GROUP"));
Mal(S,_.g7("SERIALIZED_COLD_HASH_DATA"));var p;Ofc(S,(p=S.coldGlobalConfigGroup)==null?void 0:p.configData)},Vat=function(S){pAc(S,_.g7("RAW_HOT_CONFIG_GROUP"));
S.setHotHashData(_.g7("SERIALIZED_HOT_HASH_DATA"))},pAc=function(S,p){S.hotGlobalConfigGroup=p;
_.NT("yt.gcf.config.hotConfigGroup",S.hotGlobalConfigGroup||null)},Uzt=function(S,p){S.coldGlobalConfigGroup=p;
_.NT("yt.gcf.config.coldConfigGroup",S.coldGlobalConfigGroup||null)};
jP.prototype.setHotHashData=function(S){this.hotHashData=S;_.NT("yt.gcf.config.hotHashData",this.hotHashData||null)};
var Mal=function(S,p){S.coldHashData=p;_.NT("yt.gcf.config.coldHashData",S.coldHashData||null)},Ofc=function(S,p){S.configData=p;
_.NT("yt.gcf.config.coldConfigData",S.configData||null)},D0=function(){return _.ad("yt.gcf.config.hotConfigGroup")},YPe=function(){return _.ad("yt.gcf.config.coldConfigGroup")};var V0={},Hft=typeof Uint8Array!=="undefined"&&typeof Uint16Array!=="undefined"&&typeof Int32Array!=="undefined";V0.assign=function(S){for(var p=Array.prototype.slice.call(arguments,1);p.length;){var U=p.shift();if(U){if(typeof U!=="object")throw new TypeError("Uc`"+U);for(var Y in U)Object.prototype.hasOwnProperty.call(U,Y)&&(S[Y]=U[Y])}}return S};
V0.shrinkBuf=function(S,p){if(S.length===p)return S;if(S.subarray)return S.subarray(0,p);S.length=p;return S};
var Dzd={arraySet:function(S,p,U,Y,L){if(p.subarray&&S.subarray)S.set(p.subarray(U,U+Y),L);else for(var I=0;I<Y;I++)S[L+I]=p[U+I]},
flattenChunks:function(S){var p,U;var Y=U=0;for(p=S.length;Y<p;Y++)U+=S[Y].length;var L=new Uint8Array(U);Y=U=0;for(p=S.length;Y<p;Y++){var I=S[Y];L.set(I,U);U+=I.length}return L}},zCl={arraySet:function(S,p,U,Y,L){for(var I=0;I<Y;I++)S[L+I]=p[U+I]},
flattenChunks:function(S){return[].concat.apply([],S)}};
V0.setTyped=function(){Hft?(V0.Buf8=Uint8Array,V0.Buf16=Uint16Array,V0.Buf32=Int32Array,V0.assign(V0,Dzd)):(V0.Buf8=Array,V0.Buf16=Array,V0.Buf32=Array,V0.assign(V0,zCl))};
V0.setTyped();var Qtj=!0;try{new Uint8Array(1)}catch(S){Qtj=!1}
var M4q=function(S){var p,U,Y=S.length,L=0;for(p=0;p<Y;p++){var I=S.charCodeAt(p);if((I&64512)===55296&&p+1<Y){var V=S.charCodeAt(p+1);(V&64512)===56320&&(I=65536+(I-55296<<10)+(V-56320),p++)}L+=I<128?1:I<2048?2:I<65536?3:4}var W=new V0.Buf8(L);for(p=U=0;U<L;p++)I=S.charCodeAt(p),(I&64512)===55296&&p+1<Y&&(V=S.charCodeAt(p+1),(V&64512)===56320&&(I=65536+(I-55296<<10)+(V-56320),p++)),I<128?W[U++]=I:(I<2048?W[U++]=192|I>>>6:(I<65536?W[U++]=224|I>>>12:(W[U++]=240|I>>>18,W[U++]=128|I>>>12&63),W[U++]=
128|I>>>6&63),W[U++]=128|I&63);return W};var $ww={};$ww=function(S,p,U,Y){var L=S&65535|0;S=S>>>16&65535|0;for(var I;U!==0;){I=U>2E3?2E3:U;U-=I;do L=L+p[Y++]|0,S=S+L|0;while(--I);L%=65521;S%=65521}return L|S<<16|0};for(var GM={},zA,n7E=[],JEj=0;JEj<256;JEj++){zA=JEj;for(var yEm=0;yEm<8;yEm++)zA=zA&1?3988292384^zA>>>1:zA>>>1;n7E[JEj]=zA}GM=function(S,p,U,Y){U=Y+U;for(S^=-1;Y<U;Y++)S=S>>>8^n7E[(S^p[Y])&255];return S^-1};var zM={};zM={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 ugd=[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],l9G=[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],LAk=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],odk=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],y0=Array(576);Lf(y0);var Kf=Array(60);Lf(Kf);var WA=Array(512);Lf(WA);var TM=Array(256);Lf(TM);var wdw=Array(29);Lf(wdw);var a9N=Array(30);Lf(a9N);var pJG,U9q,Ycw,Scr=!1;var Xy;
Xy=[new Fy(0,0,0,0,function(S,p){var U=65535;for(U>S.pending_buf_size-5&&(U=S.pending_buf_size-5);;){if(S.lookahead<=1){hE(S);if(S.lookahead===0&&p===0)return 1;if(S.lookahead===0)break}S.strstart+=S.lookahead;S.lookahead=0;var Y=S.block_start+U;if(S.strstart===0||S.strstart>=Y)if(S.lookahead=S.strstart-Y,S.strstart=Y,bg(S,!1),S.strm.avail_out===0)return 1;if(S.strstart-S.block_start>=S.w_size-262&&(bg(S,!1),S.strm.avail_out===0))return 1}S.insert=0;if(p===4)return bg(S,!0),S.strm.avail_out===0?3:
4;S.strstart>S.block_start&&bg(S,!1);return 1}),
new Fy(4,4,8,4,ipN),new Fy(4,5,16,8,ipN),new Fy(4,6,32,32,ipN),new Fy(4,4,16,16,Rt),new Fy(8,16,32,32,Rt),new Fy(8,16,128,128,Rt),new Fy(8,32,128,256,Rt),new Fy(32,128,258,1024,Rt),new Fy(32,258,258,4096,Rt)];var car={};car=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 I4q=Object.prototype.toString;
ttX.prototype.push=function(S,p){var U=this.strm,Y=this.options.chunkSize;if(this.ended)return!1;var L=p===~~p?p:p===!0?4:0;typeof S==="string"?U.input=M4q(S):I4q.call(S)==="[object ArrayBuffer]"?U.input=new Uint8Array(S):U.input=S;U.next_in=0;U.avail_in=U.input.length;do{U.avail_out===0&&(U.output=new V0.Buf8(Y),U.next_out=0,U.avail_out=Y);S=AaR(U,L);if(S!==1&&S!==0)return Kjt(this,S),this.ended=!0,!1;if(U.avail_out===0||U.avail_in===0&&(L===4||L===2))if(this.options.to==="string"){var I=V0.shrinkBuf(U.output,
U.next_out);p=I;I=I.length;if(I<65537&&(p.subarray&&Qtj||!p.subarray))p=String.fromCharCode.apply(null,V0.shrinkBuf(p,I));else{for(var V="",W=0;W<I;W++)V+=String.fromCharCode(p[W]);p=V}this.chunks.push(p)}else p=V0.shrinkBuf(U.output,U.next_out),this.chunks.push(p)}while((U.avail_in>0||U.avail_out===0)&&S!==1);if(L===4)return(U=this.strm)&&U.state?(Y=U.state.status,Y!==42&&Y!==69&&Y!==73&&Y!==91&&Y!==103&&Y!==113&&Y!==666?S=Q0(U,-2):(U.state=null,S=Y===113?Q0(U,-3):0)):S=-2,Kjt(this,S),this.ended=
!0,S===0;L===2&&(Kjt(this,0),U.avail_out=0);return!0};
var Kjt=function(S,p){p===0&&(S.result=S.options.to==="string"?S.chunks.join(""):V0.flattenChunks(S.chunks));S.chunks=[];S.err=p;S.msg=S.strm.msg};var bft=typeof TextEncoder!=="undefined"?new TextEncoder:null,wJe=bft?function(S){return bft.encode(S)}:function(S){S=_.r5(S);
for(var p=new Uint8Array(S.length),U=0;U<p.length;U++)p[U]=S[U];return p};var M0w={next:"wn_s",browse:"br_s",search:"sr_s",reel:"r_wrs",player:"ps_s"},dVq={next:"wn_r",browse:"br_r",search:"sr_r",reel:"r_wrr",player:"ps_r"};var Ql=function(S,p){this.version=S;this.args=p};
Ql.prototype.serialize=function(){return{version:this.version,args:this.args}};var OKr=function(S,p){this.topic=S;this.dataClass=p};
OKr.prototype.toString=function(){return this.topic};var jtt=_.ad("ytPubsub2Pubsub2Instance")||new _.kU;_.kU.prototype.subscribe=_.kU.prototype.subscribe;_.kU.prototype.unsubscribeByKey=_.kU.prototype.unsubscribeByKey;_.kU.prototype.publish=_.kU.prototype.publish;_.kU.prototype.clear=_.kU.prototype.clear;_.NT("ytPubsub2Pubsub2Instance",jtt);var WAG=_.ad("ytPubsub2Pubsub2SubscribedKeys")||{};_.NT("ytPubsub2Pubsub2SubscribedKeys",WAG);var HKe=_.ad("ytPubsub2Pubsub2TopicToKeys")||{};_.NT("ytPubsub2Pubsub2TopicToKeys",HKe);
var kfX=_.ad("ytPubsub2Pubsub2IsAsync")||{};_.NT("ytPubsub2Pubsub2IsAsync",kfX);_.NT("ytPubsub2Pubsub2SkipSubKey",null);var rZE=void 0,bKk=void 0;var s4r=_.pA("max_body_size_to_compress",5E5),e$e=_.pA("min_body_size_to_compress",500),sP=!0,f4R=0,ea=0,a4w=_.pA("compression_performance_threshold_lr",250),CMe=_.pA("slow_compressions_before_abandon_count",4),R$u=!1,FAX=new Map,u1N=1,glE=!0;_.q_(g6,m9e);g6.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 rEE=function(S,p,U){U||(U=0);var Y=S.W_;if(typeof p==="string")for(var L=0;L<16;L++)Y[L]=p.charCodeAt(U)<<24|p.charCodeAt(U+1)<<16|p.charCodeAt(U+2)<<8|p.charCodeAt(U+3),U+=4;else for(L=0;L<16;L++)Y[L]=p[U]<<24|p[U+1]<<16|p[U+2]<<8|p[U+3],U+=4;for(p=16;p<80;p++)U=Y[p-3]^Y[p-8]^Y[p-14]^Y[p-16],Y[p]=(U<<1|U>>>31)&4294967295;p=S.chain_[0];U=S.chain_[1];L=S.chain_[2];for(var I=S.chain_[3],V=S.chain_[4],W,O,D=0;D<80;D++)D<40?D<20?(W=I^U&(L^I),O=1518500249):(W=U^L^I,O=1859775393):D<60?(W=U&L|I&(U|L),
O=2400959708):(W=U^L^I,O=3395469782),W=(p<<5|p>>>27)+W+V+O+Y[D]&4294967295,V=I,I=L,L=(U<<30|U>>>2)&4294967295,U=p,p=W;S.chain_[0]=S.chain_[0]+p&4294967295;S.chain_[1]=S.chain_[1]+U&4294967295;S.chain_[2]=S.chain_[2]+L&4294967295;S.chain_[3]=S.chain_[3]+I&4294967295;S.chain_[4]=S.chain_[4]+V&4294967295};
g6.prototype.update=function(S,p){if(S!=null){p===void 0&&(p=S.length);for(var U=p-this.blockSize,Y=0,L=this.buf_,I=this.inbuf_;Y<p;){if(I==0)for(;Y<=U;)rEE(this,S,Y),Y+=this.blockSize;if(typeof S==="string")for(;Y<p;){if(L[I]=S.charCodeAt(Y),++I,++Y,I==this.blockSize){rEE(this,L);I=0;break}}else for(;Y<p;)if(L[I]=S[Y],++I,++Y,I==this.blockSize){rEE(this,L);I=0;break}}this.inbuf_=I;this.total_+=p}};
g6.prototype.digest=function(){var S=[],p=this.total_*8;this.inbuf_<56?this.update(this.pad_,56-this.inbuf_):this.update(this.pad_,this.blockSize-(this.inbuf_-56));for(var U=this.blockSize-1;U>=56;U--)this.buf_[U]=p&255,p/=256;rEE(this,this.buf_);for(U=p=0;U<5;U++)for(var Y=24;Y>=0;Y-=8)S[p]=this.chain_[U]>>Y&255,++p;return S};var $9w;var Jc=function(S){var p=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(z){p.databaseToken=z},
triggerThrottle:function(){p.throttledSend()},
cancelThrottle:function(){p.cancelThrottledSend()},
immediateSend:function(z){return _.T(function(Q){return _.k(Q,p.immediateSend(z),0)})},
requestWithinAgeLimit:function(z,Q){return p.requestWithinAgeLimit(z,Q)},
retryQueuedRequests:function(){p.retryQueuedRequests()}};
var U;this.throttleTimeout=(U=S.throttleTimeout)!=null?U:100;var Y;this.retryMaxAttempts=(Y=S.retryMaxAttempts)!=null?Y:1;var L;this.requestAgeLimitMs=(L=S.requestAgeLimitMs)!=null?L:2592E6;var I;this.queuedRequestAgeLimitMs=(I=S.queuedRequestAgeLimitMs)!=null?I:12E4;var V;this.retryDelayMs=(V=S.retryDelayMs)!=null?V:5E3;var W;this.databaseToken=(W=S.databaseToken)!=null?W:void 0;this.enableCleaning=!!S.enableCleaning;var O;this.cleaningRate=(O=S.cleaningRate)!=null?O:.1;var D;this.potentialEsfErrorLimit=
(D=S.potentialEsfErrorLimit)!=null?D:10;S.handleError&&(this.handleError=S.handleError);S.handleWarning&&(this.handleWarning=S.handleWarning);S.disableYtIdbTransactions&&(this.disableYtIdbTransactions=S.disableYtIdbTransactions);S.bypassDbTokenDependency&&(this.bypassDbTokenDependency=S.bypassDbTokenDependency);this.getBooleanFlag=S.getBooleanFlag;this.jobManager=S.jobManager;this.logsStore=S.logsStore;this.networkManager=S.networkManager;this.sendFn=S.sendFn;this.onlineEvent=S.onlineEvent;this.offlineEvent=
S.offlineEvent;nD(this)&&(!this.getBooleanFlag||this.getBooleanFlag("networkless_logging"))&&GMc(this)},GMc=function(S){nD(S)&&!S.disableYtIdbTransactions&&(S.initialized=!0,S.enableCleaning&&Math.random()<=S.cleaningRate&&S.logsStore.cleanLogsStore(S.databaseToken),S.retryQueuedRequests(),S.networkManager.isNetworkAvailable()&&S.throttledSend(),S.networkManager.listen(S.onlineEvent,S.throttledSend.bind(S)),S.networkManager.listen(S.offlineEvent,S.cancelThrottledSend.bind(S)))};
_.M=Jc.prototype;_.M.writeThenSend=function(S,p){var U=this;p=p===void 0?{}:p;if(nD(this)&&this.initialized){var Y={url:S,options:p,timestamp:this.now(),status:"NEW",sendCount:0};this.logsStore.set(Y,this.databaseToken).then(function(L){Y.id=L;U.networkManager.isNetworkAvailable()&&U.immediateSend(Y)}).catch(function(L){U.immediateSend(Y);
hCt(U,L)})}else this.sendFn(S,p)};
_.M.sendThenWrite=function(S,p,U){var Y=this;p=p===void 0?{}:p;if(nD(this)&&this.initialized){var L={url:S,options:p,timestamp:this.now(),status:"NEW",sendCount:0};this.getBooleanFlag&&this.getBooleanFlag("nwl_skip_retry")&&(L.skipRetry=U);if(this.networkManager.isNetworkAvailable()||this.getBooleanFlag&&this.getBooleanFlag("nwl_aggressive_send_then_write")&&!L.skipRetry){if(!L.skipRetry){var I=p.onError?p.onError:function(){};
p.onError=function(V,W){return _.T(function(O){if(O.nextAddress==1)return _.k(O,Y.logsStore.set(L,Y.databaseToken).catch(function(D){hCt(Y,D)}),2);
I(V,W);_.OV(O)})}}this.sendFn(S,p,L.skipRetry)}else this.logsStore.set(L,this.databaseToken).catch(function(V){Y.sendFn(S,p,L.skipRetry);
hCt(Y,V)})}else this.sendFn(S,p,this.getBooleanFlag&&this.getBooleanFlag("nwl_skip_retry")&&U)};
_.M.sendAndWrite=function(S,p){var U=this;p=p===void 0?{}:p;if(nD(this)&&this.initialized){var Y={url:S,options:p,timestamp:this.now(),status:"NEW",sendCount:0},L=!1,I=p.onSuccess?p.onSuccess:function(){};
Y.options.onSuccess=function(V,W){Y.id!==void 0?U.logsStore.deleteRequest(Y.id,U.databaseToken):L=!0;U.networkManager.networkStatusHint&&U.getBooleanFlag&&U.getBooleanFlag("vss_network_hint")&&U.networkManager.networkStatusHint(!0);I(V,W)};
this.sendFn(Y.url,Y.options,void 0,!0);this.logsStore.set(Y,this.databaseToken).then(function(V){Y.id=V;L&&U.logsStore.deleteRequest(Y.id,U.databaseToken)}).catch(function(V){hCt(U,V)})}else this.sendFn(S,p,void 0,!0)};
_.M.throttledSend=function(){var S=this;if(!nD(this))throw Error("Xc");this.intervalJob||(this.intervalJob=this.jobManager.addLowPriorityJob(function(){var p;return _.T(function(U){if(U.nextAddress==1)return _.k(U,S.logsStore.getMostRecentByStatus("NEW",S.databaseToken),2);if(U.nextAddress!=3)return p=U.yieldResult,p?_.k(U,S.immediateSend(p),3):(S.cancelThrottledSend(),U.return());S.intervalJob&&(S.intervalJob=0,S.throttledSend());_.OV(U)})},this.throttleTimeout))};
_.M.cancelThrottledSend=function(){this.jobManager.cancelJob(this.intervalJob);this.intervalJob=0};
_.M.immediateSend=function(S){var p=this,U;return _.T(function(Y){switch(Y.nextAddress){case 1:if(!nD(p))throw Error("Yc");if(S.id===void 0){Y.jumpTo(2);break}return _.k(Y,p.logsStore.markAsQueued(S.id,p.databaseToken),3);case 3:(U=Y.yieldResult)||p.handleWarning(Error("Zc"));case 2:if(p.requestWithinAgeLimit(S,p.requestAgeLimitMs)){Y.jumpTo(4);break}p.handleWarning(Error("$c"));if(S.id===void 0){Y.jumpTo(5);break}return _.k(Y,p.logsStore.deleteRequest(S.id,p.databaseToken),5);case 5:return Y.return();
case 4:S.skipRetry||(S=RCQ(p,S));if(!S){Y.jumpTo(0);break}if(!S.skipRetry||S.id===void 0){Y.jumpTo(8);break}return _.k(Y,p.logsStore.deleteRequest(S.id,p.databaseToken),8);case 8:p.sendFn(S.url,S.options,!!S.skipRetry),_.OV(Y)}})};
var RCQ=function(S,p){if(!nD(S))throw Error("ad");var U=p.options.onError?p.options.onError:function(){};
p.options.onError=function(L,I){var V,W,O,D;return _.T(function(z){switch(z.nextAddress){case 1:V=AZk(I);(W=t4d(I))&&S.getBooleanFlag&&S.getBooleanFlag("web_enable_error_204")&&S.handleError(Error("bd"),p.url,I);if(!(S.getBooleanFlag&&S.getBooleanFlag("nwl_consider_error_code")&&V||S.getBooleanFlag&&!S.getBooleanFlag("nwl_consider_error_code")&&S.potentialEsfErrorCounter<=S.potentialEsfErrorLimit)){z.jumpTo(2);break}if(!S.networkManager.sendNetworkCheckRequest){z.jumpTo(3);break}return _.k(z,S.networkManager.sendNetworkCheckRequest(),
3);case 3:if(S.networkManager.isNetworkAvailable()){z.jumpTo(2);break}U(L,I);if(!S.getBooleanFlag||!S.getBooleanFlag("nwl_consider_error_code")||((O=p)==null?void 0:O.id)===void 0){z.jumpTo(6);break}return _.k(z,S.logsStore.resetRequest(p.id,S.databaseToken,!1),6);case 6:return z.return();case 2:if(S.getBooleanFlag&&S.getBooleanFlag("nwl_consider_error_code")&&!V&&S.potentialEsfErrorCounter>S.potentialEsfErrorLimit)return z.return();S.potentialEsfErrorCounter++;if(((D=p)==null?void 0:D.id)===void 0){z.jumpTo(8);
break}return p.sendCount<S.retryMaxAttempts?_.k(z,S.logsStore.resetRequest(p.id,S.databaseToken,!0,W?!1:void 0),12):_.k(z,S.logsStore.deleteRequest(p.id,S.databaseToken),8);case 12:S.jobManager.addLowPriorityJob(function(){S.networkManager.isNetworkAvailable()&&S.throttledSend()},S.retryDelayMs);
case 8:U(L,I),_.OV(z)}})};
var Y=p.options.onSuccess?p.options.onSuccess:function(){};
p.options.onSuccess=function(L,I){var V;return _.T(function(W){if(W.nextAddress==1)return((V=p)==null?void 0:V.id)===void 0?W.jumpTo(2):_.k(W,S.logsStore.deleteRequest(p.id,S.databaseToken),2);S.networkManager.networkStatusHint&&S.getBooleanFlag&&S.getBooleanFlag("vss_network_hint")&&S.networkManager.networkStatusHint(!0);Y(L,I);_.OV(W)})};
return p};
Jc.prototype.requestWithinAgeLimit=function(S,p){S=S.timestamp;return this.now()-S>=p?!1:!0};
Jc.prototype.retryQueuedRequests=function(){var S=this;if(!nD(this))throw Error("cd");this.logsStore.getMostRecentByStatus("QUEUED",this.databaseToken).then(function(p){p&&!S.requestWithinAgeLimit(p,S.queuedRequestAgeLimitMs)?S.jobManager.addLowPriorityJob(function(){return _.T(function(U){if(U.nextAddress==1)return p.id===void 0?U.jumpTo(2):_.k(U,S.logsStore.resetRequest(p.id,S.databaseToken),2);S.retryQueuedRequests();_.OV(U)})}):S.networkManager.isNetworkAvailable()&&S.throttledSend()})};
var hCt=function(S,p){S.writeError&&!S.networkManager.isNetworkAvailable()?S.writeError(p):S.handleError(p)},nD=function(S){return!!S.databaseToken||S.bypassDbTokenDependency};var cZq;var I$X={accountStateChangeSignedIn:23,accountStateChangeSignedOut:24,delayedEventMetricCaptured:11,latencyActionBaselined:6,latencyActionInfo:7,latencyActionTicked:5,offlineTransferStatusChanged:2,offlineImageDownload:335,playbackStartStateChanged:9,systemHealthCaptured:3,mangoOnboardingCompleted:10,mangoPushNotificationReceived:230,mangoUnforkDbMigrationError:121,mangoUnforkDbMigrationSummary:122,mangoUnforkDbMigrationPreunforkDbVersionNumber:133,mangoUnforkDbMigrationPhoneMetadata:134,mangoUnforkDbMigrationPhoneStorage:135,
mangoUnforkDbMigrationStep:142,mangoAsyncApiMigrationEvent:223,mangoDownloadVideoResult:224,mangoHomepageVideoCount:279,mangoHomeV3State:295,mangoImageClientCacheHitEvent:273,sdCardStatusChanged:98,framesDropped:12,thumbnailHovered:13,deviceRetentionInfoCaptured:14,thumbnailLoaded:15,backToAppEvent:318,streamingStatsCaptured:17,offlineVideoShared:19,appCrashed:20,youThere:21,offlineStateSnapshot:22,mdxSessionStarted:25,mdxSessionConnected:26,mdxSessionDisconnected:27,bedrockResourceConsumptionSnapshot:28,
nextGenWatchWatchSwiped:29,kidsAccountsSnapshot:30,zeroStepChannelCreated:31,tvhtml5SearchCompleted:32,offlineSharePairing:34,offlineShareUnlock:35,mdxRouteDistributionSnapshot:36,bedrockRepetitiveActionTimed:37,unpluggedDegradationInfo:229,uploadMp4HeaderMoved:38,uploadVideoTranscoded:39,uploadProcessorStarted:46,uploadProcessorEnded:47,uploadProcessorReady:94,uploadProcessorRequirementPending:95,uploadProcessorInterrupted:96,uploadFrontendEvent:241,assetPackDownloadStarted:41,assetPackDownloaded:42,
assetPackApplied:43,assetPackDeleted:44,appInstallAttributionEvent:459,playbackSessionStopped:45,adBlockerMessagingShown:48,distributionChannelCaptured:49,dataPlanCpidRequested:51,detailedNetworkTypeCaptured:52,sendStateUpdated:53,receiveStateUpdated:54,sendDebugStateUpdated:55,receiveDebugStateUpdated:56,kidsErrored:57,mdxMsnSessionStatsFinished:58,appSettingsCaptured:59,mdxWebSocketServerHttpError:60,mdxWebSocketServer:61,startupCrashesDetected:62,coldStartInfo:435,offlinePlaybackStarted:63,liveChatMessageSent:225,
liveChatUserPresent:434,liveChatBeingModerated:457,liveCreationCameraUpdated:64,liveCreationEncodingCaptured:65,liveCreationError:66,liveCreationHealthUpdated:67,liveCreationVideoEffectsCaptured:68,liveCreationStageOccured:75,liveCreationBroadcastScheduled:123,liveCreationArchiveReplacement:149,liveCreationCostreamingConnection:421,liveCreationStreamWebrtcStats:288,mdxSessionRecoveryStarted:69,mdxSessionRecoveryCompleted:70,mdxSessionRecoveryStopped:71,visualElementShown:72,visualElementHidden:73,
visualElementGestured:78,visualElementStateChanged:208,screenCreated:156,playbackAssociated:202,visualElementAttached:215,playbackContextEvent:214,cloudCastingPlaybackStarted:74,webPlayerApiCalled:76,tvhtml5AccountDialogOpened:79,foregroundHeartbeat:80,foregroundHeartbeatScreenAssociated:111,kidsOfflineSnapshot:81,mdxEncryptionSessionStatsFinished:82,playerRequestCompleted:83,liteSchedulerStatistics:84,mdxSignIn:85,spacecastMetadataLookupRequested:86,spacecastBatchLookupRequested:87,spacecastSummaryRequested:88,
spacecastPlayback:89,spacecastDiscovery:90,tvhtml5LaunchUrlComponentChanged:91,mdxBackgroundPlaybackRequestCompleted:92,mdxBrokenAdditionalDataDeviceDetected:93,tvhtml5LocalStorage:97,tvhtml5DeviceStorageStatus:147,autoCaptionsAvailable:99,playbackScrubbingEvent:339,flexyState:100,interfaceOrientationCaptured:101,mainAppBrowseFragmentCache:102,offlineCacheVerificationFailure:103,offlinePlaybackExceptionDigest:217,vrCopresenceStats:104,vrCopresenceSyncStats:130,vrCopresenceCommsStats:137,vrCopresencePartyStats:153,
vrCopresenceEmojiStats:213,vrCopresenceEvent:141,vrCopresenceFlowTransitEvent:160,vrCowatchPartyEvent:492,vrCowatchUserStartOrJoinEvent:504,vrPlaybackEvent:345,kidsAgeGateTracking:105,offlineDelayAllowedTracking:106,mainAppAutoOfflineState:107,videoAsThumbnailDownload:108,videoAsThumbnailPlayback:109,liteShowMore:110,renderingError:118,kidsProfilePinGateTracking:119,abrTrajectory:124,scrollEvent:125,streamzIncremented:126,kidsProfileSwitcherTracking:127,kidsProfileCreationTracking:129,buyFlowStarted:136,
mbsConnectionInitiated:138,mbsPlaybackInitiated:139,mbsLoadChildren:140,liteProfileFetcher:144,mdxRemoteTransaction:146,reelPlaybackError:148,reachabilityDetectionEvent:150,mobilePlaybackEvent:151,courtsidePlayerStateChanged:152,musicPersistentCacheChecked:154,musicPersistentCacheCleared:155,playbackInterrupted:157,playbackInterruptionResolved:158,fixFopFlow:159,anrDetection:161,backstagePostCreationFlowEnded:162,clientError:163,gamingAccountLinkStatusChanged:164,liteHousewarming:165,buyFlowEvent:167,
kidsParentalGateTracking:168,kidsSignedOutSettingsStatus:437,kidsSignedOutPauseHistoryFixStatus:438,tvhtml5WatchdogViolation:444,ypcUpgradeFlow:169,yongleStudy:170,ypcUpdateFlowStarted:171,ypcUpdateFlowCancelled:172,ypcUpdateFlowSucceeded:173,ypcUpdateFlowFailed:174,liteGrowthkitPromo:175,paymentFlowStarted:341,transactionFlowShowPaymentDialog:405,transactionFlowStarted:176,transactionFlowSecondaryDeviceStarted:222,transactionFlowSecondaryDeviceSignedOutStarted:383,transactionFlowCancelled:177,transactionFlowPaymentCallBackReceived:387,
transactionFlowPaymentSubmitted:460,transactionFlowPaymentSucceeded:329,transactionFlowSucceeded:178,transactionFlowFailed:179,transactionFlowPlayBillingConnectionStartEvent:428,transactionFlowSecondaryDeviceSuccess:458,transactionFlowErrorEvent:411,liteVideoQualityChanged:180,watchBreakEnablementSettingEvent:181,watchBreakFrequencySettingEvent:182,videoEffectsCameraPerformanceMetrics:183,adNotify:184,startupTelemetry:185,playbackOfflineFallbackUsed:186,outOfMemory:187,ypcPauseFlowStarted:188,ypcPauseFlowCancelled:189,
ypcPauseFlowSucceeded:190,ypcPauseFlowFailed:191,uploadFileSelected:192,ypcResumeFlowStarted:193,ypcResumeFlowCancelled:194,ypcResumeFlowSucceeded:195,ypcResumeFlowFailed:196,adsClientStateChange:197,ypcCancelFlowStarted:198,ypcCancelFlowCancelled:199,ypcCancelFlowSucceeded:200,ypcCancelFlowFailed:201,ypcCancelFlowGoToPaymentProcessor:402,ypcDeactivateFlowStarted:320,ypcRedeemFlowStarted:203,ypcRedeemFlowCancelled:204,ypcRedeemFlowSucceeded:205,ypcRedeemFlowFailed:206,ypcFamilyCreateFlowStarted:258,
ypcFamilyCreateFlowCancelled:259,ypcFamilyCreateFlowSucceeded:260,ypcFamilyCreateFlowFailed:261,ypcFamilyManageFlowStarted:262,ypcFamilyManageFlowCancelled:263,ypcFamilyManageFlowSucceeded:264,ypcFamilyManageFlowFailed:265,restoreContextEvent:207,embedsAdEvent:327,autoplayTriggered:209,clientDataErrorEvent:210,experimentalVssValidation:211,tvhtml5TriggeredEvent:212,tvhtml5FrameworksFieldTrialResult:216,tvhtml5FrameworksFieldTrialStart:220,musicOfflinePreferences:218,watchTimeSegment:219,appWidthLayoutError:221,
accountRegistryChange:226,userMentionAutoCompleteBoxEvent:227,downloadRecommendationEnablementSettingEvent:228,musicPlaybackContentModeChangeEvent:231,offlineDbOpenCompleted:232,kidsFlowEvent:233,kidsFlowCorpusSelectedEvent:234,videoEffectsEvent:235,unpluggedOpsEogAnalyticsEvent:236,playbackAudioRouteEvent:237,interactionLoggingDebugModeError:238,offlineYtbRefreshed:239,kidsFlowError:240,musicAutoplayOnLaunchAttempted:242,deviceContextActivityEvent:243,deviceContextEvent:244,templateResolutionException:245,
musicSideloadedPlaylistServiceCalled:246,embedsStorageAccessNotChecked:247,embedsHasStorageAccessResult:248,embedsItpPlayedOnReload:249,embedsRequestStorageAccessResult:250,embedsShouldRequestStorageAccessResult:251,embedsRequestStorageAccessState:256,embedsRequestStorageAccessFailedState:257,embedsItpWatchLaterResult:266,searchSuggestDecodingPayloadFailure:252,siriShortcutActivated:253,tvhtml5KeyboardPerformance:254,latencyActionSpan:255,elementsLog:267,ytbFileOpened:268,tfliteModelError:269,apiTest:270,
yongleUsbSetup:271,touStrikeInterstitialEvent:272,liteStreamToSave:274,appBundleClientEvent:275,ytbFileCreationFailed:276,adNotifyFailure:278,ytbTransferFailed:280,blockingRequestFailed:281,liteAccountSelector:282,liteAccountUiCallbacks:283,dummyPayload:284,browseResponseValidationEvent:285,entitiesError:286,musicIosBackgroundFetch:287,mdxNotificationEvent:289,layersValidationError:290,musicPwaInstalled:291,liteAccountCleanup:292,html5PlayerHealthEvent:293,watchRestoreAttempt:294,liteAccountSignIn:296,
notaireEvent:298,kidsVoiceSearchEvent:299,adNotifyFilled:300,delayedEventDropped:301,analyticsSearchEvent:302,systemDarkThemeOptOutEvent:303,flowEvent:304,networkConnectivityBaselineEvent:305,ytbFileImported:306,downloadStreamUrlExpired:307,directSignInEvent:308,lyricImpressionEvent:309,accessibilityStateEvent:310,tokenRefreshEvent:311,genericAttestationExecution:312,tvhtml5VideoSeek:313,unpluggedAutoPause:314,scrubbingEvent:315,bedtimeReminderEvent:317,tvhtml5UnexpectedRestart:319,tvhtml5StabilityTraceEvent:478,
tvhtml5OperationHealth:467,tvhtml5WatchKeyEvent:321,voiceLanguageChanged:322,tvhtml5LiveChatStatus:323,parentToolsCorpusSelectedEvent:324,offerAdsEnrollmentInitiated:325,networkQualityIntervalEvent:326,deviceStartupMetrics:328,heartbeatActionPlayerTransitioned:330,tvhtml5Lifecycle:331,heartbeatActionPlayerHalted:332,adaptiveInlineMutedSettingEvent:333,mainAppLibraryLoadingState:334,thirdPartyLogMonitoringEvent:336,appShellAssetLoadReport:337,tvhtml5AndroidAttestation:338,tvhtml5StartupSoundEvent:340,
iosBackgroundRefreshTask:342,iosBackgroundProcessingTask:343,sliEventBatch:344,postImpressionEvent:346,musicSideloadedPlaylistExport:347,idbUnexpectedlyClosed:348,voiceSearchEvent:349,mdxSessionCastEvent:350,idbQuotaExceeded:351,idbTransactionEnded:352,idbTransactionAborted:353,tvhtml5KeyboardLogging:354,idbIsSupportedCompleted:355,creatorStudioMobileEvent:356,idbDataCorrupted:357,parentToolsAppChosenEvent:358,webViewBottomSheetResized:359,activeStateControllerScrollPerformanceSummary:360,navigatorValidation:361,
mdxSessionHeartbeat:362,clientHintsPolyfillDiagnostics:363,clientHintsPolyfillEvent:364,proofOfOriginTokenError:365,kidsAddedAccountSummary:366,musicWearableDevice:367,ypcRefundFlowEvent:368,tvhtml5PlaybackMeasurementEvent:369,tvhtml5WatermarkMeasurementEvent:370,clientExpGcfPropagationEvent:371,mainAppReferrerIntent:372,leaderLockEnded:373,leaderLockAcquired:374,googleHatsEvent:375,persistentLensLaunchEvent:376,parentToolsChildWelcomeChosenEvent:378,browseThumbnailPreloadEvent:379,finalPayload:380,
mdxDialAdditionalDataUpdateEvent:381,webOrchestrationTaskLifecycleRecord:382,startupSignalEvent:384,accountError:385,gmsDeviceCheckEvent:386,accountSelectorEvent:388,accountUiCallbacks:389,mdxDialAdditionalDataProbeEvent:390,downloadsSearchIcingApiStats:391,downloadsSearchIndexUpdatedEvent:397,downloadsSearchIndexSnapshot:398,dataPushClientEvent:392,kidsCategorySelectedEvent:393,mdxDeviceManagementSnapshotEvent:394,prefetchRequested:395,prefetchableCommandExecuted:396,gelDebuggingEvent:399,webLinkTtsPlayEnd:400,
clipViewInvalid:401,persistentStorageStateChecked:403,cacheWipeoutEvent:404,playerEvent:410,sfvEffectPipelineStartedEvent:412,sfvEffectPipelinePausedEvent:429,sfvEffectPipelineEndedEvent:413,sfvEffectChosenEvent:414,sfvEffectLoadedEvent:415,sfvEffectUserInteractionEvent:465,sfvEffectFirstFrameProcessedLatencyEvent:416,sfvEffectAggregatedFramesProcessedLatencyEvent:417,sfvEffectAggregatedFramesDroppedEvent:418,sfvEffectPipelineErrorEvent:430,sfvEffectGraphFrozenEvent:419,sfvEffectGlThreadBlockedEvent:420,
mdeQosEvent:510,mdeVideoChangedEvent:442,mdePlayerPerformanceMetrics:472,mdeExporterEvent:497,genericClientExperimentEvent:423,homePreloadTaskScheduled:424,homePreloadTaskExecuted:425,homePreloadCacheHit:426,polymerPropertyChangedInObserver:427,applicationStarted:431,networkCronetRttBatch:432,networkCronetRttSummary:433,repeatChapterLoopEvent:436,seekCancellationEvent:462,lockModeTimeoutEvent:483,externalVideoShareToYoutubeAttempt:501,parentCodeEvent:502,offlineTransferStarted:4,musicOfflineMixtapePreferencesChanged:16,
mangoDailyNewVideosNotificationAttempt:40,mangoDailyNewVideosNotificationError:77,dtwsPlaybackStarted:112,dtwsTileFetchStarted:113,dtwsTileFetchCompleted:114,dtwsTileFetchStatusChanged:145,dtwsKeyframeDecoderBufferSent:115,dtwsTileUnderflowedOnNonkeyframe:116,dtwsBackfillFetchStatusChanged:143,dtwsBackfillUnderflowed:117,dtwsAdaptiveLevelChanged:128,blockingVisitorIdTimeout:277,liteSocial:18,mobileJsInvocation:297,biscottiBasedDetection:439,coWatchStateChange:440,embedsVideoDataDidChange:441,shortsFirst:443,
cruiseControlEvent:445,qoeClientLoggingContext:446,atvRecommendationJobExecuted:447,tvhtml5UserFeedback:448,producerProjectCreated:449,producerProjectOpened:450,producerProjectDeleted:451,producerProjectElementAdded:453,producerProjectElementRemoved:454,producerAppStateChange:509,producerProjectDiskInsufficientExportFailure:516,tvhtml5ShowClockEvent:455,deviceCapabilityCheckMetrics:456,youtubeClearcutEvent:461,offlineBrowseFallbackEvent:463,getCtvTokenEvent:464,startupDroppedFramesSummary:466,screenshotEvent:468,
miniAppPlayEvent:469,elementsDebugCounters:470,fontLoadEvent:471,webKillswitchReceived:473,webKillswitchExecuted:474,cameraOpenEvent:475,manualSmoothnessMeasurement:476,tvhtml5AppQualityEvent:477,polymerPropertyAccessEvent:479,miniAppSdkUsage:480,cobaltTelemetryEvent:481,crossDevicePlayback:482,channelCreatedWithObakeImage:484,channelEditedWithObakeImage:485,offlineDeleteEvent:486,crossDeviceNotificationTransfer:487,androidIntentEvent:488,unpluggedAmbientInterludesCounterfactualEvent:489,keyPlaysPlayback:490,
shortsCreationFallbackEvent:493,vssData:491,castMatch:494,miniAppPerformanceMetrics:495,userFeedbackEvent:496,kidsGuestSessionMismatch:498,musicSideloadedPlaylistMigrationEvent:499,sleepTimerSessionFinishEvent:500,watchEpPromoConflict:503,innertubeResponseCacheMetrics:505,miniAppAdEvent:506,dataPlanUpsellEvent:507,producerProjectRenamed:508,producerMediaSelectionEvent:511,embedsAutoplayStatusChanged:512,remoteConnectEvent:513,connectedSessionMisattributionEvent:514,producerProjectElementModified:515,
adsSeenClientLogging:517,producerEvent:518,tvhtml5CleanStart:519,deviceAccountMetricsEvent:520};var FjH={},TzN=qT("ServiceWorkerLogsDatabase",{objectStores:(FjH.SWHealthLog={addedAtVersion:1},FjH),shared:!0,upgrade:function(S,p){p(1)&&at(lg(S,"SWHealthLog",{keyPath:"id",autoIncrement:!0}),"swHealthNewRequest",["interface","timestamp"])},
version:1});var nMX={},QSe=0;var bHe;var yl=function(){this.requestMap=new Map;this.anyRequestHasSucceeded=!1},mj=function(){if(!yl.instance){var S=_.ad("yt.networkRequestMonitor.instance")||new yl;
_.NT("yt.networkRequestMonitor.instance",S);yl.instance=S}return yl.instance};
yl.prototype.requestComplete=function(S,p){p&&(this.anyRequestHasSucceeded=!0);S=this.removeParams(S);this.requestMap.get(S)||this.requestMap.set(S,p)};
yl.prototype.isEndpointCFR=function(S){S=this.removeParams(S);return(S=this.requestMap.get(S))?!1:S===!1&&this.anyRequestHasSucceeded?!0:null};
yl.prototype.removeParams=function(S){return S.split("?")[0]};
yl.prototype.removeParams=yl.prototype.removeParams;yl.prototype.isEndpointCFR=yl.prototype.isEndpointCFR;yl.prototype.requestComplete=yl.prototype.requestComplete;yl.getInstance=mj;var KD=function(S){_.OD.call(this);var p=this;this.pollingJob=this.abortTimeoutKey=0;this.jobManager=S!=null?S:{addLowPriorityJob:function(L,I){return setTimeout(L,I)},
cancelJob:function(L){clearTimeout(L)}};
var U,Y;this.isOnline=(Y=(U=window.navigator)==null?void 0:U.onLine)!=null?Y:!0;this.onNavigatorChange=function(){return _.T(function(L){return _.k(L,XAe(p),0)})};
window.addEventListener("offline",this.onNavigatorChange);window.addEventListener("online",this.onNavigatorChange);this.pollingJob||Pgt(this)};
_.r(KD,_.OD);KD.prototype.dispose=function(){window.removeEventListener("offline",this.onNavigatorChange);window.removeEventListener("online",this.onNavigatorChange);this.jobManager.cancelJob(this.pollingJob);delete KD.instance};
KD.prototype.isNetworkAvailable=function(){return this.isOnline};
var Pgt=function(S){S.pollingJob=S.jobManager.addLowPriorityJob(function(){var p;return _.T(function(U){if(U.nextAddress==1)return S.isOnline?((p=window.navigator)==null?0:p.onLine)?U.jumpTo(3):_.k(U,XAe(S),3):_.k(U,XAe(S),3);Pgt(S);_.OV(U)})},3E4)},XAe=function(S,p){return S.networkRequestPromise?S.networkRequestPromise:S.networkRequestPromise=new Promise(function(U){var Y,L,I,V;
return _.T(function(W){switch(W.nextAddress){case 1:return Y=window.AbortController?new window.AbortController:void 0,I=(L=Y)==null?void 0:L.signal,V=!1,_.M2(W,2,3),Y&&(S.abortTimeoutKey=S.jobManager.addLowPriorityJob(function(){Y.abort()},p||2E4)),_.k(W,fetch("/generate_204",{method:"HEAD",
signal:I}),5);case 5:V=!0;case 3:_.IO(W);S.networkRequestPromise=void 0;S.abortTimeoutKey&&(S.jobManager.cancelJob(S.abortTimeoutKey),S.abortTimeoutKey=0);V!==S.isOnline&&(S.isOnline=V,S.isOnline?S.dispatchEvent("networkstatus-online"):S.dispatchEvent("networkstatus-offline"));U(V);_.T7(W,0);break;case 2:_.W4(W),V=!1,W.jumpTo(3)}})})};var ba=function(){_.OD.call(this);var S=this;this.shouldFlushErrors=!1;KD.instance||(KD.instance=new KD(_.PA));this.sharedNetworkStatusManager=KD.instance;this.sharedNetworkStatusManager.listen("networkstatus-online",function(){if(S.shouldFlushErrors&&_.y("offline_error_handling")){var p=jSk().get("errors",!0);if(p){for(var U in p)if(p[U]){var Y=new _.y7(U,"sent via offline_errors");Y.name=p[U].name;Y.stack=p[U].stack;Y.level=p[U].level;_.w7(Y)}jSk().set("errors",{},2592E3,!0)}}})};
_.r(ba,_.OD);var Zfl=function(){if(!ba.instance){var S=_.ad("yt.networkStatusManager.instance")||new ba;_.NT("yt.networkStatusManager.instance",S);ba.instance=S}return ba.instance};
_.M=ba.prototype;_.M.isNetworkAvailable=function(){return this.sharedNetworkStatusManager.isNetworkAvailable()};
_.M.networkStatusHint=function(S){this.sharedNetworkStatusManager.isOnline=S};
_.M.getWindowStatus=function(){var S=window.navigator.onLine;return S===void 0?!0:S};
_.M.enableErrorFlushing=function(){this.shouldFlushErrors=!0};
_.M.listen=function(S,p){return this.sharedNetworkStatusManager.listen(S,p)};
_.M.sendNetworkCheckRequest=function(S){S=XAe(this.sharedNetworkStatusManager,S);S.then(function(p){_.y("use_cfr_monitor")&&mj().requestComplete("generate_204",p)});
return S};
ba.prototype.sendNetworkCheckRequest=ba.prototype.sendNetworkCheckRequest;ba.prototype.listen=ba.prototype.listen;ba.prototype.enableErrorFlushing=ba.prototype.enableErrorFlushing;ba.prototype.getWindowStatus=ba.prototype.getWindowStatus;ba.prototype.networkStatusHint=ba.prototype.networkStatusHint;ba.prototype.isNetworkAvailable=ba.prototype.isNetworkAvailable;ba.getInstance=Zfl;_.EP=function(S){S=S===void 0?{}:S;_.OD.call(this);var p=this;this.lastJobTime=this.schedulerJob=0;this.nsmInstance=Zfl();var U=_.ad("yt.networkStatusManager.instance.listen").bind(this.nsmInstance);U&&(S.rateLimit?(this.rateLimit=S.rateLimit,U("networkstatus-online",function(){stt(p,"publicytnetworkstatus-online")}),U("networkstatus-offline",function(){stt(p,"publicytnetworkstatus-offline")})):(U("networkstatus-online",function(){p.dispatchEvent("publicytnetworkstatus-online")}),U("networkstatus-offline",
function(){p.dispatchEvent("publicytnetworkstatus-offline")})))};
_.r(_.EP,_.OD);_.EP.prototype.isNetworkAvailable=function(){var S=_.ad("yt.networkStatusManager.instance.isNetworkAvailable");return S?S.bind(this.nsmInstance)():!0};
_.EP.prototype.networkStatusHint=function(S){var p=_.ad("yt.networkStatusManager.instance.networkStatusHint").bind(this.nsmInstance);p&&p(S)};
_.EP.prototype.sendNetworkCheckRequest=function(S){var p=this,U;return _.T(function(Y){U=_.ad("yt.networkStatusManager.instance.sendNetworkCheckRequest").bind(p.nsmInstance);return _.y("skip_network_check_if_cfr")&&mj().isEndpointCFR("generate_204")?Y.return(new Promise(function(L){var I;p.networkStatusHint(((I=window.navigator)==null?void 0:I.onLine)||!0);L(p.isNetworkAvailable())})):U?Y.return(U(S)):Y.return(!0)})};
var stt=function(S,p){S.rateLimit?S.lastJobTime?(_.PA.cancelJob(S.schedulerJob),S.schedulerJob=_.PA.addLowPriorityJob(function(){S.lastPublicSignalSent!==p&&(S.dispatchEvent(p),S.lastPublicSignalSent=p,S.lastJobTime=(0,_.AI)())},S.rateLimit-((0,_.AI)()-S.lastJobTime))):(S.dispatchEvent(p),S.lastPublicSignalSent=p,S.lastJobTime=(0,_.AI)()):S.dispatchEvent(p)};var FFG,j0=function(){Jc.call(this,{logsStore:{cleanLogsStore:dIe,deleteRequest:IGX,getMostRecentByStatus:Y1w,markAsQueued:LFG,resetRequest:Mvq,set:UIk},networkManager:_.XBX(),handleError:function(S,p,U){var Y,L=U==null?void 0:(Y=U.error)==null?void 0:Y.code;if(L===400||L===415){var I;S=new _.y7(S.message,p,U==null?void 0:(I=U.error)==null?void 0:I.code);_.fU(S,void 0,void 0,void 0,!0)}else _.w7(S)},
handleWarning:_.fU,sendFn:hFw,now:_.AI,writeError:rBN,jobManager:_.jC(),onlineEvent:"publicytnetworkstatus-online",offlineEvent:"publicytnetworkstatus-offline",enableCleaning:!0,cleaningRate:.1,potentialEsfErrorLimit:_.pA("potential_esf_error_limit",10),getBooleanFlag:_.y,disableYtIdbTransactions:!(_.JI()&&_.PEr())});this.initializationPromise=new _.MI;_.y("networkless_immediately_drop_all_requests")&&Vvr();tmd("LogsDatabaseV2")};
_.r(j0,Jc);_.g7t=function(){var S=_.ad("yt.networklessRequestController.instance");S||(S=new j0,_.NT("yt.networklessRequestController.instance",S),_.y("networkless_logging")&&_.BS().then(function(p){S.databaseToken=p;GMc(S);S.initializationPromise.resolve();S.enableCleaning&&Math.random()<=S.cleaningRate&&S.databaseToken&&OHX(S.databaseToken);_.y("networkless_immediately_drop_sw_health_store")&&eCQ(S)}));
return S};
j0.prototype.writeThenSend=function(S,p){p||(p={});p=RFd(S,p);_.JI()||(this.initialized=!1);Jc.prototype.writeThenSend.call(this,S,p)};
j0.prototype.sendThenWrite=function(S,p,U){p||(p={});p=RFd(S,p);_.JI()||(this.initialized=!1);Jc.prototype.sendThenWrite.call(this,S,p,U)};
j0.prototype.sendAndWrite=function(S,p){p||(p={});p=RFd(S,p);_.JI()||(this.initialized=!1);Jc.prototype.sendAndWrite.call(this,S,p)};
j0.prototype.awaitInitialization=function(){return this.initializationPromise.promise};
var eCQ=function(S){var p;_.T(function(U){if(!S.databaseToken)throw p=ui("clearSWHealthLogsDb"),p;return U.return(kvd(S.databaseToken).catch(function(Y){S.handleError(Y)}))})};_.sSX=!1;_.ZHG=_.UX.ytNetworklessLoggingInitializationOptions||{isNwlInitialized:_.sSX};_.NT("ytNetworklessLoggingInitializationOptions",_.ZHG);var hU=function(S){var p=this;this.config_=null;S?this.config_=S:dwr()&&(this.config_=_.cS());_.bQ(_.PA,function(){qcw(p)},5E3)};
hU.prototype.isReady=function(){!this.config_&&dwr()&&(this.config_=_.cS());return!!this.config_};
var BtG=function(S,p,U,Y){!_.g7("VISITOR_DATA")&&p!=="visitor_id"&&Math.random()<.01&&_.fU(new _.y7("Missing VISITOR_DATA when sending innertube request.",p,U,Y));if(!S.isReady()){var L=new _.y7("innertube xhrclient not ready",p,U,Y);_.w7(L);throw L;}var I={headers:Y.headers||{},method:"POST",postParams:U,postBody:Y.postBody,postBodyFormat:Y.postBodyFormat||"JSON",onTimeout:function(){Y.onTimeout()},
onFetchTimeout:Y.onTimeout,onSuccess:function(Q,J){if(Y.onSuccess)Y.onSuccess(J)},
onFetchSuccess:function(Q){if(Y.onSuccess)Y.onSuccess(Q)},
onError:function(Q,J){if(Y.onError)Y.onError(J)},
onFetchError:function(Q){if(Y.onError)Y.onError(Q)},
timeout:Y.timeout,withCredentials:!0,compress:Y.compress};I.headers["Content-Type"]||(I.headers["Content-Type"]="application/json");var V="";(L=S.config_.innertubeHostOverride)&&(V=L);var W=S.config_.innertubeUseThirdPartyAuth||!1,O=_.raw(W,V,Y);Object.assign(I.headers,O);I.headers.Authorization&&!V&&W&&(I.headers["x-origin"]=window.location.origin);var D=_.od(V+("/youtubei/"+S.config_.innertubeApiVersion+"/"+p),{alt:"json"}),z=function(Q){Q=Q===void 0?!1:Q;var J;if(Y.retry&&V!="www.youtube-nocookie.com"&&
(Q||_.y("skip_ls_gel_retry")||I.headers["Content-Type"]!=="application/json"||(J=iKw(p,U,O,W)),J)){var K=I.onSuccess,G=I.onFetchSuccess;I.onSuccess=function(l,a){Ntd(J);K(l,a)};
U.onFetchSuccess=function(l,a){Ntd(J);G(l,a)}}try{if(Q&&Y.retry&&!Y.networklessOptions.bypassNetworkless)I.method="POST",Y.networklessOptions.writeThenSend?_.g7t().writeThenSend(D,I):_.g7t().sendAndWrite(D,I);
else if(Y.compress){var X=!Y.networklessOptions.writeThenSend;if(I.postBody){var Z=I.postBody;typeof Z!=="string"&&(Z=JSON.stringify(I.postBody));l4w(D,Z,I,_.WS,X)}else l4w(D,JSON.stringify(I.postParams),I,m0d,X)}else _.y("web_all_payloads_via_jspb")?_.WS(D,I):m0d(D,I)}catch(l){if(l.name==="InvalidAccessError")J&&(Ntd(J),J=0),_.fU(Error("dd"));else throw l;}J&&_.bQ(_.PA,function(){qcw(S)},5E3)};
_.eFw()?onN().then(function(Q){z(Q)}):z(!1)};var ulu=function(S){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.UH(S)};
_.r(ulu,_.a5);var uyt=0,u3e=_.pT?"webkit":_.SR?"moz":_.cO?"ms":VGE?"o":"";_.NT("ytDomDomGetNextId",_.ad("ytDomDomGetNextId")||function(){return++uyt});var wAt={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},AE=function(S){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(S=
S||window.event){this.event=S;for(var p in S)p in wAt||(this[p]=S[p]);this.scale=S.scale;this.rotation=S.rotation;var U=S.target||S.srcElement;U&&U.nodeType==3&&(U=U.parentNode);this.target=U;var Y=S.relatedTarget;if(Y)try{Y=Y.nodeName?Y:null}catch(L){Y=null}else this.type=="mouseover"?Y=S.fromElement:this.type=="mouseout"&&(Y=S.toElement);this.relatedTarget=Y;this.clientX=S.clientX!=void 0?S.clientX:S.pageX;this.clientY=S.clientY!=void 0?S.clientY:S.pageY;this.keyCode=S.keyCode?S.keyCode:S.which;
this.charCode=S.charCode||(this.type=="keypress"?this.keyCode:0);this.altKey=S.altKey;this.ctrlKey=S.ctrlKey;this.shiftKey=S.shiftKey;this.metaKey=S.metaKey;this.pageX_=S.pageX;this.pageY_=S.pageY}}catch(L){}},lud=function(S){if(document.body&&document.documentElement){var p=document.body.scrollTop+document.documentElement.scrollTop;
S.pageX_=S.clientX+(document.body.scrollLeft+document.documentElement.scrollLeft);S.pageY_=S.clientY+p}};
AE.prototype.preventDefault=function(){this.event&&(this.event.returnValue=!1,this.event.preventDefault&&this.event.preventDefault())};
AE.prototype.stopPropagation=function(){this.event&&(this.event.cancelBubble=!0,this.event.stopPropagation&&this.event.stopPropagation())};
AE.prototype.stopImmediatePropagation=function(){this.event&&(this.event.cancelBubble=!0,this.event.stopImmediatePropagation&&this.event.stopImmediatePropagation())};var qz=_.UX.ytEventsEventsListeners||{};_.NT("ytEventsEventsListeners",qz);var xIk=_.UX.ytEventsEventsCounter||{count:0};_.NT("ytEventsEventsCounter",xIk);var EMd=_.WD(function(){var S=!1;try{var p=Object.defineProperty({},"capture",{get:function(){S=!0}});
window.addEventListener("test",null,p)}catch(U){}return S});_.q_(cA,_.hY);cA.prototype.onMouseMove_=function(S){S.pageX_===void 0&&lud(S);var p=S.pageX_;S.pageY_===void 0&&lud(S);this.position_=new _.Xp(p,S.pageY_)};
cA.prototype.checkPosition_=function(){if(this.position_){var S=(0,_.AI)();if(this.previousTime_!=0){var p=this.previousPosition_,U=this.position_,Y=p.x-U.x;p=p.y-U.y;Y=Math.sqrt(Y*Y+p*p)/(S-this.previousTime_);this.cycles_[this.index_]=Math.abs((Y-this.previousVelocity_)/this.previousVelocity_)>.5?1:0;for(U=p=0;U<4;U++)p+=this.cycles_[U]||0;p>=3&&this.callback_();this.previousVelocity_=Y}this.previousTime_=S;this.previousPosition_=this.position_;this.index_=(this.index_+1)%4}};
cA.prototype.disposeInternal=function(){window.clearInterval(this.timerId_);_.mIG(this.mouseListenerKey_)};var iHe={};var pXN=new _.v("rawColdConfigGroup");var SWE=new _.v("rawHotConfigGroup");var auQ=function(S){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.UH(S)};
_.r(auQ,_.a5);var ggw=function(S){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.UH(S)};
_.r(ggw,_.a5);var Kv=function(S){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.UH(S,500)};
_.r(Kv,_.a5);Kv.prototype.getPayloadCase=function(){return _.Hg(this,fum)};
Kv.prototype.getContext=function(){return _.Sa(this,ggw,33)};
var fum=[2,3,5,6,7,11,13,20,21,22,23,24,28,32,37,45,59,72,73,74,76,78,79,80,85,91,97,100,102,105,111,117,119,126,127,136,146,148,151,156,157,158,159,163,164,168,176,177,178,179,184,188,189,190,191,193,194,195,196,197,198,199,200,201,202,203,204,205,206,208,209,215,219,222,225,226,227,229,232,233,234,240,241,244,247,248,249,251,254,255,256,257,258,259,260,261,266,270,272,278,288,291,293,300,304,308,309,310,311,313,314,319,320,321,323,324,327,328,330,331,332,334,337,338,340,344,348,350,351,352,353,
354,355,356,357,358,361,363,364,368,369,370,373,374,375,378,380,381,383,388,389,399,402,403,410,411,412,413,414,415,416,417,418,423,424,425,426,427,429,430,431,439,441,444,448,458,469,471,473,474,480,481,482,484,485,486,491,495,496,506,507,509,511,512,513,514,515,516,517,518,519,520];var N9u=function(S){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.UH(S)};
_.r(N9u,_.a5);var rFr=function(S){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.UH(S)};
_.r(rFr,_.a5);rFr.prototype.setVideoId=function(S){return kv(this,1,G4q,fE(S))};
rFr.prototype.getPlaylistId=function(){return _.n2(this,nv(this,G4q,2))};
var G4q=[1,2];var Ekr=function(S){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.UH(S)};
_.r(Ekr,_.a5);Ekr.prototype.getContext=function(){return _.Sa(this,HH,1)};
Ekr.prototype.getTier=function(){return _.r1(this,7)};var Cgc,Yv,Lv;Cgc=_.UX.ytPubsubPubsubInstance||new _.kU;Yv=_.UX.ytPubsubPubsubSubscribedKeys||{};Lv=_.UX.ytPubsubPubsubTopicToKeys||{};_.NzN=_.UX.ytPubsubPubsubIsSynchronous||{};_.kU.prototype.subscribe=_.kU.prototype.subscribe;_.kU.prototype.unsubscribeByKey=_.kU.prototype.unsubscribeByKey;_.kU.prototype.publish=_.kU.prototype.publish;_.kU.prototype.clear=_.kU.prototype.clear;_.NT("ytPubsubPubsubInstance",Cgc);_.NT("ytPubsubPubsubTopicToKeys",Lv);_.NT("ytPubsubPubsubIsSynchronous",_.NzN);
_.NT("ytPubsubPubsubSubscribedKeys",Yv);var IV=window;var rl=_.y("web_enable_lifecycle_monitoring")&&cBG()!==0,xzm=_.y("web_enable_lifecycle_monitoring");var mzj=function(S){var p=this;var U=U===void 0?0:U;var Y=Y===void 0?_.jC():Y;this.JSC$8809_defaultPriority=U;this.scheduler=Y;this.completedResolver=new _.MI;this.scheduledPayloads=S;for(S={i$jscomp$529:0};S.i$jscomp$529<this.scheduledPayloads.length;S={payload$jscomp$18:void 0,i$jscomp$529:S.i$jscomp$529},S.i$jscomp$529++)S.payload$jscomp$18=this.scheduledPayloads[S.i$jscomp$529],U=function(L){return function(){L.payload$jscomp$18.job();p.scheduledPayloads[L.i$jscomp$529].processed=!0;p.scheduledPayloads.every(function(I){return I.processed===
!0})&&p.completedResolver.resolve()}}(S),Y=this.scheduler.addJob(U,E7P(this,S.payload$jscomp$18)),this.scheduledPayloads[S.i$jscomp$529]=Object.assign({},S.payload$jscomp$18,{job:U,
jobId:Y})};
mzj.prototype.flushJobs=function(){var S=this,p=Array.from(this.scheduledPayloads.keys()).sort(function(Y,L){return E7P(S,S.scheduledPayloads[L])-E7P(S,S.scheduledPayloads[Y])});
p=_.d(p);for(var U=p.next();!U.done;U=p.next())U=this.scheduledPayloads[U.value],U.jobId===void 0||U.processed||(this.scheduler.cancelJob(U.jobId),this.scheduler.addJob(U.job,10))};
mzj.prototype.cancel=function(){for(var S=_.d(this.scheduledPayloads),p=S.next();!p.done;p=S.next())p=p.value,p.jobId===void 0||p.processed||this.scheduler.cancelJob(p.jobId),p.processed=!0;this.completedResolver.resolve()};
var E7P=function(S,p){var U;return(U=p.priority)!=null?U:S.JSC$8809_defaultPriority};var GA=function(S){this.state=S;this.plugins=[];this.overridePriority=void 0;this.processPluginOptions={};rl&&S2G(this.state)};
GA.prototype.install=function(S){this.plugins.push(S);return this};
GA.prototype.uninstall=function(){var S=this;_.jO.apply(0,arguments).forEach(function(p){p=S.plugins.indexOf(p);p>-1&&S.plugins.splice(p,1)})};
GA.prototype.transition=function(S,p){var U=this;rl&&pTE(this.state);var Y=this.transitions.find(function(I){return Array.isArray(I.from)?I.from.find(function(V){return V===U.state&&I.to===S}):I.from===U.state&&I.to===S});
if(Y){this.jobSet&&(this.jobSet.flushJobs(),this.jobSet=void 0);o7I(this,S,p);this.state=S;rl&&S2G(this.state);Y=Y.action.bind(this);var L=this.plugins.filter(function(I){return I[S]}).map(function(I){return I[S]});
Y(v7Q(this,L),p)}else throw Error("ed`"+this.state+"`"+S);};
var v7Q=function(S,p){var U=p.filter(function(L){return $zm(S,L)===10}),Y=p.filter(function(L){return $zm(S,L)!==10});
return S.processPluginOptions.shouldWaitOnAsyncImmediate?function(){var L=_.jO.apply(0,arguments);return _.T(function(I){if(I.nextAddress==1)return _.k(I,S.runImmediateJobsAsync.apply(S,[U].concat(_.jo(L))),2);S.setJobSetWithScheduledJobs.apply(S,[Y].concat(_.jo(L)));_.OV(I)})}:function(){var L=_.jO.apply(0,arguments);
S.runImmediateJobsSync.apply(S,[U].concat(_.jo(L)));S.setJobSetWithScheduledJobs.apply(S,[Y].concat(_.jo(L)))}};
GA.prototype.runImmediateJobsSync=function(S){var p=_.jO.apply(1,arguments);_.jC();for(var U=_.d(S),Y=U.next(),L={};!Y.done;L={lifecycle$jscomp$2:void 0},Y=U.next())L.lifecycle$jscomp$2=Y.value,SM(function(I){return function(){ifP(I.lifecycle$jscomp$2.name);Y2q(function(){return I.lifecycle$jscomp$2.callback.apply(I.lifecycle$jscomp$2,_.jo(p))});
hc(I.lifecycle$jscomp$2.name)}}(L))};
GA.prototype.runImmediateJobsAsync=function(S){var p=_.jO.apply(1,arguments),U,Y,L,I;return _.T(function(V){V.nextAddress==1&&(_.jC(),U=_.d(S),Y=U.next(),L={});if(V.nextAddress!=3){if(Y.done)return V.jumpTo(0);L.lifecycle$jscomp$3=Y.value;L.asyncJobCompletion=void 0;I=function(W){return function(){ifP(W.lifecycle$jscomp$3.name);var O=Y2q(function(){return W.lifecycle$jscomp$3.callback.apply(W.lifecycle$jscomp$3,_.jo(p))});
CUR(O)?W.asyncJobCompletion=_.y("web_lifecycle_error_handling_killswitch")?O.then(function(){hc(W.lifecycle$jscomp$3.name)}):O.then(function(){hc(W.lifecycle$jscomp$3.name)},function(D){Usq(D);
hc(W.lifecycle$jscomp$3.name)}):hc(W.lifecycle$jscomp$3.name)}}(L);
SM(I);return L.asyncJobCompletion?_.k(V,L.asyncJobCompletion,3):V.jumpTo(3)}L={lifecycle$jscomp$3:void 0,asyncJobCompletion:void 0};Y=U.next();return V.jumpTo(2)})};
GA.prototype.setJobSetWithScheduledJobs=function(S){var p=_.jO.apply(1,arguments),U=this,Y=S.map(function(L){return{job:function(){ifP(L.name);Y2q(function(){return L.callback.apply(L,_.jo(p))});
hc(L.name)},
priority:$zm(U,L)}});
Y.length&&(this.jobSet=new mzj(Y))};
var $zm=function(S,p){var U,Y;return(Y=(U=S.overridePriority)!=null?U:p.priority)!=null?Y:0},ifP=function(S){rl&&S&&S2G(S)},hc=function(S){rl&&S&&pTE(S)},o7I=function(S,p,U){xzm&&console.groupCollapsed&&console.groupEnd&&(console.groupCollapsed("["+S.constructor.name+"] '"+S.state+"' to '"+p+"'"),console.log("with message: ",U),console.groupEnd())};
_.$u.Object.defineProperties(GA.prototype,{currentState:{configurable:!0,enumerable:!0,get:function(){return this.state}}});var N6l=function(S){GA.call(this,S===void 0?"none":S);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(){}}]},B6I;
_.r(N6l,GA);N6l.prototype.runApplicationNavigationBegin=function(S,p){var U=this;this.navigationTimer=_.bQ(_.PA,function(){U.currentState==="application_navigating"&&U.transition("none")},5E3);
S(p==null?void 0:p.event)};
N6l.prototype.runApplicationNavigationEnd=function(S,p){this.navigationTimer&&(_.PA.cancelJob(this.navigationTimer),this.navigationTimer=null);S(p==null?void 0:p.event)};
_.cFk=function(){B6I||(B6I=new N6l);return B6I};var tpG=[];_.NT("yt.logging.transport.getScrapedGelPayloads",function(){return tpG});var dK=function(){var S=this;this.store={};this.totalEntries=0;this.memoizedKeySequences={};this.TEST_ONLY={getEntriesCount:function(){return S.totalEntries}}};
dK.prototype.storePayload=function(S,p){S=L_G(S);this.store[S]?this.store[S].push(p):(this.memoizedKeySequences={},this.store[S]=[p]);this.totalEntries++;_.y("more_accurate_gel_parser")&&(p=new CustomEvent("TRANSPORTING_NEW_EVENT"),window.dispatchEvent(p));return S};
dK.prototype.smartExtractMatchingEntries=function(S){if(!S.keys.length)return[];for(var p=qPt(this,S.keys.splice(0,1)[0]),U=[],Y=0;Y<p.length;Y++)this.store[p[Y]]&&S.sizeLimit&&(this.store[p[Y]].length<=S.sizeLimit?(U.push.apply(U,_.jo(this.store[p[Y]])),delete this.store[p[Y]]):U.push.apply(U,_.jo(this.store[p[Y]].splice(0,S.sizeLimit))));this.totalEntries-=U.length;(S==null?0:S.sizeLimit)&&U.length<(S==null?void 0:S.sizeLimit)&&(S.sizeLimit-=U.length,U.push.apply(U,_.jo(this.smartExtractMatchingEntries(S))));
return U};
dK.prototype.extractMatchingEntries=function(S){S=qPt(this,S);for(var p=[],U=0;U<S.length;U++)this.store[S[U]]&&(p.push.apply(p,_.jo(this.store[S[U]])),delete this.store[S[U]]);this.totalEntries-=p.length;return p};
dK.prototype.getSequenceCount=function(S){S=qPt(this,S);for(var p=0,U=0;U<S.length;U++){var Y=void 0;p+=((Y=this.store[S[U]])==null?void 0:Y.length)||0}return p};
var qPt=function(S,p){var U=L_G(p);if(S.memoizedKeySequences[U])return S.memoizedKeySequences[U];var Y=Object.keys(S.store)||[];if(Y.length<=1&&L_G(p)===Y[0])return Y;for(var L=[],I=0;I<Y.length;I++){var V=Y[I].split("/");if(AEt(p.auth,V[0])){var W=p.isJspb;AEt(W===void 0?"undefined":W?"true":"false",V[1])&&AEt(p.cttAuthInfo,V[2])&&(W=p.tier,W=W===void 0?"undefined":JSON.stringify(W),AEt(W,V[3])&&L.push(Y[I]))}}return S.memoizedKeySequences[U]=L},AEt=function(S,p){return S===void 0||S==="undefined"?
!0:S===p};
dK.prototype.getSequenceCount=dK.prototype.getSequenceCount;dK.prototype.extractMatchingEntries=dK.prototype.extractMatchingEntries;dK.prototype.smartExtractMatchingEntries=dK.prototype.smartExtractMatchingEntries;dK.prototype.storePayload=dK.prototype.storePayload;var gkd,ssu,uBe,WH,taP,MVE,LsE,Z3e,PKR,JFk,eqw,q2u,RqR;gkd=_.pA("initial_gel_batch_timeout",2E3);ssu=_.pA("gel_queue_timeout_max_ms",6E4);uBe=_.pA("gel_min_batch_size",5);WH=void 0;taP=function(){this.lastDebounceQueueFromLogTimeMs=this.queueMaxTimer=this.queueTimer=0;this.useVideoStatsEndPoint=!1};
MVE=new taP;LsE=new taP;Z3e=new taP;PKR=new taP;eqw=!0;q2u=1;_.B9G=new Map;RqR=_.UX.ytLoggingTransportTokensToCttTargetIds_||{};_.NT("ytLoggingTransportTokensToCttTargetIds_",RqR);var hqE=_.UX.ytLoggingTransportTokensToJspbCttTargetIds_||{};_.NT("ytLoggingTransportTokensToJspbCttTargetIds_",hqE);var TY={};var rK=_.UX.ytLoggingGelSequenceIdObj_||{};_.NT("ytLoggingGelSequenceIdObj_",rK);var Txr=[];var bzr=new Set,Dmu=0,hMG=0,GeR=0,Qfw=[],zMR=[],RMG=["PhantomJS","Googlebot","TO STOP THIS SECURITY SCAN go/scan"];var CTX=function(){};
CTX.prototype.getUrl=function(S,p){p=p===void 0?!1:p;return S.hasOwnProperty("shareEndpoint")?null:_.ZzG(S,null,p)};
var ETw=function(S,p,U){S={endpoint:p,actions:[]};U=(U.path?U.path[0]:U.target).icon||"";p=U.indexOf(":");p>0&&(U=U.substr(p+1));U&&S.actions.push(U);return S};var l$w=/Command$/,wXd=/Endpoint$/,eMN=new Map;var cEm,S9j;cEm=1;_.xv=function(){this.actionRoutingMap=new Map};
_.xv.prototype.triggerAction=function(S){var p=new WnX(S,!1,_.jO.apply(1,arguments));this.handleAction(p);return p.returnValue};
_.xv.prototype.triggerOptionalAction=function(S){var p=new WnX(S,!0,_.jO.apply(1,arguments));this.handleAction(p);return p.returnValue};
_.Rq=function(S,p,U){p.forEach(function(Y){var L=uiw(Y);L&&S.triggerOptionalAction(L,Y,U,void 0)})};
_.xv.prototype.handleAction=function(S){var p=this.actionRoutingMap.get(S.actionName);p&&S9j(S,p);S.optionalAction||S.returnValue.length!==0||(S=new _.y7("Unhandled action",S.actionName),_.fU(S))};
S9j=function(S,p){p.forEach(function(U){var Y=null;U?Y=U.apply(null,S.args):(U=Error("fd"),U.params=S.actionName,_.w7(U));S.returnValue.push(Y)})};
_.E9=function(S,p,U){U||(U=cEm++);for(var Y=_.d(Object.keys(p)),L=Y.next();!L.done;L=Y.next()){L=L.value;var I=S.actionRoutingMap.get(L);I||(I=new Map,S.actionRoutingMap.set(L,I));S.registerActionHandler(U,L,p[L],I)}return U};
_.xv.prototype.registerActionHandler=function(S,p,U,Y){Y.set(S,_.lb(U))};
_.me=function(S,p,U){p=_.d(Object.keys(p));for(var Y=p.next();!Y.done;Y=p.next())(Y=S.actionRoutingMap.get(Y.value))&&Y.delete(U)};
_.N_(_.xv);var mmw=function(S,p){var U=_.xv.getInstance();_.FM(function(){var Y={},L=_.E9(U,(Y[S]=p,Y));_.FG(function(){var I={};_.me(U,(I[S]="",I),L)})})};S9G=ZvE;var Lhr=new Set(["For","If","Match","Watch"]),pHm={},UWI=(pHm[uo.default]=function(){return N6X},pHm.style=function(){return N6X},pHm),Y9E;
for(Y9E in UWI)Yj.attributes[Y9E]=UWI[Y9E](Yj.attributes[Y9E]);var AU=new _.$g("VISIBILITY_OBSERVER");var DFe={retrieve:function(S){return this.id.\u0275prov.token===S.\u0275prov.token?this.contextValue:this?RwG(this,this.id):G2w}};var LeQ=function(S,p,U){if(S!==iQ)return!1;S=tVd(document.createElement("div"),function(){var Y=Ys(!1);try{U[0]()}finally{Ys(Y)}});
S=Array.from(S.childNodes);S.length===1&&(S=S[0]);return S};var MPl=function(S){S=S.clone();sWj(S);kg(S,"dg",null);kg(S,"d","0");Fzm(S,null);Xmc(S,null);return S},IPm=!0,dWe=function(S,p,U){var Y=U===void 0?{}:U;
U=Y.cssRowKey===void 0?void 0:Y.cssRowKey;var L=Y.combinedSignature===void 0?void 0:Y.combinedSignature;var I=Y.extraEdges===void 0?void 0:Y.extraEdges;Y=Y.callback===void 0?void 0:Y.callback;kg(S,"m",p.join(","));I&&Z2l(S,I);U&&(kg(S,"ck",U),L?kg(S,"rs",L):IPm&&(IPm=!1));if(Y){if(Y!=null&&!uaQ.test(Y))throw Error("ab`"+Y);kg(S,"cb",Y)}S=S.toString();_.Lr(S,"/")&&(S=QPE(document.location.href)+S);return _.dc(S)};var TKl=function(S){return VPQ(S).then(function(p){return JSON.parse(p.responseText)})},VPQ=function(S){var p={},U=p.xmlHttpFactory?p.xmlHttpFactory.createInstance():Aim.createInstance();
return(new _.O9(function(Y,L){var I;try{U.open("GET",S,!0)}catch(O){L(new Ff("Error opening XHR: "+O.message,S,U))}U.onreadystatechange=function(){if(U.readyState==4){_.UX.clearTimeout(I);var O;!(O=qHd(U.status))&&(O=U.status===0)&&(O=zet(S),O=!(O=="http"||O=="https"||O==""));O?Y(U):L(new Wed(U.status,S,U))}};
U.onerror=function(){L(new Ff("Network error",S,U))};
if(p.headers)for(var V in p.headers){var W=p.headers[V];W!=null&&U.setRequestHeader(V,W)}p.withCredentials&&(U.withCredentials=p.withCredentials);p.responseType&&(U.responseType=p.responseType);p.mimeType&&U.overrideMimeType(p.mimeType);p.timeoutMs>0&&(I=_.UX.setTimeout(function(){U.onreadystatechange=function(){};
U.abort();L(new OvH(S,U))},p.timeoutMs));
try{U.send(null)}catch(O){U.onreadystatechange=function(){},_.UX.clearTimeout(I),L(new Ff("Error sending XHR: "+O.message,S,U))}})).thenCatch(function(Y){Y instanceof _.aA&&U.abort();
throw Y;})},Ff=function(S,p,U){_.Sw.call(this,S+", url="+p);
this.url=p;this.xhr=U};
_.q_(Ff,_.Sw);Ff.prototype.name="XhrError";var Wed=function(S,p,U){Ff.call(this,"Request Failed, status="+S,p,U);this.status=S};
_.q_(Wed,Ff);Wed.prototype.name="XhrHttpError";var OvH=function(S,p){Ff.call(this,"Request timed out",S,p)};
_.q_(OvH,Ff);OvH.prototype.name="XhrTimeoutError";iG=iG||{};var Xf=function(){_.hY.call(this)};
_.q_(Xf,_.hY);Xf.prototype.initialize=function(){};var kYH=function(S,p){this.fn_=S;this.handler_=p};
kYH.prototype.execute=function(S){this.fn_&&(this.fn_.call(this.handler_||null,S),this.fn_=this.handler_=null)};
kYH.prototype.abort=function(){this.handler_=this.fn_=null};var P1=function(S,p){_.hY.call(this);this.deps_=S;this.JSC$8936_id_=p;this.onloadCallbacks_=[];this.JSC$8936_onErrorCallbacks_=[];this.earlyOnloadCallbacks_=[]};
_.q_(P1,_.hY);P1.prototype.moduleConstructor_=Xf;P1.prototype.module_=null;P1.prototype.getId=function(){return this.JSC$8936_id_};
P1.prototype.registerCallback=function(S,p){return Hvd(this.onloadCallbacks_,S,p)};
var DWj=function(S,p){Hvd(S.JSC$8936_onErrorCallbacks_,p)},Hvd=function(S,p,U){p=new kYH(p,U);
S.push(p);return p};
P1.prototype.isLoaded=function(){return!!this.module_};
P1.prototype.onLoad=function(S){var p=new this.moduleConstructor_;p.initialize(S());this.module_=p;p=(p=zYq(this.earlyOnloadCallbacks_,S()))||zYq(this.onloadCallbacks_,S());p||(this.JSC$8936_onErrorCallbacks_.length=0);return p};
P1.prototype.onError=function(S){(S=zYq(this.JSC$8936_onErrorCallbacks_,S))&&YR(Error("ld`"+S));this.earlyOnloadCallbacks_.length=0;this.onloadCallbacks_.length=0};
var zYq=function(S,p){for(var U=[],Y=0;Y<S.length;Y++)try{S[Y].execute(p)}catch(L){YR(L),U.push(L)}S.length=0;return U.length?U:null};
P1.prototype.disposeInternal=function(){P1.superClass_.disposeInternal.call(this);_.t9(this.module_)};var QVI,jVd,KeP,bvH,JUe,yUj,Fet,hYw,RYl;
_.sw=function(S,p,U,Y,L){Y=Y===void 0?!1:Y;L=L===void 0?!1:L;var I=I===void 0?!0:I;this.scsReferenceUrl_=iUr(_.Tl(S).toString(),I);this.cssRowKey_=p;this.combinedSignature_=U;this.useNegativeLoading_=Y;this.requestedModuleMap_={};this.JSC$8939_moduleInfoMap_={};this.requestedModuleList_=[];this.requestedModuleListSorted_=!0;this.loadedCssModuleList_=(S=OB(this.scsReferenceUrl_,"excm"))?S.split(","):[];this.shouldScanForCss_=L;this.useCors_=!1;this.corsMode_="anonymous";this.urlMaxLength=4043;this.insertPos=
document.head||document.documentElement;this.pendingModuleGraphUpdate_=this.lastScript_=null;this.supportsExtraEdges=!0;N7q();this.logger=null;_.Z0(this,P9Q(this.scsReferenceUrl_));this.fetchPriority=void 0;this.enableFallbackFetch=!1;this.maybeSetAdditionalFields()};
QVI=function(S,p){if(p.href||p.getAttribute("data-href"))if(p=p.href||p.getAttribute("data-href"),mZG(p)&&!iUr(p).urlPrefix_.endsWith("_/js/")){p=P9Q(iUr(p));p=_.d(p);for(var U=p.next();!U.done;U=p.next())U=U.value,S.loadedCssModuleList_.includes(U)||S.loadedCssModuleList_.push(U)}};
_.sw.prototype.JSC$8941_loadModules=function(S,p,U){var Y=U===void 0?{}:U;U=Y.extraEdges;var L=Y.onError;var I=Y.onSuccess;Y=Y.forceReload;this.JSC$8939_moduleInfoMap_=p;if(!S)throw Error("md");if(this.shouldScanForCss_){p=_.d(document.getElementsByTagName("style"));for(var V=p.next();!V.done;V=p.next())QVI(this,V.value);p=_.d(document.getElementsByTagName("link"));for(V=p.next();!V.done;V=p.next())QVI(this,V.value)}nvm(this,JUe(this,S),U,L,I,Y)};
var nvm=function(S,p,U,Y,L,I){Y=Y===void 0?function(){}:Y;
L=L===void 0?function(){}:L;
I=I===void 0?!1:I;yUj(S,p,function(V,W,O){O=O===void 0?W:O;S.enableFallbackFetch&&I?S.loadWithFetch(V,W,Y,L,O):S.load(V,W,Y,L,O,U)},U)||Y(-1)};
_.sw.prototype.loadWithFetch=function(){_.T(function(){throw Error("nd");})};
_.sw.prototype.maybeSetAdditionalFields=function(){};
jVd=function(S,p,U){if(S.useNegativeLoading_){var Y=S.scsReferenceUrl_;S={cssRowKey:S.cssRowKey_,combinedSignature:S.combinedSignature_,extraEdges:U,requestedModuleIds:KeP(S),requestedCssModuleIds:bvH(S)};var L=S===void 0?{}:S;S=L.requestedModuleIds===void 0?[]:L.requestedModuleIds;U=L.requestedCssModuleIds===void 0?[]:L.requestedCssModuleIds;var I=L.cssRowKey===void 0?void 0:L.cssRowKey;var V=L.combinedSignature===void 0?void 0:L.combinedSignature;var W=L.extraEdges===void 0?void 0:L.extraEdges;
L=L.callback===void 0?void 0:L.callback;Y=MPl(Y);kg(Y,"d","1");Fzm(Y,S);Xmc(Y,U);p=dWe(Y,p,{cssRowKey:I,combinedSignature:V,extraEdges:W,callback:L})}else Y=S.scsReferenceUrl_,S={cssRowKey:S.cssRowKey_,combinedSignature:S.combinedSignature_,requestedModuleIds:KeP(S),requestedCssModuleIds:bvH(S)},W=S===void 0?{}:S,S=W.requestedCssModuleIds===void 0?[]:W.requestedCssModuleIds,U=W.cssRowKey===void 0?void 0:W.cssRowKey,I=W.combinedSignature===void 0?void 0:W.combinedSignature,V=W.extraEdges===void 0?
void 0:W.extraEdges,W=W.callback===void 0?void 0:W.callback,Y=MPl(Y),Xmc(Y,S),p=dWe(Y,p,{cssRowKey:U,combinedSignature:I,extraEdges:V,callback:W});return p};
_.Z0=function(S,p){for(var U=!1,Y=[],L=0;L<p.length;++L){var I=p[L];S.requestedModuleMap_[I]||(S.requestedModuleMap_[I]=!0,S.requestedModuleList_.push(I),U=!0,Y.push(I))}U&&(S.requestedModuleListSorted_=!1)};
_.e0=function(S,p){for(var U=[],Y=0;Y<p.length;++Y){var L=p[Y];S.requestedModuleMap_[L]&&(delete S.requestedModuleMap_[L],_.NG(S.requestedModuleList_,L),U.push(L))}};
_.sw.prototype.load=function(S,p,U,Y,L){L=L===void 0?p:L;_.Tl(S);var I=this.useCors_,V=this.corsMode_,W=this.fetchPriority,O=_.JY("SCRIPT");_.fh(O,S);I&&(O.crossOrigin=V);O.async=!1;W&&O.setAttribute("fetchpriority",W);_.Z0(this,p);_.rUt(this,S,O,p,U,Y,L)};
_.rUt=function(S,p,U,Y,L,I,V){V=V===void 0?Y:V;S.lastScript_=U;S.insertPos.insertBefore(U,S.insertPos.firstChild);_.GYd(U,Y,function(){U.parentElement.removeChild(U);S.lastScript_==U&&(S.lastScript_=null);var W=new Set;Y.map(function(D){return W.add(D)});
for(var O in S.JSC$8939_moduleInfoMap_)S.JSC$8939_moduleInfoMap_[O].isLoaded()&&W.add(O);Array.from(W);I()},function(W){U.parentElement.removeChild(U);
S.lastScript_==U&&(S.lastScript_=null);_.e0(S,W);S.pendingModuleGraphUpdate_?S.pendingModuleGraphUpdate_.then(function(){L(-1,p)}):L(-1,p)},V)};
_.GYd=function(S,p,U,Y,L){L=L===void 0?p:L;var I=p.length,V=function(){I=0;S.onload=null;S.onerror=null;W=function(){}},W=function(){V();
var D=L.filter(function(z){return!sr().getModuleInfo(z).isLoaded()});
D.length!==0?Y(D,"Response was successful but was missing module(s) "+D+"."):U()},O=function(){I--;
I==0&&W()};
p.forEach(function(D){D=sr().getModuleInfo(D);D.isLoaded()?O():(Hvd(D.earlyOnloadCallbacks_,O),DWj(D,O))});
S.onload=function(){return W()};
S.onerror=function(){V();Y(p)}};
KeP=function(S){S.requestedModuleListSorted_||(S.requestedModuleListSorted_=!0,S.requestedModuleList_.sort());return S.requestedModuleList_};
bvH=function(S){S=S.loadedCssModuleList_;S.sort();return S};
JUe=function(S,p){return p.filter(function(U){return!S.requestedModuleMap_[U]})};
yUj=function(S,p,U,Y){if(S.pendingModuleGraphUpdate_)return S.pendingModuleGraphUpdate_.then(function(){yUj(S,p,U,Y)}),!0;
if(!S.useNegativeLoading_){var L=[],I=Object.assign({},S.requestedModuleMap_);hYw(S,p,function(z){L.push(z.getId())},Y,function(z){return!z.isLoaded()},I);
p=L}for(I=0;I<p.length;){for(var V=p.length-I,W=I==0?p:p.slice(I,p.length),O=jVd(S,W,Y),D=_.Tl(O).toString();D.length>S.urlMaxLength;)if(V>1)V-=Math.ceil((D.length-S.urlMaxLength)/6),V=Math.max(V,1),W=p.slice(I,I+V),O=jVd(S,W,Y),D=_.Tl(O).toString();else return S.useNegativeLoading_?(S.useNegativeLoading_=!1,S.pendingModuleGraphUpdate_=RYl(S).then(function(z){Fet(S,z,Y)}),yUj(S,p.slice(I),U,Y)):!1;
I+=V;S.useNegativeLoading_?U(O,W):U(O,W,I===p.length?p:[])}return!0};
Fet=function(S,p,U){sr().setAllModuleInfoString((p||{}).moduleGraph);hYw(S,KeP(S),function(Y){_.Z0(S,[Y.getId()])},U);
S.pendingModuleGraphUpdate_=null};
hYw=function(S,p,U,Y,L,I){I=I===void 0?{}:I;var V=sr();p=_.d(p);for(var W=p.next();!W.done;W=p.next()){W=W.value;var O=V.getModuleInfo(W);if(!(I[W]||L&&!L(O))){I[W]=!0;var D=O.deps_||[];if(Y){var z=[];Y[W]&&(z=Object.keys(Y[W]));D=D.concat(z)}hYw(S,D,U,Y,L,I);U(O)}}};
RYl=function(S){S=S.scsReferenceUrl_.clone();sWj(S);kg(S,"dg",null);kg(S,"md","1");return TKl(S.toString())};var nLe=new Uint8Array(123);var XHl=[];var PQm=function(){this.JSC$8059_loader_=null};
_.M=PQm.prototype;_.M.setBatchModeEnabled=function(){};
_.M.setAllModuleInfoString=function(){};
_.M.addExtraEdge=function(){throw Error("od");};
_.M.removeExtraEdge=function(){throw Error("pd");};
_.M.getModuleContext=function(){return null};
_.M.isActive=function(){return!1};
_.M.isUserActive=function(){return!1};
_.M.registerCallback=function(){};var gl=function(S,p,U,Y,L){var I=Error.call(this);this.message=I.message;"stack"in I&&(this.stack=I.stack);this.name="ModuleLoadFailure";this.type=S;this.status=p;this.requestedModuleIds=U;this.url=Y;this.cause=L;this.message=this.toString()};
_.r(gl,Error);gl.prototype.toString=function(){return ZvI(this)+" ("+(this.status!=void 0?this.status:"?")+")"};
var ZvI=function(S){switch(S.type){case gl.JSC$8951_Type.UNAUTHORIZED:return"Unauthorized";case gl.JSC$8951_Type.CONSECUTIVE_FAILURES:return"Consecutive load failures";case gl.JSC$8951_Type.TIMEOUT:return"Timed out";case gl.JSC$8951_Type.OLD_CODE_GONE:return"Out of date module id";case gl.JSC$8951_Type.INIT_ERROR:return"Init error";default:return"Unknown failure type "+S.type}};
iG.ModuleLoadFailure=gl;iG.ModuleLoadFailure.JSC$8951_Type={UNAUTHORIZED:0,CONSECUTIVE_FAILURES:1,TIMEOUT:2,OLD_CODE_GONE:3,INIT_ERROR:4};var ua=function(){this.moduleIds_=this.JSC$8059_loader_=null;this.moduleInfoMap={};this.loadingModuleIds_=[];this.requestedLoadingModuleIds_=[];this.requestedModuleIds_=[];this.requestedModuleIdsQueue_=[];this.userInitiatedLoadingModuleIds_=[];this.JSC$8954_extraEdges_={};this.JSC$8954_callbackMap_={};this.JSC$8954_currentlyLoadingModule_=this.baseModuleInfo_=new P1([],"");this.lastInitialModuleId_=null;this.initialModulesLoaded_=new uR;this.batchModeEnabled_=!1;this.consecutiveFailures_=0;this.isDisposed_=
this.userLastActive_=this.lastActive_=!1};
_.q_(ua,PQm);var sVw=function(S,p){_.Sw.call(this,"Error loading "+S+": "+p)};
_.q_(sVw,_.Sw);ua.prototype.setBatchModeEnabled=function(S){this.batchModeEnabled_=S};
ua.prototype.setAllModuleInfoString=function(S,p){if(!(this instanceof ua))this.setAllModuleInfoString(S,p);else if(typeof S==="string"){if(S.startsWith("d$")){S=S.substring(2);for(var U=[],Y=0,L=S.indexOf("/"),I=0,V=!1,W=0;;){var O=V?S.substring(I):S.substring(I,L);if(O.length===0)Y++,I="sy"+Y.toString(36),O=[];else{var D=O.indexOf(":");if(D<0)I=O,O=[];else if(D===O.length-1)I=O.substring(0,D),O=Array(U[W-1]);else{I=O.substring(0,D);O=O.substring(D+1).split(",");D=W;for(var z=0;z<O.length;z++)D-=
O[z].length===0?1:Number(O[z]),O[z]=U[D]}D=0;if(I.length===0)D=1;else if(I.charAt(0)==="+"||I.charAt(0)==="-")D=Number(I);D!==0&&(Y+=D,I="sy"+Y.toString(36))}U.push(I);eYt(this,I,O);if(V)break;I=L+1;L=S.indexOf("/",I);L===-1&&(V=!0);W++}this.moduleIds_=U}else if(S.startsWith("p$"))gvl(this,S);else{S=S.split("/");U=[];for(Y=0;Y<S.length;Y++){W=S[Y].split(":");L=W[0];V=[];if(W[1])for(V=W[1].split(","),W=0;W<V.length;W++)V[W]=U[parseInt(V[W],36)];U.push(L);eYt(this,L,V)}this.moduleIds_=U}p&&p.length?
(_.te(this.loadingModuleIds_,p),this.lastInitialModuleId_=_.le(p)):this.initialModulesLoaded_.fired_||this.initialModulesLoaded_.callback();Object.freeze(this.moduleIds_);this.JSC$8954_currentlyLoadingModule_==this.baseModuleInfo_&&(this.JSC$8954_currentlyLoadingModule_=null,(p=this.baseModuleInfo_.onLoad((0,_.RW)(this.getModuleContext,this)))&&p.length&&urH(this,new iG.ModuleLoadFailure(iG.ModuleLoadFailure.JSC$8951_Type.INIT_ERROR,void 0,void 0,void 0,p[0])),wl(this))}};
var gvl=function(S,p){var U=p.substring(2);for(p=0;p<64;p++)nLe["ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".charCodeAt(p)]=p;var Y={buf:U,pos:0};SF(Y);var L=SF(Y),I=SF(Y)+1;p=Array(L);var V=Array(L),W=Array(L);I=Array(I);var O=0,D=0,z=Y.pos,Q=Y.buf.indexOf("|",Y.pos);Y.pos=Q+1;for(Q=0;Q<L;Q++){var J=SF(Y),K=J&2,G=J&1;J>>>=2;G?(O+=J>>>1^-(J&1),J="sy"+O.toString(36)):(G=z,z+=J,J=U.substring(G,z));p[Q]=J;K&&(I[D++]=J)}I[D]="";Y.pos++;D=L&-2;U=L&1;for(O=0;O<D;O+=2)z=J7G(Y),W[O]=
z&7,W[O+1]=z>>>3&7;U&&(U=J7G(Y),W[D]=U&7);Y.pos++;for(D=0;D<L;D++)W[D]===7&&(W[D]=SF(Y));Y.pos++;for(U=D=0;U<L;U++){O=W[U];z=O===0?XHl:Array(O);V[U]=z;Q=D;for(K=0;K<O;K++)Q-=SF(Y),z[K]=I[Q];I[D]===p[U]&&D++}for(Y=0;Y<p.length;Y++)eYt(S,p[Y],V[Y]);S.moduleIds_=p};
_.M=ua.prototype;_.M.getModuleInfo=function(S){return this.moduleInfoMap[S]};
_.M.addExtraEdge=function(S,p){var U=this.getModuleInfo(S);U&&U.isLoaded()?this.load(p):(this.JSC$8954_extraEdges_[S]||(this.JSC$8954_extraEdges_[S]={}),this.JSC$8954_extraEdges_[S][p]=!0)};
_.M.removeExtraEdge=function(S,p){if(this.JSC$8954_extraEdges_[S]){delete this.JSC$8954_extraEdges_[S][p];for(var U in this.JSC$8954_extraEdges_[S])return;delete this.JSC$8954_extraEdges_[S]}};
_.M.isActive=function(){return this.loadingModuleIds_.length>0};
_.M.isUserActive=function(){return this.userInitiatedLoadingModuleIds_.length>0};
var wl=function(S){var p=S.lastActive_,U=S.isActive();U!=p&&(S.executeCallbacks_(U?"active":"idle"),S.lastActive_=U);p=S.isUserActive();p!=S.userLastActive_&&(S.executeCallbacks_(p?"userActive":"userIdle"),S.userLastActive_=p)},eYt=function(S,p,U){S.moduleInfoMap[p]?(S=S.moduleInfoMap[p].deps_,S!=U&&S.splice.apply(S,[0,
S.length].concat(_.jo(U)))):S.moduleInfoMap[p]=new P1(U,p)},lPP=function(S,p,U){var Y=[];
Ym(p,Y);p=[];for(var L={},I=0;I<Y.length;I++){var V=Y[I],W=S.getModuleInfo(V);if(!W)throw Error("qd`"+V);var O=new uR;L[V]=O;W.isLoaded()?O.callback(null):(wHP(S,V,W,!!U,O),S.isModuleLoading(V)||p.push(V))}p.length>0&&(S.loadingModuleIds_.length===0?S.loadModules_(p):(S.requestedModuleIdsQueue_.push(p),wl(S)));return L},wHP=function(S,p,U,Y,L){U.registerCallback(L.callback,L);
DWj(U,function(I){L.errback(new sVw(p,I))});
S.isModuleLoading(p)?Y&&(aPq(S,p),wl(S)):Y&&aPq(S,p)};
ua.prototype.loadModules_=function(S,p,U){var Y=this;p||(this.consecutiveFailures_=0);var L=fPe(this,S);this.loadingModuleIds_=L;this.requestedLoadingModuleIds_=this.batchModeEnabled_?S:_.qG(L);wl(this);if(L.length!==0){this.requestedModuleIds_.push.apply(this.requestedModuleIds_,L);if(Object.keys(this.JSC$8954_extraEdges_).length>0&&!this.JSC$8059_loader_.supportsExtraEdges)throw Error("rd");S=(0,_.RW)(this.JSC$8059_loader_.JSC$8941_loadModules,this.JSC$8059_loader_,_.qG(L),this.moduleInfoMap,{extraEdges:this.JSC$8954_extraEdges_,
forceReload:!!U,onError:function(I,V){var W=Y.requestedLoadingModuleIds_;I=I!=null?I:void 0;Y.consecutiveFailures_++;var O=_.qG(L);Y.requestedLoadingModuleIds_=W;L.forEach(_.Hd(_.NG,Y.requestedModuleIds_),Y);I==401?(urH(Y,new iG.ModuleLoadFailure(iG.ModuleLoadFailure.JSC$8951_Type.UNAUTHORIZED,I)),Y.requestedModuleIdsQueue_.length=0):I==410?(CQP(Y,new iG.ModuleLoadFailure(iG.ModuleLoadFailure.JSC$8951_Type.OLD_CODE_GONE,I)),xWt(Y)):Y.consecutiveFailures_>=3?(CQP(Y,new iG.ModuleLoadFailure(iG.ModuleLoadFailure.JSC$8951_Type.CONSECUTIVE_FAILURES,
I,O,V)),xWt(Y)):Y.loadModules_(Y.requestedLoadingModuleIds_,!0,I==8001||!1)},
onTimeout:(0,_.RW)(this.handleLoadTimeout_,this)});(p=Math.pow(this.consecutiveFailures_,2)*5E3)?_.UX.setTimeout(S,p):S()}};
var fPe=function(S,p){p=p.filter(function(L){return S.moduleInfoMap[L].isLoaded()?(_.UX.setTimeout(function(){return Error("sd`"+L)},0),!1):!0});
for(var U=[],Y=0;Y<p.length;Y++)U=U.concat(EvP(S,p[Y]));Ym(U);return!S.batchModeEnabled_&&U.length>1?(p=U.shift(),S.requestedModuleIdsQueue_=U.map(function(L){return[L]}).concat(S.requestedModuleIdsQueue_),[p]):U},EvP=function(S,p){var U=_.h9.createSet(S.requestedModuleIds_),Y=[];
U[p]||Y.push(p);p=[p];for(var L=0;L<p.length;L++)for(var I=S.getModuleInfo(p[L]).deps_,V=I.length-1;V>=0;V--){var W=I[V];S.getModuleInfo(W).isLoaded()||U[W]||(Y.push(W),p.push(W))}Y.reverse();Ym(Y);return Y};
ua.prototype.JSC$8949_setLoaded=function(){if(this.JSC$8954_currentlyLoadingModule_){var S=this.JSC$8954_currentlyLoadingModule_.getId(),p=[];if(this.JSC$8954_extraEdges_[S]){for(var U=_.d(Object.keys(this.JSC$8954_extraEdges_[S])),Y=U.next();!Y.done;Y=U.next()){Y=Y.value;var L=this.getModuleInfo(Y);L&&!L.isLoaded()&&(this.removeExtraEdge(S,Y),p.push(Y))}this.loadMultiple(p)}this.isDisposed()||((p=this.moduleInfoMap[S].onLoad((0,_.RW)(this.getModuleContext,this)))&&p.length&&urH(this,new iG.ModuleLoadFailure(iG.ModuleLoadFailure.JSC$8951_Type.INIT_ERROR,
void 0,void 0,void 0,p[0])),_.NG(this.userInitiatedLoadingModuleIds_,S),_.NG(this.loadingModuleIds_,S),this.loadingModuleIds_.length===0&&xWt(this),this.lastInitialModuleId_&&S==this.lastInitialModuleId_&&(this.initialModulesLoaded_.fired_||this.initialModulesLoaded_.callback()),wl(this),this.JSC$8954_currentlyLoadingModule_=null)}};
ua.prototype.isModuleLoading=function(S){if(_.ou(this.loadingModuleIds_,S))return!0;for(var p=0;p<this.requestedModuleIdsQueue_.length;p++)if(_.ou(this.requestedModuleIdsQueue_[p],S))return!0;return!1};
ua.prototype.load=function(S,p){return lPP(this,[S],p)[S]};
ua.prototype.loadMultiple=function(S){return lPP(this,S)};
var aPq=function(S,p){_.ou(S.userInitiatedLoadingModuleIds_,p)||S.userInitiatedLoadingModuleIds_.push(p)};
ua.prototype.beforeLoadModuleCode=function(S){var p=this;this.JSC$8954_currentlyLoadingModule_&&this.JSC$8954_currentlyLoadingModule_.getId()==="synthetic_module_overhead"&&(this.JSC$8949_setLoaded(),delete this.moduleInfoMap.synthetic_module_overhead);this.moduleInfoMap[S]&&mWH(this,this.moduleInfoMap[S].deps_||[],function(U){U.module_=new Xf;_.NG(p.loadingModuleIds_,U.getId())},function(U){return!U.isLoaded()});
this.JSC$8954_currentlyLoadingModule_=this.getModuleInfo(S)};
ua.prototype.handleLoadTimeout_=function(){CQP(this,new iG.ModuleLoadFailure(iG.ModuleLoadFailure.JSC$8951_Type.TIMEOUT));xWt(this)};
var CQP=function(S,p){S.requestedLoadingModuleIds_.length>1?S.requestedModuleIdsQueue_=S.requestedLoadingModuleIds_.map(function(U){return[U]}).concat(S.requestedModuleIdsQueue_):urH(S,p)},urH=function(S,p){var U=S.requestedLoadingModuleIds_;
S.loadingModuleIds_.length=0;for(var Y=[],L=0;L<S.requestedModuleIdsQueue_.length;L++){var I=S.requestedModuleIdsQueue_[L].filter(function(O){var D=EvP(this,O);return $7(U,function(z){return _.ou(D,z)})},S);
_.te(Y,I)}for(L=0;L<U.length;L++)_.$R(Y,U[L]);for(L=0;L<Y.length;L++){for(I=0;I<S.requestedModuleIdsQueue_.length;I++)_.NG(S.requestedModuleIdsQueue_[I],Y[L]);_.NG(S.userInitiatedLoadingModuleIds_,Y[L])}if(L=S.JSC$8954_callbackMap_.error)for(I=0;I<L.length;I++)for(var V=L[I],W=0;W<Y.length;W++)V("error",Y[W],p);for(Y=0;Y<U.length;Y++)if(S.moduleInfoMap[U[Y]])S.moduleInfoMap[U[Y]].onError(p);S.requestedLoadingModuleIds_.length=0;wl(S)},xWt=function(S){for(;S.requestedModuleIdsQueue_.length;){var p=
S.requestedModuleIdsQueue_.shift().filter(function(U){return!this.getModuleInfo(U).isLoaded()},S);
if(p.length>0){S.loadModules_(p);return}}wl(S)};
ua.prototype.registerCallback=function(S,p){Array.isArray(S)||(S=[S]);for(var U=0;U<S.length;U++){var Y=S[U],L=p,I=this.JSC$8954_callbackMap_;I[Y]||(I[Y]=[]);I[Y].push(L)}};
ua.prototype.executeCallbacks_=function(S){for(var p=this.JSC$8954_callbackMap_[S],U=0;p&&U<p.length;U++)p[U](S)};
var mWH=function(S,p,U,Y,L){Y=Y===void 0?function(){return!0}:Y;
L=L===void 0?{}:L;p=_.d(p);for(var I=p.next();!I.done;I=p.next()){I=I.value;var V=S.getModuleInfo(I);!L[I]&&Y(V)&&(L[I]=!0,mWH(S,V.deps_||[],U,Y,L),U(V))}};
ua.prototype.dispose=function(){_.ci(_.h9.getValues(this.moduleInfoMap),this.baseModuleInfo_);this.moduleInfoMap={};this.loadingModuleIds_=[];this.requestedLoadingModuleIds_=[];this.userInitiatedLoadingModuleIds_=[];this.requestedModuleIdsQueue_=[];this.JSC$8954_callbackMap_={};this.isDisposed_=!0};
ua.prototype.isDisposed=function(){return this.isDisposed_};
_.Z1=function(){return new ua};var ovc=[5E3,2E4],vvq=function(){this.JSC$8059_loader_=null;this.JSC$8962_moduleInfoMap_=Object.create(null);this.loadingModules_=Object.create(null);this.activeLoads_=0;this.JSC$8962_queue_=[];this.JSC$8962_extraEdges_=Object.create(null);this.JSC$8962_currentlyLoadingModule_=this.getModuleInfo("{base}")};
_.r(vvq,PQm);_.M=vvq.prototype;_.M.setAllModuleInfoString=function(){this.JSC$8962_currentlyLoadingModule_&&this.JSC$8962_currentlyLoadingModule_.getId()=="{base}"&&this.JSC$8949_setLoaded()};
_.M.getModuleInfo=function(S){var p=this.JSC$8962_moduleInfoMap_[S];p||(p=new P1([],S),this.JSC$8962_moduleInfoMap_[S]=p);return p};
_.M.addExtraEdge=function(S,p){this.getModuleInfo(S).isLoaded()?this.load(p):(this.JSC$8962_extraEdges_[S]||(this.JSC$8962_extraEdges_[S]={}),this.JSC$8962_extraEdges_[S][p]=!0)};
_.M.removeExtraEdge=function(S,p){if(this.JSC$8962_extraEdges_[S]){delete this.JSC$8962_extraEdges_[S][p];for(var U in this.JSC$8962_extraEdges_[S])return;delete this.JSC$8962_extraEdges_[S]}};
_.M.isModuleLoading=function(S){return!!this.loadingModules_[S]};
_.M.load=function(S){$Wd(this,[S]);return ivd(this,S)};
_.M.loadMultiple=function(S){var p=this,U=Object.create(null),Y=[];S.forEach(function(L){U[L]||(U[L]=ivd(p,L),Y.push(L))});
$Wd(this,Y);return U};
_.M.beforeLoadModuleCode=function(S){var p;((p=this.JSC$8962_currentlyLoadingModule_)==null?void 0:p.getId())==="synthetic_module_overhead"&&this.JSC$8949_setLoaded();var U,Y;NKt(this,(Y=(U=this.JSC$8962_moduleInfoMap_[S])==null?void 0:U.deps_)!=null?Y:[],function(L){L.module_=new Xf},function(L){return!L.isLoaded()});
this.JSC$8962_currentlyLoadingModule_=this.getModuleInfo(S)};
_.M.JSC$8949_setLoaded=function(){if(this.JSC$8962_currentlyLoadingModule_){var S=this.JSC$8962_currentlyLoadingModule_.getId(),p=[];if(this.JSC$8962_extraEdges_[S]){for(var U=_.d(Object.keys(this.JSC$8962_extraEdges_[S])),Y=U.next();!Y.done;Y=U.next())Y=Y.value,this.getModuleInfo(Y).isLoaded()||(this.removeExtraEdge(S,Y),p.push(Y));this.loadMultiple(p)}this.JSC$8962_currentlyLoadingModule_.onLoad(function(){return null});
this.JSC$8962_currentlyLoadingModule_=null;(!this.isModuleLoading(S)&&/^sy[0-9a-z]{0,4}$/.test(S)||S==="synthetic_module_overhead")&&delete this.JSC$8962_moduleInfoMap_[S];this.unsetModulesAsLoading(S)}};
_.M.setModulesAsLoading=function(){var S=this;_.jO.apply(0,arguments).forEach(function(p){S.loadingModules_[p]=!0})};
_.M.unsetModulesAsLoading=function(){var S=this;_.jO.apply(0,arguments).forEach(function(p){delete S.loadingModules_[p]})};
var ivd=function(S,p){return new _.O9(function(U,Y){var L=S.getModuleInfo(p);L.isLoaded()?U(null):(L.registerCallback(function(){U(null)}),DWj(L,function(I){var V="Error loading "+p+": "+I;
I instanceof iG.ModuleLoadFailure&&I.url&&(V=V+", requested url: "+I.url.toString());Y(Error(V))}))})},$Wd=function(S,p){p=p.filter(function(U){return!S.isModuleLoading(U)&&!S.getModuleInfo(U).isLoaded()});
p.length>0&&(S.setModulesAsLoading.apply(S,_.jo(p)),S.JSC$8962_queue_.push(p),BKP(S))},BKP=function(S){for(var p={};S.activeLoads_<Infinity&&S.JSC$8962_queue_.length>0;p={finishLoad:void 0,
ids$jscomp$36:void 0,attempt$jscomp$6:void 0,load$jscomp$1:void 0})p.ids$jscomp$36=S.JSC$8962_queue_.shift().filter(function(U){return!S.getModuleInfo(U).isLoaded()}),p.ids$jscomp$36.length>0&&(S.activeLoads_++,p.finishLoad=function(U){return function(){S.activeLoads_--;
BKP(S);U.finishLoad=function(){}}}(p),_.DS(p.ids$jscomp$36.map(function(U){return ivd(S,U)})).then(function(U){return function(){(0,U.finishLoad)()}}(p)),p.attempt$jscomp$6=0,p.load$jscomp$1=function(U){return function(){if(Object.keys(S.JSC$8962_extraEdges_).length>0&&!S.JSC$8059_loader_.supportsExtraEdges)throw Error("rd");
S.JSC$8059_loader_.JSC$8941_loadModules(U.ids$jscomp$36,S.JSC$8962_moduleInfoMap_,{extraEdges:S.JSC$8962_extraEdges_,onError:function(Y,L){var I=ovc[U.attempt$jscomp$6++];I!==void 0?setTimeout(function(){(0,U.load$jscomp$1)()},I):(S.unsetModulesAsLoading.apply(S,_.jo(U.ids$jscomp$36)),(0,U.finishLoad)(),U.ids$jscomp$36.forEach(function(V){V=S.getModuleInfo(V);
if(!V.isLoaded())V.onError(new iG.ModuleLoadFailure(iG.ModuleLoadFailure.JSC$8951_Type.CONSECUTIVE_FAILURES,Y,U.ids$jscomp$36,L))}))}})}}(p),(0,p.load$jscomp$1)())},NKt=function(S,p,U,Y,L){Y=Y===void 0?function(){return!0}:Y;
L=L===void 0?{}:L;p=_.d(p);for(var I=p.next();!I.done;I=p.next()){I=I.value;var V=S.getModuleInfo(I);!L[I]&&Y(V)&&(L[I]=!0,NKt(S,V.deps_||[],U,Y,L),U(V))}};var q9d=!/^\s*class\s*\{\s*\}\s*$/.test(function(){}.toString());var KhR=Symbol("ud");window.JSCompiler_renameProperty=function(S){return S};/*

 Copyright 2016 Google LLC
 SPDX-License-Identifier: BSD-3-Clause
*/
var AUm=!q9d||HTMLElement.es5Shimmed||_.UX.Reflect===void 0||_.UX.customElements===void 0||_.UX.customElements.polyfillWrapFlushCallback||!1,tPQ,ohG=function(){var S=HTMLElement;if(AUm)return S;if(tPQ!==void 0)return tPQ;var p=_.UX.Reflect,U=function(){return p.construct(S,[],this.constructor)};
U.prototype=S.prototype;U.prototype.constructor=U;U.es5Shimmed=!0;Object.setPrototypeOf(U,S);return tPQ=U},cUj=!1;AUm||cUj||(cUj=!0,_.UX.HTMLElement=ohG());/*

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 hoG=/(url\()([^)]*)(\))/g,r7E=/(^\/[^\/])|(^#)|(^[\w-\d]*:)/,Gww,pZ;var eF=!window.ShadyDOM||!window.ShadyDOM.inUse,SRc=!(window.ShadyCSS&&!window.ShadyCSS.nativeCss),prQ=!window.customElements.polyfillWrapFlushCallback,U0w;if(U0w=eF&&"adoptedStyleSheets"in Document.prototype&&"replaceSync"in CSSStyleSheet.prototype)try{var YRl=new CSSStyleSheet;YRl.replaceSync("");var L$m=document.createElement("div");L$m.attachShadow({mode:"open"});L$m.shadowRoot.adoptedStyleSheets=[YRl];U0w=L$m.shadowRoot.adoptedStyleSheets[0]===YRl}catch(S){U0w=!1}
var MFt=U0w,Icq=window.Polymer&&window.Polymer.rootPath||FhG(document.baseURI||window.location.href),zT=window.Polymer&&window.Polymer.sanitizeDOMValue||void 0,leq=window.Polymer&&window.Polymer.setPassiveTouchGestures||!1,lN=window.Polymer&&window.Polymer.strictTemplatePolicy||!1,d0j=window.Polymer&&window.Polymer.allowTemplateFromDomModule||!1,sR=window.Polymer&&window.Polymer.legacyOptimizations||!1,wV=window.Polymer&&window.Polymer.legacyWarnings||!1,VFE=window.Polymer&&window.Polymer.syncInitialRender||
!1,nZ=window.Polymer&&window.Polymer.legacyUndefined||!1,TVI=window.Polymer&&window.Polymer.orderedComputed||!1,la=window.Polymer&&window.Polymer.removeNestedTemplates||!1,aq=window.Polymer&&window.Polymer.fastDomIf||!1,fD=window.Polymer&&window.Polymer.suppressTemplateNotifications||!1,W$H=window.Polymer&&window.Polymer.legacyNoObservedAttributes||!1,OZH=window.Polymer&&window.Polymer.useAdoptedStyleSheetsWithBuiltCSS||!1;var CD={},kTj={},yV=function(){return HTMLElement.apply(this,arguments)||this};
_.r(yV,HTMLElement);yV.import=function(S,p){return S?(S=CD[S]||kTj[S.toLowerCase()])&&p?S.querySelector(p):S:null};
yV.prototype.attributeChangedCallback=function(S,p,U){p!==U&&this.register()};
yV.prototype.register=function(S){if(S=S||this.id){if(lN&&(CD[S]||kTj[S.toLowerCase()])!==void 0)throw CD[S]=kTj[S.toLowerCase()]=null,Error("vd`"+S);this.id=S;CD[S]=kTj[S.toLowerCase()]=this;this.querySelector("style")&&console.warn("dom-module %s has style outside template",this.id)}};
_.$u.Object.defineProperties(yV.prototype,{assetpath:{configurable:!0,enumerable:!0,get:function(){if(!this.__assetpath){var S=window.HTMLImports&&HTMLImports.importForElement?HTMLImports.importForElement(this)||document:this.ownerDocument;S=_.UR(this.getAttribute("assetpath")||"",S.baseURI);this.__assetpath=FhG(S)}return this.__assetpath}}});
_.$u.Object.defineProperties(yV,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return["id"]}}});
yV["import"]=yV.import;yV.prototype.modules=CD;customElements.define("dom-module",yV);var HZI=0,PZE=0,Yu=[],D0m=0,X7q=!1,zkQ=document.createTextNode(""),QHI,Pr;(new window.MutationObserver(ZsN)).observe(zkQ,{characterData:!0});_.xr={after:function(S){return{run:function(p){return window.setTimeout(p,S)},
cancel:function(p){window.clearTimeout(p)}}},
run:function(S,p){return window.setTimeout(S,p)},
cancel:function(S){window.clearTimeout(S)}};
_.bT={run:function(S){return window.requestAnimationFrame(S)},
cancel:function(S){window.cancelAnimationFrame(S)}};
QHI={run:function(S){return window.requestIdleCallback?window.requestIdleCallback(S):window.setTimeout(S,16)},
cancel:function(S){window.cancelIdleCallback?window.cancelIdleCallback(S):window.clearTimeout(S)}};
Pr={run:function(S){X7q||(X7q=!0,zkQ.textContent=D0m++);Yu.push(S);return HZI++},
cancel:function(S){var p=S-PZE;if(p>=0){if(!Yu[p])throw Error("wd`"+S);Yu[p]=null}}};var nud=0,Ew=function(S){var p=S.__mixinApplications;p||(p=new WeakMap,S.__mixinApplications=p);var U=nud++;return function(Y){var L=Y.__mixinSet;if(L&&L[U])return Y;var I=p,V=I.get(Y);V||(V=S(Y),I.set(Y,V),Y=Object.create(V.__mixinSet||L||null),Y[U]=!0,V.__mixinSet=Y);return V}};_.Dc=window.ShadyDOM&&window.ShadyDOM.noPatch&&window.ShadyDOM.wrap?window.ShadyDOM.wrap:window.ShadyDOM?function(S){return ShadyDOM.patch(S)}:function(S){return S};var Jrl=Ew(function(S){var p=function(){var U=S.call(this)||this;U.__dataEnabled=!1;U.__dataReady=!1;U.__dataInvalid=!1;U.__data={};U.__dataPending=null;U.__dataOld=null;U.__dataInstanceProps=null;U.__dataCounter=0;U.__serializing=!1;U._initializeProperties();return U};
_.r(p,S);p.createProperties=function(U){var Y=this.prototype,L;for(L in U)L in Y||Y._createPropertyAccessor(L)};
p.attributeNameForProperty=function(U){return U.toLowerCase()};
p.typeForProperty=function(){};
p.prototype._createPropertyAccessor=function(U,Y){this._addPropertyToAttributeMap(U);this.hasOwnProperty("__dataHasAccessor")||(this.__dataHasAccessor=Object.assign({},this.__dataHasAccessor));this.__dataHasAccessor[U]||(this.__dataHasAccessor[U]=!0,this._definePropertyAccessor(U,Y))};
p.prototype._addPropertyToAttributeMap=function(U){this.hasOwnProperty("__dataAttributes")||(this.__dataAttributes=Object.assign({},this.__dataAttributes));var Y=this.__dataAttributes[U];Y||(Y=this.constructor.attributeNameForProperty(U),this.__dataAttributes[Y]=U);return Y};
p.prototype._definePropertyAccessor=function(U,Y){Object.defineProperty(this,U,{get:function(){return this.__data[U]},
set:Y?function(){}:function(L){this._setPendingProperty(U,L,!0)&&this._invalidateProperties()}})};
p.prototype.ready=function(){this.__dataReady=!0;this._flushProperties()};
p.prototype._initializeProperties=function(){for(var U in this.__dataHasAccessor)this.hasOwnProperty(U)&&(this.__dataInstanceProps=this.__dataInstanceProps||{},this.__dataInstanceProps[U]=this[U],delete this[U])};
p.prototype._initializeInstanceProperties=function(U){Object.assign(this,U)};
p.prototype._setProperty=function(U,Y){this._setPendingProperty(U,Y)&&this._invalidateProperties()};
p.prototype._getProperty=function(U){return this.__data[U]};
p.prototype._setPendingProperty=function(U,Y){var L=this.__data[U],I=this._shouldPropertyChange(U,Y,L);I&&(this.__dataPending||(this.__dataPending={},this.__dataOld={}),!this.__dataOld||U in this.__dataOld||(this.__dataOld[U]=L),this.__data[U]=Y,this.__dataPending[U]=Y);return I};
p.prototype._isPropertyPending=function(U){return!(!this.__dataPending||!this.__dataPending.hasOwnProperty(U))};
p.prototype._invalidateProperties=function(){var U=this;!this.__dataInvalid&&this.__dataReady&&(this.__dataInvalid=!0,Pr.run(function(){U.__dataInvalid&&(U.__dataInvalid=!1,U._flushProperties())}))};
p.prototype._enableProperties=function(){this.__dataEnabled||(this.__dataEnabled=!0,this.__dataInstanceProps&&(this._initializeInstanceProperties(this.__dataInstanceProps),this.__dataInstanceProps=null),this.ready())};
p.prototype._flushProperties=function(){this.__dataCounter++;var U=this.__data,Y=this.__dataPending,L=this.__dataOld;this._shouldPropertiesChange(U,Y,L)&&(this.__dataOld=this.__dataPending=null,this._propertiesChanged(U,Y,L));this.__dataCounter--};
p.prototype._shouldPropertiesChange=function(U,Y){return!!Y};
p.prototype._propertiesChanged=function(){};
p.prototype._shouldPropertyChange=function(U,Y,L){return L!==Y&&(L===L||Y===Y)};
p.prototype.attributeChangedCallback=function(U,Y,L,I){Y!==L&&this._attributeToProperty(U,L);S.prototype.attributeChangedCallback&&S.prototype.attributeChangedCallback.call(this,U,Y,L,I)};
p.prototype._attributeToProperty=function(U,Y,L){if(!this.__serializing){var I=this.__dataAttributes;U=I&&I[U]||U;this[U]=this._deserializeValue(Y,L||this.constructor.typeForProperty(U))}};
p.prototype._propertyToAttribute=function(U,Y,L){this.__serializing=!0;L=arguments.length<3?this[U]:L;this._valueToNodeAttribute(this,L,Y||this.constructor.attributeNameForProperty(U));this.__serializing=!1};
p.prototype._valueToNodeAttribute=function(U,Y,L){Y=this._serializeValue(Y);if(L==="class"||L==="name"||L==="slot")U=(0,_.Dc)(U);Y===void 0?U.removeAttribute(L):U.setAttribute(L,Y===""&&window.trustedTypes?window.trustedTypes.emptyScript:Y)};
p.prototype._serializeValue=function(U){switch(typeof U){case "boolean":return U?"":void 0;default:return U!=null?U.toString():void 0}};
p.prototype._deserializeValue=function(U,Y){switch(Y){case Boolean:return U!==null;case Number:return Number(U);default:return U}};
return p});var yrI=0,syN=[];var K$H=Ew(function(S){function p(I){I=Object.getPrototypeOf(I);return I.prototype instanceof L?I:null}
function U(I){if(!I.hasOwnProperty("__ownProperties")){var V=null;if(I.hasOwnProperty("properties")){var W=I.properties;if(W){V={};for(var O in W){var D=W[O];V[O]=typeof D==="function"?{type:D}:D}}}I.__ownProperties=V}return I.__ownProperties}
var Y=Jrl(S),L=function(){return Y.apply(this,arguments)||this};
_.r(L,Y);L.finalize=function(){if(!this.hasOwnProperty("__finalized")){var I=p(this);I&&I.finalize();this.__finalized=!0;this._finalizeClass()}};
L._finalizeClass=function(){var I=U(this);I&&this.createProperties(I)};
L.typeForProperty=function(I){return(I=this._properties[I])&&I.type};
L.prototype._initializeProperties=function(){yrI++;this.constructor.finalize();Y.prototype._initializeProperties.call(this)};
L.prototype.connectedCallback=function(){Y.prototype.connectedCallback&&Y.prototype.connectedCallback.call(this);this._enableProperties()};
L.prototype.disconnectedCallback=function(){Y.prototype.disconnectedCallback&&Y.prototype.disconnectedCallback.call(this)};
_.$u.Object.defineProperties(L,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){var I=this;if(!this.hasOwnProperty("__observedAttributes")){eow(this.prototype);var V=this._properties;this.__observedAttributes=V?Object.keys(V).map(function(W){return I.prototype._addPropertyToAttributeMap(W)}):[]}return this.__observedAttributes}},
_properties:{configurable:!0,enumerable:!0,get:function(){if(!this.hasOwnProperty("__properties")){var I=p(this);this.__properties=Object.assign({},I&&I._properties,U(this))}return this.__properties}}});
return L});var gLk={},ucu=/-[a-z]/g,w7N=/([A-Z])/g;for(var bZl={},jHq=HTMLElement.prototype;jHq;){for(var rrw=Object.getOwnPropertyNames(jHq),GTE=0;GTE<rrw.length;GTE++)bZl[rrw[GTE]]=!0;jHq=Object.getPrototypeOf(jHq)}var hkm=window.trustedTypes?function(S){return trustedTypes.isHTML(S)||trustedTypes.isScript(S)||trustedTypes.isScriptURL(S)}:function(){return!1},Rkw=Ew(function(S){var p=Jrl(S);
S=function(){return p.apply(this,arguments)||this};
_.r(S,p);S.createPropertiesForAttributes=function(){for(var U=this.observedAttributes,Y=0;Y<U.length;Y++)this.prototype._createPropertyAccessor(LZ(U[Y]))};
S.attributeNameForProperty=function(U){return M0(U)};
S.prototype._initializeProperties=function(){this.__dataProto&&(this._initializeProtoProperties(this.__dataProto),this.__dataProto=null);p.prototype._initializeProperties.call(this)};
S.prototype._initializeProtoProperties=function(U){for(var Y in U)this._setProperty(Y,U[Y])};
S.prototype._ensureAttribute=function(U,Y){this.hasAttribute(U)||this._valueToNodeAttribute(this,Y,U)};
S.prototype._serializeValue=function(U){switch(typeof U){case "object":if(U instanceof Date)return U.toString();if(U){if(hkm(U))return U;try{return JSON.stringify(U)}catch(Y){return""}}default:return p.prototype._serializeValue.call(this,U)}};
S.prototype._deserializeValue=function(U,Y){switch(Y){case Object:try{var L=JSON.parse(U)}catch(I){L=U}break;case Array:try{L=JSON.parse(U)}catch(I){L=null,console.warn("Polymer::Attributes: couldn't decode Array as JSON: "+U)}break;case Date:L=isNaN(U)?String(U):Number(U);L=new Date(L);break;default:L=p.prototype._deserializeValue.call(this,U,Y)}return L};
S.prototype._definePropertyAccessor=function(U,Y){if(!bZl[U]){var L=this[U];L!==void 0&&(this.__data?this._setPendingProperty(U,L):(this.__dataProto?this.hasOwnProperty("__dataProto")||(this.__dataProto=Object.create(this.__dataProto)):this.__dataProto={},this.__dataProto[U]=L))}p.prototype._definePropertyAccessor.call(this,U,Y)};
S.prototype._hasAccessor=function(U){return this.__dataHasAccessor&&this.__dataHasAccessor[U]};
S.prototype._isPropertyPending=function(U){return!!(this.__dataPending&&U in this.__dataPending)};
return S});var F$t={"dom-if":!0,"dom-repeat":!0},XrP=!1,PNQ=!1,ZZm=function(){var S=window.trustedTypes&&window.trustedTypes.createPolicy("polymer-template-event-attribute-policy",{createScript:function(p){return p}});
return function(p,U,Y){U=U.getAttribute(Y);S&&Y.startsWith("on-")?p.setAttribute(Y,S.createScript(U,Y)):p.setAttribute(Y,U)}}(),sHI=Ew(function(S){var p=function(){return S.apply(this,arguments)||this};
_.r(p,S);p._parseTemplate=function(U,Y){if(!U._templateInfo){var L=U._templateInfo={};L.nodeInfoList=[];L.nestedTemplate=!!Y;L.stripWhiteSpace=Y&&Y.stripWhiteSpace||U.hasAttribute&&U.hasAttribute("strip-whitespace");this._parseTemplateContent(U,L,{parent:null})}return U._templateInfo};
p._parseTemplateContent=function(U,Y,L){return this._parseTemplateNode(U.content,Y,L)};
p._parseTemplateNode=function(U,Y,L){var I=!1;U.localName!="template"||U.hasAttribute("preserve-content")?U.localName==="slot"&&(Y.hasInsertionPoint=!0):I=this._parseTemplateNestedTemplate(U,Y,L)||I;if(!XrP){XrP=!0;var V=document.createElement("textarea");V.placeholder="a";PNQ=V.placeholder===V.textContent}PNQ&&U.localName==="textarea"&&U.placeholder&&U.placeholder===U.textContent&&(U.textContent=null);U.firstChild&&this._parseTemplateChildNodes(U,Y,L);U.hasAttributes&&U.hasAttributes()&&(I=this._parseTemplateNodeAttributes(U,
Y,L)||I);return I||L.noted};
p._parseTemplateChildNodes=function(U,Y,L){if(U.localName!=="script"&&U.localName!=="style")for(var I=U.firstChild,V=0,W;I;I=W){if(I.localName=="template"){var O=I.getAttribute("is");if(O&&F$t[O])for(W=I,W.removeAttribute("is"),I=W.ownerDocument.createElement(O),W.parentNode.replaceChild(I,W),I.appendChild(W);W.attributes.length;)O=W.attributes[0].name,ZZm(I,W,O),W.removeAttribute(O)}W=I.nextSibling;if(I.nodeType===Node.TEXT_NODE){for(O=W;O&&O.nodeType===Node.TEXT_NODE;)I.textContent+=O.textContent,
W=O.nextSibling,U.removeChild(O),O=W;if(Y.stripWhiteSpace&&!I.textContent.trim()){U.removeChild(I);continue}}O={parentIndex:V,parentInfo:L};this._parseTemplateNode(I,Y,O)&&(O.infoIndex=Y.nodeInfoList.push(O)-1);I.parentNode&&V++}};
p._parseTemplateNestedTemplate=function(U,Y,L){Y=this._parseTemplate(U,Y);(Y.content=U.content.ownerDocument.createDocumentFragment()).appendChild(U.content);L.templateInfo=Y;return!0};
p._parseTemplateNodeAttributes=function(U,Y,L){for(var I=!1,V=Array.from(U.attributes),W=V.length-1,O;O=V[W];W--)I=this._parseTemplateNodeAttribute(U,Y,L,O.name,O.value)||I;return I};
p._parseTemplateNodeAttribute=function(U,Y,L,I,V){return I.slice(0,3)==="on-"?(U.removeAttribute(I),L.events=L.events||[],L.events.push({name:I.slice(3),value:V}),!0):I==="id"?(L.id=V,!0):!1};
p._contentForTemplate=function(U){var Y=U._templateInfo;return Y&&Y.content||U.content};
p.prototype._stampTemplate=function(U,Y){U&&!U.content&&window.HTMLTemplateElement&&HTMLTemplateElement.decorate&&HTMLTemplateElement.decorate(U);Y=Y||this.constructor._parseTemplate(U);var L=Y.nodeInfoList;U=document.importNode(Y.content||U.content,!0);U.__noInsertionPoint=!Y.hasInsertionPoint;var I=U.nodeList=Array(L.length);U.$={};for(var V=0,W=L.length,O=void 0;V<W&&(O=L[V]);V++){var D=I[V]=ltG(U,O);O.id&&(U.$[O.id]=D);var z=D,Q=O,J=Y;Q.templateInfo&&(z._templateInfo=Q.templateInfo,z._parentTemplateInfo=
J);if(O.events&&O.events.length)for(z=0,Q=O.events,J=void 0;z<Q.length&&(J=Q[z]);z++)this._addMethodEventListenerToNode(D,J.name,J.value,this)}return U};
p.prototype._addMethodEventListenerToNode=function(U,Y,L,I){L=atr(I||U,L);this._addEventListenerToNode(U,Y,L);return L};
p.prototype._addEventListenerToNode=function(U,Y,L){U.addEventListener(Y,L)};
p.prototype._removeEventListenerFromNode=function(U,Y,L){U.removeEventListener(Y,L)};
return p});var ku=0,QV=[],ekc={COMPUTE:"__computeEffects",REFLECT:"__reflectEffects",NOTIFY:"__notifyEffects",PROPAGATE:"__propagateEffects",OBSERVE:"__observeEffects",READ_ONLY:"__readOnly"},guP=/[A-Z]/,ujt=function(S,p,U,Y,L){var I=L?dV(S):S;if(p=p[I])for(I=0;I<p.length;I++){var V=p[I];if(V.info.lastRun!==ku&&(!L||oLu(S,V.trigger))){V.info.lastRun=ku;V=V.info;for(var W=U,O=Y,D=0,z=W.length-1,Q=-1;D<=z;){var J=D+z>>1,K=O.get(W[J].methodInfo)-O.get(V.methodInfo);if(K<0)D=J+1;else if(K>0)z=J-1;else{Q=J;break}}Q<
0&&(Q=z+1);W.splice(Q,0,V)}}},MSd=[],wrE=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"),oq=Ew(function(S){var p=sHI(Rkw(S));
S=function(){var U=p.call(this)||this;U.__isPropertyEffectsClient=!0;return U};
_.r(S,p);S.prototype._initializeProperties=function(){p.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};
S.prototype._registerHost=function(){if(mZ.length){var U=mZ[mZ.length-1];U._enqueueClient(this);this.__dataHost=U}};
S.prototype._initializeProtoProperties=function(U){this.__data=Object.create(U);this.__dataPending=Object.create(U);this.__dataOld={}};
S.prototype._initializeInstanceProperties=function(U){var Y=this.__readOnly,L;for(L in U)Y&&Y[L]||(this.__dataPending=this.__dataPending||{},this.__dataOld=this.__dataOld||{},this.__data[L]=this.__dataPending[L]=U[L])};
S.prototype._addPropertyEffect=function(U,Y,L){this._createPropertyAccessor(U,Y=="__readOnly");var I=mFN(this,Y,!0)[U];I||(I=this[Y][U]=[]);I.push(L)};
S.prototype._removePropertyEffect=function(U,Y,L){U=mFN(this,Y,!0)[U];L=U.indexOf(L);L>=0&&U.splice(L,1)};
S.prototype._hasPropertyEffect=function(U,Y){Y=this[Y];return!(!Y||!Y[U])};
S.prototype._hasReadOnlyEffect=function(U){return this._hasPropertyEffect(U,"__readOnly")};
S.prototype._hasNotifyEffect=function(U){return this._hasPropertyEffect(U,"__notifyEffects")};
S.prototype._hasReflectEffect=function(U){return this._hasPropertyEffect(U,"__reflectEffects")};
S.prototype._hasComputedEffect=function(U){return this._hasPropertyEffect(U,"__computeEffects")};
S.prototype._setPendingPropertyOrPath=function(U,Y,L,I){if(I||dV(Array.isArray(U)?U[0]:U)!==U){if(!I&&(I=OR(this,U),U=ELE(this,U,Y),!U||!p.prototype._shouldPropertyChange.call(this,U,Y,I)))return!1;this.__dataHasPaths=!0;if(this._setPendingProperty(U,Y,L)){if(L=this.__dataLinkedPaths)for(var V in L)I=L[V],VV(V,U)?(I=TT(V,I,U),this._setPendingPropertyOrPath(I,Y,!0,!0)):VV(I,U)&&(I=TT(I,V,U),this._setPendingPropertyOrPath(I,Y,!0,!0));return!0}}else{if(this.__dataHasAccessor&&this.__dataHasAccessor[U])return this._setPendingProperty(U,
Y,L);this[U]=Y}return!1};
S.prototype._setUnmanagedPropertyToNode=function(U,Y,L){if(L!==U[Y]||typeof L=="object")Y==="className"&&(U=(0,_.Dc)(U)),U[Y]=L};
S.prototype._setPendingProperty=function(U,Y,L){var I=this.__dataHasPaths&&IH(U);if(this._shouldPropertyChange(U,Y,(I?this.__dataTemp:this.__data)[U])){this.__dataPending||(this.__dataPending={},this.__dataOld={});U in this.__dataOld||(this.__dataOld[U]=this.__data[U]);I?this.__dataTemp[U]=Y:this.__data[U]=Y;this.__dataPending[U]=Y;if(I||this.__notifyEffects&&this.__notifyEffects[U])this.__dataToNotify=this.__dataToNotify||{},this.__dataToNotify[U]=L;return!0}return!1};
S.prototype._setProperty=function(U,Y){this._setPendingProperty(U,Y,!0)&&this._invalidateProperties()};
S.prototype._invalidateProperties=function(){this.__dataReady&&this._flushProperties()};
S.prototype._enqueueClient=function(U){this.__dataPendingClients=this.__dataPendingClients||[];U!==this&&this.__dataPendingClients.push(U)};
S.prototype._flushClients=function(){this.__dataClientsReady?this.__enableOrFlushClients():(this.__dataClientsReady=!0,this._readyClients(),this.__dataReady=!0)};
S.prototype.__enableOrFlushClients=function(){var U=this.__dataPendingClients;if(U){this.__dataPendingClients=null;for(var Y=0;Y<U.length;Y++){var L=U[Y];L.__dataEnabled?L.__dataPending&&L._flushProperties():L._enableProperties()}}};
S.prototype._readyClients=function(){this.__enableOrFlushClients()};
S.prototype.setProperties=function(U,Y){for(var L in U)!Y&&this.__readOnly&&this.__readOnly[L]||this._setPendingPropertyOrPath(L,U[L],!0);this._invalidateProperties()};
S.prototype.ready=function(){this._flushProperties();this.__dataClientsReady||this._flushClients();this.__dataPending&&this._flushProperties()};
S.prototype._propertiesChanged=function(U,Y,L){U=this.__dataHasPaths;this.__dataHasPaths=!1;var I;if(I=this.__computeEffects)if(TVI){ku++;var V=qoR(this),W=[],O;for(O in Y)ujt(O,I,W,V,U);for(;O=W.shift();)tME(this,"",Y,L,O)&&ujt(O.methodInfo,I,W,V,U);Object.assign(L,this.__dataOld);Object.assign(Y,this.__dataPending);this.__dataPending=null}else for(V=Y;Hr(this,I,V,L,U);)Object.assign(L,this.__dataOld),Object.assign(Y,this.__dataPending),V=this.__dataPending,this.__dataPending=null;I=this.__dataToNotify;
this.__dataToNotify=null;this._propagatePropertyChanges(Y,L,U);this._flushClients();Hr(this,this.__reflectEffects,Y,L,U);Hr(this,this.__observeEffects,Y,L,U);if(I){V=this.__notifyEffects;W=ku++;for(var D in I)if(I[D]){if(O=V){var z=V;O=W;var Q=D,J=Y,K=L,G=U,X=!1,Z=G?dV(Q):Q;if(z=z[Z]){Z=0;for(var l=z.length,a=void 0;Z<l&&(a=z[Z]);Z++)a.info&&a.info.lastRun===O||G&&!oLu(Q,a.trigger)||(a.info&&(a.info.lastRun=O),a.fn(this,Q,J,K,a.info,G,void 0),X=!0)}O=X}if(O)var N=!0;else{if(O=U)O=D,Q=Y,J=dV(O),J!==
O?(J=M0(J)+"-changed",$FR(this,J,Q[O],O),O=!0):O=!1;O&&(N=!0)}}var m;N&&(m=this.__dataHost)&&m._invalidateProperties&&m._invalidateProperties()}this.__dataCounter==1&&(this.__dataTemp={})};
S.prototype._propagatePropertyChanges=function(U,Y,L){this.__propagateEffects&&Hr(this,this.__propagateEffects,U,Y,L);this.__templateInfo&&this._runEffectsForTemplate(this.__templateInfo,U,Y,L)};
S.prototype._runEffectsForTemplate=function(U,Y,L,I){var V=this,W=function(O,D){Hr(V,U.propertyEffects,O,L,D,U.nodeList);for(var z=U.firstChild;z;z=z.nextSibling)V._runEffectsForTemplate(z,O,L,D)};
U.runEffects?U.runEffects(W,Y,I):W(Y,I)};
S.prototype.linkPaths=function(U,Y){U=Wr(U);Y=Wr(Y);this.__dataLinkedPaths=this.__dataLinkedPaths||{};this.__dataLinkedPaths[U]=Y};
S.prototype.unlinkPaths=function(U){U=Wr(U);this.__dataLinkedPaths&&delete this.__dataLinkedPaths[U]};
S.prototype.notifySplices=function(U,Y){var L={path:""};U=OR(this,U,L);T8E(this,U,L.path,Y)};
S.prototype.get=function(U,Y){return OR(Y||this,U)};
S.prototype.set=function(U,Y,L){L?ELE(L,U,Y):this.__readOnly&&this.__readOnly[U]||this._setPendingPropertyOrPath(U,Y,!0)&&this._invalidateProperties()};
S.prototype.push=function(U){var Y=_.jO.apply(1,arguments),L={path:""},I=OR(this,U,L),V=I.length,W=I.push.apply(I,_.jo(Y));Y.length&&Jr(this,I,L.path,V,Y.length,[]);return W};
S.prototype.pop=function(U){var Y={path:""};U=OR(this,U,Y);var L=!!U.length,I=U.pop();L&&Jr(this,U,Y.path,U.length,0,[I]);return I};
S.prototype.splice=function(U,Y,L){var I=_.jO.apply(3,arguments),V={path:""},W=OR(this,U,V);Y<0?Y=W.length-Math.floor(-Y):Y&&(Y=Math.floor(Y));var O=arguments.length===2?W.splice(Y):W.splice.apply(W,[Y,L].concat(_.jo(I)));(I.length||O.length)&&Jr(this,W,V.path,Y,I.length,O);return O};
S.prototype.shift=function(U){var Y={path:""};U=OR(this,U,Y);var L=!!U.length,I=U.shift();L&&Jr(this,U,Y.path,0,0,[I]);return I};
S.prototype.unshift=function(U){var Y=_.jO.apply(1,arguments),L={path:""},I=OR(this,U,L),V=I.unshift.apply(I,_.jo(Y));Y.length&&Jr(this,I,L.path,0,Y.length,[]);return V};
S.prototype.notifyPath=function(U,Y){if(arguments.length==1){var L={path:""};Y=OR(this,U,L);L=L.path}else L=Array.isArray(U)?Wr(U):U;this._setPendingPropertyOrPath(L,Y,!0,!0)&&this._invalidateProperties()};
S.prototype._createReadOnlyProperty=function(U,Y){this._addPropertyEffect(U,"__readOnly");Y&&(this["_set"+(U[0].toUpperCase()+U.substring(1))]=function(L){this._setProperty(U,L)})};
S.prototype._createPropertyObserver=function(U,Y,L){var I={property:U,method:Y,dynamicFn:!!L};this._addPropertyEffect(U,"__observeEffects",{fn:vLq,info:I,trigger:{name:U}});L&&this._addPropertyEffect(Y,"__observeEffects",{fn:vLq,info:I,trigger:{name:Y}})};
S.prototype._createMethodObserver=function(U,Y){var L=dBE(U);if(!L)throw Error("xd`"+U);YKw(this,L,"__observeEffects",A7e,null,Y)};
S.prototype._createNotifyingProperty=function(U){this._addPropertyEffect(U,"__notifyEffects",{fn:isk,info:{eventName:M0(U)+"-changed",property:U}})};
S.prototype._createReflectedProperty=function(U){var Y=this.constructor.attributeNameForProperty(U);Y[0]==="-"?console.warn("Property "+U+" cannot be reflected to attribute "+Y+' because "-" is not a valid starting attribute name. Use a lowercase first letter for the property instead.'):this._addPropertyEffect(U,"__reflectEffects",{fn:NYR,info:{attrName:Y}})};
S.prototype._createComputedProperty=function(U,Y,L){var I=dBE(Y);if(!I)throw Error("yd`"+Y);Y=YKw(this,I,"__computeEffects",tME,U,L);mFN(this,"__computeInfo")[U]=Y};
S.prototype._marshalArgs=function(U,Y,L){for(var I=this.__data,V=[],W=0,O=U.length;W<O;W++){var D=U[W],z=D.name,Q=D.structured,J=D.wildcard,K=D.value;D.literal||(J?(D=VV(z,Y),Q=VSE(I,L,D?Y:z),K={path:D?Y:z,value:Q,base:D?OR(I,z):Q}):K=Q?VSE(I,L,z):I[z]);if(nZ&&!this._overrideLegacyUndefined&&K===void 0&&U.length>1)return QV;V[W]=K}return V};
S.addPropertyEffect=function(U,Y,L){this.prototype._addPropertyEffect(U,Y,L)};
S.createPropertyObserver=function(U,Y,L){this.prototype._createPropertyObserver(U,Y,L)};
S.createMethodObserver=function(U,Y){this.prototype._createMethodObserver(U,Y)};
S.createNotifyingProperty=function(U){this.prototype._createNotifyingProperty(U)};
S.createReadOnlyProperty=function(U,Y){this.prototype._createReadOnlyProperty(U,Y)};
S.createReflectedProperty=function(U){this.prototype._createReflectedProperty(U)};
S.createComputedProperty=function(U,Y,L){this.prototype._createComputedProperty(U,Y,L)};
S.bindTemplate=function(U){return this.prototype._bindTemplate(U)};
S.prototype._bindTemplate=function(U,Y){var L=this.constructor._parseTemplate(U),I=this.__preBoundTemplateInfo==L;if(!I)for(var V in L.propertyEffects)this._createPropertyAccessor(V);Y?(L=Object.create(L),L.wasPreBound=I,this.__templateInfo?(U=U._parentTemplateInfo||this.__templateInfo,Y=U.lastChild,L.parent=U,U.lastChild=L,(L.previousSibling=Y)?Y.nextSibling=L:U.firstChild=L):this.__templateInfo=L):this.__preBoundTemplateInfo=L;return L};
S._addTemplatePropertyEffect=function(U,Y,L){(U.hostProps=U.hostProps||{})[Y]=!0;U=U.propertyEffects=U.propertyEffects||{};(U[Y]=U[Y]||[]).push(L)};
S.prototype._stampTemplate=function(U,Y){Y=Y||this._bindTemplate(U,!0);mZ.push(this);U=p.prototype._stampTemplate.call(this,U,Y);mZ.pop();Y.nodeList=U.nodeList;if(!Y.wasPreBound)for(var L=Y.childNodes=[],I=U.firstChild;I;I=I.nextSibling)L.push(I);U.templateInfo=Y;L=Y.nodeList;I=Y.nodeInfoList;if(I.length)for(var V=0;V<I.length;V++){var W=L[V],O=I[V].bindings;if(O)for(var D=0;D<O.length;D++){var z=O[D],Q=W,J=z;if(J.isCompound){for(var K=Q.__dataCompoundStorage||(Q.__dataCompoundStorage={}),G=J.parts,
X=Array(G.length),Z=0;Z<G.length;Z++)X[Z]=G[Z].literal;G=J.target;K[G]=X;J.literal&&J.kind=="property"&&(G==="className"&&(Q=(0,_.Dc)(Q)),Q[G]=J.literal)}UBG(W,this,z)}W.__dataHost=this}this.__dataClientsReady&&(this._runEffectsForTemplate(Y,this.__data,null,!1),this._flushClients());return U};
S.prototype._removeBoundDom=function(U){U=U.templateInfo;var Y=U.previousSibling,L=U.nextSibling,I=U.parent;Y?Y.nextSibling=L:I&&(I.firstChild=L);L?L.previousSibling=Y:I&&(I.lastChild=Y);U.nextSibling=U.previousSibling=null;U=U.childNodes;for(Y=0;Y<U.length;Y++)L=U[Y],(0,_.Dc)((0,_.Dc)(L).parentNode).removeChild(L)};
S._parseTemplateNode=function(U,Y,L){var I=p._parseTemplateNode.call(this,U,Y,L);if(U.nodeType===Node.TEXT_NODE){var V=this._parseBindings(U.textContent,Y);V&&(U.textContent=LLR(V)||" ",pGw(this,Y,L,"text","textContent",V),I=!0)}return I};
S._parseTemplateNodeAttribute=function(U,Y,L,I,V){var W=this._parseBindings(V,Y);if(W){V=I;var O="property";guP.test(I)?O="attribute":I[I.length-1]=="$"&&(I=I.slice(0,-1),O="attribute");var D=LLR(W);D&&O=="attribute"&&(I=="class"&&U.hasAttribute("class")&&(D+=" "+U.getAttribute(I)),U.setAttribute(I,D));O=="attribute"&&V=="disable-upgrade$"&&U.setAttribute(I,"");U.localName==="input"&&V==="value"&&U.setAttribute(V,"");U.removeAttribute(V);O==="property"&&(I=LZ(I));pGw(this,Y,L,O,I,W,D);return!0}return p._parseTemplateNodeAttribute.call(this,
U,Y,L,I,V)};
S._parseTemplateNestedTemplate=function(U,Y,L){var I=p._parseTemplateNestedTemplate.call(this,U,Y,L),V=U.parentNode,W=L.templateInfo,O=V.localName==="dom-if",D=V.localName==="dom-repeat";la&&(O||D)&&(V.removeChild(U),L=L.parentInfo,L.templateInfo=W,L.noted=!0,I=!1);U=W.hostProps;if(aq&&O)U&&(Y.hostProps=Object.assign(Y.hostProps||{},U),la||(L.parentInfo.noted=!0));else for(var z in U)pGw(this,Y,L,"property","_host_"+z,[{mode:"{",source:z,dependencies:[z],hostProp:!0}]);return I};
S._parseBindings=function(U,Y){for(var L=[],I=0,V;(V=wrE.exec(U))!==null;){V.index>I&&L.push({literal:U.slice(I,V.index)});I=V[1][0];var W=!!V[2];V=V[3].trim();var O=!1,D="",z=-1;I=="{"&&(z=V.indexOf("::"))>0&&(D=V.substring(z+2),V=V.substring(0,z),O=!0);z=dBE(V);var Q=[];if(z){var J=z,K=J.args;J=J.methodName;for(var G=0;G<K.length;G++){var X=K[G];X.literal||Q.push(X)}if((K=Y.dynamicFns)&&K[J]||z.static)Q.push(J),z.dynamicFn=!0}else Q.push(V);L.push({source:V,mode:I,negate:W,customEvent:O,signature:z,
dependencies:Q,event:D});I=wrE.lastIndex}I&&I<U.length&&(U=U.substring(I))&&L.push({literal:U});return L.length?L:null};
S._evaluateBinding=function(U,Y,L,I,V,W){U=Y.signature?A7e(U,L,I,V,Y.signature):L!=Y.source?OR(U,Y.source):W&&IH(L)?OR(U,L):U.__data[L];Y.negate&&(U=!U);return U};
_.$u.Object.defineProperties(S.prototype,{PROPERTY_EFFECT_TYPES:{configurable:!0,enumerable:!0,get:function(){return ekc}}});
return S}),mZ=[];var lcm=window.ShadyCSS&&window.ShadyCSS.cssBuild,v1=Ew(function(S){function p(Y,L,I,V){if(!lcm){for(var W=L.content.querySelectorAll("style"),O=H6r(L),D=zlN(I),z=L.content.firstElementChild,Q=0;Q<D.length;Q++){var J=D[Q];J.textContent=Y._processStyleText(J.textContent,V);L.content.insertBefore(J,z)}for(z=D=0;z<O.length;z++)Q=O[z],J=W[D],J!==Q?(Q=Q.cloneNode(!0),J.parentNode.insertBefore(Q,J)):D++,Q.textContent=Y._processStyleText(Q.textContent,V)}window.ShadyCSS&&window.ShadyCSS.prepareTemplate(L,
I);if(OZH&&lcm&&MFt&&(L=L.content.querySelectorAll("style"))){var K="";Array.from(L).forEach(function(G){K+=G.textContent;G.parentNode.removeChild(G)});
Y._styleSheet=new CSSStyleSheet;Y._styleSheet.replaceSync(K)}}
var U=K$H(oq(S));S=function(){return U.call(this)||this};
_.r(S,U);S._finalizeClass=function(){U._finalizeClass.call(this);var Y;this.hasOwnProperty("__ownObservers")||(this.__ownObservers=this.hasOwnProperty("observers")?this.observers:null);(Y=this.__ownObservers)&&this.createObservers(Y,this._properties);this._prepareTemplate()};
S._prepareTemplate=function(){var Y=this.template;Y&&(typeof Y==="string"?(console.error("template getter must return HTMLTemplateElement"),Y=null):sR||(Y=Y.cloneNode(!0)));this.prototype._template=Y};
S.createProperties=function(Y){for(var L in Y){var I=this.prototype,V=L,W=Y[L],O=Y;W.computed&&(W.readOnly=!0);W.computed&&(I._hasReadOnlyEffect(V)?console.warn("Cannot redefine computed property '"+V+"'."):I._createComputedProperty(V,W.computed,O));W.readOnly&&!I._hasReadOnlyEffect(V)?I._createReadOnlyProperty(V,!W.computed):W.readOnly===!1&&I._hasReadOnlyEffect(V)&&console.warn("Cannot make readOnly property '"+V+"' non-readOnly.");W.reflectToAttribute&&!I._hasReflectEffect(V)?I._createReflectedProperty(V):
W.reflectToAttribute===!1&&I._hasReflectEffect(V)&&console.warn("Cannot make reflected property '"+V+"' non-reflected.");W.notify&&!I._hasNotifyEffect(V)?I._createNotifyingProperty(V):W.notify===!1&&I._hasNotifyEffect(V)&&console.warn("Cannot make notify property '"+V+"' non-notify.");W.observer&&I._createPropertyObserver(V,W.observer,O[W.observer]);I._addPropertyToAttributeMap(V)}};
S.createObservers=function(Y,L){for(var I=this.prototype,V=0;V<Y.length;V++)I._createMethodObserver(Y[V],L)};
S.prototype._initializeProperties=function(){this.constructor.finalize();this.constructor._finalizeTemplate(this.localName);U.prototype._initializeProperties.call(this);this.rootPath=Icq;this.importPath=this.constructor.importPath;var Y=this.constructor;if(!Y.hasOwnProperty("__propertyDefaults")){Y.__propertyDefaults=null;var L=Y._properties,I;for(I in L){var V=L[I];"value"in V&&(Y.__propertyDefaults=Y.__propertyDefaults||{},Y.__propertyDefaults[I]=V)}}if(Y=Y.__propertyDefaults)for(var W in Y)L=Y[W],
this._canApplyPropertyDefault(W)&&(L=typeof L.value=="function"?L.value.call(this):L.value,this._hasAccessor(W)?this._setPendingProperty(W,L,!0):this[W]=L)};
S.prototype._canApplyPropertyDefault=function(Y){return!this.hasOwnProperty(Y)};
S._processStyleText=function(Y,L){return Roq(Y,L)};
S._finalizeTemplate=function(Y){var L=this.prototype._template;if(L&&!L.__polymerFinalized){L.__polymerFinalized=!0;var I=this.importPath;I=I?_.UR(I):"";p(this,L,Y,I);this.prototype._bindTemplate(L)}};
S.prototype.connectedCallback=function(){window.ShadyCSS&&this._template&&window.ShadyCSS.styleElement(this);U.prototype.connectedCallback.call(this)};
S.prototype.ready=function(){this._template&&(this.root=this._stampTemplate(this._template),this.$=this.root.$);U.prototype.ready.call(this)};
S.prototype._readyClients=function(){this._template&&(this.root=this._attachDom(this.root));U.prototype._readyClients.call(this)};
S.prototype._attachDom=function(Y){var L=(0,_.Dc)(this);if(L.attachShadow)return Y?(L.shadowRoot||(L.attachShadow({mode:"open",shadyUpgradeFragment:Y}),L.shadowRoot.appendChild(Y),this.constructor._styleSheet&&(L.shadowRoot.adoptedStyleSheets=[this.constructor._styleSheet])),VFE&&window.ShadyDOM&&window.ShadyDOM.flushInitial(L.shadowRoot),L.shadowRoot):null;throw Error("Ad");};
S.prototype.updateStyles=function(Y){window.ShadyCSS&&window.ShadyCSS.styleSubtree(this,Y)};
S.prototype.resolveUrl=function(Y,L){!L&&this.importPath&&(L=_.UR(this.importPath));return _.UR(Y,L)};
S._parseTemplateContent=function(Y,L,I){L.dynamicFns=L.dynamicFns||this._properties;return U._parseTemplateContent.call(this,Y,L,I)};
S._addTemplatePropertyEffect=function(Y,L,I){!wV||L in this._properties||I.info.part.signature&&I.info.part.signature.static||I.info.part.hostProp||Y.nestedTemplate||console.warn("Property '"+L+"' used in template but not declared in 'properties'; attribute will not be observed.");return U._addTemplatePropertyEffect.call(this,Y,L,I)};
_.$u.Object.defineProperties(S,{template:{configurable:!0,enumerable:!0,get:function(){if(!this.hasOwnProperty("_template")){var Y=this.prototype.hasOwnProperty("_template")?this.prototype._template:void 0;typeof Y==="function"&&(Y=Y());if(Y===void 0){if(Y=this.hasOwnProperty("is")){Y=this.is;var L=null;if(Y&&(!lN||d0j)&&(L=yV.import(Y,"template"),lN&&!L))throw Error("zd`"+Y);Y=L}Y=Y||Object.getPrototypeOf(this.prototype).constructor.template}this._template=Y}return this._template},
set:function(Y){this._template=Y}},
importPath:{configurable:!0,enumerable:!0,get:function(){if(!this.hasOwnProperty("_importPath")){var Y=this.importMeta;Y?this._importPath=FhG(Y.url):this._importPath=(Y=yV.import(this.is))&&Y.assetpath||Object.getPrototypeOf(this.prototype).constructor.importPath}return this._importPath}}});
return S});var acP=window.trustedTypes&&trustedTypes.createPolicy("polymer-html-literal",{createHTML:function(S){return S}}),jFd=function(S,p){fcc(S,p);
this.value=p.reduce(function(U,Y,L){return U+rnX(Y)+S[L+1]},S[0]).toString()},fcc;
jFd.prototype.toString=function(){return this.value};
_.CNt=function(S){var p=_.jO.apply(1,arguments);fcc(S,p);var U=document.createElement("template");p=p.reduce(function(Y,L,I){if(L instanceof HTMLTemplateElement)L=L.innerHTML;else if(L instanceof jFd)L=rnX(L);else throw Error("Cd`"+L);return Y+L+S[I+1]},S[0]);
acP&&(p=acP.createHTML(p));U.innerHTML=p;return U};
fcc=function(S,p){if(!Array.isArray(S)||!Array.isArray(S.raw)||p.length!==S.length-1)throw new TypeError("Dd");};var $r=v1(HTMLElement);var x0P=Ew(function(S){var p=v1(S);S=function(){var U=p.call(this)||this;U.__lastItems=null;U.__lastMulti=null;U.__selectedMap=null;return U};
_.r(S,p);S.prototype.__updateSelection=function(U,Y){var L=Y.path;L=="items"?(Y=Y.base||[],L=this.__lastItems,U!==this.__lastMulti&&this.clearSelection(),L&&(L=b6k(Y,L),this.__applySplices(L)),this.__lastItems=Y,this.__lastMulti=U):Y.path=="items.splices"?this.__applySplices(Y.value.indexSplices):(U=L.slice(6),Y=parseInt(U,10),U.indexOf(".")<0&&U==Y&&this.__deselectChangedIdx(Y))};
S.prototype.__applySplices=function(U){for(var Y=this,L=this.__selectedMap,I={},V=0;V<U.length;I={s$jscomp$108:void 0},V++){I.s$jscomp$108=U[V];L.forEach(function(z){return function(Q,J){Q<z.s$jscomp$108.index||(Q>=z.s$jscomp$108.index+z.s$jscomp$108.removed.length?L.set(J,Q+z.s$jscomp$108.addedCount-z.s$jscomp$108.removed.length):L.set(J,-1))}}(I));
for(var W=0;W<I.s$jscomp$108.addedCount;W++){var O=I.s$jscomp$108.index+W;L.has(this.items[O])&&L.set(this.items[O],O)}}this.__updateLinks();var D=0;L.forEach(function(z,Q){z<0?(Y.multi?Y.splice("selected",D,1):Y.selected=Y.selectedItem=null,L.delete(Q)):D++})};
S.prototype.__updateLinks=function(){var U=this;this.__dataLinkedPaths={};if(this.multi){var Y=0;this.__selectedMap.forEach(function(L){L>=0&&U.linkPaths("items."+L,"selected."+Y++)})}else this.__selectedMap.forEach(function(L){U.linkPaths("selected","items."+L);
U.linkPaths("selectedItem","items."+L)})};
S.prototype.clearSelection=function(){this.__dataLinkedPaths={};this.__selectedMap=new Map;this.selected=this.multi?[]:null;this.selectedItem=null};
S.prototype.isSelected=function(U){return this.__selectedMap.has(U)};
S.prototype.isIndexSelected=function(U){return this.isSelected(this.items[U])};
S.prototype.__deselectChangedIdx=function(U){var Y=this,L=this.__selectedIndexForItemIndex(U);if(L>=0){var I=0;this.__selectedMap.forEach(function(V,W){L==I++&&Y.deselect(W)})}};
S.prototype.__selectedIndexForItemIndex=function(U){if(U=this.__dataLinkedPaths["items."+U])return parseInt(U.slice(9),10)};
S.prototype.deselect=function(U){var Y=this.__selectedMap.get(U);if(Y>=0){this.__selectedMap.delete(U);var L;this.multi&&(L=this.__selectedIndexForItemIndex(Y));this.__updateLinks();this.multi?this.splice("selected",L,1):this.selected=this.selectedItem=null}};
S.prototype.deselectIndex=function(U){this.deselect(this.items[U])};
S.prototype.select=function(U){this.selectIndex(this.items.indexOf(U))};
S.prototype.selectIndex=function(U){var Y=this.items[U];this.isSelected(Y)?this.toggle&&this.deselectIndex(U):(this.multi||this.__selectedMap.clear(),this.__selectedMap.set(Y,U),this.__updateLinks(),this.multi?this.push("selected",Y):this.selected=this.selectedItem=Y)};
_.$u.Object.defineProperties(S,{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 S}),Euc=x0P($r),ia=function(){return Euc.apply(this,arguments)||this};
_.r(ia,Euc);_.$u.Object.defineProperties(ia,{is:{configurable:!0,enumerable:!0,get:function(){return"array-selector"}},
template:{configurable:!0,enumerable:!0,get:function(){return null}}});
customElements.define(ia.is,ia);var m0e=window.Polymer;window.Polymer=function(S){return window.Polymer._polymerFn(S)};
m0e&&Object.assign(Polymer,m0e);Polymer._polymerFn=function(){throw Error("Ed");};/*

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:Roq,resolveUrl:_.UR,pathFromUrl:FhG};Polymer.DomModule=yV;Polymer.Async={timeOut:_.xr,animationFrame:_.bT,idlePeriod:QHI,microTask:Pr};Polymer.dedupingMixin=Ew;Polymer.wrap=_.Dc;Polymer.PropertiesChanged=Jrl;Polymer.telemetry={instanceCount:yrI,incrementInstanceCount:function(){yrI++},
registrations:syN,register:eow,dumpRegistrations:function(){syN.forEach(_._regLog$$module$third_party$javascript$polymer$v2$polymer$lib$utils$telemetry)}};Polymer.PropertiesMixin=K$H;Polymer.CaseMap={dashToCamelCase:LZ,camelToDashCase:M0};Polymer.PropertyAccessors=Rkw;Polymer.TemplateStamp=sHI;Polymer.Path={isPath:IH,root:dV,isAncestor:ftk,isDescendant:VV,translate:TT,matches:CZE,normalize:Wr,split:xFe,get:OR,set:ELE,isDeep:IH};Polymer.Settings={useShadow:eF,useNativeCSSProperties:SRc,useNativeCustomElements:prQ,get rootPath(){return Icq},setRootPath:function(S){Icq=S},
get sanitizeDOMValue(){return zT},setSanitizeDOMValue:function(S){zT=S},
get passiveTouchGestures(){return leq},setPassiveTouchGestures:function(S){leq=S},
get strictTemplatePolicy(){return lN},setStrictTemplatePolicy:function(S){lN=S},
get allowTemplateFromDomModule(){return d0j},setAllowTemplateFromDomModule:function(S){d0j=S},
get legacyOptimizations(){return sR},setLegacyOptimizations:function(S){sR=S},
get syncInitialRender(){return VFE},setSyncInitialRender:function(S){VFE=S},
get legacyUndefined(){return nZ},setLegacyUndefined:function(S){nZ=S},
get legacyWarnings(){return wV},setLegacyWarnings:function(S){wV=S},
get orderedComputed(){return TVI},setOrderedComputed:function(S){TVI=S},
get fastDomIf(){return aq},setFastDomIf:function(S){aq=S},
get removeNestedTemplates(){return la},setRemoveNestedTemplates:function(S){la=S},
get suppressTemplateNotifications(){return fD},setSuppressTemplateNotifications:fD};Polymer.rootPath!==void 0&&(Icq=Polymer.rootPath);Polymer.sanitizeDOMValue!==void 0&&(zT=Polymer.sanitizeDOMValue);Polymer.passiveTouchGestures!==void 0&&(leq=Polymer.passiveTouchGestures);Polymer.strictTemplatePolicy!==void 0&&(lN=Polymer.strictTemplatePolicy);d0j=Polymer.allowTemplateFromDomModule!==void 0?Polymer.allowTemplateFromDomModule:!0;Polymer.legacyOptimizations!==void 0&&(sR=Polymer.legacyOptimizations);
Polymer.syncInitialRender!==void 0&&(VFE=Polymer.syncInitialRender);Polymer.legacyUndefined!==void 0&&(nZ=Polymer.legacyUndefined);Polymer.legacyWarnings!==void 0&&(wV=Polymer.legacyWarnings);Polymer.orderedComputed!==void 0&&(TVI=Polymer.orderedComputed);Polymer.fastDomIf!==void 0&&(aq=Polymer.fastDomIf);Polymer.removeNestedTemplates!==void 0&&(la=Polymer.removeNestedTemplates);Polymer.suppressTemplateNotifications!==void 0&&(fD=Polymer.suppressTemplateNotifications);
Object.defineProperty(Polymer,"sanitizeDOMValue",{get:function(){return zT},
set:function(S){zT=S}});Polymer.PropertyEffects=oq;Polymer.StyleGather={stylesFromModules:kyw,stylesFromModule:O6e,stylesFromTemplate:H6r,stylesFromModuleImports:zlN,cssFromModules:nOd,cssFromModule:QFX,cssFromTemplate:Jnq,cssFromModuleImports:function(S){return(S=yV.import(S))?_._cssFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather(S):""}};Polymer.ElementMixin=v1;Polymer.updateStyles=function(S){window.ShadyCSS&&window.ShadyCSS.styleDocument(S)};
Polymer.version="3.5.0";Polymer.ArraySplice={calculateSplices:b6k};Polymer.html=_.CNt;Polymer.htmlLiteral=function(S){return new jFd(S,_.jO.apply(1,arguments))};Polymer.Element=$r;Polymer.ArraySelectorMixin=x0P;Polymer.ArraySelector=ia;var oum=/(?:^|[;\s{]\s*)(--[\w-]*?)\s*:\s*(?:((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};{])+)|\{([^}]*)\}(?:(?=[;\s}])|$))/gi,vue=/(?:^|\W+)@apply\s*\(?([^);\n]*)\)?/gi,YpX=/@media\s(.*)/;var FLw=null,Rle=window.HTMLImports&&window.HTMLImports.whenReady||null,XGw;var $0j=null,NV=null,B1=function(){this.customStyles=[];this.enqueued=!1;P6q(function(){window.ShadyCSS.flushCustomStyles&&window.ShadyCSS.flushCustomStyles()})},iZt=function(S){!S.enqueued&&NV&&(S.enqueued=!0,P6q(NV))};
B1.prototype.addCustomStyle=function(S){S.__seenByShadyCSS||(S.__seenByShadyCSS=!0,this.customStyles.push(S),iZt(this))};
B1.prototype.getStyleForCustomStyle=function(S){if(S.__shadyCSSCachedStyle)return S.__shadyCSSCachedStyle;var p;S.getStyle?p=S.getStyle():p=S;return p};
B1.prototype.processStyles=function(){for(var S=this.customStyles,p=0;p<S.length;p++){var U=S[p];if(!U.__shadyCSSCachedStyle){var Y=this.getStyleForCustomStyle(U);Y&&(Y=Y.__appliedElement||Y,$0j&&$0j(Y),U.__shadyCSSCachedStyle=Y)}}return S};
B1.prototype.addCustomStyle=B1.prototype.addCustomStyle;B1.prototype.getStyleForCustomStyle=B1.prototype.getStyleForCustomStyle;B1.prototype.processStyles=B1.prototype.processStyles;Object.defineProperties(B1.prototype,{transformCallback:{get:function(){return $0j},
set:function(S){$0j=S}},
validateCallback:{get:function(){return NV},
set:function(S){var p=!1;NV||(p=!0);NV=S;p&&iZt(this)}}});var sFd=!(window.ShadyDOM&&window.ShadyDOM.inUse),Z6w,vr;window.ShadyCSS&&window.ShadyCSS.cssBuild!==void 0&&(vr=window.ShadyCSS.cssBuild);var NVd=!(!window.ShadyCSS||!window.ShadyCSS.disableRuntime);window.ShadyCSS&&window.ShadyCSS.nativeCss!==void 0?Z6w=window.ShadyCSS.nativeCss:window.ShadyCSS?(elw(window.ShadyCSS),window.ShadyCSS=void 0):elw(window.WebComponents&&window.WebComponents.flags);var Spw=Z6w;var BVQ=new B1;window.ShadyCSS||(window.ShadyCSS={prepareTemplate:function(){},
prepareTemplateDom:function(){},
prepareTemplateStyles:function(){},
styleSubtree:function(S,p){BVQ.processStyles();Gyr(S,p)},
styleElement:function(){BVQ.processStyles()},
styleDocument:function(S){BVQ.processStyles();Gyr(document.body,S)},
getComputedStyleValue:function(S,p){return hle(S,p)},
flushCustomStyles:function(){},
nativeCss:Spw,nativeShadow:sFd,cssBuild:vr,disableRuntime:NVd});window.ShadyCSS.CustomStyleInterface=BVQ;var qRm=window.ShadyCSS.CustomStyleInterface,qV=function(){var S=HTMLElement.call(this)||this;S._style=null;qRm.addCustomStyle(S);return S};
_.r(qV,HTMLElement);qV.prototype.getStyle=function(){if(this._style)return this._style;var S=this.querySelector("style");if(!S)return null;this._style=S;var p=S.getAttribute("include");p&&(S.removeAttribute("include"),S.textContent=nOd(p)+S.textContent);this.ownerDocument!==window.document&&window.document.head.appendChild(this);return this._style};
qV.prototype.getStyle=qV.prototype.getStyle;window.customElements.define("custom-style",qV);Polymer.CustomStyle=qV;var Ac=function(){this._timer=this._callback=this._asyncModule=null},tc,tFt;
Ac.prototype.setConfig=function(S,p){var U=this;this._asyncModule=S;this._callback=p;this._timer=this._asyncModule.run(function(){U._timer=null;tc.delete(U);U._callback()})};
Ac.prototype.cancel=function(){this.isActive()&&(Arj(this),tc.delete(this))};
var Arj=function(S){S.isActive()&&(S._asyncModule.cancel(S._timer),S._timer=null)};
Ac.prototype.flush=function(){this.isActive()&&(this.cancel(),this._callback())};
Ac.prototype.isActive=function(){return this._timer!=null};
_.c1=function(S,p,U){S instanceof Ac?Arj(S):S=new Ac;S.setConfig(p,U);return S};
tc=new Set;_.Sd=function(S){tc.add(S)};
tFt=function(){var S=!!tc.size;tc.forEach(function(p){try{p.flush()}catch(U){setTimeout(function(){throw U;})}});
return S};var uCq=typeof document.head.style.touchAction==="string",gOu=["mousedown","mousemove","mouseup","click"],oOe=[0,1,4,2],crI;try{crI=(new MouseEvent("test",{buttons:1})).buttons===1}catch(S){crI=!1}var mBG=crI,wGw=!1;(function(){try{var S=Object.defineProperty({},"passive",{get:function(){wGw=!0}});
window.addEventListener("test",null,S);window.removeEventListener("test",null,S)}catch(p){}})();
var feG=navigator.userAgent.match(/iP(?:[oa]d|hone)|Android/),C6w=[],S$I={button:!0,input:!0,keygen:!0,meter:!0,output:!0,textarea:!0,progress:!0,select:!0},UPk={button:!0,command:!0,fieldset:!0,input:!0,keygen:!0,optgroup:!0,option:!0,select:!0,textarea:!0},xBE=function(S){var p=S.sourceCapabilities;if(!p||p.firesTouchEvents)if(S.__polymerGesturesHandled={skip:!0},S.type==="click"){p=!1;for(var U=N8k(S),Y=0;Y<U.length;Y++){if(U[Y].nodeType===Node.ELEMENT_NODE)if(U[Y].localName==="label")C6w.push(U[Y]);
else if(S$I[U[Y].localName]){var L=U[Y];var I=Array.prototype.slice.call(L.labels||[]);if(!I.length){I=[];try{var V=L.getRootNode();if(L.id){var W=V.querySelectorAll("label[for = '"+L.id+"']");for(L=0;L<W.length;L++)I.push(W[L])}}catch(O){}}for(L=0;L<I.length;L++)p=p||C6w.indexOf(I[L])>-1}if(U[Y]===pvt)return}p||(S.preventDefault(),S.stopPropagation())}},pvt=null,pC=null,qKX=0,Anw=0,B8G=-1,tSR=!1;
document.addEventListener("touchend",function(S){pC||EOE(!0);pvt=N8k(S)[0];pC=_.c1(pC,_.xr.after(2500),function(){EOE();pC=pvt=null})},wGw?{passive:!0}:!1);
var N8k=window.ShadyDOM&&window.ShadyDOM.noPatch?window.ShadyDOM.composedPath:function(S){return S.composedPath&&S.composedPath()||[]},hr={},rV=[];
cnR({name:"downup",deps:["mousedown","touchstart","touchend"],flow:{start:["mousedown","touchstart"],end:["mouseup","touchend"]},emits:["down","up"],info:{movefn:null,upfn:null},reset:function(){jF(this.info)},
mousedown:function(S){if(bN(S)){var p=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(S),U=this;$Be(this.info,function(Y){bN(Y)||(Zc("up",p,Y),jF(U.info))},function(Y){bN(Y)&&Zc("up",p,Y);
jF(U.info)});
Zc("down",p,S)}},
touchstart:function(S){Zc("down",_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(S),S.changedTouches[0],S)},
touchend:function(S){Zc("up",_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(S),S.changedTouches[0],S)}});
cnR({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(S){this.moves.length>2&&this.moves.shift();this.moves.push(S)},
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;jF(this.info)},
mousedown:function(S){if(bN(S)){var p=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(S),U=this,Y=function(L){var I=L.clientX,V=L.clientY;SEX(U.info,I,V)&&(U.info.state=U.info.started?L.type==="mouseup"?"end":"track":"start",U.info.state==="start"&&GT("tap"),U.info.addMove({x:I,y:V}),bN(L)||(U.info.state="end",jF(U.info)),p&&pIR(U.info,p,L),U.info.started=!0)};
$Be(this.info,Y,function(L){U.info.started&&Y(L);jF(U.info)});
this.info.x=S.clientX;this.info.y=S.clientY}},
touchstart:function(S){S=S.changedTouches[0];this.info.x=S.clientX;this.info.y=S.clientY},
touchmove:function(S){var p=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(S);S=S.changedTouches[0];var U=S.clientX,Y=S.clientY;SEX(this.info,U,Y)&&(this.info.state==="start"&&GT("tap"),this.info.addMove({x:U,y:Y}),pIR(this.info,p,S),this.info.state="track",this.info.started=!0)},
touchend:function(S){var p=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(S);S=S.changedTouches[0];this.info.started&&(this.info.state="end",this.info.addMove({x:S.clientX,y:S.clientY}),pIR(this.info,p,S))}});
cnR({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(S){bN(S)&&(this.info.x=S.clientX,this.info.y=S.clientY)},
click:function(S){bN(S)&&YEw(this.info,S)},
touchstart:function(S){S=S.changedTouches[0];this.info.x=S.clientX;this.info.y=S.clientY},
touchend:function(S){YEw(this.info,S.changedTouches[0],S)}});var UUj=Ew(function(S){var p=function(){return S.apply(this,arguments)||this};
_.r(p,S);p.prototype._addEventListenerToNode=function(U,Y,L){RH(U,Y,L)||S.prototype._addEventListenerToNode.call(this,U,Y,L)};
p.prototype._removeEventListenerFromNode=function(U,Y,L){Fj(U,Y,L)||S.prototype._removeEventListenerFromNode.call(this,U,Y,L)};
return p});var Ub=Ew(function(S){var p=function(){return S.apply(this,arguments)||this};
_.r(p,S);p.prototype._shouldPropertyChange=function(U,Y,L){return LUN(this,U,Y,L,!0)};
return p}),Y$P=Ew(function(S){var p=function(){return S.apply(this,arguments)||this};
_.r(p,S);p.prototype._shouldPropertyChange=function(U,Y,L){return LUN(this,U,Y,L,this.mutableData)};
_.$u.Object.defineProperties(p,{properties:{configurable:!0,enumerable:!0,get:function(){return{mutableData:Boolean}}}});
return p});
Ub._mutablePropertyChange=LUN;var MJG=!1;var Lat=UUj(Y$P(oq(HTMLElement))),Yi=function(){var S=Lat.call(this)||this;if(lN)throw Error("Fd");S.root=null;S.$=null;S.__children=null;return S};
_.r(Yi,Lat);_.M=Yi.prototype;_.M.attributeChangedCallback=function(){this.mutableData=!0};
_.M.connectedCallback=function(){Ipu()||(this.style.display="none");this.render()};
_.M.disconnectedCallback=function(){this.__removeChildren()};
_.M.__insertChildren=function(){(0,_.Dc)((0,_.Dc)(this).parentNode).insertBefore(this.root,this)};
_.M.__removeChildren=function(){if(this.__children)for(var S=0;S<this.__children.length;S++)this.root.appendChild(this.__children[S])};
_.M.render=function(){var S=this;if(!this.__children){var p=p||this.querySelector("template");if(!p){var U=new MutationObserver(function(){if(p=S.querySelector("template"))U.disconnect(),S.render();else throw Error("Gd");});
U.observe(this,{childList:!0});return}this.root=this._stampTemplate(p);this.$=this.root.$;this.__children=[];for(var Y=this.root.firstChild;Y;Y=Y.nextSibling)this.__children[this.__children.length]=Y;this._enableProperties()}this.__insertChildren();this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0}))};
_.$u.Object.defineProperties(Yi,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return["mutable-data"]}}});
customElements.define("dom-bind",Yi);Polymer.Debouncer=Ac;Polymer.Gestures={gestures:hr,recognizers:rV,deepTargetFind:i6E,addListener:RH,removeListener:Fj,register:cnR,setTouchAction:_.Xj,prevent:GT,resetMouseCanceller:function(){pC&&pC.flush()},
findOriginalTarget:_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures,add:RH,remove:Fj};Polymer.GestureEventListeners=UUj;Polymer.MutableData=Ub;Polymer.OptionalMutableData=Y$P;Polymer.DomBind=Yi;_.LC=function(){do{var S=window.ShadyDOM&&ShadyDOM.flush();window.ShadyCSS&&window.ShadyCSS.ScopingShim&&window.ShadyCSS.ScopingShim.flush();var p=tFt()}while(S||p)};var dPe=null;VJG.prototype=Object.create(HTMLTemplateElement.prototype,{constructor:{value:VJG,writable:!0}});var QAw=oq(VJG),zjw=Ub(QAw),MmP=oq(function(){}),gV=function(S){var p=MmP.call(this)||this;
p._configureProperties(S);p.root=p._stampTemplate(p.__dataHost);var U=[];p.children=U;for(var Y=p.root.firstChild;Y;Y=Y.nextSibling)U.push(Y),Y.__templatizeInstance=p;p.__templatizeOwner&&p.__templatizeOwner.__hideTemplateChildren__&&p._showHideChildren(!0);U=p.__templatizeOptions;(S&&U.instanceProps||!U.instanceProps)&&p._enableProperties();return p};
_.r(gV,MmP);_.M=gV.prototype;_.M._configureProperties=function(S){if(this.__templatizeOptions.forwardHostProp)for(var p in this.__hostProps)this._setPendingProperty(p,this.__dataHost["_host_"+p]);for(var U in S)this._setPendingProperty(U,S[U])};
_.M.forwardHostProp=function(S,p){this._setPendingPropertyOrPath(S,p,!1,!0)&&this.__dataHost._enqueueClient(this)};
_.M._addEventListenerToNode=function(S,p,U){var Y=this;if(this._methodHost&&this.__templatizeOptions.parentModel)this._methodHost._addEventListenerToNode(S,p,function(I){I.model=Y;U(I)});
else{var L=this.__dataHost.__dataHost;L&&L._addEventListenerToNode(S,p,U)}};
_.M._showHideChildren=function(S){WUk(S,this.children)};
_.M._setUnmanagedPropertyToNode=function(S,p,U){S.__hideTemplateChildren__&&S.nodeType==Node.TEXT_NODE&&p=="textContent"?S.__polymerTextContent__=U:MmP.prototype._setUnmanagedPropertyToNode.call(this,S,p,U)};
_.M.dispatchEvent=function(){return!0};
_.$u.Object.defineProperties(gV.prototype,{parentModel:{configurable:!0,enumerable:!0,get:function(){var S=this.__parentModel;if(!S){var p;S=this;do S=S.__dataHost.__dataHost;while((p=S.__templatizeOptions)&&!p.parentModel);this.__parentModel=S}return S}}});
var khq=Ub(gV);var MD=function(){var S=$r.call(this)||this;S.__renderDebouncer=null;S._lastIf=!1;S.__hideTemplateChildren__=!1;return S};
_.r(MD,$r);_.M=MD.prototype;_.M.__debounceRender=function(){var S=this;this.__renderDebouncer=_.c1(this.__renderDebouncer,Pr,function(){return S.__render()});
_.Sd(this.__renderDebouncer)};
_.M.disconnectedCallback=function(){$r.prototype.disconnectedCallback.call(this);var S=(0,_.Dc)(this).parentNode;S&&(S.nodeType!=Node.DOCUMENT_FRAGMENT_NODE||(0,_.Dc)(S).host)||this.__teardownInstance()};
_.M.connectedCallback=function(){$r.prototype.connectedCallback.call(this);Ipu()||(this.style.display="none");this.if&&this.__debounceRender()};
_.M.__ensureTemplate=function(){var S=this;if(!this.__template){var p=this._templateInfo?this:(0,_.Dc)(this).querySelector("template");if(!p){var U=new MutationObserver(function(){if((0,_.Dc)(S).querySelector("template"))U.disconnect(),S.__render();else throw Error("Jd");});
U.observe(this,{childList:!0});return!1}this.__template=p}return!0};
_.M.__ensureInstance=function(){var S=(0,_.Dc)(this).parentNode;if(this.__hasInstance()){var p=this.__getInstanceNodes();if(p&&p.length&&(0,_.Dc)(this).previousSibling!==p[p.length-1])for(var U=0,Y=void 0;U<p.length&&(Y=p[U]);U++)(0,_.Dc)(S).insertBefore(Y,this)}else{if(!S||!this.__ensureTemplate())return!1;this.__createAndInsertInstance(S)}return!0};
_.M.render=function(){_.LC()};
_.M.__render=function(){if(this.if){if(!this.__ensureInstance())return}else this.restamp&&this.__teardownInstance();this._showHideChildren();fD&&!this.notifyDomChange||this.if==this._lastIf||(this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0})),this._lastIf=this.if)};
_.M.__hasInstance=function(){};
_.M.__getInstanceNodes=function(){};
_.M.__createAndInsertInstance=function(){};
_.M.__teardownInstance=function(){};
_.M._showHideChildren=function(){};
_.$u.Object.defineProperties(MD,{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:MD.prototype.__debounceRender},restamp:{type:Boolean,observer:MD.prototype.__debounceRender},notifyDomChange:{type:Boolean}}}}});
var ILt=function(){var S=MD.call(this)||this;S.__instance=null;S.__syncInfo=null;return S};
_.r(ILt,MD);_.M=ILt.prototype;_.M.__hasInstance=function(){return!!this.__instance};
_.M.__getInstanceNodes=function(){return this.__instance.templateInfo.childNodes};
_.M.__createAndInsertInstance=function(S){var p=this,U=this.__dataHost||this;if(lN&&!this.__dataHost)throw Error("Hd");var Y=U._bindTemplate(this.__template,!0);Y.runEffects=function(L,I,V){var W=p.__syncInfo;if(p.if)W&&(p.__syncInfo=null,p._showHideChildren(),I=Object.assign(W.changedProps,I)),L(I,V);else if(p.__instance)if(W||(W=p.__syncInfo={runEffects:L,changedProps:{}}),V)for(var O in I)L=dV(O),W.changedProps[L]=p.__dataHost[L];else Object.assign(W.changedProps,I)};
this.__instance=U._stampTemplate(this.__template,Y);(0,_.Dc)(S).insertBefore(this.__instance,this)};
_.M.__syncHostProperties=function(){var S=this.__syncInfo;S&&(this.__syncInfo=null,S.runEffects(S.changedProps,!1))};
_.M.__teardownInstance=function(){var S=this.__dataHost||this;this.__instance&&(S._removeBoundDom(this.__instance),this.__syncInfo=this.__instance=null)};
_.M._showHideChildren=function(){var S=this.__hideTemplateChildren__||!this.if;this.__instance&&!!this.__instance.__hidden!==S&&(this.__instance.__hidden=S,WUk(S,this.__instance.templateInfo.childNodes));S||this.__syncHostProperties()};
var dUm=function(){var S=MD.call(this)||this;S.__ctor=null;S.__instance=null;S.__invalidProps=null;return S};
_.r(dUm,MD);_.M=dUm.prototype;_.M.__hasInstance=function(){return!!this.__instance};
_.M.__getInstanceNodes=function(){return this.__instance.children};
_.M.__createAndInsertInstance=function(S){this.__ctor||(this.__ctor=uN(this.__template,this,{mutableData:!0,forwardHostProp:function(p,U){this.__instance&&(this.if?this.__instance.forwardHostProp(p,U):(this.__invalidProps=this.__invalidProps||Object.create(null),this.__invalidProps[dV(p)]=!0))}}));
this.__instance=new this.__ctor;(0,_.Dc)(S).insertBefore(this.__instance.root,this)};
_.M.__teardownInstance=function(){if(this.__instance){var S=this.__instance.children;if(S&&S.length){var p=(0,_.Dc)(S[0]).parentNode;if(p){p=(0,_.Dc)(p);for(var U=0,Y=void 0;U<S.length&&(Y=S[U]);U++)p.removeChild(Y)}}this.__instance=this.__invalidProps=null}};
_.M.__syncHostProperties=function(){var S=this.__invalidProps;if(S){this.__invalidProps=null;for(var p in S)this.__instance._setPendingProperty(p,this.__dataHost[p]);this.__instance._flushProperties()}};
_.M._showHideChildren=function(){var S=this.__hideTemplateChildren__||!this.if;this.__instance&&!!this.__instance.__hidden!==S&&(this.__instance.__hidden=S,this.__instance._showHideChildren(S));S||this.__syncHostProperties()};
_.G4=aq?ILt:dUm;customElements.define(_.G4.is,_.G4);Polymer.enqueueDebouncer=_.Sd;Polymer.flush=_.LC;Polymer.Templatize={templatize:uN,modelForElement:jAq};Polymer.TemplateInstanceBase=gV;Polymer.DomIf=_.G4;var Vmc=Y$P($r),r9=function(){var S=Vmc.call(this)||this;S.__instances=[];S.__renderDebouncer=null;S.__itemsIdxToInstIdx={};S.__chunkCount=null;S.__renderStartTime=null;S.__itemsArrayChanged=!1;S.__shouldMeasureChunk=!1;S.__shouldContinueChunking=!1;S.__chunkingId=0;S.__sortFn=null;S.__filterFn=null;S.__observePaths=null;S.__ctor=null;S.__isDetached=!0;S.template=null;return S};
_.r(r9,Vmc);_.M=r9.prototype;_.M.disconnectedCallback=function(){Vmc.prototype.disconnectedCallback.call(this);this.__isDetached=!0;for(var S=0;S<this.__instances.length;S++)this.__detachInstance(S);this.__chunkingId&&cancelAnimationFrame(this.__chunkingId)};
_.M.connectedCallback=function(){Vmc.prototype.connectedCallback.call(this);Ipu()||(this.style.display="none");if(this.__isDetached){this.__isDetached=!1;for(var S=(0,_.Dc)((0,_.Dc)(this).parentNode),p=0;p<this.__instances.length;p++)this.__attachInstance(p,S);this.__chunkingId&&this.__render()}};
_.M.__ensureTemplatized=function(){var S=this;if(!this.__ctor){var p=this.template=this._templateInfo?this:this.querySelector("template");if(!p){var U=new MutationObserver(function(){if(S.querySelector("template"))U.disconnect(),S.__render();else throw Error("Kd");});
U.observe(this,{childList:!0});return!1}var Y={};Y[this.as]=!0;Y[this.indexAs]=!0;Y[this.itemsIndexAs]=!0;this.__ctor=uN(p,this,{mutableData:this.mutableData,parentModel:!0,instanceProps:Y,forwardHostProp:function(L,I){for(var V=this.__instances,W=0,O=void 0;W<V.length&&(O=V[W]);W++)O.forwardHostProp(L,I)},
notifyInstanceProp:function(L,I,V){CZE(this.as,I)&&(L=L[this.itemsIndexAs],I==this.as&&(this.items[L]=V),I=TT(this.as,"items."+L,I),this.notifyPath(I,V))}})}return!0};
_.M.__getMethodHost=function(){return this.__dataHost._methodHost||this.__dataHost};
_.M.__functionFromPropertyValue=function(S){if(typeof S==="string"){var p=this.__getMethodHost();return function(){return p[S].apply(p,arguments)}}return S};
_.M.__sortChanged=function(S){this.__sortFn=this.__functionFromPropertyValue(S);this.items&&this.__debounceRender(this.__render)};
_.M.__filterChanged=function(S){this.__filterFn=this.__functionFromPropertyValue(S);this.items&&this.__debounceRender(this.__render)};
_.M.__computeFrameTime=function(S){return Math.ceil(1E3/S)};
_.M.__observeChanged=function(){this.__observePaths=this.observe&&this.observe.replace(".*",".").split(" ")};
_.M.__handleObservedPaths=function(S){if(this.__sortFn||this.__filterFn)if(!S)this.__debounceRender(this.__render,this.delay);else if(this.__observePaths)for(var p=this.__observePaths,U=0;U<p.length;U++)S.indexOf(p[U])===0&&this.__debounceRender(this.__render,this.delay)};
_.M.__itemsChanged=function(S){this.items&&!Array.isArray(this.items)&&console.warn("dom-repeat expected array for `items`, found",this.items);this.__handleItemPath(S.path,S.value)||(S.path==="items"&&(this.__itemsArrayChanged=!0),this.__debounceRender(this.__render))};
_.M.__debounceRender=function(S,p){p=p===void 0?0:p;this.__renderDebouncer=_.c1(this.__renderDebouncer,p>0?_.xr.after(p):Pr,S.bind(this));_.Sd(this.__renderDebouncer)};
_.M.render=function(){this.__debounceRender(this.__render);_.LC()};
_.M.__render=function(){var S=this;if(this.__ensureTemplatized()){var p=this.items||[],U=this.__sortAndFilterItems(p),Y=this.__calculateLimit(U.length);this.__updateInstances(p,Y,U);this.initialCount&&(this.__shouldMeasureChunk||this.__shouldContinueChunking)&&(cancelAnimationFrame(this.__chunkingId),this.__chunkingId=requestAnimationFrame(function(){S.__chunkingId=null;S.__continueChunking()}));
this._setRenderedItemCount(this.__instances.length);fD&&!this.notifyDomChange||this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0}))}};
_.M.__sortAndFilterItems=function(S){for(var p=this,U=Array(S.length),Y=0;Y<S.length;Y++)U[Y]=Y;this.__filterFn&&(U=U.filter(function(L,I,V){return p.__filterFn(S[L],I,V)}));
this.__sortFn&&U.sort(function(L,I){return p.__sortFn(S[L],S[I])});
return U};
_.M.__calculateLimit=function(S){var p=S,U=this.__instances.length;if(this.initialCount){var Y;!this.__chunkCount||this.__itemsArrayChanged&&!this.reuseChunkedInstances?(p=Math.min(S,this.initialCount),this.__chunkCount=(Y=Math.max(p-U,0))||1):(Y=Math.min(Math.max(S-U,0),this.__chunkCount),p=Math.min(U+Y,S));this.__shouldMeasureChunk=Y===this.__chunkCount;this.__shouldContinueChunking=p<S;this.__renderStartTime=performance.now()}this.__itemsArrayChanged=!1;return p};
_.M.__continueChunking=function(){if(this.__shouldMeasureChunk){var S=performance.now()-this.__renderStartTime;this.__chunkCount=Math.round(this._targetFrameTime/S*this.__chunkCount)||1}this.__shouldContinueChunking&&this.__debounceRender(this.__render)};
_.M.__updateInstances=function(S,p,U){var Y=this.__itemsIdxToInstIdx={},L;for(L=0;L<p;L++){var I=this.__instances[L],V=U[L],W=S[V];Y[V]=L;I?(I._setPendingProperty(this.as,W),I._setPendingProperty(this.indexAs,L),I._setPendingProperty(this.itemsIndexAs,V),I._flushProperties()):this.__insertInstance(W,L,V)}for(S=this.__instances.length-1;S>=L;S--)this.__detachAndRemoveInstance(S)};
_.M.__detachInstance=function(S){S=this.__instances[S];for(var p=(0,_.Dc)(S.root),U=0;U<S.children.length;U++)p.appendChild(S.children[U]);return S};
_.M.__attachInstance=function(S,p){p.insertBefore(this.__instances[S].root,this)};
_.M.__detachAndRemoveInstance=function(S){this.__detachInstance(S);this.__instances.splice(S,1)};
_.M.__stampInstance=function(S,p,U){var Y={};Y[this.as]=S;Y[this.indexAs]=p;Y[this.itemsIndexAs]=U;return new this.__ctor(Y)};
_.M.__insertInstance=function(S,p,U){S=this.__stampInstance(S,p,U);U=(U=this.__instances[p+1])?U.children[0]:this;(0,_.Dc)((0,_.Dc)(this).parentNode).insertBefore(S.root,U);return this.__instances[p]=S};
_.M._showHideChildren=function(S){for(var p=0;p<this.__instances.length;p++)this.__instances[p]._showHideChildren(S)};
_.M.__handleItemPath=function(S,p){var U=S.slice(6),Y=U.indexOf(".");S=Y<0?U:U.substring(0,Y);if(S==parseInt(S,10)){U=Y<0?"":U.substring(Y+1);this.__handleObservedPaths(U);if(S=this.__instances[this.__itemsIdxToInstIdx[S]])S._setPendingPropertyOrPath(this.as+(U?"."+U:""),p,!1,!0),S._flushProperties();return!0}};
_.M.itemForElement=function(S){return(S=this.modelForElement(S))&&S[this.as]};
_.M.indexForElement=function(S){return(S=this.modelForElement(S))&&S[this.indexAs]};
_.M.modelForElement=function(S){return jAq(this.template,S)};
_.$u.Object.defineProperties(r9,{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:r9.prototype.__sortChanged},filter:{type:Function,observer:r9.prototype.__filterChanged},observe:{type:String,observer:r9.prototype.__observeChanged},delay:Number,renderedItemCount:{type:Number,notify:!fD,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.*)"]}}});
r9.prototype._setRenderedItemCount=function(){};
customElements.define(r9.is,r9);Polymer.DomRepeat=r9;var Tnt=function(S,p){var U=this;this._nativeChildrenObserver=this._shadyChildrenObserver=null;this._connected=!1;this._target=S;this.callback=p;this._effectiveNodes=[];this._observer=null;this._scheduled=!1;this._boundSchedule=function(){U._schedule()};
this.connect();this._schedule()},Wal=function(S){var p=(0,_.Dc)(S);
if(aH(S))return p.assignedNodes({flatten:!0});S=[];for(var U=0;U<p.childNodes.length;U++){var Y=p.childNodes[U];aH(Y)?S.push.apply(S,_.jo((0,_.Dc)(Y).assignedNodes({flatten:!0}))):S.push(Y)}return S};
_.M=Tnt.prototype;_.M.connect=function(){var S=this;aH(this._target)?this._listenSlots([this._target]):(0,_.Dc)(this._target).children&&(this._listenSlots((0,_.Dc)(this._target).children),window.ShadyDOM?this._shadyChildrenObserver=window.ShadyDOM.observeChildren(this._target,function(p){S._processMutations(p)}):(this._nativeChildrenObserver=new MutationObserver(function(p){S._processMutations(p)}),this._nativeChildrenObserver.observe(this._target,{childList:!0})));
this._connected=!0};
_.M.disconnect=function(){aH(this._target)?this._unlistenSlots([this._target]):(0,_.Dc)(this._target).children&&(this._unlistenSlots((0,_.Dc)(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};
_.M._schedule=function(){var S=this;this._scheduled||(this._scheduled=!0,Pr.run(function(){return S.flush()}))};
_.M._processMutations=function(S){this._processSlotMutations(S);this.flush()};
_.M._processSlotMutations=function(S){if(S)for(var p=0;p<S.length;p++){var U=S[p];U.addedNodes&&this._listenSlots(U.addedNodes);U.removedNodes&&this._unlistenSlots(U.removedNodes)}};
_.M.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 S={target:this._target,addedNodes:[],removedNodes:[]},p=Wal(this._target),U=b6k(p,this._effectiveNodes),Y=0,L=void 0;Y<U.length&&(L=U[Y]);Y++)for(var I=0,V=void 0;I<L.removed.length&&(V=L.removed[I]);I++)S.removedNodes.push(V);
Y=0;for(L=void 0;Y<U.length&&(L=U[Y]);Y++)for(I=L.index;I<L.index+L.addedCount;I++)S.addedNodes.push(p[I]);this._effectiveNodes=p;p=!1;if(S.addedNodes.length||S.removedNodes.length)p=!0,this.callback.call(this._target,S);return p};
_.M._listenSlots=function(S){for(var p=0;p<S.length;p++){var U=S[p];aH(U)&&U.addEventListener("slotchange",this._boundSchedule)}};
_.M._unlistenSlots=function(S){for(var p=0;p<S.length;p++){var U=S[p];aH(U)&&U.removeEventListener("slotchange",this._boundSchedule)}};var IX=Element.prototype,O9H=IX.matches||IX.matchesSelector||IX.mozMatchesSelector||IX.msMatchesSelector||IX.oMatchesSelector||IX.webkitMatchesSelector,k0H=function(S,p){return O9H.call(S,p)},fZ=function(S){window.ShadyDOM&&window.ShadyDOM.inUse&&window.ShadyDOM.patch(S);
this.node=S},Q9j;
_.M=fZ.prototype;_.M.observeNodes=function(S){return new Tnt(this.node,S)};
_.M.unobserveNodes=function(S){S.disconnect()};
_.M.notifyObserver=function(){};
_.M.deepContains=function(S){if((0,_.Dc)(this.node).contains(S))return!0;var p=S;for(S=S.ownerDocument;p&&p!==S&&p!==this.node;)p=(0,_.Dc)(p).parentNode||(0,_.Dc)(p).host;return p===this.node};
_.M.getOwnerRoot=function(){return(0,_.Dc)(this.node).getRootNode()};
_.M.getDistributedNodes=function(){return this.node.localName==="slot"?(0,_.Dc)(this.node).assignedNodes({flatten:!0}):[]};
_.M.getDestinationInsertionPoints=function(){for(var S=[],p=(0,_.Dc)(this.node).assignedSlot;p;)S.push(p),p=(0,_.Dc)(p).assignedSlot;return S};
_.M.importNode=function(S,p){return(0,_.Dc)(this.node instanceof Document?this.node:this.node.ownerDocument).importNode(S,p)};
_.M.getEffectiveChildNodes=function(){return Wal(this.node)};
_.M.queryDistributedElements=function(S){for(var p=this.getEffectiveChildNodes(),U=[],Y=0,L=p.length,I=void 0;Y<L&&(I=p[Y]);Y++)I.nodeType===Node.ELEMENT_NODE&&k0H(I,S)&&U.push(I);return U};
_.$u.Object.defineProperties(fZ.prototype,{activeElement:{configurable:!0,enumerable:!0,get:function(){var S=this.node;return S._activeElement!==void 0?S._activeElement:S.activeElement}}});
var dP=function(S){this.event=S};
_.$u.Object.defineProperties(dP.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 H9P=fZ;if(window.ShadyDOM&&window.ShadyDOM.inUse&&window.ShadyDOM.noPatch&&window.ShadyDOM.Wrapper){var DUq=window.ShadyDOM.Wrapper,z0t=function(){return DUq.apply(this,arguments)||this};
_.r(z0t,DUq);Object.getOwnPropertyNames(fZ.prototype).forEach(function(S){S!="activeElement"&&S!="constructor"&&(z0t.prototype[S]=fZ.prototype[S])});
GhG(z0t.prototype,["classList"]);H9P=z0t;Object.defineProperties(dP.prototype,{localTarget:{get:function(){var S=this.event.currentTarget;S=S&&_.K9(S).getOwnerRoot();for(var p=this.path,U=0;U<p.length;U++){var Y=p[U];if(_.K9(Y).getOwnerRoot()===S)return Y}},
configurable:!0},path:{get:function(){return window.ShadyDOM.composedPath(this.event)},
configurable:!0}})}else rlR(),GhG(fZ.prototype,"parentNode firstChild lastChild nextSibling previousSibling firstElementChild lastElementChild nextElementSibling previousElementSibling childNodes children classList shadowRoot".split(" ")),hjr();Q9j=H9P;_.K9=function(S){S=S||document;if(S instanceof H9P)return S;if(S instanceof dP)return S;var p=S.__domApi;p||(S instanceof Event?p=new dP(S):p=new H9P(S),S.__domApi=p);return p};var nnd=/:host\(:dir\((ltr|rtl)\)\)/g,J8H=/([\s\w-#\.\[\]\*]*):dir\((ltr|rtl)\)/g,y8l=/:dir\((?:ltr|rtl)\)/,Kam=!(!window.ShadyDOM||!window.ShadyDOM.inUse),xu=[],Vq=null,CZ="",b9m=Ew(function(S){Kam||Vq||(CZ=document.documentElement.getAttribute("dir"),Vq=new MutationObserver(Rjw),Vq.observe(document.documentElement,{attributes:!0,attributeFilter:["dir"]}));var p=Rkw(S);S=function(){var U=p.call(this)||this;U.__autoDirOptOut=!1;return U};
_.r(S,p);S._processStyleText=function(U,Y){U=p._processStyleText.call(this,U,Y);!Kam&&y8l.test(U)&&(U=this._replaceDirInCssText(U),this.__activateDir=!0);return U};
S._replaceDirInCssText=function(U){U=U.replace(nnd,':host([dir="$1"])');return U=U.replace(J8H,':host([dir="$2"]) $1')};
S.prototype.ready=function(){p.prototype.ready.call(this);this.__autoDirOptOut=this.hasAttribute("dir")};
S.prototype.connectedCallback=function(){p.prototype.connectedCallback&&p.prototype.connectedCallback.call(this);this.constructor.__activateDir&&(Vq&&Vq.takeRecords().length&&Rjw(),xu.push(this),this.__autoDirOptOut||this.setAttribute("dir",CZ))};
S.prototype.disconnectedCallback=function(){p.prototype.disconnectedCallback&&p.prototype.disconnectedCallback.call(this);if(this.constructor.__activateDir){var U=xu.indexOf(this);U>-1&&xu.splice(U,1)}};
S.__activateDir=!1;return S});var j9P=function(S){for(;S;){var p=Object.getOwnPropertyDescriptor(S,"observedAttributes");if(p)return p.get;S=Object.getPrototypeOf(S.prototype).constructor}return function(){return[]}};
Ew(function(S){var p=v1(S),U=j9P(p);S=function(){return p.call(this)||this};
_.r(S,p);S.prototype._initializeProperties=function(){this.hasAttribute("disable-upgrade")?this.__isUpgradeDisabled=!0:p.prototype._initializeProperties.call(this)};
S.prototype._enableProperties=function(){this.__isUpgradeDisabled||p.prototype._enableProperties.call(this)};
S.prototype._canApplyPropertyDefault=function(Y){return p.prototype._canApplyPropertyDefault.call(this,Y)&&!(this.__isUpgradeDisabled&&this._isPropertyPending(Y))};
S.prototype.attributeChangedCallback=function(Y,L,I,V){Y=="disable-upgrade"?this.__isUpgradeDisabled&&I==null&&(p.prototype._initializeProperties.call(this),this.__isUpgradeDisabled=!1,(0,_.Dc)(this).isConnected&&p.prototype.connectedCallback.call(this)):p.prototype.attributeChangedCallback.call(this,Y,L,I,V)};
S.prototype.connectedCallback=function(){this.__isUpgradeDisabled||p.prototype.connectedCallback.call(this)};
S.prototype.disconnectedCallback=function(){this.__isUpgradeDisabled||p.prototype.disconnectedCallback.call(this)};
_.$u.Object.defineProperties(S,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return U.call(this).concat("disable-upgrade")}}});
return S});var ER=!1,XIk=[],m$=[];var ejX=window.ShadyDOM,g9e=window.ShadyCSS;window.WebComponents?window.addEventListener("WebComponentsReady",wIw):document.readyState==="interactive"||document.readyState==="complete"?wIw():window.addEventListener("DOMContentLoaded",wIw);var fpe=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=""},lpR=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//gim,ape=/@import[^;]*;/gim,v9R=/(?:^[^;\-\s}]+)?--[^;{}]*?:[^{};]*?(?:[;\n]|$)/gim,$PN=/(?:^[^;\-\s}]+)?--[^;{}]*?:[^{};]*?{[^}]*?}(?:[;\n]|$)?/gim,iJu=/@apply\s*\(?[^);]*\)?\s*(?:[;\n]|$)?/gim,NbG=/[^;:]*?:[^;]*?var\([^;]*\)(?:[;\n]|$)?/gim,mPR=/^@[^\s]*keyframes/,
E9G=/\s+/g;var BbE={};var tJq=Promise.resolve();var r8c=new Set;var G0H=/;\s*/m,h0w=/^\s*(initial)|(inherit)\s*$/,R0t=/\s*!important/,Fae=function(){this._map={}};
Fae.prototype.set=function(S,p){S=S.trim();this._map[S]={properties:p,dependants:{}}};
Fae.prototype.get=function(S){S=S.trim();return this._map[S]||null};
var Xve=null,Tx=function(){this._measureElement=this._currentElement=null;this._map=new Fae};
_.M=Tx.prototype;_.M.detectMixin=function(S){S=vue.test(S)||oum.test(S);vue.lastIndex=0;oum.lastIndex=0;return S};
_.M.transformTemplate=function(S,p){if(S._gatheredStyle===void 0){var U=[];for(var Y=S.content.querySelectorAll("style"),L=0;L<Y.length;L++){var I=Y[L];if(I.hasAttribute("shady-unscoped")){if(!sFd){var V=I.textContent;if(!r8c.has(V)){r8c.add(V);var W=document.createElement("style");W.setAttribute("shady-unscoped","");W.textContent=V;document.head.appendChild(W)}I.parentNode.removeChild(I)}}else U.push(I.textContent),I.parentNode.removeChild(I)}(U=U.join("").trim())?(Y=document.createElement("style"),
Y.textContent=U,S.content.insertBefore(Y,S.content.firstChild),U=Y):U=null;S._gatheredStyle=U}return(S=S._gatheredStyle)?this.JSC$9172_transformStyle(S,p):null};
_.M.JSC$9172_transformStyle=function(S,p){p=p===void 0?"":p;var U=U_e(S);this.transformRules(U,p);S.textContent=pOG(U);return U};
_.M.transformCustomStyle=function(S){var p=this,U=U_e(S);L6d(U,function(Y){Y.selector===":root"&&(Y.selector="html");p.transformRule(Y)});
S.textContent=pOG(U);return U};
_.M.transformRules=function(S,p){var U=this;this._currentElement=p;L6d(S,function(Y){U.transformRule(Y)});
this._currentElement=null};
_.M.transformRule=function(S){S.cssText=PLm(this,S.parsedCssText,S);S.selector===":root"&&(S.selector=":host > *")};
var PLm=function(S,p,U){p=p.replace(oum,function(Y,L,I,V){return S._produceCssProperties(Y,L,I,V,U)});
return S._consumeCssProperties(p,U)};
_.M=Tx.prototype;_.M._getInitialValueForProperty=function(S){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(S)};
_.M._fallbacksFromPreviousRules=function(S){for(var p=this,U=S;U.parent;)U=U.parent;var Y={},L=!1;L6d(U,function(I){(L=L||I===S)||I.selector===S.selector&&Object.assign(Y,p._cssTextToMap(I.parsedCssText))});
return Y};
_.M._consumeCssProperties=function(S,p){for(var U;U=vue.exec(S);){var Y=U[0],L=U[1];U=U.index;var I=U+Y.indexOf("@apply"),V=U+Y.length;Y=S.slice(0,I);S=S.slice(V);I=p?this._fallbacksFromPreviousRules(p):{};Object.assign(I,this._cssTextToMap(Y));L=this._atApplyToCssProperties(L,I);S=Y+L+S;vue.lastIndex=U+L.length}return S};
_.M._atApplyToCssProperties=function(S,p){S=S.replace(G0H,"");var U=[],Y=this._map.get(S);Y||(this._map.set(S,{}),Y=this._map.get(S));if(Y){this._currentElement&&(Y.dependants[this._currentElement]=!0);var L,I=Y.properties;for(L in I){var V=p&&p[L];Y=[L,": var(",S,"_-_",L];V&&Y.push(",",V.replace(R0t,""));Y.push(")");R0t.test(I[L])&&Y.push(" !important");U.push(Y.join(""))}}return U.join("; ")};
_.M._replaceInitialOrInherit=function(S,p){var U=h0w.exec(p);U&&(p=U[1]?this._getInitialValueForProperty(S):"apply-shim-inherit");return p};
_.M._cssTextToMap=function(S,p){p=p===void 0?!1:p;S=S.split(";");for(var U,Y,L={},I=0;I<S.length;I++)if(U=S[I])Y=U.split(":"),Y.length>1&&(U=Y[0].trim(),Y=Y.slice(1).join(":"),p&&(Y=this._replaceInitialOrInherit(U,Y)),L[U]=Y);return L};
_.M._invalidateMixinEntry=function(S){if(Xve)for(var p in S.dependants)p!==this._currentElement&&Xve(p)};
_.M._produceCssProperties=function(S,p,U,Y,L){var I=this;U&&MCG(U,function(G,X){X&&I._map.get(X)&&(Y="@apply "+X+";")});
if(!Y)return S;var V=this._consumeCssProperties(""+Y,L);L=S.slice(0,S.indexOf("--"));var W=V=this._cssTextToMap(V,!0),O=this._map.get(p),D=O&&O.properties;D?W=Object.assign(Object.create(D),V):this._map.set(p,W);var z=[],Q,J=!1;for(Q in W){var K=V[Q];K===void 0&&(K="initial");!D||Q in D||(J=!0);z.push(p+"_-_"+Q+": "+K)}J&&this._invalidateMixinEntry(O);O&&(O.properties=W);U&&(L=S+";"+L);return L+z.join("; ")+";"};
Tx.prototype.detectMixin=Tx.prototype.detectMixin;Tx.prototype.transformStyle=Tx.prototype.JSC$9172_transformStyle;Tx.prototype.transformCustomStyle=Tx.prototype.transformCustomStyle;Tx.prototype.transformRules=Tx.prototype.transformRules;Tx.prototype.transformRule=Tx.prototype.transformRule;Tx.prototype.transformTemplate=Tx.prototype.transformTemplate;Tx.prototype._separator="_-_";Object.defineProperty(Tx.prototype,"invalidCallback",{get:function(){return Xve},
set:function(S){Xve=S}});var WC=new Tx,Z9E=function(){this.customStyleInterface=null;WC.invalidCallback=qEe},Ob=function(S){!S.customStyleInterface&&window.ShadyCSS.CustomStyleInterface&&(S.customStyleInterface=window.ShadyCSS.CustomStyleInterface,S.customStyleInterface.transformCallback=function(p){WC.transformCustomStyle(p)},S.customStyleInterface.validateCallback=function(){requestAnimationFrame(function(){S.customStyleInterface.enqueued&&S.flushCustomStyles()})})};
_.M=Z9E.prototype;_.M.prepareTemplate=function(S,p){Ob(this);IaR(S)===""&&(BbE[p]=S,p=WC.transformTemplate(S,p),S._styleAst=p)};
_.M.flushCustomStyles=function(){Ob(this);if(this.customStyleInterface){var S=this.customStyleInterface.processStyles();if(this.customStyleInterface.enqueued){for(var p=0;p<S.length;p++){var U=this.customStyleInterface.getStyleForCustomStyle(S[p]);U&&WC.transformCustomStyle(U)}this.customStyleInterface.enqueued=!1}}};
_.M.styleSubtree=function(S,p){Ob(this);p&&Gyr(S,p);if(S.shadowRoot)for(this.styleElement(S),S=S.shadowRoot.children||S.shadowRoot.childNodes,p=0;p<S.length;p++)this.styleSubtree(S[p]);else for(S=S.children||S.childNodes,p=0;p<S.length;p++)this.styleSubtree(S[p])};
_.M.styleElement=function(S){Ob(this);var p=S.localName,U;p?p.indexOf("-")>-1?U=p:U=S.getAttribute&&S.getAttribute("is")||"":U=S.is;p=BbE[U];if(!(p&&IaR(p)!==""||!p||Alk(p))){if(Alk(p)||p._applyShimValidatingVersion!==p._applyShimNextVersion)this.prepareTemplate(p,U),clw(p);if(S=S.shadowRoot)if(S=S.querySelector("style"))S.__cssRules=p._styleAst,S.textContent=pOG(p._styleAst)}};
_.M.styleDocument=function(S){Ob(this);this.styleSubtree(document.body,S)};
if(!window.ShadyCSS||!window.ShadyCSS.ScopingShim){var ki=new Z9E,s9P=window.ShadyCSS&&window.ShadyCSS.CustomStyleInterface;window.ShadyCSS={prepareTemplate:function(S,p){ki.flushCustomStyles();ki.prepareTemplate(S,p)},
prepareTemplateStyles:function(S,p,U){window.ShadyCSS.prepareTemplate(S,p,U)},
prepareTemplateDom:function(){},
styleSubtree:function(S,p){ki.flushCustomStyles();ki.styleSubtree(S,p)},
styleElement:function(S){ki.flushCustomStyles();ki.styleElement(S)},
styleDocument:function(S){ki.flushCustomStyles();ki.styleDocument(S)},
getComputedStyleValue:function(S,p){return hle(S,p)},
flushCustomStyles:function(){ki.flushCustomStyles()},
nativeCss:Spw,nativeShadow:sFd,cssBuild:vr,disableRuntime:NVd};s9P&&(window.ShadyCSS.CustomStyleInterface=s9P)}window.ShadyCSS.ApplyShim=WC;var e0P;e0P=window.ShadyCSS;_.HC=Ew(function(S){S=UUj(v1(S));var p=lcm?S:b9m(S),U=j9P(p),Y={x:"pan-x",y:"pan-y",none:"none",all:"auto"};S=function(){return p.call(this)||this};
_.r(S,p);S.prototype.created=function(){};
S.prototype.__attributeReaction=function(L,I,V){(this.__dataAttributes&&this.__dataAttributes[L]||L==="disable-upgrade")&&this.attributeChangedCallback(L,I,V,null)};
S.prototype.setAttribute=function(L,I){if(W$H&&!this._legacyForceObservedAttributes){var V=this.getAttribute(L);p.prototype.setAttribute.call(this,L,I);this.__attributeReaction(L,V,String(I))}else p.prototype.setAttribute.call(this,L,I)};
S.prototype.removeAttribute=function(L){if(W$H&&!this._legacyForceObservedAttributes){var I=this.getAttribute(L);p.prototype.removeAttribute.call(this,L);this.__attributeReaction(L,I,null)}else p.prototype.removeAttribute.call(this,L)};
S.prototype._enableProperties=function(){this.__isUpgradeDisabled||p.prototype._enableProperties.call(this)};
S.prototype._canApplyPropertyDefault=function(L){return p.prototype._canApplyPropertyDefault.call(this,L)&&!(this.__isUpgradeDisabled&&this._isPropertyPending(L))};
S.prototype.connectedCallback=function(){this.__needsAttributesAtConnected&&this._takeAttributes();this.__isUpgradeDisabled||(p.prototype.connectedCallback.call(this),this.isAttached=!0,this.attached())};
S.prototype.attached=function(){};
S.prototype.disconnectedCallback=function(){this.__isUpgradeDisabled||(p.prototype.disconnectedCallback.call(this),this.isAttached=!1,this.detached())};
S.prototype.detached=function(){};
S.prototype.attributeChangedCallback=function(L,I,V,W){I!==V&&(L=="disable-upgrade"?this.__isUpgradeDisabled&&V==null&&(this._initializeProperties(),this.__isUpgradeDisabled=!1,(0,_.Dc)(this).isConnected&&this.connectedCallback()):(p.prototype.attributeChangedCallback.call(this,L,I,V,W),this.attributeChanged(L,I,V)))};
S.prototype.attributeChanged=function(){};
S.prototype._initializeProperties=function(){if(sR&&this.hasAttribute("disable-upgrade"))this.__isUpgradeDisabled=!0;else{var L=Object.getPrototypeOf(this);L.hasOwnProperty("__hasRegisterFinished")||(this._registered(),L.__hasRegisterFinished=!0);p.prototype._initializeProperties.call(this);this.root=this;this.created();W$H&&!this._legacyForceObservedAttributes&&(this.hasAttributes()?this._takeAttributes():this.parentNode||(this.__needsAttributesAtConnected=!0));this._applyListeners()}};
S.prototype._takeAttributes=function(){for(var L=this.attributes,I=0,V=L.length;I<V;I++){var W=L[I];this.__attributeReaction(W.name,null,W.value)}};
S.prototype._registered=function(){};
S.prototype.ready=function(){this._ensureAttributes();p.prototype.ready.call(this)};
S.prototype._ensureAttributes=function(){};
S.prototype._applyListeners=function(){};
S.prototype.serialize=function(L){return this._serializeValue(L)};
S.prototype.deserialize=function(L,I){return this._deserializeValue(L,I)};
S.prototype.reflectPropertyToAttribute=function(L,I,V){this._propertyToAttribute(L,I,V)};
S.prototype.serializeValueToAttribute=function(L,I,V){this._valueToNodeAttribute(V||this,L,I)};
S.prototype.extend=function(L,I){if(!L||!I)return L||I;for(var V=Object.getOwnPropertyNames(I),W=0,O=void 0;W<V.length&&(O=V[W]);W++){var D=Object.getOwnPropertyDescriptor(I,O);D&&Object.defineProperty(L,O,D)}return L};
S.prototype.mixin=function(L,I){for(var V in I)L[V]=I[V];return L};
S.prototype.chainObject=function(L,I){L&&I&&L!==I&&(L.__proto__=I);return L};
S.prototype.instanceTemplate=function(L){L=this.constructor._contentForTemplate(L);return document.importNode(L,!0)};
S.prototype.fire=function(L,I,V){V=V||{};I=I===null||I===void 0?{}:I;L=new Event(L,{bubbles:V.bubbles===void 0?!0:V.bubbles,cancelable:!!V.cancelable,composed:V.composed===void 0?!0:V.composed});L.detail=I;(0,_.Dc)(V.node||this).dispatchEvent(L);return L};
S.prototype.listen=function(L,I,V){L=L||this;var W=this.__boundListeners||(this.__boundListeners=new WeakMap),O=W.get(L);O||(O={},W.set(L,O));W=I+V;O[W]||(O[W]=this._addMethodEventListenerToNode(L,I,V,this))};
S.prototype.unlisten=function(L,I,V){L=L||this;var W=this.__boundListeners&&this.__boundListeners.get(L);V=I+V;var O=W&&W[V];O&&(this._removeEventListenerFromNode(L,I,O),W[V]=null)};
S.prototype.setScrollDirection=function(L,I){_.Xj(I||this,Y[L]||"auto")};
S.prototype.$$=function(L){return this.root.querySelector(L)};
S.prototype.distributeContent=function(){var L=_.K9(this);window.ShadyDOM&&L.shadowRoot&&ShadyDOM.flush()};
S.prototype.getEffectiveChildNodes=function(){return _.K9(this).getEffectiveChildNodes()};
S.prototype.queryDistributedElements=function(L){return _.K9(this).queryDistributedElements(L)};
S.prototype.getEffectiveChildren=function(){return this.getEffectiveChildNodes().filter(function(L){return L.nodeType===Node.ELEMENT_NODE})};
S.prototype.getEffectiveTextContent=function(){for(var L=this.getEffectiveChildNodes(),I=[],V=0,W;W=L[V];V++)W.nodeType!==Node.COMMENT_NODE&&I.push(W.textContent);return I.join("")};
S.prototype.queryEffectiveChildren=function(L){return(L=this.queryDistributedElements(L))&&L[0]};
S.prototype.queryAllEffectiveChildren=function(L){return this.queryDistributedElements(L)};
S.prototype.getContentChildNodes=function(L){return(L=this.root.querySelector(L||"slot"))?_.K9(L).getDistributedNodes():[]};
S.prototype.getContentChildren=function(L){return this.getContentChildNodes(L).filter(function(I){return I.nodeType===Node.ELEMENT_NODE})};
S.prototype.isLightDescendant=function(L){return this!==L&&(0,_.Dc)(this).contains(L)&&(0,_.Dc)(this).getRootNode()===(0,_.Dc)(L).getRootNode()};
S.prototype.isLocalDescendant=function(L){return this.root===(0,_.Dc)(L).getRootNode()};
S.prototype.scopeSubtree=function(L,I){return uNG(L,I===void 0?!1:I)};
S.prototype.getComputedStyleValue=function(L){return e0P.getComputedStyleValue(this,L)};
S.prototype.debounce=function(L,I,V){this._debouncers=this._debouncers||{};return this._debouncers[L]=_.c1(this._debouncers[L],V>0?_.xr.after(V):Pr,I.bind(this))};
S.prototype.isDebouncerActive=function(L){this._debouncers=this._debouncers||{};L=this._debouncers[L];return!(!L||!L.isActive())};
S.prototype.flushDebouncer=function(L){this._debouncers=this._debouncers||{};(L=this._debouncers[L])&&L.flush()};
S.prototype.cancelDebouncer=function(L){this._debouncers=this._debouncers||{};(L=this._debouncers[L])&&L.cancel()};
S.prototype.async=function(L,I){return I>0?_.xr.run(L.bind(this),I):~Pr.run(L.bind(this))};
S.prototype.cancelAsync=function(L){L<0?Pr.cancel(~L):_.xr.cancel(L)};
S.prototype.create=function(L,I){L=document.createElement(L);if(I)if(L.setProperties)L.setProperties(I);else for(var V in I)L[V]=I[V];return L};
S.prototype.elementMatches=function(L,I){return k0H(I||this,L)};
S.prototype.toggleAttribute=function(L,I){var V=this;arguments.length===3&&(V=arguments[2]);arguments.length==1&&(I=!V.hasAttribute(L));if(I)return(0,_.Dc)(V).setAttribute(L,""),!0;(0,_.Dc)(V).removeAttribute(L);return!1};
S.prototype.toggleClass=function(L,I,V){V=V||this;arguments.length==1&&(I=!V.classList.contains(L));I?V.classList.add(L):V.classList.remove(L)};
S.prototype.transform=function(L,I){I=I||this;I.style.webkitTransform=L;I.style.transform=L};
S.prototype.translate3d=function(L,I,V,W){this.transform("translate3d("+L+","+I+","+V+")",W||this)};
S.prototype.arrayDelete=function(L,I){if(Array.isArray(L)){if(I=L.indexOf(I),I>=0)return L.splice(I,1)}else if(I=OR(this,L).indexOf(I),I>=0)return this.splice(L,I,1);return null};
S.prototype._logger=function(L,I){Array.isArray(I)&&I.length===1&&Array.isArray(I[0])&&(I=I[0]);switch(L){case "log":case "warn":case "error":console[L].apply(console,_.jo(I))}};
S.prototype._log=function(){this._logger("log",_.jO.apply(0,arguments))};
S.prototype._warn=function(){this._logger("warn",_.jO.apply(0,arguments))};
S.prototype._error=function(){this._logger("error",_.jO.apply(0,arguments))};
S.prototype._logf=function(L){return["[%s::%s]",this.is,L].concat(_.jo(_.jO.apply(1,arguments)))};
_.$u.Object.defineProperties(S.prototype,{domHost:{configurable:!0,enumerable:!0,get:function(){var L=(0,_.Dc)(this).getRootNode();return L instanceof DocumentFragment?L.host:L}}});
_.$u.Object.defineProperties(S,{importMeta:{configurable:!0,enumerable:!0,get:function(){return this.prototype.importMeta}},
observedAttributes:{configurable:!0,enumerable:!0,get:function(){return W$H&&!this.prototype._legacyForceObservedAttributes?(this.hasOwnProperty("__observedAttributes")||(this.__observedAttributes=[],eow(this.prototype)),this.__observedAttributes):U.call(this).concat("disable-upgrade")}}});
S.prototype.is="";return S});Polymer.FlattenedNodesObserver=Tnt;Polymer.DomApi=Q9j;Polymer.EventApi=dP;Polymer.dom=_.K9;Polymer.dom.matchesSelector=k0H;Polymer.dom.flush=_.LC;Polymer.dom.addDebouncer=_.Sd;Polymer.DirMixin=b9m;Polymer.RenderStatus={beforeNextRender:_.sAw,afterNextRender:_.oH,flush:function(){for(;XIk.length||m$.length;)FUw(XIk),FUw(m$);ER=!1}};Polymer.LegacyElementMixin=_.HC;var gnw;gnw=Ub._mutablePropertyChange;var u$m={properties:{mutableData:Boolean},_shouldPropertyChange:function(S,p,U){return gnw(this,S,p,U,this.mutableData)}};Polymer.MutableDataBehavior={_shouldPropertyChange:function(S,p,U){return gnw(this,S,p,U,!0)}};
Polymer.OptionalMutableDataBehavior=u$m;var d_d={attached:!0,detached:!0,ready:!0,created:!0,beforeRegister:!0,registered:!0,attributeChanged:!0,listeners:!0,hostAttributes:!0},kUe={attached:!0,detached:!0,ready:!0,created:!0,beforeRegister:!0,registered:!0,attributeChanged:!0,behaviors:!0,_noAccessors:!0},O4u=Object.assign({listeners:!0,hostAttributes:!0,properties:!0,observers:!0},kUe),wvI=(0,_.HC)(HTMLElement),Bsr=function(S,p){S||console.warn("Polymer.Class requires `info` argument");p=p?p(wvI):wvI;p=H4r(S,p,S.behaviors);p.is=p.prototype.is=
S.is;return p};Polymer.Class=Bsr;Polymer.mixinBehaviors=function(S,p){return H4r({},(0,_.HC)(p),S)};
Polymer.GenerateClassFromInfo=H4r;_.jp=function(S){var p=typeof S==="function"?S:_.jp.Class(S);S._legacyForceObservedAttributes&&(p.prototype._legacyForceObservedAttributes=S._legacyForceObservedAttributes);customElements.define(p.is,p);return p};
_.jp.Class=Bsr;Polymer._polymerFn=_.jp;var lLI=window.onLegacyPolymerFunctionDefinedCallback;lLI&&lLI();var AOd={templatize:function(S,p){this._templatizerTemplate=S;this.ctor=uN(S,this,{mutableData:!!p,parentModel:this._parentModel,instanceProps:this._instanceProps,forwardHostProp:this._forwardHostPropV2,notifyInstanceProp:this._notifyInstancePropV2})},
stamp:function(S){return new this.ctor(S)},
modelForElement:function(S){return jAq(this._templatizerTemplate,S)}};Polymer.Templatizer=AOd;_.DF=(0,_.HC)(HTMLElement).prototype;Polymer.Base=_.DF;var zOX=/\bclass\b/.test(function(){}.toString());
window.PolymerFakeBaseClass=function(){};
_.iN=function(){return PolymerFakeBaseClass.apply(this,arguments)||this};
_.r(_.iN,PolymerFakeBaseClass);var N0=function(){return PolymerFakeBaseClass.apply(this,arguments)||this};
_.r(N0,PolymerFakeBaseClass);var Qpw=Symbol("Ld"),GUw=[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 aLE=aLE||{id:"third_party/javascript/node_modules/reflect_decorators/Reflect.closure.js"},fLe;(function(S){function p(m,A,q){var TG=N.get(m);if(!TG){if(!q)return;TG=new l;N.set(m,TG)}m=TG.get(A);if(!m){if(!q)return;m=new l;TG.set(A,m)}return m}
function U(m,A,q){if(Y(m,A,q))return!0;A=J(A);return A!==null?U(m,A,q):!1}
function Y(m,A,q){A=p(A,q,!1);return A===void 0?!1:!!A.has(m)}
function L(m,A,q){if(Y(m,A,q))return I(m,A,q);A=J(A);if(A!==null)return L(m,A,q)}
function I(m,A,q){A=p(A,q,!1);if(A!==void 0)return A.get(m)}
function V(m,A){var q=W(m,A);m=J(m);if(m===null)return q;var TG=V(m,A);if(TG.length<=0)return q;if(q.length<=0)return TG;A=new a;m=[];q=_.d(q);for(var Je=q.next();!Je.done;Je=q.next())Je=Je.value,A.has(Je)||(A.add(Je),m.push(Je));q=_.d(TG);for(TG=q.next();!TG.done;TG=q.next())TG=TG.value,A.has(TG)||(A.add(TG),m.push(TG));return m}
function W(m,A){m=p(m,A,!1);var q=[];m&&m.forEach(function(TG,Je){return q.push(Je)});
return q}
function O(m){return m===void 0}
function D(m){return typeof m==="object"?m!==null:typeof m==="function"}
function z(m){return typeof m==="function"}
function Q(m){return typeof m==="symbol"?m:String(m)}
function J(m){var A=Object.getPrototypeOf(m);if(typeof m!=="function"||m===Z||A!==Z)return A;var q=Object.getPrototypeOf(m.prototype);if(q==null||q===Object.prototype)return A;q=q.constructor;return typeof q!=="function"||q===m?A:q}
function K(){function m(){this._keys=[];this._values=[];this._cache=A}
var A={};m.prototype={get size(){return this._keys.length},has:function(q){return q===this._cache?!0:this._find(q)>=0?(this._cache=q,!0):!1},
get:function(q){var TG=this._find(q);if(TG>=0)return this._cache=q,this._values[TG]},
set:function(q,TG){this.delete(q);this._keys.push(q);this._values.push(TG);this._cache=q;return this},
delete:function(q){q=this._find(q);return q>=0?(this._keys.splice(q,1),this._values.splice(q,1),this._cache=A,!0):!1},
clear:function(){this._keys.length=0;this._values.length=0;this._cache=A},
forEach:function(q){for(var TG=this.size,Je=0;Je<TG;++Je){var GG=this._keys[Je],Zw=this._values[Je];this._cache=GG;q.call(this,Zw,GG,this)}},
_find:function(q){for(var TG=this._keys,Je=TG.length,GG=0;GG<Je;++GG)if(TG[GG]===q)return GG;return-1}};
return m}
function G(){function m(){this._map=new l}
m.prototype={get size(){return this._map.length},has:function(A){return this._map.has(A)},
add:function(A){this._map.set(A,A);return this},
delete:function(A){return this._map.delete(A)},
clear:function(){this._map.clear()},
forEach:function(A,q){this._map.forEach(A,q)}};
return m}
function X(){function m(){this._key=q()}
function A(sX,mq){for(var au=0;au<mq;++au)sX[au]=Math.random()*255|0}
function q(){do{if(Je)var sX=Je.randomBytes(16);else typeof Uint8Array==="function"?(sX=new Uint8Array(16),typeof crypto!=="undefined"?crypto.getRandomValues(sX):A(sX,16)):(sX=Array(16),A(sX,16));sX[6]=sX[6]&79|64;sX[8]=sX[8]&191|128;for(var mq="",au=0;au<16;++au){var XI=sX[au];if(au===4||au===6||au===8)mq+="-";XI<16&&(mq+="0");mq+=XI.toString(16).toLowerCase()}sX="@@WeakMap@@"+mq}while(GG.call(Zw,sX));Zw[sX]=!0;return sX}
function TG(sX,mq){if(!GG.call(sX,Ru)){if(!mq)return;Object.defineProperty(sX,Ru,{value:Object.create(null)})}return sX[Ru]}
var Je=typeof global!=="undefined"&&typeof aLE==="object"&&typeof require==="function"&&require("crypto"),GG=Object.prototype.hasOwnProperty,Zw={},Ru=q();m.prototype={has:function(sX){return(sX=TG(sX,!1))?this._key in sX:!1},
get:function(sX){if(sX=TG(sX,!1))return sX[this._key]},
set:function(sX,mq){TG(sX,!0)[this._key]=mq;return this},
delete:function(sX){return(sX=TG(sX,!1))&&this._key in sX?delete sX[this._key]:!1},
clear:function(){this._key=q()}};
return m}
var Z=Object.getPrototypeOf(Function),l=typeof Map==="function"?Map:K(),a=typeof Set==="function"?Set:G(),N=new (typeof WeakMap==="function"?WeakMap:X());S.decorate=function(m,A,q,TG){if(O(TG)){if(O(q)){if(!Array.isArray(m))throw new TypeError;if(!z(A))throw new TypeError;for(q=m.length-1;q>=0;--q)if(TG=(0,m[q])(A),!O(TG)){if(!z(TG))throw new TypeError;A=TG}return A}if(!Array.isArray(m))throw new TypeError;if(!D(A))throw new TypeError;q=Q(q);for(TG=m.length-1;TG>=0;--TG)(0,m[TG])(A,q)}else{if(Array.isArray(m))if(D(A)){if(O(q))throw new TypeError;
if(!D(TG))throw new TypeError;}else throw new TypeError;else throw new TypeError;q=Q(q);for(var Je=m.length-1;Je>=0;--Je){var GG=(0,m[Je])(A,q,TG);if(!O(GG)){if(!D(GG))throw new TypeError;TG=GG}}return TG}};
S.metadata=function(m,A){return function(q,TG){if(O(TG)){if(!z(q))throw new TypeError;p(q,void 0,!0).set(m,A)}else{if(!D(q))throw new TypeError;TG=Q(TG);p(q,TG,!0).set(m,A)}}};
S.defineMetadata=function(m,A){var q;if(D(A))O(q)||(q=Q(q));else throw new TypeError;p(A,q,!0).set("parameters",m)};
S.hasMetadata=function(m,A,q){if(D(A))O(q)||(q=Q(q));else throw new TypeError;return U(m,A,q)};
S.hasOwnMetadata=function(m,A,q){if(D(A))O(q)||(q=Q(q));else throw new TypeError;return Y(m,A,q)};
S.getMetadata=function(m,A,q){if(D(A))O(q)||(q=Q(q));else throw new TypeError;return L(m,A,q)};
S.getOwnMetadata=function(m,A,q){if(D(A))O(q)||(q=Q(q));else throw new TypeError;return I(m,A,q)};
S.getMetadataKeys=function(m,A){if(D(m))O(A)||(A=Q(A));else throw new TypeError;return V(m,A)};
S.getOwnMetadataKeys=function(m,A){if(D(m))O(A)||(A=Q(A));else throw new TypeError;return W(m,A)};
S.deleteMetadata=function(m,A,q){if(D(A))O(q)||(q=Q(q));else throw new TypeError;var TG=p(A,q,!1);if(!O(TG)){if(!TG.delete(m))return!1;if(TG.size>0)return!0;m=N.get(A);m.delete(q);if(m.size>0)return!0;N.delete(A);return!0}};
(function(m){if(typeof m.Reflect!=="undefined"){if(m.Reflect!==S)for(var A in S)m.Reflect[A]=S[A]}else m.Reflect=S})(typeof window!=="undefined"?window:typeof WorkerGlobalScope!=="undefined"?self:typeof global!=="undefined"?global:globalThis)})(fLe||(fLe={}));var gKr=self;var CLt=[0,_.w1,_.fT,_.w1];var xUH=function(S){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.UH(S)};
_.r(xUH,_.a5);var Enm=_.ti(xUH,[0,_.m7u,_.CT,CLt,_.fT,_.Ex]);_.q_(_.Br,_.hY);_.M=_.Br.prototype;_.M.start=function(){this.stop();this.usingListeners_=!1;var S=mUl(this),p=onm(this);S&&!p&&this.JSC$9215_win_.mozRequestAnimationFrame?(this.JSC$9215_id_=_.Kz(this.JSC$9215_win_,"MozBeforePaint",this.callback_),this.JSC$9215_win_.mozRequestAnimationFrame(null),this.usingListeners_=!0):this.JSC$9215_id_=S&&p?S.call(this.JSC$9215_win_,this.callback_):this.JSC$9215_win_.setTimeout(Nuu(this.callback_),20)};
_.M.stop=function(){if(this.isActive()){var S=mUl(this),p=onm(this);S&&!p&&this.JSC$9215_win_.mozRequestAnimationFrame?nz(this.JSC$9215_id_):S&&p?p.call(this.JSC$9215_win_,this.JSC$9215_id_):this.JSC$9215_win_.clearTimeout(this.JSC$9215_id_)}this.JSC$9215_id_=null};
_.M.fire=function(){this.stop();this.JSC$9217_doAction_()};
_.M.isActive=function(){return this.JSC$9215_id_!=null};
_.M.JSC$9217_doAction_=function(){this.usingListeners_&&this.JSC$9215_id_&&nz(this.JSC$9215_id_);this.JSC$9215_id_=null;this.JSC$9215_listener_.call(this.handler_,_.BO())};
_.M.disposeInternal=function(){this.stop();_.Br.superClass_.disposeInternal.call(this)};
var mUl=function(S){S=S.JSC$9215_win_;return S.requestAnimationFrame||S.webkitRequestAnimationFrame||S.mozRequestAnimationFrame||S.oRequestAnimationFrame||S.msRequestAnimationFrame||null},onm=function(S){S=S.JSC$9215_win_;
return S.cancelAnimationFrame||S.cancelRequestAnimationFrame||S.webkitCancelRequestAnimationFrame||S.mozCancelRequestAnimationFrame||S.oCancelRequestAnimationFrame||S.msCancelRequestAnimationFrame||null};_.NB=function(S,p,U){_.hY.call(this);this.JSC$9218_listener_=U!=null?S.bind(U):S;this.JSC$9218_interval_=p;this.args_=null;this.shouldFire_=!1;this.pauseCount_=0;this.JSC$9218_timer_=null};
_.r(_.NB,_.hY);_.M=_.NB.prototype;_.M.fire=function(S){this.args_=arguments;this.JSC$9218_timer_||this.pauseCount_?this.shouldFire_=!0:vne(this)};
_.M.stop=function(){this.JSC$9218_timer_&&(_.UX.clearTimeout(this.JSC$9218_timer_),this.JSC$9218_timer_=null,this.shouldFire_=!1,this.args_=null)};
_.M.pause=function(){this.pauseCount_++};
_.M.resume=function(){this.pauseCount_--;this.pauseCount_||!this.shouldFire_||this.JSC$9218_timer_||(this.shouldFire_=!1,vne(this))};
_.M.disposeInternal=function(){_.hY.prototype.disposeInternal.call(this);this.stop()};
var vne=function(S){S.JSC$9218_timer_=Qf(function(){S.JSC$9218_timer_=null;S.shouldFire_&&!S.pauseCount_&&(S.shouldFire_=!1,vne(S))},S.JSC$9218_interval_);
var p=S.args_;S.args_=null;S.JSC$9218_listener_.apply(null,p)};var $Ue=function(S,p){this.childIterator_=S[_.UX.Symbol.iterator]();this.mapFn_=p};
$Ue.prototype[Symbol.iterator]=function(){return this};
$Ue.prototype.next=function(){var S=this.childIterator_.next();return{value:S.done?void 0:this.mapFn_.call(void 0,S.value),done:S.done}};
var i9t=function(S,p){return new $Ue(S,p)};var Nnq={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 OPR=function(S){var p=Bnm(S);if(!p)throw Error("Pd`"+S);return p},Bnm=function(S){var p={};
S=String(S);var U=S.charAt(0)=="#"?S:"#"+S;if(q$m.test(U))return p.hex=Mxq(U),p.type="hex",p;U=zmN(S);return U.length?(p.hex=Atd(U[0],U[1],U[2]),p.type="rgb",p):Nnq&&(S=Nnq[S.toLowerCase()])?(p.hex=S,p.type="named",p):null},A8Q=/#(.)(.)(.)/,Mxq=function(S){if(!q$m.test(S))throw Error("Rd`"+S);
S.length==4&&(S=S.replace(A8Q,"#$1$1$2$2$3$3"));return S.toLowerCase()},kJG=function(S){S=Mxq(S);
S=parseInt(S.slice(1),16);return[S>>16,S>>8&255,S&255]},Atd=function(S,p,U){S=Number(S);
p=Number(p);U=Number(U);if(S!=(S&255)||p!=(p&255)||U!=(U&255))throw Error("Sd`"+S+"`"+p+"`"+U);p=S<<16|p<<8|U;return S<16?"#"+(16777216|p).toString(16).slice(1):"#"+p.toString(16)},q$m=/^#(?:[0-9a-f]{3}){1,2}$/i,tme=/^(?:rgb)?\((0|[1-9]\d{0,2}),\s?(0|[1-9]\d{0,2}),\s?(0|[1-9]\d{0,2})\)$/i,zmN=function(S){var p=S.match(tme);
if(p){S=Number(p[1]);var U=Number(p[2]);p=Number(p[3]);if(S>=0&&S<=255&&U>=0&&U<=255&&p>=0&&p<=255)return[S,U,p]}return[]};var c8E={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},y4=c8E;y4=c8E;var fyw,ShQ,pdl;fyw=function(S,p){switch(p){case 1:return S%4!=0||S%100==0&&S%400!=0?28:29;case 5:case 8:case 10:case 3:return 30}return 31};
ShQ=function(S,p,U,Y,L){S=new Date(S,p,U);L=L||0;return S.valueOf()+(((Y!==void 0?Y:3)-L+7)%7-((S.getDay()+6)%7-L+7)%7)*864E5};
_.zx=function(S,p,U){typeof S==="number"?(this.date=pdl(S,p||0,U||1),Uwj(this,U||1)):_.pc(S)?(this.date=pdl(S.getFullYear(),S.getMonth(),S.getDate()),Uwj(this,S.getDate())):(this.date=new Date(_.BO()),S=this.date.getDate(),this.date.setHours(0),this.date.setMinutes(0),this.date.setSeconds(0),this.date.setMilliseconds(0),Uwj(this,S))};
pdl=function(S,p,U){p=new Date(S,p,U);S>=0&&S<100&&p.setFullYear(p.getFullYear()-1900);return p};
_.M=_.zx.prototype;_.M.firstDayOfWeek_=y4.FIRSTDAYOFWEEK;_.M.firstWeekCutOffDay_=y4.FIRSTWEEKCUTOFFDAY;_.M.clone=function(){var S=new _.zx(this.date);S.firstDayOfWeek_=this.firstDayOfWeek_;S.firstWeekCutOffDay_=this.firstWeekCutOffDay_;return S};
_.M.getFullYear=function(){return this.date.getFullYear()};
_.M.getYear=function(){return this.getFullYear()};
_.M.getMonth=function(){return this.date.getMonth()};
_.M.getDate=function(){return this.date.getDate()};
_.M.getTime=function(){return this.date.getTime()};
_.M.getDay=function(){return this.date.getDay()};
_.M.getUTCFullYear=function(){return this.date.getUTCFullYear()};
_.M.getUTCMonth=function(){return this.date.getUTCMonth()};
_.M.getUTCDate=function(){return this.date.getUTCDate()};
_.M.getUTCDay=function(){return this.date.getDay()};
_.M.getUTCHours=function(){return this.date.getUTCHours()};
_.M.getUTCMinutes=function(){return this.date.getUTCMinutes()};
_.M.getTimezoneOffset=function(){return this.date.getTimezoneOffset()};
_.M.set=function(S){this.date=new Date(S.getFullYear(),S.getMonth(),S.getDate())};
_.M.setFullYear=function(S){this.date.setFullYear(S)};
_.M.setYear=function(S){this.setFullYear(S)};
_.M.setMonth=function(S){this.date.setMonth(S)};
_.M.setDate=function(S){this.date.setDate(S)};
_.M.setTime=function(S){this.date.setTime(S)};
_.M.setUTCFullYear=function(S){this.date.setUTCFullYear(S)};
_.M.setUTCMonth=function(S){this.date.setUTCMonth(S)};
_.M.setUTCDate=function(S){this.date.setUTCDate(S)};
_.M.add=function(S){if(S.years||S.months){var p=this.getMonth()+S.months+S.years*12,U=this.getYear()+Math.floor(p/12);p%=12;p<0&&(p+=12);var Y=Math.min(fyw(U,p),this.getDate());this.setDate(1);this.setFullYear(U);this.setMonth(p);this.setDate(Y)}S.days&&(U=this.getYear(),p=U>=0&&U<=99?-1900:0,S=new Date((new Date(U,this.getMonth(),this.getDate(),12)).getTime()+S.days*864E5),this.setDate(1),this.setFullYear(S.getFullYear()+p),this.setMonth(S.getMonth()),this.setDate(S.getDate()),Uwj(this,S.getDate()))};
_.M.JSC$9231_toIsoString=function(S){var p=this.getFullYear(),U=p<0?"-":p>=1E4?"+":"";return[U+_.NO(Math.abs(p),U?6:4),_.NO(this.getMonth()+1,2),_.NO(this.getDate(),2)].join(S?"-":"")};
_.M.equals=function(S){return!(!S||this.getYear()!=S.getYear()||this.getMonth()!=S.getMonth()||this.getDate()!=S.getDate())};
_.M.toString=function(){return this.JSC$9231_toIsoString()};
var Uwj=function(S,p){S.getDate()!=p&&S.date.setUTCHours(S.date.getUTCHours()+(S.getDate()<p?1:-1))};
_.zx.prototype.valueOf=function(){return this.date.valueOf()};var nC=function(S,p,U,Y,L){this.reversed=!!p;this.node=null;this.tagType=0;this.started_=!1;this.constrained=!U;S&&Qq(this,S,Y);this.depth=L!=void 0?L:this.tagType||0;this.reversed&&(this.depth*=-1)};
_.q_(nC,ts);var Qq=function(S,p,U,Y){if(S.node=p)S.tagType=typeof U==="number"?U:S.node.nodeType!=1?0:S.reversed?-1:1;typeof Y==="number"&&(S.depth=Y)};
_.M=nC.prototype;_.M.JSC$9246_copyFrom=function(S){this.node=S.node;this.tagType=S.tagType;this.depth=S.depth;this.reversed=S.reversed;this.constrained=S.constrained};
_.M.clone=function(){return new nC(this.node,this.reversed,!this.constrained,this.tagType,this.depth)};
_.M.next=function(){if(this.started_){if(!this.node||this.constrained&&this.depth==0)return cF;var S=this.node;var p=this.reversed?-1:1;if(this.tagType==p){var U=this.reversed?S.lastChild:S.firstChild;U?Qq(this,U):Qq(this,S,p*-1)}else(U=this.reversed?S.previousSibling:S.nextSibling)?Qq(this,U):Qq(this,S.parentNode,p*-1);this.depth+=this.tagType*(this.reversed?-1:1)}else this.started_=!0;return(S=this.node)?S0(S):cF};
_.M.equals=function(S){return S.node==this.node&&(!this.node||S.tagType==this.tagType)};
_.M.splice=function(S){var p=this.node,U=this.reversed?1:-1;this.tagType==U&&(this.tagType=U*-1,this.depth+=this.tagType*(this.reversed?-1:1));this.reversed=!this.reversed;nC.prototype.next.call(this);this.reversed=!this.reversed;U=_.Ae(arguments[0])?arguments[0]:arguments;for(var Y=U.length-1;Y>=0;Y--)_.jc(U[Y],p);_.yz(p)};var Yht=function(){},JK=function(S){for(var p=[],U=S.getTextRangeCount(),Y=0;Y<U;Y++)p.push(S.getTextRange(Y));
return p};
Yht.prototype.isReversed=function(){return!1};
Yht.prototype.getWindow=function(){return Pi(_.ZD(this.JSC$9248_getStartNode()))};
var LpH=function(S,p){nC.call(this,S,p,!0)};
_.q_(LpH,nC);var yq=function(S,p,U,Y,L){this.endNode_=this.startNode_=null;this.endOffset_=this.startOffset_=0;this.isReversed_=!!L;if(S){this.startNode_=S;this.startOffset_=p;this.endNode_=U;this.endOffset_=Y;if(S.nodeType==1&&S.tagName!="BR")if(S=S.childNodes,p=S[p])this.startNode_=p,this.startOffset_=0;else{S.length&&(this.startNode_=_.le(S));var I=!0}U.nodeType==1&&((this.endNode_=U.childNodes[Y])?this.endOffset_=0:this.endNode_=U)}nC.call(this,this.isReversed_?this.endNode_:this.startNode_,this.isReversed_,
!0);I&&this.next()};
_.q_(yq,LpH);_.M=yq.prototype;_.M.JSC$9254_getStartNode=function(){return this.startNode_};
_.M.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)};
_.M.next=function(){return this.isLast()?cF:yq.superClass_.next.call(this)};
_.M.JSC$9246_copyFrom=function(S){this.startNode_=S.startNode_;this.endNode_=S.endNode_;this.startOffset_=S.startOffset_;this.endOffset_=S.endOffset_;this.isReversed_=S.isReversed_;yq.superClass_.JSC$9246_copyFrom.call(this,S)};
_.M.clone=function(){var S=new yq(this.startNode_,this.startOffset_,this.endNode_,this.endOffset_,this.isReversed_);S.JSC$9246_copyFrom(this);return S};var Mtd=function(){};
Mtd.prototype.__iterator__=function(){return new yq(this.range_.startContainer,this.range_.startOffset,this.range_.endContainer,this.range_.endOffset)};var KC=function(S){this.range_=S};
_.q_(KC,Mtd);var I9m=function(S){var p=_.ZD(S).createRange();if(S.nodeType==3)p.setStart(S,0),p.setEnd(S,S.length);else if(yC(S)||S.nodeType==3){for(var U,Y=S;(U=Y.firstChild)&&(yC(U)||U.nodeType==3);)Y=U;p.setStart(Y,0);for(Y=S;(U=Y.lastChild)&&(yC(U)||U.nodeType==3);)Y=U;p.setEnd(Y,Y.nodeType==1?Y.childNodes.length:Y.length)}else U=S.parentNode,S=Array.prototype.indexOf.call(U.childNodes,S),p.setStart(U,S),p.setEnd(U,S+1);return p},dwc=function(S,p,U,Y){var L=_.ZD(S).createRange();
L.setStart(S,p);L.setEnd(U,Y);return L};
_.M=KC.prototype;_.M.clone=function(){return new this.constructor(this.range_.cloneRange())};
_.M.getContainer=function(){return this.range_.commonAncestorContainer};
_.M.compareBrowserRangeEndpoints=function(S,p,U){return this.range_.compareBoundaryPoints(U==1?p==1?_.UX.Range.START_TO_START:_.UX.Range.START_TO_END:p==1?_.UX.Range.END_TO_START:_.UX.Range.END_TO_END,S)};
_.M.isCollapsed=function(){return this.range_.collapsed};
_.M.select=function(S){this.selectInternal(Pi(_.ZD(this.range_.startContainer)).getSelection(),S)};
_.M.selectInternal=function(S){S.removeAllRanges();S.addRange(this.range_)};
_.M.insertNode=function(S,p){var U=this.range_.cloneRange();U.collapse(p);U.insertNode(S);U.detach();return S};
_.M.collapse=function(S){this.range_.collapse(S)};_.q_(q0,KC);q0.prototype.selectInternal=function(S,p){!p||this.isCollapsed()?q0.superClass_.selectInternal.call(this,S,p):(S.collapse(this.range_.endContainer,this.range_.endOffset),S.extend(this.range_.startContainer,this.range_.startOffset))};_.q_(Ar,KC);Ar.prototype.compareBrowserRangeEndpoints=function(S,p,U){return Ar.superClass_.compareBrowserRangeEndpoints.call(this,S,p,U)};
Ar.prototype.selectInternal=function(S,p){p?S.setBaseAndExtent(this.range_.endContainer,this.range_.endOffset,this.range_.startContainer,this.range_.startOffset):S.setBaseAndExtent(this.range_.startContainer,this.range_.startOffset,this.range_.endContainer,this.range_.endOffset)};var Vtt=function(S){return _.pT?new Ar(S):_.SR?new q0(S):new KC(S)};var bp=function(){this.endOffset_=this.endNode_=this.startOffset_=this.startNode_=this.browserRangeWrapper_=null;this.isReversed_=!1},TBt;
_.q_(bp,Yht);TBt=function(S,p){var U=new bp;U.browserRangeWrapper_=S;U.isReversed_=!!p;return U};
_.Wpt=function(S){S=_.pT?new Ar(I9m(S)):_.SR?new q0(I9m(S)):new KC(I9m(S));return TBt(S)};
_.jd=function(S,p,U,Y){var L=new bp;L.isReversed_=Opt(S,p,U,Y);if(_.BA(S)&&!yC(S)){var I=S.parentNode;p=Array.prototype.indexOf.call(I.childNodes,S);S=I}_.BA(U)&&!yC(U)&&(I=U.parentNode,Y=Array.prototype.indexOf.call(I.childNodes,U),U=I);L.isReversed_?(L.startNode_=U,L.startOffset_=Y,L.endNode_=S,L.endOffset_=p):(L.startNode_=S,L.startOffset_=p,L.endNode_=U,L.endOffset_=Y);return L};
_.M=bp.prototype;_.M.clone=function(){var S=new bp;S.browserRangeWrapper_=this.browserRangeWrapper_&&this.browserRangeWrapper_.clone();S.startNode_=this.startNode_;S.startOffset_=this.startOffset_;S.endNode_=this.endNode_;S.endOffset_=this.endOffset_;S.isReversed_=this.isReversed_;return S};
_.M.JSC$9248_getType=function(){return"text"};
_.M.getBrowserRangeObject=function(){return rP(this).range_};
_.M.getTextRangeCount=function(){return 1};
_.M.getTextRange=function(){return this};
var rP=function(S){var p;if(!(p=S.browserRangeWrapper_)){p=S.JSC$9248_getStartNode();var U=S.JSC$9248_getStartOffset(),Y=S.JSC$9248_getEndNode(),L=S.JSC$9248_getEndOffset();p=_.pT?new Ar(dwc(p,U,Y,L)):_.SR?new q0(dwc(p,U,Y,L)):new KC(dwc(p,U,Y,L));p=S.browserRangeWrapper_=p}return p};
_.M=bp.prototype;_.M.getContainer=function(){return rP(this).getContainer()};
_.M.JSC$9248_getStartNode=function(){return this.startNode_||(this.startNode_=rP(this).range_.startContainer)};
_.M.JSC$9248_getStartOffset=function(){return this.startOffset_!=null?this.startOffset_:this.startOffset_=rP(this).range_.startOffset};
_.M.JSC$9248_getEndNode=function(){return this.endNode_||(this.endNode_=rP(this).range_.endContainer)};
_.M.JSC$9248_getEndOffset=function(){return this.endOffset_!=null?this.endOffset_:this.endOffset_=rP(this).range_.endOffset};
_.M.isReversed=function(){return this.isReversed_};
_.M.JSC$9248_containsRange=function(S,p){if(S.JSC$9248_getType()=="text"){var U=rP(this);S=rP(S);p=p&&!S.isCollapsed();S=S.range_;U=p?U.compareBrowserRangeEndpoints(S,0,1)>=0&&U.compareBrowserRangeEndpoints(S,1,0)<=0:U.compareBrowserRangeEndpoints(S,0,0)>=0&&U.compareBrowserRangeEndpoints(S,1,1)<=0}else U=!1;return U};
_.M.isCollapsed=function(){return rP(this).isCollapsed()};
_.M.JSC$9248_getText=function(){return rP(this).range_.toString()};
_.M.__iterator__=function(){return new yq(this.JSC$9248_getStartNode(),this.JSC$9248_getStartOffset(),this.JSC$9248_getEndNode(),this.JSC$9248_getEndOffset())};
_.M.select=function(){rP(this).select(this.isReversed_)};
_.M.JSC$9248_removeContents=function(){var S=rP(this).range_;S.extractContents();if(S.startContainer.hasChildNodes()&&(S=S.startContainer.childNodes[S.startOffset])){var p=S.previousSibling;$Gd(S)==""&&_.yz(S);p&&$Gd(p)==""&&_.yz(p)}this.startNode_=this.startOffset_=this.endNode_=this.endOffset_=null};
_.M.insertNode=function(S,p){S=rP(this).insertNode(S,p);this.startNode_=this.startOffset_=this.endNode_=this.endOffset_=null;return S};
_.M.collapse=function(S){S=this.isReversed()?!S:S;this.browserRangeWrapper_&&this.browserRangeWrapper_.collapse(S);S?(this.endNode_=this.startNode_,this.endOffset_=this.startOffset_):(this.startNode_=this.endNode_,this.startOffset_=this.endOffset_);this.isReversed_=!1};var kIc=function(){};
_.q_(kIc,Yht);kIc.prototype.JSC$9248_containsRange=function(S,p){var U=JK(this);S=JK(S);return(p?$7:_.tNw)(S,function(Y){return $7(U,function(L){return L.JSC$9248_containsRange(Y,p)})})};
kIc.prototype.insertNode=function(S,p){p?_.b1(S,this.JSC$9248_getStartNode()):_.jc(S,this.JSC$9248_getEndNode());return S};var Hpq,DwQ=DD().JSC$7335_document_.documentElement;Hpq=DwQ.requestFullscreen?"fullscreenchange":DwQ.webkitRequestFullscreen?"webkitfullscreenchange":DwQ.mozRequestFullScreen?"mozfullscreenchange":DwQ.msRequestFullscreen?"MSFullscreenChange":"fullscreenchange";var zUI=function(){var S=DD().JSC$7335_document_;return!!(S.webkitIsFullScreen||S.mozFullScreen||S.msFullscreenElement||S.fullscreenElement)};var Gx=function(){this.browserRanges_=[];this.ranges_=[];this.container_=this.sortedRanges_=null};
_.q_(Gx,kIc);_.M=Gx.prototype;_.M.clone=function(){var S=new Gx;S.browserRanges_=_.qG(this.browserRanges_);return S};
_.M.JSC$9248_getType=function(){return"mutli"};
_.M.getBrowserRangeObject=function(){return this.browserRanges_[0]};
_.M.getTextRangeCount=function(){return this.browserRanges_.length};
_.M.getTextRange=function(S){this.ranges_[S]||(this.ranges_[S]=TBt(Vtt(this.browserRanges_[S])));return this.ranges_[S]};
_.M.getContainer=function(){if(!this.container_){for(var S=[],p=this.getTextRangeCount(),U=0;U<p;U++)S.push(this.getTextRange(U).getContainer());this.container_=fwH.apply(null,S)}return this.container_};
var hK=function(S){S.sortedRanges_||(S.sortedRanges_=JK(S),S.sortedRanges_.sort(function(p,U){var Y=p.JSC$9248_getStartNode();p=p.JSC$9248_getStartOffset();var L=U.JSC$9248_getStartNode();U=U.JSC$9248_getStartOffset();return Y==L&&p==U?0:Opt(Y,p,L,U)?1:-1}));
return S.sortedRanges_};
_.M=Gx.prototype;_.M.JSC$9248_getStartNode=function(){return hK(this)[0].JSC$9248_getStartNode()};
_.M.JSC$9248_getStartOffset=function(){return hK(this)[0].JSC$9248_getStartOffset()};
_.M.JSC$9248_getEndNode=function(){return _.le(hK(this)).JSC$9248_getEndNode()};
_.M.JSC$9248_getEndOffset=function(){return _.le(hK(this)).JSC$9248_getEndOffset()};
_.M.isCollapsed=function(){return this.browserRanges_.length==0||this.browserRanges_.length==1&&this.getTextRange(0).isCollapsed()};
_.M.JSC$9248_getText=function(){return JK(this).map(function(S){return S.JSC$9248_getText()}).join("")};
_.M.__iterator__=function(){return new RX(this)};
_.M.select=function(){var S=this.getWindow().getSelection();S.removeAllRanges();for(var p=this.getTextRangeCount(),U=0;U<p;U++)S.addRange(this.getTextRange(U).getBrowserRangeObject())};
_.M.JSC$9248_removeContents=function(){JK(this).forEach(function(S){S.JSC$9248_removeContents()})};
_.M.collapse=function(S){if(!this.isCollapsed()){var p=S?this.getTextRange(0):this.getTextRange(this.getTextRangeCount()-1);this.ranges_=[];this.container_=this.sortedRanges_=null;p.collapse(S);this.ranges_=[p];this.sortedRanges_=[p];this.browserRanges_=[p.getBrowserRangeObject()]}};
var RX=function(S){this.iterators_=null;this.currentIdx_=0;S&&(this.iterators_=hK(S).map(function(p){return _.e8l(p)}));
nC.call(this,S?this.JSC$9254_getStartNode():null,!1,!0)};
_.q_(RX,LpH);_.M=RX.prototype;_.M.JSC$9254_getStartNode=function(){return this.iterators_[0].JSC$9254_getStartNode()};
_.M.isLast=function(){return this.iterators_[this.currentIdx_].isLast()};
_.M.next=function(){for(;this.currentIdx_<this.iterators_.length;){var S=this.iterators_[this.currentIdx_],p=S.next();if(p.done)this.currentIdx_++;else return Qq(this,S.node,S.tagType,S.depth),p}return cF};
_.M.JSC$9246_copyFrom=function(S){this.iterators_=_.qG(S.iterators_);RX.superClass_.JSC$9246_copyFrom.call(this,S)};
_.M.clone=function(){var S=new RX(null);S.JSC$9246_copyFrom(this);return S};var Q2q,Opt;_.Dp=function(){var S=window.getSelection();return S&&Q2q(S)};
Q2q=function(S){var p=!1;if(S.createRange)try{var U=S.createRange()}catch(L){return null}else if(S.rangeCount){if(S.rangeCount>1){U=new Gx;p=S.rangeCount;for(var Y=0;Y<p;Y++)U.browserRanges_.push(S.getRangeAt(Y));return U}U=S.getRangeAt(0);p=Opt(S.anchorNode,S.anchorOffset,S.focusNode,S.focusOffset)}else return null;return TBt(Vtt(U),p)};
_.FD=function(S,p){return _.jd(S,p,S,p)};
_.XD=function(S,p,U,Y){return _.jd(S,p,U,Y)};
Opt=function(S,p,U,Y){if(S==U)return Y<p;var L;if(S.nodeType==1&&p)if(L=S.childNodes[p])S=L,p=0;else if(_.C2(S,U))return!0;if(U.nodeType==1&&Y)if(L=U.childNodes[Y])U=L,Y=0;else if(_.C2(U,S))return!1;return(awE(S,U)||p-Y)>0};var PC=function(){_.OD.call(this);this.reader_=new FileReader;this.reader_.onloadstart=(0,_.RW)(this.dispatchProgressEvent_,this);this.reader_.onprogress=(0,_.RW)(this.dispatchProgressEvent_,this);this.reader_.onload=(0,_.RW)(this.dispatchProgressEvent_,this);this.reader_.onabort=(0,_.RW)(this.dispatchProgressEvent_,this);this.reader_.onerror=(0,_.RW)(this.dispatchProgressEvent_,this);this.reader_.onloadend=(0,_.RW)(this.dispatchProgressEvent_,this)};
_.q_(PC,_.OD);PC.prototype.abort=function(){try{this.reader_.abort()}catch(S){throw new aCH(S,"aborting read");}};
PC.prototype.getError=function(){return this.reader_.error&&new aCH(this.reader_.error,"reading file")};
PC.prototype.dispatchProgressEvent_=function(S){this.dispatchEvent(new fCl(S,this))};
PC.prototype.disposeInternal=function(){PC.superClass_.disposeInternal.call(this);delete this.reader_};
var Jaq=function(S){var p=new PC,U=nde(p);p.reader_.readAsArrayBuffer(S);return U},yaH=function(S){var p=new PC,U=nde(p);
p.reader_.readAsDataURL(S);return U},nde=function(S){var p=new uR;
S.listen("loadend",_.Hd(function(U,Y){var L=Y.reader_.result,I=Y.getError();L==null||I?U.errback(I):U.callback(L);Y.dispose()},p,S));
return p};var ZF=function(){_.OD.call(this);this.hysteresisDistance_=0;this.dragLists_=[];this.dragItems_=[];this.dragItemForHandle_={};this.JSC$9288_eventHandler_=new _.cr(this);this.JSC$9288_isInitialized_=!1};
_.q_(ZF,_.OD);var Kpq=new _.MN("d"),bpe=new _.MN("beforedragstart"),j2w=new _.MN("dragstart"),raQ=new _.MN("beforedragmove"),GIP=new _.MN("dragmove"),hUt=new _.MN("beforedragend"),RUq=new _.MN("dragend"),FpI=new _.MN("e");ZF.prototype.isDragging=function(){return!!this.JSC$9288_dragger_};
var Xdm=function(S,p){p.dlgGrowthDirection_=0;p.dlgDragHoverClass_=void 0;p.dlgDragPermission=0;S.dragLists_.push(p)},P5t=function(S,p){S.getHandleForDragItem_=p};
ZF.prototype.init=function(){if(!this.JSC$9288_isInitialized_){for(var S=this.dragLists_.length,p=0;p<S;p++)for(var U=_.rX(this.dragLists_[p]),Y=U.length,L=0;L<Y;++L){var I=U[L],V=this.getHandleForDragItem_(I),W=_.Ul(V);this.dragItemForHandle_[W]=I;this.dragItemHoverClasses_&&(this.JSC$9288_eventHandler_.listen(I,"mouseover",this.handleDragItemMouseover_),this.JSC$9288_eventHandler_.listen(I,"mouseout",this.handleDragItemMouseout_));this.dragItemHandleHoverClasses_&&(this.JSC$9288_eventHandler_.listen(V,
"mouseover",this.handleDragItemHandleMouseover_),this.JSC$9288_eventHandler_.listen(V,"mouseout",this.handleDragItemHandleMouseout_));this.dragItems_.push(I);this.JSC$9288_eventHandler_.listen(V,["mousedown","touchstart"],this.handlePotentialDragStart_)}this.JSC$9288_isInitialized_=!0}};
ZF.prototype.disposeInternal=function(){this.JSC$9288_eventHandler_.dispose();for(var S=this.dragLists_.length,p=0;p<S;p++){var U=this.dragLists_[p];U.dlgGrowthDirection_=void 0;U.dlgDragHoverClass_=void 0}this.dragLists_.length=0;this.dragItems_.length=0;this.dragItemForHandle_=null;Zpc(this);ZF.superClass_.disposeInternal.call(this)};
var s2l=function(S,p){for(var U=S.dragLists_.length,Y=0;Y<U;Y++){var L=S.dragLists_[Y];L.dlgBounds_=Z4e(L)}U=S.dragItems_.length;for(Y=0;Y<U;Y++)L=S.dragItems_[Y],L!=p&&(L.dlgBounds_=Z4e(L))};
_.M=ZF.prototype;
_.M.handlePotentialDragStart_=function(S){var p=_.Ul(S.currentTarget);p=this.dragItemForHandle_[p];if(p.parentElement.dlgDragPermission!=2){this.currDragItem_=p;a:{p=this.currDragItem_;for(var U=p.cloneNode(!0),Y=K2("TEXTAREA",p),L=K2("TEXTAREA",U),I=0;I<Y.length;I++)L[I].value=Y[I].value;switch(p.tagName){case "TR":p=_.n0("TABLE",null,_.n0("TBODY",null,U));break a;case "TD":case "TH":p=_.n0("TABLE",null,_.n0("TBODY",null,_.n0("TR",null,U)));break a;case "TEXTAREA":U.value=p.value;default:p=U;break a}p=
void 0}this.draggerEl_=p;this.draggerElClasses_&&el(this.draggerEl_,this.draggerElClasses_||[]);this.draggerEl_.style.margin="0";this.draggerEl_.style.position="absolute";this.draggerEl_.style.visibility="hidden";_.ZD(this.currDragItem_).body.appendChild(this.draggerEl_);U=_.eb(this.currDragItem_);p=this.draggerEl_;Y=_.eb(p);if(U instanceof _.Xp){var V=U.y;U=U.x}XX(p,p.offsetLeft+(U-Y.x),p.offsetTop+(Number(V)-Y.y));this.JSC$9288_dragger_=new _.PF(this.draggerEl_);_.lgj(this.JSC$9288_dragger_,this.hysteresisDistance_);
_.Kz(this.JSC$9288_dragger_,"start",this.handleDragStart_,!1,this);_.Kz(this.JSC$9288_dragger_,"end",this.handleDragEnd_,!1,this);_.Kz(this.JSC$9288_dragger_,"earlycancel",this.JSC$9290_cleanup_,!1,this);this.dispatchEvent(new sb(Kpq,this,S,this.currDragItem_,this.draggerEl_,this.JSC$9288_dragger_));this.JSC$9288_dragger_.startDrag(S)}};
_.M.handleDragStart_=function(S){if(this.dispatchEvent(new sb(bpe,this,S.browserEvent,this.currDragItem_,null,null))){this.origList_=this.currDragItem_.parentNode;this.origNextItem_=_.uEl(this.currDragItem_);this.currHoverList_=this.origList_;this.currDragItemClasses_?el(this.currDragItem_,this.currDragItemClasses_||[]):this.currDragItem_.style.visibility="hidden";var p=twe(this.draggerEl_);this.draggerEl_.halfWidth=p.width/2;this.draggerEl_.halfHeight=p.height/2;p=this.draggerEl_.getBoundingClientRect();
var U=S.clientY,Y=agm(this.JSC$9288_dragger_,S.clientX);if(Y>p.right){var L=this.currDragItem_.getBoundingClientRect();this.JSC$9288_dragger_.deltaX=Y-(Y-L.left)/L.width*p.width}U=fgw(this.JSC$9288_dragger_,U);U>p.bottom&&(this.JSC$9288_dragger_.deltaY+=U-p.bottom);this.draggerEl_.style.visibility="";this.currDragItem_.style.display="none";s2l(this,this.currDragItem_);this.currDragItem_.style.display="";_.Kz(this.JSC$9288_dragger_,"drag",this.handleDragMove_,!1,this);this.dispatchEvent(new sb(j2w,
this,S.browserEvent,this.currDragItem_,this.draggerEl_,this.JSC$9288_dragger_))}else S.preventDefault(),this.JSC$9290_cleanup_()};
_.M.handleDragMove_=function(S){var p=_.eb(this.draggerEl_);p=new _.Xp(p.x+this.draggerEl_.halfWidth,p.y+this.draggerEl_.halfHeight);a:{var U=null;if(this.currDragItem_.style.display!="none"){U=this.currDragItem_.parentNode;var Y=Z4e(U);if(eUQ(p,Y))break a}Y=this.dragLists_.length;for(var L=0;L<Y;L++){var I=this.dragLists_[L];if(I!=U&&eUQ(p,I.dlgBounds_)){U=I;break a}}U=null}if(U){if(U==null)throw Error("Td");Y=0;L=!1;I=void 0;switch(U.dlgGrowthDirection_){case 0:Y=p.y;var V=gdc;var W=uge;break;case 4:L=
!0;case 2:Y=p.x;V=wdd;W=uge;break;case 5:L=!0;case 3:Y=p.x,V=l9t,W=a9m}for(var O=null,D,z=_.rX(U),Q=z.length,J=0;J<Q;J++){var K=z[J];if(K!=this.currDragItem_){var G=V(K.dlgBounds_);if(L){var X=f9q(K,p);I===void 0&&(I=X);W(Y,G)&&(D==void 0||X<I||X==I&&(W(G,D)||G==D))&&(O=K,D=G);X<I&&(I=X)}else W(Y,G)&&(D==void 0||W(G,D))&&(O=K,D=G)}}V=O!==null&&f9q(O,p)>I?null:O}else V=null;if(!this.dispatchEvent(new sb(raQ,this,S,this.currDragItem_,this.draggerEl_,this.JSC$9288_dragger_,p,U,V)))return!1;if(U&&U.dlgDragPermission!=
1)this.currDragItem_.parentNode==U&&_.uEl(this.currDragItem_)==V||U.insertBefore(this.currDragItem_,V),this.currDragItem_.style.display="",U.dlgDragHoverClass_&&_.vX(U,U.dlgDragHoverClass_);else for(this.currDragItem_.style.display="none",W=this.dragLists_.length,D=0;D<W;D++)Y=this.dragLists_[D],Y.dlgDragHoverClass_&&_.ms(Y,Y.dlgDragHoverClass_);U!=this.currHoverList_&&(this.currHoverList_=U,s2l(this,this.currDragItem_));this.dispatchEvent(new sb(GIP,this,S,this.currDragItem_,this.draggerEl_,this.JSC$9288_dragger_,
p,U,V));return!1};
_.M.JSC$9290_cleanup_=function(){Zpc(this);this.JSC$9288_dragger_=this.draggerEl_=this.origNextItem_=this.origList_=this.currHoverList_=this.currDragItem_=null;for(var S=this.dragLists_.length,p=0;p<S;p++)this.dragLists_[p].dlgBounds_=null;S=this.dragItems_.length;for(p=0;p<S;p++)this.dragItems_[p].dlgBounds_=null};
_.M.handleDragEnd_=function(S){if(!this.dispatchEvent(new sb(hUt,this,S,this.currDragItem_,this.draggerEl_,this.JSC$9288_dragger_)))return!1;Zpc(this);this.dispatchEvent(new sb(RUq,this,S,this.currDragItem_,this.draggerEl_,this.JSC$9288_dragger_));this.JSC$9290_cleanup_();return!0};
var Zpc=function(S){_.t9(S.JSC$9288_dragger_);var p=S.draggerEl_&&S.draggerEl_.parentElement;S.draggerEl_&&_.yz(S.draggerEl_);S.currDragItem_&&S.currDragItem_.style.display=="none"&&(S.origList_.insertBefore(S.currDragItem_,S.origNextItem_),S.currDragItem_.style.display="");S.currDragItemClasses_&&S.currDragItem_?aoQ(S.currDragItem_,S.currDragItemClasses_||[]):S.currDragItem_&&(S.currDragItem_.style.visibility="");for(var U=S.dragLists_.length,Y=0;Y<U;Y++){var L=S.dragLists_[Y];L.dlgDragHoverClass_&&
_.ms(L,L.dlgDragHoverClass_)}p&&S.dispatchEvent(new sb(FpI,S,null,S.currDragItem_,S.draggerEl_,S.JSC$9288_dragger_))};
_.M=ZF.prototype;_.M.getHandleForDragItem_=function(S){return S};
_.M.handleDragItemMouseover_=function(S){el(S.currentTarget,this.dragItemHoverClasses_||[])};
_.M.handleDragItemMouseout_=function(S){aoQ(S.currentTarget,this.dragItemHoverClasses_||[])};
_.M.handleDragItemHandleMouseover_=function(S){el(S.currentTarget,this.dragItemHandleHoverClasses_||[])};
_.M.handleDragItemHandleMouseout_=function(S){aoQ(S.currentTarget,this.dragItemHandleHoverClasses_||[])};
var eUQ=function(S,p){return S.x>p.left&&S.x<p.left+p.width&&S.y>p.top&&S.y<p.top+p.height},f9q=function(S,p){S=S.dlgBounds_;
return Math.abs(p.y-(S.top+(S.height-1)/2))},gdc=function(S){return S.top+S.height-1},wdd=function(S){return S.left+S.width-1},l9t=function(S){return S.left||0},uge=function(S,p){return S<p},a9m=function(S,p){return S>p},sb=function(S,p,U,Y,L,I){_.Iw.call(this,S);
this.event=U;this.currDragItem=Y;this.draggerEl=L;this.JSC$9292_dragger=I};
_.q_(sb,_.Iw);_.q_(Sm,_.hY);var C5m=new _.Xp(0,0);Sm.prototype.JSC$9296_onTick_=function(){this.containerNode_.scrollTop+=this.scrollDelta_.y;this.containerNode_.scrollLeft+=this.scrollDelta_.x};
Sm.prototype.JSC$9296_onMouseMove=function(S){var p=this.containerIsActuallyContent_?C5m:Hi(DD(this.containerNode_)),U=this.horizontalScrolling_?this.calculateScrollDelta(S.clientX+p.x,this.scrollBounds_.left,this.scrollBounds_.width):0,Y=this.calculateScrollDelta(S.clientY+p.y,this.scrollBounds_.top,this.scrollBounds_.height);this.scrollDelta_.x=U;this.scrollDelta_.y=Y;!(U=!U&&!Y)&&(U=this.constrainScroll_)&&(U=S.clientX+p.x,S=S.clientY+p.y,p=this.containerBounds_,U=!(p.left<=U&&p.left+p.width>=
U&&p.top<=S&&p.top+p.height>=S));U?this.scrollTimer_.stop():this.scrollTimer_.enabled||this.scrollTimer_.start()};
Sm.prototype.calculateScrollDelta=function(S,p,U){var Y=0;S<p?Y=-8:S>p+U&&(Y=8);return Y};
Sm.prototype.disposeInternal=function(){Sm.superClass_.disposeInternal.call(this);this.JSC$9294_eventHandler_.dispose();this.scrollTimer_.dispose()};var xwm={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"}}},ed=xwm;ed=xwm;var gP={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 Edq=function(){},fK=function(S){if(typeof S=="number"){var p=new Edq;
p.standardOffset_=S;var U=S;if(U==0)U="Etc/GMT";else{var Y=["Etc/GMT",U<0?"-":"+"];U=Math.abs(U);Y.push(Math.floor(U/60)%100);U%=60;U!=0&&Y.push(":",_.NO(U,2));U=Y.join("")}p.timeZoneId_=U;U=S;U==0?U="UTC":(Y=["UTC",U<0?"+":"-"],U=Math.abs(U),Y.push(Math.floor(U/60)%100),U%=60,U!=0&&Y.push(":",U),U=Y.join(""));S=mwm(S);p.tzNames_=[U,U];p.tzNamesExt_={STD_LONG_NAME_GMT:S,STD_GENERIC_LOCATION:S};p.transitions_=[];return p}p=new Edq;p.timeZoneId_=S.id;p.standardOffset_=-S.std_offset;p.tzNames_=S.names;
p.tzNamesExt_=S.names_ext;p.transitions_=S.transitions;return p},mwm=function(S){var p=["GMT"];
p.push(S<=0?"+":"-");S=Math.abs(S);p.push(_.NO(Math.floor(S/60)%100,2),":",_.NO(S%60,2));return p.join("")},odw=function(S,p){p=Date.UTC(p.getUTCFullYear(),p.getUTCMonth(),p.getUTCDate(),p.getUTCHours(),p.getUTCMinutes())/36E5;
for(var U=0;U<S.transitions_.length&&p>=S.transitions_[U];)U+=2;return U==0?0:S.transitions_[U-1]},vdj=function(S,p){S=S.standardOffset_-odw(S,p);
return S===-1440?0:S};var CK=function(S,p){this.patternParts_=[];this.JSC$9307_dateTimeSymbols_=p||y4;typeof S=="number"?$wH(this,S):ipm(this,S)},NBI=[/^'(?:[^']|'')*('|$)/,
/^(?: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]+/],up=function(S){return S.getHours?S.getHours():0},ipm=function(S,p){for(tqr&&(p=p.replace(/\u200f/g,""));p;){for(var U=p,Y=0;Y<NBI.length;++Y){var L=p.match(NBI[Y]);
if(L){var I=L[0];p=p.substring(I.length);Y==0&&(I=="''"?I="'":(I=I.substring(1,L[1]=="'"?I.length-1:I.length),I=I.replace(/''/g,"'")));S.patternParts_.push({text:I,type:Y});break}}if(U===p)throw Error("Ud`"+p);}};
CK.prototype.format=function(S,p){if(!S)throw Error("Vd");var U=p?(S.getTimezoneOffset()-vdj(p,S))*6E4:0,Y=U?new Date(S.getTime()+U):S,L=Y;p&&Y.getTimezoneOffset()!=S.getTimezoneOffset()&&(Y=new Date(Y.getTime()+(Y.getTimezoneOffset()-S.getTimezoneOffset())*6E4),L=new Date(S.getTime()+(U+(U>0?-864E5:864E5))));U=[];for(var I=0;I<this.patternParts_.length;++I){var V=this.patternParts_[I].text;1==this.patternParts_[I].type?U.push(BBc(this,V,S,Y,L,p)):U.push(V)}return U.join("")};
var $wH=function(S,p){if(p<4)var U=S.JSC$9307_dateTimeSymbols_.DATEFORMATS[p];else if(p<8)U=S.JSC$9307_dateTimeSymbols_.TIMEFORMATS[p-4];else if(p<12)U=S.JSC$9307_dateTimeSymbols_.DATETIMEFORMATS[p-8],U=U.replace("{1}",S.JSC$9307_dateTimeSymbols_.DATEFORMATS[p-8]),U=U.replace("{0}",S.JSC$9307_dateTimeSymbols_.TIMEFORMATS[p-8]);else if(p===12)U=S.JSC$9307_dateTimeSymbols_.DATEFORMATS[0].replace(/[^EMd]*yy*[^EMd]*/,"");else if(p===13)U=S.JSC$9307_dateTimeSymbols_.DATEFORMATS[2].replace(/[^EMd]*yy*[^EMd]*/,
"");else{$wH(S,10);return}ipm(S,U)},wP=function(S,p){p=String(p);
S=S.JSC$9307_dateTimeSymbols_||y4;if(S.ZERODIGIT!==void 0&&!A1w){for(var U=[],Y=0;Y<p.length;Y++){var L=p.charCodeAt(Y);U.push(48<=L&&L<=57?String.fromCharCode(S.ZERODIGIT+L-48):p.charAt(Y))}p=U.join("")}return p},A1w=!1,tqr=!1,Aam=function(S,p,U,Y){U=U.getFullYear();
U<=0&&Y&&(U=1-U);return wP(S,qhE(U,p))},qhE=function(S,p){p==2&&(S%=100);
S<0&&p++;return _.NO(S,p)},lp=function(S){if(!(S.getHours&&S.getSeconds&&S.getMinutes))throw Error("Wd");
},ttl=function(S,p){lp(p);
p=up(p);return S.JSC$9307_dateTimeSymbols_.AMPMS[p>=12&&p<24?1:0]},BBc=function(S,p,U,Y,L,I){var V=p.length;
switch(p.charAt(0)){case "G":return U=Y.getFullYear()>0?1:0,V>=4?S.JSC$9307_dateTimeSymbols_.ERANAMES[U]:S.JSC$9307_dateTimeSymbols_.ERAS[U];case "y":return Aam(S,V,Y,!0);case "Y":return U=(new Date(ShQ(Y.getFullYear(),Y.getMonth(),Y.getDate(),S.JSC$9307_dateTimeSymbols_.FIRSTWEEKCUTOFFDAY,S.JSC$9307_dateTimeSymbols_.FIRSTDAYOFWEEK))).getFullYear(),V==2&&(U%=100),wP(S,qhE(U,V));case "u":return Aam(S,V,Y,!1);case "M":a:switch(U=Y.getMonth(),V){case 5:V=S.JSC$9307_dateTimeSymbols_.NARROWMONTHS[U];break a;
case 4:V=S.JSC$9307_dateTimeSymbols_.MONTHS[U];break a;case 3:V=S.JSC$9307_dateTimeSymbols_.SHORTMONTHS[U];break a;default:V=wP(S,_.NO(U+1,V))}return V;case "k":return lp(L),wP(S,_.NO(up(L)||24,V));case "S":return wP(S,(L.getMilliseconds()/1E3).toFixed(Math.min(3,V)).slice(2)+(V>3?_.NO(0,V-3):""));case "E":return U=Y.getDay(),V>=4?S.JSC$9307_dateTimeSymbols_.WEEKDAYS[U]:S.JSC$9307_dateTimeSymbols_.SHORTWEEKDAYS[U];case "a":return ttl(S,L);case "b":return ttl(S,L);case "B":return ttl(S,L);case "h":return lp(L),
wP(S,_.NO(up(L)%12||12,V));case "K":return lp(L),wP(S,_.NO(up(L)%12,V));case "H":return lp(L),wP(S,_.NO(up(L),V));case "c":a:switch(U=Y.getDay(),V){case 5:V=S.JSC$9307_dateTimeSymbols_.STANDALONENARROWWEEKDAYS[U];break a;case 4:V=S.JSC$9307_dateTimeSymbols_.STANDALONEWEEKDAYS[U];break a;case 3:V=S.JSC$9307_dateTimeSymbols_.STANDALONESHORTWEEKDAYS[U];break a;default:V=wP(S,_.NO(U,1))}return V;case "L":a:switch(U=Y.getMonth(),V){case 5:V=S.JSC$9307_dateTimeSymbols_.STANDALONENARROWMONTHS[U];break a;
case 4:V=S.JSC$9307_dateTimeSymbols_.STANDALONEMONTHS[U];break a;case 3:V=S.JSC$9307_dateTimeSymbols_.STANDALONESHORTMONTHS[U];break a;default:V=wP(S,_.NO(U+1,V))}return V;case "Q":return U=Math.floor(Y.getMonth()/3),V<4?S.JSC$9307_dateTimeSymbols_.SHORTQUARTERS[U]:S.JSC$9307_dateTimeSymbols_.QUARTERS[U];case "d":return wP(S,_.NO(Y.getDate(),V));case "m":return lp(L),wP(S,_.NO(L.getMinutes?L.getMinutes():0,V));case "s":return lp(L),wP(S,_.NO(L.getSeconds(),V));case "v":return(I||fK(U.getTimezoneOffset())).timeZoneId_;
case "V":return S=I||fK(U.getTimezoneOffset()),V<=2?S.timeZoneId_:odw(S,U)>0?S.tzNamesExt_.DST_GENERIC_LOCATION!==void 0?S.tzNamesExt_.DST_GENERIC_LOCATION:S.tzNamesExt_.DST_GENERIC_LOCATION:S.tzNamesExt_.STD_GENERIC_LOCATION!==void 0?S.tzNamesExt_.STD_GENERIC_LOCATION:S.tzNamesExt_.STD_GENERIC_LOCATION;case "w":return U=ShQ(L.getFullYear(),L.getMonth(),L.getDate(),S.JSC$9307_dateTimeSymbols_.FIRSTWEEKCUTOFFDAY,S.JSC$9307_dateTimeSymbols_.FIRSTDAYOFWEEK),wP(S,_.NO(Math.floor(Math.round((U-(new Date((new Date(U)).getFullYear(),
0,1)).valueOf())/864E5)/7)+1,V));case "z":return S=I||fK(U.getTimezoneOffset()),V<4?S.tzNames_[odw(S,U)>0?2:0]:S.tzNames_[odw(S,U)>0?3:1];case "Z":return p=I||fK(U.getTimezoneOffset()),V<4?(V=-vdj(p,U),S=[V<0?"-":"+"],V=Math.abs(V),S.push(_.NO(Math.floor(V/60)%100,2),_.NO(V%60,2)),V=S.join("")):V=wP(S,mwm(vdj(p,U))),V;default:return""}};var cac=/^[ \t\xA0\u1680\u180e\u2000-\u200a\u202f\u205f\u3000]/,Scc=/^[\s\xA0\u1680\u180e\u2000-\u200a\u202f\u205f\u3000]+/,WRe=function(S){this.patternParts_=[];this.JSC$9316_dateTimeSymbols_=y4;if(typeof S=="number"){S>11&&(S=10);if(S<4)var p=this.JSC$9316_dateTimeSymbols_.DATEFORMATS[S];else S<8?p=this.JSC$9316_dateTimeSymbols_.TIMEFORMATS[S-4]:(p=this.JSC$9316_dateTimeSymbols_.DATETIMEFORMATS[S-8],p=p.replace("{1}",this.JSC$9316_dateTimeSymbols_.DATEFORMATS[S-8]),p=p.replace("{0}",this.JSC$9316_dateTimeSymbols_.TIMEFORMATS[S-
8]));pJj(this,p)}else pJj(this,S)},pJj=function(S,p){for(var U=!1,Y="",L=0;L<p.length;L++){var I=p.charAt(L);
if(cac.test(I))for(Y.length>0&&(S.patternParts_.push({text:Y,count:0,abutStart:!1,numeric:!1}),Y=""),S.patternParts_.push({text:" ",count:0,abutStart:!1,numeric:!1});L<p.length-1&&p.charAt(L+1)==" ";)L++;else if(U)I=="'"?L+1<p.length&&p.charAt(L+1)=="'"?(Y+="'",L++):U=!1:Y+=I;else if("GyMdkHmsSEDabBhKzZvQL".indexOf(I)>=0){Y.length>0&&(S.patternParts_.push({text:Y,count:0,abutStart:!1,numeric:!1}),Y="");for(var V=p.charAt(L),W=L+1;W<p.length&&p.charAt(W)==V;)W++;V=W-L;V<=0?W=!1:(W="MydhHmsSDkK".indexOf(I),
W=W>0||W==0&&V<3);S.patternParts_.push({text:I,count:V,abutStart:!1,numeric:W});L+=V-1}else I=="'"?L+1<p.length&&p.charAt(L+1)=="'"?(Y+="'",L++):U=!0:Y+=I}Y.length>0&&S.patternParts_.push({text:Y,count:0,abutStart:!1,numeric:!1});p=!1;for(U=0;U<S.patternParts_.length;U++)S.patternParts_[U].numeric?!p&&U+1<S.patternParts_.length&&S.patternParts_[U+1].numeric&&(p=!0,S.patternParts_[U].abutStart=!0):p=!1};
WRe.prototype.parse=function(S,p,U){var Y=!1,L=!1;U&&(Y=U.predictive||!1,L=U.validate||!1);if(Y)for(U=0;U<this.patternParts_.length;U++){var I=this.patternParts_[U];if(I.count>0&&("abBhHkKm".indexOf(I.text.charAt(0))<0||I.count>2||I.abutStart))throw Error("Xd`"+I.text.charAt(0));}I=new U9E;U=[0];I.dayPeriodIndex=-1;for(var V=0;V<this.patternParts_.length&&!(Y&&U[0]>=S.length);V++){if(this.patternParts_[V].count==0){a:{var W=S;var O=U,D=this.patternParts_[V],z=Y;if(D.text.match(cac)!=null){if(D=O[0],
Ycd(W,O),O[0]>D){W=!0;break a}}else{if(W.indexOf(D.text,O[0])==O[0]){O[0]+=D.text.length;W=!0;break a}if(z&&D.text.indexOf(W.substring(O[0]))==0){O[0]+=W.length-O[0];W=!0;break a}}W=!1}if(W)continue;return 0}if(this.patternParts_[V].abutStart){a:{O=S;D=U;z=V;var Q=D[0],J=0;for(W=z;W<this.patternParts_.length;W++){var K=this.patternParts_[W],G=K.count;if(G===0)break;if(W==z&&(G-=J,J++,G==0)){W=0;break a}var X=W>z&&K.numeric,Z=D[0];if(!LAw(this,O,D,K,G,I,!1)||X&&D[0]-Z<G)W=z-1,D[0]=Q}W-=z}if(W<=0)return 0;
V+=W-1}else if(!LAw(this,S,U,this.patternParts_[V],0,I,Y))return 0}a:{S=L;if(p==null)throw Error("Yd");I.era!=void 0&&I.year!=void 0&&I.era==0&&I.year>0&&(I.year=-(I.year-1));I.year!=void 0&&p.setFullYear(I.year);Y=p.getDate();p.setDate(1);I.month!=void 0&&p.setMonth(I.month);I.day!=void 0?p.setDate(I.day):(L=fyw(p.getFullYear(),p.getMonth()),p.setDate(Y>L?L:Y));typeof p.setHours==="function"&&(I.hours==void 0&&(I.hours=p.getHours()),I.hours<12&&(I.ampm!=void 0&&I.ampm>0?I.hours+=12:I.dayPeriodName!==
void 0&&("isPm noon afternoon1 afternoon2 evening1 evening2".split(" ").includes(I.dayPeriodName)||["night1","night2"].includes(I.dayPeriodName)&&I.hours>=6)&&(I.hours+=12)),p.setHours(I.hours));typeof p.setMinutes==="function"&&I.minutes!=void 0&&p.setMinutes(I.minutes);typeof p.setSeconds==="function"&&I.seconds!=void 0&&p.setSeconds(I.seconds);typeof p.setMilliseconds==="function"&&I.milliseconds!=void 0&&p.setMilliseconds(I.milliseconds);if(S&&(I.year&&I.year!=p.getFullYear()||I.month&&I.month!=
p.getMonth()||I.day&&I.day!=p.getDate()||I.hours&&I.hours>=24||I.minutes&&I.minutes>=60||I.seconds&&I.seconds>=60||I.milliseconds&&I.milliseconds>=1E3))p=!1;else{I.tzOffset!=void 0&&p.setTime(p.getTime()+(I.tzOffset-p.getTimezoneOffset())*60*1E3);I.ambiguousYear&&(S=new Date,S.setFullYear(S.getFullYear()-80),p.getTime()<S.getTime()&&p.setFullYear(S.getFullYear()+100));if(I.dayOfWeek!=void 0)if(I.day==void 0)I=(7+I.dayOfWeek-p.getDay())%7,I>3&&(I-=7),S=p.getMonth(),p.setDate(p.getDate()+I),p.getMonth()!=
S&&p.setDate(p.getDate()+(I>0?-7:7));else if(I.dayOfWeek!=p.getDay()){p=!1;break a}p=!0}}return p?U[0]:0};
var LAw=function(S,p,U,Y,L,I,V){Ycd(p,U);if(Y.numeric&&L>0&&U[0]+L>p.length)return!1;switch(Y.text.charAt(0)){case "G":return aX(p,U,[S.JSC$9316_dateTimeSymbols_.ERAS],function(W){return I.era=W}),!0;
case "M":case "L":return M4E(S,p,U,L,Y,I);case "E":return aX(p,U,[S.JSC$9316_dateTimeSymbols_.WEEKDAYS,S.JSC$9316_dateTimeSymbols_.SHORTWEEKDAYS],function(W){return I.dayOfWeek=W});
case "B":case "b":return L=[],S=[[].concat(S.JSC$9316_dateTimeSymbols_.AMPMS)],L.push("isAm"),L.push("isPm"),p=aX(p,U,S,function(W){return I.dayPeriodIndex=W},V),I.dayPeriodName=L[I.dayPeriodIndex],V?p:!0;
case "a":return p=aX(p,U,[S.JSC$9316_dateTimeSymbols_.AMPMS],function(W){return I.ampm=W},V),V?p:!0;
case "y":return I4E(S,p,U,Y,L,I);case "Q":return aX(p,U,[S.JSC$9316_dateTimeSymbols_.QUARTERS,S.JSC$9316_dateTimeSymbols_.SHORTQUARTERS],function(W){I.month=W*3;I.day=1});
case "d":return fC(S,p,U,Y,L,function(W){I.day=W}),!0;
case "S":return d9c(S,p,U,L,I);case "h":case "K":case "H":case "k":return p=fC(S,p,U,Y,L,function(W){I.hours=Y.text.charAt(0)==="h"&&W===12?0:W},V),V?p:!0;
case "m":return p=fC(S,p,U,Y,L,function(W){I.minutes=W},V),V?p:!0;
case "s":return fC(S,p,U,Y,L,function(W){I.seconds=W}),!0;
case "z":case "Z":case "v":return V4t(S,p,U,I);default:return!1}},I4E=function(S,p,U,Y,L,I){var V=U[0];
L=CC(S,p,U,L);L===null&&(L=CC(S,p,U,0,!0));if(L===null)return!1;L>=0&&U[0]-V==2&&Y.count==2?(S=L,p=(new Date).getFullYear()-80,U=p%100,I.ambiguousYear=S==U,S+=Math.floor(p/100)*100+(S<U?100:0),I.year=S):I.year=L;return!0},M4E=function(S,p,U,Y,L,I){return L.numeric&&fC(S,p,U,L,Y,function(V){I.month=V-1})?!0:aX(p,U,[S.JSC$9316_dateTimeSymbols_.MONTHS,
S.JSC$9316_dateTimeSymbols_.STANDALONEMONTHS,S.JSC$9316_dateTimeSymbols_.SHORTMONTHS,S.JSC$9316_dateTimeSymbols_.STANDALONESHORTMONTHS],function(V){I.month=V})},d9c=function(S,p,U,Y,L){var I=U[0];
S=CC(S,p,U,Y);if(S===null)return!1;U=U[0]-I;L.milliseconds=U<3?S*Math.pow(10,3-U):Math.round(S/Math.pow(10,U-3));return!0},V4t=function(S,p,U,Y){p.indexOf("GMT",U[0])==U[0]&&(U[0]+=3);
if(U[0]>=p.length)return Y.tzOffset=0,!0;var L=U[0],I=CC(S,p,U,0,!0);if(I===null)return!1;if(U[0]<p.length&&p.charAt(U[0])==":"){var V=I*60;U[0]++;I=CC(S,p,U,0);if(I===null)return!1;V+=I}else V=I,V=V<24&&U[0]-L<=3?V*60:V%100+V/100*60;Y.tzOffset=-V;return!0},fC=function(S,p,U,Y,L,I,V){V=V||!1;
var W=U[0];S=CC(S,p,U,L);if(S===null)return!1;if(V&&U[0]-W<Y.count){if(U[0]<p.length)return!1;S*=Math.pow(10,Y.count-(U[0]-W))}I(S);return!0},aX=function(S,p,U,Y,L){L=L||!1;
for(var I,V=0;V<U.length;V++){I=p;for(var W=U[V],O=L,D=0,z=null,Q=S.substring(I[0]).toLowerCase(),J=0;J<W.length;J++){var K=W[J].toLowerCase();if(O&&K.indexOf(Q)==0){D=Q.length;z=J;break}W[J].length>D&&Q.indexOf(K)==0&&(D=W[J].length,z=J)}z!==null&&(I[0]+=D);I=z;if(I!==null)return Y(I),!0}return!1},Ycd=function(S,p){(S=S.substring(p[0]).match(Scc))&&(p[0]+=S[0].length)},CC=function(S,p,U,Y,L){p=Y>0?p.substring(0,U[0]+Y):p;
L=L||!1;if(S.JSC$9316_dateTimeSymbols_.ZERODIGIT){Y=[];for(var I=U[0];I<p.length;I++){var V=p.charCodeAt(I)-S.JSC$9316_dateTimeSymbols_.ZERODIGIT;Y.push(0<=V&&V<=9?String.fromCharCode(V+48):p.charAt(I))}p=Y.join("")}else p=p.substring(U[0]);S=p.match(new RegExp("^"+(L?"[+-]?":"")+"\\d+"));if(!S)return null;U[0]+=S[0].length;return parseInt(S[0],10)},U9E=function(){};
U9E.prototype.ambiguousYear=!1;_.Ttq={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 WAj={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"},OKc=WAj,kfl=WAj;kfl=OKc=WAj;var D9l,xi,ml,XbE,Eb,HKq;
_.wt=function(S,p,U,Y){var L;if(L=p){a:if(p&&p.length===3){for(L=0;L<3;L++){var I=p[L];if(I<"A"||I>"Z"&&I<"a"||I>"z"){L=!1;break a}}L=!0}else L=!1;L=!L}if(L)throw new TypeError("Zd");this.intlCurrencyCode_=p?p.toUpperCase():null;this.currencyStyle_=U||0;this.overrideNumberFormatSymbols_=Y||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_=xi(this).MINUS_SIGN;this.negativeSuffix_="";this.multiplier_=1;this.negativePercentSignExpected_=!1;this.groupingArray_=[];this.useExponentialNotation_=this.decimalSeparatorAlwaysShown_=!1;this.compactStyle_=0;if(typeof S==="number")switch(S){case 1:Eb(this,xi(this).DECIMAL_PATTERN);break;case 2:Eb(this,xi(this).SCIENTIFIC_PATTERN);break;case 3:Eb(this,xi(this).PERCENT_PATTERN);break;case 4:S=xi(this).CURRENCY_PATTERN;p=["0"];if(U=
gP[ml(this)]){U=U[0]&7;if(U>0)for(p.push("."),Y=0;Y<U;Y++)p.push("0");S=S.replace(/0.00/g,p.join(""))}Eb(this,S);break;case 5:HKq(this,1);break;case 6:HKq(this,2);break;default:throw Error("be");}else Eb(this,S)};
D9l=!1;xi=function(S){return S.overrideNumberFormatSymbols_||(D9l?kfl:OKc)};
ml=function(S){return S.intlCurrencyCode_||xi(S).DEF_CURRENCY_CODE};
XbE=function(S,p){if(p>308)throw Error("ae`"+p);S.maximumFractionDigits_=p;return S};
Eb=function(S,p){var U=[0];S.positivePrefix_=z$E(S,p,U);for(var Y=U[0],L=-1,I=0,V=0,W=0,O=-1,D=p.length,z=!0;U[0]<D&&z;U[0]++)switch(p.charAt(U[0])){case "#":V>0?W++:I++;O>=0&&L<0&&O++;break;case "0":if(W>0)throw Error("he`"+p);V++;O>=0&&L<0&&O++;break;case ",":O>0&&S.groupingArray_.push(O);O=0;break;case ".":if(L>=0)throw Error("ie`"+p);L=I+V+W;break;case "E":if(S.useExponentialNotation_)throw Error("je`"+p);S.useExponentialNotation_=!0;S.minExponentDigits_=0;U[0]+1<D&&p.charAt(U[0]+1)=="+"&&(U[0]++,
S.useSignForPositiveExponent_=!0);for(;U[0]+1<D&&p.charAt(U[0]+1)=="0";)U[0]++,S.minExponentDigits_++;if(I+V<1||S.minExponentDigits_<1)throw Error("ke`"+p);z=!1;break;default:U[0]--,z=!1}V==0&&I>0&&L>=0&&(V=L,V==0&&V++,W=I-V,I=V-1,V=1);if(L<0&&W>0||L>=0&&(L<I||L>I+V)||O==0)throw Error("le`"+p);W=I+V+W;S.maximumFractionDigits_=L>=0?W-L:0;L>=0&&(S.minimumFractionDigits_=I+V-L,S.minimumFractionDigits_<0&&(S.minimumFractionDigits_=0));S.minimumIntegerDigits_=(L>=0?L:W)-I;S.useExponentialNotation_&&(S.maximumIntegerDigits_=
I+S.minimumIntegerDigits_,S.maximumFractionDigits_==0&&S.minimumIntegerDigits_==0&&(S.minimumIntegerDigits_=1));S.groupingArray_.push(Math.max(0,O));S.decimalSeparatorAlwaysShown_=L==0||L==W;Y=U[0]-Y;S.positiveSuffix_=z$E(S,p,U);U[0]<p.length&&p.charAt(U[0])==";"?(U[0]++,S.multiplier_!=1&&(S.negativePercentSignExpected_=!0),S.negativePrefix_=z$E(S,p,U),U[0]+=Y,S.negativeSuffix_=z$E(S,p,U)):(S.negativePrefix_+=S.positivePrefix_,S.negativeSuffix_+=S.positiveSuffix_)};
HKq=function(S,p){S.compactStyle_=p;Eb(S,xi(S).DECIMAL_PATTERN);S.minimumFractionDigits_=0;XbE(S,2);if(S.minimumFractionDigits_>0)throw Error("$d");S.significantDigits_=2};
_.wt.prototype.parse=function(S,p){p=p||[0];if(this.compactStyle_!==0)throw Error("ce");S=S.replace(/ |\u202f/g,"\u00a0");var U=S.indexOf(this.positivePrefix_,p[0])==p[0],Y=S.indexOf(this.negativePrefix_,p[0])==p[0];U&&Y&&(this.positivePrefix_.length>this.negativePrefix_.length?Y=!1:this.positivePrefix_.length<this.negativePrefix_.length&&(U=!1));U?p[0]+=this.positivePrefix_.length:Y&&(p[0]+=this.negativePrefix_.length);if(S.indexOf(xi(this).INFINITY,p[0])==p[0]){p[0]+=xi(this).INFINITY.length;var L=
Infinity}else{L=S;var I=!1,V=!1,W=!1,O=-1,D=1,z=xi(this).DECIMAL_SEP,Q=xi(this).GROUP_SEP,J=xi(this).EXP_SYMBOL;if(this.compactStyle_!=0)throw Error("de");Q=Q.replace(/\u202f/g,"\u00a0");for(var K="";p[0]<L.length;p[0]++){var G=L.charAt(p[0]),X=Q4m(this,G);if(X>=0&&X<=9)K+=X,W=!0;else if(G==z.charAt(0)){if(I||V)break;K+=".";I=!0}else if(G==Q.charAt(0)&&("\u00a0"!=Q.charAt(0)||p[0]+1<L.length&&Q4m(this,L.charAt(p[0]+1))>=0)){if(I||V)break}else if(G==J.charAt(0)){if(V)break;K+="E";V=!0;O=p[0]}else if(G==
"+"||G=="-"){if(W&&O!=p[0]-1)break;K+=G}else if(this.multiplier_==1&&G==xi(this).PERCENT.charAt(0)){if(D!=1)break;D=100;if(W){p[0]++;break}}else if(this.multiplier_==1&&G==xi(this).PERMILL.charAt(0)){if(D!=1)break;D=1E3;if(W){p[0]++;break}}else break}this.multiplier_!=1&&(D=this.multiplier_);L=parseFloat(K)/D}if(U){if(S.indexOf(this.positiveSuffix_,p[0])!=p[0])return NaN;p[0]+=this.positiveSuffix_.length}else if(Y){if(S.indexOf(this.negativeSuffix_,p[0])!=p[0])return NaN;p[0]+=this.negativeSuffix_.length}return Y?
-L:L};
_.wt.prototype.format=function(S){if(this.minimumFractionDigits_>this.maximumFractionDigits_)throw Error("ee");if(isNaN(S))return xi(this).NAN;var p=[];var U=S;if(this.compactStyle_==0)U=oX;else{U=Math.abs(U);var Y=nld(this,U<=1?0:JZm(U)).divisorBase;U=nld(this,Y+JZm(yZI(this,vC(U,-Y)).intValue))}S=vC(S,-U.divisorBase);(Y=S<0||S==0&&1/S<0)?U.negative_prefix?p.push(U.negative_prefix):(p.push(U.prefix),p.push(this.negativePrefix_)):(p.push(U.prefix),p.push(this.positivePrefix_));if(isFinite(S))if(S*=
Y?-1:1,S*=this.multiplier_,this.useExponentialNotation_){var L=S;if(L==0)KAt(this,L,this.minimumIntegerDigits_,p),bKw(this,0,p);else{var I=Math.floor(Math.log(L)/Math.log(10)+2E-15);L=vC(L,-I);var V=this.minimumIntegerDigits_;this.maximumIntegerDigits_>1&&this.maximumIntegerDigits_>this.minimumIntegerDigits_?(V=I%this.maximumIntegerDigits_,V<0&&(V=this.maximumIntegerDigits_+V),L=vC(L,V),I-=V,V=1):this.minimumIntegerDigits_<1?(I++,L=vC(L,-1)):(I-=this.minimumIntegerDigits_-1,L=vC(L,this.minimumIntegerDigits_-
1));KAt(this,L,V,p);bKw(this,I,p)}}else KAt(this,S,this.minimumIntegerDigits_,p);else p.push(xi(this).INFINITY);Y?U.negative_suffix?p.push(U.negative_suffix):(isFinite(S)&&p.push(U.suffix),p.push(this.negativeSuffix_)):(isFinite(S)&&p.push(U.suffix),p.push(this.positiveSuffix_));return p.join("")};
var yZI=function(S,p){var U=vC(p,S.maximumFractionDigits_);S.significantDigits_>0&&(U=j4w(U,S.significantDigits_,S.maximumFractionDigits_));U=Math.round(U);if(isFinite(U)){var Y=Math.floor(vC(U,-S.maximumFractionDigits_));U=Math.floor(U-vC(Y,S.maximumFractionDigits_));if(U<0||U>=vC(1,S.maximumFractionDigits_))Y=Math.round(p),U=0}else Y=p,U=0;return{intValue:Y,fracValue:U}},KAt=function(S,p,U,Y){if(S.minimumFractionDigits_>S.maximumFractionDigits_)throw Error("ee");
Y||(Y=[]);p=yZI(S,p);var L=p.intValue,I=p.fracValue,V=S.minimumFractionDigits_>0||I>0||!1;p=S.minimumFractionDigits_;V&&(p=S.minimumFractionDigits_);for(var W="",O=L;O>1E20;)W="0"+W,O=Math.round(vC(O,-1));W=O+W;var D=xi(S).DECIMAL_SEP;O=xi(S).ZERO_DIGIT.codePointAt(0);var z=W.length,Q=0;if(L>0||U>0){for(L=z;L<U;L++)Y.push(String.fromCodePoint(O));if(S.groupingArray_.length>=2)for(U=1;U<S.groupingArray_.length;U++)Q+=S.groupingArray_[U];U=z-Q;if(U>0){L=S.groupingArray_;Q=z=0;for(var J,K=xi(S).GROUP_SEP,
G=W.length,X=0;X<G;X++)if(Y.push(String.fromCodePoint(O+Number(W.charAt(X)))),G-X>1)if(J=L[Q],X<U){var Z=U-X;(J===1||J>0&&Z%J===1)&&Y.push(K)}else Q<L.length&&(X===U?Q+=1:J===X-U-z+1&&(Y.push(K),z+=J,Q+=1))}else{U=W;W=S.groupingArray_;L=xi(S).GROUP_SEP;J=U.length;K=[];for(z=W.length-1;z>=0&&J>0;z--){Q=W[z];for(G=0;G<Q&&J-G-1>=0;G++)K.push(String.fromCodePoint(O+Number(U.charAt(J-G-1))));J-=Q;J>0&&K.push(L)}Y.push.apply(Y,K.reverse())}}else V||Y.push(String.fromCodePoint(O));(S.decimalSeparatorAlwaysShown_||
V)&&Y.push(D);I=String(I);V=I.split("e+");V.length==2&&(I=String(j4w(parseFloat(V[0]),S.significantDigits_,1)),I=I.replace(".",""),I+=(0,_.nNR)("0",parseInt(V[1],10)-I.length+1));S.maximumFractionDigits_+1>I.length&&(I="1"+(0,_.nNR)("0",S.maximumFractionDigits_-I.length)+I);for(S=I.length;I.charAt(S-1)=="0"&&S>p+1;)S--;for(p=1;p<S;p++)Y.push(String.fromCodePoint(O+Number(I.charAt(p))))},bKw=function(S,p,U){U.push(xi(S).EXP_SYMBOL);
p<0?(p=-p,U.push(xi(S).MINUS_SIGN)):S.useSignForPositiveExponent_&&U.push(xi(S).PLUS_SIGN);p=""+p;for(var Y=xi(S).ZERO_DIGIT,L=p.length;L<S.minExponentDigits_;L++)U.push(Y);S=Y.codePointAt(0)-rZI;for(Y=0;Y<p.length;Y++)U.push(String.fromCodePoint(S+p.codePointAt(Y)))},Q4m=function(S,p){p=p.codePointAt(0);
if(48<=p&&p<58)return p-48;S=xi(S).ZERO_DIGIT.codePointAt(0);return S<=p&&p<S+10?p-S:-1},rZI="0".codePointAt(0),z$E=function(S,p,U){for(var Y="",L=!1,I=p.length;U[0]<I;U[0]++){var V=p.charAt(U[0]);
if(V=="'")U[0]+1<I&&p.charAt(U[0]+1)=="'"?(U[0]++,Y+="'"):L=!L;else if(L)Y+=V;else switch(V){case "#":case "0":case ",":case ".":case ";":return Y;case "\u00a4":if(U[0]+1<I&&p.charAt(U[0]+1)=="\u00a4")U[0]++,Y+=ml(S);else switch(S.currencyStyle_){case 0:V=ml(S);Y+=V in gP?gP[V][1]:V;break;case 2:V=ml(S);var W=gP[V];Y+=W?V==W[1]?V:V+" "+W[1]:V;break;case 1:V=ml(S),Y+=V in gP?gP[V][2]:V}break;case "%":if(!S.negativePercentSignExpected_&&S.multiplier_!=1)throw Error("fe");if(S.negativePercentSignExpected_&&
S.multiplier_!=100)throw Error("ge");S.multiplier_=100;S.negativePercentSignExpected_=!1;Y+=xi(S).PERCENT;break;case "\u2030":if(!S.negativePercentSignExpected_&&S.multiplier_!=1)throw Error("fe");if(S.negativePercentSignExpected_&&S.multiplier_!=1E3)throw Error("ge");S.multiplier_=1E3;S.negativePercentSignExpected_=!1;Y+=xi(S).PERMILL;break;default:Y+=V}}return Y},oX={divisorBase:0,
negative_prefix:"",negative_suffix:"",prefix:"",suffix:""},nld=function(S,p){S=S.compactStyle_==1?ed.COMPACT_DECIMAL_SHORT_PATTERN:ed.COMPACT_DECIMAL_LONG_PATTERN;S==null&&(S=ed.COMPACT_DECIMAL_SHORT_PATTERN);if(p<3)return oX;p=Math.min(14,p);var U=S[vC(1,p)];for(--p;!U&&p>=3;)U=S[vC(1,p)],p--;if(!U)return oX;U=U.other;var Y=S="",L=U.indexOf(";");L>=0&&(U=U.substring(0,L),L=U.substring(L+1))&&(Y=/([^0]*)(0+)(.*)/.exec(L),S=Y[1],Y=Y[3]);return U&&U!="0"?(U=/([^0]*)(0+)(.*)/.exec(U))?{divisorBase:p+
1-(U[2].length-1),negative_prefix:S,negative_suffix:Y,prefix:U[1],suffix:U[3]}:oX:oX},JZm=function(S){if(!isFinite(S))return S>0?S:0;
for(var p=0;(S/=10)>=1;)p++;return p},vC=function(S,p){if(!S||!isFinite(S)||p==0)return S;
S=String(S).split("e");return parseFloat(S[0]+"e"+(parseInt(S[1]||0,10)+p))},GfQ=function(S,p){return S&&isFinite(S)?vC(Math.round(vC(S,p)),-p):S},j4w=function(S,p,U){if(!S)return S;
p=p-JZm(S)-1;return p<-U?GfQ(S,-U):GfQ(S,p)};var h$E=function(S){return S%10==1&&S%100!=11?"one":S%10==2&&S%100!=12?"two":S%10==3&&S%100!=13?"few":"other"},R$P=h$E;
R$P=h$E;var FAl;FAl=function(S,p){var U=S|0;if(void 0===p){p=Math;var Y=p.min,L=S+"",I=L.indexOf(".");p=Y.call(p,I===-1?0:L.length-I-1,3)}Y=Math.pow(10,p);S={v:p,f:(S*Y|0)%Y};return U==1&&S.v==0?"one":"other"};
_.xl=FAl;_.xl=FAl;var XJq,PMH,ZKw,e$t,glI;_.s4c=function(S){this.JSC$9359_pattern_=S;this.parsedPattern_=this.literals_=this.initialLiterals_=null;S=OKc;var p=ed;if(XJq!==S||PMH!==p)XJq=S,PMH=p,ZKw=new _.wt(1);this.numberFormatter_=ZKw};
XJq=null;PMH=null;ZKw=null;e$t=RegExp("'([{}#].*?)'","g");glI=RegExp("''","g");
_.s4c.prototype.format=function(S){if(this.JSC$9359_pattern_){this.initialLiterals_=[];var p=u1m(this,this.JSC$9359_pattern_);this.parsedPattern_=wJt(this,p);this.JSC$9359_pattern_=null}if(this.parsedPattern_&&this.parsedPattern_.length!=0)for(this.literals_=_.qG(this.initialLiterals_),p=[],l4H(this,this.parsedPattern_,S,!1,p),S=p.join("");this.literals_.length>0;)S=S.replace(this.buildPlaceholder_(this.literals_),String(this.literals_.pop()).replace("$","$$$$"));else S="";return S};
var l4H=function(S,p,U,Y,L){for(var I=0;I<p.length;I++)switch(p[I].type){case 4:L.push(p[I].value);break;case 3:var V=p[I].value;var W=S,O=L,D=U[V];D===void 0?O.push("Undefined parameter - "+V):(W.literals_.push(D),O.push(W.buildPlaceholder_(W.literals_)));break;case 2:V=p[I].value;W=S;O=U;D=Y;var z=L,Q=V.argumentIndex;O[Q]===void 0?z.push("Undefined parameter - "+Q):(Q=V[O[Q]],Q===void 0&&(Q=V.other),l4H(W,Q,O,D,z));break;case 0:V=p[I].value;a4H(S,V,U,_.xl,Y,L);break;case 1:V=p[I].value,a4H(S,V,
U,R$P,Y,L)}},a4H=function(S,p,U,Y,L,I){var V=p.argumentIndex,W=p.argumentOffset,O=+U[V];
isNaN(O)?I.push("Undefined or invalid parameter - "+V):(W=O-W,V=p[U[V]],V===void 0&&(Y=Y(Math.abs(W)),V=p[Y],V===void 0&&(V=p.other)),p=[],l4H(S,V,U,L,p),U=p.join(""),L?I.push(U):(S=S.numberFormatter_.format(W),I.push(U.replace(/#/g,S))))},u1m=function(S,p){var U=S.initialLiterals_,Y=S.buildPlaceholder_.bind(S);
p=p.replace(glI,function(){U.push("'");return Y(U)});
return p=p.replace(e$t,function(L,I){U.push(I);return Y(U)})},f4m=function(S){var p=0,U=[],Y=[],L=/[{}]/g;
L.lastIndex=0;for(var I;I=L.exec(S);){var V=I.index;I[0]=="}"?(U.pop(),U.length==0&&(I={type:1},I.value=S.substring(p,V),Y.push(I),p=V+1)):(U.length==0&&(p=S.substring(p,V),p!=""&&Y.push({type:0,value:p}),p=V+1),U.push("{"))}S=S.substring(p);S!=""&&Y.push({type:0,value:S});return Y},CMt=/^\s*(\w+)\s*,\s*plural\s*,(?:\s*offset:(\d+))?/,x9H=/^\s*(\w+)\s*,\s*selectordinal\s*,/,Elq=/^\s*(\w+)\s*,\s*select\s*,/,wJt=function(S,p){var U=[];
p=f4m(p);for(var Y=0;Y<p.length;Y++){var L={};if(0==p[Y].type)L.type=4,L.value=p[Y].value;else if(1==p[Y].type){var I=p[Y].value;switch(CMt.test(I)?0:x9H.test(I)?1:Elq.test(I)?2:/^\s*\w+\s*/.test(I)?3:5){case 2:L.type=2;L.value=m9t(S,p[Y].value);break;case 0:L.type=0;L.value=oll(S,p[Y].value);break;case 1:L.type=1;L.value=vlm(S,p[Y].value);break;case 3:L.type=3,L.value=p[Y].value}}U.push(L)}return U},m9t=function(S,p){var U="";
p=p.replace(Elq,function(W,O){U=O;return""});
var Y={};Y.argumentIndex=U;p=f4m(p);for(var L=0;L<p.length;){var I=p[L].value;L++;var V=void 0;1==p[L].type&&(V=wJt(S,p[L].value));Y[I.replace(/\s/g,"")]=V;L++}return Y},oll=function(S,p){var U="",Y=0;
p=p.replace(CMt,function(O,D,z){U=D;z&&(Y=parseInt(z,10));return""});
var L={};L.argumentIndex=U;L.argumentOffset=Y;p=f4m(p);for(var I=0;I<p.length;){var V=p[I].value;I++;var W=void 0;1==p[I].type&&(W=wJt(S,p[I].value));L[V.replace(/\s*(?:=)?(\w+)\s*/,"$1")]=W;I++}return L},vlm=function(S,p){var U="";
p=p.replace(x9H,function(W,O){U=O;return""});
var Y={};Y.argumentIndex=U;Y.argumentOffset=0;p=f4m(p);for(var L=0;L<p.length;){var I=p[L].value;L++;var V=void 0;1==p[L].type&&(V=wJt(S,p[L].value));Y[I.replace(/\s*(?:=)?(\w+)\s*/,"$1")]=V;L++}return Y};
_.s4c.prototype.buildPlaceholder_=function(S){return"\ufddf_"+(S.length-1).toString(10)+"_"};var $9H;
$9H={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 ptR=function(){this.rdtfSymbols_=iKQ||$9H;this.alwaysNumeric_=this.alwaysNumeric_=!0;this.style_=0};
ptR.prototype.format=function(S,p){a:{p=Nte(this,p);switch(this.style_){case 2:if(p.NARROW!=void 0){p=p.NARROW;break a}case 1:if(p.SHORT!=void 0){p=p.SHORT;break a}default:p=p.LONG;break a}p=void 0}if(!this.alwaysNumeric_&&p&&p.R&&p.R[""+S])S=p.R[""+S];else if(p){var U=Math.abs(S);S=(new _.s4c("{N,plural,"+(S>0||S==0&&1/S==Infinity?p.F:p.P)+"}")).format({N:U})}else S="";return S};
var Nte=function(S,p){switch(p){default:case 0:return S.rdtfSymbols_.YEAR;case 1:return S.rdtfSymbols_.QUARTER;case 2:return S.rdtfSymbols_.MONTH;case 3:return S.rdtfSymbols_.WEEK;case 4:return S.rdtfSymbols_.DAY;case 5:return S.rdtfSymbols_.HOUR;case 6:return S.rdtfSymbols_.MINUTE;case 7:return S.rdtfSymbols_.SECOND}};var Btt=function(S,p,U,Y,L,I,V,W){this.x0=S;this.y0=p;this.x1=U;this.y1=Y;this.x2=L;this.y2=I;this.x3=V;this.y3=W};
Btt.prototype.clone=function(){return new Btt(this.x0,this.y0,this.x1,this.y1,this.x2,this.y2,this.x3,this.y3)};
Btt.prototype.equals=function(S){return this.x0==S.x0&&this.y0==S.y0&&this.x1==S.x1&&this.y1==S.y1&&this.x2==S.x2&&this.y2==S.y2&&this.x3==S.x3&&this.y3==S.y3};
var qcQ=function(S,p){if(p==0)return S.x0;if(p==1)return S.x3;var U=HD(S.x0,S.x1,p),Y=HD(S.x1,S.x2,p);S=HD(S.x2,S.x3,p);U=HD(U,Y,p);Y=HD(Y,S,p);return HD(U,Y,p)},AZw=function(S,p){var U=(p-S.x0)/(S.x3-S.x0);
if(U<=0)return 0;if(U>=1)return 1;for(var Y=0,L=1,I=0,V=0;V<8;V++){I=qcQ(S,U);var W=(qcQ(S,U+1E-6)-I)/1E-6;if(Math.abs(I-p)<1E-6)return U;if(Math.abs(W)<1E-6)break;else I<p?Y=U:L=U,U-=(I-p)/W}for(V=0;Math.abs(I-p)>1E-6&&V<8;V++)I<p?(Y=U,U=(U+L)/2):(L=U,U=(U+Y)/2),I=qcQ(S,U);return U};var $i=function(){_.OD.call(this);this.JSC$9380_name_="closure_frame"+t4e++;this.iframesForDisposal_=[];cZE[this.JSC$9380_name_]=this},ip;
_.q_($i,_.OD);var cZE={},t4e=0,S1e=function(S,p){var U=DD(S);_.nEl(p,function(Y,L){Array.isArray(Y)||(Y=[Y]);_.xs(Y,function(I){I=U.JSC$7337_createDom("INPUT",{type:"hidden",name:L,value:I});S.appendChild(I)})})};
_.M=$i.prototype;_.M.JSC$9382_form_=null;_.M.JSC$9382_iframe_=null;_.M.iframeName_=null;_.M.nextIframeId_=0;_.M.JSC$9382_active_=!1;_.M.complete_=!1;_.M.success_=!1;_.M.lastContent_=null;_.M.JSC$9382_lastErrorCode_=0;_.M.iframeDisposalTimer_=null;
_.M.send=function(S,p,U,Y){if(this.JSC$9382_active_)throw Error("me");S=new _.ma(S);p=p?p.toUpperCase():"GET";U&&_.A2(S);ip||(ip=_.n0("FORM"),ip.acceptCharset="utf-8",U=ip.style,U.position="absolute",U.visibility="hidden",U.top=U.left="-10px",U.width=U.height="10px",U.overflow="hidden",document.body.appendChild(ip));this.JSC$9382_form_=ip;p=="GET"&&S1e(this.JSC$9382_form_,S.JSC$8037_queryData_);Y&&S1e(this.JSC$9382_form_,Y);U=S.toString();U=qIX(U);Y=this.JSC$9382_form_;U=_.Gl(kq(U));U!==void 0&&(Y.action=
U);this.JSC$9382_form_.method=p;pBt(this);UIw(this)};
_.M.abort=function(S){if(this.JSC$9382_active_){var p=ND(this);if(p)if(Vf(p))p.removeAllListeners(void 0);else if(p=TB(p)){var U=0,Y;for(Y in p.listeners)for(var L=p.listeners[Y].concat(),I=0;I<L.length;++I)nz(L[I])&&++U}this.success_=this.JSC$9382_active_=this.complete_=!1;this.JSC$9382_lastErrorCode_=S||7;this.dispatchEvent("abort");Y1Q(this)}};
_.M.disposeInternal=function(){this.JSC$9382_active_&&this.abort();$i.superClass_.disposeInternal.call(this);this.JSC$9382_iframe_&&LFt(this);UIw(this);this.JSC$9382_form_=null;delete this.errorChecker_;this.lastContent_=this.JSC$9382_form_=null;this.JSC$9382_lastErrorCode_=0;delete cZE[this.JSC$9380_name_]};
_.M.isComplete=function(){return this.complete_};
_.M.isSuccess=function(){return this.success_};
_.M.isActive=function(){return this.JSC$9382_active_};
_.M.getResponseText=function(){return this.lastContent_};
_.M.getLastError=function(){return _.BZI(this.JSC$9382_lastErrorCode_)};
var pBt=function(S){S.JSC$9382_active_=!0;S.complete_=!1;S.JSC$9382_lastErrorCode_=0;S.iframeName_=S.JSC$9380_name_+"_"+(S.nextIframeId_++).toString(36);S.JSC$9382_iframe_=DD(S.JSC$9382_form_).JSC$7337_createDom("IFRAME",{name:S.iframeName_,id:S.iframeName_});var p=S.JSC$9382_iframe_.style;p.visibility="hidden";p.width=p.height="10px";p.display="none";_.pT?p.marginTop=p.marginLeft="-10px":(p.position="absolute",p.top=p.left="-10px");DD(S.JSC$9382_form_).JSC$7335_document_.body.appendChild(S.JSC$9382_iframe_);
p=S.iframeName_+"_inner";var U=CeQ(S.JSC$9382_iframe_);if(document.baseURI){var Y=SS(p);Y='<head><base href="'+SS(document.baseURI)+'"></head><body><iframe id="'+Y+'" name="'+Y+'"></iframe>';Y=Fq(Y)}else Y=SS(p),Y=Fq('<body><iframe id="'+Y+'" name="'+Y+'"></iframe>');U.write(Xq(Y));_.Kz(U.getElementById(p),"load",S.onIframeLoaded_,!1,S);Y=K2("TEXTAREA",S.JSC$9382_form_);for(var L=0,I=Y.length;L<I;L++){var V=Y[L].value;$Gd(Y[L])!=V&&(_.GX(Y[L],V),Y[L].value=V)}Y=U.importNode(S.JSC$9382_form_,!0);Y.target=
p;Y.action=S.JSC$9382_form_.action;U.body.appendChild(Y);L=K2("SELECT",S.JSC$9382_form_);I=K2("SELECT",Y);V=0;for(var W=L.length;V<W;V++)for(var O=K2("OPTION",L[V]),D=K2("OPTION",I[V]),z=0,Q=O.length;z<Q;z++)D[z].selected=O[z].selected;L=K2("INPUT",S.JSC$9382_form_);I=K2("INPUT",Y);V=0;for(W=L.length;V<W;V++)if(L[V].type=="file"&&L[V].value!=I[V].value){S.JSC$9382_form_.target=p;Y=S.JSC$9382_form_;break}try{S.errorHandled_=!1,Y.submit(),U.close(),_.SR&&setTimeout(S.testForFirefoxSilentError_.bind(S),
250)}catch(J){_.W3(U.getElementById(p),"load",S.onIframeLoaded_,!1,S),U.close(),BC(S,2)}};
$i.prototype.onIframeLoaded_=function(){_.W3(ND(this),"load",this.onIframeLoaded_,!1,this);try{var S=this.JSC$9382_iframe_?CeQ(ND(this)):null;this.complete_=!0;this.JSC$9382_active_=!1;try{var p=S.body;this.lastContent_=p.textContent||p.innerText}catch(L){var U=1}var Y;U||typeof this.errorChecker_!="function"||(Y=this.errorChecker_(S))&&(U=4);U?BC(this,U):(this.success_=!0,this.JSC$9382_lastErrorCode_=0,this.dispatchEvent("complete"),this.dispatchEvent("success"),Y1Q(this))}catch(L){BC(this,1)}};
var BC=function(S,p){S.errorHandled_||(S.success_=!1,S.JSC$9382_active_=!1,S.complete_=!0,S.JSC$9382_lastErrorCode_=p,S.dispatchEvent("complete"),S.dispatchEvent("error"),Y1Q(S),S.errorHandled_=!0)},Y1Q=function(S){LFt(S);
UIw(S);S.JSC$9382_form_=null;S.dispatchEvent("ready")},LFt=function(S){var p=S.JSC$9382_iframe_;
p&&(p.onreadystatechange=null,p.onload=null,p.onerror=null,S.iframesForDisposal_.push(p));S.iframeDisposalTimer_&&(clearTimeout(S.iframeDisposalTimer_),S.iframeDisposalTimer_=null);_.SR?S.iframeDisposalTimer_=setTimeout(S.disposeIframes_.bind(S),2E3):S.disposeIframes_();S.JSC$9382_iframe_=null;S.iframeName_=null};
$i.prototype.disposeIframes_=function(){this.iframeDisposalTimer_&&(clearTimeout(this.iframeDisposalTimer_),this.iframeDisposalTimer_=null);for(;this.iframesForDisposal_.length!=0;){var S=this.iframesForDisposal_.pop();_.yz(S)}};
var UIw=function(S){S.JSC$9382_form_&&S.JSC$9382_form_==ip&&_.K0(S.JSC$9382_form_)},ND=function(S){return S.JSC$9382_iframe_?CeQ(S.JSC$9382_iframe_).getElementById(S.iframeName_+"_inner"):null};
$i.prototype.testForFirefoxSilentError_=function(){if(this.JSC$9382_active_){var S=this.JSC$9382_iframe_?CeQ(ND(this)):null;S&&!sF(S,"documentUri")?(_.W3(ND(this),"load",this.onIframeLoaded_,!1,this),navigator.onLine?BC(this,3):BC(this,9)):setTimeout(this.testForFirefoxSilentError_.bind(this),250)}};_.qD=function(S){return S=="\r"||S=="\n"||S==" "||S=="\t"};var MvE;_.AK=function(S){this.errorMessage_=null;this.result_=[];this.JSC$9384_buffer_="";this.stack_=[];this.JSC$9384_pos_=this.depth_=0;this.slashed_=!1;this.unicodeCount_=0;this.stringInputPattern_=/[\\"]/g;this.state_=this.streamState_=0;this.deliverMessageAsRawString_=!(!S||!S.deliverMessageAsRawString)};
MvE={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};_.AK.prototype.isInputValid=function(){return this.streamState_!=3};
_.AK.prototype.done=function(){return this.streamState_===2};
var tK=function(S,p,U){S.streamState_=3;S.errorMessage_="The stream is broken @"+S.JSC$9384_pos_+"/"+U+". With input:\n"+p;throw Error(S.errorMessage_);};
_.AK.prototype.acceptsBinaryInput=function(){return!1};
_.AK.prototype.parse=function(S){function p(){for(;J<S.length;)if(_.qD(S[J]))J++,I.JSC$9384_pos_++;else break;return J<D}
function U(){for(var G;;){G=S[J++];if(!G)break;I.JSC$9384_pos_++;switch(I.state_){case O.INIT:G==="{"?I.state_=O.OBJECT_OPEN:G==="["?I.state_=O.ARRAY_OPEN:_.qD(G)||tK(I,S,J);continue;case O.KEY_START:case O.OBJECT_OPEN:if(_.qD(G))continue;if(I.state_===O.KEY_START)V.push(O.KEY_END);else if(G==="}"){L("{}");I.state_=Y();continue}else V.push(O.OBJECT_END);G==='"'?I.state_=O.STRING:tK(I,S,J);continue;case O.KEY_END:case O.OBJECT_END:if(_.qD(G))continue;G===":"?(I.state_===O.OBJECT_END&&(V.push(O.OBJECT_END),
I.depth_++),I.state_=O.VALUE):G==="}"?(I.depth_--,L(),I.state_=Y()):G===","?(I.state_===O.OBJECT_END&&V.push(O.OBJECT_END),I.state_=O.KEY_START):tK(I,S,J);continue;case O.ARRAY_OPEN:case O.VALUE:if(_.qD(G))continue;if(I.state_===O.ARRAY_OPEN)if(I.depth_++,I.state_=O.VALUE,G==="]"){I.depth_--;if(I.depth_===0){I.state_=O.ARRAY_END;return}L("[]");I.state_=Y();continue}else V.push(O.ARRAY_END);G==='"'?I.state_=O.STRING:G==="{"?I.state_=O.OBJECT_OPEN:G==="["?I.state_=O.ARRAY_OPEN:G==="t"?I.state_=O.TRUE1:
G==="f"?I.state_=O.FALSE1:G==="n"?I.state_=O.NULL1:G!=="-"&&("0123456789".indexOf(G)!==-1?I.state_=O.NUM_DIGIT:tK(I,S,J));continue;case O.ARRAY_END:if(G===",")V.push(O.ARRAY_END),I.state_=O.VALUE,I.depth_===1&&(Q=J);else if(G==="]"){I.depth_--;if(I.depth_===0)return;L();I.state_=Y()}else if(_.qD(G))continue;else tK(I,S,J);continue;case O.STRING:var X=J;a:for(;;){for(;I.unicodeCount_>0;)if(G=S[J++],I.unicodeCount_===4?I.unicodeCount_=0:I.unicodeCount_++,!G)break a;if(G==='"'&&!I.slashed_){I.state_=
Y();break}if(G==="\\"&&!I.slashed_&&(I.slashed_=!0,G=S[J++],!G))break;if(I.slashed_)if(I.slashed_=!1,G==="u"&&(I.unicodeCount_=1),G=S[J++])continue;else break;W.lastIndex=J;G=W.exec(S);if(!G){J=S.length+1;break}J=G.index+1;G=S[G.index];if(!G)break}I.JSC$9384_pos_+=J-X;continue;case O.TRUE1:if(!G)continue;G==="r"?I.state_=O.TRUE2:tK(I,S,J);continue;case O.TRUE2:if(!G)continue;G==="u"?I.state_=O.TRUE3:tK(I,S,J);continue;case O.TRUE3:if(!G)continue;G==="e"?I.state_=Y():tK(I,S,J);continue;case O.FALSE1:if(!G)continue;
G==="a"?I.state_=O.FALSE2:tK(I,S,J);continue;case O.FALSE2:if(!G)continue;G==="l"?I.state_=O.FALSE3:tK(I,S,J);continue;case O.FALSE3:if(!G)continue;G==="s"?I.state_=O.FALSE4:tK(I,S,J);continue;case O.FALSE4:if(!G)continue;G==="e"?I.state_=Y():tK(I,S,J);continue;case O.NULL1:if(!G)continue;G==="u"?I.state_=O.NULL2:tK(I,S,J);continue;case O.NULL2:if(!G)continue;G==="l"?I.state_=O.NULL3:tK(I,S,J);continue;case O.NULL3:if(!G)continue;G==="l"?I.state_=Y():tK(I,S,J);continue;case O.NUM_DECIMAL_POINT:G===
"."?I.state_=O.NUM_DIGIT:tK(I,S,J);continue;case O.NUM_DIGIT:if("0123456789.eE+-".indexOf(G)!==-1)continue;else J--,I.JSC$9384_pos_--,I.state_=Y();continue;default:tK(I,S,J)}}}
function Y(){var G=V.pop();return G!=null?G:O.VALUE}
function L(G){I.depth_>1||(G||(G=Q===-1?I.JSC$9384_buffer_+S.substring(z,J):S.substring(Q,J)),I.deliverMessageAsRawString_?I.result_.push(G):I.result_.push(JSON.parse(G)),Q=J)}
for(var I=this,V=I.stack_,W=I.stringInputPattern_,O=MvE,D=S.length,z=0,Q=-1,J=0;J<D;)switch(I.streamState_){case 3:return tK(I,S,J),null;case 2:return p()&&tK(I,S,J),null;case 0:if(p()){var K=S[J++];I.JSC$9384_pos_++;if(K==="["){I.streamState_=1;z=J;I.state_=O.ARRAY_OPEN;continue}else tK(I,S,J)}return null;case 1:return U(),I.depth_===0&&I.state_==O.ARRAY_END?(I.streamState_=2,I.JSC$9384_buffer_=S.substring(J)):I.JSC$9384_buffer_=Q===-1?I.JSC$9384_buffer_+S.substring(z):S.substring(Q),I.result_.length>
0?(K=I.result_,I.result_=[],K):null}return null};_.q_(_.p9,bi);U$.prototype.getValue=function(){return this.JSC$9392_value_};
U$.prototype.clone=function(){return new U$(this.JSC$9392_key_,this.JSC$9392_value_)};var cC=function(S){this.nodes_=[];if(S)a:{if(S instanceof cC){var p=S.getKeys();S=S.getValues();if(this.getCount()<=0){for(var U=this.nodes_,Y=0;Y<p.length;Y++)U.push(new U$(p[Y],S[Y]));break a}}else p=_.h9.getKeys(S),S=_.h9.getValues(S);for(U=0;U<p.length;U++)this.insert(p[U],S[U])}};
_.M=cC.prototype;_.M.insert=function(S,p){var U=this.nodes_;U.push(new U$(S,p));S=U.length-1;p=this.nodes_;for(U=p[S];S>0;){var Y=S-1>>1;if(p[Y].JSC$9392_key_>U.JSC$9392_key_)p[S]=p[Y],S=Y;else break}p[S]=U};
_.M.remove=function(){var S=this.nodes_,p=S.length,U=S[0];if(!(p<=0)){if(p==1)S.length=0;else{S[0]=S.pop();S=0;p=this.nodes_;for(var Y=p.length,L=p[S];S<Y>>1;){var I=S*2+1,V=S*2+2;I=V<Y&&p[V].JSC$9392_key_<p[I].JSC$9392_key_?V:I;if(p[I].JSC$9392_key_>L.JSC$9392_key_)break;p[S]=p[I];S=I}p[S]=L}return U.getValue()}};
_.M.peek=function(){var S=this.nodes_;if(S.length!=0)return S[0].getValue()};
_.M.getValues=function(){for(var S=this.nodes_,p=[],U=S.length,Y=0;Y<U;Y++)p.push(S[Y].getValue());return p};
_.M.getKeys=function(){for(var S=this.nodes_,p=[],U=S.length,Y=0;Y<U;Y++)p.push(S[Y].JSC$9392_key_);return p};
_.M.containsValue=function(S){return this.nodes_.some(function(p){return p.getValue()==S})};
_.M.containsKey=function(S){return this.nodes_.some(function(p){return p.JSC$9392_key_==S})};
_.M.clone=function(){return new cC(this)};
_.M.getCount=function(){return this.nodes_.length};
_.M.isEmpty=function(){return this.nodes_.length===0};
_.M.clear=function(){this.nodes_.length=0};_.Si=function(S,p){this.JSC$9398_map_={};this.JSC$9398_keys_=[];this.version_=this.size=0;var U=arguments.length;if(U>1){if(U%2)throw Error("oa");for(var Y=0;Y<U;Y+=2)this.set(arguments[Y],arguments[Y+1])}else S&&this.addAll(S)};
_.M=_.Si.prototype;_.M.getCount=function(){return this.size};
_.M.getValues=function(){pL(this);for(var S=[],p=0;p<this.JSC$9398_keys_.length;p++)S.push(this.JSC$9398_map_[this.JSC$9398_keys_[p]]);return S};
_.M.getKeys=function(){pL(this);return this.JSC$9398_keys_.concat()};
_.M.containsKey=function(S){return this.has(S)};
_.M.has=function(S){return US(this.JSC$9398_map_,S)};
_.M.containsValue=function(S){for(var p=0;p<this.JSC$9398_keys_.length;p++){var U=this.JSC$9398_keys_[p];if(US(this.JSC$9398_map_,U)&&this.JSC$9398_map_[U]==S)return!0}return!1};
_.M.equals=function(S,p){if(this===S)return!0;if(this.size!=S.getCount())return!1;p=p||IGl;pL(this);for(var U,Y=0;U=this.JSC$9398_keys_[Y];Y++)if(!p(this.get(U),S.get(U)))return!1;return!0};
var IGl=function(S,p){return S===p};
_.Si.prototype.isEmpty=function(){return this.size==0};
_.Si.prototype.clear=function(){this.JSC$9398_map_={};this.version_=this.size=this.JSC$9398_keys_.length=0};
_.Si.prototype.remove=function(S){return this.delete(S)};
_.Si.prototype.delete=function(S){return US(this.JSC$9398_map_,S)?(delete this.JSC$9398_map_[S],--this.size,this.version_++,this.JSC$9398_keys_.length>2*this.size&&pL(this),!0):!1};
var pL=function(S){if(S.size!=S.JSC$9398_keys_.length){for(var p=0,U=0;p<S.JSC$9398_keys_.length;){var Y=S.JSC$9398_keys_[p];US(S.JSC$9398_map_,Y)&&(S.JSC$9398_keys_[U++]=Y);p++}S.JSC$9398_keys_.length=U}if(S.size!=S.JSC$9398_keys_.length){p={};for(Y=U=0;U<S.JSC$9398_keys_.length;){var L=S.JSC$9398_keys_[U];US(p,L)||(S.JSC$9398_keys_[Y++]=L,p[L]=1);U++}S.JSC$9398_keys_.length=Y}};
_.M=_.Si.prototype;_.M.get=function(S,p){return US(this.JSC$9398_map_,S)?this.JSC$9398_map_[S]:p};
_.M.set=function(S,p){US(this.JSC$9398_map_,S)||(this.size+=1,this.JSC$9398_keys_.push(S),this.version_++);this.JSC$9398_map_[S]=p};
_.M.addAll=function(S){if(S instanceof _.Si)for(var p=S.getKeys(),U=0;U<p.length;U++)this.set(p[U],S.get(p[U]));else for(p in S)this.set(p,S[p])};
_.M.forEach=function(S,p){for(var U=this.getKeys(),Y=0;Y<U.length;Y++){var L=U[Y],I=this.get(L);S.call(p,I,L,this)}};
_.M.clone=function(){return new _.Si(this)};
_.M.transpose=function(){for(var S=new _.Si,p=0;p<this.JSC$9398_keys_.length;p++){var U=this.JSC$9398_keys_[p];S.set(this.JSC$9398_map_[U],U)}return S};
_.M.keys=function(){return gUm(this.__iterator__(!0)).toEs6()};
_.M.values=function(){return gUm(this.__iterator__(!1)).toEs6()};
_.M.entries=function(){var S=this;return i9t(this.keys(),function(p){return[p,S.get(p)]})};
_.M.__iterator__=function(S){pL(this);var p=0,U=this.version_,Y=this,L=new ts;L.next=function(){if(U!=Y.version_)throw Error("ne");if(p>=Y.JSC$9398_keys_.length)return cF;var I=Y.JSC$9398_keys_[p++];return S0(S?I:Y.JSC$9398_map_[I])};
return L};
var US=function(S,p){return Object.prototype.hasOwnProperty.call(S,p)};var Vvc=function(){this.JSC$9401_map_=new _.Si;this.JSC$9401_head_=new dIt("");this.JSC$9401_head_.next=this.JSC$9401_head_.prev=this.JSC$9401_head_},Tzm=function(S,p){if(p=S.JSC$9401_map_.get(p))p.remove(),S.insert_(p);
return p};
_.M=Vvc.prototype;_.M.get=function(S,p){return(S=Tzm(this,S))?S.value:p};
_.M.set=function(S,p){var U=Tzm(this,S);U?U.value=p:(U=new dIt(S,p),this.JSC$9401_map_.set(S,U),this.insert_(U))};
_.M.peek=function(){return this.JSC$9401_head_.next.value};
_.M.shift=function(){return WFE(this,this.JSC$9401_head_.next)};
_.M.pop=function(){return WFE(this,this.JSC$9401_head_.prev)};
_.M.remove=function(S){return(S=this.JSC$9401_map_.get(S))?(this.removeNode(S),!0):!1};
_.M.removeNode=function(S){S.remove();this.JSC$9401_map_.remove(S.key)};
_.M.getCount=function(){return this.JSC$9401_map_.getCount()};
_.M.isEmpty=function(){return this.JSC$9401_map_.isEmpty()};
_.M.getKeys=function(){return this.map(function(S,p){return p})};
_.M.getValues=function(){return this.map(function(S){return S})};
_.M.contains=function(S){return this.some(function(p){return p==S})};
_.M.containsKey=function(S){return this.JSC$9401_map_.containsKey(S)};
_.M.clear=function(){for(;this.getCount()>0;)this.removeNode(this.JSC$9401_head_.prev)};
_.M.forEach=function(S,p){for(var U=this.JSC$9401_head_.next;U!=this.JSC$9401_head_;U=U.next)S.call(p,U.value,U.key,this)};
_.M.map=function(S,p){for(var U=[],Y=this.JSC$9401_head_.next;Y!=this.JSC$9401_head_;Y=Y.next)U.push(S.call(p,Y.value,Y.key,this));return U};
_.M.some=function(S,p){for(var U=this.JSC$9401_head_.next;U!=this.JSC$9401_head_;U=U.next)if(S.call(p,U.value,U.key,this))return!0;return!1};
_.M.every=function(S,p){for(var U=this.JSC$9401_head_.next;U!=this.JSC$9401_head_;U=U.next)if(!S.call(p,U.value,U.key,this))return!1;return!0};
_.M.insert_=function(S){S.next=this.JSC$9401_head_.next;S.prev=this.JSC$9401_head_;this.JSC$9401_head_.next=S;for(S.next.prev=S;this.getCount()>100;)this.removeNode(this.JSC$9401_head_.prev)};
var WFE=function(S,p){S.JSC$9401_head_!=p&&S.removeNode(p);return p.value},dIt=function(S,p){this.key=S;
this.value=p};
dIt.prototype.remove=function(){this.prev.next=this.next;this.next.prev=this.prev;delete this.prev;delete this.next};var OHl=function(){cC.apply(this,arguments)};
_.r(OHl,cC);OHl.prototype.enqueue=function(S,p){this.insert(S,p)};var kve=function(){var S=Error();S.name="SecurityError";throw S;},yNw=function(){return{get opener(){return null},
get closed(){return!0},get location(){kve()},get document(){kve()},postMessage:function(){},
close:function(){},
focus:function(){}}};var spw={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 u7r={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 HHj={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(u7r).join("|");var DId=function(){function S(W){W.substr(-1)!==";"&&(W+=";");return V(W)}
for(var p=Object.keys(HHj).sort(g1w),U=Object.keys(u7r).sort(g1w),Y=0,L=0;Y<U.length;Y++)p[L]===U[Y]?(U[Y]+=";?",L++):U[Y]+=";";var I=new RegExp("&(?:"+U.join("|")+"|#[xX][\\da-fA-F]+;?|#\\d+;?)","g"),V=wOk();return function(W){return String(W).replace(I,S)}}();/*

 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 zFq={};var QSt=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"),nMl=/[\\&]/,JBc=RegExp("\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|&(?:#x[a-f0-9]{1,8}|#[0-9]{1,8}|[a-z][a-z0-9]{1,31});","gi"),yBH=RegExp('[&<>"]',"g"),KFm=RegExp('&(?:#x[a-f0-9]{1,8}|#[0-9]{1,8}|[a-z][a-z0-9]{1,31});|[&<>"]',
"gi"),bHq=function(S){return S.charCodeAt(0)===92?S.charAt(1):DId(S)},jSw=function(S){return nMl.test(S)?S.replace(JBc,bHq):S},rBm=function(S){try{var p,U="";
if(typeof L!=="string"){var Y=L;var L=";/?:@&=+$,-_.!~*'()#"}typeof Y==="undefined"&&(Y=!0);var I,V=zFq[L];if(V)var W=V;else{V=zFq[L]=[];for(I=0;I<128;I++){var O=String.fromCharCode(I);/^[0-9a-z]$/i.test(O)?V.push(O):V.push("%"+("0"+I.toString(16).toUpperCase()).slice(-2))}for(I=0;I<L.length;I++)V[L.charCodeAt(I)]=L[I];W=V}var D=0;for(p=S.length;D<p;D++){var z=S.charCodeAt(D);if(Y&&z===37&&D+2<p&&/^[0-9a-f]{2}$/i.test(S.slice(D+1,D+3)))U+=S.slice(D,D+3),D+=2;else if(z<128)U+=W[z];else if(z>=55296&&
z<=57343){if(z>=55296&&z<=56319&&D+1<p){var Q=S.charCodeAt(D+1);if(Q>=56320&&Q<=57343){U+=encodeURIComponent(S[D]+S[D+1]);D++;continue}}U+="%EF%BF%BD"}else U+=encodeURIComponent(S[D])}return U}catch(J){return S}},GvQ=function(S){switch(S){case "&":return"&amp;";
case "<":return"&lt;";case ">":return"&gt;";case '"':return"&quot;";default:return S}},Yz=function(S,p){return yBH.test(S)?p?S.replace(KFm,GvQ):S.replace(yBH,GvQ):S};/*

 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 LL;if(String.fromCodePoint)LL=function(S){try{return String.fromCodePoint(S)}catch(p){if(p instanceof RangeError)return String.fromCharCode(65533);throw p;}};
else{var hFH=String.fromCharCode,RFe=Math.floor;LL=function(){var S=[],p=-1,U=arguments.length;if(!U)return"";for(var Y="";++p<U;){var L=Number(arguments[p]);if(!isFinite(L)||L<0||L>1114111||RFe(L)!==L)return String.fromCharCode(65533);if(L<=65535)S.push(L);else{L-=65536;var I=(L>>10)+55296;L=L%1024+56320;S.push(I,L)}if(p+1===U||S.length>16384)Y+=hFH.apply(null,S),S.length=0}return Y}};var FFt=function(S){this.root=this.current=S;this.entering=!0};
FFt.prototype.next=function(){var S=this.current,p=this.entering;if(S===null)return null;a:switch(S._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 U=!0;break a;default:U=!1}p&&U?S._firstChild?(this.current=S._firstChild,this.entering=!0):this.entering=!1:S===this.root?this.current=null:S._next===null?(this.current=
S._parent,this.entering=!1):(this.current=S._next,this.entering=!0);return{entering:p,node:S}};
var I9=function(S,p){this._type=S;this._next=this._prev=this._lastChild=this._firstChild=this._parent=null;this._sourcepos=p;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};
I9.prototype.appendChild=function(S){Mv(S);S._parent=this;this._lastChild?(this._lastChild._next=S,S._prev=this._lastChild):this._firstChild=S;this._lastChild=S};
var Mv=function(S){S._prev?S._prev._next=S._next:S._parent&&(S._parent._firstChild=S._next);S._next?S._next._prev=S._prev:S._parent&&(S._parent._lastChild=S._prev);S._parent=null;S._next=null;S._prev=null},XBl=function(S,p){Mv(p);
p._next=S._next;p._next&&(p._next._prev=p);p._prev=S;S._next=p;p._parent=S._parent;p._next||(p._parent._lastChild=p)};
I9.prototype.insertBefore=function(S){Mv(S);S._prev=this._prev;S._prev&&(S._prev._next=S);S._next=this;this._prev=S;S._parent=this._parent;S._prev||(S._parent._firstChild=S)};
_.$u.Object.defineProperties(I9.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(S){this._literal=S}},
destination:{configurable:!0,enumerable:!0,get:function(){return this._destination},
set:function(S){this._destination=S}},
title:{configurable:!0,enumerable:!0,get:function(){return this._title},
set:function(S){this._title=S}},
info:{configurable:!0,enumerable:!0,get:function(){return this._info},
set:function(S){this._info=S}},
level:{configurable:!0,enumerable:!0,get:function(){return this._level},
set:function(S){this._level=S}},
listType:{configurable:!0,enumerable:!0,get:function(){return this._listData.type},
set:function(S){this._listData.type=S}},
listTight:{configurable:!0,enumerable:!0,get:function(){return this._listData.tight},
set:function(S){this._listData.tight=S}},
listStart:{configurable:!0,enumerable:!0,get:function(){return this._listData.start},
set:function(S){this._listData.start=S}},
onEnter:{configurable:!0,enumerable:!0,get:function(){return this._onEnter},
set:function(S){this._onEnter=S}},
onExit:{configurable:!0,enumerable:!0,get:function(){return this._onExit},
set:function(S){this._onExit=S}}});var laq=/[ \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,
aae={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 PEc=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]/),
ZHj=RegExp("^(?:\"(\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|[^\"\\x00])*\"|'(\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|[^'\\x00])*'|\\((\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|[^)\\x00])*\\))"),sSl=RegExp("^(?:[<](?:[^ <>\\t\\n\\\\\\x00]|\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|\\\\)*[>])"),eFQ=RegExp("^[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]"),gMt=RegExp("^&(?:#x[a-f0-9]{1,8}|#[0-9]{1,8}|[a-z][a-z0-9]{1,31});","i"),u3t=/`+/,wBt=/^`+/,lGl=/\.\.\./g,aGd=/--+/g,fGE=/^<([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])?)*)>/,
CEe=/^<[A-Za-z][A-Za-z0-9.+-]{1,31}:[^<>\x00-\x20]*>/i,xIw=/^ *(?:\n *)?/,EMe=/^[ \t\n\x0b\x0c\x0d]/,mIj=/[ \t\n\x0b\x0c\x0d]+/g,oMI=/^\s/,vME=/ *$/,$Ie=/^ */,iHq=/^ *(?:\n|$)/,Nzm=RegExp("^\\[(?:[^\\\\\\[\\]]|\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|\\\\){0,1000}\\]"),Bzq=/^[^\n`\[\]\\!<&*_'"]+/m,IU=function(S){var p=new I9("text");p._literal=S;return p},dH=function(S){this.subject="";
this.brackets=this.delimiters=null;this.pos=0;this.refmap={};this.options=S||{}};
dH.prototype.match=function(S){S=S.exec(this.subject.slice(this.pos));if(S===null)return null;this.pos+=S.index+S[0].length;return S[0]};
dH.prototype.peek=function(){return this.pos<this.subject.length?this.subject.charCodeAt(this.pos):-1};
var Vm=function(S){S.match(xIw);return!0},q1Q=function(S,p,U){var Y=0;
var L=S.pos;if(p===39||p===34)Y++,S.pos++;else for(;S.peek()===p;)Y++,S.pos++;if(Y===0)Y=null;else{var I=L===0?"\n":S.subject.charAt(L-1);var V=S.peek();V=V===-1?"\n":LL(V);var W=oMI.test(V);V=PEc.test(V);var O=oMI.test(I);var D=PEc.test(I);I=!W&&!(V&&!O&&!D);W=!O&&!(D&&!W&&!V);p===95?(O=I&&(!W||D),V=W&&(!I||V)):(O=p===39||p===34?I&&!W:I,V=W);S.pos=L;Y={numdelims:Y,can_open:O,can_close:V}}if(!Y)return!1;L=Y.numdelims;V=S.pos;S.pos+=L;V=p===39?"\u2019":p===34?"\u201c":S.subject.slice(V,S.pos);V=IU(V);
U.appendChild(V);S.delimiters={cc:p,numdelims:L,origdelims:L,node:V,previous:S.delimiters,next:null,can_open:Y.can_open,can_close:Y.can_close};S.delimiters.previous!==null&&(S.delimiters.previous.next=S.delimiters);return!0},ABj=function(S,p){p.previous!==null&&(p.previous.next=p.next);
p.next===null?S.delimiters=p.previous:p.next.previous=p.previous},tvq=function(S,p){var U,Y,L=[],I=!1;
L[95]=p;L[42]=p;L[39]=p;L[34]=p;for(U=S.delimiters;U!==null&&U.previous!==p;)U=U.previous;for(;U!==null;){var V=U.cc;if(U.can_close){var W=U.previous;for(Y=!1;W!==null&&W!==p&&W!==L[V];){I=(U.can_open||W.can_close)&&(W.origdelims+U.origdelims)%3===0;if(W.cc===U.cc&&W.can_open&&!I){Y=!0;break}W=W.previous}var O=U;if(V===42||V===95)if(Y){var D=U.numdelims>=2&&W.numdelims>=2?2:1;var z=W.node;var Q=U.node;W.numdelims-=D;U.numdelims-=D;z._literal=z._literal.slice(0,z._literal.length-D);Q._literal=Q._literal.slice(0,
Q._literal.length-D);var J=new I9(D===1?"emph":"strong");for(D=z._next;D&&D!==Q;){var K=D._next;Mv(D);J.appendChild(D);D=K}XBl(z,J);D=W;K=U;D.next!==K&&(D.next=K,K.previous=D);W.numdelims===0&&(Mv(z),ABj(S,W));U.numdelims===0&&(Mv(Q),W=U.next,ABj(S,U),U=W)}else U=U.next;else V===39?(U.node._literal="\u2019",Y&&(W.node._literal="\u2018"),U=U.next):V===34&&(U.node._literal="\u201d",Y&&(W.node.literal="\u201c"),U=U.next);Y||I||(L[V]=O.previous,O.can_open||ABj(S,O))}else U=U.next}for(;S.delimiters!==
null&&S.delimiters!==p;)ABj(S,S.delimiters)},cBt=function(S){S=S.match(ZHj);
return S===null?null:jSw(S.substr(1,S.length-2))},S2j=function(S){var p=S.match(sSl);
if(p===null){p=S.pos;for(var U=0,Y;(Y=S.peek())!==-1;)if(Y===92)S.pos+=1,S.peek()!==-1&&(S.pos+=1);else if(Y===40)S.pos+=1,U+=1;else if(Y===41)if(U<1)break;else S.pos+=1,--U;else if(EMe.exec(LL(Y))!==null)break;else S.pos+=1;p=S.subject.substr(p,S.pos-p);return rBm(jSw(p))}return rBm(jSw(p.substr(1,p.length-2)))},pTI=function(S){S=S.match(Nzm);
return S===null||S.length>1001?0:S.length},UsE=function(S,p,U,Y){S.brackets!==null&&(S.brackets.bracketAfter=!0);
S.brackets={node:p,previous:S.brackets,previousDelimiter:S.delimiters,index:U,image:Y,active:!0}},Y2E=function(S,p){var U;
return(U=S.match(Bzq))?(S.options.smart?p.appendChild(IU(U.replace(lGl,"\u2026").replace(aGd,function(Y){var L=0,I=0;Y.length%3===0?I=Y.length/3:Y.length%2===0?L=Y.length/2:Y.length%3===2?(L=1,I=(Y.length-2)/3):(L=2,I=(Y.length-4)/3);Y="";var V;for(V=0;V<I;V++)Y+="\u2014";for(V=0;V<L;V++)Y+="\u2013";return Y}))):p.appendChild(IU(U)),!0):!1},L_t=function(S,p,U){S.subject=p;
S.pos=0;p=S.pos;var Y=pTI(S);if(Y===0)return 0;var L=S.subject.substr(0,Y);if(S.peek()===58)S.pos++;else return S.pos=p,0;Vm(S);Y=S2j(S);if(Y===null||Y.length===0)return S.pos=p,0;var I=S.pos;Vm(S);var V=cBt(S);V===null&&(V="",S.pos=I);var W=!0;S.match(iHq)===null&&(V===""?W=!1:(V="",S.pos=I,W=S.match(iHq)!==null));if(!W)return S.pos=p,0;L=fae(L);if(L==="")return S.pos=p,0;U[L]||(U[L]={destination:Y,title:V});return S.pos-p},MpP=function(S,p){var U,Y=S.peek();
if(Y===-1)return!1;switch(Y){case 10:S.pos+=1;if((U=p._lastChild)&&U.type==="text"&&U._literal[U._literal.length-1]===" "){var L=U._literal[U._literal.length-2]===" ";U._literal=U._literal.replace(vME,"");p.appendChild(new I9(L?"linebreak":"softbreak"))}else p.appendChild(new I9("softbreak"));S.match($Ie);U=!0;break;case 92:U=S.subject;S.pos+=1;S.peek()===10?(S.pos+=1,U=new I9("linebreak"),p.appendChild(U)):eFQ.test(U.charAt(S.pos))?(p.appendChild(IU(U.charAt(S.pos))),S.pos+=1):p.appendChild(IU("\\"));
U=!0;break;case 96:a:if(U=S.match(wBt),U===null)U=!1;else{L=S.pos;for(var I;(I=S.match(u3t))!==null;)if(I===U){I=new I9("code");I._literal=S.subject.slice(L,S.pos-U.length).trim().replace(mIj," ");p.appendChild(I);U=!0;break a}S.pos=L;p.appendChild(IU(U));U=!0}break;case 42:case 95:U=q1Q(S,Y,p);break;case 39:case 34:U=S.options.smart&&q1Q(S,Y,p);break;case 91:U=S.pos;S.pos+=1;L=IU("[");p.appendChild(L);UsE(S,L,U,!1);U=!0;break;case 33:U=S.pos;S.pos+=1;S.peek()===91?(S.pos+=1,L=IU("!["),p.appendChild(L),
UsE(S,L,U+1,!0)):p.appendChild(IU("!"));U=!0;break;case 93:var V,W=!1,O;S.pos+=1;var D=S.pos;L=S.brackets;if(L===null)p.appendChild(IU("]"));else if(L.active){U=L.image;var z=S.pos;S.peek()===40&&(S.pos++,Vm(S)&&(I=S2j(S))!==null&&Vm(S)&&(EMe.test(S.subject.charAt(S.pos-1))&&(V=cBt(S)),1)&&Vm(S)&&S.peek()===41?(S.pos+=1,W=!0):S.pos=z);if(!W){var Q=S.pos,J=pTI(S);J>2?O=S.subject.slice(Q,Q+J):L.bracketAfter||(O=S.subject.slice(L.index,D));J===0&&(S.pos=z);O&&(O=S.refmap[fae(O)])&&(I=O.destination,V=
O.title,W=!0)}if(W){D=new I9(U?"image":"link");D._destination=I;D._title=V||"";for(I=L.node._next;I;)V=I._next,Mv(I),D.appendChild(I),I=V;p.appendChild(D);tvq(S,L.previousDelimiter);S.brackets=S.brackets.previous;Mv(L.node);if(!U)for(L=S.brackets;L!==null;)L.image||(L.active=!1),L=L.previous}else S.brackets=S.brackets.previous,S.pos=D,p.appendChild(IU("]"))}else p.appendChild(IU("]")),S.brackets=S.brackets.previous;U=!0;break;case 60:(U=S.match(fGE))?(U=U.slice(1,U.length-1),L=new I9("link"),L._destination=
rBm("mailto:"+U),L._title="",L.appendChild(IU(U)),p.appendChild(L),U=!0):(U=S.match(CEe))?(U=U.slice(1,U.length-1),L=new I9("link"),L._destination=rBm(U),L._title="",L.appendChild(IU(U)),p.appendChild(L),U=!0):U=!1;U||(U=S.match(QSt),U===null?U=!1:(L=new I9("html_inline"),L._literal=U,p.appendChild(L),U=!0));break;case 38:(U=S.match(gMt))?(p.appendChild(IU(DId(U))),U=!0):U=!1;break;default:U=Y2E(S,p)}U||(S.pos+=1,p.appendChild(IU(LL(Y))));return!0};
dH.prototype.parseInlines=function(S){this.subject=S._string_content.trim();this.pos=0;for(this.brackets=this.delimiters=null;MpP(this,S););S._string_content=null;tvq(this,null)};
dH.prototype.parse=dH.prototype.parseInlines;var IlH=[/./,/^<(?: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")],dsH=[/./,/<\/(?:script|pre|style)>/i,/--\x3e/,/\?>/,/>/,/\]\]>/],VpP=/^(?:(?:\*[ \t]*){3,}|(?:_[ \t]*){3,}|(?:-[ \t]*){3,})[ \t]*$/,T9l=/^[#`~*+_=<>0-9-\|]|\|/,W_P=/[^ \t\f\v\r\n]/,O3e=/^[*+-]/,k4m=/^(\d{1,9})([.)])/,H3P=/^#{1,6}(?:[ \t]+|$)/,DsH=/^`{3,}(?!.*`)|^~{3,}(?!.*~)/,zql=/^(?:`{3,}|~{3,})(?= *$)/,QsE=/^(?:=+|-+)[ \t]*$/,nkm=/\r\n|\n|\r/,x_u=/(^\|?[^\|]+(\|[^\|]+)+\|?)|(\|.*\|)/,E1w=/(^\|?\s*:?---+:?\s*(\|\s*:?---+:?\s*)+\|?)|(^\s*\|\s*:?---+:?\s*\|$)/,JFw={document:{continue:function(){return 0},
finalize:function(){},
canContain:function(S){return S!=="item"},
acceptsLines:!1},list:{continue:function(){return 0},
finalize:function(S,p){for(S=p._firstChild;S;){if(CGG(S)&&S._next){p._listData.tight=!1;break}for(var U=S._firstChild;U;){if(CGG(U)&&(S._next||U._next)){p._listData.tight=!1;break}U=U._next}S=S._next}},
canContain:function(S){return S==="item"},
acceptsLines:!1},block_quote:{continue:function(S){var p=S.currentLine;if(S.indented||L9(p,S.nextNonspace)!==62)return 1;TC(S);W$(S,1,!1);Yn(L9(p,S.offset))&&W$(S,1,!0);return 0},
finalize:function(){},
canContain:function(S){return S!=="item"},
acceptsLines:!1},item:{continue:function(S,p){if(S.blank){if(p._firstChild==null)return 1;TC(S)}else if(S.indent>=p._listData.markerOffset+p._listData.padding)W$(S,p._listData.markerOffset+p._listData.padding,!0);else return 1;return 0},
finalize:function(){},
canContain:function(S){return S!=="item"&&!m_e(S)},
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(S,p){var U=S.currentLine,Y=S.indent;if(p._isFenced){if((Y=Y<=3&&U.charAt(S.nextNonspace)===p._fenceChar&&U.slice(S.nextNonspace).match(zql))&&Y[0].length>=p._fenceLength)return S.finalize(p,S.lineNumber),2;for(p=p._fenceOffset;p>0&&Yn(L9(U,S.offset));)W$(S,1,!0),p--}else if(Y>=4)W$(S,4,!0);else if(S.blank)TC(S);else return 1;return 0},
finalize:function(S,p){if(p._isFenced){var U=p._string_content,Y=U.indexOf("\n");S=U.slice(0,Y);U=U.slice(Y+1);p.info=jSw(S.trim());p._literal=U}else p._literal=p._string_content.replace(/(\n *)+$/,"\n");p._string_content=null},
canContain:function(){return!1},
acceptsLines:!0},html_block:{continue:function(S,p){return!S.blank||p._htmlBlockType!==6&&p._htmlBlockType!==7?0:1},
finalize:function(S,p){p._literal=p._string_content.replace(/(\n *)+$/,"");p._string_content=null},
canContain:function(){return!1},
acceptsLines:!0},paragraph:{continue:function(S){return S.blank?1:0},
finalize:function(S,p){for(var U,Y=!1;L9(p._string_content,0)===91&&(U=L_t(S.inlineParser,p._string_content,S.refmap));)p._string_content=p._string_content.slice(U),Y=!0;Y&&!W_P.test(p._string_content)&&Mv(p)},
canContain:function(){return!1},
acceptsLines:!0},table:{continue:function(S){return MU(S.currentLine)!==0?0:1},
finalize:function(){},
canContain:function(S){return S=="row"},
acceptsLines:!1},row:{continue:function(){return 1},
finalize:function(S,p){if(!p._rowIsDelimiter){S=p._isHeader?"th":"td";for(var U=p._parent._tableColumns,Y=p._string_content,L=0,I="",V,W=p._sourcepos[0][0];L<Y.length;){switch(Y[L]){case "|":V&&(V._string_content=I.trim(),I="",V=null,U--,U<=0&&(L=Y.length));break;default:if(!V){V=new I9(S,[[W,L],[W,L]]);var O=p._parent._columnAlignment,D=p._parent._tableColumns-U;O&&D<=O.length&&D>=0&&(V._alignment=O[D]);p.appendChild(V)}I+=Y[L];V._sourcepos[1][1]=L}L++}V&&(V._string_content=I.trim());p._string_content=
""}},
canContain:function(S){return S!=="row"},
acceptsLines:!1}},yFw=[function(S){if(S.indented||L9(S.currentLine,S.nextNonspace)!==62)return 0;TC(S);W$(S,1,!1);Yn(L9(S.currentLine,S.offset))&&W$(S,1,!0);OS(S);S.addChild("block_quote",S.nextNonspace);return 1},
function(S){var p;if(!S.indented&&(p=S.currentLine.slice(S.nextNonspace).match(H3P))){TC(S);W$(S,p[0].length,!1);OS(S);var U=S.addChild("heading",S.nextNonspace);U.level=p[0].trim().length;U._string_content=S.currentLine.slice(S.offset).replace(/^ *#+ *$/,"").replace(/ +#+ *$/,"");W$(S,S.currentLine.length-S.offset);return 2}return 0},
function(S){var p;if(!S.indented&&(p=S.currentLine.slice(S.nextNonspace).match(DsH))){var U=p[0].length;OS(S);var Y=S.addChild("code_block",S.nextNonspace);Y._isFenced=!0;Y._fenceLength=U;Y._fenceChar=p[0][0];Y._fenceOffset=S.indent;TC(S);W$(S,U,!1);return 2}return 0},
function(S,p){if(!S.indented&&L9(S.currentLine,S.nextNonspace)===60){var U=S.currentLine.slice(S.nextNonspace),Y;for(Y=1;Y<=7;Y++)if(IlH[Y].test(U)&&(Y<7||p.type!=="paragraph"))return OS(S),S.addChild("html_block",S.offset)._htmlBlockType=Y,2}return 0},
function(S,p){var U;if(!S.indented&&p.type==="paragraph"&&(U=S.currentLine.slice(S.nextNonspace).match(QsE))){OS(S);var Y=new I9("heading",p.sourcepos);Y.level=U[0][0]==="="?1:2;Y._string_content=p._string_content;XBl(p,Y);Mv(p);S.tip=Y;W$(S,S.currentLine.length-S.offset,!1);return 2}return 0},
function(S){return!S.indented&&VpP.test(S.currentLine.slice(S.nextNonspace))?(OS(S),S.addChild("thematic_break",S.nextNonspace),W$(S,S.currentLine.length-S.offset,!1),2):0},
function(S,p){var U,Y;if(!(Y=S.indented&&p.type!=="list")){a:{var L=p,I=S.currentLine.slice(S.nextNonspace);Y={type:null,tight:!0,bulletChar:null,start:null,delimiter:null,padding:null,markerOffset:S.indent};if(U=I.match(O3e))Y.type="bullet",Y.bulletChar=U[0][0];else{if(!(U=I.match(k4m))||L.type==="paragraph"&&U[1]!=="1"){U=null;break a}Y.type="ordered";Y.start=parseInt(U[1],10);Y.delimiter=U[2]}var V=L9(S.currentLine,S.nextNonspace+U[0].length);if(V!==-1&&V!==9&&V!==32||L.type==="paragraph"&&!S.currentLine.slice(S.nextNonspace+
U[0].length).match(W_P))U=null;else{TC(S);W$(S,U[0].length,!0);L=S.column;I=S.offset;do W$(S,1,!0),V=L9(S.currentLine,S.offset);while(S.column-L<5&&Yn(V));V=L9(S.currentLine,S.offset)===-1;var W=S.column-L;W>=5||W<1||V?(Y.padding=U[0].length+1,S.column=L,S.offset=I,Yn(L9(S.currentLine,S.offset))&&W$(S,1,!0)):Y.padding=U[0].length+W;U=Y}}Y=!U}if(Y)return 0;OS(S);(Y=S.tip.type!=="list")||(p=p._listData,Y=!(p.type===U.type&&p.delimiter===U.delimiter&&p.bulletChar===U.bulletChar));Y&&(p=S.addChild("list",
S.nextNonspace),p._listData=U);p=S.addChild("item",S.nextNonspace);p._listData=U;return 1},
function(S){var p;return((p=S.options.shouldParseIndentAsCodeBlock)!=null?p:1)&&S.indented&&S.tip.type!=="paragraph"&&!S.blank?(W$(S,4,!0),OS(S),S.addChild("code_block",S.offset),2):0},
function(S,p){var U=MU(S.currentLine),Y=MU(S.lookahead);if(U!==0&&Y<0&&Math.abs(U)==Math.abs(Y)&&!m_e(p.type)){OS(S);p=S.addChild("table",S.nextNonspace);p._tableRows=1;p._tableColumns=Math.abs(U);U=S.lookahead;if(E1w.test(U)){Y=[];for(var L=0,I=!1,V=0,W=void 0;L<U.length;){var O=V>=3;switch(U[L]){case "-":V++;break;case "|":I&&(Y.push(W),W=void 0,V=0);I=!0;break;case ":":W||O||(W="left"),!W&&O&&(W="right"),W==="left"&&O&&(W="center")}L++}U=Y}else U=void 0;p._columnAlignment=U;p=S.addChild("row",
S.nextNonspace);p._isHeader=!0;W$(S,S.currentLine.length-S.offset,!1);p._string_content=S.currentLine;return 1}return 0},
function(S,p){if(p.type=="table"&&MU(S.currentLine)!==0){OS(S);var U=p;p=S.addChild("row",S.nextNonspace);MU(S.currentLine)<0?p._rowIsDelimiter=!0:U._tableRows+=1;W$(S,S.currentLine.length-S.offset,!1);p._string_content=S.currentLine;return 2}return 0}],miw=function(){var S={shouldParseIndentAsCodeBlock:!1};
S=S===void 0?{}:S;this.lastMatchedContainer=this.doc=o1w();this.refmap={};this.lastLineLength=0;this.inlineParser=new dH(S);this.options=S;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=JFw;this.blockStarts=yFw},K_m=function(S){S.partiallyConsumedTab&&(S.offset+=1,S.tip._string_content+=" ".repeat(4-S.column%
4));
S.tip._string_content+=S.currentLine.slice(S.offset)+"\n"};
miw.prototype.addChild=function(S,p){for(;!this.blocks[this.tip.type].canContain(S);)this.finalize(this.tip,this.lineNumber-1);S=new I9(S,[[this.lineNumber,p+1],[0,0]]);S._string_content="";this.tip.appendChild(S);return this.tip=S};
var OS=function(S){if(!S.allClosed){for(;S.oldtip!==S.lastMatchedContainer;){var p=S.oldtip._parent;S.finalize(S.oldtip,S.lineNumber-1);S.oldtip=p}S.allClosed=!0}},W$=function(S,p,U){for(var Y=S.currentLine,L,I;p>0&&(I=Y[S.offset]);)I==="\t"?(L=4-S.column%4,U?(S.partiallyConsumedTab=L>p,L=L>p?p:L,S.column+=L,S.offset+=S.partiallyConsumedTab?0:1,p-=L):(S.partiallyConsumedTab=!1,S.column+=L,S.offset+=1,--p)):(S.partiallyConsumedTab=!1,S.offset+=1,S.column+=1,--p)},TC=function(S){S.offset=S.nextNonspace;
S.column=S.nextNonspaceColumn;S.partiallyConsumedTab=!1},b3e=function(S){for(var p=S.currentLine,U=S.offset,Y=S.column,L;(L=p.charAt(U))!=="";)if(L===" ")U++,Y++;
else if(L==="\t")U++,Y+=4-Y%4;else break;S.blank=L==="\n"||L==="\r"||L==="";S.nextNonspace=U;S.nextNonspaceColumn=Y;S.indent=S.nextNonspaceColumn-S.column;S.indented=S.indent>=4};
miw.prototype.finalize=function(S,p){var U=S._parent;S._open=!1;S.sourcepos[1]=[p,this.lastLineLength];this.blocks[S.type].finalize(this,S);this.tip=U};
miw.prototype.parse=function(S){this.tip=this.doc=o1w();this.refmap={};this.column=this.offset=this.lastLineLength=this.lineNumber=0;this.lastMatchedContainer=this.doc;this.currentLine="";if(!S)return this.doc;this.options.time&&console.time("preparing input");var p=S.split(nkm),U=p.length;S.charCodeAt(S.length-1)===10&&--U;this.options.time&&console.timeEnd("preparing input");this.options.time&&console.time("block parsing");for(S=0;S<U;S++)a:{var Y=void 0,L=p[S],I=p[S+1],V=!0,W=this.doc;this.oldtip=
this.tip;this.column=this.offset=0;this.partiallyConsumedTab=this.blank=!1;this.lineNumber+=1;L.indexOf("\x00")!==-1&&(L=L.replace(/\0/g,"\ufffd"));this.currentLine=L;for(this.lookahead=I;(Y=W._lastChild)&&Y._open;){W=Y;b3e(this);switch(this.blocks[W.type].continue(this,W)){case 0:break;case 1:V=!1;break;case 2:this.lastLineLength=L.length;break a;default:throw"continue returned illegal value, must be 0, 1, or 2";}if(!V){W=W._parent;break}}this.allClosed=W===this.oldtip;this.lastMatchedContainer=
W;Y=W.type!=="paragraph"&&JFw[W.type].acceptsLines;I=this.blockStarts;for(V=I.length;!Y;){b3e(this);if(!this.indented&&!T9l.test(L.slice(this.nextNonspace))){TC(this);break}for(var O=0;O<V;){var D=I[O](this,W);if(D===1){W=this.tip;break}else if(D===2){W=this.tip;Y=!0;break}else O++}if(O===V){TC(this);break}}if(this.allClosed||this.blank||this.tip.type!=="paragraph"){OS(this);this.blank&&W.lastChild&&(W.lastChild._lastLineBlank=!0);Y=W.type;I=this.blank&&!(Y==="block_quote"||Y==="code_block"&&W._isFenced||
Y==="item"&&!W._firstChild&&W.sourcepos[0][0]===this.lineNumber);for(V=W;V;)V._lastLineBlank=I,V=V._parent;this.blocks[Y].acceptsLines?(K_m(this),Y==="html_block"&&W._htmlBlockType>=1&&W._htmlBlockType<=5&&dsH[W._htmlBlockType].test(this.currentLine.slice(this.offset))&&this.finalize(W,this.lineNumber)):this.offset<L.length&&!this.blank&&(this.addChild("paragraph",this.offset),TC(this),K_m(this))}else K_m(this);this.lastLineLength=L.length}for(;this.tip;)this.finalize(this.tip,U);this.options.time&&
console.timeEnd("block parsing");this.options.time&&console.time("inline parsing");L=new FFt(this.doc);this.inlineParser.refmap=this.refmap;for(this.inlineParser.options=this.options;U=L.next();)p=U.node,S=p.type,U.entering||S!=="paragraph"&&S!=="heading"&&S!=="th"&&S!="td"||this.inlineParser.parse(p);this.options.time&&console.timeEnd("inline parsing");return this.doc};v1q.prototype.render=function(S){S=new FFt(S);var p;this.buffer="";for(this.lastOut="\n";p=S.next();){var U=p.node.type;if(this[U])this[U](p.node,p.entering)}return this.buffer};
v1q.prototype.out=function(S){kz(this,S)};
var kz=function(S,p){S.buffer+=p;S.lastOut=p};
v1q.prototype.cr=function(){this.lastOut!=="\n"&&kz(this,"\n")};var jsw=/^javascript:|vbscript:|file:|data:/i,rFc=/^data:image\/(?:png|gif|jpeg|webp)/i,G4E=function(S){return jsw.test(S)&&!rFc.test(S)};
dn.prototype=Object.create(v1q.prototype);_.M=dn.prototype;_.M.text=function(S){this.out(S.literal)};
_.M.html_inline=function(S){this.options.safe?kz(this,"\x3c!-- raw HTML omitted --\x3e"):kz(this,S.literal)};
_.M.html_block=function(S){this.cr();this.options.safe?kz(this,"\x3c!-- raw HTML omitted --\x3e"):kz(this,S.literal);this.cr()};
_.M.softbreak=function(){kz(this,this.options.softbreak)};
_.M.linebreak=function(){this.tag("br",[],!0);this.cr()};
_.M.link=function(S,p){var U=this.attrs(S);p?(this.options.safe&&G4E(S.destination)||U.push(["href",Yz(S.destination,!0)]),S.title&&U.push(["title",Yz(S.title,!0)]),this.tag("a",U)):this.tag("/a")};
_.M.image=function(S,p){p?(this.disableTags===0&&(this.options.safe&&G4E(S.destination)?kz(this,'<img src="" alt="'):kz(this,'<img src="'+Yz(S.destination,!0)+'" alt="')),this.disableTags+=1):(--this.disableTags,this.disableTags===0&&(S.title&&kz(this,'" title="'+Yz(S.title,!0)),kz(this,'" />')))};
_.M.emph=function(S,p){this.tag(p?"em":"/em")};
_.M.strong=function(S,p){this.tag(p?"strong":"/strong")};
_.M.paragraph=function(S,p){var U=S.parent.parent;S=this.attrs(S);U!==null&&U.type==="list"&&U.listTight||(p?(this.cr(),this.tag("p",S)):(this.tag("/p"),this.cr()))};
_.M.heading=function(S,p){var U="h"+S.level;S=this.attrs(S);p?(this.cr(),this.tag(U,S)):(this.tag("/"+U),this.cr())};
_.M.code=function(S){this.tag("code");this.out(S.literal);this.tag("/code")};
_.M.code_block=function(S){var p=S.info?S.info.split(/\s+/):[],U=this.attrs(S);p.length>0&&p[0].length>0&&U.push(["class","language-"+Yz(p[0],!0)]);this.cr();this.tag("pre");this.tag("code",U);this.out(S.literal);this.tag("/code");this.tag("/pre");this.cr()};
_.M.thematic_break=function(S){S=this.attrs(S);this.cr();this.tag("hr",S,!0);this.cr()};
_.M.block_quote=function(S,p){S=this.attrs(S);p?(this.cr(),this.tag("blockquote",S)):(this.cr(),this.tag("/blockquote"));this.cr()};
_.M.list=function(S,p){var U=S.listType==="bullet"?"ul":"ol",Y=this.attrs(S);p?(S=S.listStart,S!==null&&S!==1&&Y.push(["start",S.toString()]),this.cr(),this.tag(U,Y)):(this.cr(),this.tag("/"+U));this.cr()};
_.M.item=function(S,p){S=this.attrs(S);p?this.tag("li",S):(this.tag("/li"),this.cr())};
_.M.custom_inline=function(S,p){p&&S.onEnter?kz(this,S.onEnter):!p&&S.onExit&&kz(this,S.onExit)};
_.M.custom_block=function(S,p){this.cr();p&&S.onEnter?kz(this,S.onEnter):!p&&S.onExit&&kz(this,S.onExit);this.cr()};
_.M.table=function(S,p){S=this.attrs(S);p?(this.cr(),this.tag("table",S)):(this.tag("/table"),this.cr())};
_.M.row=function(S,p){S._rowIsDelimiter||(S=this.attrs(S),p?this.tag("tr",S):this.tag("/tr"))};
_.M.td=function(S,p){var U=this.attrs(S);S._alignment&&U.push(["align",S._alignment]);p?this.tag("td",U):this.tag("/td")};
_.M.th=function(S,p){var U=this.attrs(S);S._alignment&&U.push(["align",S._alignment]);p?this.tag("th",U):this.tag("/th")};
_.M.out=function(S){kz(this,Yz(S,!1))};
_.M.tag=function(S,p,U){if(!(this.disableTags>0)){this.buffer+="<"+S;if(p&&p.length>0){S=0;for(var Y;(Y=p[S])!==void 0;)this.buffer+=" "+Y[0]+'="'+Y[1]+'"',S++}U&&(this.buffer+=" /");this.buffer+=">";this.lastOut=">"}};
_.M.attrs=function(S){var p=[];this.options.sourcepos&&(S=S.sourcepos)&&p.push(["data-sourcepos",String(S[0][0])+":"+String(S[0][1])+"-"+String(S[1][0])+":"+String(S[1][1])]);return p};
dn.prototype.text=dn.prototype.text;dn.prototype.html_inline=dn.prototype.html_inline;dn.prototype.html_block=dn.prototype.html_block;dn.prototype.softbreak=dn.prototype.softbreak;dn.prototype.linebreak=dn.prototype.linebreak;dn.prototype.link=dn.prototype.link;dn.prototype.image=dn.prototype.image;dn.prototype.emph=dn.prototype.emph;dn.prototype.strong=dn.prototype.strong;dn.prototype.paragraph=dn.prototype.paragraph;dn.prototype.heading=dn.prototype.heading;dn.prototype.code=dn.prototype.code;
dn.prototype.code_block=dn.prototype.code_block;dn.prototype.thematic_break=dn.prototype.thematic_break;dn.prototype.block_quote=dn.prototype.block_quote;dn.prototype.list=dn.prototype.list;dn.prototype.item=dn.prototype.item;dn.prototype.custom_inline=dn.prototype.custom_inline;dn.prototype.custom_block=dn.prototype.custom_block;dn.prototype.table=dn.prototype.table;dn.prototype.row=dn.prototype.row;dn.prototype.td=dn.prototype.td;dn.prototype.th=dn.prototype.th;dn.prototype.out=dn.prototype.out;
dn.prototype.tag=dn.prototype.tag;dn.prototype.attrs=dn.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 hqI,Rqm,Drk;(function(){function S(P,R){return P<R?-1:P>R?1:P>=R?0:NaN}
function p(P){return function(R,u){return S(P(R),u)}}
function U(){for(var P=0,R=arguments.length,u={},B;P<R;++P){if(!(B=arguments[P]+"")||B in u)throw Error("pe`"+B);u[B]=[]}return new Y(u)}
function Y(P){this._=P}
function L(P,R){return P.trim().split(/^|\s+/).map(function(u){var B="",MG=u.indexOf(".");MG>=0&&(B=u.slice(MG+1),u=u.slice(0,MG));if(u&&!R.hasOwnProperty(u))throw Error("qe`"+u);return{type:u,name:B}})}
function I(P,R,u){for(var B=0,MG=P.length;B<MG;++B)if(P[B].name===R){P[B]=XOq;P=P.slice(0,B).concat(P.slice(B+1));break}u!=null&&P.push({name:R,value:u});return P}
function V(P){var R=P,u=R.indexOf(":");u>=0&&(R=P.slice(0,u))!=="xmlns"&&(P=P.slice(u+1));return EE.hasOwnProperty(R)?{space:EE[R],local:P}:P}
function W(P){return function(){var R=this.ownerDocument,u=this.namespaceURI;return u==="http://www.w3.org/1999/xhtml"&&R.documentElement.namespaceURI==="http://www.w3.org/1999/xhtml"?R.createElement(P):R.createElementNS(u,P)}}
function O(P){return function(){return this.ownerDocument.createElementNS(P.space,P.local)}}
function D(P){P=V(P);return(P.local?O:W)(P)}
function z(){}
function Q(P){return P==null?z:function(){return this.querySelector(P)}}
function J(P){return Array(P.length)}
function K(P,R){this.ownerDocument=P.ownerDocument;this.namespaceURI=P.namespaceURI;this._next=null;this._parent=P;this.__data__=R}
function G(P){return function(){return P}}
function X(P,R,u,B,MG,kR){for(var yw=0,FE,ck=R.length,Bk=kR.length;yw<Bk;++yw)(FE=R[yw])?(FE.__data__=kR[yw],B[yw]=FE):u[yw]=new K(P,kR[yw]);for(;yw<ck;++yw)if(FE=R[yw])MG[yw]=FE}
function Z(P,R,u,B,MG,kR,yw){var FE,ck,Bk={},SQ=R.length,VH=kR.length,vw=Array(SQ),zq;for(FE=0;FE<SQ;++FE)if(ck=R[FE])vw[FE]=zq="$"+yw.call(ck,ck.__data__,FE,R),zq in Bk?MG[FE]=ck:Bk[zq]=ck;for(FE=0;FE<VH;++FE)zq="$"+yw.call(P,kR[FE],FE,kR),(ck=Bk[zq])?(B[FE]=ck,ck.__data__=kR[FE],Bk[zq]=null):u[FE]=new K(P,kR[FE]);for(FE=0;FE<SQ;++FE)(ck=R[FE])&&Bk[vw[FE]]===ck&&(MG[FE]=ck)}
function l(P,R){return P<R?-1:P>R?1:P>=R?0:NaN}
function a(P){return function(){this.removeAttribute(P)}}
function N(P){return function(){this.removeAttributeNS(P.space,P.local)}}
function m(P,R){return function(){this.setAttribute(P,R)}}
function A(P,R){return function(){this.setAttributeNS(P.space,P.local,R)}}
function q(P,R){return function(){var u=R.apply(this,arguments);u==null?this.removeAttribute(P):this.setAttribute(P,u)}}
function TG(P,R){return function(){var u=R.apply(this,arguments);u==null?this.removeAttributeNS(P.space,P.local):this.setAttributeNS(P.space,P.local,u)}}
function Je(P){return function(){this.style.removeProperty(P)}}
function GG(P,R,u){return function(){this.style.setProperty(P,R,u)}}
function Zw(P,R,u){return function(){var B=R.apply(this,arguments);B==null?this.style.removeProperty(P):this.style.setProperty(P,B,u)}}
function Ru(P,R){return P.style.getPropertyValue(R)||(P.ownerDocument&&P.ownerDocument.defaultView||P.document&&P||P.defaultView).getComputedStyle(P,null).getPropertyValue(R)}
function sX(P){return function(){delete this[P]}}
function mq(P,R){return function(){this[P]=R}}
function au(P,R){return function(){var u=R.apply(this,arguments);u==null?delete this[P]:this[P]=u}}
function XI(){this.textContent=""}
function nE(P){return function(){this.textContent=P}}
function ut(P){return function(){var R=P.apply(this,arguments);this.textContent=R==null?"":R}}
function Hw(){this.innerHTML=""}
function Tj(P){return function(){this.innerHTML=P}}
function Ut(P){return function(){var R=P.apply(this,arguments);this.innerHTML=R==null?"":R}}
function Ww(){return null}
function kA(){var P=this.parentNode;P&&P.removeChild(this)}
function XO(){return this.parentNode.insertBefore(this.cloneNode(!1),this.nextSibling)}
function Vw(){return this.parentNode.insertBefore(this.cloneNode(!0),this.nextSibling)}
function Kc(P,R,u){P=eQ(P,R,u);return function(B){var MG=B.relatedTarget;MG&&(MG===this||MG.compareDocumentPosition(this)&8)||P.call(this,B)}}
function eQ(P,R,u){return function(){P.call(this,this.__data__,R,u)}}
function x5(P){return P.trim().split(/^|\s+/).map(function(R){var u="",B=R.indexOf(".");B>=0&&(u=R.slice(B+1),R=R.slice(0,B));return{type:R,name:u}})}
function rm(P){return function(){var R=this.__on;if(R){for(var u=0,B=-1,MG=R.length,kR;u<MG;++u)(kR=R[u],P.type&&kR.type!==P.type||kR.name!==P.name)?R[++B]=kR:this.removeEventListener(kR.type,kR.listener,kR.capture);++B?R.length=B:delete this.__on}}}
function Bw(P,R,u){var B=Acw.hasOwnProperty(P.type)?Kc:eQ;return function(MG,kR,yw){MG=this.__on;var FE;kR=B(R,kR,yw);if(MG){yw=0;for(var ck=MG.length;yw<ck;++yw)if((FE=MG[yw]).type===P.type&&FE.name===P.name){this.removeEventListener(FE.type,FE.listener,FE.capture);this.addEventListener(FE.type,FE.listener=kR,FE.capture=u);FE.value=R;return}}this.addEventListener(P.type,kR,u);FE={type:P.type,name:P.name,value:R,listener:kR,capture:u};MG?MG.push(FE):this.__on=[FE]}}
function oO(P,R,u){var B=P.ownerDocument&&P.ownerDocument.defaultView||P.document&&P||P.defaultView,MG=B.CustomEvent;typeof MG==="function"?MG=new MG(R,u):(MG=B.document.createEvent("Event"),u?(MG.initEvent(R,u.bubbles,u.cancelable),MG.detail=u.detail):MG.initEvent(R,!1,!1));P.dispatchEvent(MG)}
function $m(P,R){return function(){return oO(this,P,R)}}
function Mt(P,R){return function(){return oO(this,P,R.apply(this,arguments))}}
function El(P,R){this._groups=P;this._parents=R}
function KE(){return new El([[document.documentElement]],PGJ)}
function yH(){this._="@"+(++Z4J).toString(36)}
function Gj(P,R,u){P.prototype=R.prototype=u;u.constructor=P}
function MY(P,R){P=Object.create(P.prototype);for(var u in R)P[u]=R[u];return P}
function V2(){}
function Tq(P){var R;P=(P+"").trim().toLowerCase();return(R=spX.exec(P))?(R=parseInt(R[1],16),new td(R>>8&15|R>>4&240,R>>4&15|R&240,(R&15)<<4|R&15,1)):(R=eOi.exec(P))?Ku(parseInt(R[1],16)):(R=g1s.exec(P))?new td(R[1],R[2],R[3],1):(R=u7E.exec(P))?new td(R[1]*255/100,R[2]*255/100,R[3]*255/100,1):(R=wOP.exec(P))?VT(R[1],R[2],R[3],R[4]):(R=lao.exec(P))?VT(R[1]*255/100,R[2]*255/100,R[3]*255/100,R[4]):(R=aaJ.exec(P))?Ix(R[1],R[2]/100,R[3]/100,1):(R=fad.exec(P))?Ix(R[1],R[2]/100,R[3]/100,R[4]):t0E.hasOwnProperty(P)?
Ku(t0E[P]):P==="transparent"?new td(NaN,NaN,NaN,0):null}
function Ku(P){return new td(P>>16&255,P>>8&255,P&255,1)}
function VT(P,R,u,B){B<=0&&(P=R=u=NaN);return new td(P,R,u,B)}
function Cc(P){P instanceof V2||(P=Tq(P));if(!P)return new td;P=P.rgb();return new td(P.r,P.g,P.b,P.opacity)}
function aT(P,R,u,B){return arguments.length===1?Cc(P):new td(P,R,u,B==null?1:B)}
function td(P,R,u,B){this.r=+P;this.g=+R;this.b=+u;this.opacity=+B}
function V8(P){P=Math.max(0,Math.min(255,Math.round(P)||0));return(P<16?"0":"")+P.toString(16)}
function Ix(P,R,u,B){B<=0?P=R=u=NaN:u<=0||u>=1?P=R=NaN:R<=0&&(P=NaN);return new rE(P,R,u,B)}
function F5(P){if(P instanceof rE)return new rE(P.h,P.s,P.l,P.opacity);P instanceof V2||(P=Tq(P));if(!P)return new rE;if(P instanceof rE)return P;P=P.rgb();var R=P.r/255,u=P.g/255,B=P.b/255,MG=Math.min(R,u,B),kR=Math.max(R,u,B),yw=NaN,FE=kR-MG,ck=(kR+MG)/2;FE?(yw=R===kR?(u-B)/FE+(u<B)*6:u===kR?(B-R)/FE+2:(R-u)/FE+4,FE/=ck<.5?kR+MG:2-kR-MG,yw*=60):FE=ck>0&&ck<1?0:yw;return new rE(yw,FE,ck,P.opacity)}
function CS(P,R,u,B){return arguments.length===1?F5(P):new rE(P,R,u,B==null?1:B)}
function rE(P,R,u,B){this.h=+P;this.s=+R;this.l=+u;this.opacity=+B}
function cE(P,R,u){return(P<60?R+(u-R)*P/60:P<180?u:P<240?R+(u-R)*(240-P)/60:R)*255}
function OP(P){if(P instanceof be)return new be(P.l,P.a,P.b,P.opacity);if(P instanceof Jq){if(isNaN(P.h))return new be(P.l,0,0,P.opacity);var R=P.h*ccw;return new be(P.l,Math.cos(R)*P.c,Math.sin(R)*P.c,P.opacity)}P instanceof td||(P=Cc(P));var u=IT(P.r),B=IT(P.g),MG=IT(P.b);R=wN(.2225045*u+.7168786*B+.0606169*MG);if(u===B&&B===MG)var kR=u=R;else kR=wN((.4360747*u+.3850649*B+.1430804*MG)/.96422),u=wN((.0139322*u+.0971045*B+.7141733*MG)/.82521);return new be(116*R-16,500*(kR-R),200*(R-u),P.opacity)}
function be(P,R,u,B){this.l=+P;this.a=+R;this.b=+u;this.opacity=+B}
function wN(P){return P>CGq?Math.pow(P,1/3):P/Sbd+pCj}
function EX(P){return P>dv?P*P*P:Sbd*(P-pCj)}
function Dd(P){return 255*(P<=.0031308?12.92*P:1.055*Math.pow(P,1/2.4)-.055)}
function IT(P){return(P/=255)<=.04045?P/12.92:Math.pow((P+.055)/1.055,2.4)}
function PY(P){if(P instanceof Jq)return new Jq(P.h,P.c,P.l,P.opacity);P instanceof be||(P=OP(P));if(P.a===0&&P.b===0)return new Jq(NaN,0,P.l,P.opacity);var R=Math.atan2(P.b,P.a)*UDm;return new Jq(R<0?R+360:R,Math.sqrt(P.a*P.a+P.b*P.b),P.l,P.opacity)}
function Ds(P,R,u,B){return arguments.length===1?PY(P):new Jq(P,R,u,B==null?1:B)}
function Jq(P,R,u,B){this.h=+P;this.c=+R;this.l=+u;this.opacity=+B}
function zj(P,R,u,B){if(arguments.length===1){var MG=P;if(MG instanceof bJ)MG=new bJ(MG.h,MG.s,MG.l,MG.opacity);else{MG instanceof td||(MG=Cc(MG));var kR=MG.g/255,yw=MG.b/255,FE=(Ybm*yw+MG.r/255*-1.7884503806-3.5172982438*kR)/(Ybm+-1.7884503806-3.5172982438);yw-=FE;var ck=(1.97294*(kR-FE)- -.29227*yw)/-.90649;yw=(kR=Math.sqrt(ck*ck+yw*yw)/(1.97294*FE*(1-FE)))?Math.atan2(ck,yw)*UDm-120:NaN;MG=new bJ(yw<0?yw+360:yw,kR,FE,MG.opacity)}}else MG=new bJ(P,R,u,B==null?1:B);return MG}
function bJ(P,R,u,B){this.h=+P;this.s=+R;this.l=+u;this.opacity=+B}
function HY(P,R,u,B,MG){var kR=P*P,yw=kR*P;return((1-3*P+3*kR-yw)*R+(4-6*kR+3*yw)*u+(1+3*P+3*kR-3*yw)*B+yw*MG)/6}
function IP(P){return function(){return P}}
function y2(P,R){return function(u){return P+u*R}}
function ys(P,R,u){return P=Math.pow(P,u),R=Math.pow(R,u)-P,u=1/u,function(B){return Math.pow(P+B*R,u)}}
function u4(P,R){var u=R-P;return u?y2(P,u>180||u<-180?u-360*Math.round(u/360):u):IP(isNaN(P)?R:P)}
function bV(P){return(P=+P)===1?k7:function(R,u){return u-R?ys(R,u,P):IP(isNaN(R)?u:R)}}
function k7(P,R){var u=R-P;return u?y2(P,u):IP(isNaN(P)?R:P)}
function Qr(P){return function(R){var u=R.length,B=Array(u),MG=Array(u),kR=Array(u),yw;for(yw=0;yw<u;++yw){var FE=aT(R[yw]);B[yw]=FE.r||0;MG[yw]=FE.g||0;kR[yw]=FE.b||0}B=P(B);MG=P(MG);kR=P(kR);FE.opacity=1;return function(ck){FE.r=B(ck);FE.g=MG(ck);FE.b=kR(ck);return FE+""}}}
function vk(P,R){return P=+P,R-=P,function(u){return P+R*u}}
function di(P){return function(){return P}}
function TD(P){return function(R){return P(R)+""}}
function WY(P,R){var u=RDw.lastIndex=Fle.lastIndex=0,B,MG,kR,yw=-1,FE=[],ck=[];P+="";for(R+="";(B=RDw.exec(P))&&(MG=Fle.exec(R));)(kR=MG.index)>u&&(kR=R.slice(u,kR),FE[yw]?FE[yw]+=kR:FE[++yw]=kR),(B=B[0])===(MG=MG[0])?FE[yw]?FE[yw]+=MG:FE[++yw]=MG:(FE[++yw]=null,ck.push({i:yw,x:vk(B,MG)})),u=Fle.lastIndex;u<R.length&&(kR=R.slice(u),FE[yw]?FE[yw]+=kR:FE[++yw]=kR);return FE.length<2?ck[0]?TD(ck[0].x):di(R):(R=ck.length,function(Bk){for(var SQ=0,VH;SQ<R;++SQ)FE[(VH=ck[SQ]).i]=VH.x(Bk);return FE.join("")})}
function X5(P,R,u,B,MG,kR){var yw,FE,ck;if(yw=Math.sqrt(P*P+R*R))P/=yw,R/=yw;if(ck=P*u+R*B)u-=P*ck,B-=R*ck;if(FE=Math.sqrt(u*u+B*B))u/=FE,B/=FE,ck/=FE;P*B<R*u&&(P=-P,R=-R,ck=-ck,yw=-yw);return{translateX:MG,translateY:kR,rotate:Math.atan2(R,P)*Llm,skewX:Math.atan(ck)*Llm,scaleX:yw,scaleY:FE}}
function fu(P,R,u,B){function MG(Bk){return Bk.length?Bk.pop()+" ":""}
function kR(Bk,SQ,VH,vw,zq,Q8){Bk!==VH||SQ!==vw?(zq=zq.push("translate(",null,R,null,u),Q8.push({i:zq-4,x:vk(Bk,VH)},{i:zq-2,x:vk(SQ,vw)})):(VH||vw)&&zq.push("translate("+VH+R+vw+u)}
function yw(Bk,SQ,VH,vw){Bk!==SQ?(Bk-SQ>180?SQ+=360:SQ-Bk>180&&(Bk+=360),vw.push({i:VH.push(MG(VH)+"rotate(",null,B)-2,x:vk(Bk,SQ)})):SQ&&VH.push(MG(VH)+"rotate("+SQ+B)}
function FE(Bk,SQ,VH,vw){Bk!==SQ?vw.push({i:VH.push(MG(VH)+"skewX(",null,B)-2,x:vk(Bk,SQ)}):SQ&&VH.push(MG(VH)+"skewX("+SQ+B)}
function ck(Bk,SQ,VH,vw,zq,Q8){Bk!==VH||SQ!==vw?(zq=zq.push(MG(zq)+"scale(",null,",",null,")"),Q8.push({i:zq-4,x:vk(Bk,VH)},{i:zq-2,x:vk(SQ,vw)})):VH===1&&vw===1||zq.push(MG(zq)+"scale("+VH+","+vw+")")}
return function(Bk,SQ){var VH=[],vw=[];Bk=P(Bk);SQ=P(SQ);kR(Bk.translateX,Bk.translateY,SQ.translateX,SQ.translateY,VH,vw);yw(Bk.rotate,SQ.rotate,VH,vw);FE(Bk.skewX,SQ.skewX,VH,vw);ck(Bk.scaleX,Bk.scaleY,SQ.scaleX,SQ.scaleY,VH,vw);Bk=SQ=null;return function(zq){for(var Q8=-1,oK=vw.length,bx;++Q8<oK;)VH[(bx=vw[Q8]).i]=bx.x(zq);return VH.join("")}}}
function Z3(P){return function(R,u){var B=P((R=CS(R)).h,(u=CS(u)).h),MG=k7(R.s,u.s),kR=k7(R.l,u.l),yw=k7(R.opacity,u.opacity);return function(FE){R.h=B(FE);R.s=MG(FE);R.l=kR(FE);R.opacity=yw(FE);return R+""}}}
function QY(P){return function(R,u){var B=P((R=Ds(R)).h,(u=Ds(u)).h),MG=k7(R.c,u.c),kR=k7(R.l,u.l),yw=k7(R.opacity,u.opacity);return function(FE){R.h=B(FE);R.c=MG(FE);R.l=kR(FE);R.opacity=yw(FE);return R+""}}}
function nT(P){return function B(u){function MG(kR,yw){var FE=P((kR=zj(kR)).h,(yw=zj(yw)).h),ck=k7(kR.s,yw.s),Bk=k7(kR.l,yw.l),SQ=k7(kR.opacity,yw.opacity);return function(VH){kR.h=FE(VH);kR.s=ck(VH);kR.l=Bk(Math.pow(VH,u));kR.opacity=SQ(VH);return kR+""}}
u=+u;MG.gamma=B;return MG}(1)}
function y_(){return fm||(MdH(v5G),fm=oC.now()+HSu)}
function v5G(){fm=0}
function Kg(){this._call=this._time=this._next=null}
function Ef(P,R,u){var B=new Kg;B.restart(P,R,u);return B}
function mT(){fm=(Dxq=oC.now())+HSu;VZ=v6=0;try{y_();++VZ;for(var P=zTw,R;P;)(R=fm-P._time)>=0&&P._call.call(null,R),P=P._next;--VZ}finally{VZ=0;P=zTw;for(var u=Infinity;P;)if(P._call){u>P._time&&(u=P._time);var B=P;P=P._next}else R=P._next,P._next=null,P=B?B._next=R:zTw=R;$W=B;ov(u);fm=0}}
function DBG(){var P=oC.now(),R=P-Dxq;R>1E3&&(HSu-=R,Dxq=P)}
function ov(P){VZ||(v6&&(v6=clearTimeout(v6)),P-fm>24?(P<Infinity&&(v6=setTimeout(mT,P-oC.now()-HSu)),i0&&(i0=clearInterval(i0))):(i0||(Dxq=oC.now(),i0=setInterval(DBG,1E3)),VZ=1,MdH(mT)))}
function IFl(P,R,u){var B=new Kg;R=R==null?0:+R;B.restart(function(MG){B.stop();P(MG+R)},R,u);
return B}
function XCq(P,R,u,B,MG,kR){var yw=P.__transition;if(!yw)P.__transition={};else if(u in yw)return;x_T(P,u,{name:R,index:B,group:MG,on:E1L,tween:m_d,time:kR.time,delay:kR.delay,duration:kR.duration,ease:kR.ease,timer:null,state:0})}
function Ppw(P,R){P=LX(P,R);if(P.state>0)throw Error("re");return P}
function Cm(P,R){P=LX(P,R);if(P.state>2)throw Error("se");return P}
function LX(P,R){P=P.__transition;if(!P||!(P=P[R]))throw Error("te");return P}
function x_T(P,R,u){function B(ck){var Bk,SQ;if(u.state!==1)return kR();for(vw in yw){var VH=yw[vw];if(VH.name===u.name){if(VH.state===3)return IFl(B);VH.state===4?(VH.state=6,VH.timer.stop(),VH.on.call("interrupt",P,P.__data__,VH.index,VH.group),delete yw[vw]):+vw<R&&(VH.state=6,VH.timer.stop(),delete yw[vw])}}IFl(function(){u.state===3&&(u.state=4,u.timer.restart(MG,u.delay,u.time),MG(ck))});
u.state=2;u.on.call("start",P,P.__data__,u.index,u.group);if(u.state===2){u.state=3;FE=Array(SQ=u.tween.length);var vw=0;for(Bk=-1;vw<SQ;++vw)if(VH=u.tween[vw].value.call(P,P.__data__,u.index,u.group))FE[++Bk]=VH;FE.length=Bk+1}}
function MG(ck){ck=ck<u.duration?u.ease.call(null,ck/u.duration):(u.timer.restart(kR),u.state=5,1);for(var Bk=-1,SQ=FE.length;++Bk<SQ;)FE[Bk].call(null,ck);u.state===5&&(u.on.call("end",P,P.__data__,u.index,u.group),kR())}
function kR(){u.state=6;u.timer.stop();delete yw[R];for(var ck in yw)return;delete P.__transition}
var yw=P.__transition,FE;yw[R]=u;u.timer=Ef(function(ck){u.state=1;u.timer.restart(B,u.delay,u.time);u.delay<=ck&&B(ck-u.delay)},0,u.time)}
function o1L(P,R){var u,B;return function(){var MG=Cm(this,P),kR=MG.tween;if(kR!==u){B=u=kR;kR=0;for(var yw=B.length;kR<yw;++kR)if(B[kR].name===R){B=B.slice();B.splice(kR,1);break}}MG.tween=B}}
function v1o(P,R,u){var B,MG;if(typeof u!=="function")throw Error();return function(){var kR=Cm(this,P),yw=kR.tween;if(yw!==B){MG=(B=yw).slice();yw={name:R,value:u};for(var FE=0,ck=MG.length;FE<ck;++FE)if(MG[FE].name===R){MG[FE]=yw;break}FE===ck&&MG.push(yw)}kR.tween=MG}}
function ZCX(P,R,u){var B=P._id;P.each(function(){var MG=Cm(this,B);(MG.value||(MG.value={}))[R]=u.apply(this,arguments)});
return function(MG){return LX(MG,B).value[R]}}
function dDj(P,R){var u;return(typeof R==="number"?vk:R instanceof Tq?Vdc:(u=Tq(R))?(R=u,Vdc):WY)(P,R)}
function $_A(P){return function(){this.removeAttribute(P)}}
function i4X(P){return function(){this.removeAttributeNS(P.space,P.local)}}
function NIL(P,R,u){var B,MG;return function(){var kR=this.getAttribute(P);return kR===u?null:kR===B?MG:MG=R(B=kR,u)}}
function BIL(P,R,u){var B,MG;return function(){var kR=this.getAttributeNS(P.space,P.local);return kR===u?null:kR===B?MG:MG=R(B=kR,u)}}
function qpT(P,R,u){var B,MG,kR;return function(){var yw=u(this);if(yw==null)return void this.removeAttribute(P);var FE=this.getAttribute(P);return FE===yw?null:FE===B&&yw===MG?kR:kR=R(B=FE,MG=yw)}}
function AxX(P,R,u){var B,MG,kR;return function(){var yw=u(this);if(yw==null)return void this.removeAttributeNS(P.space,P.local);var FE=this.getAttributeNS(P.space,P.local);return FE===yw?null:FE===B&&yw===MG?kR:kR=R(B=FE,MG=yw)}}
function tCn(P,R){function u(){var B=this,MG=R.apply(B,arguments);return MG&&function(kR){B.setAttributeNS(P.space,P.local,MG(kR))}}
u._value=R;return u}
function cxA(P,R){function u(){var B=this,MG=R.apply(B,arguments);return MG&&function(kR){B.setAttribute(P,MG(kR))}}
u._value=R;return u}
function SxY(P,R){return function(){Ppw(this,P).delay=+R.apply(this,arguments)}}
function pgT(P,R){return R=+R,function(){Ppw(this,P).delay=R}}
function UOd(P,R){return function(){Cm(this,P).duration=+R.apply(this,arguments)}}
function Yxi(P,R){return R=+R,function(){Cm(this,P).duration=R}}
function L5o(P,R){if(typeof R!=="function")throw Error();return function(){Cm(this,P).ease=R}}
function MRE(P){return(P+"").trim().split(/^|\s+/).every(function(R){var u=R.indexOf(".");u>=0&&(R=R.slice(0,u));return!R||R==="start"})}
function INo(P,R,u){var B,MG,kR=MRE(R)?Ppw:Cm;return function(){var yw=kR(this,P),FE=yw.on;if(FE!==B)(MG=(B=FE).copy()).on(R,u);yw.on=MG}}
function dOL(P){return function(){var R=this.parentNode,u;for(u in this.__transition)if(+u!==P)return;R&&R.removeChild(this)}}
function VRL(P,R){var u,B,MG;return function(){var kR=Ru(this,P),yw=(this.style.removeProperty(P),Ru(this,P));return kR===yw?null:kR===u&&yw===B?MG:MG=R(u=kR,B=yw)}}
function T1P(P){return function(){this.style.removeProperty(P)}}
function W5s(P,R,u){var B,MG;return function(){var kR=Ru(this,P);return kR===u?null:kR===B?MG:MG=R(B=kR,u)}}
function OTq(P,R,u){var B,MG,kR;return function(){var yw=Ru(this,P),FE=u(this);FE==null&&(FE=(this.style.removeProperty(P),Ru(this,P)));return yw===FE?null:yw===B&&FE===MG?kR:kR=R(B=yw,MG=FE)}}
function kRo(P,R,u){function B(){var MG=this,kR=R.apply(MG,arguments);return kR&&function(yw){MG.style.setProperty(P,kR(yw),u)}}
B._value=R;return B}
function HTP(P){return function(){this.textContent=P}}
function DOY(P){return function(){var R=P(this);this.textContent=R==null?"":R}}
function Vg(P,R,u,B){this._groups=P;this._parents=R;this._name=u;this._id=B}
function sXX(P){return{type:P}}
function eDG(){this._x0=this._y0=this._x1=this._y1=null;this._=""}
function Q8e(){}
function TPQ(P,R){var u=new Q8e;if(P instanceof Q8e)P.each(function(yw,FE){u.set(FE,yw)});
else if(Array.isArray(P)){var B=-1,MG=P.length,kR;if(R==null)for(;++B<MG;)u.set(B,P[B]);else for(;++B<MG;)u.set(R(kR=P[B],B,P),kR)}else if(P)for(B in P)u.set(B,P[B]);return u}
function njw(){}
function Wlc(P){return function(R){for(var u={},B=0;B<P.length;B++)u[P[B]]=R[B]||"";return u}}
function zys(P,R){var u=Wlc(P);return function(B,MG){return R(u(B),MG,P)}}
function QaJ(P){var R=Object.create(null),u=[];P.forEach(function(B){for(var MG in B)MG in R||u.push(R[MG]=MG)});
return u}
function OCe(P){function R(yw,FE){function ck(){if(Q8)return gir;if(oK)return oK=!1,kxI;var ot,Sk=VH,b5;if(yw.charCodeAt(Sk)===34){for(;VH++<SQ&&yw.charCodeAt(VH)!==34||yw.charCodeAt(++VH)===34;);(ot=VH)>=SQ?Q8=!0:(b5=yw.charCodeAt(VH++))===10?oK=!0:b5===13&&(oK=!0,yw.charCodeAt(VH)===10&&++VH);return yw.slice(Sk+1,ot-1).replace(/""/g,'"')}for(;VH<SQ;){if((b5=yw.charCodeAt(ot=VH++))===10)oK=!0;else if(b5===13)oK=!0,yw.charCodeAt(VH)===10&&++VH;else if(b5!==kR)continue;return yw.slice(Sk,ot)}return Q8=
!0,yw.slice(Sk,SQ)}
var Bk=[],SQ=yw.length,VH=0,vw=0,zq,Q8=SQ<=0,oK=!1;yw.charCodeAt(SQ-1)===10&&--SQ;for(yw.charCodeAt(SQ-1)===13&&--SQ;(zq=ck())!==gir;){for(var bx=[];zq!==kxI&&zq!==gir;)bx.push(zq),zq=ck();FE&&(bx=FE(bx,vw++))==null||Bk.push(bx)}return Bk}
function u(yw){return yw.map(B).join(P)}
function B(yw){return yw==null?"":MG.test(yw)?'"'+yw.replace(/"/g,'""')+'"':yw}
var MG=new RegExp('["'+P+"\n\r]"),kR=P.charCodeAt(0);return{parse:function(yw,FE){var ck,Bk;yw=R(yw,function(SQ,VH){if(ck)return ck(SQ,VH-1);Bk=SQ;ck=FE?zys(SQ,FE):Wlc(SQ)});
yw.columns=Bk||[];return yw},
parseRows:R,format:function(yw,FE){FE==null&&(FE=QaJ(yw));return[FE.map(B).join(P)].concat(yw.map(function(ck){return FE.map(function(Bk){return B(ck[Bk])}).join(P)})).join("\n")},
formatRows:function(yw){return yw.map(u).join("\n")}}}
function nCt(P){if(!P.ok)throw Error("ue`"+P.status+"`"+P.statusText);return P.text()}
function HCm(P){return function(R,u,B){arguments.length===2&&typeof u==="function"&&(B=u,u=void 0);return fetch(R,u).then(nCt).then(function(MG){return P(MG,B)})}}
function DDw(P,R,u,B){if(isNaN(R)||isNaN(u))return P;var MG,kR=P._root;B={data:B};var yw=P._x0,FE=P._y0,ck=P._x1,Bk=P._y1,SQ,VH,vw,zq,Q8;if(!kR)return P._root=B,P;for(;kR.length;)if((vw=R>=(SQ=(yw+ck)/2))?yw=SQ:ck=SQ,(zq=u>=(VH=(FE+Bk)/2))?FE=VH:Bk=VH,MG=kR,!(kR=kR[Q8=zq<<1|vw]))return MG[Q8]=B,P;var oK=+P._x.call(null,kR.data);var bx=+P._y.call(null,kR.data);if(R===oK&&u===bx)return B.next=kR,MG?MG[Q8]=B:P._root=B,P;do MG=MG?MG[Q8]=Array(4):P._root=Array(4),(vw=R>=(SQ=(yw+ck)/2))?yw=SQ:ck=SQ,(zq=
u>=(VH=(FE+Bk)/2))?FE=VH:Bk=VH;while((Q8=zq<<1|vw)===(vw=(bx>=VH)<<1|oK>=SQ));return MG[vw]=kR,MG[Q8]=B,P}
function cB(P,R,u,B,MG){this.node=P;this.x0=R;this.y0=u;this.x1=B;this.y1=MG}
function JkT(P){return P[0]}
function yki(P){return P[1]}
function uDe(P,R,u,B,MG,kR){this._x=P;this._y=R;this._x0=u;this._y0=B;this._x1=MG;this._y1=kR;this._root=void 0}
function zDw(P){for(var R={data:P.data},u=R;P=P.next;)u=u.next={data:P.data};return R}
function JyG(P,R){if((R=(P=R?P.toExponential(R-1):P.toExponential()).indexOf("e"))<0)return null;var u=P.slice(0,R);return[u.length>1?u[0]+u.slice(2):u,+P.slice(R+1)]}
function K5X(P){return P=JyG(Math.abs(P)),P?P[1]:NaN}
function bTt(P,R){return function(u,B){for(var MG=u.length,kR=[],yw=0,FE=P[0],ck=0;MG>0&&FE>0;){ck+FE+1>B&&(FE=Math.max(1,B-ck));kR.push(u.substring(MG-=FE,MG+FE));if((ck+=FE+1)>B)break;FE=P[yw=(yw+1)%P.length]}return kR.reverse().join(R)}}
function jas(P){return function(R){return R.replace(/[0-9]/g,function(u){return P[+u]})}}
function wCe(P){return new lFw(P)}
function lFw(P){if(!(R=rkL.exec(P)))throw Error("ve`"+P);var R;this.fill=R[1]||" ";this.align=R[2]||">";this.sign=R[3]||"-";this.symbol=R[4]||"";this.zero=!!R[5];this.width=R[6]&&+R[6];this.comma=!!R[7];this.precision=R[8]&&+R[8].slice(1);this.trim=!!R[9];this.type=R[10]||""}
function QXE(P,R){R=JyG(P,R);if(!R)return P+"";P=R[0];R=R[1];return R<0?"0."+Array(-R).join("0")+P:P.length>R+1?P.slice(0,R+1)+"."+P.slice(R+1):P+Array(R-P.length+2).join("0")}
function nic(P){return P}
function GRT(P){function R(FE){function ck(i4){var Du=b5,PP=IF,OH,p8;if(Sk==="c")PP=pS(i4)+PP,i4="";else{i4=+i4;var Jd=i4<0;i4=pS(Math.abs(i4),bx);if(ot){var io=i4.length,Xr=1,vA=-1;a:for(;Xr<io;++Xr)switch(i4[Xr]){case ".":vA=OH=Xr;break;case "0":vA===0&&(vA=Xr);OH=Xr;break;default:if(!+i4[Xr])break a;vA>0&&(vA=0)}i4=vA>0?i4.slice(0,vA)+i4.slice(OH+1):i4}Jd&&+i4===0&&(Jd=!1);Du=(Jd?VH==="("?VH:"-":VH==="-"||VH==="("?"":VH)+Du;PP=(Sk==="s"?JKH[8+yKP/3]:"")+PP+(Jd&&VH==="("?")":"");if(K_)for(Jd=-1,
OH=i4.length;++Jd<OH;)if(p8=i4.charCodeAt(Jd),48>p8||p8>57){PP=(p8===46?MG+i4.slice(Jd+1):i4.slice(Jd))+PP;i4=i4.slice(0,Jd);break}}oK&&!zq&&(i4=u(i4,Infinity));p8=Du.length+i4.length+PP.length;Jd=p8<Q8?Array(Q8-p8+1).join(Bk):"";oK&&zq&&(i4=u(Jd+i4,Jd.length?Q8-PP.length:Infinity),Jd="");switch(SQ){case "<":i4=Du+i4+PP+Jd;break;case "=":i4=Du+Jd+i4+PP;break;case "^":i4=Jd.slice(0,p8=Jd.length>>1)+Du+i4+PP+Jd.slice(p8);break;default:i4=Jd+Du+i4+PP}return kR(i4)}
FE=wCe(FE);var Bk=FE.fill,SQ=FE.align,VH=FE.sign,vw=FE.symbol,zq=FE.zero,Q8=FE.width,oK=FE.comma,bx=FE.precision,ot=FE.trim,Sk=FE.type;Sk==="n"?(oK=!0,Sk="g"):Klq[Sk]||(bx==null&&(bx=12),ot=!0,Sk="g");if(zq||Bk==="0"&&SQ==="=")zq=!0,Bk="0",SQ="=";var b5=vw==="$"?B[0]:vw==="#"&&/[boxX]/.test(Sk)?"0"+Sk.toLowerCase():"",IF=vw==="$"?B[1]:/[%p]/.test(Sk)?yw:"",pS=Klq[Sk],K_=/[defgprs%]/.test(Sk);bx=bx==null?6:/[gprs]/.test(Sk)?Math.max(1,Math.min(21,bx)):Math.max(0,Math.min(20,bx));ck.toString=function(){return FE+
""};
return ck}
var u=P.grouping&&P.thousands?bTt(P.grouping,P.thousands):nic,B=P.currency,MG=P.decimal,kR=P.numerals?jas(P.numerals):nic,yw=P.percent||"%";return{format:R,formatPrefix:function(FE,ck){var Bk=R((FE=wCe(FE),FE.type="f",FE));FE=Math.max(-8,Math.min(8,Math.floor(K5X(ck)/3)))*3;var SQ=Math.pow(10,-FE),VH=JKH[8+FE/3];return function(vw){return Bk(SQ*vw)+VH}}}}
function aa(){this.reset()}
function bCt(P,R,u){var B=P.s=R+u,MG=B-R;P.t=R-(B-MG)+(u-MG)}
function yye(P){return P>1?mU:P<-1?-mU:Math.asin(P)}
function hyd(){}
function jXP(P){var R=P[0];P=P[1];var u=oA(P);return[u*oA(R),u*X1(R),X1(P)]}
function rKm(P,R){return[P[1]*R[2]-P[2]*R[1],P[2]*R[0]-P[0]*R[2],P[0]*R[1]-P[1]*R[0]]}
function Gxc(P){var R=K4e(P[0]*P[0]+P[1]*P[1]+P[2]*P[2]);P[0]/=R;P[1]/=R;P[2]/=R}
function Ryd(){var P=[],R;return{point:function(u,B){R.push([u,B])},
lineStart:function(){P.push(R=[])},
lineEnd:hyd,rejoin:function(){P.length>1&&P.push(P.pop().concat(P.shift()))},
result:function(){var u=P;P=[];R=null;return u}}}
function bSq(P,R,u,B){this.x=P;this.z=R;this.o=u;this.e=B;this.v=!1;this.n=this.p=null}
function F5d(P,R,u,B,MG){var kR=[],yw=[];P.forEach(function(VH){if(!((vw=VH.length-1)<=0)){var vw,zq=VH[0],Q8=VH[vw],oK=zq;if(Tb(oK[0]-Q8[0])<1E-6&&Tb(oK[1]-Q8[1])<1E-6){MG.lineStart();for(FE=0;FE<vw;++FE)MG.point((zq=VH[FE])[0],zq[1]);MG.lineEnd()}else kR.push(vw=new bSq(zq,VH,null,!0)),yw.push(vw.o=new bSq(zq,null,vw,!1)),kR.push(vw=new bSq(Q8,VH,null,!1)),yw.push(vw.o=new bSq(Q8,null,vw,!0))}});
if(kR.length){yw.sort(R);hDd(kR);hDd(yw);var FE=0;for(P=yw.length;FE<P;++FE)yw[FE].e=u=!u;u=kR[0];for(var ck;;){for(var Bk=u,SQ=!0;Bk.v;)if((Bk=Bk.n)===u)return;R=Bk.z;MG.lineStart();do{Bk.v=Bk.o.v=!0;if(Bk.e){if(SQ)for(FE=0,P=R.length;FE<P;++FE)MG.point((ck=R[FE])[0],ck[1]);else B(Bk.x,Bk.n.x,1,MG);Bk=Bk.n}else{if(SQ)for(R=Bk.p.z,FE=R.length-1;FE>=0;--FE)MG.point((ck=R[FE])[0],ck[1]);else B(Bk.x,Bk.p.x,-1,MG);Bk=Bk.p}Bk=Bk.o;R=Bk.z;SQ=!SQ}while(!Bk.v);MG.lineEnd()}}}
function hDd(P){if(R=P.length){for(var R,u=0,B=P[0],MG;++u<R;)B.n=MG=P[u],MG.p=B,B=MG;B.n=MG=P[0];MG.p=B}}
function Xgn(P){return P.length>1}
function PYX(P,R){return((P=P.x)[0]<0?P[1]-mU-1E-6:mU-P[1])-((R=R.x)[0]<0?R[1]-mU-1E-6:mU-R[1])}
function aFG(){}
function RDH(P){return function(R,u){var B=oA(R),MG=oA(u);B=P(B*MG);return[B*MG*X1(R),B*X1(u)]}}
function N5(P){return function(R,u){var B=K4e(R*R+u*u),MG=P(B),kR=X1(MG);MG=oA(MG);return[Flt(R*kR,B*MG),yye(B&&u*kR/B)]}}
function ZTX(P){var R=0,u=P.children,B=u&&u.length;if(B)for(;--B>=0;)R+=u[B].value;else R=1;P.value=R}
function XCE(P,R){var u=new B6(P);P=+P.value&&(u.value=P.value);var B,MG=[u],kR,yw,FE,ck;for(R==null&&(R=sad);B=MG.pop();)if(P&&(B.value=+B.data.value),(yw=R(B.data))&&(ck=yw.length))for(B.children=Array(ck),FE=ck-1;FE>=0;--FE)MG.push(kR=B.children[FE]=new B6(yw[FE])),kR.parent=B,kR.depth=B.depth+1;return u.eachBefore(eyL)}
function sad(P){return P.children}
function gCd(P){P.data=P.data.data}
function eyL(P){var R=0;do P.height=R;while((P=P.parent)&&P.height<++R)}
function B6(P){this.data=P;this.depth=this.height=0;this.parent=null}
function QI(P,R,u,B){function MG(kR){return P(kR=new Date(+kR)),kR}
MG.floor=MG;MG.ceil=function(kR){return P(kR=new Date(kR-1)),R(kR,1),P(kR),kR};
MG.round=function(kR){var yw=MG(kR),FE=MG.ceil(kR);return kR-yw<FE-kR?yw:FE};
MG.offset=function(kR,yw){return R(kR=new Date(+kR),yw==null?1:Math.floor(yw)),kR};
MG.range=function(kR,yw,FE){var ck=[],Bk;kR=MG.ceil(kR);FE=FE==null?1:Math.floor(FE);if(!(kR<yw&&FE>0))return ck;do ck.push(Bk=new Date(+kR)),R(kR,FE),P(kR);while(Bk<kR&&kR<yw);return ck};
MG.filter=function(kR){return QI(function(yw){if(yw>=yw)for(;P(yw),!kR(yw);)yw.setTime(yw-1)},function(yw,FE){if(yw>=yw)if(FE<0)for(;++FE<=0;)for(;R(yw,-1),!kR(yw););
else for(;--FE>=0;)for(;R(yw,1),!kR(yw););})};
u&&(MG.count=function(kR,yw){fFG.setTime(+kR);Cpd.setTime(+yw);P(fFG);P(Cpd);return Math.floor(u(fFG,Cpd))},MG.every=function(kR){kR=Math.floor(kR);
return isFinite(kR)&&kR>0?kR>1?MG.filter(B?function(yw){return B(yw)%kR===0}:function(yw){return MG.count(0,yw)%kR===0}):MG:null});
return MG}
function x0(P){return QI(function(R){R.setDate(R.getDate()-(R.getDay()+7-P)%7);R.setHours(0,0,0,0)},function(R,u){R.setDate(R.getDate()+u*7)},function(R,u){return(u-R-(u.getTimezoneOffset()-R.getTimezoneOffset())*6E4)/6048E5})}
function Ei(P){return QI(function(R){R.setUTCDate(R.getUTCDate()-(R.getUTCDay()+7-P)%7);R.setUTCHours(0,0,0,0)},function(R,u){R.setUTCDate(R.getUTCDate()+u*7)},function(R,u){return(u-R)/6048E5})}
function uUY(P){if(0<=P.y&&P.y<100){var R=new Date(-1,P.m,P.d,P.H,P.M,P.S,P.L);R.setFullYear(P.y);return R}return new Date(P.y,P.m,P.d,P.H,P.M,P.S,P.L)}
function j8R(P){if(0<=P.y&&P.y<100){var R=new Date(Date.UTC(-1,P.m,P.d,P.H,P.M,P.S,P.L));R.setUTCFullYear(P.y);return R}return new Date(Date.UTC(P.y,P.m,P.d,P.H,P.M,P.S,P.L))}
function q5(P){return{y:P,m:0,d:1,H:0,M:0,S:0,L:0}}
function wgA(P){function R(PP,OH){return function(p8){var Jd=[],io=-1,Xr=0,vA=PP.length,DC,hh;for(p8 instanceof Date||(p8=new Date(+p8));++io<vA;)if(PP.charCodeAt(io)===37){Jd.push(PP.slice(Xr,io));(Xr=Ppd[DC=PP.charAt(++io)])!=null?DC=PP.charAt(++io):Xr=DC==="e"?" ":"0";if(hh=OH[DC])DC=hh(p8,Xr);Jd.push(DC);Xr=io+1}Jd.push(PP.slice(Xr,io));return Jd.join("")}}
function u(PP,OH){return function(p8){var Jd=q5(1900);if(B(Jd,PP,p8,0)!=p8.length)return null;if("Q"in Jd)return new Date(Jd.Q);"p"in Jd&&(Jd.H=Jd.H%12+Jd.p*12);if("V"in Jd){if(Jd.V<1||Jd.V>53)return null;"w"in Jd||(Jd.w=1);if("Z"in Jd){p8=j8R(q5(Jd.y));var io=p8.getUTCDay();p8=io>4||io===0?xDk.ceil(p8):xDk(p8);p8=ZCl.offset(p8,(Jd.V-1)*7);Jd.y=p8.getUTCFullYear();Jd.m=p8.getUTCMonth();Jd.d=p8.getUTCDate()+(Jd.w+6)%7}else p8=OH(q5(Jd.y)),io=p8.getDay(),p8=io>4||io===0?Eik.ceil(p8):Eik(p8),p8=sXl.offset(p8,
(Jd.V-1)*7),Jd.y=p8.getFullYear(),Jd.m=p8.getMonth(),Jd.d=p8.getDate()+(Jd.w+6)%7}else if("W"in Jd||"U"in Jd)"w"in Jd||(Jd.w="u"in Jd?Jd.u%7:"W"in Jd?1:0),io="Z"in Jd?j8R(q5(Jd.y)).getUTCDay():OH(q5(Jd.y)).getDay(),Jd.m=0,Jd.d="W"in Jd?(Jd.w+6)%7+Jd.W*7-(io+5)%7:Jd.w+Jd.U*7-(io+6)%7;return"Z"in Jd?(Jd.H+=Jd.Z/100|0,Jd.M+=Jd.Z%100,j8R(Jd)):OH(Jd)}}
function B(PP,OH,p8,Jd){for(var io=0,Xr=OH.length,vA=p8.length,DC;io<Xr;){if(Jd>=vA)return-1;DC=OH.charCodeAt(io++);if(DC===37){if(DC=OH.charAt(io++),DC=Du[DC in Ppd?OH.charAt(io++):DC],!DC||(Jd=DC(PP,p8,Jd))<0)return-1}else if(DC!=p8.charCodeAt(Jd++))return-1}return Jd}
var MG=P.dateTime,kR=P.date,yw=P.time,FE=P.periods,ck=P.days,Bk=P.shortDays,SQ=P.months,VH=P.shortMonths,vw=AD(FE),zq=tD(FE),Q8=AD(ck),oK=tD(ck),bx=AD(Bk),ot=tD(Bk),Sk=AD(SQ),b5=tD(SQ),IF=AD(VH),pS=tD(VH),K_={a:function(PP){return Bk[PP.getDay()]},
A:function(PP){return ck[PP.getDay()]},
b:function(PP){return VH[PP.getMonth()]},
B:function(PP){return SQ[PP.getMonth()]},
c:null,d:eDj,e:eDj,f:lNJ,H:aNP,I:fN5,j:CYd,L:gic,m:xOd,M:ECJ,p:function(PP){return FE[+(PP.getHours()>=12)]},
Q:uDt,s:wCq,S:mOE,u:oC5,U:vCo,V:$OP,w:iTJ,W:N1q,x:null,X:null,y:B15,Y:qxn,Z:AkA,"%":lFH},i4={a:function(PP){return Bk[PP.getUTCDay()]},
A:function(PP){return ck[PP.getUTCDay()]},
b:function(PP){return VH[PP.getUTCMonth()]},
B:function(PP){return SQ[PP.getUTCMonth()]},
c:null,d:aFj,e:aFj,f:tRq,H:ckL,I:SCX,j:pDL,L:fFt,m:UAn,M:YCt,p:function(PP){return FE[+(PP.getUTCHours()>=12)]},
Q:uDt,s:wCq,S:LCt,u:McT,U:Ix5,V:dAn,w:Vcs,W:TXA,x:null,X:null,y:WCs,Y:O0d,Z:kXP,"%":lFH},Du={a:function(PP,OH,p8){return(OH=bx.exec(OH.slice(p8)))?(PP.w=ot[OH[0].toLowerCase()],p8+OH[0].length):-1},
A:function(PP,OH,p8){return(OH=Q8.exec(OH.slice(p8)))?(PP.w=oK[OH[0].toLowerCase()],p8+OH[0].length):-1},
b:function(PP,OH,p8){return(OH=IF.exec(OH.slice(p8)))?(PP.m=pS[OH[0].toLowerCase()],p8+OH[0].length):-1},
B:function(PP,OH,p8){return(OH=Sk.exec(OH.slice(p8)))?(PP.m=b5[OH[0].toLowerCase()],p8+OH[0].length):-1},
c:function(PP,OH,p8){return B(PP,MG,OH,p8)},
d:Cpe,e:Cpe,f:H0d,H:xDw,I:xDw,j:DAs,L:zXn,m:Q3s,M:nZn,p:function(PP,OH,p8){return(OH=vw.exec(OH.slice(p8)))?(PP.p=zq[OH[0].toLowerCase()],p8+OH[0].length):-1},
Q:JHi,s:yHi,S:KCs,u:b0J,U:j3i,V:rHd,w:GXX,W:hXt,x:function(PP,OH,p8){return B(PP,kR,OH,p8)},
X:function(PP,OH,p8){return B(PP,yw,OH,p8)},
y:RXi,Y:FCY,Z:XDY,"%":P1J};K_.x=R(kR,K_);K_.X=R(yw,K_);K_.c=R(MG,K_);i4.x=R(kR,i4);i4.X=R(yw,i4);i4.c=R(MG,i4);return{format:function(PP){var OH=R(PP,K_);OH.toString=function(){return PP};
return OH},
parse:function(PP){var OH=u(PP,uUY);OH.toString=function(){return PP};
return OH},
utcFormat:function(PP){var OH=R(PP,i4);OH.toString=function(){return PP};
return OH},
utcParse:function(PP){var OH=u(PP,j8R);OH.toString=function(){return PP};
return OH}}}
function bo(P,R,u){var B=P<0?"-":"";P=(B?-P:P)+"";var MG=P.length;return B+(MG<u?Array(u-MG+1).join(R)+P:P)}
function Z0t(P){return P.replace(s3E,"\\$&")}
function AD(P){return new RegExp("^(?:"+P.map(Z0t).join("|")+")","i")}
function tD(P){for(var R={},u=-1,B=P.length;++u<B;)R[P[u].toLowerCase()]=u;return R}
function GXX(P,R,u){return(R=jt.exec(R.slice(u,u+1)))?(P.w=+R[0],u+R[0].length):-1}
function b0J(P,R,u){return(R=jt.exec(R.slice(u,u+1)))?(P.u=+R[0],u+R[0].length):-1}
function j3i(P,R,u){return(R=jt.exec(R.slice(u,u+2)))?(P.U=+R[0],u+R[0].length):-1}
function rHd(P,R,u){return(R=jt.exec(R.slice(u,u+2)))?(P.V=+R[0],u+R[0].length):-1}
function hXt(P,R,u){return(R=jt.exec(R.slice(u,u+2)))?(P.W=+R[0],u+R[0].length):-1}
function FCY(P,R,u){return(R=jt.exec(R.slice(u,u+4)))?(P.y=+R[0],u+R[0].length):-1}
function RXi(P,R,u){return(R=jt.exec(R.slice(u,u+2)))?(P.y=+R[0]+(+R[0]>68?1900:2E3),u+R[0].length):-1}
function XDY(P,R,u){return(R=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(R.slice(u,u+6)))?(P.Z=R[1]?0:-(R[2]+(R[3]||"00")),u+R[0].length):-1}
function Q3s(P,R,u){return(R=jt.exec(R.slice(u,u+2)))?(P.m=R[0]-1,u+R[0].length):-1}
function Cpe(P,R,u){return(R=jt.exec(R.slice(u,u+2)))?(P.d=+R[0],u+R[0].length):-1}
function DAs(P,R,u){return(R=jt.exec(R.slice(u,u+3)))?(P.m=0,P.d=+R[0],u+R[0].length):-1}
function xDw(P,R,u){return(R=jt.exec(R.slice(u,u+2)))?(P.H=+R[0],u+R[0].length):-1}
function nZn(P,R,u){return(R=jt.exec(R.slice(u,u+2)))?(P.M=+R[0],u+R[0].length):-1}
function KCs(P,R,u){return(R=jt.exec(R.slice(u,u+2)))?(P.S=+R[0],u+R[0].length):-1}
function zXn(P,R,u){return(R=jt.exec(R.slice(u,u+3)))?(P.L=+R[0],u+R[0].length):-1}
function H0d(P,R,u){return(R=jt.exec(R.slice(u,u+6)))?(P.L=Math.floor(R[0]/1E3),u+R[0].length):-1}
function P1J(P,R,u){return(P=eXP.exec(R.slice(u,u+1)))?u+P[0].length:-1}
function JHi(P,R,u){return(R=jt.exec(R.slice(u)))?(P.Q=+R[0],u+R[0].length):-1}
function yHi(P,R,u){return(R=jt.exec(R.slice(u)))?(P.Q=+R[0]*1E3,u+R[0].length):-1}
function eDj(P,R){return bo(P.getDate(),R,2)}
function aNP(P,R){return bo(P.getHours(),R,2)}
function fN5(P,R){return bo(P.getHours()%12||12,R,2)}
function CYd(P,R){return bo(1+sXl.count(Tm(P),P),R,3)}
function gic(P,R){return bo(P.getMilliseconds(),R,3)}
function lNJ(P,R){return gic(P,R)+"000"}
function xOd(P,R){return bo(P.getMonth()+1,R,2)}
function ECJ(P,R){return bo(P.getMinutes(),R,2)}
function mOE(P,R){return bo(P.getSeconds(),R,2)}
function oC5(P){P=P.getDay();return P===0?7:P}
function vCo(P,R){return bo(gZi.count(Tm(P),P),R,2)}
function $OP(P,R){var u=P.getDay();P=u>=4||u===0?mDE(P):mDE.ceil(P);return bo(mDE.count(Tm(P),P)+(Tm(P).getDay()===4),R,2)}
function iTJ(P){return P.getDay()}
function N1q(P,R){return bo(Eik.count(Tm(P),P),R,2)}
function B15(P,R){return bo(P.getFullYear()%100,R,2)}
function qxn(P,R){return bo(P.getFullYear()%1E4,R,4)}
function AkA(P){P=P.getTimezoneOffset();return(P>0?"-":(P*=-1,"+"))+bo(P/60|0,"0",2)+bo(P%60,"0",2)}
function aFj(P,R){return bo(P.getUTCDate(),R,2)}
function ckL(P,R){return bo(P.getUTCHours(),R,2)}
function SCX(P,R){return bo(P.getUTCHours()%12||12,R,2)}
function pDL(P,R){return bo(1+ZCl.count(W0(P),P),R,3)}
function fFt(P,R){return bo(P.getUTCMilliseconds(),R,3)}
function tRq(P,R){return fFt(P,R)+"000"}
function UAn(P,R){return bo(P.getUTCMonth()+1,R,2)}
function YCt(P,R){return bo(P.getUTCMinutes(),R,2)}
function LCt(P,R){return bo(P.getUTCSeconds(),R,2)}
function McT(P){P=P.getUTCDay();return P===0?7:P}
function Ix5(P,R){return bo(uXq.count(W0(P),P),R,2)}
function dAn(P,R){var u=P.getUTCDay();P=u>=4||u===0?oie(P):oie.ceil(P);return bo(oie.count(W0(P),P)+(W0(P).getUTCDay()===4),R,2)}
function Vcs(P){return P.getUTCDay()}
function TXA(P,R){return bo(xDk.count(W0(P),P),R,2)}
function WCs(P,R){return bo(P.getUTCFullYear()%100,R,2)}
function O0d(P,R){return bo(P.getUTCFullYear()%1E4,R,4)}
function kXP(){return"+0000"}
function lFH(){return"%"}
function uDt(P){return+P}
function wCq(P){return Math.floor(+P/1E3)}
function d3(P){for(var R=P.length/6|0,u=Array(R),B=0;B<R;)u[B]="#"+P.slice(B*6,++B*6);return u}
function Nx(P){return wDY(P[P.length-1])}
function ryu(P){var R=P.length;return function(u){return P[Math.max(0,Math.min(R-1,Math.floor(u*R)))]}}
function Eiw(P){this._context=P}
function mDI(P){this._curve=P}
function oit(P,R,u){var B=P._x1-P._x0;R-=P._x1;var MG=(P._y1-P._y0)/(B||R<0&&-0);P=(u-P._y1)/(R||B<0&&-0);return((MG<0?-1:1)+(P<0?-1:1))*Math.min(Math.abs(MG),Math.abs(P),.5*Math.abs((MG*R+P*B)/(B+R)))||0}
function vim(P,R){var u=P._x1-P._x0;return u?(3*(P._y1-P._y0)/u-R)/2:R}
function viN(P,R,u){var B=P._x0,MG=P._x1,kR=P._y1,yw=(MG-B)/3;P._context.bezierCurveTo(B+yw,P._y0+yw*R,MG-yw,kR-yw*u,MG,kR)}
function $Dw(P){this._context=P}
function $Dd(P){this._context=P}
function c6(P,R,u){this.k=P;this.x=R;this.y=u}
(function(P){P.length===1&&(P=p(P));return{left:function(R,u,B,MG){B==null&&(B=0);MG==null&&(MG=R.length);for(;B<MG;){var kR=B+MG>>>1;P(R[kR],u)<0?B=kR+1:MG=kR}return B},
right:function(R,u,B,MG){B==null&&(B=0);MG==null&&(MG=R.length);for(;B<MG;){var kR=B+MG>>>1;P(R[kR],u)>0?MG=kR:B=kR+1}return B}}})(S);
var XOq={value:function(){}};
Y.prototype=U.prototype={constructor:Y,on:function(P,R){var u=this._,B=L(P+"",u),MG,kR=-1,yw=B.length;if(arguments.length<2)for(;++kR<yw;){var FE;if(FE=MG=(P=B[kR]).type){a:{FE=u[MG];for(var ck=0,Bk=FE.length;ck<Bk;++ck)if((MG=FE[ck]).name===P.name){MG=MG.value;break a}MG=void 0}FE=MG}if(FE)return MG}else{if(R!=null&&typeof R!=="function")throw Error("we`"+R);for(;++kR<yw;)if(MG=(P=B[kR]).type)u[MG]=I(u[MG],P.name,R);else if(R==null)for(MG in u)u[MG]=I(u[MG],P.name,null);return this}},
copy:function(){var P={},R=this._,u;for(u in R)P[u]=R[u].slice();return new Y(P)},
call:function(P,R){if((MG=arguments.length-2)>0)for(var u=Array(MG),B=0,MG,kR;B<MG;++B)u[B]=arguments[B+2];if(!this._.hasOwnProperty(P))throw Error("qe`"+P);kR=this._[P];B=0;for(MG=kR.length;B<MG;++B)kR[B].value.apply(R,u)},
apply:function(P,R,u){if(!this._.hasOwnProperty(P))throw Error("qe`"+P);P=this._[P];for(var B=0,MG=P.length;B<MG;++B)P[B].value.apply(R,u)}};
var EE={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/"},iCm=function(P){return function(){return this.matches(P)}};
if(typeof document!=="undefined"){var S1=document.documentElement;if(!S1.matches){var lxL=S1.webkitMatchesSelector||S1.msMatchesSelector||S1.mozMatchesSelector||S1.oMatchesSelector;iCm=function(P){return function(){return lxL.call(this,P)}}}}var NPm=iCm;
K.prototype={constructor:K,appendChild:function(P){return this._parent.insertBefore(P,this._next)},
insertBefore:function(P,R){return this._parent.insertBefore(P,R)},
querySelector:function(P){return this._parent.querySelector(P)},
querySelectorAll:function(P){return this._parent.querySelectorAll(P)}};
var Acw={};typeof document!=="undefined"&&("onmouseenter"in document.documentElement||(Acw={mouseenter:"mouseover",mouseleave:"mouseout"}));var PGJ=[null];El.prototype=KE.prototype={constructor:El,select:function(P){typeof P!=="function"&&(P=Q(P));for(var R=this._groups,u=R.length,B=Array(u),MG=0;MG<u;++MG)for(var kR=R[MG],yw=kR.length,FE=B[MG]=Array(yw),ck,Bk,SQ=0;SQ<yw;++SQ)(ck=kR[SQ])&&(Bk=P.call(ck,ck.__data__,SQ,kR))&&("__data__"in ck&&(Bk.__data__=ck.__data__),FE[SQ]=Bk);return new El(B,this._parents)},
filter:function(P){typeof P!=="function"&&(P=NPm(P));for(var R=this._groups,u=R.length,B=Array(u),MG=0;MG<u;++MG)for(var kR=R[MG],yw=kR.length,FE=B[MG]=[],ck,Bk=0;Bk<yw;++Bk)(ck=kR[Bk])&&P.call(ck,ck.__data__,Bk,kR)&&FE.push(ck);return new El(B,this._parents)},
data:function(P,R){if(!P)return zq=Array(this.size()),Bk=-1,this.each(function(Sk){zq[++Bk]=Sk}),zq;
var u=R?Z:X,B=this._parents,MG=this._groups;typeof P!=="function"&&(P=G(P));for(var kR=MG.length,yw=Array(kR),FE=Array(kR),ck=Array(kR),Bk=0;Bk<kR;++Bk){var SQ=B[Bk],VH=MG[Bk],vw=VH.length,zq=P.call(SQ,SQ&&SQ.__data__,Bk,B),Q8=zq.length,oK=FE[Bk]=Array(Q8),bx=yw[Bk]=Array(Q8);vw=ck[Bk]=Array(vw);u(SQ,VH,oK,bx,vw,zq,R);VH=SQ=0;for(var ot;SQ<Q8;++SQ)if(vw=oK[SQ]){for(SQ>=VH&&(VH=SQ+1);!(ot=bx[VH])&&++VH<Q8;);vw._next=ot||null}}yw=new El(yw,B);yw._enter=FE;yw._exit=ck;return yw},
exit:function(){return new El(this._exit||this._groups.map(J),this._parents)},
merge:function(P){var R=this._groups;P=P._groups;for(var u=R.length,B=Math.min(u,P.length),MG=Array(u),kR=0;kR<B;++kR)for(var yw=R[kR],FE=P[kR],ck=yw.length,Bk=MG[kR]=Array(ck),SQ,VH=0;VH<ck;++VH)if(SQ=yw[VH]||FE[VH])Bk[VH]=SQ;for(;kR<u;++kR)MG[kR]=R[kR];return new El(MG,this._parents)},
order:function(){for(var P=this._groups,R=-1,u=P.length;++R<u;)for(var B=P[R],MG=B.length-1,kR=B[MG],yw;--MG>=0;)if(yw=B[MG])kR&&kR!==yw.nextSibling&&kR.parentNode.insertBefore(yw,kR),kR=yw;return this},
sort:function(P){function R(VH,vw){return VH&&vw?P(VH.__data__,vw.__data__):!VH-!vw}
P||(P=l);for(var u=this._groups,B=u.length,MG=Array(B),kR=0;kR<B;++kR){for(var yw=u[kR],FE=yw.length,ck=MG[kR]=Array(FE),Bk,SQ=0;SQ<FE;++SQ)if(Bk=yw[SQ])ck[SQ]=Bk;ck.sort(R)}return(new El(MG,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()),R=-1;this.each(function(){P[++R]=this});
return P},
node:function(){for(var P=this._groups,R=0,u=P.length;R<u;++R)for(var B=P[R],MG=0,kR=B.length;MG<kR;++MG){var yw=B[MG];if(yw)return yw}return null},
size:function(){var P=0;this.each(function(){++P});
return P},
empty:function(){return!this.node()},
each:function(P){for(var R=this._groups,u=0,B=R.length;u<B;++u)for(var MG=R[u],kR=0,yw=MG.length,FE;kR<yw;++kR)(FE=MG[kR])&&P.call(FE,FE.__data__,kR,MG);return this},
attr:function(P,R){var u=V(P);if(arguments.length<2){var B=this.node();return u.local?B.getAttributeNS(u.space,u.local):B.getAttribute(u)}return this.each((R==null?u.local?N:a:typeof R==="function"?u.local?TG:q:u.local?A:m)(u,R))},
style:function(P,R,u){return arguments.length>1?this.each((R==null?Je:typeof R==="function"?Zw:GG)(P,R,u==null?"":u)):Ru(this.node(),P)},
property:function(P,R){return arguments.length>1?this.each((R==null?sX:typeof R==="function"?au:mq)(P,R)):this.node()[P]},
text:function(P){return arguments.length?this.each(P==null?XI:(typeof P==="function"?ut:nE)(P)):this.node().textContent},
html:function(P){return arguments.length?this.each(P==null?Hw:(typeof P==="function"?Ut:Tj)(P)):this.node().innerHTML},
append:function(P){var R=typeof P==="function"?P:D(P);return this.select(function(){return this.appendChild(R.apply(this,arguments))})},
insert:function(P,R){var u=typeof P==="function"?P:D(P),B=R==null?Ww:typeof R==="function"?R:Q(R);return this.select(function(){return this.insertBefore(u.apply(this,arguments),B.apply(this,arguments)||null)})},
remove:function(){return this.each(kA)},
clone:function(P){return this.select(P?Vw:XO)},
datum:function(P){return arguments.length?this.property("__data__",P):this.node().__data__},
on:function(P,R,u){var B=x5(P+""),MG=B.length,kR;if(arguments.length<2){var yw=this.node().__on;if(yw)for(var FE=0,ck=yw.length,Bk;FE<ck;++FE){var SQ=0;for(Bk=yw[FE];SQ<MG;++SQ)if((kR=B[SQ]).type===Bk.type&&kR.name===Bk.name)return Bk.value}}else{yw=R?Bw:rm;u==null&&(u=!1);for(SQ=0;SQ<MG;++SQ)this.each(yw(B[SQ],R,u));return this}},
dispatch:function(P,R){return this.each((typeof R==="function"?Mt:$m)(P,R))}};
var Z4J=0;yH.prototype=function(){return new yH}.prototype={constructor:yH,
get:function(P){for(var R=this._;!(R in P);)if(!(P=P.parentNode))return;return P[R]},
set:function(P,R){return P[this._]=R},
remove:function(P){return this._ in P&&delete P[this._]},
toString:function(){return this._}};
var OA=1/.7,spX=/^#([0-9a-f]{3})$/,eOi=/^#([0-9a-f]{6})$/,g1s=RegExp("^rgb\\(\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d+)\\s*\\)$"),u7E=RegExp("^rgb\\(\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*\\)$"),wOP=RegExp("^rgba\\(\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*\\)$"),lao=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*\\)$"),
aaJ=RegExp("^hsl\\(\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*\\)$"),fad=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*\\)$"),t0E={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};
Gj(V2,Tq,{displayable:function(){return this.rgb().displayable()},
hex:function(){return this.rgb().hex()},
toString:function(){return this.rgb()+""}});
Gj(td,aT,MY(V2,{brighter:function(P){P=P==null?OA:Math.pow(OA,P);return new td(this.r*P,this.g*P,this.b*P,this.opacity)},
darker:function(P){P=P==null?.7:Math.pow(.7,P);return new td(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"#"+V8(this.r)+V8(this.g)+V8(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+")")}}));
Gj(rE,CS,MY(V2,{brighter:function(P){P=P==null?OA:Math.pow(OA,P);return new rE(this.h,this.s,this.l*P,this.opacity)},
darker:function(P){P=P==null?.7:Math.pow(.7,P);return new rE(this.h,this.s,this.l*P,this.opacity)},
rgb:function(){var P=this.h%360+(this.h<0)*360,R=this.l,u=R+(R<.5?R:1-R)*(isNaN(P)||isNaN(this.s)?0:this.s);R=2*R-u;return new td(cE(P>=240?P-240:P+120,R,u),cE(P,R,u),cE(P<120?P+240:P-120,R,u),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 ccw=Math.PI/180,UDm=180/Math.PI,pCj=4/29,dv=6/29,Sbd=3*dv*dv,CGq=dv*dv*dv;Gj(be,function(P,R,u,B){return arguments.length===1?OP(P):new be(P,R,u,B==null?1:B)},MY(V2,{brighter:function(P){return new be(this.l+18*(P==null?1:P),this.a,this.b,this.opacity)},
darker:function(P){return new be(this.l-18*(P==null?1:P),this.a,this.b,this.opacity)},
rgb:function(){var P=(this.l+16)/116,R=isNaN(this.a)?P:P+this.a/500,u=isNaN(this.b)?P:P-this.b/200;R=.96422*EX(R);P=1*EX(P);u=.82521*EX(u);return new td(Dd(3.1338561*R-1.6168667*P-.4906146*u),Dd(-.9787684*R+1.9161415*P+.033454*u),Dd(.0719453*R-.2289914*P+1.4052427*u),this.opacity)}}));
Gj(Jq,Ds,MY(V2,{brighter:function(P){return new Jq(this.h,this.c,this.l+18*(P==null?1:P),this.opacity)},
darker:function(P){return new Jq(this.h,this.c,this.l-18*(P==null?1:P),this.opacity)},
rgb:function(){return OP(this).rgb()}}));
var Ybm=1.78277*-.29227-.1347134789;Gj(bJ,zj,MY(V2,{brighter:function(P){P=P==null?OA:Math.pow(OA,P);return new bJ(this.h,this.s,this.l*P,this.opacity)},
darker:function(P){P=P==null?.7:Math.pow(.7,P);return new bJ(this.h,this.s,this.l*P,this.opacity)},
rgb:function(){var P=isNaN(this.h)?0:(this.h+120)*ccw,R=+this.l,u=isNaN(this.s)?0:this.s*R*(1-R),B=Math.cos(P);P=Math.sin(P);return new td(255*(R+u*(-.14861*B+1.78277*P)),255*(R+u*(-.29227*B+-.90649*P)),255*(R+1.97294*B*u),this.opacity)}}));
var Vdc=function u(R){function B(kR,yw){var FE=MG((kR=aT(kR)).r,(yw=aT(yw)).r),ck=MG(kR.g,yw.g),Bk=MG(kR.b,yw.b),SQ=k7(kR.opacity,yw.opacity);return function(VH){kR.r=FE(VH);kR.g=ck(VH);kR.b=Bk(VH);kR.opacity=SQ(VH);return kR+""}}
var MG=bV(R);B.gamma=u;return B}(1),wDY=Qr(function(R){var u=R.length-1;
return function(B){var MG=B<=0?B=0:B>=1?(B=1,u-1):Math.floor(B*u),kR=R[MG],yw=R[MG+1];return HY((B-MG/u)*u,MG>0?R[MG-1]:2*kR-yw,kR,yw,MG<u-1?R[MG+2]:2*yw-kR)}});
Qr(function(R){var u=R.length;return function(B){var MG=Math.floor(((B%=1)<0?++B:B)*u);return HY((B-MG/u)*u,R[(MG+u-1)%u],R[MG%u],R[(MG+1)%u],R[(MG+2)%u])}});
var RDw=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Fle=new RegExp(RDw.source,"g"),Llm=180/Math.PI,iCN={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1},pM,NPR,BPE,GVG,axL=fu(function(R){if(R==="none")return iCN;pM||(pM=document.createElement("DIV"),NPR=document.documentElement,BPE=document.defaultView);pM.style.transform=R;R=BPE.getComputedStyle(NPR.appendChild(pM),null).getPropertyValue("transform");NPR.removeChild(pM);R=R.slice(7,-1).split(",");return X5(+R[0],+R[1],+R[2],+R[3],
+R[4],+R[5])},"px, ","px)","deg)"),fxn=fu(function(R){if(R==null)return iCN;
GVG||(GVG=document.createElementNS("http://www.w3.org/2000/svg","g"));GVG.setAttribute("transform",R);if(!(R=GVG.transform.baseVal.consolidate()))return iCN;R=R.matrix;return X5(R.a,R.b,R.c,R.d,R.e,R.f)},", ",")",")");
Z3(u4);Z3(k7);QY(u4);QY(k7);nT(u4);var BPq=nT(k7),VZ=0,v6=0,i0=0,zTw,$W,Dxq=0,fm=0,HSu=0,oC=typeof performance==="object"&&performance.now?performance:Date,MdH=typeof window==="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(R){setTimeout(R,17)};
Kg.prototype=Ef.prototype={constructor:Kg,restart:function(R,u,B){if(typeof R!=="function")throw new TypeError("xe");B=(B==null?y_():+B)+(u==null?0:+u);this._next||$W===this||($W?$W._next=this:zTw=this,$W=this);this._call=R;this._time=B;ov()},
stop:function(){this._call&&(this._call=null,this._time=Infinity,ov())}};
var E1L=U("start","end","interrupt"),m_d=[],C1P=KE.prototype.constructor,qbP=0,kD=KE.prototype;Vg.prototype=function(R){return KE().transition(R)}.prototype={constructor:Vg,
select:function(R){var u=this._name,B=this._id;typeof R!=="function"&&(R=Q(R));for(var MG=this._groups,kR=MG.length,yw=Array(kR),FE=0;FE<kR;++FE)for(var ck=MG[FE],Bk=ck.length,SQ=yw[FE]=Array(Bk),VH,vw,zq=0;zq<Bk;++zq)(VH=ck[zq])&&(vw=R.call(VH,VH.__data__,zq,ck))&&("__data__"in VH&&(vw.__data__=VH.__data__),SQ[zq]=vw,XCq(SQ[zq],u,B,zq,SQ,LX(VH,B)));return new Vg(yw,this._parents,u,B)},
filter:function(R){typeof R!=="function"&&(R=NPm(R));for(var u=this._groups,B=u.length,MG=Array(B),kR=0;kR<B;++kR)for(var yw=u[kR],FE=yw.length,ck=MG[kR]=[],Bk,SQ=0;SQ<FE;++SQ)(Bk=yw[SQ])&&R.call(Bk,Bk.__data__,SQ,yw)&&ck.push(Bk);return new Vg(MG,this._parents,this._name,this._id)},
merge:function(R){if(R._id!==this._id)throw Error();var u=this._groups;R=R._groups;for(var B=u.length,MG=Math.min(B,R.length),kR=Array(B),yw=0;yw<MG;++yw)for(var FE=u[yw],ck=R[yw],Bk=FE.length,SQ=kR[yw]=Array(Bk),VH,vw=0;vw<Bk;++vw)if(VH=FE[vw]||ck[vw])SQ[vw]=VH;for(;yw<B;++yw)kR[yw]=u[yw];return new Vg(kR,this._parents,this._name,this._id)},
selection:function(){return new C1P(this._groups,this._parents)},
transition:function(){for(var R=this._name,u=this._id,B=++qbP,MG=this._groups,kR=MG.length,yw=0;yw<kR;++yw)for(var FE=MG[yw],ck=FE.length,Bk,SQ=0;SQ<ck;++SQ)if(Bk=FE[SQ]){var VH=LX(Bk,u);XCq(Bk,R,B,SQ,FE,{time:VH.time+VH.delay+VH.duration,delay:0,duration:VH.duration,ease:VH.ease})}return new Vg(MG,this._parents,R,B)},
call:kD.call,nodes:kD.nodes,node:kD.node,size:kD.size,empty:kD.empty,each:kD.each,on:function(R,u){var B=this._id;return arguments.length<2?LX(this.node(),B).on.on(R):this.each(INo(B,R,u))},
attr:function(R,u){var B=V(R),MG=B==="transform"?fxn:dDj;return this.attrTween(R,typeof u==="function"?(B.local?AxX:qpT)(B,MG,ZCX(this,"attr."+R,u)):u==null?(B.local?i4X:$_A)(B):(B.local?BIL:NIL)(B,MG,u+""))},
attrTween:function(R,u){var B="attr."+R;if(arguments.length<2)return(B=this.tween(B))&&B._value;if(u==null)return this.tween(B,null);if(typeof u!=="function")throw Error();var MG=V(R);return this.tween(B,(MG.local?tCn:cxA)(MG,u))},
style:function(R,u,B){var MG=R==="transform"?axL:dDj;return u==null?this.styleTween(R,VRL(R,MG)).on("end.style."+R,T1P(R)):this.styleTween(R,typeof u==="function"?OTq(R,MG,ZCX(this,"style."+R,u)):W5s(R,MG,u+""),B)},
styleTween:function(R,u,B){var MG="style."+R;if(arguments.length<2)return(MG=this.tween(MG))&&MG._value;if(u==null)return this.tween(MG,null);if(typeof u!=="function")throw Error();return this.tween(MG,kRo(R,u,B==null?"":B))},
text:function(R){return this.tween("text",typeof R==="function"?DOY(ZCX(this,"text",R)):HTP(R==null?"":R+""))},
remove:function(){return this.on("end.remove",dOL(this._id))},
tween:function(R,u){var B=this._id;if(arguments.length<2){B=LX(this.node(),B).tween;for(var MG=0,kR=B.length,yw;MG<kR;++MG)if((yw=B[MG]).name===R)return yw.value;return null}return this.each((u==null?o1L:v1o)(B,R,u))},
delay:function(R){var u=this._id;return arguments.length?this.each((typeof R==="function"?SxY:pgT)(u,R)):LX(this.node(),u).delay},
duration:function(R){var u=this._id;return arguments.length?this.each((typeof R==="function"?UOd:Yxi)(u,R)):LX(this.node(),u).duration},
ease:function(R){var u=this._id;return arguments.length?this.each(L5o(u,R)):LX(this.node(),u).ease}};
var qbu={time:null,delay:0,duration:250,ease:function(R){return((R*=2)<=1?R*R*R:(R-=2)*R*R+2)/2}};
KE.prototype.transition=function(R){var u;if(R instanceof Vg){var B=R._id;R=R._name}else B=++qbP,(u=qbu).time=y_(),R=R==null?null:R+"";for(var MG=this._groups,kR=MG.length,yw=0;yw<kR;++yw)for(var FE=MG[yw],ck=FE.length,Bk,SQ=0;SQ<ck;++SQ)if(Bk=FE[SQ]){var VH=Bk,vw=R,zq=B,Q8=SQ,oK=FE,bx;if(!(bx=u))a:{bx=void 0;for(var ot=B;!(bx=Bk.__transition)||!(bx=bx[ot]);)if(!(Bk=Bk.parentNode)){bx=(qbu.time=y_(),qbu);break a}}XCq(VH,vw,zq,Q8,oK,bx)}return new Vg(MG,this._parents,R,B)};
["e","w"].map(sXX);["n","s"].map(sXX);"n e s w nw ne se sw".split(" ").map(sXX);eDG.prototype=function(){return new eDG}.prototype={constructor:eDG,
moveTo:function(R,u){this._+="M"+(this._x0=this._x1=+R)+","+(this._y0=this._y1=+u)},
closePath:function(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},
lineTo:function(R,u){this._+="L"+(this._x1=+R)+","+(this._y1=+u)},
bezierCurveTo:function(R,u,B,MG,kR,yw){this._+="C"+ +R+","+ +u+","+ +B+","+ +MG+","+(this._x1=+kR)+","+(this._y1=+yw)},
rect:function(R,u,B,MG){this._+="M"+(this._x0=this._x1=+R)+","+(this._y0=this._y1=+u)+"h"+ +B+"v"+ +MG+"h"+-B+"Z"},
toString:function(){return this._}};
Q8e.prototype=TPQ.prototype={constructor:Q8e,has:function(R){return" "+R in this},
get:function(R){return this[" "+R]},
set:function(R,u){this[" "+R]=u;return this},
remove:function(R){R=" "+R;return R in this&&delete this[R]},
clear:function(){for(var R in this)R[0]===" "&&delete this[R]},
keys:function(){var R=[],u;for(u in this)u[0]===" "&&R.push(u.slice(1));return R},
values:function(){var R=[],u;for(u in this)u[0]===" "&&R.push(this[u]);return R},
entries:function(){var R=[],u;for(u in this)u[0]===" "&&R.push({key:u.slice(1),value:this[u]});return R},
size:function(){var R=0,u;for(u in this)u[0]===" "&&++R;return R},
empty:function(){for(var R in this)if(R[0]===" ")return!1;return!0},
each:function(R){for(var u in this)u[0]===" "&&R(this[u],u.slice(1),this)}};
var mi=TPQ.prototype;njw.prototype=function(R,u){var B=new njw;if(R instanceof njw)R.each(function(yw){B.add(yw)});
else if(R){var MG=-1,kR=R.length;if(u==null)for(;++MG<kR;)B.add(R[MG]);else for(;++MG<kR;)B.add(u(R[MG],MG,R))}return B}.prototype={constructor:njw,
has:mi.has,add:function(R){this[" "+R]=R;return this},
remove:mi.remove,clear:mi.clear,values:mi.keys,size:mi.size,empty:mi.empty,each:mi.each};var kxI={},gir={},xAd=OCe(",").parse,EZL=OCe("\t").parse;HCm(xAd);HCm(EZL);var Sp=function(R,u,B){u=new uDe(u==null?JkT:u,B==null?yki:B,NaN,NaN,NaN,NaN);return R==null?u:u.addAll(R)}.prototype=uDe.prototype;
Sp.copy=function(){var R=new uDe(this._x,this._y,this._x0,this._y0,this._x1,this._y1),u=this._root,B,MG;if(!u)return R;if(!u.length)return R._root=zDw(u),R;for(B=[{source:u,target:R._root=Array(4)}];u=B.pop();)for(var kR=0;kR<4;++kR)if(MG=u.source[kR])MG.length?B.push({source:MG,target:u.target[kR]=Array(4)}):u.target[kR]=zDw(MG);return R};
Sp.add=function(R){var u=+this._x.call(null,R),B=+this._y.call(null,R);return DDw(this.cover(u,B),u,B,R)};
Sp.addAll=function(R){var u,B,MG=R.length,kR,yw,FE=Array(MG),ck=Array(MG),Bk=Infinity,SQ=Infinity,VH=-Infinity,vw=-Infinity;for(B=0;B<MG;++B)isNaN(kR=+this._x.call(null,u=R[B]))||isNaN(yw=+this._y.call(null,u))||(FE[B]=kR,ck[B]=yw,kR<Bk&&(Bk=kR),kR>VH&&(VH=kR),yw<SQ&&(SQ=yw),yw>vw&&(vw=yw));VH<Bk&&(Bk=this._x0,VH=this._x1);vw<SQ&&(SQ=this._y0,vw=this._y1);this.cover(Bk,SQ).cover(VH,vw);for(B=0;B<MG;++B)DDw(this,FE[B],ck[B],R[B]);return this};
Sp.cover=function(R,u){if(isNaN(R=+R)||isNaN(u=+u))return this;var B=this._x0,MG=this._y0,kR=this._x1,yw=this._y1;if(isNaN(B))kR=(B=Math.floor(R))+1,yw=(MG=Math.floor(u))+1;else if(B>R||R>kR||MG>u||u>yw){var FE=kR-B,ck=this._root,Bk;switch(Bk=(u<(MG+yw)/2)<<1|R<(B+kR)/2){case 0:do{var SQ=Array(4);SQ[Bk]=ck;ck=SQ}while(FE*=2,kR=B+FE,yw=MG+FE,R>kR||u>yw);break;case 1:do SQ=Array(4),SQ[Bk]=ck,ck=SQ;while(FE*=2,B=kR-FE,yw=MG+FE,B>R||u>yw);break;case 2:do SQ=Array(4),SQ[Bk]=ck,ck=SQ;while(FE*=2,kR=B+FE,
MG=yw-FE,R>kR||MG>u);break;case 3:do SQ=Array(4),SQ[Bk]=ck,ck=SQ;while(FE*=2,B=kR-FE,MG=yw-FE,B>R||MG>u)}this._root&&this._root.length&&(this._root=ck)}else return this;this._x0=B;this._y0=MG;this._x1=kR;this._y1=yw;return this};
Sp.data=function(){var R=[];this.visit(function(u){if(!u.length){do R.push(u.data);while(u=u.next)}});
return R};
Sp.extent=function(R){return arguments.length?this.cover(+R[0][0],+R[0][1]).cover(+R[1][0],+R[1][1]):isNaN(this._x0)?void 0:[[this._x0,this._y0],[this._x1,this._y1]]};
Sp.find=function(R,u,B){var MG=this._x0,kR=this._y0,yw,FE,ck,Bk,SQ=this._x1,VH=this._y1,vw=[],zq=this._root,Q8;zq&&vw.push(new cB(zq,MG,kR,SQ,VH));B==null?B=Infinity:(MG=R-B,kR=u-B,SQ=R+B,VH=u+B,B*=B);for(;Q8=vw.pop();)if(!(!(zq=Q8.node)||(yw=Q8.x0)>SQ||(FE=Q8.y0)>VH||(ck=Q8.x1)<MG||(Bk=Q8.y1)<kR))if(zq.length){Q8=(yw+ck)/2;var oK=(FE+Bk)/2;vw.push(new cB(zq[3],Q8,oK,ck,Bk),new cB(zq[2],yw,oK,Q8,Bk),new cB(zq[1],Q8,FE,ck,oK),new cB(zq[0],yw,FE,Q8,oK));if(zq=(u>=oK)<<1|R>=Q8)Q8=vw[vw.length-1],vw[vw.length-
1]=vw[vw.length-1-zq],vw[vw.length-1-zq]=Q8}else if(Q8=R-+this._x.call(null,zq.data),oK=u-+this._y.call(null,zq.data),Q8=Q8*Q8+oK*oK,Q8<B){var bx=Math.sqrt(B=Q8);MG=R-bx;kR=u-bx;SQ=R+bx;VH=u+bx;bx=zq.data}return bx};
Sp.remove=function(R){if(isNaN(Bk=+this._x.call(null,R))||isNaN(SQ=+this._y.call(null,R)))return this;var u,B=this._root,MG,kR=this._x0,yw=this._y0,FE=this._x1,ck=this._y1,Bk,SQ,VH,vw,zq,Q8,oK;if(!B)return this;if(B.length)for(;;){(zq=Bk>=(VH=(kR+FE)/2))?kR=VH:FE=VH;(Q8=SQ>=(vw=(yw+ck)/2))?yw=vw:ck=vw;if(!(u=B,B=B[oK=Q8<<1|zq]))return this;if(!B.length)break;if(u[oK+1&3]||u[oK+2&3]||u[oK+3&3]){var bx=u;var ot=oK}}for(;B.data!==R;)if(!(MG=B,B=B.next))return this;(R=B.next)&&delete B.next;if(MG)return R?
MG.next=R:delete MG.next,this;if(!u)return this._root=R,this;R?u[oK]=R:delete u[oK];(B=u[0]||u[1]||u[2]||u[3])&&B===(u[3]||u[2]||u[1]||u[0])&&!B.length&&(bx?bx[ot]=B:this._root=B);return this};
Sp.removeAll=function(R){for(var u=0,B=R.length;u<B;++u)this.remove(R[u]);return this};
Sp.root=function(){return this._root};
Sp.size=function(){var R=0;this.visit(function(u){if(!u.length){do++R;while(u=u.next)}});
return R};
Sp.visit=function(R){var u=[],B,MG=this._root,kR,yw,FE,ck,Bk;for(MG&&u.push(new cB(MG,this._x0,this._y0,this._x1,this._y1));B=u.pop();)if(!R(MG=B.node,yw=B.x0,FE=B.y0,ck=B.x1,Bk=B.y1)&&MG.length){B=(yw+ck)/2;var SQ=(FE+Bk)/2;(kR=MG[3])&&u.push(new cB(kR,B,SQ,ck,Bk));(kR=MG[2])&&u.push(new cB(kR,yw,SQ,B,Bk));(kR=MG[1])&&u.push(new cB(kR,B,FE,ck,SQ));(kR=MG[0])&&u.push(new cB(kR,yw,FE,B,SQ))}};
Sp.visitAfter=function(R){var u=[],B=[],MG;for(this._root&&u.push(new cB(this._root,this._x0,this._y0,this._x1,this._y1));MG=u.pop();){var kR=MG.node;if(kR.length){var yw,FE=MG.x0,ck=MG.y0,Bk=MG.x1,SQ=MG.y1,VH=(FE+Bk)/2,vw=(ck+SQ)/2;(yw=kR[0])&&u.push(new cB(yw,FE,ck,VH,vw));(yw=kR[1])&&u.push(new cB(yw,VH,ck,Bk,vw));(yw=kR[2])&&u.push(new cB(yw,FE,vw,VH,SQ));(yw=kR[3])&&u.push(new cB(yw,VH,vw,Bk,SQ))}B.push(MG)}for(;MG=B.pop();)R(MG.node,MG.x0,MG.y0,MG.x1,MG.y1);return this};
Sp.x=function(R){return arguments.length?(this._x=R,this):this._x};
Sp.y=function(R){return arguments.length?(this._y=R,this):this._y};
var rkL=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;wCe.prototype=lFw.prototype;lFw.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 yKP,Klq={"%":function(R,u){return(R*100).toFixed(u)},
b:function(R){return Math.round(R).toString(2)},
c:function(R){return R+""},
d:function(R){return Math.round(R).toString(10)},
e:function(R,u){return R.toExponential(u)},
f:function(R,u){return R.toFixed(u)},
g:function(R,u){return R.toPrecision(u)},
o:function(R){return Math.round(R).toString(8)},
p:function(R,u){return QXE(R*100,u)},
r:QXE,s:function(R,u){var B=JyG(R,u);if(!B)return R+"";var MG=B[0];B=B[1];B=B-(yKP=Math.max(-8,Math.min(8,Math.floor(B/3)))*3)+1;var kR=MG.length;return B===kR?MG:B>kR?MG+Array(B-kR+1).join("0"):B>0?MG.slice(0,B)+"."+MG.slice(B):"0."+Array(1-B).join("0")+JyG(R,Math.max(0,u+B-1))[0]},
X:function(R){return Math.round(R).toString(16).toUpperCase()},
x:function(R){return Math.round(R).toString(16)}},JKH="y z a f p n \u00b5 m  k M G T P E Z Y".split(" "),mAo;
(function(R){return mAo=GRT(R)})({decimal:".",
thousands:",",grouping:[3],currency:["$",""]});aa.prototype={constructor:aa,reset:function(){this.s=this.t=0},
add:function(R){bCt(hTq,R,this.t);bCt(this,hTq.s,this.s);this.s?this.t+=hTq.t:this.s=hTq.t},
valueOf:function(){return this.s}};
var hTq=new aa,PH=Math.PI,mU=PH/2,AKm=PH/4,oZn=PH*2,AKN=PH/180,Tb=Math.abs,tdw=Math.atan,Flt=Math.atan2,oA=Math.cos,X1=Math.sin,K4e=Math.sqrt;new aa;new aa;new aa;var cKd=new aa;(function(R,u,B,MG){return function(kR){function yw(pS,K_){R(pS,K_)&&kR.point(pS,K_)}
function FE(pS,K_){zq.point(pS,K_)}
function ck(){IF.point=FE;zq.lineStart()}
function Bk(){IF.point=yw;zq.lineEnd()}
function SQ(pS,K_){b5.push([pS,K_]);oK.point(pS,K_)}
function VH(){oK.lineStart();b5=[]}
function vw(){SQ(b5[0][0],b5[0][1]);oK.lineEnd();var pS=oK.clean(),K_=Q8.result(),i4=K_.length,Du;b5.pop();ot.push(b5);b5=null;if(i4)if(pS&1){if(i4=K_[0],(K_=i4.length-1)>0){bx||(kR.polygonStart(),bx=!0);kR.lineStart();for(pS=0;pS<K_;++pS)kR.point((Du=i4[pS])[0],Du[1]);kR.lineEnd()}}else i4>1&&pS&2&&K_.push(K_.pop().concat(K_.shift())),Sk.push(K_.filter(Xgn))}
var zq=u(kR),Q8=Ryd(),oK=u(Q8),bx=!1,ot,Sk,b5,IF={point:yw,lineStart:ck,lineEnd:Bk,polygonStart:function(){IF.point=SQ;IF.lineStart=VH;IF.lineEnd=vw;Sk=[];ot=[]},
polygonEnd:function(){IF.point=yw;IF.lineStart=ck;IF.lineEnd=Bk;var pS=Sk,K_=pS.length;var i4=-1;for(var Du=0,PP,OH;++i4<K_;)Du+=pS[i4].length;for(PP=Array(Du);--K_>=0;)for(OH=pS[K_],i4=OH.length;--i4>=0;)PP[--Du]=OH[i4];Sk=PP;pS=ot;K_=MG[0];Du=MG[1];var p8=X1(Du);i4=[X1(K_),-oA(K_),0];OH=PP=0;cKd.reset();p8===1?Du=mU+1E-6:p8===-1&&(Du=-mU-1E-6);p8=0;for(var Jd=pS.length;p8<Jd;++p8)if(Xr=(io=pS[p8]).length){var io,Xr,vA=io[Xr-1],DC=vA[0],hh=vA[1]/2+AKm,RTE=X1(hh),tdH=oA(hh);for(hh=0;hh<Xr;++hh,DC=
SSE,RTE=cKe,tdH=UU,vA=F4G){var F4G=io[hh],SSE=F4G[0];UU=F4G[1]/2+AKm;var cKe=X1(UU),UU=oA(UU),H0=SSE-DC,p$w=H0>=0?1:-1,UvR=p$w*H0,XzE=UvR>PH;RTE*=cKe;cKd.add(Flt(RTE*p$w*X1(UvR),tdH*UU+RTE*oA(UvR)));PP+=XzE?H0+p$w*oZn:H0;XzE^DC>=K_^SSE>=K_&&(vA=rKm(jXP(vA),jXP(F4G)),Gxc(vA),DC=rKm(i4,vA),Gxc(DC),DC=(XzE^H0>=0?-1:1)*yye(DC[2]),Du>DC||Du===DC&&(vA[0]||vA[1]))&&(OH+=XzE^H0>=0?1:-1)}}pS=(PP<-1E-6||PP<1E-6&&cKd<-1E-6)^OH&1;Sk.length?(bx||(kR.polygonStart(),bx=!0),F5d(Sk,PYX,pS,B,kR)):pS&&(bx||(kR.polygonStart(),
bx=!0),kR.lineStart(),B(null,null,1,kR),kR.lineEnd());bx&&(kR.polygonEnd(),bx=!1);Sk=ot=null},
sphere:function(){kR.polygonStart();kR.lineStart();B(null,null,1,kR);kR.lineEnd();kR.polygonEnd()}};
return IF}})(function(){return!0},function(R){var u=NaN,B=NaN,MG=NaN,kR;
return{lineStart:function(){R.lineStart();kR=1},
point:function(yw,FE){var ck=yw>0?PH:-PH,Bk=Tb(yw-u);if(Tb(Bk-PH)<1E-6)R.point(u,B=(B+FE)/2>0?mU:-mU),R.point(MG,B),R.lineEnd(),R.lineStart(),R.point(ck,B),R.point(yw,B),kR=0;else if(MG!==ck&&Bk>=PH){Tb(u-MG)<1E-6&&(u-=MG*1E-6);Tb(yw-ck)<1E-6&&(yw-=ck*1E-6);Bk=u;var SQ=B,VH=yw,vw,zq,Q8=X1(Bk-VH);B=Tb(Q8)>1E-6?tdw((X1(SQ)*(zq=oA(FE))*X1(VH)-X1(FE)*(vw=oA(SQ))*X1(Bk))/(vw*zq*Q8)):(SQ+FE)/2;R.point(MG,B);R.lineEnd();R.lineStart();R.point(ck,B);kR=0}R.point(u=yw,B=FE);MG=ck},
lineEnd:function(){R.lineEnd();u=B=NaN},
clean:function(){return 2-kR}}},function(R,u,B,MG){R==null?(B*=mU,MG.point(-PH,B),MG.point(0,B),MG.point(PH,B),MG.point(PH,0),MG.point(PH,-B),MG.point(0,-B),MG.point(-PH,-B),MG.point(-PH,0),MG.point(-PH,B)):Tb(R[0]-u[0])>1E-6?(R=R[0]<u[0]?PH:-PH,B=B*R/2,MG.point(-R,B),MG.point(0,B),MG.point(R,B)):MG.point(u[0],u[1])},[-PH,
-mU]);new aa;new aa;new aa;new aa;aFG.prototype={constructor:aFG,point:function(R,u){this.stream.point(R,u)},
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()}};
oA(30*AKN);(function(R){return function(u){var B=new aFG,MG;for(MG in R)B[MG]=R[MG];B.stream=u;return B}})({point:function(R,u){this.stream.point(R*AKN,u*AKN)}});
RDH(function(R){return K4e(2/(1+R))}).invert=N5(function(R){return 2*yye(R/2)});
RDH(function(R){return(R=R>1?0:R<-1?PH:Math.acos(R))&&R/X1(R)}).invert=N5(function(R){return R});
K4e(3);N5(tdw);N5(yye);N5(function(R){return 2*tdw(R)});
B6.prototype=XCE.prototype={constructor:B6,count:function(){return this.eachAfter(ZTX)},
each:function(R){var u,B=[this],MG;do{var kR=B.reverse();for(B=[];u=kR.pop();)if(R(u),u=u.children){var yw=0;for(MG=u.length;yw<MG;++yw)B.push(u[yw])}}while(B.length);return this},
eachAfter:function(R){for(var u,B=[this],MG=[],kR,yw;u=B.pop();)if(MG.push(u),u=u.children)for(kR=0,yw=u.length;kR<yw;++kR)B.push(u[kR]);for(;u=MG.pop();)R(u);return this},
eachBefore:function(R){for(var u,B=[this],MG;u=B.pop();)if(R(u),u=u.children)for(MG=u.length-1;MG>=0;--MG)B.push(u[MG]);return this},
sum:function(R){return this.eachAfter(function(u){for(var B=+R(u.data)||0,MG=u.children,kR=MG&&MG.length;--kR>=0;)B+=MG[kR].value;u.value=B})},
sort:function(R){return this.eachBefore(function(u){u.children&&u.children.sort(R)})},
path:function(R){var u=this;var B=u;var MG=R;if(B!==MG){var kR=B.ancestors(),yw=MG.ancestors(),FE=null;B=kR.pop();for(MG=yw.pop();B===MG;)FE=B,B=kR.pop(),MG=yw.pop();B=FE}for(MG=[u];u!==B;)u=u.parent,MG.push(u);for(u=MG.length;R!==B;)MG.splice(u,0,R),R=R.parent;return MG},
ancestors:function(){for(var R=this,u=[R];R=R.parent;)u.push(R);return u},
links:function(){var R=this,u=[];R.each(function(B){B!==R&&u.push({source:B.parent,target:B})});
return u},
copy:function(){return XCE(this).eachBefore(gCd)}};
(function(R,u){this._=R;this.A=this.children=this.parent=null;this.a=this;this.s=this.c=this.m=this.z=0;this.t=null;this.i=u}).prototype=Object.create(B6.prototype);
var fFG=new Date,Cpd=new Date,SSI=QI(function(){},function(R,u){R.setTime(+R+u)},function(R,u){return u-R});
SSI.every=function(R){R=Math.floor(R);return isFinite(R)&&R>0?R>1?QI(function(u){u.setTime(Math.floor(u/R)*R)},function(u,B){u.setTime(+u+B*R)},function(u,B){return(B-u)/R}):SSI:null};
QI(function(R){R.setTime(Math.floor(R/1E3)*1E3)},function(R,u){R.setTime(+R+u*1E3)},function(R,u){return(u-R)/1E3},function(R){return R.getUTCSeconds()});
QI(function(R){R.setTime(Math.floor(R/6E4)*6E4)},function(R,u){R.setTime(+R+u*6E4)},function(R,u){return(u-R)/6E4},function(R){return R.getMinutes()});
QI(function(R){var u=R.getTimezoneOffset()*6E4%36E5;u<0&&(u+=36E5);R.setTime(Math.floor((+R-u)/36E5)*36E5+u)},function(R,u){R.setTime(+R+u*36E5)},function(R,u){return(u-R)/36E5},function(R){return R.getHours()});
var sXl=QI(function(R){R.setHours(0,0,0,0)},function(R,u){R.setDate(R.getDate()+u)},function(R,u){return(u-R-(u.getTimezoneOffset()-R.getTimezoneOffset())*6E4)/864E5},function(R){return R.getDate()-1}),gZi=x0(0),Eik=x0(1);
x0(2);x0(3);var mDE=x0(4);x0(5);x0(6);QI(function(R){R.setDate(1);R.setHours(0,0,0,0)},function(R,u){R.setMonth(R.getMonth()+u)},function(R,u){return u.getMonth()-R.getMonth()+(u.getFullYear()-R.getFullYear())*12},function(R){return R.getMonth()});
var Tm=QI(function(R){R.setMonth(0,1);R.setHours(0,0,0,0)},function(R,u){R.setFullYear(R.getFullYear()+u)},function(R,u){return u.getFullYear()-R.getFullYear()},function(R){return R.getFullYear()});
Tm.every=function(R){return isFinite(R=Math.floor(R))&&R>0?QI(function(u){u.setFullYear(Math.floor(u.getFullYear()/R)*R);u.setMonth(0,1);u.setHours(0,0,0,0)},function(u,B){u.setFullYear(u.getFullYear()+B*R)}):null};
QI(function(R){R.setUTCSeconds(0,0)},function(R,u){R.setTime(+R+u*6E4)},function(R,u){return(u-R)/6E4},function(R){return R.getUTCMinutes()});
QI(function(R){R.setUTCMinutes(0,0,0)},function(R,u){R.setTime(+R+u*36E5)},function(R,u){return(u-R)/36E5},function(R){return R.getUTCHours()});
var ZCl=QI(function(R){R.setUTCHours(0,0,0,0)},function(R,u){R.setUTCDate(R.getUTCDate()+u)},function(R,u){return(u-R)/864E5},function(R){return R.getUTCDate()-1}),uXq=Ei(0),xDk=Ei(1);
Ei(2);Ei(3);var oie=Ei(4);Ei(5);Ei(6);QI(function(R){R.setUTCDate(1);R.setUTCHours(0,0,0,0)},function(R,u){R.setUTCMonth(R.getUTCMonth()+u)},function(R,u){return u.getUTCMonth()-R.getUTCMonth()+(u.getUTCFullYear()-R.getUTCFullYear())*12},function(R){return R.getUTCMonth()});
var W0=QI(function(R){R.setUTCMonth(0,1);R.setUTCHours(0,0,0,0)},function(R,u){R.setUTCFullYear(R.getUTCFullYear()+u)},function(R,u){return u.getUTCFullYear()-R.getUTCFullYear()},function(R){return R.getUTCFullYear()});
W0.every=function(R){return isFinite(R=Math.floor(R))&&R>0?QI(function(u){u.setUTCFullYear(Math.floor(u.getUTCFullYear()/R)*R);u.setUTCMonth(0,1);u.setUTCHours(0,0,0,0)},function(u,B){u.setUTCFullYear(u.getUTCFullYear()+B*R)}):null};
var Ppd={"-":"",_:" ",0:"0"},jt=/^\s*\d+/,eXP=/^%/,s3E=/[\\^$*+?|[\]().{}]/g,PoE;(function(R){PoE=wgA(R);hqI=PoE.utcFormat;Rqm=PoE.utcParse;return PoE})({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||hqI("%Y-%m-%dT%H:%M:%S.%LZ");+new Date("2000-01-01T00:00:00.000Z")||Rqm("%Y-%m-%dT%H:%M:%S.%LZ");d3("1f77b4ff7f0e2ca02cd627289467bd8c564be377c27f7f7fbcbd2217becf");
d3("393b795254a36b6ecf9c9ede6379398ca252b5cf6bcedb9c8c6d31bd9e39e7ba52e7cb94843c39ad494ad6616be7969c7b4173a55194ce6dbdde9ed6");d3("3182bd6baed69ecae1c6dbefe6550dfd8d3cfdae6bfdd0a231a35474c476a1d99bc7e9c0756bb19e9ac8bcbddcdadaeb636363969696bdbdbdd9d9d9");d3("1f77b4aec7e8ff7f0effbb782ca02c98df8ad62728ff98969467bdc5b0d58c564bc49c94e377c2f7b6d27f7f7fc7c7c7bcbd22dbdb8d17becf9edae5");d3("7fc97fbeaed4fdc086ffff99386cb0f0027fbf5b17666666");d3("1b9e77d95f027570b3e7298a66a61ee6ab02a6761d666666");d3("a6cee31f78b4b2df8a33a02cfb9a99e31a1cfdbf6fff7f00cab2d66a3d9affff99b15928");
d3("fbb4aeb3cde3ccebc5decbe4fed9a6ffffcce5d8bdfddaecf2f2f2");d3("b3e2cdfdcdaccbd5e8f4cae4e6f5c9fff2aef1e2cccccccc");d3("e41a1c377eb84daf4a984ea3ff7f00ffff33a65628f781bf999999");d3("66c2a5fc8d628da0cbe78ac3a6d854ffd92fe5c494b3b3b3");d3("8dd3c7ffffb3bebadafb807280b1d3fdb462b3de69fccde5d9d9d9bc80bdccebc5ffed6f");var vZA=Array(3).concat("d8b365f5f5f55ab4ac","a6611adfc27d80cdc1018571","a6611adfc27df5f5f580cdc1018571","8c510ad8b365f6e8c3c7eae55ab4ac01665e","8c510ad8b365f6e8c3f5f5f5c7eae55ab4ac01665e","8c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e",
"8c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e","5430058c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e003c30","5430058c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e003c30").map(d3);Nx(vZA);var $AE=Array(3).concat("af8dc3f7f7f77fbf7b","7b3294c2a5cfa6dba0008837","7b3294c2a5cff7f7f7a6dba0008837","762a83af8dc3e7d4e8d9f0d37fbf7b1b7837","762a83af8dc3e7d4e8f7f7f7d9f0d37fbf7b1b7837","762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b7837","762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b7837",
"40004b762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b783700441b","40004b762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b783700441b").map(d3);Nx($AE);var i0q=Array(3).concat("e9a3c9f7f7f7a1d76a","d01c8bf1b6dab8e1864dac26","d01c8bf1b6daf7f7f7b8e1864dac26","c51b7de9a3c9fde0efe6f5d0a1d76a4d9221","c51b7de9a3c9fde0eff7f7f7e6f5d0a1d76a4d9221","c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221","c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221","8e0152c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221276419",
"8e0152c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221276419").map(d3);Nx(i0q);var NXn=Array(3).concat("998ec3f7f7f7f1a340","5e3c99b2abd2fdb863e66101","5e3c99b2abd2f7f7f7fdb863e66101","542788998ec3d8daebfee0b6f1a340b35806","542788998ec3d8daebf7f7f7fee0b6f1a340b35806","5427888073acb2abd2d8daebfee0b6fdb863e08214b35806","5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b35806","2d004b5427888073acb2abd2d8daebfee0b6fdb863e08214b358067f3b08","2d004b5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b358067f3b08").map(d3);
Nx(NXn);var BXE=Array(3).concat("ef8a62f7f7f767a9cf","ca0020f4a58292c5de0571b0","ca0020f4a582f7f7f792c5de0571b0","b2182bef8a62fddbc7d1e5f067a9cf2166ac","b2182bef8a62fddbc7f7f7f7d1e5f067a9cf2166ac","b2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac","b2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac","67001fb2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac053061","67001fb2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac053061").map(d3);Nx(BXE);var qCi=Array(3).concat("ef8a62ffffff999999","ca0020f4a582bababa404040",
"ca0020f4a582ffffffbababa404040","b2182bef8a62fddbc7e0e0e09999994d4d4d","b2182bef8a62fddbc7ffffffe0e0e09999994d4d4d","b2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d","b2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d","67001fb2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d1a1a1a","67001fb2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d1a1a1a").map(d3);Nx(qCi);var AHo=Array(3).concat("fc8d59ffffbf91bfdb","d7191cfdae61abd9e92c7bb6","d7191cfdae61ffffbfabd9e92c7bb6","d73027fc8d59fee090e0f3f891bfdb4575b4",
"d73027fc8d59fee090ffffbfe0f3f891bfdb4575b4","d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4","d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4","a50026d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4313695","a50026d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4313695").map(d3);Nx(AHo);var tcd=Array(3).concat("fc8d59ffffbf91cf60","d7191cfdae61a6d96a1a9641","d7191cfdae61ffffbfa6d96a1a9641","d73027fc8d59fee08bd9ef8b91cf601a9850","d73027fc8d59fee08bffffbfd9ef8b91cf601a9850","d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850",
"d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850","a50026d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850006837","a50026d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850006837").map(d3);Nx(tcd);var cHL=Array(3).concat("fc8d59ffffbf99d594","d7191cfdae61abdda42b83ba","d7191cfdae61ffffbfabdda42b83ba","d53e4ffc8d59fee08be6f59899d5943288bd","d53e4ffc8d59fee08bffffbfe6f59899d5943288bd","d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd","d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd",
"9e0142d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd5e4fa2","9e0142d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd5e4fa2").map(d3);Nx(cHL);var SDo=Array(3).concat("e5f5f999d8c92ca25f","edf8fbb2e2e266c2a4238b45","edf8fbb2e2e266c2a42ca25f006d2c","edf8fbccece699d8c966c2a42ca25f006d2c","edf8fbccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45006d2c00441b").map(d3);Nx(SDo);var p3A=Array(3).concat("e0ecf49ebcda8856a7",
"edf8fbb3cde38c96c688419d","edf8fbb3cde38c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d810f7c4d004b").map(d3);Nx(p3A);var UNn=Array(3).concat("e0f3dba8ddb543a2ca","f0f9e8bae4bc7bccc42b8cbe","f0f9e8bae4bc7bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc44eb3d32b8cbe08589e","f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe08589e",
"f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe0868ac084081").map(d3);Nx(UNn);var YDP=Array(3).concat("fee8c8fdbb84e34a33","fef0d9fdcc8afc8d59d7301f","fef0d9fdcc8afc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301fb300007f0000").map(d3);Nx(YDP);var LfJ=Array(3).concat("ece2f0a6bddb1c9099","f6eff7bdc9e167a9cf02818a","f6eff7bdc9e167a9cf1c9099016c59","f6eff7d0d1e6a6bddb67a9cf1c9099016c59",
"f6eff7d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016c59014636").map(d3);Nx(LfJ);var Mln=Array(3).concat("ece7f2a6bddb2b8cbe","f1eef6bdc9e174a9cf0570b0","f1eef6bdc9e174a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0045a8d023858").map(d3);Nx(Mln);var IS5=Array(3).concat("e7e1efc994c7dd1c77",
"f1eef6d7b5d8df65b0ce1256","f1eef6d7b5d8df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125698004367001f").map(d3);Nx(IS5);var dNn=Array(3).concat("fde0ddfa9fb5c51b8a","feebe2fbb4b9f768a1ae017e","feebe2fbb4b9f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1dd3497ae017e7a0177","fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a0177",
"fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a017749006a").map(d3);Nx(dNn);var VlX=Array(3).concat("edf8b17fcdbb2c7fb8","ffffcca1dab441b6c4225ea8","ffffcca1dab441b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea8253494081d58").map(d3);Nx(VlX);var TMT=Array(3).concat("f7fcb9addd8e31a354","ffffccc2e69978c679238443","ffffccc2e69978c67931a354006837","ffffccd9f0a3addd8e78c67931a354006837",
"ffffccd9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443006837004529").map(d3);Nx(TMT);var Wfo=Array(3).concat("fff7bcfec44fd95f0e","ffffd4fed98efe9929cc4c02","ffffd4fed98efe9929d95f0e993404","ffffd4fee391fec44ffe9929d95f0e993404","ffffd4fee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c02993404662506").map(d3);Nx(Wfo);var OWE=Array(3).concat("ffeda0feb24cf03b20",
"ffffb2fecc5cfd8d3ce31a1c","ffffb2fecc5cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cbd0026800026").map(d3);Nx(OWE);var kBn=Array(3).concat("deebf79ecae13182bd","eff3ffbdd7e76baed62171b5","eff3ffbdd7e76baed63182bd08519c","eff3ffc6dbef9ecae16baed63182bd08519c","eff3ffc6dbef9ecae16baed64292c62171b5084594","f7fbffdeebf7c6dbef9ecae16baed64292c62171b5084594",
"f7fbffdeebf7c6dbef9ecae16baed64292c62171b508519c08306b").map(d3);Nx(kBn);var HWE=Array(3).concat("e5f5e0a1d99b31a354","edf8e9bae4b374c476238b45","edf8e9bae4b374c47631a354006d2c","edf8e9c7e9c0a1d99b74c47631a354006d2c","edf8e9c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45006d2c00441b").map(d3);Nx(HWE);var DNs=Array(3).concat("f0f0f0bdbdbd636363","f7f7f7cccccc969696525252","f7f7f7cccccc969696636363252525","f7f7f7d9d9d9bdbdbd969696636363252525",
"f7f7f7d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525000000").map(d3);Nx(DNs);var zBE=Array(3).concat("efedf5bcbddc756bb1","f2f0f7cbc9e29e9ac86a51a3","f2f0f7cbc9e29e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a354278f3f007d").map(d3);Nx(zBE);var QwY=Array(3).concat("fee0d2fc9272de2d26",
"fee5d9fcae91fb6a4acb181d","fee5d9fcae91fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181da50f1567000d").map(d3);Nx(QwY);var nxY=Array(3).concat("fee6cefdae6be6550d","feeddefdbe85fd8d3cd94701","feeddefdbe85fd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3cf16913d948018c2d04","fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d948018c2d04",
"fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d94801a636037f2704").map(d3);Nx(nxY);BPq(zj(300,.5,0),zj(-240,.5,1));BPq(zj(-100,.75,.35),zj(80,1.5,.8));BPq(zj(260,.75,.35),zj(80,1.5,.8));zj();aT();ryu(d3("44015444025645045745055946075a46085c460a5d460b5e470d60470e6147106347116447136548146748166848176948186a481a6c481b6d481c6e481d6f481f70482071482173482374482475482576482677482878482979472a7a472c7a472d7b472e7c472f7d46307e46327e46337f463480453581453781453882443983443a83443b84433d84433e85423f854240864241864142874144874045884046883f47883f48893e49893e4a893e4c8a3d4d8a3d4e8a3c4f8a3c508b3b518b3b528b3a538b3a548c39558c39568c38588c38598c375a8c375b8d365c8d365d8d355e8d355f8d34608d34618d33628d33638d32648e32658e31668e31678e31688e30698e306a8e2f6b8e2f6c8e2e6d8e2e6e8e2e6f8e2d708e2d718e2c718e2c728e2c738e2b748e2b758e2a768e2a778e2a788e29798e297a8e297b8e287c8e287d8e277e8e277f8e27808e26818e26828e26828e25838e25848e25858e24868e24878e23888e23898e238a8d228b8d228c8d228d8d218e8d218f8d21908d21918c20928c20928c20938c1f948c1f958b1f968b1f978b1f988b1f998a1f9a8a1e9b8a1e9c891e9d891f9e891f9f881fa0881fa1881fa1871fa28720a38620a48621a58521a68522a78522a88423a98324aa8325ab8225ac8226ad8127ad8128ae8029af7f2ab07f2cb17e2db27d2eb37c2fb47c31b57b32b67a34b67935b77937b87838b9773aba763bbb753dbc743fbc7340bd7242be7144bf7046c06f48c16e4ac16d4cc26c4ec36b50c46a52c56954c56856c66758c7655ac8645cc8635ec96260ca6063cb5f65cb5e67cc5c69cd5b6ccd5a6ece5870cf5773d05675d05477d1537ad1517cd2507fd34e81d34d84d44b86d54989d5488bd6468ed64590d74393d74195d84098d83e9bd93c9dd93ba0da39a2da37a5db36a8db34aadc32addc30b0dd2fb2dd2db5de2bb8de29bade28bddf26c0df25c2df23c5e021c8e020cae11fcde11dd0e11cd2e21bd5e21ad8e219dae319dde318dfe318e2e418e5e419e7e419eae51aece51befe51cf1e51df4e61ef6e620f8e621fbe723fde725"));
ryu(d3("00000401000501010601010802010902020b02020d03030f03031204041405041606051806051a07061c08071e0907200a08220b09240c09260d0a290e0b2b100b2d110c2f120d31130d34140e36150e38160f3b180f3d19103f1a10421c10441d11471e114920114b21114e22115024125325125527125829115a2a115c2c115f2d11612f116331116533106734106936106b38106c390f6e3b0f703d0f713f0f72400f74420f75440f764510774710784910784a10794c117a4e117b4f127b51127c52137c54137d56147d57157e59157e5a167e5c167f5d177f5f187f601880621980641a80651a80671b80681c816a1c816b1d816d1d816e1e81701f81721f817320817521817621817822817922827b23827c23827e24828025828125818326818426818627818827818928818b29818c29818e2a81902a81912b81932b80942c80962c80982d80992d809b2e7f9c2e7f9e2f7fa02f7fa1307ea3307ea5317ea6317da8327daa337dab337cad347cae347bb0357bb2357bb3367ab5367ab73779b83779ba3878bc3978bd3977bf3a77c03a76c23b75c43c75c53c74c73d73c83e73ca3e72cc3f71cd4071cf4070d0416fd2426fd3436ed5446dd6456cd8456cd9466bdb476adc4869de4968df4a68e04c67e24d66e34e65e44f64e55064e75263e85362e95462ea5661eb5760ec5860ed5a5fee5b5eef5d5ef05f5ef1605df2625df2645cf3655cf4675cf4695cf56b5cf66c5cf66e5cf7705cf7725cf8745cf8765cf9785df9795df97b5dfa7d5efa7f5efa815ffb835ffb8560fb8761fc8961fc8a62fc8c63fc8e64fc9065fd9266fd9467fd9668fd9869fd9a6afd9b6bfe9d6cfe9f6dfea16efea36ffea571fea772fea973feaa74feac76feae77feb078feb27afeb47bfeb67cfeb77efeb97ffebb81febd82febf84fec185fec287fec488fec68afec88cfeca8dfecc8ffecd90fecf92fed194fed395fed597fed799fed89afdda9cfddc9efddea0fde0a1fde2a3fde3a5fde5a7fde7a9fde9aafdebacfcecaefceeb0fcf0b2fcf2b4fcf4b6fcf6b8fcf7b9fcf9bbfcfbbdfcfdbf"));
ryu(d3("00000401000501010601010802010a02020c02020e03021004031204031405041706041907051b08051d09061f0a07220b07240c08260d08290e092b10092d110a30120a32140b34150b37160b39180c3c190c3e1b0c411c0c431e0c451f0c48210c4a230c4c240c4f260c51280b53290b552b0b572d0b592f0a5b310a5c320a5e340a5f3609613809623909633b09643d09653e0966400a67420a68440a68450a69470b6a490b6a4a0c6b4c0c6b4d0d6c4f0d6c510e6c520e6d540f6d550f6d57106e59106e5a116e5c126e5d126e5f136e61136e62146e64156e65156e67166e69166e6a176e6c186e6d186e6f196e71196e721a6e741a6e751b6e771c6d781c6d7a1d6d7c1d6d7d1e6d7f1e6c801f6c82206c84206b85216b87216b88226a8a226a8c23698d23698f24699025689225689326679526679727669827669a28659b29649d29649f2a63a02a63a22b62a32c61a52c60a62d60a82e5fa92e5eab2f5ead305dae305cb0315bb1325ab3325ab43359b63458b73557b93556ba3655bc3754bd3853bf3952c03a51c13a50c33b4fc43c4ec63d4dc73e4cc83f4bca404acb4149cc4248ce4347cf4446d04545d24644d34743d44842d54a41d74b3fd84c3ed94d3dda4e3cdb503bdd513ade5238df5337e05536e15635e25734e35933e45a31e55c30e65d2fe75e2ee8602de9612bea632aeb6429eb6628ec6726ed6925ee6a24ef6c23ef6e21f06f20f1711ff1731df2741cf3761bf37819f47918f57b17f57d15f67e14f68013f78212f78410f8850ff8870ef8890cf98b0bf98c0af98e09fa9008fa9207fa9407fb9606fb9706fb9906fb9b06fb9d07fc9f07fca108fca309fca50afca60cfca80dfcaa0ffcac11fcae12fcb014fcb216fcb418fbb61afbb81dfbba1ffbbc21fbbe23fac026fac228fac42afac62df9c72ff9c932f9cb35f8cd37f8cf3af7d13df7d340f6d543f6d746f5d949f5db4cf4dd4ff4df53f4e156f3e35af3e55df2e661f2e865f2ea69f1ec6df1ed71f1ef75f1f179f2f27df2f482f3f586f3f68af4f88ef5f992f6fa96f8fb9af9fc9dfafda1fcffa4"));
ryu(d3("0d088710078813078916078a19068c1b068d1d068e20068f2206902406912605912805922a05932c05942e05952f059631059733059735049837049938049a3a049a3c049b3e049c3f049c41049d43039e44039e46039f48039f4903a04b03a14c02a14e02a25002a25102a35302a35502a45601a45801a45901a55b01a55c01a65e01a66001a66100a76300a76400a76600a76700a86900a86a00a86c00a86e00a86f00a87100a87201a87401a87501a87701a87801a87a02a87b02a87d03a87e03a88004a88104a78305a78405a78606a68707a68808a68a09a58b0aa58d0ba58e0ca48f0da4910ea3920fa39410a29511a19613a19814a099159f9a169f9c179e9d189d9e199da01a9ca11b9ba21d9aa31e9aa51f99a62098a72197a82296aa2395ab2494ac2694ad2793ae2892b02991b12a90b22b8fb32c8eb42e8db52f8cb6308bb7318ab83289ba3388bb3488bc3587bd3786be3885bf3984c03a83c13b82c23c81c33d80c43e7fc5407ec6417dc7427cc8437bc9447aca457acb4679cc4778cc4977cd4a76ce4b75cf4c74d04d73d14e72d24f71d35171d45270d5536fd5546ed6556dd7566cd8576bd9586ada5a6ada5b69db5c68dc5d67dd5e66de5f65de6164df6263e06363e16462e26561e26660e3685fe4695ee56a5de56b5de66c5ce76e5be76f5ae87059e97158e97257ea7457eb7556eb7655ec7754ed7953ed7a52ee7b51ef7c51ef7e50f07f4ff0804ef1814df1834cf2844bf3854bf3874af48849f48948f58b47f58c46f68d45f68f44f79044f79143f79342f89441f89540f9973ff9983ef99a3efa9b3dfa9c3cfa9e3bfb9f3afba139fba238fca338fca537fca636fca835fca934fdab33fdac33fdae32fdaf31fdb130fdb22ffdb42ffdb52efeb72dfeb82cfeba2cfebb2bfebd2afebe2afec029fdc229fdc328fdc527fdc627fdc827fdca26fdcb26fccd25fcce25fcd025fcd225fbd324fbd524fbd724fad824fada24f9dc24f9dd25f8df25f8e125f7e225f7e425f6e626f6e826f5e926f5eb27f4ed27f3ee27f3f027f2f227f1f426f1f525f0f724f0f921"));
Eiw.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(R,u){R=+R;u=+u;switch(this._point){case 0:this._point=1;this._line?this._context.lineTo(R,u):this._context.moveTo(R,u);break;case 1:this._point=2;default:this._context.lineTo(R,u)}}};
(function(R){function u(B){return new mDI(R(B))}
u._curve=R;return u})(function(R){return new Eiw(R)});
mDI.prototype={lineStart:function(){this._curve.lineStart()},
lineEnd:function(){this._curve.lineEnd()},
point:function(R,u){this._curve.point(u*Math.sin(R),u*-Math.cos(R))}};
$Dw.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:viN(this,this._t0,vim(this,this._t0))}(this._line||this._line!==0&&this._point===1)&&this._context.closePath();this._line=1-this._line},
point:function(R,u){var B=NaN;R=+R;u=+u;if(R!==this._x1||u!==this._y1){switch(this._point){case 0:this._point=1;this._line?this._context.lineTo(R,u):this._context.moveTo(R,u);break;case 1:this._point=2;break;case 2:this._point=3;viN(this,vim(this,B=oit(this,R,u)),B);break;default:viN(this,this._t0,B=oit(this,R,u))}this._x0=this._x1;this._x1=R;this._y0=this._y1;this._y1=u;this._t0=B}}};
(function(R){this._context=new $Dd(R)}.prototype=Object.create($Dw.prototype)).point=function(R,u){$Dw.prototype.point.call(this,u,R)};
$Dd.prototype={moveTo:function(R,u){this._context.moveTo(u,R)},
closePath:function(){this._context.closePath()},
lineTo:function(R,u){this._context.lineTo(u,R)},
bezierCurveTo:function(R,u,B,MG,kR,yw){this._context.bezierCurveTo(u,R,MG,B,yw,kR)}};
c6.prototype={constructor:c6,scale:function(R){return R===1?this:new c6(this.k*R,this.x,this.y)},
translate:function(R,u){return R===0&u===0?this:new c6(this.k,this.x+this.k*R,this.y+this.k*u)},
apply:function(R){return[R[0]*this.k+this.x,R[1]*this.k+this.y]},
invert:function(R){return[(R[0]-this.x)/this.k,(R[1]-this.y)/this.k]},
toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};
new c6(1,0,0);Drk=Tq;EE.svg=EE.svg;EE.xhtml=EE.xhtml;EE.xlink=EE.xlink;EE.xml=EE.xml;EE.xmlns=EE.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 F_Q="hammer_"+(Math.random()*1E6|0),XTm=function(){var S=document||document;if(!S[F_Q]){var p=function(){(function(U,Y,L,I){function V(be,wN,EX){return setTimeout(J(be,EX),wN)}
function W(be,wN,EX){return Array.isArray(be)?(O(be,EX[wN],EX),!0):!1}
function O(be,wN,EX){var Dd;if(be)if(be.forEach)be.forEach(wN,EX);else if(be.length!==I){var IT=0;for(Dd=be.length;IT<Dd;IT++)wN.call(EX,be[IT],IT,be)}else for(IT in be)be.hasOwnProperty(IT)&&wN.call(EX,be[IT],IT,be)}
function D(be,wN,EX){for(var Dd=Object.keys(wN),IT=0,PY=Dd.length;IT<PY;IT++)if(!EX||EX&&be[Dd[IT]]===I)be[Dd[IT]]=wN[Dd[IT]];return be}
function z(be,wN){return D(be,wN,!0)}
function Q(be,wN,EX){wN=wN.prototype;var Dd=be.prototype=Object.create(wN);Dd.constructor=be;Dd._super=wN;EX&&D(Dd,EX)}
function J(be,wN){return function(){return be.apply(wN,arguments)}}
function K(be,wN){return typeof be=="function"?be.apply(wN?wN[0]||I:I,wN):be}
function G(be,wN,EX){O(Z(wN),function(Dd){be.addEventListener(Dd,EX,!1)})}
function X(be,wN,EX){O(Z(wN),function(Dd){be.removeEventListener(Dd,EX,!1)})}
function Z(be){return be.trim().split(/\s+/g)}
function l(be,wN,EX){if(be.indexOf&&!EX)return be.indexOf(wN);for(var Dd=0,IT=be.length;Dd<IT;Dd++)if(EX&&be[Dd][EX]==wN||!EX&&be[Dd]===wN)return Dd;return-1}
function a(be,wN,EX){for(var Dd=[],IT=[],PY=0,Ds=be.length;PY<Ds;PY++){var Jq=wN?be[PY][wN]:be[PY];l(IT,Jq)<0&&Dd.push(be[PY]);IT[PY]=Jq}EX&&(Dd=wN?Dd.sort(function(zj,bJ){return zj[wN]>bJ[wN]}):Dd.sort());
return Dd}
function N(be,wN){for(var EX,Dd=wN[0].toUpperCase()+wN.slice(1),IT=0,PY=Mt.length;IT<PY;IT++)if(EX=(EX=Mt[IT])?EX+Dd:wN,EX in be)return EX;return I}
function m(be,wN){var EX=this;this.manager=be;this.callback=wN;this.element=be.element;this.target=be.options.inputTarget;this.domHandler=function(Dd){K(be.options.enable,[be])&&EX.handler(Dd)};
this.evEl&&G(this.element,this.evEl,this.domHandler);this.evTarget&&G(this.target,this.evTarget,this.domHandler);this.evWin&&G(U,this.evWin,this.domHandler)}
function A(be){var wN;Ku?wN=mq:VT?wN=au:Tq?wN=XI:wN=sX;return new wN(be,q)}
function q(be,wN,EX){var Dd=EX.pointers.length,IT=EX.changedPointers.length,PY=wN&1&&Dd-IT===0;EX.isFirst=!!PY;EX.isFinal=!!(wN&12&&Dd-IT===0);PY&&(be.session={});EX.eventType=wN;wN=be.session;Dd=EX.pointers;IT=Dd.length;wN.firstInput||(wN.firstInput=TG(EX));IT>1&&!wN.firstMultiple?wN.firstMultiple=TG(EX):IT===1&&(wN.firstMultiple=!1);PY=wN.firstInput;var Ds=(IT=wN.firstMultiple)?IT.center:PY.center,Jq=EX.center=Je(Dd);EX.timeStamp=Gj();EX.deltaTime=EX.timeStamp-PY.timeStamp;EX.angle=Ru(Ds,Jq);EX.distance=
Zw(Ds,Jq);PY=EX.center;Ds=wN.offsetDelta||{};Jq=wN.prevDelta||{};var zj=wN.prevInput||{};if(EX.eventType===1||zj.eventType===4)Jq=wN.prevDelta={x:zj.deltaX||0,y:zj.deltaY||0},Ds=wN.offsetDelta={x:PY.x,y:PY.y};EX.deltaX=Jq.x+(PY.x-Ds.x);EX.deltaY=Jq.y+(PY.y-Ds.y);EX.offsetDirection=GG(EX.deltaX,EX.deltaY);IT?(PY=IT.pointers,PY=Zw(Dd[0],Dd[1],aT)/Zw(PY[0],PY[1],aT)):PY=1;EX.scale=PY;IT?(IT=IT.pointers,Dd=Ru(Dd[1],Dd[0],aT)-Ru(IT[1],IT[0],aT)):Dd=0;EX.rotation=Dd;Ds=wN.lastInterval||EX;Dd=EX.timeStamp-
Ds.timeStamp;EX.eventType!=8&&(Dd>25||Ds.velocity===I)?(PY=Ds.deltaX-EX.deltaX,Ds=Ds.deltaY-EX.deltaY,Jq=PY/Dd||0,zj=Ds/Dd||0,Dd=Jq,IT=zj,Jq=yH(Jq)>yH(zj)?Jq:zj,PY=GG(PY,Ds),wN.lastInterval=EX):(Jq=Ds.velocity,Dd=Ds.velocityX,IT=Ds.velocityY,PY=Ds.direction);EX.velocity=Jq;EX.velocityX=Dd;EX.velocityY=IT;EX.direction=PY;wN=be.element;a:{for(Dd=EX.srcEvent.target;Dd;){if(Dd==wN){Dd=!0;break a}Dd=Dd.parentNode}Dd=!1}Dd&&(wN=EX.srcEvent.target);EX.target=wN;be.emit("hammer.input",EX);be.recognize(EX);
be.session.prevInput=EX}
function TG(be){for(var wN=[],EX=0;EX<be.pointers.length;EX++)wN[EX]={clientX:KE(be.pointers[EX].clientX),clientY:KE(be.pointers[EX].clientY)};return{timeStamp:Gj(),pointers:wN,center:Je(wN),deltaX:be.deltaX,deltaY:be.deltaY}}
function Je(be){var wN=be.length;if(wN===1)return{x:KE(be[0].clientX),y:KE(be[0].clientY)};for(var EX=0,Dd=0,IT=0;IT<wN;IT++)EX+=be[IT].clientX,Dd+=be[IT].clientY;return{x:KE(EX/wN),y:KE(Dd/wN)}}
function GG(be,wN){return be===wN?1:yH(be)>=yH(wN)?be>0?2:4:wN>0?8:16}
function Zw(be,wN,EX){EX||(EX=Cc);var Dd=wN[EX[0]]-be[EX[0]];be=wN[EX[1]]-be[EX[1]];return Math.sqrt(Dd*Dd+be*be)}
function Ru(be,wN,EX){EX||(EX=Cc);return Math.atan2(wN[EX[1]]-be[EX[1]],wN[EX[0]]-be[EX[0]])*180/Math.PI}
function sX(){this.evEl="mousedown";this.evWin="mousemove mouseup";this.allow=!0;this.pressed=!1;m.apply(this,arguments)}
function mq(){this.evEl=F5;this.evWin=CS;m.apply(this,arguments);this.store=this.manager.session.pointerEvents=[]}
function au(){this.evTarget="touchstart touchmove touchend touchcancel";this.targetIds={};m.apply(this,arguments)}
function XI(){m.apply(this,arguments);var be=J(this.handler,this);this.touch=new au(this.manager,be);this.mouse=new sX(this.manager,be)}
function nE(be,wN){this.manager=be;this.set(wN)}
function ut(be){if(be.indexOf("none")>-1)return"none";var wN=be.indexOf("pan-x")>-1,EX=be.indexOf("pan-y")>-1;return wN&&EX?"pan-x pan-y":wN||EX?wN?"pan-x":"pan-y":be.indexOf("manipulation")>-1?"manipulation":"auto"}
function Hw(be){this.id=MY++;this.manager=null;this.options=z(be||{},this.defaults);be=this.options.enable;this.options.enable=be===I?!0:be;this.state=1;this.simultaneous={};this.requireFail=[]}
function Tj(be){return be==16?"down":be==8?"up":be==2?"left":be==4?"right":""}
function Ut(be,wN){return(wN=wN.manager)?wN.get(be):be}
function Ww(){Hw.apply(this,arguments)}
function kA(){Ww.apply(this,arguments);this.pY=this.pX=null}
function XO(){Ww.apply(this,arguments)}
function Vw(){Hw.apply(this,arguments);this._input=this._timer=null}
function Kc(){Ww.apply(this,arguments)}
function eQ(){Ww.apply(this,arguments)}
function x5(){Hw.apply(this,arguments);this.pCenter=this.pTime=!1;this._input=this._timer=null;this.count=0}
function rm(be,wN){wN=wN||{};var EX=wN.recognizers;wN.recognizers=EX===I?rm.defaults.preset:EX;return new Bw(be,wN)}
function Bw(be,wN){wN=wN||{};this.options=z(wN,rm.defaults);this.options.inputTarget=this.options.inputTarget||be;this.handlers={};this.session={};this.recognizers=[];this.element=be;this.input=A(this);this.touchAction=new nE(this,this.options.touchAction);oO(this,!0);O(wN.recognizers,function(EX){var Dd=this.add(new EX[0](EX[1]));EX[2]&&Dd.recognizeWith(EX[2]);EX[3]&&Dd.requireFailure(EX[2])},this)}
function oO(be,wN){var EX=be.element;O(be.options.cssProps,function(Dd,IT){EX.style[N(EX.style,IT)]=wN?Dd:""})}
function $m(be,wN){var EX=Y.createEvent("Event");EX.initEvent(be,!0,!0);EX.gesture=wN;wN.target.dispatchEvent(EX)}
var Mt=" webkit moz MS ms o".split(" "),El=Y.createElement("div"),KE=Math.round,yH=Math.abs,Gj=Date.now,MY=1,V2=/mobile|tablet|ip(ad|hone|od)|android/i,Tq="ontouchstart"in U,Ku=N(U,"PointerEvent")!==I,VT=Tq&&V2.test(navigator.userAgent),Cc=["x","y"],aT=["clientX","clientY"];m.prototype={handler:function(){},
destroy:function(){this.evEl&&X(this.element,this.evEl,this.domHandler);this.evTarget&&X(this.target,this.evTarget,this.domHandler);this.evWin&&X(U,this.evWin,this.domHandler)}};
var td={mousedown:1,mousemove:2,mouseup:4};Q(sX,m,{handler:function(be){var wN=td[be.type];wN&1&&be.button===0&&(this.pressed=!0);wN&2&&be.which!==1&&(wN=4);this.pressed&&this.allow&&(wN&4&&(this.pressed=!1),this.callback(this.manager,wN,{pointers:[be],changedPointers:[be],pointerType:"mouse",srcEvent:be}))}});
var V8={pointerdown:1,pointermove:2,pointerup:4,pointercancel:8,pointerout:8},Ix={2:"touch",3:"pen",4:"mouse",5:"kinect"},F5="pointerdown",CS="pointermove pointerup pointercancel";U.MSPointerEvent&&(F5="MSPointerDown",CS="MSPointerMove MSPointerUp MSPointerCancel");Q(mq,m,{handler:function(be){var wN=this.store,EX=!1,Dd=be.type.toLowerCase().replace("ms","");Dd=V8[Dd];var IT=Ix[be.pointerType]||be.pointerType;Dd&1&&(be.button===0||IT=="touch")?wN.push(be):Dd&12&&(EX=!0);var PY=l(wN,be.pointerId,"pointerId");
PY<0||(wN[PY]=be,this.callback(this.manager,Dd,{pointers:wN,changedPointers:[be],pointerType:IT,srcEvent:be}),EX&&wN.splice(PY,1))}});
var rE={touchstart:1,touchmove:2,touchend:4,touchcancel:8};Q(au,m,{handler:function(be){var wN=rE[be.type];var EX=Array.prototype.slice.call(be.touches,0);var Dd=this.targetIds;if(wN&3&&EX.length===1)Dd[EX[0].identifier]=!0,Dd=[EX,EX];else{var IT,PY=Array.prototype.slice.call(be.targetTouches,0),Ds=Array.prototype.slice.call(be.changedTouches,0),Jq=[];if(wN===1)for(EX=0,IT=PY.length;EX<IT;EX++)Dd[PY[EX].identifier]=!0;EX=0;for(IT=Ds.length;EX<IT;EX++)Dd[Ds[EX].identifier]&&Jq.push(Ds[EX]),wN&12&&
delete Dd[Ds[EX].identifier];Dd=Jq.length?[a(PY.concat(Jq),"identifier",!0),Jq]:void 0}Dd&&this.callback(this.manager,wN,{pointers:Dd[0],changedPointers:Dd[1],pointerType:"touch",srcEvent:be})}});
Q(XI,m,{handler:function(be,wN,EX){var Dd=EX.pointerType=="mouse";if(EX.pointerType=="touch")this.mouse.allow=!1;else if(Dd&&!this.mouse.allow)return;wN&12&&(this.mouse.allow=!0);this.callback(be,wN,EX)},
destroy:function(){this.touch.destroy();this.mouse.destroy()}});
var cE=N(El.style,"touchAction"),OP=cE!==I;nE.prototype={set:function(be){be=="compute"&&(be=this.compute());OP&&(this.manager.element.style[cE]=be);this.actions=be.toLowerCase().trim()},
update:function(){this.set(this.manager.options.touchAction)},
compute:function(){var be=[];O(this.manager.recognizers,function(wN){K(wN.options.enable,[wN])&&(be=be.concat(wN.getTouchAction()))});
return ut(be.join(" "))},
preventDefaults:function(be){if(!OP){var wN=be.srcEvent;be=be.offsetDirection;if(this.manager.session.prevented)wN.preventDefault();else{var EX=this.actions,Dd=EX.indexOf("none")>-1,IT=EX.indexOf("pan-y")>-1;EX=EX.indexOf("pan-x")>-1;if(Dd||IT&&EX||IT&&be&6||EX&&be&24)return this.preventSrc(wN)}}},
preventSrc:function(be){this.manager.session.prevented=!0;be.preventDefault()}};
Hw.prototype={defaults:{},set:function(be){D(this.options,be);this.manager&&this.manager.touchAction.update();return this},
recognizeWith:function(be){if(W(be,"recognizeWith",this))return this;var wN=this.simultaneous;be=Ut(be,this);wN[be.id]||(wN[be.id]=be,be.recognizeWith(this));return this},
dropRecognizeWith:function(be){if(W(be,"dropRecognizeWith",this))return this;be=Ut(be,this);delete this.simultaneous[be.id];return this},
requireFailure:function(be){if(W(be,"requireFailure",this))return this;var wN=this.requireFail;be=Ut(be,this);l(wN,be)===-1&&(wN.push(be),be.requireFailure(this));return this},
dropRequireFailure:function(be){if(W(be,"dropRequireFailure",this))return this;be=Ut(be,this);be=l(this.requireFail,be);be>-1&&this.requireFail.splice(be,1);return this},
hasRequireFailures:function(){return this.requireFail.length>0},
canRecognizeWith:function(be){return!!this.simultaneous[be.id]},
emit:function(be){function wN(IT){EX.manager.emit(EX.options.event+(IT?Dd&16?"cancel":Dd&8?"end":Dd&4?"move":Dd&2?"start":"":""),be)}
var EX=this,Dd=this.state;Dd<8&&wN(!0);wN();Dd>=8&&wN(!0)},
tryEmit:function(be){if(this.canEmit())return this.emit(be);this.state=32},
canEmit:function(){for(var be=0;be<this.requireFail.length;be++)if(!(this.requireFail[be].state&33))return!1;return!0},
recognize:function(be){be=D({},be);K(this.options.enable,[this,be])?(this.state&56&&(this.state=1),this.state=this.process(be),this.state&30&&this.tryEmit(be)):(this.reset(),this.state=32)},
process:function(){},
getTouchAction:function(){},
reset:function(){}};
Q(Ww,Hw,{defaults:{pointers:1},attrTest:function(be){var wN=this.options.pointers;return wN===0||be.pointers.length===wN},
process:function(be){var wN=this.state,EX=be.eventType,Dd=wN&6;be=this.attrTest(be);return Dd&&(EX&8||!be)?wN|16:Dd||be?EX&4?wN|8:wN&2?wN|4:2:32}});
Q(kA,Ww,{defaults:{event:"pan",threshold:10,pointers:1,direction:30},getTouchAction:function(){var be=this.options.direction;if(be===30)return["none"];var wN=[];be&6&&wN.push("pan-y");be&24&&wN.push("pan-x");return wN},
directionTest:function(be){var wN=this.options,EX=!0,Dd=be.distance,IT=be.direction,PY=be.deltaX,Ds=be.deltaY;IT&wN.direction||(wN.direction&6?(IT=PY===0?1:PY<0?2:4,EX=PY!=this.pX,Dd=Math.abs(be.deltaX)):(IT=Ds===0?1:Ds<0?8:16,EX=Ds!=this.pY,Dd=Math.abs(be.deltaY)));be.direction=IT;return EX&&Dd>wN.threshold&&IT&wN.direction},
attrTest:function(be){return Ww.prototype.attrTest.call(this,be)&&(this.state&2||!(this.state&2)&&this.directionTest(be))},
emit:function(be){this.pX=be.deltaX;this.pY=be.deltaY;var wN=Tj(be.direction);wN&&this.manager.emit(this.options.event+wN,be);this._super.emit.call(this,be)}});
Q(XO,Ww,{defaults:{event:"pinch",threshold:0,pointers:2},getTouchAction:function(){return["none"]},
attrTest:function(be){return this._super.attrTest.call(this,be)&&(Math.abs(be.scale-1)>this.options.threshold||this.state&2)},
emit:function(be){this._super.emit.call(this,be);be.scale!==1&&this.manager.emit(this.options.event+(be.scale<1?"in":"out"),be)}});
Q(Vw,Hw,{defaults:{event:"press",pointers:1,time:500,threshold:5},getTouchAction:function(){return["auto"]},
process:function(be){var wN=this.options,EX=be.pointers.length===wN.pointers,Dd=be.distance<wN.threshold,IT=be.deltaTime>wN.time;this._input=be;if(!Dd||!EX||be.eventType&12&&!IT)this.reset();else if(be.eventType&1)this.reset(),this._timer=V(function(){this.state=8;this.tryEmit()},wN.time,this);
else if(be.eventType&4)return 8;return 32},
reset:function(){clearTimeout(this._timer)},
emit:function(be){this.state===8&&(be&&be.eventType&4?this.manager.emit(this.options.event+"up",be):(this._input.timeStamp=Gj(),this.manager.emit(this.options.event,this._input)))}});
Q(Kc,Ww,{defaults:{event:"rotate",threshold:0,pointers:2},getTouchAction:function(){return["none"]},
attrTest:function(be){return this._super.attrTest.call(this,be)&&(Math.abs(be.rotation)>this.options.threshold||this.state&2)}});
Q(eQ,Ww,{defaults:{event:"swipe",threshold:10,velocity:.65,direction:30,pointers:1},getTouchAction:function(){return kA.prototype.getTouchAction.call(this)},
attrTest:function(be){var wN=this.options.direction;if(wN&30)var EX=be.velocity;else wN&6?EX=be.velocityX:wN&24&&(EX=be.velocityY);return this._super.attrTest.call(this,be)&&wN&be.direction&&yH(EX)>this.options.velocity&&be.eventType&4},
emit:function(be){var wN=Tj(be.direction);wN&&this.manager.emit(this.options.event+wN,be);this.manager.emit(this.options.event,be)}});
Q(x5,Hw,{defaults:{event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:2,posThreshold:10},getTouchAction:function(){return["manipulation"]},
process:function(be){var wN=this.options,EX=be.pointers.length===wN.pointers,Dd=be.distance<wN.threshold,IT=be.deltaTime<wN.time;this.reset();if(be.eventType&1&&this.count===0)return this.failTimeout();if(Dd&&IT&&EX){if(be.eventType!=4)return this.failTimeout();EX=this.pTime?be.timeStamp-this.pTime<wN.interval:!0;Dd=!this.pCenter||Zw(this.pCenter,be.center)<wN.posThreshold;this.pTime=be.timeStamp;this.pCenter=be.center;Dd&&EX?this.count+=1:this.count=1;this._input=be;if(this.count%wN.taps===0)return this.hasRequireFailures()?
(this._timer=V(function(){this.state=8;this.tryEmit()},wN.interval,this),2):8}return 32},
failTimeout:function(){this._timer=V(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))}});
rm.VERSION="2.0.2";rm.defaults={domEvents:!1,touchAction:"compute",inputTarget:null,enable:!0,preset:[[Kc,{enable:!1}],[XO,{enable:!1},["rotate"]],[eQ,{direction:6}],[kA,{direction:6},["swipe"]],[x5],[x5,{event:"doubletap",taps:2},["tap"]],[Vw]],cssProps:{userSelect:"none",touchSelect:"none",touchCallout:"none",contentZooming:"none",userDrag:"none",tapHighlightColor:"rgba(0,0,0,0)"}};Bw.prototype={set:function(be){D(this.options,be);return this},
stop:function(be){this.session.stopped=be?2:1},
recognize:function(be){var wN=this.session;if(!wN.stopped){this.touchAction.preventDefaults(be);var EX=this.recognizers,Dd=wN.curRecognizer;if(!Dd||Dd&&Dd.state&8)Dd=wN.curRecognizer=null;for(var IT=0,PY=EX.length;IT<PY;IT++){var Ds=EX[IT];wN.stopped===2||Dd&&Ds!=Dd&&!Ds.canRecognizeWith(Dd)?Ds.reset():Ds.recognize(be);!Dd&&Ds.state&14&&(Dd=wN.curRecognizer=Ds)}}},
get:function(be){if(be instanceof Hw)return be;for(var wN=this.recognizers,EX=0;EX<wN.length;EX++)if(wN[EX].options.event==be)return wN[EX];return null},
add:function(be){if(W(be,"add",this))return this;var wN=this.get(be.options.event);wN&&this.remove(wN);this.recognizers.push(be);be.manager=this;this.touchAction.update();return be},
remove:function(be){if(W(be,"remove",this))return this;var wN=this.recognizers;be=this.get(be);wN.splice(l(wN,be),1);this.touchAction.update();return this},
on:function(be,wN){var EX=this.handlers;O(Z(be),function(Dd){EX[Dd]=EX[Dd]||[];EX[Dd].push(wN)});
return this},
off:function(be,wN){var EX=this.handlers;O(Z(be),function(Dd){wN?EX[Dd].splice(l(EX[Dd],wN),1):delete EX[Dd]});
return this},
emit:function(be,wN){this.options.domEvents&&$m(be,wN);var EX=this.handlers[be]&&this.handlers[be].slice();if(EX&&EX.length){wN.type=be;wN.preventDefault=function(){wN.srcEvent.preventDefault()};
be=0;for(var Dd=EX.length;be<Dd;be++)EX[be](wN)}},
destroy:function(){this.element&&oO(this,!1);this.handlers={};this.session={};this.input.destroy();this.element=null}};
D(rm,{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:Bw,Input:m,TouchAction:nE,Recognizer:Hw,AttrRecognizer:Ww,Tap:x5,Pan:kA,Swipe:eQ,Pinch:XO,Rotate:Kc,Press:Vw,on:G,off:X,each:O,merge:z,extend:D,inherit:Q,bindFn:J,prefixed:N});
U[L]=rm})(window,document,"Hammer");
return window.Hammer}.call({});
p.DOCUMENT=S;S[F_Q]=p}return S[F_Q]};/*

 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 PKm=function(S,p){if(S.length!==p.length)return!1;for(var U=0;U<S.length;++U)if(S[U]!==p[U])return!1;return!0};if(!window.polymerSkipLoadingFontRoboto)for(var Z3q=_.d(["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"]),ssP=Z3q.next();!ssP.done;ssP=Z3q.next()){var eqd=ssP.value,gke=document.createElement("link");gke.rel="stylesheet";gke.href=eqd;document.head.appendChild(gke)};var Axw,cxd,pgu,NIw,tCE,BIw,$_d,i4w;Axw={"U+0008":"backspace","U+0009":"tab","U+001B":"esc","U+0020":"space","U+007F":"del"};cxd={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:"*"};pgu={shift:"shiftKey",ctrl:"ctrlKey",alt:"altKey",meta:"metaKey"};NIw=/[a-z0-9*]/;tCE=/U\+/;BIw=/^arrow/;$_d=/^space(bar)?/;i4w=/^escape$/;_.H$={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(S,p){this._imperativeKeyBindings[S]=p;this._prepKeyBindings();this._resetKeyEventListeners()},
removeOwnKeyBindings:function(){this._imperativeKeyBindings={};this._prepKeyBindings();this._resetKeyEventListeners()},
keyboardEventMatchesKeys:function(S,p){p=YxN(p);for(var U=0;U<p.length;++U)if(SxG(p[U],S))return!0;return!1},
_collectKeyBindings:function(){var S=this.behaviors.map(function(p){return p.keyBindings});
S.indexOf(this.keyBindings)===-1&&S.push(this.keyBindings);return S},
_prepKeyBindings:function(){this._keyBindings={};this._collectKeyBindings().forEach(function(U){for(var Y in U)this._addKeyBinding(Y,U[Y])},this);
for(var S in this._imperativeKeyBindings)this._addKeyBinding(S,this._imperativeKeyBindings[S]);for(var p in this._keyBindings)this._keyBindings[p].sort(function(U,Y){U=U[0].hasModifiers;return U===Y[0].hasModifiers?0:U?-1:1})},
_addKeyBinding:function(S,p){YxN(S).forEach(function(U){this._keyBindings[U.event]=this._keyBindings[U.event]||[];this._keyBindings[U.event].push([U,p])},this)},
_resetKeyEventListeners:function(){this._unlistenKeyEventListeners();this.isAttached&&this._listenKeyEventListeners()},
_listenKeyEventListeners:function(){this.keyEventTarget&&this._keyBindings&&Object.keys(this._keyBindings).forEach(function(S){var p=this._onKeyBindingEvent.bind(this,this._keyBindings[S]);this._boundKeyHandlers.push([this.keyEventTarget,S,p]);this.keyEventTarget.addEventListener(S,p)},this)},
_unlistenKeyEventListeners:function(){for(var S,p,U;this._boundKeyHandlers.length;)S=this._boundKeyHandlers.pop(),p=S[0],U=S[1],S=S[2],p.removeEventListener(U,S)},
_onKeyBindingEvent:function(S,p){this.stopKeyboardEventPropagation&&p.stopPropagation();if(!p.defaultPrevented)for(var U=0;U<S.length;U++){var Y=S[U][0],L=S[U][1];if(SxG(Y,p)&&(this._triggerKeyHandler(Y,L,p),p.defaultPrevented))break}},
_triggerKeyHandler:function(S,p,U){var Y=Object.create(S);Y.keyboardEvent=U;S=new CustomEvent(S.event,{detail:Y,cancelable:!0});this[p].call(this,S);S.defaultPrevented&&U.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
*/
_.jp({is:"iron-a11y-keys",_template:null,behaviors:[_.H$],properties:{target:{type:Object,observer:"_targetChanged"},keys:{type:String,reflectToAttribute:!0,observer:"_keysChanged"}},attached:function(){this.target||(this.target=this.parentNode)},
_targetChanged:function(S){this.keyEventTarget=S},
_keysChanged:function(){this.removeOwnKeyBindings();this.addOwnKeyBinding(this.keys,"_fireKeysPressed")},
_fireKeysPressed:function(S){this.fire("keys-pressed",S.detail,{})}});_.DE={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(S){this._setFocused(S.type==="focus")},
_disabledChanged:function(S){this.setAttribute("aria-disabled",S?"true":"false");this.style.pointerEvents=S?"none":"";S?(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 zC={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(S){this._detectKeyboardFocus(S);S||this._setPressed(!1)},
_detectKeyboardFocus:function(S){this._setReceivedFocusFromKeyboard(!this.pointerDown&&S)},
_userActivate:function(S){this.active!==S&&(this.active=S,this.fire("change"))},
_downHandler:function(){this._setPointerDown(!0);this._setPressed(!0);this._setReceivedFocusFromKeyboard(!1)},
_upHandler:function(){this._setPointerDown(!1);this._setPressed(!1)},
_spaceKeyDownHandler:function(S){S=S.detail.keyboardEvent;var p=_.K9(S).localTarget;this.isLightDescendant(p)||(S.preventDefault(),S.stopImmediatePropagation(),this._setPressed(!0))},
_spaceKeyUpHandler:function(S){S=_.K9(S.detail.keyboardEvent).localTarget;this.isLightDescendant(S)||(this.pressed&&this._asyncClick(),this._setPressed(!1))},
_asyncClick:function(){this.async(function(){this.click()},1)},
_pressedChanged:function(){this._changedButtonState()},
_ariaActiveAttributeChanged:function(S,p){p&&p!=S&&this.hasAttribute(p)&&this.removeAttribute(p)},
_activeChanged:function(S){this.toggles?this.setAttribute(this.ariaActiveAttribute,S?"true":"false"):this.removeAttribute(this.ariaActiveAttribute);this._changedButtonState()},
_controlStateChanged:function(){this.disabled?this._setPressed(!1):this._changedButtonState()},
_changedButtonState:function(){this._buttonStateChanged&&this._buttonStateChanged()}},uBq=[_.H$,
zC];_.Qm={IronButtonState:uBq,IronButtonStateImpl:zC};_.nL={properties:{name:{type:String},value:{notify:!0,type:String},required:{type:Boolean,value:!1}},attached:function(){},
detached:function(){}};_.Jh=function(S){_.Jh[" "](S);this.type=S&&S.type||"default";this.key=S&&S.key;S&&"value"in S&&(this.value=S.value)};
_.Jh.prototype.byKey=function(S){this.key=S;return this.value};
_.$u.Object.defineProperties(_.Jh.prototype,{value:{configurable:!0,enumerable:!0,get:function(){var S=this.type,p=this.key;if(S&&p)return ym[S]&&ym[S][p]},
set:function(S){var p=this.type,U=this.key;p&&U&&(p=ym[p]=ym[p]||{},S==null?delete p[U]:p[U]=S)}},
list:{configurable:!0,enumerable:!0,get:function(){if(!this.type)return[];var S=ym[this.type];return S?Object.keys(S).map(function(p){return ym[this.type][p]},this):[]}}});
_.Jh[" "]=function(){};
var ym={};_.jp({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(S,p,U){S=new _.Jh({type:S,key:p});U!==void 0&&U!==S.value?S.value=U:this.value!==S.value&&(this.value=S.value);return S},
get list(){return this.__meta&&this.__meta.list},_selfChanged:function(S){S&&(this.value=this)},
byKey:function(S){return(new _.Jh({type:this.type,key:S})).value}});var wTt;wTt=null;_.KL={properties:{validator:{type:String},invalid:{notify:!0,reflectToAttribute:!0,type:Boolean,value:!1,observer:"_invalidChanged"}},registered:function(){wTt=new _.Jh({type:"validator"})},
_invalidChanged:function(){this.invalid?this.setAttribute("aria-invalid","true"):this.removeAttribute("aria-invalid")},
get _validator(){return wTt&&wTt.byKey(this.validator)},hasValidator:function(){return this._validator!=null},
validate:function(S){this.invalid=S===void 0&&this.value!==void 0?!this._getValidity(this.value):!this._getValidity(S);return!this.invalid},
_getValidity:function(S){return this.hasValidator()?this._validator.validate(S):!0}};var llm={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"}},alt=[_.nL,
_.KL,llm];_.jp({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 _.Jh({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(S){return this.name+":"+S},this)},
applyIcon:function(S,p){this.removeIcon(S);if(p=this._cloneIcon(p,this.rtlMirroring&&this._targetIsRTL(S))){var U=_.K9(S.root||S);U.insertBefore(p,U.childNodes[0]);return S._svgIcon=p}return null},
removeIcon:function(S){S._svgIcon&&(_.K9(S.root||S).removeChild(S._svgIcon),S._svgIcon=null)},
_targetIsRTL:function(S){this.__targetIsRTL==null&&(this.useGlobalRtlAttribute?this.__targetIsRTL=(document.body&&document.body.hasAttribute("dir")?document.body:document.documentElement).getAttribute("dir")==="rtl":(S&&S.nodeType!==Node.ELEMENT_NODE&&(S=S.host),this.__targetIsRTL=S&&window.getComputedStyle(S).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 S=Object.create(null);_.K9(this).querySelectorAll("[id]").forEach(function(p){S[p.id]=p});
return S},
_cloneIcon:function(S,p){this._icons=this._icons||this._createIconMap();return this._prepareSvgClone(this._icons[S],this.size,p)},
_prepareSvgClone:function(S,p,U){if(S){S=S.cloneNode(!0);var Y=document.createElementNS("http://www.w3.org/2000/svg","svg");p=S.getAttribute("viewBox")||"0 0 "+p+" "+p;var L="pointer-events: none; display: block; width: 100%; height: 100%;";U&&S.hasAttribute("mirror-in-rtl")&&(L+="-webkit-transform:scale(-1,1);transform:scale(-1,1);transform-origin:center;");Y.setAttribute("viewBox",p);Y.setAttribute("preserveAspectRatio","xMidYMid meet");Y.setAttribute("focusable","false");Y.style&&(Y.style.cssText=
L);Y.appendChild(S).removeAttribute("id");return Y}return null}});var flH=function(S){this.multi=!1;this.selection=[];this.selectCallback=S};
_.M=flH.prototype;_.M.get=function(){return this.multi?this.selection.slice():this.selection[0]};
_.M.clear=function(S){this.selection.slice().forEach(function(p){(!S||S.indexOf(p)<0)&&this.setItemSelected(p,!1)},this)};
_.M.isSelected=function(S){return this.selection.indexOf(S)>=0};
_.M.setItemSelected=function(S,p){if(S!=null&&p!==this.isSelected(S)){if(p)this.selection.push(S);else{var U=this.selection.indexOf(S);U>=0&&this.selection.splice(U,1)}this.selectCallback&&this.selectCallback(S,p)}};
_.M.select=function(S){this.multi?this.toggle(S):this.get()!==S&&(this.setItemSelected(this.get(),!1),this.setItemSelected(S,!0))};
_.M.toggle=function(S){this.setItemSelected(S,!this.isSelected(S))};_.as={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 flH(this._applySelection.bind(this))},
attached:function(){this._observer=this._observeItems(this);this._addListener(this.activateEvent)},
detached:function(){this._observer&&_.K9(this).unobserveNodes(this._observer);this._removeListener(this.activateEvent)},
indexOf:function(S){return this.items?this.items.indexOf(S):-1},
select:function(S){this.selected=S},
selectPrevious:function(){var S=this.items.length,p=S-1;this.selected!==void 0&&(p=(Number(this._valueToIndex(this.selected))-1+S)%S);this.selected=this._indexToValue(p)},
selectNext:function(){var S=0;this.selected!==void 0&&(S=(Number(this._valueToIndex(this.selected))+1)%this.items.length);this.selected=this._indexToValue(S)},
selectIndex:function(S){this.select(this._indexToValue(S))},
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(S){this.listen(this,S,"_activateHandler")},
_removeListener:function(S){this.unlisten(this,S,"_activateHandler")},
_activateEventChanged:function(S,p){this._removeListener(p);this._addListener(S)},
_updateItems:function(){var S=_.K9(this).queryDistributedElements(this.selectable||"*");S=Array.prototype.filter.call(S,this._bindFilterItem);this._setItems(S)},
_updateAttrForSelected:function(){this.selectedItem&&(this.selected=this._valueForItem(this.selectedItem))},
_updateSelected:function(){this._selectSelected(this.selected)},
_selectSelected:function(){if(this.items){var S=this._valueToItem(this.selected);S?this._selection.select(S):this._selection.clear();this.fallbackSelection&&this.items.length&&this._selection.get()===void 0&&(this.selected=this.fallbackSelection)}},
_filterItem:function(S){return!this._excludedLocalNames[S.localName]},
_valueToItem:function(S){return S==null?null:this.items[this._valueToIndex(S)]},
_valueToIndex:function(S){if(this.attrForSelected)for(var p=0,U;U=this.items[p];p++){if(this._valueForItem(U)==S)return p}else return Number(S)},
_indexToValue:function(S){if(this.attrForSelected){if(S=this.items[S])return this._valueForItem(S)}else return S},
_valueForItem:function(S){if(!S)return null;if(!this.attrForSelected)return S=this.indexOf(S),S===-1?null:S;var p=S[LZ(this.attrForSelected)];return p!=void 0?p:S.getAttribute(this.attrForSelected)},
_applySelection:function(S,p){this.selectedClass&&this.toggleClass(this.selectedClass,p,S);this.selectedAttribute&&this.toggleAttribute.call(S,this.selectedAttribute,p);this._selectionChange();this.fire("iron-"+(p?"select":"deselect"),{item:S})},
_selectionChange:function(){this._setSelectedItem(this._selection.get())},
_observeItems:function(S){return _.K9(S).observeNodes(function(p){this._updateItems();this._updateSelected();this.fire("iron-items-changed",p,{bubbles:!1,cancelable:!1})})},
_activateHandler:function(S){S=S.target;for(var p=this.items;S&&S!=this;){var U=p.indexOf(S);if(U>=0){p=this._indexToValue(U);this._itemActivate(p,S);break}S=S.parentNode}},
_itemActivate:function(S,p){this.fire("iron-activate",{selected:S,item:p},{cancelable:!0}).defaultPrevented||this.select(S)}};var CKQ={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(S){this.multi?this._toggleSelected(S):this.selected=S},
multiChanged:function(S){this._selection.multi=S;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(S){return this._indexToValue(this.indexOf(S))},this).filter(function(S){return S!=null},this)):_.as._updateAttrForSelected.apply(this)},
_updateSelected:function(){this.multi?this._selectMulti(this.selectedValues):this._selectSelected(this.selected)},
_selectMulti:function(S){S=S||[];S=(this._valuesToItems(S)||[]).filter(function(U){return U!==null&&U!==void 0});
this._selection.clear(S);for(var p=0;p<S.length;p++)this._selection.setItemSelected(S[p],!0);this.fallbackSelection&&!this._selection.get().length&&this._valueToItem(this.fallbackSelection)&&this.select(this.fallbackSelection)},
_selectionChange:function(){var S=this._selection.get();this.multi?(this._setSelectedItems(S),this._setSelectedItem(S.length?S[0]:null)):S!==null&&S!==void 0?(this._setSelectedItems([S]),this._setSelectedItem(S)):(this._setSelectedItems([]),this._setSelectedItem(null))},
_toggleSelected:function(S){var p=this.selectedValues.indexOf(S);p<0?this.push("selectedValues",S):this.splice("selectedValues",p,1)},
_valuesToItems:function(S){return S==null?null:S.map(function(p){return this._valueToItem(p)},this)}},xsI=[_.as,
CKQ];var Ekc;
_.bs={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(S){this._defaultFocusAsync&&(this.cancelAsync(this._defaultFocusAsync),this._defaultFocusAsync=null);var p=this._valueToItem(S);p&&p.hasAttribute("disabled")||(this._setFocusedItem(p),CKQ.select.apply(this,arguments))},
_resetTabindices:function(){var S=this.multi?this.selectedItems&&this.selectedItems[0]:this.selectedItem;this.items.forEach(function(p){p.setAttribute("tabindex",p===S?"0":"-1");p.setAttribute("aria-selected",this._selection.isSelected(p))},this)},
_updateMultiselectable:function(S){S?this.setAttribute("aria-multiselectable","true"):this.removeAttribute("aria-multiselectable")},
_focusWithKeyboardEvent:function(S){if(this._MODIFIER_KEYS.indexOf(S.key)===-1){this.cancelDebouncer("_clearSearchText");var p=this._searchText||"";p+=(S.key&&S.key.length==1?S.key:String.fromCharCode(S.keyCode)).toLocaleLowerCase();S=p.length;for(var U=0,Y;Y=this.items[U];U++)if(!Y.hasAttribute("disabled")){var L=this.attrForItemTitle||"textContent";L=(Y[L]||Y.getAttribute(L)||"").trim();if(!(L.length<S)&&L.slice(0,S).toLocaleLowerCase()==p){this._setFocusedItem(Y);break}}this._searchText=p;this.debounce("_clearSearchText",
this._clearSearchText,this._SEARCH_RESET_TIMEOUT_MS)}},
_clearSearchText:function(){this._searchText=""},
_focusPrevious:function(){for(var S=this.items.length,p=Number(this.indexOf(this.focusedItem)),U=1;U<S+1;U++){var Y=this.items[(p-U+S)%S];if(!Y.hasAttribute("disabled")){var L=_.K9(Y).getOwnerRoot()||document;this._setFocusedItem(Y);if(_.K9(L).activeElement==Y)break}}},
_focusNext:function(){for(var S=this.items.length,p=Number(this.indexOf(this.focusedItem)),U=1;U<S+1;U++){var Y=this.items[(p+U)%S];if(!Y.hasAttribute("disabled")){var L=_.K9(Y).getOwnerRoot()||document;this._setFocusedItem(Y);if(_.K9(L).activeElement==Y)break}}},
_applySelection:function(S,p){p?S.setAttribute("aria-selected","true"):S.setAttribute("aria-selected","false");_.as._applySelection.apply(this,arguments)},
_focusedItemChanged:function(S,p){p&&p.setAttribute("tabindex","-1");!S||S.hasAttribute("disabled")||this.disabled||(S.setAttribute("tabindex","0"),S.focus())},
_onIronItemsChanged:function(S){S.detail.addedNodes.length&&this._resetTabindices()},
_onShiftTabDown:function(){var S=this.getAttribute("tabindex");_.bs._shiftTabPressed=!0;this._setFocusedItem(null);this.setAttribute("tabindex","-1");this.async(function(){this.setAttribute("tabindex",S);_.bs._shiftTabPressed=!1},1)},
_onFocus:function(S){!_.bs._shiftTabPressed&&(S=_.K9(S).rootTarget,S===this||typeof S.tabIndex==="undefined"||this.isLightDescendant(S))&&(this._defaultFocusAsync=this.async(function(){var p=this.multi?this.selectedItems&&this.selectedItems[0]:this.selectedItem;this._setFocusedItem(null);p?this._setFocusedItem(p):this.items[0]&&this._focusNext()}))},
_onUpKey:function(S){this._focusPrevious();S.detail.keyboardEvent.preventDefault()},
_onDownKey:function(S){this._focusNext();S.detail.keyboardEvent.preventDefault()},
_onEscKey:function(){var S=this.focusedItem;S&&S.blur()},
_onKeydown:function(S){this.keyboardEventMatchesKeys(S,"up down esc")||this._focusWithKeyboardEvent(S);S.stopPropagation()},
_activateHandler:function(S){_.as._activateHandler.call(this,S);S.stopPropagation()},
_disabledChanged:function(S){S?(this._previousTabIndex=this.hasAttribute("tabindex")?this.tabIndex:0,this.removeAttribute("tabindex")):this.hasAttribute("tabindex")||this.setAttribute("tabindex",this._previousTabIndex)},
_shiftTabPressed:!1};Ekc=[xsI,_.H$,_.bs];_.msw={hostAttributes:{role:"menubar"},keyBindings:{left:"_onLeftKey",right:"_onRightKey"},_onUpKey:function(S){this.focusedItem&&(this.focusedItem.click(),S.detail.keyboardEvent.preventDefault())},
_onDownKey:function(S){this.focusedItem&&(this.focusedItem.click(),S.detail.keyboardEvent.preventDefault())},
get _isRTL(){return window.getComputedStyle(this).direction==="rtl"},_isSpecialKey:function(S){return S.ctrlKey||S.shiftKey||S.altKey||S.metaKey},
_onLeftKey:function(S){this._isSpecialKey(S.detail.keyboardEvent)||(this._isRTL?this._focusNext():this._focusPrevious(),S.detail.keyboardEvent.preventDefault())},
_onRightKey:function(S){this._isSpecialKey(S.detail.keyboardEvent)||(this._isRTL?this._focusPrevious():this._focusNext(),S.detail.keyboardEvent.preventDefault())},
_onKeydown:function(S){this.keyboardEventMatchesKeys(S,"up down left right esc")||this._focusWithKeyboardEvent(S)}};
_.okm=[Ekc,_.msw];var vkl;vkl=new Set;_.ji={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):(vkl.delete(this),window.removeEventListener("resize",this._boundNotifyResize));this._parentResizable=null},
notifyResize:function(){this.isAttached&&(this._interestedResizables.forEach(function(S){this.resizerShouldNotify(S)&&this._notifyDescendant(S)},this),this._fireResize())},
assignParentResizable:function(S){this._parentResizable&&this._parentResizable.stopResizeNotificationsFor(this);(this._parentResizable=S)&&S._interestedResizables.indexOf(this)===-1&&(S._interestedResizables.push(this),S._subscribeIronResize(this))},
stopResizeNotificationsFor:function(S){var p=this._interestedResizables.indexOf(S);p>-1&&(this._interestedResizables.splice(p,1),this._unsubscribeIronResize(S))},
_subscribeIronResize:function(S){S.addEventListener("iron-resize",this._boundOnDescendantIronResize)},
_unsubscribeIronResize:function(S){S.removeEventListener("iron-resize",this._boundOnDescendantIronResize)},
resizerShouldNotify:function(){return!0},
_onDescendantIronResize:function(S){this._notifyingDescendant?S.stopPropagation():eF||this._fireResize()},
_fireResize:function(){this.fire("iron-resize",null,{node:this,bubbles:!1})},
_onIronRequestResizeNotifications:function(S){var p=_.K9(S).rootTarget;p!==this&&(p.assignParentResizable(this),this._notifyDescendant(p),S.stopPropagation())},
_parentResizableChanged:function(S){S&&window.removeEventListener("resize",this._boundNotifyResize)},
_notifyDescendant:function(S){this.isAttached&&(this._notifyingDescendant=!0,S.notifyResize(),this._notifyingDescendant=!1)},
_requestResizeNotifications:function(){if(this.isAttached)if(document.readyState==="loading"){var S=this._requestResizeNotifications.bind(this);document.addEventListener("readystatechange",function U(){document.removeEventListener("readystatechange",U);S()})}else this._findParent(),this._parentResizable?this._parentResizable._interestedResizables.forEach(function(p){p!==this&&p._findParent()},this):(vkl.forEach(function(p){p!==this&&p._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?vkl.delete(this):vkl.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
*/
_.$sP={properties:{scrollTarget:{type:HTMLElement,value:function(){return this._defaultScrollTarget}}},
observers:["_scrollTargetChanged(scrollTarget, isAttached)"],_shouldHaveListener:!0,_scrollTargetChanged:function(S,p){this._oldScrollTarget&&(this._toggleScrollListener(!1,this._oldScrollTarget),this._oldScrollTarget=null);p&&(S==="document"?this.scrollTarget=this._doc:typeof S==="string"?this.scrollTarget=(p=this.domHost)&&p.$?p.$[S]:_.K9(this.ownerDocument).querySelector("#"+S):this._isValidScrollTarget()&&(this._oldScrollTarget=S,this._toggleScrollListener(this._shouldHaveListener,S)))},
_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(S){this.scrollTarget===this._doc?window.scrollTo(window.pageXOffset,S):this._isValidScrollTarget()&&(this.scrollTarget.scrollTop=
S)},set _scrollLeft(S){this.scrollTarget===this._doc?window.scrollTo(S,window.pageYOffset):this._isValidScrollTarget()&&(this.scrollTarget.scrollLeft=S)},scroll:function(S,p){if(typeof S==="object"){var U=S.left;p=S.top}else U=S;U=U||0;p=p||0;this.scrollTarget===this._doc?window.scrollTo(U,p):this._isValidScrollTarget()&&(this.scrollTarget.scrollLeft=U,this.scrollTarget.scrollTop=p)},
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(S,p){p=p===this._doc?window:p;S?this._boundScrollHandler||(this._boundScrollHandler=this._scrollHandler.bind(this),p.addEventListener("scroll",this._boundScrollHandler)):this._boundScrollHandler&&(p.removeEventListener("scroll",this._boundScrollHandler),this._boundScrollHandler=null)},
toggleScrollListener:function(S){this._shouldHaveListener=S;this._toggleScrollListener(S,this.scrollTarget)}};_.jp({is:"iron-selector",_template:null,behaviors:[xsI]});var rH={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(S){if(S.timing)for(var p in S.timing)this.animationTiming[p]=S.timing[p];return this.animationTiming},
setPrefixedProperty:function(S,p,U){for(var Y={transform:["webkitTransform"],transformOrigin:["mozTransformOrigin","webkitTransformOrigin"]}[p],L,I=0;L=Y[I];I++)S.style[L]=U;S.style[p]=U},
complete:function(){}};_.jp({is:"fade-in-animation",_template:null,behaviors:[rH],configure:function(S){return this._effect=new KeyframeEffect(S.node,[{opacity:"0"},{opacity:"1"}],this.timingFromConfig(S))}});_.jp({is:"fade-out-animation",_template:null,behaviors:[rH],configure:function(S){return this._effect=new KeyframeEffect(S.node,[{opacity:"1"},{opacity:"0"}],this.timingFromConfig(S))}});var i3w=[{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(S,p){for(var U in p)S[U]=p[U]},
_cloneConfig:function(S){var p={isClone:!0};this._copyProperties(p,S);return p},
_getAnimationConfigRecursive:function(S,p,U){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 Y=S?this.animationConfig[S]:this.animationConfig;Array.isArray(Y)||(Y=[Y]);if(Y)for(var L,I=0;L=Y[I];I++)if(L.animatable)L.animatable._getAnimationConfigRecursive(L.type||S,p,U);else if(L.id){var V=p[L.id];
V?(V.isClone||(p[L.id]=this._cloneConfig(V),V=p[L.id]),this._copyProperties(V,L)):p[L.id]=L}else U.push(L)}},
getAnimationConfig:function(S){var p={},U=[];this._getAnimationConfigRecursive(S,p,U);for(var Y in p)U.push(p[Y]);return U}},
{_configureAnimations:function(S){var p=[],U=[];if(S.length>0)for(var Y,L=0;Y=S[L];L++){var I=document.createElement(Y.name);if(I.isNeonAnimation){var V=null;I.configure||(I.configure=function(){return null});
V=I.configure(Y);U.push({result:V,config:Y})}else console.warn(this.is+":",Y.name,"not found!")}for(S=0;S<U.length;S++){V=U[S].result;Y=U[S].config;try{typeof V.cancel!="function"&&(V=document.timeline.play(V))}catch(W){V=null,console.warn("Couldnt play","(",Y.name,").",W)}V&&p.push({neonAnimation:I,config:Y,animation:V})}return p},
_shouldComplete:function(S){for(var p=!0,U=0;U<S.length;U++)if(S[U].animation.playState!="finished"){p=!1;break}return p},
_complete:function(S){for(var p=0;p<S.length;p++)S[p].neonAnimation.complete(S[p].config);for(p=0;p<S.length;p++)S[p].animation.cancel()},
playAnimation:function(S,p){var U=this.getAnimationConfig(S);if(U){this._active=this._active||{};this._active[S]&&(this._complete(this._active[S]),delete this._active[S]);var Y=this._configureAnimations(U);if(Y.length==0)this.fire("neon-animation-finish",p,{bubbles:!1});else for(this._active[S]=Y,U=0;U<Y.length;U++)Y[U].animation.onfinish=function(){this._shouldComplete(Y)&&(this._complete(Y),delete this._active[S],this.fire("neon-animation-finish",p,{bubbles:!1}))}.bind(this)}},
cancelAnimation:function(){for(var S in this._active){var p=this._active[S],U;for(U in p)p[U].animation&&p[U].animation.cancel&&p[U].animation.cancel()}this._active={}}}];var VI=function(S,p){S=Error.call(this,S);this.message=S.message;"stack"in S&&(this.stack=S.stack);this.arg=p;this.name=this.constructor.name;this.constructor=VI;this.__proto__=VI.prototype};
_.r(VI,Error);var N9P=Ew(function(S){var p=function(){return S.apply(this,arguments)||this};
_.r(p,S);p.prototype._marshalArgs=function(U,Y,L){Y=S.prototype._marshalArgs.call(this,U,Y,L);if(this._legacyUndefinedCheck&&Y.length>1)for(L=0;L<Y.length;L++)if(Y[L]===void 0||U[L].wildcard&&Y[L].base===void 0)throw U=U[L].name,new VI("Argument '"+U+"' is undefined.",U);return Y};
p.prototype._addPropertyEffect=function(U,Y,L){return S.prototype._addPropertyEffect.call(this,U,Y,L5q(L,L&&L.info&&L.info.methodName))};
p._addTemplatePropertyEffect=function(U,Y,L){return S._addTemplatePropertyEffect.call(this,U,Y,L5q(L))};
return p}),B9j=_.jp.Class;
_.jp.Class=function(S,p){return B9j(S,function(U){return p?p(N9P(U)):N9P(U)})};
var q2P=Ew(function(S){var p=N9P(S);S=function(){return p.apply(this,arguments)||this};
_.r(S,p);_.$u.Object.defineProperties(S.prototype,{_legacyUndefinedCheck:{configurable:!0,enumerable:!0,get:function(){return this._methodHost&&this._methodHost._legacyUndefinedCheck}}});
return S}),AFw=uN.mixin;
uN.mixin=AFw?function(S){return q2P(AFw(S))}:q2P;
console.info("LegacyDataMixin will be applied to all legacy elements.\nSet `_legacyUndefinedCheck: true` on element class to enable.");_.GC=_.Qm.IronButtonState;var qQw=sR;/*

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

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

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 gH,MMm,Itt;gH=Element.prototype;MMm=gH.matches||gH.matchesSelector||gH.mozMatchesSelector||gH.msMatchesSelector||gH.oMatchesSelector||gH.webkitMatchesSelector;Itt=function(){};
_.VMt=function(S){var p=dFH,U=[];return p._collectTabbableNodes(S,U)?p._sortByTabIndex(U):U};
_.M=Itt.prototype;_.M._normalizedTabIndex=function(S){return(MMm.call(S,"input, select, textarea, button, object")?MMm.call(S,":not([disabled])"):MMm.call(S,"a[href], area[href], iframe, [tabindex], [contentEditable]"))?(S=S.getAttribute("tabindex")||0,Number(S)):-1};
_.M._collectTabbableNodes=function(S,p){if(S.nodeType!==Node.ELEMENT_NODE||!this._isVisible(S))return!1;var U=this._normalizedTabIndex(S),Y=U>0;U>=0&&p.push(S);if(S.localName==="content"||S.localName==="slot")U=_.K9(S).getDistributedNodes();else{var L;U=((L=_.K9(S).shadowRoot)!=null?L:_.K9(S.root||S)).children}for(S=0;S<U.length;S++)Y=this._collectTabbableNodes(U[S],p)||Y;return Y};
_.M._isVisible=function(S){var p=S.style;return p.visibility!=="hidden"&&p.display!=="none"?(p=window.getComputedStyle(S),p.visibility!=="hidden"&&p.display!=="none"):!1};
_.M._sortByTabIndex=function(S){var p=S.length;if(p<2)return S;var U=Math.ceil(p/2);p=this._sortByTabIndex(S.slice(0,U));S=this._sortByTabIndex(S.slice(U));return this._mergeSortByTabIndex(p,S)};
_.M._mergeSortByTabIndex=function(S,p){for(var U=[];S.length>0&&p.length>0;)this._hasLowerTabOrder(S[0],p[0])?U.push(p.shift()):U.push(S.shift());return U.concat(S,p)};
_.M._hasLowerTabOrder=function(S,p){S=Math.max(S.tabIndex,0);p=Math.max(p.tabIndex,0);return S===0||p===0?p>S:S>p};
var dFH=new Itt;var TYq;var Whw;_.jp({_template:function(){if(Whw!==void 0)return Whw;var S=document.createElement("template");_.h(S,'\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');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);var p=S.content,U=p.insertBefore;TYq===void 0&&(TYq=document.createElement("template"));var Y=TYq;U.call(p,Y.content.cloneNode(!0),S.content.firstChild);return Whw=S},
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&&_.K9(document.body).appendChild(this)},
open:function(){this.opened=!0},
close:function(){this.opened=!1},
complete:function(){this.opened||this.parentNode!==document.body||_.K9(this.parentNode).removeChild(this)},
_onTransitionend:function(S){S&&S.target===this&&this.complete()},
_openedChanged:function(S){S?this.prepare():(S=window.getComputedStyle(this),S.transitionDuration!=="0s"&&S.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 us=function(){this._overlays=[];this._minimumZ=101;this._backdropElement=null;RH(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)};
us.prototype._bringOverlayAtIndexToFront=function(S){var p=this._overlays[S];if(p){var U=this._overlays.length-1,Y=this._overlays[U];Y&&this._shouldBeBehindOverlay(p,Y)&&U--;if(!(S>=U)){Y=Math.max(this._getZ(_.Osq(this)),this._minimumZ);for(this._getZ(p)<=Y&&this._applyOverlayZ(p,Y);S<U;)this._overlays[S]=this._overlays[S+1],S++;this._overlays[U]=p}}};
us.prototype.addOverlay=function(S){var p=this._overlays.indexOf(S);if(p>=0)this._bringOverlayAtIndexToFront(p);else{p=this._overlays.length;var U=this._overlays[p-1],Y=Math.max(this._getZ(U),this._minimumZ),L=this._getZ(S);U&&this._shouldBeBehindOverlay(S,U)&&(this._applyOverlayZ(U,Y),p--,Y=Math.max(this._getZ(this._overlays[p-1]),this._minimumZ));L<=Y&&this._applyOverlayZ(S,Y);this._overlays.splice(p,0,S)}this.trackBackdrop()};
us.prototype.removeOverlay=function(S){S=this._overlays.indexOf(S);S!==-1&&(this._overlays.splice(S,1),this.trackBackdrop())};
_.Osq=function(S){return S._overlays[S._overlays.length-1]};
_.M=us.prototype;_.M.trackBackdrop=function(){var S=this._overlayWithBackdrop();if(S||this._backdropElement)this.backdropElement.style.zIndex=this._getZ(S)-1,this.backdropElement.opened=!!S,this.backdropElement.prepare()};
_.M._overlayWithBackdrop=function(){for(var S=this._overlays.length-1;S>=0;S--)if(this._overlays[S].withBackdrop)return this._overlays[S]};
_.M._getZ=function(S){var p=this._minimumZ;if(S){var U,Y,L=Number(((U=S.hostElement)!=null?U:S).style.zIndex||window.getComputedStyle((Y=S.hostElement)!=null?Y:S).zIndex);L===L&&(p=L)}return p};
_.M._setZ=function(S,p){var U;((U=S.hostElement)!=null?U:S).style.zIndex=p};
_.M._applyOverlayZ=function(S,p){this._setZ(S,p+2)};
_.M._overlayInPath=function(S){S=S||[];for(var p=0;p<S.length;p++){var U=void 0;if(((U=S[p].polymerController)!=null?U:S[p])._manager===this)return S[p]}};
_.M._onCaptureClick=function(S){var p=this._overlays.length-1;if(p!==-1)for(var U=_.K9(S).path,Y,L;(Y=this._overlays[p])&&this._overlayInPath(U)!==((L=Y.hostElement)!=null?L:Y);)if(Y._onCaptureClick(S),Y.allowClickThrough)p--;else break};
_.M._onCaptureFocus=function(S){var p=_.Osq(this);p&&p._onCaptureFocus(S)};
_.M._onCaptureKeyDown=function(S){var p=_.Osq(this);p&&(_.H$.keyboardEventMatchesKeys(S,"esc")?p._onCaptureEsc(S):_.H$.keyboardEventMatchesKeys(S,"tab")&&p._onCaptureTab(S))};
_.M._shouldBeBehindOverlay=function(S,p){return!S.alwaysOnTop&&p.alwaysOnTop&&!p.contains(S)};
_.$u.Object.defineProperties(us.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 S=document.activeElement;S&&S instanceof Element!==!1||(S=document.body);for(;S.root&&_.K9(S.root).activeElement;)S=_.K9(S.root).activeElement;return S}}});
_.wH=new us;var XDG=0,P1e=0,Z0X=null,s3r=[],bL=["wheel","mousewheel","DOMMouseScroll"],eXk;_.y("web_no_lock_on_touchstart_killswitch")&&(bL.push("touchstart"),bL.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;_.ls={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:_.wH},_focusedChild:{type:Object}},listeners:{"iron-resize":"_onIronResize"},observers:["__updateScrollObservers(isAttached, opened, scrollAction)"],get backdropElement(){return this._manager.backdropElement},get _focusNode(){var S;return this._focusedChild||_.K9((S=this.hostElement)!=null?S:this).querySelector("[autofocus]")||this.hostElement||this},get _focusableNodes(){var S;return _.VMt((S=this.hostElement)!=null?S: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 S;this._observer=_.K9((S=this.hostElement)!=null?S:this).observeNodes(this._onNodesChange)},
detached:function(){if(this._observer){var S;_.K9((S=this.hostElement)!=null?S:this).unobserveNodes(this._observer)}this._observer=null;for(var p in this.__rafs)this.__rafs[p]!==null&&cancelAnimationFrame(this.__rafs[p]);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(S){this.fire("iron-overlay-canceled",S,{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 S;((S=this.hostElement)!=null?S:this).style.outline="none";var p;((p=this.hostElement)!=null?p:this).style.display="none"}},
_openedChanged:function(S){if(S){var p;((p=this.hostElement)!=null?p:this).removeAttribute("aria-hidden")}else{var U;((U=this.hostElement)!=null?U: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 S;if(this.withBackdrop&&!((S=this.hostElement)!=null?S:this).hasAttribute("tabindex")){var p;((p=this.hostElement)!=null?p:this).setAttribute("tabindex","-1");this.__shouldRemoveTabIndex=!0}else if(this.__shouldRemoveTabIndex){var U;((U=this.hostElement)!=null?U: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 S;((S=this.hostElement)!=null?S:this).style.display="none";var p;((p=this.hostElement)!=null?p:this).style.zIndex="";this.notifyResize();this.__isAnimating=!1;this.fire("iron-overlay-closed",this.closingReason)},
_preparePositioning:function(){var S,p;((S=this.hostElement)!=null?S:this).style.transition=((p=this.hostElement)!=null?p:this).style.webkitTransition="none";var U,Y;((U=this.hostElement)!=null?U:this).style.transform=((Y=this.hostElement)!=null?Y:this).style.webkitTransform="none";var L;((L=this.hostElement)!=null?L:this).style.display=""},
_finishPositioning:function(){var S;((S=this.hostElement)!=null?S:this).style.display="none";this.scrollTop=this.scrollTop;var p,U;((p=this.hostElement)!=null?p:this).style.transition=((U=this.hostElement)!=null?U:this).style.webkitTransition="";var Y,L;((Y=this.hostElement)!=null?Y:this).style.transform=((L=this.hostElement)!=null?L:this).style.webkitTransform="";var I;((I=this.hostElement)!=null?I:this).style.display="";this.scrollTop=this.scrollTop},
_applyFocus:function(){if(this.opened)this.noAutoFocus||this._focusNode.focus();else{if(this.restoreFocusOnClose&&this.__restoreFocusNode){var S=this._manager.deepActiveElement,p;if(!(p=S===document.body))a:{for(;S;S=S.assignedSlot||S.parentNode||S.host)if(S===this){p=!0;break a}p=!1}p&&this.__restoreFocusNode.focus()}this.__restoreFocusNode=null;this._focusNode.blur();this._focusedChild=null}},
_onCaptureClick:function(S){this.noCancelOnOutsideClick||this.cancel(S)},
_onCaptureFocus:function(S){if(this.withBackdrop){var p=_.K9(S).path;p.indexOf(this)===-1?(S.stopPropagation(),this._applyFocus()):this._focusedChild=p[0]}},
_onCaptureEsc:function(S){this.noCancelOnEscKey||this.cancel(S)},
_onCaptureTab:function(S){if(this.withBackdrop){this.__ensureFirstLastFocusables();var p=S.shiftKey,U=p?this.__firstFocusableNode:this.__lastFocusableNode;p=p?this.__lastFocusableNode:this.__firstFocusableNode;if(U===p)U=!0;else{var Y=this._manager.deepActiveElement;U=Y===U||Y===this}U&&(S.preventDefault(),this._focusedChild=p,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 S=this._focusableNodes;this.__firstFocusableNode=S[0];this.__lastFocusableNode=S[S.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(S,p){var U=this.__rafs;U[S]!==null&&cancelAnimationFrame(U[S]);U[S]=requestAnimationFrame(function(){U[S]=null;p.call(this)}.bind(this))},
__updateScrollObservers:function(S,p,U){S&&p&&this.__isValidScrollAction(U)?(U==="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),eXk=_._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()):(S=_._lockingElements$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager.indexOf(this),S!==-1&&(_._lockingElements$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager.splice(S,1),eXk=_._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(eF)for(var S=this;S;)S.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&S.host&&this.__rootNodes.push(S),S=S.host||S.assignedSlot||S.parentNode;this.__rootNodes.push(document)}this.__rootNodes.forEach(function(p){p.addEventListener("scroll",this.__onCaptureScroll,{capture:!0,passive:!0})},this)},
__removeScrollListeners:function(){this.__rootNodes&&this.__rootNodes.forEach(function(S){S.removeEventListener("scroll",this.__onCaptureScroll,{capture:!0,passive:!0})},this);
this.isAttached||(this.__rootNodes=null)},
__isValidScrollAction:function(S){return S==="lock"||S==="refit"||S==="cancel"},
__onCaptureScroll:function(S){if(!(this.__isAnimating||_.K9(S).path.indexOf(this)>=0))switch(this.scrollAction){case "lock":this.__restoreScrollPosition();break;case "refit":this.__deraf("refit",this.refit);break;case "cancel":this.cancel(S)}},
__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)}};
_.aU=[Lhc,_.ji,_.ls];_.jp({_template:function(){if(UFI!==void 0)return UFI;var S=document.createElement("template");_.h(S,'\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');
S.content.insertBefore(_.t().content.cloneNode(!0),S.content.firstChild);var p=S.content,U=p.insertBefore;p7m===void 0&&(p7m=document.createElement("template"));var Y=p7m;U.call(p,Y.content.cloneNode(!0),S.content.firstChild);return UFI=S},
is:"tp-yt-iron-dropdown",behaviors:[_.DE,_.H$,_.aU,i3w],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 S=_.K9(this.$.content).getDistributedNodes(),p=0,U=S.length;p<U;p++)if(S[p].nodeType===Node.ELEMENT_NODE)return S[p]},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(),_.ls._openedChanged.apply(this,arguments))},
_renderOpened:function(){!this.noAnimations&&this.animationConfig.open?(this.$.contentWrapper.classList.add("animating"),this.playAnimation("open")):_.ls._renderOpened.apply(this,arguments)},
_renderClosed:function(){!this.noAnimations&&this.animationConfig.close?(this.$.contentWrapper.classList.add("animating"),this.playAnimation("close")):_.ls._renderClosed.apply(this,arguments)},
_onNeonAnimationFinish:function(){this.$.contentWrapper.classList.remove("animating");this.opened?this._finishRenderOpened():this._finishRenderClosed()},
_updateAnimationConfig:function(){for(var S=this.containedElement,p=[].concat(this.openAnimationConfig||[],this.closeAnimationConfig||[]),U=0;U<p.length;U++)p[U].node=S;this.animationConfig={open:this.openAnimationConfig,close:this.closeAnimationConfig}},
_updateOverlayPosition:function(){this.isAttached&&this.notifyResize()},
_allowOutsideScrollChanged:function(S){this._readied&&(S?this.scrollAction&&this.scrollAction!=="lock"||(this.scrollAction="refit"):this.scrollAction="lock")},
_applyFocus:function(){var S=this.focusTarget||this.containedElement;S&&this.opened&&!this.noAutoFocus?S.focus():_.ls._applyFocus.apply(this,arguments)}});var kwl;var HsI;/*

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 DFt=new _.Jh({type:"iconset"});
_.jp({_template:function(){if(HsI!==void 0)return HsI;var S=document.createElement("template");_.h(S,"\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");S.content.insertBefore(_.t().content.cloneNode(!0),S.content.firstChild);var p=S.content,U=p.insertBefore;kwl===void 0&&(kwl=document.createElement("template"));
var Y=kwl;U.call(p,Y.content.cloneNode(!0),S.content.firstChild);return HsI=S},
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(S){S=(S||"").split(":");this._iconName=S.pop();this._iconsetName=S.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&&_.K9(this.root).removeChild(this._img),this._iconName==="")this._iconset&&this._iconset.removeIcon(this);else{if(this._iconsetName)if(this._iconset=DFt.byKey(this._iconsetName)){var S=this._iconset.applyIcon(this,this._iconName,this.theme);S&&S.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,_.K9(this.root).appendChild(this._img)}});var zoQ;var QyQ;_.jp({_template:function(){if(QyQ!==void 0)return QyQ;var S=document.createElement("template");_.h(S,'\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');S.content.insertBefore(_.t().content.cloneNode(!0),S.content.firstChild);
var p=S.content,U=p.insertBefore;zoQ===void 0&&(zoQ=document.createElement("template"));var Y=zoQ;U.call(p,Y.content.cloneNode(!0),S.content.firstChild);return QyQ=S},
is:"tp-yt-iron-input",behaviors:[_.KL],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(){_.ei.requestAvailability();this._previousValidInput="";this._patternAlreadyChecked=!1},
attached:function(){this._observer=_.K9(this).observeNodes(function(){this._initSlottedInput()}.bind(this))},
detached:function(){this._observer&&(_.K9(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 S=new RegExp(this.allowedPattern);else switch(this.inputElement.type){case "number":S=/[0-9.,e-]/}return S},_bindValueChanged:function(S,p){p&&(S===void 0?p.value=null:S!==p.value&&(this.inputElement.value=S),this.autoValidate&&this.validate(),this.fire("bind-value-changed",{value:S}))},
_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(S){var p=S.keyCode==19||S.keyCode==20||S.keyCode==45||S.keyCode==46||S.keyCode==144||S.keyCode==145||S.keyCode>32&&S.keyCode<41||S.keyCode>111&&S.keyCode<124;return!(S.keyCode==8||S.keyCode==9||S.keyCode==13||S.keyCode==27)&&!(S.charCode==0&&p)},
_onKeypress:function(S){if(this.allowedPattern||this.inputElement.type==="number"){var p=this._patternRegExp;if(p&&!(S.metaKey||S.ctrlKey||S.altKey)){this._patternAlreadyChecked=!0;var U=String.fromCharCode(S.charCode);this._isPrintable(S)&&!p.test(U)&&(S.preventDefault(),this._announceInvalidCharacter("Invalid character "+U+" not entered."))}}},
_checkPatternValidity:function(){var S=this._patternRegExp;if(!S)return!0;for(var p=0;p<this.inputElement.value.length;p++)if(!S.test(this.inputElement.value[p]))return!1;return!0},
validate:function(){if(!this.inputElement)return this.invalid=!1,!0;var S=this.inputElement.checkValidity();S&&(this.required&&this.bindValue===""?S=!1:this.hasValidator()&&(S=_.KL.validate.call(this,this.bindValue)));this.invalid=!S;this.fire("iron-input-validate");return S},
_announceInvalidCharacter:function(S){this.fire("iron-announce",{text:S})},
_computeValue:function(S){return S}});var nLq;var J7t;var y7q=navigator.userAgent.match(/iP(?:hone|ad;(?: U;)? CPU) OS (\d+)/),Khm=y7q&&y7q[1]>=8;
_.jp({_template:function(){if(J7t!==void 0)return J7t;var S=document.createElement("template");_.h(S,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-iron-list--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_iron_list.tp.yt.iron.list.css.js--\x3e<array-selector id="selector" items="{{items}}" selected="{{selectedItems}}" selected-item="{{selectedItem}}" class="style-scope tp-yt-iron-list"></array-selector>\n\n<div id="items" class="style-scope tp-yt-iron-list">\n  <slot class="style-scope tp-yt-iron-list"></slot>\n</div>\n');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);var p=S.content,U=p.insertBefore;nLq===void 0&&(nLq=document.createElement("template"));var Y=nLq;U.call(p,Y.content.cloneNode(!0),S.content.firstChild);return J7t=S},
is:"tp-yt-iron-list",properties:{items:{type:Array},as:{type:String,value:"item"},indexAs:{type:String,value:"index"},selectedAs:{type:String,value:"selected"},grid:{type:Boolean,value:!1,reflectToAttribute:!0,observer:"_gridChanged"},selectionEnabled:{type:Boolean,value:!1},selectedItem:{type:Object,notify:!0},selectedItems:{type:Object,notify:!0},multiSelection:{type:Boolean,value:!1},scrollOffset:{type:Number,value:0}},observers:["_itemsChanged(items.*)","_selectionEnabledChanged(selectionEnabled)",
"_multiSelectionChanged(multiSelection)","_setOverflow(scrollTarget, scrollOffset)"],behaviors:[AOd,_.ji,_.$sP,u$m],_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 _.K9(_.K9(this._userTemplate).parentNode)},get _maxScrollTop(){return this._estScrollHeight-
this._viewportHeight+this._scrollOffset},get _maxVirtualStart(){var S=this._convertIndexToCompleteRow(this._virtualCount);return Math.max(0,S-this._physicalCount)},set _virtualStart(S){S=this._clamp(S,0,this._maxVirtualStart);this.grid&&(S-=S%this._itemsPerRow);this._virtualStartVal=S},get _virtualStart(){return this._virtualStartVal||0},set _physicalStart(S){S%=this._physicalCount;S<0&&(S=this._physicalCount+S);this.grid&&(S-=S%this._itemsPerRow);this._physicalStartVal=S},get _physicalStart(){return this._physicalStartVal||
0},get _physicalEnd(){return(this._physicalStart+this._physicalCount-1)%this._physicalCount},set _physicalCount(S){this._physicalCountVal=S},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 S=this._firstVisibleIndexVal;if(S==null){var p=this._physicalTop+this._scrollOffset;this._firstVisibleIndexVal=
S=this._iterateItems(function(U,Y){p+=this._getPhysicalSizeIncrement(U);if(p>this._scrollPosition)return this.grid?Y-Y%this._itemsPerRow:Y;if(this.grid&&this._virtualCount-1===Y)return Y-Y%this._itemsPerRow})||0}return S},
get lastVisibleIndex(){var S=this._lastVisibleIndexVal;if(S==null){if(this.grid)S=Math.min(this._virtualCount,this.firstVisibleIndex+this._estRowsInView*this._itemsPerRow-1);else{var p=this._physicalTop+this._scrollOffset;this._iterateItems(function(U,Y){p<this._scrollBottom&&(S=Y);p+=this._getPhysicalSizeIncrement(U)})}this._lastVisibleIndexVal=S}return S},
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,_.bT);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(S){this.style.webkitOverflowScrolling=S===this?"touch":"";this.style.overflowY=S===this?"auto":"";this._firstVisibleIndexVal=this._lastVisibleIndexVal=null;this._debounce("_render",this._render,_.bT)},
updateViewportBoundaries:function(){var S=window.getComputedStyle(this);this._scrollerPaddingTop=this.scrollTarget===this?0:parseInt(S["padding-top"],10);this._isRTL=S.direction==="rtl";this._viewportWidth=this.$.items.offsetWidth;this._viewportHeight=this._scrollTargetHeight;this.grid&&this._updateGridMetrics()},
_scrollHandler:function(){var S=Math.max(0,Math.min(this._maxScrollTop,this._scrollTop)),p=S-this._scrollPosition,U=p>=0;this._scrollPosition=S;this._lastVisibleIndexVal=this._firstVisibleIndexVal=null;Math.abs(p)>this._physicalSize&&this._physicalSize>0?(p-=this._scrollOffset,U=Math.round(p/this._physicalAverage)*this._itemsPerRow,this._virtualStart+=U,this._physicalStart+=U,this._physicalTop=Math.min(Math.floor(this._virtualStart/this._itemsPerRow)*this._physicalAverage,this._scrollPosition),this._update()):
this._physicalCount>0&&(S=this._getReusables(U),U?(this._physicalTop=S.physicalTop,this._virtualStart+=S.indexes.length,this._physicalStart+=S.indexes.length):(this._virtualStart=this._virtualStart-S.indexes.length,this._physicalStart=this._physicalStart-S.indexes.length),this._update(S.indexes,U?null:S.indexes),this._debounce("_increasePoolIfNeeded",this._increasePoolIfNeeded.bind(this,0),Pr))},
_getReusables:function(S){var p=[],U=this._hiddenContentSize*this._ratio,Y=this._virtualStart,L=this._virtualEnd,I=this._physicalCount,V=this._physicalTop+this._scrollOffset;var W=this._physicalBottom+this._scrollOffset;var O=this._scrollPosition,D=this._scrollBottom;if(S){var z=this._physicalStart;W=O-V}else z=this._physicalEnd,W-=D;for(;;){var Q=this._getPhysicalSizeIncrement(z);W-=Q;if(p.length>=I||W<=U)break;if(S){if(L+p.length+1>=this._virtualCount)break;if(V+Q>=O-this._scrollOffset)break;p.push(z);
V+=Q;z=(z+1)%I}else{if(Y-p.length<=0)break;if(V+this._physicalSize-Q<=D)break;p.push(z);V-=Q;z=z===0?I-1:z-1}}return{indexes:p,physicalTop:V-this._scrollOffset}},
_update:function(S,p){if(!(S&&S.length===0||this._physicalCount===0)){this._manageFocus();this._assignModels(S);this._updateMetrics(S);if(p)for(;p.length;)S=p.pop(),this._physicalTop-=this._getPhysicalSizeIncrement(S);this._positionItems();this._updateScrollerSize()}},
_createPool:function(S){this._ensureTemplatized();var p,U=Array(S);for(p=0;p<S;p++){var Y=this.stamp(null);U[p]=Y.root.querySelector("*");this._itemsParent.appendChild(Y.root)}return U},
_isClientFull:function(){return this._scrollBottom!=0&&this._physicalBottom-1>=this._scrollBottom&&this._physicalTop<=this._scrollPosition},
_increasePoolIfNeeded:function(S){S=this._clamp(this._physicalCount+S,3,this._virtualCount-this._virtualStart);S=this._convertIndexToCompleteRow(S);if(this.grid){var p=S%this._itemsPerRow;p&&S-p<=this._physicalCount&&(S+=this._itemsPerRow);S-=p}S-=this._physicalCount;p=Math.round(this._physicalCount*.5);if(!(S<0)){if(S>0){p=window.performance.now();[].push.apply(this._physicalItems,this._createPool(S));for(var U=0;U<S;U++)this._physicalSizes.push(0);this._physicalCount+=S;this._physicalStart>this._physicalEnd&&
this._isIndexRendered(this._focusedVirtualIndex)&&this._getPhysicalIndex(this._focusedVirtualIndex)<this._physicalEnd&&(this._physicalStart+=S);this._update();this._templateCost=(window.performance.now()-p)/S;p=Math.round(this._physicalCount*.5)}this._virtualEnd>=this._virtualCount-1||p===0||(this._isClientFull()?this._physicalSize<this._optPhysicalSize&&this._debounce("_increasePoolIfNeeded",this._increasePoolIfNeeded.bind(this,this._clamp(Math.round(50/this._templateCost),1,p)),QHI):this._debounce("_increasePoolIfNeeded",
this._increasePoolIfNeeded.bind(this,p),Pr))}},
_render:function(){if(this.isAttached&&this._isVisible)if(this._physicalCount!==0){var S=this._getReusables(!0);this._physicalTop=S.physicalTop;this._virtualStart+=S.indexes.length;this._physicalStart+=S.indexes.length;this._update(S.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 S={__key__:!0};S[this.as]=!0;S[this.indexAs]=!0;S[this.selectedAs]=!0;S.tabIndex=!0;this._instanceProps=S;this.templatize(this._userTemplate,this.mutableData)}},
_gridChanged:function(S,p){typeof p!=="undefined"&&(this.notifyResize(),_.LC(),S&&this._updateGridMetrics())},
_itemsChanged:function(S){if(S.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,
_.bT);else if(S.path==="items.splices"){this._adjustVirtualIndex(S.value.indexSplices);this._virtualCount=this.items?this.items.length:0;if(S.value.indexSplices.some(function(U){return U.addedCount>0||U.removed.length>0})){var p=this._getActiveElement();
this.contains(p)&&p.blur()}S=S.value.indexSplices.some(function(U){return U.index+U.addedCount>=this._virtualStart&&U.index<=this._virtualEnd},this);
this._isClientFull()&&!S||this._debounce("_render",this._render,_.bT)}else S.path!=="items.length"&&this._forwardItemPath(S.path,S.value)},
_forwardItemPath:function(S,p){S=S.slice(6);var U=S.indexOf(".");U===-1&&(U=S.length);var Y,L=this.modelForElement(this._offscreenFocusedItem),I=parseInt(S.substring(0,U),10);if(Y=this._isIndexRendered(I)){var V=this._getPhysicalIndex(I);var W=this.modelForElement(this._physicalItems[V])}else L&&(W=L);W&&W[this.indexAs]===I&&(S=S.substring(U+1),S=this.as+(S?"."+S:""),W._setPendingPropertyOrPath(S,p,!1,!0),W._flushProperties&&W._flushProperties(),Y&&(this._updateMetrics([V]),this._positionItems(),
this._updateScrollerSize()))},
_adjustVirtualIndex:function(S){S.forEach(function(p){p.removed.forEach(this._removeItem,this);p.index<this._virtualStart&&(p=Math.max(p.addedCount-p.removed.length,p.index-this._virtualStart),this._virtualStart+=p,this._focusedVirtualIndex>=0&&(this._focusedVirtualIndex+=p))},this)},
_removeItem:function(S){this.$.selector.deselect(S);this._focusedItem&&this.modelForElement(this._focusedItem)[this.as]===S&&this._removeFocusedItem()},
_iterateItems:function(S,p){var U,Y;if(arguments.length===2&&p)for(Y=0;Y<p.length;Y++){var L=p[Y];var I=this._computeVidx(L);if((U=S.call(this,L,I))!=null)return U}else{L=this._physicalStart;for(I=this._virtualStart;L<this._physicalCount;L++,I++)if((U=S.call(this,L,I))!=null)return U;for(L=0;L<this._physicalStart;L++,I++)if((U=S.call(this,L,I))!=null)return U}},
_computeVidx:function(S){return S>=this._physicalStart?this._virtualStart+(S-this._physicalStart):this._virtualStart+(this._physicalCount-this._physicalStart)+S},
_assignModels:function(S){this._iterateItems(function(p,U){var Y=this._physicalItems[p],L=this.items&&this.items[U];if(L!=null){var I=this.modelForElement(Y);I.__key__=null;this._forwardProperty(I,this.as,L);this._forwardProperty(I,this.selectedAs,this.$.selector.isSelected(L));this._forwardProperty(I,this.indexAs,U);this._forwardProperty(I,"tabIndex",this._focusedVirtualIndex===U?0:-1);this._physicalIndexForKey[I.__key__]=p;I._flushProperties&&I._flushProperties(!0);Y.removeAttribute("hidden")}else Y.setAttribute("hidden",
"")},S)},
_updateMetrics:function(S){_.LC();var p=0,U=0,Y=this._physicalAverageCount,L=this._physicalAverage;this._iterateItems(function(I){U+=this._physicalSizes[I];this._physicalSizes[I]=this._physicalItems[I].offsetHeight;p+=this._physicalSizes[I];this._physicalAverageCount+=this._physicalSizes[I]?1:0},S);
this.grid?(this._updateGridMetrics(),this._physicalSize=Math.ceil(this._physicalCount/this._itemsPerRow)*this._rowHeight):(U=this._itemsPerRow===1?U:Math.ceil(this._physicalCount/this._itemsPerRow)*this._rowHeight,this._physicalSize=this._physicalSize+p-U,this._itemsPerRow=1);this._physicalAverageCount!==Y&&(this._physicalAverage=Math.round((L*Y+p)/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 S=this._physicalTop;if(this.grid){var p=(this._viewportWidth-this._itemsPerRow*this._itemWidth)/2;this._iterateItems(function(U,Y){var L=Math.floor(Y%this._itemsPerRow*this._itemWidth+p);this._isRTL&&(L*=-1);this.translate3d(L+"px",S+"px",0,this._physicalItems[U]);this._shouldRenderNextRow(Y)&&(S+=this._rowHeight)})}else this._iterateItems(function(U){this.translate3d(0,S+"px",0,this._physicalItems[U]);
S+=this._physicalSizes[U]})},
_getPhysicalSizeIncrement:function(S){return this.grid?this._computeVidx(S)%this._itemsPerRow!==this._itemsPerRow-1?0:this._rowHeight:this._physicalSizes[S]},
_shouldRenderNextRow:function(S){return S%this._itemsPerRow===this._itemsPerRow-1},
_adjustScrollPosition:function(){var S=this._virtualStart===0?this._physicalTop:Math.min(this._scrollPosition+this._physicalTop,0);if(S!==0){this._physicalTop=this._physicalTop-S;var p=this._scrollPosition;!Khm&&p>0&&this._resetScrollPosition(p-S)}},
_resetScrollPosition:function(S){this.scrollTarget&&S>=0&&(this._scrollPosition=this._scrollTop=S)},
_updateScrollerSize:function(S){this.grid?this._estScrollHeight=this._virtualRowCount*this._rowHeight:this._estScrollHeight=this._physicalBottom+Math.max(this._virtualCount-this._physicalCount-this._virtualStart,0)*this._physicalAverage;if((S=(S=(S=S||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(S){return this.scrollToIndex(this.items.indexOf(S))},
scrollToIndex:function(S){if(!(typeof S!=="number"||S<0||S>this.items.length-1)&&(_.LC(),this._physicalCount!==0)){S=this._clamp(S,0,this._virtualCount-1);if(!this._isIndexRendered(S)||S>=this._maxVirtualStart)this._virtualStart=this.grid?S-this._itemsPerRow*2:S-1;this._manageFocus();this._assignModels();this._updateMetrics();this._physicalTop=Math.floor(this._virtualStart/this._itemsPerRow)*this._physicalAverage;for(var p=this._physicalStart,U=this._virtualStart,Y=0,L=this._hiddenContentSize;U<S&&
Y<=L;)Y+=this._getPhysicalSizeIncrement(p),p=(p+1)%this._physicalCount,U++;this._updateScrollerSize(!0);this._positionItems();this._resetScrollPosition(this._physicalTop+this._scrollOffset+Y);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)},_.bT)},
selectItem:function(S){return this.selectIndex(this.items.indexOf(S))},
selectIndex:function(S){if(!(S<0||S>=this._virtualCount)){!this.multiSelection&&this.selectedItem&&this.clearSelection();if(this._isIndexRendered(S)){var p=this.modelForElement(this._physicalItems[this._getPhysicalIndex(S)]);p&&(p[this.selectedAs]=!0);this.updateSizeForIndex(S)}this.$.selector.selectIndex(S)}},
deselectItem:function(S){return this.deselectIndex(this.items.indexOf(S))},
deselectIndex:function(S){S<0||S>=this._virtualCount||(this._isIndexRendered(S)&&(this.modelForElement(this._physicalItems[this._getPhysicalIndex(S)])[this.selectedAs]=!1,this.updateSizeForIndex(S)),this.$.selector.deselectIndex(S))},
toggleSelectionForItem:function(S){return this.toggleSelectionForIndex(this.items.indexOf(S))},
toggleSelectionForIndex:function(S){(this.$.selector.isIndexSelected?this.$.selector.isIndexSelected(S):this.$.selector.isSelected(this.items[S]))?this.deselectIndex(S):this.selectIndex(S)},
clearSelection:function(){this._iterateItems(function(S){this.modelForElement(this._physicalItems[S])[this.selectedAs]=!1});
this.$.selector.clearSelection()},
_selectionEnabledChanged:function(S){(S?this.listen:this.unlisten).call(this,this,"tap","_selectionHandler")},
_selectionHandler:function(S){var p=this.modelForElement(S.target);if(p){var U=_.K9(S).path[0];S=this._getActiveElement();var Y=this._physicalItems[this._getPhysicalIndex(p[this.indexAs])];if(U.localName!=="input"&&U.localName!=="button"&&U.localName!=="select"){U=p.tabIndex;p.tabIndex=-100;var L=S?S.tabIndex:-1;p.tabIndex=U;S&&Y!==S&&Y.contains(S)&&L!==-100||this.toggleSelectionForItem(p[this.as])}}},
_multiSelectionChanged:function(S){this.clearSelection();this.$.selector.multi=S},
updateSizeForItem:function(S){return this.updateSizeForIndex(this.items.indexOf(S))},
updateSizeForIndex:function(S){if(!this._isIndexRendered(S))return null;this._updateMetrics([this._getPhysicalIndex(S)]);this._positionItems();return null},
_manageFocus:function(){var S=this._focusedVirtualIndex;S>=0&&S<this._virtualCount?this._isIndexRendered(S)?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(S){this._itemsPerRow=this._itemsPerRow||1;return this.grid?Math.ceil(S/this._itemsPerRow)*this._itemsPerRow:S},
_isIndexRendered:function(S){return S>=this._virtualStart&&S<=this._virtualEnd},
_isIndexVisible:function(S){return S>=this.firstVisibleIndex&&S<=this.lastVisibleIndex},
_getPhysicalIndex:function(S){return(this._physicalStart+(S-this._virtualStart))%this._physicalCount},
focusItem:function(S){this._focusPhysicalItem(S)},
_focusPhysicalItem:function(S){if(!(S<0||S>=this._virtualCount)){this._restoreFocusedItem();this._isIndexRendered(S)||this.scrollToIndex(S);var p=this._physicalItems[this._getPhysicalIndex(S)],U=this.modelForElement(p),Y;U.tabIndex=-100;p.tabIndex===-100&&(Y=p);Y||(Y=_.K9(p).querySelector('[tabindex="-100"]'));U.tabIndex=0;this._focusedVirtualIndex=S;Y&&Y.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 S=this._focusedPhysicalIndex;if(!(this._offscreenFocusedItem||this._focusedVirtualIndex<0)){if(!this._focusBackfillItem){var p=this.stamp(null);this._focusBackfillItem=p.root.querySelector("*");this._itemsParent.appendChild(p.root)}this._offscreenFocusedItem=this._physicalItems[S];this.modelForElement(this._offscreenFocusedItem).tabIndex=0;this._physicalItems[S]=this._focusBackfillItem;this._focusedPhysicalIndex=S;this.translate3d(0,"-10000px",0,this._offscreenFocusedItem)}},
_restoreFocusedItem:function(){if(this._offscreenFocusedItem&&!(this._focusedVirtualIndex<0)){this._assignModels();var S=this._focusedPhysicalIndex=this._getPhysicalIndex(this._focusedVirtualIndex),p=this._physicalItems[S];if(p){var U=this.modelForElement(p),Y=this.modelForElement(this._offscreenFocusedItem);U[this.as]===Y[this.as]?(this._focusBackfillItem=p,U.tabIndex=-1,this._physicalItems[S]=this._offscreenFocusedItem,this.translate3d(0,"-10000px",0,this._focusBackfillItem)):(this._removeFocusedItem(),
this._focusBackfillItem=null);this._offscreenFocusedItem=null}}},
_didFocus:function(S){S=this.modelForElement(S.target);var p=this.modelForElement(this._focusedItem),U=this._offscreenFocusedItem!==null,Y=this._focusedVirtualIndex;S&&(p===S?this._isIndexVisible(Y)||this.scrollToIndex(Y):(this._restoreFocusedItem(),p&&(p.tabIndex=-1),S.tabIndex=0,this._focusedVirtualIndex=Y=S[this.indexAs],this._focusedPhysicalIndex=this._getPhysicalIndex(Y),this._focusedItem=this._physicalItems[this._focusedPhysicalIndex],U&&!this._offscreenFocusedItem&&this._update()))},
_keydownHandler:function(S){switch(S.keyCode){case 40:this._focusedVirtualIndex<this._virtualCount-1&&S.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&&S.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(S)}},
_clamp:function(S,p,U){return Math.min(U,Math.max(p,S))},
_debounce:function(S,p,U){this._debouncers=this._debouncers||{};this._debouncers[S]=_.c1(this._debouncers[S],U,p.bind(this));_.Sd(this._debouncers[S])},
_forwardProperty:function(S,p,U){S._setPendingProperty(p,U)},
_forwardHostPropV2:function(S,p){(this._physicalItems||[]).concat([this._offscreenFocusedItem,this._focusBackfillItem]).forEach(function(U){U&&this.modelForElement(U).forwardHostProp(S,p)},this)},
_notifyInstancePropV2:function(S,p,U){CZE(this.as,p)&&(S=S[this.indexAs],p==this.as&&(this.items[S]=U),this.notifyPath(TT(this.as,"items."+S,p),U))},
_getStampedChildren:function(){return this._physicalItems},
_forwardInstancePath:function(S,p,U){p.indexOf(this.as+".")===0&&this.notifyPath("items."+S.__key__+"."+p.slice(this.as.length+1),U)},
_forwardParentPath:function(S,p){(this._physicalItems||[]).concat([this._offscreenFocusedItem,this._focusBackfillItem]).forEach(function(U){U&&this.modelForElement(U).notifyPath(S,p)},this)},
_forwardParentProp:function(S,p){(this._physicalItems||[]).concat([this._offscreenFocusedItem,this._focusBackfillItem]).forEach(function(U){U&&(this.modelForElement(U)[S]=p)},this)},
_getActiveElement:function(){var S=this._itemsParent.node.domHost;return _.K9(S?S.root:document).activeElement},
_scrollTargetChanged:function(S,p){this._oldScrollTarget&&(this._toggleScrollListener(!1,this._oldScrollTarget),this._oldScrollTarget=null);if(p)if(S==="document")this.scrollTarget=this._doc;else if(typeof S==="string"){var U,Y;this.scrollTarget=(p=(Y=(U=this.domHost)==null?void 0:U.polymerController)!=null?Y:this.domHost)&&p.$?p.$[S]:_.K9(this.ownerDocument).querySelector("#"+S)}else this._isValidScrollTarget()&&(this._oldScrollTarget=S,this._toggleScrollListener(this._shouldHaveListener,S))}});var bsc;var jyj;var r7I=function(S,p,U,Y){S-=U;p-=Y;return Math.sqrt(S*S+p*p)},GwQ=window.performance&&window.performance.now?window.performance.now.bind(window.performance):Date.now;
gZN.prototype={get boundingRect(){return this.element.getBoundingClientRect()}};var uXG=function(S){S.maxRadius=0;S.mouseDownStart=0;S.mouseUpStart=0;S.xStart=0;S.yStart=0;S.xEnd=0;S.yEnd=0;S.containerMetrics=new gZN(S.element)};
wDG.prototype={get recenters(){return this.element.recenters},get center(){return this.element.center},get mouseDownElapsed(){if(!this.mouseDownStart)return 0;var S=GwQ()-this.mouseDownStart;this.mouseUpStart&&(S-=this.mouseUpElapsed);return S},get mouseUpElapsed(){return this.mouseUpStart?GwQ()-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 S=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(S*(1-Math.pow(80,-(this.mouseInteractionSeconds/(1.1-S/300*.2))))),this.maxRadius,300)},get opacity(){return this.mouseUpStart?Math.max(0,this.initialOpacity-
this.mouseUpElapsedSeconds*this.opacityDecayVelocity):this.initialOpacity},get outerOpacity(){return Math.max(0,Math.min(this.mouseUpElapsedSeconds*.3,this.opacity))},get isOpacityFullyDecayed(){return this.opacity<.01&&this.radius>=Math.min(this.maxRadius,300)},get isRestingAtMaxRadius(){return this.opacity>=this.initialOpacity&&this.radius>=Math.min(this.maxRadius,300)},get isAnimationComplete(){return this.mouseUpStart?this.isOpacityFullyDecayed:this.isRestingAtMaxRadius},get translationFraction(){return Math.min(1,
this.radius/this.containerMetrics.size*2/Math.sqrt(2))},get xNow(){return this.xEnd?this.xStart+this.translationFraction*(this.xEnd-this.xStart):this.xStart},get yNow(){return this.yEnd?this.yStart+this.translationFraction*(this.yEnd-this.yStart):this.yStart},get isMouseDown(){return this.mouseDownStart&&!this.mouseUpStart},draw:function(){this.wave.style.opacity=this.opacity;var S=this.radius/(this.containerMetrics.size/2);var p=this.xNow-this.containerMetrics.width/2;var U=this.yNow-this.containerMetrics.height/
2;this.waveContainer.style.webkitTransform="translate("+p+"px, "+U+"px)";this.waveContainer.style.transform="translate3d("+p+"px, "+U+"px, 0)";this.wave.style.webkitTransform="scale("+S+","+S+")";this.wave.style.transform="scale3d("+S+","+S+",1)"},
downAction:function(S){var p=this.containerMetrics.width/2,U=this.containerMetrics.height/2;uXG(this);this.mouseDownStart=GwQ();this.center?(this.xStart=p,this.yStart=U):(this.xStart=S?S.detail.x-this.containerMetrics.boundingRect.left:this.containerMetrics.width/2,this.yStart=S?S.detail.y-this.containerMetrics.boundingRect.top:this.containerMetrics.height/2);this.recenters&&(this.xEnd=p,this.yEnd=U);S=this.containerMetrics;p=this.xStart;U=this.yStart;this.maxRadius=Math.max(r7I(p,U,0,0),r7I(p,U,
S.width,0),r7I(p,U,0,S.height),r7I(p,U,S.width,S.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=GwQ())},
remove:function(){_.K9(_.K9(this.waveContainer).parentNode).removeChild(this.waveContainer)}};
_.jp({_template:function(){if(jyj!==void 0)return jyj;var S=document.createElement("template");_.h(S,'\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');
S.content.insertBefore(_.t().content.cloneNode(!0),S.content.firstChild);var p=S.content,U=p.insertBefore;bsc===void 0&&(bsc=document.createElement("template"));var Y=bsc;U.call(p,Y.content.cloneNode(!0),S.content.firstChild);return jyj=S},
is:"tp-yt-paper-ripple",behaviors:[_.H$],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(){_.K9(this).parentNode.nodeType==11?this.keyEventTarget=_.K9(this).getOwnerRoot().host:this.keyEventTarget=_.K9(this).parentNode;var S=this.keyEventTarget;this.listen(S,"up","uiUpAction");this.listen(S,"down","uiDownAction")},
detached:function(){this.unlisten(this.keyEventTarget,"up","uiUpAction");this.unlisten(this.keyEventTarget,"down","uiDownAction");this.keyEventTarget=null;this.ripples.forEach(function(S){S.remove()});
this.ripples.length=0;this._setAnimating(!1)},
get shouldKeepAnimating(){for(var S=0;S<this.ripples.length;++S)if(!this.ripples[S].isAnimationComplete)return!0;return!1},simulatedRipple:function(){this.downAction(null);this.async(function(){this.upAction()},1)},
uiDownAction:function(S){this.noink||this.downAction(S)},
downAction:function(S){this.holdDown&&this.ripples.length>0||(this.addRipple().downAction(S),this._animating||(this._animating=!0,this.animate()))},
uiUpAction:function(S){this.noink||this.upAction(S)},
upAction:function(S){this.holdDown||(this.ripples.forEach(function(p){p.upAction(S)}),this._animating=!0,this.animate())},
onAnimationComplete:function(){for(var S=0;S<this.ripples.length;++S){var p=this.ripples[S];p.isOpacityFullyDecayed&&!p.isRestingAtMaxRadius&&this.removeRipple(p)}this._animating=!1;this.$.background.style.backgroundColor="";this.fire("transitionend")},
addRipple:function(){var S=new wDG(this);_.K9(this.$.waves).appendChild(S.waveContainer);this.$.background.style.backgroundColor=S.color;this.ripples.push(S);this._setAnimating(!0);return S},
removeRipple:function(S){var p=this.ripples.indexOf(S);p<0||(this.ripples.splice(p,1),S.remove(),this.ripples.length||this._setAnimating(!1))},
animate:function(){if(this._animating){var S;for(S=0;S<this.ripples.length;++S){var p=this.ripples[S];p.draw();this.$.background.style.opacity=p.outerOpacity;p.isOpacityFullyDecayed&&!p.isRestingAtMaxRadius&&this.removeRipple(p)}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(S,p){p!==void 0&&(S?this.downAction():this.upAction())}});var fL={properties:{noink:{type:Boolean,observer:"_noinkChanged"},_rippleContainer:{type:Object},_ripple:{type:Object}},_buttonStateChanged:function(){this.focused&&this.ensureRipple()},
_downHandler:function(S){zC._downHandler.call(this,S);this.pressed&&this.ensureRipple(S)},
ensureRipple:function(S){if(!this.hasRipple()){this._ripple=this._createRipple();this._ripple.noink=this.noink;var p=this._rippleContainer||this.root;p&&_.K9(p).appendChild(this._ripple);if(S){p=_.K9(this._rippleContainer||this);var U=_.K9(S).rootTarget;p.deepContains(U)&&this._ripple.uiDownAction(S)}}},
getRipple:function(){this.ensureRipple();return this._ripple},
hasRipple:function(){return!!this._ripple},
_createRipple:function(){return document.createElement("tp-yt-paper-ripple")},
_noinkChanged:function(S){this.hasRipple()&&(this._ripple.noink=S)}};var hoj={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 S=1;this.disabled?S=0:this.active||this.pressed?S=4:this.receivedFocusFromKeyboard&&(S=3);this._setElevation(S)},
_computeKeyboardClass:function(S){this.toggleClass("keyboard-focus",S)},
_spaceKeyDownHandler:function(S){zC._spaceKeyDownHandler.call(this,S);this.hasRipple()&&this.getRipple().ripples.length<1&&this._ripple.uiDownAction()},
_spaceKeyUpHandler:function(S){zC._spaceKeyUpHandler.call(this,S);this.hasRipple()&&this._ripple.uiUpAction()}},RoE=[uBq,
_.DE,fL,hoj];_.Fht={observers:["_focusedChanged(receivedFocusFromKeyboard)"],_focusedChanged:function(S){S&&this.ensureRipple();this.hasRipple()&&(this._ripple.holdDown=S)},
_createRipple:function(){var S=fL._createRipple();S.id="ink";S.setAttribute("center","");S.classList.add("circle");return S}};
_.X7E=[uBq,_.DE,fL,_.Fht];_.PZI=[_.X7E,alt,{_checkedChanged:function(){llm._checkedChanged.call(this);this.hasRipple()&&(this.checked?this._ripple.setAttribute("checked",""):this._ripple.removeAttribute("checked"))},
_buttonStateChanged:function(){fL._buttonStateChanged.call(this);!this.disabled&&this.isAttached&&(this.checked=this.active)}}];var Zsm;var sym;var eod=function(){};
_.M=eod.prototype;_.M.registered=function(){};
_.M.addOwnKeyBinding=function(){};
_.M.removeOwnKeyBindings=function(){};
_.M.keyboardEventMatchesKeys=function(){};
_.M._collectKeyBindings=function(){};
_.M._prepKeyBindings=function(){};
_.M._addKeyBinding=function(){};
_.M._resetKeyEventListeners=function(){};
_.M._listenKeyEventListeners=function(){};
_.M._unlistenKeyEventListeners=function(){};
_.M._onKeyBindingEvent=function(){};
_.M._triggerKeyHandler=function(){};
_.M._tapHandler=function(){};
_.M._focusChanged=function(){};
_.M._detectKeyboardFocus=function(){};
_.M._userActivate=function(){};
_.M._upHandler=function(){};
_.M._asyncClick=function(){};
_.M._pressedChanged=function(){};
_.M._ariaActiveAttributeChanged=function(){};
_.M._activeChanged=function(){};
_.M._controlStateChanged=function(){};
_.M._changedButtonState=function(){};
_.M._focusBlurHandler=function(){};
_.M._disabledChanged=function(){};
_.M._changedControlState=function(){};
_.M._buttonStateChanged=function(){};
_.M._downHandler=function(){};
_.M.ensureRipple=function(){};
_.M.getRipple=function(){};
_.M.hasRipple=function(){};
_.M._createRipple=function(){};
_.M._noinkChanged=function(){};
_.M._computeKeyboardClass=function(){};
_.M._spaceKeyDownHandler=function(){};
_.M._spaceKeyUpHandler=function(){};
_.M._setPressed=function(){};
_.M._setPointerDown=function(){};
_.M._setReceivedFocusFromKeyboard=function(){};
_.M._setFocused=function(){};
_.M._setElevation=function(){};
eod=_.jp({_template:function(){if(sym!==void 0)return sym;var S=document.createElement("template");_.h(S,'\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');S.content.insertBefore(_.t().content.cloneNode(!0),S.content.firstChild);
var p=S.content,U=p.insertBefore;Zsm===void 0&&(Zsm=document.createElement("template"));var Y=Zsm;U.call(p,Y.content.cloneNode(!0),S.content.firstChild);return sym=S},
is:"tp-yt-paper-button",hostAttributes:{"style-target":"host"},behaviors:[RoE],properties:{raised:{type:Boolean,reflectToAttribute:!0,value:!1,observer:"_calculateElevation"}},_calculateElevation:function(){this.raised?hoj._calculateElevation.apply(this):this._setElevation(0)}});var gLw;var ucP;var w7m={hostAttributes:{role:"dialog",tabindex:"-1"},properties:{modal:{type:Boolean,value:!1},modern:{type:Boolean,value:!1,reflectToAttribute:!0},__readied:{type:Boolean,value:!1}},observers:["_modalChanged(modal, __readied)"],listeners:{tap:"_onDialogTap",click:"_onDialogClickWrapped"},_onDialogTap:function(S){_.y("dialog_behavior_no_tap_killswitch")&&this._onDialogClick(S)},
_onDialogClickWrapped:function(S){_.y("dialog_behavior_no_tap_killswitch")||this._onDialogClick(S)},
ready:function(){this.__prevNoCancelOnOutsideClick=this.noCancelOnOutsideClick;this.__prevNoCancelOnEscKey=this.noCancelOnEscKey;this.__prevWithBackdrop=this.withBackdrop;this.__readied=!0},
_modalChanged:function(S,p){p&&(S?(this.__prevNoCancelOnOutsideClick=this.noCancelOnOutsideClick,this.__prevNoCancelOnEscKey=this.noCancelOnEscKey,this.__prevWithBackdrop=this.withBackdrop,this.withBackdrop=this.noCancelOnEscKey=this.noCancelOnOutsideClick=!0,this.setAttribute("aria-modal","true")):(this.noCancelOnOutsideClick=this.noCancelOnOutsideClick&&this.__prevNoCancelOnOutsideClick,this.noCancelOnEscKey=this.noCancelOnEscKey&&this.__prevNoCancelOnEscKey,this.withBackdrop=this.withBackdrop&&
this.__prevWithBackdrop))},
_updateClosingReasonConfirmed:function(S){this.closingReason=this.closingReason||{};this.closingReason.confirmed=S},
_onDialogClick:function(S){for(var p=_.K9(S).path,U=0,Y,L=p.indexOf((Y=this.hostElement)!=null?Y:this);U<L;U++)if(Y=p[U],Y.hasAttribute&&(Y.hasAttribute("dialog-dismiss")||Y.hasAttribute("dialog-confirm"))){this._updateClosingReasonConfirmed(Y.hasAttribute("dialog-confirm"));this.close();S.stopPropagation();break}}},ltj=[_.aU,
w7m];var atc=document.createElement("template");_.h(atc,'<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(atc.content);var ftw=document.createElement("template");_.h(ftw,'<custom-style><style is="custom-style"></style></custom-style>');document.head.appendChild(ftw.content);_.jp({_template:function(){if(ucP!==void 0)return ucP;var S=document.createElement("template");_.h(S,'\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');S.content.insertBefore(_.t().content.cloneNode(!0),S.content.firstChild);
var p=S.content,U=p.insertBefore;gLw===void 0&&(gLw=document.createElement("template"));var Y=gLw;U.call(p,Y.content.cloneNode(!0),S.content.firstChild);return ucP=S},
is:"tp-yt-paper-dialog",hostAttributes:{"style-target":"host"},behaviors:[ltj,i3w],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 CZI;var xFt;_.jp({_template:function(){if(xFt!==void 0)return xFt;var S=document.createElement("template");_.h(S,'\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');
S.content.insertBefore(_.t().content.cloneNode(!0),S.content.firstChild);var p=S.content,U=p.insertBefore;CZI===void 0&&(CZI=document.createElement("template"));var Y=CZI;U.call(p,Y.content.cloneNode(!0),S.content.firstChild);return xFt=S},
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 S,p,U;if(((S=window.ShadyDOM)==null?void 0:S.noPatch)!==!0&&((p=window.ShadyDOM)==null?void 0:p.noPatch)!=="on-demand"||((U=this.__shady_parentNode)==null?void 0:U.nodeName)!=="#document-fragment")this.dialogElement=this.dialogElement||this.parentElement;this.dialogElement&&this.dialogElement.behaviors&&this.dialogElement.behaviors.indexOf(w7m)>=0?(this.dialogElement.sizingTarget=this.scrollTarget,this.scrollTarget.classList.remove("fit")):this.dialogElement&&this.scrollTarget.classList.add("fit")}});var ELI=_.x1(['<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>']),mFm=_.CNt(ELI);mFm.setAttribute("style","display: none;");document.head.appendChild(mFm.content);var oLP;var vLE;var $Fm;var isw;_.jp({is:"tp-yt-paper-menu-grow-height-animation",_template:null,behaviors:[rH],configure:function(S){var p=S.node,U=p.getBoundingClientRect().height;return this._effect=new KeyframeEffect(p,[{height:U/2+"px"},{height:U+"px"}],this.timingFromConfig(S))}});
_.jp({is:"tp-yt-paper-menu-grow-width-animation",_template:null,behaviors:[rH],configure:function(S){var p=S.node,U=p.getBoundingClientRect().width;return this._effect=new KeyframeEffect(p,[{width:U/2+"px"},{width:U+"px"}],this.timingFromConfig(S))}});
_.jp({is:"tp-yt-paper-menu-shrink-width-animation",_template:null,behaviors:[rH],configure:function(S){var p=S.node,U=p.getBoundingClientRect().width;return this._effect=new KeyframeEffect(p,[{width:U+"px"},{width:U-U/20+"px"}],this.timingFromConfig(S))}});
_.jp({is:"tp-yt-paper-menu-shrink-height-animation",_template:null,behaviors:[rH],configure:function(S){var p=S.node,U=p.getBoundingClientRect().height;this.setPrefixedProperty(p,"transformOrigin","0 0");return this._effect=new KeyframeEffect(p,[{height:U+"px",transform:"translateY(0)"},{height:U/2+"px",transform:"translateY(-20px)"}],this.timingFromConfig(S))}});var CL={ANIMATION_CUBIC_BEZIER:"cubic-bezier(.3,.95,.5,1)",MAX_ANIMATION_TIME_MS:400},NYm=function(){};
_.M=NYm.prototype;_.M.registered=function(){};
_.M.addOwnKeyBinding=function(){};
_.M.removeOwnKeyBindings=function(){};
_.M.keyboardEventMatchesKeys=function(){};
_.M._collectKeyBindings=function(){};
_.M._prepKeyBindings=function(){};
_.M._addKeyBinding=function(){};
_.M._resetKeyEventListeners=function(){};
_.M._listenKeyEventListeners=function(){};
_.M._unlistenKeyEventListeners=function(){};
_.M._onKeyBindingEvent=function(){};
_.M._triggerKeyHandler=function(){};
_.M._focusBlurHandler=function(){};
_.M._changedControlState=function(){};
_.M._setFocused=function(){};
NYm=_.jp({_template:function(){if(isw!==void 0)return isw;var S=document.createElement("template");_.h(S,'\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');
S.content.insertBefore(_.t().content.cloneNode(!0),S.content.firstChild);var p=S.content,U=p.insertBefore;$Fm===void 0&&($Fm=document.createElement("template"));var Y=$Fm;U.call(p,Y.content.cloneNode(!0),S.content.firstChild);return isw=S},
is:"tp-yt-paper-menu-button",behaviors:[_.H$,_.DE],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:CL.ANIMATION_CUBIC_BEZIER}},{name:"tp-yt-paper-menu-grow-height-animation",timing:{delay:100,duration:275,easing:CL.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:CL.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 S=_.K9(this.$.content).getDistributedNodes(),p=0,U=S.length;p<U;p++)if(S[p].nodeType===Node.ELEMENT_NODE)return S[p]},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(S,p){S?(this._dropdownContent=this.contentElement,this.fire("paper-dropdown-open")):p!=null&&this.fire("paper-dropdown-close")},
_disabledChanged:function(S){_.DE._disabledChanged.apply(this,arguments);S&&this.opened&&this.close()},
__onIronOverlayCanceled:function(S){var p=this.$.trigger;_.K9(S.detail).path.indexOf(p)>-1&&S.preventDefault()}});
Object.keys(CL).forEach(function(S){NYm[S]=CL[S]});var BYt=_.Qm.IronButtonState,qom=(0,_.HC)(HTMLElement);
_.jp({_template:function(){if(vLE!==void 0)return vLE;var S=document.createElement("template");_.h(S,'\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');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);var p=S.content,U=p.insertBefore;oLP===void 0&&(oLP=document.createElement("template"));var Y=oLP;U.call(p,Y.content.cloneNode(!0),S.content.firstChild);return vLE=S},
is:"tp-yt-paper-dropdown-menu-light",hostAttributes:{"style-target":"host"},behaviors:[BYt,_.DE,fL,_.nL,_.KL],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(S){var p=(0,_.Dc)(this);p.attachShadow({mode:"open",delegatesFocus:!0,shadyUpgradeFragment:S});p.shadowRoot.appendChild(S);return qom.prototype._attachDom.call(this,S)},
focus:function(){this.$["dropdown-trigger"].focus()},
attached:function(){var S=this.contentElement;S&&S.selectedItem&&this._setSelectedItem(S.selectedItem)},
get contentElement(){for(var S=_.K9(this.$.content).getDistributedNodes(),p=0,U=S.length;p<U;p++)if(S[p].nodeType===Node.ELEMENT_NODE)return S[p]},open:function(){this.$.menuButton.open()},
close:function(){this.$.menuButton.close()},
_onIronSelect:function(S){this._setSelectedItem(S.detail.item)},
_onIronDeselect:function(){this._setSelectedItem(null)},
_onTap:function(S){_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(S)===this&&this.open()},
_selectedItemChanged:function(S){var p="";S?p=S.label||S.getAttribute("label")||S.textContent.trim():p="";this.value=p;this._setSelectedItemLabel(p)},
_computeMenuVerticalOffset:function(S,p){return p?p:S?-4:8},
_getValidity:function(){return this.disabled||!this.required||this.required&&!!this.value},
_openedChanged:function(){var S=this.opened?"true":"false",p=this.contentElement;p&&p.setAttribute("aria-expanded",S)},
_computeLabelClass:function(S,p,U){var Y="label";if(S)U&&(Y+=" label-is-hidden");else if(U||p)Y+=" label-is-floating";return Y},
_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 A7t;var tMI;_.jp({is:"tp-yt-paper-icon-button",_template:function(){if(tMI!==void 0)return tMI;var S=document.createElement("template");_.h(S,'\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');
S.content.insertBefore(_.t().content.cloneNode(!0),S.content.firstChild);var p=S.content,U=p.insertBefore;A7t===void 0&&(A7t=document.createElement("template"));var Y=A7t;U.call(p,Y.content.cloneNode(!0),S.content.firstChild);return tMI=S},
hostAttributes:{role:"button",tabindex:"0","style-target":"host"},behaviors:[_.X7E],properties:{src:{type:String},icon:{type:String},alt:{type:String,observer:"_altChanged"}},_altChanged:function(S,p){var U=this.getAttribute("aria-label");U&&p!=U||this.setAttribute("aria-label",S)}});var c7m;var SKP;_.xz=[uBq,_.DE,{hostAttributes:{role:"option",tabindex:"0"}}];_.jp({_template:function(){if(SKP!==void 0)return SKP;var S=document.createElement("template");_.h(S,'\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');
S.content.insertBefore(_.t().content.cloneNode(!0),S.content.firstChild);var p=S.content,U=p.insertBefore;c7m===void 0&&(c7m=document.createElement("template"));var Y=c7m;U.call(p,Y.content.cloneNode(!0),S.content.firstChild);return SKP=S},
is:"tp-yt-paper-icon-item",hostAttributes:{"style-target":"host"},behaviors:[_.xz]});var pGd;var UBj;var YKH={attached:function(){this.fire("addon-attached")},
update:function(){}};var LLm=1,MSe=1,Iel=1,dBI=[_.DE,_.H$,{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();!$r&&this.inputElement&&this._typesThatHaveText.indexOf(this.inputElement.type)!==-1&&(this.alwaysFloatLabel=!0)},
_appendStringWithSpace:function(S,p){S?S=S+" "+p:S=p;return S},
_onAddonAttached:function(S){S=_.K9(S).rootTarget;if(S.id)this._ariaDescribedBy=this._appendStringWithSpace(this._ariaDescribedBy,S.id);else{var p="paper-input-add-on-"+MSe++;S.id=p;this._ariaDescribedBy=this._appendStringWithSpace(this._ariaDescribedBy,p)}},
validate:function(){return this.inputElement.validate()},
_focusBlurHandler:function(S){_.DE._focusBlurHandler.call(this,S);this.focused&&!this._shiftTabPressed&&this._focusableElement&&this._focusableElement.focus()},
_onShiftTabDown:function(){var S=this.getAttribute("tabindex");this._shiftTabPressed=!0;this.setAttribute("tabindex","-1");this.async(function(){this.setAttribute("tabindex",S);this._shiftTabPressed=!1},1)},
_handleAutoValidate:function(){this.autoValidate&&this.validate()},
updateValueAndPreserveCaret:function(S){try{var p=this.inputElement.selectionStart;this.value=S;this.inputElement.selectionStart=p;this.inputElement.selectionEnd=p}catch(U){this.value=S}},
_computeAlwaysFloatLabel:function(S,p){return p||S},
_updateAriaLabelledBy:function(){var S=_.K9(this.root).querySelector("label");if(S){if(S.id)var p=S.id;else p="paper-input-label-"+LLm++,S.id=p;this._ariaLabelledBy=p}else this._ariaLabelledBy=""},
_generateInputId:function(){this._inputId&&this._inputId!==""||(this._inputId="input-"+Iel++)},
_onChange:function(S){this.shadowRoot&&this.fire(S.type,{sourceEvent:S},{node:this,bubbles:S.bubbles,cancelable:S.cancelable})},
_autofocusChanged:function(){if(this.autofocus&&this._focusableElement){var S=document.activeElement;S instanceof HTMLElement&&S!==document.body&&S!==document.documentElement||this._focusableElement.focus()}}}];var VSI;var T8I;_.jp({_template:function(){if(T8I!==void 0)return T8I;var S=document.createElement("template");_.h(S,'\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');
S.content.insertBefore(_.t().content.cloneNode(!0),S.content.firstChild);var p=S.content,U=p.insertBefore;VSI===void 0&&(VSI=document.createElement("template"));var Y=VSI;U.call(p,Y.content.cloneNode(!0),S.content.firstChild);return T8I=S},
is:"tp-yt-paper-input-char-counter",hostAttributes:{"style-target":"host"},behaviors:[YKH],properties:{_charCounterStr:{type:String,value:"0"}},update:function(S){if(S.inputElement){S.value=S.value||"";var p=S.value.toString().length.toString();S.inputElement.hasAttribute("maxlength")&&(p+="/"+S.inputElement.getAttribute("maxlength"));this._charCounterStr=p}}});var WLm;var O6t;_.jp({_template:function(){if(O6t!==void 0)return O6t;var S=document.createElement("template");_.h(S,'\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');
S.content.insertBefore(_.t().content.cloneNode(!0),S.content.firstChild);var p=S.content,U=p.insertBefore;WLm===void 0&&(WLm=document.createElement("template"));var Y=WLm;U.call(p,Y.content.cloneNode(!0),S.content.firstChild);return O6t=S},
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 LZ(this.attrForValue)},get _inputElement(){return _.K9(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(S){this._addons||(this._addons=[]);S=S.target;this._addons.indexOf(S)===-1&&(this._addons.push(S),this.isAttached&&this._handleValue(this._inputElement))},
_onFocus:function(){this._setFocused(!0)},
_onBlur:function(){this._setFocused(!1);this._handleValueAndAutoValidate(this._inputElement)},
_onInput:function(S){this._handleValueAndAutoValidate(S.target)},
_onValueChanged:function(S){var p=S.target;if(this.__isFirstValueUpdate&&(this.__isFirstValueUpdate=!1,p.value===void 0||p.value===""))return;this._handleValueAndAutoValidate(S.target)},
_handleValue:function(S){var p=this._inputElementValue;p||p===0||S.type==="number"&&!S.checkValidity()?this._inputHasContent=!0:this._inputHasContent=!1;this.updateAddons({inputElement:S,value:p,invalid:this.invalid})},
_handleValueAndAutoValidate:function(S){this.autoValidate&&S&&(this.invalid=!(S.validate?S.validate(this._inputElementValue):S.checkValidity()));this._handleValue(S)},
_onIronInputValidate:function(){this.invalid=this._inputElement.invalid},
_invalidChanged:function(){this._addons&&this.updateAddons({invalid:this.invalid})},
updateAddons:function(S){if(this._addons)for(var p,U=0;p=this._addons[U];U++)p.update(S)},
_computeInputContentClass:function(S,p,U,Y,L){var I="input-content";S?(L&&(I+=" label-is-hidden"),Y&&!this.noUnfloatedLabelError&&(I+=" is-invalid")):(S=this.querySelector("label"),p||L?(I+=" label-is-floating",this.$.labelAndInputContainer.style.position="static",Y?I+=" is-invalid":U&&(I+=" label-is-highlighted")):(S&&(this.$.labelAndInputContainer.style.position="relative"),Y&&!this.noUnfloatedLabelError&&(I+=" is-invalid")));U&&(I+=" focused");return I},
_computeUnderlineClass:function(S,p){var U="underline";p?U+=" is-invalid":S&&(U+=" is-highlighted");return U},
_computeAddOnContentClass:function(S,p){var U="add-on-content";p?U+=" is-invalid":S&&(U+=" is-highlighted");return U}});var kyQ;var H6c;_.jp({_template:function(){if(H6c!==void 0)return H6c;var S=document.createElement("template");_.h(S,'\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');
S.content.insertBefore(_.t().content.cloneNode(!0),S.content.firstChild);var p=S.content,U=p.insertBefore;kyQ===void 0&&(kyQ=document.createElement("template"));var Y=kyQ;U.call(p,Y.content.cloneNode(!0),S.content.firstChild);return H6c=S},
is:"tp-yt-paper-input-error",hostAttributes:{"style-target":"host"},behaviors:[YKH],properties:{invalid:{readOnly:!0,reflectToAttribute:!0,type:Boolean}},update:function(S){this._setInvalid(S.invalid)}});_.jp({is:"tp-yt-paper-input",_template:function(){if(UBj!==void 0)return UBj;var S=document.createElement("template");_.h(S,'\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');
S.content.insertBefore(_.t().content.cloneNode(!0),S.content.firstChild);var p=S.content,U=p.insertBefore;pGd===void 0&&(pGd=document.createElement("template"));var Y=pGd;U.call(p,Y.content.cloneNode(!0),S.content.firstChild);return UBj=S},
behaviors:[dBI,_.nL],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 DBt;var zlm;_.jp({_template:function(){if(zlm!==void 0)return zlm;var S=document.createElement("template");_.h(S,'\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');S.content.insertBefore(_.t().content.cloneNode(!0),S.content.firstChild);var p=
S.content,U=p.insertBefore;DBt===void 0&&(DBt=document.createElement("template"));var Y=DBt;U.call(p,Y.content.cloneNode(!0),S.content.firstChild);return zlm=S},
is:"tp-yt-paper-item",hostAttributes:{"style-target":"host"},behaviors:[_.xz]});var QFl;var nOe;_.jp({_template:function(){if(nOe!==void 0)return nOe;var S=document.createElement("template");_.h(S,'\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');S.content.insertBefore(_.t().content.cloneNode(!0),S.content.firstChild);
var p=S.content,U=p.insertBefore;QFl===void 0&&(QFl=document.createElement("template"));var Y=QFl;U.call(p,Y.content.cloneNode(!0),S.content.firstChild);return nOe=S},
is:"tp-yt-paper-item-body"});var JnE;var ynm;var KLw=function(){};
_.M=KLw.prototype;_.M.indexOf=function(){};
_.M.selectPrevious=function(){};
_.M.selectNext=function(){};
_.M.selectIndex=function(){};
_.M.forceSynchronousItemUpdate=function(){};
_.M._checkFallback=function(){};
_.M._addListener=function(){};
_.M._removeListener=function(){};
_.M._activateEventChanged=function(){};
_.M._updateItems=function(){};
_.M._selectSelected=function(){};
_.M._filterItem=function(){};
_.M._valueToItem=function(){};
_.M._valueToIndex=function(){};
_.M._indexToValue=function(){};
_.M._valueForItem=function(){};
_.M._observeItems=function(){};
_.M._itemActivate=function(){};
_.M.multiChanged=function(){};
_.M._updateAttrForSelected=function(){};
_.M._updateSelected=function(){};
_.M._selectMulti=function(){};
_.M._selectionChange=function(){};
_.M._toggleSelected=function(){};
_.M._valuesToItems=function(){};
_.M.registered=function(){};
_.M.addOwnKeyBinding=function(){};
_.M.removeOwnKeyBindings=function(){};
_.M.keyboardEventMatchesKeys=function(){};
_.M._collectKeyBindings=function(){};
_.M._prepKeyBindings=function(){};
_.M._addKeyBinding=function(){};
_.M._resetKeyEventListeners=function(){};
_.M._listenKeyEventListeners=function(){};
_.M._unlistenKeyEventListeners=function(){};
_.M._onKeyBindingEvent=function(){};
_.M._triggerKeyHandler=function(){};
_.M.select=function(){};
_.M._resetTabindices=function(){};
_.M._updateMultiselectable=function(){};
_.M._focusWithKeyboardEvent=function(){};
_.M._clearSearchText=function(){};
_.M._focusPrevious=function(){};
_.M._focusNext=function(){};
_.M._applySelection=function(){};
_.M._focusedItemChanged=function(){};
_.M._onIronItemsChanged=function(){};
_.M._onShiftTabDown=function(){};
_.M._onFocus=function(){};
_.M._onUpKey=function(){};
_.M._onDownKey=function(){};
_.M._onEscKey=function(){};
_.M._onKeydown=function(){};
_.M._activateHandler=function(){};
_.M._disabledChanged=function(){};
_.M._setSelectedItem=function(){};
_.M._setItems=function(){};
_.M._setSelectedItems=function(){};
_.M._setFocusedItem=function(){};
KLw=_.jp({_template:function(){if(ynm!==void 0)return ynm;var S=document.createElement("template");_.h(S,'\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');S.content.insertBefore(_.t().content.cloneNode(!0),S.content.firstChild);
var p=S.content,U=p.insertBefore;JnE===void 0&&(JnE=document.createElement("template"));var Y=JnE;U.call(p,Y.content.cloneNode(!0),S.content.firstChild);return ynm=S},
is:"tp-yt-paper-listbox",behaviors:[Ekc],hostAttributes:{role:"listbox"}});var b6w;var jFe;var rnl={properties:{active:{type:Boolean,value:!1,reflectToAttribute:!0,observer:"__activeChanged"},alt:{type:String,value:"loading",observer:"__altChanged"},__coolingDown:{type:Boolean,value:!1}},__computeContainerClasses:function(S,p){return[S||p?"active":"",p?"cooldown":""].join(" ")},
__activeChanged:function(S,p){this.__setAriaHidden(!S);this.__coolingDown=!S&&p},
__altChanged:function(S){this.setAttribute("aria-label",S||"loading")},
__setAriaHidden:function(S){S?this.setAttribute("aria-hidden","true"):this.removeAttribute("aria-hidden")},
__reset:function(){this.__coolingDown=this.active=!1}};_.jp({_template:function(){if(jFe!==void 0)return jFe;var S=document.createElement("template");_.h(S,'\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');
S.content.insertBefore(_.t().content.cloneNode(!0),S.content.firstChild);var p=S.content,U=p.insertBefore;b6w===void 0&&(b6w=document.createElement("template"));var Y=b6w;U.call(p,Y.content.cloneNode(!0),S.content.firstChild);return jFe=S},
is:"tp-yt-paper-spinner",behaviors:[rnl]});var Gyc;var hlq;_.jp({_template:function(){if(hlq!==void 0)return hlq;var S=document.createElement("template");_.h(S,'\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');
S.content.insertBefore(_.t().content.cloneNode(!0),S.content.firstChild);var p=S.content,U=p.insertBefore;Gyc===void 0&&(Gyc=document.createElement("template"));var Y=Gyc;U.call(p,Y.content.cloneNode(!0),S.content.firstChild);return hlq=S},
is:"tp-yt-paper-spinner-lite",behaviors:[rnl]});var Rlq;var FLQ;_.jp({_template:function(){if(FLQ!==void 0)return FLQ;var S=document.createElement("template");_.h(S,'\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');
S.content.insertBefore(_.t().content.cloneNode(!0),S.content.firstChild);var p=S.content,U=p.insertBefore;Rlq===void 0&&(Rlq=document.createElement("template"));var Y=Rlq;U.call(p,Y.content.cloneNode(!0),S.content.firstChild);return FLQ=S},
is:"tp-yt-paper-tab",behaviors:[_.DE,_.Qm.IronButtonState,fL],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 S=_.K9(this).parentNode;return!!S&&!!S.noink},_updateNoink:function(){this.noink=!!this.noink||!!this._parentNoink},
_onTap:function(S){if(this.link){var p=this.queryEffectiveChildren("a");p&&S.target!==p&&p.click()}}});var XGQ;var P6E;var Z6H=_.x1(['<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>']),sFe=_.CNt(Z6H);document.head.appendChild(sFe.content);_.jp({_template:function(){if(P6E!==void 0)return P6E;var S=document.createElement("template");_.h(S,'\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');
S.content.insertBefore(_.t().content.cloneNode(!0),S.content.firstChild);var p=S.content,U=p.insertBefore;XGQ===void 0&&(XGQ=document.createElement("template"));var Y=XGQ;U.call(p,Y.content.cloneNode(!0),S.content.firstChild);return P6E=S},
is:"tp-yt-paper-tabs",behaviors:[_.ji,_.okm],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(S){_.K9(this).querySelectorAll("tp-yt-paper-tab").forEach(S?this._setNoinkAttribute:this._removeNoinkAttribute)},
_setNoinkAttribute:function(S){S.setAttribute("noink","")},
_removeNoinkAttribute:function(S){S.removeAttribute("noink")},
_computeScrollButtonClass:function(S,p,U,Y){return!p||U?"hidden":S?Y?"hidden":"not-visible":""},
_computeTabsContentClass:function(S,p){var U="tabs-content";S&&(U+=" scrollable");if(!S||p)U+=" fit-container";return U},
_computeSelectionBarClass:function(S,p){var U="selection-bar";S?U+=" hidden":p&&(U+=" align-bottom");return U},
_onTabSizingChanged:function(){this.debounce("_onTabSizingChanged",function(){this._scroll();this._tabChanged(this.selectedItem)},10)},
_makeString:function(S){return""+S},
_onIronSelect:function(S){this._tabChanged(S.detail.item,this._previousTab);this._previousTab=S.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();_.bs._activateHandler.apply(this,arguments)},
_scheduleActivation:function(S,p){this._pendingActivationItem=S;this._pendingActivationTimeout=this.async(this._bindDelayedActivationHandler,p)},
_delayedActivationHandler:function(){var S=this._pendingActivationItem;this._pendingActivationTimeout=this._pendingActivationItem=void 0;S.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(S){S.target===this._pendingActivationItem&&this._cancelPendingActivation()},
get _tabContainerScrollSize(){return Math.max(0,this.$.tabsContainer.scrollWidth-this.$.tabsContainer.offsetWidth)},_scroll:function(S,p){this.scrollable&&this._affectScroll(p&&-p.ddx||0)},
_down:function(){this.async(function(){this._defaultFocusAsync&&(this.cancelAsync(this._defaultFocusAsync),this._defaultFocusAsync=null)},1)},
_affectScroll:function(S){this.$.tabsContainer.scrollLeft+=S;S=this.$.tabsContainer.scrollLeft;this._leftHidden=S===0||this.hideScrollButtons;this._rightHidden=S===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(S,p){if(S){var U=this.$.tabsContent.getBoundingClientRect(),Y=U.width,L=S.getBoundingClientRect();U=L.left-U.left;this._pos={width:this._calcPercent(L.width,Y),left:this._calcPercent(U,Y)};if(this.noSlide||p==null)this.$.selectionBar.classList.remove("expand"),this.$.selectionBar.classList.remove("contract"),this._positionBar(this._pos.width,this._pos.left);else{var I=p.getBoundingClientRect();p=this.items.indexOf(p);S=this.items.indexOf(S);this.$.selectionBar.classList.add("expand");
S=p<S;this._isRTL&&(S=!S);S?this._positionBar(this._calcPercent(L.left+L.width-I.left,Y)-5,this._left):this._positionBar(this._calcPercent(I.left+I.width-L.left,Y)-5,this._calcPercent(U,Y)+5);this.scrollable&&this._scrollToSelectedIfNeeded(L.width,U)}}else this.$.selectionBar.classList.remove("expand"),this.$.selectionBar.classList.remove("contract"),this._positionBar(0,0)},
_scrollToSelectedIfNeeded:function(S,p){p-=this.$.tabsContainer.scrollLeft;p<0?this.$.tabsContainer.scrollLeft+=p:(p+=S-this.$.tabsContainer.offsetWidth,p>0&&(this.$.tabsContainer.scrollLeft+=p))},
_calcPercent:function(S,p){return 100*S/p},
_positionBar:function(S,p){S=S||0;p=p||0;this._width=S;this._left=p;this.transform("translateX("+p+"%) scaleX("+S/100+")",this.$.selectionBar)},
_onBarTransitionEnd:function(){var S=this.$.selectionBar.classList;S.contains("expand")?(S.remove("expand"),S.add("contract"),this._positionBar(this._pos.width,this._pos.left)):S.contains("contract")&&S.remove("contract")}});var elH;var gOP;_.jp({_template:function(){if(gOP!==void 0)return gOP;var S=document.createElement("template");_.h(S,'\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');
S.content.insertBefore(_.t().content.cloneNode(!0),S.content.firstChild);var p=S.content,U=p.insertBefore;elH===void 0&&(elH=document.createElement("template"));var Y=elH;U.call(p,Y.content.cloneNode(!0),S.content.firstChild);return gOP=S},
is:"tp-yt-paper-textarea",behaviors:[dBI,_.nL],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(S){this.$.input.textarea.selectionStart=S},get selectionEnd(){return this.$.input.textarea.selectionEnd},
set selectionEnd(S){this.$.input.textarea.selectionEnd=S},_ariaLabelledByChanged:function(S){this._focusableElement.setAttribute("aria-labelledby",S)},
_ariaDescribedByChanged:function(S){this._focusableElement.setAttribute("aria-describedby",S)},
get _focusableElement(){return this.inputElement.textarea}});var uCE;var wGd;/*

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 leE=function(){};
_.M=leE.prototype;_.M.addOwnKeyBinding=function(){};
_.M.removeOwnKeyBindings=function(){};
_.M.keyboardEventMatchesKeys=function(){};
_.M._collectKeyBindings=function(){};
_.M._prepKeyBindings=function(){};
_.M._addKeyBinding=function(){};
_.M._resetKeyEventListeners=function(){};
_.M._listenKeyEventListeners=function(){};
_.M._unlistenKeyEventListeners=function(){};
_.M._onKeyBindingEvent=function(){};
_.M._triggerKeyHandler=function(){};
_.M._tapHandler=function(){};
_.M._focusChanged=function(){};
_.M._detectKeyboardFocus=function(){};
_.M._userActivate=function(){};
_.M._upHandler=function(){};
_.M._spaceKeyDownHandler=function(){};
_.M._spaceKeyUpHandler=function(){};
_.M._asyncClick=function(){};
_.M._pressedChanged=function(){};
_.M._ariaActiveAttributeChanged=function(){};
_.M._activeChanged=function(){};
_.M._controlStateChanged=function(){};
_.M._changedButtonState=function(){};
_.M._focusBlurHandler=function(){};
_.M._disabledChanged=function(){};
_.M._changedControlState=function(){};
_.M._downHandler=function(){};
_.M.ensureRipple=function(){};
_.M.getRipple=function(){};
_.M.hasRipple=function(){};
_.M._noinkChanged=function(){};
_.M._focusedChanged=function(){};
_.M.registered=function(){};
_.M._invalidChanged=function(){};
_.M.hasValidator=function(){};
_.M.validate=function(){};
_.M._getValidity=function(){};
_.M._requiredChanged=function(){};
_.M._valueChanged=function(){};
_.M._checkedChanged=function(){};
_.M._buttonStateChanged=function(){};
_.M._setPressed=function(){};
_.M._setPointerDown=function(){};
_.M._setReceivedFocusFromKeyboard=function(){};
_.M._setFocused=function(){};
leE=_.jp({is:"tp-yt-paper-toggle-button",_template:function(){if(wGd!==void 0)return wGd;var S=document.createElement("template");_.h(S,'\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');
S.content.insertBefore(_.t().content.cloneNode(!0),S.content.firstChild);var p=S.content,U=p.insertBefore;uCE===void 0&&(uCE=document.createElement("template"));var Y=uCE;U.call(p,Y.content.cloneNode(!0),S.content.firstChild);return wGd=S},
behaviors:[_.PZI],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");_.oH(this,function(){_.Xj(this,"pan-y")})},
_ontrack:function(S){S=S.detail;S.state==="start"?this._trackStart(S):S.state==="track"?this._trackMove(S):S.state==="end"&&this._trackEnd(S)},
_trackStart:function(){this._isRtl=this.__calculateIsRtl();this._width=this.$.toggleBar.offsetWidth/2;this._trackChecked=this.checked;this.$.toggleButton.classList.add("dragging")},
_trackMove:function(S){S=S.dx;this._x=this._isRtl?Math.max(-this._width,Math.min(0,this._trackChecked?-this._width+S:S)):Math.min(this._width,Math.max(0,this._trackChecked?this._width+S:S));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 S=fL._createRipple();S.id="ink";S.setAttribute("recenters","");S.classList.add("circle","toggle-ink");return S}});var aeI;var fej;_.jp({_template:function(){if(fej!==void 0)return fej;var S=document.createElement("template");_.h(S,'\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');
S.content.insertBefore(_.t().content.cloneNode(!0),S.content.firstChild);var p=S.content,U=p.insertBefore;aeI===void 0&&(aeI=document.createElement("template"));var Y=aeI;U.call(p,Y.content.cloneNode(!0),S.content.firstChild);return fej=S},
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 S=_.K9(this).parentNode,p=_.K9(this).getOwnerRoot(),U;this.for?U=_.K9(p).querySelector("#"+this.for):U=S.nodeType==Node.DOCUMENT_FRAGMENT_NODE?p.host:S;return U},attached:function(){this._findTarget()},
detached:function(){this.manualMode||this._removeListeners()},
playAnimation:function(S){S==="entry"?this.show():S==="exit"&&this.hide()},
cancelAnimation:function(){this.$.tooltip.classList.add("cancel-animation")},
show:function(){if(!this._showing){if(!this.alwaysDisplay&&_.K9(this).textContent.trim()===""){for(var S=!0,p=_.K9(this).getEffectiveChildNodes(),U=0;U<p.length;U++)if(p[U].textContent.trim()!==""){S=!1;break}if(S)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 S=this.offset;this.marginTop!=14&&this.offset==14&&(S=this.marginTop);var p=this.offsetParent.getBoundingClientRect(),U=this._target.getBoundingClientRect(),Y=this.getBoundingClientRect(),L=(U.width-Y.width)/2,I=(U.height-Y.height)/2,V=U.left-p.left,W=U.top-p.top;switch(this.position){case "top":var O=V+L;var D=W-Y.height-S;break;case "bottom":O=V+L;D=W+U.height+S;break;case "left":O=V-Y.width-S;D=W+I;break;case "right":O=V+U.width+
S,D=W+I}this.fitToVisibleBounds?(p.left+O+Y.width>window.innerWidth?(this.style.right="0px",this.style.left="auto"):(this.style.left=Math.max(0,O)+"px",this.style.right="auto"),p.top+D+Y.height>window.innerHeight?(this.style.bottom=p.height+"px",this.style.top="auto"):(this.style.top=Math.max(-p.top,D)+"px",this.style.bottom="auto")):(this.style.left=O+"px",this.style.top=D+"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(S){S!==500&&this.updateStyles({"--paper-tooltip-delay-in":S+"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(S){if(S==="entry"&&this.animationEntry!=="")return this.animationEntry;if(S==="exit"&&this.animationExit!=="")return this.animationExit;if(this.animationConfig[S]&&typeof this.animationConfig[S][0].name==="string"){if(this.animationConfig[S][0].timing&&this.animationConfig[S][0].timing.delay&&this.animationConfig[S][0].timing.delay!==0){var p=this.animationConfig[S][0].timing.delay;S==="entry"?this.updateStyles({"--paper-tooltip-delay-in":p+"ms"}):S==="exit"&&this.updateStyles({"--paper-tooltip-delay-out":p+
"ms"})}return this.animationConfig[S][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 C6Q=function(S){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.UH(S)};
_.r(C6Q,_.a5);var xBI=_.ti(C6Q,[0,_.Ex]);var ES=function(S){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.UH(S)};
_.r(ES,_.a5);var EOI=[3,4],mBj=[5,6];var oOt=[0,EOI,mBj,_.ome,-1,_.xC,_.vmq,-1,oHk,vHG];var vOm=_.ti(ES,oOt),$Bq=_.cY(oOt);var i6I=function(S){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.UH(S)};
_.r(i6I,_.a5);var N8w=function(S){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.UH(S)};
_.r(N8w,_.a5);var B8t=function(S){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.UH(S)};
_.r(B8t,_.a5);var qKl=function(S){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.UH(S)};
_.r(qKl,_.a5);var AnH=function(S){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.UH(S)};
_.r(AnH,_.a5);var mw=function(S){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.UH(S)};
_.r(mw,_.a5);mw.prototype.getSource=function(){return _.r1(this,1)};
mw.prototype.getMessage=function(){return _.jR(this,4)};
mw.prototype.getData=function(){return _.Sa(this,AnH,8)};var tSm=function(S){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.UH(S)};
_.r(tSm,_.a5);var oU=function(S){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.UH(S)};
_.r(oU,_.a5);var v$=function(S){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.UH(S)};
_.r(v$,_.a5);var $z=function(S){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.UH(S)};
_.r($z,_.a5);$z.prototype.getUrl=function(){return _.jR(this,1)};
$z.prototype.setUrl=function(S){return _.zN(this,1,S)};
$z.prototype.hasUrl=function(){return _.CE(_.VY(this,1))!=null};var cnm=function(S){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.UH(S)};
_.r(cnm,_.a5);var SEl=[3];var pIm=function(S){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.UH(S)};
_.r(pIm,_.a5);var is=function(S){var p=new pIm;return _.pf(p,2,S)};
pIm.prototype.getLanguage=function(){return hk(this,4,Nv)};
var UPw=function(S){var p=is(1);return _.Yq(p,6,Nv,S)},Nv=[3,
4,5,6];var YEH=function(S){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.UH(S)};
_.r(YEH,_.a5);var B$=function(S){var p=new YEH;return _.pf(p,1,S)},qv=function(S,p){return _.Yq(S,2,LUm,p)},LUm=[2,
3,4,5];var MJt=function(S){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.UH(S)};
_.r(MJt,_.a5);var Ah=function(S){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.UH(S)};
_.r(Ah,_.a5);var IpP=function(S){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.UH(S)};
_.r(IpP,_.a5);var dPt=function(S){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.UH(S)};
_.r(dPt,_.a5);var VJt=function(S){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.UH(S)};
_.r(VJt,_.a5);var Tbt=function(S){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.UH(S)};
_.r(Tbt,_.a5);var WUw=function(S){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.UH(S)};
_.r(WUw,_.a5);var th=function(S){return _.Sa(S,v$,5)};var OJm=function(S){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.UH(S)};
_.r(OJm,_.a5);OJm.prototype.getValue=function(){return KT(this,1)};var khE=function(S){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.UH(S)};
_.r(khE,_.a5);var c$=function(S){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.UH(S)};
_.r(c$,_.a5);c$.prototype.getMetadata=function(){return _.Ra(this,VJt,7,Sq)};
c$.prototype.hasMetadata=function(){return _.Wg(this,VJt,7,Sq)};
var HJw=_.Uhw(c$),Sq=[2,3,4,5,6,7,8,9,10,11,12,13,14,15];var pQ=function(S){this.JSC$9924_name_=S;this.files_=[];this.directories_=[];this.directoryMap_={}};
pQ.prototype.getName=function(){return this.JSC$9924_name_};var YS=function(S,p){this.callback_=p;this.hasError_=!1;this.unscannedDirectories_=[];this.fileOps_=this.directoryOps_=0;this.rootDirectory_=new pQ("");DPd(this,S,this.rootDirectory_);UO(this)},DPd=function(S,p,U){for(var Y=0;Y<p.length;Y++){var L=p[Y];
L.isFile?(S.fileOps_++,L.file((0,_.RW)(S.handleFileSuccess_,S,U),(0,_.RW)(S.handleFileError_,S))):S.unscannedDirectories_.push(new zjd(L,U))}},UO=function(S){if(S.unscannedDirectories_.length>0&&S.directoryOps_<5&&!S.hasError_){S.directoryOps_++;
var p=S.unscannedDirectories_.shift(),U=p.entry,Y=new pQ(U.name);p=p.parent;p.directoryMap_[Y.getName()]=Y;p.directories_.push(Y);U=U.createReader();U.readEntries((0,_.RW)(S.handleDirectorySuccess_,S,U,Y),(0,_.RW)(S.handleDirectoryError_,S))}S.directoryOps_!=0||S.fileOps_!=0||S.unscannedDirectories_.length!=0&&!S.hasError_||S.callback_(S.rootDirectory_.files_,S.rootDirectory_.directories_,S.hasError_)};
YS.prototype.handleDirectorySuccess_=function(S,p,U){DPd(this,U,p);U.length==0?(this.directoryOps_--,UO(this)):S.readEntries((0,_.RW)(this.handleDirectorySuccess_,this,S,p),(0,_.RW)(this.handleDirectoryError_,this))};
YS.prototype.handleDirectoryError_=function(){this.hasError_=!0;this.directoryOps_--;UO(this)};
YS.prototype.handleFileSuccess_=function(S,p){S.files_.push(p);this.fileOps_--;UO(this)};
YS.prototype.handleFileError_=function(){this.hasError_=!0;this.fileOps_--;UO(this)};
var zjd=function(S,p){this.entry=S;this.parent=p};var LQ=function(S){_.OD.call(this);_.Kz(S,"drop",this.onObjectsDropped_,!1,this);_.Kz(S,"dragenter",this.onFilesDragged_,!1,this);_.Kz(S,"dragover",this.onFilesDragged_,!1,this);_.Kz(S,"dragleave",this.onDragLeave_,!1,this);_.Kz(S,"dragend",this.onDragLeave_,!1,this)};
_.q_(LQ,_.OD);var QAQ=function(S,p){_.Iw.call(this,"f");this.files=S;this.directories=p};
_.q_(QAQ,_.Iw);var n9l=function(){_.Iw.call(this,"h")};
_.q_(n9l,_.Iw);var JlP=function(){_.Iw.call(this,"i")};
_.q_(JlP,_.Iw);var ylq=function(){_.Iw.call(this,"g")};
_.q_(ylq,_.Iw);LQ.prototype.onObjectsDropped_=function(S){var p=this;S.preventDefault();var U=S.event_.dataTransfer;if((S=U&&U.items)&&S.length>0&&S[0].webkitGetAsEntry){U=[];for(var Y=[],L=0;L<S.length;L++){var I=S[L].webkitGetAsEntry();I?U.push(I):Y.push(S[L])}new YS(U,function(V,W,O){O?p.dispatchEvent(new ylq("Error occurred while reading from the file system.")):p.dispatchEvent(new QAQ(V,W,Y))})}else(S=U&&U.files)&&this.dispatchEvent(new QAQ(Array.from(S),[]))};
LQ.prototype.onFilesDragged_=function(S){S.type==="dragenter"&&this.dispatchEvent(new n9l);S.preventDefault()};
LQ.prototype.onDragLeave_=function(){this.dispatchEvent(new JlP)};var KUP=function(S,p){this.JSC$9947_name_=S;this.inputElement_=p};
KUP.prototype.getName=function(){return this.JSC$9947_name_};
KUP.prototype.getInputElement=function(){return this.inputElement_};var Mc=function(S,p,U){p=p===void 0?"single_file":p;U=U===void 0?[]:U;_.OD.call(this);this.overlayTarget_=S;this.parentOverlay_=S!=null?S.parentNode:_.JY("scotty-overlay-parent");this.selectorType_=p;this.acceptTypes_=U;this.overlay_=bJH(this,this.overlayTarget_,this.selectorType_,this.acceptTypes_)};
_.r(Mc,_.OD);
var bJH=function(S,p,U,Y){var L=document.createElement("input");L.setAttribute("type","file");L.setAttribute("name","Filedata");_.Kz(L,"change",S.onFilesSelected_,!1,S);U==="multiple_file"&&(L.multiple="true");U==="single_directory"&&(L.webkitdirectory="true");Y.length>0&&L.setAttribute("accept",Y.join(","));L.style.position="absolute";L.style.overflow="hidden";L.style.height="0px";L.style.width="0px";L.style.opacity="0";L.setAttribute("aria-hidden","true");L.setAttribute("tabIndex",-1);if(S.overlayTarget_!=
null)return L.style.height=p.offsetHeight+"px",L.style.width=p.offsetWidth+"px",S.parentOverlay_&&(S.parentOverlay_.style.position="relative"),_.jc(L,p),XX(L,new _.Xp(p.offsetLeft,p.offsetTop)),L;S.parentOverlay_.appendChild(L);return L};
Mc.prototype.click=function(){this.overlay_.click()};
Mc.prototype.onFilesSelected_=function(S){a:{try{var p=(new XMLHttpRequest).upload!==void 0;break a}catch(D){}p=!1}if(p){var U;S=Array.from((U=S.target.files)!=null?U:[]);U=[];if(this.selectorType_==="single_directory"&&(_.pT||$U||_.SR)){U=new pQ("");if(File.prototype.hasOwnProperty("webkitRelativePath"))for(p=0;p<S.length;p++)for(var Y=S[p],L=Y.webkitRelativePath.split("/"),I=U,V=0;V<L.length;V++){var W=L[V];if(V==L.length-1){W!="."&&I.files_.push(Y);break}var O=I.directoryMap_[W];O==void 0&&(W=
O=new pQ(W),I.directoryMap_[W.getName()]=W,I.directories_.push(W));I=O}U=U.directories_}this.dispatchEvent(new jAE(S,U,null))}else S=S.target.value,S.match(/^c:\\fakepath\\/i)&&(S=S.substring(12)),this.dispatchEvent(new jAE([],[],new KUP(S,this.overlay_)));this.parentOverlay_.removeChild(this.overlay_);this.overlay_=bJH(this,this.overlayTarget_,this.selectorType_,this.acceptTypes_)};
var jAE=function(S,p){_.Iw.call(this,"j");this.files=S;this.directories=p};
_.r(jAE,_.Iw);var rlm=function(S){this.uploadUrl_=S};var Ght=function(){_.OD.call(this)};
_.q_(Ght,_.OD);var Ig=function(S){_.Iw.call(this,S)};
_.q_(Ig,_.Iw);var de=function(S){_.Iw.call(this,S)};
_.q_(de,_.Iw);var hjc=function(S,p,U,Y,L){_.OD.call(this);U=document.createElement("form");U.setAttribute("method",p);U.setAttribute("enctype","multipart/form-data");U.setAttribute("encoding","multipart/form-data");p=document.createElement("input");p.setAttribute("type","hidden");p.setAttribute("name","metadata");p.setAttribute("value",L);U.appendChild(p);U.appendChild(Y);this.JSC$9964_form_=U;S=new _.ma(S);_.vm(S,"upload_protocol","multipart");this.JSC$9964_url_=S.toString();this.JSC$9964_request_=new $i;this.state_=
"Ready";this.JSC$9964_errorDescription_=null;this.JSC$9964_eventHandler_=new _.cr(this);_.Hm(this,this.JSC$9964_eventHandler_);this.JSC$9964_eventHandler_.listen(this.JSC$9964_request_,"success",this.onTransferSuccess_);this.JSC$9964_eventHandler_.listen(this.JSC$9964_request_,"error",this.onTransferError_)};
_.r(hjc,Ght);_.M=hjc.prototype;_.M.run=function(){this.state_="Transferring";var S=this.JSC$9964_request_,p=this.JSC$9964_form_;if(S.JSC$9382_active_)throw Error("me");var U=new _.ma(this.JSC$9964_url_||p.action);S.JSC$9382_form_=p;p=S.JSC$9382_form_;U=_.Gl(U.toString());U!==void 0&&(p.action=U);pBt(S)};
_.M.getResponseCode=function(){return null};
_.M.getResponseText=function(){return this.JSC$9964_request_&&this.JSC$9964_request_.getResponseText()||null};
_.M.JSC$25868_getErrorDescription=function(){return this.JSC$9964_errorDescription_};
_.M.cancel=function(){this.JSC$9964_request_&&this.JSC$9964_request_.abort();this.state_="Cancelled";this.dispatchEvent(new Ig("o"))};
_.M.pause=function(){};
_.M.onTransferSuccess_=function(){this.state_="Complete";this.dispatchEvent(new Ig("l"))};
_.M.onTransferError_=function(){this.JSC$9964_errorDescription_="Transfer failed.";this.state_="Error";this.dispatchEvent(new Ig("n"))};var V5=function(){_.yf.call(this)};
_.r(V5,_.yf);V5.prototype.createXhr=function(){var S=_.yf.prototype.createXhr.call(this);S.upload&&(S.upload.onprogress=(0,_.RW)(this.onProgress_,this));return S};
V5.prototype.onProgress_=function(S){this.dispatchEvent(S)};var RjQ=function(){this.attempt_=-1;this.delayCallId_=null;this.maxDelayMs_=6E4;this.maxAttempts_=-1},XIw=function(S,p){var U=S.attempt_+1;
if(S.maxAttempts_>0&&U>S.maxAttempts_)return!1;U==0?p():S.delayCallId_=Qf(function(){S.delayCallId_=null;p()},FUH(S),S);
S.attempt_=U;return!0};
RjQ.prototype.reset=function(){this.delayCallId_&&_.UX.clearTimeout(this.delayCallId_);this.attempt_=-1};
var FUH=function(S){var p=250*Math.pow(2,S.attempt_);S.maxDelayMs_>=0&&(p=Math.min(p,S.maxDelayMs_));return p};var axw=["Content-Length","Content-Type","Content-Encoding","Transfer-Encoding"];var T1=function(){_.OD.call(this);this.JSC$9974_request_=this.state_=null;this.JSC$9974_withCredentials_=!1;this.transferHandle_=null;this.offset_=this.JSC$9974_bytesTransferred_=0;this.retryIterator_=new RjQ;this.retryIterator_.maxAttempts_=6;this.retryIterator_.maxDelayMs_=6E4;this.JSC$9974_errorDescription_=null;this.JSC$9974_eventHandler_=new _.cr(this);_.Hm(this,this.JSC$9974_eventHandler_);this.JSC$9974_url_=this.blob_=null;this.JSC$9974_method_=void 0;this.chunkSize_=this.JSC$9974_metadata_=
this.JSC$9974_headers_=null;this.requireUploadRequestModification_=!1;this.originalBlobSize_=0;this.detectCorruptedBlobEnabled_=!1;this.lastCommandResponseCode_=this.JSC$9974_responseText_=this.JSC$9974_responseCode_=null;this.pauseRequested_=!1;this.stateAfterUnpausing_=null};
_.q_(T1,Ght);_.M=T1.prototype;_.M.run=function(){Wj(this)};
_.M.getResponseCode=function(){return this.JSC$9974_responseCode_};
_.M.getResponseText=function(){return this.JSC$9974_responseText_};
_.M.JSC$25868_getErrorDescription=function(){return this.JSC$9974_errorDescription_};
_.M.cancel=function(){if(this.state_!="Response received"&&this.state_!="Error"){this.JSC$9974_eventHandler_.removeAll();this.JSC$9974_request_&&this.JSC$9974_request_.abort();this.retryIterator_.reset();var S=this.state_==="Paused"?this.stateAfterUnpausing_:this.state_;if(S==="Upload"||S==="Query")S=new V5,S.JSC$7805_withCredentials_=this.JSC$9974_withCredentials_,S.send(this.transferHandle_.uploadUrl_,"POST","",{"X-Goog-Upload-Command":"cancel"});this.state_="Cancel";this.JSC$9974_bytesTransferred_=
0;this.dispatchEvent(new Ig("o"))}};
_.M.pause=function(){this.pauseRequested_=!0};
var Wj=function(S){var p=S.state_;S.pauseRequested_?(S.pauseRequested_=!1,S.stateAfterUnpausing_=p,S.state_="Paused"):XIw(S.retryIterator_,function(){switch(S.state_){case "Start":S.JSC$9974_request_=new V5;var U=_.h9.clone(S.JSC$9974_headers_);S.blob_.size!=null&&(U["Content-Length"]=S.blob_.size);U=fxE(U);U["X-Goog-Upload-Protocol"]="resumable";U["X-Goog-Upload-Command"]="start";S.JSC$9974_eventHandler_.removeAll();S.JSC$9974_eventHandler_.listen(S.JSC$9974_request_,"complete",S.onStartComplete_);
S.JSC$9974_request_.JSC$7805_withCredentials_=S.JSC$9974_withCredentials_;S.JSC$9974_request_.send(S.JSC$9974_url_,S.JSC$9974_method_,S.JSC$9974_metadata_,U);S.lastCommandResponseCode_=null;S.dispatchEvent(new de("q"));break;case "Upload":U=S.transferHandle_.uploadUrl_;var Y=S.blob_.size;if(xZH()){var L=S.chunkSize_;var I=S.offset_+L>=Y;Y=Cbc(S.blob_,S.offset_,I?Y:S.offset_+L)}else S.offset_=0,Y=S.blob_,I=!0;S.JSC$9974_request_=new V5;S.JSC$9974_request_.JSC$7805_withCredentials_=S.JSC$9974_withCredentials_;
S.JSC$9974_eventHandler_.removeAll();S.JSC$9974_eventHandler_.listen(S.JSC$9974_request_,"progress",S.onUploadProgress_);L=(0,_.RW)(S.JSC$9976_onUploadComplete_,S,S.offset_+Y.size,I);S.JSC$9974_eventHandler_.listen(S.JSC$9974_request_,"complete",L);S.lastCommandResponseCode_=null;S.dispatchEvent(new de("q"));I=Object.assign({},S.JSC$9974_headers_||{},{"X-Goog-Upload-Command":"upload"+(I?", finalize":""),"X-Goog-Upload-Offset":S.offset_});S.JSC$9974_request_.send(U,"POST",Y,I);break;case "Query":S.JSC$9974_request_=
new V5;S.JSC$9974_eventHandler_.removeAll();S.JSC$9974_eventHandler_.listen(S.JSC$9974_request_,"complete",S.onQueryComplete_);U=Object.assign({},S.JSC$9974_headers_||{},{"X-Goog-Upload-Command":"query"});S.JSC$9974_request_.send(S.transferHandle_.uploadUrl_,"POST","",U);S.lastCommandResponseCode_=null;S.dispatchEvent(new de("q"));break;default:throw Error("bf");}})||OO(S,"Transfer encountered too many consecutive failures.")},OO=function(S,p){S.state_="Error";
S.JSC$9974_errorDescription_=p;S.dispatchEvent(new Ig("n"))};
T1.prototype.onStartComplete_=function(S){var p=S.target;this.lastCommandResponseCode_=p.getStatus();this.dispatchEvent(new de("r"));if(POc(p))ZJt(this,p);else if(sAd(p)){S=Bm(S.target.getAllResponseHeaders());for(var U in S)_.Lr(U.toLowerCase(),"x-goog-upload-header-");this.dispatchEvent(new Ig("m"));U=jm(S,"X-Goog-Upload-URL");S=(S=jm(S,"X-Goog-Upload-Chunk-Granularity"))?parseInt(S,10):1;U===void 0||isNaN(S)||S<=0?OO(this,"Server returned invalid headers."):(this.chunkSize_=Math.floor(1073741824/
S)*S,this.transferHandle_=new rlm(U),this.dispatchEvent(new Ig("p")),this.state_="Upload",this.retryIterator_.reset(),Wj(this))}else Wj(this)};
T1.prototype.onUploadProgress_=function(S){this.JSC$9974_bytesTransferred_=this.offset_+S.loaded;this.dispatchEvent(new Ig("k"))};
T1.prototype.JSC$9976_onUploadComplete_=function(S,p,U){var Y=this,L,I;return _.T(function(V){switch(V.nextAddress){case 1:L=U.target;Y.lastCommandResponseCode_=L.getStatus();Y.dispatchEvent(new de("r"));if(ejl(L)||L.getStatus()==404)return Y.JSC$9974_bytesTransferred_=S,ZJt(Y,L),V.return();if(sAd(L)){V.jumpTo(2);break}if(!(I=Y.detectCorruptedBlobEnabled_)){V.jumpTo(3);break}return _.k(V,g9q(Y),4);case 4:I=V.yieldResult;case 3:if(I)return OO(Y,"Blob has been modified or corrupted."),V.return();Y.requireUploadRequestModification_=
L.getStatus()==400;Y.state_="Query";Wj(Y);return V.return();case 2:if(p)return OO(Y,"Got a non-final success response after issuing a finalize command."),V.return();Y.JSC$9974_bytesTransferred_=S;Y.offset_=S;Y.retryIterator_.reset();Wj(Y);return V.return()}})};
T1.prototype.onQueryComplete_=function(S){var p=S.target;this.lastCommandResponseCode_=p.getStatus();this.dispatchEvent(new de("r"));POc(p)?(p.getStatus()===200&&(this.JSC$9974_bytesTransferred_=this.blob_.size),ZJt(this,p)):sAd(p)?(S=Bm(S.target.getAllResponseHeaders()),S=parseInt(jm(S,"X-Goog-Upload-Size-Received"),10),isNaN(S)?OO(this,"Server did not respond with current offset."):S<this.offset_?OO(this,"Server lost bytes! Expected an offset of at least "+this.offset_+", but got an offset of "+
S+"."):this.requireUploadRequestModification_&&this.offset_===S?OO(this,"Server returned the same offset as the last failed upload attempt."):(this.requireUploadRequestModification_=!1,this.offset_<S&&this.retryIterator_.reset(),this.offset_=this.JSC$9974_bytesTransferred_=S,this.state_="Upload",Wj(this))):Wj(this)};
var ZJt=function(S,p){S.JSC$9974_responseCode_=p.getStatus();var U=Bm(p.getAllResponseHeaders());C1k(U);S.JSC$9974_responseText_=p.getResponseText();S.state_="Response received";S.dispatchEvent(new Ig("l"))},sAd=function(S){var p=S.getStatus();
S=Bm(S.getAllResponseHeaders());S=jm(S,"X-Goog-Upload-Status");return p===200&&S==="active"},ejl=function(S){S=Bm(S.getAllResponseHeaders());
return jm(S,"X-Goog-Upload-Status")==="final"},POc=function(S){if(ejl(S))return!0;
S=S.getStatus();return S>=400&&S<500},g9q=function(S){var p;
return _.T(function(U){if(U.nextAddress==1){if(!S.blob_||S.originalBlobSize_<=0)return U.return(!1);if(S.blob_.size!==S.originalBlobSize_)return U.return(!0);_.M2(U,2);if(p=Cbc(S.blob_,0,1)){var Y=new PC,L=nde(Y);Y.reader_.readAsBinaryString(p);U=_.k(U,L,4)}else U=U.return(!0);return U}if(U.nextAddress!=2)return U.return(S.blob_.size!==S.originalBlobSize_);_.W4(U);return U.return(!0)})};var uNj=function(S,p,U,Y,L,I){_.OD.call(this);this.payload_=Y;this.JSC$9977_url_=S;this.JSC$9977_method_=p;this.JSC$9977_headers_=U;this.JSC$9977_metadata_=L;this.encoding_=I||"binary";S=new _.zx;this.boundary_="uploader-"+Er()+"-"+S.JSC$9231_toIsoString();this.JSC$9977_responseText_=this.JSC$9977_responseCode_=this.transferRequest_=null;this.state_="Ready";this.JSC$9977_errorDescription_=null;this.JSC$9977_eventHandler_=new _.cr(this);_.Hm(this,this.JSC$9977_eventHandler_)};
_.r(uNj,Ght);_.M=uNj.prototype;
_.M.run=function(){var S=_.h9.clone(this.JSC$9977_headers_);this.payload_.length!=null&&(S["Content-Length"]=this.payload_.length);S=fxE(S);S["X-Goog-Upload-Protocol"]="multipart";S["Content-Type"]="multipart/related; boundary="+this.boundary_;this.state_="Transferring";this.transferRequest_=new V5;this.JSC$9977_eventHandler_.removeAll();this.JSC$9977_eventHandler_.listen(this.transferRequest_,"progress",this.onTransferProgress_);this.JSC$9977_eventHandler_.listen(this.transferRequest_,"complete",
this.onTransferComplete_);this.transferRequest_.send(this.JSC$9977_url_,this.JSC$9977_method_,"--"+this.boundary_+'\r\nContent-Disposition: form-data; name="metadata"\r\n\r\n'+(this.JSC$9977_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",S)};
_.M.getResponseCode=function(){return this.JSC$9977_responseCode_};
_.M.getResponseText=function(){return this.JSC$9977_responseText_};
_.M.JSC$25868_getErrorDescription=function(){return this.JSC$9977_errorDescription_};
_.M.cancel=function(){this.state_!="Complete"&&this.state_!="Error"&&(this.JSC$9977_eventHandler_.removeAll(),this.transferRequest_&&this.transferRequest_.abort(),this.state_="Cancel",this.dispatchEvent(new Ig("o")))};
_.M.pause=function(){};
_.M.onTransferProgress_=function(){this.dispatchEvent(new Ig("k"))};
_.M.onTransferComplete_=function(S){var p=S.target.getStatus();p===void 0||p===-1?(this.JSC$9977_errorDescription_="Connection broken before response was received.",this.state_="Error",this.dispatchEvent(new Ig("n"))):(this.JSC$9977_responseCode_=p,S=S.target,p=Bm(S.getAllResponseHeaders()),C1k(p),this.JSC$9977_responseText_=S.getResponseText(),this.state_="Complete",this.dispatchEvent(new Ig("l")))};_.wId=function(S,p,U,Y){Y=Y===void 0?!1:Y;if(U instanceof KUP)return new hjc(S,"POST",p,U.getInputElement(),"");if(typeof U==="string"||U instanceof String)return new uNj(S,"POST",p,U,"");var L=new T1(void 0);L.JSC$9974_url_=S;L.JSC$9974_method_="POST";L.JSC$9974_headers_=p;L.blob_=U;L.originalBlobSize_=U.size;L.JSC$9974_metadata_="";Y&&(L.JSC$9974_withCredentials_=Y);L.state_="Start";return L};var kS=function(S){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.UH(S)};
_.r(kS,_.a5);_.M=kS.prototype;_.M.getEnableSsEngine=function(){return _.yY(this,2)};
_.M.getEnableAwr=function(){return _.yY(this,3)};
_.M.getAlohaAutoGaRollout=function(){return _.yY(this,5)};
_.M.getEnableConfigurator=function(){return _.yY(this,6)};
_.M.getEnableMweb=function(){return _.yY(this,7)};
var apt=function(){var S=lpm();return _.G0(S,7,!0)};
kS.prototype.getEnableCtlConsentCheckbox=function(){return _.yY(this,8)};
kS.prototype.getEnableIframe=function(){return _.yY(this,9)};
var lpm=function(){var S=new kS;S=_.G0(S,5,!0);S=_.G0(S,2,!0);S=_.G0(S,4,!1);S=_.G0(S,8,!0);return _.G0(S,9,!0)};
kS.prototype.getEnableScreenshotNudge=function(){return _.yY(this,10)};
var fpq=function(){var S=apt();return _.G0(S,10,!0)};
kS.prototype.getEnableWebStartupConfigEndpoint=function(){return _.yY(this,11)};
kS.prototype.getEnableJunkNudge=function(){return _.yY(this,12)};
var YDk=function(){var S=fpq();return _.G0(S,12,!0)};
_.M=kS.prototype;_.M.getEnableConfiguratorLocale=function(){return _.yY(this,13)};
_.M.getEnableTinyNoPointer=function(){return _.yY(this,14)};
_.M.getEnableSupportSessionLogging=function(){return _.yY(this,15)};
_.M.getEnableFileUploadForScreenshot=function(){return _.yY(this,16)};
_.M.getEnableDirectDeflectionForSingleCategory=function(){return _.yY(this,17)};
_.M.getEnableImageSanitization=function(){return _.yY(this,18)};
_.M.getEnableAlohaBinarySplit=function(){return _.yY(this,19)};
_.M.getEnableDbFeedbackIntents=function(){return _.yY(this,20)};
_.M.getEnableMarkMandatoryFieldsWithRequired=function(){return _.yY(this,21)};
_.M.getEnableFeedbackCategoryCustomUi=function(){return _.yY(this,22)};
_.M.getEnableRealtimeCtl=function(){return _.yY(this,23)};var UNE=function(S){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.UH(S)};
_.r(UNE,_.a5);var xAe=[/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 mAq="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 oZE=_.x1(["https://www.gstatic.com/uservoice/feedback/client/web/","/main_light_binary.js"]),vZd=_.x1(["https://www.gstatic.com/uservoice/feedback/client/web/","/main_binary__",".js"]);var i0G,BXr;var COH,xPm;
COH=function(S,p,U){S.timeOfStartCall=(new Date).getTime();var Y=U||_.UX,L=Y.document,I=S.nonce||_.eO(Y.document);I&&!S.nonce&&(S.nonce=I);if(S.flow=="help"){var V=_.ad("document.location.href",Y);!S.helpCenterContext&&V&&(S.helpCenterContext=V.substring(0,1200));V=!0;if(p&&JSON&&JSON.stringify){var W=JSON.stringify(p);(V=W.length<=1200)&&(S.psdJson=W)}V||(p={invalidPsd:!0})}p=[S,p,U];Y.GOOGLE_FEEDBACK_START_ARGUMENTS=p;U=S.feedbackServerUri||"//www.google.com/tools/feedback";if(V=Y.GOOGLE_FEEDBACK_START)V.apply(Y,p);
else{Y=U+"/load.js?";for(var O in S)p=S[O],p==null||_.pc(p)||(Y+=encodeURIComponent(O)+"="+encodeURIComponent(p)+"&");S=DD(L).createElement("SCRIPT");I&&S.setAttribute("nonce",I);_.fh(S,_.dc(Y));L.body.appendChild(S)}};
xPm=function(S,p,U,Y){var L,I;_.T(function(V){L=U||_.UX;var W=S.serverEnvironment==="DEV",O=U||_.UX;O=S.nonce||_.eO(O.document);W={integrationKeys:{productId:S.productId,feedbackBucket:S.bucket,triggerId:S.triggerId},callbacks:{onClose:S.callback,onLoad:S.onLoadCallback},formContent:{locale:S.locale,disableScreenshot:S.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:S.abuseLink,additionalDataConsent:S.additionalDataConsent},initializationData:{isLocalServer:W,nonce:O,useNightlyRelease:W,feedbackJsUrl:void 0,feedbackCssUrl:void 0,feedbackJsUrlSerialized:void 0,feedbackCssUrlSerialized:void 0,submissionServerUri:S.feedbackServerUri,colorScheme:S.colorScheme},extraData:{productVersion:S.productVersion,authUser:S.authuser,configuratorId:S.configuratorId,customZIndex:S.customZIndex,tinyNoPointer:S.tinyNoPointer,
allowNonLoggedInFeedback:S.allowNonLoggedInFeedback,enableAnonymousFeedback:S.enableAnonymousFeedback}};p&&(O=new Map(Object.entries(p)),W.extraData.productSpecificData=O);I=W;return _.k(V,cHw(I,Y,L),0)})};
_.E9j=function(S,p,U){try{if(S.flow==="help"){var Y=S.helpCenterPath.replace(/^\//,"");_.s3(U||window,"https://support.google.com/"+Y)}else S.flow==="submit"?COH(S,p,U):Lfe(S.productId,S.feedbackServerUri).then(function(L){L=_.Sa(L,kS,1);var I=!W8N||(L==null?void 0:L.getEnableMweb()),V=!S.tinyNoPointer||(L==null?void 0:L.getEnableTinyNoPointer());!L||L.getAlohaAutoGaRollout()&&I&&V?xPm(S,p,U,L):COH(S,p,U)},function(L){L&&L.name!=="DuplicateFormError"&&COH(S,p,U)})}catch(L){xPm(S,p,U,null)}};
_.NT("userfeedback.api.startFeedback",_.E9j);var MlE=/https?:\/\/\S+\.\S+/,ISR=[/^https?:\/\/[0-9a-zA-Z_.-]+\.youtube\.com(?:\/[^\?#]*)?(?:\?[^#]*)?(?:#.*)?$/i,/^https?:\/\/youtube\.com(?:\/[^\?#]*)?(?:\?[^#]*)?(?:#.*)?$/i,/^https?:\/\/youtu\.be(?:\/[^\?#]*)?(?:\?[^#]*)?(?:#.*)?$/i],dNE=[/^[https?:\/\/]*[0-9a-zA-Z_.-]*youtube\.com[\/]+redirect\?.*$/i,/^[https?:\/\/]*[0-9a-zA-Z_.-]*youtu.be[\/]+redirect\?.*$/i];var LMX=function(S){var p=S.split(""),U=[-263237435,15,p,function(Y,L,I){var V=L.length;I.forEach(function(W,O,D){this.push(D[O]=L[(L.indexOf(W)-L.indexOf(this[O])+O+V--)%L.length])},Y.split(""))},
function(Y,L){Y=(Y%L.length+L.length)%L.length;L.splice(-Y).reverse().forEach(function(I){L.unshift(I)})},
"response",function(){for(var Y=64,L=[];++Y-L.length-32;){switch(Y){case 58:Y-=14;case 91:case 92:case 93:continue;case 123:Y=47;case 94:case 95:case 96:continue;case 46:Y=95}L.push(String.fromCharCode(Y))}return L},
null,12,1540023973,65941107,null,p,function(Y,L){for(Y=(Y%L.length+L.length)%L.length;Y--;)L.unshift(L.pop())},
695603893,function(Y){for(var L=Y.length;L;)Y.push(Y.splice(--L,1)[0])},
"'[;'[(",function(Y,L){Y.push(L)},
null,function(Y,L,I,V,W){return L(I,V,W)},
"continuation",p,function(Y,L){if(Y.length!=0){L=(L%Y.length+Y.length)%Y.length;var I=Y[0];Y[0]=Y[L];Y[L]=I}},
function(){for(var Y=64,L=[];++Y-L.length-32;){switch(Y){case 91:Y=44;continue;case 123:Y=65;break;case 65:Y-=18;continue;case 58:Y=96;continue;case 46:Y=95}L.push(String.fromCharCode(Y))}return L},
'"),/]];'];U[7]=U;U[11]=U;U[18]=U;try{(((0,U[15])(U[21]),U[22])(U[11],U[9]),U[22])(U[new Date("1970-01-01T04:30:12.000+04:30")/1E3],U[1]),((0,U[22])(U[11],U[23]),U[4])(U[10],U[18]),(0,U[20])(U[21],U[14])<<(0,U[17])(U[18],U[1]),(0,U[4])(U[8],U[21]),(0,U[19])((0,U[19])((0,U[17])(U[7],U[9]),U[3],U[20],(0,U[6])(),U[2]),U[3],U[5],(0,U[15])(),U[2])}catch(Y){return"aTlOUOubTO4AP____8P_"+S}return p.join("")};_.mPm=new _.v("runAttestationCommand");var o9H=new _.v("verifyCommand");_.Hj=new _.v("accessibilityContext");var v9m=new _.v("accessibilityData");var $Pm=new _.v("profileCardCommand");var rNe=new _.v("signInEndpoint");var jQG=new _.v("signOutEndpoint");var Nbj;_.iJP=new _.v("accountItemSectionRenderer");Nbj=new _.v("accountItemRenderer");_.BbI=new _.v("saveCommandToSessionStorageAction");var qEt=new _.v("crossAccountChannelTransferEndpoint");var y0E=new _.v("getAccountMenuEndpoint");_.K9N=new _.v("getAccountSwitcherEndpoint");var J0u=new _.v("getAccountsListEndpoint");var Alw=new _.v("getAccountsListInnertubeEndpoint");_.DH=new _.v("addToToastAction");var tJE=new _.v("hideEnclosingAction");_.z1=new _.v("replaceEnclosingAction");var clH=new _.v("buttonRefreshAction");var SpH=new _.v("adsControlFlowOpportunityReceivedCommand");var pOt=new _.v("openAdAllowlistInstructionCommand");var U_t=new _.v("videoMastheadAdPrimaryVideoRenderer");var Ypl=new _.v("displayAdRenderer");var $Hr=new _.v("instreamVideoAdRenderer");_.L6e=new _.v("inFeedAdLayoutRenderer");var MCj=new _.v("sequenceItemInPlayerAdLayoutRenderer");_.Iam=new _.v("adSlotRenderer");var d_e=new _.v("adAvatarViewModel");var VCm=new _.v("adBadgeViewModel");var TII=new _.v("adButtonViewModel");var Q5=new _.v("adImageViewModel");var ZVe=new _.v("reelsAdCardButtonedViewModel");var W6c=new _.v("reelsPlayerOverlayLayoutViewModel");var O4P=new _.v("showSchedulingPanelCommand");var kUq=new _.v("backstageCommentsRenderer");var H4c=new _.v("backstageImageRenderer");var D_l=new _.v("backstagePostRenderer");var zOl=new _.v("postRenderer");var QpQ=new _.v("sharedPostRenderer");var n1w=new _.v("createBackstagePostEndpoint");var Jxj=new _.v("getPostVideoPreviewEndpoint");var yxI=new _.v("updateBackstagePostEndpoint");var K6I=new _.v("filterChipTransformCommand");var b4c=new _.v("insertRichSectionCommand");var oJw=new _.v("talkToRecsDeselectCommand");var jpq=new _.v("talkToRecsNextCommand");var m4k=new _.v("talkToRecsSelectCommand");var rxm=new _.v("talkToRecsUpdateTextCommand");_.kM=new _.v("browseEndpoint");_.GUd=new _.v("confirmDialogEndpoint");var hOc=new _.v("expandOnHoverCardRenderer");var ROd=new _.v("lumiereShelfDetailsRenderer");var F6I=new _.v("revealBusinessEmailCommand");var XOj=new _.v("validateChannelHandleCommand");var PGt=new _.v("channelCreationFormEndpoint");var Z4t=new _.v("aboutChannelViewModel");var spQ=new _.v("channelThumbnailWithLinkRenderer");var eOm=new _.v("channelCreationServiceEndpoint");var g1d=new _.v("updateChannelPageSettingsEndpoint");var nQ=function(S){this.delegate=S},J1=function(){nQ.apply(this,arguments)};
_.r(J1,nQ);_.$u.Object.defineProperties(J1.prototype,{entityMetadata:{configurable:!0,enumerable:!0,get:function(){return this.delegate.entityMetadata},
set:function(S){this.delegate.entityMetadata=S}}});var u7c=function(){J1.apply(this,arguments)};
_.r(u7c,J1);u7c.prototype.getAssociations=function(){return[]};var ZbE=new _.v("webThumbnailDetailsExtensionData");var QcG=new _.v("commandContext");var wOw=new _.v("addVideoLinkAction");var laE=new _.v("createPollAction");var aat=new _.v("hideIdentityChipAction");var faq=new _.v("openUpdateCommentDialogAction");var y5=new _.v("updateBackstagePollAction");var CGj=new _.v("updateCommentVoteAction");var x_P=new _.v("commentThreadRenderer");var E1H=function(){J1.apply(this,arguments)};
_.r(E1H,J1);E1H.prototype.getAssociations=function(){return[]};_.m_q=new _.v("commentDialogRenderer");var o1H=new _.v("updateCommentsSettingsEndpoint");var v1E=new _.v("commentViewModel");var $_e=new _.v("triStateButtonViewModel");var i4Q=new _.v("voiceReplyContainerViewModel");_.I2=new _.v("commandExecutorCommand");var Xi=new _.v("emoji");var NIH=new _.v("updateCreatorChannelInnertubeCommand");_.BIH=new _.v("appendContinuationItemsAction");_.qpP=new _.v("changeEngagementPanelVisibilityAction");_.Zt=new _.v("continuationCommand");var AxQ=new _.v("listMutationCommand");_.KQ=new _.v("openPopupAction");var tCI=new _.v("persistSubscriptionsDisplayPreferencesCommand");var INE;_.cxe=new _.v("playlistRemoveVideosAction");_.Sxt=new _.v("updatePlaylistAction");_.pgP=new _.v("addToPlaylistCommand");_.UOq=new _.v("endPlaylistCommand");_.Yxm=new _.v("recoverPlaylistCommand");_.L5E=new _.v("refreshPlaylistCommand");_.MRc=new _.v("refreshFormCommand");INE=new _.v("openOnePickAddVideoModalCommand");_.Rre=new _.v("reloadContinuationItemsCommand");_.dOH=new _.v("scrollToEngagementPanelCommand");var VRH=new _.v("selectCountryCommand");var T1w=new _.v("showReloadUiCommand");var W5d=new _.v("undoFeedbackAction");var OTj=new _.v("updateButtonAction");var kRE=new _.v("updateSubscribeButtonAction");var HTw=new _.v("updateToggleAction");var DOt=new _.v("webNativeShareCommand");_.NU=new _.v("webCommandMetadata");_.bB=new _.v("webHandleServiceEndpointExtension");var jJk=new _.v("webNavigationEndpointData");var zyd=new _.v("copyLinkCommand");var Qat=new _.v("playlistVotingRefreshPopupCommand");var nCl=new _.v("selectChipCommand");var JkP=new _.v("setCookieCommand");var ykm=new _.v("setLocalStorageCommand");var K5Q=new _.v("setPrefStorageEntryCommand");var GRP;_.bTl=new _.v("settingsUpdateCheckboxCommand");_.jad=new _.v("settingsUpdateTextCommand");_.rkH=new _.v("settingsUpdateOptionsCommand");GRP=new _.v("settingsUpdateSwitchCommand");_.hyq=new _.v("settingsUpdateConnectedAppRendererCommand");var Ryq=new _.v("updateTextInputFormFieldRendererCommand");var F5q=new _.v("updateToggleButtonStateCommand");var XgI=new _.v("updateUrlParamCommand");var PYQ=new _.v("webSubmitFormCommand");var ZTQ=new _.v("channelSwitcherPageRenderer"),saq=new _.v("updateChannelSwitcherPageAction");_.SC=new _.v("continuationItemRenderer");_.jq=new _.v("richItemRenderer");var eyH=new _.v("richSectionRenderer");_.gCq=new _.v("richShelfRenderer");_.uUt=new _.v("metadataBadgeRenderer");_.wge=new _.v("multiPageMenuNotificationSectionRenderer");_.lNt=new _.v("playlistLoopButtonStateRenderer");var aNw=new _.v("claimLegacyYoutubeChannelEndpoint");var fNm=new _.v("getNotificationMenuEndpoint");var CYq=new _.v("getSearchInVideoCommand");_.xOq=new _.v("getTranscriptEndpoint");_.TI=new _.v("signalServiceEndpoint");var ECt=new _.v("verifyAgeEndpoint");var d3w=function(S){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.UH(S)};
_.r(d3w,_.a5);d3w.prototype.getPath=function(){return _.jR(this,1)};
d3w.prototype.getValue=function(){return _.jR(this,2)};var mOc=[0,_.fT,-1];var oCm=function(S){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.UH(S)};
_.r(oCm,_.a5);var IWw=_.ti(oCm,[0,_.CT,mOc]);var vCE=new _.v("dismissalEndpoint");var $Ow=new _.v("elementsCommand");_.Z$=new _.v("innertubeCommand");var iTt=new _.v("multipleInlinePlaybackCommand");var IBG=new _.v("loggingDirectives");var N1j=new _.v("acknowledgeChannelTouStrikeCommand");var B1m=function(){J1.apply(this,arguments)};
_.r(B1m,J1);B1m.prototype.getAssociations=function(){return[]};var qxI=function(){J1.apply(this,arguments)};
_.r(qxI,J1);qxI.prototype.getAssociations=function(){return[]};var Cs=new _.v("entityBatchUpdate");_.Ake=new _.v("entityUpdateCommand");var tRj=function(){J1.apply(this,arguments)};
_.r(tRj,J1);tRj.prototype.getAssociations=function(){var S=[];this.delegate.alternateChannel&&S.push(this.delegate.alternateChannel);this.delegate.alternateChannelList&&S.push.apply(S,_.jo(this.delegate.alternateChannelList));this.delegate.oneofChannelEntity&&S.push(this.delegate.oneofChannelEntity);return[].concat(_.jo(new Set(S)))};var ckH=function(){J1.apply(this,arguments)};
_.r(ckH,J1);ckH.prototype.getAssociations=function(){var S=[];this.delegate.entryCollection&&S.push(this.delegate.entryCollection);return[].concat(_.jo(new Set(S)))};
var SCQ=function(){J1.apply(this,arguments)};
_.r(SCQ,J1);SCQ.prototype.getAssociations=function(){var S=[];this.delegate.parentPlaylist&&S.push(this.delegate.parentPlaylist);if(this.delegate.entries)for(var p=_.d(this.delegate.entries),U=p.next();!U.done;U=p.next())S.push.apply(S,_.jo((new pDH(U.value)).getAssociations()));return[].concat(_.jo(new Set(S)))};
var pDH=function(){nQ.apply(this,arguments)};
_.r(pDH,nQ);pDH.prototype.getAssociations=function(){var S=[];this.delegate.video&&S.push(this.delegate.video);return[].concat(_.jo(new Set(S)))};var UAI=function(){J1.apply(this,arguments)};
_.r(UAI,J1);UAI.prototype.getAssociations=function(){var S=[];this.delegate.descriptionEntity&&S.push(this.delegate.descriptionEntity);this.delegate.creators&&S.push.apply(S,_.jo(this.delegate.creators));this.delegate.theBiggestFan&&S.push(this.delegate.theBiggestFan);return[].concat(_.jo(new Set(S)))};
var YCl=function(){J1.apply(this,arguments)};
_.r(YCl,J1);YCl.prototype.getAssociations=function(){return[]};var LCl=new _.v("fantasyRosterViewModel");var McP=new _.v("addFollowUpSurveyCommand");var Ixm=new _.v("getSurveyCommand");var dAI=new _.v("ratingSurveyOptionRenderer");_.Rp=new _.v("feedbackEndpoint");var Vcd=new _.v("reportHistoryTableCellRenderer"),TXe=new _.v("reportHistoryTableTextCellRenderer"),WCd=new _.v("reportHistoryTableReasonCellRenderer");_.O0q=new _.v("flagEndpoint");var kXw=new _.v("getFlowCommand");var H0q=new _.v("submitFormWithValidationFlowCommand");var DAd=function(){J1.apply(this,arguments)};
_.r(DAd,J1);DAd.prototype.getAssociations=function(){return[]};var zXI=new _.v("flowFormState");var Q3d=new _.v("gameCardRenderer");var nZI=new _.v("accountLinkingStateChangedCommand");var JHm=function(){J1.apply(this,arguments)};
_.r(JHm,J1);JHm.prototype.getAssociations=function(){return[]};var yHm=new _.v("changeMiniAppPlayStateCommand");var KCd=function(S){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.UH(S)};
_.r(KCd,_.a5);var re=[1,2,3];var b0t=[0,re,fXR,_.C3N,sjq];var j3m=_.ti(KCd,b0t),rHq=_.cY(b0t);var GXQ=function(S){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.UH(S)};
_.r(GXQ,_.a5);var hXl=[0,_.uY,_.fT];var RXm=function(S){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.UH(S)};
_.r(RXm,_.a5);var FCt=[0,_.fT,_.uY,-1];var XDt=function(S){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.UH(S)};
_.r(XDt,_.a5);var P1t=function(S,p){return _.pf(S,3,p)};var Z0l=_.cY([0,1,hXl,_.Ex,FCt]);var s3c=new _.v("miniAppScoreChallengeViewModel");var eXw=new _.v("miniGameCardViewModel");var gZm=new _.v("teaserCardViewModel");var uXj=function(){J1.apply(this,arguments)};
_.r(uXj,J1);uXj.prototype.getAssociations=function(){return[]};_.wDt=new _.v("feedbackItemRenderer");var lxH=function(){J1.apply(this,arguments)};
_.r(lxH,J1);lxH.prototype.getAssociations=function(){return[]};_.axH=new _.v("playerInterstitialRenderer");var fxI=new _.v("getKidsBlocklistPickerCommand");_.C1w=new _.v("updateKidsBlacklistEndpoint");_.lO=new _.v("likeEndpoint");var xAq,EZH,mAE;xAq=new _.v("addChatItemAction");EZH=new _.v("removeChatItemAction");mAE=new _.v("markChatItemAsDeletedAction");_.oZI=new _.v("setLiveChatCollapsedStateAction");var vZe=function(){J1.apply(this,arguments)};
_.r(vZe,J1);vZe.prototype.getAssociations=function(){return[]};var $Ac=function(S){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.UH(S)};
_.r($Ac,_.a5);var i0j=_.ti($Ac,[0,1,_.uY]);var NXI=new _.v("liveChatEndpoint");var BXc=new _.v("liveChatItemContextMenuEndpoint");var qCm=new _.v("liveChatReplayEndpoint");_.AHE=new _.v("emojiPickerRenderer");var tcq=new _.v("liveChatAuthorBadgeViewModel");var cHH=new _.v("deleteLiveChatMessageCommand");var SDE=new _.v("liveChatActionEndpoint");var p3e=new _.v("createLiveChatPollEndpoint");var UNI=new _.v("manageLiveChatUserEndpoint");var YDw=new _.v("moderateLiveChatEndpoint");_.Lft=new _.v("sendLiveChatMessageEndpoint");var MlI=new _.v("sendLiveChatVoteEndpoint");var ISm=new _.v("clearLocationCommand");var dNI=new _.v("resolveLocationCommand");var VlQ=new _.v("interactionLoggingCommandMetadata");var xEX=function(S){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.UH(S)};
_.r(xEX,_.a5);var CmG=function(S,p){return _.d5(S,1,p)};var TMP=[0,_.lY];var fTr=function(S){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.UH(S)};
_.r(fTr,_.a5);var aTR=function(S,p){return zY(S,1,xEX,p)};fTr.prototype.JSC$10069_serializeBinary=pYk([0,_.CT,TMP]);var X3q={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 WfE={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"},
OWc={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 awq={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"};_.iPq=new _.v("logFlowLoggingEventCommand");_.D$=new _.v("loggingContext");var kBI=new _.v("captionLanguageSelectActionCommand");var HWc=new _.v("showCaptionLanguageSelectActionCommand");var DNd=new _.v("dismissDialogEndpoint");var zBc=new _.v("hideItemSectionVideosByIdCommand");var Qwt=new _.v("showMiniplayerCommand");var nxt=function(){J1.apply(this,arguments)};
_.r(nxt,J1);nxt.prototype.getAssociations=function(){return[]};var J2l=function(){J1.apply(this,arguments)};
_.r(J2l,J1);J2l.prototype.getAssociations=function(){return[]};var y2j=function(){J1.apply(this,arguments)};
_.r(y2j,J1);y2j.prototype.getAssociations=function(){return[]};var Kfe=function(){J1.apply(this,arguments)};
_.r(Kfe,J1);Kfe.prototype.getAssociations=function(){var S=[];this.delegate.downloadsList&&S.push(this.delegate.downloadsList);this.delegate.smartDownloadsList&&S.push(this.delegate.smartDownloadsList);this.delegate.recommendedDownloadsList&&S.push(this.delegate.recommendedDownloadsList);this.delegate.refresh&&S.push(this.delegate.refresh);return[].concat(_.jo(new Set(S)))};var bWw=function(){J1.apply(this,arguments)};
_.r(bWw,J1);bWw.prototype.getAssociations=function(){var S=[];this.delegate.refresh&&S.push(this.delegate.refresh);if(this.delegate.downloads)for(var p=_.d(this.delegate.downloads),U=p.next();!U.done;U=p.next())S.push.apply(S,_.jo((new jwH(U.value)).getAssociations()));return[].concat(_.jo(new Set(S)))};
var jwH=function(){nQ.apply(this,arguments)};
_.r(jwH,nQ);jwH.prototype.getAssociations=function(){var S=[];this.delegate.video&&S.push(this.delegate.video);this.delegate.playlist&&S.push(this.delegate.playlist);this.delegate.videoItem&&S.push(this.delegate.videoItem);this.delegate.playlistItem&&S.push(this.delegate.playlistItem);return[].concat(_.jo(new Set(S)))};var r2t=function(){J1.apply(this,arguments)};
_.r(r2t,J1);r2t.prototype.getAssociations=function(){var S=[];this.delegate.localImageEntities&&S.push.apply(S,_.jo(this.delegate.localImageEntities));return[].concat(_.jo(new Set(S)))};var GBj=function(){J1.apply(this,arguments)};
_.r(GBj,J1);GBj.prototype.getAssociations=function(){var S=[];this.delegate.playbackData&&S.push(this.delegate.playbackData);this.delegate.localImageEntities&&S.push.apply(S,_.jo(this.delegate.localImageEntities));this.delegate.videoDownloadContextEntity&&S.push(this.delegate.videoDownloadContextEntity);return[].concat(_.jo(new Set(S)))};var hBE=function(){J1.apply(this,arguments)};
_.r(hBE,J1);hBE.prototype.getAssociations=function(){return[]};var RBj=function(){J1.apply(this,arguments)};
_.r(RBj,J1);RBj.prototype.getAssociations=function(){var S=[];this.delegate.fakeChildren&&S.push.apply(S,_.jo(this.delegate.fakeChildren));return[].concat(_.jo(new Set(S)))};var FfP=function(){J1.apply(this,arguments)};
_.r(FfP,J1);FfP.prototype.getAssociations=function(){var S=[];this.delegate.video&&S.push(this.delegate.video);this.delegate.playbackData&&S.push(this.delegate.playbackData);this.delegate.offlineVideoPolicy&&S.push(this.delegate.offlineVideoPolicy);return[].concat(_.jo(new Set(S)))};var X3E=function(){J1.apply(this,arguments)};
_.r(X3E,J1);X3E.prototype.getAssociations=function(){return[]};var PRj=function(){J1.apply(this,arguments)};
_.r(PRj,J1);PRj.prototype.getAssociations=function(){var S=[];this.delegate.channelOwner&&S.push(this.delegate.channelOwner);this.delegate.videos&&S.push.apply(S,_.jo(this.delegate.videos));this.delegate.collaboratorChannels&&S.push.apply(S,_.jo(this.delegate.collaboratorChannels));this.delegate.downloadState&&S.push(this.delegate.downloadState);this.delegate.refresh&&S.push(this.delegate.refresh);return[].concat(_.jo(new Set(S)))};var ZWE=function(){J1.apply(this,arguments)};
_.r(ZWE,J1);ZWE.prototype.getAssociations=function(){var S=[];this.delegate.video&&S.push(this.delegate.video);this.delegate.channelContributor&&S.push(this.delegate.channelContributor);return[].concat(_.jo(new Set(S)))};var swt=function(){nQ.apply(this,arguments)};
_.r(swt,nQ);swt.prototype.getAssociations=function(){var S=[];this.delegate.recommendedVideoMetadata&&S.push.apply(S,_.jo((new eBc(this.delegate.recommendedVideoMetadata)).getAssociations()));return[].concat(_.jo(new Set(S)))};
var eBc=function(){nQ.apply(this,arguments)};
_.r(eBc,nQ);eBc.prototype.getAssociations=function(){var S=[];this.delegate.localImageEntities&&S.push.apply(S,_.jo(this.delegate.localImageEntities));this.delegate.videoDownloadContextEntity&&S.push(this.delegate.videoDownloadContextEntity);return[].concat(_.jo(new Set(S)))};var gxc=function(){nQ.apply(this,arguments)};
_.r(gxc,nQ);gxc.prototype.getAssociations=function(){var S=[];this.delegate.playbackPosition&&S.push(this.delegate.playbackPosition);return[].concat(_.jo(new Set(S)))};var u8j=function(){J1.apply(this,arguments)};
_.r(u8j,J1);u8j.prototype.getAssociations=function(){var S=[];this.delegate.owner&&S.push(this.delegate.owner);this.delegate.downloadState&&S.push(this.delegate.downloadState);this.delegate.userState&&S.push.apply(S,_.jo((new gxc(this.delegate.userState)).getAssociations()));this.delegate.additionalMetadata&&S.push.apply(S,_.jo((new swt(this.delegate.additionalMetadata)).getAssociations()));return[].concat(_.jo(new Set(S)))};var w3t=function(){J1.apply(this,arguments)};
_.r(w3t,J1);w3t.prototype.getAssociations=function(){var S=[];this.delegate.userChannelDetails&&S.push(this.delegate.userChannelDetails);return[].concat(_.jo(new Set(S)))};var lSq=function(){J1.apply(this,arguments)};
_.r(lSq,J1);lSq.prototype.getAssociations=function(){var S=[];this.delegate.channelOwner&&S.push(this.delegate.channelOwner);this.delegate.playbackPosition&&S.push(this.delegate.playbackPosition);this.delegate.localImageEntities&&S.push.apply(S,_.jo(this.delegate.localImageEntities));this.delegate.downloadStatus&&S.push(this.delegate.downloadStatus);return[].concat(_.jo(new Set(S)))};var Uce=new _.v("downloadsPageSmartDownloadsOptInBannerParams");var aSe=function(){J1.apply(this,arguments)};
_.r(aSe,J1);aSe.prototype.getAssociations=function(){return[]};var fSd=function(){J1.apply(this,arguments)};
_.r(fSd,J1);fSd.prototype.getAssociations=function(){return[]};var CRq=function(){J1.apply(this,arguments)};
_.r(CRq,J1);CRq.prototype.getAssociations=function(){return[]};var xNc=function(){J1.apply(this,arguments)};
_.r(xNc,J1);xNc.prototype.getAssociations=function(){return[]};var Exq=function(){J1.apply(this,arguments)};
_.r(Exq,J1);Exq.prototype.getAssociations=function(){return[]};var mNm=function(){J1.apply(this,arguments)};
_.r(mNm,J1);mNm.prototype.getAssociations=function(){return[]};var oxI=function(){J1.apply(this,arguments)};
_.r(oxI,J1);oxI.prototype.getAssociations=function(){return[]};var vxt=function(){J1.apply(this,arguments)};
_.r(vxt,J1);vxt.prototype.getAssociations=function(){return[]};var $NH=function(){J1.apply(this,arguments)};
_.r($NH,J1);$NH.prototype.getAssociations=function(){return[]};_.hn=new _.v("dislikeButtonViewModel");_.Gy=new _.v("likeButtonViewModel");var iWE=new _.v("videoSummaryContentViewModel");var NMQ=new _.v("videoSummaryParagraphViewModel");var BMw=new _.v("changeTimelyActionVisibilityCommand");var qDE=new _.v("hideEngagementPanelEndpoint");var A2m=new _.v("refreshPanelEndpoint");var tld=new _.v("scrollToSectionEndpoint");var c2Q=new _.v("seekToVideoTimestampCommand");_.hx=new _.v("showEngagementPanelEndpoint");var SBm=new _.v("showTransientPlayerScrimOverlayCommand");var pFq=new _.v("toggleEngagementPanelCommand");_.UCc=new _.v("createBroadcastCommand");var YBt=new _.v("metadataUpdateCommand");var Lnt=function(){J1.apply(this,arguments)};
_.r(Lnt,J1);Lnt.prototype.getAssociations=function(){return[]};var MYe=function(){J1.apply(this,arguments)};
_.r(MYe,J1);MYe.prototype.getAssociations=function(){return[]};var I7m=function(){J1.apply(this,arguments)};
_.r(I7m,J1);I7m.prototype.getAssociations=function(){return[]};_.dCP=new _.v("merchandiseShelfRenderer");var VYt=new _.v("gridMovieRenderer");_.Toq=new _.v("movieRenderer");var Wnl=function(){J1.apply(this,arguments)};
_.r(Wnl,J1);Wnl.prototype.getAssociations=function(){var S=[];this.delegate.trackDownloadMetadatas&&S.push.apply(S,_.jo(this.delegate.trackDownloadMetadatas));return[].concat(_.jo(new Set(S)))};var OXm=function(){J1.apply(this,arguments)};
_.r(OXm,J1);
OXm.prototype.getAssociations=function(){var S=[];this.delegate.downloadedTracks&&S.push.apply(S,_.jo(this.delegate.downloadedTracks));this.delegate.smartDownloadedTracks&&S.push.apply(S,_.jo(this.delegate.smartDownloadedTracks));this.delegate.downloadedEpisodes&&S.push.apply(S,_.jo(this.delegate.downloadedEpisodes));this.delegate.downloadedAlbumReleases&&S.push.apply(S,_.jo(this.delegate.downloadedAlbumReleases));this.delegate.smartDownloadedAlbumReleases&&S.push.apply(S,_.jo(this.delegate.smartDownloadedAlbumReleases));this.delegate.downloadedPlaylists&&
S.push.apply(S,_.jo(this.delegate.downloadedPlaylists));this.delegate.smartDownloadedPlaylists&&S.push.apply(S,_.jo(this.delegate.smartDownloadedPlaylists));this.delegate.metadataOnlyTracks&&S.push.apply(S,_.jo(this.delegate.metadataOnlyTracks));return[].concat(_.jo(new Set(S)))};var k9q=function(){J1.apply(this,arguments)};
_.r(k9q,J1);k9q.prototype.getAssociations=function(){var S=[];this.delegate.trackDownloadMetadatas&&S.push.apply(S,_.jo(this.delegate.trackDownloadMetadatas));return[].concat(_.jo(new Set(S)))};var HXm=function(){J1.apply(this,arguments)};
_.r(HXm,J1);HXm.prototype.getAssociations=function(){var S=[];this.delegate.playbackData&&S.push(this.delegate.playbackData);this.delegate.localImageEntities&&S.push.apply(S,_.jo(this.delegate.localImageEntities));this.delegate.videoDownloadContextEntity&&S.push(this.delegate.videoDownloadContextEntity);return[].concat(_.jo(new Set(S)))};var DCI=function(){J1.apply(this,arguments)};
_.r(DCI,J1);
DCI.prototype.getAssociations=function(){var S=[];this.delegate.musicLibraryStatusEntity&&S.push(this.delegate.musicLibraryStatusEntity);this.delegate.primaryArtists&&S.push.apply(S,_.jo(this.delegate.primaryArtists));this.delegate.details&&S.push(this.delegate.details);this.delegate.userDetails&&S.push(this.delegate.userDetails);this.delegate.tracks&&S.push.apply(S,_.jo(this.delegate.tracks));this.delegate.share&&S.push(this.delegate.share);this.delegate.downloadMetadata&&S.push(this.delegate.downloadMetadata);this.delegate.refresh&&
S.push(this.delegate.refresh);return[].concat(_.jo(new Set(S)))};
var zLw=function(){J1.apply(this,arguments)};
_.r(zLw,J1);zLw.prototype.getAssociations=function(){var S=[];this.delegate.albumRelease&&S.push(this.delegate.albumRelease);this.delegate.tracks&&S.push.apply(S,_.jo(this.delegate.tracks));return[].concat(_.jo(new Set(S)))};
var QEl=function(){J1.apply(this,arguments)};
_.r(QEl,J1);QEl.prototype.getAssociations=function(){var S=[];this.delegate.albumRelease&&S.push(this.delegate.albumRelease);return[].concat(_.jo(new Set(S)))};var ngI=function(){J1.apply(this,arguments)};
_.r(ngI,J1);ngI.prototype.getAssociations=function(){var S=[];this.delegate.details&&S.push(this.delegate.details);this.delegate.userDetails&&S.push(this.delegate.userDetails);return[].concat(_.jo(new Set(S)))};
var JsH=function(){J1.apply(this,arguments)};
_.r(JsH,J1);JsH.prototype.getAssociations=function(){var S=[];this.delegate.parentArtist&&S.push(this.delegate.parentArtist);return[].concat(_.jo(new Set(S)))};
var yst=function(){J1.apply(this,arguments)};
_.r(yst,J1);yst.prototype.getAssociations=function(){var S=[];this.delegate.parentArtist&&S.push(this.delegate.parentArtist);return[].concat(_.jo(new Set(S)))};var Knc=function(){J1.apply(this,arguments)};
_.r(Knc,J1);Knc.prototype.getAssociations=function(){return[]};var bXc=function(){J1.apply(this,arguments)};
_.r(bXc,J1);bXc.prototype.getAssociations=function(){return[]};var jEc=function(){J1.apply(this,arguments)};
_.r(jEc,J1);
jEc.prototype.getAssociations=function(){var S=[];this.delegate.tracks&&S.push.apply(S,_.jo(this.delegate.tracks));this.delegate.refresh&&S.push(this.delegate.refresh);this.delegate.musicLibraryStatusEntity&&S.push(this.delegate.musicLibraryStatusEntity);this.delegate.details&&S.push(this.delegate.details);this.delegate.downloadMetadata&&S.push(this.delegate.downloadMetadata);this.delegate.sideloadMetadata&&S.push(this.delegate.sideloadMetadata);this.delegate.userDetails&&S.push(this.delegate.userDetails);this.delegate.entryCollection&&
S.push(this.delegate.entryCollection);this.delegate.share&&S.push(this.delegate.share);this.delegate.podcastShowAdditionalMetadata&&S.push.apply(S,_.jo((new rsl(this.delegate.podcastShowAdditionalMetadata)).getAssociations()));return[].concat(_.jo(new Set(S)))};
var rsl=function(){nQ.apply(this,arguments)};
_.r(rsl,nQ);rsl.prototype.getAssociations=function(){var S=[];this.delegate.creatorEntity&&S.push(this.delegate.creatorEntity);return[].concat(_.jo(new Set(S)))};var G9l=function(){J1.apply(this,arguments)};
_.r(G9l,J1);G9l.prototype.getAssociations=function(){return[]};var hLw=function(){J1.apply(this,arguments)};
_.r(hLw,J1);
hLw.prototype.getAssociations=function(){var S=[];this.delegate.musicLibraryStatusEntity&&S.push(this.delegate.musicLibraryStatusEntity);this.delegate.artists&&S.push.apply(S,_.jo(this.delegate.artists));this.delegate.audioModeVersion&&S.push(this.delegate.audioModeVersion);this.delegate.videoModeVersion&&S.push(this.delegate.videoModeVersion);this.delegate.userDetails&&S.push(this.delegate.userDetails);this.delegate.details&&S.push(this.delegate.details);this.delegate.albumRelease&&S.push(this.delegate.albumRelease);this.delegate.share&&
S.push(this.delegate.share);this.delegate.libraryEdit&&S.push(this.delegate.libraryEdit);this.delegate.downloadMetadata&&S.push(this.delegate.downloadMetadata);this.delegate.playbackPosition&&S.push(this.delegate.playbackPosition);this.delegate.lyrics&&S.push(this.delegate.lyrics);return[].concat(_.jo(new Set(S)))};
var RLc=function(){J1.apply(this,arguments)};
_.r(RLc,J1);RLc.prototype.getAssociations=function(){var S=[];this.delegate.parentTrack&&S.push(this.delegate.parentTrack);return[].concat(_.jo(new Set(S)))};
var Fnw=function(){J1.apply(this,arguments)};
_.r(Fnw,J1);Fnw.prototype.getAssociations=function(){var S=[];this.delegate.parentTrack&&S.push(this.delegate.parentTrack);return[].concat(_.jo(new Set(S)))};var qP=new _.v("musicResponsiveListItemRenderer");var ZkG=new _.v("addToPlaylistEndpoint");var XFc=new _.v("captionPickerEndpoint");var PhH=new _.v("suggestStats");var ZXI=new _.v("backstageImageUploadEndpoint");var sEw=new _.v("createBackstagePostDialogEndpoint");_.eLI=new _.v("createCommentReplyDialogEndpoint");_.ggd=new _.v("updateCommentDialogEndpoint");_.ulP=new _.v("updateCommentReplyDialogEndpoint");var wFw=new _.v("menuEndpoint");var yLw=new _.v("modalEndpoint");var l7m=new _.v("playlistEditorEndpoint");var a7c=new _.v("copyTextEndpoint");var f7t,Chd;f7t=new _.v("shareEndpoint");Chd=new _.v("shareEntityEndpoint");_.xCt=new _.v("shareEntityServiceEndpoint");_.m1w=new _.v("userFeedbackEndpoint");_.E$=new _.v("watchEndpoint");var Yjk=new _.v("watchPlaylistEndpoint");var Egj=new _.v("addUpcomingEventReminderEndpoint");_.G1=new _.v("getCommentsFromInboxCommand");var mCt=new _.v("notificationOptOutEndpoint");var ogm=new _.v("recordNotificationInteractionsEndpoint");var vgl=new _.v("removeUpcomingEventReminderEndpoint");var X9w=new _.v("getDownloadActionCommand");_.$Cq=new _.v("offlineOrchestrationActionCommand");var iXE=function(){J1.apply(this,arguments)};
_.r(iXE,J1);iXE.prototype.getAssociations=function(){return[]};var NoP=function(){J1.apply(this,arguments)};
_.r(NoP,J1);NoP.prototype.getAssociations=function(){return[]};var Boc=function(){J1.apply(this,arguments)};
_.r(Boc,J1);Boc.prototype.getAssociations=function(){return[]};var qBq=function(){J1.apply(this,arguments)};
_.r(qBq,J1);qBq.prototype.getAssociations=function(){return[]};var AsQ=function(){J1.apply(this,arguments)};
_.r(AsQ,J1);AsQ.prototype.getAssociations=function(){var S=[];this.delegate.transfer&&S.push(this.delegate.transfer);this.delegate.adsPlaybackData&&S.push.apply(S,_.jo(this.delegate.adsPlaybackData));this.delegate.drmLicense&&S.push(this.delegate.drmLicense);this.delegate.offlineVideoPolicy&&S.push(this.delegate.offlineVideoPolicy);this.delegate.videoDownloadContextEntity&&S.push(this.delegate.videoDownloadContextEntity);return[].concat(_.jo(new Set(S)))};var tYq=function(){J1.apply(this,arguments)};
_.r(tYq,J1);tYq.prototype.getAssociations=function(){return[]};var csm=function(){J1.apply(this,arguments)};
_.r(csm,J1);csm.prototype.getAssociations=function(){var S=[];this.delegate.offlineVideoStreams&&S.push.apply(S,_.jo(this.delegate.offlineVideoStreams));this.delegate.captionTrack&&S.push.apply(S,_.jo(this.delegate.captionTrack));return[].concat(_.jo(new Set(S)))};var SwI=function(){J1.apply(this,arguments)};
_.r(SwI,J1);SwI.prototype.getAssociations=function(){return[]};var p1t=new _.v("showMoreDrawerCommand");var UVP=new _.v("updateEngagementPanelContentCommand");var Ywt=new _.v("getPdgBuyFlowCommand");var LZj=new _.v("liveChatPurchaseMessageEndpoint");var M0d=new _.v("openSuperStickerBuyFlowCommand");var I0Q=new _.v("updatePdgFeatureEnablementCommand");var dVE=function(){J1.apply(this,arguments)};
_.r(dVE,J1);dVE.prototype.getAssociations=function(){return[]};var V0Q=function(){J1.apply(this,arguments)};
_.r(V0Q,J1);V0Q.prototype.getAssociations=function(){return[]};_.Tlq=new _.v("pdgCommentChipRenderer");_.WZe=new _.v("permissionRoleBottomBarRenderer");_.ODt=new _.v("updatePermissionRoleCommand");var kAm=new _.v("prefetchWatchCommand");var HDI=new _.v("updatePlayerErrorMessageCommand");var bke=new _.v("toggleCaptionsVisibilityCommand");_.DVt=new _.v("quickActionsViewModel");var zxE=new _.v("playerResponse");var Qqe=new _.v("playlistRenderer");_.nrP=new _.v("playlistVideoListRenderer");_.h1=new _.v("playlistEditEndpoint");var Jcj=new _.v("createImagePollCommand");var ycm=new _.v("createQuizCommand");var KZl=new _.v("quizRenderer");var bDP=new _.v("uploadedVideoRenderer");var jqw=new _.v("decorateMessageEndpoint");var rcm=new _.v("lpOfferCardOptionViewModel");var GAE=new _.v("sfvAudioItemPlaybackCommand");var hxl=function(){J1.apply(this,arguments)};
_.r(hxl,J1);hxl.prototype.getAssociations=function(){return[]};_.Rg=new _.v("reelNonVideoContentEndpoint");_.QX=new _.v("reelWatchEndpoint");_.FT=new _.v("reelItemRenderer");_.RxH=new _.v("reelMetapanelViewModel");_.FZd=new _.v("reelNonVideoContentRenderer");_.X1t=new _.v("reelPlayerOverlayRenderer");var Pat=new _.v("shortsLockupViewModel");var ZDe=new _.v("sponsorButtonViewModel");var sqQ=new _.v("reelItemWatchResponse");var ext=new _.v("textBadgeRenderer");_.XT=new _.v("buttonRenderer");_.Pj=new _.v("toggleButtonRenderer");var yor=new _.v("switchButtonViewModel");_.grP=new _.v("confirmDialogRenderer");var ufe;ufe=new _.v("menuRenderer");_.w1E=new _.v("menuFlexibleItemRenderer");var l0I=new _.v("pollRenderer");_.a0l=new _.v("backgroundPromoRenderer");var CaQ;_.f0e=new _.v("chipCloudRenderer");CaQ=new _.v("chipCloudChipRenderer");var xVq=new _.v("dropdownRenderer");var Erq=new _.v("gridVideoRenderer");_.mVE=new _.v("itemSectionRenderer");_.orm=new _.v("messageRenderer");var vrE=new _.v("sortFilterHeaderRenderer");_.ZH=new _.v("videoRenderer");var $Ve=new _.v("resolveUrlCommandMetadata");var iDE=function(){J1.apply(this,arguments)};
_.r(iDE,J1);iDE.prototype.getAssociations=function(){return[]};_.NlI=new _.v("getAnswerCommand");_.HB=new _.v("searchEndpoint");var Bld=new _.v("genAiRichTextViewModel");var F9w=new _.v("overviewAnswerViewModel");var qwc=new _.v("addToPlaylistServiceEndpoint");var p$Q=new _.v("clearSearchHistoryEndpoint");var Uvm=new _.v("clearWatchHistoryEndpoint");var YSj=new _.v("webSerializedServiceEndpointExtension");_.Lww=new _.v("createCommentEndpoint");var Mit=new _.v("createCommentReplyEndpoint");var IEe=new _.v("performCommentActionEndpoint");var dvt=new _.v("updateCommentEndpoint");var Vij=new _.v("updateCommentReplyEndpoint");_.sO=new _.v("createPlaylistServiceEndpoint");var THd=new _.v("deletePlaylistEndpoint");var Wwd=new _.v("deleteVideoEndpoint");var Puu=new _.v("getReportFormEndpoint");var OLc=new _.v("modifyChannelNotificationPreferenceEndpoint");var vDw;_.d8=new _.v("offlinePlaylistEndpoint");vDw={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 $MG;_.MB=new _.v("offlineVideoEndpoint");$MG={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 kCt=new _.v("pingingEndpoint");_.HLl=new _.v("selectActiveIdentityEndpoint");var Dvq=new _.v("setSettingEndpoint");var vJu=new _.v("undoFeedbackEndpoint");var zKj=new _.v("unsubscribeEndpoint");_.QUw=new _.v("updatedMetadataEndpoint");var nzj=function(){J1.apply(this,arguments)};
_.r(nzj,J1);nzj.prototype.getAssociations=function(){return[]};_.Jhm=new _.v("updateLocalAppSettingCommand");var yhq=new _.v("saveImageToDeviceEndpoint");var Kwl=new _.v("shareImageCommand");var bLE=new _.v("sharingProviderDataCommand");var jUQ=function(S){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.UH(S)};
_.r(jUQ,_.a5);var rhe=[0,_.fT,-1];jUQ.prototype.JSC$10270_serializeBinary=pYk(rhe);var GCm=_.cY(rhe);var hKm=new _.v("userMentionSuggestionRenderer");var RKl=new _.v("liveChatTunnelCommand");var FwQ=new _.v("showSponsorshipsGiftOfferDialogCommand");var X$m=new _.v("sponsorshipsScrollableShelfViewModel");var Pse=new _.v("updateUpcomingEventReminderButtonStateCommand");var ZLm=new _.v("upcomingEventReminderButtonStateRenderer");var sUE=new _.v("subscribeEndpoint");var eKe=new _.v("registerTasksCommand");var gze=new _.v("showDialogCommand");_.OK=new _.v("showSheetCommand");var u4j=new _.v("showSnackbarCommand");var w$j=function(){J1.apply(this,arguments)};
_.r(w$j,J1);w$j.prototype.getAssociations=function(){return[]};var lEj=function(){J1.apply(this,arguments)};
_.r(lEj,J1);lEj.prototype.getAssociations=function(){return[]};_.xO=new _.v("avatarViewModel");var aEl=new _.v("badgeViewModel");_.K6=new _.v("buttonViewModel");_.eq=new _.v("chipViewModel");var Pyu=new _.v("collectionThumbnailViewModel");var fEE=new _.v("contentPreviewImageViewModel");var CsP=new _.v("decoratedAvatarViewModel");var TCN=new _.v("downloadButtonViewModel");_.b1G=new _.v("engagementBarViewModel");_.xvQ=new _.v("imageBannerViewModel");var RVq=new _.v("lockupContentMetadataRowExtension");var Ezq=new _.v("lockupMetadataViewModel");_.mvH=new _.v("lockupViewModel");var oze=new _.v("avatarStackViewModel");var vzt=function(){J1.apply(this,arguments)};
_.r(vzt,J1);vzt.prototype.getAssociations=function(){return[]};_.$vd=new _.v("pageHeaderViewModel");var iLt=new _.v("snackbarViewModel");var NHP=new _.v("thumbnailHoverOverlayToggleActionsViewModel");_.b6=new _.v("toggleButtonViewModel");var BHI=function(){J1.apply(this,arguments)};
_.r(BHI,J1);BHI.prototype.getAssociations=function(){return[]};_.joe=new _.v("votingViewModel");var qSl=new _.v("sectionHeaderViewModel");var AhH=new _.v("notifyDropdownOptionSelectedCommand");var a_w=new _.v("listViewModel");_.kO=new _.v("listItemViewModel");var tiE=new _.v("dialogHeaderViewModel");var chq=function(){J1.apply(this,arguments)};
_.r(chq,J1);chq.prototype.getAssociations=function(){return[]};var SOm=function(){J1.apply(this,arguments)};
_.r(SOm,J1);SOm.prototype.getAssociations=function(){return[]};var pjw=function(){J1.apply(this,arguments)};
_.r(pjw,J1);pjw.prototype.getAssociations=function(){return[]};_.Ucq=new _.v("transcriptSubmitCaptionCorrectionCommand");var YOt=function(){J1.apply(this,arguments)};
_.r(YOt,J1);YOt.prototype.getAssociations=function(){return[]};var dkr=new _.v("unpluggedStringRunImage");var LSd=new _.v("tabViewModel");var Mqe=new _.v("tabbedViewModel");var IHq=function(){J1.apply(this,arguments)};
_.r(IHq,J1);IHq.prototype.getAssociations=function(){return[]};_.dcc=new _.v("updateDescriptionAction");var Vqe=new _.v("updateToggleButtonTextAction");_.Tej=new _.v("autoplaySwitchButtonRenderer");var PO;_.WSP=new _.v("multiMarkersPlayerBarRenderer");PO=new _.v("chapterRenderer");var OQP=new _.v("heatMarkerRenderer");var YdX=new _.v("heatmapRenderer");var k1q=new _.v("smartSkipPlayerScrimOverlayRenderer");var HQl=new _.v("timedMarkerDecorationRenderer");var TRr=new _.v("postWebToNativeMessageCommand");var Dcd=function(S){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.UH(S)};
_.r(Dcd,_.a5);var z2e=_.ti(Dcd,[0,_.fT,-2]);var Qgt=new _.v("whitelistEditEndpoint");var nSm=new _.v("clearUrlParamCommand");var J1w=new _.v("commerceActionCommand");_.y1I=new _.v("getPaymentInstrumentsParamsCommand");var KSd=new _.v("getPaymentsClientTokenCommand");var bQt=new _.v("googlePaymentBillingCommand");var jgI=new _.v("googlePaymentPurchaseManagerCommand");_.r1m=new _.v("logGtmCommand");var G1E=new _.v("updateCardItemOnClickCommand");_.h2E=new _.v("ypcPauseSubscriptionCommand");_.R2l=new _.v("ypcResumeSubscriptionCommand");var FSm=function(){J1.apply(this,arguments)};
_.r(FSm,J1);FSm.prototype.getAssociations=function(){return[]};var Xjt=function(){J1.apply(this,arguments)};
_.r(Xjt,J1);Xjt.prototype.getAssociations=function(){return[]};var PBE=function(){J1.apply(this,arguments)};
_.r(PBE,J1);PBE.prototype.getAssociations=function(){return[]};var ZQc=function(){J1.apply(this,arguments)};
_.r(ZQc,J1);ZQc.prototype.getAssociations=function(){return[]};var sgl=function(){J1.apply(this,arguments)};
_.r(sgl,J1);sgl.prototype.getAssociations=function(){return[]};var V2e=new _.v("ypcOffersEndpoint");var e2t=new _.v("cardItemRenderer"),gSl=new _.v("cardItemTextRenderer");var uTq=new _.v("commerceCartItemQuantityPickerRenderer");var wje=new _.v("linkCardRenderer");var U$w=new _.v("quantityIncrementerButtonViewModel");var lHI=new _.v("quantityIncrementerViewModel");var aHQ=new _.v("themedImageViewModel");_.fHj=new _.v("ypcCancelRecurrenceEndpoint");var CBE=new _.v("ypcCompleteTransactionEndpoint");_.xcj=new _.v("ypcGetCartEndpoint");_.SJ=new _.v("ypcGetOffersEndpoint");_.ge=new _.v("ypcHandleTransactionEndpoint");var ESH=new _.v("ypcLogWalletAnalyticDataEndpoint");_.mcm=new _.v("ypcRedeemCodeEndpoint");var oSI=new _.v("ypcUpdateFopEndpoint");qv(B$(1),is(4));yfr((new MessageChannel).port2);var vSc=function(){this.register=new Map},ZWq=function(S,p,U){S=S+"_"+p;
uB.register.has(S)?U=uB.register.get(S):(U=U(),uB.register.set(S,U));return U},$ct=function(S){S=_.d(S.register.values());
for(var p=S.next();!p.done;p=S.next())_.TU(p.value,"ABORTED")};
vSc.prototype.clear=function(){$ct(this);this.register.clear()};
var uB=new vSc;var Wfq=Date.now().toString();var kBE,iQm=_.UX.ytLoggingDocDocumentNonce_;iQm||(iQm=h8(16),_.NT("ytLoggingDocDocumentNonce_",iQm));kBE=iQm;var Kfd={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 Nem;Nem=1;_.R9=function(S){this.veData=S};
_.JS=function(S){return new _.R9({trackingParams:S})};
_.bZ=function(S,p,U,Y,L,I){var V=Nem++;return new _.R9({veType:S,veCounter:V,elementIndex:U,dataElement:p,youtubeData:Y,jspbYoutubeData:L,loggingDirectives:I})};
_.M=_.R9.prototype;
_.M.getAsJson=function(){var S={};this.veData.trackingParams!==void 0?S.trackingParams=this.veData.trackingParams:(S.veType=this.veData.veType,this.veData.veCounter!==void 0&&(S.veCounter=this.veData.veCounter),this.veData.elementIndex!==void 0&&(S.elementIndex=this.veData.elementIndex));this.veData.dataElement!==void 0&&(S.dataElement=this.veData.dataElement.getAsJson());this.veData.youtubeData!==void 0&&(S.youtubeData=this.veData.youtubeData);this.veData.isCounterfactual&&(S.isCounterfactual=!0);
return S};
_.M.getAsJspb=function(){var S=new rId;this.veData.trackingParams!==void 0?S.setTrackingParams(this.veData.trackingParams):(this.veData.veType!==void 0&&_.FU(S,2,this.veData.veType),this.veData.veCounter!==void 0&&_.FU(S,6,this.veData.veCounter),this.veData.elementIndex!==void 0&&_.FU(S,3,this.veData.elementIndex),this.veData.isCounterfactual&&_.d5(S,5,!0));if(this.veData.dataElement!==void 0){var p=this.veData.dataElement.getAsJspb();_.U3(S,7,p)}this.veData.youtubeData!==void 0&&_.U3(S,8,this.veData.jspbYoutubeData);
return S};
_.M.toString=function(){return JSON.stringify(this.getAsJson())};
_.M.isClientVe=function(){return!this.veData.trackingParams&&!!this.veData.veType};
_.M.getLoggingDirectives=function(){return this.veData.loggingDirectives};_.NT("yt_logging_screen.getRootVeType",nxG);_.NT("yt_logging_screen.getCurrentCsn",_.X$);_.NT("yt_logging_screen.getCttAuthInfo",Pv);_.NT("yt_logging_screen.setCurrentScreen",_.ZL);var BeE=function(){this.events=new Map},qOt=function(S){var p=[];
S=_.d(S.events.values());for(var U=S.next();!U.done;U=S.next())p.push(U.value);return p};
BeE.prototype.clear=function(){this.events.clear()};var tqc=function(){this.logTransport=new A1d;this.loggedEventRegister=new BeE;this.unloggedEventRegister=new BeE;this.eventsCount=0;this.flushInterval=3E4;this.JSC$10327_flushTimer=new _.tr(this.flushInterval);this.JSC$10327_flushTimer.listen("tick",this.flush,!1,this)};
tqc.prototype.flush=function(){if(this.eventsCount){var S={loggedEvents:qOt(this.loggedEventRegister),unloggedEvents:qOt(this.unloggedEventRegister)};if(_.y("export_player_version_to_ytconfig")){var p;(p=_.g7("PLAYER_CLIENT_VERSION"))?(p=p.split("-")[0].replace(/\./g,""),p=isNaN(Number(p))?"0":p):p="";var U=_.g7("PLAYER_CLIENT_VERSION");if(U){U=U.split("-");var Y="";U.length>1&&(Y=U[U.length-1]);U=TMu(Y.startsWith("canary_experiment")?"canary":Y.startsWith("canary_control")?"control":"none")}else U=
"CLIENT_CANARY_STATE_UNKNOWN";S.dimensions={playerClientVersion:p,playerCanaryState:U}}this.logTransport.flush(S);this.loggedEventRegister.clear();this.unloggedEventRegister.clear();this.eventsCount=0;this.JSC$10327_flushTimer.enabled&&this.JSC$10327_flushTimer.stop()}};
var c1P=function(S){we==null&&(we=new tqc);var p=we;var U=p.loggedEventRegister;S.dimensions=S.dimensions||{};S.dimensions.csn=_.X$()||"";var Y=r2e(S.dimensions).join(";");if(S.records!=null)if(U.events.has(Y)){var L;(L=U.events.get(Y).records)==null||L.push.apply(L,_.jo(S.records))}else U.events.set(Y,S);p.JSC$10327_flushTimer.enabled||p.JSC$10327_flushTimer.start();p.eventsCount++;p.eventsCount>=100&&p.flush()};var A1d=function(){};
A1d.prototype.flush=function(S,p){_.y("enable_client_sli_logging")&&_.RV("sliEventBatch",S,{sendIsolatedPayload:!!p})};var we;var ptm;ptm=function(S){var p=S8t;S=S===void 0?{}:S;p=p.name;var U=PRG("SUCCESS");c1P({dimensions:S,records:[{name:p,state:"SLI_STATE_END",status:U}]})};
_.swG=function(S,p,U,Y){this.name=S;this.sliId=p;this.timeoutMs=U;this.statusOnTimeout=Y;this.logSliId="";this.timeoutHandle=-1;this.ongoing=!1;this.dimensions={}};
_.swG.prototype.getId=function(){return this.sliId};
_.Vj=function(S,p){p=p===void 0?{}:p;S.ongoing||(S.ongoing=!0,S.dimensions=p,S.logSliId=cFw(),c1P({dimensions:S.dimensions,records:[{name:S.name,state:"SLI_STATE_START",sliId:S.logSliId}]}),S.timeoutMs>0&&(S.timeoutHandle=setTimeout(function(){_.TU(S,S.statusOnTimeout)},S.timeoutMs)))};
_.TU=function(S,p){S.ongoing&&(S.timeoutMs>0&&clearTimeout(S.timeoutHandle),S.ongoing=!1,p={dimensions:S.dimensions,records:[{name:S.name,status:PRG(p),state:"SLI_STATE_END",sliId:S.logSliId}]},uB.register.delete(S.name+"_"+S.sliId),c1P(p))};var S8t=new function(){this.name="SLI_NAME_YOUTUBE_WEB_SESSION_PARTITION"};var UuI=function(){J1.apply(this,arguments)};
_.r(UuI,J1);UuI.prototype.getAssociations=function(){return[]};var NJe=new _.v("highlightTextDecoratorColorMapExtension");var $kG=new _.v("styleRunColorMapExtension");var fSw=_.x1(["data-"]),Exe={};var oxE={};var lB=function(S){this.wrappedPromise_=S===void 0?null:S;this.state_=0;this.JSC$10359_value_=null};
lB.prototype.then=function(S,p,U){return this.wrappedPromise_?this.wrappedPromise_.then(S,p,U):this.state_===1&&S?(S=S.call(U,this.JSC$10359_value_))&&typeof S.then==="function"?S:_.ag(S):this.state_===2&&p?(S=p.call(U,this.JSC$10359_value_))&&typeof S.then==="function"?S:_.Y8m(S):this};
lB.prototype.getValue=function(){return this.JSC$10359_value_};
lB.prototype.isRejected=function(){return this.state_==2};
rij(lB);_.Y8m=function(S){var p=new lB;S=S===void 0?null:S;p.state_=2;p.JSC$10359_value_=S===void 0?null:S;return p};
_.ag=function(S){var p=new lB;S=S===void 0?null:S;p.state_=1;p.JSC$10359_value_=S===void 0?null:S;return p};var MYd="absolute_experiments app conditional_experiments debugcss debugjs expflag forced_experiments pbj pbjreload sbb spf spfreload sr_bns_address sttick".split(" ");var Ltl=["load","abort","error"],fQ=function(S,p,U){this.transformedData=null;this.invalidAspectRatio=this.cropped=!1;this.JSC$10379_maxAspectRatio_=S;this.disableAnimation_=p===void 0?!1:p;this.disableExifRotation_=U===void 0?!1:U;this.JSC$10379_image_=new Image;this.angle_=this.dataUrl_=this.mime_=this.JSC$10379_reject_=this.resolve_=null};
fQ.prototype.transform=function(S){var p=this;this.mime_=S.type;lR(yaH(S),this.dataUrlRead_,this.readError_,this);lR(Jaq(S.slice(0,65536)),this.exifRead_,this.readError_,this);return new Promise(function(U,Y){p.resolve_=U;p.JSC$10379_reject_=Y})};
fQ.prototype.dataUrlRead_=function(S){this.dataUrl_=S;this.angle_!=null&&M8l(this)};
fQ.prototype.exifRead_=function(S){if(this.disableExifRotation_)this.angle_=0;else{a:if(S=new DataView(S),S.byteLength<2||S.getUint16(0)!==65496)S=-2;else{for(var p=2,U=S.byteLength;p<U;){var Y=S.getUint16(p),L=S.getUint16(p+2);if(Y===65505){p+=4;Y=S.getUint32(p);L=S.getUint16(p+4);if(Y!==1165519206||L!==0)break;p+=6;Y=S.getUint16(p)===18761;p+=S.getUint32(p+4,Y);L=S.getUint16(p,Y);p+=2;for(var I=0;I<L;I++){if(S.getUint16(p,Y)===274){p+=8;S=S.getUint16(p,Y);break a}p+=12}}else if(Y>>8!==255)break;
else p+=L+2}S=-1}switch(S){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&&M8l(this)};
fQ.prototype.readError_=function(){this.JSC$10379_reject_()};
var M8l=function(S){QO(S.JSC$10379_image_,Ltl,S.completeTransform_,!1,S);S.JSC$10379_image_.src=_.JA(S.dataUrl_).toString();S.JSC$10379_image_.src!=nh.toString()&&S.JSC$10379_image_.src.substr(0,11)==="data:image/"||S.JSC$10379_reject_()};
fQ.prototype.completeTransform_=function(){if(this.JSC$10379_image_.src!=nh.toString()){var S=_.JA(this.dataUrl_),p=this.JSC$10379_image_.naturalHeight?this.JSC$10379_image_.naturalWidth/this.JSC$10379_image_.naturalHeight:null;this.invalidAspectRatio=p>this.JSC$10379_maxAspectRatio_||p<1/this.JSC$10379_maxAspectRatio_;if(this.mime_!=="image/gif"||this.disableAnimation_){var U=this.JSC$10379_image_.naturalWidth,Y=this.JSC$10379_image_.naturalHeight,L=p=0,I=this.JSC$10379_image_.naturalHeight?this.JSC$10379_image_.naturalWidth/
this.JSC$10379_image_.naturalHeight:null;I>this.JSC$10379_maxAspectRatio_?(U=this.JSC$10379_maxAspectRatio_*Y,p=(U-this.JSC$10379_image_.naturalWidth)/2,this.cropped=!0):I<1/this.JSC$10379_maxAspectRatio_?(Y=this.JSC$10379_maxAspectRatio_*U,L=(Y-this.JSC$10379_image_.naturalHeight)/2,this.cropped=!0):this.mime_==="image/gif"&&this.disableAnimation_&&(this.cropped=!0);if(this.angle_==90||this.angle_==270)I=U,U=Y,Y=I,I=p,p=L,L=I;switch(this.angle_){case 90:L-=U;break;case 180:p-=U;L-=Y;break;case 270:p-=
Y}this.cropped||this.angle_%360!==0?(S=document.createElement("canvas"),S.width=U||1,S.height=Y||1,this.JSC$10379_image_.naturalWidth&&this.JSC$10379_image_.naturalHeight&&(U=S.getContext("2d"),U.rotate(Math.PI/180*this.angle_),U.drawImage(this.JSC$10379_image_,p,L,this.JSC$10379_image_.naturalWidth,this.JSC$10379_image_.naturalHeight)),this.transformedData=_.JA(S.toDataURL(this.mime_))):this.transformedData=S}else this.transformedData=S;this.resolve_(this)}};var CQ=function(S,p){_.Iw.call(this,S);this.value=p};
_.r(CQ,_.Iw);
var xS=function(S,p,U,Y,L,I,V){V=V===void 0?!1:V;_.OD.call(this);var W=this;this.JSC$10384_url_=S;this.channelId_=p;this.maxFileSizeMb_=U;this.JSC$10384_maxAspectRatio_=Y;this.dropZoneEl_=L;this.rejectInvalidAspectRatio_=V;this.selectButtonEl_=I;this.JSC$10384_reject_=this.resolve_=this.uploadPromise_=null;this.dropZoneOverlay_=new LQ(this.dropZoneEl_);this.selectOverlay_=new Mc(this.selectButtonEl_);this.selectButtonEl_.nextSibling.tagName=="INPUT"&&this.selectButtonEl_.nextSibling.setAttribute("accept","image/*");
this.JSC$10384_image_=this.transfer_=null;this.handler_=new _.cr(this);_.Hm(this,this.handler_);this.handler_.listen(this.dropZoneOverlay_,"f",this.onChange_).listen(this.dropZoneEl_,"dragover",this.onHover_).listen(this.dropZoneEl_,"dragleave",this.onHover_).listen(I,"click",function(){W.selectOverlay_.click()}).listen(this.selectOverlay_,"j",this.onChange_)};
_.r(xS,_.OD);xS.prototype.disposeInternal=function(){for(var S=this.selectButtonEl_.nextSibling;S&&S.parentNode&&S.tagName=="INPUT";)S.parentNode.removeChild(S),S=this.selectButtonEl_.nextSibling;this.cancel();_.OD.prototype.disposeInternal.call(this)};
xS.prototype.uploadPromise=function(){if(this.JSC$10384_image_==null)return null;this.uploadPromise_||Irj(this);return this.uploadPromise_};
xS.prototype.cancel=function(){dut(this);this.JSC$10384_image_=null};
var dut=function(S){S.transfer_&&S.transfer_.cancel();S.transfer_=null;S.uploadPromise_=null;S.resolve_=null;S.JSC$10384_reject_=null},Irj=function(S){dut(S);
S.transfer_=_.wId(S.JSC$10384_url_,{"X-YouTube-ChannelId":S.channelId_},S.JSC$10384_image_);S.handler_.listenOnce(S.transfer_,"l",S.JSC$10386_onUploadComplete_);S.handler_.listenOnce(S.transfer_,"n",S.onUploadError_);S.transfer_.run();S.uploadPromise_=new Promise(function(p,U){S.resolve_=p;S.JSC$10384_reject_=U})};
_.M=xS.prototype;_.M.onChange_=function(S){S.files.length&&(this.JSC$10384_image_=S.files[0],this.JSC$10384_image_.size>1048576*this.maxFileSizeMb_?(this.JSC$10384_image_=null,this.dispatchEvent(new CQ("yt.comments.ImageUploadOverlay.FILE_TOO_LARGE_EVENT"))):(Irj(this),(new fQ(this.JSC$10384_maxAspectRatio_)).transform(this.JSC$10384_image_).then((0,_.RW)(this.onPreview_,this),(0,_.RW)(this.onPreviewError_,this))))};
_.M.onPreview_=function(S){if(S.invalidAspectRatio&&(this.rejectInvalidAspectRatio_&&(this.JSC$10384_image_=null),this.dispatchEvent(new CQ("yt.comments.ImageUploadOverlay.FILE_INVALID_ASPECT_RATIO_EVENT")),this.rejectInvalidAspectRatio_))return;S.cropped&&this.dispatchEvent(new CQ("yt.comments.ImageUploadOverlay.CROPPED_EVENT"));this.dispatchEvent(new CQ("yt.comments.ImageUploadOverlay.CHANGE_EVENT",S.transformedData))};
_.M.onPreviewError_=function(){this.JSC$10384_image_=null;this.dispatchEvent(new CQ("yt.comments.ImageUploadOverlay.INVALID_EVENT"))};
_.M.onHover_=function(S){S.stopPropagation();S.preventDefault();if(S.type==="dragover")S=!0;else if(S.type==="dragleave")S=!1;else return;this.dispatchEvent(new CQ("yt.comments.ImageUploadOverlay.HOVER_EVENT",S))};
_.M.JSC$10386_onUploadComplete_=function(){var S=(0,_.NZq)(this.transfer_.getResponseText());this.resolve_(S.encryptedBlobId)};
_.M.onUploadError_=function(){this.JSC$10384_reject_();dut(this)};var V8E=function(S){S=S||{};var p={},U={};this.url=S.url||"";this.args=S.args||_.h9.clone(p);this.assets=S.assets||{};this.attrs=S.attrs||_.h9.clone(U);this.fallback=S.fallback||null;this.fallbackMessage=S.fallbackMessage||null;this.html5=!!S.html5;this.disable=S.disable||{};this.loaded=!!S.loaded;this.messages=S.messages||{}};
V8E.prototype.clone=function(){var S=new V8E,p;for(p in this)if(this.hasOwnProperty(p)){var U=this[p];S[p]=_.HP(U)=="object"?_.h9.clone(U):U}return S};var T_P,Wtm,Oac,BI,Hat,DuI,ztt,Q6E,nVm,J4m,y4m,Ktt,baE,j6t,r4m,GEm,htq,RtI,FtI,XtQ,Plj,Zam,s6m,etm,gVI,uzt,wtj,lrm,art,nQX,frP,Cld,xut,EVj,muP,oVm,vVm,$uI,iam,N_I,B_P,q8P,A4t,t8I,c4Q,Sze,plt,UHe,Yzt,LVI,MLj,IqH,dHH,VLe,Tkl,WVm,EO,O$t,kst,H$I,DHc,z_c,Qll,n2l,Jjm,yjH,KVH,b$P,jlc,rjH,GsQ,h_t,R_e,FVQ,Xll,zsw,PjQ,Z$q,slm,e_l,g2H,uFm,wle,lqc,aqm,fql,Cjm,xHe,E2Q,mHd,o2H,v2P,$Hc,i$E,NkE,Bkl,qzI,Aje,tLt,cjt,SjQ;T_P=["account/accounts_list"];Wtm=["acknowledge_channel_tou_strike"];Oac=["notification/add_upcoming_event_reminder"];
_.kEq=["att/get"];BI=["browse","music/browse","unplugged/browse"];Hat=["channel/claim_legacy_youtube_channel"];DuI=["history/clear_search_history"];ztt=["history/clear_watch_history"];Q6E=["comment/perform_comment_action"];nVm=["comment/get_comment_replies"];J4m=["ypc/commerce_action"];y4m=["backstage/create_post"];Ktt=["live/create_broadcast"];baE=["channel/create_channel"];j6t=["comment/create_comment_reply"];r4m=["comment/create_comment"];GEm=["live_chat/create_poll"];htq=["playlist/create"];
RtI=["decorate_message"];FtI=["live_chat/delete_message"];XtQ=["playlist/delete"];Plj=["video/delete"];Zam=["like/dislike"];s6m=["dismissal/dismiss"];etm=["flag/flag"];gVI=["flow"];uzt=["account/account_menu"];wtj=["playlist/get_add_to_playlist"];lrm=["get_answer"];art=["channel/get_channel_creation_form"];nQX=["offline/get_download_action"];frP=["kids/get_kids_blocklist_picker"];Cld=["live_chat/get_item_context_menu"];xut=["live_chat/get_live_chat_message_buy_flow"];EVj=["live_chat/get_live_chat_replay"];
muP=["live_chat/get_live_chat","live_chat/get_live_interactivity","live_chat/get_streaming_live_chat"];oVm=["live_chat/get_live_chat_super_sticker_buy_flow"];vVm=["notification/get_notification_menu"];$uI=["playlist/get_settings_editor"];iam=["backstage/get_post_video_preview"];N_I=["account/get_profile_card"];B_P=["share/get_share_panel"];q8P=["share/get_sharing_provider_data"];A4t=["get_survey"];t8I=["notification/get_unseen_count"];c4Q=["get_user_mention_suggestions"];Sze=["get_watch"];plt=["guide"];
UHe=["feedback"];Yzt=["kids/update_blacklist"];LVI=["like/like"];MLj=["live_chat/live_chat_action"];IqH=["live_chat/manage_user"];dHH=["video_manager/metadata_update"];VLe=["live_chat/moderate"];Tkl=["notification/modify_channel_preference"];WVm=["notification/opt_out"];EO=["get_panel","get_posts_by_host_panel"];O$t=["player"];kst=["browse/edit_playlist"];H$I=["notification/record_interactions"];DHc=["reel/reel_item_watch"];z_c=["reel/reel_watch_sequence"];Qll=["like/removelike"];n2l=["notification/remove_upcoming_event_reminder"];
Jjm=["flag/get_form"];yjH=["miniapp/report_value"];KVH=["navigation/resolve_url"];b$P=["channel/reveal_business_email"];jlc=["in_video/search"];rjH=["search","sfv/search","unplugged/search"];GsQ=["live_chat/send_message"];h_t=["live_chat/send_live_chat_vote"];R_e=["account/set_setting"];FVQ=["submit_caption_correction"];Xll=["subscription/subscribe"];zsw=["get_transcript"];PjQ=["resolve_location","unplugged/resolve_location"];Z$q=["subscription/unsubscribe"];slm=["backstage/update_post"];e_l=["channel_edit/update_channel_page_settings"];
g2H=["comment/update_comment_reply"];uFm=["comment/update_comment"];wle=["comment/update_comments_settings"];lqc=["creator/update_creator_channel"];aqm=["pdg/update_enablement"];fql=["updated_metadata"];Cjm=["channel_edit/validate_channel_handle"];xHe=["verify_age"];E2Q=["next","unplugged/watch_next"];mHd=["whitelist/edit"];o2H=["ypc/cancel_recurrence"];v2P=["ypc/complete_transaction"];$Hc=["ypc/get_cart"];i$E=["ypc/get_fix_instrument_params"];NkE=["ypc/get_offers"];Bkl=["ypc/get_payment_instruments_params"];
qzI=["ypc/handle_transaction"];Aje=["ypc/log_payment_server_analytics"];tLt=["ypc/pause_subscription"];cjt=["ypc/redeem_code"];SjQ=["ypc/resume_subscription"];var pVe=[3611,27686,221058,85013,23462,241187,157557,42016,26926,51236,79148,50160,77504,153587,87907,18630,177018,177023,54445,80935,152172,184553,105675,150723,37521,147285,47786,231255,231254,231258,231259,98349,237299,168271,168954,168277,168273,168270,123695,226987,226990,226988,6827,29434,255010,171388,244189,236208,7282,124448,196088,250897,198104,32276,195115,195114,76278,200635,230594,147868,147869,93911,106531,257234,252598,252597,252600,252599,252596,225031,177843,27259,27262,27263,21759,
160866,204249,222900,204250,180626,177959,177957,180628,205716,197878,171243,160789,171244,171241,171245,171242,225560,180627,177960,231589,177958,180629,205717,197879,177565,212573,210709,230684,229801,230685,197337,209010,197336,197338,198618,175492,198052,198051,197852,197976,175493,175494,175495,189254,175496,175497,38408,175498,175503,175504,175505,175506,175507,175508,80637,68727,206933,207944,206934,206929,221575,68728,221576,80353,80356,249107,180635,74610,45707,83962,83970,46713,166591,89711,
74612,213809,179607,245006,155792,93265,74611,131380,128979,139311,128978,131391,105350,139312,134800,131392,113533,229298,93252,99357,94521,114252,113532,94522,94583,202371,88E3,139580,93253,93254,94387,94388,93255,97424,72502,219868,212991,110111,76019,117092,117093,89431,191831,110466,231346,77240,60508,186091,148123,148124,137401,137402,137046,73393,246776,113534,92098,131381,84517,83759,230676,249183,230679,230678,230677,230681,230680,162711,235234,162712,80357,243315,86113,72598,168413,72733,
107349,124275,118203,200410,133275,160157,152569,156651,133274,160159,160158,133272,133273,133276,144507,143247,175994,156652,143248,143249,143250,143251,189892,189894,189893,156653,214236,144401,117431,133797,225137,222612,222613,153964,201133,201134,201135,201136,201137,128572,200411,200412,190337,133405,117429,117430,177950,174734,177951,201138,201139,201140,201141,201142,117432,173996,173995,174953,173994,173997,120080,117259,178546,197891,156655,156654,121692,211414,211411,211412,211413,211403,
184846,185993,145656,156656,145655,145653,145654,145657,132972,133051,133658,132971,97615,181262,190762,250344,254027,143359,143356,143361,143358,143360,143357,142303,143353,172859,143354,144479,143355,31402,181590,133624,146477,133623,133622,133621,192418,84774,197993,241460,160801,197995,95117,172721,150497,98930,98931,98932,153320,153321,43347,249295,210016,210017,262686,211851,211852,211853,129889,197888,197889,149123,221959,221627,221958,45474,100352,98443,117985,74613,155911,74614,64502,136032,
74615,74616,122224,74617,77820,74618,262988,262989,226981,93278,93274,93275,93276,200688,200686,200687,199841,22110,29433,133798,132295,120541,222112,82047,113550,75836,75837,192409,203221,42352,84512,76065,75989,205911,205912,252649,205913,252650,252651,51879,16623,32594,27240,32633,74858,222932,213915,225216,251244,258251,218674,251266,258250,251265,251245,156999,3945,16989,45520,25488,25492,25494,232113,55760,14057,18451,57204,57203,17897,18198,17898,17909,43980,221053,195529,189660,46220,11721,
147994,49954,96369,3854,217640,151633,56251,205192,216797,159108,181568,25624,152036,16906,99999,68172,47973,72773,26970,26971,96805,17752,73233,205923,109512,22256,14115,22696,234409,234408,89278,89277,195745,109513,43278,43459,43464,89279,43717,55764,22255,147912,89281,40963,43277,43442,91824,120137,186350,186351,256690,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,50663,36387,14908,37533,105443,61635,62274,161670,133818,182119,65702,65703,65701,76256,263843,196075,194768,252201,194769,191885,233634,265810,194770,195350,195349,194771,166382,37671,
49953,220669,249229,213774,204572,191389,253830,253831,253832,253833,253834,204574,187917,191390,179556,191402,238596,212661,191392,197826,191393,204573,36216,28237,241212,173718,39553,192547,29222,26107,241211,38050,26108,120745,26109,26110,66881,28236,14586,160598,57929,226736,74723,44098,173689,44099,23528,61699,134104,134103,198313,59149,181013,173191,173192,173193,101951,171502,196043,198305,97346,118051,95102,64882,119505,63595,257268,63349,240553,95101,75240,27039,68823,21537,83464,75707,252904,
170215,223033,83113,101952,101953,79610,125755,24402,24400,32925,193406,57173,183351,156421,122502,145268,138480,64423,64424,33986,100828,129089,21409,185612,222825,245366,135155,135156,135157,135158,158225,135159,135160,167651,135161,135162,135163,158226,158227,135164,135165,135166,11070,11074,17880,30709,30707,30711,30710,30708,185213,185273,146143,63648,63649,221056,264490,211189,111059,211188,5754,264491,20445,233471,151308,151152,228067,130975,130976,247244,261210,210815,246127,245256,244950,
191925,167637,234545,197196,214295,110386,221054,113746,66557,183215,17310,28631,201935,21589,242036,238351,164817,168011,154946,68012,162617,60480,184431,138664,249827,194E3,141121,164502,31571,195002,206793,141978,233985,250895,254052,254053,254054,254051,254050,254055,150105,150106,150107,150108,76980,41577,45469,38669,13768,13777,141842,62985,213190,4724,223052,59369,43927,43928,12924,197853,100355,56219,27669,209928,10337,203648,203649,47896,122629,186204,222824,139723,139722,121258,253789,253787,
253786,253788,253790,107598,127991,96639,107536,130169,216522,96661,145188,213904,96658,116646,159428,168611,168612,121122,219862,96660,127738,127083,155281,162959,220886,227356,248007,163566,186641,147842,217932,104443,96659,147595,106442,247162,231493,213427,246575,182423,162776,228908,134840,63667,63668,63669,130686,248381,147036,239094,262743,189810,239095,78314,147799,237146,174049,148649,55761,127098,134841,96368,67374,48992,146176,176105,233035,49956,190190,225739,31961,26388,23811,5E4,126250,
96370,210549,47355,47356,37935,45521,21760,83769,49977,49974,93497,93498,34325,140759,115803,123707,100081,35309,237706,68314,25602,100339,170873,143516,178921,254884,258232,59018,18248,50625,9729,37168,37169,21667,16749,18635,39305,18046,221057,53969,8213,93926,221055,210542,212552,102852,110099,22678,69076,137575,139224,100856,235770,154430,235861,209757,17736,3832,147111,55759,64031,234746,93044,93045,170701,170702,194796,34388,167841,170419,17657,17655,39579,39578,170412,77448,8196,11357,69877,
8197,168501,156512,161613,156509,208274,161612,161614,262801,262800,262799,262802,262798,82039];var Wd=window.yt&&window.yt.msgs_||window.ytcfg&&window.ytcfg.msgs||{};_.NT("yt.msgs_",Wd);var mS=new _.$g("ACTION_ROUTER_TOKEN");_.og=function(){this.autonavState_=_.y("kevlar_is_pupi_enabled")?2:ngE()?2:1;this.disabledAutonavPauseReason_=this.autonavPauseReason_=void 0;this.autoplayChangedByUser=!1};
_.og.prototype.getState=function(){return this.autonavState_};
_.og.prototype.pause=function(S){this.autonavState_==2?(this.setState(3,!1,!1),this.autonavPauseReason_=S):this.autonavState_==1&&(this.disabledAutonavPauseReason_=S)};
_.og.prototype.setState=function(S,p,U){p&&(this.autoplayChangedByUser=!0);p=this.autonavState_===3||S===3;this.autonavState_!=S&&(this.autonavState_=S,S!=3&&_.Jsw(S==2),S=_.y("kevlar_is_pupi_enabled")?U||p:!0,_.xv.getInstance().triggerOptionalAction("yt-autonav-state-changed-action",this.autonavState_,S,U))};
_.og.prototype.isAutoplaySetExplicitly=function(){return this.autoplayChangedByUser};
_.N_(_.og);var vj=function(){this.hasRun=!1};var $S={},sEk=($S.auto_search="LATENCY_ACTION_AUTO_SEARCH",$S.ad_to_ad="LATENCY_ACTION_AD_TO_AD",$S.ad_to_video="LATENCY_ACTION_AD_TO_VIDEO",$S.app_startup="LATENCY_ACTION_APP_STARTUP",$S.browse="LATENCY_ACTION_BROWSE",$S.cast_splash="LATENCY_ACTION_CAST_SPLASH",$S.channel_activity="LATENCY_ACTION_KIDS_CHANNEL_ACTIVITY",$S.channels="LATENCY_ACTION_CHANNELS",$S.chips="LATENCY_ACTION_CHIPS",$S.commerce_transaction="LATENCY_ACTION_COMMERCE_TRANSACTION",$S.direct_playback="LATENCY_ACTION_DIRECT_PLAYBACK",
$S.editor="LATENCY_ACTION_EDITOR",$S.embed="LATENCY_ACTION_EMBED",$S.embed_no_video="LATENCY_ACTION_EMBED_NO_VIDEO",$S.entity_key_serialization_perf="LATENCY_ACTION_ENTITY_KEY_SERIALIZATION_PERF",$S.entity_key_deserialization_perf="LATENCY_ACTION_ENTITY_KEY_DESERIALIZATION_PERF",$S.explore="LATENCY_ACTION_EXPLORE",$S.favorites="LATENCY_ACTION_FAVORITES",$S.home="LATENCY_ACTION_HOME",$S.inboarding="LATENCY_ACTION_INBOARDING",$S.landing="LATENCY_ACTION_LANDING",$S.library="LATENCY_ACTION_LIBRARY",$S.live=
"LATENCY_ACTION_LIVE",$S.live_pagination="LATENCY_ACTION_LIVE_PAGINATION",$S.management="LATENCY_ACTION_MANAGEMENT",$S.mini_app="LATENCY_ACTION_MINI_APP_PLAY",$S.notification_settings="LATENCY_ACTION_KIDS_NOTIFICATION_SETTINGS",$S.onboarding="LATENCY_ACTION_ONBOARDING",$S.parent_profile_settings="LATENCY_ACTION_KIDS_PARENT_PROFILE_SETTINGS",$S.parent_tools_collection="LATENCY_ACTION_PARENT_TOOLS_COLLECTION",$S.parent_tools_dashboard="LATENCY_ACTION_PARENT_TOOLS_DASHBOARD",$S.player_att="LATENCY_ACTION_PLAYER_ATTESTATION",
$S.prebuffer="LATENCY_ACTION_PREBUFFER",$S.prefetch="LATENCY_ACTION_PREFETCH",$S.profile_settings="LATENCY_ACTION_KIDS_PROFILE_SETTINGS",$S.profile_switcher="LATENCY_ACTION_LOGIN",$S.projects="LATENCY_ACTION_PROJECTS",$S.reel_watch="LATENCY_ACTION_REEL_WATCH",$S.results="LATENCY_ACTION_RESULTS",$S.red="LATENCY_ACTION_PREMIUM_PAGE_GET_BROWSE",$S.premium="LATENCY_ACTION_PREMIUM_PAGE_GET_BROWSE",$S.privacy_policy="LATENCY_ACTION_KIDS_PRIVACY_POLICY",$S.review="LATENCY_ACTION_REVIEW",$S.search_overview_answer=
"LATENCY_ACTION_SEARCH_OVERVIEW_ANSWER",$S.search_ui="LATENCY_ACTION_SEARCH_UI",$S.search_suggest="LATENCY_ACTION_SUGGEST",$S.search_zero_state="LATENCY_ACTION_SEARCH_ZERO_STATE",$S.secret_code="LATENCY_ACTION_KIDS_SECRET_CODE",$S.seek="LATENCY_ACTION_PLAYER_SEEK",$S.settings="LATENCY_ACTION_SETTINGS",$S.store="LATENCY_ACTION_STORE",$S.supervision_dashboard="LATENCY_ACTION_KIDS_SUPERVISION_DASHBOARD",$S.tenx="LATENCY_ACTION_TENX",$S.video_preview="LATENCY_ACTION_VIDEO_PREVIEW",$S.video_to_ad="LATENCY_ACTION_VIDEO_TO_AD",
$S.watch="LATENCY_ACTION_WATCH",$S.watch_it_again="LATENCY_ACTION_KIDS_WATCH_IT_AGAIN",$S["watch,watch7"]="LATENCY_ACTION_WATCH",$S["watch,watch7_html5"]="LATENCY_ACTION_WATCH",$S["watch,watch7ad"]="LATENCY_ACTION_WATCH",$S["watch,watch7ad_html5"]="LATENCY_ACTION_WATCH",$S.wn_comments="LATENCY_ACTION_LOAD_COMMENTS",$S.ww_rqs="LATENCY_ACTION_WHO_IS_WATCHING",$S.voice_assistant="LATENCY_ACTION_VOICE_ASSISTANT",$S.cast_load_by_entity_to_watch="LATENCY_ACTION_CAST_LOAD_BY_ENTITY_TO_WATCH",$S.networkless_performance=
"LATENCY_ACTION_NETWORKLESS_PERFORMANCE",$S.gel_compression="LATENCY_ACTION_GEL_COMPRESSION",$S.gel_jspb_serialize="LATENCY_ACTION_GEL_JSPB_SERIALIZE",$S.attestation_challenge_fetch="LATENCY_ACTION_ATTESTATION_CHALLENGE_FETCH",$S);var Asw=function(S,p){Ql.call(this,1,arguments);this.timer=p};
_.r(Asw,Ql);var qBe=new OKr("aft-recorded",Asw);var wFk=_.UX.ytLoggingGelSequenceIdObj_||{};_.NT("ytLoggingGelSequenceIdObj_",wFk);var iB=_.UX.ytLoggingLatencyUsageStats_||{};_.NT("ytLoggingLatencyUsageStats_",iB);var Nc=function(){this.cleanupJob=0},f7e=function(){Nc.instance||(Nc.instance=new Nc);
return Nc.instance};
_.M=Nc.prototype;_.M.baseline=function(S,p,U){Bj(this,"baseline_"+S)||_.RV("latencyActionBaselined",{clientActionNonce:S},{timestamp:p,cttAuthInfo:U})};
_.M.tick=function(S,p,U,Y){Bj(this,"tick_"+S+"_"+p)||_.RV("latencyActionTicked",{tickName:S,clientActionNonce:p},{timestamp:U,cttAuthInfo:Y})};
_.M.info=function(S,p,U){var Y=Object.keys(S).join("");Bj(this,"info_"+Y+"_"+p)||(S=Object.assign({},S),S.clientActionNonce=p,_.RV("latencyActionInfo",S,{cttAuthInfo:U}))};
_.M.jspbInfo=function(S,p,U){for(var Y="",L=0;L<Su(S).length;L++)Su(S)[L]!==void 0&&(Y=L===0?Y.concat(""+L):Y.concat("_"+L));Bj(this,"info_"+Y+"_"+p)||(_.zN(S,2,p),p={cttAuthInfo:U},U=_.y("jspb_sparse_encoded_pivot")?new Kv([{}]):new Kv,_.Yq(U,7,fum,S),l7N("latencyActionInfo",U,p))};
_.M.span=function(S,p,U){var Y=Object.keys(S).join("");Bj(this,"span_"+Y+"_"+p)||(S.clientActionNonce=p,_.RV("latencyActionSpan",S,{cttAuthInfo:U}))};
var Bj=function(S,p){iB[p]=iB[p]||{count:0};var U=iB[p];U.count++;U.time=(0,_.AI)();S.cleanupJob||(S.cleanupJob=_.bQ(_.PA,function(){var Y=(0,_.AI)(),L;for(L in iB)iB[L]&&Y-iB[L].time>6E4&&delete iB[L];S&&(S.cleanupJob=0)},5E3));
return U.count>5?(U.count===6&&Math.random()*1E5<1&&(U=new _.y7("CSI data exceeded logging limit with key",p.split("_")),p.indexOf("plev")>=0||_.eP(U)),!0):!1};var Uot,Yjw;Uot=window;Yjw=function(){this.timing={};this.clearResourceTimings=function(){};
this.webkitClearResourceTimings=function(){};
this.mozClearResourceTimings=function(){};
this.msClearResourceTimings=function(){};
this.oClearResourceTimings=function(){}};
_.np=Uot.performance||Uot.mozPerformance||Uot.msPerformance||Uot.webkitPerformance||new Yjw;var Bor=!1,xCe=!1,tYe=(0,_.RW)(_.np.clearResourceTimings||_.np.webkitClearResourceTimings||_.np.mozClearResourceTimings||_.np.msClearResourceTimings||_.np.oClearResourceTimings||_.TX,_.np);var Lgl=window;Lgl.ytcsi&&(Lgl.ytcsi.infoGel=_.ha,Lgl.ytcsi.tick=_.Fg);var WZd=function(S){Ql.call(this,1,arguments);this.csn=S};
_.r(WZd,Ql);var Q4N=new OKr("screen-created",WZd),Rxw=[],Tle=hxX,FZw=0,et=new Map,ODe=new Map,kAN=new Map;var XC=Symbol("tf"),o2=new WeakMap;var qc=function(){this.shownElements=new Set;this.hiddenElements=new Set;this.visibleState=new Map;this.client=void 0;this.csn=null},ze=function(){qc.instance||(qc.instance=new qc);
return qc.instance};
_.M=qc.prototype;_.M.setClient=function(S){this.client=S};
_.M.JSC$10465_newScreen=function(){this.clear();this.csn=_.X$()};
_.M.clear=function(){this.shownElements.clear();this.hiddenElements.clear();this.visibleState.clear();this.csn=null};
_.M.reportShown=function(S,p,U){var Y=this.JSC$10465_getTrackingParams(S),L=S.visualElement?S.visualElement:Y;p=this.shownElements.has(L);var I=this.visibleState.get(L);this.shownElements.add(L);this.visibleState.set(L,!0);S.impressionLog&&!p&&S.impressionLog();if(Y||S.visualElement)if(U=MNt(this,S,U))if(L=Imt(this,S),A1(this,S)||L){Y=S.visualElement?S.visualElement:_.JS(Y);var V=S.interactionLoggingClientData;L||p?A1(this,S)&4?I||KZX(this.client,U,Y,V):A1(this,S)&1&&!p&&nru(this.client,U,Y,V):nru(this.client,
U,Y,V)}};
_.M.reportHidden=function(S,p,U){var Y=this.JSC$10465_getTrackingParams(S),L=S.visualElement?S.visualElement:Y;p=this.hiddenElements.has(L);var I=this.visibleState.get(L);this.hiddenElements.add(L);this.visibleState.set(L,!1);if(I===!1)return!0;if(!Y&&!S.visualElement)return!1;U=MNt(this,S,U);if(!U||!A1(this,S)&&Imt(this,S))return!1;Y=S.visualElement?S.visualElement:_.JS(Y);A1(this,S)&8?bDu(this.client,U,Y):A1(this,S)&2&&!p&&(S=this.client,p=sh({cttAuthInfo:Pv(U)||void 0},U),Y={csn:U,ve:Y.getAsJson(),
eventType:2},U==="UNDEFINED_CSN"?u5("visualElementHidden",p,Y):S?GY("visualElementHidden",Y,S,p):_.RV("visualElementHidden",Y,p));return!0};
_.M.JSC$10465_getTrackingParams=function(S){var p=this.getData(S),U,Y;if(_.y("il_use_view_model_logging_context")&&(p==null?0:(U=p.context)==null?0:(Y=U.loggingContext)==null?0:Y.loggingDirectives))return p.context.loggingContext.loggingDirectives.trackingParams||"";var L,I;if(p==null?0:(L=p.rendererContext)==null?0:(I=L.loggingContext)==null?0:I.loggingDirectives)return p.rendererContext.loggingContext.loggingDirectives.trackingParams||"";if(p==null?0:p.loggingDirectives)return p.loggingDirectives.trackingParams||
"";var V;return((V=S.veContainer)==null?0:V.trackingParams)?S.veContainer.trackingParams:(p==null?void 0:p.trackingParams)||""};
_.M.JSC$10465_elementShouldLogGesture=function(S,p){S=this.getData(S);return!!((Math.floor(Number(S&&S.loggingDirectives&&S.loggingDirectives.gestures&&S.loggingDirectives.gestures.types||""))||0)&p)};
_.M.JSC$10465_getNearestParentVe=function(S){var p=this.JSC$10465_getTrackingParams(S);return S.visualElement?S.visualElement:p?_.JS(p):S.parentElement?this.JSC$10465_getNearestParentVe(S.parentElement):null};
var MNt=function(S,p,U){var Y=_.X$(U);return S.csn===null||Y===S.csn||U?Y:(S=new _.y7("VisibilityLogger called before newScreen",{caller:p.tagName,previous_csn:S.csn,current_csn:Y}),_.eP(S),null)};
qc.prototype.getData=function(S){var p,U=S.data||((p=S.props)==null?void 0:p.data);if(!U&&_.y("enable_wiz_always_try_logging_info_map")){var Y;U=(Y=vd(S))==null?void 0:Y[XC]}else if(S.isWebComponentWrapper){var L;U=(L=vd(S))==null?void 0:L[XC]}return U};
var Imt=function(S,p){var U;return!((U=S.getData(p))==null||!U.loggingDirectives)},A1=function(S,p){S=S.getData(p);
return Math.floor(Number(S&&S.loggingDirectives&&S.loggingDirectives.visibility&&S.loggingDirectives.visibility.types||""))||1};var t1;t1=function(){};
_.OW=function(){t1.instance||(t1.instance=new t1);return t1.instance};
t1.prototype.setClient=function(S){_.lb(ze().setClient).bind(ze())(S)};
_.doj=function(){_.OW();_.lb(ze().JSC$10465_newScreen).bind(ze())()};
t1.prototype.clear=function(){_.lb(ze().clear).bind(ze())()};
t1.prototype.reportShown=function(S,p,U){_.lb(ze().reportShown).bind(ze())(S,p,U)};
t1.prototype.reportHidden=function(S,p,U){return _.lb(ze().reportHidden).bind(ze())(S,p,U)};
var mrw=function(S,p){return _.lb(ze().JSC$10465_getTrackingParams).bind(ze())(p)},Pmw=function(S,p){return _.lb(ze().JSC$10465_getNearestParentVe).bind(ze())(p)};var cj,VNw;cj=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};
_.HX=function(){cj.instance||(cj.instance=new cj);return cj.instance};
cj.prototype.setClient=function(S){this.client=S};
VNw=function(S,p,U){U=U===void 0?{}:U;_.lb(function(){var Y,L,I,V=((Y=_.b(p==null?void 0:p.commandMetadata,_.NU))==null?void 0:Y.rootVe)||((L=_.b(p==null?void 0:p.commandMetadata,VlQ))==null?void 0:(I=L.screenVisualElement)==null?void 0:I.uiType);if(V){Y=_.b(p==null?void 0:p.commandMetadata,$Ve);if(Y==null?0:Y.parentTrackingParams){var W=_.JS(Y.parentTrackingParams);if(Y.parentCsn)var O=Y.parentCsn}else U.clickedVisualElement?W=U.clickedVisualElement:p.clickTrackingParams&&(W=_.JS(p.clickTrackingParams));
a:{Y=_.b(p,_.E$);L=_.b(p,Yjk);if(Y){if(L=yse(Y,"VIDEO")){Y={token:L,videoId:Y.videoId};break a}}else if(L&&(Y=yse(L,"PLAYLIST"))){Y={token:Y,playlistId:L.playlistId};break a}Y=void 0}U=Object.assign({},{cttAuthInfo:Y,parentCsn:O},U);if(_.y("expectation_logging")){var D;U.loggingExpectations=((D=_.b(p==null?void 0:p.commandMetadata,VlQ))==null?void 0:D.loggingExpectations)||void 0}_.S8(S,V,W,U)}else _.eP(new _.y7("Error: Trying to create a new screen without a rootVeType",p))})()};
_.S8=function(S,p,U,Y){Y=Y===void 0?{}:Y;_.lb(function(){pVe.includes(p)||(_.eP(new _.y7("createClientScreen() called with a non-page VE",p)),p=83769);Y.isHistoryNavigation||(S.forwardHistoryStack=[],S.backHistoryStack.push({rootVe:p,key:Y.key||""}));S.graftQueue=[];S.stateChangedQueue=[];Y.dataPromises?TWm(S,p,U,Y):Wgm(S,p,U,Y)})()};
_.OYH=function(S,p,U){U=U===void 0?0:U;_.lb(function(){p.then(function(Y){S.pendingScreenCreation.has(U)&&S.pendingScreenFn&&S.pendingScreenFn();var L=_.X$(U),I=_.F$(U);if(L&&I){var V;(Y==null?0:(V=Y.response)==null?0:V.trackingParams)&&gB(S.client,L,I,_.JS(Y.response.trackingParams));var W;(Y==null?0:(W=Y.playerResponse)==null?0:W.trackingParams)&&gB(S.client,L,I,_.JS(Y.playerResponse.trackingParams))}})})()};
cj.prototype.graftServerVe=function(S,p,U){var Y=this;return _.lb(function(){var L=_.JS(S);_.pa(Y,L,p,U);return L})()};
_.ZOw=function(S,p,U,Y){return _.y("enable_client_ve_spec")&&p.clientVeSpec?(p=_.bZ(p.clientVeSpec.uiType,void 0,p.clientVeSpec.elementIndex,p.clientVeSpec.clientYoutubeData,void 0,p),_.pa(S,p,U,Y)?p:null):p.trackingParams?S.graftServerVe(p.trackingParams,U,Y):null};
_.kX=function(S,p,U,Y){return _.lb(function(){if(!p.veType)return _.s9(new _.y7("Error: Trying to graft a client VE without a veType.")),null;if(p.visibilityTypes){var L=p.visibilityTypes.reduce(function(I,V){return I|V});
L={visibility:{types:String(L)}}}L=_.bZ(p.veType,p.visualElement,p.elementIndex,p.clientYouTubeData,void 0,L);return _.pa(S,L,U,Y)?L:null})()};
_.pa=function(S,p,U,Y){Y=Y===void 0?0:Y;return _.lb(function(){if(S.pendingScreenCreation.has(Y))return S.graftQueue.push([p,U]),!0;var L=_.X$(Y),I=U||_.F$(Y);if(L&&I){if(_.y("combine_ve_grafts")){var V=S.cachedVisualElements.get(I.toString());V?V.push(p):(S.cachedRootVisualElements.set(I.toString(),I),S.cachedVisualElements.set(I.toString(),[p]));S.attachTimeout||(S.attachTimeout=_.bQ(_.PA,function(){kbc(S,L)},1200))}else gB(S.client,L,I,p);
return!0}return!1})()};
_.U8=function(S,p,U){U=U===void 0?0:U;var Y=S.recurringGrafts.get(U)||new Map;if(_.y("smarter_ve_dedupping"))for(var L=Array.from(Y.keys()),I=0;I<L.length;I++){var V=void 0,W=void 0;var O=p;var D=L[I];D.isClientVe()&&O.isClientVe()?(V=O.getAsJson(),W=D.getAsJson(),O=V.veType!==W.veType||V.elementIndex!==W.elementIndex||V.dataElement!==W.dataElement||O.getLoggingDirectives()!==D.getLoggingDirectives()?!1:!0):O=D.veData.trackingParams!==void 0&&O.veData.trackingParams!==void 0?((W=O.veData)==null?void 0:
W.trackingParams)===((V=D.veData)==null?void 0:V.trackingParams):!1;if(O)return}else if(Y.has(p))return;Y.set(p,void 0);S.recurringGrafts.set(U,Y);_.X$(U)==="UNDEFINED_CSN"||S.pendingScreenCreation.has(U)||_.pa(S,p,void 0,U)};
_.YV=function(S,p,U,Y){Y=_.X$(Y===void 0?0:Y);if(!Y)return!1;rcR(S.client,Y,p,U);return!0};
_.La=function(S,p,U,Y){if(!p)return!1;Y=_.X$(Y===void 0?0:Y);if(!Y)return!1;rcR(S.client,Y,_.JS(p),U);return!0};
_.gY=function(S,p){var U=p.getScreenLayer&&p.getScreenLayer();if(p.visualElement)return _.YV(S,p.visualElement,void 0,U);p=mrw(_.OW(),p);return _.La(S,p,void 0,U)};
cj.prototype.clickCommand=function(S,p,U){return _.La(this,S.clickTrackingParams,p,U===void 0?0:U)};
cj.prototype.stateChanged=function(S,p,U){this.visualElementStateChanged(_.JS(S),p,U===void 0?0:U)};
cj.prototype.visualElementStateChanged=function(S,p,U){U=U===void 0?0:U;U===0&&this.pendingScreenCreation.has(U)?this.stateChangedQueue.push([S,p]):this.logStateChanged(S,p,U)};
cj.prototype.logStateChanged=function(S,p,U){U=U===void 0?0:U;var Y=_.X$(U);S=S||_.F$(U);return Y&&S?(GAq(this.client,Y,S,p),!0):!1};
var TWm=function(S,p,U,Y){Y=Y===void 0?{}:Y;S.pendingScreenCreation.add(Y.layer||0);S.pendingScreenFn=function(){Wgm(S,p,U,Y);var V=_.F$(Y.layer);if(V){for(var W=_.d(S.graftQueue),O=W.next();!O.done;O=W.next())O=O.value,_.pa(S,O[0],O[1]||V,Y.layer);V=_.d(S.stateChangedQueue);for(W=V.next();!W.done;W=V.next())W=W.value,S.logStateChanged(W[0],W[1])}};
U||_.X$(Y.layer)||S.pendingScreenFn();if(Y.dataPromises)for(var L=_.d(Y.dataPromises),I=L.next();!I.done;I=L.next())_.OYH(S,I.value,Y.layer);else _.ZP(Error("uf"))},Wgm=function(S,p,U,Y){Y=Y===void 0?{}:Y;
var L=void 0;Y.layer||(Y.layer=0);L=Y.parentLayer!==void 0?Y.parentLayer:Y.layer;var I=_.X$(L);L=_.F$(L);var V=U||L,W;V&&(Y.parentCsn!==void 0?W={clientScreenNonce:Y.parentCsn,visualElement:V}:I&&I!=="UNDEFINED_CSN"&&(W={clientScreenNonce:I,visualElement:V}));var O,D=_.g7("EVENT_ID");I==="UNDEFINED_CSN"&&D&&(O={servletData:{serializedServletEventId:D}});_.y("combine_ve_grafts")&&I&&kbc(S,I);_.y("no_client_ve_attach_unless_shown")&&V&&I&&Qqd(V,I);try{var z=_.HDE(S.client,p,W,Y.csnToClone,Y.cttAuthInfo,
O,Y.implicitGestureType,void 0,Y.loggingExpectations)}catch(K){_.gK(K,{rootVeType:p,rootVe:L,parentVisualElement:U,currentCsn:I,parentEl:W,csnToClone:Y.csnToClone});_.ZP(K);return}_.ZL(z,p,Y.layer,Y.cttAuthInfo);I&&I!=="UNDEFINED_CSN"&&L&&!bWk(I)&&bDu(S.client,I,L,!0);S.backHistoryStack[S.backHistoryStack.length-1]&&!S.backHistoryStack[S.backHistoryStack.length-1].csn&&(S.backHistoryStack[S.backHistoryStack.length-1].csn=z||"");_.ha({clientScreenNonce:z});_.doj();var Q=_.F$(Y.layer);I&&I!=="UNDEFINED_CSN"&&
Q&&(_.y("web_mark_root_visible")||_.y("music_web_mark_root_visible"))&&_.a2(z,Q);S.pendingScreenCreation.delete(Y.layer||0);S.pendingScreenFn=void 0;var J;(J=S.recurringGrafts.get(Y.layer))==null||J.forEach(function(K,G){K?_.pa(S,G,K,Y.layer):Q&&_.pa(S,G,Q,Y.layer)});
HYt(S)},HYt=function(S){for(var p=0;p<S.afterNewScreenOneOffJobs.length;p++){var U=S.afterNewScreenOneOffJobs[p];
try{U()}catch(Y){_.ZP(Y)}}for(p=S.afterNewScreenOneOffJobs.length=0;p<S.afterNewScreenRecurringJobs.length;p++){U=S.afterNewScreenRecurringJobs[p];try{U()}catch(Y){_.ZP(Y)}}},kbc=function(S,p){if(p===void 0)for(var U=y2G(),Y=0;Y<U.length;Y++)U[Y]!==void 0&&kbc(S,U[Y]);
else S.cachedVisualElements.forEach(function(L,I){(I=S.cachedRootVisualElements.get(I))&&DVG(S.client,p,I,L)}),S.cachedVisualElements.clear(),S.cachedRootVisualElements.clear(),S.attachTimeout=void 0};var Mu=function(S){S=S===void 0?{layer:0}:S;this.hasRun=!1;this.createScreenConfig=S;S={};this.sQE=(S.response=!1,S.playerResponse=!1,S)};
_.r(Mu,vj);Mu.prototype.validate=function(S){return!(!S.data||!S.data.response&&!S.data.playerResponse)};
Mu.prototype.handle=function(S){var p=_.HX(),U=this.createScreenConfig.layer;S.data.response&&S.data.response.trackingParams&&!this.sQE.response&&(p.graftServerVe(S.data.response.trackingParams,void 0,U),this.sQE.response=!0);S.data.playerResponse&&S.data.playerResponse.trackingParams&&!this.sQE.playerResponse&&(p.graftServerVe(S.data.playerResponse.trackingParams,void 0,U),this.sQE.playerResponse=!0)};var I6=function(){this.cS=_.ay();this.eh=[];this.b16=0};
I6.prototype.processChunk=function(S){if(S){for(var p=_.d(this.eh),U=p.next();!U.done;U=p.next())U=U.value,U.validate(S)&&(U.handle(S),U.hasRun=!0);_.Fg("np"+this.b16);this.b16++}};var exe,$d,i5,ZDd=0,sqw=function(S,p,U,Y,L,I){var V=i5;this.name=S;this.attributes=p;this.startTime=U;this.id=Y;this.sessionId=L;this.traceId=I;this.parent=V};
sqw.prototype.attr=function(S,p){this.attributes[S]=p};
sqw.prototype.close=function(S){if(!$d)throw Error("wf");var p=$d;if(this!==i5)throw Error("vf");var U=i5;S&&(U.status=S);U.endTime=performance.now();S=_.d(p.spanProcessors);for(p=S.next();!p.done;p=S.next()){var Y=void 0,L=void 0;(L=(Y=p.value).onSpanEnd)==null||L.call(Y,U)}i5=U==null?void 0:U.parent};
sqw.prototype[Symbol.dispose]=function(){this.close()};var $4G,Dom,nKt;_.VO=function(S,p,U,Y,L,I,V){V=V===void 0?[]:V;this.buildCommandPayload=S;this.navigate=p;this.handleServiceRequest=U;this.sendAction=Y;this.JSC$10506_screenManager=L;this.commandResolverMap=I;this.autoLogResolverAllowlist=V;this.pendingCommands=new Set;this.isTracingEnabled=!1;Dom(this)};
$4G=function(S,p,U){var Y=s_R,L=euR,I=_.HX(),V=zZH;U=U===void 0?[]:U;_.VO.instance=new _.VO(S,p,Y,L,I,V,U)};
Dom=function(S){if(!S.isTracingEnabled&&$d&&($d.enabledSpans?$d.enabledSpans.command:1)){var p=S.resolveCommand;S.resolveCommand=function(U,Y){a:{for(L in U)if(Object.prototype.hasOwnProperty.call(U,L)){var L={commandType:L};break a}L={}}L=gru("command",L);U=p.bind(this,U,Y);if(L){Y=void 0;try{var I=U(null)}catch(V){throw Y="error",V;}finally{L==null||L.close(Y)}}else I=U(null);return I};
S.isTracingEnabled=!0}};
nKt=function(S,p,U){if(!S.commandResolverMap)return!1;var Y=f0d(p,S.commandResolverMap);return Y?((S.autoLogResolverAllowlist.some(function(L){return!!_.b(p,L)})||(U==null?0:U.forceClickLogging))&&QnI(S,p,U),Y instanceof Promise?Y.then(function(L){L.resolve(p,U)}):Y.resolve(p,U),!0):!1};
_.VO.prototype.resolveCommand=function(S,p){var U=this,Y=JtH(S);if(nKt(this,S,p))return!0;if(Y)return ytI(this,S,p);if(!this.buildCommandPayload)return w1q(S,"Unhandled command by buildCommandPayload"),!1;var L=this.buildCommandPayload(S,p);if(p==null?0:p.commandController)L.commandController=p.commandController;if(L.type===0){if(!this.navigate)return l0E(S,"navigate"),!1;if(!Kgt(L.command))return w1q(S,"Page requests need to specify a url"),!1;_.y("logging_avoid_blocking_during_navigation")&&_.cFk().transition("application_navigating");
S=this.navigate(L)||[];Z8d(S).then(function(){U.pendingCommands.delete(L.command)});
return!0}if(L.type===1){if(!this.handleServiceRequest)return l0E(S,"handleServiceRequest"),!1;(p==null?0:p.forceClickLogging)&&QnI(this,L.command,p);S=this.handleServiceRequest(L);Z8d(S).then(function(){U.pendingCommands.delete(L.command)});
return!0}if(L.type===2){if(!this.sendAction)return l0E(S,"sendAction"),!1;QnI(this,L.command,p);this.sendAction(L);return!0}return!1};
var QnI=function(S,p,U){if((U==null||!U.disableClickTracking)&&S.JSC$10506_screenManager)if(p.clickTrackingParams&&_.y("log_click_with_layer_from_element_in_command_handler")){var Y;U=U==null?void 0:(Y=U.form)==null?void 0:Y.element;S.JSC$10506_screenManager.clickCommand(p,null,U&&U.getScreenLayer&&U.getScreenLayer())}else p.clickTrackingParams?S.JSC$10506_screenManager.clickCommand(p):!_.y("disable_clicked_visual_element_in_command_handler")&&(U==null?0:U.clickedVisualElement)&&_.YV(S.JSC$10506_screenManager,
U.clickedVisualElement)},JtH=function(S){var p=!!_.b(S,_.I2),U;
S=((U=_.b(S,_.TI))==null?void 0:U.signal)==="CLIENT_SIGNAL";return p||S},ytI=function(S,p,U){var Y=_.b(p,_.I2);
if(Y)var L=(Y==null?void 0:Y.commands)||[];else{var I;if(((I=_.b(p,_.TI))==null?void 0:I.signal)==="CLIENT_SIGNAL"){var V;L=((V=_.b(p,_.TI))==null?void 0:V.actions)||[]}}if(L){p=_.d(L);for(L=p.next();!L.done;L=p.next()){L=L.value;try{S.resolveCommand(L,U)}catch(W){W instanceof Error&&_.ZP(W)}}return!0}w1q(p,"Could not handle the meta command");return!1},Kgt=function(S){var p;
return!((p=_.b(S==null?void 0:S.commandMetadata,_.NU))==null||!p.url)};var d_=function(){vj.apply(this,arguments)};
_.r(d_,vj);d_.prototype.validate=function(S){var p,U;return!this.hasRun&&!!((p=S.data.response)==null?0:(U=p.onResponseReceivedEndpoints)==null?0:U.length)};
d_.prototype.handle=function(S){var p=_.VO.instance;S=_.d(S.data.response.onResponseReceivedEndpoints);for(var U=S.next();!U.done;U=S.next())p.resolveCommand(U.value)};var bYm,jnm,rtQ;
bYm=function(){this.shortsPipActivation=this.watchWhileActivation=this.watchPipActivation=this.mediaSessionPipActivation=this.showMiniplayerCommandActivation=this.lockupActivation=this.playlistSuggestionsShelfActivation=this.playablesDestPageActivation=this.miniAppPageActivation=this.productDetailsPageActivation=this.playlistWatchPageActivation=this.userActivation=this.miniplayerButtonActivation=!1;this.navigationFinishPromise=_.Mw();this.navigatingAwayFromWatchDeletedVideo=!1;this.currentEndpoint=null;
this.isVideoPlaying=!1};
_.Vy=function(){jnm||(jnm=new bYm);return jnm};
rtQ=function(){var S=_.Vy();S.miniplayerButtonActivation=!1;S.userActivation=!1;S.playlistWatchPageActivation=!1;S.productDetailsPageActivation=!1;S.miniAppPageActivation=!1;S.playablesDestPageActivation=!1;S.lockupActivation=!1;S.showMiniplayerCommandActivation=!1;S.playlistSuggestionsShelfActivation=!1;S.mediaSessionPipActivation=!1;S.watchPipActivation=!1;S.watchWhileActivation=!1;S.shortsPipActivation=!1};
_.Gbq=function(){var S=_.Vy(),p=S.mediaSessionPipActivation,U=S.watchPipActivation,Y=S.watchWhileActivation,L=S.playlistWatchPageActivation,I=S.lockupActivation,V=S.showMiniplayerCommandActivation,W=S.navigatingAwayFromWatchDeletedVideo,O=S.shortsPipActivation,D=S.playlistSuggestionsShelfActivation,z=S.productDetailsPageActivation,Q=S.miniAppPageActivation,J=S.playablesDestPageActivation;return!S.miniplayerButtonActivation&&!L&&!D&&!z&&!Q&&!J&&!I&&!V&&!p&&!U&&!Y&&!O||W};var R3G;_.TE=Bd("FEwhat_to_watch","/",3854);_.FRG=Bd("FEdownloads","/feed/downloads",42352);R3G=Bd("FEmusic_offline","browse/FEmusic_offline",42352);var o4=function(S,p){p=p===void 0?[]:p;var U=U===void 0?[]:U;p=MRr.apply(null,[INq.apply(null,_.jo(p))].concat(_.jo(U)));this.store=W5w(S,void 0,p)};
o4.prototype.getState=function(){return this.store.getState()};
o4.prototype.dispatch=function(S){return this.store.dispatch(S)};
o4.prototype.subscribe=function(S){return this.store.subscribe(S)};
o4.prototype.replaceReducer=function(S){return this.store.replaceReducer(S)};
o4.prototype[Symbol.observable]=function(){return this.store[Symbol.observable]()};
_.Wt=function(S,p,U){var Y=p(S.getState());return S.subscribe(function(){var L=p(S.getState());if(L!==Y){var I=Y;Y=L;U(L,I)}})};var IEd;_.WG=function(S,p,U){return _.S4({type:"REPLACE_ENTITY",payload:{entityPayload:U,entityType:S,key:p}})};
IEd=function(S){return _.S4({type:"REPLACE_ENTITIES",payload:S})};
_.r8=function(S,p,U,Y){return _.S4({type:"UPDATE_ENTITY",payload:{entityPayload:U,entityType:S,key:p,mergeOption:Y}})};var t0q=function(S){var p=this;S=S===void 0?[]:S;this.arrays=[];this.totalLength=this.arrayPos=this.arrayIdx=0;S.forEach(function(U){p.append(U)})};
_.M=t0q.prototype;_.M.getLength=function(){return this.totalLength};
_.M.append=function(S){var p=this.arrays.length===0?!1:(p=this.arrays[this.arrays.length-1])&&p.buffer===S.buffer&&p.byteOffset+p.length===S.byteOffset;p?(p=this.arrays[this.arrays.length-1],this.arrays[this.arrays.length-1]=new Uint8Array(p.buffer,p.byteOffset,p.length+S.length),this.arrayPos=this.arrayIdx=0):this.arrays.push(S);this.totalLength+=S.length};
_.M.split=function(S){for(var p=new t0q,U=new t0q,Y=_.d(this.arrays),L=Y.next();!L.done;L=Y.next())L=L.value,S>=L.length?(p.append(L),S-=L.length):S?(p.append(new Uint8Array(L.buffer,L.byteOffset,S)),U.append(new Uint8Array(L.buffer,L.byteOffset+S,L.length-S)),S=0):U.append(L);return{headView:p,tailView:U}};
_.M.extract=function(S,p){return this.split(S).tailView.split(p).headView};
_.M.isFocused=function(S){return S>=this.arrayPos&&S<this.arrayPos+this.arrays[this.arrayIdx].length};
_.M.focus=function(S){if(!this.isFocused(S))for(S<this.arrayPos&&(this.arrayPos=this.arrayIdx=0);this.arrayPos+this.arrays[this.arrayIdx].length<=S&&this.arrayIdx<this.arrays.length;)this.arrayPos+=this.arrays[this.arrayIdx].length,this.arrayIdx+=1};
var hZm=function(S,p){S.focus(p);return S.arrays[S.arrayIdx][p-S.arrayPos]};(function(){var S=function(Y){return new Uint8Array(Y)},p=function(Y){for(var L=new Uint8Array(Y.length),I=0;I<Y.length;I++)L[I]=Y[I];
return L},U=new Uint8Array([1]);
return U.length===1&&U[0]===1?S:p})();
var $Vd=Array(1024),vrq=window.TextDecoder?new TextDecoder:void 0,NlE=window.TextEncoder?new TextEncoder:void 0;var Ack=function(S){this.arrayView=S;this.pos=0;this.pendingTagAndType=-1},pK=function(S){var p=hZm(S.arrayView,S.pos);
++S.pos;if(p<128)return p;for(var U=p&127,Y=1;p>=128;)p=hZm(S.arrayView,S.pos),++S.pos,Y*=128,U+=(p&127)*Y;return U},cck=function(S,p){var U=S.pendingTagAndType;
for(S.pendingTagAndType=-1;S.pos+1<=S.arrayView.totalLength;){U<0&&(U=pK(S));var Y=U>>3,L=U&7;if(Y===p)return!0;if(Y>p){S.pendingTagAndType=U;break}U=-1;switch(L){case 0:pK(S);break;case 1:S.pos+=8;break;case 2:Y=pK(S);S.pos+=Y;break;case 5:S.pos+=4}}return!1};var pCG=function(){this.pos=0;this.submessagePosStack=[];this.buf=qwr(4096);this.view=new DataView(this.buf.buffer,this.buf.byteOffset,this.buf.byteLength)},LK=function(S,p){p=S.pos+p;
if(!(S.buf.length>=p)){for(var U=S.buf.length*2;U<p;)U*=2;S.buf=qwr(U,S.buf.subarray(0,S.pos));S.view=new DataView(S.buf.buffer,S.buf.byteOffset,S.buf.byteLength)}},Yl=function(S,p){if(p>268435455){LK(S,4);
for(var U=p&1073741823,Y=0;Y<4;Y++)S.view.setUint8(S.pos,U&127|128),U>>=7,S.pos+=1;p=Math.floor(p/268435456)}for(LK(S,4);p>127;)S.view.setUint8(S.pos,p&127|128),p>>=7,S.pos+=1;S.view.setUint8(S.pos,p);S.pos+=1};for(var UDR={accountLinkStatusEntity:122,booleanEntity:307,buttonEntity:358,captionTrack:225,channelHandle:275,chipEntity:498,commerceAcquisitionClientPayloadEntity:276,commerceCartListEntity:236,contextNoteFeedEntityPayload:483,continuationTokenEntity:406,downloadQualityPickerEntity:202,downloadsPageRefreshTokenEntity:299,downloadsPageViewConfigurationEntity:264,downloadStatusEntity:141,dismissState:540,sfvAudioItemCurrentlyPlayingEntity:186,emojiFountainDataEntity:393,emojiCustomizationSetEntity:496,
fakeChannel:2,fakePlaylist:279,fakePlaylistEntryCollection:280,fakeVideo:182,fakeVideoDescription:278,featuredProductsEntity:392,flowStateEntity:252,iconBadgeEntity:229,interstitialInteractionStateEntity:443,likeButtonAnimationEntity:567,liveChatPollStateEntity:217,liveViewerLeaderboardChatEntryPointStateEntity:563,liveViewerLeaderboardPointsEntity:564,liveReactionsDataEntity:503,logoEntity:245,macroMarkerEntity:329,mainDownloadsLibraryEntity:158,mainDownloadsListEntity:164,mainPlaylistDownloadStateEntity:373,
mainPlaylistEntity:306,mainPlaylistVideoEntity:368,mainVideoDownloadStateEntity:262,mainVideoEntity:261,markersEngagementPanelSyncEntity:196,markersVisibilityOverrideEntity:312,musicAlbumReleaseDetail:18,musicAlbumReleaseDownloadMetadataEntity:259,musicAlbumRelease:17,musicAlbumReleaseUserDetail:19,musicArtistDetail:21,musicArtist:20,musicArtistUserDetail:22,musicDownloadsLibraryEntity:257,musicLibraryEdit:121,musicLibraryStatusEntity:318,musicPlaylist:24,musicPlaylistDownloadMetadataEntity:248,musicShare:100,
musicTrackDetail:29,musicTrackDownloadMetadataEntity:234,musicTrack:28,musicTrackUserDetail:30,offlineOrchestrationActionWrapperEntity:169,offlineVideoPolicy:130,offlineVideoStreams:198,offlineabilityEntity:246,orchestrationWebSamplingEntity:242,pageHeaderEntity:495,pdpStateEntity:524,pinnedProductEntity:273,playbackData:119,quantityIncrementerEntity:356,playerStateEntity:323,refresh:148,saveToPlaylistListEntity:231,selectedChipIndexEntityPayload:479,settingEntity:297,stringEntity:382,suggestedFeedbackChipStateEntity:485,
transfer:120,trendingOfferEntity:469,videoDownloadContextEntity:461,videoOverviewAsyncDataEntity:545,videoPlaybackPositionEntity:76,votingEntity:561,ytMainChannelEntity:152,youchatPendingResponseEntity:553,ytMainDownloadedVideoEntity:155,ytMainVideoEntity:151},Sbw={},RZI=_.d(Object.entries(UDR)),Fgj=RZI.next();!Fgj.done;Fgj=RZI.next()){var XVd=_.d(Fgj.value),PzE=XVd.next().value,ZYP=XVd.next().value,snP=PzE,eZc=ZYP;eZc&&(Sbw[eZc]=snP)};var LlR=function(S,p){S=S===void 0?{}:S;switch(p.type){case "ENTITY_LOADED":return p.payload.reduce(function(Y,L){var I,V=(I=L.options)==null?void 0:I.persistenceOption;if(V&&V!=="ENTITY_PERSISTENCE_OPTION_UNKNOWN"&&V!=="ENTITY_PERSISTENCE_OPTION_INMEMORY_AND_PERSIST")return Y;if(!L.entityKey)return _.ZP(Error("yf")),Y;if(L.type==="ENTITY_MUTATION_TYPE_REPLACE"){if(!L.payload)return L=new _.y7("REPLACE entity mutation is missing a payload",{entityKey:L.entityKey}),_.ZP(L),Y;var W=(0,_.h9.getAnyKey)(L.payload);
return IFX(Y,W,L.entityKey,L.payload[W])}if(L.type==="ENTITY_MUTATION_TYPE_DELETE"){a:{L=L.entityKey;try{var O=_.Uc(L).entityType;W=IFX(Y,O,L);break a}catch(Q){if(Q instanceof Error){L=new _.y7("Failed to deserialize entity key",{entityKey:L,originalMessage:Q.message});_.ZP(L);W=Y;break a}throw Q;}W=void 0}return W}if(L.type==="ENTITY_MUTATION_TYPE_UPDATE"){if(!L.payload)return L=new _.y7("UPDATE entity mutation is missing a payload",{entityKey:L.entityKey}),_.ZP(L),Y;W=(0,_.h9.getAnyKey)(L.payload);
var D,z;return dDG(Y,W,L.entityKey,L.payload[W],(D=L.fieldMask)==null?void 0:(z=D.mergeOptions)==null?void 0:z.repeatedFieldsMergeOption)}return Y},S);
case "REPLACE_ENTITY":var U=p.payload;return IFX(S,U.entityType,U.key,U.entityPayload);case "REPLACE_ENTITIES":return Object.keys(p.payload).reduce(function(Y,L){var I=p.payload[L];return Object.keys(I).reduce(function(V,W){return IFX(V,L,W,I[W])},Y)},S);
case "UPDATE_ENTITY":return U=p.payload,dDG(S,U.entityType,U.key,U.entityPayload,U.mergeOption);default:return S}};var Vdr;var gKc=!1,O8,kV,Ht,Dr,zE,utm=function(S){_.hY.call(this);this.counter=[0,0,0,0];this.cipherBlock=new Uint8Array(16);this.blockOffset=16;if(!gKc){var p,U=new Uint8Array(256),Y=new Uint8Array(256);var L=1;for(p=0;p<256;p++)U[L]=p,Y[p]=L,L^=L<<1^(L>>7&&283);O8=new Uint8Array(256);kV=dt(256);Ht=dt(256);Dr=dt(256);zE=dt(256);for(var I=0;I<256;I++){L=I?Y[255^U[I]]:0;L^=L<<1^L<<2^L<<3^L<<4;L=L&255^L>>>8^99;O8[I]=L;p=L<<1^(L>>7&&283);var V=p^L;kV[I]=p<<24|L<<16|L<<8|V;Ht[I]=V<<24|kV[I]>>>8;Dr[I]=L<<24|Ht[I]>>>
8;zE[I]=L<<24|Dr[I]>>>8}gKc=!0}L=dt(44);for(U=0;U<4;U++)L[U]=S[4*U]<<24|S[4*U+1]<<16|S[4*U+2]<<8|S[4*U+3];for(Y=1;U<44;U++)S=L[U-1],U%4||(S=(O8[S>>16&255]^Y)<<24|O8[S>>8&255]<<16|O8[S&255]<<8|O8[S>>>24],Y=Y<<1^(Y>>7&&283)),L[U]=L[U-4]^S;this.key=L};
_.r(utm,_.hY);
utm.prototype.encrypt=function(S){var p=S.length;S=new Uint8Array(S.buffer.slice(S.byteOffset,S.byteOffset+p));for(var U=this.cipherBlock,Y=0;Y<p&&this.blockOffset<16;)S[Y++]^=U[this.blockOffset++];for(var L=p-(p-Y)%16;Y<L;)wVw(this),S[Y++]^=U[0],S[Y++]^=U[1],S[Y++]^=U[2],S[Y++]^=U[3],S[Y++]^=U[4],S[Y++]^=U[5],S[Y++]^=U[6],S[Y++]^=U[7],S[Y++]^=U[8],S[Y++]^=U[9],S[Y++]^=U[10],S[Y++]^=U[11],S[Y++]^=U[12],S[Y++]^=U[13],S[Y++]^=U[14],S[Y++]^=U[15];if(Y<p)for(wVw(this),this.blockOffset=0;Y<p;)S[Y++]^=
U[this.blockOffset++];return S};
var lmQ=function(S,p){for(var U=0;U<4;U++)S.counter[U]=p[U*4]<<24|p[U*4+1]<<16|p[U*4+2]<<8|p[U*4+3];S.blockOffset=16},wVw=function(S){for(var p=S.key,U=S.counter[0]^p[0],Y=S.counter[1]^p[1],L=S.counter[2]^p[2],I=S.counter[3]^p[3],V=3;V>=0&&!(S.counter[V]=-~S.counter[V]);V--);
for(var W,O,D=4;D<40;)V=kV[U>>>24]^Ht[Y>>16&255]^Dr[L>>8&255]^zE[I&255]^p[D++],W=kV[Y>>>24]^Ht[L>>16&255]^Dr[I>>8&255]^zE[U&255]^p[D++],O=kV[L>>>24]^Ht[I>>16&255]^Dr[U>>8&255]^zE[Y&255]^p[D++],I=kV[I>>>24]^Ht[U>>16&255]^Dr[Y>>8&255]^zE[L&255]^p[D++],U=V,Y=W,L=O;S=S.cipherBlock;V=p[40];S[0]=O8[U>>>24]^V>>>24;S[1]=O8[Y>>16&255]^V>>16&255;S[2]=O8[L>>8&255]^V>>8&255;S[3]=O8[I&255]^V&255;V=p[41];S[4]=O8[Y>>>24]^V>>>24;S[5]=O8[L>>16&255]^V>>16&255;S[6]=O8[I>>8&255]^V>>8&255;S[7]=O8[U&255]^V&255;V=p[42];
S[8]=O8[L>>>24]^V>>>24;S[9]=O8[I>>16&255]^V>>16&255;S[10]=O8[U>>8&255]^V>>8&255;S[11]=O8[Y&255]^V&255;V=p[43];S[12]=O8[I>>>24]^V>>>24;S[13]=O8[U>>16&255]^V>>16&255;S[14]=O8[Y>>8&255]^V>>8&255;S[15]=O8[L&255]^V&255};var amm=!1;(function(){var S=function(Y){return new Uint8Array(Y)},p=function(Y){for(var L=new Uint8Array(Y.length),I=0;I<Y.length;I++)L[I]=Y[I];
return L},U=new Uint8Array([1]);
return U.length===1&&U[0]===1?S:p})();
var Qy;var fmt=function(S){this.JSC$10574_aesKey=S};
fmt.prototype.encrypt=function(S,p){var U=this,Y,L;return _.T(function(I){if(I.nextAddress==1){a:{if(!amm&&!$U){if(Qy){var V=Qy;break a}Qy=(V=window.crypto)==null?void 0:V.subtle;var W,O,D;if(((W=Qy)==null?0:W.importKey)&&((O=Qy)==null?0:O.sign)&&((D=Qy)==null?0:D.encrypt)){V=Qy;break a}Qy=void 0}V=void 0}Y=V;if(!Y)return I.return(Czw(U,S,p));_.M2(I,3);return _.k(I,xoE(U,S,p,Y),5)}if(I.nextAddress!=3)return I.return(I.yieldResult);L=_.W4(I);_.eP(L);amm=!0;return I.return(Czw(U,S,p))})};
var xoE=function(S,p,U,Y){var L,I;return _.T(function(V){switch(V.nextAddress){case 1:if(S.cryptoKey){V.jumpTo(2);break}return _.k(V,Y.importKey("raw",S.JSC$10574_aesKey,{name:"AES-CTR"},!1,["encrypt"]),3);case 3:S.cryptoKey=V.yieldResult;case 2:return L={name:"AES-CTR",counter:U,length:128},_.k(V,Y.encrypt(L,S.cryptoKey,p),4);case 4:return I=V.yieldResult,V.return(new Uint8Array(I))}})},Czw=function(S,p,U){S.encryptorPolyfill||(S.encryptorPolyfill=new utm(S.JSC$10574_aesKey));
lmQ(S.encryptorPolyfill,U);return S.encryptorPolyfill.encrypt(p)},EKP=function(S){this.JSC$10578_aesKey=S};
EKP.prototype.encrypt=function(S,p){this.encryptor||(this.encryptor=new utm(this.JSC$10578_aesKey));lmQ(this.encryptor,p);return this.encryptor.encrypt(S)};var moP={},OCd=qT("yt-idb-pref-storage",{objectStores:(moP.prefs={addedAtVersion:1},moP),shared:!1,upgrade:function(S,p){p(1)&&at(lg(S,"prefs",{keyPath:"key"}),"byExpiration","expirationTimestampMs")},
version:1});_.na=function(S){this.token=S};
_.na.getInstance=function(){return _.T(function(S){return S.return(new Promise(function(p){_.BS().then(function(U){U?(_.na.instance||(_.na.instance=new _.na(U)),p(_.na.instance)):p(void 0)})}))})};
_.na.prototype.get=function(S){var p=this,U,Y,L;return _.T(function(I){if(I.nextAddress==1)return _.k(I,kxE(p.token),2);if(I.nextAddress!=3)return U=I.yieldResult,_.k(I,U.get("prefs",S),3);Y=I.yieldResult;if(!Y)return I.return();L=(0,_.AI)();return Y.expirationTimestampMs<=L?I.return():I.return(Y.value)})};
_.na.prototype.set=function(S,p,U){U=U===void 0?31536E3:U;var Y=this,L,I,V;return _.T(function(W){if(W.nextAddress==1)return L=(0,_.AI)(),I={key:S,value:p,expirationTimestampMs:L+U*1E3},_.k(W,kxE(Y.token),2);V=W.yieldResult;return _.k(W,V.put("prefs",I),0)})};
_.na.prototype.remove=function(S){var p=this,U;return _.T(function(Y){if(Y.nextAddress==1)return _.k(Y,kxE(p.token),2);U=Y.yieldResult;return _.k(Y,U.delete("prefs",S),0)})};var J4={},oKt=(J4.INVALID_ENCODER_VERSION="Invalid encoder version",J4.KEY_CREATION_FAILED="Failed to create encoder key",J4.UNKNOWN_DECODE_ERROR="Failed to decode PES data",J4.UNKNOWN_ENCODE_ERROR="Failed to encode PES data",J4.WRONG_DATA_TYPE="Encoder cannot process the data type",J4),Vr=function(S,p){p=p===void 0?{}:p;_.y7.call(this,oKt[S],Object.assign({},{name:"PESEncoderError",type:S},p));this.type=S;this.level="WARNING";Object.setPrototypeOf(this,Vr.prototype)};
_.r(Vr,_.y7);var vKj=function(){},$oc=function(S,p,U){try{return S.encodeImpl(p,U)}catch(Y){QXq(Y,DDk)}},iYw=function(S,p,U){var Y;
return _.T(function(L){if(L.nextAddress==1)return _.M2(L,2),_.k(L,S.decodeAsyncImpl(p,U),4);if(L.nextAddress!=2)return L.return(L.yieldResult);Y=_.W4(L);QXq(Y,zDk);_.OV(L)})};
vKj.prototype.decodeAsyncImpl=function(S,p){return Promise.resolve(this.decodeImpl(S,p))};var yy=function(S,p){this.aesEncryptor=S;this.aesEncryptorAsync=p};
_.r(yy,vKj);yy.prototype.encodeImpl=function(S,p){p=nir(p);S=(new TextEncoder).encode(JSON.stringify(S));return this.aesEncryptor.encrypt(S,p)};
yy.prototype.decodeImpl=function(S,p){if(!(S instanceof Uint8Array))throw HCR(1);var U=new TextDecoder;p=nir(p);S=this.aesEncryptor.encrypt(S,p);return JSON.parse(U.decode(S))};
yy.prototype.decodeAsyncImpl=function(S,p){var U=this,Y,L,I;return _.T(function(V){if(V.nextAddress==1){if(!(S instanceof Uint8Array))throw HCR(1);Y=new TextDecoder;L=nir(p);return _.k(V,U.aesEncryptorAsync.encrypt(S,L),2)}I=V.yieldResult;return V.return(JSON.parse(Y.decode(I)))})};var JKw={accountLinkStatusEntity:JHm,booleanEntity:B1m,buttonEntity:YOt,captionTrack:iXE,channelHandle:u7c,chipEntity:w$j,commerceAcquisitionClientPayloadEntity:FSm,commerceCartListEntity:Xjt,contextNoteFeedEntityPayload:E1H,continuationTokenEntity:X3E,downloadQualityPickerEntity:nxt,downloadsPageRefreshTokenEntity:y2j,downloadsPageViewConfigurationEntity:aSe,downloadStatusEntity:J2l,dismissState:lEj,sfvAudioItemCurrentlyPlayingEntity:hxl,emojiFountainDataEntity:SOm,emojiCustomizationSetEntity:chq,
fakeChannel:tRj,fakePlaylist:ckH,fakePlaylistEntryCollection:SCQ,fakeVideo:UAI,fakeVideoDescription:YCl,featuredProductsEntity:Lnt,flowStateEntity:DAd,iconBadgeEntity:PBE,interstitialInteractionStateEntity:lxH,likeButtonAnimationEntity:fSd,liveChatPollStateEntity:vZe,liveViewerLeaderboardChatEntryPointStateEntity:dVE,liveViewerLeaderboardPointsEntity:V0Q,liveReactionsDataEntity:pjw,logoEntity:uXj,macroMarkerEntity:CRq,mainDownloadsLibraryEntity:Kfe,mainDownloadsListEntity:bWw,mainPlaylistDownloadStateEntity:r2t,
mainPlaylistEntity:PRj,mainPlaylistVideoEntity:ZWE,mainVideoDownloadStateEntity:GBj,mainVideoEntity:u8j,markersEngagementPanelSyncEntity:xNc,markersVisibilityOverrideEntity:Exq,musicAlbumReleaseDetail:zLw,musicAlbumReleaseDownloadMetadataEntity:Wnl,musicAlbumRelease:DCI,musicAlbumReleaseUserDetail:QEl,musicArtistDetail:JsH,musicArtist:ngI,musicArtistUserDetail:yst,musicDownloadsLibraryEntity:OXm,musicLibraryEdit:Knc,musicLibraryStatusEntity:bXc,musicPlaylist:jEc,musicPlaylistDownloadMetadataEntity:k9q,
musicShare:G9l,musicTrackDetail:RLc,musicTrackDownloadMetadataEntity:HXm,musicTrack:hLw,musicTrackUserDetail:Fnw,offlineOrchestrationActionWrapperEntity:NoP,offlineVideoPolicy:Boc,offlineVideoStreams:qBq,offlineabilityEntity:hBE,orchestrationWebSamplingEntity:RBj,pageHeaderEntity:vzt,pdpStateEntity:ZQc,pinnedProductEntity:MYe,playbackData:AsQ,playerStateEntity:mNm,quantityIncrementerEntity:sgl,refresh:tYq,saveToPlaylistListEntity:iDE,selectedChipIndexEntityPayload:oxI,settingEntity:nzj,stringEntity:qxI,
suggestedFeedbackChipStateEntity:vxt,transfer:csm,trendingOfferEntity:I7m,videoDownloadContextEntity:SwI,videoOverviewAsyncDataEntity:UuI,videoPlaybackPositionEntity:IHq,votingEntity:BHI,ytMainChannelEntity:w3t,youchatPendingResponseEntity:$NH,ytMainDownloadedVideoEntity:FfP,ytMainVideoEntity:lSq};var NWI,qjI,HJ,YSG,Lwk,ctw,pLH,Ssw,tNH;NWI=function(S,p){this.JSC$10597_wrapped=S;this.JSC$10597_encoderRegistry=p;this.changedKeys={}};
qjI=function(S,p){a:{S=BWH(S.JSC$10597_encoderRegistry,p.version);try{var U=S.decodeImpl(p.data,p.key);break a}catch(Y){QXq(Y,zDk)}U=void 0}return U};
_.Ate=function(S,p,U){return S.JSC$10597_wrapped.objectStore("EntityStore").get(p).then(function(Y){if(Y){if(U&&Y.entityType!==U)throw Error("zf");return qjI(S,Y)}})};
HJ=function(S,p,U){return U?(U=U.map(function(Y){return _.Ate(S,Y,p)}),wE.all(U)):S.JSC$10597_wrapped.objectStore("EntityStore").index("entityType").getAll(IDBKeyRange.only(p)).then(function(Y){return Y.map(function(L){return qjI(S,L)})})};
_.hDw=function(S,p,U){var Y=YbR(p),L=BWH(S.JSC$10597_encoderRegistry,1),I=Object.assign({},p);return S.JSC$10597_wrapped.objectStore("EntityStore").get(Y).then(function(V){if(V){if(V.entityType!==U)throw Error("zf");I.entityMetadata||(V=qjI(S,V),I.entityMetadata=V.entityMetadata)}}).then(function(){var V={key:Y,
entityType:U,data:$oc(L,I,Y),version:1};return wE.all([S.JSC$10597_wrapped.objectStore("EntityStore").put(V),tNH(S,I,U)])}).then(function(){ctw(S,Y,U);
return Y})};
YSG=function(S,p){var U=_.Uc(p).entityType;return wE.all([S.JSC$10597_wrapped.objectStore("EntityStore").delete(p),Ssw(S,p)]).then(function(){ctw(S,p,U)})};
Lwk=function(S,p,U,Y){var L=BWH(S.JSC$10597_encoderRegistry,1);return _.Ate(S,p,Y).then(function(I){if(I){I=orN(I,U);var V={key:p,entityType:Y,data:$oc(L,I,p),version:1};return wE.all([S.JSC$10597_wrapped.objectStore("EntityStore").put(V),tNH(S,I,Y)])}}).then(function(){ctw(S,p,Y);
return p})};
ctw=function(S,p,U){var Y=S.changedKeys[U];Y||(Y=new Set,S.changedKeys[U]=Y);Y.add(p)};
pLH=function(S,p,U){var Y=YbR(p);U=yKu(U);if(!U)return wE.resolve([]);U=new U(p);S=S.JSC$10597_wrapped.objectStore("EntityAssociationStore");p=[];U=_.d(U.getAssociations());for(var L=U.next();!L.done;L=U.next())p.push(S.put({parentEntityKey:Y,childEntityKey:L.value}));return wE.all(p).then(function(I){return I.map(function(V){return V[1]})})};
Ssw=function(S,p){return S.JSC$10597_wrapped.objectStore("EntityAssociationStore").index("byParentEntityKey").delete(IDBKeyRange.only(p))};
tNH=function(S,p,U){var Y=YbR(p);return Ssw(S,Y).then(function(){return pLH(S,p,U)})};var UbE=function(){};
_.r(UbE,vKj);UbE.prototype.encodeImpl=function(S){return S};
UbE.prototype.decodeImpl=function(S){if(S instanceof Uint8Array)throw HCR(0);return S};var jXu=function(){this.cacheMap={};this.cacheMap[0]=new UbE;if(!_.y("aes_pes_encoder_killswitch")){var S=this.cacheMap;try{var p=_.nA();var U=nir(p);var Y=new yy(new EKP(U),new fmt(U))}catch(L){throw S=L instanceof Error?new Vr("KEY_CREATION_FAILED",{originalMessage:L.message}):new Vr("KEY_CREATION_FAILED"),_.ZP(S),S;}S[1]=Y}},BWH=function(S,p){p=p===void 0?0:p;
S=S.cacheMap[p];if(!S)throw p=new Vr("INVALID_ENCODER_VERSION",{encoderVersion:p}),_.ZP(p),p;return S};var WJ=function(S,p){_.hY.call(this);this.token=S;this.JSC$10611_encoderRegistry=p;this.observers=[];S=new _.UX.BroadcastChannel("PERSISTENT_ENTITY_STORE_SYNC:"+_.nA());S.onmessage=this.handleMessage.bind(this);this.channel=S};
_.r(WJ,_.hY);_.kl=function(S,p,U){var Y,L,I,V;return _.T(function(W){if(W.nextAddress==1)return _.k(W,Wlr(S.token),2);if(W.nextAddress!=3)return Y=W.yieldResult,_.k(W,_.mY(Y,["EntityStore","EntityAssociationStore"],p,function(O){L=new NWI(O,S.JSC$10611_encoderRegistry);return U(L)}),3);
I=W.yieldResult;L&&(V=L.changedKeys,Object.keys(V).length>0&&(S.channel.postMessage(V),Yse(S,V)));return W.return(I)})};
WJ.prototype.observe=function(S){var p=this;this.observers.push(S);return function(){var U=p.observers.indexOf(S);U>=0&&p.observers.splice(U,1)}};
var RJu=function(S){var p;return _.T(function(U){if(U.nextAddress==1)return _.k(U,_.kl(S,{mode:"readonly",enableRetries:!0},function(Y){return Y.JSC$10597_wrapped.objectStore("EntityStore").getAll()}),2);
p=U.yieldResult;return U.return(Promise.all(p.filter(function(Y){return!!Y}).map(function(Y){var L,I;
return _.T(function(V){if(V.nextAddress==1){L=Y.key;I=Y.entityType;var W=iYw(BWH(S.JSC$10611_encoderRegistry,Y.version),Y.data,Y.key);return _.k(V,W,2)}return V.return({key:L,entityType:I,data:V.yieldResult})})})))})};
WJ.prototype.handleMessage=function(S){Yse(this,S.data)};
var Yse=function(S,p){S=_.d(S.observers);for(var U=S.next();!U.done;U=S.next())U=U.value,U(p)};
WJ.prototype.disposeInternal=function(){this.channel.close()};
var Kle;var Ka,Mjw,pjk,rhd;Ka={};_.Lxt=(Ka.mainVideoEntity="mainVideoEntityActionMetadata",Ka.mainPlaylistEntity="mainPlaylistEntityActionMetadata",Ka.musicTrack="musicTrackEntityActionMetadata",Ka.musicPlaylist="musicPlaylistEntityActionMetadata",Ka);Mjw=new _.$g("DOWNLOADS_ENTITY_TYPE_MAP");pjk=_.M9("","downloadsPageViewConfigurationEntity");rhd=_.M9("DOWNLOADS_LIST_ENTITY_ID_MANUAL_DOWNLOADS","mainDownloadsListEntity");_.LSw=_.M9("DOWNLOADS_LIST_ENTITY_ID_SMART_DOWNLOADS","mainDownloadsListEntity");
_.M9("DOWNLOADS_LIST_ENTITY_ID_SMART_DOWNLOADS","refresh");_.M9("SMART_DOWNLOADS_ENABLED","settingEntity");_.M9("SMART_DOWNLOADS_OPT_IN_BANNER_DISMISSED","settingEntity");var THw=["TRANSFER_STATE_TRANSFER_IN_QUEUE","TRANSFER_STATE_TRANSFERRING"];var QUk=["TRANSFER_STATE_COMPLETE","TRANSFER_STATE_FAILED","TRANSFER_STATE_TRANSFER_IN_QUEUE","TRANSFER_STATE_PAUSED_BY_USER","TRANSFER_STATE_TRANSFERRING"];var vze={ALL_DOWNLOADS:"PPAD",DOWNLOADS_PAGE:"PPDP",OFFLINE_PLAYLIST:"PPOM",RECOMMENDED_VIDEOS:"PPRC",SAVED_PODCAST_EPISODES:"PPSE",SAVED_VIDEOS:"PPSV"};var bl,mcN,iKQ,Pvd;bl=window;_.uM=bl.YT_I18N_FORMATTING_GOOG_LOCALE||"en-US";_.S8G=bl.YT_I18N_FORMATTING_PLURAL_RULES_SELECT||_.xl;mcN=bl.YT_I18N_FORMATTING_DATE_TIME_SYMBOLS||y4;iKQ=bl.YT_I18N_FORMATTING_RELATIVE_DATE_TIME_SYMBOLS||$9H;_.IhE=bl.YT_I18N_FORMATTING_DURATION_TIME_SYMBOLS||_.Ttq;Pvd=bl.YT_I18N_FORMATTING_NUMBER_FORMAT_SYMBOLS||kfl;fK({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 Y8R=oSE(function(){return{dateFormat:1,timeFormat:7,joinerStyle:1,capitalize:function(S){return S}}}),qaw=oSE(function(){return{dateFormat:3,
timeFormat:7,joinerStyle:3,capitalize:function(S){return S}}}),NeR=new Map;var M8X=[{unitDuration:6048E5,unit:3,threshold:2},{unitDuration:864E5,unit:4},{unitDuration:36E5,unit:5},{unitDuration:6E4,unit:6},{unitDuration:1E3,unit:7}],c1u;var dbE=function(S){return _.S4({type:"SET_EPHEMERAL_ACTION",payload:S})};var Vjc={ephemeralAction:null};var Trl={animatedThumbnailEnabled:!1,inlinePreviewEnabled:!1,currentPageType:"",currentPageSubType:""};var FtE={sharedUi:function(S,p){S=S===void 0?Trl:S;switch(p.type){case "SET_SHARED_ANIMATED_THUMBNAIL_ENABLED":return Object.assign({},S,{animatedThumbnailEnabled:p.payload});case "SET_SHARED_INLINE_PREVIEW_ENABLED":return Object.assign({},S,{inlinePreviewEnabled:p.payload});case "SET_SHARED_CURRENT_PAGE_TYPE":return Object.assign({},S,{currentPageType:p.payload});case "SET_SHARED_CURRENT_PAGE_SUB_TYPE":return Object.assign({},S,{currentPageSubType:p.payload});default:return S}},
a11y:T0({ephemeralAction:function(S,p){S=S===void 0?Vjc.ephemeralAction:S;switch(p.type){case "SET_EPHEMERAL_ACTION":return p.payload;default:return S}}})};var Kte=T0({isLeaderTab:function(S,p){S=S===void 0?!0:S;switch(p.type){case "SET_IS_LEADER_TAB":var U,Y;return(Y=p==null?void 0:(U=p.payload)==null?void 0:U.isLeaderTab)!=null?Y:S;default:return S}}});var WxI=function(S){return _.S4({type:"SET_IS_SHORTS_PIP_ACTIVE",payload:{isShortsPipActive:S}})};var RtE=T0({isDesktopSmallWidth:function(S,p){switch(p.type){case "SET_IS_DESKTOP_SMALL_WIDTH":return p.payload.isDesktopSmallWidth;default:return S===void 0?!1:S}},
isShortsActive:function(S,p){switch(p.type){case "SET_IS_SHORTS_ACTIVE":return p.payload.isShortsActive;default:return S===void 0?!1:S}},
isWatchWhileMode:function(S,p){switch(p.type){case "SET_IS_WATCH_WHILE_MODE":return p.payload.isWatchWhileMode;default:return S===void 0?!1:S}},
playerState:function(S,p){switch(p.type){case "SET_PLAYER_STATE":return p.payload.playerState;default:return S===void 0?-1:S}},
isFullscreen:function(S,p){switch(p.type){case "SET_IS_FULLSCREEN":return p.payload.isFullscreen;default:return S===void 0?!1:S}},
isSmallScreenSqueezeback:function(S,p){switch(p.type){case "SET_IS_SMALL_SCREEN_SQUEEZEBACK":return p.payload.isSmallScreenSqueezeback;default:return S===void 0?!1:S}},
isShortsPipActive:function(S,p){switch(p.type){case "SET_IS_SHORTS_PIP_ACTIVE":return p.payload.isShortsPipActive;default:return S===void 0?!1:S}},
isPlaybackStarted:function(S,p){switch(p.type){case "SET_IS_PLAYBACK_STARTED":return p.payload.isPlaybackStarted;default:return S===void 0?!1:S}}});var Oar={playlistId:"",inviteLinkURL:""};var Ojq={};var y4R=T0({continuationCommand:function(S,p){S=S===void 0?Ojq:S;switch(p.type){case "SET_CONTINUATION_COMMAND":return p.payload.continuationCommand;default:return S}}});var PlG=function(){return function(S){return function(p){var U=S(p);_.St(document.documentElement,"yt-forward-redux-action-to-live-chat-iframe",[p],!0);return U}}};var kWd,lvX;kWd=new _.MI;_.A7=new _.$g("WATCH_PLAYER_PROMISE_TOKEN");_.Hjq=new _.MI;_.DbH=new _.$g("SHORTS_PLAYER_PROMISE_TOKEN");lvX=new _.$g("");var ZaN=function(){return function(S){return function(p){p.type==="ENTITY_LOADED"&&_.tW().resolve(_.A7).then(function(U){var Y;(Y=U.dispatchReduxAction)==null||Y.call(U,p)});
return S(p)}}};var Hae={currentFormId:"",commandsMap:{}};var zWd={};var baq=T0({additionalContext:function(S,p){switch(p.type){case "CHANNEL_REPORT_RESET":return"";case "ADDITIONAL_CONTEXT_UPDATED":var U;return(U=p.payload)!=null?U:"";default:return S===void 0?"":S}},
impersonatedChannelUrl:function(S,p){switch(p.type){case "CHANNEL_REPORT_RESET":return"";case "IMPERSONATED_CHANNEL_URL_UPDATED":var U;return(U=p.payload)!=null?U:"";default:return S===void 0?"":S}},
selectedVideoIds:function(S,p){S=S===void 0?zWd:S;switch(p.type){case "CHANNEL_REPORT_RESET":return{};case "VIDEO_SELECTED":var U={};return Object.assign({},S,(U[p.payload]=!0,U));case "VIDEO_UNSELECTED":return p=p.payload,S=Object.assign({},S),delete S[p],S;default:return S}}});var j6e=T0({parentClickTrackingParams:function(S,p){switch(p.type){case "SET_PARENT_CLICK_TRACKING_PARAMS":return p.payload.parentClickTrackingParams;case "CLEAR_PARENT_CLICK_TRACKING_PARAMS":return"";default:return S===void 0?"":S}}});var Qkj=function(S){return _.S4({type:"TALK_TO_RECS_UPDATE_SELECTION",payload:S})};var ntm={};var r4R=T0({stepStates:function(S,p){S=S===void 0?ntm:S;switch(p.type){case "TALK_TO_RECS_RESET_STEP_STATES":return{};case "TALK_TO_RECS_UPDATE_SELECTION":var U=S,Y=p.payload,L,I,V;S={};p={selectionStates:Object.assign({},(V=(L=U[Y.stepId])==null?void 0:L.selectionStates)!=null?V:{},(S[Y.token]={isSelected:Y.isSelected},S)),userQuery:(I=U[Y.stepId])==null?void 0:I.userQuery};L={};return Object.assign({},U,(L[Y.stepId]=p,L));case "TALK_TO_RECS_UPDATE_USER_QUERY":return L=S,I=p.payload,V={selectionStates:Object.assign({},
(Y=(U=L[I.stepId])==null?void 0:U.selectionStates)!=null?Y:{}),userQuery:{userQuery:I.userQuery,token:I.userQueryToken}},U={},Object.assign({},L,(U[I.stepId]=V,U));default:return S}}});var J6m,y6w;J6m=function(S){return _.S4({type:"SET_SLIMLINE_SURVEY_RATING_SELECTED_INDEX",payload:S})};
y6w=function(S){return _.S4({type:"SET_MINIPLAYER_PLAYBACK_STATE",payload:S})};
_.rI=function(S){return _.S4({type:"SET_CURRENT_PAGE_TYPE",payload:S})};
_.KxQ=function(S){return _.S4({type:"SET_INLINE_PREVIEW_IS_ENABLED",payload:S})};var zte={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"};_.bjm=function(S){return _.S4({type:"SET_PLAYER_STATE",payload:{playerState:S}})};var jkI=[],r6l={width:0,height:0};var GER=T0({isTheaterMode:function(S,p){S=S===void 0?_.y("kevlar_disable_theater_mode_persistence")?!1:_.ub("START_IN_THEATER_MODE"):S;switch(p.type){case "SET_IS_THEATER_MODE":return p.payload.isTheaterMode;default:return S}},
isWatchActive:function(S,p){switch(p.type){case "SET_IS_WATCH_ACTIVE":return p.payload.isWatchActive;default:return S===void 0?!1:S}},
isLearningJourneyActive:function(S,p){switch(p.type){case "SET_IS_LEARNING_JOURNEY_ACTIVE":return p.payload.isLearningJourneyActive;default:return S===void 0?!1:S}},
isWatchFullscreen:function(S,p){switch(p.type){case "SET_IS_WATCH_FULLSCREEN":return p.payload.isWatchFullscreen;default:return S===void 0?!1:S}},
isWatchNarrowWidth:function(S,p){switch(p.type){case "SET_IS_WATCH_NARROW_WIDTH":return p.payload.isWatchNarrowWidth;default:return S===void 0?!1:S}},
isWatchRetroMode:function(S,p){switch(p.type){case "SET_IS_WATCH_RETRO_MODE":return p.payload.isWatchRetroMode;default:return S===void 0?!1:S}},
isLiveChatCollapsed:function(S,p){switch(p.type){case "SET_IS_LIVE_CHAT_COLLAPSED":return p.payload.isLiveChatCollapsed;default:return S===void 0?!1:S}},
openEngagementPanels:function(S,p){S=S===void 0?jkI:S;var U=[].concat(_.jo(S));switch(p.type){case "ADD_OPEN_ENGAGEMENT_PANEL":return U.push(p.payload.panelToAdd),U;case "REMOVE_OPEN_ENGAGEMENT_PANEL":return U.splice(U.indexOf(p.payload.panelToRemove),1),U;default:return S}},
playerState:function(S,p){switch(p.type){case "SET_PLAYER_STATE":return p.payload.playerState;default:return S===void 0?-1:S}},
watchScrollTop:function(S,p){switch(p.type){case "SET_WATCH_SCROLL_TOP":return p.payload.watchScrollTop;default:return S===void 0?0:S}},
watchWindowSize:function(S,p){S=S===void 0?r6l:S;switch(p.type){case "SET_WATCH_WINDOW_SIZE":return p.payload.watchWindowSize;default:return S}}});var GWj={feedbackTokens:[]};var hte=T0({surveyFeedbackData:function(S,p){S=S===void 0?GWj:S;switch(p.type){case "YPC_UPDATE_SURVEY_FEEDBACK_DATA":return p.payload;case "YPC_UPDATE_PARTIAL_SURVEY_FEEDBACK_DATA":return Object.assign({},S,p.payload);default:return S}}});var nVN={};var etR=void 0;_.y("web_enable_redux_store_on_demand")||(etR=s6R());var hWj=function(S,p,U){var Y=this;this.listId=S;this.JSC$10745_updateCallback=p;this.isOfflineVideoCallback=U;_.vJ().subscribe(function(){Y.handleUpdate()})};
hWj.prototype.getPlaylistData=function(){var S=_.vJ().getState().entities;if(this.listId&&this.listId!=="PPSV"){var p=gzd(S,this.listId,!0),U=_.M9(this.listId,"mainPlaylistEntity"),Y,L;S=S==null?void 0:(Y=S.mainPlaylistEntity)==null?void 0:(L=Y[U])==null?void 0:L.title;return gVE(p,S,this.listId)}p=_.nzG(Vqd(S));S=_.nzG(_.j4(S));return gVE(p.concat(S))};
hWj.prototype.getPlaylistId=function(){return this.listId};
hWj.prototype.handleUpdate=function(){this.isOfflineVideoCallback()&&this.JSC$10745_updateCallback(this.listId,this.getPlaylistData(),{})};var j8=function(S,p,U,Y){Y=Y===void 0?[]:Y;this.JSC$10748_playlistNetworkManager=S;this.listId=p;this.JSC$10748_updateCallback=U;this.videoIds=Y;this.pendingUpdates=[];this.currentIndex=0};
j8.prototype.JSC$10748_setCurrentIndex=function(S){this.currentIndex=S};
j8.prototype.setListId=function(S){this.listId=S};
var RWm=function(S,p){S.currentCreateRequest&&S.currentCreateRequest.cancel(p);S.currentUpdateRequest&&S.currentUpdateRequest.cancel(p);S.currentRefreshRequest&&S.currentRefreshRequest.cancel(p)};
j8.prototype.delete=function(){RWm(this,"PROXY DELETED")};
j8.prototype.addVideos=function(S,p,U){var Y=this;U!==void 0?this.videoIds.splice.apply(this.videoIds,[U,0].concat(_.jo(S))):this.videoIds.push.apply(this.videoIds,_.jo(S));this.listId||this.currentCreateRequest?(S.forEach(function(L,I){L={addedVideoId:L,action:"ACTION_ADD_VIDEO"};U&&(L.addedVideoPosition=U+I);Y.pendingUpdates.push(L)}),r_(this)):Fxd(this,p.onCreateListCommand)};
var XLE=function(S,p,U,Y,L){req(S.videoIds,p,U);p>S.currentIndex&&U<=S.currentIndex?S.JSC$10748_setCurrentIndex(S.currentIndex+1):p===S.currentIndex?S.JSC$10748_setCurrentIndex(U):p<S.currentIndex&&U>=S.currentIndex&&S.JSC$10748_setCurrentIndex(S.currentIndex-1);S.pendingUpdates.push({action:"ACTION_MOVE_VIDEO_AFTER",setVideoId:Y,movedSetVideoIdPredecessor:L});r_(S)},Fxd=function(S,p){RWm(S,"OBSOLETE");
S.currentCreateRequest=Pcm(S.JSC$10748_playlistNetworkManager,p,S.videoIds);_.zB(S.currentCreateRequest,function(){S.currentCreateRequest=void 0}).then(function(U){S.setListId(U.playlistId);
S.pendingUpdates.length>0?r_(S):ZjI(S)})},r_=function(S){if(S.pendingUpdates.length!==0&&(S.currentRefreshRequest&&S.currentRefreshRequest.cancel("OBSOLETE"),!S.currentUpdateRequest&&!S.currentCreateRequest)){var p=S.pendingUpdates.splice(0,S.pendingUpdates.length);
S.currentUpdateRequest=S.JSC$10748_playlistNetworkManager.updatePlaylist(S.listId,p);_.zB(S.currentUpdateRequest,function(){S.currentUpdateRequest=void 0}).then(function(){S.pendingUpdates.length>0?r_(S):ZjI(S)}).thenCatch(function(){S.pendingUpdates.unshift.apply(S.pendingUpdates,_.jo(p))})}},ZjI=function(S){S.currentRefreshRequest=_.skl(S.JSC$10748_playlistNetworkManager,S.listId,S.currentIndex,S.videoIds[S.currentIndex]);
_.zB(S.currentRefreshRequest,function(){S.currentRefreshRequest=void 0}).then(function(p){S.JSC$10748_updateCallback(p.playlistId,p.playlistPanelRenderer,p.autoplayRenderer)})};
j8.prototype.size=function(){return this.videoIds.length};var eWl=function(S,p,U,Y){Y=Y===void 0?[]:Y;j8.call(this,S,p,U,Y);this.JSC$10748_playlistNetworkManager=S;this.listId=p;this.JSC$10748_updateCallback=U;this.videoIds=Y};
_.r(eWl,j8);_.GE=function(S,p,U,Y,L,I,V){L=L===void 0?[]:L;V=V===void 0?qA:V;j8.call(this,S,p,U,L);this.JSC$10748_playlistNetworkManager=S;this.listId=p;this.JSC$10748_updateCallback=U;this.onAuthChange=Y;this.videoIds=L;this.storage=I;this.cookieReader=V;this.queueSapisId="";this.queueSapisIdJob=0;this.attributionData=new Map;this.queueSapisId=(new this.cookieReader(window.document)).get("SAPISID","");this.queueSapisIdJob=_.ps(_.PA,this.checkLoggedInStatusChange.bind(this),1E3)};
_.r(_.GE,j8);_.M=_.GE.prototype;_.M.checkLoggedInStatusChange=function(){(new this.cookieReader(window.document)).get("SAPISID","")!==this.queueSapisId?(this.onAuthChange(),this.storage&&this.storage.clear()):this.queueSapisIdJob=_.ps(_.PA,this.checkLoggedInStatusChange.bind(this),1E3)};
_.M.JSC$10748_setCurrentIndex=function(S){j8.prototype.JSC$10748_setCurrentIndex.call(this,S);this.store()};
_.M.delete=function(){_.PA.cancelJob(this.queueSapisIdJob);j8.prototype.delete.call(this)};
_.M.setListId=function(S){j8.prototype.setListId.call(this,S);this.store()};
_.M.store=function(){this.storage&&this.listId&&this.currentIndex!==void 0&&this.storage.store(this.listId,this.currentIndex)};var gtH=["response","contents","twoColumnWatchNextResults","autoplay","autoplay"],uhI=["playerResponse","videoDetails"],wLQ=["response","currentVideoEndpoint","watchEndpoint","videoId"],lhm=["response","currentVideoEndpoint","watchEndpoint","playlistId"],ahm=["response","playerOverlays","playerOverlayRenderer","endScreen","watchNextEndScreenRenderer"],fhw=["response","contents","twoColumnWatchNextResults","playlist","playlist"],CcI=["response","webWatchNextResponseExtensionData","relatedVideoArgs"],
xbH=["response","contents","twoColumnWatchNextResults"];var h4={},fru=(h4.WEB_UNPLUGGED="^unplugged/",h4.WEB_UNPLUGGED_ONBOARDING="^unplugged/",h4.WEB_UNPLUGGED_OPS="^unplugged/",h4.WEB_UNPLUGGED_PUBLIC="^unplugged/",h4.WEB_CREATOR="^creator/",h4.WEB_KIDS="^kids/",h4.WEB_EXPERIMENTS="^experiments/",h4.WEB_MUSIC="^music/",h4.WEB_REMIX="^music/",h4.WEB_MUSIC_EMBEDDED_PLAYER="^music/",h4.WEB_MUSIC_EMBEDDED_PLAYER="^main_app/|^sfv/",h4);var bYN,Pcm;bYN=function(S,p){this.networkManager=S;this.innertubeTransportService=p};
Pcm=function(S,p,U){if(!_.b(p,_.sO))return _.jV(Error("Df"));_.b(p,_.sO).videoIds=U;U={create_playlist_title:_.Oh("QUEUE",void 0,"Queue")};return lrR(_.lZ(S.innertubeTransportService,p,U),uze)};
_.skl=function(S,p,U,Y){p={videoId:Y,playlistId:p,playlistIndex:U};U=_.$l(E2Q);return lrR(_.R6(S.innertubeTransportService,p,U),are)};
bYN.prototype.updatePlaylist=function(S,p){return lrR(_.lZ(this.innertubeTransportService,{commandMetadata:{webCommandMetadata:{apiUrl:"/youtubei/v1/browse/edit_playlist",sendPost:!0}},playlistEditEndpoint:{playlistId:S,actions:p}}),wtG)};var EtH=function(S){this.storage=S},mbe;
EtH.prototype.store=function(S,p){p=p===void 0?0:p;if(this.storage&&S.startsWith("TLPQ"))try{this.storage.set("TLPQplaylist",S),this.storage.set("TLPQindex",String(p)),this.storage.set("TLPQtimestamp",String(Date.now()))}catch(U){}};
EtH.prototype.clear=function(){this.storage&&(this.storage.remove("TLPQtimestamp"),this.storage.remove("TLPQplaylist"),this.storage.remove("TLPQindex"))};
EtH.prototype.getPlaylistId=function(){if(!this.storage)return null;var S=null;try{S=this.storage.get("TLPQplaylist")}catch(p){}return S};var muu=["navigationEndpoint","watchEndpoint","videoId"],EVG=["nextButtonVideo","watchEndpoint","videoId"];_.RS=new _.$g("NETWORK_TOKEN");_.oy=new _.$g("PAGE_TOKEN");_.Fz=new _.$g("PLAYLIST_TOKEN");var otc;otc=new _.$g("ASYNC_INNERTUBE_TRANSPORT_TOKEN");_.F3=new _.$g("INNERTUBE_TRANSPORT_TOKEN");var vtP,Xz,ijP,NrI,qsQ,A6H;vtP=new Set(["ci","cr","carml"]);Xz=function(){this.signals=[];this.compoundSignals=new Map;this.inProgressSignals=new Set;this.JSC$10795_parkedJobs=new Map;this.parkedProcessors=new Map};
_.Pt=function(){Xz.instance||(Xz.instance=new Xz);return Xz.instance};
Xz.prototype.onAny=function(S){return _.$bw(this,S,2)};
Xz.prototype.parkOrScheduleJob=function(S,p,U,Y,L){_.Zr(this,U)?_.jC().addJob(S,p,Y):(L&&(S=ijP(S),NrI(this,S,p,U,L)),L=this.JSC$10795_parkedJobs.get(U),L||(this.JSC$10795_parkedJobs.set(U,[]),L=this.JSC$10795_parkedJobs.get(U)),L.push({job:S,priority:p,delay:Y}))};
Xz.prototype.addListener=function(S,p,U){U&&(p=ijP(p),NrI(this,p,0,S,U));U=this.parkedProcessors.get(S);U||(this.parkedProcessors.set(S,[]),U=this.parkedProcessors.get(S));U.push(p)};
Xz.prototype.processSignal=function(S){if(!_.Zr(this,S)){this.inProgressSignals.add(S);var p=this.JSC$10795_parkedJobs.get(S);if(p){p=_.d(p);for(var U=p.next();!U.done;U=p.next())U=U.value,_.jC().addJob(U.job,U.priority,U.delay);this.JSC$10795_parkedJobs.delete(S)}if(p=this.parkedProcessors.get(S)){p=_.d(p);for(U=p.next();!U.done;U=p.next())U=U.value,U();this.parkedProcessors.delete(S)}this.signals.push(S);this.inProgressSignals.delete(S)}};
_.Zr=function(S,p){return vtP.has(p)||_.ub("IS_HOMEPAGE_COLD")||_.ub("IS_RESULTS_PAGE_COLD")||_.ub("IS_WATCH_PAGE_COLD")?S.signals.indexOf(p)>=0:!0};
ijP=function(S){var p=!1;return function(){p||(p=!0,S())}};
NrI=function(S,p,U,Y,L){if(BrI.has(Y))_.jC().addJob(p,U,L);else{var I=S.compoundSignals.get(Y);I&&_.jC().addJob(function(){_.Zr(S,Y)||(I.isTimeoutConditionSatisfied?_.jC().addJob(p,U):I.timeoutConditionObservers.push(function(){_.jC().addJob(p,U)}))},U,L)}};
_.$bw=function(S,p,U){if(p.length>1){var Y=[],L=Object.create(null);p=_.d(p);for(var I=p.next();!I.done;I=p.next())I=I.value,L[I]||(Y.push(I),L[I]=!0);p=Y}if(p.length===1)return p[0];I=p;Y="";L=U===2?"|":"&";I.sort();I=_.d(I);for(var V=I.next();!V.done;V=I.next())Y+=V.value+L;if(!S.compoundSignals.get(Y)){L=0;I=[];V=_.d(p);for(var W=V.next();!W.done;W=V.next())W=W.value,L++,_.Zr(S,W)||I.push(W);(U=U===2)&&L>I.length||!U&&!I.length?S.signals.push(Y):qsQ(S,Y,U,p,I)}return Y};
qsQ=function(S,p,U,Y,L){var I=L.length,V=function(){U||--I===0?S.processSignal(p):A6H(S,p)};
L=_.d(L);for(var W=L.next();!W.done;W=L.next())S.addListener(W.value,V);S.compoundSignals.set(p,{signals:Y,isOnAny:U,isInitialized:!1,isTimeoutConditionSatisfied:!1,timeoutConditionObservers:[]});A6H(S,p)};
A6H=function(S,p){if(!_.Zr(S,p)){var U=S.compoundSignals.get(p);if(U&&!U.isTimeoutConditionSatisfied){for(var Y=!1,L=0,I=0,V=_.d(U.signals),W=V.next();!W.done;W=V.next()){var O=W.value;W=!_.Zr(S,O);BrI.has(O)?Y=!0:(O=S.compoundSignals.get(O))?W&&!O.isTimeoutConditionSatisfied&&(I++,U.isInitialized||O.timeoutConditionObservers.push(function(){A6H(S,p)})):W&&L++}U.isInitialized=!0;
U.isOnAny?Y&&(U.isTimeoutConditionSatisfied=!0):L===0&&I===0&&(U.isTimeoutConditionSatisfied=!0);if(U.isTimeoutConditionSatisfied)for(U=_.d(U.timeoutConditionObservers),Y=U.next();!Y.done;Y=U.next())Y=Y.value,Y()}}};
Xz.prototype.processSignal=Xz.prototype.processSignal;Xz.prototype.parkOrScheduleJob=Xz.prototype.parkOrScheduleJob;Xz.prototype.onAny=Xz.prototype.onAny;_.NT("ytsignals.getInstance",_.Pt);Xz.prototype.onAny=Xz.prototype.onAny;Xz.prototype.parkOrScheduleJob=Xz.prototype.parkOrScheduleJob;Xz.prototype.processSignal=Xz.prototype.processSignal;var BrI=new Set(["eop","eocs","dl","pcl"]);_.eC=new _.$g("MINIPLAYER_SERVICE");var s8,tjQ,c6w;s8=function(S,p,U){var Y=_.xv.getInstance();if(!mbe){var L=new z0G;var I=void 0,V=_.g7("ID_TOKEN");V&&L.isAvailable()&&(I=new Gp(L,"yt-queue"+V));mbe=new EtH(I)}L=mbe;I=_.Pt();this.JSC$10802_actionRouter=Y;this.pageManager=S;this.playlistManager=p;this.JSC$10802_playlistNetworkManager=U;this.storage=L;this.signals=I;this.responsePlaylistData=this.response=this.index=this.listId=void 0;this.temporaryItems=[];this.downloadPlaylistProxy=this.playlistProxy=this.queueProxy=void 0};
_.e8=function(){if(!tjQ){var S=_.tW(),p=S.resolve(_.AW(_.oy)),U=S.resolve(_.AW(_.RS)),Y=S.resolve(_.AW(_.Fz));S=S.resolve(_.F3);tjQ=new s8(p,Y,new bYN(U,S))}return tjQ};
c6w=function(S,p,U){if(U){var Y;if(((Y=S.responsePlaylistData)==null?void 0:Y.playlistId)!==U)return}S.responsePlaylistData&&(U=B_u(p,S.responsePlaylistData),S.responsePlaylistData=(0,_.h9.unsafeClone)(S.responsePlaylistData),A4e(S.responsePlaylistData,U));U=S.temporaryItems.findIndex(function(L){return L.videoId===p});
U>-1&&S.temporaryItems.splice(U,1);_.g_(S,_.ul(S,S.response?S.response.autoplayRenderer:void 0))};
_.SQe=function(S,p){if(S.responsePlaylistData){var U=q8u(p,S.responsePlaylistData);A4e(S.responsePlaylistData,U);if(S.queueProxy){var Y=S.queueProxy;U<0||(Y.videoIds.splice(U,1),U<Y.currentIndex&&Y.JSC$10748_setCurrentIndex(Y.currentIndex-1),Y.pendingUpdates.push({action:"ACTION_REMOVE_VIDEO",setVideoId:p}),r_(Y))}}_.g_(S,_.ul(S,S.response?S.response.autoplayRenderer:void 0))};
s8.prototype.clearQueue=function(){this.temporaryItems=[];this.storage.clear();this.queueProxy&&(this.queueProxy.delete(),this.responsePlaylistData=this.queueProxy=void 0);this.response&&_.g_(this,{autoplayRenderer:this.response.autoplayRenderer,playerData:{}})};
s8.prototype.setPlaylistData=function(S,p,U){this.temporaryItems=[];this.listId=S;this.responsePlaylistData=p;_.g_(this,_.ul(this,U))};
var pWe=function(S){return(S==null?0:S.playlistId)?S.playlistId:"PPSV"},UKt=function(S){return S&&S.playlistId?S.playlistId==="PPSV"?!0:sUq(_.vJ().getState().entities,S.playlistId):!1};
s8.prototype.isPlayingOfflineVideo=function(){return this.response?UKt(this.response):!1};
s8.prototype.closeMiniplayer=function(S){var p=this.queueProxy&&this.queueProxy.size()<=1,U=_.tW().resolve(_.eC);if(!this.queueProxy||p)this.queueProxy&&this.clearQueue(),U.close(!0);else{U.pipController.getWindow()&&window.focus();p=this.responsePlaylistData;var Y=this.temporaryItems.length+(p&&p.contents?p.contents.length:0);p=_.Oh("QUEUE_CLEARED_UNPLURALIZED")||_.kd("QUEUE_CLEARED",Y);p=_.N9(p);U=_.Oh("QUEUE_CLOSE_MINIPLAYER_CONFIRM_TITLE",void 0,"Close the queue");Y=_.Oh("QUEUE_CLOSE_MINIPLAYER_CONFIRM_BODY_TEXT")||
_.kd("QUEUE_CLOSE_MINIPLAYER_CONFIRM_TEXT",Y);var L=_.Oh("MINIPLAYER_CLOSE",void 0,"Close"),I=_.Oh("CANCEL",void 0,"Cancel");_.Rq(this.JSC$10802_actionRouter,[{openPopupAction:{popupType:"DIALOG",popup:{confirmDialogRenderer:{title:_.Ec(U),dialogMessages:[_.Ec(Y)],confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.Ec(L),serviceEndpoint:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{endPlaylistCommand:{closeMiniplayer:!0,listType:"PLAYLIST_EDIT_LIST_TYPE_QUEUE"}},
p]}}}},cancelButton:{buttonRenderer:{style:"STYLE_TEXT",size:"SIZE_DEFAULT",text:_.Ec(I)}}}}}}],S)}};
_.ul=function(S,p){var U={},Y=S.response;U.autoplayRenderer=p;if(!S.responsePlaylistData&&!S.temporaryItems.length)return!Y||!Y.hasRelatedVideoData&&_.y("kevlar_prefetch_data_augments_network_data")||(U.playerData={rvs:Y.relatedVideoArgs,endScreenRenderer:Y.endScreenRenderer}),U;U.playerData={};if(S.index===void 0)return _.ZP(Error("Ff")),U;U.panel=S.responsePlaylistData?(0,_.h9.unsafeClone)(S.responsePlaylistData):{titleText:_.Ec(_.Oh("QUEUE",void 0,"Queue")),currentIndex:0,totalVideos:1,contents:[]};
p=U.panel;if(p.contents)for(var L=_.d(S.temporaryItems),I=L.next();!I.done;I=L.next())p.contents.push({playlistPanelVideoRenderer:I.value});S.queueProxy&&Y&&Y.playingVideo&&Y.playingVideoId&&!N_E(Y.playingVideoId,U.panel)&&(p=Y.playingVideo,L=U.panel,I=S.index,L.contents&&L.contents.splice(I===void 0?0:I,0,{playlistPanelVideoRenderer:p}));Y&&Y.playingVideoId&&(p=S.index,L=U.panel,p=!L.contents||p>=L.contents.length?void 0:L.contents[p].playlistPanelVideoRenderer,p&&p.videoId===Y.playingVideoId||(p=
B_u(Y.playingVideoId,U.panel),S.index=p!==-1?p:S.index?S.index-1:0));p=iaN(S.index+1,U.panel);L=void 0;S.index>0&&(L=iaN(S.index-1,U.panel));if(L||p)U.autoplayRenderer=oVR(p,L,U.autoplayRenderer);!p&&(Y==null?0:Y.relatedVideoArgs)&&(U.playerData.rvs=Y.relatedVideoArgs);Y=Y?Y.playlistIndexOffset:0;S.queueProxy?Szd(U.panel,S.index,Y,$uE,!0,!0,!0):Szd(U.panel,S.index,Y);U.playerData.playlistPanelRenderer=U.panel;return U};
s8.prototype.openToast=function(S){_.tW().resolve(_.eC).openToast(S,_.Oh("ADDED_TO_QUEUE",void 0,"Added to queue"))};
s8.prototype.isMiniplayerActive=function(){return _.tW().resolve(_.eC).isMiniplayerActive()};
_.g_=function(S,p){S.playlistManager.setAutoplayRenderer(p.autoplayRenderer||null);S.playlistManager.setPlaylistData(p.panel||null);p.playerData&&S.playlistManager.setPlayerPlaybackControlData(p.playerData)};var UHd="#";var YQH={},LBQ={},MWl={},Ikm={},dKj={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:(YQH.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="ap",YQH),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:(LBQ.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="as",LBQ),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:(MWl.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="zx",MWl),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:(Ikm.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="po",Ikm),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 aqR=[{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:dKj},{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:dKj}}];var FVw;_.LH=[[["NXBraW5kI3NmNDltbXR0cjg=","dmFsdWUjNWg4bXBlcGwyeGs0"],"QURfUExBQ0VNRU5UX0tJTkRfU1RBUlQjMTVjbHpzbmp1eDRr"]];
FVw=[[["YXJ5I281a2U3NHJtY2M1YXByaW0=",null,null],[null,["YnJvd3NlLXJlc3VsdHMtcmVuZGVyZXIja3UzdXdneWRmYm9neXRkLXR3by1jb2x1bW4t","c2l2eDQzcnp5Y29sc3R5bGUtc2NvcGUj"],null],["ajFoMXMyY3RlaWplbWFzdGhlYWQtYWQj",["MXl0ZC1yaWNoLWdyaWQtcmVuZGVyZXIjc3Z3ZzVtY3BxeXM="],null],[null,["cXl0ZC1yaWNoLWdyaWQtcmVuZGVyZXIjeDVud2RuNDBjdWw=","eXA2cmJhN2pqMnhpc3R5bGUtc2NvcGUj"],null],[null,["ZC1iYW5uZXItcHJvbW8tcmVuZGVyZXIjcnVoY3kzeGNtZTZneXQ=","b3BlI2wxMmliZWFlbmtzdHlsZS1zYw=="],null],[null,["dWNseXRkLWFkLXNsb3QtcmVuZGVyZXIjNWhvOG9lOXN5"],
null]],[["IzhmOHdkNGRjaGUwa3BsYXllci1hZHM=",null,null]]];_.YM=["bXdnNm1sNTdnbG9iYWxDYWxsYmFja3MjbTMwZQ==","MXJvbkFibm9ybWFsaXR5RGV0ZWN0ZWQjb2U1aXRuajA4aw==","U2tpcCNmZWN4Njd4bnVzZW9uQWQ=","dmY2NHJhd19wbGF5ZXJfcmVzcG9uc2UjNzdxdW8xbno=","b3RzI200bXp3MmdvbGhxYWFkU2w="];_.w_="bXdnNm1sNTdnbG9iYWxDYWxsYmFja3MjbTMwZQ== MXJvbkFibm9ybWFsaXR5RGV0ZWN0ZWQjb2U1aXRuajA4aw== U2tpcCNmZWN4Njd4bnVzZW9uQWQ= dmY2NHJhd19wbGF5ZXJfcmVzcG9uc2UjNzdxdW8xbno= cXVldWVfbXVsdGlwbGVfc2tpcHNfa3MjMTJuZXhjMzk3N28xd2ViX3BsYXlsaXN0Xw== ZWYjbm1ucHRocnJuajJ3YWJfc2Ff b3RzI200bXp3MmdvbGhxYWFkU2w=".split(" ");var ll;ll=function(S,p,U){this.z85=S;this.isAsync=p;this.s1C=U};
_.qzE=[new ll("b.f_",!1,0),new ll("j.s_",!1,2),new ll("r.s_",!1,4),new ll("e.h_",!1,6),new ll("i.s_",!0,8),new ll("s.t_",!1,10),new ll("p.h_",!1,12),new ll("s.i_",!1,14),new ll("f.i_",!1,16),new ll("a.b_",!1,18),new ll("a.o_",!1),new ll("g.o_",!1,22),new ll("p.i_",!1,24),new ll("p.m_",!1),new ll("n.k_",!0,20),new ll("i.f_",!1),new ll("a.s_",!0),new ll("m.c_",!1),new ll("n.h_",!1,26),new ll("o.p_",!1),new ll("m.p_",!0,28),new ll("o.a_",!1),new ll("d.p_",!1),new ll("e.i_",!1)].reduce(function(S,p){S[p.z85]=
p;return S},{});var VWt=function(){};
VWt.prototype.flush=function(S,p){S=S===void 0?[]:S;p=p===void 0?!1:p;if(_.y("enable_client_streamz_web")){S=_.d(S);for(var U=S.next();!U.done;U=S.next())U=ydj(U.value),this.rootSpec&&_.U3(U,2,this.rootSpec),U={serializedIncrementBatch:_.Ad(U.JSC$7616_serializeBinary())},_.RV("streamzIncremented",U,{sendIsolatedPayload:p})}};
var Iqw=function(){};
_.r(Iqw,VWt);var Tsc=function(S){var p=new kqe;var U=new Tim;U=_.zN(U,1,"botguard");S=_.zN(U,2,S);this.rootSpec=_.Yq(p,1,HEH,S)};
_.r(Tsc,VWt);var Sv,WBH=new Map;var slR,VLd,n2X,O$G,DHr,h_e,g2w,rjw;slR=2;VLd=2;n2X=2;O$G=2;DHr=2;h_e=2;g2w=2;rjw=new zzq;var kFl,H7H,DKH;kFl=function(){this.ongoingFlowNonces=new Map};
_.VX=function(){H7H||(H7H=new kFl);return H7H};
_.IS=function(S,p,U){return{eventType:{flowEventNamespace:S,flowEventType:p},metadata:U,statusCode:void 0,csn:void 0,can:void 0}};
_.tLe=function(S,p){var U=_.VX(),Y=DKH(U,p,!0);_.dz(U,S,p,Y)};
_.dz=function(S,p,U,Y){S={flowNonce:Y||DKH(S,U),flowType:U,flowEventType:p.eventType};p.metadata&&(S.flowMetadata=p.metadata);p.statusCode!==void 0&&(S.flowEventStatus=p.statusCode);p.csn&&(S.csn=p.csn);p.can&&(S.can=p.can);_.RV("flowEvent",S,void 0)};
DKH=function(S,p,U){U=U===void 0?!1:U;var Y=S.ongoingFlowNonces.get(p);if(!Y||U)Y=h8(16),S.ongoingFlowNonces.set(p,Y);return Y};_.zIt=new D2w;var UoG={UNKNOWN:"unknown",BROWSE:"browse",WATCH:"watch",SEARCH:"search",ACCOUNTS:"accounts",SETTINGS:"settings",WELCOME:"welcome",ACCOUNT_SELECTOR:"account_selector",CHANNEL:"channel",PLAYLIST:"playlist",SIGN_IN_IDENTIFIER_ENTRY:"sign_in_identifier_entry",SIGN_IN_PASSWORD_ENTRY:"sign_in_password_entry",SIGN_IN_DEVICE_PROMPT_CHALLENGE:"sign_in_device_prompt_challenge",SHORTS:"shorts",PROMO:"promo",CALL_TO_CAST:"call_to_cast",AMBIENT_INTERLUDES:"ambient_interludes",PRIVACY:"privacy",NO_OP:"noop",MINI_APP:"mini_app",
MINI_APP_EMBED:"mini_app",OPEN_IN_APP:"open_in_app",LEARNING_JOURNEY_WATCH:"learning_journey_watch"};var a6=function(S,p,U,Y,L,I,V){U=U===void 0?!1:U;Y=Y===void 0?!1:Y;I=I===void 0?_.e8():I;this.hasRun=!1;this.bqx=S;this.yFO=p;this.lUX=U;this.fromHistory=Y;this.previousVideoId=L;this.s5g=I;this.tempData=V;this.neZ=new _.QOt};
_.r(a6,vj);a6.prototype.validate=function(S){return!(!S.data.playerResponse||S.data.page!=="watch"&&S.data.page!=="learning_journey_watch"&&S.data.page!=="shorts"||this.hasRun)};
a6.prototype.handle=function(S){var p=this,U=_.b(S.endpoint,_.E$),Y=_.b(S.endpoint,_.QX);if(_.y("kevlar_continue_playback_without_player_response")&&(U==null?0:U.videoId)&&this.previousVideoId&&(U==null?void 0:U.videoId)===this.previousVideoId&&(U==null?0:U.continuePlayback)&&!this.fromHistory)this.bqx.resolve();else{var L={};U?L.watch_endpoint=U:Y&&(L.watch_endpoint=Y,Y.endTimeSeconds&&(L.end=Y.endTimeSeconds));S.data.page==="watch"?(S.data.filler||this.lUX||(_.Xg("cfg"),_.xv.getInstance().triggerAction("yt-start-loading-watch")),
Object.assign(L,QrI(this,S.endpoint)),_.y("enable_masthead_quartile_ping_fix")&&Object.assign(L,nBP(this)),Object.assign(L,void 0),S.data.forceExternalPlaylist&&(L.external_list=!0)):S.data.page==="shorts"?_.xv.getInstance().triggerAction("yt-start-loading-shorts"):S.data.page==="learning_journey_watch"&&_.xv.getInstance().triggerAction("yt-start-loading-learning-journey");if(U=this.yFO()){try{U.loadVideoWithPlayerResponse(S.data.playerResponse,L),U.getPlayerPromise().then(this.bqx.resolve)}catch(I){_.ZP(I),
this.bqx.resolve()}this.hasRun=!0;U.getPlayerPromise().then(function(I){I.addEventListener("onAbnormalityDetected",function(){var V=S.data.playerResponse,W=I.getVideoData().cpn;g2w=0;_.O7d=W;if(W=BkX(V))p.neZ.increment("IN_PLAYER"),_.Tv(5),_.y("ab_st_vid_ks")?I.pauseVideo(!0):I.stopVideo(),V.playabilityStatus=Object.assign({},V.playabilityStatus,{status:"ERROR",errorScreen:{enforcementMessageViewModel:W}}),V.videoDetails=void 0,_.xv.getInstance().triggerOptionalAction("yt-updated-playability-status",
V.playabilityStatus)})})}else _.eP(Error("If"))}};
var QrI=function(S,p){var U=_.b(p,_.E$);if(p&&U&&U.playlistId&&U.videoId&&(S=S.s5g,S.queueProxy?(S=S.queueProxy,U=S.listId===U.playlistId?S.attributionData.get(U.videoId):void 0):U=void 0,U))return{queue_info:U}},nBP=function(S){var p;
if((p=S.tempData)==null?0:p.adpings)return{adpings:S.tempData.adpings}};var fa=function(S,p,U){this.hasRun=!1;this.thT=S;this.gMI=p;this.fU5=U};
_.r(fa,vj);fa.prototype.validate=function(S){return!!_.h9.getValueByKeys.apply(null,[S.data].concat(_.jo(xbH)))};
fa.prototype.handle=function(S){var p=this;this.thT.promise.then(function(){var U=S.data;var Y=_.h9.getValueByKeys.apply(null,[U].concat(_.jo(gtH))),L=_.h9.getValueByKeys.apply(null,[U].concat(_.jo(fhw))),I=_.h9.getValueByKeys.apply(null,[U].concat(_.jo(wLQ)));var V=(V=_.h9.getValueByKeys.apply(null,[U].concat(_.jo(uhI))))?{videoId:V.videoId,thumbnail:V.thumbnail,title:V.title?_.Ec(V.title):void 0,shortBylineText:V.author?_.Ec(V.author):void 0}:void 0;var W=void 0;_.y("web_get_playlist_id_from_current_endpoint_ks")||
(W=_.h9.getValueByKeys.apply(null,[U].concat(_.jo(lhm))));var O=_.h9.getValueByKeys.apply(null,[U].concat(_.jo(CcI))),D=_.h9.getValueByKeys.apply(null,[U].concat(_.jo(ahm))),z=!!O||!!D&&!!D.results&&D.results.length>0,Q=0;L&&L.currentIndex&&L.localCurrentIndex&&(Q=L.currentIndex-L.localCurrentIndex);L&&L.playlistId&&(W=L.playlistId);U={rawResponse:U,autoplayRenderer:Y,hasRelatedVideoData:z,playingVideo:V,playingVideoId:I,playlistPanelRenderer:L,playlistId:W,playlistIndex:L&&L.currentIndex,relatedVideoArgs:O,
endScreenRenderer:D,playlistIndexOffset:Q};a:{Y=p.fU5;L=p.gMI;Y.response=U;if(UKt(U))Y.downloadPlaylistProxy&&Y.downloadPlaylistProxy.getPlaylistId()===pWe(U)||(Y.downloadPlaylistProxy=new hWj(pWe(U),Y.setPlaylistData.bind(Y),Y.isPlayingOfflineVideo.bind(Y))),Y.responsePlaylistData=Y.downloadPlaylistProxy.getPlaylistData(),Y.listId=pWe(U),Y.index=0;else if(U.playlistPanelRenderer&&U.playlistId&&U.autoplayRenderer)U.playlistId.startsWith("TLPQ")?Y.queueProxy?Y.listId===U.playlistId?(Y.index=U.playlistIndex,
Y.responsePlaylistData=U.playlistPanelRenderer,Y.queueProxy.JSC$10748_setCurrentIndex(Y.index)):U.playingVideoId&&Y.index!==void 0&&L.clientParams.autoSaveToQueue&&(Y.index+=1,Y.queueProxy.JSC$10748_setCurrentIndex(Y.index),Y.queueProxy.addVideos([U.playingVideoId],{},Y.index)):(Y.queueProxy=new _.GE(Y.JSC$10802_playlistNetworkManager,U.playlistId,Y.setPlaylistData.bind(Y),Y.clearQueue.bind(Y),_.t8E(U.playlistPanelRenderer),Y.storage),Y.responsePlaylistData=U.playlistPanelRenderer,Y.listId=U.playlistId,
Y.index=U.playlistIndex):(Y.index=U.playlistIndex,Y.listId!==U.playlistId&&Y.clearQueue(),Y.responsePlaylistData=U.playlistPanelRenderer,Y.listId=U.playlistId,Y.playlistProxy=new eWl(Y.JSC$10802_playlistNetworkManager,U.playlistId,Y.setPlaylistData.bind(Y),_.t8E(U.playlistPanelRenderer)));else if(!Y.queueProxy)Y.responsePlaylistData=void 0;else if(U.playingVideoId&&L.clientParams.autoSaveToQueue){if(Y.index===void 0){_.ZP(Error("Ef"));Y.clearQueue();break a}Y.queueProxy.videoIds.includes(U.playingVideoId)||
(Y.index+=1,Y.queueProxy.JSC$10748_setCurrentIndex(Y.index),Y.queueProxy.addVideos([U.playingVideoId],{},Y.index))}_.g_(Y,_.ul(Y,Y.response.autoplayRenderer))}})};var JOl=function(S,p){p=p===void 0?_.e8():p;I6.call(this);this.eh.push(new fa(this.cS,{clientParams:{miniplayer:!1,autoSaveToQueue:!1}},p));this.eh.push(new a6(this.cS,S,!1,!1));_.y("web_response_commands_chunk_processor")&&this.eh.push(new d_)};
_.r(JOl,I6);JOl.prototype.processChunk=function(S){S&&S.data.player===void 0&&this.cS.resolve();I6.prototype.processChunk.call(this,S)};var Ca=function(S,p){S=S===void 0?{layer:0}:S;this.hasRun=!1;this.createScreenConfig=S;this.sIQ=p};
_.r(Ca,vj);Ca.prototype.validate=function(S){return!(this.hasRun||!S.endpoint)};
Ca.prototype.handle=function(S){var p=_.HX(),U,Y,L=(Y=_.b((U=S.endpoint)==null?void 0:U.commandMetadata,_.NU))==null?void 0:Y.rootVe;this.sIQ&&L?_.S8(p,L,this.sIQ,this.createScreenConfig):VNw(p,S.endpoint,this.createScreenConfig);this.hasRun=!0};var xV=function(S,p){this.hasRun=!1;this.bmH=S;this.previousVideoId=p};
_.r(xV,vj);xV.prototype.validate=function(S){return _.y("kevlar_continue_playback_without_player_response")&&(S=_.b(S.endpoint,_.E$),(S==null?0:S.videoId)&&this.previousVideoId&&(S==null?void 0:S.videoId)===this.previousVideoId&&(S==null?0:S.continuePlayback))?!1:this.bmH.b16===0};
xV.prototype.handle=function(S){_.xv.getInstance().triggerAction("yt-stop-old-player",S.data,!0)};var yOw=function(S){S=S===void 0?{layer:0}:S;I6.call(this);this.eh.push(new xV(this));this.eh.push(new Ca(S));this.eh.push(new Mu(S))};
_.r(yOw,I6);var KBe=function(){this.hasRun=this.hasRun=!1};
_.r(KBe,vj);KBe.prototype.validate=function(S){return!this.hasRun&&!(!S.data.csn||!S.data.rootVe)};
KBe.prototype.handle=function(S){this.hasRun=!0;_.ZL(S.data.csn,S.data.rootVe,3)};var b7t=function(){vj.apply(this,arguments)};
_.r(b7t,vj);b7t.prototype.validate=function(S){return!!S.data.preconnect};
b7t.prototype.handle=function(S){_.Fg("bc");S=_.d(S.data.preconnect);for(var p=S.next();!p.done;p=S.next())p=p.value,(new Image).src=p};var jrm=function(S,p,U){U=U===void 0?{layer:0}:U;I6.call(this);this.eh.push(new a6(this.cS,S));this.eh.push(new Ca(U));this.eh.push(new Mu(U))};
_.r(jrm,I6);var rOI=function(S,p,U,Y,L){U=U===void 0?{layer:0}:U;Y=Y===void 0?_.e8():Y;I6.call(this);var I=!!p&&!!p.clientParams&&!!p.clientParams.miniplayer;I&&this.eh.push(new KBe);this.eh.push(new fa(this.cS,p,Y));this.eh.push(new b7t);var V,W;this.eh.push(new a6(this.cS,S,I,!((V=p.clientParams)==null||!V.fromHistory),(W=p.clientParams)==null?void 0:W.previousVideoId,Y,p.tempData));var O;this.eh.push(new xV(this,(O=p.clientParams)==null?void 0:O.previousVideoId));var D;(D=p.clientParams)!=null&&D.fromHistory||
(U.layer||(U=Object.assign({},U,{layer:I?3:0})),this.eh.push(new Ca(U,L)),this.eh.push(new Mu(U)));_.y("web_response_commands_chunk_processor")&&this.eh.push(new d_)};
_.r(rOI,I6);var E8,RIe;E8={};
_.GFP=(E8["subs-guide-item"]={bodyText:"SUBS_GUIDE_ITEM_EDU_TEXT",position:"OPEN_POPUP_POSITION_RIGHT"},E8["subs-filter-by-channel"]={bodyText:"SUBS_FILTER_EDU_TEXT",position:"OPEN_POPUP_POSITION_RIGHT",setKey:"subs-filter-by-channel-set"},E8["subs-filtered-by-channel"]={bodyText:"SUBS_FILTER_EDU_CHANNEL_TEXT",position:"OPEN_POPUP_POSITION_RIGHT",setKey:"subs-filter-by-channel-set"},E8["membership-join"]={titleText:"JOIN_MEMBERSHIP_EDU_TITLE",bodyText:"JOIN_MEMBERSHIP_EDU_TEXT",position:"OPEN_POPUP_POSITION_LEFT"},E8["membership-freebie-join"]=
{bodyText:"FREEBIE_JOIN_MEMBERSHIP_EDU_TEXT",position:"OPEN_POPUP_POSITION_LEFT"},E8["membership-manage"]={bodyText:"MANAGE_MEMBERSHIP_EDU_TEXT",position:"OPEN_POPUP_POSITION_LEFT"},E8["library-guide-item"]={titleText:"LIBRARY_GUIDE_ITEM_EDU_TITLE",bodyText:"LIBRARY_GUIDE_ITEM_EDU_TEXT",position:"OPEN_POPUP_POSITION_RIGHT"},E8);_.mt=new _.ug("yt-edu");_.hIt=function(){this.JSC$10903_eduDisplayedThisLoad_={}};
RIe=function(S){var p=_.hIt.getInstance();var U=_.pA("kevlar_tooltip_impression_cap");p=U&&parseInt(_.mt.get(S+"-impression")||0,10)>=U||_.mt.get(S+"-dismissed")?!1:(U=_.GFP[S])&&!p.JSC$10903_eduDisplayedThisLoad_[U.setKey||S]&&(U.titleText&&_.Oh(U.titleText)||U.bodyText&&_.Oh(U.bodyText))?!0:!1;if(!p)return null;p=_.GFP[S];if(!p)return null;U=p.bodyText?_.Oh(p.bodyText):void 0;var Y=p.titleText?_.Oh(p.titleText):void 0;return[{openPopupAction:{popupType:"HINT",position:p.position,popup:{bubbleHintRenderer:{text:Y?
_.Ec(Y):void 0,detailsText:U?_.Ec(U):void 0,style:"BUBBLE_HINT_STYLE_BLUE_TOOLTIP",confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.Ec(_.Oh("EDU_GOT_IT")),serviceEndpoint:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{eduDismissAction:{key:S}}]}}}}}}}},{eduImpressionAction:{key:S}}]};
_.N_(_.hIt);var cje=!1;for(var FBQ="WEB_PAGE_TYPE_SETTINGS red playlist labs handle ypc-offers show ypc-checkout".split(" "),XWH=[],o6=6;o6>=1;o6--)XWH.push({columnCount:o6,query:o6==1?0:o6*2*107-4+32,className:"grid-"+o6+"-columns",width:o6*2*107+"px"});_.Z7Q=function(S){this.actionRouter_=S=S===void 0?_.xv.getInstance():S;this.documentWidth_=document.body.clientWidth;this.currentSnapState_=_.PAe(this);this.miniGuideVisible_=this.guidePersistentAndVisible_=!1};
_.PAe=function(S){var p=S.miniGuideVisible_?72:0,U=S.documentWidth_-(S.guidePersistentAndVisible_?240:p);return XWH.find(function(Y){return U>Y.query})};
_.N_(_.Z7Q);var srm=function(){var S=this;this.JSC$10915_keyboardInUse=!1;document.addEventListener("keydown",function(){S.onKeydown()});
document.addEventListener("mousedown",function(){S.JSC$10915_keyboardInUse=!1})},eIc;
srm.prototype.isKeyBoardInUse=function(){return this.JSC$10915_keyboardInUse};
srm.prototype.onKeydown=function(){this.JSC$10915_keyboardInUse=!0};var gBm,il;_.vt=new _.ug("yt-mentions");_.$V=function(){};
gBm=function(S,p){return il(p,"drag-to-reorder-edu-displayed")};
il=function(S,p,U,Y,L,I){U=U===void 0?"OPEN_POPUP_POSITION_TOP":U;if(p){if(_.vt.get(p))return;_.vt.set(p,!0,Y)}if(L&&I!==void 0){p=Number(_.vt.get(L)||0);if(p>=I)return;_.vt.set(L,p+1)}return[{openPopupAction:{popupType:"HINT",position:U,popup:{bubbleHintRenderer:{detailsText:S,style:"BUBBLE_HINT_STYLE_BLUE_TOOLTIP"}}}}]};
_.N_(_.$V);var uPm,wWH,lkm;uPm=function(S,p,U,Y){this.JSC$10925_taskManager_=S;this.onFulfilled_=typeof p==="function"?p:null;this.onRejected_=typeof U==="function"?U:null;this.JSC$10925_context_=Y};
wWH=function(S,p){S.onFulfilled_&&_.HG(S.JSC$10925_taskManager_,function(){S.onFulfilled_.call(S.JSC$10925_context_,p)})};
lkm=function(S,p){S.onRejected_&&_.HG(S.JSC$10925_taskManager_,function(){S.onRejected_.call(S.JSC$10925_context_,p)})};
_.Nu=function(S){this.JSC$10928_taskManager_=S;this.callbacks_=[]};
_.Nu.prototype.then=function(S,p,U){this.callbacks_.push(new uPm(this.JSC$10928_taskManager_,S,p,U));return this};
_.Nu.prototype.onSuccess=function(S){this.callbacks_.forEach(function(p){wWH(p,S)})};
_.Nu.prototype.onFailure=function(S){this.callbacks_.forEach(function(p){lkm(p,S)})};
_.Nu.prototype.cancel=function(){this.callbacks_.length=0};
rij(_.Nu);_.LgX=null;_.rY=new _.$g("ACTIVITY_TOKEN");var Bt=function(S,p){this.serviceId=new b2q(S,p)};
Bt.prototype.toString=function(){return this.serviceId.toString()};var akm=function(){this.internalMap={}};
_.M=akm.prototype;_.M.contains=function(S){return Object.prototype.hasOwnProperty.call(this.internalMap,S)};
_.M.get=function(S){if(this.contains(S))return this.internalMap[S]};
_.M.set=function(S,p){this.internalMap[S]=p};
_.M.getKeys=function(){return Object.keys(this.internalMap)};
_.M.remove=function(S){delete this.internalMap[S]};var qu=function(){this.mappings=new akm;this.errorCallbacks=new Set};
qu.prototype.getModuleId=function(S){return S.serviceId.getModuleId()};
qu.prototype.get=function(S){var p=this.mappings.get(S.toString());return fkl(this,p,S)};
qu.prototype.getMultipleAsync=function(){var S=_.jO.apply(0,arguments),p=this,U=S.map(function(O){return p.getModuleId(O)}),Y=S.map(function(O){return p.mappings.get(O.toString())}).filter(function(O){return O});
if(Y.length===S.length)return _.Mw(Y.map(function(O,D){return fkl(p,O,S[D])}));
var L=sr().loadMultiple(U);Y=_.DS(U.map(function(O){return L[O]}));
var I=document.hidden,V=-1,W=_.pA("get_async_timeout_ms",-1);W>-1&&(V=setTimeout(function(){_.eP(new _.y7("Module timeout.",U,I,document.hidden))},W));
return _.zB(Y.then(function(){return S.map(function(O){return fkl(p,p.mappings.get(O.toString()),O)})}).thenCatch(function(O){for(var D=_.d(p.errorCallbacks),z=D.next();!z.done;z=D.next())z=z.value,z(O);
throw O;}),function(){clearTimeout(V)})};
qu.prototype.registerService=function(S,p){this.mappings.set(S.toString(),{type:"mapping",value:p});return S};
var fkl=function(S,p,U){switch(p.type){case "mapping":return p.value;case "factory":return p=p.value(),S.mappings.set(U.toString(),{type:"mapping",value:p}),p;default:return _.WP(p)}};
qu.prototype.onLoadError=function(S){var p=this;this.errorCallbacks.add(S);return function(){p.errorCallbacks.delete(S)}};
_.A4=new qu;var TWR=/^[a-zA-Z0-9_\-]{11}$/;var WgR=_.WD(function(){var S,p;return(p=(S=window).matchMedia)==null?void 0:p.call(S,"(prefers-reduced-motion: reduce)").matches});var CAj=_.WD(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 S=_.ad("yt.web.contrib.innertube.requests.watch_ui.utils.videoElement_");S||(S=_.JY("VIDEO"),_.NT("yt.web.contrib.innertube.requests.watch_ui.utils.videoElement_",
S));return!!(S&&S.canPlayType&&S.canPlayType('video/webm; codecs="vp09.00.51.08.01.01.01.01.00"'))});var QnE=new Map([["dark","USER_INTERFACE_THEME_DARK"],["light","USER_INTERFACE_THEME_LIGHT"]]);var t4;t4=function(){this.tokenJars={};if(this.cookiesEnabled=_.Q7()){var S=_.D5.get("CONSISTENCY",void 0);S&&xKd(this,{encryptedTokenJarContents:S})}};
_.Jtw=function(){t4.instance||(t4.instance=new t4);return t4.instance};
t4.prototype.handleResponse=function(S,p){if(!p)throw Error("Of");var U,Y;p=((U=p.innerTubeRequest.context)==null?void 0:(Y=U.request)==null?void 0:Y.consistencyTokenJars)||[];var L;(S=(L=S.responseContext)==null?void 0:L.consistencyTokenJar)&&this.replace(p,S)};
t4.prototype.replace=function(S,p){S=_.d(S);for(var U=S.next();!U.done;U=S.next())delete this.tokenJars[U.value.encryptedTokenJarContents];xKd(this,p)};
var xKd=function(S,p){if(p.encryptedTokenJarContents&&(S.tokenJars[p.encryptedTokenJarContents]=p,typeof p.expirationSeconds==="string")){var U=Number(p.expirationSeconds);setTimeout(function(){delete S.tokenJars[p.encryptedTokenJarContents]},U*1E3);
S.cookiesEnabled&&_.zp("CONSISTENCY",p.encryptedTokenJarContents,U,void 0,!0)}};var EBP,ct;EBP=window.location.hostname.split(".").slice(-2).join(".");_.Gv=function(){this.remoteLocationPlayabilityTokenTimeoutID=-1;var S=_.g7("LOCATION_PLAYABILITY_TOKEN");_.g7("INNERTUBE_CLIENT_NAME")==="TVHTML5"&&(this.localStorage=mKe(this))&&(S=this.localStorage.get("yt-location-playability-token"));S&&(this.locationPlayabilityToken=S,this.mostRecentPosition=void 0)};
_.Gv.getInstance=function(){ct=_.ad("yt.clientLocationService.instance");ct||(ct=new _.Gv,_.NT("yt.clientLocationService.instance",ct));return ct};
_.Gv.prototype.setLocationOnInnerTubeContext=function(S){S.client||(S.client={});if(this.mostRecentPosition)S.client.locationInfo||(S.client.locationInfo={}),S.client.locationInfo.latitudeE7=Math.floor(this.mostRecentPosition.coords.latitude*1E7),S.client.locationInfo.longitudeE7=Math.floor(this.mostRecentPosition.coords.longitude*1E7),S.client.locationInfo.horizontalAccuracyMeters=Math.round(this.mostRecentPosition.coords.accuracy),S.client.locationInfo.forceLocationPlayabilityTokenRefresh=!0;else if(this.remoteLocationPlayabilityToken||
this.locationPlayabilityToken)S.client.locationPlayabilityToken=this.remoteLocationPlayabilityToken||this.locationPlayabilityToken};
_.Gv.prototype.handleResponse=function(S){var p;S=(p=S.responseContext)==null?void 0:p.locationPlayabilityToken;S!==void 0&&(this.locationPlayabilityToken=S,this.mostRecentPosition=void 0,_.g7("INNERTUBE_CLIENT_NAME")==="TVHTML5"?(this.localStorage=mKe(this))&&this.localStorage.set("yt-location-playability-token",S,15552E3):_.zp("YT_CL",JSON.stringify({loctok:S}),15552E3,EBP,!0))};
var mKe=function(S){return S.localStorage===void 0?new _.ug("yt-client-location"):S.localStorage};
_.Gv.prototype.clearLocationPlayabilityToken=function(S){S==="TVHTML5"?(this.localStorage=mKe(this))&&this.localStorage.remove("yt-location-playability-token"):_.dUN("YT_CL");this.remoteLocationPlayabilityToken=void 0;this.remoteLocationPlayabilityTokenTimeoutID!==-1&&(clearTimeout(this.remoteLocationPlayabilityTokenTimeoutID),this.remoteLocationPlayabilityTokenTimeoutID=-1)};
_.Gv.prototype.getCurrentPositionFromGeolocation=function(){var S=this;if(!(navigator&&navigator.geolocation&&navigator.geolocation.getCurrentPosition))return Promise.reject(Error("Pf"));var p=!1,U=1E4;_.g7("INNERTUBE_CLIENT_NAME")==="MWEB"&&(p=!0,U=15E3);return new Promise(function(Y,L){navigator.geolocation.getCurrentPosition(function(I){S.mostRecentPosition=I;Y(I)},function(I){L(I)},{enableHighAccuracy:p,
maximumAge:0,timeout:U})})};
_.Gv.prototype.createUnpluggedLocationInfo=function(S){var p={};S=S.coords;if(S==null?0:S.latitude)p.latitudeE7=Math.floor(S.latitude*1E7);if(S==null?0:S.longitude)p.longitudeE7=Math.floor(S.longitude*1E7);if(S==null?0:S.accuracy)p.locationRadiusMeters=Math.round(S.accuracy);return p};
_.Gv.prototype.createLocationInfo=function(S){var p={};S=S.coords;if(S==null?0:S.latitude)p.latitudeE7=Math.floor(S.latitude*1E7);if(S==null?0:S.longitude)p.longitudeE7=Math.floor(S.longitude*1E7);return p};var oBm=function(){};
_.M=oBm.prototype;
_.M.JSC$10995_getRequest=function(S,p,U){p=p===void 0?{}:p;U=U===void 0?Gpj:U;var Y=p;if(this.isNavigationCommand()){var L,I=(L=_.b(S==null?void 0:S.commandMetadata,_.NU))==null?void 0:L.url;Y=_.ytE(S.clickTrackingParams,!0,!1,I,this.JSC$10995_getClientScreen(Y))}else Y=_.ytE(S.clickTrackingParams,!1,this.includeCsn);Y={context:Y};if(L=this.getExtension(S))return this.JSC$10995_buildRequest(Y,L,p),L=this.getApiUrl(S),I=Object.assign({},{command:S},this.getRequestConfig(S,p)),Y={input:L,requestShell:C9(L),
innerTubeRequest:Y,config:I},Y.config.authStrategy?Y.config.authStrategy.identity=U:Y.config.authStrategy={identity:U},(S=this.JSC$10995_getRequestKey(S,p))&&!Y.config.requestKey&&(Y.config.requestKey=S),Y;S=new _.y7("Error: Failed to create Request from Command.",S);_.ZP(S)};
_.M.getApiUrl=function(S){var p=_.$l(this.getApiPaths(S)),U;(S=(U=_.b(S.commandMetadata,_.NU))==null?void 0:U.apiUrl)&&(p=S);return BMk(NMw(p))};
_.M.isNavigationCommand=function(){return!1};
_.M.JSC$10995_getClientScreen=function(){};
_.M.JSC$10995_getRequestKey=function(){};
_.M.getRequestConfig=function(){};
_.$u.Object.defineProperties(oBm.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!1}}});
var SL=function(){};
_.r(SL,oBm);SL.prototype.JSC$11002_getStoreKey=function(){};
SL.prototype.JSC$10995_getRequestKey=function(S,p){p=p===void 0?{}:p;return this.JSC$11002_getStoreKey(S,p)};var $Km;_.p$=function(S,p,U){var Y=U&&U>0?U:0;U=Y?Date.now()+Y*1E3:0;if((Y=Y?(0,_.vBm)():$Km())&&window.JSON){typeof p!=="string"&&(p=JSON.stringify(p,void 0));try{Y.set(S,p,U)}catch(L){Y.remove(S)}}};
_.Uz=function(S){var p=$Km(),U=(0,_.vBm)();if(!p&&!U||!window.JSON)return null;try{var Y=p.get(S)}catch(L){}if(typeof Y!=="string")try{Y=U.get(S)}catch(L){}if(typeof Y!=="string")return null;try{Y=JSON.parse(Y,void 0)}catch(L){}return Y};
_.Y2=function(S){try{var p=$Km(),U=(0,_.vBm)();p&&p.remove(S);U&&U.remove(S)}catch(Y){}};
_.vBm=_.WD(function(){try{var S=new DUe;var p=S.isAvailable()?S:null}catch(U){return null}return p?new _.p9(p):null});
$Km=_.WD(function(){var S=new z0G;return S.isAvailable()?new _.p9(S):null});var M_=new _.$g("ENTITY_STATE_TOKEN"),L$=new _.$g("PERSISTENT_ENTITY_STORE_ACCESSOR_TOKEN");var i7P=XMLHttpRequest.prototype.fetch,Nsj=i7P&&i7P.length===3?!0:typeof window.fetch==="function"&&window.ReadableStream&&window.AbortController&&!$U?!0:!1;var MH=function(S){this.JSC$11007_storeWithEntities=S};
_.r(MH,SL);_.M=MH.prototype;_.M.getApiPaths=function(){return O$t};
_.M.getExtension=function(S){return _.b(S,_.E$)||_.b(S,_.QX)||_.b(S,kAm)};
_.M.isNavigationCommand=function(){return!0};
_.M.JSC$11002_getStoreKey=function(S){if((_.y("kevlar_cache_on_ttl_player")||_.y("mweb_enable_shorts_innertube_player_prefetch")||_.y("mweb_use_new_history_manager")||_.y("web_shorts_prefetch_service_enabled"))&&(S=this.getExtension(S))&&S.videoId){var p={videoId:S.videoId};S.playlistId&&(p.playlistId=S.playlistId);S.playerParams&&(p.params=S.playerParams);return _.xn("player",p)}};
_.M.JSC$10995_getClientScreen=function(S){var p;return((p=S.contentPlaybackContext)==null?void 0:p.vis)===2?"WATCH_FULL_SCREEN":"WATCH"};
_.M.JSC$10995_buildRequest=function(S,p,U){if(_.y("enable_interstitial_entity_check")){var Y=this.JSC$11007_storeWithEntities;if(p.videoId)for(var L=_.d(["CONTENT_CHECK_REQUIRED","AGE_CHECK_REQUIRED"]),I=L.next();!I.done;I=L.next()){I=I.value;var V;var W=void 0,O=void 0,D=p.videoId,z=I;(V=Y)?(D=_.M9(D+z,"interstitialInteractionStateEntity"),V=(W=(O=_.I4(V.getState().entities,"interstitialInteractionStateEntity",D))==null?void 0:O.primaryButtonClicked)!=null?W:!1):V=!1;if(V)switch(I){case "CONTENT_CHECK_REQUIRED":p.contentCheckOk=
!0;break;case "AGE_CHECK_REQUIRED":p.racyCheckOk=!0}}}p.videoId&&(S.videoId=p.videoId);p.playlistId&&(S.playlistId=p.playlistId);p.index!==void 0&&(S.playlistIndex=p.index+1);p.playerParams&&(S.params=p.playerParams);"startTimeSeconds"in p&&p.startTimeSeconds&&(_.y("enable_player_request_builder_start_time_floor")?S.startTimeSecs=Math.floor(p.startTimeSeconds):S.startTimeSecs=p.startTimeSeconds);U.contentPlaybackContext&&(S.playbackContext={contentPlaybackContext:U.contentPlaybackContext});U.prefetchPlaybackContext&&
(S.playbackContext=Object.assign({},S.playbackContext,{prefetchPlaybackContext:U.prefetchPlaybackContext}),S.context.request||(S.context.request={}),S.context.request.isPrefetch=!0);S.playbackContext||(S.playbackContext={});Y=CAj();S.playbackContext.devicePlaybackCapabilities={supportsVp9Encoding:!!Y,supportXhr:Nsj};U.overrideMutedAtStart&&(S.overrideMutedAtStart=U.overrideMutedAtStart);S.racyCheckOk=!!p.racyCheckOk;S.contentCheckOk=!!p.contentCheckOk;!_.y("captions_prefs_killswitch")&&(U=(U=_.Uz("yt-player-caption-language-preferences"))?
U:[],U==null?0:U.length)&&(S.captionParams={viewerSelectedCaptionLangs:U})};
_.M.getRequestConfig=function(S){S=this.JSC$11002_getStoreKey(S);var p;S&&(p={storeStrategy:{storeKey:S}});_.y("web_log_player_watch_next_ticks")&&(p=p||{},p.requestTick="ps_s",p.responseTick="ps_r");return p};
MH[vF]=[M_];var Il=function(){};
_.r(Il,SL);_.M=Il.prototype;_.M.getApiPaths=function(){return E2Q};
_.M.getExtension=function(S){return _.b(S,_.E$)};
_.M.isNavigationCommand=function(){return!0};
_.M.JSC$11002_getStoreKey=function(S){if((S=this.getExtension(S))&&S.videoId){var p={videoId:S.videoId};S.playlistId&&(p.playlistId=S.playlistId);S.index&&(p.index=S.index);S.params&&(p.params=S.params);return _.xn("next",p)}};
_.M.JSC$10995_getClientScreen=function(S){var p;return((p=S.contentPlaybackContext)==null?void 0:p.vis)===2?"WATCH_FULL_SCREEN":"WATCH"};
_.M.JSC$10995_buildRequest=function(S,p,U){p.videoId&&(S.videoId=p.videoId);p.playlistId&&(S.playlistId=p.playlistId);p.params&&(S.params=p.params);p.index!==void 0&&(S.playlistIndex=p.index);S.racyCheckOk=!(!U.racyCheckOk&&!p.racyCheckOk);S.contentCheckOk=!!p.contentCheckOk;U.contentPlaybackContext&&(S.autonavState=U.contentPlaybackContext.autonavState,S.playbackContext={vis:U.contentPlaybackContext.vis,lactMilliseconds:U.contentPlaybackContext.lactMilliseconds});U.prefetchPlaybackContext&&(S.context.request||
(S.context.request={}),S.context.request.isPrefetch=!0);_.y("captions_hats_killswitch")||(p=_.D9().getFlag(65),p=p!=null?!p:!1,U=!!_.Uz("yt-player-sticky-caption"),S.captionsRequested=p&&U)};
_.M.getRequestConfig=function(S){S=this.JSC$11002_getStoreKey(S);var p;S&&(p={storeStrategy:{storeKey:S}});_.y("web_log_player_watch_next_ticks")&&(p=p||{},p.requestTick="wn_s",p.responseTick="wn_r");return p};
var dk=function(){};
_.r(dk,SL);dk.prototype.getApiPaths=function(){return E2Q};
dk.prototype.getExtension=function(S){return _.b(S,_.Zt)};
dk.prototype.JSC$10995_buildRequest=function(S,p){p.token&&(S.continuation=p.token)};var Va=function(S,p){this.playerRequestBuilder=S;this.watchNextRequestBuilder=p};
_.r(Va,SL);Va.prototype.getApiPaths=function(){return Sze};
Va.prototype.getExtension=function(S){return _.b(S,_.E$)};
Va.prototype.isNavigationCommand=function(){return!0};
Va.prototype.JSC$10995_buildRequest=function(S,p,U){S.playerRequest={};this.playerRequestBuilder.JSC$10995_buildRequest(S.playerRequest,p,U);_.y("web_streaming_watch")&&(S.watchNextRequest={},this.watchNextRequestBuilder.JSC$10995_buildRequest(S.watchNextRequest,p,U))};
Va[vF]=[MH,Il];var Bsc;_.Ts=new _.$g("SHORTS_CONTROLLER_TOKEN");Bsc=new _.$g("SHORTS_STATE_STORE_TOKEN");var Wl=function(S,p){var U=_.jO.apply(2,arguments);S=S===void 0?0:S;_.y7.call(this,p,U);this.errorType=S;Object.setPrototypeOf(this,this.constructor.prototype)};
_.r(Wl,_.y7);var qQH,AOe,cOl,w_d,wI,Y5k,YLH,Ufw,Tat,Ibc,MHw;qQH=new RegExp("jct sld rapt cid channel_creation_token force_ad_format ex_ads extra_kw".split(" ").map(function(S){return S+"="}).join("|"));
AOe=RegExp(".*\\?.*playnext=1.*");_.Oz=function(S,p,U,Y){this.watchEndpointMap=S;this.reelWatchEndpointMap=p;this.innerTubeTransportService=U;this.fetchPbj=Y};
cOl=function(S,p,U){var Y=_.tW().resolve(_.AW(tWl));_.Oz.instance=new _.Oz(S,p,U,Y)};
_.SLH=function(S,p){var U=_.pA("web_pbj_log_warning_rate",0);U=U>0&&Math.random()<U;var Y;if((Y=_.b(p.commandMetadata,_.NU))==null||!Y.rootVe)return U&&_.eP(Error("Rf")),!1;var L;Y=(L=_.b(p.commandMetadata,_.NU))==null?void 0:L.url;if(!Y)return U&&_.eP(Error("Sf")),!1;if(AOe.test(Y))return!0;if(qQH.test(Y))return U&&_.eP(Error("Tf`"+Y)),!1;if(_.b(p,_.E$)){if(!(S.watchEndpointMap.watchNext&&S.watchEndpointMap.player||_.y("kevlar_fetch_initial_data_op_watch_client")))return U&&_.eP(Error("Kf")),!1;
S=_.pA("web_pbj_log_warning_rate",0);S=S>0&&Math.random()<S;_.b(p,_.E$)?doG(p)?p=!0:(S&&_.eP(Error("Lf")),p=!1):(S&&_.eP(Error("Kf")),p=!1);return p}if(_.b(p,_.QX))return VNk(p);if(_.b(p,_.Rg))return!0;S=_.wY(S.innerTubeTransportService,p);!S&&U&&_.ZP(Error("Uf"),"WARNING",void 0,void 0,void 0,{command:JSON.stringify(p)});return S};
w_d=function(S,p,U,Y,L,I){p={url:p};if(U==null?0:U.itct)p.parentTrackingParams=U.itct;var V=_.$l(KVH);return _.R6(S.innerTubeTransportService,p,V).then(function(W){(W=W.endpoint)||(W=_.TE);(U==null?0:U.itct)&&W&&!W.trackingParams&&(W.trackingParams=U.itct);var O=DG(W);return wI(S,W,U,Y,O,L,I)})};
wI=function(S,p,U,Y,L,I,V,W){W=W===void 0?{}:W;if(S.fetchPbj&&!_.SLH(S,p)&&!_.y("force_one_platform")){W=S.fetchPbj(p);var O=_.Mw(W.then(function(m){if(!m)throw Error("Vf");V(O)||I(p,m);return m}));
return O}var D,z,Q={rootVe:(D=_.b(p.commandMetadata,_.NU))==null?void 0:D.rootVe,url:(z=_.b(p.commandMetadata,_.NU))==null?void 0:z.url,endpoint:p,page:L};if(_.b(p,_.E$)){var J,K={contentPlaybackContext:_.yX(U,(J=_.b(p.commandMetadata,_.NU))==null?void 0:J.url,Y)},G=_.ay();_.y("web_streaming_watch")&&window.TextDecoderStream?(W=phc(S.innerTubeTransportService,p,K,function(m){!Q.response&&m.content&&(Q.response=m.content);!Q.playerResponse&&m.player&&(Q.playerResponse=m.player);I(p,Q)}),D=qDq(p),D.length&&
(Q.preconnect=D,I(p,Q)),Ufw(W,G,Q).catch(function(m){m instanceof Wl&&m.errorType===2&&YLH(S,p,K,Q,I,V,G)})):YLH(S,p,K,Q,I,V,G);
return G.promise}if(_.b(p,_.QX)){var X;if(((X=_.b(p,_.QX))==null?void 0:X.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS"){var Z=_.ay();_.LQm(_.tW().resolve(_.Ts),p).then(function(m){MHw(S,U,Y,L,I,Z,m)});
return Z.promise}W=_.Mw();var l;D={contentPlaybackContext:_.yX(U,(l=_.b(p.commandMetadata,_.NU))==null?void 0:l.url,Y)};(l=S.reelWatchEndpointMap.player)&&(l=l().JSC$10995_getRequest(p,D))&&(W=_.R6(S.innerTubeTransportService,l.innerTubeRequest,l.input,p.clickTrackingParams,l.config));l=_.Mw();(z=S.reelWatchEndpointMap.reelItemWatch)&&(z=z().JSC$10995_getRequest(p))&&(l=_.R6(S.innerTubeTransportService,z.innerTubeRequest,z.input,p.clickTrackingParams,z.config));z=_.Mw();(J=S.reelWatchEndpointMap.reelWatchSequence)&&
_.b(p,_.QX).sequenceParams&&(D=J().JSC$10995_getRequest(p,D))&&(z=_.R6(S.innerTubeTransportService,D.innerTubeRequest,D.input,p.clickTrackingParams,D.config));D=_.Mw(Q);J=_.ay();Ibc(p,D,W,l,z,I,V,J);return J.promise}var a;if(_.b(p,Yjk)&&((a=_.b(p.commandMetadata,_.NU))==null?0:a.url))return W=nKG(_.mz(Pi().location.href),_.mz(_.b(p.commandMetadata,_.NU).url)).toString(),w_d(S,W,U,Y,I,function(){return!1});
if(_.b(p,_.Rg))return I(p,Q),_.Mw(Q);if(_.wY(S.innerTubeTransportService,p)){W=Object.assign({},{tempData:U,disableCache:U.disableCache},W);var N=_.lZ(S.innerTubeTransportService,p,W).then(function(m){Q.response=m;V(N)||I(p,Q);return Q});
return N}return _.Mw(Q)};
_.VHt=function(S,p,U,Y){if(_.b(p,_.E$)||_.b(p,_.QX)&&(_.y("mweb_enable_shorts_innertube_player_prefetch")||_.y("kevlar_enable_shorts_prefetch_in_sequence"))||_.b(p,kAm)&&_.y("web_enable_prefetching_videos_on_home")){var L,I={contentPlaybackContext:_.yX(U,(L=_.b(p.commandMetadata,_.NU))==null?void 0:L.url,Y),prefetchPlaybackContext:kbr(U)},V,W,O;if(((V=_.b(p,_.E$))==null?void 0:(W=V.watchEndpointSupportedPrefetchConfig)==null?void 0:(O=W.prefetchHintConfig)==null?void 0:O.prefetchType)==="PREFETCH_TYPE_WATCH_NEXT"){if(U=
S.watchEndpointMap.watchNext)if(I=U().JSC$10995_getRequest(p,I))return Promise.resolve(_.R6(S.innerTubeTransportService,I.innerTubeRequest,I.input,void 0,I.config).then(function(Q){return Q}))}else if(_.b(p,_.QX)&&_.y("web_prefetch_riw_for_next_video")){if(U=S.reelWatchEndpointMap.reelItemWatch)if((U=U().JSC$10995_getRequest(p,I))&&_.R6(S.innerTubeTransportService,U.innerTubeRequest,U.input,void 0,U.config).then(function(Q){return Q}),U=S.reelWatchEndpointMap.player)if(I=U().JSC$10995_getRequest(p,
I))return Promise.resolve(_.R6(S.innerTubeTransportService,I.innerTubeRequest,I.input,void 0,I.config).then(function(Q){return Q}))}else if(U=S.watchEndpointMap.player)if(I=U().JSC$10995_getRequest(p,I))return Promise.resolve(_.R6(S.innerTubeTransportService,I.innerTubeRequest,I.input,void 0,I.config).then(function(Q){return Q}))}else if(_.wY(S.innerTubeTransportService,p)){var D={tempData:U},z=dfm(S.innerTubeTransportService,p);
return z?new Promise(function(Q,J){var K,G;return _.T(function(X){if(X.nextAddress==1)return _.k(X,z,2);if(X.nextAddress!=4)return K=X.yieldResult,K.JSC$11002_getStoreKey(p,D)?_.k(X,_.lZ(S.innerTubeTransportService,p,D),4):(J(new _.y7("Prefetching request builder with no store key.",p)),X.jumpTo(0));G=X.yieldResult;Q(G);_.OV(X)})}):Promise.reject(new _.y7("Prefetching unregistered request builder.",p))}return Promise.reject(new _.y7("No request builder available to prefetch endpoint.",p))};
Y5k=function(S,p){var U,Y,L;if(_.b(p,_.E$)){var I=S.watchEndpointMap.watchNext;I&&(U=I());(S=S.watchEndpointMap.player)&&(Y=S())}else if(_.b(p,_.QX))(I=S.reelWatchEndpointMap.reelItemWatch)&&(U=I()),(I=S.reelWatchEndpointMap.player)&&(Y=I()),(S=S.reelWatchEndpointMap.reelWatchSequence)&&(L=S());else{a:{S=djN(p,S.innerTubeTransportService.endpointMap);if(S!==void 0)if(typeof S.then==="function")_.ZP(new _.y7("Attempted to get deferred RequestBuilder that is unresolved or still wrapped.",p));else break a;
S=void 0}S&&(U=S)}var V,W,O;return{content:(V=U)==null?void 0:V.JSC$11002_getStoreKey(p),player:(W=Y)==null?void 0:W.JSC$11002_getStoreKey(p),reelSequence:(O=L)==null?void 0:O.JSC$11002_getStoreKey(p)}};
YLH=function(S,p,U,Y,L,I,V){var W=_.Mw(),O=S.watchEndpointMap.player;_.y("web_streaming_player")&&(O=JB(Va));O&&(O=O().JSC$10995_getRequest(p,U))&&(W=_.R6(S.innerTubeTransportService,O.innerTubeRequest,O.input,p.clickTrackingParams,O.config));O=_.Mw();var D=S.watchEndpointMap.watchNext;D&&(U=D().JSC$10995_getRequest(p,U))&&(O=_.R6(S.innerTubeTransportService,U.innerTubeRequest,U.input,p.clickTrackingParams,U.config));S=_.Mw(Y);Tat(p,S,W,O,L,I,V)};
Ufw=function(S,p,U){return _.T(function(Y){if(Y.nextAddress==1)return _.k(Y,S,2);p.resolve(U);_.OV(Y)})};
Tat=function(S,p,U,Y,L,I,V){var W,O,D,z,Q;_.T(function(J){switch(J.nextAddress){case 1:return _.k(J,p,2);case 2:W=J.yieldResult;if(I(V.promise))return V.resolve(W),J.return();L(S,W);O=qDq(S);if(!O.length){J.jumpTo(3);break}return _.k(J,p,4);case 4:W.preconnect=O,L(S,W);case 3:return _.M2(J,5),_.k(J,U,7);case 7:D=J.yieldResult;_.CA(J,6);break;case 5:return z=_.W4(J),V.reject(z),J.return();case 6:if(D===void 0)return W.reload=!0,L(S,W),V.resolve(W),J.return();if(I(V.promise))return V.resolve(W),J.return();
W.playerResponse=D;L(S,W);_.M2(J,8);return _.k(J,Y,10);case 10:Q=J.yieldResult;_.CA(J,9);break;case 8:_.W4(J);case 9:if(Q===void 0)return W.response={responseContext:{}},V.resolve(W),J.return();if(I(V.promise))return V.resolve(W),J.return();W.response=Q;L(S,W);V.resolve(W);_.OV(J)}})};
Ibc=function(S,p,U,Y,L,I,V,W){var O,D,z,Q,J,K;_.T(function(G){switch(G.nextAddress){case 1:return _.k(G,p,2);case 2:O=G.yieldResult;if(V(W.promise))return W.resolve(O),G.return();I(S,O);D=qDq(S);if(!D.length){G.jumpTo(3);break}return _.k(G,p,4);case 4:O.preconnect=D,I(S,O);case 3:return _.M2(G,5),_.k(G,U,7);case 7:z=G.yieldResult;_.CA(G,6);break;case 5:return Q=_.W4(G),W.reject(Q),G.return();case 6:if(z===void 0)return O.reload=!0,I(S,O),W.resolve(O),G.return();if(V(W.promise))return W.resolve(O),
G.return();O.playerResponse=z;I(S,O);_.M2(G,8);return _.k(G,Y,10);case 10:J=G.yieldResult;_.CA(G,9);break;case 8:_.W4(G);case 9:if(J===void 0)return O.response={responseContext:{}},W.resolve(O),G.return();if(V(W.promise))return W.resolve(O),G.return();O.response=J;I(S,O);_.M2(G,11);return _.k(G,L,13);case 13:K=G.yieldResult;_.CA(G,12);break;case 11:_.W4(G);case 12:if(V(W.promise))return W.resolve(O),G.return();O.reelWatchSequenceResponse=K;I(S,O);W.resolve(O);_.OV(G)}})};
MHw=function(S,p,U,Y,L,I,V){var W,O,D,z,Q,J;_.T(function(K){if((W=V)==null||!W.replacementEndpoint)return I.reject(),K.return();O=V.replacementEndpoint;(D=_.b(O,_.QX))?(V.sequenceContinuation&&(D.sequenceParams=V.sequenceContinuation),z=_.tW().resolve(_.Ts),Q=D.sequenceParams,WQd(z,O)&&delete D.sequenceParams,J=wI(S,O,p,U,Y,L,function(){return!1}),J.then(function(G){return _.T(function(X){if(X.nextAddress==1)return Ott(z,{reelWatchEndpoint:{sequenceParams:Q}},G),_.k(X,0,2);
I.resolve(G);_.OV(X)})})):I.reject();
_.OV(K)})};_.kQl=function(S){if(S.validatedFragments_.length==0)return null;if(!S.mergedPrefetchedData_){for(var p=[],U=_.d(S.validatedFragments_),Y=U.next();!Y.done;Y=U.next()){Y=_.d(S.fragmentConfiguration_[Y.value].graftedKeys);for(var L=Y.next();!L.done;L=Y.next())(L=S.prefetchedData_[L.value].trackingParams)&&p.push(L)}S.mergedPrefetchedData_={};Object.assign(S.mergedPrefetchedData_,S.prefetchedData_,{clientSideGrafts:p})}return S.mergedPrefetchedData_};var HtQ;_.k2=function(){this.prefetchCache_=new Map;this.pendingPrefetchJob_=null};
HtQ=function(S,p,U){if(_.MNG(p))return S.prefetchCache_.get(_.ImG(p,U))};_.Hl=new _.$g("NAVIGATION_TOKEN");var DfE=function(S){var p=this;var U=U===void 0?jnN():U;var Y=Y===void 0?_.tW().resolve(_.Hl):Y;this.onePickCommand=S;this.JSC$11105_playlistNetworkManager=U;this.navigationManager=Y;this.videoPickerBuilder=_.Kge("yt-addtoplaylist");_.EYd(gsE(uMw(ewc(this.videoPickerBuilder.setTitle(S.modalTitle).setSize(1E3).addView(a1Q()).addView(l1m())).addView("youtube"),S.selectButtonLabel)),function(L){p.handleAction(L)})};
DfE.prototype.show=function(){this.videoPickerBuilder.build().setVisible(!0)};
DfE.prototype.handleAction=function(S){var p=this;if(S&&this.onePickCommand.listId&&S.action==="picked"&&S.docs){var U=[];S.docs.forEach(function(Y){U.push({addedVideoId:Y.id,action:"ACTION_ADD_VIDEO"})});
this.JSC$11105_playlistNetworkManager.updatePlaylist(this.onePickCommand.listId,U).then(function(){_.y("playlist_add_video_hard_reload_killswitch")?p.navigationManager.reload():zbm(p.navigationManager)})}};var Qme=function(){if(this.constructor===Qme)throw new TypeError("Wf");};
_.M=Qme.prototype;_.M.dispose=function(){};
_.M.disconnect=function(){};
_.M.reconnect=function(){};
_.M.observe=function(S,p,U){return{element:S,option:U}};
_.M.unobserveByKey=function(){};var rtw=function(S,p){p=p===void 0?0:p;Qme.call(this);this.viewroot=S;this.defaultPrescanHeight=p;this.isConnected=!0;this.pauseObservingUntilReconnect=!1;this.observer=new IntersectionObserver(this.handleObserveEvent.bind(this),S?{root:S,rootMargin:"-0.1px"}:{rootMargin:"-0.1px"});this.prescanObservers=new Map;this.handlers=new Map};
_.r(rtw,Qme);_.M=rtw.prototype;_.M.dispose=function(){this.disconnect();this.handlers.clear()};
_.M.disconnect=function(S){this.isConnected=!1;this.pauseObservingUntilReconnect=S===void 0?!1:S;this.observer.disconnect();S=_.d(this.prescanObservers.values());for(var p=S.next();!p.done;p=S.next())p.value.disconnect()};
_.M.reconnect=function(){if(!this.isConnected){this.isConnected=!0;this.pauseObservingUntilReconnect=!1;for(var S=_.d(this.handlers),p=S.next();!p.done;p=S.next()){var U=_.d(p.value);p=U.next().value;var Y=U.next().value;U=!1;Y=_.d(Y.keys());for(var L=Y.next();!L.done;L=Y.next())if((L=L.value)&&L.state==="prescan"){U=!0;break}U&&nPQ(this,p).observe(p);this.observer.observe(p)}}};
_.M.handleObserveEvent=function(S){S=_.d(S);for(var p=S.next();!p.done;p=S.next()){p=p.value;var U=this.handlers.get(p.target);if(U){var Y=p.isIntersecting;U=_.d(U);for(var L=U.next();!L.done;L=U.next()){var I=_.d(L.value);L=I.next().value;I=I.next().value;L&&(L.state==="visible"&&Y||L.state==="hidden"&&!Y)&&(I(p.target,L.state),L.calledOnce&&this.unobserveByKey({element:p.target,option:L}))}}}};
_.M.handlePrescanEvent=function(S){S=_.d(S);for(var p=S.next();!p.done;p=S.next()){p=p.value;var U=this.handlers.get(p.target);if(U&&p.isIntersecting){U=_.d(U);for(var Y=U.next();!Y.done;Y=U.next()){var L=_.d(Y.value);Y=L.next().value;L=L.next().value;Y&&Y.state==="prescan"&&(L(p.target,Y.state),Y.calledOnce&&this.unobserveByKey({element:p.target,option:Y}))}}}};
_.M.observe=function(S,p,U){var Y=(Y=this.handlers.get(S))&&Y.has(U)?{element:S,option:U}:void 0;if(Y)return Y;Y={element:S,option:U};this.handlers.has(S)||this.handlers.set(S,new Map);var L=this.handlers.get(S);L&&!L.has(U)&&L.set(U,p);this.pauseObservingUntilReconnect||(U.state==="prescan"&&nPQ(this,S).observe(S),this.observer.observe(S));return Y};
_.M.unobserveByKey=function(S){var p=this.handlers.get(S.element);if(p&&p.has(S.option)){p.delete(S.option);if(S&&S.option.state==="prescan")for(var U=_.d(this.prescanObservers.values()),Y=U.next();!Y.done;Y=U.next())Y.value.unobserve(S.element);p.size===0&&(this.handlers.delete(S.element),this.observer.unobserve(S.element))}};
var nPQ=function(S,p){var U=S.defaultPrescanHeight;p.hasAttribute("prescan-height")&&(p=Number(p.getAttribute("prescan-height")),isNaN(p)||(U=p));if(S.prescanObservers.has(U))return S.prescanObservers.get(U);p="-0.1px -0.1px "+U+"px -0.1px";p=new IntersectionObserver(S.handlePrescanEvent.bind(S),S.viewroot?{root:S.viewroot,rootMargin:p}:{rootMargin:p});S.prescanObservers.set(U,p);return p};var JQd=["browse-video-menu-button","unified-verified-badge","topbar-guide-menu"],yQd=function(){var S,p=this;this.JSC$11122_actionRouter=S=S===void 0?_.xv.getInstance():S;this.targetMap=new Map;this.targetedElements=new WeakMap;this.triggeredTargets=new Set;this.TEST_ONLY={getVisibilityObserver:function(){return p.visibilityObserver},
getVisibilityObservedElementHandlerKeys:function(){return p.visibilityObservedElementHandlerKeys}}},KQm,jmI,hbH;
yQd.prototype.initVisibilityObserver=function(){!this.visibilityObserver&&_.y("kevlar_use_vimio_behavior")&&_.g7("INNERTUBE_CLIENT_NAME")!=="WEB_REMIX"&&(this.visibilityObserver=Gbe())};
yQd.prototype.dispose=function(){this.visibilityMonitor&&_.W3(this.visibilityMonitor,"yt-visibility-monitor-refreshed",this.handleVisibilityRefreshed,!1,this);this.visibilityObserver&&this.visibilityObserver.dispose()};
yQd.prototype.handleVisibilityRefreshed=function(){for(var S=_.d(this.targetMap.entries()),p=S.next();!p.done;p=S.next()){var U=_.d(p.value);p=U.next().value;U=U.next().value;_.btE(this,p,U)}};
_.GQj=function(S,p,U){jmI(S,U);var Y=_.rQQ(S,p);Y.element=U;S.targetedElements.set(U,p);_.btE(S,p,Y)};
jmI=function(S,p){var U=S.targetedElements.get(p);if(U){var Y=S.targetMap.get(U);Y&&(delete Y.element,S.targetMap.set(U,Y));S.targetedElements.delete(p);S.visibilityObserver&&S.visibilityObservedElementHandlerKeys&&(U=S.visibilityObservedElementHandlerKeys.get(p))&&(S.visibilityObserver.unobserveByKey(U),S.visibilityObservedElementHandlerKeys.delete(p))}};
_.btE=function(S,p,U){var Y=U.action,L=U.element;L&&Y&&(JQd.includes(p)||_.g7("INNERTUBE_CLIENT_NAME")==="WEB_REMIX"||S.visibilityMonitor&&S.visibilityMonitor.isNodeVisible(L)?hbH(S,p,U):S.visibilityObserver&&(S.visibilityObservedElementHandlerKeys||(S.visibilityObservedElementHandlerKeys=new WeakMap),Y=S.visibilityObserver.observe(L,function(){hbH(S,p,U);S.visibilityObservedElementHandlerKeys.delete(L)},{calledOnce:!0,
state:"visible"}),S.visibilityObservedElementHandlerKeys.set(L,Y)))};
hbH=function(S,p,U){var Y=U.action;(U=U.element)&&Y&&(_.Rq(S.JSC$11122_actionRouter,[Y],U),S.targetMap.delete(p),S.targetedElements.delete(U),S.triggeredTargets.add(p))};
_.rQQ=function(S,p){var U=S.targetMap.get(p);U||(U={},S.targetMap.set(p,U));return U};
_.Dq=function(){KQm||(KQm=new yQd);return KQm};var Rbt=document.createElement("div");Rbt.style.touchAction="pan-down";var hZN=Rbt.style.touchAction==="pan-down";var FQj,XhE;FQj=function(){this.hammerFn=XTm();this.JSC$11130_screenManager=_.HX();this.lastPinchTime=NaN;this.nodeManagerMapping=new Map;this.ve=_.bZ(83615);_.U8(this.JSC$11130_screenManager,this.ve);RZE()};
_.zs=function(){XhE||(XhE=new FQj);return XhE};
FQj.prototype.registerTouchEvents=function(S,p,U){var Y=_.jO.apply(3,arguments),L=this.hammerFn(S,{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}]]});U&&L.set({touchAction:U});this.nodeManagerMapping.set(S,L);var I=
FgG(p);Y=_.d(Y);for(var V=Y.next();!V.done;V=Y.next()){V=V.value;if(V.includes("swipe")||V.includes("pinch")||V.includes("pan"))V.includes("swipe")?L.get("swipe").set({enable:!0,direction:I,velocity:.2}):V.includes("pinch")?L.get("pinch").set({enable:!0}):V.includes("pan")&&(L.get("pan").set({enable:!0,direction:I}),L.get("swipe").set({enable:!0,direction:I,velocity:.2}),L.get("swipe").recognizeWith("pan"));PSm(this,S,L,V)}};
var PSm=function(S,p,U,Y){U.on(Y,function(L){if(Y.includes("pinch"))S.lastPinchTime=Date.now();else if(Y.includes("swipe")&&Date.now()-S.lastPinchTime<400)return;L.pointerType!=="mouse"&&(L=Y==="doubletap"?{coordinates:L.center}:Y.includes("pan")?L:Y.includes("swipe")?{target:L.target}:{},p.dispatchEvent(new CustomEvent(Y,{bubbles:!0,composed:!0,detail:L})))})};
FQj.prototype.unregisterTouchEvents=function(S){var p=_.jO.apply(1,arguments),U=this.nodeManagerMapping.get(S);if(U){p=_.d(p);for(var Y=p.next();!Y.done;Y=p.next())U.off(Y.value);this.nodeManagerMapping.delete(S);S.style.touchAction="unset"}};var Ztw=window.matchMedia&&window.matchMedia("(any-pointer: coarse)").matches;var XVw=null;var smt=function(){this.networkEvents=[];this.index=Math.floor(Math.random()*1E5)},iYk=function(){smt.instance||(smt.instance=new smt);
return smt.instance},NWE=function(S){var p=S.networkEvents;
S.networkEvents=[];return _.y("enable_network_monitoring")?p:[]};var ebm;ebm={};_.gPt=qT("yt-serviceworker-metadata",{objectStores:(ebm.auth={addedAtVersion:1},ebm["resource-manifest-assets"]={addedAtVersion:2},ebm),shared:!0,upgrade:function(S,p){p(1)&&lg(S,"resource-manifest-assets");p(2)&&lg(S,"auth")},
version:2});var utR=self.location.origin+"/";wVk([/\.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\//]);wVk([/purge_shell=1/]);var uAc=void 0;uAc=uAc===void 0?[]:uAc;for(var whQ=[],lbE=_.d(nUl),abE=lbE.next();!abE.done;abE=lbE.next())whQ.push({key:abE.value});for(var fbl=_.d(uAc),CSH=fbl.next();!CSH.done;CSH=fbl.next())whQ.push(CSH.value);var xfE,X3=_.UX==null?void 0:(xfE=_.UX.performance)==null?void 0:xfE.memory,fme=!1,BWw={},EKu={},PB={},ZG=navigator;var Qa=function(S){this.JSC$11174_expiringStorage=new bi(S)};
Qa.prototype.set=function(S,p,U){U=U!==void 0?Date.now()+U:void 0;this.JSC$11174_expiringStorage.set(S,p,U)};
Qa.prototype.get=function(S){return this.JSC$11174_expiringStorage.get(S)};
Qa.prototype.remove=function(S){this.JSC$11174_expiringStorage.remove(S)};var Ysd=_.x1(["https://www.youtube.com/",""]),LxG=_.x1(["https://studio.youtube.com/",""]),TrX="IDENTITY_STICKINESS_INITIAL_STATE_ENUM_UNKNOWN",Ihq=null,Dbw;var EPP=_.x1(["https://www.youtube.com/iframe_api"]),n$=function(){this.playerResolver_=_.ay();this.playerPromise_=this.playerResolver_.promise;this.playerVars_=null;this.playbackEndedCallback_=_.TX;this.playbackDurationSeconds_=0},mfE=function(S){var p=function(){return window.YT&&typeof window.YT.ready==="function"};
if(p())return _.Mw(window.YT);var U=_.ay(),Y=_.JY("SCRIPT");Y.onload=Y.onreadystatechange=function(){Y.readyState&&Y.readyState!="loaded"&&Y.readyState!="complete"||(Y.onload=_.TX,Y.onreadystatechange=_.TX,Y.onerror=_.TX,p()?U.resolve(window.YT):U.reject(new _.y7("Failed to load the iframe player library","script.onload",Y.readyState,typeof window.YT,window.YT?typeof window.YT.ready:"YT.ready() missing",window.yt?typeof window.yt.ready:"yt.ready() missing")))};
Y.onerror=function(L){Y.onload=_.TX;Y.onreadystatechange=_.TX;Y.onerror=_.TX;U.reject(new _.y7("Failed to load the iframe player library","script.onerror",L&&L.target&&L.target.src))};
_.fh(Y,_.UF(EPP));S.insertBefore(Y,S.firstChild);return U.promise},oPH=function(S,p,U){var Y,L;
_.T(function(I){switch(I.nextAddress){case 1:return S.playbackEndedCallback_=U,_.M2(I,2),_.k(I,mfE(p.parentElement||null),4);case 4:Y=I.yieldResult;_.CA(I,3);break;case 2:return L=_.W4(I),L instanceof _.y7&&L.args&&L.args[0]=="script.onerror"?_.eP(L):_.ZP(L),I.return();case 3:Y.ready(function(){return new Y.Player(p,{playerVars:{controls:0,enablejsapi:1,iv_load_policy:3,modestbranding:1,mute:1,rel:0,showinfo:0},events:{onReady:S.onPlayerReady_.bind(S),onStateChange:S.onPlayerStateChange_.bind(S),
onCueRangeExit:S.onCueRangeExit_.bind(S)}})}),_.OV(I)}})};
_.M=n$.prototype;_.M.getPlayerPromise=function(){return this.playerPromise_};
_.M.onPlayerReady_=function(S){this.playerResolver_.resolve(S.target)};
_.M.onPlayerStateChange_=function(S){if(S.data==YT.PlayerState.PLAYING){S=S.target;var p=S.getCurrentTime();S.addCueRange("playback",p,p+this.playbackDurationSeconds_)}};
_.M.onCueRangeExit_=function(S){S.data=="playback"&&(S.target.stopVideo(),this.playbackEndedCallback_())};
_.M.stopVideo=function(){this.playerPromise_.then(function(S){S.stopVideo()})};
var vPH=function(S){S.playerVars_&&S.playerPromise_.then(function(p){typeof p.cueVideoByPlayerVars!="function"?_.eP(new _.y7("vmh: player API not ready","cueVideoByPlayerVars",typeof p.cueVideoByPlayerVars)):p.cueVideoByPlayerVars(S.playerVars_)})};
n$.prototype.playVideo=function(){var S=this;this.playerVars_&&this.playerPromise_.then(function(p){typeof p.loadVideoByPlayerVars!="function"?(p=new _.y7("vmh: player API not ready","loadVideoByPlayerVars",typeof p.loadVideoByPlayerVars),_.ZP(p)):p.loadVideoByPlayerVars(S.playerVars_)})};
var $fq=function(S,p,U,Y,L){p&&(U===void 0&&(U=0),Y===void 0&&(Y=0),S.playbackDurationSeconds_=Y/1E3,S.playerVars_={adformat:"17_8",videoId:p,suggestedQuality:"hd720",startSeconds:U/1E3,player_params:L})};
n$.prototype.mute=function(){this.playerPromise_.then(function(S){S.mute()})};
n$.prototype.unMute=function(){this.playerPromise_.then(function(S){S.unMute()})};var itt=function(S,p){var U=gn();S||(S="unknown");p||(p="unknown");S="MAIN_APP_WEB_PAGE_TYPE_"+S.toUpperCase();S in WfE||(S="MAIN_APP_WEB_PAGE_TYPE_UNKNOWN");p="MAIN_APP_WEB_REQUEST_TYPE_"+p.toUpperCase();p in OWc||(p="MAIN_APP_WEB_REQUEST_TYPE_UNKNOWN");_.Vj(U,{mainAppWeb:{pageType:S,requestType:p,isShellLoad:_.ub("IS_SHELL_LOAD",!1)}})},Naj={start:function(){_.Vj(gxr(),{mainAppWeb:_.aS()})},
success:function(){_.TU(gxr(),"SUCCESS")},
failure:function(){_.TU(gxr(),"FAILURE")},
cancelled:function(){_.TU(gxr(),"CANCELLED")}};var Bat,qLl,jkE;Bat=_.x1(["/sw.js"]);qLl=_.x1(["/sw.js?0"]);_.AQq=_.UF(Bat);jkE=_.UF(qLl);var tHI=function(){var S=Error.apply(this,arguments);this.message=S.message;"stack"in S&&(this.stack=S.stack)};
_.r(tHI,Error);_.xM.prototype.load=function(S){this.megabloxUrl_=_.g7("YPC_MB_URL");_.uL(this.megabloxUrl_,(0,_.RW)(function(){S&&S()},this))};
_.Smd=function(S,p,U,Y,L,I,V,W,O,D,z){_.GWG(O);S.load((0,_.RW)(function(){try{var Q=I?I:_.g7("HL"),J=_.g7("SESSION_INDEX");_.k9e("client",function(){X4w("59",{helpCenterPath:"/youtube",locale:Q,window:window}).JSC$7981_loadChatSupport({authuser:String(J)})})}catch(K){throw fH(10,z,"TRANSACTION_ERROR_TYPE_LOAD_FAILURE","GAPI_LOAD_ERROR"),L&&L(K),_.ZP(K),K;
}cQI(this,p,U,Y,L,I,V,W,O,D,z)},S))};
_.xM.prototype.openFixFlowDialog=function(S,p,U,Y){this.load((0,_.RW)(function(){try{Svw(this,_.ad("payments.business.integration")).forWidget().fixInstrument().withEncryptedParameters(S).withIntegratorCallback(p).load(U,Y)}catch(L){throw _.ZP(L),L;}},this))};
var Svw=function(S,p,U,Y){var L=p.mashupMode.popup("buyFlowDivId").usingDraggableDialog().usingPreferredWidth(600);_.y("enable_window_constrained_buy_flow_dialog")&&(L=L.usingPopupStyle(_.ad("payments.business.integration").PopupStyle.WINDOW_CONSTRAINED));Y&&(L=L.usingCloseCallback(Y));p.bootstrap.fromPaymentsUrl(S.megabloxUrl_);S=p.bootstrap.asMashupMode(L);U=U?U:_.g7("HL");S.usingGaiaIndex(_.g7("SESSION_INDEX")).usingLocale(U).usingDefaultActivityStatusChangeHandler().usingBaseZIndex(2E9);_.y("enable_google_payments_buyflow_material2_style_web")?
S.usingStyle(":m2;pc=#444;ac=#065fd4"):S.usingStyle(":md;pc=#444;ac=#065fd4");return S},cQI=function(S,p,U,Y,L,I,V,W,O,D,z){try{var Q=_.ad("payments.business.integration");
if(!Q)throw new tHI("payments.business.integration is undefined");var J=Q.standaloneContextAuthId.forUserId(),K=W;_.y("enable_setting_app_inert_when_buy_flow_opens")&&(K=W?function(){RWN(!1);W()}:function(){RWN(!1)});
var G=Svw(S,Q,I,K);V&&G.usingServerAnalyticsEventHandler(V);var X=G.inStandaloneContext(J).buyFlow(function(Z){if(Z&&(!Z.integratorData||Z.integratorData===""||Z.error))if(Z.error!=null)if(String(Z.error)==="-1")_.hWG(O);else{var l=String(Z.error)==="132"?"TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_LEGAL_ADDRESS_RESTRICTION_VIOLATION":"TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_COMPLETE_FAILURE";fH(10,z,l,Z.debugCode);_.CH(l,O,Z.debugCode);l=new _.y7("PAYMENT_ERROR_MESSAGE::"+Z.userVisibleErrorMessage,"PAYMENT_ERROR_DETAILS::"+
Z.internalErrorDetails);_.ZP(l)}else fH(10,z,"TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_COMPLETE_EMPTY","EMPTY_INTEGRATOR_DATA"),_.CH("TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_COMPLETE_EMPTY",O,"EMPTY_INTEGRATOR_DATA"),_.ZP(Error("ag"));U&&(RWN(!1),U(Z))}).withEncryptedParameters(p);
D&&X.withClientParameters($lw(_.M_X(D)));X.load(function(){fH(24,z);_.Pd("ttc",void 0,"commerce_transaction");p1G("commerce_transaction");Y&&(RWN(!0),Y())},function(Z){if(Z==null?0:Z.debugCode)var l=Z==null?void 0:Z.debugCode;
else if(!Z||(Z==null?0:Z.debugCode))l="EMPTY_LOAD_FAILURE_ERROR",_.ZP(Error(l));else{l="EMPTY_LOAD_FAILURE_DEBUG_CODE";var a=new _.y7("LOAD_FAILURE:"+Z.message," DEBUG_CODE:"+l);_.ZP(a)}fH(10,z,"TRANSACTION_ERROR_TYPE_LOAD_FAILURE",l);_.CH("TRANSACTION_ERROR_TYPE_LOAD_FAILURE",O,l);_.ZP(Z);L&&L(Z)})}catch(Z){throw Z instanceof tHI&&(fH(10,z,"TRANSACTION_ERROR_TYPE_LOAD_FAILURE","ERROR_BEFORE_BUY_FLOW_LOAD"),L&&L(Z)),_.ZP(Z),Z;
}};var pcm;pcm=/^(?:https:)?\/\/[0-9a-z-.]+\.(google|youtube)\.com\//;_.ATk=function(S,p){p=p===void 0?!1:p;S=pcm.test(S)?_.dc(S):null;!p&&window.payments||!S?(S=_.ay(),p=S.promise,S.resolve()):p=_.ro(S,{attributes:{"data-payments-main":"",id:"payment-lib"}});return p};var UnI;UnI=_.x1(["//www.googletagmanager.com/gtm.js?id=",""]);_.Jj=function(S,p){_.NF(document,"gtm")||(window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"user_consent",country_code:p}),window.dataLayer.push({"gtm.start":(new Date).getTime(),event:"gtm.js",geo:_.g7("GL")}),p=_.JY("SCRIPT"),p.async=!0,_.fh(p,_.UF(UnI,S)),p.id="gtm",S=document.getElementsByTagName("script"),S.length==0?document.head.appendChild(p):(S=S[0],S.parentNode.insertBefore(p,S)))};
_.ya=function(S){if(S=JSON.parse(S))window.dataLayer=window.dataLayer||[],window.dataLayer.push(S)};var Yvc,L0q;Yvc=_.x1(["https://clients2.google.com/gr/gr_sync.js"]);_.B2w=function(){};
_.B2w.prototype.init=function(){if(L0q()){var S=_.ay();S.resolve();return S.promise}return _.ro(_.UF(Yvc)).then(function(){if(!L0q())throw Error("bg");},function(){throw Error("cg");
})};
_.q4N=function(){if(!L0q())return"";var S=window.google.gr;S.init({async:{schedule:"sync"},merchantId:"youtube"});S.start();S=S.finish();return S==null?"":S};
L0q=function(){return window.google!=null&&window.google.gr!=null};window.PolymerFakeBaseClassWithoutHtml=function(){};
_.w=function(){return PolymerFakeBaseClassWithoutHtml.apply(this,arguments)||this};
_.r(_.w,PolymerFakeBaseClassWithoutHtml);_.HT=function(){return PolymerFakeBaseClassWithoutHtml.apply(this,arguments)||this};
_.r(_.HT,PolymerFakeBaseClassWithoutHtml);var Fxw=window.ShadyDOM;var VWe,IkR,WBw,O7w,H7w,DKw,K$,AB;VWe=_.y("enable_shadydom_free_scoped_query_methods");IkR=_.y("enable_shadydom_free_scoped_node_methods");WBw=_.y("enable_shadydom_free_scoped_readonly_properties_batch_one");O7w=_.y("enable_shadydom_free_parent_node");H7w=_.y("enable_shadydom_free_children");DKw=_.y("enable_shadydom_free_last_child");K$=window.ShadyDOM;_.L3=K$&&K$.noPatch&&K$.wrap?K$.wrap:K$?function(S){return K$.patch(S)}:function(S){return S};
AB=function(S){if(S instanceof ShadowRoot)this.host=(0,_.L3)(S.host),this.root=S;else if(S.$$){this.host=(0,_.L3)(S);var p;this.root=(p=S.root)!=null?p:this.host}else if(S.polymerController){this.host=(0,_.L3)(S);var U;this.root=(U=this.host.shadowRoot)!=null?U:this.host}else this.root=this.host=(0,_.L3)(S)};
dKG();Tsr();zIG();QrE();kFX();var MeQ={querySelector:function(S,p){p=PcN(p,vB(S));S=_.$M(S);return iE(S).prototype.querySelector.call(S,p)},
querySelectorAll:function(S,p){p=PcN(p,vB(S));S=_.$M(S);return iE(S).prototype.querySelectorAll.call(S,p)}},I6w={appendChild:function(S,p){var U=vB(S),Y=_.oS(p);
return _.LBw(_.$M(S),U?_.BB(p,U,Y):p)},
cloneNode:function(S,p){var U=_.oS(S);S=_.$M(S);p=iE(S).prototype.cloneNode.call(S,p);return U?qI(p,U):p},
contains:function(S,p){var U=vB(S),Y=_.oS(p);return U!==Y?!1:MWX(S,p)},
insertBefore:function(S,p,U){var Y=vB(S),L=_.oS(p);S=_.$M(S);p=Y?_.BB(p,Y,L):p;return iE(S).prototype.insertBefore.call(S,p,U)},
removeChild:function(S,p){var U=vB(S);S=_.$M(S);p=U?qI(p,U):p;return iE(S).prototype.removeChild.call(S,p)},
replaceChild:function(S,p,U){var Y=vB(S),L=_.oS(p);p=Y?_.BB(p,Y,L):L?qI(p,L):p;U=Y?qI(U,Y):U;S=_.$M(S);return iE(S).prototype.replaceChild.call(S,p,U)},
getRootNode:function(S,p){p=p===void 0?{composed:!0}:p;var U;if(((U=p)!=null?U:{}).composed)S=xbw(S);else{p=S;for(S=skX(S);S;)p=S,S=gtw(S);S=p}return S}},JOX=WBw?{firstChild:tjw,
nextSibling:BrE,previousSibling:A6w,firstElementChild:c6k,lastElementChild:pWd,nextElementSibling:NrE,previousElementSibling:qsw,childNodes:UKe}:{};O7w&&(JOX.parentNode=iju);H7w&&(JOX.children=YQw);DKw&&(JOX.lastChild=SQd);VWe&&nBu(MeQ);IkR&&nBu(I6w);yOk();var KBd=function(S){this.node=S instanceof ShadowRoot?S.host:S};
b7G();jrR();var hIe=new WeakMap;var FBw=Symbol("ud");var eIr=new Set(["tap","track","down","up"]),gBN=_.y("pbcm_fi_query_decorators");var bj=function(){return _.HT.apply(this,arguments)||this};
_.r(bj,_.HT);_.M=bj.prototype;_.M.getState=function(){return this.store.getState()};
_.M.dispatch=function(S){this.store.dispatch(S)};
_.M.beforeRegister=function(){if(this&&typeof this==="object"){var S;var p=!!this.useSignals||!((S=this.polymerController)==null||!S.useSignals)}else p=!1;if(!p&&this.properties)for(p=_.d(Object.keys(this.properties)),S=p.next();!S.done;S=p.next()){var U=S.value;S=this.properties[U];if(S.selector){if(S.computed)throw Error("ig");U=["reduxPropertiesRecomputeTrigger",'"'+U+'"'].concat(_.jo(S.selectorArgs||[])).join(",");S.computed="recomputeReduxSelector("+U+")"}}};
_.M.attached=function(){var S=this;this.reduxPropertiesRecomputeTrigger=0;this.activeStoreSubscription||(this.activeStoreSubscription=this.store.subscribe(function(){S.reduxPropertiesRecomputeTrigger++}));
_.y("redux_disable_update_on_attached_killswitch")&&this.reduxPropertiesRecomputeTrigger++};
_.M.detached=function(){this.activeStoreSubscription&&(this.activeStoreSubscription(),this.activeStoreSubscription=void 0)};
_.M.recomputeReduxSelector=function(S,p){var U=_.jO.apply(2,arguments),Y=this.properties[p].selector;if(!Y)throw Error("gg`"+p);return Y.apply(null,[this.store.getState()].concat(_.jo(U)))};
_.M.select=function(S){var p=_.jO.apply(1,arguments);this.reduxPropertiesRecomputeTrigger;return S.apply(null,[this.store.getState()].concat(_.jo(p)))};
_.$u.Object.defineProperties(bj.prototype,{store:{configurable:!0,enumerable:!0,get:function(){throw Error("hg");}}});
bj.prototype.recomputeReduxSelector=bj.prototype.recomputeReduxSelector;_.x([_.g(),_.E("design:type",Number)],bj.prototype,"reduxPropertiesRecomputeTrigger",void 0);bj=_.x([_.Dl()],bj);var jL=[],akN={},Rs=function(){return N0.apply(this,arguments)||this};
_.r(Rs,N0);Rs.prototype._addPropertyEffect=function(S,p,U){if(p==="__observeEffects"&&U){var Y,L=(Y=U.info.method)!=null?Y:U.info.methodName;if(L){var I=this[L];this[L]=function(){jL.push(L);try{I==null||I.apply(this,arguments)}finally{jL.pop()}}}}_.DF._addPropertyEffect.apply(this,[S,
p,U])};
Rs.prototype._setPendingProperty=function(S,p,U){if(jL.length){var Y=jL[jL.length-1],L;(L=akN[this.is])!=null&&L.has(Y)||(fkX(this.is,Y),_.RV("polymerPropertyChangedInObserver",{componentName:this.is,observerName:Y}))}return _.DF._setPendingProperty.apply(this,[S,p,U])};
Rs=_.x([JxG()],Rs);var CAG=new Set(["allowedProps","_definePropertyAccessor","_setPendingProperty","_setUnmanagedPropertyToNode"]),EBu,n3={};_.y("polymer_property_access_logging_debug")&&(window.PROPERTY_ACCESS_MAP=n3);var K3=function(){return _.HT.apply(this,arguments)||this};
_.r(K3,_.HT);K3.prototype._setUnmanagedPropertyToNode=function(S,p,U){S.loggingStatus&&(S.loggingStatus.isDeclarativeExternal=!0);if(U!==S[p]||typeof U==="object")S[p]=U;S.is&&S.polymerController&&S.polymerController!==S&&JF(S.is,p,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE");S.loggingStatus&&(S.loggingStatus.isDeclarativeExternal=!1)};
K3=_.x([_.Dl()],K3);xKw()&&(gV.prototype._setUnmanagedPropertyToNode=(new K3)._setUnmanagedPropertyToNode);_.Ufk={YtHostElementBehavior:[{get hostElement(){return this},get polymerController(){return this},set hostElement(S){},set polymerController(S){}}]};var hF=function(){var S=N0.apply(this,arguments)||this;S.json=function(){};
return S};
_.r(hF,N0);hF.prototype.equals=function(S,p){return S===p};
hF.prototype.isEmpty=function(S){return!S||_.Ae(S)&&S.length===0};
hF=_.x([JxG()],hF);var dnE=function(S){S=DAw(S);ZE.call(this,S)};
_.r(dnE,ZE);dnE.prototype.addProvider=function(S){S=S.key?S:DAw([S])[0];var p=this.keyIdToIndex.get(S.key.id);if(p){if(i7u(S,this.providers[p]))throw Error("jg`"+S.key.displayName);}else ZE.prototype.addProvider.call(this,S)};
var Vel=new dnE([]);var TSl=!1;var cOX={};TSl||(tWX(),TSl=!0);
cOX.InjectBehavior={initializeInjection:function(){var S=this.provide;try{if((S=S!=null?S:[])&&S.length>0)for(var p=DAw(S),U=_.d(p),Y=U.next();!Y.done;Y=U.next())Vel.addProvider(Y.value);var L=new Set;NsG(this.behaviors||[],L);p={};for(var I=_.d(L),V=I.next();!V.done;V=I.next()){var W=V.value;W.inject&&Object.assign(p,W.inject)}this.inject&&Object.assign(p,this.inject);for(var O=_.d(Object.keys(p)),D=O.next();!D.done;D=O.next()){var z=D.value,Q=p[z];try{this[z]=Vel.resolve(Q)}catch(J){throw J;}}}catch(J){throw Error(J.message);
}}};var phr;var YLw=/\bclass\b/.test(function(){}.toString()),Ibr=new Set("_noAccessors attached beforeRegister constructor created detached ready registered properties observers".split(" "));var W0d=function(S){this.wasDefined=!0;Array.isArray(S)||S instanceof Array?(this.JSC$11303_getImpl=S[0],this.JSC$11303_setImpl=S[1]):this.JSC$11303_getImpl=S};
_.M=W0d.prototype;_.M.getWithPath=function(S){return Tae(this.JSC$11303_getImpl(),S)};
_.M.setWithPath=function(S,p){var U=this;if(S.length)throw Error("kg");if(!this.JSC$11303_setImpl)throw Error("lg");Jy(function(){U.JSC$11303_setImpl(p)})};
_.M.notifyPath=function(){throw Error("mg");};
_.M.notifySplices=function(){throw Error("ng");};
_.M.getChangeRecordSignal=function(S,p){var U=this;if(S.length)throw Error("og");return function(){var Y=U.getWithPath(S);return{path:p!=null?p:"",base:Y,value:Y}}};
_.M.getSplicesSignal=function(){throw Error("pg");};
_.M.getPathMutationSignal=function(){throw Error("qg");};
_.M.pop=function(){throw Error("rg");};
_.M.push=function(){throw Error("sg");};
_.M.splice=function(){throw Error("tg");};
_.M.unshift=function(){throw Error("ug");};var rk=function(S){var p=this;this.observedPath={pathComponents:[],data:void 0,subPaths:{}};this.mutationIndex=0;Array.isArray(S)||S instanceof Array?(this.JSC$11308_getImpl=S[0],this.JSC$11308_setImpl=S[1]):this.JSC$11308_getImpl=S;this.wasDefined=!1;OI(function(){p.wasDefined=p.JSC$11308_getImpl()!==void 0})};
rk.prototype.getWithPath=function(S){return Tae(this.JSC$11308_getImpl(),S)};
rk.prototype.setWithPath=function(S,p){var U=this;if(S[S.length-1]!=="*"&&S[S.length-1]!=="splices"){if(S.length===0){if(!this.JSC$11308_setImpl)throw Error("vg");this.wasDefined||(this.wasDefined=p!==void 0);Jy(function(){U.JSC$11308_setImpl(p)})}else{for(var Y=OI(function(){return U.getWithPath([])}),L=0;L<S.length-1;L++){if(!Y)return;
Y=Y[S[L]]}L=S[S.length-1];Y&&(Y[L]=p);this.wasDefined||(this.wasDefined=S.length>1||p!==void 0)}Ogm(this,S,{pathComponents:S,value:p})}};
rk.prototype.notifyPath=function(S,p){S.length===0?p&&this.setWithPath(S,p.value):Ogm(this,S,{pathComponents:S,value:p==null?void 0:p.value,fallbackWhenUndefined:p==null?void 0:p.value})};
var Ogm=function(S,p,U,Y){if(S.setMutationSignal){var L=++S.mutationIndex,I=[S.observedPath],V=S.observedPath,W;p.length===0&&(W=V);for(var O=0;O<p.length;O++){var D=V.subPaths[p[O]];if(!D)break;I.push(D);V=D;O===p.length-1&&(W=D)}for(p=!1;I.length;)V=I.shift(),V.data={index:L,mutation:U,spliceMutationIndex:Y},p||(p=V===W),p&&I.push.apply(I,_.jo(Object.values(V.subPaths)));Jy(function(){S.setMutationSignal(L)})}};
rk.prototype.notifySplices=function(S,p){var U=this,Y=OI(function(){return U.getWithPath(S)}),L=[].concat(_.jo(S),["splices"]);
Ogm(this,L,{pathComponents:L,value:{indexSplices:p}});if(Y==null?0:Y.length)p=this.mutationIndex,L=[].concat(_.jo(S),["length"]),Ogm(this,L,{pathComponents:L,value:Y.length},p)};
var k3m=function(S,p,U,Y,L,I){S.notifySplices(U,[{index:Y,addedCount:L,removed:I,object:p,type:"splice"}])},Hgw=function(S,p){S=S.observedPath;
for(var U=0;U<p.length;U++){var Y=p[U],L=S.subPaths[Y];L||(L={pathComponents:p.slice(0,U+1),subPaths:{}},S.subPaths[Y]=L);S=L}},zPQ=function(S,p,U){Hgw(S,p);
if(!S.getMutationSignal){var Y=_.d(_.kj(S.mutationIndex,void 0,"HavCgf"));S.getMutationSignal=Y.next().value;S.setMutationSignal=Y.next().value}var L=S.getMutationSignal;return _.nS(function(){L();return U(Dne(S,p))},void 0,"BYaPo")};
rk.prototype.getChangeRecordSignal=function(S,p){var U=this,Y=this.mutationIndex,L;return zPQ(this,S,function(I){if(I&&I.index>Y){var V=I.mutation;Y=I.index;L=void 0}I=OI(function(){return U.getWithPath(S)});
if(V){var W=V.pathComponents[V.pathComponents.length-1],O=[].concat(_.jo(V.pathComponents));if(W==="splices"||W==="length")return{base:I,path:(p?[p].concat(_.jo(O)):O).join("."),value:V.value};var D=S.length>O.length?S:O,z;return{base:I!=null?I:V.fallbackWhenUndefined,path:(p?[p].concat(_.jo(D)):D).join("."),value:(z=OI(function(){return U.getWithPath(D)}))!=null?z:V.fallbackWhenUndefined}}L||(L={base:I,
path:(p?[p].concat(_.jo(S)):S).join("."),value:I});return L})};
rk.prototype.getSplicesSignal=function(S){var p=this.mutationIndex,U;return zPQ(this,S,function(Y){if(Y&&Y.index>p&&Y.spliceMutationIndex!==p){var L=Y.mutation;p=Y.index;U=void 0}return L&&L.pathComponents[L.pathComponents.length-1]==="splices"?U=Y=L.value:U})};
rk.prototype.getPathMutationSignal=function(S){var p=this;Hgw(this,S);if(!this.getMutationSignal){var U=_.d(_.kj(this.mutationIndex,void 0,"yZelVe"));this.getMutationSignal=U.next().value;this.setMutationSignal=U.next().value}var Y=this.getMutationSignal,L=this.mutationIndex,I;return _.nS(function(){Y();var V=Dne(p,S);if(V&&V.index>L&&V.mutation&&WQw(V.mutation.pathComponents,S)){var W=V.mutation;L=V.index}if(!I||L!==I.index){var O,D;V=(D=OI(function(){return p.getWithPath(S)}))!=null?D:(O=W)==null?
void 0:O.fallbackWhenUndefined;
I={index:L,value:V}}return I},void 0,"Aumsyf")};
var Dne=function(S,p){S=S.observedPath;p=_.d(p);for(var U=p.next();!U.done;U=p.next())S=S.subPaths[U.value];return S.data};
rk.prototype.pop=function(S){var p=this,U=OI(function(){return p.getWithPath(S)});
if(!(U instanceof Array))throw Error("wg");var Y=U.length>0,L=U.pop();Y&&k3m(this,U,S,U.length,0,[L]);return L};
rk.prototype.push=function(S){var p=_.jO.apply(1,arguments),U=this,Y=OI(function(){return U.getWithPath(S)});
if(!(Y instanceof Array))throw Error("xg");var L=Y.length,I=Y.push.apply(Y,_.jo(p));p.length&&k3m(this,Y,S,L,p.length,[]);return I};
rk.prototype.splice=function(S,p,U){var Y=_.jO.apply(3,arguments),L=this,I=OI(function(){return L.getWithPath(S)});
if(!(I instanceof Array))throw Error("yg");p<0?p=I.length-Math.floor(-p):p&&(p=Math.floor(p));var V=I.splice.apply(I,[p,U].concat(_.jo(Y)));(Y.length||V.length)&&k3m(this,I,S,p,Y.length,V);return V};
rk.prototype.unshift=function(S){var p=_.jO.apply(1,arguments),U=this,Y=OI(function(){return U.getWithPath(S)});
if(!(Y instanceof Array))throw Error("zg");var L=Y.unshift.apply(Y,_.jo(p));p.length&&k3m(this,Y,S,0,p.length,[]);return L};var QRe=!0,nyl=!1,$nG=!1,Jut=!1,Gs=!1,yuq=0;Jut=!1;yuq=0;QRe=!0;Gs=nyl=$nG=!1;var hj=function(S,p,U){this.model=S;this.unknownSignalResolver=p;this.options=U;this.signalCache={};this.isDisposed=!1;this.childSignalProxies=[];p=_.d(yQw());S=p.next().value;p=p.next().value;this.owner=S;this.disposeImpl=p};
hj.prototype.dispose=function(){if(!this.isDisposed){for(var S=_.d(this.childSignalProxies),p=S.next();!p.done;p=S.next())p.value.dispose();this.disposeImpl();this.childSignalProxies=[];this.isDisposed=!0}};
var K0m=function(S,p){S=tY(S.owner);try{p()}finally{tY(S)}};
hj.prototype.effect=function(S){K0m(this,function(){_.Zg(S)})};
var bgt=function(S,p){S.options!=null||(S.options={});var U;(U=S.options).immutableProps!=null||(U.immutableProps=new Set);S.options.immutableProps.add(p)},vPw=function(S,p){p=""+p;
jRw(S,p);var U,Y;if((U=S.options)==null?0:(Y=U.immutableProps)==null?0:Y.has(p))return!0;var L;if((L=S.model.__signalCache)==null?0:L.has(p))U=S.model.__signalCache.get(p),Array.isArray(U)&&bgt(S,p);var I,V,W;return(W=(I=S.options)==null?void 0:(V=I.immutableProps)==null?void 0:V.has(p))!=null?W:!1},rut=function(S,p){var U;
S.unknownSignalResolver&&(U=S.unknownSignalResolver(p));var Y,L;((Y=S.options)==null?0:(L=Y.immutableProps)==null?0:L.has(p))?U!=null||(U=new W0d(_.kj(S.model[p],void 0,"bgwlkd"))):U!=null||(U=new rk(_.kj(S.model[p],void 0,"V1hou")));var I=S.model.hostElement;Object.defineProperty(S.model,p,{get:function(){oBN(I,p);return U.getWithPath([])},
set:function(V){yd(I,p);S.setWithPath([p],V)},
configurable:!0});return U},jRw=function(S,p){var U,Y,L;
((U=S.model.__signalCache)==null||!U.has(p))&&((Y=S.options)==null?0:(L=Y.externalSignalProps)==null?0:L.has(p))&&S.model[p]},Zl=function(S,p){p=""+p;
var U=S.signalCache[p];if(U!==void 0)return U;U=!1;jRw(S,p);var Y;if((Y=S.model.__signalCache)==null?0:Y.has(p))if(U=S.model.__signalCache.get(p),Array.isArray(U))U=!0,bgt(S,p);else return S.signalCache[p]=S.model.__signalCache.get(p).signal,S.signalCache[p];var L,I;Y=(I=(L=S.options)==null?void 0:L.reactivityMode)!=null?I:0;var V,W;if(!((V=S.options)==null?0:(W=V.reactiveProps)==null?0:W.has(p))&&!U&&Y===1)throw Error("Ag`"+p);L=U?G3P(S,p):rut(S,p);return S.signalCache[p]=L},G3P=function(S,p){var U=
Object.getOwnPropertyDescriptor(S.model.constructor.prototype,p),Y=function(){return S.model[p]};
return new W0d(U&&U.get&&!U.set?Y:[Y,function(L){S.model[p]=L}])};
hj.prototype.getWithPath=function(S){var p=_.d(S);S=p.next().value;p=Nd(p);oBN(this.model.hostElement,""+S);return Zl(this,S).getWithPath(p)};
hj.prototype.setWithPath=function(S,p){if(S.length){yd(this.model.hostElement,S.join("."));var U=_.d(S);S=U.next().value;U=Nd(U);Zl(this,S).setWithPath(U,p)}};
hj.prototype.getPathMutationSignal=function(S){var p=_.d(S);S=p.next().value;p=Nd(p);return Zl(this,S).getPathMutationSignal(p)};
hj.prototype.notifyPath=function(S,p){var U=_.d(S);S=U.next().value;U=Nd(U);Zl(this,S).notifyPath(U,p)};
var hPH=function(S,p){if(p.type==="literal")return function(){return{rootWasDefined:!0,value:p.value}};
var U=XB(p.path),Y=_.d(U),L=Y.next().value;Y=Nd(Y);var I,V;if(p.type==="path"&&(U.length===1||((I=S.options)==null?0:(V=I.immutableProps)==null?0:V.has(L))))return function(){var Q=S.getWithPath(U.slice(0,1)),J=Tae(Q,U.slice(1));Q=Q!==void 0;Gs&&(Q=Zl(S,U[0]).wasDefined);return{rootWasDefined:Q,value:J}};
var W=Zl(S,L);if(p.type==="path"){var O=W.getPathMutationSignal(Y);return function(){var Q=Gs?W.wasDefined:sI(S.owner,function(){return W.getWithPath([])})!==void 0;
var J,K=(J=O())==null?void 0:J.value;return{rootWasDefined:Q,value:K}}}if(p.type==="splices"){var D=W.getSplicesSignal(Y);
return function(){var Q=D();return{rootWasDefined:Gs?W.wasDefined:Q!==void 0,value:Q}}}var z=W.getChangeRecordSignal(Y,""+L);
return function(){var Q=z();return{rootWasDefined:Gs?W.wasDefined:Q!==void 0,value:Q}}},Qmd=function(S,p,U){var Y=U.map(function(W){return hPH(S,W)}),L=U.length===0,I=[],V=U.length!==1||U[0].type!=="path"?!1:!0;
S.effect(function(){for(var W=Y.length,O=[],D=!!I.length,z=0;z<W;z++){var Q=Y[z](),J=Q.rootWasDefined;Q=Q.value;L||(L=J);O[z]=Q;V&&(O[z+W]=D?I[z]:O[z],I[z]=Q)}L&&sI(S.owner,function(){return void p.apply(null,_.jo(O))})})},OtG=function(S,p,U,Y,L){var I=Zl(S,p);
L!==void 0&&I.setWithPath([],L);Qmd(S,function(){var V=_.jO.apply(0,arguments);yd(S.model.hostElement,p,!0);I.setWithPath([],U.apply(null,_.jo(V)))},Y)};
hj.prototype.arrayPush=function(S){var p=_.jO.apply(1,arguments),U=_.d(S),Y=U.next().value;U=Nd(U);Y=Zl(this,Y);return Y.push.apply(Y,[U].concat(_.jo(p)))};
hj.prototype.arraySplice=function(S,p,U){var Y=_.jO.apply(3,arguments),L=_.d(S),I=L.next().value;L=Nd(L);I=Zl(this,I);return I.splice.apply(I,[L,p,U].concat(_.jo(Y)))};
hj.prototype.arrayUnshift=function(S){var p=_.jO.apply(1,arguments),U=_.d(S),Y=U.next().value;U=Nd(U);Y=Zl(this,Y);return Y.unshift.apply(Y,[U].concat(_.jo(p)))};
hj.prototype.notifySplices=function(S,p){var U=_.d(S);S=U.next().value;U=Nd(U);Zl(this,S).notifySplices(U,p)};var hbw=/([^\s]+?)\(([\s\S]*)\)/,jmE=/\.([^.]+)$/,FQG=/\\,/g,KQR=/&comma;/g,btq=/\\(.)/g,Rbe=[],rQw={"*":"wildcard",splices:"splices"};var abq=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"),gPe=/[A-Z]/,RPq=["class","hidden","id","on-dom-change"],CSw=new Set([].concat(_.jo(RPq),
["if","notify-dom-change","restamp"])),xfq=new Set([].concat(_.jo(RPq),"as index-as initial-count items items-index-as notify-dom-change target-framerate strip-whitespace".split(" "))),EPu=new Set(["restamp"]);var CqE=new Set(["className","id"]);var ite=Symbol(),Svk=window;var VeX=window;var zPw=0,OgR=0,s2=[],Dnd=0,W0w=!1,Hgk=document.createTextNode("");(new window.MutationObserver(k3N)).observe(Hgk,{characterData:!0});var g9=new Map,ep=0,F0e=function(S){this.mappedHandleId=S},nyX=function(S,p,U,Y){this.mappedHandleId=S;
var L=this;this.mappedHandleId=S;this.callback=p;this.waitTime=U;this.schedulerPriority=Y;this.handleId=_.PA.addJob(function(){L.callback();g9.delete(L.mappedHandleId)},this.schedulerPriority||1,this.waitTime)};
_.r(nyX,F0e);nyX.prototype.cancel=function(){_.PA.cancelJob(this.handleId);g9.delete(this.mappedHandleId)};
var Jue=function(S,p){this.mappedHandleId=S;var U=this;this.mappedHandleId=S;this.callback=p;this.handleId=QRd(function(){U.callback();g9.delete(U.mappedHandleId)})};
_.r(Jue,F0e);Jue.prototype.cancel=function(){var S=this.handleId-OgR;S<0||s2.length<=S||(s2[S]=null);g9.delete(this.mappedHandleId)};var jRk=function(){};
jRk.prototype.cancel=function(){this.jobHandle!==void 0&&(yue(this.jobHandle),this.jobHandle=void 0)};
jRk.prototype.run=function(S,p,U){var Y=this;this.cancel();this.callback=S;this.jobHandle=_.uK(function(){S();Y.callback=void 0},p,U)};
jRk.prototype.flush=function(){this.callback&&this.jobHandle!==void 0&&(this.cancel(),this.callback())};
var K0N=new WeakMap;var Xce=Ew(function(S){for(var p=S,U=0;U<3;U++)p=Object.getPrototypeOf(p);delete p.prototype.connectedCallback;var Y=function(){return S.apply(this,arguments)||this};
_.r(Y,S);Y.prototype._attachDom=function(L){if(!L)return null;var I=(0,_.L3)(this.hostElement);I.attachShadow({mode:"open",shadyUpgradeFragment:L});I.shadowRoot.appendChild(L);return I.shadowRoot};
Y.prototype._takeAttributes=function(){for(var L=this.hostElement.attributes,I=0;I<L.length;I++){var V=L[I],W=void 0,O=void 0;(O=(W=this).__attributeReaction)==null||O.call(W,V.name,null,V.value)}};
Y.prototype._readyClients=function(){S.prototype._readyClients.call(this);this.root=this};
Y.prototype.connectedCallback=function(){window.ShadyCSS&&this._template&&window.ShadyCSS.styleElement(this.hostElement);S.prototype.connectedCallback.call(this)};
_.$u.Object.defineProperties(Y,{template:{configurable:!0,enumerable:!0,get:function(){return Y.prototype._template}}});
return Y}),PXl=Ew(function(S){var p=function(){return S.apply(this,arguments)||this};
_.r(p,S);p.prototype.created=function(){if(this.__notifyEffects)for(var U=_.d(Object.values(this.__notifyEffects)),Y=U.next();!Y.done;Y=U.next()){Y=_.d(Y.value);for(var L=Y.next();!L.done;L=Y.next())L.value.fn=RPe}if(this.__reflectEffects)for(U=_.d(Object.values(this.__reflectEffects)),Y=U.next();!Y.done;Y=U.next())for(Y=_.d(Y.value),L=Y.next();!L.done;L=Y.next())L.value.fn=F0d};
p.prototype._addEventListenerToNode=function(U,Y,L){U=lK(U);RH(U,Y,L)||S.prototype._addEventListenerToNode.call(this,U,Y,L)};
p.prototype._removeEventListenerFromNode=function(U,Y,L){U=lK(U);Fj(U,Y,L)||S.prototype._removeEventListenerFromNode.call(this,U,Y,L)};
p.prototype._propertiesChanged=function(U,Y,L){if(this.__dataToNotify&&this.__notifyEffects)for(var I=_.d(Object.keys(this.__dataToNotify)),V=I.next();!V.done;V=I.next()){V=V.value;var W=hPw(V);this.__notifyEffects[W]||delete this.__dataToNotify[V]}else this.__dataToNotify=null;S.prototype._propertiesChanged.call(this,U,Y,L)};
p.prototype.fire=function(U,Y,L){Y=Y===void 0?{}:Y;var I;return _.cv(lK((I=L==null?void 0:L.node)!=null?I:this),U,Y,L)};
p.prototype._ensureAttribute=function(U,Y){var L=lK(this);L.hasAttribute(U)||PT(L,Y,U)};
p.prototype.isLightDescendant=function(U){var Y=lK(this);return lK(Y)!==U&&_.tB(Y).contains(U)&&_.tB(Y).getRootNode()===_.tB(U).getRootNode()};
return p});
_.DE.ready=function(){var S;((S=this.hostElement)!=null?S:this).addEventListener("focus",this._boundFocusBlurHandler,!0);var p;((p=this.hostElement)!=null?p:this).addEventListener("blur",this._boundFocusBlurHandler,!0)};
_.ji._subscribeIronResize=function(S){var p;((p=S.hostElement)!=null?p:S).addEventListener("iron-resize",this._boundOnDescendantIronResize)};
_.ji._unsubscribeIronResize=function(S){var p;((p=S.hostElement)!=null?p:S).removeEventListener("iron-resize",this._boundOnDescendantIronResize)};var Zgd=[Array,Boolean,Date,Number,Object,String],f3=function(S,p,U,Y){this.polySiInfo=S;this.polySiParams=p;this.polySiContext=U;this.upgradeDisabled=this.isPolySiElementConnected=this.didCallReady=!1;this.mutablePropNames=new Set;this.reflecting=!1;Y||this instanceof HTMLElement&&(Y=this);if(!Y)throw Error("Hg");this.allowedProps=p.allowedProps;this.hostElement=Y;this.is=S.is;this.upgradeDisabled=!!p.legacyOptimizations&&this.hostElement.hasAttribute("disable-upgrade");S=new Set(p.reactiveSchemas.filter(function(L){return L.type!==
"observe"}).map(function(L){return L.propertyKey}));
this.signalProxy=new hj(this,void 0,{reactiveProps:S,reactivityMode:p.reactivityMode});this.__dataHasAccessor={};p=_.d(p.reactiveSchemas);for(S=p.next();!S.done;S=p.next())S=S.value,S.type==="signal"&&(this.__dataHasAccessor[S.propertyKey]=!0);this.upgradeDisabled||Zge(this)};
f3.prototype.getExtraMethodsToForward=function(){return[]};
var Zge=function(S){S.polySiContext.didRegister||(S.registered(),S.polySiContext.didRegister=!0);S.polySiContext.finalizedTemplate||(S.polySiContext.finalizedTemplate={},S.polySiParams.templateGetter&&(S.polySiContext.finalizedTemplate.processedTemplate=TSX(S.polySiParams.templateGetter,S.polySiParams.is)));sRQ(S);var p=S.hostElement;p.loggingStatus!=null||(p.loggingStatus={});p.loggingStatus.isInitializing=!0;OI(function(){return void S.created()});
p.loggingStatus.isInitializing=!1;S.isPolySiElementConnected&&ePt(S)},ePt=function(S){S.didCallReady||(OI(function(){return void S.ready()}),S.didCallReady=!0);
S.isAttached=!0;S.attached()};
_.M=f3.prototype;_.M.connectedCallback=function(){this.isPolySiElementConnected=!0;this.upgradeDisabled||ePt(this)};
_.M.disconnectedCallback=function(){this.isPolySiElementConnected=!1;this.upgradeDisabled||(this.isAttached=!1,this.detached())};
_.M.attributeChangedCallback=function(S,p,U){if(this.upgradeDisabled)S==="disable-upgrade"&&U===null&&(this.upgradeDisabled=!1,Zge(this));else if(p!==U){var Y=_.kn(S),L=this.polySiContext.typesForSignals[Y];if(L&&(!this.reflecting||_.y("polysi_attribute_changed_serializing_killswitch"))){switch(L){case Object:try{var I=JSON.parse(U)}catch(W){I=U}break;case Array:try{I=JSON.parse(U)}catch(W){I=null}break;case Date:I=isNaN(U)?String(U):Number(U);I=new Date(I);break;case Boolean:I=U!==null;break;case Number:I=
Number(U);break;default:I=U}this[Y]=I}Y=_.d(this.polySiParams.behaviors);for(L=Y.next();!L.done;L=Y.next())I=void 0,(I=L.value.attributeChanged)==null||I.call(this,S,p,U);var V;(V=this.attributeChanged)==null||V.call(this,S,p,U)}};
_.M.attributeChangedCallbackWrapper=function(S,p,U){this.attributeChangedCallback(S,p,U)};
_.M.setPropertiesFromInitialAttributeValues=function(){for(var S=0;S<this.hostElement.attributes.length;S++){var p=this.hostElement.attributes[S];(p.name==="disable-upgrade"||this.polySiParams.observedAttributes.includes(p.name))&&this.attributeChangedCallback(p.name,null,p.value)}};
_.M.created=function(){this.provide=this.polySiParams.provide;var S;(S=this.initializeInjection)==null||S.call(this);S=_.d(this.polySiParams.reactiveSchemas);for(var p=S.next();!p.done;p=S.next())p=p.value,p.type==="signal"&&(this.mutablePropNames.add(p.propertyKey),Zl(this.signalProxy,p.propertyKey));PXX(this,this.polySiInfo,this.polySiParams.behaviors);S=_.d(this.polySiParams.reactiveSchemas);for(p=S.next();!p.done;p=S.next())p=p.value,p.type==="signal"&&p.value!==void 0&&(this.signalProxy.model[p.propertyKey]=
typeof p.value==="function"?p.value.call(this):p.value);if(this.polySiParams.signalProperties)for(S=_.d(this.polySiParams.signalProperties),p=S.next();!p.done;p=S.next()){p=p.value;var U=void 0;((U=this.__signalCache)==null?0:U.has(p))||(this.signalProxy.model[p]=void 0)}Jut||gyd(this);Xcd(this);S=_.d(this.polySiParams.behaviors);for(p=S.next();!p.done;p=S.next())U=void 0,(U=p.value.created)==null||U.call(this);var Y;(Y=this.polySiInfo.created)==null||Y.call(this)};
_.M.registered=function(){var S=this;this.polySiParams.legacyOptimizations&&this.polySiContext.copyPropertiesToProto();var p=Object.getPrototypeOf(this);p.addReactiveSchema=function(W){S.polySiParams.reactiveSchemas.push(W)};
for(var U=_.d(this.polySiParams.behaviors),Y=U.next();!Y.done;Y=U.next()){var L=void 0;(L=Y.value.beforeRegister)==null||L.call(p)}var I;(I=this.polySiInfo.beforeRegister)==null||I.call(p);p.addReactiveSchema=ePG;U=_.d(this.polySiParams.behaviors);for(Y=U.next();!Y.done;Y=U.next())L=void 0,(L=Y.value.registered)==null||L.call(p);var V;(V=this.polySiInfo.registered)==null||V.call(p)};
_.M.ready=function(){var S;(S=this.beforeReady)==null||S.call(this);Jut&&gyd(this);var p;if(S=(p=this.polySiContext.finalizedTemplate)==null?void 0:p.processedTemplate){S=dnq(S.template,S.nodeInfoList,this.signalProxy,{eventListenerHost:this,hasInsertionPoint:S.hasInsertionPoint,thisCtx:this});p=S.nodesById;S=S.root;var U=this.hostElement;var Y=Y===void 0?!1:Y;U=(0,_.L3)(U);if(!U.attachShadow)throw Error("Ad");if(!U.shadowRoot||Y)U.attachShadow({mode:"open",shadyUpgradeFragment:S}),U.shadowRoot.appendChild(S);
this.root=U.shadowRoot;this.$=p}ubq(this);Y=_.d(this.polySiParams.behaviors);for(p=Y.next();!p.done;p=Y.next())S=void 0,(S=p.value.ready)==null||S.call(this);var L;(L=this.polySiInfo.ready)==null||L.call(this)};
_.M.attached=function(){for(var S=_.d(this.polySiParams.behaviors),p=S.next();!p.done;p=S.next()){var U=void 0;(U=p.value.attached)==null||U.call(this)}var Y;(Y=this.polySiInfo.attached)==null||Y.call(this)};
_.M.detached=function(){for(var S=_.d(this.polySiParams.behaviors),p=S.next();!p.done;p=S.next()){var U=void 0;(U=p.value.detached)==null||U.call(this)}var Y;(Y=this.polySiInfo.detached)==null||Y.call(this)};
var sRQ=function(S){for(var p=_.d(S.polySiParams.behaviors),U=p.next();!U.done;U=p.next())if(U=U.value,U.listeners)for(var Y in U.listeners)I6k(S,S.hostElement,Y,U.listeners[Y]);if(S.polySiInfo.listeners)for(var L in S.polySiInfo.listeners)I6k(S,S.hostElement,L,S.polySiInfo.listeners[L])},I6k=function(S,p,U,Y,L){S=VHe(S,Y,L);
RH(p,U,S)||p.addEventListener(U,S);return S},gyd=function(S){for(var p=_.d(S.polySiParams.reactiveSchemas),U=p.next();!U.done;U=p.next())U=U.value,U.type==="compute"||U.type==="computeWithMethod"?kQX(S.signalProxy,U,S):U.type==="redux"?zbN(S.signalProxy,U,S.store):U.type==="signal"&&U.readOnly&&Dfq(S.signalProxy,U)},ubq=function(S){for(var p=_.d(S.polySiParams.reactiveSchemas),U=p.next(),Y={};!U.done;Y={schema$jscomp$12:void 0},U=p.next())Y.schema$jscomp$12=U.value,Y.schema$jscomp$12.type==="notify"?
nPw(S.signalProxy,Y.schema$jscomp$12,S.hostElement):Y.schema$jscomp$12.type==="observe"?JQw(S.signalProxy,Y.schema$jscomp$12,S):Y.schema$jscomp$12.type==="reflect"&&S.signalProxy.effect(function(I){return function(){var V=S.signalProxy.getWithPath([I.schema$jscomp$12.propertyKey]);
S.reflecting=!0;PSR(S.hostElement,I.schema$jscomp$12.propertyKey,V,!0);S.reflecting=!1}}(Y));
if(S.reflectedAttributes)for(p=_.d(Object.entries(S.reflectedAttributes)),Y=p.next(),U={};!Y.done;U={key$jscomp$878:void 0,value$jscomp$8813:void 0},Y=p.next()){var L=_.d(Y.value);Y=L.next().value;L=L.next().value;U.key$jscomp$878=Y;U.value$jscomp$8813=L;S.signalProxy.effect(function(I){return function(){S.reflecting=!0;PSR(S.hostElement,I.key$jscomp$878,(0,I.value$jscomp$8813)(),!0);S.reflecting=!1}}(U))}};
_.M=f3.prototype;_.M._setPendingProperty=function(S,p){this.set(S,p);return!1};
_.M._enableProperties=function(){};
_.M._setPendingPropertyOrPath=function(S,p){this.notifyPath(S,p);return!1};
_.M._addPropertyEffect=function(){};
_.M._stampTemplate=function(){throw Error("Ig");};
_.M.fire=function(S,p,U){p=p===void 0?{}:p;U=U===void 0?{}:U;var Y,L,I={bubbles:(Y=U.bubbles)!=null?Y:!0,cancelable:!!U.cancelable,composed:(L=U.composed)!=null?L:!0},V;return _.cv(gyw((V=U.node)!=null?V:this.hostElement),S,p,I)};
_.M.get=function(S,p){var U=XB(S);return p?Tae(p,U):S==="hidden"?this.hostElement.hidden:this.signalProxy.getWithPath(U)};
_.M.linkPaths=function(){};
_.M.listen=function(S,p,U){S=gyw(S);this.boundListeners!=null||(this.boundListeners=new WeakMap);var Y=this.boundListeners.get(S);Y||(Y={},this.boundListeners.set(S,Y));var L=p+U;Y[L]||(Y[L]=I6k(this,S,p,U))};
_.M.notifyPath=function(S,p){this.signalProxy.notifyPath(XB(S),arguments.length===2?{value:p}:void 0)};
_.M.canNotifyPath=function(S){return this.mutablePropNames.has(S)&&!vPw(this.signalProxy,S)};
_.M.notifySplices=function(S,p){this.signalProxy.notifySplices(XB(S),p)};
_.M.pop=function(S){var p=this.signalProxy;S=XB(S);var U=_.d(S);S=U.next().value;U=Nd(U);return Zl(p,S).pop(U)};
_.M.push=function(S){var p=_.jO.apply(1,arguments);return this.signalProxy.arrayPush.apply(this.signalProxy,[XB(S)].concat(_.jo(p)))};
_.M.set=function(S,p,U){if(U)throw Error("Jg");S==="hidden"?this.hostElement.hidden=!!p:this.signalProxy.setWithPath(XB(S),p)};
_.M.setProperties=function(S){S=_.d(Object.entries(S));for(var p=S.next();!p.done;p=S.next()){var U=_.d(p.value);p=U.next().value;U=U.next().value;this[p]=U}};
_.M.splice=function(S,p,U){var Y=_.jO.apply(3,arguments);return this.signalProxy.arraySplice.apply(this.signalProxy,[XB(S),p,U].concat(_.jo(Y)))};
_.M.unlinkPaths=function(){};
_.M.unlisten=function(S,p,U){S=gyw(S);if(this.boundListeners){var Y=this.boundListeners.get(S);if(Y){U=p+U;var L=Y[U];L&&(Fj(S,p,L)||S.removeEventListener(p,L),delete Y[U])}}};
_.M.unshift=function(S){var p=_.jO.apply(1,arguments);return this.signalProxy.arrayUnshift.apply(this.signalProxy,[XB(S)].concat(_.jo(p)))};
_.$u.Object.defineProperties(f3.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 vyd=[Array,Boolean,Date,Number,Object,String];var NSd=!1;var Rl=function(){var S=HTMLElement.apply(this,arguments)||this;S.restamp=!1;S.notifyDomChange=!1;S.JSC$11416_didCallConnected=!1;S.JSC$11416_renderDebouncer=null;S.disableTemplateUpdateSignalImpl=C3()?void 0:_.kj(!1,void 0,"zLXz1e");var p;S.getDisableTemplateUpdate=(p=S.disableTemplateUpdateSignalImpl)==null?void 0:p[0];var U;S.setDisableTemplateUpdate=(U=S.disableTemplateUpdateSignalImpl)==null?void 0:U[1];return S};
_.r(Rl,HTMLElement);var wcP=function(S){S.conditionSignalImpl!=null||(S.conditionSignalImpl=new rk(_.kj(!1,void 0,"wcuOQ")));return S.conditionSignalImpl};
_.M=Rl.prototype;_.M.showHideChildren=function(S){l6P(this,S,this.if)};
_.M.attributeChangedCallback=function(S,p,U){if(this.JSC$11416_didCallConnected)throw Error("Ng`"+S);S==="notify-dom-change"?this.notifyDomChange=U!==null:S==="restamp"&&(this.restamp=U!==null)};
_.M.debounceRender=function(){this.JSC$11416_renderDebouncer=_.c1(this.JSC$11416_renderDebouncer,Pr,this.JSC$11416_renderImpl.bind(this));_.Sd(this.JSC$11416_renderDebouncer)};
_.M.disconnectedCallback=function(){var S=(0,_.L3)(this).parentNode;(!S||S.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&"host"in S&&!S.host)&&a6l(this)};
_.M.connectedCallback=function(){var S=this;this.JSC$11416_didCallConnected=!0;QRe?BSw():this.style.display="none";this.parentSignalProxy.effect(function(){wcP(S).getWithPath([]);S.debounceRender()})};
_.M.render=function(){_.LC()};
_.M.JSC$11416_renderImpl=function(){if(!this.parentSignalProxy.isDisposed){var S=this.if;if(S){a:{var p=(0,_.L3)(this).parentNode;if(this.hasInstance()){var U=this.instance.children;if((U==null?0:U.length)&&(0,_.L3)(this).previousSibling!==U[U.length-1])for(var Y=0;Y<U.length;Y++)(0,_.L3)(p).insertBefore(U[Y],this)}else{if(!p){p=!1;break a}f6I(this,p)}p=!0}if(!p)return}else this.restamp&&a6l(this);l6P(this,!1,S);S&&CXI(this);nyl&&!this.notifyDomChange||this.dispatchEvent(new CustomEvent("dom-change",
{bubbles:!0,composed:!0}))}};
_.M.hasInstance=function(){return!!this.instance};
var f6I=function(S,p){var U=S.parentSignalProxy;if(C3()){var Y=_.d(_.kj(!0,void 0,"wXzgnc"));var L=Y.next().value;Y=Y.next().value;U=S.parentSignalProxy}else{var I;var V=new hj((I=xnH(S))!=null?I:{},function(O){var D=Zl(S.parentSignalProxy,O).getChangeRecordSignal([]);O=_.kj(void 0,void 0,"mryEkc");var z=new rk(O);V.effect(function(){if(S.getDisableTemplateUpdate&&!S.getDisableTemplateUpdate()){var Q=D();z.notifyPath(XB(Q.path),{value:Q.value})}});
return z});
S.parentSignalProxy.childSignalProxies.push(V);var W=U=V}U=dnq(S.templateInfo,S.templateInfo.nodeInfoList,U,{eventListenerHost:S.eventListenerHost,hasInsertionPoint:S.templateInfo.hasInsertionPoint,thisCtx:S.eventListenerHost,enabledSignal:C3()?L:void 0,getModel:function(){return xnH(S)}}).root;
S.instance={root:U,children:[],hidden:!1,signalProxy:W,getTemplateUpdatesEnabled:L,setTemplateUpdatesEnabled:Y};W=_.d(U.childNodes);for(L=W.next();!L.done;L=W.next())S.instance.children.push(L.value);(0,_.L3)(p).insertBefore(S.instance.root,S)},xnH=function(S){if((S=S.parentSignalProxy.model)&&!S.hostElement){var p={},U;
for(U in S)S.hasOwnProperty(U)&&(p[U]=S[U]);return p}},a6l=function(S){if(S.instance){var p=S.instance.children;
if(p.length){var U=(0,_.L3)(p[0]).parentNode;if(U){U=(0,_.L3)(U);for(var Y=0;Y<p.length;Y++)U.removeChild(p[Y])}}C3()?S.instance.setTemplateUpdatesEnabled(!1):S.instance.signalProxy.dispose();S.instance=void 0}},l6P=function(S,p,U){p=p||!U;
S.instance&&S.instance.hidden!==p&&(S.instance.hidden=p,igr(p,S.instance.children))},CXI=function(S){if(C3()){var p=S.instance;
p&&sI(S.parentSignalProxy.owner,function(){return!p.getTemplateUpdatesEnabled()})&&p.setTemplateUpdatesEnabled(!0)}else S.setDisableTemplateUpdate(!1)};
_.$u.Object.defineProperties(Rl.prototype,{if:{configurable:!0,enumerable:!0,get:function(){var S=this;return sI(this.parentSignalProxy.owner,function(){return wcP(S).getWithPath([])})},
set:function(S){S||(C3()?this.instance&&this.instance.setTemplateUpdatesEnabled(!1):this.setDisableTemplateUpdate(!0));wcP(this).setWithPath([],!!S)}}});
_.$u.Object.defineProperties(Rl,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return["restamp","notify-dom-change"]}}});
customElements.define("ps-dom-if",Rl);var Eym=[],FF=function(){var S=HTMLElement.apply(this,arguments)||this;S.as="item";S.indexAs="index";S.itemsIndexAs="itemsIndex";S.targetFramerate=20;S.notifyDomChange=!1;S.isDetached=!1;S.JSC$11423_renderDebouncer=null;S.instances=[];S.chunkingId=null;S.chunkCount=null;S.shouldMeasureChunk=!1;S.shouldContinueChunking=!1;S.renderStartTime=null;S.JSC$11423_didCallConnected=!1;return S};
_.r(FF,HTMLElement);var mnI=function(S){S.itemSignalImpl!=null||(S.itemSignalImpl=new rk(_.kj(Eym,void 0,"YBrqgf")));return S.itemSignalImpl},oyI=function(S,p){Array.isArray(p)||(p=Eym);
mnI(S).setWithPath([],p)};
_.M=FF.prototype;_.M.showHideChildren=function(S){for(var p=_.d(this.instances),U=p.next();!U.done;U=p.next())igr(S,U.value.children)};
_.M.notifyPath=function(S,p){S=XB(S);S[0]==="items"&&(S.length===1?oyI(this,p):mnI(this).setWithPath(S.slice(1),p))};
_.M.canNotifyPath=function(S){return S==="items"};
_.M.attributeChangedCallback=function(S,p,U){if(this.JSC$11423_didCallConnected)throw Error("Og`"+S);S==="as"?this.as=U:S==="index-as"?this.indexAs=U:S==="items-index-as"?this.itemsIndexAs=U:S==="initial-count"?this.initialCount=Number(U):S==="notify-dom-change"?this.notifyDomChange=U!==null:S==="target-framerate"&&(this.targetFramerate=Number(U))};
_.M.disconnectedCallback=function(){this.isDetached=!0;for(var S=0;S<this.instances.length;S++)vye(this,S);this.chunkingId&&cancelAnimationFrame(this.chunkingId)};
_.M.connectedCallback=function(){var S=this,p=mnI(this).getChangeRecordSignal([],"");this.parentSignalProxy.effect(function(){var L=p(),I=XB(L.path);if(I[0]===void 0||I[0]==="splices"||I[0]==="length")S.debounceRender();else{var V=I[0];if(V=S.instances[typeof V==="string"?Math.floor(Number(V)):V])I=[S.as].concat(_.jo(I.slice(1))),V.signalProxy.notifyPath(I,L)}});
this.JSC$11423_didCallConnected=!0;QRe?BSw():this.style.display="none";if(this.isDetached){this.isDetached=!1;for(var U=(0,_.L3)((0,_.L3)(this).parentNode),Y=0;Y<this.instances.length;Y++)U.insertBefore(this.instances[Y].root,this);this.chunkingId&&this.render()}};
_.M.debounceRender=function(){this.JSC$11423_renderDebouncer=_.c1(this.JSC$11423_renderDebouncer,Pr,this.JSC$11423_renderImpl.bind(this));_.Sd(this.JSC$11423_renderDebouncer)};
_.M.render=function(){this.debounceRender();_.LC()};
_.M.JSC$11423_renderImpl=function(){var S=this,p=this.items,U=$nj(this,p.length);igc(this,p,U);this.initialCount&&(this.shouldMeasureChunk||this.shouldContinueChunking)&&(cancelAnimationFrame(this.chunkingId),this.chunkingId=requestAnimationFrame(function(){S.chunkingId=null;if(S.shouldMeasureChunk){var Y=performance.now()-S.renderStartTime;S.chunkCount=Math.round(Math.ceil(1E3/S.targetFramerate)/Y*S.chunkCount)||1}S.shouldContinueChunking&&S.debounceRender()}));
nyl&&!this.notifyDomChange||this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0}))};
var $nj=function(S,p){var U=p,Y=S.instances.length;if(S.initialCount){if(S.chunkCount){var L=Math.min(Math.max(p-Y,0),S.chunkCount);U=Math.min(Y+L,p)}else U=Math.min(p,S.initialCount),L=Math.max(U-Y,0),S.chunkCount=L||1;S.shouldMeasureChunk=L===S.chunkCount;S.shouldContinueChunking=U<p;S.renderStartTime=performance.now()}return U},igc=function(S,p,U){for(var Y=0;Y<U;Y++){var L=S.instances[Y],I=p[Y];
L?(L.signalProxy.setWithPath([S.as],I),L.signalProxy.setWithPath([S.indexAs],Y)):NSe(S,I,Y)}for(p=S.instances.length-1;p>=Y;p--)U=S,L=p,vye(U,L),_.d(U.instances.splice(L,1)).next().value.signalProxy.dispose()},vye=function(S,p){S=S.instances[p];
p=(0,_.L3)(S.root);for(var U=0;U<S.children.length;U++)p.appendChild(S.children[U])},NSe=function(S,p,U){var Y={};
p=Object.assign({},BSd(S),(Y[S.as]=p,Y[S.indexAs]=U,Y[S.itemsIndexAs]=U,Y));var L=new hj(p,function(V){if(V!==S.as&&V!==S.indexAs){if(V===S.itemsIndexAs)return Zl(L,S.indexAs);var W=Zl(S.parentSignalProxy,V).getChangeRecordSignal([]);V=_.kj(void 0,void 0,"Mu2Bwb");var O=new rk(V);L.effect(function(){var D=W();O.notifyPath(XB(D.path),{value:D.value})});
return O}});
S.parentSignalProxy.childSignalProxies.push(L);Y=dnq(S.templateInfo,S.templateInfo.nodeInfoList,L,{eventListenerHost:S.eventListenerHost,getModel:function(){var V={};return Object.assign({},BSd(S),(V[S.as]=L.model[S.as],V[S.indexAs]=L.model[S.indexAs],V[S.itemsIndexAs]=L.model[S.indexAs],V))},
hasInsertionPoint:S.templateInfo.hasInsertionPoint,thisCtx:S.eventListenerHost,methodInvocationRequirement:yuq,enabledSignal:S.stampingEnabled}).root;p={root:Y,children:[],signalProxy:L};Y=_.d(Y.childNodes);for(var I=Y.next();!I.done;I=Y.next())p.children.push(I.value);Y=(Y=S.instances[U+1])?Y.children[0]:S;(0,_.L3)((0,_.L3)(S).parentNode).insertBefore(p.root,Y);S.instances[U]=p},BSd=function(S){if((S=S.parentSignalProxy.model)&&!S.hostElement){var p={},U;
for(U in S)S.hasOwnProperty(U)&&(p[U]=S[U]);return p}};
FF.prototype.itemForElement=function(S){var p=this,U=this.instances.find(function(Y){return Y.children.includes(S)});
if(U)return sI(this.parentSignalProxy.owner,function(){return U.signalProxy.getWithPath([p.as])})};
FF.prototype.indexForElement=function(S){var p=this.instances.findIndex(function(U){return U.children.includes(S)});
return p>=0?p:void 0};
_.$u.Object.defineProperties(FF.prototype,{items:{configurable:!0,enumerable:!0,get:function(){var S=this;return sI(this.parentSignalProxy.owner,function(){return mnI(S).getWithPath([])})},
set:function(S){oyI(this,S)}},
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}}});
_.$u.Object.defineProperties(FF,{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",FF);var qvP,AuE;_.XF=new _.$g("STATE_STORE_TOKEN");qvP=new _.$g("SELECT_TOKEN");AuE=new _.$g("DISPATCH_TOKEN");var pne={getSelectFn:function(){var S;return(S=_.tW().resolve(_.AW(qvP)))!=null?S:qvu},
getDispatchFn:function(){var S;return(S=_.tW().resolve(_.AW(AuE)))!=null?S:_.xk().dispatch.bind(_.xk())},
getAppStore:function(){return _.tW().resolve(_.XF)}},Auq,SiE=!1;var Liw=void 0;var tew=function(){};
tew.prototype.hasAttribute=function(S){if(S==="dir")return!1;if(S==="disable-upgrade"){var p,U;return(U=(p=this.hostElement)==null?void 0:p.hasAttribute("disable-upgrade"))!=null?U:!1}throw Error("Pg`"+S);};
tew.prototype.attributeChangedCallbackWrapper=function(S,p,U){if(S==="disable-upgrade"&&this.__isUpgradeDisabled&&U===null){this._initializeProperties();this.__isUpgradeDisabled=!1;var Y;((Y=this.hostElement)!=null?Y:this).isConnected&&this.connectedCallback()}else p===U||this.__isReflecting||this.attributeChangedCallback(S,p,U)};
tew.prototype.getExtraMethodsToForward=function(){for(var S=this,p=[],U=_.d(cut),Y=U.next(),L={};!Y.done;L={tagName$jscomp$52:void 0,name$jscomp$535:void 0},Y=U.next())L.name$jscomp$535=Y.value,Y=void 0,L.name$jscomp$535==="_setPendingProperty"?(L.tagName$jscomp$52=this.hostElement.tagName.toLowerCase(),Y=function(I){return function(V,W,O){JF(I.tagName$jscomp$52,V,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE");return S._setPendingProperty(V,W,O)}}(L)):Y=function(I){return function(){return S[I.name$jscomp$535].apply(S,
_.jo(_.jO.apply(0,arguments)))}}(L),p.push([L.name$jscomp$535,
Y]);return p};
for(var OmR=PXl(Xce((0,_.HC)(tew))),zpe=["disabled","disable-upgrade"],SiI=(0,_.HC)(function(){}),pnt=new Set(Object.getOwnPropertyNames(SiI.prototype)),Kiw=new Set("is hostElement root rootPath importPath inject behaviors properties provide".split(" ").concat(_.jo(pnt))),n0e=new Set(["__dataEnabled",
"__dataHasAccessor","__dataPending","__isPropertyEffectsClient","__readOnly"]),cut=new Set("_enableProperties _flushProperties _setPendingProperty _setPendingPropertyOrPath set get".split(" ")),UQt=new Set([].concat(_.jo(n0e),_.jo(cut),_.jo(pnt))),YiH=_.d(UQt),LiQ=YiH.next();!LiQ.done;LiQ=YiH.next())CAG.add(LiQ.value);var ygX={created:function(){Xcd(this);this.initializeInjection()}};var PqE=!1,qs=window.ShadyDOM,aRq=["appendChild","insertBefore","removeChild","replaceChild"],lRu=[Node];qs&&lRu.push(qs.Wrapper);var o0e,v0w,Nyw={};var cT=new Set,AF="",Bye="";var tF,SV=new Set;var L3e=new Set("context didCallReady is info params signalProxy".split(" ")),IMR="_enableProperties _setPendingProperty _setPendingPropertyOrPath fire get linkPaths listen notifyPath notifySplices pop push set setProperties splice unlinkPaths unlisten unshift".split(" "),drd="__dataHasAccessor __isPropertyEffectsClient $ hostElement isAttached observers properties".split(" ");var MDH=T0({entities:Mdw}),IRd=new o4(MDH);var Pl=function(){return _.HT.apply(this,arguments)||this};
_.r(Pl,_.HT);_.$u.Object.defineProperties(Pl.prototype,{store:{configurable:!0,enumerable:!0,get:function(){return IRd}}});
Pl=_.x([_.Dl()],Pl);_.Zq=[bj.prototype,Pl.prototype];_.sz={YtLiveChatTooltipTargetingBehavior:{created:function(){this.handler_=null},
ready:function(){var S=this,p={};setTimeout(function(){var U;return _.cv((U=S.hostElement)!=null?U:S,"yt-live-chat-add-tooltip-target",p)},0);
this.handler_=p.handler},
detached:function(){if(this.handler_){var S;this.handler_.removeElementFromSupportingTooltips((S=this.hostElement)!=null?S:this)}this.handler_=null}}};_.dx=new _.$g("ICON_MANAGER_TOKEN");var dQw=[48,20,18,16,15,13,12],P8X=new Map,rRe=new Set,K3w=new Set,jBe=new Set,yRw=new Set,bPq=new Set,hmq=new Promise(function(S){var p=!1,U=!1,Y=!1,L=[],I=function(V){if("detail"in V)if(V=V.detail,V.name==="yt-icons")GJG(V),p=!0;else if(V.name==="yt-sys-icons")GJG(V),U=!0;else{var W;((W=V.name)==null?0:W.includes("yt-sys-icons"))&&V.size!==24&&(GJG(V,!0),L.push(V.size),L.length===dQw.length&&(Y=!0))}p&&U&&Y&&(window.removeEventListener("iron-iconset-added",I),S())};
window.addEventListener("iron-iconset-added",I)}),F3G=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"]]);_.eL={};_.eL.YtComponentBehavior={_noAccessors:!0,getSimpleString:_.mA,computeHref_:function(S,p){p=p===void 0?!1:p;if(!S||S.commandExecutorCommand)return null;var U=xmR(S,p);return p||U!==null?U?_.y("enable_polymer_resin")?_.JA(U).toString():U:null:(_.eP(new _.y7("computeHref was null",this.is,S)),null)},
computeOptionalHref_:function(S){return this.computeHref_(S,!0)},
computeNofollow_:function(S){return S?sfR(S)?"nofollow":null:null},
computeIcon_:function(S){return S&&S.iconType?_.If(S.iconType):""},
resolveCommand:function(S,p,U){p=p===void 0?{}:p;return _.Te(S,this.hostElement,p,U===void 0?!1:U)}};var Tyl,gk;_.VDe={};Tyl=null;
gk={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_=Gbe(this.viewroot));_.uK(this.initVisibilityObserver_.bind(this))},
initVisibilityObserver_:function(){this.visibilityObserver&&this.configureVisibilityObserver_()},
configureVisibilityObserver_:function(){var S=this;this.unobserve_();if(_.y("kevlar_vimio_use_shared_monitor"))uQE(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 p=[];this.visibilityOptionVisible_&&p.push(this.visibilityObserver.observe(this.hostElement,function(){return S.onVisible()},this.visibilityOptionVisible_));
this.visibilityOptionHidden_&&p.push(this.visibilityObserver.observe(this.hostElement,function(){return S.onHidden()},this.visibilityOptionHidden_));
this.visibilityOptionPrescan_&&p.push(this.visibilityObserver.observe(this.hostElement,function(){return S.onPrescanVisible()},this.visibilityOptionPrescan_));
this.visibilityMonitorKeys=p}},
detached:function(){this.unobserve_();this.visibilityObserverForChild_=this.localVisibilityObserver_=null},
unobserve_:function(){ZPw(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 S=_.uI(this.parentNode,function(U){var Y,L=(Y=U.polymerController)!=null?Y:U;return!!L.getVisibilityObserverForChild&&L.getVisibilityObserverForChild()},!0);
if(S){var p;this.localVisibilityObserver_=((p=S.polymerController)!=null?p:S).getVisibilityObserverForChild()}else Tyl||(Tyl=Gbe()),this.localVisibilityObserver_=Tyl;return this.localVisibilityObserver_},visibilityCallback:function(S){S?this.onVisible():this.onHidden()},
onVisible:function(){},
onHidden:function(){},
onPrescanVisible:function(){},
shouldSkipLogging:function(){}};
_.y("kevlar_use_vimio_behavior")||(gk={});gk&&!_.y("kevlar_use_vimio_behavior")&&(delete gk.attached,delete gk.detached);_.VDe.YtVisibilityObserverBehavior=[gk];var Wiw={};Wiw.YtVisualElementBehavior=[_.VDe.YtVisibilityObserverBehavior,{properties:{observeVisibleOption:{type:String,value:"observe_multiple"},observeHiddenOption:{type:String,value:"observe_multiple"},visualElement:Object},onVisible:function(){if(_.y("kevlar_use_vimio_behavior")&&this.onShow)this.onShow();if(!_.y("kevlar_vimio_use_shared_monitor")&&!this.shouldSkipLogging()){var S=this.getScreenLayer&&this.getScreenLayer(),p=this.getVisibilityLogger();p&&p.reportShown(this,void 0,S)}},
onHidden:function(){if(_.y("kevlar_use_vimio_behavior")&&this.onHide)this.onHide();if(!_.y("kevlar_vimio_use_shared_monitor")){var S=this.getScreenLayer&&this.getScreenLayer(),p=this.getVisibilityLogger();p&&p.reportHidden(this,void 0,S)}},
getVisibilityLogger:function(){return _.y("kevlar_use_vimio_behavior")?_.OW():null},
shouldSkipLogging:function(){if(_.g7("INNERTUBE_CLIENT_NAME")!=="WEB"||!this.data)return!1;var S=this.getParentRenderer&&this.getParentRenderer();if(!S)return!1;var p,U=(p=S.polymerController)!=null?p:S;if(!U.data)return!1;S=this.data.trackingParams;S=this.data.loggingDirectives?this.data.loggingDirectives.trackingParams:S;var Y;p=(Y=U.data)==null?void 0:Y.trackingParams;var L,I;p=((L=U.data)==null?0:L.loggingDirectives)?(I=U.data)==null?void 0:I.loggingDirectives.trackingParams:p;return S&&p&&S===
p}}];var aMw=new Map,yO;var XpE=function(S){this.layer=S},FC=function(S){return S.layer!==void 0?S.layer:S.parent?FC(S.parent):S.layer=0};var o_E;_.c={};o_E=0;_.c.YtRendererBehavior=[_.eL.YtComponentBehavior,Wiw.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_:_.y("kevlar_use_vimio_behavior"),created:function(){this.useVimio_||(this.childCache_=new Set)},
detached:function(){if(this.monitorScroll){var S,p;(p=(S=this.monitorScrollElement)!=null?S:this.hostElement)==null||p.removeEventListener("scroll",_.d9(this,this.onScroll))}this.parentComponent&&(this.parentComponent.childCache_&&this.parentComponent.childCache_.delete(this.hostElement),this.parentComponent=null);this.useVimio_||this.markDirty();wyE(this.hostElement);jmI(_.Dq(),this.hostElement);o2.delete(this.hostElement)},
registerRenderer:function(S){var p;((p=S.polymerController)!=null?p:S).parentComponent=this.hostElement;this.useVimio_||(this.childCache_.add(S),this.markDirty())},
unregisterRenderer_:function(S){this.useVimio_||(this.childCache_.delete(S),this.markDirty())},
attached:function(){var S=this,p=this.getParentRenderer();if(p){var U,Y,L;(Y=(U=(L=p.polymerController)!=null?L:p).registerRenderer)==null||Y.call(U,this.hostElement)}if(!this.useVimio_&&this.monitorScroll){var I,V;(V=(I=this.monitorScrollElement)!=null?I:this.hostElement)==null||V.addEventListener("scroll",_.d9(this,this.onScroll))}_.PA.addJob(function(){fMw(S.hostElement)},8);
U=new XpE(this.screenLayer||void 0);(p=vd(p))&&p.layerNode&&(U.parent=p.layerNode);p={};X1G(this.hostElement,(p.isRenderer=!0,p.layerNode=U,p[XC]=this.data,p))},
getParentRenderer:function(){for(var S=this.hostElement.parentNode,p,U;S&&((p=vd(S))==null||!p.isRenderer)&&!((U=S.polymerController)!=null?U:S).isRenderer_;)S=S.parentNode||S.host;return S},
ytRendererBehaviorDataObserver_:function(){if(this.data){this.wasVisible=!1;_.y("kevlar_use_vimio_behavior")&&this.markDirtyVisibilityObserver();_.ub("ADD_SCRAPER_ATTRIBUTES")&&this.data.trackingParams&&(this.hostElement.dataset.ved=this.data.trackingParams);if(_.y("debug_web_ve_data")&&this.data.trackingParams){var S="";try{S=atob(this.data.trackingParams.replace(/-/g,"+").replace(/_/g,"/"))}catch(U){_.ZP(U)}if(S){var p=Y$u(S,1);p!==void 0&&(this.hostElement.dataset.veIndex=String(p));S=Y$u(S,2);
S!==void 0&&(this.hostElement.dataset.ve=String(S))}}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,_.y("debug_web_ve_data")&&
(this.hostElement.dataset.ve=String(this.veType)),this.data.loggingDirectives.trackingParams&&(this.dataElement=_.JS(this.data.loggingDirectives.trackingParams)),this.visualElement=_.kX(_.HX(),this)||void 0,this.veFromLoggingDirective_=!0)}},
ytRendererBehaviorTargetIdObserver_:function(){if(this.data&&this.data.targetId){var S=this.data.targetId;_.GQj(_.Dq(),S,this.hostElement)}else jmI(_.Dq(),this.hostElement)},
onScroll:function(){var S=Date.now();S-this.lastHandledScroll_<50||(this.lastHandledScroll_=S,this.markDirty())},
markDirty:function(){_.y("kevlar_use_vimio_behavior")?this.markDirtyVisibilityObserver():v_w(this.hostElement)},
getScreenLayer:function(){if(this.screenLayer)return this.screenLayer;var S=this.getParentRenderer();if(S&&(S=vd(S))&&S.layerNode)return FC(S.layerNode)},
invalidate:function(){this.markDirty();this.wasPrescan=this.wasVisible=!1},
getNodes:function(){return this.childCache_?[].concat(_.jo(this.childCache_)):[]},
impressionLog:function(){if(this.data&&this.data.impressionEndpoints)for(var S=0;S<this.data.impressionEndpoints.length;S++)this.sendImpression(this.data.impressionEndpoints[S]);else this.data&&this.data.impressionEndpoint&&this.sendImpression(this.data.impressionEndpoint)},
sendImpression:function(S){S.clickTrackingParams&&delete S.clickTrackingParams;var p,U;(S==null?0:(p=S.commandMetadata)==null?0:(U=p.webCommandMetadata)==null?0:U.sendPost)?_.Yd(this.hostElement,[S,{impression:!0}]):_.Lp(this.hostElement,[S],this.hostElement)},
logExplicitClick:function(S){var p=_.X$(this.getScreenLayer());if(p){var U,Y=(U=S.polymerController)!=null?U:S;S=Y.visualElement;Y=Y.trackingParams||Y.clickTrackingParams;!S&&Y&&(S=_.JS(Y));S&&_.xd(p,S)}}}];var Omm={},uj=function(){return _.HT.apply(this,arguments)||this};
_.r(uj,_.HT);uj.prototype.onPdgItemBehaviorClick=function(){this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
uj.prototype.onPdgItemBehaviorClick=uj.prototype.onPdgItemBehaviorClick;_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],uj.prototype,"ytRendererBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],uj.prototype,"data",void 0);_.x([_.Vd("click"),_.E("design:type",Function),_.E("design:paramtypes",[Event]),_.E("design:returntype")],uj.prototype,"onPdgItemBehaviorClick",null);uj=_.x([_.Dl()],uj);Omm.YtPdgLiveChatItemBehavior=[uj.prototype,_.c.YtRendererBehavior];var kgj;var HmE;_.wk={};_.wk.YtVisibilityBehavior={_noAccessors:!0,properties:{disablePrescanVisibility:Boolean,prescanHeight:{type:Number,reflectToAttribute:!0}},onShow:function(){if(this.onShow_)this.onShow_()}};var lj=function(){var S=N0.apply(this,arguments)||this;S.switchTemplateAtRegistration=!1;return S};
_.r(lj,N0);lj.prototype.ready=function(){this.templatingFn&&(this.switchTemplateAtRegistration||B$e(this),_.ruG(this,"doRender"),this.doRender())};
lj.prototype.debounceRender=function(){this.templatingFn&&_.w9(this,"doRender",this.doRender)};
lj.prototype.doRender=function(){this.templatingFn?this.templatingFn():_.ZP(Error("Zg"))};
lj.prototype.experimentalTemplatingInUse=function(){return!!this.templatingFn};
lj=_.x([JxG()],lj);var DQe=lj;var zpq=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i,al={},cRG=(al[1]={filterString:null,isUnwrappable:null,unwrap:null},al[2]={filterString:function(S,p,U){return SS(U)},
isUnwrappable:function(S){return S instanceof RK},
unwrap:function(S){return Xq(S)}},al[3]={filterString:function(S,p,U){return zpq.test(U)?U:nh.toString()},
isUnwrappable:function(S){return HE(S)},
unwrap:function(S){return _.DO(S)}},al[4]={filterString:function(){return nh.toString()},
isUnwrappable:function(S){return S instanceof IK},
unwrap:function(S){return _.Tl(S).toString()}},al[5]={filterString:function(S,p,U){return U},
isUnwrappable:function(S){return typeof S==="string"},
unwrap:function(S){return S.toString()}},al[7]={filterString:function(){return" /*zClosurez*/ "},
isUnwrappable:function(S){return S instanceof _.ux},
unwrap:function(S){return lx(S)}},al[8]={filterString:function(S,p,U){U=String(U).toLowerCase();
return Dzw(S,p,U)?U:"zClosurez"},
isUnwrappable:null,unwrap:null},al[10]={filterString:null,isUnwrappable:null,unwrap:null},al);BH[uo["default"]]=pxG;var UkN=[];var KrG=Luw("A"),bNw=Luw("BUTTON"),J7=Luw("DIV"),jGk=Luw("LABEL");(function(){var S=qx;qx=function(p){S==null||S(p);rx(function(){for(var U=0;U<p.length;U++)YMe(p[U])})}})();var f$=function(){var S=_.HT.apply(this,arguments)||this;S.hasUnmounted=!1;return S};
_.r(f$,_.HT);_.M=f$.prototype;_.M.beforeRegister=function(){var S=this.doIdomRender;this.templatingFn?_.ZP(Error("Yg")):(this.templatingFn=S,this.switchTemplateAtRegistration=!0,t7q(this))};
_.M.attached=function(){};
_.M.detached=function(){YMe(this.hostElement)};
_.M.renderIdom=function(){throw Error("ah");};
_.M.doIdomRender=function(){var S=this;tVd(this.hostElement,function(){S.renderIdom()})};
f$=_.x([_.Dl()],f$);var Q0E=[DQe.prototype,f$.prototype];var n0t,Jgl=function(){return n0t!==void 0?n0t:n0t=document.createElement("template")};
document.head.appendChild(Jgl().content);var ygl;var KiH,bmI=function(){return KiH!==void 0?KiH:KiH=document.createElement("template")};
document.head.appendChild(bmI().content);var j0t;var rgQ=document.head,Gge=rgQ.appendChild,hpE;if(j0t===void 0){var RpQ=document.createElement("template");_.h(RpQ,"\x3c!--css-build:shady--\x3e");RpQ.content.insertBefore(bmI().content.cloneNode(!0),RpQ.content.firstChild);j0t=RpQ}hpE=j0t;Gge.call(rgQ,hpE.content);var FiH,XnP=function(){return FiH!==void 0?FiH:FiH=document.createElement("template")};
document.head.appendChild(XnP().content);var PqI;var ZmI=document.head,s0m=ZmI.appendChild,epw;if(PqI===void 0){var g0I=document.createElement("template");_.h(g0I,"\x3c!--css-build:shady--\x3e");g0I.content.insertBefore(XnP().content.cloneNode(!0),g0I.content.firstChild);PqI=g0I}epw=PqI;s0m.call(ZmI,epw.content);var uWm=document.head,wnm=uWm.appendChild,lRP;if(ygl===void 0){var aRE=document.createElement("template");_.h(aRE,"\x3c!--css-build:shady--\x3e");aRE.content.insertBefore(Jgl().content.cloneNode(!0),aRE.content.firstChild);ygl=aRE}lRP=ygl;wnm.call(uWm,lRP.content);var fRm,CqI=function(){return fRm!==void 0?fRm:fRm=document.createElement("template")};
document.head.appendChild(CqI().content);var xQl;_.Cz=new _.$g("DARK_THEME_TOKEN");var qMd=new _.v("accessibilityProperties");var BJr=new _.v("layoutProperties");var ALu=new _.v("imageType");var E0I={};if("ytAttributedStringLinkHoverColor"in E0I)throw Error("dh`ytAttributedStringLinkHoverColor");(function(S,p){E0I[S]="value"in p&&"unit"in p?TJG(S,p):function(U){try{return p(U)}catch(Y){throw Error("bh`"+S+"`"+Y.message);}}})("ytAttributedStringLinkHoverColor",{value:"unset !stv-no-inline",
unit:"str"});var mQE=function(S){var p=this;this.holdTime=S===void 0?500:S;this.longPressTimeout=NaN;this.moveOccurred=this.longPressOccurred=!1;this.onlongpress=function(U){var Y=new CustomEvent("LONG_PRESS"),L;(L=U.changedTouches[0].target)==null||L.dispatchEvent(Y)};
this.ontouchstart=function(U){p.longPressTimeout=_.Jn(_.PA,function(){p.onlongpress(U);p.longPressOccurred=!0},p.holdTime)};
this.ontouchmove=function(){_.PA.cancelJob(p.longPressTimeout);p.longPressTimeout=NaN;p.longPressOccurred=!1;p.moveOccurred=!0};
this.ontouchend=function(U){if(p.longPressTimeout&&!p.longPressOccurred&&!p.moveOccurred){var Y;(Y=U.changedTouches[0].target)==null||Y.dispatchEvent(new Event("click"))}_.PA.cancelJob(p.longPressTimeout);p.longPressTimeout=NaN;p.longPressOccurred=!1;p.moveOccurred=!1}};var ZIk=function(S,p){mQE.call(this,p);var U=this;this.callback=S;this.onlongpress=function(Y){var L;(L=U.callback)==null||L.call(U,Y)}};
_.r(ZIk,mQE);var sJE=function(S,p){var U=Object.assign({},p);S=_.d(new Map([["ontouchstart",S.ontouchstart],["ontouchend",S.ontouchend],["ontouchmove",S.ontouchmove]]));for(var Y=S.next(),L={};!Y.done;L={eventName$jscomp$85:void 0,eventHandler$jscomp$1:void 0},Y=S.next()){var I=_.d(Y.value);Y=I.next().value;I=I.next().value;L.eventName$jscomp$85=Y;L.eventHandler$jscomp$1=I;p[L.eventName$jscomp$85]=function(V){return function(W){var O;(O=U[V.eventName$jscomp$85])==null||O.call(U,W);(0,V.eventHandler$jscomp$1)(W)}}(L)}};_.cQ=new _.$g("COMMAND_HANDLER_TOKEN");var OIw=new _.v("parallelCommand");var Dkk=new _.v("performOnceCommand");var HIq=new _.v("serialCommand");var zSR=void 0;var o0q=function(){this.data=[]};
o0q.prototype.push=function(S){this.data.push(S)};var cG={};_.kj(cG,void 0,"sgPmTd");_.kj(null,void 0,"jypsq");var IQw=new o0q;var rLX=[U8k,Yee,L2d,Inu,M6w,pad,d8e,V6N];var iIr=new _.v("bracketTextDecorator");var fz=new _.v("highlightTextDecorator");_.EW=new _.$g("APP_DIRECTION_TOKEN");Object.freeze&&Object.freeze(Object.create(null));var Eee=function(){},v0d;
(v0d=window.requestIdleCallback)==null||v0d.bind(window);var oer={calledOnce:!1,state:"visible"},mkE={calledOnce:!1,state:"hidden"};var $Qt=new _.$g("ICON_WIZ_COMPONENT_TOKEN");_.QD=_.$k(function(S){var p=S.icon;var U=S.active;var Y=S.className;var L=S.style;var I=S.dataSelected;var V=S.dataDisabled;var W=S.role;var O=S.animateIcon;var D=S.themeOverride;var z=S.ariaHidden;var Q=S.ariaExpanded;var J=S.ariaLabel;var K=S.id;var G=S.size;var X=S.iconFilter;return _.H(_.n,{cond:p,then:function(){var Z=_.tW().resolve($Qt);return _.H(Z,{icon:p,dataSelected:I,dataDisabled:V,animateIcon:O,themeOverride:D,ariaExpanded:Q,id:K,active:U,size:G,role:W,className:Y,ariaHidden:z,ariaLabel:J,
style:function(){return L!=null&&L()||G==null||!G()?L==null?void 0:L():"width: "+(G==null?void 0:G())+"px;height: "+((G==null?void 0:G())+"px;")},
iconFilter:X})}})},"b");
_.QD.idomCompat=!0;var Hbq=window.devicePixelRatio||1;var nhw=new Map([["yt_outline_bag_black_24","bag"]]);var C$=function(S){var p=this;this.margin=.1;this.whenInViewportWithMargin=S;this.observationTargets=[];this.scanRequested=!1;window.addEventListener("touchmove",function(){p.requestScan()});
window.addEventListener("touchend",function(){p.requestScan()});
window.addEventListener("updateui",function(){p.requestScan()});
var U=new _.NB((0,_.RW)(this.requestScan,this),100);window.addEventListener("scroll",function(){U.fire()},!0);
window.addEventListener("resize",(0,_.RW)(this.requestScan,this));window.addEventListener("state-navigatestart",function(){p.observationTargets=[]});
window.addEventListener("state-navigateend",(0,_.RW)(this.requestScan,this))};
C$.prototype.observe=function(S){this.observationTargets.includes(S)||this.observationTargets.push(S)};
C$.prototype.unobserve=function(S){this.observationTargets=this.observationTargets.filter(function(p){return p!==S})};
C$.prototype.requestScan=function(){var S=this;this.scanRequested||(rx(function(){imm(S)}),this.scanRequested=!0)};
var imm=function(S){var p=(1+S.margin)*(document.documentElement.clientHeight||window.innerHeight);S.observationTargets=S.observationTargets.filter(function(U){var Y=U.getBoundingClientRect();(Y=p>Y.top&&!!Y.height)&&S.whenInViewportWithMargin(U);return!Y&&U.parentNode});
S.scanRequested=!1};
C$.prototype.disconnect=function(){this.observationTargets=[]};var Nyd,qit;Nyd=_.d(_.kj(jIw(),void 0,"O3X2wd"));_.Byq=Nyd.next().value;qit=Nyd.next().value;window.addEventListener("resize",function(){qit(jIw())});var AgP={landscape:"(min-width: 931px) and (orientation: landscape)",portrait:"(min-width: 550px) and (orientation: portrait)"},tDe=void 0,cgI=window.innerWidth,S6Q=window.innerHeight;window.addEventListener("resize",function(){tDe=void 0});var pyc;if("IntersectionObserver"in window)pyc=h4w();else{if(tDe===void 0){var Url;Url="matchMedia"in window?window.matchMedia(AgP.landscape+","+AgP.portrait).matches:void 0;tDe=Url!==void 0?Url:cgI>=930&&S6Q>=550||cgI>=550&&S6Q>=930}pyc=tDe?{observe:function(S){rx(function(){var p;(p=S.onViewportEntered)==null||p.call(S)})},
unobserve:function(){}}:new C$(function(S){rx(function(){var p;
(p=S.onViewportEntered)==null||p.call(S)})})}var r5e=pyc;var Y6m=_.$k(function(S){var p=!1,U=_.vH(function(Y){_.FG(function(){p=!0;Y.onload=null})});
_.R8(function(){var Y,L=(Y=S.data)==null?void 0:Y.call(S),I,V=(I=S.getSrc)==null?void 0:I.call(S).cb,W;Y=(W=S.config)==null?void 0:W.call(S);if(W=U.value)if(I=function(D,z){if(!p)return V?V(D,z):D},X8R(W,Y),_.y("web_image_dont_reload_same_src")&&Fve(W,L,I))_.y("web_image_dont_reload_same_src_simulate_load")&&W.dispatchEvent(new CustomEvent("load",{bubbles:!1,
cancelable:!1,detail:{message:"Simulating load event for already loaded image"}}));else{var O;R4G(W,L||null,I,Y,(O=S.lazy)==null?void 0:O.call(S))}});
return _.H("img",{el:U})},"c");
Y6m.idomCompat=!0;_.of=_.$k(function(S){var p=function(){var U,Y=S.data(),L,I,V,W,O,D,z,Q,J,K,G,X,Z,l,a,N,m,A,q,TG,Je,GG,Zw,Ru,sX,mq,au;var XI={contentMode:(L=S.contentMode)==null?void 0:L.call(S),loadedClass:(I=S.loadedClass)==null?void 0:I.call(S),isPreloaded:(V=S.isPreloaded)==null?void 0:V.call(S),notifyOnLoaded:(W=S.notifyOnLoaded)==null?void 0:W.call(S),notifyOnUnloaded:(O=S.notifyOnUnloaded)==null?void 0:O.call(S),preferredThumbnail:(D=S.preferredThumbnail)==null?void 0:D.call(S),preserveHeight:(z=S.preserveHeight)==
null?void 0:z.call(S),preserveWidth:(Q=S.preserveWidth)==null?void 0:Q.call(S),objectPosition:(J=S.objectPosition)==null?void 0:J.call(S),targetWidth:(K=S.targetWidth)==null?void 0:K.call(S),targetHeight:(G=S.targetHeight)==null?void 0:G.call(S),shouldShowPlaceholder:(X=S.shouldShowPlaceholder)==null?void 0:X.call(S),useWidth:(Z=S.useWidth)==null?void 0:Z.call(S),alt:(l=S.alt)==null?void 0:l.call(S),className:(a=S.className)==null?void 0:a.call(S),onerror:S.onerror,onload:S.onload,style$:((N=S.style$)==
null?void 0:N.call(S))||((m=S.style)==null?void 0:m.call(S)),color:(A=S.color)==null?void 0:A.call(S),width:(q=S.width)==null?void 0:q.call(S),height:(TG=S.height)==null?void 0:TG.call(S),"aria-hidden$":(mq=(Je=S["aria-hidden$"])==null?void 0:Je.call(S))!=null?mq:(GG=S.ariaHidden)==null?void 0:GG.call(S),draggable:(Zw=S.draggable)==null?void 0:Zw.call(S),"data-disabled$":(au=(Ru=S["data-disabled$"])==null?void 0:Ru.call(S))!=null?au:(sX=S.dataDisabled)==null?void 0:sX.call(S)};return sId(Y,XI,(U=
S.hideOn404)==null?void 0:U.call(S))};
return _.H(_.r7,null,_.H(_.bb,{when:function(){var U;return((U=p())==null?void 0:U.type)==="image"}},function(){return _.H(Y6m,{data:function(){return p().image},
getSrc:{cb:function(U,Y){var L=p().image.sources,I=p().config.isPreloaded,V=p().config.useWidth,W=p().config.targetWidth,O=p().config.targetHeight,D=p().config.preferredThumbnail;return _.Dgu(Y,L,I,V,W,O,D)||""}},
config:function(){var U=p().config,Y;for(Y in U)U[Y]===void 0&&delete U[Y];return U},
lazy:S.renderLazy})}),_.H(_.bb,{when:function(){var U;
return((U=p())==null?void 0:U.type)==="icon"}},function(){return _.H(_.QD,{icon:function(){return p().iconName},
role:function(){return p().config.role},
className:function(){return p().config.className},
style:function(){return p().config.style$+";width: "+(p().config.width+"px;height: ")+(p().config.height+"px;color: ")+(p().config.color+";")},
ariaLabel:function(){return p().config["aria-label$"]},
ariaHidden:function(){return p().config["aria-hidden$"]},
dataDisabled:function(){return p().config["data-disabled$"]}})}))},"d");
_.of.idomCompat={callbacks:{callback:!0,onerror:!0,onload:!0}};var L3t=function(S){return function(p){return _.H(zow,null,function(){var U=p.data(),Y=_.Pz(p.config);return _.H(iQ,null,function(){return void S(U,Y)})})}}(w8u),ghk=_.$k(function(S){var p=function(Y){var L,I=_.$X(function(J){L=XG(function(){for(var K=_.d(z()),G=K.next();!G.done;G=K.next()){G=lVX(G.value);
G=typeof G==="string"?document.createTextNode(G):G;if(!(G instanceof Node)){K=new _.y7("Part is not a node",G,typeof G);_.ZP(K);break}J.appendChild(G)}})}),V=iT(function(){return cLG(Y())},{isEqual:e4X}),W=_.os(S.config),O=function(){var J,K=V();
return!((J=W())==null||!J.ariaLabel)||!(K.commandRuns&&K.commandRuns.length!==0||K.paragraphStyleRuns&&K.paragraphStyleRuns.length!==0)},D=iT(W,{isEqual:fVd}),z=function(){var J=txw(V(),D());
p8X(J,D());return V().content?dgX(V().content,J).parts:[]},Q=!0;
_.R8(function(){V();D();if(Q)Q=!1;else{var J=z();Promise.resolve().then(function(){var K=I.value;if(K){K.innerText="";var G;(G=L)==null||G();L=_.G2(K,function(){return _.H(aVd,{parts:J})})}})}});
return _.H("span",{el:I,class:function(){return V()&&lBN(V(),W())},
dir:function(){var J;return((J=W())==null?0:J.userInput)?"auto":void 0},
"aria-label":function(){var J;return O()?(J=W())==null?void 0:J.ariaLabel:void 0},
role:function(){return O()?"text":void 0}})},U;
return((U=S.config)==null?0:U.renderedFromFormattedString)?p(S.text):_.H(_.n,{cond:S.text,then:p})},"e");
ghk.idomCompat=!0;_.i6=_.$k(function(S){var p=_.os(S.text),U=CFk(S);S.renderedFromFormattedString!==void 0&&(U.renderedFromFormattedString=!0);return _.y("attr_string_reactive")?_.H(ghk,{text:p,config:U}):_.H(_.n,{cond:function(){var Y;return p()&&((Y=cLG(p()))==null?void 0:Y.content)},
then:function(){return _.H(L3t,{data:S.text,config:U})},
debugInstance:"Apcuac"})},"f");
_.i6.idomCompat=!0;var Ehd=function(S,p,U){p=p===void 0?"unknown":p;U=U===void 0?{}:U;_.y7.call(this,S+" ("+p+")",Object.assign({},{name:"YtWcwError",tagName:p},U));Object.setPrototypeOf(this,this.constructor.prototype)};
_.r(Ehd,_.y7);_.Nqu=new WeakMap;_.ibw=!1;var $gu,BqN,vhG;_.x2=Symbol("fh");_.BX=Symbol("gh");$gu=Symbol("hh");BqN=new Set(Object.getOwnPropertyNames(Element.prototype));vhG=Symbol("ih");var M7c=_.$k(function(S){return _.H("yt-attributed-string",{"aria-label":S.ariaLabel,hidden:S.hidden,id:S.id,class:S.className,"force-default-style":S.forceDefaultStyle},_.H(_.i6,{text:S.data,ariaLabel:S.ariaLabel,ellipsisTruncate:S.ellipsisTruncate,isOverlay:S.isOverlay,linkInheritColor:S.linkInheritColor,noPreWrap:S.noPreWrap,noWrap:S.noWrap,userInput:S.userInput,noEndpoints:S.noEndpoints,headerRuns:S.headerRuns}))},"g");
_.y("web_wiz_attributed_string")&&_.qm(M7c,"yt-attributed-string",{props:{ariaHidden:_.x2,ariaLabel:_.x2,className:_.x2,ellipsisTruncate:_.x2,isOverlay:_.x2,linkInheritColor:_.x2,noEndpoints:_.x2,noStyleRuns:_.x2,noLinkColor:_.x2,noPreWrap:_.x2,noWrap:_.x2,skipOnClick:_.x2,userInput:_.x2,headerRuns:_.x2,id:_.x2,data:_.x2,hidden:_.x2,forceDefaultStyle:_.x2,text:_.BX,stopPropagation:_.BX,disableUpgrade:_.BX,disable:_.BX,slot:_.BX}});var Ez=function(){return _.w.apply(this,arguments)||this};
_.r(Ez,_.w);Ez.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},w8u(this.data,this.config))};
_.x([_.F(Q0E),_.E("design:type",Object)],Ez.prototype,"ytIdomTemplatingBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],Ez.prototype,"data",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],Ez.prototype,"ariaLabel",void 0);_.x([_.g(),_.E("design:type",Boolean)],Ez.prototype,"disable",void 0);_.x([_.g(),_.E("design:type",Boolean)],Ez.prototype,"ellipsisTruncate",void 0);_.x([_.g(),_.E("design:type",Boolean)],Ez.prototype,"isOverlay",void 0);
_.x([_.g(),_.E("design:type",Boolean)],Ez.prototype,"linkInheritColor",void 0);_.x([_.g(),_.E("design:type",Boolean)],Ez.prototype,"noPreWrap",void 0);_.x([_.g(),_.E("design:type",Boolean)],Ez.prototype,"noWrap",void 0);_.x([_.g(),_.E("design:type",Boolean)],Ez.prototype,"userInput",void 0);_.x([_.g(),_.E("design:type",Boolean)],Ez.prototype,"noEndpoints",void 0);_.x([_.g(),_.E("design:type",Array)],Ez.prototype,"headerRuns",void 0);
Ez=_.x([_.FB({is:"yt-attributed-string",disableElementRegistration:!0})],Ez);
_.y("web_wiz_attributed_string")||_.C(Ez,"yt-attributed-string",function(){if(xQl===void 0){var S=document.createElement("template");_.h(S,"\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");S.content.insertBefore(_.t().content.cloneNode(!0),S.content.firstChild);
S.content.insertBefore(CqI().content.cloneNode(!0),S.content.firstChild);xQl=S}S=xQl;return S},{mode:2});var IMm,dre,UXk;IMm=function(){this.firstThumbnailLoaded=!1};
_.V7E=function(){dre||(dre=new IMm);return dre};
UXk=function(S){var p=_.V7E();p.firstThumbnailLoaded||(p.firstThumbnailLoaded=!0,_.Fg("ftl",S))};
IMm.prototype.reset=function(){this.firstThumbnailLoaded=!1};var A5e=0,pqr=new WeakMap,c5k=0,cX=new Set;var T$j,W3w=function(){return T$j!==void 0?T$j:T$j=document.createElement("template")};
document.head.appendChild(W3w().content);var OPm;var IKR,V3w,mV;_.Uo=_.UX.caches;mV=function(){};
mV.prototype.open=function(S){return _.Uo.open(kJt(S))};
mV.prototype.has=function(S){return _.Uo.has(kJt(S))};
mV.prototype.delete=function(S){return _.Uo.delete(kJt(S))};
mV.prototype.match=function(S,p){var U=this,Y,L,I,V,W,O;return _.T(function(D){switch(D.nextAddress){case 1:return _.k(D,U.keys(),2);case 2:Y=D.yieldResult,L=_.d(Y),I=L.next();case 3:if(I.done){D.jumpTo(5);break}V=I.value;return _.k(D,U.open(V),6);case 6:return W=D.yieldResult,_.k(D,W.match(S,p),7);case 7:if(O=D.yieldResult)return D.return(O);I=L.next();D.jumpTo(3);break;case 5:return D.return()}})};
var TQd=function(){};
_.r(TQd,mV);var kJt=function(S){if(S.includes(":"))throw Error("lh`"+S);return S+":"+_.nA("CacheStorage get")};
TQd.prototype.keys=function(){var S,p,U,Y,L,I,V,W,O;return _.T(function(D){if(D.nextAddress==1)return S=[],p=_.nA("CacheStorage keys"),_.k(D,_.Uo.keys(),2);U=D.yieldResult;Y=_.d(U);for(L=Y.next();!L.done;L=Y.next())I=L.value,V=_.M3e(I),W=V.originalName,O=V.datasyncId,O===p&&S.push(W);return D.return(S)})};var ol=function(){var S=_.w.apply(this,arguments)||this;S.objectURL=null;S.loadTime=Infinity;return S};
_.r(ol,_.w);_.M=ol.prototype;_.M.renderIdom=function(){LKw(this.hostElement);if(this.data){if(!this.width&&!this.height)throw Error("oh");this.setConfig();this.config&&PFE(this.data,this.config,void 0,this.shouldRenderLazy)}};
_.M.objectFitToContentMode=function(S){switch(S){case "CONTAIN":return"CONTENT_MODE_SCALE_ASPECT_FIT";case "FILL":return"CONTENT_MODE_SCALE_TO_FILL";default:return"CONTENT_MODE_SCALE_ASPECT_FILL"}};
_.M.logThumbnailFailureVe=function(){var S=_.bZ(197497);_.pa(_.HX(),S);var p=_.X$();p&&S&&p&&_.fp(p,[S])};
_.M.loadImageFromCacheIfExists=function(S){var p=this,U=S.target;(U==null?0:U.src)&&ORw(U.src).then(function(Y){p.objectURL=_.Kh(Y).toString();p.setSrc(U,p.objectURL)}).catch(function(){})};
_.M.onError=function(S){var p=this;if(_.y("web_use_cache_for_image_fallback")){var U=S.target;U&&ORw(U.src).then(function(Y){p.objectURL=_.Kh(Y).toString();p.setSrc(U,p.objectURL)}).catch(function(){_.y("kevlar_woffle_log_thumbnail_failure_ve")&&p.logThumbnailFailureVe();
_.y("kevlar_woffle_fallback_image")&&p.setSrc(U,"data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mN8XA8AAksBZG7LpHYAAAAASUVORK5CYII=")})}else this.revokeObjectURL()};
_.M.revokeObjectURL=function(){this.objectURL&&(URL.revokeObjectURL(this.objectURL),this.objectURL=null)};
_.M.setConfig=function(){var S=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(p){S.loadImageFromCacheIfExists(p);S.revokeObjectURL();YYN(S.hostElement)},
onerror:function(p){S.onError(p)},
targetHeight:this.height,targetWidth:this.width,shouldShowPlaceholder:_.y("kevlar_thumbnail_bg"),useWidth:this.useWidth}};
_.M.setSrc=function(S,p){p&&(S.src=p)};
_.x([_.F(Q0E),_.E("design:type",Object)],ol.prototype,"ytIdomTemplatingBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],ol.prototype,"data",void 0);_.x([_.g(),_.E("design:type",String)],ol.prototype,"alt",void 0);_.x([_.g(),_.E("design:type",Boolean)],ol.prototype,"ftlEligible",void 0);_.x([_.g(),_.E("design:type",Number)],ol.prototype,"height",void 0);_.x([_.g(),_.E("design:type",Boolean)],ol.prototype,"notifyOnLoaded",void 0);
_.x([_.g(),_.E("design:type",Boolean)],ol.prototype,"notifyOnUnloaded",void 0);_.x([_.g(),_.E("design:type",String)],ol.prototype,"objectFit",void 0);_.x([_.g(),_.E("design:type",String)],ol.prototype,"objectPosition",void 0);_.x([_.g(),_.E("design:type",String)],ol.prototype,"preferredThumbnail",void 0);_.x([_.g(),_.E("design:type",Boolean)],ol.prototype,"preserveHeight",void 0);_.x([_.g(),_.E("design:type",Boolean)],ol.prototype,"preserveWidth",void 0);
_.x([_.g({value:!0}),_.E("design:type",Boolean)],ol.prototype,"useWidth",void 0);_.x([_.g({value:function(){return!_.ub("DISABLE_YT_IMG_DELAY_LOADING",!1)}}),
_.E("design:type",Boolean)],ol.prototype,"shouldRenderLazy",void 0);_.x([_.g(),_.E("design:type",Number)],ol.prototype,"width",void 0);ol=_.x([_.FB({is:"yt-image",disableElementRegistration:!0})],ol);
_.C(ol,"yt-image",function(){if(OPm===void 0){var S=document.createElement("template");_.h(S,"\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");S.content.insertBefore(_.t().content.cloneNode(!0),S.content.firstChild);S.content.insertBefore(W3w().content.cloneNode(!0),S.content.firstChild);
OPm=S}S=OPm;return S},{mode:2});var vl=function(){return _.w.apply(this,arguments)||this};
_.r(vl,_.w);vl.prototype.onShow_=function(){if(this.data&&this.data.onVisibleCommand){var S=_.sW(this.data.onVisibleCommand);S&&this.ytComponentBehavior.resolveCommand(S)}};
_.x([_.F(_.eL.YtComponentBehavior),_.E("design:type",Object)],vl.prototype,"ytComponentBehavior",void 0);_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],vl.prototype,"ytRendererBehavior",void 0);_.x([_.F(_.wk.YtVisibilityBehavior),_.E("design:type",Object)],vl.prototype,"ytVisibilityBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],vl.prototype,"data",void 0);vl=_.x([_.FB({disableElementRegistration:!0,is:"yt-bumper-user-edu-content-view-model"})],vl);
_.C(vl,"yt-bumper-user-edu-content-view-model",function(){if(HmE===void 0){var S=document.createElement("template");_.h(S,'\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>');
S.content.insertBefore(_.t().content.cloneNode(!0),S.content.firstChild);var p=S.content,U=p.insertBefore;kgj===void 0&&(kgj=document.createElement("template"));var Y=kgj;U.call(p,Y.content.cloneNode(!0),S.content.firstChild);HmE=S}S=HmE;return S},{mode:_.y("live_chat_enable_sink_wrapper")?2:0});var HPj;var Drw,zmm=function(){if(Drw!==void 0)return Drw;var S=document.createElement("template");_.h(S,'\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');
S.content.insertBefore(_.t().content.cloneNode(!0),S.content.firstChild);var p=S.content,U=p.insertBefore;HPj===void 0&&(HPj=document.createElement("template"));var Y=HPj;U.call(p,Y.content.cloneNode(!0),S.content.firstChild);return Drw=S};var QBm;_.$2={};QBm=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"]);_.$2.YtTaskEmitterBehavior={created:function(){this.cachedProviderNode_=null},
detached:function(){this.cachedProviderNode_=null},
getTaskManager:function(){var S=this.getContext_();return S?S.getTaskManager():_.PA},
getContext_:function(){if(this.shouldUseTaskManager()){if(!this.cachedProviderNode_){var S=_.cv(this.hostElement,"yt-get-context-provider",{});S.detail&&S.detail.contextProvider?this.cachedProviderNode_=S.detail.contextProvider:this.hostElement.parentElement&&(this.cachedProviderNode_=this)}if(this.cachedProviderNode_&&this.cachedProviderNode_.getProvidedContext&&this.cachedProviderNode_.getProvidedContext())return this.cachedProviderNode_.getProvidedContext()}},
shouldUseTaskManager:function(){return QBm.has(this.hostElement.localName)},
getNetworkManager:function(){var S=this.getContext_();if(S)return S.getNetworkManager()}};var n6E,n_H,yRd,JRd;_.ij=function(S){var p=n_H.get(S);if(p&&(p=p.pop()))return JRd++,p;yRd++;try{var U=document.createElement(S)}catch(Y){throw new _.y7("ElementPool failed to create element",S,Y.message);}return U};
n6E=function(S){var p=S.is;if(p){var U=n_H.get(p);U||(U=[],n_H.set(p,U));var Y=_.g7("ELEMENT_POOL_CONFIG")||{};U.length>=(Y[p]!==void 0?Y[p]:_.g7("ELEMENT_POOL_DEFAULT_CAP",0))||U.push(S)}else _.eP(new _.y7("Element pool should only handle custom elements:",S.nodeName))};
n_H=new Map;yRd=0;JRd=0;var YL=new WeakMap,QeG=new WeakMap;var bPE;_.NH=function(S,p,U){U=U===void 0?_.jC():U;this.JSC$11686_defaultPriority=S;this.signal=p;this.scheduler=U;this.nextJobDescriptor=0;this.JSC$11686_parkedJobs=[];this.scheduledJobs=new Map};
_.Bl=function(S,p){if(p){var U=_.Pt();S.signal&&!_.Zr(U,S.signal)?(U.addListener(S.signal,function(){S.processSignal()}),S.JSC$11686_parkedJobs.push({job:p,
priority:void 0})):K3Q(S,p)}};
bPE=function(S,p){if(p!==S.JSC$11686_defaultPriority){S.JSC$11686_defaultPriority=p;for(var U=_.d(S.scheduledJobs.values()),Y=U.next();!Y.done;Y=U.next())Y=Y.value,S.scheduler.cancelJob(Y.jobId),Y.jobId=S.scheduler.addJob(Y.jobWrapper,p)}};
_.NH.prototype.flushJobs=function(){bPE(this,10);this.processSignal()};
_.NH.prototype.cancel=function(){for(var S=_.d(this.scheduledJobs),p=S.next();!p.done;p=S.next()){var U=_.d(p.value);p=U.next().value;U=U.next().value;this.scheduler.cancelJob(U.jobId);this.scheduledJobs.delete(p)}this.JSC$11686_parkedJobs=[]};
_.NH.prototype.processSignal=function(){for(var S=_.d(this.JSC$11686_parkedJobs),p=S.next();!p.done;p=S.next())p=p.value,K3Q(this,p.job,p.priority);this.JSC$11686_parkedJobs=[]};
var K3Q=function(S,p,U){U=U||S.JSC$11686_defaultPriority;if(U===10)SM(p);else{var Y=S.nextJobDescriptor++,L=function(){p();S.scheduledJobs.delete(Y)},I=S.scheduler.addJob(L,U);
S.scheduledJobs.set(Y,{jobWrapper:L,jobId:I,priority:U})}};_.cH(bRX);var jee={propNames:[],synchronous:!1,enableUnsafeRenderOnNotifyPath:!1};jVw({beforeVisit:function(S){if(cT.has(S.type)){var p;(p=S.props).idomKey!=null||(p.idomKey=S.type)}else S.type.TAG_NAME&&(AF=S.type.TAG_NAME)},
afterRender:function(S,p){var U;AF=(U=p==null?void 0:p.type)!=null?U:""},
didPatch:function(){AF=""}});var jBq;_.qH={};jBq={"yt-live-chat-text-message-renderer":!0,"yt-live-chat-author-badge-renderer":!0};_.qH.YtRendererstamperBehavior=[_.$2.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 S in this.stampDom){var p=this.stampDom[S];p&&p.id&&this.addReactiveSchema({type:"observe",method:{methodName:HRN(p.id),args:[{type:"wildcard",path:S}]}})}else{(S=(this.constructor.generatedFrom||this).observers)||(S=[]);for(p in this.stampDom){var U=this.stampDom[p];U&&U.id&&S.push(HRN(U.id)+"("+p+".*)")}this.constructor.generatedFrom.observers=S}},
addStampDomObserverFns_:function(){for(var S in this.stampDom){var p=this.stampDom[S];p.id?(this[HRN(p.id)]=this.rendererStamperObserver_.bind(this,S,p.id),this.hasDataPath_[S]=!1):(p=new _.y7("Bad rendererstamper config",this.is+":"+S),_.ZP(p))}},
rendererStamperObserver_:function(S,p,U){if(U.path==S){if(U.value===void 0&&!this.hasDataPath_[S])return;this.hasDataPath_[S]=U.value!==void 0}this.rendererStamperApplyChangeRecord_(S,p,U)},
rendererStamperApplyChangeRecord_:function(S,p,U){var Y=this.renderJobsMap_[p],L=null;S==U.path?(U=U.value,_.Ae(U)||(U=U===void 0||U===null?[]:[U]),S=this.stampDom[S],S.mapping&&(L=this.stampDomArray_.bind(this,U,p,S.mapping,S.reuseComponents,S.events,S.stamperStableList)),Y&&Y.cancel(),U=S.usePageScheduler?this.getTaskManager():void 0,Y||S.initialRenderPriority==void 0)?S.renderPriority==void 0||Y||(Y=new _.NH(S.renderPriority,S.waitForSignal,U),this.renderJobsMap_[p]=Y):(Y=new _.NH(S.initialRenderPriority,
S.waitForSignal,U),this.renderJobsMap_[p]=Y,L=function(I,V){I();bPE(V,10)}.bind(this,L,Y)):L=S+".splices"==U.path?this.stampDomArraySplices_.bind(this,S,p,U.value):this.forwardRendererStamperChanges_.bind(this,S,p,U);
Y?_.Bl(Y,L):L()},
forwardRendererStamperChanges_:function(S,p,U){var Y=U.path.slice(S.length+1),L=this.getStampContainer_(p),I=Y.indexOf("."),V=Y.substring(0,I),W=!1,O=0,D=parseInt(V,0);if(V[0]=="#"){W=parseInt(V.substring(1),0);D=this.get(S);var z=this.get([S,V]);D[W]==z?O=W:O=D.indexOf(z);W=!0}else isNaN(D)||(O=D,W=!0);W&&(Y=Y.substring(V.length+1),I=Y.indexOf("."));V=_.K9(L).children[O];var Q;if(L=(Q=V==null?void 0:V.polymerController)!=null?Q:V)Y="data"+Y.slice(I),typeof L.notifyPath!=="function"?_.eP(new _.y7("notifyPath missing",
this.is+": "+S+", "+p)):U.value?L.notifyPath(Y,U.value):L.notifyPath(Y)},
stampDomArraySplices_:function(S,p,U){if(U&&U.indexSplices){var Y=this.getStampContainer_(p);if(Y){for(var L=_.K9(Y),I=zhe(this.stampDom[S].reuseComponents),V=U.indexSplices.length,W=0;W<V;W++){for(var O=U.indexSplices[W],D=L.children[O.index],z=O.removed.length;z>0;z--)D&&D.parentElement&&(_.K9(D.parentElement).removeChild(D),I&&n6E(D),D=L.children[O.index]);z=this.stampDom[S].mapping;for(var Q=O.index+O.addedCount,J=document.createDocumentFragment(),K=I,G=O.index;G<Q;G++){var X=O.object[G],Z=kHN(z,
X);if(Z){var l=z[Z];X=X[Z];Z=this.getComponentName_(l,X);var a=D?YL.has(D):!1;K&&D&&D.is==Z&&a?(Z=D,this.telemetry_.reuse++,D=D.nextElementSibling):K&&D&&a?(Z=this.createComponent_(l,X,I),a=_.K9(D).nextElementSibling,L.insertBefore(Z,a),yPw(this.is,L,D,I),D=a):(K=!1,Z=this.createComponent_(l,X,I),J.appendChild(Z));this.deferRenderStamperBinding_(Z,l,X)}else l=new _.y7("Unimplemented type",S,p,Y.tagName,Object.keys(X)[0]),_.ZP(l)}L.insertBefore(J,D)}this.flushRenderStamperComponentBindings_();this.stampDom[S].events&&
_.cv(this.hostElement,"yt-rendererstamper-finished",{container:Y})}else S=new _.y7("Container object not found",p,this.hostElement?this.hostElement.is:""),_.ZP(S)}},
stampDomArray_:function(S,p,U,Y,L,I){var V=this.getStampContainer_(p);if(V)if(p=_.K9(V),Y=zhe(Y),S){var W=0,O=0,D;if(I=I===void 0?_.ub("STAMPER_STABLE_LIST",!1):I||!1)for(D=p.firstElementChild;D&&!YL.has(D)&&S.length>O;){I=S[O];var z=kHN(U,I);if(z){if(this.getComponentName_(U[z],I[z])!=D.is){var Q=this.createComponent_(U[z],I[z],Y),J=_.K9(D).nextElementSibling;J?p.insertBefore(Q,J):p.appendChild(Q);yPw(this.is,p,D,Y);D=Q}else this.telemetry_.reuse++;this.deferRenderStamperBinding_(D,U[z],I[z]);W++;
O++;D=_.K9(D).nextElementSibling}else O++}KKr(this.is,p,W,Y);W=D;if(S.length>O){I=document.createDocumentFragment();for(z=S.length;O<z;O++)if(Q=S[O],J=kHN(U,Q))D=this.createComponent_(U[J],Q[J],Y),this.deferRenderStamperBinding_(D,U[J],Q[J]),I.appendChild(D);W&&_.K9(W).parentNode&&D&&!YL.has(D)?p.insertBefore(I,W):p.appendChild(I)}this.flushRenderStamperComponentBindings_();this.markDirty&&this.markDirty();L&&_.cv(this.hostElement,"yt-rendererstamper-finished",{container:V})}else KKr(this.is,p,0,
Y);else S=new _.y7("Container object not found",p,this.hostElement?this.hostElement.is:""),_.ZP(S)},
getStampContainer_:function(S){return this.$&&this.$[S]||_.tB(this.hostElement).querySelector("#"+S)},
getComponentName_:function(S,p){return typeof S==="string"?S:S.matcher?S.matcher.call(this,p):S.component},
createComponent_:function(S,p,U){S=this.getComponentName_(S,p);try{var Y=SV.has(S)||cT.has(S);if(U&&!Y){var L=_.ij(S);try{_.Ms(L)}catch(I){U="Failed to clear styles for "+S+".",I.message&&(U+=" Original error: "+I.message),_.eP(new _.y7(U))}}else L=document.createElement(S)}catch(I){return L="YtRendererStamperBehavior failed to create "+S+".",I.message&&(L+=" Original description: "+I.message),I.message="YtRendererStamperBehavior failed to create element",_.gK(I,L),jBq.hasOwnProperty(S)?_.eP(I):_.ZP(I),
document.createElement("SPAN")}this.telemetry_.create++;return L},
deferRenderStamperBinding_:function(S,p,U){this.deferredBindingTasks_.push({component:S,typeOrConfig:p,data:U})},
flushRenderStamperComponentBindings_:function(){for(var S=0,p=this.deferredBindingTasks_.length;S<p;S++){var U=this.deferredBindingTasks_[S];if(!U)break;var Y=void 0,L=void 0,I=void 0,V=void 0,W=U.component,O=U.typeOrConfig;U=U.data;var D=(V=W.polymerController)!=null?V:W;V=W.loggingStatus;try{V&&(V.isRendererStamper=!0);if(typeof O!=="string"){for(I in O.attributes)O.attributes[I]===!0?W.setAttribute(I,""):O.attributes[I]===!1?W.removeAttribute(I):W.setAttribute(I,O.attributes[I]);for(L in O.params)D[L]=
O.params[L],W!==D&&JF(W.localName,L,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE");for(Y in O.properties){var z=O.properties[Y];if(z){var Q=DXR(z);D[Y]=this.get(Q);W!==D&&JF(W.localName,Y,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE");if(Y==="on-tap"||Y==="on-click"){var J=this.get(Q);W.addEventListener("click",J);QeG.set(W,{property:Y,listener:{type:"element",eventName:"click",handler:J}})}}else{var K=new _.y7("Undefined property binding",Y);_.ZP(K)}}}if(O.classListBinding){var G=DXR(O.classListBinding),
X=G?this[G]:null;if(X)for(Y=0;Y<X.length;Y++)_.U2(W,X[Y],!0)}D.data=U}finally{V&&(V.isRendererStamper=!1)}if(Y=YL.get(W))W.hidden=!1,YL.delete(W),_.PA.cancelJob(Y)}this.deferredBindingTasks_.length=0}}];_.Aj={YtActionHandlerBehavior:[{actionMap:{},attached:function(){this.registerActionMap(this.actionMap)},
detached:function(){this.unregisterActionMap(this.actionMap)},
registerActionMap:function(S){for(var p=_.xv.getInstance(),U=_.d(Object.keys(S)),Y=U.next();!Y.done;Y=U.next()){var L=Y.value;Y=S[L];if(this&&this[Y]){var I=p.actionRoutingMap.get(L);I||(I=new Map,p.actionRoutingMap.set(L,I));p.registerActionHandler(this,L,this[Y].bind(this),I)}else L=Error("gd"),L.params=Y,_.w7(L)}},
unregisterActionMap:function(S){_.me(_.xv.getInstance(),S,this)}}]};var Iy=new Map([["FACE_HAPPY",{name:"animated_face_happy_light",nameDarkTheme:"animated_face_happy_dark",path:"https://www.gstatic.com/youtube/img/surveys/lottie/animated_smileys/light_mode/face_happy.json",pathDarkTheme:"https://www.gstatic.com/youtube/img/surveys/lottie/animated_smileys/dark_mode/face_happy.json",lottiePlayerProps:{animationConfig:{loop:!1,autoplay:!1}},type:"FACE_HAPPY",totalFrames:121,lazyLoad:!1}],["FACE_MEH",{name:"animated_face_meh_light",nameDarkTheme:"animated_face_meh_dark",
path:"https://www.gstatic.com/youtube/img/surveys/lottie/animated_smileys/light_mode/face_meh.json",pathDarkTheme:"https://www.gstatic.com/youtube/img/surveys/lottie/animated_smileys/dark_mode/face_meh.json",lottiePlayerProps:{animationConfig:{loop:!1,autoplay:!1}},type:"FACE_MEH",totalFrames:121,lazyLoad:!1}],["FACE_SAD",{name:"animated_face_sad_light",nameDarkTheme:"animated_face_sad_dark",path:"https://www.gstatic.com/youtube/img/surveys/lottie/animated_smileys/light_mode/face_sad.json",pathDarkTheme:"https://www.gstatic.com/youtube/img/surveys/lottie/animated_smileys/dark_mode/face_sad.json",
lottiePlayerProps:{animationConfig:{loop:!1,autoplay:!1}},type:"FACE_SAD",totalFrames:121,lazyLoad:!1}],["FACE_UNHAPPY",{name:"animated_face_unhappy_light",nameDarkTheme:"animated_face_unhappy_dark",path:"https://www.gstatic.com/youtube/img/surveys/lottie/animated_smileys/light_mode/face_unhappy.json",pathDarkTheme:"https://www.gstatic.com/youtube/img/surveys/lottie/animated_smileys/dark_mode/face_unhappy.json",lottiePlayerProps:{animationConfig:{loop:!1,autoplay:!1}},type:"FACE_UNHAPPY",totalFrames:121,
lazyLoad:!1}],["FACE_VERY_HAPPY",{name:"animated_face_very_happy_light",nameDarkTheme:"animated_face_very_happy_dark",path:"https://www.gstatic.com/youtube/img/surveys/lottie/animated_smileys/light_mode/face_very_happy.json",pathDarkTheme:"https://www.gstatic.com/youtube/img/surveys/lottie/animated_smileys/dark_mode/face_very_happy.json",lottiePlayerProps:{animationConfig:{loop:!1,autoplay:!1}},type:"FACE_VERY_HAPPY",totalFrames:121,lazyLoad:!1}],["LIKE",{name:"animated_like_light",nameDarkTheme:"animated_like_dark",
path:"https://www.gstatic.com/youtube/img/lottie/animated_like_icon/animated_like_icon_light_v4.json",pathDarkTheme:"https://www.gstatic.com/youtube/img/lottie/animated_like_icon/animated_like_icon_dark_v4.json",lottiePlayerProps:{animationConfig:{loop:!1,autoplay:!1}},type:"LIKE",totalFrames:60,lazyLoad:!0}],["NOTIFICATION_BELL",{name:"notification_bell_light",nameDarkTheme:"notification_bell_dark",path:"https://www.gstatic.com/youtube/img/lottie/subscribe_action/subscribe_action_bell_icon_light.json",
pathDarkTheme:"https://www.gstatic.com/youtube/img/lottie/subscribe_action/subscribe_action_bell_icon_dark.json",lottiePlayerProps:{animationConfig:{loop:!1,autoplay:!1}},type:"NOTIFICATION_BELL",totalFrames:79,lazyLoad:!1}]]);var MF;var dY=new Map;var usq=window.matchMedia("(forced-colors: active)").matches;var rRq;var GJt;var fKG=new _.$g("LOTTIE_LOADER_TOKEN");_.qm(_.$k(function(S){return _.H("ytd-lottie-player",{id:S.id,hidden:S.hidden,class:S.className,"aria-label":S.ariaLabel,style:"display: block;"},_.H(_.Tw,{data:S.data,animationName:function(){var p;return((p=S.data().animationConfig)==null?void 0:p.name)||""},
animationRef:function(){return S.data().animationRef}}))},"h"),"ytd-lottie-player",{props:{data:_.x2,
id:_.x2,hidden:_.x2,className:_.x2,ariaLabel:_.x2}});var tj=function(){var S=_.w.apply(this,arguments)||this;S.animationRef={};return S};
_.r(tj,_.w);_.M=tj.prototype;
_.M.handlePropertyChange=function(){var S=this.animatedIcon,p=this.active,U=this.isDarkTheme;if(S){var Y=this.previousActive!==p;this.previousActive=p;this.animationRef.lottieEl?Y&&this.toggleAnimation(p,S.totalFrames):p?this.initializeAnimationAsToggled(S.lottiePlayerProps,S.totalFrames):this.initializeAnimationAsUntoggled(S.lottiePlayerProps);S.lottiePlayerProps.animationRef=this.animationRef;this.animatedIconType=S.type;this.lottiePlayerProps=this.computeLottiePlayerProps(S,U)}};
_.M.computeLottiePlayerProps=function(S,p){var U=this.deepCloneLottiePlayerProps(S);p?(p=S.nameDarkTheme,S=S.pathDarkTheme):(p=S.name,S=S.path);U.animationConfig.name=p;(p=dY.get(S))?U.animationConfig.animationData=p:U.animationConfig.path=S;return U};
_.M.initializeAnimationAsToggled=function(S,p){S.animationConfig.initialSegment=[p-1,p]};
_.M.initializeAnimationAsUntoggled=function(S){S.animationConfig.initialSegment=void 0};
_.M.toggleAnimation=function(S,p){if(S){var U;(U=this.animationRef.lottieEl)==null||U.playSegments([0,p],!0)}else{var Y;(Y=this.animationRef.lottieEl)==null||Y.playSegments([0,1],!0)}};
_.M.deepCloneLottiePlayerProps=function(S){var p=Object.assign({},S.lottiePlayerProps.animationConfig);S=Object.assign({},S.lottiePlayerProps);S.animationConfig=p;return S};
tj.prototype.handlePropertyChange=tj.prototype.handlePropertyChange;_.x([_.g(),_.E("design:type",Object)],tj.prototype,"animatedIcon",void 0);_.x([_.g({value:!1}),_.E("design:type",Boolean)],tj.prototype,"active",void 0);_.x([_.g(),_.E("design:type",Boolean)],tj.prototype,"isDarkTheme",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",String)],tj.prototype,"animatedIconType",void 0);_.x([_.g(),_.E("design:type",Boolean)],tj.prototype,"previousActive",void 0);
_.x([_.g(),_.E("design:type",Object)],tj.prototype,"lottiePlayerProps",void 0);_.x([_.g(),_.E("design:type",Object)],tj.prototype,"animationRef",void 0);_.x([_.T4("animatedIcon","active","isDarkTheme"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],tj.prototype,"handlePropertyChange",null);tj=_.x([_.FB({is:"yt-animated-icon",disableElementRegistration:!0})],tj);
_.C(tj,"yt-animated-icon",function(){if(GJt===void 0){var S=document.createElement("template");_.h(S,'\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>');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);var p=S.content,U=p.insertBefore;rRq===void 0&&(rRq=document.createElement("template"));var Y=rRq;U.call(p,Y.content.cloneNode(!0),S.content.firstChild);GJt=S}S=GJt;return S},{mode:2});var hmE;var RmH;var E6e=_.$k(function(S){var p=_.$v(),U=XM(function(){return{value:null}});
_.FG(function(){var L;(L=U.value)==null||L.cancel()});
var Y=_.nS(S.data,{equals:function(L,I){return L.iconName===I.iconName&&L.iconStyle===I.iconStyle&&L.iconSize===I.iconSize&&L.iconSetName===I.iconSetName&&L.iconSelected===I.iconSelected}},"aoiXAb");
_.R8(function(){var L,I=(L=S.options)==null?void 0:L.call(S);xXu(p,U,Y(),I)});
return _.H("span",{class:"yt-icon-shape",el:p})},"i");
E6e.idomCompat=!0;var hsX=["youtube_fill","youtube_outline"];var F3j=new _.Jh({type:"iconset",value:void 0}),cl=function(){var S=_.w.apply(this,arguments)||this;S.isDarkTheme=document.documentElement.hasAttribute("dark");S.iconName="";S.iconsetName="yt-icons";S.iconset=null;S.missingIconSet=!1;S.iconType=null;S.iconShapeDataSignal=_.kj(void 0,void 0,"RQ9kUb");S.renderingOptionsSignal=_.kj({iconWidth:"100%",iconHeight:"100%",iconFilter:S.iconFilter},void 0,"qtx8Ef");S.wizHasRendered=!1;S.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return S};
_.r(cl,_.w);cl.prototype.onDarkModeToggledAction=function(S){S!==this.isDarkTheme&&(this.isDarkTheme=S)};
cl.prototype.handlePropertyChange=function(){var S=this,p,U,Y,L,I,V,W,O,D,z;return _.T(function(Q){switch(Q.nextAddress){case 1:if(p=!S.icon&&!S.iconName||!S.isAttached)return Q.return();U=S;Y=U.icon;L=U.size;I=U.defaultToFilled;V=U.active;W=U.targetContainer;S.toggleContainerClass(W);_.y("kevlar_use_wil_icons")&&Y&&(O=JRw(Y),S.iconType=O.length?O[1]:null);if(Y){Q.jumpTo(2);break}S.iconsetName="";S.iconName="";return _.k(Q,S.renderIcon(W,Y),3);case 3:return Q.return();case 2:D=cl.computeIcon(Y);z=
JRw(D);z.length&&(S.iconsetName=z[0],S.iconName=z[1]);if(!_.y("kevlar_use_wil_icons")){Q.jumpTo(4);break}return _.k(Q,cl.getIconShapeData(S.iconType,S.active,S.defaultToFilled,S.size,S.iconsetName),5);case 5:S.iconShapeData=Q.yieldResult;case 4:if(S.shouldRenderIconShape(W)){Q.jumpTo(6);break}return _.k(Q,S.determineIconSet(D,V,I,L,W),6);case 6:return _.k(Q,S.renderIcon(W,Y),0)}})};
cl.prototype.toggleContainerClass=function(S){S?this.hostElement.classList.add("external-container"):this.hostElement.classList.remove("external-container")};
cl.computeIcon=function(S){return!_.y("default_to_innertube_icon")||S.indexOf(":")>0?S:_.If(S)};
_.M=cl.prototype;_.M.determineIconSet=function(S,p,U,Y){var L=this;return _.T(function(I){return I.nextAddress==1?_.y("kevlar_system_icons")||_.g7("INNERTUBE_CLIENT_NAME")==="WEB_REMIX"||_.g7("INNERTUBE_CLIENT_NAME")==="WEB_CREATOR"?_.k(I,L.switchToYtSysIconset(S,p,U,Y),3):I.jumpTo(2):I.nextAddress!=2?I.return():_.k(I,L.useYtSysIconsetForMissingIcons(S,p,U,Y),0)})};
_.M.switchToYtSysIconset=function(S,p,U,Y){var L=this,I,V,W,O,D,z,Q;return _.T(function(J){switch(J.nextAddress){case 1:if(!S||L.iconsetName!=="yt-icons"&&L.iconsetName!=="yt-sys-icons"){J.jumpTo(0);break}I=JRw(S);V=I[1];V=_.Xyw(V);_.y("enable_polymer_icons_replace_underscores_dash")&&V.includes("_filled")&&(V=V.replace(/_filled/g,"-filled"));return _.k(J,Mm(V,!0),3);case 3:return W=J.yieldResult,_.k(J,Mm(V,!1),4);case 4:if((O=J.yieldResult)||p&&W)L.iconsetName="yt-sys-icons";L.iconName=L.getIconName(V,
p,U,O,W);if(Y===24){J.jumpTo(0);break}D="yt-sys-icons"+Y+":"+L.iconName;return _.k(J,Mm(D,!1,!0),6);case 6:return z=J.yieldResult,_.k(J,Mm(D,!0,!0),7);case 7:Q=J.yieldResult;L.iconName=L.getIconName(V,p,U,z,Q);if(!p&&z||p&&Q)L.iconsetName="yt-sys-icons"+Y;_.OV(J)}})};
_.M.getIconName=function(S,p,U,Y,L){S.includes("-filled")&&(S=S.replace("-filled",""));return L&&(p||U)?S+"-filled":S};
_.M.useYtSysIconsetForMissingIcons=function(S,p,U,Y){var L=this,I,V;return _.T(function(W){if(W.nextAddress==1)return L.iconsetName!=="yt-icons"?W.jumpTo(0):_.k(W,Mm(L.iconName,!1,!1,!0),3);if(W.nextAddress!=4)return I=W.yieldResult,_.k(W,Mm(L.iconName,!1),4);V=W.yieldResult;if(I||!V)return W.jumpTo(0);L.iconsetName="yt-sys-icons";return _.k(W,L.switchToYtSysIconset(S,p,U,Y),0)})};
_.M.onIconsetAdded=function(){this.renderIcon(this.targetContainer,this.icon)};
cl.getIconManager=function(){return _.T(function(S){try{return S.return(_.tW().resolve(_.dx))}catch(p){return S.return(new Promise(function(U){_.Pt().parkOrScheduleJob(function(){U(_.tW().resolve(_.dx))},2,"ci")}))}})};
cl.getIconShapeData=function(S,p,U,Y,L){p=p===void 0?!1:p;U=U===void 0?!1:U;Y=Y===void 0?24:Y;L=L===void 0?"yt-icons":L;var I,V,W,O,D,z;return _.T(function(Q){if(Q.nextAddress==1){if(!S)return Q.return(void 0);I=S.toLowerCase();V=I.endsWith("_filled")||I.endsWith("-filled");return _.k(Q,cl.getIconManager(),2)}W=Q.yieldResult;O=p||U||V?"youtube_fill":"youtube_outline";D={iconName:I,iconStyle:O,iconSize:Y,iconSetName:L};z=!!W.resolveIcon(D);z||(D.iconSize=void 0,z=!!W.resolveIcon(D));!z&&V&&(D.iconName=
I.substring(0,I.length-7),D.iconSize=Y,z=!!W.resolveIcon(D),z||(D.iconSize=void 0,z=!!W.resolveIcon(D)));z||(D.iconStyle=void 0,z=!!W.resolveIcon(D));z||_.eP(new _.y7("Icon not supported",{iconName:D.iconName,iconStyle:D.iconStyle,iconSize:D.iconSize,iconType:I}));return Q.return(z?D:void 0)})};
_.M=cl.prototype;_.M.shouldRenderIconShape=function(S){if(!_.y("kevlar_use_wil_icons")||!this.iconType||!this.iconShapeData||this.isAnimatedIcon)return!1;S=this.getContainer(S);return!wqe(S,this.icon)};
_.M.renderIcon=function(S,p){var U=this,Y,L,I,V,W,O,D,z;return _.T(function(Q){switch(Q.nextAddress){case 1:if(p&&U.icon!==p)return Q.return();Y=U.getContainer(S);L=wqe(Y,U.icon);if(U.shouldRenderIconShape(S)&&U.iconType)return U.applyIconShape(L,Y),Q.return();U.removeIconShape();if(!Y)return Q.return();U.iconName===""&&U.iconset&&Y&&(U.removeStaticIcon(U.iconset,Y),L&&U.removeAnimatedIcon(Y));if(U.iconName===""&&U.iconset||!U.iconsetName||!F3j)return Q.return();U.iconset=F3j.byKey(U.iconsetName);
if(!U.iconset)return U.missingIconSet=!0,window.addEventListener("iron-iconset-added",_.d9(U,U.onIconsetAdded)),Q.return();U.missingIconSet&&(U.missingIconSet=!1,window.removeEventListener("iron-iconset-added",_.d9(U,U.onIconsetAdded)));V=(I=L||U.isAnimatedIcon?g6w(U.icon):void 0)&&!I.lazyLoad;O=I&&((W=I)==null?void 0:W.lazyLoad)&&(I.lottiePlayerProps.animationConfig.animationData?!0:dY.get(U.isDarkTheme?I.pathDarkTheme:I.path)?!0:!1);if(V||O)return U.applyAnimatedIcon(Y,I,U.iconset),Q.return();if(O||
(D=I)==null||!D.lazyLoad){Q.jumpTo(2);break}z=aKw(I,U.isDarkTheme);U.applyStaticIcon(U.iconset,Y,U.iconName,S,L);return _.k(Q,z,3);case 3:return _.k(Q,U.renderIcon(U.targetContainer,U.icon),4);case 4:return Q.return();case 2:U.applyStaticIcon(U.iconset,Y,U.iconName,S,L),_.OV(Q)}})};
_.M.getContainer=function(S){var p,U=(p=xbw(this.hostElement))==null?void 0:p.host;p=!!U&&!!U.polymerController;if(!S||p)return S?this.getTargetContainer(S,U):this.hostElement};
_.M.getTargetContainer=function(S,p){var U=_.tB(p).querySelector("#"+S);U||(S=new _.y7("yt-icon container missing",p.is,S),_.ZP(S));return U};
_.M.applyStaticIcon=function(S,p,U,Y,L){L&&this.removeAnimatedIcon(p);this.removeIconShape();L=L&&!!this.iconType&&!!this.iconShapeData&&_.y("kevlar_use_wil_icons");try{L?this.applyIconShape(!1,p):S.applyIcon(p,U)}catch(I){this.handleError(I,Y,p)}};
_.M.applyIconShape=function(S,p){this.iconset&&p&&(this.removeStaticIcon(this.iconset,p),S&&this.removeAnimatedIcon(p));S={iconWidth:"100%",iconHeight:"100%",iconFilter:this.iconFilter};var U=_.d(this.iconShapeDataSignal);p=U.next().value;U=U.next().value;var Y=_.d(this.renderingOptionsSignal),L=Y.next().value;Y=Y.next().value;U(this.iconShapeData);Y(S);if(!this.wizHasRendered)for(this.wizHasRendered=!0,S=_.d(mXG(p,L)).next().value;S.firstChild;)_.tB(this.hostElement).appendChild(S.firstChild)};
_.M.removeIconShape=function(){if(_.y("kevlar_use_wil_icons"))(0,this.iconShapeDataSignal[1])(void 0)};
_.M.removeStaticIcon=function(S,p){S.removeIcon(p)};
_.M.applyAnimatedIcon=function(S,p,U){this.removeStaticIcon(U,S);this.removeIconShape();var Y;U=this.animatedIconElement&&((Y=this.animatedIconElement.polymerController.animatedIcon)==null?void 0:Y.type)===p.type;if(this.animatedIconElement&&U){this.animatedIconElement.polymerController.animatedIcon=p;var L;((L=this.animatedIconElement)==null?void 0:L.polymerController.active)!==this.active&&(this.animatedIconElement.polymerController.active=this.active)}else this.animatedIconElement&&this.removeAnimatedIcon(S),
this.animatedIconElement=document.createElement("yt-animated-icon"),this.animatedIconElement.polymerController.animatedIcon=p,this.animatedIconElement.polymerController.active=this.active,this.animatedIconElement.polymerController.isDarkTheme=this.isDarkTheme,_.y("kevlar_use_wil_icons")?S.insertBefore(this.animatedIconElement,S.childNodes[0]):(S=_.tB(S),S.insertBefore(this.animatedIconElement,S.childNodes[0]))};
_.M.removeAnimatedIcon=function(S){_.y("kevlar_use_wil_icons")?this.animatedIconElement&&S.contains(this.animatedIconElement)&&S.removeChild(this.animatedIconElement):(S=_.tB(S),this.animatedIconElement&&S.contains(this.animatedIconElement)&&S.removeChild(this.animatedIconElement));this.animatedIconElement=void 0};
_.M.handleError=function(S,p,U){_.gK(S,this.iconName,p,U);p=wqe(U,this.icon);var Y=!1;window.location.href.includes("JpymaW6Lh2w")?Y=!0:U._svgIcon&&(U=(U=U._svgIcon.parentNode)?U.tagName:"unknown",_.gK(S,U),U==="YT-ICON"&&S.name==="NotFoundError"?Y=!0:S.name==="NotFoundError"&&p&&(Y=!0));Y?_.eP(S):_.ZP(S)};
_.$u.Object.defineProperties(cl,{template:{configurable:!0,enumerable:!0,get:function(){if(RmH===void 0){var S=document.createElement("template");_.h(S,"\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");S.content.insertBefore(_.t().content.cloneNode(!0),S.content.firstChild);var p=S.content,U=p.insertBefore;
hmE===void 0&&(hmE=document.createElement("template"));var Y=hmE;U.call(p,Y.content.cloneNode(!0),S.content.firstChild);RmH=S}S=RmH;return S}}});
cl.prototype.handlePropertyChange=cl.prototype.handlePropertyChange;_.x([_.F(_.Aj.YtActionHandlerBehavior),_.E("design:type",Object)],cl.prototype,"actionHandlerBehavior",void 0);_.x([_.g(),_.E("design:type",String)],cl.prototype,"icon",void 0);_.x([_.g({value:!1}),_.E("design:type",Boolean)],cl.prototype,"active",void 0);_.x([_.g({value:!1}),_.E("design:type",Boolean)],cl.prototype,"defaultToFilled",void 0);_.x([_.g({value:!1}),_.E("design:type",Boolean)],cl.prototype,"isAnimatedIcon",void 0);
_.x([_.g({value:24}),_.E("design:type",Number)],cl.prototype,"size",void 0);_.x([_.g({value:""}),_.E("design:type",String)],cl.prototype,"targetContainer",void 0);_.x([_.g(),_.E("design:type",Object)],cl.prototype,"animatedIconElement",void 0);_.x([_.g(),_.E("design:type",Object)],cl.prototype,"isDarkTheme",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Boolean)],cl.prototype,"ariaHidden",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",String)],cl.prototype,"ariaLabel",void 0);
_.x([_.g({reflectToAttribute:!0}),_.E("design:type",String)],cl.prototype,"role",void 0);_.x([_.g(),_.E("design:type",String)],cl.prototype,"style",void 0);_.x([_.g(),_.E("design:type",String)],cl.prototype,"iconFilter",void 0);_.x([_.T4("icon","active","defaultToFilled","size","targetContainer","isAttached","isDarkTheme"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype",Promise)],cl.prototype,"handlePropertyChange",null);
cl=_.x([_.FB({is:"yt-icon",noInjection:!0})],cl);var XyQ;var P8l=function(){var S=document.body,p=S.appendChild;if(XyQ===void 0){var U=document.createElement("template");_.h(U,'\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>');
XyQ=U}U=XyQ;p.call(S,U.content)};
document.body?P8l():window.addEventListener("DOMContentLoaded",P8l);var ZPH,sBt=function(){return ZPH!==void 0?ZPH:ZPH=document.createElement("template")};
document.head.appendChild(sBt().content);var emE,g_I=function(){return emE!==void 0?emE:emE=document.createElement("template")};
document.head.appendChild(g_I().content);var uQI;_.SN=new _.$g("KEY_MANAGER_TOKEN");var NQe={duration:1E3,easing:"ease",fill:"forwards"};_.cH(iRk);var qYq={duration:1E3,easing:"ease",fill:"forwards"},aMQ=_.$k(function(S){var p=_.vH(),U=void 0,Y=function(){var L,I;return o9((L=S.character)==null?void 0:L.call(S))||o9((I=S.previousCharacter)==null?void 0:I.call(S))};
_.R8(function(){if(S.marginMultiplier()){var L;(L=U)==null||L.cancel();if(Y()){var I;L=((I=S.previousCharacter)==null?0:I.call(S))?Number(S.previousCharacter())+10:S.rollUp()?0:30;var V;if((V=S.shouldAnimate)==null||!V.call(S)){var W,O;L-=BQX((W=S.character)==null?void 0:W.call(S),(O=S.previousCharacter)==null?void 0:O.call(S),S.rollUp(),L)}}else{L=S.rollUp()?0:2;var D;(D=S.shouldAnimate)!=null&&D.call(S)||(I=L,V=S.rollUp()?-1:1,L=I-V)}p.value.style.marginTop="-"+L*S.marginMultiplier()+"px";var z;
if((z=S.shouldAnimate)==null?0:z.call(S)){var Q,J;U=APR(p.value,(Q=S.character)==null?void 0:Q.call(S),(J=S.previousCharacter)==null?void 0:J.call(S),S.rollUp(),L,Y(),S.marginMultiplier())}else{var K;p.value.style.display=((K=S.character)==null?0:K.call(S))?"":"none"}}});
return _.H("animated-rolling-character",{el:p,class:"animated-rolling-character-wiz"},_.H(_.n,{cond:Y,then:function(){return _.H(wyI,null)},
else:function(){return _.H(lMQ,{character:S.character})}}))},"j");
aMQ.idomCompat=!0;var t3u=_.y("web_enable_sink_animated_rolling_character_and_number")?aMQ:iRk,fMd=_.y("web_enable_sink_animated_rolling_character_and_number")?aMQ:_.Oo(iRk),wyI=_.$k(function(){for(var S=[],p=1;p<30;p++)S.push(_.H("div",null,p%10));return _.H(_.U0,null,_.H("div",null,"\u00a0"),S,_.H("div",null,"\u00a0"))},"k"),lMQ=_.$k(function(S){var p=S.character;
return _.H(_.U0,null,_.H("div",null,"\u00a0"),_.H(_.n,{cond:function(){return!(p==null?0:p())||_.dN(p==null?void 0:p())},
then:function(){return _.H("div",null,"\u00a0")},
else:function(){return _.H("div",null,p)}}),_.H("div",null,"\u00a0"))},"l");_.cH(cPG);var C8j=_.$k(function(S){var p=void 0,U=void 0,Y=function(){var I;return((I=S.fontSizeMultiplier)==null?0:I.call(S))?S.heightPx()*S.fontSizeMultiplier():S.heightPx()},L=_.nS(function(){if(!S.numberText())return[];
var I,V,W=((I=S.forceRollUp)==null?void 0:I.call(S))||!U||!((V=S.numberValue)==null?0:V.call(S))||U<S.numberValue(),O,D=S.numberText();I=Y();V=!((O=S.shouldAnimate)==null||!O.call(S));O=[];var z=0,Q=0,J=(p?p.replace(/\D/g,"").length:0)-(D?D.replace(/\D/g,"").length:0),K=p?p.split(/(\d)/).filter(Boolean):[];for(D=D.split(/(\d)/).filter(Boolean);J<0;){var G=D[Q];O.push({character:G,rollUp:W,marginMultiplier:I,shouldAnimate:V});Q++;o9(G)&&J++}for(;z<J;)G=K[z],O.push({previousCharacter:G,rollUp:W,marginMultiplier:I,
shouldAnimate:V}),z++,o9(G)||J++;for(;Q<D.length;)J=D[Q],G=K[z],o9(J)===o9(G)?(Q++,z++):o9(J)?(z++,J=void 0):o9(G)&&(Q++,G=void 0),O.push({character:J,previousCharacter:G,rollUp:W,marginMultiplier:I,shouldAnimate:V});p=S.numberText();var X;U=(X=S.numberValue)==null?void 0:X.call(S);return O},void 0,"B9AmNd");
return _.H("yt-animated-rolling-number",{class:"animated-rolling-number-wiz",style:function(){return S.numberText()?["height: "+Y()+"px;","line-height: "+S.heightPx()+"px;"].join(" "):""},
dir:"ltr","aria-hidden":"true"},_.H(_.KU,{each:L,keyBy:"INDEX"},function(I){return _.H(fMd,{character:function(){return I().character},
previousCharacter:function(){return I().previousCharacter},
marginMultiplier:function(){return I().marginMultiplier},
rollUp:function(){return I().rollUp},
shouldAnimate:function(){return I().shouldAnimate}})}))},"m");
C8j.idomCompat=!0;_.yJq=_.y("web_enable_sink_animated_rolling_character_and_number")?C8j:cPG;_.xrc=_.y("web_enable_sink_animated_rolling_character_and_number")?C8j:_.Oo(cPG);var U1G={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"};_.pY=_.$k(function(S){var p=_.vH(S.ref),U=S.aTagConfig?S.aTagConfig:_.nS(function(){var Y,L,I,V,W,O;var D=(O=_.sW((V=S.command)==null?void 0:V.call(S)))!=null?O:(W=S.command)==null?void 0:W.call(S);return _.gx({innertubeCommand:D,skipOnClick:(Y=S.skipOnClick)==null?void 0:Y.call(S),stopPropagation:(L=S.dangerousStopPropagation)==null?void 0:L.call(S),defaultTarget:(I=S.target)==null?void 0:I.call(S)})||{}},void 0,"gnrRge");
_.R8(function(){p.value._data=U()._data;p.value.params=U().params});
return _.H("a",{el:p,href:function(){return U().href$},
rel:function(){return U().rel$},
class:function(){var Y,L;return(L=U().className)!=null?L:(Y=S.className)==null?void 0:Y.call(S)},
style:function(){var Y;if((Y=S.style)==null?0:Y.call(S))return S.style();var L;return((L=S.disabled)==null?0:L.call(S))?"pointer-events:none":""},
"aria-haspopup":function(){return!!U()["aria-haspopup$"]},
"force-new-state":H7(function(){return U()["force-new-state$"]}),
title:H7(function(){var Y,L;return(L=U().title$)!=null?L:(Y=S.title)==null?void 0:Y.call(S)}),
role:H7(function(){return U().role$}),
target:H7(function(){return U().target$}),
dir:H7(function(){var Y;return((Y=S.dir)==null?0:Y.call(S))?S.dir():U().dir}),
tabindex:function(){var Y;return U().tabindex$?Number(U().tabindex$):(Y=S.tabIndex)==null?void 0:Y.call(S)},
"aria-hidden":function(){var Y,L;return(L=U()["aria-hidden$"])!=null?L:(Y=S.ariaHidden)==null?void 0:Y.call(S)},
"aria-label":function(){var Y,L;return(L=U()["aria-label$"])!=null?L:(Y=S.ariaLabel)==null?void 0:Y.call(S)},
"aria-current":S.ariaCurrent,"aria-labelledby":S.ariaLabelledby,"aria-describedby":S.ariaDescribedby,"aria-selected":S.ariaSelected,"tab-identifier":S.tabIdentifier,"on:pointerdown":_.kL(function(Y){var L,I;return void((I=(L=U()).onpointerdown)==null?void 0:I.call(L,Y))}),
"on:click":_.kL(function(Y){var L,I;return void((I=(L=U()).onclick)==null?void 0:I.call(L,Y))})},S.children)},"n");var E_Q=function(S,p){this.fillAnimation=new Animation(IYe(S),document.timeline);this.strokeAnimation=new Animation(d1R(p),document.timeline)};
E_Q.prototype.play=function(){var S,p;(p=(S=this.fillAnimation).play)==null||p.call(S);var U,Y;(Y=(U=this.strokeAnimation).play)==null||Y.call(U)};
E_Q.prototype.cancel=function(){var S,p;(p=(S=this.fillAnimation).cancel)==null||p.call(S);var U,Y;(Y=(U=this.strokeAnimation).cancel)==null||Y.call(U)};_.yD=_.$k(function(S){var p=S.model;var U=S.pointerDownEvent;var Y=S.pointerUpEvent;var L=S.pointerLeaveEvent;S=_.vH();var I=_.zw({"border-radius":function(){return p().borderRadius}}),V=_.vH(),W=_.vH(),O=_.d(_.Dt(function(){return(Y==null?0:Y())||(L==null?0:L())?!1:!(U==null||!U())||!1})),D=O.next().value,z=O.next().value,Q=void 0,J=function(){!Q&&W.value&&V.value&&typeof Animation==="function"&&typeof KeyframeEffect==="function"&&(Q=new E_Q(W.value,V.value));
var a;(a=Q)==null||a.play()},K=function(){var a;
(a=Q)==null||a.cancel()},G=function(){var a;
(a=Q)==null||a.cancel()};
_.R8(function(){(Y==null?0:Y())&&J()});
_.R8(function(){(U==null?0:U())&&K()});
_.R8(function(){(L==null?0:L())&&G()});
O=_.kL(function(){J();z(!1)});
var X=_.kL(function(){K();z(!0)}),Z=_.kL(function(){G();
z(!1)});
_.FG(function(){if(Q){var a;(a=Q)==null||a.cancel();Q=void 0}});
var l={};D=_.VD("yt-spec-touch-feedback-shape",function(){return VAq(p().color)},(l["yt-spec-touch-feedback-shape--focused"]=function(){return!!p().focused&&!p().disabled},l["yt-spec-touch-feedback-shape--circular"]=function(){return!!p().circular},l["yt-spec-touch-feedback-shape--is-extended"]=function(){return!!p().isExtended},l["yt-spec-touch-feedback-shape--down"]=D,l["yt-spec-touch-feedback-shape--trigger-events"]=function(){return!!p().triggerEvents},l));
return _.H("yt-touch-feedback-shape",{style:_.zw({"border-radius":"inherit"})},_.H("div",{el:S,class:D,style:_.zw({"margin-top":function(){return p().customTopExtend?"-"+p().customTopExtend+"px":void 0}}),
"on:mousedown":X,"on:mouseup":O,"on:pointerleave":Z,"on:touchstart":X,"on:touchend":O,"aria-hidden":!0},_.H("div",{class:"yt-spec-touch-feedback-shape__stroke",style:I,el:V}),_.H("div",{class:"yt-spec-touch-feedback-shape__fill",style:I,el:W})))},"o");
_.yD.idomCompat=!0;var mrH={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 Uj=_.zG();Uj=Uj.toLowerCase();if(_.Wk(Uj,"android")){var o_I=Uj.match(/android\s*(\d+(\.\d+)?)[^;|)]*[;)]/);o_I&&parseFloat(o_I[1])<100||Uj.match("("+Object.keys(mrH).join("|")+")")};var v_d=_.$k(function(S){return _.H(_.n,{cond:S.aTagConfig,then:function(p){return _.H(_.pY,{aTagConfig:p,disabled:S.disabled,className:S.className,style:S.style,title:S.title,ariaLabel:S.ariaLabel,ariaCurrent:function(){var U,Y;return((U=S.toggleable)==null?void 0:U.call(S))&&((Y=S.toggled)==null?void 0:Y.call(S))}},S.children)},
else:function(){return _.H("button",{"on:click":_.kL(function(p){var U;return(U=S.onClick)==null?void 0:U.call(S,p)}),
class:S.className,title:S.title,style:S.style,disabled:S.disabled,"aria-pressed":function(){var p,U;return((p=S.toggleable)==null?0:p.call(S))?!((U=S.toggled)==null||!U.call(S)):void 0},
"aria-label":S.ariaLabel,"aria-disabled":S.visiblyDisabled,"aria-hidden":S.ariaHidden,tabindex:S.tabIndex},S.children)}})},"p"),iPE=_.$k(function(S){var p=S.data;
var U=S.hasIconLeading;var Y=S.hasIconLeadingTrailing;var L=S.hasIconTrailing;var I=S.iconButton;var V=S.iconClassName;var W=S.secondaryIconClassName;var O=S.icon;var D=S.secondaryIcon;var z=S.textContentClassName;return _.H(YK,{className:"",style:"display: inherit; justify-content: center"},_.H(_.n,{debugInstance:"V4z1Uc",cond:function(){return O&&(U()||Y()||(I==null?void 0:I()))},
then:function(){return _.H(YK,null,_.H("div",{class:V,"aria-hidden":"true"},O==null?void 0:O()))}}),_.H(_.n,{debugInstance:"ok3btb",
cond:function(){return(p().buttonText||p().animatedTextProps||p().formattedButtonText)&&!(I==null?0:I())},
then:function(){return _.H(YK,null,_.H($re,{className:z,iconPosition:function(){return p().iconPosition},
text:function(){return p().buttonText},
oneOffCustomTextWrap:function(){return p().oneOffCustomTextWrap},
formattedButtonText:function(){return p().formattedButtonText},
animatedTextProps:function(){return p().animatedTextProps}}))}}),_.H(_.n,{debugInstance:"DO5Rz",
cond:L,then:function(){return _.H(YK,null,_.H("div",{class:V},O==null?void 0:O()))}}),_.H(_.n,{debugInstance:"bnojSc",
cond:Y,then:function(){return _.H(YK,null,_.H("div",{class:W},D==null?void 0:D()))}}),_.H(_.n,{debugInstance:"HN3kad",
cond:function(){return!p().disabled&&!0},
then:function(){return _.H(_.yD,{model:function(){return{color:HNk(p())}}})}}))},"q"),$re=_.$k(function(S){var p=function(){var U,Y;
return((U=S.iconPosition)==null?void 0:U.call(S))==="icon-with-label"||((Y=S.oneOffCustomTextWrap)==null?void 0:Y.call(S))};
return _.H("div",{class:S.className,"aria-hidden":function(){var U,Y,L;return((U=S.ariaHidden)==null?void 0:U.call(S))&&(!((Y=S.animatedTextProps)==null||!Y.call(S))||!((L=S.formattedButtonText)==null||!L.call(S)))}},_.H(_.r7,null,_.H(_.bb,{when:function(){var U;
return(U=S.animatedTextProps)==null?void 0:U.call(S)}},function(){return _.H(_.xrc,{numberText:function(){return S.animatedTextProps().numberText},
numberValue:function(){return S.animatedTextProps().numberValue},
heightPx:function(){return S.animatedTextProps().heightPx},
fontSizeMultiplier:function(){return S.animatedTextProps().fontSizeMultiplier},
shouldAnimate:function(){return S.animatedTextProps().shouldAnimate},
forceRollUp:function(){return S.animatedTextProps().forceRollUp}})}),_.H(_.bb,{when:function(){var U;
return(U=S.formattedButtonText)==null?void 0:U.call(S)}},function(){return _.H(_.i6,{text:function(){return Object.assign({},S.formattedButtonText(),{lineBreakMode:p()?"LINE_BREAK_MODE_BY_WORD_WRAPPING":S.formattedButtonText().lineBreakMode,
alignment:p()?"TEXT_ALIGNMENT_CENTER":S.formattedButtonText().alignment})},
noLinkColor:!0,noWrap:function(){return!p()}})}),_.H(_.bb,{when:function(){var U,Y;
return((U=S.iconPosition)==null?void 0:U.call(S))==="icon-with-label"&&((Y=S.text)==null?void 0:Y.call(S))}},function(){return _.H(_.i6,{text:function(){return{content:S.text(),
lineBreakMode:"LINE_BREAK_MODE_BY_WORD_WRAPPING",alignment:"TEXT_ALIGNMENT_CENTER"}},
noLinkColor:!0,noWrap:!1})}),_.H(_.jn,null,function(){return S.text})))},"r"),N$l=_.$k(function(S){return _.H(_.n,{debugInstance:"kM7Sgc",
cond:S.hasLabel,then:function(){var p;return _.H("label",{class:S.className},S.children,(p=S.textContent)==null?void 0:p.call(S))},
else:function(){return S.children}})},"s"),YK=_.$k(function(S){return S.children},"t");var Whk=cm("stamper-context");var BG=_.$k(function(S){var p=S.data;var U=S.icon;var Y=S.iconName;var L=S.secondaryIcon;var I=S.secondaryIconName;var V=S.focusedOverride;h5w();var W=TwG(p),O=W.size,D=W.style;S=W.disabled;var z=W.onTap,Q=W.alignByText,J=W.aTagConfig,K=W.customColors,G=W.segmentedPosition,X=W.toggled,Z=W.toggleable,l=W.accessibilityLabel,a=W.onToggle,N=W.iconPosition,m=W.oneOffCustomTextWrap,A=W.disableTextEllipsis,q=W.disableBackdropFilter,TG=W.tooltipText,Je=W.ariaHidden,GG=W.tabIndex,Zw=W.buttonText,Ru=W.formattedButtonText,
sX=W.animatedTextProps,mq=knN(p,U,L,Y,I,V),au=mq.type;U=mq.shouldFocus;Y=mq.hasIconLeading;L=mq.hasIconTrailing;var XI=mq.hasIconLeadingTrailing,nE=mq.hasIconOnly;I=mq.hasIconOnly40;var ut=mq.hasIconWithLabel;V=mq.iconButton;var Hw=mq.visiblyDisabled;W=mq.overrideSmallSizeIcon;var Tj=mq.iconToRender;mq=mq.secondaryIconToRender;var Ut={},Ww={};return _.H(N$l,{className:_.VD("yt-spec-button-shape-with-label",(Ut["yt-spec-button-shape-with-label--is-overlay"]=function(){return D()==="overlay"||D()===
"overlay-dark"},Ut)),
hasLabel:ut,textContent:function(){return _.H($re,{text:Zw,className:"yt-spec-button-shape-with-label__label",ariaHidden:!0,oneOffCustomTextWrap:m,iconPosition:N,formattedButtonText:Ru,animatedTextProps:sX})}},_.H(v_d,{aTagConfig:J,
className:_.VD("yt-spec-button-shape-next",function(){return z5R(au())},function(){return Hw()?void 0:QGk(D())},function(){return nTX(O())},(Ww["yt-spec-button-shape-next--disabled"]=Hw,Ww["yt-spec-button-shape-next--focused"]=U,Ww["yt-spec-button-shape-next--icon-trailing"]=L,Ww["yt-spec-button-shape-next--icon-leading"]=Y,Ww["yt-spec-button-shape-next--icon-leading-trailing"]=XI,Ww["yt-spec-button-shape-next--icon-leading-trailing-no-text"]=function(){return XI()&&!(Zw()||Ru())},Ww["yt-spec-button-shape-next--icon-button"]=
function(){return nE()||ut()},Ww["yt-spec-button-shape-next--icon-only-default"]=I,Ww["yt-spec-button-shape-next--align-by-text"]=Q,Ww["yt-spec-button-shape-next--segmented-start"]=function(){return G()==="start"},Ww["yt-spec-button-shape-next--segmented-end"]=function(){return G()==="end"},Ww["yt-spec-button-shape-next--override-small-size-icon"]=W,Ww["yt-spec-button-shape-next--one-off-custom-text-wrap-container"]=m,Ww["yt-spec-button-shape-next--disable-text-ellipsis"]=A,Ww["yt-spec-button-shape-next--enable-backdrop-filter-experiment"]=
function(){return!q()&&D1r()},Ww)),
style:function(){return JJw(K()).style},
onClick:function(kA){z==null||z(kA);Z()&&(a==null||a(kA))},
disabled:S,ariaLabel:l,toggleable:Z,toggled:X,title:function(){var kA;return(kA=TG())!=null?kA:""},
visiblyDisabled:Hw,ariaHidden:Je,tabIndex:GG},_.H(iPE,{data:p,hasIconLeading:Y,hasIconLeadingTrailing:XI,hasIconTrailing:L,iconButton:V,icon:Tj,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:mq})))},"u");
BG.idomCompat={callbacks:{icon:!0,secondaryIcon:!0}};var B$t=_.$k(function(S){var p=S.data;var U=S.id;var Y=S.hidden;var L=S.className;var I=S.iconName;var V=S.secondaryIconName;S=_.d(_.kj(!1,void 0,"RyKHFc"));var W=S.next().value,O=S.next().value,D=function(){var Q=_.tW().resolve(_.AW(_.SN));Q&&O(Q.isKeyBoardInUse())},z=function(){O(!1)};
S=_.vH(function(Q){if(_.tW().resolve(_.AW(_.SN)))return Q.addEventListener("focusin",D),Q.addEventListener("focusout",z),function(){Q.removeEventListener("focusin",D);Q.removeEventListener("focusout",z)}});
return _.H("yt-button-shape",{el:S,id:U,class:L,hidden:Y},_.H(_.n,{cond:p,then:function(){return _.H(BG,{data:p,iconName:I,secondaryIconName:V,focusedOverride:W})}}))},"v");
_.y("web_wiz_button_shape")&&_.qm(B$t,"yt-button-shape",{props:{data:_.x2,id:_.x2,hidden:_.x2,className:_.x2,iconName:_.x2,secondaryIconName:_.x2},unsafeExternallySettableAttributes:new Set(["key","dialog-dismiss","disable-upgrade"])});var LY=function(){var S=_.w.apply(this,arguments)||this;S.keyboardFocused=!1;return S};
_.r(LY,_.w);LY.prototype.onFocus=function(){var S=_.tW().resolve(_.AW(_.SN));S&&(this.keyboardFocused=S.isKeyBoardInUse())};
LY.prototype.onBlur=function(){this.keyboardFocused=!1};
LY.prototype.renderIdom=function(){var S=this;if(this.data){var p=ns(this.data,!!this.iconName),U=ONw(this.data);this.data.focused=this.keyboardFocused;rJG(this.data,function(){var Y;hS("yt-icon",{icon:S.iconName,active:(Y=S.data)==null?void 0:Y.toggled,size:p,style:"width: "+p+"px; height: "+p+"px;",iconFilter:U},o8)},function(){var Y;
hS("yt-icon",{icon:S.secondaryIconName,active:(Y=S.data)==null?void 0:Y.toggled,size:p,style:"width: "+p+"px; height: "+p+"px;",iconFilter:U},o8)});
_.cv(this.hostElement,"yt-renderidom-finished")}};
_.$u.Object.defineProperties(LY,{template:{configurable:!0,enumerable:!0,get:function(){if(uQI===void 0){var S=document.createElement("template");_.h(S,"\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-button-shape--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.web_interface_library.youtube_standards.yt_button_shape.yt.button.shape_wil_styles.css.js,video.youtube.src.web.polymer.shared.web_interface_library.youtube_standards.yt_button_shape.yt.button.shape.css.js--\x3e");
S.content.insertBefore(_.t().content.cloneNode(!0),S.content.firstChild);S.content.insertBefore(g_I().content.cloneNode(!0),S.content.firstChild);S.content.insertBefore(sBt().content.cloneNode(!0),S.content.firstChild);uQI=S}S=uQI;return S}}});
LY.prototype.onBlur=LY.prototype.onBlur;LY.prototype.onFocus=LY.prototype.onFocus;_.x([_.F(Q0E),_.E("design:type",Object)],LY.prototype,"ytIdomTemplatingBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],LY.prototype,"data",void 0);_.x([_.g(),_.E("design:type",String)],LY.prototype,"iconName",void 0);_.x([_.g(),_.E("design:type",String)],LY.prototype,"secondaryIconName",void 0);_.x([_.g(),_.E("design:type",Object)],LY.prototype,"keyboardFocused",void 0);
_.x([_.Vd("focusin"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],LY.prototype,"onFocus",null);_.x([_.Vd("focusout"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],LY.prototype,"onBlur",null);LY=_.x([_.FB({is:"yt-button-shape",isInjectionRoot:!0,disableElementRegistration:_.y("web_wiz_button_shape")})],LY);_.qm(_.$k(function(S){function p(){U().seconds&&I(aHw({seconds:Number(U().seconds)-Date.now()/1E3}))}
var U=S.targetTimestamp;S=S.className;var Y=_.d(_.kj("",void 0,"U1Q8Ae")),L=Y.next().value,I=Y.next().value;_.hW(function(){p();var V=setInterval(function(){p()},1E3);
_.FG(function(){clearInterval(V)})});
return _.H("yt-countdown",{class:_.VD("ytCountDownHost",S)},_.H("div",null,L))},"w"),"yt-countdown",{props:{targetTimestamp:_.x2,
className:_.BX}});_.PG=_.$k(function(S){var p=S.data;var U=S.className;var Y=S.style;var L=S.useOutlinedIcon;var I=S.buttonOverrides;var V=S.animatedTextProps;var W=S.onClick;var O=_.vH(function(Z){Z.dispatchEvent(new CustomEvent("yt-renderidom-finished",{bubbles:!0,cancelable:!1,composed:!0}));var l=p().targetId;l&&_.GQj(_.Dq(),l,Z);return function(){jmI(_.Dq(),Z)}}),D=function(){return p().iconName},z,Q=(z=_.tW().resolve(_.AW(_.Cz)))==null?void 0:z(),J=function(){var Z=p();
var l=I==null?void 0:I(),a=V==null?void 0:V();if(Z){var N=Xew(Z.type);var m=!!Z.title||!!Z.titleFormatted;var A=!(!Z.iconName&&!Z.iconImage);m=A&&!m?"icon-only":A?Z.iconTrailing||Z.iconPosition==="BUTTON_VIEW_MODEL_ICON_POSITION_TRAILING"?"trailing":"leading":void 0;m==="icon-only-40"&&(N="text");var q,TG=(q=l==null?void 0:l.disabled)!=null?q:Z.state==="BUTTON_VIEW_MODEL_STATE_DISABLED"||Z.state==="BUTTON_VIEW_MODEL_STATE_INACTIVE";q=Object;A=q.assign;var Je=Z.title,GG=Z.titleFormatted;a=a&&a.numberText&&
!isNaN(Number(a.numberValue))?a:void 0;var Zw=Z.accessibilityText,Ru=Frd(Z.style),sX=PfR(Z.state),mq=ZNw(Z.buttonSize),au=R5w(Z,O,TG,W);TG=TG&&!Z.onDisabledTap;var XI=_.gx({elementsCommand:Z.onTap,forceNewState:!0});XI=uT(XI)?XI:void 0;var nE=Z.customFontColor,ut=Z.customBackgroundColor;var Hw=Z.customBorderColor;var Tj=Z.customDarkThemeFontColor,Ut=Z.customDarkThemeBackgroundColor,Ww=Z.customDarkThemeBorderColor;nE=Q&&Tj?Tj:nE;ut=Q&&Ut?Ut:ut;Hw=Q&&Ww?Ww:Hw;Hw={color:nE?_.ev(nE):void 0,backgroundColor:ut?
_.ev(ut):void 0,borderColor:Hw?_.ev(Hw):void 0};Z=A.call(q,{},{buttonText:Je,formattedButtonText:GG,animatedTextProps:a,accessibilityLabel:Zw,style:Ru,type:N,state:sX,size:mq,iconPosition:m,onTap:au,disabled:TG,aTagConfig:XI,customColors:Hw,tooltipText:Z.tooltip},l)}else Z={style:"mono",type:"text",state:"active",size:"M"};Z.focused=X();return Z},K=function(){return ns(J(),!!p().iconName)};
S=_.d(_.kj(!1,void 0,"vxWDPb"));z=S.next().value;var G=S.next().value,X=z;S=_.kL(function(){var Z=_.tW().resolve(_.AW(_.SN));Z&&G(Z.isKeyBoardInUse());return!1});
z=_.kL(function(){G(!1);return!1});
_.R8(function(){var Z,l=_.b(p==null?void 0:(Z=p())==null?void 0:Z.onVisible,_.Z$);l&&_.eV(l,{disableClickTracking:!0})});
return _.H("button-view-model",{el:O,class:_.VD("yt-spec-button-view-model",U),"on:focusin":S,"on:focusout":z},_.H(_.n,{cond:function(){var Z;return(p==null?0:(Z=p())==null?0:Z.iconImage)?{sources:[p().iconImage]}:void 0},
then:function(Z){return _.H(BG,{data:J,icon:function(){return _.H(_.of,{data:Z,alt:"",targetWidth:K,targetHeight:K,preserveWidth:!0,preserveHeight:!0})}})},
else:function(){return _.H(BG,{data:J,icon:function(){return _.H(_.QD,{icon:D,active:function(){return(L==null?0:L())?!1:J().toggled},
animateIcon:function(){var Z;return!!(Y==null?0:(Z=Y())==null?0:Z.animateIcon)},
size:K})}})}}))},"x");
_.PG.idomCompat={callbacks:{onClick:!0}};_.qm(_.$k(function(S){return _.H("yt-button-view-model",{id:S.id,class:_.VD(S.scopingClassName,S.classes),icon:function(){var p;return(p=S.icon)==null?void 0:p.call(S)},
"dialog-dismiss":function(){var p;return((p=S.dialogDismiss)==null?0:p.call(S))?"":void 0}},_.H(_.PG,{data:function(){var p;
return(p=S.data)==null?void 0:p.call(S)},
className:function(){var p;return(p=S.className)==null?void 0:p.call(S)},
style:function(){var p;return(p=S.style)==null?void 0:p.call(S)},
useOutlinedIcon:function(){var p;return(p=S.useOutlinedIcon)==null?void 0:p.call(S)},
buttonOverrides:function(){var p;return(p=S.buttonOverrides)==null?void 0:p.call(S)},
animatedTextProps:function(){var p;return(p=S.animatedTextProps)==null?void 0:p.call(S)},
onClick:function(p){var U;return(U=S.onClick)==null?void 0:U.call(S,p)}}))},"y"),"yt-button-view-model",{props:{data:_.x2,
className:_.x2,style:_.x2,useOutlinedIcon:_.x2,buttonOverrides:_.x2,animatedTextProps:_.x2,onClick:_.BX,scopingClassName:_.x2,id:_.x2,icon:_.x2,dialogDismiss:_.x2,classes:_.x2}});var Mo=function(){var S=_.w.apply(this,arguments)||this;S.isGoalActive=!0;return S};
_.r(Mo,_.w);Mo.prototype.isAppDarkTheme=function(){return document.documentElement.hasAttribute("dark")};
Mo.prototype.progressBarChanged=function(){var S=_.tB(this.hostElement).querySelector("#progress-bar-progress"),p,U,Y,L=(Y=Number((p=this.creatorGoalState)==null?void 0:p.currentGoalCount)/Number((U=this.creatorGoalState)==null?void 0:U.totalGoalCount)*100)!=null?Y:0,I;S.style.width=((I=Math.min(L,100))!=null?I:0)+"%"};
Mo.prototype.goalStateChanged=function(){var S;this.isGoalActive=((S=this.creatorGoalState)==null?void 0:S.creatorGoalState)==="CREATOR_GOAL_STATE_ACTIVE";var p;S={"--yt-progress-bar-color":$rd((p=this.creatorGoalState)==null?void 0:p.progressBarColor)};_.Ms(this.hostElement,S)};
Mo.prototype.configureRendererStamper=function(){return{"creatorGoalState.progressFlowButton":{id:"progress-button",mapping:{buttonViewModel:{component:"yt-button-view-model",properties:{scopingClassName:"[[is]]"}}},reuseComponents:!0}}};
_.$u.Object.defineProperties(Mo.prototype,{shouldShowCountdown:{configurable:!0,enumerable:!0,get:function(){var S;return this.isGoalActive&&!((S=this.creatorGoalState)==null||!S.shouldShowCountdown)}},
endTimestamp:{configurable:!0,enumerable:!0,get:function(){var S;if((S=this.creatorGoalState)==null?0:S.endTimestampMs){var p;S=Number((p=this.creatorGoalState)==null?void 0:p.endTimestampMs)/1E3;return{seconds:String(S)}}}},
targetIconThemedImage:{configurable:!0,enumerable:!0,get:function(){var S;if((S=this.creatorGoalState)==null?0:S.themedTargetImage){var p;S=_.b((p=this.creatorGoalState)==null?void 0:p.themedTargetImage,aHQ);return this.isAppDarkTheme()?S==null?void 0:S.imageDark:S==null?void 0:S.imageLight}}}});
_.$u.Object.defineProperties(Mo,{template:{configurable:!0,enumerable:!0,get:function(){return zmm()}}});
Mo.prototype.goalStateChanged=Mo.prototype.goalStateChanged;Mo.prototype.progressBarChanged=Mo.prototype.progressBarChanged;_.x([_.F(_.qH.YtRendererstamperBehavior),_.E("design:type",Object)],Mo.prototype,"ytRendererstamperBehavior",void 0);_.x([_.F(_.Zq),_.E("design:type",Object)],Mo.prototype,"ytLiveChatReduxBehavior",void 0);_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],Mo.prototype,"ytRendererBehavior",void 0);
_.x([_.g({selectorArgs:["data.creatorGoalEntityKey"],selector:function(S,p){return _.I4(S.entities,"creatorGoalEntity",p)}}),
_.E("design:type",Object)],Mo.prototype,"creatorGoalState",void 0);_.x([_.g(),_.E("design:type",Object)],Mo.prototype,"data",void 0);_.x([_.g(),_.E("design:type",Object)],Mo.prototype,"isGoalActive",void 0);_.x([_.e("creatorGoalState","isGoalActive"),_.E("design:type",Boolean),_.E("design:paramtypes",[])],Mo.prototype,"shouldShowCountdown",null);_.x([_.e("creatorGoalState"),_.E("design:type",Object),_.E("design:paramtypes",[])],Mo.prototype,"endTimestamp",null);
_.x([_.e("creatorGoalState"),_.E("design:type",Object),_.E("design:paramtypes",[])],Mo.prototype,"targetIconThemedImage",null);_.x([_.T4("creatorGoalState.currentGoalCount"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],Mo.prototype,"progressBarChanged",null);_.x([_.T4("creatorGoalState.creatorGoalState"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],Mo.prototype,"goalStateChanged",null);
Mo=_.x([_.FB({is:"yt-creator-goal-progress-flow-view-model",disableElementRegistration:!0,noInjection:!0})],Mo);_.C(Mo,"yt-creator-goal-progress-flow-view-model",function(){return zmm()},{mode:_.y("live_chat_enable_sink_wrapper")?2:0});var q6t;var ARe;var In=function(){return _.w.apply(this,arguments)||this};
_.r(In,_.w);In.prototype.attached=function(){var S,p,U;if(this==null?0:(S=this.data)==null?0:(p=S.pdgPurchasedBumperLoggingDirectives)==null?0:(U=p.loggingDirectives)==null?0:U.trackingParams){var Y,L,I;gTu(this==null?void 0:(Y=this.data)==null?void 0:(L=Y.pdgPurchasedBumperLoggingDirectives)==null?void 0:(I=L.loggingDirectives)==null?void 0:I.trackingParams)}};
In.prototype.configureRendererStamper=function(){return{"data.content":{id:"content",mapping:{bumperUserEduContentViewModel:{component:"yt-bumper-user-edu-content-view-model"}}}}};
_.x([_.F(_.eL.YtComponentBehavior),_.E("design:type",Object)],In.prototype,"ytComponentBehavior",void 0);_.x([_.F(_.qH.YtRendererstamperBehavior),_.E("design:type",Object)],In.prototype,"ytRendererstamperBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],In.prototype,"data",void 0);In=_.x([_.FB({disableElementRegistration:!0,is:"yt-live-chat-item-bumper-view-model"})],In);
_.C(In,"yt-live-chat-item-bumper-view-model",function(){if(ARe===void 0){var S=document.createElement("template");_.h(S,'\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>');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);var p=S.content,U=p.insertBefore;q6t===void 0&&(q6t=document.createElement("template"));var Y=q6t;U.call(p,Y.content.cloneNode(!0),S.content.firstChild);ARe=S}S=ARe;return S},{mode:_.y("live_chat_enable_sink_wrapper")?2:0});var t7E;var cRj;_.xL=function(S,p){this.data=S;this.actions=p;this.data=S;this.actions=p};
_.eM=function(){};_.dW={};_.dW.YtOpenPopupBehavior={properties:{popupPositionTarget:Object},listeners:{"yt-service-request-completed":"onOpenPopupServiceRequestCompleted_"},created:function(){this.openPopupConfig=null},
openPopup:function(S,p){uHd(this.hostElement,S,p)},
getNavigationEndpointPopupAction:function(S){return wew(S,this.openPopupConfig)},
onOpenPopupServiceRequestCompleted_:function(S,p){lYE(this.hostElement,S,p,this.openPopupConfig)}};var iNe=["backstageImageUploadEndpoint","openUpdateCommentDialogAction","updateCommentDialogEndpoint","updateCommentReplyDialogEndpoint"];_.WV={};
_.WV.YtEndpointBehavior=[_.dW.YtOpenPopupBehavior,{properties:{openPopupConfig:Object,useClickHandler:{type:Boolean,value:!1}},ready:function(){this.openPopupConfig=_.g7("openPopupConfig");(this.useClickHandler=_.ub("useClickHandler",!1))?this.hostElement.addEventListener("click",Is(this,this.onEndpointClick_)):(RH(this.hostElement,"tap",Is(this,this.onEndpointTap_)),RH(this.hostElement,"touchend",Is(this,this.onEndpointTouchEnd_)));RH(this.hostElement,"touchstart",Is(this,this.onEndpointTapStart_));this.hostElement.addEventListener("mousedown",
Is(this,this.onEndpointTapStart_))},
onEndpointClick_:function(S){Cfw(this.hostElement,S,this.openPopupConfig,this.disableCommandHandlerOverride)},
onEndpointTap_:function(S){var p=this.hostElement,U=this.openPopupConfig,Y=this.disableCommandHandlerOverride;Y=Y===void 0?!1:Y;var L=aYe(S);if(L){L.href&&wz(L.href);var I=S.detail;var V=I.sourceEvent;I=I.preventer;V=V.button!==void 0?V.button===0&&!jM(V):I?!jM(I):!0;L.data&&V&&fYE(p,L,S,U,Y)}},
onEndpointTouchEnd_:function(S){jM(S)||aYe(S)&&S.preventDefault()},
onEndpointTapStart_:function(S){vTk(S)}}];var Nww="section1Color section2Color section3Color section4Color navBarColor primaryTitleColor secondaryTitleColor bodyTextColor iconActivatedColor iconInactiveColor iconDisabledColor".split(" "),qGw=["backgroundColor","borderColor","foregroundTitleColor","foregroundBodyColor","foregroundActivatedColor"];var SME={};SME.YtPlaintextBehavior=[_.H$,{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(S){S.preventDefault();S=S.clipboardData.getData("text/plain");document.execCommand("insertText",!1,S)},
preventRichTextFormatting_:function(S){_.LT&&(S=S.detail.keyboardEvent,S.stopImmediatePropagation(),S.preventDefault())}}];var pxt;var Ukm;var Oj=function(){var S=_.w.apply(this,arguments)||this;S.ignoreShadyDom=!1;S.hasChange_=!1;S.hasSetTitle_=!1;S.useIOObserverForVisibilityLogging_=_.y("kevlar_use_vimio_behavior")&&_.g7("INNERTUBE_CLIENT_NAME")==="WEB";S.ytFormattedStringObserverHandlerKeys_=void 0;return S};
_.r(Oj,_.w);_.M=Oj.prototype;_.M.created=function(){this.useIOObserverForVisibilityLogging_=_.y("kevlar_use_vimio_behavior")&&_.g7("INNERTUBE_CLIENT_NAME")==="WEB";this.isEmpty=!0};
_.M.ready=function(){_.g7("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_()};
_.M.attached=function(){this.hasChange_&&this.textChanged_(this.text)};
_.M.detached=function(){this.unobserveIOObservers_()};
_.M.clearContents_=function(){for(var S=this.getRoot(),p=S.lastChild;p&&p.tagName!=="STYLE";){try{S.removeChild(p)}catch(U){break}p=S.lastChild}};
_.M.unobserveIOObservers_=function(){if(this.useIOObserverForVisibilityLogging_&&this.ytRendererBehavior.visibilityObserver&&this.ytFormattedStringObserverHandlerKeys_){for(var S=_.d(this.ytFormattedStringObserverHandlerKeys_),p=S.next();!p.done;p=S.next())this.ytRendererBehavior.visibilityObserver.unobserveByKey(p.value);this.ytFormattedStringObserverHandlerKeys_.length=0}};
_.M.resetForAttributedString=function(){var S=this.getRoot();!S.querySelector("yt-attributed-string")&&this.ytAttributedStringElementRef&&(this.clearContents_(),S.appendChild(this.ytAttributedStringElementRef))};
_.M.resetForFormattedString=function(){var S=this.getRoot(),p=S.querySelector("yt-attributed-string");p&&(this.ytAttributedStringElementRef=S.removeChild(p))};
_.M.textChanged=function(){this.textChanged_(this.text)};
_.M.textChanged_=function(S){if(this.isAttached===void 0)this.hasChange_=!0;else{this.hasChange_=!1;this.isEmpty=!S||!S.runs&&!S.simpleText;if(_.y("web_replace_formatted_with_attributed_string")){if(this.useYtAttributedString){this.resetForAttributedString();return}this.resetForFormattedString()}this.unobserveIOObservers_();for(var p=this.hostElement.firstChild;p&&p.nodeName==="FONT";){var U=p;p=p.nextSibling;this.hostElement.removeChild(U)}p=this.getRoot();if(this.isEmpty)this.clearContents_();else{this.ellipsisTruncateChanged_();
U=S.simpleText;var Y;!U&&((Y=S.runs)==null?void 0:Y.length)===1&&this.isSimpleString_(S.runs[0])&&(U=S.runs[0].text);U!==void 0&&!this.respectHtmlDir&&this.useMixedDirectionFormattedStrings&&_.g7("HTML_DIR")==="rtl"&&(this.hostElement.dir="auto");if(U!==void 0){try{p.textContent=U}catch(L){}p.textContent||(this.isEmpty=!0)}else S=S.runs,U!==void 0&&(S=[{text:U}]),this.ellipsisTruncate?this.hostElement.classList.add("complex-string"):this.hostElement.classList.remove("complex-string"),S&&this.updateText_(S),
p.textContent||this.hasEmoji||(this.isEmpty=!0)}}};
_.M.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)};
_.M.computeAriaLabel_=function(S){return S};
_.M.computeEllipsisTruncateStyling=function(S,p){return S&&!p};
_.M.computeUseAttributedString=function(S){return _.y("web_replace_formatted_with_attributed_string")&&VxG(S)&&!this.disableAttributedString&&!this.enableContentEditable};
_.M.setNodeStyle_=function(S,p){!this.useMixedDirectionFormattedStrings||this.respectHtmlDir||_.y("disable_child_node_auto_formatted_strings")&&this.hostElement.dir==="auto"?p.removeAttribute("dir"):p.setAttribute("dir","auto");p.classList.remove("bold","deemphasize","italic","strikethrough","bracket","error-underline");p.style.color="";var U=null;this.noStyles||(S.bold&&(p.classList.add("bold"),U="bold"),S.deemphasize&&(p.classList.add("deemphasize"),U="deemphasize"),S.italics&&p.classList.add("italic"),
S.strikethrough&&p.classList.add("strikethrough"),S.errorUnderline&&(p.classList.add("error-underline"),this.isDarkTheme=document.documentElement.hasAttribute("dark")),S.bracket&&p.classList.add("bracket"),S.textColor&&(p.style.color=_.s1(S.textColor)));U!==p.getAttribute("style-target")&&(U?p.setAttribute("style-target",U):p.removeAttribute("style-target"))};
_.M.setUpVisibilityLogging_=function(S,p){var U=this;this.setNodeTrackingParams_(S,p);var Y;((Y=p.data)==null?0:Y.trackingParams)&&this.useIOObserverForVisibilityLogging_&&this.ytRendererBehavior.visibilityObserver&&(S=this.ytRendererBehavior.visibilityObserver.observe(p,function(L){var I=U.ytRendererBehavior.getVisibilityLogger();I&&I.reportShown(L)},this.ytRendererBehavior.visibilityOptionVisible_),p=this.ytRendererBehavior.visibilityObserver.observe(p,function(L){var I=U.ytRendererBehavior.getVisibilityLogger();
I&&I.reportHidden(L)},this.ytRendererBehavior.visibilityOptionHidden_),this.ytFormattedStringObserverHandlerKeys_||(this.ytFormattedStringObserverHandlerKeys_=[]),this.ytFormattedStringObserverHandlerKeys_.push(S),this.ytFormattedStringObserverHandlerKeys_.push(p))};
_.M.setNodeTrackingParams_=function(S,p){p.data||(p.data={});if((S=S.loggingDirectives?S.loggingDirectives.trackingParams:null)||p.data.trackingParams)p.data.trackingParams=S};
_.M.computeHasLinkOnly_=function(S){return!(!S||S.length!==1||this.noEndpoints||!S[0].navigationEndpoint)};
_.M.getRoot=function(){var S=this.buildScopeDomOptions();return this.enableContentEditable?_.tB(_.tB(this.hostElement,S).querySelector("[contenteditable]")):_.tB(this.hostElement,S)};
_.M.fixContenteditableScope=function(){var S=function(p){p&&(p.nodeType===1&&p.classList&&(p.classList.add("style-scope"),p.classList.add("yt-formatted-string")),p.childNodes&&p.childNodes.forEach(function(U){S(U)}))};
S(this.getRoot())};
_.M.updateText_=function(S){for(var p=S.length,U=this.getRoot(),Y=U.firstChild;Y&&Y.nodeName==="STYLE";)Y=Y.nextSibling;for(var L=0;L<p&&Y;){var I=S[L],V=_.y("remove_cr_char")&&I.text?I.text.replace("\r",""):I.text;if(this.isSimpleString_(I)&&!this.useMixedDirectionFormattedStrings)if(Y.nodeName==="#text"){Y.textContent!=V&&(Y.textContent=V);L++;Y=Y.nextSibling;continue}else break;if(_.b(I,Xi))break;else if(!this.noEndpoints&&I.navigationEndpoint){if(Y.nodeName!=="A")break;this.setDataOnAnchor_(Y,
I.navigationEndpoint)}else if(Y.nodeName!=="SPAN")break;this.setNodeStyle_(I,Y);this.setUpVisibilityLogging_(I,Y);Y.textContent!=V&&(Y.textContent=V);L++;Y=Y.nextSibling}if(Y)for(I=U.lastChild,Y=L?Y.previousSibling:null;I&&I!=Y;){try{U.removeChild(I)}catch(W){break}I=U.lastChild}L!==p&&this.addTextNodes_(S,L)};
_.M.addTextNodes_=function(S,p){for(var U=document.createDocumentFragment(),Y=S.length;p<Y;p++){var L=S[p],I=_.y("remove_cr_char")&&L.text?L.text.replace("\r",""):L.text;if(this.isSimpleString_(L)&&!this.useMixedDirectionFormattedStrings)U.appendChild(document.createTextNode(I));else{var V=_.b(L,Xi);if(V){if(V.image){var W=document.createElement("img");V.isCustomEmoji||W.classList.add("small-emoji");W.classList.add("emoji");V.isCustomEmoji&&(W.dataset.emojiId=V.emojiId);W.src=_.AS(V.image.thumbnails,
this.emojiSize);(L=this.get("image.accessibility.accessibilityData.label",V))?W.alt=L:V.shortcuts&&V.shortcuts.length>0?W.alt=V.shortcuts[0]:V.emojiId&&(W.alt=V.emojiId);U.appendChild(W);this.hasEmoji=!0}}else!this.noEndpoints&&L.navigationEndpoint?(W=document.createElement("a"),W.classList.add("yt-simple-endpoint"),W.setAttribute("spellcheck","false"),this.setDataOnAnchor_(W,L.navigationEndpoint)):W=document.createElement("span"),this.setNodeStyle_(L,W),this.setUpVisibilityLogging_(L,W),W.appendChild(document.createTextNode(I)),
U.appendChild(W)}}this.getRoot().appendChild(U)};
_.M.isSimpleString_=function(S){return(this.noEndpoints||!S.navigationEndpoint)&&!_.b(S,Xi)&&(this.noStyles||!(S.bold||S.deemphasize||S.italics||S.strikethrough||S.errorUnderline||S.bracket||S.textColor))&&!S.loggingDirectives};
_.M.getRawText=function(){return _.mA(this.text)};
_.M.getFirstRunText=function(){var S;if(((S=this.text)==null?0:S.runs)&&this.text.runs[0])return this.text.runs[0].text};
_.M.setFirstRunText=function(S){var p;((p=this.text)==null?0:p.runs)&&this.text.runs[0]&&(this.text.runs[0].text=S,this.textChanged_(this.text))};
_.M.setDataOnAnchor_=function(S,p){var U=this;!_.y("yf_formatted_string_service_endpoint_killswitch")&&this.isServiceEndpoint_(p)||this.isSignalServiceEndpoint_(p)?(S.onclick=this.serviceEndpointHandler_(p),hA(S,"#")):PTe({text:this.text,command:p},function(){EXE(S,p,U.target)})};
_.M.isServiceEndpoint_=function(S){var p;return!((p=_.b(S==null?void 0:S.commandMetadata,_.NU))==null||!p.sendPost)};
_.M.isSignalServiceEndpoint_=function(S){return!!_.b(S,_.TI)};
_.M.serviceEndpointHandler_=function(S){var p=this;return function(U){_.Yd(p.hostElement,[S]);U.preventDefault()}};
_.M.overrideAriaLabelChanged_=function(){var S=this.getRoot();this.enableContentEditable&&S&&S.setAttribute("aria-label",this.overrideAriaLabel)};
_.M.enableContentEditableChanged_=function(){var S=this,p=this.buildScopeDomOptions();if(this.enableContentEditable){if(this.hostElement.removeAttribute("dir"),p=_.tB(this.hostElement,p),!p.lastChild||p.lastChild instanceof HTMLElement&&p.lastChild.id!=="contenteditable-root"){var U=document.createElement("div");U.id="contenteditable-root";U.setAttribute("contenteditable","true");U.setAttribute("dir","auto");U.onfocus=function(){S.hostElement.dispatchEvent(new FocusEvent("focus",{bubbles:!1}))};
p.appendChild(U);this.overrideAriaLabel&&U.setAttribute("aria-label",this.overrideAriaLabel)}}else U=_.p3(this.hostElement).firstChild,U instanceof HTMLElement&&U.id==="contenteditable-root"&&_.tB(this.hostElement,p).removeChild(U)};
_.M.buildScopeDomOptions=function(){if(this.ignoreShadyDom)return{ignoreOwnerDocument:!0}};
_.M.getNodesForVisibilityLogging_=function(){return _.Ax(this.getRoot().childNodes,function(S){var p;return!((p=S.data)==null||!p.trackingParams)})};
_.M.getNodes=function(){return this.getNodesForVisibilityLogging_()};
_.M.onShow=function(){if(!this.useIOObserverForVisibilityLogging_){var S=this.ytRendererBehavior.getVisibilityLogger();S&&this.getNodesForVisibilityLogging_().forEach(function(p){S.reportShown(p)})}};
_.M.onHide=function(){if(!this.useIOObserverForVisibilityLogging_){var S=this.ytRendererBehavior.getVisibilityLogger();S&&this.getNodesForVisibilityLogging_().forEach(function(p){S.reportHidden(p)})}};
_.$u.Object.defineProperties(Oj.prototype,{useMixedDirectionFormattedStrings:{configurable:!0,enumerable:!0,get:function(){return this.plaintextOnly?!1:_.y("enable_mixed_direction_formatted_strings")}}});
Oj.prototype.enableContentEditableChanged_=Oj.prototype.enableContentEditableChanged_;Oj.prototype.overrideAriaLabelChanged_=Oj.prototype.overrideAriaLabelChanged_;Oj.prototype.ellipsisTruncateChanged_=Oj.prototype.ellipsisTruncateChanged_;Oj.prototype.textChanged=Oj.prototype.textChanged;_.x([_.F(SME.YtPlaintextBehavior),_.E("design:type",Object)],Oj.prototype,"ytPlaintextBehavior",void 0);_.x([_.F(_.eL.YtComponentBehavior),_.E("design:type",Object)],Oj.prototype,"ytComponentBehavior",void 0);
_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],Oj.prototype,"ytRendererBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],Oj.prototype,"text",void 0);_.x([_.g(),_.E("design:type",Boolean)],Oj.prototype,"noEndpoints",void 0);_.x([_.g(),_.E("design:type",Boolean)],Oj.prototype,"noStyles",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Boolean)],Oj.prototype,"isDarkTheme",void 0);
_.x([_.g({reflectToAttribute:!0,value:!1}),_.E("design:type",Boolean)],Oj.prototype,"splitLines",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Boolean)],Oj.prototype,"forceDefaultStyle",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Boolean)],Oj.prototype,"ellipsisTruncate",void 0);_.x([_.g(),_.E("design:type",Object)],Oj.prototype,"ignoreShadyDom",void 0);
_.x([_.g({reflectToAttribute:!0,computed:"computeEllipsisTruncateStyling(ellipsisTruncate, useYtAttributedString)"}),_.E("design:type",Boolean)],Oj.prototype,"ellipsisTruncateStyling",void 0);_.x([_.g({reflectToAttribute:!0,computed:"computeAriaLabel_(text.accessibility.accessibilityData.label)"}),_.E("design:type",String)],Oj.prototype,"ariaLabel",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Boolean)],Oj.prototype,"isEmpty",void 0);
_.x([_.g({reflectToAttribute:!0,computed:"computeHasLinkOnly_(text.runs)"}),_.E("design:type",Boolean)],Oj.prototype,"hasLinkOnly_",void 0);_.x([_.g(),_.E("design:type",Boolean)],Oj.prototype,"hasEmoji",void 0);_.x([_.g(),_.E("design:type",Boolean)],Oj.prototype,"disableAttributedString",void 0);_.x([_.g(),_.E("design:type",Boolean)],Oj.prototype,"isOverlay",void 0);_.x([_.g(),_.E("design:type",Boolean)],Oj.prototype,"linkInheritColor",void 0);
_.x([_.g(),_.E("design:type",Boolean)],Oj.prototype,"noPreWrap",void 0);_.x([_.g(),_.E("design:type",Boolean)],Oj.prototype,"userInput",void 0);_.x([_.g({value:16}),_.E("design:type",Number)],Oj.prototype,"emojiSize",void 0);_.x([_.g(),_.E("design:type",String)],Oj.prototype,"target",void 0);_.x([_.g(),_.E("design:type",Boolean)],Oj.prototype,"enableContentEditable",void 0);_.x([_.g(),_.E("design:type",String)],Oj.prototype,"overrideAriaLabel",void 0);
_.x([_.g(),_.E("design:type",Boolean)],Oj.prototype,"respectHtmlDir",void 0);_.x([_.g(),_.E("design:type",Boolean)],Oj.prototype,"respectLangDir",void 0);_.x([_.e("plaintextOnly"),_.E("design:type",Boolean),_.E("design:paramtypes",[])],Oj.prototype,"useMixedDirectionFormattedStrings",null);_.x([_.g({computed:"computeUseAttributedString(text)"}),_.E("design:type",Boolean)],Oj.prototype,"useYtAttributedString",void 0);
_.x([_.T4("text"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],Oj.prototype,"textChanged",null);_.x([_.T4("ellipsisTruncate"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],Oj.prototype,"ellipsisTruncateChanged_",null);_.x([_.T4("overrideAriaLabel"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],Oj.prototype,"overrideAriaLabelChanged_",null);
_.x([_.T4("enableContentEditable"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],Oj.prototype,"enableContentEditableChanged_",null);Oj=_.x([_.FB({is:"yt-formatted-string",disableElementRegistration:!0})],Oj);
_.C(Oj,"yt-formatted-string",function(){if(Ukm===void 0){var S=document.createElement("template");_.h(S,'\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>');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);var p=S.content,U=p.insertBefore;pxt===void 0&&(pxt=document.createElement("template"));var Y=pxt;U.call(p,Y.content.cloneNode(!0),S.content.firstChild);Ukm=S}S=Ukm;return S});var YMt;var Lud;var MxE;var IBt;var kK=function(){var S=_.w.apply(this,arguments)||this;S.focused=!1;S.disabled=!1;S.isOverlay=!1;return S};
_.r(kK,_.w);kK.prototype.triggerDown=function(){if(!this.disabled){_.U2(this.hostElement,"down",!0);var S;(S=this.currentAnimation)==null||S.cancel()}};
kK.prototype.triggerUp=function(){if(!this.disabled){_.U2(this.hostElement,"down",!1);var S=this.fillElement;var p=this.strokeElement;typeof GroupEffect==="function"?(S=new GroupEffect([IYe(S),d1R(p)]),S=new Animation(S,document.timeline)):S=new E_Q(S,p);this.currentAnimation=S;var U;(U=this.currentAnimation)==null||U.play()}};
_.x([_.O2(".stroke"),_.E("design:type",HTMLElement)],kK.prototype,"strokeElement",void 0);_.x([_.O2(".fill"),_.E("design:type",HTMLElement)],kK.prototype,"fillElement",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],kK.prototype,"focused",void 0);_.x([_.g(),_.E("design:type",Object)],kK.prototype,"disabled",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],kK.prototype,"isOverlay",void 0);kK=_.x([_.FB({is:"yt-interaction",disableElementRegistration:!0})],kK);
_.C(kK,"yt-interaction",function(){if(IBt===void 0){var S=document.createElement("template");_.h(S,'\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>');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);var p=S.content,U=p.insertBefore;MxE===void 0&&(MxE=document.createElement("template"));var Y=MxE;U.call(p,Y.content.cloneNode(!0),S.content.firstChild);IBt=S}S=IBt;return S},{mode:2});var HV=function(){return _.w.apply(this,arguments)||this};
_.r(HV,_.w);_.M=HV.prototype;_.M.ready=function(){var S=this,p=_.tB(this.hostElement).querySelector("#button");p.addEventListener("focus",function(){eIc||(eIc=new srm);S.keyboardFocused=eIc.isKeyBoardInUse()});
p.addEventListener("blur",function(){S.keyboardFocused=!1;S.rippleUp_()})};
_.M.computeTabIndex_=function(S){return S?-1:0};
_.M.computeButtonAriaPressed_=function(S){if(this.toggleable)return S?"true":"false"};
_.M.rippleDown_=function(){_.tB(this.hostElement).querySelector("#interaction").triggerDown()};
_.M.rippleUp_=function(){_.tB(this.hostElement).querySelector("#interaction").triggerUp()};
_.M.onPressedChanged_=function(){var S=_.p3(_.tB(this.hostElement).querySelector("#button")).querySelector("yt-icon")||_.p3(_.tB(this.hostElement).querySelector("#button")).children[0];S&&(S.active=this.pressed)};
HV.prototype.onPressedChanged_=HV.prototype.onPressedChanged_;HV.prototype.rippleUp_=HV.prototype.rippleUp_;HV.prototype.rippleDown_=HV.prototype.rippleDown_;_.x([_.g(),_.E("design:type",String)],HV.prototype,"label",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Boolean)],HV.prototype,"disabled",void 0);_.x([_.g(),_.E("design:type",Boolean)],HV.prototype,"pressed",void 0);_.x([_.g(),_.E("design:type",Object)],HV.prototype,"toggleable",void 0);
_.x([_.g(),_.E("design:type",Boolean)],HV.prototype,"untabbable",void 0);_.x([_.g(),_.E("design:type",Boolean)],HV.prototype,"keyboardFocused",void 0);_.x([_.Vd("down"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],HV.prototype,"rippleDown_",null);_.x([_.Vd("up"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],HV.prototype,"rippleUp_",null);
_.x([_.T4("pressed"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],HV.prototype,"onPressedChanged_",null);HV=_.x([_.FB({is:"yt-icon-button",disableElementRegistration:!0})],HV);
_.C(HV,"yt-icon-button",function(){if(Lud===void 0){var S=document.createElement("template");_.h(S,'\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>');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);var p=S.content,U=p.insertBefore;YMt===void 0&&(YMt=document.createElement("template"));var Y=YMt;U.call(p,Y.content.cloneNode(!0),S.content.firstChild);Lud=S}S=Lud;return S},{mode:2});var dkc=_.x1(["aria-"]),Dm={};Dm.YtRenderButtonBehavior=[_.c.YtRendererBehavior,_.WV.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!!_.tW().resolve(_.AW(_.SN))&&_.y("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 S=this.computeHref_(this.endpoint,!0);S?hA(this.elements_.endpoint,S):this.elements_.endpoint.removeAttribute("href")}if(this.buttonClass){S=this.buttonClass.split(" ");S=_.d(S);for(var p=S.next();!p.done;p=S.next())p=p.value,_.U2(this.hostElement,p,!0),this.elements_.button&&_.U2(this.elements_.button,p,!0),this.elements_.text&&_.U2(this.elements_.text,p,!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&&(S=null,this.buttonAccessibility&&(S=this.buttonAccessibility.label),this.elements_.button.is=="yt-icon-button"?this.elements_.button.label=S:S?_.xq([_.Sb(dkc)],this.elements_.button,"aria-label",S):this.elements_.button.removeAttribute("aria-label"))},
dataChanged_:function(){this.updateRenderedElements()},
onFocus_:function(){this.addTooltips_();if(this.useKeyboardFocused){var S=_.tW().resolve(_.AW(_.SN));S&&(this.keyboardFocused=S.isKeyBoardInUse())}},
onBlur_:function(){this.keyboardFocused=!1},
addTooltips_:function(){this.elements_.endpoint&&this.showTooltips&&this.buttonTooltip&&(this.elements_.tooltip||(this.elements_.tooltip=this.reuseEnabled_()?_.ij("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,_.K9(this.elements_.endpoint).appendChild(this.elements_.tooltip)),_.K9(this.elements_.tooltip).textContent=this.buttonTooltip)},
buttonClassChanged_:function(S,p){if(p)for(S=p.split(" "),S=_.d(S),p=S.next();!p.done;p=S.next())p=p.value,_.U2(this.hostElement,p,!1),this.elements_.button&&_.U2(this.elements_.button,p,!1),this.elements_.text&&_.U2(this.elements_.text,p,!1)},
buttonIconChanged_:function(S){this.elements_.icon?S?(this.elements_.icon.icon=S,this.setIconActive_(this.elements_.icon)):(this.elements_.button&&_.K9(this.elements_.button).removeChild(this.elements_.icon),this.elements_.icon=null,_.Yk(this.hostElement,"is-paper-button-with-icon",!1)):S&&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"&&_.K9(this.elements_.button).appendChild(this.elements_.icon):_.K9(this.elements_.button).insertBefore(this.elements_.icon,this.elements_.text),_.Yk(this.hostElement,"is-paper-button-with-icon",!0))},
stampTypeChanged_:function(S){if(this.isAttached===void 0)this.hasChange_=!0;else if(this.hasChange_=!1,this.emptyContainer_(),this.elements_={},this.componentReady_=!1,S){var p=!1;this.elements_.endpoint=document.createElement("a");this.elements_.endpoint.classList.add("yt-simple-endpoint");this.elements_.endpoint.tabIndex=-1;switch(S){case "yt_icon_button_with_label":p=!0;_.U2(this.hostElement,"force-icon-button",!0);this.elements_.button=this.getYtIconButton_();S=_.K9(this.elements_.button).firstElementChild;
this.elements_.icon=S;this.setIconActive_(this.elements_.icon);this.elements_.text=this.getFormattedString_();this.elements_.text.id="text";this.elements_.text.ellipsisTruncate=this.ellipsisTruncate;_.K9(this.elements_.endpoint).appendChild(this.elements_.button);_.K9(this.elements_.endpoint).appendChild(this.elements_.text);break;case "paper_button":this.elements_.button=this.reuseEnabled_()?_.ij("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;_.K9(this.elements_.button).appendChild(this.elements_.text);_.K9(this.elements_.endpoint).appendChild(this.elements_.button);this.buttonIcon&&this.addIconElementToPaperButton_();break;case "yt-icon-button":p=!0,this.elements_.button=this.getYtIconButton_(),S=_.K9(this.elements_.button).firstElementChild,this.elements_.icon=S,this.setIconActive_(this.elements_.icon),
_.K9(this.elements_.endpoint).appendChild(this.elements_.button)}_.Yk(this.hostElement,"is-icon-button",p);_.Yk(this.hostElement,"is-paper-button",!p);_.Yk(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 U;_.tB((U=this.container.hostElement)!=null?U:this.container).appendChild(this.elements_.endpoint);this.componentReady_=!0}},
iconPositionTypeChanged_:function(){this.iconPositionType&&(this.elements_.button&&this.elements_.icon&&_.K9(this.elements_.button).removeChild(this.elements_.icon),this.addIconElementToPaperButton_(),this.elements_.icon.icon=this.buttonIcon)},
isDisabledChanged_:function(S){if(S!=void 0||this.disabled)this.disabled=S,this.elements_.button&&(this.elements_.button.disabled=S)},
isSelectedChanged_:function(){this.setIconActive_(this.elements_.icon)},
setIconActive_:function(S){_.y("kevlar_system_icons")&&S&&this.data&&(this.data.isSelected!==void 0?S.active=this.data.isSelected:this.data.isToggled!==void 0&&(S.active=this.data.isToggled))},
observeBasicPalette_:function(S){_.Gw(this.hostElement,S)},
disabledChanged_:function(S){this.data&&this.set("data.isDisabled",S)},
onYtButtonTap_:function(S){if(this.disabled)S.stopImmediatePropagation(),this.sendServiceEndpointWhenDisabled&&this.serviceEndpoint&&_.Yd(this.hostElement,[this.serviceEndpoint]),this.sendCommandWhenDisabled&&this.data&&this.data.command&&this.resolveCommand(this.data.command,{},!0);else if(S=this.disableCommandHandlerOverride,!this.data||!this.data.command||S||!this.resolveCommand(this.data.command,{},!0)){if(this.serviceEndpoint)_.y("handle_service_request_actions")||_.Yd(this.hostElement,[this.serviceEndpoint]),
_.cv(this.hostElement,"yt-execute-service-endpoint",{serviceEndpoint:this.serviceEndpoint});else this.onYtButtonTapHandler();_.y("handle_service_request_actions")?(S=[],this.serviceEndpoint&&S.push(this.serviceEndpoint),this.data&&this.data.command&&this.data.command!=this.serviceEndpoint&&S.push(this.data.command),S.length&&_.Lp(this.hostElement,S,this.hostElement)):this.data&&this.data.command&&(S=this.data.command,S.accountUnlinkCommand||S.accountLinkCommand||S.insertAdCommand||S.insertHighlightMarkerCommand||
S.createLivestreamHighlightClipCommand||S.getVideoUploadFeedbackCommand||S.musicDeletePrivatelyOwnedEntityCommand||S.ypcCancelRecurrenceEndpoint||S.getMultiSelectCommandEndpoint?_.Yd(this.hostElement,[S]):_.Lp(this.hostElement,[S],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 S,p=_.tB((S=this.container.hostElement)!=null?S:this.container);p.lastChild&&p.lastChild.tagName!="STYLE";)try{p.removeChild(p.lastChild)}catch(U){break}},
getYtIconButton_:function(){var S=this.reuseEnabled_()?_.ij("yt-icon-button"):document.createElement("yt-icon-button"),p=_.K9(S).firstElementChild;if(p&&p.is!="yt-icon"){for(p=_.K9(S);p.lastChild;)p.removeChild(p.lastChild);p=null}p||(p=this.getIcon_(),this.setIconActive_(p),_.K9(S).appendChild(p));return S},
reuseEnabled_:function(){return _.y("enable_button_behavior_reuse")},
getIcon_:function(){return this.reuseEnabled_()?_.ij("yt-icon"):document.createElement("yt-icon")},
getFormattedString_:function(){return this.reuseEnabled_()?_.ij("yt-formatted-string"):document.createElement("yt-formatted-string")}}];_.Vxj={};
_.Vxj.YtButtonBehavior=[Dm.YtRenderButtonBehavior,{properties:{data:Object},observers:["stateChanged_(data)","stateChanged_(data.text)","stateChanged_(data.isDisabled)","stateChanged_(data.style)","stateChanged_(forceIconOnly)"],stateChanged_:function(){var S=this.data;S&&(this._setEndpoint(this.computeEndpoint_(S)),this._setServiceEndpoint(this.computeServiceEndpoint_(S)),this._setCommand(this.computeCommand_(S)),this._setButtonIcon(this.computeButtonIcon_(S)),this._setButtonText(this.computeButtonText_(S,this.forceIconOnly)),
this._setButtonAccessibility(this.computeAccessibility_(S)),this._setButtonTooltip(this.computeTooltip_(S)),this._setButtonClass(this.computeButtonClass_(S)),this._setIconPositionType(this.computeIconPositionType_(S)),this.updateRenderedElements())},
setPressedState:function(S){var p;if((p=this.elements_)==null?0:p.button)this.elements_.button.pressed=!!S},
computeIconPositionType_:function(S){return S&&S.iconPosition||null},
computeEndpoint_:function(S){var p=S&&S.navigationEndpoint,U=this.get("data.command.commandMetadata.webCommandMetadata.url"),Y=this.get("data.command.commandMetadata.webCommandMetadata.sendPost");return p?p:S&&S.command&&S.command.modalEndpoint?S.command:U&&!Y&&S.command?S.command:null},
computeServiceEndpoint_:function(S){var p=S&&S.serviceEndpoint,U=this.get("data.command.commandMetadata.webCommandMetadata.sendPost");return p?p:U&&S.command?S.command:null},
computeCommand_:function(S){return S&&S.command||null},
computeButtonIcon_:function(S){return S&&S.icon&&S.icon.iconType?_.If(S.icon.iconType):null},
computeButtonText_:function(S,p){return!p&&S&&S.text||null},
computeAccessibility_:function(S){return this.get("accessibilityData.accessibilityData",S)||S&&S.accessibility||(S&&S.text?{label:this.getSimpleString(S.text)}:null)},
computeTooltip_:function(S){return S?S.isDisabled&&S.disabledTooltip||S.tooltip||null:null},
computeButtonClass_:function(S){var p=S&&S.style?S.style.toLowerCase().replace(/_/g,"-")+" ":"";p+=S&&S.size?S.size.toLowerCase().replace(/_/g,"-")+" ":"";S.colorData&&S.colorData.basicColorPaletteData&&S.colorData.basicColorPaletteData.borderColor&&(p+="palette-with-border");return p.trim()}}];var h7={};var TJj;var Wuw;var OIH,kKt=function(){return OIH!==void 0?OIH:OIH=document.createElement("template")};
document.head.appendChild(kKt().content);var HIE;var Dkw,zSm=function(){return Dkw!==void 0?Dkw:Dkw=document.createElement("template")};
document.head.appendChild(zSm().content);var QJl;var neE,JLl=function(){return neE!==void 0?neE:neE=document.createElement("template")};
document.head.appendChild(JLl().content);var yLd;var KuH=document.head,bIQ=KuH.appendChild,jJw;if(yLd===void 0){var rLl=document.createElement("template");_.h(rLl,"\x3c!--css-build:shady--\x3e");rLl.content.insertBefore(JLl().content.cloneNode(!0),rLl.content.firstChild);yLd=rLl}jJw=yLd;bIQ.call(KuH,jJw.content);var GKc=document.head,hSd=GKc.appendChild,RSP;if(QJl===void 0){var Fue=document.createElement("template");_.h(Fue,"\x3c!--css-build:shady--\x3e");Fue.content.insertBefore(zSm().content.cloneNode(!0),Fue.content.firstChild);QJl=Fue}RSP=QJl;hSd.call(GKc,RSP.content);var Xxc=document.head,PWd=Xxc.appendChild,ZIw;if(HIE===void 0){var sJI=document.createElement("template");_.h(sJI,"\x3c!--css-build:shady--\x3e");sJI.content.insertBefore(kKt().content.cloneNode(!0),sJI.content.firstChild);HIE=sJI}ZIw=HIE;PWd.call(Xxc,ZIw.content);var eSH;_.Ry("sharingToggleButtonAndDefaultButton","buttonRenderer","yt-button-renderer");eSH=_.y("web_button_rework")&&_.ub("BUTTON_REWORK")||_.y("web_button_rework_with_live");_.zb=function(){return _.w.apply(this,arguments)||this};
_.r(_.zb,_.w);_.zb.prototype.created=function(){this.openPopupConfig=_.g7("openPopupConfig");this.ytButtonBehavior.showTooltips=!0};
_.zb.prototype.onYtNavigate_=function(S){var p=this.ytOpenPopupBehavior.getNavigationEndpointPopupAction(S.detail.endpoint);p&&(this.ytOpenPopupBehavior.openPopup(p),S.stopPropagation(),S.preventDefault())};
_.$u.Object.defineProperties(_.zb,{template:{configurable:!0,enumerable:!0,get:function(){if(Wuw===void 0){var S=document.createElement("template");_.h(S,"\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");S.content.insertBefore(_.t().content.cloneNode(!0),S.content.firstChild);
var p=S.content,U=p.insertBefore;TJj===void 0&&(TJj=document.createElement("template"));var Y=TJj;U.call(p,Y.content.cloneNode(!0),S.content.firstChild);Wuw=S}S=Wuw;return S}}});
_.zb.prototype.onYtNavigate_=_.zb.prototype.onYtNavigate_;_.x([_.F(_.dW.YtOpenPopupBehavior),_.E("design:type",Object)],_.zb.prototype,"ytOpenPopupBehavior",void 0);_.x([_.F(_.Vxj.YtButtonBehavior),_.E("design:type",Object)],_.zb.prototype,"ytButtonBehavior",void 0);_.x([_.Vd("yt-navigate"),_.E("design:type",Function),_.E("design:paramtypes",[CustomEvent]),_.E("design:returntype")],_.zb.prototype,"onYtNavigate_",null);
_.zb=_.x([_.FB({is:"yt-button-renderer",noInjection:!0,disableElementRegistration:eSH})],_.zb);var geI;var u6E=_.y("web_button_rework")&&_.ub("BUTTON_REWORK")||_.y("web_button_rework_with_live"),Qg=function(){var S=_.w.apply(this,arguments)||this;S.isPressed=!1;S.forceIconButton=!1;S.forceIconOnly=!1;S.forceModernIconButton=!1;S.skipCommandHandling=!1;S.alignByText=!1;S.fitToVisibleBounds=!0;S.actionMap={"yt-update-button-action":"handleUpdateButtonAction"};S.onTap=function(p){_.cv(S.hostElement,"yt-service-request-sent-button-renderer",p)};
return S};
_.r(Qg,_.w);_.M=Qg.prototype;_.M.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","");this.hostElement.setAttribute("button-next","")};
_.M.onClick=function(S){var p,U=this.disabled||((p=this.data)==null?void 0:p.isDisabled);p=this.hostElement.hasAttribute("dialog-dismiss")||this.hostElement.hasAttribute("dialog-confirm");U&&p&&S.stopPropagation()};
_.M.computeIcon=function(){var S,p,U=(S=this.data)==null?void 0:(p=S.icon)==null?void 0:p.iconType;if(U)return _.If(U)};
_.M.computeTooltip=function(){return this.data?this.data.isDisabled&&this.data.disabledTooltip||this.data.tooltip||null:null};
_.M.handleUpdateButtonAction=function(S){S=_.b(S,OTj);var p=_.b(S==null?void 0:S.updatedButton,_.XT);if(this.data&&S&&p){var U=this.data;U.targetId&&S.targetId&&U.targetId===S.targetId&&(this.data=p)}};
_.$u.Object.defineProperties(Qg.prototype,{computedButtonShape:{configurable:!0,enumerable:!0,get:function(){var S=this;if(this.data){var p=UjX({renderer:this.data,element:this.hostElement,commandController:{onSuccess:function(){return _.cv(S.hostElement,"yt-service-request-completed-button-renderer")},
onServerError:function(){return _.cv(S.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});p.alignByText=this.alignByText;return p}}}});
_.$u.Object.defineProperties(Qg,{template:{configurable:!0,enumerable:!0,get:function(){if(geI===void 0){var S=document.createElement("template");_.h(S,'\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>');geI=S}S=geI;return S}}});
Qg.prototype.onClick=Qg.prototype.onClick;_.x([_.F(_.eL.YtComponentBehavior),_.E("design:type",Object)],Qg.prototype,"ytComponentBehavior",void 0);_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],Qg.prototype,"ytRendererBehavior",void 0);_.x([_.F(_.Aj.YtActionHandlerBehavior),_.E("design:type",Object)],Qg.prototype,"ytActionHandlerBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],Qg.prototype,"data",void 0);_.x([_.g(),_.E("design:type",Object)],Qg.prototype,"isPressed",void 0);
_.x([_.g(),_.E("design:type",Object)],Qg.prototype,"forceIconButton",void 0);_.x([_.g(),_.E("design:type",Object)],Qg.prototype,"forceIconOnly",void 0);_.x([_.g(),_.E("design:type",Object)],Qg.prototype,"forceModernIconButton",void 0);_.x([_.g(),_.E("design:type",Object)],Qg.prototype,"skipCommandHandling",void 0);_.x([_.g(),_.E("design:type",Object)],Qg.prototype,"alignByText",void 0);_.x([_.g(),_.E("design:type",Object)],Qg.prototype,"buttonTooltipPosition",void 0);
_.x([_.g(),_.E("design:type",Object)],Qg.prototype,"fitToVisibleBounds",void 0);_.x([_.g({computed:"computeTooltip(data)"}),_.E("design:type",Object)],Qg.prototype,"tooltip",void 0);_.x([_.g(),_.E("design:type",Object)],Qg.prototype,"overrides",void 0);_.x([_.g(),_.E("design:type",Boolean)],Qg.prototype,"disabled",void 0);_.x([_.Vd("click"),_.E("design:type",Function),_.E("design:paramtypes",[Event]),_.E("design:returntype")],Qg.prototype,"onClick",null);
_.x([_.e("data.*","forceIconButton","forceIconOnly","alignByText","disabled","forceModernIconButton","overrides"),_.E("design:type",Object),_.E("design:paramtypes",[])],Qg.prototype,"computedButtonShape",null);Qg=_.x([_.FB({is:"ytd-button-renderer",noInjection:!0,disableElementRegistration:!u6E,cssBuildOptOut:!0}),_.FB({is:"yt-button-renderer",noInjection:!0,disableElementRegistration:!u6E,cssBuildOptOut:!0})],Qg);var wxw;var lBm;var nY=function(){var S=_.w.apply(this,arguments)||this;S.empty_=!0;S.loadTime=Infinity;S.pendingPaint=!1;S.hasChange_=!1;S.oldThumbnail_=null;S.oldDelayedSrc_="";S.objectURL_=null;return S};
_.r(nY,_.w);_.M=nY.prototype;_.M.attached=function(){this.hasChange_&&this.thumbnailChanged_()};
_.M.ready=function(){var S=this.shouldShowPlaceholder_();_.U2(this.hostElement,"no-transition",!0);S&&this.hostElement.classList.add("with-placeholder")};
_.M.isPreloaded=function(){return this.isThumbPreloaded_(this.thumbnail)};
_.M.isThumbPreloaded_=function(S){return!!this.get("webThumbnailDetailsExtensionData.isPreloaded",S)};
_.M.computeSrc_=function(){return this.delayedSrc||this.computeThumbnailSrc_(this.thumbnail)||aBE};
_.M.computeThumbnailSrc_=function(S){return S&&S.thumbnails?_.AS(S.thumbnails,this.dimension==="width"?this.width:this.height,this.preferredThumbnail,this.dimension):null};
_.M.computeAlt_=function(){var S=this.thumbnail&&this.thumbnail.accessibility&&this.thumbnail.accessibility.accessibilityData&&this.thumbnail.accessibility.accessibilityData.label;return this.loaded&&S||""};
_.M.thumbnailChanged_=function(){var S=_.d([this.thumbnail,this.oldThumbnail_]),p=S.next().value;S=S.next().value;this.oldThumbnail_=p;if(this.isAttached===void 0)this.hasChange_=!0;else{this.hasChange_=!1;if(this.loaded&&(S=this.computeThumbnailSrc_(S),this.computeThumbnailSrc_(p)===S))return;_.y("kevlar_use_vimio_behavior")&&this.ytRendererBehavior.markDirty();this.isThumbPreloaded_(p)?(this.loadTime=Infinity,this.setSrc_(this.thumbnail.thumbnails[0].url),this.empty_=!1):p&&_.ub("DISABLE_YT_IMG_DELAY_LOADING",
!1)?this.loaded&&!this.empty_?_.oH(this,this.onReload_):_.oH(this,this.onShow_):this.resetImage_();p&&(this.hostElement.style.opacity=""+p.opacity)}};
_.M.delayedSrcChanged_=function(){var S=this.oldDelayedSrc_;this.oldDelayedSrc_=this.delayedSrc;this.loaded&&this.delayedSrc===S||this.resetImage_()};
_.M.setSrc_=function(S){S?(_.tB(this.hostElement).querySelector("#img").src||this.hostElement.classList.remove("empty"),_.tB(this.hostElement).querySelector("#img").src=S):(_.tB(this.hostElement).querySelector("#img").removeAttribute("src"),this.hostElement.classList.add("empty"))};
_.M.resetImage_=function(){LKw(this.hostElement);this.empty_=!0;this.setSrc_(aBE);this.ytRendererBehavior.invalidate(!1)};
_.M.observePlaceholderColor_=function(){var S=this.thumbnail&&this.thumbnail.placeholderColor;S?this.hostElement.style.backgroundColor=_.s1(S):this.shouldShowPlaceholder_()||(this.hostElement.style.backgroundColor="transparent")};
_.M.onLoad_=function(){_.tB(this.hostElement).querySelector("#img").src&&_.tB(this.hostElement).querySelector("#img").src!==aBE&&(YYN(this.hostElement),this.notifyOnLoaded&&_.cv(this.hostElement,"yt-img-shadow-loaded"),this.objectURL_&&(URL.revokeObjectURL(this.objectURL_),this.objectURL_=null))};
_.M.onError_=function(){var S=this;if(_.y("web_use_cache_for_image_fallback"))ORw(_.tB(this.hostElement).querySelector("#img").src).then(function(p){S.objectURL_=_.Kh(p).toString();S.setSrc_(S.objectURL_)}).catch(function(){_.y("kevlar_woffle_fallback_image")&&S.setSrc_("data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mN8XA8AAksBZG7LpHYAAAAASUVORK5CYII=")});
else this.onLoad_()};
_.M.onPrescanVisible=function(){this.onShow_()};
_.M.onVisible=function(){if(_.y("yt_img_shadow_trigger_show_on_visible"))this.onShow_()};
_.M.onShow_=function(){if(!this.loaded||this.empty_){this.empty_=!1;var S=this.computeSrc_();S!==_.tB(this.hostElement).querySelector("#img").src&&(this.loaded=!1,this.setSrc_(S))}};
_.M.onReload_=function(){this.empty_=!1;var S=this.computeSrc_();S!==_.tB(this.hostElement).querySelector("#img").src&&(this.loaded=!1,this.setSrc_(S))};
_.M.shouldShowPlaceholder_=function(){return _.y("kevlar_thumbnail_bg")};
nY.prototype.observePlaceholderColor_=nY.prototype.observePlaceholderColor_;nY.prototype.delayedSrcChanged_=nY.prototype.delayedSrcChanged_;nY.prototype.thumbnailChanged_=nY.prototype.thumbnailChanged_;_.x([_.g({reflectToAttribute:!0}),_.E("design:type",String)],nY.prototype,"alt",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],nY.prototype,"ariaHidden",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",String)],nY.prototype,"ariaLabel",void 0);
_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Boolean)],nY.prototype,"hidden",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",String)],nY.prototype,"id",void 0);_.x([_.F(_.wk.YtVisibilityBehavior),_.E("design:type",Object)],nY.prototype,"ytVisibilityBehavior",void 0);_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],nY.prototype,"ytRendererBehavior",void 0);_.x([_.g(),_.E("design:type",String)],nY.prototype,"delayedSrc",void 0);
_.x([_.g(),_.E("design:type",Object)],nY.prototype,"thumbnail",void 0);_.x([_.g({value:!1,reflectToAttribute:!0}),_.E("design:type",Boolean)],nY.prototype,"loaded",void 0);_.x([_.g(),_.E("design:type",Boolean)],nY.prototype,"notifyOnLoaded",void 0);_.x([_.g(),_.E("design:type",Number)],nY.prototype,"height",void 0);_.x([_.g(),_.E("design:type",Number)],nY.prototype,"width",void 0);_.x([_.g({value:function(){return"width"}}),
_.E("design:type",String)],nY.prototype,"dimension",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Boolean)],nY.prototype,"fit",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Boolean)],nY.prototype,"fitHeight",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Boolean)],nY.prototype,"fitWidth",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",String)],nY.prototype,"objectFit",void 0);
_.x([_.g({reflectToAttribute:!0}),_.E("design:type",String)],nY.prototype,"objectPosition",void 0);_.x([_.g(),_.E("design:type",String)],nY.prototype,"preferredThumbnail",void 0);_.x([_.g({value:"",computed:"computeAlt_(thumbnail.accessibility.accessibilityData.label, loaded)"}),_.E("design:type",String)],nY.prototype,"alt_",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",String)],nY.prototype,"sharedTooltipText",void 0);
_.x([_.g(),_.E("design:type",Boolean)],nY.prototype,"ftlEligible",void 0);_.x([_.g({value:void 0}),_.E("design:type",String)],nY.prototype,"observeHiddenOption",void 0);_.x([_.g({value:"observe_once"}),_.E("design:type",String)],nY.prototype,"observePrescanOption",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Boolean)],nY.prototype,"roundedContainer",void 0);
_.x([_.z4("thumbnail"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],nY.prototype,"thumbnailChanged_",null);_.x([_.z4("delayedSrc"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],nY.prototype,"delayedSrcChanged_",null);_.x([_.T4("thumbnail.placeholderColor"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],nY.prototype,"observePlaceholderColor_",null);
nY=_.x([_.FB({is:"yt-img-shadow",disableElementRegistration:!0})],nY);var aBE=_.ub("NO_EMPTY_DATA_IMG")?"":"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7";
_.pz()(nY,"yt-img-shadow",function(){if(lBm===void 0){var S=document.createElement("template");_.h(S,'\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">');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);var p=S.content,U=p.insertBefore;wxw===void 0&&(wxw=document.createElement("template"));var Y=wxw;U.call(p,Y.content.cloneNode(!0),S.content.firstChild);lBm=S}S=lBm;return S},{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 aid;_.Jt=new _.$g("SCREEN_MANAGER_TOKEN");aid=new _.$g("LOG_INITIAL_SCREEN_TOKEN");_.jS=_.$k(function(S){function p(TG){return _.b(TG,_.K6)}
function U(){var TG=Y().isTogglingDisabled||J()?X():!X();Z(TG);a(!1);if(!Y().isTogglingDisabled){var Je;(Je=V)==null||Je(!!TG)}var GG;((GG=I)==null?0:GG())||_.La(_.tW().resolve(_.Jt),Y().trackingParams);var Zw;if(!TG||!p(Y().defaultButtonViewModel)||(Zw=I)!=null&&Zw()){var Ru;!p(Y().toggledButtonViewModel)||((Ru=I)==null?0:Ru())||_.La(_.tW().resolve(_.Jt),p(Y().toggledButtonViewModel).trackingParams)}else _.La(_.tW().resolve(_.Jt),p(Y().defaultButtonViewModel).trackingParams)}
var Y=S.data,L=S.buttonShapeOverrides,I=S.disableExplicitClickLogging,V=S.onToggle,W=S.style,O=S.useOutlinedIcon,D=S.className,z=function(){var TG,Je;return X()?(TG=S.animatedTextPropsToggled)==null?void 0:TG.call(S):(Je=S.animatedTextPropsDefault)==null?void 0:Je.call(S)},Q=_.nS(function(){return z()?Object.assign({},z(),{shouldAnimate:l()}):void 0},void 0,"ZKEa0b"),J=function(){var TG;
return((TG=A())==null?void 0:TG.isToggled)!==void 0},K=_.d(_.Dt(function(){var TG,Je,GG;
return J()?(TG=A())==null?void 0:TG.isToggled:(GG=L==null?void 0:(Je=L())==null?void 0:Je.toggled)!=null?GG:Y().isToggled})),G=K.next().value;
K=K.next().value;var X=G,Z=K;K=_.d(_.Dt(function(){var TG,Je;return(TG=S.animatedTextPropsToggled)==null?void 0:(Je=TG.call(S))==null?void 0:Je.shouldAnimate}));
G=K.next().value;K=K.next().value;var l=G,a=K;G=_.d(_.kj(!1,void 0,"S11hid"));var N=G.next().value,m=G.next().value,A=_.Xc(function(TG){var Je;a:{var GG=Y().entityKey,Zw=Y().toggledStateEntitySelectorType;if(Zw&&GG)switch(Zw){case "TOGGLE_BUTTON_ENTITY_SELECTOR_TYPE_SFV_AUDIO_ITEM":var Ru;TG=(Ru=_.I4(TG.entities,"sfvAudioItemCurrentlyPlayingEntity",GG))!=null?Ru:void 0;Ru=(Je=TG==null?void 0:TG.sfvAudioItemPlaybackState)!=null?Je:void 0;if(Ru==="SFV_AUDIO_ITEM_PLAYBACK_STATE_PLAYING"){Je={isToggled:!0};
break a}if(Ru){Je={isToggled:!1};break a}break;default:_.eP(new _.y7("Error: entitySelectorType defined but not matched in selector.",TG,Zw))}Je=void 0}return Je}),q=function(){return Object.assign({},L==null?void 0:L(),{onToggle:U,
toggleable:!0,toggled:X(),focused:N()})};
return _.H("toggle-button-view-model",{"on:focusin":_.kL(function(){var TG=_.tW().resolve(_.AW(_.SN));TG&&m(TG.isKeyBoardInUse());return!1}),
"on:focusout":_.kL(function(){m(!1);return!1}),
class:D},_.H(_.n,{cond:function(){return X()?p(Y().toggledButtonViewModel):p(Y().defaultButtonViewModel)},
then:function(TG){return _.H(_.PG,{data:TG,className:D,style:W,useOutlinedIcon:O,buttonOverrides:q,animatedTextProps:Q})}}))},"z");
_.jS.idomCompat={callbacks:{onToggle:!0}};_.qm(_.$k(function(S){return _.H("yt-toggle-button-view-model",{class:function(){var p;return(p=S.scopingClassName)==null?void 0:p.call(S)}},_.H(_.jS,{data:function(){var p;
return(p=S.data)==null?void 0:p.call(S)},
buttonShapeOverrides:function(){var p;return(p=S.overrides)==null?void 0:p.call(S)},
animatedTextPropsDefault:function(){var p;return(p=S.animatedTextPropsDefault)==null?void 0:p.call(S)},
animatedTextPropsToggled:function(){var p;return(p=S.animatedTextPropsToggled)==null?void 0:p.call(S)},
disableExplicitClickLogging:function(){var p;return(p=S.disableExplicitClickLogging)==null?void 0:p.call(S)},
onToggle:function(p){var U;return(U=S.onToggle)==null?void 0:U.call(S,p)},
style:function(){var p;return(p=S.style)==null?void 0:p.call(S)},
useOutlinedIcon:function(){var p;return(p=S.useOutlinedIcon)==null?void 0:p.call(S)},
className:function(){var p;return(p=S.className)==null?void 0:p.call(S)}}))},"A"),"yt-toggle-button-view-model",{props:{data:_.x2,
buttonShapeOverrides:_.x2,overrides:_.x2,animatedTextPropsDefault:_.x2,animatedTextPropsToggled:_.x2,disableExplicitClickLogging:_.x2,onToggle:_.BX,style:_.x2,useOutlinedIcon:_.x2,className:_.x2,scopingClassName:_.x2}});var yg=function(){return _.w.apply(this,arguments)||this};
_.r(yg,_.w);yg.prototype.onTap=function(S){S.stopPropagation();S=this.isLiked?"TOOLBAR_LIKE_STATE_INDIFFERENT":"TOOLBAR_LIKE_STATE_LIKED";this.engagementState?this.ytLiveChatReduxBehavior.dispatch(_.r8("engagementToolbarStateEntityPayload",this.data.engagementStateKey||"",{likeState:S})):this.ytLiveChatReduxBehavior.dispatch(_.WG("engagementToolbarStateEntityPayload",this.data.engagementStateKey||"",{likeState:S}))};
_.$u.Object.defineProperties(yg.prototype,{isLiked:{configurable:!0,enumerable:!0,get:function(){var S;return((S=this.engagementState)==null?void 0:S.likeState)==="TOOLBAR_LIKE_STATE_LIKED"}},
toggleButton:{configurable:!0,enumerable:!0,get:function(){if(this.data){var S=_.b(this.data.toggleButton,_.b6),p;if(Number(((p=this.likeCountState)==null?void 0:p.likeCountIfIndifferentNumber)||"0")===0){var U;p=((U=this.data.likeCountPlaceholder)==null?void 0:U.content)||""}else{var Y,L,I;p=((Y=this.likeCountState)==null?void 0:(L=Y.likeCountIfIndifferent)==null?void 0:L.content)||((I=this.data.likeCountPlaceholder)==null?void 0:I.content)||""}var V,W;U=((V=this.likeCountState)==null?void 0:(W=
V.likeCountIfLiked)==null?void 0:W.content)||"1";V=_.b(S.toggledButtonViewModel,_.K6);return Object.assign({},S,{isToggled:this.isLiked,defaultButtonViewModel:{buttonViewModel:Object.assign({},_.b(S.defaultButtonViewModel,_.K6),{title:p})},toggledButtonViewModel:{buttonViewModel:Object.assign({},V,{title:U})}})}}}});
yg.prototype.onTap=yg.prototype.onTap;_.x([_.F(_.eL.YtComponentBehavior),_.E("design:type",Object)],yg.prototype,"ytComponentBehavior",void 0);_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],yg.prototype,"ytRendererBehavior",void 0);_.x([_.F(_.Zq),_.E("design:type",Object)],yg.prototype,"ytLiveChatReduxBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],yg.prototype,"data",void 0);
_.x([_.g({selectorArgs:["data.likeCountEntityKey"],selector:YNk}),_.E("design:type",Object)],yg.prototype,"likeCountState",void 0);_.x([_.g({selectorArgs:["data.engagementStateKey"],selector:sGe}),_.E("design:type",Object)],yg.prototype,"engagementState",void 0);_.x([_.e("data","engagementState"),_.E("design:type",Boolean),_.E("design:paramtypes",[])],yg.prototype,"isLiked",null);
_.x([_.e("data","likeCountState","isLiked"),_.E("design:type",Object),_.E("design:paramtypes",[])],yg.prototype,"toggleButton",null);_.x([_.Vd("tap"),_.E("design:type",Function),_.E("design:paramtypes",[Event]),_.E("design:returntype")],yg.prototype,"onTap",null);yg=_.x([_.FB({disableElementRegistration:!0,is:"yt-live-chat-like-button-view-model",noInjection:!0})],yg);
_.C(yg,"yt-live-chat-like-button-view-model",function(){if(cRj===void 0){var S=document.createElement("template");_.h(S,'\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');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);var p=S.content,U=p.insertBefore;t7E===void 0&&(t7E=document.createElement("template"));var Y=t7E;U.call(p,Y.content.cloneNode(!0),S.content.firstChild);cRj=S}S=cRj;return S},{mode:_.y("live_chat_enable_sink_wrapper")?2:0});var fBQ;var CWq;var KY=function(){return _.w.apply(this,arguments)||this};
_.r(KY,_.w);_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],KY.prototype,"ytRendererBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],KY.prototype,"data",void 0);KY=_.x([_.FB({disableElementRegistration:!0,is:"yt-live-chat-paid-message-footer-renderer",isInjectionRoot:!0})],KY);
_.C(KY,"yt-live-chat-paid-message-footer-renderer",function(){if(CWq===void 0){var S=document.createElement("template");_.h(S,'\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');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);var p=S.content,U=p.insertBefore;fBQ===void 0&&(fBQ=document.createElement("template"));var Y=fBQ;U.call(p,Y.content.cloneNode(!0),S.content.firstChild);CWq=S}S=CWq;return S},{mode:_.y("live_chat_enable_sink_wrapper")?2:0});var xkc;var Eeq;var mkI;var oec,vet=function(){if(oec!==void 0)return oec;var S=document.createElement("template");_.h(S,'\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');
S.content.insertBefore(_.t().content.cloneNode(!0),S.content.firstChild);var p=S.content,U=p.insertBefore;mkI===void 0&&(mkI=document.createElement("template"));var Y=mkI;U.call(p,Y.content.cloneNode(!0),S.content.firstChild);return oec=S};var bz=function(){return _.w.apply(this,arguments)||this};
_.r(bz,_.w);bz.prototype.onTap=function(S){S.stopPropagation()};
_.$u.Object.defineProperties(bz.prototype,{buttonViewModel:{configurable:!0,enumerable:!0,get:function(){if(this.data){var S=_.b(this.data.replyButton,_.K6),p,U,Y,L,I,V,W,O=Number(((p=this.replyCountState)==null?void 0:p.replyCountNumber)||"0")===0?(U=this.data)==null?void 0:(Y=U.replyCountPlaceholder)==null?void 0:Y.content:((L=this.replyCountState)==null?void 0:(I=L.replyCount)==null?void 0:I.content)||((V=this.data)==null?void 0:(W=V.replyCountPlaceholder)==null?void 0:W.content)||"",D;return Object.assign({},
S,{title:O,accessibilityText:(D=this.replyCountState)==null?void 0:D.replyButtonAccessibilityText})}}}});
_.$u.Object.defineProperties(bz,{template:{configurable:!0,enumerable:!0,get:function(){return vet()}}});
bz.prototype.onTap=bz.prototype.onTap;_.x([_.F(_.eL.YtComponentBehavior),_.E("design:type",Object)],bz.prototype,"ytComponentBehavior",void 0);_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],bz.prototype,"ytRendererBehavior",void 0);_.x([_.F(_.Zq),_.E("design:type",Object)],bz.prototype,"ytLiveChatReduxBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],bz.prototype,"data",void 0);
_.x([_.g({selectorArgs:["data.replyCountEntityKey"],selector:function(S,p){return _.I4(S.entities,"replyCountEntity",p)}}),
_.E("design:type",Object)],bz.prototype,"replyCountState",void 0);_.x([_.e("data","replyCountState"),_.E("design:type",Object),_.E("design:paramtypes",[])],bz.prototype,"buttonViewModel",null);_.x([_.Vd("tap"),_.E("design:type",Function),_.E("design:paramtypes",[Event]),_.E("design:returntype")],bz.prototype,"onTap",null);bz=_.x([_.FB({disableElementRegistration:!0,is:"yt-live-chat-reply-button-view-model",noInjection:!0})],bz);
_.C(bz,"yt-live-chat-reply-button-view-model",function(){return vet()},{mode:_.y("live_chat_enable_sink_wrapper")?2:0});var $kj;var iIc;var jN=function(){var S=_.w.apply(this,arguments)||this;S.ariaLabel="";return S};
_.r(jN,_.w);
jN.prototype.dataChanged=function(){for(var S=(0,_.L3)(_.tB(this.hostElement).querySelector("#image"));S.firstChild;)S.removeChild(S.firstChild);if(this.data)if(this.data.icon){var p=document.createElement("yt-icon");this.data.icon.iconType==="MODERATOR"&&this.enableNewModeratorBadge?(p.polymerController.icon="yt-sys-icons:shield-filled",p.polymerController.defaultToFilled=!0):p.polymerController.icon="live-chat-badges:"+this.data.icon.iconType.toLowerCase();S.appendChild(p)}else if(this.data.customThumbnail){p=document.createElement("img");
var U=_.qne(this.data.customThumbnail.thumbnails,16);U?(p.src=U,S.appendChild(p),p.setAttribute("alt",this.hostElement.ariaLabel||"")):_.eP(new _.y7("Could not compute URL for thumbnail",this.data.customThumbnail))}};
jN.prototype.identity=function(S){return S};
jN.prototype.computeType=function(S){return YX(S||void 0)};
jN.prototype.dataChanged=jN.prototype.dataChanged;_.x([_.g(),_.E("design:type",Object)],jN.prototype,"data",void 0);_.x([_.g({computed:"identity(data.accessibility.accessibilityData.label)",reflectToAttribute:!0}),_.E("design:type",Object)],jN.prototype,"ariaLabel",void 0);_.x([_.g({computed:"computeType(data)",reflectToAttribute:!0}),_.E("design:type",String)],jN.prototype,"type",void 0);
_.x([_.g({computed:"identity(data.tooltip)",reflectToAttribute:!0}),_.E("design:type",String)],jN.prototype,"sharedTooltipText",void 0);_.x([_.g({reflectToAttribute:!0,value:function(){return _.y("live_chat_enable_new_moderator_badge")}}),
_.E("design:type",Boolean)],jN.prototype,"enableNewModeratorBadge",void 0);_.x([_.T4("data"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],jN.prototype,"dataChanged",null);jN=_.x([_.FB({disableElementRegistration:!0,is:"yt-live-chat-author-badge-renderer",noInjection:!0})],jN);
_.C(jN,"yt-live-chat-author-badge-renderer",function(){if(iIc===void 0){var S=document.createElement("template");_.h(S,'\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>');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);var p=S.content,U=p.insertBefore;$kj===void 0&&($kj=document.createElement("template"));var Y=$kj;U.call(p,Y.content.cloneNode(!0),S.content.firstChild);iIc=S}S=iIc;return S},{mode:_.y("live_chat_enable_sink_wrapper")?2:0});var NJq;var BJc;var rW=function(){return _.w.apply(this,arguments)||this};
_.r(rW,_.w);_.M=rW.prototype;_.M.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"}}}}};
_.M.computeBadgesInsideChip=function(S){return S?S.filter(function(p){return YX(p.liveChatAuthorBadgeRenderer)==="verified"}):[]};
_.M.computeBadgesOutsideChip=function(S){return this.prependChatBadges||!S?[]:S.filter(function(p){p=YX(p.liveChatAuthorBadgeRenderer);return p!=="verified"&&p!=="owner"})};
_.M.computeBadgesBeforeChip=function(S){return this.prependChatBadges&&S?S.filter(function(p){p=YX(p.liveChatAuthorBadgeRenderer);return p!=="verified"&&p!=="owner"}):[]};
_.M.computeIsHighlighted=function(S,p){var U=!!W3k(S,"owner"),Y=!!W3k(S,"verified");S=!!W3k(S,"moderator");return(U||Y&&!S)&&!p};
_.M.computeAuthorType=function(S){return T$G(S)};
_.M.computeAuthorClass=function(S,p){return p?(S?S+" ":"")+"single-line":S};
_.M.onSeedColorChanged=function(){_.y("live_chat_author_name_color_usernames")||_.y("live_chat_seed_color_usernames")||_.y("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):_.y("live_chat_simple_color_usernames")&&this.authorNameColor&&(this.username.style.color=
this.authorNameColor)};
rW.prototype.onSeedColorChanged=rW.prototype.onSeedColorChanged;_.x([_.F(_.eL.YtComponentBehavior),_.E("design:type",Object)],rW.prototype,"ytComponentBehavior",void 0);_.x([_.F(_.qH.YtRendererstamperBehavior),_.E("design:type",Object)],rW.prototype,"ytRendererstamperBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],rW.prototype,"authorName",void 0);_.x([_.g(),_.E("design:type",Array)],rW.prototype,"authorBadges",void 0);
_.x([_.g({computed:"computeAuthorType(authorBadges)"}),_.E("design:type",String)],rW.prototype,"authorType",void 0);_.x([_.g({computed:"computeAuthorClass(authorType, singleLine)"}),_.E("design:type",String)],rW.prototype,"authorClass",void 0);_.x([_.g({computed:"computeBadgesInsideChip(authorBadges)"}),_.E("design:type",Array)],rW.prototype,"badgesInsideChip",void 0);_.x([_.g({computed:"computeBadgesOutsideChip(authorBadges)"}),_.E("design:type",Array)],rW.prototype,"badgesOutsideChip",void 0);
_.x([_.g({computed:"computeBadgesBeforeChip(authorBadges)"}),_.E("design:type",Array)],rW.prototype,"badgesBeforeChip",void 0);_.x([_.g({computed:"computeIsHighlighted(authorBadges, disableHighlighting)",reflectToAttribute:!0}),_.E("design:type",Boolean)],rW.prototype,"isHighlighted",void 0);_.x([_.g({value:!1}),_.E("design:type",Boolean)],rW.prototype,"singleLine",void 0);_.x([_.g({value:!1}),_.E("design:type",Boolean)],rW.prototype,"disableHighlighting",void 0);
_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Boolean)],rW.prototype,"dashboardMoneyFeed",void 0);_.x([_.g({value:_.y("live_chat_prepend_badges"),reflectToAttribute:!0}),_.E("design:type",Boolean)],rW.prototype,"prependChatBadges",void 0);_.x([_.g(),_.E("design:type",String)],rW.prototype,"authorNameColor",void 0);_.x([_.O2("#author-name"),_.E("design:type",HTMLDivElement)],rW.prototype,"username",void 0);
_.x([_.T4("authorNameColor"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],rW.prototype,"onSeedColorChanged",null);rW=_.x([_.FB({disableElementRegistration:!0,is:"yt-live-chat-author-chip",noInjection:!0})],rW);
_.C(rW,"yt-live-chat-author-chip",function(){if(BJc===void 0){var S=document.createElement("template");_.h(S,'\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>');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);var p=S.content,U=p.insertBefore;NJq===void 0&&(NJq=document.createElement("template"));var Y=NJq;U.call(p,Y.content.cloneNode(!0),S.content.firstChild);BJc=S}S=BJc;return S},{mode:_.y("live_chat_enable_sink_wrapper")?2:0});var qMe;var ALP;var Gb=function(){var S=_.w.apply(this,arguments)||this;S.debounceCommand=_.OC(function(p){S.ytComponentBehavior.resolveCommand(p)},1500);
return S};
_.r(Gb,_.w);Gb.prototype.onTap=function(){if(this.engagementState&&this.engagementState.key&&this.isEditable){var S=this.isHearted?"TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE":"TOOLBAR_HEART_STATE_HEARTED_EDITABLE",p,U,Y=this.isHearted?(p=this.data)==null?void 0:p.unheartCommand:(U=this.data)==null?void 0:U.heartCommand;this.ytLiveChatReduxBehavior.dispatch(_.r8("engagementToolbarStateEntityPayload",this.engagementState.key,{heartState:S}));(S=_.sW(Y))&&this.debounceCommand(S)}};
_.$u.Object.defineProperties(Gb.prototype,{thumbnailDetails:{configurable:!0,enumerable:!0,get:function(){var S,p;if(!((S=this.data)==null?0:(p=S.creatorThumbnail)==null?0:p.sources))return{};S={thumbnails:[]};p={};p.url=this.data.creatorThumbnail.sources[0].url;S.thumbnails.push(p);return S}},
isHearted:{configurable:!0,enumerable:!0,get:function(){var S,p;return((S=this.engagementState)==null?void 0:S.heartState)==="TOOLBAR_HEART_STATE_HEARTED"||((p=this.engagementState)==null?void 0:p.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"}},
isEditable:{configurable:!0,enumerable:!0,get:function(){var S,p;return((S=this.engagementState)==null?void 0:S.heartState)==="TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE"||((p=this.engagementState)==null?void 0:p.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"}},
showCreatorView:{configurable:!0,enumerable:!0,get:function(){var S;return((S=this.engagementState)==null?void 0:S.heartState)==="TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE"}},
showButton:{configurable:!0,enumerable:!0,get:function(){var S,p,U;return((S=this.engagementState)==null?void 0:S.heartState)==="TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE"||((p=this.engagementState)==null?void 0:p.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"||((U=this.engagementState)==null?void 0:U.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}}});
Gb.prototype.onTap=Gb.prototype.onTap;_.x([_.F(_.eL.YtComponentBehavior),_.E("design:type",Object)],Gb.prototype,"ytComponentBehavior",void 0);_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],Gb.prototype,"ytRendererBehavior",void 0);_.x([_.F(_.Zq),_.E("design:type",Object)],Gb.prototype,"ytLiveChatReduxBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],Gb.prototype,"data",void 0);
_.x([_.g({selectorArgs:["data.engagementStateKey"],selector:sGe}),_.E("design:type",Object)],Gb.prototype,"engagementState",void 0);_.x([_.e("data"),_.E("design:type",Object),_.E("design:paramtypes",[])],Gb.prototype,"thumbnailDetails",null);_.x([_.e("data","engagementState"),_.E("design:type",Boolean),_.E("design:paramtypes",[])],Gb.prototype,"isHearted",null);_.x([_.e("data","engagementState"),_.E("design:type",Boolean),_.E("design:paramtypes",[])],Gb.prototype,"isEditable",null);
_.x([_.e("data","engagementState"),_.E("design:type",Boolean),_.E("design:paramtypes",[])],Gb.prototype,"showCreatorView",null);_.x([_.e("data","engagementState"),_.E("design:type",Boolean),_.E("design:paramtypes",[])],Gb.prototype,"showButton",null);_.x([_.e("data","isHearted"),_.E("design:type",String),_.E("design:paramtypes",[])],Gb.prototype,"label",null);_.x([_.e("data","isHearted"),_.E("design:type",Object),_.E("design:paramtypes",[])],Gb.prototype,"heartHoverText",null);
_.x([_.Vd("tap"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],Gb.prototype,"onTap",null);Gb=_.x([_.FB({disableElementRegistration:!0,is:"yt-live-chat-creator-heart-view-model"})],Gb);
_.C(Gb,"yt-live-chat-creator-heart-view-model",function(){if(ALP===void 0){var S=document.createElement("template");_.h(S,'\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');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);var p=S.content,U=p.insertBefore;qMe===void 0&&(qMe=document.createElement("template"));var Y=qMe;U.call(p,Y.content.cloneNode(!0),S.content.firstChild);ALP=S}S=ALP;return S},{mode:_.y("live_chat_enable_sink_wrapper")?2:0});var ht=function(){};
_.r(ht,SL);ht.prototype.JSC$10995_getRequest=function(){return{input:"/getDatasyncIdsEndpoint",requestShell:C9("/getDatasyncIdsEndpoint","GET"),innerTubeRequest:{}}};
ht.prototype.getApiPaths=function(){return[]};
ht.prototype.getExtension=function(){};
ht.prototype.JSC$10995_buildRequest=function(){};var txH={},cLt=(txH.GET_DATASYNC_IDS=nH(ht),txH);var SnH,p8l,Ugm,phc,Rn,Myt,dfm,Lve,Yne;SnH="tokens consistency mss client_location entities adblock_detection response_received_commands store PLAYER_PRELOAD shorts_prefetch".split(" ");p8l=["type.googleapis.com/youtube.api.pfiinnertube.YoutubeApiInnertube.BrowseResponse","type.googleapis.com/youtube.api.pfiinnertube.YoutubeApiInnertube.PlayerResponse"];
_.uZ=function(S,p,U,Y,L,I,V,W,O){this.endpointMap=S;this.networkManager=p;this.authService=U;this.responseProcessorMap=Y;this.innertubeResponseStore=L;this.contextProcessors=I;this.asyncContextProcessors=V;this.localInnertubeRouter=W;this.requestSequencer=O;this.inflightRequests=new Map;S.signalEndpointMap||(S.signalEndpointMap={});S.signalEndpointMap=Object.assign({},cLt,S.signalEndpointMap)};
Ugm=function(S,p,U,Y,L,I,V,W,O){if(_.uZ.instance!==void 0){if(Y=_.uZ.instance,S=[S!==Y.endpointMap,p!==Y.networkManager,U!==Y.authService,L!==Y.innertubeResponseStore,I!==Y.contextProcessors,V!==Y.asyncContextProcessors,W!==Y.localInnertubeRouter],S.some(function(D){return D}))throw new _.y7("InnerTubeTransportService is already initialized",S);
}else _.uZ.instance=new _.uZ(S,p,U,Y,L,I,V,W,O)};
_.lZ=function(S,p,U){var Y=Y===void 0?Gpj:Y;var L=dfm(S,p);return L?new _.O9(function(I,V){var W,O,D,z,Q;return _.T(function(J){switch(J.nextAddress){case 1:return _.k(J,L,2);case 2:W=J.yieldResult;O=W.JSC$10995_getRequest(p,U,Y);if(!O){V(new _.y7("Error: Failed to build request for command.",p));J.jumpTo(0);break}wz(O.input);z=((D=O.requestShell)==null?void 0:D.mode)==="cors"?"cors":void 0;if(S.authService.syncHeaders){Q=Yne(O.config,z);J.jumpTo(4);break}return _.k(J,Lve(O.config,z),5);case 5:Q=
J.yieldResult;case 4:I(Myt(S,O,Q)),_.OV(J)}})}):_.jV(new _.y7("Error: No request builder found for command.",p))};
phc=function(S,p,U,Y){var L=L===void 0?Gpj:L;var I,V,W,O,D,z,Q,J,K,G,X,Z,l,a,N,m,A,q;return _.T(function(TG){switch(TG.nextAddress){case 1:I=IAE(p,S.endpointMap);if(!I)throw new _.y7("Error: No streaming request builder found for command",p);V=I.JSC$10995_getRequest(p,U,L);if(!V)throw new _.y7("Failed to build YtRequest for streaming Command",p);if((W=S.localInnertubeRouter)==null||!W.shouldPreferLocalResponse(V.input,V.innerTubeRequest)){TG.jumpTo(2);break}return _.k(TG,S.localInnertubeRouter.localInnertubeResponse(V.input,
V.innerTubeRequest),3);case 3:return O=TG.yieldResult,D={},O.playerResponse&&(Rn(S,O.playerResponse,V),D.player=O.playerResponse,(z=Y)==null||z(D,O)),O.watchNextResponse&&(Rn(S,O.watchNextResponse,V),D.content=O.watchNextResponse,(Q=Y)==null||Q(D,O)),TG.return(D);case 2:K=((J=V.requestShell)==null?void 0:J.mode)==="cors"?"cors":void 0;if(S.authService.syncHeaders){G=Yne(V.config,K);TG.jumpTo(4);break}return _.k(TG,Lve(V.config,K),5);case 5:G=TG.yieldResult;case 4:return l=(Z=(X=V.requestShell)==null?
void 0:X.headers)!=null?Z:{},V.requestShell=Object.assign({},V.requestShell,{headers:Object.assign({},l,G)}),a=Object.assign({},V.requestShell),N=JSON.stringify(V.innerTubeRequest),V.requestShell.method==="POST"&&(a=Object.assign({},a,{body:N})),m=function(Je,GG){Rn(S,GG.playerResponse||GG.watchNextResponse||GG.reelItemWatchResponse||GG.reelWatchSequenceResponse,V);Y==null||Y(Je,GG)},A={},_.k(TG,IVl(S.networkManager,V.input,a,m),6);
case 6:return A=TG.yieldResult,((q=V.config)==null?0:q.responseTick)&&_.Fg(V.config.responseTick),TG.return(A)}})};
_.R6=function(S,p,U,Y,L){L=L===void 0?{authStrategy:{identity:Gpj}}:L;var I=I===void 0?!0:I;var V=function(){};
V=V0w(I0w(U));p.context||(p.context=_.ytE(Y,I));return new _.O9(function(W){var O,D,z,Q,J;return _.T(function(K){if(K.nextAddress==1)return O=NMw(U),D=_.f9(O),S.authService.syncHeaders?(z=Yne(L,D),K.jumpTo(2)):_.k(K,Lve(L,D),3);K.nextAddress!=2&&(z=K.yieldResult);Q=BMk(NMw(U));J={input:Q,requestShell:C9(Q),innerTubeRequest:p,config:L};W(Myt(S,J,z,V));_.OV(K)})})};
Rn=function(S,p,U){var Y;if(p&&!(p==null?0:(Y=p.sequenceMetaData)==null?0:Y.skipProcessing)&&S.responseProcessorMap){Y=_.d(SnH);for(var L=Y.next();!L.done;L=Y.next())L=L.value,S.responseProcessorMap[L]&&S.responseProcessorMap[L].handleResponse(p,U)}};
Myt=function(S,p,U,Y){Y=Y===void 0?function(){}:Y;
var L,I,V,W,O,D,z,Q,J,K,G,X,Z,l,a,N,m,A,q,TG,Je,GG,Zw,Ru,sX,mq,au,XI,nE,ut,Hw,Tj,Ut,Ww,kA,XO,Vw,Kc,eQ,x5;return _.T(function(rm){switch(rm.nextAddress){case 1:V=(L=p.config)==null?void 0:(I=L.storeStrategy)==null?void 0:I.storeKey;if(!(V&&S.innertubeResponseStore&&S.innertubeResponseStore.has(V))||((W=p.config)==null?0:(O=W.storeStrategy)==null?0:O.disableCache)){rm.jumpTo(2);break}return _.k(rm,S.innertubeResponseStore.get(V),3);case 3:if((D=rm.yieldResult)&&!D.isExpired())return rm.return(Promise.resolve(_.Y1(D)));
case 2:if(!((z=p)==null?0:(Q=z.innerTubeRequest)==null?0:Q.context)){rm.jumpTo(4);break}J=p.innerTubeRequest.context;if(!(S.asyncContextProcessors&&S.asyncContextProcessors.length>0)){rm.jumpTo(5);break}K=[];G=_.d(S.asyncContextProcessors);for(X=G.next();!X.done;X=G.next())Z=X.value,l=Z.processContext(p),l.wrappedPromise_&&K.push(l.wrappedPromise_);if(!(K.length>0)){rm.jumpTo(5);break}return _.k(rm,Promise.all(K),5);case 5:a=_.d(S.contextProcessors||[]),N=a.next();case 8:if(N.done){rm.jumpTo(4);break}m=
N.value;return _.k(rm,m.processContext(J),9);case 9:N=a.next();rm.jumpTo(8);break;case 4:if((A=S.localInnertubeRouter)==null||!A.shouldPreferLocalResponse(p.input,p.innerTubeRequest)){rm.jumpTo(12);break}return _.k(rm,S.localInnertubeRouter.localInnertubeResponse(p.input,p.innerTubeRequest),13);case 13:return q=rm.yieldResult,Rn(S,q,p),rm.return(q);case 12:return(GG=(Je=p.config)==null?void 0:Je.requestKey)&&S.inflightRequests.has(GG)?TG=S.inflightRequests.get(GG):(Zw=JSON.stringify(p.innerTubeRequest),
mq=(sX=(Ru=p.requestShell)==null?void 0:Ru.headers)!=null?sX:{},p.requestShell=Object.assign({},p.requestShell,{headers:Object.assign({},mq,U)}),au=Object.assign({},p.requestShell),p.requestShell.method==="POST"&&(au=Object.assign({},au,{body:Zw})),((XI=p.config)==null?0:XI.requestTick)&&_.Fg(p.config.requestTick),nE=function(){return S.networkManager.fetch(p.input,au,p.config)},TG=S.requestSequencer?dgl(S.requestSequencer,p,nE):nE(),GG&&S.inflightRequests.set(GG,TG)),_.k(rm,TG,14);
case 14:(ut=rm.yieldResult)&&_.y("web_streaming_player")&&Array.isArray(ut)&&(ut=ut[0].playerResponse);if(ut&&"error"in ut&&((Hw=ut)==null?0:(Tj=Hw.error)==null?0:Tj.details))for(Ut=ut.error.details,Ww=_.d(Ut),kA=Ww.next();!kA.done;kA=Ww.next())XO=kA.value,(Vw=XO["@type"])&&p8l.indexOf(Vw)>-1&&(delete XO["@type"],ut=XO);GG&&S.inflightRequests.has(GG)&&S.inflightRequests.delete(GG);((Kc=p.config)==null?0:Kc.responseTick)&&_.Fg(p.config.responseTick);if(ut||(eQ=S.localInnertubeRouter)==null||!eQ.canProvideFallbackResponse(p.input,
p.innerTubeRequest)){rm.jumpTo(15);break}return _.k(rm,S.localInnertubeRouter.localFallbackInnertubeResponse(p.input,p.innerTubeRequest),16);case 16:ut=rm.yieldResult;case 15:return Rn(S,ut,p),((x5=p.config)==null?0:x5.processorTick)&&_.Fg(p.config.processorTick),Y(),rm.return(ut||void 0)}})};
_.wY=function(S,p){return Msu(p,S.endpointMap)};
dfm=function(S,p){S=djN(p,S.endpointMap);if(S!==void 0)return Promise.resolve(S)};
Lve=function(S,p){var U,Y,L,I;return _.T(function(V){if(V.nextAddress==1){L=(U=S)==null?void 0:(Y=U.authStrategy)==null?void 0:Y.sessionIndex;var W=_.Mw(j2k({sessionIndex:L}));return _.k(V,W,2)}I=V.yieldResult;return V.return(Promise.resolve(Object.assign({},Vsu(p),I)))})};
Yne=function(S,p){var U;S=S==null?void 0:(U=S.authStrategy)==null?void 0:U.sessionIndex;U=j2k({sessionIndex:S});return Object.assign({},Vsu(p),U)};var VyQ,Tqw,Wvm,Obd,kPm,HbE,QIE,nhQ,PV,J5j,y5c,z4l,Kvt;VyQ=0;Tqw=/tone[1-5]/;Wvm=" \ud83c\udffb \ud83c\udffc \ud83c\udffd \ud83c\udffe \ud83c\udfff".split(" ");Obd="UCzC5CNksIBaiT-NdMJjJNOQ/COLRg9qOwdQCFce-qgodrbsLaA UCzC5CNksIBaiT-NdMJjJNOQ/CMKC7uKOwdQCFce-qgodqbsLaA UCzC5CNksIBaiT-NdMJjJNOQ/CJiQ8uiOwdQCFcx9qgodysAOHg UCzC5CNksIBaiT-NdMJjJNOQ/CI3h3uDJitgCFdARTgodejsFWg UCzC5CNksIBaiT-NdMJjJNOQ/CI69oYTKitgCFdaPTgodsHsP5g UCzC5CNksIBaiT-NdMJjJNOQ/CKzQr47KitgCFdCITgodq6EJZg UCzC5CNksIBaiT-NdMJjJNOQ/CPGD8Iu8kN4CFREChAod9OkLmg".split(" ");
kPm=Number.MAX_SAFE_INTEGER;HbE=RegExp("\ufe0f","g");_.Ft=function(S){this.skinTone=0;this.emojiSize=24;this.emojis=[];this.emojiMap={};this.emojiRegex=/$./;this.emojiShortcutMap={};this.pickerCustomEmojiIds=[];this.emojiShortcutCharMap={};this.hasInitializedShortcutCharMap=!1;S&&_.DgP(this,S)};
_.DgP=function(S,p){try{_.WS(p,{context:S,onSuccess:function(Y,L){Array.isArray(L)?S.load(L):(Y=new _.y7("Emoji manager JSON response was not an array!",{response:L}),_.ZP(Y))},
onError:function(Y){Y=new _.y7("Failed to retrieve emoji manager initial JSON data!",{url:p,statusCode:_.LA(Y).toString()});_.eP(Y)}})}catch(Y){var U=new _.y7("Failed to parse unicode emoji JSON data! Error: {e.message}",{url:p});
_.eP(U)}};
_.Ft.prototype.clear=function(){this.emojis=[];this.emojiMap={};this.emojiRegex=/$./;this.emojiShortcutMap={};this.emojiShortcutCharMap={};this.hasInitializedShortcutCharMap=!1};
_.Ft.prototype.load=function(S,p){if(p)if(S.length)S=S.concat(p.emojis);else{this.emojis=p.emojis;this.emojiMap=p.emojiMap;this.emojiShortcutMap=p.emojiShortcutMap;this.emojiShortcutCharMap=z4l(p);this.hasInitializedShortcutCharMap=!0;this.emojiRegex=p.emojiRegex;return}this.emojis=[].concat(_.jo(new Set(this.emojis.concat(S))));this.hasInitializedShortcutCharMap=!1;S=Array(this.emojis.length);for(p=0;p<this.emojis.length;p++){var U=this.emojis[p];if(U.emojiId){this.emojiMap[U.emojiId]=U;this.emojiMap[U.emojiId].index=
p;for(var Y=0;U.shortcuts&&Y<U.shortcuts.length;Y++)this.emojiShortcutMap[U.shortcuts[Y].toLocaleLowerCase()]=U;S[p]=U.isCustomEmoji&&U.shortcuts?U.shortcuts[0]:U.emojiId}}S.sort(function(L,I){return I.length-L.length});
if(S.length)try{this.emojiRegex=new RegExp(S.join("|").replace("*","\\*"),"gi")}catch(L){this.emojiRegex=/$./}else this.emojiRegex=/$./};
QIE=function(S,p){p=_.d(p);for(var U=p.next();!U.done;U=p.next()){var Y=U.value;if(Y.emojiId&&S.emojiMap[Y.emojiId]){U=Object.assign({},S.emojiMap[Y.emojiId],Y);S.emojiMap[Y.emojiId]=U;var L=void 0;U.index&&((L=S.emojis[U.index])==null?void 0:L.emojiId)===Y.emojiId&&(S.emojis[U.index]=U);Y=void 0;if((Y=U.shortcuts)==null?0:Y.length)for(S.hasInitializedShortcutCharMap=!1,Y=_.d(U.shortcuts),L=Y.next();!L.done;L=Y.next())S.emojiShortcutMap[L.value.toLocaleLowerCase()]=U}}};
nhQ=function(S){var p,U;_.T(function(Y){if(Y.nextAddress==1)return _.k(Y,_.na.getInstance(),2);if(Y.nextAddress!=3)return(p=Y.yieldResult)?_.k(Y,p.get("ytlc-emoji-pref"),3):Y.return();(U=Y.yieldResult)&&QIE(S,Object.keys(U).map(function(L){return{emojiId:L,stickyPrefId:U[L]}}).filter(function(L){return!!L.emojiId&&!!L.stickyPrefId}));
_.OV(Y)})};
_.Xt=function(S,p,U){return(S=S.emojiMap[p])&&(!S.isLocked||U!==void 0&&U)?S:void 0};
PV=function(S,p,U){U=_.Xt(S,p,U===void 0?!1:U);var Y=p.match("\u200d");U&&S.skinTone!==0&&(S=(Y==null?void 0:Y.length)===1?_.Xt(S,p.replace("\u200d",Wvm[S.skinTone]+"\u200d")):_.Xt(S,p+Wvm[S.skinTone]))&&(U=S);return U};
J5j=function(S,p){var U=S.emojiMap[p];return(U==null?0:U.stickyPrefId)?S.emojiMap[U.stickyPrefId]:PV(S,p)};
_.k9=function(S,p){S=S.emojiShortcutMap[p.toLocaleLowerCase()];return!S||S.isLocked?null:S};
y5c=function(S,p,U){return z4l(S,U===void 0?!1:U)[p]||{}};
z4l=function(S,p){p=p===void 0?!1:p;if(!S.hasInitializedShortcutCharMap){S.hasInitializedShortcutCharMap=!0;for(var U=0;U<S.emojis.length;U++){var Y=S.emojis[U];if(!(Y.isLocked||p&&Y.isCustomEmoji&&Y.emojiId&&!S.pickerCustomEmojiIds.includes(Y.emojiId)))for(var L=0;Y.shortcuts&&L<Y.shortcuts.length;L++){var I=Y.shortcuts[L];I.startsWith(":_")&&Y.isCustomEmoji&&(S.emojiShortcutCharMap[":_"]==null&&(S.emojiShortcutCharMap[":_"]=Object.create(null)),S.emojiShortcutCharMap[":_"][I]=Y);if(!(I.length<3||
!Y.isCustomEmoji&&Tqw.test(I))){var V=I.substr(0,3).toLocaleLowerCase();S.emojiShortcutCharMap[V]==null&&(S.emojiShortcutCharMap[V]=Object.create(null));S.emojiShortcutCharMap[V][I]=Y}}}}return S.emojiShortcutCharMap};
_.Ft.prototype.createEmoji=function(S,p){p=p===void 0?!0:p;var U=document.createElement("img");S.isCustomEmoji||U.classList.add("small-emoji");U.classList.add("emoji");U.classList.add("yt-formatted-string");U.src=S.image?_.AS(S.image.thumbnails,this.emojiSize)||"":"";var Y=void 0;S.image&&S.image.accessibility&&S.image.accessibility.accessibilityData&&(Y=S.image.accessibility.accessibilityData.label);U.alt=Y?Y:(S.isCustomEmoji&&S.shortcuts?S.shortcuts[0]:S.emojiId)||"";S.isCustomEmoji&&(U.dataset.emojiId=
S.emojiId);_.cO&&(U.setAttribute("contenteditable","false"),U.setAttribute("unselectable","on"));p&&(S.shortcuts&&S.shortcuts.length&&U.setAttribute("shared-tooltip-text",S.shortcuts[0]),U.id="emoji-"+VyQ++);return U};
_.Ft.prototype.createDocumentFragment=function(S,p,U,Y){p=p===void 0?!1:p;U=U===void 0?!0:U;Y=Y===void 0?!1:Y;S=S.replace(HbE,"");for(var L=document.createDocumentFragment(),I=0,V,W=0;(V=this.emojiRegex.exec(S))!=null;){var O=_.Xt(this,V[0])||_.k9(this,V[0]);!O||O.isCustomEmoji&&!p||(O=this.createEmoji(O,U),I!==V.index&&L.appendChild(document.createTextNode(S.substring(I,V.index))),L.appendChild(O),I=V.index+V[0].length,W++)}if(!Y||W)return L.appendChild(document.createTextNode(S.substr(I))),L};
Kvt=function(S,p,U){var Y,L,I,V,W,O,D,z,Q;return _.T(function(J){if(J.nextAddress==1){if(!p.emojiId||!S.emojiMap[p.emojiId])return J.return();Y=Object.assign({},S.emojiMap[p.emojiId],{stickyPrefId:U});S.emojiMap[p.emojiId]=Y;p.index&&((L=S.emojis[p.index])==null?void 0:L.emojiId)===p.emojiId&&(S.emojis[p.index]=Y);if((I=p.shortcuts)==null?0:I.length)for(S.hasInitializedShortcutCharMap=!1,V=_.d(p.shortcuts),W=V.next();!W.done;W=V.next())O=W.value,S.emojiShortcutMap[O.toLocaleLowerCase()]=Y;return _.k(J,
_.na.getInstance(),2)}if(J.nextAddress!=4)return(D=J.yieldResult)?_.k(J,D.get("ytlc-emoji-pref"),4):J.jumpTo(0);Q=(z=J.yieldResult)!=null?z:{};Q[p.emojiId]=U;return _.k(J,D.set("ytlc-emoji-pref",Q,kPm),0)})};
_.Zm=new _.Ft;var r5t;_.sj={};
r5t={properties:{id:{type:String,computed:"identity(data.id)",reflectToAttribute:!0},wholeMessageClickable:{type:Boolean,computed:"computeWholeMessageClickable(data.contextMenuEndpoint)",reflectToAttribute:!0},useOpacityForContextMenuVisibility:{type:Boolean,value:_.y("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:_.y("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 CK(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 S=_.tB(this.hostElement||this).querySelector("#inline-action-button-container");S&&S.setAttribute("aria-hidden","true");this.menuButton=_.tB(this.hostElement).querySelector("#menu-button")},
attached:function(){var S=this.menuButton;S&&(S.addEventListener("focusin",_.d9(this,this.onMenuButtonFocus_)),S.addEventListener("focusout",_.d9(this,this.onMenuButtonBlur_)))},
detached:function(){var S=this.menuButton;S&&(S.removeEventListener("focusin",_.d9(this,this.onMenuButtonFocus_)),S.removeEventListener("focusout",_.d9(this,this.onMenuButtonBlur_)))},
identity:_.Cr,truthy:function(S){return!!S},
computeTimestampString:function(S){return S?S.timestampText?this.getSimpleString(S.timestampText):this.TIME_FORMATTER.format(new Date(S.timestampUsec/1E3)):""},
computeWholeMessageClickable:function(S){return _.y("live_chat_whole_message_clickable")&&S},
computeMenuVisible_:function(S,p){return S||p},
computeHasInlineActionButtons:function(S){if(!S)return!1;var p,U;return!((p=S.inlineActionButtons)==null||!p.length)||!((U=S.additionalInlineActionButtons)==null||!U.length)},
createDocumentFragmentFromString:function(S){var p=_.Zm.createDocumentFragment.bind(_.Zm),U;if((U=this.participantsManager)==null||!U.viewerRegex)return p(S);U=document.createDocumentFragment();for(var Y=0,L;(L=this.participantsManager.viewerRegex.exec(S))!=null;){if(L.index>0){var I=":"+L[0]+":";if((_.Xt(_.Zm,I)||_.k9(_.Zm,I))&&S.indexOf(I)===L.index-1)continue}U.appendChild(p(S.substring(Y,L.index)));Y=document.createElement("span");Y.appendChild(p(L[0]));Y.classList.add("mention");U.appendChild(Y);
Y=L.index+L[0].length}U.appendChild(p(S.substring(Y)));return U},
createDocumentFragment:function(S){var p=document.createDocumentFragment();if(S.simpleText)return p.appendChild(this.createDocumentFragmentFromString(S.simpleText)),p;if(!S.runs)return p;for(var U=0;U<S.runs.length;U++){var Y=S.runs[U];if(Y.emoji)p.appendChild(_.Zm.createEmoji(Y.emoji));else if(Y.text)if(Y.navigationEndpoint){var L=document.createElement("a");L.classList.add("yt-simple-endpoint");EXE(L,Y.navigationEndpoint);_.tB(L).appendChild(this.createDocumentFragmentFromString(Y.text));p.appendChild(L)}else p.appendChild(this.createDocumentFragmentFromString(Y.text))}return p},
hasModerationOverlayVisible:function(){var S;return((S=document.querySelector("yt-live-chat-item-list-renderer"))==null?void 0:S.getAttribute("moderation-mode-enabled"))===""},
onItemTap:function(S){S.composedPath().some(function(p){return(p=p instanceof Element?p:null)?p.tagName&&(p.tagName.toLowerCase()==="yt-live-chat-creator-heart-view-model"||p.tagName.toLowerCase()==="yt-button-view-model"):!1})||this.data.contextMenuEndpoint&&this.wholeMessageClickable&&this.shouldSupportWholeItemClick()&&!this.hasModerationOverlayVisible()&&!_.y("enable_live_chat_web_context_menu_resolver")&&this.showContextMenu(S)},
colorFromDecimal:function(S){return $rd(S)},
markAsDeleted:function(S,p){this.set("data.deletedStateMessage",S);this.set("data.showOriginalContentMessage",p)},
onMenuButtonFocus_:function(){this.menuFocused=!0},
onMenuButtonBlur_:function(){this.menuFocused=!1},
showContextMenu:function(S){if(this.data.contextMenuEndpoint){var p=_.tW().resolve(_.RS),U=this.data.contextMenuEndpoint,Y;(Y=_.uZ.instance)&&_.wY(Y,U)?(p=bbw(p,U),Y=_.R6(Y,{},p)):Y=_.jIH(p,U);Y.then(this.handleGetContextMenuResponse_,this.handleGetContextMenuError,this);S&&S.stopPropagation()}},
handleGetContextMenuResponse_:function(S){var p=_.uZ.instance;p&&_.wY(p,{liveChatEndpoint:{}})||(S=S.response);S.liveChatItemContextMenuSupportedRenderers&&S.liveChatItemContextMenuSupportedRenderers.menuRenderer&&this.showContextMenu_(S.liveChatItemContextMenuSupportedRenderers.menuRenderer);S.actions&&_.St(this.hostElement,"yt-live-chat-actions",[S.actions])},
handleGetContextMenuError:function(S){if(S instanceof Error||S instanceof Object||S instanceof String)var p=S;_.ZP(new _.y7("Error encountered calling GetLiveChatItemContextMenu",p))},
showContextMenu_:function(S){this.openPopup({openPopupAction:{popupType:"DROPDOWN",popup:{menuPopupRenderer:S}}})},
onYtPopupOpened_:function(){this.menuOpen=!0;_.cv(this.hostElement,"yt-live-chat-context-menu-opened")},
onYtPopupClosedOrCanceled_:function(){this.menuOpen=!1;_.cv(this.hostElement,"yt-live-chat-context-menu-closed")}};
_.sj.YtLiveChatItemBehavior=[r5t,_.eL.YtComponentBehavior,_.dW.YtOpenPopupBehavior];_.eN=function(){};var GPe;var h4H;var R4t;var Fvt;var gW=function(){var S=_.w.apply(this,arguments)||this;S.active=!1;S.identity=_.Cr;return S};
_.r(gW,_.w);gW.prototype.dataChanged=function(){this.active=!1};
gW.prototype.onClick=function(){_.cv(this.hostElement,"yt-live-chat-select-suggestion",this.data)};
gW.prototype.dataChanged=gW.prototype.dataChanged;_.x([_.g(),_.E("design:type",Object)],gW.prototype,"data",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],gW.prototype,"active",void 0);_.x([_.T4("data"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],gW.prototype,"dataChanged",null);gW=_.x([_.FB({disableElementRegistration:!0,is:"yt-live-chat-text-input-field-suggestion",noInjection:!0})],gW);
_.C(gW,"yt-live-chat-text-input-field-suggestion",function(){if(Fvt===void 0){var S=document.createElement("template");_.h(S,'\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');
S.content.insertBefore(_.t().content.cloneNode(!0),S.content.firstChild);var p=S.content,U=p.insertBefore;R4t===void 0&&(R4t=document.createElement("template"));var Y=R4t;U.call(p,Y.content.cloneNode(!0),S.content.firstChild);Fvt=S}S=Fvt;return S},{mode:_.y("live_chat_enable_sink_wrapper")?2:0});_.uz=function(S,p,U){return CustomEvent.call(this,S,{detail:{value:p,path:U}})||this};
_.r(_.uz,CustomEvent);_.wW=function(){var S=_.w.apply(this,arguments)||this;S.viewerName=null;S.actionMap={"yt-live-chat-actions":"onChatMessage_"};S.SUPPORTED_ITEM_TYPES_=["liveChatTextMessageRenderer","liveChatLegacyPaidMessageRenderer","liveChatPaidMessageRenderer"];S.PARTICIPANT_TIME_USEC_=3E8;return S};
_.r(_.wW,_.w);_.M=_.wW.prototype;_.M.created=function(){this.allParticipantsCharMap_={};this.asyncHandle_=null};
_.M.addParticipant=function(S){var p=_.brd(this.participants,S,function(Y,L){Y=Y[Object.keys(Y)[0]];L=L[Object.keys(L)[0]];Y=String(_.mA(Y.authorName)).toLowerCase();L=String(_.mA(L.authorName)).toLowerCase();return Y<L?-1:Y==L?0:1}.bind(this));
if(p>=0){var U=this.participants[p];U[Object.keys(U)[0]].timestampUsec&&this.splice("participants",p,1,S)}else this.splice("participants",-p-1,0,S);S=S[Object.keys(S)[0]];p=_.mA(S.authorName).toLocaleLowerCase();U=p.substr(0,2);this.allParticipantsCharMap_.hasOwnProperty(U)||(this.allParticipantsCharMap_[U]={});this.allParticipantsCharMap_[U][p]=S};
_.M.getAuthorsFromPrefix=function(S){return this.allParticipantsCharMap_.hasOwnProperty(S)?this.allParticipantsCharMap_[S]:null};
_.M.computeViewerRegex_=function(S){if(!S)return null;S=S.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&");var p=S.indexOf("@")===0&&_.y("live_chat_enable_handles_web_text_input_update")?"([#]":"([@#]";return new RegExp(p+S.replace(/ /g,"\\s*")+"|^"+S.replace(/ /g,"\\s*")+"$|^"+S.replace(/ /g,"\\s*")+"(?=\\s)|(?<=\\s)"+S.replace(/ /g,"\\s*")+"$|(?<=\\s)"+S.replace(/ /g,"\\s*")+"(?=\\s))","ig")};
_.M.checkForStaleParticipants_=function(){var S=this;this.trimOldParticipants_();this.asyncHandle_&&yue(this.asyncHandle_);this.participants.length>0&&(this.asyncHandle_=_.uK(function(){S.checkForStaleParticipants_()},3E4))};
_.M.onChatMessage_=function(S){var p=this,U=Date.now()*1E3;S.forEach(function(Y){if(Y=_.b(Y,xAq)){Y=Y.item;var L=Object.keys(Y)[0];p.SUPPORTED_ITEM_TYPES_.indexOf(L)!=-1&&Y[L].timestampUsec>=U-p.PARTICIPANT_TIME_USEC_&&p.addParticipant(Y)}},this);
this.checkForStaleParticipants_()};
_.M.trimOldParticipants_=function(){for(var S=Date.now()*1E3,p=this.participants.length-1;p>=0;p--){var U=this.participants[p];U=U[Object.keys(U)[0]];U.timestampUsec&&U.timestampUsec<S-this.PARTICIPANT_TIME_USEC_&&this.splice("participants",p,1)}};
_.x([_.F(_.Aj.YtActionHandlerBehavior),_.E("design:type",Object)],_.wW.prototype,"ytActionHandlerBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],_.wW.prototype,"viewerName",void 0);_.x([_.g({computed:"computeViewerRegex_(viewerName)"}),_.E("design:type",Object)],_.wW.prototype,"viewerRegex",void 0);_.x([_.g({value:function(){return[]},
notify:!0}),_.E("design:type",Array)],_.wW.prototype,"participants",void 0);_.wW=_.x([_.FB({is:"yt-live-chat-participants-manager",noInjection:!0})],_.wW);var X8m=/.*([:@#].*?)$/,lz=/\u00a0/g,PFI=String.fromCharCode(160),ZbI={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"},an=function(){var S=_.w.apply(this,arguments)||this;S.disabled=!1;S.liveChatRichMessageInput=null;S.messageInput=null;S.isValidWithNoInputText=!1;S.suggestions=[];S.emojiManager=_.Zm;S.inputMethodEditorActive=
!1;S.suggestionIndex=-1;S.JSC$11995_lastSuggestionRange=null;return S};
_.r(an,_.w);_.M=an.prototype;_.M.configureRendererStamper=function(){return{suggestions:{id:"dropdown-content",mapping:{suggestion:"yt-live-chat-text-input-field-suggestion"},reuseComponents:!0}}};
_.M.attached=function(){_.SR&&(document.execCommand("enableObjectResizing",!1,"false"),document.execCommand("enableInlineTableEditing",!1,"false"));this.hostElement.addEventListener("compositionstart",this.onCompositionStart);this.hostElement.addEventListener("compositionend",this.onCompositionEnd)};
_.M.detached=function(){this.setLiveChatRichMessageInput(null);this.hostElement.removeEventListener("compositionstart",this.onCompositionStart);this.hostElement.removeEventListener("compositionend",this.onCompositionEnd)};
_.M.dataChanged=function(){if(!this.ignoreColorMapping){var S=!1,p={},U;for(U in ZbI)this.data&&this.data.hasOwnProperty(U)&&(p[ZbI[U]]=this.colorFromDecimal(this.data[U]),S=!0);S&&_.Ms(this.hostElement,p)}this.messageInput&&this.setLiveChatRichMessageInput(this.messageInput)};
_.M.onMessageSet=function(){this.setLiveChatRichMessageInput(this.messageInput||{})};
_.M.colorFromDecimal=function(S){S=Math.floor(Number(S));return"rgba("+[S>>16&255,S>>8&255,S&255,(S>>24&255)/255].join()+")"};
_.M.preventDrag=function(S){S.dataTransfer&&(S.dataTransfer.dropEffect="none");S.preventDefault()};
_.M.preventResize=function(S){S.returnValue=!1};
_.M.onInputChange=function(){var S=this.characterCount,p=document.querySelector("#overflow-text");this.characterCount<=this.maxCharacterLimit&&p&&p.remove();if(!p&&this.characterCount>this.maxCharacterLimit){var U=window.getSelection();if(U){var Y=U.getRangeAt(0);U.removeAllRanges();U.addRange(Y)}}if(U=this.getCurrentRange())Y=this.calculateTextBeforeRange(U),this.completeEmojisInRange(U,Y,!0)||this.updateSuggestions(U,Y);Y=this.calculateLiveChatRichMessageInput();this._setLiveChatRichMessageInput(Y);
_.cv(this.hostElement,"yt-live-chat-message-input-change",Y);p&&this.characterCount===0&&p.remove();U&&U.commonAncestorContainer.parentElement.id==="input"&&U.commonAncestorContainer.nodeName!=="SPAN"?this.handleOverflowText(this.characterCount>S):U&&!U.collapsed&&U.commonAncestorContainer===this.input&&this.checkForDuplicateSpans();if(this.characterCount===0)for(S=this.input.childNodes.length-1;S>=0;S--)this.input.childNodes[S].nodeName==="BR"&&this.input.childNodes[S].remove()};
_.M.onCompositionStart=function(){this.inputMethodEditorActive=!0};
_.M.onCompositionEnd=function(){this.inputMethodEditorActive=!1;var S=this.getCurrentRange();S&&S.commonAncestorContainer.parentElement.id==="input"&&S.commonAncestorContainer.nodeName!=="SPAN"&&this.handleOverflowText(!0)};
_.M.mergeOverflowText=function(S){if(S){var p=document.createRange();p.selectNodeContents(S);p=p.extractContents();this.input.insertBefore(p,S)}};
_.M.checkRangeAtEndOfInput=function(){var S=this.getCurrentRange();if(S){var p=_.tB(this.hostElement).querySelector("#overflow-text"),U=document.createRange();p&&p.previousSibling?p.previousSibling instanceof HTMLImageElement?U.selectNode(p.previousSibling):U.selectNodeContents(p.previousSibling):this.input&&this.input.lastChild&&(this.input.lastChild instanceof HTMLImageElement?U.selectNode(this.input.lastChild):U.selectNodeContents(this.input.lastChild));U.collapse(!1);return U.isPointInRange(S.startContainer,
S.startOffset)}return!1};
_.M.handleOverflowText=function(S){if(!this.dropdown.opened&&!this.inputMethodEditorActive&&this.isChatMessageInput){var p=_.tB(this.hostElement).querySelector("#overflow-text"),U=this.getCurrentRange();this.input.normalize();S=this.checkRangeAtEndOfInput()&&S;this.mergeOverflowText(p);for(var Y,L=0,I=0,V,W=this.input.childNodes,O=0;O<W.length;O++){var D=W[O];D instanceof Text?(I+=D.textContent.length,I>this.maxCharacterLimit&&(Y=D,L=this.maxCharacterLimit+D.textContent.length-I)):D instanceof HTMLImageElement&&
(Y=void 0,I=D.dataset.emojiId&&((Y=this.data)==null?0:Y.emojiCharacterCount)?I+this.data.emojiCharacterCount:I+D.alt.length,Y=this.input,L=O);if(I>this.maxCharacterLimit&&Y){V=document.createRange();V.collapse(!1);p?(I=this.input.lastChild.previousSibling,I instanceof Text?V.setEnd(this.input.lastChild.previousSibling,I.textContent.length):I instanceof HTMLImageElement&&V.setEnd(this.input,this.input.childNodes.length-1)):V.selectNodeContents(this.input);V.setStart(Y,L);break}}V&&(Y=!1,U&&(S=V.isPointInRange(U.startContainer,
U.startOffset-1)),p||(p=document.createElement("span"),p.id="overflow-text",p.textContent="",p.setAttribute("contenteditable","true"),_.tB(_.tB(this.hostElement).querySelector("#input")).appendChild(p),Y=!0),p&&(U=V.extractContents(),p.insertBefore(U,p.firstChild),S&&p.firstChild&&(U=document.createRange(),Y?U.setStartAfter(p.lastChild):U.setStartAfter(p.firstChild),U.collapse(!0),p=window.getSelection(),p.removeAllRanges(),p.addRange(U))))}};
_.M.checkForDuplicateSpans=function(){for(var S=0;S<this.input.childNodes.length;S++){var p=this.input.childNodes[S];if(p.nodeName==="SPAN"){var U=document.createRange();U.selectNodeContents(p);U=U.extractContents();this.input.insertBefore(U,p);p.remove()}}this.handleOverflowText(!0)};
_.M.getCurrentRange=function(){var S=window.getSelection();return S&&S.rangeCount?S.getRangeAt(0).cloneRange():null};
_.M.getInputRange=function(){var S=this.getCurrentRange();if(S){for(var p=S.commonAncestorContainer,U=!1,Y=_.tB(this.hostElement).querySelector("#input");p;){if(p===Y){U=!0;break}p=p.parentNode}U||(S=null)}S||(S=this.getRangeAtEnd());return S};
_.M.getRangeAtEnd=function(){var S=document.createRange(),p=_.tB(this.hostElement).querySelector("#input").lastChild;!p||p.nodeName!=="#text"&&p.nodeName!=="SPAN"?(S.selectNodeContents(_.tB(this.hostElement).querySelector("#input")),S.collapse(!1)):p.nodeName==="#text"?S.setStart(p,p.textContent.length):S.setStart(p,p.childNodes.length);return S};
_.M.getChatParticipantSuggestions=function(S,p,U,Y){var L=_.y("live_chat_enable_handles_web_text_input_update");if(p)for(var I in p)if(I.indexOf(S)===0||L&&I.indexOf(U+S)===0){var V=p[I],W=_.mA(V.authorName);Y.push({suggestion:{author:!0,authorType:U,image:V.authorPhoto,alt:W,text:W}});if(Y.length>=64)break}};
_.M.getSuggestions=function(S){var p=[],U=S.substring(0,3),Y=y5c(_.Zm,U,!0);if(Y)for(var L in Y)if(L.toLocaleLowerCase().indexOf(S)===0){var I=Y[L];if(I&&I.emojiId){if(I=J5j(_.Zm,I.emojiId)){var V=void 0,W=void 0,O=void 0,D=void 0,z=((V=I.image)==null?0:(W=V.accessibility)==null?0:(O=W.accessibilityData)==null?0:O.label)||I.isCustomEmoji?(D=I.shortcuts)==null?void 0:D[0]:I.emojiId;p.push({suggestion:{emoji:!0,image:I.image,alt:z,text:L,textToInsertWhenSelected:I.isCustomEmoji?L:z}})}if(p.length>=
64)break}}if(!this.participantsManager)return null;if(U.indexOf("@")===0||U.indexOf("#")===0)Y=U.charAt(0),S=S.substring(1),L=_.y("live_chat_enable_handles_web_text_input_update"),U.indexOf("@")===0&&L&&(L=this.participantsManager.getAuthorsFromPrefix(U.substring(0,2)),this.getChatParticipantSuggestions(S,L,Y,p)),U=U.substring(1),U=this.participantsManager.getAuthorsFromPrefix(U),this.getChatParticipantSuggestions(S,U,Y,p);return p?p.sort(function(Q,J){return J.suggestion.text<Q.suggestion.text?-1:
J.suggestion.text===Q.suggestion.text?0:1}):null};
_.M.insertSuggestion=function(S){var p=_.y("live_chat_enable_handles_web_text_input_update"),U=S.authorType;p=S.text.indexOf(U)===0&&p?S.text+PFI:U+S.text+PFI;S.emoji?this.insertTextAtRange(this.JSC$11995_lastSuggestionRange,S.textToInsertWhenSelected||""):S.author&&this.insertTextAtRange(this.JSC$11995_lastSuggestionRange,p)};
_.M.updateSuggestionsAtCaret=function(){var S=this.getCurrentRange();S&&this.updateSuggestions(S,this.calculateTextBeforeRange(S))};
_.M.offsetStartOfRangeBy=function(S,p){for(;p>0;)if(S.startOffset-p>=0){S.setStart(S.startContainer,S.startOffset-p);break}else{p=S.startContainer instanceof HTMLImageElement?p-S.startContainer.alt.length:p-S.startOffset;var U=S.startContainer.previousSibling;if(!U){S.setStart(S.startContainer,0);break}if(_.y("live_chat_require_space_for_autocomplete_emoji")){var Y=void 0,L=void 0;S.setStart(U,((Y=U)==null?void 0:(L=Y.textContent)==null?void 0:L.length)||0)}else S.setStart(U,U.childNodes.length||
0)}};
_.M.updateSuggestions=function(S,p){var U=this;this.JSC$11995_lastSuggestionRange&&(this.JSC$11995_lastSuggestionRange.detach(),this.JSC$11995_lastSuggestionRange=null);if((p=X8m.exec(p))&&p.length&&(p=p[p.length-1].toLocaleLowerCase(),p.length>2&&(this.offsetStartOfRangeBy(S,p.length),this.JSC$11995_lastSuggestionRange=S,(S=this.getSuggestions(p))&&S.length))){this.suggestions=S;_.oH(this,function(){_.tB(U.hostElement).querySelector("#dropdown-content").scrollTop=16777216});
this.dropdown.opened?this.dropdown.notifyResize():this.dropdown.opened=!0;this.suggestionIndex=-1;this.changeSuggestionIndex(S.length-1);return}this.dropdown.opened=!1};
_.M.completeEmojisInRange=function(S,p,U){var Y=p.replace(/[\s\xa0]+$/,"");p=p.length-Y.length;Y=Y.split(" ");Y=Y[Y.length-1].trim().toLocaleLowerCase();var L=Y.lastIndexOf(":");if(U&&!p&&L!==Y.length-1)return!1;L!==-1&&(U=Y.lastIndexOf(":",L-1),U!==-1&&(Y=Y.substring(U)));if((U=_.k9(_.Zm,Y))&&U.emojiId){U=J5j(_.Zm,U.emojiId)||null;this.offsetStartOfRangeBy(S,Y.length+p);var I,V,W,O;Y=(((I=U)==null?0:I.isCustomEmoji)?(V=U)==null?void 0:(W=V.shortcuts)==null?void 0:W[0]:(O=U)==null?void 0:O.emojiId)||
"";p&&(Y+=PFI);this.insertTextAtRange(S,Y);this.dropdown.opened=!1;return!0}return!1};
_.M.onSuggestion=function(S){this.insertSuggestion(S.detail);this.dropdown.opened=!1};
_.M.onKeyPress=function(S){S.keyCode===13&&(S.preventDefault(),this.dropdown.opened?(this.insertSuggestion(this.suggestions[this.suggestionIndex].suggestion),this.dropdown.opened=!1):_.cv(this.hostElement,"yt-live-chat-send-message"))};
_.M.completeEmojis=function(){var S=document.createRange(),p=_.tB(this.hostElement).querySelector("#input").lastChild;p?S.setStart(p,p.childNodes.length):(S.selectNodeContents(_.tB(this.hostElement).querySelector("#input")),S.collapse(!1));this.completeEmojisInRange(S,this.calculateTextBeforeRange(S),_.y("live_chat_require_space_for_autocomplete_emoji"))};
_.M.maybePreventTextFormatting=function(S){!_.LT||!S.ctrlKey&&!S.metaKey||S.keyCode!==66&&S.keyCode!==73||(S.stopImmediatePropagation(),S.preventDefault())};
_.M.onKeyDown=function(S){this.maybePreventTextFormatting(S);if(this.dropdown.opened)switch(S.keyCode){case 27:this.dropdown.opened=!1;S.stopPropagation();break;case 9:this.insertSuggestion(this.suggestions[this.suggestionIndex].suggestion);this.dropdown.opened=!1;S.preventDefault();break;case 38:this.changeSuggestionIndex(this.suggestionIndex-1);S.preventDefault();break;case 40:this.changeSuggestionIndex(this.suggestionIndex+1),S.preventDefault()}};
_.M.onKeyUp=function(S){switch(S.keyCode){case 37:case 39:this.updateSuggestionsAtCaret();break;case 38:case 40:this.dropdown.opened||this.updateSuggestionsAtCaret()}if(_.cO)this.onInputChange()};
_.M.changeSuggestionIndex=function(S){if(this.dropdown.opened){var p=_.tB(this.hostElement).querySelector("#dropdown-content");this.suggestionIndex>=0&&this.suggestionIndex<p.children.length&&(p.children[this.suggestionIndex].active=!1);var U=this.suggestions.length;this.suggestionIndex=(S+U)%U;S=p.children[this.suggestionIndex];S.active=!0;p.scrollTop=S.offsetTop}};
_.M.onInputPaste=function(S){S.preventDefault();(S=S.clipboardData)&&S.types&&(S=S.getData("text/plain")||"",S=S.replace(/\n/g,""),this.insertText(S));(S=this.getCurrentRange())&&S.commonAncestorContainer.parentElement.id==="input"&&S.commonAncestorContainer.nodeName!=="SPAN"&&this.handleOverflowText(!0)};
_.M.onFocus=function(){this._setFocused(!0)};
_.M.onBlur=function(){this._setFocused(!1)};
_.M.insertText=function(S){this.insertTextAtRange(this.getInputRange(),S)};
_.M.insertTextAtRange=function(S,p){if(S&&(S.collapsed||S.deleteContents(),p=_.Zm.createDocumentFragment(p,!0,!1))){for(var U=_.d((p==null?void 0:p.childNodes)||[]),Y=U.next();!Y.done;Y=U.next()){Y=Y.value;var L=void 0,I=void 0,V=void 0,W=void 0,O=void 0;(V=(L=window)==null?void 0:(I=L.ShadyCSS)==null?void 0:I.ScopingShim)==null||(O=(W=V).scopeNode)==null||O.call(W,Y,this.hostElement.localName)}U=p.lastChild;S.insertNode(p);this.focused||this.input.focus();if(this.focused){S=S.cloneRange();S.selectNodeContents(U);
S.collapse(!1);if(p=window.getSelection())p.removeAllRanges(),p.addRange(S);S.commonAncestorContainer.parentElement.id==="input"&&S.commonAncestorContainer.nodeName!=="SPAN"&&(this.dropdown.opened&&(this.dropdown.opened=!1),this.handleOverflowText(!0))}S=this.calculateLiveChatRichMessageInput();this._setLiveChatRichMessageInput(S);_.cv(this.hostElement,"yt-live-chat-message-input-change",S)}};
_.M.setLiveChatRichMessageInput=function(S){_.tB(_.tB(this.hostElement).querySelector("#input")).textContent="";if(S&&S.textSegments){for(var p=0;p<S.textSegments.length;p++){var U=S.textSegments[p];U.text?_.tB(_.tB(this.hostElement).querySelector("#input")).appendChild(_.Zm.createDocumentFragment(U.text,!0,!1)):U.emojiId&&(U=_.Xt(_.Zm,U.emojiId))&&_.tB(_.tB(this.hostElement).querySelector("#input")).appendChild(_.Zm.createEmoji(U,!1))}this._setLiveChatRichMessageInput(this.calculateLiveChatRichMessageInput())}else this._setLiveChatRichMessageInput(null)};
_.M.setText=function(S){this.setLiveChatRichMessageInput(S?{textSegments:[{text:S}]}:null)};
_.M.calculateTextBeforeRange=function(S){var p="",U=S.startContainer;if(U&&U instanceof Text){var Y;p=((Y=U.textContent)==null?void 0:Y.substring(0,S.startOffset))||"";U=U.previousSibling}for(;U&&U instanceof Text;)p=U.textContent+p,U=U.previousSibling;return p.replace(lz," ")};
_.M.calculateLiveChatRichMessageInput=function(){for(var S=[],p="",U=_.tB(_.tB(this.hostElement).querySelector("#input")).childNodes,Y=0;Y<U.length;Y++){var L=U[Y];L instanceof Text?p+=L.textContent:L instanceof HTMLImageElement&&(L.dataset.emojiId?(p&&(S.push({text:p.replace(lz," ")}),p=""),S.push({emojiId:L.dataset.emojiId})):p+=L.alt)}p&&S.push({text:p.replace(lz," ")});if(U=_.tB(this.hostElement).querySelector("#overflow-text")){p="";U=U.childNodes;for(Y=0;Y<U.length;Y++)L=U[Y],L instanceof Text?
p+=L.textContent:L instanceof HTMLImageElement&&(L.dataset.emojiId?(p&&(S.push({text:p.replace(lz," ")}),p=""),S.push({emojiId:L.dataset.emojiId})):p+=L.alt);p&&S.push({text:p.replace(lz," ")})}return{textSegments:S}};
_.M.computeCharacterCount=function(S){if(!S||!S.textSegments)return 0;for(var p=0,U=0;U<S.textSegments.length;U++){var Y=S.textSegments[U];if(Y.text)p+=Y.text.length;else if(Y.emojiId){var L=void 0;if((L=this.data)==null?0:L.emojiCharacterCount)p+=this.data.emojiCharacterCount;else{var I=L=void 0,V=void 0;p+=((I=_.Xt(_.Zm,(L=Y)==null?void 0:L.emojiId))==null?void 0:(V=I.shortcuts)==null?void 0:V[0].length)||0}}}return p};
_.M.characterCountChanged=function(){_.cv(this.hostElement,"yt-live-chat-text-input-field-renderer-character-count-changed",{characterCount:this.characterCount});this.checkScrollAlignment()};
_.M.focusedChanged=function(){this.hostElement.dispatchEvent(new _.uz("focused-changed",this.focused))};
_.M.focus=function(){this.setFocus(!1)};
_.M.focusAtEnd=function(){this.setFocus(!0)};
_.M.setFocus=function(S){S=S?this.getRangeAtEnd():this.getInputRange();_.tB(this.hostElement).querySelector("#input").focus();var p=window.getSelection();p&&(p.removeAllRanges(),p.addRange(S))};
_.M.insertEmoji=function(S){var p,U=((S==null?0:S.isCustomEmoji)?(p=S.shortcuts)==null?void 0:p[0]:S==null?void 0:S.emojiId)||"";this.insertText(U)};
_.M.computeText=function(S){if(!S||!S.textSegments)return"";for(var p="",U=0;U<S.textSegments.length;U++){var Y=S.textSegments[U];if(Y.text)p+=Y.text;else if(Y.emojiId){var L=void 0,I=void 0,V=void 0;p+=((I=_.Xt(_.Zm,(L=Y)==null?void 0:L.emojiId))==null?void 0:(V=I.shortcuts)==null?void 0:V[0])||""}}return p};
_.M.checkScrollAlignment=function(){this.input.scrollHeight>48&&this.input.scrollTop!==this.input.scrollHeight&&(this.input.scrollTop=this.input.scrollHeight)};
_.$u.Object.defineProperties(an.prototype,{inputTabIndex:{configurable:!0,enumerable:!0,get:function(){return this.disabled?-1:0}},
maxCharacterLimit:{configurable:!0,enumerable:!0,get:function(){var S;return((S=this.data)==null?void 0:S.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}}});
an.prototype.focusedChanged=an.prototype.focusedChanged;an.prototype.characterCountChanged=an.prototype.characterCountChanged;an.prototype.onSuggestion=an.prototype.onSuggestion;an.prototype.onMessageSet=an.prototype.onMessageSet;an.prototype.dataChanged=an.prototype.dataChanged;_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],an.prototype,"ytRendererBehavior",void 0);_.x([_.F(_.qH.YtRendererstamperBehavior),_.E("design:type",Object)],an.prototype,"ytRendererstamperBehavior",void 0);
_.x([_.g(),_.E("design:type",Object)],an.prototype,"data",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],an.prototype,"disabled",void 0);_.x([_.e("disabled"),_.E("design:type",Number),_.E("design:paramtypes",[])],an.prototype,"inputTabIndex",null);_.x([_.e("data.maxCharacterLimit"),_.g({readOnly:!0,notify:!0}),_.E("design:type",Number),_.E("design:paramtypes",[])],an.prototype,"maxCharacterLimit",null);
_.x([_.e("liveChatRichMessageInput"),_.g({readOnly:!0,notify:!0}),_.E("design:type",Number),_.E("design:paramtypes",[])],an.prototype,"characterCount",null);_.x([_.e("maxCharacterLimit, characterCount"),_.g({readOnly:!0,notify:!0}),_.E("design:type",Number),_.E("design:paramtypes",[])],an.prototype,"remainingCharacterCount",null);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Boolean)],an.prototype,"isChatMessageInput",void 0);
_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Boolean)],an.prototype,"inputExpanded",void 0);_.x([_.g({readOnly:!0,notify:!0}),_.E("design:type",Object)],an.prototype,"liveChatRichMessageInput",void 0);_.x([_.g(),_.E("design:type",Object)],an.prototype,"messageInput",void 0);_.x([_.g(),_.E("design:type",Boolean)],an.prototype,"ignoreColorMapping",void 0);_.x([_.e("characterCount"),_.g({reflectToAttribute:!0}),_.E("design:type",Boolean),_.E("design:paramtypes",[])],an.prototype,"hasText",null);
_.x([_.g(),_.E("design:type",Object)],an.prototype,"isValidWithNoInputText",void 0);_.x([_.e("characterCount","maxCharacterLimit","isValidWithNoInputText"),_.g(),_.E("design:type",Boolean),_.E("design:paramtypes",[])],an.prototype,"isInputValid",null);_.x([_.g({readOnly:!0,value:!1,reflectToAttribute:!0}),_.E("design:type",Boolean)],an.prototype,"focused",void 0);_.x([_.g(),_.E("design:type",Array)],an.prototype,"suggestions",void 0);
_.x([_.g(),_.E("design:type",_.Ft)],an.prototype,"emojiManager",void 0);_.x([_.g(),_.E("design:type",_.wW)],an.prototype,"participantsManager",void 0);_.x([_.g(),_.E("design:type",Boolean)],an.prototype,"noUnderline",void 0);_.x([_.g(),_.E("design:type",Object)],an.prototype,"inputMethodEditorActive",void 0);_.x([_.O2("#dropdown"),_.E("design:type",Object)],an.prototype,"dropdown",void 0);_.x([_.O2("#input"),_.E("design:type",HTMLElement)],an.prototype,"input",void 0);
_.x([_.T4("data"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],an.prototype,"dataChanged",null);_.x([_.T4("messageInput"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],an.prototype,"onMessageSet",null);_.x([_.Vd("yt-live-chat-select-suggestion"),_.E("design:type",Function),_.E("design:paramtypes",[CustomEvent]),_.E("design:returntype")],an.prototype,"onSuggestion",null);
_.x([_.T4("characterCount"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],an.prototype,"characterCountChanged",null);_.x([_.T4("focused"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],an.prototype,"focusedChanged",null);an=_.x([_.FB({disableElementRegistration:!0,is:"yt-live-chat-text-input-field-renderer",noInjection:!0})],an);
_.sIe=_.C(an,"yt-live-chat-text-input-field-renderer",function(){if(h4H===void 0){var S=document.createElement("template");_.h(S,'\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');
S.content.insertBefore(_.t().content.cloneNode(!0),S.content.firstChild);var p=S.content,U=p.insertBefore;GPe===void 0&&(GPe=document.createElement("template"));var Y=GPe;U.call(p,Y.content.cloneNode(!0),S.content.firstChild);h4H=S}S=h4H;return S},{mode:_.y("live_chat_enable_sink_wrapper")?2:0});var fY=function(){var S=_.w.apply(this,arguments)||this;S.buttonOverrides={style:"overlay",type:"filled"};S.allowAnimations=!1;S.modern=_.y("web_button_rework_with_live");S.noPadding=!1;return S};
_.r(fY,_.w);_.M=fY.prototype;_.M.shouldSupportInlineActionButtons=function(){return!0};
_.M.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"}}}}};
_.M.ready=function(){var S=document.querySelector("yt-live-chat-app");S&&S.hasAttribute("dashboard-money-feed")&&(this.dashboardMoneyFeed=!0)};
_.M.attached=function(){this.allowAnimations=!1};
_.M.dataChanged=function(){if(this.data){var S={"--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)};_.Ms(this.hostElement,S);this.allowAnimations=!0}};
_.M.messageChanged=function(){var S,p=(S=this.data)==null?void 0:S.message;S=_.tB(_.tB(this.hostElement).querySelector("#message"));S.textContent="";p&&S.appendChild(this.ytLiveChatItemBehavior.createDocumentFragment(p))};
_.M.computeShowOnlyHeader=function(S,p){return!S||S.pdgLikeButton||S.replyButton||S.buyFlowButton?!1:this.isEmpty(S,p)&&!S.footer};
_.M.computeShowFooterDivider=function(S,p,U){return S?!!S.footer&&!this.isEmpty(S,p)&&!U:!1};
_.M.computeIsUserEditable=function(S){return!!S.inputField};
_.M.computeHasHeartButton=function(S){return(S==null?void 0:S.heartState)==="TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE"||(S==null?void 0:S.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"||(S==null?void 0:S.heartState)==="TOOLBAR_HEART_STATE_HEARTED"};
_.M.computeNoveltyImage=function(S){if(S.headerOverlayImage&&S.headerOverlayImage.thumbnails.length){var p=S.headerOverlayImage.thumbnails[0],U,Y;if((U=S.pdgPurchasedNoveltyLoggingDirectives)==null?0:(Y=U.loggingDirectives)==null?0:Y.trackingParams){var L,I;gTu((L=S.pdgPurchasedNoveltyLoggingDirectives)==null?void 0:(I=L.loggingDirectives)==null?void 0:I.trackingParams)}return p.width||0}return 0};
_.M.computeAuthorPhotoSize=function(S){return(S==null?0:S.isV2Style)&&!this.dashboardMoneyFeed?32:40};
_.M.inputFocus=function(){var S=_.tB(this.hostElement).querySelector("yt-live-chat-text-input-field-renderer");S&&S.focus()};
_.M.inputInsertEmoji=function(S){var p=_.tB(this.hostElement).querySelector("yt-live-chat-text-input-field-renderer");p&&p.insertEmoji(S)};
_.M.inputMessage=function(){var S=_.tB(this.hostElement).querySelector("yt-live-chat-text-input-field-renderer"),p;return S&&((p=this.data)==null?0:p.inputField)?(S.completeEmojis(),_.so(S.liveChatRichMessageInput)):null};
_.M.isDeletedChanged=function(){this.ytLiveChatItemBehavior.isDeleted&&this.set("data.message",null)};
_.M.isEmpty=function(S,p){return S?S.empty||!(S.message||S.inputField||p):!0};
_.M.onLowerBuyButtonClick=function(){var S,p=_.b((S=this.data)==null?void 0:S.buyButton,_.XT);p&&p.trackingParams&&!N$X(p.command)&&(S=_.JS(p.trackingParams))&&(p=_.X$())&&_.xd(p,S)};
_.M.shouldSupportWholeItemClick=function(){return!0};
_.$u.Object.defineProperties(fY.prototype,{hideLowerBumper:{configurable:!0,enumerable:!0,get:function(){var S;return((S=this.data)==null?0:S.buyButton)||this.dashboardMoneyFeed?!0:!1}}});
fY.prototype.isDeletedChanged=fY.prototype.isDeletedChanged;fY.prototype.messageChanged=fY.prototype.messageChanged;fY.prototype.dataChanged=fY.prototype.dataChanged;_.x([_.F(Omm.YtPdgLiveChatItemBehavior),_.E("design:type",Object)],fY.prototype,"ytPdgLiveChatItemBehavior",void 0);_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],fY.prototype,"ytRendererBehavior",void 0);_.x([_.F(_.Zq),_.E("design:type",Object)],fY.prototype,"ytLiveChatReduxBehavior",void 0);
_.x([_.F(_.sj.YtLiveChatItemBehavior),_.E("design:type",_.eN)],fY.prototype,"ytLiveChatItemBehavior",void 0);_.x([_.F(_.qH.YtRendererstamperBehavior),_.E("design:type",Object)],fY.prototype,"ytRendererstamperBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],fY.prototype,"data",void 0);_.x([_.g({selectorArgs:["data.creatorHeartButton.creatorHeartViewModel.engagementStateKey"],selector:sGe}),_.E("design:type",Object)],fY.prototype,"engagementState",void 0);
_.x([_.g({reflectToAttribute:!0,computed:"computeIsUserEditable(data)"}),_.E("design:type",Boolean)],fY.prototype,"isUserEditable",void 0);_.x([_.g({reflectToAttribute:!0,computed:"computeHasHeartButton(engagementState)"}),_.E("design:type",Boolean)],fY.prototype,"hasHeartButton",void 0);_.x([_.g({computed:"computeShowOnlyHeader(data, isDeleted)",reflectToAttribute:!0}),_.E("design:type",Boolean)],fY.prototype,"showOnlyHeader",void 0);
_.x([_.g({computed:"computeShowFooterDivider(data, isDeleted, isUserEditable)",reflectToAttribute:!0}),_.E("design:type",Boolean)],fY.prototype,"showFooterDivider",void 0);_.x([_.g({reflectToAttribute:!0,value:!1}),_.E("design:type",Object)],fY.prototype,"allowAnimations",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Boolean)],fY.prototype,"dashboardMoneyFeed",void 0);_.x([_.g({computed:"computeNoveltyImage(data)"}),_.E("design:type",Number)],fY.prototype,"noveltyWidth",void 0);
_.x([_.g({computed:"computeAuthorPhotoSize(data)"}),_.E("design:type",Number)],fY.prototype,"authorPhotoSize",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],fY.prototype,"modern",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],fY.prototype,"noPadding",void 0);_.x([_.T4("data"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],fY.prototype,"dataChanged",null);
_.x([_.T4("data.message"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],fY.prototype,"messageChanged",null);_.x([_.e("data","dashboardMoneyFeed"),_.E("design:type",Boolean),_.E("design:paramtypes",[])],fY.prototype,"hideLowerBumper",null);_.x([_.T4("isDeleted"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],fY.prototype,"isDeletedChanged",null);
fY=_.x([_.f({disableElementRegistration:!0,is:"yt-live-chat-paid-message-renderer"})],fY);
_.C(fY,"yt-live-chat-paid-message-renderer",function(){if(Eeq===void 0){var S=document.createElement("template");_.h(S,'\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');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);var p=S.content,U=p.insertBefore;xkc===void 0&&(xkc=document.createElement("template"));var Y=xkc;U.call(p,Y.content.cloneNode(!0),S.content.firstChild);Eeq=S}S=Eeq;return S},{mode:_.y("live_chat_enable_sink_wrapper")?2:0});var e4l;var ghw;var CY=function(){var S=_.HT.apply(this,arguments)||this;S._noAccessors=!0;return S};
_.r(CY,_.HT);CY.prototype.created=function(){this.ytOpenPopupBehavior.openPopupConfig=_.g7("openPopupConfig")};
_.x([_.F(_.dW.YtOpenPopupBehavior),_.E("design:type",Object)],CY.prototype,"ytOpenPopupBehavior",void 0);CY=_.x([_.Dl()],CY);_.xK=[_.dW.YtOpenPopupBehavior,CY.prototype];var uYt;var fs=[_.kM,PGt,_.h1,_.HB,_.E$,_.xOq,_.QX,_.NlI,_.Rp,X9w];_.y("web_watch_get_updated_metadata_response_processing")&&fs.push(_.QUw);_.y("web_continuation_response_processing")&&fs.push(_.Zt);var TAw=new _.$g("RESPONSE_RECEIVED_COMMANDS"),Gcu=new _.$g("RESPONSE_RECEIVED_COMMANDS");var nFq="accountDisconnectionEndpoint accountIntegrationEndpoint accountLinkCommand accountUnlinkCommand addToRemoteQueueEndpoint clearRemoteQueueEndpoint insertInRemoteQueueEndpoint offlineVideoEndpoint openPopupAction pingingEndpoint removeFromRemoteQueueEndpoint".split(" "),QZE=["updatedMetadataEndpoint","getBroadcastStatusEndpoint","getLiveAnalyticsEndpoint","getSearchInVideoCommand","ypcLogWalletAnalyticDataEndpoint"],zrE=["GET_UNSEEN_NOTIFICATION_COUNT"];var Ej=function(){var S=_.HT.apply(this,arguments)||this;S._noAccessors=!0;S.serviceEndpointHandlers=[];return S};
_.r(Ej,_.HT);Ej.prototype.created=function(){var S=this;this.endpointHandlerActionMap={"yt-service-request":function(p,U,Y,L){var I;return DjR(S.hostElement,p,U,Y,L,S.serviceEndpointHandlers,(I=S.onEntitiesUpdated)==null?void 0:I.bind(S))}}};
Ej.prototype.attached=function(){_.E9(_.xv.getInstance(),this.endpointHandlerActionMap,this.hostElement)};
Ej.prototype.detached=function(){_.me(_.xv.getInstance(),this.endpointHandlerActionMap,this.hostElement)};
Ej=_.x([_.Dl()],Ej);_.w8P=[Ej.prototype];var lVl,aVe=function(){return lVl!==void 0?lVl:lVl=document.createElement("template")};
document.head.appendChild(aVe().content);var fVe;var CFw=document.head,xgw=CFw.appendChild,Ehe;if(fVe===void 0){var mgI=document.createElement("template");_.h(mgI,"\x3c!--css-build:shady--\x3e");mgI.content.insertBefore(aVe().content.cloneNode(!0),mgI.content.firstChild);fVe=mgI}Ehe=fVe;xgw.call(CFw,Ehe.content);var ohj,vhj=function(){return ohj!==void 0?ohj:ohj=document.createElement("template")};
document.head.appendChild(vhj().content);var $gP;var ibQ=document.head,NqP=ibQ.appendChild,Bqm;if($gP===void 0){var qnq=document.createElement("template");_.h(qnq,"\x3c!--css-build:shady--\x3e");qnq.content.insertBefore(vhj().content.cloneNode(!0),qnq.content.firstChild);$gP=qnq}Bqm=$gP;NqP.call(ibQ,Bqm.content);var A5t;_.Ry("itemSectionRenderer","buttonRenderer","ytd-button-renderer");_.Ry("sharingRendererButtons","buttonRenderer","ytd-button-renderer");A5t=_.y("web_button_rework")&&_.ub("BUTTON_REWORK")||_.y("web_button_rework_with_live");_.mg=function(){var S=_.w.apply(this,arguments)||this;S.isPressed=!1;S.actionMap={"yt-update-button-action":"handleUpdateButtonAction"};return S};
_.r(_.mg,_.w);_.M=_.mg.prototype;_.M.created=function(){this.showTooltips=!0};
_.M.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.M.onHintIdChanged=function(){var S=this,p,U,Y=(p=this.ytButtonBehavior.data)==null?void 0:(U=p.hint)==null?void 0:U.hintRenderer;if(Y&&Y.hintId){p=_.pp(this.hostElement,"yt-get-opened-popups-action");p=(p&&p.length===1?p[0]:[]).length>0;var L=null;Y.hintId!=="sponsor-pre-purchase"||p?Y.hintId.startsWith("sponsor-post-purchase")&&!p?L=RIe("membership-manage"):Y.hintId.startsWith("sponsorships-premium-freebie-pre-purchase")&&!p&&(L=RIe("membership-freebie-join")):L=RIe("membership-join");L&&_.PA.addLowPriorityJob(function(){for(var I=
_.d(L),V=I.next();!V.done;V=I.next())S.ytComponentBehavior.resolveCommand(V.value)})}};
_.M.onPressedStateChanged=function(){this.ytButtonBehavior.setPressedState(this.isPressed)};
_.M.onYtNavigate=function(S){var p=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(S.detail.endpoint);p&&(S.stopPropagation(),this.ytdOpenPopupBehavior.openPopup(p))};
_.M.onYtServiceRequestSent=function(S,p){this.handleServiceRequestActions(p);_.cv(this.hostElement,"yt-service-request-sent-button-renderer")};
_.M.onServiceRequestCompleted=function(S,p){this.handleServiceRequestActions(p);_.cv(this.hostElement,"yt-service-request-completed-button-renderer")};
_.M.updateButton=function(S){var p;if(S=(p=_.b(S,OTj))==null?void 0:p.updatedButton)this.ytButtonBehavior.data=_.b(S,_.XT)};
_.M.handleUpdateButtonAction=function(S){var p=this.ytButtonBehavior.data;p.targetId&&S.updateButtonAction.targetId&&p.targetId===S.updateButtonAction.targetId&&this.updateButton(S)};
_.M.handleServiceRequestActions=function(S){if(S=S.actions)for(var p=0;p<S.length;p++)this.updateButton(S[p])};
_.$u.Object.defineProperties(_.mg,{template:{configurable:!0,enumerable:!0,get:function(){if(uYt===void 0){var S=document.createElement("template");_.h(S,"\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");S.content.insertBefore(_.t().content.cloneNode(!0),S.content.firstChild);uYt=S}S=uYt;return S}}});
_.mg.prototype.onServiceRequestCompleted=_.mg.prototype.onServiceRequestCompleted;_.mg.prototype.onYtServiceRequestSent=_.mg.prototype.onYtServiceRequestSent;_.mg.prototype.onYtNavigate=_.mg.prototype.onYtNavigate;_.mg.prototype.onPressedStateChanged=_.mg.prototype.onPressedStateChanged;_.mg.prototype.onHintIdChanged=_.mg.prototype.onHintIdChanged;_.x([_.g(),_.E("design:type",Object)],_.mg.prototype,"data",void 0);_.x([_.g(),_.E("design:type",Object)],_.mg.prototype,"isPressed",void 0);
_.x([_.F(_.Aj.YtActionHandlerBehavior),_.E("design:type",Object)],_.mg.prototype,"ytActionHandlerBehavior",void 0);_.x([_.F(_.Vxj.YtButtonBehavior),_.E("design:type",Object)],_.mg.prototype,"ytButtonBehavior",void 0);_.x([_.F(_.xK),_.E("design:type",Object)],_.mg.prototype,"ytdOpenPopupBehavior",void 0);_.x([_.F(_.eL.YtComponentBehavior),_.E("design:type",Object)],_.mg.prototype,"ytComponentBehavior",void 0);
_.x([_.F(Dm.YtRenderButtonBehavior),_.E("design:type",Object)],_.mg.prototype,"ytRenderButtonBehavior",void 0);_.x([_.T4("data.hint.hintRenderer"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],_.mg.prototype,"onHintIdChanged",null);_.x([_.T4("isPressed"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],_.mg.prototype,"onPressedStateChanged",null);
_.x([_.Vd("yt-navigate"),_.E("design:type",Function),_.E("design:paramtypes",[CustomEvent]),_.E("design:returntype")],_.mg.prototype,"onYtNavigate",null);_.x([_.Vd("yt-service-request-sent"),_.E("design:type",Function),_.E("design:paramtypes",[CustomEvent,_.eM]),_.E("design:returntype")],_.mg.prototype,"onYtServiceRequestSent",null);
_.x([_.Vd("yt-service-request-completed"),_.E("design:type",Function),_.E("design:paramtypes",[CustomEvent,_.xL]),_.E("design:returntype")],_.mg.prototype,"onServiceRequestCompleted",null);_.mg=_.x([_.f({is:"ytd-button-renderer",disableElementRegistration:A5t})],_.mg);var on=function(){var S=_.w.apply(this,arguments)||this;S.modern=_.y("web_button_rework_with_live");S.buttonOverrides={style:"overlay",type:"filled"};return S};
_.r(on,_.w);_.M=on.prototype;_.M.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"}}}}};
_.M.ready=function(){var S=document.querySelector("yt-live-chat-app");S&&S.hasAttribute("dashboard-money-feed")&&(this.dashboardMoneyFeed=!0)};
_.M.dataChanged=function(){if(this.data&&this.data.sticker){var S=_.AS(this.data.sticker.thumbnails,this.stickerWidth);S||_.sZe(S).thenCatch(function(){_.eP(new _.y7("Failed to load Super Sticker with url",S))})}};
_.M.computeAuthorPhotoSize=function(S){return(S==null?0:S.isV2Style)?32:40};
_.M.computeIsV2Style=function(S){return(S==null?0:S.isV2Style)?!0:!1};
_.M.onStickerLoaded=function(S){var p,U,Y;(p=_.mF(S))==null||(U=p.parentNode)==null||(Y=U.classList)==null||Y.add("sticker-loaded")};
_.M.computeNoveltyImageWidth=function(S){var p,U;if(S==null?0:(p=S.headerOverlayImage)==null?0:(U=p.thumbnails)==null?0:U.length){p=S.headerOverlayImage.thumbnails[0];var Y,L;if((Y=S.pdgPurchasedNoveltyLoggingDirectives)==null?0:(L=Y.loggingDirectives)==null?0:L.trackingParams){var I,V;gTu((I=S.pdgPurchasedNoveltyLoggingDirectives)==null?void 0:(V=I.loggingDirectives)==null?void 0:V.trackingParams)}return p.width||0}return 0};
_.M.isDeletedChanged=function(){this.isDeleted&&(this.set("data.detailText",null),this.set("data.superStickerIcon",null),this.set("data.sticker",null))};
_.M.updateStickerStyles=function(){var S=this.data;S&&(S={"--yt-live-chat-paid-sticker-chip-background-color":this.ytLiveChatItemBehavior.colorFromDecimal(S.moneyChipBackgroundColor),"--yt-live-chat-paid-sticker-chip-text-color":this.ytLiveChatItemBehavior.colorFromDecimal(S.moneyChipTextColor),"--yt-live-chat-paid-sticker-background-color":this.ytLiveChatItemBehavior.colorFromDecimal(S.backgroundColor),"--yt-live-chat-disable-highlight-message-author-name-color":this.ytLiveChatItemBehavior.colorFromDecimal(S.authorNameTextColor)},
_.Ms(this.hostElement,S))};
_.M.onBuyButtonClick=function(){var S,p=_.b((S=this.data)==null?void 0:S.buyButton,_.XT);p&&!N$X(p.command)&&this.ytRendererBehavior.logExplicitClick(p)};
_.M.shouldSupportWholeItemClick=function(){return!0};
_.$u.Object.defineProperties(on.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 S;return((S=this.data)==null?0:S.buyButton)||this.dashboardMoneyFeed?!0:!1}}});
on.prototype.updateStickerStyles=on.prototype.updateStickerStyles;on.prototype.isDeletedChanged=on.prototype.isDeletedChanged;on.prototype.onStickerLoaded=on.prototype.onStickerLoaded;on.prototype.dataChanged=on.prototype.dataChanged;_.x([_.F(Omm.YtPdgLiveChatItemBehavior),_.E("design:type",Object)],on.prototype,"ytPdgLiveChatItemBehavior",void 0);_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],on.prototype,"ytRendererBehavior",void 0);
_.x([_.F(_.eL.YtComponentBehavior),_.E("design:type",Object)],on.prototype,"ytComponentBehavior",void 0);_.x([_.F(_.sj.YtLiveChatItemBehavior),_.E("design:type",_.eN)],on.prototype,"ytLiveChatItemBehavior",void 0);_.x([_.F(_.qH.YtRendererstamperBehavior),_.E("design:type",Object)],on.prototype,"ytRendererstamperBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],on.prototype,"data",void 0);
_.x([_.g({computed:"computeAuthorPhotoSize(data)"}),_.E("design:type",Number)],on.prototype,"authorPhotoSize",void 0);_.x([_.g(),_.E("design:type",Boolean)],on.prototype,"isDeleted",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Boolean)],on.prototype,"dashboardMoneyFeed",void 0);_.x([_.g({computed:"computeNoveltyImageWidth(data)"}),_.E("design:type",Number)],on.prototype,"noveltyWidth",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],on.prototype,"modern",void 0);
_.x([_.g({reflectToAttribute:!0,computed:"computeIsV2Style(data)"}),_.E("design:type",Boolean)],on.prototype,"isV2Style",void 0);_.x([_.T4("data"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],on.prototype,"dataChanged",null);_.x([_.Vd("yt-img-shadow-loaded"),_.E("design:type",Function),_.E("design:paramtypes",[CustomEvent]),_.E("design:returntype")],on.prototype,"onStickerLoaded",null);
_.x([_.e("data"),_.E("design:type",Number),_.E("design:paramtypes",[])],on.prototype,"stickerWidth",null);_.x([_.e("data"),_.E("design:type",Number),_.E("design:paramtypes",[])],on.prototype,"stickerHeight",null);_.x([_.g({reflectToAttribute:!0}),_.e("data"),_.E("design:type",Boolean),_.E("design:paramtypes",[])],on.prototype,"hasHeartButton",null);_.x([_.e("data","dashboardMoneyFeed"),_.E("design:type",Boolean),_.E("design:paramtypes",[])],on.prototype,"hideLowerBumper",null);
_.x([_.T4("isDeleted"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],on.prototype,"isDeletedChanged",null);_.x([_.T4("data"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],on.prototype,"updateStickerStyles",null);on=_.x([_.FB({disableElementRegistration:!0,is:"yt-live-chat-paid-sticker-renderer",noInjection:!0})],on);
_.C(on,"yt-live-chat-paid-sticker-renderer",function(){if(ghw===void 0){var S=document.createElement("template");_.h(S,'\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>');
S.content.insertBefore(_.t().content.cloneNode(!0),S.content.firstChild);var p=S.content,U=p.insertBefore;e4l===void 0&&(e4l=document.createElement("template"));var Y=e4l;U.call(p,Y.content.cloneNode(!0),S.content.firstChild);ghw=S}S=ghw;return S},{mode:_.y("live_chat_enable_sink_wrapper")?2:0});var tym;var c5w;var SYl,pqc=function(){return SYl!==void 0?SYl:SYl=document.createElement("template")};
document.head.appendChild(pqc().content);var UXw,YYm=function(){return UXw!==void 0?UXw:UXw=document.createElement("template")};
document.head.appendChild(YYm().content);var LKQ;var M3t,IKm=function(){return M3t!==void 0?M3t:M3t=document.createElement("template")};
document.head.appendChild(IKm().content);var dXe;var V3H=document.head,TQe=V3H.appendChild,WKl;if(dXe===void 0){var ORQ=document.createElement("template");_.h(ORQ,"\x3c!--css-build:shady--\x3e");ORQ.content.insertBefore(IKm().content.cloneNode(!0),ORQ.content.firstChild);dXe=ORQ}WKl=dXe;TQe.call(V3H,WKl.content);var kHm=document.head,HRm=kHm.appendChild,DXm;if(LKQ===void 0){var vV=document.createElement("template");_.h(vV,"\x3c!--css-build:shady--\x3e");vV.content.insertBefore(YYm().content.cloneNode(!0),vV.content.firstChild);vV.content.insertBefore(pqc().content.cloneNode(!0),vV.content.firstChild);LKQ=vV}DXm=LKQ;HRm.call(kHm,DXm.content);var $K=function(){var S=_.HT.apply(this,arguments)||this;S.focusedIndex=0;S.verticalOffset=0;S.verticalAlign="top";S.dynamicAlign=!0;return S};
_.r($K,_.HT);$K.prototype.emojiUrl=function(S){S=_.Xt(this.emojiManager,S);if(!S)return"";var p;S=(p=S.image)==null?void 0:p.thumbnails;return _.AS(S,24)||""};
var zhq=function(S){var p;S.emojiVariants&&(p=S.data)!=null&&p.target&&_.oH(S,function(){S.set("verticalOffset",-1*S.hostElement.clientHeight);var U=_.tB(S.hostElement).querySelector("img");U&&U.focus()})};
_.M=$K.prototype;_.M.onKeyboardEnter=function(){};
_.M.onVerticalOffsetOrPositionTargetChanged=function(){this.ironOverlayBehavior.position()};
_.M.onEmojiVariantsChanged=function(){this.emojiVariants&&(this.ironOverlayBehavior.noCancelOnOutsideClick=!0,this.ironOverlayBehavior.open())};
_.M.onKeyDown=function(S){switch(S.keyCode){case 13:this.onKeyboardEnter();S.preventDefault();break;case 40:this.changeFocus(1);S.preventDefault();break;case 38:this.changeFocus(-1);S.preventDefault();break;case 27:this.ironOverlayBehavior.restoreFocusOnClose=!0,this.ironOverlayBehavior.close()}};
_.M.onYtEmojiSelect=function(S){var p=this,U,Y,L,I,V,W,O,D;return _.T(function(z){if(z.nextAddress==1)return Y=(U=p.data)==null?void 0:U.emoji,V=((L=Y)==null?void 0:L.stickyPrefId)||((I=Y)==null?void 0:I.emojiId),O=(W=S.detail)==null?void 0:W.emojiId,V&&O&&V!==O?_.k(z,(D=p.emojiManager)==null?void 0:Kvt(D,Y,O),2):z.return();_.St(p.hostElement,"yt-live-chat-emoji-sticky-preference-changed",[Y,O]);_.OV(z)})};
_.M.changeFocus=function(S){this.emojiVariants&&this.emojiVariants.length&&(this.focusedIndex=(this.focusedIndex+S+this.emojiVariants.length)%this.emojiVariants.length,this.focusedIndex<this.emojiVariants.length&&(S=_.tB(this.hostElement).querySelector("#variants"))&&S.children[this.focusedIndex].focus())};
_.$u.Object.defineProperties($K.prototype,{positionTarget:{configurable:!0,enumerable:!0,get:function(){var S;return((S=this.data)==null?void 0:S.target)||this.hostElement.parentElement}},
isPositioned:{configurable:!0,enumerable:!0,get:function(){return this.data&&!this.data.target||!!this.verticalOffset}}});
$K.prototype.onYtEmojiSelect=$K.prototype.onYtEmojiSelect;$K.prototype.onKeyDown=$K.prototype.onKeyDown;$K.prototype.onEmojiVariantsChanged=$K.prototype.onEmojiVariantsChanged;$K.prototype.onVerticalOffsetOrPositionTargetChanged=$K.prototype.onVerticalOffsetOrPositionTargetChanged;_.x([_.F(_.aU),_.E("design:type",Object)],$K.prototype,"ironOverlayBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],$K.prototype,"data",void 0);_.x([_.g(),_.E("design:type",_.Ft)],$K.prototype,"emojiManager",void 0);
_.x([_.g(),_.E("design:type",Object)],$K.prototype,"emojiVariants",void 0);_.x([_.g(),_.E("design:type",Object)],$K.prototype,"focusedIndex",void 0);_.x([_.e("data"),_.E("design:type",Object),_.E("design:paramtypes",[])],$K.prototype,"positionTarget",null);_.x([_.g({reflectToAttribute:!0}),_.e("verticalOffset","data"),_.E("design:type",Boolean),_.E("design:paramtypes",[])],$K.prototype,"isPositioned",null);_.x([_.g(),_.E("design:type",Object)],$K.prototype,"verticalOffset",void 0);
_.x([_.g(),_.E("design:type",Object)],$K.prototype,"verticalAlign",void 0);_.x([_.g(),_.E("design:type",Object)],$K.prototype,"dynamicAlign",void 0);_.x([_.T4("verticalOffset","positionTarget"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],$K.prototype,"onVerticalOffsetOrPositionTargetChanged",null);_.x([_.T4("emojiVariants"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],$K.prototype,"onEmojiVariantsChanged",null);
_.x([_.Vd("keydown"),_.E("design:type",Function),_.E("design:paramtypes",[KeyboardEvent]),_.E("design:returntype")],$K.prototype,"onKeyDown",null);_.x([_.Vd("yt-emoji-select"),_.E("design:type",Function),_.E("design:paramtypes",[CustomEvent]),_.E("design:returntype",Promise)],$K.prototype,"onYtEmojiSelect",null);$K=_.x([_.Dl()],$K);var Qet=[$K.prototype];var n6I;var JPe;var yPH=/medium-light|medium-dark|light|medium|dark/,KKc=/[\w-]*?(?=\/\w+\/\w+\.(?:svg|png)$)/,bRl=new Map([["dark","\ud83c\udfff"],["medium-dark","\ud83c\udffe"],["medium","\ud83c\udffd"],["medium-light","\ud83c\udffc"],["light","\ud83c\udffb"]]),iz=function(){var S=_.w.apply(this,arguments)||this;S.userSelection={left:null,right:null};S.scrollAction="lock";S.isEmojiDraftInProgress=!1;return S};
_.r(iz,_.w);_.M=iz.prototype;_.M.onClick=function(S){S=_.mF(S);S instanceof HTMLImageElement&&this.selectOrUpdateEmoji(S)};
_.M.selectOrUpdateEmoji=function(S){var p=S.getAttribute("selection");p&&(p==="default"?_.cv(this.hostElement,"yt-emoji-select",_.Xt(this.emojiManager,S.id)):p==="left"?this.userSelection=Object.assign({},this.userSelection,{left:S.src}):p==="right"?this.userSelection=Object.assign({},this.userSelection,{right:S.src}):p==="user"&&this.userSelection.left&&this.userSelection.right&&_.cv(this.hostElement,"yt-emoji-select",_.Xt(this.emojiManager,S.id)))};
_.M.openSelector=function(){this.ironOverlayBehavior.restoreFocusOnClose=!0;this.ironOverlayBehavior.open()};
_.M.onMultiSelectorThumbnailRowChanged=function(){var S,p,U;((S=this.data)==null?0:(p=S.emoji)==null?0:(U=p.multiSelectorThumbnailRow)==null?0:U.length)&&this.openSelector()};
_.M.getThumbnailFromEmojiRow=function(S){var p,U;return(S==null?void 0:(p=S.thumbnails)==null?void 0:(U=p[0])==null?void 0:U.url)||""};
_.M.getEmojiAltTextForPartialSelector=function(S){var p;return((p=this.getThumbnailFromEmojiRow(S).match(KKc))==null?void 0:p[0])||""};
_.M.getEmojiAltTextForDraftEmoji=function(){return this.composedEmojiSelection?this.composedEmojiSelection.emojiId||"":""};
_.M.getDraftEmojiAriaRole=function(){return this.composedEmojiSelection?"option":""};
_.M.getRowSelection=function(S){return["left","right"][S]};
_.M.getIdFromComposedEmoji=function(S){return(S==null?void 0:S.emojiId)||""};
_.M.getEmojiFromPartialSelections=function(S,p){if(!S&&!p)return null;var U,Y,L=(U=this.data)==null?void 0:(Y=U.emoji)==null?void 0:Y.variantIds;if(!L||!L.length)return null;var I;S=(I=S.match(yPH))==null?void 0:I[0];var V;p=(V=p.match(yPH))==null?void 0:V[0];if(!S||!p)return null;var W=bRl.get(S);V=bRl.get(p);if(W===V){V=Array.from(bRl.values()).filter(function(D){return D!==W}).join("|");
var O=new RegExp("^((?!("+V+")).)*"+W+"$")}else O=new RegExp(W+".*"+V);return(L=L.find(function(D){return O.test(D)}))&&_.Xt(this.emojiManager,L)||null};
_.M.onUserSelectionSrcLoad=function(){if(!this.isEmojiDraftInProgress&&this.data){var S,p=this.ytEmojiSelectorBehavior.emojiUrl(((S=this.data.emoji)==null?void 0:S.emojiId)||"");_.tB(this.hostElement).querySelector('[selection="user"]').src.includes(p)||(this.isEmojiDraftInProgress=!0)}};
_.M.onDomChange=function(){zhq(this.ytEmojiSelectorBehavior)};
_.M.getFocusableElements=function(){return _.tB(this.hostElement).querySelectorAll("img").filter(function(S){return S.getAttribute("role")==="option"})};
_.M.changeFocus=function(S){var p=this.getFocusableElements();p!=null&&p.length&&(this.ytEmojiSelectorBehavior.focusedIndex=(this.ytEmojiSelectorBehavior.focusedIndex+S+p.length)%p.length,this.ytEmojiSelectorBehavior.focusedIndex<p.length&&(S=p[this.ytEmojiSelectorBehavior.focusedIndex])&&S.focus())};
_.M.onKeyboardEnter=function(){var S=this.getFocusableElements();S!=null&&S.length&&(S=S[this.ytEmojiSelectorBehavior.focusedIndex])&&S instanceof HTMLImageElement&&(this.selectOrUpdateEmoji(S),this.ytEmojiSelectorBehavior.changeFocus(0))};
_.$u.Object.defineProperties(iz.prototype,{emojiVariants:{configurable:!0,enumerable:!0,get:function(){var S=this,p,U,Y;return this.emojiManager&&((p=this.data)==null?0:(U=p.emoji)==null?0:(Y=U.variantIds)==null?0:Y.length)?this.data.emoji.variantIds.map(function(L){return!!L&&_.Xt(S.emojiManager,L)}).filter(function(L){return!!L}):[]}},
composedEmojiSelection:{configurable:!0,enumerable:!0,get:function(){if(!this.data)return null;var S,p=(S=this.userSelection)==null?void 0:S.left,U;S=(U=this.userSelection)==null?void 0:U.right;return p&&S?this.getEmojiFromPartialSelections(p,S):null}},
draftEmojiUrl:{configurable:!0,enumerable:!0,get:function(){var S;if((S=this.composedEmojiSelection)==null?0:S.emojiId)return this.ytEmojiSelectorBehavior.emojiUrl(this.composedEmojiSelection.emojiId)||"";if(!this.data)return"";var p;S=(p=this.userSelection)==null?void 0:p.left;var U;p=(U=this.userSelection)==null?void 0:U.right;if(!S&&!p){var Y;return this.ytEmojiSelectorBehavior.emojiUrl(((Y=this.data.emoji)==null?void 0:Y.emojiId)||"")}return S&&!p?S:!S&&p?p:""}}});
iz.prototype.onMultiSelectorThumbnailRowChanged=iz.prototype.onMultiSelectorThumbnailRowChanged;iz.prototype.onClick=iz.prototype.onClick;_.x([_.F(_.aU),_.E("design:type",Object)],iz.prototype,"ironOverlayBehavior",void 0);_.x([_.F(Qet),_.E("design:type",Object)],iz.prototype,"ytEmojiSelectorBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],iz.prototype,"data",void 0);_.x([_.g(),_.E("design:type",_.Ft)],iz.prototype,"emojiManager",void 0);
_.x([_.g(),_.E("design:type",Object)],iz.prototype,"userSelection",void 0);_.x([_.g(),_.E("design:type",Object)],iz.prototype,"scrollAction",void 0);_.x([_.g(),_.E("design:type",Object)],iz.prototype,"isEmojiDraftInProgress",void 0);_.x([_.e("data"),_.E("design:type",Object),_.E("design:paramtypes",[])],iz.prototype,"emojiVariants",null);_.x([_.e("data","userSelection"),_.E("design:type",Object),_.E("design:paramtypes",[])],iz.prototype,"composedEmojiSelection",null);
_.x([_.Vd("click"),_.E("design:type",Function),_.E("design:paramtypes",[MouseEvent]),_.E("design:returntype")],iz.prototype,"onClick",null);_.x([_.T4("data.emoji.multiSelectorThumbnailRow"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],iz.prototype,"onMultiSelectorThumbnailRowChanged",null);_.x([_.e("data","userSelection","composedEmojiSelection"),_.E("design:type",String),_.E("design:paramtypes",[])],iz.prototype,"draftEmojiUrl",null);
iz=_.x([_.FB({is:"yt-emoji-multi-person-selector",disableElementRegistration:!0})],iz);
_.C(iz,"yt-emoji-multi-person-selector",function(){if(JPe===void 0){var S=document.createElement("template");_.h(S,'\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');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);var p=S.content,U=p.insertBefore;n6I===void 0&&(n6I=document.createElement("template"));var Y=n6I;U.call(p,Y.content.cloneNode(!0),S.content.firstChild);JPe=S}S=JPe;return S},{mode:2});var jet;var rPI;var No=function(){var S=_.w.apply(this,arguments)||this;S.tooltip_=null;return S};
_.r(No,_.w);_.M=No.prototype;_.M.dataChanged_=function(){var S;if((S=this.data)==null?0:S.tooltip)this.tooltip_||(this.tooltip_=document.createElement("tp-yt-paper-tooltip"),_.tB(this.hostElement).querySelector("#button").appendChild(this.tooltip_)),(0,_.L3)(this.tooltip_).textContent=this.data.tooltip};
_.M.computeTargetId=function(){var S;return((S=this.data)==null?void 0:S.targetId)||""};
_.M.computeId_=function(S){return S};
_.M.computeIcon_=function(S){return _.If(S)};
_.M.onTap_=function(){this.active=!this.active;_.cv(this.hostElement,"yt-emoji-picker-select-category",{categoryId:this.hostElement.id})};
_.M.activeChangedForBinding=function(){this.hostElement.dispatchEvent(new _.uz("active-changed",this.active))};
_.$u.Object.defineProperties(No.prototype,{iconFilled:{configurable:!0,enumerable:!0,get:function(){var S,p;if((S=this.data)==null?0:(p=S.icon)==null?0:p.iconType)return this.data.icon.iconType==="SUPER_STICKER";var U,Y;return((U=this.data)==null?void 0:(Y=U.icon)==null?void 0:Y.iconType)==="VIDEO_YOUTUBE"?!0:!1}}});
No.prototype.activeChangedForBinding=No.prototype.activeChangedForBinding;No.prototype.dataChanged_=No.prototype.dataChanged_;_.x([_.F(_.sz.YtLiveChatTooltipTargetingBehavior),_.E("design:type",Object)],No.prototype,"ytLiveChatTooltipTargetingBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],No.prototype,"data",void 0);_.x([_.g({computed:"computeId_(data.categoryId)",reflectToAttribute:!0}),_.E("design:type",String)],No.prototype,"id",void 0);
_.x([_.g({computed:"computeTargetId(data.targetId)"}),_.E("design:type",String)],No.prototype,"targetId",void 0);_.x([_.g({value:!1,reflectToAttribute:!0}),_.E("design:type",Boolean)],No.prototype,"active",void 0);_.x([_.g({readOnly:!0,computed:"computeIcon_(data.icon.iconType)"}),_.E("design:type",String)],No.prototype,"icon",void 0);_.x([_.T4("data"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],No.prototype,"dataChanged_",null);
_.x([_.e("data"),_.E("design:type",Boolean),_.E("design:paramtypes",[])],No.prototype,"iconFilled",null);_.x([_.T4("active"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],No.prototype,"activeChangedForBinding",null);No=_.x([_.FB({is:"yt-emoji-picker-category-button-renderer",disableElementRegistration:!0})],No);
_.C(No,"yt-emoji-picker-category-button-renderer",function(){if(rPI===void 0){var S=document.createElement("template");_.h(S,'\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');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);var p=S.content,U=p.insertBefore;jet===void 0&&(jet=document.createElement("template"));var Y=jet;U.call(p,Y.content.cloneNode(!0),S.content.firstChild);rPI=S}S=rPI;return S},{mode:2});var GHc;var hhj;var BV=function(){var S=_.w.apply(this,arguments)||this;S.ariaLabel=null;S.ariaActivedescendant=null;S.actionMap={"yt-live-chat-emoji-skin-tone-changed":"emojiSkinToneChanged_","yt-close-emoji-variant-selector":"onCloseEmojiVariantSelector","yt-live-chat-emoji-sticky-preference-changed":"onEmojiStickyPreferenceChanged"};S.JSC$12060_ignoreNextFocus_=!1;S.longPressTimeoutId=-1;return S};
_.r(BV,_.w);_.M=BV.prototype;_.M.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","listbox");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","0")};
_.M.detached=function(){clearTimeout(this.longPressTimeoutId)};
_.M.emojiChanged_=function(){this.changeFocus_(0,!1);for(var S=_.HX(),p=0;p<this.emoji.length;p++){var U={veType:88013,elementIndex:p},Y=this.emoji[p];Y.isCustomEmoji&&(Y=document.querySelector(("#"+Y.emojiId).replace("/","\\/")))&&(U=_.kX(S,U))&&(Y.visualElement=U)}};
_.M.emojiManagerChanged_=function(){this.skinTone=this.emojiManager.skinTone};
_.M.disableIncrementalLoadingChanged_=function(){this.disableIncrementalLoading&&(this.domRepeatTargetFramerate=this.domRepeatInitialCount=0)};
_.M.emojiSkinToneChanged_=function(S){this.skinTone=S};
_.M.dataChanged=function(){this.data&&this.data.emojiData&&QIE(this.emojiManager,this.data.emojiData)};
_.M.emojiUrl=function(S){S=this.getEmoji(S);if(!S)return"";var p;S=(p=S.image)==null?void 0:p.thumbnails;return _.AS(S,24)||""};
_.M.emojiAlt=function(S){var p=this.get("image.accessibility.accessibilityData.label",S);return p?p:S.isCustomEmoji?S.shortcuts[0]:S.emojiId};
_.M.emojiAriaLabel=function(S){return S.shortcuts?S.shortcuts[0]:""};
_.M.emojiAriaSelected=function(S,p,U){return S&&U==p?"true":"false"};
_.M.getEmoji=function(S){if(this.emojiManager)return this.shouldUseStickyPreferences?J5j(this.emojiManager,S):PV(this.emojiManager,S)};
_.M.computeId_=function(S){return S.categoryId||""};
_.M.computeEmoji=function(S){var p=this;return this.emojiManager?S.emojiIds?S.emojiIds.map(function(U){return U?_.Xt(p.emojiManager,U):null}).filter(erw):S.emojiData?S.emojiData.map(function(U){var Y=!!U.emojiId&&_.Xt(p.emojiManager,U.emojiId);
return Y?Object.assign({},Y,U):null}).filter(erw):[]:[]};
_.M.emojiLoading=function(){return this.data&&this.data.imageLoadingLazy?"lazy":"eager"};
_.M.computeAriaLabel_=function(S){return _.mA(S)};
_.M.computeAriaActivedescendant_=function(S,p){return S&&S[p]?S[p].emojiId||"":""};
_.M.handleLongPressEmojiWithVariants=function(S,p){this.changeFocusToEmoji(S.emojiId,!1);this.openVariantSelector(S,p)};
_.M.onMouseDown=function(S){var p=this;this.hostElement!==document.activeElement&&(this.JSC$12060_ignoreNextFocus_=!0);if(S.button===0){var U=_.mF(S);if(U instanceof HTMLImageElement){var Y=_.tB(this.hostElement).querySelector("#repeat").itemForElement(U);this.emojiContainsVariants(Y)&&(this.longPressTimeoutId=setTimeout(function(){p.handleLongPressEmojiWithVariants(Y,U)},500))}}};
_.M.onMouseUp=function(){clearTimeout(this.longPressTimeoutId)};
_.M.onFocus=function(){this.JSC$12060_ignoreNextFocus_||(this.showFocus=!0,this.changeFocus_(0,!0));this.JSC$12060_ignoreNextFocus_=!1};
_.M.onBlur_=function(){this.showFocus=!1};
_.M.emojiContainsVariants=function(S){return!!(S&&S.variantIds&&S.variantIds.length)};
_.M.onClick=function(S){clearTimeout(this.longPressTimeoutId);S=_.mF(S);if(S instanceof HTMLImageElement){var p=S.id;this.changeFocusToEmoji(p,!1);var U=this.getEmoji(p),Y;if(Y=this.shouldUseStickyPreferences&&this.emojiContainsVariants(U)){var L;Y=!((L=this.emojiManager.emojiMap[p])!=null&&L.stickyPrefId)}Y?(L=_.tB(this.hostElement).querySelector("#repeat").itemForElement(S),this.openVariantSelector(L,S)):_.cv(this.hostElement,"yt-emoji-select",U)}};
_.M.isActiveEmojiWithVariants=function(S,p){return S&&p?p.stickyPrefId?S===p.stickyPrefId:S===p.emojiId:!1};
_.M.onCloseEmojiVariantSelector=function(S){this.activeEmojiWithVariantsId===S&&(this.activeEmojiWithVariantsId="")};
_.M.onMouseOver_=function(S){S=_.mF(S);S instanceof HTMLImageElement&&_.cv(this.hostElement,"yt-emoji-hover",_.Xt(this.emojiManager,S.id))};
_.M.changeFocus_=function(S,p){this.focusedIndex=(this.focusedIndex+S+this.emoji.length)%this.emoji.length;this.focusedIndex<this.emoji.length&&(S=this.emoji[this.focusedIndex],p&&(this.showFocus=!0,_.tB(this.hostElement).querySelector("#emoji").children[this.focusedIndex].scrollIntoView(!1),_.cv(this.hostElement,"yt-emoji-hover",S)))};
_.M.changeFocusToEmoji=function(S,p){if(S){var U=this.emoji.findIndex(function(Y){return Y.emojiId===S});
U!==-1&&this.changeFocus_(U-this.focusedIndex,p)}};
_.M.onKeyDown_=function(S){switch(S.keyCode){case 13:if(this.focusedIndex<this.emoji.length){var p=this.emoji[this.focusedIndex];if(p&&p.emojiId){if(this.emojiContainsVariants(p)){var U=_.tB(this.hostElement).querySelectorAll("img")[this.focusedIndex];this.openVariantSelector(p,U)}else _.cv(this.hostElement,"yt-emoji-select",PV(this.emojiManager,p.emojiId)),this.hostElement.focus();S.preventDefault()}}break;case 40:this.changeFocus_(1,!0);S.preventDefault();break;case 38:this.changeFocus_(-1,!0),
S.preventDefault()}};
_.M.onEmojiStickyPreferenceChanged=function(S,p){this.shouldUseStickyPreferences&&this.activeEmojiWithVariantsId&&S.emojiId&&S.variantIds&&S.variantIds.includes(p)&&this.activeEmojiWithVariantsId!==p&&this.setStickyEmojiPreference(S.emojiId,p)};
_.M.openVariantSelector=function(S,p){this.activeEmojiWithVariantsId=S.stickyPrefId||S.emojiId||"";_.cv(this.hostElement,"yt-show-emoji-variant-selector",{emojiData:S,target:p})};
_.M.setStickyEmojiPreference=function(S,p){if(this.data){var U=this.emoji.findIndex(function(L){return L.emojiId===S});
if(U!==-1){var Y=this.emoji[U];Y.stickyPrefId=p;this.set("emoji."+U,Object.assign({},Y));this.activeEmojiWithVariantsId=p}}};
BV.prototype.onKeyDown_=BV.prototype.onKeyDown_;BV.prototype.onMouseOver_=BV.prototype.onMouseOver_;BV.prototype.onClick=BV.prototype.onClick;BV.prototype.onBlur_=BV.prototype.onBlur_;BV.prototype.onFocus=BV.prototype.onFocus;BV.prototype.onMouseUp=BV.prototype.onMouseUp;BV.prototype.onMouseDown=BV.prototype.onMouseDown;BV.prototype.dataChanged=BV.prototype.dataChanged;BV.prototype.disableIncrementalLoadingChanged_=BV.prototype.disableIncrementalLoadingChanged_;BV.prototype.emojiManagerChanged_=BV.prototype.emojiManagerChanged_;
BV.prototype.emojiChanged_=BV.prototype.emojiChanged_;_.x([_.F(_.Aj.YtActionHandlerBehavior),_.E("design:type",Object)],BV.prototype,"ytActionHandlerBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],BV.prototype,"data",void 0);_.x([_.g({computed:"computeId_(data)"}),_.E("design:type",String)],BV.prototype,"id",void 0);_.x([_.g({computed:"computeEmoji(data)"}),_.E("design:type",Array)],BV.prototype,"emoji",void 0);_.x([_.g(),_.E("design:type",Number)],BV.prototype,"skinTone",void 0);
_.x([_.g(),_.E("design:type",_.Ft)],BV.prototype,"emojiManager",void 0);_.x([_.g(),_.E("design:type",Boolean)],BV.prototype,"disableIncrementalLoading",void 0);_.x([_.g({value:0}),_.E("design:type",Number)],BV.prototype,"focusedIndex",void 0);_.x([_.g({value:!1}),_.E("design:type",Boolean)],BV.prototype,"showFocus",void 0);_.x([_.g({reflectToAttribute:!0,computed:"computeAriaLabel_(data.title)"}),_.E("design:type",Object)],BV.prototype,"ariaLabel",void 0);
_.x([_.g({reflectToAttribute:!0,computed:"computeAriaActivedescendant_(emoji, focusedIndex)"}),_.E("design:type",Object)],BV.prototype,"ariaActivedescendant",void 0);_.x([_.g({value:60}),_.E("design:type",Number)],BV.prototype,"domRepeatTargetFramerate",void 0);_.x([_.g({value:1}),_.E("design:type",Number)],BV.prototype,"domRepeatInitialCount",void 0);_.x([_.g({value:""}),_.E("design:type",String)],BV.prototype,"activeEmojiWithVariantsId",void 0);
_.x([_.g({value:!1}),_.E("design:type",Boolean)],BV.prototype,"shouldUseStickyPreferences",void 0);_.x([_.T4("emoji"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],BV.prototype,"emojiChanged_",null);_.x([_.T4("emojiManager"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],BV.prototype,"emojiManagerChanged_",null);
_.x([_.T4("disableIncrementalLoading"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],BV.prototype,"disableIncrementalLoadingChanged_",null);_.x([_.T4("data"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],BV.prototype,"dataChanged",null);_.x([_.Vd("mousedown"),_.E("design:type",Function),_.E("design:paramtypes",[Object]),_.E("design:returntype")],BV.prototype,"onMouseDown",null);
_.x([_.Vd("mouseup"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],BV.prototype,"onMouseUp",null);_.x([_.Vd("focus"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],BV.prototype,"onFocus",null);_.x([_.Vd("blur"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],BV.prototype,"onBlur_",null);
_.x([_.Vd("click"),_.E("design:type",Function),_.E("design:paramtypes",[Event]),_.E("design:returntype")],BV.prototype,"onClick",null);_.x([_.Vd("mouseover"),_.E("design:type",Function),_.E("design:paramtypes",[Event]),_.E("design:returntype")],BV.prototype,"onMouseOver_",null);_.x([_.Vd("keydown"),_.E("design:type",Function),_.E("design:paramtypes",[Event]),_.E("design:returntype")],BV.prototype,"onKeyDown_",null);
BV=_.x([_.FB({is:"yt-emoji-picker-category-renderer",disableElementRegistration:!0})],BV);
_.C(BV,"yt-emoji-picker-category-renderer",function(){if(hhj===void 0){var S=document.createElement("template");_.h(S,'\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>');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);var p=S.content,U=p.insertBefore;GHc===void 0&&(GHc=document.createElement("template"));var Y=GHc;U.call(p,Y.content.cloneNode(!0),S.content.firstChild);hhj=S}S=hhj;return S},{mode:2});var Rhe;var FKP;var Xqm;var PHH;var qo=function(){var S=_.w.apply(this,arguments)||this;S.ariaLabel=null;S.ariaActivedescendant=null;S.getFormattedStringRawText=_.mA;S.JSC$12066_ignoreNextFocus_=!1;return S};
_.r(qo,_.w);_.M=qo.prototype;_.M.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")};
_.M.emojiUrl=function(S){var p,U;S=(p=PV(this.emojiManager,S,!0))==null?void 0:(U=p.image)==null?void 0:U.thumbnails;return _.AS(S,24)||""};
_.M.emojiAlt=function(S){var p=this.get("image.accessibility.accessibilityData.label",S);return p?p:S.isCustomEmoji?S.shortcuts[0]:S.emojiId};
_.M.emojiId=function(S){return"emoji"+S};
_.M.computeId_=function(S){return S.categoryId||""};
_.M.computeAriaActivedescendant_=function(S){return this.emoji&&S<this.emoji.length?this.emojiId(S):""};
_.M.emojiChanged_=function(){this.changeFocus_(0,!1);for(var S=_.HX(),p=0;p<this.emoji.length;p++){var U={veType:88013,elementIndex:p},Y=this.emoji[p];Y.isCustomEmoji&&(Y=document.querySelector(("#"+Y.emojiId).replace("/","\\/")))&&(U=_.kX(S,U))&&(Y.visualElement=U)}};
_.M.computeEmoji_=function(S){var p=this;return this.emojiManager?S.emojiIds.map(function(U){return _.Xt(p.emojiManager,U,!0)}).filter(gFw):[]};
_.M.titleOffsetChanged_=function(){var S=this.hostElement.getBoundingClientRect(),p=_.tB(this.hostElement).querySelector("#title").getBoundingClientRect();S=Math.max(0,Math.min(this.titleOffset,S.height-p.height));_.tB(this.hostElement).querySelector("#title").style.top=S+"px"};
_.M.onEmojiMouseOver_=function(S){_.cv(this.hostElement,"yt-emoji-hover",S.model.item)};
_.M.onEmojiTap_=function(S){this.data.command&&(S=ETw(_.tW().resolve(_.AW(fv)),this.data.command,S),_.cv(this.hostElement,"yt-navigate",S))};
_.M.emojiAriaLabel=function(S){return S.shortcuts[0]};
_.M.emojiAriaSelected=function(S,p,U){return S&&U==p?"true":"false"};
_.M.changeFocus_=function(S,p){var U=this.emoji.length;this.focusedIndex=(this.focusedIndex+S+U)%U;S=this.emoji[this.focusedIndex];if(p){var Y;(Y=_.tB(this.hostElement).querySelector("#"+this.emojiId(this.focusedIndex)))==null||Y.scrollIntoView(!1);_.cv(this.hostElement,"yt-emoji-hover",S)}};
_.M.onMouseDown_=function(){this.JSC$12066_ignoreNextFocus_=!0};
_.M.onFocus_=function(){this.JSC$12066_ignoreNextFocus_||(this.showFocus=!0,this.changeFocus_(0,!0));this.JSC$12066_ignoreNextFocus_=!1};
_.M.onBlur_=function(){this.showFocus=!1};
_.M.onKeyDown_=function(S){switch(S.keyCode){case 13:this.onEmojiTap_(S);this.hostElement.focus();break;case 40:this.changeFocus_(1,!0);S.preventDefault();break;case 38:this.changeFocus_(-1,!0),S.preventDefault()}};
qo.prototype.onKeyDown_=qo.prototype.onKeyDown_;qo.prototype.onBlur_=qo.prototype.onBlur_;qo.prototype.onFocus_=qo.prototype.onFocus_;qo.prototype.onMouseDown_=qo.prototype.onMouseDown_;qo.prototype.onEmojiTap_=qo.prototype.onEmojiTap_;qo.prototype.titleOffsetChanged_=qo.prototype.titleOffsetChanged_;qo.prototype.emojiChanged_=qo.prototype.emojiChanged_;_.x([_.F(_.eL.YtComponentBehavior),_.E("design:type",Object)],qo.prototype,"ytComponentBehavior",void 0);
_.x([_.g(),_.E("design:type",Object)],qo.prototype,"data",void 0);_.x([_.g({computed:"computeId_(data)"}),_.E("design:type",String)],qo.prototype,"id",void 0);_.x([_.g({computed:"computeEmoji_(data)"}),_.E("design:type",Array)],qo.prototype,"emoji",void 0);_.x([_.g({value:0}),_.E("design:type",Number)],qo.prototype,"titleOffset",void 0);_.x([_.g({reflectToAttribute:!0,computed:"getFormattedStringRawText(data.upsell)"}),_.E("design:type",Object)],qo.prototype,"ariaLabel",void 0);
_.x([_.g({reflectToAttribute:!0,computed:"computeAriaActivedescendant_(focusedIndex)"}),_.E("design:type",Object)],qo.prototype,"ariaActivedescendant",void 0);_.x([_.g({value:!1}),_.E("design:type",Boolean)],qo.prototype,"showFocus",void 0);_.x([_.g({value:0}),_.E("design:type",Number)],qo.prototype,"focusedIndex",void 0);_.x([_.g(),_.E("design:type",_.Ft)],qo.prototype,"emojiManager",void 0);
_.x([_.T4("emoji"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],qo.prototype,"emojiChanged_",null);_.x([_.T4("titleOffset"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],qo.prototype,"titleOffsetChanged_",null);_.x([_.Vd("click"),_.E("design:type",Function),_.E("design:paramtypes",[Event]),_.E("design:returntype")],qo.prototype,"onEmojiTap_",null);
_.x([_.Vd("mousedown"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],qo.prototype,"onMouseDown_",null);_.x([_.Vd("focus"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],qo.prototype,"onFocus_",null);_.x([_.Vd("blur"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],qo.prototype,"onBlur_",null);
_.x([_.Vd("keydown"),_.E("design:type",Function),_.E("design:paramtypes",[Event]),_.E("design:returntype")],qo.prototype,"onKeyDown_",null);qo=_.x([_.FB({is:"yt-emoji-picker-upsell-category-renderer",disableElementRegistration:!0})],qo);
_.C(qo,"yt-emoji-picker-upsell-category-renderer",function(){if(PHH===void 0){var S=document.createElement("template");_.h(S,'\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>');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);var p=S.content,U=p.insertBefore;Xqm===void 0&&(Xqm=document.createElement("template"));var Y=Xqm;U.call(p,Y.content.cloneNode(!0),S.content.firstChild);PHH=S}S=PHH;return S},{mode:2});var ZRt;var sed;var At=function(){var S=_.w.apply(this,arguments)||this;S.scrollAction="lock";S.verticalAlign="top";return S};
_.r(At,_.w);_.M=At.prototype;_.M.onClick=function(S){S=_.mF(S);S instanceof HTMLImageElement&&_.cv(this.hostElement,"yt-emoji-select",_.Xt(this.emojiManager,S.id))};
_.M.openSelector=function(){this.ironOverlayBehavior.open()};
_.M.onDomChange=function(){zhq(this.ytEmojiSelectorBehavior)};
_.M.computeIsFamilySelector=function(S){var p;return(S==null?void 0:(p=S.emoji)==null?void 0:p.emojiId)==="\ud83d\udc6a"};
_.M.onKeyboardEnter=function(){if(this.emojiVariants&&this.ytEmojiSelectorBehavior.focusedIndex<this.emojiVariants.length){var S=this.emojiVariants[this.ytEmojiSelectorBehavior.focusedIndex];S&&S.emojiId&&(_.cv(this.hostElement,"yt-emoji-select",_.Xt(this.emojiManager,S.emojiId)),this.ytEmojiSelectorBehavior.changeFocus(0))}};
_.$u.Object.defineProperties(At.prototype,{emojiVariants:{configurable:!0,enumerable:!0,get:function(){var S=this,p,U,Y;return this.emojiManager&&((p=this.data)==null?0:(U=p.emoji)==null?0:(Y=U.variantIds)==null?0:Y.length)?this.data.emoji.variantIds.map(function(L){return!!L&&_.Xt(S.emojiManager,L)}).filter(function(L){return!!L}):[]}}});
At.prototype.onClick=At.prototype.onClick;_.x([_.F(_.aU),_.E("design:type",Object)],At.prototype,"ironOverlayBehavior",void 0);_.x([_.F(Qet),_.E("design:type",Object)],At.prototype,"ytEmojiSelectorBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],At.prototype,"data",void 0);_.x([_.g(),_.E("design:type",_.Ft)],At.prototype,"emojiManager",void 0);_.x([_.g(),_.E("design:type",Object)],At.prototype,"scrollAction",void 0);_.x([_.g(),_.E("design:type",Object)],At.prototype,"verticalAlign",void 0);
_.x([_.g({reflectToAttribute:!0,computed:"computeIsFamilySelector(data)"}),_.E("design:type",Boolean)],At.prototype,"isFamilySelector",void 0);_.x([_.e("data"),_.E("design:type",Object),_.E("design:paramtypes",[])],At.prototype,"emojiVariants",null);_.x([_.Vd("click"),_.E("design:type",Function),_.E("design:paramtypes",[MouseEvent]),_.E("design:returntype")],At.prototype,"onClick",null);At=_.x([_.FB({is:"yt-emoji-variant-selector",disableElementRegistration:!0})],At);
_.C(At,"yt-emoji-variant-selector",function(){if(sed===void 0){var S=document.createElement("template");_.h(S,'\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');
S.content.insertBefore(_.t().content.cloneNode(!0),S.content.firstChild);var p=S.content,U=p.insertBefore;ZRt===void 0&&(ZRt=document.createElement("template"));var Y=ZRt;U.call(p,Y.content.cloneNode(!0),S.content.firstChild);sed=S}S=sed;return S},{mode:2});var eht=/:/g,g6Q=["UCkszU2WH9gy1mb0dV-11UJg","UC4R8DWoMoI7CAwX8_LjQHig"],tt=function(){var S=_.w.apply(this,arguments)||this;S.emojiVariantSelector=null;S.emojiMultiPersonSelector=null;S.identity=_.Cr;S.lastAnimationTime_=0;S.animationStart_=null;S.animationEnd_=null;return S};
_.r(tt,_.w);_.M=tt.prototype;
_.M.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}}};
_.M.created=function(){this.boundOnIronOverlayClosed=this.onIronOverlayClosed.bind(this);this.emojiManager||(this.emojiManager=_.Zm)};
_.M.attached=function(){_.cO&&(this.hostElement.style.height=this.hostElement.clientHeight+150+"px");this.shouldUseStickyPreferences&&nhQ(this.emojiManager)};
_.M.dataChanged=function(){var S;if((S=this.data)==null?0:S.categories){S=this.emojiManager;var p=this.getCustomEmojiIds();S.pickerCustomEmojiIds=[].concat(_.jo(Obd),_.jo(p))}};
_.M.getCustomEmojiIds=function(){var S,p=(S=this.data.categories)==null?void 0:S.find(function(I){var V;return((V=I.emojiPickerCategoryRenderer)==null?void 0:V.categoryId)&&g6Q.includes(I.emojiPickerCategoryRenderer.categoryId)}),U;
S=(U=this.data.categories)==null?void 0:U.find(function(I){return I.emojiPickerUpsellCategoryRenderer});
var Y,L;return[p==null?void 0:(Y=p.emojiPickerCategoryRenderer)==null?void 0:Y.emojiIds,S==null?void 0:(L=S.emojiPickerUpsellCategoryRenderer)==null?void 0:L.emojiIds].flat().filter(function(I){return!!I})};
_.M.updateEmojiCategories=function(){this.updateCategoriesAndPlaceholderInternal(this.data,!0)};
_.M.updateCategoriesAndPlaceholder_=function(){this.updateCategoriesAndPlaceholderInternal(this.data,this.selected)};
_.M.updateCategoriesAndPlaceholderInternal=function(S,p){var U=this;S&&p&&(this.categories=S.categories||[],this.categoryButtons=S.categoryButtons||[],this.resetPlaceholder(),this.search="",_.uK(function(){U.updateButtons_()}))};
_.M.computeId_=function(S){return S.id||""};
_.M.computeShouldUseStickyPreferences=function(){return this.data&&this.data.categories?this.data.categories.some(function(S){return S.emojiPickerCategoryRenderer&&S.emojiPickerCategoryRenderer.emojiData}):!1};
_.M.onScroll_=function(){this.animationEnd_==null&&window.requestAnimationFrame(this.updateButtons_.bind(this))};
_.M.onShowEmojiVariantSelector=function(S){var p=S.detail.emojiData;p.variantIds&&p.variantIds.length&&(p.multiSelectorThumbnailRow&&p.multiSelectorThumbnailRow.length?this.set("emojiMultiPersonSelector",{ytEmojiMultiPersonSelector:{emoji:p,target:S.detail.target}}):this.set("emojiVariantSelector",{ytEmojiVariantSelector:{emoji:p,target:S.detail.target}}),this.variantSelectorOpened=!0,this.hostElement.addEventListener("iron-overlay-closed",this.boundOnIronOverlayClosed))};
_.M.onIronOverlayClosed=function(S){var p=J5j(this.emojiManager,this.get((this.emojiVariantSelector?"emojiVariantSelector.ytEmojiVariantSelector.emoji":"emojiMultiPersonSelector.ytEmojiMultiPersonSelector.emoji")+".emojiId")||"");p&&S.composedPath&&(S.composedPath().includes(_.tB(this.hostElement).querySelector("#emoji-variant-selector"))||S.composedPath().includes(_.tB(this.hostElement).querySelector("#emoji-multi-person-selector")))&&(_.St(this.hostElement,"yt-close-emoji-variant-selector",[p.emojiId]),
this.emojiMultiPersonSelector=this.emojiVariantSelector=null,this.variantSelectorOpened=!1,this.hostElement.removeEventListener("iron-overlay-closed",this.boundOnIronOverlayClosed))};
_.M.onEmojiVariantSelectorMouseup=function(S){var p=S.target.firstChild;this.variantSelectorOpened&&p&&_.uK(function(){p.noCancelOnOutsideClick=!1},100)};
_.M.onEmojiVariantSelectorMousedown=function(S){S=S.target.firstChild;this.variantSelectorOpened&&S&&(S.noCancelOnOutsideClick=!1)};
_.M.onSelectCategory_=function(S){var p=this.search!="";this.search="";for(var U=_.tB(this.hostElement).querySelector("#categories").children,Y=0;Y<U.length;Y++){var L=U[Y];if(L.id==S.detail.categoryId){p?(_.tB(this.hostElement).querySelector("#categories").scrollTop=L.offsetTop,this.updateButtons_()):(this.animationStart_=_.tB(this.hostElement).querySelector("#categories").scrollTop,this.animationEnd_=L.offsetTop,this.lastAnimationTime_=0,this.animateScroll_(this.lastAnimationTime_));break}}};
_.M.onEmojiHover_=function(S){this.placeholder=S.detail.shortcuts?S.detail.shortcuts[0]:""};
_.M.onSearchBoxFocused_=function(){this.resetPlaceholder()};
_.M.onSearchBoxBlur_=function(){this.resetPlaceholder()};
_.M.onMouseoutCategories=function(){this.variantSelectorOpened||this.resetPlaceholder()};
_.M.resetPlaceholder=function(){this.skinToneOpened||(this.placeholder=this.ytRendererBehavior.getSimpleString(this.data.searchPlaceholderText))};
_.M.computeSearchCategory_=function(S){S=S.replace(eht,"").toLowerCase().trim();if(!this.searching)return this.searchCategory;this.updateButtons_();S=S.split(" ");for(var p=[],U=this.emojiManager.emojis,Y=0;Y<U.length;Y++){var L=U[Y];if(L.searchTerms)for(var I=0;I<L.searchTerms.length;I++){for(var V=L.searchTerms[I].toLocaleLowerCase(),W=!1,O=0;O<S.length;O++)if(V.indexOf(S[O])!=-1){W=!0;break}if(W&&(!L.isCustomEmoji||!L.emojiId||this.emojiManager.pickerCustomEmojiIds.includes(L.emojiId))){p.push(L.emojiId);
break}}}return{categoryId:-1,emojiIds:p}};
_.M.computeSearchEmptyMessage_=function(S,p){return S&&p&&p.emojiIds&&p.emojiIds.length==0?this.data.searchNoResultsText||null:null};
_.M.computeSearching_=function(S){return this.emojiManager&&S.replace(eht,"").length>1};
_.M.computeSkinToneHidden=function(){var S;return this.shouldUseStickyPreferences||this.skinToneOpened||this.categories.length===1||!((S=this.data)==null||!S.hideSkinTonePicker)};
_.M.computeDisableScroll=function(){return!!this.emojiVariantSelector};
_.M.openSkinToneSelector=function(){this.skinToneOpened=!0};
_.M.showSkinTonePlaceholder=function(){this.placeholder=this.ytRendererBehavior.getSimpleString(this.data.pickSkinToneText)};
_.M.clearSearch=function(){this.resetPlaceholder();this.search=""};
_.M.selectSkinTone_=function(S){S=Number(S.target.getAttribute("tone"));this.set("emojiManager.skinTone",S);_.St(this.hostElement,"yt-live-chat-emoji-skin-tone-changed",[S]);this.skinToneOpened=!1;this.resetPlaceholder()};
_.M.skinToneChanged_=function(){_.tB(this.hostElement).querySelector("#skin-tone").setAttribute("tone",String(this.skinTone));for(var S=_.tB(this.hostElement).querySelector("#dropdown-content").children,p=0;p<S.length;p++)p===this.skinTone?S[p].setAttribute("selected",""):S[p].removeAttribute("selected")};
_.M.animateScroll_=function(S){this.lastAnimationTime_||(this.lastAnimationTime_=S);S-=this.lastAnimationTime_;S<200?(_.tB(this.hostElement).querySelector("#categories").scrollTop=this.animationStart_+(this.animationEnd_-this.animationStart_)*S/200,window.requestAnimationFrame(this.animateScroll_.bind(this))):(this.animationEnd_!=null&&(_.tB(this.hostElement).querySelector("#categories").scrollTop=this.animationEnd_),this.animationEnd_=this.animationStart_=null,this.lastAnimationTime_=0);this.updateButtons_()};
_.M.searchChanged_=function(){this.updateButtons_()};
_.M.updateButtons_=function(){var S=null;if(!this.search)for(var p=_.tB(this.hostElement).querySelector("#categories").scrollTop,U=_.tB(this.hostElement).querySelector("#categories").children,Y=0;Y<U.length;Y++){var L=U[Y];L.offsetTop<=p&&(S=L.id)}p=_.tB(this.hostElement).querySelector("#category-buttons").children;for(U=0;U<p.length;U++)Y=p[U],Y.active=Y.id===S};
tt.prototype.searchChanged_=tt.prototype.searchChanged_;tt.prototype.skinToneChanged_=tt.prototype.skinToneChanged_;tt.prototype.onEmojiHover_=tt.prototype.onEmojiHover_;tt.prototype.onSelectCategory_=tt.prototype.onSelectCategory_;tt.prototype.onShowEmojiVariantSelector=tt.prototype.onShowEmojiVariantSelector;tt.prototype.updateCategoriesAndPlaceholder_=tt.prototype.updateCategoriesAndPlaceholder_;tt.prototype.dataChanged=tt.prototype.dataChanged;
_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],tt.prototype,"ytRendererBehavior",void 0);_.x([_.F(_.qH.YtRendererstamperBehavior),_.E("design:type",Object)],tt.prototype,"ytRendererstamperBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],tt.prototype,"data",void 0);_.x([_.g({value:function(){return[]}}),
_.E("design:type",Array)],tt.prototype,"categories",void 0);_.x([_.g({value:function(){return[]}}),
_.E("design:type",Array)],tt.prototype,"categoryButtons",void 0);_.x([_.g({computed:"computeDisableScroll(emojiVariantSelector)",reflectToAttribute:!0}),_.E("design:type",Boolean)],tt.prototype,"disableScroll",void 0);_.x([_.g({computed:"computeId_(data)",reflectToAttribute:!0}),_.E("design:type",String)],tt.prototype,"id",void 0);_.x([_.g({value:!1}),_.E("design:type",Boolean)],tt.prototype,"selected",void 0);
_.x([_.g({value:!1}),_.E("design:type",Boolean)],tt.prototype,"disableIncrementalLoading",void 0);_.x([_.g(),_.E("design:type",String)],tt.prototype,"placeholder",void 0);_.x([_.g({value:""}),_.E("design:type",String)],tt.prototype,"search",void 0);_.x([_.g({computed:"computeSearching_(search)",reflectToAttribute:!0}),_.E("design:type",Boolean)],tt.prototype,"searching",void 0);_.x([_.g({computed:"computeSearchCategory_(search)"}),_.E("design:type",Object)],tt.prototype,"searchCategory",void 0);
_.x([_.g({computed:"computeSearchEmptyMessage_(searching, searchCategory)"}),_.E("design:type",Object)],tt.prototype,"searchEmptyMessage",void 0);_.x([_.g({computed:"identity(emojiManager.skinTone)"}),_.E("design:type",Number)],tt.prototype,"skinTone",void 0);_.x([_.g({value:!1}),_.E("design:type",Boolean)],tt.prototype,"skinToneOpened",void 0);_.x([_.g({value:!1,reflectToAttribute:!0}),_.E("design:type",Boolean)],tt.prototype,"variantSelectorOpened",void 0);
_.x([_.g({computed:"computeSkinToneHidden(skinToneOpened, categories, shouldUseStickyPreferences, data.hideSkinTonePicker)"}),_.E("design:type",Boolean)],tt.prototype,"skinToneHidden",void 0);_.x([_.g(),_.E("design:type",_.Ft)],tt.prototype,"emojiManager",void 0);_.x([_.g(),_.E("design:type",Object)],tt.prototype,"emojiVariantSelector",void 0);_.x([_.g(),_.E("design:type",Object)],tt.prototype,"emojiMultiPersonSelector",void 0);
_.x([_.g({value:!1,computed:"computeShouldUseStickyPreferences(data)"}),_.E("design:type",Boolean)],tt.prototype,"shouldUseStickyPreferences",void 0);_.x([_.T4("data"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],tt.prototype,"dataChanged",null);_.x([_.T4("data","selected"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],tt.prototype,"updateCategoriesAndPlaceholder_",null);
_.x([_.Vd("yt-show-emoji-variant-selector"),_.E("design:type",Function),_.E("design:paramtypes",[Event]),_.E("design:returntype")],tt.prototype,"onShowEmojiVariantSelector",null);_.x([_.Vd("yt-emoji-picker-select-category"),_.E("design:type",Function),_.E("design:paramtypes",[Event]),_.E("design:returntype")],tt.prototype,"onSelectCategory_",null);_.x([_.Vd("yt-emoji-hover"),_.E("design:type",Function),_.E("design:paramtypes",[Event]),_.E("design:returntype")],tt.prototype,"onEmojiHover_",null);
_.x([_.T4("skinTone"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],tt.prototype,"skinToneChanged_",null);_.x([_.T4("search"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],tt.prototype,"searchChanged_",null);tt=_.x([_.FB({is:"yt-emoji-picker-renderer",disableElementRegistration:!0})],tt);
_.C(tt,"yt-emoji-picker-renderer",function(){if(FKP===void 0){var S=document.createElement("template");_.h(S,'\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>');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);var p=S.content,U=p.insertBefore;Rhe===void 0&&(Rhe=document.createElement("template"));var Y=Rhe;U.call(p,Y.content.cloneNode(!0),S.content.firstChild);FKP=S}S=FKP;return S},{mode:2});var cV=function(){var S=_.w.apply(this,arguments)||this;S.emojiManager=_.Zm;S.isDarkTheme=document.documentElement.hasAttribute("dark");S.selectedIndex=1;S.actionMap={"yt-lwe-emoji-customization-visible":"handleEmojiCustomizationVisible"};return S};
_.r(cV,_.w);_.M=cV.prototype;_.M.handleEmojiCustomizationVisible=function(S){this.emojiPickerRenderer.selected=S;this.selectedIndex=1;S?(this.originalEmojiSet=this.emojiCustomizationSet,this.updateSaveButtonState(!1)):this.originalEmojiSet=void 0};
_.M.emojiCustomizationSetChanged=function(){var S;(S=this.data)!=null&&S.saveButtonEntityKey&&(this.originalEmojiSet||(this.originalEmojiSet=this.emojiCustomizationSet),this.originalEmojiSet&&this.emojiCustomizationSet&&!_.dm(this.originalEmojiSet.emojiId,this.emojiCustomizationSet.emojiId)?this.updateSaveButtonState(!0):this.updateSaveButtonState(!1))};
_.M.updateSaveButtonState=function(S){var p;(p=this.data)!=null&&p.saveButtonEntityKey&&this.ytLiveChatReduxBehavior.dispatch(_.WG("booleanEntity",this.data.saveButtonEntityKey,{key:this.data.saveButtonEntityKey,value:S}))};
_.M.emojiUrl=function(S){S=_.Xt(this.emojiManager,S);if(!S)return"";var p;S=(p=S.image)==null?void 0:p.thumbnails;return _.AS(S,24)||""};
_.M.emojiAlt=function(S){var p=_.Xt(this.emojiManager,S);if(!p)return S;var U,Y,L,I=(p==null?void 0:(U=p.image)==null?void 0:(Y=U.accessibility)==null?void 0:(L=Y.accessibilityData)==null?void 0:L.label)||"";return I?I:p.isCustomEmoji?p.shortcuts[0]:p.emojiId||S};
_.M.emojiAriaLabel=function(S){var p,U;return((p=_.Xt(this.emojiManager,S))==null?void 0:(U=p.shortcuts)==null?void 0:U[0])||S};
_.M.onEmojiClick=function(S){S.model.index!==0&&(this.selectedIndex=S.model.index)};
_.M.onEmojiSelect=function(S){S=S.detail;var p,U;((p=this.data)==null?0:p.emojiCustomizationSetEntityKey)&&((U=this.emojiCustomizationSet)==null?0:U.emojiId)&&S.emojiId&&this.canEditEmoji(this.emojiCustomizationSet.emojiId,S.emojiId,this.selectedIndex)&&this.ytLiveChatReduxBehavior.dispatch(_.WG("emojiCustomizationSetEntity",this.data.emojiCustomizationSetEntityKey,{key:this.data.emojiCustomizationSetEntityKey,emojiId:this.getUpdatedEmojiIdList(this.emojiCustomizationSet.emojiId,S.emojiId,this.selectedIndex)}))};
_.M.canEditEmoji=function(S,p,U){S=S.indexOf(p);return S===U||S===0||U===0?!1:!0};
_.M.getUpdatedEmojiIdList=function(S,p,U){var Y=S.indexOf(p);S=[].concat(_.jo(S));Y>=0&&(S[Y]=S[U]);S[U]=p;return S};
_.$u.Object.defineProperties(cV,{template:{configurable:!0,enumerable:!0,get:function(){if(c5w===void 0){var S=document.createElement("template");_.h(S,'\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');
S.content.insertBefore(_.t().content.cloneNode(!0),S.content.firstChild);var p=S.content,U=p.insertBefore;tym===void 0&&(tym=document.createElement("template"));var Y=tym;U.call(p,Y.content.cloneNode(!0),S.content.firstChild);c5w=S}S=c5w;return S}}});
cV.prototype.onEmojiSelect=cV.prototype.onEmojiSelect;_.x([_.F(_.Zq),_.E("design:type",Object)],cV.prototype,"ytLiveChatReduxBehavior",void 0);_.x([_.F(_.Aj.YtActionHandlerBehavior),_.E("design:type",Object)],cV.prototype,"ytActionHandlerBehavior",void 0);_.x([_.O2("yt-emoji-picker-renderer"),_.E("design:type",Object)],cV.prototype,"emojiPickerRenderer",void 0);
_.x([_.g({selectorArgs:["data.emojiCustomizationSetEntityKey"],selector:function(S,p){return _.I4(S.entities,"emojiCustomizationSetEntity",p)},
observer:"emojiCustomizationSetChanged"}),_.E("design:type",Object)],cV.prototype,"emojiCustomizationSet",void 0);_.x([_.g(),_.E("design:type",Object)],cV.prototype,"originalEmojiSet",void 0);_.x([_.g(),_.E("design:type",_.Ft)],cV.prototype,"emojiManager",void 0);_.x([_.g(),_.E("design:type",Object)],cV.prototype,"data",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],cV.prototype,"isDarkTheme",void 0);_.x([_.g(),_.E("design:type",Object)],cV.prototype,"selectedIndex",void 0);
_.x([_.Vd("yt-emoji-select"),_.E("design:type",Function),_.E("design:paramtypes",[CustomEvent]),_.E("design:returntype")],cV.prototype,"onEmojiSelect",null);cV=_.x([_.FB({is:"yt-emoji-customization-panel-view-model",noInjection:!0})],cV);var usE;var wqt;var lKm;var aKQ;var Sj=function(){var S=_.w.apply(this,arguments)||this;S.authorBadges=[];return S};
_.r(Sj,_.w);_.M=Sj.prototype;_.M.created=function(){this.ytLiveChatItemBehavior.supportsInlineActionButtons=!0};
_.M.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]]"}}}}}};
_.M.dataChanged=function(){var S=T$G(this.data.authorBadges||[]);this.hostElement.setAttribute("author-type",S)};
_.M.updateMessage=function(){var S=this.data.message,p=_.tB(_.tB(this.hostElement).querySelector("#message"));p.textContent="";S&&p.appendChild(this.ytLiveChatItemBehavior.createDocumentFragment(S))};
_.M.shouldSupportWholeItemClick=function(){return!0};
_.M.onShowOriginalClick=function(S){S.preventDefault();this.showOriginal=!0};
_.M.computeShowBar=function(S,p,U){return S&&p||U};
_.M.computeAuthorBadges=function(S){return S.authorBadges||[]};
_.M.computeAuthorIsOwner=function(S){return!!W3k(S.authorBadges,"owner")};
_.M.computeAuthorNameColor=function(S){var p;if(_.y("live_chat_author_name_color_usernames")&&(S==null?0:(p=S.authorName)==null?0:p.simpleText))return _.QBN(_.n_w(S.authorName.simpleText));if(_.y("live_chat_seed_color_usernames")&&(S==null?0:S.authorSeedColorArgb))return _.QBN(_.Lz(S.authorSeedColorArgb));if(_.y("live_chat_colored_usernames"))return"#cc0000";var U;return _.y("live_chat_simple_color_usernames")&&(S==null?0:(U=S.authorName)==null?0:U.simpleText)&&(S==null?0:S.authorUsernameColorLight)&&
(S==null?0:S.authorUsernameColorDark)&&!this.inBanner?document.documentElement.hasAttribute("dark")?_.Lz(S.authorUsernameColorDark):_.Lz(S.authorUsernameColorLight):""};
Sj.prototype.updateMessage=Sj.prototype.updateMessage;Sj.prototype.dataChanged=Sj.prototype.dataChanged;_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],Sj.prototype,"ytRendererBehavior",void 0);_.x([_.F(_.sj.YtLiveChatItemBehavior),_.E("design:type",_.eN)],Sj.prototype,"ytLiveChatItemBehavior",void 0);_.x([_.F(_.qH.YtRendererstamperBehavior),_.E("design:type",Object)],Sj.prototype,"ytRendererstamperBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],Sj.prototype,"data",void 0);
_.x([_.g({value:!1,reflectToAttribute:!0}),_.E("design:type",Boolean)],Sj.prototype,"showOriginal",void 0);_.x([_.g({value:!1,computed:"truthy(data.isDimmed)",reflectToAttribute:!0}),_.E("design:type",Boolean)],Sj.prototype,"isDimmed",void 0);_.x([_.g({computed:"computeShowBar(isDeleted, hasOriginalContent, isDimmed)",reflectToAttribute:!0}),_.E("design:type",Boolean)],Sj.prototype,"showBar",void 0);
_.x([_.g({computed:"computeAuthorBadges(data)"}),_.E("design:type",Array)],Sj.prototype,"authorBadges",void 0);_.x([_.g({computed:"computeAuthorIsOwner(data)",reflectToAttribute:!0}),_.E("design:type",Boolean)],Sj.prototype,"authorIsOwner",void 0);_.x([_.g({value:!1,reflectToAttribute:!0}),_.E("design:type",Boolean)],Sj.prototype,"inCollapsedBanner",void 0);_.x([_.g({value:!1,reflectToAttribute:!0}),_.E("design:type",Boolean)],Sj.prototype,"inBanner",void 0);
_.x([_.g({value:_.y("live_chat_hide_avatars"),reflectToAttribute:!0}),_.E("design:type",Boolean)],Sj.prototype,"avatarHidden",void 0);_.x([_.g({computed:"computeAuthorNameColor(data)"}),_.E("design:type",String)],Sj.prototype,"authorNameColor",void 0);_.x([_.g(),_.E("design:type",_.wW)],Sj.prototype,"participantsManager",void 0);_.x([_.g({value:{size:"XS",type:"filled",style:"overlay",iconPosition:"icon-only"}}),_.E("design:type",Object)],Sj.prototype,"filledButtonOverrides",void 0);
_.x([_.T4("data"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],Sj.prototype,"dataChanged",null);_.x([_.T4("data.message"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],Sj.prototype,"updateMessage",null);Sj=_.x([_.FB({disableElementRegistration:!0,is:"yt-live-chat-text-message-renderer",noInjection:!0})],Sj);
_.C(Sj,"yt-live-chat-text-message-renderer",function(){if(aKQ===void 0){var S=document.createElement("template");_.h(S,'\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>');
S.content.insertBefore(_.t().content.cloneNode(!0),S.content.firstChild);var p=S.content,U=p.insertBefore;lKm===void 0&&(lKm=document.createElement("template"));var Y=lKm;U.call(p,Y.content.cloneNode(!0),S.content.firstChild);aKQ=S}S=aKQ;return S},{mode:_.y("live_chat_enable_sink_wrapper")?2:0});var pj=function(){var S=_.w.apply(this,arguments)||this;S.tonalButtonOverrides={type:"tonal",style:"overlay"};return S};
_.r(pj,_.w);
pj.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]]"}}}}}};
pj.prototype.shouldSupportInlineActionButtons=function(){return!0};
pj.prototype.shouldSupportWholeItemClick=function(){return!0};
_.$u.Object.defineProperties(pj.prototype,{hasInfoDialogButton:{configurable:!0,enumerable:!0,get:function(){return!!this.data.infoDialogButton}}});
_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],pj.prototype,"ytRendererBehavior",void 0);_.x([_.F(_.sj.YtLiveChatItemBehavior),_.E("design:type",_.eN)],pj.prototype,"ytLiveChatItemBehavior",void 0);_.x([_.F(_.qH.YtRendererstamperBehavior),_.E("design:type",Object)],pj.prototype,"ytRendererstamperBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],pj.prototype,"data",void 0);_.x([_.g(),_.E("design:type",_.wW)],pj.prototype,"participantsManager",void 0);
_.x([_.g(),_.E("design:type",Object)],pj.prototype,"tonalButtonOverrides",void 0);_.x([_.g({reflectToAttribute:!0}),_.e("data.infoDialogButton"),_.E("design:type",Object),_.E("design:paramtypes",[])],pj.prototype,"hasInfoDialogButton",null);pj=_.x([_.FB({disableElementRegistration:!0,is:"yt-live-chat-auto-mod-message-renderer",noInjection:!0})],pj);
_.C(pj,"yt-live-chat-auto-mod-message-renderer",function(){if(wqt===void 0){var S=document.createElement("template");_.h(S,'\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');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);var p=S.content,U=p.insertBefore;usE===void 0&&(usE=document.createElement("template"));var Y=usE;U.call(p,Y.content.cloneNode(!0),S.content.firstChild);wqt=S}S=wqt;return S},{mode:_.y("live_chat_enable_sink_wrapper")?2:0});var fKt;var CHI;var xXP;var Us=function(){return _.w.apply(this,arguments)||this};
_.r(Us,_.w);_.x([_.g(),_.E("design:type",Object)],Us.prototype,"data",void 0);Us=_.x([_.f({is:"ytd-factoid-renderer",disableElementRegistration:!0})],Us);
_.C(Us,"ytd-factoid-renderer",function(){if(xXP!==void 0)return xXP;var S=document.createElement("template");_.h(S,'\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');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);return xXP=S},{mode:1});var Yt=function(){return _.w.apply(this,arguments)||this};
_.r(Yt,_.w);Yt.prototype.configureRendererStamper=function(){return{"data.factoids":{id:"factoids",mapping:{factoidRenderer:"ytd-factoid-renderer"}}}};
_.x([_.g(),_.E("design:type",Object)],Yt.prototype,"data",void 0);_.x([_.F(_.qH.YtRendererstamperBehavior),_.E("design:type",Object)],Yt.prototype,"ytRendererstamperBehavior",void 0);Yt=_.x([_.FB({disableElementRegistration:!0,is:"yt-live-chat-channel-activity-reputation-renderer",noInjection:!0})],Yt);
_.C(Yt,"yt-live-chat-channel-activity-reputation-renderer",function(){if(CHI===void 0){var S=document.createElement("template");_.h(S,'\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');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);var p=S.content,U=p.insertBefore;fKt===void 0&&(fKt=document.createElement("template"));var Y=fKt;U.call(p,Y.content.cloneNode(!0),S.content.firstChild);CHI=S}S=CHI;return S},{mode:_.y("live_chat_enable_sink_wrapper")?2:0});var E6q;var mXj;var Lj=function(){return _.w.apply(this,arguments)||this};
_.r(Lj,_.w);Lj.prototype.ready=function(){var S=document.querySelector("yt-live-chat-app");S&&S.hasAttribute("dashboard-money-feed")&&this.hostElement.setAttribute("dashboard-money-feed","")};
_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],Lj.prototype,"ytRendererBehavior",void 0);_.x([_.g(),_.E("design:type",Boolean)],Lj.prototype,"menuFocused",void 0);_.x([_.g(),_.E("design:type",Object)],Lj.prototype,"data",void 0);_.x([_.F(_.sj.YtLiveChatItemBehavior),_.E("design:type",_.eN)],Lj.prototype,"ytLiveChatItemBehavior",void 0);Lj=_.x([_.FB({disableElementRegistration:!0,is:"yt-live-chat-donation-announcement-renderer",noInjection:!0})],Lj);
_.C(Lj,"yt-live-chat-donation-announcement-renderer",function(){if(mXj===void 0){var S=document.createElement("template");_.h(S,'\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>');
S.content.insertBefore(_.t().content.cloneNode(!0),S.content.firstChild);var p=S.content,U=p.insertBefore;E6q===void 0&&(E6q=document.createElement("template"));var Y=E6q;U.call(p,Y.content.cloneNode(!0),S.content.firstChild);mXj=S}S=mXj;return S},{mode:_.y("live_chat_enable_sink_wrapper")?2:0});var o6l;var v6E,$Xd=function(){if(v6E!==void 0)return v6E;var S=document.createElement("template");_.h(S,'\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>');
S.content.insertBefore(_.t().content.cloneNode(!0),S.content.firstChild);var p=S.content,U=p.insertBefore;o6l===void 0&&(o6l=document.createElement("template"));var Y=o6l;U.call(p,Y.content.cloneNode(!0),S.content.firstChild);return v6E=S};var Mb=function(){return _.w.apply(this,arguments)||this};
_.r(Mb,_.w);_.$u.Object.defineProperties(Mb,{template:{configurable:!0,enumerable:!0,get:function(){return $Xd()}}});
_.x([_.F(_.qH.YtRendererstamperBehavior),_.E("design:type",Object)],Mb.prototype,"ytRendererstamperBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],Mb.prototype,"data",void 0);Mb=_.x([_.FB({is:"yt-live-chat-empty-feed-view-model",disableElementRegistration:!0,noInjection:!0})],Mb);_.C(Mb,"yt-live-chat-empty-feed-view-model",function(){return $Xd()},{mode:_.y("live_chat_enable_sink_wrapper")?2:0});var iRw;var NQq;var Ik=function(){return _.w.apply(this,arguments)||this};
_.r(Ik,_.w);Ik.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"}}}}}};
_.$u.Object.defineProperties(Ik.prototype,{channelName:{configurable:!0,enumerable:!0,get:function(){var S,p;return{runs:[{text:(S=this.data)==null?void 0:(p=S.channelName)==null?void 0:p.content}]}}},
channelBadges:{configurable:!0,enumerable:!0,get:function(){var S=[],p;if((p=this.data)==null||!p.channelBadges)return S;var U;p=_.d((U=this.data)==null?void 0:U.channelBadges);for(U=p.next();!U.done;U=p.next()){U=_.b(U.value,tcq);var Y=void 0,L=void 0;if((Y=U)==null?0:(L=Y.badgeImage)==null?0:L.sources)Y=void 0,L={liveChatAuthorBadgeRenderer:{tooltip:U.tooltip,accessibility:{accessibilityData:{label:(Y=_.b(U.rendererContext,_.Hj))==null?void 0:Y.label}}}},U.badgeImage.sources[0].clientResource?L.liveChatAuthorBadgeRenderer.icon=
{iconType:U.badgeImage.sources[0].clientResource.imageName}:L.liveChatAuthorBadgeRenderer.customThumbnail={thumbnails:U.badgeImage.sources},S.push(L)}return S}}});
_.x([_.g(),_.E("design:type",Object)],Ik.prototype,"data",void 0);_.x([_.e("data.channelName"),_.E("design:type",Object),_.E("design:paramtypes",[])],Ik.prototype,"channelName",null);_.x([_.e("data.channelBadges"),_.E("design:type",Array),_.E("design:paramtypes",[])],Ik.prototype,"channelBadges",null);_.x([_.F(_.qH.YtRendererstamperBehavior),_.E("design:type",Object)],Ik.prototype,"ytRendererstamperBehavior",void 0);
Ik=_.x([_.FB({disableElementRegistration:!0,is:"yt-live-chat-identity-view-model",noInjection:!0})],Ik);
_.C(Ik,"yt-live-chat-identity-view-model",function(){if(NQq===void 0){var S=document.createElement("template");_.h(S,'\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>');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);var p=S.content,U=p.insertBefore;iRw===void 0&&(iRw=document.createElement("template"));var Y=iRw;U.call(p,Y.content.cloneNode(!0),S.content.firstChild);NQq=S}S=NQq;return S},{mode:_.y("live_chat_enable_sink_wrapper")?2:0});var BQl;var qYE;var APm;var t3P;var dr=function(){var S=_.w.apply(this,arguments)||this;S.hidden=!1;S.supportsInlineActionButtons=!0;return S};
_.r(dr,_.w);dr.prototype.ready=function(){var S;((S=document.querySelector("yt-live-chat-app"))==null?0:S.hasAttribute("dashboard-money-feed"))&&this.hostElement.setAttribute("dashboard-money-feed","")};
dr.prototype.dataChanged=function(S){var p=(0,_.L3)(_.tB(this.hostElement).querySelector("#detail-text"));p.textContent="";(S==null?0:S.detailText)&&p.appendChild(this.ytLiveChatItemBehavior.createDocumentFragment(S.detailText))};
_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],dr.prototype,"ytRendererBehavior",void 0);_.x([_.F(_.sj.YtLiveChatItemBehavior),_.E("design:type",_.eN)],dr.prototype,"ytLiveChatItemBehavior",void 0);_.x([_.F(_.qH.YtRendererstamperBehavior),_.E("design:type",Object)],dr.prototype,"ytRendererstamperBehavior",void 0);_.x([_.g({observer:"dataChanged"}),_.E("design:type",Object)],dr.prototype,"data",void 0);
_.x([_.g({computed:"truthy(isDeleted)",reflectToAttribute:!0}),_.E("design:type",Object)],dr.prototype,"hidden",void 0);dr=_.x([_.f({disableElementRegistration:!0,is:"yt-live-chat-legacy-paid-message-renderer"})],dr);
_.C(dr,"yt-live-chat-legacy-paid-message-renderer",function(){if(t3P===void 0){var S=document.createElement("template");_.h(S,'\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');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);var p=S.content,U=p.insertBefore;APm===void 0&&(APm=document.createElement("template"));var Y=APm;U.call(p,Y.content.cloneNode(!0),S.content.firstChild);t3P=S}S=t3P;return S},{mode:_.y("live_chat_enable_sink_wrapper")?2:0});var cPj;var SGd;var peQ={},Vc=function(){return _.HT.apply(this,arguments)||this};
_.r(Vc,_.HT);Vc.prototype.onLiveChatMembershipItemBehaviorClick=function(){this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
Vc.prototype.onLiveChatMembershipItemBehaviorClick=Vc.prototype.onLiveChatMembershipItemBehaviorClick;_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],Vc.prototype,"ytRendererBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],Vc.prototype,"data",void 0);_.x([_.Vd("click"),_.E("design:type",Function),_.E("design:paramtypes",[Event]),_.E("design:returntype")],Vc.prototype,"onLiveChatMembershipItemBehaviorClick",null);Vc=_.x([_.Dl()],Vc);
peQ.YtLiveChatMembershipItemBehavior=[Vc.prototype,_.c.YtRendererBehavior];var TW=function(){var S=_.w.apply(this,arguments)||this;S.supportsInlineActionButtons=!0;S.hasPrimaryHeaderText=!1;S.showOnlyHeader=!1;S.authorBadges=[];S.modern=_.y("web_button_rework_with_live");S.buttonOverrides={style:"overlay",type:"filled"};return S};
_.r(TW,_.w);_.M=TW.prototype;_.M.shouldSupportInlineActionButtons=function(){return!0};
_.M.configureRendererStamper=function(){return{"data.footerButton":{id:"footer-button",mapping:{buttonRenderer:{component:"yt-button-renderer",properties:{overrides:"[[buttonOverrides]]"}}}}}};
_.M.ready=function(){var S=document.querySelector("yt-live-chat-app");S&&S.hasAttribute("dashboard-money-feed")&&this.hostElement.setAttribute("dashboard-money-feed","")};
_.M.messageChanged=function(){var S=this.data.message,p=(0,_.L3)(_.tB(this.hostElement).querySelector("#message"));p.textContent="";S&&p.appendChild(this.ytLiveChatItemBehavior.createDocumentFragment(S))};
_.M.computeHasPrimaryHeaderText=function(S){return!(!S||!S.headerPrimaryText)};
_.M.computeShowOnlyHeader=function(S,p){return this.isMessageEmpty(S,p)};
_.M.computeAuthorBadges=function(S){return S.authorBadges||[]};
_.M.isMessageEmpty=function(S,p){return!S||S.empty?!0:!S.message&&!S.inputField&&!p};
_.M.isDeletedChanged=function(){this.ytLiveChatItemBehavior.isDeleted&&(this.set("data.authorName",null),this.set("data.authorPhoto",null),this.set("data.message",null))};
_.M.getInputElement=function(){return _.tB(this.hostElement).querySelector("yt-live-chat-text-input-field-renderer")};
_.M.inputFocus=function(){var S=this.getInputElement();S&&S.focus()};
_.M.inputInsertEmoji=function(S){var p=this.getInputElement();p&&p.insertEmoji(S)};
_.M.inputMessage=function(){var S=this.getInputElement();return S&&this.data.inputField?(S.completeEmojis(),_.so(S.liveChatRichMessageInput)):null};
_.M.onFooterButtonClick=function(){this.data.footerButton&&_.cv(this.hostElement,"yt-live-chat-clear-pinned-message")};
_.M.shouldSupportWholeItemClick=function(){return!0};
TW.prototype.isDeletedChanged=TW.prototype.isDeletedChanged;TW.prototype.messageChanged=TW.prototype.messageChanged;_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],TW.prototype,"ytRendererBehavior",void 0);_.x([_.F(_.sj.YtLiveChatItemBehavior),_.E("design:type",_.eN)],TW.prototype,"ytLiveChatItemBehavior",void 0);_.x([_.F(peQ.YtLiveChatMembershipItemBehavior),_.E("design:type",Object)],TW.prototype,"ytLiveChatMembershipItemBehavior",void 0);
_.x([_.F(_.qH.YtRendererstamperBehavior),_.E("design:type",Object)],TW.prototype,"ytRendererstamperBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],TW.prototype,"data",void 0);_.x([_.g({computed:"computeHasPrimaryHeaderText(data)",reflectToAttribute:!0}),_.E("design:type",Object)],TW.prototype,"hasPrimaryHeaderText",void 0);_.x([_.g({computed:"computeShowOnlyHeader(data, isDeleted)",reflectToAttribute:!0}),_.E("design:type",Object)],TW.prototype,"showOnlyHeader",void 0);
_.x([_.g({computed:"computeAuthorBadges(data)"}),_.E("design:type",Array)],TW.prototype,"authorBadges",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],TW.prototype,"modern",void 0);_.x([_.T4("data.message"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],TW.prototype,"messageChanged",null);_.x([_.T4("isDeleted"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],TW.prototype,"isDeletedChanged",null);
TW=_.x([_.FB({disableElementRegistration:!0,is:"yt-live-chat-membership-item-renderer",noInjection:!0})],TW);
_.C(TW,"yt-live-chat-membership-item-renderer",function(){if(SGd===void 0){var S=document.createElement("template");_.h(S,'\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');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);var p=S.content,U=p.insertBefore;cPj===void 0&&(cPj=document.createElement("template"));var Y=cPj;U.call(p,Y.content.cloneNode(!0),S.content.firstChild);SGd=S}S=SGd;return S},{mode:_.y("live_chat_enable_sink_wrapper")?2:0});var U1t;var YGm;var WL=function(){return _.w.apply(this,arguments)||this};
_.r(WL,_.w);WL.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:"yt-button-renderer"}}}};
_.x([_.F(_.qH.YtRendererstamperBehavior),_.E("design:type",Object)],WL.prototype,"ytRendererstamperBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],WL.prototype,"data",void 0);WL=_.x([_.FB({disableElementRegistration:!0,is:"yt-live-chat-mode-change-message-renderer",noInjection:!0})],WL);
_.C(WL,"yt-live-chat-mode-change-message-renderer",function(){if(YGm===void 0){var S=document.createElement("template");_.h(S,'\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');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);var p=S.content,U=p.insertBefore;U1t===void 0&&(U1t=document.createElement("template"));var Y=U1t;U.call(p,Y.content.cloneNode(!0),S.content.firstChild);YGm=S}S=YGm;return S},{mode:_.y("live_chat_enable_sink_wrapper")?2:0});var Lrd;var MAe;var Os=function(){return _.w.apply(this,arguments)||this};
_.r(Os,_.w);_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],Os.prototype,"ytRendererBehavior",void 0);_.x([_.F(_.sj.YtLiveChatItemBehavior),_.E("design:type",_.eN)],Os.prototype,"ytLiveChatItemBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],Os.prototype,"data",void 0);Os=_.x([_.FB({disableElementRegistration:!0,is:"yt-live-chat-moderation-message-renderer"})],Os);
_.C(Os,"yt-live-chat-moderation-message-renderer",function(){if(MAe===void 0){var S=document.createElement("template");_.h(S,'\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');
S.content.insertBefore(_.t().content.cloneNode(!0),S.content.firstChild);var p=S.content,U=p.insertBefore;Lrd===void 0&&(Lrd=document.createElement("template"));var Y=Lrd;U.call(p,Y.content.cloneNode(!0),S.content.firstChild);MAe=S}S=MAe;return S},{mode:_.y("live_chat_enable_sink_wrapper")?2:0});var IYq;var d1m;var kt=function(){var S=_.w.apply(this,arguments)||this;S.modern=_.y("web_button_rework");return S};
_.r(kt,_.w);kt.prototype.onClick=function(){var S;if((S=this.data)!=null&&S.onClickCommand){var p;_.VO.instance.resolveCommand((p=this.data)==null?void 0:p.onClickCommand)}};
_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],kt.prototype,"modern",void 0);_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],kt.prototype,"ytRendererBehavior",void 0);_.x([_.F(_.Zq),_.E("design:type",Object)],kt.prototype,"ytLiveChatReduxBehavior",void 0);_.x([_.F(_.sj.YtLiveChatItemBehavior),_.E("design:type",_.eN)],kt.prototype,"ytLiveChatItemBehavior",void 0);_.x([_.F(_.qH.YtRendererstamperBehavior),_.E("design:type",Object)],kt.prototype,"ytRendererstamperBehavior",void 0);
_.x([_.g(),_.E("design:type",Object)],kt.prototype,"data",void 0);kt=_.x([_.FB({disableElementRegistration:!0,is:"yt-live-chat-offer-click-count-message-renderer",noInjection:!0})],kt);
_.C(kt,"yt-live-chat-offer-click-count-message-renderer",function(){if(d1m===void 0){var S=document.createElement("template");_.h(S,'\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>');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);var p=S.content,U=p.insertBefore;IYq===void 0&&(IYq=document.createElement("template"));var Y=IYq;U.call(p,Y.content.cloneNode(!0),S.content.firstChild);d1m=S}S=d1m;return S},{mode:_.y("live_chat_enable_sink_wrapper")?2:0});var VAE;var HL=function(){return _.w.apply(this,arguments)||this};
_.r(HL,_.w);_.x([_.g(),_.E("design:type",Object)],HL.prototype,"data",void 0);HL=_.x([_.FB({disableElementRegistration:!0,is:"yt-live-chat-placeholder-item-renderer",noInjection:!0})],HL);
_.C(HL,"yt-live-chat-placeholder-item-renderer",function(){if(VAE===void 0){var S=document.createElement("template");_.h(S,"\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");S.content.insertBefore(_.t().content.cloneNode(!0),S.content.firstChild);VAE=S}S=VAE;return S},{mode:_.y("live_chat_enable_sink_wrapper")?2:0});var Twt;var WrI;var ONQ=new CK(7),Dh=function(){var S=_.w.apply(this,arguments)||this;S.data={};return S};
_.r(Dh,_.w);Dh.prototype.dataChanged=function(){var S;((S=this.data)==null?0:S.class)&&_.U2(this.hostElement,this.data.class,!0);var p;((p=this.oldData)==null?0:p.class)&&_.U2(this.hostElement,this.oldData.class,!1);this.oldData=this.data};
Dh.prototype.computeTimestampString=function(S){return ONQ.format(new Date(S/1E3))};
Dh.prototype.dataChanged=Dh.prototype.dataChanged;_.x([_.g(),_.E("design:type",Object)],Dh.prototype,"data",void 0);_.x([_.g({computed:"computeTimestampString(data.timestampUsec)"}),_.E("design:type",String)],Dh.prototype,"timestampString",void 0);_.x([_.T4("data"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],Dh.prototype,"dataChanged",null);Dh=_.x([_.FB({disableElementRegistration:!0,is:"yt-live-chat-server-error-message",noInjection:!0})],Dh);
_.C(Dh,"yt-live-chat-server-error-message",function(){if(WrI===void 0){var S=document.createElement("template");_.h(S,'\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');
S.content.insertBefore(_.t().content.cloneNode(!0),S.content.firstChild);var p=S.content,U=p.insertBefore;Twt===void 0&&(Twt=document.createElement("template"));var Y=Twt;U.call(p,Y.content.cloneNode(!0),S.content.firstChild);WrI=S}S=WrI;return S},{mode:_.y("live_chat_enable_sink_wrapper")?2:0});var knm;var HNw;var zW=function(){var S=_.w.apply(this,arguments)||this;S.defaultToFilledIcon=!1;return S};
_.r(zW,_.w);zW.prototype.computeHasPrimaryColorIcon=function(S){return S==="SPARK"||S==="SPONSORSHIP_STAR"};
zW.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{style:"max-width: 100%"}}}}}};
_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],zW.prototype,"ytRendererBehavior",void 0);_.x([_.F(_.sj.YtLiveChatItemBehavior),_.E("design:type",_.eN)],zW.prototype,"ytLiveChatItemBehavior",void 0);_.x([_.F(_.qH.YtRendererstamperBehavior),_.E("design:type",Object)],zW.prototype,"ytRendererstamperBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],zW.prototype,"defaultToFilledIcon",void 0);_.x([_.g(),_.E("design:type",Object)],zW.prototype,"data",void 0);
_.x([_.g({value:!1,computed:"computeHasPrimaryColorIcon(data.icon.iconType)",reflectToAttribute:!0}),_.E("design:type",Boolean)],zW.prototype,"hasPrimaryColorIcon",void 0);zW=_.x([_.FB({disableElementRegistration:!0,is:"yt-live-chat-viewer-engagement-message-renderer",noInjection:!0})],zW);
_.C(zW,"yt-live-chat-viewer-engagement-message-renderer",function(){if(HNw===void 0){var S=document.createElement("template");_.h(S,'\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>');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);var p=S.content,U=p.insertBefore;knm===void 0&&(knm=document.createElement("template"));var Y=knm;U.call(p,Y.content.cloneNode(!0),S.content.firstChild);HNw=S}S=HNw;return S},{mode:_.y("live_chat_enable_sink_wrapper")?2:0});var D1c;var Qc=function(){var S=_.w.apply(this,arguments)||this;S.modernUpdate=!1;S.buttonStyle="overlay";S.buttonType="filled";return S};
_.r(Qc,_.w);Qc.prototype.computeTooltipPosition=function(){return this.modernUpdate?"left":"bottom"};
Qc.prototype.computeButtonOverride=function(){if(this.modernUpdate)return{iconPosition:"icon-only",style:this.buttonStyle,type:this.buttonType,size:"M"}};
_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],Qc.prototype,"ytRendererBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],Qc.prototype,"data",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],Qc.prototype,"modernUpdate",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",String)],Qc.prototype,"buttonStyle",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",String)],Qc.prototype,"buttonType",void 0);
Qc=_.x([_.f({is:"ytd-ad-hover-text-button-renderer",disableElementRegistration:!0})],Qc);
_.C(Qc,"ytd-ad-hover-text-button-renderer",function(){if(D1c!==void 0)return D1c;var S=document.createElement("template");_.h(S,'\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');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);return D1c=S},{mode:1});var z5m;var nj=function(){var S=_.w.apply(this,arguments)||this;S.buttonOverrides={size:"XS"};S.modern=_.y("web_button_rework");return S};
_.r(nj,_.w);nj.prototype.onHelpTap=function(S){this.data&&this.data.informationDialog&&(_.cv(this.hostElement,"yt-navigate",{endpoint:{liveChatDialogEndpoint:{content:this.data.informationDialog}}}),S.preventDefault(),S.stopPropagation())};
_.x([_.g(),_.E("design:type",Object)],nj.prototype,"buttonOverrides",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],nj.prototype,"modern",void 0);_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],nj.prototype,"ytRendererBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],nj.prototype,"data",void 0);nj=_.x([_.f({disableElementRegistration:!0,is:"ytd-live-chat-purchased-product-message-renderer"})],nj);
_.C(nj,"ytd-live-chat-purchased-product-message-renderer",function(){if(z5m!==void 0)return z5m;var S=document.createElement("template");_.h(S,'\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');
S.content.insertBefore(_.t().content.cloneNode(!0),S.content.firstChild);return z5m=S},{mode:1});var QGw;var nTl;var J6=function(){var S=_.w.apply(this,arguments)||this;S.isContainerDeleted=!1;return S};
_.r(J6,_.w);J6.prototype.onContextMenuClick=function(S){this.ytLiveChatItemBehavior.showContextMenu(S)};
J6.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))};
J6.prototype.isContainerDeletedChanged=J6.prototype.isContainerDeletedChanged;_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],J6.prototype,"ytRendererBehavior",void 0);_.x([_.F(_.sj.YtLiveChatItemBehavior),_.E("design:type",_.eN)],J6.prototype,"ytLiveChatItemBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],J6.prototype,"data",void 0);_.x([_.g(),_.E("design:type",Object)],J6.prototype,"isContainerDeleted",void 0);
_.x([_.g(),_.E("design:type",String)],J6.prototype,"deletedStateMessage",void 0);_.x([_.T4("isContainerDeleted"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],J6.prototype,"isContainerDeletedChanged",null);J6=_.x([_.f({disableElementRegistration:!0,is:"ytd-sponsorships-live-chat-header-renderer"})],J6);
_.C(J6,"ytd-sponsorships-live-chat-header-renderer",function(){if(nTl!==void 0)return nTl;var S=document.createElement("template");_.h(S,'\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');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);return nTl=S},{mode:1});var yc=function(){var S=_.w.apply(this,arguments)||this;S.modern=_.y("web_button_rework_with_live");S.buttonOverrides={style:"overlay",type:"filled"};return S};
_.r(yc,_.w);yc.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]]"}}}}}};
yc.prototype.onCtaButtonClick=function(){var S,p=_.b((S=this.data)==null?void 0:S.optInPrompt,_.XT);if(S=this.maybeGetButtonCommand(p)){var U;(U=_.HX())==null||U.clickCommand(S)}};
yc.prototype.maybeGetButtonCommand=function(S){return!S||!S.command||_.b(S.command,FwQ)===void 0&&_.b(S.command,RKl)===void 0?null:S.command};
yc.prototype.shouldHideOptinPrompt=function(S,p){return!S||p};
_.x([_.F(_.qH.YtRendererstamperBehavior),_.E("design:type",Object)],yc.prototype,"ytRendererstamperBehavior",void 0);_.x([_.F(_.sj.YtLiveChatItemBehavior),_.E("design:type",_.eN)],yc.prototype,"ytLiveChatItemBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],yc.prototype,"data",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],yc.prototype,"modern",void 0);yc=_.x([_.f({disableElementRegistration:!0,is:"ytd-sponsorships-live-chat-gift-purchase-announcement-renderer"})],yc);
_.C(yc,"ytd-sponsorships-live-chat-gift-purchase-announcement-renderer",function(){if(QGw!==void 0)return QGw;var S=document.createElement("template");_.h(S,'\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');
S.content.insertBefore(_.t().content.cloneNode(!0),S.content.firstChild);return QGw=S},{mode:1});var JJd;var Kj=function(){return _.w.apply(this,arguments)||this};
_.r(Kj,_.w);Kj.prototype.onContextMenuClick=function(S){this.ytLiveChatItemBehavior.showContextMenu(S)};
Kj.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))};
Kj.prototype.isDeletedChanged=Kj.prototype.isDeletedChanged;_.x([_.F(_.sj.YtLiveChatItemBehavior),_.E("design:type",_.eN)],Kj.prototype,"ytLiveChatItemBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],Kj.prototype,"data",void 0);_.x([_.T4("isDeleted"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],Kj.prototype,"isDeletedChanged",null);Kj=_.x([_.f({disableElementRegistration:!0,is:"ytd-sponsorships-live-chat-gift-redemption-announcement-renderer"})],Kj);
_.C(Kj,"ytd-sponsorships-live-chat-gift-redemption-announcement-renderer",function(){if(JJd!==void 0)return JJd;var S=document.createElement("template");_.h(S,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sponsorships-live-chat-gift-redemption-announcement-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<template is="dom-if" if="[[data.authorPhoto]]" restamp="" class="style-scope ytd-sponsorships-live-chat-gift-redemption-announcement-renderer">\n  <yt-img-shadow id="author-photo" height="24" thumbnail="[[data.authorPhoto]]" width="24" class="style-scope ytd-sponsorships-live-chat-gift-redemption-announcement-renderer"></yt-img-shadow>\n</template>\n<template is="dom-if" if="[[!data.authorPhoto]]" class="style-scope ytd-sponsorships-live-chat-gift-redemption-announcement-renderer">\n  <yt-icon id="author-photo" class="no-photo style-scope ytd-sponsorships-live-chat-gift-redemption-announcement-renderer" icon="yt-sys-icons:account_circle"></yt-icon>\n</template>\n<div id="content" class="style-scope ytd-sponsorships-live-chat-gift-redemption-announcement-renderer">\n  <span id="timestamp" class="style-scope ytd-sponsorships-live-chat-gift-redemption-announcement-renderer">\n    [[timestampString]]\n  \n  </span><template is="dom-if" if="[[data.authorName]]" restamp="" class="style-scope ytd-sponsorships-live-chat-gift-redemption-announcement-renderer"><yt-live-chat-author-chip author-badges="[[data.authorBadges]]" author-name="[[data.authorName]]" class="style-scope ytd-sponsorships-live-chat-gift-redemption-announcement-renderer">\n    </yt-live-chat-author-chip>\n  </template>\n  <yt-formatted-string id="message" hidden$="[[isDeleted]]" text="[[data.message]]" class="style-scope ytd-sponsorships-live-chat-gift-redemption-announcement-renderer"></yt-formatted-string>\n  <yt-icon id="gift-icon" default-to-filled="true" hidden$="[[isDeleted]]" icon="gift" class="style-scope ytd-sponsorships-live-chat-gift-redemption-announcement-renderer"></yt-icon>\n  <div id="deleted-message" hidden$="[[!isDeleted]]" class="style-scope ytd-sponsorships-live-chat-gift-redemption-announcement-renderer">\n    [[getSimpleString(data.deletedStateMessage)]]\n  </div>\n</div>\n<div id="menu" hidden$="[[!data.contextMenuEndpoint]]" class="style-scope ytd-sponsorships-live-chat-gift-redemption-announcement-renderer">\n  <yt-icon-button id="menu-button" label="[[data.contextMenuAccessibility.accessibilityData.label]]" on-click="onContextMenuClick" class="style-scope ytd-sponsorships-live-chat-gift-redemption-announcement-renderer">\n    <yt-icon icon="more_vert" class="style-scope ytd-sponsorships-live-chat-gift-redemption-announcement-renderer"></yt-icon>\n  </yt-icon-button>\n</div>\n');
S.content.insertBefore(_.t().content.cloneNode(!0),S.content.firstChild);return JJd=S},{mode:1});var bc=function(){var S=_.w.apply(this,arguments)||this;S.actionMap={"yt-mark-chat-item-as-deleted-action":"handleLiveChatAction","yt-live-chat-actions":"handleLiveChatActions","yt-remove-chat-item-action":"handleLiveChatAction"};return S};
_.r(bc,_.w);_.M=bc.prototype;
_.M.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"}}}};
_.M.handleLiveChatAction=function(S){_.b(S,mAE)?this.handleMarkChatItemAsDeletedAction(_.b(S,mAE)):_.b(S,EZH)&&this.handleRemoveChatItemAction(_.b(S,EZH))};
_.M.handleLiveChatActions=function(S){S.forEach(this.handleLiveChatAction,this)};
_.M.handleMarkChatItemAsDeletedAction=function(S){var p=this,U;((U=this.data)==null?0:U.items)&&this.data.items.forEach(function(Y,L){var I=Object.keys(Y)[0];Object.values(Y)[0].id===S.targetItemId&&p.markAsDeleted("data.items",L,I,S.deletedStateMessage,S.showOriginalContentMessage)})};
_.M.handleRemoveChatItemAction=function(S){var p=this,U;((U=this.data)==null?0:U.items)&&this.data.items.forEach(function(Y,L){Object.values(Y)[0].id===S.targetItemId&&p.splice("data.items",L,1)})};
_.M.markAsDeleted=function(S,p,U,Y,L){S=[S,p,U].join(".");this.set(S+".deletedStateMessage",Y);this.set(S+".showOriginalContentMessage",L)};
_.x([_.g(),_.E("design:type",Object)],bc.prototype,"data",void 0);_.x([_.F(_.qH.YtRendererstamperBehavior),_.E("design:type",Object)],bc.prototype,"ytRendererstamperBehavior",void 0);_.x([_.F(_.Aj.YtActionHandlerBehavior),_.E("design:type",Object)],bc.prototype,"ytActionHandlerBehavior",void 0);bc=_.x([_.FB({disableElementRegistration:!0,is:"yt-live-chat-item-display-list-renderer",noInjection:!0})],bc);
_.C(bc,"yt-live-chat-item-display-list-renderer",function(){if(qYE===void 0){var S=document.createElement("template");_.h(S,'\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>');
S.content.insertBefore(_.t().content.cloneNode(!0),S.content.firstChild);var p=S.content,U=p.insertBefore;BQl===void 0&&(BQl=document.createElement("template"));var Y=BQl;U.call(p,Y.content.cloneNode(!0),S.content.firstChild);qYE=S}S=qYE;return S},{mode:_.y("live_chat_enable_sink_wrapper")?2:0});var yJE;var Krj,bNQ=function(){if(Krj!==void 0)return Krj;var S=document.createElement("template");_.h(S,'\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');
S.content.insertBefore(_.t().content.cloneNode(!0),S.content.firstChild);var p=S.content,U=p.insertBefore;yJE===void 0&&(yJE=document.createElement("template"));var Y=yJE;U.call(p,Y.content.cloneNode(!0),S.content.firstChild);return Krj=S};var jj=function(){var S=_.w.apply(this,arguments)||this;S.isHeader=!1;return S};
_.r(jj,_.w);jj.prototype.configureRendererStamper=function(){return{"data.item":{id:"content",mapping:{liveChatPaidMessageRenderer:{component:"yt-live-chat-paid-message-renderer",params:{noPadding:"[[isHeader]]"}}}}}};
_.$u.Object.defineProperties(jj,{template:{configurable:!0,enumerable:!0,get:function(){return bNQ()}}});
_.x([_.F(_.qH.YtRendererstamperBehavior),_.E("design:type",Object)],jj.prototype,"ytRendererstamperBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],jj.prototype,"data",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],jj.prototype,"isHeader",void 0);jj=_.x([_.FB({is:"yt-live-chat-item-display-renderer",disableElementRegistration:!0,noInjection:!0})],jj);_.C(jj,"yt-live-chat-item-display-renderer",function(){return bNQ()},{mode:_.y("live_chat_enable_sink_wrapper")?2:0});var jGw,rJj,XeH,Fre;
jGw={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}};rJj={home:"eohps",search:"eosps",watch:"eowps"};_.Gnl=["watch","search","home"];
_.rr=function(){this.JSC$12177_isInitialized_=!1;this.isInitialPass_=!0;this.isSeenDuringInitialPass_={};this.JSC$12177_queue_=[];this.pendingPages_=[];this.pagePreparerJobId_=this.fragmentJobId_=0;this.DEFAULT_DELAY_=_.g7("PRECONSTRUCTION_DELAY",0);this.signals_=_.Pt();this.targetPage_=""};
_.rr.prototype.init=function(S,p){S=S===void 0?"":S;p=p===void 0?null:p;if(this.JSC$12177_isInitialized_)this.abort();else if(this.JSC$12177_isInitialized_=!0,S&&_.h5H(this,S),p){var U=_.Zr(this.signals_,"pcl")?0:10,Y=function(){for(var L=0,I;I=_.Gnl[L++];)I!=S&&I!=p&&this.pendingPages_.push(I);_.R5H(this)}.bind(this);
this.signals_.parkOrScheduleJob(Y,U,"pcl")}};
_.rr.prototype.abort=function(){this.fragmentJobId_&&(_.PA.cancelJob(this.fragmentJobId_),this.fragmentJobId_=0);Fre(this)};
_.h5H=function(S,p){S.JSC$12177_isInitialized_&&!S.targetPage_&&(S.targetPage_=p,XeH(S,p),S.isInitialPass_=!1,XeH(S,p),S.signals_.processSignal(rJj[S.targetPage_]),Fre(S),_.R5H(S))};
_.R5H=function(S){S.pendingPages_.length&&!S.pagePreparerJobId_&&(S.pagePreparerJobId_=_.bQ(_.PA,function(){this.pagePreparerJobId_=0;this.pendingPages_.length&&!this.targetPage_&&_.h5H(this,this.pendingPages_.shift())}.bind(S),S.DEFAULT_DELAY_))};
XeH=function(S,p){if(p=jGw[p])for(var U in p){var Y=!1,L=U;U.charAt(0)=="~"&&(Y=!0,L=U.substring(1));var I=p[U];I=typeof I=="object"?I:{count:I};p[U]=I;I.componentName=L;I.count>0&&(S.isInitialPass_?Y||S.isSeenDuringInitialPass_[L]||(S.JSC$12177_queue_.push({componentName:L,count:1,signals:I.signals}),S.isSeenDuringInitialPass_[L]=!0,I.count--):S.JSC$12177_queue_.push(I))}};
Fre=function(S){S.JSC$12177_queue_.length=0;S.targetPage_="";S.isInitialPass_=!0;S.signals_.processSignal("eop")};
_.rr.getInstance=function(){return _.p4(_.rr)};var Pfm=function(){this.signals=_.Pt();this.init()};
Pfm.prototype.startPreconstruction=function(){_.rr.getInstance().init(_.ub("IS_HOMEPAGE_COLD")?"home":null,"n/a")};
Pfm.prototype.init=function(){ZNQ(this);window.Polymer&&TEm&&Sjw();this.signals.parkOrScheduleJob(this.startPreconstruction,10,"eor");a:{var S=_.UX.ytcsi;if(S&&S.gt&&(S=S.gt())&&S.tick&&(S.tick.aft>0||S.tick.pbs>0)&&(_.ub("IS_HOMEPAGE_COLD")||_.ub("IS_RESULTS_PAGE_COLD")||_.ub("IS_WATCH_PAGE_COLD"))){sGq(this);break a}D9X(qBe,this.onNotifications,this)}};
var ZNQ=function(S){var p=function(){S.signals.processSignal("dl")};
document.readyState==="complete"?(_.fU(Error("rh"),"WARNING"),p()):_.oME(window,"load",p)};
Pfm.prototype.onNotifications=function(S){S.timer||(_.ub("IS_HOMEPAGE_COLD")||_.ub("IS_RESULTS_PAGE_COLD")||_.ub("IS_WATCH_PAGE_COLD"))&&sGq(this)};
var sGq=function(S){S.signals.parkOrScheduleJob(function(){S.signals.processSignal("eocs")},10,"eor")};
new Pfm;var GW,h6=function(){return _.HT.apply(this,arguments)||this};
_.r(h6,_.HT);_.M=h6.prototype;_.M.enableActiveViewMeasurement=function(S){if(this.isActiveViewEnabled(S)){var p=this.getUrlPrefixesFromCommand(S.viewableCommands);S=this.getUrlPrefixesFromCommand(S.endOfSessionCommands);if(!GW){var U=_.pA("custom_active_view_tos_timeout_ms");GW=U>0&&U!==36E5?new GZe(this.getVersion(),U):new GZe(this.getVersion())}RQw(GW,this.hostElement);FyE(GW,this.hostElement,p,S)}};
_.M.stopActiveViewMeasurement=function(){GW&&RQw(GW,this.hostElement)};
_.M.isActiveViewEnabled=function(S){return!!S&&(this.hasAtLeastOneUrl(S.viewableCommands)||this.hasAtLeastOneUrl(S.endOfSessionCommands))};
_.M.hasAtLeastOneUrl=function(S){return!!S&&S.length>0&&S[0].loggingUrls!=null&&S[0].loggingUrls.length>0};
_.M.getVersion=function(){var S=_.g7("INNERTUBE_CONTEXT_CLIENT_VERSION","").match(/^\d+\.(\d{8})/);return(S==null?void 0:S.length)===2?S[1]:null};
_.M.getUrlPrefixesFromCommand=function(S){if(!S)return[];var p=[];S=_.d(S);for(var U=S.next();!U.done;U=S.next())if(U=U.value,U.loggingUrls){U=_.d(U.loggingUrls);for(var Y=U.next();!Y.done;Y=U.next())Y=Y.value,Y.baseUrl&&p.push(Y.baseUrl)}return p};
h6=_.x([_.Dl()],h6);var Rk=[h6.prototype];var Fh=function(){return _.HT.apply(this,arguments)||this};
_.r(Fh,_.HT);_.$u.Object.defineProperties(Fh.prototype,{store:{configurable:!0,enumerable:!0,get:function(){return _.y("enable_entity_store_from_dependency_injection")?_.xk():_.vJ()}}});
Fh=_.x([_.Dl()],Fh);_.Xh=[bj.prototype,Fh.prototype];var e5P=["ytd-rich-shelf-renderer"],PL=function(){var S=_.HT.apply(this,arguments)||this;S._noAccessors=!0;S.DISMISSED_CONTENT_KEYSPACE="DISMISSED_CONTENT_KEYSPACE:";S.followUpDialogPromise=null;S.followUpDialogPromiseResolve=null;S.followUpDialogPromiseReject=null;return S};
_.r(PL,_.HT);_.M=PL.prototype;_.M.dismissibleItemIsDismissedChanged_=function(S){_.y("kevlar_fluid_dismiss")&&(S?_.cv(this.hostElement,"yt-dismissible-item-dismissed"):_.cv(this.hostElement,"yt-dismissible-item-undismissed"))};
_.M.dismissibleItemDataChanged_=function(){this.dismissedContentId=void 0;this.dismissibleItemReset_()};
_.M.dismissibleItemReset_=function(){var S=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 _.O9(function(p,U){S.followUpDialogPromiseResolve=p;S.followUpDialogPromiseReject=U});
_.cv(this.hostElement,"yt-enable-lockup-interaction")};
_.M.dismissibleItemOnYtServiceRequestSent_=function(S,p){p.actions&&this.dismissibleItemProcessActions(p.actions,S)};
_.M.dismissibleItemOnRequestSent=function(S){if(_.y("web_button_rework"))for(var p=_.d(S.detail),U=p.next();!U.done;U=p.next()){var Y=void 0;(U=(Y=_.b(U.value,_.TI))==null?void 0:Y.actions)&&this.dismissibleItemProcessActions(U,S)}};
_.M.dismissibleItemOnCommandSent=function(S,p){p&&this.dismissibleItemProcessActions(p,S)};
_.M.setAndGetDismissedContentId=function(S){return this.dismissedContentId=this.DISMISSED_CONTENT_KEYSPACE+S};
_.M.replayDismissAction=function(S){this.dismissibleItemProcessActions([S])};
_.M.dismissibleItemProcessActions=function(S,p){for(var U=0;U<S.length;U++){var Y=S[U],L=void 0;((L=_.b(Y,_.I2))==null?0:L.commands)&&this.dismissibleItemProcessActions(_.b(Y,_.I2).commands,p);if(_.b(Y,_.z1)){if(L=_.b(Y,_.z1),!L.replaceParentSection||e5P.includes(this.hostElement.nodeName.toLowerCase()))_.y("web_see_fewer_shorts_reactive_dismissal")&&L.groupDismissal&&umr(this,L.groupDismissal,!0),this.dismissibleItemHandleReplaceEnclosingAction_(L),this.dismissedContentId&&this.ytdReduxBehavior.dispatch(_.WG("commandEntity",
this.dismissedContentId,{key:this.dismissedContentId,command:Y})),Y=void 0,(Y=p)==null||Y.stopPropagation()}else if(_.b(Y,tJE))this.dismissibleItemHandleHideEnclosingAction_(),Y=void 0,(Y=p)==null||Y.stopPropagation();else if(_.b(Y,W5d))_.y("web_see_fewer_shorts_reactive_dismissal")&&(Y=_.b(Y,W5d),L=void 0,((L=Y)==null?0:L.targetGroupId)&&umr(this,{targetGroupId:Y.targetGroupId},!1)),this.dismissibleItemHandleUndoFeedbackAction_(),this.dismissedContentId&&this.ytdReduxBehavior.dispatch(_.WG("commandEntity",
this.dismissedContentId,{key:this.dismissedContentId,command:void 0})),Y=void 0,(Y=p)==null||Y.stopPropagation();else if(_.b(Y,_.TI))(Y=_.b(Y,_.TI).actions)&&_.Lp(this.hostElement,Y,this.hostElement),Y=void 0,(Y=p)==null||Y.stopPropagation();else{var I=L=void 0;((L=_.b(Y,_.aV))==null?void 0:L.signal)!=="TELL_US_WHY"||((I=_.b(Y,_.aV))==null?0:I.targetId)&&_.y("web_enable_feedback_endpoint_resolver_batch_2")||(this.dismissibleItemHandleTellUsWhySignalAction_(),Y=void 0,(Y=p)==null||Y.stopPropagation())}}};
_.M.dismissibleItemOnYtServiceRequestCompleted_=function(S,p){var U=this.get("feedbackResponses.0.followUpDialog",p.data);U?this.followUpDialogPromiseResolve(U):p.actions&&!this.dismissedRenderer&&this.dismissibleItemProcessActions(p.actions,S)};
_.M.dismissibleItemHandleReplaceEnclosingAction_=function(S){this.dismissedRenderer=S.item;this.isDismissed=!0;var p=null;(p=_.tB(this.hostElement).querySelector("#dismissed"))&&_.oH(this,function(){_.Nz(p)});
_.cv(this.hostElement,"yt-disable-lockup-interaction",this.dismissedRenderer)};
_.M.dismissibleItemHandleHideEnclosingAction_=function(){this.isHideEnclosingAction=this.isDismissed=!0};
_.M.dismissibleItemHandleUndoFeedbackAction_=function(){_.cv(this.hostElement,"yt-dismissible-item-undo-feedback");this.dismissibleItemReset_()};
_.M.dismissibleItemHandleTellUsWhySignalAction_=function(){var S=this;this.followUpDialogPromise.then(function(p){S.ytdOpenPopupBehavior.openPopup({openPopupAction:{popupType:"DIALOG",popup:p}})})};
PL.prototype.dismissibleItemOnYtServiceRequestCompleted_=PL.prototype.dismissibleItemOnYtServiceRequestCompleted_;PL.prototype.dismissibleItemOnCommandSent=PL.prototype.dismissibleItemOnCommandSent;PL.prototype.dismissibleItemOnRequestSent=PL.prototype.dismissibleItemOnRequestSent;PL.prototype.dismissibleItemOnYtServiceRequestSent_=PL.prototype.dismissibleItemOnYtServiceRequestSent_;PL.prototype.dismissibleItemDataChanged_=PL.prototype.dismissibleItemDataChanged_;
PL.prototype.dismissibleItemIsDismissedChanged_=PL.prototype.dismissibleItemIsDismissedChanged_;_.x([_.F(_.xK),_.E("design:type",Object)],PL.prototype,"ytdOpenPopupBehavior",void 0);_.x([_.F(_.Xh),_.E("design:type",Object)],PL.prototype,"ytdReduxBehavior",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Boolean)],PL.prototype,"isDismissed",void 0);_.x([_.g(),_.E("design:type",Object)],PL.prototype,"dismissedRenderer",void 0);
_.x([_.T4("isDismissed"),_.E("design:type",Function),_.E("design:paramtypes",[Boolean]),_.E("design:returntype")],PL.prototype,"dismissibleItemIsDismissedChanged_",null);_.x([_.T4("data"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],PL.prototype,"dismissibleItemDataChanged_",null);
_.x([_.Vd("yt-service-request-sent"),_.E("design:type",Function),_.E("design:paramtypes",[CustomEvent,_.eM]),_.E("design:returntype")],PL.prototype,"dismissibleItemOnYtServiceRequestSent_",null);_.x([_.Vd("yt-service-request-sent-button-renderer"),_.E("design:type",Function),_.E("design:paramtypes",[CustomEvent]),_.E("design:returntype")],PL.prototype,"dismissibleItemOnRequestSent",null);
_.x([_.Vd("yt-dismissible-item-action"),_.E("design:type",Function),_.E("design:paramtypes",[CustomEvent,Array]),_.E("design:returntype")],PL.prototype,"dismissibleItemOnCommandSent",null);_.x([_.Vd("yt-service-request-completed"),_.E("design:type",Function),_.E("design:paramtypes",[CustomEvent,_.xL]),_.E("design:returntype")],PL.prototype,"dismissibleItemOnYtServiceRequestCompleted_",null);PL=_.x([_.Dl()],PL);_.Zh=[_.xK,_.Xh,PL.prototype];var ss=function(){var S=_.HT.apply(this,arguments)||this;S.disableGridStateAware=!1;S.gridStateActionMap={"ytd-update-grid-state-action":"handleUpdateGridStateAction"};S.currentGridClass="";return S};
_.r(ss,_.HT);ss.prototype.attached=function(){this.ytActionHandlerBehavior.registerActionMap(this.gridStateActionMap);_.oH(this,this.handleUpdateGridStateAction);if(!this.disableGridStateAware){var S=this.gridStateAwareGetElement();_.U2(S,"grid",!0)}};
ss.prototype.detached=function(){this.ytActionHandlerBehavior.unregisterActionMap(this.gridStateActionMap)};
ss.prototype.gridStateAwareGetElement=function(){return this.gridStateAwareSizingElementSelector?_.tB(this.hostElement).querySelector(this.gridStateAwareSizingElementSelector):this.hostElement};
ss.prototype.handleUpdateGridStateAction=function(){if(this.disableGridStateAware)var S="grid-disabled";else{S=_.Z7Q.getInstance();var p=this.get("pageSubtype");S=p&&FBQ.includes(p)?"grid-disabled":S.currentSnapState_?S.currentSnapState_.className:null}(p=this.gridStateAwareGetElement())&&S!==this.currentGridClass&&(S&&_.U2(p,S,!0),this.currentGridClass&&_.U2(p,this.currentGridClass,!1),this.currentGridClass=S)};
_.x([_.F(_.Aj.YtActionHandlerBehavior),_.E("design:type",Object)],ss.prototype,"ytActionHandlerBehavior",void 0);_.x([_.g(),_.E("design:type",String)],ss.prototype,"gridStateAwareSizingElementSelector",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],ss.prototype,"disableGridStateAware",void 0);ss=_.x([_.Dl()],ss);_.ej=[ss.prototype,_.Aj.YtActionHandlerBehavior];_.gr=new _.$g("GUIDE_TOKEN");var wr;_.uc={};wr=function(){var S=_.HT.apply(this,arguments)||this;S.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 S};
_.r(wr,_.HT);_.M=wr.prototype;_.M.onActiveEndpointChange=function(){this.hostElement.dispatchEvent(new CustomEvent("active-endpoint-changed",{detail:{value:this.activeEndpoint,queueProperty:!0}}))};
_.M.attached=function(){this.ytActionHandlerBehavior.registerActionMap(this.guideStateActionMap);var S=_.tW().resolve(_.AW(_.gr));S&&(this.guidePersistentAndVisible=S.getGuidePersistentAndVisible(),this.activeEndpoint=S.getActiveEndpoint(),this.guideOpened=S.getGuideOpened(),this.miniGuideVisible=S.getMiniGuideVisible())};
_.M.detached=function(){this.ytActionHandlerBehavior.unregisterActionMap(this.guideStateActionMap)};
_.M.handleGuideStateAction=function(S){this.guidePersistentAndVisible=S};
_.M.handleMiniGuideStateAction=function(S){this.miniGuideVisible=S};
_.M.handleGuideOpenedAction=function(S){this.guideOpened=S};
_.M.handleActiveEndpointAction=function(S){this.activeEndpoint=S};
wr.prototype.onActiveEndpointChange=wr.prototype.onActiveEndpointChange;_.x([_.F(_.Aj.YtActionHandlerBehavior),_.E("design:type",Object)],wr.prototype,"ytActionHandlerBehavior",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Boolean)],wr.prototype,"guidePersistentAndVisible",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Boolean)],wr.prototype,"miniGuideVisible",void 0);_.x([_.g(),_.E("design:type",Object)],wr.prototype,"activeEndpoint",void 0);
_.x([_.T4("activeEndpoint"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],wr.prototype,"onActiveEndpointChange",null);_.x([_.g(),_.E("design:type",Boolean)],wr.prototype,"guideOpened",void 0);wr=_.x([_.Dl()],wr);_.uc.YtdGuideStateAwareBehavior=[];_.uc.YtdGuideStateAwareBehavior.push(wr.prototype,_.Aj.YtActionHandlerBehavior);var gTP=["ytd-compact-video-renderer","ytd-playlist-video-renderer","ytd-compact-movie-renderer","ytd-playlist-panel-video-renderer"],lc=function(){var S=_.HT.apply(this,arguments)||this;S.hoverJobId=0;S.JSC$12208_touched=!1;return S};
_.r(lc,_.HT);_.M=lc.prototype;_.M.created=function(){this.useExpandableTooltip=!gTP.includes(this.is)};
_.M.attached=function(){this.hostElement.hasAttribute("lockup")||this.hostElement.setAttribute("lockup","true")};
_.M.detached=function(){this.useExpandableTooltip=!1};
_.M.lockupOnDown=function(S){this.interactionElement&&!_.Eo(_.E1(S),this.hostElement,["BUTTON".toString()])&&this.interactionElement.triggerDown()};
_.M.lockupOnUp=function(S){this.interactionElement&&!_.Eo(_.E1(S),this.hostElement,["BUTTON".toString()])&&this.interactionElement.triggerUp()};
_.M.onTouchStart=function(){this.JSC$12208_touched=!0};
_.M.lockupOnMouseEnter=function(){var S=this,p=_.pA("kevlar_lockup_hover_delay",-1);this.JSC$12208_touched&&p>=0?(_.PA.cancelJob(this.hoverJobId),this.hoverJobId=_.PA.addJob(function(){S.lockupIsHovered=!0},8,p),this.JSC$12208_touched=!1):this.lockupIsHovered=!0};
_.M.lockupOnMouseLeave=function(){this.hoverJobId&&(_.PA.cancelJob(this.hoverJobId),this.hoverJobId=0);this.lockupIsHovered=!1};
_.M.lockupOnPopupClosed=function(S,p){var U;((U=p.popupRenderer)==null?void 0:U.is)==="ytd-menu-popup-renderer"&&(S=p.popupRenderer.veData,p=_.X$(),S&&p&&_.Cp(p,[S]))};
_.M.lockupOnLockupRequested=function(S){var p=S.detail.videoIds[0],U;S.detail&&p===((U=this.data)==null?void 0:U.videoId)&&(S.detail.returnValue=[this.data])};
_.M.lockupOnYtServiceRequestSent=function(S,p){if(S=p.actions)for(var U=0;U<S.length;U++){var Y=S[U];if(Y.action==="ACTION_REMOVE_VIDEO_BY_VIDEO_ID"&&p.ajaxPromise){var L=void 0,I=(L=_.b(p.endpoint,_.h1))==null?void 0:L.playlistId;L=void 0;Y=(L=Y.removedVideoId)!=null?L:"";c6w(_.e8(),Y,I)}else Y.action==="ACTION_REMOVE_VIDEO"&&p.ajaxPromise&&(I=void 0,Y=(I=Y.setVideoId)!=null?I:"",_.SQe(_.e8(),Y))}};
_.M.lockupOnLockupDisabled=function(){this.interactionElement&&(this.interactionElement.disabled=!0)};
_.M.lockupOnLockupEnabled=function(){if(!this.$){var S=_.tW().resolve(_.oy).getCurrentPage(),p=this.getParentRenderer?this.getParentRenderer():void 0;_.eP(new _.y7("component not ready",this.is,this.isAttached,S==null?void 0:S.is,p==null?void 0:p.is))}this.interactionElement&&(this.interactionElement.disabled=!1)};
lc.prototype.lockupOnLockupEnabled=lc.prototype.lockupOnLockupEnabled;lc.prototype.lockupOnLockupDisabled=lc.prototype.lockupOnLockupDisabled;lc.prototype.lockupOnYtServiceRequestSent=lc.prototype.lockupOnYtServiceRequestSent;lc.prototype.lockupOnLockupRequested=lc.prototype.lockupOnLockupRequested;lc.prototype.lockupOnPopupClosed=lc.prototype.lockupOnPopupClosed;lc.prototype.lockupOnMouseLeave=lc.prototype.lockupOnMouseLeave;lc.prototype.lockupOnMouseEnter=lc.prototype.lockupOnMouseEnter;
lc.prototype.onTouchStart=lc.prototype.onTouchStart;lc.prototype.lockupOnUp=lc.prototype.lockupOnUp;lc.prototype.lockupOnDown=lc.prototype.lockupOnDown;_.x([_.g(),_.E("design:type",Object)],lc.prototype,"data",void 0);_.x([_.g(),_.E("design:type",Boolean)],lc.prototype,"lockupIsHovered",void 0);_.x([_.g(),_.E("design:type",Boolean)],lc.prototype,"lockupTouchTriggered",void 0);_.x([_.g(),_.E("design:type",Boolean)],lc.prototype,"useExpandableTooltip",void 0);
_.x([_.O2("#interaction"),_.E("design:type",Object)],lc.prototype,"interactionElement",void 0);_.x([_.Vd("down"),_.E("design:type",Function),_.E("design:paramtypes",[CustomEvent]),_.E("design:returntype")],lc.prototype,"lockupOnDown",null);_.x([_.Vd("up"),_.E("design:type",Function),_.E("design:paramtypes",[CustomEvent]),_.E("design:returntype")],lc.prototype,"lockupOnUp",null);
_.x([_.Vd("touchstart"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],lc.prototype,"onTouchStart",null);_.x([_.Vd("mouseenter"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],lc.prototype,"lockupOnMouseEnter",null);_.x([_.Vd("mouseleave"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],lc.prototype,"lockupOnMouseLeave",null);
_.x([_.Vd("yt-popup-closed"),_.E("design:type",Function),_.E("design:paramtypes",[CustomEvent,Object]),_.E("design:returntype")],lc.prototype,"lockupOnPopupClosed",null);_.x([_.Vd("yt-lockup-requested"),_.E("design:type",Function),_.E("design:paramtypes",[CustomEvent]),_.E("design:returntype")],lc.prototype,"lockupOnLockupRequested",null);
_.x([_.Vd("yt-service-request-sent"),_.E("design:type",Function),_.E("design:paramtypes",[CustomEvent,_.eM]),_.E("design:returntype")],lc.prototype,"lockupOnYtServiceRequestSent",null);_.x([_.Vd("yt-disable-lockup-interaction"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],lc.prototype,"lockupOnLockupDisabled",null);
_.x([_.Vd("yt-enable-lockup-interaction"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],lc.prototype,"lockupOnLockupEnabled",null);lc=_.x([_.Dl()],lc);_.ak=[lc.prototype];_.uHe={YtdReduxBehavior:[]};_.uHe.YtdReduxBehavior.push.apply(_.uHe.YtdReduxBehavior,_.Xh);var fj=function(){var S=_.HT.apply(this,arguments)||this;S._noAccessors=!0;S.disableNowPlaying=!1;S.disableTooltips=!1;S.useHoveredProperty=!1;S.hovered=!1;S.isThumbnailHovered_=!1;S.addBackground=_.y("kevlar_thumbnail_bg");S.nowPlaying=!1;S.disableRounding=!1;S.size="small";return S};
_.r(fj,_.HT);_.M=fj.prototype;_.M.computeThumbnailOverlaySidePanelWidth_=function(S,p){return S-p};
_.M.computeSize=function(S,p){if(!this.disableRounding){if(!S&&!p)return"small";S=Math.max(S||0,p||0);return S>=256?"large":S>=96?"medium":"small"}};
_.M.computeFinalHoveredState_=function(S,p,U){return this.nowPlaying?!1:_.y("kevlar_thumbnail_fluid")&&S?p:U};
_.M.computeHoverOverlays_=function(S,p){return S&&p?p:void 0};
_.M.onMouseEnter_=function(){this.isThumbnailHovered_=!0};
_.M.onMouseLeave_=function(){this.isThumbnailHovered_=!1};
_.M.checkMiniplayer_=function(){var S;if(((S=this.data)==null?0:S.playlistSetVideoId)&&_.y("web_enable_playlist_video_lockup_equalizer"))this.nowPlaying=!!this.data.selected;else{S=_.Vy();var p=S.currentEndpoint;!this.disableNowPlaying&&p&&_.b(p,_.E$)&&this.data?(p=_.b(p,_.E$),this.nowPlaying=this.data.playlistId?p.playlistId===this.data.playlistId:p.videoId===this.data.videoId,this.isVideoPlaying=S==null?void 0:S.isVideoPlaying):this.nowPlaying=!1}};
fj.prototype.checkMiniplayer_=fj.prototype.checkMiniplayer_;fj.prototype.onMouseLeave_=fj.prototype.onMouseLeave_;fj.prototype.onMouseEnter_=fj.prototype.onMouseEnter_;fj.prototype.computeHoverOverlays_=fj.prototype.computeHoverOverlays_;fj.prototype.computeFinalHoveredState_=fj.prototype.computeFinalHoveredState_;fj.prototype.computeSize=fj.prototype.computeSize;fj.prototype.computeThumbnailOverlaySidePanelWidth_=fj.prototype.computeThumbnailOverlaySidePanelWidth_;
_.x([_.F(_.Xh),_.E("design:type",Object)],fj.prototype,"ytdReduxBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],fj.prototype,"data",void 0);_.x([_.g(),_.E("design:type",Number)],fj.prototype,"height",void 0);_.x([_.g(),_.E("design:type",Boolean)],fj.prototype,"bottomSidePanel",void 0);_.x([_.g(),_.E("design:type",Number)],fj.prototype,"width",void 0);_.x([_.g(),_.E("design:type",Object)],fj.prototype,"disableNowPlaying",void 0);
_.x([_.g({selector:_.F1}),_.E("design:type",Boolean)],fj.prototype,"miniplayerIsActive",void 0);_.x([_.g(),_.E("design:type",Object)],fj.prototype,"disableTooltips",void 0);_.x([_.g(),_.E("design:type",Object)],fj.prototype,"useHoveredProperty",void 0);_.x([_.g(),_.E("design:type",Object)],fj.prototype,"hovered",void 0);_.x([_.g(),_.E("design:type",Object)],fj.prototype,"isThumbnailHovered_",void 0);
_.x([_.g({computed:"computeFinalHoveredState_(useHoveredProperty, hovered, isThumbnailHovered_)"}),_.E("design:type",Boolean)],fj.prototype,"finalHoveredState_",void 0);_.x([_.g({computed:"computeThumbnailOverlaySidePanelWidth_(width, height)"}),_.E("design:type",Number)],fj.prototype,"thumbnailOverlaySidePanelWidth_",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],fj.prototype,"addBackground",void 0);
_.x([_.g({computed:"computeHoverOverlays_(finalHoveredState_, data.thumbnailOverlays)"}),_.E("design:type",Object)],fj.prototype,"hoverOverlays_",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],fj.prototype,"nowPlaying",void 0);_.x([_.g(),_.E("design:type",Boolean)],fj.prototype,"isVideoPlaying",void 0);_.x([_.g(),_.E("design:type",Object)],fj.prototype,"disableRounding",void 0);
_.x([_.g({reflectToAttribute:!0,computed:"computeSize(width, height, disableRounding)"}),_.E("design:type",Object)],fj.prototype,"size",void 0);_.x([_.Vd("mouseenter"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],fj.prototype,"onMouseEnter_",null);_.x([_.Vd("mouseleave"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],fj.prototype,"onMouseLeave_",null);
_.x([_.T4("data","disableNowPlaying","miniplayerIsActive"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],fj.prototype,"checkMiniplayer_",null);fj=_.x([_.Dl()],fj);var weQ=[fj.prototype];_.Cj={YtPlayerListenerBehavior:{created:function(){this.playerListeners_=new Map},
getPlayerListenerKey_:function(S,p){return S+":"+_.Ul(p)},
getPlayerListener_:function(S,p,U){S=this.getPlayerListenerKey_(S,p);p=this.playerListeners_.get(S);U&&this.playerListeners_.delete(S);return p},
savePlayerListener_:function(S,p){var U=p.bind(this);this.playerListeners_.set(this.getPlayerListenerKey_(S,p),U);return U},
listenToPlayerEvent:function(S,p,U){U=this.savePlayerListener_(p,U);S.addEventListener(p,U)},
listenToPlayerEvents:function(S,p){p.forEach(function(U,Y){this.listenToPlayerEvent(S,Y,U)}.bind(this))},
unlistenFromPlayerEvent:function(S,p,U){U=this.getPlayerListener_(p,U,!0);S.removeEventListener(p,U)},
unlistenFromPlayerEvents:function(S,p){p.forEach(function(U,Y){this.unlistenFromPlayerEvent(S,Y,U)}.bind(this))}}};
_.xt=function(){};_.lYI=new _.$g("PLAYER_API_TOKEN");var xjw=!1,vFd,mjr=!1,ikk;var B7=function(S,p,U,Y,L){_.hY.call(this);var I=this;this.playerId=p;this.webPlayerContextConfig=Y;this.mmg=L;this.lMZ=!1;this.api={};this.yLy=this.eEn=null;this.kcU=new _.kU;this.wb={};this.k3C=this.w2G=this.elementId=this.vAB=this.config=null;this.vQB=!1;this.qZ=this.dhT=null;this.mkU={};this.ecH=["onReady"];this.lastError=null;this.fDk=NaN;this.nvG={};this.lfG=0;this.yO=this.targetElement=S;_.Hm(this,this.kcU);aYt(this);U?this.lfG=setTimeout(function(){I.loadNewVideoConfig(U)},0):Y&&(fYI(this),
Cfd(this))};
_.r(B7,_.hY);B7.prototype.getId=function(){return this.playerId};
B7.prototype.loadNewVideoConfig=function(S){if(!this.isDisposed()){this.lfG&&(clearTimeout(this.lfG),this.lfG=0);var p=S||{};p instanceof V8E||(p=new V8E(p));this.config=p;this.setConfig(S);Cfd(this);this.isReady()&&x1Q(this)}};
var fYI=function(S){var p;S.webPlayerContextConfig?p=S.webPlayerContextConfig.rootElementId:p=S.config.attrs.id;S.elementId=p||S.elementId;S.elementId==="video-player"&&(S.elementId=S.playerId,S.webPlayerContextConfig?S.webPlayerContextConfig.rootElementId=S.playerId:S.config.attrs.id=S.playerId);var U;((U=S.yO)==null?void 0:U.id)===S.elementId&&(S.elementId+="-player",S.webPlayerContextConfig?S.webPlayerContextConfig.rootElementId=S.elementId:S.config.attrs.id=S.elementId)};
B7.prototype.setConfig=function(S){this.vAB=S;this.config=ETH(S);fYI(this);if(!this.w2G){var p;this.w2G=m1Q(this,((p=this.config.args)==null?void 0:p.jsapicallback)||"onYouTubePlayerReady")}this.config.args?this.config.args.jsapicallback=null:this.config.args={jsapicallback:null};var U;if((U=this.config)==null?0:U.attrs)S=this.config.attrs,(p=S.width)&&this.yO&&(this.yO.style.width=FX(Number(p)||p,!0)),(S=S.height)&&this.yO&&(this.yO.style.height=FX(Number(S)||S,!0))};
var x1Q=function(S){if(S.config&&S.config.loaded!==!0)if(S.config.loaded=!0,!S.config.args||S.config.args.autoplay!=="0"&&S.config.args.autoplay!==0&&S.config.args.autoplay!==!1){var p;S.api.loadVideoByPlayerVars((p=S.config.args)!=null?p:null)}else S.api.cueVideoByPlayerVars(S.config.args)},vTw=function(S){var p=!0,U=S.getPlayerElement();
U&&S.config&&(p=U.dataset.version===oTH(S));return p&&!!_.ad("yt.player.Application.create")},Cfd=function(S){if(!S.isDisposed()&&!S.vQB){var p=vTw(S);
if(p&&(S.getPlayerElement()?"html5":null)==="html5")S.k3C="html5",S.isReady()||$1P(S);else if(iNt(S),S.k3C="html5",p&&S.qZ&&S.targetElement)S.targetElement.appendChild(S.qZ),$1P(S);else{S.config&&(S.config.loaded=!0);var U=!1;S.dhT=function(){U=!0;var Y=NwH(S,"player_bootstrap_method")?_.ad("yt.player.Application.createAlternate")||_.ad("yt.player.Application.create"):_.ad("yt.player.Application.create");var L=S.config?ETH(S.config):void 0;Y&&Y(S.targetElement,L,S.webPlayerContextConfig,S.mmg);$1P(S)};
S.vQB=!0;p?S.dhT():(_.uL(oTH(S),S.dhT),(p=BwP(S))&&QEX(p||""),qGQ(S)&&!U&&_.NT("yt.player.Application.create",null))}}};
B7.prototype.getPlayerElement=function(){var S=_.NF(document,this.elementId);!S&&this.yO&&this.yO.querySelector&&(S=this.yO.querySelector("#"+this.elementId));return S};
var $1P=function(S){if(!S.isDisposed()){var p=S.getPlayerElement(),U=!1;p&&p.getApiInterface&&p.getApiInterface()&&(U=!0);if(U){S.vQB=!1;if(!NwH(S,"html5_remove_not_servable_check_killswitch")){var Y;if((p==null?0:p.isNotServable)&&S.config&&(p==null?0:p.isNotServable((Y=S.config.args)==null?void 0:Y.video_id)))return}AJq(S)}else S.fDk=setTimeout(function(){$1P(S)},50)}},AJq=function(S){aYt(S);
S.lMZ=!0;var p=S.getPlayerElement();if(p){S.eEn=tAP(S,p,"addEventListener");S.yLy=tAP(S,p,"removeEventListener");var U=p.getApiInterface();U=U.concat(p.getInternalApiInterface());for(var Y=S.api,L=0;L<U.length;L++){var I=U[L];Y[I]||(Y[I]=tAP(S,p,I))}}for(var V in S.wb)S.wb.hasOwnProperty(V)&&S.eEn&&S.eEn(V,S.wb[V]);x1Q(S);S.w2G&&S.w2G(S.api);S.kcU.publish("onReady",S.api)},tAP=function(S,p,U){var Y=p[U];
return function(){var L=_.jO.apply(0,arguments);try{return S.lastError=null,Y.apply(p,L)}catch(I){if(U!=="sendAbandonmentPing")throw I.params=U,S.lastError=I,L=new _.y7("PlayerProxy error in method call",{error:I,method:U,playerId:S.playerId}),L.level="WARNING",L;}}},aYt=function(S){S.lMZ=!1;
if(S.yLy)for(var p in S.wb)S.wb.hasOwnProperty(p)&&S.yLy(p,S.wb[p]);for(var U in S.nvG)S.nvG.hasOwnProperty(U)&&clearTimeout(Number(U));S.nvG={};S.eEn=null;S.yLy=null;p=S.api;for(var Y in p)p.hasOwnProperty(Y)&&(p[Y]=null);p.addEventListener=function(L,I){S.addEventListener(L,I)};
p.removeEventListener=function(L,I){S.removeEventListener(L,I)};
p.destroy=function(){S.dispose()};
p.getLastError=function(){return S.getLastError()};
p.getPlayerType=function(){return S.getPlayerType()};
p.getCurrentVideoConfig=function(){return S.vAB};
p.loadNewVideoConfig=function(L){S.loadNewVideoConfig(L)};
p.isReady=function(){return S.isReady()}};
B7.prototype.isReady=function(){return this.lMZ};
B7.prototype.addEventListener=function(S,p){var U=this;this.isDisposed();var Y=m1Q(this,p);Y&&(_.ou(this.ecH,S)||this.wb[S]||(p=cJw(this,S),this.eEn&&this.eEn(S,p)),this.kcU.subscribe(S,Y),S==="onReady"&&this.isReady()&&setTimeout(function(){Y(U.api)},0))};
B7.prototype.removeEventListener=function(S,p){this.isDisposed()||(p=m1Q(this,p))&&this.kcU.unsubscribe(S,p)};
var m1Q=function(S,p){var U=p;if(typeof p==="string"){if(S.mkU[p])return S.mkU[p];U=function(){var Y=_.jO.apply(0,arguments),L=_.ad(p);if(L)try{L.apply(_.UX,Y)}catch(I){throw Y=new _.y7("PlayerProxy error when executing callback",{error:I}),Y.level="ERROR",Y;}};
S.mkU[p]=U}return U?U:null},cJw=function(S,p){var U=function(Y){var L=function(){S.isDisposed();
if(!S.isDisposed())try{S.kcU.publish(p,Y!=null?Y:void 0)}catch(W){var V=new _.y7("PlayerProxy error when creating global callback",{error:W.message,event:p,playerId:S.playerId,data:Y,originalStack:W.stack,componentStack:W.componentStack});V.level="WARNING";throw V;}};
if(NwH(S,"web_player_publish_events_immediately"))L();else{var I=setTimeout(function(){L();_.h9.remove(S.nvG,String(I))},0);
_.h9.add(S.nvG,String(I),!0)}};
return S.wb[p]=U};
B7.prototype.getPlayerType=function(){return this.k3C||(this.getPlayerElement()?"html5":null)};
B7.prototype.getLastError=function(){return this.lastError};
var iNt=function(S){S.cancel();aYt(S);S.k3C=null;S.config&&(S.config.loaded=!1);var p=S.getPlayerElement();p&&(vTw(S)||!qGQ(S)?S.qZ=p:(p&&p.destroy&&p.destroy(),S.qZ=null));S.targetElement&&_.K0(S.targetElement)};
B7.prototype.cancel=function(){this.dhT&&_.vxe(oTH(this),this.dhT);clearTimeout(this.fDk);this.vQB=!1};
B7.prototype.disposeInternal=function(){iNt(this);if(this.qZ&&this.config&&this.qZ.destroy)try{this.qZ.destroy()}catch(p){var S=new _.y7("PlayerProxy error during disposal",{error:p});S.level="ERROR";throw S;}this.mkU=null;for(S in this.wb)this.wb.hasOwnProperty(S)&&delete this.wb[S];this.vAB=this.config=this.api=null;delete this.targetElement;delete this.yO;_.hY.prototype.disposeInternal.call(this)};
var qGQ=function(S){var p,U;S=(p=S.config)==null?void 0:(U=p.args)==null?void 0:U.fflags;return!!S&&S.indexOf("player_destroy_old_version=true")!==-1},oTH=function(S){return S.webPlayerContextConfig?S.webPlayerContextConfig.jsUrl:(S=S.config.assets)?S.js:""},BwP=function(S){return S.webPlayerContextConfig?S.webPlayerContextConfig.cssUrl:(S=S.config.assets)?S.css:""},NwH=function(S,p){if(S.webPlayerContextConfig)var U=S.webPlayerContextConfig.serializedExperimentFlags;
else{var Y;if((Y=S.config)==null?0:Y.args)U=S.config.args.fflags}return(U||"").split("&").includes(p+"=true")},ETH=function(S){for(var p={},U=_.d(Object.keys(S)),Y=U.next();!Y.done;Y=U.next()){Y=Y.value;
var L=S[Y];p[Y]=typeof L==="object"?_.h9.clone(L):L}return p};var tsd={},A0w="player_uid_"+(Math.random()*1E9>>>0);var Es=function(S,p,U,Y,L,I){p=p===void 0?document.createElement("div"):p;this.webPlayerContextConfig=S;this.container=p;this.commandResolver=U;this.apiResolver=p0G();this.pageReadyOrDataAvailable=!1;this.pageReadyOrDataAvailableResolver=new _.MI;Y||I?SNt(this):p9t(this);this.pendingPlayerResponse=Y;this.pendingWatchNextResponse=L;this.pendingPlayerVars=I;Ujl(this)};
Es.prototype.loadVideoWithPlayerResponse=function(S,p,U){this.loadVideo(S,p,U)};
Es.prototype.loadVideoWithPlayerVars=function(S){return this.loadVideo(void 0,void 0,S)};
Es.prototype.destroy=function(S){if(S=_.NF(document,S))S=A0w+"_"+_.Ul(S),(S=tsd[S])&&S.dispose()};
var L9t=function(S,p){var U;_.T(function(Y){if(Y.nextAddress==1)return S.pendingWatchNextResponse=p,S.synchronousApi?(U=S.synchronousApi,Y.jumpTo(2)):_.k(Y,S.api,3);Y.nextAddress!=2&&(U=Y.yieldResult);YNw(S,U);S.pendingWatchNextResponse&&(U.updateVideoData({raw_watch_next_response:S.pendingWatchNextResponse}),S.pendingWatchNextResponse=void 0);_.OV(Y)})},YNw=function(S,p){var U;
if(!(p==null?0:(U=p.isReady)==null?0:U.call(p))){var Y;S=new _.y7("playerApi is falsey",{synchronousApi:S.synchronousApi,apiResolved:S.apiResolver.resolved,playerApiUndefined:p===void 0,playerApiNull:p===null,playerApiReady:(p==null?void 0:(Y=p.isReady)==null?void 0:Y.call(p))===!0,playerApiMethods:p?Object.keys(p):[]});_.ZP(S)}},MsP=function(S,p){if(typeof S[p]==="function")return S[p]()},IAI=function(S){var p=window,U,Y=(U=p.ytplayer)==null?void 0:U.bootstrapPlayerContainer;
if((U=Y==null?void 0:Y.firstElementChild)&&_.sD(U,"html5-video-player")){var L,I,V=(L=p.ytplayer)==null?void 0:(I=L.bootstrapWebPlayerContextConfig)==null?void 0:I.contextId;L=S.webPlayerContextConfig.contextId;if(V&&V===L){Y!==S.container&&(Y=!1,MsP(U,"getPlayerState")===2&&(Y=!0),S.container.appendChild(U),Y||MsP(U,"playVideo"));var W;if((W=p.ytplayer)==null?0:W.bootstrapPlayerResponse)S.bootstrapPlayerResponse=p.ytplayer.bootstrapPlayerResponse}}},Ujl=function(S){var p,U,Y,L,I;
_.T(function(V){if(V.nextAddress==1)return S.pageReadyOrDataAvailable?V.jumpTo(2):_.k(V,S.pageReadyOrDataAvailableResolver.promise,2);if(V.nextAddress!=4)return!_.y("kevlar_player_unified_player_loading")||EFG()&&oFk()?V.jumpTo(4):_.k(V,BTr(),4);IAI(S);if(S.pendingPlayerResponse||S.pendingPlayerVars)p=qNk(S.pendingPlayerResponse,S.pendingWatchNextResponse,S.pendingPlayerVars),S.pendingPlayerResponse&&S.pendingPlayerResponse===S.bootstrapPlayerResponse&&(p.loaded=!0),S.bootstrapPlayerResponse=void 0;
U=SAw(S.container,p,S.webPlayerContextConfig);((Y=p)==null?0:Y.loaded)&&S.pendingWatchNextResponse?(L9t(S,S.pendingWatchNextResponse),S.pendingPlayerResponse=void 0,S.pendingPlayerVars=void 0):djm(S);L=function(W){U.removeEventListener("onReady",L);S.synchronousApi=W;S.apiResolver.resolve(W)};
U.addEventListener("onReady",L);S.commandResolver!==void 0&&(I=S.commandResolver,U.addEventListener("innertubeCommand",function(W){I(W)}));
_.OV(V)})};
Es.prototype.loadVideo=function(S,p,U){var Y=this,L,I,V,W,O,D,z,Q,J;return _.T(function(K){if(K.nextAddress==1)return Y.pendingPlayerResponse=S,Y.pendingWatchNextResponse=p,Y.pendingPlayerVars=U,SNt(Y),Y.synchronousApi?(L=Y.synchronousApi,K.jumpTo(2)):_.k(K,Y.api,3);K.nextAddress!=2&&(L=K.yieldResult);YNw(Y,L);V=new Promise(function(G){I=G});
W=function(){var G=L.getPlayerResponse();G&&(L.removeEventListener("onVideoDataChange",W),I(G))};
L.addEventListener("onVideoDataChange",W);if(Y.pendingPlayerResponse||Y.pendingPlayerVars)Y.pendingPlayerResponse&&Y.pendingPlayerResponse===Y.bootstrapPlayerResponse?(I(Y.pendingPlayerResponse),Y.pendingWatchNextResponse&&L9t(Y,Y.pendingWatchNextResponse)):(O=qNk(Y.pendingPlayerResponse,Y.pendingWatchNextResponse,Y.pendingPlayerVars),(J=(D=Y.pendingPlayerResponse)==null?void 0:(z=D.playerConfig)==null?void 0:(Q=z.playbackStartConfig)==null?void 0:Q.startPaused)?L.cueVideoByPlayerVars(O.args):L.loadVideoByPlayerVars(O.args)),
djm(Y),Y.bootstrapPlayerResponse=void 0;return K.return(V)})};
var p9t=function(S){if(document.readyState==="complete"||document.readyState==="interactive")SNt(S);else{var p=function(){document.removeEventListener("DOMContentLoaded",p);SNt(S)};
document.addEventListener("DOMContentLoaded",p)}},SNt=function(S){S.pageReadyOrDataAvailable=!0;
S.pageReadyOrDataAvailableResolver.resolve()},djm=function(S){S.pendingPlayerResponse=void 0;
S.pendingWatchNextResponse=void 0;S.pendingPlayerVars=void 0};
_.$u.Object.defineProperties(Es.prototype,{api:{configurable:!0,enumerable:!0,get:function(){return this.apiResolver.promise}}});var mx=function(S){GA.call(this,S===void 0?"document_active":S);var p=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(U){p.transition("document_disposed",{event:U})});
window.addEventListener("beforeunload",function(U){p.transition("document_disposed_preventable",{event:U})});
window.addEventListener("unload",function(U){p.transition("document_disposed",{event:U});p.hasRun=new Map})};
_.r(mx,GA);
mx.prototype.runPreventableDispose=function(S,p){if(!this.hasRun.get("document_disposed_preventable")){S(p==null?void 0:p.event);var U,Y;if((p==null?0:(U=p.event)==null?0:U.defaultPrevented)||(p==null?0:(Y=p.event)==null?0:Y.returnValue)){p.event.returnValue||(p.event.returnValue=!0);p.event.defaultPrevented||p.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")};
mx.prototype.runDispose=function(S,p){this.hasRun.get("document_disposed")?this.transition("document_active"):(S(p==null?void 0:p.event),this.hasRun.set("document_disposed",!0),this.transition("flush_logs"))};
mx.prototype.runFlush=function(S,p){S(p==null?void 0:p.event);this.transition("document_active")};
mx.prototype.runActive=function(){};var ok=function(S){GA.call(this,S===void 0?"document_visibility_unknown":S);var p=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(U){document.visibilityState==="visible"?p.transition("document_visible",{event:U}):p.transition("document_hidden",
{event:U})});
_.y("visibility_lifecycles_dynamic_backgrounding")&&(window.addEventListener("blur",function(U){p.transition("document_backgrounded",{event:U})}),window.addEventListener("focus",function(U){p.transition("document_foregrounded",{event:U})}))};
_.r(ok,GA);ok.prototype.runVisible=function(S,p){S(p==null?void 0:p.event);_.y("visibility_lifecycles_dynamic_backgrounding")&&this.transition("document_foregrounded")};
ok.prototype.runHidden=function(S,p){S(p==null?void 0:p.event);_.y("visibility_lifecycles_dynamic_backgrounding")&&this.transition("document_backgrounded")};
ok.prototype.runBackgrounded=function(S,p){S(p==null?void 0:p.event)};
ok.prototype.runForegrounded=function(S,p){S(p==null?void 0:p.event)};var vL=function(){this.teardownLifecycle=new mx;this.visibilityLifecycle=new ok};
vL.prototype.install=function(){var S=_.jO.apply(0,arguments),p=this;S.forEach(function(U){p.teardownLifecycle.install(U)});
S.forEach(function(U){p.visibilityLifecycle.install(U)})};var $t=function(){vL.call(this);var S={};this.install((S.document_disposed={callback:this.abortSlisAndFlush},S));_.y("combine_ve_grafts")&&(S={},this.install((S.document_disposed={callback:this.flushInteractionLoggingAttachVes},S)));S={};this.install((S.flush_logs={callback:this.logFinalPayload},S));_.y("web_log_cfg_cee_ks")||_.bQ(_.PA,VsP)};
_.r($t,vL);var UMX=function(){$t.loggingInstance||($t.loggingInstance=new $t);return $t.loggingInstance};
$t.prototype.logFinalPayload=function(){if(_.y("web_fp_via_jspb")){var S=new auQ,p=_.X$();p&&_.zN(S,1,p);p=_.y("jspb_sparse_encoded_pivot")?new Kv([{}]):new Kv;_.Yq(p,380,fum,S);l7N("finalPayload",p);_.y("web_fp_via_jspb_and_json")&&_.RV("finalPayload",{csn:_.X$()})}else _.RV("finalPayload",{csn:_.X$()})};
$t.prototype.abortSlisAndFlush=function(){$ct(uB);we!=null&&we.flush()};
$t.prototype.flushInteractionLoggingAttachVes=function(){kbc(_.HX())};
var VsP=function(){var S=_.g7("CLIENT_EXPERIMENT_EVENTS");if(S){var p=fww();S=_.d(S);for(var U=S.next();!U.done;U=S.next())U=U.value,p(U)&&_.RV("genericClientExperimentEvent",{eventType:U});delete _.s0.CLIENT_EXPERIMENT_EVENTS}};var TTm={};
TTm.YtPlayerBehavior=[_.Cj.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 S=this;this.player_=null;this.useUnifiedPlayer_()&&(this.mainAppPlayer_=void 0);this.playerResolver_=new _.MI;this.playerContainer_=this.initPlayerPromise_=null;this.preparePlayerJobId_=0;
this.isResetForNewPlayback_=!0;this.bootstrapPlayerResponse_=void 0;YAw(function(){S.maybeSendAbandonmentPing_()})},
attached:function(){this.disableTouchGestures||(_.Xj(this,"pan-down"),_.y("kevlar_pinch_fullscreen")&&_.zs().registerTouchEvents(this,void 0,void 0,"pinchout","pinchin"))},
detached:function(){!this.disableTouchGestures&&_.y("kevlar_pinch_fullscreen")&&_.zs().unregisterTouchEvents(this,"pinchout","pinchin")},
createMainAppPlayer_:function(S,p,U){var Y=this;qF(this.useUnifiedPlayer_());if(this.mainAppPlayer_)qF(!1,"MainAppPlayer already created.");else{var L=_.y("kevlar_player_container_query_killswitch")?this.$.container:_.tB(this.hostElement).querySelector("#container");this.mainAppPlayer_=new Es(this.getWebPlayerContextConfig_(),L,function(I){return _.Te(I,Y.hostElement)},S,p,U);
this.mainAppPlayer_.api.then(function(I){Y.player_=I;Y.context==="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_WATCH"&&kWd.resolve(I)})}},
loadVideoWithPlayerResponse:function(S,p){var U=this;if(this.useUnifiedPlayer_()){var Y=this.watchNextData,L,I=(L=S.videoDetails)==null?void 0:L.videoId,V,W,O;(L=(V=this.watchNextData)==null?void 0:(W=V.currentVideoEndpoint)==null?void 0:(O=W.watchEndpoint)==null?void 0:O.videoId)&&I!=L&&(Y=void 0,_.y("kevlar_unified_player_clear_watch_next_killswitch")&&(this.watchNextData=void 0));this.mainAppPlayer_?this.mainAppPlayer_.loadVideoWithPlayerResponse(S,Y,p):this.createMainAppPlayer_(S,Y,p);this.mainAppPlayer_.api.then(function(){_.cv(U.hostElement,
"yt-player-updated")})}else this.update(aAX(S,p))},
loadVideoWithPlayerVars:function(S){var p=this;this.useUnifiedPlayer_()?(_.y("kevlar_unified_player_clear_watch_next_killswitch")&&(this.watchNextData=void 0),this.mainAppPlayer_?this.mainAppPlayer_.loadVideoWithPlayerVars(S):this.createMainAppPlayer_(void 0,void 0,S),this.mainAppPlayer_.api.then(function(){_.cv(p.hostElement,"yt-player-updated")})):this.update({args:S})},
update:function(S){var p=this;if(this.useUnifiedPlayer_())qF(!1,"Invalid method call in kevlar_unified_player.");else{if(this.hasWebPlayerContextConfig_()){this.updateSwfConfig_(S);var U=SBR(S.args);U&&this.get("currentVideoEndpoint.watchEndpoint.videoId",this.watchNextData)==U&&Object.assign(S.args,this.computeWatchNextPlayerVars_(this.watchNextData));this.isResetForNewPlayback_=!1;return this.acquireApi_(S).then(function(Y){_.cv(p.hostElement,"yt-player-updated",_.y("kevlar_player_updated_obsolete_player_killswitch")?
Y:void 0)})}_.s9(new _.y7("Cannot initialize player for this context without a WebPlayerContextConfig.",this.context))}},
updatePlayerComponents:function(S){var p=this,U;return _.T(function(Y){if(Y.nextAddress==1)return _.k(Y,p.getPlayerPromise(),2);U=Y.yieldResult;if(!U)throw Error("th");S&&p.updatePlayerPlaylist_(S);_.OV(Y)})},
acquireApi_:function(S){var p=this;if(this.useUnifiedPlayer_())qF(!1,"Invalid method call in kevlar_unified_player.");else return _.PA.cancelJob(this.preparePlayerJobId_),this.playerContainer_?(qF(this.initPlayerPromise_,"Missing initPlayerPromise_."),this.getPlayerPromise().then(function(U){p.shouldAutoplay_(S)?U.loadVideoByPlayerVars(S.args):U.cueVideoByPlayerVars(S.args)})):this.initPlayerPromise_=this.initPlayerContainer_(S),this.initPlayerPromise_},
initPlayerContainer_:function(S){var p=this;if(this.useUnifiedPlayer_())qF(!1,"Invalid method call in kevlar_unified_player.");else return qF(!this.initPlayerPromise_,"Player is already initialized."),this.initPlayerPromise_&&_.eP(Error("uh")),qF(!this.playerContainer_,"ytd-player should only be initialized once."),this.playerContainer_=_.y("kevlar_player_container_query_killswitch")?this.$.container:_.tB(this.hostElement).querySelector("#container"),BTr().then(function(){var U=p.initPlayer_(S);p.playerResolver_.resolve(U);
return U})},
onPlayerReady_:function(S,p){this.useUnifiedPlayer_()?qF(!1,"Invalid method call in kevlar_unified_player."):(S.removeEventListener("onReady",this.onPlayerReadyEvent_),this.context==="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_WATCH"&&kWd.resolve(S),p(S))},
maybeCallApiMethodOnElement_:function(S,p){if(typeof S[p]==="function")return S[p]()},
maybeAdoptBootstrapPlayer_:function(){var S=window,p,U=(p=S.ytplayer)==null?void 0:p.bootstrapPlayerContainer;if((p=U==null?void 0:U.firstElementChild)&&p.classList.contains("html5-video-player")){var Y,L,I=(Y=S.ytplayer)==null?void 0:(L=Y.bootstrapWebPlayerContextConfig)==null?void 0:L.contextId;Y=this.getWebPlayerContextConfig_().contextId;if(I&&I===Y){U!==this.playerContainer_&&(U=!1,this.maybeCallApiMethodOnElement_(p,"getPlayerState")===2&&(U=!0),this.playerContainer_.appendChild(p),U||this.maybeCallApiMethodOnElement_(p,
"playVideo"));var V;if((V=S.ytplayer)==null?0:V.bootstrapPlayerResponse)this.bootstrapPlayerResponse_=S.ytplayer.bootstrapPlayerResponse}}},
initPlayer_:function(S){var p=this;if(this.useUnifiedPlayer_())qF(!1,"Invalid method call in kevlar_unified_player.");else return new Promise(function(U){p.maybeAdoptBootstrapPlayer_();var Y=S?fAr(S):void 0;Y&&Y==p.bootstrapPlayerResponse_&&(S.loaded=!0);Y=p.playerContainer_;var L=p.getWebPlayerContextConfig_();Y=SAw(Y,S,L);p.player_=Y;p.onPlayerReadyEvent_=p.onPlayerReady_.bind(p,p.player_,U);p.player_.addEventListener("onReady",p.onPlayerReadyEvent_);p.player_.addEventListener("innertubeCommand",
p.onPlayerInnerTubeCommand_.bind(p))})},
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(S){S.pauseVideo()})},
play:function(){this.getPlayerPromise().then(function(S){S.playVideo()})},
onTouchStart_:function(){if(!this.disableTouchGestures){var S=_.tW().resolve(_.oy).getCurrentPage();S&&S.getScrollTop()<=0?_.Xj(this,"pan-down"):_.Xj(this,"manipulation")}},
onPinchOut_:function(){this.getPlayerPromise().then(function(S){S.isFullscreen()||S.toggleFullscreen()})},
onPinchIn_:function(){this.getPlayerPromise().then(function(S){S.isFullscreen()&&S.toggleFullscreen()})},
updatePlayerPlaylist_:function(S){var p=this,U,Y,L;return _.T(function(I){if(I.nextAddress==1)return U=_.tW().resolve(_.AW(_.Fz)),Y=!!(U&&U.playlistComponent&&U.playlistComponent.loopOn),_.k(I,p.getPlayerPromise(),2);var V=L=I.yieldResult,W=V.updatePlaylist,O=[];if(_.y("kevlar_player_playlist_use_local_index")){var D,z;var Q=(z=(D=S.localCurrentIndex)!=null?D:S.currentIndex)!=null?z:0}else{var J;Q=(J=S.currentIndex)!=null?J:0}if(S.contents)for(D=0;D<S.contents.length;D++)if((z=S.contents[D])&&z.playlistPanelVideoRenderer)if(vVR(z)){z=
z.playlistPanelVideoRenderer;J="";z.shortBylineText&&(J=_.mA(z.shortBylineText));var K="";z.title?K=_.mA(z.title):z.unplayableText&&(K=_.mA(z.unplayableText));O.push({author:J,title:K,encrypted_id:z.videoId})}else D<Q&&--Q;W.call(V,{index:Q,list:S.playlistId?S.playlistId:"",loop:Y,playlist_title:S.title,playlist_length:O.length,video:O,fetch:0,external_list:"1",title:S.title?S.title:"",playlist_author:S.ownerName?_.mA(S.ownerName):void 0});_.OV(I)})},
focusOnPlayer:function(){_.oH(this,function(){if(this.playerContainer_&&this.playerContainer_.firstElementChild){var S=this.playerContainer_.querySelector(".html5-video-player");S&&(_.ic(_.tW().resolve(_.rY)),S.focus())}})},
preparePlayer:function(){var S=this;this.useUnifiedPlayer_()?this.mainAppPlayer_||this.createMainAppPlayer_():this.hasWebPlayerContextConfig_()?this.initPlayerPromise_||(new Promise(function(p){if(document.readyState=="complete"||document.readyState=="ready"||document.readyState=="interactive")p();else{var U=function(){document.removeEventListener("DOMContentLoaded",U);p()};
document.addEventListener("DOMContentLoaded",U)}})).then(function(){return BTr()}).then(function(){S.initPlayerPromise_||S.preparePlayerJobId_||(S.preparePlayerJobId_=_.bQ(_.PA,function(){S.initPlayerPromise_||(S.initPlayerPromise_=S.initPlayerContainer_())}))}):_.s9(new _.y7("Cannot initialize player for this context without a WebPlayerContextConfig.",this.context))},
updateSwfConfig_:function(S){this.useUnifiedPlayer_()?qF(!1,"Invalid method callin kevlar_unified_player."):this.shouldAutoplay_(S)||(S.args.autoplay="0")},
shouldAutoplay_:function(S){if(this.useUnifiedPlayer_())qF(!1,"Invalid method call in kevlar_unified_player.");else{var p=this.get("args.el",S);return p&&p!="detailpage"&&this.isMiniplayerActive_()||p&&(p=="sponsorshipsoffer"||p=="handlesclaiming")&&this.get("args.autoplay",S)=="0"?!1:(S=fAr(S))&&this.get("playerConfig.playbackStartConfig.startPaused",S)?!1:!0}},
isMiniplayerActive_:function(){return _.tW().resolve(_.eC).isMiniplayerActive()},
stop:function(){this.maybeSendAbandonmentPing_();var S=this.getPlayer();if(S){var p=S.getPlayerState();_.y("kevlar_player_check_ad_state_on_stop")&&(p=S.getPlayerState(S.getPresentingPlayerType()));p!=5&&S.stopVideo()}},
resetForNewPlayback:function(){this.isResetForNewPlayback_||(this.stop(),this.isResetForNewPlayback_=!0)},
appendTo:function(S,p,U){U=U===void 0?!1:U;var Y=this,L,I,V,W;return _.T(function(O){if(O.nextAddress==1)return p||(p=Y.hostElement),L=Y.useUnifiedPlayer_()?!!Y.mainAppPlayer_:!!Y.initPlayerPromise_,L?_.k(O,Y.getPlayerPromise(),2):(U?S.insertBefore(p,S.firstChild):S.appendChild(p),O.return());I=O.yieldResult;V=I.getPlayerState(I.getPresentingPlayerType());W=!1;if(V==-1||V==1||V==3)W=!0;U?S.insertBefore(p,S.firstChild):S.appendChild(p);W&&I.playVideo();I.setSize(NaN,NaN);_.OV(O)})},
watchNextDataChanged_:function(S){var p=this;S&&(this.useUnifiedPlayer_()&&_.y("kevlar_unified_player_update_watch_next_killswitch")?this.mainAppPlayer_&&L9t(this.mainAppPlayer_,S):this.getPlayerPromise().then(function(U){U.updateVideoData(p.computeWatchNextPlayerVars_(S))}))},
computeWatchNextPlayerVars_:function(S){if(this.useUnifiedPlayer_()&&_.y("kevlar_unified_player_update_watch_next_killswitch"))qF(!1,"Invalid method call in kevlar_unified_player.");else return{raw_watch_next_response:S}},
maybeSendAbandonmentPing_:function(){var S=this.getPlayer();S&&S.getPlayerState()!=5&&S.getPlayerState()!=0&&S.sendAbandonmentPing()},
getWebPlayerContextConfig_:function(){var S=_.g7("WEB_PLAYER_CONTEXT_CONFIGS")[this.context];this.playerId&&(S=Object.assign({},S),S.rootElementId=this.playerId);S.serializedExperimentIds&&S.serializedExperimentFlags||_.eP(Error("vh"));return S},
hasWebPlayerContextConfig_:function(){return!!_.g7("WEB_PLAYER_CONTEXT_CONFIGS")&&!!this.getWebPlayerContextConfig_()},
onPlayerInnerTubeCommand_:function(S){this.useUnifiedPlayer_()?qF(!1,"Invalid method call in kevlar_unified_player."):_.Te(S,this.hostElement)},
useUnifiedPlayer_:function(){var S=_.y("kevlar_non_watch_unified_player")&&this.context!=="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_WATCH";return _.y("kevlar_unified_player")||S}}];var W9w={};W9w.YtPlaylistPanelBehavior=[_.c.YtRendererBehavior,{_noAccessors:!0,properties:{loopOn:Boolean,shuffleOn:Boolean},listeners:{"yt-toggle-button":"onYtToggleButton_"},onYtToggleButton_:function(S){S=S.detail;if(S.actions.loop!=void 0||S.actions["yt-icons:loop"]!=void 0)this.loopOn=S.actions.loop||S.actions["yt-icons:loop"];if(S.actions.shuffle!=void 0||S.actions["yt-icons:shuffle"]!=void 0)this.shuffleOn=S.actions.shuffle||S.actions["yt-icons:shuffle"]},
setMenuData_:function(S){if(!S||!S.playlistButtons||S.isInfinite)return null;for(var p=S.playlistButtons.menuRenderer.topLevelButtons,U=p.length,Y=0;Y<U;Y++)if(p[Y].toggleButtonRenderer){var L=p[Y].toggleButtonRenderer;L.defaultIcon.iconType=="LOOP"&&this.loopOn?L.isToggled=this.loopOn:L.defaultIcon.iconType=="SHUFFLE"&&this.shuffleOn&&(L.isToggled=this.shuffleOn)}return S.playlistButtons}}];var OkQ=function(S){Sm.call(this,S,132);this.isDocument=S===document.documentElement};
_.r(OkQ,Sm);OkQ.prototype.calculateScrollDelta=function(S,p,U){var Y=0;S<p?Y=S<p-100?-48:-8:S>p+U&&(Y=S>p+U+100?48:8);return Y};
OkQ.prototype.JSC$9296_onMouseMove=function(S){this.isDocument||(S.clientX=S.event_.pageX,S.clientY=S.event_.pageY);Sm.prototype.JSC$9296_onMouseMove.call(this,S)};var Nb=function(){var S=_.HT.apply(this,arguments)||this;S._noAccessors=!0;S.scrollElement=document.documentElement;S.JSC$12267_dragListGroup=null;S.dragScrollSupport=null;S.onDraggerCreated=function(p){var U=p.JSC$9292_dragger;U.scrollTarget_=S.scrollElement;p=p.draggerEl;U&&p.menuOpened&&U.setEnabled(!1)};
S.onDragStart=function(p){var U=p.draggerEl;p=p.currDragItem;var Y=Object.assign({},p==null?void 0:p.data);Y.trackingParams=void 0;U.data=Y;U.style.position="absolute";U.style.width=(p==null?void 0:p.clientWidth)+"px";U.style.zIndex="2030";U.onDrag&&U.onDrag();_.y("web_owner_document_fallback_killswitch")?(p=document.querySelector("ytd-app"))&&_.tB(p).appendChild(U):(p=_.ZD(U),(Y=p.querySelector("ytd-app"))?_.tB(Y).appendChild(U):p.body.appendChild(U));S.dragScrollSupport=new OkQ(S.scrollElement);
S.dragScrollSupport.horizontalScrolling_=!1;U=S.dragScrollSupport;U.constrainScroll_=!!U.margin_&&!1};
S.onDrop=function(p){S.handleDrop(p);S.dragScrollSupport&&(_.t9(S.dragScrollSupport),S.dragScrollSupport=null)};
S.onReorderableScroll=function(){if(S.JSC$12267_dragListGroup){var p=S.JSC$12267_dragListGroup;s2l(p,p.currDragItem_)}};
return S};
_.r(Nb,_.HT);Nb.prototype.detached=function(){_.kcI(this)};
_.kcI=function(S){S.JSC$12267_dragListGroup&&(_.W3(S.JSC$12267_dragListGroup,j2w,S.onDragStart),_.W3(S.JSC$12267_dragListGroup,RUq,S.onDragStart),S.JSC$12267_dragListGroup.dispose(),S.JSC$12267_dragListGroup=null);S.dragScrollSupport&&(_.t9(S.dragScrollSupport),S.dragScrollSupport=null);S.scrollElement.removeEventListener("scroll",S.onReorderableScroll)};
_.HkP=function(S,p,U,Y){Y=Y===void 0?"":Y;_.kcI(S);U&&(S.scrollElement=U);S.JSC$12267_dragListGroup=new ZF;S.JSC$12267_dragListGroup.hysteresisDistance_=2;Xdm(S.JSC$12267_dragListGroup,p);S.JSC$12267_dragListGroup.draggerElClasses_=Hk("dragging").split(" ");Y&&P5t(S.JSC$12267_dragListGroup,function(L){var I=L||document,V=null;I.getElementsByClassName?V=I.getElementsByClassName(Y)[0]:V=juE("*",Y,L);return V||L});
_.Kz(S.JSC$12267_dragListGroup,Kpq,S.onDraggerCreated);_.Kz(S.JSC$12267_dragListGroup,j2w,S.onDragStart);_.Kz(S.JSC$12267_dragListGroup,RUq,S.onDrop);S.JSC$12267_dragListGroup.init();S.scrollElement.addEventListener("scroll",S.onReorderableScroll,{passive:!0})};
Nb.prototype.handleDrop=function(){};
_.$u.Object.defineProperties(Nb.prototype,{TEST_ONLY:{configurable:!0,enumerable:!0,get:function(){}}});
_.x([_.g({value:100}),_.E("design:type",Number)],Nb.prototype,"scrollMargin",void 0);Nb=_.x([_.Dl()],Nb);_.Djm=[Nb.prototype];_.BL={YtSparklesClickLocationBehavior:{clickTargetMap:null,containerId:null,handleClick:function(S,p,U){var Y=this.getClickTarget_(p);if(Y&&this.isClickAllowed_(Y)){p.preventDefault();S=(0,_.h9.unsafeClone)(S);var L=this.getContainerBoundingRect();p=this.getRelativeClickXy_(p,L);this.expandEndpointUrlMacros_(S,{NX:p[0],NY:p[1],NB:Y.code});U&&this.truncateWebCommendMetadataUrl_(S);_.cv(this.hostElement,"yt-navigate",{endpoint:S})}},
getClickTarget_:function(S){if(!this.clickTargetMap)return null;S=_.E1(S)||[];S=_.d(S);for(var p=S.next();!p.done;p=S.next()){p=p.value;if(p===_.tB(this.hostElement).querySelector("#menu"))break;if(p=this.clickTargetMap.get(p.id))return p}return null},
getRelativeClickXy_:function(S,p){var U=S.detail.x,Y=S.detail.y;_.y("use_on_click_for_desktop_display_ad")&&S.clientX!=null&&S.clientY!=null&&(U=S.clientX,Y=S.clientY);S=Math.round(U-p.left);p=Math.round(Y-p.top);return S<0||p<0?[null,null]:[S,p]},
getContainerBoundingRect:function(){return _.tB(this.hostElement).querySelector("#"+this.containerId).getBoundingClientRect()},
expandEndpointUrlMacros_:function(S,p){for(var U=_.d(S.loggingUrls||[]),Y=U.next();!Y.done;Y=U.next())Y=Y.value,Y.baseUrl&&(Y.baseUrl=RY(Y.baseUrl,p));S.urlEndpoint&&S.urlEndpoint.url&&(S.urlEndpoint.url=RY(S.urlEndpoint.url,p));S.commandMetadata&&S.commandMetadata.webCommandMetadata&&S.commandMetadata.webCommandMetadata.url&&(S.commandMetadata.webCommandMetadata.url=RY(S.commandMetadata.webCommandMetadata.url,p))},
truncateWebCommendMetadataUrl_:function(S){if(S.commandMetadata&&S.commandMetadata.webCommandMetadata&&S.commandMetadata.webCommandMetadata.url){var p=S.commandMetadata.webCommandMetadata.url,U=p.indexOf("&pp=");if(U>0){var Y=p.indexOf("&",U+1);S.commandMetadata.webCommandMetadata.url=Y>U&&Y<p.length?p.slice(0,U)+p.slice(Y):p.slice(0,U)}}},
configureClickTargets:function(S,p,U){this.containerId=S;this.clickTargetMap=new Map;S=_.d(p);for(p=S.next();!p.done;p=S.next())if(p=p.value,p.location){var Y=U.get(p.location);Y&&(_.U2(_.tB(this.hostElement).querySelector("#"+Y),"yt-simple-endpoint",this.isClickAllowed_(p)),this.clickTargetMap.set(Y,p))}},
isClickAllowed_:function(S){return S.behaviorType==="PROMOTED_SPARKLES_CLICK_BEHAVIOR_TYPE_OPEN_AD"||S.behaviorType==="PROMOTED_SPARKLES_VIDEO_ACTION_CLICK_BEHAVIOR_TYPE_PLAY_VIDEO_ON_WATCH_PAGE"||S.behaviorType==="PROMOTED_SPARKLES_VIDEO_ACTION_CLICK_BEHAVIOR_TYPE_OPEN_CHANNEL"||S.behaviorType==="PROMOTED_SPARKLES_VIDEO_ACTION_CLICK_BEHAVIOR_TYPE_OPEN_ACTION_WEBSITE_URL"}}};_.qb={};
_.qb.YtLazyListBehavior=[_.$2.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 S=(this.constructor.generatedFrom||this).observers;S||(S=[]);S.push("deepLazyListObserver_("+this.itemsPath+".*)");this.constructor.generatedFrom.observers=
S}},
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 S=this.renderElementsOutsideVisibleArea_;S&&(bPE(S,4),S.processSignal())},
deepLazyListObserver_:function(S){var p=this;if(S){var U=S.value||[];if(this.itemsPath==S.path){var Y=this.nonDeferredItemCount;S=0;Y>-1&&U.length>Y&&(S=_.g7("REMAINING_DOVA_DEFERRED_CHUNKS",-1));S>0?(Y>0&&(Y=U.slice(0,Y),this.setInitialItemsOnDataChanged(Y)),(Y=this.renderElementsOutsideVisibleArea_)?Y.cancel():(Y=this.renderElementsOutsideVisibleArea_=new _.NH(2,"eocs"),_.oME(window,"scroll",function(){return p.renderDeferredElements()})),_.Bl(Y,function(){p.setInitialItemsOnDataChanged(U)}),_.en("REMAINING_DOVA_DEFERRED_CHUNKS",
S-1)):this.setInitialItemsOnDataChanged(U)}else if(this.itemsPath+".splices"==S.path)this.onItemsUpdated_(U);
else Y="shownItems"+S.path.substr(this.itemsPath.length),this.useSignals&&Y==="shownItems.length"||this.notifyPath(Y,S.value)}else this.cancelPendingTasks_()},
onItemsUpdated_:function(S){S&&(this.items_=this.get(this.itemsPath))&&(this.updateChangeRecord_(S),this.length_=this.items_.length,this.canShowMore=this.shownCount<this.length_,this.autoFill?(this.lastChunkTime_=Date.now(),this.tryRenderChunk_()):this.fillRemainingListItems())},
updateChangeRecord_:function(S){S=S.indexSplices;for(var p=0,U=S.length;p<U;p++){var Y=S[p];if(Y.index<this.shownCount&&(Y.removed&&this.splice("shownItems",Y.index,Y.removed.length),Y.addedCount)){var L=Y.object.slice(Y.index,Y.index+Y.addedCount);Y=["shownItems",Y.index,0];Y.push.apply(Y,L);this.splice.apply(this,Y)}}this.shownCount=this.shownItems?this.shownItems.length:0},
setInitialItemsOnDataChanged:function(S){this.cancelPendingTasks_();S||(S=[]);this.items_=S;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&&(_.ub("DISABLE_AUTOFILL")||this.disableAutoFill?this.fillRemainingListItems():(this.chunkCount_=this.initialCount,this.lastChunkTime_=Date.now(),this.canShowMore&&_.oH(this,this.tryRenderChunk_)))},
fillRange_:function(S,p){this.canShowMore&&this.items_&&(S=this.items_.slice(S,p),S.unshift("shownItems"),this.push.apply(this,S),this.shownCount=p,this.canShowMore=this.shownCount<this.length_)},
tryRenderChunk_:function(){var S=this;this.canShowMore&&_.w9(this,"renderChunk",function(){S.requestRenderChunk_()})},
requestRenderChunk_:function(){if(_.ub("SCHEDULED_LAZY_LIST")||this.renderDelay)return this.shouldUseTaskManager()||this.canScheduleJobs?(this.cancelPendingTasks_(),this.lazyListRenderJobId_=_.HG(this.getTaskManager(),this.boundRenderChunk_,this.renderDelay),!0):!1;requestAnimationFrame(this.boundRenderChunk_);return!0},
cancelPendingTasks_:function(){this.lazyListRenderJobId_&&this.getTaskManager().cancelJob(this.lazyListRenderJobId_);var S=this.renderElementsOutsideVisibleArea_;S&&(S.cancel(),this.renderElementsOutsideVisibleArea_=null)},
renderChunk_:function(){var S=Date.now();this.chunkCount_=Math.round(this.targetFrameTime_/(S-this.lastChunkTime_)*this.chunkCount_)||this.minChunkSize;this.lastChunkTime_=S;this.fillRange_(this.shownCount,Math.min(this.shownCount+this.chunkCount_,this.length_));this.lazyListRenderJobId_=0;this.tryRenderChunk_()},
computeFrameTime_:function(S){return Math.ceil(1E3/S)},
onCanShowMoreUpdated_:function(S){this.data&&this.items_!==null&&(S?this.partiallyRenderedItems_.add(this.items_):this.partiallyRenderedItems_.delete(this.items_))},
canScheduleJobsChanged_:function(S){!this.shouldUseTaskManager()&&this.data&&(!S&&this.canShowMore?(_.ruG(this,"renderChunk"),this.lazyListRenderJobId_&&this.getTaskManager().cancelJob(this.lazyListRenderJobId_)):S&&this.partiallyRenderedItems_.has(this.items_)&&(_.y("kevlar_lazy_list_resume_for_autofill")?this.autoFill&&this.tryRenderChunk_():this.tryRenderChunk_()))}}];var cL;_.A6={};
cL=function(){var S=_.HT.apply(this,arguments)||this;S.atStart=!0;S.atEnd=!0;S.startIndex=0;S.endIndex=0;S.scrollCount=0;S.initialStartIndex=0;S.disableScrollEventListener=!1;S.useFloorScrolling=!1;S.isSearch=!1;S.dragging=!1;S.dragMouseStart=0;S.dragOffsetStart=0;S.disableWheelScroll=!1;S.centerListItems=!1;S.offset=0;S.minComponentWidth=0;S.marginWidthRight=0;S.marginWidthLeft=0;S.setButtonsStateRequested=!1;S.itemsVisibilityObserver=null;S.fullyVisibleItemsIndices=[];S.JSC$12278_onWheelScroll=function(p){if(S.isSearch&&
!S.disableWheelScroll&&_.y("desktop_enable_dmpanel_wheel_scroll")){var U=p.shiftKey?Math.abs(p.deltaY)>Math.abs(p.deltaX)?p.deltaY:p.deltaX:p.deltaX;U!==0&&(p.preventDefault(),S.ytLazyListBehavior.fillRemainingListItems(),S.offset+=U,t6(S),S.reposition_())}};
S.onPointerDown=function(p){zrI(S)&&(S.dragMouseStart=p.clientX,S.dragOffsetStart=S.offset,S.dragging=!0)};
S.onPointerMove=function(p){zrI(S)&&S.dragging&&(S.ytLazyListBehavior.fillRemainingListItems(),S.offset=S.dragOffsetStart-(p.clientX-S.dragMouseStart),t6(S),S.reposition_())};
S.onPointerUp=function(){zrI(S)&&(S.dragging=!1)};
return S};
_.r(cL,_.HT);var QZI=function(S){var p=_.tB(S.hostElement).querySelector("#items").children;if(!p)return 0;var U=0;S=_.d(S.fullyVisibleItemsIndices);for(var Y=S.next();!Y.done;Y=S.next())U+=p[Y.value].clientWidth;return U},zrI=function(S){return S.isSearch&&_.y("desktop_enable_dmpanel_click_drag_scroll")};
cL.prototype.created=function(){this.cachedViewportWidth=_.g7("initialInnerWidth")||window.innerWidth;this.JSC$12278_cachedViewportHeight=_.g7("initialInnerHeight")||window.innerHeight;_.g7("REMAINING_DOVA_DEFERRED_CHUNKS",-1)==-1&&_.en("REMAINING_DOVA_DEFERRED_CHUNKS",6)};
cL.prototype.attached=function(){window.ShadyDOM&&window.ShadyDOM.noPatch||this.hostElement.shadowRoot.addEventListener("transitionend",this.onItemsTransitionEnd_.bind(this));!this.disableScrollEventListener&&_.y("desktop_enable_dmpanel_scroll")&&this.addScrollEventListeners();nFE(this)};
cL.prototype.detached=function(){window.ShadyDOM&&window.ShadyDOM.noPatch||this.hostElement.shadowRoot.removeEventListener("transitionend",this.onItemsTransitionEnd_.bind(this));!this.disableScrollEventListener&&_.y("desktop_enable_dmpanel_scroll")&&this.removeScrollEventListeners();var S;(S=this.itemsVisibilityObserver)==null||S.disconnect();this.itemsVisibilityObserver=null;var p;(p=this.itemsObserver)==null||p.disconnect()};
var nFE=function(S){var p=_.tB(S.hostElement).querySelector("#scroll-container");if(p){if(!S.itemsVisibilityObserver){var U=window.getComputedStyle(p).marginRight;S.itemsVisibilityObserver=new IntersectionObserver(function(Y){J0P(S,Y)},{root:p,
rootMargin:U,threshold:.98})}if(p=_.tB(S.hostElement).querySelector("#items"))S.itemsObserver=new Tnt(p,function(Y){y0I(S,Y)})}},y0I=function(S,p){K9m(S)&&(Array.from(p.addedNodes).filter(function(U){return U.nodeType===Node.ELEMENT_NODE}).forEach(function(U){S.itemsVisibilityObserver&&S.itemsVisibilityObserver.observe(U)}),Array.from(p.removedNodes).filter(function(U){return U.nodeType===Node.ELEMENT_NODE}).forEach(function(U){S.itemsVisibilityObserver&&S.itemsVisibilityObserver.unobserve(U)}))},
J0P=function(S,p){var U=new Set(S.fullyVisibleItemsIndices);
p=_.d(p);for(var Y=p.next();!Y.done;Y=p.next()){Y=Y.value;var L=Y.target.parentElement;L?(L=Array.from(L.children).indexOf(Y.target),Y.isIntersecting?U.add(L):U.has(L)&&U.delete(L)):_.eP(new _.y7("Parent element not found",Y.target.nodeName))}S.fullyVisibleItemsIndices=Array.from(U).sort(function(I,V){return I-V});
U.size===0?_.eP(new _.y7("No visible entries in horizontal list")):(S.startIndex=S.fullyVisibleItemsIndices[0],S.endIndex=S.fullyVisibleItemsIndices[S.fullyVisibleItemsIndices.length-1])},K9m=function(S){S.data?S=(S=S.data)&&S.itemSizeConstraint?"LIST_ITEM_SIZE_CONSTRAINT_EQUAL_HEIGHT"===S.itemSizeConstraint:!1:S=!1;
return S};
_.M=cL.prototype;_.M.addScrollEventListeners=function(){var S=_.tB(this.hostElement).querySelector("#scroll-container");S.style.touchAction="pan-y";S.addEventListener("wheel",this.JSC$12278_onWheelScroll);S.addEventListener("pointerdown",this.onPointerDown);S.addEventListener("pointermove",this.onPointerMove);window.addEventListener("pointerup",this.onPointerUp)};
_.M.removeScrollEventListeners=function(){var S=_.tB(this.hostElement).querySelector("#scroll-container");S.removeEventListener("wheel",this.JSC$12278_onWheelScroll);S.removeEventListener("pointerdown",this.onPointerDown);S.removeEventListener("pointermove",this.onPointerMove);window.removeEventListener("pointerup",this.onPointerUp)};
_.M.reset=function(){this.scrollCount=this.offset=0;this.reposition_();this.marginWidthLeft=this.marginWidthRight=this.minComponentWidth=0;this.initialStartIndex>0&&_.oH(this,this.setStartIndex,[this.initialStartIndex])};
_.M.reposition_=function(){var S=_.g7("HTML_DIR")=="rtl"?"":"-",p=_.tB(this.hostElement).querySelector("#items");p&&(p.style.transform="translateX("+S+this.offset+"px)");this.requestButtonsStateUpdate_()};
_.M.requestButtonsStateUpdate_=function(){this.setButtonsStateRequested||(this.setButtonsStateRequested=!0,_.oH(this,this.setButtonsState_))};
_.M.setButtonsState_=function(){this.setButtonsStateRequested=!1;var S=_.tB(this.hostElement).querySelector("#items").firstElementChild;if(S){this.minComponentWidth||(this.minComponentWidth=bkq(this,S));S=_.tB(this.hostElement).querySelector("#scroll-container").clientWidth;var p=_.tB(this.hostElement).querySelector("#items").clientWidth,U=this.get(this.ytLazyListBehavior.itemsPath,this);if(U){var Y=Math.round(S/this.minComponentWidth)||1;this.fullyVisibleItemsIndices.length===0&&(this.startIndex=
Math.round(this.offset/this.minComponentWidth),this.endIndex=Math.min(this.startIndex+Y,U.length)-1)}this.ytLazyListBehavior.canShowMore?p+this.minComponentWidth>=this.offset+S&&(this.atEnd=!1):this.atEnd=this.offset+S>=p-20?!0:!1;this.atStart=this.offset<=20}};
_.M.setStartIndex=function(S){if(!this.minComponentWidth){var p=_.tB(this.hostElement).querySelector("#items").firstElementChild;if(!p)return;this.minComponentWidth=bkq(this,p)}this.ytLazyListBehavior.fillRemainingListItems();this.offset=this.minComponentWidth*S;t6(this);this.reposition_()};
_.M.nextClick_=function(){this.ytLazyListBehavior.fillRemainingListItems();_.LC();var S=_.tB(this.hostElement).querySelector("#scroll-container").clientWidth;_.y("web_min_component_width_killswitch")||this.minComponentWidth||(this.minComponentWidth=bkq(this,_.tB(this.hostElement).querySelector("#items").firstElementChild));S=this.useFloorScrolling?Math.floor(S/this.minComponentWidth)||1:Math.round(S/this.minComponentWidth)||1;this.centerListItems&&this.scrollCount===0&&jZH(this);this.offset+=K9m(this)?
QZI(this):S*this.minComponentWidth;t6(this);this.reposition_();this.scrollCount++};
_.M.prevClick_=function(){var S=_.tB(this.hostElement).querySelector("#scroll-container").clientWidth;S=this.useFloorScrolling?Math.floor(S/this.minComponentWidth)||1:Math.round(S/this.minComponentWidth)||1;this.resizeSupportEnabled?(this.scrollCount--,this.offset=K9m(this)?QZI(this):this.minComponentWidth*this.scrollCount-1):this.offset-=K9m(this)?QZI(this):S*this.minComponentWidth;this.centerListItems&&jZH(this);t6(this);this.reposition_()};
_.M.onIronResize_=function(){this.resizeSupportEnabled&&_.oH(this,this.checkComponentWidthResize);this.requestButtonsStateUpdate_()};
_.M.onItemsTransitionEnd_=function(S){_.mF(S)===_.tB(this.hostElement).querySelector("#items")&&this.ytRendererBehavior.markDirty()};
_.M.onChildElementFocus_=function(S){S=S.target.closest("#items > *");var p=_.tB(this.hostElement).querySelector("#scroll-container");if(p.contains(S)){if(_.y("web_horizontal_list_behavior_focus_killswitch"))if(S.offsetLeft<this.offset)this.offset=Math.abs(S.offsetLeft)<S.clientWidth?0:S.offsetLeft;else if(S.offsetLeft+S.clientWidth>this.offset+p.clientWidth)this.ytLazyListBehavior.fillRemainingListItems(),_.LC(),this.offset=S.offsetLeft+S.clientWidth-p.clientWidth;else return;else{var U=_.tB(this.hostElement).querySelector("#items"),
Y=_.g7("HTML_DIR")==="rtl",L=Y?U.clientWidth-S.offsetLeft:S.offsetLeft;U=Y?U.clientWidth-(S.offsetLeft+S.clientWidth):S.offsetLeft+S.clientWidth;var I=Y?L>this.offset+p.clientWidth:L<this.offset,V=Y?U<this.offset:U>this.offset+p.clientWidth,W=Y?I:V;if(Y?V:I)p=Y?U:L,this.offset=Math.abs(p)<S.clientWidth?0:p;else if(W)this.ytLazyListBehavior.fillRemainingListItems(),_.LC(),this.offset=(Y?L:U)-p.clientWidth;else return}t6(this);this.reposition_()}};
_.M.observeShownItems_=function(){this.reset()};
_.M.checkComponentWidthResize=function(){var S=_.tB(this.hostElement).querySelector("#items").firstElementChild;S&&(S=bkq(this,S),this.centerListItems||S!==this.minComponentWidth)&&(this.minComponentWidth=S,this.offset=S*this.scrollCount,this.centerListItems&&jZH(this),t6(this),this.reposition_())};
var bkq=function(S,p){var U=window.getComputedStyle(p).marginRight;U=Math.floor(Number(U.replace("px","")));var Y=window.getComputedStyle(p).marginLeft;Y=Math.floor(Number(Y.replace("px","")));S.centerListItems&&!S.marginWidthRight&&(S.marginWidthRight=U,S.marginWidthLeft=Y);return S.resizeSupportEnabled?p.getBoundingClientRect().width+U:p.offsetWidth+U},t6=function(S){var p=_.tB(S.hostElement).querySelector("#scroll-container").clientWidth,U=_.tB(S.hostElement).querySelector("#items").clientWidth;
S.offset<0?S.offset=0:S.offset+p>=U&&(S.offset=U-p)},jZH=function(S){S.offset-=(_.tB(S.hostElement).querySelector("#scroll-container").clientWidth+S.marginWidthRight-S.minComponentWidth)/2-S.marginWidthLeft};
_.$u.Object.defineProperties(cL.prototype,{nonDeferredItemCount:{configurable:!0,enumerable:!0,get:function(){var S=_.g7("NON_DEFERRED_HORIZONTAL_LIST_ROW_COUNT",-1);if(S==-1)S=this.JSC$12278_cachedViewportHeight,S=S>1320?5:S>1020?4:S>730?3:S>430?2:1;else if(S==0)return 0;_.en("NON_DEFERRED_HORIZONTAL_LIST_ROW_COUNT",S-1);S=_.g7("NON_DEFERRED_HORIZONTAL_LIST_ITEM_COUNT",-1);if(S>-1)return S;S=this.cachedViewportWidth;S=S>1600?6:S>1400?5:S>1300?4:S>1090?5:S>870?4:S>660?3:2;_.en("NON_DEFERRED_HORIZONTAL_LIST_ITEM_COUNT",
S);return S},
set:function(){}},
resizeSupportEnabled:{configurable:!0,enumerable:!0,get:function(){return!_.y("kevlar_disable_component_resizing_support")&&!!this.supportComponentResize}}});
cL.prototype.observeShownItems_=cL.prototype.observeShownItems_;cL.prototype.onChildElementFocus_=cL.prototype.onChildElementFocus_;cL.prototype.onItemsTransitionEnd_=cL.prototype.onItemsTransitionEnd_;cL.prototype.onIronResize_=cL.prototype.onIronResize_;cL.prototype.prevClick_=cL.prototype.prevClick_;cL.prototype.nextClick_=cL.prototype.nextClick_;cL.prototype.setButtonsState_=cL.prototype.setButtonsState_;cL.prototype.requestButtonsStateUpdate_=cL.prototype.requestButtonsStateUpdate_;
cL.prototype.reposition_=cL.prototype.reposition_;cL.prototype.reset=cL.prototype.reset;_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],cL.prototype,"ytRendererBehavior",void 0);_.x([_.F(_.qb.YtLazyListBehavior),_.E("design:type",Object)],cL.prototype,"ytLazyListBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],cL.prototype,"data",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],cL.prototype,"atStart",void 0);
_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],cL.prototype,"atEnd",void 0);_.x([_.g(),_.E("design:type",Object)],cL.prototype,"startIndex",void 0);_.x([_.g(),_.E("design:type",Object)],cL.prototype,"endIndex",void 0);_.x([_.g({value:6}),_.E("design:type",Number)],cL.prototype,"initialCount",void 0);_.x([_.g(),_.E("design:type",Object)],cL.prototype,"scrollCount",void 0);_.x([_.g(),_.E("design:type",Object)],cL.prototype,"initialStartIndex",void 0);
_.x([_.g(),_.E("design:type",Object)],cL.prototype,"disableScrollEventListener",void 0);_.x([_.g(),_.E("design:type",Object)],cL.prototype,"supportComponentResize",void 0);_.x([_.g({value:function(){var S=this;return function(){return S.prevClick_()}}}),
_.E("design:type",Function)],cL.prototype,"boundPrevClick",void 0);_.x([_.g({value:function(){var S=this;return function(){return S.nextClick_()}}}),
_.E("design:type",Function)],cL.prototype,"boundNextClick",void 0);_.x([_.g(),_.E("design:type",Object)],cL.prototype,"useFloorScrolling",void 0);_.x([_.g(),_.E("design:type",Object)],cL.prototype,"isSearch",void 0);_.x([_.g(),_.E("design:type",Object)],cL.prototype,"dragging",void 0);_.x([_.g(),_.E("design:type",Object)],cL.prototype,"dragMouseStart",void 0);_.x([_.g(),_.E("design:type",Object)],cL.prototype,"dragOffsetStart",void 0);
_.x([_.g(),_.E("design:type",Object)],cL.prototype,"disableWheelScroll",void 0);_.x([_.g(),_.E("design:type",Object)],cL.prototype,"centerListItems",void 0);_.x([_.Vd("iron-resize"),_.T4("guideOpened"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],cL.prototype,"onIronResize_",null);_.x([_.Vd("transitionend"),_.E("design:type",Function),_.E("design:paramtypes",[Event]),_.E("design:returntype")],cL.prototype,"onItemsTransitionEnd_",null);
_.x([_.Vd("focusin"),_.E("design:type",Function),_.E("design:paramtypes",[Event]),_.E("design:returntype")],cL.prototype,"onChildElementFocus_",null);_.x([_.T4("shownItems"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],cL.prototype,"observeShownItems_",null);cL=_.x([_.Dl()],cL);_.A6.YtdHorizontalListBehavior=[];_.A6.YtdHorizontalListBehavior.push(_.ji,_.c.YtRendererBehavior,_.qb.YtLazyListBehavior,_.uc.YtdGuideStateAwareBehavior,cL.prototype);var M5G=["APP_STATE","PI"];var r0m=_.x1(["about:blank"]),GcP={pushState:window.history.pushState,replaceState:window.history.replaceState};var SW=function(S){this.initialized=!1;this.internalReplaceState=this.internalPushState=null;this.history=S;this.internalPushState=S.pushState.bind(S);this.internalReplaceState=S.replaceState.bind(S)};
SW.prototype.init=function(){this.initialized=!0};
SW.prototype.pushState=function(S,p){this.initialized||this.init();this.internalPushState&&this.internalPushState(S,"",p)};
SW.prototype.replaceState=function(S,p){this.initialized||this.init();this.internalReplaceState&&this.internalReplaceState(S,"",p)};
SW.prototype.getState=function(){return this.history&&this.history.state};var hrm=function(S){var p=function(){var U=S.apply(this,arguments)||this;U.boundHistoryPushState=!1;U.boundHistoryReplaceState=!1;U.debugInfo={};return U};
_.r(p,S);p.prototype.init=function(){var U=_.JY("IFRAME");_.PE(U,_.UF(r0m));U.sandbox="allow-same-origin";U.style.display="none";this.iframe=U;document.body.appendChild(U);this.bindHistoryStateFunctions();S.prototype.init.call(this)};
p.prototype.bindHistoryStateFunctions=function(){var U=this,Y=[],L;this.iframe&&((L=this.iframe.contentWindow)==null?0:L.history)&&(L=this.iframe.contentWindow.history)&&(Y.push(L),Object.getPrototypeOf(L)&&Y.push(Object.getPrototypeOf(L)));window.history&&Y.push(window.history);L=window.history;Object.getPrototypeOf(L)&&Y.push(Object.getPrototypeOf(L));Y.push(GcP);L=function(V){for(var W=null,O=0;O<Y.length;O++){var D=Y[O][V];if(typeof D==="function"){W=D.bind(window.history);U.debugInfo[V]=O;break}}return W};
if(!this.boundHistoryReplaceState){var I=L("replaceState");I&&(this.internalReplaceState=I,this.boundHistoryReplaceState=!0)}!this.boundHistoryPushState&&(L=L("pushState"))&&(this.internalPushState=L,this.boundHistoryPushState=!0)};
return p}(SW),Rrq=function(){return hrm.call(this,window.history)||this};
_.r(Rrq,hrm);Rrq.prototype.getThirdPartyManipulationSuspected=function(){return this.initialized&&this.boundHistoryPushState!==this.boundHistoryReplaceState};var p7=function(S){this.browserHistory=S;this.initialized=!1};
p7.prototype.init=function(){this.initialized||(this.browserHistory.init(),this.initialized=!0,window.addEventListener("popstate",this.handlePopstate.bind(this)))};
p7.prototype.pushState=function(S,p){this.initialized||this.init();this.browserHistory.pushState(S,p)};
p7.prototype.replaceState=function(S,p){this.initialized||this.init();this.browserHistory.replaceState(S,p)};
p7.prototype.handlePopstate=function(S){return S.state};_.F9Q=function(S,p,U,Y,L){this.endpoint=S;this.forward=p;this.historyEntry=U;this.JSC$26568_savedComponentState=Y;this.legacyBorder=L===void 0?!1:L};var X9Q=function(S,p){this.rootData=S;this.scrollTop=p};var yj=new _.$g("PAGE_REQUEST_TOKEN"),tWl=new _.$g("FETCH_PBJ_TOKEN");_.UQ=new _.$g("EPHEMERAL_STORE_TOKEN");_.YB=function(S){this.data=Object.assign({},S);var p;(p=this.data.innertubeResponse)==null||delete p.frameworkUpdates};
_.YB.prototype.isExpired=function(){return Number(this.data.expireTimestampMs||0)<(0,_.AI)()};
_.Y1=function(S){return Object.assign({},S.data.innertubeResponse,{cacheMetadata:{isCacheHit:!0}})};var PuP=function(){this.maxSize=100;this.timeToDataCache=new Map};
PuP.prototype.get=function(S){var p=this.timeToDataCache.get(S);p&&(this.timeToDataCache.delete(S),this.timeToDataCache.set(S,p));if(p&&p.rootData&&(_.y("web_use_response_store_for_history_cache")||_.y("mweb_use_new_history_manager"))){var U=_.tW().resolve(_.UQ),Y=Zkj(p),L=!!Y;if(Y){if(Y.content){var I=L7(U,Y.content);L&&I?p.rootData.response=_.Y1(I):L=!1}Y.player&&(I=L7(U,Y.player),L&&I?p.rootData.playerResponse=_.Y1(I):L=!1);Y.reelSequence&&(U=L7(U,Y.reelSequence),L&&U?p.rootData.reelWatchSequenceResponse=
_.Y1(U):L=!1)}L||(this.timeToDataCache.delete(S),p=void 0)}return p};
PuP.prototype.set=function(S,p){if(p.rootData&&(_.y("web_use_response_store_for_history_cache")||_.y("mweb_use_new_history_manager"))){var U=Zkj(p),Y=Object.assign({},p.rootData);U&&(U.content&&p.rootData.response&&(sZt(this,U.content,p.rootData.response),Y.response=null),U.player&&p.rootData.playerResponse&&(sZt(this,U.player,p.rootData.playerResponse),Y.playerResponse=null),U.reelSequence&&p.rootData.reelWatchSequenceResponse&&(sZt(this,U.reelSequence,p.rootData.reelWatchSequenceResponse),Y.reelWatchSequenceResponse=
null));p=new X9Q(Y,p.scrollTop)}this.timeToDataCache.has(S)?this.timeToDataCache.delete(S):this.timeToDataCache.size>=this.maxSize&&(U=this.timeToDataCache.keys().next(),this.timeToDataCache.delete(U.value));this.maxSize!==0&&this.timeToDataCache.set(S,p)};
PuP.prototype.clear=function(){this.timeToDataCache.clear()};
var Zkj=function(S){var p=_.tW().resolve(_.AW(yj)),U;if((U=S.rootData)==null?0:U.endpoint)return p==null?void 0:Y5k(p,S.rootData.endpoint);var Y;_.eP(new _.y7("History snapshot response data does not contain endpoint",(Y=S.rootData)==null?void 0:Y.url));return null},sZt=function(S,p,U){if(S.maxSize>0){var Y;
(S=(Y=U.responseContext)==null?void 0:Y.maxAgeSeconds)&&Number(S)>0&&(Y=_.tW().resolve(_.UQ),U=c7(U,S),Y.put(p,new _.YB(U)))}};var erd=function(S,p,U){this.endpoint=p;this.JSC$26573_savedComponentState=U===void 0?null:U;this.entryTime=S};var OFu=1;var MK=function(S){var p=function(){var U=S.apply(this,[].concat(_.jo(_.jO.apply(0,arguments))))||this;U.historyEntryTime=0;U.historySnapshotCache=U.createHistoryCache();return U};
_.r(p,S);p.prototype.createHistoryCache=function(){return new PuP};
p.prototype.saveAndReplace=function(U,Y,L){var I=window.location.href;var V=V===void 0?{}:V;var W=(W=this.browserHistory.getState())&&W.entryTime?W.entryTime:kmw();U=this.createNewHistoryEntry(U,V,W);this.saveSnapshot(W,Y,L);this.replaceState(U,I||window.location.href)};
p.prototype.saveAndPush=function(U,Y,L,I,V){V=V===void 0?{}:V;this.saveSnapshot(this.historyEntryTime,L,I);L=this.historySnapshotCache;I=this.historyEntryTime;var W=L.timeToDataCache.keys();W=_.d(W);for(var O=W.next();!O.done;O=W.next())O=O.value,O>I&&L.timeToDataCache.delete(O);Y=this.createNewHistoryEntry(Y,V);this.pushState(Y,U)};
p.prototype.saveSnapshot=function(U,Y,L){this.historySnapshotCache.set(U,new X9Q(Y,L))};
p.prototype.createNewHistoryEntry=function(U,Y,L){L=L===void 0?kmw():L;return new erd(L,U,Y)};
p.prototype.handlePopstate=function(U){var Y=S.prototype.handlePopstate.call(this,U),L=null,I=null,V=!1,W=null;Y&&Y.entryTime&&(W=this.historySnapshotCache.get(Y.entryTime)||null,V=Y.entryTime>this.historyEntryTime,this.historyEntryTime=Y.entryTime,L=Y.endpoint,I=Y.JSC$26573_savedComponentState);this.handleHistoryCacheLoad(new _.F9Q(L,V,W,I),U);return Y};
p.prototype.pushState=function(U,Y){Number(U==null?void 0:U.entryTime)>=0&&(this.historyEntryTime=U.entryTime);S.prototype.pushState.call(this,U,Y)};
p.prototype.replaceState=function(U,Y){Number(U==null?void 0:U.entryTime)>=0&&(this.historyEntryTime=U.entryTime);S.prototype.replaceState.call(this,U,Y)};
p.prototype.handleHistoryCacheLoad=function(){};
return p}(p7),gFd=function(){var S=MK.call(this,new Rrq)||this;
S.dispatchElement=null;S.entryIndex=0;return S};
_.r(gFd,MK);_.M=gFd.prototype;_.M.init=function(S){S=S===void 0?!0:S;MK.prototype.init.call(this);this.initialized||(S||this.saveAndReplace(null,null,0),"scrollRestoration"in window.history&&(window.history.scrollRestoration="manual"))};
_.M.handlePopstate=function(S){var p=null;S.state||(p="History popstate has no state - "+this.getDebugString());if(!this.dispatchElement)return MK.prototype.handlePopstate.call(this,S);var U=new CustomEvent("yt-history-pop",{cancelable:!0});_.St(this.dispatchElement,"yt-history-pop",[U,{errorMsg:p}]);_.pp(this.dispatchElement,"yt-close-all-popups-action");if(!U.defaultPrevented){U=_.tW().resolve(_.oy);p=U.getCurrentData();var Y=U.getCurrentPage();U=0;Y?(Y=_.St(this.dispatchElement,"yt-get-page-offset",
[Y]),Y.length>0&&(U=Y[0])):_.eP(new _.y7("getCurrentPage returned undefined",{debugString:this.getDebugString(),page:p?p.page:"undefined"}));p&&(p.csn=_.X$());this.saveSnapshot(this.historyEntryTime,p,U)}return MK.prototype.handlePopstate.call(this,S)};
_.M.handleHistoryCacheLoad=function(S,p){S.forward?this.entryIndex++:this.entryIndex--;this.dispatchElement&&(_.d(_.pp(this.dispatchElement,"yt-history-will-navigate",[p])).next().value||_.St(this.dispatchElement,"yt-history-load",[p,S]))};
_.M.pushState=function(S,p){this.entryIndex++;if(!this.browserHistory.boundHistoryPushState){var U=new _.y7("history.pushState is not a function",this.getDebugString());_.ZP(U)}MK.prototype.pushState.call(this,S,p)};
_.M.replaceState=function(S,p){if(!this.browserHistory.boundHistoryReplaceState){var U=new _.y7("history.replaceState is not a function",this.getDebugString());_.ZP(U)}MK.prototype.replaceState.call(this,S,p)};
_.M.saveAndPush=function(S,p,U,Y,L){L=L===void 0?{}:L;U&&(U.csn=_.X$());MK.prototype.saveAndPush.call(this,S,p,U,Y,L)};
_.M.getDebugString=function(){var S=[];this.initialized&&S.push("i");this.browserHistory.boundHistoryReplaceState&&S.push("bhr");this.browserHistory.boundHistoryPushState&&S.push("bhs");"replaceState"in this.browserHistory.debugInfo&&S.push("brs:"+String(this.browserHistory.debugInfo.replaceState));"pushState"in this.browserHistory.debugInfo&&S.push("bps:"+String(this.browserHistory.debugInfo.pushState));this.entryIndex>0&&S.push("ei:"+String(this.entryIndex));return S.join(",")};
_.Ir=function(S,p){S.init(!0);var U=S.browserHistory.getState();S.replaceState(U,t7(p))};
gFd.prototype.getThirdPartyManipulationSuspected=function(){return this.initialized&&this.browserHistory.getThirdPartyManipulationSuspected()};_.ds=new _.$g("DESKTOP_HISTORY_MANAGER_TOKEN");var umc=[10,20,30,40,50,60],V6=function(){this.currentPartitionIndex=0},w9H=function(S){ptm({mainAppWeb:_.aS(),
survivalSli:{partitionMinute:S,survivalStatus:"SURVIVAL_STATUS_TYPE_ALIVE_START"}})},lAc=function(S){ptm({mainAppWeb:_.aS(),
survivalSli:{partitionMinute:S,survivalStatus:"SURVIVAL_STATUS_TYPE_ALIVE_END"}})},aAl=function(S){return S.currentPartitionIndex>=0&&S.currentPartitionIndex<umc.length?umc[S.currentPartitionIndex]:-1},fAc=function(S){return S.currentPartitionIndex>0&&S.currentPartitionIndex-1<umc.length?umc[S.currentPartitionIndex-1]:-1};
V6.prototype.start=function(){if(this.intervalId===void 0){this.currentPartitionIndex=0;var S=fAc(this);S>0&&lAc(S);S=aAl(this);S>0&&w9H(S);Cul(this)}};
var Cul=function(S){var p=aAl(S);if(p>0){var U=fAc(S);U<0&&(U=0);S.intervalId=_.PA.addJob(function(){var Y=fAc(S);Y>0&&lAc(Y);Y=aAl(S);Y>0&&w9H(Y);Cul(S)},3,(p-U)*6E4);
S.currentPartitionIndex+=1}else S.currentPartitionIndex=-1};var xjH=function(){this.skipNextNavigation=!1},EFj=function(S,p,U){if(!p)return!1;
if(S.skipNextNavigation)return S.skipNextNavigation=!1;if(_.b(U,_.Cv))return!1;var Y,L,I;if((Y=_.b(U,_.kM))==null?0:(L=Y.browseEndpointContextSupportedConfigs)==null?0:(I=L.browseEndpointContextMainConfig)==null?0:I.skipConfirmation)return!1;var V;return((V=_.b(p.commandMetadata,_.NU))==null?void 0:V.webPageType)==="WEB_PAGE_TYPE_MINI_APP"};
xjH.prototype.showConfirmationDialog=function(S,p){this.navigateParams=p;this.customConfirmationCommand?_.tW().resolve(_.cQ).resolveCommand(this.customConfirmationCommand):(p={openPopupAction:{popup:{confirmDialogRenderer:{title:_.Ec(_.Oh("NAVIGATION_CONFIRMATION_TITLE")),dialogMessages:[_.Ec(_.Oh("NAVIGATION_CONFIRMATION_DESCRIPTION"))],cancelButton:{buttonRenderer:{text:_.Ec(_.Oh("CANCEL")),command:{signalAction:{signal:"CANCEL_NAVIGATION"}}}},confirmButton:{buttonRenderer:{text:_.Ec(_.Oh("EXIT")),
command:{signalAction:{signal:"RESUME_NAVIGATION"}}}}}},popupType:"DIALOG"}},_.xv.getInstance().triggerAction("yt-open-popup-action",p,S))};
xjH.prototype.cancelPendingNavigation=function(){var S;((S=this.navigateParams)==null?void 0:S.navigationType)===2&&(this.skipNextNavigation=!0,this.navigateParams.isForwardHistoryNavigation?window.history.back():window.history.forward())};var mjc=function(){},vFe=function(S,p,U,Y,L,I,V){U=U===void 0?{}:U;
V=V===void 0?{}:V;var W=_.Oz.instance,O,D=(O=_.b(p,_.Cv))==null?void 0:O.url;return D?w_d(W,D,U,window.location.href,function(z,Q){oFw(S,z,Q,!1,!0,U,I,Y)},function(){return!1}):wI(W,p,U,window.location.href,DG(p),function(z,Q){oFw(S,z,Q,!1,!0,U,I,Y)},L,V)},oFw=function(S,p,U,Y,L,I,V,W){if(!S.JSC$12336_chunkHandler)if(U.page==="watch"||U.page==="learning_journey_watch")if(L||Y){if(_.y("kevlar_continue_playback_without_player_response")){var O;
var D=(O=_.b(W,_.E$))==null?void 0:O.videoId}S.JSC$12336_chunkHandler=new rOI(_.$L,{clientParams:{miniplayer:!1,autoSaveToQueue:!0,fromHistory:Y,previousVideoId:D},tempData:I},V)}else S.JSC$12336_chunkHandler=new JOl(_.$L);else U.page==="shorts"&&L&&!Y?S.JSC$12336_chunkHandler=new jrm(_.$L,{clientParams:{miniplayer:!1,autoSaveToQueue:!1,fromHistory:!1},tempData:I},V):S.JSC$12336_chunkHandler=new yOw(V);S.JSC$12336_chunkHandler.processChunk({endpoint:p,data:U});return S.JSC$12336_chunkHandler.cS.promise},
$jw=function(S,p,U,Y,L){(U=_.kQl(U))&&oFw(S,p,U,!1,!0,Y,void 0,L)};var ikw=function(){this.pendingNavigationPromise=null};
_.M=ikw.prototype;_.M.hasPendingNavigation=function(){return!!this.pendingNavigationPromise};
_.M.cancelPendingNavigation=function(){this.pendingNavigationPromise&&(this.pendingNavigationPromise=null)};
_.M.addEventListener=function(){throw Error("wh");};
_.M.dispatchEvent=function(){throw Error("wh");};
_.M.removeEventListener=function(){throw Error("wh");};var NTc=["__Secure-1PAPISID","SAPISID","__Secure-3PAPISID"],TF=function(){_.OD.call(this);this.pollingInterval=3E3;this.sessionCookies=[null,null,null];BTc(this)};
_.r(TF,_.OD);TF.prototype.verifyUser=function(){var S=BTc(this),p=S.logout;if(!S.sessionChange)return!0;this.dispatchEvent("ytsessionchange");p&&this.dispatchEvent("ytuserinvalid");return!1};
var BTc=function(S){var p=NTc.map(function(L){var I;return(I=_.D5.get(L))!=null?I:""}),U=p.some(function(L,I){return S.sessionCookies&&S.sessionCookies[I]!==""&&L===""}),Y=p.some(function(L,I){return S.sessionCookies&&S.sessionCookies[I]!==L});
S.sessionCookies=p;return{logout:U,sessionChange:Y}};
TF.prototype.clearTimeout=function(){this.scheduledJobId&&(_.PA.cancelJob(this.scheduledJobId),this.scheduledJobId=void 0)};var nDw=new _.$g("POSTMESSAGE_TUNNEL_TOKEN");var DMN=["/parent_tools","/file_download","/artist_roster"],KIw=[U8k,Yee,L2d,Inu,M6w,pad,d8e,V6N];var qNw=new _.$g("APP_ROOT");var WW=new _.$g("NAVIGATION_CONFIRMATION_SERVICE");var A0H="/account /account_advanced /account_billing /account_notifications /account_playback /account_privacy /account_sharing /cart /channel/ /clip /effect/ /feed/ /gaming /gaming/ /hashtag /learning /manage_red /minor_moment /musicpremium /new /originals /paid_memberships /place /playables /playlist /podcasts /post/ /premium /product/ /reporthistory /results /search /shopcollection/ /shorts/ /show/ /source/ /user/ /watch /youtuberedoriginals".split(" "),tse=[{url:"/podcasts",expFlag:"enable_polymer_navigation_for_podcasts_destination_page"}],
OQ=function(S,p){this.pendingNavigationPromise=null;this.JSC$12354_clientRoot=S;this.historyManager=p;this.logger=null;this.numNavigations=-1;this.lastNavigationUrl=null;this.resetWarmLoads=!1;this.searchDebugUrlMatcher=new RegExp(/\/results\?.*deb|\/scraper_results\?.*deb|\/results\?.*enable=|\/scraper_results\?.*enable=/);this.isMiniplayerExpansion=!1;this.currentEndpoint=null;this.pageFetcher=new mjc;this.debugString=S.is;S={"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};_.E9(_.xv.getInstance(),S,this.JSC$12354_clientRoot)},YAd,LIP,M5t,IvI,UMl;
_.r(OQ,ikw);OQ.prototype.reload=function(){_.lE(window.location.href)};
var zbm=function(S){S.currentEndpoint&&_.b(S.currentEndpoint,_.QX)?S.reload():S.currentEndpoint&&S.navigate(S.currentEndpoint,!0,void 0,{disableCache:!0})};
OQ.prototype.navigate=function(S,p,U,Y,L,I,V,W){p=p===void 0?!1:p;U=U===void 0?{}:U;Y=Y===void 0?{}:Y;var O=_.tW().resolve(WW),D;if(!V&&EFj(O,(D=this.currentEndpoint)!=null?D:void 0,S))return O.showConfirmationDialog(this.JSC$12354_clientRoot.parentElement,{endpoint:S,reload:p,params:U,tempData:Y,requestType:L,createScreenConfig:I}),!1;var z=_.Pt();_.Zr(z,"eocs")||z.parkOrScheduleJob(function(){z.processSignal("eocs")},10,"eor");
V=DG(S);O=Y.autonav==="1";D=_.X$();TF.instance||(TF.instance=new TF);var Q=TF.instance.verifyUser(),J;if(_.y("enable_dark_theme_only_on_shorts")){var K=document.documentElement.hasAttribute("dark"),G=_.bE(!0)==="USER_INTERFACE_THEME_DARK";if(V==="shorts"){if(!K)if(_.y("enable_dark_theme_only_on_shorts_control")){if(!window.location.href.includes("/shorts/")){var X;_.lE((X=_.b(S==null?void 0:S.commandMetadata,_.NU))==null?void 0:X.url,void 0,void 0,window.top)}}else{var Z;_.lE(_.od((Z=_.b(S==null?
void 0:S.commandMetadata,_.NU))==null?void 0:Z.url,{theme:"dark"}),void 0,void 0,window.top)}}else if(_.y("enable_dark_theme_only_on_shorts_control")){if(window.location.href.includes("/shorts/")&&!K){var l;_.lE(_.od((l=_.b(S==null?void 0:S.commandMetadata,_.NU))==null?void 0:l.url,{themeRefresh:1}),void 0,void 0,window.top)}}else if(G!==K){var a;_.lE(_.od((a=_.b(S==null?void 0:S.commandMetadata,_.NU))==null?void 0:a.url,{themeRefresh:1}),void 0,void 0,window.top)}}if(V==="watch"){if(c0j(_.tW().resolve(_.eC),
S)&&(Q||_.y("fix_miniplayer_navigation_killswitch")))return!1;_.y("block_all_player_prefetch_requests")||(J=HtQ(_.p4(_.k2),S,O))}else{var N,m=(N=_.b(this.currentEndpoint,_.E$))==null?void 0:N.videoId;m&&_.na.getInstance().then(function(Ru){Ru&&Ru.set("yt-miniplayer-shown-video-id",m)})}J&&(U.frags=J.missingFragments_.join(","));
X=null;var A;Z=(A=_.b(S==null?void 0:S.commandMetadata,_.NU))==null?void 0:A.ignoreNavigation;if(!Z)if(_.y("kevlar_command_url")){var q;X=(q=_.b(S==null?void 0:S.commandMetadata,_.NU))==null?void 0:q.url}else X=_.ZzG(S,U);if(X&&this.pendingNavigationPromise){if(this.lastNavigationUrl&&X==this.lastNavigationUrl)return _.ha({navigationRequestedSameUrl:!0}),!1;this.pendingNavigationPromise.cancel("canceled pendingNavigationPromise");_.TU(gn(),"CANCELLED")}X&&(this.lastNavigationUrl=X);Ajd();_.en("IS_HOMEPAGE_COLD",
!1);_.en("IS_RESULTS_PAGE_COLD",!1);_.en("IS_WATCH_PAGE_COLD",!1);S.loggingUrls&&S.loggingUrls.forEach(function(Ru){Ru.baseUrl&&_.Cf(Ru.baseUrl)});
_.Gmw(S,I?I.layer:0)&&_.y("kevlar_flush_logs_on_away_navigation")&&_.Fr();if(bFw(S))return!1;itt(V,L);if(!X)return Z||_.eP(new _.y7("Can't construct url for endpoint",S)),_.TU(gn(),"FAILURE"),!1;_.HFk();A=S&&_.b(S,_.kM)&&_.b(S,_.kM).browseId.startsWith("UC");U=(q=_.y("enable_dark_theme_only_on_shorts")&&V==="shorts"?!1:_.jv()&&document.documentElement.hasAttribute("dark")!==_.KH())?{themeRefresh:1}:{};q&&!_.Q7()&&_.bE()==="USER_INTERFACE_THEME_DARK"&&(U.theme="dark");A=q||SAd(X)&&!A&&!_.y("kevlar_disable_url_allowlist");
Q||(A=!0);if(A||_.g7("DISABLE_WARM_LOADS")||this.resetWarmLoads){if(window.self!==window.top){try{var TG;var Je=(TG=window.top)==null?void 0:TG.location.href}catch(Ru){var GG;Je=(GG=Ru)==null?void 0:GG.message}_.eP(new _.y7("Attempting to redirect in iframe",{selfUrl:window.self.location.href,topUrl:Je}))}S=_.y("kevlar_redirect_on_window_killswitch")?window.top:window;wz(X);_.lE(_.od(X,U),void 0,void 0,S);_.TU(gn(),"ABORTED");return!1}_.y("kevlar_early_popup_close")&&_.St(this.JSC$12354_clientRoot,
"yt-close-all-popups-action",[["ytd-video-download-toast-renderer"]]);this.pageFetcher.JSC$12336_chunkHandler=void 0;var Zw;Je=DG((Zw=this.currentEndpoint)!=null?Zw:void 0);(Zw=V==="shorts"&&Je==="shorts")||_.SwE();_.lb(EgG)("nr",void 0);O&&_.ha({webInfo:{navigationReason:"an"}});S.clickTrackingParams&&(Y.itct=S.clickTrackingParams,Y.csn=D);Vjr(Y);Y.endpoint=JSON.stringify(S);_.y("enable_unknown_lact_fix_on_html5")&&(_.tW().resolve(_.rY),Y.lact=_.pv());_.h9.isEmpty(Y)||_.$n(X,Y);!_.y("disable_miniplayer_expansion_log")&&
this.isMiniplayerExpansion&&(I=Object.assign({},{layer:0},I,{parentLayer:3}));this.pendingNavigationPromise=I=vFe(this.pageFetcher,S,Y,this.currentEndpoint,this.JSC$12354_isNetworkPromiseStale.bind(this),I,W);I=I.then(this.handleNavigateSuccess.bind(this,I,S,J,Y),this.handleNavigateFail.bind(this,I,S));_.Vy().navigationFinishPromise=I;p={endpoint:S,pageType:V,url:t7(X),reload:!!p,noProgressBar:_.y("web_disable_page_navigation_progress")||Zw};L&&(p.type=L);this.fireEvent("yt-navigate-start",p);J&&
$jw(this.pageFetcher,S,J,Y,this.currentEndpoint);return!0};
OQ.prototype.JSC$12354_isNetworkPromiseStale=function(S){return S!=this.pendingNavigationPromise};
var p0j=function(S,p,U,Y,L){var I=DG(p);p={endpoint:p,pageType:I};L&&(p.errorMessage=L);_.eP(U);p.navigationDoneMs=_.Fg("nd");p.navigationErrorReason=Y;S.fireEvent("yt-navigate-error",p)};
OQ.prototype.handleNavigateFail=function(S,p,U){var Y=void 0;U instanceof _.aA&&(Y=U,XXE(U));if(this.JSC$12354_isNetworkPromiseStale(S))return _.jV(Y);_.TU(gn(),"FAILURE");p0j(this,p,U,"101");return _.jV(U)};
OQ.prototype.handleNavigateSuccess=function(S,p,U,Y,L){if(this.JSC$12354_isNetworkPromiseStale(S))return _.Mw();this.pendingNavigationPromise=null;if(!L)return p=new _.y7("Missing data in response for navigation endpoint",p),_.jV(p);if(L.reload)return window.location.reload(!0),_.Mw();U&&(S={},_.h9.extend(S,_.kQl(U),L),L=S);var I,V;U=(I=L)==null?void 0:(V=I.timing)==null?void 0:V.responseStart;U!=null&&_.Fg("srt",U);_.Fg("pdc");var W,O;I=(W=L)==null?void 0:(O=W.timing)==null?void 0:O.info;I!=null&&
(W=_.lb(_.$Ce)(I),_.ha(W));_.TU(gn(),"SUCCESS");UMl(this,p,L,1,Y);return _.Mw()};
var SAd=function(S){var p=S;_.y("kevlar_no_redirect_to_classic_2_ks")||(p=(new _.ma(S)).getPath());if(p==="/"||p==="/red")return!1;var U=!0;A0H.forEach(function(Y){S.indexOf(Y)===0&&(U=!1)});
tse.forEach(function(Y){var L=Y.url;_.y(Y.expFlag)&&S.indexOf(L)===0&&(U=!1)});
return U};
OQ.prototype.publishPageData=function(S){this.fireEvent("yt-page-data-fetched",{pageData:S})};
YAd=function(S,p,U,Y,L,I){var V=null;p.page!=="watch"&&p.page!=="learning_journey_watch"||Y?p.filler||_.St(S.JSC$12354_clientRoot,"yt-stop-old-player",[p]):V=oFw(S.pageFetcher,L,p,U,!1,I,void 0,S.currentEndpoint);if(V)return V.then(S.publishPageData.bind(S,p));S.publishPageData(p);return _.Mw()};
LIP=function(S,p,U){var Y=null;if(!U)return Y=new _.y7("Empty data",S.debugString,p);var L=U.response;if(!L)return Y;var I={endpointType:DG(p)||"unknown"};L.responseContext?(L=L.responseContext.errors)&&(Y=new _.y7("Errors in response context",S.debugString,p,L,I)):Y=L.error||L.errorMetadata?new _.y7("Errors in response",S.debugString,p,L.error,L.errorMetadata,I):new _.y7("responseContext missing",S.debugString,p,Object.keys(L).sort().join(","),I);var V,W,O,D;if(S=U==null?void 0:(V=U.response)==null?
void 0:(W=V.responseContext)==null?void 0:(O=W.webResponseContextExtensionData)==null?void 0:(D=O.webResponseContextDebugData)==null?void 0:D.debugErrorMessages)for(V=0;V<S.length;V++);return Y};
M5t=function(S){var p,U,Y,L;return S==null?void 0:(p=S.response)==null?void 0:(U=p.responseContext)==null?void 0:(Y=U.errors)==null?void 0:(L=Y.error)==null?void 0:L["0"]};
IvI=function(S,p){var U;if(U=p.url&&!p.url.startsWith("/clip"))U=p.url,U=!_.y("webfe_parse_debug_param_in_resolveurl_service")&&S.searchDebugUrlMatcher.test(U)||wrq(U)?!0:!1;if(U)wrq(p.url)&&_.mc(window.location.href).themeRefresh?(p=_.iL(p.url,"themeRefresh"),_.Ir(S.historyManager,p)):p.url&&!Tve(p.url)&&_.Ir(S.historyManager,p.url);else if(p.endpoint){var Y,L,I;(U=(Y=p.endpoint)==null?void 0:(L=Y.commandMetadata)==null?void 0:(I=L.webCommandMetadata)==null?void 0:I.url)&&!Tve(U)&&_.Ir(S.historyManager,
U);U&&p.url&&U!=p.url&&!p.url.match("playnext=1")&&new _.y7("Response url mismatch in response data",S.debugString,U,p.url)}};
_.dMc=function(S,p,U,Y,L,I,V,W){I=I===void 0?!1:I;var O=_.tW().resolve(WW),D;if(!W&&EFj(O,(D=S.currentEndpoint)!=null?D:void 0,p))return O.showConfirmationDialog(S.JSC$12354_clientRoot.parentElement,{endpoint:p,data:U,navigationType:Y,tempData:L,isMiniplayer:I,isForwardHistoryNavigation:V==null?void 0:V.forward}),_.Mw();S.pageFetcher.JSC$12336_chunkHandler=void 0;return UMl(S,p,U,Y,L,I)};
UMl=function(S,p,U,Y,L,I){I=I===void 0?!1:I;S.isMiniplayerExpansion=I;var V=Y===2;S.currentEndpoint=p;S.numNavigations++;S.numNavigations&&(BWw.navigationCount=S.numNavigations);_.en("NUM_NAV",S.numNavigations);var W=LIP(S,p,U);if(W)return p0j(S,p,W,"102",M5t(U)),_.jV(W);var O,D,z,Q;W=U.rootVe||(U==null?void 0:(O=U.response)==null?void 0:(D=O.responseContext)==null?void 0:(z=D.webResponseContextExtensionData)==null?void 0:(Q=z.ytConfigData)==null?void 0:Q.rootVisualElementType);!V&&U&&IvI(S,U);var J,
K;O=U==null?void 0:(J=U.response)==null?void 0:(K=J.responseContext)==null?void 0:K.maxAgeSeconds;if(!V&&!isNaN(O)){var G;_.y("kevlar_use_response_ttl_to_invalidate_cache")?G=(0,_.AI)()+1E3*O:_.y("kevlar_always_invalidate_cache")&&(G=0);isNaN(G)||(U.expirationTime=G)}_.y("html5_enable_ssap_entity_id")&&V&&U.playerResponse&&(U.playerResponse.cacheMetadata={isCacheHit:!0});_.p4(_.k2).prefetchCache_.clear();V||U.page!=="watch"||U.type!=="reduced"&&Y!==1?Y=YAd(S,U,V,!!I,p,L):(S.publishPageData(U),Y=_.Mw());
L=Y.then(function(){var X=DG(p);X={endpoint:p,pageType:X,fromHistory:V,response:U};X.navigationDoneMs=_.Fg("nd");S.fireEvent("yt-navigate-finish",X)});
U.csn&&W&&U.clientSideGrafts&&Y.then(S.attachClientSideGrafts.bind(S,U,_.F$()));return L};
_.M=OQ.prototype;_.M.attachClientSideGrafts=function(S,p){S.clientSideGrafts&&p&&S.clientSideGrafts.forEach(function(U){if(p&&U){var Y=_.JS(U);_.y("combine_ve_grafts")?_.HX().graftServerVe(U,p):_.wB(S.csn,p,Y)}})};
_.M.handleSignalActionHistoryBack=function(){window.history.back()};
_.M.handleSignalActionCloseWindow=function(){window.close()};
_.M.handleSignalActionReloadPage=function(){this.reload()};
_.M.handleSignalActionSoftReloadPage=function(){zbm(this)};
_.M.handleSignalActionResetWarmLoads=function(){this.resetWarmLoads=!0};
_.M.fireEvent=function(S,p){S=new CustomEvent(S,{bubbles:!0,cancelable:!1,composed:!0,detail:p});this.dispatchEvent(S)};
_.M.addEventListener=function(S,p){this.JSC$12354_clientRoot.addEventListener(S,p)};
_.M.dispatchEvent=function(S){return this.JSC$12354_clientRoot.dispatchEvent(S)};
_.M.removeEventListener=function(S,p){this.JSC$12354_clientRoot.removeEventListener(S,p)};
OQ[vF]=[qNw,_.ds];_.ocw=new Bt("browse","h8y2qb");_.vcq=new Bt("search","JzFVk");_.$Re=new Bt("shorts","xwEKAe");_.iod=new Bt("watchFixie","nmfa2d");_.NgX=new Bt("watchFlexy","CF909");_.BgN=new Bt("watchGrid","Tm0L3c");_.qdu=new Bt("watchLearningJourney","L3n37");var V5I;var kB=function(){return _.w.apply(this,arguments)||this};
_.r(kB,_.w);_.$u.Object.defineProperties(kB,{template:{configurable:!0,enumerable:!0,get:function(){if(V5I===void 0){var S=document.createElement("template");_.h(S,'\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');S.content.insertBefore(_.t().content.cloneNode(!0),S.content.firstChild);V5I=S}S=V5I;return S}}});
_.x([_.F(TTm.YtPlayerBehavior),_.E("design:type",Object)],kB.prototype,"ytPlayerBehavior",void 0);kB=_.x([_.f({is:"ytd-player"})],kB);var Tvt;var WIe;var OFP;var HW=function(){var S=_.w.apply(this,arguments)||this;S.forceModernIconButton=!1;S.actionMap={"yt-account-linking-state-changed-command":"handleAccountLinkingStateChangedCommand","yt-signal-action-show-account-link-dialog":"handleShowAccountLinkDialog"};return S};
_.r(HW,_.w);HW.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]]"}}}}}};
HW.prototype.handleAccountLinkingStateChangedCommand=function(S){if(S=_.b(S,nZI)){var p,U=(p=this.data)==null?void 0:p.providerKey;p=S.providerKey;U&&p&&U.id===p.id&&U.subject===p.subject&&(S=S.linked,S!==void 0&&(this.set("data.linked",S),this.notifyPath("data.linked"),_.y("enable_account_linking_warning_account_link_button")&&(this.set("data.is_warning",!1),this.notifyPath("data.is_warning")),this.setPlayerAccountLinkState(S)))}};
HW.prototype.setPlayerAccountLinkState=function(S){var p=new fTr;aTR(p,CmG(new xEX,S));var U=_.$L();U&&U.getPlayerPromise().then(function(Y){Y.setAccountLinkState(_.Ad(p.JSC$10069_serializeBinary(),4));Y.updateAccountLinkingConfig(S)})};
HW.prototype.handleShowAccountLinkDialog=function(){var S=this.get("button.buttonRenderer.command");S&&_.dB([S],this.hostElement)};
_.$u.Object.defineProperties(HW.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}}}});
_.x([_.F(_.qH.YtRendererstamperBehavior),_.E("design:type",Object)],HW.prototype,"ytRendererstamperBehavior",void 0);_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],HW.prototype,"ytRendererBehavior",void 0);_.x([_.F([_.Aj.YtActionHandlerBehavior]),_.E("design:type",Object)],HW.prototype,"actionHandlerBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],HW.prototype,"data",void 0);_.x([_.g(),_.E("design:type",Object)],HW.prototype,"overrides",void 0);
_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],HW.prototype,"forceModernIconButton",void 0);_.x([_.g({value:"bottom"}),_.E("design:type",String)],HW.prototype,"buttonTooltipPosition",void 0);_.x([_.g({value:!1}),_.E("design:type",Boolean)],HW.prototype,"forceIconButton",void 0);_.x([_.g(),_.E("design:type",Boolean)],HW.prototype,"disableTextTransform",void 0);
_.x([_.e("data","data.linked","data.isWarning"),_.E("design:type",Object),_.E("design:paramtypes",[])],HW.prototype,"button",null);HW=_.x([_.f({is:"ytd-account-link-button-renderer",disableElementRegistration:!0})],HW);
_.C(HW,"ytd-account-link-button-renderer",function(){if(OFP!==void 0)return OFP;var S=document.createElement("template");_.h(S,'\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');S.content.insertBefore(_.t().content.cloneNode(!0),S.content.firstChild);return OFP=S},{mode:1});var kmH;var HFw=["PLAYLIST_LOOP_STATE_ONE","PLAYLIST_LOOP_STATE_ALL"],Dk=function(){return _.w.apply(this,arguments)||this};
_.r(Dk,_.w);Dk.prototype.configureRendererStamper=function(){return{"currentButtonStateRenderer.button":{id:"button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{buttonTooltipPosition:"bottom"},properties:{forceIconOnly:"[[forceIconOnly]]"}}}}}};
Dk.prototype.updateButtonActiveState=function(){var S=this,p=!!HFw.find(function(U){return S.currentState===U});
this.button&&(this.button.isPressed=p)};
_.$u.Object.defineProperties(Dk.prototype,{currentState:{configurable:!0,enumerable:!0,get:function(){var S,p;return((S=this.playlistLoopStateEntity)==null?void 0:S.state)||((p=this.data)==null?void 0:p.currentState)}},
currentButtonStateRenderer:{configurable:!0,enumerable:!0,get:function(){var S=void 0,p;if(this.currentState&&((p=this.data)==null?0:p.states)){p=_.d(this.data.states);for(var U=p.next();!U.done;U=p.next()){U=_.b(U.value,_.lNt);var Y=void 0;if(((Y=U)==null?void 0:Y.state)===this.currentState){S=U;break}}}return S}}});
Dk.prototype.updateButtonActiveState=Dk.prototype.updateButtonActiveState;_.x([_.F(_.Xh),_.E("design:type",Object)],Dk.prototype,"ytdReduxBehavior",void 0);_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],Dk.prototype,"ytRendererBehavior",void 0);_.x([_.F(_.qH.YtRendererstamperBehavior),_.E("design:type",Object)],Dk.prototype,"ytRendererstamperBehavior",void 0);
_.x([_.g({selectorArgs:["data.playlistLoopStateEntityKey"],selector:_.sQd}),_.E("design:type",Object)],Dk.prototype,"playlistLoopStateEntity",void 0);_.x([_.g(),_.E("design:type",Object)],Dk.prototype,"data",void 0);_.x([_.g(),_.E("design:type",Boolean)],Dk.prototype,"forceIconOnly",void 0);_.x([_.O2("ytd-button-renderer"),_.E("design:type",_.mg)],Dk.prototype,"button",void 0);
_.x([_.e("data","playlistLoopStateEntity"),_.E("design:type",Object),_.E("design:paramtypes",[])],Dk.prototype,"currentState",null);_.x([_.T4("currentButtonStateRenderer"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],Dk.prototype,"updateButtonActiveState",null);_.x([_.e("currentState"),_.E("design:type",Object),_.E("design:paramtypes",[])],Dk.prototype,"currentButtonStateRenderer",null);
Dk=_.x([_.f({is:"ytd-playlist-loop-button-renderer",disableElementRegistration:!0})],Dk);
_.C(Dk,"ytd-playlist-loop-button-renderer",function(){if(kmH!==void 0)return kmH;var S=document.createElement("template");_.h(S,'\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');S.content.insertBefore(_.t().content.cloneNode(!0),S.content.firstChild);return kmH=S},
{mode:1});var DMm;var zvm=_.Oh("DOWNLOAD",{},"Download"),QQq=_.Oh("DOWNLOADING",{},"Downloading"),nDH=_.Oh("DOWNLOADED",{},"Downloaded"),JNt=_.Oh("RETRY",{},"Retry"),zF=function(){var S=_.w.apply(this,arguments)||this;S.forceIconButton=!1;S.forceIconOnly=!1;S.overrides=!1;S.buttonTooltipPosition=!1;S.styleActionButton=!1;S.disableTextTransform=!1;S.downloadProgress=0;S.isDownloadComplete=!1;S.isHidden=!0;S.transferState="TRANSFER_STATE_UNKNOWN";S.isVideoDeletedByUser=!1;S.offlineabilityState="ADD_TO_OFFLINE_BUTTON_STATE_UNKNOWN";
return S};
_.r(zF,_.w);_.M=zF.prototype;_.M.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.M.dataChanged=function(){var S;(S=this.data)!=null&&S.text||(S=_.Z4(_.vJ().getState(),this.videoId),this.updateButtonState(S))};
_.M.computeVideoId=function(S){return S};
_.M.showHideButton=function(){this.updateButtonVisibility()};
_.M.updateButtonVisibility=function(){this.disabled=this.offlineabilityState==="ADD_TO_OFFLINE_BUTTON_STATE_DISABLED"?!0:!1;this.isHidden=this.transferState!=="TRANSFER_STATE_UNKNOWN"?!1:this.offlineabilityState==="ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"||this.offlineabilityState==="ADD_TO_OFFLINE_BUTTON_STATE_DISABLED"?!1:!0};
_.M.onTransferStateChanged=function(){this.updateButtonState(this.transferState)};
_.M.updateButtonState=function(S){if(this.data&&(this.ytRendererBehavior.getSimpleString(this.data.text)!==QQq||!_.zf(S))){this.updateButtonVisibility();this.isDownloadComplete=!1;switch(S){case "TRANSFER_STATE_UNKNOWN":S=zvm;var p="OFFLINE_DOWNLOAD";var U="ACTION_ADD";break;case "TRANSFER_STATE_FAILED":S=JNt;p="OFFLINE_DOWNLOAD";U="ACTION_RETRY";break;case "TRANSFER_STATE_COMPLETE":S=nDH;p="OFFLINE_PIN";U="ACTION_REMOVE_WITH_PROMPT";this.isDownloadComplete=!0;break;case "TRANSFER_STATE_TRANSFERRING":case "TRANSFER_STATE_TRANSFER_IN_QUEUE":S=
QQq;p="OFFLINE_DOWNLOADING_ZERO";U="ACTION_REMOVE_WITH_PROMPT";break;case "TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH":S=JNt;p="OFFLINE_DOWNLOAD";U="ACTION_RETRY";break;default:S=zvm,p="OFFLINE_DOWNLOAD",U="ACTION_ADD"}this.isVideoDeletedByUser&&(S=zvm,p="OFFLINE_DOWNLOAD",U="ACTION_ADD");var Y=Object.assign({},this.data);Y.text=_.Ec(S);Y.tooltip=S;Y.icon={iconType:p};Y.size="SIZE_DEFAULT";Y.style="STYLE_DEFAULT";_.b(Y.command,_.MB)&&(_.b(Y.command,_.MB).action=U);this.set("data",Y)}};
_.M.updateProgress=function(){if(this.data){this.isDownloadComplete=!1;var S="OFFLINE_DOWNLOAD";this.downloadProgress>0&&this.downloadProgress<=.1?S="OFFLINE_DOWNLOADING_ZERO":this.downloadProgress>.1&&this.downloadProgress<=.3?S="OFFLINE_DOWNLOADING_TWENTY":this.downloadProgress>.3&&this.downloadProgress<=.5?S="OFFLINE_DOWNLOADING_FORTY":this.downloadProgress>.5&&this.downloadProgress<=.7?S="OFFLINE_DOWNLOADING_SIXTY":this.downloadProgress>.7&&this.downloadProgress<1?S="OFFLINE_DOWNLOADING_EIGHTY":
this.downloadProgress===1&&(S="OFFLINE_PIN",this.isDownloadComplete=!0);var p;S!==((p=this.data.icon)==null?void 0:p.iconType)&&(p=Object.assign({},this.data),p.text=_.Ec(QQq),p.tooltip=QQq,p.icon={iconType:S},_.b(p.command,_.MB)&&(_.b(p.command,_.MB).action="ACTION_REMOVE_WITH_PROMPT"),this.set("data",p))}};
zF.prototype.updateProgress=zF.prototype.updateProgress;zF.prototype.onTransferStateChanged=zF.prototype.onTransferStateChanged;zF.prototype.showHideButton=zF.prototype.showHideButton;zF.prototype.dataChanged=zF.prototype.dataChanged;_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],zF.prototype,"ytRendererBehavior",void 0);_.x([_.F(_.Xh),_.E("design:type",Object)],zF.prototype,"ytdReduxBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],zF.prototype,"forceIconButton",void 0);
_.x([_.g(),_.E("design:type",Object)],zF.prototype,"forceIconOnly",void 0);_.x([_.g(),_.E("design:type",Object)],zF.prototype,"overrides",void 0);_.x([_.g(),_.E("design:type",Object)],zF.prototype,"buttonTooltipPosition",void 0);_.x([_.g(),_.E("design:type",Object)],zF.prototype,"styleActionButton",void 0);_.x([_.g(),_.E("design:type",Object)],zF.prototype,"disableTextTransform",void 0);
_.x([_.g({computed:"computeVideoId(data.command.offlineVideoEndpoint.videoId)"}),_.E("design:type",String)],zF.prototype,"videoId",void 0);_.x([_.g(),_.E("design:type",Object)],zF.prototype,"data",void 0);_.x([_.g({selector:e4,selectorArgs:["videoId"]}),_.E("design:type",Object)],zF.prototype,"downloadProgress",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],zF.prototype,"isDownloadComplete",void 0);
_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],zF.prototype,"isHidden",void 0);_.x([_.g({selector:_.Z4,selectorArgs:["videoId"]}),_.E("design:type",String)],zF.prototype,"transferState",void 0);_.x([_.g({selector:_.e2e,selectorArgs:["videoId"]}),_.E("design:type",Object)],zF.prototype,"isVideoDeletedByUser",void 0);_.x([_.g({selector:FSR,selectorArgs:["videoId"]}),_.E("design:type",Object)],zF.prototype,"offlineabilityState",void 0);
_.x([_.g({value:!0}),_.E("design:type",Boolean)],zF.prototype,"showTooltips",void 0);_.x([_.g({value:!0}),_.E("design:type",Boolean)],zF.prototype,"sendCommandWhenDisabled",void 0);_.x([_.g({value:!1}),_.E("design:type",Boolean)],zF.prototype,"disabled",void 0);_.x([_.z4("data"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],zF.prototype,"dataChanged",null);
_.x([_.z4("offlineabilityState"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],zF.prototype,"showHideButton",null);_.x([_.z4("transferState","isVideoDeletedByUser"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],zF.prototype,"onTransferStateChanged",null);_.x([_.z4("downloadProgress"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],zF.prototype,"updateProgress",null);
zF=_.x([_.f({disableElementRegistration:!0,is:"ytd-download-button-renderer"})],zF);
_.C(zF,"ytd-download-button-renderer",function(){if(DMm!==void 0)return DMm;var S=document.createElement("template");_.h(S,'\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>');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);return DMm=S},{mode:2});var yNQ;var KId,bFH=function(){if(KId!==void 0)return KId;var S=document.createElement("template");_.h(S,'\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 KId=S};var jQj=_.y("web_button_rework")&&_.ub("BUTTON_REWORK")||_.y("web_button_rework_with_live"),rNt=_.pA("dynamic_metadata_update_interaction_delay_period_sec",5)*1E3,Q6=function(){var S=_.w.apply(this,arguments)||this;S.isPressed=!1;S.forceIconButton=!1;S.forceIconOnly=!1;S.forceModernIconButton=!1;S.alignByText=!1;S.isShorts=!1;S.animatedText=!1;S.shouldAnimate=!1;S.JSC$12392_browserSupportsAnimation=_.y("web_supports_animations_api");S.actionMap={"yt-update-toggle-button-text-action":"handleUpdateToggleButtonTextAction",
"yt-update-toggle-button-state-command":"handleUpdateToggleButtonStateCommand"};S.onTap=function(){var p;if((p=S.data)==null||!p.defaultNavigationEndpoint){var U;p=!((U=S.data)==null?0:U.isToggled);var Y;if((Y=S.data)==null||!Y.preventAutoToggle){S.shouldAnimate=!1;S.disableTextUpdateJobId&&_.PA.cancelJob(S.disableTextUpdateJobId);S.disableTextUpdateJobId=_.PA.addLowPriorityJob(function(){S.disableTextUpdateJobId=void 0},rNt);
var L;S.set("data.isToggled",!((L=S.data)==null?0:L.isToggled));U=S.getInnertubeIcon();Y={toggled:p,actions:{}};U&&(Y.actions[U.toLowerCase()]=p);_.cv(S.hostElement,"yt-toggle-button",Y)}}};
return S};
_.r(Q6,_.w);_.M=Q6.prototype;_.M.resetAnimation=function(){this.shouldAnimate=!1;this.disableTextUpdateJobId&&(_.PA.cancelJob(this.disableTextUpdateJobId),this.disableTextUpdateJobId=void 0)};
_.M.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.M.toggle=function(S){var p;this.set("data.isToggled",S!==void 0?S:!((p=this.data)==null?0:p.isToggled))};
_.M.handleUpdateToggleButtonStateCommand=function(S){if(this.data){S=_.b(S,F5q);var p,U,Y,L=(p=this.data)==null?void 0:(U=p.toggleButtonSupportedData)==null?void 0:(Y=U.toggleButtonIdData)==null?void 0:Y.id;L&&S&&L===(S==null?void 0:S.buttonId)&&this.set("data.isToggled",S.toggled)}};
_.M.handleUpdateToggleButtonTextAction=function(S){if(this.data){S=_.b(S,Vqe);var p,U,Y,L=(p=this.data)==null?void 0:(U=p.toggleButtonSupportedData)==null?void 0:(Y=U.toggleButtonIdData)==null?void 0:Y.id;L&&S&&L===(S==null?void 0:S.buttonId)&&!this.disableTextUpdateJobId&&(this.shouldAnimate=!0,this.textNumberValue=S.defaultNumericalValue,this.set("data.defaultText",S.defaultText),this.set("data.toggledText",S.toggledText),this.shouldAnimate=!1)}};
_.M.getInnertubeIcon=function(){var S=this.data;if(S){var p,U,Y=((p=S.defaultIcon)==null?0:p.iconType)?(U=S.defaultIcon)==null?void 0:U.iconType:null,L,I;p=((L=S.toggledIcon)==null?0:L.iconType)?(I=S.toggledIcon)==null?void 0:I.iconType:Y;return S.isToggled?p:Y}};
_.M.computeTooltip=function(){return this.data?this.data.isToggled&&this.data.toggledTooltip||this.data.defaultTooltip||null:null};
_.$u.Object.defineProperties(Q6.prototype,{computedButtonShape:{configurable:!0,enumerable:!0,get:function(){if(this.data){var S={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$12392_browserSupportsAnimation,animatedTextProps:{numberText:"",
numberValue:Number(this.textNumberValue),heightPx:36,shouldAnimate:this.shouldAnimate}};var p=S.renderer;var U=S.element;var Y=S.toggled;var L=S.onTapCallback;var I=S.commandClientArgs;var V=S.overrides;var W=S.forceIcon;var O=S.forceModernIconButton;var D=S.forceDisabled;var z=S.useAnimatedText;var Q=S.animatedTextProps;S=w0G(p,Y);W=!p.defaultIcon||!W&&p.defaultText?p.defaultIcon?"leading":void 0:O?"icon-only":"icon-only-40";W==="icon-only-40"&&(S.type="text");var J;O=Object;var K=O.assign,G;a:switch((G=
p.style)==null?void 0:G.styleType){case "STYLE_COMPACT_GRAY":G={size:"S"};break a;default:G={size:"M"}}var X=!!Y;var Z=(Z=Y&&p.toggledText||p.defaultText)?_.Fi(Z):void 0;z?(z=_.mA(Y&&p.toggledText||p.defaultText))&&Q&&!isNaN(Number(Q.numberValue))?(Q.numberText=z,Y&&(Q.numberValue+=1),z=Q):z=void 0:z=void 0;var l,a,N,m;var A=(Q=((a=Y?p.toggledAccessibilityData||((A=p.toggledText)==null?void 0:A.accessibility):p.accessibilityData||((l=p.defaultText)==null?void 0:l.accessibility))==null?void 0:(N=a.accessibilityData)==
null?void 0:N.label)||((m=p.accessibility)==null?void 0:m.label))?Q:_.mA(Y&&p.toggledText||p.defaultText);D=D===void 0?p.isDisabled:D;U=udk(p,Y,L,U,I);Y=gDe(p,Y);Y!=null&&Y.length?(Y=_.gx({innertubeCommand:bIw(Y),forceNewState:!0}),Y=uT(Y)?Y:void 0):Y=void 0;p=K.call(O,{},S,G,{iconPosition:W},V,{focused:!1,toggled:X,toggleable:!0,formattedButtonText:Z,animatedTextProps:z,accessibilityLabel:A,disabled:D,onTap:U,aTagConfig:Y},AJe((J=p.colorData)==null?void 0:J.basicColorPaletteData));p.alignByText=
this.alignByText;this.isShorts&&this.data.isToggled&&(p.type="filled");return p}}},
computedIcon:{configurable:!0,enumerable:!0,get:function(){var S=this.getInnertubeIcon();if(S)return _.If(S)}}});
Q6.prototype.resetAnimation=Q6.prototype.resetAnimation;_.x([_.F(_.eL.YtComponentBehavior),_.E("design:type",Object)],Q6.prototype,"ytComponentBehavior",void 0);_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],Q6.prototype,"ytRendererBehavior",void 0);_.x([_.F(_.Aj.YtActionHandlerBehavior),_.E("design:type",Object)],Q6.prototype,"ytActionHandlerBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],Q6.prototype,"data",void 0);
_.x([_.g(),_.E("design:type",Object)],Q6.prototype,"isPressed",void 0);_.x([_.g(),_.E("design:type",Object)],Q6.prototype,"forceIconButton",void 0);_.x([_.g(),_.E("design:type",Object)],Q6.prototype,"forceIconOnly",void 0);_.x([_.g(),_.E("design:type",Object)],Q6.prototype,"forceModernIconButton",void 0);_.x([_.g(),_.E("design:type",Object)],Q6.prototype,"alignByText",void 0);_.x([_.g(),_.E("design:type",Object)],Q6.prototype,"overrides",void 0);
_.x([_.g(),_.E("design:type",Boolean)],Q6.prototype,"disabled",void 0);_.x([_.g(),_.E("design:type",Object)],Q6.prototype,"isShorts",void 0);_.x([_.g(),_.E("design:type",Object)],Q6.prototype,"buttonTooltipPosition",void 0);_.x([_.g(),_.E("design:type",Object)],Q6.prototype,"animatedText",void 0);_.x([_.g(),_.E("design:type",String)],Q6.prototype,"textNumberValue",void 0);_.x([_.g({computed:"computeTooltip(data, data.isToggled)"}),_.E("design:type",Object)],Q6.prototype,"tooltip",void 0);
_.x([_.T4("data"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],Q6.prototype,"resetAnimation",null);_.x([_.e("data.*","forceIconButton","forceIconOnly","forceModernIconButton","alignByText","overrides","disabled","isShorts"),_.E("design:type",Object),_.E("design:paramtypes",[])],Q6.prototype,"computedButtonShape",null);_.x([_.e("data.*"),_.E("design:type",Object),_.E("design:paramtypes",[])],Q6.prototype,"computedIcon",null);
Q6=_.x([_.f({is:"ytd-toggle-button-renderer",disableElementRegistration:!0,cssBuildOptOut:!0})],Q6);jQj&&_.C(Q6,"ytd-toggle-button-renderer",bFH,{mode:_.UW("kevlar_poly_si_batch_j081")?1:2});var RF=_.$k(function(S){function p(D){var z;return _.T(function(Q){if(Q.nextAddress==1)return(z=!avk(D,W())||!W().enabled)?Q.jumpTo(2):_.k(Q,mMe(),3);Q.nextAddress!=2&&(z=Q.yieldResult);if(z)return Q.return();U();setTimeout(function(){V(!1)},1500);
_.OV(Q)})}
function U(){setTimeout(function(){V(!0);var D;(D=Y.lottieEl)==null||D.goToAndPlay(0)},150)}
var Y=_.YO(),L=_.d(_.kj(!1,void 0,"JJXzp")),I=L.next().value,V=L.next().value,W=_.os(S.settings,{uniqueId:"this is not intended behavior",enabled:!1,experimentEnabled:!1,timings:[]});_.FM(function(){var D,z;((D=S.settings)==null?void 0:(z=D.call(S))==null?void 0:z.uniqueId)==="this is not intended behavior"&&_.eP(new _.y7("Smartimation Settings is undefined"))});
_.R8(function(){W().experimentEnabled&&(W().enabled?fve(p):(V(!1),CrG(p)),_.FG(function(){CrG(p)}))});
_.R8(function(){W().timings.join("");W().experimentEnabled&&(xMw(W()),_.FG(function(){EDw(W())}))});
var O=_.nS(function(){var D=Y,z=W().uniqueId+"-border",Q,J;var K="https://www.gstatic.com/youtube/img/lottie/smartimations/smartimation_border_"+((J=(Q=_.tW().resolve(_.AW(_.Cz)))==null?void 0:Q())!=null&&J?"dark":"light")+"_v2.json";return{animationRef:D,animationConfig:{name:z,autoplay:!1,loop:!1,path:K}}},void 0,"tgykab");
L={};return _.H("yt-smartimation",{class:_.VD(S.className,"smartimation",(L["smartimation--experiment-enabled"]=function(){return W().experimentEnabled},L["smartimation--active-border"]=I,L["smartimation--enable-masking"]=oDG(),L))},_.H(_.n,{cond:function(){return W().experimentEnabled},
then:function(){return _.H("div",{class:"smartimation__border"},_.H(_.Tw,{className:"smartimation__border-gradient",data:O,animationName:function(){return O().animationConfig.name}}))}}),_.H("div",{class:"smartimation__content"},S.children))},"B");
RF.idomCompat=!0;_.qm(RF,"yt-smartimation",{props:{className:_.x2,settings:_.x2}});var n7=function(){var S=_.w.apply(this,arguments)||this;S.likeButtonOverride={segmentedPosition:"start",style:"mono",type:"tonal"};S.dislikeButtonOverride={iconPosition:"icon-only",segmentedPosition:"end",style:"mono",type:"tonal"};S.shouldEnableSmartimation=!1;return S};
_.r(n7,_.w);n7.prototype.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
n7.prototype.onDataChanged=function(){var S,p;this.shouldEnableSmartimation=(((S=this.data)==null?void 0:(p=S.timedAnimationData)==null?void 0:p.animationTiming)||[]).length>0&&!this.isLikeOrDisliked()};
n7.prototype.isLikeOrDisliked=function(){if(!this.data)return!1;var S=_.b(this.data.likeButton,_.Pj),p=_.b(this.data.dislikeButton,_.Pj);return!!((S==null?0:S.isToggled)||(p==null?0:p.isToggled))};
n7.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]]"}}}}}};
_.$u.Object.defineProperties(n7.prototype,{smartimationSettings:{configurable:!0,enumerable:!0,get:function(){var S,p,U=((S=this.data)==null?void 0:(p=S.timedAnimationData)==null?void 0:p.animationTiming)||[];return{uniqueId:"like-dislike",timings:U,enabled:this.shouldEnableSmartimation,experimentEnabled:U.length>0}}}});
n7.prototype.onDataChanged=n7.prototype.onDataChanged;_.x([_.F(_.qH.YtRendererstamperBehavior),_.E("design:type",Object)],n7.prototype,"ytRendererstamperBehavior",void 0);_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],n7.prototype,"ytRendererBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],n7.prototype,"data",void 0);_.x([_.g(),_.E("design:type",Object)],n7.prototype,"likeButtonOverride",void 0);_.x([_.g(),_.E("design:type",Object)],n7.prototype,"dislikeButtonOverride",void 0);
_.x([_.e("shouldEnableSmartimation"),_.E("design:type",Object),_.E("design:paramtypes",[])],n7.prototype,"smartimationSettings",null);_.x([_.T4("data"),_.Vd("yt-toggle-button"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],n7.prototype,"onDataChanged",null);n7=_.x([_.f({disableElementRegistration:!0,is:"ytd-segmented-like-dislike-button-renderer"})],n7);
_.C(n7,"ytd-segmented-like-dislike-button-renderer",function(){if(yNQ!==void 0)return yNQ;var S=document.createElement("template");_.h(S,'\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>');
S.content.insertBefore(_.t().content.cloneNode(!0),S.content.firstChild);return yNQ=S},{mode:1});var GmH;var hvm;(hvm=document.body)==null||hvm.setAttribute("rounded-container","");var Rvw={};Rvw.YtToggleButtonBehavior=[_.Aj.YtActionHandlerBehavior,Dm.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 S=this.data.isToggled;if(!this.isModal_(S)){if(!this.data.preventAutoToggle){this.toggle();var p={toggled:this.data.isToggled,actions:{}};p.actions[this.buttonIcon]=this.data.isToggled;_.cv(this.hostElement,"yt-toggle-button",p)}p=this.data.defaultServiceEndpoint||null;var U=this.data.toggledServiceEndpoint||null;if(p&&U||p&&this.data.preventAutoToggle)S=S?U:p,p=this.disableCommandHandlerOverride,_.y("killswitch_toggle_button_behavior_resolve_command")||p?_.Yd(this.hostElement,
[S]):_.Te(S,this.hostElement),_.cv(this.hostElement,"yt-execute-service-endpoint",{serviceEndpoint:S})}},
stateChanged_:function(){var S=this.data;if(S){var p=S.isToggled;this._setEndpoint(this.computeEndpoint_(S));this._setServiceEndpoint(this.computeServiceEndpoint_(S));this._setButtonIcon(this.computeButtonIcon_(S,p));this._setButtonText(this.computeButtonText_(S,p));this._setButtonAccessibility(this.computeAccessibility_(S,p));this._setButtonTooltip(this.computeTooltip_(S,p));this._setButtonClass(this.computeButtonClass_(S,p));this._setIconPositionType(this.computeIconPositionType_(S));this.updateRenderedElements();
this.elements_.button&&(this.elements_.button.is==="yt-icon-button"?(this.elements_.button.toggleable=!0,this.elements_.button.pressed=p):this.elements_.button.setAttribute("aria-pressed",p));this.elements_.icon&&this.shouldSetIconActiveState_()&&(this.elements_.icon.active=p)}},
shouldSetIconActiveState_:function(){return _.y("kevlar_system_icons")},
toggle:function(S){this.set("data.isToggled",S!==void 0?S:!this.data.isToggled);_.y("web_toggle_button_force_update_killswitch")||this.notifyPath("data.isToggled")},
isModal_:function(S){if(S){var p,U;return!!((p=this.data)==null?0:(U=p.toggledServiceEndpoint)==null?0:U.confirmDialogEndpoint)}return!!this.endpoint&&(!!this.endpoint.modalEndpoint||!!this.endpoint.shareEndpoint||!!this.endpoint.shareEntityEndpoint)},
computeEndpoint_:function(S){return S&&S.defaultNavigationEndpoint||null},
computeButtonIcon_:function(S,p){var U=S&&S.defaultIcon?_.If(S.defaultIcon.iconType):null;S=S&&S.toggledIcon?_.If(S.toggledIcon.iconType):U;return p?S:U},
handleUpdateToggleButtonStateCommand_:function(S){S=S.updateToggleButtonStateCommand;this.get("toggleButtonSupportedData.toggleButtonIdData.id",this.data)==S.buttonId&&this.toggle(S.toggled)},
computeButtonText_:function(S,p){return S?p&&S.toggledText||S.defaultText||null:null},
computeAccessibility_:function(S,p){return S?(p?this.get("toggledAccessibilityData.accessibilityData",S):this.get("accessibilityData.accessibilityData",S))||S.accessibility||null:null},
computeTooltip_:function(S,p){return S?p&&S.toggledTooltip||S.defaultTooltip||null:null},
computeButtonClass_:function(S,p){if(!S)return"";var U="",Y=S.toggledStyle||S.style;if(p=p?Y:S.style){p.styleType&&(p=p.styleType);try{U+=p.toLowerCase().replace(/_/g,"-")+" "}catch(L){_.gK(L,p,typeof p),_.eP(L)}}if(S=S.size){S.sizeType&&(S=S.sizeType);try{U+=S.toLowerCase().replace(/_/g,"-")+" "}catch(L){_.gK(L,S,typeof S),_.eP(L)}}return U.trim()},
computeIconPositionType_:function(S){return S&&S.iconPosition||null},
computeServiceEndpoint_:function(S){var p=S&&S.serviceEndpoint,U=this.get("data.command.commandMetadata.webCommandMetadata.sendPost");return p?p:U&&S.command?S.command:null},
handleUpdateToggleButtonTextAction_:function(S){S=S.updateToggleButtonTextAction;this.get("toggleButtonSupportedData.toggleButtonIdData.id",this.data)==S.buttonId&&(this.set("data.defaultText",S.defaultText),this.notifyPath("data.defaultText"),this.set("data.toggledText",S.toggledText),this.notifyPath("data.toggledText"))}}];_.Ry("sharingToggleButtonAndDefaultButton","toggleButtonRenderer",{component:"ytd-toggle-button-renderer",params:{noink:!0}});var FId=_.y("web_button_rework")&&_.ub("BUTTON_REWORK")||_.y("web_button_rework_with_live"),JO=function(){var S=_.w.apply(this,arguments)||this;S.systemIcons=_.y("kevlar_system_icons");S.roundedContainer=!0;return S};
_.r(JO,_.w);JO.prototype.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
JO.prototype.onYtButtonTapHandler=function(){if(!this.ytToggleButtonBehavior.isModal_()){var S=this.data.isToggled;if(!this.data.preventAutoToggle){this.ytToggleButtonBehavior.toggle();var p={toggled:!!this.data.isToggled,actions:{}};p.actions[this.ytToggleButtonBehavior.buttonIcon]=this.data.isToggled;var U,Y;p.actions.playlistId=(U=this.data.defaultServiceEndpoint)==null?void 0:(Y=U.playlistEditEndpoint)==null?void 0:Y.playlistId;_.cv(this.hostElement,"yt-toggle-button",p)}(S=S?this.data.toggledServiceEndpoint:
this.data.defaultServiceEndpoint)&&this.ytComponentBehavior.resolveCommand(S)}};
JO.prototype.onYtNavigate=function(S){var p=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(S.detail.endpoint);p&&(S.stopPropagation(),this.ytdOpenPopupBehavior.openPopup(p))};
_.$u.Object.defineProperties(JO,{template:{configurable:!0,enumerable:!0,get:function(){if(GmH===void 0){var S=document.createElement("template");_.h(S,"\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");S.content.insertBefore(_.t().content.cloneNode(!0),S.content.firstChild);GmH=S}S=GmH;return S}}});
JO.prototype.onYtNavigate=JO.prototype.onYtNavigate;_.x([_.F(_.eL.YtComponentBehavior),_.E("design:type",Object)],JO.prototype,"ytComponentBehavior",void 0);_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],JO.prototype,"ytRendererBehavior",void 0);_.x([_.F(_.xK),_.E("design:type",Object)],JO.prototype,"ytdOpenPopupBehavior",void 0);_.x([_.F(Rvw.YtToggleButtonBehavior),_.E("design:type",Object)],JO.prototype,"ytToggleButtonBehavior",void 0);
_.x([_.g(),_.E("design:type",Object)],JO.prototype,"data",void 0);_.x([_.g({value:!0}),_.E("design:type",Boolean)],JO.prototype,"showTooltips",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],JO.prototype,"systemIcons",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],JO.prototype,"roundedContainer",void 0);_.x([_.Vd("yt-navigate"),_.E("design:type",Function),_.E("design:paramtypes",[CustomEvent]),_.E("design:returntype")],JO.prototype,"onYtNavigate",null);
JO=_.x([_.f({is:"ytd-toggle-button-renderer",disableElementRegistration:FId})],JO);var X0c;_.y6=new _.$g("PANEL_CONTROLLER_TOKEN");_.K7=new _.$g("SHEET_CONTROLLER_TOKEN");_.bA=new _.$g("DIALOG_CONTROLLER_TOKEN");X0c=new _.$g("DIALOG_CONTAINER_TOKEN");var cNG=_.Oh("DOWNLOAD",{},"Download"),SyN=_.Oh("DOWNLOADING",{},"Downloading"),psN=_.Oh("DOWNLOADED",{},"Downloaded"),ULR=_.Oh("RETRY",{},"Retry");var Lmd=[],MZw=!1;var Prq=_.$k(function(S){var p=DLG,U=function(){return""},Y=Wmq(S.data),L=O5r(S.data),I=koN(S.data),V=H5e(S.data);
p=function(){var W=S.data(),O=ANu(W,Y(),L(),I(),V()),D=!!W.videoId,z=O.text;return{title:D?z:void 0,tooltip:D?void 0:z,accessibilityText:z,onTap:O.onTap,iconName:O.iconType,style:W.butonStyle,type:"BUTTON_VIEW_MODEL_TYPE_TONAL",state:O.disabled?"BUTTON_VIEW_MODEL_STATE_DISABLED":"BUTTON_VIEW_MODEL_STATE_ACTIVE",buttonSize:W.buttonSize}};
U={};U=_.VD("ytDownloadButtonViewModelHost",(U.ytDownloadButtonViewModelIsHidden=function(){var W=S.data(),O=V();return W.playlistId||O()==="ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"||O()==="ADD_TO_OFFLINE_BUTTON_STATE_DISABLED"?!1:!0},U));
return _.H("download-button-view-model",{class:U},_.H(_.PG,{data:p}))},"C");
Prq.idomCompat=!0;var sQe=_.$k(function(S){var p=S.backgroundLottieRef;var U=S.foregroundLottieRef;var Y=S.children;var L=S.wrapperClass;var I=S.disableAnimation;S=function(){return(_.y("web_animated_actions")||_.y("web_animated_actions_v2"))&&!(I==null?0:I())};
return _.H("yt-animated-action",{class:_.VD("animated-action__container",L)},_.H("div",{class:"animated-action__content-with-background"},_.H(_.n,{cond:S,then:function(){return _.H(ZFc,{wrapperClass:"animated-action__background-container",lottieClass:"animated-action__background",lottiePlayerProps:function(){return{animationRef:p==null?void 0:p(),animationConfig:{name:"animated-actions-background",autoplay:!1,loop:!1,path:"https://www.gstatic.com/youtube/img/lottie/subscribe_action/subscribe_action_container_"+
(z1r()?"dark":"light")+"_v5.json"}}}})}}),Y),_.H(_.n,{cond:S,
then:function(){return _.H(ZFc,{lottiePlayerProps:function(){return{animationRef:U==null?void 0:U(),animationConfig:{name:"animated-actions-foreground",autoplay:!1,loop:!1,path:"https://www.gstatic.com/youtube/img/lottie/subscribe_action/subscribe_action_sparkles_"+(z1r()?"dark":"light")+"_v4.json"}}}})}}))},"D");
sQe.idomCompat=!0;var ZFc=_.$k(function(S){var p=S.wrapperClass;var U=S.lottieClass;var Y=S.lottiePlayerProps;return _.H("div",{class:_.VD("animated-action__lottie",p),"aria-hidden":"true"},_.H(_.Tw,{className:U,data:Y,animationName:function(){return Y().animationConfig.name}}))},"E");var QbX={isOpen:!1};var JVX={isAllowed:!1};var Kmw={errorMessage:"",title:"",privacy:"",isDisabled:!0};var jbR={isOpen:!1};var God={isFullscreen:!1,topPanelId:void 0,navigationButtons:{},secondaryHeader:{}};var evc={response:void 0};var R1k=function(S,p){S=S===void 0?evc:S;switch(p.type){case "LOCATION_COLLECTION_RESPONSE_CHANGE":return Object.assign({},S,{response:p.payload});default:return S}};var gDt={nextCommand:void 0,nextDisabled:!1,footerSubmissionData:void 0,isImpersonationValid:!1};var Fmq=function(S,p){S=S===void 0?gDt:S;switch(p.type){case "REPORT_CHANNEL_NEXT_DISABLED_CHANGE":return Object.assign({},S,{nextDisabled:p.payload});case "REPORT_CHANNEL_NEXT_COMMAND_CHANGE":return Object.assign({},S,{nextCommand:p.payload});case "REPORT_CHANNEL_MODAL_FOOTER_RENDERER_SUBMISSION_DATA_CHANGE":return Object.assign({},S,{footerSubmissionData:p.payload});case "REPORT_CHANNEL_NEXT_IMPERSONATION_VALIDITY_CHANGE":return Object.assign({},S,{isImpersonationValid:p.payload});default:return S}};var udw={reportFormData:void 0,reportDetailsFormData:void 0};var XsG=function(S,p){S=S===void 0?udw:S;switch(p.type){case "REPORT_FORM_MODAL_RENDERER_DATA_CHANGE":return Object.assign({},S,{reportFormData:p.payload});case "REPORT_DETAILS_FORM_RENDERER_DATA_CHANGE":return Object.assign({},S,{reportDetailsFormData:p.payload});default:return S}};var w0j=void 0;_.y("mweb_enable_redux_store_on_demand")||(w0j=new o4(PDG()));var lvl=_.$k(function(S){S=_.vT(S,{themeOverride:void 0,animationRef:{}});var p=S.animatedIconType,U=S.active,Y=S.themeOverride,L=S.animationRef;S=S.staticIconFn;var I=_.d(_.kj(void 0,void 0,"P5a72b")),V=I.next().value,W=I.next().value,O=function(){a:{var Z=p();var l=Y==null?void 0:Y();var a;l=(l==null?void 0:l.useDarkTheme)||((a=_.tW().resolve(_.AW(_.Cz)))==null?void 0:a());switch(Z){case "LIKE":w0j||(w0j=new o4(PDG()));Z=(Z=PHw(w0j.getState()))&&Z.animationLightUrl&&Z.animationDarkUrl?{lottiePlayerProps:{animationConfig:{name:l?
"custom_animated_like_icon_dark":"custom_animated_like_icon",path:l?Z.animationDarkUrl:Z.animationLightUrl,loop:!1,autoplay:!1,rendererSettings:{viewBoxOnly:!0,className:"animated-like-icon"}}},totalFrames:60,lazyLoad:!0}:void 0;if(Z){l=Z;break a}l="animated_like_icon_"+(l?"dark_v4":"light_v4");l={lottiePlayerProps:{animationConfig:{name:l,path:"https://www.gstatic.com/youtube/img/lottie/animated_like_icon/"+l+".json",loop:!1,autoplay:!1,rendererSettings:{viewBoxOnly:!0,className:"animated-like-icon"}}},
totalFrames:60,lazyLoad:!0};break a;case "NOTIFICATION_BELL":l={lottiePlayerProps:{animationConfig:{name:l?"notification_bell_dark":"notification_bell_light",path:"https://www.gstatic.com/youtube/img/lottie/subscribe_action/subscribe_action_bell_icon_"+(l?"dark":"light")+".json",loop:!1,autoplay:!1,rendererSettings:{className:"animated-subscribe-icon"}}},totalFrames:79,lazyLoad:!1};break a}l=void 0}return l},D=function(){var Z,l;
return(l=(Z=O())==null?void 0:Z.lottiePlayerProps.animationConfig.name)!=null?l:""},z=function(){if(O()){var Z=O().lottiePlayerProps.animationConfig.path;
return dY.get(Z)||V()}};
I=_.d(_.kj(!1,void 0,"h6xR3c"));var Q=I.next().value;I=I.next().value;var J=sbN(I),K=function(){var Z=O(),l,a,N;return(N=Z==null?void 0:(l=Z.lottiePlayerProps.animationConfig)==null?void 0:(a=l.rendererSettings)==null?void 0:a.className)!=null?N:""},G=void 0,X=void 0;
_.R8(function(){var Z=O(),l=D(),a=z(),N=Q(),m=U();if(Z&&(X!==l&&(X=l,G=m,l=L(),J.animationConfig=Z.lottiePlayerProps.animationConfig,J.animationRef=l,a&&(J.animationConfig.animationData=a,J.animationConfig.path=void 0),l=Z.lottiePlayerProps.animationConfig.path,!dY.get(l)&&Z.lazyLoad&&l&&Z5u(l,W)),!(N||Z.lazyLoad&&!a))){if(a=!L().lottieEl)m?(N=Z.totalFrames,J.animationConfig.initialSegment=[N-1,N]):J.animationConfig.initialSegment=void 0;if(G!==m&&!a)if(a=L(),m){var A;(A=a.lottieEl)==null||A.playSegments([0,
Z.totalFrames],!0)}else{var q;(q=a.lottieEl)==null||q.playSegments([0,1],!0)}G=m}});
return _.H("animated-icon",{class:"ytAnimatedIconHost"},_.H(_.n,{cond:function(){var Z,l;return!((Z=O())==null||!Z.lottiePlayerProps.animationConfig.path||((l=O())==null?0:l.lazyLoad)&&!z()||Q())},
then:function(){return _.H(_.Tw,{data:J,animationName:D,className:K,animationRef:L})},
else:S}))},"F");_.jW=_.$k(function(S){var p=_.vH(),U=_.vH(),Y=_.vH(),L=_.YO(),I=_.YO(),V=_.YO(),W=_.Ty(hvN,function(){return S.data().stateEntityStoreKey}),O=_.Ty(Rvk,function(){var Hw,Tj;
return(Tj=(Hw=S.data().notificationStateEntityStoreKeys)==null?void 0:Hw.subsNotificationStateKey)!=null?Tj:""}),D=function(){return!S.data().enableSubscribeButtonPostClickAnimation},z=_.d(_.kj(0,void 0,"eTsWvc")),Q=z.next().value,J=z.next().value;
z=_.d(_.kj(0,void 0,"dniDQ"));var K=z.next().value,G=z.next().value;z=_.d(_.kj(!1,void 0,"EluPic"));var X=z.next().value,Z=z.next().value;z=_.d(_.kj(!1,void 0,"r0jnre"));var l=z.next().value,a=z.next().value;z=_.d(_.kj(!1,void 0,"KMvoQe"));var N=z.next().value,m=z.next().value,A;z=_.d(_.kj(!1,void 0,"aSENce"));var q=z.next().value,TG=z.next().value,Je=function(){a(!0);_.HG(_.PA,function(){a(!1)},1500)};
_.R8(function(){var Hw=l();OI(function(){Hw&&!D()&&W()&&E8G(L,I,V)})});
_.R8(function(){var Hw=W();OI(function(){if(!D()&&Hw){var Tj;((Tj=S.animateWidth)==null?0:Tj.call(S))&&xLr(p.value,!!Hw.subscribed,Q(),K());var Ut,Ww;((Ut=A)==null?0:Ut.subscribed)||!Hw.subscribed||Hw.key!==((Ww=A)==null?void 0:Ww.key)||Je();A=Hw}})});
z=_.nS(function(){var Hw,Tj,Ut,Ww=S.data(),kA=!((Hw=W())==null||!Hw.subscribed);Hw=!((Tj=S.isOverlay)==null||!Tj.call(S));Tj=X()?p:void 0;var XO=(Ut=O())==null?void 0:Ut.state;Ut=q();CDN(Ww,XO);return uok({model:Ww,subscribed:kA,isOverlay:Hw,element:Tj,notificationState:XO,disableTextEllipsis:!0,focused:Ut})},void 0,"yGQGue");
var GG=function(){var Hw;if(!D()&&((Hw=S.animateWidth)==null?0:Hw.call(S))&&(U==null?0:U.value)&&(Y==null?0:Y.value)&&!N()){Hw=W();var Tj=_.d((Hw==null?0:Hw.subscribed)?[U,Y]:[Y,U]),Ut=Tj.next().value;Tj=Tj.next().value;Ut=Math.ceil(Ut.value.getBoundingClientRect().width);Tj=Math.ceil(Tj.value.getBoundingClientRect().width);J(Ut);G(Tj);xLr(p.value,!(Hw==null||!Hw.subscribed),Ut,Tj);m(!0)}},Zw=_.kL(function(Hw){GG();
var Tj=W();Tj&&(Hw.detail.endpoint.subscribeEndpoint||Hw.detail.endpoint.unsubscribeEndpoint)&&l_k(p.value,!Tj.subscribed,Tj)}),Ru=function(){var Hw=_.tW().resolve(_.AW(_.SN));
Hw&&TG(Hw.isKeyBoardInUse())},sX=function(){TG(!1)};
_.oV("yt-player-subscribe",function(Hw){var Tj=W();Tj&&Hw===S.data().channelId&&l_k(p.value,!0,Tj)});
_.oV("yt-player-unsubscribe",function(Hw){var Tj=W();Tj&&Hw===S.data().channelId&&l_k(p.value,!1,Tj)});
_.oV("yt-update-subscribe-button-action",function(Hw){Hw=_.b(Hw,kRE);var Tj=W();Tj&&Hw&&Hw.channelId===S.data().channelId&&l_k(p.value,!!Hw.subscribed,Tj)});
_.FM(function(){p.value&&(p.value.addEventListener("focusin",Ru),p.value.addEventListener("focusout",sX));var Hw=_.bQ(_.PA,function(){GG()});
Z(!0);_.FG(function(){_.PA.cancelJob(Hw);p.value&&(p.value.removeEventListener("focusin",Ru),p.value.removeEventListener("focusout",sX))})});
var mq=function(){var Hw,Tj,Ut;if(Ut=!((Hw=W())==null||!Hw.subscribed))Hw=!!S.data().disableNotificationBell,Ut=(Tj=O())==null?void 0:Tj.state,Ut=!Hw&&!!Ut;return Ut},au=function(){var Hw;
return!((Hw=W())==null?0:Hw.subscribed)},XI=function(){var Hw,Tj;
if(Tj=au()){Tj=!!S.data().disableNotificationBell;var Ut=(Hw=O())==null?void 0:Hw.state;Tj=!Tj&&!!Ut}return Tj},nE={},ut={};
return _.H("yt-subscribe-button-view-model",{class:_.VD(S.className,"yt-subscribe-button-view-model-wiz",(nE["yt-subscribe-button-view-model-wiz__can-animate-width"]=function(){var Hw,Tj;return!((Hw=W())==null||!Hw.subscribed)&&((Tj=S.animateWidth)==null?void 0:Tj.call(S))&&l()},nE["yt-subscribe-button-view-model-wiz--hidden"]=function(){var Hw;
return!((Hw=W())==null?0:Hw.subscribed)&&S.data().hideWhenUnsubscribed},nE)),
el:p,"on:yt-service-request-sent":Zw},_.H(sQe,{backgroundLottieRef:L,foregroundLottieRef:I,wrapperClass:_.VD("yt-subscribe-button-view-model-wiz__animated-action-wrapper",(ut["yt-subscribe-button-view-model-wiz__animated-action-wrapper--is-animating"]=function(){var Hw;return((Hw=S.animateWidth)==null?void 0:Hw.call(S))&&l()},ut["yt-subscribe-button-view-model-wiz__static-width"]=function(){var Hw;
return!((Hw=S.animateWidth)==null?0:Hw.call(S))},ut)),
disableAnimation:D},_.H("div",{el:U,class:"yt-subscribe-button-view-model-wiz__container"},_.H(BG,{data:z,icon:function(){return _.H(_.n,{cond:mq,then:function(){var Hw=function(){var Tj;return wse((Tj=O())==null?void 0:Tj.state)};
return _.H(_.n,{cond:function(){return D()||Hw()!=="NOTIFICATIONS_NONE"},
then:function(){return _.H(_.QD,{icon:Hw})},
else:function(){return _.H(lvl,{animatedIconType:"NOTIFICATION_BELL",active:!1,animationRef:V})}})}})},
secondaryIconName:function(){return mq()?"EXPAND":void 0}}))),_.H("div",{el:Y,
class:"yt-subscribe-button-view-model-wiz__invisible"},_.H(_.n,{cond:function(){var Hw;return((Hw=S.animateWidth)==null?void 0:Hw.call(S))&&!D()&&!N()},
then:function(){return _.H(BG,{data:_.nS(function(){var Hw;return uok({model:S.data(),subscribed:au(),isOverlay:!((Hw=S.isOverlay)==null||!Hw.call(S)),element:p,disableTextEllipsis:!0})},void 0,"lwPlub"),
iconName:function(){var Hw;return XI()?wse((Hw=O())==null?void 0:Hw.state):void 0},
secondaryIconName:function(){return XI()?"EXPAND":void 0}})}})))},"G");
_.jW.idomCompat=!0;var mLR=new _.$g("RENDERER_STAMPER_OPTIONS_TOKEN");var n6;_.QP=new Vvc;n6=new Map;var Mgd="compactRadioRenderer compactPlaylistRenderer playlistVideoRenderer compactVideoRenderer feedNudgeRenderer gridVideoRenderer primetimePromoRenderer radioRenderer primetimePromoRenderer reelItemRenderer reelShelfRenderer richShelfRenderer searchHistoryQueryRenderer shelfRenderer videoWithContextRenderer videoCardRenderer statementBannerRenderer miniGameCardViewModel shortsLockupViewModel lockupViewModel".split(" "),dER=["notificationTextRenderer","notificationMultiActionRenderer"],ITr="primetimePromoRenderer statementBannerRenderer brandVideoShelfRenderer brandVideoSingletonRenderer feedNudgeRenderer playlistVideoRenderer".split(" "),
LbX=AVG(function(S){return _.Pz(S==null?void 0:S.targetId)}).useUpdatableData;var Yaw=0;_.yP.debugName="EjJbCe";var avw=_.$k(function(S){var p=S.data;var U=_.Ty(hvN,function(){return p().subscriptionStateEntityKey});
return _.H(_.n,{cond:function(){var Y=p(),L=U();return!Y.hideWhenUnsubscribed||(L==null?0:L.subscribed)?_.b(p().button,_.K6):void 0},
then:function(Y){return _.H("yt-subscribe-plus-button-view-model",{class:"ytSubscribePlusButtonViewModelHost"},_.H(_.PG,{data:Y,buttonOverrides:function(){return{toggled:!0}}}))}})},"H");
avw.idomCompat=!0;var Wbd=_.zy({buttonViewModel:_.PG,subscribeButtonViewModel:_.jW,downloadButtonViewModel:Prq,toggleButtonViewModel:_.jS,subscribePlusButtonViewModel:avw});_.cH(ktw);var fvq=_.$k(function(S){return _.H(_.yP,{data:function(){return S.actionRow().actions}},{buttonViewModel:function(p){var U=p.data;
return _.H(rs,{isRow:S.isRow,isIconOnlyButton:function(){return HON(U())},
useIntrinsicWidth:S.useIntrinsicWidth},_.H(_.PG,{data:U}))},
subscribeButtonViewModel:function(p){return _.H(rs,{isRow:S.isRow},_.H(_.jW,{data:p.data,isOverlay:!1,animateWidth:function(){return!S.isRow()}}))},
downloadButtonViewModel:function(p){var U=p.data;return _.H(rs,{isRow:S.isRow,isIconOnlyButton:function(){return!!U().playlistId}},_.H(Prq,{data:U}))},
toggleButtonViewModel:function(p){var U=p.data;return _.H(rs,{isRow:S.isRow,isIconOnlyButton:function(){var Y=U();return HON(_.b(Y.isToggled?Y.toggledButtonViewModel:Y.defaultButtonViewModel,_.K6))}},_.H(_.jS,{data:U}))},
subscribePlusButtonViewModel:function(p){return _.H(rs,{isRow:S.isRow},_.H(avw,{data:p.data}))}})},"I"),rs=_.$k(function(S){var p={};
return _.H("div",{class:_.VD("yt-flexible-actions-view-model-wiz__action",(p["yt-flexible-actions-view-model-wiz__action--row-action"]=S.isRow,p["yt-flexible-actions-view-model-wiz__action--intrinsic-width"]=S.useIntrinsicWidth,p["yt-flexible-actions-view-model-wiz__action--row-action-feature-phone"]=!1,p["yt-flexible-actions-view-model-wiz__action--icon-only-button"]=S.isIconOnlyButton,p))},S.children)},"J"),Crj=_.$k(function(S){var p=function(){var Y;
return((Y=S.layout)==null?void 0:Y.call(S))===1},U={};
return _.H("yt-flexible-actions-view-model",{class:_.VD("yt-flexible-actions-view-model-wiz",S.className,(U["yt-flexible-actions-view-model-wiz--inline"]=function(){return!p()},U["yt-flexible-actions-view-model-wiz--scrollable"]=function(){return S.data().style==="FLEXIBLE_ACTIONS_STYLE_SCROLLING"},U))},_.H(_.KU,{each:function(){return S.data().actionsRows||[]}},function(Y){return _.H(_.n,{cond:p,
then:function(){return _.H("div",{class:"yt-flexible-actions-view-model-wiz__action-row"},_.H(fvq,{actionRow:Y,isRow:p,useIntrinsicWidth:function(){return!!S.data().respectActionIntrinsicWidth}}))},
else:function(){return _.H(fvq,{actionRow:Y,isRow:p})}})}))},"K"),GF=_.y("web_enable_sink_yt_flexible_actions_view_model")?Crj:_.Oo(ktw);
Crj.idomCompat=!0;_.qm(GF,"yt-flexible-actions-view-model",{props:{data:_.x2,layout:_.x2,justifyContentOverride:_.x2,className:_.x2}});_.cH(DEe);var xMQ,yzG;xMQ=_.$k(function(S){var p=_.Ty(P7,function(){var L;return(L=S.data().dislikeEntityKey)!=null?L:""}),U=_.nS(function(){var L=p();
return L?L.likeStatus==="DISLIKE":_.b(S.data().toggleButtonViewModel,_.b6).isToggled},void 0,"D8oIFb"),Y=_.nS(function(){return Object.assign({},_.b(S.data().toggleButtonViewModel,_.b6),{isToggled:U()})},void 0,"shaCXe");
return _.H("dislike-button-view-model",{class:"ytDislikeButtonViewModelHost"},_.H(_.jS,{data:Y,buttonShapeOverrides:S.buttonShapeOverrideables,onToggle:function(L){var I=p();I&&L!==(I.likeStatus==="DISLIKE")&&I.key&&_.m_(_.r8("likeStatusEntity",I.key,{likeStatus:L?"DISLIKE":"INDIFFERENT",hadUserInteraction:L}))}}))},"L");
yzG=_.y("web_enable_sink_dislike_button_view_model")?xMQ:DEe;_.hO=_.y("web_enable_sink_dislike_button_view_model")?xMQ:_.Oo(DEe);xMQ.idomCompat=!0;_.cH(QLe);var EDH,Jzu;EDH=_.$k(function(S){var p=_.y("web_supports_animations_api"),U=iT(function(J){var K=D(),G,X=(K==null?void 0:(G=K.likeCountIfIndifferent)==null?void 0:G.content)!==J.numberText;if(W()||!X)return J;var Z,l;return{numberText:(K==null?void 0:(Z=K.likeCountIfIndifferent)==null?void 0:Z.content)||"",numberValue:Number((l=K==null?void 0:K.likeCountIfIndifferentNumber)!=null?l:0),heightPx:36,shouldAnimate:!!K}},{initial:{numberText:"",
numberValue:0,heightPx:36,shouldAnimate:!1}}),Y=iT(function(J){var K=D(),G,X=(K==null?void 0:(G=K.likeCountIfIndifferent)==null?void 0:G.content)!==J.numberText;if(W()||!X)return J;var Z,l;return{numberText:(K==null?void 0:(Z=K.likeCountIfLiked)==null?void 0:Z.content)||"",numberValue:Number((l=K==null?void 0:K.likeCountIfLikedNumber)!=null?l:0),heightPx:36,shouldAnimate:!!K}},{initial:{numberText:"",
numberValue:0,heightPx:36,shouldAnimate:!1}}),L=_.d(_.kj(void 0,void 0,"T6jMHc")),I=L.next().value,V=L.next().value,W=I,O=_.Ty(P7,function(){var J,K;return(K=(J=S.data())==null?void 0:J.likeStatusEntityKey)!=null?K:""}),D=_.Ty(YNk,function(){var J,K;
return((J=S.likeCountEntity)==null?void 0:(K=J.call(S))==null?void 0:K.key)||""}),z=_.nS(function(){var J;
return((J=O())==null?void 0:J.likeStatus)==="LIKE"},void 0,"WxQBcd"),Q=function(){var J;
return p&&!((J=S.likeCountEntity)==null||!J.call(S))};
return _.H("like-button-view-model",{class:"ytLikeButtonViewModelHost"},_.H(_.jS,{data:function(){var J=Object,K=J.assign,G;var X=_.b((G=S.data())==null?void 0:G.toggleButtonViewModel,_.b6);return K.call(J,{},X||{},{isToggled:z()})},
buttonShapeOverrides:S.buttonShapeOverrideables,animatedTextPropsDefault:function(){return Q()?U():void 0},
animatedTextPropsToggled:function(){return Q()?Y():void 0},
onToggle:function(J){n4r(J,O(),W(),V)},
style:function(){var J;return((J=S.disableIconAnimation)==null?0:J.call(S))?void 0:{animateIcon:"true"}}}))},"M");
Jzu=_.y("web_enable_sink_like_button_view_model")?EDH:QLe;_.Rr=_.y("web_enable_sink_like_button_view_model")?EDH:_.Oo(QLe);_.cH(KbX);var mMq=_.$k(function(S){var p=function(){return _.b(S.data().likeButtonViewModel,_.Gy)},U=function(){var L;
return((L=p())==null?void 0:L.likeStatusEntityKey)||""},Y=_.nS(function(){var L,I;
var V=(I=_.Ty(P7,U)())!=null?I:(L=p())==null?void 0:L.likeStatusEntity;L=S.data();var W;L=(L==null?void 0:(W=L.timedAnimationData)==null?void 0:W.animationTiming)||[];return{uniqueId:"like-dislike",timings:L,enabled:(V==null?void 0:V.likeStatus)==="INDIFFERENT"&&L.length>0,experimentEnabled:L.length>0}},void 0,"e1fsz");
return _.H("segmented-like-dislike-button-view-model",{class:_.VD("ytSegmentedLikeDislikeButtonViewModelHost",S.className),"button-renderer":!0},_.H(RF,{settings:Y},_.H("div",{class:"ytSegmentedLikeDislikeButtonViewModelSegmentedButtonsWrapper"},_.H(_.n,{cond:p,then:function(L){return _.H(_.Rr,{data:L,likeCountEntity:function(){return S.data().likeCountEntity},
buttonShapeOverrideables:{segmentedPosition:"start"}})}}),_.H(_.n,{cond:function(){return _.b(S.data().dislikeButtonViewModel,_.hn)},
then:function(L){return _.H(_.hO,{data:L,buttonShapeOverrideables:{iconPosition:"icon-only",segmentedPosition:"end"}})}}))))},"N"),oDj=_.y("web_enable_sink_segmented_like_dislike_button_view_model")?mMq:KbX;
mMq.idomCompat=!0;_.y("web_enable_sink_segmented_like_dislike_button_view_model")?_.qm(oDj,"segmented-like-dislike-button-view-model",{props:{data:_.x2,className:_.x2}}):_.Ls(oDj,"segmented-like-dislike-button-view-model",{propNames:["data"]});var R9r=0;_.qm(E4G,"account-link-button-view-model",{props:{data:_.x2,className:_.BX,setMinWidth:_.BX,forceIconOnly:_.BX}});_.Ry("menuRenderer","menuRenderer","ytd-menu-renderer");
var vDd={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"}},
$Mj=_.y("web_fix_missing_action_buttons")?100:200,FP=function(){var S=_.w.apply(this,arguments)||this;S.safeArea=!_.y("kevlar_flex_menu_safe_area_killswitch");S.tonalOverride=!1;S.threeDotSize="M";S.isOverlay=!1;S.useOverlayDark=!1;S.topLevelIconsOnly=!1;S.JSC$12536_lastWidth=0;S.maybeUpdateFlexibleMenu=function(){_.y("web_fix_missing_action_buttons")?requestAnimationFrame(S.maybeUpdateFlexibleMenuImpl):S.maybeUpdateFlexibleMenuImpl()};
S.maybeUpdateFlexibleMenuImpl=function(){var p;if((p=S.data)!=null&&p.flexibleItems){S.maybeFlushDebouncer();p=S.hostElement.clientWidth;var U=p>S.JSC$12536_lastWidth,Y,L=((Y=S.topLevelButtonsContainer)==null?void 0:Y.scrollHeight)||0,I;Y=((I=S.flexibleItemButtonsContainer)==null?void 0:I.scrollHeight)||0;I=S.hostElement.scrollHeight>Math.max(L,Y)+8;U?(S.resetFlexibleItems(),S.JSC$12536_lastWidth=S.hostElement.clientWidth,S.maybeUpdateFlexibleMenu()):I&&(S.shrinkFlexibleMenu(),S.JSC$12536_lastWidth=
p)}};
S.computeThreeDotButtonShape=function(){return Object.assign({},{onTap:function(){S.onOverflowTap()},
iconPosition:"icon-only",style:S.isOverlay?S.useOverlayDark?"overlay-dark":"overlay":"mono",type:"tonal",size:S.threeDotSize,state:"active",accessibilityLabel:S.computeAccessibilityLabel(S.data)},S.threeDotButtonOverride)};
S.onOverflowTap=function(){if(S.data.fetchMenuCommand)_.tW().resolve(_.cQ).resolveCommand(S.data.fetchMenuCommand,{form:{element:S.hostElement}});else if(S.data.isDisabled&&S.data.disabledCommand)_.Te(S.data.disabledCommand,S.hostElement);else{var p=S.createMenuRendererVe(),U={items:S.items};S.data.menuPopupAccessibility&&(U.menuPopupAccessibility=S.data.menuPopupAccessibility);S.data.footer&&(U.footer=S.data.footer);p={openPopupAction:{popupType:"DROPDOWN",popup:{menuPopupRenderer:U},veData:p}};
_.tW().resolve(_.K7).openSheet({openPopupActionCommand:p},S.hostElement)}};
return S};
_.r(FP,_.w);_.M=FP.prototype;_.M.updateButtonOverrides=function(){if(!_.y("menu_renderer_label_update_upkillswitch")){var S=_.tB(this.hostElement).querySelector("yt-button-view-model");S&&(S.buttonOverrides=this.buttonOverrides)}};
_.M.computeHasItems=function(){var S;return((S=this.topLevelButtonData)==null?void 0:S.length)||this.hasFlexibleItems};
_.M.created=function(){this.boundOnStamperFinished=this.onStamperFinished.bind(this)};
_.M.iconButtonColorChanged=function(){this.data&&this.data.iconColor&&(this.hasCustomIconColor=!0,_.Ms(this.hostElement,{"--ytd-menu-renderer-button-color":_.s1(this.data.iconColor)}))};
_.M.onStamperFinished=function(){this.JSC$12536_lastWidth=this.hostElement.clientWidth;this.maybeUpdateFlexibleMenu()};
_.M.setupFlexibleMenu=function(){var S=this,p;(p=this.data)!=null&&p.flexibleItems?window.ResizeObserver&&(this.hostElement.addEventListener("yt-rendererstamper-finished",this.boundOnStamperFinished),this.hostElement.addEventListener("yt-renderidom-finished",this.boundOnStamperFinished),this.resizeThrottle||(this.resizeThrottle=new _.NB(this.maybeUpdateFlexibleMenu,$Mj,this)),this.resizeObserver||(this.resizeObserver=new ResizeObserver(function(){S.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))};
_.M.maybeFlushDebouncer=function(){if(_.y("web_replace_formatted_with_attributed_string")){var S;(S=this.topLevelButtons)==null||S.forEach(function(U){var Y;(U=(Y=U.getElementsByTagName("yt-attributed-string"))==null?void 0:Y[0])&&G3u(U)});
var p;(p=this.flexibleItemButtons)==null||p.forEach(function(U){var Y;(U=(Y=U.getElementsByTagName("yt-attributed-string"))==null?void 0:Y[0])&&G3u(U)})}};
_.M.resetFlexibleItems=function(){var S;if((S=this.data)!=null&&S.flexibleItems){_.y("web_fix_missing_action_buttons")||this.hostElement.removeEventListener("yt-rendererstamper-finished",this.maybeUpdateFlexibleMenu);var p;this.flexAsTopLevelButtons=(p=this.data.flexibleItems)==null?void 0:p.map(function(U){return _.b(U,_.w1E).topLevelButton});
_.y("web_fix_missing_action_buttons")||this.hostElement.addEventListener("yt-rendererstamper-finished",this.maybeUpdateFlexibleMenu)}};
_.M.computeButtonOverride=function(){if(this.tonalOverride)return{style:"mono",type:"tonal"}};
_.M.shrinkFlexibleMenu=function(){var S;(S=this.flexAsTopLevelButtons)!=null&&S.length&&(this.flexAsTopLevelButtons=[].concat(_.jo(this.flexAsTopLevelButtons.slice(0,-1))))};
_.M.configureRendererStamper=function(){return{topLevelButtonData:{id:"top-level-buttons-computed",mapping:vDd,events:!0},flexAsTopLevelButtons:{id:"flexible-item-buttons",mapping:vDd,events:!0}}};
_.M.tonalOverrideChanged=function(){this.tonalOverride&&(this.ytdOpenPopupBehavior.popupPositionTarget=this.buttonShape)};
_.M.ready=function(){this.menuFocused=!0;this.overlayOpen=!1;this.ytdOpenPopupBehavior.popupPositionTarget=this.button;this.tonalOverride&&(this.ytdOpenPopupBehavior.popupPositionTarget=this.buttonShape)};
_.M.detached=function(){this.icon="yt-icons:more_vert"};
_.M.computeTopLevelButtonData=function(S){if(!S)return[];var p;S=(p=S==null?void 0:S.topLevelButtons)!=null?p:[];return _.h9.unsafeClone([].concat(_.jo(S)))};
_.M.computeItems=function(S,p){if(!S)return[];var U=[];if(p){var Y=(S.flexibleItems||[]).map(function(V){return _.b(V,_.w1E)});
Y=_.d(Y);for(var L=Y.next();!L.done;L=Y.next())L=L.value,p.includes(L.topLevelButton)||(L=L.menuItem)&&U.push(L)}var I;S=(I=S==null?void 0:S.items)!=null?I:[];return[].concat(_.jo(U),_.jo(S))};
_.M.computeMenuActive=function(S,p){return S||p};
_.M.onPopupOpened=function(){this.overlayOpen=!0;_.cv(this.hostElement,"yt-menu-overlay-changed",this.overlayOpen);this.menuFocused==null&&(this.menuFocused=!1)};
_.M.onPopupClosed=function(){this.overlayOpen=!1;_.cv(this.hostElement,"yt-menu-overlay-changed",this.overlayOpen)};
_.M.onPopupCanceled=function(){this.overlayOpen=!1;_.cv(this.hostElement,"yt-menu-overlay-changed",this.overlayOpen)};
_.M.computeAccessibilityLabel=function(S){return this.get("accessibility.accessibilityData.label",S)};
_.M.isHidden=function(S,p){return this.tonalOverride||!S?!0:S.fetchMenuCommand||S.isDisabled&&S.disabledCommand?!1:!(p==null?0:p.length)};
_.M.isModernOverflowHidden=function(S,p){return this.tonalOverride&&S?S.fetchMenuCommand?!1:!(p==null?0:p.length):!0};
_.M.createMenuRendererVe=function(){var S=this.data.trackingParams,p=_.X$(),U=_.F$();return S&&p&&U?(S=_.JS(S),U=_.bZ(7591),_.y("combine_ve_grafts")?_.pa(_.HX(),U,S):_.wB(p,S,U),U):null};
_.$u.Object.defineProperties(FP.prototype,{hasFlexibleItems:{configurable:!0,enumerable:!0,get:function(){var S;return!((S=this.flexAsTopLevelButtons)==null||!S.length)}},
buttonOverrides:{configurable:!0,enumerable:!0,get:function(){if(this.topLevelIconsOnly)return{iconPosition:"icon-only"}}}});
FP.prototype.onPopupCanceled=FP.prototype.onPopupCanceled;FP.prototype.onPopupClosed=FP.prototype.onPopupClosed;FP.prototype.onPopupOpened=FP.prototype.onPopupOpened;FP.prototype.tonalOverrideChanged=FP.prototype.tonalOverrideChanged;FP.prototype.resetFlexibleItems=FP.prototype.resetFlexibleItems;FP.prototype.setupFlexibleMenu=FP.prototype.setupFlexibleMenu;FP.prototype.iconButtonColorChanged=FP.prototype.iconButtonColorChanged;FP.prototype.updateButtonOverrides=FP.prototype.updateButtonOverrides;
_.x([_.F(_.xK),_.E("design:type",Object)],FP.prototype,"ytdOpenPopupBehavior",void 0);_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],FP.prototype,"ytRendererBehavior",void 0);_.x([_.F(_.qH.YtRendererstamperBehavior),_.E("design:type",Object)],FP.prototype,"ytRendererstamperBehavior",void 0);_.x([_.O2("#button-shape"),_.E("design:type",LY)],FP.prototype,"buttonShape",void 0);_.x([_.O2("#button"),_.E("design:type",Object)],FP.prototype,"button",void 0);
_.x([_.g(),_.E("design:type",Object)],FP.prototype,"data",void 0);_.x([_.g({computed:"computeTopLevelButtonData(data)"}),_.E("design:type",Array)],FP.prototype,"topLevelButtonData",void 0);_.x([_.g(),_.E("design:type",Array)],FP.prototype,"flexAsTopLevelButtons",void 0);_.x([_.g({computed:"computeItems(data, flexAsTopLevelButtons)"}),_.E("design:type",Array)],FP.prototype,"items",void 0);_.x([_.g({value:"yt-icons:more_vert"}),_.E("design:type",String)],FP.prototype,"icon",void 0);
_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],FP.prototype,"safeArea",void 0);_.x([_.g({reflectToAttribute:!0,computed:"computeMenuActive(menuFocused, overlayOpen)"}),_.E("design:type",Boolean)],FP.prototype,"menuActive",void 0);_.x([_.g(),_.E("design:type",Boolean)],FP.prototype,"menuFocused",void 0);_.x([_.g({value:"bottom"}),_.E("design:type",String)],FP.prototype,"buttonTooltipPosition",void 0);_.x([_.g(),_.E("design:type",Boolean)],FP.prototype,"overlayOpen",void 0);
_.x([_.g({value:!0}),_.E("design:type",Boolean)],FP.prototype,"forceIconButton",void 0);_.x([_.g(),_.E("design:type",Boolean)],FP.prototype,"styleActionButton",void 0);_.x([_.g(),_.E("design:type",Boolean)],FP.prototype,"disableTextTransformOnButtons",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],FP.prototype,"tonalOverride",void 0);_.x([_.g(),_.E("design:type",Object)],FP.prototype,"threeDotSize",void 0);
_.x([_.g(),_.E("design:type",Object)],FP.prototype,"threeDotButtonOverride",void 0);_.x([_.g(),_.E("design:type",Object)],FP.prototype,"isOverlay",void 0);_.x([_.g(),_.E("design:type",Object)],FP.prototype,"useOverlayDark",void 0);_.x([_.g({computed:"computeButtonOverride(tonalOverride)"}),_.E("design:type",Object)],FP.prototype,"buttonOverride",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Boolean)],FP.prototype,"hasCustomIconColor",void 0);
_.x([_.g({reflectToAttribute:!0}),_.e("flexAsTopLevelButtons"),_.E("design:type",Object),_.E("design:paramtypes",[])],FP.prototype,"hasFlexibleItems",null);_.x([_.g({reflectToAttribute:!0,computed:"computeHasItems(topLevelButtonData, flexAsTopLevelButtons)"}),_.E("design:type",Boolean)],FP.prototype,"hasItems",void 0);_.x([_.g(),_.E("design:type",Object)],FP.prototype,"topLevelIconsOnly",void 0);
_.x([_.T4("topLevelIconsOnly"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],FP.prototype,"updateButtonOverrides",null);_.x([_.e("topLevelIconsOnly"),_.E("design:type",Object),_.E("design:paramtypes",[])],FP.prototype,"buttonOverrides",null);_.x([_.O2("#top-level-buttons-computed"),_.E("design:type",HTMLElement)],FP.prototype,"topLevelButtonsContainer",void 0);_.x([_.kk(".top-level-buttons > *"),_.E("design:type",Array)],FP.prototype,"topLevelButtons",void 0);
_.x([_.O2("#flexible-item-buttons"),_.E("design:type",HTMLElement)],FP.prototype,"flexibleItemButtonsContainer",void 0);_.x([_.kk("#flexible-item-buttons > *"),_.E("design:type",Array)],FP.prototype,"flexibleItemButtons",void 0);_.x([_.T4("data"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],FP.prototype,"iconButtonColorChanged",null);
_.x([_.z4("data"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],FP.prototype,"setupFlexibleMenu",null);_.x([_.z4("topLevelIconsOnly"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],FP.prototype,"resetFlexibleItems",null);_.x([_.T4("tonalOverride"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],FP.prototype,"tonalOverrideChanged",null);
_.x([_.Vd("yt-popup-opened"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],FP.prototype,"onPopupOpened",null);_.x([_.Vd("yt-popup-closed"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],FP.prototype,"onPopupClosed",null);_.x([_.Vd("yt-popup-canceled"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],FP.prototype,"onPopupCanceled",null);
_.C(FP,"ytd-menu-renderer",function(){if(WIe===void 0){var S=document.createElement("template");_.h(S,'\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>');
S.content.insertBefore(_.t().content.cloneNode(!0),S.content.firstChild);WIe=S}S=WIe;return S},{mode:_.UW("kevlar_poly_si_batch_j030")?1:2});var iFQ;var Nvd;_.vG=_.$k(function(S){var p=S.data;var U=function(){if(p().icon)a:{var Y={iconName:p().icon};for(var L=_.tW().resolve(_.dx),I=_.d([12,24]),V=I.next();!V.done;V=I.next()){var W=V.value;V=Object.assign({},Y,{iconStyle:"youtube_fill",iconSize:W});W=Object.assign({},Y,{iconStyle:"youtube_outline",iconSize:W});if(L.resolveIcon(V)){Y=V;break a}if(L.resolveIcon(W)){Y=W;break a}}Y=void 0}else Y=void 0;return Y};
S={};return _.H("badge-shape",{class:_.VD("badge-shape-wiz",function(){return v4e(p().type)},(S["badge-shape-wiz--overlay"]=function(){return p().isOverlay},S["badge-shape-wiz--ads-include-dot"]=function(){return p().adsIncludeDot},S["badge-shape-wiz--thumbnail-badge"]=function(){a:switch(p().type){case 16:case 17:case 18:var Y=!0;
break a;default:Y=!1}return Y},S["badge-shape-wiz--status-badge"]=function(){a:switch(p().type){case 11:case 12:case 13:case 14:case 15:var Y=!0;
break a;default:Y=!1}return Y},S["badge-shape-wiz--no-text"]=function(){return!p().text},S["badge-shape-wiz--modern"]=function(){return p().modern},S)),
style:_.zw({"background-color":function(){var Y;return(Y=p().customColors)==null?void 0:Y.backgroundColor}}),
role:function(){return p().accessibilityText?"img":void 0},
"aria-label":function(){return p().accessibilityText}},_.H(_.n,{cond:function(){return p().animation},
then:function(Y){return _.H(_.Tw,{className:"badge-shape-wiz__icon",data:Y,animationName:function(){return Y().animationConfig.name||""}})}}),_.H(_.n,{cond:function(){var Y;
return U()&&!((Y=p())==null?0:Y.animation)},
then:function(){return _.H("div",{class:"badge-shape-wiz__icon"},_.H(E6e,{data:function(){return U()}}))}}),_.H("div",{class:"badge-shape-wiz__text"},function(){var Y;
return(Y=p())==null?void 0:Y.text}))},"O");
_.vG.idomCompat=!0;_.qm(_.vG,"badge-shape",{props:{data:_.x2}});var XP=function(){var S=_.w.apply(this,arguments)||this;S.systemIcons=_.y("kevlar_system_icons");S.animated=_.y("animated_live_badge_icon");S.useBadgeShape=_.y("web_badge_shape_defrag");return S};
_.r(XP,_.w);_.M=XP.prototype;_.M.addTooltips=function(){for(var S=_.tB(this.hostElement).querySelectorAll(".badge"),p=0,U;U=S[p++];){var Y=this.repeatElement.itemForElement(U);U=_.tB(U);U.lastChild&&U.lastChild.is==="tp-yt-paper-tooltip"&&U.removeChild(U.lastChild);if(Y=Y.metadataBadgeRenderer&&Y.metadataBadgeRenderer.tooltip){var L=_.ij("tp-yt-paper-tooltip");(0,_.L3)(L).textContent=Y;L.setAttribute("position","top");L.setAttribute("aria-hidden","true");U.appendChild(L)}}};
_.M.badgesChanged=function(){var S=this;_.Pt().parkOrScheduleJob(function(){S.addTooltips()},0,"eocs",16);
this.updateComputedBadges(this.badges,this.topStandaloneBadge)};
_.M.standaloneRoundedBadgeChanged=function(){var S=this.useRoundedBadge?this.useRoundedBadge:void 0;S&&(this.useRoundedBadge=S)};
_.M.standaloneBadgeChanged=function(){this.updateComputedBadges(this.badges,this.topStandaloneBadge,this.bottomStandaloneBadge)};
_.M.hiddenBadgeGroupsChanged=function(){this.updateComputedBadges(this.badges,this.topStandaloneBadge,this.bottomStandaloneBadge)};
_.M.computeStyle=function(S){_.y("enable_html5_teal_ad_badge")&&S==="BADGE_STYLE_TYPE_AD"&&(S="badge-style-type-ad-alternate");_.y("kevlar_ytb_live_badges")&&S==="BADGE_STYLE_TYPE_LIVE_NOW"&&(S="badge-style-type-live-now-alternate");return S?S.toLowerCase().replace(/_/g,"-"):""};
_.M.computeRole=function(S){return this.computeAriaLabel(S)?"img":"status"};
_.M.computeAriaLabel=function(S){var p;return(S==null?void 0:(p=S.accessibilityData)==null?void 0:p.label)||(S==null?void 0:S.label)};
_.M.computeBadgeShape=function(S){var p;if(S){var U,Y=mEX(S.style),L=o4q(S.style),I=S.label,V=((U=S.accessibilityData)==null?void 0:U.label)||S.label;S=(p=S.icon)==null?void 0:p.iconType;p={type:Y,brNzRatingBadgeType:L,text:I,accessibilityText:V,icon:S!=="PREMIUM"?S:void 0}}else p={};return p};
_.M.updateComputedBadges=function(S,p,U){var Y=this;(p=p?[p]:U?[U]:void 0)?this.computedBadges=p:this.computedBadges=S==null?void 0:S.filter(function(L){var I;if((I=L.metadataBadgeRenderer)==null?0:I.groups){I=!1;L=_.d(L.metadataBadgeRenderer.groups);for(var V=L.next();!V.done;V=L.next()){V=V.value;var W=void 0;I=I||((W=Y.hiddenBadgeGroups)==null?void 0:W.includes(V))}return!I}return!0})};
_.M.useFilledIcons=function(S){return _.y("kevlar_system_icons")&&(S==="AUDIO_BADGE"||S==="CHECK_CIRCLE_THICK"||S==="OFFICIAL_ARTIST_BADGE"||S==="SPONSORSHIP_STAR"||S==="PERSON_RADAR_FILLED"||S==="PERSON_RADAR")};
_.M.computeIcon=function(S){var p,U;S=S==null?void 0:(p=S.metadataBadgeRenderer)==null?void 0:(U=p.icon)==null?void 0:U.iconType;if(S!=="PREMIUM"&&S)return _.If(S)};
_.M.computeStandaloneBadge=function(S){var p;S=S==null?void 0:(p=S.icon)==null?void 0:p.iconType;return S==="PREMIUM_STANDALONE"||S==="PREMIUM_STANDALONE_CAIRO"?"standalone-badge":""};
XP.prototype.hiddenBadgeGroupsChanged=XP.prototype.hiddenBadgeGroupsChanged;XP.prototype.standaloneBadgeChanged=XP.prototype.standaloneBadgeChanged;XP.prototype.standaloneRoundedBadgeChanged=XP.prototype.standaloneRoundedBadgeChanged;XP.prototype.badgesChanged=XP.prototype.badgesChanged;_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Boolean)],XP.prototype,"hidden",void 0);_.x([_.F(_.eL.YtComponentBehavior),_.E("design:type",Object)],XP.prototype,"componentBehavior",void 0);
_.x([_.g(),_.E("design:type",Array)],XP.prototype,"badges",void 0);_.x([_.g(),_.E("design:type",Object)],XP.prototype,"topStandaloneBadge",void 0);_.x([_.g(),_.E("design:type",Object)],XP.prototype,"bottomStandaloneBadge",void 0);_.x([_.g(),_.E("design:type",Object)],XP.prototype,"computedBadges",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Boolean)],XP.prototype,"mediumFontAdBadge",void 0);
_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Boolean)],XP.prototype,"useRoundedBadge",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Boolean)],XP.prototype,"largeFontAdBadge",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Boolean)],XP.prototype,"overlayAd",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Boolean)],XP.prototype,"overlayPremium",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Boolean)],XP.prototype,"noDotAdBadge",void 0);
_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Boolean)],XP.prototype,"collectionTruncate",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Boolean)],XP.prototype,"isThumbnailBadge",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Boolean)],XP.prototype,"wrapBadges",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],XP.prototype,"systemIcons",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],XP.prototype,"animated",void 0);
_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],XP.prototype,"useBadgeShape",void 0);_.x([_.g({value:[]}),_.E("design:type",Array)],XP.prototype,"hiddenBadgeGroups",void 0);_.x([_.O2("#repeat"),_.E("design:type",r9)],XP.prototype,"repeatElement",void 0);_.x([_.z4("badges"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],XP.prototype,"badgesChanged",null);
_.x([_.z4("useRoundedBadge"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],XP.prototype,"standaloneRoundedBadgeChanged",null);_.x([_.z4("topStandaloneBadge","bottomStandaloneBadge"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],XP.prototype,"standaloneBadgeChanged",null);_.x([_.z4("hiddenBadgeGroups"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],XP.prototype,"hiddenBadgeGroupsChanged",null);
XP=_.x([_.f({is:"ytd-badge-supported-renderer",disableElementRegistration:!0})],XP);
var Bvc=_.pz()(XP,"ytd-badge-supported-renderer",function(){if(Nvd===void 0){var S=document.createElement("template");_.h(S,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-badge-supported-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<template is="dom-repeat" id="repeat" items="[[computedBadges]]" as="badge" class="style-scope ytd-badge-supported-renderer"><template is="dom-if" if="[[useBadgeShape]]" class="style-scope ytd-badge-supported-renderer"><badge-shape data="[[computeBadgeShape(badge.metadataBadgeRenderer)]]" class="style-scope ytd-badge-supported-renderer"></badge-shape></template><template is="dom-if" if="[[!useBadgeShape]]" class="style-scope ytd-badge-supported-renderer"><div class$="badge [[computeStandaloneBadge(badge.metadataBadgeRenderer)]] [[computeStyle(badge.metadataBadgeRenderer.style)]] style-scope ytd-badge-supported-renderer" role="[[computeRole(badge.metadataBadgeRenderer)]]" aria-label$="[[computeAriaLabel(badge.metadataBadgeRenderer)]]"><yt-icon default-to-filled="[[useFilledIcons(badge.metadataBadgeRenderer.icon.iconType)]]" disable-upgrade$="[[!badge.metadataBadgeRenderer.icon]]" hidden="[[!computeIcon(badge)]]" icon="[[computeIcon(badge)]]" size="16" class="style-scope ytd-badge-supported-renderer"></yt-icon><p class="style-scope ytd-badge-supported-renderer">[[badge.metadataBadgeRenderer.label]]</p></div></template></template>');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);Nvd=S}S=Nvd;return S},{allowedProps:"badges bottomStandaloneBadge collectionTruncate hidden hiddenBadgeGroups isThumbnailBadge largeFontAdBadge noDotAdBadge overlayAd overlayPremium topStandaloneBadge useRoundedBadge wrapBadges".split(" "),
mode:_.UW("kevlar_poly_si_batch_j053")?1:2});var PW=function(){var S=_.w.apply(this,arguments)||this;S.iconType="STAR";S.standardizeIconSize=_.y("kevlar_system_icons");S.mediaHoverOverlayInitialVisibility=_.y("enable_top_landscape_image_button_command_web");S.noBottomMargin=!1;S.thumbnailObjectFit="CONTAIN";S.thumbnailFitHeight=!0;S.actionMap={"yt-mute-ad-action":"handleMuteAd"};return S};
_.r(PW,_.w);_.M=PW.prototype;
_.M.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"}}}};
_.M.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",PW.JSC$12548_DEFAULT_CLICK_LOCATION_BEHAVIOR,PW.JSC$12548_CLICK_LOCATION_ID_MAP))};
_.M.onTap=function(S){if(!_.y("use_on_click_for_desktop_display_ad"))this.onTapOrClick(S)};
_.M.onClick=function(S){if(_.y("use_on_click_for_desktop_display_ad"))this.onTapOrClick(S)};
_.M.onTapOrClick=function(S){this.clickCommand&&this.ytSparklesClickLocationBehavior.handleClick(this.clickCommand,S,!1)};
_.M.updateMediaBackgroundImage=function(){var S=this.get("data.image.thumbnail.thumbnails");S&&(S=_.AS(S,0))&&_.Ms(this.hostElement,{"--ytd-display-ad-media-background-image":"url("+S+")"})};
_.M.impressionLog=function(){if(!this.data||!this.data.impressionsFired){if(this.data&&this.data.impressionEndpoints){for(var S=0;S<this.data.impressionEndpoints.length;S++){var p=this.data.impressionEndpoints[S];p.clickTrackingParams&&delete p.clickTrackingParams;_.tW().resolve(_.cQ).resolveCommand(p,{form:{element:this.hostElement}})}this.data.impressionsFired=!0}var U;((U=this.data)==null?0:U.activeView)&&this.ytdActiveViewBehavior.enableActiveViewMeasurement(this.data.activeView,17)}};
_.M.handleMuteAd=function(){};
_.M.attached=function(){var S=this;_.y("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&S.ytdActiveViewBehavior.stopActiveViewMeasurement()})};
_.M.detached=function(){_.y("stop_av_measurement_on_detach")&&this.ytdActiveViewBehavior.stopActiveViewMeasurement()};
_.$u.Object.defineProperties(PW.prototype,{titleAriaLabel:{configurable:!0,enumerable:!0,get:function(){var S;if((S=this.data)==null||!S.titleText)return"";var p;return _.Oh("AD_TITLE",{title:this.ytRendererBehavior.getSimpleString((p=this.data)==null?void 0:p.titleText)})}},
getRating:{configurable:!0,enumerable:!0,get:function(){var S;return((S=this.data)==null?0:S.rating)?Number(this.data.rating).toPrecision(2):null}},
getPrice:{configurable:!0,enumerable:!0,get:function(){var S;return((S=this.data)==null?0:S.price)?this.data.price:null}},
getThirdLine:{configurable:!0,enumerable:!0,get:function(){var S;return((S=this.data)==null?0:S.thirdLine)?this.data.thirdLine:null}},
getFourthLine:{configurable:!0,enumerable:!0,get:function(){var S;return((S=this.data)==null?0:S.fourthLine)?this.data.fourthLine:null}},
getFifthLine:{configurable:!0,enumerable:!0,get:function(){var S;return((S=this.data)==null?0:S.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 S;return!((S=this.data)==null||!S.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"}}});
PW.prototype.onClick=PW.prototype.onClick;PW.prototype.onTap=PW.prototype.onTap;PW.prototype.dataChanged=PW.prototype.dataChanged;
PW.JSC$12548_CLICK_LOCATION_ID_MAP=_.y("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"]]);
PW.JSC$12548_DEFAULT_CLICK_LOCATION_BEHAVIOR=_.y("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"}];_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],PW.prototype,"ytRendererBehavior",void 0);_.x([_.F(_.qH.YtRendererstamperBehavior),_.E("design:type",Object)],PW.prototype,"ytRendererstamperBehavior",void 0);
_.x([_.F(_.Zh),_.E("design:type",Object)],PW.prototype,"ytdDismissibleItemBehavior",void 0);_.x([_.F(_.Xh),_.E("design:type",Object)],PW.prototype,"ytdReduxBehavior",void 0);_.x([_.F(_.BL.YtSparklesClickLocationBehavior),_.E("design:type",Object)],PW.prototype,"ytSparklesClickLocationBehavior",void 0);_.x([_.F(Rk),_.E("design:type",Object)],PW.prototype,"ytdActiveViewBehavior",void 0);_.x([_.F([_.Aj.YtActionHandlerBehavior]),_.E("design:type",Object)],PW.prototype,"actionHandlerBehavior",void 0);
_.x([_.g(),_.E("design:type",Object)],PW.prototype,"data",void 0);_.x([_.g(),_.E("design:type",Object)],PW.prototype,"clickCommand",void 0);_.x([_.g({reflectToAttribute:!0,selector:_.hZ}),_.E("design:type",Boolean)],PW.prototype,"miniMode",void 0);_.x([_.g(),_.E("design:type",String)],PW.prototype,"iconType",void 0);_.x([_.e("data.titleText"),_.E("design:type",String),_.E("design:paramtypes",[])],PW.prototype,"titleAriaLabel",null);
_.x([_.e("data.rating"),_.E("design:type",Object),_.E("design:paramtypes",[])],PW.prototype,"getRating",null);_.x([_.e("data.price"),_.E("design:type",Object),_.E("design:paramtypes",[])],PW.prototype,"getPrice",null);_.x([_.e("data.thirdLine"),_.E("design:type",Object),_.E("design:paramtypes",[])],PW.prototype,"getThirdLine",null);_.x([_.e("data.fourthLine"),_.E("design:type",Object),_.E("design:paramtypes",[])],PW.prototype,"getFourthLine",null);
_.x([_.e("data.fifthLine"),_.E("design:type",Object),_.E("design:paramtypes",[])],PW.prototype,"getFifthLine",null);_.x([_.e("getRating"),_.E("design:type",Boolean),_.E("design:paramtypes",[])],PW.prototype,"computeRatingHidden",null);_.x([_.e("getPrice"),_.E("design:type",Boolean),_.E("design:paramtypes",[])],PW.prototype,"computePriceHidden",null);_.x([_.e("getThirdLine"),_.E("design:type",Boolean),_.E("design:paramtypes",[])],PW.prototype,"computeThirdLineHidden",null);
_.x([_.e("getFourthLine"),_.E("design:type",Boolean),_.E("design:paramtypes",[])],PW.prototype,"computeFourthLineHidden",null);_.x([_.e("getFifthLine"),_.E("design:type",Boolean),_.E("design:paramtypes",[])],PW.prototype,"computeFifthLineHidden",null);_.x([_.g({reflectToAttribute:!0}),_.e("data.energyIcon"),_.E("design:type",Boolean),_.E("design:paramtypes",[])],PW.prototype,"hasEnergyIcon",null);
_.x([_.e("computePriceHidden","computeRatingHidden"),_.E("design:type",Boolean),_.E("design:paramtypes",[])],PW.prototype,"computeSecondaryTextHidden",null);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],PW.prototype,"standardizeIconSize",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],PW.prototype,"mediaHoverOverlayInitialVisibility",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],PW.prototype,"noBottomMargin",void 0);
_.x([_.g({reflectToAttribute:!0}),_.e("data.layout"),_.E("design:type",String),_.E("design:paramtypes",[])],PW.prototype,"layout",null);_.x([_.e("data.layout"),_.E("design:type",Object),_.E("design:paramtypes",[])],PW.prototype,"mediaThumbnailWidth",null);_.x([_.e("layout"),_.E("design:type",Boolean),_.E("design:paramtypes",[])],PW.prototype,"useRoundedBadge",null);_.x([_.g(),_.E("design:type",String)],PW.prototype,"thumbnailObjectFit",void 0);
_.x([_.g(),_.E("design:type",Object)],PW.prototype,"thumbnailFitHeight",void 0);_.x([_.z4("data"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],PW.prototype,"dataChanged",null);_.x([_.Vd("tap"),_.E("design:type",Function),_.E("design:paramtypes",[CustomEvent]),_.E("design:returntype")],PW.prototype,"onTap",null);_.x([_.Vd("click"),_.E("design:type",Function),_.E("design:paramtypes",[CustomEvent]),_.E("design:returntype")],PW.prototype,"onClick",null);
PW=_.x([_.f({is:"ytd-display-ad-renderer",disableElementRegistration:!0})],PW);
_.C(PW,"ytd-display-ad-renderer",function(){if(iFQ!==void 0)return iFQ;var S=document.createElement("template");_.h(S,'\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');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);return iFQ=S},{mode:1});var qAc;var ANP;var t5t;var $Er=new Map;var cNj=!1;var Zk=function(){var S=_.w.apply(this,arguments)||this;S.DEFAULT_TOOLTIP_OFFSET="10";S.TOOLTIP_OFFSET_NO_BANNER="-8";S.badges=null;S.noEndpoints=!1;S.wrapText=!1;S.forceVerified=!1;S.tooltipPosition="top";S.compactStyle=!1;S.height=0;S.lineHeight=0;return S};
_.r(Zk,_.w);_.M=Zk.prototype;_.M.created=function(){this.ytActionHandlerBehavior.actionMap={"yt-window-resized":"handleWindowResized"}};
_.M.attached=function(){var S=this;this.observer=new MutationObserver(function(p,U){S.handleResized();U.disconnect()});
this.observer.observe(this.textEl,{childList:!0})};
_.M.detached=function(){this.observer&&this.observer.disconnect()};
_.M.logTooltipEvent=function(){_.y("kevlar_wiz_tooltip_event_killswitch")||cNj||(_.iOw("GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WIZ_NEXT_CHANNEL_NAME_TOOLTIP"),cNj=!0)};
_.M.handleWindowResized=function(){this.handleResized()};
_.M.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")))};
_.M.onHeightChanged=function(){if(this.verified){var S=Math.ceil(this.height*Math.tan(30*Math.PI/180))+"px";_.g7("HTML_DIR")==="rtl"?this.textContainerEl.style.marginLeft=S:this.textContainerEl.style.marginRight=S}};
_.M.onLineHeightChanged=function(){this.verified&&(this.lineHeight>=24||this.lineHeight===0&&this.height>=24)&&(this.textContainerEl.style.padding=_.g7("HTML_DIR")==="rtl"?"0 6px 0 2px":"0 2px 0 6px")};
_.M.handleResized=function(){var S=this;this.verified&&_.PA.addLowPriorityJob(function(){S.fitBackgroundToText();var p=getComputedStyle(S.hostElement).lineHeight;p&&(p=p.match(/\d+/))&&p.length&&(S.lineHeight=Number(p[0]));S.height=S.lineHeight&&!S.wrapText?S.lineHeight:S.textEl.offsetHeight})};
_.M.fitBackgroundToText=function(){if(this.verified&&this.wrapText){this.textEl.style.width="unset";var S=document.createRange(),p=_.tB(this.textEl).children;p.length>0?S.selectNodeContents(p[0]):S.selectNodeContents(this.textEl);this.textEl.style.width=Math.ceil(S.getBoundingClientRect().width)+"px"}};
_.M.computeChannelBadgeStyle=function(S){var p;if((S==null?0:(p=S.runs)==null?0:p.length)&&S.runs[0].textColor)return"--ytd-badge-icon-color:"+_.s1(S.runs[0].textColor)+";"};
_.$u.Object.defineProperties(Zk.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"?_.Ec(this.channelName):this.channelName}},
tooltipText:{configurable:!0,enumerable:!0,get:function(){if(this.verified){if(this.tooltip)return this.tooltip;var S=this.get("badges.0.metadataBadgeRenderer.tooltip");if(S)return S}return _.mA(this.formattedName)}},
tooltipOffset:{configurable:!0,enumerable:!0,get:function(){return this.hasChannelArt?this.DEFAULT_TOOLTIP_OFFSET:this.TOOLTIP_OFFSET_NO_BANNER}}});
Zk.prototype.onLineHeightChanged=Zk.prototype.onLineHeightChanged;Zk.prototype.onHeightChanged=Zk.prototype.onHeightChanged;Zk.prototype.onChannelNameChanged=Zk.prototype.onChannelNameChanged;_.x([_.F(_.Aj.YtActionHandlerBehavior),_.E("design:type",Object)],Zk.prototype,"ytActionHandlerBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],Zk.prototype,"badges",void 0);_.x([_.g(),_.E("design:type",Object)],Zk.prototype,"channelName",void 0);
_.x([_.g(),_.E("design:type",Object)],Zk.prototype,"noEndpoints",void 0);_.x([_.g(),_.E("design:type",Object)],Zk.prototype,"wrapText",void 0);_.x([_.g(),_.E("design:type",Object)],Zk.prototype,"forceVerified",void 0);_.x([_.g(),_.E("design:type",Object)],Zk.prototype,"tooltipPosition",void 0);_.x([_.g(),_.E("design:type",String)],Zk.prototype,"tooltip",void 0);_.x([_.g(),_.E("design:type",Boolean)],Zk.prototype,"hasChannelArt",void 0);
_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],Zk.prototype,"compactStyle",void 0);_.x([_.O2("#text-container"),_.E("design:type",HTMLElement)],Zk.prototype,"textContainerEl",void 0);_.x([_.O2("#text"),_.E("design:type",Object)],Zk.prototype,"textEl",void 0);_.x([_.O2("#verified-tooltip"),_.E("design:type",HTMLElement)],Zk.prototype,"verifiedTooltip",void 0);_.x([_.g(),_.E("design:type",Object)],Zk.prototype,"height",void 0);
_.x([_.g(),_.E("design:type",Object)],Zk.prototype,"lineHeight",void 0);_.x([_.g({reflectToAttribute:!0}),_.e("badges","forceVerified"),_.E("design:type",Boolean),_.E("design:paramtypes",[])],Zk.prototype,"verified",null);_.x([_.e("badges","verified"),_.E("design:type",Boolean),_.E("design:paramtypes",[])],Zk.prototype,"hideBadges",null);_.x([_.e("channelName"),_.E("design:type",Object),_.E("design:paramtypes",[])],Zk.prototype,"formattedName",null);
_.x([_.e("badges","verified","formattedName"),_.E("design:type",String),_.E("design:paramtypes",[])],Zk.prototype,"tooltipText",null);_.x([_.e("hasChannelArt"),_.E("design:type",String),_.E("design:paramtypes",[])],Zk.prototype,"tooltipOffset",null);_.x([_.T4("channelName"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],Zk.prototype,"onChannelNameChanged",null);
_.x([_.T4("height"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],Zk.prototype,"onHeightChanged",null);_.x([_.T4("lineHeight","height"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],Zk.prototype,"onLineHeightChanged",null);Zk=_.x([_.f({is:"ytd-channel-name",disableElementRegistration:!0})],Zk);
_.C(Zk,"ytd-channel-name",function(){if(t5t!==void 0)return t5t;var S=document.createElement("template");_.h(S,'\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');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);return t5t=S},{mode:_.UW("kevlar_poly_si_batch_j036")?1:2});var sQ=function(){var S=_.w.apply(this,arguments)||this;S.standardizeIconSize=_.y("kevlar_system_icons");S.enableModernCommentBadges=_.y("enable_modern_comment_badges");return S};
_.r(sQ,_.w);sQ.prototype.basicPaletteChanged=function(){var S;(S=this.data.color)!=null&&S.basicColorPaletteData&&_.Gw(this.hostElement,this.data.color.basicColorPaletteData)};
sQ.prototype.colorChanged=function(){if(!this.enableModernCommentBadges){var S,p=this.get("basicColorPaletteData.backgroundColor",(S=this.data)==null?void 0:S.color),U;S=this.get("basicColorPaletteData.foregroundTitleColor",(U=this.data)==null?void 0:U.color);U={};p?(p=_.s1(p),U["--ytd-author-comment-badge-background-color"]=p):(U["--ytd-author-comment-badge-icon-background-color"]="transparent",U["--ytd-author-comment-badge-background-color"]="transparent");S?(p=_.s1(S),U["--ytd-author-comment-badge-name-color"]=
p,U["--ytd-author-comment-badge-icon-color"]=p):U["--ytd-author-comment-badge-name-color"]="var(--yt-spec-text-primary)";Object.keys(U).length>0&&_.Ms(this.hostElement,U)}};
sQ.prototype.useFilledIcons=function(S){return _.y("kevlar_system_icons")&&(S==="CHECK_CIRCLE_THICK"||S==="OFFICIAL_ARTIST_BADGE")};
_.$u.Object.defineProperties(sQ.prototype,{verified:{configurable:!0,enumerable:!0,get:function(){return!!this.data.authorUnifiedVerified}},
creator:{configurable:!0,enumerable:!0,get:function(){return this.data.authorCreator||!!this.get("data.color.basicColorPaletteData.backgroundColor")}}});
sQ.prototype.colorChanged=sQ.prototype.colorChanged;sQ.prototype.basicPaletteChanged=sQ.prototype.basicPaletteChanged;_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],sQ.prototype,"ytRendererBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],sQ.prototype,"data",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Boolean)],sQ.prototype,"standardizeIconSize",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],sQ.prototype,"enableModernCommentBadges",void 0);
_.x([_.g({reflectToAttribute:!0}),_.e("data.authorUnifiedVerified"),_.E("design:type",Object),_.E("design:paramtypes",[])],sQ.prototype,"verified",null);_.x([_.g({reflectToAttribute:!0}),_.e("data"),_.E("design:type",Object),_.E("design:paramtypes",[])],sQ.prototype,"creator",null);_.x([_.T4("data.color.basicColorPaletteData"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],sQ.prototype,"basicPaletteChanged",null);
_.x([_.T4("data.color"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],sQ.prototype,"colorChanged",null);sQ=_.x([_.f({is:"ytd-author-comment-badge-renderer",disableElementRegistration:!0})],sQ);
_.C(sQ,"ytd-author-comment-badge-renderer",function(){if(ANP!==void 0)return ANP;var S=document.createElement("template");_.h(S,'\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');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);return ANP=S},{mode:1});var Sym;var eW=function(){return _.w.apply(this,arguments)||this};
_.r(eW,_.w);eW.prototype.computeThumbnailWidth=function(S){if(S==="BACKSTAGE_SURFACE_TYPE_STREAM")return 638};
_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],eW.prototype,"ytRendererBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],eW.prototype,"data",void 0);_.x([_.g({computed:"computeIcon_(data.icon)"}),_.E("design:type",String)],eW.prototype,"icon",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",String)],eW.prototype,"surface",void 0);
_.x([_.g({reflectToAttribute:!0,value:_.y("enable_shrink_image_size_on_web_posts_singleton")}),_.E("design:type",Boolean)],eW.prototype,"searchSxsUx",void 0);eW=_.x([_.f({is:"ytd-backstage-image-renderer",disableElementRegistration:!0})],eW);
_.C(eW,"ytd-backstage-image-renderer",function(){if(Sym!==void 0)return Sym;var S=document.createElement("template");_.h(S,'\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');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);return Sym=S},{mode:1});var psm;var gs=function(){var S=_.w.apply(this,arguments)||this;S.isLoading=!1;S.selectedItemIndex=-1;return S};
_.r(gs,_.w);_.M=gs.prototype;_.M.computeIsChannelOwner=function(S){if(!S)return!0;S=S[0];return!(S&&(S.signinEndpoint||S.selectServiceEndpoint))};
_.M.computeIsImagePoll=function(S){return(S==null?void 0:S.type)==="POLL_TYPE_IMAGE"};
_.M.computeIsTotalVotesDisabled=function(S){return!(S==null?0:S.totalVotes)};
_.M.thumbnailSrc=function(S){var p,U,Y,L;return(S==null?0:(p=S.thumbnails)==null?0:(U=p[0])==null?0:U.url)?_.JA((Y=S.thumbnails)==null?void 0:(L=Y[0])==null?void 0:L.url):void 0};
_.M.progressWidth=function(S){return"width:"+(S?S*100:0)+"%;"};
_.M.textAreaWidth=function(S){return this.isImagePoll?null:"width:"+(S?S*100:0)+"%;"};
_.M.hasEndpointStyle=function(){return this.isChannelOwner?"":"yt-simple-endpoint"};
_.M.dataChanged=function(){if(this.data&&(this.isLoading=!1,this.previousPollInfo=null,this.data.choices))for(var S=this.data.choices,p=0;p<S.length;p++)if(S[p].selected){this.selectedItemIndex=p;break}};
_.M.onPopupClosed=function(S,p){S=Number(this.pollVotes.selected);p.confirmed&&(this.selectChoice(S,!1),_.St(this.hostElement,"yt-remove-comment-action",[{removeCommentAction:{commentId:this.data.votedCommentId}}]));this.pollVotes.selected=-1};
_.M.onPollChoiceSelected=function(){this.isLoading||this.isChannelOwner||this.selectChoice(Number(this.pollVotes.selected),!1);this.pollVotes.selected=-1};
_.M.onYtCommentPollRevert=function(S,p){p&&(this.selectChoice(p.selectedChoiceIndex,!0),this.set("data.totalVotes",p.totalVotes))};
_.M.onYtServiceRequestSent=function(S,p){if(p.actions)for(S=0;S<p.actions.length;S++){var U=p.actions[S];_.b(U,y5)&&this.set("data.totalVotes",_.b(U,y5).totalVotes)}};
_.M.onYtServiceRequestCompleted=function(S){var p=this.get("detail.data.actionResults.0.feedback",S);S=this.get("detail.data.actionResults.0.status",S);if(p==="FEEDBACK_DESELECT"||p==="FEEDBACK_SELECT")this.isLoading=!1,S==="STATUS_FAILED"?_.cv(this.hostElement,"yt-comment-poll-revert",this.previousPollInfo):this.previousPollInfo=null};
_.M.getEndpoint=function(S,p){return p===S?this.data.choices[p].deselectServiceEndpoint||null:this.data.choices[S].selectServiceEndpoint||null};
_.M.selectChoice=function(S,p){this.previousPollInfo||(this.previousPollInfo={totalVotes:this.data.totalVotes,selectedChoiceIndex:this.selectedItemIndex});for(var U=0;U<this.data.choices.length;U++){var Y;if(S===this.selectedItemIndex){var L=!1;var I=Y=null}else Y=(L=U===S)?this.data.choices[U].voteRatioIfSelected:this.data.choices[U].voteRatioIfNotSelected,I=L?this.data.choices[U].votePercentageIfSelected:this.data.choices[U].votePercentageIfNotSelected;this.set("data.choices."+U+".voteRatio",Y);
this.set("data.choices."+U+".votePercentage",I);this.set("data.choices."+U+".selected",L)}p||(this.isLoading=!0,(p=this.getEndpoint(S,this.selectedItemIndex))&&_.tW().resolve(_.cQ).resolveCommand(p,{form:{element:this.hostElement}}));this.selectedItemIndex=this.selectedItemIndex===S?-1:S};
_.$u.Object.defineProperties(gs.prototype,{endpointStyle:{configurable:!0,enumerable:!0,get:function(){return this.isChannelOwner?"yt-simple-endpoint disable-cursor":"yt-simple-endpoint"}}});
gs.prototype.onYtServiceRequestCompleted=gs.prototype.onYtServiceRequestCompleted;gs.prototype.onYtServiceRequestSent=gs.prototype.onYtServiceRequestSent;gs.prototype.onYtCommentPollRevert=gs.prototype.onYtCommentPollRevert;gs.prototype.onPopupClosed=gs.prototype.onPopupClosed;gs.prototype.dataChanged=gs.prototype.dataChanged;_.x([_.F(_.xz),_.E("design:type",Object)],gs.prototype,"paperItemBehavior",void 0);
_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],gs.prototype,"ytRendererBehavior",void 0);_.x([_.F(_.xK),_.E("design:type",Object)],gs.prototype,"ytdOpenPopupBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],gs.prototype,"data",void 0);_.x([_.g(),_.E("design:type",Object)],gs.prototype,"isLoading",void 0);_.x([_.g({computed:"computeIsChannelOwner(data.choices)"}),_.E("design:type",Boolean)],gs.prototype,"isChannelOwner",void 0);
_.x([_.g({reflectToAttribute:!0,computed:"computeIsImagePoll(data)"}),_.E("design:type",Boolean)],gs.prototype,"isImagePoll",void 0);_.x([_.g({computed:"computeIsTotalVotesDisabled(data)"}),_.E("design:type",Boolean)],gs.prototype,"isTotalVotesDisabled",void 0);_.x([_.g(),_.E("design:type",Object)],gs.prototype,"previousPollInfo",void 0);_.x([_.g(),_.E("design:type",Object)],gs.prototype,"selectedItemIndex",void 0);_.x([_.O2("#poll-votes"),_.E("design:type",Object)],gs.prototype,"pollVotes",void 0);
_.x([_.e("isChannelOwner"),_.E("design:type",Object),_.E("design:paramtypes",[])],gs.prototype,"endpointStyle",null);_.x([_.T4("data"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],gs.prototype,"dataChanged",null);_.x([_.Vd("yt-popup-closed"),_.E("design:type",Function),_.E("design:paramtypes",[CustomEvent,Object]),_.E("design:returntype")],gs.prototype,"onPopupClosed",null);
_.x([_.Vd("yt-comment-poll-revert"),_.E("design:type",Function),_.E("design:paramtypes",[CustomEvent,Object]),_.E("design:returntype")],gs.prototype,"onYtCommentPollRevert",null);_.x([_.Vd("yt-service-request-sent"),_.E("design:type",Function),_.E("design:paramtypes",[CustomEvent,_.eM]),_.E("design:returntype")],gs.prototype,"onYtServiceRequestSent",null);
_.x([_.Vd("yt-service-request-completed"),_.E("design:type",Function),_.E("design:paramtypes",[CustomEvent]),_.E("design:returntype")],gs.prototype,"onYtServiceRequestCompleted",null);gs=_.x([_.f({is:"ytd-backstage-poll-renderer",disableElementRegistration:!0})],gs);
_.C(gs,"ytd-backstage-poll-renderer",function(){if(psm!==void 0)return psm;var S=document.createElement("template");_.h(S,'\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');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);return psm=S},{mode:2});var ULm;var Yyt={autoplay:!1,loop:!1},Lme={simpleText:""},uA=function(){var S=_.w.apply(this,arguments)||this;S.isLoading=!1;S.usesPanelLockup=!1;S.selectedItemIndex=-1;S.baseCorrectLottiePlayerAnimationConfig=Object.assign({},{name:"CORRECT",path:"https://www.gstatic.com/youtube/img/creator/posts/Lottie_QuizCorrect_LightTheme_01a.json",renderer:"svg"},Yyt,{rendererSettings:{viewBoxOnly:!0,viewBoxSize:"12 20 80 80"}});S.baseIncorrectLottiePlayerAnimationConfig=Object.assign({},{name:"INCORRECT",path:"https://www.gstatic.com/youtube/img/creator/posts/Lottie_QuizIncorrect_LightTheme_01a.json",
renderer:"svg"},Yyt,{rendererSettings:{viewBoxOnly:!0,viewBoxSize:"26 26 80 80"}});S.correctnessAnimationProps=[];S.correctnessAnimationRefs=[];return S};
_.r(uA,_.w);_.M=uA.prototype;_.M.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark");this.ytRendererBehavior.markDirty()};
_.M.computeIsChannelOwner=function(S){if(!S)return!0;S=S[0];return!(S&&(S.signinEndpoint||S.selectServiceEndpoint))};
_.M.computeIsTotalVotesDisabled=function(S){return!(S==null?0:S.totalVotes)};
_.M.computeIsImageQuiz=function(S){return(S==null?void 0:S.type)==="POLL_TYPE_IMAGE"};
_.M.onExplanationChanged=function(){this.expander.reset()};
_.M.dataChanged=function(){if(this.data){this.isLoading=!1;this.previousQuizInfo=null;var S=this.data.choices;if(S){this.maybeInitializeQuizLotties(S);for(var p=0;p<S.length;p++)if(S[p].isSelected||this.isChannelOwner&&S[p].isCorrect){this.selectedItemIndex=p;return}this.selectedItemIndex=-1}}};
_.M.onQuizChoiceSelected=function(){if(this.isLoading||this.isChannelOwner||this.isQuizAnsweringDisabled)this.quizVotes.selected=-1;else{var S=this.selectedItemIndex,p=Number(this.quizVotes.selected);this.selectChoice(p);this.sendVoteAction(p,S);this.quizVotes.selected=-1;var U;S=!((U=this.data)==null?0:U.enableAnimation);this.maybePlayAnswerAnimations(S)}};
_.M.onYtCommentPollRevert=function(S,p){p&&(this.selectChoice(p.selectedChoiceIndex),this.set("data.totalVotes",p.totalVotes))};
_.M.onYtServiceRequestSent=function(S,p){if(p.actions)for(S=_.d(p.actions),p=S.next();!p.done;p=S.next())(p=_.b(p.value,y5))&&this.set("data.totalVotes",p.totalVotes)};
_.M.onYtServiceRequestCompleted=function(S){var p=this.get("detail.data.actionResults.0.feedback",S);S=this.get("detail.data.actionResults.0.status",S);if(p==="FEEDBACK_DESELECT"||p==="FEEDBACK_SELECT")this.isLoading=!1,S==="STATUS_FAILED"?_.cv(this.hostElement,"yt-comment-quiz-revert",this.previousQuizInfo):this.previousQuizInfo=null};
_.M.getAnimationPropsForChoiceIndex=function(S,p){return p[S]};
_.M.maybePlayAnswerAnimations=function(S){S=S===void 0?!1:S;var p;if((p=this.data)!=null&&p.choices&&!(this.correctnessAnimationRefs.length<this.data.choices.length)){p=_.d(this.correctnessAnimationRefs);for(var U=p.next();!U.done;U=p.next()){var Y=void 0,L=void 0;(Y=U.value)==null||(L=Y.lottieEl)==null||L.stop()}if(!(this.selectedItemIndex<0)){p=0;S&&(p=this.isCorrect?37:25);var I,V;(I=this.correctnessAnimationRefs[this.selectedItemIndex])==null||(V=I.lottieEl)==null||V.goToAndPlay(S?p:0,!0);if(!(this.isCorrect||
(I=this.data.choices.findIndex(function(z){return z.isCorrect}),I<0))){var W,O;
(O=(W=this.correctnessAnimationRefs[I])==null?void 0:W.lottieEl)==null||O.goToAndPlay(37,!0);var D;W=(D=this.fadeContainers)==null?void 0:D.item(I);!S&&W&&this.fadeIn(W)}}}};
_.M.thumbnailSrc=function(S){var p,U,Y,L;return(S==null?0:(p=S.thumbnails)==null?0:(U=p[0])==null?0:U.url)?_.JA((Y=S.thumbnails)==null?void 0:(L=Y[0])==null?void 0:L.url):void 0};
_.M.a11yVotedText=function(S,p){var U,Y,L=((U=this.data)==null?void 0:(Y=U.correctVotedText)==null?void 0:Y.simpleText)||"",I,V;U=((I=this.data)==null?void 0:(V=I.votedText)==null?void 0:V.simpleText)||"";if(!p)return"";var W,O;if((W=this.data)==null?0:(O=W.choices)==null?0:O[S].isCorrect)return L;var D,z;return((D=this.data)==null?0:(z=D.choices)==null?0:z[S].isSelected)?U:""};
_.M.getEndpoint=function(S,p){return p===S?this.data.choices[S].deselectServiceEndpoint||null:this.data.choices[S].selectServiceEndpoint||null};
_.M.sendVoteAction=function(S,p){if(S=this.getEndpoint(S,p))this.isLoading=!0,this.ytComponentBehavior.resolveCommand(S)};
_.M.selectChoice=function(S){this.previousQuizInfo||(this.previousQuizInfo={totalVotes:this.data.totalVotes,selectedChoiceIndex:this.selectedItemIndex});for(var p=0;p<this.data.choices.length;p++)this.set("data.choices."+p+".isSelected",S===this.selectedItemIndex?!1:p===S);this.selectedItemIndex=this.selectedItemIndex===S?-1:S};
_.M.maybeInitializeQuizLotties=function(S){var p=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=S.map(function(U){return{animationConfig:U.isCorrect?p.baseCorrectLottiePlayerAnimationConfig:p.baseIncorrectLottiePlayerAnimationConfig,
animationRef:{},listeners:{DOMLoaded:function(){p.maybePlayAnswerAnimations(!0)}}}});
this.correctnessAnimationRefs=this.correctnessAnimationProps.map(function(U){return U.animationRef||{}})};
_.M.fadeIn=function(S){S.classList.add("fade-in");_.ps(_.PA,function(){S.classList.remove("fade-in")},900)};
_.$u.Object.defineProperties(uA.prototype,{shouldUseModernUi:{configurable:!0,enumerable:!0,get:function(){return _.y("enable_modern_quiz_consumption_ui")||this.usesPanelLockup}},
showExplanation:{configurable:!0,enumerable:!0,get:function(){return _.mA(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 S,p;return((S=this.data)==null?void 0:(p=S.choices)==null?void 0:p.some(function(U){return U.isSelected}))||!1}},
explanation:{configurable:!0,enumerable:!0,get:function(){var S;return(S=this.data)==null||!S.choices||this.selectedItemIndex<0||this.selectedItemIndex>=this.data.choices.length?Lme:this.data.choices[this.selectedItemIndex].explanation||Lme}},
isCorrect:{configurable:!0,enumerable:!0,get:function(){var S;return(S=this.data)==null||!S.choices||this.selectedItemIndex<0||this.selectedItemIndex>=this.data.choices.length?!1:this.data.choices[this.selectedItemIndex].isCorrect||!1}}});
uA.prototype.onYtServiceRequestCompleted=uA.prototype.onYtServiceRequestCompleted;uA.prototype.onYtServiceRequestSent=uA.prototype.onYtServiceRequestSent;uA.prototype.onYtCommentPollRevert=uA.prototype.onYtCommentPollRevert;uA.prototype.dataChanged=uA.prototype.dataChanged;uA.prototype.onExplanationChanged=uA.prototype.onExplanationChanged;_.x([_.F(_.xz),_.E("design:type",Object)],uA.prototype,"paperItemBehavior",void 0);
_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],uA.prototype,"ytRendererBehavior",void 0);_.x([_.F(_.eL.YtComponentBehavior),_.E("design:type",Object)],uA.prototype,"ytComponentBehavior",void 0);_.x([_.F(_.$2.YtTaskEmitterBehavior),_.E("design:type",Object)],uA.prototype,"ytTaskEmitterBehavior",void 0);_.x([_.F(_.xK),_.E("design:type",Object)],uA.prototype,"ytdOpenPopupBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],uA.prototype,"data",void 0);
_.x([_.g(),_.E("design:type",Object)],uA.prototype,"isLoading",void 0);_.x([_.g(),_.E("design:type",Object)],uA.prototype,"usesPanelLockup",void 0);_.x([_.g({reflectToAttribute:!0,computed:"computeIsChannelOwner(data.choices)"}),_.E("design:type",Boolean)],uA.prototype,"isChannelOwner",void 0);_.x([_.g({computed:"computeIsTotalVotesDisabled(data)"}),_.E("design:type",Boolean)],uA.prototype,"isTotalVotesDisabled",void 0);
_.x([_.g({reflectToAttribute:!0,computed:"computeIsImageQuiz(data)"}),_.E("design:type",Boolean)],uA.prototype,"isImageQuiz",void 0);_.x([_.g(),_.E("design:type",Object)],uA.prototype,"previousQuizInfo",void 0);_.x([_.g(),_.E("design:type",Object)],uA.prototype,"selectedItemIndex",void 0);_.x([_.g({reflectToAttribute:!0}),_.e("data","usesPanelLockup"),_.E("design:type",Boolean),_.E("design:paramtypes",[])],uA.prototype,"shouldUseModernUi",null);
_.x([_.kk(".fade-container"),_.E("design:type",Object)],uA.prototype,"fadeContainers",void 0);_.x([_.g(),_.E("design:type",Array)],uA.prototype,"correctnessAnimationProps",void 0);_.x([_.e("explanation","showCorrectAnswer"),_.E("design:type",Boolean),_.E("design:paramtypes",[])],uA.prototype,"showExplanation",null);_.x([_.e("isChannelOwner","isAttempted"),_.E("design:type",Boolean),_.E("design:paramtypes",[])],uA.prototype,"showCorrectAnswer",null);
_.x([_.e("isChannelOwner","isAttempted","data"),_.E("design:type",Boolean),_.E("design:paramtypes",[])],uA.prototype,"isQuizAnsweringDisabled",null);_.x([_.e("isQuizAnsweringDisabled"),_.E("design:type",Object),_.E("design:paramtypes",[])],uA.prototype,"endpointStyle",null);_.x([_.e("data","selectedItemIndex"),_.E("design:type",Boolean),_.E("design:paramtypes",[])],uA.prototype,"isAttempted",null);
_.x([_.e("data","selectedItemIndex"),_.E("design:type",Object),_.E("design:paramtypes",[])],uA.prototype,"explanation",null);_.x([_.e("data","selectedItemIndex"),_.E("design:type",Boolean),_.E("design:paramtypes",[])],uA.prototype,"isCorrect",null);_.x([_.O2("ytd-expander"),_.E("design:type",Object)],uA.prototype,"expander",void 0);_.x([_.O2("#quiz-votes"),_.E("design:type",Object)],uA.prototype,"quizVotes",void 0);
_.x([_.T4("explanation"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],uA.prototype,"onExplanationChanged",null);_.x([_.T4("data","isChannelOwner"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],uA.prototype,"dataChanged",null);_.x([_.Vd("yt-comment-quiz-revert"),_.E("design:type",Function),_.E("design:paramtypes",[CustomEvent,Object]),_.E("design:returntype")],uA.prototype,"onYtCommentPollRevert",null);
_.x([_.Vd("yt-service-request-sent"),_.E("design:type",Function),_.E("design:paramtypes",[CustomEvent,_.eM]),_.E("design:returntype")],uA.prototype,"onYtServiceRequestSent",null);_.x([_.Vd("yt-service-request-completed"),_.E("design:type",Function),_.E("design:paramtypes",[CustomEvent]),_.E("design:returntype")],uA.prototype,"onYtServiceRequestCompleted",null);uA=_.x([_.f({is:"ytd-backstage-quiz-renderer",disableElementRegistration:!0})],uA);
_.C(uA,"ytd-backstage-quiz-renderer",function(){if(ULm!==void 0)return ULm;var S=document.createElement("template");_.h(S,'\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');
S.content.insertBefore(_.t().content.cloneNode(!0),S.content.firstChild);return ULm=S},{mode:1});var MZd;var ws=function(){return _.w.apply(this,arguments)||this};
_.r(ws,_.w);_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],ws.prototype,"ytRendererBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],ws.prototype,"data",void 0);ws=_.x([_.f({is:"ytd-post-uploaded-video-renderer",disableElementRegistration:!0})],ws);
_.C(ws,"ytd-post-uploaded-video-renderer",function(){if(MZd!==void 0)return MZd;var S=document.createElement("template");_.h(S,'\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');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);return MZd=S},{mode:1});var I_l;var lA=function(){return _.w.apply(this,arguments)||this};
_.r(lA,_.w);lA.prototype.useFilledIcons=function(S){return S==="SPONSORSHIP_STAR"};
_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],lA.prototype,"ytRendererBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],lA.prototype,"data",void 0);lA=_.x([_.f({is:"ytd-sponsors-only-badge-renderer",disableElementRegistration:!0})],lA);
_.C(lA,"ytd-sponsors-only-badge-renderer",function(){if(I_l!==void 0)return I_l;var S=document.createElement("template");_.h(S,'\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');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);return I_l=S},{mode:1});var dLq;var ar=function(){return _.w.apply(this,arguments)||this};
_.r(ar,_.w);_.x([_.F(_.eL.YtComponentBehavior),_.E("design:type",Object)],ar.prototype,"componentBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],ar.prototype,"data",void 0);ar=_.x([_.f({is:"ytd-child-video-renderer",disableElementRegistration:!0})],ar);
_.C(ar,"ytd-child-video-renderer",function(){if(dLq!==void 0)return dLq;var S=document.createElement("template");_.h(S,'\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>');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);return dLq=S},{mode:1});var VZq;var T4m;var f7=function(){var S=_.w.apply(this,arguments)||this;S.size=0;S.enableWebModernCollectionsV2=_.y("web_modern_collections_v2");S.fallbackImageSize={height:void 0,width:9999};S.webModernCollections=!1;return S};
_.r(f7,_.w);_.M=f7.prototype;_.M.computeBlurredImageSize=function(S){return S?{height:S*2,width:S*2}:this.fallbackImageSize};
_.M.computeImageSize=function(S){return S?{height:S,width:S}:this.fallbackImageSize};
_.M.computeObjectFit=function(S){return S?"FILL":"CONTAIN"};
_.M.computePreserve=function(S){return S?!0:!1};
_.M.setBackground=function(){var S,p;_.y("web_modern_collections_v2")&&((S=this.data)==null?0:(p=S.thumbnail)==null?0:p.sampledThumbnailColor)&&(S=this.data.thumbnail.sampledThumbnailColor,this.hostElement.style.background="rgba("+S.red+","+S.green+","+S.blue+",1)")};
f7.prototype.setBackground=f7.prototype.setBackground;_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],f7.prototype,"ytRendererBehavior",void 0);_.x([_.g({reflectToAttribute:!0,value:!1}),_.E("design:type",Boolean)],f7.prototype,"watchFeedThumbnail",void 0);_.x([_.g(),_.E("design:type",Object)],f7.prototype,"data",void 0);_.x([_.g(),_.E("design:type",Object)],f7.prototype,"size",void 0);
_.x([_.g({computed:"computeBlurredImageSize(size)"}),_.E("design:type",Object)],f7.prototype,"blurredImageSize",void 0);_.x([_.g({computed:"computeImageSize(size)"}),_.E("design:type",Object)],f7.prototype,"imageSize",void 0);_.x([_.g({computed:"computePreserve(size)"}),_.E("design:type",String)],f7.prototype,"preserve",void 0);_.x([_.g({computed:"computeObjectFit(size)"}),_.E("design:type",String)],f7.prototype,"objectFit",void 0);
_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Boolean)],f7.prototype,"enableWebModernCollectionsV2",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],f7.prototype,"webModernCollections",void 0);_.x([_.T4("data.thumbnail.sampledThumbnailColor"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],f7.prototype,"setBackground",null);f7=_.x([_.f({is:"ytd-playlist-custom-thumbnail-renderer",disableElementRegistration:!0})],f7);
_.C(f7,"ytd-playlist-custom-thumbnail-renderer",function(){if(T4m!==void 0)return T4m;var S=document.createElement("template");_.h(S,'\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');
S.content.insertBefore(_.t().content.cloneNode(!0),S.content.firstChild);return T4m=S},{mode:1});var WmE;var C7=function(){return _.w.apply(this,arguments)||this};
_.r(C7,_.w);_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],C7.prototype,"ytRendererBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],C7.prototype,"data",void 0);_.x([_.g(),_.E("design:type",Number)],C7.prototype,"width",void 0);C7=_.x([_.f({is:"ytd-playlist-video-thumbnail-renderer",disableElementRegistration:!0})],C7);
_.C(C7,"ytd-playlist-video-thumbnail-renderer",function(){if(WmE!==void 0)return WmE;var S=document.createElement("template");_.h(S,'\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');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);return WmE=S},{mode:1});var O5c;var xB=function(){return _.w.apply(this,arguments)||this};
_.r(xB,_.w);_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],xB.prototype,"ytRendererBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],xB.prototype,"data",void 0);_.x([_.g(),_.E("design:type",Number)],xB.prototype,"width",void 0);xB=_.x([_.f({is:"ytd-show-custom-thumbnail-renderer",disableElementRegistration:!0})],xB);
_.C(xB,"ytd-show-custom-thumbnail-renderer",function(){if(O5c!==void 0)return O5c;var S=document.createElement("template");_.h(S,'\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');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);return O5c=S},{mode:1});var kom;var EQ=function(){return _.w.apply(this,arguments)||this};
_.r(EQ,_.w);EQ.prototype.useFilledIcons=function(S){return S==="MUSIC"||S==="COURSE"};
EQ.prototype.overlayColorChanged=function(){if(typeof this.overlayColor==="number")this.hostElement.style.backgroundColor=gz(this.overlayColor,"0.8");else if(this.overlayColor){var S=this.overlayColor;this.hostElement.style.backgroundColor="rgba("+S.red+","+S.green+","+S.blue+",0.8)"}};
_.$u.Object.defineProperties(EQ.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)}}});
EQ.prototype.overlayColorChanged=EQ.prototype.overlayColorChanged;_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],EQ.prototype,"ytRendererBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],EQ.prototype,"data",void 0);_.x([_.g(),_.E("design:type",Object)],EQ.prototype,"overlayColor",void 0);_.x([_.g({reflectToAttribute:!0}),_.e("data.icon","data.text"),_.E("design:type",Object),_.E("design:paramtypes",[])],EQ.prototype,"overlayStyle",null);
_.x([_.g({reflectToAttribute:!0}),_.e("data.icon","data.text"),_.E("design:type",Object),_.E("design:paramtypes",[])],EQ.prototype,"overlayTextStyle",null);_.x([_.T4("overlayColor"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],EQ.prototype,"overlayColorChanged",null);EQ=_.x([_.f({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-bottom-panel-renderer"})],EQ);
_.C(EQ,"ytd-thumbnail-overlay-bottom-panel-renderer",function(){if(kom!==void 0)return kom;var S=document.createElement("template");_.h(S,'\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');
S.content.insertBefore(_.t().content.cloneNode(!0),S.content.firstChild);return kom=S},{mode:1});var H5t;var mB=function(){var S=_.w.apply(this,arguments)||this;S.active=!1;return S};
_.r(mB,_.w);mB.prototype.computeIsSpinnerHidden=function(S){return(S==null?void 0:S.state)!=="THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_DOWNLOADING"};
mB.prototype.computeOverlayIcon=function(S){return(S==null?void 0:S.state)==="THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_FAILED"?"ERROR_OUTLINE":(S==null?void 0:S.state)==="THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_PAUSED_BY_USER"?"OFFLINE_PAUSE":"OFFLINE_DOWNLOADING_SPINNER"};
_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],mB.prototype,"ytRendererBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],mB.prototype,"data",void 0);_.x([_.g(),_.E("design:type",Object)],mB.prototype,"active",void 0);mB=_.x([_.f({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-downloading-renderer"})],mB);
_.C(mB,"ytd-thumbnail-overlay-downloading-renderer",function(){if(H5t!==void 0)return H5t;var S=document.createElement("template");_.h(S,'\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');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);return H5t=S},{mode:1});var DLj;var or=function(){return _.w.apply(this,arguments)||this};
_.r(or,_.w);_.$u.Object.defineProperties(or.prototype,{text:{configurable:!0,enumerable:!0,get:function(){if(this.data)return this.ytRendererBehavior.getSimpleString(this.data.text)}}});
_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],or.prototype,"ytRendererBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],or.prototype,"data",void 0);_.x([_.e("data.text"),_.E("design:type",Object),_.E("design:paramtypes",[])],or.prototype,"text",null);or=_.x([_.f({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-hover-text-renderer"})],or);
_.C(or,"ytd-thumbnail-overlay-hover-text-renderer",function(){if(DLj!==void 0)return DLj;var S=document.createElement("template");_.h(S,'\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');
S.content.insertBefore(_.t().content.cloneNode(!0),S.content.firstChild);return DLj=S},{mode:1});var z1c,Qbl=function(){if(z1c!==void 0)return z1c;var S=document.createElement("template");_.h(S,'\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');
S.content.insertBefore(_.t().content.cloneNode(!0),S.content.firstChild);return z1c=S};var vW=function(){return _.w.apply(this,arguments)||this};
_.r(vW,_.w);_.$u.Object.defineProperties(vW,{template:{configurable:!0,enumerable:!0,get:function(){return Qbl()}}});
_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Boolean)],vW.prototype,"animateEqualizer",void 0);vW=_.x([_.f({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-equalizer"})],vW);_.pz()(vW,"ytd-thumbnail-overlay-equalizer",function(){return Qbl()},{allowedProps:["animateEqualizer"],
mode:1});var n8m;var $B=function(){var S=_.w.apply(this,arguments)||this;S.nowPlayingBadge=_.y("web_now_playing_badge");S.actionMap={"yt-miniplayer-play-state-changed":"onMiniplayerPlayStateChanged"};return S};
_.r($B,_.w);$B.prototype.activeChanged=function(){var S=this;_.y("web_enable_playlist_video_lockup_equalizer")&&this.isActive&&_.oH(this,function(){_.cv(S.hostElement,"yt-playlist-lockup-now-playing-active",S)})};
$B.prototype.onMiniplayerPlayStateChanged=function(S){var p,U=(p=_.b(_.Vy().currentEndpoint,_.E$))==null?void 0:p.videoId;this.isVideoPlaying=S&&(_.y("web_limit_now_playing_animation_killswitch")||this.videoId===U)};
$B.prototype.activeChanged=$B.prototype.activeChanged;_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],$B.prototype,"ytRendererBehavior",void 0);_.x([_.F(_.Aj.YtActionHandlerBehavior),_.E("design:type",Object)],$B.prototype,"ytActionHandlerBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],$B.prototype,"data",void 0);_.x([_.g(),_.E("design:type",Boolean)],$B.prototype,"isVideoPlaying",void 0);_.x([_.g(),_.E("design:type",String)],$B.prototype,"videoId",void 0);
_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Boolean)],$B.prototype,"equalizerOnly",void 0);_.x([_.g(),_.E("design:type",Boolean)],$B.prototype,"isActive",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],$B.prototype,"nowPlayingBadge",void 0);_.x([_.T4("isActive"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],$B.prototype,"activeChanged",null);
$B=_.x([_.f({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-now-playing-renderer"})],$B);
_.C($B,"ytd-thumbnail-overlay-now-playing-renderer",function(){if(n8m!==void 0)return n8m;var S=document.createElement("template");_.h(S,'\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');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);return n8m=S},{mode:1});var JVl;var iA=function(){return _.w.apply(this,arguments)||this};
_.r(iA,_.w);_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],iA.prototype,"ytRendererBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],iA.prototype,"data",void 0);iA=_.x([_.f({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-playback-status-renderer"})],iA);
_.C(iA,"ytd-thumbnail-overlay-playback-status-renderer",function(){if(JVl!==void 0)return JVl;var S=document.createElement("template");_.h(S,'\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>');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);return JVl=S},{mode:_.UW("kevlar_poly_si_batch_j025")?1:2});var yVc;var NK=function(){return _.w.apply(this,arguments)||this};
_.r(NK,_.w);NK.prototype.onDurationChanged=function(){var S,p;_.tB(this.hostElement).querySelector("#progress").style.width=((p=(S=this.data)==null?void 0:S.percentDurationWatched)!=null?p:0)+"%"};
NK.prototype.onDurationChanged=NK.prototype.onDurationChanged;_.x([_.F(_.eL.YtComponentBehavior),_.E("design:type",Object)],NK.prototype,"componentBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],NK.prototype,"data",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Boolean)],NK.prototype,"isLive",void 0);_.x([_.T4("data.percentDurationWatched"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],NK.prototype,"onDurationChanged",null);
NK=_.x([_.f({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-resume-playback-renderer"})],NK);
_.C(NK,"ytd-thumbnail-overlay-resume-playback-renderer",function(){if(yVc!==void 0)return yVc;var S=document.createElement("template");_.h(S,'\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>');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);return yVc=S},{mode:1});var Kmd;var BW=function(){var S=_.w.apply(this,arguments)||this;S.bottomPanel=!1;S.richGridOverlay=!1;S.watchFeedOverlay=!1;S.isCompact=!1;return S};
_.r(BW,_.w);BW.prototype.widthChanged=function(){this.watchFeedOverlay?this.hostElement.style.width="":this.richGridOverlay||(this.hostElement.style.width=this.width+"px")};
_.$u.Object.defineProperties(BW.prototype,{isIconFilled:{configurable:!0,enumerable:!0,get:function(){var S,p;return((S=this.data)==null?void 0:(p=S.icon)==null?void 0:p.iconType)==="PLAY_ALL"&&_.y("kevlar_system_icons")}}});
BW.prototype.widthChanged=BW.prototype.widthChanged;_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],BW.prototype,"ytRendererBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],BW.prototype,"data",void 0);_.x([_.g(),_.E("design:type",Number)],BW.prototype,"width",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],BW.prototype,"bottomPanel",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],BW.prototype,"richGridOverlay",void 0);
_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],BW.prototype,"watchFeedOverlay",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],BW.prototype,"isCompact",void 0);_.x([_.e("data"),_.E("design:type",Boolean),_.E("design:paramtypes",[])],BW.prototype,"isIconFilled",null);_.x([_.T4("width","watchFeedOverlay"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],BW.prototype,"widthChanged",null);
BW=_.x([_.f({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-side-panel-renderer"})],BW);
_.C(BW,"ytd-thumbnail-overlay-side-panel-renderer",function(){if(Kmd!==void 0)return Kmd;var S=document.createElement("template");_.h(S,'\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');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);return Kmd=S},{mode:1});var b5c;var jbm=["CLIP","SHORTS"],qK=function(){var S=_.w.apply(this,arguments)||this;S.animated=_.y("animated_live_badge_icon");S.hasIcon=!1;S.updateTimerIntervalId=0;S.timeSinceLive=0;return S};
_.r(qK,_.w);_.M=qK.prototype;_.M.detached=function(){clearInterval(this.updateTimerIntervalId)};
_.M.dataChanged=function(){this.data&&(this.hasIcon=!!this.data.icon)};
_.M.computeHideTimeStatus=function(){return this.hideBadgeShape?!this.hasIconOrText():!0};
_.M.hasIconOrText=function(){var S,p;return!!(((S=this.data)==null?0:S.icon)||((p=this.data)==null?0:p.text))};
_.M.initializeLiveBadgeTimer=function(){var S=this,p,U=(p=this.liveBadgeData)==null?void 0:p.startTimestampSec;if(U&&this.canShowLiveBadgeTimer()){var Y;p=Number((Y=this.liveBadgeData)==null?void 0:Y.tickIntervalUsec)/1E3||1E3;this.timeSinceLive=Date.now()/1E3-Number(U);this.updateTimerIntervalId=_.dE(function(){S.canShowLiveBadgeTimer()?S.timeSinceLive++:(S.timeSinceLive=0,window.clearInterval(S.updateTimerIntervalId))},p)}else this.timeSinceLive=0};
_.M.canShowLiveBadgeTimer=function(){var S=Date.now(),p,U;return S<(Number((p=this.liveBadgeData)==null?void 0:p.endTimestampSec)-1)*1E3&&S>Number((U=this.liveBadgeData)==null?void 0:U.startTimestampSec)*1E3};
_.$u.Object.defineProperties(qK.prototype,{badgeShapeData:{configurable:!0,enumerable:!0,get:function(){if(this.data){var S=this.data;var p=this.timeSinceLive;var U,Y,L,I;a:{var V=S.style;if(V===void 0)V=16;else switch(V){case "LIVE":V=17;break a;default:V=16}}p={type:V,text:p?aHw({seconds:p}):_.mA(S.text),accessibilityText:(U=S.text)==null?void 0:(Y=U.accessibility)==null?void 0:(L=Y.accessibilityData)==null?void 0:L.label,icon:(I=S.icon)==null?void 0:I.iconType}}else p={};return p}},
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 S;return(S=this.data)==null?void 0:S.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 jbm.indexOf(this.overlayType||this.overlayStyle||"")!==-1}}});
qK.prototype.initializeLiveBadgeTimer=qK.prototype.initializeLiveBadgeTimer;qK.prototype.dataChanged=qK.prototype.dataChanged;_.x([_.F(_.eL.YtComponentBehavior),_.E("design:type",Object)],qK.prototype,"componentBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],qK.prototype,"data",void 0);_.x([_.g({computed:"computeIcon_(data.icon)"}),_.E("design:type",String)],qK.prototype,"icon",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Boolean)],qK.prototype,"animated",void 0);
_.x([_.g({reflectToAttribute:!0,computed:"computeHideTimeStatus(data,hideBadgeShape)"}),_.E("design:type",Boolean)],qK.prototype,"hideTimeStatus",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],qK.prototype,"hasIcon",void 0);_.x([_.g(),_.E("design:type",Object)],qK.prototype,"timeSinceLive",void 0);_.x([_.e("data","timeSinceLive"),_.E("design:type",Object),_.E("design:paramtypes",[])],qK.prototype,"badgeShapeData",null);
_.x([_.e("data","overlayType"),_.E("design:type",Boolean),_.E("design:paramtypes",[])],qK.prototype,"hideBadgeShape",null);_.x([_.z4("data"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],qK.prototype,"dataChanged",null);_.x([_.g({reflectToAttribute:!0}),_.e("data.style"),_.E("design:type",Object),_.E("design:paramtypes",[])],qK.prototype,"overlayStyle",null);
_.x([_.e("data.liveBadgeData"),_.E("design:type",Object),_.E("design:paramtypes",[])],qK.prototype,"liveBadgeData",null);_.x([_.g({reflectToAttribute:!0}),_.e("data.type"),_.E("design:type",Object),_.E("design:paramtypes",[])],qK.prototype,"overlayType",null);_.x([_.e("overlayType","overlayStyle"),_.E("design:type",Boolean),_.E("design:paramtypes",[])],qK.prototype,"useFilledIcon",null);
_.x([_.z4("liveBadgeData"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],qK.prototype,"initializeLiveBadgeTimer",null);qK=_.x([_.f({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-time-status-renderer"})],qK);
_.C(qK,"ytd-thumbnail-overlay-time-status-renderer",function(){if(b5c!==void 0)return b5c;var S=document.createElement("template");_.h(S,'\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>');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);return b5c=S},{mode:_.UW("kevlar_poly_si_batch_j035")?1:2});var rVl;var AO=function(){return _.w.apply(this,arguments)||this};
_.r(AO,_.w);AO.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"}}}}};
AO.prototype.computeThumbnailOverlayResumePlaybackRenderer=function(S){if(this.hasPlaybackProgressBar)return{percentDurationWatched:S.percentDurationWatched}};
AO.prototype.computeHasPlaybackProgressBar=function(S){return!!S.percentDurationWatched&&S.percentDurationWatched>0};
_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],AO.prototype,"ytRendererBehavior",void 0);_.x([_.F(_.qH.YtRendererstamperBehavior),_.E("design:type",Object)],AO.prototype,"ytRendererstamperBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],AO.prototype,"data",void 0);_.x([_.g({reflectToAttribute:!0,computed:"computeHasPlaybackProgressBar(data)"}),_.E("design:type",Boolean)],AO.prototype,"hasPlaybackProgressBar",void 0);
AO=_.x([_.f({disableElementRegistration:!0,is:"ytd-tvfilm-show-watch-forward-overlay-renderer"})],AO);
_.C(AO,"ytd-tvfilm-show-watch-forward-overlay-renderer",function(){if(rVl!==void 0)return rVl;var S=document.createElement("template");_.h(S,'\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');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);return rVl=S},{mode:1});var Goe;var h1t=_.$k(function(S){var p=S.data;var U=S.children;var Y=function(){return!!p().doubleStack};
return _.H("yt-collections-stack",{class:"collections-stack-wiz",hidden:function(){return!p().experimentEnabled}},_.H(_.n,{cond:p,
then:function(){return _.H("div",null,_.H(_.n,{cond:Y,then:function(){var L={};return _.H("div",{class:_.VD("collections-stack-wiz__collection-stack2",function(){return p().customClassName2ndStack},(L["collections-stack-wiz__collection-stack2--responsive-mode"]=function(){return p().enableResponsiveMode},L)),
style:_.zw({"background-color":function(){return BCw(p())}})})}}),_.H("div",{class:_.VD("collections-stack-wiz__collection-stack1",function(){return p().customClassName1stStack},function(){return NCr(p().thumbnailSize?p().thumbnailSize:"medium")}),
style:_.zw({"background-color":function(){return BCw(p())}})}),U)}}))},"P");_.qm(h1t,"yt-collections-stack",{props:{data:_.x2}});var tO=function(){var S=_.w.apply(this,arguments)||this;S.actionMap={"yt-miniplayer-endpoint-changed":"checkMiniplayer_"};S.webModernCollections=!1;S.isSearch=!1;S.isDoubleStack=!1;S.thumbnailSize="medium";S.enableWebModernCollectionsV2=_.y("web_modern_collections_v2");return S};
_.r(tO,_.w);_.M=tO.prototype;
_.M.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]]"}}}}}};
_.M.getThumbnailDetails=function(S){if(S!=null&&S.thumbnailRenderer){var p=S.thumbnailRenderer,U;if((U=p.playlistVideoThumbnailRenderer)==null?0:U.thumbnail)return p.playlistVideoThumbnailRenderer.thumbnail;var Y;if((Y=p.playlistCustomThumbnailRenderer)==null?0:Y.thumbnail)return p.playlistCustomThumbnailRenderer.thumbnail;S=S.thumbnailRenderer;var L;if((L=S.showCustomThumbnailRenderer)==null?0:L.thumbnail)return S.showCustomThumbnailRenderer.thumbnail}};
_.M.computeOverlayColor=function(S){var p,U;if((p=this.getThumbnailDetails(S))==null?0:(U=p.darkColorPalette)==null?0:U.section2Color)return this.getThumbnailDetails(S).darkColorPalette.section2Color;var Y;return(Y=this.getThumbnailDetails(S))==null?void 0:Y.sampledThumbnailColor};
_.M.computeWebModernCollections=function(S){if(S==null||!S.thumbnailOverlays)return!1;S=_.d(S.thumbnailOverlays);for(var p=S.next();!p.done;p=S.next()){var U=void 0;if((U=p.value)==null?0:U.thumbnailOverlayBottomPanelRenderer)return!0}return!1};
_.M.computeNavigationEndpoint=function(S){return Ere(S==null?void 0:S.navigationEndpoint)};
_.$u.Object.defineProperties(tO.prototype,{collectionStack:{configurable:!0,enumerable:!0,get:function(){var S=this.getThumbnailDetails(this.data);return{thumbnailSize:this.thumbnailSize,doubleStack:this.isDoubleStack,sampledThumbnailColor:S==null?void 0:S.sampledThumbnailColor,vibrantColorPalette:S==null?void 0:S.vibrantColorPalette,darkColorPalette:S==null?void 0:S.darkColorPalette,experimentEnabled:this.enableWebModernCollectionsV2}}}});
_.x([_.F(_.Aj.YtActionHandlerBehavior),_.E("design:type",Object)],tO.prototype,"ytActionHandlerBehavior",void 0);_.x([_.F(_.qH.YtRendererstamperBehavior),_.E("design:type",Object)],tO.prototype,"ytRendererstamperBehavior",void 0);_.x([_.F(weQ),_.E("design:type",Object)],tO.prototype,"ytdThumbnailBehavior",void 0);_.x([_.F(_.eL.YtComponentBehavior),_.E("design:type",Object)],tO.prototype,"componentBehavior",void 0);
_.x([_.g({value:!1}),_.E("design:type",Boolean)],tO.prototype,"watchFeedThumbnail",void 0);_.x([_.g(),_.E("design:type",Number)],tO.prototype,"customThumbnailSize",void 0);_.x([_.g({value:!0}),_.E("design:type",Boolean)],tO.prototype,"hideAria",void 0);_.x([_.g(),_.E("design:type",Object)],tO.prototype,"data",void 0);_.x([_.g({computed:"computeOverlayColor(data)"}),_.E("design:type",Object)],tO.prototype,"overlayColor",void 0);
_.x([_.g({computed:"computeWebModernCollections(data)"}),_.E("design:type",Object)],tO.prototype,"webModernCollections",void 0);_.x([_.g({computed:"computeNavigationEndpoint(data)"}),_.E("design:type",Object)],tO.prototype,"computedNavigationEndpoint",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],tO.prototype,"isSearch",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],tO.prototype,"isDoubleStack",void 0);
_.x([_.g({reflectToAttribute:!0}),_.E("design:type",String)],tO.prototype,"thumbnailSize",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Boolean)],tO.prototype,"enableWebModernCollectionsV2",void 0);_.x([_.e("data","enableWebModernCollectionsV2","isDoubleStack","thumbnailSize"),_.E("design:type",Object),_.E("design:paramtypes",[])],tO.prototype,"collectionStack",null);tO=_.x([_.f({disableElementRegistration:!0,is:"ytd-playlist-thumbnail"})],tO);
_.C(tO,"ytd-playlist-thumbnail",function(){if(Goe!==void 0)return Goe;var S=document.createElement("template");_.h(S,'\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');
S.content.insertBefore(_.t().content.cloneNode(!0),S.content.firstChild);return Goe=S},{mode:_.UW("kevlar_poly_si_batch_j025")?1:2});var R1w;var cW=function(){var S=_.w.apply(this,arguments)||this;S.noEndpoints=!1;S.amsterdamPostMvp=_.y("web_amsterdam_post_mvp_playlists");S.badges=[];S.transferState="TRANSFER_STATE_UNKNOWN";return S};
_.r(cW,_.w);_.M=cW.prototype;_.M.getMetadata=function(S){if(!S)return[];var p=[],U=S.shortViewCountText||S.viewCountText;U&&p.push(_.mA(U));S.publishedTimeText&&p.push(_.mA(S.publishedTimeText));S.upcomingEventData&&S.upcomingEventData.upcomingEventText&&p.push(_.Ze(_.mA(S.upcomingEventData.upcomingEventText),Number(S.upcomingEventData.startTime)));return p};
_.M.observeDataForBylineSeparator=function(){this.data&&_.U2(this.hostElement,"byline-separated",this.getMetadata(this.data).length>0&&!this.data.ownerBadges||this.shouldShowVideoInfo)};
_.M.metadataColorChanged=function(){this.metadataColor||(this.metadataLine.style.color="");this.metadataLine.style.color=_.s1(this.metadataColor)};
_.M.getSimpleString=function(S){return _.mA(S)};
_.M.isBylineHidden=function(S){return this.noByline||!((S==null?0:S.longBylineText)||(S==null?0:S.shortBylineText))};
_.M.isMetadataHidden=function(S){var p;return((p=this.getMetadata(S))==null?void 0:p.length)===0};
_.M.isBylineMetadataSeparatorHidden=function(S){return this.isMetadataHidden(S)||!this.shouldShowVideoInfo};
_.M.isLongByline=function(S,p){return p&&!(S==null||!S.longBylineText)};
_.$u.Object.defineProperties(cW.prototype,{shouldShowVideoInfo:{configurable:!0,enumerable:!0,get:function(){var S;return this.amsterdamPostMvp&&!((S=this.data)==null||!S.videoInfo)}},
inlineBadgeClass:{configurable:!0,enumerable:!0,get:function(){return this.badges&&this.badges.length>0?"metadata-line-with-badge":""}},
longBylineClass:{configurable:!0,enumerable:!0,get:function(){return this.longByline?"long-byline":""}},
bylineText:{configurable:!0,enumerable:!0,get:function(){if(this.data)return this.longByline?this.data.longBylineText:this.data.shortBylineText}},
watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.y("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}}});
cW.prototype.metadataColorChanged=cW.prototype.metadataColorChanged;cW.prototype.observeDataForBylineSeparator=cW.prototype.observeDataForBylineSeparator;_.x([_.F(_.Xh),_.E("design:type",Object)],cW.prototype,"ytdReduxBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],cW.prototype,"data",void 0);_.x([_.g(),_.E("design:type",Object)],cW.prototype,"noEndpoints",void 0);_.x([_.g({reflectToAttribute:!0,value:!1}),_.E("design:type",Boolean)],cW.prototype,"isSlimShort",void 0);
_.x([_.g({reflectToAttribute:!0,value:!1}),_.E("design:type",Boolean)],cW.prototype,"radioMeta",void 0);_.x([_.g({selector:_.g8}),_.E("design:type",Object)],cW.prototype,"isGridViewEnabled",void 0);_.x([_.g({reflectToAttribute:!0,value:!1}),_.E("design:type",Boolean)],cW.prototype,"richMeta",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],cW.prototype,"amsterdamPostMvp",void 0);_.x([_.g(),_.E("design:type",Boolean)],cW.prototype,"noByline",void 0);
_.x([_.g({computed:"isLongByline(data, radioMeta)"}),_.E("design:type",Boolean)],cW.prototype,"longByline",void 0);_.x([_.g({reflectToAttribute:!0,value:!1}),_.E("design:type",Boolean)],cW.prototype,"truncateMetadataLine",void 0);_.x([_.g({reflectToAttribute:!0,value:!1}),_.E("design:type",Boolean)],cW.prototype,"miniMode",void 0);_.x([_.g(),_.E("design:type",Number)],cW.prototype,"metadataColor",void 0);_.x([_.g(),_.E("design:type",Array)],cW.prototype,"badges",void 0);
_.x([_.g({selector:_.Z4,selectorArgs:["data.videoId"]}),_.E("design:type",String)],cW.prototype,"transferState",void 0);_.x([_.g({reflectToAttribute:!0,value:!1}),_.E("design:type",Boolean)],cW.prototype,"isDownloading",void 0);_.x([_.g({reflectToAttribute:!0,value:!1}),_.E("design:type",Boolean)],cW.prototype,"typographyBump",void 0);_.x([_.O2("#metadata-line"),_.E("design:type",HTMLElement)],cW.prototype,"metadataLine",void 0);
_.x([_.T4("data"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],cW.prototype,"observeDataForBylineSeparator",null);_.x([_.T4("metadataColor"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],cW.prototype,"metadataColorChanged",null);_.x([_.e("data"),_.E("design:type",Object),_.E("design:paramtypes",[])],cW.prototype,"shouldShowVideoInfo",null);
_.x([_.e("badges"),_.E("design:type",String),_.E("design:paramtypes",[])],cW.prototype,"inlineBadgeClass",null);_.x([_.e("longByline"),_.E("design:type",String),_.E("design:paramtypes",[])],cW.prototype,"longBylineClass",null);_.x([_.e("data","longByline"),_.E("design:type",Object),_.E("design:paramtypes",[])],cW.prototype,"bylineText",null);_.x([_.e("isGridViewEnabled","data"),_.g({reflectToAttribute:!0}),_.E("design:type",Boolean),_.E("design:paramtypes",[])],cW.prototype,"watchFeedBigThumbs",null);
cW=_.x([_.f({is:"ytd-video-meta-block",disableElementRegistration:!0})],cW);
_.C(cW,"ytd-video-meta-block",function(){if(R1w!==void 0)return R1w;var S=document.createElement("template");_.h(S,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-meta-block--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n<div id="metadata" class="style-scope ytd-video-meta-block">\n  <div id="byline-container" hidden="[[isBylineHidden(data, radioMeta)]]" class="style-scope ytd-video-meta-block">\n    <ytd-channel-name id="channel-name" class$="[[longBylineClass]] style-scope ytd-video-meta-block" badges="[[data.ownerBadges]]" channel-name="[[bylineText]]" no-endpoints="[[noEndpoints]]" wrap-text="[[longByline]]">\n    </ytd-channel-name>\n    <div id="separator" class="style-scope ytd-video-meta-block">\u2022</div>\n    <yt-formatted-string id="video-info" hidden="[[!shouldShowVideoInfo]]" text="[[data.videoInfo]]" class="style-scope ytd-video-meta-block">\n  </yt-formatted-string>\n  </div>\n  <div id="metadata-line" class="style-scope ytd-video-meta-block">\n    \n    <ytd-badge-supported-renderer class="inline-metadata-badge style-scope ytd-video-meta-block" badges="[[badges]]" hidden="[[!badges.length]]">\n    </ytd-badge-supported-renderer>\n    <div id="separator" hidden="[[isBylineMetadataSeparatorHidden(data)]]" class="style-scope ytd-video-meta-block">\u2022</div>\n    <template is="dom-repeat" items="[[getMetadata(data)]]" strip-whitespace="" class="style-scope ytd-video-meta-block">\n      <span class="inline-metadata-item style-scope ytd-video-meta-block">[[item]]</span>\n    </template>\n  </div>\n</div>\n<div id="additional-metadata-line" class="style-scope ytd-video-meta-block">\n  <template is="dom-repeat" items="[[data.additionalMetadatas]]" class="style-scope ytd-video-meta-block"><span class="style-scope ytd-video-meta-block">[[getSimpleString(item)]]</span></template>\n</div>\n\n');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);return R1w=S},{mode:_.UW("kevlar_poly_si_batch_j080")?1:2});_.Ry("itemSectionRenderer","playlistRenderer","ytd-playlist-renderer");var SH=function(){var S=_.w.apply(this,arguments)||this;S.displayItemCount=2;S.isBackstagePlaylist=!1;S.isPostCompactPlaylist=!1;S.shouldShowChannelThumbnail=!1;S.useModernCollectionsV2=_.y("web_modern_collections_v2");return S};
_.r(SH,_.w);_.M=SH.prototype;_.M.computeFirstVideos=function(S,p){return S===void 0||p===void 0?[]:S.slice(0,p)};
_.M.dataChanged=function(){if(this.data&&this.data.thumbnailRenderer){var S=this.data.thumbnailRenderer;S.playlistVideoThumbnailRenderer&&this.set("data.thumbnail",S.playlistVideoThumbnailRenderer.thumbnail);S.playlistCustomThumbnailRenderer&&this.set("data.thumbnail",S.playlistCustomThumbnailRenderer.thumbnail)}};
_.M.computeThumbnailHeight=function(S,p,U,Y,L){return Y?L==="BIG"?280:L==="MASSIVE"?337:234:U?240:p?72:S?118:138};
_.M.computeThumbnailWidth=function(S,p,U,Y,L){return Y?L==="MEDIUM"?450:L==="BIG"?500:L==="MASSIVE"?600:420:U?360:p?128:S?210:246};
_.M.computeUseBiggerThumbs=function(S){return S&&_.y("enable_desktop_search_bigger_thumbs")};
_.M.computeShouldShowChannelThumbnail=function(S,p){return S&&!(p==null||!p.channelThumbnail)};
_.$u.Object.defineProperties(SH.prototype,{stackThumbnailSize:{configurable:!0,enumerable:!0,get:function(){return this.isSearch?"large":"medium"}}});
SH.prototype.dataChanged=SH.prototype.dataChanged;_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],SH.prototype,"ytRendererBehavior",void 0);_.x([_.F(_.ak),_.E("design:type",Object)],SH.prototype,"ytdLockupBehavior",void 0);_.x([_.F(_.Xh),_.E("design:type",Object)],SH.prototype,"ytdReduxBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],SH.prototype,"data",void 0);_.x([_.g(),_.E("design:type",Object)],SH.prototype,"displayItemCount",void 0);
_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],SH.prototype,"isBackstagePlaylist",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],SH.prototype,"isPostCompactPlaylist",void 0);_.x([_.g({value:!1,reflectToAttribute:!0}),_.E("design:type",Boolean)],SH.prototype,"isSearch",void 0);_.x([_.g({reflectToAttribute:!0,computed:"computeUseBiggerThumbs(isSearch)"}),_.E("design:type",Boolean)],SH.prototype,"useBiggerThumbs",void 0);_.x([_.g({reflectToAttribute:!0,value:function(){return _.Ug("desktop_search_bigger_thumbs_style")}}),
_.E("design:type",String)],SH.prototype,"biggerThumbsStyle",void 0);_.x([_.g({value:!1,reflectToAttribute:!0}),_.E("design:type",Boolean)],SH.prototype,"isDownloads",void 0);_.x([_.g({computed:"computeShouldShowChannelThumbnail(isSearch, data)"}),_.E("design:type",Object)],SH.prototype,"shouldShowChannelThumbnail",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],SH.prototype,"useModernCollectionsV2",void 0);
_.x([_.z4("data"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],SH.prototype,"dataChanged",null);_.x([_.e("isSearch"),_.E("design:type",String),_.E("design:paramtypes",[])],SH.prototype,"stackThumbnailSize",null);SH=_.x([_.f({is:"ytd-playlist-renderer",disableElementRegistration:!0})],SH);
_.C(SH,"ytd-playlist-renderer",function(){if(VZq===void 0){var S=document.createElement("template");_.h(S,'\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');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);VZq=S}S=VZq;return S},{mode:1});var FmE;var Xst;var pt=function(){var S=_.w.apply(this,arguments)||this;S.collections=!!_.y("web_modern_collections_v2");S.startX=0;return S};
_.r(pt,_.w);pt.prototype.onEndpointMouseDown=function(S){this.startX=S.clientX};
pt.prototype.onEndpointClick=function(S){this.startX!==S.clientX&&(S.preventDefault(),S.stopPropagation())};
pt.prototype.computeObjectFit=function(S){return S==="CARD_RENDERER_STYLE_TYPE_UNIVERSAL_WATCH_CARD_MOVIE_POSTER"||S==="CARD_RENDERER_STYLE_TYPE_MOVIE_POSTER"||S==="CARD_RENDERER_STYLE_TYPE_CENTERED"?"COVER":"FILL"};
pt.prototype.computeCardStyle=function(S){return S?S.replace("CARD_RENDERER_STYLE_TYPE_","").toLowerCase():""};
_.$u.Object.defineProperties(pt.prototype,{isAlbumCard:{configurable:!0,enumerable:!0,get:function(){var S,p;return this.collections&&((S=this.data)==null?void 0:(p=S.searchRefinementCardRendererStyle)==null?void 0:p.value)==="CARD_RENDERER_STYLE_TYPE_ALBUM_CARD"}},
collectionStack:{configurable:!0,enumerable:!0,get:function(){return this.isAlbumCard?{thumbnailSize:"small",doubleStack:!1,experimentEnabled:this.collections,customClassName1stStack:"collection-stack-1 style-scope "+this.is}:{experimentEnabled:!1}}}});
_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],pt.prototype,"ytRendererBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],pt.prototype,"data",void 0);_.x([_.g({computed:"computeObjectFit(data.searchRefinementCardRendererStyle.value)"}),_.E("design:type",Number)],pt.prototype,"objectFit",void 0);_.x([_.g({reflectToAttribute:!0,computed:"computeCardStyle(data.searchRefinementCardRendererStyle.value)"}),_.E("design:type",String)],pt.prototype,"cardStyle",void 0);
_.x([_.g({reflectToAttribute:!0,value:!0}),_.E("design:type",Boolean)],pt.prototype,"roundContainer",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Boolean)],pt.prototype,"collections",void 0);_.x([_.e("data"),_.E("design:type",Object),_.E("design:paramtypes",[])],pt.prototype,"isAlbumCard",null);_.x([_.e("data","collections","isAlbumCard"),_.E("design:type",Object),_.E("design:paramtypes",[])],pt.prototype,"collectionStack",null);
pt=_.x([_.f({is:"ytd-search-refinement-card-renderer",disableElementRegistration:!0})],pt);
_.C(pt,"ytd-search-refinement-card-renderer",function(){if(Xst!==void 0)return Xst;var S=document.createElement("template");_.h(S,'\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');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);return Xst=S},{mode:1});var PDt;var UL=function(){var S=_.w.apply(this,arguments)||this;S.isRichGrid=!1;return S};
_.r(UL,_.w);_.x([_.g(),_.E("design:type",Object)],UL.prototype,"data",void 0);_.x([_.F(_.eL.YtComponentBehavior),_.E("design:type",Object)],UL.prototype,"componentBehavior",void 0);_.x([_.F(_.Xh),_.E("design:type",Object)],UL.prototype,"ytdReduxBehavior",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],UL.prototype,"isRichGrid",void 0);_.x([_.g({reflectToAttribute:!0,selector:_.hZ}),_.E("design:type",Boolean)],UL.prototype,"miniMode",void 0);
UL=_.x([_.f({is:"ytd-game-details-renderer",disableElementRegistration:!0})],UL);
_.C(UL,"ytd-game-details-renderer",function(){if(PDt!==void 0)return PDt;var S=document.createElement("template");_.h(S,'\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');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);return PDt=S},{mode:1});var Z5P;var sbm;var YP=function(){var S=_.w.apply(this,arguments)||this;S.actionMap={"yt-menu-service-item-selected-action":"handleBellMenuOpenSelectedAction"};return S};
_.r(YP,_.w);_.M=YP.prototype;_.M.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.M.currentStateData=function(S){var p=S||this.data;return p&&p.states&&p.currentStateId!=null?p.states.find(function(U){return U.stateId===p.currentStateId})||null:null};
_.M.currentStateRendererData=function(S){return(S=this.currentStateData(S))&&S.state&&S.state.buttonRenderer?S.state.buttonRenderer:null};
_.M.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())};
_.M.computeButtonIcon=function(S){S=this.currentStateRendererData(S);var p;return(S==null?0:(p=S.icon)==null?0:p.iconType)?S.icon.iconType.toLowerCase():null};
_.M.computeAccessibility=function(S){return(S=this.currentStateRendererData(S))&&S.accessibilityData?S.accessibilityData.accessibilityData||null:null};
_.M.computeButtonClass=function(S){var p=this.currentStateRendererData(S);if(!p)return"";S="";var U=p.style;U&&(S+=U.toLowerCase().replace(/_/g,"-")+" ");(p=p.size)&&(S+=p.toLowerCase().replace(/_/g,"-")+" ");return S.trim()};
_.M.computeServiceEndpoint=function(S){if(!S)return null;var p=S&&S.serviceEndpoint,U=this.get("command.commandMetadata.webCommandMetadata.sendPost",S);return p?p:U&&S.command?S.command:null};
_.M.computeBellMenuItemParams=function(S){var p;S=(p=_.b(S==null?void 0:S.command,_.I2))==null?void 0:p.commands;if(!S||S.length===0)return null;p=_.b(S[0],_.KQ);var U,Y;return(p==null?0:(U=p.popup)==null?0:(Y=U.menuPopupRenderer)==null?0:Y.items)?p.popup.menuPopupRenderer.items.map(function(L){return L.menuServiceItemRenderer.trackingParams}):null};
_.M.handleBellMenuOpenSelectedAction=function(S){var p=S.trackingParams,U=this.computeBellMenuItemParams(this.data);this.data&&p&&U&&U.includes(p)&&this.ytRenderButtonBehavior._setButtonIcon(S.icon.iconType.toLowerCase())};
_.M.onYtServiceRequestCompleted=function(S,p){(S=this.get("data.newNotificationButton.subscriptionNotificationToggleButtonRenderer",p))&&this.set("data",S)};
_.M.onYtServiceRequestError=function(){this.ytRenderButtonBehavior._setButtonIcon(this.computeButtonIcon(this.data))};
_.M.resetState=function(){this.set("data.currentStateId",3)};
_.M.onYtButtonTapHandler=function(){if(this.data){var S=this.currentStateRendererData(this.data);S&&this.ytRendererBehavior.logExplicitClick(S)}};
YP.prototype.onYtServiceRequestError=YP.prototype.onYtServiceRequestError;YP.prototype.onYtServiceRequestCompleted=YP.prototype.onYtServiceRequestCompleted;YP.prototype.stateChanged=YP.prototype.stateChanged;_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],YP.prototype,"ytRendererBehavior",void 0);_.x([_.F(_.Aj.YtActionHandlerBehavior),_.E("design:type",Object)],YP.prototype,"ytActionHandlerBehavior",void 0);
_.x([_.F(Dm.YtRenderButtonBehavior),_.E("design:type",Object)],YP.prototype,"ytRenderButtonBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],YP.prototype,"data",void 0);_.x([_.z4("data","data.currentStateId"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],YP.prototype,"stateChanged",null);
_.x([_.Vd("yt-service-request-completed"),_.E("design:type",Function),_.E("design:paramtypes",[CustomEvent,_.xL]),_.E("design:returntype")],YP.prototype,"onYtServiceRequestCompleted",null);_.x([_.Vd("yt-service-request-error"),_.E("design:type",Function),_.E("design:paramtypes",[CustomEvent]),_.E("design:returntype")],YP.prototype,"onYtServiceRequestError",null);YP=_.x([_.f({disableElementRegistration:!0,is:"ytd-subscription-notification-toggle-button-renderer"})],YP);
_.C(YP,"ytd-subscription-notification-toggle-button-renderer",function(){if(sbm!==void 0)return sbm;var S=document.createElement("template");_.h(S,"\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");S.content.insertBefore(_.t().content.cloneNode(!0),S.content.firstChild);return sbm=S},{mode:1});var e1P;var Lt=function(){var S=_.w.apply(this,arguments)||this;S.actionMap={"yt-menu-service-item-selected-action":"handleBellMenuOpenSelectedAction"};S.tapHandler=function(){if(S.data){var p=S.currentStateRendererData();p&&S.ytRendererBehavior.logExplicitClick(p)}};
return S};
_.r(Lt,_.w);_.M=Lt.prototype;_.M.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.M.currentStateData=function(){var S=this;return this.data&&this.data.states&&this.data.currentStateId!=null?this.data.states.find(function(p){return p.stateId===S.data.currentStateId})||null:null};
_.M.currentStateRendererData=function(){var S=this.currentStateData();return S&&S.state&&S.state.buttonRenderer?S.state.buttonRenderer:null};
_.M.computeAccessibilityLabel=function(){var S,p,U;return(S=this.currentStateRendererData())==null?void 0:(p=S.accessibilityData)==null?void 0:(U=p.accessibilityData)==null?void 0:U.label};
_.M.computeBellMenuItemParams=function(){var S,p,U=(p=_.b((S=this.data)==null?void 0:S.command,_.I2))==null?void 0:p.commands;if(!U||U.length===0)return null;S=_.b(U[0],_.KQ);var Y,L;return(S==null?0:(Y=S.popup)==null?0:(L=Y.menuPopupRenderer)==null?0:L.items)?S.popup.menuPopupRenderer.items.map(function(I){return I.menuServiceItemRenderer.trackingParams}):null};
_.M.handleBellMenuOpenSelectedAction=function(S){var p=S.trackingParams,U=this.computeBellMenuItemParams();if(this.data&&p&&U&&U.includes(p)&&(S==null||!S.isDisabled)){var Y;((Y=_.b(S.serviceEndpoint,_.TI))==null?void 0:Y.signal)!=="CLIENT_SIGNAL"&&(this.icon=S.icon.iconType)}};
_.M.resetState=function(){this.icon=void 0;this.set("data.currentStateId",3)};
_.M.onYtServiceRequestCompleted=function(S,p){if(S=this.get("data.newNotificationButton.subscriptionNotificationToggleButtonRenderer",p))this.icon=void 0,this.set("data",S)};
_.M.onYtServiceRequestError=function(){this.icon=void 0};
_.$u.Object.defineProperties(Lt.prototype,{computedButtonShape:{configurable:!0,enumerable:!0,get:function(){if(this.data){var S=this.data,p=this.textLabel,U=this.hostElement,Y=this.computeAccessibilityLabel(),L=this.tapHandler,I=this.isOverlay?"overlay":"mono",V=(S==null?0:S.disableButton)?"disabled":"active";p=p?_.Fi(p):void 0;return{style:I,type:"tonal",state:V,size:"M",focused:!1,formattedButtonText:p,iconPosition:"leading-trailing",onTap:tgE(S,L,U),accessibilityLabel:Y}}}},
computedIcon:{configurable:!0,enumerable:!0,get:function(){var S=this.currentStateRendererData(),p,U,Y=(U=this.icon)!=null?U:S==null?void 0:(p=S.icon)==null?void 0:p.iconType;if(Y)return _.If(Y)}},
computedSecondaryIcon:{configurable:!0,enumerable:!0,get:function(){var S,p,U=(S=this.data)==null?void 0:(p=S.secondaryIcon)==null?void 0:p.iconType;if(U)return _.If(U)}}});
Lt.prototype.onYtServiceRequestError=Lt.prototype.onYtServiceRequestError;Lt.prototype.onYtServiceRequestCompleted=Lt.prototype.onYtServiceRequestCompleted;_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],Lt.prototype,"ytRendererBehavior",void 0);_.x([_.F(_.Aj.YtActionHandlerBehavior),_.E("design:type",Object)],Lt.prototype,"ytActionHandlerBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],Lt.prototype,"data",void 0);_.x([_.g(),_.E("design:type",Object)],Lt.prototype,"textLabel",void 0);
_.x([_.g(),_.E("design:type",String)],Lt.prototype,"icon",void 0);_.x([_.g(),_.E("design:type",Boolean)],Lt.prototype,"isOverlay",void 0);_.x([_.e("data.*","textLabel"),_.E("design:type",Object),_.E("design:paramtypes",[])],Lt.prototype,"computedButtonShape",null);_.x([_.e("data.*","icon"),_.E("design:type",Object),_.E("design:paramtypes",[])],Lt.prototype,"computedIcon",null);_.x([_.e("data.*"),_.E("design:type",Object),_.E("design:paramtypes",[])],Lt.prototype,"computedSecondaryIcon",null);
_.x([_.Vd("yt-service-request-completed"),_.E("design:type",Function),_.E("design:paramtypes",[CustomEvent,_.xL]),_.E("design:returntype")],Lt.prototype,"onYtServiceRequestCompleted",null);_.x([_.Vd("yt-service-request-error"),_.E("design:type",Function),_.E("design:paramtypes",[CustomEvent]),_.E("design:returntype")],Lt.prototype,"onYtServiceRequestError",null);Lt=_.x([_.f({disableElementRegistration:!0,is:"ytd-subscription-notification-toggle-button-renderer-next"})],Lt);
_.C(Lt,"ytd-subscription-notification-toggle-button-renderer-next",function(){if(e1P!==void 0)return e1P;var S=document.createElement("template");_.h(S,'\x3c!--css-build:shady--\x3e<yt-button-shape data="[[computedButtonShape]]" icon-name="[[computedIcon]]" secondary-icon-name="[[computedSecondaryIcon]]">\n</yt-button-shape>\n');return e1P=S},{mode:_.UW("kevlar_poly_si_batch_j081")?1:2});var g8Q;_.qm(sQe,"yt-animated-action",{props:{backgroundLottieRef:_.x2,foregroundLottieRef:_.x2,wrapperClass:_.x2,disableAnimation:_.x2},unsafeExternallySettableAttributes:new Set(["key"])});var Mf=function(){var S=_.w.apply(this,arguments)||this;S.animatedActionEnabled=_.y("web_animated_actions");S.foregroundLottieRef={};S.backgroundLottieRef={};S.forceIconOnly=!1;S.showTextWhileAnimating=!1;S.keyboardFocused=!1;S.isAnimating=!1;S.actionMap={"yt-player-subscribe":"onPlayerSubscribe","yt-player-unsubscribe":"onPlayerUnsubscribe","yt-update-subscribe-button-action":"handleUpdateSubscribeButtonAction"};return S};
_.r(Mf,_.w);_.M=Mf.prototype;_.M.maybeUpdateBellButtonText=function(){this.showTextWhileAnimating&&this.bellButton&&(this.bellButton.textLabel=this.subscribedButtonText)};
_.M.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]]"}}}}}};
_.M.attached=function(){this.keyboardFocused=!1};
_.M.onYtServiceRequestSent=function(S,p){(this.get("endpoint.subscribeEndpoint",p)||this.get("endpoint.unsubscribeEndpoint",p))&&this.updateSubscriptionState(!this.subscribed)};
_.M.onYtServiceRequestCompleted=function(S,p){(S=this.get("newNotificationButton.subscriptionNotificationToggleButtonRenderer",p.data))&&this.bellButton&&(this.bellButton.data=S)};
_.M.observedSubscribed=function(){this.isAnimating||this.clearContainerSize();_.Ms(this.hostElement)};
_.M.onPlayerSubscribe=function(S){this.isCompactRed()||S!==this.data.channelId||(this.tryToSaveButtonWidths(),this.updateContainerToFitContent(!!this.subscribed),this.updateSubscriptionState(!0))};
_.M.onPlayerUnsubscribe=function(S){this.isCompactRed()||S!==this.data.channelId||this.updateSubscriptionState(!1)};
_.M.handleUpdateSubscribeButtonAction=function(S){S=_.b(S,kRE);var p;S&&S.channelId===((p=this.data)==null?void 0:p.channelId)&&this.updateSubscriptionState(!!S.subscribed)};
_.M.computeButtonStyle=function(S){return this.get("style.styleType",S)||null};
_.M.isCompactRed=function(){return this.computeButtonStyle(this.data)==="COMPACT_RED"};
_.M.computeSubscribed=function(){return this.subscriptionStateEntity?!!this.subscriptionStateEntity.subscribed:!(!this.data||!this.data.subscribed)};
_.M.updateSubscriptionState=function(S){if(S!==this.subscribed){this.set("data.subscribed",S);var p,U=(p=this.data)==null?void 0:p.subscribedEntityKey;U&&this.ytdReduxBehavior.dispatch(_.WG("subscriptionStateEntity",U,{key:U,subscribed:S}));this.isCompactRed()||_.cv(this.hostElement,"yt-subscription-changed",S);S||(_.St(this.hostElement,"yt-unsubscribe-action"),this.resetNotificationBellState());this.animatedActionEnabled&&(this.updateContainerToFitContent(!!S),S&&this.hasBellButton&&this.startAnimation())}};
_.M.startAnimation=function(){var S=this;if(!this.isAnimating){var p=this.forceIconOnly&&this.showTextWhileAnimating?2E3:1500;this.isAnimating=!0;var U;(U=this.backgroundLottieRef.lottieEl)==null||U.goToAndPlay(0);var Y;(Y=this.foregroundLottieRef.lottieEl)==null||Y.goToAndPlay(0);_.PA.addJob(function(){S.maybeAnimateBellIcon()},2,300);
this.forceIconOnly&&this.showTextWhileAnimating&&_.PA.addJob(function(){S.updateContainerToFitContent(!!S.subscribed,!0)},2,1500);
_.PA.addJob(function(){S.isAnimating=!1},2,p)}};
_.M.maybeAnimateBellIcon=function(){var S=_.p3(this.hostElement).querySelector("yt-animated-icon");if(S){var p;(p=S.animationRef.lottieEl)==null||p.goToAndPlay(0)}};
_.M.onDataChanged=function(){this.animatedActionEnabled&&(this.hostElement.style.width="")};
_.M.onMouseDown=function(){this.tryToSaveButtonWidths();this.updateContainerToFitContent(!!this.subscribed)};
_.M.tryToSaveButtonWidths=function(){if(this.animatedActionEnabled&&!this.unsubscribedWidth){if(!this.subscribed){var S;this.unsubscribedWidth=(S=this.subscribeButtonShape)==null?void 0:S.getBoundingClientRect().width}var p;this.subscribedWidth=(p=this.bellButton)==null?void 0:p.getBoundingClientRect().width;this.maybeSetSubscribedButtonIconOnlyWidth()}};
_.M.updateContainerToFitContent=function(S,p){this.animatedActionEnabled&&this.subscribedWidth&&this.unsubscribedWidth&&(S?(S=this.subscribedWidth,p=this.isAnimating&&!p,this.subscribedIconOnlyWidth===void 0||p||(S=this.subscribedIconOnlyWidth),this.hostElement.style.width=S+"px"):this.hostElement.style.width=this.unsubscribedWidth+"px")};
_.M.clearContainerSize=function(){this.hostElement.style.width=""};
_.M.resetNotificationBellState=function(){this.get("notificationPreferenceButton.subscriptionNotificationToggleButtonRenderer",this.data)&&this.bellButton&&this.bellButton.resetState()};
_.M.maybeSetSubscribedButtonIconOnlyWidth=function(){var S=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 p;S.subscribedIconOnlyWidth=(p=S.bellButton)==null?void 0:p.getBoundingClientRect().width;requestAnimationFrame(function(){if(S.bellButton){var U;S.bellButton.textLabel=
(U=S.data)==null?void 0:U.subscribedButtonText}})})))};
_.$u.Object.defineProperties(Mf.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 S;return(S=this.data)==null?void 0:S.subscribedButtonText}var p;return this.forceIconOnly?void 0:(p=this.data)==null?void 0:p.subscribedButtonText}},
smartimationSettings:{configurable:!0,enumerable:!0,get:function(){var S,p,U=((S=this.data)==null?void 0:(p=S.timedAnimationData)==null?void 0:p.animationTiming)||[];return{uniqueId:"subscribe",timings:U,enabled:U.length>0&&!this.subscribed,experimentEnabled:U.length>0}}},
subscribeButtonHidden:{configurable:!0,enumerable:!0,get:function(){var S;return!this.subscribed&&((S=this.data)==null?void 0:S.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 S={renderer:this.data,element:this.hostElement,subscribed:!!this.subscribed,isOverlay:!!this.overlayButton};var p=S.renderer;var U=S.element;var Y=S.subscribed;var L=S.commandController;var I=S.isOverlay;S=S.config;var V=USE(p,Y);I&&(V.style="overlay");I=Object;var W=I.assign,O;a:switch((O=p.style)==null?void 0:O.styleType){case "COMPACT_GRAY":case "COMPACT_RED":O={size:"S"};break a;default:O={size:"M"}}var D=pNr(p,Y);var z=
(z=Y?p.subscribedButtonText:p.unsubscribedButtonText)?_.Fi(z):void 0;return W.call(I,{},V,O,{focused:!1,toggled:Y,accessibilityLabel:D,formattedButtonText:z,onTap:STN(p,S,Y,U,L)})}}}});
Mf.prototype.onMouseDown=Mf.prototype.onMouseDown;Mf.prototype.onDataChanged=Mf.prototype.onDataChanged;Mf.prototype.observedSubscribed=Mf.prototype.observedSubscribed;Mf.prototype.onYtServiceRequestCompleted=Mf.prototype.onYtServiceRequestCompleted;Mf.prototype.onYtServiceRequestSent=Mf.prototype.onYtServiceRequestSent;Mf.prototype.maybeUpdateBellButtonText=Mf.prototype.maybeUpdateBellButtonText;_.x([_.F(_.eL.YtComponentBehavior),_.E("design:type",Object)],Mf.prototype,"ytComponentBehavior",void 0);
_.x([_.F(_.qH.YtRendererstamperBehavior),_.E("design:type",Object)],Mf.prototype,"ytRendererstamperBehavior",void 0);_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],Mf.prototype,"ytRendererBehavior",void 0);_.x([_.F(_.Aj.YtActionHandlerBehavior),_.E("design:type",Object)],Mf.prototype,"ytActionHandlerBehavior",void 0);_.x([_.F(_.Xh),_.E("design:type",Object)],Mf.prototype,"ytdReduxBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],Mf.prototype,"data",void 0);
_.x([_.g({selectorArgs:["data.subscribedEntityKey"],selector:hvN}),_.E("design:type",Object)],Mf.prototype,"subscriptionStateEntity",void 0);_.x([_.g({computed:"computeSubscribed(data.subscribed, subscriptionStateEntity)",reflectToAttribute:!0}),_.E("design:type",Boolean)],Mf.prototype,"subscribed",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Boolean)],Mf.prototype,"branded",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],Mf.prototype,"animatedActionEnabled",void 0);
_.x([_.g(),_.E("design:type",Object)],Mf.prototype,"foregroundLottieRef",void 0);_.x([_.g(),_.E("design:type",Object)],Mf.prototype,"backgroundLottieRef",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Boolean)],Mf.prototype,"overlayButton",void 0);_.x([_.g({reflectToAttribute:!0,computed:"computeButtonStyle(data)"}),_.E("design:type",Object)],Mf.prototype,"buttonStyle",void 0);_.x([_.g(),_.E("design:type",Object)],Mf.prototype,"forceIconOnly",void 0);
_.x([_.g(),_.E("design:type",Object)],Mf.prototype,"showTextWhileAnimating",void 0);_.x([_.g({value:function(){return!!_.tW().resolve(_.AW(_.SN))&&_.y("kevlar_keyboard_button_focus")},
reflectToAttribute:!0}),_.E("design:type",Boolean)],Mf.prototype,"useKeyboardFocused",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],Mf.prototype,"keyboardFocused",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],Mf.prototype,"isAnimating",void 0);_.x([_.e("data.notificationPreferenceButton.*"),_.E("design:type",Object),_.E("design:paramtypes",[])],Mf.prototype,"hasBellButton",null);
_.x([_.T4("subscribedButtonText"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],Mf.prototype,"maybeUpdateBellButtonText",null);_.x([_.e("data.subscribedButtonText","forceIconOnly","isAnimating","subscribed"),_.E("design:type",Object),_.E("design:paramtypes",[])],Mf.prototype,"subscribedButtonText",null);_.x([_.e("data.timedAnimationData.animationTiming","subscribed"),_.E("design:type",Object),_.E("design:paramtypes",[])],Mf.prototype,"smartimationSettings",null);
_.x([_.g({reflectToAttribute:!0}),_.e("subscribed","hasBellButton","data.hideWhenUnsubscribed"),_.E("design:type",Object),_.E("design:paramtypes",[])],Mf.prototype,"subscribeButtonHidden",null);_.x([_.g({reflectToAttribute:!0}),_.e("subscribed","hasBellButton"),_.E("design:type",Object),_.E("design:paramtypes",[])],Mf.prototype,"subscribeButtonInvisible",null);
_.x([_.g({reflectToAttribute:!0}),_.e("subscribed"),_.E("design:type",Object),_.E("design:paramtypes",[])],Mf.prototype,"unsubscribeButtonHidden",null);_.x([_.O2("ytd-subscription-notification-toggle-button-renderer-next"),_.E("design:type",Object)],Mf.prototype,"bellButton",void 0);_.x([_.O2("#subscribe-button-shape"),_.E("design:type",HTMLElement)],Mf.prototype,"subscribeButtonShape",void 0);
_.x([_.e("overlayButton","subscribed","data"),_.E("design:type",Object),_.E("design:paramtypes",[])],Mf.prototype,"buttonShape",null);_.x([_.Vd("yt-service-request-sent"),_.E("design:type",Function),_.E("design:paramtypes",[CustomEvent,_.eM]),_.E("design:returntype")],Mf.prototype,"onYtServiceRequestSent",null);_.x([_.Vd("yt-service-request-completed"),_.E("design:type",Function),_.E("design:paramtypes",[CustomEvent,_.xL]),_.E("design:returntype")],Mf.prototype,"onYtServiceRequestCompleted",null);
_.x([_.T4("subscribed"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],Mf.prototype,"observedSubscribed",null);_.x([_.T4("data"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],Mf.prototype,"onDataChanged",null);_.x([_.Vd("mousedown"),_.E("design:type",Function),_.E("design:paramtypes",[CustomEvent]),_.E("design:returntype")],Mf.prototype,"onMouseDown",null);
Mf=_.x([_.f({disableElementRegistration:!0,is:"ytd-subscribe-button-renderer"})],Mf);
_.C(Mf,"ytd-subscribe-button-renderer",function(){if(g8Q!==void 0)return g8Q;var S=document.createElement("template");_.h(S,'\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');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);return g8Q=S},{mode:1});var Im=function(){var S=_.w.apply(this,arguments)||this;S.isRichGrid=!1;return S};
_.r(Im,_.w);Im.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"}}}};
_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],Im.prototype,"ytRendererBehavior",void 0);_.x([_.F(_.qH.YtRendererstamperBehavior),_.E("design:type",Object)],Im.prototype,"ytRendererstamperBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],Im.prototype,"data",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],Im.prototype,"isRichGrid",void 0);Im=_.x([_.f({is:"ytd-game-card-renderer",disableElementRegistration:!0})],Im);
_.C(Im,"ytd-game-card-renderer",function(){if(Z5P!==void 0)return Z5P;var S=document.createElement("template");_.h(S,'\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');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);return Z5P=S},{mode:1});var da={id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer"}},initialRenderPriority:_.y("defer_menus")&&!Ztw?0:void 0,waitForSignal:"eocs"};var uow;var wsq;var Vv=function(){var S=_.w.apply(this,arguments)||this;S.actionMap={"yt-update-upcoming-event-reminder-button-state-command":"handleUpdateUpcomingEventReminderButtonStateCommand"};return S};
_.r(Vv,_.w);_.M=Vv.prototype;_.M.configureRendererStamper=function(){return{"currentButtonStateRenderer.button":{id:"button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{buttonTooltipPosition:"top"}}}}}};
_.M.onSeriesReminderStateEntityChange=function(){var S,p,U;((S=this.eventReminderStateEntity)==null?0:S.key)&&((p=this.seriesReminderStateEntity)==null?void 0:p.state)==="SPORTS_SERIES_REMINDER_STATE_ALL"&&((U=this.eventReminderStateEntity)==null?void 0:U.state)==="UPCOMING_EVENT_REMINDER_STATE_SINGLE"&&this.ytdReduxBehavior.dispatch(_.WG("upcomingEventReminderStateEntity",this.eventReminderStateEntity.key,Object.assign({},this.eventReminderStateEntity,{state:"UPCOMING_EVENT_REMINDER_STATE_NONE"})))};
_.M.onYtServiceRequestCompleted=function(){this.set("data.currentState",this.getButtonStateFromReminderState())};
_.M.onYtServiceRequestError=function(){var S;this.updateReminderStateEntitiesFromButtonState((S=this.data)==null?void 0:S.currentState)};
_.M.handleUpdateUpcomingEventReminderButtonStateCommand=function(S){if(S=_.b(S,Pse)){var p,U=(p=this.data)==null?void 0:p.targetId;U&&S.targetId===U&&_.uK(this.updateReminderStateEntitiesFromButtonState.bind(this,S.state))}};
_.M.getButtonStateFromReminderState=function(){var S;if(((S=this.seriesReminderStateEntity)==null?void 0:S.state)==="SPORTS_SERIES_REMINDER_STATE_ALL")return"UPCOMING_EVENT_REMINDER_BUTTON_STATE_SERIES";var p;if(((p=this.eventReminderStateEntity)==null?void 0:p.state)==="UPCOMING_EVENT_REMINDER_STATE_SINGLE")return"UPCOMING_EVENT_REMINDER_BUTTON_STATE_SINGLE";var U,Y;if(((U=this.seriesReminderStateEntity)==null?void 0:U.state)==="SPORTS_SERIES_REMINDER_STATE_NONE"&&((Y=this.eventReminderStateEntity)==
null?void 0:Y.state)==="UPCOMING_EVENT_REMINDER_STATE_NONE")return"UPCOMING_EVENT_REMINDER_BUTTON_STATE_NONE";var L;return(L=this.data)==null?void 0:L.currentState};
_.M.updateReminderStateEntitiesFromButtonState=function(S){if(S){switch(S){case "UPCOMING_EVENT_REMINDER_BUTTON_STATE_SERIES":S="UPCOMING_EVENT_REMINDER_STATE_NONE";var p="SPORTS_SERIES_REMINDER_STATE_ALL";break;case "UPCOMING_EVENT_REMINDER_BUTTON_STATE_SINGLE":S="UPCOMING_EVENT_REMINDER_STATE_SINGLE";p="SPORTS_SERIES_REMINDER_STATE_NONE";break;case "UPCOMING_EVENT_REMINDER_BUTTON_STATE_NONE":S="UPCOMING_EVENT_REMINDER_STATE_NONE";p="SPORTS_SERIES_REMINDER_STATE_NONE";break;default:return}var U;
((U=this.eventReminderStateEntity)==null?0:U.key)&&this.ytdReduxBehavior.dispatch(_.WG("upcomingEventReminderStateEntity",this.eventReminderStateEntity.key,Object.assign({},this.eventReminderStateEntity,{state:S})));var Y;((Y=this.seriesReminderStateEntity)==null?0:Y.key)&&this.ytdReduxBehavior.dispatch(_.WG("sportsSeriesReminderStateEntity",this.seriesReminderStateEntity.key,Object.assign({},this.seriesReminderStateEntity,{state:p})))}};
_.$u.Object.defineProperties(Vv.prototype,{currentButtonStateRenderer:{configurable:!0,enumerable:!0,get:function(){var S=this.getButtonStateFromReminderState(),p,U;if(S&&((p=this.data)==null?0:(U=p.states)==null?0:U.length))for(p=_.d(this.data.states),U=p.next();!U.done;U=p.next()){U=U.value;var Y=void 0;if(((Y=_.b(U,ZLm))==null?void 0:Y.state)===S)return _.b(U,ZLm)}}}});
Vv.prototype.onYtServiceRequestError=Vv.prototype.onYtServiceRequestError;Vv.prototype.onYtServiceRequestCompleted=Vv.prototype.onYtServiceRequestCompleted;Vv.prototype.onSeriesReminderStateEntityChange=Vv.prototype.onSeriesReminderStateEntityChange;_.x([_.F(_.Aj.YtActionHandlerBehavior),_.E("design:type",Object)],Vv.prototype,"ytActionHandlerBehavior",void 0);_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],Vv.prototype,"ytRendererBehavior",void 0);
_.x([_.F(_.qH.YtRendererstamperBehavior),_.E("design:type",Object)],Vv.prototype,"ytRendererstamperBehavior",void 0);_.x([_.F(_.Xh),_.E("design:type",Object)],Vv.prototype,"ytdReduxBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],Vv.prototype,"data",void 0);_.x([_.g({selectorArgs:["data.upcomingEventData.reminderStateEntityKey"],selector:FIw}),_.E("design:type",Object)],Vv.prototype,"eventReminderStateEntity",void 0);
_.x([_.g({selectorArgs:["eventReminderStateEntity.seriesReminderState"],selector:function(S,p){return _.I4(S.entities,"sportsSeriesReminderStateEntity",p)}}),
_.E("design:type",Object)],Vv.prototype,"seriesReminderStateEntity",void 0);_.x([_.e("data.currentState","eventReminderStateEntity","seriesReminderStateEntity"),_.E("design:type",Object),_.E("design:paramtypes",[])],Vv.prototype,"currentButtonStateRenderer",null);_.x([_.T4("seriesReminderStateEntity"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],Vv.prototype,"onSeriesReminderStateEntityChange",null);
_.x([_.Vd("yt-service-request-completed"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],Vv.prototype,"onYtServiceRequestCompleted",null);_.x([_.Vd("yt-service-request-error"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],Vv.prototype,"onYtServiceRequestError",null);Vv=_.x([_.f({disableElementRegistration:!0,is:"ytd-upcoming-event-reminder-button-renderer"})],Vv);
_.C(Vv,"ytd-upcoming-event-reminder-button-renderer",function(){if(wsq!==void 0)return wsq;var S=document.createElement("template");_.h(S,'\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');S.content.insertBefore(_.t().content.cloneNode(!0),S.content.firstChild);
return wsq=S},{mode:1});var l_w;var TQ=function(){return _.w.apply(this,arguments)||this};
_.r(TQ,_.w);TQ.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{ellipsisTruncate:!0}}}}}};
_.$u.Object.defineProperties(TQ.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(_.y("web_announce_stop_seeing_this_ad_text_a11y_bugfix")&&this.data)return this.ytRendererBehavior.getSimpleString(this.data.responseText)}}});
_.x([_.F(_.qH.YtRendererstamperBehavior),_.E("design:type",Object)],TQ.prototype,"ytRendererstamperBehavior",void 0);_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],TQ.prototype,"ytRendererBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],TQ.prototype,"data",void 0);_.x([_.g({reflectToAttribute:!0,value:!1}),_.E("design:type",Boolean)],TQ.prototype,"shelfDismissal",void 0);_.x([_.e("data.responseText"),_.E("design:type",Object),_.E("design:paramtypes",[])],TQ.prototype,"text",null);
_.x([_.e("data.responseText"),_.E("design:type",Object),_.E("design:paramtypes",[])],TQ.prototype,"textAriaLabel",null);TQ=_.x([_.f({disableElementRegistration:!0,is:"ytd-notification-multi-action-renderer"})],TQ);
_.C(TQ,"ytd-notification-multi-action-renderer",function(){if(l_w!==void 0)return l_w;var S=document.createElement("template");_.h(S,'\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');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);return l_w=S},{mode:1});var a_H;var Wh=function(){return _.w.apply(this,arguments)||this};
_.r(Wh,_.w);Wh.prototype.ready=function(){var S=this;_.tB(this.hostElement).querySelector("#undo").addEventListener("tap",function(){S.onUndoTap()})};
Wh.prototype.onUndoTap=function(){this.data.undoEndpoint&&_.tW().resolve(_.cQ).resolveCommand(this.data.undoEndpoint,{form:{element:this.hostElement}})};
_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],Wh.prototype,"ytRendererBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],Wh.prototype,"data",void 0);Wh=_.x([_.f({disableElementRegistration:!0,is:"ytd-notification-text-renderer"})],Wh);
_.C(Wh,"ytd-notification-text-renderer",function(){if(a_H!==void 0)return a_H;var S=document.createElement("template");_.h(S,'\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');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);return a_H=S},{mode:1});var f_t;var OL=function(){var S=_.w.apply(this,arguments)||this;S.mouseOverDelayJobId=0;S.fadeInImageDelayJobId=0;S.startTimeMs=-1;S.loadingStartTimeMs=-1;S.loadingEndTimeMs=-1;S.hasVideoPreview=!1;return S};
_.r(OL,_.w);_.M=OL.prototype;_.M.attached=function(){this.data&&(this.isAttachedAndDataSet=!0,this.showThumbnail())};
_.M.detached=function(){this.isAttachedAndDataSet=!1;this.hideThumbnail();this.data=void 0;this.csn=null};
_.M.dataChanged=function(){this.data&&this.isAttached&&!this.isAttachedAndDataSet&&(this.isAttachedAndDataSet=!0,this.showThumbnail())};
_.M.showThumbnail=function(){var S=this;this.csn=_.X$();_.Xg("fmth");_.PA.cancelJob(this.mouseOverDelayJobId);this.data&&this.data.movingThumbnailDetails&&this.data.movingThumbnailDetails.thumbnails?this.mouseOverDelayJobId=_.ps(_.PA,function(){S.loadingStartTimeMs=(0,_.AI)();var p=_.tB(S.hostElement).querySelector("#thumbnail");p.complete?S.displayMouseOverImage():p.addEventListener("load",_.d9(S,S.displayMouseOverImage))},150):_.U2(_.tB(this.hostElement).querySelector("#play"),"show",!0)};
_.M.hideThumbnail=function(){this.data&&this.data.enableHoveredLogging&&this.logHoverEvent();this.removeVideoPreview()};
_.M.onTap=function(){this.removeVideoPreview()};
_.M.logHoverEvent=function(){if(this.csn&&this.trackingParams&&!(this.loadingStartTimeMs<=0)){var S=this.videoId,p=this.csn,U=this.loadingEndTimeMs>0?this.loadingEndTimeMs-this.loadingStartTimeMs:0,Y=this.startTimeMs,L=this.hasVideoPreview,I=_.JS(this.trackingParams),V={isMovingThumbnail:L};L&&Y>0&&(U>0&&(V.movingThumbnailLoadingDurationMs=Math.round(U)),V.durationHoveredMs=Math.round((0,_.AI)()-Y));S&&(V.videoId=S);_.Eh(p,I,"INTERACTION_LOGGING_GESTURE_TYPE_HOVER",{thumbnailHoveredData:V});this.startTimeMs=
this.loadingEndTimeMs=this.loadingStartTimeMs=-1;this.hasVideoPreview=!1}};
_.M.removeVideoPreview=function(){_.PA.cancelJob(this.mouseOverDelayJobId);_.PA.cancelJob(this.fadeInImageDelayJobId);var S=_.tB(this.hostElement).querySelector("#thumbnail");_.U2(S,"fade-in",!1);S.removeEventListener("load",_.d9(this,this.displayMouseOverImage));S=_.tB(this.hostElement).querySelector("#play");_.U2(S,"fade-in",!1);_.U2(S,"show",!1)};
_.M.displayMouseOverImage=function(){var S=_.tB(this.hostElement).querySelector("#thumbnail"),p=_.tB(this.hostElement).querySelector("#play");this.isImageAvailable(S)?(this.hasVideoPreview=!0,this.loadingEndTimeMs=(0,_.AI)(),this.startTimeMs=(0,_.AI)(),this.fadeInImageDelayJobId=_.ps(_.PA,function(){_.U2(S,"fade-in",!0)},50)):_.U2(p,"fade-in",!0)};
_.M.computeThumbnail=function(S,p){var U;S&&S.movingThumbnailDetails&&S.movingThumbnailDetails.thumbnails&&p?U=_.AS(S.movingThumbnailDetails.thumbnails,this.hostElement.clientWidth):U=p?"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7":"";if(U)return _.JA(U)};
_.M.isImageAvailable=function(S){return!(!S.src||S.src==="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7"||S.naturalWidth===120)};
OL.prototype.onTap=OL.prototype.onTap;OL.prototype.dataChanged=OL.prototype.dataChanged;_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],OL.prototype,"ytRendererBehavior",void 0);_.x([_.F(_.eL.YtComponentBehavior),_.E("design:type",Object)],OL.prototype,"ytComponentBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],OL.prototype,"data",void 0);_.x([_.g(),_.E("design:type",Object)],OL.prototype,"csn",void 0);_.x([_.g(),_.E("design:type",Object)],OL.prototype,"trackingParams",void 0);
_.x([_.g(),_.E("design:type",String)],OL.prototype,"videoId",void 0);_.x([_.g(),_.E("design:type",Boolean)],OL.prototype,"isAttachedAndDataSet",void 0);_.x([_.z4("data"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],OL.prototype,"dataChanged",null);_.x([_.Vd("click"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],OL.prototype,"onTap",null);OL=_.x([_.f({disableElementRegistration:!0,is:"ytd-moving-thumbnail-renderer"})],OL);
_.C(OL,"ytd-moving-thumbnail-renderer",function(){if(f_t!==void 0)return f_t;var S=document.createElement("template");_.h(S,'\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');
S.content.insertBefore(_.t().content.cloneNode(!0),S.content.firstChild);return f_t=S},{mode:1});var CDm;_.dI=function(S){this.hostElement=S;this.eventSink=null;this.eventList=[]};
_.dI.prototype.shouldForward=function(){var S,p;return(p=(S=this.eventSink)==null?void 0:S.isConnected)!=null?p:document.body.contains(this.eventSink)};
_.dI.prototype.start=function(S,p){this.eventSink&&this.stop();for(var U=0;U<S.length;U++)this.hostElement.addEventListener(S[U],_.d9(this,this.forwardEvent));var Y;this.eventSink=(Y=p.hostElement)!=null?Y:p;this.eventList=S};
_.dI.prototype.stop=function(){for(var S=0;S<this.eventList.length;S++)this.hostElement.removeEventListener(this.eventList[S],_.d9(this,this.forwardEvent));this.eventSink=null;this.eventList=[]};
_.dI.prototype.forwardEvent=function(S,p){this.shouldForward()&&(S.stopPropagation(),this.eventSink instanceof Element?_.cv(this.eventSink,S.type,p):_.eP(new _.y7("eventSink is not an element")))};_.kP={YtEventForwardingBehavior:{created:function(){this.forwarder_=new _.dI(this.hostElement)},
shouldForward:function(){return this.forwarder_.shouldForward()},
startForwardingEvents:function(S,p){this.forwarder_.start(S,p)},
stopForwardingEvents:function(){this.forwarder_.stop()}}};var Hh=function(){return _.w.apply(this,arguments)||this};
_.r(Hh,_.w);_.M=Hh.prototype;_.M.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=_.g7("HTML_DIR")==="rtl"?"right":"left"};
_.M.dataChanged=function(){this.popupOpen=!1};
_.M.computeAriaLabel=function(S){return _.b(S,v9m).label};
_.M.onTap=function(S){S.stopPropagation();S.preventDefault();this.data.command&&_.tW().resolve(_.cQ).resolveCommand(this.data.command,{form:{element:this.hostElement}})};
_.M.onPopupOpened=function(){this.popupOpen=!0;this.eventForwardingBehavior.startForwardingEvents(["yt-navigate"],this.eventSink)};
_.M.onPopupClosed=function(){this.popupOpen=!1;this.eventForwardingBehavior.stopForwardingEvents()};
Hh.prototype.onPopupClosed=Hh.prototype.onPopupClosed;Hh.prototype.onPopupOpened=Hh.prototype.onPopupOpened;Hh.prototype.onTap=Hh.prototype.onTap;Hh.prototype.dataChanged=Hh.prototype.dataChanged;_.x([_.F(_.kP.YtEventForwardingBehavior),_.E("design:type",Object)],Hh.prototype,"eventForwardingBehavior",void 0);_.x([_.F(_.GC),_.E("design:type",Object)],Hh.prototype,"ironButtonState",void 0);_.x([_.F(_.eL.YtComponentBehavior),_.E("design:type",Object)],Hh.prototype,"componentBehavior",void 0);
_.x([_.g(),_.E("design:type",Object)],Hh.prototype,"data",void 0);_.x([_.g({reflectToAttribute:!0,value:-1}),_.E("design:type",Number)],Hh.prototype,"tabindex",void 0);_.x([_.g({reflectToAttribute:!0,computed:"computeAriaLabel(data.accessibility)"}),_.E("design:type",Object)],Hh.prototype,"ariaLabel",void 0);_.x([_.g({value:!1}),_.E("design:type",Boolean)],Hh.prototype,"disableTooltips",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Boolean)],Hh.prototype,"popupOpen",void 0);
_.x([_.g(),_.E("design:type",Element)],Hh.prototype,"eventSink",void 0);_.x([_.O2("#tooltip"),_.E("design:type",Object)],Hh.prototype,"tooltip",void 0);_.x([_.T4("data"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],Hh.prototype,"dataChanged",null);_.x([_.Vd("tap"),_.E("design:type",Function),_.E("design:paramtypes",[CustomEvent]),_.E("design:returntype")],Hh.prototype,"onTap",null);
_.x([_.Vd("yt-popup-opened"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],Hh.prototype,"onPopupOpened",null);_.x([_.Vd("yt-popup-closed"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],Hh.prototype,"onPopupClosed",null);Hh=_.x([_.f({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-button-renderer"})],Hh);
_.C(Hh,"ytd-thumbnail-overlay-button-renderer",function(){if(CDm!==void 0)return CDm;var S=document.createElement("template");_.h(S,'\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>');
S.content.insertBefore(_.t().content.cloneNode(!0),S.content.firstChild);return CDm=S},{mode:1});var xLc;var Db=function(){return _.w.apply(this,arguments)||this};
_.r(Db,_.w);_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],Db.prototype,"ytRendererBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],Db.prototype,"data",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Boolean)],Db.prototype,"disableAnimation",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Boolean)],Db.prototype,"rounded",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Boolean)],Db.prototype,"transparentBackground",void 0);
_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Boolean)],Db.prototype,"noPadding",void 0);Db=_.x([_.f({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-endorsement-renderer"})],Db);
_.C(Db,"ytd-thumbnail-overlay-endorsement-renderer",function(){if(xLc!==void 0)return xLc;var S=document.createElement("template");_.h(S,'\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');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);return xLc=S},{mode:1});var E8j;var zQ=function(){return _.w.apply(this,arguments)||this};
_.r(zQ,_.w);zQ.prototype.computeIconPosition=function(S){return this.get("iconPosition",S)||null};
zQ.prototype.computeIconStyle=function(S){return this.get("iconStyle",S)||null};
zQ.prototype.computeIsIconStyleFilled=function(S){if(!S)return!1;var p;return S.iconStyle==="THUMBNAIL_OVERLAY_ICON_RENDERER_ICON_STYLE_FILLED"||((p=S.icon)==null?void 0:p.iconType)==="ERROR_BLACK"};
_.x([_.g(),_.E("design:type",Object)],zQ.prototype,"data",void 0);_.x([_.g({computed:"computeIconPosition(data)",reflectToAttribute:!0}),_.E("design:type",Object)],zQ.prototype,"iconPosition",void 0);_.x([_.g({computed:"computeIconStyle(data)",reflectToAttribute:!0}),_.E("design:type",Object)],zQ.prototype,"iconStyle",void 0);_.x([_.g({computed:"computeIsIconStyleFilled(data)",reflectToAttribute:!0}),_.E("design:type",Boolean)],zQ.prototype,"iconStyleFilled",void 0);
zQ=_.x([_.f({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-icon-renderer"})],zQ);
_.C(zQ,"ytd-thumbnail-overlay-icon-renderer",function(){if(E8j!==void 0)return E8j;var S=document.createElement("template");_.h(S,'\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');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);return E8j=S},{mode:1});var mLm;var Qv=function(){return _.w.apply(this,arguments)||this};
_.r(Qv,_.w);_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],Qv.prototype,"ytRendererBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],Qv.prototype,"data",void 0);Qv=_.x([_.f({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-inline-unplayable-renderer"})],Qv);
_.C(Qv,"ytd-thumbnail-overlay-inline-unplayable-renderer",function(){if(mLm!==void 0)return mLm;var S=document.createElement("template");_.h(S,'\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');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);return mLm=S},{mode:1});var o8t;var nt=function(){var S=_.w.apply(this,arguments)||this;S.isPreviewLoading=!1;return S};
_.r(nt,_.w);_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],nt.prototype,"ytRendererBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],nt.prototype,"data",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],nt.prototype,"isPreviewLoading",void 0);nt=_.x([_.f({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-loading-preview-renderer"})],nt);
_.C(nt,"ytd-thumbnail-overlay-loading-preview-renderer",function(){if(o8t!==void 0)return o8t;var S=document.createElement("template");_.h(S,'\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>');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);return o8t=S},{mode:1});var v8w;var JQ=function(){return _.w.apply(this,arguments)||this};
_.r(JQ,_.w);_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],JQ.prototype,"ytRendererBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],JQ.prototype,"data",void 0);JQ=_.x([_.f({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-pinking-renderer"})],JQ);
_.C(JQ,"ytd-thumbnail-overlay-pinking-renderer",function(){if(v8w!==void 0)return v8w;var S=document.createElement("template");_.h(S,'\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');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);return v8w=S},{mode:1});var $LP;var yv=function(){var S=_.w.apply(this,arguments)||this;S.disableTooltips=!1;S.isLoading=!1;S.useExpandableTooltip=!1;S.toggled=!1;S.hovered=!1;S.mouseoverDelayJobId=0;S.toggleDelayJobId=0;S.expandAnimationDelayJobId=0;return S};
_.r(yv,_.w);_.M=yv.prototype;_.M.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");_.tB(this.hostElement).querySelector("#tooltip").position=_.g7("HTML_DIR")==="rtl"?"right":"left"};
_.M.detached=function(){this.useExpandableTooltip&&(this.isLoading=this.hovered=!1,this.data&&!this.data.toggledServiceEndpoint&&this.set("data.isToggled",!1),this.mouseoverDelayJobId&&_.PA.cancelJob(this.mouseoverDelayJobId),this.toggleDelayJobId&&_.PA.cancelJob(this.toggleDelayJobId),this.expandAnimationDelayJobId&&_.PA.cancelJob(this.expandAnimationDelayJobId),this.useExpandableTooltip=!1)};
_.M.dataChanged=function(){this.popupOpen=this.isLoading=!1;this.mouseoverDelayJobId&&_.PA.cancelJob(this.mouseoverDelayJobId);this.toggleDelayJobId&&_.PA.cancelJob(this.toggleDelayJobId);this.expandAnimationDelayJobId&&_.PA.cancelJob(this.expandAnimationDelayJobId)};
_.M.computeIcon=function(S,p,U){return(S=U?p:S)&&S.iconType?_.If(S.iconType):void 0};
_.M.computeAriaLabel=function(S,p,U){return _.b(U?p:S,v9m).label};
_.M.computeTooltip=function(S,p,U){return U?p:S};
_.M.computeToggled=function(){return!(!this.data||!this.data.isToggled)};
_.M.computeIconOnHover=function(S,p){if((S==null?0:S.iconType)&&!p)return _.If(S.iconType)};
_.M.onTap=function(S){var p=this;S.stopPropagation();S.preventDefault();if(!this.isLoading||this.useExpandableTooltip)if(S=this.data.isToggled?this.data.toggledServiceEndpoint:this.data.untoggledServiceEndpoint)this.isLoading=!0,this.set("data.isToggled",!this.data.isToggled),this.ytComponentBehavior.resolveCommand(S),this.useExpandableTooltip&&(this.toggleDelayJobId=_.ps(_.PA,function(){p.hovered=!1;p.data&&!p.data.toggledServiceEndpoint&&(p.expandAnimationDelayJobId=_.ps(_.PA,function(){p.set("data.isToggled",
!1)},200))},2E3))};
_.M.onMouseenter=function(){var S=this;this.mouseoverDelayJobId=_.ps(_.PA,function(){S.hovered=!0},300)};
_.M.onMouseleave=function(){_.PA.cancelJob(this.mouseoverDelayJobId);this.toggled||(this.hovered=!1)};
_.M.onPopupOpened=function(){this.popupOpen=!0;this.ytEventForwardingBehavior.startForwardingEvents(["yt-navigate"],this.eventSink)};
_.M.onPopupClosed=function(){this.popupOpen=!1;this.ytEventForwardingBehavior.stopForwardingEvents()};
_.M.onServiceRequestCompleted=function(S,p){this.isLoading=!1;if(!this.useExpandableTooltip||this.data.toggledServiceEndpoint&&this.data.untoggledServiceEndpoint)this.serviceRequestWasSuccessful(p)||this.set("data.isToggled",!this.data.isToggled)};
_.M.serviceRequestWasSuccessful=function(S){return _.b(this.data.isToggled?this.data.toggledServiceEndpoint:this.data.untoggledServiceEndpoint,_.h1)?S.data.status==="STATUS_SUCCEEDED":!0};
yv.prototype.onServiceRequestCompleted=yv.prototype.onServiceRequestCompleted;yv.prototype.onPopupClosed=yv.prototype.onPopupClosed;yv.prototype.onPopupOpened=yv.prototype.onPopupOpened;yv.prototype.onMouseleave=yv.prototype.onMouseleave;yv.prototype.dataChanged=yv.prototype.dataChanged;_.x([_.F(_.GC),_.E("design:type",Object)],yv.prototype,"ironButtonState",void 0);_.x([_.F(_.eL.YtComponentBehavior),_.E("design:type",Object)],yv.prototype,"ytComponentBehavior",void 0);
_.x([_.F(_.kP.YtEventForwardingBehavior),_.E("design:type",Object)],yv.prototype,"ytEventForwardingBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],yv.prototype,"data",void 0);_.x([_.g({reflectToAttribute:!0,computed:"computeAriaLabel(data.untoggledAccessibility, data.toggledAccessibility, data.isToggled)"}),_.E("design:type",Object)],yv.prototype,"ariaLabel",void 0);_.x([_.g(),_.E("design:type",Object)],yv.prototype,"disableTooltips",void 0);
_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Boolean)],yv.prototype,"popupOpen",void 0);_.x([_.g(),_.E("design:type",Object)],yv.prototype,"isLoading",void 0);_.x([_.g(),_.E("design:type",Element)],yv.prototype,"eventSink",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],yv.prototype,"useExpandableTooltip",void 0);_.x([_.g({reflectToAttribute:!0,computed:"computeToggled(data.isToggled)"}),_.E("design:type",Object)],yv.prototype,"toggled",void 0);
_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],yv.prototype,"hovered",void 0);_.x([_.g({reflectToAttribute:!0,computed:"computeIconOnHover(data.untoggledIconOnHover, isToggled)"}),_.E("design:type",Object)],yv.prototype,"iconOnHover",void 0);_.x([_.z4("data"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],yv.prototype,"dataChanged",null);
_.x([_.Vd("mouseleave"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],yv.prototype,"onMouseleave",null);_.x([_.Vd("yt-popup-opened"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],yv.prototype,"onPopupOpened",null);_.x([_.Vd("yt-popup-closed"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],yv.prototype,"onPopupClosed",null);
_.x([_.Vd("yt-service-request-completed"),_.E("design:type",Function),_.E("design:paramtypes",[CustomEvent,_.xL]),_.E("design:returntype")],yv.prototype,"onServiceRequestCompleted",null);yv=_.x([_.f({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-toggle-button-renderer"})],yv);
_.C(yv,"ytd-thumbnail-overlay-toggle-button-renderer",function(){if($LP!==void 0)return $LP;var S=document.createElement("template");_.h(S,'\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>');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);return $LP=S},{mode:_.UW("kevlar_poly_si_batch_j053")?1:2});var i5I;var N4I=_.$k(function(S){var p=S.data;var U=function(){return p().enableSegmentView};
return _.H("yt-thumbnail-overlay-progress-bar-view-model",{class:"ytThumbnailOverlayProgressBarHost"},_.H(_.n,{cond:U,then:function(){return _.H("div",{class:"ytThumbnailOverlayProgressBarHostProgressBar"},_.H("div",{class:_.W7("ytThumbnailOverlayProgressBarHostProgressBarLeftSegment","ytThumbnailOverlayProgressBarHostProgressBarSegment","ytThumbnailOverlayProgressBarHostProgressBarInactiveSegment"),style:function(){return"width:"+p().startPercent+"%"}}),_.H("div",{class:_.W7("ytThumbnailOverlayProgressBarHostProgressBarContainer"),
style:function(){return"width:"+p().segmentDurationPercent+"%"}},_.H("div",{class:_.W7("ytThumbnailOverlayProgressBarHostProgressBarActiveSegment","ytThumbnailOverlayProgressBarHostProgressBarSegment")}),_.H("div",{class:"ytThumbnailOverlayProgressBarHostLabel"},_.H("div",null," ",function(){return p().segmentLabel})),_.H("div",{class:"ytThumbnailOverlayProgressBarHostLabelTriangle"})),_.H("div",{class:_.W7("ytThumbnailOverlayProgressBarHostProgressBarRightSegment","ytThumbnailOverlayProgressBarHostProgressBarSegment",
"ytThumbnailOverlayProgressBarHostProgressBarInactiveSegment")}))}}),_.H(_.n,{cond:function(){return!U()&&p().startPercent},
then:function(){var Y={};return _.H("div",{class:_.W7("ytThumbnailOverlayProgressBarHostWatchedProgressBar",(Y.ytThumbnailOverlayProgressBarHostUseLegacyBar=!_.y("web_enable_modern_progress_bar_overlay"),Y))},_.H("div",{class:"ytThumbnailOverlayProgressBarHostWatchedProgressBarSegment",style:function(){return"width:"+p().startPercent+"%"}}))}}))},"Q");
N4I.idomCompat=!0;var B4Q=_.$k(function(S){var p=_.YO(),U=_.Xc(function(L){var I,V,W;a:{var O=(I=S.data())==null?void 0:I.animationActivationTargetId;I=((V=S.data())==null?void 0:V.animationActivationEntityKey)||"";V=(W=S.data())==null?void 0:W.animationActivationEntitySelectorType;if(I&&O)switch(V){case "THUMBNAIL_BADGE_ANIMATION_ENTITY_SELECTOR_TYPE_PLAYER_STATE":L=_.I4(L.entities,"playerStateEntity",I);W=_.tW().resolve(_.AW(_.eC));O=!!(L&&L.videoId===O&&(W==null?0:W.isMiniplayerActive()));O={activated:O,playAnimation:O&&
L.playerState==="PLAYER_STATE_PLAYING"};break a}O=void 0}return O});
_.R8(function(){var L;if((L=U())==null?0:L.activated){var I;if((I=U())==null?0:I.playAnimation){var V;(V=p.lottieEl)==null||V.goToAndPlay(0)}else{var W;(W=p.lottieEl)==null||W.goToAndStop(0)}}});
var Y=function(){var L,I=!((L=U())==null||!L.activated);if(S.data()){L=S.data();var V=void 0;L.icon&&(V=_.Obw(L.icon),V=J5G(V));var W=void 0,O;if((O=L.backgroundColor)==null?0:O.lightTheme){var D;W={backgroundColor:gz((D=L.backgroundColor)==null?void 0:D.lightTheme,"0.8")}}if(L.text||V||I){if(I&&L.lottieData&&p){D=L.lottieData;var z,Q,J;O={animationConfig:{name:D.url,path:D.url,autoplay:(z=D.settings)==null?void 0:z.autoplay,loop:(J=(Q=D.settings)==null?void 0:Q.loop)!=null?J:!0},animationRef:p}}else O=
void 0;if(I)z=16;else b:switch(L.badgeStyle){case "THUMBNAIL_OVERLAY_BADGE_STYLE_LIVE":z=17;break b;case "THUMBNAIL_OVERLAY_BADGE_STYLE_SPECIAL":z=18;break b;default:z=16}I={type:z,text:I&&L.animatedText?L.animatedText:L.text,icon:V,customColors:W,animation:O}}else I=void 0}else I=void 0;return I};
return _.H("yt-thumbnail-badge-view-model",{class:_.VD("yt-thumbnail-badge-view-model-wiz",S.class)},_.H(_.n,{cond:Y,then:function(){return _.H(_.vG,{data:function(){return Y()}})}}))},"R");var qyH=_.$k(function(S){var p={};return _.H("yt-thumbnail-bottom-overlay-view-model",{class:_.VD("ytThumbnailBottomOverlayViewModelHost",(p.ytThumbnailBottomOverlayViewModelHostBackground=function(){return S.data().enableGradientBackground},p))},_.H("div",{class:"ytThumbnailBottomOverlayViewModelHostContainer"},_.H(_.yP,{data:function(){return S.data().progressBar}},{thumbnailOverlayProgressBarViewModel:N4I}),_.H(_.yP,{data:function(){return S.data().badge}},{thumbnailBadgeViewModel:function(U){return _.H(B4Q,
{data:U.data,
class:"ytThumbnailBottomOverlayViewModelHostBadge"})}}),_.H(_.yP,{data:function(){return S.data().badges}},{thumbnailBadgeViewModel:function(U){return _.H(B4Q,{data:U.data,
class:"ytThumbnailBottomOverlayViewModelHostBadge"})}})))},"S");
qyH.idomCompat=!0;_.qm(qyH,"yt-thumbnail-bottom-overlay-view-model",{props:{data:_.BX}});var Hlu={calledOnce:!1,state:"visible"},DSG={calledOnce:!1,state:"hidden"};var Kt=_.$k(function(S){var p=S.data;var U=S.className;S=S.alwaysShow;var Y=_.vH();_.C6(Y,function(){return p().rendererContext});
var L=_.MfG(),I={};return _.H("thumbnail-hover-overlay-view-model",{el:Y,class:_.VD("ytThumbnailHoverOverlayViewModelHost",U,(I.ytThumbnailHoverOverlayViewModelHostForceHover=S,I)),"aria-label":function(){var V;return(V=_.b(p().rendererContext,_.Hj))==null?void 0:V.label},
role:function(){return _.aF(p().rendererContext)!==void 0?"button":void 0},
tabindex:function(){return _.aF(p().rendererContext)!==void 0?0:void 0},
"on:keypress":L},_.H("div",{class:_.VD("ytThumbnailHoverOverlayViewModelScrim",function(){a:switch(p().style){case "THUMBNAIL_HOVER_OVERLAY_STYLE_BUTTON":var V="ytThumbnailHoverOverlayViewModelStyleButton";break a;default:V="ytThumbnailHoverOverlayViewModelStyleCover"}return V})},_.H(_.n,{cond:function(){return p().icon},
then:function(V){return _.H(_.of,{data:V,alt:"",className:"ytThumbnailHoverOverlayViewModelIcon"})}}),_.H(_.n,{cond:function(){return p().text},
then:function(V){return _.H(_.i6,{text:V,className:"ytThumbnailHoverOverlayViewModelText"})}})))},"T");
Kt.idomCompat=!0;var AVj=_.$k(function(S){var p=S.data;return _.H(_.yP,{data:function(){return p==null?void 0:p().overlays}},{thumbnailHoverOverlayViewModel:Kt})},"U");
AVj.idomCompat=!0;var tZe={};var cVm=_.$k(function(S){var p=S.data;var U=S.image;var Y=S.state;var L=S.iconType;var I=S.overlays;var V=S.isOverlay;var W=_.$v();S=_.d(_.kj(!0,void 0,"sUzEZ"));var O=S.next().value,D=S.next().value,z=function(){return!!p().onTap},Q=_.os(L,"LIVE");
_.R8(function(){var K=p();requestAnimationFrame(function(){if(W.value===null)var G=!0;else{var X=W.value;G=K.badgeText;var Z=noN(K.size);G in tZe?X=tZe[G]:(X=X.clientWidth,tZe[G]=X);(G=X>Z)?W.value.style.display="none":W.value.style.visibility="visible"}D(G)})});
var J=function(){var K={};return K["yt-spec-avatar-shape__image"]=!0,K["yt-spec-avatar-shape__image--ads-app"]=p().type===1,K};
return _.H("yt-avatar-shape",null,_.H("div",{el:_.$X(yCE(z,{keydown:function(K){if(K.key==="Enter"){var G;(G=K.currentTarget)==null||G.click()}},
click:function(K){var G,X;return void((X=(G=p()).onTap)==null?void 0:X.call(G,K))}})),
class:function(){var K={"yt-spec-avatar-shape":!0,"yt-spec-avatar-shape__button":!0},G=p();K=(K[G.clusterLayoutConfig?jce(G.clusterLayoutConfig):rCq(G.size)]=!0,K["yt-spec-avatar-shape__button--tappable"]=z(),K);(G=p().avatarButtonCustomClassName)&&(K[G]=!0);return _.W7(K)},
"aria-label":function(){return z()?p().accessibilityText:""},
role:function(){return z()?"button":void 0},
tabindex:function(){return z()?0:void 0}},_.H("div",{class:function(){var K,G=p(),X=Y==null?void 0:Y(),Z=V==null?void 0:V(),l=!((K=G.decorations)==null||!K.includes(2)||G.size!=="medium"&&G.size!=="large"),a=G.size==="tiny"||G.size==="extra-small",N,m,A,q,TG={};
K=(TG["yt-spec-avatar-shape--live-ring"]=!!(((N=G.decorations)==null?0:N.includes(0))&&hnw(G.size)),TG["yt-spec-avatar-shape--stories-watched"]=l&&!(X==null||!X.storiesWatched),TG["yt-spec-avatar-shape--stories-unwatched"]=l&&!(X==null?0:X.storiesWatched),TG["yt-spec-avatar-shape--background-border"]=Rne(G.decorations)&&!a,TG["yt-spec-avatar-shape--background-border-thin"]=Rne(G.decorations)&&a,TG["yt-spec-avatar-shape__on-select-border"]=!((m=G.decorations)==null||!m.includes(4)),TG["yt-spec-avatar-shape__white-border"]=
!((A=G.decorations)==null||!A.includes(5)),TG["yt-spec-avatar-shape__white-border--white-border-thin"]=!!(((q=G.decorations)==null?0:q.includes(5))&&a),TG["yt-spec-avatar-shape--is-overlay"]=!!Z,TG);return _.W7(K)},
style:function(){a:{var K=p().clusterLayoutConfig;if(K){b:{var G=K.numAvatarsInCluster;var X=K.avatarIndex;if(X!==G-1){switch(K.clusterSize){case "small":K="32";break;case "medium":K="36";break;case "40":K="40";break;default:G=void 0;break b}G="https://www.gstatic.com/youtube/img/creator/video_collaborations/cluster_size_"+K+"x"+K+"_avatars_"+G+"_index_"+X+".svg"}else G=void 0}if(G){G=_.zw({"-webkit-mask-image":"url("+G+")","mask-image":"url("+G+")","--webkit-mask-size":"100%","--mask-size":"100%",
"-webkit-mask-repeat":"no-repeat","mask-repeat":"no-repeat"})();break a}}G=void 0}return G}},_.H("div",{class:function(){var K={};
var G=p();K=(K[G.clusterLayoutConfig?KHq(G.clusterLayoutConfig):blk(G.size)]=!0,K["yt-spec-avatar-shape--no-margin"]=Rne(p().decorations),K);return _.W7(K)}},_.H(_.of,{data:U,
alt:function(){return!z()&&p().accessibilityText?p().accessibilityText:""},
targetWidth:function(){return GkG(p().size)},
targetHeight:function(){return GkG(p().size)},
className:function(){return _.W7(J())}}),_.H(_.n,{cond:function(){var K;
return((K=p().decorations)==null?void 0:K.includes(0))&&hnw(p().size)},
then:function(){return _.H("div",{class:function(){var K={};K=(K["yt-spec-avatar-shape__live-badge"]=!0,K["yt-spec-avatar-shape__live-badge--badge-small"]=p().size==="small",K["yt-spec-avatar-shape__live-badge--badge-medium"]=p().size==="medium"||p().size==="48",K["yt-spec-avatar-shape__live-badge--badge-large"]=p().size==="large",K["yt-spec-avatar-shape__live-badge--badge-extra-large"]=p().size==="extra-large"||p().size==="extra-extra-large"||p().size==="giant",K);return _.W7(K)}},_.H(_.n,{cond:function(){return p().badgeText},
then:function(K){return _.H("div",{class:"yt-spec-avatar-shape__badge-text",el:W},K)}}),_.H(_.n,{cond:O,
then:function(){return _.H("div",{class:"yt-spec-avatar-shape__badge-icon"},_.H(_.QD,{icon:Q,size:function(){a:switch(p().size){case "extra-large":var K=16;break a;default:K=13}return K}}))}}))}}),_.H(_.n,{cond:function(){var K,G;
return((K=p().decorations)==null?void 0:K.includes(1))||((G=p().decorations)==null?void 0:G.includes(0))&&!hnw(p().size)},
then:function(){return _.H("div",{class:function(){var K=p(),G,X,Z={};var l=(Z["yt-spec-avatar-shape__live-dot"]=!((G=K.decorations)==null||!G.includes(0)||hnw(K.size)),Z["yt-spec-avatar-shape__new-content"]=!((X=K.decorations)==null||!X.includes(1)),Z);return _.W7(l)}})}}),_.H(_.n,{cond:function(){return!!I},
then:function(){return _.H("div",{class:function(){var K={};K=Object.assign((K["yt-spec-avatar-shape__image-overlays"]=!0,K),J());return _.W7(K)}},I==null?void 0:I())}})))))},"V");
cVm.idomCompat={callbacks:{overlays:!0}};_.bS=_.$k(function(S){function p(){U().endpoint&&_.wx(U().endpoint)}
var U=S.data;var Y=S.decorations;var L=S.avatarButtonCustomClassName;var I=S.isOverlay;var V=S.clusterLayoutConfig;return _.H("avatar-view-model",null,_.H(_.n,{cond:function(){return U().image},
then:function(W){return _.H(cVm,{data:function(){return XNe({data:U(),onTap:U().endpoint?p:void 0,decorations:Y==null?void 0:Y(),badgeText:void 0,accessibilityText:U().accessibilityText,avatarButtonCustomClassName:L==null?void 0:L(),clusterLayoutConfig:V==null?void 0:V()})},
image:W,iconType:"RADAR_LIVE",overlays:function(){return _.H(AVj,{data:U})},
isOverlay:I})}}))},"W");
_.bS.idomCompat=!0;_.jH=_.$k(function(S){var p=S.data;S=S.className;var U=_.$v(),Y=function(){return _.b(p().avatar,_.xO)},L=_.nS(function(){var I,V=p(),W=Y(),O=_.aF(p().rendererContext),D=(I=U.value)!=null?I:void 0,z;
if(W){D={data:V,avatar:W,onTap:O,element:D};I=D.data;V=D.avatar;W=D.onTap;O=D.element;D=D.commandController;W=W?ene(W,O,D):void 0;O=[];I.liveData&&O.push(0);var Q;D=(Q=I.liveData)==null?void 0:Q.liveBadgeText;Q=(z=_.b(I.rendererContext,_.Hj))==null?void 0:z.label;z=XNe({data:V,onTap:W,decorations:O,badgeText:D,accessibilityText:Q?Q:I.a11yLabel})}else z={size:"medium"};return z},void 0,"H8tk9d");
return _.H("yt-decorated-avatar-view-model",{class:_.VD("yt-decorated-avatar-view-model-wiz",S),el:U},_.H(_.n,{cond:function(){var I;return(I=Y())==null?void 0:I.image},
then:function(I){return _.H(cVm,{data:L,image:I,iconType:"RADAR_LIVE",overlays:function(){return _.H(AVj,{data:Y})}})}}))},"X");
_.jH.idomCompat=!0;_.ra=_.$k(function(S){var p=function(){var O;return Object.assign({},S.data(),(O=S.overrides)==null?void 0:O.call(S))},U=_.vH(),Y=function(){return U&&_.f6(p().rendererContext)};
_.C6(U,function(){return p().rendererContext});
var L=function(){var O=p().avatars,D,z;return(z=(D=(O==null?0:O[0])?_.b(O[0],_.xO):void 0)==null?void 0:D.avatarImageSize)!=null?z:"AVATAR_SIZE_UNKNOWN"},I=function(){return scw(p())},V=function(){if(p().layoutType==="AVATAR_STACK_LAYOUT_CLUSTER")var O=void 0;
else if((O=S.decorations)==null?0:O.call(S))O=S.decorations();else{O=p();var D=0;O.avatars&&(D+=O.avatars.length);O.decoratedText&&(D+=1);O=D>1?[3]:[]}return O},W={};
return _.H("yt-avatar-stack-view-model",{el:U,class:_.VD("yt-avatar-stack-view-model-wiz",S.className,(W["yt-avatar-stack-view-model-wiz--tappable"]=Y,W["yt-avatar-stack-view-model-wiz--is-overlay"]=S.isOverlay,W["yt-avatar-stack-view-model-wiz--medium-text"]=S.useMediumText,W)),tabindex:function(){return Y()?0:void 0},
role:function(){return Y()?"link":void 0},
"aria-label":function(){var O,D;return(D=(O=_.b(p().rendererContext,_.Hj))==null?void 0:O.label)!=null?D:""}},_.H(_.n,{cond:function(){var O;
return p().avatars&&!((O=S.hideAvatar)==null?0:O.call(S))},
then:function(){return _.H("div",{class:"yt-avatar-stack-view-model-wiz__avatars"},_.H(_.n,{cond:function(){return p().decoratedText},
then:function(O){var D={};return _.H("div",{class:_.VD("yt-avatar-stack-view-model-wiz__text-container",(D["yt-avatar-stack-view-model-wiz__text-container--thin-border"]=function(){return L()==="AVATAR_SIZE_XXS"||L()==="AVATAR_SIZE_XS"},D["yt-avatar-stack-view-model-wiz__text-container--thin-border-overlay"]=function(){var z;
return((z=S.isOverlay)==null?void 0:z.call(S))&&(L()==="AVATAR_SIZE_XXS"||L()==="AVATAR_SIZE_XS")},D)),
style:_.zw({width:function(){return I().avatarSizeInPx+"px"},
height:function(){return I().avatarSizeInPx+"px"}})},_.H(_.i6,{text:O,
className:"yt-avatar-stack-view-model-wiz__avatar-decorated-text"}))}}),_.H("div",{style:function(){return _.zw(I().avatarStackStyle)()},
class:function(){return I().avatarStackClass}},_.H(_.yP,{data:function(){return I().avatars.reverse()}},{avatarViewModel:function(O,D){return _.H("div",{style:function(){var z,Q;
return _.zw((Q=(z=I()).avatarStyle)==null?void 0:Q.call(z,D()))()},
class:function(){return I().avatarClass}},_.H(_.bS,{data:O.data,
decorations:V,avatarButtonCustomClassName:function(){return I().avatarButtonCustomClassName},
isOverlay:S.isOverlay,clusterLayoutConfig:function(){var z,Q;return(Q=(z=I()).clusterLayoutConfig)==null?void 0:Q.call(z,D())}}))},
decoratedAvatarViewModel:function(O,D){return _.H("div",{style:function(){var z,Q;return _.zw((Q=(z=I()).avatarStyle)==null?void 0:Q.call(z,D()))()},
class:function(){return I().avatarClass}},_.H(_.jH,{data:O.data}))}})))}}),_.H(_.n,{cond:function(){return p().text},
then:function(O){return _.H(_.i6,{text:O,className:"yt-avatar-stack-view-model-wiz__avatar-stack-text",linkInheritColor:!0})}}))},"Y");
_.ra.idomCompat=!0;_.qm(_.$k(function(S){var p=S.data;var U=S.thumbnailSize;return _.H("thumbnail-overlay-avatar-stack-view-model",{class:"ytThumbnailOverlayAvatarStackViewModelHost"},_.H("div",{class:_.VD("ytThumbnailOverlayAvatarStackViewModelavatarStack",function(){return goE(U==null?void 0:U())})},_.H(_.yP,{data:function(){return p().avatarStack}},{avatarStackViewModel:function(Y){return _.H(_.ra,{data:Y.data,
decorations:[5]})}})))},"Z"),"thumbnail-overlay-avatar-stack-view-model",{props:{data:_.x2,
thumbnailSize:_.x2}});var Sae=_.$k(function(S){S=_.vT(S,{hidden:!1});var p=S.data;return _.H("yt-thumbnail-overlay-title-view-model",{class:"yt-thumbnail-overlay-title-view-model",hidden:S.hidden},_.H(_.i6,{text:function(){return p().title},
className:"yt-thumbnail-overlay-title-view-model__title"}),_.H(_.n,{cond:function(){return p().subtitle},
then:function(){return _.H(_.i6,{text:function(){return p().subtitle},
className:"yt-thumbnail-overlay-title-view-model__subtitle"})}}))},"$");
Sae.idomCompat=!0;_.qm(Sae,"yt-thumbnail-overlay-title-view-model",{props:{data:_.x2,hidden:_.x2}});var ppE=_.$k(function(S){S=_.vT(S,{isClip:!1});var p=S.data,U=S.thumbnailSize,Y={};return _.H("yt-thumbnail-overlay-badge-view-model",{class:_.VD("yt-thumbnail-overlay-badge-view-model-wiz",function(){a:switch(p().position){case "THUMBNAIL_OVERLAY_BADGE_POSITION_TOP_START":var L="yt-thumbnail-overlay-badge-view-model-wiz--top-start";break a;default:L="yt-thumbnail-overlay-badge-view-model-wiz--bottom-end"}return L},function(){return uRN(U==null?void 0:U())},(Y["yt-thumbnail-overlay-badge-view-model-wiz--clip"]=
S.isClip,Y))},_.H(_.yP,{data:function(){return p().thumbnailBadges}},{thumbnailBadgeViewModel:function(L){return _.H(B4Q,{data:L.data,
class:"yt-thumbnail-overlay-badge-view-model-wiz__badge"})}}))},"aa");
ppE.idomCompat=!0;_.qm(ppE,"yt-thumbnail-overlay-badge-view-model",{props:{data:_.x2,thumbnailSize:_.x2,isClip:_.x2}});_.cH(wNR);_.Ls(wNR,"yt-page-indicator-view-model",{propNames:["data"]});var GQ=function(){var S=_.w.apply(this,arguments)||this;S.eventSink=function(){return S};
S.disableInteraction=!1;S.noRoundedCorners=!1;S.isPreviewLoading=!1;S.isOriginalAspectRatio=!1;S.computedObjectFit=!1;S.actionMap={"yt-miniplayer-endpoint-changed":"checkMiniplayer_"};return S};
_.r(GQ,_.w);_.M=GQ.prototype;
_.M.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:_.y("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"}}};
_.M.onImageLoaded=function(){this.loaded=!0};
_.M.onImageUnloaded=function(){this.loaded=!1};
_.M.computeRichThumbnail=function(S,p,U,Y){if(S&&p&&!Y&&!_.y("disable_moving_thumbs_handling")&&!U)return p};
_.M.computeImageWidth=function(S,p){return p||9999};
_.M.computeIsOriginalAspectRatio=function(S){return S};
_.M.computeIsLive=function(S){if(S==null?0:S.badges)for(var p=0;p<S.badges.length;p++){var U=S.badges[p];if(U.metadataBadgeRenderer&&U.metadataBadgeRenderer.style==="BADGE_STYLE_TYPE_LIVE_NOW")return!0}else if(S==null?0:S.thumbnailOverlays)for(p=0;p<S.thumbnailOverlays.length;p++)if(U=S.thumbnailOverlays[p],U.thumbnailOverlayTimeStatusRenderer&&U.thumbnailOverlayTimeStatusRenderer.style==="LIVE")return!0;return!1};
_.M.computeObjectFit=function(S,p){return p||(S?"CONTAIN":"")};
_.M.computeNavigationEndpoint=function(S,p,U){return S?p:U};
_.M.computeHasClip=function(S){S=_.d(S||[]);for(var p=S.next();!p.done;p=S.next())if(p.value.thumbnailOverlayPinkingRenderer)return!0;return!1};
_.M.computeOverlayColor=function(S){var p;return(S==null?0:(p=S.darkColorPalette)==null?0:p.section2Color)?S.darkColorPalette.section2Color:S==null?void 0:S.sampledThumbnailColor};
_.$u.Object.defineProperties(GQ.prototype,{isPreviewDisabled:{configurable:!0,enumerable:!0,get:function(){return!this.inlinePreviewIsEnabled}},
thumbnailSize:{configurable:!0,enumerable:!0,get:function(){return w9w(this.width)}}});
GQ.prototype.onImageUnloaded=GQ.prototype.onImageUnloaded;GQ.prototype.onImageLoaded=GQ.prototype.onImageLoaded;_.x([_.F(_.Aj.YtActionHandlerBehavior),_.E("design:type",Object)],GQ.prototype,"ytActionHandlerBehavior",void 0);_.x([_.F(_.qH.YtRendererstamperBehavior),_.E("design:type",Object)],GQ.prototype,"ytRendererstamperBehavior",void 0);_.x([_.F(weQ),_.E("design:type",Object)],GQ.prototype,"ytdThumbnailBehavior",void 0);
_.x([_.F(_.eL.YtComponentBehavior),_.E("design:type",Object)],GQ.prototype,"componentBehavior",void 0);_.x([_.F(_.Xh),_.E("design:type",Object)],GQ.prototype,"ytdReduxBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],GQ.prototype,"data",void 0);_.x([_.g({value:!1}),_.E("design:type",Boolean)],GQ.prototype,"circular",void 0);
_.x([_.g({computed:"computeRichThumbnail(finalHoveredState_, data.richThumbnail, isPreviewLoading, isPreviewDisabled)"}),_.E("design:type",Object)],GQ.prototype,"richThumbnail",void 0);_.x([_.g({reflectToAttribute:!0,computed:"computeHasClip(data.thumbnailOverlays)"}),_.E("design:type",Boolean)],GQ.prototype,"hasClip",void 0);_.x([_.g(),_.E("design:type",Object)],GQ.prototype,"eventSink",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Boolean)],GQ.prototype,"queued",void 0);
_.x([_.g({value:!1}),_.E("design:type",Boolean)],GQ.prototype,"richGridThumbnail",void 0);_.x([_.g({value:!1}),_.E("design:type",Boolean)],GQ.prototype,"useExpandableTooltip",void 0);_.x([_.g({value:!1}),_.E("design:type",Boolean)],GQ.prototype,"useUntranslatedNavigationEndpoint",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],GQ.prototype,"disableInteraction",void 0);
_.x([_.g({computed:"computeNavigationEndpoint(useUntranslatedNavigationEndpoint, data.untranslatedNavigationEndpoint, data.navigationEndpoint)"}),_.E("design:type",Object)],GQ.prototype,"computedNavigationEndpoint",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Boolean)],GQ.prototype,"nowPlayingEqualizerOnly",void 0);_.x([_.g({value:!1,reflectToAttribute:!0}),_.E("design:type",Boolean)],GQ.prototype,"hidePlaybackStatus",void 0);
_.x([_.g({reflectToAttribute:!0}),_.E("design:type",String)],GQ.prototype,"objectFit",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],GQ.prototype,"noRoundedCorners",void 0);_.x([_.g({value:!1}),_.E("design:type",Boolean)],GQ.prototype,"watchFeedThumbnail",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],GQ.prototype,"isPreviewLoading",void 0);
_.x([_.g({reflectToAttribute:!0,computed:"computeIsOriginalAspectRatio(data.thumbnail.isOriginalAspectRatio)"}),_.E("design:type",Object)],GQ.prototype,"isOriginalAspectRatio",void 0);_.x([_.g({reflectToAttribute:!0,computed:"computeObjectFit(isOriginalAspectRatio, objectFit)"}),_.E("design:type",Object)],GQ.prototype,"computedObjectFit",void 0);_.x([_.g({reflectToAttribute:!0,computed:"computeIsLive(data)"}),_.E("design:type",Boolean)],GQ.prototype,"isLiveVideo",void 0);
_.x([_.g({value:!1,reflectToAttribute:!0}),_.E("design:type",Boolean)],GQ.prototype,"loaded",void 0);_.x([_.g({computed:"computeOverlayColor(data.thumbnail)"}),_.E("design:type",Object)],GQ.prototype,"overlayColor",void 0);_.x([_.g({selector:_.z2d}),_.E("design:type",Boolean)],GQ.prototype,"inlinePreviewIsEnabled",void 0);_.x([_.g(),_.E("design:type",Number)],GQ.prototype,"width",void 0);
_.x([_.e("inlinePreviewIsEnabled"),_.E("design:type",Boolean),_.E("design:paramtypes",[])],GQ.prototype,"isPreviewDisabled",null);_.x([_.e("width"),_.E("design:type",String),_.E("design:paramtypes",[])],GQ.prototype,"thumbnailSize",null);_.x([_.Vd("image-loaded"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],GQ.prototype,"onImageLoaded",null);
_.x([_.Vd("image-unloaded"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],GQ.prototype,"onImageUnloaded",null);GQ=_.x([_.f({disableElementRegistration:!0,is:"ytd-thumbnail"})],GQ);
var UEl=_.pz()(GQ,"ytd-thumbnail",function(){if(i5I===void 0){var S=document.createElement("template");_.h(S,'\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');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);i5I=S}S=i5I;return S},{callbackProps:["onClick"],
allowedProps:"data disableInteraction noRoundedCorners objectFit useExpandableTooltip useUntranslatedNavigationEndpoint width circular watchFeedThumbnail queued".split(" "),allowedPropsFromBehaviors:"height bottomSidePanel size disableRounding disableNowPlaying disableTooltips useHoveredProperty hovered addBackground nowPlaying isVideoPlaying".split(" "),mode:2});var C7d=function(S){var p=this;this.inlinePreviewIsActive=this.inlinePreviewIsEnabledForUser=!1;this.unsubscribeFromInlinePreviewIsEnabled=function(){};
this.JSC$12812_unsubscribeFromInlinePreviewIsActive=function(){};
this.videoPreviewJobId=0;this.JSC$12812_touched=this.previewTriggered=!1;this.onMouseMoveFn=function(U){YaQ(p,U)};
this.onLockupMouseLeaveFn=function(U){U=U.relatedTarget;var Y,L;((Y=document.getElementsByTagName("ytd-video-preview"))==null?0:(L=Y.item(0))==null?0:L.contains(U))||(p.terminateVideoPreview(),hQ(p))};
this.onThumbnailMouseDownFn=function(){p.terminateVideoPreview();hQ(p)};
this.onTouchStart=function(){p.JSC$12812_touched=!0};
this.mediaRenderer=S.mediaRenderer;this.thumbnailElement=S.thumbnailElement;this.lockupElement=S.lockupElement;this.videoPreviewOptsInput=S.videoPreviewOpts;Lbl(this);Rm(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)):
_.eP(Error("Ah")):_.eP(Error("Bh")):Mge(this)},cI=function(S){Mge(S);
var p;(p=S.lockupElement)==null||p.removeEventListener("mouseenter",S.onMouseMoveFn);var U;(U=S.lockupElement)==null||U.removeEventListener("mouseleave",S.onLockupMouseLeaveFn);var Y;(Y=S.lockupElement)==null||Y.removeEventListener("touchstart",S.onTouchStart);var L;(L=S.thumbnailElement)==null||L.removeEventListener("mousedown",S.onThumbnailMouseDownFn);hQ(S)},Lbl=function(S){S.inlinePreviewIsEnabledForUser=_.vJ().getState().ui.inlinePreviewIsEnabled;
S.unsubscribeFromInlinePreviewIsEnabled=_.Wt(_.vJ(),_.z2d,function(p){(S.inlinePreviewIsEnabledForUser=p)||hQ(S)});
S.JSC$12812_unsubscribeFromInlinePreviewIsActive=_.Wt(_.vJ(),_.Dcw,function(p){(S.inlinePreviewIsActive=p)||hQ(S)})},Mge=function(S){S.unsubscribeFromInlinePreviewIsEnabled();
S.unsubscribeFromInlinePreviewIsEnabled=function(){};
S.JSC$12812_unsubscribeFromInlinePreviewIsActive();S.JSC$12812_unsubscribeFromInlinePreviewIsActive=function(){}},YaQ=function(S,p){p.buttons>0||(p=_.pA("kevlar_lockup_hover_delay",-1),S.JSC$12812_touched&&p>=0?(_.PA.cancelJob(S.videoPreviewJobId),S.videoPreviewJobId=_.ps(_.PA,function(){ITc(S)},p),S.JSC$12812_touched=!1):ITc(S))},dEm=function(S){S.videoPreviewJobId=_.ps(_.PA,function(){var p,U,Y,L;
return _.T(function(I){if(I.nextAddress==1){if(!Rm(S))return I.return();p=S.getVideoPreviewOpts();if(!p)return I.return();p.isAutoplay=!0;return(Y=(U=_.pp(S.mediaRenderer.hostElement,"yt-open-video-preview-action",[p]))&&U[0])?_.k(I,U[0],3):I.jumpTo(2)}I.nextAddress!=2&&(Y=I.yieldResult===1);Y&&azu((L=S.mediaRenderer)==null?void 0:L.data);_.OV(I)})})},ITc=function(S){!S.previewTriggered&&Rm(S)&&(S.inlinePreviewIsActive&&S.terminateVideoPreview(),S.previewTriggered=!0,S.mediaRenderer.isInlinePreviewTriggered=
!0,_.PA.cancelJob(S.videoPreviewJobId),S.videoPreviewJobId=_.ps(_.PA,function(){var p,U,Y,L;
return _.T(function(I){if(I.nextAddress==1){if(!Rm(S))return I.return();p=S.getVideoPreviewOpts();return p?(Y=(U=_.pp(S.mediaRenderer.hostElement,"yt-open-video-preview-action",[p]))&&U[0])?_.k(I,U[0],3):I.jumpTo(2):I.return()}I.nextAddress!=2&&(Y=I.yieldResult===1);Y&&azu((L=S.mediaRenderer)==null?void 0:L.data);_.OV(I)})}))};
C7d.prototype.getVideoPreviewOpts=function(){if(this.mediaRenderer.data){var S,p;if((p=(S=this.videoPreviewOptsInput)==null?void 0:S.videoPreviewData)!=null)S=p;else if(S=this.mediaRenderer.data)if(lzG(S))S={inlinePlaybackEndpoint:_.sW(S.inlinePlayerData.onVisible),navigationEndpoint:_.sW(S.onTap),thumbnail:"image"in S?S.image:S.thumbnail,thumbnailOverlays:void 0,accessibilityText:fzu(S)};else if("multipleInlinePlaybackEndpoint"in S){var U=_.b(_.b(S.multipleInlinePlaybackEndpoint,$Ow),iTt);if(U!=
null&&U.playerDescriptors){p=[];U=_.d(U.playerDescriptors);for(var Y=U.next();!Y.done;Y=U.next())Y=Y.value,p.push({inlinePlaybackEndpoint:Y.inlinePlaybackEndpoint,navigationEndpoint:Y.navigationEndpoint,thumbnail:Y.thumbnail,thumbnailOverlays:Y.thumbnailOverlays,accessibilityText:fzu(S)});S=p}else S=void 0}else S={inlinePlaybackEndpoint:S.inlinePlaybackEndpoint,navigationEndpoint:S.navigationEndpoint,thumbnail:S.thumbnail,thumbnailOverlays:S.thumbnailOverlays,accessibilityText:fzu(S)};else S=void 0;
return Object.assign({},{mediaRenderer:this.mediaRenderer.hostElement,thumbnail:this.thumbnailElement,videoPreviewData:S,showPlayerControls:!0},this.videoPreviewOptsInput)}};
var Rm=function(S){var p;if(p=S.inlinePreviewIsEnabledForUser)p=(S=S.mediaRenderer.data)?"inlinePlaybackEndpoint"in S&&S.inlinePlaybackEndpoint||lzG(S)&&S.inlinePlayerData||"multipleInlinePlaybackEndpoint"in S&&S.multipleInlinePlaybackEndpoint?!0:!1:!1;return p};
C7d.prototype.terminateVideoPreview=function(){_.St(this.mediaRenderer.hostElement,"yt-terminate-video-preview-action")};
var hQ=function(S){_.PA.cancelJob(S.videoPreviewJobId);S.inlinePreviewIsActive=!1;S.previewTriggered=!1;S.mediaRenderer.isInlinePreviewTriggered=!1};var Vgt=_.x1(["#"]),FA=function(){var S=_.w.apply(this,arguments)||this;S.isDisabled=!1;return S};
_.r(FA,_.w);_.M=FA.prototype;_.M.configureRendererStamper=function(){return{"data.menu":da,"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"}}}};
_.M.attached=function(){this.updateInlinePreviewHoverListeners()};
_.M.detached=function(){this.clearInlinePreviewHoverListeners()};
_.M.getMetadata=function(S){var p=[];if(S.metadataText&&Object.keys(S.metadataText).length>0){var U=this.ytRendererBehavior.getSimpleString(S.metadataText);S.upcomingEventData&&S.upcomingEventData.upcomingEventText&&(U=_.Ze(U,Number(S.upcomingEventData.startTime)));p.push(U)}else S.shortViewCountText&&p.push(this.ytRendererBehavior.getSimpleString(S.shortViewCountText)),S.publishedTimeText&&p.push(this.ytRendererBehavior.getSimpleString(S.publishedTimeText)),S.upcomingEventData&&S.upcomingEventData.upcomingEventText&&
(U=this.ytRendererBehavior.getSimpleString(S.upcomingEventData.upcomingEventText),p.push(_.Ze(U,Number(S.upcomingEventData.startTime))));return p};
_.M.calculateBylineText=function(S){return S.shortBylineText?S.shortBylineText:S.bylineText?S.bylineText:null};
_.M.calculateIsDisabled=function(S){return!!S.isDisabled};
_.M.computeHrefWithDefault=function(S){return this.ytComponentBehavior.computeHref_(S)||_.rc(Vgt)};
_.M.onDetailsTap=function(S){var p=this.data&&this.data.navigationEndpoint;p&&!_.Eo(_.E1(S)||[],this.hostElement,["A".toString(),"BUTTON".toString()])&&(_.y("kevlar_grid_video_renderer_killswitch")?_.cv(this.hostElement,"yt-navigate",{endpoint:p}):this.ytComponentBehavior.resolveCommand(p))};
_.M.dataChanged=function(){this.updateInlinePreviewHoverListeners()};
_.M.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$12817_inlinePreviewHoverListener=EK({mediaRenderer:this,lockupElement:_.tB(this.hostElement).querySelector("#dismissible"),thumbnailElement:_.tB(this.hostElement).querySelector("ytd-thumbnail")})};
_.M.clearInlinePreviewHoverListeners=function(){var S;(S=this.JSC$12817_inlinePreviewHoverListener)==null||cI(S)};
_.M.computeThumbnailWidth=function(S,p){return p&&p>0?p:S?360:210};
_.M.computeShowChannelThumbnail=function(S,p){var U;return p&&!!(S==null?0:(U=S.channelThumbnailSupportedRenderers)==null?0:U.channelThumbnailWithLinkRenderer)};
_.$u.Object.defineProperties(FA.prototype,{isHovered:{configurable:!0,enumerable:!0,get:function(){var S;return!((S=this.JSC$12817_inlinePreviewHoverListener)==null?0:Rm(S))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
FA.prototype.dataChanged=FA.prototype.dataChanged;_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],FA.prototype,"ytRendererBehavior",void 0);_.x([_.F(_.eL.YtComponentBehavior),_.E("design:type",Object)],FA.prototype,"ytComponentBehavior",void 0);_.x([_.F(_.qH.YtRendererstamperBehavior),_.E("design:type",Object)],FA.prototype,"ytRendererstamperBehavior",void 0);_.x([_.F(_.Zh),_.E("design:type",Object)],FA.prototype,"ytdDismissibleItemBehavior",void 0);
_.x([_.F(_.ak),_.E("design:type",Object)],FA.prototype,"ytdLockupBehavior",void 0);_.x([_.F(_.Xh),_.E("design:type",Object)],FA.prototype,"ytdReduxBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],FA.prototype,"data",void 0);_.x([_.g(),_.E("design:type",Boolean)],FA.prototype,"noEndpoints",void 0);_.x([_.g({computed:"calculateBylineText(data)"}),_.E("design:type",Object)],FA.prototype,"bylineText",void 0);
_.x([_.g({reflectToAttribute:!0,value:!1}),_.E("design:type",Boolean)],FA.prototype,"isSearch",void 0);_.x([_.g({reflectToAttribute:!0,value:!1}),_.E("design:type",Boolean)],FA.prototype,"isDownloading",void 0);_.x([_.g({reflectToAttribute:!0,value:0}),_.E("design:type",Number)],FA.prototype,"width",void 0);_.x([_.g({reflectToAttribute:!0,computed:"calculateIsDisabled(data)"}),_.E("design:type",Object)],FA.prototype,"isDisabled",void 0);
_.x([_.T4("data"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],FA.prototype,"dataChanged",null);_.x([_.e("lockupIsHovered"),_.E("design:type",Boolean),_.E("design:paramtypes",[])],FA.prototype,"isHovered",null);FA=_.x([_.f({is:"ytd-grid-video-renderer",disableElementRegistration:!0})],FA);
_.C(FA,"ytd-grid-video-renderer",function(){if(uow!==void 0)return uow;var S=document.createElement("template");_.h(S,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-grid-video-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" class="style-scope ytd-grid-video-renderer"><ytd-thumbnail data="[[data]]" hovered="[[isHovered]]" use-expandable-tooltip="[[useExpandableTooltip]]" use-hovered-property="" width="[[computeThumbnailWidth(isSearch, width)]]" class="style-scope ytd-grid-video-renderer"></ytd-thumbnail><div id="details" on-tap="onDetailsTap" class="style-scope ytd-grid-video-renderer"><a id="channel-thumbnail" hidden="[[!computeShowChannelThumbnail(data, isSearch)]]" aria-label$="[[data.channelThumbnailSupportedRenderers.channelThumbnailWithLinkRenderer.accessibility.accessibilityData.label]]" href$="[[computeHref_(data.channelThumbnailSupportedRenderers.channelThumbnailWithLinkRenderer.navigationEndpoint)]]" class="style-scope ytd-grid-video-renderer"><yt-img-shadow id="avatar" thumbnail="[[data.channelThumbnailSupportedRenderers.channelThumbnailWithLinkRenderer.thumbnail]]" width="36" class="style-scope ytd-grid-video-renderer"></yt-img-shadow></a><div id="text-metadata" class="style-scope ytd-grid-video-renderer"><div id="meta" class="style-scope ytd-grid-video-renderer"><h3 class="style-scope ytd-grid-video-renderer"><ytd-badge-supported-renderer hidden="[[!data.topStandaloneBadge]]" top-standalone-badge="[[data.topStandaloneBadge]]" class="style-scope ytd-grid-video-renderer"></ytd-badge-supported-renderer><a id="video-title" class="yt-simple-endpoint style-scope ytd-grid-video-renderer" href$="[[computeHrefWithDefault(data.navigationEndpoint)]]" title$="[[getSimpleString(data.title)]]" aria-label$="[[data.title.accessibility.accessibilityData.label]]" data="[[data.navigationEndpoint]]">[[getSimpleString(data.title)]]</a></h3><div id="metadata-container" class="grid style-scope ytd-grid-video-renderer" meta-block=""><div id="metadata" class="style-scope ytd-grid-video-renderer"><div id="byline-container" hidden="[[!bylineText]]" class="style-scope ytd-grid-video-renderer"><ytd-channel-name id="channel-name" badges="[[data.ownerBadges]]" channel-name="[[bylineText]]" no-endpoints="[[noEndpoints]]" class="style-scope ytd-grid-video-renderer"></ytd-channel-name></div><div id="metadata-line" class="style-scope ytd-grid-video-renderer"><template is="dom-repeat" items="[[getMetadata(data)]]" strip-whitespace="" class="style-scope ytd-grid-video-renderer"><span class="style-scope ytd-grid-video-renderer">[[item]]</span></template></div></div><div id="additional-metadata-line" class="style-scope ytd-grid-video-renderer"><template is="dom-repeat" items="[[data.additionalMetadatas]]" strip-whitespace="" class="style-scope ytd-grid-video-renderer"><span class="style-scope ytd-grid-video-renderer">[[getSimpleString(item)]]</span></template></div></div></div><ytd-badge-supported-renderer id="video-badges" badges="[[data.badges]]" hidden="[[!data.badges]]" class="style-scope ytd-grid-video-renderer"></ytd-badge-supported-renderer></div><div id="menu" class="style-scope ytd-grid-video-renderer"></div></div><div id="buttons" class="style-scope ytd-grid-video-renderer"></div></div><div id="dismissed" class="style-scope ytd-grid-video-renderer"><div id="dismissed-content" class="style-scope ytd-grid-video-renderer"></div></div><yt-interaction id="interaction" class="extended style-scope ytd-grid-video-renderer"></yt-interaction>');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);return uow=S},{mode:_.UW("kevlar_poly_si_batch_j047")?1:2});var TCm;var XA=function(){var S=_.w.apply(this,arguments)||this;S.roundedContainer=!0;S.skipRoundingTop=!1;S.disableTopPadding=!1;S.amsterdamEnabled=_.y("enable_desktop_amsterdam_info_panels");return S};
_.r(XA,_.w);XA.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
XA.prototype.onClick=function(S){var p,U=(p=this.data)==null?void 0:p.sourceEndpoint;!_.Eo(_.E1(S),this.hostElement,["A".toString()])&&U&&_.cv(this.hostElement,"yt-navigate",{endpoint:U})};
_.$u.Object.defineProperties(XA.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 S;return!((S=this.data)==null||!S.menu)}},
truncateParagraphs:{configurable:!0,enumerable:!0,get:function(){var S;return!((S=this.data)==null||!S.truncateParagraphs)}},
paragraphMaxLines:{configurable:!0,enumerable:!0,get:function(){var S,p;return(p=(S=this.data)==null?void 0:S.paragraphMaxLines)!=null?p:3}},
background:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.background?this.data.background.replace("INFO_PANEL_CONTENT_BACKGROUND_",""):""}}});
_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],XA.prototype,"ytRendererBehavior",void 0);_.x([_.F(_.qH.YtRendererstamperBehavior),_.E("design:type",Object)],XA.prototype,"ytRendererstamperBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],XA.prototype,"data",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],XA.prototype,"showVerticalDividers",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],XA.prototype,"roundedContainer",void 0);
_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],XA.prototype,"skipRoundingTop",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],XA.prototype,"disableTopPadding",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Boolean)],XA.prototype,"amsterdamEnabled",void 0);_.x([_.e("data"),_.E("design:type",Object),_.E("design:paramtypes",[])],XA.prototype,"showMetadataAtTop",null);
_.x([_.e("data"),_.E("design:type",Object),_.E("design:paramtypes",[])],XA.prototype,"showMetadataBelowTitle",null);_.x([_.g({reflectToAttribute:!0}),_.e("data.menu"),_.E("design:type",Object),_.E("design:paramtypes",[])],XA.prototype,"hasMenu",null);_.x([_.g({reflectToAttribute:!0}),_.e("data.truncateParagraphs"),_.E("design:type",Object),_.E("design:paramtypes",[])],XA.prototype,"truncateParagraphs",null);
_.x([_.g({reflectToAttribute:!0}),_.e("data.paragraphMaxLines"),_.E("design:type",Number),_.E("design:paramtypes",[])],XA.prototype,"paragraphMaxLines",null);_.x([_.g({type:_.y("kevlar_property_type_migration_killswitch")?String:void 0,reflectToAttribute:!0}),_.e("data.background"),_.E("design:type",Object),_.E("design:paramtypes",[])],XA.prototype,"background",null);XA=_.x([_.f({is:"ytd-info-panel-content-renderer",disableElementRegistration:!0})],XA);
_.C(XA,"ytd-info-panel-content-renderer",function(){if(TCm!==void 0)return TCm;var S=document.createElement("template");_.h(S,'\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');
S.content.insertBefore(_.t().content.cloneNode(!0),S.content.firstChild);return TCm=S},{mode:_.UW("kevlar_poly_si_batch_j076")?1:2});var Wbe;var OOc;var ktQ;var HOm;var Ph=function(){return _.w.apply(this,arguments)||this};
_.r(Ph,_.w);Ph.prototype.computeStyle=function(S){return S};
_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],Ph.prototype,"ytRendererBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],Ph.prototype,"data",void 0);_.x([_.g({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.E("design:type",String)],Ph.prototype,"style_",void 0);Ph=_.x([_.FB({is:"yt-channel-thumbnail-with-link-renderer",disableElementRegistration:!0})],Ph);
_.C(Ph,"yt-channel-thumbnail-with-link-renderer",function(){if(HOm===void 0){var S=document.createElement("template");_.h(S,'\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');
S.content.insertBefore(_.t().content.cloneNode(!0),S.content.firstChild);var p=S.content,U=p.insertBefore;ktQ===void 0&&(ktQ=document.createElement("template"));var Y=ktQ;U.call(p,Y.content.cloneNode(!0),S.content.firstChild);HOm=S}S=HOm;return S},{mode:2});var Zb=function(){var S=_.w.apply(this,arguments)||this;S.modernTypography=_.y("web_modern_typography");return S};
_.r(Zb,_.w);Zb.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"}}}};
Zb.prototype.computeTitleStyle=function(S){return S||null};
Zb.prototype.computeAvatarStyle=function(S){return S||null};
Zb.prototype.computeShowNavigationButton=function(S,p){return!(S==null||!S.navigationButton||p)};
_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],Zb.prototype,"ytRendererBehavior",void 0);_.x([_.F(_.qH.YtRendererstamperBehavior),_.E("design:type",Object)],Zb.prototype,"ytRendererstamperBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],Zb.prototype,"data",void 0);_.x([_.g({reflectToAttribute:!0,computed:"computeTitleStyle(data.titleStyle.style)"}),_.E("design:type",String)],Zb.prototype,"titleStyle",void 0);
_.x([_.g({reflectToAttribute:!0,computed:"computeAvatarStyle(data.channelThumbnail.channelThumbnailWithLinkRenderer.style)"}),_.E("design:type",String)],Zb.prototype,"avatarStyle",void 0);_.x([_.g(),_.E("design:type",Boolean)],Zb.prototype,"hideNavigationButton",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Boolean)],Zb.prototype,"isModernSd",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],Zb.prototype,"modernTypography",void 0);
Zb=_.x([_.f({is:"ytd-rich-list-header-renderer",disableElementRegistration:!0})],Zb);
_.C(Zb,"ytd-rich-list-header-renderer",function(){if(OOc!==void 0)return OOc;var S=document.createElement("template");_.h(S,'\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');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);return OOc=S},{mode:_.UW("kevlar_poly_si_batch_j058")?1:2});var sL=function(){return _.w.apply(this,arguments)||this};
_.r(sL,_.w);sL.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]]"}}}}}};
_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],sL.prototype,"ytRendererBehavior",void 0);_.x([_.F(_.qH.YtRendererstamperBehavior),_.E("design:type",Object)],sL.prototype,"ytRendererstamperBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],sL.prototype,"data",void 0);_.x([_.g({value:!1}),_.E("design:type",Boolean)],sL.prototype,"isSearch",void 0);sL=_.x([_.f({is:"ytd-preview-card-renderer",disableElementRegistration:!0})],sL);
_.C(sL,"ytd-preview-card-renderer",function(){if(Wbe!==void 0)return Wbe;var S=document.createElement("template");_.h(S,'\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');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);return Wbe=S},{mode:1});var DEt;var eH=function(){return _.w.apply(this,arguments)||this};
_.r(eH,_.w);eH.prototype.configureRendererStamper=function(){return{"data.menu":da}};
eH.prototype.dataChanged=function(){var S=this.get("colorExtractionPalette.section1Color",this.data);S=_.s1(S);_.Ms(this.hostElement,{"--ytd-channel-recommendation-card-avatar-overlay-color":S})};
eH.prototype.computeCardStyle=function(S){return this.get("style.value",S)||null};
eH.prototype.dataChanged=eH.prototype.dataChanged;_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],eH.prototype,"ytRendererBehavior",void 0);_.x([_.F(_.qH.YtRendererstamperBehavior),_.E("design:type",Object)],eH.prototype,"ytRendererstamperBehavior",void 0);_.x([_.F(_.Zh),_.E("design:type",Object)],eH.prototype,"ytdDismissibleItemBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],eH.prototype,"data",void 0);
_.x([_.g({reflectToAttribute:!0,computed:"computeCardStyle(data)"}),_.E("design:type",String)],eH.prototype,"cardStyle",void 0);_.x([_.T4("data"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],eH.prototype,"dataChanged",null);eH=_.x([_.f({disableElementRegistration:!0,is:"ytd-compact-channel-recommendation-card-renderer"})],eH);
_.C(eH,"ytd-compact-channel-recommendation-card-renderer",function(){if(DEt!==void 0)return DEt;var S=document.createElement("template");_.h(S,'\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');
S.content.insertBefore(_.t().content.cloneNode(!0),S.content.firstChild);return DEt=S},{mode:1});var z9I;var QLq;var uS=function(){var S=_.w.apply(this,arguments)||this;S.alignAuto=!1;S.collapsed=!0;S.isToggled=!1;S.alwaysCollapsed=!1;S.canToggle=!0;S.collapsedHeight=80;S.disableToggle=!1;S.alwaysToggleable=!1;S.reversed=!1;S.shouldUseNumberOfLines=!1;S.recomputeOnResize=!1;S.canToggleJobId=0;S.lastReversed=!1;return S};
_.r(uS,_.w);_.M=uS.prototype;_.M.alwaysToggleableChanged=function(){this.alwaysToggleable&&(this.canToggle=!0)};
_.M.toggledChanged=function(){this.collapsed=this.alwaysCollapsed||!this.isToggled};
_.M.reversedChanged=function(){if(this.reversed&&!this.lastReversed||this.lastReversed&&!this.reversed){for(var S=_.tB(this.hostElement),p=S.childNodes,U=document.createDocumentFragment(),Y=S.childNodes.length-1;Y>=0;Y--)_.tB(U).appendChild(p[Y]);_.y("enable_shadydom_free_scoped_node_methods")?_.p3(this.hostElement).appendChild(U):S.appendChild(U)}};
_.M.ready=function(){var S=this;_.uK(function(){S.initChildrenObserver()},1)};
_.M.detached=function(){this.detachObserver()};
_.M.toggle=function(S,p){this.canToggle&&(this.isToggled=p,_.cv(this.hostElement,"yt-refit"),S&&S.stopPropagation())};
_.M.reset=function(){this.childrenChanged()};
_.M.onIronResize=function(){this.recomputeOnResize&&this.childrenChanged()};
_.M.computeIsMoreVisible=function(S,p){return S&&!p};
_.M.computeShouldUseNumberOfLines=function(S){try{return!!S&&window.CSS.supports("-webkit-line-clamp","1")}catch(p){}return!1};
_.M.computeIsLessVisible=function(S,p){return S&&p};
_.M.observeCollapsedHeightAndMaxLines=function(){var S=this.collapsedHeight,p=this.maxNumberOfLines;this.shouldUseNumberOfLines?_.Ms(this.hostElement,{"--ytd-expander-max-lines":""+p,"--ytd-expander-collapsed-height":""}):_.Ms(this.hostElement,{"--ytd-expander-collapsed-height":S+"px","--ytd-expander-max-lines":""})};
_.M.handleMoreTap=function(S){this.disableToggle||(_.cv(this.hostElement,"yt-expander-more-tapped"),this.toggle(S,!0))};
_.M.handleLessTap=function(S){_.cv(this.hostElement,"yt-expander-less-tapped");this.toggle(S,!1)};
_.M.initChildrenObserver=function(){var S=this;this.observer=new MutationObserver(function(){S.childrenChanged()});
this.observer.observe(this.content,{subtree:!0,childList:!0,attributes:!0,characterData:!0});this.childrenChanged()};
_.M.childrenChanged=function(){var S=this;this.alwaysToggleable?this.canToggle=this.alwaysToggleable:this.canToggleJobId||(this.canToggleJobId=window.requestAnimationFrame(function(){SM(function(){S.canToggleJobId=0;S.calculateCanCollapse()})}))};
_.M.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};
_.M.detachObserver=function(){this.observer&&this.observer.disconnect()};
_.M.collapsedChangedForBinding=function(){this.hostElement.dispatchEvent(new _.uz("collapsed-changed",this.collapsed))};
_.M.isToggledChangedForBinding=function(){this.hostElement.dispatchEvent(new _.uz("is-toggled-changed",this.isToggled))};
_.M.canToggleChangedForBinding=function(){this.hostElement.dispatchEvent(new _.uz("can-toggle-changed",this.canToggle))};
_.$u.Object.defineProperties(uS.prototype,{isResetting:{configurable:!0,enumerable:!0,get:function(){return this.canToggleJobId!==0}}});
uS.prototype.canToggleChangedForBinding=uS.prototype.canToggleChangedForBinding;uS.prototype.isToggledChangedForBinding=uS.prototype.isToggledChangedForBinding;uS.prototype.collapsedChangedForBinding=uS.prototype.collapsedChangedForBinding;uS.prototype.observeCollapsedHeightAndMaxLines=uS.prototype.observeCollapsedHeightAndMaxLines;uS.prototype.onIronResize=uS.prototype.onIronResize;uS.prototype.reversedChanged=uS.prototype.reversedChanged;uS.prototype.toggledChanged=uS.prototype.toggledChanged;
uS.prototype.alwaysToggleableChanged=uS.prototype.alwaysToggleableChanged;_.x([_.F(_.ji),_.E("design:type",Object)],uS.prototype,"ironResizableBehavior",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],uS.prototype,"alignAuto",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],uS.prototype,"collapsed",void 0);_.x([_.g(),_.E("design:type",Object)],uS.prototype,"isToggled",void 0);_.x([_.g(),_.E("design:type",Object)],uS.prototype,"alwaysCollapsed",void 0);
_.x([_.g(),_.E("design:type",Object)],uS.prototype,"canToggle",void 0);_.x([_.g(),_.E("design:type",Object)],uS.prototype,"collapsedHeight",void 0);_.x([_.g(),_.E("design:type",Object)],uS.prototype,"disableToggle",void 0);_.x([_.g(),_.E("design:type",Object)],uS.prototype,"alwaysToggleable",void 0);_.x([_.g(),_.E("design:type",Object)],uS.prototype,"reversed",void 0);_.x([_.g(),_.E("design:type",Number)],uS.prototype,"maxNumberOfLines",void 0);
_.x([_.g({reflectToAttribute:!0,computed:"computeShouldUseNumberOfLines(maxNumberOfLines)"}),_.E("design:type",Object)],uS.prototype,"shouldUseNumberOfLines",void 0);_.x([_.g(),_.E("design:type",Object)],uS.prototype,"recomputeOnResize",void 0);_.x([_.O2("#content"),_.E("design:type",HTMLDivElement)],uS.prototype,"content",void 0);_.x([_.z4("alwaysToggleable"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],uS.prototype,"alwaysToggleableChanged",null);
_.x([_.z4("isToggled"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],uS.prototype,"toggledChanged",null);_.x([_.e("canToggleJobId"),_.E("design:type",Object),_.E("design:paramtypes",[])],uS.prototype,"isResetting",null);_.x([_.T4("reversed"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],uS.prototype,"reversedChanged",null);
_.x([_.Vd("iron-resize"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],uS.prototype,"onIronResize",null);_.x([_.T4("maxNumberOfLines","collapsedHeight"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],uS.prototype,"observeCollapsedHeightAndMaxLines",null);_.x([_.T4("collapsed"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],uS.prototype,"collapsedChangedForBinding",null);
_.x([_.T4("isToggled"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],uS.prototype,"isToggledChangedForBinding",null);_.x([_.T4("canToggle"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],uS.prototype,"canToggleChangedForBinding",null);uS=_.x([_.f({disableElementRegistration:!0,is:"ytd-expander"})],uS);
_.C(uS,"ytd-expander",function(){if(QLq!==void 0)return QLq;var S=document.createElement("template");_.h(S,'\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');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);return QLq=S},{mode:1});var wa=function(){return _.w.apply(this,arguments)||this};
_.r(wa,_.w);wa.prototype.computeIsCarousel=function(S){return!!S.isCarousel};
wa.prototype.observeLightsourcePalette=function(){var S,p=(S=this.data)==null?void 0:S.vibrantsourceColorPaletteData;p&&_.Gw(this.hostElement,p)};
wa.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!1}}}}}};
wa.prototype.observeLightsourcePalette=wa.prototype.observeLightsourcePalette;_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],wa.prototype,"ytRendererBehavior",void 0);_.x([_.F(_.qH.YtRendererstamperBehavior),_.E("design:type",Object)],wa.prototype,"ytRendererstamperBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],wa.prototype,"data",void 0);_.x([_.g({computed:"computeIsCarousel(data)",reflectToAttribute:!0}),_.E("design:type",Boolean)],wa.prototype,"isCarousel",void 0);
_.x([_.T4("data.vibrantsourceColorPaletteData"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],wa.prototype,"observeLightsourcePalette",null);wa=_.x([_.f({disableElementRegistration:!0,is:"ytd-media-upsell-renderer"})],wa);
_.C(wa,"ytd-media-upsell-renderer",function(){if(z9I!==void 0)return z9I;var S=document.createElement("template");_.h(S,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-media-upsell-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="details-wrapper style-scope ytd-media-upsell-renderer">\n  <div class="image-wrapper style-scope ytd-media-upsell-renderer">\n    <yt-img-shadow class="media-thumbnail style-scope ytd-media-upsell-renderer" thumbnail="[[data.thumbnail]]">\n    </yt-img-shadow>\n    <div class="tv-show-season-wrapper style-scope ytd-media-upsell-renderer" hidden="[[!data.tvShowSeasons]]">\n      <yt-icon id="tv-show-icon" icon="tv" class="style-scope ytd-media-upsell-renderer"></yt-icon>\n      <p id="tv-show-season" class="style-scope ytd-media-upsell-renderer">\n        [[getSimpleString(data.tvShowSeasons)]]\n      </p>\n    </div>\n  </div>\n  <div class="details style-scope ytd-media-upsell-renderer">\n    <div class="metadata-wrapper style-scope ytd-media-upsell-renderer">\n      <span id="media-title" hidden="[[!data.mediaTitle]]" class="style-scope ytd-media-upsell-renderer">\n        [[getSimpleString(data.mediaTitle)]]\n      </span>\n      <span id="metadata" hidden="[[!data.metadata]]" class="style-scope ytd-media-upsell-renderer">\n        [[getSimpleString(data.metadata)]]\n      </span>\n    </div>\n    <div id="action-button" class="style-scope ytd-media-upsell-renderer"></div>\n  </div>\n</div>\n<ytd-expander id="expander" hidden="[[data.isCarousel]]" max-number-of-lines="4" class="style-scope ytd-media-upsell-renderer">\n  <yt-formatted-string id="synopsis" slot="content" disable-upgrade$="[[!data.synopsis]]" hidden="[[data.isCarousel]]" text="[[data.synopsis]]" class="style-scope ytd-media-upsell-renderer">\n  </yt-formatted-string>\n  <div class="more-button style-scope ytd-media-upsell-renderer" slot="more-button">\n    <span class="expander-text style-scope ytd-media-upsell-renderer">[[getSimpleString(data.moreButtonText)]]</span>\n    <yt-icon id="drop-down-icon" icon="arrow_drop_down" class="style-scope ytd-media-upsell-renderer"></yt-icon>\n  </div>\n  <div class="less-button style-scope ytd-media-upsell-renderer" slot="less-button">\n    <span class="expander-text style-scope ytd-media-upsell-renderer">[[getSimpleString(data.lessButtonText)]]</span>\n    <yt-icon id="drop-up-icon" icon="arrow_drop_up" class="style-scope ytd-media-upsell-renderer"></yt-icon>\n  </div>\n</ytd-expander>\n');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);return z9I=S},{mode:2});var n4c;var lS=function(){var S=_.w.apply(this,arguments)||this;S.JSC$12845_playerEvents=new Map;S.listeningToPlayer=!1;S.startX=0;S.active=!1;S.shouldShowButtons=_.y("web_buttons_hidden_killswitch");S.isHighlighted=!1;S.useHighlightStyling=_.y("web_enable_deeper_metadata_highlight_styling");S.modern=_.y("kevlar_modern_sd");S.enableProblemWalkthrough=_.y("problem_walkthrough_sd");return S};
_.r(lS,_.w);_.M=lS.prototype;
_.M.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}}}}}};
_.M.created=function(){this.JSC$12845_playerEvents.set("onLoopRangeChange",this.onLoopRangeChange)};
_.M.attached=function(){this.repeatButton.addEventListener("yt-toggle-button",_.d9(this,this.onRepeatButtonToggle));_.y("synced_panel_scrolling_controller")&&this.hostElement.addEventListener("yt-synced-panel-active-item-update",_.d9(this,this.onActiveUpdate))};
_.M.detached=function(){this.removePlayerListeners();this.repeatButton.removeEventListener("yt-toggle-button",_.d9(this,this.onRepeatButtonToggle));_.y("synced_panel_scrolling_controller")&&this.hostElement.removeEventListener("yt-synced-panel-active-item-update",_.d9(this,this.onActiveUpdate))};
_.M.onDataChanged=function(){this.removePlayerListeners()};
_.M.onColorPaletteChange=function(){var S={},p;if(_.bE()==="USER_INTERFACE_THEME_DARK"&&((p=this.data)==null?0:p.darkColorPalette)){var U=this.data.darkColorPalette;S["--ytd-macro-markers-list-item-background-color"]=_.ev(this.get("section2Color",U))}else{var Y;_.bE()==="USER_INTERFACE_THEME_LIGHT"&&((Y=this.data)==null?0:Y.lightColorPalette)&&(U=this.data.lightColorPalette,S["--ytd-macro-markers-list-item-background-color"]=_.ev(this.get("section3Color",U)))}U?(S["--ytd-macro-markers-list-item-title-color"]=
_.ev(this.get("primaryTitleColor",U)),S["--ytd-macro-markers-list-item-secondary-color"]=_.ev(this.get("secondaryTitleColor",U)),S["--ytd-macro-markers-list-item-timestamp-background-color"]=_.ev(this.get("section1Color",U)),this.customButtonProperties={customColors:{color:_.ev(this.get("primaryTitleColor",U))}},this.useColorSampling=!0):(S["--ytd-macro-markers-list-item-background-color"]="initial",S["--ytd-macro-markers-list-item-title-color"]="initial",S["--ytd-macro-markers-list-item-secondary-color"]=
"initial",S["--ytd-macro-markers-list-item-timestamp-background-color"]="initial",this.customButtonProperties=void 0,this.useColorSampling=!1);_.Ms(this.hostElement,S)};
_.M.onEndpointMouseDown=function(S){this.startX=S.clientX};
_.M.onEndpointClick=function(S){var p=this,U,Y,L;return _.T(function(I){if(I.nextAddress==1){if(p.startX!==S.clientX)return S.preventDefault(),I.return();p.data&&p.ytRendererBehavior.logExplicitClick(p.data);if(!p.seekWithAnimationOnClick)return I.jumpTo(0);if(S.button!==0||S.shiftKey||S.altKey||S.metaKey||S.ctrlKey||_.Eo(_.E1(S),p.hostElement,["BUTTON".toString()]))return I.return();S.stopPropagation();S.preventDefault();return p.data?_.k(I,_.iZ().getPlayerPromise(),3):I.return()}U=I.yieldResult;
L=(Y=_.b(p.data.onTap,_.E$))==null?void 0:Y.startTimeSeconds;L!==void 0&&U.seekToTimeWithAnimation(L*1E3,_.mA(p.data.title));_.OV(I)})};
_.M.computeLayout=function(S){return S};
_.M.computeIsHighlighted=function(S){return!!S};
_.M.computeCarouselType=function(S){return S};
_.M.hideModernCarousel=function(S){return this.modern&&this.hideThumbnail(S)};
_.M.hideThumbnail=function(S){return this.enableProblemWalkthrough&&S!==null&&S==="MACRO_MARKERS_LIST_ITEM_RENDERER_CAROUSEL_TYPE_TEXT_ONLY"};
_.M.onRepeatButtonToggle=function(S){var p=this;S.detail.toggled&&_.iZ().getPlayerPromise().then(function(U){p.ytPlayerListenerBehavior.listenToPlayerEvents(U,p.JSC$12845_playerEvents);p.listeningToPlayer=!0})};
_.M.onLoopRangeChange=function(S){var p=_.tB(this.hostElement).querySelector("#repeat-button").querySelector("ytd-toggle-button-renderer");if(p){var U=p.polymerController.get("defaultServiceEndpoint.repeatChapterCommand",p.polymerController.data);if(U){var Y=Number(U.endTimeMs);if(Number(U.startTimeMs)!==(S==null?void 0:S.startTimeMs)||Y!==(S==null?void 0:S.endTimeMs))p.polymerController.toggle(!1),this.removePlayerListeners()}}};
_.M.removePlayerListeners=function(){var S=this;this.listeningToPlayer&&_.iZ().getPlayerPromise().then(function(p){S.ytPlayerListenerBehavior.unlistenFromPlayerEvents(p,S.JSC$12845_playerEvents);S.listeningToPlayer=!1})};
_.M.onActiveUpdate=function(S){this.active=S.detail.active};
lS.prototype.onColorPaletteChange=lS.prototype.onColorPaletteChange;lS.prototype.onDataChanged=lS.prototype.onDataChanged;_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],lS.prototype,"ytRendererBehavior",void 0);_.x([_.F(_.qH.YtRendererstamperBehavior),_.E("design:type",Object)],lS.prototype,"ytRendererstamperBehavior",void 0);_.x([_.F(_.Cj.YtPlayerListenerBehavior),_.E("design:type",_.xt)],lS.prototype,"ytPlayerListenerBehavior",void 0);
_.x([_.g(),_.E("design:type",Object)],lS.prototype,"data",void 0);_.x([_.g({value:!1,reflectToAttribute:!0}),_.E("design:type",Boolean)],lS.prototype,"useCustomColors",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],lS.prototype,"active",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Boolean)],lS.prototype,"shouldShowButtons",void 0);_.x([_.g({reflectToAttribute:!0,computed:"computeLayout(data.layout)"}),_.E("design:type",String)],lS.prototype,"layout",void 0);
_.x([_.g({reflectToAttribute:!0,computed:"computeIsHighlighted(data.isHighlighted)"}),_.E("design:type",Object)],lS.prototype,"isHighlighted",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],lS.prototype,"useHighlightStyling",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],lS.prototype,"modern",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],lS.prototype,"enableProblemWalkthrough",void 0);
_.x([_.g({reflectToAttribute:!0,computed:"computeCarouselType(data.carouselType)"}),_.E("design:type",String)],lS.prototype,"carouselType",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Boolean)],lS.prototype,"useColorSampling",void 0);_.x([_.g(),_.E("design:type",Boolean)],lS.prototype,"seekWithAnimationOnClick",void 0);_.x([_.g(),_.E("design:type",Object)],lS.prototype,"customButtonProperties",void 0);
_.x([_.O2("#repeat-button"),_.E("design:type",HTMLElement)],lS.prototype,"repeatButton",void 0);_.x([_.T4("data"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],lS.prototype,"onDataChanged",null);_.x([_.T4("data.lightColorPalette","data.darkColorPalette"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],lS.prototype,"onColorPaletteChange",null);
lS=_.x([_.f({is:"ytd-macro-markers-list-item-renderer",disableElementRegistration:!0})],lS);
_.C(lS,"ytd-macro-markers-list-item-renderer",function(){if(n4c!==void 0)return n4c;var S=document.createElement("template");_.h(S,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-macro-markers-list-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a id="endpoint" class="yt-simple-endpoint style-scope ytd-macro-markers-list-item-renderer" data="[[data.onTap]]" href$="[[computeHref_(data.onTap)]]" on-click="onEndpointClick" on-mousedown="onEndpointMouseDown" draggable="false" hidden="[[hideModernCarousel(data.carouselType)]]">\n  <div hidden="[[hideThumbnail(data.carouselType)]]" id="thumbnail" class="style-scope ytd-macro-markers-list-item-renderer">\n    <yt-img-shadow hidden="[[!data.thumbnail]]" object-fit="FILL" thumbnail="[[data.thumbnail]]" class="style-scope ytd-macro-markers-list-item-renderer">\n    </yt-img-shadow>\n    <div id="overlay" class="style-scope ytd-macro-markers-list-item-renderer"></div>\n  </div>\n  <div id="details" class="style-scope ytd-macro-markers-list-item-renderer">\n    <h4 hidden="[[hideThumbnail(data.carouselType)]]" class="macro-markers style-scope ytd-macro-markers-list-item-renderer" title="[[getSimpleString(data.title)]]">[[getSimpleString(data.title)]]</h4>\n    <h4 hidden="[[!hideThumbnail(data.carouselType)]]" class="problem-walkthroughs style-scope ytd-macro-markers-list-item-renderer" title="[[getSimpleString(data.title)]]">[[getSimpleString(data.title)]]</h4>\n    <div id="time" class="style-scope ytd-macro-markers-list-item-renderer">[[getSimpleString(data.timeDescription)]]</div>\n  </div>\n</a>\n<div id="details" hidden="[[!hideModernCarousel(data.carouselType)]]" class="style-scope ytd-macro-markers-list-item-renderer">\n  <a id="endpoint" class="yt-simple-endpoint style-scope ytd-macro-markers-list-item-renderer" data="[[data.onTap]]" href$="[[computeHref_(data.onTap)]]" on-click="onEndpointClick" on-mousedown="onEndpointMouseDown" draggable="false" hidden="[[!hideThumbnail(data.carouselType)]]">\n    <h4 class="problem-walkthroughs style-scope ytd-macro-markers-list-item-renderer" title="[[getSimpleString(data.title)]]">[[getSimpleString(data.title)]]</h4>\n  </a>\n  <div id="time" class="style-scope ytd-macro-markers-list-item-renderer">[[getSimpleString(data.timeDescription)]]</div>\n</div>\n<div id="share-button" class="style-scope ytd-macro-markers-list-item-renderer"></div>\n<div id="repeat-button" class="style-scope ytd-macro-markers-list-item-renderer"></div>\n');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);return n4c=S},{mode:1});var JzP;var yzj;var am=function(){var S=_.w.apply(this,arguments)||this;S.modernTypography=_.y("web_modern_typography");return S};
_.r(am,_.w);_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],am.prototype,"ytRendererBehavior",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],am.prototype,"modernTypography",void 0);_.x([_.g(),_.E("design:type",Object)],am.prototype,"data",void 0);am=_.x([_.f({disableElementRegistration:!0,is:"ytd-title-and-button-list-header-renderer"})],am);
_.C(am,"ytd-title-and-button-list-header-renderer",function(){if(yzj!==void 0)return yzj;var S=document.createElement("template");_.h(S,'\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');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);return yzj=S},{mode:1});var Kbl;var bOP=new _.$g("BUTTON_RENDERER_WIZ_TOKEN"),jLH=new _.$g("BUTTON_RENDERER_TOKEN");_.ft=_.$k(function(S){var p=_.tW().resolve(_.AW(bOP));if(p)return _.H(p,Object.assign({},S));var U=_.tW().resolve(jLH);return U?_.H(zow,null,function(){return _.H(iQ,null,function(){var Y,L,I,V,W,O,D,z,Q,J,K,G;return void U(S.data(),{onButtonClickCallback:S.onButtonClickCallback,shouldShowIcons:(Y=S.shouldShowIcons)==null?void 0:Y.call(S),icon:(L=S.icon)==null?void 0:L.call(S),processAllEndpoints:(I=S.processAllEndpoints)==null?void 0:I.call(S),preventDefault:(V=S.preventDefault)==null?void 0:V.call(S),
stopPropagation:(W=S.stopPropagation)==null?void 0:W.call(S),disableButtonRendererClickHandling:(O=S.disableButtonRendererClickHandling)==null?void 0:O.call(S),className:(D=S.className)==null?void 0:D.call(S),buttonOverrides:(z=S.buttonOverrides)==null?void 0:z.call(S),forceModernIconButton:(Q=S.forceModernIconButton)==null?void 0:Q.call(S),isSubscribe:(J=S.isSubscribe)==null?void 0:J.call(S),alignByText:(K=S.alignByText)==null?void 0:K.call(S),forceDisabled:(G=S.forceDisabled)==null?void 0:G.call(S)})})}):
_.H(_.U0,null)},"ba");
_.ft.idomCompat=!0;var rzl=_.$k(function(S){var p=S.data,U=_.os(S.useSquareAspectRatio,!1);return _.H("dismissed-mini-game-card-view-model",null,_.H(_.n,{cond:function(){var Y,L;return(Y=p().responseText)==null?void 0:(L=Y.runs)==null?void 0:L.length},
then:function(){var Y={};return _.H("div",{class:_.VD("yt-mini-game-card-view-model__dismissed-card",(Y["yt-mini-game-card-view-model__dismissed-portrait-card"]=function(){return!U()},Y["yt-mini-game-card-view-model--dismissed-square-card"]=U,Y))},_.H("div",{class:"yt-mini-game-card-view-model__dismissed-mini-app-content"},_.H(_.n,{cond:function(){return p().responseText.runs[0].text},
then:function(L){return _.H("span",{class:"yt-mini-game-card-view-model__dismissed-text",title:L},L)}}),_.H(_.yP,{data:function(){return p().buttons}},{buttonRenderer:_.ft,
buttonViewModel:_.PG})))}}))},"ca");var PmQ=_.$k(function(S){S=_.vT(S,{data:{},className:void 0,useFullWidth:!1,isDesktopWeb:!1,addSearchResultTopMargin:!1});var p=S.data,U=S.useFullWidth,Y=S.isDesktopWeb,L=S.addSearchResultTopMargin,I=function(){return p().layout},V=function(){return p().title},W=function(){return p().metadataText?p().metadataText:p().genre},O=function(){return p().channelName},D=function(){return p().image},z=function(){return p().colorPalette},Q=function(){return p().actionButton},J=function(){return p().overflowButton},
K=function(){return p().avatar},G=function(){var a={};
a=_.VD("yt-mini-game-card-view-model","yt-mini-game-card-view-model--singleton-card",(a["yt-mini-game-card-view-model--singleton-card-desktop"]=function(){return Y()},a));
return _.H("div",{class:a},_.H(Gtt,{imageData:D,colorPalette:z}),_.H(h9m,{onTap:function(){return p().onTap},
imageData:D,accessibilityText:function(){return p().accessibilityText},
overlayBadgeText:function(){return p().overlayBadgeText},
iconName:function(){return p().iconName},
unplayableInlinePlaybackIconName:function(){return p().unplayableInlinePlaybackIconName},
isDesktopWeb:Y}),_.H(_.n,{cond:function(){return!Y()},
then:function(){return _.H(_.U0,null,_.H(R9c,{layout:I,colorPalette:z,isDesktopWeb:Y,overflowButton:J,avatar:K,onTap:function(){return p().onTap},
genre:W,title:V,channelName:O,entityRedesignExperiments:function(){return p().entityRedesignExperiments}}),_.H(Ct,{actionButton:Q}))}}))},X=function(){var a={};
a=_.VD((a["yt-mini-game-card-view-model--search-result-desktop"]=function(){return Y()},a["yt-mini-game-card-view-model--search-result-mweb"]=function(){return!Y()},a["yt-mini-game-card-view-model--search-result-top-margin"]=function(){return L()},a));
return _.H("div",{class:a},G(),_.H(Fbj,{description:function(){return p().description},
isDesktopWeb:Y,title:V,genre:W,onTap:function(){return p().onTap},
actionButton:Q,overflowButton:J,avatar:K,channelName:O}))},Z=function(){var a=function(){var m;
return(m=p().entityRedesignExperiments)==null?void 0:m.changePlayablesLayoutWithCta},N={};
N=_.VD("yt-mini-game-card-view-model","yt-mini-game-card-view-model--portrait-card",(N["yt-mini-game-card-view-model--change-layout-with-cta"]=function(){return a()},N["yt-mini-game-card-view-model--portrait-card-desktop"]=function(){return Y()},N["yt-mini-game-card-view-model--portrait-card-desktop-skinny-width"]=function(){return Y()&&p().width===135},N["yt-mini-game-card-view-model--show-unplayable-on-hover"]=function(){return Y()},N["yt-mini-game-card-view-model--show-overflow-menu-on-hover"]=
function(){return!a()&&Y()&&p().style==="MINI_GAME_CARD_STYLE_BIG_METADATA_FONT"},N["yt-mini-game-card-view-model--big-metadata-font"]=function(){return p().style==="MINI_GAME_CARD_STYLE_BIG_METADATA_FONT"},N["yt-mini-game-card-view-model--use-full-width"]=function(){return U()},N["yt-mini-game-card-view-model--extra-bottom-padding"]=function(){return!Q()},N));
return _.H("div",{class:N},_.H(_.n,{cond:function(){return a()},
then:function(){return _.H(_.U0,null,_.H(XpI,{entityRedesignExperiments:function(){return p().entityRedesignExperiments},
colorPalette:z,isDesktopWeb:Y,onTap:function(){return p().onTap},
accessibilityText:function(){return p().accessibilityText},
overlayBadgeText:function(){return p().overlayBadgeText},
iconName:function(){return p().iconName},
unplayableInlinePlaybackIconName:function(){return p().unplayableInlinePlaybackIconName},
actionButton:Q,imageData:D}),_.H(R9c,{layout:I,colorPalette:z,isDesktopWeb:Y,overflowButton:J,avatar:K,onTap:function(){return p().onTap},
genre:W,title:V,channelName:O,entityRedesignExperiments:function(){return p().entityRedesignExperiments}}),_.H(_.n,{cond:function(){return!!a()===!1&&Q()},
then:function(){return _.H(Ct,{actionButton:Q})}}))},
else:function(){return _.H(_.U0,null,_.H(Gtt,{imageData:D,colorPalette:z}),_.H(h9m,{onTap:function(){return p().onTap},
imageData:D,accessibilityText:function(){return p().accessibilityText},
overlayBadgeText:function(){return p().overlayBadgeText},
iconName:function(){return p().iconName},
unplayableInlinePlaybackIconName:function(){return p().unplayableInlinePlaybackIconName},
isDesktopWeb:Y}),_.H(R9c,{layout:I,colorPalette:z,isDesktopWeb:Y,overflowButton:J,avatar:K,onTap:function(){return p().onTap},
genre:W,title:V,channelName:O,entityRedesignExperiments:function(){return p().entityRedesignExperiments}}),_.H(Ct,{actionButton:Q}))}}))},l=function(){var a={};
a=_.VD("yt-mini-game-card-view-model","yt-mini-game-card-view-model--square-card",(a["yt-mini-game-card-view-model--square-card-desktop"]=function(){return Y()},a["yt-mini-game-card-view-model--use-full-width"]=function(){return U()},a));
return _.H("div",{class:a},_.H(h9m,{onTap:function(){return p().onTap},
imageData:D,accessibilityText:function(){return p().accessibilityText},
overlayBadgeText:function(){return p().overlayBadgeText},
iconName:function(){return p().iconName},
unplayableInlinePlaybackIconName:function(){return p().unplayableInlinePlaybackIconName},
isDesktopWeb:Y}),_.H(R9c,{layout:I,colorPalette:z,isDesktopWeb:Y,overflowButton:J,avatar:K,onTap:function(){return p().onTap},
genre:W,title:V,channelName:O,entityRedesignExperiments:function(){return p().entityRedesignExperiments}}))};
return _.H("mini-game-card-view-model",{class:S.className},_.H(_.r7,null,_.H(_.bb,{when:function(){return I()==="MINI_APP_LAYOUT_PORTRAIT"}},function(){return Z()}),_.H(_.bb,{when:function(){return I()==="MINI_APP_LAYOUT_SQUARE"}},function(){return l()}),_.H(_.bb,{when:function(){return I()==="MINI_APP_LAYOUT_SINGLETON"}},function(){return X()})))},"da");
PmQ.idomCompat=!0;var Ct=_.$k(function(S){var p=_.os(S.wrapperClass,"yt-mini-game-card-view-model__card-action-button");return _.H(_.yP,{data:S.actionButton},{buttonViewModel:function(U){return _.H("div",{class:p},_.H(_.PG,{data:U.data}))}})},"ea"),h9m=_.$k(function(S){var p=S.onTap;
var U=S.imageData;var Y=S.accessibilityText;var L=S.overlayBadgeText;var I=S.iconName;var V=S.unplayableInlinePlaybackIconName;S=S.isDesktopWeb;return _.H(_.pY,{className:"yt-mini-game-card-view-model__thumbnail-wrapper",command:p},_.H(_.of,{data:U,className:"yt-mini-game-card-view-model__thumbnail-image",alt:function(){return(Y==null?void 0:Y())||""},
contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"}),_.H(ZOd,{overlayBadgeText:L,iconName:I,unplayableInlinePlaybackIconName:V,isDesktopWeb:S}))},"fa"),ZOd=_.$k(function(S){var p=S.overlayBadgeText;
var U=S.iconName;var Y=S.unplayableInlinePlaybackIconName;var L=S.isDesktopWeb;return _.H("div",{class:"yt-mini-game-card-view-model__badge-container"},_.H(_.n,{cond:U,then:function(I){return _.H("div",{class:"yt-mini-game-card-view-model__badge"},_.H("div",{class:"yt-mini-game-card-view-model__badge-high-score"},_.H(_.QD,{icon:I,className:"yt-mini-game-card-view-model__icon"}),_.H("span",{class:"yt-mini-game-card-view-model__badge-text","aria-hidden":!0},p)))}}),_.H(_.n,{cond:function(){return!U()&&
p()},
then:function(){return _.H("span",{class:"yt-mini-game-card-view-model__badge","aria-hidden":!0},p)}}),_.H(_.n,{cond:function(){return Y()&&L()},
then:function(){return _.H("div",{class:"yt-mini-game-card-view-model__unplayable-badge"},_.H(_.QD,{icon:Y,className:"yt-mini-game-card-view-model__unplayable-icon"}))}}))},"ga"),Gtt=_.$k(function(S){var p=S.colorPalette;
var U=S.imageData;var Y=function(){return p().vibrantColorPalette?p().vibrantColorPalette.section2Color:p().sectionTwoColor};
return _.H(_.U0,null,_.H("div",{class:"yt-mini-game-card-view-model__background-base",style:_.zw({"background-color":function(){return gz(Y(),"1")}})}),_.H("div",{class:"yt-mini-game-card-view-model__background-blur",
style:_.zw({"background-image":function(){return"url("+U().sources[0].url+")"}})}),_.H("div",{class:"yt-mini-game-card-view-model__gradient-scrim",
style:_.zw({background:function(){return"linear-gradient(180deg,\n    "+gz(Y(),".8")+" 0%,\n    "+gz(Y(),".4")+" 25%,\n    "+gz(p().vibrantColorPalette?p().vibrantColorPalette.section4Color:p().sectionFourColor,".8")+" 100%)"}})}))},"ha"),R9c=_.$k(function(S){var p=S.layout;
var U=S.colorPalette;var Y=S.overflowButton;var L=S.avatar;var I=S.onTap;var V=S.title;var W=S.channelName;var O=S.entityRedesignExperiments;var D=S.genre;var z=function(){var J;return p()!=="MINI_APP_LAYOUT_SQUARE"&&((J=U())==null?0:J.textPrimaryColor)?"color: "+gz(U().textPrimaryColor,".7"):""},Q=function(){var J;
return O==null?void 0:(J=O())==null?void 0:J.changePlayablesLayoutWithCta};
return _.H("div",{class:"yt-mini-game-card-view-model__card-metadata-wrapper"},_.H(_.n,{cond:L,then:function(){return _.H("div",{class:"yt-mini-game-card-view-model__avatar"},_.H(_.yP,{data:L},{avatarViewModel:_.bS}))}}),_.H(_.pY,{command:I,
className:"yt-mini-game-card-view-model__metadata-details"},_.H("h3",{class:"yt-mini-game-card-view-model__title",title:V},V),_.H(_.n,{cond:L,then:function(){return _.H("div",{class:"yt-mini-game-card-view-model__channel-metadata-line"},_.H("span",{class:"yt-mini-game-card-view-model__genre",title:W,style:z},W),_.H("span",{class:"yt-mini-game-card-view-model__genre-with-separator",style:z},D))},
else:function(){return _.H(_.n,{cond:Q,then:function(){return _.H("span",{class:"yt-mini-game-card-view-model__genre",title:D},D)},
else:function(){return _.H("span",{class:"yt-mini-game-card-view-model__genre",title:D,style:z},D)}})}})),_.H("div",{class:"yt-mini-game-card-view-model__overflow-button"},_.H(_.yP,{data:Y},{buttonViewModel:function(J){var K=J.data;
return _.H(_.PG,{data:function(){return Object.assign({},K(),{customFontColor:Q()?void 0:K().customFontColor})}})}})))},"ia"),XpI=_.$k(function(S){var p=S.entityRedesignExperiments;
var U=S.colorPalette;var Y=S.isDesktopWeb;var L=S.onTap;var I=S.accessibilityText;var V=S.overlayBadgeText;var W=S.iconName;var O=S.unplayableInlinePlaybackIconName;var D=S.actionButton;S=S.imageData;var z=function(){var Q;return p==null?void 0:(Q=p())==null?void 0:Q.changePlayablesLayoutWithCta};
return _.H("div",{class:"yt-mini-game-card-view-model__cinematic-background-wrapper"},_.H(Gtt,{imageData:S,colorPalette:U}),_.H(h9m,{onTap:L,imageData:S,accessibilityText:I,overlayBadgeText:V,iconName:W,unplayableInlinePlaybackIconName:O,isDesktopWeb:Y}),_.H(_.n,{cond:function(){return(z==null?void 0:z())&&(D==null?void 0:D())},
then:function(){return _.H(Ct,{actionButton:D})}}))},"ja"),Fbj=_.$k(function(S){var p=S.description;
var U=S.isDesktopWeb;var Y=S.title;var L=S.genre;var I=S.onTap;var V=S.actionButton;var W=S.overflowButton;var O=S.avatar;S=S.channelName;var D={};D=_.VD("yt-mini-game-card-view-model--search-result-metadata-wrapper",(D["yt-mini-game-card-view-model--show-overflow-menu-on-hover"]=U,D["yt-mini-game-card-view-model--show-unplayable-on-hover"]=U,D["yt-mini-game-card-view-model--search-result-metadata-wrapper-mweb"]=function(){return!U()},D));
var z={};z=_.VD("yt-mini-game-card-view-model__search-result-info-row",(z["yt-mini-game-card-view-model__search-result-info-row-mweb"]=function(){return!U()},z));
return _.H("div",{class:D},_.H("div",{class:z},_.H(_.pY,{command:I,className:"yt-mini-game-card-view-model__metadata-details"},_.H("h3",{class:"yt-mini-game-card-view-model__title",title:Y},Y),_.H("span",{class:"yt-mini-game-card-view-model__genre",title:L},L)),_.H(Ct,{actionButton:V,wrapperClass:"yt-mini-game-card-view-model__search-result-action-button"}),_.H("div",{class:"yt-mini-game-card-view-model__overflow-button"},_.H(_.yP,{data:W},{buttonViewModel:_.PG}))),_.H("div",{class:"yt-mini-game-card-view-model__search-result-channel-row"},
_.H("div",{class:"yt-mini-game-card-view-model--search-result-channel-name"},_.H("div",{class:"yt-mini-game-card-view-model__avatar"},_.H(_.yP,{data:O},{avatarViewModel:function(Q){var J=Q.data;return _.H(_.bS,{data:function(){return Object.assign({},J(),{avatarImageSize:U()?"AVATAR_SIZE_XS":"AVATAR_SIZE_M"})}})}})),_.H(_.pY,{command:I,
className:"yt-mini-game-card-view-model__description"},_.H("p",{class:"yt-mini-game-card-view-model__search-result-channel-text"},S)),_.H(_.pY,{command:I,className:"yt-mini-game-card-view-model__metadata-row-extra-endpoint",tabIndex:-1},_.H("div",null)))),_.H(_.n,{cond:U,then:function(){return _.H(_.pY,{command:I,className:"yt-mini-game-card-view-model__description"},p)}}))},"ka");_.qm(PmQ,"mini-game-card-view-model",{props:{data:_.x2,className:_.x2,useFullWidth:_.x2,isDesktopWeb:_.x2,addSearchResultTopMargin:_.x2}});_.qm(rzl,"dismissed-mini-game-card-view-model",{props:{data:_.x2,useSquareAspectRatio:_.x2}});var xP=function(){var S=_.w.apply(this,arguments)||this;S.isSearch=!1;S.isRichGrid=!1;return S};
_.r(xP,_.w);_.M=xP.prototype;_.M.dismissibleItemReset=function(){this.isDismissed&&(this.isDismissed=!1);this.dismissedRenderer&&(this.dismissedRenderer=void 0)};
_.M.dismissibleItemOnYtServiceRequestSent=function(S,p){p.actions&&this.dismissibleItemProcessActions(S,p.actions)};
_.M.dismissibleItemOnRequestSent=function(){this.dismissibleItemReset()};
_.M.dataChanged=function(){this.dismissibleItemReset()};
_.M.dismissibleItemProcessActions=function(S,p){for(var U=0;U<p.length;U++){var Y=p[U];_.b(Y,_.z1)&&(this.dismissibleItemHandleReplaceEnclosingAction(_.b(Y,_.z1)),S.stopPropagation())}};
_.M.dismissibleItemHandleReplaceEnclosingAction=function(S){this.dismissedRenderer=S.item;this.isDismissed=!0};
_.$u.Object.defineProperties(xP.prototype,{useSquareAspectRatio:{configurable:!0,enumerable:!0,get:function(){var S;return((S=this.data)==null?void 0:S.layout)==="MINI_APP_LAYOUT_SQUARE"}},
showCard:{configurable:!0,enumerable:!0,get:function(){var S;return!!this.data&&!((S=this.dismissedRenderer)==null?0:S.notificationMultiActionRenderer)}},
showDismissed:{configurable:!0,enumerable:!0,get:function(){var S;return!((S=this.dismissedRenderer)==null||!S.notificationMultiActionRenderer)}}});
xP.prototype.dataChanged=xP.prototype.dataChanged;xP.prototype.dismissibleItemOnRequestSent=xP.prototype.dismissibleItemOnRequestSent;xP.prototype.dismissibleItemOnYtServiceRequestSent=xP.prototype.dismissibleItemOnYtServiceRequestSent;_.x([_.g(),_.E("design:type",Object)],xP.prototype,"data",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],xP.prototype,"isSearch",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Boolean)],xP.prototype,"isDismissed",void 0);
_.x([_.g(),_.E("design:type",Object)],xP.prototype,"dismissedRenderer",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],xP.prototype,"isRichGrid",void 0);_.x([_.e("data.layout"),_.E("design:type",Object),_.E("design:paramtypes",[])],xP.prototype,"useSquareAspectRatio",null);_.x([_.e("data","dismissedRenderer"),_.E("design:type",Object),_.E("design:paramtypes",[])],xP.prototype,"showCard",null);
_.x([_.e("data","dismissedRenderer"),_.E("design:type",Object),_.E("design:paramtypes",[])],xP.prototype,"showDismissed",null);_.x([_.Vd("yt-service-request-sent"),_.E("design:type",Function),_.E("design:paramtypes",[CustomEvent,_.eM]),_.E("design:returntype")],xP.prototype,"dismissibleItemOnYtServiceRequestSent",null);
_.x([_.Vd("yt-service-request-sent-button-renderer"),_.E("design:type",Function),_.E("design:paramtypes",[CustomEvent]),_.E("design:returntype")],xP.prototype,"dismissibleItemOnRequestSent",null);_.x([_.T4("data"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],xP.prototype,"dataChanged",null);xP=_.x([_.FB({disableElementRegistration:!0,is:"ytd-mini-game-card-view-model",isInjectionRoot:!0})],xP);
_.C(xP,"ytd-mini-game-card-view-model",function(){if(Kbl!==void 0)return Kbl;var S=document.createElement("template");_.h(S,'\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>');
S.content.insertBefore(_.t().content.cloneNode(!0),S.content.firstChild);return Kbl=S},{mode:_.UW("kevlar_poly_si_batch_j081")?1:2});var sLj;var e9c;var EL=function(){return _.iN.apply(this,arguments)||this};
_.r(EL,_.iN);EL.prototype.trigger=function(){this.fire("yt-load-reload-continuation",this.getContinuationUrl.bind(this))};
EL.prototype.getContinuationUrl=function(S){var p={ctoken:this.data.continuation,continuation:this.data.continuation};this.data.clickTrackingParams&&(p.itct=this.data.clickTrackingParams);return _.vQ(S,p)};
_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],EL.prototype,"ytRendererBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],EL.prototype,"data",void 0);EL=_.x([_.FB({is:"yt-reload-continuation",noInjection:!0})],EL);var g4H;var uKq;var mQ=function(){var S=_.w.apply(this,arguments)||this;S.notificationData={};return S};
_.r(mQ,_.w);_.M=mQ.prototype;_.M.isMenuExpanded=function(S){return S&&S.length<=1?"undefined":"false"};
_.M.dataChanged_=function(){this.selected=void 0;var S=this.computeSelectedIndex_(this.data);S>=0&&(this.selected=S);S=this.data&&this.data.length>1;_.U2(this.hostElement,"has-items",S);_.tB(this.hostElement).querySelector("#label").tabIndex=S?0:-1};
_.M.onDropdownOpen=function(){var S=_.X$();if(this.parentTrackingParams&&this.data){var p=_.JS(this.parentTrackingParams);this.data.forEach(function(U){S&&p&&U.trackingParams&&(U=_.JS(U.trackingParams),_.wB(S,p,U),_.fp(S,[U]))})}else this.parentTrackingParams||_.eP(new _.y7("No parent tracking params passed in for yt-dropdown-menu."))};
_.M.hasNotification=function(S){var p;if(S.targetId&&((p=this.notificationData)==null?0:p.targetId)){var U;return S.targetId===((U=this.notificationData)==null?void 0:U.targetId)}};
_.M.computeSelectedIndex_=function(S){if(S)for(var p=0,U=S.length;p<U;p++)if(S[p].selected)return p;return-1};
_.M.computeLabel_=function(S){return this.data&&S!=void 0?this.data[S].title:""};
_.M.computeShowIcon_=function(S,p){return!p&&!!S};
_.M.computeVerticalOffset_=function(S){return S?36:0};
_.M.computeEndpoint_=function(S){return S.endpoint||S.navigationEndpoint};
_.M.onLabelClick_=function(S){this.data&&this.data.length<=1?S.stopPropagation():this.menuExpanded="true"};
_.M.onIronActivate_=function(S){S=S.detail.item;var p=_.tB(this.hostElement).querySelector("#repeat").itemForElement(S);if(p&&p.trackingParams){var U=_.X$(),Y=_.JS(p.trackingParams);U&&_.xd(U,Y)}if(p&&p.serviceEndpoint)_.y("web_use_resolve_command_for_service_endpoint_in_dropdown_killswitch")?this.ytComponentBehavior.resolveCommand(p.serviceEndpoint):_.Yd(this.hostElement,[p.serviceEndpoint]),_.cv(this.hostElement,"yt-playlist-reloading");else a:{if((p=S.querySelector("yt-supported-renderers"))&&
(p=p.rendererElement)&&p.is=="yt-reload-continuation"){p.trigger();break a}(S=S.querySelector("yt-reload-continuation"))&&S.trigger()}};
_.M.onTap_=function(S){S.preventDefault()};
_.M.onItemTap_=function(S){this.ytEndpointBehavior.onEndpointTap_(S)};
_.M.onLinkFocus_=function(S){try{var p=S.target}catch(Y){}if(p){var U=p.querySelector("tp-yt-paper-item");U&&_.w9(this,"focus",function(){U.focus()})}};
_.M.onMenuClose_=function(){this.menuExpanded="false"};
_.M.isLabelIconActive_=function(S){return S==="true"};
_.M.computeHasSubtitle_=function(S){return!!S};
_.M.computeHrefForItem_=function(S){return this.ytComponentBehavior.computeHref_(this.computeEndpoint_(S))};
_.M.updateSelectedFromBinding=function(S){this.selected=S.detail.value};
_.$u.Object.defineProperties(mQ.prototype,{computedAriaLabel:{configurable:!0,enumerable:!0,get:function(){return this.useComputedAriaLabel&&this.selected!==void 0?this.ariaLabel+": "+this.data[this.selected].title:this.ariaLabel}}});
mQ.prototype.onMenuClose_=mQ.prototype.onMenuClose_;mQ.prototype.onTap_=mQ.prototype.onTap_;mQ.prototype.onIronActivate_=mQ.prototype.onIronActivate_;mQ.prototype.onDropdownOpen=mQ.prototype.onDropdownOpen;mQ.prototype.dataChanged_=mQ.prototype.dataChanged_;_.x([_.F(_.eL.YtComponentBehavior),_.E("design:type",Object)],mQ.prototype,"ytComponentBehavior",void 0);_.x([_.F(_.WV.YtEndpointBehavior),_.E("design:type",Object)],mQ.prototype,"ytEndpointBehavior",void 0);
_.x([_.g(),_.E("design:type",Array)],mQ.prototype,"data",void 0);_.x([_.g(),_.E("design:type",Object)],mQ.prototype,"parentTrackingParams",void 0);_.x([_.g(),_.E("design:type",Object)],mQ.prototype,"selected",void 0);_.x([_.g({value:!1}),_.E("design:type",Boolean)],mQ.prototype,"useLabel",void 0);_.x([_.g({value:!1}),_.E("design:type",Boolean)],mQ.prototype,"useComputedAriaLabel",void 0);_.x([_.g(),_.E("design:type",String)],mQ.prototype,"icon",void 0);
_.x([_.g({reflectToAttribute:!0}),_.E("design:type",String)],mQ.prototype,"iconLabel",void 0);_.x([_.g(),_.E("design:type",String)],mQ.prototype,"ariaLabel",void 0);_.x([_.g({value:!1,reflectToAttribute:!0}),_.E("design:type",Boolean)],mQ.prototype,"disabled",void 0);_.x([_.g({computed:"isMenuExpanded(data)"}),_.E("design:type",String)],mQ.prototype,"menuExpanded",void 0);_.x([_.g({value:!1}),_.E("design:type",Boolean)],mQ.prototype,"closeOnActivate",void 0);
_.x([_.g({reflectToAttribute:!0,value:_.y("web_modern_buttons")}),_.E("design:type",Boolean)],mQ.prototype,"modernButtons",void 0);_.x([_.g(),_.E("design:type",Object)],mQ.prototype,"notificationData",void 0);_.x([_.e("ariaLabel, selected"),_.g(),_.E("design:type",String),_.E("design:paramtypes",[])],mQ.prototype,"computedAriaLabel",null);_.x([_.T4("data"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],mQ.prototype,"dataChanged_",null);
_.x([_.Vd("paper-dropdown-open"),_.E("design:type",Function),_.E("design:paramtypes",[Event]),_.E("design:returntype")],mQ.prototype,"onDropdownOpen",null);_.x([_.Vd("iron-activate"),_.E("design:type",Function),_.E("design:paramtypes",[Event]),_.E("design:returntype")],mQ.prototype,"onIronActivate_",null);_.x([_.Vd("tap"),_.E("design:type",Function),_.E("design:paramtypes",[CustomEvent]),_.E("design:returntype")],mQ.prototype,"onTap_",null);
_.x([_.Vd("iron-overlay-closed"),_.E("design:type",Function),_.E("design:paramtypes",[Event]),_.E("design:returntype")],mQ.prototype,"onMenuClose_",null);mQ=_.x([_.FB({is:"yt-dropdown-menu",disableElementRegistration:!0})],mQ);
_.C(mQ,"yt-dropdown-menu",function(){if(uKq===void 0){var S=document.createElement("template");_.h(S,'\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');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);var p=S.content,U=p.insertBefore;g4H===void 0&&(g4H=document.createElement("template"));var Y=g4H;U.call(p,Y.content.cloneNode(!0),S.content.firstChild);uKq=S}S=uKq;return S},{mode:2});var om=function(){var S=_.w.apply(this,arguments)||this;S.hasNotification=!1;return S};
_.r(om,_.w);om.prototype.computeId=function(S){return S};
om.prototype.computeHorizontalAlign=function(S){return S?"right":"left"};
om.prototype.computeAccessibilityLabel=function(S){var p,U;return((p=S.accessibility)==null?void 0:(U=p.accessibilityData)==null?void 0:U.label)||null};
om.prototype.notificationDataChanged=function(){var S;this.hasNotification=!!this.notificationData&&!((S=this.data)==null?0:S.icon)};
om.prototype.notificationDataChanged=om.prototype.notificationDataChanged;_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],om.prototype,"ytRendererBehavior",void 0);_.x([_.F(_.sz.YtLiveChatTooltipTargetingBehavior),_.E("design:type",Object)],om.prototype,"ytLiveChatTooltipTargetingBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],om.prototype,"data",void 0);_.x([_.g({computed:"computeId(data.targetId)",reflectToAttribute:!0}),_.E("design:type",String)],om.prototype,"id",void 0);
_.x([_.g({value:!1}),_.E("design:type",Boolean)],om.prototype,"isRightAligned",void 0);_.x([_.g({value:!1,reflectToAttribute:!0}),_.E("design:type",Boolean)],om.prototype,"disabled",void 0);_.x([_.g({value:!1}),_.E("design:type",Boolean)],om.prototype,"closeOnActivate",void 0);_.x([_.g(),_.E("design:type",Object)],om.prototype,"notificationData",void 0);_.x([_.g(),_.E("design:type",Object)],om.prototype,"hasNotification",void 0);
_.x([_.g({value:!1}),_.E("design:type",Boolean)],om.prototype,"useComputedAriaLabel",void 0);_.x([_.T4("notificationData"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],om.prototype,"notificationDataChanged",null);om=_.x([_.FB({is:"yt-sort-filter-sub-menu-renderer",disableElementRegistration:!0})],om);
_.C(om,"yt-sort-filter-sub-menu-renderer",function(){if(e9c===void 0){var S=document.createElement("template");_.h(S,'\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>');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);var p=S.content,U=p.insertBefore;sLj===void 0&&(sLj=document.createElement("template"));var Y=sLj;U.call(p,Y.content.cloneNode(!0),S.content.firstChild);e9c=S}S=e9c;return S},{mode:2});_.cH(EoG);
var wpd=_.$k(function(S){var p=S.children;var U=S.className;var Y=S.style;var L=S.role;var I=S.ariaSelected;var V=S.ariaLabel;var W=S.ariaHidden;var O=S.ariaLabelledby;var D=S.ariaDescribedby;var z=S.command;var Q=S.elementsCommand;var J=S.forceNewState;var K=S.tabIdentifier;var G=S.target;var X=S.tabIndex;var Z=S.stopPropagation;S=_.nS(function(){var l=_.gx({innertubeCommand:z==null?void 0:z(),elementsCommand:Q==null?void 0:Q(),forceNewState:J==null?void 0:J(),stopPropagation:(Z==null?void 0:Z())!==
!1});l||(l={});l["aria-hidden$"]=W==null?void 0:W();var a;l.tabindex$=(a=X==null?void 0:X())!=null?a:l.tabindex$;var N;l["force-new-state$"]=(N=J==null?void 0:J())!=null?N:l["force-new-state$"];var m;l.role$=(m=L==null?void 0:L())!=null?m:l.role$;var A;l["aria-hidden$"]=(A=W==null?void 0:W())!=null?A:l["aria-hidden$"];var q;l.target$=(q=G==null?void 0:G())!=null?q:l.target$;return l},void 0,"SU0Mnc");
return _.H(_.pY,{aTagConfig:S,className:U,style:Y,ariaLabel:V,ariaLabelledby:O,ariaDescribedby:D,ariaSelected:I,tabIdentifier:K},p)},"la");var lTH=_.Oo(mSG);_.cH(mSG);_.qm(lTH,"place-data-view-model",{props:{data:_.x2}});var aTm=new _.$g("INLINE_PLAYBACK_HOOK_TOKEN");var fTc=function(S){this.setActiveSlideIndex=S;this.jobIds=[];this.isSlideshowPlaying=!1},E4j=function(S,p){S.isSlideshowPlaying||(S.isSlideshowPlaying=!0,Cmt(S),xEl(S,p,0))},Cmt=function(S){_.ps(_.PA,function(){S.setActiveSlideIndex(0)},1)},xEl=function(S,p,U){S.jobIds.push(_.ps(_.PA,function(){var Y=U<p-1?U+1:0;
S.setActiveSlideIndex(Y);xEl(S,p,Y)},1800))};var mEl=new _.$g("IMAGE_ON_LOAD_HANDLER_TOKEN");var o4E=_.$k(function(S){return _.H("animated-thumbnail-overlay-view-model",{class:"ytAnimatedThumbnailOverlayViewModelHost"},_.H(_.n,{cond:function(){var p;return(p=S.data())==null?void 0:p.thumbnail},
then:function(p){return _.H(_.of,{data:p,alt:"",contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL",hideOn404:!0})}}))},"ma");_.v4t=_.$k(function(S){var p=S.data;var U=S.lockupExperiments;S={};return _.H("thumbnail-overlay-button-view-model",{class:"ytThumbnailOverlayButtonViewModelHost"},_.H("div",{class:_.VD("ytThumbnailOverlayButtonViewModelButton",(S.ytThumbnailOverlayButtonViewModelButtonLegacyIcon=function(){var Y;return U&&((Y=U())==null?void 0:Y.useLegacySizedIconButton)},S))},_.H(_.yP,{data:function(){return p().overlayButton}},{buttonViewModel:function(Y){return _.H(_.PG,{data:Y.data,
buttonOverrides:function(){var L;return U&&((L=U())==null?0:L.useLegacySizedIconButton)?{iconPosition:"icon-only-40",customColors:{backgroundColor:"rgba(0,0,0,0.6)"}}:void 0}})}})))},"na");
_.v4t.idomCompat=!0;var $Ec=_.$k(function(S){return _.H("yt-thumbnail-hover-overlay-toggle-actions-view-model",{class:"ytThumbnailHoverOverlayToggleActionsViewModelHost","on:click":_.kL(function(p){p.preventDefault();return!1})},_.H(_.yP,{data:function(){return S.data().buttons}},{toggleButtonViewModel:function(p){return _.H("div",{class:"ytThumbnailHoverOverlayToggleActionsViewModelButton"},_.H(_.jS,{data:p.data}))}}))},"oa");
$Ec.idomCompat=!0;var iOd=_.$k(function(S){var p=function(){var U;return((U=_.b(S.data().rendererContext,_.Hj))==null?void 0:U.label)||""};
return _.H("yt-thumbnail-overlay-full-view-model",{class:"ytThumbnailOverlayFullViewModelHost"},_.H(_.n,{cond:function(){return S.data().image},
then:function(){return _.H("div",{class:"ytThumbnailOverlayFullViewModelIcon"},_.H(_.of,{data:function(){return S.data().image},
alt:p}))}}),_.H(_.n,{cond:function(){return S.data().text},
then:function(){return _.H("div",{class:"ytThumbnailOverlayFullViewModelText"},function(){return S.data().text})}}))},"pa");_.vh=_.$k(function(S){var p=[],U=function(){var J,K;return w9w((J=S.width)==null?void 0:J.call(S),(K=S.height)==null?void 0:K.call(S))},Y=_.tW().resolve(_.AW(mEl)),L=_.vH(function(){p.push("elRef.value set");
var J;(J=S.playbackRef)==null||J.call(S,{thumbnailElRef:L,thumbnail:S.data().image,thumbnailOverlays:S.data().overlays,thumbnailSize:U()})});
_.FM(function(){p.push("onInit");_.FG(function(){p.push("onCleanup")})});
var I=_.Xc(vow),V=function(){var J,K;return(K=(J=S.aspectRatio)==null?void 0:J.call(S))!=null?K:0},W=function(){return(S.data().image?_.WvN(S.data().image):V())<=1&&V()===0},O=function(){return W()?"CONTENT_MODE_SCALE_ASPECT_FIT":"CONTENT_MODE_SCALE_ASPECT_FILL"},D=function(){L.value||_.eP(new _.y7("Thumbnail elRef.value is null",p.join("\n")));
Y&&L.value&&Y(L.value)},z=function(){var J,K;
return((J=S.hovered)==null?void 0:J.call(S))&&U()!=="large"&&((K=S.data().overlays)==null?void 0:K.some(function(G){return _.b(G,NHP)}))},Q={};
return _.H("yt-thumbnail-view-model",{class:_.VD("yt-thumbnail-view-model",S.className,function(){return Nfe(V())},function(){var J,K;
a:{var G=U(),X=(J=S.disableRounding)==null?void 0:J.call(S);J=(K=S.isClip)==null?void 0:K.call(S);if(!X&&!J)switch(G){case "large":K="yt-thumbnail-view-model--large";break a;case "small":K="yt-thumbnail-view-model--small";break a;default:K="yt-thumbnail-view-model--medium";break a}K=void 0}return K},(Q["yt-thumbnail-view-model--cinematic"]=W,Q)),
style:_.zw({"background-color":function(){var J,K=W()?(J=S.data().backgroundColor)==null?void 0:J.lightTheme:void 0;return K?gz(K,"1"):void 0}}),
el:L},_.H(_.n,{cond:W,then:function(){return _.H("div",{class:"yt-thumbnail-view-model__blurred-image"},_.H(_.of,{data:function(){return S.data().image},
alt:"",contentMode:O,targetWidth:S.width,onload:D}))}}),_.H("div",{class:"yt-thumbnail-view-model__image"},_.H(_.of,{data:function(){return S.data().image},
alt:"",contentMode:O,targetWidth:S.width,onload:D}),null),_.H(_.yP,{data:function(){return z()?void 0:S.data().overlays},
allowIncompleteMapping:!0},{thumbnailOverlayTitleViewModel:Sae,thumbnailOverlayBadgeViewModel:function(J){return _.H(ppE,{data:J.data,thumbnailSize:U,isClip:S.isClip})},
thumbnailBottomOverlayViewModel:qyH,thumbnailOverlayFullViewModel:iOd,thumbnailOverlayButtonViewModel:function(J){return _.H(_.v4t,{data:J.data,lockupExperiments:S.lockupExperiments})}}),_.H(_.yP,{data:function(){var J;
return((J=S.hovered)==null?0:J.call(S))?S.data().overlays:void 0},
allowIncompleteMapping:!0},{thumbnailHoverOverlayViewModel:function(J){return _.H(Kt,{data:J.data,alwaysShow:!0})},
thumbnailHoverOverlayToggleActionsViewModel:$Ec}),_.H(_.yP,{data:function(){var J;return((J=S.hovered)==null?0:J.call(S))&&I()?S.data().overlays:void 0},
allowIncompleteMapping:!0},{animatedThumbnailOverlayViewModel:o4E}),_.H(_.n,{cond:S.isClip,then:function(){return _.H("div",{class:"yt-pinking"},_.H("svg",{class:"yt-pinking__pinking-left"},_.H("defs",null,_.H("pattern",{id:"left-pattern",width:"4",height:"8",patternUnits:"userSpaceOnUse"},_.H("polygon",{class:"yt-pinking__pinking",points:"0,0 4,4 0,8"}))),_.H("rect",{fill:"url(#left-pattern)",width:"4",height:"100%"})),_.H("svg",{class:"yt-pinking__pinking-right"},_.H("defs",null,_.H("pattern",{id:"right-pattern",
width:"4",height:"8",patternUnits:"userSpaceOnUse"},_.H("polygon",{class:"yt-pinking__pinking",points:"4,0 0,4 4,8"}))),_.H("rect",{fill:"url(#right-pattern)",width:"4",height:"100%"})))}}))},"qa");
_.vh.idomCompat={callbacks:{playbackRef:!0}};var NCc=_.$k(function(S){var p=_.d(_.kj(-1,void 0,"IOLZ0b")),U=p.next().value,Y=p.next().value;_.FM(function(){var L=new fTc(Y);E4j(L,S.data().thumbnails.length);_.FG(function(){if(L.isSlideshowPlaying){L.isSlideshowPlaying=!1;for(var I=L.jobIds,V=0,W=I.length;V<W;V++)_.PA.cancelJob(I[V]);L.jobIds.length=0}})});
return _.H("yt-collection-thumbnail-slideshow",{class:"yt-collection-thumbnail-slideshow"},_.H(_.yP,{data:function(){return S.data().thumbnails}},{thumbnailViewModel:function(L,I){return _.H("div",{class:function(){var V=!S.data().primaryThumbnail,W=I(),O=U(),D=["yt-collection-thumbnail-slideshow__slideshow-thumbnail"];
V&&W===0&&D.push("yt-collection-thumbnail-slideshow--first-slide");W<=O&&D.push("yt-collection-thumbnail-slideshow--show-slide");return D.join(" ")}},_.H(_.vh,{data:L.data,
disableRounding:S.disableRounding}))}}))},"ra");
NCc.idomCompat=!0;var BfR=new _.$g("DWELL_DETECTOR_REGISTRY_TOKEN");var qaQ=_.$k(function(S){var p=qTq(S.triggeringElement),U=function(){return!!S.data().primaryThumbnail};
return _.H("yt-collection-thumbnail-view-model",{class:"yt-collection-thumbnail-view-model","aria-hidden":"true"},_.H(BCd,{stackEnabled:U,thumbnailSize:function(){var Y,L;return w9w((Y=S.width)==null?void 0:Y.call(S),(L=S.height)==null?void 0:L.call(S))},
doubleStack:S.doubleStack,stackColor:function(){return S.data().stackColor}},_.H("div",null,_.H(_.yP,{data:function(){return S.data().primaryThumbnail}},{thumbnailViewModel:function(Y){var L={};
return _.H(_.vh,{data:Y.data,width:S.width,height:S.height,aspectRatio:S.aspectRatio,disableRounding:S.disableRounding,className:_.VD((L["yt-collection-thumbnail-view-model--has-stacks"]=U,L)),hovered:S.hovered,playbackRef:S.playbackRef})}}),_.H(_.n,{cond:function(){var Y;
return p()&&((Y=S.data().thumbnails)==null?void 0:Y.length)},
then:function(){return _.H("div",{class:"yt-collection-thumbnail-view-model__slideshow"},_.H(NCc,{data:S.data,disableRounding:function(){return!U()}}))}}))))},"sa");
qaQ.idomCompat={callbacks:{playbackRef:!0}};
var BCd=_.$k(function(S){var p=S.children;var U=S.stackEnabled;var Y=S.thumbnailSize;var L=S.doubleStack;var I=S.stackColor;var V,W=(V=_.tW().resolve(_.AW(_.Cz)))==null?void 0:V();return _.H(_.n,{cond:U,then:function(){return _.H(h1t,{data:function(){var O,D;return{experimentEnabled:!0,thumbnailSize:Y(),doubleStack:L==null?void 0:L(),color:W?I==null?void 0:(O=I())==null?void 0:O.darkTheme:I==null?void 0:(D=I())==null?void 0:D.lightTheme,enableResponsiveMode:!1}}},p)},
else:function(){return p}})},"ta");var AzE=new _.$g("EXPANDABLE_METADATA_VIEW_MODEL_TOKEN");var iS;_.$P={calledOnce:!0,state:"visible"};iS={calledOnce:!0,state:"hidden"};_.Nf=_.$k(function(S){var p=S.data;var U=S.customCommandResolver;var Y=S.className;var L=S.delayedClassName;S=S.animationEntityKey;var I=_.vH(),V=_.os(S,""),W=_.Ty(FKu,V),O=function(){var q,TG;return(TG=(q=W())==null?void 0:q.value)!=null?TG:!1},D=function(){_.m_(_.WG("booleanEntity",V(),{key:V(),
value:!0}));l=void 0};
S=_.d(_.Dt(O));var z=S.next().value,Q=S.next().value;S=_.d(_.Dt(O));var J=S.next().value,K=S.next().value;S=_.d(_.Dt(function(){var q;return O()?(q=p().styleTransitionConfig)==null?void 0:q.destinationStyle:void 0}));
var G=S.next().value,X=S.next().value,Z=function(){var q=Object.assign({},p(),G()&&{style:G()}),TG,Je,GG=q.label,Zw=(TG=q.interaction)==null?void 0:(Je=TG.accessibility)==null?void 0:Je.label;TG=q.iconImage?q.label&&q.label.content?q.iconLeading?"leading":"trailing":"icon-only":void 0;return{formattedButtonText:GG,accessibilityLabel:Zw,style:SJk(q.style),type:p2w(q.style),state:"active",size:cCq(q.size),iconPosition:TG,disabled:!1,aTagConfig:tfG(q,U)}},l;
_.tU(I,{visibilityCallback:function(q){var TG,Je=(TG=p().interaction)==null?void 0:TG.onFirstVisible;q&&Je&&_.wx(Je)},
showOption:_.$P});var a=function(){return ns(Z(),!!p().iconImage)};
Y=_.VD(function(){return"ytwAdButtonViewModelHost"},function(){return p().delayedAppearanceConfig?"ytwAdButtonViewModelHostHasAnimation":""},function(){var q=!!p().delayedAppearanceConfig,TG=z();
return q?TG?"ytwAdButtonViewModelFullHeight":"ytwAdButtonViewModelNoHeight":""},function(){var q=!!p().delayedAppearanceConfig,TG=J();
return q?TG?"ytwAdButtonViewModelShow":"ytwAdButtonViewModelHide":""},function(){return!p().delayedAppearanceConfig||z()?L==null?void 0:L():""},Y!=null?Y:"");
var N=function(){var q,TG=(q=p().delayedAppearanceConfig)==null?void 0:q.delayedInvisibleSeconds;TG&&(l=_.HG(_.PA,function(){Q(!0);m()},TG*1E3))},m=function(){var q,TG=(q=p().delayedAppearanceConfig)==null?void 0:q.delayedVisibleSeconds;
TG&&(l=_.HG(_.PA,function(){K(!0);A()},TG*1E3))},A=function(){var q,TG=(q=p().styleTransitionConfig)==null?void 0:q.styleTransitionSeconds,Je,GG=(Je=p().styleTransitionConfig)==null?void 0:Je.destinationStyle;
TG&&GG?l=_.HG(_.PA,function(){X(GG);D()},TG*1E3):D()};
_.FM(function(){var q;((q=p().delayedAppearanceConfig)==null?0:q.transitionDurationSeconds)&&I.value.style.setProperty("transition-duration",p().delayedAppearanceConfig.transitionDurationSeconds+"s");N()});
_.FG(function(){l&&_.PA.cancelJob(l)});
return _.H("ad-button-view-model",{class:Y,el:I},_.H(_.n,{cond:Z,then:function(){return _.H(BG,{data:Z,icon:function(){return _.H(_.n,{cond:function(){return p().iconImage},
then:function(q){return _.H(_.of,{data:q,alt:"",targetWidth:a,targetHeight:a,preserveWidth:!0,preserveHeight:!0})}})}})}}))},"ua");var tgI=_.$k(function(S){var p=S.data;S=_.vH();_.tU(S,{visibilityCallback:function(Y){var L,I=(L=p().interaction)==null?void 0:L.onFirstVisible;Y&&I&&_.wx(I)},
showOption:_.$P});var U={};return _.H("ad-button-group-view-model",{class:_.VD("ytwAdButtonGroupViewModelHost",(U.ytwAdButtonGroupViewModelHostCompactWidth=function(){return p().style==="AD_BUTTON_GROUP_STYLE_COMPACT_WIDTH"},U)),
el:S},_.H("div",{class:"ytwAdButtonGroupViewModelHostSecondaryButton"},_.H(_.yP,{data:function(){return p().secondaryAdButton}},{adButtonViewModel:function(Y){return _.H(_.Nf,{data:Y.data})}})),_.H("div",{class:"ytwAdButtonGroupViewModelHostPrimaryButton"},_.H(_.yP,{data:function(){return p().primaryAdButton}},{adButtonViewModel:function(Y){return _.H(_.Nf,{data:Y.data})}})))},"va");var czt=_.$k(function(S){var p=function(){var U;return((U=S.data())==null?void 0:U.answers)||[]};
return _.H("yt-survey-icons",{class:"ytSurveyIconsHost"},_.H("div",{class:"ytSurveyIconsHeader"},_.H("div",{class:"ytSurveyIconsTitle"},function(){var U;return(U=S.data())==null?void 0:U.text}),_.H("div",null,_.H(BG,{data:function(){return{style:"mono",
type:"text",state:"active",size:"M",iconPosition:"icon-only",onTap:function(){var U;(U=S.onDismiss)==null||U.call(S)}}},
iconName:"DISMISSAL"}))),_.H("div",null,_.H("div",{class:"ytSurveyIconsAnswers"},_.H(_.KU,{each:function(){return p()},
keyBy:"INDEX"},function(U,Y){return _.H("div",null,_.H(BG,{data:function(){return{style:"mono",type:"text",state:"active",size:"XL",iconPosition:"icon-only",onTap:function(){var L;(L=S.onSelect)==null||L.call(S,U(),Y)}}},
icon:function(){return _.H(_.QD,{icon:function(){var L,I;return(L=U())==null?void 0:(I=L.icon)==null?void 0:I.iconType},
className:"ytSurveyIconsIcon"})}}))})),_.H("div",{class:"ytSurveyIconsAnswersText"},_.H("div",null,function(){return p().length?p()[0].text:""}),_.H("div",null,function(){return p().length?p()[p().length-1].text:""}))))},"wa");var STm=_.$k(function(S){var p=_.d(_.kj(!1,void 0,"s8HkOb")),U=p.next().value,Y=p.next().value,L=_.Ty(uKe,function(){var W;return(W=S.data().keys)==null?void 0:W.surveyEntityKey}),I=_.Ty(wpw,function(){var W;
return(W=S.data().keys)==null?void 0:W.surveyStateEntityKey});
_.oV("ytd-slimline-survey-show-action",function(){Y(!1)});
var V=function(){var W,O;var D=(W=I())==null?void 0:(O=W.questionStack)==null?void 0:O[0];if(D!==void 0){var z,Q;return(z=L())==null?void 0:(Q=z.questions)==null?void 0:Q[D]}};
p={};return _.H("yt-slimline-survey-view-model",{class:_.VD("ytSlimlineSurveyViewModelHost",(p.ytSlimlineSurveyViewModelCollapsed=function(){return U()},p))},_.H("div",{class:"ytSlimlineSurveyViewModelContainer"},_.H(_.n,{cond:function(){var W;
return((W=V())==null?void 0:W.layout)==="SURVEY_LAYOUT_TYPE_ICONS"},
then:function(){return _.H(czt,{data:function(){return V()},
onSelect:function(W,O){var D,z;return _.T(function(Q){Y(!0);if(z=(D=S.data())==null?void 0:D.onSelectRating)_.wx(z),_.m_(J6m(O));_.OV(Q)})},
onDismiss:function(){Y(!0)}})}})))},"xa");var pNc=_.$k(function(S){return _.H("lockup-attachments-view-model",{class:"ytLockupAttachmentsViewModelHost"},_.H(_.yP,{data:function(){var p;return(p=S.data())==null?void 0:p.attachments}},{flexibleActionsViewModel:function(p){return _.H("div",{class:"ytLockupAttachmentsViewModelAttachment"},_.H(Crj,{data:p.data,
layout:function(){var U;return((U=S.lockupStyle())==null?void 0:U.arrangement)===1?0:1},
justifyContentOverride:function(){var U;return((U=S.lockupStyle())==null?void 0:U.arrangement)===1?"FLEXIBLE_ACTIONS_JUSTIFY_CONTENT_START":"FLEXIBLE_ACTIONS_JUSTIFY_CONTENT_EVENLY"}}))},
slimlineSurveyViewModel:function(p){return _.H("div",{class:"ytLockupAttachmentsViewModelAttachment"},_.H(STm,{data:p.data}))},
expandableMetadataViewModel:function(p){p=p.data;var U;return _.H("div",{class:"ytLockupAttachmentsViewModelAttachment"},(U=_.tW().resolve(_.AW(AzE)))==null?void 0:U({data:p}))},
adButtonGroupViewModel:function(p){return _.H("div",{class:"ytLockupAttachmentsViewModelAttachment"},_.H(tgI,{data:p.data}))}}))},"ya");var dyG=_.pA("rich_grid_min_item_width",310),MrG=_.pA("rich_grid_max_item_width",500);var yMq=_.$k(function(S){var p=S.data;return _.H("br-nz-badge-shape",{class:_.VD(function(){return zVG(p().brNzRatingBadgeType)}),
role:function(){return p().accessibilityText?"img":void 0},
"aria-label":function(){return p().accessibilityText}},function(){var U;
return(U=p())==null?void 0:U.text})},"za");_.cH(KNr);var USI,YTQ;USI=_.$k(function(S){var p=function(){var U=S.data(),Y,L;return U?JMR(U,!((Y=S.workaroundShortsIsThumbnailBadge)==null||!Y.call(S)),(L=S.modern)==null?void 0:L.call(S)):void 0};
return _.H("yt-badge-view-model",{class:_.VD("yt-badge-view-model-wiz",S.class)},_.H(_.r7,null,_.H(_.bb,{when:function(){var U;return!((U=p())==null||!U.brNzRatingBadgeType)}},function(){return _.H(yMq,{data:function(){return p()}})}),_.H(_.bb,{when:function(){return!!p()&&!p().brNzRatingBadgeType}},function(){return _.H(_.vG,{data:function(){return p()}})})))},"Aa");
YTQ=_.y("web_enable_sink_yt_badge_view_model")?USI:KNr;_.Bh=_.y("web_enable_sink_yt_badge_view_model")?USI:_.Oo(KNr);USI.idomCompat=!0;var j$e,biw;j$e=16/9;biw=2/3;_.qf=_.$k(function(S){var p=S.data;var U=S.className;var Y=S.imageSizeConfig;var L=S.notifyOnLoaded;S=_.vH();var I=function(){return p().style||"CONTENT_PREVIEW_IMAGE_STYLE_CIRCLE"},V=function(){var K;
return _.f6((K=p())==null?void 0:K.rendererContext)},W={};
W=(W["yt-content-preview-image-view-model-wiz"]=!0,W["yt-content-preview-image-view-model-wiz--circle-image"]=function(){return I()==="CONTENT_PREVIEW_IMAGE_STYLE_CIRCLE"},W["yt-content-preview-image-view-model-wiz--tappable"]=function(){return V()},W);
var O=function(){var K,G;return(G=(K=_.b(p().rendererContext,_.Hj))==null?void 0:K.label)!=null?G:""},D=function(){return Gaw(p())},z=function(){var K=rMw(I(),p().layoutMode||"CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_UNKNOWN",Y==null?void 0:Y(),hVu(D()),p().layoutWidth,p().layoutHeight),G=Object.assign({},K);
K.width&&(G.width=Math.round(K.width));K.height&&(G.height=Math.round(K.height));K.maxWidth&&(G.maxWidth=Math.round(K.maxWidth));K.maxHeight&&(G.maxHeight=Math.round(K.maxHeight));return G},Q=_.nS(function(){return z().height},void 0,"QOtei"),J=_.nS(function(){return z().width},void 0,"rKpuNc");
_.C6(S,function(){var K;return(K=p())==null?void 0:K.rendererContext});
return _.H("yt-content-preview-image-view-model",{el:S,role:function(){return V()?"link":void 0},
tabindex:function(){return V()?0:void 0},
class:_.VD(U,W,function(){var K=I();var G=Y==null?void 0:Y();K=K==="CONTENT_PREVIEW_IMAGE_STYLE_SQUARE"||K==="CONTENT_PREVIEW_IMAGE_STYLE_VERTICAL_RECTANGLE_2_BY_3"||K==="CONTENT_PREVIEW_IMAGE_STYLE_HORIZONTAL_RECTANGLE_16_BY_9"||K==="CONTENT_PREVIEW_IMAGE_STYLE_CUSTOM_ASPECT_RATIO"?(G==null?void 0:G.size)!=null&&G.size<=16?"yt-content-preview-image-view-model-wiz--extra-small-rounded-image":(G==null?void 0:G.size)!=null&&G.size<=24?"yt-content-preview-image-view-model-wiz--small-rounded-image":"yt-content-preview-image-view-model-wiz--large-rounded-image":
void 0;return K}),
style:function(){var K=z(),G=[];K.width&&G.push("width: "+K.width+"px");K.height&&G.push("height: "+K.height+"px");K.maxWidth&&G.push("max-width: "+K.maxWidth+"px");K.maxHeight&&G.push("max-height: "+K.maxHeight+"px");K.fullWidth&&G.push("width: 100%");return G.join(";")}},_.H(_.n,{cond:D,
then:function(K){return _.H(_.of,{data:K,alt:O,"data-disabled$":function(){return!O()},
notifyOnLoaded:L,targetWidth:J,targetHeight:Q,preserveWidth:function(){return!!J()},
preserveHeight:function(){return!!Q()}})}}),_.H(_.yP,{data:function(){var K;
return(K=p())==null?void 0:K.overlays}},{thumbnailHoverOverlayViewModel:Kt,
thumbnailOverlayButtonViewModel:_.v4t}))},"Ba");
_.qf.idomCompat=!0;var Mft=_.$k(function(S){var p=S.data;var U=S.className;var Y=S.useSmallLayout;var L=S.useMediumText;S=_.vH();var I={};L=(I["yt-attribution-view-model-wiz"]=!0,I["yt-attribution-view-model-wiz--medium-text"]=L,I);_.C6(S,function(){var V;return(V=p())==null?void 0:V.rendererContext});
return _.H("yt-attribution-view-model",{el:S,class:_.VD(U,L)},_.H(_.n,{cond:function(){return _.f6(p().rendererContext)},
then:function(){return _.H("button",{class:"yt-attribution-view-model-wiz--tappable"},_.H(LHm,{data:p,useSmallLayout:Y}))},
else:function(){return _.H(LHm,{data:p,useSmallLayout:Y})}}))},"Ca"),LHm=_.$k(function(S){var p=S.data;
var U=S.useSmallLayout;var Y=function(){return{size:(U==null?0:U())?16:24}};
return _.H(_.U0,null,_.H(_.yP,{data:function(){return p().contentPreviewImage}},{contentPreviewImageViewModel:function(L){return _.H(_.qf,{data:L.data,
className:"yt-attribution-view-model-wiz__attribution-image",imageSizeConfig:Y})}}),_.H(_.yP,{data:function(){return p().badge}},{badgeViewModel:function(L){return _.H(_.Bh,{data:L.data,
class:"yt-attribution-view-model-wiz__badge",modern:!0})}}),_.H(_.n,{cond:function(){return p().text},
then:function(){return _.H(_.i6,{text:function(){return p().text},
noWrap:!0,linkInheritColor:!0,className:"yt-attribution-view-model-wiz__attribution-text"})}}),_.H(_.n,{cond:function(){return p().suffix},
then:function(){return _.H(_.i6,{text:function(){return p().suffix},
linkInheritColor:!0,className:"yt-attribution-view-model-wiz__suffix"})}}))},"Da");
Mft.idomCompat=!0;var eVw=_.zy({avatarStackViewModel:_.ra,badgeViewModel:YTQ});_.cH(w2R);var Izj,dSc,Vfq,TfP,WHE,Ole;Izj=_.$k(function(S){var p=S.delimiter;var U=S.max;var Y=S.index;var L=S.isStandalone;return _.H(_.n,{cond:function(){return U()-1>Y()},
then:function(){var I={};return _.H("span",{class:_.VD("yt-content-metadata-view-model-wiz__delimiter",(I["yt-content-metadata-view-model-wiz__delimiter--standalone"]=L,I)),"aria-hidden":!0},p)}})},"Ea");
dSc=_.$k(function(S){var p=S.metadataPart;var U=S.maxLines;return _.H(_.i6,{text:function(){return p().text},
linkInheritColor:!0,className:function(){return l8r(U())},
userInput:!0})},"Fa");
Vfq=_.$k(function(S){var p=S.metadataPart;var U=S.maxLines;return _.H(_.n,{cond:function(){return p().tooltip},
then:function(Y){return _.H("span",{title:Y,role:"tooltip"},_.H(dSc,{metadataPart:p,maxLines:U}))},
else:function(){return _.H(dSc,{metadataPart:p,maxLines:U})}})},"Ga");
TfP=_.$k(function(S){var p=S.metadataPart;var U=S.isOverlay;var Y=S.useMediumText;var L=S.hideAvatar;var I=function(){return p().maxLines!==void 0?p().maxLines:1};
return _.H(_.U0,null,_.H(_.yP,{data:function(){return p().avatarStack}},{avatarStackViewModel:function(V){return _.H(_.ra,{data:V.data,
isOverlay:U,useMediumText:Y,hideAvatar:L})},
badgeViewModel:_.Bh}),_.H(_.n,{cond:function(){return p().text},
then:function(){return _.H(Vfq,{metadataPart:p,maxLines:I})}}))},"Ha");
WHE=_.$k(function(S){var p=S.metadataRow;var U=S.isInline;var Y=S.delimiter;var L=S.isOverlay;var I=S.useMediumText;var V=S.extensions;var W=function(){var D;return FNe(V==null?void 0:(D=V())==null?void 0:D.lockupMetadata,p())},O=function(){return p().metadataParts||[]};
S={};return _.H("div",{class:_.VD("yt-content-metadata-view-model-wiz__metadata-row",(S["yt-content-metadata-view-model-wiz__metadata-row--metadata-row-inline"]=U,S["yt-content-metadata-view-model-wiz__metadata-row--metadata-row-padding"]=function(){var D;return X2N(V==null?void 0:(D=V())==null?void 0:D.lockupMetadata,p())},S["yt-content-metadata-view-model-wiz__metadata-row--metadata-row-wrap"]=function(){var D;
return!!(V==null?0:(D=V())==null?0:D.lockupMetadata)&&p().badges&&!p().metadataParts},S))},_.H(_.yP,{data:function(){return p().badges}},{badgeViewModel:function(D){return _.H("div",{class:"yt-content-metadata-view-model-wiz__badge"},_.H(_.Bh,{data:D.data}))}}),_.H(_.KU,{each:O},function(D,z){return _.H(_.U0,null,_.H(TfP,{metadataPart:D,
isOverlay:L,useMediumText:I,hideAvatar:W}),_.H(Izj,{delimiter:Y,max:function(){return O().length},
index:z,isStandalone:!1}))}),_.H(_.n,{cond:function(){return p().isSpacerRow&&!U()},
then:function(){return _.H("div",{class:"yt-content-metadata-view-model-wiz__spacer"})}}))},"Ia");
Ole=_.$k(function(S){var p=_.vT(S,{layout:0,isOverlay:!1});S=p.className;var U=p.data,Y=p.layout,L=p.isOverlay,I=p.useMediumText,V=p.extensions;p=_.vH();var W=function(){return Y()===0};
_.C6(p,function(){return U().rendererContext});
var O=function(){return U().metadataRows||[]},D={};
return _.H("yt-content-metadata-view-model",{class:_.VD(S,"yt-content-metadata-view-model-wiz",(D["yt-content-metadata-view-model-wiz--inline"]=W,D["yt-content-metadata-view-model-wiz--tappable"]=function(){return _.f6(U().rendererContext)},D["yt-content-metadata-view-model-wiz--medium-text"]=I,D)),
el:p},_.H(_.KU,{each:O},function(z,Q){return _.H(_.U0,null,_.H(WHE,{metadataRow:z,isInline:W,delimiter:function(){return U().delimiter},
isOverlay:L,useMediumText:I,extensions:V}),_.H(_.n,{cond:function(){return W()&&!z.isSpacerRow},
then:function(){return _.H(Izj,{delimiter:function(){return U().delimiter},
max:function(){return O().length},
index:Q,isStandalone:!0})}}))}))},"Ja");
_.kkl=_.y("web_enable_sink_yt_content_metadata_view_model")?Ole:_.Oo(w2R);Ole.idomCompat=!0;var HlP=_.$k(function(S){var p={};return _.H("yt-lockup-metadata-view-model",{class:_.VD("yt-lockup-metadata-view-model-wiz",function(){a:{var U=S.lockupStyle();if(U==null?0:U.isOverlay)U="yt-lockup-metadata-view-model-wiz--overlay";else switch(U==null?void 0:U.arrangement){case 1:U="yt-lockup-metadata-view-model-wiz--horizontal";break a;default:U="yt-lockup-metadata-view-model-wiz--vertical"}}return U},function(){a:{var U=S.lockupStyle();
if(U==null?0:U.isTiny)U="yt-lockup-metadata-view-model-wiz--tiny";else switch(U==null?void 0:U.sizing){case "MINI":case "EXTRA_COMPACT":case "COMPACT":U="yt-lockup-metadata-view-model-wiz--compact";break a;default:U="yt-lockup-metadata-view-model-wiz--standard"}}return U},(p["yt-lockup-metadata-view-model-wiz--overlay"]=function(){var U;
return(U=S.lockupStyle())==null?void 0:U.isOverlay},p["yt-lockup-metadata-view-model-wiz--card"]=function(){var U;
return(U=S.lockupStyle())==null?void 0:U.isCard},p["yt-lockup-metadata-view-model-wiz--centered"]=function(){var U;
return(U=S.lockupStyle())==null?void 0:U.isCentered},p["yt-lockup-metadata-view-model-wiz--typography-bump"]=function(){var U;
return(U=S.lockupStyle())==null?void 0:U.typographyBump},p["yt-lockup-metadata-view-model-wiz--legacy-typography"]=function(){var U;
return(U=S.lockupStyle())==null?void 0:U.useLegacyTypography},p["yt-lockup-metadata-view-model-wiz--rich-grid-legacy-typography"]=function(){var U;
return(U=S.lockupStyle())==null?void 0:U.useRichGridLegacyTypography},p))},_.H(_.yP,{data:function(){return S.data().image}},{avatarStackViewModel:function(U){return _.H("div",{class:"yt-lockup-metadata-view-model-wiz__avatar"},_.H(_.ra,{data:U.data,
overrides:{layoutType:"AVATAR_STACK_LAYOUT_CLUSTER"}}))},
avatarViewModel:function(U){return _.H("div",{class:"yt-lockup-metadata-view-model-wiz__avatar"},_.H(_.bS,{data:U.data}))},
decoratedAvatarViewModel:function(U){return _.H("div",{class:"yt-lockup-metadata-view-model-wiz__avatar"},_.H(_.jH,{data:U.data}))}}),_.H("div",{class:"yt-lockup-metadata-view-model-wiz__text-container"},_.H("h3",{class:"yt-lockup-metadata-view-model-wiz__heading-reset",
title:function(){var U;return(U=S.data().title)==null?void 0:U.content}},_.H(_.n,{cond:function(){return S.data().title},
then:function(U){return _.H(_.pY,{command:S.lockupCommand,className:"yt-lockup-metadata-view-model-wiz__title",ariaLabel:S.lockupAccessibilityLabel},_.H(_.i6,{text:U}))}})),_.H("div",{class:"yt-lockup-metadata-view-model-wiz__metadata"},_.H(_.yP,{data:function(){return S.data().metadata}},{contentMetadataViewModel:function(U){return _.H(_.kkl,{data:U.data,
layout:1,useMediumText:function(){var Y,L;return((Y=S.lockupStyle())==null?void 0:Y.typographyBump)||((L=S.lockupStyle())==null?void 0:L.useRichGridLegacyTypography)},
extensions:function(){var Y,L;return{lockupMetadata:{byline:{hideAvatar:((Y=S.lockupStyle())==null?void 0:Y.arrangement)===0,addPadding:((L=S.lockupStyle())==null?void 0:L.arrangement)===1}}}}})}})),_.H(_.yP,{data:function(){return S.data().attribution}},{attributionViewModel:function(U){return _.H("div",{class:"yt-lockup-metadata-view-model-wiz__attribution"},_.H(Mft,{data:U.data,
useSmallLayout:!0}))}})),_.H("div",{class:"yt-lockup-metadata-view-model-wiz__menu-button"},_.H(_.yP,{data:function(){return S.data().menuButton}},{buttonViewModel:function(U){return _.H(_.PG,{data:U.data,
buttonOverrides:function(){var Y;return((Y=S.lockupStyle())==null?0:Y.isOverlay)?{style:"overlay"}:void 0}})}})))},"Ka");
HlP.idomCompat=!0;var DSt=_.$k(function(S){var p=_.vH();_.hW(function(){requestAnimationFrame(function(){_.Nz(p.value)})});
var U={},Y={},L={};return _.H("notification-multi-action-renderer",{class:_.VD("ytNotificationMultiActionRendererHost",(U.ytNotificationMultiActionRendererHostLegacyShelfStyle=function(){var I;return(I=S.useLegacyShelfStyle)==null?void 0:I.call(S)},U)),
el:p},_.H("span",{"aria-live":"polite",class:_.VD("ytNotificationMultiActionRendererTextContainer",(Y.ytNotificationMultiActionRendererTextContainerLegacyShelfStyle=function(){var I;return(I=S.useLegacyShelfStyle)==null?void 0:I.call(S)},Y))},_.H(_.i6,{text:function(){return S.data().responseText}})),_.H("div",{class:_.VD("ytNotificationMultiActionRendererButtonContainer",(L.ytNotificationMultiActionRendererButtonContainerLegacyShelfStyle=function(){var I;
return(I=S.useLegacyShelfStyle)==null?void 0:I.call(S)},L))},_.H(_.yP,{data:function(){var I;
return(I=S.data().buttons)==null?void 0:I.map(function(V){if(V=V.buttonRenderer){var W,O=Object,D=O.assign,z=(W=V.icon)==null?void 0:W.iconType;W=(W=V.command||V.serviceEndpoint||V.navigationEndpoint)?{innertubeCommand:W}:void 0;V={buttonViewModel:D.call(O,{},{iconName:z,onTap:W,trackingParams:V.trackingParams,titleFormatted:V.text?_.Fi(V.text):void 0},a8R(V))}}else V=void 0;return V}).filter(function(V){return!!V})}},{buttonViewModel:function(I,V){return _.H("div",null,_.H(_.PG,{data:I.data,
className:"ytNotificationMultiActionRendererButton",buttonOverrides:function(){var W;return((W=S.useModernStyles)==null?0:W.call(S))?{type:V()?"filled":"tonal",style:"mono"}:void 0}}))}})))},"La");var znc=_.$k(function(S){var p=_.vH();_.hW(function(){requestAnimationFrame(function(){_.Nz(p.value)})});
return _.H("notification-text-renderer",{el:p,class:"ytNotificationTextRendererHost","aria-live":"polite"},_.H(_.i6,{text:function(){return S.data().successResponseText}}))},"Ma");_.Qcj=_.$k(function(S){var p=_.Ty(evr,function(){var Y;return f8u((Y=S.contentId)==null?void 0:Y.call(S))}),U=function(){var Y;
return _.b((Y=p())==null?void 0:Y.command,_.z1)};
return _.H(_.n,{cond:function(){var Y;if(!(Y=U())){var L;Y=_.b((L=p())==null?void 0:L.command,tJE)}return Y},
then:function(){return _.H(_.n,{cond:U,then:function(){var Y={};return _.H("div",{class:_.VD("ytDismissibleItemReplacedContent",function(){var L;return Cdw((L=S.aspectRatio)==null?void 0:L.call(S))})},_.H("div",{class:_.VD((Y.ytDismissibleItemAspectRatioContainer=function(){var L;
return((L=S.aspectRatio)==null?void 0:L.call(S))!==void 0},Y))},_.H(_.yP,{data:function(){var L;
return(L=U())==null?void 0:L.item}},{notificationMultiActionRenderer:function(L){return _.H(DSt,{data:L.data,
useModernStyles:S.useModernStyle,useLegacyShelfStyle:S.useLegacyShelfStyle})},
notificationTextRenderer:znc})))}})},
else:S.children})},"Na");_.nom=_.$k(function(S){var p=S.data;var U=S.customCommandResolver;S=_.$v();var Y=function(){var I;return((I=p().interaction)==null?0:I.onTap)?function(V){var W;ACw(V,(W=p().interaction)==null?void 0:W.onTap,U)}:void 0},L=function(){var I,V=p(),W=Y(),O=(I=_.b(p().rendererContext,_.Hj))==null?void 0:I.label;
a:switch(V.style){case "AD_AVATAR_STYLE_ROUNDED_CORNER":I=1;break a;default:I=0}return{size:myd(V.size),type:I,onTap:W,accessibilityText:O}};
_.tU(S,{visibilityCallback:function(I){var V,W=(V=p().interaction)==null?void 0:V.onFirstVisible;I&&W&&_.wx(W)},
showOption:_.$P});return _.H("ad-avatar-view-model",{class:function(){var I;return((I=p().interaction)==null?0:I.onTap)?"ytwAdAvatarViewModelHostIsClickableAdComponent":"ytwAdAvatarViewModelHost"},
el:S},_.H(_.n,{cond:function(){return p().image},
then:function(I){return _.H(cVm,{data:L,image:I})}}))},"Oa");_.AQ=_.$k(function(S){S=_.vT(S,{hasDot:!1});var p=Object.assign({},S),U=S.data,Y=S.hasDot;S=S.customCommandResolver;var L=(delete p.data,delete p.hasDot,delete p.customCommandResolver,p);p=function(){return U().style};
p!==void 0&&p!==null||_.fU(Error("Ch"));p=_.vH();_.mL(p,function(){return U().interaction},S);
return _.H("ad-badge-view-model",{class:_.VD(function(){var I;return((I=U().interaction)==null?0:I.onTap)?"ytwAdBadgeViewModelHostIsClickableAdComponent":"ytwAdBadgeViewModelHost"},function(){var I=L.adRenderingContextType();
U();return I==="AD_RENDERING_CONTEXT_TYPE_BROWSE"?"ytwAdBadgeViewModelHostStyleStandardBrowse":"ytwAdBadgeViewModelHostStyleStandard"}),
el:p},_.H(_.vG,{data:function(){var I;U();return{type:2,text:(I=U().label)==null?void 0:I.content,adsIncludeDot:Y(),isOverlay:U().style==="AD_BADGE_STYLE_STARK_OVERLAY"}}}))},"Pa");var JCI;_.tQ=_.$k(function(S){var p=S.data;var U=S.customCommandResolver;var Y=S.adRenderingContextType;S=_.vH();_.mL(S,function(){return p().interaction},U);
_.tU(S,{visibilityCallback:function(L){var I,V=(I=p().interaction)==null?void 0:I.onFirstVisible;L&&V&&_.wx(V)},
showOption:_.$P});return _.H("ad-details-line-view-model",{class:function(){var L;return((L=p().interaction)==null?0:L.onTap)?"ytwAdDetailsLineViewModelHostIsClickableAdComponent":"ytwAdDetailsLineViewModelHost"},
el:S},_.H(_.n,{cond:function(){return p().style},
then:function(L){return _.H(_.KU,{each:function(){var I;return((I=p())==null?void 0:I.attributes)||[]},
keyBy:"INDEX"},function(I){return _.H(JCI,{attribute:I,style:L,adRenderingContextType:function(){return Y()}})})}}))},"Qa");
JCI=_.$k(function(S){var p=S.attribute;var U=S.style;var Y=S.adRenderingContextType;return _.H(_.n,{cond:function(){return p().text},
then:function(L){return _.H(_.i6,{text:L,className:function(){var I=Y();U();return I==="AD_RENDERING_CONTEXT_TYPE_BROWSE"?"ytwAdDetailsLineViewModelHostTextStyleStandardBrowse":"ytwAdDetailsLineViewModelHostTextStyleStandard"}})}})},"Ra");var yCI=_.$k(function(S){var p=S.data;var U=S.typographyBump;var Y=function(){return p().adRenderingContextType==="AD_RENDERING_CONTEXT_TYPE_SEARCH"};
S={};return _.H(_.U0,null,_.H("div",{class:"ytwFeedAdMetadataViewModelHostMetadata"},_.H(_.i6,{text:function(){return p().headline},
className:_.VD("ytwFeedAdMetadataViewModelHostTextsStyleCompactHeadline",(S.ytwFeedAdMetadataViewModelHostTextsStyleCompactHeadlineSearch=function(){return Y==null?void 0:Y()},S.ytwFeedAdMetadataViewModelHostTextsStyleCompactHeadlineTypographyBump=function(){return(U==null?void 0:U())&&!(Y==null?0:Y())},S)),
linkInheritColor:!0}),_.H(_.n,{cond:function(){return p().description},
then:function(L){var I={};return _.H(_.i6,{text:L,className:_.VD("ytwFeedAdMetadataViewModelHostTextsStyleCompactDescription",(I.ytwFeedAdMetadataViewModelHostTextsStyleCompactDescriptionSearch=function(){return Y==null?void 0:Y()},I.ytwFeedAdMetadataViewModelHostTextsStyleCompactDescriptionTypographyBump=function(){return(U==null?void 0:U())&&!(Y==null?0:Y())},I)),
linkInheritColor:!0})}}),_.H(_.n,{cond:function(){return p().secondaryDescription},
then:function(L){var I={};return _.H(_.i6,{text:L,className:_.VD("ytwFeedAdMetadataViewModelHostTextsStyleCompactSecondaryDescription",(I.ytwFeedAdMetadataViewModelHostTextsStyleCompactSecondaryDescriptionTypographyBump=function(){return U==null?void 0:U()},I)),
linkInheritColor:!0})}}),_.H("div",{class:function(){return Y()?"ytwFeedAdMetadataViewModelHostMetadataAdBadgeDetailsLineContainerStyleCompactSearch":"ytwFeedAdMetadataViewModelHostMetadataAdBadgeDetailsLineContainer"}},_.H(_.n,{cond:function(){return p().adAvatar},
then:function(){return _.H("div",{class:"ytwFeedAdMetadataViewModelHostAvatarStyleCompact"},_.H(_.yP,{data:function(){return p().adAvatar}},{adAvatarViewModel:_.nom}))}}),_.H(_.yP,{data:function(){return p().adBadge}},{adBadgeViewModel:function(L){return _.H(_.AQ,{data:L.data,
hasDot:function(){return!!p().adDetailsLine},
adRenderingContextType:function(){return p().adRenderingContextType}})}}),_.H(_.yP,{data:function(){return p().adDetailsLine}},{adDetailsLineViewModel:function(L){return _.H(_.tQ,{data:L.data,
adRenderingContextType:function(){return p().adRenderingContextType}})}}))),_.H("div",{class:function(){return Y()?"ytwFeedAdMetadataViewModelHostMenuSearch":"ytwFeedAdMetadataViewModelHostMenu"}},_.H(_.yP,{data:function(){return p().menu}},{buttonViewModel:function(L){return _.H(_.PG,{data:L.data,
buttonOverrides:function(){a:switch(p().adRenderingContextType){case "AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT":var I="S";break a;default:I="M"}return{size:I}}})}})))},"Sa"),KHE=_.$k(function(S){var p=S.data;
var U=S.noBottomMargin;var Y=S.useVideoLockupTopPadding;var L=S.typographyBump;S={};S=_.VD("ytwFeedAdMetadataViewModelHostMetadata",(S.ytwFeedAdMetadataViewModelHostMetadataNoBottomMargin=function(){return U==null?void 0:U()},S.ytwFeedAdMetadataViewModelHostNoTopPadding=function(){return Y==null?void 0:Y()},S));
var I=function(){return p().adBadge};
I!==void 0&&I!==null||_.fU(Error("Dh"));I={};var V={};return _.H(_.U0,null,_.H(_.n,{cond:function(){return p().adAvatar},
then:function(){return _.H("div",{class:"ytwFeedAdMetadataViewModelHostAvatarStyleStandard"},_.H(_.yP,{data:function(){return p().adAvatar}},{adAvatarViewModel:function(W){return _.H(_.nom,{data:W.data})}}))}}),_.H("div",{class:S},_.H("div",{class:_.VD("ytwFeedAdMetadataViewModelHostTextsStyleStandardHeadline",(I.ytwFeedAdMetadataViewModelHostTextsStyleStandardHeadlineTypographyBump=function(){return L==null?void 0:L()},I.ytwFeedAdMetadataViewModelHostTextsStyleStandardHeadlineTypographyBumpV2=function(){return(L==
null?void 0:L())&&_.y("web_enable_typography_bump_v2")},I))},_.H(_.i6,{text:function(){return p().headline},
linkInheritColor:!0})),_.H(_.n,{cond:function(){return p().description},
then:function(W){return _.H(_.i6,{text:W,className:"ytwFeedAdMetadataViewModelHostTextsStyleStandardDescription",linkInheritColor:!0})}}),_.H("div",{class:function(){return p().adRenderingContextType==="AD_RENDERING_CONTEXT_TYPE_BROWSE"&&_.y("enable_top_landscape_image_components_legacy_ui_web")?"ytwFeedAdMetadataViewModelHostMetadataAdBadgeDetailsLineContainerStyleStandardLegacy":"ytwFeedAdMetadataViewModelHostMetadataAdBadgeDetailsLineContainerStyleStandard"}},_.H(_.yP,{data:function(){return p().adBadge}},
{adBadgeViewModel:function(W){return _.H(_.AQ,{data:W.data,
hasDot:function(){return!!p().adDetailsLine},
adRenderingContextType:function(){return p().adRenderingContextType}})}}),_.H(_.yP,{data:function(){return p().adDetailsLine}},{adDetailsLineViewModel:function(W){return _.H(_.tQ,{data:W.data,
adRenderingContextType:function(){return p().adRenderingContextType}})}})),_.H(_.n,{cond:function(){return p().secondaryDescription},
then:function(W){return _.H(_.i6,{text:W,className:"ytwFeedAdMetadataViewModelHostTextsStyleStandardSecondaryDescription",linkInheritColor:!0})}})),_.H("div",{class:_.VD("ytwFeedAdMetadataViewModelHostMenuStyleStandard",(V.ytwFeedAdMetadataViewModelHostNoTopPadding=function(){return Y==null?void 0:Y()},V))},_.H(_.yP,{data:function(){return p().menu}},{buttonViewModel:_.PG})))},"Ta"),blw=_.$k(function(S){var p=S.data;
var U=S.noBottomMargin;var Y=S.listenToTapEvent;var L=S.setTouchEndHandler;var I=S.useVideoLockupTopPadding;var V=S.typographyBump;var W=_.vH();_.mL(W,function(){return p().interaction},void 0,function(){return Y==null?void 0:Y()});
S=_.d(_.kj(!1,void 0,"qjt0Xc"));var O=S.next().value,D=S.next().value;S=_.kL(function(){(L==null?0:L())&&!O()&&(W.value.click(),D(!0),setTimeout(function(){D(!1)},100));
return!1});
_.tU(W,{visibilityCallback:function(z){var Q,J=(Q=p().interaction)==null?void 0:Q.onFirstVisible;z&&J&&_.wx(J)},
showOption:_.$P});return _.H("feed-ad-metadata-view-model",{class:function(){var z;return((z=p().interaction)==null?0:z.onTap)?"ytwFeedAdMetadataViewModelHostIsClickableAdComponent":"ytwFeedAdMetadataViewModelHost"},
el:W,"on:touchend":S},_.H(_.r7,null,_.H(_.bb,{when:function(){return p().style==="FEED_AD_METADATA_STYLE_COMPACT"}},function(){return _.H(yCI,{data:p,
typographyBump:V})}),_.H(_.bb,{when:function(){return p().style==="FEED_AD_METADATA_STYLE_STANDARD"}},function(){return _.H(KHE,{data:p,
noBottomMargin:U,useVideoLockupTopPadding:I,typographyBump:V})})))},"Ua");var jcq;_.ch=_.$k(function(S){return _.H("yt-lockup-view-model",{class:_.VD(S.className)},_.H(_.Qcj,{contentId:function(){return S.data().contentId},
useModernStyle:!0,aspectRatio:function(){var p,U;return((p=S.containerType)==null?void 0:p.call(S))!==3?HiX(S.data().contentType,(U=S.force16By9ThumbnailAspectRatio)==null?void 0:U.call(S)):void 0}},function(){return _.H(jcq,Object.assign({},S))}))},"Va");
jcq=_.$k(function(S){S=_.vT(S,{containerLayoutConfig:void 0,protectBackground:void 0,containerType:void 0,sizing:void 0,typographyBump:!1,force16By9ThumbnailAspectRatio:!1,thumbnailFixedWidth:void 0,thumbnailTargetWidth:void 0,lockupExperiments:void 0,elementsPerRow:void 0});var p=S.data,U=S.containerLayoutConfig,Y=S.containerType,L=S.sizing,I=S.protectBackground,V=S.typographyBump,W=S.force16By9ThumbnailAspectRatio,O=S.thumbnailFixedWidth,D=S.thumbnailTargetWidth,z=S.lockupExperiments,Q=S.elementsPerRow;
S=_.vH();_.C6(S,function(){var sX;return(sX=p())==null?void 0:sX.rendererContext},void 0,void 0,["A".toString(),
"BUTTON".toString(),"YT-EXPANDABLE-METADATA-VIEW-MODEL","FEED-AD-METADATA-VIEW-MODEL","AD-BADGE-VIEW-MODEL","AD-DETAILS-LINE-VIEW-MODEL"],!0);var J=_.Xc($Su),K=_.tW().resolve(_.AW(aTm)),G=K?{}:void 0,X=function(){var sX,mq,au;return(au=(mq=_.b((sX=p())==null?void 0:sX.rendererContext,_.Hj))==null?void 0:mq.label)!=null?au:void 0},Z=function(){var sX=U==null?void 0:U(),mq;
if(sX==null?0:sX.containerType){var au=(mq=p())==null?void 0:mq.contentType;mq=z();var XI=V(),nE=D(),ut=I();sX=Object.assign({},Dye(WNw(sX),Vrq(sX.responsiveSize),XI,au,sX.force16By9ThumbnailAspectRatio,nE,ut,mq),{thumbnailFixedWidth:sX.contentPreviewWidth})}else sX=Dye(Y(),L(),V(),(au=p())==null?void 0:au.contentType,W(),D(),I(),z());return sX};
K&&G&&K({enabled:function(){return J()},
itemPlaybackModel:function(){return p().itemPlayback},
thumbnailElRef:function(){return G.thumbnailElRef},
containerElRef:S,options:function(){var sX,mq=(sX=_.b(p().metadata,Ezq))==null?void 0:sX.endorsement;sX=G.thumbnailOverlays||[];mq&&sX.push(mq);var au,XI;return{thumbnail:G.thumbnail,thumbnailOverlays:sX,accessibilityText:X(),thumbnailSize:G.thumbnailSize,enableRounding:Z().isCollection,containPlayerWithinThumbnail:Z().isCollection,trackingParams:(au=_.b(p().rendererContext,_.D$))==null?void 0:(XI=au.loggingDirectives)==null?void 0:XI.trackingParams}}});
var l=0;K=_.d(_.kj(!1,void 0,"HzAs3"));var a=K.next().value,N=K.next().value;K=_.d(_.kj(!1,void 0,"ujOXud"));var m=K.next().value,A=K.next().value;K=_.kL(function(){var sX=J()&&p().itemPlayback;m()?(_.PA.cancelJob(l),l=_.PA.addJob(function(){N(!sX)},8,32)):N(!sX);
return!0});
var q=_.kL(function(){l&&(_.PA.cancelJob(l),l=0);N(!1)});
_.FG(function(){l&&(_.PA.cancelJob(l),l=0)});
var TG=E3r(function(){A(!0)}),Je=TG.touchFeedbackEvents,GG=TG.touchFeedbackOnPointerUp,Zw=TG.touchFeedbackOnPointerDown;
TG=TG.touchFeedbackOnPointerLeave;var Ru={};return _.H("div",{el:S,class:_.VD("yt-lockup-view-model-wiz",function(){a:{var sX=Z();if(sX.isOverlay)sX="yt-lockup-view-model-wiz--overlay";else switch(sX.arrangement){case 1:sX="yt-lockup-view-model-wiz--horizontal";break a;default:sX="yt-lockup-view-model-wiz--vertical"}}return sX},function(){a:{var sX=Z();
if(sX.isOverlay)sX="yt-lockup-view-model-wiz--overlay";else{switch(sX.collectionStackNumber){case 1:sX="yt-lockup-view-model-wiz--collection-stack-1";break a;case 2:sX="yt-lockup-view-model-wiz--collection-stack-2";break a}sX=void 0}}return sX},(Ru["yt-lockup-view-model-wiz--card"]=function(){return Z().isCard},Ru["yt-lockup-view-model-wiz--compact"]=function(){return Z().isTiny||Z().sizing!=="STANDARD"},Ru["yt-lockup-view-model-wiz--protect-background"]=I,Ru["yt-lockup-view-model-wiz--add-margins"]=
function(){return Z().addMarginForFullbleed},Ru["yt-lockup-view-model-wiz--centered"]=function(){return Z().isCentered},Ru["yt-lockup-view-model-wiz--fullbleed"]=function(){return Z().fullbleed},Ru["yt-lockup-view-model-wiz--single-column-grid"]=function(){return Q()===1&&Y()===2},Ru["yt-lockup-view-model-wiz--rich-grid-legacy-margin"]=function(){var sX;
return(sX=z())==null?void 0:sX.useRichGridLegacyMargin},Ru)),
"on:mousedown":Zw,"on:mouseleave":q,"on:mouseup":GG,"on:mouseover":K,"on:touchstart":Zw,"on:touchend":GG,"on:pointerleave":TG},_.H(_.pY,{command:function(){var sX;return _.aF((sX=p())==null?void 0:sX.rendererContext)},
ariaHidden:!0,tabIndex:-1,className:"yt-lockup-view-model-wiz__content-image",style:function(){return O()&&Z().arrangement===1?"width: "+O():""}},_.H(_.yP,{data:function(){var sX;
return(sX=p())==null?void 0:sX.contentImage}},{thumbnailViewModel:function(sX){return _.H(_.vh,{data:sX.data,
aspectRatio:function(){return Z().aspectRatio},
disableRounding:function(){return Z().disableRounding},
width:D,hovered:a,isClip:function(){var mq;return((mq=p())==null?void 0:mq.contentType)==="LOCKUP_CONTENT_TYPE_CLIP"},
playbackRef:ooe(G),lockupExperiments:function(){return z()}})},
collectionThumbnailViewModel:function(sX){return _.H(qaQ,{data:sX.data,aspectRatio:function(){return Z().aspectRatio},
disableRounding:function(){return Z().disableRounding},
width:D,doubleStack:function(){return Z().collectionStackNumber===2},
hovered:a,playbackRef:ooe(G)})},
decoratedAvatarViewModel:_.jH})),_.H("div",{class:"yt-lockup-view-model-wiz__metadata"},_.H(_.yP,{data:function(){var sX;return(sX=p())==null?void 0:sX.metadata}},{lockupMetadataViewModel:function(sX){return _.H(HlP,{data:sX.data,
lockupStyle:Z,lockupCommand:function(){var mq;return _.aF((mq=p())==null?void 0:mq.rendererContext)},
lockupAccessibilityLabel:function(){return X()}})},
feedAdMetadataViewModel:function(sX){return _.H(blw,{data:sX.data,noBottomMargin:function(){return!0},
useVideoLockupTopPadding:function(){return!0},
typographyBump:V})}}),_.H(_.yP,{data:function(){var sX;
return(sX=p())==null?void 0:sX.attachmentSlot}},{lockupAttachmentsViewModel:function(sX){return _.H(pNc,{data:sX.data,
lockupStyle:Z})}})),_.H(_.yD,{model:function(){a:{switch(Z().collectionStackNumber){case 1:var sX=8;
break a;case 2:sX=12;break a}sX=void 0}return{isExtended:!0,triggerEvents:!0,customTopExtend:sX}},
pointerDownEvent:Je.pointerDownEvent,pointerUpEvent:Je.pointerUpEvent,pointerLeaveEvent:Je.pointerLeaveEvent}))},"Wa");
_.ch.idomCompat=!0;_.qm(_.ch,"yt-lockup-view-model",{props:{data:_.x2,containerLayoutConfig:_.x2,containerType:_.x2,sizing:_.x2,protectBackground:_.x2,typographyBump:_.x2,thumbnailFixedWidth:_.x2,thumbnailTargetWidth:_.x2,force16By9ThumbnailAspectRatio:_.x2,className:_.x2,lockupExperiments:_.x2,elementsPerRow:_.x2}});_.cH(BFr);var rCE=_.Oo(BFr,{callbacks:{onExpandClick:!0}});var pfu=_.zy({buttonViewModel:_.PG}),Gkt=_.Oo(cMw);_.cH(cMw);_.cH(AMe);_.cH(tru);_.qm(Gkt,"yt-video-attribute-view-model",{props:{data:_.x2,className:_.x2}});var Se=function(){var S=_.w.apply(this,arguments)||this;S.useHighlightStyling=_.y("web_enable_deeper_metadata_highlight_styling");S.isSearch=!1;S.JSC$13047_lastScrollContainerWidth=NaN;S.pageLoadingFromNavigation=!1;S.currentIndex=0;S.supportComponentResize=!1;return S};
_.r(Se,_.w);_.M=Se.prototype;
_.M.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}}}}}};
_.M.attached=function(){document.addEventListener("yt-page-type-changed",_.d9(this,this.onPageChange))};
_.M.detached=function(){document.removeEventListener("yt-page-type-changed",_.d9(this,this.onPageChange))};
_.M.getItemsPath=function(){return"data.cards"};
_.M.onIronResize=function(){this.updateListStyles()};
_.M.dataChanged=function(){this.updateListStyles();this.supportComponentResize=!!this.centerItems;var S;this.ytdHorizontalListBehavior.initialStartIndex=(this==null?void 0:(S=this.data)==null?void 0:S.scrollToIndex)||0;this.ytdHorizontalListBehavior.reset();this.ytdHorizontalListBehavior.centerListItems=_.y("problem_walkthrough_sd")&&!!this.centerItems};
_.M.computeCardListStyle=function(S){return S||null};
_.M.computeEmpty=function(S){return!this.get("cards.length",S)};
_.M.computeThumbnailStyle=function(S){return this.get("header.richListHeaderRenderer.channelThumbnail.channelThumbnailWithLinkRenderer.style",S)||null};
_.M.computeHasSubtitle=function(S){return!!this.get("header.richListHeaderRenderer.subtitle",S)};
_.M.computeInitialCountNumber=function(S){return this.hasSquareMiniApp&&S==="HORIZONTAL_CARD_LIST_STYLE_TYPE_CHANNEL_SHELF"?12:this.hasSkinnyWidthPortraitMiniApp&&S==="HORIZONTAL_CARD_LIST_STYLE_TYPE_CHANNEL_SHELF"?7:S==="HORIZONTAL_CARD_LIST_STYLE_TYPE_CHANNEL_SHELF"?6:S==="HORIZONTAL_CARD_LIST_STYLE_TYPE_INLINE_RECOMMENDATIONS"?8:S==="HORIZONTAL_CARD_LIST_STYLE_TYPE_NARROW_SHELF"?10:this.isSearch&&S==="HORIZONTAL_CARD_LIST_STYLE_TYPE_ENGAGEMENT_PANEL_SECTION"?7:this.inlineStructuredDescription?
8:4};
_.M.computeUseFloorScrolling=function(S){return S==="HORIZONTAL_CARD_LIST_STYLE_TYPE_RELATED_CHANNELS"||this.hasSquareMiniApp};
_.M.computeHasGameCard=function(S){return(S=this.get("cards",S))?S.some(function(p){return p.gameCardRenderer}):!1};
_.M.computeCenterHeaderTitle=function(S){return!(S==null||!S.centerHeaderTitle)};
_.M.computeHasPortraitMiniApp=function(S){return(S=S==null?void 0:S.cards)?S.some(function(p){return p.miniGameCardViewModel&&p.miniGameCardViewModel.layout==="MINI_APP_LAYOUT_PORTRAIT"}):!1};
_.M.computeHasSquareMiniApp=function(S){return(S=S==null?void 0:S.cards)?S.some(function(p){return p.miniGameCardViewModel&&p.miniGameCardViewModel.layout==="MINI_APP_LAYOUT_SQUARE"}):!1};
_.M.computeHasSkinnyWidthPortraitMiniApp=function(S){return(S=S==null?void 0:S.cards)?S.some(function(p){return p.miniGameCardViewModel&&p.miniGameCardViewModel.width===135}):!1};
_.M.computeCenterItems=function(S){return!!S};
_.M.computeHasInfoPanel=function(S){var p;return S==null?void 0:(p=S.cards)==null?void 0:p.some(function(U){return U.infoPanelContentRenderer})};
_.M.handleKeyDown=function(){this.ytdHorizontalListBehavior.fillRemainingListItems();this.ytRendererBehavior.markDirty()};
_.M.getItemByIndex=function(S){var p=this.items.children;return p&&p.length>S?p[S]:void 0};
_.M.onPageChange=function(){var S=this;this.pageLoadingFromNavigation=!0;_.PA.addJob(function(){S.pageLoadingFromNavigation=!1;_.pp(S.hostElement,"yt-terminate-video-preview-action")},8)};
_.M.updateListStyles=function(){if(_.y("problem_walkthrough_sd")&&this.JSC$13047_scrollContainer!==void 0){var S=this.JSC$13047_scrollContainer.clientWidth;S!==this.JSC$13047_lastScrollContainerWidth&&(this.JSC$13047_lastScrollContainerWidth=S,_.Ms(this.hostElement,{"--ytd-horizontal-card-list-item-width":Math.min(S*.8,415)+"px"}),_.cv(this.hostElement,"iron-resize"))}};
_.$u.Object.defineProperties(Se.prototype,{hideNavigationButton:{configurable:!0,enumerable:!0,get:function(){return!(!this.inlineStructuredDescription||!_.y("sd_horizontal_list_show_nav_killswitch"))}},
modernChapters:{configurable:!0,enumerable:!0,get:function(){var S,p,U;return!!((S=this.data)==null?0:(p=S.cards)==null?0:(U=p[0])==null?0:U.macroMarkersListItemRenderer)}},
hasVideoAttributeViewModels:{configurable:!0,enumerable:!0,get:function(){var S,p,U;return!!((S=this.data)==null?0:(p=S.cards)==null?0:(U=p[0])==null?0:U.videoAttributeViewModel)}},
modernInfoPanels:{configurable:!0,enumerable:!0,get:function(){var S,p,U;return _.y("enable_desktop_amsterdam_info_panels")&&!!((S=this.data)==null?0:(p=S.cards)==null?0:(U=p[0])==null?0:U.infoPanelContentRenderer)}}});
Se.prototype.dataChanged=Se.prototype.dataChanged;Se.prototype.onIronResize=Se.prototype.onIronResize;_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],Se.prototype,"ytRendererBehavior",void 0);_.x([_.F(_.qH.YtRendererstamperBehavior),_.E("design:type",Object)],Se.prototype,"ytRendererstamperBehavior",void 0);_.x([_.F(_.A6.YtdHorizontalListBehavior),_.E("design:type",Object)],Se.prototype,"ytdHorizontalListBehavior",void 0);
_.x([_.F(_.Zh),_.E("design:type",Object)],Se.prototype,"ytdDismissibleItemBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],Se.prototype,"data",void 0);_.x([_.g({value:!1,reflectToAttribute:!0}),_.E("design:type",Boolean)],Se.prototype,"useCustomColors",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],Se.prototype,"useHighlightStyling",void 0);
_.x([_.g({reflectToAttribute:!0,computed:"computeCardListStyle(data.style.type)"}),_.E("design:type",Object)],Se.prototype,"cardListStyle",void 0);_.x([_.g({value:!0,reflectToAttribute:!0,computed:"computeEmpty(data)"}),_.E("design:type",Boolean)],Se.prototype,"empty",void 0);_.x([_.g({reflectToAttribute:!0,computed:"computeHasSubtitle(data)"}),_.E("design:type",Boolean)],Se.prototype,"hasSubtitle",void 0);
_.x([_.g({reflectToAttribute:!0,computed:"computeThumbnailStyle(data)"}),_.E("design:type",Boolean)],Se.prototype,"thumbnailStyle",void 0);_.x([_.g({readOnly:!0,reflectToAttribute:!0,computed:"computeHasGameCard(data)"}),_.E("design:type",Boolean)],Se.prototype,"hasGameCard",void 0);_.x([_.g({readOnly:!0,reflectToAttribute:!0,computed:"computeCenterHeaderTitle(data)"}),_.E("design:type",Boolean)],Se.prototype,"centerHeaderTitle",void 0);
_.x([_.g({readOnly:!0,reflectToAttribute:!0,computed:"computeHasPortraitMiniApp(data)"}),_.E("design:type",Boolean)],Se.prototype,"hasPortraitMiniApp",void 0);_.x([_.g({readOnly:!0,reflectToAttribute:!0,computed:"computeHasSquareMiniApp(data)"}),_.E("design:type",Boolean)],Se.prototype,"hasSquareMiniApp",void 0);_.x([_.g({readOnly:!0,reflectToAttribute:!0,computed:"computeHasSkinnyWidthPortraitMiniApp(data)"}),_.E("design:type",Boolean)],Se.prototype,"hasSkinnyWidthPortraitMiniApp",void 0);
_.x([_.g({readOnly:!0,reflectToAttribute:!0,computed:"computeHasInfoPanel(data)"}),_.E("design:type",Boolean)],Se.prototype,"hasInfoPanel",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],Se.prototype,"isSearch",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Boolean)],Se.prototype,"inlineStructuredDescription",void 0);_.x([_.O2("#scroll-container"),_.E("design:type",HTMLDivElement)],Se.prototype,"JSC$13047_scrollContainer",void 0);
_.x([_.g({computed:"computeInitialCountNumber(data.style.type)"}),_.E("design:type",Number)],Se.prototype,"initialCount",void 0);_.x([_.g({computed:"computeUseFloorScrolling(data.style.type)"}),_.E("design:type",Boolean)],Se.prototype,"useFloorScrolling",void 0);_.x([_.g({reflectToAttribute:!0,computed:"computeCenterItems(data.centerItems)"}),_.E("design:type",Boolean)],Se.prototype,"centerItems",void 0);_.x([_.g(),_.E("design:type",Object)],Se.prototype,"pageLoadingFromNavigation",void 0);
_.x([_.g(),_.E("design:type",Object)],Se.prototype,"currentIndex",void 0);_.x([_.g(),_.E("design:type",Number)],Se.prototype,"scrollCount",void 0);_.x([_.g(),_.E("design:type",Object)],Se.prototype,"supportComponentResize",void 0);_.x([_.O2("#items"),_.E("design:type",HTMLDivElement)],Se.prototype,"items",void 0);_.x([_.Vd("iron-resize"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],Se.prototype,"onIronResize",null);
_.x([_.T4("data"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],Se.prototype,"dataChanged",null);_.x([_.g({reflectToAttribute:!0}),_.e("inlineStructuredDescription"),_.E("design:type",Boolean),_.E("design:paramtypes",[])],Se.prototype,"hideNavigationButton",null);_.x([_.g({reflectToAttribute:!0}),_.e("data"),_.E("design:type",Boolean),_.E("design:paramtypes",[])],Se.prototype,"modernChapters",null);
_.x([_.g({reflectToAttribute:!0}),_.e("data"),_.E("design:type",Boolean),_.E("design:paramtypes",[])],Se.prototype,"hasVideoAttributeViewModels",null);_.x([_.g({reflectToAttribute:!0}),_.e("data"),_.E("design:type",Boolean),_.E("design:paramtypes",[])],Se.prototype,"modernInfoPanels",null);Se=_.x([_.f({disableElementRegistration:!0,is:"ytd-horizontal-card-list-renderer"})],Se);
_.C(Se,"ytd-horizontal-card-list-renderer",function(){if(JzP!==void 0)return JzP;var S=document.createElement("template");_.h(S,'\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>');
S.content.insertBefore(_.t().content.cloneNode(!0),S.content.firstChild);return JzP=S},{mode:_.UW("kevlar_poly_si_batch_j072")?1:2});var hnQ=_.$k(function(S){var p=S.data;var U={};return _.H("video-summary-content-view-model",{class:_.VD("video-summary-content-view-model-wiz",S.className,(U["video-summary-content-view-model-wiz--is-search"]=S.isSearch,U))},_.H(_.KU,{each:function(){var Y=[],L=p().paragraphs;if(L==null||!L.length)return[];for(var I=0;I<L.length;I++){var V=_.b(L[I],NMQ),W=void 0;I>0&&(W=_.b(L[I-1],NMQ));W&&!!W.marker===!!V.marker?Y[Y.length-1].paragraphs.push(V):Y.push({isList:!!V.marker,paragraphs:[V]})}return Y},
keyBy:"INDEX"},function(Y){return _.H(_.n,{cond:function(){return Y().isList},
then:function(){return _.H("ul",{class:"video-summary-content-view-model-wiz__list"},_.H(_.KU,{each:function(){return Y().paragraphs},
keyBy:"INDEX"},function(L){return _.H("li",{class:"video-summary-content-view-model-wiz__list-item"},_.H(_.i6,{text:function(){return L().text}}))}))},
else:function(){return _.H(_.KU,{each:function(){return Y().paragraphs},
keyBy:"INDEX"},function(L){return _.H("p",{class:"video-summary-content-view-model-wiz__paragraph"},_.H(_.i6,{text:function(){return L().text}}))})}})}),_.H(_.n,{cond:function(){return!!_.b(p().likeButtonViewModel,_.Gy)&&!!_.b(p().dislikeButtonViewModel,_.hn)},
then:function(){return _.H("div",{class:"video-summary-content-view-model-wiz__bottomButtonsContainer"},_.H("div",{class:"video-summary-content-view-model-wiz__likeButton"},_.H(_.Rr,{data:function(){return _.b(p().likeButtonViewModel,_.Gy)},
disableIconAnimation:!0})),_.H(_.hO,{data:function(){return _.b(p().dislikeButtonViewModel,_.hn)}}))}}))},"Xa");
hnQ.idomCompat=!0;_.qm(hnQ,"video-summary-content-view-model",{props:{data:_.x2,isSearch:_.x2,className:_.x2}});var pg=function(){var S=_.w.apply(this,arguments)||this;var p,U;S.isExpanded=(U=(p=S.data)==null?void 0:p.isExpanded)!=null?U:!1;S.disableExpand=!1;S.showProminentLabel=!1;S.showRightSideLabel=!0;S.toggleExpandableContent=function(Y){S.disableExpand||(Y.stopPropagation(),_.mh(_.E1(Y),S.hostElement,["info","expanded-subtitle"])||(S.isExpanded=!S.isExpanded,S.ytRendererBehavior.logExplicitClick(S.data),S.JSC$13058_cardList&&!_.y("expandable_metadata_a11y_fix_ks")&&_.oH(S,function(){_.ig(S.hostElement)})))};
S.useSquareThumbnail=!1;S.startX=0;return S};
_.r(pg,_.w);_.M=pg.prototype;_.M.computeUseSquareThumbnail=function(){var S;return(S=this.data)==null?void 0:S.useSquareThumbnail};
_.M.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"}}}}};
_.M.dataChanged=function(){if(this.data){var S,p;this.isExpanded=(p=(S=this.data)==null?void 0:S.isExpanded)!=null?p:!1;var U,Y,L,I;if(S=this.isDarkTheme()?(U=this.data)==null?void 0:(Y=U.colorData)==null?void 0:Y.darkColorPalette:(L=this.data)==null?void 0:(I=L.colorData)==null?void 0:I.lightColorPalette){var V,W;if((V=this.data)==null?0:(W=V.colorData)==null?0:W.vibrantColorPalette)S.section1Color=this.data.colorData.vibrantColorPalette.section1Color,_.Gw(this.hostElement,S)}}};
_.M.isExpandedChanged=function(){this.isExpanded&&this.JSC$13058_cardList&&_.cv(this.JSC$13058_cardList,"iron-resize")};
_.M.computeIsExpanded=function(S){return!!S.isExpanded};
_.M.computeShowProminentLabel=function(S,p){var U;return!!(S==null?0:(U=S.header)==null?0:U.showLeadingCollapsedLabel)&&!p};
_.M.computeShowRightSideLabel=function(S,p){var U;return!(S==null?0:(U=S.header)==null?0:U.showLeadingCollapsedLabel)&&!p};
_.M.captureContentClick=function(S){if(!this.disableExpand)if(_.y("expandable_metadata_fix_killswitch")){var p=S.target;_.irQ(p,"ytd-macro-markers-list-item-renderer")||S.stopPropagation();(p==null?void 0:p.id)==="scroll-container"&&(this.isExpanded=!this.isExpanded)}else _.mh(_.E1(S),this.hostElement,["items"])||_.Eo(_.E1(S),this.hostElement,["BUTTON"])||(this.isExpanded=!this.isExpanded)};
_.M.timestampClick=function(S){S.stopPropagation();var p,U;(S=(p=this.data)==null?void 0:(U=p.header)==null?void 0:U.jumpToTimestampEndpoint)&&this.ytComponentBehavior.resolveCommand(S)};
_.M.onDown=function(S){S.stopPropagation();this.startX=S.detail?S.detail.x:0};
_.M.onUp=function(S){this.skipKeyInteraction(S)&&S.stopPropagation()};
_.M.skipKeyInteraction=function(S){var p=S.target;if((p==null?void 0:p.id)==="scroll-container"||(p==null?void 0:p.id)==="items"||S.detail&&S.detail.x!==this.startX)return!0;S=_.E1(S);S=_.d(S);for(p=S.next();!p.done;p=S.next()){p=p.value;if(p===this.hostElement)break;if(p.hasAttribute&&p.hasAttribute("skip-key-interaction"))return!0}return!1};
_.M.isDarkTheme=function(){return document.documentElement.hasAttribute("dark")};
_.$u.Object.defineProperties(pg.prototype,{hasVideoSummary:{configurable:!0,enumerable:!0,get:function(){var S;return!!_.b((S=this.data)==null?void 0:S.expandedContent,iWE)}},
hasLockupViewModel:{configurable:!0,enumerable:!0,get:function(){var S;return!!_.b((S=this.data)==null?void 0:S.expandedContent,_.mvH)}},
useCustomColors:{configurable:!0,enumerable:!0,get:function(){var S,p;return!((S=this.data)==null||!S.useCustomColors)&&!((p=this.data)==null||!p.colorData)&&!this.isWatch}},
showInfoButton:{configurable:!0,enumerable:!0,get:function(){var S;return!((S=this.data)==null||!S.infoButton)&&!!this.isExpanded}},
showTimestamp:{configurable:!0,enumerable:!0,get:function(){var S,p;return!!((S=this.data)==null?0:(p=S.header)==null?0:p.collapsedJumpToTimestamp)&&!this.isExpanded}},
showExpandedSubtitle:{configurable:!0,enumerable:!0,get:function(){var S,p;return!!((S=this.data)==null?0:(p=S.header)==null?0:p.expandedSubtitle)&&this.isExpanded}},
showThumbnail:{configurable:!0,enumerable:!0,get:function(){var S,p;return!!((S=this.data)==null?0:(p=S.header)==null?0:p.collapsedThumbnail)&&!this.isExpanded}},
useVppShoppingDestinationStyle:{configurable:!0,enumerable:!0,get:function(){var S;return((S=this.data)==null?void 0:S.style)==="EXPANDABLE_METADATA_STYLE_VPP_SHOPPING_DESTINATION"}}});
pg.prototype.onUp=pg.prototype.onUp;pg.prototype.onDown=pg.prototype.onDown;pg.prototype.isExpandedChanged=pg.prototype.isExpandedChanged;pg.prototype.dataChanged=pg.prototype.dataChanged;_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],pg.prototype,"ytRendererBehavior",void 0);_.x([_.F(_.qH.YtRendererstamperBehavior),_.E("design:type",Object)],pg.prototype,"ytRendererstamperBehavior",void 0);
_.x([_.F(_.eL.YtComponentBehavior),_.E("design:type",Object)],pg.prototype,"ytComponentBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],pg.prototype,"data",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],pg.prototype,"isExpanded",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],pg.prototype,"disableExpand",void 0);_.x([_.g({value:!1}),_.E("design:type",Boolean)],pg.prototype,"isSearch",void 0);
_.x([_.g({value:!1,reflectToAttribute:!0}),_.E("design:type",Boolean)],pg.prototype,"isWatch",void 0);_.x([_.g({reflectToAttribute:!0,computed:"computeShowProminentLabel(data, isExpanded)"}),_.E("design:type",Object)],pg.prototype,"showProminentLabel",void 0);_.x([_.g({reflectToAttribute:!0,computed:"computeShowRightSideLabel(data, isExpanded)"}),_.E("design:type",Object)],pg.prototype,"showRightSideLabel",void 0);
_.x([_.g({value:!1,reflectToAttribute:!0}),_.e("data"),_.E("design:type",Boolean),_.E("design:paramtypes",[])],pg.prototype,"hasVideoSummary",null);_.x([_.g({value:!1,reflectToAttribute:!0}),_.e("data"),_.E("design:type",Boolean),_.E("design:paramtypes",[])],pg.prototype,"hasLockupViewModel",null);_.x([_.g({reflectToAttribute:!0}),_.e("data","isWatch"),_.E("design:type",Boolean),_.E("design:paramtypes",[])],pg.prototype,"useCustomColors",null);
_.x([_.g({reflectToAttribute:!0}),_.e("data","isExpanded"),_.E("design:type",Boolean),_.E("design:paramtypes",[])],pg.prototype,"showInfoButton",null);_.x([_.e("data","isExpanded"),_.E("design:type",Boolean),_.E("design:paramtypes",[])],pg.prototype,"showTimestamp",null);_.x([_.e("data","isExpanded"),_.E("design:type",Boolean),_.E("design:paramtypes",[])],pg.prototype,"showExpandedSubtitle",null);
_.x([_.e("data","isExpanded"),_.E("design:type",Boolean),_.E("design:paramtypes",[])],pg.prototype,"showThumbnail",null);_.x([_.g({reflectToAttribute:!0}),_.e("data"),_.E("design:type",Object),_.E("design:paramtypes",[])],pg.prototype,"useVppShoppingDestinationStyle",null);_.x([_.g(),_.E("design:type",Object)],pg.prototype,"toggleExpandableContent",void 0);_.x([_.O2("ytd-horizontal-card-list-renderer"),_.E("design:type",Object)],pg.prototype,"JSC$13058_cardList",void 0);
_.x([_.g({reflectToAttribute:!0,computed:"computeUseSquareThumbnail(data.useSquareThumbnail)"}),_.E("design:type",Object)],pg.prototype,"useSquareThumbnail",void 0);_.x([_.z4("data"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],pg.prototype,"dataChanged",null);_.x([_.T4("isExpanded"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],pg.prototype,"isExpandedChanged",null);
_.x([_.Vd("down"),_.E("design:type",Function),_.E("design:paramtypes",[CustomEvent]),_.E("design:returntype")],pg.prototype,"onDown",null);_.x([_.Vd("up"),_.E("design:type",Function),_.E("design:paramtypes",[CustomEvent]),_.E("design:returntype")],pg.prototype,"onUp",null);pg=_.x([_.f({is:"ytd-expandable-metadata-renderer",disableElementRegistration:!0})],pg);
_.C(pg,"ytd-expandable-metadata-renderer",function(){if(FmE!==void 0)return FmE;var S=document.createElement("template");_.h(S,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-expandable-metadata-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" on-click="toggleExpandableContent" skip-key-interaction="" class="style-scope ytd-expandable-metadata-renderer">\n  <div id="left-section" class="style-scope ytd-expandable-metadata-renderer">\n    <div id="thumbnail" hidden="[[!showThumbnail]]" class="style-scope ytd-expandable-metadata-renderer">\n      <yt-img-shadow object-fit="FILL" thumbnail="[[data.header.collapsedThumbnail]]" class="style-scope ytd-expandable-metadata-renderer">\n      </yt-img-shadow>\n    </div>\n    <div id="prominent-collapsed-label" hidden="[[!showProminentLabel]]" class="style-scope ytd-expandable-metadata-renderer">\n      <yt-formatted-string id="prominent-label-text" text="[[data.header.collapsedLabel]]" class="style-scope ytd-expandable-metadata-renderer"></yt-formatted-string>\n    </div>\n    <div id="timestamp" hidden="[[!showTimestamp]]" raised="" on-click="timestampClick" class="style-scope ytd-expandable-metadata-renderer">\n      <yt-formatted-string text="[[data.header.collapsedJumpToTimestamp]]" class="style-scope ytd-expandable-metadata-renderer"></yt-formatted-string>\n    </div>\n    <div id="collapsed-title" hidden="[[isExpanded]]" role="button" class="style-scope ytd-expandable-metadata-renderer">\n      <yt-formatted-string text="[[data.header.collapsedTitle]]" class="style-scope ytd-expandable-metadata-renderer"></yt-formatted-string>\n    </div>\n    <div id="expanded-title-subtitle-group" hidden="[[!isExpanded]]" class="style-scope ytd-expandable-metadata-renderer">\n      <yt-icon id="expanded-title-icon" disable-upgrade$="[[!data.header.expandedTitleIcon.iconType]]" hidden="[[!data.header.expandedTitleIcon.iconType]]" icon="[[data.header.expandedTitleIcon.iconType]]" class="style-scope ytd-expandable-metadata-renderer">\n      </yt-icon>\n      <div id="expanded-title-subtitle-text" class="style-scope ytd-expandable-metadata-renderer">\n        <div id="expanded-title" class="style-scope ytd-expandable-metadata-renderer">\n          <yt-formatted-string text="[[data.header.expandedTitle]]" class="style-scope ytd-expandable-metadata-renderer"></yt-formatted-string>\n        </div>\n        <div id="expanded-subtitle" hidden="[[!showExpandedSubtitle]]" class="style-scope ytd-expandable-metadata-renderer">\n          <a class="yt-simple-endpoint style-scope ytd-expandable-metadata-renderer" href$="[[computeHref_(data.header.expandedSubtitleTapCommand)]]" data="[[data.header.expandedSubtitleTapCommand]]">\n            <yt-formatted-string text="[[data.header.expandedSubtitle]]" class="style-scope ytd-expandable-metadata-renderer"></yt-formatted-string>\n            <yt-icon disable-upgrade$="[[!data.header.expandedSubtitleTrailingIcon.iconType]]" hidden="[[!data.header.expandedSubtitleTrailingIcon.iconType]]" icon="[[data.header.expandedSubtitleTrailingIcon.iconType]]" class="style-scope ytd-expandable-metadata-renderer">\n            </yt-icon>\n          </a>\n        </div>\n      </div>\n    </div>\n  </div>\n  <div id="right-section" class="style-scope ytd-expandable-metadata-renderer">\n    <div id="info" hidden="[[!showInfoButton]]" class="style-scope ytd-expandable-metadata-renderer"></div>\n    <div id="collapsed-label" hidden="[[!showRightSideLabel]]" class="style-scope ytd-expandable-metadata-renderer">\n      <yt-icon disable-upgrade$="[[!data.header.collapsedLabelIcon.iconType]]" hidden="[[!data.header.collapsedLabelIcon.iconType]]" icon="[[data.header.collapsedLabelIcon.iconType]]" class="style-scope ytd-expandable-metadata-renderer">\n      </yt-icon>\n      <yt-formatted-string text="[[data.header.collapsedLabel]]" class="style-scope ytd-expandable-metadata-renderer"></yt-formatted-string>\n    </div>\n    <div id="expand" hidden="[[isExpanded]]" class="style-scope ytd-expandable-metadata-renderer"></div>\n    <div id="collapse" hidden="[[!isExpanded]]" class="style-scope ytd-expandable-metadata-renderer"></div>\n  </div>\n</div>\n<div id="content" on-click="captureContentClick" class="style-scope ytd-expandable-metadata-renderer"></div>\n<div id="menu" hidden="[[!isExpanded]]" class="style-scope ytd-expandable-metadata-renderer"></div>\n');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);return FmE=S},{mode:1});var Rnq,FHl=function(){if(Rnq!==void 0)return Rnq;var S=document.createElement("template");_.h(S,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" class="style-scope ytd-video-renderer">\n  <ytd-thumbnail data="[[data]]" hovered="[[isHovered]]" use-expandable-tooltip="[[useExpandableTooltip]]" use-hovered-property="" use-untranslated-navigation-endpoint="[[hideTranslation]]" width="[[computeThumbnailWidth(isBackstageVideo, isPostCompactVideo, useSearchUi, useBiggerThumbs, biggerThumbsStyle, videoStyle)]]" class="style-scope ytd-video-renderer">\n  </ytd-thumbnail>\n  <div class="text-wrapper style-scope ytd-video-renderer" on-click="onTextWrapperClick">\n    <div id="meta" class="style-scope ytd-video-renderer">\n      <div id="title-wrapper" class="style-scope ytd-video-renderer">\n        <h3 class="title-and-badge style-scope ytd-video-renderer">\n          <ytd-badge-supported-renderer collection-truncate="" hidden="[[!data.topStandaloneBadge]]" top-standalone-badge="[[data.topStandaloneBadge]]" class="style-scope ytd-video-renderer">\n          </ytd-badge-supported-renderer>\n          <a id="video-title" class="yt-simple-endpoint style-scope ytd-video-renderer" aria-label$="[[data.title.accessibility.accessibilityData.label]]" href$="[[computeHref_(computedNavigationEndpoint)]]" title$="[[getSimpleString(data.title)]]" data="[[computedNavigationEndpoint]]">\n            <yt-icon id="inline-title-icon" hidden="[[hideInlineTitleIcon(hideTranslation, inlineTitleIcon)]]" icon="[[inlineTitleIcon]]" class="style-scope ytd-video-renderer">\n            </yt-icon>\n            <yt-formatted-string text="[[computeTitleText(hideTranslation, data.title, data.untranslatedTitle)]]" class="style-scope ytd-video-renderer">\n            </yt-formatted-string>\n          </a>\n        </h3>\n        <div id="menu" class="style-scope ytd-video-renderer"></div>\n      </div>\n      <ytd-video-meta-block data="[[data]]" no-byline="[[shouldShowChannelInfo]]" truncate-metadata-line="[[isRichGridVideoPost]]" class="style-scope ytd-video-renderer">\n      </ytd-video-meta-block>\n    </div>\n    <div id="channel-info" hidden="[[!shouldShowChannelInfo]]" class="style-scope ytd-video-renderer">\n      <a id="channel-thumbnail" hidden="[[!shouldShowChannelThumbnail]]" aria-label$="[[data.channelThumbnailSupportedRenderers.channelThumbnailWithLinkRenderer.accessibility.accessibilityData.label]]" href$="[[computeHref_(data.channelThumbnailSupportedRenderers.channelThumbnailWithLinkRenderer.navigationEndpoint)]]" class="style-scope ytd-video-renderer">\n        <yt-img-shadow thumbnail="[[data.channelThumbnailSupportedRenderers.channelThumbnailWithLinkRenderer.thumbnail]]" width="24" class="style-scope ytd-video-renderer">\n        </yt-img-shadow>\n      </a>\n      <div id="avatar" hidden="[[!useAvatar]]" class="style-scope ytd-video-renderer"></div>\n      <ytd-channel-name id="channel-name" class="long-byline style-scope ytd-video-renderer" badges="[[data.ownerBadges]]" channel-name="[[data.longBylineText]]" wrap-text="true">\n      </ytd-channel-name>\n    </div>\n    <yt-formatted-string id="description-text" hidden="[[!data.descriptionSnippet]]" text="[[computeDescriptionSnippet(hideTranslation, data.descriptionSnippet, data.untranslatedDescriptionSnippet)]]" class="style-scope ytd-video-renderer">\n    </yt-formatted-string>\n    <template is="dom-repeat" items="[[data.detailedMetadataSnippets]]" hidden="[[!data.detailedMetadataSnippets]]" class="style-scope ytd-video-renderer">\n      <div class$="[[getMetadataSnippetContainerClass(item.maxOneLine)]] style-scope ytd-video-renderer">\n        <a class="yt-simple-endpoint metadata-snippet-timestamp style-scope ytd-video-renderer" aria-label$="[[item.snippetTimestamp.accessibility.accessibilityData.label]]" hidden="[[!item.snippetTimestamp]]" href$="[[computeHref_(item.timestampEndpoint)]]" data="[[item.timestampEndpoint]]">\n          <span id="time" class="style-scope ytd-video-renderer">[[getSimpleString(item.snippetTimestamp)]]</span>\n          <yt-formatted-string class="metadata-snippet-text-navigation style-scope ytd-video-renderer" text="[[item.snippetText]]">\n          </yt-formatted-string>\n        </a>\n        <yt-formatted-string class="metadata-snippet-text style-scope ytd-video-renderer" hidden="[[item.snippetTimestamp]]" text="[[computeSnippetText(hideTranslation, item.snippetText, item.untranslatedSnippetText)]]">\n        </yt-formatted-string>\n        <tp-yt-paper-tooltip class="style-scope ytd-video-renderer">[[getSimpleString(item.snippetHoverText)]]</tp-yt-paper-tooltip>\n      </div>\n    </template>\n    <ytd-badge-supported-renderer id="badges" badges="[[data.badges]]" hidden="[[!data.badges]]" hidden-badge-groups="[[hiddenBadgeGroups]]" class="style-scope ytd-video-renderer">\n    </ytd-badge-supported-renderer>\n    <div id="expandable-metadata" class="style-scope ytd-video-renderer"></div>\n    <div id="buttons" class="style-scope ytd-video-renderer"></div>\n  </div>\n</div>\n<div id="dismissed" class="style-scope ytd-video-renderer"></div>\n<yt-interaction id="interaction" class="extended style-scope ytd-video-renderer"></yt-interaction>\n');
S.content.insertBefore(_.t().content.cloneNode(!0),S.content.firstChild);return Rnq=S};_.qm(_.ra,"yt-avatar-stack-view-model",{props:{className:_.x2,data:_.x2,overrides:_.x2,isOverlay:_.x2,useMediumText:_.x2,decorations:_.x2,hideAvatar:_.x2}});_.Ry("itemSectionRenderer","videoRenderer","ytd-video-renderer");var Uv=function(){var S=_.w.apply(this,arguments)||this;S.disableExpand=!1;S.shouldShowChannelInfo=!1;S.actionMap={"yt-hide-item-section-videos-by-id-command":"handleHideItemSectionVideosByIdCommand"};return S};
_.r(Uv,_.w);_.M=Uv.prototype;_.M.computeUseSearchUi=function(){var S,p;return this.isSearch||((S=this.data)==null?void 0:(p=S.style)==null?void 0:p.value)==="VIDEO_STYLE_TYPE_WITH_EXPANDED_METADATA"};
_.M.computeUseThreeLineTitle=function(){var S;return((S=this.data)==null?void 0:S.maxTitleLines)===3};
_.M.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"},initialRenderPriority:_.y("polymer_video_renderer_defer_menu")&&!Ztw?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"}}}};
_.M.attached=function(){_.U2(this.hostElement,"blue-links",_.y("kevlar_video_blue_links"));this.updateInlinePreviewHoverListeners()};
_.M.detached=function(){this.clearInlinePreviewHoverListeners()};
_.M.dataChanged=function(){this.isHistory=window.location.pathname.indexOf("/feed/history")!==-1;_.Yk(_.tB(this.hostElement).querySelector("#description-text"),"ellipsis-truncate",!!this.data.topStandaloneBadge);var S=this.get("data.buttons.buttonRenderer.serviceEndpoint"),p;S&&((p=_.b(S.commandMetadata,_.bB))==null?0:p.fireAutomatically)&&this.ytComponentBehavior.resolveCommand(S);this.updateInlinePreviewHoverListeners()};
_.M.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$13063_inlinePreviewHoverListener=EK({mediaRenderer:this,lockupElement:this.JSC$13063_dismissibleMedia,thumbnailElement:this.thumbnail})};
_.M.clearInlinePreviewHoverListeners=function(){var S;(S=this.JSC$13063_inlinePreviewHoverListener)==null||cI(S)};
_.M.onTextWrapperClick=function(S){var p,U,Y=this.hideTranslation?(p=this.data)==null?void 0:p.untranslatedNavigationEndpoint:(U=this.data)==null?void 0:U.navigationEndpoint;p=_.mh(_.E1(S),this.hostElement,["expandable-metadata"]);!Y||p&&!_.y("expandable_metadata_fix_killswitch")||_.Eo(_.E1(S),this.hostElement,["A".toString(),"BUTTON".toString()])||_.cv(this.hostElement,"yt-navigate",{endpoint:Y})};
_.M.computeThumbnailWidth=function(S,p,U,Y,L){return this.videoStyle==="VIDEO_STYLE_TYPE_WITH_EXPANDED_METADATA"?500:Y?L==="MASSIVE"?600:L==="BIG"?500:L==="MEDIUM"?450:420:U?360:p?128:S?210:246};
_.M.computeUseBiggerThumbs=function(S){return S&&_.y("enable_desktop_search_bigger_thumbs")};
_.M.computeShouldShowChannelInfo=function(){return this.useSearchUi};
_.M.computeVideoStyle=function(){if(_.y("enable_video_style")){var S,p;return(S=this.data)==null?void 0:(p=S.style)==null?void 0:p.value}};
_.M.computeDisableExpand=function(){return this.videoStyle==="VIDEO_STYLE_TYPE_WITH_EXPANDED_METADATA"};
_.M.handleHideItemSectionVideosByIdCommand=function(S){var p;S=(p=_.b(S,zBc))==null?void 0:p.videoId;this.data&&this.data.videoId===S&&(this.isHidden=!0)};
_.M.getMetadataSnippetContainerClass=function(S){return S?"metadata-snippet-container-one-line":"metadata-snippet-container"};
_.M.computeTitleText=function(S,p,U){return S?U:p};
_.M.computeDescriptionSnippet=function(S,p,U){return S?U:p};
_.M.computeSnippetText=function(S,p,U){return S?U:p};
_.M.computeNavigationEndpoint=function(S,p){return S?p==null?void 0:p.untranslatedNavigationEndpoint:p==null?void 0:p.navigationEndpoint};
_.M.hideInlineTitleIcon=function(S,p){return S||!p};
_.$u.Object.defineProperties(Uv.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 S;return(S=this.searchVideoResultEntity.hiddenBadgeGroups)!=null?S:[]}return[]}},
shouldShowChannelThumbnail:{configurable:!0,enumerable:!0,get:function(){var S,p,U;return!!(this==null?0:(S=this.data)==null?0:(p=S.channelThumbnailSupportedRenderers)==null?0:(U=p.channelThumbnailWithLinkRenderer)==null?0:U.thumbnail)&&!this.useAvatar}},
useAvatar:{configurable:!0,enumerable:!0,get:function(){var S;return!!_.b((S=this.data)==null?void 0:S.avatar,oze)}},
isHovered:{configurable:!0,enumerable:!0,get:function(){var S;return!((S=this.JSC$13063_inlinePreviewHoverListener)==null?0:Rm(S))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
_.$u.Object.defineProperties(Uv,{template:{configurable:!0,enumerable:!0,get:function(){return FHl()}}});
Uv.prototype.dataChanged=Uv.prototype.dataChanged;_.x([_.F(_.eL.YtComponentBehavior),_.E("design:type",Object)],Uv.prototype,"ytComponentBehavior",void 0);_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],Uv.prototype,"ytRendererBehavior",void 0);_.x([_.F(_.qH.YtRendererstamperBehavior),_.E("design:type",Object)],Uv.prototype,"ytRendererstamperBehavior",void 0);_.x([_.F(_.Zh),_.E("design:type",Object)],Uv.prototype,"ytdDismissibleItemBehavior",void 0);
_.x([_.F(_.ak),_.E("design:type",Object)],Uv.prototype,"ytdLockupBehavior",void 0);_.x([_.F(_.Aj.YtActionHandlerBehavior),_.E("design:type",Object)],Uv.prototype,"ytActionHandlerBehavior",void 0);_.x([_.F(_.Xh),_.E("design:type",Object)],Uv.prototype,"ytdReduxBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],Uv.prototype,"data",void 0);_.x([_.g({reflectToAttribute:!0,value:!1}),_.E("design:type",Boolean)],Uv.prototype,"isBackstageVideo",void 0);
_.x([_.g({reflectToAttribute:!0,value:!1}),_.E("design:type",Boolean)],Uv.prototype,"isPostCompactVideo",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Boolean)],Uv.prototype,"isHistory",void 0);_.x([_.g({reflectToAttribute:!0,value:!1}),_.E("design:type",Boolean)],Uv.prototype,"isRichGridVideoPost",void 0);_.x([_.g({reflectToAttribute:!0,value:!1}),_.E("design:type",Boolean)],Uv.prototype,"isHidden",void 0);
_.x([_.g({reflectToAttribute:!0,value:!1}),_.E("design:type",Boolean)],Uv.prototype,"isSearch",void 0);_.x([_.g({reflectToAttribute:!0,value:!1,computed:"computeUseSearchUi(isSearch, data)"}),_.E("design:type",Boolean)],Uv.prototype,"useSearchUi",void 0);_.x([_.g({reflectToAttribute:!0,value:!1,computed:"computeUseThreeLineTitle(data)"}),_.E("design:type",Boolean)],Uv.prototype,"useThreeLineTitle",void 0);
_.x([_.g({reflectToAttribute:!0,computed:"computeUseBiggerThumbs(useSearchUi)"}),_.E("design:type",Boolean)],Uv.prototype,"useBiggerThumbs",void 0);_.x([_.g({reflectToAttribute:!0,computed:"computeVideoStyle(data.style.value)"}),_.E("design:type",Object)],Uv.prototype,"videoStyle",void 0);_.x([_.g({computed:"computeDisableExpand(videoStyle)"}),_.E("design:type",Object)],Uv.prototype,"disableExpand",void 0);
_.x([_.g({computed:"computeShouldShowChannelInfo(useSearchUi)"}),_.E("design:type",Object)],Uv.prototype,"shouldShowChannelInfo",void 0);_.x([_.g({reflectToAttribute:!0,value:function(){return _.Ug("desktop_search_bigger_thumbs_style")}}),
_.E("design:type",String)],Uv.prototype,"biggerThumbsStyle",void 0);_.x([_.g({reflectToAttribute:!0,computed:"computeIcon_(data.inlineTitleIcon)"}),_.E("design:type",String)],Uv.prototype,"inlineTitleIcon",void 0);_.x([_.g({computed:"computeNavigationEndpoint(hideTranslation, data)"}),_.E("design:type",Object)],Uv.prototype,"computedNavigationEndpoint",void 0);_.x([_.g({selectorArgs:["data.searchVideoResultEntityKey"],selector:function(S,p){return _.I4(S.entities,"searchVideoResultEntity",p)}}),
_.E("design:type",Object)],Uv.prototype,"searchVideoResultEntity",void 0);_.x([_.O2("ytd-thumbnail"),_.E("design:type",HTMLElement)],Uv.prototype,"thumbnail",void 0);_.x([_.O2("#dismissible"),_.E("design:type",HTMLElement)],Uv.prototype,"JSC$13063_dismissibleMedia",void 0);_.x([_.z4("data"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],Uv.prototype,"dataChanged",null);
_.x([_.e("searchVideoResultEntity"),_.E("design:type",Boolean),_.E("design:paramtypes",[])],Uv.prototype,"hideTranslation",null);_.x([_.e("searchVideoResultEntity"),_.E("design:type",Array),_.E("design:paramtypes",[])],Uv.prototype,"hiddenBadgeGroups",null);_.x([_.e("data","useAvatar"),_.E("design:type",Boolean),_.E("design:paramtypes",[])],Uv.prototype,"shouldShowChannelThumbnail",null);_.x([_.e("data"),_.E("design:type",Boolean),_.E("design:paramtypes",[])],Uv.prototype,"useAvatar",null);
_.x([_.e("lockupIsHovered"),_.E("design:type",Boolean),_.E("design:paramtypes",[])],Uv.prototype,"isHovered",null);Uv=_.x([_.f({is:"ytd-video-renderer",disableElementRegistration:!0})],Uv);_.C(Uv,"ytd-video-renderer",function(){return FHl()},{mode:_.UW("kevlar_poly_si_batch_j047")?1:2});var Yy=function(){var S=_.w.apply(this,arguments)||this;S.editDialog=null;S.roundedContainer=!0;S.isLoading=!1;S.isRichGrid=!1;S.isRichGridRepost=!1;S.reduceSidePaddings=_.y("reduce_side_paddings_in_shelf");S.JSC$13070_spinnerEl=null;return S};
_.r(Yy,_.w);_.M=Yy.prototype;
_.M.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"}}}};
_.M.contentTextChanged=function(){this.expander.reset()};
_.M.dataChanged=function(){var S=this;if(this.data){this.isLoading=!1;this.editDialog=null;for(var p=0,U=this.data.actions&&this.data.actions.length;p<U;p++)this.openEditDialog(_.b(this.data.actions[p],faq));if((p=this.get("actionButtons.commentActionButtonsRenderer.shareButton",this.data))&&(p=this.get("buttonRenderer.hint.hintRenderer.hintId",p))&&p.startsWith("share-post-hint")){var Y=this.get("children.dismissible.children.toolbar.children.action-buttons.children.toolbar.children.share-button",
this);if(Y){_.$V.getInstance();var L=il(_.Ec(_.Oh("SHARE_POST_EDU_TEXT")),"share-post-edu-displayed","OPEN_POPUP_POSITION_TOPRIGHT");_.PA.addLowPriorityJob(function(){_.Lp(S.hostElement,L,Y)})}}}};
_.M.updatePoll=function(S){S>=0?this.actionButtons.reply():this.actionButtons.hideReplyDialog()};
_.M.isLoadingChanged=function(){!this.isLoading||this.editDialog||this.JSC$13070_spinnerEl||(this.JSC$13070_spinnerEl=document.createElement("tp-yt-paper-spinner-lite"),_.tB(this.hostElement).appendChild(this.JSC$13070_spinnerEl));this.JSC$13070_spinnerEl&&(this.JSC$13070_spinnerEl.active=this.isLoading)};
_.M.onYtNavigate=function(S){var p=this.get("updateCommentDialogEndpoint",S.detail.endpoint);p&&(this.openEditDialog(p),S.stopPropagation())};
_.M.onYtCommentboxDismiss=function(){this.editDialog=null};
_.M.onYtCommentPollRevert=function(S,p){p&&this.updatePoll(p.selectedChoiceIndex)};
_.M.onYtServiceRequestSent=function(S,p){var U;p.endpoint&&(_.b(p.endpoint,dvt)||_.b(p.endpoint,IEe)&&((U=_.b(p.endpoint,IEe))==null||!U.clientActions))&&(this.isLoading=!0);if(p.actions)for(S=0;S<p.actions.length;S++)U=p.actions[S],_.b(U,y5)&&(U=this.get("updateBackstagePollAction.selectedChoiceIndex",U),U==void 0&&(U=-1),this.updatePoll(U))};
_.M.onYtServiceRequestCompleted=function(){this.isLoading=!1};
_.M.openEditDialog=function(S){S&&S.dialog&&(this.editDialog=S.dialog,S=this.editDialogEl.firstElementChild)&&(S.focus(),S.openDialog&&S.openDialog())};
_.M.computeIsPostHidden=function(S,p){return!!S||p};
_.M.computeSurfaceType=function(S){return S?S.toLowerCase().replace(/_/g,"-"):""};
_.M.computeUsesCompactLockup=function(S){return S==="BACKSTAGE_SURFACE_TYPE_HOME"||S==="BACKSTAGE_SURFACE_TYPE_SEARCH"||S==="BACKSTAGE_SURFACE_TYPE_NEWS_DESTINATION"||S==="BACKSTAGE_SURFACE_TYPE_CHANNEL_HOME"||S==="BACKSTAGE_SURFACE_TYPE_STRUCTURED_DESCRIPTION"||S==="BACKSTAGE_SURFACE_TYPE_REPOST_PREVIEW"};
_.M.computeShowWithoutToolbar=function(S){return!S.actionButtons&&!S.actionMenu};
_.M.computePostAttachment=function(S){if(S.backstageAttachment){if(_.b(S.backstageAttachment,l0I))return"poll";if(_.b(S.backstageAttachment,KZl))return"quiz";if(_.b(S.backstageAttachment,_.ZH))return"video";if(_.b(S.backstageAttachment,bDP))return"uploaded-videos";if(_.b(S.backstageAttachment,H4c))return S.contentText?"image":"image-only";if(_.b(S.backstageAttachment,Qqe))return"playlist"}return"none"};
_.M.computePostTabIndex=function(S){return S?0:-1};
_.M.computeButtonTooltipPosition=function(S){return this.computeUsesCompactLockup(S)?"top":"bottom"};
_.M.computeHasText=function(S){return!(S==null||!S.contentText)};
_.M.onTap=function(S){var p,U;if(((p=this.data)==null?0:p.navigationEndpoint)&&((U=this.data)==null?void 0:U.surface)==="BACKSTAGE_SURFACE_TYPE_STRUCTURED_DESCRIPTION")this.ytComponentBehavior.resolveCommand(this.data.navigationEndpoint);else{var Y;((Y=this.data)==null?0:Y.navigationEndpoint)&&!_.Eo(_.E1(S)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"YTD-VIDEO-RENDERER","YTD-PLAYLIST-RENDERER"])&&_.cv(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint})}};
_.$u.Object.defineProperties(Yy.prototype,{voteCount:{configurable:!0,enumerable:!0,get:function(){var S;return((S=this.data)==null?void 0:S.voteCount)||_.Ec("0")}},
commentCount:{configurable:!0,enumerable:!0,get:function(){var S;return(S=this.data)==null?void 0:S.commentCount}},
hasPoll:{configurable:!0,enumerable:!0,get:function(){return!(!this.data.backstageAttachment||!_.b(this.data.backstageAttachment,l0I))}},
hasUploadedVideo:{configurable:!0,enumerable:!0,get:function(){return!(!this.data.backstageAttachment||!_.b(this.data.backstageAttachment,bDP))}}});
Yy.prototype.onYtServiceRequestCompleted=Yy.prototype.onYtServiceRequestCompleted;Yy.prototype.onYtServiceRequestSent=Yy.prototype.onYtServiceRequestSent;Yy.prototype.onYtCommentPollRevert=Yy.prototype.onYtCommentPollRevert;Yy.prototype.onYtCommentboxDismiss=Yy.prototype.onYtCommentboxDismiss;Yy.prototype.onYtNavigate=Yy.prototype.onYtNavigate;Yy.prototype.isLoadingChanged=Yy.prototype.isLoadingChanged;Yy.prototype.dataChanged=Yy.prototype.dataChanged;Yy.prototype.contentTextChanged=Yy.prototype.contentTextChanged;
_.x([_.F(_.Zh),_.E("design:type",Object)],Yy.prototype,"ytdDismissibleItemBehavior",void 0);_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],Yy.prototype,"ytRendererBehavior",void 0);_.x([_.F(_.qH.YtRendererstamperBehavior),_.E("design:type",Object)],Yy.prototype,"ytRendererstamperBehavior",void 0);_.x([_.F(_.eL.YtComponentBehavior),_.E("design:type",Object)],Yy.prototype,"ytComponentBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],Yy.prototype,"data",void 0);
_.x([_.g(),_.E("design:type",Object)],Yy.prototype,"editDialog",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],Yy.prototype,"roundedContainer",void 0);_.x([_.g(),_.E("design:type",Object)],Yy.prototype,"isLoading",void 0);_.x([_.g({computed:"computeSurfaceType(data.surface)",reflectToAttribute:!0}),_.E("design:type",String)],Yy.prototype,"surface",void 0);
_.x([_.g({computed:"computeUsesCompactLockup(data.surface)",reflectToAttribute:!0}),_.E("design:type",Boolean)],Yy.prototype,"usesCompactLockup",void 0);_.x([_.g({computed:"computeShowWithoutToolbar(data)",reflectToAttribute:!0}),_.E("design:type",Boolean)],Yy.prototype,"showWithoutToolbar",void 0);_.x([_.g({computed:"computePostAttachment(data)",reflectToAttribute:!0}),_.E("design:type",String)],Yy.prototype,"attachment",void 0);
_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],Yy.prototype,"isRichGrid",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],Yy.prototype,"isRichGridRepost",void 0);_.x([_.g({reflectToAttribute:!0,value:_.y("use_better_post_dismissals")}),_.E("design:type",Boolean)],Yy.prototype,"useBetterPostDismissals",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],Yy.prototype,"reduceSidePaddings",void 0);
_.x([_.g({computed:"computeHasText(data)",reflectToAttribute:!0}),_.E("design:type",Boolean)],Yy.prototype,"hasText",void 0);_.x([_.O2("#expander"),_.E("design:type",Object)],Yy.prototype,"expander",void 0);_.x([_.O2("#action-buttons"),_.E("design:type",Object)],Yy.prototype,"actionButtons",void 0);_.x([_.O2("#edit-dialog"),_.E("design:type",HTMLElement)],Yy.prototype,"editDialogEl",void 0);
_.x([_.T4("data.contentText"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],Yy.prototype,"contentTextChanged",null);_.x([_.z4("data"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],Yy.prototype,"dataChanged",null);_.x([_.T4("isLoading"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],Yy.prototype,"isLoadingChanged",null);
_.x([_.Vd("yt-navigate"),_.E("design:type",Function),_.E("design:paramtypes",[CustomEvent]),_.E("design:returntype")],Yy.prototype,"onYtNavigate",null);_.x([_.Vd("yt-commentbox-dismiss"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],Yy.prototype,"onYtCommentboxDismiss",null);_.x([_.Vd("yt-comment-poll-revert"),_.E("design:type",Function),_.E("design:paramtypes",[CustomEvent,Object]),_.E("design:returntype")],Yy.prototype,"onYtCommentPollRevert",null);
_.x([_.Vd("yt-service-request-sent"),_.E("design:type",Function),_.E("design:paramtypes",[CustomEvent,_.eM]),_.E("design:returntype")],Yy.prototype,"onYtServiceRequestSent",null);_.x([_.Vd("yt-service-request-completed"),_.E("design:type",Function),_.E("design:paramtypes",[CustomEvent,_.xL]),_.E("design:returntype")],Yy.prototype,"onYtServiceRequestCompleted",null);_.x([_.e("data"),_.E("design:type",Object),_.E("design:paramtypes",[])],Yy.prototype,"voteCount",null);
_.x([_.e("data"),_.E("design:type",Object),_.E("design:paramtypes",[])],Yy.prototype,"commentCount",null);_.x([_.e("data"),_.E("design:type",Boolean),_.E("design:paramtypes",[])],Yy.prototype,"hasPoll",null);_.x([_.e("data"),_.E("design:type",Boolean),_.E("design:paramtypes",[])],Yy.prototype,"hasUploadedVideo",null);Yy=_.x([_.f({is:"ytd-post-renderer",disableElementRegistration:!0})],Yy);
_.C(Yy,"ytd-post-renderer",function(){if(qAc!==void 0)return qAc;var S=document.createElement("template");_.h(S,'\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');
S.content.insertBefore(_.t().content.cloneNode(!0),S.content.firstChild);return qAc=S},{mode:1});var XNq;var P7l;var Lg=function(){return _.w.apply(this,arguments)||this};
_.r(Lg,_.w);Lg.prototype.configureRendererStamper=function(){return{"data.images":{id:"items",mapping:{backstageImageRenderer:{component:"ytd-backstage-image-renderer",properties:{surface:"[[surface]]"}}}}}};
_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],Lg.prototype,"ytRendererBehavior",void 0);_.x([_.F(_.qH.YtRendererstamperBehavior),_.E("design:type",Object)],Lg.prototype,"ytRendererstamperBehavior",void 0);_.x([_.F(_.A6.YtdHorizontalListBehavior),_.E("design:type",Object)],Lg.prototype,"ytdHorizontalListBehavior",void 0);_.x([_.F(_.eL.YtComponentBehavior),_.E("design:type",Object)],Lg.prototype,"componentBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],Lg.prototype,"data",void 0);
_.x([_.g({value:"$.items.children"}),_.E("design:type",String)],Lg.prototype,"itemsPath",void 0);_.x([_.g({value:1}),_.E("design:type",Number)],Lg.prototype,"initialCount",void 0);_.x([_.g(),_.E("design:type",String)],Lg.prototype,"surface",void 0);Lg=_.x([_.f({is:"ytd-post-multi-image-renderer",disableElementRegistration:!0})],Lg);
_.C(Lg,"ytd-post-multi-image-renderer",function(){if(P7l!==void 0)return P7l;var S=document.createElement("template");_.h(S,'\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');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);return P7l=S},{mode:_.UW("kevlar_poly_si_batch_j079")?1:2});var Zlq={"data.actionMenu":{id:"action-menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.authorCommentBadge":{id:"author-comment-badge",mapping:{authorCommentBadgeRenderer:"ytd-author-comment-badge-renderer"}},"data.sponsorsOnlyBadge":{id:"sponsors-only-badge",mapping:{sponsorsOnlyBadgeRenderer:"ytd-sponsors-only-badge-renderer"}},"data.backstageAttachment":{id:"content-attachment",mapping:{videoRenderer:{component:"ytd-video-renderer",params:{isBackstageVideo:!0}},backstageImageRenderer:{component:"ytd-backstage-image-renderer",
properties:{surface:"[[data.surface]]"}},postMultiImageRenderer:{component:"ytd-post-multi-image-renderer",properties:{surface:"[[data.surface]]"}},playlistRenderer:{component:"ytd-playlist-renderer",params:{isBackstagePlaylist:!0}}}},editDialog:{id:"edit-dialog",mapping:{backstagePostDialogRenderer:"ytd-backstage-post-dialog-renderer"}}},Mn=function(){var S=_.w.apply(this,arguments)||this;S.hasInlineCommentSection=!1;S.editDialog=null;S.isLoading=!1;S.shouldHideAuthor=!1;S.shouldShowVideoTime=!1;
S.isInEngagementPanel=!1;S.hideBorder=!1;S.usesFullLockup=!1;S.shouldShowMenuInCompactView=!1;S.JSC$13086_spinnerEl=null;S.actionMap={"yt-signal-action-open-post-comment-dialog":"handleSignalActionOpenPostCommentDialogAction"};return S};
_.r(Mn,_.w);_.M=Mn.prototype;_.M.configureRendererStamper=function(){return Zlq};
_.M.computeIsPollHeaderEnabled=function(S){return(S==null?void 0:S.pollMetadataIcon)!=null};
_.M.getPublishTimeStampString=function(S,p){p=new Date((Number(p)-60*((new Date).getTimezoneOffset()-(new Date(Number(p)*1E3)).getTimezoneOffset()))*1E3);p=(new CK(10)).format(p);if(S&&S.runs&&S.runs.length)for(var U=0;U<S.runs.length;U++)S.runs[U].text&&(S.runs[U].text=S.runs[U].text.replace("POST_SCHEDULED_TIMESTAMP_PLACEHOLDER",p));return S};
_.M.created=function(){this.JSC$13086_spinnerEl=null};
_.M.contentTextChanged=function(){this.expander.reset()};
_.M.dataChanged=function(){this.isLoading=!1;this.editDialog=null;var S;if((S=this.data)==null?0:S.actions){S=_.d(this.data.actions);for(var p=S.next();!p.done;p=S.next())this.openEditDialog(_.b(p.value,faq))}};
_.M.handleSignalActionOpenPostCommentDialogAction=function(){_.tB(this.hostElement).querySelector("#action-buttons").reply()};
_.M.updatePoll=function(S,p){p&&this.set("data.pollMetadataVoteCountText",p);this.hasInlineCommentSection&&(S=S>=0,p=_.tB(this.hostElement).querySelector("#action-buttons"),S?p.reply():p.hideReplyDialog())};
_.M.isLoadingChanged=function(){!this.isLoading||this.editDialog||this.JSC$13086_spinnerEl||(this.JSC$13086_spinnerEl=document.createElement("tp-yt-paper-spinner-lite"),_.tB(this.hostElement).appendChild(this.JSC$13086_spinnerEl));this.JSC$13086_spinnerEl&&(this.JSC$13086_spinnerEl.active=this.isLoading)};
_.M.onYtNavigate=function(S){var p=this.get("updateCommentDialogEndpoint",S.detail.endpoint);p&&(this.openEditDialog(p),S.stopPropagation())};
_.M.onYtCommentboxDismiss=function(){this.editDialog=null};
_.M.onYtCommentPollRevert=function(S,p){p&&this.updatePoll(p.selectedChoiceIndex,p.totalVotes)};
_.M.onYtServiceRequestSent=function(S,p){S.stopPropagation();S=_.b(p.endpoint,IEe);if(_.b(p.endpoint,dvt)||S&&!S.clientActions)this.isLoading=!0;if(p.actions)for(S=0;S<p.actions.length;S++){var U=p.actions[S],Y=_.b(U,y5);Y&&(U=this.get("updateBackstagePollAction.selectedChoiceIndex",U),U===void 0&&(U=-1),this.updatePoll(U,Y.totalVotes))}};
_.M.onYtServiceRequestCompleted=function(){this.isLoading=!1};
_.M.openEditDialog=function(S){S&&S.dialog&&(this.editDialog=S.dialog,S=this.editDialogElement.firstElementChild)&&(S.focus(),S.openDialog&&S.openDialog())};
_.M.computeIsBodyHidden=function(S,p){return!!S||p};
_.$u.Object.defineProperties(Mn.prototype,{postTextMaxLines:{configurable:!0,enumerable:!0,get:function(){return this.isInEngagementPanel?10:4}},
pollIcon:{configurable:!0,enumerable:!0,get:function(){var S,p;if((S=this.data)==null?0:(p=S.pollMetadataIcon)==null?0:p.iconType)return _.If(this.data.pollMetadataIcon.iconType)}},
voteCount:{configurable:!0,enumerable:!0,get:function(){var S;return((S=this.data)==null?void 0:S.voteCount)||_.Ec("0")}},
commentCount:{configurable:!0,enumerable:!0,get:function(){var S;return(S=this.data)==null?void 0:S.commentCount}},
hasPoll:{configurable:!0,enumerable:!0,get:function(){return!(!this.data.backstageAttachment||!_.b(this.data.backstageAttachment,l0I))}},
hasQuiz:{configurable:!0,enumerable:!0,get:function(){return!(!this.data.backstageAttachment||!_.b(this.data.backstageAttachment,KZl))}},
hasUploadedVideo:{configurable:!0,enumerable:!0,get:function(){return!(!this.data.backstageAttachment||!_.b(this.data.backstageAttachment,bDP))}}});
Mn.prototype.onYtServiceRequestCompleted=Mn.prototype.onYtServiceRequestCompleted;Mn.prototype.onYtServiceRequestSent=Mn.prototype.onYtServiceRequestSent;Mn.prototype.onYtCommentPollRevert=Mn.prototype.onYtCommentPollRevert;Mn.prototype.onYtCommentboxDismiss=Mn.prototype.onYtCommentboxDismiss;Mn.prototype.onYtNavigate=Mn.prototype.onYtNavigate;Mn.prototype.isLoadingChanged=Mn.prototype.isLoadingChanged;Mn.prototype.dataChanged=Mn.prototype.dataChanged;Mn.prototype.contentTextChanged=Mn.prototype.contentTextChanged;
_.x([_.F(_.Aj.YtActionHandlerBehavior),_.E("design:type",Object)],Mn.prototype,"actionHandlerBehavior",void 0);_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],Mn.prototype,"rendererBehavior",void 0);_.x([_.F(_.qH.YtRendererstamperBehavior),_.E("design:type",Object)],Mn.prototype,"rendererstamperBehavior",void 0);_.x([_.O2("#contentTextExpander"),_.E("design:type",Object)],Mn.prototype,"expander",void 0);
_.x([_.O2("#edit-dialog"),_.E("design:type",Element)],Mn.prototype,"editDialogElement",void 0);_.x([_.g(),_.E("design:type",Object)],Mn.prototype,"data",void 0);_.x([_.g(),_.E("design:type",Object)],Mn.prototype,"hasInlineCommentSection",void 0);_.x([_.g(),_.E("design:type",Object)],Mn.prototype,"editDialog",void 0);_.x([_.g(),_.E("design:type",Object)],Mn.prototype,"isLoading",void 0);
_.x([_.g({computed:"computeIsPollHeaderEnabled(data)"}),_.E("design:type",Boolean)],Mn.prototype,"isPollHeaderEnabled",void 0);_.x([_.g(),_.E("design:type",Object)],Mn.prototype,"shouldHideAuthor",void 0);_.x([_.g(),_.E("design:type",Object)],Mn.prototype,"shouldShowVideoTime",void 0);_.x([_.g(),_.E("design:type",Object)],Mn.prototype,"isInEngagementPanel",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],Mn.prototype,"hideBorder",void 0);
_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],Mn.prototype,"usesFullLockup",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],Mn.prototype,"shouldShowMenuInCompactView",void 0);_.x([_.e("isInEngagementPanel"),_.E("design:type",Number),_.E("design:paramtypes",[])],Mn.prototype,"postTextMaxLines",null);_.x([_.e("data.icon.iconType"),_.E("design:type",Object),_.E("design:paramtypes",[])],Mn.prototype,"pollIcon",null);
_.x([_.T4("data.contentText"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],Mn.prototype,"contentTextChanged",null);_.x([_.z4("data"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],Mn.prototype,"dataChanged",null);_.x([_.T4("isLoading"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],Mn.prototype,"isLoadingChanged",null);
_.x([_.Vd("yt-navigate"),_.E("design:type",Function),_.E("design:paramtypes",[CustomEvent]),_.E("design:returntype")],Mn.prototype,"onYtNavigate",null);_.x([_.Vd("yt-commentbox-dismiss"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],Mn.prototype,"onYtCommentboxDismiss",null);_.x([_.Vd("yt-comment-poll-revert"),_.E("design:type",Function),_.E("design:paramtypes",[CustomEvent,Object]),_.E("design:returntype")],Mn.prototype,"onYtCommentPollRevert",null);
_.x([_.Vd("yt-service-request-sent"),_.E("design:type",Function),_.E("design:paramtypes",[CustomEvent,_.eM]),_.E("design:returntype")],Mn.prototype,"onYtServiceRequestSent",null);_.x([_.Vd("yt-service-request-completed"),_.E("design:type",Function),_.E("design:paramtypes",[CustomEvent]),_.E("design:returntype")],Mn.prototype,"onYtServiceRequestCompleted",null);_.x([_.e("data"),_.E("design:type",Object),_.E("design:paramtypes",[])],Mn.prototype,"voteCount",null);
_.x([_.e("data"),_.E("design:type",Object),_.E("design:paramtypes",[])],Mn.prototype,"commentCount",null);_.x([_.e("data.backstageAttachment"),_.E("design:type",Boolean),_.E("design:paramtypes",[])],Mn.prototype,"hasPoll",null);_.x([_.e("data"),_.E("design:type",Boolean),_.E("design:paramtypes",[])],Mn.prototype,"hasQuiz",null);_.x([_.e("data"),_.E("design:type",Boolean),_.E("design:paramtypes",[])],Mn.prototype,"hasUploadedVideo",null);
Mn=_.x([_.f({is:"ytd-backstage-post-renderer",disableElementRegistration:!0})],Mn);
_.C(Mn,"ytd-backstage-post-renderer",function(){if(XNq!==void 0)return XNq;var S=document.createElement("template");_.h(S,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-backstage-post-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="body" hidden="[[computeIsBodyHidden(editDialog, isLoading)]]" class="style-scope ytd-backstage-post-renderer">\n  <div id="author-thumbnail" hidden="[[shouldHideAuthor]]" class="style-scope ytd-backstage-post-renderer">\n    <a class="yt-simple-endpoint style-scope ytd-backstage-post-renderer" href$="[[computeHref_(data.authorEndpoint)]]" data="[[data.authorEndpoint]]">\n      <yt-img-shadow fit="" height="40" thumbnail="[[data.authorThumbnail]]" width="40" class="style-scope ytd-backstage-post-renderer">\n      </yt-img-shadow>\n    </a>\n  </div>\n  <div id="main" class="style-scope ytd-backstage-post-renderer">\n    <div id="header" class="style-scope ytd-backstage-post-renderer">\n      <div id="header-author" hidden="[[shouldHideAuthor]]" class="style-scope ytd-backstage-post-renderer">\n        <a id="author-text" class="yt-simple-endpoint style-scope ytd-backstage-post-renderer" href$="[[computeHref_(data.authorEndpoint)]]" data="[[data.authorEndpoint]]" hidden="[[data.authorCommentBadge]]">\n          <span class="style-scope ytd-backstage-post-renderer">[[getSimpleString(data.authorText)]]</span>\n        </a>\n        <span id="author-comment-badge" hidden="[[!data.authorCommentBadge]]" class="style-scope ytd-backstage-post-renderer"></span>\n        <template is="dom-if" if="[[isPollHeaderEnabled]]" class="style-scope ytd-backstage-post-renderer">\n          <yt-icon id="poll-icon" icon="[[pollIcon]]" class="style-scope ytd-backstage-post-renderer"></yt-icon>\n          <yt-formatted-string class="poll-metadata-text style-scope ytd-backstage-post-renderer" text="[[data.pollMetadataText]]">\n          </yt-formatted-string>\n          <span class="poll-metadata-text-separator style-scope ytd-backstage-post-renderer">\u00b7</span>\n          <yt-formatted-string class="poll-metadata-text style-scope ytd-backstage-post-renderer" text="[[data.pollMetadataVoteCountText]]">\n          </yt-formatted-string>\n          <span class="poll-metadata-text-separator style-scope ytd-backstage-post-renderer">\u00b7</span>\n        </template>\n        <yt-formatted-string id="published-time-text" link-inherit-color="" text="[[getPublishTimeStampString(data.publishedTimeText, data.scheduledPublishTimeSec)]]" class="style-scope ytd-backstage-post-renderer">\n        </yt-formatted-string>\n        <span id="sponsors-only-badge" hidden="[[!data.sponsorsOnlyBadge]]" class="style-scope ytd-backstage-post-renderer"></span>\n      </div>\n      <yt-formatted-string id="video-time-text" force-default-style="" hidden="[[!shouldShowVideoTime]]" link-inherit-color="" text="[[data.publishedTimeText]]" class="style-scope ytd-backstage-post-renderer">\n      </yt-formatted-string>\n    </div>\n    <ytd-expander id="contentTextExpander" max-number-of-lines="[[postTextMaxLines]]" class="style-scope ytd-backstage-post-renderer">\n      <yt-formatted-string id="voted-option" slot="content" disable-upgrade$="[[!data.prologueText]]" hidden="[[!data.prologueText]]" text="[[data.prologueText]]" class="style-scope ytd-backstage-post-renderer">\n      </yt-formatted-string>\n      <yt-formatted-string id="content-text" slot="content" dir="auto" force-default-style="" split-lines="" text="[[data.contentText]]" class="style-scope ytd-backstage-post-renderer">\n      </yt-formatted-string>\n      <span class="more-button style-scope ytd-backstage-post-renderer" slot="more-button">[[getSimpleString(data.expandButton.buttonRenderer.text)]]</span>\n      <span class="less-button style-scope ytd-backstage-post-renderer" slot="less-button">[[getSimpleString(data.collapseButton.buttonRenderer.text)]]</span>\n    </ytd-expander>\n    <div id="content-attachment" hidden="[[!data.backstageAttachment]]" class="style-scope ytd-backstage-post-renderer"></div>\n    <ytd-backstage-poll-renderer id="poll-attachment" aria-label$="[[data.backstageAttachment.pollRenderer.accessibilityData.accessibilityData.label]]" data="[[data.backstageAttachment.pollRenderer]]" disable-upgrade$="[[!hasPoll]]" hidden="[[!hasPoll]]" role="group" class="style-scope ytd-backstage-post-renderer">\n    </ytd-backstage-poll-renderer>\n    <ytd-backstage-quiz-renderer id="quiz-attachment" aria-label$="[[data.backstageAttachment.quizRenderer.accessibilityData.accessibilityData.label]]" data="[[data.backstageAttachment.quizRenderer]]" hidden="[[!hasQuiz]]" role="group" uses-panel-lockup$="[[isInEngagementPanel]]" class="style-scope ytd-backstage-post-renderer">\n    </ytd-backstage-quiz-renderer>\n    <ytd-post-uploaded-video-renderer id="uploaded-video-attachment" data="[[data.backstageAttachment.uploadedVideoRenderer]]" hidden="[[!hasUploadedVideo]]" role="group" class="style-scope ytd-backstage-post-renderer">\n    </ytd-post-uploaded-video-renderer>\n    <ytd-comment-action-buttons-renderer id="action-buttons" comment-count="[[commentCount]]" data="[[data.actionButtons.commentActionButtonsRenderer]]" has-poll="[[hasPoll]]" hidden="[[!data.actionButtons.commentActionButtonsRenderer]]" vote-count="[[voteCount]]" class="style-scope ytd-backstage-post-renderer">\n    </ytd-comment-action-buttons-renderer>\n  </div>\n\n  <div id="action-menu" class="style-scope ytd-backstage-post-renderer"></div>\n</div>\n<div id="edit-dialog" hidden="[[!editDialog]]" class="style-scope ytd-backstage-post-renderer"></div>\n');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);return XNq=S},{mode:1});var scH;var IR=function(){var S=_.w.apply(this,arguments)||this;S.editDialog=null;S.showExpandButton=!1;S.isRichGrid=!1;S.usesFullLockup=!1;return S};
_.r(IR,_.w);_.M=IR.prototype;_.M.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"}}}};
_.M.dataChanged=function(){this.editDialog=null;this.showExpandButton=this.computeShowExpandButton(this.data)};
_.M.computeShowExpandButton=function(S){return this.usesCompactLockup||S&&S.showFullContentText?!1:this.repostContentTextEl.scrollHeight>this.repostContentTextEl.clientHeight};
_.M.computeUsesCompactLockup=function(S){return!!S.condensedContent};
_.M.computeShowFullContentText=function(S){return!S};
_.M.onYtNavigate=function(S){S=this.get("updateCommentDialogEndpoint",S.detail.endpoint);this.openEditDialog(S)};
_.M.onYtCommentboxDismiss=function(){this.editDialog=null};
_.M.openEditDialog=function(S){S&&S.dialog&&(this.editDialog=S.dialog,S=this.repostEditDialogEl.firstElementChild)&&(S.focus(),S.openDialog&&S.openDialog())};
_.M.onTap=function(S){if(this.data){var p=null;this.usesCompactLockup&&!_.Eo(_.E1(S)||[],this.hostElement,["YT-IMG-SHADOW"])?p=this.get("navigationEndpoint",this.data):S.target===this.moreButtonEl&&(p=this.get("navigationEndpoint",S.target.data));p&&_.cv(this.hostElement,"yt-navigate",{endpoint:p})}};
IR.prototype.onYtCommentboxDismiss=IR.prototype.onYtCommentboxDismiss;IR.prototype.onYtNavigate=IR.prototype.onYtNavigate;IR.prototype.dataChanged=IR.prototype.dataChanged;_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],IR.prototype,"ytRendererBehavior",void 0);_.x([_.F(_.qH.YtRendererstamperBehavior),_.E("design:type",Object)],IR.prototype,"ytRendererstamperBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],IR.prototype,"data",void 0);
_.x([_.g(),_.E("design:type",Object)],IR.prototype,"editDialog",void 0);_.x([_.g({computed:"computeUsesCompactLockup(data)",reflectToAttribute:!0}),_.E("design:type",Boolean)],IR.prototype,"usesCompactLockup",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],IR.prototype,"showExpandButton",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],IR.prototype,"isRichGrid",void 0);
_.x([_.g({computed:"computeShowFullContentText(data.showFullContentText)",reflectToAttribute:!0}),_.E("design:type",Boolean)],IR.prototype,"showFullContentText",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],IR.prototype,"usesFullLockup",void 0);_.x([_.O2("#more"),_.E("design:type",Object)],IR.prototype,"moreButtonEl",void 0);_.x([_.O2("#repost-content-text"),_.E("design:type",HTMLElement)],IR.prototype,"repostContentTextEl",void 0);
_.x([_.O2("#repost-edit-dialog"),_.E("design:type",HTMLElement)],IR.prototype,"repostEditDialogEl",void 0);_.x([_.z4("data"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],IR.prototype,"dataChanged",null);_.x([_.Vd("yt-navigate"),_.E("design:type",Function),_.E("design:paramtypes",[CustomEvent]),_.E("design:returntype")],IR.prototype,"onYtNavigate",null);
_.x([_.Vd("yt-commentbox-dismiss"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],IR.prototype,"onYtCommentboxDismiss",null);IR=_.x([_.f({is:"ytd-shared-post-renderer",disableElementRegistration:!0})],IR);
_.C(IR,"ytd-shared-post-renderer",function(){if(scH!==void 0)return scH;var S=document.createElement("template");_.h(S,'\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');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);return scH=S},{mode:1});var enq;var goI;var dS=function(){return _.w.apply(this,arguments)||this};
_.r(dS,_.w);dS.prototype.attached=function(){var S=this;this.networkStatusManager||(this.networkStatusManager=new _.EP,this.networkStatusManager.listen("publicytnetworkstatus-online",function(){S.onlineHandler()}))};
dS.prototype.detached=function(){var S=this;this.networkStatusManager&&(this.networkStatusManager.unlisten("publicytnetworkstatus-online",function(){S.onlineHandler()}),delete this.networkStatusManager)};
dS.prototype.onlineHandler=function(){this.data.serviceEndpoint&&this.ytComponentBehavior.resolveCommand(this.data.serviceEndpoint)};
_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],dS.prototype,"ytRendererBehavior",void 0);_.x([_.F(_.eL.YtComponentBehavior),_.E("design:type",Object)],dS.prototype,"ytComponentBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],dS.prototype,"data",void 0);dS=_.x([_.f({disableElementRegistration:!0,is:"ytd-reload-page-button-renderer"})],dS);
_.C(dS,"ytd-reload-page-button-renderer",function(){if(goI!==void 0)return goI;var S=document.createElement("template");_.h(S,'\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>');S.content.insertBefore(_.t().content.cloneNode(!0),S.content.firstChild);
return goI=S},{mode:1});var uRm={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"},V_=function(){var S=_.w.apply(this,arguments)||this;S.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return S};
_.r(V_,_.w);_.M=V_.prototype;_.M.attached=function(){this.isDarkTheme=this.isAppDarkTheme()};
_.M.configureRendererStamper=function(){return{buttons:{id:"buttons",mapping:{buttonRenderer:"ytd-button-renderer",reloadPageButtonRenderer:"ytd-reload-page-button-renderer",toggleButtonRenderer:"ytd-toggle-button-renderer"}}}};
_.M.computeHasBodyText=function(S){return!!S.bodyText};
_.M.computeButtons=function(S){var p=[];S.ctaButton&&p.push(S.ctaButton);S.secondaryButton&&p.push(S.secondaryButton);return p};
_.M.computeRendererStyle=function(S){return S.style?S.style.value.split("TYPE_")[1].replace(/_/g,"-").toLowerCase():S.icon?"":"no-icon"};
_.M.getIconName=function(S,p){p=p===void 0?!1:p;if(S===void 0)return"";S=this.get("icon.iconType",S);var U;_.y("enable_hlp_client_icon_pick")?U=this.getThemedIcon(S,p):U=S;(p=uRm[U])||(p="yt-icons");return[p,U].join(":")};
_.M.getThemedIcon=function(S,p){return["HASHTAG_LANDING_PAGE_EMPTY","HASHTAG_LANDING_PAGE_EMPTY_DARK_MODE"].includes(S)?p?"HASHTAG_LANDING_PAGE_EMPTY_DARK_MODE":"HASHTAG_LANDING_PAGE_EMPTY":["HASHTAG_LANDING_PAGE_ERROR","HASHTAG_LANDING_PAGE_ERROR_DARK_MODE"].includes(S)?p?"HASHTAG_LANDING_PAGE_ERROR_DARK_MODE":"HASHTAG_LANDING_PAGE_ERROR":S};
_.M.isThumbnail=function(S){return!!S.thumbnail};
_.M.onDarkModeToggledAction=function(){this.isDarkTheme=this.isAppDarkTheme()};
_.M.isAppDarkTheme=function(){return document.documentElement.hasAttribute("dark")};
_.x([_.F(_.qH.YtRendererstamperBehavior),_.E("design:type",Object)],V_.prototype,"ytRendererstamperBehavior",void 0);_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],V_.prototype,"ytRendererBehavior",void 0);_.x([_.F(_.Aj.YtActionHandlerBehavior),_.E("design:type",Object)],V_.prototype,"ytActionHandlerBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],V_.prototype,"data",void 0);
_.x([_.g({computed:"computeRendererStyle(data)",reflectToAttribute:!0}),_.E("design:type",String)],V_.prototype,"rendererStyle",void 0);_.x([_.g({computed:"getIconName(data, isDarkTheme)",reflectToAttribute:!0}),_.E("design:type",String)],V_.prototype,"iconName",void 0);_.x([_.g({computed:"isThumbnail(data)",reflectToAttribute:!0}),_.E("design:type",Boolean)],V_.prototype,"thumbnail",void 0);_.x([_.g({computed:"computeButtons(data)"}),_.E("design:type",Array)],V_.prototype,"buttons",void 0);
_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Boolean)],V_.prototype,"isDarkTheme",void 0);_.x([_.g({computed:"computeHasBodyText(data)",reflectToAttribute:!0}),_.E("design:type",Boolean)],V_.prototype,"hasBodyText",void 0);V_=_.x([_.f({is:"ytd-background-promo-renderer",disableElementRegistration:!0})],V_);
_.C(V_,"ytd-background-promo-renderer",function(){if(enq!==void 0)return enq;var S=document.createElement("template");_.h(S,'\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');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);return enq=S},{mode:1});var wNm;var T3=function(){var S=_.w.apply(this,arguments)||this;S.collections=_.y("web_modern_collections_v2");return S};
_.r(T3,_.w);_.$u.Object.defineProperties(T3.prototype,{collectionStack:{configurable:!0,enumerable:!0,get:function(){var S,p,U,Y,L,I;return{thumbnailSize:"small",doubleStack:!1,sampledThumbnailColor:(S=this.data)==null?void 0:(p=S.thumbnail)==null?void 0:p.sampledThumbnailColor,vibrantColorPalette:(U=this.data)==null?void 0:(Y=U.thumbnail)==null?void 0:Y.vibrantColorPalette,darkColorPalette:(L=this.data)==null?void 0:(I=L.thumbnail)==null?void 0:I.darkColorPalette,experimentEnabled:this.collections}}}});
_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],T3.prototype,"ytRendererBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],T3.prototype,"data",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Boolean)],T3.prototype,"collections",void 0);_.x([_.e("data","collections"),_.E("design:type",Object),_.E("design:paramtypes",[])],T3.prototype,"collectionStack",null);T3=_.x([_.f({is:"ytd-compact-station-renderer",disableElementRegistration:!0})],T3);
_.C(T3,"ytd-compact-station-renderer",function(){if(wNm!==void 0)return wNm;var S=document.createElement("template");_.h(S,'\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');
S.content.insertBefore(_.t().content.cloneNode(!0),S.content.firstChild);return wNm=S},{mode:1});var lzj;var Wc=function(){var S=_.w.apply(this,arguments)||this;S.isRichGrid=!1;return S};
_.r(Wc,_.w);Wc.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]]"}}}}}};
_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],Wc.prototype,"ytRendererBehavior",void 0);_.x([_.F(_.qH.YtRendererstamperBehavior),_.E("design:type",Object)],Wc.prototype,"ytRendererstamperBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],Wc.prototype,"data",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],Wc.prototype,"isRichGrid",void 0);Wc=_.x([_.f({is:"ytd-grid-channel-renderer",disableElementRegistration:!0})],Wc);
_.C(Wc,"ytd-grid-channel-renderer",function(){if(lzj!==void 0)return lzj;var S=document.createElement("template");_.h(S,'\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');
S.content.insertBefore(_.t().content.cloneNode(!0),S.content.firstChild);return lzj=S},{mode:1});var azP;var Ov=function(){return _.w.apply(this,arguments)||this};
_.r(Ov,_.w);_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],Ov.prototype,"ytRendererBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],Ov.prototype,"data",void 0);Ov=_.x([_.f({is:"ytd-grid-movie-playlist-renderer",disableElementRegistration:!0})],Ov);
_.C(Ov,"ytd-grid-movie-playlist-renderer",function(){if(azP!==void 0)return azP;var S=document.createElement("template");_.h(S,'\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');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);return azP=S},{mode:1});var fzP;var ky=function(){var S=_.w.apply(this,arguments)||this;S.downloadProgress=0;S.transferState="TRANSFER_STATE_UNKNOWN";S.modernButtons=_.y("web_modern_buttons");S.useModernCollectionsV2=_.y("web_modern_collections_v2");return S};
_.r(ky,_.w);ky.prototype.detached=function(){this.ytdLockupBehavior.lockupIsHovered=!1};
ky.prototype.configureRendererStamper=function(){return{"data.menu":da}};
ky.prototype.dataChanged=function(){this.data&&this.transferStateChanged()};
ky.prototype.transferStateChanged=function(){this.isDownloads=!1;if(this.transferState!=="TRANSFER_STATE_UNKNOWN"&&this.entityInfo&&!_.y("woffle_playlist_renderer_killswitch")){var S,p=T_u(this.entityInfo,this.transferState,this.downloadProgress,(S=this.data)==null?void 0:S.playlistId,this.isOnline);S=p.viewPlaylistText;var U=p.badges;p=p.thumbnailOverlays;this.isDownloads=!!S||!!U;this.set("data.viewPlaylistText",S);U&&U.length>0&&this.set("data.badges",U);p&&p.length>0&&this.set("data.thumbnailOverlays",
p)}};
_.$u.Object.defineProperties(ky.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 S;return!((S=this.data)==null?0:S.menu)}}});
ky.prototype.transferStateChanged=ky.prototype.transferStateChanged;ky.prototype.dataChanged=ky.prototype.dataChanged;_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],ky.prototype,"ytRendererBehavior",void 0);_.x([_.F(_.ak),_.E("design:type",Object)],ky.prototype,"ytdLockupBehavior",void 0);_.x([_.F(_.Xh),_.E("design:type",Object)],ky.prototype,"ytdReduxBehavior",void 0);_.x([_.F(_.qH.YtRendererstamperBehavior),_.E("design:type",Object)],ky.prototype,"ytRendererstamperBehavior",void 0);
_.x([_.g({selector:_.G1q,selectorArgs:["data.playlistId"]}),_.E("design:type",Object)],ky.prototype,"downloadProgress",void 0);_.x([_.g({selector:_.sc,selectorArgs:["data.playlistId"]}),_.E("design:type",Object)],ky.prototype,"transferState",void 0);_.x([_.g({selector:r1N,selectorArgs:["data.playlistId"]}),_.E("design:type",Object)],ky.prototype,"entityInfo",void 0);_.x([_.g({selector:nSN}),_.E("design:type",Boolean)],ky.prototype,"isOnline",void 0);
_.x([_.g(),_.E("design:type",Object)],ky.prototype,"data",void 0);_.x([_.g(),_.E("design:type",Object)],ky.prototype,"downloadRenderData",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Boolean)],ky.prototype,"modernButtons",void 0);_.x([_.g({value:!1,reflectToAttribute:!0}),_.E("design:type",Boolean)],ky.prototype,"isDownloads",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],ky.prototype,"useModernCollectionsV2",void 0);
_.x([_.e("transferState"),_.g({reflectToAttribute:!0}),_.E("design:type",String),_.E("design:paramtypes",[])],ky.prototype,"downloadState",null);_.x([_.e("data"),_.g({reflectToAttribute:!0}),_.E("design:type",Boolean),_.E("design:paramtypes",[])],ky.prototype,"menuHidden",null);_.x([_.z4("data"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],ky.prototype,"dataChanged",null);
_.x([_.z4("transferState","downloadProgress","isOnline"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],ky.prototype,"transferStateChanged",null);ky=_.x([_.f({is:"ytd-grid-playlist-renderer",disableElementRegistration:!0})],ky);
_.C(ky,"ytd-grid-playlist-renderer",function(){if(fzP!==void 0)return fzP;var S=document.createElement("template");_.h(S,'\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');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);return fzP=S},{mode:1});var C7e;var Hc=function(){var S=_.w.apply(this,arguments)||this;S.collections=_.y("web_modern_collections_v2");return S};
_.r(Hc,_.w);Hc.prototype.configureRendererStamper=function(){return{"data.menu":da,dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.$u.Object.defineProperties(Hc.prototype,{collectionStack:{configurable:!0,enumerable:!0,get:function(){var S,p,U,Y,L,I;return{thumbnailSize:"medium",doubleStack:!1,sampledThumbnailColor:(S=this.data)==null?void 0:(p=S.thumbnail)==null?void 0:p.sampledThumbnailColor,vibrantColorPalette:(U=this.data)==null?void 0:(Y=U.thumbnail)==null?void 0:Y.vibrantColorPalette,darkColorPalette:(L=this.data)==null?void 0:(I=L.thumbnail)==null?void 0:I.darkColorPalette,experimentEnabled:this.collections}}}});
_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],Hc.prototype,"ytRendererBehavior",void 0);_.x([_.F(_.Zh),_.E("design:type",Object)],Hc.prototype,"ytdDismissibleItemBehavior",void 0);_.x([_.F(_.ak),_.E("design:type",Object)],Hc.prototype,"ytdLockupBehavior",void 0);_.x([_.F(_.qH.YtRendererstamperBehavior),_.E("design:type",Object)],Hc.prototype,"ytRendererstamperBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],Hc.prototype,"data",void 0);
_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Boolean)],Hc.prototype,"collections",void 0);_.x([_.e("data","collections"),_.E("design:type",Object),_.E("design:paramtypes",[])],Hc.prototype,"collectionStack",null);Hc=_.x([_.f({is:"ytd-grid-radio-renderer",disableElementRegistration:!0})],Hc);
_.C(Hc,"ytd-grid-radio-renderer",function(){if(C7e!==void 0)return C7e;var S=document.createElement("template");_.h(S,'\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');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);return C7e=S},{mode:1});var xSQ;var D6=function(){var S=_.w.apply(this,arguments)||this;S.useModernCollectionsV2=_.y("web_modern_collections_v2");return S};
_.r(D6,_.w);D6.prototype.configureRendererStamper=function(){return{"data.offerButton":{id:"offer-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!0}}}}}};
D6.prototype.computeNavigationEndpoint=function(S){return Ere(S==null?void 0:S.navigationEndpoint)};
_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],D6.prototype,"ytRendererBehavior",void 0);_.x([_.F(_.qH.YtRendererstamperBehavior),_.E("design:type",Object)],D6.prototype,"ytRendererstamperBehavior",void 0);_.x([_.F(_.ak),_.E("design:type",Object)],D6.prototype,"ytdLockupBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],D6.prototype,"data",void 0);_.x([_.g({computed:"computeNavigationEndpoint(data)"}),_.E("design:type",Object)],D6.prototype,"computedNavigationEndpoint",void 0);
_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],D6.prototype,"useModernCollectionsV2",void 0);D6=_.x([_.f({is:"ytd-grid-show-renderer",disableElementRegistration:!0})],D6);
_.C(D6,"ytd-grid-show-renderer",function(){if(xSQ!==void 0)return xSQ;var S=document.createElement("template");_.h(S,'\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');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);return xSQ=S},{mode:1});var Eot;_.z3=function(S){this.playerClient=S};
_.mSt=function(S,p,U){U=U===void 0?{}:U;return S.playerClient.setOption("ad",p,U)};
_.z3.prototype.getOptions=function(){return this.playerClient.getOptions("ad")||[]};
_.z3.prototype.executeCommand=function(S,p){this.getOptions().includes("executeCommand")?_.mSt(this,"executeCommand",{command:S,layoutId:p}):_.qB("Calling executeCommand when adModule is not loaded")};var Q_=function(){return _.w.apply(this,arguments)||this};
_.r(Q_,_.w);Q_.prototype.getLayoutId=function(){var S=_.ad("yt.www.ads.eventcache.getLastCompanionData");return S?(S=S())&&S.layoutId:null};
Q_.prototype.onTap=function(){if(this.data&&this.data.clickthroughEndpoint){var S=_.$L(),p=this.getLayoutId(),U=this.data.clickthroughEndpoint;S&&p&&_.y("h5_companion_enable_adcpn_macro_substitution_for_click_pings")?S.getPlayerPromise().then(function(Y){(new _.z3(Y)).executeCommand(U,p)}):_.cv(this.hostElement,"yt-navigate",{endpoint:U})}};
_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],Q_.prototype,"ytRendererBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],Q_.prototype,"data",void 0);Q_=_.x([_.f({is:"ytd-shopping-companion-item-renderer",disableElementRegistration:!0})],Q_);
_.C(Q_,"ytd-shopping-companion-item-renderer",function(){if(Eot!==void 0)return Eot;var S=document.createElement("template");_.h(S,'\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');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);return Eot=S},{mode:1});var oot;var Ju=function(){var S=_.w.apply(this,arguments)||this;S.isExpandableContent=!1;return S};
_.r(Ju,_.w);_.$u.Object.defineProperties(Ju.prototype,{showCta:{configurable:!0,enumerable:!0,get:function(){var S;return!((S=this.data)==null||!S.ctaText)}},
ctaText:{configurable:!0,enumerable:!0,get:function(){var S;return(S=this.data)==null?void 0:S.ctaText}},
hasPriceTopPosition:{configurable:!0,enumerable:!0,get:function(){var S;return((S=this.data)==null?void 0:S.layoutStyle)!=="VERTICAL_PRODUCT_CARD_LAYOUT_STYLE_SHOPPING_COLLECTION"}},
hasPriceBottomPosition:{configurable:!0,enumerable:!0,get:function(){var S;return((S=this.data)==null?void 0:S.layoutStyle)==="VERTICAL_PRODUCT_CARD_LAYOUT_STYLE_SHOPPING_COLLECTION"}},
useNewStyle:{configurable:!0,enumerable:!0,get:function(){var S;return(S=this.data)==null?void 0:S.useNewStyle}},
showPriceReplacementText:{configurable:!0,enumerable:!0,get:function(){var S;return!((S=this.data)==null||!S.priceReplacementText)}},
priceValue:{configurable:!0,enumerable:!0,get:function(){var S,p,U;return((S=this.data)==null?void 0:S.price)||((p=this.data)==null?void 0:(U=p.dealsData)==null?void 0:U.currentPrice)}},
showDeal:{configurable:!0,enumerable:!0,get:function(){var S,p;if((S=this.data)!=null&&S.dealsData&&((p=this.data)==null||!p.priceReplacementText)){S=this.data.dealsData;var U,Y,L;return((U=S.salesData)==null?void 0:U.originalPrice)||((Y=S.priceDropData)==null?void 0:Y.referencePrice)||((L=S.promotionData)==null?void 0:L.promotionLabel)}}},
showAffiliateDisclaimer:{configurable:!0,enumerable:!0,get:function(){var S;return!((S=this.data)==null||!S.affiliateDisclaimer)}},
useSaleStyle:{configurable:!0,enumerable:!0,get:function(){var S,p;return(S=this.data)==null?void 0:(p=S.dealsData)==null?void 0:p.salesData}},
useFromBrandCtaStyle:{configurable:!0,enumerable:!0,get:function(){var S;return((S=this.data)==null?void 0:S.ctaStyle)==="VERTICAL_PRODUCT_CARD_CTA_STYLE_FROM_BRAND"}},
useFromVendorCtaStyle:{configurable:!0,enumerable:!0,get:function(){var S;return((S=this.data)==null?void 0:S.ctaStyle)==="VERTICAL_PRODUCT_CARD_CTA_STYLE_FROM_VENDOR"}},
useShoppingCollectionCtaStyle:{configurable:!0,enumerable:!0,get:function(){var S;return((S=this.data)==null?void 0:S.ctaStyle)==="VERTICAL_PRODUCT_CARD_CTA_STYLE_SHOPPING_COLLECTION"}}});
_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],Ju.prototype,"ytRendererBehavior",void 0);_.x([_.F(_.eL.YtComponentBehavior),_.E("design:type",Object)],Ju.prototype,"componentBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],Ju.prototype,"data",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],Ju.prototype,"isExpandableContent",void 0);_.x([_.e("data"),_.E("design:type",Object),_.E("design:paramtypes",[])],Ju.prototype,"showCta",null);
_.x([_.e("data"),_.E("design:type",Object),_.E("design:paramtypes",[])],Ju.prototype,"ctaText",null);_.x([_.e("data"),_.E("design:type",Object),_.E("design:paramtypes",[])],Ju.prototype,"hasPriceTopPosition",null);_.x([_.e("data"),_.E("design:type",Object),_.E("design:paramtypes",[])],Ju.prototype,"hasPriceBottomPosition",null);_.x([_.g({reflectToAttribute:!0}),_.e("data"),_.E("design:type",Object),_.E("design:paramtypes",[])],Ju.prototype,"useNewStyle",null);
_.x([_.e("data"),_.E("design:type",Object),_.E("design:paramtypes",[])],Ju.prototype,"showPriceReplacementText",null);_.x([_.g({reflectToAttribute:!0}),_.e("data"),_.E("design:type",Object),_.E("design:paramtypes",[])],Ju.prototype,"priceValue",null);_.x([_.g({reflectToAttribute:!0}),_.e("data"),_.E("design:type",Object),_.E("design:paramtypes",[])],Ju.prototype,"showDeal",null);_.x([_.e("data"),_.E("design:type",Object),_.E("design:paramtypes",[])],Ju.prototype,"showAffiliateDisclaimer",null);
_.x([_.g({reflectToAttribute:!0}),_.e("data"),_.E("design:type",Object),_.E("design:paramtypes",[])],Ju.prototype,"useSaleStyle",null);_.x([_.g({reflectToAttribute:!0}),_.e("data"),_.E("design:type",Object),_.E("design:paramtypes",[])],Ju.prototype,"useFromBrandCtaStyle",null);_.x([_.g({reflectToAttribute:!0}),_.e("data"),_.E("design:type",Object),_.E("design:paramtypes",[])],Ju.prototype,"useFromVendorCtaStyle",null);
_.x([_.g({reflectToAttribute:!0}),_.e("data"),_.E("design:type",Object),_.E("design:paramtypes",[])],Ju.prototype,"useShoppingCollectionCtaStyle",null);Ju=_.x([_.f({disableElementRegistration:!0,is:"ytd-vertical-product-card-renderer"})],Ju);
_.C(Ju,"ytd-vertical-product-card-renderer",function(){if(oot!==void 0)return oot;var S=document.createElement("template");_.h(S,'\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');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);return oot=S},{mode:1});var voH;var bX=function(){return _.w.apply(this,arguments)||this};
_.r(bX,_.w);bX.prototype.configureRendererStamper=function(){return{"data.offerButton":{id:"offer-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!0}}}}}};
_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],bX.prototype,"ytRendererBehavior",void 0);_.x([_.F(_.qH.YtRendererstamperBehavior),_.E("design:type",Object)],bX.prototype,"ytRendererstamperBehavior",void 0);_.x([_.F(_.ak),_.E("design:type",Object)],bX.prototype,"ytdLockupBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],bX.prototype,"data",void 0);bX=_.x([_.f({disableElementRegistration:!0,is:"ytd-grid-movie-renderer"})],bX);
_.C(bX,"ytd-grid-movie-renderer",function(){if(voH!==void 0)return voH;var S=document.createElement("template");_.h(S,'\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');
S.content.insertBefore(_.t().content.cloneNode(!0),S.content.firstChild);return voH=S},{mode:1});var $SP;var je=function(){var S=_.w.apply(this,arguments)||this;S.rounded=!0;S.itemStyle="small-item";return S};
_.r(je,_.w);je.prototype.showSnackbarIfPlaceholder=function(){if(this.isProductPlaceholder){var S,p,U,Y,L=(p=_.b((S=this.data)==null?void 0:S.buttonCommand,_.DH))==null?void 0:(U=p.item)==null?void 0:(Y=U.notificationTextRenderer)==null?void 0:Y.successResponseText;L&&_.Uqe(this.hostElement,L)}};
_.$u.Object.defineProperties(je.prototype,{hasPrice:{configurable:!0,enumerable:!0,get:function(){var S;return((S=this.data)==null?void 0:S.price)!==void 0}},
hasPriceReplacementText:{configurable:!0,enumerable:!0,get:function(){var S;return!((S=this.data)==null||!S.priceReplacementText)}},
hasAdditionalFeesText:{configurable:!0,enumerable:!0,get:function(){var S;return((S=this.data)==null?void 0:S.additionalFeesText)!==void 0}},
hasAffiliateDisclaimer:{configurable:!0,enumerable:!0,get:function(){var S;return((S=this.data)==null?void 0:S.affiliateDisclaimer)!==void 0}},
isProductPlaceholder:{configurable:!0,enumerable:!0,get:function(){var S,p;return((S=this.data)==null?void 0:S.isProductPlaceholder)!==void 0&&((p=this.data)==null?void 0:p.isProductPlaceholder)}},
hideOpenInNewIcon:{configurable:!0,enumerable:!0,get:function(){var S;return((S=this.data)==null?void 0:S.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}}});
_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],je.prototype,"ytRendererBehavior",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],je.prototype,"rounded",void 0);_.x([_.g(),_.E("design:type",Object)],je.prototype,"data",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",String)],je.prototype,"itemStyle",void 0);_.x([_.e("data"),_.E("design:type",Object),_.E("design:paramtypes",[])],je.prototype,"hasPrice",null);
_.x([_.e("data"),_.E("design:type",Object),_.E("design:paramtypes",[])],je.prototype,"hasPriceReplacementText",null);_.x([_.e("data"),_.E("design:type",Object),_.E("design:paramtypes",[])],je.prototype,"hasAdditionalFeesText",null);_.x([_.e("data"),_.E("design:type",Object),_.E("design:paramtypes",[])],je.prototype,"hasAffiliateDisclaimer",null);_.x([_.e("data"),_.E("design:type",Object),_.E("design:paramtypes",[])],je.prototype,"isProductPlaceholder",null);
_.x([_.g(),_.e("data"),_.E("design:type",Object),_.E("design:paramtypes",[])],je.prototype,"hideOpenInNewIcon",null);_.x([_.e("data"),_.E("design:type",Object),_.E("design:paramtypes",[])],je.prototype,"ariaLabel",null);je=_.x([_.f({disableElementRegistration:!0,is:"ytd-merch-shelf-item-renderer"})],je);
_.C(je,"ytd-merch-shelf-item-renderer",function(){if($SP!==void 0)return $SP;var S=document.createElement("template");_.h(S,'\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');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);return $SP=S},{mode:1});var ilq=_.$k(function(S){var p=_.vH();_.C6(p,function(){return S.data().rendererContext});
return _.H("button-card-view-model",{el:p,class:"ytwButtonCardViewModelHost",tabindex:0,"aria-label":function(){return S.data().title},
role:"button"},_.H(_.yD,{model:{}}),_.H("div",{class:"ytwButtonCardViewModelHostContentContainer"},_.H("div",{class:"ytwButtonCardViewModelHostContentContainerIconContainer"},_.H(_.n,{cond:function(){return S.data().image},
then:function(U){return _.H(_.of,{data:U,alt:function(){var Y;return(Y=S.data().title)!=null?Y:""},
className:"ytwButtonCardViewModelHostImage"})}})),_.H("div",{class:"ytwButtonCardViewModelHostContentContainerTitleContainer"},function(){return S.data().title})))},"Ya");_.y("web_button_view_model_wcw_registration_killswitch")||_.qm(ilq,"button-card-view-model",{props:{data:_.x2}});_.qm(_.$k(function(S){S=_.vT(S,{className:void 0});var p=S.data;S=S.className;var U=_.nS(function(){return p().onTapCommand},void 0,"NprDr");
return _.H("ytd-shopping-item-card",{class:_.VD("ytdShoppingItemCardHost",S)},_.H(_.pY,{command:U,className:"ytdShoppingItemCardHostLink"},_.H("div",{class:"ytdShoppingItemCardHostThumbnailViewModel"},_.H(_.yP,{data:function(){return p().thumbnailViewModel}},{thumbnailViewModel:function(Y){return _.H(_.vh,{data:Y.data,
aspectRatio:3})}})),_.H("div",null,_.H("p",{class:"ytdShoppingItemCardHostItemTitle"},_.H(_.i6,{text:function(){return p().itemTitle}})),_.H("p",{class:"ytdShoppingItemCardHostPrice"},_.H(_.i6,{text:function(){return p().priceOrStatus}})))))},"Za"),"ytd-shopping-item-card",{props:{data:_.x2,
className:_.x2}});var Nfq={isAdsVideo:!0},Bfm={showPlayerControls:!1,forceMutedVolume:!0,roundedCornersSize:3},qTE={showPlayerControls:!1,videoPreviewDurationMs:15E3},ACQ={showPlayerControls:!1,videoPreviewDurationMs:5E3,forceCaptionsOff:!0,forceMutedVolume:!0,roundedCornersSize:2,cropPlayerToFillThumbnailHorizontally:!_.y("web_shorts_imp_fullwidth_killswitch")};var tn=null,Yqw={};var IyX="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(" "),rS={},dqr=(rS.FEwhat_to_watch="home",rS.FEhashtag="hashtag",rS.FEtrending="trending",rS.FEhistory="history",rS.SPunlimited="premium",rS.FEmemberships_and_purchases="paid_memberships",rS.SPredeem_code="redeem",rS.SPverify_location="locate",rS.SPminor_moment="minor_moment",
rS.FEmini_app_container="mini_app",rS.FEnews_destination="news",rS.SPopen_in_app="open_in_app",rS.FEexplore="explore",rS.FEsubscriptions="subscriptions",rS.FEsfv_audio_pivot="sfv_audio_pivot",rS.FEplaylist_aggregation="playlist_aggregation",rS);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");_.Mw("init");var tft=function(){},Uyj=_.$k(function(S){var p=S.data;
var U=S.inlineMetadata;var Y=S.aspectRatio;var L=S.scrimStyle;var I=S.className;var V=S.useDefaultStyle;var W=new tft,O=_.y("web_enable_default_style_for_pivot_panel")?"SHORTS_LOCKUP_STYLE_UNKNOWN":"SHORTS_LOCKUP_STYLE_SLIM",D=_.nS(function(){return(V==null?0:V())?O==="SHORTS_LOCKUP_STYLE_SLIM":p().style==="SHORTS_LOCKUP_STYLE_SLIM"},void 0,"YkZuNb"),z=_.nS(function(){return _.Pz(U)||D()||!1},void 0,"NbHOte"),Q=function(){return(L==null?void 0:L())!==void 0?L==null?void 0:L():1},J=_.nS(function(){return p().belowThumbnailMetadata||
!z()},void 0,"ZU5j4b");
S=_.vH(function(A){W&&(W.hostElement=A,Z())});
_.tU(S,{visibilityCallback:function(A){var q=p().onFirstVisible;A&&q&&_.wx(q)},
showOption:{calledOnce:!0,state:"visible"}});I=_.VD("shortsLockupViewModelHost",I);var K=_.vH(),G={};G=_.VD(function(){return D(),"shortsLockupViewModelHostThumbnailContainer"},(G.shortsLockupViewModelHostThumbnailContainerAspectRatioTwoByThree=function(){return _.Pz(Y)===1},G.shortsLockupViewModelHostThumbnailContainerAspectRatioThreeByFour=function(){return _.Pz(Y)===2},G.shortsLockupViewModelHostThumbnailContainerRounded=function(){return!D()},G.shortsLockupViewModelHostThumbnailContainerCustomDimensions=
function(){return!_.y("web_shorts_2_by_3_lockups_study")&&!_.y("desktop_search_enable_two_by_three_shorts_aspect_ratio")},G));
var X,Z=function(){if(W){var A;(A=X)==null||cI(A);var q;W.hostElement&&((q=W.data)==null?0:q.inlinePlayerData)&&(X=EK({mediaRenderer:W,lockupElement:W.hostElement,thumbnailElement:K.value,videoPreviewOpts:ACQ}))}};
_.R8(function(){W&&(W.data=p(),Z())});
var l=_.nS(function(){return p().thumbnail},void 0,"H3BSh"),a=_.nS(function(){return p().badge},void 0,"iuhkHc"),N=_.nS(function(){return p().onTap},void 0,"mt0wC"),m={};
return _.H("ytm-shorts-lockup-view-model",{el:S,class:I},_.H(_.U0,null,_.H(_.pY,{command:N,className:_.VD("shortsLockupViewModelHostEndpoint",(m.shortsLockupViewModelHostEndpointNoOutsideMetadata=function(){return!J()},m),"reel-item-endpoint",""),
ariaHidden:function(){return!z()},
tabIndex:function(){return z()?0:-1}},_.H("div",{el:K,
class:G},_.H(_.n,{cond:l,then:function(){return _.H(_.of,{data:function(){var A;return(A=l==null?void 0:l())!=null?A:{}},
alt:"",className:"shortsLockupViewModelHostThumbnail",useWidth:!1,contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"})}}),null),_.H(_.n,{cond:z,
then:function(){return _.H(cCE,{data:p,scrimStyle:Q,useDefaultStyle:V})}}),_.H(_.yP,{data:a},{badgeViewModel:function(A){return _.H(_.Bh,{data:A.data,
class:"shortsLockupViewModelHostBadge",workaroundShortsIsThumbnailBadge:!0})}})),_.H(_.n,{cond:function(){return z()&&p().menuOnTap},
then:function(){return _.H(SJw,{data:p,inlineMetadata:!0})}}),_.H(_.n,{cond:J,
then:function(){return _.H(p2H,{data:p,useDefaultStyle:V})}})))},"$a"),cCE=_.$k(function(S){var p=S.data;
var U=S.scrimStyle;var Y=S.useDefaultStyle;var L=_.y("web_enable_default_style_for_pivot_panel")?"SHORTS_LOCKUP_STYLE_UNKNOWN":"SHORTS_LOCKUP_STYLE_SLIM",I=Y&&_.y("web_hide_primary_text_for_pivot_panel"),V=_.nS(function(){return(Y==null?0:Y())?L==="SHORTS_LOCKUP_STYLE_SLIM":p().style==="SHORTS_LOCKUP_STYLE_SLIM"},void 0,"D8i8bc");
S={};S=_.VD("shortsLockupViewModelHostInlineMetadata",(S.shortsLockupViewModelHostMetadataRounded=function(){return!V()},S.shortsLockupViewModelHostInlineMetadataShortScrim=function(){return(U==null?void 0:U())===3&&!_.y("enable_shorts_lockup_new_scrim")},S.shortsLockupViewModelHostInlineMetadataShortScrimNew=function(){return(U==null?void 0:U())===3&&_.y("enable_shorts_lockup_new_scrim")},S.shortsLockupViewModelHostInlineMetadataMediumScrim=function(){return(U==null?void 0:U())===2||(U==null?void 0:
U())===4},S.shortsLockupViewModelHostShowOverPlayer=function(){return!0},S),"image-overlay-text");
var W={};return _.H("div",{class:S},_.H("h3",{class:_.VD("shortsLockupViewModelHostMetadataTitle",(W.shortsLockupViewModelHostMetadataTitleTextShadow=function(){return(U==null?void 0:U())===4},W)),
"aria-label":function(){return p().accessibilityText}},_.H(_.n,{cond:function(){var O;
return!((O=p().overlayMetadata)==null||!O.primaryText)&&!I},
then:function(){return _.H(_.i6,{text:function(){var O;return(O=p().overlayMetadata)==null?void 0:O.primaryText},
noEndpoints:!0,noStyleRuns:!0})}})),_.H(_.n,{cond:function(){var O;
return(O=p().overlayMetadata)==null?void 0:O.secondaryText},
then:function(){return _.H(YJj,{data:p,scrimStyle:U,className:void 0})}}))},"ab"),p2H=_.$k(function(S){var p=S.data;
var U=S.useDefaultStyle;var Y=_.y("web_enable_default_style_for_pivot_panel")?"SHORTS_LOCKUP_STYLE_UNKNOWN":"SHORTS_LOCKUP_STYLE_SLIM",L=_.nS(function(){return(U==null?0:U())?Y==="SHORTS_LOCKUP_STYLE_SLIM":p().style==="SHORTS_LOCKUP_STYLE_SLIM"},void 0,"hYNvRc");
S=_.VD(function(){return L()?"shortsLockupViewModelHostOutsideMetadata":"shortsLockupViewModelHostOutsideMetadata shortsLockupViewModelHostMetadataRounded"},"image-overlay-text");
var I,V=_.kL(function(){var Q;(Q=I)==null||Q.click();return!1}),W=_.nS(function(){return p().belowThumbnailMetadata||p().overlayMetadata},void 0,"grjPrc"),O=function(){var Q;
return(Q=W())==null?void 0:Q.avatar},D={},z={};
return _.H("div",{class:_.VD(S,(D.shortsLockupViewModelHostOutsideMetadataHasAvatar=function(){return!!O()},D)),
"on:click":V},_.H(_.yP,{data:O},{avatarViewModel:function(Q){return _.H("div",{class:"shortsLockupViewModelHostOutsideMetadataAvatar"},_.H(_.bS,{data:Q.data}))}}),_.H("div",null,_.H("h3",{class:_.VD("shortsLockupViewModelHostMetadataTitle","shortsLockupViewModelHostOutsideMetadataTitle","",(z.shortsLockupViewModelHostOutsideMetadataMissingTitle=function(){var Q,J;
return!((Q=W())==null?0:(J=Q.primaryText)==null?0:J.content)},z)),
"aria-label":function(){return p().accessibilityText}},_.H(_.pY,{ref:function(Q){return void(I=Q)},
command:function(){return p().onTap},
className:_.VD("shortsLockupViewModelHostEndpoint","shortsLockupViewModelHostOutsideMetadataEndpoint"),title:function(){var Q,J;return(Q=W())==null?void 0:(J=Q.primaryText)==null?void 0:J.content}},_.H(_.n,{cond:function(){var Q;
return(Q=W())==null?void 0:Q.primaryText},
then:function(Q){return _.H(_.i6,{text:Q,noEndpoints:!0,noStyleRuns:!0})}}))),_.H(_.n,{cond:function(){var Q;
return(Q=W())==null?void 0:Q.secondaryText},
then:function(Q){return _.H("div",{class:_.VD("shortsLockupViewModelHostOutsideMetadataSubhead","shortsLockupViewModelHostMetadataSubhead"),"aria-hidden":"true"},_.H(_.i6,{text:Q,noStyleRuns:!0}))}})),_.H(_.n,{cond:function(){return p().menuOnTap},
then:function(){return _.H(SJw,{data:p,inlineMetadata:!1})}}))},"bb"),YJj=_.$k(function(S){var p=S.data;
var U=S.scrimStyle;S=S.className;var Y={};return _.H("div",{class:_.VD((Y.shortsLockupViewModelHostMetadataSubhead=function(){return(U==null?void 0:U())!==4},Y.shortsLockupViewModelHostMetadataSubheadNew=_.y("enable_shorts_lockup_new_scrim"),Y.shortsLockupViewModelHostMetadataSubheadTextShadow=function(){return(U==null?void 0:U())===4},Y),S),
"aria-hidden":"true"},_.H(_.i6,{text:function(){var L;return(L=p().overlayMetadata)==null?void 0:L.secondaryText},
noStyleRuns:!0}))},"cb"),SJw=_.$k(function(S){var p=S.data;
var U=S.inlineMetadata;S={};S=_.VD((S.shortsLockupViewModelHostInlineMetadataMenu=function(){return U()},S.shortsLockupViewModelHostOutsideMetadataMenu=function(){return!U()},S.shortsLockupViewModelHostShowOverPlayer=function(){return!0},S),"image-overlay-text");
return _.H("div",{class:S},_.H(BG,{data:function(){return{style:U()?"overlay":"mono",accessibilityLabel:p().menuOnTapA11yLabel,type:"text",state:"active",size:"M",iconPosition:"icon-only",onTap:function(Y){Y.preventDefault();Y.stopPropagation();var L=_.gx({elementsCommand:p().menuOnTap,forceNewState:!0});if(L==null?0:L.onclick)L.onclick(Y)}}},
iconName:"MORE_VERT"}))},"db");var LNP=_.$k(function(S){var p=S.data;var U=S.inlineMetadata;var Y=S.aspectRatio;var L=S.scrimStyle;var I=S.className;var V=S.useDefaultStyle;S=_.nS(function(){var W=p().entityId;return W?W.replace("shorts-shelf-item-","").replace("subscriptions-",""):""},void 0,"W3Tlke");
return _.H("ytm-shorts-lockup-view-model-v2",{class:_.VD("shortsLockupViewModelHost",I)},_.H(_.Qcj,{contentId:S,aspectRatio:function(){return(Y==null?void 0:Y())===1?1:(Y==null?void 0:Y())===2?2:4}},function(){return _.H(Uyj,{data:p,
inlineMetadata:U,aspectRatio:Y,scrimStyle:L,className:I,useDefaultStyle:V})}))},"eb");_.qm(LNP,"ytm-shorts-lockup-view-model-v2",{props:{data:_.BX,inlineMetadata:_.BX,aspectRatio:_.BX,scrimStyle:_.BX,className:_.BX,useDefaultStyle:_.BX}});var Mrt=16/9*210,G3=function(){var S=_.w.apply(this,arguments)||this;S.isExpandableContent=!1;S.hideShelfHeader=!1;S.engagementPanel=!1;S.buttonClasses=["arrow"];S.isSearch=!1;S.disableScrollEventListener=!1;S.containsLockup=!1;S.overrideArrowPositionForProductCard=!1;S.overrideArrowPositionForShoppingItemCard=!1;S.overrideArrowPositionForReelItems=!1;S.overrideArrowPositionForGridMovie=!1;S.overrideArrowPositionToCenter=!1;S.isSearchPostShelf=!1;S.overrideArrowPositionForMixedShelf=!1;S.overrideArrowPositionForMixedShelfShortsOnly=
!1;S.hasBigThumbsReelItems=!1;S.shouldUseMixedListHeight=!1;S.shouldUseShortsListHeight=!1;S.gridVideoWidth=0;S.isSearchVodShelf=!1;S.disableWheelScroll=!1;S.sizing="COMPACT";S.shortsLockupAspectRatio=0;return S};
_.r(G3,_.w);_.M=G3.prototype;
_.M.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]]"}}}}};
_.M.dataChanged=function(){this.ytdHorizontalListBehavior.reset();this.data&&this.data.items&&(this.ytdHorizontalListBehavior.useFloorScrolling=this.computeContainsPost(this.data),this.maybeUpdateSearchReelItemDimensions(),_.y("web_horizontal_list_lockup_arrow_killswitch")||this.maybeUpdateLockupAspectRatio())};
_.M.computeInitialCountNumber=function(S){if(!S)return 6;var p=S.items.some(function(I){return!!I.topicRecommendationsChipRenderer}),U=S.items.some(function(I){return!!I.displayAdRenderer}),Y=this.computeShouldListItemsHaveEqualHeight(S),L=S.items.some(function(I){return!!I.gridPlaylistRenderer});
S=S.items.some(function(I){return!!I.shoppingItemCardViewModel});
return p?9:U?8:L||Y?10:S?7:6};
_.M.computeContainsPost=function(S){return!!S&&!!S.items&&S.items.some(function(p){return!!p.postRenderer})};
_.M.computeContainsLockup=function(){if(_.y("web_horizontal_list_lockup_arrow_killswitch"))return!1;var S,p;return(S=this.data)==null?void 0:(p=S.items)==null?void 0:p.some(function(U){return!!U.lockupViewModel})};
_.M.maybeUpdateLockupAspectRatio=function(){var S,p;if(this.computeContainsLockup()&&((S=this.data)==null?0:(p=S.items)==null?0:p.length)){var U;S=HiX((U=this.data.items[0].lockupViewModel)==null?void 0:U.contentType,this.data.force16By9ThumbnailAspectRatio);U=lAr(S);U=this.computeLockupWidth()/U;_.Ms(this.hostElement,{"--yt-horizontal-list-content-height":U+"px"})}};
_.M.computeOverrideArrowPositionForProductCard=function(S){if(this.isExpandableContent)return!1;var p;return!!(S==null?0:(p=S.items)==null?0:p.some(function(U){return!!U.verticalProductCardRenderer}))};
_.M.computeOverrideArrowPositionForShoppingItemCard=function(S){var p;return!!(S==null?0:(p=S.items)==null?0:p.some(function(U){return!!U.shoppingItemCardViewModel}))};
_.M.computeOverrideArrowPositionForReelItemRenderer=function(S){return this.containsReelItemRenderer(S)};
_.M.computeHasBigThumbsReelItems=function(S,p){return S&&this.containsReelItemRenderer(p)};
_.M.computeShouldListItemsHaveEqualHeight=function(S){return"LIST_ITEM_SIZE_CONSTRAINT_EQUAL_HEIGHT"===(S==null?void 0:S.itemSizeConstraint)};
_.M.computeShouldListItemsHaveShortsHeight=function(S){return this.computeShouldListItemsHaveEqualHeight(S)&&!this.containsGridVideoRenderer(S)};
_.M.computeLockupWidth=function(){return this.isSearchVodShelf?360:210};
_.M.computeGridVideoWidth=function(){return this.shouldUseMixedListHeight?354:0};
_.M.containsReelItemRenderer=function(S){var p;return!!(S==null?0:(p=S.items)==null?0:p.some(function(U){return!(!U.reelItemRenderer&&!U.shortsLockupViewModel)}))};
_.M.containsGridVideoRenderer=function(S){var p;return!!(S==null?0:(p=S.items)==null?0:p.some(function(U){return!!U.gridVideoRenderer||!!U.lockupViewModel}))};
_.M.computeContainsGridMovieRenderer=function(S){var p;return!!(S==null?0:(p=S.items)==null?0:p.some(function(U){return!!U.gridMovieRenderer}))};
_.M.computeOverrideArrowPositionToCenter=function(S){return this.computeIsSearchPostShelf(S)};
_.M.computeIsSearchPostShelf=function(S){var p;return!!(S==null?0:(p=S.items)==null?0:p.some(function(U){var Y,L;return((L=(Y=U.postRenderer)==null?void 0:Y.surface)!=null?L:"BACKSTAGE_SURFACE_TYPE_UNKNOWN")==="BACKSTAGE_SURFACE_TYPE_SEARCH"}))};
_.M.computeContainsBackgroundPromoRendererWithEmbeddedContainerStyle=function(S){var p;return!!(S==null?0:(p=S.items)==null?0:p.some(function(U){var Y,L,I;return((I=(Y=U.backgroundPromoRenderer)==null?void 0:(L=Y.style)==null?void 0:L.value)!=null?I:"BACKGROUND_PROMO_STYLE_TYPE_UNKNOWN")==="BACKGROUND_PROMO_STYLE_TYPE_EMBEDDED_CONTAINER"}))};
_.M.computeIsSearchVodShelf=function(S,p){return S&&this.containsGridVideoRenderer(p)};
_.M.computeDisableWheelScroll=function(S,p){return this.computeIsSearchVodShelf(S,p)};
_.M.computeSizing=function(){return this.isSearch?"STANDARD":"COMPACT"};
_.M.computeShortsLockupAspectRatio=function(S){return S&&_.y("web_shorts_2_by_3_lockups_no_search")&&!_.y("desktop_search_enable_two_by_three_shorts_aspect_ratio")?0:1};
_.M.maybeUpdateSearchReelItemDimensions=function(){this.isSearch&&this.hasBigThumbsReelItems&&_.Ms(this.hostElement,{"--ytd-reel-item-thumbnail-height":Mrt+"px"})};
G3.prototype.dataChanged=G3.prototype.dataChanged;_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],G3.prototype,"ytRendererBehavior",void 0);_.x([_.F(_.qH.YtRendererstamperBehavior),_.E("design:type",Object)],G3.prototype,"ytRendererstamperBehavior",void 0);_.x([_.F(_.A6.YtdHorizontalListBehavior),_.E("design:type",Object)],G3.prototype,"ytdHorizontalListBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],G3.prototype,"data",void 0);
_.x([_.g(),_.E("design:type",Object)],G3.prototype,"isExpandableContent",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],G3.prototype,"hideShelfHeader",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],G3.prototype,"engagementPanel",void 0);_.x([_.g(),_.E("design:type",Array)],G3.prototype,"buttonClasses",void 0);_.x([_.g(),_.E("design:type",Object)],G3.prototype,"isSearch",void 0);
_.x([_.g(),_.E("design:type",Object)],G3.prototype,"disableScrollEventListener",void 0);_.x([_.g({computed:"computeInitialCountNumber(data)"}),_.E("design:type",Number)],G3.prototype,"initialCount",void 0);_.x([_.g({computed:"computeContainsPost(data)"}),_.E("design:type",Boolean)],G3.prototype,"supportComponentResize",void 0);_.x([_.g({computed:"computeContainsPost(data)"}),_.E("design:type",Boolean)],G3.prototype,"containsPost",void 0);
_.x([_.g({computed:"computeContainsLockup(data)",reflectToAttribute:!0}),_.E("design:type",Object)],G3.prototype,"containsLockup",void 0);_.x([_.g({computed:"computeContainsBackgroundPromoRendererWithEmbeddedContainerStyle(data)",reflectToAttribute:!0}),_.E("design:type",Boolean)],G3.prototype,"containsBackgroundPromoRendererWithEmbeddedContainerStyle",void 0);
_.x([_.g({computed:"computeOverrideArrowPositionForProductCard(data)",reflectToAttribute:!0}),_.E("design:type",Object)],G3.prototype,"overrideArrowPositionForProductCard",void 0);_.x([_.g({computed:"computeOverrideArrowPositionForShoppingItemCard(data)",reflectToAttribute:!0}),_.E("design:type",Object)],G3.prototype,"overrideArrowPositionForShoppingItemCard",void 0);
_.x([_.g({computed:"computeOverrideArrowPositionForReelItemRenderer(data)",reflectToAttribute:!0}),_.E("design:type",Object)],G3.prototype,"overrideArrowPositionForReelItems",void 0);_.x([_.g({computed:"computeContainsGridMovieRenderer(data)",reflectToAttribute:!0}),_.E("design:type",Object)],G3.prototype,"overrideArrowPositionForGridMovie",void 0);
_.x([_.g({computed:"computeOverrideArrowPositionToCenter(data)",reflectToAttribute:!0}),_.E("design:type",Object)],G3.prototype,"overrideArrowPositionToCenter",void 0);_.x([_.g({computed:"computeIsSearchPostShelf(data)",reflectToAttribute:!0}),_.E("design:type",Object)],G3.prototype,"isSearchPostShelf",void 0);_.x([_.g({computed:"computeShouldListItemsHaveEqualHeight(data)",reflectToAttribute:!0}),_.E("design:type",Object)],G3.prototype,"overrideArrowPositionForMixedShelf",void 0);
_.x([_.g({computed:"computeShouldListItemsHaveShortsHeight(data)",reflectToAttribute:!0}),_.E("design:type",Object)],G3.prototype,"overrideArrowPositionForMixedShelfShortsOnly",void 0);_.x([_.g({computed:"computeHasBigThumbsReelItems(isSearch, data)",reflectToAttribute:!0}),_.E("design:type",Object)],G3.prototype,"hasBigThumbsReelItems",void 0);
_.x([_.g({computed:"computeShouldListItemsHaveEqualHeight(data)",reflectToAttribute:!0}),_.E("design:type",Object)],G3.prototype,"shouldUseMixedListHeight",void 0);_.x([_.g({computed:"computeShouldListItemsHaveShortsHeight(data)",reflectToAttribute:!0}),_.E("design:type",Object)],G3.prototype,"shouldUseShortsListHeight",void 0);_.x([_.g({computed:"computeGridVideoWidth(data)",reflectToAttribute:!0}),_.E("design:type",Object)],G3.prototype,"gridVideoWidth",void 0);
_.x([_.g({computed:"computeIsSearchVodShelf(isSearch, data)",reflectToAttribute:!0}),_.E("design:type",Object)],G3.prototype,"isSearchVodShelf",void 0);_.x([_.g({computed:"computeDisableWheelScroll(isSearch, data)",reflectToAttribute:!0}),_.E("design:type",Object)],G3.prototype,"disableWheelScroll",void 0);_.x([_.g({computed:"computeSizing(isSearch)"}),_.E("design:type",Object)],G3.prototype,"sizing",void 0);
_.x([_.g({computed:"computeShortsLockupAspectRatio(isSearch)"}),_.E("design:type",Object)],G3.prototype,"shortsLockupAspectRatio",void 0);_.x([_.T4("data"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],G3.prototype,"dataChanged",null);
_.C(G3,"yt-horizontal-list-renderer",function(){if(Tvt===void 0){var S=document.createElement("template");_.h(S,'\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');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);Tvt=S}S=Tvt;return S},{mode:1});var I8H;var dyt=[10,12,14,16,18,20,24,28,32,36],VrE=[20,22,24,26,28,32,36,40,48,56,64,72,84,96,120],hu=function(){var S=_.w.apply(this,arguments)||this;S.fontFamily="PROMO_FONT_FAMILY_YOUTUBE_SANS_BOLD";S.hideOverflow=!1;S.useRoboto=!1;S.fontClass="";S.overflown=!1;S.actionMap={"yt-window-resized":"resize"};return S};
_.r(hu,_.w);_.M=hu.prototype;
_.M.attached=function(){var S=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();_.oH(this,function(){S.resize()});
if(!_.cO){var p,U,Y;(p=document)==null||(U=p.fonts)==null||(Y=U.ready)==null||Y.then(function(){S.resize()})}};
_.M.dataChanged=function(){this.resize()};
_.M.guideIsExpandedChanged=function(){this.resize()};
_.M.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 S=this.getMaxNumLines(),p=this.getMinFont(),U=this.getMaxFont(),Y=this.useRoboto?dyt:VrE;for(Y=Y.filter(function(I){return I<=U&&I>=p});Y.length>1;){var L=Math.floor(Y.length/2);
this.updateFontSize(Y[L]);if(this.textNode.offsetWidth<=this.getMaxWidth()&&this.textNode.offsetHeight<=this.getMaxHeight()&&this.textNode.getClientRects().length<=S)Y=Y.slice(L,Y.length);else if(this.textNode.offsetWidth>this.getMaxWidth()||this.textNode.offsetHeight>this.getMaxHeight()||this.textNode.getClientRects().length>S)Y=Y.slice(0,L);else break}this.updateFontSize(Y[Y.length-1]);this.textNode.style.visibility="inherit";this.handleOverflow(S)}};
_.M.handleOverflow=function(S){this.hideOverflow&&this.maxLines&&this.textNode.getClientRects().length>S&&(this.overflown=!0,this.textNode.classList.add("overflown"),this.textNode.style.setProperty("-webkit-line-clamp",S.toString()))};
_.M.updateFontSize=function(S){this.fontClass&&this.textNode.classList.remove(this.fontClass);this.fontClass=(this.useRoboto?"roboto-":"yt-sans-")+S;this.textNode.classList.add(this.fontClass)};
_.M.getMaxFont=function(){var S=this.useRoboto?dyt:VrE;S=S[S.length-1];return this.maxFontSize&&this.maxFontSize<=S?this.maxFontSize:S};
_.M.getMinFont=function(){var S=(this.useRoboto?dyt:VrE)[0];return this.minFontSize&&this.minFontSize>=S?this.minFontSize:S};
_.M.getMaxWidth=function(){return this.maxWidth?this.maxWidth:this.containerNode.offsetWidth};
_.M.getMaxHeight=function(){return this.maxHeight?this.maxHeight:this.containerNode.offsetHeight};
_.M.getMaxNumLines=function(){return this.maxLines&&this.text?this.maxLines+_.mA(this.text).split("\n").length-1:Infinity};
_.M.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("Eh`"+this.fontWeight);this.textNode.style.fontWeight=this.fontWeight.toString()}};
hu.prototype.guideIsExpandedChanged=hu.prototype.guideIsExpandedChanged;hu.prototype.dataChanged=hu.prototype.dataChanged;_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],hu.prototype,"ytRendererBehavior",void 0);_.x([_.F(_.Xh),_.E("design:type",Object)],hu.prototype,"ytdReduxBehavior",void 0);_.x([_.F(_.Aj.YtActionHandlerBehavior),_.E("design:type",Object)],hu.prototype,"actionHandlerBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],hu.prototype,"text",void 0);
_.x([_.g(),_.E("design:type",String)],hu.prototype,"fontFamily",void 0);_.x([_.g(),_.E("design:type",Number)],hu.prototype,"maxWidth",void 0);_.x([_.g(),_.E("design:type",Number)],hu.prototype,"maxHeight",void 0);_.x([_.g(),_.E("design:type",Number)],hu.prototype,"maxFontSize",void 0);_.x([_.g(),_.E("design:type",Number)],hu.prototype,"minFontSize",void 0);_.x([_.g(),_.E("design:type",Number)],hu.prototype,"maxLines",void 0);_.x([_.g(),_.E("design:type",Object)],hu.prototype,"hideOverflow",void 0);
_.x([_.g({selector:_.OQu}),_.E("design:type",Boolean)],hu.prototype,"guideIsExpanded",void 0);_.x([_.O2("#container"),_.E("design:type",HTMLElement)],hu.prototype,"containerNode",void 0);_.x([_.O2("#text"),_.E("design:type",HTMLElement)],hu.prototype,"textNode",void 0);_.x([_.z4("text"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],hu.prototype,"dataChanged",null);
_.x([_.z4("guideIsExpanded"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],hu.prototype,"guideIsExpandedChanged",null);hu=_.x([_.f({disableElementRegistration:!0,is:"yt-dynamic-sizing-formatted-string"})],hu);
_.C(hu,"yt-dynamic-sizing-formatted-string",function(){if(I8H!==void 0)return I8H;var S=document.createElement("template");_.h(S,'\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');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);return I8H=S},{mode:1});var TFm;_.WNQ=function(S){_.Sw.call(this,S)};
_.r(_.WNQ,_.Sw);var Oit=function(S){_.Sw.call(this,S)};
_.r(Oit,_.WNQ);var RR=function(){return _.w.apply(this,arguments)||this};
_.r(RR,_.w);RR.prototype.onTapSuspendedChannel=function(){var S;if((S=this.data)!=null&&S.serviceEndpoint){var p,U;(S=(U=_.b((p=this.data)==null?void 0:p.serviceEndpoint,_.Cv))==null?void 0:U.url)?_.lE(S,void 0,void 0,window.top):(p=new Oit("Did not handle suspended account tap. No appealUrl."),_.ZP(p))}else p=new Oit("Did not handle suspended account tap. No serviceEndpoint."),_.ZP(p)};
RR.prototype.onTap=function(){var S=this,p=_.HX(),U,Y=(U=_.kX(p,{veType:7116}))!=null?U:void 0;_.gY(p,{visualElement:Y});_.uE();this.saveRoleText();var L;if((L=this.data)==null?0:L.youtubeSuspended)this.onTapSuspendedChannel();else{var I=!1,V,W;(p=(W=_.b((V=this.data)==null?void 0:V.serviceEndpoint,_.HLl))==null?void 0:W.supportedTokens)&&p.forEach(function(O){if(O.accountSigninToken)if(I=!0,S.onAccountItemTap)S.onAccountItemTap(O.accountSigninToken.signinUrl);else _.lE(O.accountSigninToken.signinUrl,
void 0,void 0,window.top)});
if(!I){if(V=this.get("serviceEndpoint",this.data))I=!0,this.ytComponentBehavior.resolveCommand(V);I||_.s9(new Oit("Did not handle account switch tap. No token."))}}};
RR.prototype.saveRoleText=function(){if(this.data){var S=this.data,p=S.channelDelegationRole;if(p){var U,Y=(U=_.b(S==null?void 0:S.serviceEndpoint,_.HLl))==null?void 0:U.supportedTokens;if(!Y){var L,I,V,W;Y=(L=_.b(S==null?void 0:S.serviceEndpoint,_.KQ))==null?void 0:(I=L.popup)==null?void 0:(V=I.confirmDialogRenderer)==null?void 0:(W=V.confirmButton)==null?void 0:W.buttonRenderer;var O;Y=(O=_.b(Y==null?void 0:Y.command,_.I2))==null?void 0:O.commands;if(!Y)return;var D;Y=(D=_.b(Y[1],_.HLl))==null?
void 0:D.supportedTokens}if(Y){O=void 0;D=_.d(Y);for(Y=D.next();!Y.done;Y=D.next())if(Y=Y.value,Y.datasyncIdToken){O=Y.datasyncIdToken.datasyncIdToken;break}if(O){var z;a:{if(_.pLw()&&(D=_.Q9G(O+"::pom"))){D=new Qa(D);break a}D=void 0}(z=D)==null||z.set("role_text",p);if((Dbw?Dbw:window.location).href.indexOf("studio")!==-1&&(z=Ubq())){D=z.src?(new URL(z.src)).origin:"*";var Q;(Q=z.contentWindow)==null||Q.postMessage({action:"save_pom_role",datasyncId:O,roleText:p},D)}}}}}};
_.$u.Object.defineProperties(RR.prototype,{enableRingForActiveAccount:{configurable:!0,enumerable:!0,get:function(){var S;return!((S=this.data)==null||!S.isSelected)}},
thumbnailSize:{configurable:!0,enumerable:!0,get:function(){var S,p,U=(S=this.data)==null?void 0:(p=S.accountPhoto)==null?void 0:p.thumbnails;return U&&U.length>0&&(U[0].height===36||U[0].height===48)?U[0].height:40}}});
RR.prototype.onTap=RR.prototype.onTap;_.x([_.F(_.eL.YtComponentBehavior),_.E("design:type",Object)],RR.prototype,"ytComponentBehavior",void 0);_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],RR.prototype,"ytRendererBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],RR.prototype,"data",void 0);_.x([_.g({reflectToAttribute:!1}),_.E("design:type",Function)],RR.prototype,"onAccountItemTap",void 0);
_.x([_.g({reflectToAttribute:!0}),_.e("data"),_.E("design:type",Boolean),_.E("design:paramtypes",[])],RR.prototype,"enableRingForActiveAccount",null);_.x([_.g({reflectToAttribute:!0}),_.e("data"),_.E("design:type",Number),_.E("design:paramtypes",[])],RR.prototype,"thumbnailSize",null);_.x([_.Vd("tap"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],RR.prototype,"onTap",null);RR=_.x([_.f({is:"ytd-account-item-renderer",disableElementRegistration:!0})],RR);
_.C(RR,"ytd-account-item-renderer",function(){if(TFm!==void 0)return TFm;var S=document.createElement("template");_.h(S,'\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');
S.content.insertBefore(_.t().content.cloneNode(!0),S.content.firstChild);return TFm=S},{mode:1});var kaq;var Fb=function(){return _.w.apply(this,arguments)||this};
_.r(Fb,_.w);Fb.prototype.onClickEditIcon=function(){this.data&&this.data.onTapCommand&&_.tW().resolve(_.cQ).resolveCommand(this.data.onTapCommand,{form:{element:this.hostElement}})};
_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],Fb.prototype,"ytRendererBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],Fb.prototype,"data",void 0);Fb=_.x([_.f({is:"ytd-identity-chip-renderer",disableElementRegistration:!0})],Fb);
_.C(Fb,"ytd-identity-chip-renderer",function(){if(kaq!==void 0)return kaq;var S=document.createElement("template");_.h(S,'\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');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);return kaq=S},{mode:1});var Hil;var Dyq;var zVt;var Q$m;var Xb=function(){var S=_.w.apply(this,arguments)||this;S.richItemMinWidth=_.pA("wn_grid_min_item_width",310);S.isShorts=!1;S.isWatchNext=!1;S.isExploreHub=!1;return S};
_.r(Xb,_.w);_.$u.Object.defineProperties(Xb.prototype,{cardItems:{configurable:!0,enumerable:!0,get:function(){var S=[],p=this.isShorts?this.slimItemsPerRow:this.itemsPerRow;this.isWatchNext&&_.Ms(this.hostElement,{"--ytd-ghost-grid-items-per-row":""+this.itemsPerRow,"--ytd-ghost-grid-min-width":this.richItemMinWidth+"px"});var U;if(((U=this.data)==null?0:U.rows)&&p)for(p*=this.data.rows,U=0;U<p;U++)S.push({});return S}}});
_.x([_.F(_.Xh),_.E("design:type",Object)],Xb.prototype,"ytdReduxBehavior",void 0);_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],Xb.prototype,"ytRendererBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],Xb.prototype,"data",void 0);_.x([_.g({reflectToAttribute:!0,selector:_.R4,value:3}),_.E("design:type",Number)],Xb.prototype,"itemsPerRow",void 0);_.x([_.g({selector:_.WSu,value:6}),_.E("design:type",Number)],Xb.prototype,"slimItemsPerRow",void 0);
_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Number)],Xb.prototype,"richItemMinWidth",void 0);_.x([_.g({reflectToAttribute:!0,selector:_.hZ}),_.E("design:type",Boolean)],Xb.prototype,"miniMode",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],Xb.prototype,"isShorts",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],Xb.prototype,"isWatchNext",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],Xb.prototype,"isExploreHub",void 0);
_.x([_.e("data.rows","isShorts","slimItemsPerRow","itemsPerRow"),_.E("design:type",Array),_.E("design:paramtypes",[])],Xb.prototype,"cardItems",null);Xb=_.x([_.f({is:"ytd-ghost-grid-renderer",disableElementRegistration:!0})],Xb);
_.n3m=_.pz()(Xb,"ytd-ghost-grid-renderer",function(){if(Q$m===void 0){var S=document.createElement("template");_.h(S,'\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');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);Q$m=S}S=Q$m;return S},{allowedProps:["data",
"isShorts","isWatchNext","isExploreHub","richItemMinWidth"],mode:1});_.qm(_.$k(function(S){var p=_.vT(S,{numberOfComments:3}).numberOfComments,U=_.vT(S,{isInitialLoad:!1}).isInitialLoad,Y=_.vT(S,{engagementPanel:!1}).engagementPanel,L=function(){return Math.min(Number(p==null?void 0:p())||20,20)};
return _.H("yt-ghost-comments",{class:"ytGhostCommentsHost"},_.H(_.n,{cond:function(){return!(Y==null?0:Y())&&(U==null?void 0:U())},
then:function(){return _.H("div",{class:"ytGhostCommentsComments"},_.H("div",{class:"ytGhostCommentsGhostCommentsHeader"},_.H("div",{class:_.VD("ytGhostCommentsGhostCommentCount","ytGhostCommentsGhostFill")}),_.H("div",{class:_.VD("ytGhostCommentsGhostSort","ytGhostCommentsGhostFill")})),_.H("div",{class:"ytGhostCommentsGhostCard"},_.H("div",{class:"ytGhostCommentsAvatar"},_.H("div",{class:"ytGhostCommentsCircle"})),_.H("div",{class:"ytGhostCommentsComments"},_.H("div",{class:"ytGhostCommentsMeta"},
_.H("div",{class:_.VD("ytGhostCommentsGhostInputPlaceholder","ytGhostCommentsGhostFill")})),_.H("div",{class:_.VD("ytGhostCommentsGhostInputUnderline","ytGhostCommentsGhostFill")}))))}}),_.H("div",{class:"ytGhostCommentsComments"},_.H(_.KU,{each:function(){return Array((L==null?void 0:L())||3)}},function(){return _.H("div",{class:"ytGhostCommentsGhostCard"},_.H("div",{class:"ytGhostCommentsAvatar"},_.H("div",{class:"ytGhostCommentsCircle"})),_.H("div",{class:"ytGhostCommentsHost"},_.H("div",{class:"ytGhostCommentsMeta"},
_.H("div",{class:_.VD("ytGhostCommentsGhostText","ytGhostCommentsGhostFill")})),_.H("div",{class:_.VD("ytGhostCommentsGhostText","ytGhostCommentsGhostFill")}),_.H("div",{class:_.VD("ytGhostCommentsGhostText","ytGhostCommentsGhostFill")}),_.H("div",{class:"ytGhostCommentsGhostLikeDislike"},_.H("div",{class:_.VD("ytGhostCommentsGhostText","ytGhostCommentsGhostFill")}),_.H("div",{class:_.VD("ytGhostCommentsGhostText","ytGhostCommentsGhostFill")}))))})))},"fb"),"yt-ghost-comments",{props:{numberOfComments:_.x2,
isInitialLoad:_.x2,engagementPanel:_.x2}});_.Ry("multiPageMenuSectionItems","continuationItemRenderer","ytd-continuation-item-renderer");var Pc=function(){var S=_.w.apply(this,arguments)||this;S.isOverridable=!1;S.spinnerActive=!1;S.showButton=!1;S.isCommentsSection=!1;S.engagementPanel=!0;S.isShortsGrid=!1;S.isShortsPage=!1;S.isWatchPage=!1;S.ghostCardExperimentEnabled=_.y("show_ghost_comments_shorts_watch")||_.y("show_ghost_comments_desktop_watch");S.originalShowButton=!1;S.endOfList=!1;return S};
_.r(Pc,_.w);_.M=Pc.prototype;_.M.resetIntersectionObserver=function(){var S;(S=this.observer)==null||S.disconnect();this.observer=void 0};
_.M.triggerContinuation=function(){if(!this.showButton&&!this.endOfList){this.spinnerActive=!0;var S,p;((S=this.data)==null?void 0:S.trigger)==="CONTINUATION_TRIGGER_ON_ITEM_SHOWN"&&((p=this.data)==null?0:p.continuationEndpoint)&&this.ytComponentBehavior.resolveCommand(this.data.continuationEndpoint)}};
_.M.initializeIntersectionObserver=function(){var S=this;this.resetIntersectionObserver();this.continuationTriggerOffset&&(this.observer=new IntersectionObserver(function(p){p=_.d(p);for(var U=p.next();!U.done;U=p.next())U.value.isIntersecting&&(S.triggerContinuation(),S.resetIntersectionObserver())},{rootMargin:"0px 0px "+this.continuationTriggerOffset+"px",
threshold:0}),this.observer.observe(this.hostElement))};
_.M.configureRendererStamper=function(){return{"data.button":{id:"button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[buttonOverrides]]"}}}},isShortsCommentsSection:{id:"ghost-comment-section",mapping:{ghostCommentsSectionRenderer:{component:"yt-ghost-comments"}}},"data.ghostCards":{id:"ghost-cards",mapping:{ghostGridRenderer:{component:"ytd-ghost-grid-renderer",properties:{isShorts:"[[isShortsGrid]]"}}}}}};
_.M.observeData=function(){this.endOfList=this.spinnerActive=!1;this.ytRendererBehavior.invalidate(!1);var S;((S=this.data)==null?0:S.continuationEndpoint)&&(S=_.b(this.data.continuationEndpoint,_.Zt))&&this.ytdReduxBehavior.dispatch(_.S4({type:"SET_CONTINUATION_COMMAND",payload:{continuationCommand:S}}))};
_.M.onShow=function(){this.numberOfGhostCommentsChanged();this.continuationTriggerOffset||this.triggerContinuation()};
_.M.onYtServiceRequestSentForButtonRenderer=function(){this.buttonRenderer&&(this.spinnerActive=!0,this.originalShowButton=this.showButton,this.showButton=!1)};
_.M.onServiceRequestCompleted=function(S,p){if(!_.y("kevlar_hide_spinner_on_empty_continuation_killswitch")){var U;(U=p.actions)!=null&&U.length||(this.spinnerActive=!1,this.endOfList=!0)}};
_.M.onYtServiceRequestCompletedForButtonRenderer=function(){this.buttonRenderer&&(this.spinnerActive=!1,this.showButton=this.originalShowButton)};
_.M.showButtonChanged=function(){this.showButton&&(this.spinnerActive=!1);this.ytRendererBehavior.invalidate(!1)};
_.M.continuationTriggerOffsetChanged=function(){this.initializeIntersectionObserver()};
_.M.numberOfGhostCommentsChanged=function(){if(this.ghostCardExperimentEnabled){var S=3;if(this.engagementPanel){var p,U,Y;S=Math.floor(((((p=this.hostElement)==null?void 0:(U=p.parentElement)==null?void 0:(Y=U.parentElement)==null?void 0:Y.scrollHeight)||108)-108)/108);S=this.isInitialLoad?Math.max(S,3):3}p=[].concat(_.jo(this.hostElement.querySelectorAll("yt-ghost-comments")));p=_.d(p);for(U=p.next();!U.done;U=p.next())U=U.value,U.numberOfComments=S,U.isInitialLoad=this.isInitialLoad,U.engagementPanel=
this.engagementPanel}};
_.M.detached=function(){this.resetIntersectionObserver()};
_.$u.Object.defineProperties(Pc.prototype,{isShortsCommentsSection:{configurable:!0,enumerable:!0,get:function(){return this.isCommentsSection&&!this.showButton&&(_.y("show_ghost_comments_shorts_watch")&&this.engagementPanel||_.y("show_ghost_comments_desktop_watch"))?{ghostCommentsSectionRenderer:!0}:!1}}});
Pc.prototype.numberOfGhostCommentsChanged=Pc.prototype.numberOfGhostCommentsChanged;Pc.prototype.continuationTriggerOffsetChanged=Pc.prototype.continuationTriggerOffsetChanged;Pc.prototype.showButtonChanged=Pc.prototype.showButtonChanged;Pc.prototype.onYtServiceRequestCompletedForButtonRenderer=Pc.prototype.onYtServiceRequestCompletedForButtonRenderer;Pc.prototype.onServiceRequestCompleted=Pc.prototype.onServiceRequestCompleted;Pc.prototype.onYtServiceRequestSentForButtonRenderer=Pc.prototype.onYtServiceRequestSentForButtonRenderer;
Pc.prototype.observeData=Pc.prototype.observeData;_.x([_.F(_.qH.YtRendererstamperBehavior),_.E("design:type",Object)],Pc.prototype,"ytRendererstamperBehavior",void 0);_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],Pc.prototype,"ytRendererBehavior",void 0);_.x([_.F(_.wk.YtVisibilityBehavior),_.E("design:type",Object)],Pc.prototype,"ytVisibilityBehavior",void 0);_.x([_.F(_.eL.YtComponentBehavior),_.E("design:type",Object)],Pc.prototype,"ytComponentBehavior",void 0);
_.x([_.F(_.Xh),_.E("design:type",Object)],Pc.prototype,"ytdReduxBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],Pc.prototype,"data",void 0);_.x([_.g(),_.E("design:type",Object)],Pc.prototype,"isOverridable",void 0);_.x([_.g(),_.E("design:type",Object)],Pc.prototype,"spinnerActive",void 0);_.x([_.g(),_.E("design:type",Object)],Pc.prototype,"showButton",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],Pc.prototype,"isCommentsSection",void 0);
_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],Pc.prototype,"engagementPanel",void 0);_.x([_.g(),_.E("design:type",Object)],Pc.prototype,"isShortsGrid",void 0);_.x([_.g({reflectToAttribute:!0,selector:_.HQX}),_.E("design:type",Object)],Pc.prototype,"isShortsPage",void 0);_.x([_.g({reflectToAttribute:!0,selector:_.PJ}),_.E("design:type",Object)],Pc.prototype,"isWatchPage",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],Pc.prototype,"ghostCardExperimentEnabled",void 0);
_.x([_.g(),_.E("design:type",Number)],Pc.prototype,"continuationTriggerOffset",void 0);_.x([_.g(),_.E("design:type",Object)],Pc.prototype,"endOfList",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Boolean)],Pc.prototype,"isInitialLoad",void 0);_.x([_.O2("ytd-button-renderer"),_.E("design:type",_.mg)],Pc.prototype,"buttonRenderer",void 0);_.x([_.g(),_.E("design:type",Object)],Pc.prototype,"buttonOverrides",void 0);
_.x([_.g(),_.e("engagementPanel","isCommentsSection","showButton","isShortsPage","isWatchPage"),_.E("design:type",Object),_.E("design:paramtypes",[])],Pc.prototype,"isShortsCommentsSection",null);_.x([_.z4("data"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],Pc.prototype,"observeData",null);
_.x([_.Vd("yt-service-request-sent-button-renderer"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],Pc.prototype,"onYtServiceRequestSentForButtonRenderer",null);_.x([_.Vd("yt-service-request-completed"),_.E("design:type",Function),_.E("design:paramtypes",[CustomEvent,_.xL]),_.E("design:returntype")],Pc.prototype,"onServiceRequestCompleted",null);
_.x([_.Vd("yt-service-request-completed-button-renderer"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],Pc.prototype,"onYtServiceRequestCompletedForButtonRenderer",null);_.x([_.z4("showButton"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],Pc.prototype,"showButtonChanged",null);
_.x([_.z4("continuationTriggerOffset"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],Pc.prototype,"continuationTriggerOffsetChanged",null);_.x([_.T4("isInitialLoad","engagementPanel"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],Pc.prototype,"numberOfGhostCommentsChanged",null);Pc=_.x([_.f({is:"ytd-continuation-item-renderer",disableElementRegistration:!0})],Pc);
_.C(Pc,"ytd-continuation-item-renderer",function(){if(zVt!==void 0)return zVt;var S=document.createElement("template");_.h(S,'\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');
S.content.insertBefore(_.t().content.cloneNode(!0),S.content.firstChild);return zVt=S},{mode:1});var JMm;var Z6=function(){var S=_.w.apply(this,arguments)||this;S.downloadProgress=0;S.transferState="TRANSFER_STATE_UNKNOWN";S.downloadState="DOWNLOAD_STATE_UNKNOWN";S.offlinePolicyAction="OFFLINE_VIDEO_POLICY_ACTION_UNKNOWN";S.offlineVideoPolicyExpirationTimestamp=0;S.downloadedVideoPlaybackPosition=0;return S};
_.r(Z6,_.w);Z6.prototype.dataChanged=function(){var S;this.videoData=_.b((S=this.data)==null?void 0:S.renderer,Erq);this.transferStateChanged()};
Z6.prototype.downloadProgressChanged=function(){if(this.entityInfo){var S=Object.assign({},this.videoData),p=WtN(this.entityInfo,this.transferState,this.downloadProgress,this.downloadState,this.relativeDateReference),U=p.publishedTimeText,Y=p.badges;S.shortViewCountText=p.shortViewCountText;S.publishedTimeText=U;S.badges=Y;this.set("videoData",S)}};
Z6.prototype.transferStateChanged=function(){if(this.entityInfo){var S=this.transferState==="TRANSFER_STATE_PAUSED_BY_USER",p=_.zf(this.transferState)||this.transferState==="TRANSFER_STATE_FAILED"||this.transferState==="TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH"||!D4(this.entityInfo.policyEntity),U=Object.assign({},this.videoData),Y=WtN(this.entityInfo,this.transferState,this.downloadProgress,this.downloadState,this.relativeDateReference),L=Y.publishedTimeText,I=Y.badges;U.shortViewCountText=
Y.shortViewCountText;U.publishedTimeText=L;U.badges=I;U.isDisabled=p;U.isWatched=this.downloadedVideoPlaybackPosition>0;U.navigationEndpoint=p?void 0:Caw(this.videoData.videoId,this.downloadedVideoPlaybackPosition,this.entityInfo.videoEntity.lengthSeconds);var V;S&&((V=this.videoData)==null?0:V.videoId)&&!_.y("dl_resume_click_killswitch")&&(U.isDisabled=!1,U.navigationEndpoint={offlineVideoEndpoint:{videoId:this.videoData.videoId,action:"ACTION_RESUME"}});U.thumbnailOverlays=V8q(this.entityInfo,this.transferState,
this.downloadState,this.downloadedVideoPlaybackPosition);this.set("videoData",U)}};
Z6.prototype.transferStateChanged=Z6.prototype.transferStateChanged;Z6.prototype.downloadProgressChanged=Z6.prototype.downloadProgressChanged;Z6.prototype.dataChanged=Z6.prototype.dataChanged;_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],Z6.prototype,"ytRendererBehavior",void 0);_.x([_.F(_.Xh),_.E("design:type",Object)],Z6.prototype,"ytdReduxBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],Z6.prototype,"data",void 0);
_.x([_.g(),_.E("design:type",Object)],Z6.prototype,"videoData",void 0);_.x([_.g({selector:e4,selectorArgs:["videoData.videoId"]}),_.E("design:type",Object)],Z6.prototype,"downloadProgress",void 0);_.x([_.g(),_.E("design:type",Number)],Z6.prototype,"relativeDateReference",void 0);_.x([_.g({selector:_.Z4,selectorArgs:["videoData.videoId"]}),_.E("design:type",Object)],Z6.prototype,"transferState",void 0);
_.x([_.g({selector:gSX,selectorArgs:["videoData.videoId"]}),_.E("design:type",Object)],Z6.prototype,"downloadState",void 0);_.x([_.g({selector:y1E,selectorArgs:["videoData.videoId"]}),_.E("design:type",Object)],Z6.prototype,"offlinePolicyAction",void 0);_.x([_.g({selector:KSw,selectorArgs:["videoData.videoId"]}),_.E("design:type",Object)],Z6.prototype,"offlineVideoPolicyExpirationTimestamp",void 0);
_.x([_.g({selector:gt,selectorArgs:["videoData.videoId"]}),_.E("design:type",Object)],Z6.prototype,"downloadedVideoPlaybackPosition",void 0);_.x([_.g({selector:jgE,selectorArgs:["videoData.videoId"]}),_.E("design:type",Object)],Z6.prototype,"entityInfo",void 0);_.x([_.g({reflectToAttribute:!0,value:!1}),_.E("design:type",Boolean)],Z6.prototype,"isDownloading",void 0);_.x([_.z4("data"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],Z6.prototype,"dataChanged",null);
_.x([_.z4("downloadProgress"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],Z6.prototype,"downloadProgressChanged",null);_.x([_.z4("transferState","offlinePolicyAction","offlineVideoPolicyExpirationTimestamp","downloadState","downloadedVideoPlaybackPosition"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],Z6.prototype,"transferStateChanged",null);
Z6=_.x([_.f({is:"ytd-downloaded-video-grid-video-renderer",disableElementRegistration:!0})],Z6);
_.C(Z6,"ytd-downloaded-video-grid-video-renderer",function(){if(JMm!==void 0)return JMm;var S=document.createElement("template");_.h(S,'\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>');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);return JMm=S},{mode:_.UW("kevlar_poly_si_batch_j025")?1:2});var yME;var sv=function(){};
sv.prototype.resolve=function(S,p){var U=this;return _.T(function(Y){return _.k(Y,U.resolveCommand(S,p),0)})};var KNc,ee;KNc=AVG(function(S){return S.targetId},{shouldPersist:!1});
ee=KNc.updateData;_.biQ=KNc.useUpdatableData;var j$t,rMd;j$t=AVG(function(S){return S.targetId});
rMd=j$t.updateData;_.GaQ=j$t.useUpdatableData;var hVP=Wyw.bind(null,ee),RVE=Wyw.bind(null,rMd);(function(S,p,U){var Y=_.b(U==null?void 0:U.updatedRenderer,_.nrP);return Y?S({targetId:p},function(){return Y}):!1}).bind(null,ee);var gS=function(){};
_.r(gS,sv);gS.prototype.resolveCommand=function(S){var p;return _.T(function(U){p=_.b(S,_.Rre);if(!p)return U.return();hVP(p.targetId,p);_.OV(U)})};var uX=function(){var S=_.HT.apply(this,arguments)||this;S.continuationActionMap={"yt-append-continuation-items-action":"handleAppendContinuationItemsAction","yt-reload-continuation-items-command":"handleReloadContinuationItemsCommand","yt-show-reload-ui-command":"handleShowReloadUiCommand"};return S};
_.r(uX,_.HT);_.M=uX.prototype;_.M.configureContinuationPathMap=function(){return{}};
_.M.beforeRegister=function(){this.continuationPathMap=this.configureContinuationPathMap()};
_.M.attached=function(){this.actionHandlerBehavior.registerActionMap(this.continuationActionMap)};
_.M.detached=function(){this.actionHandlerBehavior.unregisterActionMap(this.continuationActionMap)};
_.M.observeData=function(){this.data&&(this.continuationIsReloading=!1)};
_.M.handleAppendContinuationItemsAction=function(S){var p=_.b(S,_.BIH);if(this.data&&this.data.targetId&&p&&this.continuationPathMap&&p.targetId===this.data.targetId){var U=uiw(S);if((S=U&&this.continuationPathMap[U])&&U){U=this.get(S,this.data);var Y;a:{for(Y=0;Y<U.length;Y++){var L=U[Y],I=void 0,V=!!_.b((I=_.b(L,eyH))==null?void 0:I.content,_.a0l);if(_.b(L,_.SC)||V)break a}Y=U.length}S="data."+S;p.continuationItems?Y===U.length-1?(this.pop(S),this.push.apply(this,[S].concat(_.jo(p.continuationItems)))):
Y===U.length?this.push.apply(this,[S].concat(_.jo(p.continuationItems))):this.splice.apply(this,[S,Y,1].concat(_.jo(p.continuationItems))):this.splice(S,Y,1);(_.y("web_enable_voting_animation")||_.y("enable_music_web_cairo_voting_animation"))&&_.cv(this.hostElement,"yt-append-continuation-items-action-finished");_.cv(this.hostElement,"yt-next-continuation-data-updated",null,{bubbles:!1})}else _.eP(new _.y7("append continuation path does not exist",U))}};
_.M.handleReloadContinuationItemsCommand=function(S){var p=_.b(S,_.Rre);if(this.data&&p){if(_.y("web_explore_hub")||_.y("web_client_explore_hub")||_.y("web_explore_hub_on_hover")||_.y("web_client_explore_hub_on_hover"))try{_.tW().resolve(gS).resolveCommand(S)}catch(I){}if(this.data.targetId&&this.continuationPathMap&&p.targetId===this.data.targetId&&(!_.y("web_enable_channel_pivot_panel")||this.data.targetId!=="browse-feedFEsfv_channel_pivot"||p.slot!=="RELOAD_CONTINUATION_SLOT_HEADER")){var U,Y=
(U=p.slot)==null?void 0:U.replace("RELOAD_CONTINUATION_SLOT_","");U=(S=uiw(S)+"-"+(Y==null?void 0:Y.toLowerCase()))&&this.continuationPathMap[S];if(!U||!S||!Y)_.eP(new _.y7("reload continuation path does not exist",S));else if(!this.reloadContinuationItemsCommandMatcher||this.reloadContinuationItemsCommandMatcher(p)){if(p.replaceWithFirstItem){var L;this.set("data."+U,((L=p.continuationItems)==null?0:L.length)?p.continuationItems[0]:{})}else this.set("data."+U,p.continuationItems?p.continuationItems:
[]);this.continuationIsReloading=!1;_.cv(this.hostElement,"yt-reload-continuation-finish",null,{bubbles:!1})}}}};
_.M.handleShowReloadUiCommand=function(S){S=_.b(S,T1w);var p;((p=this.data)==null?0:p.targetId)&&(S==null?0:S.targetId)&&S.targetId===this.data.targetId&&(this.continuationIsReloading=!0)};
uX.prototype.observeData=uX.prototype.observeData;_.x([_.F(_.Aj.YtActionHandlerBehavior),_.E("design:type",Object)],uX.prototype,"actionHandlerBehavior",void 0);_.x([_.F(_.eL.YtComponentBehavior),_.E("design:type",Object)],uX.prototype,"componentBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],uX.prototype,"data",void 0);_.x([_.g({value:!1,reflectToAttribute:!0}),_.E("design:type",Boolean)],uX.prototype,"continuationIsReloading",void 0);
_.x([_.T4("data"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],uX.prototype,"observeData",null);uX=_.x([_.Dl()],uX);_.wS=[_.eL.YtComponentBehavior,_.Aj.YtActionHandlerBehavior,uX.prototype];_.lX={};_.lX.YtNextContinuationBehavior=[_.$2.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",_.d9(this,this.onYtNavigateStart_)),this.listeningForNavigate_=!0)},
stopListeningForNavigate_:function(){this.canUseContextualNetworkManager_()||(document.removeEventListener("yt-navigate-start",_.d9(this,this.onYtNavigateStart_)),this.listeningForNavigate_=!1)},
onLoadNextContinuation_:function(S,p){S.stopPropagation();this.nextContinuation.requestPath?this.makeNextContinuationRequest_(this.nextContinuation.requestPath,p,{}):(S={locationRetrieved:function(U){this.makeNextContinuationRequest_(U,p,{})}.bind(this)},_.cv(this.hostElement,"yt-retrieve-location",S))},
makeNextContinuationRequest_:function(S,p,U){_.Xg("nct");this.pendingContinuationRequest_&&this.pendingContinuationRequest_.cancel();S=p(S);var Y;this.canUseContextualNetworkManager_()&&(Y=this.getNetworkManager());Y||(Y=_.tW().resolve(_.RS));p=_.uZ.instance;if(_.g7("INNERTUBE_CLIENT_NAME")==="WEB_REMIX"&&p){Y=_.$l([S.startsWith("/")?S.substr(1):S]);var L,I;U=_.R6(p,{},Y,U==null?void 0:(L=U.context)==null?void 0:(I=L.clickTracking)==null?void 0:I.clickTrackingParams).then(function(V){return{response:V}})}else U=
this.nextContinuation.usePost?Y.postData(S,U):Y.fetchData(S);
U.then(this.updateNextContinuationData_.bind(this,S));this.pendingContinuationRequest_=U;this.startListeningForNavigate_()},
updateNextContinuationData_:function(S,p){var U=this;_.Xg("ncl");this.pendingContinuationRequest_=void 0;if(p){var Y={};this.nextContinuation&&(Y=this.nextContinuation);if(p.response&&p.response.continuationContents&&p.response.continuationContents[Y.continuationType]){S=p.response.continuationContents[Y.continuationType];var L=Y.header||"data.header",I=S[Y.responseHeaderKey||"header"];I&&this.set(L,I);L=Y.contentsArray||"data.contents";I=this.getContents_(S,Y.responseContentsKey||"contents")||[];
this.pathExists_(L)?(I.unshift(L),this.push.apply(this,I)):this.set(L,I);I&&(OVe(_.HX(),p.response,this.hostElement,function(V){_.St(U.hostElement,"yt-store-grafted-ve-action",[V])}),_.cv(this.hostElement,"yt-next-continuation-data-updated",{continuationData:p,
page:this,contentsArray:L}));this.set(Y.continuationsArray||"data.continuations",S[Y.responseContinuationsKey||"continuations"]||[])}else p.reload?_.eP(new _.y7("Reloading from continuation is unsupported")):p.responseContext&&p.responseContext.errors||(delete p.xsrf_token,delete p.timing,delete p.endpoint,delete p.csn,p.responseContext&&delete p.responseContext.serviceTrackingParams,L={request:_.od(S,{ctoken:"x",continuation:"x",itct:"x"}),responseKeys:Object.keys(p).sort()},p.response&&(L.responseContentKeys=
Object.keys(p.response).sort()),this.nextContinuation&&this.nextContinuation.continuationType&&(L.continuationType=this.nextContinuation.continuationType.substr(0,256)),p=new _.y7("Malformed continuation",L),S.indexOf("/comment_service_ajax")==0?_.eP(p):_.ZP(p)),this.set(Y.continuationsArray||"data.continuations",[])}else _.s9(new _.y7("Missing continuation response",S))},
getContents_:function(S,p){p=p.split(".");return _.h9.getValueByKeys(S,p)},
pathExists_:function(S){var p=this;S=S.toString().split(".");for(var U=0;U<S.length;U++)if(p=p[S[U]],p===void 0)return!1;return!0},
onYtNavigateStart_:function(){this.pendingContinuationRequest_&&(this.pendingContinuationRequest_.cancel(),this.pendingContinuationRequest_=void 0);this.stopListeningForNavigate_()}}];var FNt;var X2m;var aR=function(){var S=_.w.apply(this,arguments)||this;S.triggered_=!1;return S};
_.r(aR,_.w);_.M=aR.prototype;_.M.attached=function(){this.maybeTriggerAutoload()};
_.M.detached=function(){this.hasBeenTriggered_=!1};
_.M.onPrescanVisible=function(){this.onShow()};
_.M.onShow=function(){this.showButton||this.trigger()};
_.M.trigger=function(){this.data&&this.data.continuation&&(this.spinnerActive_=!0,this.showButton=!1,this.triggered_||(_.cv(this.hostElement,"yt-load-next-continuation",this.getContinuationUrl.bind(this)),this.hasBeenTriggered_=this.triggered_=!0))};
_.M.triggerIfNotPreviouslyTriggered=function(){this.hasBeenTriggered_||this.trigger()};
_.M.maybeTriggerAutoload=function(){this.data&&this.isAttached&&this.data.autoloadEnabled&&this.data.autoloadImmediately&&this.trigger()};
_.M.computeLabel_=function(S,p){return S===void 0?null:S.label||!p?S.label:this.showMoreText_};
_.M.observeData_=function(){this.spinnerActive_=this.triggered_=!1;this.ytRendererBehavior.invalidate(!1);this.maybeTriggerAutoload()};
_.M.getContinuationUrl=function(S){var p={ctoken:this.data.continuation,continuation:this.data.continuation,type:"next"};this.data.clickTrackingParams&&(p.itct=this.data.clickTrackingParams);return _.vQ(S,p)};
_.M.showButtonChanged_=function(){this.ytRendererBehavior.invalidate(!1)};
aR.prototype.showButtonChanged_=aR.prototype.showButtonChanged_;aR.prototype.observeData_=aR.prototype.observeData_;_.x([_.F(_.wk.YtVisibilityBehavior),_.E("design:type",Object)],aR.prototype,"ytVisibilityBehavior",void 0);_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],aR.prototype,"ytRendererBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],aR.prototype,"data",void 0);_.x([_.g({value:!1}),_.E("design:type",Boolean)],aR.prototype,"showButton",void 0);
_.x([_.g({value:!1}),_.E("design:type",Boolean)],aR.prototype,"showIcon",void 0);_.x([_.g({computed:"computeLabel_(data, showButton)"}),_.E("design:type",Object)],aR.prototype,"label",void 0);_.x([_.g({value:_.Ec(_.Oh("SHOW_MORE",void 0,"Show More"))}),_.E("design:type",Object)],aR.prototype,"showMoreText_",void 0);_.x([_.g({value:!1}),_.E("design:type",Boolean)],aR.prototype,"spinnerActive_",void 0);_.x([_.g({value:!1}),_.E("design:type",Boolean)],aR.prototype,"hasBeenTriggered_",void 0);
_.x([_.g({value:void 0}),_.E("design:type",String)],aR.prototype,"observeVisibleOption",void 0);_.x([_.g({value:void 0}),_.E("design:type",String)],aR.prototype,"observeHiddenOption",void 0);_.x([_.g({value:"observe_once"}),_.E("design:type",Object)],aR.prototype,"observePrescanOption",void 0);_.x([_.T4("data"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],aR.prototype,"observeData_",null);
_.x([_.T4("showButton"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],aR.prototype,"showButtonChanged_",null);aR=_.x([_.FB({is:"yt-next-continuation",disableElementRegistration:!0})],aR);
_.C(aR,"yt-next-continuation",function(){if(X2m===void 0){var S=document.createElement("template");_.h(S,'\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');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);var p=S.content,U=p.insertBefore;FNt===void 0&&(FNt=document.createElement("template"));var Y=FNt;U.call(p,Y.content.cloneNode(!0),S.content.firstChild);X2m=S}S=X2m;return S},{mode:2});var Pdw;var Zit;var fg=function(){return _.w.apply(this,arguments)||this};
_.r(fg,_.w);fg.prototype.attached=function(){this.hostElement.parentNode.style.justifyContent="center"};
_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],fg.prototype,"ytRendererBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],fg.prototype,"data",void 0);fg=_.x([_.FB({is:"yt-music-pass-small-feature-info-renderer",disableElementRegistration:!0})],fg);
_.C(fg,"yt-music-pass-small-feature-info-renderer",function(){if(Zit===void 0){var S=document.createElement("template");_.h(S,'\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');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);var p=S.content,U=p.insertBefore;Pdw===void 0&&(Pdw=document.createElement("template"));var Y=Pdw;U.call(p,Y.content.cloneNode(!0),S.content.firstChild);Zit=S}S=Zit;return S},{mode:2});_.Ry("itemSectionRenderer","gridRenderer","ytd-grid-renderer");var Cg=function(){var S=_.w.apply(this,arguments)||this;S.isCollapsible=!1;S.nextContinuation={continuationType:"gridContinuation",contentsArray:"data.items",responseContentsKey:"items"};return S};
_.r(Cg,_.w);_.M=Cg.prototype;_.M.computeIsCollapsible=function(S){return!!(((S==null?0:S.showMoreText)||(S==null?0:S.visibleRowCount))&&(S==null?0:S.isCollapsible))};
_.M.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"}}}};
_.M.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"items"}};
_.M.persistentGuideChanged=function(){this.maybeUpdateInitialItemsDisplayed()};
_.M.onIronResize=function(){var S=this;_.w9(this,"updateGridInitItems",function(){S.maybeUpdateInitialItemsDisplayed()})};
_.M.maybeUpdateInitialItemsDisplayed=function(){if(this.collapsed){var S=this.getVisibleWidth();S!==0&&(S=Math.floor(S/214)*(this.data.visibleRowCount||2),S!==this.initialCount&&(this.initialCount=S,this.data&&this.data.items&&this.ytLazyListBehavior.setInitialItemsOnDataChanged(this.data.items)))}};
_.M.getVisibleWidth=function(){return this.hostElement.offsetWidth};
_.M.computeExpandVisible=function(S,p,U,Y){return S&&p&&U&&!!Y&&!!Y.showMoreText};
_.M.computeShowMoreButton=function(S){return{text:S,style:"STYLE_TEXT",size:"SIZE_DEFAULT"}};
_.M.onExpandTap=function(){this.collapsed=!1;this.ytLazyListBehavior.canShowMore&&this.ytLazyListBehavior.fillRemainingListItems()};
_.M.initCollapsed=function(){var S=this;this.ytLazyListBehavior.canShowMore=!1;var p;(this.collapsed=!((p=this.data)==null||!p.isCollapsible))&&this.maybeUpdateInitialItemsDisplayed();_.oH(this,function(){_.pp(S.hostElement,"yt-refit-popups-action")})};
_.M.fillRestIfNotCollapsible=function(){var S=this.ytLazyListBehavior.canShowMore;this.data&&this.isCollapsible||!S||this.ytLazyListBehavior.fillRemainingListItems()};
_.M.computeViewAllHidden=function(S,p){return S||!p.viewAllEndpoint};
Cg.prototype.fillRestIfNotCollapsible=Cg.prototype.fillRestIfNotCollapsible;Cg.prototype.initCollapsed=Cg.prototype.initCollapsed;Cg.prototype.onIronResize=Cg.prototype.onIronResize;Cg.prototype.persistentGuideChanged=Cg.prototype.persistentGuideChanged;_.x([_.F(_.ji),_.E("design:type",Object)],Cg.prototype,"ironResizableBehavior",void 0);_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],Cg.prototype,"ytRendererBehavior",void 0);
_.x([_.F(_.qH.YtRendererstamperBehavior),_.E("design:type",Object)],Cg.prototype,"ytRendererstamperBehavior",void 0);_.x([_.F(_.qb.YtLazyListBehavior),_.E("design:type",Object)],Cg.prototype,"ytLazyListBehavior",void 0);_.x([_.F(_.lX.YtNextContinuationBehavior),_.E("design:type",Object)],Cg.prototype,"ytNextContinuationBehavior",void 0);_.x([_.F(_.uc.YtdGuideStateAwareBehavior),_.E("design:type",Object)],Cg.prototype,"ytdGuideStateAwareBehavior",void 0);
_.x([_.F(_.wS),_.E("design:type",Object)],Cg.prototype,"ytContinuationHandlerBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],Cg.prototype,"data",void 0);_.x([_.g(),_.E("design:type",Boolean)],Cg.prototype,"collapsed",void 0);_.x([_.g(),_.E("design:type",Number)],Cg.prototype,"initialCount",void 0);_.x([_.g({computed:"computeShowMoreButton(data.showMoreText)"}),_.E("design:type",Object)],Cg.prototype,"showMoreButton",void 0);
_.x([_.g({computed:"computeIsCollapsible(data)"}),_.E("design:type",Object)],Cg.prototype,"isCollapsible",void 0);_.x([_.O2("#items"),_.E("design:type",HTMLElement)],Cg.prototype,"items",void 0);_.x([_.z4("guidePersistentAndVisible"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],Cg.prototype,"persistentGuideChanged",null);_.x([_.Vd("iron-resize"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],Cg.prototype,"onIronResize",null);
_.x([_.z4("data"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],Cg.prototype,"initCollapsed",null);_.x([_.z4("canShowMore"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],Cg.prototype,"fillRestIfNotCollapsible",null);Cg=_.x([_.f({is:"ytd-grid-renderer",disableElementRegistration:!0})],Cg);
_.C(Cg,"ytd-grid-renderer",function(){if(yME!==void 0)return yME;var S=document.createElement("template");_.h(S,'\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');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);return yME=S},{mode:_.UW("kevlar_poly_si_batch_j025")?1:2});var xy=function(){return _.w.apply(this,arguments)||this};
_.r(xy,_.w);
xy.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"}}}};
_.x([_.F(_.qH.YtRendererstamperBehavior),_.E("design:type",Object)],xy.prototype,"ytRendererstamperBehavior",void 0);_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],xy.prototype,"ytRendererBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],xy.prototype,"data",void 0);xy=_.x([_.f({is:"ytd-carousel-ad-renderer",disableElementRegistration:!0})],xy);
_.C(xy,"ytd-carousel-ad-renderer",function(){if(Dyq!==void 0)return Dyq;var S=document.createElement("template");_.h(S,'\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');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);return Dyq=S},{mode:1});var s$m;var Ev=function(){return _.w.apply(this,arguments)||this};
_.r(Ev,_.w);_.M=Ev.prototype;_.M.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"}}}};
_.M.dataChanged=function(){this.data&&this.data.content&&this.data.clickLocationTargets&&this.data.content.navigationEndpoint&&(this.sendImpression(),this.ytSparklesClickLocationBehavior.configureClickTargets("root-container",this.data.clickLocationTargets,Ev.JSC$13260_CLICK_LOCATION_ID_MAP))};
_.M.onSitelinkTap=function(S){S.stopPropagation();var p,U,Y=S==null?void 0:(p=S.model)==null?void 0:(U=p.item)==null?void 0:U.onTap;Y&&this.ytSparklesClickLocationBehavior.handleClick(Y,S,!1)};
_.M.onTap=function(S){var p=this.data&&this.data.content&&this.data.content.navigationEndpoint;p&&this.ytSparklesClickLocationBehavior.handleClick(p,S,!1)};
_.M.sendImpression=function(){if(this.data&&this.data.content)for(var S=_.d(this.data.content.impressionEndpoints||[]),p=S.next();!p.done;p=S.next()){p=_.d(p.value.loggingUrls||[]);for(var U=p.next();!U.done;U=p.next())U=U.value,U.baseUrl&&x7(U.baseUrl,U.attributionSrcMode)}};
Ev.prototype.onTap=Ev.prototype.onTap;Ev.prototype.dataChanged=Ev.prototype.dataChanged;Ev.JSC$13260_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"]]);
_.x([_.F(_.qH.YtRendererstamperBehavior),_.E("design:type",Object)],Ev.prototype,"ytRendererstamperBehavior",void 0);_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],Ev.prototype,"ytRendererBehavior",void 0);_.x([_.F(_.BL.YtSparklesClickLocationBehavior),_.E("design:type",Object)],Ev.prototype,"ytSparklesClickLocationBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],Ev.prototype,"data",void 0);
_.x([_.z4("data"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],Ev.prototype,"dataChanged",null);_.x([_.Vd("tap"),_.E("design:type",Function),_.E("design:paramtypes",[CustomEvent]),_.E("design:returntype")],Ev.prototype,"onTap",null);Ev=_.x([_.f({is:"ytd-promoted-sparkles-text-search-renderer",disableElementRegistration:!0})],Ev);
_.C(Ev,"ytd-promoted-sparkles-text-search-renderer",function(){if(s$m!==void 0)return s$m;var S=document.createElement("template");_.h(S,'\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');
S.content.insertBefore(_.t().content.cloneNode(!0),S.content.firstChild);return s$m=S},{mode:1});var eVQ;var m0=function(){var S=_.w.apply(this,arguments)||this;S.actionMap={"yt-mute-ad-action":"handleMuteAd"};return S};
_.r(m0,_.w);_.M=m0.prototype;
_.M.configureRendererStamper=function(){return{"data.menu":{id:_.y("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]]"}}}}}};
_.M.computeButtonOverride=function(){return{style:"call-to-action",type:"tonal"}};
_.M.computeHasAdBadge=function(S){return!(S==null||!S.adBadge)};
_.M.dataChanged=function(){this.data&&this.data.impressionCommands&&this.data.clickLocationTargets&&(this.data.adBadge||this.set("data.adBadge",m0.JSC$13269_DEFAULT_AD_BADGE_RENDERER),_.U2(this.hostElement,"sparkles-light-cta",!0),this.data.activeView&&this.ytdActiveViewBehavior.enableActiveViewMeasurement(this.data.activeView,17),this.ytSparklesClickLocationBehavior.configureClickTargets("sparkles-container",this.data.clickLocationTargets,m0.JSC$13269_CLICK_LOCATION_ID_MAP))};
_.M.impressionLog=function(){if(!this.data||!this.data.impressionsFired){var S;(((S=this.data)==null?void 0:S.impressionCommands)||[]).forEach(function(p){p=_.d(p.loggingUrls||[]);for(var U=p.next();!U.done;U=p.next())U=U.value,U.baseUrl&&x7(U.baseUrl,U.attributionSrcMode)});
this.data.impressionsFired=!0}};
_.M.onTap=function(S){var p,U=(p=this.data)==null?void 0:p.navigationEndpoint,Y;(p=(Y=this.data)==null?void 0:Y.thumbnailNavigationEndpoint)&&_.mh(_.E1(S),this.hostElement,["thumbnail-container"])?this.ytSparklesClickLocationBehavior.handleClick(p,S,!1):U&&this.ytSparklesClickLocationBehavior.handleClick(U,S,!1)};
_.M.handleMuteAd=function(){this.collapsed=!0};
_.M.attached=function(){var S=this;_.y("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&S.ytdActiveViewBehavior.stopActiveViewMeasurement()})};
_.M.detached=function(){_.y("stop_av_measurement_on_detach")&&this.ytdActiveViewBehavior.stopActiveViewMeasurement()};
_.$u.Object.defineProperties(m0.prototype,{hideHoverOverlay:{configurable:!0,enumerable:!0,get:function(){return!this.data||!this.data.mediaHoverOverlay}},
webSearchLayout:{configurable:!0,enumerable:!0,get:function(){var S;return((S=this.data)==null?void 0:S.promotedSparklesWebStyle)==="PROMOTED_SPARKLES_WEB_STYLE_LANDSCAPE_IMAGE_ASPECT_RATIO"}},
webSearchLayoutLandscape:{configurable:!0,enumerable:!0,get:function(){var S;return!(((S=this.data)==null?void 0:S.promotedSparklesWebStyle)!=="PROMOTED_SPARKLES_WEB_STYLE_LANDSCAPE_IMAGE_ASPECT_RATIO"||this.data.isSquareThumbnail)}},
webSearchLayoutSquare:{configurable:!0,enumerable:!0,get:function(){var S;return!(((S=this.data)==null?void 0:S.promotedSparklesWebStyle)!=="PROMOTED_SPARKLES_WEB_STYLE_LANDSCAPE_IMAGE_ASPECT_RATIO"||!this.data.isSquareThumbnail)}},
sparklesCtaNoBackground:{configurable:!0,enumerable:!0,get:function(){var S;return((S=this.data)==null?void 0:S.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}}});
m0.prototype.dataChanged=m0.prototype.dataChanged;
m0.JSC$13269_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"]]);
m0.JSC$13269_DEFAULT_AD_BADGE_RENDERER={metadataBadgeRenderer:{label:_.Oh("AD_BADGE_TEXT",void 0,"Ad"),style:"BADGE_STYLE_TYPE_AD"}};_.x([_.F(_.qH.YtRendererstamperBehavior),_.E("design:type",Object)],m0.prototype,"ytRendererstamperBehavior",void 0);_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],m0.prototype,"ytRendererBehavior",void 0);_.x([_.F(Rk),_.E("design:type",Object)],m0.prototype,"ytdActiveViewBehavior",void 0);
_.x([_.F([_.Aj.YtActionHandlerBehavior]),_.E("design:type",Object)],m0.prototype,"actionHandlerBehavior",void 0);_.x([_.F(_.BL.YtSparklesClickLocationBehavior),_.E("design:type",Object)],m0.prototype,"ytSparklesClickLocationBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],m0.prototype,"data",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Boolean)],m0.prototype,"collapsed",void 0);_.x([_.g({reflectToAttribute:!0,value:function(){return _.y("enable_desktop_search_bigger_thumbs")}}),
_.E("design:type",Boolean)],m0.prototype,"useBiggerThumbs",void 0);_.x([_.g({reflectToAttribute:!0,value:function(){return _.Ug("desktop_search_bigger_thumbs_style")}}),
_.E("design:type",String)],m0.prototype,"biggerThumbsStyle",void 0);_.x([_.g({reflectToAttribute:!0,value:function(){return _.y("fix_alignment_search_desktop_text_image_ads_small_screens")}}),
_.E("design:type",Boolean)],m0.prototype,"fixAlignmentSmallScreens",void 0);_.x([_.g({reflectToAttribute:!0,value:function(){return _.y("enable_desktop_search_bigger_thumbs_square")}}),
_.E("design:type",Boolean)],m0.prototype,"useBiggerThumbsSquare",void 0);_.x([_.g({reflectToAttribute:!0}),_.e("data.mediaHoverOverlay"),_.E("design:type",Boolean),_.E("design:paramtypes",[])],m0.prototype,"hideHoverOverlay",null);_.x([_.g({reflectToAttribute:!0}),_.e("data.promotedSparklesWebStyle"),_.E("design:type",Boolean),_.E("design:paramtypes",[])],m0.prototype,"webSearchLayout",null);
_.x([_.g({reflectToAttribute:!0}),_.e("data.promotedSparklesWebStyle","data.isSquareThumbnail"),_.E("design:type",Boolean),_.E("design:paramtypes",[])],m0.prototype,"webSearchLayoutLandscape",null);_.x([_.g({reflectToAttribute:!0}),_.e("data.promotedSparklesWebStyle","data.isSquareThumbnail"),_.E("design:type",Boolean),_.E("design:paramtypes",[])],m0.prototype,"webSearchLayoutSquare",null);
_.x([_.g({reflectToAttribute:!0}),_.e("data.promotedSparklesWebStyle"),_.E("design:type",Boolean),_.E("design:paramtypes",[])],m0.prototype,"sparklesCtaNoBackground",null);_.x([_.g({reflectToAttribute:!0}),_.e("data.actionButton"),_.E("design:type",Boolean),_.E("design:paramtypes",[])],m0.prototype,"hideActionButton",null);_.x([_.g({computed:"computeButtonOverride(uiUpdate)"}),_.E("design:type",Object)],m0.prototype,"buttonOverride",void 0);
_.x([_.g({reflectToAttribute:!0,computed:"computeHasAdBadge(data)"}),_.E("design:type",Boolean)],m0.prototype,"hasNewAdBadge",void 0);_.x([_.e("data.promotedSparklesWebStyle"),_.E("design:type",Boolean),_.E("design:paramtypes",[])],m0.prototype,"useRoundedBadge",null);_.x([_.z4("data"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],m0.prototype,"dataChanged",null);m0=_.x([_.f({is:"ytd-promoted-sparkles-web-renderer",disableElementRegistration:!0})],m0);
_.C(m0,"ytd-promoted-sparkles-web-renderer",function(){if(eVQ!==void 0)return eVQ;var S=document.createElement("template");_.h(S,'\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>');
S.content.insertBefore(_.t().content.cloneNode(!0),S.content.firstChild);return eVQ=S},{mode:1});var g3Q;var oR=function(){return _.w.apply(this,arguments)||this};
_.r(oR,_.w);_.M=oR.prototype;_.M.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]]"}}}}}};
_.M.computeShowCta=function(S){return!(S==null||!S.ctaRenderer)};
_.M.onCtaClick=function(){var S,p,U,Y=(S=this.data)==null?void 0:(p=S.ctaRenderer)==null?void 0:(U=p.buttonRenderer)==null?void 0:U.command;Y&&this.ytComponentBehavior.resolveCommand(Y)};
_.M.onWatchButtonClick=function(){var S,p,U,Y=(S=this.data)==null?void 0:(p=S.watchButtonRenderer)==null?void 0:(U=p.buttonRenderer)==null?void 0:U.command;Y&&this.ytComponentBehavior.resolveCommand(Y)};
_.M.onTap=function(){};
_.M.dataChanged=function(){if(this.data&&(this.data.adBadge||this.set("data.adBadge",oR.JSC$13272_DEFAULT_AD_BADGE_RENDERER),this.data.activeView&&this.ytdActiveViewBehavior.enableActiveViewMeasurement(this.data.activeView,17),this.ytSparklesClickLocationBehavior.configureClickTargets("main-container",oR.JSC$13272_DEFAULT_CLICK_LOCATION_BEHAVIOR,oR.JSC$13272_CLICK_LOCATION_ID_MAP),this.thumbnail)){var S=this.thumbnail.getElementsByTagName("a");S.length>0&&(S=S.namedItem("thumbnail"))&&S.removeAttribute("href")}};
_.M.impressionLog=function(){if(this.data&&this.data.impressionUrls&&!this.data.impressionsFired){for(var S=_.d(this.data.impressionUrls),p=S.next();!p.done;p=S.next())p=p.value,JBr(p,KFN(p));this.data.impressionsFired=!0}};
_.M.maybeComputeHref=function(){return null};
_.M.computeIsShortDR=function(S){return!(S==null||!S.watchButtonRenderer)&&!(S==null||!S.ctaRenderer)&&!!this.enableShortDR};
_.M.computeIsNewUiOrShortDr=function(S){return!!this.enableUiUpdate||this.computeIsShortDR(S)};
_.M.computeIsNewUiAndNotShortDr=function(S){return!!this.enableUiUpdate&&!this.computeIsShortDR(S)};
_.M.computeHideAvatar=function(S){return!((S==null?0:S.channelThumbnail)&&this.computeIsNewUiOrShortDr(S))};
_.M.onClick=function(S){var p,U=(p=this.data)==null?void 0:p.navigationEndpoint;if(this.enableShortDR&&U&&(_.b(U,_.E$)||this.computeIsShortDR(this.data)))this.ytSparklesClickLocationBehavior.handleClick(U,S,!!_.b(U,_.E$)),S.stopPropagation();else if(U&&_.b(U,_.E$))this.ytSparklesClickLocationBehavior.handleClick(U,S,!0),S.stopPropagation();else if(U){var Y,L;((Y=this.data)==null?0:Y.navigationEndpoint)&&((L=this.data)==null?0:L.adPlaybackContextParams)&&I7R(this.data.navigationEndpoint,this.data.adPlaybackContextParams);
this.ytComponentBehavior.resolveCommand(U)}};
_.M.computeButtonOverride=function(S){if(this.computeIsNewUiOrShortDr(S))return{style:"call-to-action",type:"tonal",iconPosition:"none"}};
_.M.computeSecondaryButtonOverride=function(){return{style:"call-to-action",type:"outline",iconPosition:"none"}};
_.M.onThumbnailContainerClick=function(S){this.onClick(S)};
_.M.computeThumbnailWidth=function(S,p){return S?p==="MASSIVE"?600:p==="BIG"?500:p==="MEDIUM"?450:420:360};
_.M.attached=function(){var S=this;_.y("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&S.ytdActiveViewBehavior.stopActiveViewMeasurement()})};
_.M.detached=function(){_.y("stop_av_measurement_on_detach")&&this.ytdActiveViewBehavior.stopActiveViewMeasurement()};
oR.prototype.dataChanged=oR.prototype.dataChanged;oR.prototype.onTap=oR.prototype.onTap;oR.JSC$13272_DEFAULT_AD_BADGE_RENDERER={metadataBadgeRenderer:{label:_.Oh("AD_BADGE_TEXT",void 0,"Ad"),style:"BADGE_STYLE_TYPE_AD"}};oR.JSC$13272_CLICK_LOCATION_ID_MAP=new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL","thumbnail-container"],["PROMOTED_SPARKLES_CLICK_LOCATION_BACKGROUND","endpoint"]]);
oR.JSC$13272_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"}];_.x([_.F(_.qH.YtRendererstamperBehavior),_.E("design:type",Object)],oR.prototype,"ytRendererstamperBehavior",void 0);
_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],oR.prototype,"ytRendererBehavior",void 0);_.x([_.F(Rk),_.E("design:type",Object)],oR.prototype,"ytdActiveViewBehavior",void 0);_.x([_.F(_.eL.YtComponentBehavior),_.E("design:type",Object)],oR.prototype,"ytComponentBehavior",void 0);_.x([_.F(_.BL.YtSparklesClickLocationBehavior),_.E("design:type",Object)],oR.prototype,"ytSparklesClickLocationBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],oR.prototype,"data",void 0);
_.x([_.g({reflectToAttribute:!0,value:function(){return _.y("enable_desktop_search_bigger_thumbs")}}),
_.E("design:type",Boolean)],oR.prototype,"useBiggerThumbs",void 0);_.x([_.g({reflectToAttribute:!0,value:function(){return _.y("enable_video_display_compact_button_group_for_desktop_search")}}),
_.E("design:type",Boolean)],oR.prototype,"enableShortDR",void 0);_.x([_.g({reflectToAttribute:!0,value:function(){return _.y("enable_vac_ui_update_for_desktop_search")}}),
_.E("design:type",Boolean)],oR.prototype,"enableUiUpdate",void 0);_.x([_.g({reflectToAttribute:!0,value:function(){return _.Ug("desktop_search_bigger_thumbs_style")}}),
_.E("design:type",String)],oR.prototype,"biggerThumbsStyle",void 0);_.x([_.g({reflectToAttribute:!0,computed:"computeShowCta(data)"}),_.E("design:type",Boolean)],oR.prototype,"showCta",void 0);_.x([_.g({reflectToAttribute:!0,computed:"computeIsShortDR(data)"}),_.E("design:type",Boolean)],oR.prototype,"isShortDr",void 0);_.x([_.g({reflectToAttribute:!0,computed:"computeIsNewUiOrShortDr(data)"}),_.E("design:type",Boolean)],oR.prototype,"isShortDrOrNewUi",void 0);
_.x([_.g({reflectToAttribute:!0,computed:"computeIsNewUiAndNotShortDr(data)"}),_.E("design:type",Boolean)],oR.prototype,"isNewUiAndNotShortDr",void 0);_.x([_.g({computed:"computeButtonOverride(data)"}),_.E("design:type",Object)],oR.prototype,"buttonOverride",void 0);_.x([_.g({computed:"computeSecondaryButtonOverride(data)"}),_.E("design:type",Object)],oR.prototype,"secondaryButtonOverride",void 0);_.x([_.O2("ytd-thumbnail"),_.E("design:type",HTMLElement)],oR.prototype,"thumbnail",void 0);
_.x([_.Vd("tap"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],oR.prototype,"onTap",null);_.x([_.T4("data"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],oR.prototype,"dataChanged",null);oR=_.x([_.f({is:"ytd-promoted-video-renderer",disableElementRegistration:!0})],oR);
_.C(oR,"ytd-promoted-video-renderer",function(){if(g3Q!==void 0)return g3Q;var S=document.createElement("template");_.h(S,'\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');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);return g3Q=S},{mode:1});var uZj;var vc=function(){var S=_.w.apply(this,arguments)||this;S.useRoundedBadge=!0;S.sitelinkIds=[];return S};
_.r(vc,_.w);_.M=vc.prototype;
_.M.configureRendererStamper=function(){return{"data.menu":{id:_.y("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]]"}}}}}};
_.M.dataChanged=function(){var S;(S=this.data)!=null&&S.clickLocationTargets&&this.ytSparklesClickLocationBehavior.configureClickTargets("root-container",this.data.clickLocationTargets,vc.JSC$13279_CLICK_LOCATION_ID_MAP)};
_.M.onTap=function(S){var p,U=(p=this.data)==null?void 0:p.navigationCommand;U&&!_.mh(_.E1(S),this.hostElement,this.sitelinkIds)&&this.ytSparklesClickLocationBehavior.handleClick(U,S,!1)};
_.M.onSitelinkTap=function(S){var p,U,Y=S==null?void 0:(p=S.model)==null?void 0:(U=p.item)==null?void 0:U.onTap;Y&&this.ytSparklesClickLocationBehavior.handleClick(Y,S,!1)};
_.M.configureSitelinkClickTargets=function(){var S=this,p,U,Y=(p=this.data)==null?void 0:(U=p.clickLocationTargets)==null?void 0:U.find(function(L){return L.location==="PROMOTED_SPARKLES_CLICK_LOCATION_SITELINK"});
Y&&_.tB(this.hostElement).querySelectorAll(".sitelink").forEach(function(L){_.U2(L,"yt-simple-endpoint",!0);S.sitelinkIds.push(L.id);var I,V;(I=S.ytSparklesClickLocationBehavior)==null||(V=I.clickTargetMap)==null||V.set(L.id,Y)})};
_.M.sendImpression=function(){var S,p,U=((S=this.data)==null?void 0:(p=S.impressionCommand)==null?void 0:p.loggingUrls)||[];S=_.d(U);for(p=S.next();!p.done;p=S.next())p=p.value,p.baseUrl&&x7(p.baseUrl,p.attributionSrcMode)};
_.M.impressionLog=function(){this.data&&this.data.impressionsFired||(this.sendImpression(),this.data.impressionsFired=!0)};
_.$u.Object.defineProperties(vc.prototype,{showFavicon:{configurable:!0,enumerable:!0,get:function(){return!!this.data&&!!this.data.favicon}}});
vc.prototype.onTap=vc.prototype.onTap;vc.prototype.dataChanged=vc.prototype.dataChanged;vc.JSC$13279_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"]]);
_.x([_.F(_.qH.YtRendererstamperBehavior),_.E("design:type",Object)],vc.prototype,"ytRendererstamperBehavior",void 0);_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],vc.prototype,"ytRendererBehavior",void 0);_.x([_.F(_.BL.YtSparklesClickLocationBehavior),_.E("design:type",Object)],vc.prototype,"ytSparklesClickLocationBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],vc.prototype,"data",void 0);
_.x([_.g({reflectToAttribute:!0}),_.e("data"),_.E("design:type",Boolean),_.E("design:paramtypes",[])],vc.prototype,"showFavicon",null);_.x([_.g({reflectToAttribute:!0,value:function(){return _.y("enable_desktop_search_bigger_thumbs")}}),
_.E("design:type",Boolean)],vc.prototype,"useBiggerThumbs",void 0);_.x([_.g({reflectToAttribute:!0,value:function(){return _.Ug("desktop_search_bigger_thumbs_style")}}),
_.E("design:type",String)],vc.prototype,"biggerThumbsStyle",void 0);_.x([_.g({reflectToAttribute:!0,value:function(){return _.y("enable_text_ad_web_thumbnail_scaling_fix")}}),
_.E("design:type",Boolean)],vc.prototype,"enableThumbnailScalingFix",void 0);_.x([_.z4("data"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],vc.prototype,"dataChanged",null);_.x([_.Vd("tap"),_.E("design:type",Function),_.E("design:paramtypes",[CustomEvent]),_.E("design:returntype")],vc.prototype,"onTap",null);vc=_.x([_.f({is:"ytd-text-image-no-button-layout-renderer",disableElementRegistration:!0})],vc);
_.C(vc,"ytd-text-image-no-button-layout-renderer",function(){if(uZj!==void 0)return uZj;var S=document.createElement("template");_.h(S,'\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');
S.content.insertBefore(_.t().content.cloneNode(!0),S.content.firstChild);return uZj=S},{mode:_.UW("kevlar_poly_si_batch_j028")?1:2});var w2m;var $y=function(){var S=_.w.apply(this,arguments)||this;S.isInlinePlaybackState=!1;S.uiUpdate=_.y("web_modern_buttons");S.hideCta=_.y("hide_cta_for_home_web_video_ads");S.noBottomMargin=!1;S.animateInTimeStamp=_.pA("hide_cta_for_home_web_video_ads_animate_in_time");S.animateInCta=!1;S.isHovered=!1;S.player=null;S.JSC$13286_playerEvents=new Map;S.JSC$13286_preventProgressSaveTimer=null;S.delayedCtaJobId=null;return S};
_.r($y,_.w);_.M=$y.prototype;_.M.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]]"}}}}}};
_.M.attached=function(){this.JSC$13286_playerEvents.set("onPlaybackStartExternal",this.onPlaybackStart);this.JSC$13286_playerEvents.set("onVideoProgress",this.onVideoProgress);this.hideCta&&this.setPlayer();_.y("enable_delayed_cta_on_web")&&this.buttonContainer.classList.add("hide-delayed-buttons")};
_.M.detached=function(){this.resetPreventProgressSaveTimer();this.hideCta&&this.player&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$13286_playerEvents)};
_.M.dataChanged=function(){this.data&&this.data.navigationEndpoint&&this.data.channelEndpoint&&(this.animateInCta=!1,this.ytSparklesClickLocationBehavior.configureClickTargets("ad-inline-playback-metadata",$y.JSC$13285_DEFAULT_CLICK_LOCATION_BEHAVIOR,$y.JSC$13285_CLICK_LOCATION_ID_MAP),this.isInlinePlaybackState&&!this.hideCta&&this.setPlayer())};
_.M.hoverChanged=function(){var S=this;this.delayedCtaJobId&&(_.PA.cancelJob(this.delayedCtaJobId),this.delayedCtaJobId=null);this.isHovered&&!this.buttonContainer.classList.contains("show-delayed-buttons")&&_.y("enable_delayed_cta_on_web")&&(this.delayedCtaJobId=_.HG(_.PA,function(){S.buttonContainer.classList.add("show-delayed-buttons")},_.pA("delayed_cta_on_web_delay_milliseconds")))};
_.M.setPlayer=function(){var S=this,p;return _.T(function(U){if(U.nextAddress==1)return(p=_.pp(S.hostElement,"yt-get-inline-preview-player-action"))&&p[0]?_.k(U,p[0].getPlayerPromise(),3):U.jumpTo(0);S.player=U.yieldResult;S.ytPlayerListenerBehavior.listenToPlayerEvents(S.player,S.JSC$13286_playerEvents);_.OV(U)})};
_.M.onPlaybackStart=function(){var S=this;this.player&&(this.resetPreventProgressSaveTimer(),this.JSC$13286_preventProgressSaveTimer=_.ps(_.PA,function(){S.JSC$13286_preventProgressSaveTimer=null},1E4))};
_.M.onVideoProgress=function(S){this.hideCta&&this.isHovered&&!(this.animateInTimeStamp<0)&&S>=this.animateInTimeStamp&&!this.animateInCta&&(this.animateInCta=!0)};
_.M.resetPreventProgressSaveTimer=function(){_.PA.cancelJob(this.JSC$13286_preventProgressSaveTimer);this.JSC$13286_preventProgressSaveTimer=null};
_.M.getSimpleString=function(S){return _.mA(S)};
_.M.onClick=function(S){if(this.data&&this.data.navigationEndpoint&&this.data.channelEndpoint){var p,U=(p=this.data)==null?void 0:p.navigationEndpoint,Y;p=(Y=this.data)==null?void 0:Y.channelEndpoint;var L,I;(Y=(I=_.b((L=this.data)==null?void 0:L.adCtaButton,_.XT))==null?void 0:I.command)&&_.mh(_.E1(S),this.hostElement,["call-to-action"])?_.y("enable_fix_two_tab_short_dr")||this.ytSparklesClickLocationBehavior.handleClick(Y,S,!1):p&&_.mh(_.E1(S),this.hostElement,["channel-thumbnail-container","short-byline-text"])?
this.ytSparklesClickLocationBehavior.handleClick(p,S,!1):!_.mh(_.E1(S),this.hostElement,["secondary-button"])&&U&&(_.y("enable_short_dr_for_desktop_launchable")?(L=!!_.b(U,_.E$),this.isInlinePlaybackState&&L&&this.updateWatchEndpointStartTime(),this.ytSparklesClickLocationBehavior.handleClick(U,S,L)):(this.isInlinePlaybackState&&this.updateWatchEndpointStartTime(),this.ytSparklesClickLocationBehavior.handleClick(U,S,!0)))}};
_.M.updateWatchEndpointStartTime=function(){var S,p;this.player&&((S=this.data)==null?0:S.inlinePlaybackEndpoint)&&((p=this.data)==null?0:p.navigationEndpoint)&&!this.JSC$13286_preventProgressSaveTimer&&(S=Math.floor(this.player.getCurrentTime()),_.b(this.data.navigationEndpoint,_.E$).startTimeSeconds=S,_.b(this.data.inlinePlaybackEndpoint,_.E$).startTimeSeconds=S)};
_.M.computeButtonOverride=function(){if(this.uiUpdate)return{style:"call-to-action",type:"tonal"}};
_.M.computeSecondaryButtonOverride=function(){return{style:"call-to-action",type:"outline",iconPosition:"none"}};
_.$u.Object.defineProperties($y.prototype,{typographyBumpV2:{configurable:!0,enumerable:!0,get:function(){return this.typographyBump&&_.y("web_enable_typography_bump_v2")}},
isButtonGroup:{configurable:!0,enumerable:!0,get:function(){var S,p;return!((S=this.data)==null||!S.watchButton)&&!((p=this.data)==null||!p.adCtaButton)}}});
$y.prototype.hoverChanged=$y.prototype.hoverChanged;$y.prototype.dataChanged=$y.prototype.dataChanged;
$y.JSC$13285_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"]]);
$y.JSC$13285_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"}];
_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],$y.prototype,"ytRendererBehavior",void 0);_.x([_.F(_.qH.YtRendererstamperBehavior),_.E("design:type",Object)],$y.prototype,"ytRendererstamperBehavior",void 0);_.x([_.F(_.Xh),_.E("design:type",Object)],$y.prototype,"ytdReduxBehavior",void 0);_.x([_.F(_.BL.YtSparklesClickLocationBehavior),_.E("design:type",Object)],$y.prototype,"ytSparklesClickLocationBehavior",void 0);
_.x([_.F(_.Cj.YtPlayerListenerBehavior),_.E("design:type",_.xt)],$y.prototype,"ytPlayerListenerBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],$y.prototype,"data",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],$y.prototype,"isInlinePlaybackState",void 0);_.x([_.g({reflectToAttribute:!0,value:!1}),_.E("design:type",Boolean)],$y.prototype,"miniMode",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],$y.prototype,"uiUpdate",void 0);
_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],$y.prototype,"hideCta",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],$y.prototype,"noBottomMargin",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],$y.prototype,"animateInCta",void 0);_.x([_.g({computed:"computeButtonOverride(uiUpdate)"}),_.E("design:type",Object)],$y.prototype,"buttonOverride",void 0);
_.x([_.g({computed:"computeSecondaryButtonOverride(uiUpdate)"}),_.E("design:type",Object)],$y.prototype,"secondaryButtonOverride",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],$y.prototype,"isHovered",void 0);_.x([_.O2("#button-container"),_.E("design:type",HTMLElement)],$y.prototype,"buttonContainer",void 0);_.x([_.g({reflectToAttribute:!0,value:!1}),_.E("design:type",Boolean)],$y.prototype,"typographyBump",void 0);
_.x([_.g({reflectToAttribute:!0}),_.e("typographyBump"),_.E("design:type",Boolean),_.E("design:paramtypes",[])],$y.prototype,"typographyBumpV2",null);_.x([_.T4("data"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],$y.prototype,"dataChanged",null);_.x([_.T4("isHovered"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],$y.prototype,"hoverChanged",null);
_.x([_.e("data"),_.g({reflectToAttribute:!0}),_.E("design:type",Boolean),_.E("design:paramtypes",[])],$y.prototype,"isButtonGroup",null);$y=_.x([_.f({is:"ytd-ad-inline-playback-meta-block",disableElementRegistration:!0})],$y);
_.C($y,"ytd-ad-inline-playback-meta-block",function(){if(w2m!==void 0)return w2m;var S=document.createElement("template");_.h(S,'\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');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);return w2m=S},{mode:_.UW("kevlar_poly_si_batch_j065")?1:2});var l8c;var iX=function(){var S=_.w.apply(this,arguments)||this;S.noBottomMargin=!1;S.isInlinePreviewTriggered=!1;S.JSC$13291_activeViewMeasurementDataResolver=_.ay();return S};
_.r(iX,_.w);_.M=iX.prototype;_.M.configureRendererStamper=function(){return{dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.M.attached=function(){var S=this;this.updateInlinePreviewHoverListeners();this.JSC$13291_activeViewMeasurementDataResolver.promise.then(function(p){S.ytdActiveViewBehavior.enableActiveViewMeasurement(p,15)});
_.y("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&S.ytdActiveViewBehavior.stopActiveViewMeasurement()})};
_.M.detached=function(){this.clearInlinePreviewHoverListeners();_.y("stop_av_measurement_on_detach")&&this.ytdActiveViewBehavior.stopActiveViewMeasurement()};
_.M.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$13291_inlinePreviewHoverListener=EK({mediaRenderer:this,lockupElement:this.JSC$13291_dismissibleMedia,thumbnailElement:this.thumbnail,videoPreviewOpts:Nfq})};
_.M.clearInlinePreviewHoverListeners=function(){var S;(S=this.JSC$13291_inlinePreviewHoverListener)==null||cI(S)};
_.M.onDataChanged=function(){var S;((S=this.data)==null?0:S.activeView)&&this.JSC$13291_activeViewMeasurementDataResolver.resolve(this.data.activeView);this.updateInlinePreviewHoverListeners();this.ytSparklesClickLocationBehavior.configureClickTargets("thumbnail-container",iX.JSC$13290_DEFAULT_CLICK_LOCATION_BEHAVIOR,iX.JSC$13290_CLICK_LOCATION_ID_MAP);this.thumbnail&&(S=this.thumbnail.getElementsByTagName("a"),S.length>0&&(S=S.namedItem("thumbnail"))&&S.removeAttribute("href"));var p,U;if(((p=this.data)==
null?0:p.hasAutoplay)||((U=this.data)==null?0:U.forceImpAutoplay)){var Y;(Y=this.JSC$13291_inlinePreviewHoverListener)==null||dEm(Y)}};
_.M.onTypographyBumpChanged=function(){this.adInlinePlaybackMetaBlock&&(this.adInlinePlaybackMetaBlock.typographyBump=this.typographyBump)};
_.M.onThumbnailContainerClick=function(S){if(this.data&&this.data.navigationEndpoint){var p,U=(p=this.data)==null?void 0:p.navigationEndpoint;this.ytSparklesClickLocationBehavior.handleClick(U,S,!!_.b(U,_.E$));S.stopPropagation()}};
_.M.shouldUseImpressionPingingEndpoint=function(){return this.data&&this.data.onImpression};
_.M.impressionLog=function(){var S=this;if(!(!this.shouldUseImpressionPingingEndpoint()||this.data&&this.data.impressionsFired)){var p,U,Y=(U=_.b((p=this.data)==null?void 0:p.onImpression,_.I2))==null?void 0:U.commands;Y&&(Y.forEach(function(L){L.clickTrackingParams&&delete L.clickTrackingParams;S.ytComponentBehavior.resolveCommand(L)}),this.data.impressionsFired=!0)}};
_.$u.Object.defineProperties(iX.prototype,{isHovered:{configurable:!0,enumerable:!0,get:function(){var S;return!((S=this.JSC$13291_inlinePreviewHoverListener)==null?0:Rm(S))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
iX.prototype.onTypographyBumpChanged=iX.prototype.onTypographyBumpChanged;iX.prototype.onDataChanged=iX.prototype.onDataChanged;iX.JSC$13290_CLICK_LOCATION_ID_MAP=new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL","thumbnail-container"]]);iX.JSC$13290_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"}];
_.x([_.F(_.eL.YtComponentBehavior),_.E("design:type",Object)],iX.prototype,"ytComponentBehavior",void 0);_.x([_.F(Rk),_.E("design:type",Object)],iX.prototype,"ytdActiveViewBehavior",void 0);_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],iX.prototype,"ytRendererBehavior",void 0);_.x([_.F(_.qH.YtRendererstamperBehavior),_.E("design:type",Object)],iX.prototype,"ytRendererstamperBehavior",void 0);_.x([_.F(_.Zh),_.E("design:type",Object)],iX.prototype,"ytdDismissibleItemBehavior",void 0);
_.x([_.F(_.ak),_.E("design:type",Object)],iX.prototype,"ytdLockupBehavior",void 0);_.x([_.F(_.Xh),_.E("design:type",Object)],iX.prototype,"ytdReduxBehavior",void 0);_.x([_.F(_.BL.YtSparklesClickLocationBehavior),_.E("design:type",Object)],iX.prototype,"ytSparklesClickLocationBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],iX.prototype,"data",void 0);_.x([_.g(),_.E("design:type",Object)],iX.prototype,"noBottomMargin",void 0);
_.x([_.g(),_.E("design:type",Object)],iX.prototype,"isInlinePreviewTriggered",void 0);_.x([_.g({reflectToAttribute:!0,selector:_.hZ}),_.E("design:type",Boolean)],iX.prototype,"miniMode",void 0);_.x([_.g({value:!1}),_.E("design:type",Boolean)],iX.prototype,"typographyBump",void 0);_.x([_.O2("ytd-thumbnail"),_.E("design:type",HTMLElement)],iX.prototype,"thumbnail",void 0);_.x([_.O2("#dismissible"),_.E("design:type",HTMLElement)],iX.prototype,"JSC$13291_dismissibleMedia",void 0);
_.x([_.O2("ytd-ad-inline-playback-meta-block"),_.E("design:type",HTMLElement)],iX.prototype,"adInlinePlaybackMetaBlock",void 0);_.x([_.z4("data"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],iX.prototype,"onDataChanged",null);_.x([_.z4("typographyBump"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],iX.prototype,"onTypographyBumpChanged",null);
_.x([_.e("lockupIsHovered"),_.E("design:type",Boolean),_.E("design:paramtypes",[])],iX.prototype,"isHovered",null);iX=_.x([_.f({is:"ytd-video-display-full-buttoned-and-button-group-renderer",disableElementRegistration:!0})],iX);
_.C(iX,"ytd-video-display-full-buttoned-and-button-group-renderer",function(){if(l8c!==void 0)return l8c;var S=document.createElement("template");_.h(S,'\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');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);return l8c=S},{mode:1});var a8m;var Nn=function(){var S=_.w.apply(this,arguments)||this;S.isInlinePreviewTriggered=!1;S.JSC$13294_activeViewMeasurementDataResolver=_.ay();return S};
_.r(Nn,_.w);_.M=Nn.prototype;_.M.configureRendererStamper=function(){return{dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.M.attached=function(){var S=this;this.updateInlinePreviewHoverListeners();this.JSC$13294_activeViewMeasurementDataResolver.promise.then(function(p){S.ytdActiveViewBehavior.enableActiveViewMeasurement(p,15)})};
_.M.detached=function(){this.clearInlinePreviewHoverListeners()};
_.M.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$13294_inlinePreviewHoverListener=EK({mediaRenderer:this,lockupElement:this.JSC$13294_dismissibleMedia,thumbnailElement:this.thumbnail,videoPreviewOpts:Nfq})};
_.M.clearInlinePreviewHoverListeners=function(){var S;(S=this.JSC$13294_inlinePreviewHoverListener)==null||cI(S)};
_.M.onDataChanged=function(){var S;((S=this.data)==null?0:S.activeView)&&this.JSC$13294_activeViewMeasurementDataResolver.resolve(this.data.activeView);this.updateInlinePreviewHoverListeners();this.ytSparklesClickLocationBehavior.configureClickTargets("thumbnail-container",Nn.JSC$13293_DEFAULT_CLICK_LOCATION_BEHAVIOR,Nn.JSC$13293_CLICK_LOCATION_ID_MAP);this.thumbnail&&(S=this.thumbnail.getElementsByTagName("a"),S.length>0&&(S=S.namedItem("thumbnail"))&&S.removeAttribute("href"))};
_.M.onThumbnailContainerClick=function(S){if(this.data&&this.data.navigationEndpoint){var p,U=(p=this.data)==null?void 0:p.navigationEndpoint;this.ytSparklesClickLocationBehavior.handleClick(U,S,!0);S.stopPropagation()}};
_.M.shouldUseImpressionPingingEndpoint=function(){return this.data&&this.data.onImpression};
_.M.impressionLog=function(){var S=this;if(!(!this.shouldUseImpressionPingingEndpoint()||this.data&&this.data.impressionsFired)){var p,U,Y=(U=_.b((p=this.data)==null?void 0:p.onImpression,_.I2))==null?void 0:U.commands;Y&&(Y.forEach(function(L){L.clickTrackingParams&&delete L.clickTrackingParams;_.tW().resolve(_.cQ).resolveCommand(L,{form:{element:S.hostElement}})}),this.data.impressionsFired=!0)}};
_.$u.Object.defineProperties(Nn.prototype,{isHovered:{configurable:!0,enumerable:!0,get:function(){var S;return!((S=this.JSC$13294_inlinePreviewHoverListener)==null?0:Rm(S))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
Nn.prototype.onDataChanged=Nn.prototype.onDataChanged;Nn.JSC$13293_CLICK_LOCATION_ID_MAP=new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL","thumbnail-container"]]);Nn.JSC$13293_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"}];_.x([_.F(Rk),_.E("design:type",Object)],Nn.prototype,"ytdActiveViewBehavior",void 0);
_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],Nn.prototype,"ytRendererBehavior",void 0);_.x([_.F(_.qH.YtRendererstamperBehavior),_.E("design:type",Object)],Nn.prototype,"ytRendererstamperBehavior",void 0);_.x([_.F(_.Zh),_.E("design:type",Object)],Nn.prototype,"ytdDismissibleItemBehavior",void 0);_.x([_.F(_.ak),_.E("design:type",Object)],Nn.prototype,"ytdLockupBehavior",void 0);_.x([_.F(_.Xh),_.E("design:type",Object)],Nn.prototype,"ytdReduxBehavior",void 0);
_.x([_.F(_.BL.YtSparklesClickLocationBehavior),_.E("design:type",Object)],Nn.prototype,"ytSparklesClickLocationBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],Nn.prototype,"data",void 0);_.x([_.g(),_.E("design:type",Object)],Nn.prototype,"isInlinePreviewTriggered",void 0);_.x([_.g({reflectToAttribute:!0,selector:_.hZ}),_.E("design:type",Boolean)],Nn.prototype,"miniMode",void 0);_.x([_.O2("ytd-thumbnail"),_.E("design:type",HTMLElement)],Nn.prototype,"thumbnail",void 0);
_.x([_.O2("#dismissible"),_.E("design:type",HTMLElement)],Nn.prototype,"JSC$13294_dismissibleMedia",void 0);_.x([_.z4("data"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],Nn.prototype,"onDataChanged",null);_.x([_.e("lockupIsHovered"),_.E("design:type",Boolean),_.E("design:paramtypes",[])],Nn.prototype,"isHovered",null);Nn=_.x([_.f({is:"ytd-video-display-full-buttoned-renderer",disableElementRegistration:!0})],Nn);
_.C(Nn,"ytd-video-display-full-buttoned-renderer",function(){if(a8m!==void 0)return a8m;var S=document.createElement("template");_.h(S,'\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');
S.content.insertBefore(_.t().content.cloneNode(!0),S.content.firstChild);return a8m=S},{mode:1});var MP=function(S,p,U,Y){Y=Y===void 0?!1:Y;_.Sw.call(this,S);this.adsClientErrorMessage=U;this.aggressivelySample=Y;this.args=[];p&&this.args.push(p)};
_.r(MP,_.Sw);var Y9=function(S,p,U,Y){Y=Y===void 0?!1:Y;_.Sw.call(this,S);this.adsClientErrorMessage=U;this.aggressivelySample=Y;this.args=[];p&&this.args.push(p)};
_.r(Y9,_.Sw);var f8P=function(S){_.hY.call(this);var p=this;this.initializationFunction=S;this.instance=null;this.addOnDisposeCallback(function(){_.t9(p.instance);p.instance=null})};
_.r(f8P,_.hY);f8P.prototype.get=function(){Math.random()<.001&&this.isDisposed()&&_.qB("Tried to retrieve object during dispose",void 0,void 0,{type:typeof this.instance});this.instance||(this.instance=this.initializationFunction());return this.instance};var ybX=function(){var S=new Map;[].forEach(function(p){S.set(p.JSC$26888_getType(),p)})};new Promise(function(){});var Dqu=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"]]),kZw=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"}]]),CdH=function(S){this.experimentApiProvider=S;S=Math.random();this.experimentApiProvider.get();this.alwaysIncludeDebugData=S<.1};var Bc=function(S,p,U,Y){_.hY.call(this);this.adsControlFlowEventListeners=p;this.adEventLogger=U;this.experimentApiProvider=Y;this.adsControlFlowManagerHelper=S(this,this,this,this,this);_.Hm(this,this.adsControlFlowManagerHelper);S=_.d(p);for(p=S.next();!p.done;p=S.next())_.Hm(this,p.value)};
_.r(Bc,_.hY);var xyP=function(S,p,U,Y){qn(S.adEventLogger,"ADS_CLIENT_EVENT_TYPE_OPPORTUNITY_RECEIVED",p,U,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,Y);S=_.d(S.adsControlFlowEventListeners);for(Y=S.next();!Y.done;Y=S.next())xyP(Y.value,p,U)};
_.M=Bc.prototype;_.M.onOpportunityProcessedExternallyManaged=function(S,p,U,Y){qn(this.adEventLogger,"ADS_CLIENT_EVENT_TYPE_OPPORTUNITY_PROCESSED",S,U,p,void 0,void 0,void 0,void 0,void 0,void 0,void 0,Y)};
_.M.onSlotReceivedExternallyManaged=function(S,p){Au(this.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_RECEIVED",S,p)};
_.M.onSlotEntered=function(S){if(tu(this.adsControlFlowManagerHelper,S)!=null){Au(this.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_ENTERED",S);this.adsControlFlowManagerHelper.onSlotEntered(S);for(var p=_.d(this.adsControlFlowEventListeners),U=p.next();!U.done;U=p.next())U.value.onSlotEntered(S);if(tu(this.adsControlFlowManagerHelper,S)!=null&&tu(this.adsControlFlowManagerHelper,S).isOccupyingSlotType()&&cc(this.adsControlFlowManagerHelper,S)&&!E3c(this.adsControlFlowManagerHelper,S)){var Y;SD(this.adEventLogger,
"ADS_CLIENT_EVENT_TYPE_ENTER_LAYOUT_REQUESTED",S,(Y=cc(this.adsControlFlowManagerHelper,S))!=null?Y:void 0);S=tu(this.adsControlFlowManagerHelper,S);S.slotLifecycleStage!=="entered"&&pm(S.slot,S.slotLifecycleStage,"enterLayoutForSlot");S.slotLifecycleStage="rendering";S.registeredLayoutRenderingAdapter.startRendering(S.layout)}}};
_.M.onSlotExited=function(S){if(tu(this.adsControlFlowManagerHelper,S)!=null){Au(this.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_EXITED",S);this.adsControlFlowManagerHelper.onSlotExited(S);for(var p=_.d(this.adsControlFlowEventListeners),U=p.next();!U.done;U=p.next())U.value.onSlotExited(S);tu(this.adsControlFlowManagerHelper,S)!=null&&tu(this.adsControlFlowManagerHelper,S).markedForUnscheduleAfterOutboundAdapterRequests&&mye(this,S)}};
_.M.onLayoutReceivedExternallyManaged=function(S,p,U){S.managerLayer!=="core"&&SD(this.adEventLogger,"ADS_CLIENT_EVENT_TYPE_LAYOUT_RECEIVED",S,p,U)};
var o3j=function(S,p,U){if(tu(S.adsControlFlowManagerHelper,p)!=null){SD(S.adEventLogger,"ADS_CLIENT_EVENT_TYPE_LAYOUT_ENTERED",p,U);S=_.d(S.adsControlFlowEventListeners);for(var Y=S.next();!Y.done;Y=S.next())o3j(Y.value,p,U)}};
Bc.prototype.onLayoutExited=function(S,p,U){if(tu(this.adsControlFlowManagerHelper,S)!=null){SD(this.adEventLogger,HVe(U),S,p);this.adsControlFlowManagerHelper.onLayoutExited(S,p);for(var Y=_.d(this.adsControlFlowEventListeners),L=Y.next();!L.done;L=Y.next())L.value.onLayoutExited(S,p,U);(U=cc(this.adsControlFlowManagerHelper,S))&&p.layoutId===U.layoutId&&v3q(this,S)}};
Bc.prototype.disposeInternal=function(){var S=$yE(this.adsControlFlowManagerHelper);S=_.d(S);for(var p=S.next();!p.done;p=S.next())mye(this,p.value);_.hY.prototype.disposeInternal.call(this)};
var mye=function(S,p){if(tu(S.adsControlFlowManagerHelper,p)!=null)if(tu(S.adsControlFlowManagerHelper,p).JSC$26919_isSlotExitRequested()||tu(S.adsControlFlowManagerHelper,p).JSC$26919_isLayoutExitRequested())tu(S.adsControlFlowManagerHelper,p).markedForUnscheduleAfterOutboundAdapterRequests=!0;else if(tu(S.adsControlFlowManagerHelper,p).isOccupyingSlotType())tu(S.adsControlFlowManagerHelper,p).markedForUnscheduleAfterOutboundAdapterRequests=!0,v3q(S,p);else if(tu(S.adsControlFlowManagerHelper,p).JSC$26919_isSlotFillRequested())tu(S.adsControlFlowManagerHelper,
p).markedForUnscheduleAfterOutboundAdapterRequests=!0,tu(S.adsControlFlowManagerHelper,p)!=null&&(Au(S.adEventLogger,"ADS_CLIENT_EVENT_TYPE_CANCEL_SLOT_FULFILLMENT_REQUESTED",p),p=tu(S.adsControlFlowManagerHelper,p),p.fulfillmentLifecycleStage="fill_cancel_requested",p.registeredFulfillmentAdapter.cancelSlotFilling());else{var U=cc(S.adsControlFlowManagerHelper,p),Y;S.experimentApiProvider.get();(Y=_.y("h5_enable_layout_unscheduling_events"))&&(U?iit(S,p,U):_.qB(Error("Gh"),p,U,void 0,!1));Au(S.adEventLogger,
"ADS_CLIENT_EVENT_TYPE_UNSCHEDULE_SLOT_REQUESTED",p);var L=tu(S.adsControlFlowManagerHelper,p),I=p.slotEntryTrigger,V=L.registeredSlotEntryTriggerAdapters.get(I.triggerId);V&&(V.unregisterTrigger(I),L.registeredSlotEntryTriggerAdapters.delete(I.triggerId));I=_.d(p.slotFulfillmentTriggers);for(V=I.next();!V.done;V=I.next()){V=V.value;var W=L.registeredFulfillmentTriggerAdapters.get(V.triggerId);W&&(W.unregisterTrigger(V),L.registeredFulfillmentTriggerAdapters.delete(V.triggerId))}I=_.d(p.slotExpirationTriggers);
for(V=I.next();!V.done;V=I.next())if(V=V.value,W=L.registeredExpirationTriggerAdapters.get(V.triggerId))W.unregisterTrigger(V),L.registeredExpirationTriggerAdapters.delete(V.triggerId);L.hasLayout()&&(I=L.layout,Ui(L,I.layoutExitNormalTriggers),Ui(L,I.layoutExitSkipTriggers),Ui(L,I.layoutExitMuteTriggers),Ui(L,I.layoutExitUserInputSubmittedTriggers),Ui(L,I.layoutExitUserCancelledTriggers));L.registeredFulfillmentAdapter=void 0;L.registeredSlotAdapter!=null&&(L.registeredSlotAdapter.release(),L.registeredSlotAdapter=
void 0);L.registeredLayoutRenderingAdapter!=null&&(L.registeredLayoutRenderingAdapter.release(),L.registeredLayoutRenderingAdapter=void 0);L=S.adsControlFlowManagerHelper;tu(L,p)&&(L=NFQ(L,p.slotType+"_"+p.slotPhysicalPosition))&&L.delete(p.slotId);Au(S.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_UNSCHEDULED",p);S=_.d(S.adsControlFlowEventListeners);for(L=S.next();!L.done;L=S.next())L=L.value,L.onSlotUnscheduled(p),U&&!Y&&iit(L,p,U)}},iit=function(S,p,U){SD(S.adEventLogger,"ADS_CLIENT_EVENT_TYPE_UNSCHEDULE_LAYOUT_REQUESTED",
p,U);
SD(S.adEventLogger,"ADS_CLIENT_EVENT_TYPE_LAYOUT_UNSCHEDULED",p,U);S=_.d(S.adsControlFlowEventListeners);for(var Y=S.next();!Y.done;Y=S.next())Y=Y.value,U&&iit(Y,p,U)},v3q=function(S,p){if(tu(S.adsControlFlowManagerHelper,p)!=null&&tu(S.adsControlFlowManagerHelper,p).isOccupyingSlotType()){var U=cc(S.adsControlFlowManagerHelper,p);
if(U&&E3c(S.adsControlFlowManagerHelper,p)){if(tu(S.adsControlFlowManagerHelper,p)!=null){var Y=S.adEventLogger,L;var I=((L=kZw.get("abandoned"))==null?void 0:L.requestEvent)||"ADS_CLIENT_EVENT_TYPE_UNSPECIFIED";SD(Y,I,p,U);S=tu(S.adsControlFlowManagerHelper,p);S.slotLifecycleStage!=="rendering"&&pm(S.slot,S.slotLifecycleStage,"exitLayout");S.slotLifecycleStage="rendering_stop_requested";S.registeredLayoutRenderingAdapter.stopRendering(U,"abandoned")}}else{Au(S.adEventLogger,"ADS_CLIENT_EVENT_TYPE_EXIT_SLOT_REQUESTED",
p);try{Y=tu(S.adsControlFlowManagerHelper,p);if(!Y)throw new Y9("Cannot exit slot it is unregistered",void 0,"ADS_CLIENT_ERROR_MESSAGE_SLOT_WAS_UNREGISTERED");Y.slotLifecycleStage!=="enter_requested"&&Y.slotLifecycleStage!=="entered"&&Y.slotLifecycleStage!=="rendering"&&pm(Y.slot,Y.slotLifecycleStage,"exitSlot");Y.slotLifecycleStage="exit_requested";if(Y.registeredSlotAdapter===void 0)throw Y.slotLifecycleStage="scheduled",new Y9("Cannot exit slot because adapter is not defined",void 0,"ADS_CLIENT_ERROR_MESSAGE_NO_SLOT_ADAPTER_REGISTERED");
Y.registeredSlotAdapter.exit()}catch(V){V instanceof Y9&&V.adsClientErrorMessage?(BFc(S.adEventLogger,V.adsClientErrorMessage,p),_.qB(V,p,void 0,void 0,V.aggressivelySample)):(BFc(S.adEventLogger,"ADS_CLIENT_ERROR_MESSAGE_UNEXPECTED_ERROR",p),_.qB(V,p))}}}};var Y0=function(S,p,U,Y,L,I){_.hY.call(this);this.registry=S;this.experimentApiProvider=I;this.slotMap=new Map};
_.r(Y0,_.hY);var NFQ=function(S,p){return(S=S.slotMap.get(p))?S:new Map},tu=function(S,p){return NFQ(S,p.slotType+"_"+p.slotPhysicalPosition).get(p.slotId)},$yE=function(S){var p=[];
S.slotMap.forEach(function(U){U=_.d(U.values());for(var Y=U.next();!Y.done;Y=U.next())p.push(Y.value.slot)});
return p};
Y0.prototype.onSlotEntered=function(S){S=tu(this,S);S.slotLifecycleStage!=="enter_requested"&&pm(S.slot,S.slotLifecycleStage,"onSlotEntered");S.slotLifecycleStage="entered"};
var E3c=function(S,p){S=tu(S,p);return S.hasLayout()&&S.isRendering()},cc=function(S,p){(S=tu(S,p))?S.hasLayout()&&!S.layout&&_.qB("Unexpected empty layout",p):_.qB("Unexpected undefined slotState",p);
return(S==null?void 0:S.layout)||null};
Y0.prototype.onSlotExited=function(S){S=tu(this,S);S.slotLifecycleStage!=="exit_requested"&&pm(S.slot,S.slotLifecycleStage,"onSlotExited");S.slotLifecycleStage="scheduled"};
Y0.prototype.onLayoutExited=function(S,p){S=tu(this,S);S.isPrimaryLayout(p)&&(S.slotLifecycleStage!=="rendering_stop_requested"&&pm(S.slot,S.slotLifecycleStage,"onLayoutExited"),S.slotLifecycleStage="entered")};
var Ui=function(S,p){p=_.d(p);for(var U=p.next();!U.done;U=p.next()){U=U.value;var Y=S.registeredLayoutExitTriggerAdapters.get(U.triggerId);Y&&(Y.unregisterTrigger(U),S.registeredLayoutExitTriggerAdapters.delete(U.triggerId))}},pm=function(S,p,U){_.qB("Slot stage was "+p+" when calling method "+U,S)};var AMt=function(S){_.hY.call(this);this.deps=S;this.JSC$13343_adsControlFlowManager=qJm(this)};
_.r(AMt,_.hY);var qJm=function(S){var p=new Bc(function(U,Y,L,I){return new Y0(S.deps.registry,U,Y,L,I,S.deps.experimentApiProvider)},new Set(Jbe(S.deps.registry).concat(S.deps.listeners)),S.deps.adEventLogger,S.deps.experimentApiProvider);
_.Hm(S,p);return p};var trP=function(S,p){_.hY.call(this);this.experimentApiProvider=S;this.eventLoggingSettingsProvider=p;this.eventCount=0};
_.r(trP,_.hY);trP.prototype.logEvent=function(S){qn(this,S)};
var Au=function(S,p,U,Y){qn(S,p,void 0,void 0,void 0,U,void 0,void 0,void 0,U.adSlotLoggingData,void 0,void 0,Y)},SD=function(S,p,U,Y,L){qn(S,p,void 0,void 0,void 0,U,Y?Y:void 0,void 0,void 0,U.adSlotLoggingData,Y?Y.adLayoutLoggingData:void 0,void 0,L)},BFc=function(S,p,U){qn(S,"ADS_CLIENT_EVENT_TYPE_ERROR",void 0,void 0,void 0,U,void 0,void 0,void 0,U.adSlotLoggingData,void 0,{errorType:"ADS_CLIENT_ERROR_TYPE_EXIT_SLOT_FAILED",
errorMessage:p})},qn=function(S,p,U,Y,L,I,V,W,O,D,z,Q,J){J=J===void 0?0:J;
cMd(S.experimentApiProvider.get(),"h5_enable_pacf_debug_logs")&&console.log("[PACF]: "+p,"slot:",I,"layout:",V,"ping:",W,"Opportunity:",{opportunityType:U,associatedSlotId:Y,slotsFromOpportunity:L,triggerBundle:O,adSlotLoggingData:D,adLayoutLoggingData:z});try{var K=function(){S.experimentApiProvider.get();if(p!=="ADS_CLIENT_EVENT_TYPE_UNSPECIFIED"){p||_.qB("Empty PACF event type",I,V);var G=S.eventLoggingSettingsProvider.get();var X;(X=G.alwaysIncludeDebugData)||(G.experimentApiProvider.get(),X=
!1);G=X;X={eventType:p,eventOrder:++S.eventCount};var Z={};I&&(Z.slotData=QNu(G,I));if(V){var l={type:V.layoutType,controlFlowManagerLayer:Dqu.get(V.managerLayer)||"CONTROL_FLOW_MANAGER_LAYER_UNSPECIFIED"};G&&(l.debugData={layoutId:V.layoutId});Z.layoutData=l}W&&(Z.pingData={pingDispatchStatus:W.dispatchStatus,serializedAdPingMetadata:W.ping.serializedAdPingMetadata,pingIndex:W.index});O&&(Z.triggerData=zQq(O.trigger,O.category));U&&(Z.opportunityData=nIw(G,U,Y,L));X.adClientData=Z;D&&(X.serializedSlotAdServingData=
D.serializedSlotAdServingDataEntry);z&&(X.serializedAdServingData=z.serializedAdServingDataEntry);Q&&(X.errorInfo=Q);_.RV("adsClientStateChange",{adsClientEvent:X})}};
J&&J>0?_.bQ(_.jC(),function(){return K()},J):K()}catch(G){cMd(S.experimentApiProvider.get(),"html5_log_pacf_logging_errors")&&_.bQ(_.jC(),function(){_.qB(G instanceof Error?G:String(G),I,V,{pacf_message:"exception during pacf logging"})})}};var Sqe=function(S,p){trP.call(this,S,p)};
_.r(Sqe,trP);var pfP=function(){},cMd=function(S,p){return _.y(p)};var YqH=function(){var S=new Uqq;this.JSC$13362_adsControlFlowManager=(new AMt(S)).JSC$13343_adsControlFlowManager},Uqq=function(){_.hY.call(this);
var S=this;this.experimentApiProvider=new f8P(function(){return new pfP});
var p=new f8P(function(){return new CdH(S.experimentApiProvider)});
this.adEventLogger=new Sqe(this.experimentApiProvider,p);this.registry={opportunityAdapterMap:new Map,fulfillmentAdapterFactoryMap:new Map,triggerAdapterMap:new Map,slotAdapterFactoryMap:new Map,layoutRenderingAdapterFactoryMap:new Map};this.listeners=[]};
_.r(Uqq,_.hY);var Lyq=function(){},M2E,Lm=function(){M2E||(M2E=new Lyq);
return M2E},MQ=function(S){if(!S.JSC$13373_externallyManagedSlotAdapterCallback){var p=(new YqH).JSC$13362_adsControlFlowManager;
S.JSC$13373_externallyManagedSlotAdapterCallback=p}return S.JSC$13373_externallyManagedSlotAdapterCallback},Iyl=function(S,p,U){var Y=p.opportunityType,L=Error("Hh");
if(Y!==void 0){var I=MQ(S);xyP(I,Y,void 0,U)}else _.qB(L,void 0,void 0,{event:"onOpportunityReceivedExternallyManaged"});I=[];if(p.adSlotAndLayoutMetadata!==void 0){p=_.d(p.adSlotAndLayoutMetadata);for(var V=p.next();!V.done;V=p.next()){var W=V.value;if(V=W.adSlotMetadata)if(I.push(V),S.onSlotReceivedExternallyManaged(V,U),W.adLayoutMetadata){W=_.d(W.adLayoutMetadata);for(var O=W.next();!O.done;O=W.next())S.onLayoutReceivedExternallyManaged(V,O.value,U)}else U>0&&_.qB("AdLayoutMetadata is not filled for PACFied response on TV for opportunity type: "+
Y,void 0,void 0,{event:"onOpportunityReceivedExternallyManaged"});else U>0&&_.qB("AdSlotMetadata is not filled for PACFied response on TV for opportunity type: "+Y,void 0,void 0,{event:"onOpportunityReceivedExternallyManaged"})}}else U>0&&_.qB("AdSlotAndLayoutMetadata is not filled for PACFied response on TV for opportunity type: "+Y,void 0,void 0,{event:"onOpportunityReceivedExternallyManaged"});if(Y!==void 0)S.onOpportunityProcessedExternallyManaged(Y,I,void 0,U);else _.qB(L,void 0,void 0,{event:"onOpportunityProcessedExternallyManaged"})};
Lyq.prototype.onSlotReceivedExternallyManaged=function(S,p){S=LJ(S);if(S instanceof Y9)_.qB(S,void 0,void 0,{event:"onSlotReceivedExternallyManaged"});else MQ(this).onSlotReceivedExternallyManaged(S,p)};
Lyq.prototype.onLayoutReceivedExternallyManaged=function(S,p,U){S=LJ(S);p=KyN(p);if(S instanceof Y9)_.qB(S,void 0,void 0,{event:"onLayoutReceivedExternallyManaged"});else if(p instanceof MP)_.qB(p,void 0,void 0,{event:"onLayoutReceivedExternallyManaged"});else MQ(this).onLayoutReceivedExternallyManaged(S,p,U)};
Lyq.prototype.onOpportunityProcessedExternallyManaged=function(S,p,U,Y){var L=[];p=_.d(p);for(var I=p.next();!I.done;I=p.next())I=LJ(I.value),I instanceof Y9?_.qB(I,void 0,void 0,{event:"onOpportunityProcessedExternallyManaged"}):L.push(I);MQ(this).onOpportunityProcessedExternallyManaged(S,L,U,Y)};
var dqc=function(S,p){p=LJ(p);if(p instanceof Y9)_.qB(p,void 0,void 0,{event:"onSlotScheduledAndEnteredExternallyManaged"});else{var U=MQ(S);Au(U.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_SCHEDULED",p);U=_.d(U.adsControlFlowEventListeners);for(var Y=U.next();!Y.done;Y=U.next())Y=tu(Y.value,p),Y.slotLifecycleStage!=="not_scheduled"&&pm(Y.slot,Y.slotLifecycleStage,"onSlotScheduled"),Y.slotLifecycleStage="scheduled";S=MQ(S);Au(S.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_ENTERED",p);S=_.d(S.adsControlFlowEventListeners);
for(U=S.next();!U.done;U=S.next())U.value.onSlotEntered(p)}},V2t=function(S,p){p=LJ(p);
if(p instanceof Y9)_.qB(p,void 0,void 0,{event:"onSlotExitedAndUnscheduledExternallyManaged"});else{var U=MQ(S);Au(U.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_EXITED",p);U=_.d(U.adsControlFlowEventListeners);for(var Y=U.next();!Y.done;Y=U.next())Y.value.onSlotExited(p);S=MQ(S);Au(S.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_UNSCHEDULED",p);S=_.d(S.adsControlFlowEventListeners);for(U=S.next();!U.done;U=S.next())U.value.onSlotUnscheduled(p)}},TUQ=function(S,p,U){p=LJ(p);
U=KyN(U);if(p instanceof Y9)_.qB(p,void 0,void 0,{event:"onLayoutScheduledAndEnteredExternallyManaged"});else if(U instanceof MP)_.qB(U,void 0,void 0,{event:"onLayoutScheduledAndEnteredExternallyManaged"});else{var Y=MQ(S);SD(Y.adEventLogger,"ADS_CLIENT_EVENT_TYPE_LAYOUT_SCHEDULED",p,U);Y=_.d(Y.adsControlFlowEventListeners);for(var L=Y.next();!L.done;L=Y.next())L.value.onLayoutScheduled(p,U);S=MQ(S);SD(S.adEventLogger,"ADS_CLIENT_EVENT_TYPE_LAYOUT_ENTERED",p,U);S=_.d(S.adsControlFlowEventListeners);
for(Y=S.next();!Y.done;Y=S.next())o3j(Y.value,p,U)}},I0=function(S,p,U){p=LJ(p);
U=KyN(U);if(p instanceof Y9)_.qB(p,void 0,void 0,{event:"onLayoutExitedAndUnscheduledExternallyManaged"});else if(U instanceof MP)_.qB(U,void 0,void 0,{event:"onLayoutExitedAndUnscheduledExternallyManaged"});else{var Y=MQ(S);SD(Y.adEventLogger,HVe("normal"),p,U);Y=_.d(Y.adsControlFlowEventListeners);for(var L=Y.next();!L.done;L=Y.next())L.value.onLayoutExited(p,U,"normal");S=MQ(S);S=_.d(S.adsControlFlowEventListeners);for(Y=S.next();!Y.done;Y=S.next())iit(Y.value,p,U)}};_.dy=_.$k(function(S){var p=_.vT(S,{targetHeight:void 0,targetWidth:void 0,preserveHeight:!1,preserveWidth:!1,useWidth:!1,setOnErrorHandler:!1,setProgressiveImageLoading:!1,listenToTapEvent:!1,isGridViewEnabled:!1});S=Object.assign({},p);var U=p.data;p=p.customCommandResolver;var Y=(delete S.data,delete S.customCommandResolver,S),L=_.vH();_.mL(L,function(){return U().interaction},p,function(){var W;
return(W=Y.listenToTapEvent)==null?void 0:W.call(Y)});
_.tU(L,{visibilityCallback:function(W){var O,D=(O=U().interaction)==null?void 0:O.onFirstVisible;W&&(D&&_.wx(D),Y.setOnErrorHandler()&&bVG(L))},
showOption:_.$P});S=_.d(_.kj(!1,void 0,"eiYvIe"));var I=S.next().value,V=S.next().value;return _.H("ad-image-view-model",{class:function(){var W,O=[((W=U().interaction)==null?0:W.onTap)?"ytwAdImageViewModelHostIsClickableAdComponent":"ytwAdImageViewModelHost"],D;((D=Y.isGridViewEnabled)==null?0:D.call(Y))&&O.push("ytwAdImageViewModelHostInGridView");return O.join(" ")},
el:L,"on:touchend":_.kL(function(){var W;((W=Y.setTouchEndHandler)==null?0:W.call(Y))&&!I()&&(L.value.click(),V(!0),setTimeout(function(){V(!1)},100));
return!1})},_.H("div",{class:"ytwAdImageViewModelHostImageContainer"},_.H(_.of,{data:function(){var W;
return{sources:U().imageSources,contentMode:(W=U().imageProperties)==null?void 0:W.contentMode}},
alt:function(){var W,O;return((W=U().interaction)==null?void 0:(O=W.accessibility)==null?void 0:O.label)||""},
targetHeight:Y.targetHeight,targetWidth:Y.targetWidth,preserveHeight:Y.preserveHeight,preserveWidth:Y.preserveWidth,useWidth:Y.useWidth,style:function(){var W,O;return"vertical-align: bottom;"+(((W=U().background)==null?0:W.color)?"background-color:"+_.s1((O=U().background)==null?void 0:O.color)+";":"")},
className:function(){return Y.setProgressiveImageLoading()?"ytwAdImageViewModelHostImage":void 0},
draggable:function(){var W,O;return(O=(W=Y.setDraggable)==null?void 0:W.call(Y))!=null?O:void 0}})))},"gb");var WyH=_.$k(function(S){var p=S.data,U=S.listenToTapEvent,Y=_.vH();_.y("enable_web_home_top_landscape_image_layout_legacy_click_command")||_.mL(Y,function(){return p().interaction},void 0,function(){return U==null?void 0:U()});
_.tU(Y,{visibilityCallback:function(I){var V,W=(V=p().interaction)==null?void 0:V.onFirstVisible;I&&W&&_.wx(W)},
showOption:_.$P});var L=function(){};
return _.H("ad-button-hover-overlay-view-model",{"on:click":_.kL(function(){if(_.y("enable_web_home_top_landscape_image_layout_legacy_click_command")){var I,V=(I=p().interaction)==null?void 0:I.onTap;V&&_.cv(Y.value,"yt-navigate",{endpoint:_.sW(V)})}}),
class:function(){var I;return((I=p().interaction)==null?0:I.onTap)?"ytwAdButtonHoverOverlayViewModelHostIsClickableAdComponent":"ytwAdButtonHoverOverlayViewModelHost"},
el:Y},function(){return _.y("enable_web_home_top_landscape_image_layout_legacy_click_command")?_.H(_.yP,{data:function(){return p().button}},{adButtonViewModel:function(I){return _.H(_.Nf,{data:I.data,
customCommandResolver:L})}}):_.H(_.yP,{data:function(){return p().button}},{adButtonViewModel:_.Nf})}())},"hb");var IA;_.qm(_.$k(function(S){var p=S.data;var U=_.vH();_.y("stop_av_measurement_on_detach")&&_.FG(function(){V4(U)});
_.mL(U,function(){return p().interaction},void 0,function(){return!0});
_.tU(U,{visibilityCallback:function(I){if(I){var V;(I=(V=p().interaction)==null?void 0:V.onFirstVisible)&&_.wx(I);var W;if(V=(W=p().adLayoutData)==null?void 0:W.activeViewData)db(U,V),_.y("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&V4(U)})}else _.y("stop_av_measurement_on_detach")&&V4(U)},
showOption:_.$P,hideOption:iS});S=_.d(_.kj(!1,void 0,"yzu6qe"));var Y=S.next().value,L=S.next().value;return _.H("compact-landscape-no-button-layout-view-model",{class:"ytwCompactLandscapeNoButtonLayoutViewModelHost",el:U,"on:mouseenter":_.kL(function(){L(!0)}),
"on:mouseleave":_.kL(function(){L(!1)})},_.H("div",{class:"ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainer",
style:_.zw({"max-width":function(){return _.y("enable_desktop_search_bigger_thumbs")?"500px":"360px"}})},_.H("div",{class:function(){var I;
a:{var V;switch((I=_.b(p().thumbnailImage,Q5))==null?void 0:(V=I.imageProperties)==null?void 0:V.renderingAspect){case "RENDERING_ASPECT_SQUARE":I="ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerSquareImageContainer";break a;case "RENDERING_ASPECT_LANDSCAPE":I="ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerLandscapeImageContainer";break a}I=void 0}return I}},_.H(_.yP,{data:function(){return p().thumbnailImage}},{adImageViewModel:function(I){return _.H(_.dy,
{data:I.data,
listenToTapEvent:!0,setTouchEndHandler:_.y("enable_top_landscape_image_experiment_dom_id_web")})}})),_.H("div",{class:"ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerOverlayIcon"},_.H(_.n,{cond:function(){var I,V,W;
return(I=_.b(p().thumbnailImage,Q5))==null?void 0:(V=I.imageProperties)==null?void 0:(W=V.overlayIcon)==null?void 0:W.iconImage},
then:function(I){return _.H(_.of,{data:I,alt:"",className:"ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerOverlayIconIconShape"})}})),_.H("div",{class:function(){return Y()?"ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerAdButtonHoverOverlayVisible":"ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerAdButtonHoverOverlay"}},_.H(_.yP,{data:function(){return p().adButtonHoverOverlay}},{adButtonHoverOverlayViewModel:function(I){return _.H(WyH,
{data:I.data,
listenToTapEvent:!0})}}))),_.H("div",{class:"ytwCompactLandscapeNoButtonLayoutViewModelHostMetadata"},_.H(_.yP,{data:function(){return p().feedAdMetadata}},{feedAdMetadataViewModel:function(I){return _.H(blw,{data:I.data,
listenToTapEvent:!0,setTouchEndHandler:_.y("enable_top_landscape_image_experiment_dom_id_web")})}})))},"ib"),"compact-landscape-no-button-layout-view-model",{props:{data:_.x2}});_.qm(_.$k(function(S){var p=S.data;var U=_.vH();_.y("stop_av_measurement_on_detach")&&_.FG(function(){V4(U)});
var Y=_.Xc(_.g8);_.mL(U,function(){return p().interaction});
_.tU(U,{visibilityCallback:function(D){if(D){var z;(D=(z=p().interaction)==null?void 0:z.onFirstVisible)&&_.wx(D);var Q;if(z=(Q=p().adLayoutData)==null?void 0:Q.activeViewData)db(U,z),_.y("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&V4(U)})}else _.y("stop_av_measurement_on_detach")&&V4(U)},
showOption:_.$P,hideOption:iS});var L=_.kL(function(D){var z,Q,J=(z=_.b(p().adImage,Q5))==null?void 0:(Q=z.interaction)==null?void 0:Q.onTap;J&&(_.y("enable_square_image_components_ui_web_with_custom_event")?_.cv(U.value,"yt-navigate",{endpoint:_.sW(J)}):ACw(D,J))}),I=_.kL(function(){var D,z,Q=(D=_.b(p().adButton,TII))==null?void 0:(z=D.interaction)==null?void 0:z.onTap;
Q&&_.cv(U.value,"yt-navigate",{endpoint:_.sW(Q)})}),V=function(){};
S={};var W={},O={};return _.H("square-image-layout-view-model",{class:_.VD("ytwSquareImageLayoutViewModelHost",(S.ytwSquareImageLayoutViewModelHostColumn=Y,S)),el:U},_.H("div",{class:_.VD("ytwSquareImageLayoutViewModelHostImage",(W.ytwSquareImageLayoutViewModelHostColumnImage=Y,W))},function(){return _.y("enable_square_image_components_ui_web_with_native_img")?_.H("img",{class:"ytwSquareImageLayoutViewModelHostImageExp",src:function(){var D,z,Q;return((D=_.b(p().adImage,Q5))==null?void 0:(z=D.imageSources)==
null?void 0:(Q=z[0])==null?void 0:Q.url)||"data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mN8XA8AAksBZG7LpHYAAAAASUVORK5CYII="},
draggable:"false","on:click":L}):_.H(_.yP,{data:function(){return p().adImage}},{adImageViewModel:function(D){return _.H(_.dy,{data:D.data,
isGridViewEnabled:Y,targetHeight:168,setOnErrorHandler:!0,setDraggable:!1,setProgressiveImageLoading:!0})}})}()),_.H("div",{class:_.VD("ytwSquareImageLayoutViewModelHostMetadataButtonContainer",(O.ytwSquareImageLayoutViewModelHostColumnMetadataButtonContainer=Y,O))},_.H(_.yP,{data:function(){return p().feedAdMetadata}},{feedAdMetadataViewModel:blw}),function(){return _.y("enable_square_image_components_ui_web_with_float_button")?_.H("div",{"on:click":I},_.H(_.yP,{data:function(){return p().adButton}},
{adButtonViewModel:function(D){var z={};
return _.H(_.Nf,{data:D.data,customCommandResolver:V,className:_.VD((z.ytwSquareImageLayoutViewModelHostMetadataButtonContainerButton=!0,z.ytwSquareImageLayoutViewModelHostColumnMetadataButtonContainerButton=Y,z))})}})):_.H(_.yP,{data:function(){return p().adButton}},{adButtonViewModel:function(D){var z={};
return _.H(_.Nf,{data:D.data,className:_.VD((z.ytwSquareImageLayoutViewModelHostMetadataButtonContainerButton=!0,z.ytwSquareImageLayoutViewModelHostColumnMetadataButtonContainerButton=Y,z))})}})}()))},"jb"),"square-image-layout-view-model",{props:{data:_.x2}});_.qm(_.$k(function(S){var p=S.data;var U=S.noBottomMargin;var Y=S.typographyBump;var L=_.vH();_.y("stop_av_measurement_on_detach")&&_.FG(function(){V4(L)});
_.y("enable_web_home_top_landscape_image_layout_level_click")&&_.mL(L,function(){return p().interaction},void 0,function(){return!0});
S=function(){return p().interaction};
S!==void 0&&S!==null||_.fU(Error("Ih"));_.tU(L,{visibilityCallback:function(D){if(D){var z;(D=(z=p().interaction)==null?void 0:z.onFirstVisible)&&_.wx(D);var Q;if(z=(Q=p().adLayoutData)==null?void 0:Q.activeViewData)db(L,z),_.y("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&V4(L)})}else _.y("stop_av_measurement_on_detach")&&V4(L)},
showOption:_.$P,hideOption:iS});var I=function(){var D,z,Q;return(D=_.b(p().thumbnailImage,Q5))==null?void 0:(z=D.background)==null?void 0:(Q=z.backgroundImageSource)==null?void 0:Q.imageSources};
S=_.d(_.kj(!1,void 0,"GIwTMc"));var V=S.next().value,W=S.next().value,O=function(){return V()?"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerAdButtonHoverOverlayVisible":"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerAdButtonHoverOverlay"};
return _.H("top-landscape-image-layout-view-model",{class:function(){var D;return((D=p().interaction)==null?0:D.onTap)&&_.y("enable_web_home_top_landscape_image_layout_level_click")?"ytwTopLandscapeImageLayoutViewModelHostIsClickableAdComponent":"ytwTopLandscapeImageLayoutViewModelHost"},
el:L,"on:mouseenter":_.kL(function(){W(!0)}),
"on:mouseleave":_.kL(function(){W(!1)})},_.H("div",{class:"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainer"},_.H(_.n,{cond:function(){return I()&&I().length>0},
then:function(){return _.H("div",{class:"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerBackgroundImage",style:_.zw({top:"0","background-image":function(){return"url("+String(I()[0].url)+")"},
"background-position":"center","background-repeat":"no-repeat","background-size":"100% 100%"})})}}),_.H(_.n,{cond:function(){return!!p().adButtonHoverOverlay},
then:function(){return _.H("div",{class:O},_.H(_.yP,{data:function(){return p().adButtonHoverOverlay}},{adButtonHoverOverlayViewModel:WyH}))}}),_.H("div",{class:"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerImage"},_.H(_.yP,{data:function(){return p().thumbnailImage}},{adImageViewModel:function(D){return _.H(_.dy,{data:D.data,
targetWidth:1152,useWidth:!0,setTouchEndHandler:!1,listenToTapEvent:_.y("enable_web_home_top_landscape_image_layout_level_click")})}})),_.H("div",{class:"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerOverlayIcon"},_.H(_.of,{data:{sources:[{clientResource:{imageName:_.y("swap_open_in_new_with_arrow_diagonal_up_right_on_desktop")?"arrow_diagonal_up_right":"EXTERNAL_LINK"}}]},
alt:"",className:"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerOverlayIconIconShape"}))),_.H("div",{class:"ytwTopLandscapeImageLayoutViewModelHostMetadata"},_.H(_.yP,{data:function(){return p().feedAdMetadata}},{feedAdMetadataViewModel:function(D){return _.H(blw,{data:D.data,
noBottomMargin:function(){return U==null?void 0:U()},
listenToTapEvent:function(){return _.y("enable_web_home_top_landscape_image_layout_level_click")},
typographyBump:function(){return Y==null?void 0:Y()}})}})))},"kb"),"top-landscape-image-layout-view-model",{props:{data:_.x2,
noBottomMargin:_.x2,typographyBump:_.x2}});_.qm(_.$k(function(S){var p=S.data;var U=S.typographyBump;var Y=_.vH();_.y("stop_av_measurement_on_detach")&&_.FG(function(){V4(Y)});
_.tU(Y,{visibilityCallback:function(L){if(L){var I;(L=(I=p().interaction)==null?void 0:I.onFirstVisible)&&_.wx(L);var V;if(I=(V=p().adLayoutData)==null?void 0:V.activeViewData)db(Y,I),_.y("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&V4(Y)})}else _.y("stop_av_measurement_on_detach")&&V4(Y)},
showOption:_.$P,hideOption:iS});return _.H("video-display-button-group-layout-view-model",{class:"ytwVideoDisplayButtonGroupLayoutViewModelHost",el:Y},_.H("div",null,_.H(_.yP,{data:function(){return p().videoLockup}},{lockupViewModel:function(L){return _.H(_.ch,{data:L.data,
containerLayoutConfig:{containerType:"CONTAINER_TYPE_GRID"},lockupExperiments:{useRichGridLegacyMargin:!0,useLegacySizedIconButton:!0},thumbnailTargetWidth:9999,typographyBump:U})}})))},"lb"),"video-display-button-group-layout-view-model",{props:{data:_.x2,
noBottomMargin:_.x2,typographyBump:_.x2}});_.qm(_.$k(function(S){var p=S.data;var U=S.className;var Y=S.typographyBump;var L=_.vH();_.tU(L,{visibilityCallback:function(I){if(I){var V;(I=(V=p().interaction)==null?void 0:V.onFirstVisible)&&_.wx(I);var W;(V=(W=p().adLayoutData)==null?void 0:W.activeViewData)&&db(L,V)}},
showOption:_.$P});return _.H("video-display-compact-button-group-layout-view-model",{el:L,class:_.VD("videoDisplayCompactButtonGroupLayoutViewModelHost",U)},_.H(_.yP,{data:function(){return p().videoLockup}},{lockupViewModel:function(I){return _.H(_.ch,{data:I.data,
containerLayoutConfig:{containerType:"CONTAINER_TYPE_VERTICAL_LIST"},lockupExperiments:{useRichGridLegacyMargin:!0,useLegacySizedIconButton:!0},thumbnailFixedWidth:"50%",typographyBump:Y})}}))},"mb"),"video-display-compact-button-group-layout-view-model",{props:{data:_.x2,
className:_.x2,typographyBump:_.x2}});_.qm(_.$k(function(S){var p=S.data;var U=S.typographyBump;var Y=_.vH();_.y("stop_av_measurement_on_detach")&&_.FG(function(){V4(Y)});
_.tU(Y,{visibilityCallback:function(L){if(L){var I;(L=(I=p().interaction)==null?void 0:I.onFirstVisible)&&_.wx(L);var V;if(I=(V=p().adLayoutData)==null?void 0:V.activeViewData)db(Y,I),_.y("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&V4(Y)})}else _.y("stop_av_measurement_on_detach")&&V4(Y)},
showOption:_.$P,hideOption:iS});return _.H("video-display-full-layout-view-model",{class:"ytwVideoDisplayFullLayoutViewModelHost",el:Y},_.H("div",null,_.H(_.yP,{data:function(){return p().videoLockup}},{lockupViewModel:function(L){return _.H(_.ch,{data:L.data,
containerLayoutConfig:{containerType:"CONTAINER_TYPE_GRID"},lockupExperiments:{useRichGridLegacyMargin:!0},thumbnailTargetWidth:9999,typographyBump:U})}})))},"nb"),"video-display-full-layout-view-model",{props:{data:_.x2,
noBottomMargin:_.x2,typographyBump:_.x2}});_.OVt=_.$k(function(S){var p=S.data;S=_.vH();return _.H("ad-card-badge-view-model",{class:function(){return"ytwAdCardBadgeViewModelHost"},
el:S},_.H(_.n,{cond:function(){return p().imageBadge},
then:function(U){return _.H(_.of,{data:U,alt:""})}}))},"ob");var kZH=_.$k(function(S){var p=S.data;var U=S.customCommandResolver;S=_.vH();_.mL(S,function(){return p().interaction},U);
_.tU(S,{visibilityCallback:function(Y){var L,I=(L=p().interaction)==null?void 0:L.onFirstVisible;Y&&I&&_.wx(I)},
showOption:_.$P});return _.H("carousel-ad-card-image-view-model",{class:function(){var Y;return((Y=p().interaction)==null?0:Y.onTap)?"ytwCarouselAdCardImageViewModelHostIsClickableAdComponent":"ytwCarouselAdCardImageViewModelHost"},
el:S,"aria-label":function(){var Y,L;return(Y=p().interaction)==null?void 0:(L=Y.accessibility)==null?void 0:L.label}},_.H(_.yP,{data:function(){return p().adImage}},{adImageViewModel:function(Y){return _.H(_.dy,{data:Y.data,
customCommandResolver:U})}}),_.H("div",{class:"ytwCarouselAdCardImageViewModelHostCardBadge"},_.H(_.yP,{data:function(){return p().badge}},{adCardBadgeViewModel:_.OVt})),_.H(_.yD,{model:{color:4}}))},"pb");var HVt=_.$k(function(S){var p=_.d(_.kj(0,void 0,"o9Bzd")),U=p.next().value;p.next();var Y=p.next().value,L=_.d(_.kj(!1,void 0,"KLdzYe"));p=L.next().value;var I=L.next().value,V;_.FG(function(){clearTimeout(V)});
L=_.kL(function(){var D;((D=S.animate)==null?0:D.call(S))?(I(!0),V=setTimeout(function(){I(!1);W()},200)):W();
return!1});
var W=function(){Y(function(D){return(D+S.numShownItems())%S.data().length})},O={};
return _.H("horizontal-carousel",{class:"ytwHorizontalCarouselHost"},_.H("div",{class:_.VD("ytwHorizontalCarouselCarouselWrapper")},_.H("div",{class:_.VD("ytwHorizontalCarouselCarouselInnerWrapper",(O.ytwHorizontalCarouselAnimating=p,O))},_.H(_.KU,{each:S.data,keyBy:"INDEX"},function(D,z){return _.H("div",{class:"ytwHorizontalCarouselCarouselItem",style:_.zw({"flex-basis":function(){return"calc((100% - (8px * "+(S.numShownItems()-1)+")) / "+S.numShownItems()+")"},
order:function(){var Q=z-U();Q<0&&(Q+=S.data().length);return Q}})},S.children(D,z))}))),_.H("div",{class:"ytwHorizontalCarouselNextButton",
"on:click":L},S.nextButton()))},"qb");var DqP=_.$k(function(S){var p=S.data;var U=S.customCommandResolver;var Y=S.expansive;S=_.vH();_.tU(S,{visibilityCallback:function(L){var I,V=(I=p().interaction)==null?void 0:I.onFirstVisible;L&&V&&_.wx(V)},
showOption:_.$P});return _.H("carousel-ad-card-collection-view-model",{class:"ytwCarouselAdCardCollectionViewModelHost",el:S},_.H(HVt,{data:function(){var L;return((L=p())==null?void 0:L.carouselAdCards)||[]},
nextButton:function(){return _.H(_.yP,{data:function(){return p().nextButton}},{buttonViewModel:function(L){var I=L.data;
return _.H(_.PG,{data:function(){return(Y==null?0:Y())?Object.assign({},I(),{style:"mono"}):I()},
className:_.y("web_enable_full_height_carousel_next_button")?"ytwCarouselAdCardCollectionViewModelFullHeightButton":""})}})},
numShownItems:3,animate:!0},function(L){return _.H(_.yP,{data:L},{carouselAdCardImageViewModel:function(I){return _.H(kZH,{data:I.data,customCommandResolver:U})}})}))},"rb");var zQE=_.$k(function(S){var p=S.data;var U=S.customCommandResolver;var Y=S.className;var L=S.buttonClassName;var I=S.animationEntityKey;var V=S.expansive;return _.H("carousel-button-view-model",{class:_.VD("ytwCarouselButtonViewModelHost",Y)},_.H(_.yP,{data:function(){return p().carousel}},{carouselAdCardCollectionViewModel:function(W){return _.H(DqP,{data:W.data,
customCommandResolver:U,expansive:V})}}),_.H(_.yP,{data:function(){return p().button}},{adButtonViewModel:function(W){var O=W.data;
return _.H(_.Nf,{data:function(){return(V==null?0:V())?Object.assign({},O(),{style:"AD_BUTTON_STYLE_TONAL"}):O()},
className:L,customCommandResolver:U,animationEntityKey:I})}}))},"sb");_.QNP=_.$k(function(S){var p=S.data;S=S.className;var U=_.vH();_.FM(function(){var Y;((Y=p())==null?0:Y.backgroundColor)&&U.value.setAttribute("data-background-color",String(p().backgroundColor))});
return _.H("pivot-button-view-model",{el:U,class:_.VD("ytwPivotButtonViewModelHost",S)},_.H(_.pY,{command:function(){var Y=p();Y=Y.onClickCommand?_.sW(Y.onClickCommand):Y.contentDescription?_.N9(Y.contentDescription):void 0;return Y},
ariaLabel:function(){return p().contentDescription}},_.H(_.n,{cond:function(){return p().thumbnail},
then:function(Y){return _.H(_.of,{data:Y,alt:"",className:"ytwPivotButtonViewModelHostImage"})},
else:function(){return _.H(_.n,{cond:function(){return p().icon},
then:function(Y){return _.H(_.QD,{icon:function(){return Y().iconType},
className:"ytwPivotButtonViewModelHostIcon"})}})}})))},"tb");_.nIQ=_.$k(function(S){var p=S.data;var U=S.buttonShapeOverrideables;return _.H("reel-action-bar-view-model",{class:"ytwReelActionBarViewModelHost"},_.H(_.yP,{data:function(){return p().buttonViewModels}},{buttonViewModel:function(Y){return _.H(_.PG,{data:Y.data,
buttonOverrides:U})},
likeButtonViewModel:function(Y){return _.H(_.Rr,{data:Y.data,buttonShapeOverrideables:U})},
dislikeButtonViewModel:function(Y){return _.H(_.hO,{data:Y.data,buttonShapeOverrideables:U})}}))},"ub");var Jbt=_.$k(function(S){var p=S.avatar;var U=S.headline;var Y=S.badge;var L=S.description;var I=S.expansive;S={};return _.H("yt-ad-metadata-shape",{class:_.VD("ytAdMetadataShapeHost",(S.ytAdMetadataShapeHostLarge=I,S))},_.H("div",{class:"ytAdMetadataShapeHostAvatarLockup"},_.H(_.n,{cond:p,then:function(V){return _.H(_.nom,{data:function(){return(I==null?0:I())?Object.assign({},V(),{size:"AD_AVATAR_SIZE_MPLUS"}):V()}})}}),_.H("div",{class:"ytAdMetadataShapeHostHeadlineContainer"},_.H(_.i6,{text:U,
className:"ytAdMetadataShapeHostHeadline",linkInheritColor:!0}),_.H(_.n,{cond:Y,then:function(V){return _.H(_.AQ,{data:function(){return(I==null?0:I())?Object.assign({},V(),{style:"AD_BADGE_STYLE_STARK"}):V()},
adRenderingContextType:"AD_RENDERING_CONTEXT_TYPE_REELS"})}}))),_.H("h2",{class:"ytAdMetadataShapeHostDescription"},_.H(_.i6,{text:L,
linkInheritColor:!0})))},"vb");var ybl=_.$k(function(S){var p=S.data;var U=S.onShow;var Y=S.expansive;S=_.vH();_.mL(S,function(){return p().interaction});
_.FM(function(){var I,V=(I=p().animatedRenderingConfig)==null?void 0:I.delayedSecondsToVisible;if(V){var W=setTimeout(U,V*1E3);_.FG(function(){clearTimeout(W)})}});
var L={};return _.H("reels-ad-card-buttoned-view-model",{class:_.VD(function(){var I;return((I=p().interaction)==null?0:I.onTap)?"ytwReelsAdCardButtonedViewModelHostIsClickableAdComponent":"ytwReelsAdCardButtonedViewModelHost"},(L.ytwReelsAdCardButtonedViewModelHostExpansive=Y,L)),
el:S},_.H(Jbt,{avatar:function(){return _.b(p().avatar,d_e)},
headline:function(){return p().headline},
badge:function(){return _.b(p().adBadge,VCm)},
description:function(){return p().description},
expansive:Y}),_.H(_.yP,{data:function(){return p().ctaButton}},{adButtonViewModel:function(I){var V=I.data;
return _.H(_.Nf,{data:function(){return(Y==null?0:Y())?Object.assign({},V(),{style:"AD_BUTTON_STYLE_FILLED"}):V()}})}}))},"wb");var Kym=_.$k(function(S){var p=S.data;S=S.expansive;var U=_.vH();_.y("web_ad_metadata_clickable")&&_.mL(U,function(){return p().interaction});
var Y={};Y=_.W7("ytwReelsAdMetadataViewModelHost",(Y.ytwReelsAdMetadataViewModelHostIsClickableAdComponent=_.y("web_ad_metadata_clickable"),Y));return _.H("reels-ad-metadata-view-model",{class:Y,el:U},_.H(Jbt,{avatar:function(){return _.b(p().avatar,d_e)},
headline:function(){return p().headline},
badge:function(){return _.b(p().adBadge,VCm)},
description:function(){return p().description},
expansive:S}))},"xb");var bVt={iconPosition:"icon-with-label",size:"L"},jNH=_.$k(function(S){var p=S.data;var U=S.overlayDensity;S=_.vH();var Y=_.os(U,0),L=function(){var Q;return(Q=p().reelsAdCardButtonedEntityKey)!=null?Q:""},I=function(){return L()+"/ad_button"},V=_.Ty(FKu,L),W=function(){var Q,J;
return(J=(Q=V())==null?void 0:Q.value)!=null?J:!1},O=_.Xc(Xfq),D=function(){return Object.assign({},bVt,(O()||Y()===2)&&{style:"overlay-dark"})};
U={};var z={};return _.H("reels-player-overlay-layout-view-model",{class:_.VD("ytwReelsPlayerOverlayLayoutViewModelHost",(U.ytwReelsPlayerOverlayLayoutViewModelHostHasExtension=function(){return!!p().extension},U.ytwReelsPlayerOverlayLayoutViewModelHostDesktop=function(){return!0},U)),
"overlay-density":function(){return String(Y())},
el:S},_.H("div",{class:_.VD("ytwReelsPlayerOverlayLayoutViewModelHostMetadataContainer",(z.ytwReelsPlayerOverlayLayoutViewModelHostMetadataContainerEnableBorderRadius=function(){return!0},z))},_.H("div",{"aria-hidden":function(){return W()},
class:_.VD("ytwReelsPlayerOverlayLayoutViewModelHostAnimatingContainer",function(){return W()?"ytwReelsPlayerOverlayLayoutViewModelHide":"ytwReelsPlayerOverlayLayoutViewModelShow"}),
style:_.zw({"transition-duration":function(){return sNk(p())}})},_.H(_.yP,{data:function(){return p().adMetadata}},{reelsAdMetadataViewModel:function(Q){return _.H(Kym,{data:Q.data,
expansive:function(){return Y()===1}})}}),_.H(_.n,{cond:function(){return p().extension},
then:function(Q){return _.H("div",{class:"ytwReelsPlayerOverlayLayoutViewModelHostExtension"},_.H(_.yP,{data:Q},{adButtonViewModel:function(J){return _.H(_.Nf,{data:J.data,animationEntityKey:I,delayedClassName:"ytwReelsPlayerOverlayLayoutViewModelTopMargin"})},
carouselButtonViewModel:function(J){return _.H(zQE,{data:J.data,animationEntityKey:I,className:"ytwReelsPlayerOverlayLayoutViewModelTopMargin",expansive:function(){return Y()===1}})}}))}})),_.H("div",{"aria-hidden":function(){return!W()},
class:_.VD("ytwReelsPlayerOverlayLayoutViewModelHostAnimatingContainer",function(){return W()?"ytwReelsPlayerOverlayLayoutViewModelShow":"ytwReelsPlayerOverlayLayoutViewModelHide"}),
style:_.zw({"transition-duration":function(){return sNk(p())}})},_.H(_.yP,{data:function(){return p().reelsAdCardButtoned}},{reelsAdCardButtonedViewModel:function(Q){return _.H(ybl,{data:Q.data,
onShow:function(){_.m_(_.WG("booleanEntity",L(),{key:L(),value:!0}))},
expansive:function(){return Y()===1}})}}))),_.H("div",{class:"ytwReelsPlayerOverlayLayoutViewModelHostActionBar"},_.H(_.yP,{data:function(){return p().actions}},{reelActionBarViewModel:function(Q){return _.H(_.nIQ,{data:Q.data,
buttonShapeOverrideables:D})}}),_.H(_.yP,{data:function(){return p().menu}},{buttonViewModel:function(Q){return _.H(_.PG,{data:Q.data,
className:"ytwReelsPlayerOverlayLayoutViewModelHostMenuButton",buttonOverrides:function(){return Object.assign({},D(),{type:"tonal"})}})}}),_.H(_.yP,{data:function(){return p().pivotButton}},{pivotButtonViewModel:function(Q){return _.H(_.QNP,{data:Q.data,
className:"ytwReelsPlayerOverlayLayoutViewModelHostPivotButton"})}})))},"yb");_.qm(jNH,"reels-player-overlay-layout-view-model",{props:{data:_.x2,overlayDensity:_.x2}});var VF=function(){var S=_.w.apply(this,arguments)||this;S.noBottomMargin=!1;S.overlayDensity=0;return S};
_.r(VF,_.w);_.M=VF.prototype;
_.M.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]]"}},compactLandscapeNoButtonLayoutViewModel:"compact-landscape-no-button-layout-view-model",promotedVideoRenderer:"ytd-promoted-video-renderer",videoDisplayFullButtonedRenderer:_.y("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]]"}}}}}};
_.M.ready=function(){var S=this;YAw(function(){S.isAttached&&pJ(S.JSC$13419_storedAdSlotMetadata,S.JSC$13419_storedAdLayoutMetadata,S.adSlotMetadata,S.adLayoutMetadata)&&I0(Lm(),S.JSC$13419_storedAdSlotMetadata,S.JSC$13419_storedAdLayoutMetadata)})};
_.M.attached=function(){pJ(this.JSC$13419_storedAdSlotMetadata,this.JSC$13419_storedAdLayoutMetadata,this.adSlotMetadata,this.adLayoutMetadata)&&TUQ(Lm(),this.JSC$13419_storedAdSlotMetadata,this.JSC$13419_storedAdLayoutMetadata)};
_.M.detached=function(){pJ(this.JSC$13419_storedAdSlotMetadata,this.JSC$13419_storedAdLayoutMetadata,this.adSlotMetadata,this.adLayoutMetadata)&&I0(Lm(),this.JSC$13419_storedAdSlotMetadata,this.JSC$13419_storedAdLayoutMetadata)};
_.M.onTypographyBumpChanged=function(){this.videoDisplayFullButtonedGroupRenderer&&(this.videoDisplayFullButtonedGroupRenderer.typographyBump=this.typographyBump)};
_.M.onAdMetadataChanged=function(){this.adLayoutMetadata&&this.adSlotMetadata&&this.JSC$13419_storedAdLayoutMetadata!==this.adLayoutMetadata&&this.JSC$13419_storedAdSlotMetadata!==this.adSlotMetadata&&(this.isAttached&&(this.JSC$13419_storedAdLayoutMetadata!==void 0&&this.JSC$13419_storedAdSlotMetadata!==void 0&&I0(Lm(),this.JSC$13419_storedAdSlotMetadata,this.JSC$13419_storedAdLayoutMetadata),TUQ(Lm(),this.adSlotMetadata,this.adLayoutMetadata)),this.JSC$13419_storedAdLayoutMetadata=this.adLayoutMetadata,
this.JSC$13419_storedAdSlotMetadata=this.adSlotMetadata)};
_.$u.Object.defineProperties(VF.prototype,{adLayoutMetadata:{configurable:!0,enumerable:!0,get:function(){var S;return(S=this.data)==null?void 0:S.adLayoutMetadata}}});
VF.prototype.onAdMetadataChanged=VF.prototype.onAdMetadataChanged;VF.prototype.onTypographyBumpChanged=VF.prototype.onTypographyBumpChanged;_.x([_.F(_.qH.YtRendererstamperBehavior),_.E("design:type",Object)],VF.prototype,"ytRendererstamperBehavior",void 0);_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],VF.prototype,"rendererBehavior",void 0);_.x([_.F(_.eL.YtComponentBehavior),_.E("design:type",Object)],VF.prototype,"ytComponentBehavior",void 0);
_.x([_.g(),_.E("design:type",Object)],VF.prototype,"data",void 0);_.x([_.g(),_.E("design:type",Object)],VF.prototype,"noBottomMargin",void 0);_.x([_.g(),_.E("design:type",Object)],VF.prototype,"overlayDensity",void 0);_.x([_.g({value:!1}),_.E("design:type",Boolean)],VF.prototype,"typographyBump",void 0);_.x([_.e("data.adLayoutMetadata"),_.E("design:type",Object),_.E("design:paramtypes",[])],VF.prototype,"adLayoutMetadata",null);_.x([_.g(),_.E("design:type",Object)],VF.prototype,"adSlotMetadata",void 0);
_.x([_.O2("ytd-video-display-full-buttoned-and-button-group-renderer"),_.E("design:type",HTMLElement)],VF.prototype,"videoDisplayFullButtonedGroupRenderer",void 0);_.x([_.T4("typographyBump"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],VF.prototype,"onTypographyBumpChanged",null);_.x([_.T4("adLayoutMetadata","adSlotMetadata"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],VF.prototype,"onAdMetadataChanged",null);
VF=_.x([_.f({is:"ytd-in-feed-ad-layout-renderer",disableElementRegistration:!0})],VF);
_.C(VF,"ytd-in-feed-ad-layout-renderer",function(){if(Hil!==void 0)return Hil;var S=document.createElement("template");_.h(S,'\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');S.content.insertBefore(_.t().content.cloneNode(!0),S.content.firstChild);return Hil=S},
{mode:_.UW("kevlar_poly_si_batch_j028")?1:2});var rbt;var GZt;var Tg=function(){var S=_.w.apply(this,arguments)||this;S.actionMap={"ytd-video-masthead-ad-primary-video-renderer-playing":"onPlayerReady"};return S};
_.r(Tg,_.w);_.M=Tg.prototype;_.M.computeHasLiveDescription=function(S){return!(S==null||!S.liveDescription)};
_.M.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer",params:{icon:"yt-icons:more_vert"}}}}}};
_.M.onYtToggleButton=function(S){var p,U=(p=this.data)==null?void 0:p.videoReminderEntityKey;U&&this.ytdReduxBehavior.dispatch(_.WG("upcomingEventReminderStateEntity",U,{key:U,state:S.detail.toggled?"UPCOMING_EVENT_REMINDER_STATE_SINGLE":"UPCOMING_EVENT_REMINDER_STATE_NONE"}))};
_.M.attached=function(){this.updateChannelBanner()};
_.M.dataChanged=function(){this.updateChannelBanner()};
_.M.videoReminderStateChanged=function(){var S;this.videoReminderState&&_.b((S=this.data)==null?void 0:S.cta,_.Pj)&&this.set("data.cta.toggleButtonRenderer.isToggled",this.videoReminderState.state==="UPCOMING_EVENT_REMINDER_STATE_SINGLE")};
_.M.updateChannelBanner=function(){if(this.data&&this.data.channelBanner){var S=_.AS(this.data.channelBanner.thumbnails,this.hostElement.clientWidth);S&&(S.startsWith("//")&&(S="https:"+S),this.hostElement.classList.add("channel-banner"),_.Ms(this.hostElement,{"--ytvmh-channel-banner":"url("+S+")"}))}else _.y("remove_masthead_channel_banner_on_refresh")&&this.hostElement.classList.remove("channel-banner")};
_.M.onPlayerReady=function(){this.onIronResize()};
_.M.maybeFlushDebouncer=function(){_.y("web_replace_formatted_with_attributed_string")&&this.formattedStrings.forEach(function(S){var p;S=(p=S.getElementsByTagName("yt-attributed-string"))==null?void 0:p[0];G3u(S==null?void 0:S.polymerController)})};
_.M.onIronResize=function(){this.maybeFlushDebouncer();this.hostElement.clientWidth<370?this.hostElement.classList.add("no-thumbnail"):this.hostElement.classList.remove("no-thumbnail");var S=_.tB(this.hostElement).querySelector("#live-description"),p;S&&((p=this.data)==null?0:p.shortLiveDescription)&&S.clientWidth<S.scrollWidth?this.hostElement.classList.add("short-live-description"):this.hostElement.classList.remove("short-live-description")};
Tg.prototype.onIronResize=Tg.prototype.onIronResize;Tg.prototype.videoReminderStateChanged=Tg.prototype.videoReminderStateChanged;Tg.prototype.dataChanged=Tg.prototype.dataChanged;Tg.prototype.onYtToggleButton=Tg.prototype.onYtToggleButton;_.x([_.F(_.ji),_.E("design:type",Object)],Tg.prototype,"ironResizableBehavior",void 0);_.x([_.F(_.Aj.YtActionHandlerBehavior),_.E("design:type",Object)],Tg.prototype,"ytActionHandlerBehavior",void 0);
_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],Tg.prototype,"ytRendererBehavior",void 0);_.x([_.F(_.qH.YtRendererstamperBehavior),_.E("design:type",Object)],Tg.prototype,"ytRendererstamperBehavior",void 0);_.x([_.F(_.Xh),_.E("design:type",Object)],Tg.prototype,"ytdReduxBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],Tg.prototype,"data",void 0);_.x([_.g({selectorArgs:["data.videoReminderEntityKey"],selector:FIw}),_.E("design:type",Object)],Tg.prototype,"videoReminderState",void 0);
_.x([_.g({reflectToAttribute:!0,value:_.y("web_modern_buttons")}),_.E("design:type",Boolean)],Tg.prototype,"rounded",void 0);_.x([_.g({reflectToAttribute:!0,computed:"computeHasLiveDescription(data)"}),_.E("design:type",Boolean)],Tg.prototype,"hasLiveDescription",void 0);_.x([_.g({reflectToAttribute:!0,value:_.y("web_resizable_advertiser_banner_on_masthead_safari_fix")}),_.E("design:type",Boolean)],Tg.prototype,"resizableAdBannerSafariFix",void 0);
_.x([_.g({reflectToAttribute:!0,value:_.y("align_three_dot_menu_with_title_description")}),_.E("design:type",Boolean)],Tg.prototype,"menuFix",void 0);_.x([_.kk("yt-formatted-string"),_.E("design:type",Array)],Tg.prototype,"formattedStrings",void 0);_.x([_.O2("#cta-button"),_.E("design:type",HTMLElement)],Tg.prototype,"ctaButton",void 0);_.x([_.Vd("yt-toggle-button"),_.E("design:type",Function),_.E("design:paramtypes",[CustomEvent]),_.E("design:returntype")],Tg.prototype,"onYtToggleButton",null);
_.x([_.T4("data"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],Tg.prototype,"dataChanged",null);_.x([_.T4("videoReminderState"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],Tg.prototype,"videoReminderStateChanged",null);_.x([_.Vd("iron-resize"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],Tg.prototype,"onIronResize",null);
Tg=_.x([_.f({is:"ytd-video-masthead-ad-advertiser-info-renderer",disableElementRegistration:!0})],Tg);
_.C(Tg,"ytd-video-masthead-ad-advertiser-info-renderer",function(){if(GZt!==void 0)return GZt;var S=document.createElement("template");_.h(S,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-masthead-ad-advertiser-info-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a id="banner" class="yt-simple-endpoint style-scope ytd-video-masthead-ad-advertiser-info-renderer" aria-hidden="true" href$="[[computeHref_(data.channelEndpoint)]]" data="[[data.channelEndpoint]]" tabindex="-1">\n</a>\n<div id="info-container" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n  <div id="thumbnail-container" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n    <a id="thumbnail-endpoint" class="yt-simple-endpoint inline-block style-scope ytd-video-masthead-ad-advertiser-info-renderer" aria-hidden="true" href$="[[computeHref_(data.channelEndpoint)]]" data="[[data.channelEndpoint]]" tabindex="-1">\n      <yt-img-shadow id="thumbnail" thumbnail="[[data.channelThumbnail]]" width="80" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n      </yt-img-shadow>\n    </a>\n  </div>\n  <div id="right-container" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n    <div id="title-container" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n      <yt-formatted-string id="title" ellipsis-truncate="" text="[[data.title]]" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n      </yt-formatted-string>\n      <div id="menu" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer"></div>\n    </div>\n    <div id="byline-container" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n      <ytd-badge-supported-renderer id="badges" badges="[[data.badges]]" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n      </ytd-badge-supported-renderer>\n      <yt-formatted-string id="byline" ellipsis-truncate="[[!data.liveDescription]]" link-inherit-color="" text="[[data.byline]]" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n      </yt-formatted-string>\n      <template is="dom-if" restamp="" if="[[data.liveDescription]]" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n        <div id="live-description-container" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n          <yt-formatted-string id="short-live-description" text="[[data.shortLiveDescription]]" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n          </yt-formatted-string>\n          <yt-formatted-string id="live-description" text="[[data.liveDescription]]" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n          </yt-formatted-string>\n        </div>\n      </template>\n    </div>\n    <div id="cta-container" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n      <ytd-button-renderer id="cta-button" data="[[data.cta.buttonRenderer]]" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n      </ytd-button-renderer>\n      <ytd-toggle-button-renderer id="reminder-button" data="[[data.cta.toggleButtonRenderer]]" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n      </ytd-toggle-button-renderer>\n    </div>\n  </div>\n</div>\n');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);return GZt=S},{mode:1});var hQt;var Wn=function(){var S=_.w.apply(this,arguments)||this;S.actionMap={"ytd-video-masthead-expandable-tile-expanding":"onExpandableTileExpanding","ytd-video-masthead-expandable-tile-lock-and-collapse":"onExpandableTileLockAndCollapse","ytd-video-masthead-expandable-tile-unlock":"onExpandableTileUnlock"};S.isLocked=!1;return S};
_.r(Wn,_.w);_.M=Wn.prototype;_.M.maybeExpand=function(){this.isLocked||this.expanded||(this.expanded=!0)};
_.M.onExpandedChanged=function(){this.expanded&&_.pp(this.hostElement,"ytd-video-masthead-expandable-tile-expanding",[this])};
_.M.onMouseOver=function(){this.maybeExpand()};
_.M.onTap=function(){this.maybeExpand()};
_.M.onExpandableTileExpanding=function(S){S!==this&&(this.expanded=!1)};
_.M.onExpandableTileLockAndCollapse=function(S){this.isLocked=!0;S!==this&&(this.expanded=!1)};
_.M.onExpandableTileUnlock=function(){this.isLocked=!1};
Wn.prototype.onTap=Wn.prototype.onTap;Wn.prototype.onMouseOver=Wn.prototype.onMouseOver;Wn.prototype.onExpandedChanged=Wn.prototype.onExpandedChanged;_.x([_.F(_.Aj.YtActionHandlerBehavior),_.E("design:type",Object)],Wn.prototype,"ytActionHandlerBehavior",void 0);_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],Wn.prototype,"ytRendererBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],Wn.prototype,"data",void 0);
_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Boolean)],Wn.prototype,"expanded",void 0);_.x([_.z4("expanded"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],Wn.prototype,"onExpandedChanged",null);_.x([_.Vd("mouseover"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],Wn.prototype,"onMouseOver",null);_.x([_.Vd("tap"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],Wn.prototype,"onTap",null);
Wn=_.x([_.f({is:"ytd-video-masthead-ad-expandable-thumbnail-tile-renderer",disableElementRegistration:!0})],Wn);
_.C(Wn,"ytd-video-masthead-ad-expandable-thumbnail-tile-renderer",function(){if(hQt!==void 0)return hQt;var S=document.createElement("template");_.h(S,'\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');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);return hQt=S},{mode:1});var RQQ;var Oi=function(){var S=_.w.apply(this,arguments)||this;S.buttonOverrides={style:"overlay"};S.useYtdPlayer=_.y("use_ytd_player_for_desktop_masthead");S.actionMap={"ytd-video-masthead-expandable-tile-expanding":"onExpandableTileExpanding","ytd-video-masthead-expandable-tile-lock-and-collapse":"onExpandableTileLockAndCollapse","ytd-video-masthead-expandable-tile-unlock":"onExpandableTileUnlock"};S.playbackFinished=!1;S.JSC$13431_playerManager=null;S.JSC$13431_mastheadCounter=new k7m;return S};
_.r(Oi,_.w);_.M=Oi.prototype;_.M.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"}}}};
_.M.created=function(){this.JSC$13431_mastheadCounter.increment("PLAYER_CONTAINER_CREATED",this.useYtdPlayer,!0);this.useYtdPlayer||(this.JSC$13431_playerManager=new n$)};
_.M.ready=function(){var S=this;this.JSC$13431_mastheadCounter.increment("PLAYER_CONTAINER_READY",this.useYtdPlayer,!0);var p=_.tB(this.hostElement).querySelector("#player");this.useYtdPlayer?p.style.display="none":(this.ytdPlayer.style.display="none",oPH(this.JSC$13431_playerManager,p,function(){S.onPlaybackEnded()}),_.tB(this.hostElement).querySelector("#replay-button").addEventListener("click",function(){var U;
((U=S.data)==null?0:U.navigationEndpoint)&&_.cv(S.hostElement,"yt-navigate",{endpoint:S.data.navigationEndpoint})}))};
_.M.onPlaybackEnded=function(){this.hostElement.classList.remove("video-playing");this.hostElement.classList.add("video-ended");this.unlockExpandableTiles();this.playbackFinished=!0;this.JSC$13431_mastheadCounter.increment("VIDEO_END",this.useYtdPlayer,!0)};
_.M.attached=function(){var S=this;_.uK(function(){S.maybePlayVideo()})};
_.M.maybePlayVideo=function(){var S=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$13431_playerManager.playVideo(),this.getPlayerPromise().then(function(){S.JSC$13431_mastheadCounter.increment("VIDEO_START",!1,!0)})))};
_.M.stopVideo=function(){this.useYtdPlayer?this.ytdPlayer.stop():this.JSC$13431_playerManager.stopVideo()};
_.M.dataChanged=function(){if(this.data)if(this.useYtdPlayer){var S,p={autoplay:0,adformat:"17_8",video_id:this.data.videoId,suggestedQuality:"hd720",startSeconds:((S=this.data.playbackStartMs)!=null?S:0)/1E3,player_params:this.data.playerParams};this.ytdPlayer.loadVideoWithPlayerVars(p);this.setupYtdPlayer()}else $fq(this.JSC$13431_playerManager,this.data.videoId,this.data.playbackStartMs,this.data.playbackDurationMs,this.data.playerParams),this.data.disableAutoPlayback&&(vPH(this.JSC$13431_playerManager),
this.hostElement.classList.add("video-ended"),this.playbackFinished=!0),this.maybePlayVideo()};
_.M.getPlayerPromise=function(){return this.JSC$13431_playerManager.getPlayerPromise()};
_.M.onYtToggleButton=function(S){this.useYtdPlayer?this.toggleMute(S.detail.toggled):S.detail.toggled?this.JSC$13431_playerManager.mute():this.JSC$13431_playerManager.unMute()};
_.M.onYtNavigate=function(S){var p=ntR(S.detail.endpoint),U=J6N(this.data.clickthroughReportingData);p&&U&&(S.detail.endpoint.watchEndpoint?S.detail.tempData=U:_.$n(p,U,30))};
_.M.maybeExpand=function(){this.isLocked||this.expanded||(this.expanded=!0)};
_.M.onExpandedChanged=function(){this.expanded?(_.pp(this.hostElement,"ytd-video-masthead-expandable-tile-expanding",[this]),this.maybePlayVideo()):this.stopVideo()};
_.M.onMouseOver=function(){this.maybeExpand()};
_.M.onTap=function(){this.maybeExpand()};
_.M.onExpandableTileExpanding=function(S){S!==this&&(this.stopVideo(),this.expanded=!1)};
_.M.onExpandableTileLockAndCollapse=function(S){S!==this&&(this.isLocked=!0,this.expanded=!1)};
_.M.onExpandableTileUnlock=function(){this.isLocked=!1};
_.M.lockAndCollapseExpandableTiles=function(){_.St(this.hostElement,"ytd-video-masthead-expandable-tile-lock-and-collapse",[this])};
_.M.unlockExpandableTiles=function(){_.St(this.hostElement,"ytd-video-masthead-expandable-tile-unlock")};
_.M.setupYtdPlayer=function(){var S=this,p;return _.T(function(U){if(U.nextAddress==1)return _.k(U,S.ytdPlayer.getPlayerPromise(),2);p=U.yieldResult;p.addEventListener("onStateChange",function(Y){S.onPlayerStateChange(Y)});
p.addEventListener("onCueRangeExit",function(Y){S.onCueRangeExit(Y)});
_.OV(U)})};
_.M.onPlayerStateChange=function(S){if(S===1&&(S=this.ytdPlayer.getPlayer())){var p=S.getCurrentTime(),U,Y,L=p+((Y=(U=this.data)==null?void 0:U.playbackDurationMs)!=null?Y:0)/1E3;S.addCueRange("playback",p,L);this.JSC$13431_mastheadCounter.increment("VIDEO_START",!0,!0)}};
_.M.onCueRangeExit=function(S){S==="playback"&&(this.ytdPlayer.stop(),this.onPlaybackEnded())};
_.M.toggleMute=function(S){var p=this,U;return _.T(function(Y){if(Y.nextAddress==1)return _.k(Y,p.ytdPlayer.getPlayerPromise(),2);U=Y.yieldResult;S?U.mute():U.unMute();_.OV(Y)})};
Oi.prototype.onTap=Oi.prototype.onTap;Oi.prototype.onMouseOver=Oi.prototype.onMouseOver;Oi.prototype.onExpandedChanged=Oi.prototype.onExpandedChanged;Oi.prototype.onYtNavigate=Oi.prototype.onYtNavigate;Oi.prototype.onYtToggleButton=Oi.prototype.onYtToggleButton;Oi.prototype.dataChanged=Oi.prototype.dataChanged;_.x([_.F(_.qH.YtRendererstamperBehavior),_.E("design:type",Object)],Oi.prototype,"ytRendererstamperBehavior",void 0);
_.x([_.F(_.Aj.YtActionHandlerBehavior),_.E("design:type",Object)],Oi.prototype,"ytActionHandlerBehavior",void 0);_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],Oi.prototype,"ytRendererBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],Oi.prototype,"data",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Boolean)],Oi.prototype,"expanded",void 0);_.x([_.g(),_.E("design:type",Object)],Oi.prototype,"buttonOverrides",void 0);
_.x([_.g(),_.E("design:type",Object)],Oi.prototype,"useYtdPlayer",void 0);_.x([_.O2("#ytd-player"),_.E("design:type",Object)],Oi.prototype,"ytdPlayer",void 0);_.x([_.T4("data"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],Oi.prototype,"dataChanged",null);_.x([_.Vd("yt-toggle-button"),_.E("design:type",Function),_.E("design:paramtypes",[CustomEvent]),_.E("design:returntype")],Oi.prototype,"onYtToggleButton",null);
_.x([_.Vd("yt-navigate"),_.E("design:type",Function),_.E("design:paramtypes",[CustomEvent]),_.E("design:returntype")],Oi.prototype,"onYtNavigate",null);_.x([_.z4("expanded"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],Oi.prototype,"onExpandedChanged",null);_.x([_.Vd("mouseover"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],Oi.prototype,"onMouseOver",null);
_.x([_.Vd("tap"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],Oi.prototype,"onTap",null);Oi=_.x([_.f({is:"ytd-video-masthead-ad-expandable-video-tile-renderer",disableElementRegistration:!0})],Oi);
_.C(Oi,"ytd-video-masthead-ad-expandable-video-tile-renderer",function(){if(RQQ!==void 0)return RQQ;var S=document.createElement("template");_.h(S,'\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');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);return RQQ=S},{mode:1});var FyI;var k0=function(){return _.w.apply(this,arguments)||this};
_.r(k0,_.w);k0.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
k0.prototype.onShow=function(){var S=_.tB(this.hostElement).querySelector("#live-description"),p;S&&((p=this.data)==null?0:p.shortLiveDescription)&&S.clientWidth<S.scrollWidth&&this.hostElement.classList.add("short-live-description")};
k0.prototype.onYtToggleButton=function(S){var p,U=(p=this.data)==null?void 0:p.videoReminderEntityKey;U&&this.ytdReduxBehavior.dispatch(_.WG("upcomingEventReminderStateEntity",U,{key:U,state:S.detail.toggled?"UPCOMING_EVENT_REMINDER_STATE_SINGLE":"UPCOMING_EVENT_REMINDER_STATE_NONE"}))};
k0.prototype.videoReminderStateChanged=function(){var S;this.videoReminderState&&_.b((S=this.data)==null?void 0:S.cta,_.Pj)&&this.set("data.cta.toggleButtonRenderer.isToggled",this.videoReminderState.state==="UPCOMING_EVENT_REMINDER_STATE_SINGLE")};
k0.prototype.videoReminderStateChanged=k0.prototype.videoReminderStateChanged;k0.prototype.onYtToggleButton=k0.prototype.onYtToggleButton;_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],k0.prototype,"ytRendererBehavior",void 0);_.x([_.F(_.qH.YtRendererstamperBehavior),_.E("design:type",Object)],k0.prototype,"ytRendererstamperBehavior",void 0);_.x([_.F(_.Xh),_.E("design:type",Object)],k0.prototype,"ytdReduxBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],k0.prototype,"data",void 0);
_.x([_.g({selectorArgs:["data.videoReminderEntityKey"],selector:FIw}),_.E("design:type",Object)],k0.prototype,"videoReminderState",void 0);_.x([_.Vd("yt-toggle-button"),_.E("design:type",Function),_.E("design:paramtypes",[CustomEvent]),_.E("design:returntype")],k0.prototype,"onYtToggleButton",null);_.x([_.T4("videoReminderState"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],k0.prototype,"videoReminderStateChanged",null);
k0=_.x([_.f({is:"ytd-video-masthead-ad-primary-video-overlay-renderer",disableElementRegistration:!0})],k0);
_.C(k0,"ytd-video-masthead-ad-primary-video-overlay-renderer",function(){if(FyI!==void 0)return FyI;var S=document.createElement("template");_.h(S,'\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');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);return FyI=S},{mode:_.UW("kevlar_poly_si_batch_j065")?1:2});var XfE;var Hn=function(){var S=_.w.apply(this,arguments)||this;S.useYtdPlayer=_.y("use_ytd_player_for_desktop_masthead");S.buttonOverrides={style:"overlay"};S.JSC$13439_playerManager=null;S.JSC$13439_mastheadCounter=new k7m;S.actionMap={"yt-masthead-hidden":"onYtMastheadHidden"};return S};
_.r(Hn,_.w);_.M=Hn.prototype;_.M.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"}}}};
_.M.created=function(){this.JSC$13439_mastheadCounter.increment("PLAYER_CONTAINER_CREATED",this.useYtdPlayer,!1);this.useYtdPlayer||(this.JSC$13439_playerManager=new n$)};
_.M.ready=function(){var S=this;this.JSC$13439_mastheadCounter.increment("PLAYER_CONTAINER_READY",this.useYtdPlayer,!1);if(this.useYtdPlayer){var p;(p=this.embeddedPlayer)==null||p.remove()}else{var U;(U=this.ytdPlayer)==null||U.remove();oPH(this.JSC$13439_playerManager,this.embeddedPlayer,function(){S.onPlaybackEnded()});
this.replayButton.addEventListener("click",function(){S.data&&S.data.navigationEndpoint&&_.cv(S.hostElement,"yt-navigate",{endpoint:S.data.navigationEndpoint})})}};
_.M.onPlaybackEnded=function(){this.hostElement.classList.remove("video-playing");this.hostElement.classList.add("video-ended");this.JSC$13439_mastheadCounter.increment("VIDEO_END",this.useYtdPlayer,!1)};
_.M.dataChanged=function(){var S=this;if(this.data){if(typeof this.data.videoId==="string")if(this.useYtdPlayer){var p=!this.data.disableAutoPlayback,U,Y={autoplay:p,adformat:"17_8",video_id:this.data.videoId,suggestedQuality:"hd720",startSeconds:((U=this.data.playbackStartMs)!=null?U:0)/1E3,player_params:this.data.playerParams};this.hostElement.classList.add(p?"video-playing":"video-ended");this.ytdPlayer.loadVideoWithPlayerVars(Y);this.setupYtdPlayer()}else $fq(this.JSC$13439_playerManager,this.data.videoId,
this.data.playbackStartMs,this.data.playbackDurationMs,this.data.playerParams||void 0),this.data.disableAutoPlayback?(vPH(this.JSC$13439_playerManager),this.hostElement.classList.add("video-ended")):(this.JSC$13439_playerManager.playVideo(),this.hostElement.classList.add("video-playing"),this.getPlayerPromise().then(function(){_.St(S.hostElement,"ytd-video-masthead-ad-primary-video-renderer-playing");S.JSC$13439_mastheadCounter.increment("VIDEO_START",!1,!1)}));
this.data.isWidescreen&&this.playerContainer.classList.add("widescreen")}};
_.M.getPlayerPromise=function(){return this.JSC$13439_playerManager.getPlayerPromise()};
_.M.onYtToggleButton=function(S){this.useYtdPlayer?this.toggleMute(S.detail.toggled):S.detail.toggled?this.JSC$13439_playerManager.mute():this.JSC$13439_playerManager.unMute()};
_.M.onYtNavigate=function(S){var p=ntR(S.detail.endpoint),U=J6N(this.data.clickthroughReportingData);p&&U&&(S.detail.endpoint.watchEndpoint?S.detail.tempData=U:_.$n(p,U,30))};
_.M.onYtMastheadHidden=function(){this.useYtdPlayer?this.ytdPlayer.stop():this.JSC$13439_playerManager.stopVideo()};
_.M.setupYtdPlayer=function(){var S=this,p;return _.T(function(U){if(U.nextAddress==1)return _.k(U,S.ytdPlayer.getPlayerPromise(),2);p=U.yieldResult;p.addEventListener("onStateChange",function(Y){S.onPlayerStateChange(Y)});
p.addEventListener("onCueRangeExit",function(Y){S.onCueRangeExit(Y)});
_.OV(U)})};
_.M.onPlayerStateChange=function(S){if(S===1&&(S=this.ytdPlayer.getPlayer())){var p=S.getCurrentTime(),U,Y,L=p+((Y=(U=this.data)==null?void 0:U.playbackDurationMs)!=null?Y:0)/1E3;S.addCueRange("playback",p,L);_.St(this.hostElement,"ytd-video-masthead-ad-primary-video-renderer-playing");this.JSC$13439_mastheadCounter.increment("VIDEO_START",!0,!1)}};
_.M.onCueRangeExit=function(S){S==="playback"&&(this.ytdPlayer.stop(),this.onPlaybackEnded())};
_.M.toggleMute=function(S){var p=this,U;return _.T(function(Y){if(Y.nextAddress==1)return _.k(Y,p.ytdPlayer.getPlayerPromise(),2);U=Y.yieldResult;S?U.mute():U.unMute();_.OV(Y)})};
_.$u.Object.defineProperties(Hn.prototype,{titleAriaLabel:{configurable:!0,enumerable:!0,get:function(){var S,p;if(!((S=this.data)==null?0:(p=S.accessibilityData)==null?0:p.label))return"Ad primary link";var U,Y;return _.Oh("AD_TITLE",{title:(U=this.data)==null?void 0:(Y=U.accessibilityData)==null?void 0:Y.label})}}});
Hn.prototype.onYtMastheadHidden=Hn.prototype.onYtMastheadHidden;Hn.prototype.onYtNavigate=Hn.prototype.onYtNavigate;Hn.prototype.onYtToggleButton=Hn.prototype.onYtToggleButton;Hn.prototype.dataChanged=Hn.prototype.dataChanged;_.x([_.F(_.qH.YtRendererstamperBehavior),_.E("design:type",Object)],Hn.prototype,"ytRendererstamperBehavior",void 0);_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],Hn.prototype,"ytRendererBehavior",void 0);
_.x([_.F(_.Aj.YtActionHandlerBehavior),_.E("design:type",Object)],Hn.prototype,"ytActionHandlerBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],Hn.prototype,"data",void 0);_.x([_.g(),_.E("design:type",Object)],Hn.prototype,"useYtdPlayer",void 0);_.x([_.O2("ytd-toggle-button-renderer"),_.E("design:type",Object)],Hn.prototype,"muteButton",void 0);_.x([_.g(),_.E("design:type",Object)],Hn.prototype,"buttonOverrides",void 0);
_.x([_.e("data.accessibilityData.label"),_.E("design:type",String),_.E("design:paramtypes",[])],Hn.prototype,"titleAriaLabel",null);_.x([_.O2("#replay-button"),_.E("design:type",Object)],Hn.prototype,"replayButton",void 0);_.x([_.O2("#player-container"),_.E("design:type",Object)],Hn.prototype,"playerContainer",void 0);_.x([_.O2("#player"),_.E("design:type",Object)],Hn.prototype,"embeddedPlayer",void 0);_.x([_.O2("#ytd-player"),_.E("design:type",Object)],Hn.prototype,"ytdPlayer",void 0);
_.x([_.T4("data"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],Hn.prototype,"dataChanged",null);_.x([_.Vd("yt-toggle-button"),_.E("design:type",Function),_.E("design:paramtypes",[CustomEvent]),_.E("design:returntype")],Hn.prototype,"onYtToggleButton",null);_.x([_.Vd("yt-navigate"),_.E("design:type",Function),_.E("design:paramtypes",[CustomEvent]),_.E("design:returntype")],Hn.prototype,"onYtNavigate",null);
_.x([_.Vd("yt-masthead-hidden"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],Hn.prototype,"onYtMastheadHidden",null);Hn=_.x([_.f({is:"ytd-video-masthead-ad-primary-video-renderer",disableElementRegistration:!0})],Hn);
_.C(Hn,"ytd-video-masthead-ad-primary-video-renderer",function(){if(XfE!==void 0)return XfE;var S=document.createElement("template");_.h(S,'\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');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);return XfE=S},{mode:2});var P2c;var DR=function(){var S=_.w.apply(this,arguments)||this;S.collapsed=!1;S.impressionResolver=_.ay();S.JSC$13443_activeViewMeasurementDataResolver=_.ay();S.actionMap={"yt-mute-ad-action":"handleMuteAd"};return S};
_.r(DR,_.w);_.M=DR.prototype;_.M.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"}}}};
_.M.ready=function(){var S=this;_.tB(this.hostElement).querySelector("#show-ad").addEventListener("click",function(){S.expandAd()});
this.hostElement.addEventListener("yt-action",function(p){if(p.detail.actionName==="yt-service-request"){var U=p.detail.args[1];U.videoMastheadAdMuteCommand&&(S.collapseAd(U.videoMastheadAdMuteCommand.encryptedMastheadId),p.stopPropagation())}})};
_.M.attached=function(){var S=this;_.uK(function(){S.ironResizableBehavior.notifyResize()});
this.impressionResolver.promise.then(function(p){if(!S.collapsed){p=_.d(p);for(var U=p.next();!U.done;U=p.next())U=U.value,x7(U.baseUrl,U.attributionSrcMode);S.data.impressionCommand=void 0}});
this.JSC$13443_activeViewMeasurementDataResolver.promise.then(function(p){S.ytdActiveViewBehavior.enableActiveViewMeasurement(p,15)});
_.y("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&S.ytdActiveViewBehavior.stopActiveViewMeasurement()})};
_.M.dataChanged=function(){var S;((S=this.data.impressionCommand)==null?0:S.loggingUrls)&&this.impressionResolver.resolve(this.data.impressionCommand.loggingUrls);var p;((p=this.data)==null?0:p.activeView)&&this.JSC$13443_activeViewMeasurementDataResolver.resolve(this.data.activeView);(S=this.get("data.showAdRenderer.buttonRenderer.command.videoMastheadAdMuteCommand"))&&this.restoreCollapsedState(S.encryptedMastheadId);this.collapsed&&(this.data.primaryVideo&&(this.data.primaryVideo=void 0),this.data.expandableTiles&&
(this.data.expandableTiles=void 0))};
_.M.computeWidescreen=function(S){var p;return!!(S&&((p=_.b(S,U_t))==null?0:p.isWidescreen))};
_.M.computeExpandable=function(S){return!!(S&&S.length>0)};
_.M.onIronResize=function(){if(this.expandable){var S=_.tB(this.hostElement).querySelector("#expandable-tile-container :first-child");S&&!S.expanded&&(S.expanded=!0)}};
_.M.handleMuteAd=function(){this.collapseAd(null)};
_.M.restoreCollapsedState=function(S){this.collapsed=_.D9().get("HIDDEN_MASTHEAD_ID")===S};
_.M.collapseAd=function(S){if(S){var p=_.D9();p.set("HIDDEN_MASTHEAD_ID",S);p.save()}(S=_.tB(this.hostElement).querySelector("#video"))&&_.cv(S,"yt-masthead-hidden");this.collapsed=!0};
_.M.expandAd=function(){var S=_.D9();S.set("HIDDEN_MASTHEAD_ID",!1);S.save();location.reload()};
_.M.detached=function(){_.y("stop_av_measurement_on_detach")&&this.ytdActiveViewBehavior.stopActiveViewMeasurement()};
DR.prototype.onIronResize=DR.prototype.onIronResize;DR.prototype.dataChanged=DR.prototype.dataChanged;_.x([_.F(_.ji),_.E("design:type",Object)],DR.prototype,"ironResizableBehavior",void 0);_.x([_.F(Rk),_.E("design:type",Object)],DR.prototype,"ytdActiveViewBehavior",void 0);_.x([_.F(_.ej),_.E("design:type",Object)],DR.prototype,"ytdGridStateAwareBehavior",void 0);_.x([_.F(_.Aj.YtActionHandlerBehavior),_.E("design:type",Object)],DR.prototype,"ytActionHandlerBehavior",void 0);
_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],DR.prototype,"ytRendererBehavior",void 0);_.x([_.F(_.qH.YtRendererstamperBehavior),_.E("design:type",Object)],DR.prototype,"ytRendererstamperBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],DR.prototype,"data",void 0);_.x([_.g({reflectToAttribute:!0,computed:"computeWidescreen(data.primaryVideo)"}),_.E("design:type",Boolean)],DR.prototype,"widescreen",void 0);
_.x([_.g({reflectToAttribute:!0,computed:"computeExpandable(data.expandableTiles)"}),_.E("design:type",Boolean)],DR.prototype,"expandable",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],DR.prototype,"collapsed",void 0);_.x([_.z4("data"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],DR.prototype,"dataChanged",null);
_.x([_.Vd("iron-resize"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],DR.prototype,"onIronResize",null);DR=_.x([_.f({is:"ytd-video-masthead-ad-v3-renderer",disableElementRegistration:!0})],DR);
_.C(DR,"ytd-video-masthead-ad-v3-renderer",function(){if(P2c!==void 0)return P2c;var S=document.createElement("template");_.h(S,'\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');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);return P2c=S},{mode:2});var zg=function(){return _.w.apply(this,arguments)||this};
_.r(zg,_.w);_.M=zg.prototype;_.M.configureRendererStamper=function(){return{"data.renderingContent":{id:"rendering-content",mapping:{videoMastheadAdV3Renderer:"ytd-video-masthead-ad-v3-renderer"}}}};
_.M.ready=function(){var S=this;YAw(function(){S.isAttached&&pJ(S.JSC$13448_storedAdSlotMetadata,S.JSC$13448_storedAdLayoutMetadata,S.adSlotMetadata,S.adLayoutMetadata)&&I0(Lm(),S.JSC$13448_storedAdSlotMetadata,S.JSC$13448_storedAdLayoutMetadata)})};
_.M.attached=function(){pJ(this.JSC$13448_storedAdSlotMetadata,this.JSC$13448_storedAdLayoutMetadata,this.adSlotMetadata,this.adLayoutMetadata)&&TUQ(Lm(),this.JSC$13448_storedAdSlotMetadata,this.JSC$13448_storedAdLayoutMetadata)};
_.M.detached=function(){pJ(this.JSC$13448_storedAdSlotMetadata,this.JSC$13448_storedAdLayoutMetadata,this.adSlotMetadata,this.adLayoutMetadata)&&I0(Lm(),this.JSC$13448_storedAdSlotMetadata,this.JSC$13448_storedAdLayoutMetadata)};
_.M.onAdMetadataChanged=function(){this.adLayoutMetadata&&this.adSlotMetadata&&this.JSC$13448_storedAdLayoutMetadata!==this.adLayoutMetadata&&this.JSC$13448_storedAdSlotMetadata!==this.adSlotMetadata&&(this.isAttached&&(this.JSC$13448_storedAdLayoutMetadata!==void 0&&this.JSC$13448_storedAdSlotMetadata!==void 0&&I0(Lm(),this.JSC$13448_storedAdSlotMetadata,this.JSC$13448_storedAdLayoutMetadata),TUQ(Lm(),this.adSlotMetadata,this.adLayoutMetadata)),this.JSC$13448_storedAdLayoutMetadata=this.adLayoutMetadata,
this.JSC$13448_storedAdSlotMetadata=this.adSlotMetadata)};
_.$u.Object.defineProperties(zg.prototype,{adLayoutMetadata:{configurable:!0,enumerable:!0,get:function(){var S;return(S=this.data)==null?void 0:S.adLayoutMetadata}}});
zg.prototype.onAdMetadataChanged=zg.prototype.onAdMetadataChanged;_.x([_.F(_.qH.YtRendererstamperBehavior),_.E("design:type",Object)],zg.prototype,"ytRendererstamperBehavior",void 0);_.x([_.F(_.eL.YtComponentBehavior),_.E("design:type",Object)],zg.prototype,"ytComponentBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],zg.prototype,"data",void 0);_.x([_.e("data.adLayoutMetadata"),_.E("design:type",Object),_.E("design:paramtypes",[])],zg.prototype,"adLayoutMetadata",null);
_.x([_.g(),_.E("design:type",Object)],zg.prototype,"adSlotMetadata",void 0);_.x([_.T4("adLayoutMetadata","adSlotMetadata"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],zg.prototype,"onAdMetadataChanged",null);zg=_.x([_.f({is:"ytd-page-top-ad-layout-renderer",disableElementRegistration:!0})],zg);
_.C(zg,"ytd-page-top-ad-layout-renderer",function(){if(rbt!==void 0)return rbt;var S=document.createElement("template");_.h(S,'\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');S.content.insertBefore(_.t().content.cloneNode(!0),S.content.firstChild);return rbt=
S},{mode:_.UW("kevlar_poly_si_batch_j070")?1:2});var ZVq;var QF=function(){var S=_.w.apply(this,arguments)||this;S.noBottomMargin=!1;S.overlayDensity=0;S.typographyBump=!1;return S};
_.r(QF,_.w);_.M=QF.prototype;
_.M.configureRendererStamper=function(){return{"data.fulfillmentContent.fulfilledLayout":{id:"fulfilled-layout",mapping:{inFeedAdLayoutRenderer:{component:"ytd-in-feed-ad-layout-renderer",properties:{adSlotMetadata:"[[data.adSlotMetadata]]",noBottomMargin:"[[noBottomMargin]]",typographyBump:"[[typographyBump]]"}},pageTopAdLayoutRenderer:{component:"ytd-page-top-ad-layout-renderer",properties:{adSlotMetadata:"[[data.adSlotMetadata]]"}},sequenceItemInPlayerAdLayoutRenderer:{component:"ytd-in-feed-ad-layout-renderer",properties:{adSlotMetadata:"[[data.adSlotMetadata]]",
noBottomMargin:"[[noBottomMargin]]",overlayDensity:"[[overlayDensity]]"}}}}}};
_.M.ready=function(){var S=this;YAw(function(){S.isAttached&&S.adSlotMetadata&&V2t(Lm(),S.adSlotMetadata)})};
_.M.attached=function(){if(this.adSlotMetadata){var S;if(this.adSlotMetadata===((S=this.data)==null?void 0:S.adSlotMetadata))dqc(Lm(),this.adSlotMetadata);else{var p;_.eP(Error("Jh`"+this.adSlotMetadata+"`"+((p=this.data)==null?void 0:p.adSlotMetadata)))}}};
_.M.detached=function(){this.adSlotMetadata&&V2t(Lm(),this.adSlotMetadata)};
_.M.onTypographyBumpChanged=function(){this.inFeedAdLayoutRenderer&&(this.inFeedAdLayoutRenderer.typographyBump=this.typographyBump)};
_.M.onAdSlotMetadataChanged=function(){this.data&&this.data.adSlotMetadata&&(this.isAttached&&this.adSlotMetadata!==this.data.adSlotMetadata&&(this.adSlotMetadata!==void 0&&V2t(Lm(),this.adSlotMetadata),dqc(Lm(),this.data.adSlotMetadata)),this.adSlotMetadata=this.data.adSlotMetadata)};
_.$u.Object.defineProperties(QF.prototype,{layout:{configurable:!0,enumerable:!0,get:function(){var S,p,U=_.b((S=this.data)==null?void 0:(p=S.fulfillmentContent)==null?void 0:p.fulfilledLayout,_.L6e),Y;return(S=(Y=_.b(U==null?void 0:U.renderingContent,Ypl))==null?void 0:Y.layout)?S.toLowerCase().replace(/_/g,"-"):""}}});
QF.prototype.onAdSlotMetadataChanged=QF.prototype.onAdSlotMetadataChanged;QF.prototype.onTypographyBumpChanged=QF.prototype.onTypographyBumpChanged;_.x([_.F(_.qH.YtRendererstamperBehavior),_.E("design:type",Object)],QF.prototype,"ytRendererstamperBehavior",void 0);_.x([_.F(_.eL.YtComponentBehavior),_.E("design:type",Object)],QF.prototype,"ytComponentBehavior",void 0);_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],QF.prototype,"rendererBehavior",void 0);
_.x([_.g(),_.E("design:type",Object)],QF.prototype,"data",void 0);_.x([_.g(),_.E("design:type",Object)],QF.prototype,"noBottomMargin",void 0);_.x([_.g(),_.E("design:type",Object)],QF.prototype,"overlayDensity",void 0);_.x([_.g(),_.E("design:type",Object)],QF.prototype,"typographyBump",void 0);_.x([_.O2("ytd-in-feed-ad-layout-renderer"),_.E("design:type",HTMLElement)],QF.prototype,"inFeedAdLayoutRenderer",void 0);
_.x([_.g({reflectToAttribute:!0}),_.e("data"),_.E("design:type",String),_.E("design:paramtypes",[])],QF.prototype,"layout",null);_.x([_.T4("typographyBump"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],QF.prototype,"onTypographyBumpChanged",null);_.x([_.T4("data.adSlotMetadata"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],QF.prototype,"onAdSlotMetadataChanged",null);
QF=_.x([_.f({is:"ytd-ad-slot-renderer",disableElementRegistration:!0})],QF);
_.C(QF,"ytd-ad-slot-renderer",function(){if(ZVq!==void 0)return ZVq;var S=document.createElement("template");_.h(S,'\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');S.content.insertBefore(_.t().content.cloneNode(!0),S.content.firstChild);return ZVq=S},{mode:_.UW("kevlar_poly_si_batch_j077")?
1:2});var sNw;var nm=function(){return _.w.apply(this,arguments)||this};
_.r(nm,_.w);_.M=nm.prototype;_.M.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"}}}};
_.M.onTap=function(){_.y("enable_handle_watch_endpoint_click_for_vdc")||this.data&&this.data.navigationEndpoint&&this.data.adPlaybackContextParams&&I7R(this.data.navigationEndpoint,this.data.adPlaybackContextParams)};
_.M.onThumbnailContainerClick=function(S){this.onClick(S)};
_.M.onClick=function(S){if(_.y("enable_handle_watch_endpoint_click_for_vdc")){var p,U=(p=this.data)==null?void 0:p.navigationEndpoint;U&&_.b(U,_.E$)&&(this.ytSparklesClickLocationBehavior.handleClick(U,S,!0),S.stopPropagation())}};
_.M.dataChanged=function(){if(this.data&&this.data.impressionUrls)for(var S=_.d(this.data.impressionUrls),p=S.next();!p.done;p=S.next())p=p.value,JBr(p,KFN(p));this.data&&this.data.activeView&&this.ytdActiveViewBehavior.enableActiveViewMeasurement(this.data.activeView,17)};
_.M.attached=function(){var S=this;_.y("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&S.ytdActiveViewBehavior.stopActiveViewMeasurement()})};
_.M.detached=function(){_.y("stop_av_measurement_on_detach")&&this.ytdActiveViewBehavior.stopActiveViewMeasurement()};
_.$u.Object.defineProperties(nm.prototype,{watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.y("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.y("kevlar_watch_feed_big_thumbs")?"9999":"168"}}});
nm.prototype.dataChanged=nm.prototype.dataChanged;nm.prototype.onTap=nm.prototype.onTap;_.x([_.F(_.qH.YtRendererstamperBehavior),_.E("design:type",Object)],nm.prototype,"ytRendererstamperBehavior",void 0);_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],nm.prototype,"ytRendererBehavior",void 0);_.x([_.F(Rk),_.E("design:type",Object)],nm.prototype,"ytdActiveViewBehavior",void 0);_.x([_.F(_.Xh),_.E("design:type",Object)],nm.prototype,"ytdReduxBehavior",void 0);
_.x([_.F(_.BL.YtSparklesClickLocationBehavior),_.E("design:type",Object)],nm.prototype,"ytSparklesClickLocationBehavior",void 0);_.x([_.g({selector:_.g8}),_.E("design:type",Object)],nm.prototype,"isGridViewEnabled",void 0);_.x([_.e("isGridViewEnabled"),_.g({reflectToAttribute:!0}),_.E("design:type",Boolean),_.E("design:paramtypes",[])],nm.prototype,"watchFeedBigThumbs",null);
_.x([_.e("isGridViewEnabled"),_.g({reflectToAttribute:!0}),_.E("design:type",String),_.E("design:paramtypes",[])],nm.prototype,"thumbnailWidth",null);_.x([_.g(),_.E("design:type",Object)],nm.prototype,"data",void 0);_.x([_.Vd("tap"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],nm.prototype,"onTap",null);_.x([_.z4("data"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],nm.prototype,"dataChanged",null);
nm=_.x([_.f({is:"ytd-compact-promoted-video-renderer",disableElementRegistration:!0})],nm);
_.C(nm,"ytd-compact-promoted-video-renderer",function(){if(sNw!==void 0)return sNw;var S=document.createElement("template");_.h(S,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-compact-promoted-video-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-thumbnail data="[[data]]" width="[[thumbnailWidth]]" 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-link" class="yt-simple-endpoint style-scope ytd-compact-promoted-video-renderer" href$="[[computeHref_(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');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);return sNw=S},{mode:1});var eQH;_.Ry("itemSectionRenderer","searchPyvRenderer","ytd-search-pyv-renderer");var Jg=function(){return _.w.apply(this,arguments)||this};
_.r(Jg,_.w);Jg.prototype.configureRendererStamper=function(){return{"data.ads":{id:"contents",mapping:{adSlotRenderer:"ytd-ad-slot-renderer",promotedVideoRenderer:"ytd-promoted-video-renderer"}}}};
_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],Jg.prototype,"ytRendererBehavior",void 0);_.x([_.F(_.qH.YtRendererstamperBehavior),_.E("design:type",Object)],Jg.prototype,"ytRendererstamperBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],Jg.prototype,"data",void 0);Jg=_.x([_.f({is:"ytd-search-pyv-renderer",disableElementRegistration:!0})],Jg);
_.C(Jg,"ytd-search-pyv-renderer",function(){if(eQH!==void 0)return eQH;var S=document.createElement("template");_.h(S,'\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');S.content.insertBefore(_.t().content.cloneNode(!0),S.content.firstChild);return eQH=S},{mode:1});var gIm;_.Ry("itemSectionRenderer","backstagePostThreadRenderer","ytd-backstage-post-thread-renderer");var yF=function(){var S=_.w.apply(this,arguments)||this;S.roundedContainer=!0;S.JSC$13464_handleOpenPostCommentDialogActionAfterStamp=!1;S.actionMap={"yt-signal-action-open-post-comment-dialog":"handleSignalActionOpenPostCommentDialogAction"};return S};
_.r(yF,_.w);_.M=yF.prototype;
_.M.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}}};
_.M.onStampFinished=function(){this.JSC$13464_handleOpenPostCommentDialogActionAfterStamp&&this.handleSignalActionOpenPostCommentDialogAction()};
_.M.handleSignalActionOpenPostCommentDialogAction=function(){var S=_.tB(this.hostElement).querySelector("ytd-comment-reply-dialog-renderer");S?S.openDialog():this.JSC$13464_handleOpenPostCommentDialogActionAfterStamp=!0};
_.M.onYtCommentModerationPanelEmpty=function(){this.set("data.moderationPanel",{})};
_.M.computeHideBorder=function(){return this.isInEngagementPanel};
_.M.computeIsCompact=function(){return this.isInEngagementPanel};
_.M.computeUsesCompactLockup=function(S){return S==="BACKSTAGE_SURFACE_TYPE_HOME"||S==="BACKSTAGE_SURFACE_TYPE_SEARCH"||S==="BACKSTAGE_SURFACE_TYPE_NEWS_DESTINATION"||S==="BACKSTAGE_SURFACE_TYPE_CHANNEL_HOME"||S==="BACKSTAGE_SURFACE_TYPE_STRUCTURED_DESCRIPTION"||S==="BACKSTAGE_SURFACE_TYPE_REPOST_PREVIEW"};
_.M.computeUsesFullLockup=function(){var S,p=(S=this.data)==null?void 0:S.post,U;S=(U=_.b(p,D_l))==null?void 0:U.surface;var Y;U=(Y=_.b(p,QpQ))==null?void 0:Y.originalPost;var L;if(Y=S||((L=_.b(U,D_l))==null?void 0:L.surface))return!this.computeUsesCompactLockup(Y)&&this.useUpdatedRepostUi;var I;return((I=_.b(p,QpQ))==null?void 0:I.originalPostDeletedMessage)!==void 0&&this.useUpdatedRepostUi};
_.$u.Object.defineProperties(yF.prototype,{isInEngagementPanel:{configurable:!0,enumerable:!0,get:function(){var S,p;return((p=_.b((S=this.data)==null?void 0:S.post,D_l))==null?void 0:p.surface)==="BACKSTAGE_SURFACE_TYPE_ENGAGEMENT_PANEL"}},
useUpdatedRepostUi:{configurable:!0,enumerable:!0,get:function(){var S;return(S=this.data)==null?void 0:S.useUpdatedRepostUi}}});
yF.prototype.onYtCommentModerationPanelEmpty=yF.prototype.onYtCommentModerationPanelEmpty;yF.prototype.onStampFinished=yF.prototype.onStampFinished;_.x([_.F(_.Aj.YtActionHandlerBehavior),_.E("design:type",Object)],yF.prototype,"ytActionHandlerBehavior",void 0);_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],yF.prototype,"ytRendererBehavior",void 0);_.x([_.F(_.qH.YtRendererstamperBehavior),_.E("design:type",Object)],yF.prototype,"ytRendererstamperBehavior",void 0);
_.x([_.g(),_.E("design:type",Object)],yF.prototype,"data",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],yF.prototype,"roundedContainer",void 0);_.x([_.g({computed:"computeHideBorder(data, isInEngagementPanel)",reflectToAttribute:!0}),_.E("design:type",Boolean)],yF.prototype,"hideBorder",void 0);_.x([_.g({computed:"computeIsCompact(data, isInEngagementPanel)",reflectToAttribute:!0}),_.E("design:type",Boolean)],yF.prototype,"isCompact",void 0);
_.x([_.g({computed:"computeUsesFullLockup(data, useUpdatedRepostUi)",reflectToAttribute:!0}),_.E("design:type",Boolean)],yF.prototype,"usesFullLockup",void 0);_.x([_.Vd("yt-rendererstamper-finished"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],yF.prototype,"onStampFinished",null);
_.x([_.Vd("ytd-comment-moderation-panel-empty"),_.E("design:type",Function),_.E("design:paramtypes",[CustomEvent]),_.E("design:returntype")],yF.prototype,"onYtCommentModerationPanelEmpty",null);_.x([_.e("data"),_.E("design:type",Boolean),_.E("design:paramtypes",[])],yF.prototype,"isInEngagementPanel",null);_.x([_.e("data"),_.E("design:type",Boolean),_.E("design:paramtypes",[])],yF.prototype,"useUpdatedRepostUi",null);
yF=_.x([_.f({is:"ytd-backstage-post-thread-renderer",disableElementRegistration:!0})],yF);
_.C(yF,"ytd-backstage-post-thread-renderer",function(){if(gIm!==void 0)return gIm;var S=document.createElement("template");_.h(S,'\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>');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);return gIm=S},{mode:1});var ueP;var Km=function(){var S=_.w.apply(this,arguments)||this;S.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return S};
_.r(Km,_.w);Km.prototype.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
Km.prototype.computeBannerImageUrl=function(){if(this.data!==void 0){var S=this.data.thumbnail.thumbnails;this.isDarkTheme&&(S=this.data.thumbnailDark.thumbnails);this.bannerImageUrl=(S=_.AS(S,24,void 0,"height"))?S:void 0}};
Km.prototype.onDarkModeToggledAction=function(S){this.isDarkTheme=S};
Km.prototype.computeHasText=function(){var S;return!((S=this.data)==null||!S.text)};
_.$u.Object.defineProperties(Km.prototype,{bannerStyle:{configurable:!0,enumerable:!0,get:function(){if(this.bannerImageUrl)return'background-image:url("'+String(_.JA(this.bannerImageUrl))+'");'}}});
Km.prototype.computeHasText=Km.prototype.computeHasText;Km.prototype.computeBannerImageUrl=Km.prototype.computeBannerImageUrl;_.x([_.F(_.Aj.YtActionHandlerBehavior),_.E("design:type",Object)],Km.prototype,"ytActionHandlerBehavior",void 0);_.x([_.F(_.Aj.YtActionHandlerBehavior),_.E("design:type",Object)],Km.prototype,"actionHandlerBehavior",void 0);_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],Km.prototype,"ytRendererBehavior",void 0);
_.x([_.g(),_.E("design:type",Object)],Km.prototype,"data",void 0);_.x([_.g(),_.E("design:type",Boolean)],Km.prototype,"isDarkTheme",void 0);_.x([_.g(),_.E("design:type",String)],Km.prototype,"bannerImageUrl",void 0);_.x([_.g({reflectToAttribute:!0,computed:"computeHasText(data.text)"}),_.E("design:type",Boolean)],Km.prototype,"hasText",void 0);_.x([_.T4("data","isDarkTheme"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],Km.prototype,"computeBannerImageUrl",null);
_.x([_.T4("data.text"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],Km.prototype,"computeHasText",null);_.x([_.e("bannerImageUrl"),_.E("design:type",Object),_.E("design:paramtypes",[])],Km.prototype,"bannerStyle",null);Km=_.x([_.f({is:"ytd-backstage-prefilled-post-dialog-header-renderer",disableElementRegistration:!0})],Km);
_.C(Km,"ytd-backstage-prefilled-post-dialog-header-renderer",function(){if(ueP!==void 0)return ueP;var S=document.createElement("template");_.h(S,'\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');
S.content.insertBefore(_.t().content.cloneNode(!0),S.content.firstChild);return ueP=S},{mode:1});var wfm;var bq=function(){return _.w.apply(this,arguments)||this};
_.r(bq,_.w);_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],bq.prototype,"ytRendererBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],bq.prototype,"data",void 0);bq=_.x([_.f({is:"ytd-backstage-zero-state-renderer",disableElementRegistration:!0})],bq);
_.C(bq,"ytd-backstage-zero-state-renderer",function(){if(wfm!==void 0)return wfm;var S=document.createElement("template");_.h(S,'\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');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);return wfm=S},{mode:1});var lym;var jD=function(){return _.w.apply(this,arguments)||this};
_.r(jD,_.w);_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],jD.prototype,"ytRendererBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],jD.prototype,"data",void 0);_.x([_.g({computed:"computeIcon_(data.icon)"}),_.E("design:type",String)],jD.prototype,"icon",void 0);jD=_.x([_.f({is:"ytd-post-filter-zero-state-renderer",disableElementRegistration:!0})],jD);
_.C(jD,"ytd-post-filter-zero-state-renderer",function(){if(lym!==void 0)return lym;var S=document.createElement("template");_.h(S,'\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');
S.content.insertBefore(_.t().content.cloneNode(!0),S.content.firstChild);return lym=S},{mode:1});var ayw;var fyQ={"data.actionButton":{id:"schedule-button",mapping:{buttonRenderer:"ytd-button-renderer"}}},ry=function(){return _.w.apply(this,arguments)||this};
_.r(ry,_.w);ry.prototype.configureRendererStamper=function(){return fyQ};
_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],ry.prototype,"ytRendererBehavior",void 0);_.x([_.F(_.qH.YtRendererstamperBehavior),_.E("design:type",Object)],ry.prototype,"rendererstamperBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],ry.prototype,"data",void 0);_.x([_.g({computed:"computeIcon_(data.icon)"}),_.E("design:type",String)],ry.prototype,"icon",void 0);ry=_.x([_.f({is:"ytd-post-scheduling-zero-state-renderer",disableElementRegistration:!0})],ry);
_.C(ry,"ytd-post-scheduling-zero-state-renderer",function(){if(ayw!==void 0)return ayw;var S=document.createElement("template");_.h(S,'\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');
S.content.insertBefore(_.t().content.cloneNode(!0),S.content.firstChild);return ayw=S},{mode:1});var C2d;var Gg=function(){var S=_.w.apply(this,arguments)||this;S.actionMap={"yt-update-posts-total-count-action":"handleUpdatePostsTotalCountAction"};return S};
_.r(Gg,_.w);Gg.prototype.onTabsActivate=function(S){this.data&&this.data.tabs&&_.cv(this.hostElement,"yt-navigate",{endpoint:this.data.tabs[S.detail.selected].navigationEndpoint})};
Gg.prototype.shouldShowTotalCount=function(S){return S&&S.totalCount!==void 0};
Gg.prototype.handleUpdatePostsTotalCountAction=function(S){var p=this.get(["data.tabs",1,"totalCount"]),U=this.get("updatePostsTotalCountAction.updateType",S);S=this.get("updatePostsTotalCountAction.number",S);p!==void 0&&U!=="UPDATE_POSTS_TOTAL_COUNT_TYPE_UNKNOWN"&&S&&(U==="UPDATE_POSTS_TOTAL_COUNT_TYPE_ADD"?this.set(["data.tabs",1,"totalCount"],Number(p)+S):U==="UPDATE_POSTS_TOTAL_COUNT_TYPE_REMOVE"&&this.set(["data.tabs",1,"totalCount"],Number(p)-S))};
_.$u.Object.defineProperties(Gg.prototype,{selected:{configurable:!0,enumerable:!0,get:function(){if(this.data&&this.data.tabs)for(var S=0,p=this.data.tabs.length;S<p;S++)if(this.data.tabs[S].selected)return S;return 0}}});
_.x([_.F(_.Aj.YtActionHandlerBehavior),_.E("design:type",Object)],Gg.prototype,"actionHandlerBehavior",void 0);_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],Gg.prototype,"rendererBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],Gg.prototype,"data",void 0);_.x([_.e("data.tabs"),_.E("design:type",Number),_.E("design:paramtypes",[])],Gg.prototype,"selected",null);Gg=_.x([_.f({is:"ytd-post-stream-filter-renderer",disableElementRegistration:!0})],Gg);
_.C(Gg,"ytd-post-stream-filter-renderer",function(){if(C2d!==void 0)return C2d;var S=document.createElement("template");_.h(S,'\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');
S.content.insertBefore(_.t().content.cloneNode(!0),S.content.firstChild);return C2d=S},{mode:1});var xqq;var hg=function(){return _.w.apply(this,arguments)||this};
_.r(hg,_.w);_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],hg.prototype,"kevlarBehaviors",void 0);_.x([_.g(),_.E("design:type",Object)],hg.prototype,"data",void 0);hg=_.x([_.f({is:"ytd-channel-age-gate-renderer",disableElementRegistration:!0})],hg);
_.C(hg,"ytd-channel-age-gate-renderer",function(){if(xqq!==void 0)return xqq;var S=document.createElement("template");_.h(S,'\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');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);return xqq=S},{mode:1});var EIl;_.Ry("sharingItemSection","channelOwnerEmptyStateRenderer","ytd-channel-owner-empty-state-renderer");var R0=function(){var S=_.w.apply(this,arguments)||this;S.data=null;return S};
_.r(R0,_.w);R0.prototype.configureRendererStamper=function(){return{"data.uploadVideoButton":{id:"upload-video-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.$u.Object.defineProperties(R0.prototype,{imageSizePx:{configurable:!0,enumerable:!0,get:function(){var S,p,U;return((S=this.data)==null?0:(p=S.title)==null?0:(U=p.runs)==null?0:U.length)?147:160}}});
_.x([_.F(_.qH.YtRendererstamperBehavior),_.E("design:type",Object)],R0.prototype,"ytRendererstamperBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],R0.prototype,"data",void 0);_.x([_.g({reflectToAttribute:!0}),_.e("data"),_.E("design:type",Number),_.E("design:paramtypes",[])],R0.prototype,"imageSizePx",null);R0=_.x([_.f({is:"ytd-channel-owner-empty-state-renderer",disableElementRegistration:!0})],R0);
_.C(R0,"ytd-channel-owner-empty-state-renderer",function(){if(EIl!==void 0)return EIl;var S=document.createElement("template");_.h(S,'\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');
S.content.insertBefore(_.t().content.cloneNode(!0),S.content.firstChild);return EIl=S},{mode:1});var mqm;var oIt;var FW=function(){var S=_.w.apply(this,arguments)||this;S.boundSubmitSearch=function(){S.submitSearch()};
S.boundClearSearch=function(){S.clearSearch()};
return S};
_.r(FW,_.w);_.M=FW.prototype;_.M.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]]"}}}}}};
_.M.toggleClearButton=function(){this.hideClearButton=Tju||!this.input.value};
_.M.submitOnEnterKeyUp=function(S){S.keyCode!==13||this.input.invalid||this.submit(this.input.value)};
_.M.clearSearch=function(){this.input.value="";this.submit(this.input.value)};
_.M.submitSearch=function(){this.input.invalid||this.submit(this.input.value)};
_.M.submit=function(){_.cv(this.hostElement,"search-query-changed",this.input.value)};
FW.prototype.toggleClearButton=FW.prototype.toggleClearButton;_.x([_.F(_.eL.YtComponentBehavior),_.E("design:type",Object)],FW.prototype,"ytComponentBehavior",void 0);_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],FW.prototype,"ytRendererBehavior",void 0);_.x([_.F(_.qH.YtRendererstamperBehavior),_.E("design:type",Object)],FW.prototype,"ytRendererstamperBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],FW.prototype,"data",void 0);
_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Boolean)],FW.prototype,"hideClearButton",void 0);_.x([_.g(),_.E("design:type",Object)],FW.prototype,"boundSubmitSearch",void 0);_.x([_.g(),_.E("design:type",Object)],FW.prototype,"boundClearSearch",void 0);_.x([_.O2("#input"),_.E("design:type",Object)],FW.prototype,"input",void 0);_.x([_.z4("data"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],FW.prototype,"toggleClearButton",null);
FW=_.x([_.f({is:"ytd-channel-switcher-search-box-renderer",disableElementRegistration:!0})],FW);
_.C(FW,"ytd-channel-switcher-search-box-renderer",function(){if(oIt!==void 0)return oIt;var S=document.createElement("template");_.h(S,'\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');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);return oIt=S},{mode:1});var vIj;var XW=function(){var S=_.w.apply(this,arguments)||this;S.boundSubmit=function(){S.submit()};
return S};
_.r(XW,_.w);_.M=XW.prototype;_.M.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"}}}}};
_.M.ready=function(){var S=this;this.form.addEventListener("submit",function(p){return S.onSubmit(p)})};
_.M.onSubmit=function(S){S.preventDefault();return!1};
_.M.toggleClearButton=function(){this.hideClearButton=Tju||!this.input.value};
_.M.submitOnEnterKeyUp=function(S){S.keyCode===13&&this.submit()};
_.M.submit=function(){var S=this.data.endpoint,p=(0,_.h9.unsafeClone)(S);_.b(p,_.kM)?_.b(p,_.kM).query=this.input.value:_.b(p,_.HB)&&(_.b(p,_.HB).query=this.input.value);var U=_.b(p.commandMetadata,_.NU);(U==null?0:U.url)?(U.url=_.wK(U.url,"query",this.input.value),_.cv(this.hostElement,"yt-navigate",{endpoint:p})):_.b(p,Alw)?(_.b(p,Alw).channelSwitcherQuery=this.input.value,_.tW().resolve(_.cQ).resolveCommand(p,{form:{element:this.hostElement}})):(S=Error("Kh`"+JSON.stringify(S)),_.ZP(S))};
_.M.getUrl=function(S){return this.get("commandMetadata.webCommandMetadata.url",S)};
XW.prototype.toggleClearButton=XW.prototype.toggleClearButton;_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],XW.prototype,"ytRendererBehavior",void 0);_.x([_.F(_.qH.YtRendererstamperBehavior),_.E("design:type",Object)],XW.prototype,"ytRendererstamperBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],XW.prototype,"data",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Boolean)],XW.prototype,"hideClearButton",void 0);
_.x([_.g(),_.E("design:type",Object)],XW.prototype,"boundSubmit",void 0);_.x([_.O2("#form"),_.E("design:type",HTMLFormElement)],XW.prototype,"form",void 0);_.x([_.O2("#input"),_.E("design:type",Object)],XW.prototype,"input",void 0);_.x([_.z4("data"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],XW.prototype,"toggleClearButton",null);XW=_.x([_.f({disableElementRegistration:!0,is:"ytd-search-box-renderer"})],XW);
_.C(XW,"ytd-search-box-renderer",function(){if(vIj!==void 0)return vIj;var S=document.createElement("template");_.h(S,'\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');
S.content.insertBefore(_.t().content.cloneNode(!0),S.content.firstChild);return vIj=S},{mode:2});var Pn=function(){var S=_.w.apply(this,arguments)||this;S.showSearchBox=!0;return S};
_.r(Pn,_.w);Pn.prototype.configureRendererStamper=function(){return{"data.searchBox":{id:"search-box",mapping:{searchBoxRenderer:"ytd-search-box-renderer",channelSwitcherSearchBoxRenderer:"ytd-channel-switcher-search-box-renderer"}}}};
_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],Pn.prototype,"ytRendererBehavior",void 0);_.x([_.F(_.qH.YtRendererstamperBehavior),_.E("design:type",Object)],Pn.prototype,"ytRendererstamperBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],Pn.prototype,"data",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],Pn.prototype,"showSearchBox",void 0);Pn=_.x([_.f({is:"ytd-channel-switcher-header-renderer",disableElementRegistration:!0})],Pn);
_.C(Pn,"ytd-channel-switcher-header-renderer",function(){if(mqm!==void 0)return mqm;var S=document.createElement("template");_.h(S,'\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');
S.content.insertBefore(_.t().content.cloneNode(!0),S.content.firstChild);return mqm=S},{mode:1});var $qQ;var iVm;var ZR=function(){var S=_.w.apply(this,arguments)||this;S.isDisplayed=!0;return S};
_.r(ZR,_.w);_.M=ZR.prototype;_.M.configureRendererStamper=function(){return{"data.button":{id:"button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.M.dataChanged=function(){this.isDisplayed=!0};
_.M.computeType=function(S){return S||"UNKNOWN"};
_.M.onYtServiceRequestCompleted=function(S){S.stopPropagation();this.isDisplayed=!1};
_.M.onClose=function(){this.isDisplayed=!1};
ZR.prototype.onYtServiceRequestCompleted=ZR.prototype.onYtServiceRequestCompleted;ZR.prototype.dataChanged=ZR.prototype.dataChanged;_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],ZR.prototype,"ytRendererBehavior",void 0);_.x([_.F(_.qH.YtRendererstamperBehavior),_.E("design:type",Object)],ZR.prototype,"ytRendererstamperBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],ZR.prototype,"data",void 0);
_.x([_.g({computed:"computeType(data.type)",reflectToAttribute:!0}),_.E("design:type",String)],ZR.prototype,"type",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],ZR.prototype,"isDisplayed",void 0);_.x([_.z4("data"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],ZR.prototype,"dataChanged",null);
_.x([_.Vd("yt-service-request-completed"),_.E("design:type",Function),_.E("design:paramtypes",[CustomEvent]),_.E("design:returntype")],ZR.prototype,"onYtServiceRequestCompleted",null);ZR=_.x([_.f({disableElementRegistration:!0,is:"ytd-alert-with-button-renderer"})],ZR);
_.C(ZR,"ytd-alert-with-button-renderer",function(){if(iVm!==void 0)return iVm;var S=document.createElement("template");_.h(S,'\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');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);return iVm=S},{mode:1});var si=function(){var S=_.w.apply(this,arguments)||this;S.noResult=!1;S.enableAlertBanner=!1;S.dismissedAlertBanner=!1;S.hideCreateChannelButton=!1;S.boundDismissAlertBanner=function(){S.dismissAlertBanner()};
S.actionMap={"yt-update-channel-switcher-page-action":"updateChannelSwitcherAction"};return S};
_.r(si,_.w);_.M=si.prototype;_.M.computeButtonOverride=function(){return{style:"mono",type:"tonal"}};
_.M.onDataChanged=function(){this.setShowSearchBox(this.data)};
_.M.updateChannelSwitcherAction=function(S){var p;S=(p=_.b(S,saq))==null?void 0:p.page;_.b(S,ZTQ)!==void 0&&(this.data=_.b(S,ZTQ))};
_.M.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]]"}}}}}};
_.M.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents"}};
_.M.searchQueryChanged=function(S,p){if(this.data&&this.data.contents&&this.data.contents.length){S=[];var U=[];this.hideCreateChannelButton=this.noResult=!1;for(var Y=document.querySelectorAll("ytd-account-item-renderer"),L=_.d(Y),I=L.next();!I.done;I=L.next())I=I.value,U.push(I),I.style.display="block";this.resetRightBorder(U);if(p){this.hideCreateChannelButton=!0;for(U=1;U<this.data.contents.length;U++)if(I=this.data.contents[U],_.b(I,Nbj)){var V=void 0,W=void 0;L=(V=_.b(I,Nbj))==null?void 0:(W=
V.accountName)==null?void 0:W.simpleText;W=V=void 0;I=(V=_.b(I,Nbj))==null?void 0:(W=V.channelHandle)==null?void 0:W.simpleText;(V=Y[U-1])&&L&&_.OX(L,p)?S.push(V):_.y("enable_handle_search_on_channel_switcher")&&V&&I&&_.OX(I.toString(),p.toString())?S.push(V):V.style.display="none"}S.length===0&&(this.noResult=!0);this.resetRightBorder(S)}}};
_.M.resetRightBorder=function(S){for(var p=0;p<S.length;p++)S[p].style.borderRight=!this.hideCreateChannelButton&&(p+2)%3===0||this.hideCreateChannelButton&&(p+1)%3===0?"none":"1px solid var(--yt-spec-10-percent-layer)"};
_.M.onContinuationItemsUpdated=function(){this.setShowSearchBox(this.data)};
_.M.setShowSearchBox=function(S){if(S&&S.contents&&this.channelSwitcherHeaderRenderer){this.enableAlertBanner=!1;this.channelSwitcherHeaderRenderer.showSearchBox=!0;for(var p=0;p<S.contents.length;p++)_.b(S.contents[p],_.SC)&&(this.enableAlertBanner=!0,this.channelSwitcherHeaderRenderer.showSearchBox=!1);this.dismissedAlertBanner&&(this.enableAlertBanner=!1)}};
_.M.dismissAlertBanner=function(){this.dismissedAlertBanner=!0;this.enableAlertBanner=!1};
_.$u.Object.defineProperties(si.prototype,{isLoading:{configurable:!0,enumerable:!0,get:function(){var S;return!((S=this.data)==null?0:S.contents)}}});
si.prototype.onContinuationItemsUpdated=si.prototype.onContinuationItemsUpdated;si.prototype.searchQueryChanged=si.prototype.searchQueryChanged;si.prototype.onDataChanged=si.prototype.onDataChanged;_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],si.prototype,"ytRendererBehavior",void 0);_.x([_.F(_.qH.YtRendererstamperBehavior),_.E("design:type",Object)],si.prototype,"ytRendererstamperBehavior",void 0);
_.x([_.F(_.Aj.YtActionHandlerBehavior),_.E("design:type",Object)],si.prototype,"actionHandlerBehavior",void 0);_.x([_.F(_.wS),_.E("design:type",Object)],si.prototype,"ytContinuationHandlerBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],si.prototype,"data",void 0);_.x([_.O2("ytd-channel-switcher-header-renderer"),_.E("design:type",Object)],si.prototype,"channelSwitcherHeaderRenderer",void 0);_.x([_.g(),_.E("design:type",Object)],si.prototype,"noResult",void 0);
_.x([_.g(),_.E("design:type",Object)],si.prototype,"enableAlertBanner",void 0);_.x([_.g(),_.E("design:type",Object)],si.prototype,"dismissedAlertBanner",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],si.prototype,"hideCreateChannelButton",void 0);_.x([_.e("data.contents"),_.E("design:type",Boolean),_.E("design:paramtypes",[])],si.prototype,"isLoading",null);_.x([_.g(),_.E("design:type",Object)],si.prototype,"boundDismissAlertBanner",void 0);
_.x([_.g({computed:"computeButtonOverride()"}),_.E("design:type",Object)],si.prototype,"buttonOverride",void 0);_.x([_.T4("data"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],si.prototype,"onDataChanged",null);_.x([_.Vd("search-query-changed"),_.E("design:type",Function),_.E("design:paramtypes",[CustomEvent,String]),_.E("design:returntype")],si.prototype,"searchQueryChanged",null);
_.x([_.Vd("yt-next-continuation-data-updated"),_.E("design:type",Function),_.E("design:paramtypes",[CustomEvent]),_.E("design:returntype")],si.prototype,"onContinuationItemsUpdated",null);si=_.x([_.f({is:"ytd-channel-switcher-page-renderer",disableElementRegistration:!0})],si);
_.C(si,"ytd-channel-switcher-page-renderer",function(){if($qQ!==void 0)return $qQ;var S=document.createElement("template");_.h(S,'\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');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);return $qQ=S},{mode:1});var NUQ;var BUm;var eD=function(){var S=_.w.apply(this,arguments)||this;S.images=[];S.selectedImageIndex=0;return S};
_.r(eD,_.w);_.M=eD.prototype;
_.M.ready=function(){_.Kz(this.thumbnailImagesContainer,"ytb-backstage-multi-image-thumbnail-render-click",this.onThumbnailClick,!1,this);_.Kz(this.JSC$13509_imagePreviewContainer,"ytd-backstage-image-preview-coordinates-update",this.updateImageThumbnails,!1,this);_.Kz(this.JSC$13509_imagePreviewContainer,"ytd-backstage-image-preview-coordinates-save",this.saveImageRepositions,!1,this);_.Kz(this.JSC$13509_imagePreviewContainer,"ytd-backstage-image-preview-coordinates-cancel",this.cancelImageRepositions,
!1,this)};
_.M.onThumbnailClick=function(S){if(S=S.event_.detail)this.selectedImageIndex=this.images.indexOf(S)};
_.M.updateImageThumbnails=function(S){S=Object.assign({},this.images[this.selectedImageIndex],{previewCoordinates:S.event_.detail});this.images.splice(this.selectedImageIndex,1,S);this.images=[].concat(_.jo(this.images))};
_.M.cancelImageRepositions=function(){this.selectedImageIndex=0;_.cv(this.hostElement,"ytd-backstage-image-reposition-cancel")};
_.M.saveImageRepositions=function(){this.selectedImageIndex=0;_.cv(this.hostElement,"ytd-backstage-image-reposition-save",this.images)};
_.$u.Object.defineProperties(eD.prototype,{thumbnailRendererDatas:{configurable:!0,enumerable:!0,get:function(){var S=this;return(this.images||[]).map(function(p,U){return{image:p,selected:U===S.selectedImageIndex}})}},
selectedImageData:{configurable:!0,enumerable:!0,get:function(){return this.images[this.selectedImageIndex]}}});
_.x([_.F(_.qH.YtRendererstamperBehavior),_.E("design:type",Object)],eD.prototype,"ytRendererstamperBehavior",void 0);_.x([_.O2("ytd-backstage-image-preview-renderer"),_.E("design:type",Object)],eD.prototype,"JSC$13509_imagePreviewContainer",void 0);_.x([_.O2(".thumbnail-images-container"),_.E("design:type",HTMLElement)],eD.prototype,"thumbnailImagesContainer",void 0);_.x([_.g(),_.E("design:type",Array)],eD.prototype,"images",void 0);
_.x([_.g(),_.E("design:type",Object)],eD.prototype,"repositionInstructions",void 0);_.x([_.g(),_.E("design:type",Object)],eD.prototype,"selectedImageIndex",void 0);_.x([_.e("images","selectedImageIndex"),_.E("design:type",Array),_.E("design:paramtypes",[])],eD.prototype,"thumbnailRendererDatas",null);_.x([_.e("images","selectedImageIndex"),_.E("design:type",Object),_.E("design:paramtypes",[])],eD.prototype,"selectedImageData",null);
eD=_.x([_.f({is:"ytd-backstage-multi-image-reposition-renderer",disableElementRegistration:!0})],eD);
_.C(eD,"ytd-backstage-multi-image-reposition-renderer",function(){if(BUm!==void 0)return BUm;var S=document.createElement("template");_.h(S,'\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');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);return BUm=S},{mode:1});var gy=function(S,p){_.OD.call(this);this.uploadUrl=S;this.channelId=p;this.imagesUploadData=[]};
_.r(gy,_.OD);gy.prototype.getAllUploadStatuses=function(){var S=this,p,U,Y;return _.T(function(L){if(L.nextAddress==1)return _.k(L,qqw(S),2);p=L.yieldResult;U=p.get("succeed");Y=p.get("failed");return L.return(U.concat(Y))})};
var t2I=function(S){var p,U;return _.T(function(Y){if(Y.nextAddress==1)return _.k(Y,qqw(S),2);p=Y.yieldResult;U=p.get("failed");U.length>0&&AbE(S,U);return Y.return(S.getAllUploadStatuses())})},qqw=function(S){var p,U,Y,L,I,V,W;
return _.T(function(O){if(O.nextAddress==1)return p=new Map,_.k(O,Promise.allSettled(S.imagesUploadData.map(function(D){return D.uploadPromise})),2);
U=O.yieldResult;Y=[];L=_.d(U);for(I=L.next();!I.done;I=L.next())V=I.value,V.status==="fulfilled"&&Y.push(V.value);W=S.imagesUploadData.map(function(D){return D.image}).filter(function(D){return Y.every(function(z){return z.id!==D.id})});
p.set("succeed",Y);p.set("failed",W);return O.return(p)})},AbE=function(S,p){p=_.d(p);
for(var U=p.next();!U.done;U=p.next()){var Y=S;U=U.value;cbw(Y,U.id)>=0&&Y.cancel(U.id);var L=new Sut(U),I=_.wId(Y.uploadUrl,{"X-YouTube-ChannelId":Y.channelId},U.imageBlob);L.transfer=I;L.uploadPromise=puH(I,U);Y.imagesUploadData.push(L);I.run()}};
gy.prototype.cancel=function(S){var p=cbw(this,S);p!==-1&&((p=this.imagesUploadData[p].transfer)&&p.cancel(),this.imagesUploadData=this.imagesUploadData.filter(function(U){return U.image.id!==S}))};
var cbw=function(S,p){return S.imagesUploadData.findIndex(function(U){return U.image.id===p})},puH=function(S,p){return new Promise(function(U,Y){S.listen("l",function(){var L=S.getResponseText();
L?(L=JSON.parse(L).encryptedBlobId,p.encryptedBlobId=L,U(p)):Y("upload failed")});
S.listen("n",function(){Y("upload failed")})})},Sut=function(S){this.image=S};var eQw=function(S,p,U,Y,L){this.id=S;this.imageBlob=p;this.localImageSrc=U;this.naturalWidth=Y;this.naturalHeight=L;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 UeH=[".jpeg",".jpg",".png"],uq=function(){var S=_.w.apply(this,arguments)||this;S.showImagesPreview=!1;S.pollOptions=[];S.errorMessage="";S.optionPlaceholderText="";S.optionDefaultText="";S.JSC$13520_imageId=0;S.maxFileSizeMb=0;S.maxAspectRatio=0;S.invalidFileSizeError="";S.invalidAspectRatioError="";S.invalidFileTypeError="";S.imageSelector=new Mc(null,"single_file",UeH);return S};
_.r(uq,_.w);_.M=uq.prototype;_.M.ready=function(){_.Kz(this.imageSelector,"j",this.onImageSelect,!1,this);_.Kz(this.imageRepositionContainer,"ytd-backstage-image-reposition-save",this.saveImageRepositions,!1,this);_.Kz(this.imageRepositionContainer,"ytd-backstage-image-reposition-cancel",this.cancelImageRepositions,!1,this)};
_.M.dataChanged=function(){var S,p,U=_.b((S=this.data)==null?void 0:(p=S.cellTemplate)==null?void 0:p.onEmptyCellTap,ZXI);if(U&&U.uploadUrl&&U.channelId){var Y;this.maxFileSizeMb=((Y=U.imageValidationInfo)==null?void 0:Y.maxFileSizeMb)||0;var L;this.maxAspectRatio=((L=U.imageValidationInfo)==null?void 0:L.allowedMaxAspectRatio)||0;var I;this.invalidFileSizeError=this.getSimpleString((I=this.data)==null?void 0:I.invalidFileSizeError);var V;this.invalidAspectRatioError=this.getSimpleString((V=this.data)==
null?void 0:V.invalidAspectRatioError);var W;this.invalidFileTypeError=this.getSimpleString((W=this.data)==null?void 0:W.invalidFileTypeError);this.uploadManager=new gy(U.uploadUrl,U.channelId)}};
_.M.onEditorInfoChange=function(){this.optionPlaceholderText=_.mA(this.editorInfo.optionPlaceholderText);this.optionDefaultText=_.mA(this.editorInfo.optionDefaultText);this.pollOptions=this.createPollOptions(this.editorInfo)};
_.M.observeAddImageError=function(){this.errorMessage!==""&&_.cv(this.hostElement,"yt-backstage-add-image-error",this.errorMessage)};
_.M.onPollOptionsChange=function(){for(var S=!1,p=[],U=0;U<this.pollOptions.length;U++){var Y=this.hasCustomOptionText?this.optionPlaceholderText:this.optionDefaultText+" "+(U+1);this.pollOptions[U].placeholderText!==Y?(S=!0,p.push(Object.assign({},this.pollOptions[U],{placeholderText:Y}))):p.push(this.pollOptions[U])}S&&(this.pollOptions=p);this.isValid()?_.cv(this.hostElement,"yt-commentbox-post-enable"):_.cv(this.hostElement,"yt-commentbox-post-disable")};
_.M.createPollOptions=function(S){var p=[],U;S=(U=S==null?void 0:S.minPollOptions)!=null?U:0;for(U=0;U<S;U++)p.push(this.createPollOption());return p};
_.M.onImageSelect=function(S){var p=this,U,Y,L,I,V,W;return _.T(function(O){if(O.nextAddress==1){if(p.selectedImageIndex===void 0)return O.jumpTo(0);U=S.files[0];p.errorMessage="";Y=p.validateImage(U);if(Y!=="")return p.errorMessage=Y,O.return();L=new fQ(p.maxAspectRatio,!1,!0);return _.k(O,L.transform(U),3)}if(O.nextAddress!=4)return I=O.yieldResult,I.transformedData?I.invalidAspectRatio?(p.errorMessage=p.invalidAspectRatioError,O.return()):_.k(O,gIR(p.JSC$13520_imageId,S.files[0],I.transformedData),
4):(p.errorMessage=p.invalidFileTypeError,O.return());V=O.yieldResult;p.JSC$13520_imageId++;AbE(p.uploadManager,[V]);W=Object.assign({},p.pollOptions[p.selectedImageIndex],{image:V});p.pollOptions.splice(p.selectedImageIndex,1,W);p.refreshPollOptions();_.cv(p.hostElement,"yt-backstage-poll-image-select");_.OV(O)})};
_.M.validateImage=function(S){return S.size>1048576*this.maxFileSizeMb?this.invalidFileSizeError:""};
_.M.refreshPollOptions=function(){this.pollOptions=[].concat(_.jo(this.pollOptions))};
_.M.onAddPollOption=function(){this.isAllowedToAddOption&&(this.pollOptions=[].concat(_.jo(this.pollOptions),[this.createPollOption()]))};
_.M.onRemovePollOption=function(S){var p=this.pollOptions[S.model.index];p&&p.image&&this.uploadManager.cancel(p.image.id);this.pollOptions.splice(S.model.index,1);this.refreshPollOptions();this.pollOptions.length===0&&_.cv(this.hostElement,"yt-image-poll-attachment-dismiss")};
_.M.onTextInput=function(){this.refreshPollOptions()};
_.M.onImageButtonClick=function(S){this.selectedImageIndex=S.model.index;this.imageSelector.click()};
_.M.onRepositionImages=function(){this.hasImages&&(this.showImagesPreview=!0,this.refreshPollOptions())};
_.M.cancelImageRepositions=function(){this.showImagesPreview=!1;this.refreshPollOptions()};
_.M.saveImageRepositions=function(S){S=S.event_.detail;for(var p=0,U=[],Y=_.d(this.pollOptions),L=Y.next();!L.done;L=Y.next())L=L.value,L.image!==void 0?(L=Object.assign({},L,{image:S[p]}),U.push(L),p++):U.push(L);this.showImagesPreview=!1;this.pollOptions=[].concat(_.jo(U))};
_.M.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 S=0,p=_.d(this.pollOptions),U=p.next();!U.done;U=p.next())if(U=U.value,U.optionText.trim()!==""||U.image!==void 0){if(!U.image||this.hasCustomOptionText&&U.optionText.trim().length<Number(this.editorInfo.minPollOptionChars))return!1;S++}return S>=Number(this.editorInfo.minPollOptions)};
_.M.getAllUploadStatuses=function(){var S=this,p,U,Y,L;return _.T(function(I){if(I.nextAddress==1)return _.k(I,S.uploadManager.getAllUploadStatuses(),2);p=I.yieldResult;U=_.d(p);for(Y=U.next();!Y.done;Y=U.next())if(L=Y.value,L.encryptedBlobId===void 0)return I.return(t2I(S.uploadManager));return I.return(p)})};
_.M.getPostCreateOptions=function(){for(var S=[],p=_.d(this.pollOptions),U=p.next();!U.done;U=p.next())U=U.value,U.image!==void 0&&S.push({text:this.hasCustomOptionText?U.optionText:U.placeholderText,image:U.image});return S};
_.M.resetPollOptions=function(){this.pollOptions=this.createPollOptions(this.editorInfo);this.showImagesPreview=!1};
_.M.createButtonRenderer=function(S,p){return{style:"STYLE_SUGGESTIVE",size:"SIZE_SMALL",text:S,accessibilityData:{accessibilityData:{label:this.getSimpleString(S)}},isDisabled:p}};
_.M.createPollOption=function(){return{optionText:"",placeholderText:""}};
_.M.computeThumbnailRendererData=function(S){return S?{image:S,selected:!1}:void 0};
_.M.getSimpleString=function(S){return _.mA(S)};
_.M.updateOptionTextFromBinding=function(S){if(S.target){var p=Array.from(_.tB(this.hostElement).querySelectorAll("tp-yt-iron-autogrow-textarea.poll-option-input-text")).indexOf(S.target);if(p>=0){var U;this.pollOptions[p].optionText=(U=S.detail.value)!=null?U:""}}};
_.$u.Object.defineProperties(uq.prototype,{isAllowedToAddOption:{configurable:!0,enumerable:!0,get:function(){var S,p;return this.pollOptions.length<((p=(S=this.editorInfo)==null?void 0:S.maxPollOptions)!=null?p:0)}},
hasImages:{configurable:!0,enumerable:!0,get:function(){return this.pollOptions.some(function(S){return S.image})}},
imagesToReposition:{configurable:!0,enumerable:!0,get:function(){return this.pollOptions.filter(function(S){return S.image}).map(function(S){return S.image})}},
hasCustomOptionText:{configurable:!0,enumerable:!0,get:function(){return this.pollOptions.some(function(S){return S.optionText.trim()})}},
addOptionButton:{configurable:!0,enumerable:!0,get:function(){var S,p=(S=this.data)==null?void 0:S.addOptionButtonText;return p?this.createButtonRenderer(p,!this.isAllowedToAddOption):void 0}},
repositionImagesButton:{configurable:!0,enumerable:!0,get:function(){var S,p=(S=this.data)==null?void 0:S.repositionImagesButtonLabel;return p?this.createButtonRenderer(p,!this.hasImages):void 0}}});
uq.prototype.onPollOptionsChange=uq.prototype.onPollOptionsChange;uq.prototype.observeAddImageError=uq.prototype.observeAddImageError;uq.prototype.onEditorInfoChange=uq.prototype.onEditorInfoChange;uq.prototype.dataChanged=uq.prototype.dataChanged;_.x([_.F(_.qH.YtRendererstamperBehavior),_.E("design:type",Object)],uq.prototype,"ytRendererstamperBehavior",void 0);_.x([_.O2("ytd-backstage-multi-image-reposition-renderer"),_.E("design:type",Object)],uq.prototype,"imageRepositionContainer",void 0);
_.x([_.g(),_.E("design:type",Object)],uq.prototype,"data",void 0);_.x([_.g(),_.E("design:type",Object)],uq.prototype,"editorInfo",void 0);_.x([_.g(),_.E("design:type",gy)],uq.prototype,"uploadManager",void 0);_.x([_.g(),_.E("design:type",Object)],uq.prototype,"showImagesPreview",void 0);_.x([_.g(),_.E("design:type",Array)],uq.prototype,"pollOptions",void 0);_.x([_.g(),_.E("design:type",Object)],uq.prototype,"errorMessage",void 0);
_.x([_.z4("data"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],uq.prototype,"dataChanged",null);_.x([_.z4("editorInfo"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],uq.prototype,"onEditorInfoChange",null);_.x([_.T4("errorMessage"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],uq.prototype,"observeAddImageError",null);
_.x([_.z4("pollOptions"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],uq.prototype,"onPollOptionsChange",null);_.x([_.e("pollOptions","editorInfo"),_.E("design:type",Object),_.E("design:paramtypes",[])],uq.prototype,"isAllowedToAddOption",null);_.x([_.e("pollOptions"),_.E("design:type",Object),_.E("design:paramtypes",[])],uq.prototype,"hasImages",null);
_.x([_.e("pollOptions"),_.E("design:type",Object),_.E("design:paramtypes",[])],uq.prototype,"imagesToReposition",null);_.x([_.e("pollOptions"),_.E("design:type",Object),_.E("design:paramtypes",[])],uq.prototype,"hasCustomOptionText",null);_.x([_.e("data","isAllowedToAddOption"),_.E("design:type",Object),_.E("design:paramtypes",[])],uq.prototype,"addOptionButton",null);_.x([_.e("data","hasImages"),_.E("design:type",Object),_.E("design:paramtypes",[])],uq.prototype,"repositionImagesButton",null);
uq=_.x([_.f({is:"ytd-backstage-image-poll-editor-renderer",disableElementRegistration:!0})],uq);
_.C(uq,"ytd-backstage-image-poll-editor-renderer",function(){if(NUQ!==void 0)return NUQ;var S=document.createElement("template");_.h(S,'\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');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);return NUQ=S},{mode:2});var YuI={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 LRm;var wy=function(){var S=_.w.apply(this,arguments)||this;S.a11yConfig=YuI;S.imageDisplayOffsetTop=0;S.imageDisplayOffsetLeft=0;S.pickerDisplayOffsetTop=0;S.pickerDisplayOffsetLeft=0;S.showPreviewContainer=!0;S.startPicker=!1;S.repositionOptional=!1;S.editOnlyMode=!1;S.savedImageDisplayOffsetTop=0;S.savedImageDisplayOffsetLeft=0;return S};
_.r(wy,_.w);_.M=wy.prototype;_.M.created=function(){_.ei.requestAvailability()};
_.M.ready=function(){};
_.M.onArrowKeysDown=function(S){if(!this.showPreviewContainer&&this.pickerSize&&this.imageHeight&&this.imageWidth&&this.displayScale){S.detail.keyboardEvent.preventDefault();var p=0,U=0,Y="";switch(S.detail.keyboardEvent.key){case "ArrowUp":ueu(this.imageDisplayOffsetTop+this.imageHeight,this.pickerDisplayOffsetTop+this.pickerSize)?Y=this.a11yConfig.reachBottomOfImage:p=this.imageHeight*.05*-1;break;case "ArrowDown":ueu(this.pickerDisplayOffsetTop,this.imageDisplayOffsetTop)?Y=this.a11yConfig.reachTopOfImage:
p=this.imageHeight*.05;break;case "ArrowLeft":ueu(this.pickerDisplayOffsetLeft+this.pickerSize,this.imageDisplayOffsetLeft+this.imageWidth)?Y=this.a11yConfig.reachRightOfImage:U=this.imageWidth*.05*-1;break;case "ArrowRight":ueu(this.pickerDisplayOffsetLeft,this.imageDisplayOffsetLeft)?Y=this.a11yConfig.reachLeftOfImage:U=this.imageWidth*.05}Y&&_.Oh(Y)&&_.cv(this.hostElement,"iron-announce",{text:_.Oh(Y)});if(U||p)this.imageHeight>this.imageWidth?(this.imageDisplayOffsetTop=Math.min(this.pickerDisplayOffsetTop,
Math.max(this.pickerDisplayOffsetTop+this.pickerSize-this.imageHeight,this.imageDisplayOffsetTop+p)),S=this.getPreviewPosition(this.pickerDisplayOffsetTop,this.pickerSize,this.imageDisplayOffsetTop,this.imageHeight),S=_.Oh(this.a11yConfig.imageVerticalPosition,{x_percent:""+S,y_percent:""+(100-S)})):(this.imageDisplayOffsetLeft=Math.min(this.pickerDisplayOffsetLeft,Math.max(this.pickerDisplayOffsetLeft+this.pickerSize-this.imageWidth,this.imageDisplayOffsetLeft+U)),S=this.getPreviewPosition(this.pickerDisplayOffsetLeft,
this.pickerSize,this.imageDisplayOffsetLeft,this.imageWidth),S=_.Oh(this.a11yConfig.imageHorizontalPosition,{x_percent:""+S,y_percent:""+(100-S)})),S&&_.cv(this.hostElement,"iron-announce",{text:S})}};
_.M.getPreviewPosition=function(S,p,U,Y){return Math.round(100*(S+p*.5-U)/Y)};
_.M.calculateDisplayPosition=function(){var S=this.imageData.naturalWidth,p=this.imageData.naturalHeight;this.displayScale=Math.max(200/S,200/p);this.pickerDisplayOffsetTop=this.pickerDisplayOffsetLeft=50;var U=S*this.displayScale*this.imageData.previewCoordinates.left,Y=p*this.displayScale*this.imageData.previewCoordinates.top;this.imageDisplayOffsetLeft=p>S?this.pickerDisplayOffsetLeft:this.pickerDisplayOffsetLeft-U;this.savedImageDisplayOffsetTop=this.imageDisplayOffsetTop=S>p?this.pickerDisplayOffsetTop:
this.pickerDisplayOffsetTop-Y;this.savedImageDisplayOffsetLeft=this.imageDisplayOffsetLeft;this.imageWidth=S*this.displayScale;this.imageHeight=p*this.displayScale};
_.M.onImageChange=function(){this.imageData&&(this.editOnlyMode||(this.showPreviewContainer=!0),this.calculateDisplayPosition())};
_.M.onEditOnlyModeUpdate=function(){this.showPreviewContainer=!this.editOnlyMode};
_.M.getSignedPosition=function(S,p,U){return p==="X"&&_.g7("HTML_DIR")==="rtl"?U==="-"?S+"px":S*-1+"px":U==="-"?S*-1+"px":S+"px"};
_.M.pickerMove=function(S){if(this.startPicker&&!this.showPreviewContainer&&this.pickerSize&&this.pickerOffsetX!==void 0&&this.pickerOffsetY!==void 0&&this.imageHeight&&this.imageWidth&&this.displayScale){var p=this.pickerOffsetX-S.clientX,U=this.pickerOffsetY-S.clientY;this.pickerOffsetX=S.clientX;this.pickerOffsetY=S.clientY;this.imageHeight>this.imageWidth?this.imageDisplayOffsetTop=Math.min(this.pickerDisplayOffsetTop,Math.max(this.pickerDisplayOffsetTop+this.pickerSize-this.imageHeight,this.imageDisplayOffsetTop-
U)):this.imageDisplayOffsetLeft=Math.min(this.pickerDisplayOffsetLeft,Math.max(this.pickerDisplayOffsetLeft+this.pickerSize-this.imageWidth,this.imageDisplayOffsetLeft-p))}};
_.M.pickerMoveStart=function(S){this.startPicker=!0;this.pickerOffsetX=S.clientX;this.pickerOffsetY=S.clientY};
_.M.pickerMoveComplete=function(){this.startPicker=!1;this.pickerOffsetY=this.pickerOffsetX=void 0;var S=this.generateCropPreview();S&&_.cv(this.hostElement,"ytd-backstage-image-preview-coordinates-update",S)};
_.M.cancelReposition=function(){this.editOnlyMode||(this.imageDisplayOffsetTop=this.savedImageDisplayOffsetTop,this.imageDisplayOffsetLeft=this.savedImageDisplayOffsetLeft,this.startPicker=!1,this.showPreviewContainer=!0);_.cv(this.hostElement,"ytd-backstage-image-preview-coordinates-cancel")};
_.M.deleteImage=function(){_.cv(this.hostElement,"ytd-backstage-image-preview-delete")};
_.M.editCropCoordinates=function(){this.showPreviewContainer=!1};
_.M.saveCropCoordinates=function(){this.editOnlyMode||(this.savedImageDisplayOffsetTop=this.imageDisplayOffsetTop,this.savedImageDisplayOffsetLeft=this.imageDisplayOffsetLeft,this.startPicker=!1,this.showPreviewContainer=!0);var S=this.generateCropPreview();S&&_.cv(this.hostElement,"ytd-backstage-image-preview-coordinates-save",S)};
_.M.getPreviewOffset=function(S,p,U){return p&&S?(U==="X"&&_.g7("HTML_DIR")==="rtl"?300/p*S:300/p*S*-1)+"px":"0px"};
_.M.getSimpleText=function(S){return S?_.mA(S):""};
_.M.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}};
_.$u.Object.defineProperties(wy.prototype,{altLabelForImage:{configurable:!0,enumerable:!0,get:function(){if(!this.imageWidth||!this.imageHeight||!this.pickerSize)return"";if(this.imageHeight>this.imageWidth){var S=this.getPreviewPosition(this.pickerDisplayOffsetTop,this.pickerSize,this.imageDisplayOffsetTop,this.imageHeight);return _.Oh(this.a11yConfig.imageVerticalPosition,{x_percent:""+S,y_percent:""+(100-S)})+"\n"+_.Oh(this.a11yConfig.verticalRepositionInstruction)}S=this.getPreviewPosition(this.pickerDisplayOffsetLeft,
this.pickerSize,this.imageDisplayOffsetLeft,this.imageWidth);return _.Oh(this.a11yConfig.imageHorizontalPosition,{x_percent:""+S,y_percent:""+(100-S)})+"\n"+_.Oh(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 S,p,U=(S=this.instruction)==null?void 0:(p=S.previewInstruction)==null?void 0:p.editButtonLabel;return U?{size:"SIZE_SMALL",style:"STYLE_SUGGESTIVE",text:U,accessibilityData:{accessibilityData:{label:this.getSimpleText(U)}}}:void 0}},
saveButton:{configurable:!0,enumerable:!0,get:function(){var S,p,U,Y,L=this.editOnlyMode?(S=this.instruction)==null?void 0:(p=S.editInstruction)==null?void 0:p.saveImagesButtonLabel:(U=this.instruction)==null?void 0:(Y=U.editInstruction)==null?void 0:Y.saveButtonLabel;return L?{style:"STYLE_SUGGESTIVE",size:"SIZE_SMALL",text:L,accessibilityData:{accessibilityData:{label:this.getSimpleText(L)}}}:void 0}},
deleteButton:{configurable:!0,enumerable:!0,get:function(){var S,p,U=(S=this.instruction)==null?void 0:(p=S.previewInstruction)==null?void 0:p.deleteButtonLabel;return U?{size:"SIZE_SMALL",text:U,accessibilityData:{accessibilityData:{label:this.getSimpleText(U)}}}:void 0}},
cancelButton:{configurable:!0,enumerable:!0,get:function(){var S,p,U=(S=this.instruction)==null?void 0:(p=S.editInstruction)==null?void 0:p.cancelButtonLabel;S=this.editOnlyMode?"STYLE_BLUE_TEXT":"STYLE_TEXT";return U?{style:S,size:"SIZE_SMALL",text:U,accessibilityData:{accessibilityData:{label:this.getSimpleText(U)}}}: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"}}});
wy.prototype.onEditOnlyModeUpdate=wy.prototype.onEditOnlyModeUpdate;wy.prototype.onImageChange=wy.prototype.onImageChange;_.x([_.g(),_.E("design:type",eQw)],wy.prototype,"imageData",void 0);_.x([_.g(),_.E("design:type",Object)],wy.prototype,"instruction",void 0);_.x([_.g(),_.E("design:type",Object)],wy.prototype,"a11yConfig",void 0);_.x([_.g(),_.E("design:type",Number)],wy.prototype,"imageWidth",void 0);_.x([_.g(),_.E("design:type",Number)],wy.prototype,"imageHeight",void 0);
_.x([_.g(),_.E("design:type",Number)],wy.prototype,"displayScale",void 0);_.x([_.g(),_.E("design:type",Object)],wy.prototype,"imageDisplayOffsetTop",void 0);_.x([_.g(),_.E("design:type",Object)],wy.prototype,"imageDisplayOffsetLeft",void 0);_.x([_.g(),_.E("design:type",Object)],wy.prototype,"pickerDisplayOffsetTop",void 0);_.x([_.g(),_.E("design:type",Object)],wy.prototype,"pickerDisplayOffsetLeft",void 0);_.x([_.g(),_.E("design:type",Object)],wy.prototype,"showPreviewContainer",void 0);
_.x([_.g(),_.E("design:type",Object)],wy.prototype,"startPicker",void 0);_.x([_.g(),_.E("design:type",Number)],wy.prototype,"pickerOffsetX",void 0);_.x([_.g(),_.E("design:type",Number)],wy.prototype,"pickerOffsetY",void 0);_.x([_.g(),_.E("design:type",Object)],wy.prototype,"repositionOptional",void 0);_.x([_.g(),_.E("design:type",Object)],wy.prototype,"editOnlyMode",void 0);_.x([_.O2("#picker-container"),_.E("design:type",HTMLElement)],wy.prototype,"JSC$13533_pickerContainer",void 0);
_.x([_.O2("#picker"),_.E("design:type",HTMLElement)],wy.prototype,"picker",void 0);_.x([_.O2("#preview-clipper"),_.E("design:type",HTMLElement)],wy.prototype,"previewClipper",void 0);_.x([_.O2("#image-in-picker-background"),_.E("design:type",HTMLImageElement)],wy.prototype,"JSC$13533_imageInBackground",void 0);_.x([_.O2("#image-in-picker"),_.E("design:type",HTMLImageElement)],wy.prototype,"JSC$13533_imageInPicker",void 0);
_.x([_.O2("#image-in-preview-clipper"),_.E("design:type",HTMLImageElement)],wy.prototype,"JSC$13533_imageInPreviewClipper",void 0);_.x([_.e("pickerSize","imageWidth","imageHeight","pickerDisplayOffsetTop","imageDisplayOffsetTop"),_.E("design:type",String),_.E("design:paramtypes",[])],wy.prototype,"altLabelForImage",null);_.x([_.e("imageHeight","imageWidth"),_.E("design:type",Number),_.E("design:paramtypes",[])],wy.prototype,"pickerSize",null);
_.x([_.e("imageHeight","imageWidth"),_.E("design:type",Object),_.E("design:paramtypes",[])],wy.prototype,"imageOrientationStyle",null);_.x([_.e("instruction"),_.E("design:type",Object),_.E("design:paramtypes",[])],wy.prototype,"editButton",null);_.x([_.e("instruction","editOnlyMode"),_.E("design:type",Object),_.E("design:paramtypes",[])],wy.prototype,"saveButton",null);_.x([_.e("instruction"),_.E("design:type",Object),_.E("design:paramtypes",[])],wy.prototype,"deleteButton",null);
_.x([_.e("instruction","editOnlyMode"),_.E("design:type",Object),_.E("design:paramtypes",[])],wy.prototype,"cancelButton",null);_.x([_.e("imageDisplayOffsetTop","pickerDisplayOffsetTop"),_.E("design:type",Number),_.E("design:paramtypes",[])],wy.prototype,"cropOffsetTop",null);_.x([_.e("imageDisplayOffsetLeft","pickerDisplayOffsetLeft"),_.E("design:type",Number),_.E("design:paramtypes",[])],wy.prototype,"cropOffsetLeft",null);
_.x([_.e("imageDisplayOffsetLeft","imageDisplayOffsetTop"),_.E("design:type",String),_.E("design:paramtypes",[])],wy.prototype,"pickerBackgroundStyle",null);_.x([_.e("pickerDisplayOffsetLeft","pickerDisplayOffsetTop"),_.E("design:type",String),_.E("design:paramtypes",[])],wy.prototype,"pickerDisplayStyle",null);_.x([_.e("cropOffsetLeft","cropOffsetTop"),_.E("design:type",String),_.E("design:paramtypes",[])],wy.prototype,"imageInPickerStyle",null);
_.x([_.e("cropOffsetLeft","cropOffsetTop","pickerSize"),_.E("design:type",String),_.E("design:paramtypes",[])],wy.prototype,"previewClipperStyle",null);_.x([_.z4("imageData"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],wy.prototype,"onImageChange",null);_.x([_.z4("editOnlyMode"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],wy.prototype,"onEditOnlyModeUpdate",null);
_.x([_.e("showPreviewContainer"),_.E("design:type",String),_.E("design:paramtypes",[])],wy.prototype,"pickerModeStyle",null);wy=_.x([_.f({is:"ytd-backstage-image-preview-renderer",disableElementRegistration:!0})],wy);
_.C(wy,"ytd-backstage-image-preview-renderer",function(){if(LRm!==void 0)return LRm;var S=document.createElement("template");_.h(S,'\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');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);return LRm=S},{mode:1});var MBl;var IZj={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 det;var VBH;var lq=function(){var S=_.w.apply(this,arguments)||this;S.a11yConfig=IZj;S.imageDisplayOffsetTop=0;S.imageDisplayOffsetLeft=0;S.pickerDisplayOffsetTop=0;S.pickerDisplayOffsetLeft=0;S.cropCoordinatesSaved=!1;S.previewSize=0;S.startPicker=!1;S.repositionOptional=!1;return S};
_.r(lq,_.w);_.M=lq.prototype;_.M.created=function(){_.ei.requestAvailability()};
_.M.ready=function(){};
_.M.onArrowKeysDown=function(S){if(!this.cropCoordinatesSaved&&this.pickerSize&&this.imageHeight&&this.imageWidth&&this.displayScale){S.detail.keyboardEvent.preventDefault();var p=0,U=0,Y="";switch(S.detail.keyboardEvent.key){case "ArrowUp":wfR(this.imageDisplayOffsetTop+this.imageHeight,this.pickerDisplayOffsetTop+this.pickerSize)?Y=this.a11yConfig.reachBottomOfImage:p=this.imageHeight*.05*-1;break;case "ArrowDown":wfR(this.pickerDisplayOffsetTop,this.imageDisplayOffsetTop)?Y=this.a11yConfig.reachTopOfImage:
p=this.imageHeight*.05;break;case "ArrowLeft":wfR(this.pickerDisplayOffsetLeft+this.pickerSize,this.imageDisplayOffsetLeft+this.imageWidth)?Y=this.a11yConfig.reachRightOfImage:U=this.imageWidth*.05*-1;break;case "ArrowRight":wfR(this.pickerDisplayOffsetLeft,this.imageDisplayOffsetLeft)?Y=this.a11yConfig.reachLeftOfImage:U=this.imageWidth*.05}Y&&_.Oh(Y)&&_.cv(this.hostElement,"iron-announce",{text:_.Oh(Y)});if(U||p)this.imageHeight>this.imageWidth?(this.imageDisplayOffsetTop=Math.min(this.pickerDisplayOffsetTop,
Math.max(this.pickerDisplayOffsetTop+this.pickerSize-this.imageHeight,this.imageDisplayOffsetTop+p)),S=this.getPreviewPosition(this.pickerDisplayOffsetTop,this.pickerSize,this.imageDisplayOffsetTop,this.imageHeight),S=_.Oh(this.a11yConfig.imageVerticalPosition,{x_percent:""+S,y_percent:""+(100-S)})):(this.imageDisplayOffsetLeft=Math.min(this.pickerDisplayOffsetLeft,Math.max(this.pickerDisplayOffsetLeft+this.pickerSize-this.imageWidth,this.imageDisplayOffsetLeft+U)),S=this.getPreviewPosition(this.pickerDisplayOffsetLeft,
this.pickerSize,this.imageDisplayOffsetLeft,this.imageWidth),S=_.Oh(this.a11yConfig.imageHorizontalPosition,{x_percent:""+S,y_percent:""+(100-S)})),S&&_.cv(this.hostElement,"iron-announce",{text:S})}};
_.M.getPreviewPosition=function(S,p,U,Y){return Math.round(100*(S+p*.5-U)/Y)};
_.M.displayImage=function(){var S=this.JSC$13544_pickerContainer.getBoundingClientRect().width,p=this.JSC$13544_pickerContainer.getBoundingClientRect().height,U=Math.min(this.picker.getBoundingClientRect().height,this.picker.getBoundingClientRect().width),Y=this.JSC$13544_imageInBackground.naturalWidth,L=this.JSC$13544_imageInBackground.naturalHeight;this.displayScale=Math.max(U/Y,U/L);this.imageWidth=Y*this.displayScale;this.imageHeight=L*this.displayScale;this.pickerDisplayOffsetLeft=(S-U)/2;this.pickerDisplayOffsetTop=
(p-U)/2;this.imageDisplayOffsetLeft=L>Y?this.pickerDisplayOffsetLeft:(S-this.imageWidth)/2;this.imageDisplayOffsetTop=Y>L?this.pickerDisplayOffsetTop:(p-this.imageHeight)/2;this.repositionOptional&&this.saveCropCoordinates()};
_.M.onImageDataChange=function(){this.imageData&&(this.pickerDisplayOffsetLeft=this.pickerDisplayOffsetTop=0,this.cropCoordinatesSaved=!1,this.JSC$13544_imageInBackground.src=this.imageData.toString(),this.JSC$13544_imageInPicker.src=this.imageData.toString(),this.JSC$13544_imageInPreviewClipper.src=this.imageData.toString(),this.imageAsPreview.src=this.imageData.toString())};
_.M.getSignedPosition=function(S,p,U){return p==="X"&&_.g7("HTML_DIR")==="rtl"?U==="-"?S+"px":S*-1+"px":U==="-"?S*-1+"px":S+"px"};
_.M.pickerMove=function(S){if(this.startPicker&&!this.cropCoordinatesSaved&&this.pickerSize&&this.pickerOffsetX!==void 0&&this.pickerOffsetY!==void 0&&this.imageHeight&&this.imageWidth&&this.displayScale){var p=this.pickerOffsetX-S.clientX,U=this.pickerOffsetY-S.clientY;this.pickerOffsetX=S.clientX;this.pickerOffsetY=S.clientY;this.imageHeight>this.imageWidth?this.imageDisplayOffsetTop=Math.min(this.pickerDisplayOffsetTop,Math.max(this.pickerDisplayOffsetTop+this.pickerSize-this.imageHeight,this.imageDisplayOffsetTop-
U)):this.imageDisplayOffsetLeft=Math.min(this.pickerDisplayOffsetLeft,Math.max(this.pickerDisplayOffsetLeft+this.pickerSize-this.imageWidth,this.imageDisplayOffsetLeft-p))}};
_.M.pickerMoveStart=function(S){this.startPicker=!0;this.pickerOffsetX=S.clientX;this.pickerOffsetY=S.clientY};
_.M.pickerMoveComplete=function(){this.startPicker=!1;this.pickerOffsetY=this.pickerOffsetX=void 0};
_.M.saveCropCoordinates=function(){this.cropCoordinatesSaved?(this.cropCoordinatesSaved=!1,this.previewSize=0,_.cv(this.hostElement,"yt-img-crop-reposition")):(this.startPicker=!1,this.generateCropPreview())};
_.M.getPreviewOffset=function(S,p,U,Y){return p&&S&&U?(Y==="X"&&_.g7("HTML_DIR")==="rtl"?U/p*S:U/p*S*-1)+"px":"0px"};
_.M.getSimpleText=function(S){return S?_.mA(S):""};
_.M.generateCropPreview=function(){if(this.imageWidth&&this.imageHeight&&this.pickerSize){this.cropCoordinatesSaved=!0;var S=this.cropOffsetTop/this.imageHeight,p=(this.cropOffsetLeft+this.pickerSize)/this.imageWidth,U=(this.cropOffsetTop+this.pickerSize)/this.imageHeight,Y=this.cropOffsetLeft/this.imageWidth;this.previewSize=_.tB(this.hostElement).querySelector("#preview-clipper").getBoundingClientRect().width;_.cv(this.hostElement,"yt-img-crop-coordinates-update",{top:S,right:p,bottom:U,left:Y})}};
_.$u.Object.defineProperties(lq.prototype,{altLabelForImage:{configurable:!0,enumerable:!0,get:function(){if(!this.imageWidth||!this.imageHeight||!this.pickerSize)return"";if(this.imageHeight>this.imageWidth){var S=this.getPreviewPosition(this.pickerDisplayOffsetTop,this.pickerSize,this.imageDisplayOffsetTop,this.imageHeight);return _.Oh(this.a11yConfig.imageVerticalPosition,{x_percent:""+S,y_percent:""+(100-S)})+"\n"+_.Oh(this.a11yConfig.verticalRepositionInstruction)}S=this.getPreviewPosition(this.pickerDisplayOffsetLeft,
this.pickerSize,this.imageDisplayOffsetLeft,this.imageWidth);return _.Oh(this.a11yConfig.imageHorizontalPosition,{x_percent:""+S,y_percent:""+(100-S)})+"\n"+_.Oh(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 S,p=(S=this.learnMore.runs[0])==null?void 0:S.navigationEndpoint,U;return((U=_.b(p,_.Cv))==null?void 0:U.url)||void 0}}}});
lq.prototype.onImageDataChange=lq.prototype.onImageDataChange;_.x([_.g(),_.E("design:type",Object)],lq.prototype,"imageData",void 0);_.x([_.g(),_.E("design:type",Object)],lq.prototype,"instruction",void 0);_.x([_.g(),_.E("design:type",Object)],lq.prototype,"a11yConfig",void 0);_.x([_.g(),_.E("design:type",Number)],lq.prototype,"imageWidth",void 0);_.x([_.g(),_.E("design:type",Number)],lq.prototype,"imageHeight",void 0);_.x([_.g(),_.E("design:type",Number)],lq.prototype,"displayScale",void 0);
_.x([_.g(),_.E("design:type",Object)],lq.prototype,"imageDisplayOffsetTop",void 0);_.x([_.g(),_.E("design:type",Object)],lq.prototype,"imageDisplayOffsetLeft",void 0);_.x([_.g(),_.E("design:type",Object)],lq.prototype,"pickerDisplayOffsetTop",void 0);_.x([_.g(),_.E("design:type",Object)],lq.prototype,"pickerDisplayOffsetLeft",void 0);_.x([_.g(),_.E("design:type",Object)],lq.prototype,"cropCoordinatesSaved",void 0);_.x([_.g(),_.E("design:type",Object)],lq.prototype,"previewSize",void 0);
_.x([_.g(),_.E("design:type",Object)],lq.prototype,"startPicker",void 0);_.x([_.g(),_.E("design:type",Number)],lq.prototype,"pickerOffsetX",void 0);_.x([_.g(),_.E("design:type",Number)],lq.prototype,"pickerOffsetY",void 0);_.x([_.g(),_.E("design:type",Object)],lq.prototype,"repositionOptional",void 0);_.x([_.O2("#picker-container"),_.E("design:type",HTMLElement)],lq.prototype,"JSC$13544_pickerContainer",void 0);_.x([_.O2("#picker"),_.E("design:type",HTMLElement)],lq.prototype,"picker",void 0);
_.x([_.O2("#image-in-picker-background"),_.E("design:type",HTMLImageElement)],lq.prototype,"JSC$13544_imageInBackground",void 0);_.x([_.O2("#image-in-picker"),_.E("design:type",HTMLImageElement)],lq.prototype,"JSC$13544_imageInPicker",void 0);_.x([_.O2("#image-in-preview-clipper"),_.E("design:type",HTMLImageElement)],lq.prototype,"JSC$13544_imageInPreviewClipper",void 0);_.x([_.O2("#full-image-as-preview"),_.E("design:type",HTMLImageElement)],lq.prototype,"imageAsPreview",void 0);
_.x([_.e("pickerSize","imageWidth","imageHeight","pickerDisplayOffsetTop","imageDisplayOffsetTop"),_.E("design:type",String),_.E("design:paramtypes",[])],lq.prototype,"altLabelForImage",null);_.x([_.e("imageHeight","imageWidth"),_.E("design:type",Number),_.E("design:paramtypes",[])],lq.prototype,"pickerSize",null);_.x([_.e("imageHeight","imageWidth"),_.E("design:type",Object),_.E("design:paramtypes",[])],lq.prototype,"imageOrientationStyle",null);
_.x([_.e("instruction.previewInstruction.editButtonLabel"),_.E("design:type",Object),_.E("design:paramtypes",[])],lq.prototype,"editButton",null);_.x([_.e("instruction.editInstruction.saveButtonLabel"),_.E("design:type",Object),_.E("design:paramtypes",[])],lq.prototype,"saveButton",null);_.x([_.e("imageDisplayOffsetTop","pickerDisplayOffsetTop"),_.E("design:type",Number),_.E("design:paramtypes",[])],lq.prototype,"cropOffsetTop",null);
_.x([_.e("imageDisplayOffsetLeft","pickerDisplayOffsetLeft"),_.E("design:type",Number),_.E("design:paramtypes",[])],lq.prototype,"cropOffsetLeft",null);_.x([_.e("imageDisplayOffsetLeft","imageDisplayOffsetTop"),_.E("design:type",String),_.E("design:paramtypes",[])],lq.prototype,"pickerBackgroundStyle",null);_.x([_.e("pickerDisplayOffsetLeft","pickerDisplayOffsetTop"),_.E("design:type",String),_.E("design:paramtypes",[])],lq.prototype,"pickerDisplayStyle",null);
_.x([_.e("cropOffsetLeft","cropOffsetTop"),_.E("design:type",String),_.E("design:paramtypes",[])],lq.prototype,"imageInPickerStyle",null);_.x([_.e("cropOffsetLeft","cropOffsetTop","pickerSize","previewSize"),_.E("design:type",String),_.E("design:paramtypes",[])],lq.prototype,"previewClipperStyle",null);_.x([_.T4("imageData"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],lq.prototype,"onImageDataChange",null);
_.x([_.e("cropCoordinatesSaved"),_.E("design:type",String),_.E("design:paramtypes",[])],lq.prototype,"pickerModeStyle",null);_.x([_.e("instruction.editInstruction.learnMore"),_.E("design:type",Object),_.E("design:paramtypes",[])],lq.prototype,"learnMore",null);_.x([_.e("learnMore"),_.E("design:type",Object),_.E("design:paramtypes",[])],lq.prototype,"learnMoreUrl",null);lq=_.x([_.FB({is:"yt-img-crop-picker",disableElementRegistration:!0})],lq);
_.C(lq,"yt-img-crop-picker",function(){if(VBH===void 0){var S=document.createElement("template");_.h(S,'\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>');
S.content.insertBefore(_.t().content.cloneNode(!0),S.content.firstChild);var p=S.content,U=p.insertBefore;det===void 0&&(det=document.createElement("template"));var Y=det;U.call(p,Y.content.cloneNode(!0),S.content.firstChild);VBH=S}S=VBH;return S},{mode:2});var a0=function(){var S=_.w.apply(this,arguments)||this;S.errorMessage="";S.hasPreview=!1;S.isBackstagePost=!1;S.dismissButtonOverrides={size:"XS"};return S};
_.r(a0,_.w);_.M=a0.prototype;_.M.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"}}}};
_.M.detached=function(){this.removeOverlay()};
_.M.setPreview=function(S){_.tB(this.hostElement).querySelector("#preview-picker").imageData=S;this.hasPreview=!0;_.cv(this.hostElement,"yt-backstage-image-select-preview")};
_.M.cancel=function(){this.errorMessage="";this.overlay&&this.overlay.cancel();this.hasPreview=!1;var S=_.tB(this.hostElement).querySelector("#dropzone");S.classList.remove("dragover");S.classList.remove("error");_.cv(this.hostElement,"yt-backstage-image-select-cancel")};
_.M.setupOverlay=function(){var S=this.imageUploadEndpoint;this.removeOverlay();if(S&&S.imageValidationInfo){var p=_.tB(this.hostElement).querySelector("#dropzone"),U=_.tB(this.hostElement).querySelector("#select");this.overlay=new xS(S.uploadUrl,S.channelId,S.imageValidationInfo.maxFileSizeMb,S.imageValidationInfo.allowedMaxAspectRatio,p,U,!0);_.Kz(this.overlay,"yt.comments.ImageUploadOverlay.CHANGE_EVENT",this.onPreview,!1,this);_.Kz(this.overlay,"yt.comments.ImageUploadOverlay.FILE_TOO_LARGE_EVENT",
this.onImageError,!1,this);_.Kz(this.overlay,"yt.comments.ImageUploadOverlay.HOVER_EVENT",this.onDragOver,!1,this);_.Kz(this.overlay,"yt.comments.ImageUploadOverlay.INVALID_EVENT",this.onImageError,!1,this);_.Kz(this.overlay,"yt.comments.ImageUploadOverlay.FILE_INVALID_ASPECT_RATIO_EVENT",this.onImageAlert,!1,this)}};
_.M.removeOverlay=function(){this.overlay&&(_.W3(this.overlay,"yt.comments.ImageUploadOverlay.INVALID_EVENT",this.onImageError,!1,this),_.W3(this.overlay,"yt.comments.ImageUploadOverlay.HOVER_EVENT",this.onDragOver,!1,this),_.W3(this.overlay,"yt.comments.ImageUploadOverlay.FILE_TOO_LARGE_EVENT",this.onImageError,!1,this),_.W3(this.overlay,"yt.comments.ImageUploadOverlay.FILE_INVALID_ASPECT_RATIO_EVENT",this.onImageAlert,!1,this),_.W3(this.overlay,"yt.comments.ImageUploadOverlay.CHANGE_EVENT",this.onPreview,
!1,this),this.overlay.dispose(),this.overlay=void 0)};
_.M.onDragOver=function(S){var p=_.tB(this.hostElement).querySelector("#dropzone");_.U2(p,"dragover",S.value)};
_.M.onPreview=function(S){this.setPreview(S.value)};
_.M.onImageError=function(S){if(S.type==="yt.comments.ImageUploadOverlay.FILE_TOO_LARGE_EVENT"){var p;S=(p=this.data)==null?void 0:p.fileSizeError}else if(S.type==="yt.comments.ImageUploadOverlay.INVALID_EVENT"){var U;S=(U=this.data)==null?void 0:U.invalidError}else if(S.type==="yt.comments.ImageUploadOverlay.FILE_INVALID_ASPECT_RATIO_EVENT"){var Y;S=(Y=this.data)==null?void 0:Y.invalidAspectRatioError}else return;this.errorMessage=_.mA(S);_.tB(this.hostElement).querySelector("#dropzone").classList.add("error")};
_.M.onImageAlert=function(S){this.onImageError(S)};
_.M.uploadPromise=function(){var S=this,p=this.overlay&&this.overlay.uploadPromise();if(p)return p.catch(function(){throw Error(S.data?_.mA(S.data.uploadFailureError):"");})};
_.$u.Object.defineProperties(a0.prototype,{selectionCancel:{configurable:!0,enumerable:!0,get:function(){var S;return(S=this.data)==null?void 0:S.cancelButton}},
previewCancel:{configurable:!0,enumerable:!0,get:function(){var S;return(S=this.data)==null?void 0:S.cancelButton}},
icon:{configurable:!0,enumerable:!0,get:function(){var S,p;if((S=this.data)==null?0:(p=S.icon)==null?0:p.iconType)return _.If(this.data.icon.iconType)}}});
a0.prototype.setupOverlay=a0.prototype.setupOverlay;_.x([_.F(_.qH.YtRendererstamperBehavior),_.E("design:type",Object)],a0.prototype,"rendererStamperBehavior",void 0);_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],a0.prototype,"ytRendererBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],a0.prototype,"data",void 0);_.x([_.g(),_.E("design:type",Object)],a0.prototype,"imageUploadEndpoint",void 0);_.x([_.g(),_.E("design:type",Object)],a0.prototype,"errorMessage",void 0);
_.x([_.g(),_.E("design:type",xS)],a0.prototype,"overlay",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],a0.prototype,"hasPreview",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],a0.prototype,"isBackstagePost",void 0);_.x([_.e("data"),_.E("design:type",Object),_.E("design:paramtypes",[])],a0.prototype,"selectionCancel",null);_.x([_.e("data"),_.E("design:type",Object),_.E("design:paramtypes",[])],a0.prototype,"previewCancel",null);
_.x([_.e("data.icon.iconType"),_.E("design:type",Object),_.E("design:paramtypes",[])],a0.prototype,"icon",null);_.x([_.g(),_.E("design:type",Object)],a0.prototype,"dismissButtonOverrides",void 0);_.x([_.T4("imageUploadEndpoint"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],a0.prototype,"setupOverlay",null);a0=_.x([_.f({is:"ytd-backstage-image-select-renderer",disableElementRegistration:!0})],a0);
_.C(a0,"ytd-backstage-image-select-renderer",function(){if(MBl!==void 0)return MBl;var S=document.createElement("template");_.h(S,'\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');
S.content.insertBefore(_.t().content.cloneNode(!0),S.content.firstChild);return MBl=S},{mode:1});var Thq;var WRt;var o0=function(){var S=_.w.apply(this,arguments)||this;S.selected=!1;return S};
_.r(o0,_.w);_.M=o0.prototype;_.M.computeSelected=function(S){return S==null?void 0:S.selected};
_.M.computeTransform=function(S,p,U){var Y,L,I=(L=(Y=this.imageContainer)==null?void 0:Y.getBoundingClientRect())!=null?L:{width:0,height:0};Y=Math.max(I.width/p,I.height/U);U=U*Y*S.top;return"translateX("+this.getSignedPosition(p*Y*S.left,"X","-")+") translateY("+this.getSignedPosition(U,"Y","-")+")"};
_.M.getSignedPosition=function(S,p,U){return p==="X"&&_.g7("HTML_DIR")==="rtl"?U==="-"?S+"px":S*-1+"px":U==="-"?S*-1+"px":S+"px"};
_.M.onClick=function(){var S;_.cv(this.hostElement,"ytb-backstage-multi-image-thumbnail-render-click",(S=this.data)==null?void 0:S.image)};
_.M.onKeyPress=function(S){if(S.keyCode===13)this.onClick()};
_.$u.Object.defineProperties(o0.prototype,{thumbnailUrl:{configurable:!0,enumerable:!0,get:function(){var S,p;return((S=this.data)==null?void 0:(p=S.image)==null?void 0:p.localImageSrc)||void 0}},
thumbnailStyle:{configurable:!0,enumerable:!0,get:function(){var S;if((S=this.data)!=null&&S.image){var p;S=(p=this.data)==null?void 0:p.image;return S.previewCoordinates.top!==0||S.previewCoordinates.left!==0?(p=this.computeTransform(S.previewCoordinates,S.naturalWidth,S.naturalHeight),S.naturalHeight>=S.naturalWidth?"width:inherit;transform:"+p+";":"height:inherit;transform:"+p+";"):S.naturalHeight>=S.naturalWidth?"width:inherit;":"height:inherit;"}}}});
o0.prototype.onKeyPress=o0.prototype.onKeyPress;_.x([_.O2(".image-container"),_.E("design:type",HTMLElement)],o0.prototype,"imageContainer",void 0);_.x([_.g(),_.E("design:type",Object)],o0.prototype,"data",void 0);_.x([_.g({reflectToAttribute:!0,computed:"computeSelected(data)"}),_.E("design:type",Object)],o0.prototype,"selected",void 0);_.x([_.e("data.image"),_.E("design:type",Object),_.E("design:paramtypes",[])],o0.prototype,"thumbnailUrl",null);
_.x([_.e("data.image","data.image.previewCoordinates"),_.E("design:type",Object),_.E("design:paramtypes",[])],o0.prototype,"thumbnailStyle",null);_.x([_.Vd("keypress"),_.E("design:type",Function),_.E("design:paramtypes",[Event]),_.E("design:returntype")],o0.prototype,"onKeyPress",null);o0=_.x([_.f({is:"ytd-backstage-multi-image-thumbnail-renderer",disableElementRegistration:!0})],o0);
_.C(o0,"ytd-backstage-multi-image-thumbnail-renderer",function(){if(WRt!==void 0)return WRt;var S=document.createElement("template");_.h(S,'\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');
S.content.insertBefore(_.t().content.cloneNode(!0),S.content.firstChild);return WRt=S},{mode:2});var vn=function(S,p,U){U=U===void 0?!1:U;_.OD.call(this);var Y=this;this.dropZoneOverlay=new LQ(S);this.selectOverlay=U?new Mc(p,"multiple_file",["image/*"]):new Mc(p,"single_file",["image/*"]);this.handler=new _.cr(this);_.Hm(this,this.handler);this.handler.listen(this.dropZoneOverlay,"f",this.onChange).listen(p,"click",function(){Y.selectOverlay.click()}).listen(this.selectOverlay,"j",this.onChange)};
_.r(vn,_.OD);vn.prototype.onChange=function(S){var p;(p=S.files)!=null&&p.length&&this.dispatchEvent(new CustomEvent("yt.comments.ImagePicker.select",{detail:S.files}))};var $0=function(){var S=_.w.apply(this,arguments)||this;S.addImageErrorMessage="";S.errorMessage="";S.images=[];S.selectedImageIndex=0;S.modern=_.y("web_modern_buttons");S.maxNumImagesPerPost=_.pA("max_num_images_per_post_web_ui");S.JSC$13559_imageId=0;return S};
_.r($0,_.w);_.M=$0.prototype;_.M.observeAddImageError=function(){this.addImageErrorMessage!==""&&_.cv(this.hostElement,"yt-backstage-add-image-error",this.addImageErrorMessage)};
_.M.observeDragToReorder=function(){var S=this;if(this.showImagesPreview){var p,U=gBm(_.$V.getInstance(),(p=this.data)==null?void 0:p.dragToReorderTooltip);_.PA.addLowPriorityJob(function(){_.Lp(S.hostElement,U,S.thumbnailDragDropArea)})}};
_.M.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}}};
_.M.computeThumbnail=function(S){return(S==null?void 0:S.localImageSrc)||void 0};
_.M.onRendererstamperFinished=function(){_.HkP(this.ytReorderableBehavior,_.tB(this.hostElement).querySelector("#thumbnail-drag-drop-area"),_.tB(this.hostElement).querySelector("#thumbnail-drag-drop-area"))};
_.M.handleDrop=function(S){var p=S.currDragItem;if(p!=null&&p.data){S=this.images[this.selectedImageIndex];var U=p.data.image,Y=this.images.indexOf(U)||0;p=_.xR(p.parentNode.children,p);this.images.splice(Y,1);this.images.splice(p,0,U);this.images=[].concat(_.jo(this.images));this.selectedImageIndex=this.images.indexOf(S)}};
_.M.setUpImagePicker=function(){var S=this.imageUploadEndpoint;S&&S.imageValidationInfo&&(this.uploadManager=new gy(S.uploadUrl,S.channelId),this.initialPicker||(this.initialPicker=new vn(this.dropzone,this.selectLink,!0),_.Kz(this.initialPicker,"yt.comments.ImagePicker.select",this.onInitialSelectImages,!1,this)),this.addImagePicker||(this.addImagePicker=new vn(this.addImageButtonContainer,this.addImageSelectButton),_.Kz(this.addImagePicker,"yt.comments.ImagePicker.select",this.onAddImage,!1,this)),
_.Kz(this.JSC$13559_imagePreviewContainer,"ytd-backstage-image-preview-coordinates-save",this.repositionImage,!1,this),_.Kz(this.JSC$13559_imagePreviewContainer,"ytd-backstage-image-preview-delete",this.deleteImage,!1,this),_.Kz(_.tB(this.hostElement).querySelector("#thumbnail-drag-drop-area"),"ytb-backstage-multi-image-thumbnail-render-click",this.onThumbnailClick,!1,this))};
_.M.detached=function(){this.initialPicker&&(_.W3(this.initialPicker,"yt.comments.ImagePicker.select",this.onInitialSelectImages,!1,this),this.initialPicker.dispose(),this.initialPicker=void 0);this.addImagePicker&&(_.W3(this.addImagePicker,"yt.comments.ImagePicker.select",this.onAddImage,!1,this),this.addImagePicker.dispose(),this.addImagePicker=void 0)};
_.M.onInitialSelectImages=function(S){var p=this;return _.T(function(U){return _.k(U,p.onSelectImages(S,!1),0)})};
_.M.onAddImage=function(S){var p=this;return _.T(function(U){return _.k(U,p.onSelectImages(S,!0),0)})};
_.M.onSelectImages=function(S,p){var U=this,Y,L,I,V,W,O,D,z,Q,J,K,G,X,Z,l,a,N,m,A,q;return _.T(function(TG){switch(TG.nextAddress){case 1:p?U.addImageErrorMessage="":(U.images=[],U.errorMessage="");Y=S.detail;L=U.validateImages([].concat(_.jo(Y)));if(L!=="")return p?U.addImageErrorMessage=L:U.errorMessage=L,TG.return();I=[].concat(_.jo(Y)).map(function(Je){return(new fQ(U.maxAspectRatio,!1,!0)).transform(Je)});
return _.k(TG,Promise.allSettled(I),2);case 2:V=TG.yieldResult,W=_.d(V.entries()),O=W.next();case 3:if(O.done){TG.jumpTo(5);break}D=O.value;z=_.d(D);Q=z.next().value;J=z.next().value;K=Q;G=J;if(G.status!=="fulfilled"){l=Z=X=void 0;p?U.addImageErrorMessage=_.mA((X=U.data)==null?void 0:X.invalidError):U.errorMessage=U.errorMessage===""?_.mA((Z=U.data)==null?void 0:Z.invalidError):_.mA((l=U.data)==null?void 0:l.multiFileError);TG.jumpTo(4);break}a=G.value;a.cropped&&_.cv(U.hostElement,"yt-backstage-multi-image-cropped");
if(a.invalidAspectRatio){A=m=N=void 0;p?U.addImageErrorMessage=_.mA((N=U.data)==null?void 0:N.invalidAspectRatioError):U.errorMessage=U.errorMessage===""?_.mA((m=U.data)==null?void 0:m.invalidAspectRatioError):_.mA((A=U.data)==null?void 0:A.multiFileError);TG.jumpTo(4);break}return _.k(TG,gIR(U.JSC$13559_imageId,S.detail[K],a.transformedData),8);case 8:q=TG.yieldResult,U.images.push(q),U.JSC$13559_imageId++;case 4:O=W.next();TG.jumpTo(3);break;case 5:if(U.errorMessage!==""||U.addImageErrorMessage!==
"")return TG.return();p?AbE(U.uploadManager,[U.images[U.images.length-1]]):AbE(U.uploadManager,U.images);U.images=[].concat(_.jo(U.images));U.selectedImageIndex=p?Math.max(U.images.length-1,0):0;_.cv(U.hostElement,"yt-backstage-multi-image-select");_.OV(TG)}})};
_.M.onThumbnailClick=function(S){if(S=S.event_.detail)this.selectedImageIndex=this.images.indexOf(S)};
_.M.validateImages=function(S){if(S.length>this.maxNumImagesPerPost){var p;return _.mA((p=this.data)==null?void 0:p.multiImageExceedMaxImageCountError)}var U=1048576*this.maxFileSizeMb;S=S.filter(function(I){return I.size>U}).length;
if(S===0)return"";var Y,L;S=S>1?(Y=this.data)==null?void 0:Y.multiFileError:(L=this.data)==null?void 0:L.fileSizeError;return _.mA(S)};
_.M.deleteImage=function(){this.uploadManager.cancel(this.images[this.selectedImageIndex].id);this.images.splice(this.selectedImageIndex,1);this.images=[].concat(_.jo(this.images));this.selectedImageIndex=0};
_.M.repositionImage=function(S){this.images[this.selectedImageIndex].previewCoordinates=S.event_.detail;this.images=[].concat(_.jo(this.images))};
_.M.getAllUploadStatuses=function(){var S=this,p,U,Y,L;return _.T(function(I){if(I.nextAddress==1)return _.k(I,S.uploadManager.getAllUploadStatuses(),2);p=I.yieldResult;U=_.d(p);for(Y=U.next();!Y.done;Y=U.next())if(L=Y.value,L.encryptedBlobId===void 0)return I.return(t2I(S.uploadManager));return I.return(p)})};
_.M.hasImages=function(){return this.images.length>0};
_.M.cancel=function(){for(var S=this.uploadManager,p=_.d(S.imagesUploadData),U=p.next();!U.done;U=p.next())S.cancel(U.value.image.id);this.addImageErrorMessage=this.errorMessage="";this.images=[];_.cv(this.hostElement,"yt-backstage-multi-image-cancel")};
_.$u.Object.defineProperties($0.prototype,{maxAspectRatio:{configurable:!0,enumerable:!0,get:function(){var S,p;return((S=this.imageUploadEndpoint)==null?void 0:(p=S.imageValidationInfo)==null?void 0:p.allowedMaxAspectRatio)||0}},
maxFileSizeMb:{configurable:!0,enumerable:!0,get:function(){var S,p;return((S=this.imageUploadEndpoint)==null?void 0:(p=S.imageValidationInfo)==null?void 0:p.maxFileSizeMb)||0}},
dropIcon:{configurable:!0,enumerable:!0,get:function(){var S,p;if((S=this.data)==null?0:(p=S.icon)==null?0:p.iconType)return _.If(this.data.icon.iconType)}},
selectionCancel:{configurable:!0,enumerable:!0,get:function(){var S;return(S=this.data)==null?void 0:S.cancelButton}},
previewCancel:{configurable:!0,enumerable:!0,get:function(){var S;return(S=this.data)==null?void 0:S.cancelButton}},
dataForAddImageButton:{configurable:!0,enumerable:!0,get:function(){var S;return(S=this.data)==null?void 0:S.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 S=this;return(this.images||[]).map(function(p,U){return{renderer:{image:p,selected:U===S.selectedImageIndex}}})}}});
$0.prototype.setUpImagePicker=$0.prototype.setUpImagePicker;$0.prototype.onRendererstamperFinished=$0.prototype.onRendererstamperFinished;$0.prototype.observeDragToReorder=$0.prototype.observeDragToReorder;$0.prototype.observeAddImageError=$0.prototype.observeAddImageError;_.x([_.F(_.qH.YtRendererstamperBehavior),_.E("design:type",Object)],$0.prototype,"rendererStamperBehavior",void 0);_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],$0.prototype,"ytRendererBehavior",void 0);
_.x([_.F(_.Djm),_.E("design:type",Object)],$0.prototype,"ytReorderableBehavior",void 0);_.x([_.O2("#dropzone"),_.E("design:type",HTMLElement)],$0.prototype,"dropzone",void 0);_.x([_.O2("#select-link"),_.E("design:type",HTMLElement)],$0.prototype,"selectLink",void 0);_.x([_.O2("#thumbnail-drag-drop-area"),_.E("design:type",HTMLElement)],$0.prototype,"thumbnailDragDropArea",void 0);_.x([_.O2("#add-image-button-container"),_.E("design:type",HTMLElement)],$0.prototype,"addImageButtonContainer",void 0);
_.x([_.O2("#add-image-button"),_.E("design:type",HTMLElement)],$0.prototype,"addImageSelectButton",void 0);_.x([_.O2("#image-preview-container"),_.E("design:type",Object)],$0.prototype,"JSC$13559_imagePreviewContainer",void 0);_.x([_.g(),_.E("design:type",Object)],$0.prototype,"addImageErrorMessage",void 0);_.x([_.g(),_.E("design:type",Object)],$0.prototype,"data",void 0);_.x([_.g(),_.E("design:type",Object)],$0.prototype,"errorMessage",void 0);
_.x([_.g(),_.E("design:type",Object)],$0.prototype,"imageUploadEndpoint",void 0);_.x([_.g(),_.E("design:type",Array)],$0.prototype,"images",void 0);_.x([_.g(),_.E("design:type",vn)],$0.prototype,"initialPicker",void 0);_.x([_.g(),_.E("design:type",vn)],$0.prototype,"addImagePicker",void 0);_.x([_.g(),_.E("design:type",gy)],$0.prototype,"uploadManager",void 0);_.x([_.g(),_.E("design:type",Object)],$0.prototype,"selectedImageIndex",void 0);
_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],$0.prototype,"modern",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],$0.prototype,"maxNumImagesPerPost",void 0);_.x([_.e("imageUploadEndpoint"),_.E("design:type",Number),_.E("design:paramtypes",[])],$0.prototype,"maxAspectRatio",null);_.x([_.e("imageUploadEndpoint"),_.E("design:type",Number),_.E("design:paramtypes",[])],$0.prototype,"maxFileSizeMb",null);
_.x([_.e("data.icon.iconType"),_.E("design:type",Object),_.E("design:paramtypes",[])],$0.prototype,"dropIcon",null);_.x([_.e("data"),_.E("design:type",Object),_.E("design:paramtypes",[])],$0.prototype,"selectionCancel",null);_.x([_.e("data"),_.E("design:type",Object),_.E("design:paramtypes",[])],$0.prototype,"previewCancel",null);_.x([_.e("data"),_.E("design:type",Object),_.E("design:paramtypes",[])],$0.prototype,"dataForAddImageButton",null);
_.x([_.e("errorMessage"),_.E("design:type",String),_.E("design:paramtypes",[])],$0.prototype,"dropzoneClass",null);_.x([_.e("images"),_.E("design:type",Boolean),_.E("design:paramtypes",[])],$0.prototype,"showImagesPreview",null);_.x([_.e("images"),_.E("design:type",Boolean),_.E("design:paramtypes",[])],$0.prototype,"containMaxImages",null);_.x([_.T4("addImageErrorMessage"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],$0.prototype,"observeAddImageError",null);
_.x([_.T4("showImagesPreview"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],$0.prototype,"observeDragToReorder",null);_.x([_.e("images","selectedImageIndex"),_.E("design:type",Object),_.E("design:paramtypes",[])],$0.prototype,"selectedImageData",null);_.x([_.e("images","selectedImageIndex"),_.E("design:type",Array),_.E("design:paramtypes",[])],$0.prototype,"thumbnailRenderers",null);
_.x([_.Vd("yt-rendererstamper-finished"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],$0.prototype,"onRendererstamperFinished",null);_.x([_.T4("imageUploadEndpoint"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],$0.prototype,"setUpImagePicker",null);$0=_.x([_.f({is:"ytd-backstage-multi-image-select-renderer",disableElementRegistration:!0})],$0);
_.C($0,"ytd-backstage-multi-image-select-renderer",function(){if(Thq!==void 0)return Thq;var S=document.createElement("template");_.h(S,'\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');
S.content.insertBefore(_.t().content.cloneNode(!0),S.content.firstChild);return Thq=S},{mode:1});var OBe;var k$j;var HBl;var iq=function(){var S=_.w.apply(this,arguments)||this;S.boundCaptureFocus=function(p){S.onCaptureFocus(p)};
return S};
_.r(iq,_.w);_.M=iq.prototype;_.M.attached=function(){document.addEventListener("focus",this.boundCaptureFocus,!0)};
_.M.detached=function(){document.removeEventListener("focus",this.boundCaptureFocus)};
_.M.onCaptureFocus=function(S){_.E1(S).indexOf(this.hostElement)!==-1&&this.item.focus()};
_.M.getIconType=function(S){return S?"yt-icons:"+S.toLowerCase():null};
_.M.onSelect=function(){var S;if((S=this.data)==null?0:S.onSelectCommand)if(_.y("refresh_upon_dismiss_channel_creation_from_playlists"))this.ytComponentBehavior.resolveCommand(this.data.onSelectCommand);else{var p;((p=_.b(this.data.onSelectCommand.commandMetadata,_.NU))==null?0:p.url)?_.cv(this.hostElement,"yt-navigate",{endpoint:this.data.onSelectCommand}):_.tW().resolve(_.cQ).resolveCommand(this.data.onSelectCommand,{form:{element:this.hostElement}})}};
_.$u.Object.defineProperties(iq.prototype,{label:{configurable:!0,enumerable:!0,get:function(){return this.data?_.mA(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}}});
_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],iq.prototype,"ytRendererBehavior",void 0);_.x([_.F(_.eL.YtComponentBehavior),_.E("design:type",Object)],iq.prototype,"ytComponentBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],iq.prototype,"data",void 0);_.x([_.O2("#item"),_.E("design:type",HTMLElement)],iq.prototype,"item",void 0);_.x([_.e("data.label"),_.E("design:type",String),_.E("design:paramtypes",[])],iq.prototype,"label",null);
_.x([_.e("data"),_.E("design:type",Object),_.E("design:paramtypes",[])],iq.prototype,"value",null);iq=_.x([_.f({is:"ytd-privacy-dropdown-item-renderer",disableElementRegistration:!0})],iq);
_.C(iq,"ytd-privacy-dropdown-item-renderer",function(){if(HBl!==void 0)return HBl;var S=document.createElement("template");_.h(S,'\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');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);return HBl=S},{mode:1});var NQ=function(){var S=_.w.apply(this,arguments)||this;S.value="";S.label="";S.disabled=!1;return S};
_.r(NQ,_.w);_.M=NQ.prototype;_.M.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"}}}};
_.M.reset=function(){this.entries.selected=-1;this.entries.forceSynchronousItemUpdate();this.entries.select(this.getInitiallySelectedItem());this.setInitialLabel()};
_.M.dataChanged=function(){this.reset()};
_.M.valueChanged=function(){var S;if(this.value&&(S=this.data)!=null&&S.entries){S=_.d(this.data.entries);for(var p=S.next();!p.done;p=S.next())if((p=this.getRendererForEntry(p.value))&&this.getItemRendererValue(p)===this.value){this.label=this.ytComponentBehavior.getSimpleString(p.label);break}}};
_.M.setInitialLabel=function(){if(this.data&&this.data.entries)for(var S=_.d(this.data.entries),p=S.next();!p.done;p=S.next())if(p=this.getRendererForEntry(p.value)){if(p.isSelected){this.label=this.ytComponentBehavior.getSimpleString(p.label);break}this.data.label&&(this.label=this.data.label)}};
_.M.getInitiallySelectedItem=function(){if(!this.data||!this.data.entries)return-1;for(var S=_.d(this.data.entries),p=S.next();!p.done;p=S.next()){p=this.getRendererForEntry(p.value);var U=void 0;if((U=p)==null?0:U.isSelected)return this.getItemRendererValue(p)||-1}return-1};
_.M.getItemRendererValue=function(S){return"stringValue"in S||"int32Value"in S?S.stringValue||S.int32Value||null:null};
_.M.getRendererForEntry=function(S){return S.dropdownItemRenderer||S.privacyDropdownItemRenderer||S.navigationDropdownItemRenderer||null};
_.M.valueChangedForBinding=function(){this.hostElement.dispatchEvent(new _.uz("value-changed",this.value))};
_.M.updateValueFromBinding=function(S){this.value=S.detail.value};
NQ.prototype.valueChangedForBinding=NQ.prototype.valueChangedForBinding;NQ.prototype.valueChanged=NQ.prototype.valueChanged;NQ.prototype.dataChanged=NQ.prototype.dataChanged;_.x([_.F(_.eL.YtComponentBehavior),_.E("design:type",Object)],NQ.prototype,"ytComponentBehavior",void 0);_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],NQ.prototype,"ytRendererBehavior",void 0);_.x([_.F(_.qH.YtRendererstamperBehavior),_.E("design:type",Object)],NQ.prototype,"ytRendererstamperBehavior",void 0);
_.x([_.g(),_.E("design:type",Object)],NQ.prototype,"data",void 0);_.x([_.g(),_.E("design:type",Object)],NQ.prototype,"value",void 0);_.x([_.g(),_.E("design:type",Object)],NQ.prototype,"label",void 0);_.x([_.O2("#entries"),_.E("design:type",Object)],NQ.prototype,"entries",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],NQ.prototype,"disabled",void 0);_.x([_.z4("data"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],NQ.prototype,"dataChanged",null);
_.x([_.z4("value"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],NQ.prototype,"valueChanged",null);_.x([_.T4("value"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],NQ.prototype,"valueChangedForBinding",null);NQ=_.x([_.f({disableElementRegistration:!0,is:"ytd-flat-dropdown-renderer"})],NQ);
_.C(NQ,"ytd-flat-dropdown-renderer",function(){if(k$j!==void 0)return k$j;var S=document.createElement("template");_.h(S,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-flat-dropdown-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-menu-button disabled="[[disabled]]" dynamic-align="" horizontal-align="left" class="style-scope ytd-flat-dropdown-renderer">\n  <tp-yt-paper-button id="label" class="dropdown-trigger style-scope ytd-flat-dropdown-renderer" slot="dropdown-trigger" aria-label$="[[label]]">\n    <div id="label-text" class="style-scope ytd-flat-dropdown-renderer">[[label]]</div>\n    <yt-icon id="label-icon" icon="yt-icons:arrow_drop_down" class="style-scope ytd-flat-dropdown-renderer">\n    </yt-icon>\n  </tp-yt-paper-button>\n  <tp-yt-paper-listbox id="entries" class="dropdown-content style-scope ytd-flat-dropdown-renderer" slot="dropdown-content" attr-for-selected="value" selected="[[value]]" on-selected-changed="updateValueFromBinding">\n  </tp-yt-paper-listbox>\n</tp-yt-paper-menu-button>\n');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);return k$j=S},{mode:1});var Dej;var Bn=function(){var S=_.w.apply(this,arguments)||this;S.quizOptions=[];S.explanationPlaceholderText="";S.optionPlaceholderText="";S.correctAnswerIndex=-1;S.isMarkAnswerTooltipShown=!1;S.timer=0;return S};
_.r(Bn,_.w);_.M=Bn.prototype;_.M.dataChanged=function(){this.optionPlaceholderText=_.mA(this.editorInfo.optionPlaceholderText);this.explanationPlaceholderText=_.mA(this.editorInfo.explanationPlaceholderText);this.quizOptions.length===0&&(this.quizOptions=this.createQuizOptions(this.editorInfo))};
_.M.onMarkCorrectAnswer=function(S){var p,U=((p=this.quizOptions[this.correctAnswerIndex])==null?void 0:p.explanationText)||"";this.correctAnswerIndex>=0&&(this.quizOptions[this.correctAnswerIndex]=Object.assign({},this.quizOptions[this.correctAnswerIndex],{isCorrect:!1,explanationText:""}));this.quizOptions[S.model.index]=Object.assign({},this.quizOptions[S.model.index],{explanationText:U,isCorrect:!0});this.correctAnswerIndex=S.model.index;this.quizOptions=[].concat(_.jo(this.quizOptions))};
_.M.updatePlaceholderTexts=function(){for(var S=!1,p=[],U=0;U<this.quizOptions.length;U++){var Y=this.optionPlaceholderText+" "+(U+1),L=void 0;((L=this.quizOptions[U])==null?void 0:L.placeholderText)!==Y?(S=!0,p.push(Object.assign({},this.quizOptions[U],{placeholderText:Y}))):p.push(this.quizOptions[U])}S&&(this.quizOptions=p);this.isValid()?_.cv(this.hostElement,"yt-commentbox-post-enable"):_.cv(this.hostElement,"yt-commentbox-post-disable")};
_.M.getSimpleString=function(S){return _.mA(S)};
_.M.createQuizOptions=function(S){var p=[],U;S=(U=S==null?void 0:S.minQuizOptions)!=null?U:0;for(U=0;U<S;U++)p.push(this.createQuizOption());return p};
_.M.onAddQuizOption=function(){this.isAllowedToAddOption&&(this.quizOptions=[].concat(_.jo(this.quizOptions),[this.createQuizOption()]))};
_.M.onInput=function(){this.quizOptions=[].concat(_.jo(this.quizOptions))};
_.M.onExplanationInput=function(){_.cv(this.hostElement,"yt-quiz-attachment-explanation-update")};
_.M.onRemoveQuizOption=function(S){this.quizOptions.splice(S.model.index,1);S.model.index<this.correctAnswerIndex?--this.correctAnswerIndex:S.model.index===this.correctAnswerIndex&&(this.correctAnswerIndex=-1);this.quizOptions=[].concat(_.jo(this.quizOptions));this.quizOptions.length===0&&_.cv(this.hostElement,"yt-quiz-attachment-dismiss")};
_.M.updateHintRenderer=function(){var S=this;clearTimeout(this.timer);this.timer=setTimeout(function(){S.maybeDisplayMarkAnswerEduToolTip()},4E3)};
_.M.isValid=function(){if(!this.editorInfo||this.quizOptions.length<Number(this.editorInfo.minQuizOptions)||this.quizOptions.length>Number(this.editorInfo.maxQuizOptions))return!1;for(var S=0,p=0,U=_.d(this.quizOptions),Y=U.next();!Y.done;Y=U.next()){Y=Y.value;var L=void 0;if(((L=Y.optionText)==null?void 0:L.trim())!==""||Y.isCorrect){Y.isCorrect&&p++;L=void 0;if(this.hasCustomOptionText&&((L=Y.optionText)==null?void 0:L.trim().length)<Number(this.editorInfo.minQuizOptionChars))return!1;S++}}return S>=
Number(this.editorInfo.minQuizOptions)&&p===1};
_.M.getPostCreateOptions=function(){for(var S=[],p=_.d(this.quizOptions),U=p.next();!U.done;U=p.next()){U=U.value;var Y=void 0;((Y=U.optionText)==null?void 0:Y.trim())!==""&&S.push({pollOption:{text:U.optionText,explanation:U.explanationText},isCorrect:U.isCorrect})}return S};
_.M.getExplanationText=function(){var S;return((S=this.quizOptions[this.correctAnswerIndex])==null?void 0:S.explanationText)||""};
_.M.maybeDisplayMarkAnswerEduToolTip=function(){var S,p,U,Y,L,I,V;this.shouldShowMarkAnswerTooltip()&&((S=this.editorInfo)==null?0:(p=S.markAnswerButton)==null?0:(U=p.buttonRenderer)==null?0:(Y=U.hint)==null?0:(L=Y.hintRenderer)==null?0:(I=L.content)==null?0:(V=I.bubbleHintRenderer)==null?0:V.text)&&(_.$V.getInstance(),S=il(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,(S==null?void 0:S.length)>0&&this.optionSelectors&&_.Te(S[0],this.optionSelectors[0]))};
_.M.shouldShowMarkAnswerTooltip=function(){if(this.isMarkAnswerTooltipShown||this.quizOptions.length<=1)return!1;for(var S=0,p=_.d(this.quizOptions),U=p.next();!U.done;U=p.next()){U=U.value;var Y=void 0;((Y=U.optionText)==null?void 0:Y.trim())!==""&&S++;if(U.isCorrect)return!1}return S<2?!1:!0};
_.M.resetQuizOptions=function(){this.quizOptions=this.createQuizOptions(this.editorInfo);this.isMarkAnswerTooltipShown=!1};
_.M.createQuizOption=function(){return{optionText:"",placeholderText:"",explanationText:"",isCorrect:!1}};
_.M.updateOptionTextFromBinding=function(S){if(S.target){var p=Array.from(_.tB(this.hostElement).querySelectorAll("tp-yt-iron-autogrow-textarea.quiz-option-input-input")).indexOf(S.target);if(p>=0){var U;this.quizOptions[p].optionText=(U=S.detail.value)!=null?U:""}}};
_.$u.Object.defineProperties(Bn.prototype,{addAnswerButton:{configurable:!0,enumerable:!0,get:function(){var S,p,U=(S=this.editorInfo)==null?void 0:(p=S.addOptionButton)==null?void 0:p.buttonRenderer;U&&(U.style="STYLE_SUGGESTIVE",U.size="SIZE_SMALL",U.isDisabled=!this.isAllowedToAddOption);return(U==null?0:U.text)?U:void 0}},
isAllowedToAddOption:{configurable:!0,enumerable:!0,get:function(){var S,p;return this.quizOptions.length<((p=(S=this.editorInfo)==null?void 0:S.maxQuizOptions)!=null?p:0)}},
hasCustomOptionText:{configurable:!0,enumerable:!0,get:function(){return this.quizOptions.some(function(S){var p;return(p=S.optionText)==null?void 0:p.trim()})}}});
Bn.prototype.updatePlaceholderTexts=Bn.prototype.updatePlaceholderTexts;Bn.prototype.dataChanged=Bn.prototype.dataChanged;_.x([_.g(),_.E("design:type",Object)],Bn.prototype,"editorInfo",void 0);_.x([_.g(),_.E("design:type",Array)],Bn.prototype,"quizOptions",void 0);_.x([_.g(),_.E("design:type",Object)],Bn.prototype,"explanationPlaceholderText",void 0);_.x([_.kk(".option-selector-button"),_.E("design:type",Array)],Bn.prototype,"optionSelectors",void 0);
_.x([_.z4("editorInfo"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],Bn.prototype,"dataChanged",null);_.x([_.e("editorInfo","isAllowedToAddOption","quizOptions"),_.E("design:type",Object),_.E("design:paramtypes",[])],Bn.prototype,"addAnswerButton",null);_.x([_.e("editorInfo","quizOptions"),_.E("design:type",Object),_.E("design:paramtypes",[])],Bn.prototype,"isAllowedToAddOption",null);
_.x([_.z4("quizOptions"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],Bn.prototype,"updatePlaceholderTexts",null);_.x([_.e("quizOptions"),_.E("design:type",Object),_.E("design:paramtypes",[])],Bn.prototype,"hasCustomOptionText",null);Bn=_.x([_.f({is:"ytd-backstage-quiz-editor-renderer",disableElementRegistration:!0})],Bn);
_.C(Bn,"ytd-backstage-quiz-editor-renderer",function(){if(Dej!==void 0)return Dej;var S=document.createElement("template");_.h(S,'\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');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);return Dej=S},{mode:2});var z3c;var QDE=(y4.FIRSTDAYOFWEEK+1)%7;var nft;var JGt=[],yGP=0,KRP=0;yGP=0;KRP=24;if(.25*(KRP-yGP)<0)nft=[];else{for(var bBt=yGP;bBt<KRP;bBt+=.25)JGt.push(bBt);nft=JGt}var jDm=nft.map(function(S){S=S*60*60;return{secondsSinceMidnight:S,text:(new CK(7)).format(new Date(0,0,0,0,0,S))}});var rGm;var qQ=function(){var S=_.w.apply(this,arguments)||this;S.skipNextOpenDialog=!1;S.errorMessage="";return S};
_.r(qQ,_.w);_.M=qQ.prototype;_.M.attached=function(){var S=this,p=new MutationObserver(function(){S.JSC$13602_calendarMain.scrollHeight>0&&(p.disconnect(),S.calendarConfig&&S.calendarConfig.selectedDate&&S.scrollToDate())});
p.observe(this.JSC$13602_calendarMain,{childList:!0,subtree:!0});window.setTimeout(function(){p.disconnect()},1E3)};
_.M.openPicker=function(){this.skipNextOpenDialog?this.skipNextOpenDialog=!1:(this.dialog.positionTarget=this.dropdownButton,this.dialog.open())};
_.M.onDateTextChange=function(){if(this.calendarConfig){var S=this.validateDateText();S.isValid?(this.textbox.removeAttribute("invalid"),this.commitDate(S.details)):this.textbox.setAttribute("invalid","")}};
_.M.handleDayClick=function(S){S.model.day.date&&(this.commitDate(S.model.day.date),this.dialog.close())};
_.M.scrollToDate=function(){if(this.calendarConfig&&this.calendarConfig.selectedDate&&this.renderData){var S=vIG(this.calendarConfig.selectedDate,this.renderData);S!==void 0&&this.JSC$13602_calendarMain.scrollToIndex(S)}};
_.M.scrollToNextMonth=function(){this.JSC$13602_calendarMain.scrollToIndex(this.JSC$13602_calendarMain.firstVisibleIndex+1)};
_.M.scrollToPrevMonth=function(){this.JSC$13602_calendarMain.firstVisibleIndex===0&&this.JSC$13602_calendarMain.scrollTo(0,0);this.JSC$13602_calendarMain.scrollToIndex(this.JSC$13602_calendarMain.firstVisibleIndex-1)};
_.M.onFormSubmit=function(S){S.preventDefault();this.calendarConfig&&(S=this.validateDateText(),S.isValid&&(this.commitDate(S.details),this.dialog.close()))};
_.M.onEscOrClickingOutside=function(S){S=S.detail.path&&!!S.detail.path.length&&S.detail.path[0];if(S.classList.contains("ytd-calendar-date-picker")){S===this.dropdownButton&&(this.skipNextOpenDialog=!0);for(var p=0;p<this.dropdownButton.children.length;p++)this.dropdownButton.children[p]===S&&(this.skipNextOpenDialog=!0);if(!this.skipNextOpenDialog)return}S=this.textbox.value!==this.dateText;p=this.validateDateText();S&&p.isValid&&this.commitDate(p.details);this.dialog.close();this.textbox.value=
this.dateText};
_.M.commitDate=function(S){this.calendarConfig&&(this.set("calendarConfig.selectedDate",S),_.cv(this.hostElement,"ytd-calendar-date-selected",S))};
_.M.validateDateText=function(){if(!this.calendarConfig||!this.textbox)return{isValid:!1,details:void 0};var S=this.textbox.value;var p=new Date;S=(new WRe(2)).parse(S,p,{validate:!0})===S.length?mqR(p):void 0;if(!S)return this.errorMessage=_.Oh("INVALID_DATE_ERROR"),{isValid:!1,details:void 0};p=this.calendarConfig.start;var U=this.calendarConfig.end;if(ayk(S,p))return this.errorMessage=_.Oh("ENTER_DATE_OR_LATER",{allowed_date:EIX(p)}),{isValid:!1,details:void 0};if(ayk(U,S))return this.errorMessage=
_.Oh("ENTER_DATE_OR_EARLIER",{allowed_date:EIX(U)}),{isValid:!1,details:void 0};this.errorMessage="";return{isValid:!0,details:S}};
_.$u.Object.defineProperties(qQ.prototype,{dateText:{configurable:!0,enumerable:!0,get:function(){return this.calendarConfig&&this.calendarConfig.selectedDate?EIX(this.calendarConfig.selectedDate):""}},
renderData:{configurable:!0,enumerable:!0,get:function(){if(this.calendarConfig){for(var S=this.calendarConfig,p=[],U=0;U<7;U++)p.push(y4.NARROWWEEKDAYS[(U+QDE)%7]);U=[];for(var Y=new Date(S.start.year,S.start.month);Y.getFullYear()<S.end.year||Y.getFullYear()===S.end.year&&Y.getMonth()<=S.end.month;){var L=U,I=L.push,V=Y.getFullYear(),W=Y.getMonth(),O=S,D=void 0,z=[],Q=Object.freeze({extraCssClass:"invisible",debugClass:""}),J=new Date(V,W),K=mqR(J);J=J.getDay();for(var G=mqR(new Date);K.month===
W;){J!==QDE&&D||(D=Array.from({length:7}).fill(Q),z.push(D));var X={date:{year:V,month:W,day:K.day},extraCssClass:"",debugClass:""};O.selectedDate&&X.date&&lyR(X.date,O.selectedDate)&&(X.extraCssClass+=" selected");if(ayk(K,O.start)||ayk(O.end,K))X.extraCssClass+=" disabled";lyR(K,G)&&(X.extraCssClass+=" today");X.extraCssClass=X.extraCssClass.trim();D[(J-QDE+7)%7]=X;K=C2w(K);J=(J+1)%7}I.call(L,{weeks:z,monthLabel:y4.SHORTMONTHS[W]+" "+V,year:V,month:W,monthLabelExtraCssClass:z[0][2]===Q?"shift-down-label":
""});Y.setMonth(Y.getMonth()+1)}return{months:U,daysOfWeekLabel:p}}}}});
qQ.prototype.onEscOrClickingOutside=qQ.prototype.onEscOrClickingOutside;qQ.prototype.scrollToDate=qQ.prototype.scrollToDate;_.x([_.g(),_.E("design:type",Object)],qQ.prototype,"calendarConfig",void 0);_.x([_.g(),_.E("design:type",Object)],qQ.prototype,"skipNextOpenDialog",void 0);_.x([_.g(),_.E("design:type",Object)],qQ.prototype,"errorMessage",void 0);_.x([_.O2("#textbox"),_.E("design:type",HTMLInputElement)],qQ.prototype,"textbox",void 0);
_.x([_.O2("#calendar-dialog"),_.E("design:type",Object)],qQ.prototype,"dialog",void 0);_.x([_.O2("#calendar-main"),_.E("design:type",Object)],qQ.prototype,"JSC$13602_calendarMain",void 0);_.x([_.O2("#date-picker"),_.E("design:type",HTMLElement)],qQ.prototype,"dropdownButton",void 0);_.x([_.e("calendarConfig.selectedDate"),_.E("design:type",String),_.E("design:paramtypes",[])],qQ.prototype,"dateText",null);
_.x([_.e("calendarConfig","calendarConfig.selectedDate"),_.E("design:type",Object),_.E("design:paramtypes",[])],qQ.prototype,"renderData",null);_.x([_.T4("renderData","calendarConfig.selectedDate"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],qQ.prototype,"scrollToDate",null);_.x([_.Vd("iron-overlay-canceled"),_.E("design:type",Function),_.E("design:paramtypes",[CustomEvent]),_.E("design:returntype")],qQ.prototype,"onEscOrClickingOutside",null);
qQ=_.x([_.FB({disableElementRegistration:!0,is:"ytd-calendar-date-picker",noInjection:!0})],qQ);
_.C(qQ,"ytd-calendar-date-picker",function(){if(rGm!==void 0)return rGm;var S=document.createElement("template");_.h(S,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-calendar-date-picker--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-menu-button class="style-scope ytd-calendar-date-picker">\n  <tp-yt-paper-button id="date-picker" class="dropdown-trigger style-scope ytd-calendar-date-picker" slot="dropdown-trigger" aria-labelledby="date-label-text" on-tap="openPicker">\n    <div id="date-label-text" class="style-scope ytd-calendar-date-picker">[[dateText]]</div>\n    <yt-icon id="label-icon" icon="yt-icons:arrow_drop_down" class="style-scope ytd-calendar-date-picker">\n    </yt-icon>\n  </tp-yt-paper-button>\n</tp-yt-paper-menu-button>\n\n<tp-yt-paper-dialog id="calendar-dialog" dynamic-align="" horizontal-align="left" vertical-align="top" vertical-offset="44" class="style-scope ytd-calendar-date-picker">\n  <div id="control-area" class="style-scope ytd-calendar-date-picker">\n    <form id="date-input" on-submit="onFormSubmit" autocomplete="off" class="style-scope ytd-calendar-date-picker">\n      <tp-yt-paper-input-container aria-label="Enter date" invalid="[[errorMessage]]" no-label-float="" use-v2-underline="" on-input="onDateTextChange" class="style-scope ytd-calendar-date-picker">\n        <tp-yt-iron-input slot="input" bind-value="[[dateText]]" class="style-scope ytd-calendar-date-picker">\n          <input id="textbox" autofocus="" class="style-scope ytd-calendar-date-picker"></tp-yt-iron-input>\n        <tp-yt-paper-input-error slot="add-on" class="style-scope ytd-calendar-date-picker">[[errorMessage]]</tp-yt-paper-input-error>\n      </tp-yt-paper-input-container>\n    </form>\n    <div id="month-controller" class="style-scope ytd-calendar-date-picker">\n      <yt-icon-button id="prev-month" on-tap="scrollToPrevMonth" class="style-scope ytd-calendar-date-picker">\n        <yt-icon icon="yt-icons:chevron_left" class="style-scope ytd-calendar-date-picker"></yt-icon>\n      </yt-icon-button>\n      <yt-icon-button id="next-month" on-tap="scrollToNextMonth" class="style-scope ytd-calendar-date-picker">\n        <yt-icon icon="yt-icons:chevron_right" class="style-scope ytd-calendar-date-picker"></yt-icon>\n      </yt-icon-button>\n    </div>\n  </div>\n  <div class="calendar-container style-scope ytd-calendar-date-picker">\n    <div class="calendar-header style-scope ytd-calendar-date-picker">\n      <template is="dom-repeat" items="[[renderData.daysOfWeekLabel]]" as="dayLabel" class="style-scope ytd-calendar-date-picker">\n        <span class="calendar-header-day style-scope ytd-calendar-date-picker">[[dayLabel]]</span>\n      </template>\n    </div>\n    <tp-yt-iron-list id="calendar-main" as="month" items="[[renderData.months]]" tabindex="-1" class="style-scope ytd-calendar-date-picker">\n      <template class="style-scope ytd-calendar-date-picker">\n        <div class="calendar-month style-scope ytd-calendar-date-picker">\n          <div class$="calendar-month-label [[month.monthLabelExtraCssClass]] style-scope ytd-calendar-date-picker">\n            [[month.monthLabel]]\n          </div>\n          <template is="dom-repeat" items="[[month.weeks]]" as="week" class="style-scope ytd-calendar-date-picker">\n            <div class="calendar-week style-scope ytd-calendar-date-picker">\n              <template is="dom-repeat" items="[[week]]" as="day" class="style-scope ytd-calendar-date-picker">\n                <span class$="calendar-day [[day.extraCssClass]] [[day.debugClass]] style-scope ytd-calendar-date-picker" on-tap="handleDayClick">\n                  [[day.date.day]]\n                </span>\n              </template> \n            </div>\n          </template> \n        </div>\n      </template>\n    </tp-yt-iron-list> \n  </div>\n</tp-yt-paper-dialog>\n');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);return rGm=S},{mode:2});var G$H=_.Oh("UTC_OFFSET_FORMAT",{utc_offset:(new CK("Z")).format(new Date)}),h3H=(new Date).getTimezoneOffset()*-60,R3j=new Date,FRt,XuH=fK(R3j.getTimezoneOffset());FRt=mwm(vdj(XuH,R3j));var P_q=_.Oh("LOCAL_TIME_GMT_LABEL",{gmt_text:FRt.replace("+0","+").replace("-0","-").replace(":00","")}),Ag=function(){var S=_.w.apply(this,arguments)||this;S.selectedTimeIndex=0;S.selectedTimezoneIndex=0;S.timeOfDayOptions=jDm;return S};
_.r(Ag,_.w);_.M=Ag.prototype;_.M.configureRendererStamper=function(){return{"data.dismissButton":{id:"cancel-button-wrapper",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.M.updateDefaultSelectedValue=function(){if(this.timeZones&&this.timeZones.length&&this.data){var S=xqe();if(this.data.defaultTimeSec===void 0||isNaN(Number(this.data.defaultTimeSec)))this.calendarConfig=S,this.selectedTimeIndex=0;else{var p=oIe(Number(this.data.defaultTimeSec),this.timeZones[0]);this.calendarConfig=Object.assign({},S,{selectedDate:p.date});this.selectedTimeIndex=this.timeOfDayOptions.findIndex(function(U){return U.secondsSinceMidnight===p.secondsSinceMidnight})}this.selectedTimezoneIndex=
0;
this.selectedDate=this.calendarConfig.selectedDate}};
_.M.onDatePicked=function(S){this.selectedDate=S.detail};
_.M.onCancelButtonTap=function(){this.data&&this.data.dismissButton&&_.cv(this.hostElement,"ytd-date-time-selection-cancelled")};
_.M.onDateTimeTimezoneChange=function(){if(this.selectedTimezone&&this.selectedTime&&this.selectedDate){var S=this.selectedDate;S=new Date(S.year,S.month,S.day);_.cv(this.hostElement,"ytd-date-time-selection-update",Math.floor(S.getTime()/1E3)+this.selectedTime.secondsSinceMidnight-(Number(this.selectedTimezone.utcOffsetSec)+S.getTimezoneOffset()*60))}};
_.M.getTimezoneFormat=function(S){return S.localizedDisplayText?S.localizedDisplayText:_.Oh("TIMEZONE_FORMAT",{utc_offset_text:""+S.localizedUtcOffset,city_name:""+S.localizedName})};
_.M.updateSelectedTimeIndexFromBinding=function(S){this.selectedTimeIndex=S.detail.value};
_.M.updateSelectedTimezoneIndexFromBinding=function(S){this.selectedTimezoneIndex=S.detail.value};
_.$u.Object.defineProperties(Ag.prototype,{timeZones:{configurable:!0,enumerable:!0,get:function(){if(this.data){var S=this.data.timezoneOptions;var p={name:"Etc/Unknown",localizedName:_.Oh("LOCAL_TIME_LABEL"),localizedUtcOffset:G$H,utcOffsetSec:""+h3H,localizedDisplayText:P_q};S?S.length&&S[0].name!==p.name&&(S[0].localizedDisplayText||(p.localizedDisplayText=""),S.unshift(p)):S=[p];return S}}},
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]}}});
Ag.prototype.onDateTimeTimezoneChange=Ag.prototype.onDateTimeTimezoneChange;Ag.prototype.onDatePicked=Ag.prototype.onDatePicked;Ag.prototype.updateDefaultSelectedValue=Ag.prototype.updateDefaultSelectedValue;_.x([_.g(),_.E("design:type",Object)],Ag.prototype,"data",void 0);_.x([_.g(),_.E("design:type",Object)],Ag.prototype,"calendarConfig",void 0);_.x([_.g(),_.E("design:type",Object)],Ag.prototype,"selectedDate",void 0);_.x([_.g(),_.E("design:type",Object)],Ag.prototype,"selectedTimeIndex",void 0);
_.x([_.g(),_.E("design:type",Object)],Ag.prototype,"selectedTimezoneIndex",void 0);_.x([_.O2("#time-listbox"),_.E("design:type",Object)],Ag.prototype,"timeListBox",void 0);_.x([_.O2("#timezone-listbox"),_.E("design:type",Object)],Ag.prototype,"timezoneListBox",void 0);_.x([_.F(_.qH.YtRendererstamperBehavior),_.E("design:type",Object)],Ag.prototype,"rendererStamperBehavior",void 0);_.x([_.e("data.timezoneOptions"),_.E("design:type",Object),_.E("design:paramtypes",[])],Ag.prototype,"timeZones",null);
_.x([_.z4("data","timeZones"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],Ag.prototype,"updateDefaultSelectedValue",null);_.x([_.e("selectedTimezoneIndex","timeZones"),_.E("design:type",Object),_.E("design:paramtypes",[])],Ag.prototype,"selectedTimezone",null);_.x([_.e("selectedTimeIndex"),_.E("design:type",Object),_.E("design:paramtypes",[])],Ag.prototype,"selectedTime",null);
_.x([_.Vd("ytd-calendar-date-selected"),_.E("design:type",Function),_.E("design:paramtypes",[CustomEvent]),_.E("design:returntype")],Ag.prototype,"onDatePicked",null);_.x([_.T4("selectedTimezone","selectedTime","selectedDate"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],Ag.prototype,"onDateTimeTimezoneChange",null);Ag=_.x([_.f({disableElementRegistration:!0,is:"ytd-date-time-picker-renderer"})],Ag);
_.C(Ag,"ytd-date-time-picker-renderer",function(){if(z3c!==void 0)return z3c;var S=document.createElement("template");_.h(S,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-date-time-picker-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="cancel-button-wrapper" hidden="[[!data.dismissButton]]" on-tap="onCancelButtonTap" class="style-scope ytd-date-time-picker-renderer">\n</div>\n<div id="hint" hidden="[[!data.header]]" class="style-scope ytd-date-time-picker-renderer">\n  <yt-formatted-string text="[[data.header]]" class="style-scope ytd-date-time-picker-renderer"></yt-formatted-string>\n</div>\n<div id="picker-component" class="style-scope ytd-date-time-picker-renderer">\n  <ytd-calendar-date-picker calendar-config="[[calendarConfig]]" class="style-scope ytd-date-time-picker-renderer"></ytd-calendar-date-picker>\n  <tp-yt-paper-menu-button dynamic-align="" horizontal-align="left" vertical-align="top" vertical-offset="44" class="style-scope ytd-date-time-picker-renderer">\n    <tp-yt-paper-button id="time-picker" class="dropdown-trigger style-scope ytd-date-time-picker-renderer" slot="dropdown-trigger" aria-labelledby="time-label-text">\n      <div id="time-label-text" class="style-scope ytd-date-time-picker-renderer">[[selectedTime.text]]</div>\n      <yt-icon id="label-icon" icon="yt-icons:arrow_drop_down" class="style-scope ytd-date-time-picker-renderer">\n      </yt-icon>\n    </tp-yt-paper-button>\n    <tp-yt-paper-listbox id="time-listbox" class="dropdown-content style-scope ytd-date-time-picker-renderer" slot="dropdown-content" selected="[[selectedTimeIndex]]" on-selected-changed="updateSelectedTimeIndexFromBinding">\n      <template is="dom-repeat" items="[[timeOfDayOptions]]" class="style-scope ytd-date-time-picker-renderer">\n        <tp-yt-paper-item class="style-scope ytd-date-time-picker-renderer">\n          [[item.text]]\n        </tp-yt-paper-item>\n      </template>\n    </tp-yt-paper-listbox>\n  </tp-yt-paper-menu-button>\n  <tp-yt-paper-menu-button dynamic-align="" horizontal-align="left" vertical-align="top" vertical-offset="44" class="style-scope ytd-date-time-picker-renderer">\n    <tp-yt-paper-button id="timezone-picker" class="dropdown-trigger style-scope ytd-date-time-picker-renderer" slot="dropdown-trigger" aria-labelledby="timezone-label-text">\n      <div id="timezone-label-text" class="style-scope ytd-date-time-picker-renderer">[[getTimezoneFormat(selectedTimezone)]]</div>\n      <yt-icon id="label-icon" icon="yt-icons:arrow_drop_down" class="style-scope ytd-date-time-picker-renderer">\n      </yt-icon>\n    </tp-yt-paper-button>\n    <tp-yt-paper-listbox id="timezone-listbox" class="dropdown-content style-scope ytd-date-time-picker-renderer" slot="dropdown-content" selected="[[selectedTimezoneIndex]]" on-selected-changed="updateSelectedTimezoneIndexFromBinding">\n      <template is="dom-repeat" items="[[timeZones]]" class="style-scope ytd-date-time-picker-renderer">\n        <tp-yt-paper-item class="style-scope ytd-date-time-picker-renderer">\n          [[getTimezoneFormat(item)]]\n        </tp-yt-paper-item>\n      </template>\n    </tp-yt-paper-listbox>\n  </tp-yt-paper-menu-button>\n</div>\n');
S.content.insertBefore(_.t().content.cloneNode(!0),S.content.firstChild);return z3c=S},{mode:1});var ZBH;var tg=function(){var S=_.w.apply(this,arguments)||this;S.boundOnTapDismissButton=function(){S.dismissTapHandler()};
S.dismissButtonOverrides={size:"XS"};return S};
_.r(tg,_.w);tg.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}}}}}};
tg.prototype.dismissTapHandler=function(){_.cv(this.hostElement,"yt-backstage-attachment-dismissed")};
tg.prototype.computeAttachmentType=function(S){return S?S.backstageImageRenderer?"image":S.videoRenderer?"video":"none":"none"};
_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],tg.prototype,"ytRendererBehavior",void 0);_.x([_.F(_.qH.YtRendererstamperBehavior),_.E("design:type",Object)],tg.prototype,"ytRendererstamperBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],tg.prototype,"attachmentPreview",void 0);_.x([_.g(),_.E("design:type",Object)],tg.prototype,"dismissButton",void 0);_.x([_.g(),_.E("design:type",Object)],tg.prototype,"boundOnTapDismissButton",void 0);
_.x([_.g(),_.E("design:type",Object)],tg.prototype,"dismissButtonOverrides",void 0);_.x([_.g({reflectToAttribute:!0,readOnly:!0,computed:"computeAttachmentType(attachmentPreview)"}),_.E("design:type",String)],tg.prototype,"attachmentType",void 0);tg=_.x([_.f({disableElementRegistration:!0,is:"ytd-backstage-dismissable-attachment"})],tg);
_.C(tg,"ytd-backstage-dismissable-attachment",function(){if(ZBH!==void 0)return ZBH;var S=document.createElement("template");_.h(S,'\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');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);return ZBH=S},{mode:1});var sDq;var cn=function(){var S=_.w.apply(this,arguments)||this;S.selectedVideoId=void 0;S.picker=void 0;S.dismissButtonOverrides={size:"XS"};S.actionMap={"yt-add-video-preview-action":"handleAddVideoPreviewAction"};return S};
_.r(cn,_.w);_.M=cn.prototype;_.M.onServiceRequestCompleted=function(S){S.stopPropagation()};
_.M.handleAddVideoPreviewAction=function(S){S=this.get("addVideoPreviewAction",S);this.onGetVideoPreviewSuccess(S)};
_.M.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}}}}}};
_.M.onLaunchVideoPicker=function(S){var p=this,U=_.mA(this.get("addVideoLinkAction.title",S)),Y=this.get("addVideoLinkAction.onePickHostId",S);this.getVideoPreviewCommand=this.get("addVideoLinkAction.onVideoSelectCommand",S);Y&&(this.picker||(U=_.EYd(_.Kge(Y).setTitle(U).addView(a1Q()).addView(l1m()),function(L){p.onPickVideo(L)}),this.get("addVideoLinkAction.hideYourYoutubeVideos",S)||U.addView("youtube"),this.picker=U.build()),this.picker.setVisible(!0))};
_.M.onPickVideo=function(S){if(S)if(S.action==="cancel")_.cv(this.hostElement,"yt-video-link-button-cancel");else if(S.action==="picked"){S=S.docs;if(!S||S.length===0)this.onGetVideoPreviewError("No valid docs in response");this.selectedVideoId=(S=(S==null?0:S.length)?S[0]:void 0)?S.id:void 0;this.setVideoPreview()}};
_.M.setVideoPreview=function(){var S=this;if(this.getVideoPreviewCommand)this.ytComponentBehavior.resolveCommand(this.getVideoPreviewCommand,{form:{video_id:this.selectedVideoId},onError:function(){S.onGetVideoPreviewError("Error executing command")}});
else this.onGetVideoPreviewError("Video preview command not set.")};
_.M.onGetVideoPreviewSuccess=function(S){if(S&&S.videoPreview&&S.cancelButton)this.videoPreview=S.videoPreview,this.cancelButton=S.cancelButton,_.cv(this.hostElement,"yt-video-link-selected",{videoId:this.selectedVideoId});else this.onGetVideoPreviewError("Empty data from ajax")};
_.M.onGetVideoPreviewError=function(){this.cancel()};
_.M.cancel=function(){this.videoPreview=this.cancelButton=this.selectedVideoId=void 0;_.cv(this.hostElement,"yt-video-link-cancel")};
_.M.isValid=function(){return!(!this.videoPreview||!this.selectedVideoId)};
cn.prototype.onServiceRequestCompleted=cn.prototype.onServiceRequestCompleted;_.x([_.F(_.qH.YtRendererstamperBehavior),_.E("design:type",Object)],cn.prototype,"ytRendererstamperBehavior",void 0);_.x([_.F(_.Aj.YtActionHandlerBehavior),_.E("design:type",Object)],cn.prototype,"ytActionHandlerBehavior",void 0);_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],cn.prototype,"ytRendererBehavior",void 0);
_.x([_.F(_.eL.YtComponentBehavior),_.E("design:type",Object)],cn.prototype,"ytComponentBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],cn.prototype,"videoPreview",void 0);_.x([_.g(),_.E("design:type",Object)],cn.prototype,"cancelButton",void 0);_.x([_.g(),_.E("design:type",Object)],cn.prototype,"getVideoPreviewCommand",void 0);_.x([_.g(),_.E("design:type",Object)],cn.prototype,"dismissButtonOverrides",void 0);
_.x([_.Vd("yt-service-request-completed"),_.E("design:type",Function),_.E("design:paramtypes",[CustomEvent]),_.E("design:returntype")],cn.prototype,"onServiceRequestCompleted",null);cn=_.x([_.f({disableElementRegistration:!0,is:"ytd-backstage-video-link-attachment"})],cn);
_.C(cn,"ytd-backstage-video-link-attachment",function(){if(sDq!==void 0)return sDq;var S=document.createElement("template");_.h(S,'\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');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);return sDq=S},{mode:1});var e3m;var gfw;var ukI;var S7=function(){return _.w.apply(this,arguments)||this};
_.r(S7,_.w);S7.prototype.dataChanged=function(){this.active=!1};
S7.prototype.onTap=function(){_.cv(this.hostElement,"yt-select-emoji-suggestion",this.data)};
S7.prototype.identity=function(S){return S};
_.$u.Object.defineProperties(S7.prototype,{imageSrc:{configurable:!0,enumerable:!0,get:function(){var S,p,U,Y;if((S=this.data)==null?0:(p=S.image)==null?0:(U=p.thumbnails)==null?0:(Y=U[0])==null?0:Y.url)return S=this.data.image.thumbnails[0].url,S.startsWith("data:image/svg+xml")?kq(S):_.JA(S)}}});
S7.prototype.dataChanged=S7.prototype.dataChanged;_.x([_.g(),_.E("design:type",Object)],S7.prototype,"data",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Boolean)],S7.prototype,"active",void 0);_.x([_.z4("data"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],S7.prototype,"dataChanged",null);_.x([_.e("data"),_.E("design:type",Object),_.E("design:paramtypes",[])],S7.prototype,"imageSrc",null);
S7=_.x([_.f({disableElementRegistration:!0,is:"ytd-emoji-suggestion"})],S7);
_.C(S7,"ytd-emoji-suggestion",function(){if(ukI!==void 0)return ukI;var S=document.createElement("template");_.h(S,'\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');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);return ukI=S},{mode:1});var wut=/.*([:@#].*?)$/,pP=function(){var S=_.w.apply(this,arguments)||this;S.suggestions=[];S.suggestionIndex=-1;S.JSC$13630_lastSuggestionRange=null;return S};
_.r(pP,_.w);_.M=pP.prototype;_.M.configureRendererStamper=function(){return{suggestions:{id:"dropdown-content",mapping:{suggestion:"ytd-emoji-suggestion"},reuseComponents:!0}}};
_.M.getSuggestions=function(S){var p=[],U=y5c(this.emojiManager,S.substr(0,3));if(U)for(var Y in U)if(Y.toLocaleLowerCase().indexOf(S)===0){var L=U[Y];if(L&&L.emojiId){L=PV(this.emojiManager,L.emojiId);var I=void 0,V=void 0,W=void 0,O=void 0,D=((I=L)==null?0:I.isCustomEmoji)?(V=L)==null?void 0:(W=V.shortcuts)==null?void 0:W[0]:(O=L)==null?void 0:O.emojiId;I=void 0;p.push({suggestion:{image:(I=L)==null?void 0:I.image,alt:D,text:Y}});if(p.length>=64)break}}return p?p.sort(function(z,Q){return Q.suggestion.text<
z.suggestion.text?-1:Q.suggestion.text===z.suggestion.text?0:1}):null};
_.M.insertSuggestion=function(S){_.cv(this.hostElement,"yt-insert-suggestion",{range:this.JSC$13630_lastSuggestionRange,text:S.alt});this.dropdown.opened=!1};
_.M.updateSuggestionsAtCaret=function(S){this.updateSuggestions(S,this.retrieveTextBeforeRange(S))};
_.M.offsetStartOfRangeBy=function(S,p){S.startOffset>=p&&S.setStart(S.startContainer,S.startOffset-p)};
_.M.updateSuggestions=function(S,p){var U=this;this.JSC$13630_lastSuggestionRange&&(this.JSC$13630_lastSuggestionRange.detach(),this.JSC$13630_lastSuggestionRange=null);if((p=wut.exec(p))&&p.length&&(p=p[p.length-1].toLocaleLowerCase(),p.length>2||p===":_")&&(this.offsetStartOfRangeBy(S,p.length),this.JSC$13630_lastSuggestionRange=S,(S=this.getSuggestions(p))&&S.length)){this.suggestions=S;_.oH(this,function(){U.dropdownContent.scrollTop=16777216});
this.dropdown.opened?this.dropdown.notifyResize():this.dropdown.opened=!0;this.suggestionIndex=-1;this.changeSuggestionIndex(S.length-1);return}this.dropdown.opened=!1};
_.M.onKeyDown=function(S){if(this.dropdown.opened)switch(S.key){case "Escape":this.dropdown.opened=!1;S.stopPropagation();break;case "Tab":this.insertSuggestion(this.suggestions[this.suggestionIndex].suggestion);S.preventDefault();break;case "ArrowUp":this.changeSuggestionIndex(this.suggestionIndex-1);S.preventDefault();break;case "ArrowDown":this.changeSuggestionIndex(this.suggestionIndex+1),S.preventDefault()}};
_.M.onKeyUp=function(S,p){switch(S.key){case "ArrowLeft":case "ArrowRight":this.updateSuggestionsAtCaret(p);break;case "ArrowUp":case "ArrowDown":this.dropdown.opened||this.updateSuggestionsAtCaret(p)}};
_.M.onKeyPress=function(S){S.key==="Enter"&&this.dropdown.opened&&(this.insertSuggestion(this.suggestions[this.suggestionIndex].suggestion),S.preventDefault())};
_.M.changeSuggestionIndex=function(S){this.dropdown.opened&&(this.suggestionIndex>=0&&this.suggestionIndex<this.dropdownContent.children.length&&(this.dropdownContent.children[this.suggestionIndex].active=!1),this.suggestionIndex=(S+this.suggestions.length)%this.suggestions.length,S=this.dropdownContent.children[this.suggestionIndex],S.active=!0,this.dropdownContent.scrollTop=S.offsetTop)};
_.M.retrieveTextBeforeRange=function(S){var p=S.startContainer;return p&&p.nodeType===Node.TEXT_NODE?p.textContent.substr(0,S.startOffset):""};
pP.prototype.onKeyPress=pP.prototype.onKeyPress;pP.prototype.onKeyUp=pP.prototype.onKeyUp;pP.prototype.onKeyDown=pP.prototype.onKeyDown;_.x([_.F(_.qH.YtRendererstamperBehavior),_.E("design:type",Object)],pP.prototype,"ytRendererstamperBehavior",void 0);_.x([_.g(),_.E("design:type",Array)],pP.prototype,"suggestions",void 0);_.x([_.g(),_.E("design:type",_.Ft)],pP.prototype,"emojiManager",void 0);_.x([_.g(),_.E("design:type",Number)],pP.prototype,"verticalSuggestionsOffset",void 0);
_.x([_.O2("#dropdown"),_.E("design:type",Object)],pP.prototype,"dropdown",void 0);_.x([_.O2("#dropdown-content"),_.E("design:type",HTMLDivElement)],pP.prototype,"dropdownContent",void 0);_.x([_.Vd("keydown"),_.E("design:type",Function),_.E("design:paramtypes",[KeyboardEvent]),_.E("design:returntype")],pP.prototype,"onKeyDown",null);_.x([_.Vd("keyup"),_.E("design:type",Function),_.E("design:paramtypes",[KeyboardEvent,Range]),_.E("design:returntype")],pP.prototype,"onKeyUp",null);
_.x([_.Vd("keypress"),_.E("design:type",Function),_.E("design:paramtypes",[KeyboardEvent]),_.E("design:returntype")],pP.prototype,"onKeyPress",null);pP=_.x([_.f({disableElementRegistration:!0,is:"ytd-emoji-input"})],pP);
_.C(pP,"ytd-emoji-input",function(){if(gfw!==void 0)return gfw;var S=document.createElement("template");_.h(S,'\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');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);return gfw=S},{mode:2});var lZq;var U6=function(){var S=_.w.apply(this,arguments)||this;S.hasMaxOptions=!1;return S};
_.r(U6,_.w);_.M=U6.prototype;_.M.configureRendererStamper=function(){return{"data.addOptionButton":{id:"add-option",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.M.dataChanged=function(){this.pollOptions=this.setPollOptions(this.data)};
_.M.setPrefilledChoices=function(S){var p=this;this.set("pollOptions",[]);var U;for(U=0;U<Math.min(S.length,this.data.maxPollOptions);U++)this.push("pollOptions",S[U].substring(0,this.data.maxPollOptionChars));for(;U<this.data.minPollOptions;U++)this.push("pollOptions","");this.hasMaxOptions=U>=this.data.maxPollOptions;_.oH(this,function(){for(var Y=p.pollOptions,L=_.tB(p.hostElement).querySelectorAll(".poll-option-input"),I=0;I<L.length;I++)L[I].value=Y[I]})};
_.M.focusChanged=function(){_.Ms(this.hostElement)};
_.M.onInput=function(){var S=this;_.w9(this,"onInput",function(){S.isValid()?_.cv(S.hostElement,"yt-commentbox-post-enable"):_.cv(S.hostElement,"yt-commentbox-post-disable")},300)};
_.M.setPollOptions=function(){var S=[],p,U=((p=this.data)==null?0:p.minPollOptions)?this.data.minPollOptions:0;for(p=0;p<U;p++)S.push("");return S};
_.M.addPollOption=function(){var S=this;_.cv(this.hostElement,"yt-commentbox-post-disable");this.push("pollOptions","");this.data.maxPollOptions&&this.pollOptions.length===this.data.maxPollOptions&&(this.hasMaxOptions=!0);_.PA.addLowPriorityJob(function(){var p;(p=_.tB(S.hostElement).querySelector(".poll-option:last-of-type > .poll-option-input"))==null||p.focus()})};
_.M.onRemovePollOption=function(S){this.setPollOptionsFromInputs();this.data.minPollOptions&&this.pollOptions.length===this.data.minPollOptions?(this.clearPollOptions(),_.cv(this.hostElement,"yt-poll-attachment-dismiss")):(S=this.repeat.indexForElement(S.target.parentNode),S!==null&&(this.splice("pollOptions",S,1),this.hasMaxOptions=!1,this.areAllOptionsValid()&&(this.repeat.render(),_.cv(this.hostElement,"yt-commentbox-post-enable"))))};
_.M.isValid=function(){this.setPollOptionsFromInputs();return this.areAllOptionsValid()};
_.M.areAllOptionsValid=function(){if(this.data.minPollOptionChars)for(var S=0,p=this.pollOptions.length;S<p;S++)if(this.pollOptions[S].length<Number(this.data.minPollOptionChars))return!1;return!0};
_.M.getPollOptions=function(){return this.pollOptions};
_.M.setPollOptionsFromInputs=function(){for(var S=_.tB(this.hostElement).querySelectorAll(".poll-option-input"),p=0;p<S.length;p++)this.pollOptions[p]=S[p].value.trim()};
_.M.clearPollOptions=function(){var S=_.tB(this.hostElement).querySelectorAll(".poll-option-input");S=_.d(S);for(var p=S.next();!p.done;p=S.next())p.value.value="";this.pollOptions=this.setPollOptions(this.data);this.hasMaxOptions=!1};
_.M.getSimpleString=function(S){return _.mA(S)};
_.M.updateValueFromBinding=function(S){if(S.target&&this.pollOptions){var p=Array.from(_.tB(this.hostElement).querySelectorAll("tp-yt-paper-input.poll-option-input")).indexOf(S.target);if(p>=0){var U;this.pollOptions[p]=(U=S.detail.value)!=null?U:"";this.notifyPath("pollOptions."+p)}}};
U6.prototype.dataChanged=U6.prototype.dataChanged;_.x([_.F(_.qH.YtRendererstamperBehavior),_.E("design:type",Object)],U6.prototype,"ytRendererstamperBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],U6.prototype,"data",void 0);_.x([_.g(),_.E("design:type",Array)],U6.prototype,"pollOptions",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],U6.prototype,"hasMaxOptions",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Boolean)],U6.prototype,"enableCreationBox",void 0);
_.x([_.O2("#repeat"),_.E("design:type",r9)],U6.prototype,"repeat",void 0);_.x([_.z4("data"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],U6.prototype,"dataChanged",null);U6=_.x([_.f({disableElementRegistration:!0,is:"ytd-poll-attachment"})],U6);
_.C(U6,"ytd-poll-attachment",function(){if(lZq!==void 0)return lZq;var S=document.createElement("template");_.h(S,'\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');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);return lZq=S},{mode:2});var aZt;var fZj;var C_d;var xem;var Y_=function(){return _.w.apply(this,arguments)||this};
_.r(Y_,_.w);_.$u.Object.defineProperties(Y_.prototype,{ariaSelected:{configurable:!0,enumerable:!0,get:function(){return this.focused?"true":null}}});
_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],Y_.prototype,"rendererBehaviors",void 0);_.x([_.g(),_.E("design:type",Object)],Y_.prototype,"data",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Boolean)],Y_.prototype,"focused",void 0);_.x([_.g({reflectToAttribute:!0}),_.e("focused"),_.E("design:type",Object),_.E("design:paramtypes",[])],Y_.prototype,"ariaSelected",null);Y_=_.x([_.FB({is:"yt-user-mention-suggestion-renderer",disableElementRegistration:!0})],Y_);
_.C(Y_,"yt-user-mention-suggestion-renderer",function(){if(xem===void 0){var S=document.createElement("template");_.h(S,'\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');
S.content.insertBefore(_.t().content.cloneNode(!0),S.content.firstChild);var p=S.content,U=p.insertBefore;C_d===void 0&&(C_d=document.createElement("template"));var Y=C_d;U.call(p,Y.content.cloneNode(!0),S.content.firstChild);xem=S}S=xem;return S},{mode:2});var Efl;var meQ;var LP=function(){var S=_.w.apply(this,arguments)||this;S.focusedSuggestionIndex=-1;return S};
_.r(LP,_.w);_.M=LP.prototype;_.M.created=function(){this.ytRendererBehavior.monitorScroll=!0};
_.M.clearFocusedSuggestion=function(){this.focusedSuggestionIndex=-1;this._setFocusedSuggestionId(void 0)};
_.M.setFocusedSuggestionIndex=function(S){!this.data||!this.data.suggestions||S<0||S>=this.data.suggestions.length||(this.focusedSuggestionIndex=S,S=this.getSuggestionId(S),this._setFocusedSuggestionId(S))};
_.M.advanceSuggestion=function(S){this.focusedSuggestionIndex===-1||S!==-1&&S!==1||(this.setFocusedSuggestionIndex(this.focusedSuggestionIndex+S),this.ensureSuggestionVisible(this.focusedSuggestionIndex))};
_.M.ensureSuggestionVisible=function(S){S=this.getSuggestionId(S);S=_.tB(this.hostElement).querySelector("[id="+S+"]");S!=null&&(S.offsetTop<this.hostElement.scrollTop?S.scrollIntoView(!0):S.offsetTop+S.clientHeight>this.hostElement.scrollTop+this.hostElement.clientHeight&&S.scrollIntoView(!1))};
_.M.getSuggestionId=function(S){return"user-mention-suggestion-"+S};
_.M.onSuggestionTap=function(S){var p=_.b(S.model.item,hKm);this.ytRendererBehavior.logExplicitClick(p);_.cv(this.hostElement,"yt-user-mention-suggestion-selected",{data:p,index:S.model.index})};
_.M.onSuggestionMouseMove=function(S){S.model.index!==this.focusedSuggestionIndex&&this.setFocusedSuggestionIndex(S.model.index)};
_.M.isSuggestionFocused=function(S,p){return S===p};
_.M.onDomChange=function(){this.ytRendererBehavior.markDirty()};
_.M.focusedSuggestionIdChangedForBinding=function(){this.hostElement.dispatchEvent(new _.uz("focused-suggestion-id-changed",this.focusedSuggestionId))};
LP.prototype.focusedSuggestionIdChangedForBinding=LP.prototype.focusedSuggestionIdChangedForBinding;LP.prototype.onDomChange=LP.prototype.onDomChange;_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],LP.prototype,"ytRendererBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],LP.prototype,"data",void 0);_.x([_.g(),_.E("design:type",Object)],LP.prototype,"focusedSuggestionIndex",void 0);_.x([_.g({readOnly:!0}),_.E("design:type",String)],LP.prototype,"focusedSuggestionId",void 0);
_.x([_.Vd("dom-change"),_.E("design:type",Function),_.E("design:paramtypes",[CustomEvent]),_.E("design:returntype")],LP.prototype,"onDomChange",null);_.x([_.T4("focusedSuggestionId"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],LP.prototype,"focusedSuggestionIdChangedForBinding",null);LP=_.x([_.FB({is:"yt-user-mention-suggestions-dropdown",disableElementRegistration:!0})],LP);
_.C(LP,"yt-user-mention-suggestions-dropdown",function(){if(meQ===void 0){var S=document.createElement("template");_.h(S,'\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');
S.content.insertBefore(_.t().content.cloneNode(!0),S.content.firstChild);var p=S.content,U=p.insertBefore;Efl===void 0&&(Efl=document.createElement("template"));var Y=Efl;U.call(p,Y.content.cloneNode(!0),S.content.firstChild);meQ=S}S=meQ;return S},{mode:2});var Mr=function(){var S=_.w.apply(this,arguments)||this;S.suggestionsResponse=null;S.activeMention=null;S.selectionChangeListener=S.onSelectionChange.bind(S);S.handlesEnabled=_.y("enable_handles_in_mention_suggest_posts");S.handlesInMentionSuggestionsEnabled=_.y("handles_in_mention_suggest_posts");S.zeroPrefixMentionSuggestionEnabled=_.y("enable_zero_prefix_mention_suggestion_web");S.pendingQuery=null;S.flowNonce=null;return S};
_.r(Mr,_.w);_.M=Mr.prototype;_.M.beforeRegister=function(){this.ironA11yKeysBehavior.keyBindings={up:"focusPreviousSuggestion",down:"focusNextSuggestion","tab enter":"selectFocusedSuggestion",esc:"cancelActiveMention"}};
_.M.attached=function(){document.addEventListener("selectionchange",this.selectionChangeListener)};
_.M.detached=function(){document.removeEventListener("selectionchange",this.selectionChangeListener)};
_.M.hasSuggestions=function(S){return!!(S&&S.suggestions&&S.suggestions.length>0)};
_.M.onInput=function(){var S=this;if(this.suggestionsEndpoint){if(!this.activeMention&&(this.maybeStartSuggest(),!this.zeroPrefixMentionSuggestionEnabled))return;if(this.activeMention){this.updateActiveMention();var p=this.suggestionsResponse!=null&&!this.hasSuggestions(this.suggestionsResponse),U=this.activeMention.JSC$9248_getText().slice(-1)===" ",Y=this.activeMention.JSC$9248_getText().slice(-2,-1)===" ",L="@\ufe6b\uff20+\ufe62\uff0b".indexOf(this.activeMention.JSC$9248_getText().slice(-2,-1))>=
0;L=this.zeroPrefixMentionSuggestionEnabled&&L;if(this.activeMention.isCollapsed()||(p||Y||L)&&U)this.cancelActiveMention();else{var I=this.activeMention.JSC$9248_getText().substring(1).trim();this.logGELEvent("USER_MENTION_AUTO_COMPLETE_BOX_EVENT_TYPE_INPUT_TEXT_UPDATED");_.w9(this,"requestSuggestions",function(){S.requestSuggestions(I)},100)}}}};
_.M.onServiceRequestSent=function(S){S.stopPropagation()};
_.M.onServiceRequestCompleted=function(S){S.stopPropagation();S=S.detail.data;S.query&&(!this.pendingQuery||this.pendingQuery!==S.query)||!this.zeroPrefixMentionSuggestionEnabled&&S.query===""||this.zeroPrefixMentionSuggestionEnabled&&this.activeMention==null||(this.pendingQuery=null,this.suggestionsResponse=S,this.hasSuggestions(S)&&this.dropdown.setFocusedSuggestionIndex(0))};
_.M.onServiceRequestError=function(S){S.stopPropagation()};
_.M.onUserMentionSuggestionSelected=function(S){this.selectSuggestion(S.detail.data,S.detail.index)};
_.M.onSelectionChange=function(){if(this.activeMention){var S=_.Dp(),p=this.activeMention.JSC$9248_containsRange(S);S=S&&this.containsHelper(this.dropdown,S.getContainer());p||S||this.cancelActiveMention()}};
_.M.containsHelper=function(S,p){var U;if(((U=window.ShadyDOM)==null?void 0:U.noPatch)===!0)return S.contains(p);for(;p;){if(p===S)return!0;p=p instanceof ShadowRoot?p.host:p.parentNode}return!1};
_.M.maybeStartSuggest=function(){var S=_.Dp();if(S&&S.isCollapsed()){var p=S.JSC$9248_getStartNode(),U=S.JSC$9248_getStartOffset();if(p instanceof Text&&!(U<1)){var Y=p.textContent;!(Y=Y&&Y.charAt(U-1))||"@\ufe6b\uff20+\ufe62\uff0b".indexOf(Y)<0||(this.activeMention=_.XD(p,U-1,S.JSC$9248_getEndNode(),S.JSC$9248_getEndOffset()),this.flowNonce=h8(16),this.logGELEvent("USER_MENTION_AUTO_COMPLETE_BOX_EVENT_TYPE_MENTION_FLOW_STARTED"))}}};
_.M.updateActiveMention=function(){if(this.activeMention){var S=_.Dp();S&&S.isCollapsed()&&(this.activeMention=_.XD(this.activeMention.JSC$9248_getStartNode(),this.activeMention.JSC$9248_getStartOffset(),S.JSC$9248_getEndNode(),S.JSC$9248_getEndOffset()))}};
_.M.requestSuggestions=function(S){if(this.activeMention){var p={suggestions_query:S};this.pendingQuery=S;_.Yd(this.hostElement,[this.suggestionsEndpoint,p])}};
_.M.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()};
_.M.focusPreviousSuggestion=function(S){this.hasSuggestions(this.suggestionsResponse)&&(this.dropdown.advanceSuggestion(-1),S.preventDefault())};
_.M.focusNextSuggestion=function(S){this.hasSuggestions(this.suggestionsResponse)&&(this.dropdown.advanceSuggestion(1),S.preventDefault())};
_.M.selectFocusedSuggestion=function(S){if(this.hasSuggestions(this.suggestionsResponse)){var p=this.suggestionsResponse.suggestions[this.dropdown.focusedSuggestionIndex];_.b(p,hKm)&&(this.selectSuggestion(_.b(p,hKm),this.dropdown.focusedSuggestionIndex),S.preventDefault())}};
_.M.selectSuggestion=function(S,p){if(S){var U=this.activeMention;if(U){var Y=document.createElement("a");this.handlesInMentionSuggestionsEnabled&&S.handle?_.GX(Y,"\u00a0\u2068@"+S.handle+"\u2069\u00a0"):this.handlesEnabled?_.GX(Y,"\u00a0"+S.displayName+"\u00a0"):_.GX(Y,"\u00a0@"+S.displayName+"\u00a0");hA(Y,"/channel/"+S.channelId);Y.classList.add("yt-formatted-string","yt-simple-endpoint");Y.setAttribute("spellcheck","false");U.isCollapsed()||U.JSC$9248_removeContents();U.insertNode(Y,!0);S=document.createTextNode(" ");
Y.parentNode.insertBefore(S,Y.nextSibling);window.getSelection().collapse(S,1);p={suggestionSelected:{suggestionIndex:p}};if(this.zeroPrefixMentionSuggestionEnabled){var L;p.suggestionSelected.isZeroPrefix=((L=this.suggestionsResponse)==null?void 0:L.query)===""}this.logGELEvent("USER_MENTION_AUTO_COMPLETE_BOX_EVENT_TYPE_SUGGESTION_SELECTED",p);this.cancelActiveMention();_.cv(this.hostElement,"yt-mention-inserted")}}};
_.M.getPositionTarget=function(S){return S&&S.getBrowserRangeObject()};
_.M.onDomChange=function(){this.ironDropdown.refit();this.logGELEvent("USER_MENTION_AUTO_COMPLETE_BOX_EVENT_TYPE_CONTENT_UPDATED")};
_.M.onFocusedSuggestionIdChanged=function(S){var p=_.GFu(this.hostElement)[0];p&&(S.detail.value?p.setAttribute("aria-activedescendant",S.detail.value):p.removeAttribute("aria-activedescendant"))};
_.M.onDropdownOpened=function(){this.logGELEvent("USER_MENTION_AUTO_COMPLETE_BOX_EVENT_TYPE_BOX_OPENED")};
_.M.logGELEvent=function(S,p){S={eventType:S,flowNonce:this.flowNonce,source:"USER_MENTION_AUTO_COMPLETE_SOURCE_BACKSTAGE_POST"};p&&(S=Object.assign(S,p));_.RV("userMentionAutoCompleteBoxEvent",S)};
Mr.prototype.onDomChange=Mr.prototype.onDomChange;Mr.prototype.onUserMentionSuggestionSelected=Mr.prototype.onUserMentionSuggestionSelected;Mr.prototype.onServiceRequestError=Mr.prototype.onServiceRequestError;Mr.prototype.onServiceRequestCompleted=Mr.prototype.onServiceRequestCompleted;Mr.prototype.onServiceRequestSent=Mr.prototype.onServiceRequestSent;Mr.prototype.onInput=Mr.prototype.onInput;_.x([_.F(_.H$),_.E("design:type",Object)],Mr.prototype,"ironA11yKeysBehavior",void 0);
_.x([_.g(),_.E("design:type",Object)],Mr.prototype,"suggestionsEndpoint",void 0);_.x([_.g(),_.E("design:type",Object)],Mr.prototype,"suggestionsResponse",void 0);_.x([_.g(),_.E("design:type",Object)],Mr.prototype,"activeMention",void 0);_.x([_.O2("#dropdown"),_.E("design:type",Object)],Mr.prototype,"dropdown",void 0);_.x([_.O2("#iron-dropdown"),_.E("design:type",Object)],Mr.prototype,"ironDropdown",void 0);
_.x([_.Vd("input"),_.E("design:type",Function),_.E("design:paramtypes",[Event]),_.E("design:returntype")],Mr.prototype,"onInput",null);_.x([_.Vd("yt-service-request-sent"),_.E("design:type",Function),_.E("design:paramtypes",[CustomEvent]),_.E("design:returntype")],Mr.prototype,"onServiceRequestSent",null);_.x([_.Vd("yt-service-request-completed"),_.E("design:type",Function),_.E("design:paramtypes",[CustomEvent]),_.E("design:returntype")],Mr.prototype,"onServiceRequestCompleted",null);
_.x([_.Vd("yt-service-request-error"),_.E("design:type",Function),_.E("design:paramtypes",[CustomEvent]),_.E("design:returntype")],Mr.prototype,"onServiceRequestError",null);_.x([_.Vd("yt-user-mention-suggestion-selected"),_.E("design:type",Function),_.E("design:paramtypes",[CustomEvent]),_.E("design:returntype")],Mr.prototype,"onUserMentionSuggestionSelected",null);
_.x([_.Vd("dom-change"),_.E("design:type",Function),_.E("design:paramtypes",[CustomEvent]),_.E("design:returntype")],Mr.prototype,"onDomChange",null);Mr=_.x([_.FB({is:"yt-user-mention-autosuggest-input",disableElementRegistration:!0})],Mr);
_.C(Mr,"yt-user-mention-autosuggest-input",function(){if(fZj===void 0){var S=document.createElement("template");_.h(S,'\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');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);var p=S.content,U=p.insertBefore;aZt===void 0&&(aZt=document.createElement("template"));var Y=aZt;U.call(p,Y.content.cloneNode(!0),S.content.firstChild);fZj=S}S=fZj;return S},{mode:2});var IB=null;
_.jp({is:"ytd-commentbox",_template:function(){if(e3m!==void 0)return e3m;var S=document.createElement("template");_.h(S,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-commentbox--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n<div id="identity-chip" hidden="[[computeHideIdentityChipRenderer_(isLoading, zeroStepChannelCreationRenderer)]]" class="style-scope ytd-commentbox"></div>\n<div id="thumbnail-input-row" class="style-scope ytd-commentbox">\n  <yt-img-shadow id="author-thumbnail" height="[[computeAuthorThumbnailDimension_(isReply, isBackstageComment)]]" hidden="[[computeHideAuthorThumbnail_(isLoading, zeroStepChannelCreationRenderer)]]" thumbnail="[[data.authorThumbnail]]" width="[[computeAuthorThumbnailDimension_(isReply, isBackstageComment)]]" class="style-scope ytd-commentbox">\n  </yt-img-shadow>\n  <div id="main" hidden="[[isLoading]]" class="style-scope ytd-commentbox">\n    <div id="divider-line" class="style-scope ytd-commentbox"></div>\n    \n    <div id="creation-box" class$="[[computeCreationBoxClass_(isInputFocus_)]] style-scope ytd-commentbox" hidden="[[hasPollOrQuizRendererInEditDialog_]]">\n      <tp-yt-paper-input-container id="input-container" focused="{{isInputFocus_}}" no-label-float="" use-v2-underline="" class="style-scope ytd-commentbox">\n        <div slot="after-input" class="paper-input-input style-scope ytd-commentbox">\n          <ytd-emoji-input id="emoji" emoji-manager="[[emojiManager]]" vertical-suggestions-offset="[[verticalSuggestionsOffset]]" class="style-scope ytd-commentbox">\n            <yt-user-mention-autosuggest-input slot="input" suggestions-endpoint="[[data.userMentionSuggestionsEndpoint]]" class="style-scope ytd-commentbox">\n              <yt-formatted-string id="contenteditable-textarea" slot="input" enable-content-editable="true" maxlength="10000" override-aria-label="[[getSimpleString(placeholderFormattedText_)]]" plaintext-only="true" required="true" split-lines="1" text="[[data.editableText]]" on-dragenter="preventDefault_" on-dragleave="preventDefault_" on-dragover="preventDefault_" on-drop="plaintextDrop_" on-focus="focus" on-input="onInput_" on-keyup="onKeyUp_" on-paste="onPaste_" class="style-scope ytd-commentbox"></yt-formatted-string>\n            </yt-user-mention-autosuggest-input>\n          </ytd-emoji-input>\n          <div id="external-links-banner" hidden="[[!isExternalLinksBannerDisplayed]]" class="style-scope ytd-commentbox">\n            <yt-formatted-string text="[[data.advancedTierFeatures.externalLinks.verificationBannerMessage]]" class="style-scope ytd-commentbox">\n            </yt-formatted-string>\n            <ytd-button-renderer id="verification-button" data="[[data.advancedTierFeatures.externalLinks.verificationButton.buttonRenderer]]" class="style-scope ytd-commentbox">\n            </ytd-button-renderer>\n          </div>\n        </div>\n        <ytd-backstage-dismissable-attachment id="dismissable-attachment" slot="after-input" attachment-preview="[[prefilledContent_]]" dismiss-button="[[data.attachmentDismissButton]]" hidden="[[computeHideDismissableAttachment_(prefilledAttachment_)]]" class="style-scope ytd-commentbox">\n        </ytd-backstage-dismissable-attachment>\n        <div id="attachment-preview" slot="after-input" class="style-scope ytd-commentbox"></div>\n        <div id="image-select" class="paper-input-input style-scope ytd-commentbox" hidden="[[!hasImage_]]" slot="after-input"></div>\n        <ytd-backstage-video-link-attachment id="video-link-attachment" slot="after-input" hidden="[[!hasVideo_]]" class="style-scope ytd-commentbox">\n        </ytd-backstage-video-link-attachment>\n      </tp-yt-paper-input-container>\n    </div>\n    <ytd-poll-attachment id="poll-attachment" data="[[data.pollEditorInfo]]" hidden="[[!hasPoll_]]" class="style-scope ytd-commentbox">\n    </ytd-poll-attachment>\n    <ytd-backstage-image-poll-editor-renderer id="image-poll-attachment" data="[[data.imagePollEditorRenderer.imagePollEditorRenderer]]" editor-info="[[data.imagePollEditorInfo]]" hidden="[[!hasImagePoll_]]" class="style-scope ytd-commentbox">\n    </ytd-backstage-image-poll-editor-renderer>\n    <ytd-backstage-quiz-editor-renderer id="quiz-attachment" editor-info="[[data.quizEditorInfo]]" hidden="[[!hasQuiz_]]" class="style-scope ytd-commentbox">\n  </ytd-backstage-quiz-editor-renderer>\n    <slot name="repost-preview" class="style-scope ytd-commentbox"></slot>\n    <div id="poll-preview-edit-dialog" hidden="[[!hasPollOrQuizRendererInEditDialog_]]" class="style-scope ytd-commentbox">\n      <yt-formatted-string text="[[data.editableText]]" class="style-scope ytd-commentbox"></yt-formatted-string>\n      <div id="poll-preview" class="style-scope ytd-commentbox"></div>\n    </div>\n    <div id="footer" class="style-scope ytd-commentbox">\n      <span id="emoji-button" on-tap="onEmojiButtonTap_" hidden="[[!isEmojiButtonDisplayed]]" class="style-scope ytd-commentbox"></span>\n      <div id="attachments" hidden="[[computeHideAttachmentButtons_(data, addedAttachment, prefilledAttachment_, errorMessage_)]]" class="style-scope ytd-commentbox">\n        <template is="dom-repeat" items="[[attachmentButtonIds]]" as="buttonId" class="style-scope ytd-commentbox">\n          <ytd-button-renderer id="[[buttonId]]" data="[[getButtonRenderer(data, buttonId)]]" class="style-scope ytd-commentbox">\n          </ytd-button-renderer>\n        </template>\n      </div>\n      <div id="inline-scheduling-panel" hidden="[[!inlineSchedulePanel_]]" class="style-scope ytd-commentbox"></div>\n      <div id="footer-text" class="style-scope ytd-commentbox">\n        <yt-formatted-string id="footer-message" class$="[[computeFooterMessageClass_(alertMessage_, errorMessage_)]] style-scope ytd-commentbox" hidden="[[computeFooterMessageHidden_(alertMessage_, errorMessage_)]]" text="[[computeFooterMessage_(alertMessage_, errorMessage_)]]">\n        </yt-formatted-string>\n        <yt-formatted-string id="zero-step-footer-text" hidden="[[!zeroStepChannelCreationRenderer.footerText]]" text="[[zeroStepChannelCreationRenderer.footerText]]" class="style-scope ytd-commentbox">\n        </yt-formatted-string>\n      </div>\n      <div id="access-restrictions-selector" class="style-scope ytd-commentbox"></div>\n      <span id="char-count" hidden="[[!charLimit_]]" class="style-scope ytd-commentbox">[[charCount_]]/[[charLimit_]]</span>\n      <div id="buttons" class$="[[computeSubmitButtonClass_(dropdownSchedulePanel_, data.postOptionsMenu)]] style-scope ytd-commentbox">\n        <ytd-button-renderer id="cancel-button" data="[[data.cancelButton.buttonRenderer]]" on-tap="onCancel_" class="style-scope ytd-commentbox">\n        </ytd-button-renderer>\n        <ytd-button-renderer id="submit-button" data="[[computeSubmitButton_(data, scheduleButton_)]]" disabled="[[submitButtonDisabled]]" overrides="[[computeSubmitButtonOverride(data, submitButtonDisabled, dropdownSchedulePanel_)]]" on-tap="onSubmit_" class="style-scope ytd-commentbox">\n        </ytd-button-renderer>\n        <div id="option-menu" hidden="[[dropdownSchedulePanel_]]" class="style-scope ytd-commentbox">\n          <ytd-menu-renderer data="[[data.postOptionsMenu.menuRenderer]]" disable-upgrade="[[!data.postOptionsMenu.menuRenderer]]" hidden="[[!data.postOptionsMenu.menuRenderer]]" icon="yt-icons:arrow_drop_down" no-ink-on-dropdown-button="" three-dot-button-override="[[computeThreeDotButtonOverride(submitButtonDisabled)]]" tonal-override="[[modern]]" class="style-scope ytd-commentbox">\n          </ytd-menu-renderer>\n        </div>\n      </div>\n    </div>\n    <div id="scheduling-panel" hidden="[[!dropdownSchedulePanel_]]" class="style-scope ytd-commentbox"></div>\n    <div id="emojis" hidden="[[!isEmojiPickerDisplayed]]" class="style-scope ytd-commentbox">\n      <span id="emoji-picker" class="style-scope ytd-commentbox"></span>\n    </div>\n  </div>\n  <tp-yt-paper-spinner-lite active="[[isLoading]]" class="style-scope ytd-commentbox"></tp-yt-paper-spinner-lite>\n</div>\n');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);return e3m=S},
behaviors:[_.Ufk.YtHostElementBehavior,_.H$,_.Aj.YtActionHandlerBehavior,_.eL.YtComponentBehavior,_.qH.YtRendererstamperBehavior,_.uHe.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(S,p){return _.I4(S.entities,"aadcGuidelinesStateEntityPayload",p)}},
dismissData_:{type:Object,value:null},commentboxStateKey_:{type:String,value:void 0},commentboxState_:{type:Object,selectorArgs:["commentboxStateKey_"],selector:function(S,p){return _.I4(S.entities,"commentboxStateEntity",p)},
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 _.Zm}},
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:_.y("web_modern_buttons")},swatcheroo:{type:Boolean,reflectToAttribute:!0,value:_.y("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",_.d9(this,this.onTap_));this.emojiInput=this.$.emoji},
isLoadingChanged_:function(S){this.fire(S?"yt-commentbox-loading-start":"yt-commentbox-loading-end")},
dataChanged_:function(S){this.set("submitButtonDisabled",void 0);this.clear();S&&this.computeIsEmojiButtonDisplayed_(S)&&(S=this.$$("#emoji-picker > yt-emoji-picker-renderer"))&&S.updateEmojiCategories()},
observePrefilledImage_:function(S,p,U){this.isValidPrefilledImage_(S,p,U)&&(this.prefilledAttachment_="image",this.prefilledImageData_=p,this.submitButtonDisabled=!1)},
observePrefilledVideo_:function(S,p){this.isValidPrefilledVideo_(S,p)&&(this.prefilledAttachment_="video")},
observePrefilledPoll_:function(S){S&&S.pollData&&S.pollData.choices&&(this.addedAttachment="poll",this.$["poll-attachment"].setPrefilledChoices(S.pollData.choices))},
attached:function(){this.$["input-container"].getElementsByClassName("underline")[0].style.height=0;_.LC();this.focus()},
detached:function(){document.removeEventListener("tap",_.d9(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(S){S=S.detail;S=S.isCustomEmoji?S.shortcuts[0]:S.emojiId;var p=this.getInputRange_().cloneRange();this.insertTextWithEmojis_(p,S);this.maybeUpdateTextDirection_()},
getInputRange_:function(){var S=_.Dp();if(S){S=S.getBrowserRangeObject();for(var p=S.commonAncestorContainer;p;){if(p===this.getEditableTextArea_())return S;p=p.parentNode}}S=this.getEditableTextArea_();S=_.FD(S,S.childNodes.length);S.select();return S.getBrowserRangeObject()},
insertTextWithEmojis_:function(S,p,U){(p=this.emojiManager.createDocumentFragment(p,!0,!1,U===void 0?!0:U))&&p.childNodes.length!==0&&(S.collapsed||S.deleteContents(),U=p.lastChild,S.insertNode(p),_.Wpt(U).select(),this.getInputRange_().collapse(!1),this.getEditableTextArea_().normalize(),this.submitButtonDisabled=!1)},
onSelectionChange_:function(){var S=_.Dp();if(S){var p=S.JSC$9248_getStartNode(),U=S.JSC$9248_getEndNode();if($qw(p)&&$qw(U)){var Y=S.JSC$9248_getStartOffset(),L;if(_.YC&&p.nodeType===Node.ELEMENT_NODE&&(L=_.reE(p)))_.FD(L,0).select();else{L=OE(p)?p:_.uI(p,OE);var I=OE(U)?U:_.uI(U,OE);if(L||I)if(S.isCollapsed()){if(p.nodeType===Node.TEXT_NODE){S=!0;Y===p.length&&(S=!1);if(IB==="end"||IB==="right")S=!1;p=p.parentNode;S=[].concat(_.jo(p.parentNode.childNodes)).indexOf(p)+(S?0:1);_.FD(p.parentNode,S).select()}}else L?
L.previousSibling&&L.previousSibling.length>0?_.XD(U,S.JSC$9248_getEndOffset(),L.previousSibling,L.previousSibling.length-1).select():(p=document.createTextNode("\u200b"),L.parentNode.insertBefore(p,L),_.XD(U,S.JSC$9248_getEndOffset(),p,0).select()):I&&(I.nextSibling&&I.nextSibling.length>0?_.XD(p,S.JSC$9248_getStartOffset(),I.nextSibling,1).select():(U=document.createTextNode("\u200b"),I.parentNode.insertBefore(U,I.nextSibling),_.XD(p,S.JSC$9248_getStartOffset(),U,U.length).select()));IB=null}}else IB=
null}else IB=null},
leftKeyPressed_:function(){IB="left"},
rightKeyPressed_:function(){IB="right"},
endKeyPressed_:function(){IB="end"},
maybeDeleteChip_:function(){var S=t2E(!0);if(S){var p=_.Dp(),U=p.JSC$9248_getStartNode();p=p.JSC$9248_getStartOffset();_.jd(U,p,S,S.childNodes.length).select()}},
maybeBackspaceChip_:function(){var S=t2E(!1);if(S){var p=_.Dp(),U=p.JSC$9248_getStartNode();p=p.JSC$9248_getStartOffset();_.jd(U,p,S,0).select()}},
maybeBackspaceChipWordMode_:function(S){var p=_.Dp();if(p.isCollapsed()){var U=p.JSC$9248_getStartNode();p=p.JSC$9248_getStartOffset();var Y=cbk(U,p,!0);Y&&(_.jd(U,p,Y,0).select(),document.execCommand("delete"),S.preventDefault(),S.stopImmediatePropagation())}},
maybeDeleteChipWordMode_:function(S){var p=_.Dp();if(p.isCollapsed()){var U=p.JSC$9248_getStartNode();p=p.JSC$9248_getStartOffset();var Y=cbk(U,p,!1);Y&&(_.jd(U,p,Y,Y.childNodes.length).select(),document.execCommand("delete"),S.preventDefault(),S.stopImmediatePropagation())}},
onTap_:function(S){if(!S.defaultPrevented&&(S.currentTarget.tagName==="YTD-COMMENTBOX"&&OE(S.target)&&S.preventDefault(),this.isEmojiPickerDisplayed)){var p=this.$$("#emojis"),U=this.$$("#emoji-button"),Y=this.getEditableTextArea_();if((S=S.path?S.path:S.composedPath&&S.composedPath())&&!S.includes(p)&&!S.includes(Y)&&!S.includes(U))this.onEmojiButtonTap_()}},
isValidPrefilledImage_:function(S,p,U){return S==="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE"&&p!==void 0&&p.encryptedBlobId!==null&&p.sourceExternalVideoId!==null&&U!==void 0&&U.backstageImageRenderer!==null},
isValidPrefilledVideo_:function(S,p){return S==="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE"&&!!p&&!!p.videoRenderer&&!!p.videoRenderer.videoId},
isValidPrefilledAttachment_:function(S,p,U){return this.isValidPrefilledImage_(S,p,U)||this.isValidPrefilledVideo_(S,U)},
dismissPrefilledContent_:function(){this.prefilledImageData_=void 0;this.prefilledAttachment_="none"},
clear:function(){this.errorMessage_=this.alertMessage_=null;this.taggedVideoId_=void 0;if(_.y("enable_multi_image_post_creation")){var S=this.$$("ytd-backstage-multi-image-select-renderer");S&&S.hasImages()&&S.cancel()}else(S=this.$$("ytd-backstage-image-select-renderer"))&&this.hasImage_&&S.cancel();(S=this.$["poll-attachment"])&&this.hasPoll_&&S.clearPollOptions();(S=this.$["image-poll-attachment"])&&this.hasImagePoll_&&S.resetPollOptions();(S=this.$["quiz-attachment"])&&this.hasQuiz_&&S.resetQuizOptions();
(S=this.$["video-link-attachment"])&&this.hasVideo_&&S.cancel();(S=this.$["access-restrictions-selector"].firstElementChild)&&S.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 _.tB(this.hostElement).querySelector("#contenteditable-textarea").getRoot().root.node},
getEditableFormattedString_:function(){return _.tB(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(S,p){S=NUw(S,this.emojiManager,p).cloneNode(!0);for(p=S.firstChild;p;)if(p.nodeType!==1)p=p.nextSibling;else switch(p.tagName){case "BR":var U=_.JH();_.suP(U,p);p=U.nextSibling;break;case "DIV":(U=p.lastChild)&&p.nextSibling&&_.jc(_.JH(),U);p.previousSibling&&(p.previousSibling.nodeType===1||p.previousSibling.nodeType===3&&!p.previousSibling.textContent.endsWith("\n"))&&_.b1(_.JH(),p);U&&U.nodeName==="BR"&&_.yz(U);U=p;p.hasChildNodes()?(p=p.firstChild,
_.edE(U)):(p=p.nextSibling,_.yz(U));break;default:p=p.nextSibling}return Sue(S)},
onAddImageError_:function(S){S.stopPropagation();this.errorMessage_=_.Ec(S.detail)},
setTextAreaValue_:function(S){S||(S="");var p=this.getEditableFormattedString_();p.text="";this.getEditableTextArea_().innerText="";typeof S==="string"&&(S={runs:[{text:S}]});p.text=S},
focus:function(){this.$["author-thumbnail"].markDirty();this.getEditableTextArea_().focus();this.maybeSetCursorAtEnd_();this.maybeUpdateTextDirection_();IB=null},
maybeSetCursorAtEnd_:function(){if(!this.receivedFocusPreviously_){var S=this.getEditableTextArea_();S&&(_.FD(S,S.childNodes.length).select(),this.receivedFocusPreviously_=!0)}},
maybeUpdateTextDirection_:function(){if(_.g7("HTML_DIR")==="rtl"){var S=this.getEditableTextArea_(),p=this.getTextAreaValue()!==""?"auto":"rtl";S.setAttribute("dir",p)}},
maybeUpdateExternalLinksBanner_:function(){!this.hasExternalLinksAccess_&&this.computePostHasExternaLink_()?this.isExternalLinksBannerDisplayed=!0:this.isExternalLinksBannerDisplayed=!1},
computePostHasExternaLink_:function(){var S;return Vlw((S=this.$["quiz-attachment"])==null?void 0:S.getExplanationText())||Vlw(this.getTextAreaValue().trim())},
handleInputEvent_:function(){var S=null;if(this.isEmojiButtonDisplayed){var p=this.getInputRange_();p&&(S=this.emojiInput.retrieveTextBeforeRange(p))}this.insertText_(S,!0);this.updateCharCount_();this.setSubmitButton_();S=this.getEditableTextArea_();this.isBackstagePost&&(this.textRequiresScrolling=S.scrollHeight>S.clientHeight,this.maybeUpdateExternalLinksBanner_());this.maybeHeightChanged()},
maybeHeightChanged:function(){var S=52+this.getEditableTextArea_().offsetHeight;this.fire("yt-commentbox-resize",{height:S})},
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(S){if(this.isEmojiButtonDisplayed)this.onPasteEmoji_(S)},
onPasteEmoji_:function(S){S.preventDefault();S.stopImmediatePropagation();S=S.clipboardData.getData("text/plain");this.insertText_(S,!1,!1)},
insertText_:function(S,p,U){p=p===void 0?!1:p;U=U===void 0?!0:U;this.maybeUpdateTextDirection_();if(this.isEmojiButtonDisplayed&&S){var Y=this.getInputRange_().cloneRange();this.emojiManager&&Y&&(p&&this.emojiInput.offsetStartOfRangeBy(Y,S.length),this.insertTextWithEmojis_(Y,S,U),iVR(this.getEditableTextArea_().lastChild)||(Y=this.getInputRange_().cloneRange()),Y&&(this.emojiInput.updateSuggestions(Y,S),this.updateSuggestionOffset_(Y)))}},
setSubmitButton_:function(){if(this.data){var S=this.data&&this.data.purpose==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT",p=this.data&&this.data.editableText&&this.data.purpose!=="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE";if(S||p){var U=this.getTextAreaValue().trim();p=U===this.previousText_;U=!U||this.aboveCharLimit_;S&&this.data&&this.data.backstageAttachment&&(this.data.backstageAttachment.backstageImageRenderer||this.data.backstageAttachment.postMultiImageRenderer)&&(U=this.aboveCharLimit_);this.submitButtonDisabled=
p||U||!this.getTextLength();S&&_.y("enable_post_scheduling")&&(this.submitButtonDisabled=p&&!this.scheduledPublishTimeSec_||U)}else this.submitButtonDisabled=!this.isValidInput_()}},
onSubmitButtonEnable_:function(){this.setSubmitButton_()},
onSubmitButtonDisable_:function(){this.submitButtonDisabled=!0},
getSimpleString:_.mA,computeCreationBoxClass_:function(S){return S?"focused":"not-focused"},
computeFooterMessageClass_:function(S,p){return p?"footer-error-message":"footer-alert-message"},
computeFooterMessage_:function(S,p){return p?p:S},
computeFooterMessageHidden_:function(S,p){return!p&&!S},
computePlaceholderText_:function(S,p,U){return(U==="video"||U==="image")&&(S==null?0:S.prefilledPlaceholderText)?S==null?void 0:S.prefilledPlaceholderText:p==="poll"||p==="image-poll"?S==null?void 0:S.pollPostPlaceholderText:p==="quiz"?S==null?void 0:S.quizPostPlaceholderText:p==="image"?S==null?void 0:S.imagePostPlaceholderText:S==null?void 0:S.placeholderText},
computeHideAttachmentButtons_:function(S,p,U,Y){return S===void 0?!1:Y&&this.getSimpleString(Y)===this.getSimpleString(S.rateLimitErrorMessage)?!0:p!=="none"||U!=="none"||!S.videoLinkButton&&!S.pollButton&&!S.imagePollButton&&!S.quizButton&&!S.imageButton},
computeHideDismissableAttachment_:function(S){return S!=="image"&&S!=="video"},
computeHasVideo_:function(S){return S==="video"},
computeHasImage_:function(S){return S==="image"},
computeHasPoll_:function(S){return S==="poll"},
computeHasImagePoll_:function(S){return S==="image-poll"},
computeHasQuiz_:function(S){return S==="quiz"},
computeHasPollOrQuizRendererInEditDialog_:function(S){return S&&S.backstageAttachment?S.purpose==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"&&!(!S.backstageAttachment.quizRenderer&&!S.backstageAttachment.pollRenderer):!1},
computePrefilledContent_:function(S){if(this.isValidPrefilledAttachment_(S.purpose,S.prefilledImageData,S.backstageAttachment))return S.backstageAttachment},
computeEditAttachment_:function(S){if(this.computePrefilledContent_(S)===void 0)return S.backstageAttachment},
computeAuthorThumbnailDimension_:function(S,p){return S&&!p?24:40},
computeImageUploadEndpoint_:function(S){return this.get("imageButton.buttonRenderer.navigationEndpoint.backstageImageUploadEndpoint",S)},
computeRateLimitErrorCommands_:function(S){var p,U;return S==null?void 0:(p=S.advancedTierFeatures)==null?void 0:(U=p.rateLimit)==null?void 0:U.rateLimitCommands},
computeIsBackstageComment_:function(S){return!(!S||S!=="COMMENT_DIALOG_AVATAR_SIZE_TYPE_BACKSTAGE_COMMENT")},
computeServiceEndpoint_:function(S){return this.get("submitButton.buttonRenderer.serviceEndpoint",S)||this.get("replyButton.buttonRenderer.serviceEndpoint",S)||this.get("postButton.buttonRenderer.serviceEndpoint",S)},
computeSubmitButtonOverride:function(){if(_.y("web_modern_buttons")){var S,p;return{segmentedPosition:this.dropdownSchedulePanel_||!((S=this.data)==null?0:(p=S.postOptionsMenu)==null?0:p.menuRenderer)?void 0:"start",type:"filled",style:"call-to-action",state:this.submitButtonDisabled?"disabled":"active"}}},
computeThreeDotButtonOverride:function(){if(_.y("web_modern_buttons"))return{segmentedPosition:"end",type:"filled",style:"call-to-action",state:this.submitButtonDisabled?"disabled":"active"}},
computeSubmitButton_:function(S,p){S=this.get("submitButton.buttonRenderer",S)||this.get("replyButton.buttonRenderer",S)||this.get("postButton.buttonRenderer",S);p&&(S=p);S&&(S=Object.assign({},S),S.serviceEndpoint=void 0,S.isDisabled=this.submitButtonDisabled);return S},
computeHasExternalLinksAccess_:function(S){if(_.y("enable_rfa_external_links")){var p,U,Y;return(Y=S==null?void 0:(p=S.advancedTierFeatures)==null?void 0:(U=p.externalLinks)==null?void 0:U.allowExternalLinks)!=null?Y:!0}return!0},
computeIsEmojiButtonDisplayed_:function(S){return S.emojiButton&&S.emojiPicker&&S.emojiPicker.emojiPickerRenderer&&S.emojiPicker.emojiPickerRenderer.categories?S.emojiPicker.emojiPickerRenderer.categories.find(function(p){return p.emojiPickerCategoryRenderer?p.emojiPickerCategoryRenderer.emojiIds&&p.emojiPickerCategoryRenderer.emojiIds.length>0:p.emojiPickerUpsellCategoryRenderer?p.emojiPickerUpsellCategoryRenderer.emojis&&p.emojiPickerUpsellCategoryRenderer.emojis.length>0:!1}):!1},
computeCharLimit_:function(S){return S.charLimit?S.charLimit:null},
computeDropdownSchedulingPanel_:function(S,p){if(S==="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE"&&p)return p},
computeInlineSchedulingPanel_:function(S,p){if(S==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"&&p)return p},
computeHideAuthorThumbnail_:function(S,p){return S||this.computeUseIdentityChip_(p)},
computeHideIdentityChipRenderer_:function(S,p){return S||!this.computeUseIdentityChip_(p)},
computeUseIdentityChip_:function(S){return!!S&&!!S.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(S){var p,U,Y,L;(S==null?0:(p=S.detail)==null?0:(U=p.endpoint)==null?0:U.ypcGetOffersEndpoint)||(S==null?0:(Y=S.detail)==null?0:(L=Y.endpoint)==null?0:L.ypcOffersEndpoint)?(S.stopPropagation(),_.Yd(this,[S.detail.endpoint])):this.get("detail.endpoint.backstageImageUploadEndpoint",S)&&(S.stopPropagation(),this.addedAttachment="image",this.submitButtonDisabled=!0)},
onVideoLinkSelected_:function(S){this.addedAttachment="video";this.selectedVideoId_=S.detail.videoId},
commentboxStateEntityChanged_:function(S){var p=this;(S==null?void 0:S.state)=="COMMENTBOX_STATE_INITIAL"?(this.clear(),this.fire("yt-commentbox-dismiss",this.dismissData_),this.dismissData_=null):(S==null?void 0:S.state)=="COMMENTBOX_STATE_WRITING"&&Promise.resolve().then(function(){p.focus()})},
onYtServiceRequestSent_:function(S,p){if(p.actions)for(S=_.d(p.actions),p=S.next();!p.done;p=S.next())p.value.createPollAction&&(this.submitButtonDisabled=!0)},
onYtServiceRequestCompleted_:function(S){this.isLoading=!1;var p=this.get("detail.actions.0.showErrorAction.errorMessage.messageRenderer.text",S),U,Y,L,I=S==null?void 0:(U=S.detail)==null?void 0:(Y=U.data)==null?void 0:(L=Y.actionResult)==null?void 0:L.commentboxStateEntityKey;if(p)this.errorMessage_=p;else if(I){var V;this.dismissData_=S==null?void 0:(V=S.detail)==null?void 0:V.data;this.commentboxStateKey_=I}else{this.clear();var W;this.fire("yt-commentbox-dismiss",S==null?void 0:(W=S.detail)==
null?void 0:W.data)}},
onYtServiceRequestError_:function(S){S.stopPropagation();this.isLoading=!1;var p,U;if(((p=this.data)==null?void 0:p.purpose)==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"||((U=this.data)==null?void 0:U.purpose)==="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE")if(p=this.get("detail.error.args",S)||[],p.length>1&&p[1].message){this.handlePostsServiceRequestError_(p[1].message);return}(S=this.get("detail.error.message",S))?this.errorMessage_=this.data.errorMessage||_.Ec(S):(this.clear(),this.fire("yt-commentbox-dismiss"))},
handlePostsServiceRequestError_:function(S){if(_.y("enable_rfa_rate_limits")&&this.rateLimitErrorCommands)for(var p=_.d(this.rateLimitErrorCommands),U=p.next();!U.done;U=p.next())if(U=U.value,U.errorLabel===S){_.Te(U.command,this.hostElement);return}this.errorMessage_=_.Ec(S)},
submitIfNotBackstagePost_:function(S){if(!this.isBackstagePost)this.onSubmit_(S)},
onSubmit_:function(S){var p=this,U,Y,L,I,V,W,O,D,z,Q,J,K,G,X,Z;return _.T(function(l){switch(l.nextAddress){case 1:S.stopPropagation();if(!p.serviceEndpoint||!p.isValidInput_())return l.return();if(p.shouldShowPostAadcNotice_())return p.showPostAadcNotice_(),l.return();if(p.shouldShowCommentAadcNotice_())return p.showCommentAadcNotice_(),l.return();if(!(p.$$("ytd-backstage-multi-image-select-renderer")&&p.hasImage_&&_.y("enable_multi_image_post_creation"))){l.jumpTo(2);break}U=p.$$("ytd-backstage-multi-image-select-renderer");
return _.k(l,U.getAllUploadStatuses(),3);case 3:Y=l.yieldResult;if(!Y)return l.return();L=_.d(Y);for(I=L.next();!I.done;I=L.next())if(V=I.value,V.encryptedBlobId===void 0)return p.isLoading=!1,O=W=void 0,p.errorMessage_=(O=(W=p.imageUploadEndpoint_)==null?void 0:W.imageEditor.backstageMultiImageSelectRenderer.uploadFailureError)!=null?O:null,l.return();return l.return(p.submitForm_(void 0,void 0,void 0,void 0,U.images,p.taggedVideoId_));case 2:if(!p.hasImagePoll_||!p.$["image-poll-attachment"]){l.jumpTo(4);
break}return _.k(l,p.$["image-poll-attachment"].getAllUploadStatuses(),5);case 5:D=l.yieldResult;if(!D)return l.return();z=_.d(D);for(Q=z.next();!Q.done;Q=z.next())if(J=Q.value,!J.encryptedBlobId)return p.isLoading=!1,K=void 0,p.errorMessage_=(K=p.data.errorMessage)!=null?K:null,l.return();case 4:X=(G=p.$$("ytd-backstage-image-select-renderer"))&&G.uploadPromise(),Z=p.getSharedPostId_(),X?X.then(function(){p.submitForm_.apply(p,_.jo(_.jO.apply(0,arguments)))}).catch(function(a){p.isLoading=!1;
p.errorMessage_=_.Ec(a.message)}):p.selectedVideoId_?p.submitForm_(void 0,p.selectedVideoId_):p.prefilledAttachment_==="image"?p.submitForm_(p.prefilledImageData_.encryptedBlobId,void 0,void 0,p.prefilledImageData_.sourceExternalVideoId,void 0,p.taggedVideoId_):p.prefilledAttachment_==="video"?p.submitForm_(void 0,p.data.backstageAttachment.videoRenderer.videoId):Z?p.submitForm_(void 0,void 0,Z):p.taggedVideoId_!==void 0?p.submitForm_(void 0,void 0,void 0,void 0,void 0,p.taggedVideoId_):p.submitForm_(),
_.OV(l)}})},
openSchedulingPanel:function(S){S&&S.scheduleButton&&S.scheduleButton.buttonRenderer&&(this.scheduleButton_=S.scheduleButton.buttonRenderer);S&&S.dateTimePicker&&this.set("data.schedulingDateTimePicker",S.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(S){S.stopPropagation();this.clear();this.fire("yt-commentbox-dismiss")},
onPrefilledContentDismissed_:function(S){S.stopPropagation();this.dismissPrefilledContent_();this.setSubmitButton_();this.getEditableTextArea_().focus()},
onInsertMention_:function(){this.updateCharCount_()},
onQuizExplanationUpdated_:function(){this.maybeUpdateExternalLinksBanner_()},
onImageAlert_:function(S){S.stopPropagation();S.detail.alertMessage&&(this.alertMessage_=S.detail.alertMessage)},
onImageSelected_:function(S){S.stopPropagation();this.setSubmitButton_()},
onImagesSelected_:function(S){S.stopPropagation();this.errorMessage_=null;this.setSubmitButton_()},
onImagePreviewCoordinatesUpdated_:function(S){S.stopPropagation();this.imagePreviewCoordinates_=JSON.stringify(S.detail);this.setSubmitButton_()},
onImagePreviewReposition_:function(S){S.stopPropagation();this.imagePreviewCoordinates_=void 0;this.submitButtonDisabled=!0},
onVideoLinkButtonCancel_:function(){this.getEditableTextArea_().focus()},
onAddVideoLink:function(S){var p=this.$["video-link-attachment"];p&&p.onLaunchVideoPicker(S)},
onAttachmentDismiss_:function(S){S.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"&&_.y("enable_multi_image_post_creation")&&(!this.$$("ytd-backstage-multi-image-select-renderer")||!this.$$("ytd-backstage-multi-image-select-renderer").hasImages())||!(this.addedAttachment!=="image"||_.y("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 S;if(this.addedAttachment==="image-poll"&&((S=this.$["image-poll-attachment"])==null||!S.isValid()))return!1;var p;if(this.addedAttachment==="quiz"&&((p=this.$["quiz-attachment"])==null||!p.isValid())||this.addedAttachment==="video"&&this.$["video-link-attachment"]&&!this.$["video-link-attachment"].isValid()||
this.aboveCharLimit_||this.dropdownSchedulePanel_&&!this.scheduledPublishTimeSec_)return!1;S=!1;this.data&&this.data.purpose==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"&&this.data.backstageAttachment&&(this.data.backstageAttachment.backstageImageRenderer||this.data.backstageAttachment.postMultiImageRenderer)&&(S=!0);if(this.addedAttachment==="image"||this.prefilledAttachment_==="image")S=!0;return S||!!this.getTextAreaValue().trim()},
submitForm_:function(S,p,U,Y,L,I){var V=this.getTextAreaValue().trim(),W={};this.data&&this.data.purpose==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"&&V===this.previousText_&&(V=void 0);V!==void 0&&(W.comment_text=V);this.isLoading=!0;I!=void 0&&(W.tagged_video_id=I);S?(W.image_blob_id=S,this.imagePreviewCoordinates_&&(W.image_preview_coordinates=this.imagePreviewCoordinates_)):p?W.attached_video_id=p:U?W.shared_post_id=U:L&&L.length>0&&(W.images_data=L.map(function(O){return{encryptedBlobId:O.encryptedBlobId,
previewCoordinates:O.previewCoordinates}}));
Y&&(W.source_video_id=Y);this.data.accessRestrictionsSelector&&this.data.accessRestrictionsSelector.dropdownRenderer&&(W.access_restrictions=this.accessRestriction?this.accessRestriction:this.$["access-restrictions-selector"].firstElementChild.value);this.addedAttachment==="poll"&&(W.poll_options=this.$["poll-attachment"].getPollOptions());this.addedAttachment==="image-poll"&&(W.image_poll_options=this.$["image-poll-attachment"].getPostCreateOptions());_.y("enable_quiz_creation")&&this.addedAttachment===
"quiz"&&(W.quiz_options=this.$["quiz-attachment"].getPostCreateOptions());_.y("enable_post_scheduling")&&this.scheduledPublishTimeSec_&&(W.scheduled_publish_time_sec=this.scheduledPublishTimeSec_);_.Yd(this,[this.serviceEndpoint,W])},
onIsInputFocusChanged_:function(S,p){S?this.fire("yt-autonav-pause-focus"):p!==void 0&&this.fire("yt-autonav-pause-blur")},
plaintextDrop_:function(S){var p=this.getEditableTextArea_();[].concat(_.jo(S.dataTransfer.items)).forEach(function(U){U.kind==="string"&&U.type.match("^text/plain")&&U.getAsString(function(Y){p.appendChild(document.createTextNode(Y))})});
S.preventDefault()},
preventDefault_:function(S){S.preventDefault()},
onSuggestionInsert_:function(S){this.insertTextWithEmojis_(S.detail.range,S.detail.text)},
onEmojiSuggestionClick_:function(S){this.emojiInput.insertSuggestion(S.detail)},
computeSubmitButtonClass_:function(S,p){return!p||S?"":"with-options"},
updateSuggestionOffset_:function(S){if(this.emojiInput&&_.tB(this.emojiInput).querySelector("#dropdown")){var p=this.getEditableTextArea_().getBoundingClientRect().bottom,U=S.getBoundingClientRect().top;this.verticalSuggestionsOffset=Math.ceil(p-U)+5;p=this.getEditableTextArea_().getBoundingClientRect().left;S=S.getBoundingClientRect().left-p;_.tB(this.emojiInput).querySelector("#dropdown").style.marginLeft=S+"px"}},
onDateTimeSelectionCancelled_:function(){this.scheduleButton_=void 0;this.set("data.schedulingDateTimePicker",null);this.scheduledPublishTimeSec_=void 0;this.setSubmitButton_()},
onDateTimeSelectionUpdate_:function(S){if(_.y("enable_post_scheduling")&&this.data&&this.data.purpose){S=S.detail;if(Math.floor(Date.now()/1E3)>=S)this.scheduledPublishTimeSec_=void 0;else if(this.data.purpose==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"){var p=parseInt(this.get("schedulingDateTimePicker.dateTimePickerRenderer.defaultTimeSec",this.data),10);isNaN(p)||p!==S?this.scheduledPublishTimeSec_=S:this.scheduledPublishTimeSec_=void 0}else this.scheduledPublishTimeSec_=S;this.setSubmitButton_()}},
computeAttachmentButtonIds_:function(){var S=["image-button","image-poll-button","poll-button"];_.y("enable_quiz_creation")&&S.push("quiz-button");_.y("auto_convert_posts_video_tag")||S.push("video-link-button");return S},
getButtonRenderer:function(S,p){if(S)switch(p){case "video-link-button":var U;return((U=S.videoLinkButton)==null?void 0:U.buttonRenderer)||void 0;case "image-button":var Y;return((Y=S.imageButton)==null?void 0:Y.buttonRenderer)||void 0;case "poll-button":var L;return((L=S.pollButton)==null?void 0:L.buttonRenderer)||void 0;case "image-poll-button":var I;return((I=S.imagePollButton)==null?void 0:I.buttonRenderer)||void 0;case "quiz-button":var V;return((V=S.quizButton)==null?void 0:V.buttonRenderer)||
void 0}},
shouldShowPostAadcNotice_:function(){var S;return(S=this.data)==null||!S.showAadcNoticeCommand||this.getLocalStorage_().get(this.getAadcNoticeShownKey_())?!1:!0},
shouldShowCommentAadcNotice_:function(){var S,p;return!((S=this.data)==null||!S.openAadcDialog)&&!((p=this.aadcGuidelinesState_)==null||!p.shouldRequireViewerAck)},
getAadcNoticeShownKey_:function(){return"post-aadc-notice-shown-"+_.g7("DATASYNC_ID","unknown")},
showPostAadcNotice_:function(){var S;((S=this.data)==null?0:S.showAadcNoticeCommand)&&this.resolveCommand(this.data.showAadcNoticeCommand)},
showCommentAadcNotice_:function(){this.resolveCommand(this.data.openAadcDialog)},
getLocalStorage_:function(){this.localStorage||(this.localStorage=new _.ug("yt-post"));return this.localStorage},
onAadcNoticeConfirm_:function(S){S.clickTrackingParams&&_.HX().clickCommand(S);this.getLocalStorage_().set(this.getAadcNoticeShownKey_(),!0);_.St(this,"yt-close-popup-action")},
onHideIdentityChip:function(S){var p;this.set("data.placeholderText",(p=S.hideIdentityChipAction)==null?void 0:p.placeholderText);this.set("zeroStepChannelCreationRenderer",{})}});var d$=function(){var S=_.w.apply(this,arguments)||this;S.isOpen=!1;S.modern=_.y("web_modern_buttons");S.roundedContainer=!0;S.dropdownButtonOverride=_.y("web_modern_buttons")?{segmentedPosition:"end",state:"disabled",type:"filled"}:void 0;S.inPopupContainer=!1;S.isCommentboxLoading=!1;var p=["image-button","image-poll-button","poll-button"];_.y("enable_quiz_creation")&&p.push("quiz-button");_.y("auto_convert_posts_video_tag")||p.push("video-link-button");S.attachmentButtonIds=p;S.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 S};
_.r(d$,_.w);_.M=d$.prototype;_.M.computeButtonOverride=function(){var S;return((S=this.data)==null?0:S.postOptionsMenu)&&_.y("web_modern_buttons")?{segmentedPosition:"start"}:void 0};
_.M.configureRendererStamper=function(){var S={"data.accessRestrictionsSelector":{id:"access-restrictions-selector",mapping:{dropdownRenderer:{component:"ytd-flat-dropdown-renderer",classListBinding:"[[dropdownRendererClasses]]"}}},"data.pollButton":{id:"poll-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.imagePollButton":{id:"image-poll-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.imageButton":{id:"image-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.quizButton":{id:"quiz-button",
mapping:{buttonRenderer:"ytd-button-renderer"}},"data.postOptionsMenu":{id:"option-menu",mapping:{menuRenderer:{component:"ytd-menu-renderer",params:{icon:"yt-icons:arrow_drop_down"},properties:{tonalOverride:"[[modern]]",threeDotButtonOverride:"[[dropdownButtonOverride]]"}}}}};_.y("auto_convert_posts_video_tag")||(S["data.videoLinkButton"]={id:"video-link-button",mapping:{buttonRenderer:"ytd-button-renderer"}});return S};
_.M.ready=function(){var S=this,p=_.tB(this.hostElement).querySelector("#placeholder-area"),U=function(Y){S.onOpen(Y)};
p.addEventListener("tap",U);p.addEventListener("keypress",U)};
_.M.showButtonEduTooltip=function(){var S,p,U,Y,L,I,V;if(_.y("enable_quiz_creation")&&((S=this.data)==null?0:(p=S.quizButton)==null?0:(U=p.buttonRenderer)==null?0:(Y=U.hint)==null?0:(L=Y.hintRenderer)==null?0:(I=L.content)==null?0:(V=I.bubbleHintRenderer)==null?0:V.text)&&(_.$V.getInstance(),S=il(this.data.quizButton.buttonRenderer.hint.hintRenderer.content.bubbleHintRenderer.text,"quiz-button-edu-displayed","OPEN_POPUP_POSITION_BOTTOM",604800,"quiz-button-edu-displayed-impression",3),(S==null?void 0:
S.length)>0)){this.ytComponentBehavior.resolveCommand(S[0],{form:{element:this.quizButton}});return}var W;if((W=this.data)==null?0:W.imagePollButtonTooltip)if(_.$V.getInstance(),W=il(this.data.imagePollButtonTooltip,"image-poll-button-edu-displayed","OPEN_POPUP_POSITION_BOTTOM",604800,"image-poll-button-edu-displayed-impression",3),(W==null?void 0:W.length)>0){this.ytComponentBehavior.resolveCommand(W[0],{form:{element:this.imagePollButton}});return}var O;_.y("enable_multi_image_post_creation")&&
((O=this.data)==null?0:O.multiImageButtonTooltip)&&(_.$V.getInstance(),O=il(this.data.multiImageButtonTooltip,"multi-image-button-edu-displayed","OPEN_POPUP_POSITION_BOTTOM",604800,"multi-image-button-edu-displayed-impression",3),(O==null?void 0:O.length)>0&&this.ytComponentBehavior.resolveCommand(O[0],{form:{element:this.imageButton}}))};
_.M.onCreatePollAction=function(S){_.b(S,laE)&&(this.JSC$13685_commentbox.addedAttachment="poll",this.openDialog())};
_.M.onAddVideoLinkAction=function(S){if(_.b(S,wOw))this.JSC$13685_commentbox.onAddVideoLink(S)};
_.M.onShowSchedulingPanelCommand=function(S){(S=_.b(S,O4P))&&this.openSchedulingPanel(S)};
_.M.onCreateImagePollCommand=function(S){_.b(S,Jcj)&&(this.JSC$13685_commentbox.openImagePollComponent(),this.openDialog())};
_.M.onCreateQuizCommand=function(S){_.b(S,ycm)&&(this.JSC$13685_commentbox.openQuizComponent(),this.openDialog())};
_.M.openSchedulingPanel=function(S){_.y("enable_post_scheduling")&&(this.openDialog(),this.JSC$13685_commentbox.openSchedulingPanel(S))};
_.M.onCreateCommentAction=function(S){this.get("createCommentAction.contents",S)&&(this.JSC$13685_commentbox.clear(),this.closeDialog())};
_.M.onOpen=function(S){S instanceof KeyboardEvent&&S.type==="keypress"&&S.keyCode!==13&&S.keyCode!==32||(this.data.prepareAccountEndpoint?_.cv(this.hostElement,"yt-navigate",{endpoint:this.data.prepareAccountEndpoint}):this.openDialog())};
_.M.onYtCommentboxDismiss=function(){this.closeDialog()};
_.M.onYtCommentboxLoadingStart=function(S){S.stopPropagation();this.isCommentboxLoading=!0};
_.M.onYtCommentboxLoadingEnd=function(S){S.stopPropagation();this.isCommentboxLoading=!1};
_.M.onYtVideoLinkButtonCancel=function(S){S.stopPropagation();this.onOpen(S)};
_.M.onYtVideoLinkSelected=function(S){S.stopPropagation();this.onOpen(S)};
_.M.onIronSelect=function(S){S.stopPropagation();S.detail.item.tagName==="YTD-PRIVACY-DROPDOWN-ITEM-RENDERER"&&this.accessRestriction!=S.detail.item.value&&(this.accessRestriction?(this.accessRestriction=S.detail.item.value,this.onOpen(S)):this.accessRestriction=S.detail.item.value)};
_.M.onYtNavigate=function(S){this.get("detail.endpoint.backstageImageUploadEndpoint",S)&&(this.JSC$13685_commentbox.addedAttachment="image",this.JSC$13685_commentbox.submitButtonDisabled=!0,this.onOpen(S))};
_.M.onRequestSent=function(S){if(_.y("web_button_rework"))for(var p=_.d(S.detail),U=p.next();!U.done;U=p.next())_.b(U.value,ZXI)&&(this.JSC$13685_commentbox.addedAttachment="image",this.JSC$13685_commentbox.submitButtonDisabled=!0,this.onOpen(S))};
_.M.openDialog=function(){this.JSC$13685_commentbox.accessRestriction=this.accessRestriction;this.isOpen=!0;this.JSC$13685_commentbox.focus()};
_.M.onPopupClosed=function(){_.$V.getInstance()};
_.M.computeCreationDisabled=function(S){return!!S};
_.M.computeIsCreationDialog=function(S){return!!S&&S==="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE"};
_.M.computeDisabledPostButton=function(S){if(!S)return null;S.isDisabled=!0;return S};
_.M.computeIsCreationDialogWithHeader=function(S){return!this.inPopupContainer&&!!S&&!!S.authorText&&S.purpose!="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"};
_.M.computeIsHeaderHidden=function(S,p){return!S||p};
_.M.computeDropdownRendererClasses=function(S){return S?["text-secondary-style"]:[]};
_.M.closeDialog=function(){this.isCommentboxLoading=this.isOpen=!1;var S=_.tB(this.hostElement).querySelector("#access-restrictions-selector").firstElementChild;S&&S.reset()};
d$.prototype.onPopupClosed=d$.prototype.onPopupClosed;d$.prototype.onRequestSent=d$.prototype.onRequestSent;d$.prototype.onYtNavigate=d$.prototype.onYtNavigate;d$.prototype.onIronSelect=d$.prototype.onIronSelect;d$.prototype.onYtVideoLinkSelected=d$.prototype.onYtVideoLinkSelected;d$.prototype.onYtVideoLinkButtonCancel=d$.prototype.onYtVideoLinkButtonCancel;d$.prototype.onYtCommentboxLoadingEnd=d$.prototype.onYtCommentboxLoadingEnd;d$.prototype.onYtCommentboxLoadingStart=d$.prototype.onYtCommentboxLoadingStart;
d$.prototype.onYtCommentboxDismiss=d$.prototype.onYtCommentboxDismiss;d$.prototype.showButtonEduTooltip=d$.prototype.showButtonEduTooltip;_.x([_.F(_.eL.YtComponentBehavior),_.E("design:type",Object)],d$.prototype,"ytComponentBehavior",void 0);_.x([_.F(_.qH.YtRendererstamperBehavior),_.E("design:type",Object)],d$.prototype,"ytRendererstamperBehavior",void 0);_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],d$.prototype,"ytRendererBehavior",void 0);
_.x([_.F(_.Aj.YtActionHandlerBehavior),_.E("design:type",Object)],d$.prototype,"ytActionHandlerBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],d$.prototype,"data",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],d$.prototype,"isOpen",void 0);_.x([_.g({computed:"computeButtonOverride(data)"}),_.E("design:type",Object)],d$.prototype,"buttonOverride",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],d$.prototype,"modern",void 0);
_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],d$.prototype,"roundedContainer",void 0);_.x([_.g(),_.E("design:type",Object)],d$.prototype,"dropdownButtonOverride",void 0);_.x([_.g({computed:"computeCreationDisabled(data.postCreationDisabledText)"}),_.E("design:type",Boolean)],d$.prototype,"creationDisabled",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Boolean)],d$.prototype,"enableCreationBox",void 0);
_.x([_.g({reflectToAttribute:!0,computed:"computeIsCreationDialog(data.purpose)"}),_.E("design:type",Boolean)],d$.prototype,"isCreationDialog",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],d$.prototype,"inPopupContainer",void 0);_.x([_.g({reflectToAttribute:!0,computed:"computeIsCreationDialogWithHeader(data)"}),_.E("design:type",Boolean)],d$.prototype,"isCreationDialogWithHeader",void 0);_.x([_.g(),_.E("design:type",Object)],d$.prototype,"accessRestriction",void 0);
_.x([_.g({computed:"computeDropdownRendererClasses(isCreationDialogWithHeader)"}),_.E("design:type",Array)],d$.prototype,"dropdownRendererClasses",void 0);_.x([_.g(),_.E("design:type",Object)],d$.prototype,"isCommentboxLoading",void 0);_.x([_.g(),_.E("design:type",Array)],d$.prototype,"attachmentButtonIds",void 0);_.x([_.O2("#image-button"),_.E("design:type",HTMLElement)],d$.prototype,"imageButton",void 0);
_.x([_.O2("#image-poll-button"),_.E("design:type",HTMLElement)],d$.prototype,"imagePollButton",void 0);_.x([_.O2("#quiz-button"),_.E("design:type",HTMLElement)],d$.prototype,"quizButton",void 0);_.x([_.O2("#commentbox"),_.E("design:type",Object)],d$.prototype,"JSC$13685_commentbox",void 0);_.x([_.T4("data.multiImageButtonTooltip","data.imagePollButtonTooltip","data.quizButton"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],d$.prototype,"showButtonEduTooltip",null);
_.x([_.Vd("yt-commentbox-dismiss"),_.E("design:type",Function),_.E("design:paramtypes",[CustomEvent]),_.E("design:returntype")],d$.prototype,"onYtCommentboxDismiss",null);_.x([_.Vd("yt-commentbox-loading-start"),_.E("design:type",Function),_.E("design:paramtypes",[CustomEvent]),_.E("design:returntype")],d$.prototype,"onYtCommentboxLoadingStart",null);
_.x([_.Vd("yt-commentbox-loading-end"),_.E("design:type",Function),_.E("design:paramtypes",[CustomEvent]),_.E("design:returntype")],d$.prototype,"onYtCommentboxLoadingEnd",null);_.x([_.Vd("yt-video-link-button-cancel"),_.E("design:type",Function),_.E("design:paramtypes",[CustomEvent]),_.E("design:returntype")],d$.prototype,"onYtVideoLinkButtonCancel",null);
_.x([_.Vd("yt-video-link-selected"),_.E("design:type",Function),_.E("design:paramtypes",[CustomEvent]),_.E("design:returntype")],d$.prototype,"onYtVideoLinkSelected",null);_.x([_.Vd("iron-select"),_.E("design:type",Function),_.E("design:paramtypes",[CustomEvent]),_.E("design:returntype")],d$.prototype,"onIronSelect",null);_.x([_.Vd("yt-navigate"),_.E("design:type",Function),_.E("design:paramtypes",[CustomEvent]),_.E("design:returntype")],d$.prototype,"onYtNavigate",null);
_.x([_.Vd("yt-service-request-sent-button-renderer"),_.E("design:type",Function),_.E("design:paramtypes",[CustomEvent]),_.E("design:returntype")],d$.prototype,"onRequestSent",null);_.x([_.Vd("yt-popup-closed"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],d$.prototype,"onPopupClosed",null);d$=_.x([_.f({is:"ytd-backstage-post-dialog-renderer",disableElementRegistration:!0})],d$);
_.C(d$,"ytd-backstage-post-dialog-renderer",function(){if(OBe!==void 0)return OBe;var S=document.createElement("template");_.h(S,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-backstage-post-dialog-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="disabled-message" hidden="[[!creationDisabled]]" class="style-scope ytd-backstage-post-dialog-renderer">\n  <div id="disabled-message-annotation" class="style-scope ytd-backstage-post-dialog-renderer">\n  [[getSimpleString(data.postCreationDisabledAnnotation)]]\n  </div>\n  <yt-formatted-string id="disabled-message-text" text="[[data.postCreationDisabledText]]" class="style-scope ytd-backstage-post-dialog-renderer">\n  </yt-formatted-string>\n</div>\n<div hidden="[[creationDisabled]]" class="style-scope ytd-backstage-post-dialog-renderer">\n  <div id="dialog-header" hidden="[[computeIsHeaderHidden(isCreationDialogWithHeader, isCommentboxLoading)]]" class="style-scope ytd-backstage-post-dialog-renderer">\n    <yt-img-shadow id="header-author-thumbnail" thumbnail="[[data.authorThumbnail]]" class="style-scope ytd-backstage-post-dialog-renderer">\n    </yt-img-shadow>\n    <yt-formatted-string id="header-channel-name" text="[[data.authorText]]" class="style-scope ytd-backstage-post-dialog-renderer">\n    </yt-formatted-string>\n    <yt-formatted-string id="header-visibility-label" text="[[data.visibilityLabel]]" class="style-scope ytd-backstage-post-dialog-renderer">\n    </yt-formatted-string>\n    <div id="access-restrictions-selector" class="style-scope ytd-backstage-post-dialog-renderer"></div>\n    <yt-formatted-string id="header-default-visibility" hidden="[[!data.accessRestrictionsSelector.postVisibilityLabelRenderer.text]]" text="[[data.accessRestrictionsSelector.postVisibilityLabelRenderer.text]]" class="style-scope ytd-backstage-post-dialog-renderer">\n    </yt-formatted-string>\n  </div>\n  <div id="unopened-dialog" hidden="[[isOpen]]" class="style-scope ytd-backstage-post-dialog-renderer">\n    <yt-img-shadow id="author-thumbnail" height="40" thumbnail="[[data.authorThumbnail]]" width="40" class="style-scope ytd-backstage-post-dialog-renderer">\n    </yt-img-shadow>\n    <div id="main" class="style-scope ytd-backstage-post-dialog-renderer">\n      <div id="placeholder-area" class="style-scope ytd-backstage-post-dialog-renderer">\n        <yt-formatted-string id="commentbox-placeholder" role="button" tabindex="0" text="[[data.placeholderText]]" class="style-scope ytd-backstage-post-dialog-renderer">\n        </yt-formatted-string>\n      </div>\n      <div id="attachments" class="style-scope ytd-backstage-post-dialog-renderer">\n        <template is="dom-repeat" items="[[attachmentButtonIds]]" as="buttonId" class="style-scope ytd-backstage-post-dialog-renderer">\n          <span id="[[buttonId]]" class="style-scope ytd-backstage-post-dialog-renderer"></span>\n        </template>\n        <div id="post-buttons-wrapper" class="style-scope ytd-backstage-post-dialog-renderer">\n          <ytd-button-renderer id="post-button" data="[[computeDisabledPostButton(data.postButton.buttonRenderer)]]" hidden="[[!isCreationDialog]]" overrides="[[buttonOverride]]" class="style-scope ytd-backstage-post-dialog-renderer">\n          </ytd-button-renderer>\n          <div id="option-menu" class="style-scope ytd-backstage-post-dialog-renderer"></div>\n        </div>\n      </div>\n    </div>\n  </div>\n  <ytd-commentbox id="commentbox" data="[[data]]" hidden="[[!isOpen]]" is-backstage-post="" is-creation-box="[[isCreationDialog]]" is-popup-box="[[inPopupContainer]]" is-post-creation-dialog-v2="[[isCreationDialogWithHeader]]" class="style-scope ytd-backstage-post-dialog-renderer">\n    <div slot="repost-preview" hidden="[[!data.backstageAttachment.postRenderer]]" class="style-scope ytd-backstage-post-dialog-renderer">\n      <slot name="repost-preview" class="style-scope ytd-backstage-post-dialog-renderer"></slot>\n    </div>\n  </ytd-commentbox>\n</div>\n');
S.content.insertBefore(_.t().content.cloneNode(!0),S.content.firstChild);return OBe=S},{mode:1});var ofE;var vfc;var VS=function(){return _.w.apply(this,arguments)||this};
_.r(VS,_.w);_.M=VS.prototype;_.M.computeHeartButtonStyle=function(S){return(S==null?0:S.styleType)?S.styleType.split("TYPE_")[1].replace(/_/g,"-").toLowerCase():"unknown"};
_.M.onYtButtonTap=function(){if(this.data.isEnabled){var S=this.data.isHearted;this.toggle();this.ytRendererBehavior.markDirty();(S=this.getEndpoint(S))&&_.tW().resolve(_.cQ).resolveCommand(S,{form:{element:this.hostElement}})}else(S=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(this.data.disabledEndpoint))&&this.ytdOpenPopupBehavior.openPopup(S)};
_.M.toggle=function(S){this.set("data.isHearted",S!==void 0?S:!this.data.isHearted)};
_.M.getEndpoint=function(S){var p,U=(p=this.data)==null?void 0:p.heartEndpoint,Y;p=(Y=this.data)==null?void 0:Y.unheartEndpoint;if(U&&p)return S?p:U};
_.M.computeButtonAccessibility=function(S,p){var U,Y,L=S==null?void 0:(U=S.heartedAccessibility)==null?void 0:(Y=U.accessibilityData)==null?void 0:Y.label,I,V;S=S==null?void 0:(I=S.unheartedAccessibility)==null?void 0:(V=I.accessibilityData)==null?void 0:V.label;return p?L:S};
_.$u.Object.defineProperties(VS.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 S;return _.y("kevlar_system_icons")&&!((S=this.data)==null||!S.isHearted)}}});
VS.prototype.onYtButtonTap=VS.prototype.onYtButtonTap;_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],VS.prototype,"ytRendererBehavior",void 0);_.x([_.F(_.xK),_.E("design:type",Object)],VS.prototype,"ytdOpenPopupBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],VS.prototype,"data",void 0);_.x([_.e("data.isHearted"),_.E("design:type",Object),_.E("design:paramtypes",[])],VS.prototype,"heartTooltip",null);
_.x([_.e("data.isHearted"),_.E("design:type",Boolean),_.E("design:paramtypes",[])],VS.prototype,"iconFilled",null);_.x([_.g({computed:"computeButtonAccessibility(data,data.isHearted)"}),_.E("design:type",String)],VS.prototype,"buttonAccessibility",void 0);_.x([_.g({computed:"computeHeartButtonStyle(data)",reflectToAttribute:!0}),_.E("design:type",String)],VS.prototype,"heartButtonStyle",void 0);
_.x([_.Vd("tap"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],VS.prototype,"onYtButtonTap",null);VS=_.x([_.f({is:"ytd-creator-heart-renderer",disableElementRegistration:!0})],VS);
_.C(VS,"ytd-creator-heart-renderer",function(){if(vfc!==void 0)return vfc;var S=document.createElement("template");_.h(S,'\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');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);return vfc=S},{mode:1});var TJ=function(){var S=_.w.apply(this,arguments)||this;S.hasCreatorReply=!1;S.buttonOverrides={size:"S",iconPosition:"icon-only"};S.replyButtonOverrides={size:"S",type:"text"};S.forceIconButton=!_.y("web_modern_buttons");S.modern=_.y("web_modern_buttons");S.buttonTooltipPosition="bottom";S.systemIcons=_.y("kevlar_system_icons");S.replyDialog=null;return S};
_.r(TJ,_.w);_.M=TJ.prototype;
_.M.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]]"}}}}}};
_.M.detached=function(){this.replyDialog&&this.replyDialog.remove();this.replyDialog=null};
_.M.dataChange=function(){this.replyDialog&&_.tB(this.replyDialogElement).removeChild(this.replyDialog);this.replyDialog=null;var S,p,U;this.isLiked=this.systemIcons&&!!((S=this.data)==null?0:(p=S.likeButton)==null?0:(U=p.toggleButtonRenderer)==null?0:U.isToggled)};
_.M.computeShowVoteCountBeginning=function(S,p){return S===void 0||p===void 0?!0:S.style!=="COMMENT_ACTION_BUTTON_STYLE_TYPE_DESKTOP_TOOLBAR"&&!!p&&this.ytRendererBehavior.getSimpleString(p)!=="0"};
_.M.computeShowVoteCountEnd=function(S,p){return S===void 0||p===void 0?!0:S.style==="COMMENT_ACTION_BUTTON_STYLE_TYPE_DESKTOP_TOOLBAR"&&!!p&&this.ytRendererBehavior.getSimpleString(p)!=="0"};
_.M.computeShowCommentCount=function(S,p){return S===void 0||p===void 0?!0:S.style==="COMMENT_ACTION_BUTTON_STYLE_TYPE_DESKTOP_TOOLBAR"&&!!p&&this.ytRendererBehavior.getSimpleString(p)!=="0"};
_.M.hideReplyDialog=function(){this.replyDialogElement.hidden=!0};
_.M.reply=function(){this.replyButtonElement.firstElementChild?this.replyButtonElement.firstElementChild.firstElementChild.click():this.replyButtonEndElement.firstElementChild&&this.replyButtonEndElement.firstElementChild.firstElementChild.click()};
_.M.showReplyDialog=function(S){S&&(this.replyDialog||(this.replyDialog=document.createElement("ytd-comment-reply-dialog-renderer"),this.replyDialog.id="replybox"),this.replyDialog.isAttached||_.tB(this.replyDialogElement).appendChild(this.replyDialog),this.replyDialog.data=S,this.replyDialogElement.hidden=!1,this.replyDialog.openDialog())};
_.M.onYtCommentboxDismiss=function(){this.hideReplyDialog()};
_.M.onRequestSent=function(S){if(_.y("web_button_rework")){S=_.d(S.detail);for(var p=S.next();!p.done;p=S.next())(p=this.get("createCommentReplyDialogEndpoint.dialog.commentReplyDialogRenderer",p.value))&&this.showReplyDialog(p)}};
_.M.onYtNavigate=function(S){var p,U;(S=(p=_.b(S.detail.endpoint,_.eLI))==null?void 0:(U=p.dialog)==null?void 0:U.commentReplyDialogRenderer)&&this.showReplyDialog(S)};
_.M.onYtServiceRequestSent=function(S,p){S.stopPropagation();if(p.actions)for(S=0;S<p.actions.length;S++){var U=_.b(p.actions[S],CGj);U&&this.handleUpdateCommentVoteAction(U)}};
_.M.handleUpdateCommentVoteAction=function(S){this.voteCount=S.voteCount||_.Ec("0");S.voteStatus==="LIKE"?this.JSC$13696_ytdDislikeToggleButtonRenderer.toggle(!1):S.voteStatus==="DISLIKE"?this.JSC$13696_ytdLikeToggleButtonRenderer.toggle(!1):(this.JSC$13696_ytdLikeToggleButtonRenderer.toggle(!1),this.JSC$13696_ytdDislikeToggleButtonRenderer.toggle(!1))};
_.M.computeReplyButtonHidden=function(S){return S};
_.M.computeReplyButtonBeginning=function(S){return(S==null?0:S.replyButton)&&S.style!=="COMMENT_ACTION_BUTTON_STYLE_TYPE_DESKTOP_TOOLBAR"?S.replyButton:void 0};
_.M.computeReplyButtonEnd=function(S){return(S==null?0:S.replyButton)&&S.style==="COMMENT_ACTION_BUTTON_STYLE_TYPE_DESKTOP_TOOLBAR"?S.replyButton:void 0};
_.M.computeActionButtonStyle=function(S){return(S==null?0:S.style)?S.style.split("TYPE_")[1].replace(/_/g,"-").toLowerCase():"unknown"};
_.M.onButtonTooltipPositionChanged=function(){this.ytdReplyButtonRenderer&&(this.ytdReplyButtonRenderer.buttonTooltipPosition=this.buttonTooltipPosition)};
_.M.onYtToggleButton=function(S){var p,U;this.isLiked=this.systemIcons&&!!((p=S.detail)==null?0:(U=p.actions)==null?0:U.like)};
TJ.prototype.onYtToggleButton=TJ.prototype.onYtToggleButton;TJ.prototype.onButtonTooltipPositionChanged=TJ.prototype.onButtonTooltipPositionChanged;TJ.prototype.onYtServiceRequestSent=TJ.prototype.onYtServiceRequestSent;TJ.prototype.onYtNavigate=TJ.prototype.onYtNavigate;TJ.prototype.onRequestSent=TJ.prototype.onRequestSent;TJ.prototype.onYtCommentboxDismiss=TJ.prototype.onYtCommentboxDismiss;TJ.prototype.dataChange=TJ.prototype.dataChange;
_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],TJ.prototype,"ytRendererBehavior",void 0);_.x([_.F(_.qH.YtRendererstamperBehavior),_.E("design:type",Object)],TJ.prototype,"ytRendererstamperBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],TJ.prototype,"data",void 0);_.x([_.g(),_.E("design:type",Object)],TJ.prototype,"voteCount",void 0);_.x([_.g(),_.E("design:type",Object)],TJ.prototype,"commentCount",void 0);_.x([_.g(),_.E("design:type",Object)],TJ.prototype,"replyThumbnail",void 0);
_.x([_.g(),_.E("design:type",Object)],TJ.prototype,"hasCreatorReply",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Boolean)],TJ.prototype,"enableCreationBox",void 0);_.x([_.g({computed:"computeActionButtonStyle(data)",reflectToAttribute:!0}),_.E("design:type",String)],TJ.prototype,"actionButtonsStyle",void 0);_.x([_.g({computed:"computeReplyButtonBeginning(data)"}),_.E("design:type",Object)],TJ.prototype,"replyButtonBeginning",void 0);
_.x([_.g({computed:"computeReplyButtonEnd(data)"}),_.E("design:type",Object)],TJ.prototype,"replyButtonEnd",void 0);_.x([_.g(),_.E("design:type",Object)],TJ.prototype,"buttonOverrides",void 0);_.x([_.g(),_.E("design:type",Object)],TJ.prototype,"replyButtonOverrides",void 0);_.x([_.g(),_.E("design:type",Object)],TJ.prototype,"forceIconButton",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Boolean)],TJ.prototype,"useCommentIcon",void 0);
_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],TJ.prototype,"modern",void 0);_.x([_.g(),_.E("design:type",Object)],TJ.prototype,"buttonTooltipPosition",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],TJ.prototype,"systemIcons",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Boolean)],TJ.prototype,"isLiked",void 0);_.x([_.O2("ytd-button-renderer"),_.E("design:type",Object)],TJ.prototype,"ytdReplyButtonRenderer",void 0);
_.x([_.O2("#like-button"),_.E("design:type",Object)],TJ.prototype,"JSC$13696_ytdLikeToggleButtonRenderer",void 0);_.x([_.O2("#dislike-button"),_.E("design:type",Object)],TJ.prototype,"JSC$13696_ytdDislikeToggleButtonRenderer",void 0);_.x([_.O2("#reply-dialog"),_.E("design:type",HTMLElement)],TJ.prototype,"replyDialogElement",void 0);_.x([_.O2("#reply-button"),_.E("design:type",HTMLElement)],TJ.prototype,"replyButtonElement",void 0);
_.x([_.O2("#reply-button-end"),_.E("design:type",HTMLElement)],TJ.prototype,"replyButtonEndElement",void 0);_.x([_.z4("data"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],TJ.prototype,"dataChange",null);_.x([_.Vd("yt-commentbox-dismiss"),_.E("design:type",Function),_.E("design:paramtypes",[CustomEvent]),_.E("design:returntype")],TJ.prototype,"onYtCommentboxDismiss",null);
_.x([_.Vd("yt-service-request-sent-button-renderer"),_.E("design:type",Function),_.E("design:paramtypes",[CustomEvent]),_.E("design:returntype")],TJ.prototype,"onRequestSent",null);_.x([_.Vd("yt-navigate"),_.E("design:type",Function),_.E("design:paramtypes",[CustomEvent]),_.E("design:returntype")],TJ.prototype,"onYtNavigate",null);
_.x([_.Vd("yt-service-request-sent"),_.E("design:type",Function),_.E("design:paramtypes",[CustomEvent,_.eM]),_.E("design:returntype")],TJ.prototype,"onYtServiceRequestSent",null);_.x([_.T4("buttonTooltipPosition"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],TJ.prototype,"onButtonTooltipPositionChanged",null);
_.x([_.Vd("yt-toggle-button"),_.E("design:type",Function),_.E("design:paramtypes",[CustomEvent]),_.E("design:returntype")],TJ.prototype,"onYtToggleButton",null);TJ=_.x([_.f({is:"ytd-comment-action-buttons-renderer",disableElementRegistration:!0})],TJ);
_.C(TJ,"ytd-comment-action-buttons-renderer",function(){if(ofE!==void 0)return ofE;var S=document.createElement("template");_.h(S,'\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');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);return ofE=S},{mode:1});var $eQ;var Wy=function(){return _.w.apply(this,arguments)||this};
_.r(Wy,_.w);Wy.prototype.focus=function(){_.tB(this.hostElement).querySelector("#commentbox").focus()};
_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],Wy.prototype,"ytRendererBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],Wy.prototype,"data",void 0);_.x([_.g(),_.E("design:type",Object)],Wy.prototype,"zeroStepChannelCreationRenderer",void 0);Wy=_.x([_.f({is:"ytd-comment-dialog-renderer",disableElementRegistration:!0})],Wy);
_.C(Wy,"ytd-comment-dialog-renderer",function(){if($eQ!==void 0)return $eQ;var S=document.createElement("template");_.h(S,'\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');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);return $eQ=S},{mode:1});var iBE;var O6=function(){var S=_.w.apply(this,arguments)||this;S.buttonOverrides={size:"S",iconPosition:"icon-only"};S.replyButtonOverrides={size:"S",type:"text"};return S};
_.r(O6,_.w);_.M=O6.prototype;_.M.configureRendererStamper=function(){return{creatorHeartSupportedRenderer:{id:"creator-heart",mapping:{creatorHeartRenderer:{component:"ytd-creator-heart-renderer"}}}}};
_.M.detached=function(){this.replyBox&&this.replyBox.remove()};
_.M.showReplyDialog=function(S){if(S){var p=this.replyBox;p||(p=document.createElement("ytd-comment-reply-dialog-renderer"),p.id="replybox",_.tB(this.replyDialogDiv).appendChild(p));p.data=S;this.replyDialogDiv.hidden=!1;p.openDialog()}};
_.M.hideReplyDialogDiv=function(){this.replyDialogDiv.hidden=!0};
_.M.onYtServiceRequestSent=function(S,p){S.stopPropagation();if(p.actions)for(var U=0;U<p.actions.length;U++){var Y=_.b(p.actions[U],CGj);Y?this.handleUpdateCommentVoteAction(Y):S.target===this.heartButton&&this.toggleHeartState()}};
_.M.handleUpdateCommentVoteAction=function(S){var p;(p=this.toolbarState)!=null&&p.key&&this.ytdReduxBehavior.dispatch(_.r8("engagementToolbarStateEntityPayload",this.toolbarState.key,{likeState:S.voteStatus==="LIKE"?"TOOLBAR_LIKE_STATE_LIKED":S.voteStatus==="DISLIKE"?"TOOLBAR_LIKE_STATE_DISLIKED":"TOOLBAR_LIKE_STATE_INDIFFERENT"}))};
_.M.toggleHeartState=function(){var S;(S=this.toolbarState)!=null&&S.key&&this.ytdReduxBehavior.dispatch(_.r8("engagementToolbarStateEntityPayload",this.toolbarState.key,{heartState:this.toolbarState.heartState==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"?"TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE":"TOOLBAR_HEART_STATE_HEARTED_EDITABLE"}))};
_.$u.Object.defineProperties(O6.prototype,{likeCount:{configurable:!0,enumerable:!0,get:function(){var S,p,U;return(((S=this.toolbarState)==null?void 0:S.likeState)==="TOOLBAR_LIKE_STATE_LIKED"?(p=this.toolbarData)==null?void 0:p.likeCountLiked:(U=this.toolbarData)==null?void 0:U.likeCountNotliked)||""}},
showLikeCount:{configurable:!0,enumerable:!0,get:function(){return this.likeCount.trim().length>0}},
isVisiblyDisabled:{configurable:!0,enumerable:!0,get:function(){var S;return((S=this.toolbarSurface)==null?void 0:S.commentDisabledActionCommand)!==void 0}},
isSubscribersOnlyComments:{configurable:!0,enumerable:!0,get:function(){var S;return((S=this.toolbarSurface)==null?void 0:S.subscribersOnlySnackbarCommand)!==void 0}},
hasPrepareAccountCommand:{configurable:!0,enumerable:!0,get:function(){var S;return((S=this.toolbarSurface)==null?void 0:S.prepareAccountCommand)!==void 0&&!_.y("comment_prepare_account_command_killswitch")}},
likeToggleButtonRenderer:{configurable:!0,enumerable:!0,get:function(){var S,p=_.b((S=this.toolbarSurface)==null?void 0:S.prepareAccountCommand,_.Z$),U,Y,L,I,V,W,O,D,z;return{style:{styleType:this.isVisiblyDisabled?"STYLE_VISIBLY_DISABLED":"STYLE_TEXT"},size:{sizeType:"SIZE_DEFAULT"},isDisabled:!((U=this.toolbarSharedData)==null||!U.disabledLikeCommand),isToggled:!this.isVisiblyDisabled&&((Y=this.toolbarState)==null?void 0:Y.likeState)==="TOOLBAR_LIKE_STATE_LIKED",defaultIcon:{iconType:"LIKE"},defaultServiceEndpoint:this.isVisiblyDisabled?
void 0:p!=null?p:_.b((L=this.toolbarSurface)==null?void 0:L.likeCommand,_.Z$),toggledServiceEndpoint:this.isVisiblyDisabled?void 0:p!=null?p:_.b((I=this.toolbarSurface)==null?void 0:I.unlikeCommand,_.Z$),defaultCommand:this.isVisiblyDisabled?_.b((V=this.toolbarSurface)==null?void 0:V.commentDisabledActionCommand,_.Z$):void 0,defaultTooltip:(W=this.toolbarData)==null?void 0:W.likeInactiveTooltip,toggledTooltip:(O=this.toolbarData)==null?void 0:O.likeActiveTooltip,toggledStyle:{styleType:this.isVisiblyDisabled?
"STYLE_VISIBLY_DISABLED":"STYLE_DEFAULT_ACTIVE"},accessibilityData:{accessibilityData:{label:(D=this.toolbarData)==null?void 0:D.likeButtonA11y}},toggledAccessibilityData:{accessibilityData:{label:(z=this.toolbarSharedData)==null?void 0:z.unlikeButtonA11y}},preventAutoToggle:this.isVisiblyDisabled||this.hasPrepareAccountCommand}}},
dislikeToggleButtonRenderer:{configurable:!0,enumerable:!0,get:function(){var S,p=_.b((S=this.toolbarSurface)==null?void 0:S.prepareAccountCommand,_.Z$),U,Y,L,I,V,W,O,D,z,Q;return{style:{styleType:this.isVisiblyDisabled?"STYLE_VISIBLY_DISABLED":"STYLE_TEXT"},size:{sizeType:"SIZE_DEFAULT"},isDisabled:!((U=this.toolbarSharedData)==null||!U.disabledDislikeCommand),isToggled:!this.isVisiblyDisabled&&((Y=this.toolbarState)==null?void 0:Y.likeState)==="TOOLBAR_LIKE_STATE_DISLIKED",defaultIcon:{iconType:"DISLIKE"},
defaultServiceEndpoint:this.isVisiblyDisabled?void 0:p!=null?p:_.b((L=this.toolbarSurface)==null?void 0:L.dislikeCommand,_.Z$),toggledServiceEndpoint:this.isVisiblyDisabled?void 0:p!=null?p:_.b((I=this.toolbarSurface)==null?void 0:I.undislikeCommand,_.Z$),defaultCommand:this.isVisiblyDisabled?_.b((V=this.toolbarSurface)==null?void 0:V.commentDisabledActionCommand,_.Z$):void 0,defaultTooltip:(W=this.toolbarData)==null?void 0:W.dislikeInactiveTooltip,toggledTooltip:(O=this.toolbarData)==null?void 0:
O.dislikeActiveTooltip,toggledStyle:{styleType:this.isVisiblyDisabled?"STYLE_VISIBLY_DISABLED":"STYLE_DEFAULT_ACTIVE"},accessibilityData:{accessibilityData:{label:this.isReply?(D=this.toolbarSharedData)==null?void 0:D.dislikeReplyButtonA11y:(z=this.toolbarSharedData)==null?void 0:z.dislikeCommentButtonA11y}},toggledAccessibilityData:{accessibilityData:{label:(Q=this.toolbarSharedData)==null?void 0:Q.undislikeButtonA11y}},preventAutoToggle:this.isVisiblyDisabled||this.hasPrepareAccountCommand}}},
creatorHeartSupportedRenderer:{configurable:!0,enumerable:!0,get:function(){var S,p,U;if(((S=this.toolbarState)==null?void 0:S.heartState)!==void 0&&((p=this.toolbarState)==null?void 0:p.heartState)!=="TOOLBAR_HEART_STATE_UNKNOWN"&&((U=this.toolbarState)==null?void 0:U.heartState)!=="TOOLBAR_HEART_STATE_UNHEARTED"){var Y,L,I,V,W,O,D,z,Q,J,K,G,X,Z;return{creatorHeartRenderer:{creatorThumbnail:{thumbnails:[{url:(Y=this.toolbarData)==null?void 0:Y.creatorThumbnailUrl,width:32,height:32}]},heartIcon:{iconType:"FULL_HEART"},
isHearted:((L=this.toolbarState)==null?void 0:L.heartState)==="TOOLBAR_HEART_STATE_HEARTED"||((I=this.toolbarState)==null?void 0:I.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE",isEnabled:!this.isVisiblyDisabled&&(((V=this.toolbarState)==null?void 0:V.heartState)==="TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE"||((W=this.toolbarState)==null?void 0:W.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"),heartEndpoint:this.isVisiblyDisabled?void 0:_.b((O=this.toolbarSurface)==null?void 0:O.heartCommand,
_.Z$),unheartEndpoint:this.isVisiblyDisabled?void 0:_.b((D=this.toolbarSurface)==null?void 0:D.unheartCommand,_.Z$),disabledEndpoint:this.isVisiblyDisabled?_.b((z=this.toolbarSurface)==null?void 0:z.commentDisabledActionCommand,_.Z$):void 0,styleType:this.isVisiblyDisabled?"CREATOR_HEART_STYLE_TYPE_VISIBLY_DISABLED":void 0,heartedTooltip:(Q=this.toolbarData)==null?void 0:Q.heartActiveTooltip,unheartedTooltip:(J=this.toolbarData)==null?void 0:J.heartInactiveTooltip,heartedAccessibility:{accessibilityData:{label:((K=
this.toolbarState)==null?void 0:K.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"?(G=this.toolbarSharedData)==null?void 0:G.unheartButtonA11y:(X=this.toolbarSharedData)==null?void 0:X.heartButtonA11y}},unheartedAccessibility:{accessibilityData:{label:(Z=this.toolbarSharedData)==null?void 0:Z.heartButtonA11y}}}}}}},
hasReplyCommand:{configurable:!0,enumerable:!0,get:function(){var S;return!((S=this.toolbarSurface)==null||!S.replyCommand)}},
replyButtonRenderer:{configurable:!0,enumerable:!0,get:function(){var S,p,U,Y;return{size:"SIZE_DEFAULT",style:this.isVisiblyDisabled||this.isSubscribersOnlyComments?"STYLE_VISIBLY_DISABLED":"STYLE_TEXT",text:{runs:[{text:(S=this.commentStrings)==null?void 0:S.replyButtonText}]},navigationEndpoint:this.isVisiblyDisabled||this.isSubscribersOnlyComments?void 0:_.b((p=this.toolbarSurface)==null?void 0:p.replyCommand,_.Z$),command:this.isVisiblyDisabled?_.b((U=this.toolbarSurface)==null?void 0:U.commentDisabledActionCommand,
_.Z$):this.isSubscribersOnlyComments?_.b((Y=this.toolbarSurface)==null?void 0:Y.subscribersOnlySnackbarCommand,_.Z$):void 0}}}});
O6.prototype.onYtServiceRequestSent=O6.prototype.onYtServiceRequestSent;O6.prototype.hideReplyDialogDiv=O6.prototype.hideReplyDialogDiv;_.x([_.g(),_.E("design:type",Object)],O6.prototype,"commentStrings",void 0);_.x([_.g(),_.E("design:type",Boolean)],O6.prototype,"isReply",void 0);_.x([_.g(),_.E("design:type",Object)],O6.prototype,"toolbarData",void 0);_.x([_.g(),_.E("design:type",Object)],O6.prototype,"toolbarSharedData",void 0);
_.x([_.g(),_.E("design:type",String)],O6.prototype,"toolbarStateKey",void 0);_.x([_.g(),_.E("design:type",String)],O6.prototype,"toolbarSurfaceKey",void 0);_.x([_.F(_.Xh),_.E("design:type",Object)],O6.prototype,"ytdReduxBehavior",void 0);_.x([_.F(_.eL.YtComponentBehavior),_.E("design:type",Object)],O6.prototype,"ytComponentBehavior",void 0);_.x([_.F(_.qH.YtRendererstamperBehavior),_.E("design:type",Object)],O6.prototype,"ytRendererstamperBehavior",void 0);
_.x([_.O2("#reply-dialog"),_.E("design:type",HTMLElement)],O6.prototype,"replyDialogDiv",void 0);_.x([_.O2("#replybox"),_.E("design:type",Object)],O6.prototype,"replyBox",void 0);_.x([_.O2("ytd-creator-heart-renderer"),_.E("design:type",Object)],O6.prototype,"heartButton",void 0);_.x([_.g({selector:function(S,p){return _.I4(S.entities,"engagementToolbarStateEntityPayload",p)},
selectorArgs:["toolbarStateKey"]}),_.E("design:type",Object)],O6.prototype,"toolbarState",void 0);_.x([_.g({selector:X0r,selectorArgs:["toolbarSurfaceKey"]}),_.E("design:type",Object)],O6.prototype,"toolbarSurface",void 0);_.x([_.g(),_.E("design:type",Object)],O6.prototype,"buttonOverrides",void 0);_.x([_.Vd("yt-commentbox-dismiss"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],O6.prototype,"hideReplyDialogDiv",null);
_.x([_.e("toolbarData","toolbarState"),_.E("design:type",String),_.E("design:paramtypes",[])],O6.prototype,"likeCount",null);_.x([_.e("likeCount"),_.E("design:type",Boolean),_.E("design:paramtypes",[])],O6.prototype,"showLikeCount",null);_.x([_.e("toolbarSurface"),_.E("design:type",Boolean),_.E("design:paramtypes",[])],O6.prototype,"isVisiblyDisabled",null);_.x([_.e("toolbarSurface"),_.E("design:type",Boolean),_.E("design:paramtypes",[])],O6.prototype,"isSubscribersOnlyComments",null);
_.x([_.e("toolbarSurface"),_.E("design:type",Boolean),_.E("design:paramtypes",[])],O6.prototype,"hasPrepareAccountCommand",null);_.x([_.e("toolbarData","toolbarState","toolbarSurface"),_.E("design:type",Object),_.E("design:paramtypes",[])],O6.prototype,"likeToggleButtonRenderer",null);_.x([_.e("isReply","toolbarData","toolbarState","toolbarSurface"),_.E("design:type",Object),_.E("design:paramtypes",[])],O6.prototype,"dislikeToggleButtonRenderer",null);
_.x([_.e("toolbarData","toolbarState","toolbarSurface"),_.E("design:type",Object),_.E("design:paramtypes",[])],O6.prototype,"creatorHeartSupportedRenderer",null);_.x([_.e("toolbarSurface"),_.E("design:type",Boolean),_.E("design:paramtypes",[])],O6.prototype,"hasReplyCommand",null);_.x([_.e("toolbarSurface","commentStrings","isVisiblyDisabled"),_.E("design:type",Object),_.E("design:paramtypes",[])],O6.prototype,"replyButtonRenderer",null);
_.x([_.g(),_.E("design:type",Object)],O6.prototype,"replyButtonOverrides",void 0);_.x([_.Vd("yt-service-request-sent"),_.E("design:type",Function),_.E("design:paramtypes",[CustomEvent,_.eM]),_.E("design:returntype")],O6.prototype,"onYtServiceRequestSent",null);O6=_.x([_.f({is:"ytd-comment-engagement-bar",disableElementRegistration:!0})],O6);
_.C(O6,"ytd-comment-engagement-bar",function(){if(iBE!==void 0)return iBE;var S=document.createElement("template");_.h(S,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comment-engagement-bar--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="toolbar" class="style-scope ytd-comment-engagement-bar">\n  \n  <ytd-toggle-button-renderer id="like-button" button-tooltip-position="bottom" data="[[likeToggleButtonRenderer]]" icon-size="16" overrides="[[buttonOverrides]]" class="style-scope ytd-comment-engagement-bar">\n  </ytd-toggle-button-renderer>\n  <span id="vote-count-middle" hidden="[[!showLikeCount]]" aria-label$="[[voteCount.accessibility.accessibilityData.label]]" class="style-scope ytd-comment-engagement-bar">\n    [[likeCount]]\n  </span>\n  \n  <ytd-toggle-button-renderer id="dislike-button" button-tooltip-position="bottom" data="[[dislikeToggleButtonRenderer]]" icon-size="16" overrides="[[buttonOverrides]]" class="style-scope ytd-comment-engagement-bar">\n  </ytd-toggle-button-renderer>\n  \n  <div id="creator-heart" class="style-scope ytd-comment-engagement-bar"></div>\n  \n  <ytd-button-renderer id="reply-button-end" data="[[replyButtonRenderer]]" force-icon-button="true" hidden="[[!hasReplyCommand]]" overrides="[[replyButtonOverrides]]" class="style-scope ytd-comment-engagement-bar">\n  </ytd-button-renderer>\n</div>\n\n<div id="reply-dialog" class="style-scope ytd-comment-engagement-bar"></div>\n');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);return iBE=S},{mode:1});var Nhd;var k_=function(){return _.w.apply(this,arguments)||this};
_.r(k_,_.w);_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],k_.prototype,"ytRendererBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],k_.prototype,"data",void 0);k_=_.x([_.f({is:"ytd-comment-inline-thumbnail-renderer",disableElementRegistration:!0})],k_);
_.C(k_,"ytd-comment-inline-thumbnail-renderer",function(){if(Nhd!==void 0)return Nhd;var S=document.createElement("template");_.h(S,'\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>');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);return Nhd=S},{mode:1});var BhI;var Hy=function(){return _.w.apply(this,arguments)||this};
_.r(Hy,_.w);_.x([_.g(),_.E("design:type",Object)],Hy.prototype,"data",void 0);Hy=_.x([_.f({is:"ytd-comment-pause-composer-renderer",disableElementRegistration:!0})],Hy);
_.C(Hy,"ytd-comment-pause-composer-renderer",function(){if(BhI!==void 0)return BhI;var S=document.createElement("template");_.h(S,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comment-pause-composer-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="pause-composer" class="style-scope ytd-comment-pause-composer-renderer">\n  <yt-attributed-string data="[[data.text]]" class="style-scope ytd-comment-pause-composer-renderer">\n  </yt-attributed-string>\n  <yt-attributed-string data="[[data.termsText]]" force-default-style="" class="style-scope ytd-comment-pause-composer-renderer">\n  </yt-attributed-string>\n</div>');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);return BhI=S},{mode:1});var quH;var AGI;var DM=function(){var S=_.w.apply(this,arguments)||this;S.isOpen=!1;return S};
_.r(DM,_.w);_.M=DM.prototype;_.M.dataChanged=function(){this.isOpen=!1};
_.M.onTap=function(){this.data&&(this.data.navigationEndpoint?_.cv(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint}):this.openDialog())};
_.M.focus=function(){this.JSC$13722_commentbox.focus()};
_.M.onYtCommentboxDismiss=function(){this.isOpen=!1};
_.M.openDialog=function(){this.isOpen=!0;this.JSC$13722_commentbox.focus();this.JSC$13722_commentbox.maybeHeightChanged()};
DM.prototype.onYtCommentboxDismiss=DM.prototype.onYtCommentboxDismiss;DM.prototype.dataChanged=DM.prototype.dataChanged;_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],DM.prototype,"ytRendererBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],DM.prototype,"data",void 0);_.x([_.g(),_.E("design:type",Object)],DM.prototype,"isOpen",void 0);_.x([_.O2("#commentbox"),_.E("design:type",Object)],DM.prototype,"JSC$13722_commentbox",void 0);
_.x([_.z4("data"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],DM.prototype,"dataChanged",null);_.x([_.Vd("yt-commentbox-dismiss"),_.E("design:type",Function),_.E("design:paramtypes",[CustomEvent]),_.E("design:returntype")],DM.prototype,"onYtCommentboxDismiss",null);DM=_.x([_.f({is:"ytd-comment-reply-dialog-renderer",disableElementRegistration:!0})],DM);
_.C(DM,"ytd-comment-reply-dialog-renderer",function(){if(AGI!==void 0)return AGI;var S=document.createElement("template");_.h(S,'\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');
S.content.insertBefore(_.t().content.cloneNode(!0),S.content.firstChild);return AGI=S},{mode:1});var tBm;var zJ=function(){return _.w.apply(this,arguments)||this};
_.r(zJ,_.w);_.$u.Object.defineProperties(zJ.prototype,{icon:{configurable:!0,enumerable:!0,get:function(){var S,p,U=(S=this.data)==null?void 0:(p=S.icon)==null?void 0:p.iconType;return U?"yt-icons:"+U.toLowerCase():null}}});
_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],zJ.prototype,"ytRendererBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],zJ.prototype,"data",void 0);_.x([_.g(),_.e("data.icon"),_.E("design:type",Object),_.E("design:paramtypes",[])],zJ.prototype,"icon",null);zJ=_.x([_.f({is:"ytd-pinned-comment-badge-renderer",disableElementRegistration:!0})],zJ);
_.C(zJ,"ytd-pinned-comment-badge-renderer",function(){if(tBm!==void 0)return tBm;var S=document.createElement("template");_.h(S,'\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');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);return tBm=S},{mode:1});var cGe;var SfH={},pZl={input:!0,meta:!0,br:!0,link:!0,img:!0},QS=null;SfH.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(){QS==null&&(QS=document.createElement("tp-yt-paper-tooltip"),QS.offset=8,QS.fitToVisibleBounds=!0)},
onMouseOver_:function(S){if(S=_.uI(S.target,function(L){return L==this||L.getAttribute&&L.getAttribute("shared-tooltip-text")}.bind(this),!0)){var p=S.getAttribute("shared-tooltip-text");
if(p){var U=this,Y=null;S!=this&&(S.tagName.toLowerCase()in pZl?U=S.parentElement:U=S,S.id&&(Y=S.id));this.polymerController.createTooltipIfRequired_();if(QS.parentElement!=U||QS.for!=Y)(0,_.L3)(QS).textContent=p,_.tB(U).appendChild(QS),QS.for=Y,QS.animationDelay=this.polymerController.sharedTooltipAnimationDelay,QS.position=this.polymerController.sharedTooltipPosition}}}};var nP=function(){return _.w.apply(this,arguments)||this};
_.r(nP,_.w);nP.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]]"}}}}}};
nP.prototype.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","img")};
nP.prototype.colorChanged=function(){var S,p,U,Y=(S=this.data)==null?void 0:(p=S.color)==null?void 0:(U=p.basicColorPaletteData)==null?void 0:U.foregroundBodyColor;Y&&(this.rgbBadgeColor=_.s1(Y));_.tB(this.hostElement).querySelector("#icon").style.color=this.rgbBadgeColor};
nP.prototype.tooltipChanged=function(){var S;((S=this.data)==null?0:S.tooltip)?this.hostElement.setAttribute("aria-label",this.data.tooltip):this.hostElement.removeAttribute("aria-label")};
nP.prototype.tooltipChanged=nP.prototype.tooltipChanged;nP.prototype.colorChanged=nP.prototype.colorChanged;_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],nP.prototype,"ytRendererBehavior",void 0);_.x([_.F(_.qH.YtRendererstamperBehavior),_.E("design:type",Object)],nP.prototype,"ytRendererstamperBehavior",void 0);_.x([_.F(SfH.YtSharedTooltipBehavior),_.E("design:type",Object)],nP.prototype,"ytSharedTooltipBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],nP.prototype,"data",void 0);
_.x([_.g({value:"#4285F4"}),_.E("design:type",String)],nP.prototype,"rgbBadgeColor",void 0);_.x([_.T4("data.color"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],nP.prototype,"colorChanged",null);_.x([_.T4("data.tooltip"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],nP.prototype,"tooltipChanged",null);nP=_.x([_.f({is:"ytd-sponsor-comment-badge-renderer",disableElementRegistration:!0})],nP);
_.C(nP,"ytd-sponsor-comment-badge-renderer",function(){if(cGe!==void 0)return cGe;var S=document.createElement("template");_.h(S,'\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');
S.content.insertBefore(_.t().content.cloneNode(!0),S.content.firstChild);return cGe=S},{mode:1});var Uil;var Yfq;var JR=function(){return _.w.apply(this,arguments)||this};
_.r(JR,_.w);JR.prototype.computeState=function(S){switch(S==null?void 0:S.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"}};
JR.prototype.updateStateIdentifier=function(S){if(this.viewModel.triStateKey){var p=this.viewModel.triStateKey;this.ytdReduxBehavior.dispatch(_.r8("triStateButtonStateEntityPayload",p,{key:p,stateIdentifier:S}))}};
JR.prototype.onClick=function(){var S=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(){S.updateStateIdentifier("TRI_STATE_IDENTIFIER_TOGGLED_STATE")},
onServerError:function(){S.updateStateIdentifier("TRI_STATE_IDENTIFIER_UNTOGGLED_STATE")}}})):this.updateStateIdentifier("TRI_STATE_IDENTIFIER_TOGGLED_STATE")}};
_.$u.Object.defineProperties(JR.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 S;return((S=this.data)==null?void 0:S.buttonText)||""}}});
_.x([_.g(),_.E("design:type",Object)],JR.prototype,"viewModel",void 0);_.x([_.F(_.eL.YtComponentBehavior),_.E("design:type",Object)],JR.prototype,"ytComponentBehavior",void 0);_.x([_.F(_.Xh),_.E("design:type",Object)],JR.prototype,"ytdReduxBehavior",void 0);_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],JR.prototype,"ytRendererBehavior",void 0);_.x([_.g({selector:Pre,selectorArgs:["viewModel.triStateKey"]}),_.E("design:type",Object)],JR.prototype,"triStateButtonStateEntity",void 0);
_.x([_.g({computed:"computeState(triStateButtonStateEntity)",reflectToAttribute:!0}),_.E("design:type",String)],JR.prototype,"state",void 0);_.x([_.e("viewModel","state"),_.E("design:type",Object),_.E("design:paramtypes",[])],JR.prototype,"data",null);_.x([_.e("data"),_.E("design:type",String),_.E("design:paramtypes",[])],JR.prototype,"buttonText",null);JR=_.x([_.f({disableElementRegistration:!0,is:"ytd-tri-state-button-view-model"})],JR);
_.C(JR,"ytd-tri-state-button-view-model",function(){if(Yfq!==void 0)return Yfq;var S=document.createElement("template");_.h(S,'\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>');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);return Yfq=S},{mode:1});var LTj;var MKH;var yS=function(){var S=_.w.apply(this,arguments)||this;S.defaultIconToFilled=!_.y("kevlar_fill_comment_chip_icon_killswitch");return S};
_.r(yS,_.w);yS.prototype.beforeRegister=function(){this.ironA11yKeysBehavior.keyBindings={"enter:keydown":"onTap","space:keydown":"onTap"}};
yS.prototype.dataChanged=function(){if(this.data){var S,p;((S=this.data.chipColorPalette)==null?0:S.backgroundColor)&&((p=this.data.chipColorPalette)==null?0:p.foregroundTitleColor)&&_.Ms(this.hostElement,{"--yt-pdg-comment-chip-background-color":_.ev(this.data.chipColorPalette.backgroundColor),"--yt-pdg-comment-chip-font-color":_.ev(this.data.chipColorPalette.foregroundTitleColor)});var U;((U=this.data)==null?0:U.command)?(_.Ms(this.hostElement,{"--yt-pdg-comment-chip-cursor":"pointer"}),this.hostElement.setAttribute("role",
"button"),this.hostElement.setAttribute("tabindex","0")):(_.Ms(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}};
yS.prototype.onTap=function(){var S;if(this.data&&(S=this.data)!=null&&S.command){var p;this.ytComponentBehavior.resolveCommand((p=this.data)==null?void 0:p.command)}};
yS.prototype.getIconSize=function(){return _.y("kevlar_fill_comment_chip_icon_killswitch")?24:12};
yS.prototype.onTap=yS.prototype.onTap;yS.prototype.dataChanged=yS.prototype.dataChanged;_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],yS.prototype,"ytRendererBehavior",void 0);_.x([_.F(_.eL.YtComponentBehavior),_.E("design:type",Object)],yS.prototype,"ytComponentBehavior",void 0);_.x([_.F(_.H$),_.E("design:type",Object)],yS.prototype,"ironA11yKeysBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],yS.prototype,"data",void 0);
_.x([_.g(),_.E("design:type",Object)],yS.prototype,"basePriceText",void 0);_.x([_.g(),_.E("design:type",Object)],yS.prototype,"chipIcon",void 0);_.x([_.g(),_.E("design:type",Object)],yS.prototype,"defaultIconToFilled",void 0);_.x([_.z4("data"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],yS.prototype,"dataChanged",null);_.x([_.Vd("tap"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],yS.prototype,"onTap",null);
yS=_.x([_.FB({is:"yt-pdg-comment-chip-renderer",disableElementRegistration:!0})],yS);
_.C(yS,"yt-pdg-comment-chip-renderer",function(){if(MKH===void 0){var S=document.createElement("template");_.h(S,'\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>');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);var p=S.content,U=p.insertBefore;LTj===void 0&&(LTj=document.createElement("template"));var Y=LTj;U.call(p,Y.content.cloneNode(!0),S.content.firstChild);MKH=S}S=MKH;return S},{mode:2});var KP=function(){var S=_.w.apply(this,arguments)||this;S.useSmallAvatars=_.y("small_avatars_for_comments");S.webWatchCompactComments=_.y("web_watch_compact_comments");S.editDialog=null;return S};
_.r(KP,_.w);_.M=KP.prototype;_.M.onShow=function(){_.Xg("cmv",void 0,"wn_comments")};
_.M.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"}}}};
_.M.detached=function(){this.editDialog=null;this.expander.reset()};
_.M.updateBackgroundColor=function(){if(this.backgroundColor){var S={"--ytd-comment-paid-background-color":_.ev(this.backgroundColor),"--ytd-decorated-comment-background-offset-left":"8px","--ytd-decorated-comment-background-offset-top":"8px"};_.Ms(this.hostElement,S)}else _.Ms(this.hostElement,{"--ytd-comment-paid-background-color":"initial"})};
_.M.resetExpander=function(){var S;(S=this.expander)==null||S.reset()};
_.M.openEditDialog=function(S){S.dialog&&(this.editDialog=S.dialog,this.editReplyDialogContainer?this.editReplyDialogContainer.openDialog():this.editCommentDialogContainer&&this.editCommentDialogContainer.focus())};
_.M.onYtNavigate=function(S){var p=S.detail.endpoint;if(p=_.b(p,_.ggd)||_.b(p,_.ulP))S.stopPropagation(),this.openEditDialog(p)};
_.M.onYtCommentboxDismiss=function(){this.editDialog=null;_.Ms(this.hostElement,{"--ytd-decorated-comment-reply-box-height-offset":"0px"})};
_.M.onAuthorThumbnailClicked=function(){var S=this;_.y("enable_profile_cards_on_comments")&&this!=null&&this.authorThumbnailEndpoint&&this.ytComponentBehavior.resolveCommand(this.authorThumbnailEndpoint,{commandController:{onSuccess:function(p,U){S.onAuthorThumbnailEndpointSuccess(U)},
onServerError:function(p,U){_.eP(new _.y7("Failed to resolve the command",U))}}})};
_.M.onAuthorThumbnailEndpointSuccess=function(S){if((S=S==null?void 0:S.popupCommand)&&this.authorThumbnailAnchor){this.ytComponentBehavior.resolveCommand(S,{form:{element:this.authorThumbnailAnchor}});this.logScreenVe();S=S==null?void 0:S.clickTrackingParams;var p=_.F$();S&&p&&_.HX().graftServerVe(S,p)}};
_.M.logScreenVe=function(){_.S8(_.HX(),66557)};
_.M.onYtCommentboxResize=function(S){var p;(S==null?0:(p=S.detail)==null?0:p.height)&&_.Ms(this.hostElement,{"--ytd-decorated-comment-reply-box-height-offset":S.detail.height+"px"})};
_.$u.Object.defineProperties(KP.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 S,p=(S=this.commentEntity)==null?void 0:S.author;return p&&(p.isCreator||p.isVerified||p.isArtist)?{renderer:{authorEndpoint:p.channelPageEndpoint?_.b(p.channelPageEndpoint,_.Z$):_.b(p.channelCommand,_.Z$),authorText:{runs:[{text:p.displayName}]},color:p.isCreator?{basicColorPaletteData:{backgroundColor:Number.parseInt("ff888888",16),foregroundTitleColor:Number.parseInt("ffffffff",16)}}:void 0,icon:p.isArtist?{iconType:"AUDIO_BADGE"}:
p.isVerified?{iconType:p.isCreator?"CHECK_CIRCLE_THICK":"CHECK"}:void 0,iconTooltip:p.isArtist||p.isVerified?p.innerBadgeA11y:void 0}}:null}},
hasAuthorBadge:{configurable:!0,enumerable:!0,get:function(){return!!this.authorCommentBadge}},
sponsorCommentBadge:{configurable:!0,enumerable:!0,get:function(){var S,p=(S=this.commentEntity)==null?void 0:S.author;return p!=null&&p.sponsorBadgeUrl?{renderer:{customBadge:{thumbnails:[{url:p.sponsorBadgeUrl}]},tooltip:p.sponsorBadgeA11y}}:null}},
hasSponsorBadge:{configurable:!0,enumerable:!0,get:function(){return!!this.sponsorCommentBadge}},
pdgCommentChipRenderer:{configurable:!0,enumerable:!0,get:function(){var S;return _.b((S=this.commentSurfaceEntity)==null?void 0:S.pdgCommentChip,_.Tlq)||null}},
hasVoiceReply:{configurable:!0,enumerable:!0,get:function(){var S;return this.voiceReplyContainerViewModel&&((S=this.voiceReplyContainerViewModel)==null?void 0:S.transcriptText)}},
voiceReplyContainerViewModel:{configurable:!0,enumerable:!0,get:function(){var S;return _.b((S=this.commentSurfaceEntity)==null?void 0:S.voiceReplyContainerViewModel,i4Q)||null}},
voiceReplyUnavailableText:{configurable:!0,enumerable:!0,get:function(){var S;return this.voiceReplyContainerViewModel&&(S=this.voiceReplyContainerViewModel)!=null&&S.voiceReplyUnavailableText?this.voiceReplyContainerViewModel.voiceReplyUnavailableText:null}},
viewModel:{configurable:!0,enumerable:!0,get:function(){return this.data||{}}},
backgroundColor:{configurable:!0,enumerable:!0,get:function(){var S,p;return(p=(S=this.commentSurfaceEntity)==null?void 0:S.commentBackgroundColor)!=null?p:null}},
optimalReadingWidthComments:{configurable:!0,enumerable:!0,get:function(){return _.y("web_watch_compact_comments")}},
isReply:{configurable:!0,enumerable:!0,get:function(){var S,p;return(((S=this.commentEntity)==null?void 0:(p=S.properties)==null?void 0:p.replyLevel)||0)>0}},
authorThumbnailEndpoint:{configurable:!0,enumerable:!0,get:function(){var S,p;if(_.y("enable_profile_cards_on_comments")&&((S=this.commentEntity)==null?0:(p=S.author)==null?0:p.profileCardEndpoint)&&this.viewModel.allowProfileCard){var U,Y;return _.b((U=this.commentEntity)==null?void 0:(Y=U.author)==null?void 0:Y.profileCardEndpoint,_.Z$)}var L,I;return _.b((L=this.commentEntity)==null?void 0:(I=L.avatar)==null?void 0:I.endpoint,_.Z$)}},
authorNameEndpoint:{configurable:!0,enumerable:!0,get:function(){var S,p;if(_.y("enable_profile_cards_on_comments")&&((S=this.commentEntity)==null?0:(p=S.author)==null?0:p.channelPageEndpoint)){var U,Y;return _.b((U=this.commentEntity)==null?void 0:(Y=U.author)==null?void 0:Y.channelPageEndpoint,_.Z$)}var L,I;return _.b((L=this.commentEntity)==null?void 0:(I=L.avatar)==null?void 0:I.endpoint,_.Z$)}},
authorThumbnail:{configurable:!0,enumerable:!0,get:function(){var S,p,U,Y,L=(S=this.commentEntity)==null?void 0:(p=S.avatar)==null?void 0:(U=p.image)==null?void 0:(Y=U.sources)==null?void 0:Y[0];return L?{thumbnails:[{url:L.url,width:L.width,height:L.height}]}:null}},
authorTextClass:{configurable:!0,enumerable:!0,get:function(){var S,p;return((S=this.commentEntity)==null?0:(p=S.author)==null?0:p.isCreator)?"channel-owner":""}},
authorChannelName:{configurable:!0,enumerable:!0,get:function(){var S,p;return((S=this.commentEntity)==null?void 0:(p=S.author)==null?void 0:p.displayName)||""}},
publishedTime:{configurable:!0,enumerable:!0,get:function(){var S,p;return((S=this.commentEntity)==null?void 0:(p=S.properties)==null?void 0:p.publishedTime)||null}},
publishedTimeCommand:{configurable:!0,enumerable:!0,get:function(){var S;return _.b((S=this.commentSurfaceEntity)==null?void 0:S.publishedTimeCommand,_.Z$)||null}},
contentText:{configurable:!0,enumerable:!0,get:function(){var S,p;if(((S=this.commentEntity)==null?0:S.translatedContent)&&((p=this.translateButtonState)==null?void 0:p.stateIdentifier)==="TRI_STATE_IDENTIFIER_TOGGLED_STATE")return this.commentEntity.translatedContent;var U;if((U=this.voiceReplyContainerViewModel)==null?0:U.transcriptText)return this.voiceReplyContainerViewModel.transcriptText;var Y,L;return((Y=this.commentEntity)==null?void 0:(L=Y.properties)==null?void 0:L.content)||null}},
shouldShowReadMoreInitially:{configurable:!0,enumerable:!0,get:function(){return!1}},
expandText:{configurable:!0,enumerable:!0,get:function(){var S,p;return((S=this.commentSharedEntity)==null?void 0:(p=S.strings)==null?void 0:p.expandText)||""}},
collapseText:{configurable:!0,enumerable:!0,get:function(){var S,p;return((S=this.commentSharedEntity)==null?void 0:(p=S.strings)==null?void 0:p.collapseText)||""}},
shouldShowTranslateButton:{configurable:!0,enumerable:!0,get:function(){var S;return!((S=this.commentEntity)==null||!S.isTranslationAvailable)}},
translateButton:{configurable:!0,enumerable:!0,get:function(){if(!this.commentEntity||!this.commentSharedEntity)return{};var S,p,U=(p=_.b((S=this.viewModel)==null?void 0:S.translateButton,$_e))!=null?p:{},Y,L,I,V,W,O,D,z,Q,J,K;return Object.assign({},U,{untoggledStateData:Object.assign({},U.untoggledStateData,{buttonText:(Y=this.commentEntity)==null?void 0:(L=Y.translateData)==null?void 0:L.text}),togglingStateData:Object.assign({},U.togglingStateData,{buttonText:(I=this.commentSharedEntity)==null?
void 0:(V=I.strings)==null?void 0:V.translatingText}),toggledStateData:Object.assign({},U.toggledStateData,{buttonText:(W=this.commentSharedEntity)==null?void 0:(O=W.strings)==null?void 0:O.seeOriginalText}),transitionCommand:((D=this.commentEntity)==null?0:D.translatedContent)?void 0:_.b((z=this.commentEntity)==null?void 0:(Q=z.translateData)==null?void 0:Q.translateComment,_.Z$),triStateKey:(J=this.commentEntity)==null?void 0:(K=J.properties)==null?void 0:K.translateButtonEntityKey})}},
overflowMenuRenderer:{configurable:!0,enumerable:!0,get:function(){var S,p,U;return((p=_.b(_.b((S=this.toolbarSurface)==null?void 0:S.menuCommand,_.Z$),wFw))==null?void 0:(U=p.menu)==null?void 0:U.menuRenderer)||null}}});
KP.prototype.onYtCommentboxResize=KP.prototype.onYtCommentboxResize;KP.prototype.onYtCommentboxDismiss=KP.prototype.onYtCommentboxDismiss;KP.prototype.onYtNavigate=KP.prototype.onYtNavigate;KP.prototype.resetExpander=KP.prototype.resetExpander;KP.prototype.updateBackgroundColor=KP.prototype.updateBackgroundColor;_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],KP.prototype,"ytRendererBehavior",void 0);_.x([_.F(_.Xh),_.E("design:type",Object)],KP.prototype,"ytdReduxBehavior",void 0);
_.x([_.F(_.eL.YtComponentBehavior),_.E("design:type",Object)],KP.prototype,"ytComponentBehavior",void 0);_.x([_.F(_.qH.YtRendererstamperBehavior),_.E("design:type",Object)],KP.prototype,"ytRendererstamperBehavior",void 0);_.x([_.O2("#author-thumbnail > button"),_.E("design:type",HTMLElement)],KP.prototype,"authorThumbnailAnchor",void 0);_.x([_.g({reflectToAttribute:!0}),_.e("viewModel"),_.E("design:type",Boolean),_.E("design:paramtypes",[])],KP.prototype,"linked",null);
_.x([_.e("viewModel","linked"),_.E("design:type",Object),_.E("design:paramtypes",[])],KP.prototype,"linkedCommentBadge",null);_.x([_.g({reflectToAttribute:!0}),_.e("viewModel"),_.E("design:type",Boolean),_.E("design:paramtypes",[])],KP.prototype,"pinned",null);_.x([_.e("viewModel","pinned"),_.E("design:type",Object),_.E("design:paramtypes",[])],KP.prototype,"pinnedCommentBadge",null);
_.x([_.e("commentEntity","commentSharedEntity"),_.E("design:type",Object),_.E("design:paramtypes",[])],KP.prototype,"authorCommentBadge",null);_.x([_.g({reflectToAttribute:!0}),_.e("authorCommentBadge"),_.E("design:type",Object),_.E("design:paramtypes",[])],KP.prototype,"hasAuthorBadge",null);_.x([_.e("commentEntity"),_.E("design:type",Object),_.E("design:paramtypes",[])],KP.prototype,"sponsorCommentBadge",null);
_.x([_.g({reflectToAttribute:!0}),_.e("sponsorCommentBadge"),_.E("design:type",Object),_.E("design:paramtypes",[])],KP.prototype,"hasSponsorBadge",null);_.x([_.e("commentSurfaceEntity"),_.E("design:type",Object),_.E("design:paramtypes",[])],KP.prototype,"pdgCommentChipRenderer",null);_.x([_.g({reflectToAttribute:!0}),_.e("voiceReplyContainerViewModel"),_.E("design:type",Object),_.E("design:paramtypes",[])],KP.prototype,"hasVoiceReply",null);
_.x([_.e("commentSurfaceEntity"),_.E("design:type",Object),_.E("design:paramtypes",[])],KP.prototype,"voiceReplyContainerViewModel",null);_.x([_.e("voiceReplyContainerViewModel"),_.E("design:type",Object),_.E("design:paramtypes",[])],KP.prototype,"voiceReplyUnavailableText",null);_.x([_.g(),_.E("design:type",Object)],KP.prototype,"data",void 0);_.x([_.e("data"),_.E("design:type",Object),_.E("design:paramtypes",[])],KP.prototype,"viewModel",null);
_.x([_.g({selector:function(S,p){return _.I4(S.entities,"commentSharedEntityPayload",p)},
selectorArgs:["viewModel.sharedKey"]}),_.E("design:type",Object)],KP.prototype,"commentSharedEntity",void 0);_.x([_.g({selector:function(S,p){return _.I4(S.entities,"commentEntityPayload",p)},
selectorArgs:["viewModel.commentKey"]}),_.E("design:type",Object)],KP.prototype,"commentEntity",void 0);_.x([_.g({selector:function(S,p){return _.I4(S.entities,"commentSurfaceEntityPayload",p)},
selectorArgs:["viewModel.commentSurfaceKey"]}),_.E("design:type",Object)],KP.prototype,"commentSurfaceEntity",void 0);_.x([_.g({selector:X0r,selectorArgs:["viewModel.toolbarSurfaceKey"]}),_.E("design:type",Object)],KP.prototype,"toolbarSurface",void 0);_.x([_.g({selector:Pre,selectorArgs:["commentEntity.properties.translateButtonEntityKey"]}),_.E("design:type",Object)],KP.prototype,"translateButtonState",void 0);
_.x([_.e("commentSurfaceEntity"),_.E("design:type",Object),_.E("design:paramtypes",[])],KP.prototype,"backgroundColor",null);_.x([_.g({reflectToAttribute:!0}),_.e("viewModel"),_.E("design:type",Boolean),_.E("design:paramtypes",[])],KP.prototype,"optimalReadingWidthComments",null);_.x([_.O2("ytd-expander"),_.E("design:type",Object)],KP.prototype,"expander",void 0);
_.x([_.T4("backgroundColor"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],KP.prototype,"updateBackgroundColor",null);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],KP.prototype,"useSmallAvatars",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],KP.prototype,"webWatchCompactComments",void 0);_.x([_.g({reflectToAttribute:!0}),_.e("commentEntity"),_.E("design:type",Object),_.E("design:paramtypes",[])],KP.prototype,"isReply",null);
_.x([_.e("commentEntity"),_.E("design:type",Object),_.E("design:paramtypes",[])],KP.prototype,"authorThumbnailEndpoint",null);_.x([_.e("commentEntity"),_.E("design:type",Object),_.E("design:paramtypes",[])],KP.prototype,"authorNameEndpoint",null);_.x([_.e("commentEntity"),_.E("design:type",Object),_.E("design:paramtypes",[])],KP.prototype,"authorThumbnail",null);_.x([_.e("commentEntity"),_.E("design:type",String),_.E("design:paramtypes",[])],KP.prototype,"authorTextClass",null);
_.x([_.e("commentEntity"),_.E("design:type",String),_.E("design:paramtypes",[])],KP.prototype,"authorChannelName",null);_.x([_.e("commentEntity"),_.E("design:type",Object),_.E("design:paramtypes",[])],KP.prototype,"publishedTime",null);_.x([_.e("commentSurfaceEntity"),_.E("design:type",Object),_.E("design:paramtypes",[])],KP.prototype,"publishedTimeCommand",null);
_.x([_.e("commentEntity","translateButtonState","voiceReplyContainerViewModel"),_.E("design:type",Object),_.E("design:paramtypes",[])],KP.prototype,"contentText",null);_.x([_.T4("contentText"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],KP.prototype,"resetExpander",null);_.x([_.e("commentEntity"),_.E("design:type",Boolean),_.E("design:paramtypes",[])],KP.prototype,"shouldShowReadMoreInitially",null);
_.x([_.e("commentSharedEntity"),_.E("design:type",String),_.E("design:paramtypes",[])],KP.prototype,"expandText",null);_.x([_.e("commentSharedEntity"),_.E("design:type",String),_.E("design:paramtypes",[])],KP.prototype,"collapseText",null);_.x([_.e("commentEntity"),_.E("design:type",Boolean),_.E("design:paramtypes",[])],KP.prototype,"shouldShowTranslateButton",null);
_.x([_.e("commentEntity","commentSharedEntity"),_.E("design:type",Object),_.E("design:paramtypes",[])],KP.prototype,"translateButton",null);_.x([_.e("toolbarSurface"),_.E("design:type",Object),_.E("design:paramtypes",[])],KP.prototype,"overflowMenuRenderer",null);_.x([_.g(),_.E("design:type",Object)],KP.prototype,"editDialog",void 0);_.x([_.O2("ytd-comment-dialog-renderer"),_.E("design:type",Object)],KP.prototype,"editCommentDialogContainer",void 0);
_.x([_.O2("ytd-comment-reply-dialog-renderer"),_.E("design:type",Object)],KP.prototype,"editReplyDialogContainer",void 0);_.x([_.Vd("yt-navigate"),_.E("design:type",Function),_.E("design:paramtypes",[CustomEvent]),_.E("design:returntype")],KP.prototype,"onYtNavigate",null);_.x([_.Vd("yt-commentbox-dismiss"),_.E("design:type",Function),_.E("design:paramtypes",[CustomEvent]),_.E("design:returntype")],KP.prototype,"onYtCommentboxDismiss",null);
_.x([_.Vd("yt-commentbox-resize"),_.E("design:type",Function),_.E("design:paramtypes",[CustomEvent]),_.E("design:returntype")],KP.prototype,"onYtCommentboxResize",null);KP=_.x([_.f({disableElementRegistration:!0,is:"ytd-comment-view-model"})],KP);
_.C(KP,"ytd-comment-view-model",function(){if(Uil!==void 0)return Uil;var S=document.createElement("template");_.h(S,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comment-view-model--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="paid-comment-background" class="style-scope ytd-comment-view-model"></div>\n<div id="linked-comment-badge" class="style-scope ytd-comment-view-model"></div>\n\n<div id="body" hidden="[[editDialog]]" class="style-scope ytd-comment-view-model">\n  \n  <div id="author-thumbnail" class="style-scope ytd-comment-view-model">\n    <button id="author-thumbnail-button" aria-label="[[authorChannelName]]" on-click="onAuthorThumbnailClicked" class="style-scope ytd-comment-view-model">\n      <yt-img-shadow fit="" height="40" thumbnail="[[authorThumbnail]]" width="40" class="style-scope ytd-comment-view-model">\n      </yt-img-shadow>\n    </button>\n  </div>\n  <div id="main" class="style-scope ytd-comment-view-model">\n    <div id="header" class="style-scope ytd-comment-view-model">\n      <div id="pinned-comment-badge" class="style-scope ytd-comment-view-model"></div>\n      <div id="header-author" class="style-scope ytd-comment-view-model">\n        \n        <h3 class="style-scope ytd-comment-view-model"> \n          <a id="author-text" class="yt-simple-endpoint style-scope ytd-comment-view-model" href$="[[computeOptionalHref_(authorNameEndpoint)]]" data="[[authorNameEndpoint]]" hidden="[[authorCommentBadge]]">\n            <span class$="[[authorTextClass]] style-scope ytd-comment-view-model">\n              [[authorChannelName]]\n            </span>\n          </a>\n        </h3>\n        <span id="author-comment-badge" class="style-scope ytd-comment-view-model"></span>\n        <span id="sponsor-comment-badge" class="style-scope ytd-comment-view-model"></span>\n        <span dir="auto" id="published-time-text" class="style-scope ytd-comment-view-model">\n          <a class="yt-simple-endpoint style-scope ytd-comment-view-model" href$="[[computeHref_(publishedTimeCommand)]]" data="[[publishedTimeCommand]]">\n            [[publishedTime]]\n          </a>\n        </span>\n      </div>\n    </div>\n    \n    <ytd-expander id="expander" can-toggle="[[shouldShowReadMoreInitially]]" max-number-of-lines="4" class="style-scope ytd-comment-view-model">\n      \n      <yt-pdg-comment-chip-renderer id="paid-comment-chip" slot="content" data="[[pdgCommentChipRenderer]]" hidden="[[!pdgCommentChipRenderer]]" class="style-scope ytd-comment-view-model">\n      </yt-pdg-comment-chip-renderer>\n      <yt-attributed-string id="content-text" slot="content" data="[[contentText]]" user-input="" class="style-scope ytd-comment-view-model">\n      </yt-attributed-string>\n      <span class="more-button style-scope ytd-comment-view-model" slot="more-button">[[expandText]]</span>\n      <span class="less-button style-scope ytd-comment-view-model" slot="less-button">[[collapseText]]</span>\n    </ytd-expander>\n    <yt-attributed-string id="error-text" data="[[voiceReplyUnavailableText]]" hidden="[[!voiceReplyUnavailableText]]" class="style-scope ytd-comment-view-model">\n    </yt-attributed-string>\n    <ytd-tri-state-button-view-model class="translate-button style-scope ytd-comment-view-model" hidden="[[!shouldShowTranslateButton]]" view-model="[[translateButton]]">\n    </ytd-tri-state-button-view-model>\n    <ytd-comment-engagement-bar id="action-buttons" comment-strings="[[commentSharedEntity.strings]]" is-reply="[[isReply]]" toolbar-data="[[commentEntity.toolbar]]" toolbar-shared-data="[[commentSharedEntity.toolbarShared]]" toolbar-state-key="[[viewModel.toolbarStateKey]]" toolbar-surface-key="[[viewModel.toolbarSurfaceKey]]" class="style-scope ytd-comment-view-model">\n    </ytd-comment-engagement-bar>\n  </div>\n  \n  <div id="action-menu" class="style-scope ytd-comment-view-model">\n    <ytd-menu-renderer data="[[overflowMenuRenderer]]" class="style-scope ytd-comment-view-model"></ytd-menu-renderer>\n  </div>\n</div>\n<div id="edit-dialog" hidden="[[!editDialog]]" class="style-scope ytd-comment-view-model"></div>\n\n');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);return Uil=S},{mode:_.UW("kevlar_poly_si_batch_j025")?1:2});var b8=function(){var S=_.w.apply(this,arguments)||this;S.modern=_.y("web_modern_buttons");S.isWatchGrid=_.y("kevlar_watch_grid");S.buttonOverrides={style:"call-to-action"};S.JSC$13768_spinnerEl=null;return S};
_.r(b8,_.w);_.M=b8.prototype;_.M.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents","yt-reload-continuation-items-command-body":"contents"}};
_.M.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]]"}}}}}};
_.M.attached=function(){this.isShowRepliesVisible=!0};
_.M.dataChanged=function(){var S=this.expanderContents;S&&(S.hidden=!0);this.isLoading=!1};
_.M.triggerFirstContinuation=function(){this.continuationItemRenderer&&!this.continuationItemRenderer.buttonRenderer&&(this.continuationItemRenderer.showButton=!1)};
_.M.isLoadingChanged=function(){this.isLoading&&!this.JSC$13768_spinnerEl&&(this.JSC$13768_spinnerEl=document.createElement("tp-yt-paper-spinner-lite"),_.tB(this.expanderContents).appendChild(this.JSC$13768_spinnerEl));this.JSC$13768_spinnerEl&&(this.JSC$13768_spinnerEl.active=this.isLoading);if(this.isLoading)this.contents.classList.add("reloading");else{var S;(S=this.contents)==null||S.classList.remove("reloading")}};
_.M.handleIsShowMoreTap=function(){this.isShowRepliesVisible=!1;this.triggerFirstContinuation();var S=_.b(this.data.viewReplies,_.XT);S&&this.ytRendererBehavior.logExplicitClick(S)};
_.M.handleIsShowLessTap=function(){this.isShowRepliesVisible=!0;var S=_.b(this.data.hideReplies,_.XT);S&&this.ytRendererBehavior.logExplicitClick(S)};
_.M.isShowMoreChanged=function(){var S=_.tB(this.hostElement).querySelector("#expander-contents");S&&(S.hidden=this.isShowRepliesVisible)};
_.M.computeAlign=function(){if(this.modern){var S;return!((S=this.data)==null?0:S.viewRepliesCreatorThumbnail)}};
_.$u.Object.defineProperties(b8.prototype,{hasContinuation:{configurable:!0,enumerable:!0,get:function(){var S,p=(S=this.data)==null?void 0:S.contents;return!!p&&p.length>0&&!!p[p.length-1].continuationItemRenderer}}});
b8.prototype.isShowMoreChanged=b8.prototype.isShowMoreChanged;b8.prototype.isLoadingChanged=b8.prototype.isLoadingChanged;b8.prototype.triggerFirstContinuation=b8.prototype.triggerFirstContinuation;b8.prototype.dataChanged=b8.prototype.dataChanged;_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],b8.prototype,"ytRendererBehavior",void 0);_.x([_.F(_.qH.YtRendererstamperBehavior),_.E("design:type",Object)],b8.prototype,"ytRendererstamperBehavior",void 0);
_.x([_.F(_.wS),_.E("design:type",Object)],b8.prototype,"ytContinuationHandlerBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],b8.prototype,"data",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],b8.prototype,"modern",void 0);_.x([_.g(),_.E("design:type",Boolean)],b8.prototype,"isLoading",void 0);_.x([_.g({value:!0}),_.E("design:type",Boolean)],b8.prototype,"isShowRepliesVisible",void 0);_.x([_.g({value:!1}),_.E("design:type",Boolean)],b8.prototype,"useNewFormatting",void 0);
_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],b8.prototype,"isWatchGrid",void 0);_.x([_.g(),_.E("design:type",Object)],b8.prototype,"buttonOverrides",void 0);_.x([_.O2("#expander-contents"),_.E("design:type",HTMLElement)],b8.prototype,"expanderContents",void 0);_.x([_.O2("ytd-continuation-item-renderer"),_.E("design:type",Object)],b8.prototype,"continuationItemRenderer",void 0);_.x([_.O2("#contents"),_.E("design:type",HTMLElement)],b8.prototype,"contents",void 0);
_.x([_.z4("data"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],b8.prototype,"dataChanged",null);_.x([_.e("data.contents"),_.E("design:type",Boolean),_.E("design:paramtypes",[])],b8.prototype,"hasContinuation",null);_.x([_.Vd("yt-expander-more-tapped"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],b8.prototype,"triggerFirstContinuation",null);
_.x([_.T4("isLoading"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],b8.prototype,"isLoadingChanged",null);_.x([_.T4("isShowRepliesVisible"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],b8.prototype,"isShowMoreChanged",null);b8=_.x([_.f({is:"ytd-comment-replies-renderer",disableElementRegistration:!0})],b8);
_.C(b8,"ytd-comment-replies-renderer",function(){if(quH!==void 0)return quH;var S=document.createElement("template");_.h(S,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comment-replies-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="expander" hidden="[[!hasContinuation]]" class="style-scope ytd-comment-replies-renderer">\n  <div class="expander-header style-scope ytd-comment-replies-renderer" teaser$="[[data.viewRepliesCreatorThumbnail]]">\n    <div class="more-button style-scope ytd-comment-replies-renderer" aria-expanded="false" hidden="[[!isShowRepliesVisible]]" on-click="handleIsShowMoreTap">\n      <template is="dom-if" if="[[data.viewRepliesIcon]]" class="style-scope ytd-comment-replies-renderer">\n        <ytd-button-renderer id="more-replies-icon" class="more-button style-scope ytd-comment-replies-renderer" align-by-text="[[modern]]" data="[[data.viewRepliesIcon.buttonRenderer]]" hidden="[[!isShowRepliesVisible]]" noink="" overrides="[[buttonOverrides]]">\n        </ytd-button-renderer>\n      </template>\n      <template is="dom-if" if="[[data.viewRepliesCreatorThumbnail]]" class="style-scope ytd-comment-replies-renderer">\n        <div id="creator-thumbnail" class="creator-thumbnail style-scope ytd-comment-replies-renderer">\n            <yt-img-shadow fit="" height="24" thumbnail="[[data.viewRepliesCreatorThumbnail]]" width="24" class="style-scope ytd-comment-replies-renderer">\n            </yt-img-shadow>\n        </div>\n        <span class="dot style-scope ytd-comment-replies-renderer">\u00b7</span>\n      </template>\n      <ytd-button-renderer id="more-replies" class="more-button style-scope ytd-comment-replies-renderer" align-by-text="[[computeAlign(modern, data.viewRepliesCreatorThumbnail)]]" data="[[data.viewReplies.buttonRenderer]]" hidden="[[!isShowRepliesVisible]]" noink="" overrides="[[buttonOverrides]]">\n      </ytd-button-renderer>\n    </div>\n    <div class="less-button style-scope ytd-comment-replies-renderer" aria-expanded="true" hidden="[[isShowRepliesVisible]]" on-click="handleIsShowLessTap">\n      <template is="dom-if" if="[[data.hideRepliesIcon]]" class="style-scope ytd-comment-replies-renderer">\n        <ytd-button-renderer id="less-replies-icon" class="less-button style-scope ytd-comment-replies-renderer" align-by-text="[[modern]]" data="[[data.hideRepliesIcon.buttonRenderer]]" hidden="[[isShowRepliesVisible]]" noink="" overrides="[[buttonOverrides]]">\n        </ytd-button-renderer>\n      </template>\n      <template is="dom-if" if="[[data.viewRepliesCreatorThumbnail]]" class="style-scope ytd-comment-replies-renderer">\n        <div id="creator-thumbnail" class="creator-thumbnail style-scope ytd-comment-replies-renderer">\n            <yt-img-shadow fit="" height="24" thumbnail="[[data.viewRepliesCreatorThumbnail]]" width="24" class="style-scope ytd-comment-replies-renderer">\n            </yt-img-shadow>\n        </div>\n        <span class="dot style-scope ytd-comment-replies-renderer">\u00b7</span>\n      </template>\n      <ytd-button-renderer id="less-replies" class="less-button style-scope ytd-comment-replies-renderer" align-by-text="[[computeAlign(modern, data.viewRepliesCreatorThumbnail)]]" data="[[data.hideReplies.buttonRenderer]]" hidden="[[isShowRepliesVisible]]" noink="" overrides="[[buttonOverrides]]">\n      </ytd-button-renderer>\n    </div>\n  </div>\n  <div id="expander-contents" class="style-scope ytd-comment-replies-renderer">\n    <div id="contents" class="style-scope ytd-comment-replies-renderer"></div>\n    <div class="cont-button style-scope ytd-comment-replies-renderer" id="continuation"></div>\n  </div>\n</div>\n<div hidden="[[!isShowRepliesVisible]]" id="teaser-replies" class="style-scope ytd-comment-replies-renderer"></div>\n');
S.content.insertBefore(_.t().content.cloneNode(!0),S.content.firstChild);return quH=S},{mode:1});var IfQ;var j7=function(){var S=_.w.apply(this,arguments)||this;S.isOpen=!1;S.commentDialog=null;S.useSmallAvatars=_.y("small_avatars_for_comments");S.useSmallAvatarsEngagementPanelOnly=_.y("small_avatars_for_comments_ep");S.placeholderFocusListener=null;S.actionMap={"yt-create-comment-action":"onCreateCommentAction","yt-hide-identity-chip-action":"onHideIdentityChip"};return S};
_.r(j7,_.w);_.M=j7.prototype;_.M.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]]"}}}}}};
_.M.ready=function(){var S=this,p=_.tB(this.hostElement).querySelector("#placeholder-area"),U=_.tB(this.hostElement).querySelector("#simplebox-placeholder"),Y=function(L){L.stopPropagation();L instanceof KeyboardEvent&&L.type==="keypress"&&L.keyCode!==13&&L.keyCode!==32||S.openDialog()};
this.placeholderFocusListener=Y;U.addEventListener("focus",this.placeholderFocusListener);p.addEventListener("tap",Y);p.addEventListener("keypress",Y)};
_.M.maybeRemoveFocusEventListener=function(){var S;(S=this.data)!=null&&S.prepareAccountEndpoint&&!_.y("web_comments_simplebox_modal_focus_on_tap_ks")&&(S=_.tB(this.hostElement).querySelector("#simplebox-placeholder"),this.placeholderFocusListener&&(S.removeEventListener("focus",this.placeholderFocusListener),this.placeholderFocusListener=null))};
_.M.dataChanged=function(){this.maybeRemoveFocusEventListener();this.commentDialog=null;this.isOpen=!1;this.showCreateDialog&&this.openDialog()};
_.M.openDialog=function(){this.data&&(this.data.prepareAccountEndpoint?_.y("web_comment_simplebox_resolve_polymer_command_ks")?_.VO.instance.resolveCommand(this.data.prepareAccountEndpoint):_.Te(this.data.prepareAccountEndpoint,this.hostElement):(this.commentDialog||(this.commentDialog={commentDialogRenderer:this.computeCommentDialog(this.data)}),this.isOpen=!0,_.tB(this.hostElement).querySelector("#comment-dialog").firstElementChild.focus()))};
_.M.onYtCommentboxDismiss=function(S){S.stopPropagation();this.isOpen=!1};
_.M.onCreateCommentAction=function(S){this.get("createCommentAction.contents",S)&&(this.isOpen=!1)};
_.M.computeCommentDialog=function(S){return{placeholderText:S.placeholderText,authorThumbnail:S.authorThumbnail,submitButton:S.submitButton,imageButton:S.imageButton,cancelButton:S.cancelButton,emojiButton:S.emojiButton,emojis:S.emojis,emojiPicker:S.emojiPicker,aadcGuidelinesStateEntityKey:S.aadcGuidelinesStateEntityKey,openAadcDialog:S.openAadcDialog,unicodeEmojisUrl:S.unicodeEmojisUrl}};
_.M.onHideIdentityChip=function(S){_.b(S,aat)&&this.set("data.placeholderText",_.b(S,aat).placeholderText)};
j7.prototype.onYtCommentboxDismiss=j7.prototype.onYtCommentboxDismiss;j7.prototype.dataChanged=j7.prototype.dataChanged;_.x([_.F(_.qH.YtRendererstamperBehavior),_.E("design:type",Object)],j7.prototype,"ytRendererstamperBehavior",void 0);_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],j7.prototype,"ytRendererBehavior",void 0);_.x([_.F(_.Aj.YtActionHandlerBehavior),_.E("design:type",Object)],j7.prototype,"ytActionHandlerBehavior",void 0);
_.x([_.g(),_.E("design:type",Object)],j7.prototype,"data",void 0);_.x([_.g(),_.E("design:type",Object)],j7.prototype,"isOpen",void 0);_.x([_.g(),_.E("design:type",Object)],j7.prototype,"commentDialog",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Boolean)],j7.prototype,"engagementPanel",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],j7.prototype,"useSmallAvatars",void 0);
_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],j7.prototype,"useSmallAvatarsEngagementPanelOnly",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Boolean)],j7.prototype,"enableCreationBox",void 0);_.x([_.g(),_.E("design:type",Boolean)],j7.prototype,"showCreateDialog",void 0);_.x([_.z4("data"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],j7.prototype,"dataChanged",null);
_.x([_.Vd("yt-commentbox-dismiss"),_.E("design:type",Function),_.E("design:paramtypes",[CustomEvent]),_.E("design:returntype")],j7.prototype,"onYtCommentboxDismiss",null);j7=_.x([_.f({is:"ytd-comment-simplebox-renderer",disableElementRegistration:!0})],j7);
_.C(j7,"ytd-comment-simplebox-renderer",function(){if(IfQ!==void 0)return IfQ;var S=document.createElement("template");_.h(S,'\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');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);return IfQ=S},{mode:1});var diQ;_.Ry("itemSectionRenderer","commentThreadRenderer","ytd-comment-thread-renderer");var r$=function(){var S=_.w.apply(this,arguments)||this;S.addHoverEffect=_.y("swatcheroo_comments_hover_effect");return S};
_.r(r$,_.w);r$.prototype.onTap=function(S){if(this.addHoverEffect&&!this.engagementPanel&&!_.Eo(_.E1(S)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"TP-YT-PAPER-BUTTON"])){var p;((p=window.getSelection())==null?0:p.toString().length)||_.Te({changeEngagementPanelVisibilityAction:{targetId:"engagement-panel-comments-section",visibility:"ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"}},this.hostElement)}};
r$.prototype.configureRendererStamper=function(){return{"data.replies":{id:"replies",mapping:{commentRepliesRenderer:{component:"ytd-comment-replies-renderer",noInjection:!0}}}}};
_.$u.Object.defineProperties(r$.prototype,{commentViewModel:{configurable:!0,enumerable:!0,get:function(){var S;if((S=this.data)!=null&&S.commentViewModel)return _.b(this.data.commentViewModel,v1E)}}});
r$.prototype.onTap=r$.prototype.onTap;_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],r$.prototype,"ytRendererBehavior",void 0);_.x([_.F(_.qH.YtRendererstamperBehavior),_.E("design:type",Object)],r$.prototype,"ytRendererstamperBehavior",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],r$.prototype,"addHoverEffect",void 0);_.x([_.g(),_.E("design:type",Object)],r$.prototype,"data",void 0);
_.x([_.e("data"),_.E("design:type",Object),_.E("design:paramtypes",[])],r$.prototype,"commentViewModel",null);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Boolean)],r$.prototype,"engagementPanel",void 0);_.x([_.Vd("tap"),_.Vd("click"),_.E("design:type",Function),_.E("design:paramtypes",[Event]),_.E("design:returntype")],r$.prototype,"onTap",null);r$=_.x([_.f({is:"ytd-comment-thread-renderer",disableElementRegistration:!0})],r$);
_.C(r$,"ytd-comment-thread-renderer",function(){if(diQ!==void 0)return diQ;var S=document.createElement("template");_.h(S,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comment-thread-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-comment-view-model id="comment" data="[[commentViewModel]]" class="style-scope ytd-comment-thread-renderer"> </ytd-comment-view-model>\n<div id="replies" hidden="[[!data.replies]]" class="style-scope ytd-comment-thread-renderer"></div>\n');
S.content.insertBefore(_.t().content.cloneNode(!0),S.content.firstChild);return diQ=S},{mode:_.UW("kevlar_poly_si_batch_j025")?1:2});var VKm;var GJ=function(){var S=_.w.apply(this,arguments)||this;S.modernTypography=_.y("web_modern_typography");S.compactHeader=_.y("web_watch_compact_comments_header");S.hidePanelButton=!1;S.isPostSchedulingEnabled=_.y("enable_post_scheduling");S.hasFinishedStamping=!1;S.JSC$13786_handleOpenPostCommentDialogActionAfterStamp=!1;S.actionMap={"yt-signal-action-open-post-comment-dialog":"handleSignalActionOpenPostCommentDialogAction"};return S};
_.r(GJ,_.w);_.M=GJ.prototype;
_.M.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"}}}};
_.M.attached=function(){this.hasActionsChange&&this.observePrefilledBackstagePostDialog()};
_.M.onStampFinished=function(){this.hasFinishedStamping=!0;this.hasActionsChange&&this.observePrefilledBackstagePostDialog();this.JSC$13786_handleOpenPostCommentDialogActionAfterStamp&&this.handleSignalActionOpenPostCommentDialogAction()};
_.M.onYtServiceRequestSent=function(S,p){if(!_.y("kevlar_command_handler")&&p.actions)for(S=0;S<p.actions.length;S++){var U=p.actions[S];_.b(U,O4P)&&_.tB(this.hostElement).querySelector("#backstage-post-dialog > ytd-backstage-post-dialog-renderer").openSchedulingPanel(_.b(U,O4P))}};
_.M.observePrefilledBackstagePostDialog=function(){if(this.hasFinishedStamping){this.hasActionsChange=!1;var S;if(this.getPrefilledBackstagePostDialog((S=this.data)==null?void 0:S.actions)){_.tB(this.hostElement).querySelector("#prefilled-dialog-header").hidden=!1;var p=_.tB(this.hostElement).querySelector("#backstage-post-dialog").firstElementChild;p&&_.oH(this,function(){p.focus();p.openDialog&&p.openDialog()})}}else this.hasActionsChange=!0};
_.M.computeIsBackstage=function(S){return S};
_.M.onYtCommentboxDismiss=function(){_.tB(this.hostElement).querySelector("#prefilled-dialog-header").hidden=!0;this.removePrefilledDialog(this.data)};
_.M.removePrefilledDialog=function(S){if(S==null?0:S.actions){for(var p=S.actions.length-1;p>=0;p--){var U=void 0;((U=_.b(S.actions[p],sEw))==null?0:U.dialog)&&delete S.actions[p]}this.set("data",void 0);this.set("data",S)}};
_.M.getPrefilledBackstagePostDialog=function(S){if(S)for(var p=0;p<S.length;p++){var U=S[p],Y=void 0;if((Y=_.b(U,sEw))==null?0:Y.dialog)return _.b(U,sEw).dialog}return null};
_.M.computeBackstagePostDialog=function(S){return S&&(this.getPrefilledBackstagePostDialog(S.actions)||S.createRenderer)};
_.M.dataChanged=function(){if(this.data){var S=this.data.customEmojis,p=this.data.unicodeEmojisUrl;_.Zm.clear();p&&_.DgP(_.Zm,p);S&&_.Zm.load(S)}};
_.M.handleSignalActionOpenPostCommentDialogAction=function(){var S=_.tB(this.hostElement).querySelector("ytd-comment-simplebox-renderer");S?S.openDialog():this.JSC$13786_handleOpenPostCommentDialogActionAfterStamp=!0};
_.$u.Object.defineProperties(GJ.prototype,{useSpaceBetween:{configurable:!0,enumerable:!0,get:function(){return this.showCommentsPanelButton||_.y("kevlar_watch_grid")}},
showCommentsPanelButton:{configurable:!0,enumerable:!0,get:function(){var S,p,U,Y,L,I,V;return!this.hidePanelButton&&_.y("kevlar_watch_comments_panel_button")&&((V=_.b((S=this.data)==null?void 0:(p=S.sortMenu)==null?void 0:(U=p.sortFilterSubMenuRenderer)==null?void 0:(Y=U.subMenuItems)==null?void 0:(L=Y[0])==null?void 0:(I=L.serviceEndpoint)==null?void 0:I.commandMetadata,_.NU))==null?void 0:V.apiUrl)==="/youtubei/v1/next"}},
commentsPanelButtonData:{configurable:!0,enumerable:!0,get:function(){if(this.showCommentsPanelButton)return{icon:{iconType:"EXPAND_ALL"},tooltip:_.Oh("MINIPLAYER_EXPAND_LABEL"),text:_.Ec(_.Oh("MINIPLAYER_EXPAND_LABEL")),command:{commandExecutorCommand:{commands:[{changeEngagementPanelVisibilityAction:{targetId:"engagement-panel-comments-section",visibility:"ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"}},{scrollToEngagementPanelCommand:{targetId:"engagement-panel-comments-section"}}]}}}}}});
GJ.prototype.dataChanged=GJ.prototype.dataChanged;GJ.prototype.onYtCommentboxDismiss=GJ.prototype.onYtCommentboxDismiss;GJ.prototype.observePrefilledBackstagePostDialog=GJ.prototype.observePrefilledBackstagePostDialog;GJ.prototype.onYtServiceRequestSent=GJ.prototype.onYtServiceRequestSent;GJ.prototype.onStampFinished=GJ.prototype.onStampFinished;_.x([_.F(_.Aj.YtActionHandlerBehavior),_.E("design:type",Object)],GJ.prototype,"ytActionHandlerBehavior",void 0);
_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],GJ.prototype,"ytRendererBehavior",void 0);_.x([_.F(_.qH.YtRendererstamperBehavior),_.E("design:type",Object)],GJ.prototype,"ytRendererstamperBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],GJ.prototype,"data",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],GJ.prototype,"modernTypography",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],GJ.prototype,"compactHeader",void 0);
_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Boolean)],GJ.prototype,"engagementPanel",void 0);_.x([_.g(),_.E("design:type",Object)],GJ.prototype,"hidePanelButton",void 0);_.x([_.g({computed:"computeIsBackstage(data.isBackstageContent)",reflectToAttribute:!0}),_.E("design:type",Boolean)],GJ.prototype,"isBackstage",void 0);_.x([_.g({readOnly:!0,computed:"computeBackstagePostDialog(data)"}),_.E("design:type",Object)],GJ.prototype,"backstagePostDialog",void 0);
_.x([_.g(),_.E("design:type",Object)],GJ.prototype,"isPostSchedulingEnabled",void 0);_.x([_.g({reflectToAttribute:!0}),_.e("data","showCommentsPanelButton"),_.E("design:type",Object),_.E("design:paramtypes",[])],GJ.prototype,"useSpaceBetween",null);_.x([_.g({reflectToAttribute:!0}),_.e("data","hidePanelButton"),_.E("design:type",Object),_.E("design:paramtypes",[])],GJ.prototype,"showCommentsPanelButton",null);
_.x([_.e("data","showCommentsPanelButton"),_.E("design:type",Object),_.E("design:paramtypes",[])],GJ.prototype,"commentsPanelButtonData",null);_.x([_.Vd("yt-rendererstamper-finished"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],GJ.prototype,"onStampFinished",null);_.x([_.Vd("yt-service-request-sent"),_.E("design:type",Function),_.E("design:paramtypes",[CustomEvent,_.eM]),_.E("design:returntype")],GJ.prototype,"onYtServiceRequestSent",null);
_.x([_.T4("data.actions"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],GJ.prototype,"observePrefilledBackstagePostDialog",null);_.x([_.Vd("yt-commentbox-dismiss"),_.E("design:type",Function),_.E("design:paramtypes",[CustomEvent]),_.E("design:returntype")],GJ.prototype,"onYtCommentboxDismiss",null);_.x([_.T4("data"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],GJ.prototype,"dataChanged",null);
GJ=_.x([_.f({is:"ytd-comments-header-renderer",disableElementRegistration:!0})],GJ);
_.C(GJ,"ytd-comments-header-renderer",function(){if(VKm!==void 0)return VKm;var S=document.createElement("template");_.h(S,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comments-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="title" hidden="[[!data.countText]]" class="style-scope ytd-comments-header-renderer">\n  <div id="leading-section" class="style-scope ytd-comments-header-renderer">\n    <h2 id="count" class="style-scope ytd-comments-header-renderer">\n      <yt-formatted-string class="count-text style-scope ytd-comments-header-renderer" text="[[data.countText]]"> </yt-formatted-string>\n    </h2>\n  </div>\n  <div id="additional-section" class="style-scope ytd-comments-header-renderer">\n    <span id="sort-menu" class="style-scope ytd-comments-header-renderer"></span>\n    <div id="panel-button" hidden="[[!showCommentsPanelButton]]" class="style-scope ytd-comments-header-renderer">\n      <ytd-button-renderer data="[[commentsPanelButtonData]]" class="style-scope ytd-comments-header-renderer"> </ytd-button-renderer>\n    </div>\n  </div>\n</div>\n<div id="red-commenting-div" hidden="[[!data.redCommentingText]]" class="style-scope ytd-comments-header-renderer">\n  <yt-formatted-string id="red-commenting-text" text="[[data.redCommentingText]]" class="style-scope ytd-comments-header-renderer">\n  </yt-formatted-string>\n</div>\n<div id="alert" class="style-scope ytd-comments-header-renderer"></div>\n<div id="prefilled-dialog-header" class="style-scope ytd-comments-header-renderer"></div>\n<div id="simple-box" class="style-scope ytd-comments-header-renderer"></div>\n<div id="paused-comments-message" class="style-scope ytd-comments-header-renderer"></div>\n<div id="backstage-post-dialog" class="style-scope ytd-comments-header-renderer"></div>\n<div id="post-stream-filter" hidden="[[!isPostSchedulingEnabled]]" class="style-scope ytd-comments-header-renderer"></div>\n<div id="zero-state-message" class="style-scope ytd-comments-header-renderer"></div>\n<div id="scheduling-zero-state-message" hidden="[[!isPostSchedulingEnabled]]" class="style-scope ytd-comments-header-renderer"></div>\n');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);return VKm=S},{mode:1});var TLl;var hR=function(){return _.w.apply(this,arguments)||this};
_.r(hR,_.w);_.x([_.g(),_.E("design:type",Object)],hR.prototype,"data",void 0);_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],hR.prototype,"ytRendererBehavior",void 0);hR=_.x([_.f({is:"ytd-destination-button-renderer",disableElementRegistration:!0})],hR);
_.C(hR,"ytd-destination-button-renderer",function(){if(TLl!==void 0)return TLl;var S=document.createElement("template");_.h(S,'\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');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);return TLl=S},{mode:1});var WTI;var RB=function(){var S=_.w.apply(this,arguments)||this;S.isRichGrid=!1;S.gridStateActionMap={"ytd-update-grid-state-action":"handleUpdateGridStateAction"};S.modernTypography=_.y("web_modern_typography");return S};
_.r(RB,_.w);_.M=RB.prototype;_.M.configureRendererStamper=function(){return{"data.destinationButtons":{id:"destination-buttons",mapping:{destinationButtonRenderer:{component:"ytd-destination-button-renderer"}}}}};
_.M.attached=function(){this.ytActionHandlerBehavior.registerActionMap(this.gridStateActionMap)};
_.M.handleUpdateGridStateAction=function(){this.updateDestinationButtonsVisibility()};
_.M.updateDestinationButtonsVisibility=function(){if(!this.isRichGrid){var S;if((S=this.data)==null||!S.isExpanded){S=this.hostElement.clientWidth;var p;if(S&&(p=this.data)!=null&&p.destinationButtons){p=Math.floor((S+4)/214);S=this.data.destinationButtons.length;var U=Math.ceil(S/p);this.fullyVisibleRows=S%p===1&&U===2?1:Math.min(U,2);this.isShowMoreVisible=this.fullyVisibleRows<U}}}};
_.M.updateRichGridDestinationButtonsVisibility=function(){var S,p;if(this.isRichGrid&&((S=this.data)==null||!S.isExpanded)&&(p=this.data)!=null&&p.destinationButtons){S=this.richGridItemsPerRow+1;p=this.data.destinationButtons.length;var U=Math.ceil(p/S);this.fullyVisibleRows=p%S===1&&U===2?1:Math.min(U,2);this.isShowMoreVisible=this.fullyVisibleRows<U}};
_.M.onShowMoreClick=function(){this.isShowMoreVisible=!1;this.data&&(this.data.isExpanded=!0)};
RB.prototype.updateRichGridDestinationButtonsVisibility=RB.prototype.updateRichGridDestinationButtonsVisibility;_.x([_.g(),_.E("design:type",Object)],RB.prototype,"data",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Number)],RB.prototype,"fullyVisibleRows",void 0);_.x([_.g({reflectToAttribute:!0,value:!1}),_.E("design:type",Boolean)],RB.prototype,"isShowMoreVisible",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],RB.prototype,"isRichGrid",void 0);
_.x([_.g({selector:_.R4,value:0}),_.E("design:type",Number)],RB.prototype,"richGridItemsPerRow",void 0);_.x([_.g(),_.E("design:type",Object)],RB.prototype,"gridStateActionMap",void 0);_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],RB.prototype,"ytRendererBehavior",void 0);_.x([_.F(_.qH.YtRendererstamperBehavior),_.E("design:type",Object)],RB.prototype,"ytRendererstamperBehavior",void 0);
_.x([_.F(_.Aj.YtActionHandlerBehavior),_.E("design:type",Object)],RB.prototype,"ytActionHandlerBehavior",void 0);_.x([_.F(_.Xh),_.E("design:type",Object)],RB.prototype,"ytdReduxBehavior",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],RB.prototype,"modernTypography",void 0);_.x([_.T4("data","richGridItemsPerRow"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],RB.prototype,"updateRichGridDestinationButtonsVisibility",null);
RB=_.x([_.f({is:"ytd-destination-shelf-renderer",disableElementRegistration:!0})],RB);
_.C(RB,"ytd-destination-shelf-renderer",function(){if(WTI!==void 0)return WTI;var S=document.createElement("template");_.h(S,'\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');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);return WTI=S},{mode:1});var Odd;var FQ=function(){return _.w.apply(this,arguments)||this};
_.r(FQ,_.w);FQ.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"}}}};
_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],FQ.prototype,"ytRendererBehavior",void 0);_.x([_.F(_.qH.YtRendererstamperBehavior),_.E("design:type",Object)],FQ.prototype,"ytRendererstamperBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],FQ.prototype,"data",void 0);FQ=_.x([_.f({is:"ytd-brandconnect-cta-shelf-card-renderer",disableElementRegistration:!0})],FQ);
_.C(FQ,"ytd-brandconnect-cta-shelf-card-renderer",function(){if(Odd!==void 0)return Odd;var S=document.createElement("template");_.h(S,'\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');
S.content.insertBefore(_.t().content.cloneNode(!0),S.content.firstChild);return Odd=S},{mode:1});var kil;var XQ=function(){var S=_.w.apply(this,arguments)||this;S.disableAnimation=!1;S.isSlimlineSurvey=!1;S.isSlimlineSurveyFollowUp=!1;S.isShortsStyle=!1;return S};
_.r(XQ,_.w);XQ.prototype.onTap=function(S){S.preventDefault();this.data&&_.cv(this.hostElement,"ytd-rating-survey-option-changed",this.data)};
_.$u.Object.defineProperties(XQ.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 S,p,U,Y,L;return((S=this.data)==null?0:S.checked)?(p=this.data)==null?void 0:(U=p.onStateIcon)==null?void 0:U.iconType:(Y=this.data)==null?void 0:(L=Y.defaultStateIcon)==null?void 0:L.iconType}}});
_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],XQ.prototype,"ytRendererBehavior",void 0);_.x([_.F(_.eL.YtComponentBehavior),_.E("design:type",Object)],XQ.prototype,"ytComponentBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],XQ.prototype,"data",void 0);_.x([_.g(),_.E("design:type",Object)],XQ.prototype,"disableAnimation",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],XQ.prototype,"isSlimlineSurvey",void 0);
_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],XQ.prototype,"isSlimlineSurveyFollowUp",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],XQ.prototype,"isShortsStyle",void 0);_.x([_.e("disableAnimation","isSlimlineSurveyFollowUp","isShortsStyle"),_.E("design:type",Boolean),_.E("design:paramtypes",[])],XQ.prototype,"isAnimatedIcon",null);
_.x([_.e("isSlimlineSurvey","isSlimlineSurveyFollowUp","isShortsStyle"),_.E("design:type",Number),_.E("design:paramtypes",[])],XQ.prototype,"iconSize",null);_.x([_.e("isShortsStyle"),_.E("design:type",Boolean),_.E("design:paramtypes",[])],XQ.prototype,"isDarkTheme",null);_.x([_.e("data.checked"),_.E("design:type",Object),_.E("design:paramtypes",[])],XQ.prototype,"icon",null);XQ=_.x([_.f({is:"ytd-rating-survey-option-renderer",disableElementRegistration:!0})],XQ);
_.C(XQ,"ytd-rating-survey-option-renderer",function(){if(kil!==void 0)return kil;var S=document.createElement("template");_.h(S,'\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');
S.content.insertBefore(_.t().content.cloneNode(!0),S.content.firstChild);return kil=S},{mode:2});var Hdt;var Py=function(){var S=_.w.apply(this,arguments)||this;S.firstResponseText=null;S.lastResponseText=null;S.selectedNonStarOption=null;S.hideOptions=!1;S.hideUndoButton=!0;S.disableAnimation=!1;S.showResponseRangeText=!1;S.selectedRatingIndex=-1;S.isSlimlineSurvey=!1;S.isSlimlineSurveyFollowUp=!1;S.isShortsStyle=!1;S.slimlineSurveyRatingSelectedIndex=-1;return S};
_.r(Py,_.w);_.M=Py.prototype;_.M.configureRendererStamper=function(){return{"data.ratings":{id:"ratings",mapping:{ratingSurveyOptionRenderer:{component:"ytd-rating-survey-option-renderer",properties:{disableAnimation:"[[disableAnimation]]",isSlimlineSurvey:"[[isSlimlineSurvey]]",isSlimlineSurveyFollowUp:"[[isSlimlineSurveyFollowUp]]",isShortsStyle:"[[isShortsStyle]]"}}}}}};
_.M.dataChanged=function(){this.resetComponent();this.isSlimlineSurveyFollowUp&&this.slimlineSurveyRatingSelectedIndex>-1&&this.showSelectedOption()};
_.M.onOptionChange=function(S,p){var U=this;S=p.onStateIcon&&p.defaultStateIcon&&p.onStateIcon.iconType===p.defaultStateIcon.iconType;this.hideUndoButton=this.isSlimlineSurvey;if(this.isSingleSelect)this.getOptionRenderers().forEach(function(V,W){V.responseText===p.responseText?U.isSlimlineSurvey?(U.selectedRatingIndex=W,U.ytdReduxBehavior.dispatch(J6m(W))):(U.setSurveyOptionValue(W,!0,"checked"),U.setSurveyOptionValue(W,!0,"selected")):(U.setSurveyOptionValue(W,!1,"checked"),U.setSurveyOptionValue(W,
!1,"selected"))});
else if(S)this.selectedNonStarOption=p,this.hideOptions=!0;else{var Y=this.ytRendererBehavior.getSimpleString(p.responseText),L=!0;this.getOptionRenderers().forEach(function(V,W){U.setSurveyOptionValue(W,L,"checked");U.setSurveyOptionValue(W,!1,"selected");U.ytRendererBehavior.getSimpleString(V.responseText)===Y&&(L=!1,U.setSurveyOptionValue(W,!0,"selected"))})}S=p.responseEndpoint;
var I;p.followUpCommand&&(I=_.b(p.followUpCommand,McP));this.isSlimlineSurvey?(this.resetComponent(),_.St(this.hostElement,"ytd-slimline-survey-rating-select-action")):_.St(this.hostElement,"ytd-inline-survey-rating-select-action",[S,I])};
_.M.showSelectedOption=function(){var S=this;_.PA.addJob(function(){var p=S.getOptionRenderers()[S.slimlineSurveyRatingSelectedIndex];S.onOptionChange(new CustomEvent("ytd-rating-survey-option-changed"),p)},8,100)};
_.M.getOptionRenderers=function(){return this.data&&this.data.ratings?this.data.ratings.map(function(S){var p;return(p=_.b(S,dAI))!=null?p:{}}):[]};
_.M.onUndoClick=function(){this.resetComponent();_.St(this.hostElement,"ytd-inline-survey-rating-select-action",[null,null])};
_.M.setSurveyOptionValue=function(S,p,U){this.notifyPath("data.ratings."+S+".ratingSurveyOptionRenderer."+U);this.set("data.ratings."+S+".ratingSurveyOptionRenderer."+U,p)};
_.M.resetComponent=function(){var S=this;this.selectedNonStarOption=null;this.hideOptions=!1;this.hideUndoButton=!0;var p=this.getOptionRenderers(),U,Y;this.firstResponseText=(Y=(U=p[0])==null?void 0:U.responseText)!=null?Y:null;var L,I;this.lastResponseText=(I=(L=p[p.length-1])==null?void 0:L.responseText)!=null?I:null;p.forEach(function(V,W){S.setSurveyOptionValue(W,!1,"checked");S.setSurveyOptionValue(W,!1,"selected")})};
_.$u.Object.defineProperties(Py.prototype,{isSingleSelect:{configurable:!0,enumerable:!0,get:function(){return this.isSlimlineSurvey||this.isSlimlineSurveyFollowUp||this.isShortsStyle}}});
Py.prototype.onOptionChange=Py.prototype.onOptionChange;Py.prototype.dataChanged=Py.prototype.dataChanged;_.x([_.F(_.qH.YtRendererstamperBehavior),_.E("design:type",Object)],Py.prototype,"ytRendererstamperBehavior",void 0);_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],Py.prototype,"ytRendererBehavior",void 0);_.x([_.F(_.Xh),_.E("design:type",Object)],Py.prototype,"ytdReduxBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],Py.prototype,"data",void 0);
_.x([_.g(),_.E("design:type",Object)],Py.prototype,"firstResponseText",void 0);_.x([_.g(),_.E("design:type",Object)],Py.prototype,"lastResponseText",void 0);_.x([_.g(),_.E("design:type",Object)],Py.prototype,"selectedNonStarOption",void 0);_.x([_.g(),_.E("design:type",Object)],Py.prototype,"hideOptions",void 0);_.x([_.g(),_.E("design:type",Object)],Py.prototype,"hideUndoButton",void 0);_.x([_.g(),_.E("design:type",Object)],Py.prototype,"disableAnimation",void 0);
_.x([_.g(),_.E("design:type",Object)],Py.prototype,"showResponseRangeText",void 0);_.x([_.g(),_.E("design:type",Object)],Py.prototype,"selectedRatingIndex",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],Py.prototype,"isSlimlineSurvey",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],Py.prototype,"isSlimlineSurveyFollowUp",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],Py.prototype,"isShortsStyle",void 0);_.x([_.g({selector:function(S){return S.ui.slimlineSurveyRatingSelectedIndex}}),
_.E("design:type",Object)],Py.prototype,"slimlineSurveyRatingSelectedIndex",void 0);_.x([_.e("isSlimlineSurvey","isSlimlineSurveyFollowUp","isShortsStyle"),_.E("design:type",Boolean),_.E("design:paramtypes",[])],Py.prototype,"isSingleSelect",null);_.x([_.z4("data"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],Py.prototype,"dataChanged",null);
_.x([_.Vd("ytd-rating-survey-option-changed"),_.E("design:type",Function),_.E("design:paramtypes",[CustomEvent,Object]),_.E("design:returntype")],Py.prototype,"onOptionChange",null);Py=_.x([_.f({is:"ytd-rating-survey-renderer",disableElementRegistration:!0})],Py);
_.C(Py,"ytd-rating-survey-renderer",function(){if(Hdt!==void 0)return Hdt;var S=document.createElement("template");_.h(S,'\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');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);return Hdt=S},{mode:1});var Dit;var zGw;var Qvq;var dee=(y4.FIRSTDAYOFWEEK+1)%7,npm=function(S,p,U,Y){var L="";if(Y.selection&&YuE(Y.selection))Q4(S,Y.selection)&&(L+=" selected");else if(Y.selection&&LRR(Y.selection)){var I=Y.selection.selectionState||"START_DATE";Q4(S,Y.selection.start)&&(L+=" period-start ",I==="START_DATE"&&(L+="selected"));Q4(S,Y.selection.end)&&(L+=" period-end ",I==="END_DATE"&&(L+="selected"));nJ(S,Y.selection.start)||nJ(Y.selection.end,S)||(L+=" highlighted")}if(nJ(p,Y.start)||nJ(Y.end,p))L+=" disabled";Y.circleToday&&
Q4(p,U)&&(L+=" today");return L};var ZM=function(){return _.w.apply(this,arguments)||this};
_.r(ZM,_.w);_.M=ZM.prototype;_.M.attached=function(){var S=this;_.oH(this,function(){S.JSC$13820_calendarMain.scrollHeight>0&&(S.calendarConfig.selection?S.scrollToDate(MBX(S.calendarConfig.selection)):S.scrollToDate(S.calendarConfig.end))})};
_.M.updateSelection=function(S){S=VBw(Object.assign({},this.calendarConfig,{selection:S}),npm);this.splice.apply(this,["renderData.months",0,S.length].concat(_.jo(S)))};
_.M.scrollToDate=function(S){this.renderData&&(S=The(S,this.renderData),S!==void 0&&this.JSC$13820_calendarMain.scrollToIndex(S))};
_.M.scrollToNextMonth=function(){this.JSC$13820_calendarMain.scrollToIndex(this.JSC$13820_calendarMain.firstVisibleIndex+1)};
_.M.scrollToPrevMonth=function(){this.JSC$13820_calendarMain.firstVisibleIndex===0&&this.JSC$13820_calendarMain.scrollTo(0,0);this.JSC$13820_calendarMain.scrollToIndex(this.JSC$13820_calendarMain.firstVisibleIndex-1)};
_.M.handleDayClick=function(S){_.St(this.hostElement,"ytd-calendar-date-clicked",[S.model.day.date])};
_.M.handleDayMouseDown=function(S){S.preventDefault();_.St(this.hostElement,"ytd-calendar-date-mousedown",[S.model.day.date])};
_.M.handleDayMouseUp=function(S){_.St(this.hostElement,"ytd-calendar-date-mouseup",[S.model.day.date])};
_.M.handleDayMouseEnter=function(S){S.preventDefault();_.St(this.hostElement,"ytd-calendar-date-mouseenter",[S.model.day.date])};
_.M.handleDayMouseLeave=function(S){_.St(this.hostElement,"ytd-calendar-date-mouseleave",[S.model.day.date])};
_.$u.Object.defineProperties(ZM.prototype,{renderData:{configurable:!0,enumerable:!0,get:function(){var S=this.calendarConfig,p=npm;p=p===void 0?npm:p;for(var U=[],Y=0;Y<7;Y++)U.push(y4.NARROWWEEKDAYS[(Y+dee)%7]);return{months:VBw(S,p),daysOfWeekLabel:U}}}});
_.x([_.g(),_.E("design:type",Object)],ZM.prototype,"calendarConfig",void 0);_.x([_.O2("#calendar-main"),_.E("design:type",Object)],ZM.prototype,"JSC$13820_calendarMain",void 0);_.x([_.e("calendarConfig"),_.E("design:type",Object),_.E("design:paramtypes",[])],ZM.prototype,"renderData",null);ZM=_.x([_.f({disableElementRegistration:!0,is:"ytd-scrollable-calendar"})],ZM);
_.C(ZM,"ytd-scrollable-calendar",function(){if(Qvq!==void 0)return Qvq;var S=document.createElement("template");_.h(S,'\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');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);return Qvq=S},{mode:2});var Jod;var yoc;var s6=function(){var S=_.w.apply(this,arguments)||this;S.hideCharCounter=!1;S.hideLabel=!1;S.noLabelFloat=!1;S.autoValidate=!0;S.invalid=!1;S.disabled=!1;S.actionMap={"yt-update-text-input-form-field-renderer-command":"handleUpdateTextInputFormFieldRendererCommand"};return S};
_.r(s6,_.w);_.M=s6.prototype;_.M.reset=function(S){this.value=S&&this.data?this.data.value=S:"";this.input.invalid=!1;this.input.autoValidate=!1};
_.M.save=function(){this.data&&this.data.onChange&&this.ytComponentBehavior.resolveCommand(this.data.onChange)};
_.M.focusTextInput=function(){this.input.focus()};
_.M.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()};
_.M.valueChanged=function(){var S,p;if(((S=this.data)==null?0:S.value)||((p=this.data)==null?void 0:p.value)==="")this.value=this.data.value;else{var U;((U=this.data)==null?void 0:U.value)!==void 0||this.value||(this.value="")}};
_.M.computeLabel=function(S,p){return p?"":_.mA(S)};
_.M.computeAriaLabel=function(S,p){return p?_.mA(S):""};
_.M.computeErrorMessage=function(S,p,U,Y){!S&&p?S=U||this.strings.REQUIRED_LABEL:(S=_.mA(Y),S=_.Wk(S,"&")?"document"in _.UX?zcd(S):QMw(S):S);return S};
_.M.computeType=function(S){return S==="TEXT_INPUT_FORM_FIELD_TYPE_PASSWORD"?"password":null};
_.M.onTextValueChanged=function(S){this.value=S.detail.value;var p;(p=this.onValueChanged)==null||p.call(this);this.validate()&&this.data&&this.data.key&&this.data.onChange&&this.set(this.data.key,this.input.value,this.data.onChange)};
_.M.handleUpdateTextInputFormFieldRendererCommand=function(S){(S=_.b(S,Ryq))&&this.data&&this.data.id===S.id&&(S.invalid!==void 0&&(this.invalid=S.invalid),S.invalidValueErrorMessage!==void 0&&this.set("data.invalidValueErrorMessage",S.invalidValueErrorMessage))};
_.M.valueChangedForBinding=function(){this.hostElement.dispatchEvent(new _.uz("value-changed",this.value))};
_.M.updateInvalidFromBinding=function(S){this.invalid=S.detail.value};
_.$u.Object.defineProperties(s6.prototype,{isMultiline:{configurable:!0,enumerable:!0,get:function(){if(this.isMultilineOverride!==void 0)return this.isMultilineOverride;var S;return!((S=this.data)==null||!S.isMultiline)}}});
s6.prototype.valueChangedForBinding=s6.prototype.valueChangedForBinding;s6.prototype.valueChanged=s6.prototype.valueChanged;_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],s6.prototype,"ytRendererBehavior",void 0);_.x([_.F(_.eL.YtComponentBehavior),_.E("design:type",Object)],s6.prototype,"ytComponentBehavior",void 0);_.x([_.F(_.Aj.YtActionHandlerBehavior),_.E("design:type",Object)],s6.prototype,"ytActionHandlerBehavior",void 0);
_.x([_.g(),_.E("design:type",Object)],s6.prototype,"data",void 0);_.x([_.g(),_.E("design:type",String)],s6.prototype,"value",void 0);_.x([_.g(),_.E("design:type",String)],s6.prototype,"pattern",void 0);_.x([_.g(),_.E("design:type",String)],s6.prototype,"errorMessage",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",String)],s6.prototype,"componentStyle",void 0);_.x([_.g(),_.E("design:type",Object)],s6.prototype,"hideCharCounter",void 0);
_.x([_.g(),_.E("design:type",Object)],s6.prototype,"hideLabel",void 0);_.x([_.g(),_.E("design:type",Object)],s6.prototype,"noLabelFloat",void 0);_.x([_.g(),_.E("design:type",Function)],s6.prototype,"onValueChanged",void 0);_.x([_.g(),_.E("design:type",Boolean)],s6.prototype,"isMultilineOverride",void 0);_.x([_.g(),_.E("design:type",Object)],s6.prototype,"autoValidate",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],s6.prototype,"invalid",void 0);
_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],s6.prototype,"disabled",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Boolean)],s6.prototype,"enableOverlayTheme",void 0);_.x([_.g({value:{REQUIRED_LABEL:_.Oh("REQUIRED_LABEL",void 0,"Required")}}),_.E("design:type",Object)],s6.prototype,"strings",void 0);_.x([_.O2("#input"),_.E("design:type",Object)],s6.prototype,"input",void 0);
_.x([_.e("data","isMultilineOverride"),_.E("design:type",Object),_.E("design:paramtypes",[])],s6.prototype,"isMultiline",null);_.x([_.z4("data.value"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],s6.prototype,"valueChanged",null);_.x([_.T4("value"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],s6.prototype,"valueChangedForBinding",null);s6=_.x([_.FB({is:"yt-text-input-form-field-renderer",disableElementRegistration:!0})],s6);
_.C(s6,"yt-text-input-form-field-renderer",function(){if(yoc===void 0){var S=document.createElement("template");_.h(S,'\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');
S.content.insertBefore(_.t().content.cloneNode(!0),S.content.firstChild);var p=S.content,U=p.insertBefore;Jod===void 0&&(Jod=document.createElement("template"));var Y=Jod;U.call(p,Y.content.cloneNode(!0),S.content.firstChild);yoc=S}S=yoc;return S},{mode:2});var e7=function(){var S=_.w.apply(this,arguments)||this;S.data=void 0;S.selectionState="START_DATE";S.isStartDateInvalid=!1;S.isEndDateInvalid=!1;S.autoapply=!1;S.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 S};
_.r(e7,_.w);_.M=e7.prototype;_.M.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"}}}}};
_.M.focus=function(){this.startDateInput.focus()};
_.M.dataChanged=function(){this.data&&this.data.selection&&(this.selection={start:Jl(this.data.selection.start),end:Jl(this.data.selection.end)})};
_.M.observeSelection=function(){this.selection&&this.updateCalendarSelection(this.selection);this.isEndDateInvalid=this.isStartDateInvalid=!1;this.updateDateStrings()};
_.M.resetTextboxes=function(){switch(this.selectionState){case "START_DATE":this.isStartDateInvalid=!1;break;case "END_DATE":this.isEndDateInvalid=!1;break;default:_.WP(this.selectionState)}};
_.M.onDateInputBlur=function(){this.isEndDateInvalid=this.isStartDateInvalid=!1;this.updateDateStrings()};
_.M.onStartDateTapOrFocus=function(){this.startDate&&this.calendar.scrollToDate(this.startDate);this.selectionState="START_DATE"};
_.M.onEndDateTapOrFocus=function(){this.endDate&&this.calendar.scrollToDate(this.endDate);this.selectionState="END_DATE"};
_.M.onStartDateTextChange=function(){if(this.calendar.calendarConfig){var S=this.calendar.calendarConfig,p=S.end;S=OBd({start:S.start,end:this.endDate||p},this.startDateInput.value||"");this.isStartDateInvalid=!S.isValid;S.isValid&&(S=S.value,this.selection=this.endDate?{start:S,end:this.endDate}:S,this.calendar.scrollToDate(S));this.updateInvalidState()}};
_.M.onEndDateTextChange=function(){if(this.calendar.calendarConfig){var S=this.calendar.calendarConfig,p=S.start;S=OBd({start:this.startDate||p,end:S.end},this.endDateInput.value||"");this.isEndDateInvalid=!S.isValid;S.isValid&&(S=S.value,this.selection={start:this.startDate,end:S},this.calendar.scrollToDate(S));this.updateInvalidState()}};
_.M.handleCalendarDateClicked=function(S){var p=this.selection&&MBX(this.selection),U=this.selection&&IZG(this.selection);p&&!nJ(S,p)&&this.selectionState==="END_DATE"?(this.selection={start:p,end:S},this.selectionState="START_DATE"):(U&&!nJ(U,S)?this.selection={start:S,end:U}:this.selection=S,this.selectionState="END_DATE")};
_.M.handleCalendarDateMouseDown=function(S){this.selection&&!YuE(this.selection)&&(this.dragPivot=Q4(S,this.selection.start)?this.selection.end:Q4(S,this.selection.end)?this.selection.start:S)};
_.M.handleCalendarDateMouseUp=function(){this.dragPivot=void 0};
_.M.handleCalendarDateMouseEnter=function(S){this.dragPivot&&(this.selection={start:function(p,U){return nJ(p,U)?p:U}(this.dragPivot,S),
end:function(p,U){return nJ(p,U)?U:p}(this.dragPivot,S)},this.dragPivot||(this.selectionState="START_DATE"))};
_.M.handleCalendarDateMouseLeave=function(){};
_.M.handleCalendarSubmitDateRange=function(){this.selection&&!YuE(this.selection)&&_.St(this.hostElement,"ytd-date-period-picker-apply",[this.selection])};
_.M.updateInvalidState=function(){var S=function(p,U){U?p.setAttribute("invalid",""):p.removeAttribute("invalid")};
S(this.startDateInput,this.isStartDateInvalid);S(this.endDateInput,this.isEndDateInvalid)};
_.M.updateDateStrings=function(){this.selection&&(YuE(this.selection)?Uew(this.selection):(Uew(this.selection.start),Uew(this.selection.end)))};
_.M.updateCalendarSelection=function(S){this.calendar.updateSelection(Object.assign({},S,{selectionState:this.selectionState}))};
_.M.updateIsStartDateInvalidFromBinding=function(S){this.isStartDateInvalid=S.detail.value};
_.M.updateIsEndDateInvalidFromBinding=function(S){this.isEndDateInvalid=S.detail.value};
_.M.updateStartDateStringFromBinding=function(){};
_.M.updateEndDateStringFromBinding=function(){};
_.$u.Object.defineProperties(e7.prototype,{calendarConfig:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.selection?{start:Jl(this.data.dateRangeStart),end:Jl(this.data.dateRangeEnd),selection:{start:Jl(this.data.selection.start),end:Jl(this.data.selection.end)},circleToday:!0}:{}}},
errorMessage:{configurable:!0,enumerable:!0,get:function(){var S;return(S=this.data)==null?void 0:S.errorMessage}},
startDate:{configurable:!0,enumerable:!0,get:function(){return this.selection&&MBX(this.selection)}},
endDate:{configurable:!0,enumerable:!0,get:function(){return this.selection&&IZG(this.selection)}}});
e7.prototype.resetTextboxes=e7.prototype.resetTextboxes;e7.prototype.observeSelection=e7.prototype.observeSelection;e7.prototype.dataChanged=e7.prototype.dataChanged;_.x([_.F(_.Aj.YtActionHandlerBehavior),_.E("design:type",Object)],e7.prototype,"ytActionHandlerBehavior",void 0);_.x([_.F(_.qH.YtRendererstamperBehavior),_.E("design:type",Object)],e7.prototype,"ytRendererstamperBehavior",void 0);_.x([_.O2("#calendar"),_.E("design:type",Object)],e7.prototype,"calendar",void 0);
_.x([_.O2("#start-date"),_.E("design:type",Object)],e7.prototype,"startDateInput",void 0);_.x([_.O2("#end-date"),_.E("design:type",Object)],e7.prototype,"endDateInput",void 0);_.x([_.g(),_.E("design:type",Object)],e7.prototype,"data",void 0);_.x([_.g(),_.E("design:type",Object)],e7.prototype,"selection",void 0);_.x([_.g(),_.E("design:type",String)],e7.prototype,"selectionState",void 0);_.x([_.e("data"),_.E("design:type",Object),_.E("design:paramtypes",[])],e7.prototype,"calendarConfig",null);
_.x([_.e("data"),_.E("design:type",Object),_.E("design:paramtypes",[])],e7.prototype,"errorMessage",null);_.x([_.e("selection"),_.E("design:type",Object),_.E("design:paramtypes",[])],e7.prototype,"startDate",null);_.x([_.e("selection"),_.E("design:type",Object),_.E("design:paramtypes",[])],e7.prototype,"endDate",null);_.x([_.T4("data"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],e7.prototype,"dataChanged",null);
_.x([_.T4("selection","selectionState"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],e7.prototype,"observeSelection",null);_.x([_.T4("selectionState"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],e7.prototype,"resetTextboxes",null);e7=_.x([_.f({disableElementRegistration:!0,is:"ytd-date-period-picker-renderer"})],e7);
_.C(e7,"ytd-date-period-picker-renderer",function(){if(zGw!==void 0)return zGw;var S=document.createElement("template");_.h(S,'\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');
S.content.insertBefore(_.t().content.cloneNode(!0),S.content.firstChild);return zGw=S},{mode:1});var g$=function(){var S=_.w.apply(this,arguments)||this;var p={};S.actionMap=(p["ytd-date-period-picker-apply"]="handleDateRangeUpdated",p);return S};
_.r(g$,_.w);g$.prototype.configureRendererStamper=function(){return{"data.timeRangeDropdown":{id:"time-range-dropdown",mapping:{sortFilterSubMenuRenderer:"yt-sort-filter-sub-menu-renderer"}}}};
g$.prototype.handleDateRangeUpdated=function(){};
_.x([_.g(),_.E("design:type",Object)],g$.prototype,"data",void 0);_.x([_.F(_.Aj.YtActionHandlerBehavior),_.E("design:type",Object)],g$.prototype,"actionHandlerBehavior",void 0);_.x([_.F(_.qH.YtRendererstamperBehavior),_.E("design:type",Object)],g$.prototype,"rendererstamperBehavior",void 0);g$=_.x([_.f({is:"ytd-report-history-section-header-renderer",disableElementRegistration:!0})],g$);
_.C(g$,"ytd-report-history-section-header-renderer",function(){if(Dit!==void 0)return Dit;var S=document.createElement("template");_.h(S,'\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');
S.content.insertBefore(_.t().content.cloneNode(!0),S.content.firstChild);return Dit=S},{mode:1});var KTt;var bdH;var jve;var u8=function(){return _.w.apply(this,arguments)||this};
_.r(u8,_.w);_.$u.Object.defineProperties(u8.prototype,{icon:{configurable:!0,enumerable:!0,get:function(){var S,p;return((S=this.data)==null?0:(p=S.icon)==null?0:p.iconType)?_.If(this.data.icon.iconType):""}}});
_.x([_.g(),_.E("design:type",Object)],u8.prototype,"data",void 0);_.x([_.e("data"),_.E("design:type",String),_.E("design:paramtypes",[])],u8.prototype,"icon",null);u8=_.x([_.f({is:"ytd-report-history-table-text-cell-renderer",disableElementRegistration:!0})],u8);
_.C(u8,"ytd-report-history-table-text-cell-renderer",function(){if(jve!==void 0)return jve;var S=document.createElement("template");_.h(S,'\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');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);return jve=S},{mode:1});var w$=function(){return _.w.apply(this,arguments)||this};
_.r(w$,_.w);w$.prototype.configureRendererStamper=function(){return{"data.latestReason":{id:"latest-reason",mapping:{reportHistoryTableTextCellRenderer:"ytd-report-history-table-text-cell-renderer"}}}};
_.x([_.F(_.qH.YtRendererstamperBehavior),_.E("design:type",Object)],w$.prototype,"ytRendererstamperBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],w$.prototype,"data",void 0);w$=_.x([_.f({is:"ytd-report-history-table-reason-cell-renderer",disableElementRegistration:!0})],w$);
_.C(w$,"ytd-report-history-table-reason-cell-renderer",function(){if(bdH!==void 0)return bdH;var S=document.createElement("template");_.h(S,'\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');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);return bdH=S},{mode:1});var l8=function(){return _.w.apply(this,arguments)||this};
_.r(l8,_.w);l8.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"}}}};
_.x([_.F(_.qH.YtRendererstamperBehavior),_.E("design:type",Object)],l8.prototype,"rendererstamperBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],l8.prototype,"data",void 0);l8=_.x([_.f({is:"ytd-report-history-table-cell-renderer",disableElementRegistration:!0})],l8);
_.C(l8,"ytd-report-history-table-cell-renderer",function(){if(KTt!==void 0)return KTt;var S=document.createElement("template");_.h(S,'\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');S.content.insertBefore(_.t().content.cloneNode(!0),S.content.firstChild);
return KTt=S},{mode:1});var rom;var aB=function(){var S=_.w.apply(this,arguments)||this;S.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 S};
_.r(aB,_.w);aB.prototype.onDataChanged=function(){var S;if((S=this.data)==null?0:S.style)this.componentStyle=this.getStyleName(this.data.style)};
aB.prototype.getCellForColumn=function(S){return this.cells.find(function(p){var U;return((U=_.b(p==null?void 0:p.cell,WCd)||_.b(p==null?void 0:p.cell,TXe))==null?void 0:U.columnId)===S.type})};
aB.prototype.getClassForColumn=function(S){switch(S){case "REPORT_HISTORY_COLUMN_DATE":return"date";default:return""}};
aB.prototype.getStyleName=function(S){switch(S){case "REPORT_HISTORY_ROW_STYLE_COMPACT":return"COMPACT_ROW";default:return""}};
_.$u.Object.defineProperties(aB.prototype,{cells:{configurable:!0,enumerable:!0,get:function(){var S;return(((S=this.data)==null?void 0:S.cells)||[]).map(function(p){return _.b(p,Vcd)})}}});
aB.prototype.onDataChanged=aB.prototype.onDataChanged;_.x([_.g(),_.E("design:type",Object)],aB.prototype,"data",void 0);_.x([_.g(),_.E("design:type",Array)],aB.prototype,"columnRenderData",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",String)],aB.prototype,"componentStyle",void 0);_.x([_.e("data"),_.E("design:type",Array),_.E("design:paramtypes",[])],aB.prototype,"cells",null);
_.x([_.T4("data"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],aB.prototype,"onDataChanged",null);aB=_.x([_.f({is:"ytd-report-history-table-row-renderer",disableElementRegistration:!0})],aB);
_.C(aB,"ytd-report-history-table-row-renderer",function(){if(rom!==void 0)return rom;var S=document.createElement("template");_.h(S,'\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');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);return rom=S},{mode:1});var Gie;var hGl;var k$G={padding:12,paddingLeftFirstColumn:0,paddingRightLastColumn:0,minWidth:50,maxWidth:Infinity,flexGrow:1},HBX={padding:12,paddingLeftFirstColumn:24,paddingRightLastColumn:24,minWidth:50,maxWidth:Infinity,flexGrow:0};var fP=function(){return _.w.apply(this,arguments)||this};
_.r(fP,_.w);fP.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"}}}}}};
fP.prototype.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"rows","yt-reload-continuation-items-command-body":"rows"}};
_.$u.Object.defineProperties(fP.prototype,{tableSpec:{configurable:!0,enumerable:!0,get:function(){var S;return((S=this.data)==null?0:S.columns)?JGe(this.data.columns):{columns:{},columnsToShow:[]}}},
columnRenderData:{configurable:!0,enumerable:!0,get:function(){return QDq(this.tableSpec)}},
totalMinWidth:{configurable:!0,enumerable:!0,get:function(){var S=this.tableSpec,p=k$G;p=p===void 0?HBX:p;p=nfe(S.columnDimensions,S.columnsToShow||[],p);S=0;p=_.d(p);for(var U=p.next();!U.done;U=p.next())U=U.value,S+=U.minWidth+U.paddingLeft+U.paddingRight;return S}},
tableWidthStyle:{configurable:!0,enumerable:!0,get:function(){return"min-width:"+this.totalMinWidth+"px;"}}});
_.x([_.F(_.wS),_.E("design:type",Object)],fP.prototype,"ytContinuationHandlerBehavior",void 0);_.x([_.F(_.qH.YtRendererstamperBehavior),_.E("design:type",Object)],fP.prototype,"ytRendererstamperBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],fP.prototype,"data",void 0);_.x([_.e("data"),_.E("design:type",Object),_.E("design:paramtypes",[])],fP.prototype,"tableSpec",null);_.x([_.e("tableSpec"),_.E("design:type",Array),_.E("design:paramtypes",[])],fP.prototype,"columnRenderData",null);
_.x([_.e("tableSpec"),_.E("design:type",Number),_.E("design:paramtypes",[])],fP.prototype,"totalMinWidth",null);_.x([_.e("totalMinWidth"),_.E("design:type",String),_.E("design:paramtypes",[])],fP.prototype,"tableWidthStyle",null);fP=_.x([_.f({is:"ytd-table-renderer",disableElementRegistration:!0})],fP);
_.C(fP,"ytd-table-renderer",function(){if(hGl!==void 0)return hGl;var S=document.createElement("template");_.h(S,'\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');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);return hGl=S},{mode:1});var CP=function(){return _.w.apply(this,arguments)||this};
_.r(CP,_.w);CP.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}}}}}};
_.x([_.F(_.qH.YtRendererstamperBehavior),_.E("design:type",Object)],CP.prototype,"ytRendererstamperBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],CP.prototype,"data",void 0);CP=_.x([_.f({is:"ytd-report-reason-history-modal-renderer",disableElementRegistration:!0})],CP);
_.C(CP,"ytd-report-reason-history-modal-renderer",function(){if(Gie!==void 0)return Gie;var S=document.createElement("template");_.h(S,'\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');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);return Gie=S},{mode:1});var RGQ;var FTc;var XZt;var x_=function(){return _.w.apply(this,arguments)||this};
_.r(x_,_.w);_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],x_.prototype,"ytRendererBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],x_.prototype,"data",void 0);x_=_.x([_.f({is:"ytd-profile-column-stats-entry-renderer",disableElementRegistration:!0})],x_);
_.C(x_,"ytd-profile-column-stats-entry-renderer",function(){if(XZt!==void 0)return XZt;var S=document.createElement("template");_.h(S,'\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');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);return XZt=S},{mode:1});var PyP;var E6=function(){return _.w.apply(this,arguments)||this};
_.r(E6,_.w);E6.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{profileColumnStatsEntryRenderer:{component:"ytd-profile-column-stats-entry-renderer",noInjection:!0}}}}};
_.x([_.F(_.qH.YtRendererstamperBehavior),_.E("design:type",Object)],E6.prototype,"ytRendererstamperBehavior",void 0);_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],E6.prototype,"ytRendererBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],E6.prototype,"data",void 0);E6=_.x([_.f({is:"ytd-profile-column-stats-renderer",disableElementRegistration:!0})],E6);
_.C(E6,"ytd-profile-column-stats-renderer",function(){if(PyP!==void 0)return PyP;var S=document.createElement("template");_.h(S,'\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');S.content.insertBefore(_.t().content.cloneNode(!0),S.content.firstChild);return PyP=S},{mode:1});var Zdm;var m3=function(){return _.w.apply(this,arguments)||this};
_.r(m3,_.w);_.$u.Object.defineProperties(m3.prototype,{thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){var S;if((S=this.data)==null||!S.useThumbnailSize)return 80;var p,U;S=(p=this.data)==null?void 0:(U=p.thumbnail)==null?void 0:U.thumbnails;var Y;return S&&((Y=S[0])==null?void 0:Y.width)||80}},
thumbnailHeight:{configurable:!0,enumerable:!0,get:function(){var S;if((S=this.data)==null||!S.useThumbnailSize)return 80;var p,U;S=(p=this.data)==null?void 0:(U=p.thumbnail)==null?void 0:U.thumbnails;var Y;return S&&((Y=S[0])==null?void 0:Y.height)||80}}});
_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],m3.prototype,"ytRendererBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],m3.prototype,"data",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",String)],m3.prototype,"componentStyle",void 0);_.x([_.e("data.useThumbnailSize"),_.E("design:type",Object),_.E("design:paramtypes",[])],m3.prototype,"thumbnailWidth",null);
_.x([_.e("data.useThumbnailSize"),_.E("design:type",Object),_.E("design:paramtypes",[])],m3.prototype,"thumbnailHeight",null);m3=_.x([_.f({is:"ytd-profile-column-user-info-renderer",disableElementRegistration:!0})],m3);
_.C(m3,"ytd-profile-column-user-info-renderer",function(){if(Zdm!==void 0)return Zdm;var S=document.createElement("template");_.h(S,'\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');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);return Zdm=S},{mode:1});var oB=function(){return _.w.apply(this,arguments)||this};
_.r(oB,_.w);oB.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]]"}}}}}};
_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],oB.prototype,"ytRendererBehavior",void 0);_.x([_.F(_.qH.YtRendererstamperBehavior),_.E("design:type",Object)],oB.prototype,"ytRendererstamperBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],oB.prototype,"data",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",String)],oB.prototype,"componentStyle",void 0);oB=_.x([_.f({is:"ytd-profile-column-renderer",disableElementRegistration:!0})],oB);
_.C(oB,"ytd-profile-column-renderer",function(){if(FTc!==void 0)return FTc;var S=document.createElement("template");_.h(S,'\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');S.content.insertBefore(_.t().content.cloneNode(!0),S.content.firstChild);return FTc=S},{mode:1});var vy=function(){var S=_.w.apply(this,arguments)||this;S.componentStyle="NON_CENTERED_PROFILE";return S};
_.r(vy,_.w);vy.prototype.configureRendererStamper=function(){return{"data.reportStats":{id:"report-stats",mapping:{profileColumnRenderer:{component:"ytd-profile-column-renderer",properties:{componentStyle:"[[componentStyle]]"}}}}}};
vy.prototype.getIcon=function(S){return S?"settings:"+S.toLowerCase():null};
_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],vy.prototype,"ytRendererBehavior",void 0);_.x([_.F(_.qH.YtRendererstamperBehavior),_.E("design:type",Object)],vy.prototype,"ytRendererstamperBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],vy.prototype,"data",void 0);vy=_.x([_.f({is:"ytd-page-introduction-renderer",disableElementRegistration:!0})],vy);
_.C(vy,"ytd-page-introduction-renderer",function(){if(RGQ!==void 0)return RGQ;var S=document.createElement("template");_.h(S,'\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');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);return RGQ=S},{mode:1});var svm;var $_=function(){return _.w.apply(this,arguments)||this};
_.r($_,_.w);_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],$_.prototype,"ytRendererBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],$_.prototype,"data",void 0);$_=_.x([_.f({is:"ytd-report-description-renderer",disableElementRegistration:!0})],$_);
_.C($_,"ytd-report-description-renderer",function(){if(svm!==void 0)return svm;var S=document.createElement("template");_.h(S,'\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');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);return svm=S},{mode:1});var eGt;var gpl;var i8=function(){return _.w.apply(this,arguments)||this};
_.r(i8,_.w);i8.prototype.configureRendererStamper=function(){return{"data.description":{id:"description",mapping:{reportDescriptionRenderer:"ytd-report-description-renderer"}}}};
_.x([_.F(_.qH.YtRendererstamperBehavior),_.E("design:type",Object)],i8.prototype,"ytRendererstamperBehavior",void 0);_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],i8.prototype,"ytRendererBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],i8.prototype,"data",void 0);i8=_.x([_.f({is:"ytd-video-report-renderer",disableElementRegistration:!0})],i8);
_.C(i8,"ytd-video-report-renderer",function(){if(gpl!==void 0)return gpl;var S=document.createElement("template");_.h(S,'\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');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);return gpl=S},{mode:1});var u9Q;_.Ry("itemSectionRenderer","messageRenderer","ytd-message-renderer");_.Ry("multiPageMenuSectionItems","messageRenderer","ytd-message-renderer");var Nr=function(){return _.w.apply(this,arguments)||this};
_.r(Nr,_.w);Nr.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]]"}}}}}};
Nr.prototype.computeMessageStyle=function(S){return S};
Nr.prototype.computeButtonOverride=function(S){var p;if((S==null?0:(p=S.style)==null?0:p.value)&&S.style.value==="RENDER_STYLE_BANNER_PANEL")return{size:"S"}};
_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],Nr.prototype,"ytRendererBehavior",void 0);_.x([_.F(_.qH.YtRendererstamperBehavior),_.E("design:type",Object)],Nr.prototype,"ytRendererstamperBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],Nr.prototype,"data",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Boolean)],Nr.prototype,"shelf",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Boolean)],Nr.prototype,"panel",void 0);
_.x([_.g({reflectToAttribute:!0,computed:"computeMessageStyle(data.style.value)"}),_.E("design:type",Boolean)],Nr.prototype,"componentStyle",void 0);_.x([_.g({computed:"computeButtonOverride(data)"}),_.E("design:type",Object)],Nr.prototype,"buttonOverride",void 0);Nr=_.x([_.f({is:"ytd-message-renderer",disableElementRegistration:!0})],Nr);
_.C(Nr,"ytd-message-renderer",function(){if(u9Q!==void 0)return u9Q;var S=document.createElement("template");_.h(S,'\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');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);return u9Q=S},{mode:1});var By=function(){return _.w.apply(this,arguments)||this};
_.r(By,_.w);By.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"}}}};
By.prototype.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"table"}};
By.prototype.onRequestError=function(){this.ytContinuationHandlerBehavior.continuationIsReloading=!1};
_.$u.Object.defineProperties(By.prototype,{isUnifiedReportHistory:{configurable:!0,enumerable:!0,get:function(){var S,p;return!!(((S=this.data)==null?0:S.header)&&((p=this.data)==null?0:p.table))}}});
By.prototype.onRequestError=By.prototype.onRequestError;_.x([_.F(_.wS),_.E("design:type",Object)],By.prototype,"ytContinuationHandlerBehavior",void 0);_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],By.prototype,"ytRendererBehavior",void 0);_.x([_.F(_.qH.YtRendererstamperBehavior),_.E("design:type",Object)],By.prototype,"ytRendererstamperBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],By.prototype,"data",void 0);
_.x([_.e("data"),_.E("design:type",Object),_.E("design:paramtypes",[])],By.prototype,"isUnifiedReportHistory",null);_.x([_.Vd("yt-service-request-error"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],By.prototype,"onRequestError",null);By=_.x([_.f({is:"ytd-report-history-section-renderer",disableElementRegistration:!0})],By);
_.C(By,"ytd-report-history-section-renderer",function(){if(eGt!==void 0)return eGt;var S=document.createElement("template");_.h(S,'\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');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);return eGt=S},{mode:1});var wZP;var qr=function(){var S=_.w.apply(this,arguments)||this;S.answerExpanded=!1;return S};
_.r(qr,_.w);qr.prototype.toggleAnswer=function(){this.answerExpanded=!this.answerExpanded};
_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],qr.prototype,"ytRendererBehavior",void 0);_.x([_.F(_.qH.YtRendererstamperBehavior),_.E("design:type",Object)],qr.prototype,"ytRendererstamperBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],qr.prototype,"data",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],qr.prototype,"answerExpanded",void 0);qr=_.x([_.f({is:"ytd-handles-claiming-faq-renderer",disableElementRegistration:!0})],qr);
_.C(qr,"ytd-handles-claiming-faq-renderer",function(){if(wZP!==void 0)return wZP;var S=document.createElement("template");_.h(S,'\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');
S.content.insertBefore(_.t().content.cloneNode(!0),S.content.firstChild);return wZP=S},{mode:1});var lfm;var AR=function(){return _.w.apply(this,arguments)||this};
_.r(AR,_.w);_.x([_.g(),_.E("design:type",Object)],AR.prototype,"data",void 0);AR=_.x([_.f({is:"ytd-handles-claiming-faq-section-renderer",disableElementRegistration:!0})],AR);
_.C(AR,"ytd-handles-claiming-faq-section-renderer",function(){if(lfm!==void 0)return lfm;var S=document.createElement("template");_.h(S,'\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');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);return lfm=S},{mode:1});var afc;var tR=function(){var S=_.w.apply(this,arguments)||this;S.rightSquigglyDark="https://www.gstatic.com/youtube/img/handles/handles_squiggle_1_dark_v1.svg";S.rightSquigglyLight="https://www.gstatic.com/youtube/img/handles/handles_squiggle_1_light_v1.svg";S.leftSquigglyDark="https://www.gstatic.com/youtube/img/handles/handles_squiggle_2_dark_v1.svg";S.leftSquigglyLight="https://www.gstatic.com/youtube/img/handles/handles_squiggle_2_light_v1.svg";S.leftSquiggly=S.leftSquigglyLight;S.rightSquiggly=S.rightSquigglyLight;
S.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};S.actionButtonOverride={style:"mono",type:"filled",size:"XL"};return S};
_.r(tR,_.w);_.M=tR.prototype;_.M.updateLeftSquigglyStyle=function(){_.Ms(this.hostElement,{"--yt-left-squiggly-background":"url("+this.leftSquiggly+")"})};
_.M.updateRightSquigglyStyle=function(){_.Ms(this.hostElement,{"--yt-right-squiggly-background":"url("+this.rightSquiggly+")"})};
_.M.ready=function(){var S=document.documentElement.hasAttribute("dark");this.onDarkModeToggledAction(S)};
_.M.onDarkModeToggledAction=function(S){S!==this.isDarkTheme&&(this.set("isDarkTheme",S),S?(this.leftSquiggly=this.leftSquigglyDark,this.rightSquiggly=this.rightSquigglyDark):(this.leftSquiggly=this.leftSquigglyLight,this.rightSquiggly=this.rightSquigglyLight))};
_.M.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[actionButtonOverride]]"}}}}}};
tR.prototype.updateRightSquigglyStyle=tR.prototype.updateRightSquigglyStyle;tR.prototype.updateLeftSquigglyStyle=tR.prototype.updateLeftSquigglyStyle;_.x([_.g(),_.E("design:type",Object)],tR.prototype,"data",void 0);_.x([_.g({value:!1}),_.E("design:type",Boolean)],tR.prototype,"isDarkTheme",void 0);_.x([_.g(),_.E("design:type",String)],tR.prototype,"leftSquiggly",void 0);_.x([_.g(),_.E("design:type",String)],tR.prototype,"rightSquiggly",void 0);
_.x([_.T4("leftSquiggly"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],tR.prototype,"updateLeftSquigglyStyle",null);_.x([_.T4("rightSquiggly"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],tR.prototype,"updateRightSquigglyStyle",null);_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],tR.prototype,"ytRendererBehavior",void 0);
_.x([_.F(_.qH.YtRendererstamperBehavior),_.E("design:type",Object)],tR.prototype,"ytRendererstamperBehavior",void 0);_.x([_.F(_.Aj.YtActionHandlerBehavior),_.E("design:type",Object)],tR.prototype,"ytActionHandlerBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],tR.prototype,"actionButtonOverride",void 0);tR=_.x([_.f({is:"ytd-handles-claiming-header-renderer",disableElementRegistration:!0})],tR);
_.C(tR,"ytd-handles-claiming-header-renderer",function(){if(afc!==void 0)return afc;var S=document.createElement("template");_.h(S,'\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');
S.content.insertBefore(_.t().content.cloneNode(!0),S.content.firstChild);return afc=S},{mode:1});var ffQ;var cy=function(){var S=_.w.apply(this,arguments)||this;S.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};S.image0DarkSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_4_dark.svg";S.image0LightSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_4_light.svg";S.image1DarkSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_6_dark.svg";S.image1LightSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_6_light.svg";
S.image3DarkSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_5_dark.svg";S.image3LightSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_5_light_v2.svg";S.image0SquigglyBackground=S.image0LightSquigglyBackground;S.image1SquigglyBackground=S.image1LightSquigglyBackground;S.image3SquigglyBackground=S.image3LightSquigglyBackground;return S};
_.r(cy,_.w);_.M=cy.prototype;_.M.ready=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark");this.updateTitleAndImages()};
_.M.onDataChanged=function(){this.updateTitleAndImages()};
_.M.onThemeChanged=function(){this.updateTitleAndImages()};
_.M.onDarkModeToggledAction=function(S){S!==this.isDarkTheme&&(this.isDarkTheme=S)};
_.M.updateImage0SquigglyBackground=function(){_.Ms(this.hostElement,{"--yt-image0-squiggly-background":"url("+this.image0SquigglyBackground+")"})};
_.M.updateImage1SquigglyBackground=function(){_.Ms(this.hostElement,{"--yt-image1-squiggly-background":"url("+this.image1SquigglyBackground+")"})};
_.M.updateImage3SquigglyBackground=function(){_.Ms(this.hostElement,{"--yt-image3-squiggly-background":"url("+this.image3SquigglyBackground+")"})};
_.M.updateTitleAndImages=function(){var S,p;((S=this.data)==null?void 0:(p=S.titleImages)==null?void 0:p.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))};
cy.prototype.updateImage3SquigglyBackground=cy.prototype.updateImage3SquigglyBackground;cy.prototype.updateImage1SquigglyBackground=cy.prototype.updateImage1SquigglyBackground;cy.prototype.updateImage0SquigglyBackground=cy.prototype.updateImage0SquigglyBackground;cy.prototype.onThemeChanged=cy.prototype.onThemeChanged;cy.prototype.onDataChanged=cy.prototype.onDataChanged;_.x([_.F(_.Aj.YtActionHandlerBehavior),_.E("design:type",Object)],cy.prototype,"ytActionHandlerBehavior",void 0);
_.x([_.g({reflectToAttribute:!0,value:!1}),_.E("design:type",Boolean)],cy.prototype,"isDarkTheme",void 0);_.x([_.g(),_.E("design:type",Object)],cy.prototype,"data",void 0);_.x([_.g(),_.E("design:type",Object)],cy.prototype,"title0",void 0);_.x([_.g(),_.E("design:type",Object)],cy.prototype,"title1",void 0);_.x([_.g(),_.E("design:type",Object)],cy.prototype,"title2",void 0);_.x([_.g(),_.E("design:type",Object)],cy.prototype,"title3",void 0);
_.x([_.g(),_.E("design:type",Object)],cy.prototype,"title4",void 0);_.x([_.g(),_.E("design:type",Object)],cy.prototype,"image0",void 0);_.x([_.g(),_.E("design:type",Object)],cy.prototype,"image1",void 0);_.x([_.g(),_.E("design:type",Object)],cy.prototype,"image2",void 0);_.x([_.g(),_.E("design:type",Object)],cy.prototype,"image3",void 0);_.x([_.g(),_.E("design:type",Object)],cy.prototype,"image4",void 0);_.x([_.g(),_.E("design:type",String)],cy.prototype,"image0SquigglyBackground",void 0);
_.x([_.g(),_.E("design:type",String)],cy.prototype,"image1SquigglyBackground",void 0);_.x([_.g(),_.E("design:type",String)],cy.prototype,"image3SquigglyBackground",void 0);_.x([_.T4("data"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],cy.prototype,"onDataChanged",null);_.x([_.T4("isDarkTheme"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],cy.prototype,"onThemeChanged",null);
_.x([_.T4("image0SquigglyBackground"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],cy.prototype,"updateImage0SquigglyBackground",null);_.x([_.T4("image1SquigglyBackground"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],cy.prototype,"updateImage1SquigglyBackground",null);
_.x([_.T4("image3SquigglyBackground"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],cy.prototype,"updateImage3SquigglyBackground",null);cy=_.x([_.f({is:"ytd-handles-claiming-title-images-section-renderer",disableElementRegistration:!0})],cy);
_.C(cy,"ytd-handles-claiming-title-images-section-renderer",function(){if(ffQ!==void 0)return ffQ;var S=document.createElement("template");_.h(S,'\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');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);return ffQ=S},{mode:1});var Cyw;var Sx=function(){var S=_.w.apply(this,arguments)||this;S.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return S};
_.r(Sx,_.w);Sx.prototype.ready=function(){var S=document.documentElement.hasAttribute("dark");this.onDarkModeToggledAction(S)};
Sx.prototype.onDarkModeToggledAction=function(S){S!==this.isDarkTheme&&this.set("isDarkTheme",S)};
Sx.prototype.onCopyButtonClick=function(){var S=this,p,U,Y;return _.T(function(L){return(p=S.data)!=null&&p.primaryChannelUrl?_.k(L,navigator.clipboard.writeText(((U=S.data)==null?0:U.encodedChannelUrl)?S.data.encodedChannelUrl:"https://"+_.mA((Y=S.data)==null?void 0:Y.primaryChannelUrl)),0):L.jumpTo(0)})};
_.x([_.g(),_.E("design:type",Object)],Sx.prototype,"data",void 0);_.x([_.F(_.eL.YtComponentBehavior),_.E("design:type",Object)],Sx.prototype,"ytComponentBehavior",void 0);_.x([_.g({reflectToAttribute:!0,value:!1}),_.E("design:type",Boolean)],Sx.prototype,"isDarkTheme",void 0);_.x([_.F(_.Aj.YtActionHandlerBehavior),_.E("design:type",Object)],Sx.prototype,"ytActionHandlerBehavior",void 0);Sx=_.x([_.f({is:"ytd-handles-claiming-update-social-renderer",disableElementRegistration:!0})],Sx);
_.C(Sx,"ytd-handles-claiming-update-social-renderer",function(){if(Cyw!==void 0)return Cyw;var S=document.createElement("template");_.h(S,'\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');
S.content.insertBefore(_.t().content.cloneNode(!0),S.content.firstChild);return Cyw=S},{mode:1});var xie;var pI=function(){var S=_.w.apply(this,arguments)||this;S.JSC$13915_squigglyBackgroundDark="https://www.gstatic.com/youtube/img/handles/handles_curl_section_illustration_dark_v1.svg";S.JSC$13915_squigglyBackgroundLight="https://www.gstatic.com/youtube/img/handles/handles_curl_section_illustration_light_v1.svg";S.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};S.squigglyBackground=S.JSC$13915_squigglyBackgroundLight;return S};
_.r(pI,_.w);pI.prototype.updateSquigglyBackgroundStyle=function(){_.Ms(this.hostElement,{"--yt-squiggly-background":"url("+this.squigglyBackground+")"})};
pI.prototype.ready=function(){var S=document.documentElement.hasAttribute("dark");this.set("isDarkTheme",S);this.squigglyBackground=S?this.JSC$13915_squigglyBackgroundDark:this.JSC$13915_squigglyBackgroundLight};
pI.prototype.onDarkModeToggledAction=function(S){S!==this.isDarkTheme&&(this.set("isDarkTheme",S),this.squigglyBackground=S?this.JSC$13915_squigglyBackgroundDark:this.JSC$13915_squigglyBackgroundLight)};
pI.prototype.updateSquigglyBackgroundStyle=pI.prototype.updateSquigglyBackgroundStyle;_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],pI.prototype,"ytRendererBehavior",void 0);_.x([_.F(_.qH.YtRendererstamperBehavior),_.E("design:type",Object)],pI.prototype,"ytRendererstamperBehavior",void 0);_.x([_.F(_.Aj.YtActionHandlerBehavior),_.E("design:type",Object)],pI.prototype,"ytActionHandlerBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],pI.prototype,"data",void 0);
_.x([_.g({reflectToAttribute:!0,value:!1}),_.E("design:type",Boolean)],pI.prototype,"isDarkTheme",void 0);_.x([_.g(),_.E("design:type",String)],pI.prototype,"squigglyBackground",void 0);_.x([_.T4("squigglyBackground"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],pI.prototype,"updateSquigglyBackgroundStyle",null);pI=_.x([_.f({is:"ytd-handles-claiming-vanity-info-renderer",disableElementRegistration:!0})],pI);
_.C(pI,"ytd-handles-claiming-vanity-info-renderer",function(){if(xie!==void 0)return xie;var S=document.createElement("template");_.h(S,'\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');
S.content.insertBefore(_.t().content.cloneNode(!0),S.content.firstChild);return xie=S},{mode:1});var Epe;var UM=function(){var S=_.w.apply(this,arguments)||this;S.JSC$13918_squigglyBackgroundDark="https://www.gstatic.com/youtube/img/handles/handles_squiggle_3_dark.svg";S.JSC$13918_squigglyBackgroundLight="https://www.gstatic.com/youtube/img/handles/handles_squiggle_3_light.svg";S.squigglyBackground=S.JSC$13918_squigglyBackgroundLight;S.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return S};
_.r(UM,_.w);_.M=UM.prototype;_.M.ready=function(){var S=document.documentElement.hasAttribute("dark");this.onDarkModeToggledAction(S)};
_.M.onDarkModeToggledAction=function(S){S!==this.isDarkTheme&&(this.set("isDarkTheme",S),this.squigglyBackground=S?this.JSC$13918_squigglyBackgroundDark:this.JSC$13918_squigglyBackgroundLight)};
_.M.updateSquigglyBackgroundStyle=function(){_.Ms(this.hostElement,{"--yt-squiggly-background":"url("+this.squigglyBackground+")"})};
_.M.onDataChanged=function(){this.data&&this.setupVideoPlayer()};
_.M.detached=function(){this.stop()};
_.M.stop=function(){this.playerElement.stop()};
_.M.setupVideoPlayer=function(){var S=this,p,U;return _.T(function(Y){p=S.data.videoId;U="http://i1.ytimg.com/vi/"+p+"/maxresdefault.jpg";S.playerElement.loadVideoWithPlayerVars({video_id:p,iurlhq:U});_.OV(Y)})};
UM.prototype.onDataChanged=UM.prototype.onDataChanged;UM.prototype.updateSquigglyBackgroundStyle=UM.prototype.updateSquigglyBackgroundStyle;_.x([_.g({value:!1}),_.E("design:type",Boolean)],UM.prototype,"isDarkTheme",void 0);_.x([_.g(),_.E("design:type",String)],UM.prototype,"squigglyBackground",void 0);_.x([_.O2("#player"),_.E("design:type",Object)],UM.prototype,"playerElement",void 0);_.x([_.g(),_.E("design:type",Object)],UM.prototype,"data",void 0);
_.x([_.F(_.Aj.YtActionHandlerBehavior),_.E("design:type",Object)],UM.prototype,"ytActionHandlerBehavior",void 0);_.x([_.T4("squigglyBackground"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],UM.prototype,"updateSquigglyBackgroundStyle",null);_.x([_.T4("data"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],UM.prototype,"onDataChanged",null);
UM=_.x([_.f({is:"ytd-handles-claiming-video-item-renderer",disableElementRegistration:!0})],UM);
_.C(UM,"ytd-handles-claiming-video-item-renderer",function(){if(Epe!==void 0)return Epe;var S=document.createElement("template");_.h(S,'\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');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);return Epe=S},{mode:1});var mid;var LI=function(){var S=_.HT.apply(this,arguments)||this;S.dragging=!1;S.dragMouseStart=0;S.dragOffsetStart=0;S.containerWidthDiff=0;S.boundPrevClick=function(){S.set("offset",Ye(S,S.offset-(S.scrollDistance||320)))};
S.boundNextClick=function(){S.set("offset",Ye(S,S.offset+(S.scrollDistance||320)))};
S.boundScrollContainerMouseDown=function(p){S.dragMouseStart=p.clientX;S.dragOffsetStart=S.offset;S.dragging=!0};
S.boundScrollContainerDrag=function(p){S.dragging&&S.set("offset",Ye(S,S.dragOffsetStart-(p.clientX-S.dragMouseStart)))};
S.boundMouseUp=function(){S.onMouseUp()};
S.boundWheelScroll=function(p){var U=0;Math.abs(p.deltaX)>=Math.abs(p.deltaY)?U=p.deltaX:p.shiftKey&&(U=p.deltaY);U!==0&&(S.offset+=U,p.stopPropagation(),p.preventDefault())};
S.boundChipCloudChipScrollIntoView=function(p){(p=p.detail)&&S.scrollChipIntoView(p)};
return S};
_.r(LI,_.HT);LI.prototype.attached=function(){var S=_.tB(this.hostElement).querySelector("#scroll-container");S.addEventListener("wheel",this.boundWheelScroll);S.addEventListener("yt-chip-cloud-chip-scroll-into-view",this.boundChipCloudChipScrollIntoView);S.style.touchAction="pan-y";S.addEventListener("pointerdown",this.boundScrollContainerMouseDown);S.addEventListener("pointermove",this.boundScrollContainerDrag);window.addEventListener("pointerup",this.boundMouseUp)};
LI.prototype.detached=function(){var S=_.tB(this.hostElement).querySelector("#scroll-container");S.removeEventListener("wheel",this.boundWheelScroll);S.removeEventListener("yt-chip-cloud-chip-scroll-into-view",this.boundChipCloudChipScrollIntoView);S.removeEventListener("pointerdown",this.boundScrollContainerMouseDown);S.removeEventListener("pointermove",this.boundScrollContainerDrag);window.removeEventListener("pointerup",this.boundMouseUp)};
LI.prototype.reset=function(){this.set("offset",0);_.oH(this,this.setContainerWidthDiff);Mk(this)};
var Ye=function(S,p){return Math.min(Math.max(p,0),S.containerWidthDiff)};
LI.prototype.onMouseUp=function(){this.dragging=!1};
LI.prototype.transformContainer=function(){this.offset=Ye(this,this.offset);var S=_.g7("HTML_DIR")==="rtl"?"":"-";_.tB(this.hostElement).querySelector("#chips").style.transform="translateX("+S+this.offset+"px)";Mk(this)};
var Mk=function(S){_.oH(S,S.setButtonsState)};
LI.prototype.setButtonsState=function(){(this.atEnd=this.offset>=this.containerWidthDiff)&&!this.atStart&&(this.offset=Ye(this,this.offset));this.atStart=this.offset<=0};
LI.prototype.setContainerWidthDiff=function(){var S=_.tB(this.hostElement).querySelector("#scroll-container"),p=_.tB(this.hostElement).querySelector("#chips");S&&p&&(this.containerWidthDiff=p.clientWidth-S.clientWidth)};
LI.prototype.scrollChipIntoView=function(S){var p=_.tB(this.hostElement).querySelector("#scroll-container");if(p){var U=this.atStart?0:106,Y=this.atEnd?0:106;S.offsetLeft<this.offset+U?this.offset=Ye(this,S.offsetLeft-U):S.offsetLeft+S.clientWidth>this.offset+p.clientWidth-Y&&(this.offset=Ye(this,S.offsetLeft+S.clientWidth+Y-p.clientWidth))}};
LI.prototype.transformContainer=LI.prototype.transformContainer;_.x([_.g({value:0}),_.E("design:type",Number)],LI.prototype,"offset",void 0);_.x([_.g({value:!0,reflectToAttribute:!0}),_.E("design:type",Boolean)],LI.prototype,"atStart",void 0);_.x([_.g({value:!1,reflectToAttribute:!0}),_.E("design:type",Boolean)],LI.prototype,"atEnd",void 0);_.x([_.g(),_.E("design:type",Number)],LI.prototype,"scrollDistance",void 0);
_.x([_.T4("offset"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],LI.prototype,"transformContainer",null);LI=_.x([_.Dl()],LI);var opQ;var vpH;var NLc=_.$k(function(S){var p=S.data;S=_.d(_.kj(!1,void 0,"icHmSe"));var U=S.next().value,Y=S.next().value;S={};S=_.VD("ytChipShapeChip",function(){a:switch(p==null?void 0:p().state){case 0:var I="ytChipShapeActive";break a;case 1:I="ytChipShapeDisabled";break a;default:I="ytChipShapeInactive"}return I},function(){var I=p().type===1||p().type===2,V=p();
return I||V!=null&&V.startIcon?V==null||!V.startIcon||V!=null&&V.text?I?"ytChipShapeEndIconPadding":(V==null?0:V.startIcon)?"ytChipShapeStartIconPadding":"":"ytChipShapeOnlyIconPadding":"ytChipShapeOnlyTextPadding"},(S.ytChipShapeFocused=function(){var I;
return U()&&((I=p())==null?void 0:I.state)!==1},S));
var L=function(I){if((p==null?void 0:p().state)!==1){var V,W;(W=(V=p()).onTap)==null||W.call(V,I)}};
return _.H("chip-shape",{class:"ytChipShapeHost","on:focusin":_.kL(function(){var I=_.tW().resolve(_.AW(_.SN));if(I){Y(I.isKeyBoardInUse());var V,W;(W=(V=p()).onFocusIn)==null||W.call(V)}return!1}),
"on:focusout":_.kL(function(){Y(!1);return!1})},_.H($it,{shouldWrapInButton:function(){return p().type!==2},
selected:function(){return p().state===0},
onClick:L,isDropdown:function(){return p().type===1},
accessibilityLabel:function(){return p().accessibilityLabel}},_.H("div",{class:S},_.H(_.n,{cond:function(){return p().startIcon},
then:function(){return _.H(_.QD,{icon:function(){var I;return(I=p())==null?void 0:I.startIcon},
className:function(){return p().text?"ytChipShapeIconStart":"ytChipShapeIconOnly"}})}}),function(){return p().text},_.H(idc,{shape:p,
onClick:L}))))},"zb");
NLc.idomCompat=!0;var $it=_.$k(function(S){var p=_.kL(function(U){S.onClick(U);return!1});
return _.H(_.n,{cond:S.shouldWrapInButton,then:function(){return _.H("button",{class:"ytChipShapeButtonReset","on:click":p,role:function(){return S.isDropdown()?"combobox":"tab"},
"aria-label":S.accessibilityLabel,"aria-selected":S.selected},S.children)},
else:function(){return S.children}})},"Ab"),idc=_.$k(function(S){var p=S.shape;
var U=S.onClick;var Y=_.kL(function(L){U(L);return!1});
return _.H(_.r7,null,_.H(_.bb,{when:function(){return p().type===1}},function(){return _.H(_.QD,{icon:"EXPAND",
className:"ytChipShapeIconEnd"})}),_.H(_.bb,{when:function(){return p().type===2}},function(){return _.H("button",{class:"ytChipShapeButtonReset",
"on:click":Y},_.H(_.QD,{icon:"CLOSE",className:"ytChipShapeIconEnd"}))}),_.H(_.bb,{when:function(){return p().type===0}},function(){return _.H(_.U0,null)}))},"Bb");_.qm(NLc,"chip-shape",{props:{data:_.x2}});var IJ=function(){var S=_.w.apply(this,arguments)||this;S.disableDeselectEvent=!1;S.modern=_.y("web_modern_typography");S.useChipShape=_.y("web_chip_shape_defrag");S.actionMap={"yt-select-chip-command":"onSelectChipCommand","yt-filter-chip-transform-command":"onFilterChipTransformCommand"};return S};
_.r(IJ,_.w);_.M=IJ.prototype;_.M.beforeRegister=function(){_.y("web_chip_shape_defrag")||(this.ironA11yKeysBehavior.keyBindings={"enter:keydown":"onTap","space:keydown":"onTap"})};
_.M.attached=function(){this.useChipShape||(this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","tab"),this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","0"))};
_.M.onSelectChipCommand=function(S){if(!this.selected&&this.data&&(S=_.b(S,nCl),S.targetId&&S.targetId===this.data.targetId))this.onTap()};
_.M.onFilterChipTransformCommand=function(S){if(!this.selected&&this.data){var p;(S=(p=_.b(S,K6I))==null?void 0:p.chipUniqueId)&&S===this.data.uniqueId&&(this.scrollChipIntoView(),this.onTap())}};
_.M.dataChanged=function(){var S=this;_.oH(this,function(){S.data&&S.data.isSelected&&!S.selected&&(S.scrollChipIntoView(),S.onTap())})};
_.M.selectionChanged=function(){this.useChipShape||this.hostElement.setAttribute("aria-selected",""+this.selected)};
_.M.computeChipStyle=function(S){return S!=null?S:"STYLE_DEFAULT"};
_.M.onTap=function(){!this.data||this.selected&&this.disableDeselectEvent||(this.ytRendererBehavior.logExplicitClick(this.data),this.selected||!this.data.navigationEndpoint&&!this.isGnomeChip?_.St(this.hostElement,"yt-chip-cloud-chip-deselect-action"):(_.St(this.hostElement,"yt-chip-cloud-chip-select-action",[this.hostElement,this.isGnomeChip]),this.data&&this.data.navigationEndpoint&&this.ytComponentBehavior.resolveCommand(this.data.navigationEndpoint)))};
_.M.onFocus=function(){var S=_.tW().resolve(_.AW(_.SN));S&&S.isKeyBoardInUse()&&this.scrollChipIntoView()};
_.M.scrollChipIntoView=function(){_.cv(this.hostElement,"yt-chip-cloud-chip-scroll-into-view",this.hostElement)};
_.$u.Object.defineProperties(IJ.prototype,{hasIcon:{configurable:!0,enumerable:!0,get:function(){var S;return!((S=this.data)==null||!S.icon)}},
isGnomeChip:{configurable:!0,enumerable:!0,get:function(){var S;return((S=this.data)==null?void 0:S.uniqueId)==="gnome_chip"}},
chipShapeData:{configurable:!0,enumerable:!0,get:function(){return G$w({data:this.data,onTap:this.onTap.bind(this),isSelected:this.selected,onFocusIn:this.onFocus.bind(this)})}}});
IJ.prototype.onFocus=IJ.prototype.onFocus;IJ.prototype.onTap=IJ.prototype.onTap;IJ.prototype.selectionChanged=IJ.prototype.selectionChanged;IJ.prototype.dataChanged=IJ.prototype.dataChanged;_.x([_.F(_.Qm),_.E("design:type",Object)],IJ.prototype,"ironButtonState",void 0);_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],IJ.prototype,"ytRendererBehavior",void 0);_.x([_.F(_.Aj.YtActionHandlerBehavior),_.E("design:type",Object)],IJ.prototype,"ytActionHandlerBehavior",void 0);
_.x([_.F(_.eL.YtComponentBehavior),_.E("design:type",Object)],IJ.prototype,"ytComponentBehavior",void 0);_.x([_.F(_.H$),_.E("design:type",Object)],IJ.prototype,"ironA11yKeysBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],IJ.prototype,"disableDeselectEvent",void 0);_.x([_.g(),_.E("design:type",Object)],IJ.prototype,"data",void 0);_.x([_.g({reflectToAttribute:!0}),_.e("data.icon"),_.E("design:type",Boolean),_.E("design:paramtypes",[])],IJ.prototype,"hasIcon",null);
_.x([_.g({reflectToAttribute:!0}),_.e("data.uniqueId"),_.E("design:type",Boolean),_.E("design:paramtypes",[])],IJ.prototype,"isGnomeChip",null);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],IJ.prototype,"modern",void 0);_.x([_.g({computed:"computeChipStyle(data.style.styleType)",reflectToAttribute:!0}),_.E("design:type",String)],IJ.prototype,"chipStyle",void 0);_.x([_.g({value:!1,reflectToAttribute:!0}),_.E("design:type",Boolean)],IJ.prototype,"selected",void 0);
_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],IJ.prototype,"useChipShape",void 0);_.x([_.e("data","selected"),_.E("design:type",Object),_.E("design:paramtypes",[])],IJ.prototype,"chipShapeData",null);_.x([_.T4("data"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],IJ.prototype,"dataChanged",null);_.x([_.T4("selected"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],IJ.prototype,"selectionChanged",null);
_.x([_.Vd("tap"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],IJ.prototype,"onTap",null);_.x([_.Vd("focus"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],IJ.prototype,"onFocus",null);IJ=_.x([_.FB({is:"yt-chip-cloud-chip-renderer",disableElementRegistration:!0})],IJ);
_.C(IJ,"yt-chip-cloud-chip-renderer",function(){if(vpH===void 0){var S=document.createElement("template");_.h(S,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-chip-cloud-chip-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.sections.yt_chip_cloud_chip_renderer.yt.chip.cloud.chip.renderer.css.js--\x3e<div id="chip-shape-container" class="style-scope yt-chip-cloud-chip-renderer">\n    <chip-shape data="[[chipShapeData]]" class="style-scope yt-chip-cloud-chip-renderer"></chip-shape>\n</div>\n<div id="chip-container" class="style-scope yt-chip-cloud-chip-renderer">\n    <yt-icon class="leading-icon style-scope yt-chip-cloud-chip-renderer" hidden="[[!hasIcon]]" icon="[[data.icon.iconType]]">\n    </yt-icon>\n    <yt-formatted-string id="text" ellipsis-truncate="" text="[[data.text]]" class="style-scope yt-chip-cloud-chip-renderer">\n    </yt-formatted-string>\n</div>\n');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);var p=S.content,U=p.insertBefore;opQ===void 0&&(opQ=document.createElement("template"));var Y=opQ;U.call(p,Y.content.cloneNode(!0),S.content.firstChild);vpH=S}S=vpH;return S},{mode:2});var dJ=function(){var S=_.w.apply(this,arguments)||this;S.isDarkTheme=!1;S.notSticky=!1;S.transparentBackground=!1;S.shouldHide=!1;S.disableSticky=!1;S.fluidWidth=!1;S.isClipList=!1;S.defaultChipIndex=0;S.isPlaylist=!1;S.playlistVotingAnimationEnabled=_.y("web_enable_voting_animation");S.toolbarHeight=0;S.actionMap={"yt-chip-cloud-chip-select-action":"handleChipCloudChipSelectAction","yt-chip-cloud-chip-deselect-action":"handleChipCloudChipDeselectAction","yt-dark-mode-toggled-action":"onDarkModeToggledAction"};
return S};
_.r(dJ,_.w);_.M=dJ.prototype;
_.M.configureRendererStamper=function(){return{"data.contents":{id:"chips",mapping:{chipCloudChipRenderer:{component:"yt-chip-cloud-chip-renderer",properties:{disableDeselectEvent:"[[isDisableDeselectEvent]]"}}}},sortFilterHeaderRendererData:{id:"filter",mapping:{sortFilterHeaderRenderer:{component:"ytd-sort-filter-header-renderer",properties:{isClipList:"[[isClipList]]",isPlaylistPageWithFilters:"[[isPlaylistPage]]"}}}},"data.previousButton":{id:"left-arrow-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[boundPrevClick]]"},
params:{iconSize:16}}}},"data.nextButton":{id:"right-arrow-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[boundNextClick]]"},params:{iconSize:16}}}}}};
_.M.attached=function(){var S=this;document.addEventListener("scroll",_.d9(this,this.updateChipBarWidthAndTop));this.isDarkTheme=document.documentElement.hasAttribute("dark");var p;this.toolbarHeight=((p=document.querySelector("ytd-masthead"))==null?void 0:p.clientHeight)||0;window.IntersectionObserver&&(this.intersectionObserver=new IntersectionObserver(function(U){S.handleIntersect(U)},{rootMargin:"-"+(this.toolbarHeight+1)+"px 0px 0px 0px",
threshold:[1]}),this.intersectionObserver.observe(this.hostElement));window.ResizeObserver&&(this.resizeObserver=new ResizeObserver(function(){S.updateChipBarWidthAndTop()}),this.resizeObserver.observe(this.hostElement))};
_.M.detached=function(){var S;(S=this.intersectionObserver)==null||S.disconnect();var p;(p=this.resizeObserver)==null||p.disconnect();document.removeEventListener("scroll",_.d9(this,this.updateChipBarWidthAndTop))};
_.M.dataChanged=function(){var S=this,p,U,Y;((Y=_.b((p=this.data)==null?void 0:(U=p.contents)==null?void 0:U[0],CaQ))==null?void 0:Y.uniqueId)==="gnome_chip"&&(this.defaultChipIndex=1);this.updating=!0;var L=this.findSelectedChipIndex();this.selectedIndex!==L&&(this.selectedIndex=-1);_.oH(this,function(){S.selectedIndex=L;S.updating=!1;S.ytScrollableChipCloudBehavior.reset()})};
_.M.findSelectedChipIndex=function(){var S;if((S=this.data)==null||!S.contents)return 0;S=this.data.contents;for(var p=0;p<S.length;p++){var U=void 0;if((U=_.b(S[p],CaQ))==null?0:U.isSelected)return p}return 0};
_.M.computeStyle=function(S){return S};
_.M.handleChipCloudChipSelectAction=function(S){S=this.JSC$13937_chipsSelector.indexOf(S);S>-1&&this.JSC$13937_chipsSelector.selectIndex(S)};
_.M.handleChipCloudChipDeselectAction=function(){if(_.y("kevlar_chips_check_index_zero_killswitch")||![this.defaultChipIndex,-1].includes(this.selectedIndex)){var S,p,U,Y=(U=_.b((S=this.data)==null?void 0:(p=S.contents)==null?void 0:p[0],CaQ))==null?void 0:U.navigationEndpoint;Y&&_.St(this.hostElement,"yt-browse-section-list-reload-endpoint",[Y]);this.JSC$13937_chipsSelector.selectIndex(this.defaultChipIndex);this.ytScrollableChipCloudBehavior.reset()}};
_.M.onGuideIsExpandedChanged=function(){var S=this.ytScrollableChipCloudBehavior;_.oH(S,S.setContainerWidthDiff);Mk(this.ytScrollableChipCloudBehavior)};
_.M.onResize=function(){var S=this.ytScrollableChipCloudBehavior;_.oH(S,S.setContainerWidthDiff);Mk(this.ytScrollableChipCloudBehavior)};
_.M.onDarkModeToggledAction=function(S){this.isDarkTheme=S};
_.M.updateChipBarWidthAndTop=function(){this.updateDimensions();this.notSticky=this.isChannelPageGrid||this.disableSticky||this.hostElement.getBoundingClientRect().y>this.toolbarHeight};
_.M.handleIntersect=function(S){this.notSticky=this.isChannelPageGrid||this.disableSticky||S[0].intersectionRatio===1};
_.M.updateDimensions=function(){var S=this.ytRendererBehavior.parentComponent;if(S){var p,U=(p=S.headerElement)!=null?p:S;_.Ms(this.hostElement,{"--ytd-rich-grid-chips-bar-width":U.clientWidth+"px","--ytd-rich-grid-chips-bar-top":this.toolbarHeight+"px"})}};
_.M.updateSelectedIndexFromBinding=function(S){this.selectedIndex=S.detail.value};
_.M.isPlaylistPageChanged=function(){if(this.isPlaylistPage){var S;(S=this.sortFilterHeaderRendererElement)==null||S.setAttribute("is-playlist-page-with-filters","")}};
_.M.dispatchChipBarIsSticky=function(){this.ytdReduxBehavior.dispatch(_.S4({type:"SET_CHIP_BAR_IS_STICKY",payload:!this.notSticky}))};
_.$u.Object.defineProperties(dJ.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 S,p,U=(S=this.data)==null?void 0:(p=S.contents)==null?void 0:p.find(function(Y){return _.b(Y,vrE)});
return{sortFilterHeaderRenderer:_.b(U,vrE)}}}});
dJ.prototype.dispatchChipBarIsSticky=dJ.prototype.dispatchChipBarIsSticky;dJ.prototype.isPlaylistPageChanged=dJ.prototype.isPlaylistPageChanged;dJ.prototype.updateChipBarWidthAndTop=dJ.prototype.updateChipBarWidthAndTop;dJ.prototype.onResize=dJ.prototype.onResize;dJ.prototype.onGuideIsExpandedChanged=dJ.prototype.onGuideIsExpandedChanged;dJ.prototype.dataChanged=dJ.prototype.dataChanged;_.x([_.F(_.qH.YtRendererstamperBehavior),_.E("design:type",Object)],dJ.prototype,"ytRendererstamperBehavior",void 0);
_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],dJ.prototype,"ytRendererBehavior",void 0);_.x([_.F(_.Aj.YtActionHandlerBehavior),_.E("design:type",Object)],dJ.prototype,"actionHandlerBehavior",void 0);_.x([_.F(_.ji),_.E("design:type",Object)],dJ.prototype,"ironResizableBehavior",void 0);_.x([_.F(),_.E("design:type",LI)],dJ.prototype,"ytScrollableChipCloudBehavior",void 0);_.x([_.F(_.Xh),_.E("design:type",Object)],dJ.prototype,"ytdReduxBehavior",void 0);
_.x([_.g(),_.E("design:type",Object)],dJ.prototype,"data",void 0);_.x([_.g({value:0}),_.E("design:type",Number)],dJ.prototype,"selectedIndex",void 0);_.x([_.g({value:320}),_.E("design:type",Number)],dJ.prototype,"scrollDistance",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],dJ.prototype,"isDarkTheme",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],dJ.prototype,"notSticky",void 0);
_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],dJ.prototype,"transparentBackground",void 0);_.x([_.g({reflectToAttribute:!0,computed:"computeStyle(data.styleType)"}),_.E("design:type",String)],dJ.prototype,"componentStyle",void 0);_.x([_.g({selector:_.OQu}),_.E("design:type",Boolean)],dJ.prototype,"guideIsExpanded",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],dJ.prototype,"shouldHide",void 0);
_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],dJ.prototype,"disableSticky",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],dJ.prototype,"fluidWidth",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],dJ.prototype,"isClipList",void 0);_.x([_.g(),_.E("design:type",Object)],dJ.prototype,"defaultChipIndex",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],dJ.prototype,"isPlaylist",void 0);
_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Boolean)],dJ.prototype,"playlistVotingAnimationEnabled",void 0);_.x([_.O2("#chips"),_.E("design:type",Object)],dJ.prototype,"JSC$13937_chipsSelector",void 0);_.x([_.O2("ytd-sort-filter-header-renderer"),_.E("design:type",HTMLElement)],dJ.prototype,"sortFilterHeaderRendererElement",void 0);_.x([_.g({value:!1,reflectToAttribute:!0}),_.E("design:type",Boolean)],dJ.prototype,"updating",void 0);
_.x([_.z4("data"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],dJ.prototype,"dataChanged",null);_.x([_.T4("guideIsExpanded"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],dJ.prototype,"onGuideIsExpandedChanged",null);_.x([_.Vd("iron-resize"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],dJ.prototype,"onResize",null);
_.x([_.z4("isChannelPageGrid","disableSticky","data"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],dJ.prototype,"updateChipBarWidthAndTop",null);_.x([_.e("componentStyle"),_.E("design:type",Boolean),_.E("design:paramtypes",[])],dJ.prototype,"isChannelPageGrid",null);_.x([_.e("componentStyle"),_.E("design:type",Boolean),_.E("design:paramtypes",[])],dJ.prototype,"isHashtagLandingPage",null);
_.x([_.T4("isPlaylistPage"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],dJ.prototype,"isPlaylistPageChanged",null);_.x([_.e("componentStyle"),_.E("design:type",Boolean),_.E("design:paramtypes",[])],dJ.prototype,"isPlaylistPage",null);_.x([_.e("componentStyle"),_.E("design:type",Boolean),_.E("design:paramtypes",[])],dJ.prototype,"isDisableDeselectEvent",null);
_.x([_.e("data"),_.E("design:type",Object),_.E("design:paramtypes",[])],dJ.prototype,"sortFilterHeaderRendererData",null);_.x([_.g({reflectToAttribute:!0,selector:_.J1k}),_.E("design:type",String)],dJ.prototype,"frostedGlassMode",void 0);_.x([_.T4("notSticky"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],dJ.prototype,"dispatchChipBarIsSticky",null);dJ=_.x([_.f({is:"ytd-feed-filter-chip-bar-renderer",disableElementRegistration:!0})],dJ);
_.C(dJ,"ytd-feed-filter-chip-bar-renderer",function(){if(mid!==void 0)return mid;var S=document.createElement("template");_.h(S,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-feed-filter-chip-bar-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="chips-wrapper" class="style-scope ytd-feed-filter-chip-bar-renderer">\n  <div id="chips-content" class="style-scope ytd-feed-filter-chip-bar-renderer">\n    <div id="left-arrow" class="style-scope ytd-feed-filter-chip-bar-renderer">\n      <div id="left-arrow-button" class="style-scope ytd-feed-filter-chip-bar-renderer"></div>\n    </div>\n    <div id="filter" class="style-scope ytd-feed-filter-chip-bar-renderer"></div>\n    <div id="scroll-container" class="style-scope ytd-feed-filter-chip-bar-renderer">\n      <iron-selector id="chips" activate-event="" role="tablist" selected="[[selectedIndex]]" selected-attribute="selected" on-selected-changed="updateSelectedIndexFromBinding" class="style-scope ytd-feed-filter-chip-bar-renderer">\n      </iron-selector>\n    </div>\n    <div id="right-arrow" class="style-scope ytd-feed-filter-chip-bar-renderer">\n      <div id="right-arrow-button" class="style-scope ytd-feed-filter-chip-bar-renderer"></div>\n    </div>\n  </div>\n</div>\n');
S.content.insertBefore(_.t().content.cloneNode(!0),S.content.firstChild);return mid=S},{mode:1});var BLw;var qfE=_.$k(function(S){var p=S.data;var U=S.buttonIndex;var Y=S.selectedIndex;var L=S.onSelect;var I=function(){return U()===Y()},V=function(){var W,O;
return(O=(W=p().text)==null?void 0:W.content)!=null?O:""};
S=_.LHN();return _.H("yt-toggleable-image-button-view-model",{class:function(){var W={};W=(W["toggleable-image-button-view-model-wiz"]=!0,W[""]=!0,W["toggleable-image-button-view-model-wiz__semi-transparent"]=Y()!==-1&&!I(),W);return _.W7(W)},
tabindex:0,"aria-label":V,"aria-pressed":I,role:"button","on:keydown":S,"on:click":_.kL(function(){L(p().onSubmitCommand);return!1})},_.H(_.n,{cond:function(){return p().logo},
then:function(W){return _.H(_.of,{data:W,className:function(){var O={};O=(O["toggleable-image-button-view-model-wiz__image"]=!0,O["toggleable-image-button-view-model-wiz__circular-radius"]=!(!p().backgroundColor||!p().backgroundColorDarkMode),O["toggleable-image-button-view-model-wiz__gradient-ring"]=!!(I()&&p().backgroundColor&&p().backgroundColorDarkMode),O);return _.W7(O)},
alt:V,useWidth:!1,style:function(){if(I()&&p().backgroundColor&&p().backgroundColorDarkMode){var O=gz(Number(p().backgroundColorDarkMode),"1");var D=gz(Number(p().backgroundColor),"1");O="background: linear-gradient(180deg,"+O+","+D+") border-box;"}else O="";return O}})}}),_.H(_.yD,{model:{borderRadius:"16px"}}),_.H("p",{class:function(){var W={};
W=(W["toggleable-image-button-view-model-wiz__label"]=!0,W["toggleable-image-button-view-model-wiz__bold-text"]=I(),W);return _.W7(W)}},_.H(_.i6,{text:function(){return p().text}})))},"Cb");
qfE.idomCompat=!0;var tKe=_.$k(function(S){var p=S.data;S=_.d(_.kj({index:-1,command:{}},void 0,"Zcqtsb"));var U=S.next().value,Y=S.next().value;return _.H("yt-nudge-form-view-model",{class:"nudge-form-view-model-wiz"},_.H("div",{class:"nudge-form-view-model-wiz__form-options"},_.H(_.yP,{data:function(){return p().inputFields},
allowIncompleteMapping:!0},{toggleableImageButtonViewModel:function(L,I){return _.H(qfE,{data:L.data,buttonIndex:I,selectedIndex:function(){return U().index},
onSelect:function(V){Y({index:I(),command:V})}})}})),_.H(_.i6,{text:function(){return p().subtitle},
className:"nudge-form-view-model-wiz__subtitle"}),_.H("div",{class:"nudge-form-view-model-wiz__submit"},_.H(_.yP,{data:function(){return p().submitButton}},{buttonViewModel:function(L){return _.H(Aoc,{data:L.data,
isDisabled:function(){return U().index===-1},
onClick:function(){_.wx(U().command)}})}})))},"Db");
tKe.idomCompat=!0;var Aoc=_.$k(function(S){var p=_.nS(function(){return Object.assign({},S.data(),{state:S.isDisabled()?"BUTTON_VIEW_MODEL_STATE_DISABLED":"BUTTON_VIEW_MODEL_STATE_ACTIVE"})},void 0,"rgD0re");
return _.H(_.PG,{data:p,onClick:S.onClick})},"Eb");_.qm(tKe,"yt-nudge-form-view-model",{props:{data:_.x2}});var Vb=function(){var S=_.w.apply(this,arguments)||this;S.roundedContainer=!0;S.buttonUpdate=_.y("web_modern_buttons");S.isDarkMode=!1;S.actionMap={"yt-dark-mode-toggled-action":"handleDarkModeToggledAction"};return S};
_.r(Vb,_.w);_.M=Vb.prototype;_.M.computeNudgeStyle=function(S){return S?"modernized-nudge":""};
_.M.handleDarkModeToggledAction=function(S){this.isDarkMode=S};
_.M.attached=function(){this.handleDarkModeToggledAction(document.documentElement.hasAttribute("dark"))};
_.M.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"}}}};
_.M.computeIsHorizontalButtons=function(S){return S?!!S.applyModernizedStyle&&!!S.enableHorizontalButtons&&!!S.secondaryButton:!1};
_.$u.Object.defineProperties(Vb.prototype,{isHidden:{configurable:!0,enumerable:!0,get:function(){return!!this.ytdDismissibleItemBehavior.isHideEnclosingAction}},
trimStyle:{configurable:!0,enumerable:!0,get:function(){var S;return((S=this.data)==null?void 0:S.trimStyle)==="FEED_NUDGE_TRIM_STYLE_NO_TRIM"?"no-trim":"gradient-trim-1"}},
backgroundStyle:{configurable:!0,enumerable:!0,get:function(){var S,p;return(p=(S=this.data)==null?void 0:S.backgroundStyle)!=null?p:"FEED_NUDGE_BACKGROUND_STYLE_UNKNOWN"}},
contentsLocation:{configurable:!0,enumerable:!0,get:function(){var S,p;return(p=(S=this.data)==null?void 0:S.contentsLocation)!=null?p:"FEED_NUDGE_CONTENTS_LOCATION_UNKNOWN"}},
noShadow:{configurable:!0,enumerable:!0,get:function(){var S;return!((S=this.data)==null||!S.disableDropShadow)}},
noIcon:{configurable:!0,enumerable:!0,get:function(){var S;return!((S=this.data)==null?0:S.lightIconImage)}}});
_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],Vb.prototype,"ytRendererBehavior",void 0);_.x([_.F(_.qH.YtRendererstamperBehavior),_.E("design:type",Object)],Vb.prototype,"ytRendererstamperBehavior",void 0);_.x([_.F(_.Zh),_.E("design:type",Object)],Vb.prototype,"ytdDismissibleItemBehavior",void 0);_.x([_.F(_.Aj.YtActionHandlerBehavior),_.E("design:type",Object)],Vb.prototype,"actionHandlerBehavior",void 0);
_.x([_.g({reflectToAttribute:!0}),_.e("isHideEnclosingAction"),_.E("design:type",Boolean),_.E("design:paramtypes",[])],Vb.prototype,"isHidden",null);_.x([_.g(),_.E("design:type",Object)],Vb.prototype,"data",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],Vb.prototype,"roundedContainer",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],Vb.prototype,"buttonUpdate",void 0);
_.x([_.g({reflectToAttribute:!0,computed:"computeNudgeStyle(data.applyModernizedStyle)"}),_.E("design:type",String)],Vb.prototype,"nudgeStyle",void 0);_.x([_.g({reflectToAttribute:!0}),_.e("data.trimStyle"),_.E("design:type",String),_.E("design:paramtypes",[])],Vb.prototype,"trimStyle",null);_.x([_.g({reflectToAttribute:!0}),_.e("data.backgroundStyle"),_.E("design:type",String),_.E("design:paramtypes",[])],Vb.prototype,"backgroundStyle",null);
_.x([_.g({reflectToAttribute:!0}),_.e("data.contentsLocation"),_.E("design:type",String),_.E("design:paramtypes",[])],Vb.prototype,"contentsLocation",null);_.x([_.g({reflectToAttribute:!0}),_.e("data.disableDropShadow"),_.E("design:type",Boolean),_.E("design:paramtypes",[])],Vb.prototype,"noShadow",null);_.x([_.g({reflectToAttribute:!0}),_.e("data.lightIconImage"),_.E("design:type",Boolean),_.E("design:paramtypes",[])],Vb.prototype,"noIcon",null);
_.x([_.g({reflectToAttribute:!0,computed:"computeIsHorizontalButtons(data)"}),_.E("design:type",Boolean)],Vb.prototype,"isHorizontalButtons",void 0);_.x([_.g({reflectToAttribute:!0,value:!1}),_.E("design:type",Object)],Vb.prototype,"isDarkMode",void 0);Vb=_.x([_.f({is:"ytd-feed-nudge-renderer",disableElementRegistration:!0})],Vb);
_.C(Vb,"ytd-feed-nudge-renderer",function(){if(BLw!==void 0)return BLw;var S=document.createElement("template");_.h(S,'\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');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);return BLw=S},{mode:_.UW("kevlar_poly_si_batch_j028")?1:2});var cow;var SZl;var TK=function(){var S=_.w.apply(this,arguments)||this;S.collapsed=!1;S.actionMap={"ytd-slimline-survey-rating-select-action":"handleRatingSelect","ytd-slimline-survey-show-action":"handleShowSurvey"};return S};
_.r(TK,_.w);TK.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"}}}};
TK.prototype.handleRatingSelect=function(){var S;((S=this.data)==null?0:S.onSelectRating)&&this.ytComponentBehavior.resolveCommand(this.data.onSelectRating);this.collapsed=!0};
TK.prototype.handleShowSurvey=function(){this.collapsed=!1};
_.x([_.F(_.qH.YtRendererstamperBehavior),_.E("design:type",Object)],TK.prototype,"ytRendererstamperBehavior",void 0);_.x([_.F(_.Aj.YtActionHandlerBehavior),_.E("design:type",Object)],TK.prototype,"actionHandlerBehavior",void 0);_.x([_.F(_.eL.YtComponentBehavior),_.E("design:type",Object)],TK.prototype,"ytComponentBehavior",void 0);_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],TK.prototype,"ytRendererBehavior",void 0);
_.x([_.F(_.Zh),_.E("design:type",Object)],TK.prototype,"ytdDismissibleItemBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],TK.prototype,"data",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],TK.prototype,"collapsed",void 0);TK=_.x([_.f({is:"ytd-slimline-survey-renderer",disableElementRegistration:!0})],TK);
_.C(TK,"ytd-slimline-survey-renderer",function(){if(SZl!==void 0)return SZl;var S=document.createElement("template");_.h(S,'\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');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);return SZl=S},{mode:1});var pbe;var Wx=function(){return _.w.apply(this,arguments)||this};
_.r(Wx,_.w);Wx.prototype.maybeGetBackgroundColor=function(S){return this.isDarkMode?S.section2Color:S.section3Color};
Wx.prototype.colorPaletteChanged=function(){var S=this.isDarkMode?this.darkColorPalette:this.lightColorPalette;S&&(S==null?0:S.secondaryTitleColor)&&this.maybeGetBackgroundColor(S)?(this.hostElement.style.backgroundColor=_.s1(this.maybeGetBackgroundColor(S)),this.hostElement.style.color=_.s1(S.secondaryTitleColor)):(this.hostElement.style.backgroundColor="",this.hostElement.style.color="")};
Wx.prototype.colorPaletteChanged=Wx.prototype.colorPaletteChanged;_.x([_.F(_.Xh),_.E("design:type",Object)],Wx.prototype,"ytdReduxBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],Wx.prototype,"data",void 0);_.x([_.g({selector:function(S){return S.ui.darkModeIsEnabled}}),
_.E("design:type",Boolean)],Wx.prototype,"isDarkMode",void 0);_.x([_.g(),_.E("design:type",Object)],Wx.prototype,"lightColorPalette",void 0);_.x([_.g(),_.E("design:type",Object)],Wx.prototype,"darkColorPalette",void 0);_.x([_.T4("darkColorPalette","lightColorPalette","data","isDarkMode"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],Wx.prototype,"colorPaletteChanged",null);Wx=_.x([_.f({disableElementRegistration:!0,is:"ytd-endorsement-header-renderer"})],Wx);
_.C(Wx,"ytd-endorsement-header-renderer",function(){if(pbe!==void 0)return pbe;var S=document.createElement("template");_.h(S,'\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');
S.content.insertBefore(_.t().content.cloneNode(!0),S.content.firstChild);return pbe=S},{mode:1});_.qm(_.jH,"yt-decorated-avatar-view-model",{props:{data:_.x2,className:_.x2}});var OM=function(){var S=_.w.apply(this,arguments)||this;S.fullHeight=_.y("web_rich_grid_media_full_height");S.showChannelAvatar=!0;S.hasPlaylistThumbnail=!1;S.avatarStackViewModelOverrides={layoutType:"AVATAR_STACK_LAYOUT_CLUSTER"};S.prepareThumbnailForPageTransition=function(){_.y("web_thumbnail_to_watch_transition")&&(S.thumbnail.style.viewTransitionName="thumbnail-to-watch",S.cleanupThumbnailAfterPageTransition(S.thumbnail))};
return S};
_.r(OM,_.w);_.M=OM.prototype;
_.M.configureRendererStamper=function(){return{lazyLoadMenu:da,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"}}}};
_.M.attached=function(){this.updateInlinePreviewHoverListeners()};
_.M.detached=function(){this.clearInlinePreviewHoverListeners()};
_.M.shouldLazyLoadMenu=function(){var S=this.entitySelectorType==="RICH_ITEM_ENTITY_SELECTOR_TYPE_VIDEO"||this.entitySelectorType==="RICH_ITEM_ENTITY_SELECTOR_TYPE_PLAYLIST";return!_.y("kevlar_modern_downloads_page")||!S};
_.M.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$13963_inlinePreviewHoverListener=EK({mediaRenderer:this,lockupElement:this.JSC$13963_dismissibleMedia,thumbnailElement:this.thumbnail,videoPreviewOpts:this.getVideoPreviewOpts()})};
_.M.getVideoPreviewOpts=function(){var S={},p;if((p=this.data)==null?0:p.multipleInlinePlaybackEndpoint)S=qTE;this.isRadio&&(S=Bfm);return _.y("web_thumbnail_to_watch_transition")?Object.assign({},S,{onNavigateToWatchCallback:this.prepareThumbnailForPageTransition}):S};
_.M.clearInlinePreviewHoverListeners=function(){var S;(S=this.JSC$13963_inlinePreviewHoverListener)==null||cI(S)};
_.M.getOwner=function(){var S,p,U;return((S=this.data)==null?void 0:(p=S.channelThumbnailSupportedRenderers)==null?void 0:p.channelThumbnailWithLinkRenderer)||_.b((U=this.data)==null?void 0:U.showProviderChannelThumbnail,spQ)};
_.M.updateLockupSize=function(){var S;((S=this.getOwner())==null?0:S.thumbnail)?this.showChannelAvatar=!0:this.showChannelAvatar=!1};
_.M.getFeedbackEndpoint=function(S){if(_.b(S,_.Rp))return S;var p,U;S=(U=(p=_.b(S,_.I2))==null?void 0:p.commands)!=null?U:[];p=_.d(S);for(U=p.next();!U.done;U=p.next())if(U=this.getFeedbackEndpoint(U.value))return U;return null};
_.M.computeNavigationEndpoint=function(S){return Ere(S==null?void 0:S.navigationEndpoint)};
_.M.handleReloadDownloadsInfo=function(){if(this.entityDrivenState){var S=Object.assign({},this.data,this.entityDrivenState);JSON.stringify(S)!==JSON.stringify(this.data)&&this.set("data",S)}};
_.M.onDataChanged=function(){var S=this,p=this.getOwner();if(p){this.set("data.owner",p);var U,Y,L,I,V,W=((U=this.data)==null?void 0:(Y=U.shortBylineText)==null?void 0:(L=Y.runs)==null?void 0:(I=L[0])==null?void 0:I.text)||((V=p.name)==null?void 0:V.simpleText);this.set("data.owner.title",W)}var O,D,z,Q,J,K;p=((O=this.data)==null?void 0:(D=O.thumbnailRenderer)==null?void 0:D.playlistVideoThumbnailRenderer)||((z=this.data)==null?void 0:(Q=z.thumbnailRenderer)==null?void 0:Q.playlistCustomThumbnailRenderer)||
((J=this.data)==null?void 0:(K=J.thumbnailRenderer)==null?void 0:K.showCustomThumbnailRenderer);var G;((G=this.data)==null?0:G.thumbnail)||!p||this.set("data.thumbnail",p.thumbnail);this.updateInlinePreviewHoverListeners();requestAnimationFrame(function(){S.updateLockupSize()});
var X;if(O=((X=this.data)==null?void 0:X.trackingParams)||"")this.dismissedContentId=this.ytdDismissibleItemBehavior.setAndGetDismissedContentId(O);var Z;((Z=this.dismissActionToReplayEntity)==null?0:Z.command)&&this.ytdDismissibleItemBehavior.replayDismissAction(this.dismissActionToReplayEntity.command)};
_.M.onHiddenChanged=function(){this.updateLockupSize()};
_.M.onIsDismissedChanged=function(){if(this.ytdDismissibleItemBehavior.isDismissed)_.St(this.hostElement,"yt-terminate-video-preview-action");else{var S;(S=this.videoTitleLink)==null||S.focus()}};
_.M.metadataColorChanged=function(){var S;if(this.metadataColor&&((S=this.videoTitle)==null?0:S.style))this.videoTitle.style.color=_.s1(this.metadataColor);else{var p,U;!this.metadataColor&&((p=this.videoTitle)==null?0:(U=p.style)==null?0:U.color)&&(this.videoTitle.style.color="")}};
_.M.onDetailsClick=function(S){var p=this.computedNavigationEndpoint;p&&(_.Eo(_.E1(S),this.hostElement,["A","BUTTON"])||_.cv(this.hostElement,"yt-navigate",{endpoint:p}))};
_.M.cleanupThumbnailAfterPageTransition=function(S){_.oME(document,"yt-page-type-changed",function(){S.style.viewTransitionName=""})};
_.M.onRendererTap=function(){this.prepareThumbnailForPageTransition();var S,p,U=((S=this.data)==null?void 0:S.serviceEndpoint)||this.getFeedbackEndpoint((p=this.data)==null?void 0:p.navigationEndpoint);U&&_.b(U,_.Rp)&&this.ytComponentBehavior.resolveCommand(U)};
_.M.onMouseDown=function(S){var p=S.target,U=this.computedNavigationEndpoint,Y;S=p.href||((Y=_.b(U==null?void 0:U.commandMetadata,_.NU))==null?void 0:Y.url);Y=p.data||U;S&&Y&&$1u(S,Y)};
_.M.computeVideoTitleText=function(){var S;if((S=this.data)==null?0:S.title)return Object.assign({},this.data.title,{accessibility:void 0})};
_.M.computeHasPlaylistThumbnail=function(S){var p,U,Y,L,I;if((((p=S.thumbnailRenderer)==null?0:p.playlistVideoThumbnailRenderer)||((U=S.thumbnailRenderer)==null?0:U.playlistCustomThumbnailRenderer)||((Y=S.thumbnailRenderer)==null?0:Y.showCustomThumbnailRenderer)||((L=S.thumbnailRenderer)==null?0:L.playlistVideoThumbnailRenderer)||((I=S.thumbnailRenderer)==null?0:I.playlistCustomThumbnailRenderer))&&S.thumbnailOverlays)for(p=0;p<S.thumbnailOverlays.length;p++)if(U=void 0,(U=S.thumbnailOverlays[p])==
null?0:U.thumbnailOverlayBottomPanelRenderer)return!0;return!1};
_.$u.Object.defineProperties(OM.prototype,{typographyBumpV2:{configurable:!0,enumerable:!0,get:function(){return this.typographyBump&&_.y("web_enable_typography_bump_v2")}},
lazyLoadMenu:{configurable:!0,enumerable:!0,get:function(){if(this.shouldLazyLoadMenu()){var S;return(S=this.data)==null?void 0:S.menu}}},
immediateLoadMenu:{configurable:!0,enumerable:!0,get:function(){if(!this.shouldLazyLoadMenu()){var S;return(S=this.data)==null?void 0:S.menu}}},
isHovered:{configurable:!0,enumerable:!0,get:function(){var S;return!((S=this.JSC$13963_inlinePreviewHoverListener)==null?0:Rm(S))&&!!this.ytdLockupBehavior.lockupIsHovered}},
stackThumbnailSize:{configurable:!0,enumerable:!0,get:function(){return _.WB(location.pathname)==="home"?"large":"medium"}},
useAvatar:{configurable:!0,enumerable:!0,get:function(){var S;return!((S=this.data)==null||!S.avatar)}},
mediaId:{configurable:!0,enumerable:!0,get:function(){var S,p;return((S=this.data)==null?void 0:S.videoId)||((p=this.data)==null?void 0:p.playlistId)||""}}});
OM.prototype.onMouseDown=OM.prototype.onMouseDown;OM.prototype.metadataColorChanged=OM.prototype.metadataColorChanged;OM.prototype.onIsDismissedChanged=OM.prototype.onIsDismissedChanged;OM.prototype.onHiddenChanged=OM.prototype.onHiddenChanged;OM.prototype.onDataChanged=OM.prototype.onDataChanged;OM.prototype.handleReloadDownloadsInfo=OM.prototype.handleReloadDownloadsInfo;_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],OM.prototype,"ytRendererBehavior",void 0);
_.x([_.F(_.qH.YtRendererstamperBehavior),_.E("design:type",Object)],OM.prototype,"ytRendererstamperBehavior",void 0);_.x([_.F(_.eL.YtComponentBehavior),_.E("design:type",Object)],OM.prototype,"ytComponentBehavior",void 0);_.x([_.F(_.Zh),_.E("design:type",Object)],OM.prototype,"ytdDismissibleItemBehavior",void 0);_.x([_.F(_.ak),_.E("design:type",Object)],OM.prototype,"ytdLockupBehavior",void 0);_.x([_.F(_.Xh),_.E("design:type",Object)],OM.prototype,"ytdReduxBehavior",void 0);
_.x([_.g(),_.E("design:type",Object)],OM.prototype,"data",void 0);_.x([_.g(),_.E("design:type",String)],OM.prototype,"entitySelectorType",void 0);_.x([_.g(),_.E("design:type",Boolean)],OM.prototype,"noEndpoints",void 0);_.x([_.g({value:!1}),_.E("design:type",Boolean)],OM.prototype,"isRadio",void 0);_.x([_.g({reflectToAttribute:!0,selector:_.hZ}),_.E("design:type",Boolean)],OM.prototype,"miniMode",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],OM.prototype,"fullHeight",void 0);
_.x([_.g(),_.E("design:type",Boolean)],OM.prototype,"showDarkVideoMetadata",void 0);_.x([_.g(),_.E("design:type",Boolean)],OM.prototype,"showLightVideoMetadata",void 0);_.x([_.g(),_.E("design:type",Number)],OM.prototype,"metadataColor",void 0);_.x([_.g(),_.E("design:type",Object)],OM.prototype,"showChannelAvatar",void 0);_.x([_.g(),_.E("design:type",Boolean)],OM.prototype,"hidden",void 0);_.x([_.g({value:!0}),_.E("design:type",Boolean)],OM.prototype,"showYtInteraction",void 0);
_.x([_.g(),_.E("design:type",String)],OM.prototype,"dismissedContentId",void 0);_.x([_.g({selectorArgs:["dismissedContentId"],selector:evr}),_.E("design:type",Object)],OM.prototype,"dismissActionToReplayEntity",void 0);
_.x([_.g({selectorArgs:["entitySelectorType","mediaId"],selector:function(S,p,U){if(_.y("kevlar_modern_downloads_page")&&U&&p&&p!=="RICH_ITEM_ENTITY_SELECTOR_TYPE_UNSPECIFIED")switch(p){case "RICH_ITEM_ENTITY_SELECTOR_TYPE_VIDEO":var Y=jgE(S,U);if(Y){p=_.Z4(S,U);var L=e4(S,U),I=gSX(S,U);S=gt(S,U);var V=WtN(Y,p,L,I);L=V.shortViewCountText;var W=V.publishedTimeText;V=V.badges;var O=S>0;I=V8q(Y,p,I,S);Y=_.zf(p)||p==="TRANSFER_STATE_FAILED"||p==="TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH"||!D4(Y.policyEntity)?
void 0:Caw(U,S,Y.videoEntity.lengthSeconds);p==="TRANSFER_STATE_PAUSED_BY_USER"&&U&&!_.y("dl_resume_click_killswitch")&&(Y={offlineVideoEndpoint:{videoId:U,action:"ACTION_RESUME"}});U={shortViewCountText:L,publishedTimeText:W,badges:V,isWatched:O,navigationEndpoint:Y,thumbnailOverlays:I}}else U=void 0;return U;case "RICH_ITEM_ENTITY_SELECTOR_TYPE_PLAYLIST":a:{if(p=r1N(S,U))if(Y=_.sc(S,U),I=_.G1q(S,U),Y!=="TRANSFER_STATE_UNKNOWN"){U=T_u(p,Y,I,U,nSN(S));break a}U=void 0}return U;default:_.eP(new _.y7("Error: entitySelectorType defined but not matched in selector.",
S,p))}}}),
_.E("design:type",Object)],OM.prototype,"entityDrivenState",void 0);_.x([_.g({computed:"computeVideoTitleText(data)"}),_.E("design:type",Object)],OM.prototype,"videoTitleText",void 0);_.x([_.g({computed:"computeHasPlaylistThumbnail(data)"}),_.E("design:type",Object)],OM.prototype,"hasPlaylistThumbnail",void 0);_.x([_.g({computed:"computeNavigationEndpoint(data)"}),_.E("design:type",Object)],OM.prototype,"computedNavigationEndpoint",void 0);
_.x([_.g({reflectToAttribute:!0,value:!1}),_.E("design:type",Boolean)],OM.prototype,"typographyBump",void 0);_.x([_.g({reflectToAttribute:!0}),_.e("typographyBump"),_.E("design:type",Boolean),_.E("design:paramtypes",[])],OM.prototype,"typographyBumpV2",null);_.x([_.O2("#video-title"),_.E("design:type",HTMLElement)],OM.prototype,"videoTitle",void 0);_.x([_.O2("#video-title-link"),_.E("design:type",HTMLElement)],OM.prototype,"videoTitleLink",void 0);
_.x([_.O2("#thumbnail"),_.E("design:type",HTMLElement)],OM.prototype,"thumbnail",void 0);_.x([_.O2("#dismissible"),_.E("design:type",HTMLElement)],OM.prototype,"JSC$13963_dismissibleMedia",void 0);_.x([_.e("data.menu"),_.E("design:type",Object),_.E("design:paramtypes",[])],OM.prototype,"lazyLoadMenu",null);_.x([_.e("data.menu"),_.E("design:type",Object),_.E("design:paramtypes",[])],OM.prototype,"immediateLoadMenu",null);
_.x([_.z4("entityDrivenState"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],OM.prototype,"handleReloadDownloadsInfo",null);_.x([_.z4("data"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],OM.prototype,"onDataChanged",null);_.x([_.z4("hidden"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],OM.prototype,"onHiddenChanged",null);
_.x([_.T4("isDismissed"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],OM.prototype,"onIsDismissedChanged",null);_.x([_.T4("metadataColor"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],OM.prototype,"metadataColorChanged",null);_.x([_.Vd("mousedown"),_.E("design:type",Function),_.E("design:paramtypes",[CustomEvent]),_.E("design:returntype")],OM.prototype,"onMouseDown",null);
_.x([_.e("lockupIsHovered"),_.E("design:type",Boolean),_.E("design:paramtypes",[])],OM.prototype,"isHovered",null);_.x([_.e("data"),_.E("design:type",Boolean),_.E("design:paramtypes",[])],OM.prototype,"useAvatar",null);_.x([_.e("data","entitySelectorType"),_.E("design:type",String),_.E("design:paramtypes",[])],OM.prototype,"mediaId",null);OM=_.x([_.f({is:"ytd-rich-grid-media",disableElementRegistration:!0})],OM);
var U$Q=_.pz()(OM,"ytd-rich-grid-media",function(){if(cow!==void 0)return cow;var S=document.createElement("template");_.h(S,'\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>');
S.content.insertBefore(_.t().content.cloneNode(!0),S.content.firstChild);return cow=S},{mode:_.UW("kevlar_poly_si_batch_j072")?1:2});var YZd;var ke=function(){var S=_.w.apply(this,arguments)||this;S.removeMaxWidth=!0;S.insetMetadata=!1;return S};
_.r(ke,_.w);_.M=ke.prototype;_.M.configureRendererStamper=function(){return{innerMenu:da,outerMenu:Object.assign({},da,{id:"menu-outer"}),dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.M.onDataChanged=function(){var S,p=((S=this.data)==null?void 0:S.trackingParams)||"";p&&(this.dismissedContentId=this.ytdDismissibleItemBehavior.setAndGetDismissedContentId(p));var U;((U=this.dismissActionToReplayEntity)==null?0:U.command)&&this.ytdDismissibleItemBehavior.replayDismissAction(this.dismissActionToReplayEntity.command);this.updateInlinePreviewHoverListeners()};
_.M.attached=function(){this.updateInlinePreviewHoverListeners()};
_.M.detached=function(){this.clearInlinePreviewHoverListeners()};
_.M.updateInlinePreviewHoverListeners=function(){if(this.isShort||this.isSlimShort)this.clearInlinePreviewHoverListeners(),this.JSC$13968_inlinePreviewHoverListener=EK({mediaRenderer:this,lockupElement:this.JSC$13968_dismissibleMedia,thumbnailElement:this.thumbnail,videoPreviewOpts:ACQ})};
_.M.clearInlinePreviewHoverListeners=function(){var S;(S=this.JSC$13968_inlinePreviewHoverListener)==null||cI(S)};
_.M.onRendererTap=function(){var S,p,U=(S=this.data)==null?void 0:(p=S.serviceEndpoints)==null?void 0:p[0];_.b(U,_.Rp)&&this.componentBehavior.resolveCommand(U)};
_.M.onDetailsClick=function(S){var p,U=(p=this.data)==null?void 0:p.navigationEndpoint;U&&(_.Eo(_.E1(S),this.hostElement,["A","BUTTON"])||this.componentBehavior.resolveCommand(U))};
_.M.onShow=function(){var S=this.data;S.onFirstVisibleCommand&&(this.componentBehavior.resolveCommand(S.onFirstVisibleCommand),delete S.onFirstVisibleCommand)};
_.$u.Object.defineProperties(ke.prototype,{thumbnailObjectFit:{configurable:!0,enumerable:!0,get:function(){return this.insetMetadata?"COVER":void 0}},
innerMenu:{configurable:!0,enumerable:!0,get:function(){var S;return this.insetMetadata?void 0:(S=this.data)==null?void 0:S.menu}},
outerMenu:{configurable:!0,enumerable:!0,get:function(){var S;return this.insetMetadata?(S=this.data)==null?void 0:S.menu:void 0}},
shortsBadges:{configurable:!0,enumerable:!0,get:function(){var S=this.data;if(S!=null&&S.badge&&(S=_.b(S.badge,ext))){var p,U,Y;return[{metadataBadgeRenderer:{label:((p=S.label)==null?void 0:(U=p.runs)==null?void 0:U[0].text)||((Y=S.label)==null?void 0:Y.simpleText),style:"BADGE_STYLE_TYPE_SHORTS_PLAYER"}}]}}},
isShort:{configurable:!0,enumerable:!0,get:function(){var S;return((S=this.data)==null?void 0:S.videoType)==="REEL_VIDEO_TYPE_VIDEO"}},
isSlimShort:{configurable:!0,enumerable:!0,get:function(){var S;return((S=this.data)==null?void 0:S.style)==="REEL_ITEM_STYLE_SHORTS_SLIM"}},
computedTitle:{configurable:!0,enumerable:!0,get:function(){if(this.isShort){var S=this.data;return Object.assign({},S.headline,{accessibility:S.accessibility})}return this.data.title}},
computedAccessibilityLabel:{configurable:!0,enumerable:!0,get:function(){var S,p,U;return this.isSlimShort?(S=this.computedTitle)==null?void 0:(p=S.accessibility)==null?void 0:(U=p.accessibilityData)==null?void 0:U.label:void 0}},
isHovered:{configurable:!0,enumerable:!0,get:function(){var S;return!((S=this.JSC$13968_inlinePreviewHoverListener)==null?0:Rm(S))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
ke.prototype.onDataChanged=ke.prototype.onDataChanged;_.x([_.F(_.eL.YtComponentBehavior),_.E("design:type",Object)],ke.prototype,"componentBehavior",void 0);_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],ke.prototype,"ytRendererBehavior",void 0);_.x([_.F(_.ak),_.E("design:type",Object)],ke.prototype,"ytdLockupBehavior",void 0);_.x([_.F(_.qH.YtRendererstamperBehavior),_.E("design:type",Object)],ke.prototype,"ytRendererstamperBehavior",void 0);
_.x([_.F(_.Zh),_.E("design:type",Object)],ke.prototype,"ytdDismissibleItemBehavior",void 0);_.x([_.F(_.Xh),_.E("design:type",Object)],ke.prototype,"ytdReduxBehavior",void 0);_.x([_.O2("ytd-thumbnail"),_.E("design:type",HTMLElement)],ke.prototype,"thumbnail",void 0);_.x([_.O2("#dismissible"),_.E("design:type",HTMLElement)],ke.prototype,"JSC$13968_dismissibleMedia",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],ke.prototype,"removeMaxWidth",void 0);
_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],ke.prototype,"insetMetadata",void 0);_.x([_.g(),_.E("design:type",String)],ke.prototype,"dismissedContentId",void 0);_.x([_.g({selectorArgs:["dismissedContentId"],selector:evr}),_.E("design:type",Object)],ke.prototype,"dismissActionToReplayEntity",void 0);_.x([_.e("insetMetadata"),_.E("design:type",Object),_.E("design:paramtypes",[])],ke.prototype,"thumbnailObjectFit",null);
_.x([_.e("data","insetMetadata"),_.E("design:type",Object),_.E("design:paramtypes",[])],ke.prototype,"innerMenu",null);_.x([_.e("data","insetMetadata"),_.E("design:type",Object),_.E("design:paramtypes",[])],ke.prototype,"outerMenu",null);_.x([_.g(),_.E("design:type",Object)],ke.prototype,"data",void 0);_.x([_.g({reflectToAttribute:!0,selector:_.hZ}),_.E("design:type",Boolean)],ke.prototype,"miniMode",void 0);
_.x([_.T4("data"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],ke.prototype,"onDataChanged",null);_.x([_.e("data"),_.E("design:type",Object),_.E("design:paramtypes",[])],ke.prototype,"shortsBadges",null);_.x([_.e("data"),_.g({reflectToAttribute:!0}),_.E("design:type",Boolean),_.E("design:paramtypes",[])],ke.prototype,"isShort",null);
_.x([_.e("data"),_.g({reflectToAttribute:!0}),_.E("design:type",Boolean),_.E("design:paramtypes",[])],ke.prototype,"isSlimShort",null);_.x([_.e("data","isShort"),_.E("design:type",Object),_.E("design:paramtypes",[])],ke.prototype,"computedTitle",null);_.x([_.e("isSlimShort","computedTitle"),_.E("design:type",Object),_.E("design:paramtypes",[])],ke.prototype,"computedAccessibilityLabel",null);
_.x([_.e("lockupIsHovered"),_.E("design:type",Boolean),_.E("design:paramtypes",[])],ke.prototype,"isHovered",null);ke=_.x([_.f({is:"ytd-rich-grid-slim-media",disableElementRegistration:!0})],ke);
_.C(ke,"ytd-rich-grid-slim-media",function(){if(YZd!==void 0)return YZd;var S=document.createElement("template");_.h(S,'\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');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);return YZd=S},{mode:_.UW("kevlar_poly_si_batch_j063")?1:2});var LGd;var MhP;var Hx=function(){var S=_.w.apply(this,arguments)||this;S.darkerDarkTheme=_.y("web_darker_dark_theme");return S};
_.r(Hx,_.w);Hx.prototype.computeIcon=function(S){return S&&S.iconType?"yt-sys-icons:"+S.iconType.toLowerCase():""};
Hx.prototype.onMouseEnter=function(){this.isHovered=!0};
Hx.prototype.onMouseLeave=function(){this.isHovered=!1};
_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],Hx.prototype,"ytRendererBehavior",void 0);_.x([_.F(_.qH.YtRendererstamperBehavior),_.E("design:type",Object)],Hx.prototype,"ytRendererstamperBehavior",void 0);_.x([_.F(_.eL.YtComponentBehavior),_.E("design:type",Object)],Hx.prototype,"ytComponentBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],Hx.prototype,"data",void 0);_.x([_.g({value:!1}),_.E("design:type",Boolean)],Hx.prototype,"isHovered",void 0);
_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],Hx.prototype,"darkerDarkTheme",void 0);Hx=_.x([_.f({is:"ytd-expand-on-hover-card-renderer",disableElementRegistration:!0})],Hx);
_.C(Hx,"ytd-expand-on-hover-card-renderer",function(){if(MhP!==void 0)return MhP;var S=document.createElement("template");_.h(S,'\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>');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);return MhP=S},{mode:1});var IQd,d$E=function(){if(IQd!==void 0)return IQd;var S=document.createElement("template");_.h(S,'\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>');
S.content.insertBefore(_.t().content.cloneNode(!0),S.content.firstChild);return IQd=S};_.Ry("itemSectionRenderer","channelRenderer","ytd-channel-renderer");var DB=function(){var S=_.w.apply(this,arguments)||this;S.compactStyle=!1;S.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return S};
_.r(DB,_.w);_.M=DB.prototype;_.M.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
_.M.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"}}}};
_.M.computeHideDot=function(S){return!(S&&S.subscriberCountText&&S.videoCountText)||this.compactStyle};
_.M.hasDualButtons=function(S){return S&&S.purchaseButton&&S.subscribeButton};
_.M.backgroundColorChanged=function(){if(this.data!==void 0){var S=this.data.backgroundColor;this.isDarkTheme&&(S=this.data.backgroundColorDarkTheme);this.hostElement.style.backgroundColor=S!=null?_.s1(S):"transparent"}};
_.M.onDarkModeToggledAction=function(S){this.isDarkTheme=S};
_.M.onTap=function(S){var p,U,Y=((p=this.data)==null?void 0:p.navigationEndpoint)||((U=this.data)==null?void 0:U.serviceEndpoint);_.b(Y,_.SJ)&&(Y&&_.tW().resolve(_.cQ).resolveCommand(Y,{form:{element:this.hostElement}}),S.preventDefault())};
_.M.computeChannelEndpoint=function(S){return _.b(S,_.SJ)?null:S};
_.M.computeHrefEndpoint=function(S){return _.b(S,_.SJ)?null:this.componentBehavior.computeHref_(S)};
_.M.computeChannelRendererStyle=function(S){return S};
_.M.computeIconSize=function(S){return S?108:136};
_.$u.Object.defineProperties(DB,{template:{configurable:!0,enumerable:!0,get:function(){return d$E()}}});
DB.prototype.backgroundColorChanged=DB.prototype.backgroundColorChanged;_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],DB.prototype,"ytRendererBehavior",void 0);_.x([_.F(_.qH.YtRendererstamperBehavior),_.E("design:type",Object)],DB.prototype,"ytRendererstamperBehavior",void 0);_.x([_.F(_.xK),_.E("design:type",Object)],DB.prototype,"ytdOpenPopupBehavior",void 0);_.x([_.F(_.eL.YtComponentBehavior),_.E("design:type",Object)],DB.prototype,"componentBehavior",void 0);
_.x([_.g(),_.E("design:type",Object)],DB.prototype,"data",void 0);_.x([_.g(),_.E("design:type",Boolean)],DB.prototype,"isDarkTheme",void 0);_.x([_.g({computed:"computeChannelRendererStyle(data.channelRendererStyle)",reflectToAttribute:!0}),_.E("design:type",String)],DB.prototype,"channelRendererStyle",void 0);_.x([_.g({computed:"hasDualButtons(data)",reflectToAttribute:!0}),_.E("design:type",Boolean)],DB.prototype,"dualButtons",void 0);_.x([_.g({reflectToAttribute:!0,value:function(){return _.y("enable_desktop_search_bigger_thumbs")}}),
_.E("design:type",Boolean)],DB.prototype,"useBiggerThumbs",void 0);_.x([_.g({reflectToAttribute:!0,value:function(){return _.Ug("desktop_search_bigger_thumbs_style")}}),
_.E("design:type",String)],DB.prototype,"biggerThumbStyle",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],DB.prototype,"compactStyle",void 0);_.x([_.T4("data","isDarkTheme"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],DB.prototype,"backgroundColorChanged",null);DB=_.x([_.f({is:"ytd-channel-renderer",disableElementRegistration:!0})],DB);_.C(DB,"ytd-channel-renderer",function(){return d$E()},{mode:1});var VhQ;var TRc;_.Ry("itemSectionRenderer","radioRenderer","ytd-radio-renderer");var zK=function(){var S=_.w.apply(this,arguments)||this;S.displayItemCount=2;S.collections=_.y("web_modern_collections_v2");S.hasPlaylistThumbnail=!1;S.stackThumbnailSize="large";return S};
_.r(zK,_.w);_.M=zK.prototype;_.M.attached=function(){this.updateInlinePreviewHoverListeners()};
_.M.detached=function(){this.clearInlinePreviewHoverListeners()};
_.M.dataChanged=function(){this.updateInlinePreviewHoverListeners()};
_.M.computeFirstVideos=function(S,p){return S&&p?S.slice(0,p):[]};
_.M.computeThumbnailWidth=function(S,p){return S?p==="BIG"?500:p==="MASSIVE"?600:p==="MEDIUM"?450:420:360};
_.M.computeThumbnailHeight=function(S,p){return S?p==="BIG"?280:p==="MASSIVE"?337:234:202};
_.M.clearInlinePreviewHoverListeners=function(){var S;(S=this.JSC$13981_inlinePreviewHoverListener)==null||cI(S)};
_.M.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$13981_inlinePreviewHoverListener=EK({mediaRenderer:this,lockupElement:this.hostElement,videoPreviewOpts:qTE,thumbnailElement:this.thumbnail})};
_.M.computeHasPlaylistThumbnail=function(S){var p,U;if((((p=S.thumbnailRenderer)==null?0:p.playlistVideoThumbnailRenderer)||((U=S.thumbnailRenderer)==null?0:U.playlistCustomThumbnailRenderer))&&S.thumbnailOverlays)for(p=0;p<S.thumbnailOverlays.length;p++)if(U=void 0,(U=S.thumbnailOverlays[p])==null?0:U.thumbnailOverlayBottomPanelRenderer)return!0;return!1};
_.$u.Object.defineProperties(zK.prototype,{isHovered:{configurable:!0,enumerable:!0,get:function(){var S;return!((S=this.JSC$13981_inlinePreviewHoverListener)==null?0:Rm(S))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
zK.prototype.dataChanged=zK.prototype.dataChanged;_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],zK.prototype,"ytRendererBehavior",void 0);_.x([_.F(_.ak),_.E("design:type",Object)],zK.prototype,"ytdLockupBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],zK.prototype,"data",void 0);_.x([_.g(),_.E("design:type",Object)],zK.prototype,"displayItemCount",void 0);_.x([_.g({reflectToAttribute:!0,value:function(){return _.y("enable_desktop_search_bigger_thumbs")}}),
_.E("design:type",Boolean)],zK.prototype,"useBiggerThumbs",void 0);_.x([_.g({reflectToAttribute:!0,value:function(){return _.Ug("desktop_search_bigger_thumbs_style")}}),
_.E("design:type",String)],zK.prototype,"biggerThumbsStyle",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Boolean)],zK.prototype,"collections",void 0);_.x([_.g({computed:"computeHasPlaylistThumbnail(data)"}),_.E("design:type",Object)],zK.prototype,"hasPlaylistThumbnail",void 0);_.x([_.g(),_.E("design:type",String)],zK.prototype,"stackThumbnailSize",void 0);_.x([_.O2("ytd-thumbnail"),_.E("design:type",HTMLElement)],zK.prototype,"thumbnail",void 0);
_.x([_.z4("data"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],zK.prototype,"dataChanged",null);_.x([_.e("lockupIsHovered"),_.E("design:type",Boolean),_.E("design:paramtypes",[])],zK.prototype,"isHovered",null);zK=_.x([_.f({is:"ytd-radio-renderer",disableElementRegistration:!0})],zK);
_.C(zK,"ytd-radio-renderer",function(){if(TRc!==void 0)return TRc;var S=document.createElement("template");_.h(S,'\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');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);return TRc=S},{mode:_.UW("kevlar_poly_si_batch_j058")?1:2});var WGq;_.Ry("itemSectionRenderer","showRenderer","ytd-show-renderer");var Qb=function(){return _.w.apply(this,arguments)||this};
_.r(Qb,_.w);Qb.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
Qb.prototype.computeThumbnailWidth=function(S){return S?360:246};
Qb.prototype.computeUseProminentThumbs=function(S){return S};
_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],Qb.prototype,"ytRendererBehavior",void 0);_.x([_.F(_.qH.YtRendererstamperBehavior),_.E("design:type",Object)],Qb.prototype,"ytRendererstamperBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],Qb.prototype,"data",void 0);_.x([_.g({value:!1}),_.E("design:type",Boolean)],Qb.prototype,"isSearch",void 0);
_.x([_.g({reflectToAttribute:!0,computed:"computeUseProminentThumbs(isSearch)"}),_.E("design:type",Boolean)],Qb.prototype,"useProminentThumbs",void 0);Qb=_.x([_.f({is:"ytd-show-renderer",disableElementRegistration:!0})],Qb);
_.C(Qb,"ytd-show-renderer",function(){if(WGq!==void 0)return WGq;var S=document.createElement("template");_.h(S,'\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');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);return WGq=S},{mode:1});_.Ry("itemSectionRenderer","feedEntryRenderer","ytd-feed-entry-renderer");var nI=function(){var S=_.w.apply(this,arguments)||this;S.isRichGrid=!1;return S};
_.r(nI,_.w);nI.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"}}}}}};
_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],nI.prototype,"ytRendererBehavior",void 0);_.x([_.F(_.qH.YtRendererstamperBehavior),_.E("design:type",Object)],nI.prototype,"ytRendererstamperBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],nI.prototype,"data",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],nI.prototype,"isRichGrid",void 0);nI=_.x([_.f({is:"ytd-feed-entry-renderer",disableElementRegistration:!0})],nI);
_.C(nI,"ytd-feed-entry-renderer",function(){if(VhQ!==void 0)return VhQ;var S=document.createElement("template");_.h(S,'\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');
S.content.insertBefore(_.t().content.cloneNode(!0),S.content.firstChild);return VhQ=S},{mode:1});var Oet;var JL=function(){return _.w.apply(this,arguments)||this};
_.r(JL,_.w);JL.prototype.showChevronIcon=function(){return this.itemsPerRow>1};
_.x([_.F(_.Xh),_.E("design:type",Object)],JL.prototype,"ytdReduxBehavior",void 0);_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],JL.prototype,"ytRendererBehavior",void 0);_.x([_.F(_.eL.YtComponentBehavior),_.E("design:type",Object)],JL.prototype,"ytComponentBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],JL.prototype,"data",void 0);_.x([_.g({reflectToAttribute:!0,selector:_.R4,value:3}),_.E("design:type",Number)],JL.prototype,"itemsPerRow",void 0);
JL=_.x([_.f({is:"ytd-link-card-renderer",disableElementRegistration:!0})],JL);
_.C(JL,"ytd-link-card-renderer",function(){if(Oet!==void 0)return Oet;var S=document.createElement("template");_.h(S,'\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');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);return Oet=S},{mode:1});var kOt;var yb=function(){return _.w.apply(this,arguments)||this};
_.r(yb,_.w);_.M=yb.prototype;_.M.configureRendererStamper=function(){return{"data.menu":da,dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.M.onRendererTap=function(S){if(!this.ytdDismissibleItemBehavior.isDismissed){var p,U=(p=this.data)==null?void 0:p.navigationEndpoint;U&&!_.Eo(_.E1(S),this.hostElement,["BUTTON"])&&(this.isNavigationCommand(U)?_.Eo(_.E1(S),this.hostElement,["A"])||_.cv(this.hostElement,"yt-navigate",{endpoint:U}):this.ytComponentBehavior.resolveCommand(U,{}))}};
_.M.maybeComputeHref=function(S){return this.ytComponentBehavior.computeHref_(S,!0)};
_.M.getNavigationCommand=function(S){return this.isNavigationCommand(S)?S:null};
_.M.isNavigationCommand=function(S){return S?_.b(S,_.kM)||_.b(S,_.E$)||_.b(S,_.Cv)?!0:!1:!1};
yb.prototype.onRendererTap=yb.prototype.onRendererTap;_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],yb.prototype,"ytRendererBehavior",void 0);_.x([_.F(_.qH.YtRendererstamperBehavior),_.E("design:type",Object)],yb.prototype,"ytRendererstamperBehavior",void 0);_.x([_.F(_.Zh),_.E("design:type",Object)],yb.prototype,"ytdDismissibleItemBehavior",void 0);_.x([_.F(_.eL.YtComponentBehavior),_.E("design:type",Object)],yb.prototype,"ytComponentBehavior",void 0);
_.x([_.g(),_.E("design:type",Object)],yb.prototype,"data",void 0);_.x([_.Vd("tap"),_.E("design:type",Function),_.E("design:paramtypes",[CustomEvent]),_.E("design:returntype")],yb.prototype,"onRendererTap",null);yb=_.x([_.f({is:"ytd-lumiere-promo-item-image-renderer",disableElementRegistration:!0})],yb);
_.C(yb,"ytd-lumiere-promo-item-image-renderer",function(){if(kOt!==void 0)return kOt;var S=document.createElement("template");_.h(S,'\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>');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);return kOt=S},{mode:1});var HeQ;var KI=function(){return _.w.apply(this,arguments)||this};
_.r(KI,_.w);KI.prototype.computeLandscapeThumbnail=function(){var S;return((S=this.data)==null?void 0:S.thumbnailDimensions)==="LUMIERE_SHELF_THUMBNAIL_DIMENSIONS_16_9"};
_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],KI.prototype,"ytRendererBehavior",void 0);_.x([_.F(_.Xh),_.E("design:type",Object)],KI.prototype,"ytdReduxBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],KI.prototype,"data",void 0);_.x([_.g({reflectToAttribute:!0,selector:_.hZ}),_.E("design:type",Boolean)],KI.prototype,"miniMode",void 0);_.x([_.g({reflectToAttribute:!0,selector:_.R4}),_.E("design:type",Number)],KI.prototype,"itemsPerRow",void 0);
_.x([_.g({reflectToAttribute:!0,computed:"computeLandscapeThumbnail(data)"}),_.E("design:type",Boolean)],KI.prototype,"landscapeThumbnail",void 0);KI=_.x([_.f({is:"ytd-lumiere-shelf-details-renderer",disableElementRegistration:!0})],KI);
_.C(KI,"ytd-lumiere-shelf-details-renderer",function(){if(HeQ!==void 0)return HeQ;var S=document.createElement("template");_.h(S,'\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');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);return HeQ=S},{mode:_.UW("kevlar_poly_si_batch_j076")?1:2});var D$m;var bW=function(){return _.w.apply(this,arguments)||this};
_.r(bW,_.w);bW.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],bW.prototype,"ytRendererBehavior",void 0);_.x([_.F(_.qH.YtRendererstamperBehavior),_.E("design:type",Object)],bW.prototype,"ytRendererstamperBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],bW.prototype,"data",void 0);bW=_.x([_.f({is:"ytd-primetime-promo-details-renderer",disableElementRegistration:!0})],bW);
_.C(bW,"ytd-primetime-promo-details-renderer",function(){if(D$m!==void 0)return D$m;var S=document.createElement("template");_.h(S,'\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>');
S.content.insertBefore(_.t().content.cloneNode(!0),S.content.firstChild);return D$m=S},{mode:1});var zaq;var jx=function(){return _.w.apply(this,arguments)||this};
_.r(jx,_.w);_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],jx.prototype,"ytRendererBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],jx.prototype,"data",void 0);jx=_.x([_.f({is:"ytd-panel-show-style-metadata-renderer",disableElementRegistration:!0})],jx);
_.C(jx,"ytd-panel-show-style-metadata-renderer",function(){if(zaq!==void 0)return zaq;var S=document.createElement("template");_.h(S,'\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');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);return zaq=S},{mode:1});var Qzd;var rJ=function(){return _.w.apply(this,arguments)||this};
_.r(rJ,_.w);_.M=rJ.prototype;_.M.onPanelTap=function(){if(this.data&&this.data.command&&!this.isNavigationCommand(this.data.command))return this.ytComponentBehavior.resolveCommand(this.data.command,{})};
_.M.configureRendererStamper=function(){return{"data.metadata":{id:"panel-metadata",mapping:{panelShowStyleMetadataRenderer:{component:"ytd-panel-show-style-metadata-renderer"}}}}};
_.M.computeThumbnail=function(S){if(S)return S.smallFormFactorBackgroundThumbnail||S.largeFormFactorBackgroundThumbnail};
_.M.maybeComputeHref=function(S){return this.ytComponentBehavior.computeHref_(S,!0)};
_.M.isNavigationCommand=function(S){return S?_.b(S,_.kM)||_.b(S,_.E$)||_.b(S,_.Cv)?!0:!1:!1};
_.M.getNavigationCommand=function(S){return this.isNavigationCommand(S)?S:null};
rJ.prototype.onPanelTap=rJ.prototype.onPanelTap;_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],rJ.prototype,"ytRendererBehavior",void 0);_.x([_.F(_.eL.YtComponentBehavior),_.E("design:type",Object)],rJ.prototype,"ytComponentBehavior",void 0);_.x([_.F(_.qH.YtRendererstamperBehavior),_.E("design:type",Object)],rJ.prototype,"ytRendererstamperBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],rJ.prototype,"data",void 0);
_.x([_.g({reflectToAttribute:!0,value:!0}),_.E("design:type",Boolean)],rJ.prototype,"roundedContainer",void 0);_.x([_.g({reflectToAttribute:!0,value:_.y("web_modern_buttons")}),_.E("design:type",Boolean)],rJ.prototype,"modernButtons",void 0);_.x([_.Vd("tap"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],rJ.prototype,"onPanelTap",null);rJ=_.x([_.f({is:"ytd-primetime-promo-panel-renderer",disableElementRegistration:!0})],rJ);
_.C(rJ,"ytd-primetime-promo-panel-renderer",function(){if(Qzd!==void 0)return Qzd;var S=document.createElement("template");_.h(S,'\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>');
S.content.insertBefore(_.t().content.cloneNode(!0),S.content.firstChild);return Qzd=S},{mode:1});_.qm(_.$k(function(S){S=_.vT(S,{data:{},useFullWidth:!1});var p=S.data,U=S.useFullWidth,Y=function(){return p().caption},L=function(){return p().image},I=function(){return _.sW(p().onTap)};
S={};S=_.VD("ytTeaserCardViewModelHost",(S.ytTeaserCardViewModelUseFullWidth=function(){return U()},S));
return _.H("teaser-card-view-model",{class:S},_.H(_.n,{cond:function(){return I()},
then:function(){return _.H(wpd,{className:"ytTeaserCardViewModelLink",command:I,forceNewState:!0,useATagConfig:!0},_.H("div",{class:"ytTeaserCardViewModelImageContainer"},_.H(_.n,{cond:L,then:function(V){return _.H(_.of,{data:V,className:"ytTeaserCardViewModelImage",alt:""})}})),_.H("p",{class:"ytTeaserCardViewModelCaption"},Y))}}))},"Fb"),"teaser-card-view-model",{props:{data:_.x2,
useFullWidth:_.x2}});var n$e=new _.$g("RICH_GRID_VIDEO_RENDERER_TOKEN");_.qm(_.$k(function(S){var p=S.data;var U=S.showYtInteractionInContent;var Y=function(){return!!p().selectableFeedback};
S=_.d(_.kj(!1,void 0,"nblDw"));var L=S.next().value,I=S.next().value;_.FM(function(){var J=_.b(p().primaryButton,_.b6);(J==null?0:J.isToggled)&&I(J.isToggled)});
S=_.kL(function(J){if(!Y())return!1;if(L()){var K;var G=(K=p().selectableFeedback)==null?void 0:K.onDeselect}else{var X;G=(X=p().selectableFeedback)==null?void 0:X.onSelect}G&&_.wx(G,{form:{element:J.target}});I(!L());if(J=_.b(p().primaryButton,_.b6))J.isToggled=L();return!1});
var V=function(){if(!Y()){var J,K=(J=p().loggingDirectives)==null?void 0:J.trackingParams;K&&_.La(_.tW().resolve(_.Jt),K)}},W=_.MfG(),O=function(){var J;
return Y()?(J=p().selectableFeedback)==null?void 0:J.a11yLabel:void 0},D=function(){return Y()?{toggled:L()}:{}},z=_.tW().resolve(_.AW(n$e)),Q={};
return _.H("yt-feedback-item-renderer",{class:_.VD("ytFeedbackItemRendererHost",(Q.ytFeedbackItemRendererSelectableFeedback=Y,Q)),"on:click":S,"on:keydown":W,title:O,"aria-label":O,"aria-pressed":function(){return Y()?L():void 0},
tabindex:function(){return Y()?0:void 0},
role:function(){return Y()?"button":void 0}},_.H("div",{class:"ytFeedbackItemRendererContentContainer"},_.H(_.yP,{data:function(){return p().content}},{videoRenderer:function(J){return _.H(z,{data:J.data,
showYtInteraction:U})},
lockupViewModel:function(J){return _.H(_.ch,{data:J.data,containerType:2})}})),_.H("div",{class:"ytFeedbackItemRendererButtonsContainer"},_.H(_.yP,{data:function(){return p().primaryButton}},{toggleButtonViewModel:function(J){return _.H(_.jS,{data:J.data,
buttonShapeOverrides:D,disableExplicitClickLogging:!0,onToggle:V})}})))},"Gb"),"yt-feedback-item-renderer",{props:{data:_.x2,
showYtInteractionInContent:_.x2}});var GK=function(){var S=_.w.apply(this,arguments)||this;S.isShortsGrid=!1;S.isCompactGrid=!1;S.isShortsPanelGrid=!1;S.renderedFromRichGrid=!1;S.isInFirstColumn=!1;S.noGutterMargins=!1;S.isInlineGroupItem=!1;S.insetMetadata=!1;S.noBottomMarginInAds=_.y("web_no_bottom_margin_for_home_ad_buttons");S.force16By9ThumbnailAspectRatio=!1;S.useCompactList=!1;S.containerType=2;S.thumbnailTargetWidth=9999;S.isResponsiveGrid=!1;S.lockupExperiments={useRichGridLegacyTypography:!0,useRichGridLegacyMargin:!0};S.actionMap=
{"ytd-rich-item-index-update-action":"onIndexUpdateAction"};S.hoverListener=S.hover.bind(S);S.leaveListener=S.leave.bind(S);S.highlighted=!1;S.JSC$14016_unsubscribeFromInlinePreviewIsActive=function(){};
return S};
_.r(GK,_.w);_.M=GK.prototype;_.M.computeContainerType=function(){return this.useCompactList?3:2};
_.M.computeThumbnailTargetWidth=function(){var S;return(S=this.itemWidth)!=null?S:9999};
_.M.updateIsInFirstColumn=function(){var S;this.isInFirstColumn=((S=this.data)==null?void 0:S.colIndex)===0};
_.M.observerContainerType=function(){if(this.lockup){var S=this.lockup;S.containerType=this.containerType;S.sizing=this.sizing;S.typographyBump=this.typographyBump;S.itemWidth=this.itemWidth}this.richGridMedia&&_.y("rich_grid_enable_dynamic_offset")&&(this.richGridMedia.typographyBump=this.richTypographyBump);this.adSlotRenderer&&_.y("rich_grid_enable_dynamic_offset")&&(this.adSlotRenderer.typographyBump=this.richTypographyBump)};
_.M.configureRendererStamper=function(){return{"data.content":{id:"content",mapping:{lockupViewModel:{component:"yt-lockup-view-model",params:{className:"ytd-rich-item-renderer lockup",thumbnailFixedWidth:"50%"},properties:{force16By9ThumbnailAspectRatio:"[[force16By9ThumbnailAspectRatio]]",containerType:"[[containerType]]",sizing:"[[sizing]]",typographyBump:"[[typographyBump]]",thumbnailTargetWidth:"[[thumbnailTargetWidth]]",lockupExperiments:"[[lockupExperiments]]"}},postRenderer:{component:"ytd-post-renderer",
params:{isRichGrid:!0}},sharedPostRenderer:{component:"ytd-shared-post-renderer",params:{isRichGrid:!0}},primetimePromoDetailsRenderer:"ytd-primetime-promo-details-renderer",primetimePromoPanelRenderer:"ytd-primetime-promo-panel-renderer",movieRenderer:{component:"ytd-rich-grid-slim-media"},compactMovieRenderer:{component:"ytd-rich-grid-media",properties:{typographyBump:"[[richTypographyBump]]",showYtInteraction:"[[showYtInteractionOnRichGridMedia]]"}},reelItemRenderer:{component:"ytd-rich-grid-slim-media",
properties:{insetMetadata:"[[insetMetadata]]"}},shortsLockupViewModel:{component:"ytm-shorts-lockup-view-model-v2",properties:{aspectRatio:"[[shortsLockupViewModelAspectRatio]]",inlineMetadata:"[[insetMetadata]]",scrimStyle:"[[shortsLockupViewModelScrimStyle]]",useDefaultStyle:"[[isShortsPanelGrid]]"}},feedbackItemRenderer:{component:"yt-feedback-item-renderer",properties:{showYtInteractionInContent:"[[showYtInteractionOnRichGridMedia]]"}},videoRenderer:{component:"ytd-rich-grid-media",params:{isRadio:!1},
properties:{showYtInteraction:"[[showYtInteractionOnRichGridMedia]]",entitySelectorType:"[[data.entitySelectorType]]",typographyBump:"[[richTypographyBump]]"}},radioRenderer:{component:"ytd-rich-grid-media",params:{isRadio:!0},properties:{showYtInteraction:"[[showYtInteractionOnRichGridMedia]]",typographyBump:"[[richTypographyBump]]"}},playlistRenderer:{component:"ytd-rich-grid-media",params:{isRadio:!1},properties:{showYtInteraction:"[[showYtInteractionOnRichGridMedia]]",entitySelectorType:"[[data.entitySelectorType]]",
typographyBump:"[[richTypographyBump]]"}},gridShowRenderer:{component:"ytd-rich-grid-media",params:{isRadio:!1},properties:{showYtInteraction:"[[showYtInteractionOnRichGridMedia]]",typographyBump:"[[richTypographyBump]]"}},promotedVideoRenderer:{component:"ytd-rich-grid-media",params:{isRadio:!1,isPromotedVideo:!0},properties:{showYtInteraction:"[[showYtInteractionOnRichGridMedia]]",typographyBump:"[[richTypographyBump]]"}},feedEntryRenderer:{component:"ytd-feed-entry-renderer",params:{isRichGrid:!0}},
displayAdRenderer:{component:"ytd-display-ad-renderer"},adSlotRenderer:{component:"ytd-ad-slot-renderer",properties:{noBottomMargin:"[[noBottomMarginInAds]]",typographyBump:"[[richTypographyBump]]"}},lumiereShelfDetailsRenderer:"ytd-lumiere-shelf-details-renderer",lumierePromoItemImageRenderer:"ytd-lumiere-promo-item-image-renderer",feedNudgeRenderer:"ytd-feed-nudge-renderer",gameCardRenderer:{component:"ytd-game-card-renderer",params:{isRichGrid:!0}},miniGameCardViewModel:{component:"ytd-mini-game-card-view-model",
params:{isRichGrid:!0}},expandOnHoverCardRenderer:"ytd-expand-on-hover-card-renderer",linkCardRenderer:"ytd-link-card-renderer",gridMovieRenderer:{component:"ytd-rich-grid-slim-media"},gridChannelRenderer:{component:"ytd-grid-channel-renderer",params:{isRichGrid:!0}},teaserCardViewModel:{component:"teaser-card-view-model",params:{useFullWidth:!0}},gridVideoRenderer:{component:"ytd-rich-grid-media",params:{isRadio:!1},properties:{showYtInteraction:"[[showYtInteractionOnRichGridMedia]]",typographyBump:"[[richTypographyBump]]"}}}}}};
_.M.leave=function(S){S=S.relatedTarget;var p=document.querySelector("ytd-video-preview");S&&p&&_.p3(p).contains(S)||this.removeAndCleanupHighlight()};
_.M.hover=function(){var S;if(!this.highlighted&&(!_.y("web_enable_rich_item_on_focus_effect")||(S=this.data)!=null&&S.onFocusEffect)){var p,U;((p=this.data)==null?void 0:(U=p.onFocusEffect)==null?void 0:U.onFocusStyle)==="ON_FOCUS_STYLE_BACKGROUND"&&(this.hostElement.classList.add("ytd-rich-item-renderer-highlight"),(S=this.getBackgroundColor())&&Object.assign(this.hostElement.style,{backgroundColor:S,boxShadow:"0 0 0 10px "+S}));var Y,L;((Y=this.data)==null?void 0:(L=Y.onFocusEffect)==null?void 0:
L.onFocusStyle)==="ON_FOCUS_STYLE_BORDER"&&this.hostElement.classList.add("ytd-rich-item-renderer-highlight-border");this.highlighted=!0}};
_.M.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};
_.M.registerHoverHighlightListeners=function(){var S=this;this.hostElement.addEventListener("mouseover",this.hoverListener);this.hostElement.addEventListener("mouseleave",this.leaveListener);this.JSC$14016_unsubscribeFromInlinePreviewIsActive=_.Wt(_.vJ(),_.Dcw,function(p){S.highlighted&&!p&&S.removeAndCleanupHighlight()})};
_.M.removeHoverHighlightListeners=function(){this.hostElement.removeEventListener("mouseover",this.hoverListener);this.hostElement.removeEventListener("mouseleave",this.leaveListener);this.JSC$14016_unsubscribeFromInlinePreviewIsActive()};
_.M.richGridHoverHighlightChanged=function(){this.richGridHoverHighlight?this.registerHoverHighlightListeners():this.removeHoverHighlightListeners()};
_.M.detached=function(){this.richGridHoverHighlight&&this.removeHoverHighlightListeners()};
_.M.getBackgroundColor=function(){var S,p,U=(S=this.data)==null?void 0:(p=S.onFocusEffect)==null?void 0:p.onFocusColor;if(U){if(document.documentElement.hasAttribute("dark")&&(U==null?0:U.darkTheme))return _.s1(U==null?void 0:U.darkTheme);if(U==null?0:U.lightTheme)return _.s1(U==null?void 0:U.lightTheme)}};
_.M.onIndexUpdateAction=function(){this.updateIsInFirstColumn();if(this.hostElement.offsetParent!==null){var S=_.X$(),p,U,Y;S&&((p=this.data)==null?0:p.trackingParams)&&((U=this.data)==null?void 0:U.colIndex)!=null&&((Y=this.data)==null?void 0:Y.rowIndex)!=null&&_.mp(S,_.JS(this.data.trackingParams),{gridData:{veColumnCoordinate:this.data.colIndex,veRowCoordinate:this.data.rowIndex}})}};
_.M.isSlimMediaRenderer=function(S){return!!_.b(S==null?void 0:S.content,_.Toq)||!!_.b(S==null?void 0:S.content,VYt)||!!_.b(S==null?void 0:S.content,_.FT)||!!_.b(S==null?void 0:S.content,Pat)};
_.M.isPostRenderer=function(){var S,p;return!!_.b((S=this.data)==null?void 0:S.content,zOl)||!!_.b((p=this.data)==null?void 0:p.content,QpQ)};
_.M.computeIsGameCardShelf=function(){var S;return!!_.b((S=this.data)==null?void 0:S.content,Q3d)};
_.M.computeIsMiniGameCardShelf=function(){var S,p;return!!_.b((S=this.data)==null?void 0:S.content,eXw)||!!_.b((p=this.data)==null?void 0:p.content,gZm)};
_.M.computeIsTeaserCard=function(){var S;return!!_.b((S=this.data)==null?void 0:S.content,gZm)};
_.M.computeIsSelectableFeedbackItem=function(){var S,p;return!((p=_.b((S=this.data)==null?void 0:S.content,_.wDt))==null||!p.selectableFeedback)};
_.M.computeContainsLumierePosters=function(){var S,p;return((p=_.b((S=this.data)==null?void 0:S.content,ROd))==null?void 0:p.thumbnailDimensions)==="LUMIERE_SHELF_THUMBNAIL_DIMENSIONS_POSTER"};
_.M.computeIsExpandOnHoverCardShelf=function(){var S;return!!_.b((S=this.data)==null?void 0:S.content,hOc)};
_.M.computeIsLinkCardShelf=function(){var S;return!!_.b((S=this.data)==null?void 0:S.content,wje)};
_.M.computeIsReelItemStyleAvatarCircle=function(S){var p;return((p=_.b(S==null?void 0:S.content,_.FT))==null?void 0:p.style)==="REEL_ITEM_STYLE_AVATAR_CIRCLE"};
_.M.computeIsLinkCardFullWidth=function(S,p){var U;return((U=_.b(S==null?void 0:S.content,wje))==null?void 0:U.useFullWidth)||p<=2};
_.$u.Object.defineProperties(GK.prototype,{showYtInteractionOnRichGridMedia:{configurable:!0,enumerable:!0,get:function(){return!this.showYtInteractionOnRichItem}},
showYtInteractionOnRichItem:{configurable:!0,enumerable:!0,get:function(){return this.richGridHoverHighlight||this.isSelectableFeedbackItem}},
richTypographyBump:{configurable:!0,enumerable:!0,get:function(){return this.typographyBump&&!!this.isHomeGrid&&_.y("web_enable_typography_bump")}},
richGridHoverHighlight:{configurable:!0,enumerable:!0,get:function(){return _.y("web_enable_rich_item_on_focus_effect")||_.y("rich_grid_hover_highlight")&&!this.isShortsGrid&&!this.isCompactGrid}},
shortsLockupViewModelAspectRatio:{configurable:!0,enumerable:!0,get:function(){return _.y("web_shorts_2_by_3_lockups_no_home")&&this.isHomeShelf?0:this.isInlineGroupItem?2:this.isShortsPanelGrid||_.y("web_shorts_2_by_3_lockups_study")||_.y("web_shorts_2_by_3_lockups_home")&&this.isHomeShelf?1:0}},
shortsLockupViewModelScrimStyle:{configurable:!0,enumerable:!0,get:function(){return this.isInlineGroupItem?4:3}}});
GK.prototype.richGridHoverHighlightChanged=GK.prototype.richGridHoverHighlightChanged;GK.prototype.observerContainerType=GK.prototype.observerContainerType;GK.prototype.updateIsInFirstColumn=GK.prototype.updateIsInFirstColumn;_.x([_.F(_.Xh),_.E("design:type",Object)],GK.prototype,"ytdReduxBehavior",void 0);_.x([_.F(_.qH.YtRendererstamperBehavior),_.E("design:type",Object)],GK.prototype,"ytRendererstamperBehavior",void 0);
_.x([_.F(_.Aj.YtActionHandlerBehavior),_.E("design:type",Object)],GK.prototype,"ytActionHandlerBehavior",void 0);_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],GK.prototype,"ytRendererBehavior",void 0);_.x([_.F(_.ak),_.E("design:type",Object)],GK.prototype,"ytdLockupBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],GK.prototype,"data",void 0);_.x([_.g({reflectToAttribute:!0,computed:"isPostRenderer(data)"}),_.E("design:type",Boolean)],GK.prototype,"isPost",void 0);
_.x([_.g({reflectToAttribute:!0,computed:"computeContainsLumierePosters(data)"}),_.E("design:type",Boolean)],GK.prototype,"containsLumierePosters",void 0);_.x([_.g({reflectToAttribute:!0,computed:"isSlimMediaRenderer(data)"}),_.E("design:type",Boolean)],GK.prototype,"isSlimMedia",void 0);_.x([_.g({reflectToAttribute:!0,computed:"computeIsGameCardShelf(data)"}),_.E("design:type",Boolean)],GK.prototype,"isGameCardShelf",void 0);
_.x([_.g({reflectToAttribute:!0,computed:"computeIsMiniGameCardShelf(data)"}),_.E("design:type",Boolean)],GK.prototype,"isMiniGameCardShelf",void 0);_.x([_.g({reflectToAttribute:!0,computed:"computeIsTeaserCard(data)"}),_.E("design:type",Boolean)],GK.prototype,"isTeaserCard",void 0);_.x([_.g({computed:"computeIsSelectableFeedbackItem(data)"}),_.E("design:type",Boolean)],GK.prototype,"isSelectableFeedbackItem",void 0);
_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],GK.prototype,"isShortsGrid",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Boolean)],GK.prototype,"isSlimGrid",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],GK.prototype,"isCompactGrid",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],GK.prototype,"isShortsPanelGrid",void 0);
_.x([_.g({reflectToAttribute:!0,computed:"computeIsExpandOnHoverCardShelf(data)"}),_.E("design:type",Boolean)],GK.prototype,"isExpandOnHoverCardShelf",void 0);_.x([_.g({reflectToAttribute:!0,computed:"computeIsLinkCardShelf(data)"}),_.E("design:type",Boolean)],GK.prototype,"isLinkCardShelf",void 0);_.x([_.g({reflectToAttribute:!0,selector:_.R4,value:3}),_.E("design:type",Number)],GK.prototype,"itemsPerRow",void 0);
_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],GK.prototype,"renderedFromRichGrid",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],GK.prototype,"isInFirstColumn",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],GK.prototype,"noGutterMargins",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],GK.prototype,"isInlineGroupItem",void 0);_.x([_.g(),_.E("design:type",Object)],GK.prototype,"insetMetadata",void 0);
_.x([_.g(),_.E("design:type",Object)],GK.prototype,"noBottomMarginInAds",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Boolean)],GK.prototype,"isShelfItem",void 0);_.x([_.g({reflectToAttribute:!0,computed:"computeIsReelItemStyleAvatarCircle(data)"}),_.E("design:type",Boolean)],GK.prototype,"isReelItemStyleAvatarCircle",void 0);_.x([_.g({reflectToAttribute:!0,computed:"computeIsLinkCardFullWidth(data, itemsPerRow)"}),_.E("design:type",Boolean)],GK.prototype,"isLinkCardFullWidth",void 0);
_.x([_.g(),_.E("design:type",Object)],GK.prototype,"force16By9ThumbnailAspectRatio",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],GK.prototype,"useCompactList",void 0);_.x([_.g(),_.E("design:type",String)],GK.prototype,"sizing",void 0);_.x([_.g({value:!1}),_.E("design:type",Boolean)],GK.prototype,"typographyBump",void 0);_.x([_.g(),_.E("design:type",Number)],GK.prototype,"itemWidth",void 0);_.x([_.g(),_.E("design:type",Boolean)],GK.prototype,"isHomeShelf",void 0);
_.x([_.g(),_.E("design:type",Boolean)],GK.prototype,"isHomeGrid",void 0);_.x([_.O2("yt-lockup-view-model"),_.E("design:type",HTMLElement)],GK.prototype,"lockup",void 0);_.x([_.O2("ytd-rich-grid-media"),_.E("design:type",HTMLElement)],GK.prototype,"richGridMedia",void 0);_.x([_.O2("ytd-ad-slot-renderer"),_.E("design:type",HTMLElement)],GK.prototype,"adSlotRenderer",void 0);_.x([_.g({computed:"computeContainerType(useCompactList)"}),_.E("design:type",Object)],GK.prototype,"containerType",void 0);
_.x([_.g({computed:"computeThumbnailTargetWidth(itemWidth)"}),_.E("design:type",Object)],GK.prototype,"thumbnailTargetWidth",void 0);_.x([_.e("showYtInteractionOnRichItem"),_.E("design:type",Boolean),_.E("design:paramtypes",[])],GK.prototype,"showYtInteractionOnRichGridMedia",null);_.x([_.e("isSelectableFeedbackItem","richGridHoverHighlight"),_.E("design:type",Boolean),_.E("design:paramtypes",[])],GK.prototype,"showYtInteractionOnRichItem",null);
_.x([_.e("typographyBump","isHomeGrid"),_.E("design:type",Boolean),_.E("design:paramtypes",[])],GK.prototype,"richTypographyBump",null);_.x([_.g({reflectToAttribute:!0}),_.e("isShortsGrid","isCompactGrid"),_.E("design:type",Boolean),_.E("design:paramtypes",[])],GK.prototype,"richGridHoverHighlight",null);_.x([_.e("isShortsPanelGrid","isHomeShelf","isInlineGroupItem"),_.E("design:type",Number),_.E("design:paramtypes",[])],GK.prototype,"shortsLockupViewModelAspectRatio",null);
_.x([_.e("isInlineGroupItem"),_.E("design:type",Number),_.E("design:paramtypes",[])],GK.prototype,"shortsLockupViewModelScrimStyle",null);_.x([_.T4("data"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],GK.prototype,"updateIsInFirstColumn",null);_.x([_.T4("containerType","sizing","typographyBump"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],GK.prototype,"observerContainerType",null);
_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],GK.prototype,"isResponsiveGrid",void 0);_.x([_.g(),_.E("design:type",Object)],GK.prototype,"lockupExperiments",void 0);_.x([_.T4("richGridHoverHighlight"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],GK.prototype,"richGridHoverHighlightChanged",null);GK=_.x([_.f({is:"ytd-rich-item-renderer",disableElementRegistration:!0})],GK);
_.Jmt=_.pz()(GK,"ytd-rich-item-renderer",function(){if(LGd===void 0){var S=document.createElement("template");_.h(S,'\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');
S.content.insertBefore(_.t().content.cloneNode(!0),S.content.firstChild);LGd=S}S=LGd;return S},{mode:_.UW("kevlar_poly_si_batch_j028")?1:2});var gfk={url:"https://www.gstatic.com/youtube/img/useredu/smart_downloads_optin_banner.gif"};var EfX=_.Ec(_.Oh("DELETE_FROM_DOWNLOADS",{},"Delete from downloads"));var ymt;var hL=function(){var S=_.w.apply(this,arguments)||this;S.useResponsiveGrid=!1;S.hidden=!1;S.standardShelfMargins=_.y("web_rich_grid_standard_shelf_margins");S.isShowMoreHidden=!1;S.isExpanded=!1;S.isInnerShelf=!1;S.allVideosCount=0;S.allPlaylistCount=0;S.haveSmartDownloadsCompleted=!1;S.isShowLessHidden=!0;S.restrictContentsOverflow=!1;S.firstShownIndex=0;S.horizontalOffset=0;S.atEnd=!0;S.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction","yt-rich-grid-resize-observed":"resizeObserved",
"yt-section-reactive-dismissal":"onSectionReactiveDismissal"};S.nextClick=function(){var p;(p=S.data)!=null&&p.contents&&(S.firstShownIndex+=S.currentElementsPerRow,S.updateHorizontalOffset(),S.updateHorizontalItemVisibility())};
S.previousClick=function(){var p;(p=S.data)!=null&&p.contents&&(S.firstShownIndex-=S.currentElementsPerRow,S.updateHorizontalOffset(),S.updateHorizontalItemVisibility())};
return S};
_.r(hL,_.w);_.M=hL.prototype;
_.M.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{richItemRenderer:{component:"ytd-rich-item-renderer",properties:{isResponsiveGrid:"[[useResponsiveGrid]]",sizing:"[[sizing]]",typographyBump:"[[typographyBump]]",itemWidth:"[[itemWidth]]",isHomeShelf:"[[isHomePage]]",force16By9ThumbnailAspectRatio:"[[force16By9ThumbnailAspectRatio]]"},params:{isShelfItem:!0}}}},"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer",params:{buttonTooltipPosition:_.g7("HTML_DIR")===
"rtl"?"right":"left"}}}},dismissedRenderer:{id:"dismissed",mapping:{notificationMultiActionRenderer:{component:"ytd-notification-multi-action-renderer",params:{shelfDismissal:!0}}}}}};
_.M.attached=function(){this.requestElementsPerRow()};
_.M.refreshGridLayoutNew=function(){var S;if((S=this.data)!=null&&S.contents&&this.containerWidth){var p;((p=this.data.responsiveContainerConfiguration)==null?0:p.responsiveSize)?(S=_.vfr(this.data.responsiveContainerConfiguration,this.containerWidth),S=_.oF(Object.assign({},S,{standardUnitMinWidth:this.standardUnitMinWidth}))):S=_.oF({containerWidth:this.containerWidth,sizing:this.sizing,marginSettings:2,standardUnitMinWidth:this.standardUnitMinWidth});this.typographyBump=S.typographyBump;if(this.elementsPerRow!==
S.numItems||this.gutter!==S.gutter)this.elementsPerRow=S.numItems,this.gutter=S.gutter,this.itemWidth=S.itemWidth,_.Ms(this.hostElement,{"--ytd-rich-grid-items-per-row":""+this.elementsPerRow,"--ytd-rich-grid-item-margin":S.gutter+"px"})}};
_.M.computeSizing=function(){if(!this.isLumiere){var S=_.TFN(this.data);if(S)return S;if(_.y("web_use_layout_library_for_rich_grid"))return this.isGameCardShelf()||this.isMiniGameCardShelf()||this.isSlimMediaShelfRenderer()||this.isLumiereShelfWithPosters()||this.isShortsShelf()?"EXTRA_COMPACT":"STANDARD"}};
_.M.computeUseResponsiveGrid=function(){return!this.isLumiere&&this.sizing};
_.M.computeButton=function(S){var p=_.b(S,_.XT);S=Object.assign({},_.b(S,_.XT));return p?(S.text||(S.text={simpleText:S.tooltip}),S.style="STYLE_MONO_OUTLINE",S.iconPosition="BUTTON_ICON_POSITION_TYPE_RIGHT_OF_TEXT",S):p};
_.M.onRowIndexChange=function(){var S=_.X$(),p,U;((p=this.data)==null?0:p.trackingParams)&&((U=this.data)==null?void 0:U.rowIndex)!=null&&S&&_.mp(S,_.JS(this.data.trackingParams),{gridData:{veRowCoordinate:this.data.rowIndex}})};
_.M.resizeObserved=function(){if(this.hasChevronButtons&&this.horizontalOffset!==0){var S,p=((S=this.getRichItemRenderers()[0])==null?void 0:S.clientWidth)+this.gutter;this.horizontalOffset=this.firstShownIndex*p;this.updateHorizontalItemVisibility()}else this.contents.style.transform="translateX(0px)"};
_.M.requestElementsPerRow=function(){_.cv(this.hostElement,"yt-request-elements-per-row")};
_.M.onUpdateElementsPerRowAction=function(S,p,U,Y,L,I){if(this.containerWidth!==I&&(this.containerWidth=I,this.useResponsiveGrid)){this.refreshGridLayoutNew();this.updateItemVisibility();return}!this.useResponsiveGrid&&S&&p&&U&&Y&&L&&(this.elementsPerRow!==S||this.postsPerRow!==p||this.slimItemsPerRow!==U||this.gameCardsPerRow!==Y||this.miniGameCardsPerRow!==L)&&(this.elementsPerRow=S,this.postsPerRow=p,this.slimItemsPerRow=U,this.gameCardsPerRow=Y,this.miniGameCardsPerRow=L,this.updateItemVisibility())};
_.M.getRichItemRenderers=function(){return _.tB(this.hostElement).querySelectorAll("ytd-rich-item-renderer")};
_.M.updateItemVisibility=function(){var S=this;if(this.data&&this.data.contents){var p=this.data.contents.length;if(this.hasChevronButtons)this.updateArrowButtonStatus();else{this.getRichItemRenderers().forEach(function(Y,L){var I;((I=S.data)==null?0:I.isExpanded)?(Y.hidden=L>p-1,Y.ytRendererBehavior.markDirty()):Y.hidden=L>S.currentElementsPerRow-1||L>p-1});
var U=this.data.contents.length<=this.currentElementsPerRow;this.isExpanded=!!this.data.isExpanded;this.isShowMoreHidden=!this.data.showMoreButton||U||!!this.data.isExpanded||this.isTruncated;this.isShowLessHidden=!this.data.showLessButton||U||!this.data.isExpanded||this.isTruncated}this.contents.style.visibility="visible"}};
_.M.setHeightToSingleRow=function(){var S=this.getRichItemRenderers(),p=Number.parseInt(getComputedStyle(S[0]).marginBottom,10)||0;S=S.slice(0,this.currentElementsPerRow).reduce(function(U,Y){return Math.max(U,Y.getBoundingClientRect().height+p)},0);
this.contents.style.height=S+"px"};
_.M.focusNextExpandedItem=function(){var S;((S=this.data)==null?0:S.isExpanded)&&this.focusItem(this.currentElementsPerRow,!0)};
_.M.focusItem=function(S,p){var U=this.getRichItemRenderers();if(U[S]&&(S=U[S].querySelector(".focus-on-expand"))){if(p){var Y;(Y=U[this.currentElementsPerRow])==null||Y.scrollIntoView({behavior:"smooth",block:"center"})}S.focus({preventScroll:!0})}};
_.M.onDataChange=function(){var S=this;this.useResponsiveGrid&&this.containerWidth&&this.refreshGridLayoutNew();_.oH(this,function(){S.updateItemVisibility()});
var p;if((p=this.data)==null?0:p.contents)for(this.restrictContentsOverflow=!this.isExpandOnHoverCardShelf(),_.Ms(this.hostElement,{"--ytd-rich-shelf-items-count":""+this.data.contents.length}),p=0;p<this.data.contents.length;p++){var U=_.b(this.data.contents[p],_.jq)||{};U.colIndex=p;U.rowIndex=this.data.rowIndex}};
_.M.handleRerenderDownloadsData=function(){_.y("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())};
_.M.blockInlinePreview=function(S){var p=this,U;return _.T(function(Y){(U=p.inlinePreviewIsEnabled)&&p.ytdReduxBehavior.dispatch(_.KxQ(!1));return Y.return(new Promise(function(L){S(function(){U&&p.ytdReduxBehavior.dispatch(_.KxQ(!0));L()})}))})};
_.M.expandShelf=function(){var S=this;if(this.data){var p,U=(p=_.b(this.data.showMoreButton,_.XT))==null?void 0:p.trackingParams;U&&_.La(_.HX(),U);this.data.isExpanded=!0;this.blockInlinePreview(function(Y){S.setHeightToSingleRow();S.updateItemVisibility();S.contents.style.height=S.contents.scrollHeight+"px";_.PA.addJob(function(){S.contents.style.height="auto";S.focusNextExpandedItem();Y()},2,200)})}};
_.M.collapseShelf=function(){var S=this;return _.T(function(p){if(p.nextAddress==1){if(!S.data)return p.return();S.data.isExpanded=!1;return _.k(p,S.blockInlinePreview(function(U){S.contents.style.height=S.contents.scrollHeight+"px";S.setHeightToSingleRow();_.PA.addJob(function(){S.updateItemVisibility();S.contents.style.height="auto";U()},2,200)}),2)}_.cv(S.hostElement,"yt-rich-shelf-renderer-collapse",S.data.trackingParams);
S.focusItem(0,!1);_.OV(p)})};
_.M.updateArrowButtonStatus=function(){var S=this.getRichItemRenderers().length;if(!_.y("web_rich_shelf_renderer_use_data_contents_killswitch")){var p,U;S=((p=this.data)==null?void 0:(U=p.contents)==null?void 0:U.length)||0}this.atEnd=this.firstShownIndex+this.currentElementsPerRow>=S};
_.M.onChildElementFocus=function(S){this.hasChevronButtons&&(S=S.target.closest("#contents > *"),this.contents.contains(S)&&(S.offsetLeft<this.horizontalOffset?this.previousClick():S.offsetLeft+S.clientWidth>this.horizontalOffset+this.contents.clientWidth&&(this.contents.parentElement&&(this.contents.parentElement.scrollLeft=0),this.nextClick())))};
_.M.updateHorizontalItemVisibility=function(){this.updateArrowButtonStatus();this.contents.style.transform="translateX("+(_.g7("HTML_DIR")==="rtl"?"":"-")+this.horizontalOffset+"px)"};
_.M.updateHorizontalOffset=function(){var S=this.getRichItemRenderers(),p=S.length;if(!_.y("web_rich_shelf_renderer_use_data_contents_killswitch")){var U,Y;p=((U=this.data)==null?void 0:(Y=U.contents)==null?void 0:Y.length)||0}var L;S=((L=S[0])==null?void 0:L.clientWidth)+this.gutter;this.firstShownIndex+this.currentElementsPerRow>p?this.firstShownIndex=p-this.currentElementsPerRow:this.firstShownIndex<0&&(this.firstShownIndex=0);this.horizontalOffset=this.firstShownIndex*S};
_.M.isSlimMediaShelfRenderer=function(){var S,p,U,Y=(U=_.b((S=this.data)==null?void 0:(p=S.contents)==null?void 0:p[0],_.jq))==null?void 0:U.content;return!!(_.b(Y,_.Toq)||_.b(Y,VYt)||_.b(Y,_.FT)||_.b(Y,Pat))};
_.M.isGameCardShelf=function(){var S,p,U,Y=(U=_.b((S=this.data)==null?void 0:(p=S.contents)==null?void 0:p[0],_.jq))==null?void 0:U.content;return!!_.b(Y,Q3d)};
_.M.isGnomeShelf=function(){var S,p,U,Y=(U=_.b((S=this.data)==null?void 0:(p=S.contents)==null?void 0:p[0],_.jq))==null?void 0:U.content;return!!_.b(Y,_.wDt)};
_.M.isMiniGameCardShelf=function(){var S,p,U,Y=(U=_.b((S=this.data)==null?void 0:(p=S.contents)==null?void 0:p[0],_.jq))==null?void 0:U.content;return!!_.b(Y,eXw)||!!_.b(Y,gZm)};
_.M.hasGameBoxArtAvatarStyle=function(){var S;return((S=this.data)==null?void 0:S.thumbnailStyle)==="CHANNEL_THUMBNAIL_STYLE_BOXART"};
_.M.hasRoundedGameBoxArtAvatarStyle=function(){var S;return((S=this.data)==null?void 0:S.thumbnailStyle)==="CHANNEL_THUMBNAIL_STYLE_BOXART_ROUNDED"};
_.M.isShortsShelf=function(){var S,p,U,Y=(U=_.b((S=this.data)==null?void 0:(p=S.contents)==null?void 0:p[0],_.jq))==null?void 0:U.content;return!!_.b(Y,_.FT)||!!_.b(Y,Pat)};
_.M.isPostShelfRenderer=function(){var S,p,U,Y=(U=_.b((S=this.data)==null?void 0:(p=S.contents)==null?void 0:p[0],_.jq))==null?void 0:U.content;return!(!_.b(Y,zOl)&&!_.b(Y,QpQ))};
_.M.isLumiereShelf=function(){var S,p,U=_.b((S=this.data)==null?void 0:(p=S.contents)==null?void 0:p[0],_.jq);return!!_.b(U==null?void 0:U.content,ROd)};
_.M.isLumiereShelfWithPosters=function(){var S,p,U=_.b((S=this.data)==null?void 0:(p=S.contents)==null?void 0:p[0],_.jq),Y;return((Y=_.b(U==null?void 0:U.content,ROd))==null?void 0:Y.thumbnailDimensions)==="LUMIERE_SHELF_THUMBNAIL_DIMENSIONS_POSTER"};
_.M.isExpandOnHoverCardShelf=function(){var S,p,U,Y=(U=_.b((S=this.data)==null?void 0:(p=S.contents)==null?void 0:p[0],_.jq))==null?void 0:U.content;return!!_.b(Y,hOc)};
_.M.computeHasFeaturedBadge=function(){var S,p,U=_.b((S=this.data)==null?void 0:(p=S.badges)==null?void 0:p[0],_.uUt);return U?U.style!=="BADGE_STYLE_TYPE_SIMPLE":!1};
_.M.computeHasPaygatedFeaturedBadge=function(){var S,p,U=_.b((S=this.data)==null?void 0:(p=S.badges)==null?void 0:p[0],_.uUt);return U?(U==null?void 0:U.style)==="BADGE_STYLE_TYPE_SIMPLE":!1};
_.M.computeHeaderHidden=function(){var S,p,U,Y,L,I;return!((S=this.data)==null?0:S.icon)&&!((p=this.data)==null?0:p.title)&&!((U=this.data)==null?0:U.subtitle)&&!((Y=this.data)==null?0:Y.thumbnail)&&!((L=this.data)==null?0:L.badges)&&!((I=this.data)==null?0:I.menu)};
_.M.showCtaButton=function(){var S;return!((S=this.data)==null||!S.ctaButton)&&!this.isPostShelfRenderer()&&!this.isGameCardShelf()&&!this.isMiniGameCardShelf()};
_.M.showTopCtaButton=function(){return this.showCtaButton()?this.isSlimMediaShelfRenderer()?this.slimItemsPerRow>=4:this.elementsPerRow>=3:!1};
_.M.showBottomCtaButton=function(){return this.showCtaButton()?!this.showTopCtaButton():!1};
_.M.computeForce16By9ThumbnailAspectRatio=function(){var S,p;return((S=this.data)==null?void 0:(p=S.responsiveContainerConfiguration)==null?void 0:p.enableContentSpecificAspectRatio)!==void 0?!this.data.responsiveContainerConfiguration.enableContentSpecificAspectRatio:!1};
_.M.onSectionReactiveDismissal=function(S,p,U){var Y,L;var I=(Y=this.data)==null?void 0:(L=Y.targetingContext)==null?void 0:L.targetGroupId;this&&I&&p.targetGroupId&&I.includes(p.targetGroupId)?(Y=this.rowIndex,S=Y===void 0?!1:!(p.behavior==="GROUP_DISMISSAL_BEHAVIOR_REMOVE_SUBSEQUENT_ITEMS"&&Y<=S)):S=!1;S&&(this.hidden=U)};
_.$u.Object.defineProperties(hL.prototype,{currentElementsPerRow:{configurable:!0,enumerable:!0,get:function(){if(this.useResponsiveGrid)return this.elementsPerRow;var S=this.elementsPerRow;this.isPostShelfRenderer()?S=this.postsPerRow:this.isSlimMediaShelfRenderer()?S=this.slimItemsPerRow:this.isLumiereShelfWithPosters()?S=this.slimItemsPerRow-1:this.isGameCardShelf()?S=this.gameCardsPerRow:this.isMiniGameCardShelf()&&(S=this.miniGameCardsPerRow);return S}},
isTruncated:{configurable:!0,enumerable:!0,get:function(){return this.isShortsShelf()&&_.y("kevlar_clean_feeds_show_more")&&this.isHomePage}},
hideBottomDivider:{configurable:!0,enumerable:!0,get:function(){var S;return!((S=this.data)==null||!S.isBottomDividerHidden)}},
hasChevronButtons:{configurable:!0,enumerable:!0,get:function(){var S,p;return!((S=this.data)==null||!S.previousButton)&&!((p=this.data)==null||!p.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 S;return((S=_.tW().resolve(_.oy).getCurrentPage())==null?void 0:S.pageSubtype)==="home"}},
thumbnailAriaHidden:{configurable:!0,enumerable:!0,get:function(){var S,p,U,Y;return!((S=this.data)==null?0:(p=S.thumbnail)==null?0:(U=p.accessibility)==null?0:(Y=U.accessibilityData)==null?0:Y.label)}},
initiallyIsExpanded:{configurable:!0,enumerable:!0,get:function(){var S;return!((S=this.data)==null||!S.isExpanded)}},
entitySelectorType:{configurable:!0,enumerable:!0,get:function(){var S;return((S=this.data)==null?void 0:S.entitySelectorType)||"RICH_SHELF_ENTITY_SELECTOR_TYPE_UNSPECIFIED"}},
rowIndex:{configurable:!0,enumerable:!0,get:function(){return this.data.rowIndex}}});
hL.prototype.onChildElementFocus=hL.prototype.onChildElementFocus;hL.prototype.handleRerenderDownloadsData=hL.prototype.handleRerenderDownloadsData;hL.prototype.onDataChange=hL.prototype.onDataChange;hL.prototype.onRowIndexChange=hL.prototype.onRowIndexChange;_.x([_.F(_.qH.YtRendererstamperBehavior),_.E("design:type",Object)],hL.prototype,"ytRendererstamperBehavior",void 0);_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],hL.prototype,"ytRendererBehavior",void 0);
_.x([_.F(_.Zh),_.E("design:type",Object)],hL.prototype,"ytdDismissibleItemBehavior",void 0);_.x([_.F(_.Aj.YtActionHandlerBehavior),_.E("design:type",Object)],hL.prototype,"actionHandlerBehavior",void 0);_.x([_.F(_.Xh),_.E("design:type",Object)],hL.prototype,"ytdReduxBehavior",void 0);_.x([_.g({computed:"computeUseResponsiveGrid(isLumiere, sizing)"}),_.E("design:type",Object)],hL.prototype,"useResponsiveGrid",void 0);_.x([_.g(),_.E("design:type",Object)],hL.prototype,"data",void 0);
_.x([_.g(),_.E("design:type",Number)],hL.prototype,"standardUnitMinWidth",void 0);_.x([_.g({reflectToAttribute:!0,value:3}),_.E("design:type",Number)],hL.prototype,"elementsPerRow",void 0);_.x([_.g({value:3}),_.E("design:type",Number)],hL.prototype,"postsPerRow",void 0);_.x([_.g({value:6}),_.E("design:type",Number)],hL.prototype,"slimItemsPerRow",void 0);_.x([_.g({value:6}),_.E("design:type",Number)],hL.prototype,"gameCardsPerRow",void 0);
_.x([_.g({value:6}),_.E("design:type",Number)],hL.prototype,"miniGameCardsPerRow",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],hL.prototype,"hidden",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],hL.prototype,"standardShelfMargins",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],hL.prototype,"isShowMoreHidden",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],hL.prototype,"isExpanded",void 0);
_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],hL.prototype,"isInnerShelf",void 0);_.x([_.g({reflectToAttribute:!0,computed:"isShortsShelf(data)"}),_.E("design:type",Boolean)],hL.prototype,"isShorts",void 0);_.x([_.g({reflectToAttribute:!0,computed:"isLumiereShelf(data)"}),_.E("design:type",Boolean)],hL.prototype,"isLumiere",void 0);_.x([_.g({reflectToAttribute:!0,computed:"hasGameBoxArtAvatarStyle(data)"}),_.E("design:type",Boolean)],hL.prototype,"hasBoxArtThumbnailStyle",void 0);
_.x([_.g({reflectToAttribute:!0,computed:"hasRoundedGameBoxArtAvatarStyle(data)"}),_.E("design:type",Boolean)],hL.prototype,"hasRoundedBoxArtThumbnailStyle",void 0);_.x([_.g({reflectToAttribute:!0,computed:"computeHasFeaturedBadge(data)"}),_.E("design:type",Boolean)],hL.prototype,"hasFeaturedBadge",void 0);_.x([_.g({reflectToAttribute:!0,computed:"computeHasPaygatedFeaturedBadge(data)"}),_.E("design:type",Boolean)],hL.prototype,"hasPaygatedFeaturedBadge",void 0);
_.x([_.g({reflectToAttribute:!0,computed:"computeHeaderHidden(data)"}),_.E("design:type",Boolean)],hL.prototype,"isHeaderHidden",void 0);_.x([_.g({selector:_.bQG}),_.E("design:type",Object)],hL.prototype,"allVideosCount",void 0);_.x([_.g({selector:ofq}),_.E("design:type",Object)],hL.prototype,"allPlaylistCount",void 0);_.x([_.g({selector:sgX}),_.E("design:type",Object)],hL.prototype,"haveSmartDownloadsCompleted",void 0);
_.x([_.g({selectorArgs:["entitySelectorType"],selector:function(S,p){if(_.y("kevlar_modern_downloads_page")&&p&&p!=="RICH_SHELF_ENTITY_SELECTOR_TYPE_UNSPECIFIED"){var U=S.entities;switch(p){case "RICH_SHELF_ENTITY_SELECTOR_TYPE_DOWNLOADS_PAGE_SMART_DOWNLOADS":p=_.j4(U);S=bO(p);var Y=_.nK(p);U=_.Gf(U);U=_.Aa(wue(Y,U,p.length));return{contents:S,subtitle:U};case "RICH_SHELF_ENTITY_SELECTOR_TYPE_SMART_DOWNLOADS_PAGE":return U=_.j4(U),{contents:bO(U)};case "RICH_SHELF_ENTITY_SELECTOR_TYPE_DOWNLOADS_PAGE_MANUAL_DOWNLOADS":return U=
_.rt(U),{contents:bO(U)};case "RICH_SHELF_ENTITY_SELECTOR_TYPE_OFFLINE_HOME_PAGE":return U=_.che(U),{contents:bO(U)};default:_.eP(new _.y7("Error: entitySelectorType defined but not matched in selector.",S,p))}}}}),
_.E("design:type",Object)],hL.prototype,"entityDrivenRichShelfData",void 0);_.x([_.g({reflectToAttribute:!0,computed:"showTopCtaButton(data, elementsPerRow, slimItemsPerRow)"}),_.E("design:type",Boolean)],hL.prototype,"hasTopCtaButton",void 0);_.x([_.g({reflectToAttribute:!0,computed:"showBottomCtaButton(data, elementsPerRow, slimItemsPerRow)"}),_.E("design:type",Boolean)],hL.prototype,"hasBottomCtaButton",void 0);
_.x([_.g({reflectToAttribute:!0,computed:"computeForce16By9ThumbnailAspectRatio(data)"}),_.E("design:type",Boolean)],hL.prototype,"force16By9ThumbnailAspectRatio",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],hL.prototype,"isShowLessHidden",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],hL.prototype,"restrictContentsOverflow",void 0);_.x([_.g({selector:_.z2d}),_.E("design:type",Boolean)],hL.prototype,"inlinePreviewIsEnabled",void 0);
_.x([_.g({computed:"computeSizing(data)"}),_.E("design:type",String)],hL.prototype,"sizing",void 0);_.x([_.g(),_.E("design:type",Boolean)],hL.prototype,"typographyBump",void 0);_.x([_.g(),_.E("design:type",Number)],hL.prototype,"itemWidth",void 0);_.x([_.g(),_.E("design:type",Object)],hL.prototype,"firstShownIndex",void 0);_.x([_.g(),_.E("design:type",Object)],hL.prototype,"horizontalOffset",void 0);_.x([_.g(),_.E("design:type",Object)],hL.prototype,"atEnd",void 0);
_.x([_.O2("#contents"),_.E("design:type",HTMLElement)],hL.prototype,"contents",void 0);_.x([_.T4("data.rowIndex"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],hL.prototype,"onRowIndexChange",null);_.x([_.T4("data"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],hL.prototype,"onDataChange",null);
_.x([_.T4("allVideosCount","allPlaylistsCount","haveSmartDownloadsCompleted"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],hL.prototype,"handleRerenderDownloadsData",null);_.x([_.Vd("focusin"),_.E("design:type",Function),_.E("design:paramtypes",[Event]),_.E("design:returntype")],hL.prototype,"onChildElementFocus",null);_.x([_.g({reflectToAttribute:!0}),_.e("data","isHomePage"),_.E("design:type",Boolean),_.E("design:paramtypes",[])],hL.prototype,"isTruncated",null);
_.x([_.g({reflectToAttribute:!0}),_.e("data"),_.E("design:type",Boolean),_.E("design:paramtypes",[])],hL.prototype,"hideBottomDivider",null);_.x([_.g({reflectToAttribute:!0}),_.e("data"),_.E("design:type",Object),_.E("design:paramtypes",[])],hL.prototype,"hasChevronButtons",null);_.x([_.e("firstShownIndex"),_.E("design:type",Object),_.E("design:paramtypes",[])],hL.prototype,"previousButtonOverride",null);
_.x([_.e("atEnd"),_.E("design:type",Object),_.E("design:paramtypes",[])],hL.prototype,"nextButtonOverride",null);_.x([_.e("data"),_.E("design:type",Boolean),_.E("design:paramtypes",[])],hL.prototype,"isHomePage",null);_.x([_.e("data"),_.E("design:type",Boolean),_.E("design:paramtypes",[])],hL.prototype,"thumbnailAriaHidden",null);_.x([_.g({reflectToAttribute:!0}),_.e("data"),_.E("design:type",Boolean),_.E("design:paramtypes",[])],hL.prototype,"initiallyIsExpanded",null);
_.x([_.e("data"),_.E("design:type",String),_.E("design:paramtypes",[])],hL.prototype,"entitySelectorType",null);hL=_.x([_.f({is:"ytd-rich-shelf-renderer",disableElementRegistration:!0})],hL);
_.KGc=_.pz()(hL,"ytd-rich-shelf-renderer",function(){if(ymt===void 0){var S=document.createElement("template");_.h(S,'\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');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);ymt=S}S=ymt;return S},{allowedProps:["data",
"isInnerShelf","standardUnitMinWidth"],mode:_.UW("kevlar_poly_si_batch_j028")?1:2});var bem;_.qm(STm,"yt-slimline-survey-view-model",{props:{data:_.x2}});var RJ=function(){var S=_.w.apply(this,arguments)||this;S.tileLottieAnimationRef={};S.backgroundLottieAnimationRef={};S.isOnHoverBehaviorForLottieEnabled=!0;S.useBiggerShowcaseImage=_.y("enable_desktop_search_bigger_thumbs");S.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction","yt-dark-mode-toggled-action":"onDarkModeToggledAction","yt-open-video-preview-action":"pauseLottie"};return S};
_.r(RJ,_.w);_.M=RJ.prototype;_.M.attached=function(){this.requestElementsPerRow();this.isDarkTheme=!!document.documentElement.hasAttribute("dark");this.data&&(this.currentColorData=this.isDarkTheme?this.data.darkColorData:this.data.lightColorData)};
_.M.configureRendererStamper=function(){return{primaryButton:{id:"primary-button",mapping:{buttonRenderer:"ytd-button-renderer",toggleButtonRenderer:"ytd-toggle-button-renderer"},reuseComponents:!0},secondaryButton:{id:"secondary-button",mapping:{buttonRenderer:"ytd-button-renderer",toggleButtonRenderer:"ytd-toggle-button-renderer"},reuseComponents:!0},"data.overflowButton":{id:"overflow-button",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:"ytd-button-renderer"}},
dismissedRenderer:{id:"dismissed",mapping:{notificationTextRenderer:"ytd-notification-text-renderer",notificationMultiActionRenderer:"ytd-notification-multi-action-renderer"}},"data.attachedSurvey":{id:"attached-survey",mapping:{slimlineSurveyViewModel:"yt-slimline-survey-view-model"}}}};
_.M.dataChanged=function(){if(this.data){this.requestElementsPerRow();this.updateButtonPalette();var S=this.hasStaticTile(this.data)||this.hasTileLottie(this.data);S!==this.hasTile&&this.set("hasTile",S);S=this.hasLogo(this.data)||!!this.data.badgeText;S!==this.hasMetadata&&this.set("hasMetadata",S);S=this.data.overflowButton?!1:S;S!==this.showLogoImage&&this.set("showLogoImage",S);this.currentColorData=this.isDarkTheme?this.data.darkColorData:this.data.lightColorData;this.maybeInitializeTileLottie();
this.maybeInitializeBackgroundLottie()}};
_.M.themeChanged=function(){this.data&&(this.set("currentColorData",this.isDarkTheme?this.data.darkColorData:this.data.lightColorData),this.maybeInitializeTileLottie(),this.maybeInitializeBackgroundLottie())};
_.M.currentColorChanged=function(){this.updateButtonPalette()};
_.M.computeBackgroundStyle=function(S){if(S&&this.data){var p=[];if(this.data.lightBackgroundImage&&this.data.darkBackgroundImage){var U=_.tS((this.isDarkTheme?this.data.darkBackgroundImage:this.data.lightBackgroundImage).thumbnails);U&&p.push('background-image: url("'+U+'");')}var Y;((Y=S.basicColorData)==null?void 0:Y.backgroundColor)!==void 0&&p.push("background-color: "+_.ev(S.basicColorData.backgroundColor)+";");return p.join("")}};
_.M.onDarkModeToggledAction=function(S){S!==this.isDarkTheme&&this.set("isDarkTheme",S)};
_.M.getCurrentLogo=function(S,p){if(S)return p?S.darkLogoImage:S.lightLogoImage};
_.M.getCurrentStaticTileImage=function(S,p){if(this.hasStaticTile(S))return S.darkTileImage?p?S.darkTileImage:S.tileImage:S.tileImage};
_.M.computeTitleStyle=function(S){if(this.data&&this.data.title&&S&&S.basicColorData&&S.basicColorData.foregroundTitleColor!==void 0)return"color:"+_.s1(S.basicColorData.foregroundTitleColor)+";"};
_.M.computeSubtitleStyle=function(S){if(this.data&&this.data.subtitle&&S&&S.basicColorData&&S.basicColorData.foregroundBodyColor!==void 0)return"color:"+_.s1(S.basicColorData.foregroundBodyColor)+";"};
_.M.computeSupplementalStyle=function(S){if(this.data&&this.data.supplementalText&&S&&S.supplementalTextColor!==void 0)return S=_.s1(S.supplementalTextColor),"color:"+S+";--yt-endpoint-color:"+S+";--yt-endpoint-hover-color:"+S+";--yt-endpoint-visited-color:"+S+";--yt-formatted-string-bold-font-weight:700;"};
_.M.computeBadgeStyle=function(S){if(this.data&&this.data.badgeText&&S&&S.basicColorData&&S.basicColorData.foregroundActivatedColor!==void 0)return"color:"+_.s1(S.basicColorData.foregroundActivatedColor)+";"};
_.M.computeDismissIconStyle=function(S){var p,U;if((S==null?0:(p=S.dismissButtonColorData)==null?0:p.foregroundTitleColor)&&(S==null?0:(U=S.dismissButtonColorData)==null?0:U.backgroundColor))return"--yt-button-color:"+_.ev(S.dismissButtonColorData.foregroundTitleColor)+";background-color:"+_.ev(S.dismissButtonColorData.backgroundColor)+";"};
_.M.computeOverflowIconStyle=function(S){var p,U;if((S==null?0:(p=S.dismissButtonColorData)==null?0:p.foregroundTitleColor)&&(S==null?0:(U=S.dismissButtonColorData)==null?0:U.backgroundColor))return"--ytd-menu-renderer-button-color:"+_.ev(S.dismissButtonColorData.foregroundTitleColor)+";background-color:"+_.ev(S.dismissButtonColorData.backgroundColor)+";--yt-spec-icon-active-other:"+_.ev(S.dismissButtonColorData.foregroundTitleColor)+";"};
_.M.computeBannerStyle=function(S){return S?S.toLowerCase().replace(/_/g,"-"):""};
_.M.computeLocation=function(S){switch(S==null?void 0:S.location){case "LOCATION_CONTEXT_SEARCH_PAGE":return"search";case "LOCATION_CONTEXT_SLOT_ZERO_HOME":return"slot-zero-home"}};
_.M.shouldShowTileSection=function(S,p,U){return!this.shouldExpandLogo(S,p,U)&&p};
_.M.shouldShowExpandedLogoSection=function(S,p,U){return this.shouldExpandLogo(S,p,U)&&S!==void 0&&this.hasLogo(S)};
_.M.shouldExpandLogo=function(S,p,U){return S&&p?!1:U>=2};
_.M.hasStaticTile=function(S){return!(S==null||!S.tileImage)};
_.M.hasTileLottie=function(S){var p;return!!(S==null?0:(p=S.tileLottie)==null?0:p.url)};
_.M.hasLogo=function(S){return this.getCurrentLogo(S,this.isDarkTheme)!==void 0};
_.M.getLogoHeight=function(S){return this.logoWithPadding(S)?"26":"20"};
_.M.getExpandedLogoHeight=function(S){return this.logoWithPadding(S)?"31":"24"};
_.M.getLogoImageId=function(S){return this.logoWithPadding(S)?"logo-image-with-padding":"logo-image"};
_.M.hasBackgroundLottie=function(S){var p;return!!(S==null?0:(p=S.backgroundLottie)==null?0:p.url)};
_.M.maybePlayLottie=function(){if(this.isOnHoverBehaviorForLottieEnabled){var S,p;(S=this.tileLottieAnimationRef)==null||(p=S.lottieEl)==null||p.play();var U,Y;(U=this.backgroundLottieAnimationRef)==null||(Y=U.lottieEl)==null||Y.play()}};
_.M.maybePauseLottie=function(){if(this.isOnHoverBehaviorForLottieEnabled){var S,p;(S=this.tileLottieAnimationRef)==null||(p=S.lottieEl)==null||p.pause();var U,Y;(U=this.backgroundLottieAnimationRef)==null||(Y=U.lottieEl)==null||Y.pause()}};
_.M.pauseLottie=function(){var S,p;(S=this.tileLottieAnimationRef)==null||(p=S.lottieEl)==null||p.pause();var U,Y;(U=this.backgroundLottieAnimationRef)==null||(Y=U.lottieEl)==null||Y.pause();this.isOnHoverBehaviorForLottieEnabled||(this.isOnHoverBehaviorForLottieEnabled=!0)};
_.M.performPrimaryButtonAction=function(){var S,p,U;((S=this.data)==null?0:(p=S.primaryButton)==null?0:(U=p.buttonRenderer)==null?0:U.command)&&this.ytComponentBehavior.resolveCommand(this.data.primaryButton.buttonRenderer.command)};
_.M.requestElementsPerRow=function(){_.cv(this.hostElement,"yt-request-elements-per-row")};
_.M.updateButtonPalette=function(){if(this.data&&this.currentColorData){var S;((S=this.data.dismissButton)==null?0:S.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 p;if((p=this.data.primaryButton)==null?0:p.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 U;if((U=this.data.secondaryButton)==
null?0:U.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 Y;((Y=this.data.primaryButton)==null?0:Y.toggleButtonRenderer)&&this.set("primaryButton",{toggleButtonRenderer:Object.assign({},this.data.primaryButton.toggleButtonRenderer)});var L;((L=this.data.secondaryButton)==null?0:L.toggleButtonRenderer)&&this.set("secondaryButton",{toggleButtonRenderer:Object.assign({},this.data.secondaryButton.toggleButtonRenderer)})}};
_.M.maybeInitializeTileLottie=function(){if(this.hasTileLottie(this.data)){var S=this.getTileLottieDataBasedOnTheme(),p,U;if(S.url!==((p=this.tileLottiePlayerProps)==null?void 0:(U=p.animationConfig)==null?void 0:U.path)){var Y,L;(Y=this.tileLottieAnimationRef)==null||(L=Y.lottieEl)==null||L.destroy();var I;this.isOnHoverBehaviorForLottieEnabled=!((I=S.settings)==null?0:I.autoplay);var V,W;this.tileLottiePlayerProps={animationRef:this.tileLottieAnimationRef,animationConfig:{name:this.isDarkTheme?
"STATEMENT_BANNER_TILE_LOTTIE_DARK":"STATEMENT_BANNER_TILE_LOTTIE_LIGHT",autoplay:(W=(V=S.settings)==null?void 0:V.autoplay)!=null?W:!1,loop:this.getLottieLoopValue(S.settings),renderer:"svg",rendererSettings:{viewBoxOnly:!1,preserveAspectRatio:"xMidYMid slice"}},listeners:{complete:this.onLottieComplete.bind(this)}};typeof S.url==="string"?this.tileLottiePlayerProps.animationConfig.path=S.url:this.tileLottiePlayerProps.animationConfig.animationData=S.url}}};
_.M.getOverflowButton=function(S){return _.b(S.overflowButton,ufe)};
_.M.maybeInitializeBackgroundLottie=function(){if(this.hasBackgroundLottie(this.data)){var S=this.getBackgroundLottieDataBasedOnTheme(),p,U;if(S.url!==((p=this.backgroundLottiePlayerProps)==null?void 0:(U=p.animationConfig)==null?void 0:U.path)){var Y,L;(Y=this.backgroundLottieAnimationRef)==null||(L=Y.lottieEl)==null||L.destroy();var I;this.isOnHoverBehaviorForLottieEnabled=!((I=S.settings)==null?0:I.autoplay);var V,W;this.backgroundLottiePlayerProps={animationRef:this.backgroundLottieAnimationRef,
animationConfig:{name:this.isDarkTheme?"STATEMENT_BANNER_BACKGROUND_LOTTIE_DARK":"STATEMENT_BANNER_BACKGROUND_LOTTIE_LIGHT",autoplay:(W=(V=S.settings)==null?void 0:V.autoplay)!=null?W:!1,loop:this.getLottieLoopValue(S.settings),renderer:"svg",rendererSettings:{viewBoxOnly:!1,preserveAspectRatio:"xMidYMid slice"}},listeners:{complete:this.onLottieComplete.bind(this)}};typeof S.url==="string"?this.backgroundLottiePlayerProps.animationConfig.path=S.url:this.backgroundLottiePlayerProps.animationConfig.animationData=
S.url}}};
_.M.onLottieComplete=function(){if(!this.isOnHoverBehaviorForLottieEnabled){var S;((S=this.tileLottieAnimationRef)==null?void 0:S.lottieEl)!==void 0&&(this.tileLottieAnimationRef.lottieEl.loop=!0);var p;((p=this.backgroundLottieAnimationRef)==null?void 0:p.lottieEl)!==void 0&&(this.backgroundLottieAnimationRef.lottieEl.loop=!0);this.isOnHoverBehaviorForLottieEnabled=!0}};
_.M.getTileLottieDataBasedOnTheme=function(){var S;if(this.isDarkTheme&&((S=this.data)==null?0:S.darkThemeTileLottie))return this.data.darkThemeTileLottie;var p;return((p=this.data)==null?0:p.tileLottie)?this.data.tileLottie:{}};
_.M.getBackgroundLottieDataBasedOnTheme=function(){var S;if(this.isDarkTheme&&((S=this.data)==null?0:S.darkThemeBackgroundLottie))return this.data.darkThemeBackgroundLottie;var p;return((p=this.data)==null?0:p.backgroundLottie)?this.data.backgroundLottie:{}};
_.M.onUpdateElementsPerRowAction=function(S){S&&this.elementsPerRow!==S&&(this.elementsPerRow=S)};
_.M.getLottieLoopValue=function(S){return S?S.loop!==void 0?S.loop:S.loopCount?S.loopCount-1:!0:!0};
_.M.logoWithPadding=function(S){var p,U,Y;return(S=(p=this.getCurrentLogo(S,this.isDarkTheme))==null?void 0:(U=p.thumbnails)==null?void 0:(Y=U[0])==null?void 0:Y.height)&&S%31===0?!0:!1};
RJ.prototype.currentColorChanged=RJ.prototype.currentColorChanged;RJ.prototype.themeChanged=RJ.prototype.themeChanged;RJ.prototype.dataChanged=RJ.prototype.dataChanged;_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],RJ.prototype,"ytRendererBehavior",void 0);_.x([_.F(_.qH.YtRendererstamperBehavior),_.E("design:type",Object)],RJ.prototype,"ytRendererstamperBehavior",void 0);_.x([_.F(_.Zh),_.E("design:type",Object)],RJ.prototype,"ytdDismissibleItemBehavior",void 0);
_.x([_.F(_.Aj.YtActionHandlerBehavior),_.E("design:type",Object)],RJ.prototype,"actionHandlerBehavior",void 0);_.x([_.F(_.eL.YtComponentBehavior),_.E("design:type",Object)],RJ.prototype,"ytComponentBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],RJ.prototype,"data",void 0);_.x([_.g(),_.E("design:type",Object)],RJ.prototype,"primaryButton",void 0);_.x([_.g(),_.E("design:type",Object)],RJ.prototype,"secondaryButton",void 0);
_.x([_.g({reflectToAttribute:!0,value:3}),_.E("design:type",Number)],RJ.prototype,"elementsPerRow",void 0);_.x([_.g({reflectToAttribute:!0,value:!1}),_.E("design:type",Boolean)],RJ.prototype,"isDarkTheme",void 0);_.x([_.g({reflectToAttribute:!0,value:!1}),_.E("design:type",Boolean)],RJ.prototype,"hasTile",void 0);_.x([_.g({reflectToAttribute:!0,value:!1}),_.E("design:type",Boolean)],RJ.prototype,"hasMetadata",void 0);
_.x([_.g({reflectToAttribute:!0,value:!1}),_.E("design:type",Boolean)],RJ.prototype,"showLogoImage",void 0);_.x([_.g(),_.E("design:type",Object)],RJ.prototype,"currentColorData",void 0);_.x([_.g({reflectToAttribute:!0,computed:"computeBannerStyle(data.style)"}),_.E("design:type",String)],RJ.prototype,"bannerStyle",void 0);_.x([_.g({reflectToAttribute:!0,computed:"computeLocation(data.shelfContext)"}),_.E("design:type",String)],RJ.prototype,"location",void 0);
_.x([_.g(),_.E("design:type",Object)],RJ.prototype,"tileLottiePlayerProps",void 0);_.x([_.g(),_.E("design:type",Object)],RJ.prototype,"tileLottieAnimationRef",void 0);_.x([_.g(),_.E("design:type",Object)],RJ.prototype,"backgroundLottiePlayerProps",void 0);_.x([_.g(),_.E("design:type",Object)],RJ.prototype,"backgroundLottieAnimationRef",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],RJ.prototype,"useBiggerShowcaseImage",void 0);
_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Boolean)],RJ.prototype,"isHideEnclosingAction",void 0);_.x([_.z4("data"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],RJ.prototype,"dataChanged",null);_.x([_.z4("isDarkTheme"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],RJ.prototype,"themeChanged",null);
_.x([_.z4("currentColorData"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],RJ.prototype,"currentColorChanged",null);RJ=_.x([_.f({is:"ytd-statement-banner-renderer",disableElementRegistration:!0})],RJ);
_.C(RJ,"ytd-statement-banner-renderer",function(){if(bem!==void 0)return bem;var S=document.createElement("template");_.h(S,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-statement-banner-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" on-mouseleave="maybePauseLottie" on-mouseover="maybePlayLottie" class="style-scope ytd-statement-banner-renderer">\n  <div id="statement-banner-content" class="style-scope ytd-statement-banner-renderer">\n    <div id="background-content" style$="[[computeBackgroundStyle(currentColorData)]]" class="style-scope ytd-statement-banner-renderer">\n      <ytd-lottie-player id="background-lottie" data="[[backgroundLottiePlayerProps]]" hidden="[[!hasBackgroundLottie(data)]]" class="style-scope ytd-statement-banner-renderer">\n    </ytd-lottie-player></div>\n    <div id="foreground-content" class="style-scope ytd-statement-banner-renderer">\n      <div class="showcase-image style-scope ytd-statement-banner-renderer" hidden="[[!shouldShowTileSection(data, hasTile, elementsPerRow)]]">\n        <div hidden="[[!hasTile]]" id="tile-container" on-click="performPrimaryButtonAction" class="style-scope ytd-statement-banner-renderer">\n          <yt-img-shadow id="tile-image" hidden="[[!hasStaticTile(data)]]" object-fit="CONTAIN" thumbnail="[[getCurrentStaticTileImage(data, isDarkTheme)]]" class="style-scope ytd-statement-banner-renderer">\n          </yt-img-shadow>\n          <ytd-lottie-player id="tile-lottie" data="[[tileLottiePlayerProps]]" hidden="[[!hasTileLottie(data)]]" class="style-scope ytd-statement-banner-renderer">\n        </ytd-lottie-player></div>\n      </div>\n      <div class="showcase-image style-scope ytd-statement-banner-renderer" hidden="[[!shouldShowExpandedLogoSection(data, hasTile, elementsPerRow)]]" id="logo-container">\n        <div id="logo-wrapper" class="style-scope ytd-statement-banner-renderer">\n          <yt-img-shadow id="logo-image" height="[[getExpandedLogoHeight(data)]]" thumbnail="[[getCurrentLogo(data, isDarkTheme)]]" class="style-scope ytd-statement-banner-renderer">\n          </yt-img-shadow>\n        </div>\n      </div>\n      <div id="details-container" class="style-scope ytd-statement-banner-renderer">\n        <div id="text-container" class="style-scope ytd-statement-banner-renderer">\n          <div id="metadata-container" hidden="[[!showLogoImage]]" class="style-scope ytd-statement-banner-renderer">\n            <yt-img-shadow dimension="height" height$="[[getLogoHeight(data)]]" hidden="[[shouldExpandLogo(data, hasTile, elementsPerRow)]]" id$="[[getLogoImageId(data)]]" thumbnail="[[getCurrentLogo(data, isDarkTheme)]]" class="style-scope ytd-statement-banner-renderer">\n            </yt-img-shadow>\n            <div id="badge-container" style$="[[computeBadgeStyle(currentColorData)]]" class="style-scope ytd-statement-banner-renderer">\n              <yt-formatted-string id="badge" text="[[data.badgeText]]" class="style-scope ytd-statement-banner-renderer"></yt-formatted-string>\n            </div>\n          </div>\n          <div id="dynamic-title" style$="[[computeTitleStyle(currentColorData)]]" on-click="performPrimaryButtonAction" class="style-scope ytd-statement-banner-renderer">\n            <yt-dynamic-sizing-formatted-string font-family="[[data.titleFontFamily]]" max-font-size="36" max-height="110" max-lines="2" min-font-size="20" text="[[data.title]]" class="style-scope ytd-statement-banner-renderer">\n            </yt-dynamic-sizing-formatted-string>\n            <div id="new-badge-container" hidden="[[!data.overflowButton]]" style$="[[computeTitleStyle(currentColorData)]]" class="style-scope ytd-statement-banner-renderer">\n              <yt-formatted-string id="badge" text="[[data.badgeText]]" class="style-scope ytd-statement-banner-renderer"></yt-formatted-string>\n            </div>\n          </div>\n          <div id="subtitle-container" style$="[[computeSubtitleStyle(currentColorData)]]" class="style-scope ytd-statement-banner-renderer">\n            <yt-formatted-string id="subtitle" text="[[data.subtitle]]" class="style-scope ytd-statement-banner-renderer"></yt-formatted-string>\n          </div>\n          <div id="supplemental-text-container" hidden="[[!data.supplementalText]]" style$="[[computeSupplementalStyle(currentColorData)]]" class="style-scope ytd-statement-banner-renderer">\n            <yt-formatted-string id="supplemental-text" text="[[data.supplementalText]]" class="style-scope ytd-statement-banner-renderer">\n            </yt-formatted-string>\n          </div>\n        </div>\n        <div id="button-container" class="style-scope ytd-statement-banner-renderer">\n          <div id="button-wrapper" class="style-scope ytd-statement-banner-renderer">\n            <div id="primary-button" class="style-scope ytd-statement-banner-renderer"></div>\n            <div id="secondary-button" class="style-scope ytd-statement-banner-renderer"></div>\n          </div>\n        </div>\n      </div>\n      <div id="dismiss-button" hidden="[[data.overflowButton]]" style$="[[computeDismissIconStyle(currentColorData, elementsPerRow)]]" class="style-scope ytd-statement-banner-renderer"></div>\n      <div id="overflow-button" hidden="[[!data.overflowButton]]" style$="[[computeOverflowIconStyle(currentColorData)]]" class="style-scope ytd-statement-banner-renderer"></div>\n    </div>\n  </div>\n  <div id="attached-survey" class="style-scope ytd-statement-banner-renderer"></div>\n</div>\n<div id="dismissed" class="style-scope ytd-statement-banner-renderer"></div>\n');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);return bem=S},{mode:1});var jzw;var F6=function(){var S=_.w.apply(this,arguments)||this;S.isSearch=!1;S.hideShelfHeader=!1;S.engagementPanel=!1;S.disableMouseScroll=!0;S.useFloorScrolling=!0;S.modernTypography=_.y("web_modern_typography");return S};
_.r(F6,_.w);F6.prototype.onDataChanged=function(){this.set("data.nextButton",{buttonRenderer:{style:"STYLE_DEFAULT",size:"SIZE_DEFAULT",icon:{iconType:"CHEVRON_RIGHT"},accessibility:{label:_.Oh("HORIZONTAL_LIST_NEXT_LABEL",void 0,"Next")}}});this.set("data.previousButton",{buttonRenderer:{style:"STYLE_DEFAULT",size:"SIZE_DEFAULT",icon:{iconType:"CHEVRON_LEFT"},accessibility:{label:_.Oh("HORIZONTAL_LIST_PREVIOUS_LABEL",void 0,"Previous")}}})};
F6.prototype.configureRendererStamper=function(){return{"data.button":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
F6.prototype.onDataChanged=F6.prototype.onDataChanged;_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],F6.prototype,"ytRendererBehavior",void 0);_.x([_.F(_.qH.YtRendererstamperBehavior),_.E("design:type",Object)],F6.prototype,"ytRendererstamperBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],F6.prototype,"isSearch",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],F6.prototype,"hideShelfHeader",void 0);
_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],F6.prototype,"engagementPanel",void 0);_.x([_.g(),_.E("design:type",Object)],F6.prototype,"disableMouseScroll",void 0);_.x([_.g(),_.E("design:type",Object)],F6.prototype,"useFloorScrolling",void 0);_.x([_.g(),_.E("design:type",Object)],F6.prototype,"data",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],F6.prototype,"modernTypography",void 0);
_.x([_.z4("data"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],F6.prototype,"onDataChanged",null);F6=_.x([_.f({is:"ytd-reel-shelf-renderer",disableElementRegistration:!0})],F6);
_.C(F6,"ytd-reel-shelf-renderer",function(){if(jzw!==void 0)return jzw;var S=document.createElement("template");_.h(S,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-reel-shelf-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="title-container" hidden="[[!data.title]]" class="style-scope ytd-reel-shelf-renderer">\n  <h2 class="style-scope ytd-reel-shelf-renderer">\n    <yt-icon id="icon" disable-upgrade$="[[!data.icon.iconType]]" hidden="[[!data.icon.iconType]]" icon="[[data.icon.iconType]]" class="style-scope ytd-reel-shelf-renderer">\n    </yt-icon>\n    <span id="title" class="style-scope ytd-reel-shelf-renderer">[[getSimpleString(data.title)]]</span>\n    <span id="title-superscript" class="style-scope ytd-reel-shelf-renderer">[[getSimpleString(data.titleSuperscript)]]</span>\n  </h2>\n  <div id="menu" class="style-scope ytd-reel-shelf-renderer"></div>\n</div>\n<div id="contents" class="style-scope ytd-reel-shelf-renderer">\n  <yt-horizontal-list-renderer data="[[data]]" disable-scroll-event-listener="[[disableMouseScroll]]" engagement-panel="[[engagementPanel]]" hide-shelf-header="[[hideShelfHeader]]" is-search="[[isSearch]]" thumbnail-height="[[thumbnailHeight]]" use-floor-scrolling="[[useFloorScrolling]]" class="style-scope ytd-reel-shelf-renderer">\n  </yt-horizontal-list-renderer>\n</div>\n');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);return jzw=S},{mode:_.UW("kevlar_poly_si_batch_j028")?1:2});var rme;var GOj=_.$k(function(S){var p=S.data;S=S.useSmallFont;var U={},Y={};return _.H("yt-channel-external-link-view-model",{class:"yt-channel-external-link-view-model-wiz"},_.H(_.n,{cond:function(){return p().favicon},
then:function(L){return _.H(_.of,{data:L,className:"yt-channel-external-link-view-model-wiz__favicon",alt:"",preserveWidth:!0,preserveHeight:!0,targetWidth:24,targetHeight:24})}}),_.H("div",{class:"yt-channel-external-link-view-model-wiz__container"},_.H(_.i6,{text:function(){return p().title},
className:_.VD("yt-channel-external-link-view-model-wiz__title",(U["yt-channel-external-link-view-model-wiz__title--title-small-font"]=S,U)),ellipsisTruncate:!0,userInput:!0}),_.H(_.i6,{text:function(){return p().link},
className:_.VD("yt-channel-external-link-view-model-wiz__link",(Y["yt-channel-external-link-view-model-wiz__link--link-small-font"]=S,Y)),ellipsisTruncate:!0,linkInheritColor:!0,userInput:!0})))},"Hb");
GOj.idomCompat=!0;_.qm(GOj,"yt-channel-external-link-view-model",{props:{data:_.x2,useSmallFont:_.x2}});_.Ry("itemSectionRenderer","aboutChannelRenderer","ytd-about-channel-renderer");var X6=function(){var S=_.w.apply(this,arguments)||this;S.revealButtonClass="button";S.businessEmailDisplayState="HIDE_SECTION";return S};
_.r(X6,_.w);_.M=X6.prototype;_.M.refit=function(){var S=this;_.uK(function(){_.pp(S.hostElement,"yt-refit-popups-action")});
_.oH(this,function(){_.pp(S.hostElement,"yt-refit-popups-action")})};
_.M.onBusinessEmailClick=function(){this.metadata.bypassBusinessEmailCaptcha?this.businessEmailDisplayState="BUSINESS_EMAIL":(_.uL("https://www.google.com/recaptcha/api.js?trustedtypes=true"),this.businessEmailDisplayState="CAPTCHA")};
_.M.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"};
_.M.detached=function(){this.businessEmailErrorMessage=this.businessEmail=void 0;this.businessEmailDisplayState="HIDE_SECTION"};
_.M.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"}}}};
_.M.computeEmailHref=function(S){return"mailto:"+S};
_.M.computeSafeUrl=function(S){if(S)return _.JA(S)};
_.M.linkEndpoint=function(S){return _.b(S.onTap,_.Z$)};
_.M.linkEndpointToHref=function(S){return this.ytComponentBehavior.computeHref_(this.linkEndpoint(S))};
_.M.onYtServiceRequestCompleted=function(S){var p;if((p=S.detail.data)==null?0:p.businessEmail)this.businessEmail=S.detail.data.businessEmail,this.businessEmailDisplayState="BUSINESS_EMAIL";else{var U;if((U=S.detail.data)==null?0:U.errorMessage)this.businessEmailErrorMessage=S.detail.data.errorMessage,this.businessEmailDisplayState="ERROR_MESSAGE"}};
_.M.onBusinessEmailCaptchaSubmit=function(){if(this.metadata.channelId&&this.metadata.onBusinessEmailRevealClickCommand){var S=this.JSC$14120_captchaTextarea.value;if(S){S={recaptcha_response_token:S,channel_id:this.metadata.channelId};var p=_.b(this.metadata.onBusinessEmailRevealClickCommand,_.Z$);p&&this.ytComponentBehavior.resolveCommand(p,{form:S})}}};
_.M.recaptchaSiteKey=function(){return"6Lf39AMTAAAAALPbLZdcrWDa8Ygmgk_fmGmrlRog"};
_.$u.Object.defineProperties(X6.prototype,{metadata:{configurable:!0,enumerable:!0,get:function(){var S;return _.b((S=this.data)==null?void 0:S.metadata,Z4t)}},
revealButton:{configurable:!0,enumerable:!0,get:function(){return _.b(this.metadata.businessEmailRevealButton,_.K6)}},
channelDisplayUrl:{configurable:!0,enumerable:!0,get:function(){if(this.metadata.displayCanonicalChannelUrl)return this.metadata.displayCanonicalChannelUrl;if(this.metadata.canonicalChannelUrl){var S=new URL(this.metadata.canonicalChannelUrl);return S.host+S.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 _.b(this.metadata.learnMoreOnTap,_.Z$)}}});
X6.prototype.onYtServiceRequestCompleted=X6.prototype.onYtServiceRequestCompleted;X6.prototype.businessEmailMetadataChanged=X6.prototype.businessEmailMetadataChanged;X6.prototype.refit=X6.prototype.refit;_.x([_.F(_.eL.YtComponentBehavior),_.E("design:type",Object)],X6.prototype,"ytComponentBehavior",void 0);_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],X6.prototype,"ytRendererBehavior",void 0);
_.x([_.F(_.qH.YtRendererstamperBehavior),_.E("design:type",Object)],X6.prototype,"ytRendererstamperBehavior",void 0);_.x([_.O2("#g-recaptcha-response"),_.E("design:type",HTMLTextAreaElement)],X6.prototype,"JSC$14120_captchaTextarea",void 0);_.x([_.g(),_.E("design:type",Object)],X6.prototype,"data",void 0);_.x([_.g(),_.E("design:type",Object)],X6.prototype,"revealButtonClass",void 0);_.x([_.e("data"),_.E("design:type",Object),_.E("design:paramtypes",[])],X6.prototype,"metadata",null);
_.x([_.e("metadata"),_.E("design:type",Object),_.E("design:paramtypes",[])],X6.prototype,"revealButton",null);_.x([_.e("metadata"),_.E("design:type",Object),_.E("design:paramtypes",[])],X6.prototype,"channelDisplayUrl",null);_.x([_.z4("metadata"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],X6.prototype,"refit",null);_.x([_.e("metadata"),_.E("design:type",Object),_.E("design:paramtypes",[])],X6.prototype,"formattedDescription",null);
_.x([_.e("metadata","learnMoreCommand"),_.E("design:type",Boolean),_.E("design:paramtypes",[])],X6.prototype,"shouldRendereVerifiedPhoneStatus",null);_.x([_.e("metadata"),_.E("design:type",Object),_.E("design:paramtypes",[])],X6.prototype,"learnMoreCommand",null);_.x([_.g(),_.E("design:type",String)],X6.prototype,"businessEmailDisplayState",void 0);_.x([_.g(),_.E("design:type",String)],X6.prototype,"businessEmail",void 0);
_.x([_.g(),_.E("design:type",String)],X6.prototype,"businessEmailErrorMessage",void 0);_.x([_.z4("metadata"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],X6.prototype,"businessEmailMetadataChanged",null);_.x([_.Vd("yt-service-request-completed"),_.E("design:type",Function),_.E("design:paramtypes",[CustomEvent]),_.E("design:returntype")],X6.prototype,"onYtServiceRequestCompleted",null);
X6=_.x([_.f({is:"ytd-about-channel-renderer",disableElementRegistration:!0})],X6);
_.C(X6,"ytd-about-channel-renderer",function(){if(rme!==void 0)return rme;var S=document.createElement("template");_.h(S,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-about-channel-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="about-container" class="style-scope ytd-about-channel-renderer">\n  <div id="header-row" hidden="[[!metadata.aboutPanelTitle]]" class="style-scope ytd-about-channel-renderer">\n    <h1 class="style-scope ytd-about-channel-renderer">[[metadata.aboutPanelTitle]]</h1>\n    <div id="dismiss-button" class="style-scope ytd-about-channel-renderer"></div>\n  </div>\n\n  <yt-attributed-string class="subheadline style-scope ytd-about-channel-renderer" data="[[metadata.descriptionLabel]]" hidden="[[!formattedDescription]]">\n  </yt-attributed-string>\n  <yt-attributed-string id="description-container" class="about-section style-scope ytd-about-channel-renderer" data="[[formattedDescription]]" hidden="[[!formattedDescription]]" user-input="true">\n  </yt-attributed-string>\n\n  <div id="bio-container" class="about-section style-scope ytd-about-channel-renderer" hidden="[[!metadata.formattedBio]]">\n    <h2 class="subheadline style-scope ytd-about-channel-renderer">[[metadata.artistBioLabel]]</h2>\n    <yt-attributed-string id="bio-container" class="about-section style-scope ytd-about-channel-renderer" data="[[metadata.artistBio]]" hidden="[[!metadata.artistBio]]" user-input="true">\n    </yt-attributed-string>\n    <p class="style-scope ytd-about-channel-renderer">[[metadata.artistBio]]</p>\n  </div>\n\n  <div id="links-section" hidden="[[!metadata.links]]" class="style-scope ytd-about-channel-renderer">\n    <yt-attributed-string class="subheadline style-scope ytd-about-channel-renderer" data="[[metadata.customLinksLabel]]">\n    </yt-attributed-string>\n    <div id="link-list-container" class="style-scope ytd-about-channel-renderer">\n    </div>\n  </div>\n  <div id="custom-links-section" hidden="[[!metadata.customLinks]]" class="style-scope ytd-about-channel-renderer">\n    <yt-attributed-string class="subheadline style-scope ytd-about-channel-renderer" data="[[metadata.customLinksLabel]]">\n    </yt-attributed-string>\n    <table id="links-container" class="about-section style-scope ytd-about-channel-renderer">\n      <template is="dom-repeat" items="[[metadata.customLinks]]" as="link" class="style-scope ytd-about-channel-renderer">\n        <tr hidden="[[!linkEndpointToHref(link)]]" class="style-scope ytd-about-channel-renderer">\n          <td class="image-container style-scope ytd-about-channel-renderer">\n            <yt-image data="[[link.favicon]]" width="32" class="style-scope ytd-about-channel-renderer"></yt-image>\n          </td>\n          <td class="href-container style-scope ytd-about-channel-renderer">\n            <a class="yt-simple-endpoint style-scope ytd-about-channel-renderer" href$="[[linkEndpointToHref(link)]]" data="[[linkEndpoint(link)]]">[[link.label]]</a>\n          </td>\n        </tr>\n      </template>\n    </table>\n  </div>\n\n  <div id="additional-info-container" class="about-section style-scope ytd-about-channel-renderer">\n    <yt-attributed-string class="subheadline style-scope ytd-about-channel-renderer" data="[[metadata.additionalInfoLabel]]"></yt-attributed-string>\n    <table class="style-scope ytd-about-channel-renderer">\n      <tbody class="style-scope ytd-about-channel-renderer"><tr class="description-item style-scope ytd-about-channel-renderer" hidden="[[equals(businessEmailDisplayState, \'HIDE_SECTION\')]]">\n        <td class="style-scope ytd-about-channel-renderer">\n          <yt-icon icon="mail" class="style-scope ytd-about-channel-renderer"></yt-icon>\n        </td>\n\n        <td hidden="[[!equals(businessEmailDisplayState, \'SIGN_IN_REQUIRED\')]]" class="style-scope ytd-about-channel-renderer">\n          <yt-attributed-string data="[[metadata.signInForBusinessEmail]]" class="style-scope ytd-about-channel-renderer"></yt-attributed-string>\n        </td>\n\n        <td id="view-email-button-container" hidden="[[!equals(businessEmailDisplayState, \'REVEAL_BUTTON\')]]" class="style-scope ytd-about-channel-renderer">\n          <yt-button-view-model classes="[[revealButtonClass]]" data="[[revealButton]]" scoping-class-name="[[is]]" on-click="onBusinessEmailClick" class="style-scope ytd-about-channel-renderer">\n          </yt-button-view-model>\n        </td>\n\n        <td hidden="[[!equals(businessEmailDisplayState, \'CAPTCHA\')]]" class="style-scope ytd-about-channel-renderer">\n          \n          <div id="recaptcha" class="g-recaptcha style-scope ytd-about-channel-renderer" data-sitekey$="[[recaptchaSiteKey()]]"></div>\n          <button id="submit-btn" class="yt-uix-button yt-uix-button-size-default yt-uix-button-primary style-scope ytd-about-channel-renderer" on-click="onBusinessEmailCaptchaSubmit">\n            <span class="yt-uix-button-content style-scope ytd-about-channel-renderer">[[metadata.businessEmailSubmitCaptchaLabel]] </span>\n          </button>\n        </td>\n        <td hidden="[[!equals(businessEmailDisplayState, \'ERROR_MESSAGE\')]]" class="style-scope ytd-about-channel-renderer">\n          [[businessEmailErrorMessage]]\n        </td>\n\n        <td hidden="[[!equals(businessEmailDisplayState, \'BUSINESS_EMAIL\')]]" class="style-scope ytd-about-channel-renderer">\n          <a id="email" class="yt-simple-endpoint style-scope ytd-about-channel-renderer" href$="[[computeEmailHref(businessEmail)]]" target="_blank">[[businessEmail]]</a>\n        </td>\n      </tr>\n\n      <tr class="description-item style-scope ytd-about-channel-renderer" hidden="[[!shouldRendereVerifiedPhoneStatus]]">\n        <td class="style-scope ytd-about-channel-renderer">\n          <yt-icon icon="phone" class="style-scope ytd-about-channel-renderer"></yt-icon>\n        </td>\n        <td class="style-scope ytd-about-channel-renderer">\n          <span class="style-scope ytd-about-channel-renderer">[[metadata.phoneVerifiedLabel]]</span>\n          <a class="yt-simple-endpoint phone-status-info style-scope ytd-about-channel-renderer" href$="[[computeHref_(learnMoreCommand)]]" target="_blank">\n            <yt-icon icon="info" class="style-scope ytd-about-channel-renderer"></yt-icon>\n          </a>\n        </td>\n      </tr>\n\n      <tr class="description-item style-scope ytd-about-channel-renderer" hidden="[[!channelDisplayUrl]]">\n        <td class="style-scope ytd-about-channel-renderer">\n          <yt-icon icon="language" class="style-scope ytd-about-channel-renderer"></yt-icon>\n        </td>\n        <td class="style-scope ytd-about-channel-renderer">\n          <a class="yt-simple-endpoint style-scope ytd-about-channel-renderer" href$="[[metadata.canonicalChannelUrl]]">[[channelDisplayUrl]]</a>\n        </td>\n      </tr>\n      <tr class="description-item style-scope ytd-about-channel-renderer" hidden="[[!metadata.country]]">\n        <td class="style-scope ytd-about-channel-renderer">\n          <yt-icon hidden="[[!metadata.country]]" icon="privacy_public" class="style-scope ytd-about-channel-renderer"></yt-icon>\n        </td>\n        <td class="style-scope ytd-about-channel-renderer">[[metadata.country]]</td>\n      </tr>\n      <tr class="description-item style-scope ytd-about-channel-renderer" hidden="[[!metadata.joinedDateText]]">\n        <td class="style-scope ytd-about-channel-renderer">\n          <yt-icon hidden="[[!metadata.joinedDateText]]" icon="info_outline" class="style-scope ytd-about-channel-renderer"></yt-icon>\n        </td>\n        <td class="style-scope ytd-about-channel-renderer">\n          <yt-attributed-string data="[[metadata.joinedDateText]]" class="style-scope ytd-about-channel-renderer"></yt-attributed-string>\n        </td>\n      </tr>\n      <tr class="description-item style-scope ytd-about-channel-renderer" hidden="[[!metadata.subscriberCountText]]">\n        <td class="style-scope ytd-about-channel-renderer">\n          <yt-icon icon="person_radar" class="style-scope ytd-about-channel-renderer"></yt-icon>\n        </td>\n        <td class="style-scope ytd-about-channel-renderer">[[metadata.subscriberCountText]]</td>\n      </tr>\n      <tr class="description-item style-scope ytd-about-channel-renderer" hidden="[[!metadata.videoCountText]]">\n        <td class="style-scope ytd-about-channel-renderer">\n          <yt-icon hidden="[[!metadata.videoCountText]]" icon="my_videos" class="style-scope ytd-about-channel-renderer"></yt-icon>\n        </td>\n        <td class="style-scope ytd-about-channel-renderer">[[metadata.videoCountText]]</td>\n      </tr>\n      <tr class="description-item style-scope ytd-about-channel-renderer" hidden="[[!metadata.viewCountText]]">\n        <td class="style-scope ytd-about-channel-renderer">\n          <yt-icon hidden="[[!metadata.viewCountText]]" icon="trending_up" class="style-scope ytd-about-channel-renderer"></yt-icon>\n        </td>\n        <td class="style-scope ytd-about-channel-renderer">[[metadata.viewCountText]]</td>\n      </tr>\n    </tbody></table>\n  </div>\n\n  <div id="button-container" class="style-scope ytd-about-channel-renderer">\n    <div id="share-channel" class="button style-scope ytd-about-channel-renderer"></div>\n    <div id="flagging-button" class="button style-scope ytd-about-channel-renderer"></div>\n  </div>\n</div>\n');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);return rme=S},{mode:1});var hal;var Px=function(){return _.w.apply(this,arguments)||this};
_.r(Px,_.w);_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],Px.prototype,"ytRendererBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],Px.prototype,"data",void 0);Px=_.x([_.f({is:"ytd-channel-list-sub-menu-avatar-renderer",disableElementRegistration:!0})],Px);
_.C(Px,"ytd-channel-list-sub-menu-avatar-renderer",function(){if(hal!==void 0)return hal;var S=document.createElement("template");_.h(S,'\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');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);return hal=S},{mode:1});var RaE;var ZB=function(){return _.w.apply(this,arguments)||this};
_.r(ZB,_.w);ZB.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{channelListSubMenuAvatarRenderer:"ytd-channel-list-sub-menu-avatar-renderer"}}}};
_.x([_.F(_.qH.YtRendererstamperBehavior),_.E("design:type",Object)],ZB.prototype,"ytRendererstamperBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],ZB.prototype,"data",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",String)],ZB.prototype,"aligment",void 0);ZB=_.x([_.f({is:"ytd-channel-list-sub-menu-renderer",disableElementRegistration:!0})],ZB);
_.C(ZB,"ytd-channel-list-sub-menu-renderer",function(){if(RaE!==void 0)return RaE;var S=document.createElement("template");_.h(S,'\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');S.content.insertBefore(_.t().content.cloneNode(!0),S.content.firstChild);return RaE=
S},{mode:1});var FGt;var sM=function(){return _.w.apply(this,arguments)||this};
_.r(sM,_.w);sM.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}}}}}};
_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],sM.prototype,"ytRendererBehavior",void 0);_.x([_.F(_.qH.YtRendererstamperBehavior),_.E("design:type",Object)],sM.prototype,"ytRendererstamperBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],sM.prototype,"data",void 0);sM=_.x([_.f({is:"ytd-channel-sub-menu-renderer",disableElementRegistration:!0})],sM);
_.C(sM,"ytd-channel-sub-menu-renderer",function(){if(FGt!==void 0)return FGt;var S=document.createElement("template");_.h(S,'\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');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);return FGt=S},{mode:1});var XbI;var Pve;var ex=function(){var S=_.w.apply(this,arguments)||this;S.isCompact=!1;return S};
_.r(ex,_.w);_.$u.Object.defineProperties(ex.prototype,{thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isCompact?112:80}},
openNewWindow:{configurable:!0,enumerable:!0,get:function(){var S,p;return((p=_.b((S=this.data)==null?void 0:S.endpoint,_.Cv))==null?void 0:p.target)==="TARGET_NEW_WINDOW"}}});
_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],ex.prototype,"ytRendererBehavior",void 0);_.x([_.F(_.eL.YtComponentBehavior),_.E("design:type",Object)],ex.prototype,"componentBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],ex.prototype,"data",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],ex.prototype,"isCompact",void 0);_.x([_.e("isCompact"),_.E("design:type",Number),_.E("design:paramtypes",[])],ex.prototype,"thumbnailWidth",null);
_.x([_.e("data"),_.E("design:type",Boolean),_.E("design:paramtypes",[])],ex.prototype,"openNewWindow",null);ex=_.x([_.f({is:"ytd-media-lockup-renderer",disableElementRegistration:!0})],ex);
_.C(ex,"ytd-media-lockup-renderer",function(){if(Pve!==void 0)return Pve;var S=document.createElement("template");_.h(S,'\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');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);return Pve=S},{mode:1});var Zel;var gJ=function(){return _.w.apply(this,arguments)||this};
_.r(gJ,_.w);_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],gJ.prototype,"ytRendererBehavior",void 0);_.x([_.F(_.eL.YtComponentBehavior),_.E("design:type",Object)],gJ.prototype,"componentBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],gJ.prototype,"data",void 0);gJ=_.x([_.f({is:"ytd-structured-description-channel-lockup-renderer",disableElementRegistration:!0})],gJ);
_.C(gJ,"ytd-structured-description-channel-lockup-renderer",function(){if(Zel!==void 0)return Zel;var S=document.createElement("template");_.h(S,'\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');
S.content.insertBefore(_.t().content.cloneNode(!0),S.content.firstChild);return Zel=S},{mode:1});var szE;var uW=function(){var S=_.w.apply(this,arguments)||this;S.isCompact=!1;S.collections=_.y("web_modern_collections_v2");S.collectionsStackColor=_.y("modernize_structured_description_playlist_lockups_v2");return S};
_.r(uW,_.w);uW.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:_.y("defer_overlays")?1:void 0,waitForSignal:"eocs"}}};
_.$u.Object.defineProperties(uW.prototype,{twoLineTitle:{configurable:!0,enumerable:!0,get:function(){var S;return((S=this.data)==null?void 0:S.maxLinesTitle)===2}},
collectionStack:{configurable:!0,enumerable:!0,get:function(){var S,p,U,Y,L,I;return{thumbnailSize:"small",doubleStack:!1,experimentEnabled:this.collections,sampledThumbnailColor:this.collectionsStackColor?(S=this.data)==null?void 0:(p=S.thumbnail)==null?void 0:p.sampledThumbnailColor:void 0,darkColorPalette:this.collectionsStackColor?(U=this.data)==null?void 0:(Y=U.thumbnail)==null?void 0:Y.darkColorPalette:void 0,vibrantColorPalette:this.collectionsStackColor?(L=this.data)==null?void 0:(I=L.thumbnail)==
null?void 0:I.vibrantColorPalette:void 0}}}});
_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],uW.prototype,"ytRendererBehavior",void 0);_.x([_.F(_.eL.YtComponentBehavior),_.E("design:type",Object)],uW.prototype,"componentBehavior",void 0);_.x([_.F(_.qH.YtRendererstamperBehavior),_.E("design:type",Object)],uW.prototype,"ytRendererstamperBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],uW.prototype,"data",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Boolean)],uW.prototype,"showSidePanelThumbnailOverlay",void 0);
_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],uW.prototype,"isCompact",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Boolean)],uW.prototype,"collections",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],uW.prototype,"collectionsStackColor",void 0);_.x([_.e("data"),_.g({reflectToAttribute:!0}),_.E("design:type",Boolean),_.E("design:paramtypes",[])],uW.prototype,"twoLineTitle",null);
_.x([_.e("data","collections","collectionsStackColor"),_.E("design:type",Object),_.E("design:paramtypes",[])],uW.prototype,"collectionStack",null);uW=_.x([_.f({is:"ytd-structured-description-playlist-lockup-renderer",disableElementRegistration:!0})],uW);
_.C(uW,"ytd-structured-description-playlist-lockup-renderer",function(){if(szE!==void 0)return szE;var S=document.createElement("template");_.h(S,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-structured-description-playlist-lockup-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a id="lockup-container" class="yt-simple-endpoint style-scope ytd-structured-description-playlist-lockup-renderer" data="[[data.navigationEndpoint]]" href$="[[computeOptionalHref_(data.navigationEndpoint)]]">\n  <yt-collections-stack data="[[collectionStack]]" class="style-scope ytd-structured-description-playlist-lockup-renderer"></yt-collections-stack>\n  <div id="playlist-thumbnail" class="style-scope ytd-structured-description-playlist-lockup-renderer">\n    <yt-img-shadow id="thumbnail" alt="[[getSimpleString(data.title)]]" thumbnail="[[data.thumbnail]]" width="[[data.thumbnailWidth]]" class="style-scope ytd-structured-description-playlist-lockup-renderer">\n    </yt-img-shadow>\n    <span id="overlay" hidden="[[showSidePanelThumbnailOverlay]]" class="style-scope ytd-structured-description-playlist-lockup-renderer">[[getSimpleString(data.videoCountShortText)]]</span>\n    <div id="overlays" class="style-scope ytd-structured-description-playlist-lockup-renderer"></div>\n  </div>\n</a>\n<div id="description" class="style-scope ytd-structured-description-playlist-lockup-renderer">\n  <div id="title" class="style-scope ytd-structured-description-playlist-lockup-renderer">[[getSimpleString(data.title)]]</div>\n  <div id="subtitle" class="style-scope ytd-structured-description-playlist-lockup-renderer">[[getSimpleString(data.shortBylineText)]]</div>\n  <ytd-badge-supported-renderer id="badges" badges="[[data.badges]]" hidden="[[!data.badges]]" role="text" class="style-scope ytd-structured-description-playlist-lockup-renderer">\n  </ytd-badge-supported-renderer>\n</div>\n');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);return szE=S},{mode:1});var eaQ;var wJ=function(){return _.w.apply(this,arguments)||this};
_.r(wJ,_.w);_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],wJ.prototype,"ytRendererBehavior",void 0);_.x([_.F(_.eL.YtComponentBehavior),_.E("design:type",Object)],wJ.prototype,"componentBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],wJ.prototype,"data",void 0);wJ=_.x([_.f({is:"ytd-structured-description-video-lockup-renderer",disableElementRegistration:!0})],wJ);
_.C(wJ,"ytd-structured-description-video-lockup-renderer",function(){if(eaQ!==void 0)return eaQ;var S=document.createElement("template");_.h(S,'\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');
S.content.insertBefore(_.t().content.cloneNode(!0),S.content.firstChild);return eaQ=S},{mode:2});var lW=function(){return _.w.apply(this,arguments)||this};
_.r(lW,_.w);
lW.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}}}}}};
_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],lW.prototype,"ytRendererBehavior",void 0);_.x([_.F(_.qH.YtRendererstamperBehavior),_.E("design:type",Object)],lW.prototype,"ytRendererstamperBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],lW.prototype,"data",void 0);lW=_.x([_.f({is:"ytd-compact-infocard-renderer",disableElementRegistration:!0})],lW);
_.C(lW,"ytd-compact-infocard-renderer",function(){if(XbI!==void 0)return XbI;var S=document.createElement("template");_.h(S,'\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');S.content.insertBefore(_.t().content.cloneNode(!0),S.content.firstChild);return XbI=S},{mode:1});var g$E;var aJ=function(){var S=_.w.apply(this,arguments)||this;S.useModernCollectionsV2=_.y("web_modern_collections_v2");return S};
_.r(aJ,_.w);aJ.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer"}}},dismissedRenderer:{id:"dismissed",mapping:{notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.$u.Object.defineProperties(aJ.prototype,{watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.y("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.y("kevlar_watch_feed_big_thumbs")?"9999":"168"}},
customThumbnailSize:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.y("kevlar_watch_feed_big_thumbs")?"":"94"}}});
_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],aJ.prototype,"ytRendererBehavior",void 0);_.x([_.F(_.qH.YtRendererstamperBehavior),_.E("design:type",Object)],aJ.prototype,"ytRendererstamperBehavior",void 0);_.x([_.F(_.Zh),_.E("design:type",Object)],aJ.prototype,"ytdDismissibleItemBehavior",void 0);_.x([_.F(_.Xh),_.E("design:type",Object)],aJ.prototype,"ytdReduxBehavior",void 0);_.x([_.g({selector:_.g8}),_.E("design:type",Object)],aJ.prototype,"isGridViewEnabled",void 0);
_.x([_.e("isGridViewEnabled"),_.g({reflectToAttribute:!0}),_.E("design:type",Boolean),_.E("design:paramtypes",[])],aJ.prototype,"watchFeedBigThumbs",null);_.x([_.e("isGridViewEnabled","data"),_.g({reflectToAttribute:!0,value:"168"}),_.E("design:type",String),_.E("design:paramtypes",[])],aJ.prototype,"thumbnailWidth",null);_.x([_.e("isGridViewEnabled","data"),_.g({reflectToAttribute:!0,value:"94"}),_.E("design:type",String),_.E("design:paramtypes",[])],aJ.prototype,"customThumbnailSize",null);
_.x([_.g(),_.E("design:type",Object)],aJ.prototype,"data",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],aJ.prototype,"useModernCollectionsV2",void 0);aJ=_.x([_.f({is:"ytd-compact-playlist-renderer",disableElementRegistration:!0})],aJ);
_.C(aJ,"ytd-compact-playlist-renderer",function(){if(g$E!==void 0)return g$E;var S=document.createElement("template");_.h(S,'\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');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);return g$E=S},{mode:1});var uSc;var fI=function(){var S=_.w.apply(this,arguments)||this;S.darkerDarkTheme=_.y("web_darker_dark_theme");S.roundedContainer=!0;S.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction"};return S};
_.r(fI,_.w);_.M=fI.prototype;_.M.attached=function(){this.requestElementsPerRow()};
_.M.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"}}}};
_.M.dataChanged=function(){this.hideThumbnail=!1;this.requestElementsPerRow()};
_.M.computeViewStyle=function(S){return S.style?S.style:"COMPACT_PROMOTED_ITEM_STYLE_UNSPECIFIED"};
_.M.onUpdateElementsPerRowAction=function(S){this.hideThumbnail=this.viewStyle==="COMPACT_PROMOTED_ITEM_STYLE_RICH_GRID"&&S===1};
_.M.requestElementsPerRow=function(){_.cv(this.hostElement,"yt-request-elements-per-row")};
fI.prototype.dataChanged=fI.prototype.dataChanged;_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],fI.prototype,"ytRendererBehavior",void 0);_.x([_.F(_.qH.YtRendererstamperBehavior),_.E("design:type",Object)],fI.prototype,"ytRendererstamperBehavior",void 0);_.x([_.F(_.Zh),_.E("design:type",Object)],fI.prototype,"ytdDismissibleItemBehavior",void 0);_.x([_.F(_.Aj.YtActionHandlerBehavior),_.E("design:type",Object)],fI.prototype,"actionHandlerBehavior",void 0);
_.x([_.g(),_.E("design:type",Object)],fI.prototype,"data",void 0);_.x([_.g({value:!1}),_.E("design:type",Boolean)],fI.prototype,"hideThumbnail",void 0);_.x([_.g({reflectToAttribute:!0,computed:"computeViewStyle(data)"}),_.E("design:type",String)],fI.prototype,"viewStyle",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],fI.prototype,"darkerDarkTheme",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],fI.prototype,"roundedContainer",void 0);
_.x([_.z4("data"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],fI.prototype,"dataChanged",null);fI=_.x([_.f({is:"ytd-compact-promoted-item-renderer",disableElementRegistration:!0})],fI);
_.C(fI,"ytd-compact-promoted-item-renderer",function(){if(uSc!==void 0)return uSc;var S=document.createElement("template");_.h(S,'\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');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);return uSc=S},{mode:1});var wbE;var CI=function(){var S=_.w.apply(this,arguments)||this;S.collections=_.y("web_modern_collections_v2");return S};
_.r(CI,_.w);CI.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer"}}},dismissedRenderer:{id:"dismissed",mapping:{notificationTextRenderer:"ytd-notification-text-renderer"}}}};
CI.prototype.attached=function(){this.hostElement.classList.add("use-ellipsis")};
CI.prototype.onYtNavigate=function(S,p){var U=this;if(p.endpoint===this.data.navigationEndpoint&&this.get("endpoint.watchEndpoint.continuePlayback",p)){var Y=this.get("watchEndpoint.videoId",p.endpoint),L=_.pp(this.hostElement,"yt-get-current-video-id-action")[0];_.y("kevlar_mix_handle_first_endpoint_different")&&Y&&L&&Y!==L||(S.stopPropagation(),_.iZ().getPlayerPromise().then(function(I){if(I.getPlayerState()===0&&U.data.secondaryNavigationEndpoint)var V=U.data.secondaryNavigationEndpoint;else{V=
Object.assign({},p.endpoint);var W=_.b(V.commandMetadata,_.NU);W&&(I=Math.floor(I.getCurrentTime()),W.url=_.vQ(W.url,{t:I}),!_.y("kevlar_add_start_time_to_mix_endpoint_killswitch")&&(W=_.b(V,_.E$)))&&(W.startTimeSeconds=I)}_.cv(U.hostElement,"yt-navigate",{endpoint:V})}))}};
_.$u.Object.defineProperties(CI.prototype,{watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.y("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.y("kevlar_watch_feed_big_thumbs")?"9999":"168"}},
collectionStack:{configurable:!0,enumerable:!0,get:function(){var S,p,U,Y,L,I;return{thumbnailSize:"medium",doubleStack:!1,sampledThumbnailColor:(S=this.data)==null?void 0:(p=S.thumbnail)==null?void 0:p.sampledThumbnailColor,vibrantColorPalette:(U=this.data)==null?void 0:(Y=U.thumbnail)==null?void 0:Y.vibrantColorPalette,darkColorPalette:(L=this.data)==null?void 0:(I=L.thumbnail)==null?void 0:I.darkColorPalette,experimentEnabled:this.collections}}}});
CI.prototype.onYtNavigate=CI.prototype.onYtNavigate;_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],CI.prototype,"ytRendererBehavior",void 0);_.x([_.F(_.WV.YtEndpointBehavior),_.E("design:type",Object)],CI.prototype,"ytEndpointBehavior",void 0);_.x([_.F(_.qH.YtRendererstamperBehavior),_.E("design:type",Object)],CI.prototype,"ytRendererstamperBehavior",void 0);_.x([_.F(_.Zh),_.E("design:type",Object)],CI.prototype,"ytdDismissibleItemBehavior",void 0);
_.x([_.F(_.ak),_.E("design:type",Object)],CI.prototype,"ytdLockupBehavior",void 0);_.x([_.F(_.Xh),_.E("design:type",Object)],CI.prototype,"ytdReduxBehavior",void 0);_.x([_.g({selector:_.g8}),_.E("design:type",Object)],CI.prototype,"isGridViewEnabled",void 0);_.x([_.e("isGridViewEnabled"),_.g({reflectToAttribute:!0}),_.E("design:type",Boolean),_.E("design:paramtypes",[])],CI.prototype,"watchFeedBigThumbs",null);
_.x([_.e("isGridViewEnabled"),_.g({reflectToAttribute:!0}),_.E("design:type",String),_.E("design:paramtypes",[])],CI.prototype,"thumbnailWidth",null);_.x([_.g(),_.E("design:type",Object)],CI.prototype,"data",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Boolean)],CI.prototype,"collections",void 0);_.x([_.e("data","collections"),_.E("design:type",Object),_.E("design:paramtypes",[])],CI.prototype,"collectionStack",null);
_.x([_.Vd("yt-navigate"),_.E("design:type",Function),_.E("design:paramtypes",[CustomEvent,Object]),_.E("design:returntype")],CI.prototype,"onYtNavigate",null);CI=_.x([_.f({is:"ytd-compact-radio-renderer",disableElementRegistration:!0})],CI);
_.C(CI,"ytd-compact-radio-renderer",function(){if(wbE!==void 0)return wbE;var S=document.createElement("template");_.h(S,'\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');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);return wbE=S},{mode:1});var lQI;var xe=function(){return _.w.apply(this,arguments)||this};
_.r(xe,_.w);xe.prototype.configureRendererStamper=function(){return{"data.button":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!1}}}}}};
xe.prototype.computeRendererStyle=function(S){return S.style?S.style.split("STYLE_")[1].replace(/_/g,"-").toLowerCase():""};
_.x([_.g(),_.E("design:type",Object)],xe.prototype,"data",void 0);_.x([_.F(_.qH.YtRendererstamperBehavior),_.E("design:type",Object)],xe.prototype,"ytRendererstamperBehavior",void 0);_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],xe.prototype,"rendererBehavior",void 0);_.x([_.g({computed:"computeRendererStyle(data)",reflectToAttribute:!0}),_.E("design:type",String)],xe.prototype,"rendererStyle",void 0);
xe=_.x([_.f({is:"ytd-compact-text-promo-renderer",disableElementRegistration:!0})],xe);
_.C(xe,"ytd-compact-text-promo-renderer",function(){if(lQI!==void 0)return lQI;var S=document.createElement("template");_.h(S,'\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');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);return lQI=S},{mode:1});var aQE;var EM=function(){var S=_.w.apply(this,arguments)||this;S.isShortsStyle=!1;return S};
_.r(EM,_.w);_.M=EM.prototype;_.M.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"}}}};
_.M.disableInteractionChanged=function(){this.isShortsStyle||(this.disableInteraction?_.cv(this.hostElement,"yt-disable-lockup-interaction"):_.cv(this.hostElement,"yt-enable-lockup-interaction"))};
_.M.isMetaBlockEmpty=function(S){return!S||!S.longBylineText&&!S.shortBylineText&&!S.shortViewCountText&&!S.viewCountText};
_.M.computeHasOneLineTitle=function(S){return this.forceOneLineTitle||!(S==null||!S.buttons)};
_.M.computeDisableInteraction=function(){var S;return!((S=this.data)==null?0:S.navigationEndpoint)};
_.M.hasSingularTopStandaloneBadge=function(){var S;return!((S=this.data)==null||!S.topStandaloneBadge)};
_.$u.Object.defineProperties(EM.prototype,{watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.y("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.y("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 S;return this.hasSingularTopStandaloneBadge()?[(S=this.data)==null?void 0:S.topStandaloneBadge]:[]}},
inlineMetadataBadges:{configurable:!0,enumerable:!0,get:function(){var S;return this.shouldShowTopBadges?((S=this.data)==null?void 0:S.badges)||[]:[]}},
shouldShowBadgesBelowMetadata:{configurable:!0,enumerable:!0,get:function(){return!this.shouldShowTopBadges}},
compactTitleClass:{configurable:!0,enumerable:!0,get:function(){return this.shouldShowTopBadges?"compact-title":""}}});
EM.prototype.disableInteractionChanged=EM.prototype.disableInteractionChanged;_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],EM.prototype,"ytRendererBehavior",void 0);_.x([_.F(_.qH.YtRendererstamperBehavior),_.E("design:type",Object)],EM.prototype,"ytRendererstamperBehavior",void 0);_.x([_.F(_.Zh),_.E("design:type",Object)],EM.prototype,"ytdDismissibleItemBehavior",void 0);_.x([_.F(_.ak),_.E("design:type",Object)],EM.prototype,"ytdLockupBehavior",void 0);
_.x([_.F(_.Xh),_.E("design:type",Object)],EM.prototype,"ytdReduxBehavior",void 0);_.x([_.g({reflectToAttribute:!0,computed:"isMetaBlockEmpty(data)"}),_.E("design:type",Boolean)],EM.prototype,"metaBlockEmpty",void 0);_.x([_.g({selector:_.g8}),_.E("design:type",Object)],EM.prototype,"isGridViewEnabled",void 0);_.x([_.e("isGridViewEnabled"),_.g({reflectToAttribute:!0}),_.E("design:type",Boolean),_.E("design:paramtypes",[])],EM.prototype,"watchFeedBigThumbs",null);
_.x([_.e("isGridViewEnabled"),_.g({reflectToAttribute:!0}),_.E("design:type",String),_.E("design:paramtypes",[])],EM.prototype,"thumbnailWidth",null);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],EM.prototype,"isShortsStyle",void 0);_.x([_.g(),_.E("design:type",Object)],EM.prototype,"data",void 0);_.x([_.g({reflectToAttribute:!0,computed:"computeHasOneLineTitle(data)"}),_.E("design:type",Boolean)],EM.prototype,"hasOneLineTitle",void 0);
_.x([_.g(),_.E("design:type",Boolean)],EM.prototype,"hideThumbnail",void 0);_.x([_.g(),_.E("design:type",Boolean)],EM.prototype,"forceOneLineTitle",void 0);_.x([_.g({reflectToAttribute:!0,computed:"computeDisableInteraction(data)"}),_.E("design:type",Boolean)],EM.prototype,"disableInteraction",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Boolean)],EM.prototype,"musicMetadataVideoLockup",void 0);
_.x([_.T4("disableInteraction"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],EM.prototype,"disableInteractionChanged",null);_.x([_.e("data"),_.E("design:type",Boolean),_.E("design:paramtypes",[])],EM.prototype,"shouldShowTopBadges",null);_.x([_.e("data"),_.E("design:type",Array),_.E("design:paramtypes",[])],EM.prototype,"topBadges",null);
_.x([_.e("shouldShowTopBadges","data"),_.E("design:type",Array),_.E("design:paramtypes",[])],EM.prototype,"inlineMetadataBadges",null);_.x([_.e("shouldShowTopBadges"),_.E("design:type",Boolean),_.E("design:paramtypes",[])],EM.prototype,"shouldShowBadgesBelowMetadata",null);_.x([_.e("data"),_.E("design:type",Object),_.E("design:paramtypes",[])],EM.prototype,"compactTitleClass",null);EM=_.x([_.f({is:"ytd-compact-video-renderer",disableElementRegistration:!0})],EM);
_.C(EM,"ytd-compact-video-renderer",function(){if(aQE!==void 0)return aQE;var S=document.createElement("template");_.h(S,'\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');
S.content.insertBefore(_.t().content.cloneNode(!0),S.content.firstChild);return aQE=S},{mode:_.UW("kevlar_poly_si_batch_j067")?1:2});var fQI;_.Ry("itemSectionRenderer","counterfactualRenderer","ytd-counterfactual-renderer");var mu=function(){return _.w.apply(this,arguments)||this};
_.r(mu,_.w);_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],mu.prototype,"ytRendererBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],mu.prototype,"data",void 0);mu=_.x([_.f({is:"ytd-counterfactual-renderer",disableElementRegistration:!0})],mu);
_.C(mu,"ytd-counterfactual-renderer",function(){if(fQI!==void 0)return fQI;var S=document.createElement("template");_.h(S,"\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");S.content.insertBefore(_.t().content.cloneNode(!0),S.content.firstChild);return fQI=S},{mode:1});var Cvt;var oJ=function(){var S=_.w.apply(this,arguments)||this;S.hidden=!1;return S};
_.r(oJ,_.w);oJ.prototype.onSelect=function(){this.data&&this.data.onSelectCommand&&_.tW().resolve(_.cQ).resolveCommand(this.data.onSelectCommand,{form:{element:this.hostElement}})};
oJ.prototype.computeHidden=function(S){return!!S};
_.$u.Object.defineProperties(oJ.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}}});
_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],oJ.prototype,"ytRendererBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],oJ.prototype,"data",void 0);_.x([_.g({reflectToAttribute:!0,computed:"computeHidden(data.isHidden)"}),_.E("design:type",Object)],oJ.prototype,"hidden",void 0);_.x([_.e("data.label"),_.E("design:type",String),_.E("design:paramtypes",[])],oJ.prototype,"label",null);_.x([_.e("data"),_.E("design:type",Object),_.E("design:paramtypes",[])],oJ.prototype,"value",null);
oJ=_.x([_.f({is:"ytd-dropdown-item-renderer",disableElementRegistration:!0})],oJ);
_.C(oJ,"ytd-dropdown-item-renderer",function(){if(Cvt!==void 0)return Cvt;var S=document.createElement("template");_.h(S,'\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');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);return Cvt=S},{mode:1});var x$w;var E$e;var vx=function(){return _.w.apply(this,arguments)||this};
_.r(vx,_.w);_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],vx.prototype,"ytRendererBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],vx.prototype,"data",void 0);_.x([_.g({computed:"getSimpleString(data.label)"}),_.E("design:type",String)],vx.prototype,"label",void 0);vx=_.x([_.f({is:"ytd-navigation-dropdown-item-renderer",disableElementRegistration:!0})],vx);
_.C(vx,"ytd-navigation-dropdown-item-renderer",function(){if(E$e!==void 0)return E$e;var S=document.createElement("template");_.h(S,'\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');
S.content.insertBefore(_.t().content.cloneNode(!0),S.content.firstChild);return E$e=S},{mode:1});var $e=function(){var S=_.w.apply(this,arguments)||this;S.disabled=!1;S.value="";S.noLabelFloat=!1;S.noUnderline=!1;S.usePrimaryColor=!1;S.hasBackground=!1;S.verticalAlign="top";S.autosize=!1;S.minAutosizeWidth=100;S.autosizeFont="14px Roboto";return S};
_.r($e,_.w);_.M=$e.prototype;_.M.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"}}}};
_.M.open=function(){this.inputEl.open()};
_.M.reset=function(){this.entries.selected=-1;this.entries.forceSynchronousItemUpdate();this.entries.select(this.getSelectedItem())};
_.M.dataChanged=function(){this.reset()};
_.M.valueChangedForBinding=function(){this.hostElement.dispatchEvent(new _.uz("value-changed",this.value))};
_.M.stopPropagation=function(S){S.stopPropagation()};
_.M.autoSizeLabel=function(){if(this.autosizeFont&&this.autosize){this.canvas||(this.canvas=document.createElement("canvas"));var S=this.canvas.getContext("2d");S&&(S.font=this.autosizeFont,this.inputEl.style.width=Math.max(this.minAutosizeWidth,Number(S.measureText(this.inputEl.value).width)+24)+"px")}};
_.M.getSelectedItem=function(){if(!this.data||!this.data.entries)return null;for(var S=0,p=this.data.entries.length;S<p;S++){var U=this.data.entries[S],Y;for(Y in U)if(U.hasOwnProperty(Y)){var L=U[Y];if("isSelected"in L&&L.isSelected)return"stringValue"in L?L.stringValue||"":"int32Value"in L?L.int32Value||0:0}}return null};
_.M.updateValueFromBinding=function(S){this.value=S.detail.value};
_.$u.Object.defineProperties($e.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 S=0,p=this.data.entries.length;S<p;S++){var U=this.data.entries[S],Y;for(Y in U)if(U.hasOwnProperty(Y)){var L=U[Y];if("isSelected"in L&&L.isSelected&&"label"in L)return this.ytRendererBehavior.getSimpleString(L.label)}}return null}}});
$e.prototype.autoSizeLabel=$e.prototype.autoSizeLabel;$e.prototype.stopPropagation=$e.prototype.stopPropagation;$e.prototype.valueChangedForBinding=$e.prototype.valueChangedForBinding;$e.prototype.dataChanged=$e.prototype.dataChanged;_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],$e.prototype,"ytRendererBehavior",void 0);_.x([_.F(_.qH.YtRendererstamperBehavior),_.E("design:type",Object)],$e.prototype,"ytRendererStamperBehavior",void 0);
_.x([_.g(),_.E("design:type",Object)],$e.prototype,"data",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],$e.prototype,"disabled",void 0);_.x([_.g(),_.E("design:type",Object)],$e.prototype,"value",void 0);_.x([_.g(),_.E("design:type",Object)],$e.prototype,"noLabelFloat",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],$e.prototype,"noUnderline",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",String)],$e.prototype,"theme",void 0);
_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],$e.prototype,"usePrimaryColor",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],$e.prototype,"hasBackground",void 0);_.x([_.g(),_.E("design:type",Object)],$e.prototype,"verticalAlign",void 0);_.x([_.g(),_.E("design:type",Object)],$e.prototype,"autosize",void 0);_.x([_.g(),_.E("design:type",Object)],$e.prototype,"minAutosizeWidth",void 0);_.x([_.g(),_.E("design:type",Object)],$e.prototype,"autosizeFont",void 0);
_.x([_.O2("#entries"),_.E("design:type",Object)],$e.prototype,"entries",void 0);_.x([_.O2("#input"),_.E("design:type",Object)],$e.prototype,"inputEl",void 0);_.x([_.z4("data"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],$e.prototype,"dataChanged",null);_.x([_.z4("value"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],$e.prototype,"valueChangedForBinding",null);
_.x([_.Vd("iron-overlay-opened"),_.Vd("iron-overlay-closed"),_.E("design:type",Function),_.E("design:paramtypes",[CustomEvent]),_.E("design:returntype")],$e.prototype,"stopPropagation",null);_.x([_.Vd("iron-select"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],$e.prototype,"autoSizeLabel",null);_.x([_.e("data"),_.E("design:type",Object),_.E("design:paramtypes",[])],$e.prototype,"label",null);
$e=_.x([_.f({disableElementRegistration:!0,is:"ytd-dropdown-renderer"})],$e);
_.C($e,"ytd-dropdown-renderer",function(){if(x$w!==void 0)return x$w;var S=document.createElement("template");_.h(S,'\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');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);return x$w=S},{mode:1});var m$E;var iW=function(){var S=_.w.apply(this,arguments)||this;S.isConstrainedList=!1;return S};
_.r(iW,_.w);iW.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"}}}};
iW.prototype.fillRestIfNoShowMore=function(){this.data&&!this.data.showMoreText&&this.ytLazyListBehavior.canShowMore&&this.ytLazyListBehavior.fillRemainingListItems()};
iW.prototype.onShowMoreClick=function(){this.ytLazyListBehavior.fillRemainingListItems()};
iW.prototype.computeViewAllHidden=function(S,p){return S||!p.viewAllEndpoint};
iW.prototype.fillRestIfNoShowMore=iW.prototype.fillRestIfNoShowMore;_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],iW.prototype,"ytRendererBehavior",void 0);_.x([_.F(_.qH.YtRendererstamperBehavior),_.E("design:type",Object)],iW.prototype,"ytRendererstamperBehavior",void 0);_.x([_.F(_.qb.YtLazyListBehavior),_.E("design:type",Object)],iW.prototype,"ytLazyListBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],iW.prototype,"data",void 0);
_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],iW.prototype,"isConstrainedList",void 0);_.x([_.z4("data","canShowMore"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],iW.prototype,"fillRestIfNoShowMore",null);iW=_.x([_.f({is:"ytd-expanded-shelf-contents-renderer",disableElementRegistration:!0})],iW);
_.C(iW,"ytd-expanded-shelf-contents-renderer",function(){if(m$E!==void 0)return m$E;var S=document.createElement("template");_.h(S,'\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');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);return m$E=S},{mode:_.UW("kevlar_poly_si_batch_j025")?1:2});var o$Q;var Nk=function(){return _.w.apply(this,arguments)||this};
_.r(Nk,_.w);Nk.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}}}}}};
_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],Nk.prototype,"ytRendererBehavior",void 0);_.x([_.F(_.qH.YtRendererstamperBehavior),_.E("design:type",Object)],Nk.prototype,"ytRendererstamperBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],Nk.prototype,"data",void 0);Nk=_.x([_.f({is:"ytd-feed-channel-filter-header-renderer",disableElementRegistration:!0})],Nk);
_.C(Nk,"ytd-feed-channel-filter-header-renderer",function(){if(o$Q!==void 0)return o$Q;var S=document.createElement("template");_.h(S,'\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');
S.content.insertBefore(_.t().content.cloneNode(!0),S.content.firstChild);return o$Q=S},{mode:1});var v$I;var $$m;var iet;var Bx=function(){return _.w.apply(this,arguments)||this};
_.r(Bx,_.w);_.M=Bx.prototype;_.M.onClick=function(S){var p,U=(p=this.data)==null?void 0:p.sectionEndpoint;!_.Eo(_.E1(S),this.hostElement,["A".toString()])&&U&&_.cv(this.hostElement,"yt-navigate",{endpoint:U})};
_.M.computeHasSectionEndpoint=function(S){return(S==null?void 0:S.sectionEndpoint)!==void 0};
_.M.computeShowHeaderAsLink=function(S){return(S==null?void 0:S.header)!==void 0&&(S==null?void 0:S.sectionEndpoint)!==void 0};
_.M.computeShowSubheaderAsLink=function(S){return(S==null?void 0:S.subheader)!==void 0&&(S==null?void 0:S.sectionEndpoint)!==void 0&&(S==null?void 0:S.header)===void 0};
_.M.getHeaderAsLinkClass=function(S){var p=[],U;(S==null?0:(U=S.headerIcon)==null?0:U.iconType)&&p.push("header-link-active");return p.join(" ")};
_.x([_.F(_.eL.YtComponentBehavior),_.E("design:type",Object)],Bx.prototype,"ytComponentBehavior",void 0);_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],Bx.prototype,"ytRendererBehavior",void 0);_.x([_.F(_.qH.YtRendererstamperBehavior),_.E("design:type",Object)],Bx.prototype,"ytRendererstamperBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],Bx.prototype,"data",void 0);
_.x([_.g({computed:"computeHasSectionEndpoint(data)",reflectToAttribute:!0}),_.E("design:type",Boolean)],Bx.prototype,"hasSectionEndpoint",void 0);_.x([_.g({computed:"computeShowHeaderAsLink(data)"}),_.E("design:type",Boolean)],Bx.prototype,"showHeaderAsLink",void 0);_.x([_.g({computed:"computeShowSubheaderAsLink(data)"}),_.E("design:type",Boolean)],Bx.prototype,"showSubheaderAsLink",void 0);Bx=_.x([_.f({is:"ytd-medical-panel-section-renderer",disableElementRegistration:!0})],Bx);
_.C(Bx,"ytd-medical-panel-section-renderer",function(){if(iet!==void 0)return iet;var S=document.createElement("template");_.h(S,'\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');
S.content.insertBefore(_.t().content.cloneNode(!0),S.content.firstChild);return iet=S},{mode:1});var qk=function(){var S=_.w.apply(this,arguments)||this;S.isExpanded=!1;S.roundedContainer=!0;S.skipRoundingTop=!1;S.toggleExpandableSection=function(){S.isExpanded=!S.isExpanded};
return S};
_.r(qk,_.w);
qk.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]]"}}}}}};
qk.prototype.dataChanged=function(){this.data&&(this.isExpanded=!1)};
qk.prototype.dataChanged=qk.prototype.dataChanged;_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],qk.prototype,"ytRendererBehavior",void 0);_.x([_.F(_.qH.YtRendererstamperBehavior),_.E("design:type",Object)],qk.prototype,"ytRendererstamperBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],qk.prototype,"data",void 0);_.x([_.g(),_.E("design:type",Object)],qk.prototype,"isExpanded",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],qk.prototype,"roundedContainer",void 0);
_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],qk.prototype,"skipRoundingTop",void 0);_.x([_.g(),_.E("design:type",Object)],qk.prototype,"toggleExpandableSection",void 0);_.x([_.z4("data"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],qk.prototype,"dataChanged",null);qk=_.x([_.f({is:"ytd-medical-panel-content-renderer",disableElementRegistration:!0})],qk);
_.C(qk,"ytd-medical-panel-content-renderer",function(){if($$m!==void 0)return $$m;var S=document.createElement("template");_.h(S,'\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');
S.content.insertBefore(_.t().content.cloneNode(!0),S.content.firstChild);return $$m=S},{mode:1});_.Ry("itemSectionRenderer","infoPanelContainerRenderer","ytd-info-panel-container-renderer");var AL=function(){var S=_.w.apply(this,arguments)||this;S.roundedContainer=!0;S.amsterdamEnabled=_.y("enable_desktop_amsterdam_info_panels");S.hasTitle=!1;S.linkIcon="OPEN_IN_NEW";S.isDismissed=!1;return S};
_.r(AL,_.w);
AL.prototype.configureRendererStamper=function(){return{"data.menu":{id:"header-menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.content":{id:"content",mapping:{infoPanelContentRenderer:{component:"ytd-info-panel-content-renderer",properties:{skipRoundingTop:"[[hasTitle]]",disableTopPadding:"[[data.disableBottomDivider]]",roundedContainer:"[[roundedContainer]]"}},medicalPanelContentRenderer:{component:"ytd-medical-panel-content-renderer",properties:{skipRoundingTop:"[[hasTitle]]",roundedContainer:"[[roundedContainer]]"}},
horizontalCardListRenderer:"ytd-horizontal-card-list-renderer"}}}};
AL.prototype.computeHasTitle=function(S){return!(S==null||!S.title)};
AL.prototype.onClick=function(S){var p,U=(p=this.data)==null?void 0:p.headerEndpoint;!_.Eo(_.E1(S),this.hostElement,["BUTTON".toString()])&&U&&this.ytComponentBehavior.resolveCommand(U)};
_.$u.Object.defineProperties(AL.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 S;return((S=this.data)==null?void 0:S.titleStyle)==="INFO_PANEL_CONTAINER_TITLE_STYLE_LINK"}},
hideDivider:{configurable:!0,enumerable:!0,get:function(){var S,p;return((S=this.data)==null?void 0:S.disableBottomDivider)||!((p=this.data)==null?0:p.title)}}});
_.x([_.F(_.eL.YtComponentBehavior),_.E("design:type",Object)],AL.prototype,"ytComponentBehavior",void 0);_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],AL.prototype,"ytRendererBehavior",void 0);_.x([_.F(_.qH.YtRendererstamperBehavior),_.E("design:type",Object)],AL.prototype,"ytRendererstamperBehavior",void 0);_.x([_.F(_.Xh),_.E("design:type",Object)],AL.prototype,"ytdReduxBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],AL.prototype,"data",void 0);
_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],AL.prototype,"roundedContainer",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Boolean)],AL.prototype,"amsterdamEnabled",void 0);_.x([_.g({reflectToAttribute:!0,computed:"computeHasTitle(data)"}),_.E("design:type",Object)],AL.prototype,"hasTitle",void 0);
_.x([_.g({type:_.y("kevlar_property_type_migration_killswitch")?String:void 0,reflectToAttribute:!0}),_.e("data.background"),_.E("design:type",Object),_.E("design:paramtypes",[])],AL.prototype,"background",null);_.x([_.g({type:_.y("kevlar_property_type_migration_killswitch")?String:void 0,reflectToAttribute:!0}),_.e("data.titleStyle"),_.E("design:type",Object),_.E("design:paramtypes",[])],AL.prototype,"titleStyle",null);
_.x([_.g({type:_.y("kevlar_property_type_migration_killswitch")?Boolean:void 0}),_.e("data.titleStyle"),_.E("design:type",Object),_.E("design:paramtypes",[])],AL.prototype,"showLinkIcon",null);_.x([_.g(),_.E("design:type",String)],AL.prototype,"linkIcon",void 0);_.x([_.g({type:_.y("kevlar_property_type_migration_killswitch")?Boolean:void 0}),_.e("data"),_.E("design:type",Object),_.E("design:paramtypes",[])],AL.prototype,"hideDivider",null);
_.x([_.g({selectorArgs:["data.dismissStateEntityKey"],selector:function(S,p){S=_.I4(S.entities,"dismissState",p);return(S==null?void 0:S.isDismissed)||(S==null?void 0:S.vwcDismissState)==="VWC_DISMISS_STATE_NOT_INTERESTED"||(S==null?void 0:S.vwcDismissState)==="VWC_DISMISS_STATE_BLOCK_CHANNEL"}}),
_.E("design:type",Object)],AL.prototype,"isDismissed",void 0);AL=_.x([_.f({is:"ytd-info-panel-container-renderer",disableElementRegistration:!0})],AL);
_.C(AL,"ytd-info-panel-container-renderer",function(){if(v$I!==void 0)return v$I;var S=document.createElement("template");_.h(S,'\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');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);return v$I=S},{mode:1});var NRd;_.Ry("sharingItemSection","itemSectionHeaderRenderer","ytd-item-section-header-renderer");var tL=function(){var S=_.w.apply(this,arguments)||this;S.modernTypography=_.y("web_modern_typography");return S};
_.r(tL,_.w);tL.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
tL.prototype.computeStyle=function(S){return S?S:""};
_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],tL.prototype,"ytRendererBehavior",void 0);_.x([_.F(_.qH.YtRendererstamperBehavior),_.E("design:type",Object)],tL.prototype,"ytRendererstamperBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],tL.prototype,"data",void 0);_.x([_.g({reflectToAttribute:!0,computed:"computeStyle(data.titleStyle)"}),_.E("design:type",String)],tL.prototype,"titleStyle",void 0);
_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],tL.prototype,"modernTypography",void 0);tL=_.x([_.f({is:"ytd-item-section-header-renderer",disableElementRegistration:!0})],tL);
_.C(tL,"ytd-item-section-header-renderer",function(){if(NRd!==void 0)return NRd;var S=document.createElement("template");_.h(S,'\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');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);return NRd=S},{mode:1});var BRt;var qZc,Amc=function(){return qZc!==void 0?qZc:qZc=document.createElement("template")};
document.head.appendChild(Amc().content);var the;_.cx=new _.$g("VOTING_ANIMATION_CONTROLLER_TOKEN");var S4P=_.$k(function(S){var p=S.data;var U=_.vH(),Y=_.vH();S=_.d(_.kj("VOTE_STATUS_NONE",void 0,"FVF7mc"));var L=S.next().value,I=S.next().value,V=_.Ty($ew,function(){var J;return(J=p())==null?void 0:J.entityKey}),W=_.y("web_enable_voting_animation")||_.y("enable_music_web_cairo_voting_animation");
_.FM(function(){var J;((J=p().initialState)==null?0:J.status)&&I(p().initialState.status)});
var O=function(){var J,K,G=(K=(J=p().initialState)==null?void 0:J.votes)!=null?K:0,X;J=(X=p().initialState)==null?void 0:X.status;return J==="VOTE_STATUS_UPVOTED"?G-1:J==="VOTE_STATUS_DOWNVOTED"?G+1:G},D=function(){return L()==="VOTE_STATUS_UPVOTED"?O()+1:L()==="VOTE_STATUS_DOWNVOTED"?O()-1:O()},z=function(J){var K=J?"VOTE_STATUS_UPVOTED":"VOTE_STATUS_NONE";
I(K);var G=D(),X=_.tW().resolve(_.AW(_.cx)),Z=V();Z&&(J&&(Z==null?0:Z.upvoteDefaultButtonOnTap)?_.wx(Z.upvoteDefaultButtonOnTap,{form:{element:U.value},disableClickTracking:!0}):(Z==null?0:Z.upvoteToggledButtonOnTap)&&_.wx(Z.upvoteToggledButtonOnTap,{form:{element:U.value},disableClickTracking:!0}));var l;J=(l=Z==null?void 0:Z.enableOptimisticReordering)!=null?l:p().enableOptimisticReordering;W&&X&&p().itemId&&J&&cmj(X,p().itemId,G,K)},Q=function(J){var K=J?"VOTE_STATUS_DOWNVOTED":"VOTE_STATUS_NONE";
I(K);var G=D(),X=_.tW().resolve(_.AW(_.cx)),Z=V();Z&&(J&&(Z==null?0:Z.downvoteDefaultButtonOnTap)?_.wx(Z.downvoteDefaultButtonOnTap,{form:{element:Y.value},disableClickTracking:!0}):(Z==null?0:Z.downvoteToggledButtonOnTap)&&_.wx(Z.downvoteToggledButtonOnTap,{form:{element:Y.value},disableClickTracking:!0}));var l;J=(l=Z==null?void 0:Z.enableOptimisticReordering)!=null?l:p().enableOptimisticReordering;W&&X&&p().itemId&&J&&cmj(X,p().itemId,G,K)};
S={};S=_.VD("ytVotingViewModelVoteCount",(S.ytVotingViewModelVoteCountDisabled=function(){return p().isDisabled},S));
return _.H("voting-view-model",{class:"ytVotingViewModelHost"},_.H("div",{el:U},_.H(_.yP,{data:function(){var J=_.b(p().upvoteButton,_.b6);return{toggleButtonViewModel:Object.assign({},J,{isToggled:L()==="VOTE_STATUS_UPVOTED"})}}},{toggleButtonViewModel:function(J){return _.H(_.jS,{data:J.data,
onToggle:z})}})),_.H("div",{class:S},function(){var J,K,G;
return L()==="VOTE_STATUS_UPVOTED"?(J=p().initialState)==null?void 0:J.compactVotesUpvoted:L()==="VOTE_STATUS_DOWNVOTED"?(K=p().initialState)==null?void 0:K.compactVotesDownvoted:(G=p().initialState)==null?void 0:G.compactVotes}),_.H("div",{el:Y},_.H(_.yP,{data:function(){var J=_.b(p().downvoteButton,_.b6);
return{toggleButtonViewModel:Object.assign({},J,{isToggled:L()==="VOTE_STATUS_DOWNVOTED"})}}},{toggleButtonViewModel:function(J){return _.H(_.jS,{data:J.data,
onToggle:Q})}})))},"Ib");_.qm(_.$k(function(S){var p=S.data;return _.H("engagement-bar-view-model",{class:"ytEngagementBarViewModelHost"},_.H("div",{class:_.VD("ytEngagementBarViewModelEngagementBarWrapper",S.className)},_.H(_.yP,{data:function(){return p().actions}},{votingViewModel:S4P})))},"Jb"),"engagement-bar-view-model",{props:{data:_.x2,
className:_.x2}});var Sy=function(){var S=_.w.apply(this,arguments)||this;S.amsterdamPostMvp=_.y("web_amsterdam_post_mvp_playlists");S.cairoCollabPlaylistPostMvp=_.y("web_collab_playlist_thumbnail_size");S.playlistVotingAnimationEnabled=_.y("web_enable_voting_animation");S.downloadProgress=0;S.transferState="TRANSFER_STATE_UNKNOWN";S.downloadState="DOWNLOAD_STATE_UNKNOWN";S.offlinePolicyAction="OFFLINE_VIDEO_POLICY_ACTION_UNKNOWN";S.offlineVideoPolicyExpirationTimestamp=0;return S};
_.r(Sy,_.w);_.M=Sy.prototype;_.M.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"}}}};
_.M.canReorderChanged=function(){this.persistentDragHandle=_.y("kevlar_playlist_drag_handles")&&this.canReorder};
_.M.onDrag=function(){if(this.thumbnail){var S=_.tB(this.thumbnail).querySelector("yt-image");S&&(S.shouldRenderLazy=!1)}};
_.M.onMenuOverlayChanged=function(S,p){this.menuOpened=p};
_.M.onHandleMouseenter=function(){this.handleIsHovered=!0};
_.M.onHandleMouseleave=function(){this.handleIsHovered=!1};
_.M.onContentsTap=function(S){var p,U=(p=this.data)==null?void 0:p.serviceEndpoints;if(U&&U.length===1&&_.b(U[0],V2e)&&!_.Eo(_.E1(S),this.hostElement,["TP-YT-PAPER-BUTTON"]))this.ytComponentBehavior.resolveCommand(U[0]);else{var Y;(p=(Y=this.data)==null?void 0:Y.navigationEndpoint)&&_.y("music_on_main_open_playlist_recommended_videos_in_miniplayer")&&this.styleType==="playlist-video-renderer-style-recommended-video"?this.miniplayerIsActive?pRc(_.tW().resolve(_.eC),p):(_.Vy().playlistSuggestionsShelfActivation=
!0,_.U3c(_.tW().resolve(_.eC),p)):p&&!_.Eo(_.E1(S),this.hostElement,["A".toString(),"BUTTON".toString(),"ENGAGEMENT-BAR-VIEW-MODEL"])&&(_.y("kevlar_playlist_video_resolve_nav_endpoint_killswitch")?_.cv(this.hostElement,"yt-navigate",{endpoint:p}):this.ytComponentBehavior.resolveCommand(p))}};
_.M.computeStyle=function(S){return S?S.toLowerCase().replace(/_/g,"-"):""};
_.M.computeThumbnailWidth=function(S){return S==="PLAYLIST_VIDEO_RENDERER_STYLE_EPISODE"?170:this.amsterdamPostMvp?160:this.cairoCollabPlaylistPostMvp?200:120};
_.M.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=WtN(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))}};
_.M.created=function(){this.downloadRenderData=void 0;this.isDownloads=!1};
_.M.detached=function(){this.downloadRenderData=void 0;this.isDownloads=!1};
_.M.dataChanged=function(){if(this.data){var S,p,U,Y=((S=this.downloadRenderData)==null?void 0:S.badges)&&((p=this.downloadRenderData)==null?void 0:p.badges)!==((U=this.data)==null?void 0:U.badges),L,I,V;S=((L=this.downloadRenderData)==null?void 0:L.thumbnailOverlays)&&((I=this.downloadRenderData)==null?void 0:I.thumbnailOverlays)!==((V=this.data)==null?void 0:V.thumbnailOverlays);(!this.downloadRenderData||Y||S)&&this.downloadStateChanged()}};
_.M.setVideoIdChanged=function(){if(this.data&&this.data.setVideoId){var S,p,U=(S=this.data.menu)==null?void 0:(p=S.menuRenderer)==null?void 0:p.items;if(U)for(S=_.d(U),p=S.next();!p.done;p=S.next())if(p=p.value,U=void 0,_.b((U=p.menuServiceItemRenderer)==null?void 0:U.serviceEndpoint,_.h1)){var Y=U=void 0,L=void 0;p=(U=p)==null?void 0:(Y=U.menuServiceItemRenderer)==null?void 0:(L=Y.serviceEndpoint)==null?void 0:L.playlistEditEndpoint;L=Y=void 0;if(U=(Y=p)==null?void 0:(L=Y.actions)==null?void 0:
L[0])Y=void 0,U.setVideoId=(Y=this.data)==null?void 0:Y.setVideoId;L=Y=U=void 0;if(p=(U=p)==null?void 0:(Y=U.clientActions)==null?void 0:(L=Y[0])==null?void 0:L.playlistRemoveVideosAction)U=void 0,p.setVideoIds=[(U=this.data)==null?void 0:U.setVideoId]}}};
_.$u.Object.defineProperties(Sy.prototype,{playlistVideoId:{configurable:!0,enumerable:!0,get:function(){return this.data.videoId}}});
Sy.prototype.setVideoIdChanged=Sy.prototype.setVideoIdChanged;Sy.prototype.dataChanged=Sy.prototype.dataChanged;Sy.prototype.downloadStateChanged=Sy.prototype.downloadStateChanged;Sy.prototype.onMenuOverlayChanged=Sy.prototype.onMenuOverlayChanged;Sy.prototype.canReorderChanged=Sy.prototype.canReorderChanged;_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],Sy.prototype,"ytRendererBehavior",void 0);_.x([_.F(_.Xh),_.E("design:type",Object)],Sy.prototype,"ytdReduxBehavior",void 0);
_.x([_.F(_.qH.YtRendererstamperBehavior),_.E("design:type",Object)],Sy.prototype,"ytRendererstamperBehavior",void 0);_.x([_.F(_.ak),_.E("design:type",Object)],Sy.prototype,"ytdLockupBehavior",void 0);_.x([_.F(_.Zh),_.E("design:type",Object)],Sy.prototype,"ytdDismissibleItemBehavior",void 0);_.x([_.F(_.eL.YtComponentBehavior),_.E("design:type",Object)],Sy.prototype,"ytComponentBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],Sy.prototype,"data",void 0);
_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],Sy.prototype,"amsterdamPostMvp",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Boolean)],Sy.prototype,"canReorder",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Boolean)],Sy.prototype,"menuOpened",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Boolean)],Sy.prototype,"handleIsHovered",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Boolean)],Sy.prototype,"persistentDragHandle",void 0);
_.x([_.g(),_.E("design:type",Object)],Sy.prototype,"downloadRenderData",void 0);_.x([_.g({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.E("design:type",String)],Sy.prototype,"styleType",void 0);_.x([_.g({computed:"computeThumbnailWidth(data.style)"}),_.E("design:type",Number)],Sy.prototype,"thumbnailWidth",void 0);_.x([_.g({value:!1,reflectToAttribute:!0}),_.E("design:type",Boolean)],Sy.prototype,"isDownloads",void 0);
_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],Sy.prototype,"cairoCollabPlaylistPostMvp",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Boolean)],Sy.prototype,"playlistVotingAnimationEnabled",void 0);_.x([_.g({selector:e4,selectorArgs:["data.videoId"]}),_.E("design:type",Object)],Sy.prototype,"downloadProgress",void 0);_.x([_.g(),_.E("design:type",Number)],Sy.prototype,"relativeDateReference",void 0);
_.x([_.g({selector:_.Z4,selectorArgs:["data.videoId"]}),_.E("design:type",Object)],Sy.prototype,"transferState",void 0);_.x([_.g({selector:gSX,selectorArgs:["data.videoId"]}),_.E("design:type",Object)],Sy.prototype,"downloadState",void 0);_.x([_.g({selector:y1E,selectorArgs:["data.videoId"]}),_.E("design:type",Object)],Sy.prototype,"offlinePolicyAction",void 0);_.x([_.g({selector:KSw,selectorArgs:["data.videoId"]}),_.E("design:type",Object)],Sy.prototype,"offlineVideoPolicyExpirationTimestamp",void 0);
_.x([_.g({selector:jgE,selectorArgs:["data.videoId"]}),_.E("design:type",Object)],Sy.prototype,"entityInfo",void 0);_.x([_.g({selector:_.F1}),_.E("design:type",Boolean)],Sy.prototype,"miniplayerIsActive",void 0);_.x([_.e("data"),_.E("design:type",String),_.E("design:paramtypes",[])],Sy.prototype,"playlistVideoId",null);_.x([_.O2("#thumbnail"),_.E("design:type",Object)],Sy.prototype,"thumbnail",void 0);
_.x([_.z4("canReorder"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],Sy.prototype,"canReorderChanged",null);_.x([_.Vd("yt-menu-overlay-changed"),_.E("design:type",Function),_.E("design:paramtypes",[CustomEvent,Boolean]),_.E("design:returntype")],Sy.prototype,"onMenuOverlayChanged",null);
_.x([_.z4("transferState","offlinePolicyAction","offlineVideoPolicyExpirationTimestamp","downloadProgress","downloadState"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],Sy.prototype,"downloadStateChanged",null);_.x([_.z4("data"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],Sy.prototype,"dataChanged",null);
_.x([_.z4("data.setVideoId"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],Sy.prototype,"setVideoIdChanged",null);Sy=_.x([_.f({is:"ytd-playlist-video-renderer",disableElementRegistration:!0})],Sy);
_.C(Sy,"ytd-playlist-video-renderer",function(){if(the!==void 0)return the;var S=document.createElement("template");_.h(S,'\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');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);S.content.insertBefore(Amc().content.cloneNode(!0),S.content.firstChild);return the=S},{mode:1});var Y4P;var pb=function(){return _.w.apply(this,arguments)||this};
_.r(pb,_.w);_.x([_.g(),_.E("design:type",Object)],pb.prototype,"data",void 0);_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],pb.prototype,"rendererBehavior",void 0);pb=_.x([_.f({is:"ytd-premium-browse-footer-renderer",disableElementRegistration:!0})],pb);
_.C(pb,"ytd-premium-browse-footer-renderer",function(){if(Y4P!==void 0)return Y4P;var S=document.createElement("template");_.h(S,'\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');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);return Y4P=S},{mode:1});var LMl;var Un=function(){var S=_.w.apply(this,arguments)||this;S.actionMap={"yt-dark-mode-toggled-action":"handleDarkModeToggledAction"};return S};
_.r(Un,_.w);_.M=Un.prototype;_.M.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
_.M.handleDarkModeToggledAction=function(S){this.isDarkTheme=S};
_.M.computeHeaderLogoThumbnail=function(S,p){if(S)return p?S.darkLogo:S.lightLogo};
_.M.computeHeaderLogoHeight=function(S,p){var U,Y,L;return(S=(U=this.computeHeaderLogoThumbnail(S,p))==null?void 0:(Y=U.thumbnails)==null?void 0:(L=Y[0])==null?void 0:L.height)&&S%31===0?"31":"24"};
_.M.computeHeaderLogoMarginBottom=function(S,p){return this.computeHeaderLogoHeight(S,p)==="24"?"0":"-7"};
_.x([_.F(_.Aj.YtActionHandlerBehavior),_.E("design:type",Object)],Un.prototype,"actionHandlerBehavior",void 0);_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],Un.prototype,"ytRendererBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],Un.prototype,"data",void 0);_.x([_.g(),_.E("design:type",Boolean)],Un.prototype,"isDarkTheme",void 0);_.x([_.g({computed:"computeHeaderLogoThumbnail(data,isDarkTheme)"}),_.E("design:type",Object)],Un.prototype,"themeLogo",void 0);
_.x([_.g({computed:"computeHeaderLogoHeight(data,isDarkTheme)"}),_.E("design:type",String)],Un.prototype,"logoHeight",void 0);_.x([_.g({computed:"computeHeaderLogoMarginBottom(data,isDarkTheme)"}),_.E("design:type",String)],Un.prototype,"logoMarginBottom",void 0);Un=_.x([_.f({is:"ytd-primetime-promo-header-renderer",disableElementRegistration:!0})],Un);
_.C(Un,"ytd-primetime-promo-header-renderer",function(){if(LMl!==void 0)return LMl;var S=document.createElement("template");_.h(S,'\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>');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);return LMl=S},{mode:1});var M_l;var d3H=_.$k(function(S){var p=_.kL(function(L){var I;(I=S.onClick)==null||I.call(S,L)}),U={},Y={};
return _.H("yt-shelf-header-layout",{class:_.VD("shelf-header-layout-wiz",(U["shelf-header-layout-wiz--disable-horizontal-padding"]=S.disableHorizontalPadding,U["shelf-header-layout-wiz--disable-vertical-padding"]=S.disableVerticalPadding,U["shelf-header-layout-wiz--responsive"]=S.useResponsiveLayout,U["shelf-header-layout-wiz--narrow"]=function(){var L,I;return((L=S.useResponsiveLayout)==null?void 0:L.call(S))&&((I=S.forceSmallLayout)==null?void 0:I.call(S))},U["shelf-header-layout-wiz--is-overlay"]=
S.isOverlay,U["shelf-header-layout-wiz--tappable"]=!!S.onClick,U)),
"on:click":p,tabindex:S.onClick?0:void 0},_.H(_.n,{cond:S.leadingIcon,then:function(L){return _.H("div",{class:"shelf-header-layout-wiz__leading-icon"},_.H(_.QD,{icon:L}))},
else:function(){return _.H(_.n,{cond:S.hasLeadingImage,then:function(){var L,I={};return _.H("div",{class:_.VD("shelf-header-layout-wiz__leading-image",(I["shelf-header-layout-wiz__leading-image--circular-image"]=S.circularImage,I))},(L=S.leadingImage)==null?void 0:L.call(S))}})}}),_.H("div",{class:"shelf-header-layout-wiz__label-container"},_.H(_.n,{cond:S.hasSuperlabel,
then:function(){var L;return _.H("div",{class:"shelf-header-layout-wiz__superlabel"},(L=S.superlabel)==null?void 0:L.call(S))}}),_.H("div",{class:"shelf-header-layout-wiz__title-row"},_.H(IWd,{text:S.title,
className:_.VD("shelf-header-layout-wiz__title",(Y["shelf-header-layout-wiz__title--small-title"]=S.forceSmallLayout,Y)),tagLevel:S.tagLevel}),_.H(_.n,{cond:S.hasDetail,then:function(){var L;return _.H("div",{class:"shelf-header-layout-wiz__detail"},(L=S.detail)==null?void 0:L.call(S))}})),_.H(_.n,{cond:S.hasSublabel,
then:function(){var L;return _.H("div",{class:"shelf-header-layout-wiz__sublabel"},(L=S.sublabel)==null?void 0:L.call(S))}})),_.H(_.n,{cond:S.hasTrailingActions,
then:function(){var L;return _.H("div",{class:"shelf-header-layout-wiz__trailing-actions"},(L=S.trailingActions)==null?void 0:L.call(S))}}))},"Kb");
d3H.idomCompat={callbacks:{title:!0,detail:!0,sublabel:!0,superlabel:!0,leadingImage:!0,trailingActions:!0,onClick:!0}};
var IWd=_.$k(function(S){var p=S.text;var U=S.className;var Y=S.tagLevel;return _.H(_.r7,null,_.H(_.bb,{when:function(){return(Y==null?void 0:Y())===0}},function(){return _.H("h2",{class:U},p())}),_.H(_.bb,{when:function(){return(Y==null?void 0:Y())===1}},function(){return _.H("h3",{class:U},p())}),_.H(_.bb,{when:function(){return(Y==null?void 0:Y())===2}},function(){return _.H("h4",{class:U},p())}),_.H(_.jn,null,function(){return _.H("h2",{class:U},p())}))},"Lb");var WMw,V_m,T2m;_.Yh=_.$k(function(S){var p=S.data;return _.H("yt-section-header-view-model",{class:"ytSectionHeaderViewModelHost",style:_.zw({"background-color":function(){return iBq(p().backgroundColor)?_.ev(iBq(p().backgroundColor)):void 0}})},_.H(d3H,{hasDetail:!1,
title:function(){return _.H(_.i6,{text:function(){return p().headline}})},
hasTitle:!0,sublabel:function(){return _.H(V_m,{data:p})},
hasSublabel:function(){return!!p().sublabel||!!p().bottomBadge},
superlabel:function(){return _.H(T2m,{data:p})},
hasSuperlabel:function(){return!!p().superlabel||!!p().topBadge},
leadingImage:function(){return _.H(WMw,{leadingAccessory:function(){return p().leadingAccessory}})},
hasLeadingImage:function(){return!!p().leadingAccessory},
trailingActions:function(){return _.H(_.yP,{data:function(){return p().trailingActions}},{flexibleActionsViewModel:GF})},
hasTrailingActions:function(){return!!p().trailingActions},
disableHorizontalPadding:S.disableHorizontalPadding,disableVerticalPadding:S.disableVerticalPadding,forceSmallLayout:S.forceSmallLayout,useResponsiveLayout:S.useResponsiveLayout,isOverlay:S.isOverlay,onClick:function(U){if(_.f6(p().rendererContext)){var Y=_.aF(p().rendererContext);Y&&_.eV(Y,{form:{element:U.target,event:U}})}}}))},"Mb");
WMw=_.$k(function(S){var p=S.leadingAccessory;return _.H(_.U0,null,_.H(_.n,{cond:function(){var U;return(U=p().image)!=null?U:_.$O(p().themedImage)},
then:function(U){return _.H(_.of,{data:U,alt:"",preserveWidth:!0,preserveHeight:!0})}}),_.H(_.n,{cond:function(){return _.b(p().avatar,_.xO)},
then:function(U){return _.H(_.bS,{data:U})}}))},"Nb");
V_m=_.$k(function(S){var p=S.data;return _.H(_.U0,null,_.H(_.n,{cond:function(){return _.b(p().bottomBadge,aEl)},
then:function(U){var Y={};return _.H(_.Bh,{data:U,class:_.VD((Y.ytSectionHeaderViewModelBadgeWithLabel=function(){return!!U()&&!!p().sublabel},Y))})}}),_.H(_.n,{cond:function(){return p().sublabel},
then:function(U){return _.H(_.i6,{text:U})}}))},"Ob");
T2m=_.$k(function(S){var p=S.data;return _.H(_.U0,null,_.H(_.n,{cond:function(){return _.b(p().topBadge,aEl)},
then:function(U){var Y={};return _.H(_.Bh,{data:U,class:_.VD((Y.ytSectionHeaderViewModelBadgeWithLabel=function(){return!!U()&&!!p().superlabel},Y))})}}),_.H(_.n,{cond:function(){return p().superlabel},
then:function(U){return _.H(_.i6,{text:U})}}))},"Pb");_.qm(_.Yh,"yt-section-header-view-model",{props:{data:_.x2,className:_.x2,disableHorizontalPadding:_.x2,disableVerticalPadding:_.x2,forceSmallLayout:_.x2,useResponsiveLayout:_.x2,isOverlay:_.x2}});_.Ry("itemSectionRenderer","primetimePromoRenderer","ytd-primetime-promo-renderer");var Lb=function(){var S=_.w.apply(this,arguments)||this;S.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction"};return S};
_.r(Lb,_.w);_.M=Lb.prototype;_.M.attached=function(){this.requestElementsPerRow()};
_.M.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"}}}};
_.M.onDataChange=function(){var S=this;_.oH(this,function(){S.updateItemVisibility()})};
_.M.onUpdateElementsPerRowAction=function(S){S&&this.elementsPerRow!==S&&(this.elementsPerRow=S,this.updateItemVisibility())};
_.M.updateItemVisibility=function(){var S=this;this.data&&this.data.panels&&_.tB(this.hostElement).querySelectorAll("ytd-rich-item-renderer").forEach(function(p,U){p.hidden=U>S.elementsPerRow-1})};
_.M.requestElementsPerRow=function(){_.cv(this.hostElement,"yt-request-elements-per-row")};
Lb.prototype.onDataChange=Lb.prototype.onDataChange;_.x([_.F(_.qH.YtRendererstamperBehavior),_.E("design:type",Object)],Lb.prototype,"ytRendererstamperBehavior",void 0);_.x([_.F(_.Zh),_.E("design:type",Object)],Lb.prototype,"ytdDismissibleItemBehavior",void 0);_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],Lb.prototype,"ytRendererBehavior",void 0);_.x([_.F(_.Aj.YtActionHandlerBehavior),_.E("design:type",Object)],Lb.prototype,"actionHandlerBehavior",void 0);
_.x([_.g(),_.E("design:type",Object)],Lb.prototype,"data",void 0);_.x([_.g({value:3}),_.E("design:type",Number)],Lb.prototype,"elementsPerRow",void 0);_.x([_.T4("data"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],Lb.prototype,"onDataChange",null);Lb=_.x([_.f({is:"ytd-primetime-promo-renderer",disableElementRegistration:!0})],Lb);
_.C(Lb,"ytd-primetime-promo-renderer",function(){if(M_l!==void 0)return M_l;var S=document.createElement("template");_.h(S,'\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');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);return M_l=S},{mode:1});var O1q;var Mg=function(){var S=_.w.apply(this,arguments)||this;S.actionMap={"yt-button-refresh-action":"handleButtonRefreshAction"};return S};
_.r(Mg,_.w);Mg.prototype.configureRendererStamper=function(){return{"data.button":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer"}}}}};
Mg.prototype.handleButtonRefreshAction=function(S){if(S=_.b(S,clH))this.set("data.button",S.membershipButton),this.notifyPath("data.button")};
_.$u.Object.defineProperties(Mg.prototype,{avatars:{configurable:!0,enumerable:!0,get:function(){var S,p;return((S=this.data)==null?void 0:(p=S.avatars)==null?void 0:p.slice(0,8))||[]}}});
_.x([_.g(),_.E("design:type",Object)],Mg.prototype,"data",void 0);_.x([_.F(_.Aj.YtActionHandlerBehavior),_.E("design:type",Object)],Mg.prototype,"ytActionHandlerBehavior",void 0);_.x([_.F(_.qH.YtRendererstamperBehavior),_.E("design:type",Object)],Mg.prototype,"ytRendererstamperBehavior",void 0);_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],Mg.prototype,"rendererBehavior",void 0);_.x([_.e("data"),_.E("design:type",Array),_.E("design:paramtypes",[])],Mg.prototype,"avatars",null);
Mg=_.x([_.f({is:"ytd-recognition-shelf-renderer",disableElementRegistration:!0})],Mg);
_.C(Mg,"ytd-recognition-shelf-renderer",function(){if(O1q!==void 0)return O1q;var S=document.createElement("template");_.h(S,'\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');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);return O1q=S},{mode:1});var k8t;var H1P;var II=function(){var S=_.w.apply(this,arguments)||this;S.modernButtons=_.y("web_modern_buttons");return S};
_.r(II,_.w);_.M=II.prototype;
_.M.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]]"}}}}}};
_.M.dataChanged=function(){this.collapsed=!0};
_.M.computeVisibleItems=function(S,p){return S!==void 0&&S.items?p?S.items.slice(0,this.data.collapsedItemCount):S.items:[]};
_.M.computeHideShowMore=function(S,p,U){return S>=p||!U};
_.M.computeHideShowAll=function(S,p,U){return!(S&&p)||U};
_.M.onMoreClick=function(){this.collapsed=!1};
_.$u.Object.defineProperties(II.prototype,{typographyBump:{configurable:!0,enumerable:!0,get:function(){return this.isSearch&&_.y("use_modern_typography_on_search")}},
lockupExperiments:{configurable:!0,enumerable:!0,get:function(){if(this.isSearch)return{alwaysRespectPodcastShowAspectRatio:_.Ug("podcast_show_lockup_style_web")==="square_thumbnail",useLegacyTypography:!_.y("use_modern_typography_on_search")}}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isSearch?"50%":"246px"}}});
II.prototype.dataChanged=II.prototype.dataChanged;_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],II.prototype,"ytRendererBehavior",void 0);_.x([_.F(_.qH.YtRendererstamperBehavior),_.E("design:type",Object)],II.prototype,"ytRendererstamperBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],II.prototype,"data",void 0);_.x([_.g({value:!1}),_.E("design:type",Boolean)],II.prototype,"isSearch",void 0);
_.x([_.g({computed:"computeVisibleItems(data,collapsed)"}),_.E("design:type",Array)],II.prototype,"visibleItems",void 0);_.x([_.g({value:!0}),_.E("design:type",Boolean)],II.prototype,"collapsed",void 0);_.x([_.g({computed:"computeHideShowMore(data.collapsedItemCount,data.items.length,collapsed)"}),_.E("design:type",Boolean)],II.prototype,"hideShowMore",void 0);
_.x([_.g({computed:"computeHideShowAll(data.expandedStateButtonEndpoint,\n        data.expandedStateButtonText,collapsed)",value:!0}),_.E("design:type",Boolean)],II.prototype,"hideShowAll",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Boolean)],II.prototype,"modernButtons",void 0);_.x([_.e("isSearch"),_.E("design:type",Boolean),_.E("design:paramtypes",[])],II.prototype,"typographyBump",null);
_.x([_.e("isSearch"),_.E("design:type",Object),_.E("design:paramtypes",[])],II.prototype,"lockupExperiments",null);_.x([_.e("isSearch"),_.E("design:type",String),_.E("design:paramtypes",[])],II.prototype,"thumbnailWidth",null);_.x([_.z4("data"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],II.prototype,"dataChanged",null);II=_.x([_.f({disableElementRegistration:!0,is:"ytd-vertical-list-renderer"})],II);
_.C(II,"ytd-vertical-list-renderer",function(){if(H1P!==void 0)return H1P;var S=document.createElement("template");_.h(S,'\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');
S.content.insertBefore(_.t().content.cloneNode(!0),S.content.firstChild);return H1P=S},{mode:1});var D3d=_.x1(["#"]);_.Ry("itemSectionRenderer","shelfRenderer","ytd-shelf-renderer");var dq=function(){var S=_.w.apply(this,arguments)||this;S.isConstrainedList=!1;S.modernTypography=_.y("web_modern_typography");return S};
_.r(dq,_.w);_.M=dq.prototype;
_.M.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"}}}};
_.M.computeThumbnailStyle=function(S){return S||""};
_.M.computePlaceAnnotationUnderTitle=function(){var S;return["CHANNEL_THUMBNAIL_STYLE_BOXART","CHANNEL_THUMBNAIL_STYLE_BOXART_ROUNDED"].includes(((S=this.data)==null?void 0:S.thumbnailStyle)||"")};
_.M.computeHrefWithDefault=function(S){return this.ytComponentBehavior.computeHref_(S)||_.rc(D3d)};
_.M.computeIsPromoShelf=function(S){var p;return(S=S==null?void 0:(p=S[0])==null?void 0:p.metadataBadgeRenderer)?S.style==="BADGE_STYLE_TYPE_YPC_TRANSPARENT":!1};
_.M.computePlaceBadgeBesideTitle=function(S){var p;return(S==null?0:(p=S[0])==null?0:p.metadataBadgeRenderer)?!this.computeIsPromoShelf(S):!1};
_.M.computeMenuIcon=function(S){return this.computeIsPromoShelf(S)?"yt-icons:more_vert":"yt-icons:more"};
_.M.onDataChange=function(){var S,p;((S=this.data)==null?0:(p=S.content)==null?0:p.horizontalListRenderer)&&!this.data.content.horizontalListRenderer.items&&(this.data.content.horizontalListRenderer=void 0)};
_.M.onLockupRequested=function(S){if(this.data&&this.data.content&&this.data.content.gridRenderer&&this.data.content.gridRenderer.items&&S.detail&&S.detail.videoIds){for(var p=this.data.content.gridRenderer.items,U=new Set,Y=_.d(S.detail.videoIds),L=Y.next();!L.done;L=Y.next())U.add(L.value);S.detail.returnValue=p.filter(function(I){return I.gridVideoRenderer&&I.gridVideoRenderer.videoId&&U.has(I.gridVideoRenderer.videoId)}).map(function(I){return I.gridVideoRenderer})}};
_.M.onParentResize=function(){this.ironResizableBehavior.notifyResize()};
dq.prototype.onLockupRequested=dq.prototype.onLockupRequested;dq.prototype.onDataChange=dq.prototype.onDataChange;_.x([_.F(_.qH.YtRendererstamperBehavior),_.E("design:type",Object)],dq.prototype,"ytRendererstamperBehavior",void 0);_.x([_.F(_.Zh),_.E("design:type",Object)],dq.prototype,"ytdDismissibleItemBehavior",void 0);_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],dq.prototype,"ytRendererBehavior",void 0);
_.x([_.F(_.eL.YtComponentBehavior),_.E("design:type",Object)],dq.prototype,"ytComponentBehavior",void 0);_.x([_.F(_.ji),_.E("design:type",Object)],dq.prototype,"ironResizableBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],dq.prototype,"data",void 0);_.x([_.g({value:!1}),_.E("design:type",Boolean)],dq.prototype,"isSearch",void 0);_.x([_.g(),_.E("design:type",Object)],dq.prototype,"isConstrainedList",void 0);_.x([_.g({reflectToAttribute:!0,value:function(){return _.y("kevlar_fluid_dismiss")}}),
_.E("design:type",Boolean)],dq.prototype,"enableFluidDismiss",void 0);_.x([_.g({reflectToAttribute:!0,computed:"computeThumbnailStyle(data.thumbnailStyle)"}),_.E("design:type",String)],dq.prototype,"thumbnailStyle",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],dq.prototype,"modernTypography",void 0);_.x([_.g({computed:"computeMenuIcon(data.badges)"}),_.E("design:type",String)],dq.prototype,"menuIcon",void 0);
_.x([_.T4("data"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],dq.prototype,"onDataChange",null);_.x([_.Vd("yt-lockup-requested"),_.E("design:type",Function),_.E("design:paramtypes",[CustomEvent]),_.E("design:returntype")],dq.prototype,"onLockupRequested",null);dq=_.x([_.f({is:"ytd-shelf-renderer",disableElementRegistration:!0})],dq);
_.C(dq,"ytd-shelf-renderer",function(){if(k8t!==void 0)return k8t;var S=document.createElement("template");_.h(S,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-shelf-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" class="style-scope ytd-shelf-renderer">\n  <div class="grid-subheader style-scope ytd-shelf-renderer" hidden="[[data.hideHeader]]">\n    <div id="title-container" hidden="[[!data.title]]" class="style-scope ytd-shelf-renderer">\n      <h2 class="style-scope ytd-shelf-renderer">\n        <template is="dom-if" if="[[!data.endpoint]]" class="style-scope ytd-shelf-renderer">\n          <yt-icon id="icon" disable-upgrade$="[[!data.icon.iconType]]" hidden="[[!data.icon.iconType]]" icon="[[data.icon.iconType]]" class="style-scope ytd-shelf-renderer">\n          </yt-icon>\n          <span id="title" class="style-scope ytd-shelf-renderer">[[getSimpleString(data.title)]]</span>\n        </template>\n        <template is="dom-if" if="[[data.endpoint]]" class="style-scope ytd-shelf-renderer">\n          <div id="image-container" class="style-scope ytd-shelf-renderer">\n            <a class="yt-simple-endpoint style-scope ytd-shelf-renderer" aria-hidden="true" href$="[[computeHref_(data.endpoint)]]" data="[[data.endpoint]]" tabindex="-1" title="[[getSimpleString(data.title)]]">\n              <yt-img-shadow id="avatar" hidden="[[!data.thumbnail]]" thumbnail="[[data.thumbnail]]" class="style-scope ytd-shelf-renderer">\n              </yt-img-shadow>\n              <yt-icon id="icon" disable-upgrade$="[[!data.icon.iconType]]" hidden="[[!data.icon.iconType]]" icon="[[data.icon.iconType]]" class="style-scope ytd-shelf-renderer">\n              </yt-icon>\n            </a>\n            <div id="title-text" class="style-scope ytd-shelf-renderer">\n              <a class="yt-simple-endpoint style-scope ytd-shelf-renderer" href$="[[computeHrefWithDefault(data.endpoint)]]" data="[[data.endpoint]]">\n                <span id="title" class="style-scope ytd-shelf-renderer">[[getSimpleString(data.title)]]</span>\n              </a>\n              <ytd-badge-supported-renderer id="title-featured-badge" badges="[[data.badges]]" hidden="[[!computeIsPromoShelf(data.badges)]]" class="style-scope ytd-shelf-renderer">\n              </ytd-badge-supported-renderer>\n              <yt-formatted-string id="title-annotation" hidden="[[!computePlaceAnnotationUnderTitle(data)]]" text="[[data.titleAnnotation]]" class="style-scope ytd-shelf-renderer">\n              </yt-formatted-string>\n            </div>\n          </div>\n        </template>\n        <ytd-badge-supported-renderer id="featured-badge" badges="[[data.badges]]" hidden="[[!computePlaceBadgeBesideTitle(data.badges)]]" class="style-scope ytd-shelf-renderer">\n        </ytd-badge-supported-renderer>\n        <yt-formatted-string id="title-annotation" hidden="[[computePlaceAnnotationUnderTitle(data)]]" text="[[data.titleAnnotation]]" class="style-scope ytd-shelf-renderer">\n        </yt-formatted-string>\n        <div id="play-button" class="style-scope ytd-shelf-renderer"></div>\n        <div id="sort-filter" class="style-scope ytd-shelf-renderer"></div>\n      </h2>\n      <div id="spacer" class="style-scope ytd-shelf-renderer"></div>\n      <div id="subscribe-button" class="style-scope ytd-shelf-renderer"></div>\n      <div id="menu" class="style-scope ytd-shelf-renderer"></div>\n    </div>\n    <yt-formatted-string id="subtitle" class="can-be-empty style-scope ytd-shelf-renderer" text="[[data.subtitle]]">\n    </yt-formatted-string>\n  </div>\n  <div id="contents" class="style-scope ytd-shelf-renderer"></div>\n</div>\n<div id="dismissed" class="style-scope ytd-shelf-renderer"></div>\n');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);return k8t=S},{mode:1});var zsd;var VE=function(){return _.w.apply(this,arguments)||this};
_.r(VE,_.w);VE.prototype.configureRendererStamper=function(){return{"data.filterMenu":{id:"filter-menu",mapping:{sortFilterSubMenuRenderer:{component:"yt-sort-filter-sub-menu-renderer",properties:{isRightAligned:"[[isRightAligned]]"}}}}}};
_.$u.Object.defineProperties(VE.prototype,{hasTitle:{configurable:!0,enumerable:!0,get:function(){var S;return!((S=this.data)==null||!S.title)}},
isRightAligned:{configurable:!0,enumerable:!0,get:function(){return!this.isPlaylist&&!this.isClipList&&!this.isPlaylistPageWithFilters}}});
_.x([_.F(_.qH.YtRendererstamperBehavior),_.E("design:type",Object)],VE.prototype,"ytRendererstamperBehavior",void 0);_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],VE.prototype,"ytRendererBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],VE.prototype,"data",void 0);_.x([_.g({value:!1,reflectToAttribute:!0}),_.E("design:type",Boolean)],VE.prototype,"isPlaylist",void 0);_.x([_.g({value:!1,reflectToAttribute:!0}),_.E("design:type",Boolean)],VE.prototype,"isClipList",void 0);
_.x([_.g({value:!1,reflectToAttribute:!0}),_.E("design:type",Boolean)],VE.prototype,"isPlaylistPageWithFilters",void 0);_.x([_.g({value:!1,reflectToAttribute:!0}),_.e("data"),_.E("design:type",Object),_.E("design:paramtypes",[])],VE.prototype,"hasTitle",null);_.x([_.g(),_.e("isPlaylist","isClipList","isPlaylistPageWithFilters"),_.E("design:type",Object),_.E("design:paramtypes",[])],VE.prototype,"isRightAligned",null);
VE=_.x([_.f({is:"ytd-sort-filter-header-renderer",disableElementRegistration:!0})],VE);
_.C(VE,"ytd-sort-filter-header-renderer",function(){if(zsd!==void 0)return zsd;var S=document.createElement("template");_.h(S,'\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');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);return zsd=S},{mode:1});var Qoe;var TP=function(){return _.w.apply(this,arguments)||this};
_.r(TP,_.w);
TP.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]]"}}}}}};
TP.prototype.getItemsPath=function(){return"data.creatorCustomUrlButtons"};
_.$u.Object.defineProperties(TP.prototype,{creatorCustomUrlButtons:{configurable:!0,enumerable:!0,get:function(){if(this.data&&_.y("enable_creator_details_shelf_m2")){var S=[],p;((p=this.data)==null?0:p.creatorVideosButton)&&S.push(this.data.creatorVideosButton);var U;((U=this.data)==null?0:U.creatorAboutButton)&&S.push(this.data.creatorAboutButton);p=_.d(this.data.creatorCustomUrlButtons||[]);for(U=p.next();!U.done;U=p.next())S.push(U.value);return S}}},
showCreatorCustomUrlButtons:{configurable:!0,enumerable:!0,get:function(){return!!_.y("enable_creator_details_shelf_m2")}},
channelAvatarSize:{configurable:!0,enumerable:!0,get:function(){return this.showCreatorCustomUrlButtons?36:72}}});
_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],TP.prototype,"ytRendererBehavior",void 0);_.x([_.F(_.qH.YtRendererstamperBehavior),_.E("design:type",Object)],TP.prototype,"ytRendererstamperBehavior",void 0);_.x([_.F(_.A6.YtdHorizontalListBehavior),_.E("design:type",Object)],TP.prototype,"ytdHorizontalListBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],TP.prototype,"data",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Boolean)],TP.prototype,"engagementPanel",void 0);
_.x([_.e("data"),_.E("design:type",Object),_.E("design:paramtypes",[])],TP.prototype,"creatorCustomUrlButtons",null);_.x([_.g({reflectToAttribute:!0}),_.e("data","creatorCustomUrlButtons"),_.E("design:type",Boolean),_.E("design:paramtypes",[])],TP.prototype,"showCreatorCustomUrlButtons",null);_.x([_.e("showCreatorCustomUrlButtons"),_.E("design:type",Number),_.E("design:paramtypes",[])],TP.prototype,"channelAvatarSize",null);
TP=_.x([_.f({is:"ytd-video-description-infocards-section-renderer",disableElementRegistration:!0})],TP);
_.C(TP,"ytd-video-description-infocards-section-renderer",function(){if(Qoe!==void 0)return Qoe;var S=document.createElement("template");_.h(S,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-description-infocards-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a id="header" class="yt-simple-endpoint style-scope ytd-video-description-infocards-section-renderer" data="[[data.channelEndpoint]]" href$="[[computeOptionalHref_(data.channelEndpoint)]]">\n  <yt-img-shadow id="thumbnail" alt="[[getSimpleString(data.sectionTitle)]]" hidden="[[!data.channelAvatar]]" thumbnail="[[data.channelAvatar]]" width="[[channelAvatarSize]]" class="style-scope ytd-video-description-infocards-section-renderer">\n  </yt-img-shadow>\n  <div id="header-text" class="style-scope ytd-video-description-infocards-section-renderer">\n    <h3 id="title" class="style-scope ytd-video-description-infocards-section-renderer">[[getSimpleString(data.sectionTitle)]]</h3>\n    <div id="subtitle" hidden="[[!data.sectionSubtitle]]" class="style-scope ytd-video-description-infocards-section-renderer">\n      [[getSimpleString(data.sectionSubtitle)]]\n    </div>\n  </div>\n</a>\n<div id="action-buttons" hidden="[[showCreatorCustomUrlButtons]]" class="style-scope ytd-video-description-infocards-section-renderer">\n  <div id="infocard-videos-button" class="style-scope ytd-video-description-infocards-section-renderer"></div>\n  <div id="infocard-channel-button" class="style-scope ytd-video-description-infocards-section-renderer"></div>\n</div>\n<div id="social-links" hidden="[[!showCreatorCustomUrlButtons]]" class="style-scope ytd-video-description-infocards-section-renderer">\n  <div id="left-arrow-container" class="arrow-container style-scope ytd-video-description-infocards-section-renderer">\n    <div id="left-arrow" class="arrow center-aligned style-scope ytd-video-description-infocards-section-renderer" on-click="prevClick_" hidden="[[atStart]]">\n       <yt-icon icon="yt-icons:chevron_left" class="style-scope ytd-video-description-infocards-section-renderer"></yt-icon>\n    </div>\n  </div>\n  <div id="scroll-container" class="style-scope ytd-video-description-infocards-section-renderer">\n    <div id="items" class="style-scope ytd-video-description-infocards-section-renderer"></div>\n  </div>\n  <div id="right-arrow-container" class="arrow-container style-scope ytd-video-description-infocards-section-renderer">\n    <div id="right-arrow" class="arrow center-aligned style-scope ytd-video-description-infocards-section-renderer" on-click="nextClick_">\n       <yt-icon icon="yt-icons:chevron_right" class="style-scope ytd-video-description-infocards-section-renderer"></yt-icon>\n    </div>\n  </div>\n</div>\n<div id="infocards-section" class="style-scope ytd-video-description-infocards-section-renderer"></div>\n');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);return Qoe=S},{mode:_.UW("kevlar_poly_si_batch_j067")?1:2});var nQl;var W8=function(){return _.w.apply(this,arguments)||this};
_.r(W8,_.w);_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],W8.prototype,"ytRendererBehavior",void 0);_.x([_.F(_.qH.YtRendererstamperBehavior),_.E("design:type",Object)],W8.prototype,"ytRendererstamperBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],W8.prototype,"data",void 0);_.x([_.g({computed:"computeIcon_(data.infoIcon)"}),_.E("design:type",Object)],W8.prototype,"infoIcon",void 0);W8=_.x([_.f({is:"ytd-eom-settings-disclaimer-renderer",disableElementRegistration:!0})],W8);
_.C(W8,"ytd-eom-settings-disclaimer-renderer",function(){if(nQl!==void 0)return nQl;var S=document.createElement("template");_.h(S,'\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');
S.content.insertBefore(_.t().content.cloneNode(!0),S.content.firstChild);return nQl=S},{mode:1});var JTt;var On=function(){return _.w.apply(this,arguments)||this};
_.r(On,_.w);_.$u.Object.defineProperties(On.prototype,{suppressPaddingDisclaimer:{configurable:!0,enumerable:!0,get:function(){var S;return!((S=this.data)==null||!S.suppressPaddingDisclaimer)}}});
_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],On.prototype,"ytRendererBehavior",void 0);_.x([_.F(_.eL.YtComponentBehavior),_.E("design:type",Object)],On.prototype,"componentBehavior",void 0);_.x([_.F(_.qH.YtRendererstamperBehavior),_.E("design:type",Object)],On.prototype,"ytRendererstamperBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],On.prototype,"data",void 0);
_.x([_.g({reflectToAttribute:!0}),_.e("data"),_.E("design:type",Boolean),_.E("design:paramtypes",[])],On.prototype,"suppressPaddingDisclaimer",null);On=_.x([_.f({disableElementRegistration:!0,is:"ytd-product-list-header-renderer"})],On);
_.C(On,"ytd-product-list-header-renderer",function(){if(JTt!==void 0)return JTt;var S=document.createElement("template");_.h(S,'\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');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);return JTt=S},{mode:1});var yTm;var kh=function(){return _.w.apply(this,arguments)||this};
_.r(kh,_.w);kh.prototype.computeThumbnailStyle=function(S){if(S&&(S=_.s1(S)))return"background-color:"+S+";"};
_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],kh.prototype,"rendererBehaviors",void 0);_.x([_.g(),_.E("design:type",Object)],kh.prototype,"data",void 0);kh=_.x([_.f({disableElementRegistration:!0,is:"ytd-hashtag-tile-renderer"})],kh);
_.C(kh,"ytd-hashtag-tile-renderer",function(){if(yTm!==void 0)return yTm;var S=document.createElement("template");_.h(S,'\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>');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);return yTm=S},{mode:1});var KMl;var H8=function(){return _.w.apply(this,arguments)||this};
_.r(H8,_.w);H8.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}}}}}};
_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],H8.prototype,"ytRendererBehavior",void 0);_.x([_.F(_.qH.YtRendererstamperBehavior),_.E("design:type",Object)],H8.prototype,"ytRendererstamperBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],H8.prototype,"data",void 0);H8=_.x([_.f({disableElementRegistration:!0,is:"ytd-sponsorships-alert-renderer"})],H8);
_.C(H8,"ytd-sponsorships-alert-renderer",function(){if(KMl!==void 0)return KMl;var S=document.createElement("template");_.h(S,'\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');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);return KMl=S},{mode:1});var b1j;var DV=function(){return _.w.apply(this,arguments)||this};
_.r(DV,_.w);DV.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer"}}},dismissedRenderer:{id:"dismissed",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer"}}}};
_.$u.Object.defineProperties(DV.prototype,{watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.y("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.y("kevlar_watch_feed_big_thumbs")?"9999":"168"}}});
_.x([_.F(_.Zh),_.E("design:type",Object)],DV.prototype,"ytdDismissibleItemBehavior",void 0);_.x([_.F(_.ak),_.E("design:type",Object)],DV.prototype,"ytdLockupBehavior",void 0);_.x([_.F(_.qH.YtRendererstamperBehavior),_.E("design:type",Object)],DV.prototype,"ytRendererstamperBehavior",void 0);_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],DV.prototype,"ytRendererBehavior",void 0);_.x([_.g({selector:_.g8}),_.E("design:type",Object)],DV.prototype,"isGridViewEnabled",void 0);
_.x([_.e("isGridViewEnabled"),_.g({reflectToAttribute:!0}),_.E("design:type",Boolean),_.E("design:paramtypes",[])],DV.prototype,"watchFeedBigThumbs",null);_.x([_.e("isGridViewEnabled"),_.g({reflectToAttribute:!0}),_.E("design:type",String),_.E("design:paramtypes",[])],DV.prototype,"thumbnailWidth",null);_.x([_.g(),_.E("design:type",Object)],DV.prototype,"data",void 0);DV=_.x([_.f({disableElementRegistration:!0,is:"ytd-compact-movie-renderer"})],DV);
_.C(DV,"ytd-compact-movie-renderer",function(){if(b1j!==void 0)return b1j;var S=document.createElement("template");_.h(S,'\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');
S.content.insertBefore(_.t().content.cloneNode(!0),S.content.firstChild);return b1j=S},{mode:1});var joq;var rTH;var G8I=_.g7("HTML_DIR")==="rtl",zP=function(){var S=_.w.apply(this,arguments)||this;S.engagementPanel=!1;S.maxLines=2;S.expandButtonOffset=0;S.showExpandButton=!1;S.isTruncated=!1;S.isExpanded=!1;S.currentSnippetType=2;S.alwaysShowExpandButton=!1;S.JSC$14268_lastWidth=NaN;S.observer=null;S.left=0;S.right=0;S.mid=0;S.longestSnippetLength=0;S.isFinalSnippet=!1;S.isFirstMutation=!1;S.isResetMutation=!1;S.OVERFLOW_THRESHOLD=5;return S};
_.r(zP,_.w);_.M=zP.prototype;_.M.onClick=function(S){if(this.engagementPanel&&(this.showExpandButton||this.isExpanded)&&!_.Eo(_.E1(S)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"TP-YT-PAPER-BUTTON"])){var p;if((p=window.getSelection())==null||!p.toString().length)if(this.isExpanded)this.onCollapseClick();else this.onExpandClick()}};
_.M.updateIsAttributedExpanded=function(){this.isAttributedExpanded=this.isExpanded&&this.hasAttributedStringText};
_.M.updateIsFormattedExpanded=function(){this.isFormattedExpanded=this.isExpanded&&!this.hasAttributedStringText};
_.M.updateTextOnSnippetTypeChange=function(){_.y("update_text_inline_expander_on_snippet_type_change_killswitch")||this.isResetMutation&&this.mutationCallback()};
_.M.setUpBinarySearch=function(S){S=S*this.maxLines/8;this.left=0;var p,U;this.right=Math.min(S*2,(U=(p=this.simpleText)==null?void 0:p.length)!=null?U:0)-1;this.mid=Math.floor(this.left+(this.right-this.left)/2);this.longestSnippetLength=0};
_.M.isEmptyStringBestCandidate=function(){return!this.isResetMutation&&!this.isFirstMutation&&this.longestSnippetLength===0&&this.mid===0};
_.M.maybeLogWarningForEmptyAttributedSnippet=function(){this.attributedSnippetIsEmpty()&&!this.attributedTextIsEmpty()&&_.eP(new _.y7("AttributedSnippet is empty when the description is not empty",this.text))};
_.M.mutationCallback=function(){if(this.observer!=null){var S=this.hostElement.offsetWidth;if(this.attributedSnippetIsEmpty()){if(this.isEmptyStringBestCandidate()){var p=Math.floor(S*this.maxLines/8);this.setSnippetText(this.text,p);p!==0||this.attributedTextIsEmpty()||_.eP(new _.y7("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;S=S*this.maxLines/8;this.left=0;var U;this.right=Math.min(S*2,(U=(p=this.simpleText)==null?void 0:p.length)!=null?U: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)}}};
_.M.mutationObserve=function(S){var p=this;this.observer||(this.observer=new MutationObserver(function(){p.mutationCallback()}));
this.observer.observe(S,{childList:!0,characterData:!0,characterDataOldValue:!0,subtree:!0})};
_.M.attached=function(){var S=this;_.oH(this,function(){S.resize()})};
_.M.isExpandedChanged=function(){_.cv(this.hostElement,"yt-text-inline-expander-expanded-changed")};
_.M.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)};
_.M.updateMaskAndExpandButtonOffset=function(){if(this.isTruncated){var S="linear-gradient(\n        to top,\n        transparent 0%,\n        transparent 2rem,\n        #000 2rem,\n        #000 100%), linear-gradient(\n        to "+((G8I?"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",S);this.snippetContainer.style.setProperty("mask-image",
S)}else this.snippetContainer.style.setProperty("-webkit-mask-image",""),this.snippetContainer.style.setProperty("mask-image","");this.showExpandButton&&this.expandButton.style.setProperty(G8I?"right":"left",this.expandButtonOffset+"px")};
_.M.onTextChanged=function(){this.isAttached&&this.resize(!0)};
_.M.setSnippetText=function(S,p){S||(S={});if(_.xX(S)){var U=xkr(S,p);U.attachmentRuns||U.commandRuns||U.decorationRuns||U.styleRuns||U.alignment||U.lineBreakMode?this.attributedSnippetTextEl?(_.y("kevlar_expander_as_setter_killswitch")?(this.attributedSnippetTextEl.data=xkr(S,p),this.attributedSnippetTextEl.headerRuns=CWe(p,this.headerRuns)):this.attributedSnippetText={data:xkr(S,p),headerRuns:CWe(p,this.headerRuns)},this.currentSnippetType=0):_.eP(new _.y7("Tried to set snippet text when HTML element was null",
S)):(this.plainSnippetText.textContent=af(S.content||"",p),this.currentSnippetType=2)}else{a:{U=Nhw(S,p);if(U.runs){U=_.d(U.runs);for(var Y=U.next();!Y.done;Y=U.next())if(Y=Y.value,Y.bold||Y.deemphasize||Y.italics||Y.strikethrough||Y.textColor||Y.navigationEndpoint||_.b(Y,Xi)){U=!0;break a}}U=!1}U?this.formattedSnippetText?(this.formattedSnippetText.text=Nhw(S,p),this.currentSnippetType=1):_.eP(new _.y7("Tried to set snippet text when HTML element was null",S)):(this.plainSnippetText.textContent=
af(_.mA(S),p),this.currentSnippetType=2)}};
_.M.attributedSnippetIsEmpty=function(){return this.useAttributedSnippet&&this.attributedSnippetTextEl?this.attributedSnippetTextEl.childNodes.length===0:this.plainSnippetText.childNodes.length===0};
_.M.attributedTextIsEmpty=function(){var S=this.text;if(!_.xX(S))return!0;var p;return((p=S.content)==null?void 0:p.length)===0?!0:!1};
_.M.resize=function(S){if(this.snippetText){if(S===void 0?0:S)this.JSC$14268_lastWidth=NaN;var p=this.hostElement.offsetWidth;if(p!==this.JSC$14268_lastWidth&&!this.isExpanded)if(this.JSC$14268_lastWidth=p,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;S=0;var U,Y;p=Math.min(p*this.maxLines/8*2,(Y=(U=this.simpleText)==null?void 0:U.length)!=null?Y:0)-1;for(U=0;S<=p;)Y=Math.floor(S+(p-S)/2),this.setSnippetText(this.text,Y),this.isOverflowing()?p=Y-1:(S=Y+1,U=Y);this.setSnippetText(this.text,U);this.expandButtonOffset=this.computeExpandButtonOffset()}else this.isTruncated=
!1,this.alwaysShowExpandButton&&(this.expandButtonOffset=this.computeExpandButtonOffset())}};
_.M.collapse=function(){this.isExpanded=!1;this.resize(!0)};
_.M.onExpandClick=function(){var S=this;this.expandCommand?this.componentBehavior.resolveCommand(this.expandCommand):(this.isExpanded=!0,this.showExpandButton=this.isTruncated=!1);_.y("inline_expander_reset_focus_killswitch")||_.oH(this,function(){var p;((p=_.tW().resolve(_.AW(_.SN)))==null?0:p.isKeyBoardInUse())&&_.ig(S.hostElement)});
_.cv(this.hostElement,"yt-text-inline-expander-expand-clicked")};
_.M.onCollapseClick=function(){this.collapse();_.cv(this.hostElement,"yt-text-inline-expander-collapse-clicked")};
_.M.isOverflowing=function(){return this.snippetContainer.scrollHeight-this.snippetContainer.offsetHeight>this.OVERFLOW_THRESHOLD};
_.M.computeExpandButtonOffset=function(){var S=this.expandSizer;return S?G8I?S.offsetParent?S.offsetParent.offsetWidth-S.offsetWidth-S.offsetLeft:0:S.offsetLeft:0};
_.$u.Object.defineProperties(zP.prototype,{simpleText:{configurable:!0,enumerable:!0,get:function(){return this.text?_.xX(this.text)?this.text.content||"":_.mA(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 _.xX(this.text)?!0:this.text&&_.y("web_replace_formatted_with_attributed_string")&&VxG(this.text)?(this.text=_.Fi(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}}});
zP.prototype.onTextChanged=zP.prototype.onTextChanged;zP.prototype.updateMaskAndExpandButtonOffset=zP.prototype.updateMaskAndExpandButtonOffset;zP.prototype.updateSnippetContainerMaxHeight=zP.prototype.updateSnippetContainerMaxHeight;zP.prototype.isExpandedChanged=zP.prototype.isExpandedChanged;zP.prototype.updateTextOnSnippetTypeChange=zP.prototype.updateTextOnSnippetTypeChange;zP.prototype.updateIsFormattedExpanded=zP.prototype.updateIsFormattedExpanded;zP.prototype.updateIsAttributedExpanded=zP.prototype.updateIsAttributedExpanded;
zP.prototype.onClick=zP.prototype.onClick;_.x([_.F(_.eL.YtComponentBehavior),_.E("design:type",Object)],zP.prototype,"componentBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],zP.prototype,"text",void 0);_.x([_.g(),_.E("design:type",Array)],zP.prototype,"headerRuns",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],zP.prototype,"engagementPanel",void 0);_.x([_.g(),_.E("design:type",Object)],zP.prototype,"maxLines",void 0);
_.x([_.g(),_.E("design:type",String)],zP.prototype,"expandLabel",void 0);_.x([_.g(),_.E("design:type",String)],zP.prototype,"collapseLabel",void 0);_.x([_.g(),_.E("design:type",Object)],zP.prototype,"expandCommand",void 0);_.x([_.g(),_.E("design:type",Object)],zP.prototype,"expandButtonOffset",void 0);_.x([_.e("text"),_.E("design:type",String),_.E("design:paramtypes",[])],zP.prototype,"simpleText",null);
_.x([_.Vd("click"),_.E("design:type",Function),_.E("design:paramtypes",[CustomEvent]),_.E("design:returntype")],zP.prototype,"onClick",null);_.x([_.e("text","isExpanded"),_.E("design:type",Object),_.E("design:paramtypes",[])],zP.prototype,"expandedText",null);_.x([_.e("headerRuns","isExpanded"),_.E("design:type",Object),_.E("design:paramtypes",[])],zP.prototype,"expandedHeaderRuns",null);
_.x([_.e("text"),_.E("design:type",Boolean),_.E("design:paramtypes",[])],zP.prototype,"hasAttributedStringText",null);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],zP.prototype,"showExpandButton",void 0);_.x([_.e("collapseLabel","isExpanded"),_.E("design:type",Object),_.E("design:paramtypes",[])],zP.prototype,"showCollapseButton",null);_.x([_.g(),_.E("design:type",Object)],zP.prototype,"isTruncated",void 0);
_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],zP.prototype,"isExpanded",void 0);_.x([_.g(),_.E("design:type",Boolean)],zP.prototype,"isAttributedExpanded",void 0);_.x([_.T4("isExpanded","hasAttributedStringText"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],zP.prototype,"updateIsAttributedExpanded",null);_.x([_.g(),_.E("design:type",Boolean)],zP.prototype,"isFormattedExpanded",void 0);
_.x([_.T4("isExpanded","hasAttributedStringText"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],zP.prototype,"updateIsFormattedExpanded",null);_.x([_.g(),_.E("design:type",Number)],zP.prototype,"currentSnippetType",void 0);_.x([_.e("currentSnippetType"),_.E("design:type",Object),_.E("design:paramtypes",[])],zP.prototype,"useAttributedSnippet",null);
_.x([_.e("currentSnippetType"),_.E("design:type",Object),_.E("design:paramtypes",[])],zP.prototype,"useFormattedSnippet",null);_.x([_.e("currentSnippetType"),_.E("design:type",Object),_.E("design:paramtypes",[])],zP.prototype,"usePlainSnippet",null);_.x([_.g(),_.E("design:type",Object)],zP.prototype,"alwaysShowExpandButton",void 0);_.x([_.T4("currentSnippetType"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],zP.prototype,"updateTextOnSnippetTypeChange",null);
_.x([_.g(),_.E("design:type",Object)],zP.prototype,"attributedSnippetText",void 0);_.x([_.O2("#snippet"),_.E("design:type",HTMLElement)],zP.prototype,"snippetContainer",void 0);_.x([_.O2("#snippet-text"),_.E("design:type",HTMLElement)],zP.prototype,"snippetText",void 0);_.x([_.O2("#plain-snippet-text"),_.E("design:type",HTMLElement)],zP.prototype,"plainSnippetText",void 0);_.x([_.O2("#formatted-snippet-text"),_.E("design:type",Object)],zP.prototype,"formattedSnippetText",void 0);
_.x([_.O2("#attributed-snippet-text"),_.E("design:type",Object)],zP.prototype,"attributedSnippetTextEl",void 0);_.x([_.O2("#expand"),_.E("design:type",HTMLElement)],zP.prototype,"expandButton",void 0);_.x([_.O2("#expand-sizer"),_.E("design:type",HTMLElement)],zP.prototype,"expandSizer",void 0);_.x([_.z4("isExpanded"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],zP.prototype,"isExpandedChanged",null);
_.x([_.T4("isExpanded","maxLines"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],zP.prototype,"updateSnippetContainerMaxHeight",null);_.x([_.T4("isTruncated","showExpandButton","expandButtonOffset"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],zP.prototype,"updateMaskAndExpandButtonOffset",null);
_.x([_.z4("text","simpleText","expandLabel","maxLines","alwaysShowExpandButton"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],zP.prototype,"onTextChanged",null);zP=_.x([_.f({is:"ytd-text-inline-expander",disableElementRegistration:!0})],zP);
_.C(zP,"ytd-text-inline-expander",function(){if(rTH===void 0){var S=document.createElement("template");_.h(S,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-text-inline-expander--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-attributed-string data="[[expandedText]]" disable-upgrade$="[[!hasAttributedStringText]]" header-runs="[[expandedHeaderRuns]]" hidden="[[!isAttributedExpanded]]" user-input="" class="style-scope ytd-text-inline-expander"></yt-attributed-string><yt-formatted-string disable-attributed-string="" disable-upgrade$="[[hasAttributedStringText]]" hidden="[[!isFormattedExpanded]]" split-lines="[[!hasAttributedStringText]]" text="[[expandedText]]" class="style-scope ytd-text-inline-expander"></yt-formatted-string><div id="snippet" class="style-scope ytd-text-inline-expander"><span id="snippet-text" hidden="[[isExpanded]]" class="style-scope ytd-text-inline-expander"><span id="plain-snippet-text" hidden="[[!usePlainSnippet]]" class="style-scope ytd-text-inline-expander"></span><yt-attributed-string id="attributed-snippet-text" data="[[attributedSnippetText.data]]" disable-upgrade$="[[!hasAttributedStringText]]" header-runs="[[attributedSnippetText.headerRuns]]" hidden="[[!useAttributedSnippet]]" user-input="" class="style-scope ytd-text-inline-expander"></yt-attributed-string><yt-formatted-string id="formatted-snippet-text" disable-attributed-string="" disable-upgrade$="[[hasAttributedStringText]]" hidden="[[!useFormattedSnippet]]" class="style-scope ytd-text-inline-expander"></yt-formatted-string></span><span hidden="[[!showExpandButton]]" class="style-scope ytd-text-inline-expander">\u00a0</span><span id="ellipsis" hidden="[[!isTruncated]]" class="style-scope ytd-text-inline-expander">\u2026</span><tp-yt-paper-button id="expand-sizer" class="button style-scope ytd-text-inline-expander" hidden="[[!showExpandButton]]">[[expandLabel]]</tp-yt-paper-button></div><tp-yt-paper-button id="expand" class="button style-scope ytd-text-inline-expander" hidden="[[!showExpandButton]]" on-click="onExpandClick">[[expandLabel]]</tp-yt-paper-button><slot name="extra-content" class="style-scope ytd-text-inline-expander"></slot><tp-yt-paper-button id="collapse" class="button style-scope ytd-text-inline-expander" hidden="[[!showCollapseButton]]" on-click="onCollapseClick">[[collapseLabel]]</tp-yt-paper-button>');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);rTH=S}S=rTH;return S},{mode:2});var QE=function(){var S=_.w.apply(this,arguments)||this;S.actionMap={"yt-update-description-action":"handleUpdateDescriptionAction"};return S};
_.r(QE,_.w);QE.prototype.panelContentVisibleChanged=function(){this.panelContentVisible&&this.inlineExpander&&(this.inlineExpander.isExpanded=!1,this.inlineExpander.resize())};
QE.prototype.handleUpdateDescriptionAction=function(S){if(S=_.b(S,_.dcc))if(S.attributedDescription)this.set("data.attributedDescriptionBodyText",S.attributedDescription);else if(S.description){var p;((p=this.data)==null?0:p.attributedDescriptionBodyText)?this.set("data.attributedDescriptionBodyText",_.Fi(S.description)):this.set("data.descriptionBodyText",S.description)}};
_.$u.Object.defineProperties(QE.prototype,{hasDescriptionText:{configurable:!0,enumerable:!0,get:function(){var S,p;return!((S=this.data)==null||!S.attributedDescriptionBodyText)||!((p=this.data)==null||!p.descriptionBodyText)}},
collapsedLines:{configurable:!0,enumerable:!0,get:function(){var S;if((S=this.data)==null?0:S.collapsedLineCount){var p;return(p=this.data)==null?void 0:p.collapsedLineCount}S=_.pA("web_watch_description_collapsed_default_lines",12);if(_.y("ww_desc_line_page_size_ks"))return S;p=Math.round(_.zv().height*_.pA("web_watch_description_screen_height_percentage",.5)/20);return Math.max(p,S)}},
descriptionText:{configurable:!0,enumerable:!0,get:function(){var S,p,U;return(U=(S=this.data)==null?void 0:S.descriptionBodyText)!=null?U:(p=this.data)==null?void 0:p.attributedDescriptionBodyText}},
headerRuns:{configurable:!0,enumerable:!0,get:function(){var S;return(S=this.data)==null?void 0:S.headerRuns}},
sourceAttributions:{configurable:!0,enumerable:!0,get:function(){var S;return(S=this.data)==null?void 0:S.sourceAttributions}}});
QE.prototype.panelContentVisibleChanged=QE.prototype.panelContentVisibleChanged;_.x([_.F(_.Aj.YtActionHandlerBehavior),_.E("design:type",Object)],QE.prototype,"ytActionHandlerBehavior",void 0);_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],QE.prototype,"ytRendererBehavior",void 0);_.x([_.F(_.eL.YtComponentBehavior),_.E("design:type",Object)],QE.prototype,"componentBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],QE.prototype,"data",void 0);
_.x([_.g(),_.E("design:type",Boolean)],QE.prototype,"panelContentVisible",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Boolean)],QE.prototype,"engagementPanel",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Boolean)],QE.prototype,"shortsPanel",void 0);_.x([_.O2("#inline-expander"),_.E("design:type",Object)],QE.prototype,"inlineExpander",void 0);
_.x([_.T4("panelContentVisible"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],QE.prototype,"panelContentVisibleChanged",null);_.x([_.e("data"),_.E("design:type",Boolean),_.E("design:paramtypes",[])],QE.prototype,"hasDescriptionText",null);_.x([_.e("data"),_.E("design:type",Number),_.E("design:paramtypes",[])],QE.prototype,"collapsedLines",null);
_.x([_.e("data","data.descriptionBodyText","data.attributedDescriptionBodyText"),_.E("design:type",Object),_.E("design:paramtypes",[])],QE.prototype,"descriptionText",null);_.x([_.e("data","data.headerRuns"),_.E("design:type",Object),_.E("design:paramtypes",[])],QE.prototype,"headerRuns",null);_.x([_.e("data","data.sourceAttributions"),_.E("design:type",Object),_.E("design:paramtypes",[])],QE.prototype,"sourceAttributions",null);
QE=_.x([_.f({is:"ytd-expandable-video-description-body-renderer",disableElementRegistration:!0})],QE);
_.C(QE,"ytd-expandable-video-description-body-renderer",function(){if(joq!==void 0)return joq;var S=document.createElement("template");_.h(S,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-expandable-video-description-body-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-text-inline-expander id="inline-expander" collapse-label="[[getSimpleString(data.showLessText)]]" engagement-panel="[[engagementPanel]]" expand-label="[[getSimpleString(data.showMoreText)]]" header-runs="[[headerRuns]]" max-lines="[[collapsedLines]]" text="[[descriptionText]]" class="style-scope ytd-expandable-video-description-body-renderer">\n</ytd-text-inline-expander>\n<div id="source-attributions-wrapper" engagement-panel="[[engagementPanel]]" class="style-scope ytd-expandable-video-description-body-renderer">\n<template is="dom-repeat" items="[[sourceAttributions]]" as="sourceAttribution" class="style-scope ytd-expandable-video-description-body-renderer">\n  <yt-attributed-string class="source-attribution style-scope ytd-expandable-video-description-body-renderer" data="[[sourceAttribution]]" link-inherit-color="">\n  </yt-attributed-string>\n  </template>\n</div>');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);return joq=S},{mode:_.UW("kevlar_poly_si_batch_j028")?1:2});var hsl;var Rst=_.$k(function(S){var p=S.data;return _.H("factoid-renderer",{class:"ytwFactoidRendererHost"},_.H("div",{class:"ytwFactoidRendererFactoid",role:"text","aria-label":function(){return p().accessibilityText}},_.H("span",{class:"ytwFactoidRendererValue"},_.H(_.i6,{text:function(){return p().value}})),_.H("span",{class:"ytwFactoidRendererLabel"},_.H(_.i6,{text:function(){return p().label}}))))},"Qb");_.qm(Rst,"factoid-renderer",{props:{data:_.x2}});_.qm(_.$k(function(S){var p=S.data;return _.H("upload-time-factoid-renderer",null,_.H(_.yP,{data:function(){return p().factoid}},{factoidRenderer:Rst}))},"Rb"),"upload-time-factoid-renderer",{props:{data:_.BX}});_.qm(_.$k(function(S){var p=S.data;return _.H("view-count-factoid-renderer",null,_.H(_.yP,{data:function(){return p().factoid}},{factoidRenderer:Rst}))},"Sb"),"view-count-factoid-renderer",{props:{data:_.BX}});var nb=function(){var S=_.w.apply(this,arguments)||this;S.shortsPanel=!1;S.engagementPanel=!1;S.watchWhileSdp=_.y("shorts_desktop_watch_while_sdp");return S};
_.r(nb,_.w);nb.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"}}}}};
_.$u.Object.defineProperties(nb.prototype,{showChannelInfo:{configurable:!0,enumerable:!0,get:function(){if(this.shortsPanel||this.engagementPanel)return!1;var S;return(S=this.data)==null?void 0:S.channel}}});
_.x([_.F(_.eL.YtComponentBehavior),_.E("design:type",Object)],nb.prototype,"componentBehavior",void 0);_.x([_.F(_.qH.YtRendererstamperBehavior),_.E("design:type",Object)],nb.prototype,"ytRendererstamperBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],nb.prototype,"data",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],nb.prototype,"shortsPanel",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],nb.prototype,"engagementPanel",void 0);
_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],nb.prototype,"watchWhileSdp",void 0);_.x([_.e("shortsPanel","engagementPanel","data.channel"),_.E("design:type",Object),_.E("design:paramtypes",[])],nb.prototype,"showChannelInfo",null);nb=_.x([_.f({is:"ytd-video-description-header-renderer",disableElementRegistration:!0})],nb);
_.C(nb,"ytd-video-description-header-renderer",function(){if(hsl!==void 0)return hsl;var S=document.createElement("template");_.h(S,'\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');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);return hsl=S},{mode:1});var FMl;var J5=function(){return _.w.apply(this,arguments)||this};
_.r(J5,_.w);_.x([_.F(_.eL.YtComponentBehavior),_.E("design:type",Object)],J5.prototype,"ytComponentBehavior",void 0);_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],J5.prototype,"ytRendererBehavior",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Boolean)],J5.prototype,"noPadding",void 0);_.x([_.g(),_.E("design:type",Object)],J5.prototype,"data",void 0);J5=_.x([_.f({disableElementRegistration:!0,is:"ytd-list-item-view-model"})],J5);
_.C(J5,"ytd-list-item-view-model",function(){if(FMl!==void 0)return FMl;var S=document.createElement("template");_.h(S,'\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');
S.content.insertBefore(_.t().content.cloneNode(!0),S.content.firstChild);return FMl=S},{mode:1});var XRE;var Pnd;var Z1H;var soj;var yE=function(){var S=_.w.apply(this,arguments)||this;S.adaptiveFullWidth=!1;S.modernButtons=_.y("web_modern_buttons");S.buttonOverrides={style:"call-to-action",type:"filled"};S.actionMap={"yt-share-panel-set-timestamp-action":"handleSetTimestamp_","yt-signal-action-copy-share-url":"handleSignalActionCopyShareUrl_"};return S};
_.r(yE,_.w);yE.prototype.handleSetTimestamp_=function(S){this.data&&this.data.shortUrl&&(_.tB(this.hostElement).querySelector("#share-url").value=S.isSet?_.ec(this.data.shortUrl,"t",S.timestamp):this.data.shortUrl)};
yE.prototype.handleSignalActionCopyShareUrl_=function(S,p){(_.y("killswitch_copy_link_target_check")||_.tB(this.hostElement).querySelector("#copy-button")===p)&&this.copyUrlToClipboard()};
yE.prototype.copyUrlToClipboard=function(){window.getSelection().removeAllRanges();_.tB(this.hostElement).querySelector("#share-url").select();document.execCommand("copy")};
yE.prototype.computeStyle_=function(S){return S?S.toLowerCase().replace(/_/g,"-"):""};
_.x([_.F(_.Aj.YtActionHandlerBehavior),_.E("design:type",Object)],yE.prototype,"ytActionHandlerBehavior",void 0);_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],yE.prototype,"ytRendererBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],yE.prototype,"data",void 0);_.x([_.g({reflectToAttribute:!0,computed:"computeStyle_(data.style)"}),_.E("design:type",String)],yE.prototype,"rendererStyle",void 0);
_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],yE.prototype,"adaptiveFullWidth",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],yE.prototype,"modernButtons",void 0);_.x([_.g(),_.E("design:type",Object)],yE.prototype,"buttonOverrides",void 0);yE=_.x([_.FB({is:"yt-copy-link-renderer",disableElementRegistration:!0})],yE);
_.C(yE,"yt-copy-link-renderer",function(){if(soj===void 0){var S=document.createElement("template");_.h(S,'\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');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);var p=S.content,U=p.insertBefore;Z1H===void 0&&(Z1H=document.createElement("template"));var Y=Z1H;U.call(p,Y.content.cloneNode(!0),S.content.firstChild);soj=S}S=soj;return S},{mode:2});_.Ry("itemSectionRenderer","toggleFormFieldRenderer","yt-toggle-form-field-renderer");var Kb=function(){var S=_.w.apply(this,arguments)||this;S.actionMap={"yt-update-toggle-action":"handleUpdateToggleAction_"};return S};
_.r(Kb,_.w);_.M=Kb.prototype;_.M.configureRendererStamper=function(){return{"data.footer":{id:"footer-container",mapping:{copyLinkRenderer:"yt-copy-link-renderer"}}}};
_.M.attached=function(){this.keyboardFocused=!1};
_.M.onToggleButtonFocusin_=function(){if(this.useKeyboardFocused){var S=_.tW().resolve(_.AW(_.SN));S&&(this.keyboardFocused=S.isKeyBoardInUse())}};
_.M.onToggleButtonFocusout_=function(){this.keyboardFocused=!1};
_.M.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}};
_.M.onChange_=function(){if(this.data){var S=this.data.toggled?this.data.toggleOnAction:this.data.toggleOffAction;S&&this.ytComponentBehavior.resolveCommand(S);this.data.requireChangeConfirmation&&this.set("data.toggled",!this.data.toggled)}};
_.M.handleUpdateToggleAction_=function(S){(S=_.b(S,HTw))&&this.data&&S.targetId==this.data.targetId&&this.set("data.toggled",S.toggled)};
_.M.toBoolean_=function(S){return!!S};
_.M.reset=function(){};
_.M.dataChangedForBinding=function(){this.hostElement.dispatchEvent(new _.uz("data-changed",this.data))};
_.M.updateDataToggledFromBinding=function(S){this.set("data.toggled",S.detail.value)};
Kb.prototype.dataChangedForBinding=Kb.prototype.dataChangedForBinding;_.x([_.F(_.Aj.YtActionHandlerBehavior),_.E("design:type",Object)],Kb.prototype,"ytActionHandlerBehavior",void 0);_.x([_.F(_.qH.YtRendererstamperBehavior),_.E("design:type",Object)],Kb.prototype,"ytRendererstamperBehavior",void 0);_.x([_.F(_.eL.YtComponentBehavior),_.E("design:type",Object)],Kb.prototype,"ytComponentBehavior",void 0);_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],Kb.prototype,"ytRendererBehavior",void 0);
_.x([_.g(),_.E("design:type",Object)],Kb.prototype,"data",void 0);_.x([_.g({computed:"computeDescription_(data.*)"}),_.E("design:type",Object)],Kb.prototype,"description_",void 0);_.x([_.g({value:function(){return!!_.tW().resolve(_.AW(_.SN))&&_.y("kevlar_keyboard_button_focus")},
reflectToAttribute:!0}),_.E("design:type",Boolean)],Kb.prototype,"useKeyboardFocused",void 0);_.x([_.g({value:!1,reflectToAttribute:!0}),_.E("design:type",Boolean)],Kb.prototype,"keyboardFocused",void 0);_.x([_.T4("data"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],Kb.prototype,"dataChangedForBinding",null);Kb=_.x([_.FB({is:"yt-toggle-form-field-renderer",disableElementRegistration:!0})],Kb);
_.C(Kb,"yt-toggle-form-field-renderer",function(){if(Pnd===void 0){var S=document.createElement("template");_.h(S,'\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');
S.content.insertBefore(_.t().content.cloneNode(!0),S.content.firstChild);var p=S.content,U=p.insertBefore;XRE===void 0&&(XRE=document.createElement("template"));var Y=XRE;U.call(p,Y.content.cloneNode(!0),S.content.firstChild);Pnd=S}S=Pnd;return S},{mode:2});var esH;var gQl;var bF=function(){var S=_.w.apply(this,arguments)||this;S.isDarkTheme=!1;S.isSearch=!1;S.darkerDarkTheme=_.y("web_darker_dark_theme");S.noTopMargin=_.y("kevlar_watch_no_top_margin");S.maskFade=_.y("web_watch_chips_mask_fade");S.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 S};
_.r(bF,_.w);_.M=bF.prototype;_.M.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}}}}}};
_.M.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
_.M.isSearchChanged=function(){this.hostElement.setAttribute("id",this.isSearch?"search-chip-bar":"")};
_.M.dataChanged=function(){var S=this.getSelectedIndex();if(S>0)this.selected=S;else{this.selected=0;var p,U;(p=this.ytScrollableChipCloudBehavior)==null||(U=p.reset)==null||U.call(p)}};
_.M.getSelectedIndex=function(){var S;if((S=this.data)==null||!S.chips)return-1;S=-1;for(var p,U=0;U<((p=this.data)==null?void 0:p.chips.length);U++){var Y=void 0,L=void 0;if((Y=this.data)==null?0:(L=Y.chips[U].chipCloudChipRenderer)==null?0:L.isSelected){S=U;break}}return S};
_.M.onResize=function(){var S=this.ytScrollableChipCloudBehavior;_.oH(S,S.setContainerWidthDiff);Mk(this.ytScrollableChipCloudBehavior)};
_.M.onDarkModeToggledAction=function(S){this.isDarkTheme=S};
_.M.handleRelatedChipCommand=function(S,p){S=this.JSC$14295_chipsSelector.indexOf(p);S!==-1&&this.JSC$14295_chipsSelector.selectIndex(S)};
_.M.handleChipCloudChipSelectAction=function(S){S=this.JSC$14295_chipsSelector.indexOf(S);S>-1&&this.JSC$14295_chipsSelector.selectIndex(S)};
_.M.handleChipCloudChipDeselectAction=function(){var S=this.get("chips.0.chipCloudChipRenderer.navigationEndpoint",this.data);this.JSC$14295_chipsSelector&&((S==null?0:S.continuationCommand)?_.Yd(this.hostElement,[S]):(S==null?0:S.searchEndpoint)?this.ytComponentBehavior.resolveCommand(S):S&&_.Lp(this.hostElement,[S],this.hostElement),this.JSC$14295_chipsSelector.selectIndex(0),this.ytScrollableChipCloudBehavior.reset())};
_.M.updateSelectedFromBinding=function(S){this.selected=S.detail.value};
bF.prototype.onResize=bF.prototype.onResize;bF.prototype.dataChanged=bF.prototype.dataChanged;bF.prototype.isSearchChanged=bF.prototype.isSearchChanged;_.x([_.F(_.qH.YtRendererstamperBehavior),_.E("design:type",Object)],bF.prototype,"ytRendererstamperBehavior",void 0);_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],bF.prototype,"ytRendererBehavior",void 0);_.x([_.F(_.Aj.YtActionHandlerBehavior),_.E("design:type",Object)],bF.prototype,"actionHandlerBehavior",void 0);
_.x([_.F(_.ji),_.E("design:type",Object)],bF.prototype,"ironResizableBehavior",void 0);_.x([_.F(),_.E("design:type",LI)],bF.prototype,"ytScrollableChipCloudBehavior",void 0);_.x([_.F(_.eL.YtComponentBehavior),_.E("design:type",Object)],bF.prototype,"ytComponentBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],bF.prototype,"data",void 0);_.x([_.g({value:0}),_.E("design:type",Number)],bF.prototype,"selected",void 0);
_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],bF.prototype,"isDarkTheme",void 0);_.x([_.g({value:160}),_.E("design:type",Number)],bF.prototype,"scrollDistance",void 0);_.x([_.g(),_.E("design:type",Object)],bF.prototype,"isSearch",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],bF.prototype,"darkerDarkTheme",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],bF.prototype,"noTopMargin",void 0);
_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],bF.prototype,"maskFade",void 0);_.x([_.O2("#chips"),_.E("design:type",Object)],bF.prototype,"JSC$14295_chipsSelector",void 0);_.x([_.T4("isSearch"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],bF.prototype,"isSearchChanged",null);_.x([_.z4("data"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],bF.prototype,"dataChanged",null);
_.x([_.Vd("iron-resize"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],bF.prototype,"onResize",null);bF=_.x([_.FB({is:"yt-chip-cloud-renderer",disableElementRegistration:!0})],bF);
_.C(bF,"yt-chip-cloud-renderer",function(){if(gQl===void 0){var S=document.createElement("template");_.h(S,'\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');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);var p=S.content,U=p.insertBefore;esH===void 0&&(esH=document.createElement("template"));var Y=esH;U.call(p,Y.content.cloneNode(!0),S.content.firstChild);gQl=S}S=gQl;return S},{mode:2});var u2w,wRe=function(){return u2w!==void 0?u2w:u2w=document.createElement("template")};
document.head.appendChild(wRe().content);var lWc;var aWm=document.head,fWe=aWm.appendChild,Cnt;if(lWc===void 0){var x3j=document.createElement("template");_.h(x3j,"");x3j.content.insertBefore(wRe().content.cloneNode(!0),x3j.content.firstChild);lWc=x3j}Cnt=lWc;fWe.call(aWm,Cnt.content);var EQe=_.$k(function(S){var p=S.data;return _.H("offer-plan-details-item-view-model",{class:"ytOfferPlanDetailsItemViewModelHost"},_.H("div",{class:"ytOfferPlanDetailsItemViewModelOfferPlanDetailsItemContainer"},_.H("div",{class:"ytOfferPlanDetailsItemViewModelOfferPlanDetailsItemContent"},_.H(_.n,{cond:function(){return _.$O(p().image)},
then:function(U){return _.H("div",{class:"ytOfferPlanDetailsItemViewModelLogo"},_.H(_.of,{data:U,alt:"",className:"ytOfferPlanDetailsItemViewModelLogoImage"}))}}),_.H("div",{class:"ytOfferPlanDetailsItemViewModelTitleText"},_.H(_.i6,{text:function(){return p().title}})),_.H("div",{class:"ytOfferPlanDetailsItemViewModelSubtitleText"},_.H(_.i6,{text:function(){return p().subtitle}})))),_.H(_.n,{cond:function(){var U;
return(U=p())==null?void 0:U.hasBottomDivider},
then:function(){return _.H("div",{class:"ytOfferPlanDetailsItemViewModelDivider"})}}))},"Tb");var m3l=_.$k(function(S){var p=S.data;return _.H("offer-plan-details-container-view-model",{class:"ytOfferPlanDetailsContainerViewModelHost"},_.H("div",{class:"ytOfferPlanDetailsContainerViewModelOfferPlanContainer"},_.H(_.yP,{data:function(){var U;return(U=p().offerPlanDetailsItem)!=null?U:[]}},{offerPlanDetailsItemViewModel:function(U){return _.H("div",{class:"ytOfferPlanDetailsContainerViewModelOfferPlanDetailsItemContainer"},_.H(EQe,{data:U.data}))}})),_.H("div",null,_.H(_.n,{cond:function(){return p().hasBottomDivider},
then:function(){return _.H("div",{class:"ytOfferPlanDetailsContainerViewModelDividerContainer"},_.H("div",{class:"ytOfferPlanDetailsContainerViewModelDivider"}),_.H("div",{class:"ytOfferPlanDetailsContainerViewModelAddIconContainer"},_.H("div",{class:"ytOfferPlanDetailsContainerViewModelAddIcon"},"+")),_.H("div",{class:"ytOfferPlanDetailsContainerViewModelDivider"}))}})))},"Ub");var oQm=_.$k(function(S){var p=S.data;S=_.d(_.kj(!1,void 0,"SpEGQd"));var U=S.next().value,Y=S.next().value,L=_.kL(function(){Y(!U());return!1}),I=function(){var V;
return(V=p().offerPlanDetailsContainer)!=null?V:[]};
return _.H("lp-complex-offer-card-details-view-model",null,_.H("div",null,_.H(_.n,{cond:function(){return U()},
then:function(){return _.H("div",{class:"ytLpComplexOfferCardDetailsViewModelExpandedDetails"},_.H("div",{role:"button",class:"ytLpComplexOfferCardDetailsViewModelExpandedTitle","on:click":L,"aria-expanded":U},_.H(_.i6,{text:function(){return p().expandedTitle}})),_.H("div",{class:"ytLpComplexOfferCardDetailsViewModelOfferPlanDetailsContainers"},_.H(_.yP,{data:I},{offerPlanDetailsContainerViewModel:function(V){return _.H("div",{class:"ytLpComplexOfferCardDetailsViewModelOfferPlanDetailsContainer"},
_.H(m3l,{data:V.data}))}})),_.H("div",{class:"ytLpComplexOfferCardDetailsViewModelLegalText"},_.H(_.i6,{text:function(){return p().legalText}})))},
else:function(){return _.H("div",{role:"button",class:"ytLpComplexOfferCardDetailsViewModelCollapsedDetails","on:click":L,"aria-expanded":U},_.H(_.i6,{text:function(){return p().collapsedTitle}}),_.H("div",{class:"ytLpComplexOfferCardDetailsViewModelExpandIconContainer"},_.H(_.QD,{icon:"EXPAND_MORE".toString(),
ariaHidden:!0})))}})))},"Vb");var vQP=_.$k(function(S){var p=S.data;return _.H("lp-complex-offer-card-option-view-model",null,_.H("div",{class:"ytLpComplexOfferCardOptionViewModelCardContainer"},_.H(_.n,{cond:function(){return p().topDividerText},
then:function(){return _.H("div",{class:"ytLpComplexOfferCardOptionViewModelDividerContainer"},_.H("div",{class:"ytLpComplexOfferCardOptionViewModelDivider"}),_.H("div",{class:"ytLpComplexOfferCardOptionViewModelDividerTextContainer"},_.H("div",{class:"ytLpComplexOfferCardOptionViewModelDividerText"},_.H(_.i6,{text:function(){return p().topDividerText}}))))}}),_.H(_.n,{cond:function(){return p().planPricingPrimary},
then:function(){return _.H("div",{class:"ytLpComplexOfferCardOptionViewModelPlanPricingPrimary"},_.H(_.i6,{text:function(){return p().planPricingPrimary}}))}}),_.H(_.n,{cond:function(){return p().planPricingSecondary},
then:function(){return _.H("div",{class:"ytLpComplexOfferCardOptionViewModelPlanPricingSecondary"},_.H(_.i6,{text:function(){return p().planPricingSecondary}}))}}),_.H(_.n,{cond:function(){return p().primaryButton},
then:function(){return _.H("div",{class:"ytLpComplexOfferCardOptionViewModelPrimaryButtonContainer"},_.H(_.yP,{data:function(){return p().primaryButton}},{buttonViewModel:function(U){return _.H(_.PG,{data:U.data,
className:"ytLpComplexOfferCardOptionViewModelPrimaryButton"})}}))}})))},"Wb");var $3t=_.$k(function(S){var p=S.data;var U=function(){var I;return((I=p())==null?void 0:I.alignSelf)==="LP_OFFER_TABLE_ALIGNMENT_START"||!1};
S={};var Y={},L={};return _.H("ytm-lp-complex-offer-card-view-model",null,_.H("div",{class:"ytmLpComplexOfferCardViewModelHost"},_.H("div",{class:_.VD((S.ytmLpComplexOfferCardViewModelCardContainerAlignLeft=U,S),"ytmLpComplexOfferCardViewModelCardContainer")},_.H(_.n,{cond:function(){var I;return(I=p())==null?void 0:I.bannerText},
then:function(){return _.H("div",{class:"ytmLpComplexOfferCardViewModelBannerTextContainer"},_.H("div",{class:"ytmLpComplexOfferCardViewModelBannerText"},_.H(_.i6,{text:function(){return p().bannerText}})))}}),_.H(_.n,{cond:function(){return _.$O(p().logo)},
then:function(I){var V={};return _.H("div",{class:_.VD((V.ytmLpComplexOfferCardViewModelLogoAlignLeft=U,V),"ytmLpComplexOfferCardViewModelLogo")},_.H(_.of,{data:I,alt:"",className:"ytmLpComplexOfferCardViewModelLogoImage"}))}}),_.H("div",{class:_.VD((Y.ytmLpComplexOfferCardViewModelTitleAlignLeft=U,Y),"ytmLpComplexOfferCardViewModelTitle")},_.H(_.i6,{text:function(){return p().title}})),_.H(_.n,{cond:function(){var I;
return(I=p())==null?void 0:I.subtitle},
then:function(){var I={};return _.H("div",{class:_.VD((I.ytmLpComplexOfferCardViewModelSubtitleAlignLeft=U,I),"ytmLpComplexOfferCardViewModelSubtitle")},_.H(_.i6,{text:function(){return p().subtitle}}))}}),_.H(_.n,{cond:function(){return p().planPricingPrimary},
then:function(){return _.H("div",{class:"ytmLpComplexOfferCardViewModelPlanPricingPrimary"},_.H(_.i6,{text:function(){return p().planPricingPrimary}}))}}),_.H(_.n,{cond:function(){return p().planPricingSecondary},
then:function(){return _.H("div",{class:"ytmLpComplexOfferCardViewModelPlanPricingSecondary"},_.H(_.i6,{text:function(){return p().planPricingSecondary}}))}}),_.H(_.n,{cond:function(){return p().purchaseButton},
then:function(){return _.H("div",{class:"ytmLpComplexOfferCardViewModelPurchaseButtonContainer"},_.H(_.yP,{data:function(){return p().purchaseButton}},{buttonViewModel:function(I){return _.H(_.PG,{data:I.data,
className:"ytmLpComplexOfferCardViewModelPurchaseButton"})}}))}}),_.H(_.n,{cond:function(){var I;
return(I=p())==null?void 0:I.offerOptions},
then:function(){return _.H("div",{class:"ytmLpComplexOfferCardViewModelOfferOptions"},_.H(_.yP,{data:function(){return p().offerOptions}},{lpComplexOfferCardOptionViewModel:vQP}))}}),_.H("div",{class:_.VD((L.ytmLpComplexOfferCardViewModelLegalTextAlignLeft=U,L),"ytmLpComplexOfferCardViewModelLegalText")},_.H(_.i6,{text:function(){return p().legalText}})),_.H(_.n,{cond:function(){var I;
return(I=p())==null?void 0:I.offerCardDetails},
then:function(){return _.H("div",{class:"ytmLpComplexOfferCardViewModelOfferCardDetails"},_.H(_.yP,{data:function(){return p().offerCardDetails}},{lpComplexOfferCardDetailsViewModel:oQm}))}}))))},"Xb");var i1q=_.$k(function(S){var p=S.data;var U=function(){var V;return((V=p())==null?void 0:V.alignSelf)==="LP_OFFER_TABLE_ALIGNMENT_START"||!1};
S={};var Y={},L={},I={};return _.H("ytm-lp-complex-offer-card-section-view-model",null,_.H("div",{class:_.VD("ytmLpComplexOfferCardSectionViewModelHost")},_.H("div",{class:_.VD((S.ytmLpComplexOfferCardSectionViewModelSectionContainerAlignLeft=U,S),"ytmLpComplexOfferCardSectionViewModelSectionContainer")},_.H("div",{class:_.VD((Y.ytmLpComplexOfferCardSectionViewModelTitleContainerAlignLeft=U,Y),"ytmLpComplexOfferCardSectionViewModelTitleContainer")},_.H("h2",{class:_.VD((L.ytmLpComplexOfferCardSectionViewModelTitleTextAlignLeft=
U,L),"ytmLpComplexOfferCardSectionViewModelTitleText")},_.H(_.i6,{text:function(){return p().title}}))),_.H(_.n,{cond:function(){var V;
return(V=p())==null?void 0:V.subtitle},
then:function(){var V={},W={};return _.H("div",{class:_.VD((V.ytmLpComplexOfferCardSectionViewModelSubtitleContainerAlignLeft=U,V),"ytmLpComplexOfferCardSectionViewModelSubtitleContainer")},_.H("div",{class:_.VD((W.ytmLpComplexOfferCardSectionViewModelSubtitleTextAlignLeft=U,W),"ytmLpComplexOfferCardSectionViewModelSubtitleText")},_.H(_.i6,{text:function(){return p().subtitle}})))}}),_.H("div",{class:_.VD((I.ytmLpComplexOfferCardSectionViewModelOfferCardsContainerAlignLeft=U,I),"ytmLpComplexOfferCardSectionViewModelOfferCardsContainer")},
_.H(_.yP,{data:function(){var V;
return(V=p().offerPlans)!=null?V:[]}},{lpComplexOfferCardViewModel:function(V){return _.H("div",{class:"ytmLpComplexOfferCardSectionViewModelOfferCardContainer"},_.H($3t,{data:V.data}))}})))))},"Yb");_.jy=PoI.getInstance();var N2E=_.$k(function(S){return _.H("div",{class:"yt-lp-faq-entry-view-model__lp-faq-section-faqs-question","aria-hidden":S.shouldAriaHideContent},_.H("h2",{class:"yt-lp-faq-entry-view-model__lp-faq-question",id:S.questionId},_.H(_.i6,{text:S.question})))},"Zb"),B2H=_.$k(function(S){var p=S.data;
var U=S.themeOverride;S=_.d(_.kj(!1,void 0,"ljTVPd"));var Y=S.next().value,L=S.next().value;S=_.kL(function(){L(!Y());return!1});
var I=function(){return Y()?"EXPAND_LESS":"EXPAND_MORE"},V=("faq-container"+_.hs(_.jy)).toString(),W="faq-question-and-answers-section-question"+_.hs(_.jy),O={},D={};
return _.H("faq-entry-view-model-c3",null,_.H("div",{class:_.VD("yt-lp-faq-entry-view-model",(O["yt-lp-faq-entry-view-model--premium-force-dark-mode"]=function(){return U==null?void 0:U().useDarkTheme},O))},_.H("div",{class:"yt-lp-faq-entry-view-model__faq-question-and-answers-section",
"on:click":S,role:"button","aria-expanded":Y,"aria-labelledby":W.toString(),"tab-index":"0"},_.H(N2E,{question:function(){return p().question},
questionId:W,shouldAriaHideContent:!0}),_.H(_.n,{cond:function(){return Y()!==void 0},
then:function(){return _.H("div",{class:"yt-lp-faq-entry-view-model__icon-container"},_.H(_.QD,{icon:I,ariaHidden:!0}),_.H("div",{class:"yt-lp-faq-entry-view-model__icon-hover-highlighting"}))}})),_.H("div",{class:_.VD("yt-lp-faq-entry-view-model__lp-faq-section-faqs-outer-answer",(D["yt-lp-faq-entry-view-model__lp-faq-section-faqs-outer-answer--collapsed"]=function(){return!Y()},D))},_.H("div",{id:V},_.H(_.KU,{each:function(){return p().answers||[]}},function(z){return _.H("div",{class:"yt-lp-faq-entry-view-model__lp-faq-section-faqs-answer"},
_.H(_.i6,{text:z}))})))))},"$b");
B2H.idomCompat=!0;var q4m=_.$k(function(S){var p=S.data;var U=S.themeOverride;S={};return _.H("lp-faq-section-view-model-c3",null,_.H("div",{class:_.VD("yt-lp-faq-section-view-model",(S["yt-lp-faq-section-view-model--ptc-layout-type"]=function(){return p().layoutType==="LP_MODULE_LAYOUT_TYPE_PTC"},S["yt-lp-faq-section-view-model--premium-force-dark-mode"]=function(){return!(U==null||!U().useDarkTheme)},S))},_.H("div",{class:"yt-lp-faq-section-view-model__faq-container"},_.H(_.n,{cond:function(){return p().header},
then:function(Y){return _.H("div",{class:"yt-lp-faq-section-view-model__lp-faq-section-header"},_.H(_.i6,{text:Y}))}}),_.H("div",{class:"yt-lp-faq-section-view-model__lp-faq-section-faqs"},_.H(_.yP,{data:function(){return p().faqs}},{faqEntryViewModel:function(Y){return _.H(B2H,{data:Y.data,
themeOverride:U})}})),_.H("div",{class:"yt-lp-faq-section-view-model__lp-faq-section-footers"},_.H(_.KU,{each:function(){return p().footers||[]}},function(Y){return _.H(_.i6,{text:Y})})),_.H(_.n,{cond:function(){return p().legal},
then:function(Y){return _.H("div",{class:"yt-lp-faq-section-view-model__lp-faq-section-legal"},_.H(_.i6,{text:Y}))}}))))},"ac");
q4m.idomCompat=!0;var ATw=_.$k(function(S){var p=S.data;var U=S.themeOverride;_.FM(function(){var V=p().gtmId;V&&_.Jj(V,_.g7("GL",""))});
var Y={contentMode:"CONTENT_MODE_SCALE_ASPECT_FIT",alt:function(){var V,W,O;return(O=(V=p().logo)==null?void 0:(W=V.accessibilityData)==null?void 0:W.label)!=null?O:""},
targetWidth:140,targetHeight:40,height:40,className:"lp-header-section-view-model__lp-header-logo",useWidth:!1},L=_.tW().resolve(_.AW(_.Cz)),I=function(){return L&&L()||(U==null?void 0:U().useDarkTheme)};
return _.H("lp-header-section-view-model",null,_.H("div",{class:function(){var V=p().layoutType==="LP_MODULE_LAYOUT_TYPE_PTC",W=p().marginType==="LP_SECTION_MARGIN_TYPE_TOP",O=U==null?void 0:U().useDarkTheme,D=["lp-header-section-view-model"];V&&D.push("lp-header-section-view-model--ptc-layout-type");W&&D.push("lp-header-section-view-model__lp-header-section-margin");O&&D.push("lp-header-section-view-model--premium-force-dark-mode");return D.join(" ")}},_.H(_.n,{cond:function(){return p().logo},
then:function(){return _.H("div",null,_.H(_.n,{cond:I,then:function(){return _.H(_.n,{cond:function(){var V;return(V=p().logo)==null?void 0:V.imageDark},
then:function(V){return _.H(_.of,Object.assign({},{data:V},Y))}})},
else:function(){return _.H(_.n,{cond:function(){var V;return(V=p().logo)==null?void 0:V.imageLight},
then:function(V){return _.H(_.of,Object.assign({},{data:V},Y))}})}}))}}),_.H(_.n,{cond:function(){return p().title},
then:function(V){return _.H("div",{class:"lp-header-section-view-model__lp-header-title"},_.H(_.i6,{text:V}))}}),_.H("div",{class:"lp-header-section-view-model__lp-header-subtitle-section"},_.H(_.n,{cond:function(){return p().subtitles},
then:function(V){return _.H(_.KU,{each:V},function(W){return _.H("div",{class:"lp-header-section-view-model__lp-header-subtitle-line"},_.H(_.i6,{text:W}))})}})),_.H(_.n,{cond:function(){return p().additionalInfo},
then:function(V){return _.H("div",{class:"lp-header-section-view-model__lp-header-additional-info"},_.H(_.i6,{text:V}))}}),_.H("div",{class:"lp-header-section-view-model__lp-header-button-section"},_.H(_.n,{cond:function(){return p().primaryButton},
then:function(V){return _.H("div",{class:"lp-header-section-view-model__lp-header-primary-button"},_.H(_.yP,{data:V},{buttonViewModel:_.PG}))}}),_.H(_.n,{cond:function(){return p().secondaryButton},
then:function(V){return _.H("div",{class:"lp-header-section-view-model__lp-header-secondary-button"},_.H(_.yP,{data:V},{buttonViewModel:_.PG}))}})),_.H(_.n,{cond:function(){return p().otherOffersInfo},
then:function(V){return _.H("div",{class:"lp-header-section-view-model__lp-header-other-offers-info"},_.H(_.i6,{text:V}))}}),_.H("div",{class:"lp-header-section-view-model__lp-header-billing-info"},_.H(_.n,{cond:function(){return p().billingInfo},
then:function(V){return _.H(_.KU,{each:V},function(W){return _.H("div",null,_.H(_.i6,{text:W}))})}}))))},"bc");
ATw.idomCompat=!0;var t_I=_.$k(function(S){var p=S.data;var U=_.os(S.themeOverride,{useDarkTheme:!1});S={};S=_.VD("ytm-lp-headline-section-view-model",(S["ytm-lp-headline-section-view-model--premium-force-dark-mode"]=function(){return U().useDarkTheme},S));
return _.H("lp-headline-section-view-model",null,_.H("div",{class:S},_.H("div",{class:"ytm-lp-headline-section-view-model__title-text"},_.H(_.i6,{text:function(){return p().title}})),_.H(_.n,{cond:function(){return p().subtitle},
then:function(Y){return _.H("div",{class:"ytm-lp-headline-section-view-model__subtitle-text"},_.H(_.i6,{text:Y}))}})))},"cc");var cTm=_.$k(function(S){var p=S.data;var U=S.themeOverride;var Y=_.tW().resolve(_.AW(_.Cz)),L=function(){return Y&&Y()||(U==null?void 0:U().useDarkTheme)},I=function(){var D,z;
var Q=L()?(D=p().textBackgroundImage)==null?void 0:D.imageDark:(z=p().textBackgroundImage)==null?void 0:z.imageLight;return Tqk((Q==null?void 0:Q.sources)||[])},V=function(){var D,z;
return L()?(D=p().featureImage)==null?void 0:D.imageDark:(z=p().featureImage)==null?void 0:z.imageLight},W=function(){return p().featureType==="LP_LARGE_FEATURE_SECTION_TYPE_MUSIC"?"CONTENT_MODE_SCALE_ASPECT_FILL":"CONTENT_MODE_SCALE_ASPECT_FIT"},O=function(){var D,z;
return L()?(D=p().logo)==null?void 0:D.imageDark:(z=p().logo)==null?void 0:z.imageLight};
return _.H("ytm-lp-large-feature-section-view-model",null,_.H("div",{class:function(){var D=p().featureType==="LP_LARGE_FEATURE_SECTION_TYPE_MUSIC",z=p().featureType==="LP_LARGE_FEATURE_SECTION_TYPE_PTC",Q=(p().index||0)%2===1,J=U==null?void 0:U().useDarkTheme,K=["yt-lp-large-feature-section-view-model"];D?K.push("yt-lp-large-feature-section-view-model--music-feature-type"):z?K.push("yt-lp-large-feature-section-view-model--ptc-feature-type"):Q||K.push("yt-lp-large-feature-section-view-model--block-feature-type-2");
J&&K.push("yt-lp-large-feature-section-view-model--premium-force-dark-mode");return K.join(" ")}},_.H("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-container"},_.H(_.n,{cond:V,
then:function(){return _.H(_.of,{data:function(){return V()},
alt:function(){var D,z,Q;return(Q=(D=p().featureImage)==null?void 0:(z=D.accessibilityData)==null?void 0:z.label)!=null?Q:""},
contentMode:W})}})),_.H("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-container",
style:function(){var D;return((D=I())==null?0:D.url)?"background-image: url("+_.JA(I().url)+");":""}},_.H("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-text-container"},_.H(_.n,{cond:O,
then:function(){return _.H(_.of,{data:function(){return O()},
alt:function(){var D,z,Q;return(Q=(D=p().logo)==null?void 0:(z=D.accessibilityData)==null?void 0:z.label)!=null?Q:""},
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"})}}),_.H(_.n,{cond:function(){return p().eyebrowText},
then:function(){return _.H("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-eyebrow-text"},_.H(_.i6,{text:function(){return p().eyebrowText}}))}}),_.H(_.n,{cond:function(){return p().title},
then:function(){return _.H("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-title"},_.H(_.i6,{text:function(){return p().title}}))}}),_.H(_.n,{cond:function(){return p().subtitles},
then:function(){return _.H("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-subtitles"},_.H(_.KU,{each:function(){return p().subtitles||[]}},function(D){return _.H(_.i6,{text:D})}))}})))))},"dc");
cTm.idomCompat=!0;var Sme=_.$k(function(S){return _.H("yt-lp-feature-list-item-view-model",{class:"ytLpFeatureListItemViewModelHost"},_.H("div",{class:"ytLpFeatureListItemViewModelFeatureList"},_.H(_.QD,{icon:function(){var p;return(p=S.data())==null?void 0:p.iconType},
className:function(){var p;return((p=S.data())==null?void 0:p.style)==="LP_FEATURE_LIST_ITEM_STYLE_THEMED_GREEN_ICON_PRIMARY_TEXT"?"ytLpFeatureListItemViewModelFeatureListIconGreen":"ytLpFeatureListItemViewModelFeatureListIconDefault"}}),_.H("div",{class:"ytLpFeatureListItemViewModelFeatureListText"},_.H(_.i6,{text:function(){var p;
return(p=S.data())==null?void 0:p.text}}))))},"ec");var p6e=_.$k(function(S){S=_.vT(S,{config:void 0,themeOverride:void 0});var p=S.data,U=S.config,Y=S.themeOverride;S={};S=_.VD("ytm-lp-offer-card-option-view-model",(S["ytm-lp-offer-card-option-view-model--premium-force-dark-mode"]=function(){var W;return(W=Y())==null?void 0:W.useDarkTheme},S));
var L=_.kL(function(){var W,O;(W=U())==null||(O=W.handleRadioButtonClick)==null||O.call(W,p());return!1}),I=function(){var W;
return(W=U())==null?void 0:W.shouldDisplayRadioButton},V=function(){var W;
return(W=p().featureListItems)!=null?W:[]};
return _.H("ytm-lp-offer-card-option-view-model",null,_.H("div",{class:S,"on:click":_.kL(function(){if(I()){var W,O;(W=U())==null||(O=W.handleRadioButtonClick)==null||O.call(W,p())}return!1})},_.H(_.n,{cond:I,
then:function(){return _.H("div",null,_.H("input",{type:"radio","on:click":L,class:"ytm-lp-offer-card-option-view-model__input-el","prop:checked":function(){var W;return!((W=U())==null||!W.isOptionSelected)}}))}}),_.H("div",null,_.H("div",{class:"ytm-lp-offer-card-option-view-model__eyebrow-text"},_.H(_.i6,{text:function(){return p().eyebrowText}})),_.H("div",{class:"ytm-lp-offer-card-option-view-model__title"},_.H(_.i6,{text:function(){return p().title}})),_.H("div",{class:"ytm-lp-offer-card-option-view-model__subtitle"},
_.H(_.i6,{text:function(){return p().subtitle}})),_.H(_.n,{cond:function(){return V().length>0},
then:function(){return _.H("div",{class:"ytm-lp-offer-card-option-view-model__feature-list-items"},_.H(_.yP,{data:V},{lpFeatureListItemViewModel:Sme}))}}),_.H("div",{class:"ytm-lp-offer-card-option-view-model__description"},_.H(_.i6,{text:function(){return p().description}})))))},"fc");
p6e.idomCompat=!0;var U5w=_.$k(function(S){var p=S.data;var U=S.themeOverride;S=_.d(_.Dt(function(){var I,V=(I=p().offerOptions)==null?void 0:I[0];return _.b(V,rcm)||{}}));
var Y=S.next().value,L=S.next().value;S={};return _.H("ytm-lp-offer-card-view-model",null,_.H("div",{class:_.VD("ytm-lp-offer-card-view-model",(S["ytm-lp-offer-card-view-model--premium-force-dark-mode"]=function(){return!(U==null||!U().useDarkTheme)},S))},_.H("div",{class:"ytm-lp-offer-card-view-model__title-container"},_.H(_.n,{cond:function(){return p().titleIconType},
then:function(){return _.H("div",{class:"ytm-lp-offer-card-view-model__icon-container"},_.H(_.QD,{icon:function(){var I;return((I=p().titleIconType)==null?void 0:I.toString())||""}}))}}),_.H("div",{class:"ytm-lp-offer-card-view-model__title-text"},_.H(_.i6,{text:function(){return p().title}})),_.H(_.yP,{data:function(){return p().titleBadge}},{badgeViewModel:function(I){return _.H("div",{class:"ytm-lp-offer-card-view-model__title-badge"},_.H(_.Bh,{data:I.data}))}})),_.H("div",{class:"ytm-lp-offer-card-view-model__offer-options-container"},
_.H(_.yP,{data:function(){return p().offerOptions}},{lpOfferCardOptionViewModel:function(I){var V=I.data;
return _.H(_.U0,null,_.H("div",{class:"ytm-lp-offer-card-view-model__divider"}),_.H(p6e,{data:V,config:function(){var W;return{shouldDisplayRadioButton:(p().offerOptions||[]).length>1,isOptionSelected:V().id===((W=Y())==null?void 0:W.id),handleRadioButtonClick:function(O){return void L(O)}}},
themeOverride:U}))}})),_.H("div",{class:"ytm-lp-offer-card-view-model__purchase-button-container"},_.H(_.yP,{data:function(){var I;
return(I=Y())==null?void 0:I.purchaseButtonOverride}},{buttonViewModel:_.PG}))))},"gc");
U5w.idomCompat=!0;var YmP=_.$k(function(S){var p=S.data;var U=S.themeOverride;S={};S=_.VD("ytm-lp-offer-card-section-view-model",(S["ytm-lp-offer-card-section-view-model--premium-force-dark-mode"]=function(){var Y;return U==null?void 0:(Y=U())==null?void 0:Y.useDarkTheme},S));
return _.H("ytm-lp-offer-card-section-view-model",null,_.H("div",{class:S},_.H(_.n,{cond:function(){return p().title!==void 0},
then:function(){return _.H("div",{class:"ytm-lp-offer-card-section-view-model__title-container"},_.H("div",{class:"ytm-lp-offer-card-section-view-model__title-text"},_.H(_.i6,{text:function(){return p().title}})),_.H(_.n,{cond:function(){return p().subtitle},
then:function(){return _.H("div",{class:"ytm-lp-offer-card-section-view-model__subtitle-text"},_.H(_.i6,{text:function(){return p().subtitle}}))}}))}}),_.H("div",{class:"ytm-lp-offer-card-section-view-model__offer-cards-container"},_.H(_.yP,{data:function(){return p().offerCards}},{lpOfferCardViewModel:function(Y){return _.H("div",{class:"ytm-lp-offer-card-section-view-model__offer-card-container"},_.H(U5w,{data:Y.data,
themeOverride:U}))}})),_.H(_.n,{cond:function(){return p().footer},
then:function(){return _.H("div",{class:"ytm-lp-offer-card-section-view-model__footer-text"},_.H(_.i6,{text:function(){return p().footer}}))}})))},"hc");var Ldt=_.$k(function(S){var p=S.data;return _.H("lp-offer-table-cell-content-view-model",null,_.H("div",{class:"yt-lp-offer-table-cell-content-view-model"},_.H(_.r7,null,_.H(_.bb,{when:function(){return p().title}},function(){return _.H(_.i6,{className:"yt-lp-offer-table-cell-content-view-model__lp-offer-table-cell-title",
text:function(){return p().title}})}),_.H(_.bb,{when:function(){return p().subTitle}},function(){return _.H(_.i6,{className:"yt-lp-offer-table-cell-content-view-model__lp-offer-table-cell-subtitle",
text:function(){return p().subTitle}})}),_.H(_.bb,{when:function(){return p().featureDescription}},function(){return _.H(_.i6,{className:"yt-lp-offer-table-cell-content-view-model__lp-offer-table-cell-feature-description",
text:function(){return p().featureDescription}})}),_.H(_.bb,{when:function(){return p().description}},function(){return _.H(_.i6,{className:"yt-lp-offer-table-cell-content-view-model__lp-offer-table-cell-description",
text:function(){return p().description}})}),_.H(_.bb,{when:function(){return p().iconType}},function(){return _.H("div",{class:"yt-lp-offer-table-cell-content-view-model__lp-offer-table-cell-icon"},_.H(_.QD,{icon:function(){return p().iconType.toString()}}))}),_.H(_.bb,{when:function(){return p().purchaseButton}},function(){return _.H(_.yP,{data:function(){return p().purchaseButton}},{buttonViewModel:function(U){return _.H("div",{class:"yt-lp-offer-table-cell-content-view-model__lp-offer-table-cell-purchase-button"},
_.H(_.PG,{data:U.data}))}})}),_.H(_.bb,{when:function(){return p().note}},function(){return _.H(_.i6,{className:"yt-lp-offer-table-cell-content-view-model__lp-offer-table-cell-note",
text:function(){return p().note}})}),_.H(_.bb,{when:function(){return p().featureDetail}},function(){return _.H(_.i6,{className:"yt-lp-offer-table-cell-content-view-model__lp-offer-table-cell-feature-detail",
text:function(){return p().featureDetail}})}),_.H(_.bb,{when:function(){return p().badge}},function(){return _.H(_.yP,{data:function(){return p().badge}},{badgeViewModel:_.Bh})}))))},"ic");
Ldt.idomCompat=!0;var MUt=_.$k(function(S){var p=S.data;return _.H("lp-offer-table-cell-view-model",null,_.H("div",{class:"ytLpOfferTableCellViewModelCellWrapper",style:function(){switch(p().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;"}}},_.H(_.yP,{data:function(){return p().contents}},{lpOfferTableCellContentViewModel:Ldt})))},
"jc");
MUt.idomCompat=!0;var IJQ=_.$k(function(S){var p=S.data;var U=S.lpTableIsFirstRow;var Y=S.lpTableIsLastRow;var L=function(){return(U==null?0:U())?"yt-lp-offer-table-row-view-model__lp-offer-table-first-row-header-cell":"yt-lp-offer-table-row-view-model__lp-offer-table-row-header-cell"},I=function(){return(U==null?0:U())?"yt-lp-offer-table-row-view-model__lp-offer-table-first-row-content-cell":(Y==null?0:Y())?"yt-lp-offer-table-row-view-model__lp-offer-table-last-row-content-cell":"yt-lp-offer-table-row-view-model__lp-offer-table-row-content-cell"};
return _.H("ytm-lp-offer-table-row-view-model",null,_.H("div",{class:"yt-lp-offer-table-row-view-model"},_.H(_.yP,{data:function(){return p().rowHeaderCell}},{lpOfferTableCellViewModel:function(V){return _.H("div",{class:L},_.H(MUt,{data:V.data}))}}),_.H(_.yP,{data:function(){return p().contentCells}},{lpOfferTableCellViewModel:function(V){return _.H("div",{class:I},_.H(MUt,{data:V.data}))}})))},"kc");
IJQ.idomCompat=!0;var d5l=_.$k(function(S){var p=S.data;var U=S.themeOverride;var Y=_.tW().resolve(_.AW(_.Cz)),L=function(){return _.b(p().logo,aHQ)||{}};
S={};return _.H("ytm-lp-offer-table-section-view-model",null,_.H("div",{class:"yt-lp-offer-table-view-model"},_.H(_.n,{cond:function(){var I,V;return Y&&Y()||(U==null?0:U().useDarkTheme)?(I=L())==null?void 0:I.imageDark:(V=L())==null?void 0:V.imageLight},
then:function(I){return _.H(_.of,{data:I,contentMode:"CONTENT_MODE_SCALE_ASPECT_FIT",alt:function(){var V,W,O;return(O=(V=L())==null?void 0:(W=V.accessibilityData)==null?void 0:W.label)!=null?O:""},
targetWidth:140,targetHeight:40,height:40,className:"yt-lp-offer-table-view-model__lp-offer-table-section-logo",useWidth:!1})}}),_.H("div",{class:"yt-lp-offer-table-view-model__lp-offer-table-section-title"},_.H(_.i6,{text:function(){return p().title}})),_.H("div",{class:"yt-lp-offer-table-view-model__lp-offer-table-section-subtitle"},_.H(_.i6,{text:function(){return p().subtitle}})),_.H(_.n,{cond:function(){return p().disclaimers},
then:function(I){return _.H("div",{class:"yt-lp-offer-table-view-model__lp-offer-table-section-disclaimers"},_.H(_.KU,{each:I},function(V){return _.H("div",null,_.H(_.i6,{text:V}))}))}}),_.H("div",{class:"yt-lp-offer-table-view-model__lp-offer-table-section-rows"},_.H(_.yP,{data:function(){return p().rows}},{lpOfferTableRowViewModel:function(I,V){return _.H(IJQ,{data:I.data,
lpTableIsFirstRow:function(){return V()===0},
lpTableIsLastRow:function(){return V()===p().rows.length-1}})}})),_.H("div",{class:_.VD((S["yt-lp-offer-table-view-model__lp-offer-table-section-footer-wrapper"]=function(){return p().hasFooterBackground},S))},_.H(_.n,{cond:function(){return p().footer},
then:function(){return _.H("div",{class:"yt-lp-offer-table-view-model__lp-offer-table-section-footer"},_.H(_.i6,{text:function(){return p().footer}}))}}),_.H(_.n,{cond:function(){return p().footerTitle},
then:function(){return _.H("div",{class:"yt-lp-offer-table-view-model__lp-offer-table-section-footer-title"},_.H(_.i6,{text:function(){return p().footerTitle}}))}}),_.H(_.n,{cond:function(){return p().footerDescription},
then:function(){return _.H("div",{class:"yt-lp-offer-table-view-model__lp-offer-table-section-footer-description"},_.H(_.i6,{text:function(){return p().footerDescription}}))}}))))},"lc");
d5l.idomCompat=!0;var VUE=_.$k(function(S){var p=S.data;var U=S.themeOverride;var Y=_.tW().resolve(_.AW(_.Cz)),L=function(){var W;return U==null?void 0:(W=U())==null?void 0:W.useDarkTheme},I=function(){var W,O;
return Y&&Y()||L()?(W=p().image)==null?void 0:W.imageDark:(O=p().image)==null?void 0:O.imageLight};
S={};S=_.VD("ytm-lp-small-feature-section-view-model",(S["ytm-lp-small-feature-section-view-model--premium-force-dark-mode"]=L,S));var V=function(){var W,O,D;return(D=(W=p().image)==null?void 0:(O=W.accessibilityData)==null?void 0:O.label)!=null?D:""};
return _.H("ytm-lp-small-feature-section-view-model",{class:S},_.H(_.n,{cond:function(){return I()&&!h3w},
then:function(){return _.H("div",{class:"ytm-lp-small-feature-section-view-model__feature-image-container"},_.H(_.of,{data:function(){return I()},
alt:V,contentMode:"CONTENT_MODE_SCALE_ASPECT_FIT",renderLazy:!1}))}}),_.H("div",{class:"ytm-lp-small-feature-section-view-model__content-section"},_.H("div",{class:"ytm-lp-small-feature-section-view-model__title-text"},_.H(_.n,{cond:function(){return p().title},
then:function(W){return _.H(_.i6,{text:W})}})),_.H("div",{class:"ytm-lp-small-feature-section-view-model__description-text"},_.H(_.i6,{text:function(){return p().description}}))))},"mc");
VUE.idomCompat=!0;var TGI=_.$k(function(S){var p=S.data;var U=S.themeOverride;S={};return _.H("ytm-lp-small-feature-section-group-view-model",null,_.H("div",{class:_.VD("ytm-lp-small-feature-section-group-view-model",(S["ytm-lp-small-feature-section-group-view-model--premium-force-dark-mode"]=function(){return!(U==null||!U().useDarkTheme)},S))},_.H("div",{class:"ytm-lp-small-feature-section-group-view-model__small-features-container"},_.H(_.yP,{data:function(){return p().smallFeatures}},{lpSmallFeatureSectionViewModel:function(Y){return _.H("div",
{class:"ytm-lp-small-feature-section-group-view-model__small-feature-container"},_.H(VUE,{data:Y.data,
themeOverride:U}))}}))))},"nc");
TGI.idomCompat=!0;_.qm(_.$k(function(S){var p=S.data;var U=function(){return p().forcedTheme==="USER_INTERFACE_THEME_DARK"},Y=function(){return p().backgroundImageType==="LP_SECTION_BACKGROUND_TYPE_PHOTO"},L=function(){var V="",W,O;
var D=_.tW().resolve(_.AW(_.Cz));D=U()||(D==null?0:D())?(W=p().themedImageViewModel)==null?void 0:W.imageDark:(O=p().themedImageViewModel)==null?void 0:O.imageLight;(W=Tqk((D==null?void 0:D.sources)||[]))&&W.url&&(V=Y()?"background-image: linear-gradient(to bottom, transparent, "+(p().layoutType==="LP_MODULE_LAYOUT_TYPE_PTC"?"40%":"70%")+", var(--premium-yt-spec-base-background)), url("+_.JA(W.url)+");":"background-image: url("+_.JA(W.url)+");");return V},I=function(){return{useDarkTheme:U()}};
S={};return _.H("yt-section-group-view-model",null,_.H("div",{class:_.VD("yt-lp-section-group-view-model",(S["yt-lp-section-group-view-model--premium-force-dark-mode"]=U,S["yt-lp-section-group-view-model--ptc-layout-type"]=function(){return p().layoutType==="LP_MODULE_LAYOUT_TYPE_PTC"},S))},_.H(_.n,{cond:function(){return L().length},
then:function(){var V={};return _.H("div",{class:_.VD("yt-lp-section-group-view-model__bg-image",(V["yt-lp-section-group-view-model__bg-image--bg-image-photo"]=Y,V)),style:L})}}),_.H("div",{class:"yt-lp-section-group-view-model__lp-section-group"},_.H(_.yP,{data:function(){return p().sections}},{lpFaqSectionViewModel:function(V){return _.H(q4m,{data:V.data,
themeOverride:I})},
lpHeaderSectionViewModel:function(V){return _.H(ATw,{data:V.data,themeOverride:I})},
lpHeadlineSectionViewModel:function(V){return _.H(t_I,{data:V.data,themeOverride:I})},
lpLargeFeatureSectionViewModel:function(V){return _.H(cTm,{data:V.data,themeOverride:I})},
lpOfferCardSectionViewModel:function(V){return _.H(YmP,{data:V.data,themeOverride:I})},
lpComplexOfferCardSectionViewModel:function(V){return _.H(i1q,{data:V.data})},
lpOfferTableSectionViewModel:function(V){return _.H(d5l,{data:V.data,themeOverride:I})},
lpSmallFeatureSectionGroupViewModel:function(V){return _.H(TGI,{data:V.data,themeOverride:I})}}))))},"oc"),"yt-section-group-view-model",{props:{data:_.x2}});var AGE=new Set([void 0,"CHIP_VIEW_MODEL_DISPLAY_TYPE_UNSPECIFIED","CHIP_VIEW_MODEL_DISPLAY_TYPE_NO_ICON"]);_.Wdq=_.$k(function(S){function p(){if(AGE.has(S.data().displayType)){var D=!Y(),z;if((z=S.disableDeselection)==null||!z.call(S)||D){S.data().selected=D;z=Object.assign({},V(),{selected:D});W(z);var Q;(Q=S.callback)==null||Q.call(S,z,D)}}}
var U=_.vH(),Y=function(){var D,z;return!!(((D=S.selected)==null?void 0:D.call(S))!==void 0?(z=S.selected)==null?0:z.call(S):V().selected)},L=_.d(_.Dt(S.data)),I=L.next().value;
L=L.next().value;var V=I,W=L,O=_.Ty(quw,function(){return S.data().chipEntityKey||""});
return _.H("chip-view-model",{class:"ytChipViewModelHost",el:U},_.H(NLc,{data:function(){var D,z=Object.assign({},V(),{selected:Y()}),Q=O(),J=(D=S.disableDeselection)==null?void 0:D.call(S);a:switch(z.displayType){case "CHIP_VIEW_MODEL_DISPLAY_TYPE_DROP_DOWN":case "CHIP_VIEW_MODEL_DISPLAY_TYPE_DROP_DOWN_WITH_CLEAR":D=1;break a;default:D=0}return{text:(Q==null?void 0:Q.text)||z.text,state:z.disabled?1:z.selected?0:2,type:D,onTap:tBN(z,U,p,J),accessibilityLabel:z.accessibilityLabel||z.text}}}))},"pc");
_.Wdq.idomCompat={callbacks:{callback:!0}};_.Oqt=_.$k(function(S){var p=_.Ty(BhE,function(){var V;return(V=S.data())==null?void 0:V.chipBarStateEntityKey}),U=function(){return S.data().disableDeselection},Y=_.d(_.Dt(function(){var V;
if(((V=p())==null?void 0:V.selectedIndex)!=void 0)return p().selectedIndex;var W,O;V=_.d(((W=S.data())==null?void 0:(O=W.chips)==null?void 0:O.entries())||[]);for(W=V.next();!W.done;W=V.next()){W=_.d(W.value);O=W.next().value;W=W.next().value;var D=void 0;if((D=_.b(W,_.eq))==null?0:D.selected)return O}return-1})),L=Y.next().value,I=Y.next().value;
return _.H("chip-bar-view-model",{class:_.VD("ytChipBarViewModelHost",S.className),role:"tablist"},_.H(_.yP,{data:function(){return S.data().chips}},{chipViewModel:function(V,W){return _.H("div",{class:"ytChipBarViewModelChipWrapper"},_.H(_.Wdq,{data:V.data,
selected:function(){return W()===L()},
callback:function(O,D){O=!!D;D=W();I(O?D:-1);var z,Q=(z=S.data())==null?void 0:z.chipBarStateEntityKey;Q&&O&&_.m_(_.WG("chipBarStateEntity",Q,{key:Q,selectedIndex:D}))},
disableDeselection:S.disableDeselection||U}))}}))},"qc");_.qm(_.Oqt,"chip-bar-view-model",{props:{data:_.BX,className:_.BX,disableDeselection:_.BX}});_.k5w=_.$k(function(S){var p=S.data;S={};return _.H("divider-view-model",{class:_.VD("divider-view-model-wiz",(S["divider-view-model-wiz__inset-thin-padding"]=function(){return p().dividerStyle==="DIVIDER_STYLE_INSET_THIN"},S))},_.H("div",{class:_.VD("divider-view-model-wiz__base-divider",function(){return cGd(p().dividerStyle)}),
style:_.zw({"background-color":function(){return p().backgroundColor?_.s1(p().backgroundColor):void 0}})}))},"rc");
_.k5w.idomCompat=!0;_.qm(_.k5w,"divider-view-model",{props:{data:_.x2}});var rb=new Map,jJ=new Map,UiX=0,Gh;var TLX=[{calledOnce:!1,state:"visible"},{calledOnce:!1,state:"hidden"}],kiX={throttleMs:0,canHaveZeroSize:!0,useVisibilityObserver:!1};var HqI,D5Q;HqI=function(S){return function(p){return function(){return String(p())+S}}};
_.rq=HqI("px");D5Q=HqI("s");var QCt=_.$k(function(S){function p(A){return function(){var q=K().numItemsPerGridRow,TG=A()*q;q=TG+q;var Je,GG;return(GG=(Je=Y().contents)==null?void 0:Je.slice(TG,q))!=null?GG:[]}}
var U=_.vT(S,{layoutContainerWidth:0,shouldUseOwnContainerSize:!1,marginSettings:1}),Y=U.data,L=U.layoutContainerWidth,I=U.shouldUseOwnContainerSize,V=U.marginSettings;U=_.d(_.kj(!0,void 0,"qgr2Je"));var W=U.next().value,O=U.next().value,D=function(){var A,q=(A=_.b(Y().showMoreButton,_.K6))==null?void 0:A.trackingParams;q&&_.La(_.HX(),q);O(!1)},z=function(){var A,q=(A=_.b(Y().showLessButton,_.K6))==null?void 0:A.trackingParams;
q&&_.La(_.HX(),q);O(!0)};
U=_.vH();var Q=_.Die(U,{canHaveZeroSize:!1}),J=function(){var A;return(A=Y().contentAspectRatio)!=null?A:"GRID_SHELF_CONTENT_ASPECT_RATIO_UNKNOWN"},K=_.nS(function(){var A=_.oF({containerWidth:I()&&Q.width()>0?Q.width()||L():L(),
sizing:"EXTRA_COMPACT",marginSettings:V(),enableFullBleedForSingleCol:!1});return{maxContainerWidth:A.maxContainerWidth,numItemsPerGridRow:A.numItems,contentPadding:I()?A.margin:A.contentMargin,itemWidth:A.itemWidth,itemMargin:A.gutter/2}},void 0,"pqVdjc"),G=function(){if(Y().enableVerticalExpansion){if(W())return X();
var A,q,TG=(q=(A=Y().contents)==null?void 0:A.length)!=null?q:0;return Math.ceil(TG/K().numItemsPerGridRow)}return K().numItemsPerGridRow<=2?2:1},X=function(){var A;
return Math.ceil(((A=Y().minCollapsedItemCount)!=null?A:1)/K().numItemsPerGridRow)},Z=function(){return Y().enableVerticalExpansion&&Y().showLessButton&&!W()&&G()>X()},l=function(){var A,q;
return Y().enableVerticalExpansion&&Y().showMoreButton&&W()&&((q=(A=Y().contents)==null?void 0:A.length)!=null?q:0)>K().numItemsPerGridRow*X()},a=function(){return!Z()},N=function(){return!l()},m={};
return _.H("grid-shelf-view-model",{class:_.VD("ytGridShelfViewModelHost",S.className,(m.ytGridShelfViewModelHostHasBottomButton=function(){return Z()||l()},m)),
el:U,style:_.zw({"margin-left":(0,_.rq)(function(){return K().contentPadding}),
"margin-right":(0,_.rq)(function(){return K().contentPadding})})},_.H(_.n,{cond:function(){return _.b(Y().header,qSl)},
then:function(A){return _.H(_.Yh,{data:A,disableHorizontalPadding:!0})}}),_.H("div",null,_.H(_.KU,{each:function(){return Array(G())}},function(A,q){return _.H(zJj,{className:S.className,
items:p(q),responsiveGridShelfLayout:K,contentAspectRatio:J})})),_.H("div",{class:"ytGridShelfViewModelGridShelfBottomButtonContainer"},_.H(_.yP,{data:function(){return Y().showMoreButton}},{buttonViewModel:function(A){return _.H("div",{hidden:N},_.H(_.PG,{data:A.data,
onClick:D}))}}),_.H(_.yP,{data:function(){return Y().showLessButton}},{buttonViewModel:function(A){return _.H("div",{hidden:a},_.H(_.PG,{data:A.data,
onClick:z}))}})))},"sc");
QCt.idomCompat=!0;var zJj=_.$k(function(S){var p=S.items;var U=S.responsiveGridShelfLayout;var Y=S.contentAspectRatio;S=S.className;var L=_.vH();pZX(L,function(){a:{var V=L.value;for(var W=p(),O=[],D=0;D<W.length;D++){var z=_.b(W[D],Pat);if(!z||z==null||!z.inlinePlayerData){V=null;break a}var Q=V.children.item(D);if(!Q){V=null;break a}O.push({thumbnailElement:Q,videoData:z})}V={gridVideoPreviewData:{gridItems:O}}}return V});
var I=(0,_.rq)(function(){return-U().itemMargin});
return _.H("div",{el:L,class:_.VD("ytGridShelfViewModelGridShelfRow",S),style:_.zw({"margin-left":I,"margin-right":I})},_.H(_.yP,{data:p,replacementWrapper:function(V){return _.H(nWm,{responsiveGridShelfLayout:U},V)}},{shortsLockupViewModel:function(V){return _.H(nWm,{responsiveGridShelfLayout:U},_.H(LNP,{data:V.data,
aspectRatio:function(){return Y()==="GRID_SHELF_CONTENT_ASPECT_RATIO_TWO_BY_THREE"?1:0},
scrimStyle:2,inlineMetadata:!1,className:void 0}))}}))},"tc"),nWm=_.$k(function(S){return _.H("div",{style:_.zw({width:(0,_.rq)(function(){return S.responsiveGridShelfLayout().itemWidth}),
margin:function(){return"0 "+S.responsiveGridShelfLayout().itemMargin+"px"}}),
class:"ytGridShelfViewModelGridShelfItem"},S.children)},"uc");
QCt.idomCompat=!0;_.qm(QCt,"grid-shelf-view-model",{props:{data:_.x2,layoutContainerWidth:_.x2,shouldUseOwnContainerSize:_.x2,marginSettings:_.x2,className:_.x2}});_.JDQ=_.$k(function(S){var p=_.d(_.kj(!1,void 0,"YYtxR")),U=p.next().value,Y=p.next().value;p={};return _.H("yt-alert-banner-view-model",{class:_.VD("ytAlertBannerViewModelHost",S.className,function(){var L;a:switch((L=S.data())==null?void 0:L.type){case "ALERT_BANNER_TYPE_TIME_SENSITIVE":L="ytAlertBannerViewModelTimeSensitive";break a;case "ALERT_BANNER_TYPE_WARNING":L="ytAlertBannerViewModelWarning";break a;default:L="ytAlertBannerViewModelInformational"}return L},(p.ytAlertBannerViewModelDismissed=
U,p.ytAlertBannerViewModelFullbleed=S.fullbleed,p.ytAlertBannerViewModelNarrow=S.narrow,p.ytAlertBannerViewModelIsInRichGrid=S.isInRichGrid,p))},_.H(_.n,{cond:function(){var L;
return!((L=S.data())==null?0:L.hideIcon)},
then:function(){return _.H("div",{class:"ytAlertBannerViewModelIcon"},_.H(_.QD,{icon:function(){return"info_circle"}}))}}),_.H("div",{class:"ytAlertBannerViewModelOuterContainer"},_.H("div",{class:"ytAlertBannerViewModelContainer"},_.H("div",{class:"ytAlertBannerViewModelContent"},_.H("div",{class:"ytAlertBannerViewModelHeading"},_.H(_.i6,{text:function(){var L;
return(L=S.data())==null?void 0:L.heading}})),_.H("div",{class:"ytAlertBannerViewModelBody"},_.H(_.i6,{text:function(){var L;
return(L=S.data())==null?void 0:L.body}})))),_.H(_.yP,{data:function(){var L;
return(L=S.data())==null?void 0:L.actionButton}},{buttonViewModel:function(L){return _.H(_.PG,{data:L.data,
className:"ytAlertBannerViewModelActionButton"})}})),_.H(_.yP,{data:function(){var L;
return(L=S.data())==null?void 0:L.dismissButton}},{buttonViewModel:function(L){return _.H(_.PG,{data:L.data,
className:"ytAlertBannerViewModelDismissButton",onClick:function(){var I;((I=S.data())==null?0:I.disableLocalDismissBehavior)||Y(!0)}})}}))},"vc");_.qm(_.JDQ,"yt-alert-banner-view-model",{props:{data:_.x2,fullbleed:_.x2,narrow:_.x2,isInRichGrid:_.x2,className:_.x2}});var zGk;zGk=_.zy({chipViewModel:_.Wdq,buttonViewModel:_.PG});_.yDc=_.Oo(Qve,{callbacks:{callback:!0}});_.cH(Qve);_.qm(_.yDc,"chips-shelf-view-model",{props:{data:_.x2,callback:_.BX,enableSingleChipSelection:_.x2,disableChipsScrollAnimation:_.x2}});var Kdm=_.$k(function(S){S=_.vT(S,{disabled:!1});var p=S.active,U=S.disabled;S={};S=_.VD("ytSwitchShapeTrack",(S.ytSwitchShapeTrackActive=function(){return p()},S.ytSwitchShapeTrackDisabled=function(){return U()},S));
var Y={};Y=_.VD("ytSwitchShapeKnob",(Y.ytSwitchShapeKnobActive=function(){return p()},Y));
return _.H("switch-shape",{class:"ytSwitchShapeHost"},_.H("div",{class:S}),_.H("div",{class:Y}))},"wc");var bqQ=_.$k(function(S){var p=_.vT(S,{className:void 0,parentActive:void 0,handleOnTapEventInParent:!1}),U=p.data;S=p.className;var Y=p.handleOnTapEventInParent,L=p.parentActive;p=_.d(_.Dt(function(){var Q;return(Q=L())!=null?Q:U().switchedOnByDefault||!1}));
var I=p.next().value,V=p.next().value,W=function(){return U().isDisabled},O=_.vH();
p=_.kL(function(Q){return Q.key==="Enter"?(Q.preventDefault(),O.value.click(),!1):!0});
var D=_.kL(function(Q){if(U().handleOnTapEventInParent||Y())return!0;if(W())return!1;Jow(U(),I(),Q);V(!I());return!1}),z={};
z=_.VD("ytSwitchButtonViewModelButton",(z.ytSwitchButtonViewModelTappable=function(){return!W()},z));
return _.H("switch-button-view-model",{class:_.VD("ytSwitchButtonViewModelHost",S)},_.H("button",{el:O,class:z,"on:click":D,"on:keydown":p,"aria-label":function(){return I()?U().a11yLabelSwitchedOn:U().a11yLabelSwitchedOff},
"aria-checked":I,"aria-disabled":W,role:"switch"},_.H(Kdm,{active:I,disabled:W})))},"xc");var rDw=_.$k(function(S){var p=_.vT(S,{checked:!1});S=p.name;var U=p.onChange,Y=p.onClick,L=p.checked,I=p.labelRenderable,V=p.hasLeadingLabel,W=p.labelClass,O=p.isCompact,D=p.selectElementClass;p=p.disableHorizontalPadding;var z="checkbox"+_.hs(_.jy),Q=_.kL(function(G){Y==null||Y(G);return!1}),J=_.kL(function(G){U==null||U(G);
return!1}),K={};
return _.H("checkbox-shape",null,_.H("label",{class:_.VD("checkbox-shape-wiz",W,(K["checkbox-shape-wiz--compact"]=O,K["checkbox-shape-wiz--disable-horizontal-padding"]=p,K))},_.H("input",{class:"checkbox-shape-wiz__input",id:z,checked:L,name:S,type:"checkbox","prop:checked":L,"on:change":J,"on:click":Q}),_.H(_.n,{cond:function(){return!(V==null?0:V())},
then:function(){return _.H(jCI,{isLeading:!0,selectElementClass:D})}}),_.H(_.n,{cond:function(){return!!I},
then:function(){return _.H("div",{class:"checkbox-shape-wiz__label"},I==null?void 0:I())}}),_.H(_.n,{cond:V,
then:function(){return _.H(jCI,{isLeading:!1,selectElementClass:D})}})))},"yc");
rDw.idomCompat={callbacks:{onChange:!0,onClick:!0,labelRenderable:!0}};var jCI=_.$k(function(S){var p=S.selectElementClass;S={};return _.H("div",{class:_.VD("checkbox-shape-wiz__checkbox",p,(S["checkbox-shape-wiz__checkbox--checkbox-default-style"]=function(){return!(p==null?0:p())},S)),
"aria-hidden":"true"},_.H(_.QD,{icon:_.y("enable_web_delhi_icons")?"square":"BOX_EMPTY"}),_.H(_.QD,{icon:_.y("enable_web_delhi_icons")?"check_square":"BOX_CHECK",active:!0}))},"zc");_.GP=_.$k(function(S){var p=S.name;var U=S.onChange;var Y=S.onClick;var L=S.checked;var I=S.labelRenderable;var V=S.useCheckIcon;var W=S.hasLeadingLabel;var O=S.labelClass;var D=S.isCompact;var z=S.selectElementClass;var Q=S.ariaLabel;S=S.className;var J="radio"+_.hs(_.jy),K=_.vH(),G=_.kL(function(N){K.value.checked=!(L==null||!L());U==null||U(N);return!1}),X=_.kL(function(N){Y==null||Y(N);
return!1}),Z=_.d(_.kj(!1,void 0,"v5AMrb")),l=Z.next().value,a=Z.next().value;
Z={};return _.H("radio-shape",{class:_.VD("radio-shape-wiz",S)},_.H("input",{el:K,class:"radio-shape-wiz__input",id:J,"prop:checked":L,name:p,type:"radio","on:change":G,"on:click":X,"aria-label":Q,"on:focusin":_.kL(function(){var N;((N=_.tW().resolve(_.AW(_.SN)))==null?0:N.isKeyBoardInUse())&&a(!0)}),
"on:focusout":_.kL(function(){a(!1)})}),_.H("label",{class:_.VD("radio-shape-wiz__label-container",O,(Z["radio-shape-wiz--compact"]=D,Z["radio-shape-wiz__label-container--keyboard-focused"]=l,Z)),
for:J},_.H(_.n,{cond:function(){return!(W==null?0:W())},
then:function(){return _.H(G5I,{checked:L,useCheckIcon:V,isLeading:!0,selectElementClass:z})}}),_.H(_.n,{cond:function(){return!!I},
then:function(){return _.H("div",{class:"radio-shape-wiz__label","aria-hidden":function(){return(Q==null?0:Q())?"true":"false"}},I==null?void 0:I())}}),_.H(_.n,{cond:W,
then:function(){return _.H(G5I,{checked:L,useCheckIcon:V,isLeading:!1,selectElementClass:z})}})))},"Ac");
_.GP.idomCompat={callbacks:{onChange:!0,onClick:!0,labelRenderable:!0}};var G5I=_.$k(function(S){var p=S.useCheckIcon;var U=S.selectElementClass;S=function(){return(p==null?0:p())?"CHECK":_.y("radio_shape_filled_icon_manual_setting_killswitch")?"CIRCLE_FILLED":"CIRCLE"};
var Y={};return _.H("div",{class:_.VD("radio-shape-wiz__radio",U,(Y["radio-shape-wiz__radio--check-icon"]=p,Y["radio-shape-wiz__radio--radio-default-style"]=function(){return!(U==null?0:U())},Y)),
"aria-hidden":"true"},_.H(_.QD,{icon:S}),_.H(_.QD,{icon:S,active:function(){return!(p==null?0:p())}}))},"Bc");_.h5=_.$k(function(S){function p(){var XI;((XI=_.tW().resolve(_.AW(_.SN)))==null?0:XI.isKeyBoardInUse())&&au(!0)}
function U(){au(!1)}
var Y=S.data;var L=S.isMenuItem;var I=S.isCompact;var V=S.onTap;var W=S.trailingAccessory;var O=S.hideSelectionTextChevron;var D=S.disabled;var z=S.inPopup;var Q=S.disableHorizontalPadding;S=S.isOverlay;var J=_.y("apply_button_role_to_list_item"),K=_.Xc(function(XI){a:{var nE=Y();if((nE==null?0:nE.entitySelectorType)&&(nE==null?0:nE.entityKey))switch(nE.entitySelectorType){case "LIST_ITEM_VIEW_MODEL_ENTITY_SELECTOR_TYPE_CAPTION_LANGUAGE_SELECTION_TEXT":XI=_.L9e(XI,nE.entityKey);XI=XI==null?void 0:
XI.value;nE=!1;XI==="CAPTIONS_UNAVAILABLE"&&(nE=!0,XI="");XI=Object.assign({},!!XI&&{selectionText:{content:XI}},{isSelected:!!XI},!!XI&&{leadingImage:{sources:[{clientResource:{imageName:"CLOSED_CAPTION_SELECTED"}}]}},{isDisabled:nE});break a;default:XI={}}else XI={}}return XI}),G=function(){return _.y("enable_web_shorts_captions_language_command")?Object.assign({},Y(),K()):Y()},X=function(){return!(G().isSelected===void 0||!G().selectionStyle||G().selectionStyle==="LIST_ITEM_SELECTION_STYLE_UNSPECIFIED")},
Z=function(){return(_.f6(G().rendererContext)||V)&&!X()},l=function(){return _.f6(G().rendererContext)||X()},a={};
S=_.VD("yt-list-item-view-model-wiz",(a["yt-list-item-view-model-wiz--is-overlay"]=S,a["yt-list-item-view-model-wiz--keyboard-focused"]=function(){return!J&&mq()},a));
a={};var N=_.VD("yt-list-item-view-model-wiz__label",(a["yt-list-item-view-model-wiz__container"]=function(){return!X()},a["yt-list-item-view-model-wiz__container--disabled"]=function(){return!!G().isDisabled||!(D==null||!D())},a["yt-list-item-view-model-wiz__container--has-subtitle"]=function(){return!!G().subtitle},a["yt-list-item-view-model-wiz__container--compact"]=I,a["yt-list-item-view-model-wiz__container--tappable"]=Z,a["yt-list-item-view-model-wiz__container--in-popup"]=z,a["yt-list-item-view-model-wiz--keyboard-focused"]=
function(){return J&&mq()},a["yt-list-item-view-model-wiz__container--disable-horizontal-padding"]=function(){return(Q==null?void 0:Q())&&!X()},a));
a={};var m=_.VD("yt-list-item-view-model-wiz__container",(a["yt-list-item-view-model-wiz__container--tappable"]=l,a["yt-list-item-view-model-wiz__container--compact"]=I,a["yt-list-item-view-model-wiz__container--in-popup"]=z,a["yt-list-item-view-model-wiz__container--disable-horizontal-padding"]=function(){return(Q==null?void 0:Q())&&X()},a)),A=function(){return G().leadingImage||G().leadingAccessory},q=_.VD("yt-list-item-view-model-wiz__image-container",function(){return A()?"yt-list-item-view-model-wiz__trailing":
"yt-list-item-view-model-wiz__leading"});
z=_.vH();var TG=_.vH(),Je=J?TG:z,GG=_.$k(function(){return _.H(_.n,{cond:function(){return J},
then:function(){return _.H("div",{class:N,el:TG,role:function(){return l()||Z()?"button":void 0},
tabindex:function(){return V||Z()?0:void 0},
"on:keydown":Ru,"on:click":Zw},_.H(hJc,{data:G,hideSelectionTextChevron:O,trailingAccessory:W}))},
else:function(){return _.H("div",{class:N,el:TG},_.H(hJc,{data:G,hideSelectionTextChevron:O,trailingAccessory:W}))}})},"Cc");
GG.idomCompat=!0;_.C6(z,function(){return G().rendererContext});
var Zw=_.kL(function(XI){return void(V==null?void 0:V(XI))}),Ru=_.LHN(),sX=_.d(_.kj(!1,void 0,"inP9Dc"));
a=sX.next().value;sX=sX.next().value;var mq=a,au=sX;_.FM(function(){Z()&&(Je.value.addEventListener("focusin",p),Je.value.addEventListener("focusout",U));_.FG(function(){Je.value&&Z()&&(Je.value.removeEventListener("focusin",p),Je.value.removeEventListener("focusout",U))})});
a=_.kL(function(){return!0});
return _.H("yt-list-item-view-model",{el:z,class:S,role:function(){return(L==null?0:L())?"menuitem":"listitem"},
tabindex:function(){var XI=Z();XI=J?void 0:V||XI?0:void 0;return XI},
"on:keydown":J?a:Ru,"on:click":J?a:Zw},_.H(_.n,{cond:X,then:function(){return _.H(_.r7,null,_.H(_.bb,{when:function(){return G().selectionStyle==="LIST_ITEM_SELECTION_STYLE_CHECKBOX"}},function(){return _.H(rDw,{labelRenderable:function(){return _.H(GG,null)},
isCompact:I,checked:function(){return G().isSelected},
hasLeadingLabel:function(){return!!A()},
labelClass:m,selectElementClass:q,disableHorizontalPadding:Q})}),_.H(_.bb,{when:function(){return G().selectionStyle==="LIST_ITEM_SELECTION_STYLE_RADIO"}},function(){return _.H(_.GP,{labelRenderable:function(){return _.H(GG,null)},
isCompact:I,checked:function(){return G().isSelected},
hasLeadingLabel:function(){return!!A()},
labelClass:m,selectElementClass:q})}),_.H(_.bb,{when:function(){return G().selectionStyle==="LIST_ITEM_SELECTION_STYLE_DEFAULT"}},function(){return _.H(_.GP,{labelRenderable:function(){return _.H(GG,null)},
isCompact:I,checked:function(){return G().isSelected},
hasLeadingLabel:function(){return!!A()},
labelClass:m,selectElementClass:q,useCheckIcon:!0})}),_.H(_.jn,null,function(){return _.H(GG,null)}))},
else:function(){return _.H(GG,null)}}))},"Dc");
_.h5.idomCompat={callbacks:{onTap:!0,trailingAccessory:!0}};var hJc=_.$k(function(S){var p=S.data;var U=S.hideSelectionTextChevron;var Y=S.trailingAccessory;return _.H(_.U0,null,_.H(RJP,{data:p,isLeading:!0,hideSelectionTextChevron:function(){return!(U==null||!U())}}),_.H(Fdw,{data:p}),_.H(_.n,{cond:function(){return!!Y},
then:function(){return _.H("div",{class:"yt-list-item-view-model-wiz__trailing"},Y==null?void 0:Y())},
else:function(){return _.H(RJP,{data:p,isLeading:!1,hideSelectionTextChevron:function(){return!(U==null||!U())}})}}))},"Ec"),RJP=_.$k(function(S){var p=S.data;
var U=S.isLeading;var Y=S.hideSelectionTextChevron;var L=_.VD("yt-list-item-view-model-wiz__button-container");S={};var I=_.VD("yt-list-item-view-model-wiz__image-container",(S["yt-list-item-view-model-wiz__leading"]=U,S["yt-list-item-view-model-wiz__trailing"]=function(){return!U()},S)),V=function(){return U()?p().leadingImage:p().trailingImage},W=_.VD("yt-list-item-view-model-wiz__accessory","yt-list-item-view-model-wiz__image");
S={};var O=_.VD("yt-list-item-view-model-wiz__accessory",(S["yt-list-item-view-model-wiz__leading"]=U,S["yt-list-item-view-model-wiz__trailing"]=function(){return!U()},S)),D=function(){a:switch(p().listItemIconAfterSelectionText){case "LIST_ITEM_ICON_AFTER_SELECTION_TEXT_EXPAND_MORE":var z="expand_more";
break a;default:z="chevron_right"}return z};
return _.H(_.n,{cond:function(){var z=p(),Q=U();return!!(Q&&(z.leadingImage||z.leadingAccessory)||!Q&&(z.trailingImage||z.trailingButton||z.trailingButtons||z.selectionText))},
then:function(){return _.H(_.U0,null,_.H(_.n,{cond:V,then:function(z){return _.H("div",{class:I,"aria-hidden":"true"},_.H(_.of,{data:z,alt:"",preserveWidth:!0,preserveHeight:!0,className:W}))}}),_.H(_.n,{cond:function(){return U()&&p().leadingAccessory},
then:function(){return _.H("div",{class:I},_.H(_.yP,{data:function(){return p().leadingAccessory}},{avatarViewModel:function(z){return _.H(_.bS,{data:z.data,
avatarButtonCustomClassName:W})},
collectionThumbnailViewModel:qaQ}))}}),_.H(_.n,{cond:function(){return!U()&&p().trailingButton},
then:function(){return _.H("div",{class:L},_.H(_.yP,{data:function(){return p().trailingButton}},{buttonViewModel:function(z){return _.H(_.PG,{data:z.data,
className:O})}}))}}),_.H(_.n,{cond:function(){var z;
return!U()&&((z=p().trailingButtons)==null?void 0:z.buttons)},
then:function(){return _.H("div",{class:L},_.H(_.yP,{data:function(){var z;return(z=p().trailingButtons)==null?void 0:z.buttons}},{buttonViewModel:function(z){return _.H(_.PG,{data:z.data,
className:O})},
accountLinkButtonViewModel:function(z){return _.H(E4G,{data:z.data,className:function(){return O()||""}})},
switchButtonViewModel:function(z){return _.H(bqQ,{data:z.data,className:O})},
subscribeButtonViewModel:function(z){return _.H(_.jW,{data:z.data,isOverlay:!1,animateWidth:!1,className:O})},
toggleButtonViewModel:function(z){return _.H(_.jS,{data:z.data,className:O})}}))}}),_.H(_.n,{cond:function(){return!U()&&!!p().selectionText},
then:function(){return _.H(_.U0,null,_.H(_.i6,{text:function(){return p().selectionText},
className:_.VD("yt-list-item-view-model-wiz__selection-text","yt-list-item-view-model-wiz__selection-text--trailing-selection-text")}),_.H(_.n,{cond:function(){return!Y()},
then:function(){return _.H(_.QD,{icon:D,className:"yt-list-item-view-model-wiz__chevron-icon"})}}))}}))}})},"Fc"),Fdw=_.$k(function(S){var p=S.data;
return _.H(_.n,{cond:function(){return p().title||p().subtitle},
then:function(){return _.H("div",{class:"yt-list-item-view-model-wiz__text-wrapper"},_.H("div",{class:"yt-list-item-view-model-wiz__title-wrapper"},_.H(_.n,{cond:function(){return p().title},
then:function(U){return _.H(_.i6,{text:U,className:"yt-list-item-view-model-wiz__title"})}})),_.H(_.n,{cond:function(){return p().subtitle},
then:function(U){return _.H(_.i6,{text:U,className:"yt-list-item-view-model-wiz__subtitle"})}}))}})},"Gc");_.X6e=_.$k(function(S){var p=S.data;var U=S.onTap;var Y=S.onSwitch;var L=S.overrideDisabled;S=S.disableHorizontalPadding;var I=_.d(_.Dt(function(){var Q;return((Q=KTG(z()))==null?void 0:Q.switchedOnByDefault)||!1})),V=I.next().value,W=I.next().value;
I=_.d(_.kj(!1,void 0,"ZHBkbb"));var O=I.next().value,D=I.next().value,z=function(){var Q;if(!(Q=p().switchButton)){var J=p();Q=L==null?void 0:L();J={switchOnCommand:J.switchOnCommand,switchOffCommand:J.switchOffCommand,switchedOnByDefault:J.switchedOnByDefault,isDisabled:J.isDisabled,handleOnTapEventInParent:!0,a11yLabelSwitchedOn:J.a11yLabelSwitchedOn,a11yLabelSwitchedOff:J.a11yLabelSwitchedOff};Q!==void 0&&(J.isDisabled=Q);Q={switchButtonViewModel:J}}return Q};
return _.H("switch-list-item-view-model",{class:"ytSwitchListItemViewModelHost"},_.H(_.h5,{data:function(){return{title:p().title,subtitle:p().attributedSubtitle,leadingImage:p().leadingImage,leadingAccessory:p().leadingAccessory,isDisabled:p().isDisabled}},
onTap:function(Q){var J=KTG(z());!J||J.isDisabled||p().ignoreTapUntilCommandCompletes&&O()||(U==null||U(Q),Jow(J,V(),Q,p().ignoreTapUntilCommandCompletes,D),W(!V()),Y==null||Y(V()))},
trailingAccessory:function(){return _.H(_.yP,{data:z},{switchButtonViewModel:function(Q){return _.H(bqQ,{data:Q.data,parentActive:V,handleOnTapEventInParent:!!U})}})},
disableHorizontalPadding:S}))},"Hc");var P0c=_.Oh("DOWNLOAD",{},"Download"),ZqE=_.Oh("DELETE_FROM_DOWNLOADS",{},"Delete from downloads"),sCI=_.Oh("RETRY",{},"Retry"),eJI=_.Oh("PAUSE_DOWNLOADING",{},"Pause downloading"),gWc=_.Oh("RESUME_DOWNLOAD",{},"Resume download"),bdw={text:P0c,iconType:"OFFLINE_DOWNLOAD",videoAction:"ACTION_ADD",playlistAction:"ACTION_ADD"},hl={text:ZqE,iconType:"DELETE",videoAction:"ACTION_REMOVE",playlistAction:"ACTION_REMOVE"},Gid={text:sCI,iconType:"OFFLINE_DOWNLOAD",videoAction:"ACTION_RETRY",playlistAction:"ACTION_REMOVE"},
jvd={text:eJI,iconType:"OFFLINE_PAUSE",videoAction:"ACTION_PAUSE",playlistAction:"ACTION_PAUSE"},roN={text:gWc,iconType:"OFFLINE_DOWNLOAD",videoAction:"ACTION_RESUME",playlistAction:"ACTION_RESUME"};var uxP=_.$k(function(S){var p=function(){var W=S.data();W=_.aF(W.rendererContext);var O;return(O=_.b(W,_.MB))==null?void 0:O.videoId},U=_.Xc(function(W){var O=p(),D=FTr(S.data());
return O?_.Z4(W,O):D?_.sc(W,D):"TRANSFER_STATE_UNKNOWN"}),Y=_.Ty(_.e2e,p),L=_.Xc(function(W){return _.R2X(W,p(),FTr(S.data()))}),I=function(){return RGw(U(),Y(),_.aF(S.data().rendererContext),!!FTr(S.data()))},V=function(){return L()!=="ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"};
return _.H("yt-download-list-item-view-model",{class:"ytDownloadListItemViewModelHost",hidden:V},_.H(_.n,{cond:function(){return!V()},
then:function(){return _.H(_.n,{cond:I,then:function(W){return _.H(_.KU,{each:W},function(O){return _.H(_.h5,{data:O,isCompact:S.isCompact,isMenuItem:S.isMenuItem,inPopup:S.inPopup,disableHorizontalPadding:S.disableHorizontalPadding})})}})}}))},"Ic");
uxP.idomCompat=!0;_.w6c=_.$k(function(S){var p=S.data;var U=S.isCompact;var Y=S.hideSelectionTextChevron;var L=S.inPopup;var I=S.isOverlay;var V=S.disableHorizontalPadding;var W=function(){return XZe(p())&&(L==null?void 0:L())};
S={};return _.H("yt-list-view-model",{class:_.VD("yt-list-view-model-wiz",(S["yt-list-view-model-wiz--kaios-spat-nav"]=h3w&&document.body.hasAttribute("spatial-navigation-enabled")&&document.body.getAttribute("spatial-navigation-enabled")==="true",S)),role:function(){return W()?"menu":"list"},
style:_.zw({"max-height":function(){var O,D=(O=p())==null?void 0:O.visibleElementCount;if(D)return ZdN(p())?(D+.5)*48+"px":(D+.5)*40+"px"}})},_.H(_.yP,{data:function(){return p().listItems}},{listItemViewModel:function(O){return _.H(_.h5,{data:O.data,
isMenuItem:W,isCompact:U,hideSelectionTextChevron:Y,inPopup:L,isOverlay:I,disableHorizontalPadding:V})},
downloadListItemViewModel:function(O){return _.H(uxP,{data:O.data,isMenuItem:W,isCompact:U,inPopup:L,disableHorizontalPadding:V})},
switchListItemViewModel:function(O){return _.H(_.X6e,{data:O.data,disableHorizontalPadding:V})}}))},"Jc");
_.w6c.idomCompat=!0;var lJm=_.$k(function(S){var p=S.data;var U=S.isOverlay;S={};return _.H("yt-course-perks-view-model",{class:_.VD("ytwCoursePerksViewModelHost",(S.ytwCoursePerksViewModelHostOverlay=U,S))},_.H("h3",{class:"ytwCoursePerksViewModelHostPerksTitle"},_.H(_.i6,{text:function(){return p().title}})),_.H("div",null,_.H(_.n,{cond:function(){return p().perks},
then:function(Y){return _.H(_.w6c,{data:function(){return{listItems:Y()}},
isCompact:!0,isOverlay:U})}})))},"Kc");_.qm(lJm,"yt-course-perks-view-model",{props:{data:_.BX,isOverlay:_.BX}});_.qm(_.$k(function(S){var p=S.data;return _.H("yt-course-progress-view-model",{class:"ytwCourseProgressViewModelHost"},_.H("h3",{class:"ytwCourseProgressViewModelHostProgressTitle"},_.H(_.i6,{text:function(){return p().title}})),_.H("p",{class:"ytwCourseProgressViewModelHostProgressSubtitle"},_.H(_.i6,{text:function(){return p().progressSummary}})),_.H("div",{class:"ytwCourseProgressViewModelHostProgressBar"},_.H("div",{class:"ytwCourseProgressViewModelHostProgressBarFill",
style:_.zw({width:function(){return p().progressPercentage*100+"%"}})})))},"Lc"),"yt-course-progress-view-model",{props:{data:_.x2}});var aJl=_.$k(function(S){var p={};return _.H("yt-progress-view-model",{class:_.VD("ytwProgressViewModelHost",(p.ytwProgressViewModelHostOverlay=_.os(S.isOverlay,!1),p))},_.H(_.n,{cond:function(){return S.data().progressSummary},
then:function(U){return _.H("p",{class:"ytwProgressViewModelHostProgressSubtitle"},_.H(_.i6,{text:U}))}}),_.H("div",{class:"ytwProgressViewModelHostProgressContainer"},_.H(_.n,{cond:function(){return S.data().leadingLabel},
then:function(U){return _.H("p",{class:"ytwProgressViewModelHostProgressLeadingLabel"},_.H(_.i6,{text:U}))}}),_.H("div",{class:"ytwProgressViewModelHostProgressBar"},_.H("div",{class:"ytwProgressViewModelHostProgressBarFill",
style:function(){return"width: "+(S.data().progressPercentage||0)*100+"%"}}))))},"Mc");var RI=_.$k(function(S){var p=S.starNumber;var U=S.data;var Y=function(){var L;return((L=U())==null?void 0:L.rating)||0};
return _.H(_.n,{cond:function(){return p()},
then:function(L){return _.H(_.r7,null,_.H(_.bb,{when:function(){return Y()>=L()-.25}},function(){return _.H("div",{class:"ytStarRatingViewModelHostStar"},_.H(_.QD,{icon:"STAR_FILLED"}))}),_.H(_.bb,{when:function(){return Y()>=L()-.75}},function(){return _.H("div",{class:"ytStarRatingViewModelHostStar"},_.H(_.QD,{icon:"STAR_HALF"}))}),_.H(_.jn,null,function(){return _.H("div",{class:"ytStarRatingViewModelHostStar"},_.H(_.QD,{icon:"STAR_BORDER"}))}))}})},"Nc"),fJQ=_.$k(function(S){S=S.data;
return _.H("yt-star-rating-view-model",{class:"ytStarRatingViewModelHost"},_.H(RI,{starNumber:1,data:S}),_.H(RI,{starNumber:2,data:S}),_.H(RI,{starNumber:3,data:S}),_.H(RI,{starNumber:4,data:S}),_.H(RI,{starNumber:5,data:S}))},"Oc");_.qm(_.$k(function(S){var p=_.vT(S,{}).data;return _.H("yt-course-ratings-view-model",{class:"ytCourseRatingsViewModelHost"},_.H("h3",{class:"ytCourseRatingsViewModelHostRatingTitle"},_.H(_.i6,{text:function(){var U;return(U=p())==null?void 0:U.title}})),_.H("div",{class:"ytCourseRatingsViewModelHostRatingContainer"},_.H(_.n,{cond:function(){return p().starProgressViewModels},
then:function(U){return _.H("div",{class:"ytCourseRatingsViewModelHostProgressBarContainer"},_.H(_.yP,{data:U},{progressViewModel:aJl}))}}),_.H("div",{class:"ytCourseRatingsViewModelHostStarRatingAndRatingDataContainer"},_.H("p",{class:"ytCourseRatingsViewModelHostAverageRatingLabel"},_.H(_.i6,{text:function(){var U;
return(U=p())==null?void 0:U.averageRatingLabel}})),_.H(_.n,{cond:function(){return p().zeroStateText},
then:function(U){return _.H("div",{class:"ytCourseRatingsViewModelHostZeroStateText"},_.H(_.i6,{text:U}))}}),_.H(_.n,{cond:function(){return p().starRatingViewModel},
then:function(U){return _.H("div",{class:"ytCourseRatingsViewModelHostStarRatingContainer"},_.H(_.yP,{data:U},{starRatingViewModel:fJQ}))}}),_.H("p",{class:"ytCourseRatingsViewModelHostTotalRatingsCountLabel"},_.H(_.i6,{text:function(){var U;
return(U=p())==null?void 0:U.totalRatingsCountLabel}})))))},"Pc"),"yt-course-ratings-view-model",{props:{data:_.BX}});var C0t;C0t={animationConfig:{autoplay:!0,loop:!0,renderer:"svg",name:"LEARNING_JOURNEY_LOADER_ICON",path:"https://www.gstatic.com/youtube/img/lottie/youchat_animations/progress_indicator_solo_v1.json"}};_.x5m=_.$k(function(S){var p=_.vH(),U=_.YO();_.hW(function(){requestAnimationFrame(function(){var L;(L=U.lottieEl)==null||L.addEventListener("DOMLoaded",function(){var I;(I=S.onLottieLoaded)==null||I.call(S)})});
var Y=S.data().browseEndpoint;Y&&_.wx(Y)});
return _.H("yt-learning-journey-loader-view-model",{class:_.VD("learningJourneyLoaderViewModelHost",S.className),"data-target-id":function(){var Y;return((Y=S.data)==null?void 0:Y.call(S).targetId)||""},
el:p},_.H(_.Tw,{className:_.VD("learningJourneyLoaderViewModelLoader",S.className),animationName:function(){return C0t.animationConfig.name},
data:C0t,animationRef:U}))},"Qc");_.qm(_.x5m,"yt-learning-journey-loader-view-model",{props:{data:_.x2,className:_.BX,onLottieLoaded:_.BX}});_.EWw=_.$k(function(S){var p=function(){return S.data()},U=_.d(_.kj(-1,void 0,"vug48")),Y=U.next().value,L=U.next().value,I=function(z){return Y()===z},V=function(z){return p().correctAnswerIndex===z},W=function(){return Y()!==-1},O=function(){return Y()===p().correctAnswerIndex},D=_.kL(function(){L(-1);
return!1});
return _.H("learning-journey-quiz-view-model",{class:_.VD("learningJourneyQuizViewModelHost",S.className),style:_.zw({background:function(){return XN(RA(p())).backgroundColor}})},_.H(_.n,{cond:function(){return!!p().video},
then:function(){return _.H("div",{class:"learningJourneyQuizViewModelHostVideoContainer",style:_.zw({background:function(){return XN(RA(p())).videoBackgroundColor}})},_.H(_.yP,{data:function(){return p().video}},{lockupViewModel:function(z){return _.H(_.ch,{data:z.data,
containerType:1,className:"learningJourneyQuizViewModelHostVideoLockup"})}}))}}),_.H("div",{class:"learningJourneyQuizViewModelHostQuizContainer"},_.H("div",{class:"learningJourneyQuizViewModelHostQuiz"},_.H("div",{class:"learningJourneyQuizViewModelHostQuizContent"},_.H("div",{class:"learningJourneyQuizViewModelHostQuizHeader"},_.H("div",{class:"learningJourneyQuizViewModelHostQuizHeaderText",
style:_.zw({color:function(){return XN(RA(p())).primaryTextColor}}),
"client-ve-type":function(){var z=W(),Q=O();return z?Q?264685:264684:264683}},_.H(_.i6,{text:function(){var z=p(),Q=W(),J=O();
return Q?J?z.successTitle:z.failureTitle:z.questionHeaderText}})),_.H("div",{class:"learningJourneyQuizViewModelHostQuizHeaderButtons"},_.H(_.n,{cond:W,
then:function(){return _.H("div",{id:"resetButton",class:"learningJourneyQuizViewModelHostQuizHover","on:click":D,role:"button","aria-label":"Reset","tab-index":"0","client-ve-type":264687},_.H("svg",{xmlns:"http://www.w3.org/2000/svg",height:"24",width:"24",viewBox:"0 -960 960 960",style:_.zw({fill:function(){return XN(RA(p())).primaryTextColor}})},_.H("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"})))}}),
_.H(_.yP,{data:function(){return p().overflowMenu}},{buttonViewModel:function(z){return _.H(_.PG,{data:z.data})}}))),_.H("div",{class:"learningJourneyQuizViewModelHostQuizSubheader",
style:_.zw({color:function(){return XN(RA(p())).secondaryTextColor}}),
"client-ve-type":264688},_.H(_.i6,{text:function(){var z=p();return W()?z.explanationText:z.questionSubheaderText}}))),_.H("div",{class:"learningJourneyQuizViewModelHostQuizOptionsList"},_.H(_.KU,{each:function(){return p().optionsData||[]}},function(z,Q){var J={};
return _.H("div",{class:_.VD("learningJourneyQuizViewModelHostQuizOptions",(J.learningJourneyQuizViewModelHostQuizHover=function(){return!W()},J.learningJourneyQuizViewModelHostQuizOptionSelectedCorrect=function(){return O()&&I(Q())},J.learningJourneyQuizViewModelHostQuizOptionSelectedIncorrect=function(){return!O()&&I(Q())},J.learningJourneyQuizViewModelHostQuizOptionNotSelected=function(){return W()&&!I(Q())},J)),
"on:click":_.kL(function(){if(W())return!1;L(Q());return!1}),
style:_.zw({background:function(){return W()&&I(Q())?"":XN(RA(p())).optionColor}}),
role:"button","aria-disabled":W,"tab-index":"0","client-ve-type":264686},_.H(_.n,{cond:W,then:function(){return _.H("svg",{xmlns:"http://www.w3.org/2000/svg",height:"16",width:"16",viewBox:function(){var K=Q();return V(K)?"0 0 24 24":"0 -960 960 960"},
class:"learningJourneyQuizViewModelHostQuizOptionIcon",style:_.zw({fill:function(){return XN(RA(p())).primaryTextColor}})},_.H("path",{d:function(){var K=Q();
return V(K)?"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"}}))}}),_.H(_.i6,{text:z.optionText}))})))))},"Rc");
_.EWw.idomCompat=!0;_.qm(_.EWw,"learning-journey-quiz-view-model",{props:{data:_.x2,className:_.x2}});var m5H=_.$k(function(S){var p=_.vH();_.C6(p,function(){return S.data().rendererContext});
var U=_.vT(S,{palette:void 0,isLastItem:!1}),Y=U.palette,L=U.isLastItem,I=function(){return S.data().isHighlighted},V=function(){var D;
return svR((D=Y())==null?void 0:D.iconDisabledColor)},W=function(){var D;
return svR((D=Y())==null?void 0:D.primaryTitleColor)},O=function(){var D;
return svR((D=Y())==null?void 0:D.secondaryTitleColor)};
U={};return _.H("yt-macro-marker-list-item-view-model",{class:"ytMacroMarkerListItemViewModelHost",el:p},_.H(_.yP,{data:function(){return S.data().thumbnail}},{thumbnailViewModel:_.vh}),_.H("div",{class:"ytMacroMarkerListItemViewModelMetadataContainer"},_.H("div",{class:_.VD("ytMacroMarkerListItemViewModelTimeDescription",(U.ytMacroMarkerListItemViewModelHighlighted=I,U)),
style:_.zw({"background-color":function(){return I()?W():V()},
color:function(){return I()?"":O()}})},_.H(_.i6,{text:function(){return S.data().timestamp}})),_.H("div",{class:"ytMacroMarkerListItemViewModelTimeLine",
style:_.zw({"background-color":function(){return L()?"transparent":V()}})}),_.H("h4",{class:"ytMacroMarkerListItemViewModelTitle",
style:function(){return"color:"+(I()?W():O())}},_.H(_.i6,{text:function(){return S.data().title}}))))},"Sc");_.FY=_.$k(function(S){function p(Tj){l("transform:translateX("+(_.g7("HTML_DIR")==="rtl"?"":"-")+Tj+"px)")}
function U(Tj){return Math.min(Math.max(Tj,0),Z()-q())}
function Y(){var Tj=m()+Zw();return L()?(Math.round(q()/Tj)||1)*Tj:0}
var L=function(){return S.data().items||[]},I=function(){return S.data().previousButton},V=function(){return S.data().nextButton},W=function(){var Tj,Ut;
return(Ut=(Tj=S.disableArrows)==null?void 0:Tj.call(S))!=null?Ut:!1},O=function(){var Tj;
return!((Tj=S.forceNarrowLayout)==null||!Tj.call(S))},D=_.vH(),z=_.vH(),Q=_.d(_.kj(0,void 0,"D4aXB")),J=Q.next().value,K=Q.next().value;
Q=_.d(_.kj(0,void 0,"GQlHRc"));var G=Q.next().value,X=Q.next().value,Z=G;G=_.d(_.kj("",void 0,"Bw1Yz"));Q=G.next().value;var l=G.next().value;G=_.d(_.kj(0,void 0,"buTjVb"));var a=G.next().value,N=G.next().value,m=a;G=_.d(_.kj(0,void 0,"GIAWN"));a=G.next().value;var A=G.next().value,q=a;G=_.d(_.kj(!1,void 0,"cenvwc"));var TG=G.next().value,Je=G.next().value;G=_.d(_.kj(0,void 0,"LSY2Ub"));a=G.next().value;var GG=G.next().value,Zw=a;G=_.d(_.kj(0,void 0,"oS46jc"));var Ru=G.next().value,sX=G.next().value,
mq=function(){var Tj,Ut=(Tj=S.data())==null?void 0:Tj.responsiveContainerConfiguration,Ww,kA;return Ut?Vrq(Ut==null?void 0:Ut.responsiveSize):(kA=(Ww=S.sizing)==null?void 0:Ww.call(S))!=null?kA:"STANDARD"};
G=_.nS(function(){return!W()&&J()>0},void 0,"KINjJe");
a=_.nS(function(){return!W()&&J()<Z()-q()},void 0,"Ea00Ib");
var au=function(){K(U(J()-Y()));p(J())},XI=function(){K(U(J()+Y()));
p(J())},nE=function(){D.value!==null&&Hw()},ut;
_.FM(function(){Hw();window.ResizeObserver?(ut=new ResizeObserver(_.OC(nE,0)),ut.observe(D.value)):window.addEventListener("resize",nE)});
_.FG(function(){if(window.ResizeObserver){var Tj;(Tj=ut)==null||Tj.disconnect()}else window.removeEventListener("resize",nE)});
var Hw=function(){var Tj=D.value.clientWidth,Ut=S.includeMargin!==void 0?S.includeMargin():!1,Ww;var kA=S.hasPeek!==void 0?S.hasPeek():!((Ww=S.data())==null||!Ww.hasPeek);Tj=_.oF({containerWidth:Tj,hasPeek:kA,sizing:mq(),marginSettings:Ut?O()?4:1:0});GG(Tj.gutter);sX(Tj.margin);N(Tj.itemWidth);Je(Tj.maxContainerWidth<528||O());A(Tj.maxContainerWidth);L()&&X((Tj.itemWidth+Tj.gutter)*L().length-Tj.gutter)};
return _.H("horizontal-shelf-view-model",{class:_.VD("ytwHorizontalShelfViewModelHost",S.className),el:D},_.H(_.n,{cond:function(){var Tj;return S.data().header&&!((Tj=S.horizontalShelfExperiments)==null?0:Tj.call(S).hideHeader)},
then:function(){return _.H("div",{class:"ytwHorizontalShelfViewModelHeader",style:_.zw({width:function(){return q()+"px"},
padding:function(){return"0 "+Ru()+"px"}})},_.H(_.yP,{data:function(){return S.data().header}},{sectionHeaderViewModel:function(Tj){return _.H(_.Yh,{data:Tj.data,
disableHorizontalPadding:!0,forceSmallLayout:TG,useResponsiveLayout:!0})}}))}}),_.H("div",{class:"ytwHorizontalShelfViewModelOuterContainer",
style:_.zw({"margin-top":function(){var Tj,Ut=S.data().header&&!((Tj=S.horizontalShelfExperiments)==null?0:Tj.call(S).hideHeader),Ww;return(((Ww=S.ensureMarginTop)==null?0:Ww.call(S))&&!Ut?12:0)+"px"}})},_.H("div",{class:"ytwHorizontalShelfViewModelHorizontalContainer",
style:_.zw({width:function(){return q()+"px"},
padding:function(){return"0 "+Ru()+"px"},
overflow:function(){return W()?"auto":"hidden"}})},_.H("div",{class:"ytwHorizontalShelfViewModelItems",
el:z,style:Q},_.H(_.yP,{data:L},{macroMarkerListItemViewModel:function(Tj,Ut){return _.H("div",{style:_.zw({width:function(){return m()+"px"},
"margin-right":function(){return(Ut()===L().length-1?0:Zw())+"px"}})},_.H(m5H,{data:Tj.data,
palette:_.os(S.palette),isLastItem:function(){return Ut()===L().length-1}}))},
lockupViewModel:function(Tj,Ut){var Ww=Tj.data;return _.H("div",{style:_.zw({width:function(){return m()+"px"},
"margin-right":function(){return(Ut()===L().length-1?0:Zw())+"px"}})},_.H(_.ch,{data:Ww,
containerType:4,sizing:mq,protectBackground:S.protectBackground,thumbnailFixedWidth:function(){return eGe(Ww())+"px"},
thumbnailTargetWidth:function(){return eGe(Ww())}}))}}))),_.H(_.n,{cond:G,
then:function(){return _.H("div",{class:"ytwHorizontalShelfViewModelLeftArrow"},_.H(_.yP,{data:I},{buttonViewModel:function(Tj){return _.H(_.PG,{data:Tj.data,onClick:au})}}))}}),_.H(_.n,{cond:a,
then:function(){return _.H("div",{class:"ytwHorizontalShelfViewModelRightArrow"},_.H(_.yP,{data:V},{buttonViewModel:function(Tj){return _.H(_.PG,{data:Tj.data,onClick:XI})}}))}})))},"Tc");
_.FY.idomCompat=!0;var oWm=_.$k(function(S){var p=function(){return S.data().targetId||""},U=function(){var G;
return((G=S.data())==null?void 0:G.expansionEntityKey)||""},Y=_.Ty(_.L9e,U),L=!0,I=function(){var G;
return((G=Y())==null?void 0:G.value)===p()},V=function(G){_.m_(_.WG("stringEntity",U(),{key:U(),
value:G?p():""}))};
_.hW(function(){L=!1;S.data().isExpanded&&V(!0)});
var W=function(){if(I()){var G=!0;S.onCollapse!==void 0&&(G=S.onCollapse());G&&V(!1)}else V(!0)},O=_.kL(W),D=function(){var G;
return(((G=S.accordionStyle)==null?void 0:G.call(S))||"ACCORDION_VIEW_MODEL_STYLE_UNSPECIFIED")==="ACCORDION_VIEW_MODEL_STYLE_MINI"},z=_.vH(),Q=function(){var G,X;
return(X=(G=_.b(S.data().rendererContext,_.Hj))==null?void 0:G.label)!=null?X:""},J={},K={};
return _.H("yt-accordion-item-view-model",{class:_.VD("ytAccordionItemViewModelHost",S.className,(J.ytAccordionItemViewModelExpanded=function(){return I()},J.ytAccordionItemViewModelHidden=function(){var G;
return(G=S.hideIfNotExpanded)==null?void 0:G.call(S)},J.ytAccordionItemViewModelMini=D,J)),
"data-target-id":p},_.H("div",{class:"ytAccordionItemViewModelContainer"},_.H("div",{class:"ytAccordionItemViewModelLeftSection","on:click":O,title:Q},_.H(_.i6,{text:function(){return S.data().title},
className:"ytAccordionItemViewModelLabel",ariaLabel:Q})),_.H("div",{class:"ytAccordionItemViewModelRightSection"},_.H(_.yP,{data:function(){return I()?S.data().expandButton:S.data().collapseButton}},{buttonViewModel:function(G){return _.H(_.PG,{data:G.data,
className:"ytAccordionItemViewModelToggleButton",onClick:W})}}))),_.H("div",{class:"ytAccordionItemViewModelContainer"},_.H("div",{class:_.VD("ytAccordionItemViewModelContent",(K.ytAccordionItemViewModelExpandedSubtitle=function(){return I()},K)),
el:z,style:_.zw({"max-height":function(){return L?"auto":I()?z.value.scrollHeight+"px":"0"}})},_.H(_.n,{cond:function(){return!D()},
then:function(){return _.H(_.i6,{text:function(){return S.data().description},
className:"ytAccordionItemViewModelSubtitle"})}}),_.H(_.yP,{data:function(){return S.data().content}},{horizontalShelfViewModel:function(G){return _.H(_.FY,{data:G.data,
className:"ytAccordionItemViewModelLockupShelf",hasPeek:!0})}}))))},"Uc");_.vWd=_.$k(function(S){var p=_.d((0,_.biQ)(S.data)).next().value,U=function(){return S.data().style||"ACCORDION_VIEW_MODEL_STYLE_UNSPECIFIED"},Y=function(){return U()==="ACCORDION_VIEW_MODEL_STYLE_MINI"},L=_.d(_.kj(!0,void 0,"FVec2e")),I=L.next().value,V=L.next().value,W=function(){return Y()&&I()},O=function(){return{type:"tonal",
style:"mono",state:"active",size:"XS",iconPosition:"icon-only",onTap:function(){V(!I())}}},D=_.kL(function(){p().onTitleTap&&_.wx(p().onTitleTap||{})});
L={};return _.H("yt-accordion-view-model",{class:_.VD("ytAccordionViewModelHost",(L.ytAccordionViewModelMinimized=function(){return W()},L)),
"data-target-id":function(){return S.data().targetId||""}},_.H(_.n,{cond:function(){return Y()||!!p().title},
then:function(){return _.H("div",{class:"ytAccordionViewModelHeader"},_.H("div",{class:"ytAccordionViewModelTitleSection"},_.H("div",{class:"ytAccordionViewModelTitleWrapper"},_.H(_.n,{cond:function(){return!!S.data().headerIcon},
then:function(){return _.H(_.QD,{className:"ytAccordionViewModelHeaderIcon",icon:function(){var z;return(z=S.data().headerIcon)==null?void 0:z.iconType}})}}),_.H("div",{class:"ytAccordionViewModelTitle",
"on:click":D},_.H(_.i6,{className:"ytAccordionViewModelTitleText",text:function(){return p().title}})))),_.H("div",{class:"ytAccordionViewModelButtonSection"},_.H(_.n,{cond:Y,
then:function(){return _.H(BG,{data:O,iconName:function(){return W()?"chevron_down":"chevron_collapse"}})}})))}}),_.H("div",{class:"ytAccordionViewModelContent"},_.H(_.yP,{data:function(){return p().contents}},{accordionItemViewModel:function(z){return _.H(oWm,{data:z.data,
className:"ytAccordionViewModelRow",accordionStyle:U,hideIfNotExpanded:W,onCollapse:function(){return Y()?(V(!0),!1):!0}})}})),_.H("div",null,_.H(_.n,{cond:function(){return!Y()&&(!!p().disclaimerFooter||!!p().footer)},
then:function(){return _.H("div",{class:"ytAccordionViewModelFooter"},_.H(_.i6,{text:function(){return p().disclaimerFooter},
className:"ytAccordionViewModelDisclaimer"}),_.H(_.yP,{data:function(){return S.data().footer}},{flexibleActionsViewModel:function(z){return _.H(GF,{data:z.data,
layout:0})}}))}})))},"Vc");_.qm(_.vWd,"yt-accordion-view-model",{props:{data:_.x2}});_.qm(_.$k(function(S){var p,U=(p=_.tW().resolve(_.AW(_.Cz)))==null?void 0:p(),Y=_.d(_.kj(!1,void 0,"BxguL"));p=Y.next().value;var L=Y.next().value;Y=_.d(_.kj(!0,void 0,"WTCeFf"));var I=Y.next().value,V=Y.next().value,W=_.vH(),O=function(G){L(!0);G={learningJourneyFormData:{query:G}};_.wx(S.data().searchEndpoint||{},{form:{formData:G}});return!1},D=_.kL(function(G){G.target.closest("button-view-model")&&L(!0)});
Y=_.kL(function(){V(W.value.value.length===0)});
var z=_.kL(function(G){if(G.key==="Enter"&&!G.shiftKey&&!I()){var X=G.target;G.preventDefault();O(X.value)}}),Q={},J={},K={};
return _.H("yt-learning-journey-zero-state",{class:"ytLearningJourneyZeroStateHost"},_.H("div",{class:"ytLearningJourneyZeroStateLearningIconContainer"},_.H(_.of,{data:function(){return S.data().learningIcon},
className:"ytLearningJourneyZeroStateLearningIcon",alt:"Learning icon",contentMode:"CONTENT_MODE_CENTER"})),_.H("div",{class:"ytLearningJourneyZeroStateSearchContainer"},_.H("div",{class:"ytLearningJourneyZeroStateSearchBarContainer"},_.H("div",{class:_.VD("ytLearningJourneyZeroStateSearchBar",(Q.ytLearningJourneyZeroStateSearchBarDark=U,Q))},_.H("textarea",{class:_.VD("ytLearningJourneyZeroStateTextInput",(J.ytLearningJourneyZeroStateTextInputDark=U,J)),el:W,"on:keyup":Y,"on:keydown":z,placeholder:"What do you want to learn?",
rows:1,"client-ve-type":264503})),_.H("div",{class:_.VD("ytLearningJourneyZeroStateSearchButtonContainer",(K.ytLearningJourneyZeroStateSearchButtonContainerDark=U,K))},_.H(_.PG,{data:function(){return _.b(S.data().searchButton,_.K6)},
className:"search-button",onClick:function(){return O(W.value.value)},
buttonOverrides:function(){return{disabled:I(),style:U?"mono-inverse":"mono",size:"XL"}}}))),_.H(_.n,{cond:function(){return!!S.data().errorBanner},
then:function(){return _.H("div",{class:"ytLearningJourneyZeroStateErrorBannerContainer"},_.H(_.yP,{data:function(){return S.data().errorBanner}},{alertBannerViewModel:function(G){return _.H(_.JDQ,{data:G.data,
"client-ve-type":264617})}}))}})),_.H(_.n,{cond:p,
then:function(){return _.H("div",{class:"ytLearningJourneyZeroStateLoaderContainer"},_.H(_.yP,{data:function(){return S.data().loader}},{learningJourneyLoaderViewModel:function(G){return _.H(_.x5m,{data:G.data})}}))},
else:function(){return _.H("div",null,_.H(_.n,{cond:function(){return!!S.data().learningJourneyShelf},
then:function(){return _.H("div",{class:"ytLearningJourneyZeroStatePlaylistShelfContainer"},_.H("h2",{class:"ytLearningJourneyZeroStateSuggestedJourneySectionTitle"},function(){return S.data().learningJourneySectionTitle}),_.H(_.yP,{data:function(){return S.data().learningJourneyShelf}},{horizontalShelfViewModel:_.FY}))}}),_.H("div",{class:"ytLearningJourneyZeroStateSuggestedJourneySection"},_.H("h2",{class:"ytLearningJourneyZeroStateSuggestedJourneySectionTitle"},function(){return S.data().suggestedJourneySectionTitle}),
_.H("div",{"on:click":D},_.H(_.yP,{data:function(){return S.data().suggestedJourneyActions}},{flexibleActionsViewModel:function(G){return _.H(GF,{data:G.data,
layout:1})}}))))}}))},"Wc"),"yt-learning-journey-zero-state",{props:{data:_.x2}});var $5m=_.$k(function(S){var p=S.data;return _.H("ytvl-live-leaderboard-item-action-content-view-model",{class:_.VD("ytvlLiveLeaderboardItemActionContentViewModelHost")},_.H(_.i6,{text:function(){var U;return(U=p())==null?void 0:U.actionDescription},
className:"ytvlLiveLeaderboardItemActionContentViewModelActionDescription"}),_.H(_.yP,{data:function(){return p().actionButton}},{buttonViewModel:function(U){return _.H(_.PG,{className:"ytvlLiveLeaderboardItemActionContentViewModelActionButton",
data:U.data})}}))},"Xc");var iqc=_.$k(function(S){var p=S.data;return _.H("ytvl-live-leaderboard-item-channel-content-view-model",{class:_.VD("ytvlLiveLeaderboardItemChannelContentViewModelHost")},_.H(_.i6,{className:"ytvlLiveLeaderboardItemChannelContentViewModelChannelName",text:function(){var U;return(U=p())==null?void 0:U.displayName},
ellipsisTruncate:!0}),_.H(_.yP,{data:function(){return p().badge}},{buttonViewModel:function(U){return _.H(_.PG,{className:"ytvlLiveLeaderboardItemChannelContentViewModelBadge",
data:U.data})}}))},"Yc");_.qm(_.$k(function(S){var p=S.data;return _.H("ytvl-live-leaderboard-item-view-model",{class:"ytvlLiveLeaderboardItemViewModelHost"},_.H("div",{class:"ytvlLiveLeaderboardItemViewModelRankNumberContainer"},_.H(_.i6,{className:"ytvlLiveLeaderboardItemViewModelRankNumber",text:function(){var U;return(U=p())==null?void 0:U.rank}})),_.H("div",{class:"ytvlLiveLeaderboardItemViewModelAvatar"},_.H(_.yP,{data:function(){return p().avatar}},{avatarViewModel:_.bS})),_.H("div",{class:"ytvlLiveLeaderboardItemViewModelContent"},
_.H(_.yP,{data:function(){return p().content}},{liveLeaderboardItemChannelContentViewModel:iqc,
liveLeaderboardItemActionContentViewModel:$5m})),_.H(_.i6,{className:"ytvlLiveLeaderboardItemViewModelPoints",text:function(){var U;return(U=p())==null?void 0:U.points}}))},"Zc"),"ytvl-live-leaderboard-item-view-model",{props:{data:_.x2}});_.qm(_.$k(function(S){var p=S.data;return _.H("ytvl-live-viewer-leaderboard-item-view-model",{class:"ytvlLiveViewerLeaderboardItemViewModelHost"},_.H(_.i6,{className:"ytvlLiveViewerLeaderboardItemViewModelRankNumber",text:function(){var U,Y;return(U=p())==null?void 0:(Y=U.ranking)==null?void 0:Y.rank}}),_.H("div",{class:"ytvlLiveViewerLeaderboardItemViewModelAvatar"},_.H(_.yP,{data:function(){return p().avatar}},{avatarViewModel:_.bS})),_.H(_.i6,{className:"ytvlLiveViewerLeaderboardItemViewModelChannelContent",
text:function(){var U,Y;return(U=p())==null?void 0:(Y=U.channelContent)==null?void 0:Y.channelName}}),_.H(_.i6,{className:"ytvlLiveViewerLeaderboardItemViewModelPoints",
text:function(){var U;return(U=p())==null?void 0:U.points}}))},"$c"),"ytvl-live-viewer-leaderboard-item-view-model",{props:{data:_.x2}});var NGl=_.$k(function(S){S=_.vT(S,{wrapper:!1}).wrapper;return _.H(_.n,{cond:S,then:function(){return _.H("ytw-spinner",{class:"ytWebSpinnerWrapper"},_.H("div",{class:"ytWebSpinnerSpinner"}))},
else:function(){return _.H("ytw-spinner",{class:"ytWebSpinnerSpinner"})}})},"ad");
NGl.idomCompat=!0;var BGe=["QR_CODE_RENDERER_STYLE_WEB_SHORTS_ENGAGEMENT_PANEL"],qmH=_.$k(function(S){var p=S.data;var U=_.vH(),Y=_.nS(function(){return p().command},void 0,"tJY20c");
_.R8(function(){Y()&&_.eV(Y(),{form:{element:U.value}})});
return _.H("div",{el:U,class:"YtQrCodeRendererHostContainer"},_.H(_.n,{cond:function(){return p().qrCodeImage},
then:function(L){return _.H(_.of,{data:L,alt:"",className:"YtQrCodeRendererHostQrImage",useWidth:!1,contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"})},
else:function(){return _.H(_.n,{cond:function(){return p().spinner},
then:function(){return _.H(NGl,null)}})}}),_.H(_.n,{cond:function(){return p().label},
then:function(L){return _.H(_.i6,{text:L,className:"YtQrCodeRendererHostLabel"})}}),_.H(_.n,{cond:function(){return p().labels},
then:function(L){return _.H("div",{class:"YtQrCodeRendererHostLabels"},_.H(_.KU,{each:L},function(I){return _.H(_.i6,{text:I})}))}}))},"cd");_.qm(_.$k(function(S){var p=S.data;var U=_.nS(function(){return p().qrEntityKey},void 0,"joYCxd"),Y=_.nS(function(){return p().deleteEntityOnDismiss},void 0,"x3yAde"),L=_.nS(function(){return p().command},void 0,"dJe1Re"),I=_.Ty(XqR,U);
S=_.nS(function(){return p().qrCodeImage},void 0,"qM5dZe");
var V=_.nS(function(){return p().style&&BGe.includes(p().style)},void 0,"CaNEkf"),W=_.vH();
_.tU(W,{visibilityCallback:function(O){O&&L()&&_.eV(L())},
showOption:{calledOnce:!0,state:"visible"}});_.FM(function(){_.FG(function(){Y()&&U()&&_.xk().dispatch(_.WG("qrCodeEntity",U()))})});
return _.H("yt-qr-code-renderer",{class:"YtQrCodeRendererHost",el:W},_.H(_.n,{cond:V,then:function(){return _.H(_.n,{cond:I,then:function(O){return _.H(qmH,{data:O})}})}}),_.H(_.n,{cond:S,
then:function(O){return _.H(_.of,{data:O,alt:""})}}))},"bd"),"yt-qr-code-renderer",{props:{data:_.x2}});_.ADP=_.$k(function(S){var p=S.data;var U=S.topbarOffset;var Y,L=((Y=_.tW().resolve(_.AW(_.Cz)))==null?void 0:Y())||!1;return _.H("cinematic-container-view-model",{class:"ytCinematicContainerViewModelHost",style:function(){var I=p();var V,W,O=L?(V=I.config)==null?void 0:V.darkThemeBackgroundColor:(W=I.config)==null?void 0:W.lightThemeBackgroundColor;I=O?_.s1(O):void 0;I="background-color: "+I+";";U!==void 0&&(I+="top: -"+U()+"px;");return I},
"aria-hidden":!0},_.H(_.n,{cond:function(){var I,V,W;return!!((I=p().backgroundImageConfig)==null?0:(V=I.image)==null?0:(W=V.sources)==null?0:W.length)},
then:function(){return _.H(_.of,{data:function(){var I;return(I=p().backgroundImageConfig)==null?void 0:I.image},
className:"ytCinematicContainerViewModelBackgroundImage",alt:""})}}),_.H("div",{class:"ytCinematicContainerViewModelBackgroundGradient",
style:function(){return"background: "+gpX(L,p().gradientColorConfig)+";"}}))},"dd");
_.ADP.idomCompat=!0;var XY=_.$k(function(S){var p=S.className;var U=S.data;var Y=S.isOverlay;var L=S.maxLinesOverride;var I=S.useMediumText;S=_.vH();var V=function(){return U().alwaysShowTruncationText},W=function(){return U().truncationText},O=function(){return I!==void 0&&I()?"medium":"small"},D=function(){return Y!==void 0&&Y()?"overlay":"default"},z=function(){var X,Z;
return(Z=(X=_.b(U().rendererContext,_.Hj))==null?void 0:X.label)!=null?Z:""},Q=_.d(_.kj(!1,void 0,"mkuWzb")),J=Q.next().value,K=Q.next().value;
_.C6(S,function(){return U().rendererContext});
Q=_.kL(function(){U().expandOnTap&&K(!J());return!1});
var G={};return _.H("yt-description-preview-view-model",{el:S,class:_.VD("yt-description-preview-view-model-wiz",p,(G["yt-description-preview-view-model-wiz--clickable"]=function(){var X;return!((X=_.b(U().rendererContext,QcG))==null||!X.onTap)},G["yt-description-preview-view-model-wiz--is-overlay"]=Y,G)),
"on:click":Q},_.H(_.n,{cond:function(){return U().description},
then:function(X){return _.H(_.n,{cond:J,then:function(){var Z={};return _.H("div",{class:_.VD("yt-description-preview-view-model-wiz__description",(Z["yt-description-preview-view-model-wiz__description--medium-text"]=I,Z))},_.H(_.i6,{text:X}))},
else:function(){return _.H(rCE,{text:X,alwaysShowTruncationText:V,truncationText:W,maxLines:function(){var Z;return(Z=L==null?void 0:L())!=null?Z:U().maxLines},
textStyle:D,accessibilityLabel:z,textSize:O})}})}}))},"ed");
XY.idomCompat=!0;var tUI=_.$k(function(S){var p=S.data;var U=S.isOverlay;return _.H("channel-info-view-model",{class:"ytwChannelInfoViewModelHost"},_.H("div",{class:"ytwChannelInfoViewModelHostChannelHeader"},_.H(_.yP,{data:function(){return p().header}},{sectionHeaderViewModel:function(Y){return _.H(_.Yh,{data:Y.data,
isOverlay:U})}})),_.H("div",{class:"ytwChannelInfoViewModelHostChannelButtons"},_.H(_.yP,{data:function(){return p().channelInfoButtons}},{flexibleActionsViewModel:GF})),_.H("div",{class:"ytwChannelInfoViewModelHostChannelDescription"},_.H(_.yP,{data:function(){return p().description}},{descriptionPreviewViewModel:function(Y){return _.H(XY,{data:Y.data,
isOverlay:U})}})))},"fd");
tUI.idomCompat=!0;var cDl=_.$k(function(S){var p=S.data;var U={};return _.H("factoid-view-model",{class:_.VD("ytwFactoidViewModelHost",(U.ytwFactoidViewModelHostOverlay=S.isOverlay,U))},_.H(_.i6,{text:function(){return p().value},
className:"ytwFactoidViewModelHostFactoidValue"}),_.H(_.i6,{text:function(){return p().label},
className:"ytwFactoidViewModelHostFactoidLabel"}))},"gd");
cDl.idomCompat=!0;var SUP=_.$k(function(S){var p=S.data;var U=S.isOverlay;return _.H("factoids-row-view-model",{class:"ytwFactoidsRowViewModelHost"},_.H(_.yP,{data:function(){return p().factoids}},{factoidViewModel:function(Y){return _.H(cDl,{data:Y.data,
isOverlay:U})}}))},"hd");
SUP.idomCompat=!0;_.p_m=_.$k(function(S){var p=S.data;var U=S.isOverlay;return _.H("course-metadata-view-model",{class:"ytwCourseMetadataViewModelHost"},_.H(_.yP,{data:function(){return p().items}},{channelInfoViewModel:function(Y){return _.H("div",{class:"ytwCourseMetadataViewModelHostItem"},_.H(tUI,{data:Y.data,
isOverlay:U}))},
coursePerksViewModel:function(Y){return _.H("div",{class:"ytwCourseMetadataViewModelHostItem"},_.H(lJm,{data:Y.data,isOverlay:U}))},
descriptionPreviewViewModel:function(Y){return _.H("div",{class:"ytwCourseMetadataViewModelHostItem"},_.H(XY,{data:Y.data,isOverlay:U}))},
factoidsRowViewModel:function(Y){return _.H("div",{class:"ytwCourseMetadataViewModelHostItem"},_.H(SUP,{data:Y.data,isOverlay:U}))},
progressViewModel:function(Y){return _.H("div",{class:"ytwCourseMetadataViewModelHostItem"},_.H(aJl,{data:Y.data,isOverlay:U}))}}))},"id");var U4t=_.$k(function(S){return _.H("yt-flexible-container",{class:"ytFlexibleContainerHost"},_.H(_.yP,{data:function(){return S.data().content}},{courseMetadataViewModel:function(p){return _.H(_.p_m,{data:p.data,
isOverlay:S.isOverlay})},
progressViewModel:function(p){return _.H(aJl,{data:p.data})}}))},"jd");var YUH=_.$k(function(S){var p=S.data;S=S.className;var U=_.vH(),Y=function(){var I;return _.f6((I=p())==null?void 0:I.rendererContext)},L={};
L=(L["dynamic-text-view-model-wiz"]=!0,L["dynamic-text-view-model-wiz--tappable"]=function(){return Y()},L);
_.C6(U,function(){var I;return(I=p())==null?void 0:I.rendererContext});
return _.H("yt-dynamic-text-view-model",{el:U,role:function(){return Y()?"link":void 0},
tabindex:function(){return Y()?0:void 0},
class:_.VD(S,L)},_.H("h1",{class:"dynamic-text-view-model-wiz__h1","aria-label":function(){var I,V,W;return(W=(V=_.b((I=p())==null?void 0:I.rendererContext,_.Hj))==null?void 0:V.label)!=null?W:""}},_.H(_.i6,{text:function(){return p().text},
userInput:!0})))},"kd");
YUH.idomCompat=!0;_.LkP=_.$k(function(S){var p=S.data;var U=S.isPositionRelative;var Y=_.$v(),L=_.wZu("(max-width: 527.9px)"),I=function(){var V,W;return(W=(V=p())==null?void 0:V.style)!=null?W:"IMAGE_BANNER_STYLE_FULL_BLEED"};
S={};S=(S["yt-image-banner-view-model-wiz"]=!0,S["yt-image-banner-view-model-wiz--inset"]=function(){return lfR(I())},S["yt-image-banner-view-model-wiz--position-absolute"]=function(){return _.Pz(!0)&&!(U==null?0:U())},S["yt-image-banner-view-model-wiz--small-inset"]=function(){return lfR(I())&&L()},S["yt-image-banner-view-model-wiz--tappable"]=function(){var V;
return _.Pz(Y.value)&&_.f6((V=p())==null?void 0:V.rendererContext)},S);
_.C6(Y,function(){var V;return(V=p())==null?void 0:V.rendererContext});
return _.H("yt-image-banner-view-model",{el:Y,class:_.VD(S)},_.H(_.n,{cond:function(){var V;return(V=p())==null?void 0:V.image},
then:function(){return _.H(_.of,{data:function(){return p().image},
alt:"",contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"})}}),_.H(_.yP,{data:function(){var V;
return(V=p())==null?void 0:V.overlays}},{thumbnailHoverOverlayViewModel:Kt}))},"ld");
_.LkP.idomCompat=!0;var M1j;M1j=_.$k(function(S){var p=S.condition;var U=S.content;return _.H(_.n,{cond:p,then:function(){return _.H("div",{class:"page-header-view-model-wiz__scroll-container"},U())},
else:function(){return U()}})},"md");
_.Iij=_.$k(function(S){var p=S.data;var U=S.noPadding;var Y=S.enableBanner;var L=S.cinematicContainerTopbarOffset;var I=S.allowCinematicContainerOverflow;var V=S.displayAsSidebar;var W=S.displayAsPanel;var O=afr(),D=function(){return!!p().image||!!p().animatedImage},z=function(){return!!p().background},Q=function(){return(V==null?0:V())||(W==null?0:W())?1:O()},J=function(){return Q()===1},K=function(){return J()||Q()===2},G=function(){return Q()===4},X=function(){var Ru=p();
var sX=!!p().heroImage;var mq=Q(),au=ffw(p()),XI=V==null?void 0:V(),nE=!Ru.metadata,ut;if(ut=sX?_.b(Ru.heroImage,fEE):_.b(Ru.animatedImage||Ru.image,fEE)){Ru=ut.style;var Hw=ut.layoutMode;if(Hw!=="CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_EXPLICIT_SIZING")if(ut=hVu(Gaw(ut)),sX)sX=u9w(mq,Ru,Hw,ut,XI);else b:if(nE)sX=mq===1?{size:48}:{size:72};else switch(mq){case 1:sX={size:72};break b;case 2:sX={size:120};break b;default:sX=au<4?{size:120}:{size:160}}else sX=void 0}else sX={size:0};return sX};
S={};S=_.VD((S["page-header-view-model-wiz"]=!0,S["page-header-view-model-wiz--no-padding"]=function(){return!(U==null||!U())},S["page-header-view-model-wiz--small-top-padding"]=function(){return J()&&!p().actions||Q()===2&&!(D()||p().heroImage)},S["page-header-view-model-wiz--small-bottom-padding"]=function(){return K()&&!p().actions},S["page-header-view-model-wiz--cinematic-container-overflow-boundary"]=function(){return!(I==null?0:I())},S["page-header-view-model-wiz--display-as-sidebar"]=V,S["page-header-view-model-wiz--display-as-panel"]=
W,S));
var Z={},l=_.VD((Z["page-header-view-model-wiz__page-header-headline"]=!0,Z["page-header-view-model-wiz__page-header-headline--page-header-headline-full-width-hero"]=function(){var Ru;return(Ru=X())==null?void 0:Ru.allowFullWidth},Z)),a=function(){var Ru;
return K()&&!((Ru=X())==null?0:Ru.allowFullWidth)},N=function(){return J()&&(!!p().heroImage||D())&&ffw(p())>0},m=function(){return N()&&(W==null?void 0:W())};
Z={};var A=_.VD((Z["page-header-view-model-wiz__page-header-title"]=!0,Z["page-header-view-model-wiz__page-header-title--page-header-title-large"]=function(){return!N()},Z["page-header-view-model-wiz__page-header-title--page-header-title-medium"]=function(){return N()&&!m()},Z["page-header-view-model-wiz__page-header-title--page-header-title-medium-force-small-layout"]=m,Z["page-header-view-model-wiz__page-header-title--page-header-title-overlay"]=z,Z));
Z={};var q=_.VD((Z["page-header-view-model-wiz__page-header-headline-image"]=!0,Z["page-header-view-model-wiz__page-header-headline-image--page-header-headline-image-hero"]=function(){return!!p().heroImage&&K()},Z));
Z={};var TG=_.VD((Z["page-header-view-model-wiz__page-header-banner-container"]=Y,Z["page-header-view-model-wiz__page-header-banner-container--full-bleed"]=function(){var Ru;return(Y==null?void 0:Y())&&((Ru=_.b(p().banner,_.xvQ))==null?void 0:Ru.style)==="IMAGE_BANNER_STYLE_FULL_BLEED"},Z));
Z={};var Je=_.VD((Z["page-header-view-model-wiz__page-header-content-metadata"]=!0,Z["page-header-view-model-wiz__page-header-content-metadata--page-header-content-metadata-overlay"]=z,Z));Z={};var GG=_.VD((Z["page-header-view-model-wiz__page-header-flexible-actions"]=!0,Z["page-header-view-model-wiz__page-header-flexible-actions--page-header-flexible-actions-margin-top"]=function(){return!!p().metadata||K()},Z["page-header-view-model-wiz__page-header-flexible-actions--page-header-flexible-actions-margin-bottom"]=
function(){return!K()},Z));
Z={};var Zw=_.VD((Z["page-header-view-model-wiz__page-header-attribution"]=!0,Z["page-header-view-model-wiz__page-header-attribution--page-header-attribution-overlay"]=z,Z));return _.H("yt-page-header-view-model",{class:S},_.H(_.n,{cond:z,then:function(){return _.H("div",{class:"page-header-view-model-wiz__page-header-background"},_.H(_.yP,{data:function(){return p().background}},{cinematicContainerViewModel:function(Ru){return _.H(_.ADP,{data:Ru.data,
topbarOffset:L})}}))}}),_.H(M1j,{condition:function(){return!(V==null||!V())},
content:function(){return _.H("div",{class:"page-header-view-model-wiz__page-header-content"},_.H(_.n,{cond:function(){return(Y==null?void 0:Y())&&p().banner},
then:function(){return _.H("div",{class:TG},_.H(_.yP,{data:function(){return p().banner}},{imageBannerViewModel:_.LkP}))}}),_.H("div",{class:l},_.H(_.n,{cond:D,
then:function(){return _.H(_.yP,{data:function(){var Ru;if(!(Ru=p().animatedImage)){Ru=p();if(D()){var sX=Ru=Object.assign({},Ru),mq=Q(),au=ffw(p()),XI=sX.image,nE=_.b(XI,CsP),ut=nE==null?void 0:nE.avatar,Hw=_.b(ut,_.xO);if(XI&&ut&&Hw){switch(mq){case 1:Hw.avatarImageSize="AVATAR_SIZE_XL";break;case 2:Hw.avatarImageSize="AVATAR_SIZE_XXL";break;default:au<4?Hw.avatarImageSize="AVATAR_SIZE_XXL":Hw.avatarImageSize="AVATAR_SIZE_XXXL"}_.y("web_enable_sink_page_header_view_model")&&(_.Rf(ut,_.xO,Object.assign({},
Hw)),nE.avatar=Object.assign({},ut),_.Rf(XI,CsP,Object.assign({},nE)),sX.image=Object.assign({},XI))}}Ru=Ru.image}return Ru}},{contentPreviewImageViewModel:function(Ru){return _.H(_.qf,{data:Ru.data,
className:q,imageSizeConfig:X})},
decoratedAvatarViewModel:function(Ru){return _.H(_.jH,{data:Ru.data,className:q})}})}}),_.H(_.n,{cond:function(){return!!p().heroImage&&!a()},
then:function(){return _.H(_.yP,{data:function(){return p().heroImage}},{contentPreviewImageViewModel:function(Ru){return _.H(_.qf,{data:Ru.data,
className:q,imageSizeConfig:X})}})}}),_.H("div",{class:"page-header-view-model-wiz__page-header-headline-info"},_.H(_.n,{cond:function(){return!!p().heroImage&&a()},
then:function(){return _.H("div",{class:"page-header-view-model-wiz__page-header-headline-image-hero-container"},_.H(_.yP,{data:function(){return p().heroImage}},{contentPreviewImageViewModel:function(Ru){return _.H(_.qf,{data:Ru.data,
className:q,imageSizeConfig:X})}}))}}),_.H(_.yP,{data:function(){return p().title}},{dynamicTextViewModel:function(Ru){return _.H(YUH,{data:Ru.data,
className:A})}}),_.H(_.yP,{data:function(){return p().metadata}},{contentMetadataViewModel:function(Ru){return _.H(_.kkl,{data:Ru.data,
layout:function(){return J()?1:0},
className:Je,isOverlay:z,useMediumText:G})}}),_.H(_.n,{cond:function(){return p().description&&!J()},
then:function(){return _.H(_.yP,{data:function(){return p().description}},{descriptionPreviewViewModel:function(Ru){return _.H(XY,{data:Ru.data,
className:"page-header-view-model-wiz__page-header-description",isOverlay:z,maxLinesOverride:function(){return J()?void 0:1},
useMediumText:G})}})}}),_.H(_.n,{cond:function(){return p().attribution&&!K()},
then:function(){return _.H(_.yP,{data:function(){return p().attribution}},{attributionViewModel:function(Ru){return _.H(Mft,{data:Ru.data,
className:Zw,useMediumText:G})}})}}),_.H(_.n,{cond:function(){return p().actions&&!K()},
then:function(){return _.H(_.yP,{data:function(){return p().actions}},{flexibleActionsViewModel:function(Ru){return _.H(GF,{data:Ru.data,
layout:function(){return Cyk(Q())},
className:GG})}})}}))),_.H("div",{class:"page-header-view-model-wiz__page-header-headline-info"},_.H(_.n,{cond:function(){return p().description&&J()},
then:function(){return _.H(_.yP,{data:function(){return p().description}},{descriptionPreviewViewModel:function(Ru){return _.H(XY,{data:Ru.data,
className:"page-header-view-model-wiz__page-header-description",isOverlay:z,maxLinesOverride:function(){return J()?void 0:1},
useMediumText:G})}})}}),_.H(_.n,{cond:function(){return p().attribution&&K()},
then:function(){return _.H(_.yP,{data:function(){return p().attribution}},{attributionViewModel:function(Ru){return _.H(Mft,{data:Ru.data,
className:Zw,useMediumText:G})}})}}),_.H(_.n,{cond:function(){return p().actions&&K()},
then:function(){return _.H(_.yP,{data:function(){return p().actions}},{flexibleActionsViewModel:function(Ru){return _.H(GF,{data:Ru.data,
layout:function(){return Cyk(Q())},
className:GG})}})}})),_.H("div",{class:"page-header-view-model-wiz__page-header-headline-info"},_.H(_.yP,{data:function(){return p().bottomMetadataFlexibleContainer}},{flexibleContainer:function(Ru){return _.H(U4t,{data:Ru.data,
isOverlay:z})}})))}}))},"nd");
_.Iij.idomCompat=!0;_.qm(_.$k(function(S){var p=_.d(_.kj(!1,void 0,"vVRl3b")),U=p.next().value,Y=p.next().value;return _.H("yt-official-card-view-model",{class:_.VD("ytOfficialCardViewModelHost",S.className),style:_.zw({"background-color":function(){var L,I=iBq((L=S.data())==null?void 0:L.backgroundColor);return I?_.ev(I):void 0}})},_.H(_.yP,{data:function(){return S.data().header}},{pageHeaderViewModel:function(L){return _.H(_.Iij,{data:L.data,
noPadding:!0})}}),_.H(_.yP,{data:function(){return S.data().contents}},{horizontalShelfViewModel:function(L){return _.H(_.FY,{data:L.data,
ensureMarginTop:!0,horizontalShelfExperiments:{hideHeader:!0}})}}),_.H(_.n,{cond:U,
then:function(){return _.H("div",{class:"ytOfficialCardViewModelExpandedContent"},_.H(_.yP,{data:function(){return S.data().expandedContents}},{horizontalShelfViewModel:function(L){return _.H(_.FY,{data:L.data,
sizing:"MINI"})}}),_.H("div",{class:"ytOfficialCardViewModelCollapseButton"},_.H(_.yP,{data:function(){return S.data().collapseButton}},{buttonViewModel:function(L){return _.H(_.PG,{data:L.data,
onClick:function(){Y(!U())}})}})))},
else:function(){return _.H("div",{class:"ytOfficialCardViewModelExpandButton"},_.H(_.yP,{data:function(){return S.data().expandButton}},{buttonViewModel:function(L){return _.H(_.PG,{data:L.data,
onClick:function(){Y(!U())}})}}))}}))},"od"),"yt-official-card-view-model",{props:{data:_.x2,
className:_.x2}});var xid=_.zy({buttonViewModel:_.PG});_.cH(Epd);_.Ls(Epd,"ytw-search-friction-view-model",{propNames:["data"]});_.P8=_.$k(function(S){var p=_.vH(),U,Y=(U=_.tW().resolve(_.AW(_.Cz)))==null?void 0:U();_.R8(function(){var L=p.value;var I=new kGI,V=new Map(I.JSC$7310_sanitizerTable.globalAttributePolicies);V.set("style",{policyAction:4});I.JSC$7310_sanitizerTable=new kZ(I.JSC$7310_sanitizerTable.allowedElements,I.JSC$7310_sanitizerTable.elementPolicies,I.JSC$7310_sanitizerTable.allowedGlobalAttributes,V,I.JSC$7310_sanitizerTable.globallyAllowedAttributePrefixes);var W=["data-time"];if(W===void 0)V=new Set(I.JSC$7310_sanitizerTable.globallyAllowedAttributePrefixes),
V.add("data-"),I.JSC$7310_sanitizerTable=new kZ(I.JSC$7310_sanitizerTable.allowedElements,I.JSC$7310_sanitizerTable.elementPolicies,I.JSC$7310_sanitizerTable.allowedGlobalAttributes,I.JSC$7310_sanitizerTable.globalAttributePolicies,V);else{V=new Set(I.JSC$7310_sanitizerTable.allowedGlobalAttributes);W=_.d(W);for(var O=W.next();!O.done;O=W.next()){O=O.value;if(O.indexOf("data-")!==0)throw Error("qa`"+O);V.add(O)}I.JSC$7310_sanitizerTable=new kZ(I.JSC$7310_sanitizerTable.allowedElements,I.JSC$7310_sanitizerTable.elementPolicies,
V,I.JSC$7310_sanitizerTable.globalAttributePolicies,I.JSC$7310_sanitizerTable.globallyAllowedAttributePrefixes)}V=new Set(I.JSC$7310_sanitizerTable.allowedGlobalAttributes);V.add("class");I.JSC$7310_sanitizerTable=new kZ(I.JSC$7310_sanitizerTable.allowedElements,I.JSC$7310_sanitizerTable.elementPolicies,V,I.JSC$7310_sanitizerTable.globalAttributePolicies,I.JSC$7310_sanitizerTable.globallyAllowedAttributePrefixes);_.Ch(L,_.dGc(I.build(),opw(S.text())));vpw(p.value)});
U={};return _.H("div",null,_.H("markdown-div",{class:_.VD("ytwMarkdownDivHost",(U.ytwMarkdownDivDark=Y,U.ytwMarkdownDivHostSmall=function(){var L;return((L=S.isSmallText)==null?void 0:L.call(S))||!1},U)),
el:p}))},"pd");
_.P8.idomCompat=!0;var d4I=_.$k(function(S){var p=S.imageData;var U=_.os(S.isInList,!1),Y=function(){return U()?{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 _.H("div",{class:"ytwGenAiRichTextViewModelImageContent"},_.H(_.n,{cond:function(){return p().image},
then:function(L){return _.H(_.of,{data:L,alt:function(){return Y().alt},
contentMode:function(){return Y().contentMode},
targetWidth:function(){return Y().targetWidth},
targetHeight:function(){return Y().targetHeight},
className:function(){return Y().className}})}}),_.H("div",{class:"ytwGenAiRichTextViewModelImageMetadata"},_.H("div",{class:_.VD("ytwGenAiRichTextViewModelImageTitle","ytwGenAiRichTextViewModelText")},_.H(_.i6,{text:function(){return p().title}})),_.H(_.KU,{each:function(){var L;
return(L=p().description)!=null?L:[]}},function(L){return _.H("div",{class:"ytwGenAiRichTextViewModelImageDescription"},_.H(ZV,{content:L}))})))},"qd"),V1Q=_.$k(function(S){var p=S.list;
var U=function(){var Y;return(Y=p().items)!=null?Y:[]};
return _.H("div",{class:"ytwGenAiRichTextViewModelListContent"},_.H(_.n,{cond:function(){return p().title},
then:function(Y){return _.H("div",{class:_.VD("ytwGenAiRichTextViewModelListTitle","ytwGenAiRichTextViewModelText")},_.H(_.i6,{text:Y}))}}),_.H(_.n,{cond:function(){return p().style==="GEN_AI_RICH_TEXT_LIST_STYLE_BULLET"},
then:function(){return _.H("ul",{class:"ytwGenAiRichTextViewModelBulletedList"},_.H(_.KU,{each:U},function(Y){return _.H("li",{class:"ytwGenAiRichTextViewModelBulletedListItem"},_.H(ZV,{content:Y,isInList:!0}))}))}}),_.H(_.n,{cond:function(){return p().style==="GEN_AI_RICH_TEXT_LIST_STYLE_NUMBERED"},
then:function(){return _.H("ol",{class:"ytwGenAiRichTextViewModelNumberedList"},_.H(_.KU,{each:U},function(Y){return _.H("li",{class:"ytwGenAiRichTextViewModelNumberedListItem"},_.H(ZV,{content:Y,isInList:!0}))}))}}),_.H(_.n,{cond:function(){return p().style==="GEN_AI_RICH_TEXT_LIST_STYLE_IMAGE"},
then:function(){return _.H("div",{class:"ytwGenAiRichTextViewModelImageList"},_.H(_.KU,{each:U},function(Y){return _.H("div",{class:"ytwGenAiRichTextViewModelListItem"},_.H(ZV,{content:Y,isInList:!0}))}))}}))},"rd"),TDd=_.$k(function(S){var p=S.table;
return _.H("table",{class:"ytwGenAiRichTextViewModelTableContent"},_.H("thead",null,_.H("tr",null,_.H(_.KU,{each:function(){var U,Y;return(Y=(U=p().header)==null?void 0:U.cells)!=null?Y:[]}},function(U){return _.H("th",{class:"ytwGenAiRichTextViewModelTableHeaderCell"},_.H(_.KU,{each:function(){return U.contents}},function(Y){return _.H(ZV,{content:Y})}))}))),_.H("tbody",null,_.H(_.KU,{each:function(){var U;
return(U=p().rows)!=null?U:[]}},function(U){return _.H("tr",null,_.H(_.KU,{each:function(){return U.cells}},function(Y){return _.H("th",{class:"ytwGenAiRichTextViewModelTableCell"},_.H(_.KU,{each:function(){return Y.contents}},function(L){return _.H(ZV,{content:L})}))}))})))},"sd"),ZV=_.$k(function(S){var p=S.content;
var U=_.os(S.isInList,!1),Y=function(){var L,I;return(I=(L=p().contentBlock)==null?void 0:L.contents)!=null?I:[]};
return _.H("div",{class:"ytwGenAiRichTextViewModelRichContent"},_.H(_.n,{cond:function(){return p().text},
then:function(L){return _.H(_.i6,{className:"ytwGenAiRichTextViewModelText",text:L})}}),_.H(_.n,{cond:function(){return p().image},
then:function(L){return _.H(d4I,{imageData:L,isInList:U})}}),_.H(_.n,{cond:function(){return p().list},
then:function(L){return _.H(V1Q,{list:L})}}),_.H(_.n,{cond:function(){return p().contentBlock},
then:function(){return _.H("div",{class:"ytwGenAiRichTextViewModelContentBlock"},_.H(_.KU,{each:Y},function(L){return _.H(ZV,{content:L,isInList:!1})}))}}),_.H(_.n,{cond:function(){return p().table},
then:function(L){return _.H(TDd,{table:L})}}))},"td"),Wkc=_.$k(function(S){var p={};
p=_.W7("ytwGenAiRichTextViewModelHost",(p.ytwGenAiRichTextViewModelGreenLinks=["green_track","underline"].includes(_.Ug("search_overview_link_style")),p));return _.H("gen-ai-rich-text-view-model",{class:p},_.H(ZV,{content:function(){return S.data().content}}))},"ud");_.cH($ie);_.cH(PI);_.OMH=_.$k(function(S){var p=S.data;var U=function(){var X;return((X=p().loadingUi)!=null?X:"OVERVIEW_ANSWER_LOADING_UI_DEFAULT").replace("OVERVIEW_ANSWER_LOADING_UI_","")},Y=function(){return p().isLoading&&(U()==="UNSPECIFIED"||U()==="GHOST_CARD")},L=function(){return!p().isLoading},I=function(){return!!p().content&&!p().contents},V=function(){return!!p().contents},W=function(){return!!p().nextQueryButtons},O=function(){return p().isLoading&&U()==="INVISIBLE"},D=function(){var X,Z;
return(Z=(X=p().headerIcon)==null?void 0:X.iconType)!=null?Z:""},z=function(){var X;
return(X=p().content)!=null?X:""},Q=function(){return!!p().sourcesSection},J,K=!((J=_.tW().resolve(_.AW(_.Cz)))==null||!J()),G=_.nS(function(){var X=[],Z=p().contents;
if(Z)for(var l=0;l<Z.length;l++){var a=_.b(Z&&Z[l],Bld);a&&X.push(a)}return X},void 0,"ycU97e");
_.FM(function(){p().isLoading||_.Fg("so_re",void 0,"search_overview_answer")});
return _.H("ytd-overview-answer-view-model",{class:function(){var X={};X=(X.ytdOverviewAnswerViewModelHost=!0,X.ytdOverviewAnswerViewModelDarkBackground=K&&!O(),X.ytdOverviewAnswerViewModelLightBackground=!K&&!O(),X);return _.W7(X)}},_.H(_.n,{cond:function(){return!O()},
then:function(){return _.H(_.U0,null,_.H("h2",null,_.H("div",{class:"ytdOverviewAnswerViewModelHeader"},_.H(_.n,{cond:D,then:function(X){return _.H("div",{class:"ytdOverviewAnswerViewModelHeaderIcon"},_.H(_.QD,{icon:X}))}}),_.H("div",{class:"ytdOverviewAnswerViewModelHeaderText"},_.H("div",{class:"ytdOverviewAnswerViewModelHeaderTitle"},function(){return p().headerText}),_.H("div",{class:"ytdOverviewAnswerViewModelHeaderSubtext"},_.H(_.i6,{text:function(){return p().headerSubtext}}))))),_.H(_.n,{cond:Y,
then:function(){return $ie()}}),_.H(_.n,{cond:L,
then:function(){return _.H(_.U0,null,_.H(_.n,{cond:I,then:function(){return _.H("div",{class:"ytdOverviewAnswerViewModelText"},_.H(_.P8,{text:z,isSmallText:!0}))}}),_.H(_.n,{cond:V,
then:function(){return _.H("div",{class:"ytdOverviewAnswerViewModelRichText"},_.H(_.KU,{each:G},function(X){return _.H(Wkc,{data:X})}))}}),_.H(_.n,{cond:W,
then:function(){return _.H("div",{class:"ytdOverviewAnswerViewModelNextQueryButtons"},_.H(_.yP,{data:function(){return p().nextQueryButtons}},{buttonViewModel:function(X){return _.H(_.PG,{data:X.data,
className:"ytdOverviewAnswerViewModelNextQueryButton"})},
horizontalShelfViewModel:_.FY}))}}),_.H("div",{class:"ytdOverviewAnswerViewModelSecondaryHeader"},_.H("div",{class:"ytdOverviewAnswerViewModelFeedbackButtons"},_.H(_.n,{cond:function(){return!!_.b(p().likeButtonViewModel,_.Gy)&&!!_.b(p().dislikeButtonViewModel,_.hn)},
then:function(){return _.H("div",{class:"ytdOverviewAnswerViewModelBottomButtonsContainer"},_.H(_.Rr,{data:function(){return _.b(p().likeButtonViewModel,_.Gy)},
disableIconAnimation:!0}),_.H(_.hO,{data:function(){return _.b(p().dislikeButtonViewModel,_.hn)}}))}})),_.H(_.n,{cond:function(){var X;
return(X=p().sourcesSection)==null?void 0:X.headerText},
then:function(X){return _.H("div",{class:"ytdOverviewAnswerViewModelSourcesHeaderText"},_.H(_.i6,{text:X}))}})),_.H(_.n,{cond:Q,
then:function(){return _.H("div",{class:"ytdOverviewAnswerViewModelSources"},_.H(_.yP,{data:function(){var X;return(X=p().sourcesSection)==null?void 0:X.sourcesShelf}},{buttonViewModel:_.PG,
horizontalShelfViewModel:function(X){return _.H(_.FY,{data:X.data,includeMargin:!0,hasPeek:!0})}}))}}),_.H(_.n,{cond:function(){return p().disclaimerText},
then:function(){return _.H("div",{class:"ytdOverviewAnswerViewModelDisclaimer"},_.H(_.i6,{text:function(){return p().disclaimerText},
linkInheritColor:!0}))}}))}}))}}))},"vd");var kzq=_.$k(function(S){var p=S.data;var U=S.active;var Y=_.vH();_.R8(function(){var L,I,V,W=((L=_.tW().resolve(_.AW(_.Cz)))==null?0:L())?(I=p())==null?void 0:I.darkThemeColorPalette:(V=p())==null?void 0:V.lightThemeColorPalette;W&&(W.additiveBackground&&Y.value.style.setProperty("--timestamp-active-background-color",_.ev(W.additiveBackground)),W.textSecondary&&Y.value.style.setProperty("--timestamp-active-color",_.s1(W.textSecondary)))},"KHcbwb");
S={};return _.H("transcript-segment-view-model",{class:_.VD("ytwTranscriptSegmentViewModelHost",(S.ytwTranscriptSegmentViewModelHostActive=U,S.ytwTranscriptSegmentViewModelHostModern=_.y("enable_timeline_view_modern_transcript")||_.y("enable_timeline_view_modern_transcript_fe"),S)),el:Y},_.H(_.n,{cond:function(){var L;return(L=p())==null?void 0:L.timestamp},
then:function(L){var I={};return _.H("div",{class:_.VD("ytwTranscriptSegmentViewModelTimestamp",(I.ytwTranscriptSegmentViewModelTimestampActive=U,I))},L)}}),_.H(_.i6,{text:function(){var L,I,V;
return(V=(L=p())==null?void 0:L.attributedText)!=null?V:{content:(I=p())==null?void 0:I.simpleText}},
linkInheritColor:!0}))},"wd");var HMc=_.$k(function(S){var p=S.data;return _.H("div",{class:"yt-video-attributes-section-view-model__header"},_.H("h3",{class:"yt-video-attributes-section-view-model__title"},function(){return p().headerTitle}),_.H(_.n,{cond:function(){return p().headerSubtitle},
then:function(){return _.H("span",{class:"yt-video-attributes-section-view-model__subtitle"},function(){return p().headerSubtitle})}}))},"xd"),D4q=_.$k(function(S){function p(X){return Math.max(Math.min(X,0),D()-W())}
var U=S.data;var Y,L=_.vH(function(X){if(_.y("web_metadata_carousel_elref_bugfix")){var Z=function(){z(X.clientWidth)};
Z();window.ResizeObserver&&(Y=new ResizeObserver(Z),Y.observe(X))}}),I=_.vH(function(X){O(X.scrollWidth)}),V=_.d(_.kj(0,void 0,"I9GbH"));
S=V.next().value;V=V.next().value;var W=S,O=V;V=_.d(_.kj(0,void 0,"eQAn5b"));S=V.next().value;V=V.next().value;var D=S,z=V;S=_.d(_.kj(0,void 0,"VU3lg"));var Q=S.next().value,J=S.next().value;_.FM(function(){if(!_.y("web_metadata_carousel_elref_bugfix")){var X=function(){O(I.value.scrollWidth);z(L.value.clientWidth)};
X();if(window.ResizeObserver){var Z=new ResizeObserver(X);Z.observe(L.value);_.FG(function(){Z.disconnect()})}}});
_.FG(function(){if(_.y("web_metadata_carousel_elref_bugfix")){var X;(X=Y)==null||X.disconnect()}});
var K=function(){J(p(Q()+D()))},G=function(){J(p(Q()-D()))};
return _.H("yt-video-attributes-section-view-model",null,_.H("div",{class:"yt-video-attributes-section-view-model"},_.H(_.n,{cond:function(){return U().headerTitle},
then:function(){return _.H(HMc,{data:U})}}),_.H("div",{class:_.VD("yt-video-attributes-section-view-model__video-attributes","yt-video-attributes-section-view-model__scroll-container"),
el:L},_.H("div",{class:"yt-video-attributes-section-view-model__video-attributes-container",style:_.zw({transform:function(){var X=Q();_.g7("HTML_DIR")==="rtl"&&(X*=-1);return"translateX("+X+"px)"}}),
el:I},_.H(_.yP,{data:function(){return U().videoAttributeViewModels}},{videoAttributeViewModel:Gkt}))),_.H(_.yP,{data:function(){return U().footerButton}},{buttonViewModel:function(X){return _.H(_.PG,{data:X.data,
className:"yt-video-attributes-section-view-model__footer-button"})}}),_.H(_.n,{cond:function(){return Q()<0&&U().previousButton},
then:function(){return _.H("div",{class:"yt-video-attributes-section-view-model__left-arrow"},_.H(_.yP,{data:function(){return U().previousButton}},{buttonViewModel:function(X){return _.H(_.PG,{data:X.data,
onClick:K})}}))}}),_.H(_.n,{cond:function(){return Q()>D()-W()&&U().nextButton},
then:function(){return _.H("div",{class:"yt-video-attributes-section-view-model__right-arrow"},_.H(_.yP,{data:function(){return U().nextButton}},{buttonViewModel:function(X){return _.H(_.PG,{data:X.data,
onClick:G})}}))}})))},"yd");
D4q.idomCompat=!0;var zut=_.$k(function(S){var p=S.data;var U=S.active;var Y={},L={};return _.H("timeline-item-view-model",{class:_.VD("ytwTimelineItemViewModelHost",(Y.ytwTimelineItemViewModelHostChapterChild=S.chapterChild,Y.ytwTimelineItemViewModelModern=_.y("enable_timeline_view_modern_transcript")||_.y("enable_timeline_view_modern_transcript_fe"),Y))},_.H("div",{class:"ytwTimelineItemViewModelTimestampSection"},_.H("div",{class:_.VD("ytwTimelineItemViewModelTimestamp",(L.ytwTimelineItemViewModelTimestampActive=
U,L))},function(){return p().timestamp})),_.H("div",{class:"ytwTimelineItemViewModelContentItems"},_.H(_.yP,{data:function(){return p().contentItems}},{transcriptSegmentViewModel:function(I){return _.H(kzq,{data:I.data,
active:U})},
videoAttributesSectionViewModel:D4q})))},"zd");var Q_d=_.$k(function(S){var p=S.data;S={};return _.H("timeline-chapter-view-model",{class:_.VD("ytwTimelineChapterViewModelHost")},_.H("div",{class:_.VD("ytwTimelineChapterViewModelTitle",(S.ytwTimelineChapterViewModelModern=_.y("enable_timeline_view_modern_transcript")||_.y("enable_timeline_view_modern_transcript_fe"),S))},function(){return p().title}),_.H(_.yP,{data:function(){return p().contents}},{timelineItemViewModel:function(U){return _.H(zut,{data:U.data,
chapterChild:!0})},
videoAttributesSectionViewModel:function(U){return _.H(D4q,{data:U.data})}}))},"Ad");var nJq=_.$k(function(S){var p=S.data;var U=_.vH(),Y=_.Ty(_.rPE,function(){var I;return(I=p().markersEngagementPanelSyncEntityKey)!=null?I:""}),L=function(){var I;
return((I=Y())==null?void 0:I.activeItemIndex)===p().index};
return _.H("macro-markers-panel-item-view-model",{class:_.VD("ytwMacroMarkersPanelItemViewModelHost",{"is-active":L}),el:U,"on:click":_.kL(function(I){var V,W,O,D,z;return _.T(function(Q){if(Q.nextAddress==1)return I.stopPropagation(),_.l6(_.w8(I),U.value,["A".toString(),"BUTTON".toString()])?Q.return():(V=_.sW(p().onTap))?_.k(Q,_.p6(),2):Q.return();W=Q.yieldResult;D=(O=_.b(V,_.E$))==null?void 0:O.startTimeSeconds;D===void 0||(z=W)!=null&&z.seekTo(D,!0);_.OV(Q)})}),
tabindex:0},_.H(_.yP,{data:function(){var I;return(I=p())==null?void 0:I.item}},{timelineChapterViewModel:function(I){return _.H(Q_d,{data:I.data,
active:L})},
timelineItemViewModel:function(I){return _.H(zut,{data:I.data,active:L})},
videoAttributeViewModel:Gkt}))},"Bd");
nJq.idomCompat=!0;_.qm(nJq,"macro-markers-panel-item-view-model",{props:{data:_.x2}});_.qm(D4q,"yt-video-attributes-section-view-model",{props:{data:_.x2}});var JpQ=_.$k(function(S){var p=function(){var U,Y,L;return(L=(U=S.data().leadingLogoAccessibility)==null?void 0:(Y=U.accessibilityData)==null?void 0:Y.label)!=null?L:""};
return _.H("ytw-fantasy-section-header-view-model",{class:"ytwFantasySectionHeaderViewModelHost"},_.H(_.n,{cond:function(){return S.data().leadingLogo},
then:function(U){return _.H(_.of,{className:"ytwFantasySectionHeaderViewModelLogo",data:U,alt:p})}}),_.H("div",{class:"ytwFantasySectionHeaderViewModelMetadata"},_.H(_.i6,{className:"ytwFantasySectionHeaderViewModelTitle",
text:function(){return S.data().title}}),_.H(_.i6,{className:"ytwFantasySectionHeaderViewModelSubtitle",
text:function(){return S.data().subtitle}})),_.H(_.yP,{data:function(){return S.data().trailingButton}},{buttonViewModel:function(U){return _.H(_.PG,{data:U.data,
className:"ytwFantasySectionHeaderViewModelTrailingButton"})}}))},"Cd");var ypj=_.$k(function(S){var p={};p=_.VD("ytwFantasyTeamViewModelHost",(p.ytwFantasyTeamViewModelCompact=function(){var L;return!((L=S.compact)==null||!L.call(S))},p.ytwFantasyTeamViewModelUser=function(){return S.data().teamOwnerType==="FANTASY_TEAM_OWNER_TYPE_USER_TEAM"},p.ytwFantasyTeamViewModelOpponent=function(){return S.data().teamOwnerType==="FANTASY_TEAM_OWNER_TYPE_OPPONENT_USER_TEAM"},p));
var U=function(){var L,I,V;return(V=(L=S.data().teamLogoAccessibility)==null?void 0:(I=L.accessibilityData)==null?void 0:I.label)!=null?V:""},Y=_.Ty(hhG,function(){return S.data().teamEntityKey});
return _.H("ytw-fantasy-team-view-model",{class:p},_.H(_.n,{cond:function(){return S.data().teamLogo},
then:function(L){return _.H(_.of,{className:"ytwFantasyTeamViewModelLogo",data:L,alt:U})}}),_.H("div",{class:"ytwFantasyTeamViewModelMetadata"},_.H("div",{class:"ytwFantasyTeamViewModelHeader"},_.H(_.i6,{className:"ytwFantasyTeamViewModelScore",
text:function(){var L;return(L=Y())==null?void 0:L.score}}),_.H(_.QD,{icon:function(){var L;
return(L=Y())==null?void 0:L.projectedScoreTrendingIcon},
className:"ytwFantasyTeamViewModelProjectedScoreIcon",size:12,active:!0}),_.H(_.i6,{className:"ytwFantasyTeamViewModelProjectedScore",text:function(){var L;return(L=Y())==null?void 0:L.projectedScore}})),_.H(_.i6,{className:"ytwFantasyTeamViewModelPrimaryText",
text:function(){return S.data().primaryText}}),_.H(_.i6,{className:"ytwFantasyTeamViewModelSecondaryText",
text:function(){return S.data().secondaryText}}),_.H(_.i6,{className:"ytwFantasyTeamViewModelTertiaryText",
text:function(){return S.data().tertiaryText}})),_.H(_.i6,{className:"ytwFantasyTeamViewModelCompactScore",
text:function(){var L;return(L=Y())==null?void 0:L.score}}))},"Dd");_.qm(_.$k(function(S){return _.H("fantasy-league-summary-view-model",{class:"ytwFantasyLeagueSummaryViewModelHost"},_.H("div",{class:"ytwFantasyLeagueSummaryViewModelHeader"},_.H(_.yP,{data:function(){return S.data().summaryHeader}},{fantasySectionHeaderViewModel:JpQ})),_.H(_.yP,{data:function(){return S.data().userTeam}},{fantasyTeamViewModel:ypj}),_.H(_.yP,{data:function(){return S.data().opponentTeam}},{fantasyTeamViewModel:ypj}))},"Ed"),"fantasy-league-summary-view-model",{props:{data:_.x2}});var Kkq=_.$k(function(S){var p=_.vT(S,{shape:{},useCustomTabRenderable:!1}),U=p.shape;p=p.useCustomTabRenderable;var Y=S.customTabRenderable,L=function(){return U().disabled},I=function(){return U().selected},V=function(){return U().title},W=function(){return U().icon},O=_.vH();
S=_.kL(function(Q){var J;if(!L()&&((J=U().aTagConfig)==null?0:J.onclick))U().aTagConfig.onclick(Q);return!1});
var D=_.kL(function(Q){if(Q.key==="Enter"||Q.key==="ArrowUp"||Q.key==="ArrowDown")Q.preventDefault(),O.value.click();return!1}),z={};
return _.H("yt-tab-shape",{class:_.VD("yt-tab-shape-wiz",function(){return U().className},(z["yt-tab-shape-wiz__tab--last-tab"]=function(){return U().isLastTab},z["yt-tab-shape-wiz--host-disabled"]=L,z["yt-tab-shape-wiz--host-clickable"]=!Y,z)),
role:Y?void 0:"tab","aria-selected":I!=null?I:!1,"aria-disabled":L,tabindex:Y?void 0:0,"on:click":S,"on:keydown":D,el:O,"tab-identifier":function(){return U().identifier},
"tab-title":V},_.H(_.n,{cond:p,then:function(){return Y()},
else:function(){var Q={},J={};return _.H(_.U0,null,_.H("div",{class:_.VD("yt-tab-shape-wiz__tab",(Q["yt-tab-shape-wiz__tab--tab-selected"]=I,Q))},_.H(_.n,{cond:W,then:function(K){return _.H(_.QD,{className:"yt-tab-shape-wiz__tab-icon",icon:function(){return K().iconType}})}}),V),_.H("div",{class:_.VD("yt-tab-shape-wiz__tab-bar",(J["yt-tab-shape-wiz__tab-bar--tab-bar-selected"]=I,J))}))}}))},"Fd");
Kkq.idomCompat={callbacks:{customTabRenderable:!0}};_.j_Q=_.$k(function(S){var p=S.shape;S=_.d(_.kj(48,void 0,"r9IBlb"));var U=S.next().value,Y=S.next().value;S=_.d(_.kj(0,void 0,"Bd7rmd"));var L=S.next().value,I=S.next().value,V=function(){return p().tabs},W=_.vH(),O=function(){var D,z;
return(z=(D=V())==null?void 0:D.findIndex(function(Q){return Q.selected}))!=null?z:-1};
_.FM(function(){var D=W.value.querySelectorAll("yt-tab-shape"),z=O()>-1?D[O()]:void 0;_.PA.addJob(function(){Y((z==null?void 0:z.getBoundingClientRect().width)||0)},8,0)});
_.R8(function(){var D=O(),z=_.PA.addJob(function(){var Q,J=((Q=W.value)==null?void 0:Q.querySelectorAll("yt-tab-shape"))||[],K;Y(((K=D>-1?J[D]:void 0)==null?void 0:K.getBoundingClientRect().width)||0);for(K=Q=0;K<D;K++)Q+=J[K].offsetWidth+24;_.g7("HTML_DIR")==="rtl"&&(Q=-Q);I(Q)},8,0);
_.FG(function(){_.PA.cancelJob(z)})});
S={};return _.H("yt-tab-group-shape",{class:_.VD("yt-tab-group-shape-wiz",(S["yt-tab-group-shape-wiz--overflow-hidden"]=function(){return p().isOverflowHidden},S)),
el:W},_.H(_.n,{cond:V,then:function(D){return _.H(_.U0,null,_.H("div",{class:"yt-tab-group-shape-wiz__tabs",role:"tablist"},_.H(_.KU,{each:D},function(z,Q){return _.H(Kkq,{shape:function(){return Object.assign({},z,{isLastTab:Q()===D().length-1})},
customTabRenderable:z.customTabRenderable,useCustomTabRenderable:!!z.customTabRenderable})})),_.H(bMm,{width:U,
sliderOffset:L}))}}))},"Gd");
_.j_Q.idomCompat=!0;var bMm=_.$k(function(S){var p=_.os(S.sliderOffset,0),U=S.width;return _.H("div",{class:"yt-tab-group-shape-wiz__slider",style:_.zw({width:function(){return U()+"px"},
transform:function(){return"translateX("+p()+"px)"}})})},"Hd");var rpc=_.$k(function(S){var p=function(){var I,V,W;return(W=(I=S.data().playerLogoAccessibility)==null?void 0:(V=I.accessibilityData)==null?void 0:V.label)!=null?W:""},U=_.Ty(Rhd,function(){return S.data().playerEntityKey}),Y={};
Y=_.VD("ytwFantasyPlayerViewModelHost",(Y.ytwFantasyPlayerViewModelPlaying=function(){var I;return!((I=U())==null||!I.isPlayerPlaying)},Y.ytwFantasyPlayerViewModelOnField=function(){var I;
return((I=U())==null?void 0:I.playerInGameStatus)==="FANTASY_PLAYER_IN_GAME_STATUS_ON_FIELD"},Y.ytwFantasyPlayerViewModelRedZone=function(){var I;
return((I=U())==null?void 0:I.playerInGameStatus)==="FANTASY_PLAYER_IN_GAME_STATUS_RED_ZONE"},Y));
var L=function(){var I,V,W,O=((I=_.tW().resolve(_.AW(_.Cz)))==null?0:I())?(V=S.data().playerLogoBackgroundColor)==null?void 0:V.darkTheme:(W=S.data().playerLogoBackgroundColor)==null?void 0:W.lightTheme;return O===void 0?"":_.ev(O)};
return _.H("ytw-fantasy-player-view-model",{class:Y},_.H(_.n,{cond:function(){return S.data().playerLogo},
then:function(I){return _.H("div",{class:"ytwFantasyPlayerViewModelLogo"},_.H("div",{class:"ytwFantasyPlayerViewModelLogoRing"},_.H(_.of,{className:"ytwFantasyPlayerViewModelLogoImage",style$:_.zw({"background-color":L}),data:I,alt:p})),_.H("div",{class:"ytwFantasyPlayerViewModelInGameStatus"},_.H(_.QD,{icon:"FOOTBALL_FILLED",className:"ytwFantasyPlayerViewModelInGameStatusIcon"})))}}),_.H("div",{class:"ytwFantasyPlayerViewModelMetadata"},_.H("div",{class:"ytwFantasyPlayerViewModelHeader"},_.H(_.i6,
{className:"ytwFantasyPlayerViewModelName",
text:function(){var I;return(I=S.data())==null?void 0:I.playerNameText}}),_.H(_.i6,{className:"ytwFantasyPlayerViewModelDescription",
text:function(){var I;return(I=S.data())==null?void 0:I.playerDescriptionText}})),_.H("div",{class:"ytwFantasyPlayerViewModelSecondaryText"},_.H(_.i6,{className:"ytwFantasyPlayerViewModelSecondaryItem",
text:function(){var I;return(I=U())==null?void 0:I.gamePeriodText}}),_.H(_.i6,{className:"ytwFantasyPlayerViewModelSecondaryItem",
text:function(){var I;return(I=S.data())==null?void 0:I.opponentTeamText}}),_.H(_.i6,{className:"ytwFantasyPlayerViewModelSecondaryItem",
text:function(){var I;return(I=U())==null?void 0:I.gameStatusText}}),_.H(_.i6,{className:_.VD("ytwFantasyPlayerViewModelSecondaryItem","ytwFantasyPlayerViewModelStatus"),
text:function(){var I;return(I=U())==null?void 0:I.playerStatusText}})),_.H("div",{class:"ytwFantasyPlayerViewModelSecondaryText"},_.H(_.i6,{text:function(){var I;
return(I=U())==null?void 0:I.playerStatsText}}))),_.H(_.i6,{className:"ytwFantasyPlayerViewModelScore",
text:function(){var I;return(I=U())==null?void 0:I.fantasyScore}}))},"Id");var GzI=_.$k(function(S){return _.H("ytw-fantasy-roster-view-model",{class:"ytwFantasyRosterViewModelHost"},_.H(_.n,{cond:function(){return S.data().players},
then:function(p){return _.H(_.yP,{data:p},{fantasyPlayerViewModel:rpc})}}))},"Jd");var hul=_.$k(function(S){var p=_.d(_.Dt(function(){var L;return(L=S.data().selectedTabIdentifierKey)!=null?L:""})),U=p.next().value,Y=p.next().value;
_.hW(function(){var L;(L=S.setSelectedTabSignal)==null||L.call(S,U)});
return _.H("yt-tabbed-view-model",{class:"ytTabbedViewModelHost"},_.H("div",{class:"ytTabbedViewModelTabGroup"},_.H(_.j_Q,{shape:function(){var L=S.data(),I=[],V={tabs:I};if(!L.tabs)return V;L=_.d(L.tabs);for(var W=L.next(),O={};!W.done;O={tabViewModel:void 0},W=L.next())if(O.tabViewModel=_.b(W.value,LSd),O.tabViewModel){var D=W=void 0;I.push({aTagConfig:{onclick:function(z){return function(){var Q;Y((Q=z.tabViewModel.tabIdentifier)!=null?Q:"")}}(O)},
identifier:O.tabViewModel.tabIdentifier,selected:U()===O.tabViewModel.tabIdentifier,title:(D=(W=O.tabViewModel.title)==null?void 0:W.content)!=null?D:""})}return V}})),_.H(_.yP,{data:function(){var L,I=_.d((L=S.data().tabs)!=null?L:[]);
for(L=I.next();!L.done;L=I.next())if((L=_.b(L.value,LSd))&&L.tabIdentifier===U())return L.content}},{fantasyRosterViewModel:GzI}))},"Kd");_.qm(_.$k(function(S){var p=_.d(idr()),U=p.next().value,Y=p.next().value;return _.H("ytw-fantasy-matchup-view-model",{class:"ytwFantasyMatchupViewModelHost"},_.H(_.i6,{className:"ytwFantasyMatchupViewModelTitle",text:function(){return S.data().title}}),_.H(_.n,{cond:function(){return S.data().tabbedViewModel},
then:function(L){return _.H(_.yP,{data:L},{tabbedViewModel:function(I){return _.H(hul,{data:I.data,setSelectedTabSignal:Y})}})}}),_.H(_.n,{cond:function(){var L,I=(L=_.b(S.data().tabbedViewModel,Mqe))==null?void 0:L.tabs;
L=_.b(I==null?void 0:I[0],LSd);I=_.b(I==null?void 0:I[1],LSd);var V=L==null?void 0:L.tabIdentifier;if(U()===V){var W,O;if(!((W=_.b(L==null?void 0:L.content,LCl))==null?0:(O=W.players)==null?0:O.length))return S.data().noUserTeamPlayersText}else{var D,z;if(!((D=_.b(I==null?void 0:I.content,LCl))==null?0:(z=D.players)==null?0:z.length))return S.data().noOpponentTeamPlayersText}},
then:function(L){return _.H(_.i6,{className:"ytwFantasyMatchupViewModelNoPlayersMessage",text:L})}}))},"Ld"),"ytw-fantasy-matchup-view-model",{props:{data:_.x2}});_.qm(_.$k(function(S){return _.H("ytw-fantasy-weekly-matchup-summary-view-model",{class:"ytwFantasyWeeklyMatchupSummaryViewModelHost"},_.H(_.i6,{className:"ytwFantasyWeeklyMatchupSummaryViewModelTitle",text:function(){return S.data().title}}),_.H(_.n,{cond:function(){return S.data().matchupTeamPairs},
then:function(p){return _.H(_.KU,{each:p,keyBy:"INDEX"},function(U){return _.H("div",{class:"ytwFantasyWeeklyMatchupSummaryViewModelPair"},_.H(_.yP,{data:function(){return[U().firstTeam,U().secondTeam]}},{fantasyTeamViewModel:function(Y){return _.H(ypj,{data:Y.data,
compact:!0})}}))})}}))},"Md"),"ytw-fantasy-weekly-matchup-summary-view-model",{props:{data:_.x2}});_.qm(_.$k(function(S){var p=function(){var L,I,V;return(V=(L=S.data().userLogoAccessibility)==null?void 0:(I=L.accessibilityData)==null?void 0:I.label)!=null?V:""},U=function(){var L,I,V;
return(V=(L=S.data().opponentLogoAccessibility)==null?void 0:(I=L.accessibilityData)==null?void 0:I.label)!=null?V:""},Y=_.Ty(GHr,function(){return S.data().entityKey});
return _.H("fantasy-win-probability-view-model",{class:"ytwFantasyWinProbabilityViewModelHost"},_.H("div",{class:"ytwFantasyWinProbabilityViewModelTop"},_.H(_.n,{cond:function(){return S.data().userLogo},
then:function(L){return _.H(_.of,{className:"ytwFantasyWinProbabilityViewModelLogo",data:L,alt:p})}}),_.H("h3",{class:"ytwFantasyWinProbabilityViewModelTitle"},_.H(_.i6,{text:function(){return S.data().title}})),_.H(_.n,{cond:function(){return S.data().opponentLogo},
then:function(L){return _.H(_.of,{className:"ytwFantasyWinProbabilityViewModelLogo",data:L,alt:U})}})),_.H("div",{class:"ytwFantasyWinProbabilityViewModelBottom"},_.H("div",{class:"ytwFantasyWinProbabilityViewModelPercentage"},_.H(_.i6,{text:function(){var L;
return(L=Y())==null?void 0:L.userWinNumberLabel}})),_.H("div",{class:"ytwFantasyWinProbabilityViewModelProbabilityBars"},_.H("div",{class:_.VD("ytwFantasyWinProbabilityViewModelProbabilityBar","ytwFantasyWinProbabilityViewModelProbabilityUserBar"),
style:_.zw({flex:function(){var L,I;return(I=(L=Y())==null?void 0:L.userWinNumber)!=null?I:50}})}),_.H("div",{class:_.VD("ytwFantasyWinProbabilityViewModelProbabilityBar","ytwFantasyWinProbabilityViewModelProbabilityOpponentBar"),
style:_.zw({flex:function(){var L,I;return(I=(L=Y())==null?void 0:L.opponentWinNumber)!=null?I:50}})})),_.H("div",{class:"ytwFantasyWinProbabilityViewModelPercentage"},_.H(_.i6,{text:function(){var L;
return(L=Y())==null?void 0:L.opponentWinNumberLabel}}))))},"Nd"),"fantasy-win-probability-view-model",{props:{data:_.x2}});_.Ry("sharingItemSection","itemSectionRenderer","ytd-item-section-renderer");
var sn=function(){var S=_.w.apply(this,arguments)||this;S.darkerPanels=_.y("web_watch_darker_panels");S.commentsHidePanelButton=!1;S.isWatchGrid=!1;S.continuationShowButton=!1;S.isSearch=!1;S.isConstrainedList=!1;S.isWatch=!1;S.eligibleToSwitchToGrid=!1;S.epRestyle=!1;S.isCarouselInFeed=!0;S.topSpacingZero=!1;S.continuationIsInitialLoad=!0;S.enableSqueezebackPanels=_.y("web_shorts_enable_squeezeback_panels");S.enableAnchoredPanel=_.y("desktop_shorts_v2_anchored_panel");S.actionMap={"yt-item-section-continuation-action":"handleYtItemSectionContinuation",
"yt-item-section-replace-action":"handleYtItemSectionReplace"};S.nextContinuation={continuationType:"itemSectionContinuation",usePost:!0};return S};
_.r(sn,_.w);_.M=sn.prototype;_.M.updateLockupContainerTypes=function(S){if(this.eligibleToSwitchToGrid){var p;(p=Array.from(this.hostElement.querySelectorAll("#contents yt-lockup-view-model")))==null||p.forEach(function(U){U.containerType=S})}};
_.M.getItemsPath=function(){return"data.contents"};
_.M.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents","yt-reload-continuation-items-command-body":"contents","yt-reload-continuation-items-command-header":"header"}};
_.M.configureRendererStamper=function(){return{"data.header":{id:"header",mapping:{commentsHeaderRenderer:{component:"ytd-comments-header-renderer",properties:{engagementPanel:"[[engagementPanel]]",hidePanelButton:"[[commentsHidePanelButton]]"}},sortFilterHeaderRenderer:{component:"ytd-sort-filter-header-renderer",properties:{isPlaylist:"[[isPlaylist]]",isClipList:"[[isClipList]]"}},itemSectionHeaderRenderer:"ytd-item-section-header-renderer",backstagePostThreadRenderer:"ytd-backstage-post-thread-renderer",
chipCloudRenderer:"yt-chip-cloud-renderer",feedFilterChipBarRenderer:"ytd-feed-filter-chip-bar-renderer",macroMarkersPanelItemViewModel:"macro-markers-panel-item-view-model",chipBarViewModel:{component:"chip-bar-view-model",noInjection:!0}}},shownItems:{id:"contents",mapping:{lockupViewModel:{component:"yt-lockup-view-model",params:{className:"ytd-item-section-renderer lockup",force16By9ThumbnailAspectRatio:!0},properties:{sizing:"[[sizing]]",typographyBump:"[[typographyBump]]",thumbnailFixedWidth:"[[thumbnailWidth]]",
lockupExperiments:"[[lockupExperiments]]",containerType:"[[lockupContainerType]]"}},alertBannerViewModel:{component:"yt-alert-banner-view-model"},aboutChannelRenderer:"ytd-about-channel-renderer",activityItemRenderer:"yt-activity-item-renderer",adSlotRenderer:"ytd-ad-slot-renderer",backgroundPromoRenderer:"ytd-background-promo-renderer",backstagePostThreadRenderer:"ytd-backstage-post-thread-renderer",buttonRenderer:"ytd-button-renderer",carouselAdRenderer:"ytd-carousel-ad-renderer",cardItemContainerRenderer:{component:"yt-card-item-container-renderer",
properties:{compact:"[[engagementPanel]]"}},cardItemRenderer:"yt-card-item-renderer",carouselItemRenderer:{component:"ytd-carousel-item-renderer",params:{isCarouselInFeed:!0}},channelAboutFullMetadataRenderer:"ytd-channel-about-metadata-renderer",channelFeaturedContentRenderer:"ytd-channel-featured-content-renderer",channelRenderer:{component:"ytd-channel-renderer",properties:{compactStyle:"[[engagementPanel]]"}},channelSwitcherPageRenderer:"ytd-channel-switcher-page-renderer",channelVideoPlayerRenderer:"ytd-channel-video-player-renderer",
chipCloudRenderer:{component:"yt-chip-cloud-renderer",properties:{isSearch:"[[isSearch]]"}},chipsShelfViewModel:"chips-shelf-view-model",clarificationRenderer:"ytd-clarification-renderer",commentHistoryEntryRenderer:"ytd-comment-history-entry-renderer",commentThreadRenderer:{component:"ytd-comment-thread-renderer",properties:{engagementPanel:"[[engagementPanel]]"}},compactMovieRenderer:"ytd-compact-movie-renderer",compactCourseVideoRenderer:"ytd-compact-video-renderer",compactPlaylistRenderer:"ytd-compact-playlist-renderer",
compactPromotedItemRenderer:"ytd-compact-promoted-item-renderer",compactPromotedVideoRenderer:"ytd-compact-promoted-video-renderer",compactTextPromoRenderer:"ytd-compact-text-promo-renderer",compactVideoRenderer:"ytd-compact-video-renderer",compactRadioRenderer:"ytd-compact-radio-renderer",connectedAppRenderer:"ytd-connected-app-renderer",counterfactualRenderer:"ytd-counterfactual-renderer",destinationShelfRenderer:"ytd-destination-shelf-renderer",didYouMeanRenderer:"yt-did-you-mean-renderer",displayAdRenderer:"ytd-display-ad-renderer",
emergencyOneboxRenderer:"ytd-emergency-onebox-renderer",eomSettingsDisclaimerRenderer:"ytd-eom-settings-disclaimer-renderer",exploratoryResultsRenderer:"ytd-exploratory-results-renderer",faqSectionRenderer:"yt-faq-section-renderer",fantasyLeagueSummaryViewModel:"fantasy-league-summary-view-model",fantasyMatchupViewModel:"ytw-fantasy-matchup-view-model",fantasyWeeklyMatchupSummaryViewModel:"ytw-fantasy-weekly-matchup-summary-view-model",fantasyWinProbabilityViewModel:"fantasy-win-probability-view-model",
feedbackElicitationSingleQuestionRenderer:"ytd-feedback-elicitation-single-question-renderer",feedEntryRenderer:"ytd-feed-entry-renderer",feedNudgeRenderer:"ytd-feed-nudge-renderer",gridRenderer:"ytd-grid-renderer",richGridRenderer:"ytd-rich-grid-renderer",handlesClaimingHeaderRenderer:"ytd-handles-claiming-header-renderer",handlesClaimingUpdateSocialRenderer:"ytd-handles-claiming-update-social-renderer",handlesClaimingVanityInfoRenderer:"ytd-handles-claiming-vanity-info-renderer",handlesClaimingVideoItemRenderer:"ytd-handles-claiming-video-item-renderer",
handlesClaimingTitleImagesSectionRenderer:"ytd-handles-claiming-title-images-section-renderer",handlesClaimingFaqSectionRenderer:"ytd-handles-claiming-faq-section-renderer",hashtagTileRenderer:"ytd-hashtag-tile-renderer",horizontalCardListRenderer:{component:"ytd-horizontal-card-list-renderer",properties:{isSearch:"[[isSearch]]"}},includingResultsForRenderer:"yt-including-results-for-renderer",infoPanelContainerRenderer:"ytd-info-panel-container-renderer",inlineSurveyRenderer:"ytd-inline-survey-renderer",
labsEditRenderer:"ytd-labs-edit-renderer",labsHeaderRenderer:"ytd-labs-header-renderer",labsItemRenderer:"ytd-labs-item-renderer",liveChatHistoryEntryRenderer:"ytd-live-chat-history-entry-renderer",macroMarkersPanelItemViewModel:"macro-markers-panel-item-view-model",messageRenderer:{component:"ytd-message-renderer",properties:{panel:"[[engagementPanel]]"}},miniGameCardViewModel:{component:"ytd-mini-game-card-view-model",properties:{isSearch:"[[isSearch]]"}},movieRenderer:"ytd-movie-renderer",musicPassFeatureInfoRenderer:"yt-music-pass-feature-info-renderer",
newspaperRenderer:"ytd-newspaper-renderer",noResultsFoundShowingResultsForRenderer:"yt-no-results-found-showing-results-for-renderer",notificationRenderer:"ytd-notification-renderer",offerItemExpandedRenderer:"yt-offer-item-expanded-renderer",offerItemRenderer:"yt-offer-item-renderer",offerItemUpsellRenderer:"yt-offer-item-upsell-renderer",officialCardViewModel:{component:"yt-official-card-view-model",properties:{className:"[[is]]"}},playlistRenderer:{component:"ytd-playlist-renderer",properties:{isSearch:"[[isSearch]]"}},
pageIntroductionRenderer:"ytd-page-introduction-renderer",playlistShowMetadataRenderer:"ytd-playlist-show-metadata-renderer",playlistVideoListRenderer:"ytd-playlist-video-list-renderer",playlistVideoRenderer:"ytd-playlist-video-renderer",premiumBrowseFooterRenderer:"ytd-premium-browse-footer-renderer",productDetailsRenderer:"ytd-product-details-renderer",productListHeaderRenderer:"ytd-product-list-header-renderer",promotedSparklesTextSearchRenderer:"ytd-promoted-sparkles-text-search-renderer",promotedSparklesWebRenderer:"ytd-promoted-sparkles-web-renderer",
purchaseItemRenderer:"ytd-purchase-item-renderer",qrCodeRenderer:"yt-qr-code-renderer",radioRenderer:"ytd-radio-renderer",recognitionShelfRenderer:"ytd-recognition-shelf-renderer",redCancelSurveyRenderer:"ytd-red-cancel-survey-renderer",reelShelfRenderer:{component:"ytd-reel-shelf-renderer",properties:{isSearch:"[[isSearch]]",hideShelfHeader:"[[hideShortsShelfHeader]]"}},gridShelfViewModel:{component:"grid-shelf-view-model",properties:{shouldUseOwnContainerSize:"[[isSearch]]",layoutContainerWidth:"[[containerWidth]]",
className:"[[is]]"},params:{marginSettings:0}},richShelfRenderer:"ytd-rich-shelf-renderer",resultsWithoutQuotesRenderer:"yt-results-without-quotes-renderer",searchFrictionViewModel:"ytw-search-friction-view-model",searchNoResultsRenderer:"yt-search-no-results-renderer",searchPyvRenderer:"ytd-search-pyv-renderer",sectionGroupViewModel:"yt-section-group-view-model",sectionHeaderViewModel:"yt-section-header-view-model",settingsOptionsRenderer:"ytd-settings-options-renderer",shelfRenderer:{component:"ytd-shelf-renderer",
properties:{isSearch:"[[isSearch]]",isConstrainedList:"[[isConstrainedList]]"}},showingResultsForRenderer:"yt-showing-results-for-renderer",showRenderer:{component:"ytd-show-renderer",properties:{isSearch:"[[isSearch]]"}},simpleTextSectionRenderer:"ytd-simple-text-section-renderer",sponsorshipsAlertRenderer:"ytd-sponsorships-alert-renderer",statementBannerRenderer:"ytd-statement-banner-renderer",subscriptionProductHeaderRenderer:"yt-subscription-product-header-renderer",subscriptionProductRenderer:"yt-subscription-product-renderer",
subscriptionProductUpsellOfferRenderer:"yt-subscription-product-upsell-offer-renderer",toggleFormFieldRenderer:"yt-toggle-form-field-renderer",unlimitedManageSubscriptionPageRenderer:"yt-unlimited-manage-subscription-page-renderer",unlimitedPageFeatureInfoRenderer:"ytd-unlimited-page-feature-info-renderer",unlimitedPageHeaderRenderer:"yt-unlimited-page-header-renderer",unlimitedUserNotificationRenderer:"yt-unlimited-user-notification-renderer",videoRenderer:{component:"ytd-video-renderer",properties:{isSearch:"[[isSearch]]"}},
webAnswerRenderer:"ytd-web-answer-renderer",ypcOffersListRenderer:"yt-ypc-offers-list-renderer",redeemCodeRenderer:"ytd-redeem-code-renderer",primetimePromoRenderer:"ytd-primetime-promo-renderer",continuationItemRenderer:{component:"ytd-continuation-item-renderer",properties:{showButton:"[[continuationShowButton]]",isCommentsSection:"[[continuationIsCommentsSection]]",isInitialLoad:"[[continuationIsInitialLoad]]",engagementPanel:"[[engagementPanel]]"}},infoPanelContentRenderer:"ytd-info-panel-content-renderer",
errorCorrectionsSectionItemRenderer:"ytd-error-corrections-section-item-renderer",ctaShelfRenderer:"ytd-brandconnect-cta-shelf-card-renderer",listItemViewModel:"ytd-list-item-view-model",overviewAnswerViewModel:"ytd-overview-answer-view-model",coursePerksViewModel:"yt-course-perks-view-model",courseProgressViewModel:"yt-course-progress-view-model",courseRatingsViewModel:"yt-course-ratings-view-model",videoDescriptionHeaderRenderer:"ytd-video-description-header-renderer",videoDescriptionInfocardsSectionRenderer:"ytd-video-description-infocards-section-renderer",
expandableVideoDescriptionBodyRenderer:{component:"ytd-expandable-video-description-body-renderer",properties:{engagementPanel:"[[engagementPanel]]"}},videoAttributesSectionViewModel:"yt-video-attributes-section-view-model",videoAttributeViewModel:"yt-video-attribute-view-model",liveViewerLeaderboardItemViewModel:{component:"ytvl-live-viewer-leaderboard-item-view-model"},liveLeaderboardItemViewModel:{component:"ytvl-live-leaderboard-item-view-model"},accordionViewModel:{component:"yt-accordion-view-model"},
learningJourneyLoaderViewModel:{component:"yt-learning-journey-loader-view-model"},learningJourneyZeroStateViewModel:{component:"yt-learning-journey-zero-state"},learningJourneyQuizViewModel:{component:"learning-journey-quiz-view-model"},dividerViewModel:{component:"divider-view-model"}}},"data.continuations":{id:"continuations",mapping:{nextContinuationData:{component:"yt-next-continuation",properties:{showButton:"[[showButton]]",disablePrescanVisibility:"[[continuationDisablePrescanVisibility]]"}},
reloadContinuationData:{component:"yt-reload-continuation"}},renderPriority:_.y("kevlar_low_priority_continuation")?0:void 0,usePageScheduler:_.y("kevlar_low_priority_continuation")}}};
_.M.created=function(){this.JSC$14500_cachedViewportHeight=_.g7("initialInnerHeight")||window.innerHeight};
_.M.commentsHidePanelButtonChanged=function(){if(this.isWatchGrid){var S=_.tB(this.hostElement).querySelector("ytd-comments-header-renderer");S&&(S.hidePanelButton=this.commentsHidePanelButton)}};
_.M.onRetrieveLocation=function(S,p){this.containsComments()&&(this.firstCommentsLoaded=p.hasComments=!0)};
_.M.containsComments=function(){return this.get("data.sectionIdentifier")==="comment-item-section"};
_.M.onLoadReloadContinuation=function(S,p){var U=this;S.stopPropagation();this.isReloading=!0;_.cv(this.hostElement,"yt-retrieve-location",{locationRetrieved:function(Y){var L=_.tW().resolve(_.RS);Y=p(Y);L.postData(Y).then(function(I){U.onReloadContinuationData(I)})}})};
_.M.onReloadContinuationData=function(S){if(S=this.get("response.continuationContents.itemSectionContinuation",S)||this.get("response.contents.itemSectionRenderer",S)||this.get("response.continuationContents.sectionListContinuation.contents.0.itemSectionRenderer",S)||this.get("response.continuationContents.relatedChipsContinuation.continuation.watchNextSecondaryResultsRenderer",S))this.set("data.contents",S.contents||S.results),S.header&&this.set("data.header",S.header),this.set("data.continuations",
S.continuations||[]);this.isReloading=!1};
_.M.computeContentsClass=function(S){return S?"reloading":""};
_.M.computeContainerWidth=function(){return this.hostElement.clientWidth};
_.M.computeSectionIdentifier=function(S){return S==null?void 0:S.sectionIdentifier};
_.M.computeFitContainer=function(S){return(S==null?void 0:S.sectionIdentifier)==="youchat-item-section"};
_.M.computeShowButton=function(){return!!this.firstCommentsLoaded&&this.containsComments()&&_.y("kevlar_disable_comments_auto_load")};
_.M.onServiceRequestCompleted=function(){this.continuationIsInitialLoad=!1};
_.M.computeIsReloading=function(){return this.isReloading||this.ytContinuationHandlerBehavior.continuationIsReloading};
_.M.computeHasDestinationShelfRenderer=function(S){var p,U;return!!(S==null?0:(p=S.contents)==null?0:(U=p[0])==null?0:U.destinationShelfRenderer)};
_.M.computeHasSectionGroupViewModel=function(S){var p,U;return!!(S==null?0:(p=S.contents)==null?0:(U=p[0])==null?0:U.sectionGroupViewModel)};
_.M.computeHasQrCodeRenderer=function(S){var p,U;return!!(S==null?0:(p=S.contents)==null?0:(U=p[0])==null?0:U.qrCodeRenderer)};
_.M.computeStaticCommentsHeader=function(S){return S&&this.containsComments()};
_.M.computeEpRestyle=function(S){return _.y("web_ep_restyling")&&S&&this.containsComments()};
_.M.computeIsContinuationCommentSection=function(S){return(S==null?void 0:S.targetId)==="shorts-engagement-panel-comments-section"||(S==null?void 0:S.targetId)==="comments-section"||(S==null?void 0:S.targetId)==="engagement-panel-comments-section"};
_.M.computeSuppressPaddingDisclaimer=function(){var S,p,U,Y;return!!((S=this.data)==null?0:(p=S.contents)==null?0:(U=p[0])==null?0:(Y=U.productListHeaderRenderer)==null?0:Y.suppressPaddingDisclaimer)};
_.M.computeHeaderStyle=function(S){switch(S==null?void 0:S.headerStyle){case "ITEM_SECTION_HEADER_STYLE_STICKY":return"sticky-header";default:return""}};
_.M.dataChanged=function(){this.firstCommentsLoaded=!1};
_.M.observeDataContentsLength=function(){var S,p;((S=this.data)==null?0:(p=S.contents)==null?0:p.length)&&this.data.contents.length>1?this.continuationIsInitialLoad=!1:this.continuationIsInitialLoad=!0};
_.M.onYtDismissibleItemDismissedChange=function(S){this._setItemDismissed(S.type==="yt-dismissible-item-dismissed")};
_.M.triggerContinuations=function(){for(var S=_.tB(this.hostElement).querySelector("#continuations").children,p=0;p<S.length;p++)S[p].trigger()};
_.M.triggerInitialContinuations=function(){for(var S=_.tB(this.hostElement).querySelector("#continuations").children,p=0;p<S.length;p++)S[p].triggerIfNotPreviouslyTriggered()};
_.M.handleYtItemSectionContinuation=function(S,p){var U;p&&((U=this.data)==null?void 0:U.sectionIdentifier)!==p||(this.set("data.continuations",[S]),this.triggerContinuations())};
_.M.handleYtItemSectionReplace=function(S,p){var U;p&&((U=this.data)==null?void 0:U.sectionIdentifier)!==p||(this.set("data.contents",S),this.set("data.continuations",[]))};
_.M.computeUseHeightHack=function(S){return S&&!_.y("kevlar_disable_height_hack")};
_.M.computeTopSpacingZero=function(S){return S};
_.M.continuationShowButtonChanged=function(){var S=_.tB(this.hostElement).querySelector("ytd-continuation-item-renderer");S&&(S.showButton=this.continuationShowButton)};
_.M.dataChangedForBinding=function(){this.hostElement.dispatchEvent(new _.uz("data-changed",this.data))};
_.$u.Object.defineProperties(sn.prototype,{hideShortsShelfHeader:{configurable:!0,enumerable:!0,get:function(){return this.isWatch&&_.y("web_shorts_wn_shelf_header_tuning")}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isSearch?"50%":this.isWatch?"168px":"246px"}},
sizing:{configurable:!0,enumerable:!0,get:function(){return this.isWatch?"COMPACT":"STANDARD"}},
lockupContainerType:{configurable:!0,enumerable:!0,get:function(){return this.eligibleToSwitchToGrid?this.isGridViewEnabled?2:3:3}},
isPlaylist:{configurable:!0,enumerable:!0,get:function(){var S,p,U;return!!((S=this.data)==null?0:(p=S.contents)==null?0:(U=p[0])==null?0:U.playlistVideoListRenderer)}},
isClipList:{configurable:!0,enumerable:!0,get:function(){var S,p,U,Y,L,I,V;return!!((S=this.data)==null?0:(p=S.contents)==null?0:(U=p[0])==null?0:(Y=U.shelfRenderer)==null?0:(L=Y.content)==null?0:(I=L.gridRenderer)==null?0:(V=I.targetId)==null?0:V.includes("browse-feedFEclips"))}},
isPlaylistVideoContainer:{configurable:!0,enumerable:!0,get:function(){var S,p,U;return!!((S=this.data)==null?0:(p=S.contents)==null?0:(U=p[0])==null?0:U.playlistVideoRenderer)}},
isSearchFrictionPage:{configurable:!0,enumerable:!0,get:function(){var S,p,U;return!!((S=this.data)==null?0:(p=S.contents)==null?0:(U=p[0])==null?0:U.searchFrictionViewModel)}},
lockupExperiments:{configurable:!0,enumerable:!0,get:function(){if(this.isSearch)return{alwaysRespectPodcastShowAspectRatio:_.Ug("podcast_show_lockup_style_web")==="square_thumbnail",useLegacyTypography:!_.y("use_modern_typography_on_search")}}},
typographyBump:{configurable:!0,enumerable:!0,get:function(){return this.isSearch&&_.y("use_modern_typography_on_search")}},
nonDeferredItemCount:{configurable:!0,enumerable:!0,get:function(){if(this.isSearchDova)return Math.ceil((this.JSC$14500_cachedViewportHeight-130)/150)},
set:function(){}}});
sn.prototype.dataChangedForBinding=sn.prototype.dataChangedForBinding;sn.prototype.continuationShowButtonChanged=sn.prototype.continuationShowButtonChanged;sn.prototype.onYtDismissibleItemDismissedChange=sn.prototype.onYtDismissibleItemDismissedChange;sn.prototype.observeDataContentsLength=sn.prototype.observeDataContentsLength;sn.prototype.dataChanged=sn.prototype.dataChanged;sn.prototype.onServiceRequestCompleted=sn.prototype.onServiceRequestCompleted;sn.prototype.onLoadReloadContinuation=sn.prototype.onLoadReloadContinuation;
sn.prototype.onRetrieveLocation=sn.prototype.onRetrieveLocation;sn.prototype.commentsHidePanelButtonChanged=sn.prototype.commentsHidePanelButtonChanged;sn.prototype.updateLockupContainerTypes=sn.prototype.updateLockupContainerTypes;_.x([_.F(_.Aj.YtActionHandlerBehavior),_.E("design:type",Object)],sn.prototype,"ytActionHandlerBehavior",void 0);_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],sn.prototype,"ytRendererBehavior",void 0);
_.x([_.F(_.qH.YtRendererstamperBehavior),_.E("design:type",Object)],sn.prototype,"ytRendererstamperBehavior",void 0);_.x([_.F(_.qb.YtLazyListBehavior),_.E("design:type",Object)],sn.prototype,"ytLazyListBehavior",void 0);_.x([_.F(_.lX.YtNextContinuationBehavior),_.E("design:type",Object)],sn.prototype,"ytNextContinuationBehavior",void 0);_.x([_.F(_.wS),_.E("design:type",Object)],sn.prototype,"ytContinuationHandlerBehavior",void 0);
_.x([_.F(_.eL.YtComponentBehavior),_.E("design:type",Object)],sn.prototype,"ytComponentBehavior",void 0);_.x([_.F(_.Xh),_.E("design:type",Object)],sn.prototype,"ytdReduxBehavior",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],sn.prototype,"darkerPanels",void 0);_.x([_.g(),_.E("design:type",Object)],sn.prototype,"data",void 0);_.x([_.g(),_.E("design:type",Boolean)],sn.prototype,"engagementPanel",void 0);
_.x([_.g(),_.E("design:type",Object)],sn.prototype,"commentsHidePanelButton",void 0);_.x([_.g(),_.E("design:type",Object)],sn.prototype,"isWatchGrid",void 0);_.x([_.g(),_.E("design:type",Object)],sn.prototype,"continuationShowButton",void 0);_.x([_.g({computed:"computeIsContinuationCommentSection(data)"}),_.E("design:type",Boolean)],sn.prototype,"continuationIsCommentsSection",void 0);_.x([_.g({value:!0}),_.E("design:type",Boolean)],sn.prototype,"autoFill",void 0);
_.x([_.g(),_.E("design:type",Boolean)],sn.prototype,"continuationDisablePrescanVisibility",void 0);_.x([_.g(),_.E("design:type",Boolean)],sn.prototype,"isReloading",void 0);_.x([_.g(),_.E("design:type",Object)],sn.prototype,"isSearch",void 0);_.x([_.g(),_.E("design:type",Object)],sn.prototype,"isConstrainedList",void 0);_.x([_.g(),_.E("design:type",Object)],sn.prototype,"isWatch",void 0);_.x([_.g(),_.E("design:type",Object)],sn.prototype,"eligibleToSwitchToGrid",void 0);
_.x([_.g({selector:_.g8}),_.E("design:type",Object)],sn.prototype,"isGridViewEnabled",void 0);_.x([_.g({reflectToAttribute:!0,computed:"computeEpRestyle(engagementPanel, data.sectionIdentifier)"}),_.E("design:type",Object)],sn.prototype,"epRestyle",void 0);_.x([_.e("isWatch"),_.g({reflectToAttribute:!0}),_.E("design:type",Boolean),_.E("design:paramtypes",[])],sn.prototype,"hideShortsShelfHeader",null);
_.x([_.e("isSearch","isWatch"),_.E("design:type",String),_.E("design:paramtypes",[])],sn.prototype,"thumbnailWidth",null);_.x([_.e("isSearch","isWatch"),_.E("design:type",String),_.E("design:paramtypes",[])],sn.prototype,"sizing",null);_.x([_.e("isWatch","isGridViewEnabled","data"),_.g({reflectToAttribute:!0}),_.E("design:type",Number),_.E("design:paramtypes",[])],sn.prototype,"lockupContainerType",null);
_.x([_.T4("lockupContainerType","data"),_.E("design:type",Function),_.E("design:paramtypes",[Number]),_.E("design:returntype")],sn.prototype,"updateLockupContainerTypes",null);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",String)],sn.prototype,"pageSubtype",void 0);_.x([_.g({computed:"computeContainerWidth()"}),_.E("design:type",Number)],sn.prototype,"containerWidth",void 0);_.x([_.g(),_.e("data"),_.E("design:type",Boolean),_.E("design:paramtypes",[])],sn.prototype,"isPlaylist",null);
_.x([_.g(),_.e("data"),_.E("design:type",Boolean),_.E("design:paramtypes",[])],sn.prototype,"isClipList",null);_.x([_.g(),_.E("design:type",Object)],sn.prototype,"isCarouselInFeed",void 0);_.x([_.g({reflectToAttribute:!0}),_.e("data"),_.E("design:type",Boolean),_.E("design:paramtypes",[])],sn.prototype,"isPlaylistVideoContainer",null);_.x([_.g({reflectToAttribute:!0}),_.e("data"),_.E("design:type",Boolean),_.E("design:paramtypes",[])],sn.prototype,"isSearchFrictionPage",null);
_.x([_.g({reflectToAttribute:!0,computed:"computeUseHeightHack(isSearch)"}),_.E("design:type",Boolean)],sn.prototype,"useHeightHack",void 0);_.x([_.g({reflectToAttribute:!0,computed:"computeTopSpacingZero(isSearch)"}),_.E("design:type",Object)],sn.prototype,"topSpacingZero",void 0);_.x([_.g({computed:"computeShowButton(data.sectionIdentifier, firstCommentsLoaded)"}),_.E("design:type",Boolean)],sn.prototype,"showButton",void 0);
_.x([_.g(),_.E("design:type",Boolean)],sn.prototype,"firstCommentsLoaded",void 0);_.x([_.g(),_.E("design:type",Object)],sn.prototype,"continuationIsInitialLoad",void 0);_.x([_.g(),_.E("design:type",Boolean)],sn.prototype,"isSearchDova",void 0);_.x([_.g({reflectToAttribute:!0,readOnly:!0}),_.E("design:type",Boolean)],sn.prototype,"itemDismissed",void 0);_.x([_.g({reflectToAttribute:!0,computed:"computeSectionIdentifier(data)"}),_.E("design:type",String)],sn.prototype,"sectionIdentifier",void 0);
_.x([_.g({reflectToAttribute:!0,computed:"computeFitContainer(data)"}),_.E("design:type",String)],sn.prototype,"fitContainer",void 0);_.x([_.g({reflectToAttribute:!0,computed:"computeHasDestinationShelfRenderer(data)"}),_.E("design:type",Boolean)],sn.prototype,"hasDestinationShelfRenderer",void 0);_.x([_.g({reflectToAttribute:!0,computed:"computeStaticCommentsHeader(engagementPanel, data.sectionIdentifier)"}),_.E("design:type",Boolean)],sn.prototype,"staticCommentsHeader",void 0);
_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],sn.prototype,"enableSqueezebackPanels",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],sn.prototype,"enableAnchoredPanel",void 0);_.x([_.g({reflectToAttribute:!0,computed:"computeHasSectionGroupViewModel(data)"}),_.E("design:type",Boolean)],sn.prototype,"hasSectionGroupViewModel",void 0);
_.x([_.g({reflectToAttribute:!0,computed:"computeHasQrCodeRenderer(data)"}),_.E("design:type",Boolean)],sn.prototype,"hasQrCodeRenderer",void 0);_.x([_.g({reflectToAttribute:!0,computed:"computeSuppressPaddingDisclaimer(data)"}),_.E("design:type",Boolean)],sn.prototype,"suppressDisclaimerSeparator",void 0);_.x([_.g({reflectToAttribute:!0,computed:"computeHeaderStyle(data)"}),_.E("design:type",String)],sn.prototype,"headerStyle",void 0);
_.x([_.e("isSearch"),_.E("design:type",Object),_.E("design:paramtypes",[])],sn.prototype,"lockupExperiments",null);_.x([_.e("isSearch"),_.E("design:type",Boolean),_.E("design:paramtypes",[])],sn.prototype,"typographyBump",null);_.x([_.O2("#header"),_.E("design:type",HTMLElement)],sn.prototype,"header",void 0);_.x([_.T4("commentsHidePanelButton"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],sn.prototype,"commentsHidePanelButtonChanged",null);
_.x([_.Vd("yt-retrieve-location"),_.E("design:type",Function),_.E("design:paramtypes",[CustomEvent,Object]),_.E("design:returntype")],sn.prototype,"onRetrieveLocation",null);_.x([_.Vd("yt-load-reload-continuation"),_.E("design:type",Function),_.E("design:paramtypes",[CustomEvent,Function]),_.E("design:returntype")],sn.prototype,"onLoadReloadContinuation",null);
_.x([_.Vd("yt-service-request-completed"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],sn.prototype,"onServiceRequestCompleted",null);_.x([_.z4("data"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],sn.prototype,"dataChanged",null);_.x([_.z4("data.contents.length"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],sn.prototype,"observeDataContentsLength",null);
_.x([_.Vd("yt-dismissible-item-dismissed"),_.Vd("yt-dismissible-item-undismissed"),_.E("design:type",Function),_.E("design:paramtypes",[Event]),_.E("design:returntype")],sn.prototype,"onYtDismissibleItemDismissedChange",null);_.x([_.T4("continuationShowButton"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],sn.prototype,"continuationShowButtonChanged",null);
_.x([_.T4("data"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],sn.prototype,"dataChangedForBinding",null);sn=_.x([_.f({is:"ytd-item-section-renderer",disableElementRegistration:!0})],sn);
_.C(sn,"ytd-item-section-renderer",function(){if(BRt!==void 0)return BRt;var S=document.createElement("template");_.h(S,'\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');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);return BRt=S},{mode:1});var Ruc;var tKd=_.Ec(_.Oh("DELETE_FROM_DOWNLOADS",{},"Delete from downloads"));var NLr={url:"https://www.gstatic.com/youtube/img/useredu/smart_downloads_optin_banner.svg"};var FkH={},Aor=(FkH[0]={title:_.Aa(_.Oh("DOWNLOADS",void 0,"Downloads")),iconType:"OFFLINE_DOWNLOAD",topButtonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.Aa(_.Oh("DOWNLOADS_SETTINGS",void 0,"Downloads Settings")),loggingDirectives:{clientVeSpec:{uiType:21412}},navigationEndpoint:Bd("SPaccount_downloads","/account_downloads",6827,"WEB_PAGE_TYPE_SETTINGS")},sectionClientVE:51721,videoClientVE:42356},FkH[1]={title:_.Aa(_.Oh("SMART_DOWNLOADS",void 0,"Smart downloads")),topButtonRenderer:{icon:{iconType:"SETTINGS"},
loggingDirectives:{clientVeSpec:{uiType:129732}},navigationEndpoint:Bd("SPaccount_downloads","/account_downloads",6827,"WEB_PAGE_TYPE_SETTINGS")},sectionClientVE:139572,videoClientVE:129218},FkH);_.Ry("sharingItemSection","itemSectionRenderer","ytd-item-section-renderer");var ey=function(){var S=_.w.apply(this,arguments)||this;S.allVideosCount=0;S.allPlaylistCount=0;S.shouldRenderDownloadsBanner=!1;S.hasOptedIntoSmartDownloads=!1;S.areAllSmartDownloadsDeleted=!1;S.smartDownloadsCompleted=!1;return S};
_.r(ey,_.w);ey.prototype.configureRendererStamper=function(){return{renderableData:{id:"contents",mapping:{itemSectionRenderer:"ytd-item-section-renderer"}}}};
ey.prototype.attached=function(){this.downloadsToRenderChanged()};
ey.prototype.detached=function(){this.set("renderableData",{})};
ey.prototype.downloadsToRenderChanged=function(){var S=_.vJ().getState().entities,p=_.j4(S),U=_.y("kevlar_playlist_dl_page_killswitch")?Vqd(S):_.rt(S),Y=_.YOe(S),L=_.nK(p);S=_.Gf(S);this.set("renderableData",SZX(U,p,Y,this.hasOptedIntoSmartDownloads,this.shouldRenderDownloadsBanner,this.areAllSmartDownloadsDeleted,L,S))};
ey.prototype.downloadsToRenderChanged=ey.prototype.downloadsToRenderChanged;_.x([_.F(_.Xh),_.E("design:type",Object)],ey.prototype,"ytdReduxBehavior",void 0);_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],ey.prototype,"ytRendererBehavior",void 0);_.x([_.F(_.eL.YtComponentBehavior),_.E("design:type",Object)],ey.prototype,"ytComponentBehavior",void 0);_.x([_.F(_.qH.YtRendererstamperBehavior),_.E("design:type",Object)],ey.prototype,"ytRendererstamperBehavior",void 0);
_.x([_.g(),_.E("design:type",Object)],ey.prototype,"renderableData",void 0);_.x([_.g({selector:_.bQG}),_.E("design:type",Object)],ey.prototype,"allVideosCount",void 0);_.x([_.g({selector:ofq}),_.E("design:type",Object)],ey.prototype,"allPlaylistCount",void 0);_.x([_.g({selector:_.Xje}),_.E("design:type",Object)],ey.prototype,"shouldRenderDownloadsBanner",void 0);_.x([_.g({selector:_.PBq}),_.E("design:type",Object)],ey.prototype,"hasOptedIntoSmartDownloads",void 0);
_.x([_.g({selector:_.ZQr}),_.E("design:type",Object)],ey.prototype,"areAllSmartDownloadsDeleted",void 0);_.x([_.g({selector:sgX}),_.E("design:type",Object)],ey.prototype,"smartDownloadsCompleted",void 0);_.x([_.z4("allVideosCount","shouldRenderDownloadsBanner","hasOptedIntoSmartDownloads","areAllSmartDownloadsDeleted","smartDownloadsCompleted","allPlaylistCount"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],ey.prototype,"downloadsToRenderChanged",null);
ey=_.x([_.f({is:"ytd-offline-item-section-renderer",disableElementRegistration:!0})],ey);
_.C(ey,"ytd-offline-item-section-renderer",function(){if(Ruc!==void 0)return Ruc;var S=document.createElement("template");_.h(S,'\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');S.content.insertBefore(_.t().content.cloneNode(!0),S.content.firstChild);return Ruc=S},
{mode:1});var X_E;var Pwt;var gq=function(){return _.w.apply(this,arguments)||this};
_.r(gq,_.w);
gq.prototype.onDataChanged=function(){if(this.JSC$14526_lastData){var S=this.getFilterClass(this.JSC$14526_lastData.status);S&&this.hostElement.classList.remove(S)}var p;(S=this.getFilterClass((p=this.data)==null?void 0:p.status))&&this.hostElement.classList.add(S);S==="selected"?_.tB(this.hostElement).querySelector("#endpoint").setAttribute("aria-selected","true"):_.tB(this.hostElement).querySelector("#endpoint").removeAttribute("aria-selected");S==="disabled"?_.tB(this.hostElement).querySelector("#endpoint").setAttribute("aria-disabled","true"):
_.tB(this.hostElement).querySelector("#endpoint").removeAttribute("aria-disabled");this.JSC$14526_lastData=this.data};
gq.prototype.getFilterClass=function(S){switch(S){case "FILTER_STATUS_SELECTED":return"selected";case "FILTER_STATUS_DISABLED":return"disabled"}};
gq.prototype.onDataChanged=gq.prototype.onDataChanged;_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],gq.prototype,"ytRendererBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],gq.prototype,"data",void 0);_.x([_.T4("data"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],gq.prototype,"onDataChanged",null);gq=_.x([_.f({is:"ytd-search-filter-renderer",disableElementRegistration:!0})],gq);
_.C(gq,"ytd-search-filter-renderer",function(){if(Pwt!==void 0)return Pwt;var S=document.createElement("template");_.h(S,'\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');
S.content.insertBefore(_.t().content.cloneNode(!0),S.content.firstChild);return Pwt=S},{mode:_.UW("kevlar_poly_si_batch_j075")?1:2});var uF=function(){return _.w.apply(this,arguments)||this};
_.r(uF,_.w);_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],uF.prototype,"ytRendererBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],uF.prototype,"data",void 0);uF=_.x([_.f({is:"ytd-search-filter-group-renderer",disableElementRegistration:!0})],uF);
_.C(uF,"ytd-search-filter-group-renderer",function(){if(X_E!==void 0)return X_E;var S=document.createElement("template");_.h(S,'\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');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);return X_E=S},{mode:_.UW("kevlar_poly_si_batch_j075")?1:2});var ZMH;var wq=function(){return _.w.apply(this,arguments)||this};
_.r(wq,_.w);wq.prototype.toggleFilters=function(){this.renderCollapsibleMenu||(this.renderCollapsibleMenu=!0,_.LC());this.isCollapsed=!this.isCollapsed};
wq.prototype.navigateToAboutTheseResultsPage=function(){var S=Q2("https://www.youtube.com/howyoutubeworks/product-features/search/");S?_.s3(window,S,"_blank"):_.w7(Error("Ph"))};
wq.prototype.dataChanged=function(){this.isCollapsed=!0};
wq.prototype.computeShowBottomBorder=function(){var S,p,U;return!!((S=this.data)==null?0:(p=S.button)==null?0:p.toggleButtonRenderer)||!((U=this.data)==null||!U.aboutTheseResultsButton)};
wq.prototype.dataChanged=wq.prototype.dataChanged;_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],wq.prototype,"ytRendererBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],wq.prototype,"data",void 0);_.x([_.g({reflectToAttribute:!0,computed:"computeShowBottomBorder(data)"}),_.E("design:type",Boolean)],wq.prototype,"showBottomBorder",void 0);_.x([_.g(),_.E("design:type",Boolean)],wq.prototype,"renderCollapsibleMenu",void 0);
_.x([_.g(),_.E("design:type",Boolean)],wq.prototype,"isCollapsed",void 0);_.x([_.z4("data"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],wq.prototype,"dataChanged",null);wq=_.x([_.f({is:"ytd-search-sub-menu-renderer",disableElementRegistration:!0})],wq);
_.C(wq,"ytd-search-sub-menu-renderer",function(){if(ZMH!==void 0)return ZMH;var S=document.createElement("template");_.h(S,'\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');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);return ZMH=S},{mode:1});var s_m;var eum=new _.$g("SECTION_LIST_RENDERER_TOKEN");var gJd;var lF=function(){return _.w.apply(this,arguments)||this};
_.r(lF,_.w);lF.prototype.computeStyle=function(S){return S?S.toLowerCase().replace(/_/g,"-"):""};
_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],lF.prototype,"ytRendererBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],lF.prototype,"data",void 0);_.x([_.g({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.E("design:type",String)],lF.prototype,"headerStyle",void 0);lF=_.x([_.f({is:"ytd-text-header-renderer",disableElementRegistration:!0})],lF);
_.C(lF,"ytd-text-header-renderer",function(){if(gJd!==void 0)return gJd;var S=document.createElement("template");_.h(S,"\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");S.content.insertBefore(_.t().content.cloneNode(!0),S.content.firstChild);return gJd=S},{mode:1});var uwe;var aI=function(){return _.w.apply(this,arguments)||this};
_.r(aI,_.w);_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],aI.prototype,"ytRendererBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],aI.prototype,"data",void 0);aI=_.x([_.f({is:"ytd-minor-moment-header-renderer",disableElementRegistration:!0})],aI);
_.C(aI,"ytd-minor-moment-header-renderer",function(){if(uwe!==void 0)return uwe;var S=document.createElement("template");_.h(S,'\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');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);return uwe=S},{mode:1});var w_e;var fb=function(){return _.w.apply(this,arguments)||this};
_.r(fb,_.w);_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],fb.prototype,"ytRendererBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],fb.prototype,"data",void 0);fb=_.x([_.f({is:"ytd-minor-moment-setting-alert-renderer",disableElementRegistration:!0})],fb);
_.C(fb,"ytd-minor-moment-setting-alert-renderer",function(){if(w_e!==void 0)return w_e;var S=document.createElement("template");_.h(S,'\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');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);return w_e=S},{mode:1});var liw;var aie;var Cb=function(){var S=_.w.apply(this,arguments)||this;S.booleanSettingById=!1;S.smartDownloadsEnabledVE=_.bZ(128287);S.smartDownloadsDisabledVE=_.bZ(128286);S.actionMap={"yt-settings-update-switch-command":"handleUpdateSettingsSwitch","yt-toggle-settings-switch":"onToggleSettingsSwitch"};return S};
_.r(Cb,_.w);_.M=Cb.prototype;_.M.attachSmartDownloadsSettingVes=function(){var S;this.activeVeForLogging||((S=this.data)==null?void 0:S.id)!=="SETTINGS_OPTIONS_ID_TYPE_SMART_DOWNLOADS"||(_.pa(_.HX(),this.smartDownloadsEnabledVE),_.pa(_.HX(),this.smartDownloadsDisabledVE))};
_.M.dataChanged=function(){this.attachSmartDownloadsSettingVes();this.maybeLogSmartDownloadsSettingVisibility();this.initializeIsEnabled();_.cv(this.hostElement,"yt-settings-switch-ready")};
_.M.initializeIsEnabled=function(){this.data&&this.data.id&&this.data.enabled===void 0&&this.set("data.enabled",this.getUserPreference())};
_.M.onSwitchChange=function(S){this.data&&(this.maybeLogSmartDownloadsSettingClick(),(S=_.mF(S).checked?this.data.enableServiceEndpoint:this.data.disableServiceEndpoint)&&(_.y("kevlar_settings_switch_resolve_command_killswitch")?_.tW().resolve(_.cQ).resolveCommand(S,{form:{element:this.hostElement}}):this.ytComponentBehavior.resolveCommand(S)),this.data.requiresConfirmation&&this.set("data.enabled",!this.data.enabled))};
_.M.handleUpdateSettingsSwitch=function(S){(S=_.b(S,GRP))&&this.data&&this.data.id===S.id&&this.set("data.enabled",!!S.enabled)};
_.M.onToggleSettingsSwitch=function(S,p){this.data&&this.data.id===S&&this.set("data.enabled",p!=null?p:!this.data.enabled)};
_.M.getUserPreference=function(){switch(this.data.id){case "SETTINGS_OPTIONS_ID_TYPE_AUTONAV":return 1!==_.og.getInstance().getState();case "SETTINGS_OPTIONS_ID_TYPE_SMART_DOWNLOADS":return this.booleanSettingById;default:return!1}};
_.M.maybeLogSmartDownloadsSettingVisibility=function(){var S=_.X$(),p;S&&((p=this.data)==null?void 0:p.id)==="SETTINGS_OPTIONS_ID_TYPE_SMART_DOWNLOADS"&&(this.booleanSettingById?(this.activeVeForLogging=this.smartDownloadsEnabledVE,_.fp(S,[this.smartDownloadsEnabledVE]),_.Cp(S,[this.smartDownloadsDisabledVE])):(this.activeVeForLogging=this.smartDownloadsDisabledVE,_.fp(S,[this.smartDownloadsDisabledVE]),_.Cp(S,[this.smartDownloadsEnabledVE])))};
_.M.maybeLogSmartDownloadsSettingClick=function(){var S;((S=this.data)==null?void 0:S.id)==="SETTINGS_OPTIONS_ID_TYPE_SMART_DOWNLOADS"&&this.activeVeForLogging&&_.YV(_.HX(),this.activeVeForLogging)};
_.M.updateDataEnabledFromBinding=function(S){this.set("data.enabled",S.detail.value)};
_.$u.Object.defineProperties(Cb.prototype,{toggleAriaLabel:{configurable:!0,enumerable:!0,get:function(){var S=this.get("toggleAccessibility.accessibilityData.label",this.data);this.data&&this.data.title&&!S&&(S=this.ytRendererBehavior.getSimpleString(this.data.title));return S}}});
Cb.prototype.dataChanged=Cb.prototype.dataChanged;_.x([_.F(_.Xh),_.E("design:type",Object)],Cb.prototype,"ytdReduxBehavior",void 0);_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],Cb.prototype,"ytRendererBehavior",void 0);_.x([_.F(_.Aj.YtActionHandlerBehavior),_.E("design:type",Object)],Cb.prototype,"ytActionHandlerBehavior",void 0);_.x([_.F(_.eL.YtComponentBehavior),_.E("design:type",Object)],Cb.prototype,"ytComponentBehavior",void 0);
_.x([_.g(),_.E("design:type",Object)],Cb.prototype,"data",void 0);_.x([_.g({selector:function(S,p){if(Object.keys(S==null?void 0:S.entities).length)switch(p){case "SETTINGS_OPTIONS_ID_TYPE_SMART_DOWNLOADS":return TeG(S.entities,"SMART_DOWNLOADS_ENABLED");default:return!1}},
selectorArgs:["data.id"]}),_.E("design:type",Object)],Cb.prototype,"booleanSettingById",void 0);_.x([_.g(),_.E("design:type",_.R9)],Cb.prototype,"activeVeForLogging",void 0);_.x([_.e("data"),_.E("design:type",Object),_.E("design:paramtypes",[])],Cb.prototype,"toggleAriaLabel",null);_.x([_.z4("data"),_.z4("booleanSettingById"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],Cb.prototype,"dataChanged",null);
Cb=_.x([_.f({is:"ytd-settings-switch-renderer",disableElementRegistration:!0})],Cb);
_.C(Cb,"ytd-settings-switch-renderer",function(){if(aie!==void 0)return aie;var S=document.createElement("template");_.h(S,'\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');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);return aie=S},{mode:1});var xh=function(){return _.w.apply(this,arguments)||this};
_.r(xh,_.w);xh.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}}}}};
_.$u.Object.defineProperties(xh.prototype,{contentsClassName:{configurable:!0,enumerable:!0,get:function(){if(!this.data)return"";var S=this.data.hideBottomSeparator?"":"with-bottom-separator";this.data.removeLeftMargin&&(S+=" remove-left-margin");this.data.extraBottomSpace&&(S+=" extra-bottom-space");return S}}});
_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],xh.prototype,"ytRendererBehavior",void 0);_.x([_.F(_.qH.YtRendererstamperBehavior),_.E("design:type",Object)],xh.prototype,"ytRendererstamperBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],xh.prototype,"data",void 0);_.x([_.e("data"),_.E("design:type",Object),_.E("design:paramtypes",[])],xh.prototype,"contentsClassName",null);xh=_.x([_.f({is:"ytd-minor-moment-setting-section-renderer",disableElementRegistration:!0})],xh);
_.C(xh,"ytd-minor-moment-setting-section-renderer",function(){if(liw!==void 0)return liw;var S=document.createElement("template");_.h(S,'\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');
S.content.insertBefore(_.t().content.cloneNode(!0),S.content.firstChild);return liw=S},{mode:1});var CwQ;var En=function(){return _.w.apply(this,arguments)||this};
_.r(En,_.w);_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],En.prototype,"ytRendererBehavior",void 0);_.x([_.F(_.eL.YtComponentBehavior),_.E("design:type",Object)],En.prototype,"componentBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],En.prototype,"data",void 0);En=_.x([_.f({disableElementRegistration:!0,is:"ytd-empty-product-details-renderer"})],En);
_.C(En,"ytd-empty-product-details-renderer",function(){if(CwQ!==void 0)return CwQ;var S=document.createElement("template");_.h(S,'\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');
S.content.insertBefore(_.t().content.cloneNode(!0),S.content.firstChild);return CwQ=S},{mode:1});var x4H;var EJe;var mv=function(){var S=_.w.apply(this,arguments)||this;S.expanded=!0;return S};
_.r(mv,_.w);mv.prototype.getBadgeRowClass=function(S,p,U){for(var Y=_.d(this.hostElement.querySelectorAll("yt-img-shadow")),L=Y.next();!L.done;L=Y.next())L.value.onShow();S=S.selected;return U?S!==-1?S===p?"badge-line badge-selected":"badge-line badge-not-selected":"badge-line":(S!==void 0?S:0)===p?"badge-line":"badge-hidden"};
_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],mv.prototype,"ytRendererBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],mv.prototype,"data",void 0);_.x([_.g(),_.E("design:type",Object)],mv.prototype,"expanded",void 0);mv=_.x([_.f({disableElementRegistration:!0,is:"ytd-sponsorships-loyalty-badges-renderer"})],mv);
_.C(mv,"ytd-sponsorships-loyalty-badges-renderer",function(){if(EJe!==void 0)return EJe;var S=document.createElement("template");_.h(S,'\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');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);return EJe=S},{mode:1});var m4w;var oI=function(){var S=_.w.apply(this,arguments)||this;S.expanded=!0;return S};
_.r(oI,_.w);oI.prototype.getContainerClasses=function(S,p){S=S?"expanded":"collapsed";p&&(S+=" item");return S};
_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],oI.prototype,"ytRendererBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],oI.prototype,"data",void 0);_.x([_.g(),_.E("design:type",Object)],oI.prototype,"expanded",void 0);oI=_.x([_.f({disableElementRegistration:!0,is:"ytd-sponsorships-perk-renderer"})],oI);
_.C(oI,"ytd-sponsorships-perk-renderer",function(){if(m4w!==void 0)return m4w;var S=document.createElement("template");_.h(S,'\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');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);return m4w=S},{mode:1});var oJQ;var v8=function(){var S=_.w.apply(this,arguments)||this;S.expanded=!0;return S};
_.r(v8,_.w);_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],v8.prototype,"ytRendererBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],v8.prototype,"data",void 0);_.x([_.g(),_.E("design:type",Object)],v8.prototype,"expanded",void 0);v8=_.x([_.f({disableElementRegistration:!0,is:"ytd-sponsorships-perks-renderer"})],v8);
_.C(v8,"ytd-sponsorships-perks-renderer",function(){if(oJQ!==void 0)return oJQ;var S=document.createElement("template");_.h(S,'\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');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);return oJQ=S},{mode:1});var $h=function(){var S=_.w.apply(this,arguments)||this;S.isCollapsed=!1;return S};
_.r($h,_.w);$h.prototype.onDataChanged=function(){this.data&&(this.isCollapsed=!this.data.startExpanded)};
$h.prototype.onExpandCollapse=function(){this.isCollapsed=!this.isCollapsed};
$h.prototype.updateExpandCollapseButton=function(){if(this.isCollapsed){var S;this.expandCollapseButton=_.b((S=this.data)==null?void 0:S.expandButton,_.XT)}else{var p;this.expandCollapseButton=_.b((p=this.data)==null?void 0:p.collapseButton,_.XT)}};
$h.prototype.updateExpandCollapseButton=$h.prototype.updateExpandCollapseButton;$h.prototype.onDataChanged=$h.prototype.onDataChanged;_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],$h.prototype,"ytRendererBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],$h.prototype,"data",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],$h.prototype,"isCollapsed",void 0);_.x([_.g(),_.E("design:type",Object)],$h.prototype,"expandCollapseButton",void 0);
_.x([_.z4("data"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],$h.prototype,"onDataChanged",null);_.x([_.z4("data","isCollapsed"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],$h.prototype,"updateExpandCollapseButton",null);$h=_.x([_.f({disableElementRegistration:!0,is:"ytd-sponsorships-expandable-perks-renderer"})],$h);
_.C($h,"ytd-sponsorships-expandable-perks-renderer",function(){if(x4H!==void 0)return x4H;var S=document.createElement("template");_.h(S,'\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');
S.content.insertBefore(_.t().content.cloneNode(!0),S.content.firstChild);return x4H=S},{mode:1});var vJP;var iF=function(){return _.w.apply(this,arguments)||this};
_.r(iF,_.w);iF.prototype.handleAction=function(){this.data&&this.data.command&&this.ytComponentBehavior.resolveCommand(this.data.command)};
_.x([_.F(_.eL.YtComponentBehavior),_.E("design:type",Object)],iF.prototype,"ytComponentBehavior",void 0);_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],iF.prototype,"ytRendererBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],iF.prototype,"data",void 0);iF=_.x([_.f({disableElementRegistration:!0,is:"ytd-sponsorships-actionable-message-renderer"})],iF);
_.C(iF,"ytd-sponsorships-actionable-message-renderer",function(){if(vJP!==void 0)return vJP;var S=document.createElement("template");_.h(S,'\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');
S.content.insertBefore(_.t().content.cloneNode(!0),S.content.firstChild);return vJP=S},{mode:1});var $4t;var Ng=function(){return _.w.apply(this,arguments)||this};
_.r(Ng,_.w);_.M=Ng.prototype;_.M.configureRendererStamper=function(){return{"data.expandableItems":{id:"content-container",mapping:{sponsorshipsPerksRenderer:{component:"ytd-sponsorships-perks-renderer"},sponsorshipsTierRenderer:{component:"ytd-sponsorships-tier-renderer"}}}}};
_.M.getExpansionIcon=function(S){return S?"yt-icons:arrow_drop_up":"yt-icons:arrow_drop_down"};
_.M.onToggleExpand=function(){this.data.expandableItems&&this.set("expanded",!this.get("expanded"))};
_.M.computeMessageContainerStyle=function(S){var p=S.expandableItems?" style-clickable":"";return S.messageContainerStyle?S.messageContainerStyle.split("MESSAGE_CONTAINER_")[1].replace(/_/g,"-").toLowerCase()+p:"style-unspecified"+p};
_.M.isSinglePerk=function(S){return!!S.messageContainerStyle&&(S.messageContainerStyle==="MESSAGE_CONTAINER_STYLE_SINGLE_PERK"||S.messageContainerStyle==="MESSAGE_CONTAINER_STYLE_SINGLE_PERK_FIRST")};
_.M.onExpandedChanged=function(){var S=this;if(this.expanded)for(var p=_.d(this.hostElement.querySelectorAll("yt-img-shadow")),U=p.next();!U.done;U=p.next())U.value.onShow();_.oH(this,function(){_.cv(S.hostElement,"yt-refit")})};
_.M.onDataChanged=function(){this.get("data.startExpanded")&&(this.expanded=!0)};
Ng.prototype.onDataChanged=Ng.prototype.onDataChanged;Ng.prototype.onExpandedChanged=Ng.prototype.onExpandedChanged;_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],Ng.prototype,"ytRendererBehavior",void 0);_.x([_.F(_.qH.YtRendererstamperBehavior),_.E("design:type",Object)],Ng.prototype,"ytRendererstamperBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],Ng.prototype,"data",void 0);_.x([_.g({value:!1}),_.E("design:type",Boolean)],Ng.prototype,"expanded",void 0);
_.x([_.T4("expanded"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],Ng.prototype,"onExpandedChanged",null);_.x([_.T4("data"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],Ng.prototype,"onDataChanged",null);Ng=_.x([_.f({disableElementRegistration:!0,is:"ytd-sponsorships-expandable-message-renderer"})],Ng);
_.C(Ng,"ytd-sponsorships-expandable-message-renderer",function(){if($4t!==void 0)return $4t;var S=document.createElement("template");_.h(S,'\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');
S.content.insertBefore(_.t().content.cloneNode(!0),S.content.firstChild);return $4t=S},{mode:_.UW("kevlar_poly_si_batch_j028")?1:2});var iMt;var B8=function(){return _.w.apply(this,arguments)||this};
_.r(B8,_.w);B8.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"}}}}};
B8.prototype.onDataChanged=function(){this.get("data.endButton.buttonRenderer.text")&&this.get("data.endButton.buttonRenderer.icon")&&(_.b(this.data.endButton,_.XT).iconPosition="BUTTON_ICON_POSITION_TYPE_RIGHT_OF_TEXT")};
B8.prototype.onDataChanged=B8.prototype.onDataChanged;_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],B8.prototype,"ytRendererBehavior",void 0);_.x([_.F(_.qH.YtRendererstamperBehavior),_.E("design:type",Object)],B8.prototype,"ytRendererstamperBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],B8.prototype,"data",void 0);_.x([_.T4("data"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],B8.prototype,"onDataChanged",null);
B8=_.x([_.f({disableElementRegistration:!0,is:"ytd-sponsorships-heading-renderer"})],B8);
_.C(B8,"ytd-sponsorships-heading-renderer",function(){if(iMt!==void 0)return iMt;var S=document.createElement("template");_.h(S,'\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');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);return iMt=S},{mode:1});var NDE;var qg=function(){return _.w.apply(this,arguments)||this};
_.r(qg,_.w);_.x([_.g(),_.E("design:type",Object)],qg.prototype,"data",void 0);_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],qg.prototype,"ytRendererBehavior",void 0);qg=_.x([_.f({disableElementRegistration:!0,is:"ytd-sponsorships-links-renderer"})],qg);
_.C(qg,"ytd-sponsorships-links-renderer",function(){if(NDE!==void 0)return NDE;var S=document.createElement("template");_.h(S,'\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');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);return NDE=S},{mode:1});var BDH;var A5=function(){return _.w.apply(this,arguments)||this};
_.r(A5,_.w);_.M=A5.prototype;_.M.onDataChanged=function(){if(this.data&&this.data.expandableItems){var S;(S=_.tB(this.hostElement).querySelector("tp-yt-paper-button"))==null||S.setAttribute("role","button")}else{var p;(p=_.tB(this.hostElement).querySelector("tp-yt-paper-button"))==null||p.removeAttribute("role")}};
_.M.onToggleExpand=function(){this.data&&this.data.expandableItems&&this.set("expanded",!this.get("expanded"))};
_.M.getExpansionIcon=function(S){return S?"yt-icons:arrow_drop_up":"yt-icons:arrow_drop_down"};
_.M.getTileClasses=function(S){return S?"tile expandable-tile":"tile"};
_.M.getButtonDisabled=function(S){return S?void 0:""};
A5.prototype.onDataChanged=A5.prototype.onDataChanged;_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],A5.prototype,"ytRendererBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],A5.prototype,"data",void 0);_.x([_.g({value:!1}),_.E("design:type",Boolean)],A5.prototype,"expanded",void 0);_.x([_.T4("data"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],A5.prototype,"onDataChanged",null);
A5=_.x([_.f({disableElementRegistration:!0,is:"ytd-sponsorships-list-tile-renderer"})],A5);
_.C(A5,"ytd-sponsorships-list-tile-renderer",function(){if(BDH!==void 0)return BDH;var S=document.createElement("template");_.h(S,'\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');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);return BDH=S},{mode:1});var qUt;var ApH;var t5=function(){return _.w.apply(this,arguments)||this};
_.r(t5,_.w);t5.prototype.configureRendererStamper=function(){return{"data.redeemButton":{id:"redeem-button",mapping:{buttonRenderer:{component:"yt-button-renderer"}}}}};
_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],t5.prototype,"ytRendererBehavior",void 0);_.x([_.F(_.qH.YtRendererstamperBehavior),_.E("design:type",Object)],t5.prototype,"ytRendererstamperBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],t5.prototype,"data",void 0);t5=_.x([_.f({disableElementRegistration:!0,is:"ytd-sponsorships-promotion-renderer"})],t5);
_.C(t5,"ytd-sponsorships-promotion-renderer",function(){if(ApH!==void 0)return ApH;var S=document.createElement("template");_.h(S,'\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');
S.content.insertBefore(_.t().content.cloneNode(!0),S.content.firstChild);return ApH=S},{mode:1});var t1Q;var c8=function(){return _.w.apply(this,arguments)||this};
_.r(c8,_.w);c8.prototype.configureRendererStamper=function(){return{"data.button":{id:"purchase-button",mapping:{buttonRenderer:{component:"yt-button-renderer"}}}}};
_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],c8.prototype,"ytRendererBehavior",void 0);_.x([_.F(_.qH.YtRendererstamperBehavior),_.E("design:type",Object)],c8.prototype,"ytRendererstamperBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],c8.prototype,"data",void 0);c8=_.x([_.f({disableElementRegistration:!0,is:"ytd-sponsorships-purchase-option-renderer"})],c8);
_.C(c8,"ytd-sponsorships-purchase-option-renderer",function(){if(t1Q!==void 0)return t1Q;var S=document.createElement("template");_.h(S,'\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');
S.content.insertBefore(_.t().content.cloneNode(!0),S.content.firstChild);return t1Q=S},{mode:1});var cpc;var Sdm;var S3=function(){return _.w.apply(this,arguments)||this};
_.r(S3,_.w);_.x([_.g(),_.E("design:type",Object)],S3.prototype,"data",void 0);S3=_.x([_.f({disableElementRegistration:!0,is:"ytd-ypc-offer-promo-renderer"})],S3);
_.C(S3,"ytd-ypc-offer-promo-renderer",function(){if(Sdm!==void 0)return Sdm;var S=document.createElement("template");_.h(S,'\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>');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);return Sdm=S},{mode:1});var pR=function(){return _.w.apply(this,arguments)||this};
_.r(pR,_.w);_.M=pR.prototype;
_.M.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"}}}}};
_.M.expansionCTA=function(S,p){return S&&(p?S.collapseCallToAction:S.expansionCallToAction)};
_.M.getExpansionIcon=function(S){return S?"arrow_drop_up":"arrow_drop_down"};
_.M.expansionCallToActionTap=function(){var S=this;this.expanded=!this.expanded;_.oH(this,function(){_.cv(S.hostElement,"yt-refit")})};
_.M.onDataChanged=function(){this.expanded=!this.get("data.expansionCallToAction");this.purchaseButtonClicked=!1;var S,p=(S=this.data)==null?void 0:S.onVisible;p&&this.ytComponentBehavior.resolveCommand(p)};
_.M.computeDisplayTitle=function(S){return!(!S||this.titledisplaystatus!=="show")};
_.M.computeDisplaySeparator=function(){return!1};
_.M.onPurchaseButtonTap=function(){this.purchaseButtonClicked=!0};
pR.prototype.onDataChanged=pR.prototype.onDataChanged;_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],pR.prototype,"ytRendererBehavior",void 0);_.x([_.F(_.eL.YtComponentBehavior),_.E("design:type",Object)],pR.prototype,"ytComponentBehavior",void 0);_.x([_.F(_.qH.YtRendererstamperBehavior),_.E("design:type",Object)],pR.prototype,"ytRendererstamperBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],pR.prototype,"data",void 0);
_.x([_.g({value:!1}),_.E("design:type",Boolean)],pR.prototype,"expanded",void 0);_.x([_.g({value:!1}),_.E("design:type",Boolean)],pR.prototype,"purchaseButtonClicked",void 0);_.x([_.g({reflectToAttribute:!0,value:"show"}),_.E("design:type",String)],pR.prototype,"titledisplaystatus",void 0);_.x([_.g({computed:"computeDisplayTitle(data.title)"}),_.E("design:type",Boolean)],pR.prototype,"displayTitle",void 0);
_.x([_.g({computed:"computeDisplaySeparator(data)"}),_.E("design:type",Boolean)],pR.prototype,"displaySeparator",void 0);_.x([_.z4("data"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],pR.prototype,"onDataChanged",null);pR=_.x([_.f({disableElementRegistration:!0,is:"ytd-sponsorships-tier-renderer"})],pR);
_.C(pR,"ytd-sponsorships-tier-renderer",function(){if(cpc!==void 0)return cpc;var S=document.createElement("template");_.h(S,'\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');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);return cpc=S},{mode:2});var UY=function(){return _.w.apply(this,arguments)||this};
_.r(UY,_.w);
UY.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"}}}}};
_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],UY.prototype,"ytRendererBehavior",void 0);_.x([_.F(_.qH.YtRendererstamperBehavior),_.E("design:type",Object)],UY.prototype,"ytRendererstamperBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],UY.prototype,"data",void 0);UY=_.x([_.f({disableElementRegistration:!0,is:"ytd-sponsorships-management-renderer"})],UY);
_.C(UY,"ytd-sponsorships-management-renderer",function(){if(qUt!==void 0)return qUt;var S=document.createElement("template");_.h(S,'\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');
S.content.insertBefore(_.t().content.cloneNode(!0),S.content.firstChild);return qUt=S},{mode:1});var pMt;var Y6=function(){return _.w.apply(this,arguments)||this};
_.r(Y6,_.w);_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],Y6.prototype,"ytRendererBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],Y6.prototype,"data",void 0);Y6=_.x([_.f({disableElementRegistration:!0,is:"ytd-open-in-native-app-view-model"})],Y6);
_.C(Y6,"ytd-open-in-native-app-view-model",function(){if(pMt!==void 0)return pMt;var S=document.createElement("template");_.h(S,'\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');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);return pMt=S},{mode:_.UW("kevlar_poly_si_batch_j028")?1:2});var URw;var Ydl;var LOQ=_.x1(["top-"]),Mzq=_.x1(["bottom-"]),IIj=_.x1(["left-"]),dRH=_.x1(["right-"]),VzE={},Tgq=function(S,p,U){S.removeAttribute("top-"+U);S.removeAttribute("bottom-"+U);S.removeAttribute("left-"+U);S.removeAttribute("right-"+U);p&&(p.top&&_.xq([_.Sb(LOQ)],S,"top-"+U,p.top),p.bottom&&_.xq([_.Sb(Mzq)],S,"bottom-"+U,p.bottom),p.left&&_.xq([_.Sb(IIj)],S,"left-"+U,p.left),p.right&&_.xq([_.Sb(dRH)],S,"right-"+U,p.right))};
VzE.YtCardItemBoxBehavior=[{observers:["cardItemContainerMarginChanged_(data.containerMargin)","cardItemContainerPaddingChanged_(data.containerPadding)"],created:function(){this.cardItemBoxBehaviorPaddingTargetId=""},
cardItemContainerMarginChanged_:function(S){var p,U=_.tB((p=this.hostElement)!=null?p:this),Y;p=this.cardItemBoxBehaviorMarginTargetId&&U?U.querySelector("#"+this.cardItemBoxBehaviorMarginTargetId):(Y=this.hostElement)!=null?Y:this;Tgq(p,S,"margin")},
cardItemContainerPaddingChanged_:function(S){var p,U=_.tB((p=this.hostElement)!=null?p:this),Y;p=this.cardItemBoxBehaviorPaddingTargetId&&U?U.querySelector("#"+this.cardItemBoxBehaviorPaddingTargetId):(Y=this.hostElement)!=null?Y:this;Tgq(p,S,"padding")}}];var LR={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 WOe;var OoP;var MX=function(){return _.w.apply(this,arguments)||this};
_.r(MX,_.w);MX.prototype.textColorChanged_=function(){this.hostElement.style.color=LR[this.data.textColor||"CARD_ITEM_COLOR_TEXT_PRIMARY"]};
MX.prototype.textColorChanged_=MX.prototype.textColorChanged_;_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],MX.prototype,"ytRendererBehavior",void 0);_.x([_.F(VzE.YtCardItemBoxBehavior),_.E("design:type",Object)],MX.prototype,"ytCardItemBoxBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],MX.prototype,"data",void 0);_.x([_.T4("data.textColor"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],MX.prototype,"textColorChanged_",null);
MX=_.x([_.FB({is:"yt-card-item-text-renderer",disableElementRegistration:!0})],MX);
_.C(MX,"yt-card-item-text-renderer",function(){if(OoP===void 0){var S=document.createElement("template");_.h(S,'\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');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);var p=S.content,U=p.insertBefore;WOe===void 0&&(WOe=document.createElement("template"));var Y=WOe;U.call(p,Y.content.cloneNode(!0),S.content.firstChild);OoP=S}S=OoP;return S},{mode:2});var kut;var HoE;var Ie=function(){return _.w.apply(this,arguments)||this};
_.r(Ie,_.w);_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],Ie.prototype,"ytRendererBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],Ie.prototype,"data",void 0);Ie=_.x([_.FB({is:"yt-card-item-badge-renderer",disableElementRegistration:!0})],Ie);
_.C(Ie,"yt-card-item-badge-renderer",function(){if(HoE===void 0){var S=document.createElement("template");_.h(S,'\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');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);var p=S.content,U=p.insertBefore;kut===void 0&&(kut=document.createElement("template"));var Y=kut;U.call(p,Y.content.cloneNode(!0),S.content.firstChild);HoE=S}S=HoE;return S},{mode:2});var DRw;var zNj;var dQ=function(){return _.w.apply(this,arguments)||this};
_.r(dQ,_.w);dQ.prototype.configureRendererStamper=function(){return{"data.textRenderers":{id:"text-renderers",mapping:{cardItemTextRenderer:{component:"yt-card-item-text-renderer"},cardItemBadgeRenderer:{component:"yt-card-item-badge-renderer"}}}}};
_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],dQ.prototype,"ytRendererBehavior",void 0);_.x([_.F(_.qH.YtRendererstamperBehavior),_.E("design:type",Object)],dQ.prototype,"ytRendererstamperBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],dQ.prototype,"data",void 0);dQ=_.x([_.FB({is:"yt-card-item-text-collection-renderer",disableElementRegistration:!0})],dQ);
_.C(dQ,"yt-card-item-text-collection-renderer",function(){if(zNj===void 0){var S=document.createElement("template");_.h(S,'\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');
S.content.insertBefore(_.t().content.cloneNode(!0),S.content.firstChild);var p=S.content,U=p.insertBefore;DRw===void 0&&(DRw=document.createElement("template"));var Y=DRw;U.call(p,Y.content.cloneNode(!0),S.content.firstChild);zNj=S}S=zNj;return S},{mode:2});var Qhl;var ncH;var VA=function(){return _.w.apply(this,arguments)||this};
_.r(VA,_.w);VA.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]]"}}}}}};
_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],VA.prototype,"ytRendererBehavior",void 0);_.x([_.F(_.qH.YtRendererstamperBehavior),_.E("design:type",Object)],VA.prototype,"ytRendererstamperBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],VA.prototype,"data",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Number)],VA.prototype,"iconSize",void 0);VA=_.x([_.FB({is:"yt-card-item-text-with-button-renderer",disableElementRegistration:!0})],VA);
_.C(VA,"yt-card-item-text-with-button-renderer",function(){if(ncH===void 0){var S=document.createElement("template");_.h(S,'\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');
S.content.insertBefore(_.t().content.cloneNode(!0),S.content.firstChild);var p=S.content,U=p.insertBefore;Qhl===void 0&&(Qhl=document.createElement("template"));var Y=Qhl;U.call(p,Y.content.cloneNode(!0),S.content.firstChild);ncH=S}S=ncH;return S},{mode:2});var TH=function(){return _.w.apply(this,arguments)||this};
_.r(TH,_.w);TH.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"}}}};
_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],TH.prototype,"ytRendererBehavior",void 0);_.x([_.F(_.eL.YtComponentBehavior),_.E("design:type",Object)],TH.prototype,"ytComponentBehavior",void 0);_.x([_.F(_.qH.YtRendererstamperBehavior),_.E("design:type",Object)],TH.prototype,"ytRendererstamperBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],TH.prototype,"data",void 0);TH=_.x([_.f({disableElementRegistration:!0,is:"ytd-commerce-cart-summary-line-item-renderer"})],TH);
_.C(TH,"ytd-commerce-cart-summary-line-item-renderer",function(){if(Ydl!==void 0)return Ydl;var S=document.createElement("template");_.h(S,'\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');
S.content.insertBefore(_.t().content.cloneNode(!0),S.content.firstChild);return Ydl=S},{mode:1});_.Ry("cardItemSection","commerceCartCheckoutButtonRenderer",{component:"ytd-commerce-cart-checkout-button-renderer",noInjection:!0,properties:{compact:"[[compact]]"}});var Wq=function(){var S=_.w.apply(this,arguments)||this;S.hidden=!1;return S};
_.r(Wq,_.w);_.M=Wq.prototype;_.M.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"}}}}};
_.M.entityChanged=function(){this.commerceCartCheckoutButtonEntity&&(this.updateCheckoutButton(),this.updateIsHidden(),this.updateSummary())};
_.M.updateSummary=function(){var S=this.commerceCartCheckoutButtonEntity,p;if(((p=this.data)==null?0:p.cartButton)&&S.checkoutSummaryText){var U,Y=Zp((U=this.data)==null?void 0:U.estimatedTotalLineItem,"summaryText");this.set("data.estimatedTotalLineItem."+Y+".cardItemTextRenderer.text",sE(S.checkoutSummaryText));if(S.checkoutDetailText){var L;U=Zp((L=this.data)==null?void 0:L.estimatedTotalLineItem,"price");this.set("data.estimatedTotalLineItem."+U+".cardItemTextRenderer.text",sE(S.checkoutDetailText))}if(S.checkoutAdditionalMetadataText){var I;
L=Zp((I=this.data)==null?void 0:I.estimatedTotalLineItem,"additionalMetadataText");this.set("data.estimatedTotalLineItem."+L+".cardItemTextRenderer.text",sE(S.checkoutAdditionalMetadataText))}}else S.estimatedTotalPrice&&(I=Zp((Y=this.data)==null?void 0:Y.estimatedTotalLineItem,"price"),this.set("data.estimatedTotalLineItem."+I+".cardItemTextRenderer.text",sE(S.estimatedTotalPrice)))};
_.M.updateIsHidden=function(){var S,p=(S=this.commerceCartCheckoutButtonEntity)==null?void 0:S.isHidden;p!==void 0&&(this.hidden=p)};
_.M.updateCheckoutButton=function(){var S,p=(S=this.commerceCartCheckoutButtonEntity)==null?void 0:S.isDisabled;p!==void 0&&this.set("data.checkoutButton.buttonRenderer.isDisabled",p);var U;S=(U=this.commerceCartCheckoutButtonEntity.checkoutButtonCommand)==null?void 0:U.innertubeCommand;S!==void 0&&this.set("data.checkoutButton.buttonRenderer.command",S);var Y;U=(Y=this.commerceCartCheckoutButtonEntity)==null?void 0:Y.checkoutButtonText;U!==void 0&&this.set("data.checkoutButton.buttonRenderer.text",
{simpleText:U})};
Wq.prototype.entityChanged=Wq.prototype.entityChanged;_.x([_.F(_.Xh),_.E("design:type",Object)],Wq.prototype,"ytdReduxBehavior",void 0);_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],Wq.prototype,"ytRendererBehavior",void 0);_.x([_.F(_.eL.YtComponentBehavior),_.E("design:type",Object)],Wq.prototype,"ytComponentBehavior",void 0);_.x([_.F(_.qH.YtRendererstamperBehavior),_.E("design:type",Object)],Wq.prototype,"ytRendererstamperBehavior",void 0);
_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Boolean)],Wq.prototype,"fullWidth",void 0);_.x([_.g(),_.E("design:type",Object)],Wq.prototype,"data",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Boolean)],Wq.prototype,"compact",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],Wq.prototype,"hidden",void 0);
_.x([_.g({selectorArgs:["data.commerceCartCheckoutButtonEntityKey"],selector:ZFr}),_.E("design:type",Object)],Wq.prototype,"commerceCartCheckoutButtonEntity",void 0);_.x([_.T4("commerceCartCheckoutButtonEntity","data"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],Wq.prototype,"entityChanged",null);Wq=_.x([_.f({disableElementRegistration:!0,is:"ytd-commerce-cart-checkout-button-renderer"})],Wq);
_.C(Wq,"ytd-commerce-cart-checkout-button-renderer",function(){if(URw!==void 0)return URw;var S=document.createElement("template");_.h(S,'\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');
S.content.insertBefore(_.t().content.cloneNode(!0),S.content.firstChild);return URw=S},{mode:2});var JXE;_.yXe={};
_.yXe.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",_.d9(this,this.tappableItemBehaviorBoundOnTappableItemTap_))},
detached:function(){this.tappableItemBehaviorGetTappableTarget_().removeEventListener("keydown",this.tappableItemBehaviorBoundOnTappableItemKeyDown_,!0);this.tappableItemBehaviorGetTappableTarget_().removeEventListener("click",_.d9(this,this.tappableItemBehaviorBoundOnTappableItemTap_))},
tappableItemBehaviorOnTappableItemKeyDown_:function(S){!this.tappableItemBehaviorTapEnabled||S.keyCode!==13&&S.keyCode!==32||S.target!=this.tappableItemBehaviorGetTappableTarget_()||this.tappableItemBehaviorHandleTappableItemTap_()},
tappableItemBehaviorOnTappableItemTap_:function(){this.tappableItemBehaviorTapEnabled&&this.tappableItemBehaviorHandleTappableItemTap_()},
tappableItemBehaviorHandleTappableItemTap_:function(){var S=this.data.onTap;S.ypcGetCartEndpoint?(_.Yd(this.hostElement,[S]),this.tappableItemBehaviorTapEnabled=!1):S.ypcOffersEndpoint?_.Yd(this.hostElement,[S]):_.Lp(this.hostElement,[S],this.hostElement)},
tappableItemBehaviorOnTapChanged_:function(S){this.tappableItemBehaviorTapEnabled=!!S},
tappableItemBehaviorOnTapEnabledChanged_:function(){var S=this.tappableItemBehaviorGetTappableTarget_();this.tappableItemBehaviorTapEnabled?(S.setAttribute("tabIndex",0),S.setAttribute("role","button")):(S.removeAttribute("tabIndex"),S.removeAttribute("role"))},
tappableItemBehaviorOnServiceRequestFinished_:function(S){S.target==this&&(this.tappableItemBehaviorTapEnabled=!!this.data.onTap)},
tappableItemBehaviorGetTappableTarget_:function(){return this.tappableItemBehaviorTargetId?this.$[this.tappableItemBehaviorTargetId]:this.hostElement}}];var KOw;var boI;var OY=function(){return _.w.apply(this,arguments)||this};
_.r(OY,_.w);OY.prototype.configureRendererStamper=function(){return{"data.primaryButtonRenderer":{id:"primary-button-renderer",mapping:_.Fc("sharingToggleButtonAndDefaultButton")},"data.secondaryButtonRenderer":{id:"secondary-button-renderer",mapping:_.Fc("sharingToggleButtonAndDefaultButton")}}};
_.x([_.F(_.qH.YtRendererstamperBehavior),_.E("design:type",Object)],OY.prototype,"ytRendererstamperBehavior",void 0);_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],OY.prototype,"ytRendererBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],OY.prototype,"data",void 0);OY=_.x([_.FB({is:"yt-card-item-actions-renderer",disableElementRegistration:!0})],OY);
_.C(OY,"yt-card-item-actions-renderer",function(){if(boI===void 0){var S=document.createElement("template");_.h(S,'\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');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);var p=S.content,U=p.insertBefore;KOw===void 0&&(KOw=document.createElement("template"));var Y=KOw;U.call(p,Y.content.cloneNode(!0),S.content.firstChild);boI=S}S=boI;return S},{mode:2});var jhe;var rXP;var Guw;var hNc;var RNj;var FOc;var k6=function(){var S=_.w.apply(this,arguments)||this;S.actionMap={"yt-dark-mode-toggled-action":"handleDarkModeToggledAction_"};return S};
_.r(k6,_.w);k6.prototype.attached=function(){this.isDarkTheme_=document.documentElement.hasAttribute("dark")};
k6.prototype.handleDarkModeToggledAction_=function(S){this.isDarkTheme_=S};
k6.prototype.computeThemeImage_=function(S,p){if(!S||!S.imageLight)return!1;this.isCircular_=S.isCircular;S.imageWidth&&(this.hostElement.style.width=S.imageWidth+"px");S.imageHeight&&(this.hostElement.style.height=S.imageHeight+"px");S.borderWidth&&(this.image.style.borderWidth=S.borderWidth+"px",this.image.style.borderStyle="solid");S.borderColor&&(this.image.style.borderColor=_.ev(S.borderColor));return p&&S.imageDark?S.imageDark:S.imageLight};
k6.prototype.computeThemeIcon_=function(S){var p,U;if(!(S==null?0:(p=S.themedIcon)==null?0:(U=p.icon)==null?0:U.iconType))return!1;this.icon.style.color=LR[S.themedIcon.iconColor||"CARD_ITEM_COLOR_GENERAL_BACKGROUND_A"];this.icon.style.width=(S.imageWidth||18)+"px";this.icon.style.height=(S.imageHeight||18)+"px";return _.If(S.themedIcon.icon.iconType)};
_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],k6.prototype,"ytRendererBehavior",void 0);_.x([_.F(_.qH.YtRendererstamperBehavior),_.E("design:type",Object)],k6.prototype,"ytRendererstamperBehavior",void 0);_.x([_.F(VzE.YtCardItemBoxBehavior),_.E("design:type",Object)],k6.prototype,"ytCardItemBoxBehavior",void 0);_.x([_.F(_.Aj.YtActionHandlerBehavior),_.E("design:type",Object)],k6.prototype,"ytActionHandlerBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],k6.prototype,"data",void 0);
_.x([_.g({value:!1}),_.E("design:type",Boolean)],k6.prototype,"fit",void 0);_.x([_.g(),_.E("design:type",Boolean)],k6.prototype,"isDarkTheme_",void 0);_.x([_.g({computed:"computeThemeImage_(data, isDarkTheme_)"}),_.E("design:type",Object)],k6.prototype,"themeImage_",void 0);_.x([_.g({computed:"computeThemeIcon_(data)"}),_.E("design:type",Object)],k6.prototype,"themeIcon_",void 0);_.x([_.g({reflectToAttribute:!0,value:!1}),_.E("design:type",Object)],k6.prototype,"isCircular_",void 0);
_.x([_.O2("#image"),_.E("design:type",Object)],k6.prototype,"image",void 0);_.x([_.O2("#icon"),_.E("design:type",Object)],k6.prototype,"icon",void 0);k6=_.x([_.FB({is:"yt-themed-image-renderer",disableElementRegistration:!0})],k6);
_.C(k6,"yt-themed-image-renderer",function(){if(FOc===void 0){var S=document.createElement("template");_.h(S,'\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');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);var p=S.content,U=p.insertBefore;RNj===void 0&&(RNj=document.createElement("template"));var Y=RNj;U.call(p,Y.content.cloneNode(!0),S.content.firstChild);FOc=S}S=FOc;return S},{mode:2});var Hq=function(){return _.w.apply(this,arguments)||this};
_.r(Hq,_.w);Hq.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"}}}}};
Hq.prototype.computeImagePlacement_=function(S){return S||"CARD_ITEM_IMAGE_PLACEMENT_UNKNOWN"};
_.x([_.F(_.qH.YtRendererstamperBehavior),_.E("design:type",Object)],Hq.prototype,"ytRendererstamperBehavior",void 0);_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],Hq.prototype,"ytRendererBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],Hq.prototype,"data",void 0);_.x([_.g({value:"CARD_ITEM_IMAGE_PLACEMENT_UNKNOWN",computed:"computeImagePlacement_(data.imagePlacement)",reflectToAttribute:!0}),_.E("design:type",String)],Hq.prototype,"imagePlacement",void 0);
Hq=_.x([_.FB({is:"yt-card-item-text-with-image-renderer",disableElementRegistration:!0})],Hq);
_.C(Hq,"yt-card-item-text-with-image-renderer",function(){if(hNc===void 0){var S=document.createElement("template");_.h(S,'\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');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);var p=S.content,U=p.insertBefore;Guw===void 0&&(Guw=document.createElement("template"));var Y=Guw;U.call(p,Y.content.cloneNode(!0),S.content.firstChild);hNc=S}S=hNc;return S},{mode:2});var DK=function(){return _.w.apply(this,arguments)||this};
_.r(DK,_.w);DK.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"}}}}};
_.x([_.F(_.qH.YtRendererstamperBehavior),_.E("design:type",Object)],DK.prototype,"ytRendererstamperBehavior",void 0);_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],DK.prototype,"ytRendererBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],DK.prototype,"data",void 0);DK=_.x([_.FB({is:"yt-card-item-error-renderer",disableElementRegistration:!0})],DK);
_.C(DK,"yt-card-item-error-renderer",function(){if(rXP===void 0){var S=document.createElement("template");_.h(S,'\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');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);var p=S.content,U=p.insertBefore;jhe===void 0&&(jhe=document.createElement("template"));var Y=jhe;U.call(p,Y.content.cloneNode(!0),S.content.firstChild);rXP=S}S=rXP;return S},{mode:2});var XMq;var PPd;_.Ry("itemSectionRenderer","CardItemRenderer","yt-card-item-renderer");var zH=function(){return _.w.apply(this,arguments)||this};
_.r(zH,_.w);_.M=zH.prototype;
_.M.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"}}}}};
_.M.created=function(){this.tappableItemBehaviorTargetId=this.cardItemBoxBehaviorPaddingTargetId="main-content"};
_.M.backgroundColorChanged_=function(){var S,p=(S=this.data)==null?void 0:S.backgroundColor;S=LR[p||"CARD_ITEM_COLOR_UNKNOWN"]||"transparent";_.tB(this.hostElement).querySelector("#main-content").style.backgroundColor=S};
_.M.headerPromoBackgroundColorChanged_=function(){var S,p=(S=this.data)==null?void 0:S.headerPromoBackgroundColor;S=LR[p||"CARD_ITEM_COLOR_UNKNOWN"]||"transparent";_.tB(this.hostElement).querySelector("#header-promo-renderer").style.backgroundColor=S};
_.M.errorRendererVisibilityChanged_=function(){var S=this.isExpanded_,p;this.isErrorRendererVisible_=!((p=this.data)==null||!p.errorRenderer)&&!S};
_.M.onYtToggleButton_=function(S,p){this.isExpanded_=p.toggled};
zH.prototype.onYtToggleButton_=zH.prototype.onYtToggleButton_;zH.prototype.errorRendererVisibilityChanged_=zH.prototype.errorRendererVisibilityChanged_;zH.prototype.headerPromoBackgroundColorChanged_=zH.prototype.headerPromoBackgroundColorChanged_;zH.prototype.backgroundColorChanged_=zH.prototype.backgroundColorChanged_;_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],zH.prototype,"ytRendererBehavior",void 0);
_.x([_.F(_.qH.YtRendererstamperBehavior),_.E("design:type",Object)],zH.prototype,"ytRendererstamperBehavior",void 0);_.x([_.F(VzE.YtCardItemBoxBehavior),_.E("design:type",Object)],zH.prototype,"ytCardItemBoxBehavior",void 0);_.x([_.F(_.yXe.YtTappableItemBehavior),_.E("design:type",Object)],zH.prototype,"ytTappableItemBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],zH.prototype,"data",void 0);_.x([_.g({value:!1}),_.E("design:type",Boolean)],zH.prototype,"isExpanded_",void 0);
_.x([_.g({value:!1}),_.E("design:type",Boolean)],zH.prototype,"isErrorRendererVisible_",void 0);_.x([_.T4("data.backgroundColor"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],zH.prototype,"backgroundColorChanged_",null);_.x([_.T4("data.headerPromoBackgroundColor"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],zH.prototype,"headerPromoBackgroundColorChanged_",null);
_.x([_.T4("data.errorRenderer","isExpanded_"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],zH.prototype,"errorRendererVisibilityChanged_",null);_.x([_.Vd("yt-toggle-button"),_.E("design:type",Function),_.E("design:paramtypes",[Event,Object]),_.E("design:returntype")],zH.prototype,"onYtToggleButton_",null);zH=_.x([_.FB({is:"yt-card-item-renderer",disableElementRegistration:!0})],zH);
_.C(zH,"yt-card-item-renderer",function(){if(PPd===void 0){var S=document.createElement("template");_.h(S,'\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');
S.content.insertBefore(_.t().content.cloneNode(!0),S.content.firstChild);var p=S.content,U=p.insertBefore;XMq===void 0&&(XMq=document.createElement("template"));var Y=XMq;U.call(p,Y.content.cloneNode(!0),S.content.firstChild);PPd=S}S=PPd;return S},{mode:2});_.Ry("cardItemSection","commerceCartHeaderRenderer",{component:"ytd-commerce-cart-header-renderer",noInjection:!0});var QA=function(){var S=_.w.apply(this,arguments)||this;S.hidden=!1;return S};
_.r(QA,_.w);_.M=QA.prototype;_.M.configureRendererStamper=function(){return{"data.item":{id:"item",mapping:{cardItemRenderer:"yt-card-item-renderer"}}}};
_.M.entityChanged=function(){this.commerceCartHeaderEntity&&(this.updateIsHidden(),this.updateSummaryText(),this.updateCheckoutButton(),this.updateTitle())};
_.M.updateIsHidden=function(){if(this.compact)this.hidden=!1;else{var S,p=(S=this.commerceCartHeaderEntity)==null?void 0:S.isHidden;p!==void 0&&(this.hidden=p)}};
_.M.updateTitle=function(){var S=this.commerceCartHeaderEntity.isDisabled,p,U,Y=(U=_.b((p=this.data)==null?void 0:p.item,e2t))==null?void 0:U.headingRenderer;Y&&(p=Zp(Y,"textRenderers"),this.set("data.item.cardItemRenderer.headingRenderer."+p+".0.cardItemTextRenderer.textColor",S?"CARD_ITEM_COLOR_TEXT_DISABLED":"CARD_ITEM_COLOR_TEXT_PRIMARY"))};
_.M.updateSummaryText=function(){var S=this.commerceCartHeaderEntity;if(this.compact){var p,U,Y=(U=_.b((p=this.data)==null?void 0:p.item,e2t))==null?void 0:U.headingRenderer;Y&&(p=Zp(Y,"textRenderers"),this.set("data.item.cardItemRenderer.headingRenderer."+p+".1.cardItemTextRenderer.text",S.shortHeaderSummaryText?sE(S.shortHeaderSummaryText):S.headerSummaryText?sE(S.headerSummaryText):""))}else{var L;if(p=(L=_.b((Y=this.data)==null?void 0:Y.item,e2t))==null?void 0:L.additionalInfoRenderer)p=Zp(p,
"cardItemTextRenderer"),this.set("data.item.cardItemRenderer.additionalInfoRenderer."+p+".text",S.headerSummaryText?sE(S.headerSummaryText):"")}};
_.M.updateCheckoutButton=function(){var S=this.commerceCartHeaderEntity,p,U,Y=(U=_.b((p=this.data)==null?void 0:p.item,e2t))==null?void 0:U.additionalInfoRenderer;p=Zp(Y,"buttonRenderer");var L;U=(L=this.commerceCartHeaderEntity)==null?void 0:L.isButtonDisabled;var I;L=(I=this.commerceCartHeaderEntity)==null?void 0:I.isButtonHidden;U!==void 0&&this.set("data.item.cardItemRenderer.additionalInfoRenderer."+p+".buttonRenderer.isDisabled",U);L!==void 0&&this.set("data.item.cardItemRenderer.additionalInfoRenderer.isHidden",
L);var V;S=(V=S.checkoutButtonCommand)==null?void 0:V.innertubeCommand;S!==void 0&&this.set("data.item.cardItemRenderer.additionalInfoRenderer."+p+".buttonRenderer.command",S)};
QA.prototype.entityChanged=QA.prototype.entityChanged;_.x([_.F(_.Xh),_.E("design:type",Object)],QA.prototype,"ytdReduxBehavior",void 0);_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],QA.prototype,"ytRendererBehavior",void 0);_.x([_.F(_.qH.YtRendererstamperBehavior),_.E("design:type",Object)],QA.prototype,"ytRendererstamperBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],QA.prototype,"data",void 0);
_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Boolean)],QA.prototype,"compact",void 0);_.x([_.g({selectorArgs:["data.commerceCartHeaderEntityKey"],selector:function(S,p){return _.I4(S.entities,"commerceCartHeaderEntity",p)}}),
_.E("design:type",Object)],QA.prototype,"commerceCartHeaderEntity",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],QA.prototype,"hidden",void 0);_.x([_.T4("commerceCartHeaderEntity","data"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],QA.prototype,"entityChanged",null);QA=_.x([_.f({disableElementRegistration:!0,is:"ytd-commerce-cart-header-renderer"})],QA);
_.C(QA,"ytd-commerce-cart-header-renderer",function(){if(JXE!==void 0)return JXE;var S=document.createElement("template");_.h(S,'\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');S.content.insertBefore(_.t().content.cloneNode(!0),S.content.firstChild);return JXE=S},{mode:1});var ZoI;var shw=_.OC(function(S,p){var U;return(U=S.onChangeCallback)==null?void 0:U.call(S,p)},1E3),eNc=_.$k(function(S){var p=S.data;
var U=S.iconMinus;S=S.iconPlus;var Y=function(){return!!p().disabled},L=_.d(_.kj(0,void 0,"r56zNb")),I=L.next().value,V=L.next().value;
L={};L=_.VD("yt-spec-quantity-incrementer-shape__icon",(L["yt-spec-quantity-incrementer-shape__icon--disabled"]=function(){return Y()||I()===(p().onRemoveCommand?0:1)},L));
var W={};W=_.VD("yt-spec-quantity-incrementer-shape__icon",(W["yt-spec-quantity-incrementer-shape__icon--disabled"]=function(){return I()>=p().maxValue||Y()},W));
var O={};O=_.VD("yt-spec-quantity-incrementer-shape__text",(O["yt-spec-quantity-incrementer-shape__text--invalid"]=function(){return I()>p().maxValue},O["yt-spec-quantity-incrementer-shape__text--text-disabled"]=Y,O));
var D=_.kL(function(){if(I()===1){var Q,J;(J=(Q=p()).onRemoveCommand)==null||J.call(Q)}Q=I()>p().maxValue?p().maxValue:I()-1;V(Q);shw(p(),Q);return!1}),z=_.kL(function(){if(I()===p().maxValue)return!1;
var Q=I()+1;V(Q);shw(p(),Q);return!1});
_.hW(function(){V(p().value)});
return _.H("quantity-incrementer-shape",null,_.H("div",{class:"yt-spec-quantity-incrementer-shape"},_.H("button",{class:"yt-spec-quantity-incrementer-shape__button",disabled:function(){return I()===(p().onRemoveCommand?0:1)||Y()},
"aria-label":function(){return I()!==1?p().minusLabel:p().minimumReachedLabel},
"on:click":D},_.H(_.yD,{model:{circular:!0}}),_.H("div",{class:"yt-spec-quantity-incrementer-shape__iconWrapper"},_.H("div",{class:L},U()))),_.H("div",{class:O},I),_.H("button",{class:"yt-spec-quantity-incrementer-shape__button",disabled:function(){return I()>=p().maxValue||Y()},
"aria-label":function(){return I()!==p().maxValue?p().plusLabel:p().maximumReachedLabel},
"on:click":z},_.H(_.yD,{model:{circular:!0}}),_.H("div",{class:"yt-spec-quantity-incrementer-shape__iconWrapper"},_.H("div",{class:W},S())))))},"Od");_.qm(_.$k(function(S){function p(){U().onRemoveCommand&&_.wx(U().onRemoveCommand)}
var U=S.data;var Y=_.Ty(lTw,function(){return U().quantityIncrementerEntityKey});
return _.H("yt-quantity-incrementer-view-model",null,_.H(eNc,{data:function(){var L=U(),I;var V=Y()?!((I=Y())==null||!I.disabled):!1;var W;I=Y()?(W=Y())==null?void 0:W.quantity:U().quantity;return YZw(L,V,p,I)},
iconMinus:function(){return _.H(_.QD,{icon:"BAR_HORIZONTAL",className:_.W7("yt-spec-quantity-incrementer-view-model","yt-spec-quantity-incrementer-view-model__quantity-incrementer-minus-icon")})},
iconPlus:function(){return _.H(_.QD,{icon:"ADD",className:_.W7("yt-spec-quantity-incrementer-view-model","yt-spec-quantity-incrementer-view-model__quantity-incrementer-plus-icon")})}}))},"Pd"),"yt-quantity-incrementer-view-model",{props:{data:_.x2}});var nR=function(){var S=_.w.apply(this,arguments)||this;S.compact=!1;S.hasQuantityIncrementer=!1;return S};
_.r(nR,_.w);nR.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"}}}};
nR.prototype.computeHasQuantityIncrementer=function(){var S;return!!_.b((S=this.data)==null?void 0:S.picker,lHI)};
nR.prototype.onLabelClick=function(){var S;(S=this.dropdownEl)==null||S.open()};
_.x([_.O2("ytd-dropdown-renderer"),_.E("design:type",Object)],nR.prototype,"dropdownEl",void 0);_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],nR.prototype,"ytRendererBehavior",void 0);_.x([_.F(_.qH.YtRendererstamperBehavior),_.E("design:type",Object)],nR.prototype,"ytRendererstamperBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],nR.prototype,"data",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",String)],nR.prototype,"quantityColor",void 0);
_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],nR.prototype,"compact",void 0);_.x([_.g({reflectToAttribute:!0,computed:"computeHasQuantityIncrementer(data)"}),_.E("design:type",Object)],nR.prototype,"hasQuantityIncrementer",void 0);nR=_.x([_.f({disableElementRegistration:!0,is:"ytd-commerce-cart-item-quantity-picker-renderer"})],nR);
_.C(nR,"ytd-commerce-cart-item-quantity-picker-renderer",function(){if(ZoI!==void 0)return ZoI;var S=document.createElement("template");_.h(S,'\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');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);return ZoI=S},{mode:1});var gcc;var u0c;var JP=function(){return _.w.apply(this,arguments)||this};
_.r(JP,_.w);JP.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
JP.prototype.entityChanged=function(){this.disabledCartItemEntity&&(this.updateTitle(),this.updateButton())};
JP.prototype.updateTitle=function(){var S=this.disabledCartItemEntity;S.disableActionName&&this.set("data.title",sE(S.disableActionName))};
JP.prototype.updateButton=function(){var S,p=(S=this.disabledCartItemEntity.undoCommand)==null?void 0:S.innertubeCommand;p!==void 0&&(this.set("data.actionButton.buttonRenderer.command",p),this.set("data.actionButton.buttonRenderer.isDisabled",!1))};
JP.prototype.entityChanged=JP.prototype.entityChanged;_.x([_.F(_.Xh),_.E("design:type",Object)],JP.prototype,"ytdReduxBehavior",void 0);_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],JP.prototype,"ytRendererBehavior",void 0);_.x([_.F(_.qH.YtRendererstamperBehavior),_.E("design:type",Object)],JP.prototype,"ytRendererstamperBehavior",void 0);_.x([_.g({selectorArgs:["data.disabledCartItemEntityKey"],selector:function(S,p){return _.I4(S.entities,"disabledCartItemEntity",p)}}),
_.E("design:type",Object)],JP.prototype,"disabledCartItemEntity",void 0);_.x([_.g(),_.E("design:type",Object)],JP.prototype,"data",void 0);_.x([_.T4("disabledCartItemEntity","data"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],JP.prototype,"entityChanged",null);JP=_.x([_.f({disableElementRegistration:!0,is:"ytd-disabled-cart-item-renderer"})],JP);
_.C(JP,"ytd-disabled-cart-item-renderer",function(){if(u0c!==void 0)return u0c;var S=document.createElement("template");_.h(S,'\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');
S.content.insertBefore(_.t().content.cloneNode(!0),S.content.firstChild);return u0c=S},{mode:1});_.Ry("cardItemSection","commerceCartItemRenderer",{component:"ytd-commerce-cart-item-renderer",noInjection:!0,properties:{compact:"[[compact]]"}});var yA=function(){var S=_.w.apply(this,arguments)||this;S.compact=!1;S.hidden=!1;S.errorHidden=!1;S.noOnTap=!1;return S};
_.r(yA,_.w);_.M=yA.prototype;
_.M.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"}}}};
_.M.entityChanged=function(){this.commerceCartItemEntity&&(this.updateQuantity(),this.updateIsHidden(),this.updateHideErrorMessage())};
_.M.onYtRendererstamperFinished=function(){if(this.firstButtonElement){var S=this.firstButtonElement;S.alignByText=!0;S.iconAlignByText=!0}};
_.M.computeNoOnTap=function(S){return!S};
_.M.updateQuantityColor=function(){if(this.pickerElement){var S,p=(S=this.commerceCartItemEntity)==null?void 0:S.quantityColor;this.pickerElement.quantityColor=p}};
_.M.updateTotalPriceColor=function(){var S,p=(S=this.commerceCartItemEntity)==null?void 0:S.totalPriceColor;if(p){var U;S=_.b((U=this.data)==null?void 0:U.quantityPicker,uTq);if(U=_.b(S==null?void 0:S.price,gSl))U.textColor=p}};
_.M.updateIsHidden=function(){if(this.compact)this.hidden=!1;else{var S,p=(S=this.commerceCartItemEntity)==null?void 0:S.isHidden;p!==void 0&&(this.hidden=p)}};
_.M.updateHideErrorMessage=function(){var S,p=(S=this.commerceCartItemEntity)==null?void 0:S.hideErrorMessage;p!==void 0&&(this.errorHidden=p)};
_.M.updateQuantity=function(){var S=this,p,U=(p=this.commerceCartItemEntity)==null?void 0:p.quantity,Y;p=(Y=this.commerceCartItemEntity)==null?void 0:Y.totalPrice;if(U){this.updateTotalPriceColor();this.updateQuantityColor();var L;Y=_.b((L=this.data)==null?void 0:L.quantityPicker,uTq);if(L=_.b(Y==null?void 0:Y.price,gSl))L.text=p?{simpleText:p.content}:void 0;if(p=_.b(Y==null?void 0:Y.picker,lHI))p.quantity=U;var I;if(L=(I=_.b(Y==null?void 0:Y.picker,xVq))==null?void 0:I.entries){I=!1;p=void 0;L=
_.d(L);for(Y=L.next();!Y.done;Y=L.next())Y=Y.value,Y.dropdownItemRenderer&&(p||(p=Y.dropdownItemRenderer),Y.dropdownItemRenderer.isSelected=!1,U===Y.dropdownItemRenderer.int32Value&&(I=!0,Y.dropdownItemRenderer.isSelected=!0));!I&&p&&(p.isSelected=!0)}_.oH(this,function(){var V;S.set("data.quantityPicker",_.h9.unsafeClone((V=S.data)==null?void 0:V.quantityPicker))})}};
yA.prototype.onYtRendererstamperFinished=yA.prototype.onYtRendererstamperFinished;yA.prototype.entityChanged=yA.prototype.entityChanged;_.x([_.g(),_.E("design:type",Object)],yA.prototype,"data",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],yA.prototype,"compact",void 0);_.x([_.F(_.Xh),_.E("design:type",Object)],yA.prototype,"ytdReduxBehavior",void 0);_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],yA.prototype,"ytRendererBehavior",void 0);
_.x([_.F(_.eL.YtComponentBehavior),_.E("design:type",Object)],yA.prototype,"ytComponentBehavior",void 0);_.x([_.F(_.qH.YtRendererstamperBehavior),_.E("design:type",Object)],yA.prototype,"ytRendererstamperBehavior",void 0);_.x([_.g({selectorArgs:["data.commerceCartItemEntityKey"],selector:function(S,p){return _.I4(S.entities,"commerceCartItemEntity",p)}}),
_.E("design:type",Object)],yA.prototype,"commerceCartItemEntity",void 0);_.x([_.g(),_.E("design:type",Object)],yA.prototype,"quantityPicker",void 0);_.x([_.g(),_.E("design:type",Object)],yA.prototype,"compactQuantityPicker",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],yA.prototype,"hidden",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],yA.prototype,"errorHidden",void 0);
_.x([_.g({reflectToAttribute:!0,computed:"computeNoOnTap(data.onTap)"}),_.E("design:type",Object)],yA.prototype,"noOnTap",void 0);_.x([_.O2("ytd-commerce-cart-item-quantity-picker-renderer"),_.E("design:type",Object)],yA.prototype,"pickerElement",void 0);_.x([_.O2("yt-button-renderer"),_.E("design:type",Element)],yA.prototype,"firstButtonElement",void 0);
_.x([_.T4("commerceCartItemEntity","data"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],yA.prototype,"entityChanged",null);_.x([_.Vd("yt-rendererstamper-finished"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],yA.prototype,"onYtRendererstamperFinished",null);yA=_.x([_.f({disableElementRegistration:!0,is:"ytd-commerce-cart-item-renderer"})],yA);
_.C(yA,"ytd-commerce-cart-item-renderer",function(){if(gcc!==void 0)return gcc;var S=document.createElement("template");_.h(S,'\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');
S.content.insertBefore(_.t().content.cloneNode(!0),S.content.firstChild);return gcc=S},{mode:_.UW("kevlar_poly_si_batch_j028")?1:2});var wME;var lIj;var KR=function(){return _.w.apply(this,arguments)||this};
_.r(KR,_.w);KR.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}}}}}};
KR.prototype.entityChanged=function(){this.commerceCartCheckoutButtonEntity&&(this.updateCheckoutLineItems(),this.updateIsHidden())};
KR.prototype.updateCheckoutLineItems=function(){var S,p=(S=this.commerceCartCheckoutButtonEntity)==null?void 0:S.checkoutLineItems;p&&(S=p.map(function(U){a:{var Y=U.price,L=U.description;switch(U.style){case "COMMERCE_CHECKOUT_LINE_ITEM_STYLE_MERCHANT":U={commerceCartSummaryLineItemRenderer:{summaryText:{cardItemTextRenderer:{text:sE(L),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:sE(Y),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:U={commerceCartSummaryLineItemRenderer:{summaryText:{cardItemTextRenderer:{text:sE(L),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:sE(Y),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 U}),this.set("data.summaryLineItems",S))};
KR.prototype.updateIsHidden=function(){var S,p=(S=this.commerceCartCheckoutButtonEntity)==null?void 0:S.isHidden;p!==void 0&&(this.hostElement.hidden=p)};
KR.prototype.entityChanged=KR.prototype.entityChanged;_.x([_.F(_.Xh),_.E("design:type",Object)],KR.prototype,"ytdReduxBehavior",void 0);_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],KR.prototype,"ytRendererBehavior",void 0);_.x([_.F(_.eL.YtComponentBehavior),_.E("design:type",Object)],KR.prototype,"ytComponentBehavior",void 0);_.x([_.F(_.qH.YtRendererstamperBehavior),_.E("design:type",Object)],KR.prototype,"ytRendererstamperBehavior",void 0);
_.x([_.g(),_.E("design:type",Object)],KR.prototype,"data",void 0);_.x([_.g({selectorArgs:["data.commerceCartCheckoutButtonEntityKey"],selector:ZFr}),_.E("design:type",Object)],KR.prototype,"commerceCartCheckoutButtonEntity",void 0);_.x([_.T4("commerceCartCheckoutButtonEntity","data"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],KR.prototype,"entityChanged",null);KR=_.x([_.f({disableElementRegistration:!0,is:"ytd-commerce-cart-summary-renderer"})],KR);
_.C(KR,"ytd-commerce-cart-summary-renderer",function(){if(lIj!==void 0)return lIj;var S=document.createElement("template");_.h(S,'\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');
S.content.insertBefore(_.t().content.cloneNode(!0),S.content.firstChild);return lIj=S},{mode:1});var aIw={};aIw.InjectBehavior=[cOX.InjectBehavior];var fIc;var CPl;var bH=function(){return _.w.apply(this,arguments)||this};
_.r(bH,_.w);
bH.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:_.Fc("menuRenderer")}}};
bH.prototype.onMenuTap=function(S){S.stopPropagation()};
_.$u.Object.defineProperties(bH.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 S,p;return!(((S=this.data)==null||!S.sectionHeading)&&((p=this.data)==null?void 0:p.layout)==="ACTIVITY_ITEM_LAYOUT_STRETCH")}},
imageVisible:{configurable:!0,enumerable:!0,get:function(){var S,p;return!(((S=this.data)==null||!S.image)&&((p=this.data)==null?void 0:p.layout)==="ACTIVITY_ITEM_LAYOUT_STRETCH")}},
menuVisible:{configurable:!0,enumerable:!0,get:function(){var S,p;return!(((S=this.data)==null||!S.menu)&&((p=this.data)==null?void 0:p.layout)==="ACTIVITY_ITEM_LAYOUT_STRETCH")}}});
_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],bH.prototype,"ytRendererBehavior",void 0);_.x([_.F(_.qH.YtRendererstamperBehavior),_.E("design:type",Object)],bH.prototype,"ytRendererstamperBehavior",void 0);_.x([_.F(_.yXe.YtTappableItemBehavior),_.E("design:type",Object)],bH.prototype,"ytTappableItemBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],bH.prototype,"data",void 0);
_.x([_.g({reflectToAttribute:!0}),_.e("data.accessibilityData"),_.E("design:type",String),_.E("design:paramtypes",[])],bH.prototype,"ariaLabel",null);_.x([_.e("data.sectionHeading","data.layout"),_.E("design:type",Boolean),_.E("design:paramtypes",[])],bH.prototype,"sectionHeadingVisible",null);_.x([_.e("data.image","data.layout"),_.E("design:type",Boolean),_.E("design:paramtypes",[])],bH.prototype,"imageVisible",null);
_.x([_.e("data.menu","data.layout"),_.E("design:type",Boolean),_.E("design:paramtypes",[])],bH.prototype,"menuVisible",null);bH=_.x([_.FB({is:"yt-activity-item-renderer",disableElementRegistration:!0})],bH);
_.C(bH,"yt-activity-item-renderer",function(){if(CPl===void 0){var S=document.createElement("template");_.h(S,'\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>');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);var p=S.content,U=p.insertBefore;fIc===void 0&&(fIc=document.createElement("template"));var Y=fIc;U.call(p,Y.content.cloneNode(!0),S.content.firstChild);CPl=S}S=CPl;return S},{mode:2});var xRE;var Ece;var mRm;var ocQ;var j3=function(){return _.w.apply(this,arguments)||this};
_.r(j3,_.w);
j3.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"}}}}};
j3.prototype.backgroundColorChanged_=function(){var S,p=(S=this.data)==null?void 0:S.backgroundColor;this.hostElement.style.backgroundColor=LR[p||"CARD_ITEM_COLOR_UNKNOWN"]||"transparent"};
j3.prototype.backgroundColorChanged_=j3.prototype.backgroundColorChanged_;_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],j3.prototype,"ytRendererBehavior",void 0);_.x([_.F(_.qH.YtRendererstamperBehavior),_.E("design:type",Object)],j3.prototype,"ytRendererstamperBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],j3.prototype,"data",void 0);
_.x([_.T4("data.backgroundColor"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],j3.prototype,"backgroundColorChanged_",null);j3=_.x([_.FB({is:"yt-offer-item-upsell-renderer",disableElementRegistration:!0})],j3);
_.C(j3,"yt-offer-item-upsell-renderer",function(){if(ocQ===void 0){var S=document.createElement("template");_.h(S,'\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');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);var p=S.content,U=p.insertBefore;mRm===void 0&&(mRm=document.createElement("template"));var Y=mRm;U.call(p,Y.content.cloneNode(!0),S.content.firstChild);ocQ=S}S=ocQ;return S},{mode:2});_.Ry("itemSectionRenderer","CardItemContainerRenderer","yt-card-item-container-renderer");var rQ=function(){var S=_.w.apply(this,arguments)||this;S.actionMap={"yt-update-card-item-on-click-command":"updateCardOnClickCommand_"};S.nextContinuation={continuationType:"sectionListContinuation",contentsArray:"data.continuationSection"};return S};
_.r(rQ,_.w);_.M=rQ.prototype;
_.M.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:_.Fc("sharingItemSection")},"data.moreContentsButtonRenderer":{id:"more-contents-button",mapping:{buttonRenderer:{component:"yt-button-renderer",noInjection:!0}}}}};
_.M.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"continuationSection"}};
_.M.computeContainerStyle_=function(S){return S};
_.M.computeContainerIsHidden_=function(S){return S&&!!S.isHidden};
_.M.computeShowSpinner_=function(S,p){return S&&p==="in-progress"};
_.M.computeShowMoreContentsButton_=function(S,p,U,Y,L){return!(!(Y&&Y.length||L&&L.length&&U)||!S||p)};
_.M.onToggleButton_=function(S){var p=this;S.stopPropagation();this.isExpanded_=S.detail&&S.detail.toggled;var U,Y;this.isExpanded_&&!this.data.continuationSection.length&&((U=this.data)==null?0:(Y=U.continuation)==null?0:Y.onClickContinuationData)&&this.continuationStatus_!=="in-progress"?(_.cv(this.hostElement,"yt-load-next-continuation",function(L){return p.getContinuationUrl_(p.data.continuation.onClickContinuationData,L)}),this.continuationStatus_="in-progress"):this.isExpanded_&&!this.data.continuationSection.length&&
this.data.onClickCommand&&this.continuationStatus_!=="in-progress"&&(_.Yd(this.hostElement,[this.data.onClickCommand]),this.continuationStatus_="in-progress")};
_.M.onShowMoreContentsButtonClicked_=function(S){var p=this;S.stopPropagation();this.data.continuations&&this.data.continuations[0].nextContinuationData?(_.cv(this.hostElement,"yt-load-next-continuation",function(U){return p.getContinuationUrl_(p.data.continuations[0].nextContinuationData,U)}),this.continuationStatus_="in-progress"):this.data.onClickCommand&&(_.Yd(this.hostElement,[this.data.onClickCommand]),this.continuationStatus_="in-progress",this.data.onClickCommand=void 0,this.isOnClickCommand_=
!1)};
_.M.getContinuationUrl_=function(S,p){var U=S.continuation;S=S.clickTrackingParams;var Y=_.X$();S&&Y&&_.xd(Y,_.JS(S));return _.vQ(p,{continuation:U})};
_.M.nextContinuationDataUpdated_=function(){this.continuationStatus_="complete";var S=_.tB(this.hostElement).querySelector("#continuation-section");S&&(S=S.querySelectorAll("ytmusic-item-section-renderer"))&&S.forEach(function(p){return p.classList.add("memberships-and-purchases")})};
_.M.dataChanged_=function(){var S;this.isExpanded_=!((S=this.data)==null||!S.contents);this.data.continuationSection||(this.data.continuationSection=[]);this.data.onClickCommand&&(this.isOnClickCommand_=!0)};
_.M.updateCardOnClickCommand_=function(S){S=_.b(S,G1E);var p,U;this.data&&((p=this.data)==null?0:p.targetId)&&S&&S.targetId===((U=this.data)==null?void 0:U.targetId)&&S.onClickCommand&&(this.data.onClickCommand=S.onClickCommand,this.isOnClickCommand_=!0)};
_.M.backgroundColorChanged_=function(){var S,p=(S=this.data)==null?void 0:S.backgroundColor;this.hostElement.style.backgroundColor=LR[p||"CARD_ITEM_COLOR_UNKNOWN"]||"transparent"};
rQ.prototype.backgroundColorChanged_=rQ.prototype.backgroundColorChanged_;rQ.prototype.dataChanged_=rQ.prototype.dataChanged_;rQ.prototype.nextContinuationDataUpdated_=rQ.prototype.nextContinuationDataUpdated_;rQ.prototype.onToggleButton_=rQ.prototype.onToggleButton_;_.x([_.F(_.wS),_.E("design:type",Object)],rQ.prototype,"ytContinuationHandlerBehavior",void 0);_.x([_.F(_.Aj.YtActionHandlerBehavior),_.E("design:type",Object)],rQ.prototype,"ytActionHandlerBehavior",void 0);
_.x([_.F(_.qH.YtRendererstamperBehavior),_.E("design:type",Object)],rQ.prototype,"ytRendererstamperBehavior",void 0);_.x([_.F(_.lX.YtNextContinuationBehavior),_.E("design:type",Object)],rQ.prototype,"ytNextContinuationBehavior",void 0);_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],rQ.prototype,"ytRendererBehavior",void 0);_.x([_.F(aIw.InjectBehavior),_.E("design:type",Object)],rQ.prototype,"injectBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],rQ.prototype,"data",void 0);
_.x([_.g({reflectToAttribute:!0,value:!1}),_.E("design:type",Boolean)],rQ.prototype,"compact",void 0);_.x([_.g({reflectToAttribute:!0,value:!1}),_.E("design:type",Boolean)],rQ.prototype,"isExpanded_",void 0);_.x([_.g({computed:"computeContainerStyle_(data.containerStyle)",reflectToAttribute:!0,value:"CARD_ITEM_CONTAINER_STYLE_DEFAULT"}),_.E("design:type",String)],rQ.prototype,"containerStyle_",void 0);_.x([_.g({value:"not-started"}),_.E("design:type",String)],rQ.prototype,"continuationStatus_",void 0);
_.x([_.g({reflectToAttribute:!0,computed:"computeShowSpinner_(isExpanded_, continuationStatus_)",value:!1}),_.E("design:type",Boolean)],rQ.prototype,"showSpinner_",void 0);_.x([_.g({value:!1}),_.E("design:type",Boolean)],rQ.prototype,"isOnClickCommand_",void 0);_.x([_.g({computed:"computeShowMoreContentsButton_(isExpanded_, showSpinner_, isOnClickCommand_, data.continuations, data.contents)",value:!1}),_.E("design:type",Boolean)],rQ.prototype,"showMoreContentsButton_",void 0);
_.x([_.g({selectorArgs:["data.cardItemContainerEntityKey"],selector:function(S,p){return!p||S.entities?null:_.I4(S.entities,"cardItemContainerEntity",p)}}),
_.E("design:type",Object)],rQ.prototype,"cardItemContainerEntity_",void 0);_.x([_.Vd("yt-toggle-button"),_.E("design:type",Function),_.E("design:paramtypes",[CustomEvent]),_.E("design:returntype")],rQ.prototype,"onToggleButton_",null);_.x([_.Vd("yt-next-continuation-data-updated"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],rQ.prototype,"nextContinuationDataUpdated_",null);
_.x([_.T4("data"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],rQ.prototype,"dataChanged_",null);_.x([_.T4("data.backgroundColor"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],rQ.prototype,"backgroundColorChanged_",null);rQ=_.x([_.FB({is:"yt-card-item-container-renderer",disableElementRegistration:!0})],rQ);
_.C(rQ,"yt-card-item-container-renderer",function(){if(Ece===void 0){var S=document.createElement("template");_.h(S,'\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');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);var p=S.content,U=p.insertBefore;xRE===void 0&&(xRE=document.createElement("template"));var Y=xRE;U.call(p,Y.content.cloneNode(!0),S.content.firstChild);Ece=S}S=Ece;return S},{mode:2});var GH=function(){return _.w.apply(this,arguments)||this};
_.r(GH,_.w);GH.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"}}}};
GH.prototype.notificationEntityChanged=function(){this.commerceCartExpandableNotificationEntity&&this.updateNotification()};
GH.prototype.computeLoadingHidden=function(){var S;return!((S=this.commerceCartPageStateEntity)==null?0:S.cartActionInProgress)};
GH.prototype.updateNotification=function(){var S,p=(S=this.get("commerceCartExpandableNotificationEntity"))==null?void 0:S.summaryText;p&&this.set("data.cartNotification",sE(p))};
GH.prototype.notificationEntityChanged=GH.prototype.notificationEntityChanged;_.x([_.F(_.Xh),_.E("design:type",Object)],GH.prototype,"ytdReduxBehavior",void 0);_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],GH.prototype,"ytRendererBehavior",void 0);_.x([_.F(_.eL.YtComponentBehavior),_.E("design:type",Object)],GH.prototype,"ytComponentBehavior",void 0);_.x([_.F(_.qH.YtRendererstamperBehavior),_.E("design:type",Object)],GH.prototype,"ytRendererstamperBehavior",void 0);
_.x([_.g(),_.E("design:type",Object)],GH.prototype,"data",void 0);_.x([_.g({selectorArgs:["data.commerceCartExpandableNotificationEntityKey"],selector:function(S,p){return _.I4(S.entities,"commerceCartExpandableNotificationEntity",p)}}),
_.E("design:type",Object)],GH.prototype,"commerceCartExpandableNotificationEntity",void 0);_.x([_.g({selectorArgs:["data.commerceCartPageStateEntityKey"],selector:function(S,p){return _.I4(S.entities,"commerceCartPageStateEntity",p)}}),
_.E("design:type",Object)],GH.prototype,"commerceCartPageStateEntity",void 0);_.x([_.O2("#spinner"),_.E("design:type",HTMLElement)],GH.prototype,"spinner",void 0);_.x([_.T4("commerceCartExpandableNotificationEntity","data"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],GH.prototype,"notificationEntityChanged",null);GH=_.x([_.f({disableElementRegistration:!0,is:"ytd-commerce-cart-renderer"})],GH);
_.C(GH,"ytd-commerce-cart-renderer",function(){if(wME!==void 0)return wME;var S=document.createElement("template");_.h(S,'\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');
S.content.insertBefore(_.t().content.cloneNode(!0),S.content.firstChild);return wME=S},{mode:1});var vcE;var hP=function(){var S=_.w.apply(this,arguments)||this;S.bigImage=!1;return S};
_.r(hP,_.w);_.$u.Object.defineProperties(hP.prototype,{placeholderImageUrl:{configurable:!0,enumerable:!0,get:function(){var S;return(S=this.data)==null?void 0:S.placeholderImageUrl}}});
_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],hP.prototype,"ytRendererBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],hP.prototype,"data",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],hP.prototype,"bigImage",void 0);_.x([_.e("data"),_.E("design:type",Object),_.E("design:paramtypes",[])],hP.prototype,"placeholderImageUrl",null);hP=_.x([_.f({disableElementRegistration:!0,is:"ytd-empty-product-shelf-renderer"})],hP);
_.C(hP,"ytd-empty-product-shelf-renderer",function(){if(vcE!==void 0)return vcE;var S=document.createElement("template");_.h(S,'\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');
S.content.insertBefore(_.t().content.cloneNode(!0),S.content.firstChild);return vcE=S},{mode:1});var $Rq;var Re=function(){var S=_.w.apply(this,arguments)||this;S.itemStyle="link-item";S.watchMetadataRefresh=!1;S.skinnyMode=!1;S.metaPanel=!1;S.inStructuredDescription=!1;S.actionMap={"yt-update-merchandise-shelf-action":"handleUpdateMerchShelfAction"};S.updateOnResizeDebouncer=null;return S};
_.r(Re,_.w);_.M=Re.prototype;_.M.ready=function(){this.updateOnResize=this.updateOnResize.bind(this);this.updateOnResize()};
_.M.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"}}}}};
_.M.dataChanged=function(){this.ytdHorizontalListBehavior.reset();this.updateOnResize()};
_.M.attachVEs=function(S){S.trackingParams&&_.HX().graftServerVe(S.trackingParams)};
_.M.handleUpdateMerchShelfAction=function(S){var p=this,U=_.b(S.updateMerchandiseShelfAction.merchandiseShelf,_.dCP);U&&(U.renderDelayMs?(clearTimeout(this.dataSetTimeoutId),this.dataSetTimeoutId=setTimeout(function(){p.attachVEs(U);p.data=U},Number(U.renderDelayMs))):(this.attachVEs(U),this.data=U))};
_.M.updateOnResize=function(){if(this.JSC$14694_scrollContainer!==void 0&&this.JSC$14694_scrollContainer.clientWidth!==0&&this.items!==void 0){var S=this.JSC$14694_scrollContainer.clientWidth;this.ytdHorizontalListBehavior.offset=Math.max(0,Math.min(this.ytdHorizontalListBehavior.offset,this.items.clientWidth-S));this.ytdHorizontalListBehavior.reposition_();var p;switch((p=this.data)==null?void 0:p.shelfType){case "MERCHANDISE_SHELF_TYPE_PRODUCT_LINK":this.itemStyle="link-item";break;default:var U,
Y;((U=this.data)==null?void 0:(Y=U.items)==null?void 0:Y.length)===1?this.itemStyle="cta-item":this.itemStyle=S>=740?"large-item":"small-item"}}};
_.M.debouncedUpdateOnResize=function(){this.updateOnResizeDebouncer=_.c1(this.updateOnResizeDebouncer,_.xr.after(100),this.updateOnResize)};
Re.prototype.debouncedUpdateOnResize=Re.prototype.debouncedUpdateOnResize;Re.prototype.dataChanged=Re.prototype.dataChanged;_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],Re.prototype,"ytRendererBehavior",void 0);_.x([_.F(_.qH.YtRendererstamperBehavior),_.E("design:type",Object)],Re.prototype,"ytRendererstamperBehavior",void 0);_.x([_.F(_.A6.YtdHorizontalListBehavior),_.E("design:type",Object)],Re.prototype,"ytdHorizontalListBehavior",void 0);
_.x([_.F(_.eL.YtComponentBehavior),_.E("design:type",Object)],Re.prototype,"ytComponentBehavior",void 0);_.x([_.F(_.Aj.YtActionHandlerBehavior),_.E("design:type",Object)],Re.prototype,"ytActionHandlerBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],Re.prototype,"data",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],Re.prototype,"itemStyle",void 0);_.x([_.g({value:6}),_.E("design:type",Number)],Re.prototype,"initialCount",void 0);
_.x([_.g({value:"data.items"}),_.E("design:type",String)],Re.prototype,"itemsPath",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],Re.prototype,"watchMetadataRefresh",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],Re.prototype,"skinnyMode",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],Re.prototype,"metaPanel",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],Re.prototype,"inStructuredDescription",void 0);
_.x([_.O2("#items"),_.E("design:type",HTMLDivElement)],Re.prototype,"items",void 0);_.x([_.O2("#scroll-container"),_.E("design:type",HTMLDivElement)],Re.prototype,"JSC$14694_scrollContainer",void 0);_.x([_.T4("data"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],Re.prototype,"dataChanged",null);_.x([_.Vd("iron-resize"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],Re.prototype,"debouncedUpdateOnResize",null);
Re=_.x([_.f({disableElementRegistration:!0,is:"ytd-merch-shelf-renderer"})],Re);
_.C(Re,"ytd-merch-shelf-renderer",function(){if($Rq!==void 0)return $Rq;var S=document.createElement("template");_.h(S,'\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');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);return $Rq=S},{mode:2});var ioe;var Fs=function(){var S=_.w.apply(this,arguments)||this;S.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 S};
_.r(Fs,_.w);_.M=Fs.prototype;
_.M.addBackstagePostAction=function(S){this.get("header.commentsHeaderRenderer.shouldShowBackstagePostOptimistically",this.data)&&(S=this.get("addBackstagePostAction.renderer.backstagePostThreadRenderer",S))&&(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:S}):this.set("data.contents",[{backstagePostThreadRenderer:S}]))};
_.M.addBackstageCommentAction=function(S){var p=this.get("addBackstageCommentAction.parentId",S);S=this.get("addBackstageCommentAction.renderer.commentThreadRenderer",S);if(p&&S){p=this.postIdToIndices(p);for(var U=0;U<p.length;U++){var Y=p[U];if(Y<0)break;Y="data.contents."+Y+".backstagePostThreadRenderer.comments";this.get(Y)&&(this.get(Y+".backstageCommentsRenderer.contents")&&this.push(Y+".backstageCommentsRenderer.contents",{commentThreadRenderer:S}),this.get(Y+".backstageCommentsRenderer.teaserContents")?
this.push(Y+".backstageCommentsRenderer.teaserContents",{commentThreadRenderer:S}):this.set(Y+".backstageCommentsRenderer.teaserContents",[{commentThreadRenderer:S}]))}}};
_.M.addBackstageReplyAction=function(S){var p=this.get("addBackstageReplyAction.parentId",S);S=this.get("addBackstageReplyAction.renderer.commentRenderer",S);p&&S&&this.setCreatorReply(p,S)};
_.M.banAuthorAction=function(S){var p=this.get("banAuthorAction.commentId",S);p&&(S=this.get("banAuthorAction.parentCommentId",S)||this.getParentPostId(p),this.removeFromStream(p,S))};
_.M.hideReportedCommentAction=function(S){var p=this.get("hideReportedCommentAction.commentId",S);p&&((S=this.get("hideReportedCommentAction.parentCommentId",S))||(S=this.getParentPostId(p)),this.removeFromStream(p,S))};
_.M.replaceBackstageCommentAction=function(S){var p=this.get("replaceBackstageCommentAction.commentId",S),U=this.get("replaceBackstageCommentAction.parentId",S);S=this.get("replaceBackstageCommentAction.renderer.commentThreadRenderer",S);if(p&&U&&S){U=this.postIdToIndices(U);for(var Y=0;Y<U.length;Y++){var L=U[Y];if(L<0)break;var I=this.commentIdToIndex(p,L,!1);if(I>=0){var V=this.get("data.contents."+L+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.contents."+I+".commentThreadRenderer.replies.commentRepliesRenderer");
V&&(S.replies={commentRepliesRenderer:V});this.splice("data.contents."+L+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.contents",I,1,{commentThreadRenderer:S})}I=this.commentIdToIndex(p,L,!0);if(I>=0){if(V=this.get("data.contents."+L+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.teaserContents."+(I+".commentThreadRenderer.replies.commentRepliesRenderer")))S.replies={commentRepliesRenderer:V};this.splice("data.contents."+L+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.teaserContents",
I,1,{commentThreadRenderer:S})}}}};
_.M.replaceBackstagePostAction=function(S){var p=this.get("replaceBackstagePostAction.itemId",S);if(p){p=this.postIdToIndices(p);for(var U=0;U<p.length;U++){var Y=p[U];if(Y<0)break;var L=this.getPostRendererType(Y),I=this.get("replaceBackstagePostAction.renderer."+L,S);if(!I&&L!=="sharedPostRenderer")break;var V=!1;I||(V=!0,I=this.get("replaceBackstagePostAction.renderer.backstagePostRenderer",S));if(!I)break;var W={};V?(_.Rf(W,D_l,I),this.set("data.contents."+Y+".backstagePostThreadRenderer.post.sharedPostRenderer.originalPost",
W)):(_.Rf(W,new _.v(L),I),this.set("data.contents."+Y+".backstagePostThreadRenderer.post",W))}}};
_.M.replaceBackstageReplyAction=function(S){var p=this.get("replaceBackstageReplyAction.replyId",S),U=this.get("replaceBackstageReplyAction.parentId",S);S=this.get("replaceBackstageReplyAction.renderer.commentRenderer",S);p&&S&&U&&this.setCreatorReply(U,S)};
_.M.removeCommentAction=function(S){var p=this.get("removeCommentAction.commentId",S);if(p){var U=this.get("removeCommentAction.parentCommentId",S);U&&this.get("removeCommentAction.isCreatorReply",S)?this.setCreatorReply(U,void 0):(U||(U=this.getParentPostId(p)),this.removeFromStream(p,U))}};
_.M.setCreatorReply=function(S,p){var U=this.getParentPostId(S);if(U){U=this.postIdToIndices(U);for(var Y=0;Y<U.length;Y++){var L=U[Y];if(L<0)break;var I=this.commentIdToIndex(S,L,!1);if(I>=0){var V="data.contents."+L+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.contents."+I;I=V+".commentThreadRenderer.comment.commentRenderer.containsCreatorReply";V+=".commentThreadRenderer.replies";p==void 0?(this.set(V,{}),this.set(I,!1)):(this.set(V,{commentRepliesRenderer:{teaserContents:[{commentRenderer:p}]}}),
this.set(V+".commentRepliesRenderer.teaserContents.0.commentRenderer.isCreatorReply",!0),this.set(I,!0))}I=this.commentIdToIndex(S,L,!0);I>=0&&(I="data.contents."+L+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.teaserContents."+I,L=I+".commentThreadRenderer.comment.commentRenderer.containsCreatorReply",I+=".commentThreadRenderer.replies",p==void 0?(this.set(I,{}),this.set(L,!1)):(this.set(I,{commentRepliesRenderer:{teaserContents:[{commentRenderer:p}]}}),this.set(L,!0)))}}};
_.M.removeFromStream=function(S,p){if(p){p=this.postIdToIndices(p);for(var U=0;U<p.length;U++){var Y=p[U];if(Y<0)break;var L=this.commentIdToIndex(S,Y,!1);L>=0&&this.splice("data.contents."+Y+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.contents",L,1);L=this.commentIdToIndex(S,Y,!0);L>=0&&this.splice("data.contents."+Y+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.teaserContents",L,1);Y="data.contents."+Y+".backstagePostThreadRenderer.post.backstagePostRenderer";
L=Y+".backstageAttachment.pollRenderer.votedCommentId";this.get(L)===S&&(this.set(L,null),this.set(Y+".backstageAttachment.pollRenderer.commentDelete",null))}}else for(p=this.postIdToIndices(S).reverse(),U=0;U<p.length;U++){Y=p[U];if(Y<0)break;L=this.getPostRendererType(Y);var I=this.get("backstagePostThreadRenderer.post."+L,this.data.contents[Y]);I.postId===S?this.splice("data.contents",Y,1):L==="sharedPostRenderer"&&this.set("data.contents."+Y+".backstagePostThreadRenderer.post.sharedPostRenderer.originalPost",
null);I.scheduledPublishTimeSec&&_.St(this.hostElement,"yt-update-posts-total-count-action",[{updatePostsTotalCountAction:{updateType:"UPDATE_POSTS_TOTAL_COUNT_TYPE_REMOVE",number:1}}])}};
_.M.postIdToIndices=function(S){for(var p=[],U=0;U<this.data.contents.length;U++){var Y=this.getPostRendererType(U);this.get("backstagePostThreadRenderer.post."+Y+".postId",this.data.contents[U])===S&&p.push(U);if(Y==="sharedPostRenderer"){var L=this.get("backstagePostThreadRenderer.post."+Y+".originalPost.backstagePostRenderer.postId",this.data.contents[U]);Y=this.get("backstagePostThreadRenderer.post."+Y+".originalPost.postRenderer.postId",this.data.contents[U]);L!==S&&Y!==S||p.push(U)}}return p};
_.M.commentIdToIndex=function(S,p,U){if(p<0)return-1;var Y,L,I,V,W=_.b((Y=this.data)==null?void 0:(L=Y.contents)==null?void 0:(I=L[p])==null?void 0:(V=I.backstagePostThreadRenderer)==null?void 0:V.comments,kUq);return(p=U?W==null?void 0:W.teaserContents:W==null?void 0:W.contents)&&p.length?p.findIndex(function(O){return _.b(O,x_P).comment.commentRenderer.commentId===S}):-1};
_.M.getParentPostId=function(S){S=S.split(".");if(S[1])return S[0]};
_.M.getPostRendererType=function(S){return this.get("backstagePostThreadRenderer.post.sharedPostRenderer",this.data.contents[S])?"sharedPostRenderer":"backstagePostRenderer"};
_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],Fs.prototype,"ytRendererBehavior",void 0);_.x([_.F(_.Aj.YtActionHandlerBehavior),_.E("design:type",Object)],Fs.prototype,"ytActionHandlerBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],Fs.prototype,"data",void 0);Fs=_.x([_.f({disableElementRegistration:!0,is:"ytd-backstage-items"})],Fs);
_.C(Fs,"ytd-backstage-items",function(){if(ioe!==void 0)return ioe;var S=document.createElement("template");_.h(S,'\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');S.content.insertBefore(_.t().content.cloneNode(!0),S.content.firstChild);return ioe=
S},{mode:1});var Ngl;_.jp({is:"ytd-comments",_template:function(){if(Ngl!==void 0)return Ngl;var S=document.createElement("template");_.h(S,'\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');
S.content.insertBefore(_.t().content.cloneNode(!0),S.content.firstChild);return Ngl=S},
behaviors:[_.Ufk.YtHostElementBehavior,_.Cj.YtPlayerListenerBehavior,_.c.YtRendererBehavior,_.Aj.YtActionHandlerBehavior],properties:{data:{type:Object,observer:"dataChanged_"},isBackstage:{type:Boolean,computed:"computeIsBackstage_(data.header.commentsHeaderRenderer.isBackstageContent)",reflectToAttribute:!0},disablePrescanVisibility:{type:Boolean,value:!0},canScheduleJobs:{type:Boolean,value:!0},engagementPanel:{type:Boolean,reflectToAttribute:!0},hidePanelButton:{type:Boolean,value:!1},isWatchGrid:{type:Boolean,
value:!1}},actionMap:{"yt-ban-author-action":"banAuthorAction_","yt-create-comment-action":"createCommentAction_","yt-create-comment-reply-action":"createCommentReplyAction_","yt-hide-reported-comment-action":"hideReportedCommentAction_","yt-pin-comment-action":"pinCommentAction_","yt-reload-comments-command":"reloadComments_","yt-remove-comment-action":"removeCommentAction_","yt-unpin-comment-action":"unpinCommentAction_"},listeners:{"yt-retrieve-location":"onRetrieveLocation_"},observers:["contentsChanged_(data.contents.*)",
"headerChanged_(data.header)"],created:function(){this.RenderingPriority={RENDERING_PRIORITY_UNKNOWN:0,RENDERING_PRIORITY_PINNED_COMMENT:10,RENDERING_PRIORITY_LINKED_COMMENT:20,RENDERING_PRIORITY_REALTIME_COMMENT:30,RENDERING_PRIORITY_COMMUNITY_GUIDELINES_BELOW_HEADER:80,RENDERING_PRIORITY_FAN_COMMUNITY_SETUP_CARD:90,RENDERING_PRIORITY_COMMENT_HEADER:100};this.initCommentsCsi_()},
contentsChanged_:function(S){S&&S.value&&S.path==="data.contents"&&this.tickForCommentsTimer_("cml")},
headerChanged_:function(S){S&&this.tickForCommentsTimer_("cmhl")},
initCommentsCsi_:function(){_.R2("wn_comments");var S=_.X$();S&&_.ha({clientScreenNonce:S},"wn_comments");this.tickForCommentsTimer_("cmi")},
createCommentAction_:function(S){S=LGw(S);var p,U,Y;if(S=(p=S)==null?void 0:(U=p.createCommentAction)==null?void 0:(Y=U.contents)==null?void 0:Y.commentThreadRenderer){var L,I,V,W,O,D;!this.isBackstage&&((L=this.data)==null?0:(I=L.header)==null?0:(V=I.commentsHeaderRenderer)==null?0:(W=V.createRenderer)==null?0:(O=W.commentSimpleboxRenderer)==null?0:(D=O.zeroStep)==null?0:D.zeroStepChannelCreationRenderer)&&this.set("data.header.commentsHeaderRenderer.createRenderer.commentSimpleboxRenderer.zeroStep",
{});var z,Q,J,K;this.isBackstage&&((z=this.data)==null?0:(Q=z.header)==null?0:(J=Q.commentsHeaderRenderer)==null?0:(K=J.zeroStateMessage)==null?0:K.backstageZeroStateRenderer)&&this.set("data.header.commentsHeaderRenderer.zeroStateMessage",{});this.insert_(S)}},
doReplyInsert_:function(S,p,U,Y){Y?this.splice(S,Y,0,p):this.push(S,p)},
getRepliesPath_:function(S){return"data.contents."+S+".commentThreadRenderer.replies"},
getRepliesContentsPath_:function(S,p){S=this.getRepliesPath_(S);return p?S+".commentRepliesRenderer.teaserContents":S+".commentRepliesRenderer.contents"},
createCommentReplyAction_:function(S){S=LGw(S);var p,U,Y=(p=S)==null?void 0:(U=p.createCommentReplyAction)==null?void 0:U.parentCommentId,L,I;if(p=(L=S)==null?void 0:(I=L.createCommentReplyAction)==null?void 0:I.contents)if(Y=this.commentIdToIndex_(Y),!(Y<0))if(L=this.getRepliesPath_(Y),this.get(L)){var V,W;S=(V=S)==null?void 0:(W=V.createCommentReplyAction)==null?void 0:W.replyToCommentId;V=this.getRepliesContentsPath_(Y,!1);this.get(V)&&(W=this.get(V).length,L=V+"."+(W-1)+".continuationItemRenderer",
this.get(L+".button")?(L=this.replyIdToIndex_(S,Y,!1),this.doReplyInsert_(V,p,L,W-1)):this.get(L)||(W=this.replyIdToIndex_(S,Y,!1),this.doReplyInsert_(V,p,W,null)));V=this.getRepliesContentsPath_(Y,!0);this.get(V)?(Y=this.replyIdToIndex_(S,Y,!0),(!S||Y>=0)&&this.doReplyInsert_(V,p,Y,null)):this.set(V,[p])}else this.set(L,{commentRepliesRenderer:{teaserContents:[p]}})},
hideReportedCommentAction_:function(S){var p,U=S==null?void 0:(p=S.hideReportedCommentAction)==null?void 0:p.commentId;if(U){var Y;S=S==null?void 0:(Y=S.hideReportedCommentAction)==null?void 0:Y.parentCommentId;U=U.replace("#",".");S||(S=this.getParentCommentId_(U));this.remove_(U,S)}},
getParentCommentId_:function(S){S=S.split(".");if(S[1])return S[0]},
removeCommentAction_:function(S){var p,U=S==null?void 0:(p=S.removeCommentAction)==null?void 0:p.commentId;if(U){var Y;S=S==null?void 0:(Y=S.removeCommentAction)==null?void 0:Y.parentCommentId;U=U.replace("#",".");S||(S=this.getParentCommentId_(U));this.remove_(U,S)}},
pinCommentAction_:function(S){S=LGw(S);var p,U,Y=(p=S)==null?void 0:(U=p.pinCommentAction)==null?void 0:U.commentId;Y&&(S=this.get("pinCommentAction.actionResult.update.commentThreadRenderer",S))&&(this.remove_(Y),this.insert_(S,!0))},
unpinCommentAction_:function(S){S=LGw(S);var p,U,Y=(p=S)==null?void 0:(U=p.unpinCommentAction)==null?void 0:U.commentId;if(Y){var L,I,V;if(S=(L=S.unpinCommentAction)==null?void 0:(I=L.actionResult)==null?void 0:(V=I.update)==null?void 0:V.commentThreadRenderer)this.remove_(Y),this.insert_(S)}},
banAuthorAction_:function(S){var p,U=S==null?void 0:(p=S.banAuthorAction)==null?void 0:p.commentId;if(U){var Y;S=S==null?void 0:(Y=S.banAuthorAction)==null?void 0:Y.parentCommentId;U=U.replace("#",".");S||(S=this.getParentCommentId_(U));this.remove_(U,S)}},
commentIdToIndex_:function(S){var p;return S&&(p=this.data)!=null&&p.contents?this.data.contents.findIndex(function(U){var Y,L;return S===((U==null?void 0:(Y=U.commentThreadRenderer)==null?void 0:Y.commentViewModel)&&((L=_.b(U.commentThreadRenderer.commentViewModel,v1E))==null?void 0:L.commentId))}):-1},
insert_:function(S,p){var U,Y;if((U=this.data)==null?0:(Y=U.contents)==null?0:Y.some(function(I){return!(I==null||!I.commentThreadRenderer)}))for(U=0,Y=this.data.contents.length;U<Y;U++){var L=this.data.contents[U].commentThreadRenderer;
if(this.RenderingPriority[S.renderingPriority]>=this.RenderingPriority[L.renderingPriority]){p&&this.RenderingPriority[S.renderingPriority]==this.RenderingPriority[L.renderingPriority]?this.splice("data.contents",U,1,{commentThreadRenderer:S}):this.splice("data.contents",U,0,{commentThreadRenderer:S});break}}else this.set("data.contents",[{commentThreadRenderer:S}])},
doReplyRemove_:function(S,p,U){S=this.replyIdToIndex_(S,p,U);S<0||(p=this.getRepliesContentsPath_(p,U),this.splice(p,S,1))},
remove_:function(S,p){p=this.commentIdToIndex_(p);p<0?(p=this.commentIdToIndex_(S),p<0||this.splice("data.contents",p,1)):(this.doReplyRemove_(S,p,!1),this.doReplyRemove_(S,p,!0))},
replyIdToIndex_:function(S,p,U){if(p<0)return-1;p=this.getRepliesContentsPath_(p,U);p=this.get(p);if(!p||!p.length)return-1;U=0;for(var Y=p.length;U<Y;U++){var L=void 0,I=void 0;if(((L=p[U])==null?void 0:(I=L.commentViewModel)==null?void 0:I.commentId)===S)return U}return-1},
computeIsBackstage_:function(S){return!!S},
tickForCommentsTimer_:function(S){_.Xg(S,void 0,"wn_comments")},
reloadComments_:function(S){S&&S.reloadCommentsCommand&&S.reloadCommentsCommand.command&&S.reloadCommentsCommand.command.continuationCommand&&_.Yd(this,[S.reloadCommentsCommand.command])}});var Xs=function(){return _.HT.apply(this,arguments)||this};
_.r(Xs,_.HT);_.M=Xs.prototype;_.M.bindIf=function(S,p,U){return S?p:U};
_.M.bindIfDefined=function(S,p){return S!==void 0?S:p};
_.M.booleanString=function(S){return(!!S).toString()};
_.M.equals=function(){for(var S=_.jO.apply(0,arguments),p=S[0],U=1;U<S.length;U++)if(p!=S[U])return!1;return!0};
_.M.isGreaterThan=function(S,p){return S>p};
_.M.isLessThan=function(S,p){return S<p};
_.M.logicalAND=function(){for(var S=_.jO.apply(0,arguments),p=!!S[0],U=1;U<S.length;U++)p=p&&!!S[U];return p};
_.M.logicalOR=function(){for(var S=_.jO.apply(0,arguments),p=!!S[0],U=1;U<S.length;U++)p=p||!!S[U];return p};
_.M.toBool=function(S){return!!S};
Xs.prototype.toBool=Xs.prototype.toBool;Xs.prototype.logicalOR=Xs.prototype.logicalOR;Xs.prototype.logicalAND=Xs.prototype.logicalAND;Xs.prototype.isLessThan=Xs.prototype.isLessThan;Xs.prototype.isGreaterThan=Xs.prototype.isGreaterThan;Xs.prototype.equals=Xs.prototype.equals;Xs.prototype.booleanString=Xs.prototype.booleanString;Xs.prototype.bindIfDefined=Xs.prototype.bindIfDefined;Xs.prototype.bindIf=Xs.prototype.bindIf;Xs=_.x([_.Dl()],Xs);_.Bgm=[Xs.prototype];var qdP;var AXt;var Pq=function(){return _.w.apply(this,arguments)||this};
_.r(Pq,_.w);Pq.prototype.configureRendererStamper=function(){return{"data.imageRenderer":{id:"image-renderer",mapping:{themedImageRenderer:{component:"yt-themed-image-renderer",params:{fit:!0}}}}}};
Pq.prototype.onBackIconTap_=function(){window.history.back()};
_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],Pq.prototype,"ytRendererBehavior",void 0);_.x([_.F(_.qH.YtRendererstamperBehavior),_.E("design:type",Object)],Pq.prototype,"ytRendererstamperBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],Pq.prototype,"data",void 0);Pq=_.x([_.FB({is:"yt-header-with-back-renderer",disableElementRegistration:!0})],Pq);
_.C(Pq,"yt-header-with-back-renderer",function(){if(AXt===void 0){var S=document.createElement("template");_.h(S,'\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');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);var p=S.content,U=p.insertBefore;qdP===void 0&&(qdP=document.createElement("template"));var Y=qdP;U.call(p,Y.content.cloneNode(!0),S.content.firstChild);AXt=S}S=AXt;return S},{mode:2});var tzc;var cXP;var ZK=function(){var S=_.w.apply(this,arguments)||this;S.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return S};
_.r(ZK,_.w);_.M=ZK.prototype;_.M.attached=function(){this.isDarkTheme=!!document.documentElement.hasAttribute("dark")};
_.M.onDarkModeToggledAction=function(S){S!==this.isDarkTheme&&(this.isDarkTheme=S,this.setUrl())};
_.M.dataChanged=function(){var S=this;if(this.data){var p=this.setUrl();p&&_.vg({destination:window,iframe:this.iframe,origin:_.nmI(p.toString()),channelName:"yt-iframe",onMessage:function(U){(U=S.getCommunicationCommand(U.data))&&S.ytComponentBehavior.resolveCommand(U)},
onEstablished:function(){}})}};
_.M.setUrl=function(){if(this.data&&this.data.iframeUrl){var S=_.Zu(this.isDarkTheme&&this.data.darkThemeIframeUrl?this.data.darkThemeIframeUrl:this.data.iframeUrl);if(S)return _.PE(this.iframe,S),S}};
_.M.getCommunicationCommand=function(S){var p;if((p=this.data)!=null&&p.onCommunicationCommandsMap){p=this.data.onCommunicationCommandsMap.find(function(L){return L.key===S});
if(p==null?0:p.value)return p==null?void 0:p.value;try{var U=z2e(_.Ol(S)),Y=this.data.onCommunicationCommandsMap.find(function(L){return L.key===(U==null?void 0:_.jR(U,1))});
if(Y==null?0:Y.value)return Y==null?void 0:Y.value}catch(L){}}};
ZK.prototype.dataChanged=ZK.prototype.dataChanged;_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],ZK.prototype,"ytRendererBehavior",void 0);_.x([_.F(_.eL.YtComponentBehavior),_.E("design:type",Object)],ZK.prototype,"ytComponentBehavior",void 0);_.x([_.F(_.Aj.YtActionHandlerBehavior),_.E("design:type",Object)],ZK.prototype,"actionHandlerBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],ZK.prototype,"data",void 0);
_.x([_.g({value:!1}),_.E("design:type",Boolean)],ZK.prototype,"isDarkTheme",void 0);_.x([_.O2("#iframe"),_.E("design:type",HTMLIFrameElement)],ZK.prototype,"iframe",void 0);_.x([_.T4("data"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],ZK.prototype,"dataChanged",null);ZK=_.x([_.FB({is:"yt-iframe-renderer",disableElementRegistration:!0})],ZK);
_.C(ZK,"yt-iframe-renderer",function(){if(cXP===void 0){var S=document.createElement("template");_.h(S,'\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>');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);var p=S.content,U=p.insertBefore;tzc===void 0&&(tzc=document.createElement("template"));var Y=tzc;U.call(p,Y.content.cloneNode(!0),S.content.firstChild);cXP=S}S=cXP;return S},{mode:2});_.sY=function(S){_.hY.call(this);this.callback=S;this.bezier=new Btt(0,0,.4,0,.2,1,1,1);this.delay=new _.Br(this.next,window,this);this.JSC$14725_animating=!1;_.Hm(this,this.delay)};
_.r(_.sY,_.hY);_.sY.prototype.isAnimating=function(){return this.JSC$14725_animating};
_.sY.prototype.start=function(S,p,U){this.config={from:S,to:p,duration:U,startTime:(0,_.AI)()};this.JSC$14725_animating=!0;this.next()};
_.sY.prototype.stop=function(){this.delay.stop();this.JSC$14725_animating=!1;this.config=void 0};
_.sY.prototype.next=function(){if(this.config){var S=this.config,p=S.from,U=S.to,Y=S.duration;S=S.startTime;var L=(0,_.AI)()-S;S=this.bezier;Y=AZw(S,L/Y);if(Y==0)S=S.y0;else if(Y==1)S=S.y3;else{L=HD(S.y0,S.y1,Y);var I=HD(S.y1,S.y2,Y);S=HD(S.y2,S.y3,Y);L=HD(L,I,Y);I=HD(I,S,Y);S=HD(L,I,Y)}S=_.F7(S,0,1);this.callback(p+(U-p)*S);S<1?this.delay.start():this.JSC$14725_animating=!1}};_.e3=new _.$g("MINI_APP_CLIENT_DATA_PROVIDER_TOKEN");new CustomEvent("iframeLoadedForTesting");var S5m={INIT:0,START:1,READY:2,END:3,0:"INIT",1:"START",2:"READY",3:"END"},UlP=function(S,p,U,Y){_.hY.call(this);this.JSC$14733_miniAppId=S;this.localReleaseId=p;this.derivedDeviceInterface=U;this.isForeground=Y;this.JSC$14733_playNonceResolver=new _.MI;this.playPingTimerId=NaN;this.playPingIntervalMs=_.pA("play_ping_interval_ms",3E4);this.playClickIntervalMs=_.pA("play_click_interval_ms",3E4);this.enableDisplayingPpn=_.y("enable_displaying_ppn");this.JSC$14733_miniAppClientDataProvider=_.tW().resolve(_.e3);
this.state=0;this.firstClickRecorded=!1;this.clickRecordedMs=0;this.beforeReady=!0;this.gameReady=!1;pot(this);var L=setTimeout(function(){_.eP(new _.y7("Timed out after 30000ms while waiting for play nonce"))},3E4);
this.JSC$14733_playNonceResolver.promise.then(function(){clearTimeout(L)})};
_.r(UlP,_.hY);var LXm=function(S,p){S.JSC$14733_playNonceResolver.resolve(p!=null?p:h8(8));S.enableDisplayingPpn&&Y5w(S).then(function(U){S.JSC$14733_miniAppClientDataProvider.clientData.set("post_play_nonce",U)})},Y5w=function(S){return _.T(function(p){return p.nextAddress==1?_.k(p,S.JSC$14733_playNonceResolver.promise,2):p.return(p.yieldResult)})},pot=function(S){var p,U;
_.T(function(Y){if(Y.nextAddress==1)return _.k(Y,S.JSC$14733_playNonceResolver.promise,2);p=Y.yieldResult;U={miniAppInfo:{externalPostId:S.JSC$14733_miniAppId,localReleaseId:S.localReleaseId,postPlayNonce:p,derivedDeviceInterface:S.derivedDeviceInterface}};_.ha(U);_.OV(Y)})},IUl=function(S){S.state!==0?_.eP(new _.y7("[MiniAppPlayLogger] recordPlayStart failed with state "+S5m[S.state])):(S.state=1,gQ(S,"ma_cl"),uH(S,"PLAY_EVENT_TYPE_PLAY_START"),MIt(S))},dlw=function(S){S.isForeground=!1;
uH(S,"PLAY_EVENT_TYPE_PLAY_PAUSE")},VIH=function(S){S.state!==1&&S.state!==2?_.eP(new _.y7("[MiniAppPlayLogger] recordPlayEnd failed with state "+S5m[S.state])):(S.state=3,window.clearInterval(S.playPingTimerId),S.playPingTimerId=NaN,UVu(),uH(S,"PLAY_EVENT_TYPE_PLAY_END",{},!0))},TAd=function(S,p){S.state===2&&S.gameReady&&(S.firstClickRecorded?Date.now()-S.clickRecordedMs<S.playClickIntervalMs||(S.clickRecordedMs=Date.now(),uH(S,"PLAY_EVENT_TYPE_PLAY_CLICK")):p&&(gQ(S,"ma_fua"),uH(S,"PLAY_EVENT_TYPE_PLAY_FIRST_USER_ACTION",
{sendIsolatedPayload:!0}),S.firstClickRecorded=!0,S.clickRecordedMs=Date.now()))};
UlP.prototype.logError=function(S){var p=this,U;_.T(function(Y){if(Y.nextAddress==1)return S.metadata.externalPostId=p.JSC$14733_miniAppId,U=S.metadata,_.k(Y,Promise.race([p.JSC$14733_playNonceResolver.promise,new Promise(function(L){setTimeout(function(){L("")},3E4)})]),2);
U.postPlayNonce=Y.yieldResult;S.metadata.localReleaseId=p.localReleaseId;S.loggingError.level="WARNING";_.ZP(S.loggingError,S.loggingError.level,void 0,void 0,void 0,void 0,void 0,{miniAppMetadata:S.metadata});_.OV(Y)})};
var WXI=function(S,p,U,Y){var L,I,V,W,O,D;_.T(function(z){if(z.nextAddress==1)return _.k(z,S.JSC$14733_playNonceResolver.promise,2);L=z.yieldResult;I={externalPostId:S.JSC$14733_miniAppId,localReleaseId:S.localReleaseId,postPlayNonce:L,sdkVersion:U,api:p};Y!==void 0&&(I.networkRequestsMeasurement={networkRequests:_.YY(Y,1),cachedRequests:_.YY(Y,2),transferredBytes:_.YY(Y,3)},(V=Y)==null?0:_.TR(V,oU,6))&&(I.networkRequestsMeasurement.serviceWorkerRequestsMeasurement={interceptedRequests:((W=_.Sa(Y,
oU,6))==null?void 0:GR(W,1))||"0",cacheHits:((O=_.Sa(Y,oU,6))==null?void 0:GR(O,2))||"0",cachedBytes:((D=_.Sa(Y,oU,6))==null?void 0:GR(D,3))||"0"});_.RV("miniAppSdkUsage",I);_.OV(z)})},kdQ=function(S,p,U){var Y,L,I,V,W,O,D,z,Q,J,K,G,X,Z,l,a;
_.T(function(N){if(N.nextAddress==1)return _.k(N,S.JSC$14733_playNonceResolver.promise,2);Y=N.yieldResult;L={externalPostId:S.JSC$14733_miniAppId,localReleaseId:S.localReleaseId,postPlayNonce:Y,sdkVersion:U,measurementWindow:{startTimestampMs:String(KT(p,1)),endTimestampMs:String(KT(p,2))},frameRate:{averageFrameTimeDeltaMs:bY(p,3),averageFrameIdleTimeMs:bY(p,4)}};_.TR(p,v$,5)&&(L.networkRequests={networkRequests:(I=th(p))==null?void 0:_.YY(I,1),cachedRequests:(V=th(p))==null?void 0:_.YY(V,2),transferredBytes:(W=
th(p))==null?void 0:_.YY(W,3),sameOriginStatusCodeToCounts:Oxj((O=th(p))==null?void 0:pPw(O,4)),crossOriginStatusCodeToCounts:Oxj((D=th(p))==null?void 0:pPw(D,5))},(z=th(p))==null?0:_.TR(z,oU,6))&&(L.networkRequests.serviceWorkerRequestsMeasurement={interceptedRequests:((Q=th(p))==null?void 0:(J=_.Sa(Q,oU,6))==null?void 0:GR(J,1))||"0",cacheHits:((K=th(p))==null?void 0:(G=_.Sa(K,oU,6))==null?void 0:GR(G,2))||"0",cachedBytes:((X=th(p))==null?void 0:(Z=_.Sa(X,oU,6))==null?void 0:GR(Z,3))||"0"});_.TR(p,
Tbt,7)&&(L.gameCapture={averageFrameTimeDeltaMs:(l=_.Sa(p,Tbt,7))==null?void 0:bY(l,1),averageFrameIdleTimeMs:(a=_.Sa(p,Tbt,7))==null?void 0:bY(a,2)});_.RV("miniAppPerformanceMetrics",L);_.OV(N)})},Hxm=function(S,p,U){var Y,L;
return _.T(function(I){if(I.nextAddress==1)return _.k(I,S.JSC$14733_playNonceResolver.promise,2);Y=I.yieldResult;L={adResult:"MINI_APP_AD_RESULT_REJECTED",miniAppContext:{externalPostId:S.JSC$14733_miniAppId,postPlayNonce:Y,miniAppReleaseId:S.localReleaseId},derivedDeviceInterface:S.derivedDeviceInterface,adTriggerType:p};L.rejectedReason=U||"MINI_APP_AD_REJECTED_REASON_UNSPECIFIED";_.RV("miniAppAdEvent",L);_.OV(I)})};
UlP.prototype.disposeInternal=function(){_.hY.prototype.disposeInternal.call(this);window.clearInterval(this.playPingTimerId);this.playPingTimerId=NaN};
var uH=function(S,p,U,Y){U=U===void 0?{}:U;Y=Y===void 0?!1:Y;var L,I,V,W;_.T(function(O){if(O.nextAddress==1)return L=S.isForeground,I=S.beforeReady,_.k(O,S.JSC$14733_playNonceResolver.promise,2);V=O.yieldResult;W={externalPostId:S.JSC$14733_miniAppId,localReleaseId:S.localReleaseId,derivedDeviceInterface:S.derivedDeviceInterface,postPlayNonce:V,type:p};U.sequenceGroup=V;W.playState=I?"PLAY_STATE_NOT_READY":L?"PLAY_STATE_READY_FOREGROUND":"PLAY_STATE_READY_BACKGROUND";_.RV("miniAppPlayEvent",W,U);
Y&&_.Fr();_.OV(O)})},gQ=function(S,p){var U;
_.T(function(Y){if(Y.nextAddress==1)return U=(0,_.AI)(),_.k(Y,S.JSC$14733_playNonceResolver.promise,2);_.Fg(p,U);_.OV(Y)})},MIt=function(S){isNaN(S.playPingTimerId)&&(S.playPingTimerId=_.dE(function(){S.state!==1&&S.state!==2?_.eP(new _.y7("[MiniAppPlayLogger] reportPlayPing failed with state "+S5m[S.state])):uH(S,"PLAY_EVENT_TYPE_PLAY_PING")},S.playPingIntervalMs))},Oxj=function(S){return Array.from(S.entries()).map(function(p){var U=_.d(p);
p=U.next().value;U=U.next().value;return{key:p,value:U}})};var DlQ=_.pA("show_mini_app_ad_frequency_cap_ms",0),z7Q=function(){this.showAdIntervalMs=DlQ;this.isRateLimited=!0},Q1l=function(S,p){setTimeout(function(){return S.isRateLimited=!1},S.showAdIntervalMs);
S.showMiniAppAdCommand=p.showMiniAppAdCommand;S.isEmbeddedInWebview=p.isEmbeddedInWebview;S.playLogger=p.playLogger},Jvw=function(S,p){var U;
return _.T(function(Y){if(Y.nextAddress==1){if(!S.showMiniAppAdCommand||!S.isEmbeddedInWebview)return Y.return(nbt(S,p,"MINI_APP_AD_REJECTED_REASON_CLIENT_UNSUPPORTED"));if(S.isRateLimited)return Y.return(nbt(S,p,"MINI_APP_AD_REJECTED_REASON_RATE_LIMITED"));S.adResolver=new _.MI;U=P1t(new XDt,p);gb(S.showMiniAppAdCommand,Z0l(U));S.isRateLimited=!0;setTimeout(function(){return S.isRateLimited=!1},S.showAdIntervalMs);
return _.k(Y,S.adResolver.promise,2)}return Y.return(Y.yieldResult)})};
z7Q.prototype.onAdFinished=function(S){S=xBI(S);var p;(p=this.adResolver)==null||p.resolve(S)};
var nbt=function(S,p,U){var Y;return _.T(function(L){if(L.nextAddress==1)L=_.k(L,(Y=S.playLogger)==null?void 0:Hxm(Y,WGe(p),U),2);else{var I=L.return;var V=new C6Q;V=_.pf(V,1,2);L=I.call(L,V)}return L})};var yvE=new _.$g("INNERTUBE_MANAGER_TOKEN");var KXw=function(){this.callbacks={}};
KXw.prototype.initialize=function(S){var p=this;this.callbacks=S;window.youtubewebview?window.youtubewebview.onmessage=function(U){bxE(p,U)}:(window.nativeMessageListener={},window.nativeMessageListener.onmessage=function(U){bxE(p,U)})};
var bxE=function(S,p){if(p.data)try{var U=z2e(p.data);if(_.CE(_.VY(U,1))!=null){var Y=j3m(_.jR(U,2));switch(_.jR(U,1)){case "yt-mini-app-load-audio-state":var L,I;(I=(L=S.callbacks).onAudioStateLoaded)==null||I.call(L,_.yY(Y,nv(Y,re,1)));break;case "yt-mute-mini-app":var V,W;(W=(V=S.callbacks).onMuteMiniApp)==null||W.call(V);break;case "yt-unmute-mini-app":var O,D;(D=(O=S.callbacks).onUnmuteMiniApp)==null||D.call(O);break;case "yt-playable-exit":var z,Q;(Q=(z=S.callbacks).onExit)==null||Q.call(z);
break;case "yt-post-play-nonce":var J,K;(K=(J=S.callbacks).onPostPlayNonceReceived)==null||K.call(J,hk(Y,2,re));break;case "yt-confirm-exit-mini-app":var G,X;(X=(G=S.callbacks).confirmExitMiniApp)==null||X.call(G);break;case "yt-confirm-exit-mini-app-edu":var Z,l;(l=(Z=S.callbacks).confirmExitMiniAppEdu)==null||l.call(Z);break;case "yt-benchmarking-response":var a,N;(N=(a=S.callbacks).onNativeBenchmarkingMessageReceived)==null||N.call(a,hk(Y,2,re));break;case "yt-mini-app-load-3p-consent-state":var m,
A;(A=(m=S.callbacks).multiplayer3pAckStateLoaded)==null||A.call(m,_.yY(Y,nv(Y,re,1)));break;case "yt-mini-app-get-exit-mini-app-seen-state":var q,TG;(TG=(q=S.callbacks).exitMiniAppSeenStateLoaded)==null||TG.call(q,_.yY(Y,nv(Y,re,1)));break;case "yt-mini-app-on-navigate-to-new-mini-app":var Je,GG;(GG=(Je=S.callbacks).onNavigateToNewMiniApp)==null||GG.call(Je);break;case "yt-game-data-available":var Zw,Ru;(Ru=(Zw=S.callbacks).onGameDataAvailable)==null||Ru.call(Zw,hk(Y,2,re));break;case "yt-pause-mini-app":var sX,
mq;(mq=(sX=S.callbacks).onPauseMiniApp)==null||mq.call(sX);break;case "yt-resume-mini-app":var au,XI;(XI=(au=S.callbacks).onResumeMiniApp)==null||XI.call(au);break;case "yt-playable-ad-finished":var nE,ut;(ut=(nE=S.callbacks).onAdFinished)==null||ut.call(nE,hk(Y,2,re))}}else _.eP(Error("Qh"))}catch(Hw){_.ZP(Error("Rh"))}else _.eP(Error("Sh"))};var kOG=function(S){this.rpcErrorCode=S};var wQ=function(S,p,U){this.intervalMs=S;this.apiFunc=p;this.type=U;this.schedulerReady=!0};
wQ.prototype.call=function(S){var p=this,U;return _.T(function(Y){if(Y.nextAddress==1){if(p.type!==1&&S===p.cachedValue)return Y.return();p.pendingApiRequestResolver||(p.pendingApiRequestResolver=new _.MI);U=p.pendingApiRequestResolver.promise;p.cachedValue=S;return _.k(Y,j1q(p),2)}return Y.return(U)})};
wQ.prototype.flush=function(S){S=S===void 0?!1:S;var p=this;return _.T(function(U){return p.cachedValue===void 0?U.return():_.k(U,p.apiFunc(p.cachedValue,S),0)})};
var j1q=function(S){var p,U,Y;return _.T(function(L){switch(L.nextAddress){case 1:if(!S.schedulerReady||!S.pendingApiRequestResolver)return L.return();S.schedulerReady=!1;p=S.pendingApiRequestResolver;S.pendingApiRequestResolver=void 0;_.M2(L,2);if(S.cachedValue===void 0){L.jumpTo(4);break}return _.k(L,S.apiFunc(S.cachedValue),5);case 5:U=L.yieldResult,p.resolve(U);case 4:_.CA(L,3);break;case 2:Y=_.W4(L),p.reject(Y);case 3:setTimeout(function(){return _.T(function(I){S.schedulerReady=!0;return _.k(I,
j1q(S),0)})},S.intervalMs),_.OV(L)}})};var zae=window.location.origin+"/miniapp_cloudsaves",Hew=[400,401],rvI=_.pA("cloud_save_game_data_rate_limit_ms",3E3),R7Q=function(S){var p=this;this.JSC$14777_miniAppId=S;this.loadAttempts=0;this.cloudSaveIntervalMs=rvI;this.initialDownloadDataSucceeded=!1;this.JSC$14777_playNonceResolver=new _.MI;this.scottyUploadRateLimiter=new wQ(this.cloudSaveIntervalMs,function(U,Y){return Gdw(p,U,Y)},2);
this.downloadDataPromise=h7m(this);this.downloadDataPromise.then(function(){p.initialDownloadDataSucceeded=!0}).catch(function(){})},FXm=function(S,p){p.then(function(U){return S.JSC$14777_playNonceResolver.resolve(U)})},Xoj=function(S){return _.T(function(p){return S.cachedData===void 0?p.return(S.downloadDataPromise):p.return(S.cachedData)})},P$P=function(S,p){return _.T(function(U){S.cachedData=p;
if(!S.initialDownloadDataSucceeded)throw Error("Th");return _.k(U,S.scottyUploadRateLimiter.call(p),0)})},ZxH=function(){return new Promise(function(S){setTimeout(S,1E3,"")})},s1m=function(S,p){var U,Y;
return _.T(function(L){if(L.nextAddress==1)return U=S.JSC$14777_miniAppId,_.k(L,Promise.race([S.JSC$14777_playNonceResolver.promise,ZxH()]),2);Y={"X-YouTube-MiniAppId":U,"X-YouTube-PostPlayNonce":L.yieldResult};"DELEGATED_SESSION_ID"in _.s0&&acu(p,Y);return L.return(Y)})},Gdw=function(S,p,U){U=U===void 0?!1:U;
return _.T(function(Y){return OeG()?_.y("enable_cloud_save_error_popup_after_retry")?Y.return(new Promise(function(L,I){var V,W,O,D,z;return _.T(function(Q){switch(Q.nextAddress){case 1:V=0,W=!0,D=O=null;case 2:if(!(W&&V++<2)){Q.jumpTo(4);break}_.M2(Q,5);return _.k(Q,e7j(S,p,U),7);case 7:O=Q.yieldResult;W=O.ok?!1:!Hew.includes(O.status);_.CA(Q,2);break;case 5:D=z=_.W4(Q);W=D$N(D);Q.jumpTo(2);break;case 4:O?O.ok?(lH(S,rvI),L()):(lH(S,S.cloudSaveIntervalMs*2),I(Error("Uh`"+String(O.status),{cause:{rpcErrorCode:O.status}}))):
(lH(S,S.cloudSaveIntervalMs*2),I(D||Error("Vh"))),_.OV(Q)}})})):Y.return(new Promise(function(L,I){var V,W;
return _.T(function(O){if(O.nextAddress==1){if(S.JSC$14777_miniAppId==="")return I(Error("Wh")),O.return();_.M2(O,2);return _.k(O,e7j(S,p,U),4)}if(O.nextAddress!=2)return V=O.yieldResult,V.ok?(lH(S,rvI),L()):(lH(S,S.cloudSaveIntervalMs*2),I(Error("Uh`"+String(V.status),{cause:{rpcErrorCode:V.status}}))),_.CA(O,0);W=_.W4(O);lH(S,S.cloudSaveIntervalMs*2);I(W);_.OV(O)})})):Y.return()})},e7j=function(S,p,U){U=U===void 0?!1:U;
var Y,L,I;return _.T(function(V){if(V.nextAddress==1)return Y=_.Ad((new TextEncoder).encode(p)),L=Qzw(),_.k(V,s1m(S,L),2);I=V.yieldResult;return V.return(fetch(L,{method:"POST",body:new Blob([Y]),headers:I,keepalive:U}))})},h7m=function(S){var p,U;
return _.T(function(Y){if(Y.nextAddress==1){if(!OeG())return Y.return("");if(S.JSC$14777_miniAppId==="")throw Error("Wh");if(S.loadAttempts>2)return Y.return(S.downloadDataPromise);_.M2(Y,2);return _.k(Y,gbQ(S),4)}if(Y.nextAddress!=2)return p=Y.yieldResult,Y.return(p);U=_.W4(Y);if(D$N(U)&&++S.loadAttempts<2)return Y.return(h7m(S));throw U;})},gbQ=function(S){var p,U,Y,L,I;
return _.T(function(V){switch(V.nextAddress){case 1:return _.M2(V,2),p=Qzw(),_.k(V,s1m(S,p),4);case 4:return U=V.yieldResult,_.k(V,fetch(p,{method:"GET",headers:U}),5);case 5:return Y=V.yieldResult,Y.ok?_.k(V,Y.text(),6):V.return(Promise.reject(Error("Xh`"+String(Y.status),{cause:new kOG(Y.status)})));case 6:return L=V.yieldResult,V.return((new TextDecoder).decode(_.Ol(L)));case 2:return I=_.W4(V),V.return(Promise.reject(I))}})},lH=function(S,p){S.cloudSaveIntervalMs=p;
S.scottyUploadRateLimiter.intervalMs=S.cloudSaveIntervalMs};
R7Q.prototype.flush=function(){var S=this;return _.T(function(p){return S.initialDownloadDataSucceeded?_.k(p,S.scottyUploadRateLimiter.flush(!0),0):p.return()})};var uLm=qv(B$(1),is(1)),wom=qv(B$(1),is(3)),ae=function(S){this.callbacks=S};
_.M=ae.prototype;_.M.onAudioToggled=function(S,p){(p===void 0||p)&&_.p$("yt-mini-app-is-audio-enabled",S,2592E3)};
_.M.onPause=function(){this.onAudioToggled(!1,!1)};
_.M.onResume=function(){this.onAudioToggled(this.callbacks.isAudioEnabled(),!1)};
_.M.returnNativeBenchmarkingMessage=function(){};
_.M.sendGameData=function(){};
_.M.sendStartGameFrameCapture=function(){};
var n$d=function(S,p,U){this.callbacks=S;var Y=this;this.sdkVersion=new _.MI;this.channel=new FDG(_.vg({destination:window,iframe:p,origin:(new URL(U.toString())).origin,channelName:"playableIframe",onMessage:this.onMessage(),onEstablished:function(){var L=fR;var I=B$(5);var V=new qKl;V=_.FU(V,1,1E4);I=_.Yq(I,4,LUm,V);L(Y,I);Y.onAudioToggled(Y.callbacks.isAudioEnabled())}}));
this.sdkVersionTimeoutId=setTimeout(function(){Y.sdkVersion.resolve("")},1E4)};
_.r(n$d,ae);_.M=n$d.prototype;_.M.onAudioToggled=function(S,p){ae.prototype.onAudioToggled.call(this,S,p===void 0?!0:p);p=fR;var U=B$(2),Y=new N8w;S=_.d5(Y,1,S);S=_.Yq(U,3,LUm,S);p(this,S)};
_.M.onPause=function(){ae.prototype.onPause.call(this);fR(this,B$(3))};
_.M.onResume=function(){ae.prototype.onResume.call(this);fR(this,B$(4))};
_.M.returnNativeBenchmarkingMessage=function(S){var p=fR,U=B$(6);var Y=is(_.TR(S,a3,1)?1:2);S=_.TR(S,a3,1)?S:null;Y=_.Yq(Y,5,Nv,S);p(this,qv(U,Y))};
_.M.sendGameData=function(S){var p=fR,U=B$(7);S=_.Yq(U,5,LUm,S);p(this,S)};
_.M.sendStartGameFrameCapture=function(){fR(this,B$(9))};
var CR=function(S,p,U){var Y,L,I;return _.T(function(V){if(V.nextAddress==1)return Y=S.callbacks,L=Y.onSdkCalled,I=p,_.k(V,S.sdkVersion.promise,2);L.call(Y,I,V.yieldResult,U);_.OV(V)})};
n$d.prototype.onMessage=function(){var S=this;return ZGk(c$,function(p){var U,Y,L,I,V,W,O,D,z,Q,J,K,G,X,Z,l,a,N,m,A,q,TG,Je,GG,Zw,Ru,sX,mq,au,XI,nE,ut,Hw,Tj,Ut,Ww,kA,XO,Vw,Kc,eQ,x5,rm,Bw,oO,$m;return _.T(function(Mt){switch(Mt.nextAddress){case 1:if(!HJw(p.data))return _.eP(Error("Yh")),Mt.return();U=_.r1(p.data,1);_.y("enable_iframe_message_get_type_via_fields")&&(Y=p.data,U=L=_.r1(Y,1));switch(U){case 8:if(p.data.hasMetadata()){var El=S.sdkVersion,KE=El.resolve;var yH=p.data.getMetadata();yH=_.jR(yH,
1);KE.call(El,yH);clearTimeout(S.sdkVersionTimeoutId)}break;case 6:return Mt.jumpTo(2);case 16:if(!_.Wg(p.data,dPt,14,Sq))return Mt.return();I=_.Ra(p.data,dPt,14,Sq);(W=(V=S.callbacks).onGameFrameReceived)==null||W.call(V,I);return Mt.return();case 17:if(!_.Wg(p.data,IpP,15,Sq))return Mt.return();(D=(O=S.callbacks).onGameAudioReceived)==null||D.call(O,_.Ra(p.data,IpP,15,Sq));return Mt.return();case 1:if(El=_.Ra(p.data,cnm,2,Sq))switch(_.r1(El,1)){case 1:S.callbacks.onFirstFrameReady();if(_.y("enable_network_request_logging_on_game_events")&&
_.TR(El,v$,4)){CR(S,"MINI_APP_SDK_API_FIRST_FRAME_READY",_.Sa(El,v$,4));break}CR(S,"MINI_APP_SDK_API_FIRST_FRAME_READY");break;case 2:(yH=(KE=S.callbacks).onGameReady)==null||yH.call(KE);if(_.y("enable_network_request_logging_on_game_events")&&_.TR(El,v$,4)){CR(S,"MINI_APP_SDK_API_GAME_READY",_.Sa(El,v$,4));break}CR(S,"MINI_APP_SDK_API_GAME_READY");break;case 3:if(_.Wg(El,$z,3,SEl))S.callbacks.onResourceLoaded(_.Ra(El,$z,3,SEl))}return Mt.return();case 3:return Mt.jumpTo(3);case 4:return Mt.jumpTo(4);
case 2:return Mt.jumpTo(5);case 9:return Mt.jumpTo(6);case 10:return S.callbacks.onClick(),Mt.return();case 5:return Mt.jumpTo(7);case 11:if(!_.Wg(p.data,ES,9,Sq))return Mt.return();z=_.Ra(p.data,ES,9,Sq);(J=(Q=S.callbacks).onBenchmarkingMessageReceived)==null||J.call(Q,z);El=p.reply;KE=B$(1);yH=is(1);var Gj=new ES;var MY=new Uint8Array(A$G(z,nv(z,mBj,6))|0);Gj=kv(Gj,5,mBj,_.aP(MY,!1));yH=_.Yq(yH,5,Nv,Gj);El.call(p,qv(KE,yH));return Mt.return();case 12:return Mt.jumpTo(8);case 13:return Mt.jumpTo(9);
case 15:if(!_.y("enable_open_yt_content"))return p.reply(wom),Mt.return();if(!_.Wg(p.data,MJt,12,Sq))return p.reply(qv(B$(1),is(2))),Mt.return();El=_.Ra(p.data,MJt,12,Sq);K=_.jR(El,1);S.callbacks.onOpenYTContent(K);p.reply(uLm);return Mt.return();case 14:return Mt.jumpTo(10);default:return Mt.return()}Mt.jumpTo(0);break;case 2:if(!_.Wg(p.data,Ah,5,Sq))return Mt.return();KE=p.data;El=nv(KE,Sq,5);KE=KE.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;(El=FO(KE,KE[_.jQ]|0,Ah,El))||(El=Ah[oT])||
(El=new Ah,FI(El.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows),El=Ah[oT]=El);G=El;El=_.p2(G,mw,1,_.Ur());X=_.d(El);Z=X.next();case 12:if(Z.done){Mt.jumpTo(14);break}l=Z.value;a=new _.y7;a.level=_.r1(l,2)===1?"WARNING":"ERROR";N=ymG(l.getSource());return _.k(Mt,S.sdkVersion.promise,15);case 15:m={source:N,sdkVersion:Mt.yieldResult};_.ri(_.VY(l,6))!=null?(a.message=l.getMessage(),a.stack=_.jR(l,5),m.sdkErrorType=KGr(_.r1(l,6)),_.ri(_.VY(l,7))!=null&&(m.sdkApi=beN(_.r1(l,7)))):a.stack=void 0;
q=A=void 0;(q=(A=S.callbacks).onError)==null||q.call(A,{loggingError:a,metadata:m});Z=X.next();Mt.jumpTo(12);break;case 14:return Mt.return();case 3:return _.M2(Mt,16),El=S.callbacks,KE=El.onSave,yH=_.Ra(p.data,B8t,4,Sq),yH=_.jR(yH,1),_.k(Mt,KE.call(El,yH),18);case 18:p.reply(uLm);_.CA(Mt,17);break;case 16:return TG=_.W4(Mt),Je=uO,GG=TG,Zw=S.callbacks,Ru="MINI_APP_SDK_API_SAVE_DATA",_.k(Mt,S.sdkVersion.promise,19);case 19:Je(GG,Zw,Ru,Mt.yieldResult),p.reply(wom);case 17:return _.k(Mt,CR(S,"MINI_APP_SDK_API_SAVE_DATA"),
20);case 20:return Mt.return();case 4:return _.M2(Mt,21),_.k(Mt,S.callbacks.onLoad(),23);case 23:sX=Mt.yieldResult;El=p.reply;KE=B$(1);yH=is(1);Gj=new B8t;Gj=_.zN(Gj,1,sX);yH=_.Yq(yH,3,Nv,Gj);El.call(p,qv(KE,yH));_.CA(Mt,22);break;case 21:return mq=_.W4(Mt),au=uO,XI=mq,nE=S.callbacks,ut="MINI_APP_SDK_API_LOAD_DATA",_.k(Mt,S.sdkVersion.promise,24);case 24:au(XI,nE,ut,Mt.yieldResult),p.reply(wom);case 22:return _.k(Mt,CR(S,"MINI_APP_SDK_API_LOAD_DATA"),25);case 25:return Mt.return();case 5:_.M2(Mt,
26);S.callbacks.onSendHighScore(u9(_.Ra(p.data,OJm,3,Sq).getValue()));p.reply(qv(B$(1),is(1)));_.CA(Mt,27);break;case 26:return Hw=_.W4(Mt),Tj=uO,Ut=Hw,Ww=S.callbacks,kA="MINI_APP_SDK_API_SEND_SCORE",_.k(Mt,S.sdkVersion.promise,28);case 28:Tj(Ut,Ww,kA,Mt.yieldResult),p.reply(wom);case 27:return _.k(Mt,CR(S,"MINI_APP_SDK_API_SEND_SCORE"),29);case 29:return Mt.return();case 6:if(!_.Wg(p.data,khE,8,Sq)){Mt.jumpTo(30);break}El=_.Ra(p.data,khE,8,Sq);El=_.r1(El,1);return _.k(Mt,CR(S,beN(El)),30);case 30:return Mt.return();
case 7:return El=p.reply,KE=B$(1),yH=is(1),Gj=S.callbacks.getLanguage(),yH=kv(yH,4,Nv,fE(Gj)),El.call(p,qv(KE,yH)),_.k(Mt,CR(S,"MINI_APP_SDK_API_GET_LANGUAGE"),32);case 32:return Mt.return();case 8:if(!_.Wg(p.data,WUw,10,Sq))return Mt.return();XO=_.Ra(p.data,WUw,10,Sq);Vw=S.callbacks;Kc=Vw.onSdkPerformanceUpdate;return _.k(Mt,S.sdkVersion.promise,33);case 33:return Kc.call(Vw,XO,Mt.yieldResult),Mt.return();case 9:El=p.data;KE=nv(El,Sq,11);if(_.CE(_.VY(El,KE))==null)return p.reply(qv(B$(1),is(2))),
Mt.return();eQ=hk(p.data,11,Sq);S.callbacks.onShareInviteCode(eQ);p.reply(uLm);return _.k(Mt,CR(S,"MINI_APP_SDK_API_SHARE_INVITE_CODE"),34);case 34:return Mt.return();case 10:if(_.Wg(p.data,i6I,13,Sq)){Mt.jumpTo(35);break}return _.k(Mt,S.callbacks.onShowMiniAppAd(2),36);case 36:return x5=Mt.yieldResult,p.reply(qv(B$(1),UPw(x5))),_.k(Mt,CR(S,"MINI_APP_SDK_API_REQUEST_AD"),37);case 37:return Mt.return();case 35:El=_.Ra(p.data,i6I,13,Sq);a:switch(_.r1(El,1)){case 1:El={adType:2,sdkApi:"MINI_APP_SDK_API_REQUEST_INTERSTITIAL_AD"};
break a;case 2:El={adType:3,sdkApi:"MINI_APP_SDK_API_REQUEST_REWARDED_AD"};break a;default:El={adType:0,sdkApi:"MINI_APP_SDK_API_REQUEST_AD"}}rm=El;Bw=rm.adType;oO=rm.sdkApi;El=S.callbacks;KE=El.onShowMiniAppAd;yH=_.Ra(p.data,i6I,13,Sq);yH=_.jR(yH,2);return _.k(Mt,KE.call(El,Bw,yH||void 0),38);case 38:return $m=Mt.yieldResult,p.reply(qv(B$(1),UPw($m))),_.k(Mt,CR(S,oO),39);case 39:return Mt.return()}})})};
var fR=function(S,p){_.T(function(U){S.channel.send(p);_.OV(U)})},wb=function(S,p,U){this.callbacks=S;
var Y=this;this.encoder=new TextEncoder;this.decoder=new TextDecoder;S=dhk(p,(new URL(U.toString())).origin);this.gameSnacks=new oGX(S);this.gameSnacks.page.onReady(function(){Y.callbacks.onFirstFrameReady()});
this.gameSnacks.userActivity.onUserActivity(function(){Y.callbacks.onClick()},1E4);
this.gameSnacks.game.onReady(function(){var L,I;(I=(L=Y.callbacks).onGameReady)==null||I.call(L)});
this.gameSnacks.audio.update(this.callbacks.isAudioEnabled());this.gameSnacks.score.onChange(function(L,I){try{Y.callbacks.onSendHighScore(I)}catch(V){uO(V,Y.callbacks,"MINI_APP_SDK_API_SEND_SCORE","GS")}});
this.gameSnacks.storage.onSave(function(L,I){var V;return _.T(function(W){if(W.nextAddress==1)return _.M2(W,2),_.k(W,Y.callbacks.onSave(Y.decoder.decode(I)),4);if(W.nextAddress!=2)return _.CA(W,0);V=_.W4(W);uO(V,Y.callbacks,"MINI_APP_SDK_API_SAVE_DATA","GS");return W.return()})});
this.gameSnacks.storage.onLoad(function(){var L,I;return _.T(function(V){if(V.nextAddress==1)return _.M2(V,2),_.k(V,Y.callbacks.onLoad(),4);if(V.nextAddress!=2)return L=V.yieldResult,V.return(Y.encoder.encode(L));I=_.W4(V);uO(I,Y.callbacks,"MINI_APP_SDK_API_LOAD_DATA","GS");return V.return(Y.encoder.encode(""))})});
this.gameSnacks.init()};
_.r(wb,ae);wb.prototype.onAudioToggled=function(S,p){ae.prototype.onAudioToggled.call(this,S,p===void 0?!0:p);var U;(U=this.gameSnacks)==null||U.audio.update(S)};
wb.prototype.onPause=function(){ae.prototype.onPause.call(this);var S;(S=this.gameSnacks)==null||S.game.pause()};
wb.prototype.onResume=function(){ae.prototype.onResume.call(this);var S;(S=this.gameSnacks)==null||S.game.resume()};var lUm=jzk,aUe=_.$k(function(S){var p=S.data;var U=S.loadingProgress;S=_.d(_.kj("",void 0,"LYYTdd"));var Y=S.next().value,L=S.next().value;S=_.d(_.kj(!1,void 0,"K0waae"));var I=S.next().value,V=S.next().value,W=[],O=function(){return"transform: scaleX("+(_.Pz(U)||0)+")"},D=null,z=function(){var G;
return(G=p()&&D)!=null?G:D=p().showAnniversaryAnimation?6:lUm()};
_.R8(function(){var G;if(p().timeOutMessages&&((G=p().timeOutMessages)==null?0:G.length)){D=null;G=_.d(W);for(var X=G.next();!X.done;X=G.next())clearTimeout(X.value);W.length=0;rmd(p().timeOutMessages,W,L,V)}});
var Q=function(){return!!p().persistentErrorMessageTitle},J=function(){return U!==void 0},K=function(){return p().title};
return _.H("yt-mini-splash-screen-view-model",{class:"mini-app-splash-screen-view-model-wiz"},_.H("div",{class:"mini-app-splash-screen-view-model-wiz__loading-screen",role:"region",tabindex:0},_.H("div",{class:"mini-app-splash-screen-view-model-wiz__background-base"}),_.H("div",{class:"mini-app-splash-screen-view-model-wiz__background-blur",style:function(){var G,X=(G=p().backgroundImage)==null?void 0:G.sources,Z;return(X==null?0:X.length)?"background-image: url("+((Z=X[0])==null?void 0:Z.url)+")":
""}}),_.H("div",{class:"mini-app-splash-screen-view-model-wiz__background-scrim"}),_.H(_.n,{cond:function(){return!Q()},
then:function(){var G={};return _.H("div",{class:"mini-app-splash-screen-view-model-wiz__loading-screen-content"},_.H("div",{class:"mini-app-splash-screen-view-model-wiz__loading-icon"},_.H(_.Tw,{className:"mini-app-splash-screen-view-model-wiz__loading-icon-animation",animationName:function(){return"loading_animation_"+z()},
data:function(){var X="loading_animation_"+z();return{animationConfig:{name:X,path:"https://www.gstatic.com/youtube/img/lottie/playables_loading_animation/"+X+".json",loop:!0,autoplay:!0}}}})),_.H("div",{class:"mini-app-splash-screen-view-model-wiz__timeout-message-container"},_.H(_.n,{cond:K,
then:function(){return _.H("h3",{class:"mini-app-splash-screen-view-model-wiz__timeout-heading"},K)}}),_.H("p",{class:_.VD("mini-app-splash-screen-view-model-wiz__timeout-message",(G["mini-app-splash-screen-view-model-wiz__timeout-message-fade-out"]=function(){return I()},G)),
"aria-live":"polite"},Y),_.H(_.n,{cond:J,then:function(){return _.H("div",{class:"mini-app-splash-screen-view-model-wiz__loading-bar-track"},_.H("div",{class:"mini-app-splash-screen-view-model-wiz__loading-bar-segment mini-app-splash-screen-view-model-wiz__loading-bar-segment-resource-animation",style:O}))}})))}}),_.H(_.n,{cond:Q,
then:function(){return _.H("div",{class:"mini-app-splash-screen-view-model-wiz__persistent-error-content"},_.H("h3",{class:"mini-app-splash-screen-view-model-wiz__persistent-error-message-title"},function(){return p().persistentErrorMessageTitle}),_.H(_.n,{cond:function(){return!!p().persistentErrorMessageDescription},
then:function(){return _.H("p",{class:"mini-app-splash-screen-view-model-wiz__persistent-error-message-description"},function(){return p().persistentErrorMessageDescription})}}))}})))},"Qd");var fUj=new _.$g("SHARE_CLIENT_PARAMS_PROVIDER_TOKEN");var C$l=qx;qx=function(S){function p(U){if(U){var Y,L;(Y=U.__spec)==null||(L=Y.didUnmount)==null||L.call(Y);for(Y=0;Y<U.childNodes.length;Y++)p(U.childNodes[Y])}}
C$l==null||C$l(S);rx(function(){for(var U=0;U<S.length;U++)p(S[U])})};var xle=_.$k(function(S){var p=S.data;var U=S.score;var Y=S.formattedScore;var L=S.onScoreChanged;var I=S.isEmbeddedInWebview;var V=_.$v(),W=function(){var K;return _.b(p==null?void 0:(K=p())==null?void 0:K.buttonViewModel,_.K6)},O=function(){var K;
return(U==null?void 0:U())||Number(p==null?void 0:(K=p())==null?void 0:K.lastScore)||0},D=function(){var K;
return(Y==null?void 0:Y())||((K=W())==null?void 0:K.title)||""},z,Q=1;
if(S=(new URLSearchParams(window.location.search)).get("deviceTextZoomSetting"))S=Number(S),Q=isNaN(S)?1:S/100;_.R8(function(){L==null||L(O());var K;var G=_.sW((K=W())==null?void 0:K.onTap);if(G){K=_.b(G,gze);var X,Z,l;K=_.b(K==null?void 0:(X=K.panelLoadingStrategy)==null?void 0:(Z=X.inlineContent)==null?void 0:(l=Z.dialogViewModel)==null?void 0:l.customContent,s3c)}else K=void 0;if(X=K)X.score=D()});
S=_.kL(function(){var K,G,X=p==null?void 0:(K=p())==null?void 0:(G=K.loggingDirectives)==null?void 0:G.trackingParams;X&&_.La(_.tW().resolve(_.Jt),X);return!1});
_.FM(function(){if(V.value){var K=V.value.querySelector("button"),G=W();K&&G&&GOG(K,G);qW("yt-share-playable-with-high-score",function(){var X=O().toString(),Z=p==null?void 0:p().onShareHighScoreCommand,l=p==null?void 0:p().highScoreShareClientParamIdentifier,a=I==null?void 0:I();Z&&(a?(l=new jUQ,X=_.zN(l,2,X),gb(Z,X.JSC$10270_serializeBinary())):l&&(_.tW().resolve(fUj).clientParams.set(l,{miniAppClientParams:{highScore:X}}),d$q(Z,!1)))})}});
var J=function(){var K=W();K&&(U==null?0:U())&&K.accessibilityText&&(K.accessibilityText=K.accessibilityText.replace(z,D()));z=D();return{numberValue:O(),numberText:D(),heightPx:36,fontSizeMultiplier:Q,shouldAnimate:!(U==null||!U())&&!0}};
return _.H("yt-mini-app-score-button-view-model",{class:function(){var K={};return _.W7("mini-app-score-button-view-model-wiz",(K["mini-app-score-button-view-model-wiz--is-visible"]=O()!==0,K))},
el:V,"on:click":S},qd(!1,function(){return _.H("span",{style:"display:none;"},O)}),_.H(_.yP,{data:function(){var K;
return p==null?void 0:(K=p())==null?void 0:K.buttonViewModel}},{buttonViewModel:function(K){return _.H(_.PG,{data:K.data,
animatedTextProps:J})}}))},"Rd");var $lH=_.$k(function(S){var p,U=(p=_.Uz("yt-mini-app-is-theater-mode-enabled"))!=null?p:!1,Y=_.y("enable_playable_container_save_button"),L=_.y("enable_play_next_destination_page_in_toolbar");p={};return _.H("ytm-mini-app-top-bar-view-model",null,_.H("div",{class:_.VD("yt-mini-app-top-bar-view-model",(p["yt-mini-app-top-bar-view-model--mobile"]=!1,p["yt-mini-app-top-bar-view-model--desktop"]=!0,p))},_.H("div",{class:"yt-mini-app-top-bar-view-model__start-buttons"},_.H(_.n,{cond:function(){var I;
return!!S.data().backButtonEdu&&!((I=S.isExitMiniAppSeen)==null?0:I.call(S))},
then:function(){return _.H(_.yP,{data:function(){return S.data().backButtonEdu}},{buttonViewModel:_.PG})},
else:function(){return _.H(_.yP,{data:function(){return S.data().backButton}},{buttonViewModel:_.PG})}}),_.H(_.n,{cond:function(){return S.data().viewAllButton&&!0},
then:function(){return _.H(_.yP,{data:function(){return S.data().viewAllButton}},{buttonViewModel:_.PG})}}),_.H(_.n,{cond:function(){return S.data().title&&!0},
then:function(){return _.H("div",{class:"yt-mini-app-top-bar-view-model__title"},function(){return S.data().title})}})),_.H("div",{class:"yt-mini-app-top-bar-view-model__center-buttons"},_.H(_.n,{cond:function(){var I;
return(I=S.isDesktopPlayPage)==null?void 0:I.call(S)},
then:function(){return _.H(_.U0,null,_.H(Ebm,{highScoreButton:function(){return S.data().highScoreButton},
score:S.score,formattedScore:S.formattedScore,onScoreChanged:S.onScoreChanged,isEmbeddedInWebview:S.isEmbeddedInWebview}),_.H(mlt,{enableSaveButton:function(){return _.Pz(Y)},
saveButton:function(){return S.data().saveButton},
isSaved:S.isSaved,onSaveToggled:function(){return S.onSaveToggled}}),_.H(obt,{menuButton:function(){return S.data().menuButton}}))},
else:function(){return _.H(_.n,{cond:function(){return!1},
then:function(){return _.H(_.yP,{data:function(){return S.data().playPageButton}},{buttonViewModel:function(I){return _.H(_.PG,{data:I.data,
className:"yt-mini-app-top-bar-view-model__play-page-button-view-model"})}})},
else:function(){return _.H(Ebm,{highScoreButton:function(){return S.data().highScoreButton},
score:S.score,formattedScore:S.formattedScore,onScoreChanged:S.onScoreChanged,isEmbeddedInWebview:S.isEmbeddedInWebview})}})}})),_.H("div",{class:"yt-mini-app-top-bar-view-model__end-buttons"},_.H(_.yP,{data:function(){return S.data().muteButton}},{toggleButtonViewModel:function(I){var V=I.data;
return _.H(_.jS,{data:function(){var W,O;return Object.assign({},V(),{isToggled:(O=(W=S.isAudioEnabled)==null?void 0:W.call(S))!=null?O:!0})},
onToggle:S.onAudioToggled,useOutlinedIcon:!0})}}),_.H(_.yP,{data:function(){return S.data().theatreModeButton}},{toggleButtonViewModel:function(I){var V=I.data;
return _.H("div",{class:"yt-mini-app-top-bar-view-model__theatre-mode-button"},_.H(_.jS,{data:function(){return Object.assign({},V(),{isToggled:U})},
useOutlinedIcon:!0}))}}),_.H(vbq,{fullscreenButton:function(){return S.data().fullscreenButton}}),_.H(_.n,{cond:function(){return _.Pz(L)&&S.data().viewAllButton&&!1},
then:function(){return _.H(_.yP,{data:function(){return S.data().viewAllButton}},{buttonViewModel:_.PG})}}),_.H(_.n,{cond:function(){var I;
return!((I=S.isDesktopPlayPage)==null?0:I.call(S))},
then:function(){return _.H(_.U0,null,_.H(mlt,{enableSaveButton:function(){return _.Pz(Y)},
saveButton:function(){return S.data().saveButton},
isSaved:S.isSaved,onSaveToggled:function(){return S.onSaveToggled}}),_.H(obt,{menuButton:function(){return S.data().menuButton}}))}}))))},"Sd");
$lH.idomCompat={callbacks:{onAudioToggled:!0,onSaveToggled:!0,onScoreChanged:!0}};var obt=_.$k(function(S){return _.H(_.yP,{data:S.menuButton},{buttonViewModel:_.PG})},"Td"),mlt=_.$k(function(S){var p=S.enableSaveButton;
var U=S.saveButton;var Y=S.isSaved;var L=S.onSaveToggled;return _.H(_.n,{cond:function(){return p()&&!(U==null||!U())},
then:function(){return _.H(_.yP,{data:function(){var I=_.b(U==null?void 0:U(),_.b6),V;return{toggleButtonViewModel:Object.assign({},I,{isToggled:(V=Y==null?void 0:Y())!=null?V:!(I==null||!I.isToggled)})}}},{toggleButtonViewModel:function(I){return _.H(_.jS,{data:I.data,
onToggle:L})}})}})},"Ud"),Ebm=_.$k(function(S){var p=S.highScoreButton;
var U=S.score;var Y=S.formattedScore;var L=S.onScoreChanged;var I=S.isEmbeddedInWebview;return _.H(_.yP,{data:p},{miniAppScoreButtonViewModel:function(V){return _.H(xle,{data:V.data,score:U,formattedScore:Y,onScoreChanged:L,isEmbeddedInWebview:I})}})},"Vd"),vbq=_.$k(function(S){S=S.fullscreenButton;
return navigator.userAgent.includes("CriOS")?_.H(_.U0,null):_.H(_.yP,{data:S},{buttonViewModel:_.PG})},"Wd");_.ixm=new _.$g("DESKTOP_CURRENT_PAGE");var cvI=_.$k(function(S){var p=S.data;var U=_.y("force_active_time_logging_webview"),Y=!1,L=new KXw,I=void 0,V=void 0,W=_.tW().resolve(yvE),O=new z7Q,D=void 0,z=void 0,Q=[],J=void 0,K=void 0,G=!1,X=!1,Z=!1,l=!1,a=new _.MI,N=_.tW().resolve(fUj),m=_.tW().resolve(_.e3),A=_.tW().resolve(_.AW(WW)),q,TG=(q=_.tW().resolve(_.AW(_.ixm)))==null?void 0:q.getCurrentPage(),Je=!1,GG=0,Zw=function(vk){vk.preventDefault();return vk.returnValue=""},Ru;
S=_.d(_.kj(!((Ru=_.Uz("yt-mini-app-is-audio-enabled"))!=null&&!Ru),void 0,"HKETIe"));var sX=S.next().value,mq=S.next().value,au;Ru=_.d(_.kj(!((au=_.Uz("exit-mini-app-seen-state"))==null||!au),void 0,"YikM9"));var XI=Ru.next().value,nE=Ru.next().value;au=_.d(_.kj(!1,void 0,"iTNqCb"));var ut=au.next().value,Hw=au.next().value;au=_.d(_.kj(void 0,void 0,"bU3Vbf"));var Tj=au.next().value,Ut=au.next().value;au=_.d(_.kj(void 0,void 0,"qd4Zt"));var Ww=au.next().value,kA=au.next().value;au=_.d(_.kj(!0,void 0,
"Cqc83e"));var XO=au.next().value,Vw=au.next().value;au=_.d(_.kj(!1,void 0,"oHovIe"));var Kc=au.next().value,eQ=au.next().value;au=_.d(_.kj(void 0,void 0,"aeN11"));var x5=au.next().value,rm=au.next().value;au=_.d(_.kj(0,void 0,"AEGRyb"));var Bw=au.next().value,oO=au.next().value,$m=_.vH(),Mt=function(){return p().isEmbeddedInWebview},El=function(){return p().hasPlayNextShelf};
qW("yt-page-type-changed",function(vk){if(_.y("enable_is_mini_app_page_active_bugfix"))vk.detail.newPageSubtype!=="mini_app"&&XO()&&Gj();else if(vk=_.TUw()==="mini_app",vk!==XO())if(Vw(vk),vk){var di;vk=(di=p().playableId)==null?void 0:di.toString();vk!==void 0&&window.location.href.includes(vk)&&!X&&(l=!0,KE(),HY(zj.value))}else vk||Gj()});
qW("yt-action",function(vk){vk.detail.actionName==="yt-engagement-panel-visible-changed"&&vk.detail.args[1]==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&vk.detail.args[2]==="PAmini_app_panel"&&Gj();_.y("enable_is_mini_app_page_active_bugfix")?vk.detail.actionName==="yt-history-load"&&!XO()&&(TG==null?0:TG.active)?(Vw(!0),KE(),HY(zj.value)):vk.detail.actionName==="yt-history-load"&&XO()&&!p().isEmbeddedInWebview&&Ku():XO()&&vk.detail.actionName==="yt-history-load"&&(l?l=!1:p().isEmbeddedInWebview||Ku())});
_.FG(function(){yH()});
_.R8(function(){KE()});
var KE=function(){var vk=p().playableId,di=p().localReleaseId,TD=p().derivedDeviceInterface;if(X)_.eP(new _.y7("[MiniAppContainerViewModel] onEnter was called more than once"));else{X=!0;I=new UlP(vk,di,TD,document.visibilityState==="visible");IUl(I);V=new R7Q(vk);NAm(W,vk);Q1l(O,{showMiniAppAdCommand:p().showMiniAppAdCommand,isEmbeddedInWebview:p().isEmbeddedInWebview,playLogger:I});r8r()&&(K=document.body.style.backgroundColor,_.R3(document.body,"background-color","black"));ys();Jq();a=new _.MI;
if(p().isEmbeddedInWebview){if(vk=(new URLSearchParams(window.location.search)).get("postPlayNonce"))LXm(I,vk),Je=!0;L.initialize({onAudioStateLoaded:function(WY){Tq(WY)},
onMuteMiniApp:function(){Tq(!1)},
onUnmuteMiniApp:function(){Tq(!0)},
onExit:function(){},
onPostPlayNonceReceived:function(WY){Je||(LXm(I,WY),Je=!0)},
confirmExitMiniApp:function(){var WY,X5,fu;return _.T(function(Z3){if(Z3.nextAddress==1)return p().confirmExitMiniAppCommand?_.k(Z3,Promise.race([a.promise,Promise.resolve(!1)]),2):Z3.return();(WY=Z3.yieldResult)?!p().confirmExitMiniAppCommandEdu||(fu=(X5=XI)==null?void 0:X5())!=null&&fu?bV(p().confirmExitMiniAppCommand):(bV(p().confirmExitMiniAppCommandEdu),_.p$("exit-mini-app-seen-state","true",2592E6)):bV(p().closeMiniAppCommand);_.OV(Z3)})},
onNativeBenchmarkingMessageReceived:function(WY){WY=vOm(_.M_X(WY));if(_.Wg(WY,_.eJ,3,EOI)){var X5=_.Ra(WY,_.eJ,3,EOI),fu=Vhw();var Z3=u9(fu.getSeconds())-u9(X5.getSeconds());X5=_.YY(fu,2)-_.YY(X5,2);Z3<0&&X5>0?(Z3+=1,X5-=1E9):Z3>0&&X5<0&&(--Z3,X5+=1E9);Z3=(new a3).setSeconds(Z3);Z3=_.GD(Z3,2,_.Gq(X5),0);_.U3(WY,1,Z3)}var QY;(QY=z)==null||QY.returnNativeBenchmarkingMessage(WY)},
multiplayer3pAckStateLoaded:function(WY){Ku(WY)},
exitMiniAppSeenStateLoaded:function(WY){p().confirmExitMiniAppCommandEdu&&nE(WY)},
onNavigateToNewMiniApp:function(){bV(p().onNavigateToNewMiniAppCommand)},
onGameDataAvailable:function(WY){WY=new URLSearchParams(WY);var X5=void 0;WY.has("invite_code")&&(X5=new tSm,WY=WY.get("invite_code"),X5=_.zN(X5,1,WY));if(WY=X5){var fu;(fu=z)==null||fu.sendGameData(WY)}},
onPauseMiniApp:function(){Y=!0;MY()},
onResumeMiniApp:function(){Y=!0;V2()},
onAdFinished:function(WY){O.onAdFinished(WY)}});
p().showMultiplayer3pConsentDialogCommand||a.resolve(!0);bV(p().onContainerReadyCommand)}else LXm(I),a.resolve(!0);FXm(V,Y5w(I));Y5w(I).then(function(WY){WY={miniAppPlayData:{postPlayNonce:WY}};var X5,fu=(X5=p().loggingDirectives)==null?void 0:X5.trackingParams;fu&&_.HX().stateChanged(fu,WY)});
vk=p().showSignInDialogCommand;!OeG()&&vk&&(_.p$("yt-mini-app-has-shown-sign-in-dialog",!0,2592E3),bV(vk));p().confirmExitMiniAppCommand&&A&&(vk=Mhu(p().confirmExitMiniAppCommand))&&(A.customConfirmationCommand=vk)}},yH=function(){K&&_.R3(document.body,"background-color",K);
G=!1;J&&J.release();V.flush().catch(function(vk){_.eP(vk)});
W.flush().catch(function(vk){_.eP(vk)});
VIH(I);u4();z=void 0;BAQ(N)},Gj=function(){Vw(!1);
yH();Hw(!1);rm(void 0);Ut(void 0);kA(void 0);GG=0;oO(0);X=!1},MY=function(){var vk;
(vk=z)==null||vk.onPause();J&&J.release();V.flush().catch(function(di){_.eP(di)});
W.flush().catch(function(di){_.eP(di)});
dlw(I)},V2=function(){var vk;
(vk=z)==null||vk.onResume();Jq();vk=I;vk.isForeground=!0;uH(vk,"PLAY_EVENT_TYPE_PLAY_RESUME")},Tq=function(vk){var di;
(di=z)==null||di.onAudioToggled(vk);mq(vk)},Ku=function(vk){p().showMultiplayer3pConsentDialogCommand&&(p().isEmbeddedInWebview&&vk!==void 0&&a.resolve(vk),!vk&&_.TUw()==="mini_app"&&bV(p().showMultiplayer3pConsentDialogCommand))},VT=function(){var vk,di,TD,WY;
return _.T(function(X5){if(X5.nextAddress==1){!p().isLivestream||p().disableVideoCapture||(vk=z)!=null&&vk.sendStartGameFrameCapture();di=(new URL(window.location.href)).searchParams;if(di.has("invite_code")){var fu=new tSm,Z3=di.get("invite_code");TD=_.zN(fu,1,Z3);(WY=z)==null||WY.sendGameData(TD)}ut()||(Hw(!0),fu=I,fu.state!==1?_.eP(new _.y7("[MiniAppPlayLogger] recordFirstFrameReady failed with state "+S5m[fu.state])):(_.YU("mini_app_ids_without_game_ready").includes(fu.JSC$14733_miniAppId)&&(fu.gameReady=
!0),fu.state=2,fu.beforeReady=!1,gQ(fu,"ma_ffr"),uH(fu,"PLAY_EVENT_TYPE_PLAY_READY")));return _.k(X5,a.promise,2)}bV(p().onMiniAppReadyCommand);document.activeElement instanceof HTMLIFrameElement&&document.activeElement.blur();p().isEmbeddedInWebview||Ku();_.OV(X5)})},Cc=function(){var vk=I;
vk.gameReady=!0;gQ(vk,"ma_gr")},aT=function(vk){var di;
return _.T(function(TD){if(TD.nextAddress==1)return _.M2(TD,2),_.k(TD,P$P(V,vk),4);if(TD.nextAddress!=2)return _.CA(TD,0);di=_.W4(TD);bV(p().showSavingErrorPopupCommand);throw di;})},td=function(){var vk,di;
return _.T(function(TD){if(TD.nextAddress==1)return _.M2(TD,2),_.k(TD,Xoj(V),4);if(TD.nextAddress!=2)return vk=TD.yieldResult,TD.return(vk);di=_.W4(TD);bV(p().showLoadingErrorDialogCommand);throw di;})},V8=function(vk){I.logError(vk)},Ix=function(vk,di,TD){WXI(I,vk,di,TD)},F5=function(vk,di){kdQ(I,vk,di)},CS=function(){!U&&p().isEmbeddedInWebview||_.SP();
TAd(I,!0);G||(window.addEventListener("beforeunload",Zw,{capture:!0}),G=!0)},rE=function(vk){var di,TD,WY,X5,fu,Z3,QY;
return _.T(function(nT){if(nT.nextAddress==1)return W&&(!D||D<vk)&&vk>0?_.k(nT,q5d(W,vk),3):nT.jumpTo(0);di=nT.yieldResult;TD=_.d(di);WY=TD.next().value;X5=TD.next().value;fu=WY;Z3=X5;((QY=fu)==null?0:QY.displayString)&&Z3&&(Ut(Z3),kA(fu.displayString));_.OV(nT)})},cE=function(vk){var di=p().onBenchmarkingMessageReceivedCommand;
if(di){var TD=Vhw();_.Yq(vk,3,EOI,TD);gb(di,$Bq(vk))}},OP=function(vk){var di=p().onGameFrameReceivedCommand;
if(di){var TD=new XDt;var WY=new GXQ;var X5=KT(vk,1);WY=_.yR(WY,1,X5);vk=_.jR(vk,2);vk=_.zN(WY,2,vk);TD=_.U3(TD,2,vk);gb(di,Z0l(TD))}},be=function(vk){var di=p().onGameAudioDataReceivedCommand;
if(di){var TD=new XDt;var WY=new RXm;vk=_.jR(vk,1);WY=_.zN(WY,1,vk);TD=_.U3(TD,4,WY);gb(di,Z0l(TD))}},wN=function(){var vk=new URLSearchParams(window.location.search);
if(p().isEmbeddedInWebview&&vk&&vk.get("override_hl")==="true"&&vk.get("hl"))return vk.get("hl");vk=document.documentElement.lang;return vk!==""?vk:_.uM},EX=function(vk){var di=p().onShareInviteCodeCommand;
if(di)if(p().isEmbeddedInWebview){var TD=new jUQ;vk=_.zN(TD,1,vk);gb(di,GCm(vk))}else TD=p().inviteCodeShareClientParamIdentifier,N.clientParams.set(TD,{miniAppClientParams:{inviteCode:vk}}),bV(di)},Dd=function(vk){var di,TD,WY;
return _.T(function(X5){if(X5.nextAddress==1)return di=p().onMiniAppOpenYtContentRequested,W&&_.y("enable_open_yt_content")&&di?_.k(X5,AvH(W,vk),3):X5.jumpTo(0);TD=X5.yieldResult;if(TD==="OK")if(p().isEmbeddedInWebview){var fu=new KCd;WY=kv(fu,2,re,fE(vk));gb(di,rHq(WY))}else m.clientData.set("video_id",vk),bV(di);_.OV(X5)})},IT=function(vk){GG+=_.YY(vk,3);
vk=Math.min(Math.log(1+GG/15E6*9)/Math.log(10),.99);oO(vk);PY(vk)},PY=_.OC(function(vk){var di=p().updateLoadingProgressCommand;
if(di){var TD=new KCd;vk=kv(TD,3,re,_.Ot(vk));gb(di,rHq(vk))}},100),Ds=function(vk){return Jvw(O,vk)},Jq=function(){var vk,di;
((vk=_.sCE())==null?void 0:(di=vk.wakeLock)==null?void 0:di.request)!=null&&_.sCE().wakeLock.request("screen").then(function(TD){J=TD}).catch(function(){})},zj=_.vH();
_.R8(function(){p().isSupportedCountry&&(OeG()||_.y("enable_sign_in_promo")||!p().showSignInDialogCommand?HY(zj.value):bV(p().onMiniAppReadyCommand))});
var bJ=function(){return _.H("iframe",{class:"yt-mini-app-container-view-model__iframe",sandbox:"allow-scripts allow-same-origin allow-pointer-lock",allow:"autoplay",tabindex:function(){return ut()?0:-1},
el:zj})},HY=function(vk,di){di=di===void 0?!1:di;
var TD=IP();TD&&(di||TD.toString()!==vk.getAttribute("src"))&&(z=Jme(p().source,{isAudioEnabled:sX,onFirstFrameReady:VT,onGameReady:Cc,onSave:aT,onLoad:td,onError:V8,onSdkCalled:Ix,onSdkPerformanceUpdate:F5,onClick:CS,onSendHighScore:rE,onBenchmarkingMessageReceived:cE,getLanguage:wN,onShareInviteCode:EX,onResourceLoaded:IT,onOpenYTContent:Dd,onShowMiniAppAd:Ds,onGameFrameReceived:OP,onGameAudioReceived:be},vk,TD),QO(vk,"load",function(){gQ(I,"ma_il");QO(vk,"load",function(){HY(vk,!0)})}),_.PE(vk,
TD))},IP=function(){var vk=p().url;
if(vk&&(vk=_.Zu(vk),vk!==null)){if(p().source&&p().source==="MINI_APP_SOURCE_GAMESNACKS")vk=_.YE(vk,new Map([["origin",window.location.origin],["cloudSave","true"]]));else if(_.y("enable_origin_query_parameter_bugfix")){var di=_.bG(_.WId(vk.toString()));di=new URLSearchParams(di||"");di.set("origin",window.location.origin);di=di.toString();vk=_.Tl(vk).toString();vk=_.dc(HrH.exec(vk)[0]+(di.trim()?"#"+di:""))}return vk}},y2=function(){var vk={};
vk=_.VD("yt-mini-app-container-view-model__loading-screen",(vk["yt-mini-app-container-view-model__loading-screen--fade-out"]=ut,vk));var di=function(){return ut()?1:Bw()};
return _.H("div",{class:vk},_.H(_.yP,{data:function(){return p().splashScreen}},{miniAppSplashScreenViewModel:function(TD){return _.H(aUe,{data:TD.data,
loadingProgress:di})}}))},ys=function(){Q=[];
Q.push(_.Kz(window,"visibilitychange",function(){Z||Y&&Mt()||(document.visibilityState==="visible"?V2():MY())}));
Q.push(_.Kz(window,"pagehide",function(){yH()}));
Q.push(_.Kz(window,"blur",function(){setTimeout(function(){document.activeElement instanceof HTMLIFrameElement&&$m.value.dispatchEvent(new Event("tap"))},0)}));
Q.push(_.Kz($m.value,"pointerdown",function(){TAd(I,!1)},!0));
Q.push(_.Kz($m.value,"pause",function(){Z=!0;MY()}));
Q.push(_.Kz($m.value,"play",function(){Z=!1;V2()}));
Q.push(_.Kz($m.value,"exit",function(){yH()}));
var vk=navigator.keyboard,di=vk&&vk.lock;Q.push(_.Kz(window,Hpq,function(){eQ(zUI());zUI()?(p().hasPlayNextShelf&&Qr("yt-mini-app-container-view-model","yt-mini-app-container-view-model--position-relative-to-top"),k7("yt-mini-app-container-view-model__content","yt-mini-app-container-view-model__content--fullscreen"),di&&vk.lock(["Escape"])):(p().hasPlayNextShelf&&k7("yt-mini-app-container-view-model","yt-mini-app-container-view-model--position-relative-to-top"),Qr("yt-mini-app-container-view-model__content",
"yt-mini-app-container-view-model__content--fullscreen"),di&&vk.unlock())}));
p().showMultiplayer3pConsentDialogCommand&&Q.push(_.Kz(window,"yt-playables-ack-3p-data-usage",function(){tIc(W)}));
p().confirmExitMiniAppCommandEdu&&Q.push(_.Kz(window,"yt-playables-exit-mini-app-dialog-seen",function(){_.p$("exit-mini-app-seen-state","true",2592E6)}))},u4=function(){Q.forEach(function(vk){nz(vk)});
window.removeEventListener("beforeunload",Zw,{capture:!0})},bV=function(vk){vk&&d$q(vk,p().isEmbeddedInWebview||!1)},k7=function(vk,di){vk=_.d($m.value.getElementsByClassName(vk));
for(var TD=vk.next();!TD.done;TD=vk.next())TD.value.classList.add(di)},Qr=function(vk,di){vk=_.d($m.value.getElementsByClassName(vk));
for(var TD=vk.next();!TD.done;TD=vk.next())TD.value.classList.remove(di)};
return function(){var vk={};vk=_.VD("yt-mini-app-container-view-model",(vk["yt-mini-app-container-view-model--desktop"]=!0,vk["yt-mini-app-container-view-model--desktop-in-panel"]=function(){return p().layout==="MINI_APP_CONTAINER_LAYOUT_PANEL"},vk["yt-mini-app-container-view-model--ios-web-view"]=r8r(),vk["yt-mini-app-container-view-model--no-top-bar"]=function(){return!p().topBar},vk["yt-mini-app-container-view-model--position-relative-to-top"]=function(){return p().hasPlayNextShelf},vk["yt-mini-app-container-view-model--desktop-play-page"]=
function(){return p().hasPlayNextShelf},vk["yt-mini-app-container-view-model--show-peek-below"]=function(){return!Kc()&&p().hasPlayNextShelf},vk));
var di={};di=_.VD("yt-mini-app-container-view-model__content",(di["yt-mini-app-container-view-model__content--desktop-content"]=!0,di["yt-mini-app-container-view-model__content--desktop-content-in-panel"]=function(){return p().layout==="MINI_APP_CONTAINER_LAYOUT_PANEL"},di["yt-mini-app-container-view-model--desktop-play-page"]=function(){return p().hasPlayNextShelf},di));
return _.H("mini-app-container-view-model",{el:$m},_.H("div",{class:vk},_.H(_.n,{cond:function(){return p().topBar&&!Kc()},
then:function(){return _.H(_.yP,{data:function(){return p().topBar}},{miniAppTopBarViewModel:function(TD){return _.H($lH,{data:TD.data,
isAudioEnabled:sX,onAudioToggled:function(WY){Tq(WY)},
score:Tj,formattedScore:Ww,onScoreChanged:function(WY){D=WY},
isEmbeddedInWebview:Mt,isSaved:x5,onSaveToggled:function(WY){rm(WY)},
isExitMiniAppSeen:XI,isDesktopPlayPage:El})}})}}),_.H("div",{class:di},_.H(_.n,{cond:XO,
then:function(){return bJ()}}),_.H(_.n,{cond:function(){return!p().isEmbeddedInWebview},
then:function(){return y2()}}))))}()},"Xd");
cvI.idomCompat=!0;_.qm(cvI,"mini-app-container-view-model",{props:{data:_.x2}});var S7H=_.$k(function(S){var p=S.data;return _.H("yt-sponsorships-hub-perk-card",{class:"ytSponsorshipsHubPerkCardHost"},_.H("button",{class:"ytSponsorshipsHubPerkCardPerkCard","on:click":_.kL(function(){var U=p().onTap;U&&_.wx(U)})},_.H(_.n,{cond:function(){return p().icon},
then:function(U){return _.H(_.QD,{icon:function(){return U().iconType},
className:"ytSponsorshipsHubPerkCardPerkIcon"})}}),_.H("div",{class:"ytSponsorshipsHubPerkCardPerkTitle"},function(){return p().title})))},"Yd");
S7H.idomCompat=!0;var pKm=_.$k(function(S){var p=_.vH(),U=_.d(_.kj(void 0,void 0,"kFCJ0c")),Y=U.next().value,L=U.next().value;U=_.d(_.kj(void 0,void 0,"PIPgWd"));var I=U.next().value,V=U.next().value;U=_.d(_.kj(void 0,void 0,"rV66ob"));var W=U.next().value,O=U.next().value,D=function(){var l=Y();return l!==void 0?Math.abs(l):void 0},z=function(){var l=D();
return l===void 0||l<=3},Q=function(){var l=D();
var a=I(),N=W();l=l!==void 0&&a!==void 0&&N!==void 0?a-N-l:void 0;return l===void 0||l<=3},J=function(l){p.value&&p.value.scrollBy({top:0,
left:(_.g7("HTML_DIR")==="rtl"?-1:1)*l*p.value.clientWidth,behavior:"smooth"})},K=function(){var l;
L((l=p.value)==null?void 0:l.scrollLeft);var a;V((a=p.value)==null?void 0:a.scrollWidth);var N;O((N=p.value)==null?void 0:N.clientWidth)},G=function(){J(-.5)},X=function(){J(.5)};
U=_.kL(function(){K()});
_.hW(function(){K();if(p.value){var l=new ResizeObserver(K);l.observe(p.value);_.FG(function(){l.disconnect()})}});
var Z={};return _.H("yt-sponsorships-scrollable-shelf",{class:_.VD("ytdSponsorshipsScrollableShelfHost",S.className)},_.H("div",{class:_.VD("ytdSponsorshipsScrollableShelfContent",(Z.ytdSponsorshipsScrollableShelfFadingEffectBothSides=function(){return S.data().previousButton&&S.data().nextButton&&!z()&&!Q()},Z.ytdSponsorshipsScrollableShelfFadingEffectStart=function(){return S.data().previousButton&&!z()&&Q()},Z.ytdSponsorshipsScrollableShelfFadingEffectEnd=function(){return S.data().nextButton&&
z()&&!Q()},Z)),
el:p,"on:scroll":U},S.children),_.H(_.n,{cond:function(){return!z()},
then:function(){return _.H(_.yP,{data:function(){return S.data().previousButton}},{buttonViewModel:function(l){return _.H(_.PG,{data:l.data,
className:"ytdSponsorshipsScrollableShelfPreviousButton",onClick:G})}})}}),_.H(_.n,{cond:function(){return!Q()},
then:function(){return _.H(_.yP,{data:function(){return S.data().nextButton}},{buttonViewModel:function(l){return _.H(_.PG,{data:l.data,
className:"ytdSponsorshipsScrollableShelfNextButton",onClick:X})}})}}))},"Zd");
pKm.idomCompat=!0;var Y7t=_.$k(function(S){var p=S.data;S={};return _.H("yt-sponsorships-hub",{class:_.VD("ytdSponsorshipsHubHost",(S.ytdSponsorshipsHubHostIndented=function(){return p().indented},S))},_.H("div",{class:"ytdSponsorshipsHubHeader"},_.H("div",{class:"ytdSponsorshipsHubAvatarContainer"},_.H("div",{class:"ytdSponsorshipsHubAvatar"},_.H(_.yP,{data:function(){return p().avatar}},{avatarViewModel:_.bS})),_.H(_.n,{cond:function(){return p().badgeImage},
then:function(U){return _.H("div",{class:"ytdSponsorshipsHubBadgeContainer"},_.H("div",{class:"ytdSponsorshipsHubBadgeInnerContainer"},_.H("div",{class:"ytdSponsorshipsHubBadge"},_.H(_.of,{data:U,targetWidth:24,targetHeight:24,alt:""}))))}})),_.H("div",{class:"ytdSponsorshipsHubDetails"},_.H("div",{class:"ytdSponsorshipsHubTierName"},function(){return p().tierName}),_.H("div",{class:"ytdSponsorshipsHubMembershipType"},function(){return p().membershipType}),_.H("div",{class:"ytdSponsorshipsHubMembershipDurationOrExpiry"},
function(){return p().membershipDurationOrExpiry})),_.H("div",{class:"ytdSponsorshipsHubActionButtonsContainer"},_.H(_.yP,{data:function(){return p().manageButton}},{buttonViewModel:function(U){return _.H(_.PG,{data:U.data,
className:"ytdSponsorshipsHubManageButton"})}}),_.H(_.yP,{data:function(){return p().actionMenuButton}},{buttonViewModel:function(U){return _.H(_.PG,{data:U.data,
className:"ytdSponsorshipsHubActionMenuButton"})}}))),_.H("div",{class:"ytdSponsorshipsHubPerksTitle"},function(){return p().perksTitle}),_.H(pKm,{data:function(){return{previousButton:p().previousPerkButton,
nextButton:p().nextPerkButton}},
className:"ytdSponsorshipsHubPerksShelf"},_.H("div",{class:"ytdSponsorshipsHubPerkCards"},_.H(_.yP,{data:function(){return p().perkCards}},{sponsorshipsHubPerkCardViewModel:S7H}),_.H(_.n,{cond:function(){return p().viewAllPerksButton},
then:function(U){return _.H(U6P,{data:U})}}))))},"$d");
Y7t.idomCompat=!0;var U6P=_.$k(function(S){var p=S.data;return _.H("div",{class:"ytdSponsorshipsHubViewAllPerksContainer"},_.H(_.yP,{data:function(){return p().button}},{buttonViewModel:_.PG}),_.H("div",{class:"ytdSponsorshipsHubViewAllPerksInfo"},_.H("div",{class:"ytdSponsorshipsHubViewAllPerksTitle"},function(){return p().title}),_.H("div",{class:"ytdSponsorshipsHubViewAllPerksSubtitle"},function(){return p().subtitle})))},"ae");
U6P.idomCompat=!0;_.qm(Y7t,"yt-sponsorships-hub",{props:{data:_.x2}});_.L8m=_.$k(function(S){var p=S.data;return _.H("yt-dual-avatar-view-model",{class:"ytDualAvatarViewModelHost",style:_.zw({"--yt-dual-avatar-view-model-badge-cutout-radius":function(){var U;return((U=p().badgeCutoutRadius)!=null?U:14)+"px"}})},_.H("div",{class:"ytDualAvatarViewModelAvatarsContainer"},_.H(_.yP,{data:function(){return p().startAvatar}},{avatarViewModel:_.bS}),_.H(_.yP,{data:function(){return p().endAvatar}},{avatarViewModel:_.bS})),_.H(_.yP,{data:function(){return p().badge}},{contentPreviewImageViewModel:function(U){return _.H("div",
{class:"ytDualAvatarViewModelBadge"},_.H(_.qf,{data:U.data}))}}))},"be");
_.L8m.idomCompat=!0;var I2w=_.$k(function(S){var p=S.data;var U,Y=!((U=_.tW().resolve(_.AW(_.Cz)))==null||!U());S=_.nS(function(){var z,Q,J=Y?(z=p().header)==null?void 0:z.backgroundColorDarkMode:(Q=p().header)==null?void 0:Q.backgroundColorLightMode;if(J!==void 0)return _.ev(J)},void 0,"UX2G6c");
U=_.nS(function(){var z,Q;return Y?(z=p().header)==null?void 0:z.backgroundImagePart1Dark:(Q=p().header)==null?void 0:Q.backgroundImagePart1Light},void 0,"GPAi1d");
var L=_.nS(function(){var z,Q;return Y?(z=p().header)==null?void 0:z.backgroundImagePart2Dark:(Q=p().header)==null?void 0:Q.backgroundImagePart2Light},void 0,"nboJld"),I=_.nS(function(){return _.g7("HTML_DIR")==="rtl"},void 0,"LGJceb"),V=_.vH(),W=!1,O=function(){var z=V.value;
if(z&&!W){var Q,J=(Q=z.parentElement)==null?void 0:Q.parentElement;if(J)for(z=z.getElementsByClassName("ytdSponsorshipsPerksListSelectedPerk"),Q=0;Q<z.length;++Q){var K=z[Q];if(K instanceof HTMLElement){J.scrollTo({top:K.offsetTop+K.clientHeight/2-J.clientHeight/2,behavior:"smooth"});W=!0;break}}}};
_.FM(function(){var z=V.value;if(z){var Q=new ResizeObserver(O);Q.observe(z);_.FG(function(){Q.disconnect()})}});
var D={};return _.H("yt-sponsorships-perks-list",{el:V,class:_.VD("ytdSponsorshipsPerksListHost",(D.ytdSponsorshipsPerksListHorizontalPadding=function(){return p().horizontalPaddingEnabled},D))},_.H("div",{class:"ytdSponsorshipsPerksListHeaderContainer"},_.H("div",{class:"ytdSponsorshipsPerksListHeader",
style:_.zw({"background-color":S})},_.H("div",{class:"ytdSponsorshipsPerksListHeaderImagePart1Container"},_.H(_.n,{cond:U,then:function(z){var Q={};return _.H("div",{class:_.VD((Q.ytdSponsorshipsPerksListHeaderImageFilterDarkTheme=Y,Q.ytdSponsorshipsPerksListHeaderImageFilterLightTheme=!Y,Q.ytdSponsorshipsPerksListFlipped=I,Q))},_.H(_.of,{data:z,alt:"",className:"ytdSponsorshipsPerksListHeaderImagePart1"}))}})),_.H("div",{class:"ytdSponsorshipsPerksListHeaderImagePart2Container"},_.H(_.n,{cond:L,
then:function(z){var Q={};return _.H("div",{class:_.VD((Q.ytdSponsorshipsPerksListHeaderImageFilterDarkTheme=Y,Q.ytdSponsorshipsPerksListHeaderImageFilterLightTheme=!Y,Q.ytdSponsorshipsPerksListFlipped=I,Q))},_.H(_.of,{data:z,alt:"",className:"ytdSponsorshipsPerksListHeaderImagePart2"}))}})),_.H("div",{class:"ytdSponsorshipsPerksListAvatarsContainer"},_.H(_.yP,{data:function(){var z;
return(z=p().header)==null?void 0:z.dualAvatar}},{dualAvatarViewModel:_.L8m})))),_.H("div",{class:"ytdSponsorshipsPerksListBody"},_.H("div",{class:"ytdSponsorshipsPerksListTitle"},function(){return p().title}),_.H(_.n,{cond:function(){return p().perks},
then:function(z){return _.H(_.KU,{each:z},function(Q,J){var K={};return _.H("div",{class:_.VD("ytdSponsorshipsPerksListPerkContainer",(K.ytdSponsorshipsPerksListSelectedPerk=function(){var G=J(),X=p().selectedPerkIndex;return G===X},K))},_.H(_.n,{cond:function(){return J()>0},
then:function(){return _.H("div",{class:"ytdSponsorshipsPerksListPerkSeparator"})}}),_.H("div",{class:"ytdSponsorshipsPerksListPerkCard"},_.H(_.n,{cond:function(){return Q.icon},
then:function(G){return _.H(_.QD,{icon:function(){return G().iconType},
className:"ytdSponsorshipsPerksListPerkIcon"})}}),_.H("div",{class:"ytdSponsorshipsPerksListPerkInfo"},_.H("div",{class:"ytdSponsorshipsPerksListPerkTitle"},Q.title),_.H("div",{class:"ytdSponsorshipsPerksListPerkDescription"},_.H(_.i6,{text:Q.description})),_.H(_.n,{cond:function(){return Q.instructions},
then:function(){var G,X;return _.H("div",{class:"ytdSponsorshipsPerksListPerkInstructions"},_.H("div",{class:"ytdSponsorshipsPerksListPerkInstructionsTitle"},(G=Q.instructions)==null?void 0:G.title),_.H("div",{class:"ytdSponsorshipsPerksListPerkInstructionsText"},_.H(_.i6,{text:(X=Q.instructions)==null?void 0:X.text})))}}))),_.H(_.n,{cond:function(){return Q.emoji},
then:function(G){return _.H("div",{class:"ytdSponsorshipsPerksListEmojiContainer"},_.H(_.KU,{each:function(){return G()}},function(X){return _.H(_.of,{data:X,
alt:"",className:"ytdSponsorshipsPerksListEmoji"})}))}}),_.H(MGE,{data:Q}))})}})))},"ce");
I2w.idomCompat=!0;var MGE=_.$k(function(S){var p=S.data;var U=function(V,W){return V===W},Y=function(){var V=p();
V=_.b(V==null?void 0:V.badgesShelf,X$m);return V!==void 0&&V!==null?V:{previousButton:{},nextButton:{}}},L=_.$v(),I=function(){var V=L.value;
if(V){var W=V.parentElement;if(W){V=V.getElementsByClassName("ytdSponsorshipsPerksListActiveLoyaltyBadgeContainer");for(var O=0;O<V.length;++O){var D=V[O];if(D instanceof HTMLElement){W.scrollTo({left:D.offsetLeft+D.clientWidth/2-W.clientWidth/2,behavior:"instant"});break}}}}};
_.FM(function(){var V=L.value;if(V){var W=new ResizeObserver(I);W.observe(V);_.FG(function(){W.disconnect()})}});
return _.H("div",null,_.H(_.n,{cond:function(){return p().badges},
then:function(V){return _.H(pKm,{data:Y},_.H("div",{class:"ytdSponsorshipsPerksListLoyaltyBadgesContainer",el:L},_.H(_.KU,{each:function(){return V()}},function(W,O){var D={},z={},Q={};
return _.H("div",{class:"ytdSponsorshipsPerksListLoyaltyBadgeItem"},_.H(_.n,{cond:function(){return O()>0},
then:function(){return _.H("div",{class:"ytdSponsorshipsPerksListLoyaltyBadgeSeparator"})}}),_.H("div",{class:_.VD("ytdSponsorshipsPerksListLoyaltyBadgeContainer",(D.ytdSponsorshipsPerksListActiveLoyaltyBadgeContainer=function(){return U(O(),p().currentBadgeIndex)},D.ytdSponsorshipsPerksListInactiveLoyaltyBadgeContainer=function(){return!U(O(),p().currentBadgeIndex)},D))},_.H("div",{class:_.VD("ytdSponsorshipsPerksListLoyaltyBadge",(z.ytdSponsorshipsPerksListActiveLoyaltyBadge=function(){return U(O(),
p().currentBadgeIndex)},z.ytdSponsorshipsPerksListInactiveLoyaltyBadge=function(){return!U(O(),p().currentBadgeIndex)},z))},_.H(_.n,{cond:function(){return W.image},
then:function(J){var K={};return _.H("div",{class:_.VD((K.ytdSponsorshipsPerksListActiveLoyaltyBadgeImage=function(){return U(O(),p().currentBadgeIndex)},K.ytdSponsorshipsPerksListInactiveLoyaltyBadgeImage=function(){return!U(O(),p().currentBadgeIndex)},K))},_.H(_.of,{data:J,
alt:""}))}})),_.H("div",{class:_.VD("ytdSponsorshipsPerksListLoyaltyBadgeTitle",(Q.ytdSponsorshipsPerksListActiveLoyaltyBadgeTitle=function(){return U(O(),p().currentBadgeIndex)},Q))},W.title)))})))}}))},"de");
MGE.idomCompat=!0;_.qm(I2w,"yt-sponsorships-perks-list",{props:{data:_.x2}});_.qm(_.$k(function(S){return _.H("ytw-fantasy-empty-state-view-model",{class:"ytwFantasyEmptyStateViewModelHost"},_.H(_.n,{cond:function(){return S.data().image},
then:function(p){return _.H(_.of,{className:"ytwFantasyEmptyStateViewModelImage",data:p,ariaHidden:!0,alt:""})}}),_.H(_.i6,{className:"ytwFantasyEmptyStateViewModelTitle",
text:function(){return S.data().title}}),_.H(_.i6,{className:"ytwFantasyEmptyStateViewModelSubtitle",
text:function(){return S.data().subtitle}}),_.H(_.yP,{data:function(){return S.data().primaryButton}},{buttonViewModel:function(p){return _.H(_.PG,{data:p.data,
className:"ytwFantasyEmptyStateViewModelPrimaryButton"})}}))},"ee"),"ytw-fantasy-empty-state-view-model",{props:{data:_.x2}});var d6m;var haX=_.zy({buttonRenderer:_.ft});_.cH(Raq);_.Ls(Raq,"timed-animation-button-renderer",{propNames:["data","uniqueId","overrides"]});var x6=function(){var S=_.w.apply(this,arguments)||this;S.hideJoinButtonBeforeSubscribed=_.y("hide_join_button_before_subscribed");S.actionMap={"yt-button-refresh-action":"handleButtonRefreshAction","yt-unsubscribe-action":"handleUnsubscribeAction"};return S};
_.r(x6,_.w);_.M=x6.prototype;
_.M.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"}}}};
_.M.updateJoinButtonOverrides=function(){var S,p;(S=_.tB(this.hostElement).querySelector("#sponsor-button ytd-button-renderer"))==null||(p=S.polymerController)==null||p.set("overrides",this.joinButtonOverrides);if(S=_.tB(this.hostElement).querySelector("#sponsor-button timed-animation-button-renderer"))S.overrides=this.joinButtonOverrides};
_.M.handleButtonRefreshAction=function(S){if(S=_.b(S,clH))this.set("data.membershipButton",S.membershipButton),this.notifyPath("data.membershipButton")};
_.M.onYtServiceRequestError=function(S){_.An(this.hostElement,S.detail.error.message)};
_.M.handleUnsubscribeAction=function(){var S,p,U;((S=this.data)==null?void 0:(p=S.membershipButton)==null?void 0:(U=p.buttonRenderer)==null?void 0:U.style)==="STYLE_PRIMARY"&&_.tB(this.hostElement).querySelector("#sponsor-button ytd-button-renderer").polymerController.set("data.style","STYLE_SUGGESTIVE")};
_.$u.Object.defineProperties(x6.prototype,{hideJoin:{configurable:!0,enumerable:!0,get:function(){var S;return((S=this.data)==null?void 0:S.hideMembershipButtonIfUnsubscribed)&&!this.subscribed}},
subscribed:{configurable:!0,enumerable:!0,get:function(){var S;return!((S=this.subscriptionStateEntity)==null||!S.subscribed)}},
joinButtonOverrides:{configurable:!0,enumerable:!0,get:function(){var S,p=(S=this.data)==null?void 0:S.membershipButton,U;S=(p==null?void 0:p.buttonRenderer)||_.b(p==null?void 0:(U=p.timedAnimationButtonRenderer)==null?void 0:U.buttonRenderer,_.XT);return(S==null?void 0:S.style)==="STYLE_BRAND_GRADIENT"?{style:"brand-gradient",type:"filled"}:(S==null?void 0:S.style)==="STYLE_MONO_OUTLINE"?{style:"mono",type:"outline"}:(S==null?void 0:S.style)==="STYLE_MONO_TONAL"?{style:"mono",type:"tonal"}:{style:"mono",
type:this.subscribed?"filled":"tonal"}}}});
x6.prototype.onYtServiceRequestError=x6.prototype.onYtServiceRequestError;x6.prototype.updateJoinButtonOverrides=x6.prototype.updateJoinButtonOverrides;_.x([_.F(_.Aj.YtActionHandlerBehavior),_.E("design:type",Object)],x6.prototype,"actionHandlerBehavior",void 0);_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],x6.prototype,"ytRendererBehavior",void 0);_.x([_.F(_.qH.YtRendererstamperBehavior),_.E("design:type",Object)],x6.prototype,"ytRendererstamperBehavior",void 0);
_.x([_.F(_.Xh),_.E("design:type",Object)],x6.prototype,"ytdReduxBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],x6.prototype,"data",void 0);_.x([_.e("data.hideMembershipButtonIfUnsubscribed","subscribed"),_.E("design:type",Object),_.E("design:paramtypes",[])],x6.prototype,"hideJoin",null);_.x([_.g(),_.E("design:type",String)],x6.prototype,"subscribeKey",void 0);_.x([_.g({selectorArgs:["subscribeKey"],selector:hvN}),_.E("design:type",Object)],x6.prototype,"subscriptionStateEntity",void 0);
_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],x6.prototype,"hideJoinButtonBeforeSubscribed",void 0);_.x([_.e("subscriptionStateEntity"),_.g({reflectToAttribute:!0}),_.E("design:type",Object),_.E("design:paramtypes",[])],x6.prototype,"subscribed",null);_.x([_.e("subscribed","data.membershipButton"),_.E("design:type",Object),_.E("design:paramtypes",[])],x6.prototype,"joinButtonOverrides",null);
_.x([_.T4("joinButtonOverrides"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],x6.prototype,"updateJoinButtonOverrides",null);_.x([_.Vd("yt-service-request-error"),_.E("design:type",Function),_.E("design:paramtypes",[CustomEvent]),_.E("design:returntype")],x6.prototype,"onYtServiceRequestError",null);x6=_.x([_.f({is:"ytd-video-owner-renderer",disableElementRegistration:!0})],x6);
var VGI=_.pz()(x6,"ytd-video-owner-renderer",function(){if(d6m===void 0){var S=document.createElement("template");_.h(S,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-owner-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a class="yt-simple-endpoint style-scope ytd-video-owner-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]" tabindex="-1"><yt-img-shadow id="avatar" alt="[[getSimpleString(data.title)]]" hidden="[[!data.thumbnail]]" thumbnail="[[data.thumbnail]]" width="40" class="style-scope ytd-video-owner-renderer"></yt-img-shadow><div id="avatar-stack" hidden="[[!data.avatarStack.avatarStackViewModel]]" class="style-scope ytd-video-owner-renderer"></div></a><div id="upload-info" class="style-scope ytd-video-owner-renderer"><ytd-channel-name id="channel-name" badges="[[data.badges]]" channel-name="[[data.title]]" class="style-scope ytd-video-owner-renderer"></ytd-channel-name><yt-formatted-string id="owner-sub-count" hidden="[[!data.subscriberCountText]]" text="[[data.subscriberCountText]]" class="style-scope ytd-video-owner-renderer"></yt-formatted-string><slot name="date" class="style-scope ytd-video-owner-renderer"></slot></div><div id="purchase-button" hidden="[[!data.purchaseButton]]" class="style-scope ytd-video-owner-renderer"></div><div id="sponsor-button" hidden="[[hideJoin]]" class="style-scope ytd-video-owner-renderer"></div><div id="analytics-button" class="style-scope ytd-video-owner-renderer"></div>');
S.content.insertBefore(_.t().content.cloneNode(!0),S.content.firstChild);d6m=S}S=d6m;return S},{slotProps:["date"],
allowedProps:["data","subscribeKey"],mode:1});_.qm(_.$k(function(S){var p=S.data;var U;S=_.d(_.kj(!((U=_.Uz("yt-mini-app-is-theater-mode-enabled"))==null||!U),void 0,"LUeOgf"));var Y=S.next().value,L=S.next().value,I;U=(I=_.tW().resolve(_.AW(eum)))!=null?I:function(){return _.H("div",null)};
_.oV("yt-signal-action-mini-app-toggle-theatre-mode-on",function(){L(!0);_.p$("yt-mini-app-is-theater-mode-enabled",!0,2592E3)});
_.oV("yt-signal-action-mini-app-toggle-theatre-mode-off",function(){L(!1);_.p$("yt-mini-app-is-theater-mode-enabled",!1,2592E3)});
I={};S={};var V={};return _.H("mini-app-play-page-renderer",{class:_.VD("miniAppPlayPageRendererHost",(I.miniAppPlayPageRendererHostDetailsView=function(){return!Y()},I))},_.H("div",{class:_.VD("miniAppPlayPageRendererGameContainer",(S.miniAppPlayPageRendererGameContainerDetailsView=function(){return!Y()},S))},_.H(_.yP,{data:function(){return p().containerViewModel}},{miniAppContainerViewModel:cvI}),_.H("div",{class:"miniAppPlayPageRendererChannelContainer"},_.H(_.yP,{data:function(){return p().channel}},
{videoOwnerRenderer:function(W){return _.H(VGI,{data:W.data})}}),_.H(_.yP,{data:function(){return p().subscribeButton}},{subscribeButtonViewModel:function(W){return _.H(_.jW,{data:W.data,
isOverlay:!1,animateWidth:!0})}})),_.H(_.n,{cond:function(){return!Y()&&p().description},
then:function(){return _.H("div",{class:"miniAppPlayPageRendererMiniAppDescriptionWrapper"},_.H("span",{class:"miniAppPlayPageRendererMiniAppDescription"},function(){return p().description}))}})),_.H("div",{class:_.VD("miniAppPlayPageRendererPlayNextContainer",(V.miniAppPlayPageRendererPlayNextContainerDetailsView=function(){return!Y()},V))},_.H(_.yP,{data:function(){return p().sectionList}},{sectionListRenderer:U})))},"fe"),"mini-app-play-page-renderer",{props:{data:_.x2}});var EY=function(){var S=_.w.apply(this,arguments)||this;S.isSearch=!1;S.isConstrainedList=!1;S.hasChipsBar=!1;S.inReplyPanel=!1;S.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"}};S.monitorScroll=!0;S.SCROLL_ANIMATION_DURATION_MS=300;S.nextContinuation={continuationType:"sectionListContinuation"};return S};
_.r(EY,_.w);_.M=EY.prototype;
_.M.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(S){switch(S.sectionIdentifier){case "comment-item-section":return"ytd-comments";case "backstage-item-section":return"ytd-backstage-items";default:return"ytd-item-section-renderer"}},
properties:{isSearchDova:"[[isSearchDova]]",isSearch:"[[isSearch]]",hasChipsBar:"[[hasChipsBar]]",engagementPanel:"[[engagementPanel]]",pageSubtype:"[[pageSubtype]]",isConstrainedList:"[[isConstrainedList]]"},noInjection:!0},channelOwnerEmptyStateRenderer:{component:"ytd-channel-owner-empty-state-renderer",noInjection:!0},channelAgeGateRenderer:{component:"ytd-channel-age-gate-renderer",noInjection:!0},emptyProductDetailsRenderer:{component:"ytd-empty-product-details-renderer",noInjection:!0},iframeRenderer:{component:"yt-iframe-renderer",
noInjection:!0},commerceCartRenderer:{component:"ytd-commerce-cart-renderer",noInjection:!0},minorMomentHeaderRenderer:{component:"ytd-minor-moment-header-renderer",noInjection:!0},minorMomentSettingSectionRenderer:{component:"ytd-minor-moment-setting-section-renderer",noInjection:!0},pageIntroductionRenderer:{component:"ytd-page-introduction-renderer",noInjection:!0},reportHistorySectionRenderer:{component:"ytd-report-history-section-renderer",noInjection:!0},sponsorshipsManagementRenderer:{component:"ytd-sponsorships-management-renderer",
noInjection:!0},sponsorshipsExpandablePerksRenderer:{component:"ytd-sponsorships-expandable-perks-renderer",noInjection:!0},sponsorshipsHubViewModel:{component:"yt-sponsorships-hub",noInjection:!0},sponsorshipsPerksListViewModel:{component:"yt-sponsorships-perks-list",noInjection:!0},shelfRenderer:{component:"ytd-shelf-renderer",noInjection:!0},offlineItemSectionRenderer:{component:"ytd-offline-item-section-renderer",noInjection:!0},merchandiseShelfRenderer:{component:"ytd-merch-shelf-renderer",noInjection:!0},
miniAppContainerViewModel:{component:"mini-app-container-view-model",noInjection:!0},miniAppPlayPageRenderer:{component:"mini-app-play-page-renderer",noInjection:!0},openInNativeAppViewModel:{component:"ytd-open-in-native-app-view-model",noInjection:!0},continuationItemRenderer:"ytd-continuation-item-renderer",liveChatProfileIdentityViewModel:{component:"yt-live-chat-identity-view-model",noInjection:!0},liveChatItemDisplayListRenderer:{component:"yt-live-chat-item-display-list-renderer",noInjection:!0},
liveChatChannelActivityReputationRenderer:{component:"yt-live-chat-channel-activity-reputation-renderer",noInjection:!0},liveChatEmptyFeedViewModel:{component:"yt-live-chat-empty-feed-view-model",noInjection:!0},listItemViewModel:{component:"ytd-list-item-view-model",params:{noPadding:!0},noInjection:!0},emojiCustomizationPanelViewModel:{component:"yt-emoji-customization-panel-view-model",noInjection:!0},creatorGoalProgressFlowViewModel:{component:"yt-creator-goal-progress-flow-view-model",noInjection:!0},
fantasyEmptyStateViewModel:{component:"ytw-fantasy-empty-state-view-model",noInjection:!0}}},"data.continuations":{id:"continuations",mapping:{nextContinuationData:{component:"yt-next-continuation",noInjection:!0}},renderPriority:_.y("kevlar_low_priority_continuation")?0:void 0,usePageScheduler:_.y("kevlar_low_priority_continuation")},scrollUpButtonData:{id:"action-button",mapping:{buttonViewModel:{component:"yt-button-view-model",properties:{scopingClassName:"[[is]]"},noInjection:!0}}}}};
_.M.created=function(){var S=this;this.JSC$14871_scrollAnimation=new _.sY(function(p){S.hostElement.scrollTop=p})};
_.M.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents","yt-reload-continuation-items-command-body":"contents"}};
_.M.getItemsPath=function(){return"data.contents"};
_.M.replacePrimaryContent=function(S){this.set("data.contents",S)};
_.M.computeHasSortFilter=function(S){return!!S&&!!S.sortFilterSubMenuRenderer};
_.M.computeShouldScrollInPanel=function(S){var p;return!!(S==null?0:(p=S.scrollPaneStyle)==null?0:p.scrollable)};
_.M.onScroll=function(){this.liveChatEngagementPanel&&!this.inReplyPanel&&_.U2(this.actionButton,"show-scroll-button",this.hostElement.scrollTop!==0)};
_.M.scrollToTop=function(){this.hostElement.scrollTop=0};
_.M.scrollToItemSection=function(S){if(S=this.getItemByIdentifier(S))S=this.getScrollPositionForItem(S),this.hostElement.scrollTop!==S&&this.JSC$14871_scrollAnimation.start(this.hostElement.scrollTop,S,this.SCROLL_ANIMATION_DURATION_MS)};
_.M.getItemByIdentifier=function(S){var p=this.contents.querySelectorAll("ytd-item-section-renderer");if(p&&p.length!==0){var U=Array.from(p).findIndex(function(Y){return Y.sectionIdentifier===S});
return p[U===-1?0:U]}};
_.M.getScrollPositionForItem=function(S){if(this.contents.querySelectorAll("ytd-item-section-renderer")[0]===S)return 0;S=_.eb(S).y+this.hostElement.scrollTop-_.eb(this.hostElement).y;return Math.min(S,this.hostElement.scrollHeight-this.hostElement.offsetHeight)};
_.$u.Object.defineProperties(EY.prototype,{isClipList:{configurable:!0,enumerable:!0,get:function(){var S;return((S=this.data)==null?void 0:S.targetId)==="browse-feedFEclips"}}});
EY.prototype.onScroll=EY.prototype.onScroll;_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],EY.prototype,"ytRendererBehavior",void 0);_.x([_.F(_.qH.YtRendererstamperBehavior),_.E("design:type",Object)],EY.prototype,"ytRendererstamperBehavior",void 0);_.x([_.F(_.qb.YtLazyListBehavior),_.E("design:type",Object)],EY.prototype,"ytLazyListBehavior",void 0);_.x([_.F(_.lX.YtNextContinuationBehavior),_.E("design:type",Object)],EY.prototype,"ytNextContinuationBehavior",void 0);
_.x([_.F(_.Bgm),_.E("design:type",Object)],EY.prototype,"ytBooleanLogicBehavior",void 0);_.x([_.F(_.wS),_.E("design:type",Object)],EY.prototype,"ytContinuationHandlerBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],EY.prototype,"data",void 0);_.x([_.g({value:2}),_.E("design:type",Number)],EY.prototype,"initialCount",void 0);_.x([_.g({value:!0}),_.E("design:type",Boolean)],EY.prototype,"autoFill",void 0);
_.x([_.g({reflectToAttribute:!0,computed:"computeHasSortFilter(data.subMenu)"}),_.E("design:type",Boolean)],EY.prototype,"hasSortFilter",void 0);_.x([_.g({reflectToAttribute:!0,computed:"toBool(data.hideBottomSeparator)"}),_.E("design:type",Boolean)],EY.prototype,"hideBottomSeparator",void 0);_.x([_.g({reflectToAttribute:!0,computed:"computeShouldScrollInPanel(data)"}),_.E("design:type",Boolean)],EY.prototype,"shouldScrollInPanel",void 0);
_.x([_.g(),_.E("design:type",Object)],EY.prototype,"isSearch",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],EY.prototype,"isConstrainedList",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",String)],EY.prototype,"responsiveSizing",void 0);_.x([_.g(),_.E("design:type",Object)],EY.prototype,"hasChipsBar",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",String)],EY.prototype,"pageSubtype",void 0);
_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Boolean)],EY.prototype,"engagementPanel",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Boolean)],EY.prototype,"liveChatEngagementPanel",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],EY.prototype,"inReplyPanel",void 0);_.x([_.O2("#action-button"),_.E("design:type",HTMLElement)],EY.prototype,"actionButton",void 0);_.x([_.g(),_.E("design:type",Object)],EY.prototype,"scrollUpButtonData",void 0);
_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Boolean)],EY.prototype,"engagementPanelDropdown",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Boolean)],EY.prototype,"engagementPanelDialog",void 0);_.x([_.e("data"),_.E("design:type",Object),_.E("design:paramtypes",[])],EY.prototype,"isClipList",null);_.x([_.O2("#contents"),_.E("design:type",HTMLElement)],EY.prototype,"monitorScrollElement",void 0);_.x([_.O2("#contents"),_.E("design:type",HTMLElement)],EY.prototype,"contents",void 0);
_.x([_.Vd("scroll"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],EY.prototype,"onScroll",null);EY=_.x([_.f({is:"ytd-section-list-renderer",disableElementRegistration:!0})],EY);
var TjP=_.pz()(EY,"ytd-section-list-renderer",function(){if(s_m===void 0){var S=document.createElement("template");_.h(S,'\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');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);s_m=S}S=s_m;return S},{mode:1});var W8m;var Onc;var kSH;var Hnm;var mK=function(){return _.w.apply(this,arguments)||this};
_.r(mK,_.w);mK.prototype.configureRendererStamper=function(){return{likeButtonRenderer:{id:"button",mapping:{toggleButtonRenderer:{component:"ytd-toggle-button-renderer",properties:{"on-tap":"[[onLikeButtonClick]]"}}}}}};
mK.prototype.onLikeButtonClick=function(S){S.stopPropagation();S.preventDefault()};
_.$u.Object.defineProperties(mK.prototype,{likeButtonRenderer:{configurable:!0,enumerable:!0,get:function(){var S;if((S=this.data)!=null&&S.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)})}}}});
_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],mK.prototype,"ytRendererBehavior",void 0);_.x([_.F(_.eL.YtComponentBehavior),_.E("design:type",Object)],mK.prototype,"ytComponentBehavior",void 0);_.x([_.F(_.Xh),_.E("design:type",Object)],mK.prototype,"ytdReduxBehavior",void 0);_.x([_.F(_.qH.YtRendererstamperBehavior),_.E("design:type",Object)],mK.prototype,"ytRendererStamperBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],mK.prototype,"data",void 0);
_.x([_.g({selectorArgs:["data.likeStatusEntityKey"],selector:P7}),_.E("design:type",Object)],mK.prototype,"likeStatusEntity",void 0);_.x([_.e("data","likeStatusEntity"),_.E("design:type",Object),_.E("design:paramtypes",[])],mK.prototype,"likeButtonRenderer",null);mK=_.x([_.f({is:"ytd-slim-metadata-toggle-button-renderer",disableElementRegistration:!0})],mK);
_.C(mK,"ytd-slim-metadata-toggle-button-renderer",function(){if(Hnm!==void 0)return Hnm;var S=document.createElement("template");_.h(S,'\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');S.content.insertBefore(_.t().content.cloneNode(!0),S.content.firstChild);
return Hnm=S},{mode:1});var oe=function(){var S=_.w.apply(this,arguments)||this;S.minimizePipBreakages=_.y("web_pip_minimize_breakages");S.showEqualizer=_.y("web_enable_playlist_video_lockup_equalizer");S.watchColorUpdate=_.y("kevlar_watch_color_update");S.actionMap={};return S};
_.r(oe,_.w);_.M=oe.prototype;_.M.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer",params:{buttonTooltipPosition:"left"}}}},"data.actionButtons":{id:"action-buttons",mapping:{slimMetadataToggleButtonRenderer:"ytd-slim-metadata-toggle-button-renderer"}}}};
_.M.computeEditableClass=function(S){return S&&S.menu?"editable":""};
_.M.computeSelected=function(S){return!(S==null||!S.selected)};
_.M.computeUseColorPalette=function(S){return!!((S==null?0:S.lightColorPalette)&&(S==null?0:S.darkColorPalette))};
_.M.computeLargerPlaylistThumbs=function(S,p){return _.y("web_enable_playlist_bigger_thumbnails")&&!p};
_.M.canReorderChanged=function(){this.touchPersistentDragHandle=this.canReorder};
_.M.onYtServiceRequestSent=function(S,p){p.endpoint&&this.isHideEnclosingAction(p.endpoint)&&!this.selected&&c6w(_.e8(),this.data.videoId)};
_.M.isHideEnclosingAction=function(S){var p=!!this.get("feedbackEndpoint.uiActions.hideEnclosingContainer",S);S=this.get("likeEndpoint.status",S)==="INDIFFERENT";return p||S};
_.M.onHandleMouseenter=function(){this.handleIsHovered=!0};
_.M.onHandleMouseleave=function(){this.handleIsHovered=!1};
_.$u.Object.defineProperties(oe.prototype,{reorderIcon:{configurable:!0,enumerable:!0,get:function(){return _.y("enable_web_delhi_icons")?"equal":"yt-icons:drag_handle"}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return(this==null?0:this.largerPlaylistThumbs)?151:100}},
showActionButtons:{configurable:!0,enumerable:!0,get:function(){var S;return!!(this.withinMiniplayer&&((S=this.data)==null?0:S.actionButtons))}}});
oe.prototype.onYtServiceRequestSent=oe.prototype.onYtServiceRequestSent;oe.prototype.canReorderChanged=oe.prototype.canReorderChanged;_.x([_.F(_.qH.YtRendererstamperBehavior),_.E("design:type",Object)],oe.prototype,"ytRendererstamperBehavior",void 0);_.x([_.F(_.Aj.YtActionHandlerBehavior),_.E("design:type",Object)],oe.prototype,"ytActionHandlerBehavior",void 0);_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],oe.prototype,"ytRendererBehavior",void 0);
_.x([_.F(_.ak),_.E("design:type",Object)],oe.prototype,"ytdLockupBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],oe.prototype,"data",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Boolean)],oe.prototype,"withinMiniplayer",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],oe.prototype,"minimizePipBreakages",void 0);_.x([_.g({computed:"computeSelected(data)",reflectToAttribute:!0}),_.E("design:type",Boolean)],oe.prototype,"selected",void 0);
_.x([_.g({computed:"computeUseColorPalette(data)",reflectToAttribute:!0}),_.E("design:type",Boolean)],oe.prototype,"useColorPalette",void 0);_.x([_.g({computed:"computeLargerPlaylistThumbs(data, withinMiniplayer)",reflectToAttribute:!0}),_.E("design:type",Boolean)],oe.prototype,"largerPlaylistThumbs",void 0);_.x([_.g(),_.E("design:type",Object)],oe.prototype,"showEqualizer",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Boolean)],oe.prototype,"canReorder",void 0);
_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Boolean)],oe.prototype,"touchPersistentDragHandle",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Boolean)],oe.prototype,"handleIsHovered",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],oe.prototype,"watchColorUpdate",void 0);_.x([_.g(),_.E("design:type",String),_.E("design:paramtypes",[])],oe.prototype,"reorderIcon",null);
_.x([_.e("largerPlaylistThumbs"),_.E("design:type",Number),_.E("design:paramtypes",[])],oe.prototype,"thumbnailWidth",null);_.x([_.g({reflectToAttribute:!0}),_.e("data"),_.E("design:type",Boolean),_.E("design:paramtypes",[])],oe.prototype,"showActionButtons",null);_.x([_.z4("canReorder"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],oe.prototype,"canReorderChanged",null);
_.x([_.Vd("yt-service-request-sent"),_.E("design:type",Function),_.E("design:paramtypes",[CustomEvent,_.eM]),_.E("design:returntype")],oe.prototype,"onYtServiceRequestSent",null);oe=_.x([_.f({is:"ytd-playlist-panel-video-renderer",disableElementRegistration:!0})],oe);
_.C(oe,"ytd-playlist-panel-video-renderer",function(){if(kSH!==void 0)return kSH;var S=document.createElement("template");_.h(S,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-playlist-panel-video-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a id="wc-endpoint" class="yt-simple-endpoint style-scope ytd-playlist-panel-video-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n  <div id="container" class="style-scope ytd-playlist-panel-video-renderer">\n    <div id="index-container" class="playlist-drag-handle style-scope ytd-playlist-panel-video-renderer" on-mouseenter="onHandleMouseenter" on-mouseleave="onHandleMouseleave">\n      <span id="reorder" class="style-scope ytd-playlist-panel-video-renderer">\n        <yt-icon icon="[[reorderIcon]]" class="style-scope ytd-playlist-panel-video-renderer"></yt-icon>\n      </span>\n      <span id="index" class="style-scope ytd-playlist-panel-video-renderer">[[getSimpleString(data.indexText)]]</span>\n    </div>\n    <div id="thumbnail-container" class="style-scope ytd-playlist-panel-video-renderer">\n      <ytd-thumbnail data="[[data]]" disable-now-playing="[[!showEqualizer]]" disable-tooltips="" now-playing-equalizer-only="" use-expandable-tooltip="[[useExpandableTooltip_]]" width="[[thumbnailWidth]]" class="style-scope ytd-playlist-panel-video-renderer">\n      </ytd-thumbnail>\n    </div>\n    <div id="meta" class$="[[computeEditableClass(data)]] style-scope ytd-playlist-panel-video-renderer">\n      <yt-formatted-string id="unplayableText" disable-upgrade$="[[!data.unplayableText]]" hidden="[[!data.unplayableText]]" no-endpoints="" text="[[data.unplayableText]]" class="style-scope ytd-playlist-panel-video-renderer">\n      </yt-formatted-string>\n      <h4 class="style-scope ytd-playlist-panel-video-renderer">\n        <ytd-badge-supported-renderer top-standalone-badge="[[data.topStandaloneBadge]]" class="style-scope ytd-playlist-panel-video-renderer">\n        </ytd-badge-supported-renderer>\n        <span id="video-title" title$="[[getSimpleString(data.title)]]" aria-label$="[[data.title.accessibility.accessibilityData.label]]" class="style-scope ytd-playlist-panel-video-renderer">\n          [[getSimpleString(data.title)]]\n        </span>\n      </h4>\n      <div id="byline-container" class="style-scope ytd-playlist-panel-video-renderer">\n        <span id="byline" hidden="[[!data.shortBylineText]]" class="style-scope ytd-playlist-panel-video-renderer">\n          [[getSimpleString(data.shortBylineText)]]\n        </span>\n        <ytd-badge-supported-renderer badges="[[data.ownerBadges]]" class="style-scope ytd-playlist-panel-video-renderer">\n        </ytd-badge-supported-renderer>\n        <ytd-badge-supported-renderer badges="[[data.badges]]" class="style-scope ytd-playlist-panel-video-renderer">\n        </ytd-badge-supported-renderer>\n      </div>\n      <yt-formatted-string id="video-info" disable-upgrade$="[[!data.videoInfo]]" hidden="[[!data.videoInfo]]" no-endpoints="" text="[[data.videoInfo]]" class="style-scope ytd-playlist-panel-video-renderer">\n      </yt-formatted-string>\n      <div id="action-buttons" hidden="[[!showActionButtons]]" class="style-scope ytd-playlist-panel-video-renderer"></div>\n    </div>\n  </div>\n</a>\n<div id="menu" class="style-scope ytd-playlist-panel-video-renderer"></div>\n');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);return kSH=S},{mode:2});var vq=function(){return _.w.apply(this,arguments)||this};
_.r(vq,_.w);vq.prototype.configureRendererStamper=function(){return{data:{id:"content",mapping:{playlistPanelVideoRenderer:{component:"ytd-playlist-panel-video-renderer",noInjection:!0},messageRenderer:{component:"ytd-message-renderer",noInjection:!0}}}}};
_.x([_.F(_.qH.YtRendererstamperBehavior),_.E("design:type",Object)],vq.prototype,"ytRendererstamperBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],vq.prototype,"data",void 0);vq=_.x([_.f({is:"ytd-playlist-panel-supported-items",disableElementRegistration:!0})],vq);
_.C(vq,"ytd-playlist-panel-supported-items",function(){if(Onc!==void 0)return Onc;var S=document.createElement("template");_.h(S,'\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');S.content.insertBefore(_.t().content.cloneNode(!0),S.content.firstChild);return Onc=
S},{mode:1});D9l=!0;Zzt("\\P{N}");var FGe;var D6t=_.Oh("END_OF_PLAYLIST",void 0,"End of playlist"),ziP=_.Oh("PLAYLIST_MIX_DETAILED_LONG_BYLINE",void 0,"Mixes are playlists YouTube makes for you"),$6=function(){var S=_.w.apply(this,arguments)||this;S.minimizePipBreakages=_.y("web_pip_minimize_breakages");S.updatedCoursePanel=_.y("move_three_dot_menu_to_playlist_panel_header_for_courses");S.hideHeaderText=!1;S.useColorPalette=!1;S.collapsed=!1;S.collapsedPreServerOverride="not_tracked";S.isHovered=!1;S.modernPanels=_.y("kevlar_watch_modern_panels");
S.expandLabel=_.Oh("MINIPLAYER_EXPAND_LABEL");S.collapseLabel=_.Oh("MINIPLAYER_COLLAPSE_LABEL");S.isFloating=!1;S.metaPanel=!1;S.actionMap={"yt-dark-mode-toggled-action":"handleDarkModeChange"};S.currentIndex=void 0;return S};
_.r($6,_.w);_.M=$6.prototype;
_.M.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"}}}};
_.M.created=function(){this.scrollThrottle=new _.NB(this.onThrottledScroll,1E3,this)};
_.M.onMouseEnter=function(){this.isHovered=!0};
_.M.onMouseLeave=function(){this.isHovered=!1};
_.M.computeOverflowMenuData=function(S){return S&&S.menu?S.menu:null};
_.M.computeCollapsible=function(S){return!S};
_.M.computeHasPlaylistButtons=function(S){return!(!S||!S.playlistButtons)};
_.M.computeHasSeparateSaveButton=function(S){return!(!S||!S.saveButton)};
_.M.computeHasToolbarButton=function(S,p){return!(!S||!(p||S.saveButton||S.menu))};
_.M.computePlaylistType=function(S){if(S&&S.playlistId)return S.playlistId.substring(0,4)};
_.M.computeCanReorder=function(S){return S?S.playlistId&&S.playlistId.startsWith("TLPQ")?!0:!!S.isEditable&&!S.isInfinite:!1};
_.M.attached=function(){var S=this;try{_.tW().resolve(_.Fz).setPlaylistComponent(this.hostElement)}catch(p){if(_.y("kevlar_park_on_playlist_token_killswitch"))throw p;_.Pt().parkOrScheduleJob(function(){_.tW().resolve(_.Fz).setPlaylistComponent(S.hostElement)},2,"ci")}_.A8(this.hostElement);
this.handleDarkModeChange(document.documentElement.hasAttribute("dark"))};
_.M.detached=function(){_.t8(this.hostElement)};
_.M.computeTrailingIcon=function(S,p,U){return U?p?"yt-icons:collapse":"yt-icons:close":p?"yt-icons:expand":_.y("kevlar_playlist_use_x_close_button")?"yt-icons:close":"yt-icons:collapse"};
_.M.computeIndexMessage=function(S,p){return ZeX(S+1)+" / "+ZeX(p)};
_.M.onRenderStamperFinished=function(){if(this.scrollForStampDom){var S=!0;this.isHovered&&(S=!1);if(this.collapsed||this.hidden)S=!1;S&&this.scrollToCurrentVideo();this.scrollForStampDom=!1;this.data&&(this.currentIndex=this.data.currentIndex)}this.canReorder&&this.setupReordering()};
_.M.collapseChanged=function(){var S=this;this.collapsed||(_.Jn(this.ytTaskEmitterBehavior.getTaskManager(),function(){S.scrollToCurrentVideo()}),this.ytRendererBehavior.markDirty())};
_.M.hiddenChanged=function(){var S=this;this.hidden||_.Jn(this.ytTaskEmitterBehavior.getTaskManager(),function(){S.scrollToCurrentVideo()})};
_.M.setupReordering=function(){var S=_.tB(this.hostElement).querySelector("#items");Ztw?_.HkP(this.ytReorderableBehavior,S,S,"playlist-drag-handle"):_.HkP(this.ytReorderableBehavior,S,S)};
_.M.scrollToCurrentVideo=function(){var S=this;_.PA.addJob(function(){var p=_.tB(S.hostElement).querySelector("#items");if(p){p.style.setProperty("padding-bottom","");var U=_.tB(S.hostElement).querySelector("#items").querySelector("ytd-playlist-panel-video-renderer[selected]");if(U){p=U.parentElement||_.QC(document);var Y=p||_.QC(document);var L=_.eb(U),I=_.eb(Y),V=_.LEm(Y);if(Y==_.QC(document)){var W=L.x-Y.scrollLeft;L=L.y-Y.scrollTop}else W=L.x-I.x-V.left,L=L.y-I.y-V.top;U=Sle(U);I=Y.clientHeight-
U.height;V=Y.scrollLeft;var O=Y.scrollTop;V+=W-(Y.clientWidth-U.width)/2;Y=new _.Xp(V,O+(L-I/2));p.scrollLeft=Y.x;p.scrollTop=Y.y}}},8)};
_.M.dataChanged=function(){var S=this;_.kcI(this.ytReorderableBehavior);this.scrollForStampDom=this.currentIndex!==this.data.currentIndex;this.hidden||_.oH(this,function(){_.bQ(S.ytTaskEmitterBehavior.getTaskManager(),function(){S.ytRendererBehavior.markDirty();S.updateNowPlayingOverlay()})});
this.handleCollapsedFromData(this.data)};
_.M.onTheaterModeChanged=function(){_.y("web_watch_imax_theater_mode")&&(this.isTheaterMode?this.setCollapsed(!0):this.setCollapsed(!1))};
_.M.onFullscreenChanged=function(){_.y("web_watch_close_eps_on_fullscreen")&&(this.isFullscreen?this.setCollapsed(!0):this.setCollapsed(!1))};
_.M.updateNowPlayingOverlay=function(){_.y("web_enable_playlist_video_lockup_equalizer")&&this.activeNowPlayingRenderer&&(this.activeNowPlayingRenderer.isVideoPlaying=this.playerState===1)};
_.M.onPlaylistLockupNowPlaying=function(S,p){p&&(this.activeNowPlayingRenderer=p);this.updateNowPlayingOverlay()};
_.M.onScroll=function(){this.scrollThrottle.fire()};
_.M.onThrottledScroll=function(){var S=this;_.bQ(this.ytTaskEmitterBehavior.getTaskManager(),function(){S.ytRendererBehavior.markDirty()})};
_.M.onToggleExpanded=function(S){!this.collapsible||S&&(_.mF(S).tagName==="A"||_.Eo(_.E1(S),this.hostElement,["YTD-MENU-RENDERER","YTD-TOGGLE-BUTTON-RENDERER"]))||(this.setCollapsed(!this.collapsed),this.collapsedPreServerOverride="not_tracked")};
_.M.setCollapsed=function(S){this.collapsible&&(this.collapsed=S,_.pp(this.hostElement,"yt-set-playlist-collapsed",[this.collapsed]))};
_.M.handleCollapsedFromData=function(S){if(S){var p=S.playlistPanelCollapseState;p==="PLAYLIST_PANEL_COLLAPSE_STATE_COLLAPSED"||p==="PLAYLIST_PANEL_COLLAPSE_STATE_EXPANDED"?(this.collapsedPreServerOverride==="not_tracked"&&(this.collapsedPreServerOverride=this.collapsed?"collapsed":"expanded"),p=p==="PLAYLIST_PANEL_COLLAPSE_STATE_COLLAPSED",this.collapsed!==p&&this.setCollapsed(p)):this.currentPlaylistId!==S.playlistId&&this.collapsedPreServerOverride!=="not_tracked"&&(p=this.collapsedPreServerOverride===
"collapsed",this.collapsed!==p&&this.setCollapsed(p),this.collapsedPreServerOverride="not_tracked");this.currentPlaylistId=S.playlistId}};
_.M.handleDrop=function(S){var p=S.currDragItem;S=p.data.playlistSetVideoId;var U=_.xR(p.parentNode.childNodes,p),Y=void 0;U>0&&(Y=p.parentNode.childNodes[U-1].data.playlistSetVideoId);p=_.e8();if(p.responsePlaylistData&&p.responsePlaylistData.contents){var L=q8u(S,p.responsePlaylistData);p.responsePlaylistData=(0,_.h9.unsafeClone)(p.responsePlaylistData);req(p.responsePlaylistData.contents,L,U);p.queueProxy?XLE(p.queueProxy,L,U,S,Y):p.playlistProxy&&XLE(p.playlistProxy,L,U,S,Y);_.g_(p,_.ul(p,p.response?
p.response.autoplayRenderer:void 0))}};
_.M.handleDarkModeChange=function(S){S!==this.isDarkTheme&&(this.isDarkTheme=S)};
_.M.colorPaletteChanged=function(){var S,p=((S=this.data)==null?void 0:S.contents)||[],U;S=_.d(p);for(p=S.next();!p.done;p=S.next()){p=p.value;var Y=void 0;if((Y=p.playlistPanelVideoRenderer)==null?0:Y.selected){S=p.playlistPanelVideoRenderer;Y=p=void 0;(U=this.isDarkTheme?(p=S)==null?void 0:p.darkColorPalette:(Y=S)==null?void 0:Y.lightColorPalette)&&_.Gw(this.hostElement,U);break}}this.useColorPalette=!!U};
_.$u.Object.defineProperties($6.prototype,{moveThreeDotMenuToTopRow:{configurable:!0,enumerable:!0,get:function(){var S,p;return!((S=this.data)==null||!S.playlistId)&&!((p=this.data)==null||!p.isCourse)&&this.updatedCoursePanel}},
nextVideoTitle:{configurable:!0,enumerable:!0,get:function(){var S=_.tW().resolve(_.AW(_.Fz)),p;if(((p=this.data)==null?0:p.contents)&&(S==null?0:S.hasAutoplayData())){var U;if(((U=this.playlistLoopStateEntity)==null?void 0:U.state)==="PLAYLIST_LOOP_STATE_ONE"){if(S=this.data.currentIndex,S!==void 0){var Y,L;var I=(Y=this.data.contents[S])==null?void 0:(L=Y.playlistPanelVideoRenderer)==null?void 0:L.title}}else{var V,W=(V=_.b(S.getAutoplayEndpoint(),_.E$))==null?void 0:V.videoId,O,D;I=(O=this.data.contents.find(function(z){var Q;
return((Q=z.playlistPanelVideoRenderer)==null?void 0:Q.videoId)===W}))==null?void 0:(D=O.playlistPanelVideoRenderer)==null?void 0:D.title}return I}}},
nextVideoLabel:{configurable:!0,enumerable:!0,get:function(){var S;return(S=this.data)!=null&&S.nextVideoLabel?this.nextVideoTitle?_.mA(this.data.nextVideoLabel)+":":D6t:""}},
buttonAriaLabel:{configurable:!0,enumerable:!0,get:function(){return this.collapsed?this.expandLabel:this.collapseLabel}},
mixLongByLine:{configurable:!0,enumerable:!0,get:function(){var S;if(((S=this.data)==null?0:S.playlistId)&&this.data.playlistId.startsWith("RD")&&this.data.playlistId!=="RDPN")return _.Ec(ziP);var p;return(p=this.data)==null?void 0:p.longBylineText}},
playlistLoopStateEntityKey:{configurable:!0,enumerable:!0,get:function(){var S,p,U,Y=(S=this.data)==null?void 0:(p=S.playlistButtons)==null?void 0:(U=p.menuRenderer)==null?void 0:U.topLevelButtons;if(Y)for(S=_.d(Y),p=S.next();!p.done;p=S.next())if(p=p.value,p.playlistLoopButtonRenderer)return p.playlistLoopButtonRenderer.playlistLoopStateEntityKey}},
showNextVideoHeader:{configurable:!0,enumerable:!0,get:function(){var S;return!!(this.collapsed&&((S=this.data)==null?0:S.nextVideoLabel))}}});
$6.prototype.colorPaletteChanged=$6.prototype.colorPaletteChanged;$6.prototype.onPlaylistLockupNowPlaying=$6.prototype.onPlaylistLockupNowPlaying;$6.prototype.updateNowPlayingOverlay=$6.prototype.updateNowPlayingOverlay;$6.prototype.onFullscreenChanged=$6.prototype.onFullscreenChanged;$6.prototype.onTheaterModeChanged=$6.prototype.onTheaterModeChanged;$6.prototype.dataChanged=$6.prototype.dataChanged;$6.prototype.hiddenChanged=$6.prototype.hiddenChanged;$6.prototype.collapseChanged=$6.prototype.collapseChanged;
$6.prototype.onRenderStamperFinished=$6.prototype.onRenderStamperFinished;$6.prototype.onMouseLeave=$6.prototype.onMouseLeave;$6.prototype.onMouseEnter=$6.prototype.onMouseEnter;_.x([_.F(_.ji),_.E("design:type",Object)],$6.prototype,"ironResizableBehavior",void 0);_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],$6.prototype,"ytRendererBehavior",void 0);_.x([_.F(_.qH.YtRendererstamperBehavior),_.E("design:type",Object)],$6.prototype,"ytRendererstamperBehavior",void 0);
_.x([_.F(W9w.YtPlaylistPanelBehavior),_.E("design:type",Object)],$6.prototype,"ytPlaylistPanelBehavior",void 0);_.x([_.F(_.$2.YtTaskEmitterBehavior),_.E("design:type",Object)],$6.prototype,"ytTaskEmitterBehavior",void 0);_.x([_.F(_.Djm),_.E("design:type",Object)],$6.prototype,"ytReorderableBehavior",void 0);_.x([_.F(_.eL.YtComponentBehavior),_.E("design:type",Object)],$6.prototype,"ytComponentBehavior",void 0);_.x([_.F(_.Xh),_.E("design:type",Object)],$6.prototype,"ytdReduxBehavior",void 0);
_.x([_.F(_.Aj.YtActionHandlerBehavior),_.E("design:type",Object)],$6.prototype,"actionHandlerBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],$6.prototype,"data",void 0);_.x([_.g(),_.E("design:type",Object)],$6.prototype,"autoplayData",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Boolean)],$6.prototype,"withinMiniplayer",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],$6.prototype,"minimizePipBreakages",void 0);
_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],$6.prototype,"updatedCoursePanel",void 0);_.x([_.g({computed:"setMenuData_(data)"}),_.E("design:type",Object)],$6.prototype,"menuRendererData",void 0);_.x([_.g({computed:"computeOverflowMenuData(data)"}),_.E("design:type",Object)],$6.prototype,"overflowMenuDataTopRow",void 0);_.x([_.g({computed:"computeOverflowMenuData(data)"}),_.E("design:type",Object)],$6.prototype,"overflowMenuData",void 0);
_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],$6.prototype,"hideHeaderText",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],$6.prototype,"useColorPalette",void 0);_.x([_.g({reflectToAttribute:!0,computed:"computeCollapsible(hideHeaderText)"}),_.E("design:type",Boolean)],$6.prototype,"collapsible",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],$6.prototype,"collapsed",void 0);
_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Boolean)],$6.prototype,"hidden",void 0);_.x([_.g({reflectToAttribute:!0,computed:"computeHasPlaylistButtons(data)"}),_.E("design:type",Boolean)],$6.prototype,"hasPlaylistButtons",void 0);_.x([_.g({reflectToAttribute:!0,computed:"computeHasSeparateSaveButton(data)"}),_.E("design:type",Boolean)],$6.prototype,"hasSeparateSaveButton",void 0);
_.x([_.g({reflectToAttribute:!0,computed:"computeHasToolbarButton(data, menuRendererData)"}),_.E("design:type",Boolean)],$6.prototype,"hasToolbar",void 0);_.x([_.g({reflectToAttribute:!0,computed:"computePlaylistType(data)"}),_.E("design:type",String)],$6.prototype,"playlistType",void 0);_.x([_.g(),_.E("design:type",Object)],$6.prototype,"isHovered",void 0);_.x([_.g({selectorArgs:["playlistLoopStateEntityKey"],selector:_.sQd}),_.E("design:type",Object)],$6.prototype,"playlistLoopStateEntity",void 0);
_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],$6.prototype,"modernPanels",void 0);_.x([_.g({value:56}),_.E("design:type",Number)],$6.prototype,"scrollMargin",void 0);_.x([_.g({computed:"computeCanReorder(data)"}),_.E("design:type",Boolean)],$6.prototype,"canReorder",void 0);_.x([_.g(),_.E("design:type",Object)],$6.prototype,"expandLabel",void 0);_.x([_.g(),_.E("design:type",Object)],$6.prototype,"collapseLabel",void 0);
_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],$6.prototype,"isFloating",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],$6.prototype,"metaPanel",void 0);_.x([_.g({computed:"computeTrailingIcon(data, collapsed, isFloating)"}),_.E("design:type",String)],$6.prototype,"trailingIcon",void 0);_.x([_.g({reflectToAttribute:!0,value:!1}),_.E("design:type",Boolean)],$6.prototype,"isDarkTheme",void 0);
_.x([_.g({selector:_.F1}),_.E("design:type",Boolean)],$6.prototype,"miniplayerIsActive",void 0);_.x([_.g({selector:function(S){return S.watch.playerState}}),
_.E("design:type",Number)],$6.prototype,"playerState",void 0);_.x([_.g({selector:_.eS}),_.E("design:type",Boolean)],$6.prototype,"isFullscreen",void 0);_.x([_.g({selector:_.sK}),_.E("design:type",Boolean)],$6.prototype,"isTheaterMode",void 0);_.x([_.g(),_.E("design:type",Object)],$6.prototype,"activeNowPlayingRenderer",void 0);_.x([_.g({reflectToAttribute:!0}),_.e("data"),_.E("design:type",Boolean),_.E("design:paramtypes",[])],$6.prototype,"moveThreeDotMenuToTopRow",null);
_.x([_.e("data","autoplayData","playlistLoopStateEntity"),_.E("design:type",Object),_.E("design:paramtypes",[])],$6.prototype,"nextVideoTitle",null);_.x([_.e("data","nextVideoTitle"),_.E("design:type",String),_.E("design:paramtypes",[])],$6.prototype,"nextVideoLabel",null);_.x([_.e("collapsed"),_.E("design:type",String),_.E("design:paramtypes",[])],$6.prototype,"buttonAriaLabel",null);
_.x([_.e("data","playlistId","longBylineText"),_.E("design:type",Object),_.E("design:paramtypes",[])],$6.prototype,"mixLongByLine",null);_.x([_.e("data"),_.E("design:type",Object),_.E("design:paramtypes",[])],$6.prototype,"playlistLoopStateEntityKey",null);_.x([_.Vd("mouseenter"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],$6.prototype,"onMouseEnter",null);
_.x([_.Vd("mouseleave"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],$6.prototype,"onMouseLeave",null);_.x([_.g({reflectToAttribute:!0}),_.e("data","collapsed"),_.E("design:type",Boolean),_.E("design:paramtypes",[])],$6.prototype,"showNextVideoHeader",null);_.x([_.Vd("yt-rendererstamper-finished"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],$6.prototype,"onRenderStamperFinished",null);
_.x([_.T4("collapsed"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],$6.prototype,"collapseChanged",null);_.x([_.T4("hidden"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],$6.prototype,"hiddenChanged",null);_.x([_.T4("data"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],$6.prototype,"dataChanged",null);
_.x([_.T4("isTheaterMode"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],$6.prototype,"onTheaterModeChanged",null);_.x([_.T4("isFullscreen"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],$6.prototype,"onFullscreenChanged",null);_.x([_.T4("playerState","miniplayerIsActive"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],$6.prototype,"updateNowPlayingOverlay",null);
_.x([_.Vd("yt-playlist-lockup-now-playing-active"),_.E("design:type",Function),_.E("design:paramtypes",[CustomEvent,Object]),_.E("design:returntype")],$6.prototype,"onPlaylistLockupNowPlaying",null);_.x([_.T4("data","isDarkTheme"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],$6.prototype,"colorPaletteChanged",null);$6=_.x([_.f({is:"ytd-playlist-panel-renderer",disableElementRegistration:!0})],$6);
_.Q7m=_.pz()($6,"ytd-playlist-panel-renderer",function(){if(W8m===void 0){var S=document.createElement("template");_.h(S,'\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>');
S.content.insertBefore(_.t().content.cloneNode(!0),S.content.firstChild);W8m=S}S=W8m;return S},{mode:2,
allowedProps:"autoplayData collapsed data hidden useColorPalette hideHeaderText withinMiniplayer metaPanel".split(" ")});var nwm;var iH=function(){var S=_.w.apply(this,arguments)||this;S.modern=_.y("web_button_rework");return S};
_.r(iH,_.w);iH.prototype.computeShouldButtonBeVertical=function(S,p){return S||p};
iH.prototype.onYtServiceRequestSent=function(S,p){(S=_.b(p.endpoint,_.lO))&&(this.likeStatusEntityKey?this.ytdReduxBehavior.dispatch(_.WG("likeStatusEntity",this.likeStatusEntityKey,{key:this.likeStatusEntityKey,likeStatus:S.status})):this.handleLikeEndpoint(S))};
iH.prototype.computelikeStatusEntityKey=function(S){return S==null?void 0:S.likeStatusEntityKey};
iH.prototype.handleLikeEndpoint=function(S){S.status==="LIKE"?this.JSC$14896_ytdDislikeToggleButtonRenderer.toggle(!1):S.status==="DISLIKE"?this.JSC$14896_ytdLikeToggleButtonRenderer.toggle(!1):(this.JSC$14896_ytdLikeToggleButtonRenderer.toggle(!1),this.JSC$14896_ytdDislikeToggleButtonRenderer.toggle(!1))};
_.$u.Object.defineProperties(iH.prototype,{likeButton:{configurable:!0,enumerable:!0,get:function(){var S;return uSr(this.data,!0,this.useShortsIcon?"SHORTS_LIKE":"LIKE",(S=this.likeStatusEntity)==null?void 0:S.likeStatus)}},
dislikeButton:{configurable:!0,enumerable:!0,get:function(){var S;if(this.data&&((S=this.data)==null||!S.hideDislikeButton)){var p;return uSr(this.data,!1,this.useShortsIcon?"SHORTS_DISLIKE":"DISLIKE",(p=this.likeStatusEntity)==null?void 0:p.likeStatus)}}}});
iH.prototype.onYtServiceRequestSent=iH.prototype.onYtServiceRequestSent;_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],iH.prototype,"ytRendererBehavior",void 0);_.x([_.F(_.Xh),_.E("design:type",Object)],iH.prototype,"ytdReduxBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],iH.prototype,"data",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Boolean)],iH.prototype,"vertical",void 0);
_.x([_.g({reflectToAttribute:!0}),_.E("design:type",String)],iH.prototype,"textTransform",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Boolean)],iH.prototype,"useShortsIcon",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Boolean)],iH.prototype,"underIconLabel",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],iH.prototype,"modern",void 0);_.x([_.g({value:"left"}),_.E("design:type",String)],iH.prototype,"buttonTooltipPosition",void 0);
_.x([_.g(),_.E("design:type",Object)],iH.prototype,"overrides",void 0);_.x([_.O2("#like-button"),_.E("design:type",Object)],iH.prototype,"JSC$14896_ytdLikeToggleButtonRenderer",void 0);_.x([_.O2("#dislike-button"),_.E("design:type",Object)],iH.prototype,"JSC$14896_ytdDislikeToggleButtonRenderer",void 0);_.x([_.e("data","likeStatusEntity.likeStatus"),_.E("design:type",Object),_.E("design:paramtypes",[])],iH.prototype,"likeButton",null);
_.x([_.e("data","likeStatusEntity.likeStatus"),_.E("design:type",Object),_.E("design:paramtypes",[])],iH.prototype,"dislikeButton",null);_.x([_.g({computed:"computelikeStatusEntityKey(data)"}),_.E("design:type",String)],iH.prototype,"likeStatusEntityKey",void 0);_.x([_.g({selectorArgs:["likeStatusEntityKey"],selector:P7}),_.E("design:type",Object)],iH.prototype,"likeStatusEntity",void 0);
_.x([_.Vd("yt-service-request-sent"),_.E("design:type",Function),_.E("design:paramtypes",[CustomEvent,_.eM]),_.E("design:returntype")],iH.prototype,"onYtServiceRequestSent",null);iH=_.x([_.f({disableElementRegistration:!0,is:"ytd-like-button-renderer"})],iH);
var J$Q=_.pz()(iH,"ytd-like-button-renderer",function(){if(nwm===void 0){var S=document.createElement("template");_.h(S,'\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');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);nwm=S}S=nwm;return S},{mode:1});_.y$H={};
_.y$H.YtConditionalRendererBehavior=[_.c.YtRendererBehavior,{_noAccessors:!0,properties:{hidden:{type:Boolean,reflectToAttribute:!0},showSpinner:{type:Boolean,reflectToAttribute:!0}},observers:["updateProperties_(data, isAttached)"],updateProperties_:function(S,p){var U=this,Y,L;return _.T(function(I){switch(I.nextAddress){case 1:if(!p)return U.hidden=!0,U.showSpinner=!1,I.return();if((Y=S)==null?0:(L=Y.visibilityCondition)==null?0:L.mode)switch(S.visibilityCondition.mode){case "VISIBILITY_CONDITION_MODE_DISPLAY_SPINNER":return I.jumpTo(5);default:return I.jumpTo(6)}U.showSpinner=
!1;U.hidden=!0;return _.k(I,U.shouldShow_(S),4);case 4:U.hidden=!I.yieldResult;I.jumpTo(0);break;case 5:return _.k(I,U.shouldShow_(S),8);case 8:U.showSpinner=I.yieldResult;U.hidden=!1;I.jumpTo(0);break;case 6:return U.showSpinner=!1,_.k(I,U.shouldShow_(S),9);case 9:U.hidden=!I.yieldResult,_.OV(I)}})},
shouldShow_:function(S){return S&&S.supportedDatas&&S.supportedDatas.rendererVisibilityConditionData&&S.supportedDatas.rendererVisibilityConditionData.showIf?this.isVisibilityConditionSatisfied_(S.supportedDatas.rendererVisibilityConditionData.showIf):S&&S.visibilityCondition&&S.visibilityCondition.showIf?this.isVisibilityConditionSatisfied_(S.visibilityCondition.showIf):S&&S.visibilityConditionType?this.isLegacyVisibilityConditionSatisfied_(S.visibilityConditionType):Promise.resolve(!0)},
isVisibilityConditionSatisfied_:function(S){switch(S){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(S){switch(S){case "MDX_CONNECTED":return Promise.resolve(this.isMdxConnected_());default:return Promise.resolve(!1)}},
isMdxConnected_:function(){var S=_.St(this.hostElement,"yt-get-mdx-status");return S.length==1&&S[0].connected},
isLocationPermissionGranted_:function(){var S;return _.T(function(p){return p.nextAddress==1?navigator.permissions?_.k(p,navigator.permissions.query({name:"geolocation"}),3):p.jumpTo(2):p.nextAddress!=2?(S=p.yieldResult,p.return(Promise.resolve(S.state==="granted"))):p.return(Promise.resolve(!1))})}}];var K8l=function(S,p){p=p===void 0?{}:p;return function(U){var Y=document.createElement(S),L;var I=(L=Y.polymerController)!=null?L:Y;mQq(Y,I,U,p);return Y}}("yt-icon"),bnm=_.y("web_bypass_polymer_yt_icon")&&_.y("kevlar_use_wil_icons")?_.$k(function(S){var p=S.icon;
var U=S.active;var Y=S.className;var L=S.style;var I=S.dataSelected;var V=S.dataDisabled;var W=S.role;var O=S.themeOverride;var D=S.animateIcon;var z=S.ariaHidden;var Q=S.ariaExpanded;var J=S.ariaLabel;var K=S.id;var G=S.iconFilter;var X=function(){var N=p==null?void 0:p(),m=null,A=void 0;N&&(N=cl.computeIcon(N),N=JRw(N),N.length&&(m=N[1],A=N[0]));return{iconName:m,iconSetName:A}};
S=_.d(_.kj(void 0,void 0,"MMbMuc"));var Z=S.next().value,l=S.next().value;_.R8(function(){cl.getIconShapeData(X().iconName,U==null?void 0:U(),void 0,void 0,X().iconSetName).then(l)});
var a=function(){return{iconWidth:"100%",iconHeight:"100%",iconFilter:G==null?void 0:G()}};
return _.H(_.n,{cond:D,then:function(){return _.H(K8l,{icon:p,active:U,className:Y,style:L,dataSelected:I,dataDisabled:V,role:W,themeOverride:O,ariaHidden:z,ariaExpanded:Q,ariaLabel:J,id:K,iconFilter:G})},
else:function(){return _.H(_.n,{cond:Z,then:function(N){return _.H(E6e,{data:N,options:a})}})}})},"ge"):K8l;var j7H=function(S){var p=this;this.eventJobIds={};this.scrollEventsToIgnore=0;this.stopIgnoringScrollTimeoutIds=[];$Id();_.NT("ytglobal.ytUtilActivityCallback_",function(){_.pp(S,"yt-user-activity")});
new cA(function(){return p.JSC$14910_onMouseMove});
document.addEventListener("scroll",function(){return p.onScroll});
window.addEventListener("resize",function(){return p.onResize})},r$t=function(S,p,U){p in S.eventJobIds||(U=_.jC().addLowPriorityJob(function(){_.SP();
delete S.eventJobIds[p]},U),S.eventJobIds[p]=U)};
j7H.prototype.onScroll=function(S){this.scrollEventsToIgnore>0?(this.scrollEventsToIgnore--,clearTimeout(this.stopIgnoringScrollTimeoutIds.pop())):S.target===document&&r$t(this,"scroll",200)};
j7H.prototype.onResize=function(){r$t(this,"resize",200)};
j7H.prototype.JSC$14910_onMouseMove=function(){r$t(this,"mousemove",100)};
_.ic=function(S){S.scrollEventsToIgnore+=1;S.stopIgnoringScrollTimeoutIds.push(setTimeout(function(){S.scrollEventsToIgnore--},500))};var GSl=function(S){this.element=S;this.productData={};this.chatSupportLoaded=!1;document.body.addEventListener("yt-page-data-updated",this.resetProductData)};
GSl.prototype.showFeedbackDialog=function(S,p,U,Y){var L=him();if(!L)return!1;var I=$$R();I.productId=L;p&&(I.flow="submit",I.report={description:p});U&&(him()==="59"?I.callback=_.lb(function(){_.RV("userFeedbackEvent",{});U()}):I.callback=_.lb(U));
I.bucket=Y||_.g7("GOOGLE_FEEDBACK_BUCKET","Other");RiQ(I);S=F8Q(this,"GFEEDBACK",S);try{_.E9j(I,S)}catch(V){return _.w7(V),!1}return!0};
GSl.prototype.showHelpDialog=function(S,p,U){var Y=this,L=him();if(!L)return!1;var I={helpCenterPath:"/youtube",productData:F8Q(this,"GUIDED_HELP",U)};RiQ(I);var V=$$R();V.context=S||I.productData.context||"default";V.defaultHelpArticleId=p;V.enableSendFeedback=!0;(_.ad("gapi.load")||function(W,O){return O()})("client",function(){try{var W=X4w(L,I);
if(_.y("web_always_load_chat_support")&&!Y.chatSupportLoaded)try{W.JSC$7981_loadChatSupport(V),Y.chatSupportLoaded=!0}catch(O){}W.startHelp(V)}catch(O){_.w7(O)}})};
var him=function(){var S=_.g7("GOOGLE_FEEDBACK_PRODUCT_ID");S||_.w7(Error("bi"));return S},RiQ=function(S){S&&(S.locale=_.y("kevlar_help_use_locale")?_.g7("INNERTUBE_CONTEXT_HL","en"):_.g7("HTML_LANG","en"))},F8Q=function(S,p,U){var Y=S.productData;
delete Y.origin;Y.device=_.zG();var L;a:{if(L=document.createElement("canvas")){var I=L.getContext("experimental-webgl",{stencil:!0});if(I){var V=I.getExtension("WEBGL_debug_renderer_info");if(V){L=I.getParameter(V.UNMASKED_RENDERER_WEBGL);break a}}if(I=L.getContext("webgl")){L=I.getParameter(I.RENDERER);break a}}L=null}Y.gpu=L;Y.isSDC=!!_.g7("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT");(L=_.g7("GOOGLE_FEEDBACK_PRODUCT_DATA"))&&_.h9.extend(Y,L);_.o$w(p,Y);_.v$E(Y);(S=_.pp(S.element,"yt-get-autonav-pause-debug-state"))&&
S.length&&(Y.autonav_pause_state=S[0]);S=_.kE();Y.browser_resolution=S.width+"\u00d7"+S.height+"@"+(window.devicePixelRatio||1)+"x";U&&_.h9.extend(Y,U);return Y};
GSl.prototype.resetProductData=function(){this.productData={}};var XKm=function(S){this.feedbackManager=new GSl(S)};
XKm.prototype.showFeedbackDialog=function(S,p,U,Y){return this.feedbackManager.showFeedbackDialog(S,p,U,Y)};
XKm.prototype.showHelpDialog=function(S,p,U){return this.feedbackManager.showHelpDialog(S,p,U)};var PUq=function(){this.baseUrl="";this.aTag=document.createElement("a")},bbw=function(S,p,U){U=U===void 0?{}:U;
U.pbj||(U.pbj=1);U=_.ZzG(p,U);S.baseUrl&&U&&!_.$s(U)[1]&&!_.ib(U)&&(p=S.baseUrl,Iu(p,"/")&&(p=p.slice(0,-1)),_.Lr(U,"/")&&(U=U.slice(1)),U=p+"/"+U);hA(S.aTag,Q2(U||""));return S.aTag.href};
PUq.prototype.fetchData=function(S){return _.aQq(S)};
PUq.prototype.postData=function(S,p){var U={method:"POST"};if(p){for(var Y=_.d(Object.keys(p)),L=Y.next();!L.done;L=Y.next()){L=L.value;var I=p[L];_.pc(I)&&(p[L]=JSON.stringify(I))}U.postParams=p}return _.aQq(S,U)};
_.jIH=function(S,p,U,Y,L){S=bbw(S,p,U);if(!S)throw Y=Error("ci"),Object.assign(Y,{params:p}),Y;return _.aQq(S,L,Y)};
PUq.prototype.requestDataForServiceEndpoint=function(S,p){if(_.b(S,_.K9N))return this.fetchData("/getAccountSwitcherEndpoint");p=p||{};var U=_.b(S,YSj);U?p.se=U.base64EncodedServiceEndpoint:p.sej=JSON.stringify(S);(U=_.X$())&&_.y("enable_service_ajax_csn")&&(p.csn=U);p.theme=_.bE();_.b(S,J0u)&&_.g7("DELEGATION_CONTEXT")&&(p.delegation_context=JSON.stringify(_.g7("DELEGATION_CONTEXT")));U=null;for(var Y in S)if(Iu(Y,"Endpoint")||Iu(Y,"Command")){U=Y;break}if(!U){var L=Error("di");Object.assign(L,{params:S});
_.FsE(L,"WARNING");return new _.O9(function(V,W){W(L)})}Y={name:U};
var I;(U=(I=_.b(S,_.TI))==null?void 0:I.signal)&&(Y.signal=U);(I=_.mc(window.location.href))&&I.internalcountrycode&&(Y.internalcountrycode=I.internalcountrycode);I="/service_ajax";_.y("debug_forward_web_query_parameters")&&(I=_.Eur(I,window.location.search));I=_.vQ(I,Y);S.clickTrackingParams&&_.$n(I,{itct:S.clickTrackingParams});return this.postData(I,p)};_.Znt=new _.$g("GFEEDBACK_TOKEN");var s7m;var eic;var gwQ;var u_c;var NX=function(){var S=_.w.apply(this,arguments)||this;S.compact=!1;return S};
_.r(NX,_.w);NX.prototype.configureRendererStamper=function(){return{"data.proceedButton":{id:"button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
NX.prototype.computeHasIcon_=function(S){return!!S};
NX.prototype.isSignInIcon_=function(S){return S=="yt-icons:prompted_sign_in"};
_.x([_.F(_.qH.YtRendererstamperBehavior),_.E("design:type",Object)],NX.prototype,"ytRendererstamperBehavior",void 0);_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],NX.prototype,"ytRendererBehavior",void 0);_.x([_.F(_.y$H.YtConditionalRendererBehavior),_.E("design:type",Object)],NX.prototype,"ytConditionalRendererBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],NX.prototype,"data",void 0);
_.x([_.g({computed:"computeIcon_(data.icon)"}),_.E("design:type",Object)],NX.prototype,"icon_",void 0);_.x([_.g({reflectToAttribute:!0,computed:"computeHasIcon_(icon_)"}),_.E("design:type",Boolean)],NX.prototype,"hasIcon_",void 0);_.x([_.g({reflectToAttribute:!0,computed:"isSignInIcon_(icon_)"}),_.E("design:type",Boolean)],NX.prototype,"signInIcon_",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],NX.prototype,"compact",void 0);
NX=_.x([_.FB({is:"yt-player-error-message-renderer",disableElementRegistration:!0})],NX);
_.C(NX,"yt-player-error-message-renderer",function(){if(u_c===void 0){var S=document.createElement("template");_.h(S,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-player-error-message-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.player.yt_player_error_message_renderer.yt.player.error.message.renderer.css.js--\x3e<div id="player-error-message-container" hidden="[[showSpinner]]" class="style-scope yt-player-error-message-renderer">\n  <yt-icon id="icon" hidden="[[!icon_]]" icon="[[icon_]]" class="style-scope yt-player-error-message-renderer"></yt-icon>\n  <div id="info" class="style-scope yt-player-error-message-renderer">\n    <div id="reason" class="style-scope yt-player-error-message-renderer">[[getSimpleString(data.reason)]]</div>\n    <yt-formatted-string id="subreason" is-overlay="" text="[[data.subreason]]" class="style-scope yt-player-error-message-renderer"></yt-formatted-string>\n    <yt-formatted-string id="more" is-overlay="" text="[[data.learnMore]]" class="style-scope yt-player-error-message-renderer"></yt-formatted-string>\n    <div id="buttons" class="style-scope yt-player-error-message-renderer">\n      <div id="dismiss-button" class="style-scope yt-player-error-message-renderer"></div>\n      <div id="button" class="style-scope yt-player-error-message-renderer"></div>\n    </div>\n  </div>\n</div>\n<div id="spinner" hidden="[[!showSpinner]]" class="style-scope yt-player-error-message-renderer">\n  <tp-yt-paper-spinner-lite active="" class="style-scope yt-player-error-message-renderer"></tp-yt-paper-spinner-lite>\n</div>\n');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);var p=S.content,U=p.insertBefore;gwQ===void 0&&(gwQ=document.createElement("template"));var Y=gwQ;U.call(p,Y.content.cloneNode(!0),S.content.firstChild);u_c=S}S=u_c;return S},{mode:2});var wKH;var l2H;var Bq=function(){return _.w.apply(this,arguments)||this};
_.r(Bq,_.w);Bq.prototype.configureRendererStamper=function(){return{"data.proceedButton":{id:"button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
Bq.prototype.computeIcon_=function(S){return S?"yt-icons:"+S.iconType.toLowerCase():"error_outline"};
_.x([_.F(_.qH.YtRendererstamperBehavior),_.E("design:type",Object)],Bq.prototype,"ytRendererstamperBehavior",void 0);_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],Bq.prototype,"ytRendererBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],Bq.prototype,"data",void 0);_.x([_.g({computed:"computeIcon_(data.icon)"}),_.E("design:type",Object)],Bq.prototype,"icon_",void 0);Bq=_.x([_.FB({is:"yt-player-kav-renderer",disableElementRegistration:!0})],Bq);
_.C(Bq,"yt-player-kav-renderer",function(){if(l2H===void 0){var S=document.createElement("template");_.h(S,'\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');
S.content.insertBefore(_.t().content.cloneNode(!0),S.content.firstChild);var p=S.content,U=p.insertBefore;wKH===void 0&&(wKH=document.createElement("template"));var Y=wKH;U.call(p,Y.content.cloneNode(!0),S.content.firstChild);l2H=S}S=l2H;return S},{mode:2});_.qm(_.$k(function(S){var p=_.vH(),U=_.d(_.kj(0,void 0,"gCmSbf")),Y=U.next().value,L=U.next().value;U=_.d(_.kj(null,void 0,"Rj9zMe"));var I=U.next().value,V=U.next().value;_.FM(function(){BRG(p.value,L,V);p.value.scrollIntoView()});
U=qZr.bind(null,S.data,Y);qW("resize",function(){var W=I();if(Y()===1&&W!==null){var O;(O=window.grecaptcha)==null||O.reset(W)}});
return _.H("yt-player-captcha-view-model",{class:"ytwPlayerCaptchaViewModelHost"},_.H("div",{class:"ytwPlayerCaptchaViewModelGridContainer"},_.H("span",{class:"ytwPlayerCaptchaViewModelScreenReaderOnly"},function(){var W,O;return(W=S.data().accessibility)==null?void 0:(O=W.accessibilityData)==null?void 0:O.label}),_.H(_.i6,{text:U,
className:_.VD("ytwPlayerCaptchaViewModelUserMessage","ytwPlayerCaptchaViewModelGridItem"),isOverlay:!0}),_.H("div",{el:p,class:"ytwPlayerCaptchaViewModelGridItem"})))},"he"),"yt-player-captcha-view-model",{props:{data:_.BX}});var Amr=!1;_.a2m=_.$k(function(S){var p=S.data;return _.H("yt-interstitial-view-model",{class:"interstitial-view-model-wiz"},_.H(_.n,{cond:function(){return p().icon},
then:function(U){return _.H("div",{class:"interstitial-view-model-wiz__interstitial-icon interstitial-view-model-wiz__flex-item"},_.H(_.of,{data:U,alt:"",className:"interstitial-view-model-wiz__icon-image",preserveWidth:!0}))}}),_.H(_.n,{cond:function(){return p().title},
then:function(U){return _.H("div",{class:"interstitial-view-model-wiz__interstitial-title interstitial-view-model-wiz__flex-item"},_.H(_.i6,{text:U}))}}),_.H(_.n,{cond:function(){return p().description},
then:function(U){return _.H("div",{class:"interstitial-view-model-wiz__interstitial-description interstitial-view-model-wiz__flex-item"},_.H(_.i6,{text:U}))}}),_.H(_.yP,{data:function(){return p().primaryButton}},{buttonViewModel:function(U){return _.H(_.PG,{data:U.data,
className:"interstitial-view-model-wiz__flex-item"})}}),_.H(_.yP,{data:function(){return p().secondaryButton}},{buttonViewModel:function(U){return _.H(_.PG,{data:U.data,
className:"interstitial-view-model-wiz__flex-item"})}}))},"ie");
_.a2m.idomCompat=!0;var f2H=_.$k(function(S){var p=S.data;_.x9();return _.H("yt-player-interstitial-renderer",{class:"player-interstitial-renderer-wiz"},_.H("div",{class:"player-interstitial-renderer-wiz__scrim"},_.H(_.yP,{data:function(){return p().content}},{interstitialViewModel:_.a2m})))},"je");
f2H.idomCompat=!0;_.qm(f2H,"yt-player-interstitial-renderer",{props:{data:_.x2}});var qX=function(){var S=_.w.apply(this,arguments)||this;S.noBackground=!1;S.compact=!1;S.actionMap={"yt-update-player-error-message-command":"onUpdatePlayerErrorMessageCommand_"};return S};
_.r(qX,_.w);qX.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"}}}};
qX.prototype.onUpdatePlayerErrorMessageCommand_=function(S){if(_.b(S,HDI)){var p;if(S=(p=_.b(S,HDI))==null?void 0:p.newPlayerErrorMessageRenderer)this.data=S}};
_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],qX.prototype,"ytRendererBehavior",void 0);_.x([_.F(_.qH.YtRendererstamperBehavior),_.E("design:type",Object)],qX.prototype,"ytRendererstamperBehavior",void 0);_.x([_.F(_.Aj.YtActionHandlerBehavior),_.E("design:type",Object)],qX.prototype,"ytActionHandlerBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],qX.prototype,"data",void 0);_.x([_.g(),_.E("design:type",Object)],qX.prototype,"status",void 0);
_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],qX.prototype,"noBackground",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],qX.prototype,"compact",void 0);qX=_.x([_.FB({is:"yt-playability-error-supported-renderers",disableElementRegistration:!0})],qX);
var CUm=_.pz()(qX,"yt-playability-error-supported-renderers",function(){if(eic===void 0){var S=document.createElement("template");_.h(S,'\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');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);var p=S.content,U=p.insertBefore;s7m===void 0&&(s7m=document.createElement("template"));var Y=s7m;U.call(p,Y.content.cloneNode(!0),S.content.firstChild);eic=S}S=eic;return S},{allowedProps:["compact",
"data","noBackground","status"],mode:2});var thd=void 0,S4u=void 0;var Y4u=new Huj;var x6l=function(S){this.store=S;this.s9t=new _.QOt},dlk=function(S,p,U){var Y,L;
if(!(L=((Y=p.playabilityStatus)==null?void 0:Y.status)!=="OK")){S=S.store;var I;L=p.offlineState&&((I=p.videoDetails)==null?0:I.videoId)?_.y("enable_pl_r_c_cd")?RKX(S.getState().entities,p.videoDetails.videoId):!!SOR(S.getState().entities,p.videoDetails.videoId):!1}if(L)return!0;L=V_R(p);if(L===1){if(_.y("ab_v_vid_sig")){var V,W=(V=p.videoDetails)==null?void 0:V.videoId;if(!W||!U||W!==U){var O;p=new _.y7("282054944_vid",{pDU:U,hHA:(O=p.videoDetails)==null?void 0:O.videoId});_.ZP(p)}}return!0}slR=
0;var D,z;O=(W=p.auxiliaryUi)==null?void 0:(D=W.messageRenderers)==null?void 0:(z=D.bkaEnforcementMessageViewModel)==null?void 0:z.displayType;if(L!==3&&(O==="ENFORCEMENT_MESSAGE_VIEW_MODEL_DISPLAY_TYPE_PLAYER"||O==="ENFORCEMENT_MESSAGE_VIEW_MODEL_DISPLAY_TYPE_POPUP"))return!0;O={reason:_.Aa(_.Oh("TRY_AGAIN_LATER",void 0,"Something went wrong. Please try again later.")),proceedButton:{buttonRenderer:_.y("ks_something_wrong_learn_more")?P_e("RELOAD_PAGE",153785):{style:"STYLE_OVERLAY",size:"SIZE_DEFAULT",
text:_.Aa(_.Oh("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:_.Aa("282054944")};Ewj(p,{playerErrorMessageRenderer:O});return!1},VIw=function(S,p){if(BkX(p)){_.Tv(1,!0);
var U=(U=BkX(p))&&_.cmG()?U:void 0;U?(Ewj(p,{enforcementMessageViewModel:U}),S.s9t.increment("IN_PLAYER"),_.Tv(5)):(S.s9t.increment("SKIP_DISPLAY"),_.Tv(2))}},Ewj=function(S,p){S.playabilityStatus=Object.assign({},S.playabilityStatus,{status:"ERROR",
errorScreen:p});S.videoDetails=void 0};
x6l.prototype.handleResponse=function(S,p){if(S.playabilityStatus){var U,Y,L,I=(p==null?void 0:(U=p.innerTubeRequest)==null?void 0:U.videoId)||(p==null?void 0:(Y=p.innerTubeRequest)==null?void 0:(L=Y.playerRequest)==null?void 0:L.videoId);dlk(this,S,I)&&VIw(this,S)}};
x6l[vF]=[M_];var MIe=new _.$g("ADBLOCK_DETECTION_SERVICE_TOKEN");var NP=function(S){this.jDG=S};
NP.prototype.bindInnertubeChallengeFetcher=function(S){this.jDG.bicf(S)};
NP.prototype.registerChallengeFetchedCallback=function(S){this.jDG.bcr(S)};
NP.prototype.getLatestChallengeResponse=function(){return this.jDG.blc()};var $6I;_.AP=function(S,p,U){var Y=this;this.network=S;this.options=p;this.networkStatusManager=U;this.yl=null;if(p.useBotguardEverywhere){var L=new _.MI;this.yl=L.promise;_.UX.ytAtRC&&_.HG(_.PA,function(){var I,V;return _.T(function(W){if(W.nextAddress==1){if(!_.UX.ytAtRC)return W.return();I=m6l(null);return _.k(W,Y.cD(I),2)}V=W.yieldResult;_.UX.ytAtRC&&_.UX.ytAtRC(JSON.stringify(V));_.OV(W)})});
H1u().then(function(I){var V,W,O,D;return _.T(function(z){if(z.nextAddress==1)return I.bindInnertubeChallengeFetcher(function(Q){return Y.cD(m6l(Q))}),_.k(z,P9w(),2);
V=z.yieldResult;W=I.getLatestChallengeResponse();O=W.challenge;if(!O)throw Error("ei");D={challenge:O,aT:iO(O),rX:V,bgChallenge:new vI};L.resolve(D);I.registerChallengeFetchedCallback(function(Q){Q=Q.challenge;if(!Q)throw Error("fi");Q={challenge:Q,aT:iO(Q),rX:V,bgChallenge:new vI};Y.yl=Promise.resolve(Q)});
_.OV(z)})})}else p.preload&&owH(this,new Promise(function(I){_.bQ(_.PA,function(){I(vwe(Y))},0)}))};
$6I=function(S){var p={preload:!0,useBotguardEverywhere:_.y("attmusi")},U=!1;if(typeof p==="boolean")var Y={preload:p};else typeof p==="undefined"?Y={preload:!0}:(Y=p,U=!!p.dqK);p=U?void 0:new _.EP;_.AP.instance=new _.AP(S,Y,p);return _.AP.instance};
_.AP.prototype.uAa=function(){var S=this;return _.T(function(p){return p.nextAddress==1?_.k(p,Promise.race([S.yl,null]),2):p.return(!!p.yieldResult)})};
_.AP.prototype.rKC=function(S,p,U){var Y=this,L,I,V;return _.T(function(W){Y.yl===null&&owH(Y,vwe(Y));L=!1;I={};V=function(){var O,D,z;return _.T(function(Q){switch(Q.nextAddress){case 1:return _.k(Q,Y.yl,2);case 2:O=Q.yieldResult;I.challenge=O.challenge;if(!O.rX){"c1a"in O.aT&&(I.error="ATTESTATION_ERROR_VM_NOT_INITIALIZED");Q.jumpTo(3);break}D=Object.assign({},{c:O.challenge,e:S},p);_.M2(Q,4);L=!0;if(_.y("attbs")&&!_.y("attmusi")){z=_.DJl(O.rX,{rM:D});Q.jumpTo(6);break}return _.k(Q,O.rX.snapshot({rM:D}),
7);case 7:z=Q.yieldResult;case 6:z?I.webResponse=z:I.error="ATTESTATION_ERROR_VM_NO_RESPONSE";_.CA(Q,3);break;case 4:_.W4(Q),I.error="ATTESTATION_ERROR_VM_INTERNAL_ERROR";case 3:if(S==="ENGAGEMENT_TYPE_PLAYBACK"){var J=O.aT,K={};if(J.c6a){var G=Number(_.g7("DCLKSTAT",0));K.reportingStatus=String(Number(J.c)^(isNaN(G)?0:G))}J.c6b&&(K.broadSpectrumDetectionResult=String(Number(J.c)^Number(_.g7("CATSTAT",0))));I.adblockReporting=K}return Q.return(I)}})};
return W.return(Promise.race([V(),inl(U,function(){var O=Object.assign({},I);L&&(O.error="ATTESTATION_ERROR_VM_TIMEOUT");return O})]))})};
var m6l=function(S){var p={engagementType:"ENGAGEMENT_TYPE_UNBOUND"};S&&(p.interpreterHash=S);return p},vwe=function(S,p){p=p===void 0?0:p;
var U,Y,L,I,V,W,O,D,z,Q,J,K;return _.T(function(G){switch(G.nextAddress){case 1:U=m6l(QKt().nyk);if(_.y("att_fet_ks"))return _.M2(G,7),_.k(G,S.cD(U),9);_.M2(G,4);return _.k(G,Njc(S,U),6);case 6:V=G.yieldResult;L=V.eor;I=V.ycq;Y=V;_.CA(G,3);break;case 4:return _.W4(G),_.eP(Error("gi`"+p)),BjQ(S,864E5),G.return({challenge:"",aT:{},rX:void 0,bgChallenge:void 0});case 9:Y=G.yieldResult;if(!Y)throw Error("hi");if(!Y.challenge)throw Error("ii");L=Y.challenge;I=iO(L);if("c1a"in I&&(!Y.bgChallenge||!Y.bgChallenge.program))throw Error("ji");
_.CA(G,3);break;case 7:W=_.W4(G);_.eP(W);p++;if(p>=5)return _.eP(Error("gi`"+p)),BjQ(S,864E5),G.return({challenge:"",aT:{},rX:void 0,bgChallenge:void 0});O=1E3*Math.pow(2,p-1)+Math.random()*1E3;return G.return(new Promise(function(X){_.bQ(_.PA,function(){X(vwe(S,p))},O)}));
case 3:D=k8G(I);BjQ(S,D*1E3);z=void 0;if(!("c1a"in I&&Y.bgChallenge)){G.jumpTo(10);break}Q=O1e(Y.bgChallenge);_.M2(G,11);return _.k(G,JAl(QKt(),Q),13);case 13:_.CA(G,12);break;case 11:return J=_.W4(G),_.eP(J),G.return({challenge:L,aT:I,rX:z,bgChallenge:Q});case 12:return _.M2(G,14),z=new _.rM({challenge:Q,lG:{sQ:"aGIf"}}),_.k(G,z.iaC,16);case 16:_.CA(G,10);break;case 14:K=_.W4(G),_.eP(K),z=void 0;case 10:return G.return({challenge:L,aT:I,rX:z,bgChallenge:Q})}})};
_.AP.prototype.cD=function(S){var p=this,U;return _.T(function(Y){U=p.networkStatusManager;if(!U||U.isNetworkAvailable())return Y.return(p.network.cD(S));_.Pd("att_pna",void 0,"attestation_challenge_fetch");return Y.return(new Promise(function(L){U.listenOnce("publicytnetworkstatus-online",function(){p.network.cD(S).then(L)})}))})};
var q7j=function(S){if(!S)throw Error("hi");if(!S.challenge)throw Error("ii");var p=S.challenge,U=iO(p);if("c1a"in U&&(!S.bgChallenge||!S.bgChallenge.program))throw Error("ji");return Object.assign({},S,{eor:p,ycq:U})},Njc=function(S,p){var U,Y,L,I,V;
return _.T(function(W){switch(W.nextAddress){case 1:U=void 0,Y=0,L={};case 2:if(!(Y<5)){W.jumpTo(4);break}if(!(Y>0)){W.jumpTo(5);break}L.puB=1E3*Math.pow(2,Y-1)+Math.random()*1E3;return _.k(W,new Promise(function(O){return function(D){_.bQ(_.PA,function(){D(void 0)},O.puB)}}(L)),5);
case 5:return _.M2(W,7),_.k(W,S.cD(p),9);case 9:return I=W.yieldResult,W.return(q7j(I));case 7:U=V=_.W4(W),V instanceof Error&&_.eP(V);case 8:Y++;L={puB:void 0};W.jumpTo(2);break;case 4:throw U;}})},owH=function(S,p){S.yl=p},A$t=function(S){var p,U,Y;
return _.T(function(L){if(L.nextAddress==1)return _.k(L,Promise.race([S.yl,null]),2);p=L.yieldResult;var I=vwe(S);S.yl=I;(U=p)==null||(Y=U.rX)==null||Y.dispose();_.OV(L)})},BjQ=function(S,p){var U=Date.now()+p,Y=function(){var L;
return _.T(function(I){L=U-Date.now();return L<1E3?_.k(I,A$t(S),0):(_.bQ(_.PA,Y,Math.min(L,6E4)),I.jumpTo(0))})};
Y()},inl=function(S,p){return new Promise(function(U){_.bQ(_.PA,function(){U(p())},S)})};var tGc=function(){};
tGc.prototype.processContext=function(S){var p=_.AP.instance;if(!p)return _.ag();var U=JTe(S);return U?new lB(p.rKC(U,Qod(S),500).then(function(Y){var L;(S==null?0:(L=S.innerTubeRequest)==null?0:L.context)||(S.innerTubeRequest.context={});L=S.innerTubeRequest.context;L.request||(L.request={});L.request.attestationResponseData=Y})):_.ag()};var c$c=function(S){this.innertubeTransportService=S};
c$c.prototype.cD=function(S){_.Pd("att_fsr",void 0,"attestation_challenge_fetch");return _.R6(this.innertubeTransportService,S,_.$l(_.kEq)).then(function(p){_.Pd("att_frr",void 0,"attestation_challenge_fetch");return p})};_.S_w=function(S){this.innertubeTransportService=S};var p5l=new _.$g("ATTESTATION_ASYNC_CONTEXT_PROCESSOR");var U7E=function(){},LWm=function(S,p,U,Y,L){var I=_.g7("YPC_MB_URL");
_.ATk(I).then(function(){Y_m(I,S,p,U,Y,L)})},Y_m=function(S,p,U,Y,L,I){try{var V=payments.business.integration,W=payments.business.integration.Style.create().withMaterialDesignStyle(),O=V.mashupMode.popup("purchaseManagerDivId").usingDraggableDialog().usingPreferredWidth(600);
_.y("enable_window_constrained_buy_flow_dialog")&&(O=O.usingPopupStyle("windowConstrained"));I&&(O=O.usingCloseCallback(I));var D=U?U:_.g7("YPC_GB_LANGUAGE"),z=_.g7("SESSION_INDEX");V.bootstrap.fromPaymentsUrl(S);V.bootstrap.asMashupMode(O).usingGaiaIndex(z).usingLocale(D).usingStyle(W).usingDefaultActivityStatusChangeHandler().inStandaloneContext(V.standaloneContextAuthId.forGaia()).purchaseManager(p,function(Q){Y&&Y(Q)}).load(void 0,L)}catch(Q){throw L&&L(Q),_.ZP(Q),Q;
}};var MEl=new _.$g("PURCHASE_MANAGER_TOKEN");var IXd=function(){var S=this;this.videos=[];this.recommendedVideos=[];this.showRefreshPill=this.continuationsPresent=!1;this.clientHeight=window.innerHeight;this.TEST_ONLY={getVideos:function(){return S.videos},
getContinuationsPresent:function(){return S.continuationsPresent},
setVideos:function(p){S.videos=p},
getRecommendedVideos:function(){return S.recommendedVideos},
setRecommendedVideos:function(p){S.recommendedVideos=p}}};
IXd.prototype.addVideos=function(S){S&&(this.videos=S.filter(function(p){return!!_.KMX(p)}).map(function(p){var U=_.KMX(p);
a:{var Y;if(p.playlistVideoRenderer&&((Y=p.playlistVideoRenderer)==null?0:Y.voteSortTiebreaker))var L=p.playlistVideoRenderer.voteSortTiebreaker;else{if(_.b(p,qP)){var I;if(Y=(L=_.b(p,qP))==null?void 0:(I=L.playlistItemData)==null?void 0:I.voteSortTiebreaker){L=Y;break a}}L=""}}return{itemId:U,videoId:_.rTw(p),voteCount:_.G8E(p),voteSortTiebreaker:L}}),this.continuationsPresent=!!_.b(S[S.length-1],_.SC))};
var d7t=function(S,p){return S.videos.findIndex(function(U){return U.itemId===p})},VEm=function(S,p){return S.recommendedVideos.findIndex(function(U){return U.itemId===p})},Tpj=function(S){S={openPopupAction:{popupType:"TOAST",
popup:{notificationActionRenderer:{responseText:{simpleText:S}}}}};_.tW().resolve(_.cQ).resolveCommand(S)};var WWm=function(){IXd.apply(this,arguments)};
_.r(WWm,IXd);
var cmj=function(S,p,U,Y){if(!S.parentElem)throw Error("oi");var L=d7t(S,p);L===-1&&(L=VEm(S,p),L=L!==-1?L+S.videos.length:-1);if(L===-1)throw Error("pi");var I=L>=S.videos.length?S.recommendedVideos[L-S.videos.length]:S.videos[L];I.voteCount=U;I.voteSortTiebreaker=Date.now().toString();L>=S.videos.length?S.recommendedVideos.splice(L-S.videos.length,1):S.videos.splice(L,1);var V=S.videos;for(var W=0,O=V.length-1;W<=O;){var D=Math.floor((W+O)/2);if(V[D].voteCount<I.voteCount)O=D-1;else if(V[D].voteCount>I.voteCount)W=
D+1;else{a:{var z=I.voteSortTiebreaker;var Q=V[D].voteSortTiebreaker;if(z.length!==Q.length)z=z.length>Q.length;else{for(var J=0;J<z.length;J++){var K=z.charCodeAt(J),G=Q.charCodeAt(J);if(K>G){z=!0;break a}if(K<G)break}z=!1}}z?O=D-1:W=D+1}}V=W;if(V===-1)throw Error("qi");S.videos.splice(V,0,I);L!==V&&Owm(S,L,V,p,U,Y)},Owm=function(S,p,U,Y,L,I){var V,W=(V=S.parentElem)==null?void 0:V.children,O=Math.min(p,U),D=Math.max(p,U);
if(W)for(V=O;V<=D;V++)W[V].style.viewTransitionName="item-"+String(V);document.startViewTransition(function(){if(S.parentElem){var z=S.parentElem.children;if(!(!z||p<0||p>=z.length||U<0||U>=z.length)){var Q=z[p];if(Q){Q.remove();S.showRefreshPill=U>=S.videos.length-1&&S.continuationsPresent;if(!S.showRefreshPill){z=z[U]||null;var J;(J=S.parentElem)==null||J.insertBefore(Q,z)}_.cv(S.parentElem,"yt-update-video-data-voting-animation",{toIdx:U,itemId:Y,newVoteCount:L,voteStatus:I,hideItem:S.showRefreshPill})}}}}).finished.then(function(){if(W)for(var z=
O;z<=D;z++)W[z].style.viewTransitionName="";
if(S.showRefreshPill)Tpj(_.Oh("VOTING_ANIMATION_CONTINUATION_TOAST_MESSAGE"));else{var Q;if(Q=z=(Q=S.parentElem)==null?void 0:Q.children[U])Q=z.getBoundingClientRect(),z=Q.bottom,Q=!(Q.top>=0&&z<=S.clientHeight);Q&&(Q=_.kd(p>U?"VOTING_ANIMATION_UP_TOAST_MESSAGE":"VOTING_ANIMATION_DOWN_TOAST_MESSAGE",Math.abs(p-U)),Tpj(Q))}})};var D7t=function(S,p){var U=this;S?this.innertubeTransportServicePromise=Promise.resolve(S):p&&(this.innertubeTransportServicePromise=p(),this.innertubeTransportServicePromise.catch(function(){}));
this.reportMiniAppValueRateLimiter=new wQ(3E3,function(Y){return k6l(U,Y)},0);
this.validateMiniAppVideoIdRateLimiter=new wQ(3E3,function(Y){return Hwj(U,Y)},1)},NAm=function(S,p){S.JSC$15022_miniAppId=p;
S.reportMiniAppValueRateLimiter=new wQ(3E3,function(U){return k6l(S,U)},0);
S.validateMiniAppVideoIdRateLimiter=new wQ(3E3,function(U){return Hwj(S,U)},1)},q5d=function(S,p){var U;
return _.T(function(Y){if(Y.nextAddress==1)return _.k(Y,S.reportMiniAppValueRateLimiter.call(p),2);U=Y.yieldResult;return Y.return([U,p])})},k6l=function(S,p){var U,Y,L,I,V,W,O;
return _.T(function(D){switch(D.nextAddress){case 1:return _.k(D,S.innertubeTransportServicePromise,2);case 2:return U=D.yieldResult,Y=_.$l(yjH),L=Date.now(),I={externalPostId:S.JSC$15022_miniAppId,userStatValue:{statKey:"high_score",timestamp:{seconds:""+Math.floor(L/1E3),nanos:Math.round(L%1E3*1E6)},intValue:""+p}},_.M2(D,3),_.k(D,_.R6(U,I,Y),5);case 5:V=D.yieldResult;_.CA(D,4);break;case 3:throw W=_.W4(D),W;case 4:if(V){if("error"in V&&V.error)throw V.error;if(V.errorMetadata)throw Error("ri`"+
V.errorMetadata.status);if(O=V.userStatResult)return D.return(O);throw Error("si");}throw Error("ti");}})},tIc=function(S){var p,U,Y,L,I;
_.T(function(V){switch(V.nextAddress){case 1:return _.k(V,S.innertubeTransportServicePromise,2);case 2:return p=V.yieldResult,U=_.$l(yjH),Y={externalPostId:S.JSC$15022_miniAppId,userSettingsUpdate:{isAllowNetworkAcked:!0}},_.M2(V,3),_.k(V,_.R6(p,Y,U),5);case 5:L=V.yieldResult;_.CA(V,4);break;case 3:throw I=_.W4(V),I;case 4:if(L==null)throw Error("ti");if("error"in L&&L.error)throw L.error;if(L.errorMetadata)throw Error("ri`"+L.errorMetadata.status);_.OV(V)}})};
D7t.prototype.flush=function(){var S=this;return _.T(function(p){return p.nextAddress==1?_.k(p,S.reportMiniAppValueRateLimiter.flush(),2):_.k(p,S.validateMiniAppVideoIdRateLimiter.flush(),0)})};
var AvH=function(S,p){return _.T(function(U){return U.nextAddress==1?_.k(U,S.validateMiniAppVideoIdRateLimiter.call(p),2):U.return(U.yieldResult)})},Hwj=function(S,p){var U,Y,L,I,V,W;
return _.T(function(O){switch(O.nextAddress){case 1:return _.k(O,S.innertubeTransportServicePromise,2);case 2:return U=O.yieldResult,Y=_.$l(O$t),L={videoId:p},_.M2(O,3),_.k(O,_.R6(U,L,Y),5);case 5:I=O.yieldResult;_.CA(O,4);break;case 3:throw V=_.W4(O),V;case 4:if(I){if("error"in I&&I.error)throw I.error;if(I.errorMetadata)throw Error("ri`"+I.errorMetadata.status);if(W=I.playabilityStatus)return O.return(W.status);throw Error("ui");}throw Error("ti");}})};
D7t[vF]=[_.AW(_.F3),_.AW(otc)];var zgm=function(){this.clientData=new Map};
zgm.prototype.getData=function(S){return this.clientData.get(S)};var Qjw=function(S){this.store=S};
Qjw.prototype.handleResponse=function(S){(S=_.b(S.frameworkUpdates,Cs))&&_.Oc(S,this.store)};
Qjw[vF]=[_.XF];var nHt=new _.$g("ENTITIES_RESPONSE_PROCESSOR_TOKEN");var Jwt={account_advanced:[[0,1,155]],account_box:[[0,1,24],[1,1,24]],account_notifications:[[0,1,155]],account_playback:[[0,1,155]],account_privacy:[[0,1,155]],account_settings:[[0,1,155]],account_sharing:[[0,1,155]],admin_panel_settings:[[1,1,24]],ameba:[[0,1,60]],"arrow-back":[[1,1,24,!0]],"arrow-forward":[[1,1,24,!0]],arrow_drop_down:[[1,1,24]],arrow_drop_up:[[1,1,24]],artwork:[[0,1,140]],bebo:[[0,1,60]],blogger:[[0,1,60]],chrome_icon:[[0,1,192]],collections:[[0,1,24]],countdown_to_close:[[0,
1,100]],countdown_to_close_digit:[[0,1,100]],creation_post:[[0,1,24],[1,1,24]],creator_studio_red_logo:[[0,2,24]],cyworld:[[0,1,60]],dark_theme:[[0,1,24],[1,1,24]],digg:[[0,1,60]],email:[[0,1,60]],embed:[[0,1,60]],emoji_activities:[[0,1,24]],emoji_food:[[0,1,24]],emoji_nature:[[0,1,24]],emoji_symbols:[[0,1,24]],emoji_travel:[[0,1,24]],empty_search:[[0,1,230]],equalizer:[[0,1,24]],face_filled_happy:[[0,1,36]],face_filled_meh:[[0,1,36]],face_filled_sad:[[0,1,36]],face_filled_unhappy:[[0,1,36]],face_filled_very_happy:[[0,
1,36]],face_outlined_happy:[[1,1,36]],face_outlined_meh:[[1,1,36]],face_outlined_sad:[[1,1,36]],face_outlined_unhappy:[[1,1,36]],face_outlined_very_happy:[[1,1,36]],facebook:[[0,1,60]],fotka:[[0,1,60]],g_translate:[[1,1,24]],game_console_dpad:[[0,1,24]],game_console_face_buttons:[[0,1,24]],goo:[[0,1,60]],google:[[0,1,24]],hashtag_landing_page_empty:[[0,1,200]],hashtag_landing_page_empty_dark_mode:[[0,1,200]],hashtag_landing_page_error:[[0,1,300]],hashtag_landing_page_error_dark_mode:[[0,1,300]],hi5:[[0,
1,60]],kakao:[[0,1,60]],"keyboard-arrow-down":[[1,1,24]],"keyboard-arrow-up":[[1,1,24]],language:[[0,1,24],[1,1,24]],library_remove:[[1,1,24]],linkedin:[[0,1,60]],livejournal:[[0,1,60]],member:[[1,2,16]],meneame:[[0,1,60]],mixi:[[0,1,60]],moderator:[[1,1,16]],money_fill:[[0,3,24]],music:[[1,1,24]],myspace:[[0,1,60]],naver:[[0,1,60]],odnoklassniki:[[0,1,60]],offline_download:[[0,1,24]],offline_downloading_eighty:[[0,1,24]],offline_downloading_forty:[[0,1,24]],offline_downloading_sixty:[[0,1,24]],offline_downloading_spinner:[[0,
1,24]],offline_downloading_twenty:[[0,1,24]],offline_downloading_zero:[[0,1,24]],offline_no_content:[[0,1,192]],offline_pause:[[1,1,24]],offline_pin:[[0,1,24]],open_in_panel:[[0,1,24]],owner:[[1,1,16]],pinterest:[[0,1,60]],"play-arrow":[[0,1,24]],play_disabled:[[0,1,24]],premium:[[0,1,14]],premium_standalone:[[0,2,24]],premium_standalone_cairo:[[0,1,24]],"radio-button-unchecked":[[1,1,24]],rakuten:[[0,1,60]],reddit:[[0,2,192]],refresh:[[1,1,24]],schedule_fanzone:[[0,1,100]],screen_light:[[1,1,24]],
search_prominent:[[1,1,24]],"shorts-comment":[[0,2,32]],"shorts-dislike":[[0,2,32]],"shorts-like":[[0,2,32]],"shorts-pause":[[0,1,24]],"shorts-share":[[0,2,32]],skyblog:[[0,1,60]],skype:[[0,1,60]],sms:[[0,1,24]],sort:[[0,1,24]],spark:[[0,1,24],[1,1,24]],spark_search:[[0,1,24]],stumbleupon:[[0,1,60]],subdirectory_arrow_right:[[1,1,24]],tuenti:[[0,1,60]],tumblr:[[0,1,60]],twitter:[[0,3,192]],unplugged_logo:[[0,2,24]],verified:[[1,2,16]],vertical_align_top:[[1,1,24]],video_call:[[0,1,24]],view_list:[[0,
1,24]],view_module:[[0,1,24],[1,1,24]],vkontakte:[[0,1,60]],"volume-off":[[0,1,24]],"volume-up":[[0,1,24]],watermark:[[0,1,110]],waveform:[[1,1,24]],web_system_activity_dialog:[[0,1,60]],weibo:[[0,1,60]],whatsapp:[[0,1,60]],wykop:[[0,1,60]],yahoo:[[0,1,60]],yahoo_japan:[[0,1,192]],youtube_community_post:[[0,1,60]],youtube_community_repost:[[0,1,60]],youtube_kids_round:[[0,2,24]],youtube_logo:[[0,1,24]],youtube_music:[[0,2,24]],youtube_round:[[0,2,24]],youtube_shorts_brand_24:[[0,2,24]],youtube_shorts_fill_no_triangle_red_16:[[0,
1,16]],"yt-logo-red-updated":[[0,3,24]],"yt-logo-updated":[[0,3,24]]};var ywE=new _.$g("ICON_SET_TOKEN"),KWQ=new _.$g("ICON_URL_PROVIDER_TOKEN"),bwP=new _.$g("PREFETCH_ICONS_TOKEN"),jjt=new _.$g("ICON_MAP_FN_TOKEN");var tP={},rwP=(tP.ACCESS_TIME="clock",tP.ACCOUNT_BOX="person_account",tP.ACCOUNT_BOX_CAIRO="person_account_cairo",tP.ACCOUNT_CIRCLE="person_circle",tP.ACCOUNT_CIRCLE_CAIRO="person_circle_cairo",tP.ACCOUNT_LINKED="account_link_success",tP.ACCOUNT_UNLINKED="account_link",tP.ADD_FRIEND="people",tP.ADD_MODERATOR="shield_add",tP.ADD_TO_LIBRARY=tl("add"),tP.ADD_TO_PLAYLIST="add",tP.ADD_TO_QUEUE_TAIL="list_queue",tP.ADD_TO_REMOTE_QUEUE="list_music",tP.ADD_TO_WATCH_LATER="clock",tP.ADD_VIDEO_LINK="film_strip_add",
tP.ALERT_WARN_RED="alert_triangle",tP.ARROW_BACK="arrow_left",tP.ARROW_DIAGONAL_UP_RIGHT_FILLED="arrow_diagonal_up_right",tP.ARROW_DROP_DOWN="chevron_down",tP.ARROW_DROP_UP="chevron_up",tP.ARROW_FORWARD="arrow_right",tP.AUDIOTRACK="audio",tP.AUTO_AWESOME="sparkle",tP.AVATAR_ANONYMOUS="person_circle",tP.AVATAR_LOGGED_OUT="person_circle",tP.BACK="arrow_left",tP.BAR_CHART="bar_graph",tP.BLOCK="slash_circle_left",tP.BLOCK_USER="slash_circle_left",tP.BOOKMARK_BORDER="bookmark",tP.BREAKING_NEWS_ALT_1="article_alert",
tP.BROADCAST_CAIRO="podcast_cairo",tP.BUG_REPORT="bug",tP.CAMERA_ALT="camera",tP.CAMPAIGN="megaphone",tP.CANCEL="x_circle",tP.CAPTIONS="closed_caption",tP.CAST_OUTLINE="chromecast",tP.CHANNEL_NOTIFICATION_PREFERENCE_OFF="bell",tP.CHANNEL_NOTIFICATION_PREFERENCE_ON="bell_on",tP.CHAT="message_bubble_left",tP.CHAT_BUBBLE="message_bubble_empty",tP.CHAT_SPARK="spark_message_bubble_left",tP.CHECK_BOX_OUTLINE_BLANK="box_empty",tP.CHECK_CIRCLE_OUTLINE="check_circle",tP.CHECK_CIRCLE_THICK="check_circle",tP.CLARIFY=
"article_clarify",tP.CLOSED_CAPTION_SELECTED="closed_caption",tP.CLOSE="x_mark",tP.CLOUD_UPLOAD="cloud_arrow_up",tP.COLLAPSE="chevron_up",tP.COLLAPSE_CAIRO="chevron_up_cairo",tP.COLLECTION="layers",tP.COLOR_LENS="palette",tP.COMMENT="message_bubble_right",tP.CONSENT_SHIELD="person_shield",tP.CONTENT_CUT="scissors",tP.CONTENT_CUT_CAIRO="scissors_cairo",tP.COURSE=_.y("web_enable_course_icon_update")?"creator_academy":"lightbulb",tP.COURSE_CAIRO=_.y("web_enable_course_icon_update")?"creator_academy_cairo":
"lightbulb_cairo",tP.CREATION_LIVE="radar_live",tP.CREATION_POST="box_pencil",tP.CREATION_UPLOAD="my_videos",tP.CREATION_UPLOAD_RED="upload",tP.CREATOR_METADATA_MONETIZATION_OFF="dollar_sign_off",tP.CREATOR_STUDIO="youtube_studio",tP.DASHBOARD="grid_asymmetrical",tP.DELETE="trash_can",tP.DELETE_SWEEP="trash_can",tP.DESKTOP="laptop",tP.DISLIKE="thumb_down",tP.DISLIKE_SELECTED="thumb_down",tP.DISMISSAL="x_mark",tP.DISMISS_QUEUE="list_remove",tP.DONE_ALL="check_double",tP.DOWN_ARROW="arrow_down",tP.DO_NOT_DISTURB=
"slash_circle_left",tP.DRAFT="paper_corner_folded",tP.DRAG_HANDLE="bars_2",tP.EDIT="pencil",tP.EMOJI="face_very_happy",tP.EMOJI_FLAGS="flag",tP.EMOJI_OBJECTS="lightbulb",tP.EMOJI_PEOPLE="face_very_happy",tP.EMOJI_RECENT="clock",tP.EMPTY_HEART="heart",tP.EMPTY_LIKE="thumb_up",tP.ERROR_BLACK="alert_circle",tP.ERROR_OUTLINE="alert_circle",tP.EXIT_APP="arrow_in",tP.EXIT_TO_APP="arrow_in",tP.EXPAND="chevron_down",tP.EXPAND_ALL="chevron_expand",tP.EXPAND_CAIRO="chevron_down_cairo",tP.EXPAND_LESS="chevron_up",
tP.EXPAND_MORE="chevron_down",tP.EXPLORE="compass",tP.EXPLORE_DESTINATION="compass",tP.EXTERNAL_LINK="open_new",tP.FAB_UPLOAD="upload",tP.FACE_HAPPY_OUTLINE="face_happy",tP.FACT_CHECK="article_check",tP.FASHION_LOGO="fashion",tP.FASHION_LOGO_CAIRO="fashion_cairo",tP.FAVORITE="heart",tP.FEEDBACK="message_bubble_alert",tP.FEEDBACK_CAIRO="message_bubble_alert_cairo",tP.FILL_ARROW_SOLID_DOWN_16="arrow_solid_down",tP.FILL_ARROW_SOLID_UP_16="arrow_solid_up",tP.FILL_DOLLAR_SIGN_HEART_12="dollar_sign_heart",
tP.FILTER="menu_filter",tP.FIRST_PAGE="chevron_first",tP.FLAG="flag",tP.FULL_HEART="heart",tP.GAME_CONSOLE_DPAD="game_console_dpad",tP.GAME_CONSOLE_FACE_BUTTONS="game_console_face_buttons",tP.GAMING_LOGO="gaming",tP.GAMING_LOGO_CAIRO="gaming_cairo",tP.GO_TO_PAGE="arrow_right",tP.GROUPS="people_group",tP.HAPPY="face_happy",tP.HEALTH_AND_SAFETY="shield_plus",tP.HELP="question_circle",tP.HELP_CAIRO="question_circle_cairo",tP.HELP_OUTLINE="question_circle",tP.HIDE="slash_circle_left",tP.IMAGE="image",
tP.INFINITY_ICON="infinity",tP.INFO="info_circle",tP.INFO_OUTLINE="info_circle",tP.INSERT_CHART_OUTLINED="bar_graph_box_vertical",tP.INSERT_PHOTO="image",tP.KEEP="pin",tP.KEEP_OFF="pin_off",tP.KEYBOARD="keyboard",tP.KEYBOARD_ARROW_DOWN="chevron_down",tP.KEYBOARD_ARROW_UP="chevron_up",tP.KIDS_BLOCK="slash_circle_left",tP.LANGUAGE="globe",tP.LAST_PAGE="chevron_last",tP.LAUNCH="open_new",tP.LEARNING="lightbulb",tP.LEARNING_CAIRO="lightbulb_cairo",tP.LIBRARY_ADD=tl("library_add"),tP.LIBRARY_OUTLINE="library",
tP.LIBRARY_REMOVE=tl(),tP.LIGHTBULB_SPARK_OUTLINE="lightbulb_spark",tP.LIKES_PLAYLIST="thumb_up",tP.LIKES_PLAYLIST_CAIRO="thumb_up_cairo",tP.LIKE="thumb_up",tP.LIKE_SELECTED="thumb_up",tP.LIVE="radar_live",tP.LIVE_CAIRO="radar_live_cairo",tP.LIVE_UNLISTED="link",tP.LOCATION_ON="location_point",tP.LOCATION_PIN="location_point",tP.LOOP="arrow_repeat",tP.LOOP_ACTIVE="arrow_repeat",tP.LOOP_ONE="arrow_repeat_1",tP.LOOP_ONE_ACTIVE="arrow_repeat_1",tP.MEH="face_meh",tP.MEMBERS_ONLY_MODE_OFF="message_bubble_left",
tP.MESSAGE="message_bubble_left",tP.MICROPHONE_ON="mic",tP.MIX="youtube_mix",tP.MONETIZATION_ON="dollar_sign_circle",tP.MONEY_FILL="dollar_sign_container",tP.MONEY_FILL_JPY="yen_sign_container",tP.MONEY_HEART="dollar_sign_heart",tP.MORE_HORIZ="overflow_horizontal",tP.MORE_VERT="overflow_vertical",tP.MUSIC="audio",tP.MUSIC_CAIRO="audio_cairo",tP.MUSIC_NOTE_SYMBOL="music",tP.MUSIC_SHUFFLE="arrow_shuffle",tP.MY_CHANNEL="person_circle",tP.MY_LOCATION="location_point",tP.NEWS_STORY="news",tP.NEXT="chevron_right",
tP.NOTIFICATIONS="bell",tP.NOTIFICATIONS_ACTIVE="bell_on",tP.NOTIFICATIONS_CAIRO="bell_cairo",tP.NOTIFICATIONS_DONE_CHECKMARK="check",tP.NOTIFICATIONS_INBOX="bell",tP.NOTIFICATIONS_NONE="bell",tP.NOTIFICATIONS_OFF="bell_off",tP.NOT_INTERESTED="slash_circle_left",tP.OFFICIAL_ARTIST_BADGE="audio",tP.OFFLINE_CLOUD="cloud_off",tP.OFFLINE_DOWNLOAD="download",tP.OFFLINE_DOWNLOAD_CAIRO="download_cairo",tP.OFFLINE_PAUSE="pause",tP.OPEN_IN_NEW="open_new",tP.OUTLINE_ADJUST="adjust",tP.OUTLINE_ARROW_SOLID_DOWN_16=
"arrow_solid_down",tP.OUTLINE_ARROW_SOLID_UP_16="arrow_solid_up",tP.OUTLINE_BAG="bag",tP.OUTLINE_CLOCK_HALF_CIRCLE="clock_half_circle",tP.OUTLINE_OVERFLOW_HORIZONTAL_32="overflow_horizontal",tP.OUTLINE_OVERFLOW_VERTICAL="overflow_vertical",tP.OUTLINE_YOUTUBE_IMPROVE_TV="youtube_improve_tv",tP.PAID="dollar_sign",tP.PAUSE_OUTLINED="pause",tP.PAYMENT="credit_card",tP.PERSON_RADAR_FILLED="person_radar",tP.PHONE_DOWNLOAD="mobile_download",tP.PLAYABLES_LOGO="tic_tac_toe",tP.PLAYABLES_LOGO_CAIRO="tic_tac_toe_cairo",
tP.PLAYLISTS="list_play_arrow",tP.PLAYLISTS_CAIRO="list_play_arrow_cairo",tP.PLAYLIST_ADD=tl("list_add"),tP.PLAYLIST_ADD_CHECK=tl("list_check"),tP.PLAYLIST_PLAY="list_play_arrow",tP.PLAY_ALL="play_arrow",tP.PLAY_CIRCLE="play_arrow_circle",tP.PLAY_OUTLINED="play_arrow_circle",tP.PRIVACY_INFO="shield",tP.PRIVACY_PRIVATE="lock",tP.PRIVACY_PUBLIC="earth",tP.PRIVACY_UNLISTED="link",tP.PROMOTE="megaphone",tP.PURCHASES="price_tag",tP.PURCHASE_SUPER_CHAT="super_chat",tP.PURCHASE_SUPER_STICKER="super_sticker",
tP.QUESTION_ANSWER="message_bubble_question",tP.QUEUE_PLAY_LAST="list_queue_last",tP.QUEUE_PLAY_NEXT="list_play_arrow",tP.REMIX_FILLED="youtube_shorts_remix",tP.REMOVE="bar_circle",tP.REMOVE_CIRCLE="bar_circle",tP.REMOVE_CIRCLE_OUTLINE="bar_circle",tP.REMOVE_DONE="check_double_off",tP.REMOVE_FROM_HISTORY="bar_circle",tP.REMOVE_FROM_PLAYLIST="bar_circle",tP.REMOVE_MODERATOR="shield_off",tP.REPLAY="arrow_circle",tP.REPLAY_10="skip_back_10",tP.REPORT_PROBLEM="alert_triangle",tP.SAD="face_sad",tP.SAVE_PLAYLIST=
tl("library_add"),tP.SCHEDULE="clock",tP.SCHOOL="creator_academy",tP.SCREEN_FULLSCREEN="screen_full",tP.SEARCH_HISTORY="arrow_time",tP.SELL="price_tag",tP.SETTINGS="gear",tP.SETTINGS_CAIRO="gear_cairo",tP.SETTINGS_LIGHT="gear",tP.SETTINGS_MATERIAL="gear",tP.SHARE_ARROW="share",tP.SHIELD_WITH_AVATAR="person_shield",tP.SHOPPING_BAG="bag",tP.SHOPPING_BAG_CAIRO="bag_cairo",tP.SHOPPING_CART="cart",tP.SHORTS_COMMENT="youtube_shorts_message_bubble_right",tP.SHORTS_DISLIKE="youtube_shorts_thumb_down",tP.SHORTS_LIKE=
"youtube_shorts_thumb_up",tP.SHORTS_SHARE="youtube_shorts_share",tP.SHUFFLE="arrow_shuffle",tP.SLOW_MODE_OFF="message_bubble_left",tP.SOCIAL="people",tP.SORT="menu_sort",tP.SPARK_LIGHTBULB_OUTLINE="spark_lightbulb",tP.SPEED_1X="1x",tP.SPEED_1_POINT_2X="1_point_2x",tP.SPEED_1_POINT_5X="1_point_5x",tP.SPEED_1_POINT_8X="1_point_8x",tP.SPEED_2X="2x",tP.SPEED_POINT_2X="point_2x",tP.SPEED_POINT_8X="point_8x",tP.SPONSORSHIP_STAR=_.y("web_sponsorship_star_icon_killswitch")?"memberships":"star_circle",tP.STAFF_PICK=
"spotlight",tP.START_DVR="add",tP.STAR_BORDER="star",tP.STAR_CIRCLE_RIBBON_OUTLINE="star_circle_ribbon",tP.STICKER_EMOTICON="face_happy",tP.STOP_DVR="stop",tP.SUBSCRIBE="youtube_logo_icon",tP.SUBSCRIBE_PLUS="add_cairo",tP.SUBSCRIPTION_MANAGER="gear",tP.SUPERVISOR_ACCOUNT="people",tP.SUPER_CHAT_FOR_GOOD="hands_heart",tP.SWAP_HORIZ="arrow_swap_horizontal",tP.SWITCH_ACCOUNTS="person_account",tP.TAB_ACCOUNT="person",tP.TAB_ACTIVITY="bell",tP.TAB_BOOKMARK="bookmark",tP.TAB_EXPLORE="compass",tP.TAB_HOME=
"home",tP.TAB_HOME_CAIRO="home_cairo",tP.TAB_INBOX="mail",tP.TAB_LIKED="thumb_up",tP.TAB_MUSIC_PREMIUM="youtube_music",tP.TAB_SHORTS="youtube_shorts",tP.TAB_SHORTS_CAIRO="youtube_shorts_cairo",tP.TAB_SUBSCRIPTIONS="subscriptions",tP.TAB_SUBSCRIPTIONS_CAIRO="subscriptions_cairo",tP.TAB_TRENDING="fire",tP.TIMER="stopwatch",tP.TRAILER="youtube_originals",tP.TRENDING="fire",tP.TRENDING_CAIRO="fire_cairo",tP.TRENDING_UP="rating_up",tP.TROPHY="trophy",tP.TROPHY_CELEBRATIONS="fireworks",tP.TUNE="adjust",
tP.UNBLOCK_USER="bar_circle",tP.UNLIMITED="youtube_logo_icon",tP.UNPLUGGED_LIVE_GUIDE="radar_live",tP.UNPLUGGED_SPORTS="eye_off",tP.UPLOADS="library",tP.UP_ARROW="arrow_up",tP.VERTICAL_ALIGN_BOTTOM="download",tP.VERY_HAPPY="face_very_happy",tP.VERY_SAD="face_very_sad",tP.VIDEOGAME_ASSET="gaming",tP.VIDEOS="play_arrow_circle",tP.VIDEO_CALL="video_camera_add",tP.VIDEO_LIBRARY_WHITE="library",tP.VIDEO_YOUTUBE="youtube_logo_icon",tP.VIEW_LIST="list_view",tP.VIEW_LIST_CAIRO="list_view_cairo",tP.VISIBILITY=
"eye",tP.VISIBILITY_OFF="eye_off",tP.VOLUME_MUTE="volume_off",tP.VOLUME_UP="volume_on",tP.WALLPAPER="image",tP.WARNING="alert_triangle",tP.WATCH_HISTORY="arrow_time",tP.WATCH_HISTORY_CAIRO="arrow_time_cairo",tP.WATCH_LATER="clock",tP.WATCH_LATER_CAIRO="clock_cairo",tP.WATCH_RELATED_MIX="youtube_mix",tP.WHAT_TO_WATCH="home",tP.YOUTUBE_MUSIC_MONOCHROME="youtube_music",tP.YOUTUBE_MUSIC_MONOCHROME_CAIRO="youtube_music_cairo",tP.YOUTUBE_SHORTS_FILL_NO_TRIANGLE_RED_16="youtube_shorts_no_triangle",tP.YOUTUBE_SHORTS_FILL_NO_TRIANGLE_WHITE_16=
"youtube_shorts_no_triangle",tP.YOUTUBE_SHORTS_OUTLINE_24="youtube_shorts",tP.YT_OUTLINE_MUSIC_24="music",tP);var cq={},G6m=(cq.ACCESS_TIME="clock",cq.ACCOUNT_BOX="person_square",cq.ACCOUNT_BOX_CAIRO="person_square",cq.ACCOUNT_CIRCLE="person_circle",cq.ACCOUNT_CIRCLE_CAIRO="person_circle",cq.ACCOUNT_UNLINKED="account_link",cq.ADD_CIRCLE="add_circle",cq.ADD_FRIEND="person_child",cq.ADD_TO_LIBRARY="bookmark",cq.ADD_TO_PLAYLIST="add",cq.ADD_TO_QUEUE_TAIL="queue",cq.ADD_TO_REMOTE_QUEUE="playlist_audio",cq.ADD_TO_WATCH_LATER="clock",cq.ADD_VIDEO_LINK="film_strip_add",cq.ADMIN_PANEL_SETTINGS="gear",cq.ALERT_WARN_RED=
"alert_triangle",cq.ALIGN_LEFT="text_align_left",cq.ARROWS_ALERT="arrow_split_alert",cq.ARROW_BACK="arrow_left",cq.ARROW_CIRCLE="arrow_counterclockwise",cq.ARROW_CIRCLE_PLAY="replay",cq.ARROW_CIRCLE_RIGHT="arrow_clockwise",cq.ARROW_DIAGONAL="arrow_up_left",cq.ARROW_DIAGONAL_UP_RIGHT="arrow_up_right",cq.ARROW_DROP_DOWN="triangle_down",cq.ARROW_DROP_UP="triangle_up",cq.ARROW_FORWARD="arrow_right",cq.ARROW_PAUSE="pause_history",cq.ARROW_UNDO="undo",cq.ARTICLE="text_page",cq.ARTICLE_ALERT="text_page_alert",
cq.ARTICLE_CHECK="text_page_check",cq.ARTICLE_CLARIFY="text_page_info",cq.AUDIOTRACK="audio",cq.AUDIO_BADGE="audio_badge",cq.AUDIO_SURROUND="surround_sound",cq.AVATAR_ANONYMOUS="person_circle",cq.AVATAR_LOGGED_OUT="person_circle",cq.BACK="arrow_left",cq.BAR_CHART="chart_bar",cq.BAR_CIRCLE="minus_circle",cq.BAR_HORIZONTAL="minus",cq.BLOCK="circle_slash",cq.BLOCK_USER="circle_slash",cq.BOOKMARK_BORDER="bookmark",cq.BOX_OPEN_CHECK="quiz",cq.BOX_PENCIL="square_pencil",cq.BREAKING_NEWS_ALT_1="text_page_alert",
cq.BROADCAST="podcast",cq.BROADCAST_CAIRO="podcast",cq.BUG_REPORT="bug",cq.CAMERA_ALT="camera",cq.CAMPAIGN="megaphone",cq.CANCEL="x_circle",cq.CAPTIONS="closed_captions",cq.CAST_ICON="chromecast",cq.CAST_OUTLINE="chromecast",cq.CHANNEL_NOTIFICATION_PREFERENCE_OFF="bell",cq.CHANNEL_NOTIFICATION_PREFERENCE_ON="bell_waves",cq.CHAT="text_bubble",cq.CHAT_BUBBLE="bubble",cq.CHECK_BOX="check_square",cq.CHECK_BOX_OUTLINE_BLANK="square",cq.CHECK_CIRCLE_FILLED="check_circle",cq.CHECK_CIRCLE_OUTLINE="check_circle",
cq.CHECK_CIRCLE_THICK="check_circle",cq.CHECK_DOUBLE="check_done",cq.CHECK_DOUBLE_OFF="check_done_slash",cq.CHEVRON_LEFT="chevron_left",cq.CHEVRON_RIGHT="chevron_right",cq.CHEVRON_RIGHT_CAIRO="chevron_right",cq.CIRCLES_OVERLAP="account_link",cq.CLAPPERBOARD_CAIRO="clapperboard",cq.CLARIFY="text_page_info",cq.CLOCK_ARROWS="clock_split",cq.CLOCK_ARROWS_ALERT="clock_split_alert",cq.CLOSED_CAPTION="closed_captions",cq.CLOSED_CAPTION_SELECTED="closed_captions",cq.CLOSE="x",cq.CLOUD_UPLOAD="cloud_arrow_up",
cq.COLLAPSE="chevron_up",cq.COLLAPSE_CAIRO="chevron_up",cq.COLLECTION="square3d_stack",cq.COLOR_LENS="paint_palette",cq.COMMENT="text_bubble",cq.CONSENT_SHIELD="person_shield",cq.CONTENT_CUT="scissors",cq.CONTENT_CUT_CAIRO="scissors",cq.COURSE="graduation_cap",cq.COURSE_CAIRO="graduation_cap",cq.CREATION_LIVE="live",cq.CREATION_POST="square_pencil",cq.CREATION_UPLOAD="video",cq.CREATION_UPLOAD_RED="upload",cq.CREATOR_ACADEMY="graduation_cap",cq.CREATOR_STUDIO="youtube_studio",cq.DARK_THEME="theme",
cq.DELETE="trash_can",cq.DELETE_SWEEP="trash_can",cq.DESKTOP="laptop",cq.DISLIKE="thumb_down",cq.DISLIKE_SELECTED="thumb_down",cq.DISMISSAL="x",cq.DISMISS_QUEUE="playlist_x",cq.DOGFOOD="pawprint",cq.DOLLAR_SIGN="dollar_sign_circle",cq.DOLLAR_SIGN_CIRCLE="dollar_sign_circle",cq.DOLLAR_SIGN_CONTAINER="dollar_sign_rectangle",cq.DOWN_ARROW="arrow_down",cq.DO_NOT_DISTURB="circle_slash",cq.DRAFT="document",cq.EARTH="globe",cq.EDIT="pencil",cq.EMOJI="face_very_happy",cq.EMOJI_FLAGS="flag",cq.EMOJI_OBJECTS=
"lightbulb",cq.EMOJI_PEOPLE="face_very_happy",cq.EMOJI_RECENT="clock",cq.EMPTY_HEART="heart",cq.EMPTY_LIKE="thumb_up",cq.ERROR_BLACK="alert_circle",cq.ERROR_OUTLINE="alert_circle",cq.ERROR_WHITE="alert_circle",cq.EXIT_APP="arrow_in",cq.EXIT_TO_APP="arrow_in",cq.EXPAND="chevron_down",cq.EXPAND_ALL="chevron_expand",cq.EXPAND_CAIRO="chevron_down",cq.EXPAND_LESS="chevron_up",cq.EXPAND_MORE="chevron_down",cq.EXPLORE="compass",cq.EXPLORE_DESTINATION="compass",cq.EXTERNAL_LINK="arrow_up_right",cq.EYE_OFF=
"eye_slash",cq.FAB_UPLOAD="upload",cq.FACE_HAPPY_OUTLINE="face_happy",cq.FACE_MEH="face_neutral",cq.FACT_CHECK="text_page_check",cq.FASHION_LOGO="fashion",cq.FASHION_LOGO_CAIRO="fashion",cq.FAVORITE="thumb_up",cq.FEEDBACK="alert_bubble",cq.FEEDBACK_CAIRO="alert_bubble",cq.FILL_ARROW_SOLID_DOWN_16="arrow_solid_down",cq.FILL_ARROW_SOLID_UP_16="arrow_solid_up",cq.FILL_DOLLAR_SIGN_HEART_12="dollar_sign_heart",cq.FLAG_CAIRO="flag",cq.FLASH_OFF="flash_slash",cq.FLASH_ON="flash",cq.FULL_HEART="heart",cq.GAMING_LOGO=
"gaming",cq.GAMING_LOGO_CAIRO="gaming",cq.GO_TO_PAGE="arrow_right",cq.GROUPS="person3",cq.HAND_SWIPE_LEFT="gesture_swipe_left",cq.HAND_SWIPE_RIGHT="gesture_swipe_right",cq.HAPPY="face_happy",cq.HEALTH_AND_SAFETY="shield_health",cq.HEART_BOX="heart_cube",cq.HELP="help_circle",cq.HELP_CAIRO="help_circle",cq.HELP_OUTLINE="help_circle",cq.HIDE="circle_slash",cq.INCOGNITO_CAIRO="incognito",cq.INFINITY_ICON="infinity",cq.INFO="info_circle",cq.INFO_OUTLINE="info_circle",cq.INSERT_CHART_OUTLINED="chart_bar_square",
cq.INSERT_PHOTO="image",cq.KEEP="pin",cq.KEEP_OFF="pin_slash",cq.KEYBOARD="keyboard",cq.KEYBOARD_ARROW_DOWN="chevron_down",cq.KEYBOARD_ARROW_UP="chevron_up",cq.KIDS_BLOCK="circle_slash",cq.LANGUAGE="globe",cq.LAUNCH="arrow_up_right",cq.LEARNING="lightbulb",cq.LEARNING_CAIRO="lightbulb",cq.LIBRARY_ADD="bookmark",cq.LIBRARY_IMAGE="image_stack",cq.LIBRARY_MUSIC="audio_square_stack",cq.LIBRARY_OUTLINE="play_square_stack",cq.LIBRARY_REMOVE="bookmark",cq.LIBRARY_SAVED="check_square_stack",cq.LIKES_PLAYLIST=
"thumb_up",cq.LIKES_PLAYLIST_CAIRO="thumb_up",cq.LIKE="thumb_up",cq.LIKE_SELECTED="thumb_up",cq.LIST_QUEUE="queue",cq.LIVE_CAIRO="live",cq.LIVE_UNLISTED="link",cq.LOCATION_ON="location_pin",cq.LOCATION_PIN="location_pin",cq.LOCATION_POINT="location_pin",cq.LOOP="repeat",cq.LOOP_ACTIVE="repeat",cq.LOOP_ONE="repeat1",cq.LOOP_ONE_ACTIVE="repeat1",cq.MEET="google_meet",cq.MEH="face_neutral",cq.MEMBERSHIPS="memberships",cq.MEMBERS_ONLY_MODE_OFF="text_bubble",cq.MENU_FILTER="filter",cq.MESSAGE="text_bubble",
cq.MESSAGE_BUBBLE_GEAR="bubble_gear",cq.MESSAGE_BUBBLE_LEFT="text_bubble",cq.MESSAGE_BUBBLE_LEFT_BOOST="bubble_sparkles",cq.MESSAGE_BUBBLE_OVERLAP="bubble_stack",cq.MESSAGE_BUBBLE_QUESTION="help_bubble",cq.MICROPHONE_ON="mic",cq.MONETIZATION_ON="dollar_sign_circle",cq.MONEY_FILL="dollar_sign_rectangle",cq.MONEY_FILL_JPY="yen_sign_rectangle",cq.MONEY_HAND="dollar_sign_circle_hand",cq.MONEY_HEART="dollar_sign_heart",cq.MOON_Z="sleep_timer",cq.MORE_HORIZ="overflow_horizontal",cq.MORE_VERT="overflow_vertical",
cq.MUSIC="audio",cq.MUSIC_CAIRO="audio",cq.MUSIC_EXPLICIT_BADGE="explicit",cq.MUSIC_NEW_RELEASE="audio_badge",cq.MUSIC_NOTE_SYMBOL="audio",cq.MUSIC_SCISSORS="audio_scissors",cq.MUSIC_SHUFFLE="shuffle",cq.MY_CHANNEL="person_circle",cq.MY_LOCATION="location_pin",cq.MY_VIDEOS="video",cq.MY_VIDEOS_CAIRO="video",cq.NEWS_CAIRO="news",cq.NEWS_STORY="news",cq.NEXT="chevron_right",cq.NOTE_ADD="bubble_pencil",cq.NOTIFICATIONS="bell",cq.NOTIFICATIONS_ACTIVE="bell_waves",cq.NOTIFICATIONS_CAIRO="bell",cq.NOTIFICATIONS_DONE_CHECKMARK=
"check",cq.NOTIFICATIONS_INBOX="bell",cq.NOTIFICATIONS_NONE="bell",cq.NOTIFICATIONS_OFF="bell_slash",cq.NOT_INTERESTED="circle_slash",cq.OFFICIAL_ARTIST_BADGE="audio",cq.OFFLINE_CLOUD="cloud_slash",cq.OFFLINE_DOWNLOAD="download",cq.OFFLINE_DOWNLOAD_CAIRO="download",cq.OFFLINE_PAUSE="pause",cq.OPEN_IN_NEW="arrow_up_right",cq.OUTLINE_ADJUST="adjust",cq.OUTLINE_ARROW_SOLID_DOWN="arrow_solid_down",cq.OUTLINE_ARROW_SOLID_DOWN_16="arrow_solid_down",cq.OUTLINE_ARROW_SOLID_UP="arrow_solid_up",cq.OUTLINE_ARROW_SOLID_UP_16=
"arrow_solid_up",cq.OUTLINE_BAG="bag",cq.OUTLINE_CLOCK_HALF_CIRCLE="clock_half_dashed",cq.OUTLINE_OVERFLOW_HORIZONTAL_32="overflow_horizontal",cq.OUTLINE_OVERFLOW_VERTICAL="overflow_vertical",cq.OUTLINE_YOUTUBE_IMPROVE_TV="star_tv",cq.PAID="dollar_sign_circle",cq.PAUSE_OUTLINED="pause",cq.PAYMENT="credit_card",cq.PEOPLE="person_child",cq.PEOPLE_2="person2_rectangle",cq.PEOPLE_GROUP="person3",cq.PEOPLE_NOTE="bubble_asterisk",cq.PERSON_2="person2",cq.PERSON_ACCOUNT="person_square_stack",cq.PERSON_MINUS=
"person_x",cq.PERSON_MUSIC="person_audio",cq.PERSON_RADAR="person_waves",cq.PERSON_RADAR_FILLED="person_waves",cq.PERSON_SETTING="person_gear",cq.PHONE="phone",cq.PHONE_DOWNLOAD="mobile_arrow_down",cq.PICTURE_IN_PICTURE="picture_in_picture",cq.PLAYABLES_LOGO="playables",cq.PLAYABLES_LOGO_CAIRO="playables",cq.PLAYLISTS="playlist",cq.PLAYLISTS_CAIRO="playlist",cq.PLAYLIST_ADD_CHECK="bookmark",cq.PLAY_ALL="play",cq.PLAY_ARROW="play",cq.PLAY_ARROW_CIRCLE="play_circle",cq.PLAY_ARROW_HALF_CIRCLE="play_circle_half_dashed",
cq.PLAY_CIRCLE="play_circle",cq.PLAY_OUTLINED="play_circle",cq.PODCAST_ADD="podcast_add",cq.PODCAST_CHECK="podcast_check",cq.PRIVACY_INFO="shield_x",cq.PRIVACY_PRIVATE="lock",cq.PRIVACY_PUBLIC="globe",cq.PRIVACY_UNLISTED="link",cq.PROMOTE="megaphone",cq.PURCHASES="price_tag",cq.PURCHASE_SUPER_CHAT="super_chat",cq.PURCHASE_SUPER_STICKER="super_sticker",cq.QUESTION_ANSWER="help_bubble",cq.QUESTION_CIRCLE="help_circle",cq.QUEUE_PLAY_LAST="queue_last",cq.QUEUE_PLAY_NEXT="playlist",cq.QUOTATION_MARK="quote",
cq.RADAR_LIVE="live",cq.REMOVE="minus_circle",cq.REMOVE_CIRCLE="minus_circle",cq.REMOVE_CIRCLE_OUTLINE="minus_circle",cq.REMOVE_FROM_HISTORY="minus_circle",cq.REMOVE_FROM_PLAYLIST="minus_circle",cq.REPLAY="arrow_counterclockwise",cq.REPLAY_10="skip10_back",cq.REPLAY_ARROW="replay",cq.REPORT_PROBLEM="alert_triangle",cq.RSS_OFF="rss_slash",cq.SAD="face_sad",cq.SAVE_PLAYLIST="bookmark",cq.SCHEDULE="clock",cq.SCHOOL="graduation_cap",cq.SCREEN_DEFAULT="player_default",cq.SCREEN_FULLSCREEN="player_full_enter",
cq.SCREEN_LIGHT="ambient_mode",cq.SCREEN_SWITCH="player_switch",cq.SEARCH_CAIRO="search",cq.SEARCH_HISTORY="history",cq.SELL="price_tag",cq.SETTINGS="gear",cq.SETTINGS_CAIRO="gear",cq.SETTINGS_LIGHT="gear",cq.SETTINGS_MATERIAL="gear",cq.SETTINGS_REMOTE="remote_waves",cq.SHARE="share",cq.SHARE_ARROW="share",cq.SHARE_CAIRO="share",cq.SHIELD="shield_x",cq.SHIELD_OFF="shield_slash",cq.SHIELD_WITH_AVATAR="person_shield",cq.SHOPPING_BAG="bag",cq.SHOPPING_BAG_CAIRO="bag",cq.SHOPPING_CART="cart",cq.SHORTS_COMMENT=
"text_bubble",cq.SHORTS_DISLIKE="thumb_down",cq.SHORTS_LIKE="thumb_up",cq.SHORTS_SHARE="share",cq.SKIP_FORWARD_30="skip30_forward",cq.SLASH_CIRCLE_RIGHT="circle_slash",cq.SLOW_MODE_OFF="text_bubble",cq.SOCIAL="person_child",cq.SPARKLE="sparkles",cq.SPARK_IMAGE="image_spark",cq.SPARK_RADAR="spark_waves",cq.SPARK_VIDEO="video_spark",cq.SPEAKER_GROUP="speaker_stack",cq.SPEAKER_OFF="speaker_slash",cq.SPEED_1X="n1x",cq.SPEED_1_POINT_2X="n1point2x",cq.SPEED_1_POINT_5X="n1point5x",cq.SPEED_1_POINT_8X="n1point8x",
cq.SPEED_2X="n2x",cq.SPONSORSHIP_STAR="memberships",cq.SPORTS="basketball",cq.SPOTLIGHT="spotlight",cq.STAFF_PICK="spotlight",cq.START_DVR="add",cq.STAR_BORDER="star",cq.STAR_HALF="star_half_filled",cq.STAR_SHOOTING="hype",cq.STICKER="sticker",cq.STICKER_EMOTICON="face_happy",cq.STOP_DVR="stop",cq.SUBSCRIBE="youtube",cq.SUBSCRIBE_PLUS="add",cq.SUBSCRIPTION_MANAGER="gear",cq.SUPERSTAR="super_star",cq.SUPERVISOR_ACCOUNT="person_child",cq.SWAP_HORIZ="arrow_swap_horizontal",cq.SWITCH_ACCOUNTS="person_square_stack",
cq.TAB_ACCOUNT="person",cq.TAB_ACTIVITY="bell",cq.TAB_BOOKMARK="bookmark",cq.TAB_EXPLORE="compass",cq.TAB_HOME="home",cq.TAB_HOME_CAIRO="home",cq.TAB_INBOX="mail",cq.TAB_LIKED="thumb_up",cq.TAB_MUSIC_PREMIUM="youtube_music",cq.TAB_SHORTS="shorts",cq.TAB_SHORTS_CAIRO="shorts",cq.TAB_SUBSCRIPTIONS="subscriptions",cq.TAB_SUBSCRIPTIONS_CAIRO="subscriptions",cq.TAB_TRENDING="trending",cq.TARGET="target",cq.TARGET_ADD="target_add",cq.TEMPLATE_ADD="template_add",cq.TEXT="font",cq.TIMER="stopwatch",cq.TRENDING_CAIRO=
"trending",cq.TRENDING_UP="arrow_trend_up",cq.TROPHY_CAIRO="trophy",cq.TROPHY_CELEBRATIONS="fireworks",cq.TROPHY_STAR="star_trophy",cq.TUNE="adjust",cq.UNBLOCK_USER="minus_circle",cq.UNFAVORITE="thumb_down",cq.UNLIMITED="youtube",cq.UNPLUGGED_LIVE_GUIDE="live",cq.UNPLUGGED_SPORTS="eye_slash",cq.UPLOADS="play_square_stack",cq.UP_ARROW="arrow_up",cq.VERTICAL_ALIGN_BOTTOM="download",cq.VERY_HAPPY="face_very_happy",cq.VERY_SAD="face_very_sad",cq.VIDEOS="play_circle",cq.VIDEO_CALL="video_camera_add",cq.VIDEO_LIBRARY_WHITE=
"play_square_stack",cq.VIDEO_QUALITY_4K="n4k",cq.VIDEO_QUALITY_8K="n8k",cq.VIDEO_YOUTUBE="youtube",cq.VIEW_LIST_CAIRO="view_list",cq.VIEW_MODULE="view_column3_row2",cq.VISIBILITY="eye",cq.VISIBILITY_OFF="eye_slash",cq.VOLUME_DOWN="volume_min",cq.VOLUME_MUTE="volume_mute",cq.VOLUME_OFF="volume_mute",cq.VOLUME_STABLE="stable_volume",cq.VOLUME_UP="volume_max",cq.WALLPAPER="image",cq.WARNING="alert_triangle",cq.WATCH_HISTORY="history",cq.WATCH_HISTORY_CAIRO="history",cq.WATCH_LATER="clock",cq.WATCH_LATER_CAIRO=
"clock",cq.WATCH_RELATED_MIX="mix",cq.WHAT_TO_WATCH="home",cq.YOUTUBE_LINKED_TV="tv_mobile",cq.YOUTUBE_MUSIC_MONOCHROME="youtube_music",cq.YOUTUBE_MUSIC_MONOCHROME_CAIRO="youtube_music",cq.YOUTUBE_SHORTS_ARROW_DOWN="arrow_down",cq.YOUTUBE_SHORTS_ARROW_UP="arrow_up",cq.YOUTUBE_SHORTS_FILL_NO_TRIANGLE_RED_16="shorts_empty",cq.YOUTUBE_SHORTS_FILL_NO_TRIANGLE_WHITE_16="shorts_empty",cq.YOUTUBE_SHORTS_OUTLINE_24="shorts",cq);var hgE={15:[[1,3,24]],"1_point_2x":[[1,1,24]],"1_point_5x":[[1,1,24]],"1_point_8x":[[1,1,24]],"1x":[[1,1,24]],"2_point_5x":[[1,1,24]],"2d":[[1,1,24]],"2x":[[1,3,24]],"3d":[[1,1,24]],"3x":[[1,3,24]],"4d":[[1,1,24]],"4k":[[0,2,24],[1,2,24]],60:[[1,3,24]],"8k":[[0,2,24],[1,2,24]],accessibility:[[1,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,8,16],[1,8,24]],add_cairo:[[0,4,16],[0,4,24],[1,4,24]],add_circle:[[1,5,24],
[1,5,36]],add_half_circle:[[1,2,24]],adjust:[[0,9,24],[1,9,18],[1,9,24]],airplane:[[0,4,24],[1,4,20],[1,4,24]],airplay:[[1,6,16],[1,6,24]],airplay_off:[[1,1,24]],album:[[0,6,24],[1,6,24]],alert_circle:[[0,9,24],[1,9,16],[1,9,24]],alert_triangle:[[0,8,12],[0,8,24],[1,8,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,7,24],[1,7,24]],arrow_left:[[1,
7,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,3,16],[0,3,24],[1,3,16],[1,3,24]],arrow_solid_up:[[0,3,16],[0,3,24],[1,3,16],[1,3,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,9,12],[0,9,16],[0,9,24],[1,9,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,8,24],[1,8,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,9,24],[1,9,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,10,
12],[0,10,16],[0,10,24],[1,10,16],[1,10,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,8,18],[1,8,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,1,24]],chevron_left_ios_cairo:[[1,2,24]],chevron_right:[[0,
6,16,!0],[0,6,18,!0],[0,6,24,!0],[1,6,16,!0],[1,6,18,!0],[1,6,24,!0]],chevron_right_cairo:[[1,2,24]],chevron_right_circle:[[0,3,24]],chevron_right_ios:[[1,1,24]],chevron_up:[[1,8,16],[1,8,18],[1,8,24]],chevron_up_cairo:[[1,2,24]],chevron_up_circle:[[0,3,24]],chromecast:[[0,8,24],[1,8,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,3,24],[1,3,36]],chromecast_waveform:[[1,
2,24]],circle:[[0,7,24],[1,7,24]],circle_full:[[0,2,24]],circle_half_full:[[1,1,24]],circles_6:[[0,1,24]],circles_overlap:[[0,1,24],[1,1,24]],circles_overlap_check:[[0,1,16],[0,1,24]],clapperboard:[[0,3,24],[1,3,24]],clapperboard_cairo:[[0,2,24],[1,2,24]],clock:[[0,9,24],[1,9,16],[1,9,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,
5,24],[1,5,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,4,16],[0,4,24],[1,4,12],[1,4,16],[1,4,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,10,16],[0,10,24],[1,10,16],[1,10,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,21,12],[0,21,24],[1,21,16],[1,21,24]],dollar_sign_off:[[1,3,24]],download:[[0,10,24],[1,10,16],[1,10,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,5,24],[1,5,24]],eye_off:[[1,4,24]],eyedropper:[[1,2,24]],face_arrows_diagonal:[[1,1,24]],face_happy:[[0,9,24],[0,9,36],[1,9,24],[1,9,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,9,24],[0,9,36],[1,9,24],[1,9,36]],face_unhappy:[[0,8,24],[0,8,36],[1,8,24],[1,8,36]],face_upset:[[0,9,24],[0,9,36],[1,9,24],[1,9,36]],face_very_happy:[[0,9,24],[0,9,36],[1,9,24],[1,9,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,6,24],[1,6,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,8,24],[1,8,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]],football:[[0,3,24],[1,3,24]],
gaming:[[0,3,24],[1,3,24]],gaming_cairo:[[0,2,24],[1,2,24]],gear:[[0,8,24],[1,8,24]],gear_cairo:[[0,3,24],[1,3,24]],ghost:[[1,4,24]],gif:[[1,2,24]],gift:[[0,3,24],[1,3,24]],globe:[[1,3,24]],glow:[[1,2,24]],google_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,17,13],[0,17,24],[1,17,16],[1,17,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,2,16],[1,2,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,9,16],[1,9,18],[1,9,20],[1,9,24]],journey:[[1,1,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,7,18],[1,7,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]],location_point:[[0,6,12],[0,6,24],[1,6,24]],location_point_off:[[1,1,24]],lock:[[0,11,12],[0,11,24],[1,11,12],[1,11,16],[1,11,18],[1,11,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,8,12],[0,8,16],[0,8,18],[0,8,24],[1,8,24]],mention:[[1,4,16],[1,4,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,10,24],[1,10,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_add:[[1,1,16],[1,1,24]],odometer:[[0,4,24],[1,4,24]],open_new:[[0,7,24],[1,7,12],[1,7,24]],overflow_horizontal:[[1,5,24],[1,5,32]],overflow_vertical:[[1,11,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,7,24]],pause_circle:[[0,2,12],[0,2,16],[0,2,24]],pdf:[[1,2,24]],pencil:[[1,8,16],[1,
8,18],[1,8,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,6,12],[0,6,13],[0,6,16],[0,6,24],[0,6,48],[1,6,13],[1,6,16],[1,6,24]],person_2:[[1,1,24]],person_account:[[1,6,24]],person_account_cairo:[[1,1,24]],person_add:[[1,6,24]],person_box:[[1,5,24]],person_circle:[[0,9,24],[1,9,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_waveform:[[1,2,24]],phone:[[0,2,24],[1,2,24]],picture_in_picture:[[0,2,24],[1,2,24]],picture_in_picture_combine:[[1,1,24]],pin:[[0,6,12],[0,6,24],[1,6,16],[1,6,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,3,
24],[1,3,12],[1,3,16],[1,3,18],[1,3,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,8,16],[1,8,24],[1,8,40]],pound:[[1,3,24]],presentation:[[1,2,24]],presentation_remove:[[1,1,24]],price_tag:[[0,7,12],[0,7,24],[1,7,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,1,24]],quotation_mark:[[0,
1,24],[1,1,24]],quotation_mark_off:[[1,1,24]],radar_live:[[0,7,24],[1,7,12],[1,7,16],[1,7,24]],radar_live_cairo:[[0,2,24],[1,2,24]],rating_down:[[1,1,24]],rating_up:[[1,7,12],[1,7,16],[1,7,24]],record:[[0,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,7,12],[0,7,24],
[1,7,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,11,24],[1,11,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,2,24]],shadow_soft:[[0,2,24]],shapes:[[0,3,24],[1,3,24]],share:[[0,10,24,!0],[0,10,32,!0],[1,10,16,!0],[1,10,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,5,24]],skip_previous:[[0,5,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,8,12],[0,8,16],[0,8,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,5,16],[0,5,24],[1,5,16],[1,5,24]],star_circle:[[0,3,12],[0,3,16],[0,3,18],[0,3,24]],star_circle_ribbon:[[0,1,16],[0,1,20],[0,1,24],[0,1,36],[1,1,16],[1,1,20],[1,1,24],[1,1,36]],star_half:[[0,2,16],[0,2,24]],star_shooting:[[0,3,24],[1,3,24]],statistics_graph:[[1,2,24]],sticker:[[1,2,24]],stop:[[0,3,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,10,24],[1,10,18],[1,10,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,21,16],[0,21,24],[0,21,36],[1,21,16],[1,21,24],[1,21,36]],thumb_up:[[0,19,16],[0,19,24],[0,19,36],[1,19,16],[1,19,24],[1,19,36]],thumb_up_cairo:[[0,2,24],[1,2,24]],thumb_up_down:[[0,2,24],[1,2,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,2,24]],trash_can:[[1,9,16],[1,9,18],[1,9,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,7,12],[0,7,16],[0,7,24],[1,7,16],[1,7,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,8,24],[1,8,24]],video_camera_add:[[1,2,24]],video_camera_off:[[1,1,24]],video_link:[[1,4,16],[1,4,24]],video_stitch:[[1,2,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,2,24]],waveform_music:[[0,2,18],[0,2,24],[0,2,48]],waveform_spark:[[1,2,24]],wrench:[[0,2,24],[1,2,24]],x:[[1,9,18],[1,9,24]],x_cairo:[[1,1,24]],x_circle:[[1,7,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,1,24],[1,1,24]]};var RgQ={accessibility:[[0,4,24],[1,4,24]],account_link:[[0,8,24],[1,8,24]],account_link_error:[[1,6,24]],add:[[1,8,24]],add_circle:[[0,5,24],[1,5,24]],add_square_stack:[[1,1,24]],add_tv:[[1,1,24]],add_tv_chevron_right:[[1,1,24]],adjust:[[0,9,24],[1,9,24]],airplane:[[0,4,24],[1,4,24]],airplay:[[1,6,24]],airplay_slash:[[1,1,24]],album:[[0,6,24],[1,6,24]],alert_bubble:[[1,1,24]],alert_circle:[[0,9,24],[1,9,24]],alert_octagon:[[0,2,24],[1,2,24]],alert_triangle:[[0,8,24],[1,8,24]],ambient_mode:[[1,1,
24]],ampersand:[[1,1,24]],api:[[0,2,24],[1,2,24]],archive:[[1,1,24]],arrow_arc_forward:[[1,1,24]],arrow_clockwise:[[1,1,24]],arrow_counterclockwise:[[1,1,24]],arrow_counterclockwise_dashed:[[1,1,24]],arrow_down:[[1,3,24]],arrow_down_circle:[[0,4,24],[1,4,24]],arrow_down_right:[[1,1,24]],arrow_flip:[[1,10,24]],arrow_in:[[1,7,24]],arrow_left:[[1,7,24,!0]],arrow_merge:[[1,2,24]],arrow_out:[[1,2,24]],arrow_right:[[1,3,24,!0]],arrow_right_rectangle:[[0,2,24],[1,2,24]],arrow_solid_down:[[0,3,24],[1,3,24]],
arrow_solid_up:[[0,3,24],[1,3,24]],arrow_split:[[1,3,24]],arrow_split_alert:[[1,1,24]],arrow_swap_horizontal:[[1,5,24]],arrow_trend_down:[[1,1,24]],arrow_trend_up:[[1,1,24]],arrow_turn_down_right:[[1,1,24]],arrow_up:[[1,3,24]],arrow_up_circle:[[0,4,24],[1,4,24]],arrow_up_left:[[1,1,24]],arrow_up_rectangle_portrait:[[1,1,24]],arrow_up_right:[[1,1,24]],audio:[[0,9,24],[1,9,24]],audio_arrow_flip:[[0,2,24],[1,2,24]],audio_badge:[[0,3,24],[1,3,24]],audio_scissors:[[1,1,24]],audio_slash:[[0,2,24],[1,2,
24]],audio_spark:[[1,1,24]],audio_square_stack:[[0,2,24],[1,2,24]],audio_staff:[[0,2,24],[1,2,24]],backspace:[[0,5,24],[1,5,24]],bag:[[0,7,24],[1,7,24]],bag_bookmark:[[1,2,24]],basketball:[[0,2,24],[1,2,24]],beaker:[[1,2,24]],bell:[[0,10,24],[1,10,24]],bell_slash:[[1,1,24]],bell_waves:[[0,2,24],[1,2,24]],blur:[[1,2,24]],book:[[0,3,24],[1,3,24]],book_audio:[[1,1,24]],bookmark:[[0,8,24],[1,8,24]],briefcase:[[1,2,24]],briefcase_slash:[[0,3,24],[1,3,24]],brightness:[[0,3,24],[1,3,24]],browser:[[0,2,24],
[1,2,24]],browser_slash:[[1,1,24]],bubble:[[1,1,24]],bubble_asterisk:[[0,2,24],[1,2,24]],bubble_gear:[[1,1,24]],bubble_pencil:[[1,1,24]],bubble_slash:[[0,2,24],[1,2,24]],bubble_spark:[[1,1,24]],bubble_sparkles:[[1,1,24]],bubble_stack:[[0,2,24],[1,2,24]],bug:[[0,3,24],[1,3,24]],business:[[0,4,24],[1,4,24]],cable:[[1,2,24]],calculator:[[0,3,24],[1,3,24]],calendar:[[0,4,24],[1,4,24]],calendar_event:[[0,2,24],[1,2,24]],calendar_today:[[1,1,24]],camera:[[0,9,24],[1,9,24]],camera_audio:[[1,5,24]],camera_flip:[[1,
4,24]],camera_hashtag:[[1,5,24]],camera_sparkles:[[1,1,24]],camera_switch:[[0,3,24],[1,3,24]],card:[[0,3,24]],cart:[[0,4,24],[1,4,24]],cart_add:[[1,1,24]],cat:[[0,3,24],[1,3,24]],celebration:[[1,2,24]],chart_bar:[[1,1,24]],chart_bar_search:[[0,2,24],[1,2,24]],chart_bar_square:[[0,2,24],[1,2,24]],chart_line:[[1,1,24]],chart_pie:[[0,2,24],[1,2,24]],chart_scatter_plot:[[1,1,24]],check:[[1,10,24]],check_circle:[[0,10,24],[1,10,24]],check_done:[[1,1,24]],check_done_slash:[[1,1,24]],check_shield:[[1,1,
24]],check_square:[[0,2,24],[1,2,24]],check_square_stack:[[0,1,24]],chevron_collapse:[[1,3,24]],chevron_down:[[1,8,24]],chevron_down_circle:[[0,3,24],[1,3,24]],chevron_down_end:[[1,1,24]],chevron_expand:[[1,5,24]],chevron_left:[[1,9,24,!0]],chevron_left_circle:[[0,3,24],[1,3,24]],chevron_left_end:[[1,1,24]],chevron_right:[[1,6,24,!0]],chevron_right_circle:[[0,3,24],[1,3,24]],chevron_right_end:[[1,1,24]],chevron_right_square:[[1,1,24]],chevron_up:[[1,8,24]],chevron_up_circle:[[0,3,24],[1,3,24]],chevron_up_end:[[1,
1,24]],chromecast:[[0,8,24],[1,8,24]],chromecast_mobile:[[1,3,24]],chromecast_waveform:[[1,2,24]],circle:[[0,7,24],[1,7,24]],circle_half_filled:[[1,1,24]],circle_slash:[[0,2,24],[1,2,24]],circles6:[[1,1,24]],clapperboard:[[0,3,24],[1,3,24]],clapperboard_sparkles:[[0,1,24]],clock:[[0,9,24],[1,9,24]],clock_arrow_clockwise:[[1,1,24]],clock_half_dashed:[[1,1,24]],clock_split:[[0,2,24],[1,2,24]],clock_split_alert:[[0,2,24],[1,2,24]],closed_captions:[[0,2,24],[1,2,24]],cloud:[[1,2,24]],cloud_arrow_down:[[1,
3,24]],cloud_arrow_up:[[0,5,24],[1,5,24]],cloud_check:[[0,3,24],[1,3,24]],cloud_ellipsis:[[0,3,24],[1,3,24]],cloud_slash:[[1,1,24]],cms_allowlist:[[0,2,24],[1,2,24]],code:[[1,2,24]],compare:[[1,1,24]],compass:[[0,8,24],[1,8,24]],copy:[[1,3,24]],copy_to_all:[[1,1,24]],copyright:[[0,4,24],[1,4,24]],copyright_search:[[0,2,24],[1,2,24]],cover_claim:[[1,1,24]],creative_commons:[[0,2,24],[1,2,24]],credit_card:[[0,4,24],[1,4,24]],crop:[[1,3,24]],crop_rotate:[[1,2,24]],crown:[[0,4,24],[1,4,24]],csv:[[0,2,
24],[1,2,24]],cube:[[0,2,24],[1,2,24]],cursor_click:[[0,2,24],[1,2,24]],curve:[[1,1,24]],cvp:[[0,2,24],[1,2,24]],dashboard:[[0,2,24],[1,2,24]],dashboard_add:[[1,1,24]],die_face3:[[0,2,24],[1,2,24]],directions:[[1,3,24]],display:[[0,2,24],[1,2,24]],display_slash:[[1,1,24]],divide:[[1,1,24]],document:[[0,2,24],[1,2,24]],document_arrow_up_right:[[0,2,24],[1,2,24]],dollar_sign_arrow_flip:[[1,1,24]],dollar_sign_circle:[[0,10,24],[1,10,24]],dollar_sign_circle_add:[[1,1,24]],dollar_sign_circle_hand:[[1,
1,24]],dollar_sign_circle_pause:[[1,2,24]],dollar_sign_circle_slash:[[1,1,24]],dollar_sign_heart:[[1,21,24]],dollar_sign_rectangle:[[1,1,24]],dollar_sign_tv:[[0,2,24],[1,2,24]],download:[[1,10,24]],dpad:[[0,2,24],[1,2,24]],embed:[[0,2,24],[1,2,24]],equal:[[1,1,24]],equal_slash:[[1,1,24]],explicit:[[0,7,24],[1,7,24]],eye:[[0,5,24],[1,5,24]],eye_slash:[[1,1,24]],eyedropper:[[1,2,24]],face_happy:[[0,9,24],[1,9,24]],face_image:[[1,2,24]],face_meh:[[0,9,24],[1,9,24]],face_neutral:[[0,2,24],[1,2,24]],face_paintbrush:[[1,
2,24]],face_sad:[[0,9,24],[1,9,24]],face_scale:[[1,1,24]],face_sparkles:[[0,2,24],[1,2,24]],face_unhappy:[[0,8,24],[1,8,24]],face_upset:[[0,9,24],[1,9,24]],face_very_happy:[[0,9,24],[1,9,24]],face_very_sad:[[0,9,24],[1,9,24]],fashion:[[0,4,24],[1,4,24]],fast_forward:[[0,5,24],[1,5,24]],fast_rewind:[[0,2,24],[1,2,24]],film_strip:[[0,6,24],[1,6,24]],film_strip_add:[[1,2,24]],film_strip_audio:[[1,1,24]],filter:[[1,1,24]],filter_audio:[[1,1,24]],filter_photo:[[0,8,24],[1,8,24]],fireworks:[[1,3,24]],flag:[[0,
8,24],[1,8,24]],flash:[[0,2,24],[1,2,24]],flash_auto:[[0,3,24],[1,3,24]],flash_circle:[[0,5,24],[1,5,24]],flash_slash:[[0,2,24],[1,2,24]],flip_horizontal:[[1,4,24]],flip_horizontal_half_dashed:[[1,1,24]],flip_vertical_half_dashed:[[1,1,24]],folder:[[0,4,24],[1,4,24]],font:[[1,1,24]],font_bold:[[1,1,24]],font_italic:[[1,1,24]],font_outline:[[1,1,24]],font_present:[[1,1,24]],font_serif:[[1,1,24]],font_shadow:[[1,1,24]],font_square:[[0,2,24],[1,2,24]],font_strikethrough:[[1,1,24]],font_underline:[[1,
1,24]],football:[[0,3,24],[1,3,24]],game_controller:[[1,1,24]],gaming:[[0,3,24],[1,3,24]],gear:[[0,8,24],[1,8,24]],gesture_long_press:[[0,2,24],[1,2,24]],gesture_pinch_in:[[1,1,24]],gesture_swipe_left:[[1,1,24]],gesture_swipe_right:[[1,1,24]],gesture_swipe_up:[[1,1,24]],gesture_tap:[[0,2,24],[1,2,24]],ghost:[[1,4,24]],gif:[[1,2,24]],gift:[[0,3,24],[1,3,24]],globe:[[1,3,24]],glow:[[1,2,24]],google:[[0,1,24]],google_blogger:[[0,1,24]],google_drive_add:[[1,1,24]],google_lens:[[1,4,24]],google_meet:[[0,
2,24],[1,2,24]],google_quick_share:[[1,1,24]],graduation_cap:[[0,2,24],[1,2,24]],greater_than:[[1,1,24]],greater_than_n20:[[1,1,24]],greater_than_or_equal_to:[[1,1,24]],hand:[[1,2,24]],hand_wave:[[1,2,24]],hands_heart:[[0,3,24],[1,3,24]],hashtag:[[1,2,24]],hd:[[0,8,24],[1,8,24]],headset:[[0,8,24],[1,8,24]],heart:[[0,17,24],[1,17,24]],heart_circle:[[1,2,24]],heart_cube:[[1,1,24]],heart_slash:[[1,1,24]],help_bubble:[[0,2,24],[1,2,24]],help_circle:[[1,1,24]],hierarchy:[[0,4,24],[1,4,24]],highlights:[[1,
2,24]],history:[[1,1,24]],home:[[0,9,24],[1,9,24]],hourglass:[[1,2,24]],hype:[[0,2,24],[1,2,24]],image:[[0,8,24],[1,8,24]],image_add:[[0,4,24],[1,4,24]],image_frame:[[1,1,24]],image_list:[[0,2,24],[1,2,24]],image_list_slash:[[1,1,24]],image_spark:[[1,1,24]],image_stack:[[0,2,24],[1,2,24]],image_viewfinder:[[1,1,24]],incognito:[[0,9,24],[1,9,24]],infinity:[[1,2,24]],info_circle:[[1,9,24]],info_circle_spark:[[1,1,24]],key:[[1,5,24]],keyboard:[[0,4,24],[1,4,24]],label:[[0,4,24],[1,4,24]],label_slash:[[0,
2,24],[1,2,24]],laptop:[[1,3,24]],laptop_mobile:[[0,4,24],[1,4,24]],layout_bottom:[[1,1,24]],layout_foreground:[[1,1,24]],layout_full:[[1,1,24]],layout_left:[[1,1,24]],layout_middle:[[1,1,24]],layout_picture_in_picture:[[1,1,24]],layout_right:[[1,1,24]],layout_top:[[1,1,24]],leaf:[[1,2,24]],less_than:[[1,1,24]],less_than_n4:[[1,1,24]],less_than_or_equal_to:[[1,1,24]],license:[[0,2,24],[1,2,24]],license_alert:[[1,1,24]],license_search:[[1,1,24]],license_slash:[[1,1,24]],lightbulb:[[0,4,24],[1,4,24]],
link:[[1,7,24]],link_slash:[[1,1,24]],live:[[1,1,24]],live_photo:[[1,2,24]],location_pin:[[0,2,24],[1,2,24]],location_pin_slash:[[1,1,24]],lock:[[0,11,24],[1,11,24]],lock_clock:[[1,1,24]],lock_n2:[[1,1,24]],lock_open:[[0,4,24],[1,4,24]],magic_wand:[[0,3,24],[1,3,24]],mail:[[0,8,24],[1,8,24]],map:[[1,3,24]],medal:[[1,2,24]],medal_star:[[1,2,24]],megaphone:[[0,4,24],[1,4,24]],memberships:[[0,8,24],[1,8,24]],memberships_gift:[[1,1,24]],mention:[[1,4,24]],menu:[[1,1,24]],mic:[[0,10,24],[1,10,24]],mic_slash:[[1,
1,24]],minus:[[1,1,24]],minus_circle:[[0,2,24],[1,2,24]],minus_square:[[0,2,24],[1,2,24]],mix:[[0,2,24],[1,2,24]],mobile:[[0,4,24],[1,4,24]],mobile_arrow_down:[[1,1,24]],mobile_check:[[1,2,24]],mobile_landscape:[[0,3,24],[1,3,24]],motion:[[1,2,24]],move:[[1,2,24]],music_video:[[0,4,24],[1,4,24]],music_video_slash:[[1,1,24]],n15:[[1,1,24]],n1point2x:[[1,1,24]],n1point5x:[[1,1,24]],n1point8x:[[1,1,24]],n1x:[[1,1,24]],n2d:[[1,1,24]],n2point5x:[[1,1,24]],n2x:[[1,1,24]],n3d:[[1,1,24]],n3x:[[1,1,24]],n4d:[[1,
1,24]],n4k:[[0,1,24],[1,1,24]],n60:[[1,1,24]],n8k:[[0,1,24],[1,1,24]],new_release:[[1,1,24]],news:[[0,3,24],[1,3,24]],node_left:[[1,2,24]],node_right:[[1,2,24]],open_in_panel:[[1,1,24]],originals:[[0,1,24],[1,1,24]],overflow_horizontal:[[1,5,24]],overflow_vertical:[[1,11,24]],page_search:[[1,1,24]],paint_bucket:[[1,3,24]],paint_palette:[[1,1,24]],panels:[[0,2,24],[1,2,24]],pause:[[0,7,24],[1,7,24]],pause_circle:[[0,2,24],[1,2,24]],pause_history:[[1,1,24]],pawprint:[[1,1,24]],pdf:[[1,2,24]],pencil:[[1,
8,24]],pencil_spark:[[1,1,24]],percent:[[1,1,24]],person:[[0,6,24],[1,6,24]],person2:[[1,1,24]],person2_rectangle:[[0,1,24],[1,1,24]],person3:[[0,1,24],[1,1,24]],person_add:[[0,6,24],[1,6,24]],person_audio:[[0,1,24],[1,1,24]],person_check:[[1,1,24]],person_child:[[0,1,24],[1,1,24]],person_circle:[[1,9,24]],person_circle_slash:[[1,2,24]],person_gear:[[1,1,24]],person_shield:[[1,7,24]],person_square:[[0,1,24],[1,1,24]],person_square_stack:[[0,1,24],[1,1,24]],person_viewfinder:[[0,1,24],[1,1,24]],person_waveform:[[1,
1,24]],person_waves:[[0,1,24],[1,1,24]],person_x:[[1,1,24]],phone:[[0,2,24],[1,2,24]],piano:[[1,1,24]],picture_in_picture:[[0,2,24],[1,2,24]],picture_in_picture_stack:[[1,1,24]],pin:[[0,6,24],[1,6,24]],pin_slash:[[0,1,24],[1,1,24]],play:[[0,1,24],[1,1,24]],play_circle:[[0,1,24],[1,1,24]],play_circle_half_dashed:[[1,1,24]],play_slash:[[0,1,24],[1,1,24]],play_square_half_dashed:[[1,1,24]],play_square_stack:[[0,1,24],[1,1,24]],playables:[[0,1,24],[1,1,24]],player_default:[[0,1,24],[1,1,24]],player_full_enter:[[1,
1,24]],player_full_enter_portrait:[[1,1,24]],player_full_exit:[[1,1,24]],player_mini_enter:[[0,1,24],[1,1,24]],player_mini_exit:[[1,1,24]],player_multiview:[[0,1,24],[1,1,24]],player_switch:[[0,1,24],[1,1,24]],player_theater:[[0,1,24],[1,1,24]],playlist:[[1,1,24]],playlist_add:[[1,1,24]],playlist_audio:[[0,1,24],[1,1,24]],playlist_audio_slash:[[1,1,24]],playlist_check:[[1,1,24]],playlist_pencil:[[1,1,24]],playlist_x:[[1,1,24]],podcast:[[0,3,24],[1,3,24]],podcast_add:[[0,2,24],[1,2,24]],podcast_check:[[0,
2,24]],point2x:[[1,1,24]],point3x:[[1,1,24]],point5x:[[1,1,24]],point8x:[[1,1,24]],poll:[[1,8,24]],premium:[[0,1,24],[1,1,24]],presentation:[[1,2,24]],price_tag:[[0,7,24],[1,7,24]],price_tag_heart:[[1,2,24]],price_tag_rectangle:[[1,1,24]],qr_code:[[1,3,24]],qr_code_viewfinder:[[1,1,24]],queue:[[1,1,24]],queue_last:[[1,1,24]],queue_next:[[1,1,24]],quiz:[[0,1,24],[1,1,24]],quote:[[0,1,24],[1,1,24]],quote_slash:[[0,1,24],[1,1,24]],record:[[0,2,24]],redo:[[1,1,24]],remix:[[1,2,24]],remote_waves:[[1,1,
24]],repeat:[[0,1,24],[1,1,24]],repeat1:[[0,1,24],[1,1,24]],replay:[[1,1,24]],rotate_clockwise:[[1,1,24]],rotate_counterclockwise:[[1,1,24]],rotate_landscape:[[1,1,24]],rotate_portrait:[[1,1,24]],rss:[[1,2,24]],rss_slash:[[1,1,24]],ruby:[[1,2,24]],samples:[[0,2,24],[1,2,24]],saturation:[[1,2,24]],scale:[[1,4,24]],scissors:[[0,7,24],[1,7,24]],scissors_cut:[[1,4,24]],scribble:[[1,1,24]],sd:[[0,3,24],[1,3,24]],search:[[0,10,24],[1,10,24]],search_shield:[[0,1,24],[1,1,24]],search_spark:[[1,1,24]],seek_forward:[[0,
1,24]],seek_rewind:[[0,1,24]],send:[[0,4,24,!0],[1,4,24,!0]],shadow:[[1,1,24]],shadow_hard:[[1,2,24]],shadow_soft:[[1,2,24]],shapes:[[0,3,24],[1,3,24]],share:[[1,10,24,!0]],share_android:[[0,2,24],[1,2,24]],share_ios:[[1,2,24]],shield:[[0,6,24],[1,6,24]],shield_add:[[1,2,24]],shield_health:[[1,1,24]],shield_overflow:[[1,2,24]],shield_slash:[[1,1,24]],shield_x:[[0,2,24],[1,2,24]],shorts:[[0,2,24],[1,2,24]],shorts_empty:[[0,2,24],[1,2,24]],shuffle:[[0,2,24],[1,2,24]],skip10_back:[[1,1,24]],skip10_forward:[[1,
1,24]],skip15_back:[[1,1,24]],skip15_forward:[[1,1,24]],skip20_back:[[1,1,24]],skip20_forward:[[1,1,24]],skip30_back:[[1,1,24]],skip30_forward:[[1,1,24]],skip5_back:[[1,1,24]],skip5_forward:[[1,1,24]],skip60_back:[[1,1,24]],skip60_forward:[[1,1,24]],skip_down:[[0,5,24],[1,5,24]],skip_next:[[0,5,24],[1,5,24]],skip_previous:[[0,5,24],[1,5,24]],skip_up:[[0,5,24],[1,5,24]],slash_forward:[[1,1,24]],sleep_timer:[[0,2,24],[1,2,24]],snowflake:[[1,1,24]],soccer_ball:[[1,3,24]],sonar:[[1,1,24]],sort:[[1,1,
24]],spacebar:[[1,2,24]],spark:[[0,8,24],[1,8,24]],spark_bubble_chat:[[1,1,24]],spark_waves:[[0,2,24],[1,2,24]],sparkles:[[0,2,24],[1,2,24]],speaker:[[1,2,24]],speaker_headset:[[1,2,24]],speaker_slash:[[1,1,24]],speaker_stack:[[1,1,24]],speaker_stack_slash:[[1,1,24]],speedometer:[[0,2,24],[1,2,24]],splice:[[1,1,24]],split:[[1,4,24]],spotlight:[[0,3,24],[1,3,24]],spreadsheet:[[1,1,24]],square:[[1,1,24]],square3_stack:[[0,2,24],[1,2,24]],square3d_stack:[[0,2,24],[1,2,24]],square_grid2x2:[[1,1,24]],
square_grid3x3:[[0,2,24],[1,2,24]],square_pencil:[[0,2,24],[1,2,24]],stable_volume:[[0,2,24],[1,2,24]],star:[[0,5,24],[1,5,24]],star_circle:[[0,3,24],[1,3,24]],star_half_filled:[[1,1,24]],star_ticket:[[0,2,24],[1,2,24]],star_trophy:[[1,1,24]],star_tv:[[1,1,24]],sticker:[[1,2,24]],stop:[[0,3,24],[1,3,24]],stop_circle:[[0,2,24],[1,2,24]],stopwatch:[[0,5,24],[1,5,24]],storage:[[0,2,24],[1,2,24]],subscriptions:[[0,10,24],[1,10,24]],subtitles:[[0,4,24],[1,4,24]],subtitles_bubble:[[1,1,24]],sum:[[1,1,24]],
super_chat:[[0,8,24],[1,8,24]],super_star:[[1,1,24]],super_sticker:[[0,8,24],[1,8,24]],super_store:[[0,3,24],[1,3,24]],surround_sound:[[0,2,24],[1,2,24]],tablet_landscape:[[1,1,24]],target:[[1,2,24]],target_add:[[1,2,24]],template_add:[[1,3,24]],template_play:[[0,3,24],[1,3,24]],text_align_center:[[0,2,24],[1,2,24]],text_align_left:[[0,2,24],[1,2,24]],text_align_right:[[0,2,24],[1,2,24]],text_bubble:[[0,2,24],[1,2,24]],text_page:[[0,2,24],[1,2,24]],text_page_alert:[[1,1,24]],text_page_check:[[1,1,
24]],text_page_info:[[1,1,24]],texture:[[1,1,24]],theater:[[1,1,24]],theme:[[0,2,24],[1,2,24]],thermometer:[[1,2,24]],thumb_down:[[0,21,24],[1,21,24]],thumb_up:[[0,19,24],[1,19,24]],thumb_up_down:[[0,2,24]],tilt:[[1,4,24]],timeline:[[1,3,24]],timeline_spark:[[1,1,24]],toolbox:[[0,4,24],[1,4,24]],transcript:[[1,2,24]],transition:[[0,5,24],[1,5,24]],translate:[[1,2,24]],trash_can:[[0,9,24],[1,9,24]],trending:[[0,2,24],[1,2,24]],triangle_down:[[0,7,24],[1,7,24]],triangle_up:[[0,2,24],[1,2,24]],trophy:[[0,
3,24],[1,3,24]],truck:[[0,5,24],[1,5,24]],tv:[[0,7,24],[1,7,24]],tv_arrow_left:[[1,2,24]],tv_circle:[[0,3,24],[1,3,24]],tv_mobile:[[1,1,24]],unarchive:[[1,1,24]],undo:[[1,1,24]],upload:[[1,5,24]],variable:[[1,4,24]],video:[[0,2,24],[1,2,24]],video_camera:[[1,8,24]],video_camera_add:[[1,2,24]],video_link:[[1,4,24]],video_spark:[[1,1,24]],video_stitch:[[1,2,24]],view_column3:[[0,2,24],[1,2,24]],view_column3_row2:[[0,2,24],[1,2,24]],view_compact:[[0,2,24],[1,2,24]],view_feed:[[0,2,24],[1,2,24]],view_list:[[1,
1,24]],view_row2:[[0,2,24],[1,2,24]],view_timeline:[[1,1,24]],volume_fade:[[1,2,24]],volume_max:[[0,2,24],[1,2,24]],volume_min:[[0,2,24],[1,2,24]],volume_mute:[[0,2,24],[1,2,24]],vr:[[0,7,24],[1,7,24]],watch:[[1,1,24]],water:[[1,1,24]],waveform:[[1,2,24]],waveform_spark:[[1,1,24]],wrench:[[1,2,24]],x:[[1,9,24]],x_circle:[[0,7,24],[1,7,24]],x_octagon:[[1,2,24]],x_rectangle:[[1,1,24]],yen_sign_rectangle:[[0,2,24],[1,2,24]],youtube:[[0,2,24],[1,2,24]],youtube_kids:[[0,5,24],[1,5,24]],youtube_music:[[0,
7,24],[1,7,24]],youtube_shorts:[[0,10,24],[1,10,24]],youtube_studio:[[0,8,24],[1,8,24]],youtube_tv:[[0,8,24],[1,8,24]],zoom_in:[[0,2,24],[1,2,24]],zoom_out:[[0,2,24],[1,2,24]]};var FWw={LIKE_DELHI_PLAYER:"LIKE",DISLIKE_DELHI_PLAYER:"DISLIKE",SHARE_DELHI_PLAYER:"SHARE",COMMENT_DELHI_PLAYER:"COMMENT",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",PLAYER_FULL_ENTER_DELHI_PLAYER:"PLAYER_FULL_ENTER",PLAYER_FULL_EXIT_DELHI_PLAYER:"PLAYER_FULL_EXIT",PAUSE_DELHI_PLAYER_FILLED:"PAUSE",PLAY_ARROW_DELHI_PLAYER_FILLED:"PLAY_ARROW"},
SA=function(S){this.iconUrlProvider=S};
SA.prototype.resolveIcon=function(S,p){var U=FWw[S.iconName.toUpperCase()];U&&(S.iconName=U);var Y=S.iconName;Y=Y.replace(/-/g,"_");S=Object.assign({},S,{iconName:this.mapIconTypeToStandardName(Y,!!U)||Y.toLowerCase()});if(_.y("enable_web_delhi_icons")||U){var L;return Rse(RgQ,S,((L=this.iconUrlProvider)==null?void 0:L.getYtStandardUrl)||Pnw,p)}var I;return Rse(hgE,S,((I=this.iconUrlProvider)==null?void 0:I.getYtStandardUrl)||XRq,p)};
SA.prototype.mapIconTypeToStandardName=function(S,p){return _.y("enable_web_delhi_icons")||p?G6m[S.toUpperCase()]:rwP[S.toUpperCase()]};
SA[vF]=[_.AW(KWQ)];var X5I=new Set(["offline_pause","pause","play_all","play_arrow","youtube_music"]),P3d=function(S){this.urlProvider=this.iconUrlProvider=S};
_.r(P3d,SA);
P3d.prototype.resolveIcon=function(S,p){S.iconName==="youtube_logo"&&(S.iconName="yt-logo-updated");if(S.iconName==="youtube_premium_logo"||S.iconName==="youtube_red_logo")S.iconName="yt-logo-red-updated";var U=Object.assign({},S);S.iconName==="menu"&&(_.y("enable_web_delhi_icons")||(U.iconName="bars_3"),U.iconStyle="youtube_outline");S.iconName==="mail"&&S.iconSetName==="socialNetworksRound"&&(U.iconName="email");S.iconName==="more"&&(U.iconName="overflow_horizontal");S.iconName==="fullscreen"&&(U.iconName=
"screen_full");S.iconName==="premium_standalone"&&(U.iconName="premium_standalone_cairo");_.y("enable_connect_icon_update_web")&&S.iconName==="account_linked"&&(U.iconName="circles_overlap_check",U.iconStyle="youtube_fill");_.y("enable_connect_icon_update_web")&&S.iconName==="account_unlinked"&&(U.iconName="circles_overlap",U.iconStyle="youtube_outline");X5I.has(S.iconName)&&(U.iconStyle="youtube_fill");S=Object.assign({},U,{iconName:(SA.prototype.mapIconTypeToStandardName.call(this,U.iconName)||
U.iconName).toLowerCase()});var Y;return(S=Rse(Jwt,S,((Y=this.urlProvider)==null?void 0:Y.getUrl)||Z1w,p))?S:SA.prototype.resolveIcon.call(this,U,p)};
P3d[vF]=[_.AW(KWQ)];_.Zwj=1;var pN=function(){};
_.r(pN,sv);pN.prototype.resolveCommand=function(S){var p,U;return _.T(function(Y){p=_.b(S,SpH);if(!p)return Y.return();U=Number(p.enableDelayedPacfLoggingTvMs);if(isNaN(U)){var L=Lm();Iyl(L,p,0)}else Iyl(Lm(),p,U);_.OV(Y)})};_.UG=function(){};
_.r(_.UG,sv);
_.UG.prototype.resolveCommand=function(S,p){var U=this,Y,L,I,V,W,O,D;return _.T(function(z){Y=_.b(S,pOt);I=(L=p.form)==null?void 0:L.element;W=(V=I)==null?void 0:V.closest("ytd-enforcement-message-view-model");if(!Y||!W)return z.return();U.allowAdsAction||(O=Y.fundingChoiceInstructionPageUrl,U.allowAdsAction=new Z_P(window,_.Zu(O)));var Q=U.allowAdsAction;Q.wallElement=W;Q.allowAdsPopup.style.setProperty("display","flex","important");var J=Q.scrollManager;J.originalBodyOverflow=J.JSC$8005_domHelper.JSC$7335_document_.body.style.overflow;J.JSC$8005_domHelper.JSC$7335_document_.body.style.overflow=
"hidden";Q.wallElement.style.setProperty("display","none","important");m2t(Q.accessibilityManager,Q.allowAdsPopup.querySelector(".fc-whitelist-dialog"));if((D=U.allowAdsAction.allowAdsPopup)&&D instanceof HTMLElement)for(Q=_.d(Object.entries({position:"absolute","z-index":"10000",top:"50%",left:"50%",transform:"translate(-50%, -50%)"})),J=Q.next();!J.done;J=Q.next()){var K=_.d(J.value);J=K.next().value;K=K.next().value;D.style.setProperty(J,K)}_.OV(z)})};
_.UG.prototype.dispose=function(){this.allowAdsAction&&(this.allowAdsAction.tearDown(),this.allowAdsAction=void 0)};var LN=function(){};
_.r(LN,sv);LN.prototype.resolveCommand=function(S){var p;return _.T(function(U){p=_.b(S,kCt);if(!p)return U.return();hSw(S);_.OV(U)})};var M1=function(S){this.JSC$15062_commandHandler=S};
_.r(M1,sv);
M1.prototype.resolveCommand=function(S){var p=this,U,Y,L,I,V,W,O,D;return _.T(function(z){if(z.nextAddress==1){U=_.b(S,a7c);if((Y=U)==null||!Y.text||!navigator.clipboard)return z.return();_.M2(z,2);return _.k(z,navigator.clipboard.writeText(U.text),4)}if(z.nextAddress!=2){if(!U.successActions||U.successActions.length===0)return z.return();L=_.d(U.successActions);for(I=L.next();!I.done;I=L.next())V=I.value,p.JSC$15062_commandHandler.resolveCommand(V);return _.CA(z,0)}_.W4(z);if(!U.failureActions||U.failureActions.length===
0)return z.return();W=_.d(U.failureActions);for(O=W.next();!O.done;O=W.next())D=O.value,p.JSC$15062_commandHandler.resolveCommand(D);_.OV(z)})};
M1[vF]=[_.cQ];var IG=function(S){this.JSC$15066_commandHandler=S};
_.r(IG,sv);
IG.prototype.resolveCommand=function(S,p){var U=this,Y,L,I,V,W,O,D,z,Q,J;return _.T(function(K){switch(K.nextAddress){case 1:Y=_.b(S,yhq);if(!Y)return K.return();_.M2(K,2);if(!Y.imageBytes&&!Y.imageUrl)throw Error("vi");if(!Y.imageUrl){if(Y.imageBytes){I=Y.imageBytes;V=I.replace(/-/g,"+").replace(/_/g,"/");var G=esw(V);L=_.Kh(G)}K.jumpTo(4);break}return _.k(K,fetch(Y.imageUrl),5);case 5:return W=K.yieldResult,_.k(K,W.blob(),6);case 6:O=K.yieldResult,L=_.Kh(O);case 4:Q=(D=p)==null?void 0:(z=D.form)==
null?void 0:z.element;J=document.createElement("a");hA(J,L);Q.appendChild(J);J.download="";J.click();Q.removeChild(J);URL.revokeObjectURL(_.DO(L));Y.successCommand&&U.JSC$15066_commandHandler.resolveCommand(Y.successCommand);_.CA(K,0);break;case 2:_.W4(K),Y.errorCommand&&U.JSC$15066_commandHandler.resolveCommand(Y.errorCommand),_.OV(K)}})};
IG[vF]=[_.cQ];var dw=function(S){this.store=S};
_.r(dw,sv);dw.prototype.resolveCommand=function(S){var p=this,U,Y,L;return _.T(function(I){Y=(U=_.b(S,_.Ake))==null?void 0:U.entityBatchUpdate;if(!Y)return I.jumpTo(0);L=Object.assign({},Y,{mutations:[].concat(_.jo(Y.mutations||[]))});return _.k(I,_.Oc(L,p.store),0)})};var sjE=function(S){this.JSC$15073_commandHandler=S;this.feedbackDialogMap=new Map};
sjE.prototype.openDialog=function(S,p){(S=this.feedbackDialogMap.get(S))&&this.JSC$15073_commandHandler.resolveCommand({openPopupAction:{popupType:"DIALOG",popup:S}},p)};
sjE[vF]=[_.cQ];var Vx=new _.$g("FEEDBACK_CONTROLLER_TOKEN");var Tn=new _.$g("APP_STORE_TOKEN");var We=function(S,p){this.store=S;this.controller=p};
_.r(We,sv);We.prototype.resolveCommand=function(S,p){var U=this,Y,L,I,V,W,O,D,z,Q,J,K,G,X,Z,l,a,N;return _.T(function(m){if(m.nextAddress==1){Y=_.b(S,_.Rp);if(I=(L=Y)==null?void 0:L.contentId)for(W=_.d(((V=Y)==null?void 0:V.actions)||[]),O=W.next();!O.done;O=W.next())D=O.value,egd(U,D,I);J=(z=p)==null?void 0:(Q=z.form)==null?void 0:Q.element;return _.k(m,_.Yd(J,[S]).catch(function(){}),2)}K=m.yieldResult;
((G=K)==null?0:(X=G.data)==null?0:(Z=X.feedbackResponses)==null?0:Z.length)&&(a=(l=K.data.feedbackResponses[0])==null?void 0:l.followUpDialog)&&I&&(N=U.controller)!=null&&N.feedbackDialogMap.set(I,a);_.OV(m)})};
var egd=function(S,p,U){var Y=_.b(p,_.I2);if(Y){Y=_.d(Y.commands||[]);for(var L=Y.next();!L.done;L=Y.next())egd(S,L.value,U)}_.b(p,_.z1)&&S.store.dispatch(_.WG("commandEntity",f8u(U),{key:U,command:p}));_.b(p,tJE)&&S.store.dispatch(_.WG("commandEntity",f8u(U),{key:U,command:p}))};
We[vF]=[Tn,Vx];var OG=function(S){this.controller=S};
_.r(OG,sv);OG.prototype.resolveCommand=function(S,p){var U=this,Y,L,I,V;return _.T(function(W){Y=_.b(S,_.aV);I=(L=Y)==null?void 0:L.targetId;if(((V=Y)==null?void 0:V.signal)!=="TELL_US_WHY"||!I)return W.return();U.controller.openDialog(I,p);_.OV(W)})};
OG[vF]=[Vx];var kT=function(S){this.store=S};
_.r(kT,sv);kT.prototype.resolveCommand=function(S,p){var U=this,Y,L,I,V,W,O,D;return _.T(function(z){Y=_.b(S,vJu);I=(L=Y)==null?void 0:L.contentId;O=(V=p)==null?void 0:(W=V.form)==null?void 0:W.element;D=_.Yd(O,[S]);I&&U.undo(I);return _.k(z,D,0)})};
kT.prototype.undo=function(S){this.store.dispatch(_.WG("commandEntity",f8u(S),{key:S,command:void 0}))};
kT[vF]=[Tn];var He=function(S){this.JSC$15088_commandHandler=S};
_.r(He,sv);He.prototype.resolveCommand=function(S){var p=this,U,Y,L,I,V,W,O,D;return _.T(function(z){U=_.b(S,H0q);Y=U.flowStateKey;L=U.validationFailureCommand;I=U.submitValidFormCommand;V=E2(_.Al,[Y||""]);W=_.b(V,zXI);((O=W)==null?0:O.isValid)&&I&&p.JSC$15088_commandHandler.resolveCommand(I);((D=W)==null?0:D.isValid)||!L||p.JSC$15088_commandHandler.resolveCommand(L);_.OV(z)})};
He[vF]=[_.cQ];var DY=function(S){this.innertubeTransportService=S};
_.r(DY,sv);DY.prototype.resolveCommand=function(S,p){var U=this,Y;return _.T(function(L){return _.k(L,_.lZ(U.innertubeTransportService,S,(Y=p)==null?void 0:Y.form).then(function(I){var V,W;p==null||(V=p.commandController)==null||(W=V.onSuccess)==null||W.call(V,S,I)},function(I){var V,W;
p==null||(V=p.commandController)==null||(W=V.onServerError)==null||W.call(V,S,I)}),0)})};
DY[vF]=[_.F3];var zn=function(){};
_.r(zn,sv);zn.prototype.resolveCommand=function(S){var p,U,Y,L;return _.T(function(I){if(p=_.b(S,_.r1m)){if(U=p.gtmId)Y=_.g7("GL",""),_.Jj(U,Y);(L=p.gtmData)&&_.ya(L)}_.OV(I)})};var Qx=function(S,p){this.innertubeTransportService=S;this.JSC$15099_actionRouter=p};
_.r(Qx,sv);Qx.prototype.resolveCommand=function(S){var p=this,U,Y;return _.T(function(L){U=_.b(S,b4c);if(!U)return L.return();Y=U.command;if(!Y)return L.return();p.JSC$15099_actionRouter.triggerAction("yt-insert-rich-section-action",U);return _.k(L,_.lZ(p.innertubeTransportService,Y,{disableCache:!0}),0)})};
Qx[vF]=[_.F3,mS];u2k.bind(null,ee);var gHc=u2k.bind(null,rMd);lWr.bind(null,ee);var uve=lWr.bind(null,rMd);fWd.bind(null,ee);var w5E=fWd.bind(null,rMd);var nN=function(){};
_.r(nN,sv);
nN.prototype.resolveCommand=function(S){var p,U,Y,L,I,V,W,O,D,z;return _.T(function(Q){p=_.b(S,AxQ);if(!p)return Q.return();Y=((U=p.operations)==null?void 0:U.operations)||[];L=_.d(Y);for(I=L.next();!I.done;I=L.next())if(V=I.value,V.insertItemSectionContent){var J=V.insertItemSectionContent,K=J.contents||[];J.insertByPositionInSection?gHc(J.insertByPositionInSection.sectionTargetId,K,J.insertByPositionInSection.position):J.insertByRelativePositionInSection&&J.insertByRelativePositionInSection.sectionTargetId&&J.insertByRelativePositionInSection.itemTargetId&&
uve(J.insertByRelativePositionInSection.sectionTargetId,J.insertByRelativePositionInSection.itemTargetId,K,J.insertByRelativePositionInSection.relativePosition)}else V.replaceSection?(J=V.replaceSection,K={},J.replaceByTargetId?K=J.replaceByTargetId:J.replaceByGroupId&&(K={targetId:J.replaceByGroupId.groupId,newContent:J.replaceByGroupId.newContent,undoKey:""}),K.newContent&&RVE(K.targetId,{continuationItems:[K.newContent]})):V.removeItem?(J=V.removeItem,J.removeByTargetId&&J.sectionTargetId&&w5E(J.sectionTargetId,
J.removeByTargetId.targetIds||[])):V.removeSection&&(V.removeSection.removeByTargetId?(W=void 0,lXm(((W=V.removeSection)==null?void 0:W.removeByTargetId.targetIds)||[])):V.removeSection.removeByGroupId&&(O=void 0,lXm(((O=V.removeSection)==null?void 0:O.removeByGroupId.groupIds)||[])));z=((D=p.operations)==null?void 0:D.scrollConfig)||{};aXP(z);_.OV(Q)})};
var lXm=function(S){S=_.d(S);for(var p=S.next();!p.done;p=S.next())RVE(p.value,{continuationItems:[]})},aXP=function(S){if(S.scrollToItem){var p=S.scrollToItem.item||{},U=p.itemTargetId;
p=p.sectionTargetId;if(U&&p){var Y=document.querySelector("[data-target-id="+p+"]"),L=Y==null?void 0:Y.querySelector("[data-target-id="+U+"]");Y&&L&&setTimeout(function(){var I=L.offsetTop-Y.offsetTop,V;if(((V=S.scrollToItem)==null?void 0:V.scrollPosition)==="SCROLL_POSITION_CENTER")I-=Y.offsetHeight/2,I+=L.offsetHeight/2;else{var W;((W=S.scrollToItem)==null?void 0:W.scrollPosition)==="SCROLL_POSITION_END"&&(I-=Y.offsetHeight,I+=L.offsetHeight)}Y.scroll({top:I,behavior:"smooth"})},100)}}};var JJ=new _.$g("CLIENT_NAME_TOKEN");var fXm=new _.$g("DEFAULT_STORE_EXPIRATION_TOKEN");var IUX=new _.$g("CLIENT_LOCATION_SERVICE_TOKEN");var yx=function(S,p,U){this.clientName=S||_.g7("INNERTUBE_CLIENT_NAME","WEB");this.clientLocationService=p||_.Gv.getInstance();this.JSC$15127_commandHandler=U||_.VO.instance};
_.r(yx,sv);yx.prototype.resolveCommand=function(S){var p=this,U,Y;return _.T(function(L){Y=(U=_.b(S,ISm))==null?void 0:U.onComplete;p.clientLocationService.clearLocationPlayabilityToken(p.clientName);Y&&p.JSC$15127_commandHandler.resolveCommand(Y);_.OV(L)})};
yx[vF]=[JJ,IUX,_.cQ];var KN=function(S){this.innertubeTransportService=S};
_.r(KN,sv);KN.prototype.resolveCommand=function(S,p){var U=this,Y,L,I,V;return _.T(function(W){I=(Y=p)==null?void 0:(L=Y.form)==null?void 0:L.element;return _.k(W,_.lZ(U.innertubeTransportService,S,(V=p)==null?void 0:V.form).then(function(O){lYE(I,new CustomEvent("yt-service-request-completed"),{data:O},_.g7("openPopupConfig"))}),0)})};
KN[vF]=[_.F3];var bf=function(){};
_.r(bf,sv);bf.prototype.resolveCommand=function(S){var p,U;return _.T(function(Y){p=_.b(S,yHm);U=document.querySelector("mini-app-container-view-model");if(!p||!U)return Y.return();p.isPlaying?U.dispatchEvent(new Event("play")):U.dispatchEvent(new Event("pause"));_.OV(Y)})};var jA=function(){};
_.r(jA,sv);jA.prototype.resolveCommand=function(S){var p,U,Y,L,I,V,W;return _.T(function(O){p=_.b(S,nSm);if((U=p)==null||!U.paramKeys)return O.return();Y=p.paramKeys;L=_.mz(window.location.href);I=_.d(Y);for(V=I.next();!V.done;V=I.next())W=V.value,L.JSC$8037_queryData_.remove(W);window.history.replaceState(window.history.state,document.title,L.toString());_.OV(O)})};var C3m=function(){this.dropdownMap=new Map};_.x7c=new _.$g("DROPDOWN_CONTROLLER_TOKEN");var rw=function(S){this.controller=S};
_.r(rw,sv);rw.prototype.resolveCommand=function(S){var p=this,U,Y,L,I;return _.T(function(V){U=_.b(S,AhH);if(!U)return V.return();Y=U;L=Y.dropdownId;I=Y.selectedOptionIndex;if(L===void 0||I===void 0)return V.return();var W=p.controller.dropdownMap.get(L);W&&W(I);_.OV(V)})};
rw[vF]=[_.x7c];var Gn=function(S){this.controller=S};
_.r(Gn,sv);Gn.prototype.resolveCommand=function(S){var p=this,U;return _.T(function(Y){return(U=_.b(S,DNd))?_.k(Y,p.controller.closeDialog(),0):Y.return()})};
Gn[vF]=[_.bA];var hJ=function(S){this.controller=S};
_.r(hJ,sv);hJ.prototype.resolveCommand=function(S){var p=this,U,Y;return _.T(function(L){U=_.b(S,qDE);if(!U)return L.return();var I,V=U.panelIdentifier||((I=U.identifier)==null?void 0:I.tag);if(!V)throw Error("wi");return(Y=V)?_.k(L,p.controller.hidePanel(Y),0):L.jumpTo(0)})};
hJ[vF]=[_.y6];var RG=function(S,p){this.innertubeTransportService=S;this.controller=p};
_.r(RG,sv);RG.prototype.resolveCommand=function(S){var p=this,U,Y,L,I;return _.T(function(V){if(V.nextAddress==1)return U=_.b(S,A2m),(Y=U)!=null&&Y.panelId?_.k(V,p.controller.getReloadContinuation(U.panelId),2):V.return();if(V.nextAddress!=3)return(L=V.yieldResult)?_.k(V,_.lZ(p.innertubeTransportService,S,{continuation:L}),3):V.return();I=V.yieldResult;return _.k(V,p.controller.updatePanel(U.panelId,I.content,!1),0)})};
RG[vF]=[_.F3,_.y6];var FH=function(S,p,U){this.innertubeTransportService=S;this.JSC$15163_screenManager=p;this.JSC$15163_commandHandler=U};
_.r(FH,sv);
FH.prototype.resolveCommand=function(S){var p=this,U,Y,L,I,V,W;return _.T(function(O){if(O.nextAddress==1){U=_.b(S,_.xCt);if(!U)return O.return();if(U.commands)for(Y=_.d(U.commands),L=Y.next();!L.done;L=Y.next())I=L.value,p.JSC$15163_commandHandler.resolveCommand(I,{disableClickTracking:!0});V=_.JS(S.clickTrackingParams);_.S8(p.JSC$15163_screenManager,21760,V,{layer:7,parentLayer:0});return _.k(O,_.lZ(p.innertubeTransportService,S),2)}W=O.yieldResult;if(!W)return O.return();p.JSC$15163_screenManager.graftServerVe(W.trackingParams,V,
7);_.OV(O)})};
FH[vF]=[_.F3,_.Jt,_.cQ];var XH=new _.$g("PANEL_LOADING_STRATEGY_TOKEN");var Pe=function(S,p){this.controller=S;this.panelLoadingStrategy=p};
_.r(Pe,sv);
Pe.prototype.resolveCommand=function(S,p){var U=this,Y,L,I;return _.T(function(V){Y=_.b(S,gze);if((L=Y)==null||!L.panelLoadingStrategy)return V.return();I=function(W){var O,D,z,Q,J,K,G,X,Z;return _.T(function(l){D=_.b((O=W.dialogViewModel)==null?void 0:O.header,tiE);z={viewModel:W.dialogViewModel};Q={};if(G=_.y("web_enable_dialog_header_label")?(J=D)==null?void 0:(K=J.headline)==null?void 0:K.content:void 0)Q.ariaLabel=G;Y.dismissOnBackgroundTap===!1&&(Q.isModal=!0);return W.dialogViewModel?_.k(l,
U.controller.openDialog(z,(X=p)==null?void 0:(Z=X.form)==null?void 0:Z.element,Q),0):l.return()})};
return _.k(V,U.panelLoadingStrategy.execute({command:S,data:Y.panelLoadingStrategy,renderFn:I,createScreenConfig:{layer:4}}),0)})};
Pe[vF]=[_.bA,XH];var ZY=function(S,p,U){this.innertubeTransportService=S;this.controller=p;this.JSC$15183_screenManager=U};
_.r(ZY,sv);
ZY.prototype.resolveCommand=function(S,p){var U=this,Y,L,I,V,W,O,D,z,Q,J,K,G;return _.T(function(X){switch(X.nextAddress){case 1:Y=_.b(S,_.hx);if(!Y)return X.return();var Z,l=Y.panelIdentifier||((Z=Y.identifier)==null?void 0:Z.tag);if(!l)throw Error("wi");L=l;return _.k(X,U.controller.isVisible(L,!0),2);case 2:if((I=X.yieldResult)&&Y.blockIfPanelOpen)return X.return();O=(W=(V=U.controller).getPanelContent)==null?void 0:W.call(V,L);if(!(Z=O))if(Y){var a;Z=((a=Y.globalConfiguration)==null?void 0:a.initialState)||
Y.engagementPanel;if(a=!Z)a=!!(Y==null?0:(l=Y.engagementPanelPresentationConfigs)==null?0:l.engagementPanelPopupPresentationConfig);a&&(Z=_.CnG(Y.panelIdentifier,Y.identifier))}else Z=void 0;D=Z;z=Y.engagementPanelPresentationConfigs;Q=Y.engagementPanelExtras;return _.k(X,U.controller.showPanel(L,D,z,Q,(J=p)==null?void 0:(K=J.form)==null?void 0:K.element),3);case 3:if(!Y.globalConfiguration){X.jumpTo(0);break}_.S8(U.JSC$15183_screenManager,32633);return _.k(X,_.lZ(U.innertubeTransportService,S),5);
case 5:return G=X.yieldResult,U.JSC$15183_screenManager.graftServerVe(G.trackingParams),_.k(X,U.controller.updatePanel(L,G.content,!0,Q,void 0,G.updatePanelContinuationData),0)}})};
ZY[vF]=[_.F3,_.y6,_.Jt];var sG=function(S,p){this.controller=S;this.panelLoadingStrategy=p};
_.r(sG,sv);sG.prototype.resolveCommand=function(S,p){var U=this,Y,L,I,V,W,O;return _.T(function(D){Y=_.b(S,_.OK);if((L=Y)==null||!L.panelLoadingStrategy)return D.return();W=EHI(U.controller,(I=p)==null?void 0:(V=I.form)==null?void 0:V.element);O=function(z){return _.T(function(Q){return z.sheetViewModel?_.k(Q,U.controller.openSheet({viewModel:z.sheetViewModel},W),0):Q.return()})};
return _.k(D,U.panelLoadingStrategy.execute({command:S,data:Y.panelLoadingStrategy,renderFn:O,createScreenConfig:{layer:0}}),0)})};
sG[vF]=[_.K7,XH];var eA=function(S,p){this.controller=S;this.JSC$15191_commandHandler=p};
_.r(eA,sv);eA.prototype.resolveCommand=function(S,p){var U=this,Y,L,I;return _.T(function(V){if(V.nextAddress==1){Y=_.b(S,pFq);var W=_.b(Y.showCommand,_.hx),O,D,z=(D=W==null?void 0:W.panelIdentifier)!=null?D:W==null?void 0:(O=W.identifier)==null?void 0:O.tag;if(!z)throw Error("xi");L=z;return _.k(V,U.controller.isVisible(L),2)}return(I=V.yieldResult)?_.k(V,U.controller.hidePanel(L),0):_.k(V,U.JSC$15191_commandHandler.resolveCommand(Y.showCommand,p),0)})};
eA[vF]=[_.y6,_.cQ];var gw=function(S,p,U){this.innertubeTransportService=S;this.controller=p;this.JSC$15194_screenManager=U};
_.r(gw,sv);
gw.prototype.resolveCommand=function(S){var p=this,U,Y,L,I,V,W,O,D,z,Q,J,K,G,X,Z,l,a,N,m,A,q,TG;return _.T(function(Je){switch(Je.nextAddress){case 1:return Y=U=_.b(S,UVP),L=Y.targetPanelIdentifier,I=Y.contentSourcePanelIdentifier,V=Y.globalConfiguration,((W=L)==null?0:W.tag)&&((O=I)==null?0:O.tag)?V?_.k(Je,p.controller.showPanel(L.tag,_.CnG(L.tag,L),void 0,void 0,void 0),5):_.k(Je,(J=(Q=p.controller).getPanel)==null?void 0:J.call(Q,I.tag),4):Je.return();case 4:K=Je.yieldResult;D=(G=K)==null?void 0:
(Z=(X=G).getPanelContent)==null?void 0:Z.call(X);Je.jumpTo(3);break;case 5:return _.k(Je,_.lZ(p.innertubeTransportService,S),6);case 6:l=Je.yieldResult,((a=l)==null?0:a.trackingParams)&&p.JSC$15194_screenManager.graftServerVe(l.trackingParams),D=(N=l)==null?void 0:N.content,z=(m=l)==null?void 0:m.updatePanelContinuationData;case 3:if(q=(A=D)==null?void 0:A.engagementPanelSectionListRenderer)return _.k(Je,p.controller.showPanel(L.tag,void 0,void 0,void 0,void 0,{content:q.content,secondaryHeaderContent:(TG=
q.header)!=null?TG:{},targetId:q.targetId},z),0);Je.jumpTo(0)}})};
gw[vF]=[_.F3,_.y6,_.Jt];var uf=function(S,p){this.JSC$15202_commandHandler=S;this.store=p};
_.r(uf,sv);uf.prototype.resolveCommand=function(S){var p=this,U,Y,L,I,V;return _.T(function(W){if(W.nextAddress==1)return(U=_.b(S,kBI))?_.k(W,_.p6(),2):W.return();Y=W.yieldResult;if(!Y)return W.return();m3X(Y,p.store,(L=U)==null?void 0:L.languageCode);I=Y.isSubtitlesOn()?_.Oh("CAPTION_ON_TOAST",void 0,"Subtitles/CC turned on"):_.Oh("CAPTION_OFF_TOAST",void 0,"Subtitles/CC turned off");V=_.N9(I);p.JSC$15202_commandHandler.resolveCommand(V);_.OV(W)})};
uf[vF]=[_.cQ,M_];var ww=function(S,p){this.shortsPlayerPromise=S;this.JSC$15206_commandHandler=p};
_.r(ww,sv);
ww.prototype.resolveCommand=function(S){var p=this,U,Y,L,I,V,W,O,D;return _.T(function(z){if(z.nextAddress==1)return(U=_.b(S,XFc))?_.k(z,p.shortsPlayerPromise,2):z.return();Y=z.yieldResult;var Q=oQR(Y);Q!=null&&Q.length||(Y.loadModule("captions"),Q=oQR(Y));L=Q;if((I=L)==null||!I.length)return V=_.Oh("CLOSED_CAPTIONS_DISABLED",void 0,"No captions are available for this video"),W=_.N9(V),p.JSC$15206_commandHandler.resolveCommand(W),z.return();Y.toggleSubtitles();O=Y.isSubtitlesOn()?_.Oh("CAPTION_ON_TOAST",void 0,
"Subtitles/CC turned on"):_.Oh("CAPTION_OFF_TOAST",void 0,"Subtitles/CC turned off");D=_.N9(O);p.JSC$15206_commandHandler.resolveCommand(D);_.OV(z)})};
ww[vF]=[_.DbH,_.cQ];var lf=function(S){this.JSC$15209_playerPromise=S};
_.r(lf,sv);lf.prototype.resolveCommand=function(S){var p=this,U,Y,L,I;return _.T(function(V){if(V.nextAddress==1)return(U=_.b(S,c2Q))?_.k(V,p.JSC$15209_playerPromise,2):V.return();Y=V.yieldResult;L=Y.getVideoData().video_id;U.videoId===L&&(I=Number(U.offsetFromVideoStartMilliseconds),I>=0&&Y.seekTo(I/1E3));_.OV(V)})};
lf[vF]=[_.A7];var m7P=_.M9("sfv_currently_playing_audio_item_key","sfvAudioItemCurrentlyPlayingEntity"),aG=function(S){this.store=S};
_.r(aG,sv);
var oHw=function(S){var p,U,Y,L;return _.T(function(I){if(I.nextAddress==1)return p=_.g7("WEB_PLAYER_CONTEXT_CONFIGS").WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_SFV_AUDIO_ITEM,U=_.g7("WEB_PLAYER_CONTEXT_CONFIGS").WEB_PLAYER_CONTEXT_CONFIG_ID_MWEB_SFV_AUDIO_ITEM,Y=p||U,S.mainAppPlayer=new Es(Y),_.k(I,S.mainAppPlayer.api,2);L=I.yieldResult;L.addEventListener("onStateChange",S.JSC$15213_playerStateChangeListener.bind(S));document.addEventListener("yt-page-data-updated",S.pauseOnNavigation.bind(S));window.addEventListener("state-navigatestart",
S.pauseOnNavigation.bind(S));_.OV(I)})};
aG.prototype.JSC$15213_playerStateChangeListener=function(S){switch(S){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"}vHj(this)};
var vHj=function(S){S.store.dispatch(_.WG("sfvAudioItemCurrentlyPlayingEntity",m7P,{key:m7P,externalVideoId:S.externalVideoId,sfvAudioItemPlaybackState:S.playbackState,nowPlayingEntityValue:S.nowPlayingEntityValue}))};
aG.prototype.pauseOnNavigation=function(){var S=this,p,U,Y,L;return _.T(function(I){if(I.nextAddress==1){if(!S.mainAppPlayer){var V=new _.y7("Error: mainAppPlayer is unavailable",S.mainAppPlayer);_.ZP(V);return I.return()}return _.k(I,S.mainAppPlayer.api,2)}p=I.yieldResult;Y=(U=p)==null?void 0:U.getPlayerState();Y!==1||(L=p)!=null&&L.pauseVideo();_.OV(I)})};
aG.prototype.playVideo=function(S,p,U){var Y=this,L,I;return _.T(function(V){if(V.nextAddress==1)return _.k(V,(L=Y.mainAppPlayer)==null?void 0:L.api,2);I=V.yieldResult;if(!Y.mainAppPlayer||!I){var W=new _.y7("Error: mainAppPlayer is unavailable",Y.mainAppPlayer);_.ZP(W);return V.return()}return _.k(V,Y.mainAppPlayer.loadVideoWithPlayerVars({videoId:Y.externalVideoId,audio_only:"1",start:S/1E3,end:S/1E3+p,player_params:U}),0)})};
aG.prototype.pauseVideo=function(){var S=this,p,U;return _.T(function(Y){if(Y.nextAddress==1){if(!S.mainAppPlayer){var L=new _.y7("Error: mainAppPlayer is unavailable",S.mainAppPlayer);_.ZP(L);return Y.return()}return _.k(Y,S.mainAppPlayer.api,2)}p=Y.yieldResult;(U=p)==null||U.pauseVideo();_.OV(Y)})};
aG.prototype.resolveCommand=function(S){var p=this,U,Y,L,I,V,W,O,D,z,Q,J,K,G,X,Z,l,a,N,m;return _.T(function(A){if(A.nextAddress==1)return U=_.b(S,GAE),L=(Y=U)==null?void 0:Y.nowPlayingEntityValue,V=(I=U)==null?void 0:I.externalVideoId,Q=Number((z=(W=U)==null?void 0:(O=W.defaultStartPoints)==null?void 0:(D=O[0])==null?void 0:D.offsetMs)!=null?z:"0"),l=Number((Z=(J=U)==null?void 0:(K=J.defaultStartPoints)==null?void 0:(G=K[0])==null?void 0:(X=G.duration)==null?void 0:X.seconds)!=null?Z:"15"),m=(N=
(a=U)==null?void 0:a.playerParams)!=null?N:"",L&&V?p.mainAppPlayer?A.jumpTo(2):_.k(A,oHw(p),2):A.return();if(A.nextAddress!=6){if(p.nowPlayingEntityValue&&L===p.nowPlayingEntityValue)return p.playbackState==="SFV_AUDIO_ITEM_PLAYBACK_STATE_PLAYING"?_.k(A,p.pauseVideo(),0):_.k(A,p.playVideo(Q,l,m),0);p.externalVideoId=V;p.nowPlayingEntityValue=L;p.playbackState="SFV_AUDIO_ITEM_PLAYBACK_STATE_BUFFERING";return _.k(A,p.playVideo(Q,l,m),6)}vHj(p);return A.jumpTo(0)})};
aG[vF]=[M_];var fN=function(S){this.JSC$15230_commandHandler=S};
_.r(fN,sv);fN.prototype.resolveCommand=function(S,p){var U=this,Y,L,I,V,W;return _.T(function(O){if(O.nextAddress==1)return(Y=_.b(S,HWc))?_.k(O,_.p6(),2):O.return();L=O.yieldResult;if(!L)return O.return();(I=N2q(L))?U.JSC$15230_commandHandler.resolveCommand(I,p):(V=_.Oh("CLOSED_CAPTIONS_DISABLED",void 0,"No captions are available for this video"),W=_.N9(V),U.JSC$15230_commandHandler.resolveCommand(W));_.OV(O)})};
fN[vF]=[_.cQ];var CN=function(S){this.JSC$15233_playerPromise=S};
_.r(CN,sv);CN.prototype.resolveCommand=function(S){var p=this,U,Y,L,I,V;return _.T(function(W){if(W.nextAddress==1){U=_.b(S,SBm);if(!U)return W.return();Y=U.overlayRenderer;return Y?(L=_.b(Y,k1q))?_.k(W,p.JSC$15233_playerPromise,3):W.jumpTo(0):W.return()}I=W.yieldResult;I.renderChapterSeekingAnimation(1,_.mA(L.text),(V=L.icon)==null?void 0:V.iconType);_.OV(W)})};
CN[vF]=[_.A7];var xT=function(S){this.store=S};
_.r(xT,sv);
xT.prototype.resolveCommand=function(S){var p=this,U,Y,L;return _.T(function(I){if(I.nextAddress==1){U=_.b(S,zyd);if(!U)return I.return();Y="";(L=p.store.getState().collabInviteLink)&&U.id===L.playlistId?Y=L.inviteLinkURL:U.shortUrl&&(Y=U.shortUrl);return Y?_.k(I,navigator.clipboard.writeText(Y),3):I.jumpTo(0)}var V={openPopupAction:{popupType:"TOAST",popup:{notificationActionRenderer:{responseText:{simpleText:_.Oh("COPY_LINK_SUCCESS_TOAST")}}}}};_.tW().resolve(_.cQ).resolveCommand(V);_.OV(I)})};
xT[vF]=[Tn];var EG=function(S,p){this.innertubeTransportService=S;this.JSC$15243_commandHandler=p};
_.r(EG,sv);EG.prototype.resolveCommand=function(S,p){var U=this,Y,L,I,V,W,O,D,z,Q,J;return _.T(function(K){if(K.nextAddress==1)return(Y=_.b(S,_.sO))?_.k(K,_.lZ(U.innertubeTransportService,S,(L=p)==null?void 0:L.form),2):K.return();(I=K.yieldResult)&&I.errorMetadata&&(V=I,W=_.N9(V.error.message),U.JSC$15243_commandHandler.resolveCommand(W));O=I;if((D=O)==null?0:D.actions)for(z=_.d(O.actions),Q=z.next();!Q.done;Q=z.next())J=Q.value,U.JSC$15243_commandHandler.resolveCommand(J);_.OV(K)})};
EG[vF]=[_.F3,_.cQ];var mr=function(){};
_.r(mr,sv);mr.prototype.resolveCommand=function(S){var p;return _.T(function(U){p=_.b(S,INE);if(!p)return U.return();(new DfE(p)).show();_.OV(U)})};_.oG=new _.$g("PLAYLIST_EDIT_CONTROLLER_TOKEN");var ve=function(S,p,U,Y){this.store=S;this.innertubeTransportService=p;this.controller=U;this.JSC$15251_commandHandler=Y};
_.r(ve,sv);
ve.prototype.resolveCommand=function(S,p){var U=this,Y,L,I,V,W,O,D,z,Q,J,K,G,X,Z,l,a,N,m,A,q,TG,Je,GG,Zw,Ru,sX;return _.T(function(mq){if(mq.nextAddress==1){Y=_.b(S,_.h1);if(!Y)return mq.return();if(Y.clientActions){L=_.d(Y.clientActions);for(I=L.next();!I.done;I=L.next())V=I.value,U.JSC$15251_commandHandler.resolveCommand(V);var au,XI=p==null?void 0:(au=p.form)==null?void 0:au.element;XI&&_.cv(XI,"yt-dismissible-item-action",Y.clientActions)}return _.k(mq,_.lZ(U.innertubeTransportService,S,(W=p)==
null?void 0:W.form),2)}if(O=mq.yieldResult)O.errorMetadata?(D=O,z=_.N9(D.error.message),U.JSC$15251_commandHandler.resolveCommand(z),"error"in O&&((Q=p)==null?0:(J=Q.commandController)==null?0:J.onServerError)&&((K=p)==null||(G=K.commandController)==null||G.onServerError(S,O))):(X=p)==null||(Z=X.commandController)==null||(a=(l=Z).onSuccess)==null||a.call(l,S,O);N=O;((m=N)==null?0:m.collaborationInviteLink)&&Y.playlistId&&(_.y("web_enable_invite_collaborators_link")||_.y("enable_music_web_cairo_new_collaborators_list_and_actions"))&&
U.store.dispatch(_.S4({type:"SET_COLLAB_INVITE_LINK",payload:{playlistId:Y.playlistId,inviteLinkUrl:N.collaborationInviteLink}}));((A=N)==null?0:A.redirectEndpoint)&&U.JSC$15251_commandHandler.resolveCommand(N.redirectEndpoint);((q=N)==null?0:(TG=q.newHeader)==null?0:TG.playlistHeaderRenderer)?$7t(U.controller,N.newHeader.playlistHeaderRenderer):((Je=N)==null?0:(GG=Je.newHeader)==null?0:GG.musicEditablePlaylistDetailHeaderRenderer)&&$7t(U.controller,N.newHeader.musicEditablePlaylistDetailHeaderRenderer);
U.controller.playlistVideoListElement&&((Zw=N)==null?0:(Ru=Zw.playlistEditResults)==null?0:(sX=Ru[0])==null?0:sX.playlistEditVideoAddedResultData)&&((XI=U.controller.playlistVideoListElement)==null||XI.dispatchEvent(new CustomEvent("yt-update-set-video-id",{detail:N.playlistEditResults[0].playlistEditVideoAddedResultData})));_.OV(mq)})};
ve[vF]=[Tn,_.F3,_.oG,_.cQ];var $T=function(S,p){this.controller=S;this.JSC$15261_commandHandler=p};
_.r($T,sv);$T.prototype.resolveCommand=function(S,p){var U=this,Y,L,I;return _.T(function(V){Y=_.b(S,Qat);U.controller.showRefreshPill&&((L=Y)==null?0:L.command)&&(U.JSC$15261_commandHandler.resolveCommand((I=Y)==null?void 0:I.command,p),U.controller.showRefreshPill=!1);_.OV(V)})};
$T[vF]=[_.cx,_.cQ];var N1=function(S,p){this.store=S;this.JSC$15265_commandHandler=p||_.VO.instance};
_.r(N1,sv);N1.prototype.resolveCommand=function(S,p){var U=this,Y,L,I,V,W,O,D,z,Q,J;return _.T(function(K){Y=_.b(S,PYQ);L=U.store.getState().radioButtonGroup;if((I=Y)==null?0:I.command)U.JSC$15265_commandHandler.resolveCommand((V=Y)==null?void 0:V.command,p);else if(((W=Y)==null?void 0:W.formId)===L.currentFormId)for(O=Object.values(L.commandsMap),D=_.d(O),z=D.next();!z.done;z=D.next()){Q=z.value;J=_.sW(Q);if(!J)return K.return();U.JSC$15265_commandHandler.resolveCommand(J,p)}_.OV(K)})};
N1[vF]=[Tn];var Be=new _.$g("USER_PREFS");var q1=function(S){this.JSC$15269_prefCookie=S};
_.r(q1,sv);q1.prototype.resolveCommand=function(S){var p=this,U;return _.T(function(Y){(U=_.b(S,tCI))&&typeof U.useListView==="boolean"&&(_.zI(0,155,U.useListView),p.JSC$15269_prefCookie.save());_.OV(Y)})};
q1[vF]=[Be];var AJ=function(S){this.JSC$15273_prefCookie=S};
_.r(AJ,sv);AJ.prototype.resolveCommand=function(S){var p=this,U,Y,L,I,V;return _.T(function(W){U=_.b(S,VRH);if((Y=U)==null||!Y.gl)return W.return();L=U.gl;I={persist_gl:"1",gl:L};p.JSC$15273_prefCookie.set("gl",L);p.JSC$15273_prefCookie.save();V=Gjd(I);_.lE(V);_.OV(W)})};
AJ[vF]=[Be];var tJ=function(S){this.JSC$15277_prefCookie=S};
_.r(tJ,sv);tJ.prototype.resolveCommand=function(S){var p=this,U,Y;return _.T(function(L){U=_.b(S,JkP);if(!U)return L.return();Y=!1;U.flagNum&&typeof U.value==="boolean"?(_.zI(0,U.flagNum,U.value),Y=!0):U.key&&typeof U.stringValue==="string"&&(p.JSC$15277_prefCookie.set(U.key,U.stringValue),Y=!0);Y&&p.JSC$15277_prefCookie.save();_.OV(L)})};
tJ[vF]=[Be];var ce=new _.$g("PREF_STORAGE_PROMISE_TOKEN");var Ss=function(S){this.JSC$15281_prefStoragePromise=S};
_.r(Ss,sv);Ss.prototype.resolveCommand=function(S){var p=this,U,Y;return _.T(function(L){if(L.nextAddress==1)return(U=_.b(S,K5Q))?_.k(L,p.JSC$15281_prefStoragePromise,2):L.return();Y=L.yieldResult;return Y===void 0||U.key===void 0||U.value===void 0?L.return():_.k(L,Y.set(U.key,U.value),0)})};
Ss[vF]=[ce];var iwE=function(S){this.innertubeTransportService=S};
_.r(iwE,sv);iwE.prototype.resolveCommand=function(S,p){var U=this,Y,L;return _.T(function(I){(Y=_.b(S,_.NlI))&&Y&&Y.isFirstRequest&&(_.R2("search_overview_answer"),_.Fg("so_rq",void 0,"search_overview_answer"));return _.k(I,_.lZ(U.innertubeTransportService,S,(L=p)==null?void 0:L.form),0)})};
iwE[vF]=[_.F3];var NpH=function(){};
_.r(NpH,sv);
NpH.prototype.resolveCommand=function(S){var p,U,Y,L,I,V,W,O,D;return _.T(function(z){p=_.b(S,tld);if((U=p)==null?0:U.sectionIdentifier){if(p.scrollBehaviorType==="SCROLL_BEHAVIOR_TYPE_SCROLL_INTO_VIEW"){if(L=(Y=document.getElementsByTagName(p.sectionIdentifier))==null?void 0:Y.item(0))L.scrollIntoView({behavior:"smooth"}),(I=aGw(L))&&I.focus({preventScroll:!0});return z.return()}V=document.querySelector("[section-identifier="+p.sectionIdentifier+"]");W=document.querySelector("[section-identifier="+p.referenceSectionIdentifier+
"]");if(!V)return z.return();O=p.verticalScrollOffsetDp?p.verticalScrollOffsetDp:0;W&&(O-=W.offsetTop);window.scrollTo({top:V.offsetTop+O,behavior:"smooth"});(D=aGw(V))&&D.focus({preventScroll:!0})}_.OV(z)})};var pk=function(){};
_.r(pk,sv);
pk.prototype.resolveCommand=function(S){var p,U,Y,L,I,V,W;return _.T(function(O){if(O.nextAddress==1){p=_.b(S,Kwl);if(!p||!p.imageBytes||!navigator.clipboard)return O.return();if(p.clientShareDestination==="CLIENT_SHARE_DESTINATION_SYSTEM_SHARE_PANEL")return _.ZP(Error("yi")),O.return();_.M2(O,2);Y=(U=p)==null?void 0:U.imageBytes;L=Y.replace(/-/g,"+").replace(/_/g,"/");I=esw(L);V={};W=[new ClipboardItem((V[I.type]=I,V))];return _.k(O,navigator.clipboard.write(W),4)}if(O.nextAddress!=2)return _.CA(O,0);
_.W4(O);_.OV(O)})};var UN=function(S,p){this.innertubeTransportService=S;this.JSC$15296_commandHandler=p};
_.r(UN,sv);UN.prototype.resolveCommand=function(S,p){var U=this,Y,L,I,V,W;return _.T(function(O){if(O.nextAddress==1)return(Y=_.b(S,bLE))?_.k(O,_.lZ(U.innertubeTransportService,S,(L=p)==null?void 0:L.form),2):O.return();(I=O.yieldResult)&&I.errorMetadata&&Y.onFailureCommand&&U.JSC$15296_commandHandler.resolveCommand(Y.onFailureCommand);V=I;((W=V)==null?0:W.shareCommand)&&U.JSC$15296_commandHandler.resolveCommand(V.shareCommand,p);_.OV(O)})};
UN[vF]=[_.F3,_.cQ];var YF=function(){};
_.r(YF,sv);YF.prototype.resolveCommand=function(S){var p,U;return _.T(function(Y){p=_.b(S,DOt);if(!p||!navigator.share)return Y.return();U={url:p.url};try{return Y.return(navigator.share(U))}catch(L){}_.OV(Y)})};var Lk=function(){};
_.r(Lk,sv);Lk.prototype.resolveCommand=function(){return _.T(function(S){window.dispatchEvent(new Event("yt-playables-ack-3p-data-usage"));_.OV(S)})};var Mj=function(S){this.JSC$15306_navigationConfirmationService=S};
_.r(Mj,sv);Mj.prototype.resolveCommand=function(){var S=this;return _.T(function(p){S.JSC$15306_navigationConfirmationService.cancelPendingNavigation();_.OV(p)})};
Mj[vF]=[WW];var IZ=function(S){this.JSC$15309_screenManager=S};
_.r(IZ,sv);IZ.prototype.resolveCommand=function(S,p){var U=this,Y,L,I,V,W,O,D;return _.T(function(z){L=(Y=p.form)==null?void 0:Y.event;V=(I=p.form)==null?void 0:I.element;if(!L)throw new _.y7("Event not passed in when resolving command");W=_.d(L.composedPath());for(O=W.next();!O.done;O=W.next())if(D=O.value,D.tagName==="YT-COPY-LINK-RENDERER")return D.copyUrlToClipboard(),V&&_.gY(U.JSC$15309_screenManager,V),z.return();_.OV(z)})};
IZ[vF]=[_.Jt];var dT=function(){this.JSC$15313_miniAppClientDataProvider=_.tW().resolve(_.e3)};
_.r(dT,sv);dT.prototype.resolveCommand=function(){var S=this,p,U;return _.T(function(Y){if(S.JSC$15313_miniAppClientDataProvider.clientData.has("video_id")){var L=S.JSC$15313_miniAppClientDataProvider,I=L.clientData.get("video_id");I&&L.clientData.delete("video_id");p="https://youtube.com/watch?v="+I;U=Q2(p);if(U===void 0)throw Error("zi`"+p);_.s3(window,U)}_.OV(Y)})};var VJ=function(){};
_.r(VJ,sv);VJ.prototype.resolveCommand=function(){return _.T(function(S){window.dispatchEvent(new Event("yt-playables-exit-mini-app-dialog-seen"));_.OV(S)})};var Tc=function(){};
_.r(Tc,sv);Tc.prototype.resolveCommand=function(){var S;return _.T(function(p){if(p.nextAddress==1)return _.k(p,_.dCu(window.document.documentElement),2);(S=document.querySelector("mini-app-container-view-model iframe"))&&S.focus();_.OV(p)})};var W9=function(S){this.JSC$15320_navigationConfirmationService=S};
_.r(W9,sv);
W9.prototype.resolveCommand=function(){var S=this;return _.T(function(p){var U=S.JSC$15320_navigationConfirmationService,Y=_.tW().resolve(_.Hl),L;if(((L=U.navigateParams)==null?void 0:L.data)!==void 0){var I;_.dMc(Y,U.navigateParams.endpoint,U.navigateParams.data,(I=U.navigateParams.navigationType)!=null?I:1,U.navigateParams.tempData,U.navigateParams.isMiniplayer,void 0,!0);U.navigateParams=void 0;U.customConfirmationCommand=void 0}else U.navigateParams&&(Y.navigate(U.navigateParams.endpoint,U.navigateParams.reload,
U.navigateParams.params,U.navigateParams.tempData,U.navigateParams.requestType,U.navigateParams.createScreenConfig,!0),U.navigateParams=void 0,U.customConfirmationCommand=void 0);_.OV(p)})};
W9[vF]=[WW];var ON=function(){};
_.r(ON,sv);ON.prototype.resolveCommand=function(){return _.T(function(S){window.dispatchEvent(new Event("yt-share-playable-with-high-score"));_.OV(S)})};var kF=function(S){this.JSC$15325_prefStorage=S};
_.r(kF,sv);kF.prototype.resolveCommand=function(){var S=this,p,U;return _.T(function(Y){switch(Y.nextAddress){case 1:return _.k(Y,S.JSC$15325_prefStorage,2);case 2:return(p=Y.yieldResult)?_.k(Y,p.set("sfvle",!1),3):Y.return();case 3:return _.k(Y,p.set("sfvles",!0),4);case 4:U=_.D9(),_.zI(0,203,!1),_.zI(0,204,!0),U.save(),_.OV(Y)}})};
kF[vF]=[ce];var H9=function(S){this.JSC$15328_prefStorage=S};
_.r(H9,sv);H9.prototype.resolveCommand=function(){var S=this,p,U;return _.T(function(Y){switch(Y.nextAddress){case 1:return _.k(Y,S.JSC$15328_prefStorage,2);case 2:return(p=Y.yieldResult)?_.k(Y,p.set("sfvle",!0),3):Y.return();case 3:return _.k(Y,p.set("sfvles",!0),4);case 4:U=_.D9(),_.zI(0,203,!0),_.zI(0,204,!0),U.save(),_.OV(Y)}})};
H9[vF]=[ce];var Bpc=new _.$g("SNACKBAR_CONTROLLER_TOKEN");var DA=function(S){this.controller=S};
_.r(DA,sv);DA.prototype.resolveCommand=function(S){var p=this,U,Y,L;return _.T(function(I){U=_.b(S,u4j);if(!U)return I.return();Y=_.b(U.content,iLt);if(!Y)return I.return();var V=p.controller,W=Y,O=(L=U.animationStyle)!=null?L:"SNACKBAR_ANIMATION_STYLE_DEFAULT";if(V.showSnackbarFn)V.showSnackbarFn({snackbarViewModel:W,animationStyle:O,durationMs:U.durationSeconds*1E3});else throw Error("hj");_.OV(I)})};
DA[vF]=[Bpc];var zc=function(){};
_.r(zc,sv);zc.prototype.resolveCommand=function(S){var p;return _.T(function(U){p=_.b(S,ykm);if(!p||typeof p.key!=="string"||typeof p.value!=="string")return U.return();window.localStorage.setItem(p.key,p.value);_.OV(U)})};var QJ=function(S){this.store=S};
_.r(QJ,sv);QJ.prototype.resolveCommand=function(S){var p=this,U;return _.T(function(Y){U=_.b(S,oJw);if(!U||!U.stepId||!U.token)return Y.return();p.store.dispatch(Qkj({stepId:U.stepId,token:U.token,isSelected:!1}));_.OV(Y)})};
QJ[vF]=[Tn];var nk=function(S,p,U){this.innertubeTransportService=S;this.store=p;this.JSC$15344_screenManager=U};
_.r(nk,sv);
nk.prototype.resolveCommand=function(S){var p=this,U,Y,L,I,V,W,O,D,z,Q,J,K,G,X,Z,l,a,N,m,A,q,TG,Je;return _.T(function(GG){U=_.b(S,jpq);if(!U||(Y=U.stepIds)==null||!Y.length)return GG.return();L=p.store.getState().talkToRecs;I=[];V=[];W=_.d(U.stepIds);for(O=W.next();!O.done;O=W.next())for(D=O.value,z=void 0,(Q=(z=L.stepStates[D])==null?void 0:z.userQuery)&&V.push({userQuery:Q.userQuery,userQueryToken:Q.token}),J=void 0,K=(J=L.stepStates[D])==null?void 0:J.selectionStates,G=_.d(Object.entries(K)),X=
G.next();!X.done;X=G.next())Z=X.value,l=_.d(Z),a=l.next().value,N=l.next().value,m=a,A=N,A.isSelected&&I.push(m);q={selectedChipTokens:I,userQueries:V,submittedStepIds:U.stepIds};TG={browseTalk2recsFormData:q};U.browseEndpoint?(Je=S,_.Rf(Je,_.kM,U.browseEndpoint)):U.command&&(Je=U.command);return Je?_.k(GG,_.lZ(p.innertubeTransportService,Je,{formData:TG,disableCache:!0}).then(function(Zw){(Zw==null?0:Zw.trackingParams)&&p.JSC$15344_screenManager.graftServerVe(Zw==null?void 0:Zw.trackingParams)}),
0):GG.return()})};
nk[vF]=[_.F3,Tn,_.Jt];var J0=function(S){this.store=S};
_.r(J0,sv);J0.prototype.resolveCommand=function(S){var p=this,U;return _.T(function(Y){U=_.b(S,m4k);if(!U||!U.stepId||!U.token)return Y.return();p.store.dispatch(Qkj({stepId:U.stepId,token:U.token,isSelected:!0}));_.OV(Y)})};
J0[vF]=[Tn];var yJ=function(S){this.store=S};
_.r(yJ,sv);yJ.prototype.resolveCommand=function(S,p){var U=this,Y,L,I,V,W;return _.T(function(O){Y=_.b(S,rxm);if(!Y||!Y.stepId||!Y.userQueryToken)return O.return();W=(V=(L=p)==null?void 0:(I=L.form)==null?void 0:I.userQuery)!=null?V:"";U.store.dispatch(_.S4({type:"TALK_TO_RECS_UPDATE_USER_QUERY",payload:{stepId:Y.stepId,userQueryToken:Y.userQueryToken,userQuery:W}}));_.OV(O)})};
yJ[vF]=[Tn];_.q_m=new _.$g("TIMELY_ACTIONS_CONTROLLER_TOKEN");var Kk=function(S){this.controller=S};
_.r(Kk,sv);Kk.prototype.resolveCommand=function(S){var p=this,U,Y,L,I;return _.T(function(V){U=_.b(S,BMw);if(!U)return V.return();Y=U;L=Y.id;I=Y.isVisible;if(L===void 0||I===void 0)return V.return();var W;(W=p.controller.timelyActionsMap.get(L))==null||W(L,I);_.OV(V)})};
Kk[vF]=[_.q_m];var AwQ=function(){this.timelyActionsMap=new Map};var bu=function(S){this.JSC$15371_commandHandler=S};
_.r(bu,sv);bu.prototype.resolveCommand=function(S){var p=this,U,Y,L,I,V;return _.T(function(W){U=_.b(S,_.DH);if(!U)return W.return();I=(Y=U.item)==null?void 0:(L=Y.notificationTextRenderer)==null?void 0:L.successResponseText;if(!I)return W.return();V=_.iM(I);p.JSC$15371_commandHandler.resolveCommand(V);_.OV(W)})};
bu[vF]=[_.cQ];var js=function(S,p){this.innertubeTransportService=S;this.JSC$15376_playerApiPromise=p};
_.r(js,sv);
js.prototype.resolveCommand=function(S){var p=this,U,Y,L,I,V,W,O,D,z;return _.T(function(Q){if(Q.nextAddress==1)return _.k(Q,p.JSC$15376_playerApiPromise,2);U=Q.yieldResult;Y=U.getOption("captions","track");L=Object.assign({},_.b(S,_.xOq));(V=(I=U.getVideoData())==null?void 0:I.video_id)?L.externalVideoId=V:_.fU(Error("Ai"));if((W=Y)==null?0:W.languageCode)L.languageCode=Y.languageCode;if((O=Y)==null?0:O.kind)L.kind=Y.kind;if((D=Y)==null?0:D.name)L.name=Y.name;z=Object.assign({},S,{getTranscriptEndpoint:L});return _.k(Q,
_.lZ(p.innertubeTransportService,z),0)})};
js[vF]=[_.F3,_.A7];var rT=function(){};
_.r(rT,sv);rT.prototype.resolveCommand=function(S){var p,U,Y,L,I,V,W,O;return _.T(function(D){p=_.b(S,XgI);if((U=p)==null||!U.paramKeyValuePairs)return D.return();Y=window.location.href;L=_.d(p.paramKeyValuePairs);for(I=L.next();!I.done;I=L.next())V=I.value,V.key&&V.value&&(W={},Y=_.od(Y,(W[V.key]=V.value,W)));O=_.tW().resolve(_.ds);_.Ir(O,Y);_.OV(D)})};var Gc=function(S,p){this.JSC$15383_commandHandler=S;this.innertubeTransportService=p};
_.r(Gc,sv);
Gc.prototype.resolveCommand=function(S,p){var U=this,Y,L,I,V,W,O,D,z,Q,J,K,G,X,Z,l,a,N;return _.T(function(m){switch(m.nextAddress){case 1:return(I=(Y=p)==null?void 0:(L=Y.form)==null?void 0:L.element)&&_.fJ(I),V=_.D9().get("hl"),W="",_.M2(m,2),_.k(m,t_E(V),4);case 4:W=m.yieldResult;_.CA(m,3);break;case 2:return _.W4(m),I&&_.CJ(I),_.ZP(Error("Ci"),"ERROR"),m.return();case 3:O=_.b(S,KSd);if(!O)return I&&_.CJ(I),m.return();(Q=(D=O.commerceActionConfig)==null?void 0:(z=D.commandLifeCycleConfig)==null?
void 0:z.onStartCommand)&&U.JSC$15383_commandHandler.resolveCommand(Q);return _.k(m,_.lZ(U.innertubeTransportService,S,{client_data:{paymentsClientToken:{token:W}}}),5);case 5:(J=m.yieldResult)?(I&&_.CJ(I),((Z=J)==null?0:Z.command)&&U.JSC$15383_commandHandler.resolveCommand(J.command),(N=(l=O.commerceActionConfig)==null?void 0:(a=l.commandLifeCycleConfig)==null?void 0:a.onSuccessCommand)&&U.JSC$15383_commandHandler.resolveCommand(N)):(I&&_.CJ(I),_.ZP(Error("Di")),(X=(K=O.commerceActionConfig)==null?
void 0:(G=K.commandLifeCycleConfig)==null?void 0:G.onFailureCommand)&&U.JSC$15383_commandHandler.resolveCommand(X)),_.OV(m)}})};
Gc[vF]=[_.cQ,_.F3];var h0=function(S,p,U){this.store=S;this.JSC$15399_commandHandler=p;this.innertubeTransportService=U};
_.r(h0,sv);
h0.prototype.resolveCommand=function(S,p){var U=this,Y,L,I,V,W,O,D,z,Q;return _.T(function(J){Y=_.b(S,bQt);L=Y.googlePaymentPayload;Y.onStartCommand&&U.JSC$15399_commandHandler.resolveCommand(Y.onStartCommand);I=L.encryptedPurchaseParams;V=L.ypcLogWalletAnalyticDataEndpoint;W=Y.serializedTransactionFlowLoggingParams;O=L.serializedPaymentsClientParams;D=Y.ypcCujContext;Q=p6d(U.innertubeTransportService,(z=p)==null?void 0:z.form,I,V,W,O,D);return J.return(Q.then(function(K){cTR(p==null?void 0:p.form,
!1);var G=U.store,X=U.JSC$15399_commandHandler,Z=K.integratorData;Z==null||Z===""||K.error!=null?(String(K.error)==="-1"&&Y.onDismissCommand?X.resolveCommand(Y.onDismissCommand):String(K.error)!=="-1"&&Y.onFailureCommand&&X.resolveCommand(Y.onFailureCommand),String(K.error)!=="-1"&&String(K.error)!=="132"&&_.ZP(Error("Ei"),"ERROR")):(Y.googlePaymentEntityKey&&G.dispatch(_.WG("commerceAcquisitionClientPayloadEntity",Y.googlePaymentEntityKey,{key:Y.googlePaymentEntityKey,commerceAcquisitionClientPayload:{googlePaymentClientPayload:{paymentsPayload:Z,
fundsGuaranteeCallbackClientData:K.integratorClientCallbackData}}})),Y.onSuccessCommand&&X.resolveCommand(Y.onSuccessCommand));_.Mw()},function(K){cTR(p==null?void 0:p.form,!1);
_.ZP(K,"ERROR");Y.onFailureCommand&&U.JSC$15399_commandHandler.resolveCommand(Y.onFailureCommand)}))})};
h0[vF]=[M_,_.cQ,_.F3];var RZ=function(S,p){this.JSC$15403_commandHandler=S;this.purchaseManager=p};
_.r(RZ,sv);
RZ.prototype.resolveCommand=function(S){var p=this,U,Y,L,I,V,W,O,D,z;return _.T(function(Q){U=_.b(S,jgI);((Y=U)==null?0:(L=Y.commandLifeCycleConfig)==null?0:L.onStartCommand)&&p.JSC$15403_commandHandler.resolveCommand(U.commandLifeCycleConfig.onStartCommand);if(!((I=U)==null?0:(V=I.googlePaymentPurchaseManagerPayload)==null?0:V.securePayloadBytes))return _.ZP(Error("Fi"),"ERROR"),Q.return();W=Enm(_.Ol(U.googlePaymentPurchaseManagerPayload.securePayloadBytes));O=_.D9().get("hl");D=_.ay();LWm(W.serialize(),
O,function(J){D.resolve(J)},function(J){D.reject(J)},D.resolve);
z=D.promise;return Q.return(z.then(function(J){if(J)if(J==null?0:J.errorCode){_.ZP(Error("Gi`"+J.errorCode),"ERROR");var K,G;((K=U)==null?0:(G=K.commandLifeCycleConfig)==null?0:G.onFailureCommand)&&p.JSC$15403_commandHandler.resolveCommand(U.commandLifeCycleConfig.onFailureCommand)}else if(J==null?0:J.isCancelled){var X,Z;((X=U)==null?0:(Z=X.commandLifeCycleConfig)==null?0:Z.onCancelCommand)&&p.JSC$15403_commandHandler.resolveCommand(U.commandLifeCycleConfig.onCancelCommand)}else{var l,a;((l=U)==
null?0:(a=l.commandLifeCycleConfig)==null?0:a.onSuccessCommand)&&p.JSC$15403_commandHandler.resolveCommand(U.commandLifeCycleConfig.onSuccessCommand)}},function(J){_.ZP(J,"ERROR");
var K,G;((K=U)==null?0:(G=K.commandLifeCycleConfig)==null?0:G.onFailureCommand)&&p.JSC$15403_commandHandler.resolveCommand(U.commandLifeCycleConfig.onFailureCommand)}))})};
RZ[vF]=[_.cQ,MEl];var tEt=function(S,p){this.JSC$15411_commandHandler=S;this.commandAllowlistOverride=p;var U;this.commandAllowlist=(U=this.commandAllowlistOverride)!=null?U:fs};
tEt.prototype.handleResponse=function(S,p,U){var Y,L=p==null?void 0:(Y=p.config)==null?void 0:Y.command;if(!L||this.commandAllowlist.some(function(I){return!!_.b(L,I)})){p=void 0;
U!==void 0&&(p={form:{element:U}});S.onResponseReceivedCommand&&this.JSC$15411_commandHandler.resolveCommand(S.onResponseReceivedCommand,p);S.onResponseReceivedAction&&this.JSC$15411_commandHandler.resolveCommand(S.onResponseReceivedAction,p);S.onResponseReceivedEndpoint&&this.JSC$15411_commandHandler.resolveCommand(S.onResponseReceivedEndpoint,p);S.command&&this.JSC$15411_commandHandler.resolveCommand(S.command,p);if(S.onResponseReceivedCommands)for(U=_.d(S.onResponseReceivedCommands),Y=U.next();!Y.done;Y=
U.next())this.JSC$15411_commandHandler.resolveCommand(Y.value,p);if(S.onResponseReceivedActions)for(U=_.d(S.onResponseReceivedActions),Y=U.next();!Y.done;Y=U.next())this.JSC$15411_commandHandler.resolveCommand(Y.value,p);if(S.onResponseReceivedEndpoints)for(U=_.d(S.onResponseReceivedEndpoints),Y=U.next();!Y.done;Y=U.next())this.JSC$15411_commandHandler.resolveCommand(Y.value,p);if(S.actions)for(S=_.d(S.actions),U=S.next();!U.done;U=S.next())this.JSC$15411_commandHandler.resolveCommand(U.value,p)}};
tEt[vF]=[_.cQ,_.AW(Gcu)];var cww=new _.$g("INNERTUBE_TOKEN_SERVICE");var Skc=new _.$g("SCHEDULER_TOKEN");var pUH=function(S){this.scheduler=S;S={};this.tokenMap=(S.app={},S.user={},S)};
pUH.prototype.handleResponse=function(S,p){if(!p)throw Error("Hi");var U;if(S=(U=S.responseContext)==null?void 0:U.innertubeTokenJar){if(S.appTokens){var Y,L,I;U=(Y=p.innerTubeRequest.context)==null?void 0:(L=Y.request)==null?void 0:(I=L.innertubeTokenJar)==null?void 0:I.appTokens;Upw(this,S.appTokens,this.tokenMap.app,U)}if(S.userTokens){var V,W,O;p=(V=p.innerTubeRequest.context)==null?void 0:(W=V.request)==null?void 0:(O=W.innertubeTokenJar)==null?void 0:O.userTokens;Upw(this,S.userTokens,this.tokenMap.user,
p)}}};
pUH.prototype.processContext=function(S){S.request||(S.request={});var p=Object.keys(this.tokenMap.app).length,U=Object.keys(this.tokenMap.user).length;if(p||U)S.request.innertubeTokenJar={},p&&(S.request.innertubeTokenJar.appTokens=[].concat(_.jo(Object.values(this.tokenMap.app).flat()))),U&&(S.request.innertubeTokenJar.userTokens=[].concat(_.jo(Object.values(this.tokenMap.user).flat())))};
var Upw=function(S,p,U,Y){p=_.d(p);for(var L=p.next(),I={};!L.done;I={token$jscomp$137:void 0},L=p.next()){I.token$jscomp$137=L.value;if(I.token$jscomp$137.type===void 0)throw new _.y7("InnerTube token has no type",I.token$jscomp$137);if(I.token$jscomp$137.clearTokens)U[I.token$jscomp$137.type]=[];else if(I.token$jscomp$137.value!==void 0){U[I.token$jscomp$137.type]||(U[I.token$jscomp$137.type]=[]);if(Y!==void 0&&Y.length){L=_.d(Y);for(var V=L.next(),W={};!V.done;W={requestToken:void 0},V=L.next())W.requestToken=
V.value,V=U[I.token$jscomp$137.type].findIndex(function(O){return function(D){return D===O.requestToken||(0,_.h9.equals)(D,O.requestToken)}}(W)),V>-1&&U[I.token$jscomp$137.type].splice(V,1)}U[I.token$jscomp$137.type].push(I.token$jscomp$137);
I.token$jscomp$137.maxAgeSeconds&&Number(I.token$jscomp$137.maxAgeSeconds)>0&&S.scheduler.addLowPriorityJob(function(O){return function(){var D=U[O.token$jscomp$137.type].indexOf(O.token$jscomp$137);D>-1&&U[O.token$jscomp$137.type].splice(D,1)}}(I),Number(I.token$jscomp$137.maxAgeSeconds)*1E3)}else throw new _.y7("InnerTube token has no value",I.token$jscomp$137);
}};
pUH[vF]=[Skc];var YkE=new _.$g("LOCAL_INNERTUBE_ROUTER_TOKEN"),LDw=new _.$g("LOCAL_INNERTUBE_SERVICE_MAP_TOKEN");var Fm=function(S){this.serviceMap=S};
Fm.prototype.shouldPreferLocalResponse=function(S,p){return(S=MTt(this,S))?S.shouldPreferLocalResponse(p):!1};
Fm.prototype.localInnertubeResponse=function(S,p){var U=this,Y;return _.T(function(L){return(Y=MTt(U,S))?L.return(Y.localInnertubeResponse(p)):L.return(Promise.reject(Error("Ii")))})};
Fm.prototype.canProvideFallbackResponse=function(S,p){return(S=MTt(this,S))?S.canProvideFallbackResponse(p):!1};
Fm.prototype.localFallbackInnertubeResponse=function(S,p){var U=this,Y;return _.T(function(L){return(Y=MTt(U,S))?L.return(Y.localFallbackInnertubeResponse(p)):L.return(Promise.reject(Error("Ii")))})};
var MTt=function(S,p){p=_.Tp(p);return p?(S=S.serviceMap[p])?S:null:null};
Fm[vF]=[LDw];var n4=function(){};
n4.prototype.shouldPreferLocalResponse=function(){return!1};
n4.prototype.localInnertubeResponse=function(){return _.T(function(S){return S.return(Promise.reject(Error("Ji")))})};
n4.prototype.canProvideFallbackResponse=function(){return!0};
n4.prototype.localFallbackInnertubeResponse=function(){var S,p,U;return _.T(function(Y){S=KJ("CLOSE_POPUP");p={openPopupAction:Ymu()};U={actions:[S,p]};return Y.return(U)})};var gJw=function(S,p){this.JSC$15461_upliftPromise=S;this.store=p};
_.M=gJw.prototype;_.M.shouldPreferLocalResponse=function(S){var p=S.videoId,U;if(U=p)U=RKX(this.store.getState().entities,S.videoId);return U&&Fww(this.store.getState().entities,p)?MUG(this.store.getState().entities,S.playlistId):!1};
_.M.localInnertubeResponse=function(S){var p=this,U;return _.T(function(Y){return(U=p.getPlayerResponse(S))?Y.return(Promise.resolve(U)):Y.return(Promise.reject(Error("Ki")))})};
_.M.canProvideFallbackResponse=function(S){return!!S.videoId};
_.M.localFallbackInnertubeResponse=function(S){var p=this,U;return _.T(function(Y){if(Y.nextAddress==1)return _.k(Y,p.JSC$15461_upliftPromise,2);U=p.getPlayerResponse(S);var L;U?L=Y.return(Promise.resolve(U)):L=yr(p.store.getState().entities,S.videoId)?Y.return({playabilityStatus:{status:"UNPLAYABLE",errorScreen:{playerErrorMessageRenderer:{reason:_.Aa(_.Oh("DOWNLOAD_UNAVAILABLE",void 0,"Download unavailable. Try a different video.")),proceedButton:{buttonRenderer:ZBw()},icon:{iconType:"OFFLINE_NO_CONTENT"}}}}}):
Y.return({playabilityStatus:{status:"UNPLAYABLE",errorScreen:{playerErrorMessageRenderer:{reason:_.Aa(_.Oh("OFFLINE_CHECK_CONNECTION",void 0,"You're offline. Check your connection.")),proceedButton:{buttonRenderer:P_e()},icon:{iconType:"OFFLINE_NO_CONTENT"}}}}});return L})};
_.M.getPlayerResponse=function(S){return SOR(this.store.getState().entities,S.videoId)};var Qj=function(S,p){this.localPlayerService=S;this.localWatchNextService=p};
Qj.prototype.shouldPreferLocalResponse=function(S){var p=S.playerRequest;S=S.watchNextRequest;return!!(p&&this.localPlayerService.shouldPreferLocalResponse(p)&&S&&this.localWatchNextService.shouldPreferLocalResponse(S))};
Qj.prototype.localInnertubeResponse=function(S){var p=this,U,Y,L,I;return _.T(function(V){if(V.nextAddress==1){U=S.playerRequest;Y=S.watchNextRequest;if(!U||!Y)throw new _.y7("Missing streaming request",S);return _.k(V,p.localPlayerService.localInnertubeResponse(U),2)}if(V.nextAddress!=3)return L=V.yieldResult,_.k(V,p.localWatchNextService.localInnertubeResponse(Y),3);I=V.yieldResult;return V.return({playerResponse:L,watchNextResponse:I})})};
Qj.prototype.canProvideFallbackResponse=function(S){var p=S.playerRequest;S=S.watchNextRequest;return!!(p&&this.localPlayerService.canProvideFallbackResponse(p)&&S&&this.localWatchNextService.canProvideFallbackResponse(S))};
Qj.prototype.localFallbackInnertubeResponse=function(S){var p=this,U,Y,L,I;return _.T(function(V){if(V.nextAddress==1)return U=S.playerRequest,Y=S.watchNextRequest,U&&Y?_.k(V,p.localPlayerService.localFallbackInnertubeResponse(U),2):V.return(Promise.reject(new _.y7("Missing streaming request",S)));if(V.nextAddress!=3)return L=V.yieldResult,_.k(V,p.localWatchNextService.localFallbackInnertubeResponse(Y),3);I=V.yieldResult;return V.return({playerResponse:L,watchNextResponse:I})})};var HO=function(S){this.JSC$15471_persistentStorePromiseAccessor=S};
HO.prototype.shouldPreferLocalResponse=function(){return!1};
HO.prototype.localInnertubeResponse=function(){return _.T(function(S){return S.return(Promise.reject(Error("Li")))})};
HO.prototype.canProvideFallbackResponse=function(){return!0};
HO.prototype.localFallbackInnertubeResponse=function(){var S=this,p,U;return _.T(function(Y){return Y.nextAddress==1?_.k(Y,S.JSC$15471_persistentStorePromiseAccessor(),2):Y.nextAddress!=3?(p=Y.yieldResult)?_.k(Y,p.get("service:guide:fallback"),3):Y.return(Promise.reject(Error("Mi"))):(U=Y.yieldResult)&&_.Y1(U)?Y.return(IJw(_.Y1(U))):Y.return(Promise.reject(Error("Ni")))})};var Jx=function(){};
Jx.prototype.shouldPreferLocalResponse=function(){return!1};
Jx.prototype.localInnertubeResponse=function(){return _.T(function(S){return S.return(Promise.reject(Error("Oi")))})};
Jx.prototype.canProvideFallbackResponse=function(){return!0};
Jx.prototype.localFallbackInnertubeResponse=function(){var S,p,U;return _.T(function(Y){S=KJ("CLOSE_POPUP");p={openPopupAction:Ymu()};U={actions:[S,p]};return Y.return(U)})};var k1=function(){this.urlMap=Ijq;this.fallbackCommand=_.TE};
k1.prototype.shouldPreferLocalResponse=function(S){return(S=S.url)?!!dpH(this,S):!1};
k1.prototype.localInnertubeResponse=function(S){var p=this,U;return _.T(function(Y){return(U=S.url)?Y.return(VTP(S,dpH(p,U))):Y.return(Promise.reject(Error("Pi")))})};
k1.prototype.canProvideFallbackResponse=function(){return!0};
k1.prototype.localFallbackInnertubeResponse=function(S){var p=this,U,Y,L,I,V,W,O;return _.T(function(D){U=S.url;if(!U)return D.return(VTP(S,p.fallbackCommand));if(Y=dpH(p,U))return D.return(VTP(S,Y));L=void 0;I=_.Tp(U);I==="/watch"&&(V=_.xY(U,"v"))&&(O=(W=_.xY(U,"list"))!=null?W:void 0,L=_.qw(V,O));L||(L=p.fallbackCommand);return D.return(VTP(S,L))})};
var dpH=function(S,p){if(p)return S.urlMap[_.lL(p)]},VTP=function(S,p){p&&S.parentTrackingParams&&(p.commandMetadata=Object.assign({},{resolveUrlCommandMetadata:{parentTrackingParams:S.parentTrackingParams}},p.commandMetadata));
return Promise.resolve({responseContext:{},endpoint:p})};var Da=function(S,p,U){this.JSC$15481_upliftPromise=S;this.store=p;this.JSC$15481_persistentStorePromiseAccessor=U};
Da.prototype.shouldPreferLocalResponse=function(){return!1};
Da.prototype.localInnertubeResponse=function(){return _.T(function(S){return S.return(Promise.reject(Error("Qi")))})};
Da.prototype.canProvideFallbackResponse=function(){return!0};
Da.prototype.localFallbackInnertubeResponse=function(){var S=this;return _.T(function(p){return p.return(T0Q(S))})};
var T0Q=function(S){var p,U;return _.T(function(Y){if(Y.nextAddress==1)return _.k(Y,Up(S.JSC$15481_upliftPromise,S.store),2);p=Y.yieldResult;U={twoColumnSearchResultsRenderer:{primaryContents:{sectionListRenderer:{contents:[Lde(p)]}}}};return Y.return(WDP(S,U))})},WDP=function(S,p){var U,Y;
return _.T(function(L){if(L.nextAddress==1)return _.k(L,S.JSC$15481_persistentStorePromiseAccessor(),2);if(L.nextAddress!=3)return U=L.yieldResult,_.k(L,L4(U),3);Y=L.yieldResult;return L.return({responseContext:{},contents:p,topbar:Y})})};var WO=function(S,p,U){this.JSC$15488_upliftPromise=S;this.store=p;this.JSC$15488_persistentStorePromiseAccessor=U};
WO.prototype.shouldPreferLocalResponse=function(S){var p=S.videoId;return p&&RKX(this.store.getState().entities,p)&&Fww(this.store.getState().entities,p)?MUG(this.store.getState().entities,S.playlistId):!1};
WO.prototype.localInnertubeResponse=function(S){var p=this,U,Y;return _.T(function(L){if(L.nextAddress==1)return(U=S.videoId)?_.k(L,p.JSC$15488_upliftPromise,2):L.return(Promise.reject(Error("Ri")));if(L.nextAddress!=3)return _.k(L,OGt(p,S,U),3);Y=L.yieldResult;return L.return(k_q(p,Y,U))})};
WO.prototype.canProvideFallbackResponse=function(S){return S.videoId?!0:!1};
WO.prototype.localFallbackInnertubeResponse=function(S){var p=this,U,Y,L,I;return _.T(function(V){switch(V.nextAddress){case 1:return(U=S.videoId)?_.k(V,p.JSC$15488_upliftPromise,2):V.return(Promise.reject(Error("Ri")));case 2:return _.k(V,OGt(p,S,U),3);case 3:Y=V.yieldResult;if(yr(p.store.getState().entities,U)){V.jumpTo(4);break}return _.k(V,Up(p.JSC$15488_upliftPromise,p.store),5);case 5:return L=V.yieldResult,V.return(HGc(Y,L));case 4:return RKX(p.store.getState().entities,U)&&Fww(p.store.getState().entities,
U)?V.return(k_q(p,Y,U)):(I={title:_.Aa(_.Oh("DOWNLOAD_UNAVAILABLE",void 0,"Download unavailable. Try a different video.")),icon:{iconType:"OFFLINE_NO_CONTENT"},ctaButton:{buttonRenderer:ZBw()},style:{value:"BACKGROUND_PROMO_STYLE_TYPE_FULL_HEIGHT"},loggingDirectives:{clientVeSpec:{uiType:236655}}},V.return(HGc(Y,I)))}})};
var OGt=function(S,p,U){var Y,L,I,V,W;return _.T(function(O){if(O.nextAddress==1)return Y=p.playlistId,L=_.qw(U,Y),_.k(O,S.JSC$15488_persistentStorePromiseAccessor(),2);if(O.nextAddress!=3)return I=O.yieldResult,_.k(O,L4(I),3);V=O.yieldResult;W={responseContext:{},currentVideoEndpoint:L,topbar:V};return O.return(W)})},k_q=function(S,p,U){if(S=yr(S.store.getState().entities,U)){var Y;
U=S.videoEntity;var L,I={title:ta(U.title),viewCount:{videoViewCountRenderer:{shortViewCount:_.cd((Y=U.localizedStrings)==null?void 0:Y.viewCount),viewCount:_.cd((L=U.localizedStrings)==null?void 0:L.viewCount)}}};U.publishedTimestampMillis&&(I.dateText=_.cd(ESw(new Date(Number(U.publishedTimestampMillis)))));Y={videoPrimaryInfoRenderer:I};L=S.videoEntity;S=S.channelEntity;S={videoSecondaryInfoRenderer:{defaultExpanded:!1,descriptionCollapsedLines:3,showMoreText:ta(_.Oh("SHOW_MORE",void 0,"Show more")),
showLessText:ta(_.Oh("SHOW_LESS",void 0,"Show less")),description:L.formattedDescription,owner:{videoOwnerRenderer:{title:ta(S.title),thumbnail:S.avatar}}}};p.contents={twoColumnWatchNextResults:{results:{results:{contents:[Y,S]}}}}}return p},HGc=function(S,p){S.contents={singleColumnWatchNextResults:{results:{results:{contents:[Lde(p)]}}}};
return S};var zU=function(S,p,U){this.JSC$15493_upliftPromise=S;this.store=p;this.JSC$15493_persistentStorePromiseAccessor=U};
zU.prototype.shouldPreferLocalResponse=function(){return!1};
zU.prototype.localInnertubeResponse=function(){return _.T(function(S){return S.return(Promise.reject(Error("Si")))})};
zU.prototype.canProvideFallbackResponse=function(){return!0};
zU.prototype.localFallbackInnertubeResponse=function(){var S=this,p,U,Y,L;return _.T(function(I){switch(I.nextAddress){case 1:return _.k(I,S.JSC$15493_persistentStorePromiseAccessor(),2);case 2:return p=I.yieldResult,_.k(I,L4(p),3);case 3:return U=I.yieldResult,Y={responseContext:{},topbar:U},_.k(I,S.JSC$15493_upliftPromise,4);case 4:return _.k(I,Up(S.JSC$15493_upliftPromise,S.store),5);case 5:return L=I.yieldResult,Y.watchStatus={backgroundPromoRenderer:L},I.return(Y)}})};var Dpj=new _.$g("ENDPOINT_MAP");var zEj=function(){var S=this;this.sequenceMap=new Map;this.TEST_ONLY={getSequenceMap:function(){return S.sequenceMap}}},dgl=function(S,p,U){var Y,L=(Y=p.config)==null?void 0:Y.sequenceStrategy;
if(!L)return U();S.sequenceMap.has(L.sequenceKey)||S.sequenceMap.set(L.sequenceKey,[]);S=S.sequenceMap.get(L.sequenceKey);switch(L.sequenceType){case "REQUEST_SEQUENCE_TYPE_APPEND":return Qim(S,p,U);case "REQUEST_SEQUENCE_TYPE_REPLACE":return nGE(S,p,U);default:throw new _.y7("Request could not be sequenced",p);}},Qim=function(S,p,U){var Y,L,I;
return _.T(function(V){S.length>0?(L=S[S.length-1],Y=L.responsePromise.then(function(){return U()})):Y=U();
I={request:p,responsePromise:Y};S.push(I);Jfj(S,I);return V.return(I.responsePromise)})},nGE=function(S,p,U){U=U();
if(S.length>0)for(var Y=_.d(S),L=Y.next();!L.done;L=Y.next())L.value.responsePromise=U;var I={request:p,responsePromise:U};S.push(I);Jfj(S,I);return Promise.resolve().then(function(){return S.indexOf(I)>0?I.responsePromise.then(function(V){return Object.assign({},V,{sequenceMetaData:{skipProcessing:!0}})}):I.responsePromise})},Jfj=function(S,p){p.responsePromise.then(function(){var U=S.indexOf(p);
U>-1&&S.splice(U,1)})};var yfc=new _.$g("REQUEST_SEQUENCING");var Xm=function(){};
_.r(Xm,SL);Xm.prototype.getApiPaths=function(){return[]};
Xm.prototype.getExtension=function(S){return _.b(S,o9H)};
Xm.prototype.JSC$10995_buildRequest=function(S,p){S.recaptchaToken=p.recaptchaToken};
Xm.prototype.getApiUrl=function(){return"/das_captcha"};var P9=function(){};
_.r(P9,SL);P9.prototype.getApiPaths=function(){return y4m};
P9.prototype.getExtension=function(S){return _.b(S,n1w)};
P9.prototype.JSC$10995_buildRequest=function(S,p,U){U=U===void 0?{}:U;p.createBackstagePostParams&&(S.createBackstagePostParams=p.createBackstagePostParams);U.comment_text&&(S.commentText=U.comment_text);if(U.attached_video_id)S.videoAttachment={videoId:U.attached_video_id};else if(U.image_poll_options)S.pollAttachmentData={options:U.image_poll_options};else if(U.poll_options)S.pollAttachment={choices:U.poll_options};else if(U.quiz_options)S.quizAttachmentData={options:U.quiz_options};else if(U.image_blob_id)S.imageAttachment=
{encryptedBlobId:U.image_blob_id},U.source_video_id&&(S.imageAttachment.sourceExternalVideoId=U.source_video_id),U.image_preview_coordinates&&(S.imageAttachment.previewCoordinates=JSON.parse(U.image_preview_coordinates));else if(U.images_data)S.imagesAttachment={imagesData:U.images_data};else if(U.clip_external_video_id!==void 0||U.clip_offset_ms!==void 0||U.clip_duration_ms!==void 0){var Y,L,I,V,W;S.clipAttachment={externalVideoId:(I=U.clip_external_video_id)!=null?I:"",offsetMs:(V=(Y=U.clip_offset_ms)==
null?void 0:Y.toString())!=null?V:"",durationMs:(W=(L=U.clip_duration_ms)==null?void 0:L.toString())!=null?W:""}}else U.shared_post_id&&(S.sharedPostAttachment={postId:U.shared_post_id});U.tagged_video_id&&(S.postCreationData={taggedVideoId:U.tagged_video_id});U.access_restrictions&&(typeof U.access_restrictions==="number"&&(p=U.access_restrictions,S.accessRestrictions={restriction:p!==1&&p===2?"RESTRICTION_TYPE_SPONSORS_ONLY":"RESTRICTION_TYPE_EVERYONE"}),typeof U.access_restrictions==="string"&&
(S.accessRestrictionsParams=U.access_restrictions));U.scheduled_publish_time_sec&&(S.scheduledPublishTimeSec=U.scheduled_publish_time_sec.toString())};var ZA=function(){};
_.r(ZA,SL);ZA.prototype.getApiPaths=function(){return RtI};
ZA.prototype.getExtension=function(S){return _.b(S,jqw)};
ZA.prototype.JSC$10995_buildRequest=function(S,p,U){U=U===void 0?{}:U;p.decorateMessageParams&&(S.params=p.decorateMessageParams);U.text&&(S.text=U.text)};var sN=function(){};
_.r(sN,SL);sN.prototype.getApiPaths=function(){return iam};
sN.prototype.getExtension=function(S){return _.b(S,Jxj)};
sN.prototype.JSC$10995_buildRequest=function(S,p,U){U=U===void 0?{}:U;U.video_id&&(S.videoId=U.video_id)};var es=function(){};
_.r(es,SL);es.prototype.getApiPaths=function(){return c4Q};
es.prototype.getExtension=function(S){return _.b(S,_.TI)};
es.prototype.JSC$10995_buildRequest=function(S,p,U){U.suggestions_query&&(S.input=U.suggestions_query)};var gT=function(){};
_.r(gT,SL);gT.prototype.getApiPaths=function(){return slm};
gT.prototype.getExtension=function(S){return _.b(S,yxI)};
gT.prototype.JSC$10995_buildRequest=function(S,p,U){U.comment_text!==void 0&&(S.commentText=U.comment_text);U.scheduled_publish_time_sec&&(S.scheduledPublishTimeSec=U.scheduled_publish_time_sec.toString());S.updateBackstagePostParams=p.updateBackstagePostParams};var uu=function(){};
_.r(uu,SL);uu.prototype.getApiPaths=function(){return BI};
uu.prototype.getExtension=function(S){return _.b(S,_.Zt)};
uu.prototype.JSC$10995_buildRequest=function(S,p,U){U.formData&&(S.formData=U.formData);p.token?S.continuation=p.token:p.continuationTokenKey&&(U=_.vJ().getState(),p=_.I4(U.entities,"continuationTokenEntity",p.continuationTokenKey))&&(S.continuation=String(p.continuationToken))};
var KDd=function(){};
_.r(KDd,SL);_.M=KDd.prototype;_.M.getApiPaths=function(){return BI};
_.M.getExtension=function(S){return _.b(S,_.kM)};
_.M.isNavigationCommand=function(){return!0};
_.M.JSC$11002_getStoreKey=function(S){if((S=this.getExtension(S))&&S.browseId){var p={browseId:S.browseId};S.browseEndpointContextSupportedConfigs&&(p.browseEndpointContextSupportedConfigs=JSON.stringify(S.browseEndpointContextSupportedConfigs));S.params&&(p.params=S.params);S.query&&(p.query=S.query);return _.xn("browse",p)}};
_.M.JSC$10995_buildRequest=function(S,p,U){p.browseId&&(S.browseId=p.browseId);p.params&&(S.params=p.params);p.query&&(S.query=p.query);U.formData?S.formData=U.formData:p.formData&&(S.formData=p.formData);p.browseId==="FEsubscriptions"&&_.D9().getFlag(155)&&(S.subscriptionSettingsState="MY_SUBS_SETTINGS_STATE_LAYOUT_FORMAT_LIST");p.browseId==="SPaccount_playback"&&(U=_.D9(),S.formData||(S.formData={}),S.formData.accountSettingsFormData={flagCaptionsDefaultOff:U.getFlag(65),flagAutoCaptionsDefaultOn:U.getFlag(66),
flagDisableInlinePreview:U.getFlag(186),flagAudioDescriptionDefaultOn:U.getFlag(198)});if(p.browseId==="FEwhat_to_watch"){U=_.D9();var Y=U.getFlag(196);U.getFlag(197)&&(S.browseRequestSupportedMetadata={downloadsBrowseParams:{offlineFeatureSettingState:{isSdEnabled:Y}}})}p.browseId==="FEwhat_to_watch"&&(p=_.D9().getFlag(186),S.inlineSettingStatus=p?"INLINE_SETTING_STATUS_DISABLED":"INLINE_SETTING_STATUS_ON")};
_.M.getRequestConfig=function(S,p){p=p===void 0?{}:p;var U={};if(S=this.JSC$11002_getStoreKey(S,p))U.storeStrategy={storeKey:S,disableCache:p.disableCache};_.y("web_log_browse_ticks_ks")||(U.requestTick="br_s",U.responseTick="br_r");return U};var wT=function(){};
_.r(wT,SL);wT.prototype.getApiPaths=function(){return Hat};
wT.prototype.getExtension=function(S){return _.b(S,aNw)};
wT.prototype.JSC$10995_buildRequest=function(S,p,U){S.legacyYoutubeChannelUsername=U.legacyYouTubeChannelUsername||"";S.legacyYoutubeChannelPassword=U.legacyYouTubeChannelPassword||""};var lu=function(){};
_.r(lu,SL);lu.prototype.getApiPaths=function(){return b$P};
lu.prototype.getExtension=function(S){return _.b(S,F6I)};
lu.prototype.JSC$10995_buildRequest=function(S,p,U){U.recaptcha_response_token&&(S.recaptchaResponseToken=U.recaptcha_response_token);U.channel_id&&(S.channelId=U.channel_id)};var aZ=function(){};
_.r(aZ,SL);aZ.prototype.getApiPaths=function(){return e_l};
aZ.prototype.getExtension=function(S){return _.b(S,g1d)};
aZ.prototype.JSC$10995_buildRequest=function(S,p,U){p.externalChannelId&&(S.externalChannelId=p.externalChannelId);U.handle&&(S.handleUpdate={handle:U.handle},p.handleEditSource&&(S.handleUpdate.handleEditSource=p.handleEditSource))};var fk=function(){};
_.r(fk,SL);fk.prototype.getApiPaths=function(){return lqc};
fk.prototype.getExtension=function(S){return _.b(S,NIH)};
fk.prototype.JSC$10995_buildRequest=function(S,p,U){p.request&&(S.channelId=p.request.channelId);var Y;if(U==null?0:(Y=U.uploadDefaults)==null?0:Y.emojiReactionSet)S.uploadDefaultsRequest||(S.uploadDefaultsRequest={}),S.uploadDefaultsRequest.emojiReactionSet=U.uploadDefaults.emojiReactionSet};var Ck=function(){};
_.r(Ck,SL);Ck.prototype.getApiPaths=function(){return Cjm};
Ck.prototype.getExtension=function(S){return _.b(S,XOj)};
Ck.prototype.JSC$10995_buildRequest=function(S,p,U){p.externalChannelId&&(S.externalChannelId=p.externalChannelId);p.channelHandleEntityKey&&(S.channelHandleEntityKey=p.channelHandleEntityKey);p.handleEditSource&&(S.handleEditSource=p.handleEditSource);U.handle?S.handle=U.handle:U.name&&(S.name=U.name)};var xF=function(){};
_.r(xF,SL);xF.prototype.getApiPaths=function(){return Q6E};
xF.prototype.getExtension=function(S){return _.b(S,IEe)};
xF.prototype.JSC$10995_buildRequest=function(S,p){p.actions?S.actions=p.actions:p.action&&(S.actions=[p.action])};var EN=function(){};
_.r(EN,SL);EN.prototype.getApiPaths=function(){return nVm};
EN.prototype.getExtension=function(S){return _.b(S,_.Zt)};
EN.prototype.JSC$10995_buildRequest=function(S,p){p.token&&(S.continuation=p.token)};var m9=function(){};
_.r(m9,SL);m9.prototype.getApiPaths=function(){return vVm};
m9.prototype.getExtension=function(S){return _.b(S,_.Zt)};
m9.prototype.JSC$10995_buildRequest=function(S,p){S.notificationsMenuRequestType="NOTIFICATIONS_MENU_REQUEST_TYPE_COMMENTS";p.token&&(S.fetchCommentsParams={continuation:p.token})};var oZ=function(){};
_.r(oZ,SL);oZ.prototype.getApiPaths=function(){return j6t};
oZ.prototype.getExtension=function(S){return _.b(S,Mit)};
oZ.prototype.JSC$10995_buildRequest=function(S,p,U){U=U===void 0?{}:U;p.createReplyParams&&(S.createReplyParams=p.createReplyParams);p.commentText&&(S.commentText=_.mA(p.commentText));U.comment_text&&(S.commentText=U.comment_text);U.image_blob_id&&(S.imageAttachment={encryptedBlobId:U.image_blob_id});U.botguard_response&&(S.botguardResponse=U.botguard_response)};
_.$u.Object.defineProperties(oZ.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var v9=function(){};
_.r(v9,SL);v9.prototype.getApiPaths=function(){return r4m};
v9.prototype.getExtension=function(S){return _.b(S,_.Lww)};
v9.prototype.JSC$10995_buildRequest=function(S,p,U){U=U===void 0?{}:U;p.createCommentParams&&(S.createCommentParams=p.createCommentParams);p.commentText&&(S.commentText=_.mA(p.commentText));p.videoPositionMention&&(S.videoPositionMention=p.videoPositionMention);p.sources&&(S.sources=p.sources);U.comment_text&&(S.commentText=U.comment_text);U.attached_video_id?S.videoAttachment={videoId:U.attached_video_id}:U.poll_options?S.pollAttachment={choices:U.poll_options}:U.image_blob_id?S.imageAttachment=
{encryptedBlobId:U.image_blob_id}:U.shared_post_id&&(S.sharedPostAttachment={postId:U.shared_post_id});U.access_restrictions&&typeof U.access_restrictions==="number"&&(p=U.access_restrictions,S.accessRestrictions={restriction:p!==1&&p===2?"RESTRICTION_TYPE_SPONSORS_ONLY":"RESTRICTION_TYPE_EVERYONE"});U.botguard_response&&(S.botguardResponse=U.botguard_response)};
_.$u.Object.defineProperties(v9.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var $F=function(){};
_.r($F,SL);$F.prototype.getApiPaths=function(){return g2H};
$F.prototype.getExtension=function(S){return _.b(S,Vij)};
$F.prototype.JSC$10995_buildRequest=function(S,p,U){p.commentText&&(S.replyText=_.mA(p.commentText));U.comment_text&&(S.replyText=U.comment_text);S.updateReplyParams=p.updateReplyParams};
_.$u.Object.defineProperties($F.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var iu=function(){};
_.r(iu,SL);iu.prototype.getApiPaths=function(){return uFm};
iu.prototype.getExtension=function(S){return _.b(S,dvt)};
iu.prototype.JSC$10995_buildRequest=function(S,p,U){p.commentText&&(S.commentText=_.mA(p.commentText));U.comment_text&&(S.commentText=U.comment_text);S.updateCommentParams=p.updateCommentParams};
_.$u.Object.defineProperties(iu.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var Nj=function(){};
_.r(Nj,SL);Nj.prototype.getApiPaths=function(){return wle};
Nj.prototype.getExtension=function(S){return _.b(S,o1H)};
Nj.prototype.JSC$10995_buildRequest=function(S,p){p.settings&&(S.settings=p.settings)};var B9=function(){};
_.r(B9,SL);B9.prototype.getApiPaths=function(){return art};
B9.prototype.getExtension=function(S){return _.b(S,PGt)};
B9.prototype.JSC$10995_buildRequest=function(S,p){p.channelCreationToken&&(S.channelCreationToken=p.channelCreationToken);p.source&&(S.source=p.source)};var qj=function(){};
_.r(qj,SL);qj.prototype.getApiPaths=function(){return baE};
qj.prototype.getExtension=function(S){return _.b(S,eOm)};
qj.prototype.JSC$10995_buildRequest=function(S,p,U){U=U===void 0?{}:U;if(U.name&&(U.given_name||U.family_name))S=new _.y7("channel creation cannot set both GAIA and YouTube names",p),_.ZP(S);else{if(p.zeroStepChannelCreationParams){if(!U.comment_text){S=new _.y7("zero_step_create_comment_params but no zero_step_texts",p);_.ZP(S);return}S.zeroStepChannelCreationParams=p.zeroStepChannelCreationParams;S.zeroStepChannelCreationParams.zeroStepCreateCommentParams&&(S.zeroStepChannelCreationParams.zeroStepCreateCommentParams.input=
U.comment_text,U.botguard_response&&(S.zeroStepChannelCreationParams.zeroStepCreateCommentParams.botguardResponse=U.botguard_response))}S.channelCreationToken=p.channelCreationToken;U.given_name&&(S.givenName=U.given_name);U.family_name&&(S.familyName=U.family_name);p.source==="CHANNEL_SWITCHER_CHANNEL_CREATION_SOURCE"&&(S.channelCreationType="CHANNEL_CREATION_TYPE_SECONDARY");if(U.name||U.handle||U.avatar_url||U.encryptedBlobId||U.isNameChanged!==void 0||U.isHandleChanged!==void 0||U.isDefaultProfilePhoto!==
void 0||U.obakeImageSource)S.overrideChannelCreationParams={},U.name&&(S.overrideChannelCreationParams.name=U.name),U.handle&&(S.overrideChannelCreationParams.handle=U.handle),U.avatar_url&&(S.overrideChannelCreationParams.avatarUrl=U.avatar_url),U.encryptedBlobId&&(S.overrideChannelCreationParams.blobEncryptionId=U.encryptedBlobId),U.enableIdentityForAllChannelCreationDialog&&(U.encryptedBlobId?S.overrideChannelCreationParams.identityForAllChannelCreationAvatarTag="IDENTITY_FOR_ALL_CHANNEL_CREATION_AVATAR_TAG_CUSTOM":
U.isDefaultProfilePhoto!==void 0&&(S.overrideChannelCreationParams.identityForAllChannelCreationAvatarTag=U.isDefaultProfilePhoto?"IDENTITY_FOR_ALL_CHANNEL_CREATION_AVATAR_TAG_GOOGLE_DEFAULT_MONOGRAM":"IDENTITY_FOR_ALL_CHANNEL_CREATION_AVATAR_TAG_GOOGLE_DEFAULT_OTHER"),U.isNameChanged!==void 0&&(S.overrideChannelCreationParams.identityForAllChannelCreationNameTag=U.isNameChanged?"IDENTITY_FOR_ALL_CHANNEL_CREATION_NAME_TAG_CUSTOM":"IDENTITY_FOR_ALL_CHANNEL_CREATION_NAME_TAG_GOOGLE_DEFAULT"),U.isHandleChanged!==
void 0&&(S.overrideChannelCreationParams.identityForAllChannelCreationHandleTag=U.isHandleChanged?"IDENTITY_FOR_ALL_CHANNEL_CREATION_HANDLE_TAG_CUSTOM":"IDENTITY_FOR_ALL_CHANNEL_CREATION_HANDLE_TAG_DEFAULT_AUTOGEN"),U.obakeImageSource&&(S.overrideChannelCreationParams.obakeImageSourceType=U.obakeImageSource))}};var A0=function(){};
_.r(A0,SL);A0.prototype.getApiPaths=function(S){return(S=this.getExtension(S))&&S.status==="DISLIKE"?Zam:S&&S.status==="INDIFFERENT"?Qll:LVI};
A0.prototype.getExtension=function(S){return _.b(S,_.lO)};
A0.prototype.JSC$10995_buildRequest=function(S,p){p.target&&(S.target=p.target);if(p=this.getParams(p))S.params=p};
A0.prototype.getParams=function(S){switch(S==null?void 0:S.status){case "DISLIKE":return S.dislikeParams;case "INDIFFERENT":return S.removeLikeParams;default:return S==null?void 0:S.likeParams}};var t0=function(){};
_.r(t0,SL);t0.prototype.getApiPaths=function(){return R_e};
t0.prototype.getExtension=function(S){return _.b(S,Dvq)};
t0.prototype.JSC$10995_buildRequest=function(S,p){p.settingItemId&&(S.settingItemId=p.settingItemId);p.stringValue!=null&&p.stringValue!==void 0?S.newValue={stringValue:p.stringValue}:p.intValue?S.newValue={intValue:p.intValue}:p.boolValue!==null&&p.boolValue!==void 0?S.newValue={boolValue:p.boolValue}:(S=new _.y7("Unknown value type for SetSettingEndpoint.",p),_.ZP(S))};var c9=function(){};
_.r(c9,SL);c9.prototype.getApiPaths=function(){return Xll};
c9.prototype.getExtension=function(S){return _.b(S,sUE)||void 0};
c9.prototype.JSC$10995_buildRequest=function(S,p,U){U=U===void 0?{}:U;p.channelIds&&(S.channelIds=p.channelIds);p.siloName&&(S.siloName=p.siloName);p.params&&(S.params=p.params);U.botguardResponse&&(S.botguardResponse=U.botguardResponse);U.feature&&(S.clientFeature=U.feature)};
_.$u.Object.defineProperties(c9.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var S5=function(){};
_.r(S5,SL);S5.prototype.getApiPaths=function(){return Z$q};
S5.prototype.getExtension=function(S){return _.b(S,zKj)||void 0};
S5.prototype.JSC$10995_buildRequest=function(S,p){p.channelIds&&(S.channelIds=p.channelIds);p.siloName&&(S.siloName=p.siloName);p.params&&(S.params=p.params)};
_.$u.Object.defineProperties(S5.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var pF=function(S){this.shareClientParamsProvider=S};
_.r(pF,SL);pF.prototype.getApiPaths=function(){return B_P};
pF.prototype.getExtension=function(S){return _.b(S,Chd)||_.b(S,_.xCt)||_.b(S,f7t)};
pF.prototype.JSC$10995_buildRequest=function(S,p){p.serializedShareEntity&&(S.serializedSharedEntity=p.serializedShareEntity);if(p.clientParamIdentifier){var U;if((U=this.shareClientParamsProvider)==null?0:U.clientParams.has(p.clientParamIdentifier)){U=this.shareClientParamsProvider;p=p.clientParamIdentifier;var Y=U.clientParams.get(p);Y&&U.clientParams.delete(p);S.clientParams=Y}}};
pF[vF]=[fUj];var UA=function(){};
_.r(UA,SL);UA.prototype.getApiPaths=function(){return Wtm};
UA.prototype.getExtension=function(S){return _.b(S,N1j)};
UA.prototype.JSC$10995_buildRequest=function(S,p){p.params&&(S.params=p.params)};var YD=function(){};
_.r(YD,SL);YD.prototype.getApiPaths=function(){return s6m};
YD.prototype.getExtension=function(S){return _.b(S,vCE)};
YD.prototype.JSC$10995_buildRequest=function(S,p){p.dismissal&&(S.items=[p.dismissal])};
_.$u.Object.defineProperties(YD.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var LF=function(){};
_.r(LF,SL);LF.prototype.getApiPaths=function(){return UHe};
LF.prototype.getExtension=function(S){return _.b(S,_.Rp)||void 0};
LF.prototype.JSC$10995_buildRequest=function(S,p,U){S.feedbackTokens=[];p.feedbackToken&&S.feedbackTokens.push(p.feedbackToken);if(p=p.cpn||U.cpn)S.feedbackContext={cpn:p};S.isFeedbackTokenUnencrypted=!!U.is_feedback_token_unencrypted;S.shouldMerge=!1;U.extra_feedback_tokens&&(S.shouldMerge=!0,S.feedbackTokens=S.feedbackTokens.concat(U.extra_feedback_tokens))};
_.$u.Object.defineProperties(LF.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var MM=function(){};
_.r(MM,SL);MM.prototype.getApiPaths=function(){return UHe};
MM.prototype.getExtension=function(S){return _.b(S,_.TI)};
MM.prototype.JSC$10995_buildRequest=function(S,p,U){U.feedback_tokens&&(S.feedbackTokens=U.feedback_tokens,S.shouldMerge=!0)};
_.$u.Object.defineProperties(MM.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var IQ=function(){};
_.r(IQ,SL);IQ.prototype.getApiPaths=function(){return UHe};
IQ.prototype.getExtension=function(S){return _.b(S,vJu)};
IQ.prototype.JSC$10995_buildRequest=function(S,p){p.undoToken&&(S.feedbackTokens=[p.undoToken]);p.isUndoTokenUnencrypted&&(S.isFeedbackTokenUnencrypted=p.isUndoTokenUnencrypted)};
_.$u.Object.defineProperties(IQ.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var Dv=function(){};
_.r(Dv,SL);Dv.prototype.getApiPaths=function(){return xHe};
Dv.prototype.getExtension=function(S){return _.b(S,ECt)};
Dv.prototype.JSC$10995_buildRequest=function(S,p){p.nextEndpoint&&_.b(p.nextEndpoint,_.Cv)?S.nextEndpoint={urlEndpoint:_.b(p.nextEndpoint,_.Cv)}:p.nextEndpoint&&_.b(p.nextEndpoint,_.E$)&&(S.nextEndpoint={watchEndpoint:_.b(p.nextEndpoint,_.E$)});p.setRacy&&(S.setRacy=p.setRacy);p.setControvercy&&(S.setControvercy=p.setControvercy)};var zm=function(S){this.JSC$15674_storeWithEntities=S};
_.r(zm,SL);zm.prototype.getApiPaths=function(){return gVI};
zm.prototype.getExtension=function(S){return _.b(S,kXw)};
zm.prototype.JSC$10995_buildRequest=function(S,p){p.flowId&&(S.flowId=p.flowId);p.targetId&&(S.targetId=p.targetId);p.continuation&&(S.continuation=p.continuation);var U=p.flowStateEntityKey;if(p.flowStatePassingSpec==="FLOW_STATE_PASSING_SPEC_FULL_STATE"&&U&&this.JSC$15674_storeWithEntities){var Y;if(p=(Y=this.JSC$15674_storeWithEntities.getState())==null?void 0:Y.entities)if(Y=_.Uc(U).entityType,Y=_.I4(p,Y,U))S.flowState=Y,S.flowStateEntityKey=U}};
_.$u.Object.defineProperties(zm.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});
zm[vF]=[M_];var bGP=function(){};
_.r(bGP,SL);_.M=bGP.prototype;_.M.getApiPaths=function(){return plt};
_.M.JSC$11002_getStoreKey=function(){return _.xn("guide")};
_.M.getRequestConfig=function(){var S=this.JSC$11002_getStoreKey(),p;S&&(p={storeStrategy:{storeKey:S}});return p};
_.M.isNavigationCommand=function(){return!0};
_.M.getExtension=function(S){return _.b(S,_.TI)};
_.M.JSC$10995_buildRequest=function(S){S.fetchLiveState=!0};var QZ=function(){};
_.r(QZ,SL);QZ.prototype.getApiPaths=function(){return DuI};
QZ.prototype.getExtension=function(S){return _.b(S,p$Q)};
QZ.prototype.JSC$10995_buildRequest=function(){};var nF=function(){};
_.r(nF,SL);nF.prototype.getApiPaths=function(){return ztt};
nF.prototype.getExtension=function(S){return _.b(S,Uvm)};
nF.prototype.JSC$10995_buildRequest=function(){};var JN=function(){};
_.r(JN,SL);JN.prototype.getApiPaths=function(){return T_P};
JN.prototype.getExtension=function(S){return _.b(S,_.Zt)};
JN.prototype.JSC$10995_buildRequest=function(S,p){p.token&&(S.continuation=p.token);var U,Y;S==null||(U=S.context)==null||(Y=U.user)==null||delete Y.onBehalfOfUser};
JN.prototype.getRequestConfig=function(S){var p={},U;if(((U=this.getExtension(S))==null?void 0:U.sessionIndex)!==void 0){var Y;p={authStrategy:{sessionIndex:(Y=this.getExtension(S))==null?void 0:Y.sessionIndex}}}return p};var yZ=function(){};
_.r(yZ,SL);yZ.prototype.JSC$10995_getRequest=function(S){var p=this.getExtension(S),U=S="";if(p==null?0:p.popup)S="true";if(p==null?0:p.disableSignout)U="true";p={};return{input:"/getAccountSwitcherEndpoint",requestShell:C9("/getAccountSwitcherEndpoint","GET",(p["X-YouTube-Delegation-Context"]=_.g7("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT"),p["X-YouTube-Account-Switcher-Popup"]=S,p["X-YouTube-Account-Switcher-Disable-Signout"]=U,p)),innerTubeRequest:{}}};
yZ.prototype.getApiPaths=function(){return[]};
yZ.prototype.getExtension=function(S){return _.b(S,_.K9N)};
yZ.prototype.JSC$10995_buildRequest=function(){};var KF=function(){};
_.r(KF,SL);KF.prototype.JSC$10995_getRequest=function(S){var p="/cross_account_channel_transfer";(S=this.getExtension(S))&&(p=yrE(p,{target_session:S.targetSessionIndex,source_rapt:S.sourceRapt,rapt:S.targetRapt}));return{input:p,requestShell:C9(p,"GET"),innerTubeRequest:{}}};
KF.prototype.getApiPaths=function(){return[]};
KF.prototype.getExtension=function(S){return _.b(S,qEt)};
KF.prototype.JSC$10995_buildRequest=function(){};var br=function(){};
_.r(br,SL);br.prototype.getApiPaths=function(){return uzt};
br.prototype.isNavigationCommand=function(){return!0};
br.prototype.getExtension=function(S){return _.b(S,_.TI)};
br.prototype.JSC$10995_buildRequest=function(S){var p=_.D9().get("gsml","");p&&(S.safetyModeLockerObfuscatedGaiaId=p);S.userInterfaceTheme=_.bE(!0);_.jv()?S.deviceTheme="DEVICE_THEME_SELECTED":_.DoR()?S.deviceTheme="DEVICE_THEME_SUPPORTED":S.deviceTheme="DEVICE_THEME_UNSUPPORTED"};var j5=function(){};
_.r(j5,SL);j5.prototype.getApiPaths=function(){return T_P};
j5.prototype.getExtension=function(S){return _.b(S,Alw)};
j5.prototype.JSC$10995_buildRequest=function(S,p){if(p&&p.requestType&&(S.requestType=p.requestType,p.requestType==="ACCOUNTS_LIST_REQUEST_TYPE_CHANNEL_SWITCHER"||p.requestType==="ACCOUNTS_LIST_REQUEST_TYPE_IDENTITY_PROMPT")){var U=p.nextUrl;U&&(_.bZX(U)||BQ(U))&&(S.nextNavendpoint={urlEndpoint:{url:U}})}p&&p.channelSwitcherQuery&&(S.channelSwitcherQuery=p.channelSwitcherQuery);p&&p.triggerChannelCreation&&(S.triggerChannelCreation=p.triggerChannelCreation);var Y;if(p==null?0:(Y=p.contentOwnerConfig)==
null?0:Y.externalContentOwnerId)S.contentOwnerConfig=p.contentOwnerConfig;S.callCircumstance=p&&p.requestType&&p.requestType==="ACCOUNTS_LIST_REQUEST_TYPE_IDENTITY_PROMPT"?"SUPPLEMENTAL_USER":"SWITCHING_USERS_FULL";var L,I;p=S==null?void 0:(L=S.context)==null?void 0:(I=L.user)==null?void 0:I.onBehalfOfUser;if(p!==void 0){S.obfuscatedSelectedGaiaId=p;var V,W;S==null||(V=S.context)==null||(W=V.user)==null||delete W.onBehalfOfUser}var O,D;if(L=S==null?void 0:(O=S.context)==null?void 0:(D=O.user)==null?
void 0:D.serializedDelegationContext)S.selectedSerializedDelegationContext=L};var rv=function(){};
_.r(rv,SL);rv.prototype.getApiPaths=function(){return N_I};
rv.prototype.getExtension=function(S){return _.b(S,$Pm)};
rv.prototype.JSC$10995_buildRequest=function(S,p){p.profileOwnerExternalChannelId&&(S.profileOwnerExternalChannelId=p.profileOwnerExternalChannelId);p.profileCardContext&&(S.profileCardContext=p.profileCardContext)};var Gm=function(){};
_.r(Gm,SL);Gm.prototype.getApiPaths=function(){return Oac};
Gm.prototype.getExtension=function(S){return _.b(S,Egj)};
Gm.prototype.JSC$10995_buildRequest=function(S,p){p.params&&(S.params=p.params)};var hN=function(){};
_.r(hN,SL);hN.prototype.getApiPaths=function(){return Ktt};
hN.prototype.getExtension=function(S){return _.b(S,_.UCc)};
hN.prototype.JSC$10995_buildRequest=function(S,p){if(p=p.createBroadcastRequest)S.useMasks=p.useMasks,S.broadcastType=p.broadcastType,S.broadcastSource=p.broadcastSource,S.broadcastMetadata=p.broadcastMetadata,S.broadcastMetadataMask=p.broadcastMetadataMask,S.videoMetadata=p.videoMetadata,S.videoMetadataMask=p.videoMetadataMask,S.liveChatSettingsUpdate=p.liveChatSettingsUpdate,S.liveChatSettingsUpdateMask=p.liveChatSettingsUpdateMask,S.cloneVideoId=p.cloneVideoId,S.cloneWithOverrides=p.cloneWithOverrides,
S.targetEntity=p.targetEntity,S.scheduledRedirectMetadata=p.scheduledRedirectMetadata};var RQ=function(){};
_.r(RQ,SL);RQ.prototype.getApiPaths=function(){return GEm};
RQ.prototype.getExtension=function(S){return _.b(S,p3e)};
RQ.prototype.JSC$10995_buildRequest=function(S,p,U){U=U===void 0?{}:U;p.params&&(S.params=p.params);U.questionText&&(S.questionText=U.questionText);U.optionText&&U.optionText.length>0&&(S.optionText=U.optionText)};var Fd=function(){};
_.r(Fd,SL);Fd.prototype.getApiPaths=function(){return FtI};
Fd.prototype.getExtension=function(S){return _.b(S,cHH)};
Fd.prototype.JSC$10995_buildRequest=function(S,p){p.params&&(S.params=p.params)};var Xd=function(){};
_.r(Xd,SL);Xd.prototype.getApiPaths=function(){return Cld};
Xd.prototype.getExtension=function(S){return _.b(S,BXc)};
Xd.prototype.JSC$10995_buildRequest=function(S,p){p.params&&(S.params=p.params)};var P0=function(){};
_.r(P0,SL);P0.prototype.getApiPaths=function(){return EVj};
P0.prototype.getExtension=function(S){return _.b(S,qCm)};
P0.prototype.JSC$10995_buildRequest=function(S,p,U){p.params&&(S.params=p.params);p.continuation&&(S.continuation=p.continuation);U.currentPlayerState&&U.currentPlayerState.playerOffsetMs&&(S.currentPlayerState={playerOffsetMs:U.currentPlayerState.playerOffsetMs.toString()})};var Zv=function(){};
_.r(Zv,SL);Zv.prototype.getApiPaths=function(){return muP};
Zv.prototype.getExtension=function(S){return _.b(S,NXI)};
Zv.prototype.JSC$10995_buildRequest=function(S,p,U){p.params&&(S.params=p.params);U.continuation&&(S.continuation=U.continuation);"hidden"in U&&(S.webClientInfo={isDocumentHidden:U.hidden});U.isInvalidationTimeoutRequest&&(S.isInvalidationTimeoutRequest=U.isInvalidationTimeoutRequest);U.invalidationPayload&&(p=i0j(_.Ol(qZ(U.invalidationPayload))),S.invalidationPayloadLastPublishAtUsec=GR(p,2));U.reloadActionPanel&&(S.reloadActionPanel=U.reloadActionPanel);U.fullReload&&(S.fullReload=U.fullReload);
U.currentPlayerState&&(S.currentPlayerState=U.currentPlayerState)};var sA=function(){};
_.r(sA,SL);sA.prototype.getApiPaths=function(){return MLj};
sA.prototype.getExtension=function(S){return _.b(S,SDE)};
sA.prototype.JSC$10995_buildRequest=function(S,p){S.params=p.params};var e5=function(){};
_.r(e5,SL);e5.prototype.getApiPaths=function(){return xut};
e5.prototype.getExtension=function(S){return _.b(S,LZj)};
e5.prototype.JSC$10995_buildRequest=function(S,p){p.params&&(S.params=p.params)};var gv=function(){};
_.r(gv,SL);gv.prototype.getApiPaths=function(){return oVm};
gv.prototype.getExtension=function(S){return _.b(S,M0d)};
gv.prototype.JSC$10995_buildRequest=function(S,p){p.params&&(S.params=p.params)};var ur=function(){};
_.r(ur,SL);ur.prototype.getApiPaths=function(){return IqH};
ur.prototype.getExtension=function(S){return _.b(S,UNI)};
ur.prototype.JSC$10995_buildRequest=function(S,p){p.params&&(S.params=p.params)};var wv=function(){};
_.r(wv,SL);wv.prototype.getApiPaths=function(){return VLe};
wv.prototype.getExtension=function(S){return _.b(S,YDw)};
wv.prototype.JSC$10995_buildRequest=function(S,p){p.params&&(S.params=p.params)};var lr=function(){};
_.r(lr,SL);lr.prototype.getApiPaths=function(){return n2l};
lr.prototype.getExtension=function(S){return _.b(S,vgl)};
lr.prototype.JSC$10995_buildRequest=function(S,p){p.params&&(S.params=p.params)};var aQ=function(){};
_.r(aQ,SL);aQ.prototype.getApiPaths=function(){return GsQ};
aQ.prototype.getExtension=function(S){return _.b(S,_.Lft)};
aQ.prototype.JSC$10995_buildRequest=function(S,p,U){U=U===void 0?{}:U;p.params&&(S.params=p.params);U.client_message_id&&(S.clientMessageId=U.client_message_id);U.recaptcha_token&&(S.recaptchaToken=U.recaptcha_token);U.rich_message&&U.rich_message.text_segments?(p=U.rich_message.text_segments.map(function(Y){var L={};Y.text&&(L.text=Y.text);Y.emoji_id&&(L.emojiId=Y.emoji_id);return L}),S.richMessage={textSegments:p}):U.message&&(S.message=U.message);
U.currentPlayerState&&(S.currentPlayerState=U.currentPlayerState)};var fF=function(){};
_.r(fF,SL);fF.prototype.getApiPaths=function(){return h_t};
fF.prototype.getExtension=function(S){return _.b(S,MlI)};
fF.prototype.JSC$10995_buildRequest=function(S,p){p.params&&(S.params=p.params)};var CF=function(){};
_.r(CF,SL);CF.prototype.getApiPaths=function(){return PjQ};
CF.prototype.getExtension=function(S){return _.b(S,dNI)};
CF.prototype.JSC$10995_buildRequest=function(S,p,U){p.isUserInitiated&&(S.isUserInitiated=p.isUserInitiated);p.initiationSource&&(S.initiationSource=p.initiationSource);U.locationInfo&&(S.context.client.locationInfo=U.locationInfo)};var xD=function(){};
_.r(xD,SL);xD.prototype.getApiPaths=function(){return dHH};
xD.prototype.getExtension=function(S){return _.b(S,YBt)};
xD.prototype.JSC$10995_buildRequest=function(S,p,U){p.metadataUpdateRequest&&(p=p.metadataUpdateRequest,S.encryptedVideoId=p.encryptedVideoId,p.liveChat&&(p=p.liveChat,S.liveChat||(S.liveChat={}),p.performAsExternalChannelId&&(S.liveChat.performAsExternalChannelId=p.performAsExternalChannelId),p.source&&(S.liveChat.source=p.source)));var Y;if(U==null?0:(Y=U.liveChat)==null?0:Y.liveChatSettings)S.liveChat||(S.liveChat={}),U=U.liveChat.liveChatSettings,S.liveChat.newLiveChatSettings=U,S.liveChat.newLiveChatSettingsMask||
(S.liveChat.newLiveChatSettingsMask={}),U.emojiReactionSet&&(S.liveChat.newLiveChatSettingsMask.emojiReactionSet=!0)};var EA=function(){};
_.r(EA,SL);EA.prototype.getApiPaths=function(){return fql};
EA.prototype.getExtension=function(S){return _.b(S,_.QUw)};
EA.prototype.JSC$10995_buildRequest=function(S,p,U){U.continuation?S.continuation=U.continuation:p.videoId&&(S.videoId=p.videoId);U.clientParams&&(S.clientParams=U.clientParams)};var mI=function(){};
_.r(mI,SL);mI.prototype.getApiPaths=function(){return vVm};
mI.prototype.getExtension=function(S){return _.b(S,_.G1)};
mI.prototype.JSC$10995_buildRequest=function(S,p){S.notificationsMenuRequestType="NOTIFICATIONS_MENU_REQUEST_TYPE_COMMENTS";S.fetchCommentsParams={};p.videoId&&(S.fetchCommentsParams.encryptedVideoId=p.videoId);p.postId&&(S.fetchCommentsParams.postId=p.postId);p.externalChannelId&&(S.fetchCommentsParams.externalChannelId=p.externalChannelId);p.linkedCommentId&&(S.fetchCommentsParams.linkedCommentId=p.linkedCommentId);(0,_.h9.isEmpty)(S.fetchCommentsParams)&&delete S.fetchCommentsParams};var oQ=function(){};
_.r(oQ,SL);oQ.prototype.getApiPaths=function(){return BI};
oQ.prototype.JSC$10995_buildRequest=function(S){S.browseId="FEnotifications_inbox"};
oQ.prototype.getExtension=function(S){return _.b(S,_.TI)};var v0=function(){};
_.r(v0,SL);v0.prototype.getApiPaths=function(){return vVm};
v0.prototype.JSC$10995_buildRequest=function(S,p){p.signal==="GET_NOTIFICATIONS_MENU"&&(S.notificationsMenuRequestType="NOTIFICATIONS_MENU_REQUEST_TYPE_INBOX");p.ctoken&&(S.ctoken=p.ctoken)};
var jiQ=function(){};
_.r(jiQ,v0);jiQ.prototype.getExtension=function(S){return _.b(S,_.TI)};
var rft=function(){};
_.r(rft,v0);rft.prototype.getExtension=function(S){return _.b(S,fNm)};var $D=function(){};
_.r($D,SL);$D.prototype.getApiPaths=function(){return t8I};
$D.prototype.getExtension=function(S){return _.b(S,_.TI)};
$D.prototype.JSC$10995_buildRequest=function(){};var ir=function(){};
_.r(ir,SL);ir.prototype.getApiPaths=function(){return Tkl};
ir.prototype.getExtension=function(S){return _.b(S,OLc)||void 0};
ir.prototype.JSC$10995_buildRequest=function(S,p){p.params&&(S.params=p.params);p.secondaryParams&&(S.secondaryParams=p.secondaryParams)};var NM=function(){};
_.r(NM,SL);NM.prototype.getApiPaths=function(){return WVm};
NM.prototype.getExtension=function(S){return _.b(S,mCt)};
NM.prototype.JSC$10995_buildRequest=function(S,p){p.undo&&(S.undo=p.undo);p.serializedOptOut&&(S.serializedOptOut=p.serializedOptOut);p.serializedRecordInteractionsRequest&&(S.serializedRecordInteractionsRequest=p.serializedRecordInteractionsRequest)};var B0=function(){};
_.r(B0,SL);B0.prototype.getApiPaths=function(){return H$I};
B0.prototype.getExtension=function(S){return _.b(S,ogm)};
B0.prototype.JSC$10995_buildRequest=function(S,p){p.serializedInteractionsRequest&&(S.serializedRecordNotificationInteractionsRequest=p.serializedInteractionsRequest)};var qM=function(){};
_.r(qM,SL);qM.prototype.getApiPaths=function(){return nQX};
qM.prototype.getExtension=function(S){return _.b(S,X9w)};
qM.prototype.JSC$10995_buildRequest=function(S,p,U){p=p===void 0?{}:p;U=U===void 0?{}:U;p.videoId?S.videoId=p.videoId:p.playlistId&&(S.playlistId=p.playlistId);var Y,L=(Y=p.offlineWebClientEligibility)!=null?Y:U.offlineWebClientEligibility;L&&(S.offlineWebClientEligibility=L);var I;if(Y=(I=p.preferredFormatType)!=null?I:U.preferredFormatType)S.preferredFormatType=Y;var V;if(I=(V=p.lastOfflineQualitySettingsSavedMs)!=null?V:U.lastOfflineQualitySettingsSavedMs)S.lastOfflineQualitySettingsSavedMs=I;
p.params&&(S.params=p.params)};var AN=function(){};
_.r(AN,SL);AN.prototype.getApiPaths=function(){return EO};
AN.prototype.getExtension=function(S){return _.b(S,_.Zt)};
AN.prototype.JSC$10995_buildRequest=function(S,p,U){U=U===void 0?{}:U;p.token&&(S.continuation=p.token);U.formData&&(S.formData=U.formData)};var tN=function(){};
_.r(tN,SL);tN.prototype.getApiPaths=function(){return EO};
tN.prototype.getExtension=function(S){return _.b(S,A2m)};
tN.prototype.JSC$10995_buildRequest=function(S,p,U){U=U===void 0?{}:U;S.continuation=U.continuation};var c0=function(){};
_.r(c0,SL);c0.prototype.getApiPaths=function(){return EO};
c0.prototype.getExtension=function(S){return _.b(S,_.hx)};
c0.prototype.JSC$10995_buildRequest=function(S,p){var U,Y=p.panelIdentifier||((U=p.identifier)==null?void 0:U.tag);Y&&(S.panelId=Y);var L;if((L=p.globalConfiguration)==null?0:L.params){var I;S.params=(I=p.globalConfiguration)==null?void 0:I.params}};
_.$u.Object.defineProperties(c0.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var SZ=function(){};
_.r(SZ,SL);SZ.prototype.getApiPaths=function(){return EO};
SZ.prototype.getExtension=function(S){return _.b(S,gze)};
SZ.prototype.JSC$10995_buildRequest=function(S,p){p.panelLoadingStrategy&&Wde(S,p.panelLoadingStrategy)};var p5=function(){};
_.r(p5,SL);p5.prototype.getApiPaths=function(){return EO};
p5.prototype.getExtension=function(S){return _.b(S,p1t)};
p5.prototype.JSC$10995_buildRequest=function(S,p){p.loadingStrategy&&Wde(S,p.loadingStrategy)};var Uy=function(){};
_.r(Uy,SL);Uy.prototype.getApiPaths=function(){return EO};
Uy.prototype.getExtension=function(S){return _.b(S,_.OK)};
Uy.prototype.JSC$10995_buildRequest=function(S,p){p.panelLoadingStrategy&&Wde(S,p.panelLoadingStrategy)};var Y8=function(){};
_.r(Y8,SL);Y8.prototype.getApiPaths=function(){return EO};
Y8.prototype.getExtension=function(S){return _.b(S,UVP)};
Y8.prototype.JSC$10995_buildRequest=function(S,p){var U,Y=(U=p.contentSourcePanelIdentifier)==null?void 0:U.tag;Y&&(S.panelId=Y);var L;if((L=p.globalConfiguration)==null?0:L.params){var I;S.params=(I=p.globalConfiguration)==null?void 0:I.params}};var L5=function(){};
_.r(L5,SL);L5.prototype.getApiPaths=function(){return["pdg/get_pdg_buy_flow"]};
L5.prototype.getExtension=function(S){return _.b(S,Ywt)};
L5.prototype.JSC$10995_buildRequest=function(S,p){p.params&&(S.params=p.params)};var ML=function(){};
_.r(ML,SL);ML.prototype.getApiPaths=function(){return aqm};
ML.prototype.getExtension=function(S){return _.b(S,I0Q)};
ML.prototype.JSC$10995_buildRequest=function(S,p){p.externalChannelId&&(S.externalChannelId=p.externalChannelId);p.superChatAction&&(S.superChatAction=p.superChatAction);p.superStickersAction&&(S.superStickersAction=p.superStickersAction)};var Ib=function(){};
_.r(Ib,SL);Ib.prototype.getApiPaths=function(){return wtj};
Ib.prototype.getExtension=function(S){return _.b(S,qwc)||_.b(S,ZkG)};
Ib.prototype.JSC$10995_buildRequest=function(S,p){p.videoIds?S.videoIds=p.videoIds:p.videoId&&(S.videoIds=[p.videoId]);p.playlistId&&(S.playlistId=p.playlistId);p.params&&(S.params=p.params);S.excludeWatchLater=!1};var d4=function(){};
_.r(d4,SL);d4.prototype.getApiPaths=function(){return htq};
d4.prototype.getExtension=function(S){return _.b(S,_.sO)};
d4.prototype.JSC$10995_buildRequest=function(S,p,U){U.create_playlist_title?S.title=U.create_playlist_title:p.title&&(S.title=p.title);if(U.create_playlist_privacy_status&&typeof U.create_playlist_privacy_status==="number"){a:{var Y=U.create_playlist_privacy_status;if(Y!==0){if(Y===1){Y="PUBLIC";break a}if(Y===2){Y="UNLISTED";break a}}Y="PRIVATE"}S.privacyStatus=Y}else p.privacyStatus&&(S.privacyStatus=p.privacyStatus);U.create_playlist_description&&(S.description=U.create_playlist_description);p.videoIds&&
(S.videoIds=p.videoIds);p.params&&(S.params=p.params);p.sourcePlaylistId&&(S.sourcePlaylistId=p.sourcePlaylistId)};var Vi=function(){};
_.r(Vi,SL);Vi.prototype.getApiPaths=function(){return XtQ};
Vi.prototype.getExtension=function(S){return _.b(S,THd)};
Vi.prototype.JSC$10995_buildRequest=function(S,p){S.playlistId=p.playlistId};var To=function(){};
_.r(To,SL);To.prototype.getApiPaths=function(){return $uI};
To.prototype.getExtension=function(S){return _.b(S,l7m)};
To.prototype.JSC$10995_buildRequest=function(S,p){p.playlistId&&(S.playlistId=p.playlistId);p.params&&(S.params=p.params)};var Ws=function(){};
_.r(Ws,SL);Ws.prototype.getApiPaths=function(){return kst};
Ws.prototype.getExtension=function(S){return _.b(S,_.h1)||void 0};
Ws.prototype.JSC$10995_buildRequest=function(S,p){p.actions&&(S.actions=p.actions);p.params&&(S.params=p.params);p.playlistId&&(S.playlistId=p.playlistId)};var Oy=function(){};
_.r(Oy,SL);_.M=Oy.prototype;_.M.getApiPaths=function(){return DHc};
_.M.getExtension=function(S){return _.b(S,_.QX)};
_.M.JSC$10995_buildRequest=function(S,p){p.videoId&&(S.playerRequest={videoId:p.videoId},p.playerParams&&(S.playerRequest.params=p.playerParams),p.racyCheckOk&&(S.playerRequest.racyCheckOk=!!p.racyCheckOk),p.contentCheckOk&&(S.playerRequest.contentCheckOk=!!p.contentCheckOk));p.params&&(S.params=p.params);p.inputType&&(S.inputType=p.inputType);S.disablePlayerResponse=!0};
_.M.getRequestConfig=function(S){var p;(S=this.JSC$11002_getStoreKey(S))&&(p={storeStrategy:{storeKey:S}});_.y("web_log_reels_ticks")&&(p=p||{},p.requestTick="r_wrs",p.responseTick="r_wrr");return p};
_.M.JSC$11002_getStoreKey=function(S){S=this.getExtension(S);if(_.y("shorts_controller_retrieve_seedless_sequence_v2")){if((S==null?void 0:S.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS")return _.xn("reel_item_watch",{inputType:"REEL_WATCH_INPUT_TYPE_SEEDLESS"})}else if((_.y("web_prefetch_riw_for_next_video")||_.y("web_shorts_prefetch_service_enabled"))&&S!=null&&S.videoId){var p={videoId:S.videoId};S.params&&(p.params=S.params);return _.xn("reel_item_watch",p)}};var k8=function(){};
_.r(k8,SL);_.M=k8.prototype;_.M.getApiPaths=function(){return z_c};
_.M.getExtension=function(S){return _.b(S,_.QX)};
_.M.JSC$10995_buildRequest=function(S,p,U){U=U===void 0?{}:U;S.sequenceParams=p.sequenceParams;var Y;((Y=U)==null?0:Y.contentPlaybackContext)&&_.y("web_shorts_prefetch_service_enabled")&&(S.playbackContext={contentPlaybackContext:U.contentPlaybackContext})};
_.M.JSC$11002_getStoreKey=function(S){if(_.y("shorts_controller_retrieve_seedless_sequence_v2")&&(S=this.getExtension(S),S==null?0:S.sequenceParams))return _.xn("reel_watch_sequence",{sequenceParams:S.sequenceParams})};
_.M.getRequestConfig=function(S){S=this.JSC$11002_getStoreKey(S);var p;S&&(p={storeStrategy:{storeKey:S}});_.y("reel_watch_sequence_request_log_ticks")&&(p=p||{},p.requestTick="r_wsrs",p.responseTick="r_wsrr",p.processorTick="r_wsrp");return p};
var Hs=function(){};
_.r(Hs,SL);Hs.prototype.getApiPaths=function(){return z_c};
Hs.prototype.getExtension=function(S){return _.b(S,_.Zt)};
Hs.prototype.JSC$10995_buildRequest=function(S,p,U){U=U===void 0?{}:U;p.token&&(S.continuation=p.token);var Y;((Y=U)==null?0:Y.contentPlaybackContext)&&_.y("web_shorts_prefetch_service_enabled")&&(S.playbackContext={contentPlaybackContext:U.contentPlaybackContext})};
Hs.prototype.getRequestConfig=function(S){S=this.JSC$11002_getStoreKey(S);var p;S&&(p={storeStrategy:{storeKey:S}});_.y("reel_watch_sequence_request_log_ticks")&&(p=p||{},p.requestTick="r_wsrs",p.responseTick="r_wsrr",p.processorTick="r_wsrp");return p};var D_=function(){};
_.r(D_,SL);D_.prototype.getApiPaths=function(){return etm};
D_.prototype.getExtension=function(S){return _.b(S,_.O0q)};
D_.prototype.JSC$10995_buildRequest=function(S,p,U){U=U===void 0?{}:U;p.flagAction&&(S.action=p.flagAction);p.flagRequestType&&(S.flagRequestType=p.flagRequestType);p.additionalDetailCheckboxChecked&&(S.additionalDetailCheckboxChecked=p.additionalDetailCheckboxChecked);p.legalCheckboxChecked&&(S.legalCheckboxChecked=p.legalCheckboxChecked);p={};U.flag_issue_type!==void 0&&(p.issue=U.flag_issue_type);U.flag_affiliation!==void 0&&(p.affiliation=U.flag_affiliation);U.flag_full_name&&(p.fullName=U.flag_full_name);
Object.keys(p).length&&(S.legalReportDetails=p);if(U.flag_description||U.text)S.userComments=U.flag_description||U.text;p={};U.minutes!==void 0&&U.seconds!==void 0&&(p.minutes=U.minutes,p.seconds=U.seconds);U.vss_id&&(p.vssId=U.vss_id);Object.keys(p).length&&(S.videoReportDetails=p);p={};U.video_ids&&(p.videoIds=U.video_ids);U.impersonated_channel_url&&(p.impersonatedChannelUrl=U.impersonated_channel_url);Object.keys(p).length&&(S.channelAbuseReportDetails=p)};
_.$u.Object.defineProperties(D_.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var zo=function(){};
_.r(zo,SL);zo.prototype.getApiPaths=function(){return frP};
zo.prototype.getExtension=function(S){return _.b(S,fxI)};
zo.prototype.JSC$10995_buildRequest=function(S,p){p.blockedForKidsContent&&(S.blockedForKidsContent=p.blockedForKidsContent)};var Qi=function(){};
_.r(Qi,SL);Qi.prototype.getApiPaths=function(){return Jjm};
Qi.prototype.getExtension=function(S){return _.b(S,Puu)};
Qi.prototype.JSC$10995_buildRequest=function(S,p,U){S.params=p.params;U.impersonated_channel_url&&(S.impersonatedChannelUrl=U.impersonated_channel_url)};var n5=function(){};
_.r(n5,SL);n5.prototype.getApiPaths=function(){return Yzt};
n5.prototype.getExtension=function(S){return _.b(S,_.C1w)};
n5.prototype.JSC$10995_buildRequest=function(S,p){p.items&&(S.items=p.items);p.kidGaiaId&&(S.kidGaiaId=p.kidGaiaId)};var JV=function(){};
_.r(JV,SL);JV.prototype.getApiPaths=function(){return lrm};
JV.prototype.getExtension=function(S){return _.b(S,_.NlI)};
JV.prototype.JSC$10995_buildRequest=function(S,p){p.params&&(S.params=p.params);p.targetId&&(S.targetId=p.targetId)};var yi=function(){};
_.r(yi,SL);yi.prototype.getApiPaths=function(){return jlc};
yi.prototype.getExtension=function(S){return _.b(S,CYq)};
yi.prototype.JSC$10995_buildRequest=function(S,p){p.externalVideoId&&(S.externalVideoId=p.externalVideoId);p.query&&(S.query=p.query);p.sourceTimelines&&(S.sourceTimelines=p.sourceTimelines)};var K5=function(){};
_.r(K5,SL);K5.prototype.getApiPaths=function(){return rjH};
K5.prototype.getExtension=function(S){return _.b(S,_.Zt)||void 0};
K5.prototype.JSC$10995_buildRequest=function(S,p){p.token&&(S.continuation=p.token)};
_.G_m=function(){};
_.r(_.G_m,SL);_.M=_.G_m.prototype;_.M.getApiPaths=function(){return rjH};
_.M.getExtension=function(S){return _.b(S,_.HB)||void 0};
_.M.isNavigationCommand=function(){return!0};
_.M.JSC$11002_getStoreKey=function(S,p){p=p===void 0?{}:p;if(!p.disableCache&&(S=this.getExtension(S))&&S.query)return p={query:S.query},S.params&&(p.params=S.params),_.xn("search",p)};
_.M.JSC$10995_buildRequest=function(S,p,U){p.query&&(S.query=p.query);p.params&&(S.params=p.params);if(!_.y("web_forward_suggest_stats_killswitch")){var Y=_.b(p,PhH);Y&&(S.suggestStats=Y)}var L;!_.y("kevlar_searchbox_stats_killswitch")&&((L=U.tempData)==null?0:L.gs_l)&&!_.b(p,PhH)&&(S.webSearchboxStatsUrl="/search?oq="+(U.tempData.oq||"")+"&gs_l="+U.tempData.gs_l);var I;if((I=U.tempData)==null?0:I.entityMid)p=S.suggestionSearchParams||{},p.entityMid=U.tempData.entityMid,S.suggestionSearchParams=p};
_.M.getRequestConfig=function(S,p){p=p===void 0?{}:p;S=this.JSC$11002_getStoreKey(S,p);var U;S&&(U={storeStrategy:{storeKey:S}});_.y("web_log_search_ticks_ks")||(U=U||{},U.requestTick="sr_s",U.responseTick="sr_r");return U};var bD=function(){};
_.r(bD,SL);bD.prototype.getApiPaths=function(){return q8P};
bD.prototype.getExtension=function(S){return _.b(S,bLE)};
bD.prototype.JSC$10995_buildRequest=function(S,p){p.serializedGetSharingProviderDataParams&&(S.serializedGetSharingProviderDataParams=p.serializedGetSharingProviderDataParams)};var jZ=function(){};
_.r(jZ,SL);jZ.prototype.getApiPaths=function(){return A4t};
jZ.prototype.getExtension=function(S){return _.b(S,Ixm)};
jZ.prototype.JSC$10995_buildRequest=function(S,p){p.endpoint&&(S.endpoint=p.endpoint);p.action&&(S.action=p.action)};var r4=function(){};
_.r(r4,SL);r4.prototype.getApiPaths=function(){return Plj};
r4.prototype.getExtension=function(S){return _.b(S,Wwd)};
r4.prototype.JSC$10995_buildRequest=function(S,p){S.videoId=p.videoId;p.scheduledRedirectMetadataSourceVideoId&&(S.scheduledRedirectMetadata={sourceVideoId:p.scheduledRedirectMetadataSourceVideoId})};var Go=function(){};
_.r(Go,SL);Go.prototype.getApiPaths=function(){return FVQ};
Go.prototype.getExtension=function(S){return _.b(S,_.Ucq)};
Go.prototype.JSC$10995_buildRequest=function(S,p){S.params=p.params;S.correctionText=p.correctionText};var hV=function(){};
_.r(hV,SL);hV.prototype.getApiPaths=function(){return zsw};
hV.prototype.getExtension=function(S){return _.b(S,_.xOq)};
hV.prototype.JSC$10995_buildRequest=function(S,p){p.params&&(S.params=p.params);S.searchQuery=p.searchQuery;S.languageCode=p.languageCode;S.kind=p.kind;S.name=p.name;S.externalVideoId=p.externalVideoId};var Rb=function(){};
_.r(Rb,SL);Rb.prototype.getApiPaths=function(){return mHd};
Rb.prototype.getExtension=function(S){return _.b(S,Qgt)};
Rb.prototype.JSC$10995_buildRequest=function(S,p){p.params&&(S.params=p.params)};var Fo=function(S){this.JSC$15949_storeWithEntities=S};
_.r(Fo,SL);Fo.prototype.getApiPaths=function(){return J4m};
Fo.prototype.getExtension=function(S){return _.b(S,J1w)||_.b(S,KSd)};
Fo.prototype.JSC$10995_buildRequest=function(S,p,U){U.client_data&&(S.clientData=U.client_data);if(p.commerceActionConfig){var Y=p.commerceActionConfig;p=Y.actionId;Y=Y.commerceActionParams;p&&(S.actionId=p);Y&&(S.commerceActionParams=Y)}else{var L=p.actionId,I=p.commerceActionParams;U=p.entityKeys;L&&(S.actionId=L);I&&(S.commerceActionParams=I);var V;p=(Y=this.JSC$15949_storeWithEntities)==null?void 0:(V=Y.getState())==null?void 0:V.entities;if(U&&p){Y=[];V=_.d(U);for(U=V.next();!U.done;U=V.next())if(L=
U.value,U=_.Uc(L).entityType,L=_.I4(p,U,L))I={},Y.push((I[U]=L,I));S.entityMutationPayloads=Y}}};
Fo.prototype.getRequestConfig=function(S){var p,U=(p=_.b(S,J1w))==null?void 0:p.requestSequenceType;if(U&&S.clickTrackingParams&&U!=="REQUEST_SEQUENCE_TYPE_UNKNOWN")return{sequenceStrategy:{sequenceKey:S.clickTrackingParams,sequenceType:U}}};
Fo[vF]=[M_];var Xo=function(){};
_.r(Xo,SL);Xo.prototype.getApiPaths=function(){return o2H};
Xo.prototype.getExtension=function(S){return _.b(S,_.fHj)};
Xo.prototype.JSC$10995_buildRequest=function(S,p){p.feedbackData&&(S.feedbackData=p.feedbackData);p.params&&(S.itemParams=p.params)};
_.$u.Object.defineProperties(Xo.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var Ps=function(){};
_.r(Ps,SL);Ps.prototype.getApiPaths=function(){return v2P};
Ps.prototype.getExtension=function(S){return _.b(S,CBE)};
Ps.prototype.JSC$10995_buildRequest=function(S,p,U){U.payments_payload&&(S.paymentsPayload=U.payments_payload);U.offer_params&&(S.offerParams=U.offer_params);p.transactionParams&&(S.transactionParams=p.transactionParams)};var Z_=function(){};
_.r(Z_,SL);Z_.prototype.getApiPaths=function(){return $Hc};
Z_.prototype.getExtension=function(S){return _.b(S,_.xcj)};
Z_.prototype.JSC$10995_buildRequest=function(S,p,U){U=U===void 0?{}:U;p.buybucketParams&&(S.buybucketData={params:p.buybucketParams},p.stickerParams?S.buybucketData.stickerParams=p.stickerParams:(U.rich_chat_message?S.buybucketData.richChatMessage=U.rich_chat_message:U.chat_message_text&&(S.buybucketData.chatMessageText=U.chat_message_text),U.purchase_price_micros&&(S.buybucketData.purchasePriceMicros=U.purchase_price_micros.toString())));p.donationAmountMicros&&(S.tipAmountMicros=p.donationAmountMicros,
p.tipParams&&(S.tipParams=p.tipParams));p.offerParams&&(S.offerParams=p.offerParams);p.productData&&(S.productData=p.productData);p.transactionParams&&(S.transactionParams=p.transactionParams)};var sy=function(){};
_.r(sy,SL);sy.prototype.getApiPaths=function(){return i$E};
sy.prototype.getExtension=function(S){return _.b(S,oSI)};
sy.prototype.JSC$10995_buildRequest=function(S,p){p.updateFopParams&&(S.updateFopParams=p.updateFopParams)};var eZ=function(){};
_.r(eZ,SL);eZ.prototype.getApiPaths=function(){return NkE};
eZ.prototype.getExtension=function(S){return _.b(S,_.SJ)};
eZ.prototype.JSC$10995_buildRequest=function(S,p){p.couponCode&&(S.couponCode=p.couponCode);p.params&&(S.itemParams=p.params)};var g4=function(){};
_.r(g4,SL);g4.prototype.getApiPaths=function(){return Bkl};
g4.prototype.getExtension=function(S){return _.b(S,_.y1I)};
g4.prototype.JSC$10995_buildRequest=function(S,p,U){U=U===void 0?{}:U;p.params&&(S.params=p.params);U.ctk&&(S.clientToken=U.ctk)};var uD=function(S){this.JSC$15984_storeWithEntities=S};
_.r(uD,SL);uD.prototype.getApiPaths=function(){return qzI};
uD.prototype.getExtension=function(S){return _.b(S,_.ge)};
uD.prototype.JSC$10995_buildRequest=function(S,p,U){U.purchase_price_micros&&(S.productData={pdgData:{purchasePriceMicros:U.purchase_price_micros.toString()}},U.rich_chat_message&&(S.productData.pdgData.richChatMessage=U.rich_chat_message),U.currency_code&&(S.productData.pdgData.currencyCode=U.currency_code));p.transactionParams&&(S.transactionParams=p.transactionParams);p.clientLocationContext&&(S.clientLocationContext=p.clientLocationContext);U.payments_payload&&(S.paymentsPayload=U.payments_payload);
U.funds_guarantee_callback_client_data&&(S.fundsGuaranteeCallbackClientData=U.funds_guarantee_callback_client_data);var Y,L;U=(Y=this.JSC$15984_storeWithEntities)==null?void 0:(L=Y.getState())==null?void 0:L.entities;if(p.entityKeys&&U){Y=[];p=_.d(p.entityKeys);for(L=p.next();!L.done;L=p.next()){var I=L.value;L=_.Uc(I).entityType;if(I=_.I4(U,L,I)){var V={};Y.push((V[L]=I,V))}}S.entityMutationPayloads=Y}};
uD[vF]=[M_];var w4=function(){};
_.r(w4,SL);w4.prototype.getApiPaths=function(){return Aje};
w4.prototype.getExtension=function(S){return _.b(S,ESH)};
w4.prototype.JSC$10995_buildRequest=function(S,p,U){U=U===void 0?{}:U;U.backend_analytics&&(S.serializedBackendAnalyticsEvent=U.backend_analytics);p.offerParams&&(S.offerParams=p.offerParams)};var lD=function(){};
_.r(lD,SL);lD.prototype.getApiPaths=function(){return NkE};
lD.prototype.getExtension=function(S){return _.b(S,V2e)};
lD.prototype.JSC$10995_buildRequest=function(S,p){p.params&&(S.itemParams=p.params)};var ab=function(){};
_.r(ab,SL);ab.prototype.getApiPaths=function(){return tLt};
ab.prototype.getExtension=function(S){return _.b(S,_.h2E)};
ab.prototype.JSC$10995_buildRequest=function(S,p,U){U.resume_time_ms&&(S.resumeTimeMs=U.resume_time_ms);p.pauseParams&&(S.pauseParams=p.pauseParams)};var f5=function(){};
_.r(f5,SL);f5.prototype.getApiPaths=function(){return cjt};
f5.prototype.getExtension=function(S){return _.b(S,_.mcm)};
f5.prototype.JSC$10995_buildRequest=function(S,p,U){U=U===void 0?{}:U;U.c&&(S.redeemCode=U.c);U.rd&&(S.riskData=U.rd);U.ctk&&(S.clientToken=U.ctk)};var C5=function(){};
_.r(C5,SL);C5.prototype.getApiPaths=function(){return SjQ};
C5.prototype.getExtension=function(S){return _.b(S,_.R2l)};
C5.prototype.JSC$10995_buildRequest=function(S,p){p.resumeParams&&(S.resumeParams=p.resumeParams)};var x8=function(S,p){this.clientName=S;this.defaultExpirationDelayMs=p};
x8.prototype.put=function(S,p){var U=this,Y;return _.T(function(L){Y=Object.assign({},p.data);Y.key=S;Y.clientName=U.clientName;Y.expireTimestampMs===void 0&&(Y.expireTimestampMs=(Math.round((0,_.AI)())+U.defaultExpirationDelayMs).toString());return L.return(U.putInternal(S,Y))})};
x8[vF]=[JJ,fXm];var hEE=function(){x8.apply(this,arguments);this.JSC$16014_responseStore=new Map};
_.r(hEE,x8);_.M=hEE.prototype;_.M.get=function(S){var p=this;return _.T(function(U){return U.return(L7(p,S))})};
_.M.putInternal=function(S,p){var U=this,Y,L,I;return _.T(function(V){Y=U.defaultExpirationDelayMs;p.expireTimestampMs&&(Y=Number(p.expireTimestampMs)-Math.round((0,_.AI)()),L=_.pA("mweb_override_response_store_expiration_ms"),L>0&&L<Y&&(Y=L));I=setTimeout(function(){U.remove(S)},Y);
U.JSC$16014_responseStore.set(S,{entryData:p,timer:I});_.OV(V)})};
_.M.remove=function(S){var p=this;return _.T(function(U){REq(p,S);_.OV(U)})};
_.M.removeAll=function(){var S=this;return _.T(function(p){S.JSC$16014_responseStore.forEach(function(U){clearTimeout(U.timer)});
S.JSC$16014_responseStore.clear();_.OV(p)})};
_.M.has=function(S){return!!this.JSC$16014_responseStore.get(S)};
_.M.getKeys=function(){return this.JSC$16014_responseStore.keys()};
var L7=function(S,p){if(S=S.JSC$16014_responseStore.get(p))return new _.YB(S.entryData)},REq=function(S,p){var U=S.JSC$16014_responseStore.get(p);
U&&(clearTimeout(U.timer),S.JSC$16014_responseStore.delete(p))};var Oqe;var D5w=function(S,p,U){x8.call(this,S,p);this.token=U};
_.r(D5w,x8);_.M=D5w.prototype;_.M.get=function(S){var p=this,U,Y;return _.T(function(L){return L.nextAddress==1?_.k(L,HqE(p.token),2):L.nextAddress!=3?(U=L.yieldResult,_.k(L,U.get("ResponseStore",[S,p.clientName]),3)):(Y=L.yieldResult)?L.return(new _.YB(Y)):L.return(void 0)})};
_.M.putInternal=function(S,p){var U=this,Y;return _.T(function(L){if(L.nextAddress==1)return _.k(L,HqE(U.token),2);Y=L.yieldResult;return _.k(L,Y.put("ResponseStore",p),0)})};
_.M.remove=function(S){var p=this,U;return _.T(function(Y){if(Y.nextAddress==1)return _.k(Y,HqE(p.token),2);U=Y.yieldResult;return Y.return(U.delete("ResponseStore",[S,p.clientName]))})};
_.M.removeAll=function(){var S=this,p;return _.T(function(U){if(U.nextAddress==1)return _.k(U,HqE(S.token),2);p=U.yieldResult;return _.k(U,mTP(p,IDBKeyRange.only(S.clientName)),0)})};
_.M.has=function(){throw Error("Ti");};_.Ey=new _.$g("PERSISTENT_STORE_PROMISE_ACCESSOR_TOKEN");var FDj=function(S){var p;this.stateTagsData=(p=S.responseContext)==null?void 0:p.stateTags},XUE=function(S){var p;
return((p=S.stateTagsData)==null?void 0:p.stateTagsModified)||[]};var PCm;PCm=function(S){this.JSC$16027_responseStore=S};
_.lG=function(S,p,U){if(!_.y("state_tags_killswitch")){var Y=new FDj(p);if(XUE(Y).length>0){var L=S.JSC$16027_responseStore.getKeys();L=_.d(L);for(var I=L.next();!I.done;I=L.next()){I=I.value;var V=L7(S.JSC$16027_responseStore,I);if(V){var W=_.Y1(V);a:{var O=void 0;V=XUE(Y);W=((O=(new FDj(W)).stateTagsData)==null?void 0:O.relevantStateTags)||[];O=_.d(W);for(W=O.next();!W.done;W=O.next())if(W=W.value,W.stateTag!=null&&V.includes(W.stateTag)&&W.onStateTagModified==="STATE_TAG_CACHE_INSTRUCTION_EVICT_RESPONSE"){V=
!0;break a}V=!1}V&&REq(S.JSC$16027_responseStore,I)}}}}var D;Y=(D=p.responseContext)==null?void 0:D.maxAgeSeconds;_.y("web_prefetch_riw_for_next_video")&&!Y&&p.status==="REEL_ITEM_WATCH_STATUS_SUCCEEDED"&&(Y=3600);U&&Y&&Number(Y)>0&&(p=c7(p,Y),S.JSC$16027_responseStore.put(U,new _.YB(p)))};
PCm.prototype.handleResponse=function(S,p){if(!p)throw Error("Ui");var U,Y;p=(U=p.config)==null?void 0:(Y=U.storeStrategy)==null?void 0:Y.storeKey;_.lG(this,S,p)};
PCm[vF]=[_.UQ];_.Ulu=new _.$g("STORE_RESPONSE_PROCESSOR_TOKEN");var ZGw=function(S){this.JSC$16030_responseStore=S};
ZGw.prototype.handleResponse=function(S,p){if(p.input.match(_.$l(z_c))){var U;if(S==null?0:(U=S.entries)==null?0:U.length)for(S=_.d(S.entries),p=S.next();!p.done;p=S.next()){U=p.value.command;var Y=void 0;p=(Y=_.b(U,_.QX))==null?void 0:Y.unserializedPrefetchData;if(!U||!p)break;Y=(new Oy).JSC$11002_getStoreKey(U);var L=_.b(p,sqQ),I=void 0,V=void 0,W=void 0,O=_.pA("web_shorts_prefetch_service_ttl_seconds")>0?_.pA("web_shorts_prefetch_service_ttl_seconds"):Number((W=(I=L)==null?void 0:(V=I.responseContext)==
null?void 0:V.maxAgeSeconds)!=null?W:3600);Y&&O>0&&(L=c7(L,O),this.JSC$16030_responseStore.put(Y,new _.YB(L)));U=(new MH).JSC$11002_getStoreKey(U);p=_.b(p,zxE);I=L=Y=void 0;V=_.pA("web_shorts_prefetch_service_ttl_seconds")>0?_.pA("web_shorts_prefetch_service_ttl_seconds"):Number((I=(Y=p)==null?void 0:(L=Y.responseContext)==null?void 0:L.maxAgeSeconds)!=null?I:3600);U&&V>0&&(p=c7(p,V),this.JSC$16030_responseStore.put(U,new _.YB(p)))}}};
ZGw[vF]=[_.UQ];var sim=function(S){this.innertubeTransportService=S};
sim[vF]=[_.F3];var eEt=new _.$g("SUBMIT_API_SERVICE_TOKEN");var mm=function(){this.scheduler=_.jC()},gGm;
mm.prototype.pause=function(){throw Error("Vi");};
mm.prototype.resume=function(){throw Error("Vi");};
mm.prototype.queue=function(S){var p=this,U=_.ay(),Y=_.bQ(this.scheduler,function(){try{var L;if(_.VO.instance)var I=_.VO.instance;else{var V=new _.y7("Error: Unexpected uninitialized CommandHandler.");_.ZP(V);I=void 0}(L=I)==null||L.resolveCommand(S.command);U.resolve()}catch(W){U.reject(W)}});
U.promise.thenCatch(function(L){L instanceof _.aA&&p.scheduler.cancelJob(Y)});
return U.promise};
mm.prototype.queueAll=function(S){var p=new Map;S=_.d(S);for(var U=S.next();!U.done;U=S.next())U=U.value,p.set(U.id,this.queue(U));return p};var wUe=function(S,p){var U=this;this.taskModel=S;this.onTaskCancelledCallback=p;this.resolver=_.ay();S=S.proto.prefetchConfig;if(!S)throw Error("Wi");if(!S.prefetchAction)throw Error("Xi");this.prefetchConfig=this.taskModel.proto.prefetchConfig;this.cancellablePromise=this.resolver.promise.thenCatch(function(Y){Y instanceof _.aA&&(uJm(U,U.taskModel.cancelOn.screenExit?"CANCELLATION_REASON_PAGE_NAVIGATION":"CANCELLATION_REASON_UNKNOWN"),U.onTaskCancelledCallback(U.taskModel.id,U.jobId),U.tick("pcc"));
throw Y;});
this.timerName=this.taskModel.id;_.R2(this.prefetchConfig.prefetchAction,void 0,this.timerName,this.prefetchConfig.prefetchAction)},ljI=function(S){switch(S.prefetchConfig.priority){case "PREFETCH_PRIORITY_HIGH":return 3;
case "PREFETCH_PRIORITY_MEDIUM":return 2;case "PREFETCH_PRIORITY_LOW":return 1;default:return 0}},uJm=function(S,p){_.ha({prefetchInfo:{cancellationReason:p}},S.timerName)};
wUe.prototype.tick=function(S){_.Fg(S,void 0,this.timerName)};var vs=function(){var S=this;this.scheduler=_.jC();this.maxInflightTasks=_.pA("prefetch_coordinator_max_inflight_requests");this.coordinatorTimeoutMs=_.pA("prefetch_coordinator_command_timeout_ms");this.prefetchCoordinatorState=0;this.allPrefetchTasks=new Map;this.inflightPrefetchTasks=new Map;this.drainingHeap=new OHl;this.onTaskCancelled=function(p,U){U&&S.scheduler.cancelJob(U);aje(S,p);ob(S,3)}},fjI=function(){vs.instance||(vs.instance=new vs);
return vs.instance};
vs.prototype.pause=function(){this.prefetchCoordinatorState=0};
vs.prototype.resume=function(){ob(this,0)};
vs.prototype.queue=function(S){S=CCe(this,S);ob(this,1);return S};
vs.prototype.queueAll=function(S){var p=new Map;S=_.d(S);for(var U=S.next();!U.done;U=S.next())U=U.value,p.set(U.id,CCe(this,U));ob(this,1);return p};
var CCe=function(S,p){var U=S.allPrefetchTasks.get(p.id);if(U)return U.cancellablePromise;try{var Y=new wUe(p,S.onTaskCancelled)}catch(I){return _.jV(I)}U=Y;U.tick("pcq");var L={prefetchInfo:{taskId:U.taskModel.id,isPrefetch:!0,fetchAction:U.prefetchConfig.fetchAction},actionVisualElement:{trackingParams:U.taskModel.command.clickTrackingParams}};U.taskModel.csn&&(L.clientScreenNonce=U.taskModel.csn);_.ha(L,U.timerName);S.allPrefetchTasks.set(p.id,Y);S.drainingHeap.insert(-ljI(Y),Y);return Y.cancellablePromise},
ob=function(S,p){S.prefetchCoordinatorState===p&&(S.prefetchCoordinatorState=2,xpl(S))},xpl=function(S){for(var p={};S.prefetchCoordinatorState!==0;p={taskId$jscomp$3:void 0,
prefetchTask$jscomp$1:void 0}){if(S.inflightPrefetchTasks.size>=S.maxInflightTasks){S.prefetchCoordinatorState=3;break}p.prefetchTask$jscomp$1=S.drainingHeap.remove();if(!p.prefetchTask$jscomp$1){S.prefetchCoordinatorState=1;break}p.taskId$jscomp$3=p.prefetchTask$jscomp$1.taskModel.id;if(S.allPrefetchTasks.has(p.taskId$jscomp$3)){var U=-1;S.coordinatorTimeoutMs>0&&(U=_.bQ(S.scheduler,function(Y){return function(){$8(S,Y.taskId$jscomp$3,Error("Yi"))}}(p),S.coordinatorTimeoutMs));
S.inflightPrefetchTasks.set(p.taskId$jscomp$3,U);if(!S.JSC$16048_commandHandler){if(!_.VO.instance){$8(S,p.taskId$jscomp$3,Error("Zi"));continue}S.JSC$16048_commandHandler=_.VO.instance}a:switch(p.prefetchTask$jscomp$1.prefetchConfig.priority){case "PREFETCH_PRIORITY_HIGH":case "PREFETCH_PRIORITY_MEDIUM":U=1;break a;default:U=0}p.prefetchTask$jscomp$1.jobId=S.scheduler.addJob(function(Y){return function(){Y.prefetchTask$jscomp$1.tick("pcr");try{S.JSC$16048_commandHandler.resolveCommand(Y.prefetchTask$jscomp$1.taskModel.command)||
$8(S,Y.taskId$jscomp$3,Error("$i"))}catch(L){$8(S,Y.taskId$jscomp$3,L)}}}(p),U,0)}}},EGP=function(S,p){(p=aje(S,p))!=null&&(p.resolver.resolve(),p.tick("pce"));
ob(S,3)},$8=function(S,p,U){(p=aje(S,p,U))!=null&&(p.resolver.reject(U),p.tick("pcc"),uJm(p,"CANCELLATION_REASON_ERROR"),Math.random()<=_.pA("prefetch_coordinator_error_logging_sampling_rate")&&(U=new _.y7("Prefetch Command failed.",p.taskModel.id,U.message),_.ZP(U)));
ob(S,3)},aje=function(S,p,U){var Y=S.allPrefetchTasks.get(p);
Y?((U=S.inflightPrefetchTasks.get(p))&&U!==-1&&S.scheduler.cancelJob(U),S.inflightPrefetchTasks.delete(p),S.allPrefetchTasks.delete(p)):_.eP(new _.y7("Unexpected missing prefetch task when deleting task.",p,U==null?void 0:U.message));return Y};var mpH=function(S,p,U,Y,L){this.id=S;this.triggerOn=p;this.cancelOn=U;this.command=Y;this.proto=L};
_.$u.Object.defineProperties(mpH.prototype,{taskType:{configurable:!0,enumerable:!0,get:function(){return this.proto.prefetchConfig?0:1}}});var oGl=function(){this.JSC$16053_prefetchCoordinator=fjI();gGm||(gGm=new mm);this.defaultCoordinator=gGm},vGQ;
oGl.getInstance=function(){vGQ||(vGQ=new oGl);return vGQ};
oGl.prototype.get=function(S){switch(S){case 0:return this.JSC$16053_prefetchCoordinator;default:return this.defaultCoordinator}};var iD=function(){this.coordinatorSupplier=oGl.getInstance();this.tasks=new Map;this.taskIdByTriggerId=new Map;this.taskIdByCancelId=new Map;this.queuedPromisesByTask=new Map},N0E=function(S){var p=_.X$()||void 0,U=Object.keys($pt)[0];
if(U){var Y=S.taskIdByTriggerId.get(U);if(Y!=null){S.taskIdByTriggerId.delete(U);U=[];Y=_.d(Y);for(var L=Y.next();!L.done;L=Y.next())if(L=S.tasks.get(L.value))p!=="UNDEFINED_CSN"&&(L.csn=p),U.push(L);U=nWR(U);p=[];U=_.d(U);for(Y=U.next();!Y.done;Y=U.next()){L=_.d(Y.value);Y=L.next().value;L=L.next().value;Y=S.coordinatorSupplier.get(Y).queueAll(L);Y=_.d(Y);var I=Y.next();for(L={};!I.done;L={taskId$jscomp$9:void 0},I=Y.next()){var V=_.d(I.value);I=V.next().value;V=V.next().value;L.taskId$jscomp$9=
I;I=V;p.push(L.taskId$jscomp$9);S.queuedPromisesByTask.set(L.taskId$jscomp$9,_.zB(I,function(W){return function(){iGH(S,W.taskId$jscomp$9)}}(L)))}}}}else _.eP(new _.y7("Unexpected malformed TriggerEvent."))};
iD.prototype.trigger=function(S,p){var U=this,Y=this.tasks.get(S);if(!Y||this.queuedPromisesByTask.has(S))return!1;B0H(this,S,Y.triggerOn);p!=="UNDEFINED_CSN"&&(Y.csn=p);p=this.coordinatorSupplier.get(Y.taskType).queue(Y);this.queuedPromisesByTask.set(S,_.zB(p,function(){iGH(U,S)}));
return!0};
iD.prototype.cancel=function(S){var p=this.queuedPromisesByTask.get(S);if(p)p.cancel();else return iGH(this,S)};
var iGH=function(S,p){S.queuedPromisesByTask.delete(p);var U=S.tasks.get(p);if(!U)return!1;S.tasks.delete(p);B0H(S,p,U.triggerOn);(U=QCG(U.cancelOn))&&(S=S.taskIdByCancelId.get(U))&&S.delete(p);return!0},B0H=function(S,p,U){(U=Object.keys(U)[0])&&(S=S.taskIdByTriggerId.get(U))&&S.delete(p)};var $pt={taskRegistered:{}},NL=function(){iD.instance||(iD.instance=new iD);this.JSC$16062_taskManager=iD.instance};
_.r(NL,sv);
NL.prototype.resolveCommand=function(S){var p=this,U,Y;return _.T(function(L){U=_.b(S,eKe);if((Y=U)==null||!Y.tasks){var I=new _.y7("RegisterTasksCommand is missing tasks.");_.ZP(I);return L.return()}I=p.JSC$16062_taskManager;for(var V=_.d(U.tasks),W=V.next();!W.done;W=V.next())if(W=W.value,W=W.id&&W.triggerOn&&W.cancelOn&&W.command?new mpH(W.id,W.triggerOn,W.cancelOn,W.command,W):void 0,W){var O=Object.keys(W.triggerOn)[0];if(O){var D=QCG(W.cancelOn);D?(I.tasks.set(W.id,W),I.taskIdByTriggerId.has(O)||I.taskIdByTriggerId.set(O,
new Set),I.taskIdByTriggerId.get(O).add(W.id),I.taskIdByCancelId.has(D)||I.taskIdByCancelId.set(D,new Set),I.taskIdByCancelId.get(D).add(W.id)):_.eP(new _.y7("Unexpected malformed cancelOn field."))}else _.eP(new _.y7("Unexpected malformed triggerOn field."))}else _.eP(new _.y7("Unexpected malformed Task proto."));N0E(p.JSC$16062_taskManager);_.OV(L)})};var qkm={},AfE=(qkm.rendered={priority:0,callback:function(){var S={};S.numCpu=navigator.hardwareConcurrency;var p={};p.ramGb=_.UX.navigator.deviceMemory;var U={staticContext:{}};p.ramGb&&JDw(p.ramGb)&&(U.staticContext.memoryTotalKbytes=(p.ramGb*1048576).toString());S.numCpu&&JDw(S.numCpu)&&(U.staticContext.cpuCores=S.numCpu);if(_.y("web_enable_adaptive_appl_signal")){S={};p=_.Z9("rses_dpj");var Y=_.Z9("rsef_dpj");p&&p>0&&Y&&Y>0&&(p=Math.ceil(Y-p),p>0&&(S.loadLatency=p));S.loadLatency&&JDw(S.loadLatency)&&
(U.appL=S.loadLatency.toString())}_.RV("applicationStarted",U)}},qkm);var tTl=new _.$g("WINDOW_ON_ERROR"),cfP=new _.$g("ERROR_WEIGHT_MAPS"),Sed=new _.$g("INIT_ERROR");var pae={},U8w=(pae.initialized={priority:10,callback:function(S){S.injector.resolve(Sed)()}},pae);var Yeq=function(){},L2e=function(){var S=_.ad("meta_logger_impl");
S||(S=new Yeq,_.NT("meta_logger_impl",S));return S},M6Q=function(){L2e().csiSubscriptionKey=D9X("meta_logging_csi_event",function(S){var p=S.timerName;
if(S=S.timelineData){_.R2(p,{startTime:S.startTime},p);S.infos&&_.ha(S.infos,p);for(var U=_.d(Object.keys(S.ticks)),Y=U.next();!Y.done;Y=U.next())Y=Y.value,_.Fg(Y,S.ticks[Y],p)}})};
Yeq.prototype.unlisten=function(){this.csiSubscriptionKey!==void 0&&nlw(this.csiSubscriptionKey)};var InP={},d8q=(InP.initialized={priority:10,callback:function(){M6Q()}},InP);var V6m=function(S,p){this.innertubeClientName=S;this.JSC$16078_prefCookie=p};
V6m.prototype.record=function(){if(_.y("web_li_record_binary_eval_tick")){var S=_.Z9("rsef_dpj");var p=_.Z9("rses_dpj");S=S!==void 0&&p!==void 0?Math.round(S-p):void 0;if(S!==void 0&&S>0){p=_.Uz(this.storagePrefix+"-"+this.innertubeClientName)||{valuesSample:[],valuesSeen:0};var U=this.poolSize;if(!(p.valuesSeen>=1E9)){if(p.valuesSample.length<U)p.valuesSample.push(S);else{var Y=Math.floor(Math.random()*(p.valuesSeen+1));Y<U&&(p.valuesSample[Y]=S)}p.valuesSeen+=1}_.p$(this.storagePrefix+"-"+this.innertubeClientName,
p,2592E3);S=p.valuesSample;p=yDr(S);S=S.length<5?void 0:p<400?1:p<1700?2:3;S!==void 0&&(this.JSC$16078_prefCookie.set(this.cookiePrefix+this.innertubeClientName,S),this.JSC$16078_prefCookie.save())}}else _.Y2(this.storagePrefix+"-"+this.innertubeClientName),this.JSC$16078_prefCookie.remove(this.cookiePrefix+this.innertubeClientName),this.JSC$16078_prefCookie.save()};
V6m[vF]=[JJ,Be];var Tud=function(){V6m.apply(this,arguments);this.storagePrefix="yt-signal-be";this.cookiePrefix="lsbe";this.poolSize=5};
_.r(Tud,V6m);var W2l=new _.$g("PAGE_LOAD_TIME_TOKEN");var Oyw=new _.$g("DOWNLOAD_ELIGIBILITY_PROMISE_TOKEN");var Bs=function(S,p){this.JSC$16099_storeWithEntities=S;this.JSC$16099_commandHandler=p;this.downloadingToastInitialized=!1;this.downloadingEntities=[]};
Bs.prototype.start=function(){this.JSC$16099_storeWithEntities.subscribe(this.observeDownloadingEntities.bind(this))};
Bs.prototype.observeDownloadingEntities=function(){var S=_.bLq(this.JSC$16099_storeWithEntities.getState().entities).map(function(Y){return jUw(Y)});
if(S.length>0){if(!this.downloadingToastInitialized){this.downloadingToastInitialized=!0;var p={openPopupAction:{popup:{videoDownloadToastRenderer:{actionButton:{buttonRenderer:sDe()},loggingDirectives:{clientVeSpec:{uiType:98969}},responseText:_.Aa(_.Oh("DOWNLOADING",void 0,"Downloading"))}},popupType:"TOAST",durationHintMs:0}};this.JSC$16099_commandHandler.resolveCommand(p)}this.downloadingEntities=S}else if(this.downloadingEntities.length){var U=KwX(this.JSC$16099_storeWithEntities.getState().entities).map(function(Y){return jUw(Y)});
this.downloadingEntities.filter(function(Y){return U.includes(Y)}).length&&(S={openPopupAction:U5k()},this.JSC$16099_commandHandler.resolveCommand(S));
this.downloadingEntities=[]}};
Bs[vF]=[M_,_.cQ];var kLP;_.qL=function(S,p,U,Y,L,I,V,W){this.JSC$16102_playerApiPromise=S;this.JSC$16102_commandHandler=p;this.JSC$16102_screenManager=U;this.offlineWebClientEligibility=Y;this.JSC$16102_prefStorage=L;this.JSC$16102_actionRouter=I;this.entityTypeMap=V;this.JSC$16102_persistentStorePromiseAccessor=W;this.downloadFailureListenerBound=!1;this.previousDownloadStateForVideo={}};
kLP=function(){var S=_.tW().resolve(_.qL),p;_.T(function(U){if(U.nextAddress==1)return S.downloadFailureListenerBound?U.return():_.k(U,S.JSC$16102_playerApiPromise,2);p=U.yieldResult;p.addEventListener("onOfflineOperationFailure",function(Y){if(Y.failureReason&&Y.entityKey&&Y.failureReason!=="OFFLINE_OPERATION_FAILURE_REASON_UNKNOWN")if(Y.failureReason==="OFFLINE_OPERATION_FAILURE_REASON_VIDEO_DELETED"){var L=_.Uc(Y.entityKey).entityId;L&&S.JSC$16102_actionRouter.triggerOptionalAction("yt-downloaded-video-deleted",
L)}else if(_.y("kevlar_woffle")){L=S.JSC$16102_commandHandler;var I=L.resolveCommand;Y=Y.failureReason;var V=_.Oh("TRANSFER_FAILED",void 0,"Download failed");Y==="OFFLINE_OPERATION_FAILURE_REASON_DATABASE_REQUEST_FAILED"&&(V=_.Oh("STORAGE_FULL",void 0,"Storage full"));I.call(L,{openPopupAction:{popup:{notificationActionRenderer:{responseText:_.Aa(V),loggingDirectives:{clientVeSpec:{uiType:134511}}}},popupType:"TOAST"}})}});
S.downloadFailureListenerBound=!0;_.OV(U)})};
_.qL.prototype.deleteVideo=function(S,p){var U=this,Y,L,I;return _.T(function(V){if(V.nextAddress==1)return _.k(V,U.JSC$16102_playerApiPromise,2);Y=V.yieldResult;I={offlineLoggingData:{offlineDeleteReason:(L=p)!=null?L:"OFFLINE_DELETE_REASON_USER_INITIATED"}};return _.k(V,Y.queueOfflineAction(S,U.entityTypeMap.singleEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_DELETE",I),0)})};
_.qL.prototype.pauseVideoDownload=function(S){var p=this,U;return _.T(function(Y){if(Y.nextAddress==1)return _.k(Y,p.JSC$16102_playerApiPromise,2);U=Y.yieldResult;U.pauseVideoDownload(S);_.OV(Y)})};
_.qL.prototype.resumeVideoDownload=function(S){var p=this,U;return _.T(function(Y){if(Y.nextAddress==1)return _.k(Y,p.JSC$16102_playerApiPromise,2);U=Y.yieldResult;return _.k(Y,U.resumeVideoDownload(S),0)})};
_.qL[vF]=[_.A7,_.cQ,_.Jt,Oyw,ce,mS,Mjw,L$];var HyQ=new _.$g("DOWNLOAD_STATE_STORE_TOKEN");var D8m=function(S,p){this.JSC$16121_persistentStorePromiseAccessor=S;this.store=p;this.upliftCompletionResolver=new _.MI},nNm=function(){var S=_.tW().resolve(zce),p;
_.T(function(U){switch(U.nextAddress){case 1:if(S.upliftImplPromise)return U.return(S.upliftImplPromise);_.M2(U,2);S.upliftImplPromise=QMQ(S);return _.k(U,S.upliftImplPromise,4);case 4:S.upliftCompletionResolver.resolve();_.CA(U,3);break;case 2:throw p=_.W4(U),S.upliftCompletionResolver.reject(p),p;case 3:return U.return(S.upliftImplPromise)}})},QMQ=function(S){var p,U,Y;
return _.T(function(L){switch(L.nextAddress){case 1:return _.ub("LOGGED_IN")?_.k(L,S.JSC$16121_persistentStorePromiseAccessor(),2):L.return();case 2:p=L.yieldResult;if(!p)return _.Fg("vdeur"),L.return();_.Fg("vdeus");_.M2(L,3);return _.k(L,J_m(p),5);case 5:U=L.yieldResult;S.store.dispatch(IEd(U));p.observe(function(I){dvG(S.store,I)});
_.CA(L,4);break;case 3:throw Y=_.W4(L),_.Fg("vdeur"),Y;case 4:_.Fg("vdeuc"),_.OV(L)}})},J_m=function(S){var p;
return _.T(function(U){if(U.nextAddress==1)return _.k(U,RJu(S),2);p=U.yieldResult;return U.return(p.reduce(function(Y,L){if(!L.data||!L.key||!L.entityType)return Y;Y[L.entityType]||(Y[L.entityType]={});Y[L.entityType][L.key]=L.data;return Y},{}))})};
D8m[vF]=[L$,_.XF];var zce;zce=new _.$g("DOWNLOAD_UPLIFT_SERVICE_TOKEN");_.AV=new _.$g("DOWNLOAD_UPLIFT_COMPLETION_PROMISE_TOKEN");var tV=function(S,p){this.JSC$16124_persistentStorePromiseAccessor=S;this.transportService=p};
tV.prototype.refresh=function(){var S=this,p,U,Y,L;return _.T(function(I){if(I.nextAddress==1)return _.ub("LOGGED_IN")?_.k(I,S.JSC$16124_persistentStorePromiseAccessor(),2):I.return();if(I.nextAddress!=3)return(p=I.yieldResult)?_.k(I,VUq(p),3):I.return();if((U=I.yieldResult)&&!(Number(U.data.refreshTimestampMs||0)<(0,_.AI)()))return I.return();Y={browseId:"SPaccount_downloads"};L=_.$l(BI);_.R6(S.transportService,Y,L).then(function(V){var W;if(p&&(V==null?void 0:(W=V.responseContext)==null?void 0:
W.maxAgeSeconds)!==0){var O;W=(V==null?void 0:(O=V.responseContext)==null?void 0:O.maxAgeSeconds)||604800;O=String(Math.floor((0,_.AI)())+W*1E3);p.put("service:downloads_settings:fallback",new _.YB({innertubeResponse:V,refreshTimestampMs:O}))}});
_.OV(I)})};
tV[vF]=[_.Ey,_.F3];var cs=function(S,p){this.JSC$16128_playerPromise=S;this.store=p;this.started=!1};
cs.prototype.start=function(){var S=this,p;return _.T(function(U){if(U.nextAddress==1)return S.started?U.return():_.k(U,S.JSC$16128_playerPromise,2);p=U.yieldResult;p.addEventListener("onOrchestrationBecameLeader",S.updateIsLeader.bind(S,!0));p.addEventListener("onOrchestrationLostLeader",S.updateIsLeader.bind(S,!1));if(p.isOrchestrationLeader)S.updateIsLeader(p.isOrchestrationLeader());else{var Y=new _.y7("Function isOrchestrationLeader is undefined",{"player.isReady":p.isReady(),"player.playVideo":p.playVideo?
"defined":"undefined"});_.ZP(Y);S.updateIsLeader(!1)}S.started=!0;_.OV(U)})};
cs.prototype.updateIsLeader=function(S){this.store.dispatch(_.S4({type:"SET_IS_LEADER_TAB",payload:{isLeaderTab:S}}))};
cs[vF]=[_.A7,_.XF];var y_m=function(S,p){this.networkStatusManager=S;this.JSC$16131_prefStoragePromise=p;this.redirectsToPreload=["https://youtube.com"]},K2Q=function(){var S=_.tW().resolve(y_m),p,U,Y,L,I,V;
_.T(function(W){switch(W.nextAddress){case 1:return _.k(W,S.JSC$16131_prefStoragePromise,2);case 2:p=W.yieldResult;if(!(U=p)){W.jumpTo(3);break}return _.k(W,p.get("yt-redirect-prefetch-id"),4);case 4:U=W.yieldResult;case 3:if(U||!S.networkStatusManager.isNetworkAvailable())return W.return();Y={cache:"reload",redirect:"manual"};L=_.d(S.redirectsToPreload);I=L.next();case 5:if(I.done){if(!p){W.jumpTo(0);break}return _.k(W,p.set("yt-redirect-prefetch-id",!0,86400),0)}V=I.value;_.M2(W,8);return _.k(W,
_.UX.fetch(V,Y),10);case 10:_.CA(W,6);break;case 8:_.W4(W);case 6:I=L.next(),W.jumpTo(5)}})};var Sg=function(S){S?(this.container=S,this.containerWasInjected=!0):this.containerWasInjected=!1};
Sg.prototype.openDialog=function(S,p,U){var Y=this,L;return _.T(function(I){(L=Y.container)==null||L.openDialog(S,p,U);_.OV(I)})};
Sg.prototype.closeDialog=function(){var S=this,p;return _.T(function(U){(p=S.container)==null||p.closeDialog();_.OV(U)})};
Sg.prototype.isDialogOpen=function(){var S=this,p,U;return _.T(function(Y){return Y.return((U=(p=S.container)==null?void 0:p.isDialogOpen())!=null?U:!1)})};
Sg[vF]=[_.AW(X0c)];_.byw=new _.$g("POPUP_CONTROLLER_TOKEN");var jMI=function(){this.panelMap=new Map;this.pendingPanelResolvers=new Map};
jMI.prototype.registerPanel=function(S,p){if(S){this.panelMap.set(S,p);var U=this.pendingPanelResolvers.get(S);U&&(U.resolve(p),this.pendingPanelResolvers.delete(S))}};
jMI.prototype.getPanel=function(S){var p=this,U;return _.T(function(Y){return(U=p.panelMap.get(S))?Y.return(U):Y.return(r_H(p,S))})};
var r_H=function(S,p){var U,Y;return _.T(function(L){if(U=S.pendingPanelResolvers.get(p))return L.return(U.promise);Y=new _.MI;S.pendingPanelResolvers.set(p,Y);return L.return(Y.promise)})},GLc=function(S){jMI.call(this);
var p=this;this.popupController=S;this.panelContentMap=new Map;this.updatePanelContinuationDatas=new Map;this.TEST_ONLY={getPanelMapSize:function(){return p.panelMap.size}}};
_.r(GLc,jMI);_.M=GLc.prototype;_.M.getReloadContinuation=function(S){var p=this,U;return _.T(function(Y){if(Y.nextAddress==1)return _.k(Y,p.getPanel(S),2);U=Y.yieldResult;return Y.return(U.getReloadContinuation())})};
_.M.showPanel=function(S,p,U,Y,L,I,V){var W=this,O,D,z,Q;return _.T(function(J){if(J.nextAddress==1){V&&W.updatePanelContinuationDatas.set(S,V);if((O=U)==null?0:(D=O.engagementPanelPopupPresentationConfig)==null?0:D.popupType){z=U.engagementPanelPopupPresentationConfig.popupType;L===void 0&&(L=document.body);var K=J.return,G=W.popupController,X=G.openPopup;a:switch(z){case "PANEL_POPUP_TYPE_DIALOG":var Z="DIALOG";break a;case "PANEL_POPUP_TYPE_DROPDOWN":Z="DROPDOWN";break a;default:throw Error("bj`"+
z);}return K.call(J,X.call(G,S,p,Z,L))}return _.k(J,W.getPanel(S),2)}Q=J.yieldResult;(p||I)&&Q.updatePanel(p,!1,Y,I);Q.showPanel(Y);_.OV(J)})};
_.M.hidePanel=function(S){var p=this,U;return _.T(function(Y){if(Y.nextAddress==1)return _.k(Y,p.getPanel(S),2);U=Y.yieldResult;U.hidePanel();p.popupController.closePopup(S);_.OV(Y)})};
_.M.isVisible=function(S,p){var U=this,Y;return _.T(function(L){if(L.nextAddress==1)return p&&!U.panelMap.has(S)?L.return(!1):_.k(L,U.getPanel(S),2);Y=L.yieldResult;return L.return(Y.isVisible())})};
_.M.updatePanel=function(S,p,U,Y,L,I){U=U===void 0?!1:U;var V=this,W;return _.T(function(O){if(O.nextAddress==1){if(!p&&!L)return O.return();I&&V.updatePanelContinuationDatas.set(S,I);return _.k(O,V.getPanel(S),2)}W=O.yieldResult;W.updatePanel(p,U,Y,L);_.OV(O)})};
_.M.registerPanelContent=function(S,p){S&&this.panelContentMap.set(S,p)};
_.M.getPanelContent=function(S){return this.panelContentMap.get(S)};
_.M.getUpdatePanelContinuationData=function(S){return this.updatePanelContinuationDatas.get(S)};
GLc[vF]=[_.byw];var pO=function(S,p){this.innertubeTransportService=S;this.JSC$16147_screenManager=p},hcj=function(S){var p;
return!((p=S.panelLoadingStrategy)==null||!p.requestTemplate)};
pO.prototype.makeRequest=function(S){var p=this,U,Y;return _.T(function(L){switch(L.nextAddress){case 1:if(!hcj(p)){L.jumpTo(2);break}_.M2(L,3);return _.k(L,_.lZ(p.innertubeTransportService,S),5);case 5:return U=L.yieldResult,U?L.return(U.content):(_.ZP(Error("cj")),L.return(void 0));case 3:Y=_.W4(L),_.ZP(Y);case 2:return L.return(void 0)}})};
pO.prototype.getContent=function(){if(this.panelLoadingStrategy&&this.panelLoadingStrategy.inlineContent)return this.panelLoadingStrategy.inlineContent};
pO.prototype.execute=function(S){var p=this,U,Y,L,I,V,W,O,D,z,Q;return _.T(function(J){if(J.nextAddress==1){U=S;Y=U.data;L=U.fallbackVe;I=U.parentVe;V=U.createScreenConfig;W=U.renderFn;O=U.command;p.panelLoadingStrategy=Y;var K,G,X=((K=p.panelLoadingStrategy)==null?0:K.screenVe)?(G=p.panelLoadingStrategy)==null?void 0:G.screenVe:L;X&&_.S8(p.JSC$16147_screenManager,X,I,V);return(D=p.getContent())?_.k(J,W(D),2):J.jumpTo(2)}return J.nextAddress!=4?hcj(p)?_.k(J,p.makeRequest(O),4):J.return():(Q=z=J.yieldResult)?
_.k(J,W(Q),0):J.return()})};
pO[vF]=[_.F3,_.Jt];var Ua=function(){};
Ua.prototype.getContainer=function(){return _.Bv()&&this.fullScreenContainer?this.fullScreenContainer:this.container};
Ua.prototype.openSheet=function(S,p){var U=this,Y,L,I,V,W,O;return _.T(function(D){switch(D.nextAddress){case 1:return Y={stack:[],error:void 0,hasError:!1},_.M2(D,2,3),L=AY,_.k(D,U.isSheetOpen(),5);case 5:I=D.yieldResult;MDw(Y,FcG(L));if(I){if(p&&U.currentTarget===p)return(V=U.getContainer())==null||V.closeSheet(),D.return();U.pendingData={data:S,target:EHI(U,p)};return D.return()}S.viewModel&&(S={viewModel:S.viewModel});(W=U.getContainer())==null||W.openSheet(S,p);U.currentTarget=p;case 3:_.IO(D);
TyX(Y);_.T7(D,0);break;case 2:O=_.W4(D),Y.error=O,Y.hasError=!0,D.jumpTo(3)}})};
Ua.prototype.closeSheet=function(){var S=this,p;return _.T(function(U){if(U.nextAddress==1)return _.k(U,(p=S.getContainer())==null?void 0:p.closeSheet(),2);if(U.nextAddress!=4)return S.currentTarget=void 0,S.pendingData?_.k(U,S.openSheet(S.pendingData.data,S.pendingData.target),4):U.jumpTo(0);S.pendingData=void 0;_.OV(U)})};
Ua.prototype.isSheetOpen=function(){var S=this,p,U;return _.T(function(Y){return Y.return((U=(p=S.getContainer())==null?void 0:p.isSheetOpen())!=null?U:!1)})};
var EHI=function(S,p){if(!_.y("web_parent_target_for_sheets"))return p;var U,Y;return(Y=(U=S.getContainer())==null?void 0:U.getParentTarget(p))!=null?Y:p};var Ip=window.documentPictureInPicture;var fJw=_.x1(["dark"]),C0e=_.x1(["system-icons"]),x5N=_.x1(["typography"]),EWk=_.x1(["lang"]),m5w=_.x1(["style"]),uxu=_.x1(["dir"]),w6r=_.x1(["rounded-container"]),lJR=_.x1(["style"]),vWw=["yt-navigate-cache","yt-navigate","yt-action","yt-toggle-button"],Y4=function(S){this.JSC$16159_clientRoot=S;this.currentPipWindow=null;this.onCloseCallbacks=[];this.handlePipWindowResize=this.handlePipWindowResize.bind(this)};
Y4.prototype.openWindow=function(S){var p=this,U,Y;return _.T(function(L){if(L.nextAddress==1)return window.documentPictureInPicture&&_.Pk()&&!p.currentPipWindow?_.k(L,(U=Ip?Ip:null)==null?void 0:U.requestWindow(S),2):L.return(!1);if(L.nextAddress!=3){Y=L.yieldResult;if(!Y)return L.return(!1);Y.addEventListener("pagehide",function(){Rcq(p)});
Y.addEventListener("resize",p.handlePipWindowResize);p.pipWindowResizeDelay=new _.Br(function(){p.currentPipWindow&&_.St(p.currentPipWindow.document.documentElement,"yt-pip-window-resized",[new _.OF(p.currentPipWindow.innerWidth,p.currentPipWindow.innerHeight)])},Y);
oWR(Y);iqr(Y);return _.k(L,gWr(Y),3)}if(!Zqq())return L.return(!1);p.currentPipWindow=Y;p.JSC$16159_eventForwarder=$5N(Y,p.JSC$16159_clientRoot);p.pipWindowResizeDelay.start();return L.return(!0)})};
Y4.prototype.handlePipWindowResize=function(){this.pipWindowResizeDelay&&this.pipWindowResizeDelay.start()};
var Rcq=function(S){if(S.currentPipWindow){var p,U;(p=Ip?Ip:null)==null||(U=p.window)==null||U.close();S.currentPipWindow.removeEventListener("resize",S.handlePipWindowResize);var Y;(Y=S.pipWindowResizeDelay)==null||Y.dispose();S.pipWindowResizeDelay=void 0;var L;(L=S.JSC$16159_eventForwarder)==null||L.stop();S.JSC$16159_eventForwarder=void 0;p=_.d(S.onCloseCallbacks);for(U=p.next();!U.done;U=p.next())U=U.value,U();S.onCloseCallbacks=[];S.currentPipWindow=null}};
Y4.prototype.getWindow=function(){return this.currentPipWindow};
var F2w=function(S,p){var U;(U=S.onCloseCallbacks)==null||U.push(p)};
Y4.prototype.pictureInPictureSupported=function(){return!!window.documentPictureInPicture&&_.Pk()};
_.$u.Object.defineProperties(Y4.prototype,{TEST_ONLY:{configurable:!0,enumerable:!0,get:function(){}}});
Y4[vF]=[qNw];var XaE=new _.$g("PICTURE_IN_PICTURE_CONTROLLER");var NGX=function(S,p){this.lengthY=this.lengthX=0;this.lengthX=p.x-S.x;this.lengthY=p.y-S.y};var PkP=function(){},$7t=function(S,p){var U;
(U=S.headerElement)==null||U.dispatchEvent(new CustomEvent("yt-new-playlist-header",{detail:p}))};var ZyE=function(){};
ZyE.prototype.openPopup=function(S,p,U,Y){var L=this,I;return _.T(function(V){if(!L.container)return V.return();I={openPopupAction:{popup:p,popupType:U,uniqueId:S}};return V.return(L.container.handleOpenPopupAction(I,Y))})};
ZyE.prototype.closePopup=function(S){this.container&&this.container.closePopup(S)};var sMm=function(){this.openTunnels=new Map},QQe=function(S,p,U){if(SUu(U)){var Y=_.xY(U,"gclid");
U={handleEvent:function(W){p&&!p.closed&&typeof p.postMessage==="function"&&W&&W.origin&&W.source===p&&W.data&&W.data.action==="gcl_setup"&&p.postMessage(Object.assign({},{action:"gcl_transfer"},Y&&{gclid:Y},{gadSource:2}),W.origin)}};
for(var L=_.d(S.openTunnels),I=L.next();!I.done;I=L.next()){var V=_.d(I.value);I=V.next().value;V=V.next().value;if(I.closed)try{window.removeEventListener("message",V),S.openTunnels.delete(I)}catch(W){_.ZP(W)}}p&&S.openTunnels.size<15&&(S.openTunnels.set(p,U),window.addEventListener("message",U))}};var ecH=function(){this.clientParams=new Map},BAQ=function(S){for(var p=_.d(S.clientParams.keys()),U=p.next();!U.done;U=p.next())U=U.value,U.startsWith("yt-mini-app-share")&&S.clientParams.delete(U)};var gNm=function(S,p){_.hY.call(this);var U=this;this.shortsController=S;this.storeWithShorts=p;S=_.Wt(this.storeWithShorts,_.P2r,function(Y){if(Y){var L,I=(L=U.shortsController.getRoot())==null?void 0:L.getPlayer(),V;(L=(V=U.shortsController.alternativePlayerContainerElement)==null?void 0:V.getPlayerContainer())&&(I==null||I.appendTo(L))}else{var W;V=(W=U.shortsController.alternativePlayerContainerElement)==null?void 0:W.getPlayerContainer().querySelector("#player");L=U.shortsController.activeIndex;
(W=(I=U.shortsController.getRoot())==null?void 0:I.querySelector('ytd-reel-video-renderer[id="'+L+'"] #player-container'))&&(V==null||V.appendTo(W,void 0,!0))}});
this.addOnDisposeCallback(S)};
_.r(gNm,_.hY);var LO=function(S,p,U,Y,L){var I=this;this.storeWithShorts=S;this.ephemeralResponseStore=p;this.store=U;this.innertubeTransportService=Y;this.innertubeTransportLoader=L;this.activeModules=[];this.activeIndex=0;this.dismissedIndices=[];this.watchWhileIndices=new Set;this.isFullscreenEnabled=_.Xc(_.Th);this.isShortsPipActive=_.Xc(_.WI);this.nextReelVe=_.bZ(56921);this.prevReelVe=_.bZ(56922);this.backButtonVe=_.bZ(22156);this.TEST_ONLY={getActiveModules:function(){return I.activeModules}}},WQd,Ott,uVm;
LO.prototype.initOrDisposeActiveModules=function(S){S?this.activeModules.push(new gNm(this,this.storeWithShorts)):(_.ci(this.activeModules),this.activeModules.length=0)};
LO.prototype.getRoot=function(){return this.rootElement};
LO.prototype.setActiveIndex=function(S){this.activeIndex=S};
_.LQm=function(S,p){var U,Y,L,I,V,W,O;return _.T(function(D){switch(D.nextAddress){case 1:return U=new Oy,(Y=U.JSC$11002_getStoreKey(p))&&S.ephemeralResponseStore.has(Y)?_.k(D,S.ephemeralResponseStore.get(Y),7):_.k(D,uVm(S,p),4);case 4:L=D.yieldResult;if(!Y){D.jumpTo(3);break}I=c7(L,3600);return _.k(D,S.ephemeralResponseStore.put(Y,new _.YB(I)),3);case 7:L=(V=D.yieldResult)==null?void 0:_.Y1(V);case 3:return((W=L)==null?0:W.replacementEndpoint)&&(O=_.b(L.replacementEndpoint,_.QX))&&L.sequenceContinuation&&
(O.sequenceParams=L.sequenceContinuation),D.return(L)}})};
WQd=function(S,p){p=(new k8).JSC$11002_getStoreKey(p);return!!p&&S.ephemeralResponseStore.has(p)};
Ott=function(S,p,U){var Y,L,I,V,W;_.T(function(O){if(O.nextAddress==1){Y=new k8;L=Y.JSC$11002_getStoreKey(p);if(!L)return O.return();if(U.reelWatchSequenceResponse)return I=c7(U.reelWatchSequenceResponse,3600),S.ephemeralResponseStore.put(L,new _.YB(I)),O.jumpTo(0);if(!S.ephemeralResponseStore.has(L))return O.jumpTo(0);W=U;return _.k(O,S.ephemeralResponseStore.get(L),4)}W.reelWatchSequenceResponse=(V=O.yieldResult)==null?void 0:_.Y1(V);_.OV(O)})};
uVm=function(S,p){var U=U===void 0?{}:U;var Y,L,I;return _.T(function(V){switch(V.nextAddress){case 1:if(S.innertubeTransportService){Y=S.innertubeTransportService;V.jumpTo(2);break}if(!S.innertubeTransportLoader){_.w7(Error("ej"));V.jumpTo(2);break}return _.k(V,S.innertubeTransportLoader(),4);case 4:Y=V.yieldResult;case 2:return _.k(V,(L=Y)==null?void 0:_.lZ(L,p,U),5);case 5:return I=V.yieldResult,V.return(I)}})};
_.$u.Object.defineProperties(LO.prototype,{playerApi:{configurable:!0,enumerable:!0,get:function(){return this.rootElement?this.rootElement.getPlayer().getPlayerPromise():Promise.resolve(void 0)}}});
LO[vF]=[Bsc,_.UQ,M_,_.AW(_.F3),_.AW(otc)];_.waE=new _.$g("STORAGE_MANAGER_TOKEN");var IiG=new Set(["EVENT_SPAN_TYPE_TOUCHMOVE","EVENT_SPAN_TYPE_SCROLL"]);var lnc=function(){this.queue=[];this.currentPersistentToast=this.currentToast=void 0},ant;
lnc.prototype.enqueue=function(S,p){p===1?this.currentPersistentToast=S:this.queue.push(S);this.openToast()};
lnc.prototype.openToast=function(){var S;(S=this.currentToast)!=null&&S.isOpened()||(this.queue.length?(this.currentToast=this.queue.shift(),this.currentToast.open()):this.currentPersistentToast&&this.currentPersistentToast.open())};_.fnH=new _.$g("TOAST_MANAGER_TOKEN");var Ckt;_.x8H=_.$k(function(S){return _.H("basic-content-view-model",{class:_.VD("ytBasicContentViewModelHost",_.os(S.className))},_.H(_.n,{cond:function(){return S.data().headline},
then:function(p){return _.H("div",{class:"ytBasicContentViewModelHeadline"},_.H(_.i6,{text:p}))}}),_.H(_.KU,{each:function(){return S.data().paragraphs||[]},
keyBy:"INDEX"},function(p){return _.H("div",{class:"ytBasicContentViewModelParagraph"},_.H(_.n,{cond:function(){var U=p();return!!(U.header||U.customHeader||U.headline)},
then:function(){return _.H(Ckt,{paragraph:p})}}),_.H(_.n,{cond:function(){return p().asset||p().text},
then:function(){return _.H("div",{class:"ytBasicContentViewModelParagraphContent"},_.H(_.n,{cond:function(){return p().asset},
then:function(U){return _.H("div",{class:"ytBasicContentViewModelParagraphAsset"},_.H(_.yP,{data:U},{contentPreviewImageViewModel:_.qf}))}}),_.H(_.n,{cond:function(){return p().text},
then:function(U){return _.H("div",{class:"ytBasicContentViewModelParagraphText"},_.H(_.i6,{text:U}))}}))}}))}))},"ke");
Ckt=_.$k(function(S){var p=S.paragraph;return _.H(_.U0,null,_.H(_.n,{cond:function(){return p().headline},
then:function(U){return _.H(_.i6,{text:U,className:"ytBasicContentViewModelParagraphHeadline"})}}),_.H(_.yP,{data:function(){return p().header||p().customHeader}},{sectionHeaderViewModel:function(U){return _.H(_.Yh,{data:U.data,
disableHorizontalPadding:!0,forceSmallLayout:!0})}}))},"le");var m8c=_.$k(function(S){var p=_.vH(),U=_.kL(function(Y){if(!_.l6(_.w8(Y),p.value,["A".toString(),"BUTTON".toString()])){var L;(L=S.expandedCallback)==null||L.call(S,!1)}});
return _.H("yt-expandable-metadata-header-view-model",{el:p,class:"ytExpandableMetadataHeaderViewModelHost"},_.H(_.n,{cond:function(){return S.expanded()},
then:function(){return _.H("div",{class:"ytExpandableMetadataHeaderViewModelExpandedHeader","on:click":U},_.H("div",{class:"ytExpandableMetadataHeaderViewModelLeftSectionExpanded"},_.H(_.n,{cond:function(){return S.data().expandedTitleImage},
then:function(Y){return _.H("div",{class:"ytExpandableMetadataHeaderViewModelExpandedTitleImage"},_.H(_.of,{alt:"",width:16,height:16,className:"ytExpandableMetadataHeaderViewModelIcon",data:Y}))}}),_.H("div",{class:"ytExpandableMetadataHeaderViewModelExpandedTextContainer"},_.H("div",{class:"ytExpandableMetadataHeaderViewModelExpandedTextFirstRowContainer"},_.H(_.i6,{text:function(){return S.data().expandedLabel},
className:"ytExpandableMetadataHeaderViewModelExpandedLabel"}),_.H(_.i6,{text:function(){return S.data().expandedTitle},
className:"ytExpandableMetadataHeaderViewModelExpandedTitle"})),_.H(_.i6,{text:function(){return S.data().expandedSubtitle},
className:"ytExpandableMetadataHeaderViewModelExpandedSubtitle",linkInheritColor:!0}))),_.H("div",{class:"ytExpandableMetadataHeaderViewModelRightSection"},_.H(_.yP,{data:function(){return S.data().infoButton}},{buttonViewModel:_.PG}),_.H(_.yP,{data:function(){return S.data().collapseButton}},{buttonViewModel:function(Y){return _.H(_.PG,{data:Y.data,
onClick:function(){var L;(L=S.expandedCallback)==null||L.call(S,!1)}})}})))},
else:function(){return _.H(ENt,Object.assign({},S))}}))},"me"),oNt=_.$k(function(S){return _.H("div",{class:"ytExpandableMetadataHeaderViewModelCollapsedLabelContainer"},_.H(_.n,{cond:function(){return S.data().collapsedLabelImage},
then:function(p){return _.H("div",{class:"ytExpandableMetadataHeaderViewModelCollapsedLabelImage"},_.H(_.of,{width:16,height:16,className:"ytExpandableMetadataHeaderViewModelIcon",data:p,alt:""}))}}),_.H(_.i6,{text:function(){return S.data().collapsedLabel},
className:"ytExpandableMetadataHeaderViewModelCollapsedLabel"}))},"ne"),ENt=_.$k(function(S){return _.H("div",{class:"ytExpandableMetadataHeaderViewModelCollapsedHeader",
"on:click":_.kL(function(){var p;return void((p=S.expandedCallback)==null?void 0:p.call(S,!0))})},_.H("div",{class:"ytExpandableMetadataHeaderViewModelLeftSection"},_.H(_.n,{cond:function(){return S.data().collapsedImage},
then:function(p){return _.H("div",{class:"ytExpandableMetadataHeaderViewModelCollapsedImage"},_.H(_.of,{width:16,height:16,data:p,alt:""}))}}),_.H(_.n,{cond:function(){return S.data().showLeadingCollapsedLabel},
then:function(){return _.H(oNt,Object.assign({},S))}}),_.H("div",{class:"ytExpandableMetadataHeaderViewModelCollapsedTitle"},_.H(_.i6,{text:function(){return S.data().collapsedTitle}}))),_.H("div",{class:"ytExpandableMetadataHeaderViewModelRightSection"},_.H(_.n,{cond:function(){return!S.data().showLeadingCollapsedLabel},
then:function(){return _.H(oNt,Object.assign({},S))}}),_.H(_.yP,{data:function(){return S.data().infoButton}},{buttonViewModel:_.PG}),_.H(_.yP,{data:function(){return S.data().expandButton}},{buttonViewModel:function(p){return _.H(_.PG,{data:p.data,
onClick:function(){var U;(U=S.expandedCallback)==null||U.call(S,!0)}})}})))},"oe");_.vNc=_.$k(function(S){var p=_.d(_.Dt(function(){return S.data().initiallyExpanded})),U=p.next().value,Y=p.next().value,L,I=(L=_.tW().resolve(_.AW(_.Cz)))==null?void 0:L(),V=function(){var W=S.data().colorData;
if(W)return I?W==null?void 0:W.darkColorPalette:W==null?void 0:W.lightColorPalette};
return _.H("yt-expandable-metadata-view-model",{class:"ytExpandableMetadataViewModelHost",style:_.zw({"background-color":function(){var W=V();return(W==null?0:W.section2Color)?_.ev(W.section2Color):""}})},_.H(_.yP,{data:function(){return S.data().header}},{expandableMetadataHeaderViewModel:function(W){return _.H(m8c,{data:W.data,
expanded:function(){return!!U()},
expandedCallback:function(O){Y(O)}})}}),_.H(_.n,{cond:function(){return U()},
then:function(){return _.H("div",{class:"ytExpandableMetadataViewModelExpandedContent"},_.H(_.yP,{data:function(){return S.data().expandedContent}},{horizontalShelfViewModel:function(W){return _.H(_.FY,{data:W.data,
includeMargin:!0,forceNarrowLayout:!0,palette:V})},
videoSummaryContentViewModel:function(W){return _.H(hnQ,{data:W.data,className:"ytExpandableMetadataViewModelVideoSummaryContent"})},
lockupViewModel:function(W){return _.H(_.ch,{data:W.data,className:"ytExpandableMetadataViewModelLockup",thumbnailFixedWidth:function(){return"168px"},
containerType:3,sizing:"COMPACT"})},
basicContentViewModel:function(W){return _.H(_.x8H,{data:W.data,className:"ytExpandableMetadataViewModelBasicContent"})}}),_.H(_.yP,{data:function(){return S.data().expandedBottomButtons}},{buttonViewModel:function(W){return _.H("div",{class:"ytExpandableMetadataViewModelExpandedBottomButtons"},_.H(_.PG,{data:W.data}))}}))}}))},"pe");var $8t=_.$k(function(S){var p=S.text;var U=S.marqueeSpacing;var Y=S.scrollDelay;var L=S.scrollDuration;var I=S.enableMarqueeScroll;S=S.large;var V=_.d(_.kj(!1,void 0,"kfNqfd")),W=V.next().value,O=V.next().value,D=_.d(_.kj(0,void 0,"bYgZbf"));V=D.next().value;var z=D.next().value,Q=_.vH();D=_.vH();var J=_.vH(),K=_.tW().resolve(_.EW);_.R8(function(){if(I()){var Z=J.value.getBoundingClientRect().width,l=Q.value.getBoundingClientRect().width;if(Z>l){var a=(K==="ltr"?-1:1)*(Z+(U?U():16));Promise.resolve().then(function(){O(!0);
z(a)})}}});
var G={},X={};return _.H("marquee-scroll",{class:_.VD("ytMarqueeScrollHost",(G.ytMarqueeScrollHostLarge=S,G)),el:Q},_.H("div",{id:"marquee-scroll-inner-container",class:_.VD("ytMarqueeScrollInnerContainer",(X.ytMarqueeScrollAnimationEnabled=function(){return W()},X)),
el:D,style:_.zw({gap:U?(0,_.rq)(U):"16px","animation-duration":L?D5Q(L):"16s","animation-delay":Y?D5Q(Y):"3s","--marquee-translate":(0,_.rq)(V)})},_.H("span",{el:J,dir:"auto"},_.H(_.i6,{text:p,noWrap:!0,className:"ytMarqueeScrollPrimaryString"})),_.H(_.n,{cond:W,then:function(){return _.H("span",{"aria-hidden":"true",dir:"auto"},_.H(_.i6,{text:p,noWrap:!0,className:"ytMarqueeScrollDuplicateString"}))}})))},"qe");_.iyt=_.$k(function(S){var p=S.data;var U=S.overlayDensity;S=_.kL(function(){p().onTapCommand&&_.wx(p().onTapCommand);return!1});
var Y=_.LHN(),L={};return _.H("reel-sound-metadata-view-model",{class:_.VD("ytReelSoundMetadataViewModelHost",(L.ytReelSoundMetadataViewModelHostLarge=function(){return(U==null?void 0:U())===1},L)),
"on:click":S,tabindex:0,role:"button","on:keydown":Y},_.H("div",{class:"ytReelSoundMetadataViewModelMetadataContainer"},_.H(_.n,{cond:function(){return p().musicIcon},
then:function(I){return _.H(_.of,{data:I,alt:"music icon",className:"ytReelSoundMetadataViewModelIcon"})}}),_.H("div",{class:"ytReelSoundMetadataViewModelMarqueeContainer"},_.H($8t,{text:function(){return p().soundMetadata},
enableMarqueeScroll:function(){return!!p().enableMarqueeScroll},
large:function(){return(U==null?void 0:U())===1}}))))},"re");var NuP,BuH,ME,c_w,pkn,t6P,LqT,YXA;NuP=["https://fonts.gstatic.com","https://tv.youtube.com","https://www.gstatic.com","https://www.youtube.com"];BuH=_.pA("wil_icon_max_concurrent_fetches",Infinity);
ME=function(S,p,U){var Y=this;this.iconSet=S;this.appDirection=p;this.responsePromises={};this.iconCache={};this.queuedResponseResolvers={};this.numFetches=this.counter=0;this.cacheStorageAvailable=!!_.UX.caches;this.cacheStorageAsync=Promise.resolve(void 0);this.cacheStorageSync=void 0;this.requestAninmationFrameResolver=null;this.renderingMode=_.y("wil_icon_use_mask_rendering")?1:0;this.isNetworkFirstStrategy=_.y("wil_icon_network_first");this.renderWhenIdle=_.y("wil_icon_render_when_idle");this.waitForAnimationFrame=
!_.y("wil_icon_load_immediately");this.isPurging=!1;S=function(){Y.cacheStorageAvailable&&(Y.cacheStorageAsync=_.UX.caches.open("yt-icons").then(function(I){return Y.cacheStorageSync=I}).catch(function(){Y.cacheStorageAvailable=!1}))};
U=(U==null?void 0:U())||{};U=_.d(Object.entries(U));for(p=U.next();!p.done;p=U.next()){var L=_.d(p.value);p=L.next().value;L=L.next().value;L=HQ(L);qet(L);this.iconCache[p]=L.cloneNode(!0)}this.isPurging=A_m(this);this.isPurging instanceof Promise?this.isPurging.then(S):S()};
_.CHE=function(S,p){var U=S.resolveIcon(p);return U?S.renderingMode===1?t6P(S,U,S.renderingMode):(p=S.iconCache[U.url])?(p=p.cloneNode(!0),c_w(S,p),t6P(S,U,S.renderingMode,p)):_.SXt(S,U).then(function(Y){var L=Y?0:1;c_w(S,Y);return t6P(S,U,L,Y)}):(_.s9(new _.y7("Icon not found",{iconShape:p})),function(){})};
c_w=function(S,p){if(p){S.counter+=1;S="_yt"+S.counter;p=[p].concat(_.jo(p.getElementsByTagName("*")));p=_.d(p);for(var U=p.next();!U.done;U=p.next())if(U=U.value,U.tagName==="style"&&U.textContent)U.textContent=pkn(U.textContent,S,!0);else for(var Y=_.d(U.attributes),L=Y.next();!L.done;L=Y.next()){L=L.value;L.name==="id"&&(L.value+=S);["mask","fill","clip-path"].includes(L.name)&&(L.value=pkn(L.value,S));if(L.name==="style"){var I=U.style;try{I.cssText=pkn(I.cssText,S,!0)}catch(z){var V=void 0,W=
void 0,O=void 0,D=void 0;IL({error:((V=z)==null?void 0:(O=(W=V).toString)==null?void 0:O.call(W))||"",el:U.outerHTML,style:!!I,cssText:(D=I)==null?void 0:D.cssText})}}L.name==="xlink:href"&&(L.value=L.value.replace(/#(.*)/,"#$1"+S))}}};
pkn=function(S,p,U){var Y=/url\(["']?#(.*?)["']?\)/;(U===void 0?0:U)&&(Y=/url\(["']?#(.*?)["']?\)/g);return S.replace(Y,"url(#$1"+p+")")};
t6P=function(S,p,U,Y){return function(L,I){var V=Object.assign({},{iconColor:"currentcolor",iconWidth:p.size+"px",iconHeight:p.size+"px",iconDisplay:"block"},I);I=_.JY("DIV");var W=V.iconColor,O=V.iconFilter;V="width: "+V.iconWidth+"; height: "+V.iconHeight+"; display: "+V.iconDisplay+";";O&&(V+=" filter: "+O+";");U===0&&(V+=" fill: "+W+";");U===1&&(O=p.url,V+=" -webkit-mask: url("+O+") no-repeat center / cover; mask: url("+(O+") no-repeat center / cover; background-color: ")+W);p.allowMirroring&&
S.appDirection==="rtl"&&(V+=" transform: scale(-1, 1); transform-origin: center center;");I.setAttribute("style",V);U===0&&Y&&I.appendChild(Y);L.appendChild(I)}};
_.SXt=function(S,p){var U,Y,L;return _.T(function(I){U=function(V){return Fq(V)};
Y=p.url;if(!UGT(Y))throw Error("fj");L=YXA(S,Y);return I.return(L.then(function(V){return V.clone().text()}).then(function(V){var W=U(V);
V=p.size;var O=_.JY("DIV");_.Ch(O,W);W=_.yz(O.firstElementChild!==void 0?O.firstElementChild:_.gRj(O.firstChild,!0));V=qet(W,V);S.iconCache[Y]=V.cloneNode(!0);delete S.responsePromises[Y];return V}).catch(function(){}))})};
LqT=function(S){var p,U=(p=S.requestAninmationFrameResolver)==null?void 0:p.promise;U||(S.requestAninmationFrameResolver=new _.MI,U=S.requestAninmationFrameResolver.promise,_.UX.requestAnimationFrame(function(){var Y;(Y=S.requestAninmationFrameResolver)==null||Y.resolve();S.requestAninmationFrameResolver=null}));
return U};
YXA=function(S,p){var U,Y;return _.T(function(L){if(L.nextAddress==1)return S.waitForAnimationFrame?_.k(L,LqT(S),2):L.jumpTo(2);U=S.responsePromises[p];U||(Y=function(){var I,V,W;return _.T(function(O){switch(O.nextAddress){case 1:if(!S.cacheStorageAvailable){I=void 0;O.jumpTo(2);break}if(V=S.cacheStorageSync){O.jumpTo(3);break}return _.k(O,S.cacheStorageAsync,4);case 4:V=O.yieldResult;case 3:I=V;case 2:return W=I,S.isNetworkFirstStrategy?O.return(S.fetchAndUpdateCache(p,W).catch(S.getCacheStorageResponse.bind(S,
p,W))):O.return(S.getCacheStorageResponse(p,W).catch(S.fetchAndUpdateCache.bind(S,p,W)))}})},U=S.renderWhenIdle?new Promise(function(I,V){_.bQ(_.PA,function(){Y().then(I).catch(V)},10)}):Y(),S.responsePromises[p]=U);
return L.return(U.catch(function(I){delete S.responsePromises[p];IL({error:(I==null?0:I.toString)?I.toString():"",url:p});throw I;}))})};
ME.prototype.fetchAndUpdateCache=function(S,p){var U=this;return _.T(function(Y){return Y.return(Mwn(U,S).then(function(L){IwJ(U,S,L,p);return L}))})};
var Mwn=function(S,p){var U;return _.T(function(Y){if(S.numFetches<BuH)return S.numFetches+=1,Y.return(dGE(S,p).finally(function(){--S.numFetches;if(Object.keys(S.queuedResponseResolvers).length){var L=Object.keys(S.queuedResponseResolvers)[0],I=S.queuedResponseResolvers[L];delete S.queuedResponseResolvers[L];I.resolve(Mwn(S,L))}}));
U=new _.MI;S.queuedResponseResolvers[p]=U;return Y.return(U.promise)})},dGE=function(S,p,U){U=U===void 0?2:U;
var Y;return _.T(function(L){Y={credentials:"same-origin",priority:"low"};return L.return(_.UX.fetch(p,Y).then(function(I){return I.ok?I:Promise.reject(Error("gj`"+I.status+"`"+I.statusText))}).catch(function(I){if(U>0)return dGE(S,p,U-1);
throw I;}))})},IwJ=function(S,p,U,Y){_.T(function(L){return Y?L.return(new Promise(function(I){_.bQ(_.PA,function(){var V,W;
return _.T(function(O){switch(O.nextAddress){case 1:if(!S.isNetworkFirstStrategy){V=void 0;O.jumpTo(2);break}return _.k(O,Y.match(p).catch(function(){}),3);
case 3:V=O.yieldResult;case 2:if(W=V){O.jumpTo(4);break}return _.k(O,Y.put(p,U.clone()).catch(function(D){IL({error:(D==null?0:D.toString)?D.toString():"",url:p})}),4);
case 4:I(),_.OV(O)}})},50)})):L.return()})};
ME.prototype.getCacheStorageResponse=function(S,p){return _.T(function(U){return p?U.return(p.match(S).then(function(Y){return Y&&Y.ok?Y:Promise.reject()})):U.return(Promise.reject())})};
var qet=function(S,p){p===void 0||S.getAttribute("viewBox")||S.setAttribute("viewBox","0 0 "+p+" "+p);S.setAttribute("focusable","false");S.setAttribute("aria-hidden","true");try{S.style.pointerEvents="none",S.style.display="inherit",S.style.width="100%",S.style.height="100%"}catch(L){var U;IL({error:((U=L)==null?0:U.toString)?L.toString():""});try{S.style.cssText="pointer-events: none; display: inherit; width: 100%; height: 100%;"}catch(I){var Y;IL({error:((Y=I)==null?0:Y.toString)?I.toString():
""})}}return S},UGT=function(S){for(var p=_.d(NuP),U=p.next();!U.done;U=p.next())if(S.startsWith(U.value)&&S.endsWith(".svg"))return!0;
return!1};
ME.prototype.resolveIcon=function(S){return this.iconSet.resolveIcon(S)};
var IL=function(S){_.eP(new _.y7("Error in IconManager",S))},A_m=function(S){if(_.y("wil_icons_cache_purge_killswitch"))return!1;
try{var p=_.UX.localStorage}catch(I){return!1}if(!p||!S.cacheStorageAvailable)return!1;var U=function(I){try{var V;(V=p)==null||V.setItem("yt-icons-last-purged",I.toString())}catch(O){var W;IL({error:((W=O)==null?0:W.toString)?O.toString():""})}},Y=Number(p.getItem("yt-icons-last-purged"));
if(!Y)return Y=new Date,Y=Y.setDate(Y.getDate()-Math.floor(Math.random()*90+1)),U(Y),!1;if(function(I,V){I=new Date(I);V=new Date(V);return V.getMonth()-I.getMonth()+12*(V.getFullYear()-I.getFullYear())}(Y,Date.now())<3)return!1;
try{return _.UX.caches.delete("yt-icons").then(function(I){I&&U(Date.now());return I}).catch(function(){return!1}).finally(function(){S.isPurging=!1})}catch(I){var L;
IL({error:((L=I)==null?0:L.toString)?I.toString():""});return!1}};
ME[vF]=[ywE,_.EW,_.AW(jjt)];_.dC=function(S,p){this.iconManager=S;this.iconsToFetch=p};
_.dC[vF]=[_.dx,_.AW(bwP)];var VwA=function(){};var TNT=function(S,p,U){this.requestKey=S;this.tY8=p;this.zR5=U;this.gvv=function(){return new XMLHttpRequest};
this.c1t=void 0;this.mdk=[]};
TNT.prototype.getLatestChallengeResponse=function(){return this.zR5};
var sKq=function(S,p,U){var Y,L,I,V;return _.T(function(W){if(W.nextAddress==1){_.R2("attestation_challenge_fetch");_.Fg("att_fs",void 0,"attestation_challenge_fetch");if(!S.c1t)throw new _.nW(9,"Missing fetcher");return _.k(W,S.c1t(p,U),2)}Y=W.yieldResult;I=(L=Y)==null?void 0:L.bgChallenge;if(!I)throw new _.nW(15,"Missing field");S.zR5=Y;S.mdk.forEach(function(O){O(Y)});
V=O1e(I);_.Fg("att_fc",void 0,"attestation_challenge_fetch");p1G("attestation_challenge_fetch");return W.return(V)})},p4q=function(S,p){var U,Y,L,I,V;
return _.T(function(W){switch(W.nextAddress){case 1:U=new Tr(100,3E5,.25,2),Y=void 0;case 2:if(!(U.currBackoffCount_<10)){W.jumpTo(4);break}_.M2(W,5);if(!(U.currBackoffCount_>0)){W.jumpTo(7);break}return _.k(W,d4E(U.getValue()),7);case 7:return _.k(W,WqJ(S,p),9);case 9:return L=W.yieldResult,W.return(L);case 5:I=_.W4(W);I instanceof _.nW?Y=I:(V=I instanceof Error?I.message:"Unknown",Y=new _.nW(9,V));E5Q(U);W.jumpTo(2);break;case 4:if(Y)throw Y;throw new _.nW(9,"Unknown error");}})},WqJ=function(S,
p){p=K1Q(bhd(new yAd,p),S.requestKey);
var U=new _.MI,Y=S.gvv();Y.open("POST",S.tY8);Y.setRequestHeader("X-Goog-Api-Key","AIzaSyDyT5W0Jh49F30Pqqtyfdf7pDLFKLJoAnw");Y.setRequestHeader("Content-Type","application/json+protobuf");Y.onload=function(){if(_.guu(Y)){var L=Zuc(Y.responseText);U.resolve(L)}else U.reject(new _.nW(_.Or(_.LA(Y)),Y.statusText))};
Y.onerror=function(){U.reject(new _.nW(_.Or(_.LA(Y)),Y.statusText))};
Y.send(p.serialize());return U.promise};var kGn=function(S){this.networkStatusManager=S;this.isDownloaded=TGE===void 0?function(){return!1}:TGE;
this.isReady=!1;this.vv1=OrJ(this)},OrJ=function(S){var p;
return _.T(function(U){if(U.nextAddress==1)return _.k(U,P9w(),2);if(U.nextAddress!=3)return p=U.yieldResult,_.k(U,Aqd(p),3);S.aM=U.yieldResult;TDw(S.aM).then(function(){S.isReady=!0});
return U.return(S.aM)})},HrL=function(S,p,U){S.aM?(S=S.aM.sO({rM:U,
tIh:!0,f54:!0}),p.serviceIntegrityDimensions={poToken:S}):_.ZP(Error("ij"))};
kGn.prototype.processContext=function(S){var p=this;if(!S.input.match(_.$l(O$t)))return _.ag();var U=S.innerTubeRequest,Y=U.videoId;return!Y||this.isDownloaded(U)||this.networkStatusManager&&!this.aM&&!this.networkStatusManager.isNetworkAvailable()?_.ag():this.aM?this.isReady?(HrL(this,U,Y),_.ag()):new lB(TDw(this.aM).then(function(){HrL(p,U,Y)})):new lB(this.vv1.then(function(L){return _.T(function(I){if(I.nextAddress==1)return _.k(I,TDw(L),2);
HrL(p,U,Y);_.OV(I)})}))};var DGo=new _.$g("WEB_PO_CONTEXT_PROCESSOR");var zdX=function(S,p){var U=this;this.x2k=0;var Y;this.cAx=(Y=p==null?void 0:p.cAx)!=null?Y:window;this.networkStatusManagerPromise=p==null?void 0:p.networkStatusManagerPromise;var L;this.requestKey=(L=p==null?void 0:p.requestKey)!=null?L:_.Ug("par_bir_key")||"O43z0dpjhgX20SCx4KAo";var I;this.xvg=(I=p==null?void 0:p.xvg)!=null?I:function(O){return new GB(O)};
var V;Y=(V=p==null?void 0:p.inv)!=null?V:function(O,D,z){return new TNT(O,D,z)};
this.bgChallenge=O1e(S.bgChallenge);this.ttlSeconds=k8G(iO(S.challenge||""));this.er=Y(this.requestKey,_.y("par_at_ep")?["www.youtube.com","m.youtube.com"].includes(_.UX.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",S);V1w(this.er);var W;this.qO5=(W=p==null?void 0:p.qO5)!=null?W:function(O){_.Kz(U.cAx.document,"visibilitychange",function(){U.cAx.document.visibilityState===
"visible"&&O()})}},nRE=function(S){if(!S.rX){var p={maxAttempts:5,
wps:S.ttlSeconds*1E3};Wkr(S.cAx);S.rX=S.xvg({er:S.er,lG:{disable:_.y("html5_web_po_disable_remote_logging"),sQ:"aGIf",yDa:Xru("html5_web_po_experiment_ids"),zK5:_.y("wpo_dis_lfdms")?0:1E3,gF:_.y("wpo_gel_strz")?function(Y){var L=WBH.get(Y);L||(L=new Tsc(Y),L=new D1(L),WBH.set(Y,L));return L}:void 0},
iRT:p,q1g:S.bgChallenge,ySH:OMw});S.x2k=Date.now();RfP(S.rX,function(){S.x2k=Date.now()});
gYk(S.rX,function(){return _.T(function(Y){return Y.return(QuL(S))})});
var U=S.b28.bind(S);S.networkStatusManagerPromise&&S.ttlSeconds>0&&S.networkStatusManagerPromise.then(function(Y){Y.listen("publicytnetworkstatus-online",U)});
S.qO5(U)}};
zdX.prototype.b28=function(){if(Date.now()>this.x2k+this.ttlSeconds*1E3){var S;(S=this.rX)==null||hfP(S)}};
var QuL=function(S){if(S.dVg)return S.dVg;if(!S.rX)throw Error("jj");S.dVg=new X8({rX:S.rX,er:S.er,iy5:!0,onError:OMw});return S.dVg},HMr=function(S,p){S=new zdX(S,p);
nRE(S);QuL(S)};var VK=function(S,p){this.store=S;this.queue=[];this.supportsFocus=_.y("web_ephemeral_actions_focus");p==null||p.addEventListener("yt-navigate-start",this.reset.bind(this))};
VK.prototype.enqueue=function(S){var p=S.command,U=S.durationMs,Y=S.elementToFocus;var L=S.label;var I=S.elementToFocus;S.command?L=_.Oh("EPHEMERAL_ACTION_ANNOUNCEMENT",{label:L,shortcut:_.Oh("SHIFT_PLUS_ENTER")}):I&&this.supportsFocus&&(S=L+". "+_.Oh("SHIFT_PLUS_ENTER")+" for more information.",L=_.Oh("EPHEMERAL_ACTION_FOCUS_ANNOUNCEMENT",{label:L,shortcut:_.Oh("SHIFT_PLUS_ENTER")},S));U={announcement:L,durationMs:U!=null?U:this.supportsFocus?8E3:void 0};p?U.command=p:Y&&this.supportsFocus&&(Y.classList.add("ephemeral-action-focusable-element"),
U.selector=Y.tagName+".ephemeral-action-focusable-element");this.queue.push(U);Jes(this)};
VK.prototype.activate=function(S){var p=_.rDk(this.store.getState());if(p){if(p==null?0:p.command)_.eV(p.command),this.store.dispatch(dbE(null));(p==null?0:p.selector)&&this.supportsFocus&&(p=document.querySelector(p.selector),_.cyk(p));S.preventDefault()}};
var Jes=function(S){if(!_.rDk(S.store.getState())&&S.queue.length){var p=S.queue.shift();p&&(S.previousAnnouncement===p.announcement&&(p.announcement+="\u00a0"),S.store.dispatch(dbE(p)),S.previousAnnouncement=p.announcement,S.timeoutId=setTimeout(function(){if(p.selector&&S.supportsFocus){var U;(U=document.querySelector(p.selector))==null||U.classList.remove("ephemeral-action-focusable-element")}S.store.dispatch(dbE(null));Jes(S)},p.durationMs))}};
VK.prototype.reset=function(){this.timeoutId&&clearTimeout(this.timeoutId);this.store.dispatch(dbE(null));this.queue.length=0;this.timeoutId=void 0};
VK[vF]=[_.XF,_.Hl];_.Tt=new _.$g("EPHEMERAL_ACTIONS_MANAGER_TOKEN");var yed=new _.$g("AUTH_SERVICE_TOKEN");var Q_w=_.x1(["about:blank"]),zue;var Kqi=new _.$g("API_IFRAME_TOKEN"),brA=new _.$g("FETCH_FN_TOKEN"),juo=new _.$g("PARSE_FN_TOKEN"),reo=new _.$g("WINDOW_REQUEST_TOKEN");var ezl;ezl=new _.$g("YT_CONFIG_FLAG_RETRIEVER_TOKEN");_.GGJ=new _.$g("MISC_UI_SHARED_FLAGS_TOKEN");var hds=function(){};
hds.prototype.getFlag=function(S){if(S.configType!==2)throw Error("kj");return Rdq(S)};
var Rdq=function(S){switch(S.flagType){case "bool":return _.y(S.flagName);case "int":return _.qt(_.pA(S.flagName));case "double":return _.pA(S.flagName);case "string":return _.Ug(S.flagName);case "int32_list":return Xru(S.flagName);case "int64_list":return Xru(S.flagName).map(function(p){return _.qt(p)});
case "string_list":return _.YU(S.flagName);default:throw Error("lj");}};var Wp=function(S,p,U){p=p===void 0?{}:p;GA.call(this,U===void 0?"uninitialized":U);this.env=S;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}];p.shouldWaitOnAsyncImmediate!==void 0&&(this.processPluginOptions.shouldWaitOnAsyncImmediate=p.shouldWaitOnAsyncImmediate)};
_.r(Wp,GA);Wp.prototype.init=function(S){var p=this,U;return _.T(function(Y){if(Y.nextAddress==1)return p.processPluginOptions.shouldWaitOnAsyncImmediate?_.k(Y,S(p.env),2):(S(p.env),Y.jumpTo(2));if(Y.nextAddress!=4)return p.jobSet?_.k(Y,p.jobSet.completedResolver.promise,4):Y.jumpTo(4);U=_.Pt();U.parkOrScheduleJob(function(){p.transition("rendering")},10,"ci");
_.OV(Y)})};
Wp.prototype.initialRender=function(S){var p=this,U;return _.T(function(Y){if(Y.nextAddress==1)return p.processPluginOptions.shouldWaitOnAsyncImmediate?_.k(Y,S(p.env),2):(S(p.env),Y.jumpTo(2));if(Y.nextAddress!=4)return p.jobSet?_.k(Y,p.jobSet.completedResolver.promise,4):Y.jumpTo(4);U=_.Pt();U.parkOrScheduleJob(function(){p.transition("rendered")},10,"cr");
_.OV(Y)})};
Wp.prototype.afterRenderImmediate=function(S){var p=this,U;return _.T(function(Y){if(Y.nextAddress==1)return p.processPluginOptions.shouldWaitOnAsyncImmediate?_.k(Y,S(p.env),2):(S(p.env),Y.jumpTo(2));if(Y.nextAddress!=4)return p.jobSet?_.k(Y,p.jobSet.completedResolver.promise,4):Y.jumpTo(4);U=_.Pt();U.parkOrScheduleJob(function(){p.transition("after-render-deferred")},10,"carml");
_.OV(Y)})};
Wp.prototype.afterRenderDeferred=function(S){var p=this;return _.T(function(U){S(p.env);_.OV(U)})};var FqA={},Xkq=(FqA.rendered={priority:0,callback:function(S){T6d(S.injector.resolve(jP))}},FqA);var PeA=!1,huX=0,bMN=null,GzE=null;var Zro=new _.$g("NETWORK_SLI_TOKEN");var suT=function(S,p,U,Y){this.networkSli=S;this.fetchFn=p;this.parseFn=U;this.requestFn=Y};
suT.prototype.fetch=function(S,p,U){var Y=this,L,I,V;return _.T(function(W){L=edo(Y,S,p);V=(I=Y.fetchFn)!=null?I:fetch;return W.return(V(L).then(function(O){return Y.handleResponse(O,U)}).catch(function(O){_.eP(O);
if((U==null?0:U.expectJsonStrict)&&O instanceof Wl&&O.errorType===1)return Promise.reject(O)}))})};
var IVl=function(S,p,U,Y){var L,I,V,W,O,D;return _.T(function(z){switch(z.nextAddress){case 1:return L=edo(S,p,U),_.M2(z,2),_.k(z,fetch(L),4);case 4:I=z.yieldResult;_.CA(z,3);break;case 2:throw _.W4(z),new Wl(2,"Failed to parse streaming response",L.url);case 3:if(!I.redirected&&!I.ok)throw(V=S.networkSli)==null||V.failure(),new _.y7("Streaming fetch request not ok",L.url);if(!I.body)throw new _.y7("No response body in streaming response",L.url);W=I.body.pipeThrough(new TextDecoderStream).getReader();
O=new _.AK;D={};return z.return(gRq(S,W,O,TTN,D,Y))}})},edo=function(S,p,U){if(S.networkSli){var Y=_.Tp(_.iL(p,"key"))||"/UNKNOWN_PATH";
S.networkSli.start(Y)}Y=U;_.y("wug_networking_gzip_request")&&(Y=Ele(U));var L;return new ((L=S.requestFn)!=null?L:window.Request)(p,Y)},gRq=function(S,p,U,Y,L,I){var V,W,O,D,z,Q,J,K,G;
return _.T(function(X){if(X.nextAddress==1)return _.k(X,p.read(),2);V=X.yieldResult;W=V.value;if(O=V.done)return(D=S.networkSli)==null||D.success(),X.return(L);try{z=U.parse(W)}catch(Z){throw new Wl(1,"Failed to parse streaming response",W);}if(z!=null)for(Q=_.d(z),J=Q.next();!J.done;J=Q.next())K=J.value,Y(L,K),G=void 0,(G=I)==null||G(L,K);return X.return(gRq(S,p,U,Y,L,I))})};
suT.prototype.handleResponse=function(S,p){var U,Y=(U=this.parseFn)!=null?U:JSON.parse;U=S.text().then(function(L){if((p==null?0:p.jspbResponseCtor)&&S.ok)return YHG(p.jspbResponseCtor,L);L=L.replace(")]}'","");if((p==null?0:p.expectJsonStrict)&&L)try{var I=Y(L)}catch(W){throw new Wl(1,"JSON parsing failed after fetch");}var V;return(V=I)!=null?V:Y(L)});
S.redirected||S.ok?this.networkSli&&this.networkSli.success():(this.networkSli&&this.networkSli.failure(),U=U.then(function(L){_.eP(new _.y7("Error: API fetch failed",S.status,S.url,L));return Object.assign({},L,{errorMetadata:{status:S.status}})}));
return U};
suT[vF]=[_.AW(Zro),_.AW(brA),_.AW(juo),_.AW(reo)];var uEt=new _.$g("NETWORK_MANAGER_TOKEN");var wkE=[1,2,4,8,16,30],awo=function(S){this.frameCountInternal=0;this.brokenFrameSummarizers=[];this.maxTimeMs=S.maxTimeMs;this.maxFrameCount=S.maxFrameCount===void 0?Math.ceil(60*S.maxTimeMs/1E3):S.maxFrameCount;S=_.d(wkE);for(var p=S.next();!p.done;p=S.next())this.brokenFrameSummarizers.push(new lwP(p.value/60*1E3))},fwL=function(S){var p=S.frameCountInternal>=S.maxFrameCount;
return S.elapsedTimeMs>=S.maxTimeMs||p},CeX=function(S){for(var p=[],U=_.d(S.brokenFrameSummarizers),Y=U.next();!Y.done;Y=U.next())Y=Y.value,Y=Y.brokenFrameCount!==0?{severityMs:Math.round(Y.targetFrameTimeMs),
eventCount:Y.brokenFrameCount,averageDurationBetweenEventsMs:Math.round(Y.averageDurationBetweenEventsMs)}:void 0,Y&&p.push(Y);return{summaries:p,monitoringDurationMs:Math.round(S.elapsedTimeMs)}};
_.$u.Object.defineProperties(awo.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 lwP=function(S){this.targetFrameTimeMs=S;this.currTimeMs=this.brokenFrameCount=0;this.timeOfLastBrokenFrameMs=this.timeOfFirstBrokenFrameMs=void 0};
_.$u.Object.defineProperties(lwP.prototype,{averageDurationBetweenEventsMs:{configurable:!0,enumerable:!0,get:function(){return this.brokenFrameCount<=1?0:(this.timeOfLastBrokenFrameMs-this.timeOfFirstBrokenFrameMs)/(this.brokenFrameCount-1)}}});var xGL=function(){};
xGL.prototype.start=function(S,p){var U=this;if(!window.requestAnimationFrame)return Promise.resolve(void 0);this.monitor&&this.stop();var Y=new awo({maxTimeMs:S});this.monitor=Y;this.lastSummaryInternal=void 0;this.metadataToLog=p;return new Promise(function(L){var I=function(V){if(V===void 0)U.stop(),L(void 0);else if(U.monitor!==Y)V=Object.assign({},CeX(Y),{measurementMethod:"MEASUREMENT_METHOD_WEB_RAF_POLLING"}),L(V);else{var W=U.monitor;if(!fwL(W)){W.frameCountInternal++;if(W.prevTime===void 0)W.startTime=
V;else for(var O=V-W.prevTime,D=_.d(W.brokenFrameSummarizers),z=D.next();!z.done;z=D.next()){z=z.value;var Q=z.currTimeMs;z.currTimeMs+=O;O>z.targetFrameTimeMs+2&&(z.brokenFrameCount++,z.timeOfFirstBrokenFrameMs===void 0&&(z.timeOfFirstBrokenFrameMs=Q),z.timeOfLastBrokenFrameMs=Q)}W.prevTime=V}fwL(U.monitor)?L(U.stop()):_.PA.addJob(I,5,0)}};
_.PA.addJob(I,5,0)})};
xGL.prototype.stop=function(S){if(!this.monitor)return this.lastSummaryInternal;var p=Object.assign({},CeX(this.monitor),{measurementMethod:"MEASUREMENT_METHOD_WEB_RAF_POLLING"});if(p.monitoringDurationMs){S=S!=null?S:this.metadataToLog;var U={droppedFramesSummary:p,name:"MANUAL_MEASUREMENT_NAME_AMBIENT_MODE_IDLE"};S&&(U[S.type]=S.data);_.RV("manualSmoothnessMeasurement",U)}this.monitor=void 0;this.lastSummaryInternal=p;this.metadataToLog=void 0;return p};_.ERo=new _.$g("MAIN_THREAD_DFE_CAPTURER_AMBIENT_MODE_IDLE_TOKEN");var mGP;mGP=function(S){this.JSC$16284_expiringStorage=new bi(S)};
_.oRE=function(S){if(_.Rur()&&(S=_.nnw(_.nA()+"::"+S)))return new mGP(S)};
mGP.prototype.set=function(S,p,U){U=U!==void 0?Date.now()+U:void 0;this.JSC$16284_expiringStorage.set(S,p,U)};
mGP.prototype.get=function(S){return this.JSC$16284_expiringStorage.get(S)};
mGP.prototype.remove=function(S){this.JSC$16284_expiringStorage.remove(S)};var vRt=new _.$g("SESSION_STORAGE");_.Oa=function(){};
_.Oa.getInstance=function(){var S=_.ad("ytglobal.storage_");S||(S=new _.Oa,_.NT("ytglobal.storage_",S));return S};
_.Oa.prototype.estimate=function(){var S,p,U;return _.T(function(Y){S=navigator;return((p=S.storage)==null?0:p.estimate)?Y.return(S.storage.estimate()):((U=S.webkitTemporaryStorage)==null?0:U.queryUsageAndQuota)?Y.return(Fkw()):Y.return()})};
_.NT("ytglobal.storageClass_",_.Oa);var $Gs=!1;var irX=_.x1(["https://fonts.googleapis.com/css?family=Roboto:300italic,400italic,500italic,700italic"]),NNt=_.x1(["https://fonts.googleapis.com/css?family=Roboto+Mono:400"]);var Ijq={"/":_.TE,"/?feature=ytca":_.TE,"/feed/downloads":_.FRG};var Op=function(S,p,U){this.JSC$16297_upliftPromise=S;this.store=p;this.JSC$16297_persistentStorePromiseAccessor=U};
Op.prototype.shouldPreferLocalResponse=function(S){return S.browseId==="FEdownloads"||S.browseId==="FEsmart_downloads"&&_.y("kevlar_modern_downloads_page")?!0:!1};
Op.prototype.localInnertubeResponse=function(S){var p=this;return _.T(function(U){return S.browseId==="FEdownloads"?_.y("kevlar_modern_downloads_page")?U.return(BNq(p)):U.return(qXo(p)):S.browseId==="FEsmart_downloads"&&_.y("kevlar_modern_downloads_page")?U.return(AeE(p)):U.return(Promise.reject(Error("nj")))})};
Op.prototype.canProvideFallbackResponse=function(){return!0};
Op.prototype.localFallbackInnertubeResponse=function(S){var p=this,U,Y,L;return _.T(function(I){switch(I.nextAddress){case 1:return _.k(I,p.JSC$16297_persistentStorePromiseAccessor(),2);case 2:U=I.yieldResult;if(S.browseId!=="SPaccount_downloads"||!U){I.jumpTo(3);break}return _.k(I,VUq(U),4);case 4:if(Y=I.yieldResult)return I.return(_.Y1(Y));case 3:return S.browseId==="FEwhat_to_watch"?I.return(twA(p)):(L=_.y("web_offline_continuation_automatic_retry")||_.y("web_offline_continuation_retry_button"))&&
S.continuation?I.return(ceq(p)):I.return(SlA(p))}})};
var twA=function(S){var p;return _.T(function(U){if(U.nextAddress==1)return _.k(U,S.JSC$16297_upliftPromise,2);p=_.che(S.store.getState().entities);return p.length?U.return(pwT(S,p)):U.return(SlA(S))})},qXo=function(S){var p,U;
return _.T(function(Y){if(Y.nextAddress==1)return _.k(Y,S.JSC$16297_upliftPromise,2);if(Y.nextAddress!=3)return p=UtA([{offlineItemSectionRenderer:{}}]),_.k(Y,Ylt(S,p),3);U=Y.yieldResult;U.onResponseReceivedActions=[KJ("REFRESH_DOWNLOADS")];return Y.return(U)})},BNq=function(S){var p,U,Y,L,I,V,W,O,D,z,Q,J,K;
return _.T(function(G){if(G.nextAddress==1)return _.k(G,S.JSC$16297_upliftPromise,2);if(G.nextAddress!=3)return p=S.store.getState(),U=p.entities,Y=_.j4(U),L=_.rt(U),I=_.PBq(p),V=_.Xje(p),W=_.ZQr(p),O=_.YOe(U),D=_.nK(Y),z=_.Gf(U),Q={twoColumnBrowseResultsRenderer:{tabs:[{tabRenderer:{selected:!0,content:{richGridRenderer:Object.assign({},_.aZe(Y,L,O,I,V,D,z,W),{entitySelectorType:"RICH_GRID_ENTITY_SELECTOR_TYPE_DOWNLOADS"})}}}]}},J=_.Oh("DOWNLOADS",void 0,"Downloads"),_.k(G,LEi(S,Q,J),3);K=G.yieldResult;
K.onResponseReceivedActions=[KJ("REFRESH_DOWNLOADS")];return G.return(K)})},AeE=function(S){var p,U,Y,L,I,V,W,O,D;
return _.T(function(z){if(z.nextAddress==1)return _.k(z,S.JSC$16297_upliftPromise,2);if(z.nextAddress!=3)return p=S.store.getState(),U=p.entities,Y=_.j4(U),L=_.nK(Y),I=_.Gf(U),V={twoColumnBrowseResultsRenderer:{tabs:[{tabRenderer:{selected:!0,content:{richGridRenderer:Object.assign({},_.C_w(Y),{entitySelectorType:"RICH_GRID_ENTITY_SELECTOR_TYPE_SMART_DOWNLOADS"})}}}]}},W=_.Oh("SMART_DOWNLOADS",void 0,"Smart downloads"),O=wue(L,I),_.k(z,LEi(S,V,W,O),3);D=z.yieldResult;D.onResponseReceivedActions=[KJ("REFRESH_DOWNLOADS")];
return z.return(D)})},SlA=function(S){var p,U;
return _.T(function(Y){if(Y.nextAddress==1)return _.k(Y,Up(S.JSC$16297_upliftPromise,S.store),2);p=Y.yieldResult;U=UtA([Lde(p)]);return Y.return(Ylt(S,U))})},ceq=function(S){var p,U,Y,L;
return _.T(function(I){if(I.nextAddress==1)return p={},U=S.store.getState().continuation.continuationCommand,_.Rf(p,_.Zt,U),_.k(I,Up(S.JSC$16297_upliftPromise,S.store,p,"BACKGROUND_PROMO_STYLE_TYPE_ADAPTIVE_FULL_HEIGHT"),2);Y=I.yieldResult;L={};_.Rf(L,_.BIH,{continuationItems:[{richSectionRenderer:{content:{backgroundPromoRenderer:Y}}}],targetId:"browse-feedFEwhat_to_watch"});return I.return({responseContext:{},onResponseReceivedActions:[L]})})},UtA=function(S){return{twoColumnBrowseResultsRenderer:{tabs:[{tabRenderer:{selected:!0,
content:{sectionListRenderer:{contents:S}}}}]}}},pwT=function(S,p){var U,Y;
return _.T(function(L){var I={contents:bO(p)};U=I&&I.contents?I:{};_.y("kevlar_modern_downloads_page")&&(U=Object.assign({},_.xeN(p),{entitySelectorType:"RICH_GRID_ENTITY_SELECTOR_TYPE_HOME_DOWNLOADS"}));Y={twoColumnBrowseResultsRenderer:{tabs:[{tabRenderer:{selected:!0,content:{richGridRenderer:U}}}]}};return L.return(Ylt(S,Y))})},Ylt=function(S,p){var U,Y;
return _.T(function(L){if(L.nextAddress==1)return _.k(L,S.JSC$16297_persistentStorePromiseAccessor(),2);if(L.nextAddress!=3)return U=L.yieldResult,_.k(L,L4(U),3);Y=L.yieldResult;return L.return({responseContext:{},contents:p,topbar:Y})})},LEi=function(S,p,U,Y){var L,I;
return _.T(function(V){if(V.nextAddress==1)return _.k(V,S.JSC$16297_persistentStorePromiseAccessor(),2);if(V.nextAddress!=3)return L=V.yieldResult,_.k(V,L4(L),3);I=V.yieldResult;var W=V.return;var O=Y;O=O===void 0?"":O;O={content:{pageHeaderViewModel:{title:{dynamicTextViewModel:{text:{content:U}}},actions:{flexibleActionsViewModel:{actionsRows:[{actions:[{buttonViewModel:{title:_.Oh("SETTINGS",void 0,"Settings"),accessibilityText:_.Oh("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:Bd("SPaccount_downloads","/account_downloads",6827,"WEB_PAGE_TYPE_SETTINGS")},loggingDirectives:{clientVeSpec:{uiType:21412}}}}]}]}},metadata:{contentMetadataViewModel:{metadataRows:[{metadataParts:[{text:{content:O}}]}]}},rendererContext:{loggingContext:{loggingDirectives:{clientVeSpec:{uiType:176034}}}}}},pageTitle:U};
return W.call(V,{responseContext:{},contents:p,topbar:I,header:{pageHeaderRenderer:O}})})};var MQt=function(){this.moduleRegistry={};this.fetchCount=0};
MQt.prototype.isFetching=function(){return this.fetchCount>0};
var gI=function(S,p){S.moduleRegistry[p.toString()]={asyncId:p,isFetching:!1};return S};
MQt.prototype.JSC$16308_loadModules=function(){for(var S=this,p=new Map,U=[],Y=_.d(_.jO.apply(0,arguments)),L=Y.next();!L.done;L=Y.next()){L=L.value;var I=this.moduleRegistry[L];I?I.resolver?p.set(L,I.resolver):(I.resolver=new _.MI,p.set(L,I.resolver),U.push(I.asyncId),I.isFetching=!0):(I=new _.MI,p.set(L,I),I.resolve(void 0))}U.length&&(this.fetchCount+=1,_.zB(_.A4.getMultipleAsync.apply(_.A4,_.jo(U)).then(function(V){for(var W=0;W<U.length;W++){var O=V[W],D=S.moduleRegistry[U[W].toString()];D.isFetching=
!1;D.resolver.resolve(O)}}).catch(function(V){for(var W=_.d(U),O=W.next();!O.done;O=W.next()){O=O.value;
var D=S.moduleRegistry[O.toString()];D.resolver=void 0;D.isFetching=!1;p.get(O.toString()).reject(V)}}),function(){--S.fetchCount}));
return Promise.all([].concat(_.jo(p.values())).map(function(V){return V.promise}))};_.uG=new _.$g("MODULE_REGISTRY_TOKEN");var Id5={},dts=(Id5.rendered={priority:0,callback:function(S){a:{var p=void 0;try{var U;b:{if(_.pLw()){var Y=_.Q9G(_.nA()+"::pom");if(Y){var L=new Qa(Y);break b}}L=void 0}var I=(U=L)==null?void 0:U.get("role_text");if(!I)break a;p={updatePermissionRoleCommand:{renderer:{permissionRoleBottomBarRenderer:{status:{runs:[{text:I}]}}}}}}catch(O){}p&&S.injector.resolve(_.cQ).resolveCommand(p)}try{var V=window.sessionStorage.getItem("POM_ACK_FEEDBACK_ENDPOINT");if(V){var W=JSON.parse(V);window.sessionStorage.removeItem("POM_ACK_FEEDBACK_ENDPOINT");
W&&S.injector.resolve(_.cQ).resolveCommand(W)}}catch(O){}}},Id5);var VQP,Tmi={},WEY=(Tmi.initialized={priority:10,callback:function(){VQP=K4()}},Tmi.rendering={callback:function(S){var p;
return _.T(function(U){if(U.nextAddress==1)return _.k(U,VQP,2);p=U.yieldResult;if(!p.endpoint)throw Error("pj`"+_.UX.location.href);GU(S,p);_.OV(U)})}},Tmi);var Ocq={messageWeights:[{messageRegExp:/.*(window.customElements|HTMLTemplateElement).* is undefined/,weight:500},{messageRegExp:/.*(protonpass).*/,weight:0},{messageRegExp:/.*property '(configurable|polyfillWrapFlushCallback)'.*/,weight:500},{messageRegExp:/.*__shady_(native_addEventListener|getRootNode).*/,weight:500}].concat(_.jo(_.y("web_pip_minimize_breakages")?[{messageRegExp:/.*__shady_dispatchEvent.*/,weight:0}]:[]),[{messageRegExp:/ytsignals missing/,weight:500},{messageRegExp:/MutationObserver is not defined/,
weight:100},{messageRegExp:/Cannot call 'patch'/,weight:500},{messageRegExp:/ShadyDOM.patch is not a function/,weight:500},{messageRegExp:/Illegal invocation/,weight:500},{messageRegExp:/no such interface supported/,weight:500},{messageRegExp:/play.*request was interrupted/,weight:500},{messageRegExp:/Failed to .* ServiceWorker.*/,weight:500},{messageRegExp:/Cannot call 'onIdle'/,weight:500},{messageRegExp:/Failed to sanitize attribute of <div>: <div style="--nx:82;">/,weight:500},{messageRegExp:/(DOMPurify|vid_mate_check) is not defined/,
weight:0},{messageRegExp:/A network error occurred/,weight:500},{messageRegExp:/Ticking CPT when CPT already ticked/,weight:100},{messageRegExp:/Unexpected end of .*(input|data)/,weight:500},{messageRegExp:/JSON .* unexpected/,weight:500},{messageRegExp:/Unexpected token </,weight:500},{messageRegExp:/^undefined$/,weight:500},{messageRegExp:/The YouTube player is not attached to the DOM/,weight:500},{messageRegExp:/Malformed continuation/,weight:500},{messageRegExp:/Offset is outside the bounds of the DataView/,
weight:500},{messageRegExp:/Cannot call 'push'/,weight:0},{messageRegExp:/.*push is not a function/,weight:0},{messageRegExp:/.*\.find is not a function/,weight:0},{messageRegExp:/Cannot redefine property: BetterJsPop/,weight:0},{messageRegExp:/cdn.paddle.com/,weight:0},{messageRegExp:/^network error$/,weight:0},{messageRegExp:/Cannot read property 'snippet'.*/,weight:0},{messageRegExp:/Cannot read property 'insertBefore'.*/,weight:0},{messageRegExp:/The play method is not allowed by the user agent or the platform in the current context, possibly because the user denied permission./,
weight:0},{messageRegExp:/Unhandled action/,weight:100},{messageRegExp:/UrlEndpoint should not be used for same origin navigations. Use a better typed endpoint instead./,weight:100},{messageRegExp:/VisibilityLogger called before newScreen/,weight:1E3},{messageRegExp:/BL:ULB/,weight:500},{messageRegExp:/Failed to retrieve emoji manager initial JSON data/,weight:100},{messageRegExp:/Endpoint supplied is invalid/,weight:100},{messageRegExp:/Cannot read property 'polyfillWrapFlushCallback'.*/,weight:500},
{messageRegExp:/unblocked44.ml.*/,weight:0},{messageRegExp:/Failed to fetch/,weight:500},{messageRegExp:/.*API fetch failed.*/,weight:1E3},{messageRegExp:/No RequestBuilder for endpoint/,weight:100},{messageRegExp:/.*Failed to initialize Tango client in CommentsInvalidation.*/,weight:100},{messageRegExp:/.*redefine.*property.*adPlacements/,weight:1E3},{messageRegExp:/ownerObj.base is undefined/,weight:1E3},{messageRegExp:/History popstate has no state/,weight:500},{messageRegExp:/ReadableStream uploading is not supported/,
weight:1E3},{messageRegExp:/bad trailing UTF-8 byte .* doesn't match the pattern 0b10xxxxxx/,weight:1E3},{messageRegExp:/b172965563/,weight:1E3},{messageRegExp:/UrlEndpoint should not be used for same origin navigations/,weight:1E3},{messageRegExp:/Fetching RunAttestationCommand returned falsy/,weight:100},{messageRegExp:/WEBCHANNEL_NETWORK_ERROR/,weight:100},{messageRegExp:/urlForEndpoint used on client endpoint/,weight:1E3},{messageRegExp:/InnerTubeTransportService is already initialized/,weight:100},
{messageRegExp:/Cannot redefine property: userAgent/,weight:500},{messageRegExp:/(ResizeObserver loop limit exceeded)|(ResizeObserver loop completed with undelivered notifications)/,weight:500},{messageRegExp:/undefined is not an object \(evaluating 'this.manager'\).*/,weight:500},{messageRegExp:/_0x22d63b is not defined/,weight:500},{messageRegExp:/Cannot call '1'/,weight:500},{messageRegExp:/.*Wanteeed.*/,weight:0},{messageRegExp:/.*WtdRoot*/,weight:0},{messageRegExp:/.*Constructing wtd-root:*/,
weight:0},{messageRegExp:/.*WtdDiv.*/,weight:0},{messageRegExp:/.*Failed to execute 'appendChild'.*/,weight:0},{messageRegExp:/.*TypeError: a is not a constructor'.*/,weight:0},{messageRegExp:/.*Readwise.*/,weight:0},{messageRegExp:/.*Form is either loading or already opened*/,weight:0},{messageRegExp:/.*wtd-div.*/,weight:0},{messageRegExp:/.*Blocked a frame with origin "https:\/\/www.youtube.com" from accessing a cross-origin frame.*/,weight:0},{messageRegExp:/.*disguiseToken.*/,weight:0},{messageRegExp:/Identifier 'YTNonstop' has already been declared/,
weight:1E3},{messageRegExp:/Cannot read properties of undefined (reading 'setTimeout')/,weight:0},{messageRegExp:/undefined is not an object \(evaluating 'this.\w+.setTimeout'\)/,weight:0},{messageRegExp:/BWB:Timeout/,weight:0},{messageRegExp:/NWA/,weight:0},{messageRegExp:/This document requires '((TrustedHTML)|(TrustedScript)|(TrustedScriptURL))' assignment/,weight:0},{messageRegExp:/The constructed element must not have any attributes/,weight:100},{messageRegExp:/runtime.browser/,weight:500},{messageRegExp:/Cannot call 'registerMenuCommand'/,
weight:500},{messageRegExp:/__data is undefined/,weight:0},{messageRegExp:/.*ddg-ctl-placeholder-blocked*/,weight:1E3}]),callbackWeights:[{callback:function(S){var p=S.stack;if(p.includes("chrome://")||p.includes("chrome-extension://")||S.message.includes("chrome-extension://")||p.includes("moz-extension://")||p.includes("local.adguard.org")||p.includes("auctioneer3.50million.club")||p.includes("youtubedownloader")||p.includes("youtube_home_page")||p.includes("is_youtube_video_no_longer_available")||
p.includes("switchScreenSizeHack")||p.includes("yt_main_big_banner.js")||p.includes("YouTubeCenter.js")||p.includes("/mytube.js")||p.includes("JSON.parseWrapper")||p.includes("/inj_js/common.js")||p.includes("firebug-lite")||p.includes(".repl.co/")||p.includes("linkfix")||p.includes("playAfterAd")||S.message.includes("Access is denied for this document")&&p.includes("<anonymous>")||S.fileName==="user-script"||S.message.includes("cannot be created in a document with origin 'https://www.youtube.com' and URL 'about:blank'")&&
p.includes("<anonymous>"))return!0;if(p.includes("https://www.youtube.com"))return!1;S=p.split("\n");if(!S.length)return!1;if(S.length<=3&&p.includes("s.onloadeddata"))return!0;p=0;for(var U=_.d(S),Y=U.next();!Y.done;Y=U.next())Y=Y.value,(Y.includes("https://")||Y.includes("http://"))&&p++;return p/S.length>.95},
weight:0},{callback:function(S){return S.message==="Unknown Error"&&S.name.indexOf("NS_")===0},
weight:100},{callback:function(S){if(!_.cO)return!1;var p=S.message.indexOf("\uba54\ubaa8\ub9ac \ub9ac\uc18c\uc2a4\uac00 \ubd80\uc871\ud558\uae30 \ub54c\ubb38\uc5d0 \uc774 \uc791\uc5c5\uc744 \uc644\ub8cc\ud560")===0||S.message.includes("available to complete this operation"),U=S.stack.includes("webcomponents")&&S.message==="Object doesn't support this action";S=S.message.includes("object that does not implement interface Element");return p||U||S},
weight:0},{callback:function(S){return S.message==="Illegal invocation"&&navigator.userAgent.includes("Trident")&&navigator.vendor==="Google Inc."},
weight:0},{callback:function(S){return S.message==="Operation is not supported"&&(S.stack.match(/textinputassistant/g)||[]).length>=5},
weight:500},{callback:function(S){return S.stack.includes("eval code (eval (code:1:1)")||S.stack.includes("Object.my_load [as load] ")},
weight:0},{callback:function(S){return S.message.includes("Permission denied")&&S.stack.includes("this.domHandler")?!0:S.name.includes("TypeError")&&S.stack.includes("/www-searchbox")&&navigator.userAgent.includes("Trident")},
weight:500},{callback:function(S){if(!S.stack)return!1;var p=S.stack.trim().split("\n");p.length&&p[0].endsWith("Error: "+S.message)&&p.shift();p.length&&p[p.length-1].includes("at window.onerror (")&&p.pop();if(!p.length)return!0;if(S.message==="Script error.")return p[0].includes("www.youtube.com")||p.length>=2&&p[0].startsWith("at new")&&p[1].startsWith("at window.onerror");if(S.message==="Unexpected token")return!0;S=_.d(p);for(p=S.next();!p.done;p=S.next())if(p=p.value,!(p.includes("<anonymous>")||
p.startsWith("load@")||p.startsWith("global code@")||p.startsWith("@https://")))return!1;return!0},
weight:500},{callback:function(S){return S.message==="Cannot read property 'experiments'"&&S.stack.includes("/s/player/")},
weight:500},{callback:function(S){return S.message.includes("must not have attributes")&&navigator.userAgent.includes("Vivaldi")},
weight:500},{callback:function(S){return S.stack.includes("/embed.js")?(S.params&&S.params&&(S.params.name="56"),!0):!1},
weight:1},{callback:function(){if(_.y("use_error_suppression"))var S=_.g7("SUPPRESS_CLIENT_ERRORS",!1);else{if(S=_.LT)S=/Chrome\/(\d+)/.exec(_.zG()),S=(S?parseFloat(S[1]):NaN)>=66;S=!(S||_.YC&&_.Ux(65)||_.gE&&_.Ux(12.1)||$U&&_.Ux(79))}return S},
weight:500}]};var kjA={},HcE=(kjA.initialized={priority:10,callback:function(S){S.injector.addProvider({provide:qNw,useValue:S.root});S.injector.addProvider({provide:tTl,useValue:Hze});S.injector.addProvider({provide:cfP,useValue:Ocq});var p={};S.injector.addProvider((p.provide=Sed,p.useFactory=function(U,Y){return function(){jCE(U,Y)}},p[vF]=[tTl,
cfP],p));S.injector.addProvider({provide:V6,useClass:V6})}},kjA);var DtT={},zeJ=(DtT.initialized={priority:3,callback:function(){var S;if(S=TnG()){S=S.replace("/",".");var p=_.D9();p.set("tz",S);p.save();S=!0}else S=!1;S||(S=_.D9(),S.set("utco",-Math.floor((new Date).getTimezoneOffset())),S.save())}},DtT);var QPo={},nmn=(QPo.initialized={priority:10,callback:function(S){S.injector.resolve(V6).start();S=_.aS();var p=_.ub("IS_HOMEPAGE_COLD")&&"MAIN_APP_WEB_PAGE_TYPE_BROWSE"||_.ub("IS_WATCH_PAGE_COLD")&&"MAIN_APP_WEB_PAGE_TYPE_WATCH"||_.ub("IS_RESULTS_PAGE_COLD")&&"MAIN_APP_WEB_PAGE_TYPE_SEARCH"||_.ub("IS_SHORTS_PAGE_COLD")&&"MAIN_APP_WEB_PAGE_TYPE_SHORTS"||"MAIN_APP_WEB_PAGE_TYPE_UNKNOWN";_.Vj(_.eBr(),{mainAppWeb:Object.assign({},S,{pageType:p})});_.Vj(u8G(),{mainAppWeb:Object.assign({},S,{pageType:p})});
_.Vj(w3G(),{mainAppWeb:S});_.Vj(lSe(),{mainAppWeb:S});bAP(function(){_.TU(w3G(),"FAILURE");_.TU(lSe(),"FAILURE")});
x4w();EJd();vKG()}},QPo);var JqP={},yqs=(JqP.initialized={priority:10,callback:function(){if(document.readyState==="complete")_.Fg("dl"),_.Pt().processSignal("pcl");else{var S=function(){_.Fg("dl");_.Pt().processSignal("pcl");window.removeEventListener("load",S)};
window.addEventListener("load",S)}}},JqP);var KEn={},bco=(KEn.rendering={priority:0,callback:function(){var S=_.Pt();S.parkOrScheduleJob(function(){S.processSignal("eocs")},10,"eor",5E3)}},KEn);var jPT=function(){};
_.r(jPT,sv);
jPT.prototype.resolveCommand=function(S,p){var U,Y,L,I,V,W,O,D;return _.T(function(z){L=(U=_.b(S,_.eLI))==null?void 0:(Y=U.dialog)==null?void 0:Y.commentReplyDialogRenderer;if(!L)throw new _.y7("No dialog in createCommentReplyDialogEndpoint");V=(I=p.form)==null?void 0:I.event;if(!V)throw new _.y7("Event not passed in when resolving command");W=_.d(V.composedPath());for(O=W.next();!O.done;O=W.next())if(D=O.value,D.tagName==="YTD-COMMENT-ACTION-BUTTONS-RENDERER"||D.tagName==="YTD-COMMENT-ENGAGEMENT-BAR")return D.showReplyDialog(L),z.return();
_.OV(z)})};var k4=function(S){this.pageRequestService=S;this.JSC$16323_prefetchCoordinator=fjI()};
_.r(k4,sv);k4.prototype.resolveCommand=function(S){var p=this,U,Y,L,I;return _.T(function(V){if(V.nextAddress==1){U=_.b(S,kAm);if((Y=U)==null||!Y.taskId)throw Error("qj");L=U.taskId;_.M2(V,2);return _.k(V,_.VHt(p.pageRequestService,S,{},"").then(function(W){if(!W)throw Error("rj");},function(W){throw Error("sj`"+W);
}),4)}if(V.nextAddress!=2)return EGP(p.JSC$16323_prefetchCoordinator,L),_.CA(V,0);
I=_.W4(V);$8(p.JSC$16323_prefetchCoordinator,L,I);_.OV(V)})};
k4[vF]=[yj];var Hp=function(S){this.innertubeTransportService=S};
_.r(Hp,sv);Hp.prototype.resolveCommand=function(S){var p=this,U,Y;return _.T(function(L){U=_.b(S,Dvq);if(U.settingItemIdForClient==="AUTONAV_FOR_SIGN_OUT"||U.settingItemIdForClient==="AUTONAV_FOR_DESKTOP")Y=U.boolValue?2:1,_.og.getInstance().setState(Y,!0,!0);return _.k(L,_.lZ(p.innertubeTransportService,S),0)})};
Hp[vF]=[_.F3];var DT={},rqP=(DT.addToPlaylistEndpoint=Nw(KN),DT.addToToastAction=Nw(bu),DT.adsControlFlowOpportunityReceivedCommand=Nw(pN),DT.captionLanguageSelectActionCommand=Nw(uf),DT.captionPickerEndpoint=Nw(ww),DT.changeMiniAppPlayStateCommand=Nw(bf),DT.changeTimelyActionVisibilityCommand=Nw(Kk),DT.channelCreationFormEndpoint=Nw(DY),DT.clearLocationCommand=Nw(yx),DT.clearUrlParamCommand=Nw(jA),DT.copyLinkCommand=Nw(xT),DT.copyTextEndpoint=Nw(M1),DT.createCommentReplyDialogEndpoint=a0X(jPT),DT.createPlaylistServiceEndpoint=
Nw(EG),DT.dismissDialogEndpoint=Nw(Gn),DT.entityUpdateCommand=Nw(dw),DT.feedbackEndpoint=Nw(We),DT.getAnswerCommand=Nw(iwE),DT.getPaymentsClientTokenCommand=Nw(Gc),DT.getTranscriptEndpoint=Nw(js),DT.googlePaymentBillingCommand=Nw(h0),DT.googlePaymentPurchaseManagerCommand=Nw(RZ),DT.hideEngagementPanelEndpoint=Nw(hJ),DT.insertRichSectionCommand=Nw(Qx),DT.listMutationCommand=Nw(nN),DT.logGtmCommand=Nw(zn),DT.notifyDropdownOptionSelectedCommand=Nw(rw),DT.openAdAllowlistInstructionCommand=Nw(_.UG),DT.openOnePickAddVideoModalCommand=
Nw(mr),DT.persistSubscriptionsDisplayPreferencesCommand=Nw(q1),DT.pingingEndpoint=Nw(LN),DT.playlistEditEndpoint=Nw(ve),DT.playlistVotingRefreshPopupCommand=Nw($T),DT.refreshPanelEndpoint=Nw(RG),DT.saveImageToDeviceEndpoint=Nw(IG),DT.scrollToSectionEndpoint=a0X(NpH),DT.seekToVideoTimestampCommand=Nw(lf),DT.selectCountryCommand=Nw(AJ),DT.setCookieCommand=Nw(tJ),DT.setLocalStorageCommand=Nw(zc),DT.setPrefStorageEntryCommand=Nw(Ss),DT.setSettingEndpoint=Nw(Hp),DT.sfvAudioItemPlaybackCommand=Nw(aG),DT.shareImageCommand=
Nw(pk),DT.sharingProviderDataCommand=Nw(UN),DT.showCaptionLanguageSelectActionCommand=Nw(fN),DT.showDialogCommand=Nw(Pe),DT.showEngagementPanelEndpoint=Nw(ZY),DT.showSheetCommand=Nw(sG),DT.showSnackbarCommand=Nw(DA),DT.showTransientPlayerScrimOverlayCommand=Nw(CN),DT.submitFormWithValidationFlowCommand=Nw(He),DT.talkToRecsDeselectCommand=Nw(QJ),DT.talkToRecsNextCommand=Nw(nk),DT.talkToRecsSelectCommand=Nw(J0),DT.talkToRecsUpdateTextCommand=Nw(yJ),DT.toggleEngagementPanelCommand=Nw(eA),DT.undoFeedbackEndpoint=
Nw(kT),DT.updateEngagementPanelContentCommand=Nw(gw),DT.updateUrlParamCommand=Nw(rT),DT.verifyCommand=Nw(DY),DT.webNativeShareCommand=Nw(YF),DT.webSubmitFormCommand=Nw(N1),DT.ACK_PLAYABLES_3P_DATA_CONSENT=Nw(Lk),DT.CANCEL_NAVIGATION=Nw(Mj),DT.COPY_SHARE_URL=Nw(IZ),DT.MINI_APP_EXIT_DIALOG_SEEN=Nw(VJ),DT.MINI_APP_OPEN_URL=Nw(dT),DT.REQUEST_MINI_APP_FULLSCREEN=Nw(Tc),DT.RESUME_NAVIGATION=Nw(W9),DT.SHARE_PLAYABLE_WITH_HIGH_SCORE=Nw(ON),DT.TELL_US_WHY=Nw(OG),DT);
_.y("web_enable_prefetching_videos_on_home")&&(rqP.prefetchWatchCommand=Nw(k4),rqP.registerTasksCommand=Nw(NL));_.y("enable_share_panel_navigation_logging_fix_on_web")&&(rqP.shareEntityServiceEndpoint=Nw(FH));var zZH=Object.assign({},rqP);var Gjs={},heT=(Gjs.initialized={priority:10,callback:iMe},Gjs);var Ren={},FEP=(Ren.initialized={callback:function(S){var p={},U={};UMX().install((p.document_disposed={callback:function(){_.y("finalize_all_timelines")?UVu():GI();j_w("FOREGROUND_HEARTBEAT_TRIGGER_ON_BACKGROUND");_.HFk();var Y=S.injector.resolve(V6);Y.intervalId!==void 0&&(Y.intervalId&&_.PA.cancelJob(Y.intervalId),Y.intervalId=void 0,--Y.currentPartitionIndex,Y=aAl(Y),Y>0&&ptm({mainAppWeb:_.aS(),survivalSli:{partitionMinute:Y,survivalStatus:"SURVIVAL_STATUS_TYPE_CENSORED"}}));$ct(uB);we!=null&&
we.flush();Sv&&Sv.snapshotAndFlush();Y=_.d(WBH.values());for(var L=Y.next();!L.done;L=Y.next())L.value.snapshotAndFlush()}},p),(U.flush_logs={callback:function(){_.Fr()}},U))}},Ren);var XwX={},Pto=(XwX.rendered={priority:0,callback:function(){var S=new Oum;S.increment("STARTED");if(_.g7("LOGGED_IN")&&_.g7("SERVER_VERSION")!=="test"&&_.g7("SERVER_VERSION")!=="dev"&&!qeG()&&!Buw()){S.increment("EXECUTING");var p=document.createElement("iframe");p.style.display="none";_.yir(p,2,_.JA("https://accounts.youtube.com/RotateCookiesPage?origin=https://www.youtube.com&yt_pid="+_.g7("INNERTUBE_CONTEXT_CLIENT_NAME")));document.body&&document.body.appendChild(p);S.increment("DONE")}}},XwX);var Zci={},sP5=(Zci.rendered={callback:function(){fjI().resume()}},Zci);var eeT={acknowledgeChannelTouStrikeCommand:nH(UA),addToPlaylistServiceEndpoint:nH(Ib),addToPlaylistEndpoint:nH(Ib),addUpcomingEventReminderEndpoint:nH(Gm),browseEndpoint:nH(KDd),channelCreationFormEndpoint:nH(B9),channelCreationServiceEndpoint:nH(qj),claimLegacyYoutubeChannelEndpoint:nH(wT),clearSearchHistoryEndpoint:nH(QZ),clearWatchHistoryEndpoint:nH(nF),commerceActionCommand:JB(Fo),createBackstagePostEndpoint:nH(P9),createBroadcastCommand:nH(hN),createCommentEndpoint:nH(v9),createCommentReplyEndpoint:nH(oZ),
createLiveChatPollEndpoint:nH(RQ),createPlaylistServiceEndpoint:nH(d4),crossAccountChannelTransferEndpoint:nH(KF),deleteLiveChatMessageCommand:nH(Fd),deletePlaylistEndpoint:nH(Vi),deleteVideoEndpoint:nH(r4),dismissalEndpoint:nH(YD),feedbackEndpoint:nH(LF),flagEndpoint:nH(D_),getAccountSwitcherEndpoint:nH(yZ),verifyCommand:nH(Xm),getAccountsListInnertubeEndpoint:nH(j5),getCommentsFromInboxCommand:nH(mI),getDownloadActionCommand:nH(qM),getFlowCommand:JB(zm),getKidsBlocklistPickerCommand:nH(zo),getNotificationMenuEndpoint:nH(rft),
getPaymentInstrumentsParamsCommand:nH(g4),getPaymentsClientTokenCommand:JB(Fo),getPdgBuyFlowCommand:nH(L5),getReportFormEndpoint:nH(Qi),getSearchInVideoCommand:nH(yi),getAnswerCommand:nH(JV),getSurveyCommand:nH(jZ),getTranscriptEndpoint:nH(hV),getPostVideoPreviewEndpoint:nH(sN),decorateMessageEndpoint:nH(ZA),likeEndpoint:nH(A0),liveChatActionEndpoint:nH(sA),liveChatEndpoint:nH(Zv),liveChatItemContextMenuEndpoint:nH(Xd),liveChatPurchaseMessageEndpoint:nH(e5),liveChatReplayEndpoint:nH(P0),manageLiveChatUserEndpoint:nH(ur),
metadataUpdateCommand:nH(xD),moderateLiveChatEndpoint:nH(wv),modifyChannelNotificationPreferenceEndpoint:nH(ir),notificationOptOutEndpoint:nH(NM),openSuperStickerBuyFlowCommand:nH(gv),performCommentActionEndpoint:nH(xF),playlistEditEndpoint:nH(Ws),playlistEditorEndpoint:nH(To),profileCardCommand:nH(rv),recordNotificationInteractionsEndpoint:nH(B0),reelWatchEndpoint:nH(Oy),refreshPanelEndpoint:nH(tN),removeUpcomingEventReminderEndpoint:nH(lr),resolveLocationCommand:nH(CF),revealBusinessEmailCommand:nH(lu),
searchEndpoint:nH(_.G_m),sendLiveChatMessageEndpoint:nH(aQ),sendLiveChatVoteEndpoint:nH(fF),setSettingEndpoint:nH(t0),shareEntityServiceEndpoint:JB(pF),sharingProviderDataCommand:nH(bD),showEngagementPanelEndpoint:nH(c0),showMoreDrawerCommand:nH(p5),showSheetCommand:nH(Uy),showDialogCommand:nH(SZ),subscribeEndpoint:nH(c9),transcriptSubmitCaptionCorrectionCommand:nH(Go),undoFeedbackEndpoint:nH(IQ),unsubscribeEndpoint:nH(S5),updateBackstagePostEndpoint:nH(gT),updateCommentEndpoint:nH(iu),updateCommentReplyEndpoint:nH($F),
updateCommentsSettingsEndpoint:nH(Nj),updateCreatorChannelInnertubeCommand:nH(fk),updateKidsBlacklistEndpoint:nH(n5),updateEngagementPanelContentCommand:nH(Y8),updatePdgFeatureEnablementCommand:nH(ML),updatedMetadataEndpoint:nH(EA),validateChannelHandleCommand:nH(Ck),updateChannelPageSettingsEndpoint:nH(aZ),verifyAgeEndpoint:nH(Dv),watchEndpoint:JB(MH),whitelistEditEndpoint:nH(Rb),ypcCancelRecurrenceEndpoint:nH(Xo),ypcCompleteTransactionEndpoint:nH(Ps),ypcFixInstrumentEndpoint:nH(sy),ypcGetCartEndpoint:nH(Z_),
ypcGetOffersEndpoint:nH(eZ),ypcHandleTransactionEndpoint:JB(uD),ypcLogWalletAnalyticDataEndpoint:nH(w4),ypcOffersEndpoint:nH(lD),ypcPauseSubscriptionCommand:nH(ab),ypcRedeemCodeEndpoint:nH(f5),ypcResumeSubscriptionCommand:nH(C5),ypcUpdateFopEndpoint:nH(sy)},zt={},gm5=(zt.GET_ACCOUNT_MENU=nH(br),zt.GET_NOTIFICATIONS_MENU=nH(jiQ),zt.GET_NOTIFICATIONS_INBOX=nH(oQ),zt.GET_UNSEEN_NOTIFICATION_COUNT=nH($D),zt.GET_USER_MENTION_SUGGESTIONS=nH(es),zt.LOAD_GUIDE=nH(bGP),zt.SUBMIT_FEEDBACK=nH(MM),zt),QK={},
uIn=(QK.CONTINUATION_REQUEST_TYPE_BROWSE=nH(uu),QK.CONTINUATION_REQUEST_TYPE_SEARCH=nH(K5),QK.CONTINUATION_REQUEST_TYPE_WATCH_NEXT=nH(dk),QK.CONTINUATION_REQUEST_TYPE_ACCOUNTS_LIST=nH(JN),QK.CONTINUATION_REQUEST_TYPE_COMMENTS_NOTIFICATION_MENU=nH(m9),QK.CONTINUATION_REQUEST_TYPE_COMMENT_REPLIES=nH(EN),QK.CONTINUATION_REQUEST_TYPE_REEL_WATCH_SEQUENCE=nH(Hs),QK.CONTINUATION_REQUEST_TYPE_GET_PANEL=nH(AN),QK),wwo={player:JB(MH),watchNext:nH(Il)},ldq={player:JB(MH),reelItemWatch:nH(Oy),reelWatchSequence:nH(k8)},
ads={watchEndpoint:JB(Va)},fdq={commandEndpointMap:eeT,signalEndpointMap:gm5,continuationEndpointMap:uIn,watchEndpointMap:wwo,reelWatchEndpointMap:ldq,streamingEndpointMap:ads};var CtL,xtA,EmJ,mtJ={disableAllTransitions:(xtA=(CtL=window).matchMedia)==null?void 0:(EmJ=xtA.call(CtL,"(prefers-reduced-motion: reduce)"))==null?void 0:EmJ.matches,transitionConfigs:new Map([["slide",{defaultViewTransitionOptions:{shouldWrap:!0,skipTransitionTimeoutMs:500}}],["zoom",{defaultViewTransitionOptions:{shouldWrap:!0,skipTransitionTimeoutMs:500}}]])};var omA=new _.$g("VIEW_TRANSITION_MANAGER_CONFIG_TOKEN");_.nO=new _.$g("VIEW_TRANSITION_MANAGER_TOKEN");var vmd=function(S){this.config=S;this.transitionTasksMap=new Map;S=_.d(S.transitionConfigs);for(var p=S.next();!p.done;p=S.next())p=_.d(p.value).next().value,this.transitionTasksMap.set(p,[])};
vmd[vF]=[omA];var NDq={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 qUe=["videoPrimaryInfoRenderer","title"],Apw=["videoSecondaryInfoRenderer","owner","videoOwnerRenderer","title"];var $tA;$tA=[{metadataBadgeRenderer:{icon:{iconType:"PREMIUM_STANDALONE_CAIRO"}}}];_.ici=_.$k(function(S){S=_.vT(S,{data:void 0,playlistData:void 0,expanded:!1,onExpandClick:void 0,isReadyToResume:!1});var p=S.data,U=S.playlistData,Y=S.expanded,L=S.onExpandClick,I=S.isReadyToResume,V=function(){var z;return!((z=U())==null||!z.contents)},W=function(){var z=U();
return z&&z.totalVideos&&z.currentIndex!==void 0?z.currentIndex+1+" / "+z.totalVideos:""};
S=_.kL(function(){_.Jz(_.tW().resolve(_.eC));return!1});
var O=_.kL(function(){V()&&L&&L()}),D={};
return _.H("ytd-miniplayer-info-bar",{class:_.VD("ytdMiniplayerInfoBarHost",(D.ytdMiniplayerInfoBarHasPlaylistData=V,D)),"on:click":O},_.H("div",{class:"ytdMiniplayerInfoBarContent"},_.H("h1",{class:"ytdMiniplayerInfoBarTitle","on:click":S},_.H(_.i6,{text:function(){var z=p();var Q=U();if(Q==null?0:Q.contents){var J;z=(J=_.c4w(Q))==null?void 0:J.title}else z=z==null?void 0:z.miniplayerTitle;return cpr(z)},
noEndpoints:!0,ellipsisTruncate:!0})),_.H("div",{class:"ytdMiniplayerInfoBarSubtitle"},_.H(_.n,{cond:I,then:function(){return _.H(Bvc,{className:"ytdMiniplayerInfoBarPremiumBadge",badges:$tA})}}),_.H("h1",null,_.H(_.i6,{className:"ytdMiniplayerInfoBarSubtitleText",
text:function(){var z=p();var Q=U();z=I()?{simpleText:_.Oh("CONTINUE_WATCHING",void 0,"Continue watching")}:(Q==null?0:Q.contents)?Q.titleText:z==null?void 0:z.miniplayerSubtitle;return cpr(z)},
noEndpoints:!0,ellipsisTruncate:!0})),_.H(_.n,{cond:function(){return!!W()&&!I()},
then:function(){return _.H("div",{class:"ytdMiniplayerInfoBarPlaylistIndex"},_.H("span",{class:"ytdMiniplayerInfoBarPlaylistIndexTextDivider"},"\u2022"),_.H("span",null,W))}}))),_.H(_.n,{cond:V,
then:function(){return _.H("div",{class:"ytdMiniplayerInfoBarExpand"},_.H(BG,{data:function(){return{style:"mono",type:"text",state:"active",iconPosition:"icon-only",size:"M",onTap:function(z){L&&(L(),z.stopPropagation())}}},
iconName:function(){return Y()?"miniplayer:keyboard-arrow-down":"miniplayer:keyboard-arrow-up"}}))}}))},"se");var NmE;NmE=_.$k(function(S){return _.H("div",{class:"ytdMiniplayerPlayerContainerDisabledClose"},_.H(BG,{data:function(){return{style:"overlay-dark",type:"tonal",state:"active",iconPosition:"icon-only",size:"S",onTap:S.onTap}},
iconName:"yt-icons:close"}))},"te");
_.BmL=_.$k(function(S){S=_.vT(S,{playabilityStatus:void 0,isDisabled:!1});var p=S.size,U=S.playabilityStatus,Y=S.isDisabled,L=_.vH();S=_.d(_.kj(void 0,void 0,"bJr0Se"));var I=S.next().value,V=S.next().value;S=_.Xc(_.WI);var W=!1,O=function(){return p().height<=0};
_.R8(function(){var J=p(),K=O(),G=I();G&&!K&&G.setInternalSize(J.width,J.height)});
_.hW(function(){var J,K,G;return _.T(function(X){if(X.nextAddress==1){J=_.tW().resolve(_.eC);K=J.getPlayerElement();if(!J.isMiniplayerActive()||!K||!L.value)return X.return();K.appendTo(L.value);return _.k(X,K.getPlayerPromise(),2)}G=X.yieldResult;G.setSizeStyle(!1,!0);V(G);_.OV(X)})});
_.FG(function(){D()});
_.R8(function(){var J=I();if(J)if(Y()){var K=J.getPlayerState();(W=K===-1||K===1||K===3)&&J.pauseVideo()}else D()});
var D=function(){if(W){W=!1;var J;(J=I())==null||J.playVideo()}},z=_.kL(function(){_.Jz(_.tW().resolve(_.eC))}),Q={};
return _.H("ytd-miniplayer-player-container",{class:_.VD("ytdMiniplayerPlayerContainerHost",(Q.ytdMiniplayerPlayerContainerHidden=O,Q.ytdMiniplayerPlayerContainerHostShortsPip=S,Q)),style:_.zw({width:function(){return p().width+"px"},
height:function(){return p().height+"px"}})},_.H("div",{id:"player-container",
class:"ytdMiniplayerPlayerContainerPlayerContainer",el:L}),_.H(_.n,{cond:function(){return!!U()&&!_.ADu(U())},
then:function(){return _.H(CUm,{className:"ytdMiniplayerPlayerContainerPlayabilityError",compact:!0,data:function(){var J;return((J=U())==null?void 0:J.errorScreen)||null},
status:function(){var J;return((J=U())==null?void 0:J.status)||null}})}}),_.H(_.n,{cond:Y,
then:function(){return _.H("div",{class:"ytdMiniplayerPlayerContainerDisabled","on:click":z},_.H(NmE,{onTap:function(){_.tW().resolve(_.eC).close()}}))}}))},"ue");_.qln=_.$k(function(S){var p=S.toastData;var U=_.vH();S=_.d(_.Dt(function(){return!!p()}));
var Y=S.next().value,L=S.next().value;S=_.d(_.kj(!1,void 0,"xkrBze"));var I=S.next().value,V=S.next().value,W=function(){var z;return _.mA((z=p())==null?void 0:z.data.title)};
_.FM(function(){_.ei.requestAvailability();p()&&L(!1)});
var O,D;_.R8(function(){Y()&&(_.cv(U.value,"iron-announce",{text:p().label+" "+W()}),O&&_.PA.cancelJob(O),O=_.PA.addLowPriorityJob(function(){V(!0)},2500))});
_.R8(function(){I()&&(D&&_.PA.cancelJob(D),D=_.PA.addLowPriorityJob(function(){L(!1);V(!1)},300))});
S={};return _.H("ytd-miniplayer-toast",{el:U,class:_.VD("ytdMiniplayerToastHost",(S.ytdMiniplayerToastOpening=function(){return Y()},S.ytdMiniplayerToastClosing=function(){return I()},S))},_.H(_.n,{cond:function(){var z;
return(z=p())==null?void 0:z.data},
then:function(z){return _.H(UEl,{className:"ytdMiniplayerToastThumbnail",data:z,width:78})}}),_.H("div",{class:"ytdMiniplayerToastInfo"},_.H("div",{class:"ytdMiniplayerToastLabel"},function(){var z;
return(z=p())==null?void 0:z.label}),_.H("div",{class:"ytdMiniplayerToastTitle"},W)))},"ve");var Tge;var Hoq=new Set,kue=null;var zNG=null;var tQd=_.$k(function(S){var p=S.progressState;var U=S.multiMarkersPlayerBarRenderer;var Y=S.progressBarWidth;var L=function(){return yXd(U())},I=function(){return jhd(p())},V=function(){return Y()*(p().playedTime/p().videoDuration)};
return _.H("yt-chaptered-progress-bar-line",{class:"ytChapteredProgressBarHost"},_.H(_.KU,{each:L},function(W,O){return _.H(Aqs,{modifiedProps:I,chapters:L,index:O,playedProgressWidth:V,backgroundGradientPosition:function(){var D=I(),z=L(),Q=O(),J=V();return(D.playedTime-Za(_.b(z[Q],PO)))/D.playedTime*J}})}))},"we"),Aqs=_.$k(function(S){var p=S.modifiedProps;
var U=S.chapters;var Y=S.index;var L=S.playedProgressWidth;var I=S.backgroundGradientPosition;S={};S=_.VD("ytChapteredProgressBarChapteredPlayerBarChapter",(S.ytChapteredProgressBarChapteredPlayerBarChapterIsScrubbing=function(){return V().isScrubbing},S.ytChapteredProgressBarHoveredMacroMarker=function(){return V().scrubberHovering},S.ytChapteredProgressBarChapteredPlayerBarChapterSeen=function(){return V().videoPosition==="seen"},S));
var V=function(){return rXu(p(),U(),Y())},W=function(){var O=p();
var D=U(),z=Y();if(rXu(O,D,z).videoPosition!=="active")O=0;else{var Q=Za(_.b(D[z],PO));O=(O.playedTime-Q)/((Za(_.b(D[z+1],PO))||O.videoDuration)-Q)}return O};
return _.H("div",{class:S,style:_.zw({width:function(){var O=p(),D=U(),z=Y(),Q=_.b(D[z],PO);D=_.b(D[z+1],PO);return(D?Za(D)-Za(Q):O.videoDuration-Za(Q))/O.videoDuration*100+"%"},
"background-color":function(){a:{var O=V();switch(O.videoPosition){case "pending":O=O.scrubberHovering?"white":"rgba(255, 255, 255, 0.35)";break a;case "active":O=O.scrubberHovering?"white":"rgba(255, 255, 255, 0.35)";break a;default:O=""}}return O},
"background-size":function(){return(Guk(V())?L():"")+"px"},
"background-position-x":function(){return(Guk(V())?I():"")+"px"}})},_.H("div",{class:"ytChapteredProgressBarChapteredPlayerBarLoaded",
style:function(){var O=p(),D=U(),z=Y();if(rXu(O,D,z).videoPosition==="seen")var Q=0;else Q=Za(_.b(D[z],PO)),D=Za(_.b(D[z+1],PO))||O.videoDuration,O=O.videoDuration*O.percentLoaded,Q=D<=O?1:Q>=O?0:(O-Q)/(D-Q);return"width: "+Q*100+"%"}}),_.H("div",{class:"ytChapteredProgressBarChapteredPlayerBarFill",
style:_.zw({width:function(){return W()*100+"%"},
"background-size":function(){return(Guk(V(),W())?L():"")+"px"},
"background-position-x":function(){return(Guk(V(),W())?I():"")+"px"}})}))},"xe");var cqJ=function(S,p){p=p===void 0?PKm:p;var U,Y=[],L,I=!1;return function(){var V=_.jO.apply(0,arguments);if(I&&U===this&&p(V,Y))return L;L=S.apply(this,V);I=!0;U=this;Y=V;return L}}(function(S){var p=S.heatMarkers,U=S.minHeightDp===void 0?0:S.minHeightDp,Y=S.maxHeightDp===void 0?60:S.maxHeightDp;
var L=L===void 0?!1:L;var I=1E3/p.length;S=[];S.push({x:0,y:100});for(var V=0;V<p.length;V++){var W=void 0,O=((W=_.b(p[V],OQP))==null?void 0:W.heatMarkerIntensityScoreNormalized)||0;W=(V+.5)*I;O=100-_.F7(O*100,U/321*100,Y/321*100);V!==0||L||S.push({x:0,y:O});S.push({x:W,y:O});V===p.length-1&&S.push({x:1E3,y:O})}S.push({x:1E3,y:100});p="";for(U=0;U<S.length;U++)L=S[U],U===0?L="M "+L.x.toFixed(1)+","+L.y.toFixed(1):(Y=BGd(S[U-1],S[U-2],L),I=BGd(L,S[U-1],S[U+1],!0),L=" C "+(Y.x.toFixed(1)+","+Y.y.toFixed(1)+
" "+I.x.toFixed(1)+","+I.y.toFixed(1)+" "+L.x.toFixed(1)+","+L.y.toFixed(1))),p+=L;return p});var StA=_.$k(function(S){var p=S.progressBarProps;var U=S.config;var Y={};S=_.VD("ytHeatSeekerHost",(Y.ytHeatSeekerHighContrast=S.highContrast,Y));var L=function(){return LOw(U().chapterData)};
return _.H("yt-progress-bar-heatseeker",{class:S,style:function(){var I;return"height: 320px; display: "+(p().isDragging&&((I=L())==null?0:I.heatMarkers)?"block":"none")}},_.H(_.n,{cond:L,
then:function(I){return _.H(_.n,{cond:function(){return I().heatMarkers},
then:function(){return _.H("svg",{width:"100%",height:"320px",viewBox:"0 0 1000 100",preserveAspectRatio:"none"},_.H("path",{d:function(){return cqJ(I())}}))},
debugInstance:"Gji0Se"})},
debugInstance:"iVTXwf"}))},"ye");var pPL=_.$k(function(S){var p=S.progressBarProps;var U=S.config;S={};S=_.VD("ytProgressBarLineProgressBarLine",(S.ytProgressBarLineProgressBarLineRounded=function(){return U().rounded},S.ytProgressBarLineProgressBarLineBottomInset=function(){return U().position===2},S));
return _.H("yt-progress-bar-line",{class:"ytProgressBarLineHost"},_.H("div",{class:S},_.H("div",{class:"ytProgressBarLineProgressBarBackground"}),_.H("div",{class:"ytProgressBarLineProgressBarLoaded",style:function(){return"width: "+p().percentLoaded*100+"%"}}),_.H("div",{class:"ytProgressBarLineProgressBarHovered",
style:function(){var Y=p();return"width: "+(Y.videoDuration?_.F7(Y.hoveredTime/Y.videoDuration,0,1):0)*100+"%"}}),_.H("div",{class:"ytProgressBarLineProgressBarPlayed",
style:function(){return"width: "+pMe(p())*100+"%"}})))},"ze");
pPL.idomCompat=!0;var UYn=_.$k(function(S){var p=S.progressBarProps;var U=S.playheadData;var Y=S.interpolateDotPosition;var L=S.hidePlayhead;S={};var I=_.VD("ytProgressBarPlayheadProgressBarPlayheadDot",(S.ytProgressBarPlayheadProgressBarPlayheadDotLarge=function(){return p().isDragging},S.ytProgressBarPlayheadProgressBarPlayheadDotHide=function(){return!p().isDragging&&L()},S));
return _.H("yt-progress-bar-playhead",{class:"ytProgressBarPlayheadHost",style:_.zw({"margin-left":function(){return URk(p())*100+"%"},
transform:function(){return"translateX(-"+(Y()?URk(p())*12:6)+"px)"}})},_.H(_.n,{cond:function(){var V;
return(V=_.os(U)())==null?void 0:V.playheadImage},
then:function(V){var W={};return _.H("div",{class:_.VD("ytProgressBarPlayheadProgressBarPlayheadCustom",(W.ytProgressBarPlayheadProgressBarPlayheadCustomLarge=function(){return p().isDragging},W.ytProgressBarPlayheadProgressBarPlayheadCustomHide=function(){return!p().isDragging&&L()},W)),
style:_.zw({"transform-origin":function(){return(Y()?URk(p())*20:10)+"px center"}})},_.H(_.of,{data:V,
alt:"","aria-hidden":"true"}))},
else:function(){return _.H("div",{class:I,style:_.zw({"transform-origin":function(){return(Y()?URk(p())*12:6)+"px center"}})})}}))},"Ae");
UYn.idomCompat=!0;var yK=function(S,p,U,Y,L,I){this.getProgressBarRect=S;this.updateProgressBarRect=p;this.getFilmstripYPosition=U;this.setFineScrubbingDraggedTime=Y;this.updateFilmStripDraggedYDistance=L;this.resetFilmStripYOffset=I;this.startPosition=null;this.controlsWereVisibleBeforeDragging=this.isDraggedForFineScrubbing=this.hasDraggedTheMinimumDistance=!1;this.seekThrottle=new _.NB(this.onThrottledSeek,100,this)},Yti=function(S,p,U){return function(Y){S.handleClick(Y,p(),U())}},Isi=function(S,p){return function(U){Loo(S,
U,MXo(U),p())}},dYA=function(S,p){return function(U){Loo(S,U,{x:U.clientX,
y:U.clientY},p())}},Ti5=function(S,p,U){return function(Y){var L=p(),I=U();
VX5(S,Y,MXo(Y),L,I,!0);if(I.onTouchMove)I.onTouchMove(L)}},OEi=function(S,p,U){return function(Y){Won(S,Y,p(),U())}},kqA=function(S,p){return function(){S.handleMouseLeave(p())}},HEL=function(S,p,U){return function(){var Y=p(),L=U();
KO(S,Y,L);if(L.onTouchEnd)L.onTouchEnd(Y)}},DYi=function(S,p,U){return function(){var Y=p(),L=U();
KO(S,Y,L);if(L.onTouchEnd)L.onTouchEnd(Y)}},zA5=function(S,p,U){return function(){KO(S,p(),U())}},QTn=function(S){return function(p){if(p.keyCode===39||p.keyCode===38){var U,Y;
(U=S())==null||(Y=U.playerApi)==null||Y.seekBy(5,void 0,void 0,72)}else if(p.keyCode===37||p.keyCode===40){var L,I;(L=S())==null||(I=L.playerApi)==null||I.seekBy(-5,void 0,void 0,71)}}},n5L=function(S,p,U){return function(Y){!U().disableScrubbing&&S.startPosition&&Won(S,Y,p(),U())}},Jdq=function(S,p,U){return function(){if(!U().disableScrubbing)if(S.startPosition){var Y=p(),L=U();
KO(S,p(),U());if(L.onTouchEnd)L.onTouchEnd(Y)}else p().setState({isDragging:!1})}},MXo=function(S){S=S.touches[0];
return{x:S.clientX,y:S.clientY}},Won=function(S,p,U,Y){if(p.buttons!==1){if(p.movementX||p.movementY)p.preventDefault(),p.stopPropagation(),S=ydq(S,U,p.clientX),U.setState({isHovering:!0,
hoveredTime:S*U.videoDuration})}else KoX(U),VX5(S,p,{x:p.clientX,y:p.clientY},U,Y,!1)};
yK.prototype.handleMouseLeave=function(S){KoX(S)};
var KoX=function(S){S.isHovering&&S.setState({isHovering:!1,hoveredTime:0})},Loo=function(S,p,U,Y){S.startPosition||(S.startPosition=U,S.updateProgressBarRect(),S.controlsWereVisibleBeforeDragging=Y.controlsVisible,p.stopPropagation(),_.y("medium_progress_bar_modification")||p.preventDefault())},VX5=function(S,p,U,Y,L,I){if(S.startPosition)if(I&&L.isInlinePlayback&&S.startPosition&&!S.hasDraggedTheMinimumDistance&&Math.abs(U.y-S.startPosition.y)>Math.abs(U.x-S.startPosition.x))KO(S,Y,L);
else if(p.preventDefault(),p.stopPropagation(),Y.videoDuration&&(S.startPosition&&!S.hasDraggedTheMinimumDistance&&(S.hasDraggedTheMinimumDistance=Math.abs(U.x-S.startPosition.x)>=1),L.enableFineScrubbing&&(S.startPosition&&(S.isDraggedForFineScrubbing=-(U.y-S.startPosition.y)>=60),!S.startPosition||U.y>=S.startPosition.y||(Y.setState({fineScrubbingActiveState:"dragging",filmStripXDistance:hNr(Y.draggedTime,Y,L.chapterData)}),S.setFineScrubbingDraggedTime(Y.draggedTime),S.updateFilmStripDraggedYDistance(S.startPosition.y,
U.y,Y))),S.hasDraggedTheMinimumDistance)){p=ydq(S,Y,U.x);if(S.isDraggedForFineScrubbing){var V;(V=Y.playerApi)==null||V.pauseVideo();Y.setState({fineScrubbingActiveState:"on",fineScrubbingEnteredTime:Y.draggedTime,filmStripXDistance:hNr(p*Y.videoDuration,Y,L.chapterData)})}L.enableFineScrubbing&&(!L.enableFineScrubbing||S.getFilmstripYPosition(Y)<68)||Y.setState({draggedTime:p*Y.videoDuration,controlsVisible:!0,isDragging:!0,shouldWaitToHideControls:S.controlsWereVisibleBeforeDragging});var W;(W=
L.cancelAutohideControlsFn)==null||W.call(L)}},KO=function(S,p,U){var Y=U.enableFineScrubbing&&p.fineScrubbingActiveState!=="off";
if(p.isDragging||Y){Y={isDragging:!1,playedTime:p.draggedTime,controlsVisible:S.controlsWereVisibleBeforeDragging};U.enableFineScrubbing&&p.fineScrubbingActiveState!=="on"&&(S.resetFilmStripYOffset(),Y.fineScrubbingActiveState="off");var L=L===void 0?zNG:L;var I=_.X$(0);I&&L&&_.Eh(I,L,"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK",{seekData:{startMediaTimeMs:Math.round(p.playedTime*1E3),endMediaTimeMs:Math.round(p.draggedTime*1E3),seekSource:"SEEK_SOURCE_SLIDE_ON_SCRUBBER_BAR"}});p.setState(Y);
S.seekThrottle.fire(p.draggedTime,p,7);_.y("mweb_new_progress_bar_play_on_seek")&&S.resumeVideo(p);U.unmuteOnSeek&&(U=p.playerApi,p.volumeMuted&&(U==null||U.unMute()))}else p.setState({controlsVisible:!p.controlsVisible}),(I=U.triggerAutohideControlsAfterDelayFn)==null||I.call(U);S.startPosition=null;S.hasDraggedTheMinimumDistance=!1;S.isDraggedForFineScrubbing=!1;S.controlsWereVisibleBeforeDragging=!1};
yK.prototype.handleClick=function(S,p,U){this.updateProgressBarRect();S.stopPropagation();S=ydq(this,p,S.clientX)*p.videoDuration;p.setState({playedTime:S});if(p.playerState!==2){var Y;(Y=U.triggerAutohideControlsAfterDelayFn)==null||Y.call(U)}this.seekThrottle.fire(S,p,7)};
var ydq=function(S,p,U){S=S.getProgressBarRect(p);return _.F7(0,(U-S.left)/S.width,1)};
yK.prototype.resumeVideo=function(S){if(S.draggedTime<S.videoDuration){var p;(p=S.playerApi)==null||p.playVideo()}};
yK.prototype.onThrottledSeek=function(S,p,U){if(p=p.playerApi){var Y;if((Y=p.getVideoData())==null?0:Y.isLive)Y=this.getProgressState(p),S+=(Y==null?void 0:Y.seekableStart)||0;p.seekTo(S,void 0,void 0,void 0,U)}};
yK.prototype.getProgressState=function(S){var p=S==null?void 0:S.getPresentingPlayerType();return S==null?void 0:S.getProgressState(p)};var rdi,jTo,GqA,RAo,bEs,FoJ,XPd,PJA,ZEs;rdi=_.$k(function(S){var p=S.progressBarProps;var U=S.config;var Y=S.progressBarWidthPx;var L=S.chapterData;var I=ZoE(p,function(){return U().isShortsPage}),V=function(){return!p().isHovering&&!U().isShortsPage};
S={};var W=_.VD("ytPlayerStoryboardHost","ytPlayerStoryboardHostBigboard",(S.ytPlayerStoryboardHostMwebShorts=function(){return U().isShortsPage&&!1},S));
return _.H("yt-player-storyboard",null,_.H(_.n,{cond:function(){return p().isDragging||p().isHovering},
then:function(){return _.H(_.n,{cond:I,then:function(O){return _.H(_.n,{cond:V,then:function(){return _.H("div",{class:W,"aria-hidden":"true"},_.H(bEs,{props:p,config:U,isBigboard:!0,chapterData:L}))},
else:function(){return _.H(jTo,{props:p,frame:O,config:U,progressBarWidthPx:Y,chapterData:L})}})}})}}))},"Be");
_.hAY=_.$k(function(S){var p=S.progressBarProps;var U=ZoE(p,S.isShortsPage);return _.H("yt-player-big-storyboard",{class:"ytPlayerStoryboardBigboardWrapper"},_.H(_.n,{cond:function(){return p().isDragging||p().isHovering},
then:function(){return _.H(_.n,{cond:U,then:function(Y){return _.H(GqA,{frame:Y,props:p,isBigboard:!0})}})}}))},"Ce");
jTo=_.$k(function(S){var p=S.props;var U=S.frame;var Y=S.config;var L=S.progressBarWidthPx;S=S.chapterData;var I={};I=_.VD("ytPlayerStoryboardHost",(I.ytPlayerStoryboardHostMwebShorts=function(){return Y().isShortsPage&&!1},I.ytPlayerStoryboardHostInlinePlayer=function(){return Y().isInlinePlayer},I.ytPlayerStoryboardHostFadeIn=function(){return Y().useFadeInAnimation},I));
return _.H("div",{class:I,"aria-hidden":"true",style:function(){var V=p(),W=RNG(U()),O=L();V=FOr(V)/V.videoDuration;var D=O*V,z=W/2+6;W=O-(W/2+6);return"left: "+(D<=z?z/O*100:D>=W?W/O*100:V*100)+"%"}},_.H(_.n,{cond:function(){var V=p();
return!(Y().isShortsPage&&V.videoDuration<15)},
then:function(){return _.H(GqA,{frame:U,props:p,isBigboard:!1})}}),_.H(bEs,{props:p,
config:Y,isBigboard:!1,chapterData:S}))},"De");
GqA=_.$k(function(S){var p=S.frame;var U=S.props;var Y=S.isBigboard;var L=function(){var W,O;return(O=(W=U().playerApi)==null?void 0:W.getVideoContentRect())!=null?O:{width:0,height:0}},I=function(){return RNG(p())},V=function(){var W=p();
return W?W.height/W.rows:0};
S={};S=_.VD((S.ytPlayerStoryboardBigboardImageWrapper=Y,S.ytPlayerStoryboardStoryboardImageWrapper=function(){return!Y()},S));
return _.H("div",{class:S,style:function(){return"width: "+(Y()?L().width:I())+"px; height: "+(Y()?L().height:V())+"px;"}},_.H(RAo,{frame:p,
storyboardWidth:I,storyboardHeight:V,storyboardScale:function(){return(Y()?L().width:I())/I()}}))},"Ee");
RAo=_.$k(function(S){var p=S.frame;var U=S.storyboardWidth;var Y=S.storyboardHeight;var L=S.storyboardScale;var I=function(){var V=p().row,W=p().column,O=U(),D=Y(),z=L();return{left:-W*O*z,top:-V*D*z}};
return _.H("img",{src:function(){return p().url},
class:"ytPlayerStoryboardStoryboardImage",alt:"preview-image",style:function(){return"left: "+I().left+"px; top: "+I().top+"px; width: "+p().width*L()+"px; height: "+p().height*L()+"px;"}})},"Fe");
bEs=_.$k(function(S){var p=S.props;var U=S.config;var Y=S.isBigboard;var L=S.chapterData;S={};S=_.VD("ytPlayerStoryboardMetadata",(S.ytPlayerStoryboardMetadataBigboard=Y,S));return _.H("div",{class:S},_.H(_.n,{cond:Y,then:function(){return _.H(_.U0,null,_.H(FoJ,{props:p,config:U}),_.H(_.n,{cond:function(){a:{var I=p();var V=U(),W=L(),O;if((V==null?0:V.activeChapter)&&((O=_.b(V==null?void 0:V.activeChapter,PO))==null?0:O.title))I=!0;else{V=_.d(Mze(W));for(V=V.next();!V.done;V=V.next()){I=(V=_.b(V.value,
HQl))&&XMe(I,V);break a}I=!1}}return I},
then:function(){return _.H(XPd,{props:p,config:U,isBigboard:!0,chapterData:L})}}))},
else:function(){return _.H(_.U0,null,_.H(XPd,{props:p,config:U,isBigboard:!0,chapterData:L}),_.H(FoJ,{props:p,config:U}))}}))},"Ge");
FoJ=_.$k(function(S){var p=S.props;var U=S.config;S={};S=_.VD("ytPlayerStoryboardTimestamp",(S.ytPlayerStoryboardTimestampShorts=function(){return U().isShortsPage},S.ytPlayerStoryboardTimestampIsHovering=function(){return p().isHovering||U().isShortsPage&&!0},S));
return _.H("div",{class:S},_.H(_.U0,null,function(){return _.PPw(FOr(p()))}))},"He");
XPd=_.$k(function(S){var p=S.props;var U=S.config;var Y=S.isBigboard;var L=S.chapterData;S={};Y=_.VD("ytPlayerStoryboardTitle",(S.ytPlayerStoryboardTitleBigboard=Y,S));return _.H("div",{class:Y},_.H(_.n,{cond:function(){return!U().isShortsPage},
then:function(){return _.H(PJA,{props:p,activeChapter:function(){return U().activeChapter},
chapterData:L})}}))},"Ie");
PJA=_.$k(function(S){var p=S.props;var U=S.activeChapter;var Y=S.chapterData;return _.H(_.U0,null,_.H(_.KU,{each:function(){return Mze(Y())},
keyBy:"INDEX"},function(L){return _.H(_.U0,null,_.H(_.n,{cond:function(){return _.b(L(),HQl)&&XMe(p(),_.b(L(),HQl))},
then:function(){return _.H(ZEs,{timedMarker:function(){return _.b(L(),HQl)}})}}))}),_.H(_.n,{cond:function(){var L;
return U()&&((L=_.b(U(),PO))==null?void 0:L.title)},
then:function(L){return _.H(_.i6,{text:L,noPreWrap:!0})}}))},"Je");
ZEs=_.$k(function(S){var p=S.timedMarker;return _.H(_.U0,null,_.H("div",{class:"ytPlayerStoryboardTimedMarkerIconWrapper"},_.H(_.QD,{icon:function(){return p().icon},
className:"ytPlayerStoryboardTimedMarkerIcon"})),_.H(_.i6,{text:function(){return p().label},
noPreWrap:!0}))},"Ke");_.sTq=_.$k(function(S){var p=S.progressBarProps;var U=S.playheadData;var Y=S.config;S=_.vH();var L=_.vH(),I=_.vH(),V=_.d(_.kj({width:0,left:0},void 0,"NcXsUb")),W=V.next().value,O=V.next().value,D=function(){I.value&&O(I.value.getBoundingClientRect())},z=function(){W().width<=0&&D();
return W()};
qW("resize",D);var Q=new yK(z,function(){},function(){return 0},function(){},function(){},function(){}),J=function(){return p()};
V=_.d(_.kj(!1,void 0,"ZsF6Xc"));var K=V.next().value,G=V.next().value;V=_.kL(function(){G(!0);Y().position===2?setTimeout(function(){D()},100):D()});
var X=_.kL(function(){G(!1);kqA(Q,J)()}),Z=_.kL(function(au){Y().doSeekOnClick&&Yti(Q,J,Y)(au);
return!1}),l=_.kL(function(au){Isi(Q,J)(au);
return!1}),a=_.kL(function(au){dYA(Q,J)(au);
return!1}),N=_.kL(function(au){Ti5(Q,J,Y)(au);
return!1}),m=_.kL(function(au){OEi(Q,J,Y)(au);
return!1}),A=_.kL(function(){HEL(Q,J,Y)();
return!1}),q=_.kL(function(){DYi(Q,J,Y)();
return!1}),TG=_.kL(function(){zA5(Q,J,Y)();
return!1}),Je=_.kL(function(au){QTn(J)(au);
return!1});
qW("mousemove",n5L(Q,J,Y));qW("mouseup",Jdq(Q,J,Y));_.FM(function(){QhX(L.value);G(!1);D();Jdq(Q,J,Y)()});
var GG={};GG=_.VD("ytPlayerProgressBarHost",function(){return Y().className},(GG.ytPlayerProgressBarHostReadOnly=function(){return Y().disableScrubbing},GG.ytPlayerProgressBarHostHidden=function(){return Y().hideProgressBar&&!K()},GG.ytPlayerProgressBarHostLowerPlayer=function(){return Y().position===0},GG.ytPlayerProgressBarHostBottomEdge=function(){return Y().position===1},GG.ytPlayerProgressBarHostBottomInset=function(){return Y().position===2},GG.ytPlayerProgressBarHostCustom=function(){return Y().position===
3},GG));
var Zw={},Ru=_.VD("ytPlayerProgressBarBackground",(Zw.ytPlayerProgressBarBackgroundHide=function(){return Y().position===2&&!K()&&!p().isDragging},Zw));
Zw={};Zw=_.VD("ytPlayerProgressBarDragContainer",(Zw.ytPlayerProgressBarDragContainerBottomEdge=function(){return Y().position===1},Zw));
var sX={};sX=_.VD("ytPlayerProgressBarProgressBar",(sX.ytPlayerProgressBarProgressBarInset=function(){return Y().position===2},sX.ytPlayerProgressBarProgressBarInsetMinimized=function(){return Y().position===2&&!K()&&!p().isDragging},sX));
var mq=function(){return Math.floor(pMe(p())*100)};
return _.H("yt-progress-bar",{el:S,class:GG},_.H(_.n,{cond:function(){return Y().position===2},
then:function(){return _.H("div",{class:Ru})}}),_.H("div",{el:L,
"on:click":Z,"on:touchstart":l,"on:touchmove":N,"on:mouseenter":V,"on:mousedown":a,"on:mouseleave":X,"on:mousemove":m,"on:mouseup":q,"on:touchend":A,"on:touchcancel":TG,"on:keydown":Je,class:Zw,role:"slider","aria-valuenow":mq,"aria-valuetext":function(){return mq()+"%"},
"aria-valuemin":function(){return 0},
"aria-valuemax":function(){return p().videoDuration},
draggable:"true",tabindex:0,"aria-label":_.Oh("SEEK_SLIDER")},_.H("div",{el:I,class:sX},_.H(StA,{progressBarProps:p,config:Y,highContrast:function(){return!!Y().isInlinePlayback}}),_.H(_.n,{cond:function(){return Y().chapterData&&IIG(Y().chapterData)},
then:function(){return _.H(tQd,{progressState:p,multiMarkersPlayerBarRenderer:function(){return Y().chapterData},
progressBarWidth:function(){return W().width}})},
else:function(){return _.H(pPL,{progressBarProps:p,config:Y})}}),_.H(UYn,{progressBarProps:p,
playheadData:U,interpolateDotPosition:function(){return Y().position!==2},
hidePlayhead:function(){return Y().playheadDotBehavior===1&&!K()}}))),_.H(rdi,{progressBarProps:p,
config:function(){return{activeChapter:boE(p(),Y().chapterData),getProgressBarWidthPx:function(){return z().width},
isShortsPage:!!Y().isShortsPage,isInlinePlayer:!!Y().isInlinePlayback,useFadeInAnimation:!!Y().isInlinePlayback}},
progressBarWidthPx:function(){return W().width},
chapterData:function(){return Y().chapterData}}))},"Le");
_.sTq.idomCompat=!0;Object.assign({},_.dRw(),{setState:function(){},
domMeasurements:{},appApi:_.SdN(),playerApi:void 0,playerContainer:void 0,playerControlContainer:void 0,uxConfig:{}});var eAP;
_.g5n=_.$k(function(){var S,p=(S=_.sp(shk().playerApi))!=null?S:void 0;S=_.d(_.kj(!1,void 0,"HLFBmb"));var U=S.next().value,Y=S.next().value;S=_.d(_.kj(!1,void 0,"lHH9bc"));var L=S.next().value,I=S.next().value;S=_.d(_.kj(!1,void 0,"zsY7yd"));var V=S.next().value,W=S.next().value;S=_.d(_.kj(!1,void 0,"KeHQgc"));var O=S.next().value,D=S.next().value;S=_.d(_.kj(0,void 0,"gLLCj"));var z=S.next().value,Q=S.next().value;S=_.d(_.kj(0,void 0,"s3RYkf"));var J=S.next().value,K=S.next().value;S=_.d(_.kj(!1,void 0,
"Dn608e"));var G=S.next().value,X=S.next().value;S=_.d(_.kj(0,void 0,"AnkH1b"));var Z=S.next().value,l=S.next().value;S=_.d(_.kj(0,void 0,"QYNL0b"));var a=S.next().value,N=S.next().value;S=_.d(_.kj("",void 0,"Yzw45d"));var m=S.next().value,A=S.next().value;S=_.d(_.kj(-1,void 0,"iiVI0c"));var q=S.next().value,TG=S.next().value,Je=_.nS(function(){var GG={controlsVisible:U(),isOverlayHidden:L(),shouldWaitToHideControls:V(),isDragging:O(),isHovering:G(),videoDuration:Z(),playedTime:a(),videoId:m(),draggedTime:J(),
hoveredTime:z(),playerState:q()};return Object.assign({},_.dRw(),GG,{domMeasurements:{},setState:function(Zw){Zw.controlsVisible!==void 0&&Y(Zw.controlsVisible);Zw.isOverlayHidden!==void 0&&I(Zw.isOverlayHidden);Zw.shouldWaitToHideControls!==void 0&&W(Zw.shouldWaitToHideControls);Zw.isDragging!==void 0&&D(Zw.isDragging);Zw.isHovering!==void 0&&X(Zw.isHovering);Zw.draggedTime!==void 0&&K(Zw.draggedTime);Zw.hoveredTime!==void 0&&Q(Zw.hoveredTime);Zw.videoDuration!==void 0&&l(Zw.videoDuration);Zw.playedTime!==
void 0&&N(Zw.playedTime);Zw.videoId!==void 0&&A(Zw.videoId);Zw.playerState!==void 0&&TG(Zw.playerState)},
appApi:_.SdN(),playerApi:p})},void 0,"ZW7y9");
_.hW(function(){p==null||p.addEventListener("onVideoProgress",Oou(Je));p==null||p.addEventListener("onVideoDataChange",WOd(Je));p==null||p.addEventListener("onStateChange",Vzq(Je))});
_.FG(function(){if(p==null?0:p.isReady())p==null||p.removeEventListener("onVideoProgress",Oou(Je)),p==null||p.removeEventListener("onVideoDataChange",WOd(Je)),p==null||p.removeEventListener("onStateChange",Vzq(Je))});
return _.H("desktop-shorts-player-controls",null,_.H(eAP,{playerControlsProps:Je}))},"Me");
eAP=_.$k(function(S){var p=S.playerControlsProps;return _.H("div",{class:"desktopShortsPlayerControlsWizHost"},_.H(_.sTq,{progressBarProps:p,config:function(){return{isShortsPage:!0,hideProgressBar:p().videoDuration<30&&p().playerState!==2&&!p().isDragging,rounded:!0,position:3,unmuteOnSeek:!1,playheadDotBehavior:1,doSeekOnClick:!0}}}))},"Ne");_.cH(_.wMq);_.unX=_.$k(function(S){var p=S.data;return _.H("player-disclosure-view-model",{class:"ytwPlayerDisclosureViewModelHost"},_.H(_.pY,{command:function(){return p().navigationEndpoint},
className:"ytwPlayerDisclosureViewModelEndpoint"},_.H(_.n,{cond:function(){return p().iconName},
then:function(U){return _.H(_.QD,{icon:U})}}),_.H("span",{class:"ytwPlayerDisclosureViewModelText"},function(){return p().text}),_.H(_.n,{cond:function(){return p().showEndChevron},
then:function(){return _.H(_.QD,{icon:"CHEVRON_RIGHT"})}})))},"Oe");var wPs=_.$k(function(S){var p=S.data;var U=S.overlayDensity;S={};return _.H("yt-reel-channel-bar-view-model",{class:"ytReelChannelBarViewModelHost"},_.H(_.yP,{data:function(){return p().decoratedAvatarViewModel}},{decoratedAvatarViewModel:function(Y){var L=Y.data;
return _.H(_.jH,{data:function(){return(U==null?void 0:U())===1?Object.assign({},L(),{avatar:{avatarViewModel:Object.assign({},_.b(L().avatar,_.xO),{avatarImageSize:"AVATAR_SIZE_48"})}}):L()}})}}),_.H(_.yP,{data:function(){return p().avatarStackViewModel}},{avatarStackViewModel:function(Y){return _.H(_.ra,{data:Y.data})}}),_.H(_.i6,{className:_.VD("ytReelChannelBarViewModelChannelName",(S.ytReelChannelBarViewModelChannelNameLarge=function(){return(U==null?void 0:U())===1},S)),
text:function(){return p().channelName},
linkInheritColor:!0,userInput:!0}),_.H("div",{class:"ytReelChannelBarViewModelReelSubscribeButton"},_.H(_.yP,{data:function(){return p().subscribeButtonViewModel}},{subscribeButtonViewModel:function(Y){var L=Y.data;
return _.H(_.jW,{data:function(){return(U==null?void 0:U())===1?Object.assign({},L(),{backgroundStyle:"SUBSCRIBE_BUTTON_VIEW_MODEL_BACKGROUND_STYLE_TONAL",buttonStyle:Object.assign({},L().buttonStyle,{buttonSize:"SUBSCRIBE_BUTTON_VIEW_MODEL_SIZE_MEDIUM"})}):L()},
isOverlay:!1})},
buttonViewModel:_.PG})),_.H("div",{class:"ytReelChannelBarViewModelReelSponsorButton"},_.H(_.yP,{data:function(){var Y,L;return(L=_.b((Y=p())==null?void 0:Y.sponsorButtonViewModel,ZDe))==null?void 0:L.sponsorButton}},{buttonViewModel:function(Y){return _.H(_.PG,{data:Y.data,
buttonOverrides:function(){return{toggled:!0}}})}})))},"Pe");var lsE=_.$k(function(S){var p={};return _.H("yt-reel-multi-format-link-view-model",{class:_.VD("ytReelMultiFormatLinkViewModelHost",(p.ytReelMultiFormatLinkViewModelHostTall=!0,p.ytReelMultiFormatLinkViewModelHostLarge=function(){var U;return((U=S.overlayDensity)==null?void 0:U.call(S))===1},p))},_.H(_.pY,{ariaLabel:function(){return S.data().a11yLabel},
className:"ytReelMultiFormatLinkViewModelEndpoint",command:function(){return _.sW(S.data().command)},
dangerousStopPropagation:!1},_.H("h3",{class:"ytReelMultiFormatLinkViewModelLink"},_.H(_.n,{cond:function(){return S.data().icon},
then:function(U){return _.H(_.of,{data:U,className:"ytReelMultiFormatLinkViewModelIcon",alt:""})}}),_.H(_.i6,{text:function(){return S.data().title},
className:"ytReelMultiFormatLinkViewModelTitle"}))))},"Qe");
lsE.idomCompat=!0;var asP=_.$k(function(S){var p=S.data;var U=S.overlayDensity;var Y=_.vH();S=_.d(_.kj(!1,void 0,"xDqzhe"));var L=S.next().value,I=S.next().value;S=_.d(_.kj(!1,void 0,"LI9CFd"));var V=S.next().value,W=S.next().value,O=function(){return p().isMultiLineSa},D=_.Ty(FKu,function(){var N,m;
return(m=(N=p().toggleableContent)==null?void 0:N.entityKey)!=null?m:""}),z=function(){var N,m,A;
return(A=p().toggleableContent)!=null&&A.entityKey?(m=(N=D())==null?void 0:N.value)!=null?m:!1:!1},Q=function(){var N,m,A,q,TG,Je,GG,Zw,Ru,sX,mq;
return p().toggleableContent?z()?(N=p().toggleableContent)==null?void 0:N.toggledData:(m=p().toggleableContent)==null?void 0:m.untoggledData:{primaryText:(Zw=(A=p().defaultContent)==null?void 0:A.primaryText)!=null?Zw:p().text,secondaryText:(q=p().defaultContent)==null?void 0:q.secondaryText,onTapCommand:(Ru=(TG=p().defaultContent)==null?void 0:TG.onTapCommand)!=null?Ru:p().onTapCommand,icon:(sX=(Je=p().defaultContent)==null?void 0:Je.icon)!=null?sX:p().icon,image:(mq=(GG=p().defaultContent)==null?
void 0:GG.image)!=null?mq:p().image}},J=function(){return O()?p().trailingTapTarget:void 0};
S=function(N,m){return function(){return L()?m:N}};
var K={leadingSection:S("ytShortsSuggestedActionViewModelDynamicHostCollapsedLeadingSection","ytShortsSuggestedActionViewModelDynamicHostExpandedLeadingSection"),secondaryText:S("ytShortsSuggestedActionViewModelDynamicHostCollapsedSecondary","ytShortsSuggestedActionViewModelDynamicHostExpandedSecondary"),trailingSection:S("ytShortsSuggestedActionViewModelDynamicHostCollapsedTrailingSection","ytShortsSuggestedActionViewModelDynamicHostExpandedTrailingSection"),leadingIcon:S("ytShortsSuggestedActionViewModelDynamicHostCollapsedLeadingIcon",
"ytShortsSuggestedActionViewModelDynamicHostExpandedLeadingIcon")};S={};S=_.VD((S.ytShortsSuggestedActionViewModelStaticHost=function(){return!O()},S.ytShortsSuggestedActionViewModelDynamicHost=O,S.ytShortsSuggestedActionViewModelDynamicHostShown=function(){return O()&&V()},S.ytShortsSuggestedActionViewModelDynamicHostHidden=function(){return O()&&!V()},S));
_.FM(function(){if(O()){var N=0,m;if((m=p().animationParams)==null?0:m.shouldExpand){var A,q;N=((q=(A=p().animationParams)==null?void 0:A.expansionDelaySecs)!=null?q:0)*1E3}var TG,Je=((TG=p().animationParams)==null?0:TG.shouldExpand)?setTimeout(function(){I(!0)},N):void 0,GG,Zw;
N=((GG=p().animationParams)==null?0:GG.visibilityDelaySecs)?((Zw=p().animationParams)==null?NaN:Zw.visibilityDelaySecs)*1E3:0;var Ru=setTimeout(function(){W(!0)},N);
_.FG(function(){Je&&clearTimeout(Je);clearTimeout(Ru)})}});
var G=function(N){_.wx(N,Object.assign({},{form:{element:Y.value}}))},X=_.kL(function(){var N,m=(N=Q())==null?void 0:N.onTapCommand;
m&&G(m)}),Z=_.kL(function(){var N,m;
if(N=(m=J())==null?void 0:m.onTapCommand)return G(N),!1}),l=_.zw({"vertical-align":"bottom",
"border-radius":function(){var N;return O()?((N=p().defaultContent)==null?0:N.isCircleImage)?"50%":"4px":"0px"},
width:function(){var N,m,A;return O()&&((N=p().defaultContent)==null?0:N.imageSize)?((A=(m=p().defaultContent)==null?void 0:m.imageSize)!=null?A:24)+"px":null},
height:function(){var N,m,A;return O()&&((N=p().defaultContent)==null?0:N.imageSize)?((A=(m=p().defaultContent)==null?void 0:m.imageSize)!=null?A:24)+"px":null}}),a={};
return _.H("yt-shorts-suggested-action-view-model",{class:S,el:Y},_.H("div",{style:"display: flex; flex-direction: row; align-items: center;"},_.H("button",{class:_.VD(function(){return O()?"ytShortsSuggestedActionViewModelDynamicHostContainer":"ytShortsSuggestedActionViewModelStaticHostContainer"},function(){var N;
return(N=p().useFullRoundedBorder)!=null&&N?"ytShortsSuggestedActionViewModelDynamicHostUseRoundBorder":!J()&&O()?"ytShortsSuggestedActionViewModelDynamicHostRoundAllCorners":O()?"ytShortsSuggestedActionViewModelDynamicHostOnlyRoundLeadingCorners":""},function(){var N;
return(N=p().disableFixedHeight)!=null&&N?"ytShortsSuggestedActionViewModelDynamicHostFixedHeightAuto":""},(a.ytShortsSuggestedActionViewModelExpansiveContainer=function(){return(U==null?void 0:U())===1},a)),
"on:click":X},_.H(_.yD,{model:{color:4}}),_.H("div",{class:_.VD(function(){return O()?K.leadingSection():"ytShortsSuggestedActionViewModelStaticHostLeadingSection"})},_.H(_.n,{cond:function(){var N;
return(N=Q())==null?void 0:N.image},
then:function(N){return _.H(_.of,{data:N,alt:"",className:function(){return O()?"ytShortsSuggestedActionViewModelDynamicHostLeadingImage":"ytShortsSuggestedActionViewModelStaticHostLeadingImage"},
contentMode:"CONTENT_MODE_SCALE_TO_FILL",preserveHeight:!0,preserveWidth:!0,useWidth:!0,style:l})}}),_.H(_.n,{cond:function(){var N,m;
return(N=Q())==null?void 0:(m=N.icon)==null?void 0:m.iconType},
then:function(N){return _.H(_.QD,{icon:N,active:z,className:function(){return O()?L()?"ytShortsSuggestedActionViewModelDynamicHostExpandedLeadingIcon":"ytShortsSuggestedActionViewModelDynamicHostCollapsedLeadingIcon":"ytShortsSuggestedActionViewModelStaticHostLeadingIcon"}})}})),_.H("div",{class:"ytShortsSuggestedActionViewModelStaticHostTextSection"},_.H(_.n,{cond:function(){var N;
return(N=Q())==null?void 0:N.primaryText},
then:function(N){return _.H("div",{class:"ytShortsSuggestedActionViewModelStaticHostPrimaryText"},_.H(_.i6,{text:N}))}}),_.H(_.n,{cond:function(){var N;
return(N=Q())==null?void 0:N.secondaryText},
then:function(N){return _.H("div",{class:K.secondaryText},_.H(_.i6,{text:N}))}}))),_.H(_.n,{cond:J,
then:function(N){return _.H("div",{class:K.trailingSection,"aria-label":function(){var m;return(m=N().a11yLabel)!=null?m:""},
"on:click":Z,role:"button",tabindex:0},_.H(_.yD,{model:{color:4}}),_.H(_.QD,{icon:"CHEVRON_DOWN",className:"ytShortsSuggestedActionViewModelDynamicHostTrailingIcon"}))}})))},"Re");var fst=_.$k(function(S){var p=S.data;var U=S.overlayDensity;var Y=_.vH();S=_.kL(function(V){if(_.l6(_.w8(V),Y.value,["A".toString()]))return!1;(V=p().truncatedTextOnTapCommand)&&_.wx(V);return!1});
var L={},I={};return _.H("yt-shorts-video-title-view-model",{el:Y,class:_.VD("ytShortsVideoTitleViewModelHost",(L.ytShortsVideoTitleViewModelHostClickable=function(){return!!p().truncatedTextOnTapCommand},L)),
"on:click":S},_.H("h2",{class:_.VD("ytShortsVideoTitleViewModelShortsVideoTitle",(I.ytShortsVideoTitleViewModelShortsVideoTitleLarge=function(){return(U==null?void 0:U())===1},I))},_.H(_.i6,{text:function(){return p().text},
linkInheritColor:!0,noEndpoints:!1,stopPropagation:!0,userInput:!0})))},"Se");_.CJd=_.$k(function(S){var p=S.data;var U=S.overlayDensity;return _.H("yt-reel-metapanel-view-model",{class:"ytReelMetapanelViewModelHost"},_.H(_.yP,{data:function(){return p().metadataItems}},{badgeViewModel:function(Y){return _.H("div",{class:"ytReelMetapanelViewModelMetapanelItem"},_.H(_.Bh,{data:Y.data}))},
playerDisclosureViewModel:function(Y){return _.H("div",{class:"ytReelMetapanelViewModelMetapanelItem"},_.H(_.unX,{data:Y.data}))},
shortsSuggestedActionViewModel:function(Y){return _.H("div",{class:"ytReelMetapanelViewModelMetapanelItem"},_.H(asP,{data:Y.data,overlayDensity:U}))},
reelChannelBarViewModel:function(Y){return _.H("div",{class:"ytReelMetapanelViewModelMetapanelItem"},_.H(wPs,{data:Y.data,overlayDensity:U}))},
reelMultiFormatLinkViewModel:function(Y){return _.H("div",{class:"ytReelMetapanelViewModelMetapanelItem"},_.H(lsE,{data:Y.data,overlayDensity:U}))},
shortsVideoTitleViewModel:function(Y){return _.H("div",{class:"ytReelMetapanelViewModelMetapanelItem"},_.H(fst,{data:Y.data,overlayDensity:U}))},
reelSoundMetadataViewModel:function(Y){return _.H("div",{class:"ytReelMetapanelViewModelMetapanelItem"},_.H(_.iyt,{data:Y.data,overlayDensity:U}))},
toggleButtonViewModel:function(Y){return _.H("div",{class:"ytReelMetapanelViewModelMetapanelItem"},_.H(_.jS,{data:Y.data}))}}))},"Te");var xYq=_.$k(function(S){var p=_.vT(S,{size:"M",disabled:!1,tooltipText:"",onTap:void 0}),U=p.size,Y=p.onTap,L=p.disabled,I=p.tooltipText;return _.H("div",{class:"ytdShortsMiniplayerOverlayInteractive"},_.H(BG,{data:function(){return{style:"overlay-dark",type:"tonal",state:"active",iconPosition:"icon-only",size:U(),disabled:L(),tooltipText:I(),onTap:Y}},
iconName:S.iconType}))},"Ue"),E5X=_.$k(function(S){function p(z){z.stopPropagation();
z.code==="ArrowUp"?(z.preventDefault(),fIr(W.value)):z.code==="ArrowDown"?(z.preventDefault(),CPX(W.value)):z.code==="KeyM"?lIG():(z.code==="KeyK"||z.code==="Space")&&aIk(O())}
var U=_.vT(S,{previousButtonDisabled:!1,nextButtonDisabled:!1,data:void 0,playabilityStatus:void 0,previewThumbnail:void 0});S=U.previousButtonDisabled;var Y=U.nextButtonDisabled,L=U.data,I=U.playabilityStatus,V=U.previewThumbnail,W=_.vH(),O=_.Xc(_.QgG),D;_.hW(function(){(D=_.ZD(W.value))&&D.addEventListener("keydown",p)});
_.FG(function(){var z;(z=D)==null||z.removeEventListener("keydown",p)});
U=function(){var z,Q,J;return(z=L())==null?void 0:(Q=z.reelPlayerOverlayRenderer)==null?void 0:(J=Q.likeButton)==null?void 0:J.likeButtonRenderer};
return _.H("ytd-shorts-miniplayer-overlay",{el:W,class:"ytdShortsMiniplayerOverlayHost"},_.H("div",{class:"ytdShortsMiniplayerOverlayThumbnailBackground",style:_.zw({"background-image":function(){var z=V();return z?'url("'+_.tS(z.thumbnails)+'")':""}})}),_.H("div",{class:"ytdShortsMiniplayerOverlayOverlay"},_.H("div",{class:"ytdShortsMiniplayerOverlayTopButtons"},_.H(xYq,{iconType:function(){var z=O();
return z===2||z===-1||z===5?"PLAY_ARROW":"PAUSE_FILLED"},
size:"L",onTap:function(){aIk(O())},
tooltipText:function(){var z=O();return z===1||z===3?_.Oh("PLAYER_LABEL_PAUSE"):_.Oh("PLAYER_LABEL_PLAY")}}),_.H(_.wMq,null)),_.H("div",{class:"ytdShortsMiniplayerOverlayActionButtons"},_.H(xYq,{iconType:"YOUTUBE_SHORTS_ARROW_UP",
disabled:S,onTap:function(){fIr(W.value)},
tooltipText:_.Oh("PREVIOUS_VIDEO_LABEL")}),_.H(xYq,{iconType:"YOUTUBE_SHORTS_ARROW_DOWN",disabled:Y,onTap:function(){CPX(W.value)},
tooltipText:_.Oh("NEXT_VIDEO_LABEL")}),_.y("web_shorts_pip_like_button")?_.H("div",{class:"ytdShortsMiniplayerOverlayInteractive"},_.H(J$Q,{buttonTooltipPosition:"left",data:U,overrides:{iconPosition:"icon-with-label",size:"M",style:"overlay-dark",type:"tonal"},textTransform:"none",useShortsIcon:!0,vertical:!0})):null),_.H("div",{class:"ytdShortsMiniplayerOverlayVideoMetaData"},_.H(_.n,{cond:function(){var z,Q;return _.b((z=L())==null?void 0:(Q=z.reelPlayerOverlayRenderer)==null?void 0:Q.metapanel,
_.RxH)},
then:function(z){return _.H("div",{class:_.VD("ytdShortsMiniplayerOverlayInteractive")},_.H(_.CJd,{data:z}))}})),_.H("div",{class:_.VD("ytdShortsMiniplayerOverlayPlayerControls","ytdShortsMiniplayerOverlayInteractive"),
hidden:function(){var z;return!((z=L())==null||!z.adsOverlay)||I()&&!qmw(I())}},_.H("div",{class:"ytdShortsMiniplayerOverlayPlayerControlsInner"},_.H(_.g5n,null)))),_.H(_.n,{cond:function(){var z=L(),Q,J;
z=_.b(z==null?void 0:(Q=z.adsOverlay)==null?void 0:(J=Q.fulfillmentContent)==null?void 0:J.fulfilledLayout,MCj);return _.b(z==null?void 0:z.renderingContent,W6c)},
then:function(z){return _.H("div",{class:"ytdShortsMiniplayerOverlayAdsOverlay"},_.H(jNH,{data:z}))}}))},"Ve");var xRq=_.$k(function(){var S=_.d(_.kj(new _.OF(NaN,NaN),void 0,"HSMFk")),p=S.next().value,U=S.next().value;S=_.d(_.kj(!1,void 0,"uaAxwf"));var Y=S.next().value,L=S.next().value,I=_.d(_.kj(!1,void 0,"nVSwef"));S=I.next().value;var V=I.next().value,W=_.tW().resolve(_.eC).miniplayerPropSignalMap[0],O=W.data,D=W.shortsData,z=W.nextButtonDisabled,Q=W.shortsPreviewThumbnail,J=W.previousButtonDisabled,K=W.externalPlaylistData;I=W.toastData;var G=W.playabilityStatus,X=W.isDisabled,Z=W.playerVe,l=W.closeVe;
W=_.Xc(_.WI);_.oV("yt-pip-window-resized",function(A){U(A)});
_.oV("yt-activate-pip-miniplayer",function(){return _.T(function(A){V(!0);_.OV(A)})});
var a=function(){var A;return!((A=K())==null||!A.contents)&&Y()},N=function(){var A=p(),q=!!O(),TG=a();
A=A.clone();q&&(A.height-=76);TG&&(A.height-=285);return A},m=function(){L(!Y())};
_.R8(function(){var A=Z(),q=_.X$(11),TG=_.F$(11);q&&TG&&A&&(_.wB(q,TG,A),TG=l())&&(_.l5(q,A,[TG]),_.fp(q,[TG]))});
return _.H("ytd-pip-container",{class:"ytdPipContainerHost"},_.H(_.n,{cond:S,then:function(){return _.H(_.BmL,{isDisabled:X,playabilityStatus:G,size:N})}}),_.H(_.n,{cond:O,
then:function(){return _.H(_.ici,{data:O,expanded:Y,onExpandClick:m,playlistData:K})}}),_.H(_.n,{cond:a,
then:function(){return _.H("div",{class:"ytdPipContainerPlaylistPanel"},_.H(_.Q7m,{data:K,hideHeaderText:!0,withinMiniplayer:!0}))}}),_.H(_.n,{cond:W,
then:function(){return _.H(E5X,{data:D,nextButtonDisabled:z,previousButtonDisabled:J,playabilityStatus:G,previewThumbnail:Q})}}),_.H("div",{class:"ytdPipContainerToast"},_.H(_.qln,{toastData:I})))},"We");var bm=function(S,p){var U=this;this.pipController=S;this.JSC$16467_clientRoot=p;this.active=!1;this.player=this.playerElement=this.miniplayerFetchRequest=null;this.miniplayerPropSignalMap=BDw();this.watchPipEnabled=_.y("web_watch_pip");this.shortsPipEnabled=_.y("web_shorts_pip");this.JSC$16467_watchWhileEnabled=_.y("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;_.Wt(_.vJ(),_.k1e,function(Y){U.isSingleOptionSurveyActive=Y});
this.JSC$16467_onPlayerPlayVideo=this.JSC$16467_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);_.E9(_.xv.getInstance(),this.miniplayerServiceActionMap,this.JSC$16467_clientRoot);S.pictureInPictureSupported()&&_.RV("genericClientExperimentEvent",
{eventType:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_DOCUMENT_PICTURE_IN_PICTURE_SUPPORTED"})},c0j,tXX,Nio,cdJ,SHY,pRc;
bm.prototype.handleMediaSessionPipActivation=function(){var S=this,p;return _.T(function(U){_.Vy().mediaSessionPipActivation=!0;p=_.tW().resolve(_.oy);return p.isOnWatch()&&S.watchPipEnabled?(_.Vy().watchPipActivation=!0,_.mYt(S,p.data),U.jumpTo(0)):p.isOnShorts()&&S.shortsPipEnabled?(_.Vy().shortsPipActivation=!0,_.o5t(S),U.jumpTo(0)):S.isMiniplayerActive()&&S.watchPipEnabled&&!S.watchWhileMode?_.k(U,v5Y(S),0):U.jumpTo(0)})};
var v5Y=function(S){var p,U,Y,L;return _.T(function(I){if(I.nextAddress==1)return p=!S.miniplayerToPipMode,U=S.playerElement,Y=S.miniplayerData,L=S.watchResponse,_.k(I,S.deactivate(),2);if(I.nextAddress!=3)return p?(_.Vy().mediaSessionPipActivation=!0,_.Vy().watchPipActivation=!0):_.Vy().miniplayerButtonActivation=!0,_.k(I,S.activate(U,Y,L),3);S.miniplayerToPipMode=p;_.OV(I)})};
bm.prototype.onDownloadedVideoDeleted=function(S){var p,U=_.b((p=this.miniplayerData)==null?void 0:p.watchEndpoint,_.E$),Y,L;U&&((Y=this.watchResponse)==null?void 0:(L=Y.playerResponse)==null?void 0:L.offlineState)!==void 0&&(p=U.videoId)&&S&&p===S&&this.close()};
bm.prototype.onShowMiniplayerCommand=function(S){var p=this,U,Y,L,I,V,W,O,D,z,Q,J,K,G;return _.T(function(X){switch(X.nextAddress){case 1:return U=_.b(S,Qwt),L=(Y=U)==null?void 0:Y.miniplayerCommand,I=_.b(L,_.E$),L&&I&&!p.active?_.k(X,_.na.getInstance(),2):X.return();case 2:return V=X.yieldResult,_.k(X,(W=V)==null?void 0:W.get("yt-miniplayer-shown-video-id"),3);case 3:O=X.yieldResult;D=I.videoId;if(!D||O===D)return X.return();z=_.tW().resolve(_.oy);if(z.isOnWatch())return _.eP(Error("Bj")),X.return();
Q={channelItem:{externalId:btoa(D)}};p.readyToResumeVe=_.bZ(121253,void 0,void 0,Q);_.Vy().showMiniplayerCommandActivation=!0;return _.k(X,_.U3c(p,L,!0),4);case 4:return p.active?(_.jg(p,{readyToResumeVe:p.readyToResumeVe,continueWatching:!0,premiumBranding:!((J=U)==null||!J.showPremiumBranding)}),_.y("ytd_miniplayer_to_wiz")&&_.jg(p,{isReadyToResume:!0}),p.isReadyToResume=!0):_.jg(p,{continueWatching:!0,premiumBranding:!((K=U)==null||!K.showPremiumBranding)}),_.k(X,(G=V)==null?void 0:G.set("yt-miniplayer-shown-video-id",
I.videoId),5);case 5:p.readyToResumeVe=void 0,_.OV(X)}})};
bm.prototype.init=function(S){this.miniplayerEl?_.eP(new _.y7("MiniplayerService already initialized.")):this.miniplayerEl=S};
bm.prototype.isInitialized=function(){var S=!!this.miniplayerEl;S||_.eP(new _.y7("MiniplayerService used before initialized."));return S};
_.mYt=function(S,p){if(S.isInitialized()){var U=_.t1w(p.response,p.playerResponse),Y=_.tW().resolve(_.oy).getPlayerFromWatch();_.Vy().currentEndpoint=U.watchEndpoint||null;S.activate(Y,U,p)}};
_.o5t=function(S){if(S.isInitialized()){var p=_.tW().resolve(_.oy).getPlayerFromShorts();S.activate(p)}};
c0j=function(S,p){var U;(U=!S.isInitialized())||(U=_.tW().resolve(_.oy).isOnWatch()&&S.watchPipMode,U=!(S.isMiniplayerActive()&&(_.Vy().userActivation||_.Vy().lockupActivation||U)));if(U)return!1;$YL(S,p)?_.Jz(S):pRc(S,p);return S.watchPipMode?!_.tW().resolve(_.oy).isOnWatch():!0};
bm.prototype.isMiniplayerActive=function(){return this.active};
var $YL=function(S,p){var U;p=(U=_.b(p,_.E$))==null?void 0:U.videoId;var Y,L;S=(L=_.b((Y=S.miniplayerData)==null?void 0:Y.watchEndpoint,_.E$))==null?void 0:L.videoId;return p!=null&&p===S};
bm.prototype.collapse=function(){this.isInitialized()&&(this.backgroundPageData?_.cv(this.miniplayerEl,"yt-navigate-cache",{url:this.backgroundPageData.url,endpoint:this.backgroundPageData.endpoint,data:this.backgroundPageData}):_.St(this.miniplayerEl,"yt-navigate-home-action"))};
_.U3c=function(S,p,U,Y){U=U===void 0?!1:U;var L,I,V;return _.T(function(W){switch(W.nextAddress){case 1:if(S.active){W.jumpTo(2);break}L=_.tW().resolve(_.oy);if(V=(I=S.playerElement)!=null?I:L.getPlayerFromWatch()){W.jumpTo(3);break}return _.k(W,_.tW().resolve(_.A7),4);case 4:V=L.getPlayerFromWatch();case 3:if(!V){_.eP(Error("Dj"));W.jumpTo(2);break}return _.k(W,S.activate(V,Y),2);case 2:return S.active?_.k(W,pRc(S,p,U),0):W.return()}})};
bm.prototype.activate=function(S,p,U){var Y=this,L,I,V,W,O,D,z,Q,J;return _.T(function(K){switch(K.nextAddress){case 1:if(!Y.isInitialized())return K.return();if(!S)return _.eP(Error("Dj")),K.return();if(_.Gbq()||Y.isMiniplayerActive())var G=!0;else G=_.Vy().watchPipActivation||_.Vy().watchWhileActivation,_.tW().resolve(_.oy).isOnWatch()&&!G?(_.eP(new _.y7("miniplayer activated on watch page")),G=!0):G=_.Vy().watchWhileActivation?Y.userDeactivatedWatchWhile||!!document.pictureInPictureElement||Zqq():
!1;if(G)return rtQ(),K.return();L=_.Vy().mediaSessionPipActivation;I=_.Vy().shortsPipActivation;V=_.Vy().watchPipActivation;O=(W=_.Vy().watchWhileActivation)||V;D=V||I;if(!Y.pictureInPictureEnabled()||!D){K.jumpTo(2);break}return _.k(K,iET(Y,L),3);case 3:if(!K.yieldResult)return _.eP(Error("Cj")),rtQ(),K.return();case 2:return Y.setActive(!0),Y.watchResponse=U,Y.playerElement=S,Y.updateMiniplayerData(p),_.k(K,Nio(Y,S),4);case 4:if(!Y.active)return _.eP(new _.y7("miniplayer deactivated during activation")),
Y.removePlayerListeners(),K.return();G=_.tW().resolve(_.Fz);G.addEventListener("yt-navigate",_.d9(Y,Y.onPlaylistNavigate));G.addEventListener("yt-playlist-data-updated",_.d9(Y,Y.JSC$16467_onPlaylistDataUpdated));Y.JSC$16467_onPlaylistDataUpdated();rtQ();Y.JSC$16467_watchWhileEnabled&&_.Bii(Y,W);Y.pictureInPictureEnabled()&&Y.shortsPipEnabled&&(Y.shortsPipMode=I,_.vJ().dispatch(WxI(Y.shortsPipMode)));Y.pictureInPictureEnabled()&&Y.watchPipEnabled&&(Y.watchPipMode=V,_.eJE(Y.handleMediaSessionPipActivation));
Y.player&&(z=Y.player.getPlayerState(),Q=z===1,_.vJ().dispatch(y6w(z)),_.pp(Y.miniplayerEl,"yt-miniplayer-play-state-changed",[Q]),_.Vy().isVideoPlaying=Q);_.pp(Y.miniplayerEl,"yt-miniplayer-endpoint-changed");qtq(Y);_.AdX(Y);return Y.shortsPipMode||Y.watchPipMode?_.k(K,_.Uh(Y.miniplayerEl,"yt-activate-pip-miniplayer"),6):_.y("ytd_miniplayer_to_wiz")?_.k(K,_.Uh(Y.miniplayerEl,"yt-activate-miniplayer",[O]),6):_.k(K,_.Uh(Y.miniplayerEl,"yt-activate-miniplayer-action",[S,O]),6);case 6:if(Y.watchResponse&&
!_.y("miniplayer_copy_screen_on_activation_killswitch")){G=Y.getScreenLayer();var X=_.X$(0),Z=nxG(0);X&&Z&&(_.ZL(X,Z,G),G===0&&zBr(void 0,0))}tXX(Y);cdJ(Y,!0);(J=Y.getPlayerElement())==null||J.focusOnPlayer();_.OV(K)}})};
bm.prototype.updateMiniplayerData=function(S){this.miniplayerData=S;_.jg(this,{data:S})};
_.AdX=function(S){var p,U,Y=((p=S.miniplayerData)==null?void 0:(U=p.miniplayerRenderer)==null?void 0:U.playbackMode)==="PLAYBACK_MODE_PAUSED_ONLY";p=S.watchWhileMode||S.watchPipMode?Y&&!_.tW().resolve(_.oy).isOnWatch():Y;_.jg(S,{isDisabled:p});var L,I;U=_.b((L=S.miniplayerData)==null?void 0:(I=L.miniplayerRenderer)==null?void 0:I.minimizedEndpoint,_.KQ);p&&U&&_.tW().resolve(_.K7).openSheet({openPopupActionCommand:{openPopupAction:U}},S.miniplayerEl)};
tXX=function(S){if(S.watchResponse&&!SHY(S)){var p,U=(p=S.watchResponse.playerResponse)==null?void 0:p.trackingParams;U&&(_.jg(S,{expandVe:_.bZ(35989),closeVe:_.bZ(34699),readyToResumeCloseVe:_.bZ(131070),repositionVe:_.bZ(226204),resizeVe:_.bZ(226205)}),_.jg(S,{playerVe:_.JS(U)}))}};
Nio=function(S,p){return _.T(function(U){if(U.nextAddress==1)return p.preparePlayer(),_.k(U,p.getPlayerPromise(),2);S.player=U.yieldResult;S.player&&(S.player.addEventListener("onPlayVideo",S.JSC$16467_onPlayerPlayVideo),S.player.addEventListener("onCloseMiniplayer",S.onPlayerCloseMiniplayer),S.player.addEventListener("onExpandMiniplayer",S.onPlayerExpandMiniplayer),S.player.addEventListener("onStateChange",S.onPlayerStateChange));_.OV(U)})};
_.M=bm.prototype;_.M.JSC$16467_onPlayerPlayVideo=function(S){var p=S.sessionData&&"autonav"in S.sessionData,U;S.sessionData&&S.sessionData.itct&&(U=S.sessionData.itct);var Y=S.watchEndpoint;p=Y&&p?_.CuX(Y,U):_.qw(S.videoId,S.listId||void 0,U);S.sessionData&&_.$n(_.b(p.commandMetadata,_.NU).url,S.sessionData);pRc(this,p)};
_.M.onPlayerExpandMiniplayer=function(){_.Jz(this)};
_.M.onPlayerCloseMiniplayer=function(){this.watchWhileMode&&(this.userDeactivatedWatchWhile=!0);this.close(this.watchWhileMode)};
_.M.onPlayerStateChange=function(){if(this.player){var S=this.player.getPlayerState(),p=S===1;_.vJ().dispatch(y6w(S));_.vJ().dispatch(_.bjm(S));_.pp(this.miniplayerEl,"yt-miniplayer-play-state-changed",[p]);_.Vy().isVideoPlaying=p;if(S===0){p=!_.og.getInstance().isAutoplaySetExplicitly();var U,Y,L,I,V,W,O=(U=this.watchResponse.response)==null?void 0:(Y=U.contents)==null?void 0:(L=Y.twoColumnWatchNextResults)==null?void 0:(I=L.autoplay)==null?void 0:(V=I.autoplay)==null?void 0:(W=V.autoplayExplicitChoiceDialogRenderer)==
null?void 0:W.confirmDialogRenderer;p&&O&&this.player.setAutonavState(1)}S===0&&this.watchWhileMode&&this.deactivate()}};
_.M.onPlaylistNavigate=function(S,p){var U=this,Y,L,I,V,W,O,D;return _.T(function(z){if(z.nextAddress==1){if(!_.b(p.endpoint,_.E$))return z.return();_.Vy().currentEndpoint=p.endpoint;_.pp(U.miniplayerEl,"yt-miniplayer-endpoint-changed");if(_.tW().resolve(_.oy).isOnWatch()&&(U.watchWhileMode||U.watchPipMode))return z.return();S.stopPropagation();(I=(L=_.b((Y=p.endpoint)==null?void 0:Y.commandMetadata,_.NU))==null?void 0:L.url)&&p.tempData&&!_.h9.isEmpty(p.tempData)&&_.$n(I,p.tempData);V={clientParams:{miniplayer:!0,
autoSaveToQueue:!1}};W=new rOI(function(){return U.getPlayerElement()},V,{layer:U.getScreenLayer()});
O=function(Q){W.processChunk({endpoint:p.endpoint,data:Q})};
pYP(U);U.miniplayerFetchRequest=UhL(U,p.endpoint,O);_.M2(z,2);return _.k(z,U.miniplayerFetchRequest,4)}if(z.nextAddress!=2)return D=z.yieldResult,YHY(U,D),_.CA(z,0);_.W4(z);_.OV(z)})};
_.M.JSC$16467_onPlaylistDataUpdated=function(){var S=_.tW().resolve(_.Fz).getPlaylistData();this.hasPlaylistData=!!S;_.jg(this,{externalPlaylistData:S||{}})};
_.M.close=function(S){if(this.isInitialized())if(S){if(!((this.watchWhileMode||this.watchPipMode)&&_.tW().resolve(_.oy).isOnWatch()||this.shortsPipMode)){var p;(p=this.getPlayerElement())==null||p.stop()}this.deactivate()}else _.e8().closeMiniplayer(this.miniplayerEl)};
_.M.deactivate=function(S){var p=this,U,Y,L,I;return _.T(function(V){if(V.nextAddress==1){if(!p.isInitialized()||!p.active)return V.return();p.setActive(!1);pYP(p);(U=!!S&&$YL(p,S))&&p.isSingleOptionSurveyActive&&_.St(p.miniplayerEl,"yt-show-watch-page-survey",[p.isSingleOptionSurveyActive]);return _.k(V,L7d(p),2)}if(V.nextAddress!=3){cdJ(p,!1);p.isReadyToResume=!1;p.watchResponse=void 0;p.updateMiniplayerData(void 0);p.shortsPipMode&&(p.shortsPipMode=!1,_.vJ().dispatch(WxI(p.shortsPipMode)),Rcq(p.pipController),
(Y=p.player)==null||Y.setInternalSize(NaN,NaN));p.watchPipMode&&(p.watchPipMode=!1,Rcq(p.pipController));(L=p.watchWhileMode)&&_.Bii(p,!1);p.removePlayerListeners();var W=_.tW().resolve(_.Fz);W.removeEventListener("yt-navigate",_.d9(p,p.onPlaylistNavigate));W.removeEventListener("yt-playlist-data-updated",_.d9(p,p.JSC$16467_onPlaylistDataUpdated));_.Vy().currentEndpoint=null;_.pp(p.miniplayerEl,"yt-miniplayer-endpoint-changed");p.playerElement=null;rtQ();return p.shortsPipMode||p.watchPipMode?V.jumpTo(3):
_.k(V,_.Uh(p.miniplayerEl,_.y("ytd_miniplayer_to_wiz")?"yt-deactivate-miniplayer":"yt-deactivate-miniplayer-action",[U,L]),3)}(I=p.player)==null||I.setInternalSize(NaN,NaN);p.player=null;_.OV(V)})};
var L7d=function(S){var p;return _.T(function(U){p=_.tW().resolve(_.oy);return S.shortsPipMode?_.k(U,p.movePlayerToShorts(S.playerElement),0):_.k(U,p.movePlayerToWatch(S.playerElement),0)})};
bm.prototype.removePlayerListeners=function(){this.player&&(this.player.removeEventListener("onPlayVideo",this.JSC$16467_onPlayerPlayVideo),this.player.removeEventListener("onCloseMiniplayer",this.onPlayerCloseMiniplayer),this.player.removeEventListener("onExpandMiniplayer",this.onPlayerExpandMiniplayer),this.player.removeEventListener("onStateChange",this.onPlayerStateChange))};
bm.prototype.setActive=function(S){this.active=S;this.isSingleOptionSurveyActive?_.St(this.miniplayerEl,"yt-close-popup-action",["ytd-single-option-survey-renderer"]):_.St(this.miniplayerEl,"yt-close-popup-action",["ytd-survey-follow-up-renderer"]);_.vJ().dispatch(_.S4({type:"SET_MINIPLAYER_IS_ACTIVE",payload:this.active}))};
_.Bii=function(S,p){S.watchWhileMode=p;_.jg(S,{watchWhile:p})};
cdJ=function(S,p){if(!SHY(S))if(S.shortsPipMode||S.watchPipMode){var U;(U=S.player)==null||U.setDocumentPictureInPicture(p)}else{var Y;(Y=S.player)==null||Y.setMinimized(p)}};
SHY=function(S){return S.watchWhileMode&&_.y("kevlar_watch_while_counterfactual")};
_.Jz=function(S){var p;return _.T(function(U){switch(U.nextAddress){case 1:if(!S.isInitialized())return U.return();_.M2(U,2);return _.k(U,S.miniplayerFetchRequest,4);case 4:_.CA(U,3);break;case 2:_.W4(U);case 3:S.watchResponse&&S.miniplayerData&&S.miniplayerData.watchEndpoint?(p={url:S.watchResponse.url,endpoint:S.miniplayerData.watchEndpoint,data:S.watchResponse,miniplayer:!0},_.cv(S.miniplayerEl,"yt-navigate-cache",p)):S.miniplayerData&&S.miniplayerData.watchEndpoint&&_.cv(S.miniplayerEl,"yt-navigate",
{endpoint:S.miniplayerData.watchEndpoint}),_.OV(U)}})};
pRc=function(S,p,U){var Y,L,I,V;return _.T(function(W){if(W.nextAddress==1){if($YL(S,p))return W.return();_.Vy().currentEndpoint=p;_.pp(S.miniplayerEl,"yt-miniplayer-endpoint-changed");_.pp(S.miniplayerEl,"yt-miniplayer-play-state-changed",[!1]);_.Vy().isVideoPlaying=!1;Y={clientParams:{miniplayer:!0,autoSaveToQueue:!U}};L=new rOI(function(){return S.getPlayerElement()},Y,{layer:S.getScreenLayer(),
parentLayer:0},void 0,S.readyToResumeVe);I=function(O){var D,z,Q=Object.assign({},(D=O.playerResponse)==null?void 0:(z=D.playerConfig)==null?void 0:z.playbackStartConfig,{startPaused:!0}),J;U&&((J=O.playerResponse)==null?0:J.playerConfig)&&(O.playerResponse.playerConfig.playbackStartConfig=Q);L.processChunk({endpoint:p,data:O})};
pYP(S);S.miniplayerFetchRequest=UhL(S,p,I);_.M2(W,2);return _.k(W,S.miniplayerFetchRequest,4)}if(W.nextAddress!=2)return V=W.yieldResult,YHY(S,V),_.CA(W,0);_.W4(W);_.OV(W)})};
bm.prototype.getScreenLayer=function(){return this.shortsPipMode||this.watchPipMode?11:3};
var pYP=function(S){S.miniplayerFetchRequest&&(S.miniplayerFetchRequest.cancel&&S.miniplayerFetchRequest.cancel("Active request obsolete"),S.miniplayerFetchRequest=null)},UhL=function(S,p,U){var Y=_.Oz.instance,L,I=(L=_.b(p.commandMetadata,_.NU))==null?void 0:L.url,V;
L=!I||_.y("disable_miniplayer_tempdata")?{}:(V=LnG(I))!=null?V:{};return wI(Y,p,L,window.location.href,"watch",function(W,O){U(O)},function(W){return W!==S.miniplayerFetchRequest})},YHY=function(S,p){var U;
_.T(function(Y){if(!p)return Y.return();S.watchResponse=p;tXX(S);qtq(S);U=_.t1w(p.response,p.playerResponse);if(S.isMiniplayerActive()){p.response&&(S.playerElement.watchNextData=p.response);var L=_.h9.getValueByKeys.apply(_.h9,[p].concat(_.jo(gtH)));_.h9.getValueByKeys.apply(_.h9,[p].concat(_.jo(fhw)))&&L&&_.tW().resolve(_.Fz).setAutoplayRenderer(L);if(L)if(_.y("kevlar_is_pupi_enabled")){var I,V,W,O,D,z=((I=p.response)==null?0:(V=I.playerOverlays)==null?0:(W=V.playerOverlayRenderer)==null?0:(O=W.autonavToggle)==
null?0:(D=O.autoplaySwitchButtonRenderer)==null?0:D.enabled)?2:1;_.og.getInstance().setState(z,!1,!1)}else I=ngE()?2:1,(z=S.player)==null||z.setAutonavState(I);S.updateMiniplayerData(U);_.AdX(S)}_.OV(Y)})},qtq=function(S){var p,U,Y=(p=S.watchResponse)==null?void 0:(U=p.playerResponse)==null?void 0:U.playabilityStatus,L;
p=Y==null?void 0:(L=Y.miniplayer)==null?void 0:L.miniplayerRenderer;(p==null?void 0:p.playbackMode)==="PLAYBACK_MODE_PAUSED_ONLY"&&p.minimizedEndpoint&&_.Yd(S.miniplayerEl,[p.minimizedEndpoint]);_.jg(S,{miniplayerRenderer:p,playabilityStatus:Y})};
bm.prototype.openToast=function(S,p){_.jg(this,{toastData:{data:S,label:p}})};
_.jg=function(S,p){var U=S.miniplayerEl,Y;for(Y in p)U[Y]=p[Y];(0,S.miniplayerPropSignalMap[1])(p)};
bm.prototype.getPlayerElement=function(){if(!this.isInitialized())return null;var S;return this.playerElement?this.playerElement:(S=_.tB(this.miniplayerEl).querySelector("#player-container"))==null?void 0:S.firstElementChild};
bm.prototype.pictureInPictureSupported=function(){return this.pipController.pictureInPictureSupported()};
var iET=function(S,p){p=p===void 0?!1:p;var U,Y,L,I,V,W,O;return _.T(function(D){if(D.nextAddress==1){U=navigator.userActivation.isActive||p;if(!U||!S.pictureInPictureSupported())return D.return(!1);Y=MuT(S);L=Y.width;I=Y.height;return _.k(D,S.pipController.openWindow({width:L,height:I}),2)}V=D.yieldResult;W=S.pipController.getWindow();if(!W||!V)return D.return(!1);W.document.body.style.overflow="hidden";O=Ecd(W);F2w(S.pipController,function(){I3i(S);O()});
return D.return(!0)})},MuT=function(S){var p=_.Vy().shortsPipActivation,U,Y;
S=p?.5625:(Y=(U=S.player)==null?void 0:U.getVideoAspectRatio())!=null?Y:16/9;U=Math.min(window.innerWidth,window.innerHeight)/2;p=p?0:76;return S>1?new _.OF(U,p+U/S):new _.OF(U*S,p+U)},I3i=function(S){var p;
_.T(function(U){p=_.tW().resolve(_.oy);return p.isOnWatch()&&S.watchPipMode||p.isOnShorts()&&S.shortsPipMode?_.k(U,S.deactivate(),0):S.miniplayerToPipMode?_.k(U,v5Y(S),0):S.watchPipMode?_.k(U,_.Jz(S),0):U.jumpTo(0)})};
bm.prototype.pictureInPictureEnabled=function(){return this.pictureInPictureSupported()&&(this.watchPipEnabled||this.shortsPipEnabled)};
_.$u.Object.defineProperties(bm.prototype,{TEST_ONLY:{configurable:!0,enumerable:!0,get:function(){}}});
bm[vF]=[XaE,qNw];var dhP="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(" "),
Vuq="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(" "),TZL="arrow_down arrow_up overflow_horizontal pause play-arrow shorts-comment shorts-dislike shorts-like shorts-share volume-off volume-up waveform".split(" "),
W7X="arrow_down arrow_up overflow_horizontal pause play share text_bubble thumb_down thumb_up volume_max volume_mute waveform".split(" ");var O8A=null;var kDY={},H8i=(kDY.initialized={priority:10,callback:function(S){var p=_.tW();p.addProvider({provide:ezl,useClass:hds});p.addProvider({provide:_.GGJ,useFactory:function(){return new gam}});
p.addProvider({provide:JJ,useValue:_.g7("INNERTUBE_CONTEXT_CLIENT_NAME","WEB")});p.addProvider({provide:fXm,useValue:5184E6});p.addProvider({provide:Skc,useValue:_.jC()});p.addProvider({provide:W2l,useClass:IMm});p.addProvider({provide:gS,useClass:gS});p.addProvider({provide:_.A7,useFactory:function(){return kWd.promise}});
p.addProvider({provide:_.DbH,useFactory:function(){return _.Hjq.promise}});
p.addProvider({provide:lvX,useValue:function(){var W;return((W=_.$L())==null?void 0:W.getPlayer())||null}});
var U={};p.addProvider((U.provide=_.Ey,U.useFactory=function(W,O){return function(){return zJG(W,O)}},U[vF]=[JJ,
fXm],U));U={};p.addProvider((U.provide=_.UQ,U.useClass=hEE,U[vF]=[JJ,fXm],U));U={};p.addProvider((U.provide=_.Ulu,U.useClass=PCm,U[vF]=[_.UQ],U));p.addProvider({provide:Tn,useFactory:_.vJ});p.addProvider({provide:M_,useFactory:_.vJ});p.addProvider({provide:HyQ,useFactory:_.vJ});p.addProvider({provide:Bsc,useFactory:_.vJ});p.addProvider({provide:_.XF,useFactory:_.vJ});p.addProvider({provide:L$,useValue:_.Tf});p.addProvider({provide:yed,useClass:bpd});p.addProvider({provide:nHt,useClass:Qjw});p.addProvider({provide:Fo,
useClass:Fo});p.addProvider({provide:MH,useClass:MH});p.addProvider({provide:Il,useClass:Il});p.addProvider({provide:Va,useClass:Va});p.addProvider({provide:uD,useClass:uD});p.addProvider({provide:zm,useClass:zm});p.addProvider({provide:pF,useClass:pF});p.addProvider({provide:Dpj,useValue:fdq});p.addProvider({provide:_.Jt,useFactory:_.HX});p.addProvider({provide:Be,useFactory:_.D9});U={};p.addProvider((U.provide=aid,U.useFactory=function(W){return function(O){var D=D===void 0?{}:D;var z,Q,J=(Q=_.b((z=
O.endpoint)==null?void 0:z.commandMetadata,_.NU))==null?void 0:Q.rootVe;if(J){var K,G;if(z=O.previousCsn||((G=_.b((K=O.endpoint)==null?void 0:K.commandMetadata,$Ve))==null?void 0:G.parentCsn)){var X=X===void 0?{}:X;if(z!==_.X$(X.layer)||J!==nxG(X.layer))jww(z,X.cttAuthInfo,X.layer||0),zBr(z,X.layer||0),K=X.layer||0,_.en(QwG(K===void 0?0:K),J);D.parentCsn=z}O.endpoint&&z?VNw(W,O.endpoint,D):_.S8(W,J,void 0,D);var Z;((Z=O.response)==null?0:Z.trackingParams)&&W.graftServerVe(O.response.trackingParams);
var l;((l=O.playerResponse)==null?0:l.trackingParams)&&W.graftServerVe(O.playerResponse.trackingParams);var a;((a=O.reelWatchSequenceResponse)==null?0:a.trackingParams)&&W.graftServerVe(O.reelWatchSequenceResponse.trackingParams)}}},U[vF]=[_.Jt],U));
U={};p.addProvider((U.provide=zce,U.useClass=D8m,U[vF]=[L$,_.XF],U));U={};p.addProvider((U.provide=cs,U.useClass=cs,U[vF]=[_.A7,_.XF],U));U={};p.addProvider((U.provide=Bs,U.useClass=Bs,U[vF]=[M_,_.cQ],U));p.addProvider({provide:_.byw,useClass:ZyE});U={};p.addProvider((U.provide=_.y6,U.useClass=GLc,U[vF]=[_.byw],U));p.addProvider({provide:_.K7,useClass:Ua});p.addProvider({provide:Bpc,useClass:VwA});p.addProvider({provide:_.bA,useClass:Sg});U={};p.addProvider((U.provide=_.oG,U.useClass=PkP,U[vF]=[_.oG],
U));p.addProvider({provide:_.cx,useClass:WWm});p.addProvider({provide:DY,useClass:DY});p.addProvider({provide:KN,useClass:KN});p.addProvider({provide:XH,useClass:pO});U={};p.addProvider((U.provide=sG,U.useClass=sG,U[vF]=[_.K7,XH],U));_.y("web_enable_feedback_endpoint_resolver")&&(U={},p.addProvider((U.provide=We,U.useClass=We,U[vF]=[Tn,Vx],U)),p.addProvider({provide:Vx,useClass:sjE}));_.y("web_enable_feedback_endpoint_resolver_batch_2")&&(U={},p.addProvider((U.provide=kT,U.useClass=kT,U[vF]=[Tn],
U)),U={},p.addProvider((U.provide=OG,U.useClass=OG,U[vF]=[Vx],U)));U={};p.addProvider((U.provide=Pe,U.useClass=Pe,U[vF]=[_.bA,XH],U));U={};p.addProvider((U.provide=Gn,U.useClass=Gn,U[vF]=[_.bA],U));U={};p.addProvider((U.provide=ZY,U.useClass=ZY,U[vF]=[_.F3,_.y6],U));U={};p.addProvider((U.provide=FH,U.useClass=FH,U[vF]=[_.F3,_.Jt],U));p.addProvider({provide:pk,useClass:pk});U={};p.addProvider((U.provide=N1,U.useClass=N1,U[vF]=[Tn],U));p.addProvider({provide:DA,useClass:DA});U={};p.addProvider((U.provide=
QJ,U.useClass=QJ,U[vF]=[Tn],U));U={};p.addProvider((U.provide=nk,U.useClass=nk,U[vF]=[_.F3,Tn],U));U={};p.addProvider((U.provide=J0,U.useClass=J0,U[vF]=[Tn],U));U={};p.addProvider((U.provide=yJ,U.useClass=yJ,U[vF]=[Tn],U));U={};p.addProvider((U.provide=hJ,U.useClass=hJ,U[vF]=[_.y6],U));U={};p.addProvider((U.provide=IZ,U.useClass=IZ,U[vF]=[_.Jt],U));U={};p.addProvider((U.provide=kF,U.useClass=kF,U[vF]=[ce],U));U={};p.addProvider((U.provide=H9,U.useClass=H9,U[vF]=[ce],U));p.addProvider({provide:Tc,
useClass:Tc});p.addProvider({provide:W9,useClass:W9});p.addProvider({provide:Mj,useClass:Mj});U={};p.addProvider((U.provide=eA,U.useClass=eA,U[vF]=[_.y6,_.cQ],U));p.addProvider({provide:nN,useClass:nN});U={};p.addProvider((U.provide=RG,U.useClass=RG,U[vF]=[_.F3,_.y6],U));p.addProvider({provide:bf,useClass:bf});U={};p.addProvider((U.provide=ve,U.useClass=ve,U[vF]=[Tn,_.F3,_.oG],U));U={};p.addProvider((U.provide=EG,U.useClass=EG,U[vF]=[_.F3,_.cQ],U));p.addProvider({provide:aTm,useValue:soG});p.addProvider({provide:mEl,
useValue:YYN});p.addProvider({provide:mr,useClass:mr});U={};p.addProvider((U.provide=xT,U.useClass=xT,U[vF]=[Tn],U));U={};p.addProvider((U.provide=$T,U.useClass=$T,U[vF]=[_.cx,_.cQ],U));U={};p.addProvider((U.provide=He,U.useClass=He,U[vF]=[_.cQ],U));p.addProvider({provide:dw,useFactory:function(){return new dw(_.vJ())}});
p.addProvider({provide:IUX,useFactory:_.Gv.getInstance});U={};p.addProvider((U.provide=yx,U.useClass=yx,U[vF]=[JJ,IUX,_.cQ],U));p.addProvider({provide:zn,useClass:zn});p.addProvider({provide:pN,useClass:pN});p.addProvider({provide:LN,useClass:LN});p.addProvider({provide:_.UG,useClass:_.UG});p.addProvider({provide:js,useClass:js});U={};p.addProvider((U.provide=aG,U.useClass=aG,U[vF]=[M_],U));U={};p.addProvider((U.provide=fN,U.useClass=fN,U[vF]=[_.cQ],U));_.y("web_enable_prefetching_videos_on_home")&&
(p.addProvider({provide:NL,useClass:NL}),p.addProvider({provide:k4,useClass:k4}));U={};p.addProvider((U.provide=bu,U.useClass=bu,U[vF]=[_.cQ],U));p.addProvider({provide:M1,useClass:M1});U={};p.addProvider((U.provide=UN,U.useClass=UN,U[vF]=[_.F3,_.cQ],U));U={};p.addProvider((U.provide=IG,U.useClass=IG,U[vF]=[_.cQ],U));p.addProvider({provide:Hp,useClass:Hp});p.addProvider({provide:ww,useClass:ww});U={};p.addProvider((U.provide=uf,U.useClass=uf,U[vF]=[M_,_.cQ],U));U={};p.addProvider((U.provide=h0,U.useClass=
h0,U[vF]=[M_,_.cQ,_.F3],U));U={};p.addProvider((U.provide=RZ,U.useClass=RZ,U[vF]=[_.cQ],U));U={};p.addProvider((U.provide=Gc,U.useClass=Gc,U[vF]=[_.cQ,_.F3],U));U={};p.addProvider((U.provide=CN,U.useClass=CN,U[vF]=[_.A7],U));U={};p.addProvider((U.provide=lf,U.useClass=lf,U[vF]=[_.A7],U));p.addProvider({provide:tJ,useClass:tJ});p.addProvider({provide:Ss,useClass:Ss});p.addProvider({provide:zc,useClass:zc});p.addProvider({provide:YF,useClass:YF});p.addProvider({provide:AJ,useClass:AJ});p.addProvider({provide:jA,
useClass:jA});p.addProvider({provide:q1,useClass:q1});_.y("kevlar_enable_mss_lazy_load")&&p.addProvider({provide:_.uG,useClass:MQt});p.addProvider({provide:_.Ts,useClass:LO});p.addProvider({provide:mS,useFactory:function(){return _.xv.getInstance()}});
p.addProvider({provide:Oyw,useFactory:P0r});p.addProvider({provide:ce,useFactory:function(){return _.na.getInstance()}});
p.addProvider({provide:Mjw,useValue:{singleEntityType:"mainVideoEntity",listEntityType:"mainPlaylistEntity"}});U={};p.addProvider((U.provide=_.qL,U.useClass=_.qL,U[vF]=[_.A7,_.cQ,_.Jt,Oyw,ce,mS,Mjw,L$],U));p.addProvider({provide:_.ds,useClass:gFd});p.addProvider({provide:_.x7c,useClass:C3m});U={};p.addProvider((U.provide=rw,U.useClass=rw,U[vF]=[_.x7c],U));U={};p.addProvider((U.provide=_.AV,U.useFactory=function(W){return W.upliftCompletionResolver.promise},U[vF]=[zce],U));
U=_.ub("IS_SHELL_LOAD")?"aa":"eocs";var Y=_.ub("IS_SHELL_LOAD")?3:2;_.Pt().parkOrScheduleJob(function(){nNm()},Y,U);
_.Pt().parkOrScheduleJob(function(){_.tW().resolve(cs).start()},2,"eocs");
_.Pt().parkOrScheduleJob(function(){kLP()},2,"eocs");
_.Pt().parkOrScheduleJob(function(){_.tW().resolve(Bs).start()},2,"eocs");
_.y("kevlar_debug_data_app_registration_ks")||V5E();p.addProvider({provide:_.rY,useValue:new j7H(S.root)});p.addProvider({provide:fv,useValue:new CTX});p.addProvider({provide:_.Znt,useValue:new XKm(S.root)});p.addProvider({provide:_.RS,useValue:new PUq});p.addProvider({provide:_.Hl,useClass:OQ});p.addProvider({provide:XaE,useClass:Y4});_.y("kevlar_network_sli_killswitch")||p.addProvider({provide:Zro,useValue:Naj});p.addProvider({provide:Kqi,useFactory:nJe});_.y("web_bind_fetch")&&(U={},p.addProvider((U.provide=
brA,U.useFactory=Jpw,U[vF]=[_.AW(Kqi)],U)));_.y("web_bind_parse")&&(U={},p.addProvider((U.provide=juo,U.useFactory=ypG,U[vF]=[_.AW(Kqi)],U)));_.y("web_bind_window_request")&&(U={},p.addProvider((U.provide=reo,U.useFactory=Kke,U[vF]=[_.AW(Kqi)],U)));U={};p.addProvider((U.provide=LDw,U.useFactory=uwd,U[vF]=[_.AV,Tn,_.Ey],U));U={};p.addProvider((U.provide=YkE,U.useClass=Fm,U[vF]=[LDw],U));p.addProvider({provide:yfc,useClass:zEj});p.addProvider({provide:cww,useClass:pUH});U=[].concat(_.jo(fs));_.y("web_continuation_response_processing")&&
U.push(_.Zt);U.push(J1w);_.y("enable_share_panel_navigation_logging_fix_on_web")&&U.push(_.xCt);p.addProvider({provide:Gcu,useValue:U});p.addProvider({provide:TAw,useClass:tEt});p.addProvider({provide:uEt,useClass:suT});U={};p.addProvider((U.provide=MIe,U.useClass=x6l,U[vF]=[M_],U));_.PA.addLowPriorityJob(function(){U3r()});
U={};p.addProvider((U.provide=tWl,U.useFactory=function(W){return function(O){var D,z=(D=_.b(O.commandMetadata,_.NU))==null?void 0:D.url;if(!z)throw new _.y7("No URL for PBJ Command",O);z=yrE(z,{pbj:"1"});D=acu(z,{})||{};D=Object.assign({},D,{"Content-Type":"application/x-www-form-urlencoded","x-youtube-csoc":"1","X-YouTube-STS":_.g7("STS").toString()});O=_.Og({command:JSON.stringify(O),session_token:_.g7("XSRF_TOKEN")});return W.fetch(z,{method:"POST",headers:D,body:O})}},U[vF]=[uEt],U));
U=[];U.push(p.resolve(cww));Y={};Y=(Y.client_location=_.Gv.getInstance(),Y.consistency=_.Jtw(),Y.entities=p.resolve(nHt),Y.response_received_commands=p.resolve(TAw),Y.store=p.resolve(_.Ulu),Y.tokens=p.resolve(cww),Y);if(_.y("web_shorts_prefetch_service_enabled")){var L=new ZGw(p.resolve(_.UQ));Y.shorts_prefetch=L}Y.adblock_detection=p.resolve(MIe);p.addProvider({provide:_.EP,useClass:_.EP});L=p.resolve(Dpj);var I=[];if(_.y("PremiumClientSharedConfig__enable_att_context_processor")||_.y("enable_att_for_transcript_request_on_web_client"))p.addProvider({provide:p5l,
useClass:tGc}),I.push(p.resolve(p5l));if(_.y("owl_pl_await")){var V={};p.addProvider((V.provide=DGo,V.useFactory=function(W){return new kGn(W)},V[vF]=[_.EP],V));
I.push(p.resolve(DGo))}Ugm(L,p.resolve(uEt),p.resolve(yed),Y,p.resolve(_.UQ),U,I,p.resolve(YkE),p.resolve(yfc));p.addProvider({provide:_.F3,useValue:_.uZ.instance});_.y("start_client_gcf")&&p.addProvider({provide:jP,useValue:IuP()});p.addProvider({provide:y_m,useFactory:function(){return new y_m(_.tW().resolve(_.EP),_.na.getInstance())}});
_.Pt().parkOrScheduleJob(function(){K2Q()},1,"eocs");
U={};p.addProvider((U.provide=tV,U.useClass=tV,U[vF]=[_.Ey,_.F3],U));p.addProvider({provide:_.waE,useFactory:_.Oa.getInstance});_.Pt().parkOrScheduleJob(function(){_.tW().resolve(tV).refresh()},0,"eocs");
cOl(fdq.watchEndpointMap||{},L.reelWatchEndpointMap||{},S.injector.resolve(_.F3));p.addProvider({provide:yj,useValue:_.Oz.instance});_.y("kevlar_signal_collection_killswitch")||(U={},p.addProvider((U.provide=Tud,U.useClass=Tud,U[vF]=[JJ,Be],U)),_.Pt().parkOrScheduleJob(function(){_.tW().resolve(Tud).record()},1,"eocs"));
_.y("web_debug_handler_registration_killswitch")||_.Pt().parkOrScheduleJob(function(){IvE("DOWNLOAD_PES",X6d);_.y("offline_client_state_export_ks")||IvE("OFFLINE_CLIENT_STATE",hJr)},0,"eocs");
_.y("kevlar_prevent_polymer_dynamic_font_load")&&_.Pt().parkOrScheduleJob(function(){var W=[_.UF(irX),_.UF(NNt)];W=_.d(W);for(var O=W.next();!O.done;O=W.next()){O=O.value;var D=document.createElement("link");_.E3(D,O,"stylesheet");document.head.appendChild(D)}},1,"eocs");
U=S.injector.resolve(_.F3);_.S_w.instance=new _.S_w(U);D3w($6I(new c$c(U)));U={};S.injector.addProvider((U.provide=AU,U.useFactory=function(W){(W=W==null?void 0:W.getCurrentPage())?W=W.visibilityObserver:(O8A||(O8A=Gbe()),W=O8A);return W},U[vF]=[_.AW(_.oy)],U.skipCache=!0,U));
p.addProvider({provide:_.eC,useClass:bm});p.addProvider({provide:WW,useClass:xjH});S.injector.addProvider({provide:$Qt,useValue:bnm});p.addProvider({provide:jLH,useValue:szq});p.addProvider({provide:_.Cz,useValue:m$q});S=p.addProvider;ant||(ant=new lnc);S.call(p,{provide:_.fnH,useValue:ant});p.addProvider({provide:_.EW,useValue:_.g7("HTML_DIR")==="rtl"?"rtl":"ltr"});p.addProvider({provide:ywE,useClass:P3d});p.addProvider({provide:_.dx,useClass:ME});_.tW().addProvider({provide:bwP,useValue:_.y("enable_web_delhi_icons")?
Vuq.concat(W7X):dhP.concat(TZL)});p.addProvider({provide:_.dC,useClass:_.dC});p.addProvider({provide:_.ERo,useValue:new xGL});p.addProvider({provide:yvE,useClass:D7t});p.addProvider({provide:Lk,useClass:Lk});p.addProvider({provide:dT,useClass:dT});S={};p.addProvider((S.provide=gw,S.useClass=gw,S[vF]=[_.F3,_.y6],S));p.addProvider({provide:rT,useClass:rT});p.addProvider({provide:fUj,useClass:ecH});p.addProvider({provide:ON,useClass:ON});p.addProvider({provide:n$e,useValue:U$Q});p.addProvider({provide:_.e3,
useClass:zgm});_.y("enable_payments_purchase_manager")&&p.addProvider({provide:MEl,useClass:U7E});p.addProvider({provide:vRt,useFactory:function(){return function(W){return _.oRE(W)}}});
p.addProvider({provide:_.q_m,useClass:AwQ});S={};p.addProvider((S.provide=Kk,S.useClass=Kk,S[vF]=[_.q_m],S));p.addProvider({provide:VJ,useClass:VJ});p.addProvider({provide:eum,useValue:TjP});p.addProvider({provide:AzE,useValue:_.vNc});p.addProvider({provide:nDw,useClass:sMm});p.addProvider({provide:omA,useValue:mtJ});S={};p.addProvider((S.provide=_.nO,S.useClass=vmd,S[vF]=[omA],S));_.y("web_ephemeral_actions")&&(S={},p.addProvider((S.provide=_.Tt,S.useClass=VK,S[vF]=[_.XF,_.Hl],S)));if(_.y("web_explore_hub_on_hover")||
_.y("web_client_explore_hub_on_hover"))S={},p.addProvider((S.provide=Qx,S.useClass=Qx,S[vF]=[_.F3,mS],S));p.addProvider({provide:fKG,useValue:sew});S={};p.addProvider((S.provide=eEt,S.useClass=sim,S[vF]=[_.F3],S))}},kDY);var DhJ={},z6t=(DhJ.initialized={priority:10,callback:function(){if(!PeA){$Id();j_w("FOREGROUND_HEARTBEAT_TRIGGER_ON_FOREGROUND");_.dE(_.Hd(j_w,"FOREGROUND_HEARTBEAT_TRIGGER_ON_INTERVAL"),3E4);if(_.y("log_heartbeat_with_lifecycles")){var S={};vL.instance||(vL.instance=new vL);vL.instance.install((S.document_visible={callback:rpr,priority:10},S.document_hidden={callback:rpr,priority:10},S))}else _.tE(document,"visibilitychange",rpr);PeA=!0}(S=_.X$())&&S!=="UNDEFINED_CSN"&&HWr(S)}},DhJ);var Q5i={},nAJ=(Q5i.initialized={callback:function(S){var p=_.bZ(232091),U=S.injector.resolve(_.Jt);_.pa(U,p);window.performance&&window.performance.getEntriesByType&&typeof window.performance.getEntriesByType==="function"?mRN()&&_.YV(U,p):(S=S.injector.resolve(vRt)("refresh_detector"))&&(S.get("first_tab_load")?_.YV(U,p):S.set("first_tab_load","1"))}},Q5i);var JiP={},yiE=(JiP.initialized={priority:10,callback:AXe},JiP);var K7Y={},b8q=(K7Y.initialized={priority:0,callback:function(){var S=new WPP,p="other";_.LT?p="chrome":_.YC?p="firefox":_.gE?p="safari":$U&&(p="edge");document.hasStorageAccess?document.hasStorageAccess().then(function(U){S.increment(_.Q7(),U,p)}).catch(function(){S.increment(_.Q7(),!1,p)}):S.increment(_.Q7(),!1,p)}},K7Y);var j5Y={},riq=(j5Y.rendering={priority:8,callback:tzr},j5Y);var GDq={},h6J=(GDq.rendering={priority:10,callback:OxG},GDq.rendered={callback:WXE},GDq),R6J={},F7Y=(R6J.rendering={callback:OxG},R6J.rendered={callback:WXE},R6J);var XYn=!1,P4A={},Z8s=(P4A.initialized={priority:10,callback:function(){XYn||(jVw({didPatch:function(S){S.el&&h9R(S.el,S.props)},
didUnmount:function(S){rzX(S.el)}}),XYn=!0)}},P4A);var s5X=/^\/shorts\/?$/;_.en("FILLER_DATA",{browse:{filler:!0,page:"browse"},search:{filler:!0,page:"search",endpoint:{commandMetadata:{webCommandMetadata:{url:"/results",webPageType:"WEB_PAGE_TYPE_SEARCH"}},urlEndpoint:{url:"/results"}},response:{contents:{twoColumnSearchResultsRenderer:{primaryContents:{sectionListRenderer:{contents:[],subMenu:{searchSubMenuRenderer:{}}}},secondaryContents:{secondarySearchContainerRenderer:{contents:[]}}}}}},watch:{filler:!0,page:"watch",endpoint:{commandMetadata:{webCommandMetadata:{url:"/watch",
webPageType:"WEB_PAGE_TYPE_WATCH"}},urlEndpoint:{url:"/watch"}},playerResponse:{playabilityStatus:{status:"OK"}},response:{contents:{twoColumnWatchNextResults:{results:{results:{contents:[{videoPrimaryInfoRenderer:{},videoSecondaryInfoRenderer:{}}]}},secondaryResults:{secondaryResults:{}}}}}}});
if(_.y("kevlar_enable_mss")){_.UZu(new vvq);var e6Y=!0,gAY,rC;e6Y=e6Y===void 0?!1:e6Y;gAY=gAY===void 0?!1:gAY;rC=rC===void 0?{}:rC;var uO5=rC.cssRowKey||"",wYP=rC.combinedSignature||"";!uO5&&window&&window._F_cssRowKey&&(uO5=window._F_cssRowKey,!wYP&&window._F_combinedSignature&&(wYP=window._F_combinedSignature));if(uO5&&typeof window._F_installCss!=="function")throw Error("td");var l35=rC.loaderClass||_.sw,Gt=Esk("base-js"),a3t,f3t=ose("",Gt);a3t=_.dc(f3t);var hz=new l35(a3t,uO5,wYP,e6Y,gAY),C4t=
rC.useCors||Gt&&Gt.hasAttribute("crossorigin"),xhq=rC.corsMode||Gt&&Gt.getAttribute("crossorigin");C4t&&(hz.useCors_=C4t);xhq&&(hz.corsMode_=xhq);rC.urlMaxLength&&(hz.urlMaxLength=rC.urlMaxLength);rC.fetchPriority&&(hz.fetchPriority=rC.fetchPriority);var EAT=sr();EAT.JSC$8059_loader_=hz;EAT.setBatchModeEnabled(!0)}
(function(){var S=document.querySelector("ytd-app");if(!S)throw Error("Ej");S=new Wp({root:S,injector:_.tW()});S.install(z6t);var p={};S.install((p.initialized={priority:10,callback:zWw},p));_.y("wp_lat_b")&&(p={},S.install((p.initialized={priority:10,callback:function(){D4e()}},p)));
p={};S.install((p.rendered={priority:0,callback:kWw},p));p={};S.install((p.rendered={priority:0,callback:function(){_.PA.addLowPriorityJob(function(){_.Zwj>1&&(Mjk(),WxE())},4E4)}},p));
S.install(yqs);S.install(nAJ);S.install(Z8s);$Gs||($Gs=!0,Object.assign(Yj,{handleError:X_q,enableComponentStacksInErrorMessages:!1,enableLazyTsx:_.y("mweb_enable_wiz_lazy_tsx")||_.y("kevlar_enable_wiz_lazy_tsx")}),sVk=LeQ,Keu=Pwe,lPu=cgE,gvX=S6w,_.y("ytwiz_enable_debug_component_props")&&mWw());S.install(FEP);S.install(HcE);S.install(nmn);S.install(U8w);S.install(d8q);S.install(heT);S.install(H8i);_.y("kevlar_enable_mss_lazy_load")&&S.install(yiE);S.install(zeJ);S.install(b8q);if(!_.ub("IS_SHELL_LOAD")||
_.y("kevlar_fetch_initial_data_promise_client")||_.y("sw_nav_preload_pbj")){var U=_.Tp(window.location.href);p=U&&U==="/watch";U=U&&U.match(s5X);p?S.install(F7Y):U?S.install(riq):S.install(h6J)}else S.install(WEY);S.install(bco);_.y("web_enable_prefetching_videos_on_home")&&S.install(sP5);_.y("start_client_gcf")&&S.install(Xkq);S.install(AfE);(new Oum).increment("INSTALLED");S.install(Pto);S.install(dts);S.transition("initialized");M1G()})();
_.LH=[[["NXBraW5kI3NmNDltbXR0cjg=","dmFsdWUjNWg4bXBlcGwyeGs0"],"eUFEX1BMQUNFTUVOVF9LSU5EX1BBVVNFI3B2bXJsYXB3bXA="]];_.YM=["bXdnNm1sNTdnbG9iYWxDYWxsYmFja3MjbTMwZQ==","MXJvbkFibm9ybWFsaXR5RGV0ZWN0ZWQjb2U1aXRuajA4aw==","U2tpcCNmZWN4Njd4bnVzZW9uQWQ=","dmY2NHJhd19wbGF5ZXJfcmVzcG9uc2UjNzdxdW8xbno=","MnN6MmdpbXJlbmRlcmluZ0NvbnRlbnQjdmcyZTQ="];_.w_="bXdnNm1sNTdnbG9iYWxDYWxsYmFja3MjbTMwZQ== MXJvbkFibm9ybWFsaXR5RGV0ZWN0ZWQjb2U1aXRuajA4aw== U2tpcCNmZWN4Njd4bnVzZW9uQWQ= dmY2NHJhd19wbGF5ZXJfcmVzcG9uc2UjNzdxdW8xbno= cXVldWVfbXVsdGlwbGVfc2tpcHNfa3MjMTJuZXhjMzk3N28xd2ViX3BsYXlsaXN0Xw== ZWYjbm1ucHRocnJuajJ3YWJfc2Ff MnN6MmdpbXJlbmRlcmluZ0NvbnRlbnQjdmcyZTQ=".split(" ");
_._ModuleManager_initialize=function(S,p){if(!_.Pm){if(!_.Z1)return;_.UZu(_.Z1())}_.Pm.setAllModuleInfoString(S,p)};
_._ModuleManager_initialize('kevlar_base_module/sy1/sy2/sy3/sy4:2,3/sy5/sy6:2,3/sy7/sy8/sy9/sya/syb/kevlar_main_module:1,4,5,6,7,8,9/syc:2/syd:6,a,d/sye/syf:5/syg/h8y2qb:4,e,f,g,h/syh/JzFVk:d,g,h,j/syi:8/xwEKAe:3,9,f,h,l/syj:e/syk:1,b,e,f,j,l/syl:o/nmfa2d:h,n,p/sym:7,o/syn:g,h,p,r/CF909:n,s/Tm0L3c:s/L3n37:g,h,n,r/iuT5Oc',['sy2','sy3','sy8','syc','sya','sy6','syi','syh','sye','syd','syb','sy1','syk','sy7','sy5','sym','syl','syg','syf','syj','syn','sy9','sy4','iuT5Oc','L3n37','Tm0L3c','CF909','nmfa2d','xwEKAe','JzFVk','h8y2qb','kevlar_main_module']);
}catch(e){_._DumpException(e)}
try{
_.Pp=function(S,p,U,Y,L){var I={};p&&(I[p]=U);Y?I.errorType=Y:L&&(I.errorReason=L);_.RV(S,I);_.Fr()};
_.ZT=function(S){var p=_.Pt();return _.$bw(p,S,1)};
_.jp({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 S=this.query;S&&(this.full||S[0]==="("||(S="("+S+")"),this._mq=window.matchMedia(S),this._add(),this.queryHandler(this._mq))},
queryHandler:function(S){this._setQueryMatches(S.matches)}});var tus;var ciX;var S3s=function(){};
_.M=S3s.prototype;_.M.addOwnKeyBinding=function(){};
_.M.removeOwnKeyBindings=function(){};
_.M.keyboardEventMatchesKeys=function(){};
_.M._collectKeyBindings=function(){};
_.M._prepKeyBindings=function(){};
_.M._addKeyBinding=function(){};
_.M._resetKeyEventListeners=function(){};
_.M._listenKeyEventListeners=function(){};
_.M._unlistenKeyEventListeners=function(){};
_.M._onKeyBindingEvent=function(){};
_.M._triggerKeyHandler=function(){};
_.M._tapHandler=function(){};
_.M._focusChanged=function(){};
_.M._detectKeyboardFocus=function(){};
_.M._userActivate=function(){};
_.M._upHandler=function(){};
_.M._spaceKeyDownHandler=function(){};
_.M._spaceKeyUpHandler=function(){};
_.M._asyncClick=function(){};
_.M._pressedChanged=function(){};
_.M._ariaActiveAttributeChanged=function(){};
_.M._activeChanged=function(){};
_.M._controlStateChanged=function(){};
_.M._changedButtonState=function(){};
_.M._focusBlurHandler=function(){};
_.M._disabledChanged=function(){};
_.M._changedControlState=function(){};
_.M._downHandler=function(){};
_.M.ensureRipple=function(){};
_.M.getRipple=function(){};
_.M.hasRipple=function(){};
_.M._noinkChanged=function(){};
_.M._focusedChanged=function(){};
_.M._createRipple=function(){};
_.M.registered=function(){};
_.M._invalidChanged=function(){};
_.M.hasValidator=function(){};
_.M.validate=function(){};
_.M._getValidity=function(){};
_.M._requiredChanged=function(){};
_.M._valueChanged=function(){};
_.M._checkedChanged=function(){};
_.M._buttonStateChanged=function(){};
_.M._setPressed=function(){};
_.M._setPointerDown=function(){};
_.M._setReceivedFocusFromKeyboard=function(){};
_.M._setFocused=function(){};
S3s=_.jp({is:"tp-yt-paper-radio-button",_template:function(){if(ciX!==void 0)return ciX;var S=document.createElement("template");_.h(S,'\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');
S.content.insertBefore(_.t().content.cloneNode(!0),S.content.firstChild);var p=S.content,U=p.insertBefore;tus===void 0&&(tus=document.createElement("template"));var Y=tus;U.call(p,Y.content.cloneNode(!0),S.content.firstChild);return ciX=S},
behaviors:[_.PZI],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(){_.oH(this,function(){if(this.getComputedStyleValue("--calculated-paper-radio-button-ink-size").trim()==="-1px"){var S=parseFloat(this.getComputedStyleValue("--calculated-paper-radio-button-size").trim()),p=Math.floor(3*S);p%2!==S%2&&p++;this.updateStyles({"--paper-radio-button-ink-size":p+"px"})}})}});var pET;var UJY;_.jp({_template:function(){if(UJY!==void 0)return UJY;var S=document.createElement("template");_.h(S,'\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');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);var p=S.content,U=p.insertBefore;pET===void 0&&(pET=document.createElement("template"));var Y=pET;U.call(p,Y.content.cloneNode(!0),S.content.firstChild);return UJY=S},
is:"tp-yt-paper-radio-group",behaviors:[_.okm],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(S){var p=this._valueToItem(S);if(!p||!p.hasAttribute("disabled")){if(this.selected){p=this._valueToItem(this.selected);if(this.selected==S)if(this.allowEmptySelection)S="";else{p&&(p.checked=!0);return}p&&
(p.checked=!1)}_.as.select.apply(this,[S]);this.fire("paper-radio-group-changed")}},
_activateFocusedItem:function(){this._itemActivate(this._valueForItem(this.focusedItem),this.focusedItem)},
_onUpKey:function(S){this._focusPrevious();S.preventDefault();this._activateFocusedItem()},
_onDownKey:function(S){this._focusNext();S.preventDefault();this._activateFocusedItem()},
_onLeftKey:function(S){_.msw._onLeftKey.apply(this,arguments);this._activateFocusedItem()},
_onRightKey:function(S){_.msw._onRightKey.apply(this,arguments);this._activateFocusedItem()},
_applySelection:function(){_.as._applySelection.apply(this,arguments)},
_resetTabindices:function(){_.bs._resetTabindices.apply(this,arguments);this.items.forEach(function(S){S.removeAttribute("aria-selected")},this)}});var Y3T;_.Ry("multiPageMenuSectionItems","compactLinkRenderer","ytd-compact-link-renderer");var sa=function(){return _.w.apply(this,arguments)||this};
_.r(sa,_.w);_.M=sa.prototype;_.M.computeHasPrimaryIcon=function(S){return!(!S.icon&&!S.thumbnail)};
_.M.computeHasSecondary=function(S){return!(!S.secondaryIcon&&!S.secondaryNotificationText)};
_.M.computeHideSecondaryString=function(S){return!_.y("disable_hide_empty_secondary_string")&&!S.secondaryNotificationText};
_.M.computeCompactLinkStyle=function(S){return S?S.toLowerCase().replace(/_/g,"-"):""};
_.M.computeHasFitHeight=function(S){return S==="COMPACT_LINK_STYLE_TYPE_TVFILM_ENTITY_PROVIDER_ATTRIBUTION"};
_.M.isActiveEndpoint=function(S){return(S=this.get("commandMetadata.webCommandMetadata.url",S))?_.Tp(window.location.href)!=="/account_transfer_channel"&&_.Tp(window.location.href)!=="/gaia_link"&&_.Tp(window.location.href)!=="/channel_switcher"||S!=="/account"?_.Tp(window.location.href)===S:!0:!1};
_.M.onTap=function(){var S;((S=this.data)==null?0:S.serviceEndpoint)&&_.Yd(this.hostElement,[this.data.serviceEndpoint])};
sa.prototype.onTap=sa.prototype.onTap;_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],sa.prototype,"ytRendererBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],sa.prototype,"data",void 0);_.x([_.g({reflectToAttribute:!0,computed:"isActiveEndpoint(data.navigationEndpoint)"}),_.E("design:type",Boolean)],sa.prototype,"active",void 0);_.x([_.g({reflectToAttribute:!0,computed:"computeCompactLinkStyle(data.style)"}),_.E("design:type",String)],sa.prototype,"compactLinkStyle",void 0);
_.x([_.g({computed:"computeIcon_(data.icon)"}),_.E("design:type",Object)],sa.prototype,"icon",void 0);_.x([_.g({computed:"computeIcon_(data.secondaryIcon)"}),_.E("design:type",Object)],sa.prototype,"secondaryIcon",void 0);_.x([_.g({computed:"computeHasSecondary(data)",reflectToAttribute:!0}),_.E("design:type",Boolean)],sa.prototype,"hasSecondary",void 0);_.x([_.g({computed:"computeHideSecondaryString(data)",reflectToAttribute:!0}),_.E("design:type",Boolean)],sa.prototype,"hideSecondaryString",void 0);
_.x([_.Vd("tap"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],sa.prototype,"onTap",null);sa=_.x([_.f({is:"ytd-compact-link-renderer",disableElementRegistration:!0})],sa);
_.C(sa,"ytd-compact-link-renderer",function(){if(Y3T!==void 0)return Y3T;var S=document.createElement("template");_.h(S,'\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');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);return Y3T=S},{mode:1});var L1q;_.Ry("multiPageMenuSectionItems","toggleThemeCompactLinkRenderer","ytd-toggle-theme-compact-link-renderer");
var eg=function(){var S=_.w.apply(this,arguments)||this;S.role="link";S.tabindex="0";S.actionMap=_.y("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 S};
_.r(eg,_.w);_.M=eg.prototype;_.M.dataChanged=function(){this.data&&(this.data.label?this.label=this.data.label:this.label=_.bE()==="USER_INTERFACE_THEME_DARK"?this.data.toggledOnTitle:this.data.toggledOffTitle)};
_.M.getCurrentTheme=function(){return _.jv()?document.documentElement.hasAttribute("dark")?"USER_INTERFACE_THEME_DARK":"USER_INTERFACE_THEME_LIGHT":_.bE()};
_.M.onThemeSelected=function(S,p){var U=S||p?S:_.KH(),Y=(U&&this.getCurrentTheme()!=="USER_INTERFACE_THEME_DARK"||!U&&this.getCurrentTheme()!=="USER_INTERFACE_THEME_LIGHT")&&!_.zZw(_.Tp(window.location.href));_.zI(0,165,S);_.zI(0,174,p);this.prefs.save();Y&&_.St(this.hostElement,"yt-dark-mode-toggled-action",[U]);_.St(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"])};
_.M.onTap=function(){this.data.serviceEndpoint&&_.Yd(this.hostElement,[this.data.serviceEndpoint])};
_.M.handleSignalActionToggleDarkThemeOn=function(){this.onThemeSelected(!0,!1)};
_.M.handleSignalActionToggleDarkThemeOff=function(){this.onThemeSelected(!1,!0)};
_.M.handleSignalActionToggleDarkThemeDevice=function(){this.onThemeSelected(!1,!1)};
eg.prototype.onTap=eg.prototype.onTap;eg.prototype.dataChanged=eg.prototype.dataChanged;_.x([_.F(_.Aj.YtActionHandlerBehavior),_.E("design:type",Object)],eg.prototype,"actionHandlerBehavior",void 0);_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],eg.prototype,"ytRendererBehavior",void 0);_.x([_.F(_.xz),_.E("design:type",Object)],eg.prototype,"paperItemBehaviors",void 0);_.x([_.g(),_.E("design:type",Object)],eg.prototype,"data",void 0);_.x([_.g({value:function(){return _.D9()}}),
_.E("design:type",_.NC)],eg.prototype,"prefs",void 0);_.x([_.g(),_.E("design:type",Object)],eg.prototype,"label",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],eg.prototype,"role",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],eg.prototype,"tabindex",void 0);_.x([_.z4("data"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],eg.prototype,"dataChanged",null);
_.x([_.Vd("tap"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],eg.prototype,"onTap",null);eg=_.x([_.f({is:"ytd-toggle-theme-compact-link-renderer",disableElementRegistration:!0})],eg);
_.C(eg,"ytd-toggle-theme-compact-link-renderer",function(){if(L1q!==void 0)return L1q;var S=document.createElement("template");_.h(S,'\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');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);return L1q=S},{mode:1});
}catch(e){_._DumpException(e)}
try{
var IOt,dJX;_.gC=function(S){return!!S.getOptions("captions")};
_.MOY=function(S){return(S=S.getOption("captions","track"))?!!S.displayName:!1};
_.um=function(S,p){_.X7(p,S,function(){return IOt[p]},function(U){IOt[p]=U;
if(!_.y("mweb_player_ve_show_ks")){var Y=_.X$(0);Y&&U&&_.a2(Y,U)}})};
_.wC=function(S){(S=IOt[S])&&_.YV(_.HX(),S)};
IOt={};var VOi;/*

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
*/
_.jp({_template:function(){if(VOi!==void 0)return VOi;var S=document.createElement("template");_.h(S,'\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');
S.content.insertBefore(_.t().content.cloneNode(!0),S.content.firstChild);var p=S.content,U=p.insertBefore;dJX===void 0&&(dJX=document.createElement("template"));var Y=dJX;U.call(p,Y.content.cloneNode(!0),S.content.firstChild);return VOi=S},
is:"tp-yt-paper-checkbox",behaviors:[_.PZI],hostAttributes:{role:"checkbox","aria-checked":!1,tabindex:0},properties:{ariaActiveAttribute:{type:String,value:"aria-checked"}},attached:function(){_.oH(this,function(){if(this.getComputedStyleValue("--calculated-paper-checkbox-ink-size").trim()==="-1px"){var S=this.getComputedStyleValue("--calculated-paper-checkbox-size").trim(),p="px",U=S.match(/[A-Za-z]+$/);U!==null&&(p=U[0]);S=parseFloat(S);U=8/3*S;p==="px"&&(U=Math.floor(U),U%2!==S%2&&U++);this.updateStyles({"--paper-checkbox-ink-size":U+
p})}})},
_computeCheckboxClass:function(S,p){var U="";S&&(U+="checked ");p&&(U+="invalid");return U},
_computeCheckmarkClass:function(S){return S?"":"hidden"},
_createRipple:function(){this._rippleContainer=this.$.checkboxContainer;return _.Fht._createRipple.call(this)}});var Tcd=new _.v("radioButtonSurveyOptionRenderer"),W1d=new _.v("checkboxSurveyOptionRenderer");var Ohi;var klq;var Hht=0,lm=function(){var S=_.w.call(this)||this;S.selected=!1;S.isOverlay=!1;S.inputId="toggle-option-"+Hht;Hht++;return S};
_.r(lm,_.w);lm.prototype.onTap=function(){_.cv(this.hostElement,"ytd-toggle-option-clicked")};
_.x([_.g(),_.E("design:type",String)],lm.prototype,"label",void 0);_.x([_.g(),_.E("design:type",String)],lm.prototype,"inputId",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],lm.prototype,"selected",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],lm.prototype,"isOverlay",void 0);lm=_.x([_.f({is:"ytd-toggle-option-renderer",disableElementRegistration:!0}),_.E("design:paramtypes",[])],lm);
_.C(lm,"ytd-toggle-option-renderer",function(){if(klq!==void 0)return klq;var S=document.createElement("template");_.h(S,'\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');
S.content.insertBefore(_.t().content.cloneNode(!0),S.content.firstChild);return klq=S},{mode:1});var aL=function(){var S=_.w.apply(this,arguments)||this;S.isToggleOption=!1;S.isOverlay=!1;return S};
_.r(aL,_.w);aL.prototype.onTap=function(S){S.preventDefault();this.data&&(S=!this.data.checked,this.set("data.checked",S),_.cv(this.hostElement,"ytd-checkbox-survey-option-changed",{checked:S,value:this.data.value}))};
_.$u.Object.defineProperties(aL.prototype,{label:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.responseText?this.ytRendererBehavior.getSimpleString(this.data.responseText):""}}});
aL.prototype.onTap=aL.prototype.onTap;_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],aL.prototype,"ytRendererBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],aL.prototype,"data",void 0);_.x([_.g(),_.E("design:type",Object)],aL.prototype,"isToggleOption",void 0);_.x([_.g(),_.E("design:type",Object)],aL.prototype,"isOverlay",void 0);_.x([_.e("data.responseText"),_.E("design:type",String),_.E("design:paramtypes",[])],aL.prototype,"label",null);
_.x([_.Vd("ytd-toggle-option-clicked"),_.E("design:type",Function),_.E("design:paramtypes",[Event]),_.E("design:returntype")],aL.prototype,"onTap",null);aL=_.x([_.f({is:"ytd-checkbox-survey-option-renderer",disableElementRegistration:!0})],aL);
_.C(aL,"ytd-checkbox-survey-option-renderer",function(){if(Ohi!==void 0)return Ohi;var S=document.createElement("template");_.h(S,'\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>');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);return Ohi=S},{mode:1});var DJt;var zfd;var fO=function(){var S=_.w.apply(this,arguments)||this;S.checked=!1;S.isToggleOption=!1;return S};
_.r(fO,_.w);fO.prototype.onTap=function(){this.data&&(this.checked?_.St(this.hostElement,"ytd-inline-survey-option-deselect-action"):_.St(this.hostElement,"ytd-inline-survey-option-select-action",[this.hostElement]))};
fO.prototype.onTap=fO.prototype.onTap;_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],fO.prototype,"ytRendererBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],fO.prototype,"data",void 0);_.x([_.g(),_.E("design:type",Object)],fO.prototype,"checked",void 0);_.x([_.g(),_.E("design:type",Object)],fO.prototype,"isToggleOption",void 0);_.x([_.Vd("ytd-toggle-option-clicked"),_.E("design:type",Function),_.E("design:paramtypes",[Event]),_.E("design:returntype")],fO.prototype,"onTap",null);
fO=_.x([_.f({is:"ytd-radio-button-survey-option-renderer",disableElementRegistration:!0})],fO);
_.C(fO,"ytd-radio-button-survey-option-renderer",function(){if(zfd!==void 0)return zfd;var S=document.createElement("template");_.h(S,'\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');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);return zfd=S},{mode:1});var CO=function(){var S=_.w.apply(this,arguments)||this;S.disableAnimation=!1;S.isToggleOption=!0;S.followUpSurveyCommand=null;S.selectedRatingEndpoint=null;S.isSlimlineSurveyFollowUp=!1;S.isShortsStyle=!1;S.styleOverrideAttribute=!0;S.isDarkMode=!1;S.isSubmitted=!1;S.roundedContainer=!0;S.improveShortsResponseRate=_.y("web_improve_shorts_response_rate");S.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 S};
_.r(CO,_.w);_.M=CO.prototype;
_.M.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"}}}}};
_.M.attached=function(){var S=this;this.isDarkMode=document.documentElement.hasAttribute("dark");this.intersectionObserver=new IntersectionObserver(function(U){var Y;if((Y=U[0])!=null&&Y.isIntersecting){_.OW().reportShown(S.hostElement);var L;(L=S.intersectionObserver)==null||L.unobserve(S.hostElement)}},{rootMargin:"0px",
threshold:.6});var p;(p=this.intersectionObserver)==null||p.observe(this.hostElement)};
_.M.onDarkModeToggledAction=function(S){this.isDarkMode=S};
_.M.dataChanged=function(){var S;if(((S=this.data)==null?void 0:S.style)==="INLINE_SURVEY_RENDERER_STYLE_SLIMLINE_FOLLOW_UP")this.isSlimlineSurveyFollowUp=!0;else{var p;((p=this.data)==null?void 0:p.style)==="INLINE_SURVEY_RENDERER_STYLE_SHORTS"?this.isShortsStyle=!0:this.expanded=!1}this.selectedRatingEndpoint=this.followUpSurveyCommand=null;var U,Y,L,I;this.darkColorPalette=(U=this.data)==null?void 0:(Y=U.inlineContent)==null?void 0:(L=Y.compactVideoRenderer)==null?void 0:(I=L.thumbnail)==null?
void 0:I.darkColorPalette;var V,W,O,D;this.lightColorPalette=(V=this.data)==null?void 0:(W=V.inlineContent)==null?void 0:(O=W.compactVideoRenderer)==null?void 0:(D=O.thumbnail)==null?void 0:D.lightColorPalette;var z,Q;if(((z=this.data)==null?0:(Q=z.inlineContent)==null?0:Q.compactVideoRenderer)&&this.isShortsStyle){var J,K,G,X;S=_.tS((J=this.data)==null?void 0:(K=J.inlineContent)==null?void 0:(G=K.compactVideoRenderer)==null?void 0:(X=G.thumbnail)==null?void 0:X.thumbnails);_.Ms(this.hostElement,
{"--yt-background-url":"url("+S+")"})}};
_.M.handleRequestCompletion=function(){this.hostElement.hidden&&_.cv(this.hostElement,"yt-dismissible-item-dismissed")};
_.M.onPopupClosed=function(S){var p;((p=S.detail)==null?void 0:p.popupRenderer)===this.hostElement&&(this.isSlimlineSurveyFollowUp&&!this.isSubmitted?_.St(this.hostElement,"ytd-slimline-survey-show-action"):this.isSlimlineSurveyFollowUp&&this.isSubmitted&&(this.isSubmitted=!1))};
_.M.handleInlineSurveyRatingSelect=function(S,p){var U=this;this.selectedRatingEndpoint=S;this.followUpSurveyCommand=p;this.expanded=!!S;this.getOptionRenderers().forEach(function(Y,L){U.notifyPath("followUpSurveyCommand.followUpOptions."+L+".checkboxSurveyOptionRenderer.checked");U.set("followUpSurveyCommand.followUpOptions."+L+".checkboxSurveyOptionRenderer.checked",!1)});
this.optionSelector.selectIndex(-1);this.improveShortsResponseRate&&(this.onSubmitTap(),S=this.get("data.response.expandableSurveyResponseRenderer.submitButton.buttonRenderer.command"),_.St(this.hostElement,"yt-reel-non-video-content-dismissal-command",[S]))};
_.M.onDismissTap=function(){if(this.isSlimlineSurveyFollowUp)_.St(this.hostElement,"yt-close-popup-action");else{this.hostElement.hidden=!0;var S,p=(S=this.data)==null?void 0:S.dismissalEndpoint;p&&this.ytComponentBehavior.resolveCommand(p)}};
_.M.onSubmitTap=function(){this.selectedRatingEndpoint&&(this.ytComponentBehavior.resolveCommand(this.selectedRatingEndpoint),this.followUpSurveyCommand&&this.submitFollowUpResponses());this.isSlimlineSurveyFollowUp&&(this.isSubmitted=!0,_.St(this.hostElement,"yt-close-popup-action"))};
_.M.submitFollowUpResponses=function(){if(this.getOptionRenderers().length!==0){if(this.isSingleSelect){if(!this.optionSelector.selectedItem)return;var S=[this.optionSelector.selectedItem.data.submissionEndpoint]}else{S=this.getOptionRenderers().filter(function(Y){return Y.checked});
if(S.length===0)return;S=S.map(function(Y){return Y.responseEndpoint})}var p=[];
S.forEach(function(Y,L){L!==0&&(Y=_.b(Y,_.Rp))&&Y.feedbackToken&&p.push(Y.feedbackToken)});
if(S=S[0]){var U={};p.length>0&&(U.extra_feedback_tokens=p);this.ytComponentBehavior.resolveCommand(S,{form:U})}}};
_.M.getOptionRenderers=function(){var S=this;return this.followUpSurveyCommand&&this.followUpSurveyCommand.followUpOptions?this.get("followUpSurveyCommand.followUpOptions").map(function(p){S.isSingleSelect=!!_.b(p,Tcd);return S.isSingleSelect?_.b(p,Tcd):_.b(p,W1d)}):[]};
_.M.handleInlineSurveyOptionSelect=function(S){S=this.optionSelector.indexOf(S);S!==-1&&this.optionSelector.selectIndex(S)};
_.M.handleInlineSurveyOptionDeselect=function(){this.optionSelector.selectIndex(-1)};
_.M.maybeGetBackgroundColor=function(S){return this.isDarkMode?S.section2Color:S.section3Color};
_.M.colorPaletteChanged=function(){var S=this.isDarkMode?this.darkColorPalette:this.lightColorPalette;S=S&&this.maybeGetBackgroundColor(S);this.dismissibleEl.style.backgroundColor=!S||this.isShortsStyle||this.isSlimlineSurveyFollowUp?"":_.s1(S)};
_.$u.Object.defineProperties(CO.prototype,{isOptionSelected:{configurable:!0,enumerable:!0,get:function(){return!!this.selectedRatingEndpoint}}});
CO.prototype.colorPaletteChanged=CO.prototype.colorPaletteChanged;CO.prototype.onPopupClosed=CO.prototype.onPopupClosed;CO.prototype.handleRequestCompletion=CO.prototype.handleRequestCompletion;CO.prototype.dataChanged=CO.prototype.dataChanged;_.x([_.F(_.qH.YtRendererstamperBehavior),_.E("design:type",Object)],CO.prototype,"ytRendererstamperBehavior",void 0);_.x([_.F(_.Aj.YtActionHandlerBehavior),_.E("design:type",Object)],CO.prototype,"actionHandlerBehavior",void 0);
_.x([_.F(_.eL.YtComponentBehavior),_.E("design:type",Object)],CO.prototype,"ytComponentBehavior",void 0);_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],CO.prototype,"ytRendererBehavior",void 0);_.x([_.F(_.Zh),_.E("design:type",Object)],CO.prototype,"ytdDismissibleItemBehavior",void 0);_.x([_.O2("#follow-up-survey-options"),_.E("design:type",Object)],CO.prototype,"optionSelector",void 0);_.x([_.g(),_.E("design:type",Object)],CO.prototype,"data",void 0);
_.x([_.g(),_.E("design:type",Object)],CO.prototype,"disableAnimation",void 0);_.x([_.g(),_.E("design:type",Object)],CO.prototype,"isToggleOption",void 0);_.x([_.g(),_.E("design:type",Object)],CO.prototype,"followUpSurveyCommand",void 0);_.x([_.g(),_.E("design:type",Object)],CO.prototype,"selectedRatingEndpoint",void 0);_.x([_.g({reflectToAttribute:!0,value:!1}),_.E("design:type",Boolean)],CO.prototype,"expanded",void 0);
_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],CO.prototype,"isSlimlineSurveyFollowUp",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],CO.prototype,"isShortsStyle",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],CO.prototype,"styleOverrideAttribute",void 0);_.x([_.g(),_.E("design:type",Boolean)],CO.prototype,"isSingleSelect",void 0);_.x([_.g(),_.E("design:type",Object)],CO.prototype,"isDarkMode",void 0);
_.x([_.g(),_.E("design:type",Object)],CO.prototype,"lightColorPalette",void 0);_.x([_.g(),_.E("design:type",Object)],CO.prototype,"darkColorPalette",void 0);_.x([_.e("selectedRatingEndpoint","isShortsStyle"),_.g({reflectToAttribute:!0}),_.E("design:type",Boolean),_.E("design:paramtypes",[])],CO.prototype,"isOptionSelected",null);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],CO.prototype,"roundedContainer",void 0);
_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],CO.prototype,"improveShortsResponseRate",void 0);_.x([_.O2("#dismissible"),_.E("design:type",HTMLElement)],CO.prototype,"dismissibleEl",void 0);_.x([_.O2("#dismiss-button yt-icon-button"),_.E("design:type",HTMLElement)],CO.prototype,"dismissButtonEl",void 0);_.x([_.O2("#inline-survey-header yt-icon-button"),_.E("design:type",HTMLElement)],CO.prototype,"inlineHeaderDismissButtonEl",void 0);
_.x([_.z4("data"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],CO.prototype,"dataChanged",null);_.x([_.Vd("yt-service-request-completed"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],CO.prototype,"handleRequestCompletion",null);_.x([_.Vd("yt-popup-closed"),_.E("design:type",Function),_.E("design:paramtypes",[CustomEvent]),_.E("design:returntype")],CO.prototype,"onPopupClosed",null);
_.x([_.T4("darkColorPalette","lightColorPalette","isDarkMode"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],CO.prototype,"colorPaletteChanged",null);CO=_.x([_.f({is:"ytd-inline-survey-renderer",disableElementRegistration:!0})],CO);
_.C(CO,"ytd-inline-survey-renderer",function(){if(DJt!==void 0)return DJt;var S=document.createElement("template");_.h(S,'\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');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);return DJt=S},{mode:1});var QKJ=["en-CA","en","es-MX","fr-CA"];_.nqA=_.$k(function(S){var p=_.vT(S,{isOverlay:!1,isModern:!1}),U=p.captionIconType,Y=p.onClick;S=p.ariaLabel;var L=p.ariaPressed,I=p.isOverlay,V=p.isModern;p=_.vH(function(D){_.um(D,127299)});
var W=_.kL(function(D){_.wC(127299);Y==null||Y(D);return!1}),O={};
return _.H("ytm-closed-captioning-button",{class:_.VD("ytmClosedCaptioningButtonHost",(O.ytmClosedCaptioningButtonIconDisabledOverlay=function(){return U()===-1&&I()},O.ytmClosedCaptioningButtonIconDisabled=function(){return U()===-1&&!I()},O))},_.H("button",{el:p,
class:"ytmClosedCaptioningButtonButton",title:S,"aria-label":S,"aria-pressed":L,"on:click":W},_.H(_.QD,{icon:function(){var D="";var z=V()?"CLOSED_CAPTION_DELHI_PLAYER":"CLOSED_CAPTION";var Q=_.D9().get("hl");z=!Q||QKJ.includes(Q)?z:"SUBTITLES";Q=U();switch(Q){case -1:case 0:D=z;break;case 1:D=z+"_FILLED";break;default:_.WP(Q)}return D}})))},"Xe");
_.nqA.idomCompat={callbacks:{onClick:!0}};
}catch(e){_._DumpException(e)}
try{
_.BN=function(S){return function(p,U){var Y=S||U.replace(/([A-Z])/g,"-$1").toLowerCase();Object.defineProperty(p,U,{get:function(){var L;return this.$?this.$[Y]:(L=_.WT(this))==null?void 0:L.querySelector("#"+Y)},
enumerable:!0,configurable:!0})}};_.qS=function(S){S=S===void 0?!1:S;_.hY.call(this);this.pubSub_=new _.kU(S);_.Hm(this,this.pubSub_)};
_.q_(_.qS,_.hY);_.qS.prototype.subscribe=function(S,p,U){return this.isDisposed()?0:this.pubSub_.subscribe(S,p,U)};
_.qS.prototype.unsubscribe=function(S,p,U){return this.isDisposed()?!1:this.pubSub_.unsubscribe(S,p,U)};
_.qS.prototype.unsubscribeByKey=function(S){return this.isDisposed()?!1:this.pubSub_.unsubscribeByKey(S)};
_.qS.prototype.publish=function(S,p){return this.isDisposed()?!1:this.pubSub_.publish.apply(this.pubSub_,arguments)};
}catch(e){_._DumpException(e)}
try{
var xjL=function(){_.Pp("ypcRedeemFlowStarted")},kc=function(S){_.Pp("ypcRedeemFlowFailed",void 0,void 0,void 0,S)},EFq=function(S,p,U){p&&U&&(S.videos.forEach(function(Y){Y.videoId===p&&(Y.itemId=U)}),S.recommendedVideos.forEach(function(Y){Y.videoId===p&&(Y.itemId=U)}))};var mjE;var oFP;/*

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
*/
_.jp({_template:function(){if(oFP!==void 0)return oFP;var S=document.createElement("template");_.h(S,'\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');
S.content.insertBefore(_.t().content.cloneNode(!0),S.content.firstChild);var p=S.content,U=p.insertBefore;mjE===void 0&&(mjE=document.createElement("template"));var Y=mjE;U.call(p,Y.content.cloneNode(!0),S.content.firstChild);return oFP=S},
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(S,p){var U=this._resolveSrc(S);U!==this._resolvedSrc&&(this._resolvedSrc="",this.$.img.removeAttribute("src"),this.$.sizedImgDiv.style.backgroundImage="",S===""||p?this._setLoading(!1):(this._resolvedSrc=U,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 S=this.$.sizedImgDiv.style,p=this.$.placeholder.style;S.backgroundSize=p.backgroundSize=this.sizing;S.backgroundPosition=p.backgroundPosition=this.sizing?this.position:"";S.backgroundRepeat=p.backgroundRepeat=this.sizing?"no-repeat":""},
_resolveSrc:function(S){S=_.UR(S,this.$.baseURIAnchor.href);S.length>=2&&S[0]==="/"&&S[1]!=="/"&&(S=(location.origin||location.protocol+"//"+location.host)+S);return S}});var vFA;var $jP;_.jp({_template:function(){if($jP!==void 0)return $jP;var S=document.createElement("template");_.h(S,'\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');
S.content.insertBefore(_.t().content.cloneNode(!0),S.content.firstChild);var p=S.content,U=p.insertBefore;vFA===void 0&&(vFA=document.createElement("template"));var Y=vFA;U.call(p,Y.content.cloneNode(!0),S.content.firstChild);return $jP=S},
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(S){return S?"false":"true"},
_headingChanged:function(S){var p=this.getAttribute("heading"),U=this.getAttribute("aria-label");typeof U==="string"&&U!==p||this.setAttribute("aria-label",S)},
_computeHeadingClass:function(S){return S?" over-image":""},
_computeAnimated:function(S){return S}});var ikP=new _.v("addRendererToItemSectionAction");var NTE;var HM=function(){return _.w.apply(this,arguments)||this};
_.r(HM,_.w);HM.prototype.configureRendererStamper=function(){return{"data.actionMenu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],HM.prototype,"rendererBehavior",void 0);_.x([_.F(_.Zh),_.E("design:type",Object)],HM.prototype,"dismissibleItemBehavior",void 0);_.x([_.F(_.qH.YtRendererstamperBehavior),_.E("design:type",Object)],HM.prototype,"rendererstamperBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],HM.prototype,"data",void 0);HM=_.x([_.f({is:"ytd-comment-history-entry-renderer",disableElementRegistration:!0})],HM);
_.C(HM,"ytd-comment-history-entry-renderer",function(){if(NTE!==void 0)return NTE;var S=document.createElement("template");_.h(S,'\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');
S.content.insertBefore(_.t().content.cloneNode(!0),S.content.firstChild);return NTE=S},{mode:1});var BTE;_.Ry("itemSectionRenderer","notificationRenderer","ytd-notification-renderer");_.Ry("multiPageMenuSectionItems","notificationRenderer","ytd-notification-renderer");var DI=function(){return _.w.apply(this,arguments)||this};
_.r(DI,_.w);_.M=DI.prototype;_.M.configureRendererStamper=function(){return{"data.contextualMenu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.highPriorityNotificationActionButton":{id:"call-to-action",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.M.onKeyUp=function(S){if(S.keyCode===13)this.onTap()};
_.M.onTap=function(){this.data.recordClickEndpoint&&_.tW().resolve(_.cQ).resolveCommand(this.data.recordClickEndpoint,{form:{element:this.hostElement}});var S=this.data.navigationEndpoint;S&&_.b(S,_.G1)&&_.tW().resolve(_.cQ).resolveCommand(S,{form:{element:this.hostElement}})};
_.M.readChanged=function(){var S;_.U2(this.hostElement,"unread",!((S=this.data)==null?0:S.read))};
_.M.dataChanged=function(){this.data&&_.U2(this.hostElement,"high-priority-notification",!!this.data.highPriorityNotification)};
_.M.computeThumbnailSize=function(){var S;return((S=this.data)==null?0:S.highPriorityNotification)?32:48};
_.M.getEndpointURL=function(S){return S&&!_.b(S,_.G1)?this.componentBehavior.computeHref_(S):null};
_.M.getEndpointData=function(S){return S&&!_.b(S,_.G1)?S:null};
DI.prototype.computeThumbnailSize=DI.prototype.computeThumbnailSize;DI.prototype.dataChanged=DI.prototype.dataChanged;DI.prototype.readChanged=DI.prototype.readChanged;DI.prototype.onKeyUp=DI.prototype.onKeyUp;_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],DI.prototype,"ytRendererBehavior",void 0);_.x([_.F(_.qH.YtRendererstamperBehavior),_.E("design:type",Object)],DI.prototype,"ytRendererstamperBehavior",void 0);
_.x([_.F(_.eL.YtComponentBehavior),_.E("design:type",Object)],DI.prototype,"componentBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],DI.prototype,"data",void 0);_.x([_.g({computed:"computeThumbnailSize(data.highPriorityNotification)"}),_.E("design:type",Number)],DI.prototype,"thumbnailSize",void 0);_.x([_.Vd("keyup"),_.E("design:type",Function),_.E("design:paramtypes",[KeyboardEvent]),_.E("design:returntype")],DI.prototype,"onKeyUp",null);
_.x([_.T4("data.read"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],DI.prototype,"readChanged",null);_.x([_.T4("data"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],DI.prototype,"dataChanged",null);_.x([_.T4("data.highPriorityNotification"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],DI.prototype,"computeThumbnailSize",null);
DI=_.x([_.f({is:"ytd-notification-renderer",disableElementRegistration:!0})],DI);
_.C(DI,"ytd-notification-renderer",function(){if(BTE!==void 0)return BTE;var S=document.createElement("template");_.h(S,'\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');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);return BTE=S},{mode:1});var qNP;var zu=function(){return _.w.apply(this,arguments)||this};
_.r(zu,_.w);zu.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"}}}};
zu.prototype.computeActionButtonClass=function(S){return!S.actionButtons||S.actionButtons.length<=1?"single-button":S.description?"vertical-buttons":"horizontal-buttons"};
_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],zu.prototype,"ytRendererBehavior",void 0);_.x([_.F(_.qH.YtRendererstamperBehavior),_.E("design:type",Object)],zu.prototype,"ytRendererstamperBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],zu.prototype,"data",void 0);zu=_.x([_.f({is:"ytd-playlist-show-metadata-renderer",disableElementRegistration:!0})],zu);
_.C(zu,"ytd-playlist-show-metadata-renderer",function(){if(qNP!==void 0)return qNP;var S=document.createElement("template");_.h(S,'\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');
S.content.insertBefore(_.t().content.cloneNode(!0),S.content.firstChild);return qNP=S},{mode:1});var A0L;_.Ry("itemSectionRenderer","purchaseItemRenderer","ytd-purchase-item-renderer");var QN=function(){return _.w.apply(this,arguments)||this};
_.r(QN,_.w);_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],QN.prototype,"ytRendererBehavior",void 0);_.x([_.F(_.qH.YtRendererstamperBehavior),_.E("design:type",Object)],QN.prototype,"ytRendererstamperBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],QN.prototype,"data",void 0);QN=_.x([_.f({is:"ytd-purchase-item-renderer",disableElementRegistration:!0})],QN);
_.C(QN,"ytd-purchase-item-renderer",function(){if(A0L!==void 0)return A0L;var S=document.createElement("template");_.h(S,'\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');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);return A0L=S},{mode:1});var tsA;var c0q={};c0q.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(S){if(S)return S.replace(this.LAYOUT_STYLE_PREFIX_,"").replace(/_/g,"-").toLowerCase()},
computeRole_:function(S){if(S==="SIMPLE_TEXT_LAYOUT_STYLE_PAID_SUBSCRIPTION_TITLE")return"heading"}};_.Ry("itemSectionRenderer","simpleTextSectionRenderer","ytd-simple-text-section-renderer");var no=function(){return _.w.apply(this,arguments)||this};
_.r(no,_.w);no.prototype.onYtNavigate=function(S){var p=this.openPopupBehavior.getNavigationEndpointPopupAction(S.detail.endpoint);p&&(S.stopPropagation(),this.openPopupBehavior.openPopup(p))};
no.prototype.onYtNavigate=no.prototype.onYtNavigate;_.x([_.F(c0q.YtSimpleTextSectionBehavior),_.E("design:type",Object)],no.prototype,"ytSimpleTextSectionBehavior",void 0);_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],no.prototype,"ytRendererBehavior",void 0);_.x([_.F(_.xK),_.E("design:type",Object)],no.prototype,"openPopupBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],no.prototype,"data",void 0);
_.x([_.Vd("yt-navigate"),_.E("design:type",Function),_.E("design:paramtypes",[CustomEvent]),_.E("design:returntype")],no.prototype,"onYtNavigate",null);no=_.x([_.f({is:"ytd-simple-text-section-renderer",disableElementRegistration:!0})],no);
_.C(no,"ytd-simple-text-section-renderer",function(){if(tsA!==void 0)return tsA;var S=document.createElement("template");_.h(S,'\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');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);return tsA=S},{mode:1});var SAs;_.Ry("itemSectionRenderer","unlimitedPageFeatureInfoRenderer","ytd-unlimited-page-feature-info-renderer");var JX=function(){return _.w.apply(this,arguments)||this};
_.r(JX,_.w);_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],JX.prototype,"ytRendererBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],JX.prototype,"data",void 0);JX=_.x([_.f({is:"ytd-unlimited-page-feature-info-renderer",disableElementRegistration:!0})],JX);
_.C(JX,"ytd-unlimited-page-feature-info-renderer",function(){if(SAs!==void 0)return SAs;var S=document.createElement("template");_.h(S,'\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');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);return SAs=S},{mode:1});var p0q;var UMt;var yN=function(){return _.w.apply(this,arguments)||this};
_.r(yN,_.w);yN.prototype.dataChanged=function(){if(this.data){var S=this.get("background.thumbnailLandscapePortraitRenderer.portrait.thumbnails",this.data);S&&(S=_.AS(S,screen.width),this.hostElement.style.backgroundImage="url("+S+")")}};
yN.prototype.dataChanged=yN.prototype.dataChanged;_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],yN.prototype,"ytRendererBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],yN.prototype,"data",void 0);_.x([_.T4("data"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],yN.prototype,"dataChanged",null);yN=_.x([_.f({is:"ytd-post-redemption-section-renderer",disableElementRegistration:!0})],yN);
_.C(yN,"ytd-post-redemption-section-renderer",function(){if(UMt!==void 0)return UMt;var S=document.createElement("template");_.h(S,'\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');
S.content.insertBefore(_.t().content.cloneNode(!0),S.content.firstChild);return UMt=S},{mode:1});var YAs;var Ko=function(){return _.w.apply(this,arguments)||this};
_.r(Ko,_.w);Ko.prototype.configureRendererStamper=function(){return{"data.sections":{id:"contents",mapping:{postRedemptionSectionRenderer:{component:"ytd-post-redemption-section-renderer",noInjection:!0}}}}};
_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],Ko.prototype,"ytRendererBehavior",void 0);_.x([_.F(_.qH.YtRendererstamperBehavior),_.E("design:type",Object)],Ko.prototype,"ytRendererstamperBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],Ko.prototype,"data",void 0);Ko=_.x([_.f({is:"ytd-ypc-post-redemption-renderer",disableElementRegistration:!0})],Ko);
_.C(Ko,"ytd-ypc-post-redemption-renderer",function(){if(YAs!==void 0)return YAs;var S=document.createElement("template");_.h(S,'\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');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);return YAs=S},{mode:1});_.Ry("itemSectionRenderer","redeemCodeRenderer","ytd-redeem-code-renderer");var bP=function(){var S=_.w.apply(this,arguments)||this;S.MIN_CODE_LENGTH=12;S.MAX_CODE_LENGTH=24;return S};
_.r(bP,_.w);_.M=bP.prototype;_.M.configureRendererStamper=function(){return{postRedemptionRenderer:{id:"success-page",mapping:{ypcPostRedemptionRenderer:"ytd-ypc-post-redemption-renderer"}}}};
_.M.created=function(){this.riskService=new _.B2w;this.loadPaymentThenable=_.ATk(_.g7("YPC_MB_URL"))};
_.M.ready=function(){var S=this;this.code.addEventListener("keypress",function(p){S.onCodeInputKeypress(p)})};
_.M.dataChanged=function(){var S=this;this.redeemButtonDisabled=!0;this.observer=new MutationObserver(function(p){p=_.d(p);for(var U=p.next();!U.done;U=p.next())U=U.value,U.type==="attributes"&&U.attributeName==="dark"&&S.updateBackground()});
this.observer.observe(document.documentElement,{attributes:!0});this.updateBackground()};
_.M.updateBackground=function(){if(document.documentElement.hasAttribute("dark"))this.hostElement.style.setProperty("background-image","none");else{var S=this.computeImageUrl(this.data.thumbnail);this.hostElement.style.setProperty("background-image","url("+S+")")}};
_.M.computeRedeemButton=function(S){(S=this.get("redeemButton.buttonRenderer",S))&&(S=Object.assign({},S,{serviceEndpoint:void 0}));return S};
_.M.onRedeemButtonTap=function(S){S.stopPropagation();xjL();this.redeemCode()};
_.M.redeemCode=function(){var S=this;this.isLoading=!0;var p=this.riskService.init();_.DS([p,this.loadPaymentThenable]).then(function(){var U=S.data.redeemButton.buttonRenderer.serviceEndpoint,Y=_.q4N(),L=payments.business.integration.ClientTokenFactory.createClientToken(_.b(U,_.mcm).countryCode,Y);Y={c:S.code.value.trim(),rd:window.btoa(Y),ctk:L};U&&_.tW().resolve(_.cQ).resolveCommand(U,{form:Object.assign({},Y,{element:S.hostElement})})},function(){S.showGenericError();
kc("YPC_ERROR_REASON_RISK_LIB_LOAD_FAILURE")}).thenCatch(function(){_.w7(Error("Sl"))})};
_.M.onYtServiceRequestCompleted=function(S){S.stopPropagation();this.isLoading=!1;var p,U;this.errorMessage=(p=S.detail)==null?void 0:(U=p.data)==null?void 0:U.errorMessage;var Y,L;this.postRedemptionRenderer=(Y=S.detail)==null?void 0:(L=Y.data)==null?void 0:L.renderer;var I,V;if(S=(I=S.detail)==null?void 0:(V=I.data)==null?void 0:V.redirectEndpoint)this.isLoading=!0,_.cv(this.hostElement,"yt-navigate",{endpoint:S});this.errorMessage?kc("YPC_ERROR_REASON_REDEEM_INNERTUBE_FAILURE"):(this.postRedemptionRenderer||
S)&&_.Pp("ypcRedeemFlowSucceeded")};
_.M.onYtServiceRequestError=function(S){S.stopPropagation();this.isLoading=!1;if(S=this.get("detail.error.message",S))this.errorMessage=_.Ec(S);kc("YPC_ERROR_REASON_YPC_REDEEM_CODE_RPC_FAILURE")};
_.M.onInvokeInstrumentManagerActionCompleted=function(S){S.stopPropagation();this.redeemCode()};
_.M.onInvokeInstrumentManagerActionError=function(S){S.stopPropagation();this.isLoading=!1;switch(this.get("detail.error.errorCode",S)){case "instrumentManagerLoadError":this.showGenericError();kc("YPC_ERROR_REASON_INST_MANAGER_LOAD_FAILURE");break;case "instrumentManagerCallbackError":this.showGenericError();kc("YPC_ERROR_REASON_INST_MANAGER_CALLBACK_FAILURE");break;case "instrumentManagerCancelled":_.Pp("ypcRedeemFlowCancelled")}};
_.M.onInput=function(){var S=this;_.w9(this,"onInput",function(){var p=S.code.value.trim();S.redeemButtonDisabled=p.length<S.MIN_CODE_LENGTH||p.length>S.MAX_CODE_LENGTH},200)};
_.M.onCodeInputKeypress=function(S){S.keyCode!==13||this.redeemButtonDisabled||this.isLoading||(xjL(),this.redeemCode())};
_.M.computeImageUrl=function(S){return S?_.AS(S.thumbnails,600):null};
_.M.showGenericError=function(){this.isLoading=!1;this.errorMessage=this.get("errorMessage",this.data)};
bP.prototype.onInvokeInstrumentManagerActionError=bP.prototype.onInvokeInstrumentManagerActionError;bP.prototype.onInvokeInstrumentManagerActionCompleted=bP.prototype.onInvokeInstrumentManagerActionCompleted;bP.prototype.onYtServiceRequestError=bP.prototype.onYtServiceRequestError;bP.prototype.onYtServiceRequestCompleted=bP.prototype.onYtServiceRequestCompleted;bP.prototype.dataChanged=bP.prototype.dataChanged;
_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],bP.prototype,"ytRendererBehavior",void 0);_.x([_.F(_.qH.YtRendererstamperBehavior),_.E("design:type",Object)],bP.prototype,"ytRendererstamperBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],bP.prototype,"data",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Boolean)],bP.prototype,"isLoading",void 0);_.x([_.g(),_.E("design:type",Boolean)],bP.prototype,"redeemButtonDisabled",void 0);
_.x([_.g(),_.E("design:type",Object)],bP.prototype,"errorMessage",void 0);_.x([_.g(),_.E("design:type",Object)],bP.prototype,"postRedemptionRenderer",void 0);_.x([_.g(),_.E("design:type",Object)],bP.prototype,"observer",void 0);_.x([_.O2("#code"),_.E("design:type",HTMLInputElement)],bP.prototype,"code",void 0);_.x([_.T4("data"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],bP.prototype,"dataChanged",null);
_.x([_.Vd("yt-service-request-completed"),_.E("design:type",Function),_.E("design:paramtypes",[CustomEvent]),_.E("design:returntype")],bP.prototype,"onYtServiceRequestCompleted",null);_.x([_.Vd("yt-service-request-error"),_.E("design:type",Function),_.E("design:paramtypes",[CustomEvent]),_.E("design:returntype")],bP.prototype,"onYtServiceRequestError",null);
_.x([_.Vd("yt-invoke-instrument-manager-action-completed"),_.E("design:type",Function),_.E("design:paramtypes",[CustomEvent]),_.E("design:returntype")],bP.prototype,"onInvokeInstrumentManagerActionCompleted",null);_.x([_.Vd("yt-invoke-instrument-manager-action-error"),_.E("design:type",Function),_.E("design:paramtypes",[CustomEvent]),_.E("design:returntype")],bP.prototype,"onInvokeInstrumentManagerActionError",null);bP=_.x([_.f({is:"ytd-redeem-code-renderer",disableElementRegistration:!0})],bP);
_.C(bP,"ytd-redeem-code-renderer",function(){if(p0q!==void 0)return p0q;var S=document.createElement("template");_.h(S,'\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');
S.content.insertBefore(_.t().content.cloneNode(!0),S.content.firstChild);return p0q=S},{mode:1});var LIT;_.Ry("itemSectionRenderer","channelAboutFullMetadataRenderer","ytd-channel-about-metadata-renderer");var jz=function(){var S=_.w.apply(this,arguments)||this;S.businessEmailDisplayState="HIDE_SECTION";return S};
_.r(jz,_.w);_.M=jz.prototype;_.M.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}}}}}};
_.M.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"};
_.M.detached=function(){this.businessEmailErrorMessage=this.businessEmail=void 0;this.businessEmailDisplayState="HIDE_SECTION"};
_.M.onBusinessEmailClick=function(){this.data&&(this.data.bypassBusinessEmailCaptcha?this.businessEmailDisplayState="BUSINESS_EMAIL":(_.uL("https://www.google.com/recaptcha/api.js?trustedtypes=true"),this.businessEmailDisplayState="CAPTCHA"))};
_.M.onYtServiceRequestCompleted=function(S){var p;if((p=S.detail.data)==null?0:p.businessEmail)this.businessEmail=S.detail.data.businessEmail,this.businessEmailDisplayState="BUSINESS_EMAIL";else{var U;if((U=S.detail.data)==null?0:U.errorMessage)this.businessEmailErrorMessage=S.detail.data.errorMessage,this.businessEmailDisplayState="ERROR_MESSAGE"}};
_.M.computeEmailHref=function(S){return"mailto:"+S};
_.M.computeSafeUrl=function(S){if(S)return _.JA(S)};
_.M.onBusinessEmailCaptchaSubmit=function(){var S;(S=this.data)!=null&&S.onBusinessEmailRevealClickCommand&&(S=this.JSC$19080_captchaTextarea.value)&&(S={recaptcha_response_token:S,channel_id:this.data.channelId},_.tW().resolve(_.cQ).resolveCommand(this.data.onBusinessEmailRevealClickCommand,{form:Object.assign({},S,{element:this.hostElement})}))};
_.M.recaptchaSiteKey=function(){return"6Lf39AMTAAAAALPbLZdcrWDa8Ygmgk_fmGmrlRog"};
_.$u.Object.defineProperties(jz.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 S,p;return!((S=this.data)==null||!S.primaryLinks)&&!((p=this.data)==null?0:p.links)&&this.data.primaryLinks.every(function(U){return U.displayUrl})}},
shouldShowLegacyLinks:{configurable:!0,enumerable:!0,get:function(){var S,p;return!((S=this.data)==null||!S.primaryLinks)&&!((p=this.data)==null?0:p.links)&&!this.shouldShowNewLinks}}});
jz.prototype.onYtServiceRequestCompleted=jz.prototype.onYtServiceRequestCompleted;jz.prototype.dataChanged=jz.prototype.dataChanged;_.x([_.F(_.eL.YtComponentBehavior),_.E("design:type",Object)],jz.prototype,"ytComponentBehavior",void 0);_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],jz.prototype,"ytRendererBehavior",void 0);_.x([_.F(_.qH.YtRendererstamperBehavior),_.E("design:type",Object)],jz.prototype,"ytRendererstamperBehavior",void 0);
_.x([_.O2("#g-recaptcha-response"),_.E("design:type",HTMLTextAreaElement)],jz.prototype,"JSC$19080_captchaTextarea",void 0);_.x([_.g(),_.E("design:type",Object)],jz.prototype,"data",void 0);_.x([_.g(),_.E("design:type",String)],jz.prototype,"businessEmailDisplayState",void 0);_.x([_.g(),_.E("design:type",String)],jz.prototype,"businessEmail",void 0);_.x([_.g(),_.E("design:type",String)],jz.prototype,"businessEmailErrorMessage",void 0);
_.x([_.e("data"),_.E("design:type",Boolean),_.E("design:paramtypes",[])],jz.prototype,"hideDetailsSection",null);_.x([_.z4("data"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],jz.prototype,"dataChanged",null);_.x([_.e("data"),_.E("design:type",Boolean),_.E("design:paramtypes",[])],jz.prototype,"shouldShowNewLinks",null);_.x([_.e("data","shouldShowLinks"),_.E("design:type",Boolean),_.E("design:paramtypes",[])],jz.prototype,"shouldShowLegacyLinks",null);
_.x([_.Vd("yt-service-request-completed"),_.E("design:type",Function),_.E("design:paramtypes",[CustomEvent]),_.E("design:returntype")],jz.prototype,"onYtServiceRequestCompleted",null);jz=_.x([_.f({is:"ytd-channel-about-metadata-renderer",disableElementRegistration:!0})],jz);
_.C(jz,"ytd-channel-about-metadata-renderer",function(){if(LIT!==void 0)return LIT;var S=document.createElement("template");_.h(S,'\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');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);return LIT=S},{mode:1});var M5Y;_.Ry("itemSectionRenderer","channelFeaturedContentRenderer","ytd-channel-featured-content-renderer");var rg=function(){return _.w.apply(this,arguments)||this};
_.r(rg,_.w);rg.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"}}}};
_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],rg.prototype,"ytRendererBehavior",void 0);_.x([_.F(_.qH.YtRendererstamperBehavior),_.E("design:type",Object)],rg.prototype,"ytRendererstamperBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],rg.prototype,"data",void 0);rg=_.x([_.f({is:"ytd-channel-featured-content-renderer",disableElementRegistration:!0})],rg);
_.C(rg,"ytd-channel-featured-content-renderer",function(){if(M5Y!==void 0)return M5Y;var S=document.createElement("template");_.h(S,'\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');
S.content.insertBefore(_.t().content.cloneNode(!0),S.content.firstChild);return M5Y=S},{mode:1});var Ivn;_.Ry("itemSectionRenderer","clarificationRenderer","ytd-clarification-renderer");var Gu=function(){var S=_.w.apply(this,arguments)||this;S.roundContainer=!0;S.amsterdamEnabled=_.y("enable_desktop_amsterdam_info_panels");return S};
_.r(Gu,_.w);_.M=Gu.prototype;_.M.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.actionButton":{id:"action-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
_.M.dataChanged=function(){this.imageWidth=this.imageHeight=24;var S=this.data;S.style==="CLARIFICATION_RENDERER_STYLE_MEDIUM"?this.imageWidth=this.imageHeight=80:!S.style&&S.image&&S.image.thumbnails.length&&(S=S.image.thumbnails[0],this.imageWidth=S.width||0,this.imageHeight=S.height||0)};
_.M.computeSource=function(S){return S.secondarySource?_.mA(S.secondarySource):_.mA(S.source)};
_.M.computeClarifyStyle=function(S){return S?S.replace("CLARIFICATION_RENDERER_STYLE_","").toLowerCase():""};
_.M.isLargeStyle=function(S){return S==="CLARIFICATION_RENDERER_STYLE_LARGE"};
_.M.computeBackgroundStyle=function(S){return S?S.replace("CLARIFICATION_RENDERER_BACKGROUND_","").toLowerCase():""};
_.M.computeHasActionButton=function(S){return!!S.actionButton};
_.M.computeHasBottomSection=function(S){return!!S.ctaHasBottomSection};
_.M.computeIsSourceMissing=function(S){return S.ctaHasBottomSection===!1?!0:S&&this.computeSource(S)?!1:!0};
_.M.computeSecondaryEndpoint=function(S){return S.secondaryEndpoint||S.endpoint};
Gu.prototype.dataChanged=Gu.prototype.dataChanged;_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],Gu.prototype,"ytRendererBehavior",void 0);_.x([_.F(_.qH.YtRendererstamperBehavior),_.E("design:type",Object)],Gu.prototype,"ytRendererstamperBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],Gu.prototype,"data",void 0);_.x([_.g(),_.E("design:type",Number)],Gu.prototype,"imageWidth",void 0);_.x([_.g(),_.E("design:type",Number)],Gu.prototype,"imageHeight",void 0);
_.x([_.g({computed:"computeSecondaryEndpoint(data)"}),_.E("design:type",Object)],Gu.prototype,"secondaryEndpoint",void 0);_.x([_.g({reflectToAttribute:!0,computed:"computeHasActionButton(data)"}),_.E("design:type",Boolean)],Gu.prototype,"hasActionButton",void 0);_.x([_.g({reflectToAttribute:!0,computed:"computeHasBottomSection(data)"}),_.E("design:type",Boolean)],Gu.prototype,"hasBottomSection",void 0);
_.x([_.g({reflectToAttribute:!0,computed:"computeIsSourceMissing(data)"}),_.E("design:type",Boolean)],Gu.prototype,"missingSource",void 0);_.x([_.g({computed:"computeIcon_(data.icon)"}),_.E("design:type",String)],Gu.prototype,"icon",void 0);_.x([_.g({computed:"computeIcon_(data.secondaryIcon)"}),_.E("design:type",String)],Gu.prototype,"secondaryIcon",void 0);_.x([_.g({reflectToAttribute:!0,computed:"computeClarifyStyle(data.style)"}),_.E("design:type",String)],Gu.prototype,"clarifyStyle",void 0);
_.x([_.g({reflectToAttribute:!0,computed:"computeBackgroundStyle(data.background)"}),_.E("design:type",String)],Gu.prototype,"backgroundStyle",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],Gu.prototype,"roundContainer",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Boolean)],Gu.prototype,"amsterdamEnabled",void 0);_.x([_.z4("data"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],Gu.prototype,"dataChanged",null);
Gu=_.x([_.f({is:"ytd-clarification-renderer",disableElementRegistration:!0})],Gu);
_.C(Gu,"ytd-clarification-renderer",function(){if(Ivn!==void 0)return Ivn;var S=document.createElement("template");_.h(S,'\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');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);return Ivn=S},{mode:1});var dME;var V5n;var hX=function(){var S=_.w.apply(this,arguments)||this;S.amsterdamEnabled=_.y("enable_desktop_amsterdam_info_panels");return S};
_.r(hX,_.w);_.M=hX.prototype;_.M.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer"}}},"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
_.M.computeIcon=function(S){return S?"yt-icons:"+S.toLowerCase():null};
_.M.computeUseContacts=function(S){return!!S.contacts&&S.contacts.length>0};
_.M.computePhoneContact=function(S){var p,U;return(p=S.contacts)==null?void 0:(U=p.find(function(Y){var L;return(Y==null?void 0:(L=Y.icon)==null?void 0:L.iconType)==="PHONE"}))==null?void 0:U.actionText};
_.M.computeSmsContact=function(S){var p,U;return(p=S.contacts)==null?void 0:(U=p.find(function(Y){var L;return(Y==null?void 0:(L=Y.icon)==null?void 0:L.iconType)==="SMS"}))==null?void 0:U.actionText};
_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],hX.prototype,"ytRendererBehavior",void 0);_.x([_.F(_.qH.YtRendererstamperBehavior),_.E("design:type",Object)],hX.prototype,"ytRendererstamperBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],hX.prototype,"data",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Boolean)],hX.prototype,"amsterdamEnabled",void 0);
_.x([_.g({reflectToAttribute:!0,computed:"computeUseContacts(data)"}),_.E("design:type",Boolean)],hX.prototype,"useContacts",void 0);_.x([_.g({reflectToAttribute:!0,computed:"computePhoneContact(data)"}),_.E("design:type",String)],hX.prototype,"phoneContact",void 0);hX=_.x([_.f({is:"ytd-single-action-emergency-support-renderer",disableElementRegistration:!0})],hX);
_.C(hX,"ytd-single-action-emergency-support-renderer",function(){if(V5n!==void 0)return V5n;var S=document.createElement("template");_.h(S,'\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');
S.content.insertBefore(_.t().content.cloneNode(!0),S.content.firstChild);return V5n=S},{mode:1});_.Ry("itemSectionRenderer","emergencyOneboxRenderer","ytd-emergency-onebox-renderer");var Rh=function(){var S=_.w.apply(this,arguments)||this;S.roundedContainer=!0;S.amsterdamEnabled=_.y("enable_desktop_amsterdam_info_panels");return S};
_.r(Rh,_.w);Rh.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"}}}}};
_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],Rh.prototype,"ytRendererBehavior",void 0);_.x([_.F(_.qH.YtRendererstamperBehavior),_.E("design:type",Object)],Rh.prototype,"ytRendererstamperBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],Rh.prototype,"data",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],Rh.prototype,"roundedContainer",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Boolean)],Rh.prototype,"amsterdamEnabled",void 0);
Rh=_.x([_.f({is:"ytd-emergency-onebox-renderer",disableElementRegistration:!0})],Rh);
_.C(Rh,"ytd-emergency-onebox-renderer",function(){if(dME!==void 0)return dME;var S=document.createElement("template");_.h(S,'\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');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);return dME=S},{mode:1});var TvJ;_.Ry("itemSectionRenderer","exploratoryResultsRenderer","ytd-exploratory-results-renderer");var F0=function(){return _.w.apply(this,arguments)||this};
_.r(F0,_.w);F0.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"}}}};
_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],F0.prototype,"ytRendererBehavior",void 0);_.x([_.F(_.qH.YtRendererstamperBehavior),_.E("design:type",Object)],F0.prototype,"ytRendererstamperBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],F0.prototype,"data",void 0);F0=_.x([_.f({is:"ytd-exploratory-results-renderer",disableElementRegistration:!0})],F0);
_.C(F0,"ytd-exploratory-results-renderer",function(){if(TvJ!==void 0)return TvJ;var S=document.createElement("template");_.h(S,'\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');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);return TvJ=S},{mode:1});var WIA;_.Ry("itemSectionRenderer","feedbackElicitationSingleQuestionRenderer","ytd-feedback-elicitation-single-question-renderer");var X0=function(){var S=_.w.apply(this,arguments)||this;S.messageData=null;return S};
_.r(X0,_.w);_.M=X0.prototype;_.M.onServiceRequestCompleted=function(S,p){S=p.actions||[];p=0;for(var U=S.length;p<U;p++){var Y=S[p],L=void 0,I=void 0;if((L=_.b(Y,_.z1))==null?0:(I=L.item)==null?0:I.messageRenderer)this.messageData=_.b(Y,_.z1).item.messageRenderer}};
_.M.dataChanged=function(){var S=this.data;this.hostElement.hidden=!1;_.U2(this.hostElement,"is-channel",S&&!S.avatarIs169);this.submitButton.disabled=!0;this.selectedResponseIndex=void 0};
_.M.computeThumbnailWidth=function(S){return S?126:56};
_.M.onSelectedResponseIndexChange=function(){this.selectedResponseIndex!==void 0&&(this.submitButton.disabled=!1)};
_.M.onSubmitTap=function(){var S=this.data,p=this.selectedResponseIndex;S!==void 0&&p!==void 0&&(S=S.responses[p],S.responseData&&_.tW().resolve(_.cQ).resolveCommand(S.responseData,{form:{element:this.hostElement}}))};
_.M.onDismissTap=function(){this.hostElement.hidden=!0;var S=this.data;S!==void 0&&S.dismissalEndpoint&&_.tW().resolve(_.cQ).resolveCommand(S.dismissalEndpoint,{form:{element:this.hostElement}})};
_.M.updateSelectedResponseIndexFromBinding=function(S){this.selectedResponseIndex=S.detail.value};
X0.prototype.onSelectedResponseIndexChange=X0.prototype.onSelectedResponseIndexChange;X0.prototype.dataChanged=X0.prototype.dataChanged;X0.prototype.onServiceRequestCompleted=X0.prototype.onServiceRequestCompleted;_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],X0.prototype,"ytRendererBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],X0.prototype,"data",void 0);_.x([_.g(),_.E("design:type",Object)],X0.prototype,"messageData",void 0);
_.x([_.g(),_.E("design:type",Number)],X0.prototype,"selectedResponseIndex",void 0);_.x([_.O2("#submit-button"),_.E("design:type",HTMLButtonElement)],X0.prototype,"submitButton",void 0);_.x([_.Vd("yt-service-request-completed"),_.E("design:type",Function),_.E("design:paramtypes",[CustomEvent,_.xL]),_.E("design:returntype")],X0.prototype,"onServiceRequestCompleted",null);_.x([_.T4("data"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],X0.prototype,"dataChanged",null);
_.x([_.T4("selectedResponseIndex"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],X0.prototype,"onSelectedResponseIndexChange",null);X0=_.x([_.f({is:"ytd-feedback-elicitation-single-question-renderer",disableElementRegistration:!0})],X0);
_.C(X0,"ytd-feedback-elicitation-single-question-renderer",function(){if(WIA!==void 0)return WIA;var S=document.createElement("template");_.h(S,'\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');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);return WIA=S},{mode:1});var OFT;var PM=function(){return _.w.apply(this,arguments)||this};
_.r(PM,_.w);PM.prototype.computeThumbnailWidth=function(S){return S?602:428};
PM.prototype.updateWideFromBinding=function(S){this.wide=S.detail.value};
_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],PM.prototype,"ytRendererBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],PM.prototype,"data",void 0);_.x([_.g(),_.E("design:type",Boolean)],PM.prototype,"wide",void 0);PM=_.x([_.f({is:"ytd-newspaper-hero-video-renderer",disableElementRegistration:!0})],PM);
_.C(PM,"ytd-newspaper-hero-video-renderer",function(){if(OFT!==void 0)return OFT;var S=document.createElement("template");_.h(S,'\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');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);return OFT=S},{mode:1});var kmL;var ZI=function(){return _.w.apply(this,arguments)||this};
_.r(ZI,_.w);_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],ZI.prototype,"rendererBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],ZI.prototype,"data",void 0);ZI=_.x([_.f({is:"ytd-newspaper-mini-video-renderer",disableElementRegistration:!0})],ZI);
_.C(ZI,"ytd-newspaper-mini-video-renderer",function(){if(kmL!==void 0)return kmL;var S=document.createElement("template");_.h(S,'\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');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);return kmL=S},{mode:1});var HFP;_.Ry("itemSectionRenderer","newspaperRenderer","ytd-newspaper-renderer");var sd=function(){return _.w.apply(this,arguments)||this};
_.r(sd,_.w);sd.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"}}}};
_.x([_.F(_.qH.YtRendererstamperBehavior),_.E("design:type",Object)],sd.prototype,"ytRendererstamperBehavior",void 0);_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],sd.prototype,"ytRendererBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],sd.prototype,"data",void 0);sd=_.x([_.f({is:"ytd-newspaper-renderer",disableElementRegistration:!0})],sd);
_.C(sd,"ytd-newspaper-renderer",function(){if(HFP!==void 0)return HFP;var S=document.createElement("template");_.h(S,'\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');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);return HFP=S},{mode:1});var DMi;_.Ry("itemSectionRenderer","playlistVideoListRenderer","ytd-playlist-video-list-renderer");var ez=function(){var S=_.w.apply(this,arguments)||this;S.isSegment=!1;S.actionMap={"yt-add-renderer-to-item-section-action":"handleAddRendererToItemSectionAction","yt-playlist-remove-videos-action":"handlePlaylistRemoveVideosAction","yt-update-playlist-action":"handleUpdatePlaylistAction"};S.nextContinuation={continuationType:"playlistVideoListContinuation"};return S};
_.r(ez,_.w);_.M=ez.prototype;_.M.attached=function(){_.tW();var S;(S=_.tW().resolve(_.AW(_.oG)))!=null&&(S.playlistVideoListElement=this.hostElement)};
_.M.detached=function(){var S;(S=_.tW().resolve(_.AW(_.oG)))!=null&&(S.playlistVideoListElement=void 0);S=_.tW().resolve(_.AW(_.cx));_.y("web_enable_voting_animation")&&S&&(S.parentElem=void 0,S.videos=[],S.continuationsPresent=!1,S.showRefreshPill=!1)};
_.M.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"}}}}}};
_.M.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents"}};
_.M.dataChanged=function(){var S=_.tW().resolve(_.AW(_.cx));if(_.y("web_enable_voting_animation")&&this.data&&S){var p=_.tB(this.hostElement).querySelector("#contents");p&&(S.parentElem=p);S.addVideos(this.data.contents)}_.kcI(this.ytReorderableBehavior)};
_.M.onRendererstamperFinished=function(){this.canReorder&&_.HkP(this.ytReorderableBehavior,_.tB(this.hostElement).querySelector("#contents"),document.documentElement,"playlist-drag-handle")};
_.M.onPlaylistReloading=function(){this.isReloading=!0};
_.M.onUpdateSetVideoId=function(S){if(S.detail&&this.data&&this.data.contents){var p=S.detail;S=this.data.contents.findIndex(function(L){var I;return((I=L.playlistVideoRenderer)==null?void 0:I.videoId)===p.videoId});
if(!(S<0)&&p.setVideoId&&(this.set("data.contents."+S+".playlistVideoRenderer.setVideoId",p.setVideoId),_.y("web_enable_voting_animation"))){var U;if(S=_.b((U=this.data.contents[S].playlistVideoRenderer)==null?void 0:U.engagementBar,_.b1G)){var Y;(Y=S.actions)==null||Y.forEach(function(L){if(L=_.b(L,_.joe))L.itemId=p.setVideoId})}(U=_.tW().resolve(_.AW(_.cx)))&&EFq(U,p.videoId,p.setVideoId)}}};
_.M.computeContentsClass=function(S){return S?"reloading":""};
_.M.computeIsSortable=function(S,p){return S&&p>0&&!this.isSegment&&!_.y("shorts_in_playlists_web")};
_.M.computeIsEditable=function(S){return S};
_.M.computeCanReorder=function(S){return S};
_.M.handlePlaylistRemoveVideosAction=function(S){if(this.get("playlistRemoveVideosAction.setVideoIds",S)&&this.data&&this.data.contents){S=_.b(S,_.cxe).setVideoIds;for(var p=this.data.contents.length-1;p>=0;){var U=this.data.contents[p].playlistVideoRenderer;U&&U.setVideoId&&S.includes(U.setVideoId)&&this.splice("data.contents",p,1);p--}_.St(this.hostElement,"yt-close-popup-action",["ytd-menu-popup-renderer"]);this.updateIndices()}};
_.M.updateIndices=function(){if(this.data&&this.data.contents)for(var S=0;S<this.data.contents.length;S++)this.set("data.contents."+S+".playlistVideoRenderer.index",_.Ec(String(S+1)))};
_.M.handleDrop=function(S){S=S.currDragItem;var p=_.xR(S.parentNode.childNodes,S),U=this.data.contents.splice(Number(_.mA(S.data.index))-1,1)[0];this.data.contents.splice(p,0,U);p=p?this.get("contents."+(p-1)+".playlistVideoRenderer.setVideoId",this.data):void 0;this.updateIndices();S=this.buildReorderServiceEndpoint(S.data.setVideoId,p);this.ytComponentBehavior.resolveCommand(S)};
_.M.buildReorderServiceEndpoint=function(S,p){return this.data&&this.data.onReorderEndpoint?(this.set("data.onReorderEndpoint.playlistEditEndpoint.actions.0.setVideoId",S),this.set("data.onReorderEndpoint.playlistEditEndpoint.actions.0.movedSetVideoIdPredecessor",p),this.data.onReorderEndpoint):null};
_.M.handleUpdatePlaylistAction=function(S){var p;(S=_.b((p=_.b(S,_.Sxt))==null?void 0:p.updatedRenderer,_.nrP))&&this.canReorder!==S.canReorder&&this.set("data.canReorder",S.canReorder);S&&S.contents&&(this.set("data.contents",S.contents),this.isReloading=!1);S&&S.continuations&&this.set("data.continuations",S.continuations)};
_.M.handleAddRendererToItemSectionAction=function(S){var p,U=(p=_.b(S,ikP))==null?void 0:p.renderer,Y;U&&((Y=_.b(S,ikP))==null?void 0:Y.targetItemSection)===this.data.targetId&&(this.data.contents=this.data.contents||[],this.splice("data.contents",this.data.contents.length,0,U),S=_.tW().resolve(_.AW(_.cx)),_.y("web_enable_voting_animation")&&S&&(U&&(p=_.KMX(U))&&S.recommendedVideos.push({itemId:p,videoId:_.rTw(U),voteCount:_.G8E(U),voteSortTiebreaker:Date.now().toString()}),this.updateIndices()))};
_.M.isVotingEnabledOnPlaylist=function(S){if(!S)return!1;S=_.d(S);for(S=S.next();!S.done;S=S.next()){var p=void 0;return!!_.b((p=S.value.playlistVideoRenderer)==null?void 0:p.engagementBar,_.b1G)}return!1};
_.M.onAppendContinuationItemsActionFinished=function(){var S;this.isVotingEnabledOnPlaylist((S=this.data)==null?void 0:S.contents)&&(this.updateIndices(),S=_.tW().resolve(_.AW(_.cx)),_.y("web_enable_voting_animation")&&S&&this.data&&S.addVideos(this.data.contents))};
_.M.updateVideoData=function(S){if(S.detail&&this.data&&this.data.contents){var p=S.detail;S=p.toIdx;var U=p.itemId,Y=p.newVoteCount,L=p.voteStatus;p=p.hideItem;var I,V,W=(I=this.data)==null?void 0:(V=I.contents)==null?void 0:V.findIndex(function(Q){return _.KMX(Q)===U});
if(!(W<0)){I=this.data.contents[W];var O;if((O=I.playlistVideoRenderer)==null?0:O.voteCount)I.playlistVideoRenderer.voteCount=Y;var D;if(O=_.b((D=I.playlistVideoRenderer)==null?void 0:D.engagementBar,_.b1G)){var z;(z=O.actions)==null||z.forEach(function(Q){(Q=_.b(Q,_.joe))&&Q.initialState&&(Q.initialState.votes=Y,Q.initialState.status=L)})}this.data.contents.splice(W,1);
p||this.data.contents.splice(S,0,I);this.updateIndices()}}};
ez.prototype.updateVideoData=ez.prototype.updateVideoData;ez.prototype.onAppendContinuationItemsActionFinished=ez.prototype.onAppendContinuationItemsActionFinished;ez.prototype.onUpdateSetVideoId=ez.prototype.onUpdateSetVideoId;ez.prototype.onPlaylistReloading=ez.prototype.onPlaylistReloading;ez.prototype.onRendererstamperFinished=ez.prototype.onRendererstamperFinished;ez.prototype.dataChanged=ez.prototype.dataChanged;
_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],ez.prototype,"ytRendererBehavior",void 0);_.x([_.F(_.qH.YtRendererstamperBehavior),_.E("design:type",Object)],ez.prototype,"ytRendererstamperBehavior",void 0);_.x([_.F(_.Aj.YtActionHandlerBehavior),_.E("design:type",Object)],ez.prototype,"ytActionHandlerBehavior",void 0);_.x([_.F(_.lX.YtNextContinuationBehavior),_.E("design:type",Object)],ez.prototype,"ytNextContinuationBehavior",void 0);
_.x([_.F(_.Djm),_.E("design:type",Object)],ez.prototype,"ytReorderableBehavior",void 0);_.x([_.F(_.wS),_.E("design:type",Object)],ez.prototype,"ytContinuationHandlerBehavior",void 0);_.x([_.F(_.eL.YtComponentBehavior),_.E("design:type",Object)],ez.prototype,"ytComponentBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],ez.prototype,"data",void 0);_.x([_.g(),_.E("design:type",Boolean)],ez.prototype,"isReloading",void 0);
_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],ez.prototype,"isSegment",void 0);_.x([_.g({computed:"computeIsSortable(data.canReorder, data.contents.length)"}),_.E("design:type",Boolean)],ez.prototype,"isSortable",void 0);_.x([_.g({computed:"computeIsEditable(data.isEditable)"}),_.E("design:type",Boolean)],ez.prototype,"isEditable",void 0);_.x([_.g({computed:"computeCanReorder(data.canReorder)"}),_.E("design:type",Boolean)],ez.prototype,"canReorder",void 0);
_.x([_.g({value:101}),_.E("design:type",Number)],ez.prototype,"scrollMargin",void 0);_.x([_.T4("data"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],ez.prototype,"dataChanged",null);_.x([_.Vd("yt-rendererstamper-finished"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],ez.prototype,"onRendererstamperFinished",null);
_.x([_.Vd("yt-playlist-reloading"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],ez.prototype,"onPlaylistReloading",null);_.x([_.Vd("yt-update-set-video-id"),_.E("design:type",Function),_.E("design:paramtypes",[CustomEvent]),_.E("design:returntype")],ez.prototype,"onUpdateSetVideoId",null);
_.x([_.Vd("yt-append-continuation-items-action-finished"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],ez.prototype,"onAppendContinuationItemsActionFinished",null);_.x([_.Vd("yt-update-video-data-voting-animation"),_.E("design:type",Function),_.E("design:paramtypes",[CustomEvent]),_.E("design:returntype")],ez.prototype,"updateVideoData",null);ez=_.x([_.f({is:"ytd-playlist-video-list-renderer",disableElementRegistration:!0})],ez);
_.C(ez,"ytd-playlist-video-list-renderer",function(){if(DMi!==void 0)return DMi;var S=document.createElement("template");_.h(S,'\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');
S.content.insertBefore(_.t().content.cloneNode(!0),S.content.firstChild);return DMi=S},{mode:_.UW("kevlar_poly_si_batch_j047")?1:2});var zv5;var gg=function(){return _.w.apply(this,arguments)||this};
_.r(gg,_.w);gg.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"}}}}};
gg.prototype.onTextWrapperTap=function(S){var p=this.data&&this.data.navigationEndpoint;p&&!_.Eo(_.E1(S),this.hostElement,["A".toString(),"BUTTON".toString()])&&_.cv(this.hostElement,"yt-navigate",{endpoint:p})};
gg.prototype.dataChanged=function(){var S=this.get("data.offerButton.buttonRenderer.serviceEndpoint");S&&S.commandMetadata&&_.b(S.commandMetadata,_.bB)&&_.b(S.commandMetadata,_.bB).fireAutomatically&&_.tW().resolve(_.cQ).resolveCommand(S,{form:{element:this.hostElement}})};
gg.prototype.dataChanged=gg.prototype.dataChanged;_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],gg.prototype,"ytRendererBehavior",void 0);_.x([_.F(_.qH.YtRendererstamperBehavior),_.E("design:type",Object)],gg.prototype,"ytRendererstamperBehavior",void 0);_.x([_.F(_.ak),_.E("design:type",Object)],gg.prototype,"ytdLockupBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],gg.prototype,"data",void 0);_.x([_.g({reflectToAttribute:!0,value:function(){return _.y("enable_desktop_search_bigger_thumbs")}}),
_.E("design:type",Boolean)],gg.prototype,"useBiggerThumbs",void 0);_.x([_.g({reflectToAttribute:!0,value:function(){return _.Ug("desktop_search_bigger_thumbs_style")}}),
_.E("design:type",String)],gg.prototype,"biggerThumbsStyle",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Boolean)],gg.prototype,"leftAligned",void 0);_.x([_.T4("data"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],gg.prototype,"dataChanged",null);gg=_.x([_.f({disableElementRegistration:!0,is:"ytd-movie-renderer"})],gg);
_.C(gg,"ytd-movie-renderer",function(){if(zv5!==void 0)return zv5;var S=document.createElement("template");_.h(S,'\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');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);return zv5=S},{mode:1});var QQd;var uP=function(){var S=_.w.apply(this,arguments)||this;S.rounded=!0;S.pageAttachedTo=void 0;S.actionMap={"yt-signal-action-pause-player":"handleSignalActionPausePlayer"};return S};
_.r(uP,_.w);uP.prototype.attached=function(){this.pageAttachedTo=_.tW().resolve(_.oy).getCurrentPage();_.cv(this.hostElement,"yt-player-attached",this.player)};
uP.prototype.detached=function(){var S;if((S=this.pageAttachedTo)==null?0:S.hostElement)_.cv(this.pageAttachedTo.hostElement,"yt-player-detached",this.player),this.pageAttachedTo=void 0};
uP.prototype.dataChanged=function(){var S;if((S=this.data)==null?0:S.videoId)S={video_id:this.data.videoId,autoplay:!0},!_.y("miniplayer_stop_channel_video_autoplay_killswitch")&&_.tW().resolve(_.eC).isMiniplayerActive()&&(S.pause_at_start=!0,S.autoplay=!1),this.player.loadVideoWithPlayerVars(S)};
uP.prototype.handleSignalActionPausePlayer=function(){_.iZ().pause()};
uP.prototype.dataChanged=uP.prototype.dataChanged;_.x([_.g(),_.E("design:type",Object)],uP.prototype,"data",void 0);_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],uP.prototype,"ytRendererBehavior",void 0);_.x([_.F(_.Aj.YtActionHandlerBehavior),_.E("design:type",Object)],uP.prototype,"ytActionHandlerBehavior",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],uP.prototype,"rounded",void 0);_.x([_.O2("#player"),_.E("design:type",Object)],uP.prototype,"player",void 0);
_.x([_.T4("data"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],uP.prototype,"dataChanged",null);uP=_.x([_.f({disableElementRegistration:!0,is:"ytd-channel-video-player-renderer"})],uP);
_.C(uP,"ytd-channel-video-player-renderer",function(){if(QQd!==void 0)return QQd;var S=document.createElement("template");_.h(S,'\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');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);return QQd=S},{mode:1});var nDL;var JNJ;var yNX;var wg=function(){var S=_.w.apply(this,arguments)||this;S.playing=!1;S.playerId="ytd-default-promo-panel-renderer-inline-playback-renderer-"+_.Ul(S);S.active=!1;return S};
_.r(wg,_.w);_.M=wg.prototype;_.M.detached=function(){this.stop()};
_.M.play=function(){var S=this,p,U,Y,L,I;return _.T(function(V){if(V.nextAddress==1)return S.active=!0,p=S.get("data.inlinePlaybackEndpoint.watchEndpoint"),U=p.videoId||S.data.videoId,Y=p.startTimeSeconds||0,L=p.playerParams||null,_.y("kevlar_player_update_killswitch")?_.k(V,S.playerEl.update({args:{video_id:U,startSeconds:Y,player_params:L}}),2):(S.playerEl.loadVideoWithPlayerVars({video_id:U,startSeconds:Y,player_params:L,autoplay:!0}),V.jumpTo(2));if(V.nextAddress!=4)return _.k(V,S.playerEl.getPlayerPromise(),
4);I=V.yieldResult;I.unloadModule("annotations_module");I.addEventListener("onStateChange",function(W){S.onPlayerStateChange(W)});
_.OV(V)})};
_.M.onPlayerStateChange=function(S){if(this.active)switch(this.playing=S===1,S){case 1:_.cv(this.hostElement,"yt-default-promo-panel-renderer-playing");break;case 0:_.cv(this.hostElement,"yt-default-promo-panel-renderer-ended")}};
_.M.stop=function(){this.playerEl.stop();this.playing=this.active=!1};
_.M.resize=function(){var S=this,p;return _.T(function(U){if(U.nextAddress==1)return _.k(U,S.playerEl.getPlayerPromise(),2);p=U.yieldResult;p.setSize(NaN,NaN);_.OV(U)})};
_.x([_.g(),_.E("design:type",Object)],wg.prototype,"data",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],wg.prototype,"playing",void 0);_.x([_.g(),_.E("design:type",Object)],wg.prototype,"playerId",void 0);_.x([_.O2("#player"),_.E("design:type",Object)],wg.prototype,"playerEl",void 0);wg=_.x([_.f({disableElementRegistration:!0,is:"ytd-default-promo-panel-renderer-inline-playback-renderer"})],wg);
_.C(wg,"ytd-default-promo-panel-renderer-inline-playback-renderer",function(){if(yNX!==void 0)return yNX;var S=document.createElement("template");_.h(S,'\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');
S.content.insertBefore(_.t().content.cloneNode(!0),S.content.firstChild);return yNX=S},{mode:1});var KIs;var bFL;var lP=function(){var S=_.w.apply(this,arguments)||this;S.width=0;return S};
_.r(lP,_.w);_.M=lP.prototype;_.M.attached=function(){this.isVideoPlaying=!1;this.videoEl.classList.add("hideit");this.placeholderEl.classList.remove("hideit");this.videoEl.addEventListener("ended",_.d9(this,this.onEnded));this.mp4El.addEventListener("error",_.d9(this,this.onError))};
_.M.detached=function(){this.videoEl.removeEventListener("ended",_.d9(this,this.onEnded));this.mp4El.removeEventListener("error",_.d9(this,this.onError))};
_.M.play=function(){var S=this;if(this.mp4El.getAttribute("src")&&this.isMp4Supported()){this.videoEl.currentTime=0;this.videoEl.load();var p=this.videoEl.play();p?p.then(function(){S.handleVideoStartPlaying()}).catch(function(){_.cv(S.hostElement,"yt-video-thumbnail-not-playing")}):this.handleVideoStartPlaying()}else _.cv(this.hostElement,"yt-video-thumbnail-not-playing")};
_.M.handleVideoStartPlaying=function(){this.videoEl.classList.remove("hideit");this.placeholderEl.classList.add("hideit");this.isVideoPlaying=!0};
_.M.stop=function(){this.isVideoPlaying&&(this.showPlaceholder(),this.isVideoPlaying=!1,this.videoEl.pause(),this.videoEl.currentTime=0)};
_.M.dataChanged=function(){var S;if((S=this.data)==null?0:S.thumbnailPlaceholder)S=_.AS(this.data.thumbnailPlaceholder.thumbnails,this.width),this.placeholderEl.style.backgroundImage="url("+S+")";this.stop();this.autoplay&&this.play()};
_.M.showPlaceholder=function(){this.videoEl.classList.add("hideit");this.placeholderEl.classList.remove("hideit")};
_.M.onEnded=function(){this.stop();_.cv(this.hostElement,"yt-video-thumbnail-ended");this.loop&&this.play()};
_.M.onError=function(){_.cv(this.hostElement,"yt-video-thumbnail-error")};
_.M.isMp4Supported=function(){return!(!this.videoEl.canPlayType||!this.videoEl.canPlayType("video/mp4").replace(/no/,""))};
_.M.getVideoThumbnail=function(S){if(S&&S.length)return S[0]};
lP.prototype.dataChanged=lP.prototype.dataChanged;_.x([_.g(),_.E("design:type",Object)],lP.prototype,"data",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Boolean)],lP.prototype,"animatePlaceholderOnEntrance",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Boolean)],lP.prototype,"autoplay",void 0);_.x([_.g({computed:"getVideoThumbnail(data.videoThumbnails)"}),_.E("design:type",Object)],lP.prototype,"videoThumbnail",void 0);
_.x([_.g(),_.E("design:type",Boolean)],lP.prototype,"loop",void 0);_.x([_.g(),_.E("design:type",Boolean)],lP.prototype,"isVideoPlaying",void 0);_.x([_.g(),_.E("design:type",Object)],lP.prototype,"width",void 0);_.x([_.O2("#mp4"),_.E("design:type",HTMLElement)],lP.prototype,"mp4El",void 0);_.x([_.O2("#placeholder"),_.E("design:type",HTMLElement)],lP.prototype,"placeholderEl",void 0);_.x([_.O2("#video"),_.E("design:type",HTMLVideoElement)],lP.prototype,"videoEl",void 0);
_.x([_.T4("data"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],lP.prototype,"dataChanged",null);lP=_.x([_.FB({is:"yt-video-as-thumbnail-details",disableElementRegistration:!0})],lP);
_.C(lP,"yt-video-as-thumbnail-details",function(){if(bFL===void 0){var S=document.createElement("template");_.h(S,'\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');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);var p=S.content,U=p.insertBefore;KIs===void 0&&(KIs=document.createElement("template"));var Y=KIs;U.call(p,Y.content.cloneNode(!0),S.content.firstChild);bFL=S}S=bFL;return S},{mode:2});var ah=function(){var S=_.w.apply(this,arguments)||this;S.disableGridStateAware=!1;S.animationEnabled=_.y("enable_web_ketchup_hero_animation");S.transitioningOut=!1;S.narrow=!1;S.narrower=!1;S.isCarouselInFeed=!1;S.videoTimeoutJobId=0;S.panelTimeoutJobId=0;S.panelTimeoutJobStartMs=0;S.actionMap={"yt-window-resized":"onWindowResized"};return S};
_.r(ah,_.w);_.M=ah.prototype;_.M.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.M.created=function(){this.ytdGridStateAwareBehavior.gridStateAwareSizingElementSelector="#content"};
_.M.updateSize=function(){this.narrow=this.hostElement.clientHeight*16/9>this.hostElement.clientWidth;var S;this.player&&((S=this.data)==null?0:S.inlinePlaybackRenderer)&&this.player.resize();this.narrower=this.isNarrower();this.setScrimLayer(this.data)};
_.M.attached=function(){this.onWindowResized()};
_.M.detached=function(){this.clearTimeouts()};
_.M.onWindowResized=function(){this.updateSize()};
_.M.computePanelLayout=function(S){return S&&S.panelLayout||"DEFAULT_PROMO_PANEL_RENDERER_LAYOUT_A"};
_.M.playVideo=function(){var S;this.video&&((S=this.data)==null?0:S.videoThumbnail)&&this.video.play();var p;this.player&&((p=this.data)==null?0:p.inlinePlaybackRenderer)&&this.player.play()};
_.M.stopVideo=function(){var S;this.video&&((S=this.data)==null?0:S.videoThumbnail)&&this.video.stop();var p;this.player&&((p=this.data)==null?0:p.inlinePlaybackRenderer)&&this.player.stop()};
_.M.transitionOut=function(){var S=this;this.transitioningOut=!0;return new Promise(function(p){var U=function(){_.tB(S.hostElement).querySelector("#action-button").removeEventListener("animationend",U);_.PA.cancelJob(Y);p();S.transitioningOut=!1};
var Y=_.bQ(_.PA,U,1E3);_.tB(S.hostElement).querySelector("#action-button").addEventListener("animationend",U);S.player&&(S.player.playing=!1)})};
_.M.computeMetadataOrder=function(S){return S&&S.metadataOrder&&S.metadataOrder!=="DEFAULT_PROMO_PANEL_RENDERER_METADATA_ORDER_UNSPECIFIED"?S.metadataOrder:"DEFAULT_PROMO_PANEL_RENDERER_METADATA_ORDER_TITLE_DESCRIPTION"};
_.M.computeByline=function(){return this.get("data.byline.defaultPromoPanelBylineRenderer")};
_.M.computeAvatarSize=function(S){return S&&S.panelLayout==="DEFAULT_PROMO_PANEL_RENDERER_LAYOUT_C"?24:36};
_.M.onContentClick=function(S){if(!_.Eo(_.E1(S),this.hostElement,["A".toString(),"BUTTON".toString()])){var p;if((p=this.data)==null?0:p.navigationEndpoint){var U;this.componentBehavior.resolveCommand((U=this.data)==null?void 0:U.navigationEndpoint)}}};
_.M.dataChanged=function(){this.clearTimeouts();this.setBackgroundImage(this.data);this.startPanelTimeout();this.updateSize()};
_.M.setBackgroundImage=function(S){if(S=this.getBackgroundImageUrl(S))_.tB(this.hostElement).querySelector("#hero").style.backgroundImage="url("+S+")"};
_.M.setScrimLayer=function(S){var p=this.getScrimLayerColorStops(S);S=((S==null?void 0:S.scrimRotation)||0)+180;this.isNarrower()&&this.panelLayout==="DEFAULT_PROMO_PANEL_RENDERER_LAYOUT_C"&&(S=180);_.g7("HTML_DIR")==="rtl"&&(S=-S);p&&(_.tB(this.hostElement).querySelector("#scrim").style.backgroundImage="linear-gradient("+S+"deg, "+p+")")};
_.M.isNarrower=function(){return this.hostElement.clientWidth<ah.NARROW_VERSION_SIZE};
_.M.getScrimLayerColorStops=function(){var S,p=(S=this.data)==null?void 0:S.scrimColorValues;if(!p)return null;if(p.length===1)return S=_.ev(p[0]),S+" 0%, "+S+" 100%";if(p.length===3){var U=[0,72,98];return p.map(function(Y,L){return _.ev(Y)+" "+U[L]+"%"}).join(",")}return null};
_.M.getBackgroundImageUrl=function(S){return S&&S.largeFormFactorBackgroundThumbnail?_.AS((S.largeFormFactorBackgroundThumbnail.thumbnailLandscapePortraitRenderer.landscape||S.largeFormFactorBackgroundThumbnail.thumbnailLandscapePortraitRenderer.portrait).thumbnails,screen.width):null};
_.M.onPlaying=function(){this.startVideoTimeout()};
_.M.onEnded=function(){this.rotate()};
_.M.startPanelTimeout=function(){var S=this;if(!this.panelTimeoutJobId){var p=this.get("data.minPanelDisplayDurationMs");p&&(this.panelTimeoutJobStartMs=Date.now(),this.panelTimeoutJobId=_.bQ(_.PA,function(){S.rotate()},p))}};
_.M.startVideoTimeout=function(){var S=this;if(!this.videoTimeoutJobId){_.PA.cancelJob(this.panelTimeoutJobId);var p=Date.now()-this.panelTimeoutJobStartMs;p=Math.max(0,this.get("data.minPanelDisplayDurationMs")-p);p=Math.max(this.get("data.minVideoPlayDurationMs")||0,p);this.videoTimeoutJobId=_.bQ(_.PA,function(){S.rotate()},p)}};
_.M.clearTimeouts=function(){this.panelTimeoutJobId!==0&&_.PA.cancelJob(this.panelTimeoutJobId);this.videoTimeoutJobId!==0&&_.PA.cancelJob(this.videoTimeoutJobId);this.videoTimeoutJobId=this.panelTimeoutJobId=0};
_.M.rotate=function(){this.clearTimeouts();_.cv(this.hostElement,"yt-default-promo-panel-renderer-rotate")};
_.$u.Object.defineProperties(ah.prototype,{player:{configurable:!0,enumerable:!0,get:function(){return _.tB(this.hostElement).querySelector("#player")}},
video:{configurable:!0,enumerable:!0,get:function(){return _.tB(this.hostElement).querySelector("#video")}}});
_.$u.Object.defineProperties(ah,{NARROW_VERSION_SIZE:{configurable:!0,enumerable:!0,get:function(){return 650}}});
ah.prototype.onEnded=ah.prototype.onEnded;ah.prototype.onPlaying=ah.prototype.onPlaying;ah.prototype.dataChanged=ah.prototype.dataChanged;_.x([_.F(_.ej),_.E("design:type",Object)],ah.prototype,"ytdGridStateAwareBehavior",void 0);_.x([_.F(_.eL.YtComponentBehavior),_.E("design:type",Object)],ah.prototype,"componentBehavior",void 0);_.x([_.F(_.uc.YtdGuideStateAwareBehavior),_.E("design:type",Object)],ah.prototype,"ytdGuideStateAwareBehavior",void 0);
_.x([_.F(_.Bgm),_.E("design:type",Object)],ah.prototype,"ytBooleanLogicBehavior",void 0);_.x([_.F(_.Aj.YtActionHandlerBehavior),_.E("design:type",Object)],ah.prototype,"ytActionHandlerBehavior",void 0);_.x([_.F(_.qH.YtRendererstamperBehavior),_.E("design:type",Object)],ah.prototype,"ytRendererstamperBehavior",void 0);_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],ah.prototype,"ytRendererBehavior",void 0);
_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],ah.prototype,"disableGridStateAware",void 0);_.x([_.g(),_.E("design:type",Object)],ah.prototype,"data",void 0);_.x([_.g({computed:"computePanelLayout(data)",reflectToAttribute:!0}),_.E("design:type",String)],ah.prototype,"panelLayout",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],ah.prototype,"animationEnabled",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],ah.prototype,"transitioningOut",void 0);
_.x([_.g({computed:"computeMetadataOrder(data)"}),_.E("design:type",Boolean)],ah.prototype,"metadataOrder",void 0);_.x([_.g({computed:"computeByline(data)"}),_.E("design:type",Object)],ah.prototype,"byline",void 0);_.x([_.g({computed:"computeAvatarSize(data)"}),_.E("design:type",Number)],ah.prototype,"avatarSize",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],ah.prototype,"narrow",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],ah.prototype,"narrower",void 0);
_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],ah.prototype,"layoutStyle",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],ah.prototype,"isCarouselInFeed",void 0);_.x([_.T4("data"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],ah.prototype,"dataChanged",null);_.x([_.Vd("yt-default-promo-panel-renderer-playing"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],ah.prototype,"onPlaying",null);
_.x([_.Vd("yt-default-promo-panel-renderer-ended"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],ah.prototype,"onEnded",null);ah=_.x([_.f({disableElementRegistration:!0,is:"ytd-default-promo-panel-renderer"})],ah);
_.C(ah,"ytd-default-promo-panel-renderer",function(){if(JNJ!==void 0)return JNJ;var S=document.createElement("template");_.h(S,'\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');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);return JNJ=S},{mode:1});_.Ry("itemSectionRenderer","carouselItemRenderer","ytd-carousel-item-renderer");var fo=function(){var S=_.w.apply(this,arguments)||this;S.narrower=!1;S.dotMenuVisible=!1;S.paginationThumbnailsVisible=!1;S.active=!0;S.disableGridStateAware=!1;S.actionMap={"yt-window-resized":"onWindowResized"};return S};
_.r(fo,_.w);_.M=fo.prototype;_.M.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]]"}}}}}};
_.M.attached=function(){document.addEventListener("yt-page-type-changed",_.d9(this,this.onPageTypeChange));this.currentPageSubtype=_.WB(location.pathname);this.onWindowResized()};
_.M.detached=function(){this.jobId&&_.PA.cancelJob(this.jobId);this.updateSizeJobId&&_.PA.cancelJob(this.updateSizeJobId);document.removeEventListener("yt-page-type-changed",_.d9(this,this.onPageTypeChange))};
_.M.onPageTypeChange=function(S){this.active=S.detail.newPageSubtype===this.currentPageSubtype};
_.M.onWindowResized=function(){this.updateSize()};
_.M.updateSize=function(){this.narrower=this.isNarrower(this.hostElement.clientWidth);this.scrollThumbnails(this.currentItemIndex)};
_.M.setNextCarouselItem=function(){this.shouldRotate()&&this.setCarouselItem(this.currentItemIndex+1)};
_.M.setCarouselItem=function(S){S>=this.data.carouselItems.length&&this.loopCount++;this.jobId&&_.PA.cancelJob(this.jobId);var p=this.getCurrentPanelElement();p&&p.stopVideo();this.currentItemIndex=S%this.data.carouselItems.length;this.currentItem=this.data.carouselItems[this.currentItemIndex];this.scrollThumbnails(this.currentItemIndex);this.currentItemHasVideo()?(p||(p=this.getCurrentPanelElement()),p.playVideo()):this.startRotationJob()};
_.M.scrollThumbnails=function(S){if(this.computeLayoutType(this.data)==="DEFAULT_PROMO_PANEL_RENDERER_LAYOUT_C"){var p=this.getCurrentPaginationElement();if(p){var U=_.tB(this.hostElement).querySelector("#pagination-thumbnails");this.currentItemIndex<2?U.style.transform="translateX(0)":(p=p.offsetWidth+8,U.style.transform="translateX(-"+p*(S-Math.ceil(Math.floor(this.overlay.offsetWidth/p)/2)+1)+"px)")}}};
_.M.onDataChanged=function(){var S=this;this.data&&(this.loopCount=0,this.autorotateActive=!0,this.data.autoRotateDurationMs!==void 0&&(this.rotationTimeout=this.data.autoRotateDurationMs),this.setCarouselItem(0),this.updateSizeJobId=_.Jn(_.PA,function(){S.getCurrentPanelElement().updateSize();S.updateSize()}))};
_.M.getCurrentPanelElement=function(){return _.tB(_.tB(this.hostElement).querySelector("#carousel-item")).querySelector("ytd-default-promo-panel-renderer")};
_.M.getCurrentPaginationElement=function(){return _.tB(_.tB(this.hostElement).querySelector("#pagination-thumbnails")).querySelector(".ytd-carousel-item-renderer.selected")};
_.M.getNavigationClass=function(S,p){return S===p?"selected":""};
_.M.getNavigationDurationStyle=function(S){return"animation-duration:"+(this.get("data.carouselItems."+S+".defaultPromoPanelRenderer.minPanelDisplayDurationMs")||0)+"ms;"};
_.M.onNavigationTap=function(S){var p=this,U=S.model.index;U!==this.currentItemIndex&&(this.getCurrentPanelElement().transitionOut().then(function(){p.setCarouselItem(U)}),this.autorotateActive=!1)};
_.M.onVideoThumbnailEnded=function(){var S=this;if(this.shouldRotate()){var p=this.getCurrentPaginationElement();p&&(p.classList.add("finished"),this.getCurrentPanelElement().transitionOut().then(function(){p.classList.remove("finished");S.setNextCarouselItem()}))}};
_.M.onVideoThumbnailError=function(){this.startRotationJob()};
_.M.onVideoNotPlaying=function(){this.startRotationJob()};
_.M.currentItemHasVideo=function(){return!!this.get("defaultPromoPanelRenderer.videoThumbnail",this.currentItem)||!!this.get("defaultPromoPanelRenderer.inlinePlaybackRenderer",this.currentItem)};
_.M.startRotationJob=function(){var S=this;_.PA.cancelJob(this.jobId);this.shouldRotate()&&this.rotationTimeout&&(this.jobId=_.PA.addLowPriorityJob(function(){S.getCurrentPanelElement().transitionOut().then(function(){S.setNextCarouselItem()})},this.rotationTimeout))};
_.M.computeDotMenuVisible=function(S,p){return!!S&&!!S.carouselItems&&S.carouselItems.length>1&&!S.paginationThumbnails||!!p};
_.M.computePaginationThumbnailsVisible=function(S,p){var U,Y;return((Y=S==null?void 0:(U=S.paginationThumbnails)==null?void 0:U.length)!=null?Y:0)>1&&!p};
_.M.computeLayoutType=function(){return this.get("data.carouselItems.0.defaultPromoPanelRenderer.panelLayout")||"DEFAULT_PROMO_PANEL_RENDERER_LAYOUT_A"};
_.M.computePaginatorAlignment=function(S){return(S==null?void 0:S.paginatorAlignment)||"CAROUSEL_ITEM_RENDERER_PAGINATOR_ALIGNMENT_END"};
_.M.shouldRotate=function(){return this.data.carouselItems.length>1&&this.active&&this.loopCount<3&&this.autorotateActive};
_.M.activeChanged=function(){this.data&&(this.active?this.setCarouselItem(this.currentItemIndex):this.currentItem=void 0)};
_.M.isNarrower=function(S){return(S!=null?S:0)<ah.NARROW_VERSION_SIZE};
fo.prototype.activeChanged=fo.prototype.activeChanged;fo.prototype.onVideoNotPlaying=fo.prototype.onVideoNotPlaying;fo.prototype.onVideoThumbnailError=fo.prototype.onVideoThumbnailError;fo.prototype.onVideoThumbnailEnded=fo.prototype.onVideoThumbnailEnded;fo.prototype.onDataChanged=fo.prototype.onDataChanged;_.x([_.F(_.ej),_.E("design:type",Object)],fo.prototype,"ytdGridStateAwareBehavior",void 0);
_.x([_.F(_.uc.YtdGuideStateAwareBehavior),_.E("design:type",Object)],fo.prototype,"ytdGuideStateAwareBehavior",void 0);_.x([_.F(_.qH.YtRendererstamperBehavior),_.E("design:type",Object)],fo.prototype,"ytRendererstamperBehavior",void 0);_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],fo.prototype,"ytRendererBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],fo.prototype,"data",void 0);_.x([_.g(),_.E("design:type",Object)],fo.prototype,"currentItem",void 0);
_.x([_.g(),_.E("design:type",Number)],fo.prototype,"currentItemIndex",void 0);_.x([_.g(),_.E("design:type",Number)],fo.prototype,"rotationTimeout",void 0);_.x([_.g(),_.E("design:type",Number)],fo.prototype,"loopCount",void 0);_.x([_.g({computed:"computePaginatorAlignment(data)",reflectToAttribute:!0}),_.E("design:type",String)],fo.prototype,"paginatorAlignment",void 0);_.x([_.g(),_.E("design:type",Number)],fo.prototype,"jobId",void 0);
_.x([_.g(),_.E("design:type",Number)],fo.prototype,"updateSizeJobId",void 0);_.x([_.g({value:!1,reflectToAttribute:!0}),_.E("design:type",Boolean)],fo.prototype,"isCarouselInFeed",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],fo.prototype,"narrower",void 0);_.x([_.g({computed:"computeDotMenuVisible(data, narrower)"}),_.E("design:type",Object)],fo.prototype,"dotMenuVisible",void 0);
_.x([_.g({computed:"computePaginationThumbnailsVisible(data, narrower)"}),_.E("design:type",Object)],fo.prototype,"paginationThumbnailsVisible",void 0);_.x([_.g({computed:"computeLayoutType(data)",reflectToAttribute:!0}),_.E("design:type",String)],fo.prototype,"layoutType",void 0);_.x([_.g({value:!0,reflectToAttribute:!0}),_.E("design:type",Boolean)],fo.prototype,"autorotateActive",void 0);_.x([_.g(),_.E("design:type",Object)],fo.prototype,"active",void 0);
_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],fo.prototype,"disableGridStateAware",void 0);_.x([_.O2("#overlay"),_.E("design:type",HTMLElement)],fo.prototype,"overlay",void 0);_.x([_.z4("data"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],fo.prototype,"onDataChanged",null);
_.x([_.Vd("yt-video-thumbnail-ended"),_.Vd("yt-default-promo-panel-renderer-rotate"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],fo.prototype,"onVideoThumbnailEnded",null);_.x([_.Vd("yt-video-thumbnail-error"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],fo.prototype,"onVideoThumbnailError",null);
_.x([_.Vd("yt-video-thumbnail-not-playing"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],fo.prototype,"onVideoNotPlaying",null);_.x([_.z4("active"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],fo.prototype,"activeChanged",null);fo=_.x([_.f({disableElementRegistration:!0,is:"ytd-carousel-item-renderer"})],fo);
_.C(fo,"ytd-carousel-item-renderer",function(){if(nDL!==void 0)return nDL;var S=document.createElement("template");_.h(S,'\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');
S.content.insertBefore(_.t().content.cloneNode(!0),S.content.firstChild);return nDL=S},{mode:2});var jQq;var rNJ;var GmL;var hvi;var Co=function(){var S=_.w.apply(this,arguments)||this;S.originalQuery=null;S.originalEndpoint=null;return S};
_.r(Co,_.w);Co.prototype.computeShowOriginalQueryWithoutEndpoint_=function(S,p){return!(!S||p)};
_.x([_.F(_.eL.YtComponentBehavior),_.E("design:type",Object)],Co.prototype,"ytComponentBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],Co.prototype,"correctedText",void 0);_.x([_.g(),_.E("design:type",Object)],Co.prototype,"correctedQuery",void 0);_.x([_.g(),_.E("design:type",Object)],Co.prototype,"correctedEndpoint",void 0);_.x([_.g(),_.E("design:type",Object)],Co.prototype,"originalText",void 0);_.x([_.g(),_.E("design:type",Object)],Co.prototype,"originalQuery",void 0);
_.x([_.g(),_.E("design:type",Object)],Co.prototype,"originalEndpoint",void 0);_.x([_.g({value:!1,computed:"computeShowOriginalQueryWithoutEndpoint_(originalQuery, originalEndpoint)"}),_.E("design:type",Boolean)],Co.prototype,"showOriginalQueryWithoutEndpoint",void 0);Co=_.x([_.FB({is:"yt-search-query-correction",disableElementRegistration:!0})],Co);
_.C(Co,"yt-search-query-correction",function(){if(hvi===void 0){var S=document.createElement("template");_.h(S,'\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');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);var p=S.content,U=p.insertBefore;GmL===void 0&&(GmL=document.createElement("template"));var Y=GmL;U.call(p,Y.content.cloneNode(!0),S.content.firstChild);hvi=S}S=hvi;return S},{mode:2});_.Ry("itemSectionRenderer","didYouMeanRenderer","yt-did-you-mean-renderer");var xc=function(){return _.w.apply(this,arguments)||this};
_.r(xc,_.w);_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],xc.prototype,"ytRendererBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],xc.prototype,"data",void 0);xc=_.x([_.FB({is:"yt-did-you-mean-renderer",disableElementRegistration:!0})],xc);
_.C(xc,"yt-did-you-mean-renderer",function(){if(rNJ===void 0){var S=document.createElement("template");_.h(S,'\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');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);var p=S.content,U=p.insertBefore;jQq===void 0&&(jQq=document.createElement("template"));var Y=jQq;U.call(p,Y.content.cloneNode(!0),S.content.firstChild);rNJ=S}S=rNJ;return S},{mode:2});var RvP;var FIs;_.Ry("itemSectionRenderer","includingResultsForRenderer","yt-including-results-for-renderer");var Ed=function(){return _.w.apply(this,arguments)||this};
_.r(Ed,_.w);_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],Ed.prototype,"ytRendererBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],Ed.prototype,"data",void 0);Ed=_.x([_.FB({is:"yt-including-results-for-renderer",disableElementRegistration:!0})],Ed);
_.C(Ed,"yt-including-results-for-renderer",function(){if(FIs===void 0){var S=document.createElement("template");_.h(S,'\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');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);var p=S.content,U=p.insertBefore;RvP===void 0&&(RvP=document.createElement("template"));var Y=RvP;U.call(p,Y.content.cloneNode(!0),S.content.firstChild);FIs=S}S=FIs;return S},{mode:2});var X0E;var Prd;_.Ry("itemSectionRenderer","musicPassFeatureInfoRenderer","yt-music-pass-feature-info-renderer");var mO=function(){return _.w.apply(this,arguments)||this};
_.r(mO,_.w);mO.prototype.computeExtraClasses_=function(S,p){var U="";S&&(U+=" "+S.toLowerCase().replace(/_/g,"-"));p&&(U+=" "+p.toLowerCase().replace(/_/g,"-"));return U};
mO.prototype.computeUrlImg_=function(){var S=this.data;S.image&&(_.tB(this.hostElement).querySelector("#container").style.backgroundImage="url("+_.AS(S.image.thumbnails,Number.MAX_VALUE)+")")};
mO.prototype.computeUrlImg_=mO.prototype.computeUrlImg_;_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],mO.prototype,"ytRendererBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],mO.prototype,"data",void 0);_.x([_.T4("data"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],mO.prototype,"computeUrlImg_",null);mO=_.x([_.FB({is:"yt-music-pass-feature-info-renderer",disableElementRegistration:!0})],mO);
_.C(mO,"yt-music-pass-feature-info-renderer",function(){if(Prd===void 0){var S=document.createElement("template");_.h(S,'\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');
S.content.insertBefore(_.t().content.cloneNode(!0),S.content.firstChild);var p=S.content,U=p.insertBefore;X0E===void 0&&(X0E=document.createElement("template"));var Y=X0E;U.call(p,Y.content.cloneNode(!0),S.content.firstChild);Prd=S}S=Prd;return S},{mode:2});var ZFE;var sQA;_.Ry("itemSectionRenderer","noResultsFoundShowingResultsForRenderer","yt-no-results-found-showing-results-for-renderer");var oh=function(){return _.w.apply(this,arguments)||this};
_.r(oh,_.w);_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],oh.prototype,"ytRendererBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],oh.prototype,"data",void 0);oh=_.x([_.FB({is:"yt-no-results-found-showing-results-for-renderer",disableElementRegistration:!0})],oh);
_.C(oh,"yt-no-results-found-showing-results-for-renderer",function(){if(sQA===void 0){var S=document.createElement("template");_.h(S,'\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');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);var p=S.content,U=p.insertBefore;ZFE===void 0&&(ZFE=document.createElement("template"));var Y=ZFE;U.call(p,Y.content.cloneNode(!0),S.content.firstChild);sQA=S}S=sQA;return S},{mode:2});var evE;var gDJ;_.Ry("itemSectionRenderer","resultsWithoutQuotesRenderer","yt-results-without-quotes-renderer");var vM=function(){return _.w.apply(this,arguments)||this};
_.r(vM,_.w);_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],vM.prototype,"ytRendererBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],vM.prototype,"data",void 0);vM=_.x([_.FB({is:"yt-results-without-quotes-renderer",disableElementRegistration:!0})],vM);
_.C(vM,"yt-results-without-quotes-renderer",function(){if(gDJ===void 0){var S=document.createElement("template");_.h(S,'\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');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);var p=S.content,U=p.insertBefore;evE===void 0&&(evE=document.createElement("template"));var Y=evE;U.call(p,Y.content.cloneNode(!0),S.content.firstChild);gDJ=S}S=gDJ;return S},{mode:2});var udP;var w0q;_.Ry("itemSectionRenderer","searchNoResultsRenderer","yt-search-no-results-renderer");var $c=function(){return _.w.apply(this,arguments)||this};
_.r($c,_.w);_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],$c.prototype,"ytRendererBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],$c.prototype,"data",void 0);$c=_.x([_.FB({is:"yt-search-no-results-renderer",disableElementRegistration:!0})],$c);
_.C($c,"yt-search-no-results-renderer",function(){if(w0q===void 0){var S=document.createElement("template");_.h(S,'\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');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);var p=S.content,U=p.insertBefore;udP===void 0&&(udP=document.createElement("template"));var Y=udP;U.call(p,Y.content.cloneNode(!0),S.content.firstChild);w0q=S}S=w0q;return S},{mode:2});var lvt;var avP;_.Ry("itemSectionRenderer","showingResultsForRenderer","yt-showing-results-for-renderer");var iP=function(){return _.w.apply(this,arguments)||this};
_.r(iP,_.w);_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],iP.prototype,"ytRendererBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],iP.prototype,"data",void 0);iP=_.x([_.FB({is:"yt-showing-results-for-renderer",disableElementRegistration:!0})],iP);
_.C(iP,"yt-showing-results-for-renderer",function(){if(avP===void 0){var S=document.createElement("template");_.h(S,'\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');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);var p=S.content,U=p.insertBefore;lvt===void 0&&(lvt=document.createElement("template"));var Y=lvt;U.call(p,Y.content.cloneNode(!0),S.content.firstChild);avP=S}S=avP;return S},{mode:2});var fvd;var Crq;var xMX;var EDL;var NR=function(){var S=_.w.apply(this,arguments)||this;S.answerExpanded=!1;return S};
_.r(NR,_.w);NR.prototype.toggleAnswer_=function(S){var p=_.mF(S);p&&p.classList.contains("yt-simple-endpoint")||(S.preventDefault(),S.stopPropagation(),this.answerExpanded=!this.answerExpanded)};
NR.prototype.toggleAnswer_=NR.prototype.toggleAnswer_;_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],NR.prototype,"ytRendererBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],NR.prototype,"data",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],NR.prototype,"answerExpanded",void 0);_.x([_.Vd("tap"),_.E("design:type",Function),_.E("design:paramtypes",[CustomEvent]),_.E("design:returntype")],NR.prototype,"toggleAnswer_",null);
NR=_.x([_.FB({is:"yt-generic-faq-question-renderer",disableElementRegistration:!0})],NR);
_.C(NR,"yt-generic-faq-question-renderer",function(){if(EDL===void 0){var S=document.createElement("template");_.h(S,'\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');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);var p=S.content,U=p.insertBefore;xMX===void 0&&(xMX=document.createElement("template"));var Y=xMX;U.call(p,Y.content.cloneNode(!0),S.content.firstChild);EDL=S}S=EDL;return S},{mode:2});_.Ry("itemSectionRenderer","faqSectionRenderer","yt-faq-section-renderer");var BM=function(){return _.w.apply(this,arguments)||this};
_.r(BM,_.w);BM.prototype.configureRendererStamper=function(){return{"data.questions":{id:"contents",mapping:{genericFaqQuestionRenderer:"yt-generic-faq-question-renderer"}}}};
_.x([_.F(_.qH.YtRendererstamperBehavior),_.E("design:type",Object)],BM.prototype,"ytRendererstamperBehavior",void 0);_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],BM.prototype,"ytRendererBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],BM.prototype,"data",void 0);BM=_.x([_.FB({is:"yt-faq-section-renderer",disableElementRegistration:!0})],BM);
_.C(BM,"yt-faq-section-renderer",function(){if(Crq===void 0){var S=document.createElement("template");_.h(S,'\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');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);var p=S.content,U=p.insertBefore;fvd===void 0&&(fvd=document.createElement("template"));var Y=fvd;U.call(p,Y.content.cloneNode(!0),S.content.firstChild);Crq=S}S=Crq;return S},{mode:2});var mMd;var oDq;_.Ry("itemSectionRenderer","OfferItemExpandedRenderer","yt-offer-item-expanded-renderer");var qR=function(){return _.w.apply(this,arguments)||this};
_.r(qR,_.w);
qR.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"}}}}};
_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],qR.prototype,"ytRendererBehavior",void 0);_.x([_.F(_.qH.YtRendererstamperBehavior),_.E("design:type",Object)],qR.prototype,"ytRendererstamperBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],qR.prototype,"data",void 0);qR=_.x([_.FB({is:"yt-offer-item-expanded-renderer",disableElementRegistration:!0})],qR);
_.C(qR,"yt-offer-item-expanded-renderer",function(){if(oDq===void 0){var S=document.createElement("template");_.h(S,'\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');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);var p=S.content,U=p.insertBefore;mMd===void 0&&(mMd=document.createElement("template"));var Y=mMd;U.call(p,Y.content.cloneNode(!0),S.content.firstChild);oDq=S}S=oDq;return S},{mode:2});var vDs;var $Mq;_.Ry("itemSectionRenderer","OfferItemRenderer","yt-offer-item-renderer");var AX=function(){return _.w.apply(this,arguments)||this};
_.r(AX,_.w);
AX.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"}}}}};
AX.prototype.computeFullWidthMode=function(S){return!(!S||!S.fullWidthMode)};
AX.prototype.computeBorderlessMode=function(S){return!(!S||!S.borderlessMode)};
_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],AX.prototype,"ytRendererBehavior",void 0);_.x([_.F(_.qH.YtRendererstamperBehavior),_.E("design:type",Object)],AX.prototype,"ytRendererstamperBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],AX.prototype,"data",void 0);_.x([_.g({reflectToAttribute:!0,computed:"computeFullWidthMode(data)"}),_.E("design:type",Boolean)],AX.prototype,"fullWidthMode",void 0);
_.x([_.g({reflectToAttribute:!0,computed:"computeBorderlessMode(data)"}),_.E("design:type",Boolean)],AX.prototype,"borderlessMode",void 0);AX=_.x([_.FB({is:"yt-offer-item-renderer",disableElementRegistration:!0})],AX);
_.C(AX,"yt-offer-item-renderer",function(){if($Mq===void 0){var S=document.createElement("template");_.h(S,'\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');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);var p=S.content,U=p.insertBefore;vDs===void 0&&(vDs=document.createElement("template"));var Y=vDs;U.call(p,Y.content.cloneNode(!0),S.content.firstChild);$Mq=S}S=$Mq;return S},{mode:2});var iFX;var Nvs;_.Ry("itemSectionRenderer","subscriptionProductHeaderRenderer","yt-subscription-product-header-renderer");var tX=function(){return _.w.apply(this,arguments)||this};
_.r(tX,_.w);tX.prototype.computeAriaLevel_=function(S){return this.getLevelID_(S)};
tX.prototype.getLevelID_=function(S){return(S=S.match(/[0-9]+$/))&&S.length==1?S[0]:"1"};
_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],tX.prototype,"ytRendererBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],tX.prototype,"data",void 0);_.x([_.g({computed:"computeAriaLevel_(data.level)",reflectToAttribute:!0}),_.E("design:type",String)],tX.prototype,"ariaLevel",void 0);_.x([_.g({value:"heading",reflectToAttribute:!0}),_.E("design:type",String)],tX.prototype,"role",void 0);
_.x([_.g({value:-1,reflectToAttribute:!0}),_.E("design:type",Number)],tX.prototype,"tabindex",void 0);tX=_.x([_.FB({is:"yt-subscription-product-header-renderer",disableElementRegistration:!0})],tX);
_.C(tX,"yt-subscription-product-header-renderer",function(){if(Nvs===void 0){var S=document.createElement("template");_.h(S,"\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");S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);var p=S.content,U=p.insertBefore;iFX===void 0&&(iFX=document.createElement("template"));var Y=iFX;U.call(p,Y.content.cloneNode(!0),S.content.firstChild);Nvs=S}S=Nvs;return S},{mode:2});var BvE;var qAE;_.Ry("itemSectionRenderer","subscriptionProductRenderer","yt-subscription-product-renderer");var cM=function(){return _.w.apply(this,arguments)||this};
_.r(cM,_.w);cM.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:_.Fc("menuRenderer"),events:!0}}};
cM.prototype.onStampFinished_=function(){_.tB(this.hostElement).querySelector("#menu").children[0].icon="yt-icons:more_vert"};
cM.prototype.onStampFinished_=cM.prototype.onStampFinished_;_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],cM.prototype,"ytRendererBehavior",void 0);_.x([_.F(_.qH.YtRendererstamperBehavior),_.E("design:type",Object)],cM.prototype,"ytRendererstamperBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],cM.prototype,"data",void 0);_.x([_.Vd("yt-rendererstamper-finished"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],cM.prototype,"onStampFinished_",null);
cM=_.x([_.FB({is:"yt-subscription-product-renderer",disableElementRegistration:!0})],cM);
_.C(cM,"yt-subscription-product-renderer",function(){if(qAE===void 0){var S=document.createElement("template");_.h(S,'\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');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);var p=S.content,U=p.insertBefore;BvE===void 0&&(BvE=document.createElement("template"));var Y=BvE;U.call(p,Y.content.cloneNode(!0),S.content.firstChild);qAE=S}S=qAE;return S},{mode:2});var ANT;var t5Y;_.Ry("itemSectionRenderer","subscriptionProductUpsellOfferRenderer","yt-subscription-product-upsell-offer-renderer");var SI=function(){return _.w.apply(this,arguments)||this};
_.r(SI,_.w);SI.prototype.configureRendererStamper=function(){return{"data.primaryButton":{id:"primary-button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.secondaryButton":{id:"secondary-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
SI.prototype.imageScrimColorValuesChanged_=function(){var S,p=(S=this.data)==null?void 0:S.imageScrimColorValues;_.tB(this.hostElement).querySelector("#scrim").style.backgroundColor=p?_.ev(p[0]):"transparent"};
SI.prototype.imageScrimColorValuesChanged_=SI.prototype.imageScrimColorValuesChanged_;_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],SI.prototype,"ytRendererBehavior",void 0);_.x([_.F(_.qH.YtRendererstamperBehavior),_.E("design:type",Object)],SI.prototype,"ytRendererstamperBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],SI.prototype,"data",void 0);
_.x([_.T4("data.imageScrimColorValues"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],SI.prototype,"imageScrimColorValuesChanged_",null);SI=_.x([_.FB({is:"yt-subscription-product-upsell-offer-renderer",disableElementRegistration:!0})],SI);
_.C(SI,"yt-subscription-product-upsell-offer-renderer",function(){if(t5Y===void 0){var S=document.createElement("template");_.h(S,'\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');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);var p=S.content,U=p.insertBefore;ANT===void 0&&(ANT=document.createElement("template"));var Y=ANT;U.call(p,Y.content.cloneNode(!0),S.content.firstChild);t5Y=S}S=t5Y;return S},{mode:2});var cNq;var Syi;var psi;var UL5;var YyY;var LmA;var px=function(){return _.w.apply(this,arguments)||this};
_.r(px,_.w);px.prototype.onYtServiceRequestError_=function(S){_.An(this.hostElement,S.detail.error.message)};
px.prototype.onYtServiceRequestError_=px.prototype.onYtServiceRequestError_;_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],px.prototype,"ytRendererBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],px.prototype,"data",void 0);_.x([_.g({value:!1,reflectToAttribute:!0}),_.E("design:type",Boolean)],px.prototype,"collapsible",void 0);_.x([_.g({reflectToAttribute:!0,value:!1}),_.E("design:type",Boolean)],px.prototype,"isManageRed",void 0);
_.x([_.Vd("yt-service-request-error"),_.E("design:type",Function),_.E("design:paramtypes",[CustomEvent]),_.E("design:returntype")],px.prototype,"onYtServiceRequestError_",null);px=_.x([_.FB({is:"yt-single-ypc-offer-renderer",disableElementRegistration:!0})],px);
_.C(px,"yt-single-ypc-offer-renderer",function(){if(LmA===void 0){var S=document.createElement("template");_.h(S,'\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');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);var p=S.content,U=p.insertBefore;YyY===void 0&&(YyY=document.createElement("template"));var Y=YyY;U.call(p,Y.content.cloneNode(!0),S.content.firstChild);LmA=S}S=LmA;return S},{mode:2});var U5=function(){return _.w.apply(this,arguments)||this};
_.r(U5,_.w);U5.prototype.configureRendererStamper=function(){return{"data.singleYpcOfferSupportedRenderers":{id:"contents",mapping:{singleYpcOfferRenderer:{component:"yt-single-ypc-offer-renderer",properties:{isManageRed:"[[isManageRed]]"}}}}}};
_.x([_.F(_.qH.YtRendererstamperBehavior),_.E("design:type",Object)],U5.prototype,"ytRendererstamperBehavior",void 0);_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],U5.prototype,"ytRendererBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],U5.prototype,"data",void 0);_.x([_.g({reflectToAttribute:!0,value:!1}),_.E("design:type",Boolean)],U5.prototype,"isManageRed",void 0);U5=_.x([_.FB({is:"yt-single-ypc-offer-list-renderer",disableElementRegistration:!0})],U5);
_.C(U5,"yt-single-ypc-offer-list-renderer",function(){if(UL5===void 0){var S=document.createElement("template");_.h(S,'\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');
S.content.insertBefore(_.t().content.cloneNode(!0),S.content.firstChild);var p=S.content,U=p.insertBefore;psi===void 0&&(psi=document.createElement("template"));var Y=psi;U.call(p,Y.content.cloneNode(!0),S.content.firstChild);UL5=S}S=UL5;return S},{mode:2});var MZs;var I_t;_.Ry("itemSectionRenderer","ypcOffersListRenderer","yt-ypc-offers-list-renderer");var Yb=function(){return _.w.apply(this,arguments)||this};
_.r(Yb,_.w);Yb.prototype.configureRendererStamper=function(){return{"data.offersList":{id:"contents",mapping:{singleYpcOfferListRenderer:{component:"yt-single-ypc-offer-list-renderer",properties:{isManageRed:"[[isManageRed]]"}}}}}};
_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],Yb.prototype,"ytRendererBehavior",void 0);_.x([_.F(_.qH.YtRendererstamperBehavior),_.E("design:type",Object)],Yb.prototype,"ytRendererstamperBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],Yb.prototype,"data",void 0);_.x([_.g({value:!1}),_.E("design:type",Boolean)],Yb.prototype,"isManageRed",void 0);Yb=_.x([_.FB({is:"yt-ypc-offers-list-renderer",disableElementRegistration:!0})],Yb);
_.C(Yb,"yt-ypc-offers-list-renderer",function(){if(I_t===void 0){var S=document.createElement("template");_.h(S,'\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');
S.content.insertBefore(_.t().content.cloneNode(!0),S.content.firstChild);var p=S.content,U=p.insertBefore;MZs===void 0&&(MZs=document.createElement("template"));var Y=MZs;U.call(p,Y.content.cloneNode(!0),S.content.firstChild);I_t=S}S=I_t;return S},{mode:2});_.Ry("itemSectionRenderer","unlimitedManageSubscriptionPageRenderer","yt-unlimited-manage-subscription-page-renderer");var Lx=function(){return _.w.apply(this,arguments)||this};
_.r(Lx,_.w);
Lx.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}}}}}};
_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],Lx.prototype,"ytRendererBehavior",void 0);_.x([_.F(_.qH.YtRendererstamperBehavior),_.E("design:type",Object)],Lx.prototype,"ytRendererstamperBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],Lx.prototype,"data",void 0);Lx=_.x([_.FB({is:"yt-unlimited-manage-subscription-page-renderer",disableElementRegistration:!0})],Lx);
_.C(Lx,"yt-unlimited-manage-subscription-page-renderer",function(){if(Syi===void 0){var S=document.createElement("template");_.h(S,'\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');
S.content.insertBefore(_.t().content.cloneNode(!0),S.content.firstChild);var p=S.content,U=p.insertBefore;cNq===void 0&&(cNq=document.createElement("template"));var Y=cNq;U.call(p,Y.content.cloneNode(!0),S.content.firstChild);Syi=S}S=Syi;return S},{mode:2});var dLd;var VZd;var Ml=function(){return _.w.apply(this,arguments)||this};
_.r(Ml,_.w);_.M=Ml.prototype;_.M.beforeRegister=function(){this.ironA11yKeysBehavior.keyBindings={"enter:keypress":"onKeypress_"}};
_.M.configureRendererStamper=function(){return{"data.singleYpcOfferListSupportedRenderers":{id:"offers",mapping:{singleYpcOfferRenderer:{component:"yt-single-ypc-offer-renderer",params:{collapsible:!0}}}}}};
_.M.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","button");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","0")};
_.M.onKeypress_=function(S){S.detail.keyboardEvent.target==this&&this.expandOffers_()};
_.M.handleHeaderTap_=function(S){S.preventDefault();S.stopPropagation();this.expandOffers_()};
_.M.expandOffers_=function(){this.offersVisible_=!0;this.hostElement.setAttribute("tabindex","-1")};
_.M.dataChanged_=function(){this.data&&(this.offersVisible_=!this.data.isCollapsed)};
Ml.prototype.dataChanged_=Ml.prototype.dataChanged_;_.x([_.F(_.H$),_.E("design:type",Object)],Ml.prototype,"ironA11yKeysBehavior",void 0);_.x([_.F(_.qH.YtRendererstamperBehavior),_.E("design:type",Object)],Ml.prototype,"ytRendererstamperBehavior",void 0);_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],Ml.prototype,"ytRendererBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],Ml.prototype,"data",void 0);
_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Boolean)],Ml.prototype,"offersVisible_",void 0);_.x([_.T4("data"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],Ml.prototype,"dataChanged_",null);Ml=_.x([_.FB({is:"yt-collapsible-ypc-offer-renderer",disableElementRegistration:!0})],Ml);
_.C(Ml,"yt-collapsible-ypc-offer-renderer",function(){if(VZd===void 0){var S=document.createElement("template");_.h(S,'\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');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);var p=S.content,U=p.insertBefore;dLd===void 0&&(dLd=document.createElement("template"));var Y=dLd;U.call(p,Y.content.cloneNode(!0),S.content.firstChild);VZd=S}S=VZd;return S},{mode:2});var T45;var Wmo;_.Ry("itemSectionRenderer","unlimitedPageHeaderRenderer","yt-unlimited-page-header-renderer");var I1=function(){return _.w.apply(this,arguments)||this};
_.r(I1,_.w);_.M=I1.prototype;_.M.configureRendererStamper=function(){return{"data.moreOffersRenderers":{id:"more-offers",mapping:{collapsibleYpcOfferRenderer:{component:"yt-collapsible-ypc-offer-renderer"}}}}};
_.M.dataChanged_=function(){if(this.data.backgroundImage){var S=_.AS(this.data.backgroundImage.thumbnails,screen.width),p=this.getScrimLayerColorStops_();this.hostElement.style.backgroundImage=p?"linear-gradient(180deg, "+p+"), url("+S+")":"url("+S+")";this.data.gtmId&&_.Jj(this.data.gtmId,_.g7("GL",""))}};
_.M.onYtServiceRequestError_=function(S){_.An(this.hostElement,S.detail.error.message)};
_.M.getScrimLayerColorStops_=function(){var S,p,U=(S=this.data.unlimitedHeaderV2Data)==null?void 0:(p=S.unlimitedHeaderV2Data)==null?void 0:p.scrimLayerColors;if(!U)return null;var Y=100/U.length;return U.map(function(L,I){I*=Y;return _.ev(L)+" "+I+"%"}).join(",")};
_.M.computeLogoWithPadding=function(S){var p,U,Y;return(S=(p=S.unlimitedLogoImage)==null?void 0:(U=p.thumbnails)==null?void 0:(Y=U[0])==null?void 0:Y.height)&&S%31===0?!0:!1};
I1.prototype.onYtServiceRequestError_=I1.prototype.onYtServiceRequestError_;I1.prototype.dataChanged_=I1.prototype.dataChanged_;_.x([_.F(_.qH.YtRendererstamperBehavior),_.E("design:type",Object)],I1.prototype,"ytRendererstamperBehavior",void 0);_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],I1.prototype,"ytRendererBehavior",void 0);_.x([_.g({computed:"computeLogoWithPadding(data)"}),_.E("design:type",Boolean)],I1.prototype,"logoWithPadding",void 0);
_.x([_.g(),_.E("design:type",Object)],I1.prototype,"data",void 0);_.x([_.T4("data"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],I1.prototype,"dataChanged_",null);_.x([_.Vd("yt-service-request-error"),_.E("design:type",Function),_.E("design:paramtypes",[CustomEvent]),_.E("design:returntype")],I1.prototype,"onYtServiceRequestError_",null);I1=_.x([_.FB({is:"yt-unlimited-page-header-renderer",disableElementRegistration:!0})],I1);
_.C(I1,"yt-unlimited-page-header-renderer",function(){if(Wmo===void 0){var S=document.createElement("template");_.h(S,'\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');
S.content.insertBefore(_.t().content.cloneNode(!0),S.content.firstChild);var p=S.content,U=p.insertBefore;T45===void 0&&(T45=document.createElement("template"));var Y=T45;U.call(p,Y.content.cloneNode(!0),S.content.firstChild);Wmo=S}S=Wmo;return S},{mode:2});var O5E;var koi;_.Ry("itemSectionRenderer","UnlimitedUserNotificationRenderer","yt-unlimited-user-notification-renderer");var dA=function(){return _.w.apply(this,arguments)||this};
_.r(dA,_.w);dA.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{"dialog-confirm":!0}}}}}};
_.x([_.F(_.qH.YtRendererstamperBehavior),_.E("design:type",Object)],dA.prototype,"ytRendererstamperBehavior",void 0);_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],dA.prototype,"ytRendererBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],dA.prototype,"data",void 0);dA=_.x([_.FB({is:"yt-unlimited-user-notification-renderer",disableElementRegistration:!0})],dA);
_.C(dA,"yt-unlimited-user-notification-renderer",function(){if(koi===void 0){var S=document.createElement("template");_.h(S,'\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');
S.content.insertBefore(_.t().content.cloneNode(!0),S.content.firstChild);var p=S.content,U=p.insertBefore;O5E===void 0&&(O5E=document.createElement("template"));var Y=O5E;U.call(p,Y.content.cloneNode(!0),S.content.firstChild);koi=S}S=koi;return S},{mode:2});
}catch(e){_._DumpException(e)}
try{
_.rWo=_.$k(function(S){var p=_.vT(S,{numberOfChips:5}).numberOfChips;return _.H("yt-ghost-chip-shelf",{class:"ytGhostChipShelfHost"},_.H(_.KU,{each:function(){return Array(p==null?void 0:p())}},function(){return _.H("div",{class:"ytGhostChipShelfChip"})}))},"ig");_.G2s=_.$k(function(S){var p=_.YO(),U=_.tW().resolve(_.EW);_.hW(function(){requestAnimationFrame(function(){var L;(L=p.lottieEl)==null||L.addEventListener("DOMLoaded",function(){var I;(I=S.onLottieLoaded)==null||I.call(S)})})});
var Y={};return _.H("yt-chat-loading-view-model",{class:"ytChatLoadingViewModelHost","data-target-id":function(){var L;return((L=S.data)==null?void 0:L.call(S).targetId)||""}},_.H(_.Tw,{className:_.VD((Y.ytChatLoadingViewModelRtl=U==="rtl",Y)),
animationName:"YOUCHAT_LOADER",data:function(){var L;return{animationConfig:{autoplay:!0,loop:!0,renderer:"svg",rendererSettings:{viewBoxOnly:!0,className:"ytChatLoadingViewModelLoadingSvg"},name:"YOUCHAT_LOADER",path:((L=S.data)==null?void 0:L.call(S).animationUrl)||"https://www.gstatic.com/youtube/img/lottie/youchat_animations/progress_indicator_comp_v1.json"}}},
animationRef:p}))},"jg");
}catch(e){_._DumpException(e)}
try{
var Bcs,q3P,AAo,tOP,cAX,SVs,p4d,U2Y,YVo,MoA,Huq,cp,k7i,Voo,Oui,WPT,T3n,d2n,D2P,zzd,QOJ,naL,Sf,J3d,y3i,KPt,hzL,G7X,r3P,buL,jOd,Rzt,FPP,X4P,PVt,sOA,w4i,fod,CVP,x2t,m2Y,va5,iuq,N3T,B3J,qVP,toP,c3n,SFs,piP,Uan,YFX,LJA,IDn,WJo,TOt,daE,O_i,Vbn,kNL,QYA,zHd,H_X,Dai,UT,nEt,J9q,KJJ,r9o,PIT,Z_T,sYX,eHn,gEt,up5,wi5,lDJ,aDX,fDt,xad,EEP,maX,RHd;
_.Az=function(S){var p=new _.y7("Error accessing DB");return _.Pzq().then(function(U){return new Promise(function(Y,L){try{var I=U.transaction("swpushnotificationsstore").objectStore("swpushnotificationsstore").get(S);I.onsuccess=function(){var V=I.result;Y(V?V.value:null)};
I.onerror=function(){p.params={key:S,source:"onerror"};L(p)}}catch(V){p.params={key:S,
thrownError:String(V)},L(p)}})},function(){return null})};
_.NcA=function(S,p){var U=_.Q5N(p);U!=="javascript:"&&U!=="data:"&&S.setAttribute("href",p)};
Bcs=function(S,p){return _.I4(S.entities,"flowStateEntity",p)};
q3P=function(S,p){p=p.getOption("captions","translationLanguages",{includeAsr:!0})||[];if(p==null||!p.length)return S;var U=p.filter(function(V){return V});
p=S.filter(function(V){return V.languageCode.startsWith("en")});
U=_.d(U);for(var Y=U.next();!Y.done;Y=U.next())if(Y=Y.value,p.length){var L=p[0],I=Object.assign({},L);L.languageCode!==Y.languageCode&&(I.displayName=L.languageName+" >> "+Y.languageName,I.translationLanguage=Y,S.push(I))}return S};
AAo=function(S){var p,U=(p=S.getOption("captions","tracklist",{includeAsr:!0}))!=null?p:[];return U=q3P(U,S)};
tOP=function(S){return _.fr(S,function(p){return p.languageCode==="en"})};
cAX=function(S){var p=tz;if(_.MOY(S))S.setOption("captions","stickyLoading",{}),S.setOption("captions","track",{});else{var U=_.fr(AAo(S),function(Y){return Y.displayName===p});
S.setOption("captions","track",U)}};
SVs=function(S){if(!S)return 0;var p=S.getPresentingPlayerType(),U=S.getVideoData();return U&&U.isLive?(S=S.getProgressState(p),S.seekableEnd-S.seekableStart):S.getDuration(p)};
p4d=function(S,p){for(var U=_.d(Object.keys(S)),Y=U.next();!Y.done;Y=U.next())if(Y=Y.value,S[Y]!==p[Y])return!1;return!0};
U2Y=function(){return document.getElementById("player-control-overlay")};
YVo=function(S){S!==-1&&!_.y("player_controls_log_creation_killswitch")&&U2Y()&&(_.Fg("pcu_cs",S),_.Fg("pcu_ce"))};
MoA=function(S){return _.H("div",{class:"yt-profile-identity-info-view-model-wiz__buttons"},(S.subscribeButton?[S.subscribeButton,S.channelAccess]:[S.channelAccess]).map(function(p){return _.H("div",{class:"yt-profile-identity-info-view-model-wiz__wrap-button"},_.H("div",{class:"yt-profile-identity-info-view-model-wiz--button"},LPP(p)))}))};
_.Ioq=function(S){var p=S.data;S=S.hideDivider;var U={};U=(U["yt-profile-identity-info-view-model-wiz__frame"]=!0,U["yt-profile-identity-info-view-model-wiz--frame-with-no-channel-banner"]=!p.channelBanner,U);U={class:_.W7(U)};var Y,L={imageBannerViewModel:{image:(Y=p.channelBanner)==null?void 0:Y.image,style:"IMAGE_BANNER_STYLE_INSET"}};Y=_.H("div",{class:"yt-profile-identity-info-view-model-wiz__channel-banner-container"},p.channelBanner?_.H("div",{class:"yt-profile-identity-info-view-model-wiz__channel-banner"},
LPP(L,{imageBannerViewModel:{isPositionRelative:!0}})):null);L=_.H("div",{class:"yt-profile-identity-info-view-model-wiz__avatar"},LPP(p.avatar));var I;var V=_.H("div",{class:"yt-profile-identity-info-view-model-wiz__channel-name-header"},_.H("div",{class:"yt-profile-identity-info-view-model-wiz__channel-name"},p.channelDisplayName),p.verifiedOrOacBadge?_.H("div",{class:"yt-profile-identity-info-view-model-wiz__badge"},_.H(_.of,{data:{thumbnails:[{url:(I=p.verifiedOrOacBadge)==null?void 0:I.badgeUrl}]},
alt:"",targetWidth:14,targetHeight:14,preserveWidth:!0,preserveHeight:!0})):null);I=_.H("div",{class:"yt-profile-identity-info-view-model-wiz__channel-name-frame"},V,LPP(p.threeDotMenu));V=_.H("div",{class:"yt-profile-identity-info-view-model-wiz__metadata"},_.H("div",{class:"yt-profile-identity-info-view-model-wiz__metadata-content-set"},_.H("div",{dir:"auto",class:"yt-profile-identity-info-view-model-wiz__metadata-handle-with-bold-font"},p.channelHandle),p.channelPronouns&&p.channelHandle?_.H("span",
{class:"yt-profile-identity-info-view-model-wiz__metadata-delimiter"},"\u2022"):null,_.H("div",{dir:"auto",class:"yt-profile-identity-info-view-model-wiz__metadata-pronouns"},p.channelPronouns)),_.H("div",{class:"yt-profile-identity-info-view-model-wiz__metadata-content-set"},_.H("div",{class:"yt-profile-identity-info-view-model-wiz__metadata-content"},p.leftOfBulletInfo),p.leftOfBulletInfo&&p.rightOfBulletInfo?_.H("span",{class:"yt-profile-identity-info-view-model-wiz__metadata-delimiter"},"\u2022"):
null,_.H("div",{class:"yt-profile-identity-info-view-model-wiz__metadata-content"},p.rightOfBulletInfo)));I=_.H("div",{class:"yt-profile-identity-info-view-model-wiz__trio"},I,V);return _.H("yt-profile-identity-info-view-model",{class:"yt-profile-identity-info-view-model-wiz"},_.H("div",U,Y,_.H("div",{class:"yt-profile-identity-info-view-model-wiz__channel-info-section"},L,I),p.channelDescription?_.H("div",{class:"yt-profile-identity-info-view-model-wiz__channel-description"},p.channelDescription):
null,MoA(p),S?null:_.H("div",{class:"yt-profile-identity-info-view-model-wiz__divider"}," ")))};
Huq=function(S,p){var U=_.os(S,{}),Y=d2n("top",p),L=d2n("bottom",p),I=d2n("left",p),V=d2n("right",p);return _.zw({top:function(){return cp(U().position,Y)},
bottom:function(){return cp(U().position,L)},
left:function(){return cp(U().position,I)},
right:function(){return cp(U().position,V)},
position:function(){return cp(U().positionType,Voo)},
height:function(){return cp(U().height,Sf)},
width:function(){return cp(U().width,Sf)},
"min-width":function(){return cp(U().minWidth,Sf)},
"min-height":function(){return cp(U().minHeight,Sf)},
"max-width":function(){return cp(U().maxWidth,Sf)},
"max-height":function(){return cp(U().maxHeight,Sf)},
"aspect-ratio":function(){return cp(U().aspectRatio,String)},
"margin-top":function(){return cp(U().margin,Y)},
"margin-bottom":function(){return cp(U().margin,L)},
"margin-left":function(){return cp(U().margin,I)},
"margin-right":function(){return cp(U().margin,V)},
"padding-top":function(){return cp(U().padding,Y)},
"padding-bottom":function(){return cp(U().padding,L)},
"padding-left":function(){return cp(U().padding,I)},
"padding-right":function(){return cp(U().padding,V)},
"flex-direction":function(){return cp(U().flexDirection,T3n)},
"justify-content":function(){return cp(U().justifyContent,WPT)},
"align-items":function(){return cp(U().alignItems,Oui)},
"flex-grow":function(){return cp(U().flexGrow,String)},
"flex-shrink":function(){return cp(U().flexShrink,String)},
"flex-basis":function(){return cp(U().flexBasis,Sf)},
"align-self":function(){return cp(U().alignSelf,Oui)},
"flex-wrap":function(){return cp(U().flexWrap,k7i)},
"align-content":function(){return cp(U().alignContent,Oui)}})};
cp=function(S,p){return S!==void 0?p(S):void 0};
k7i=function(S){switch(S){case "YPC_FLEX_WRAP_NO_WRAP":return"nowrap";case "YPC_FLEX_WRAP_WRAP":return"wrap";case "YPC_FLEX_WRAP_WRAP_REVERSE":return"wrap-reverse"}};
Voo=function(S){switch(S){case "YPC_POSITION_ABSOLUTE":return"absolute";case "YPC_POSITION_RELATIVE":return"relative"}};
Oui=function(S){switch(S){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"}};
WPT=function(S){switch(S){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"}};
T3n=function(S){switch(S){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"}};
d2n=function(S,p){var U=p==="rtl";switch(S){case "top":var Y=D2P;break;case "bottom":Y=zzd;break;case "left":Y=QOJ;break;default:Y=naL}return function(L){return cp(Y(L,U),Sf)}};
D2P=function(S){var p=S.top;var U=S.vertical;S=S.all;var Y;return(Y=p!=null?p:U)!=null?Y:S};
zzd=function(S){var p=S.bottom;var U=S.vertical;S=S.all;var Y;return(Y=p!=null?p:U)!=null?Y:S};
QOJ=function(S,p){var U=S.left;var Y=S.end;var L=S.start;var I=S.horizontal;S=S.all;var V,W;return(W=(V=U!=null?U:p?Y:L)!=null?V:I)!=null?W:S};
naL=function(S,p){var U=S.right;var Y=S.end;var L=S.start;var I=S.horizontal;S=S.all;var V,W;return(W=(V=U!=null?U:p?L:Y)!=null?V:I)!=null?W:S};
Sf=function(S){var p=S.value;switch(S.unit){case "YPC_DIMENSION_UNIT_POINT":return p+"px";case "YPC_DIMENSION_UNIT_FRACTION":return p+"%";default:return""+p}};
J3d=function(S){switch(S){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"}};
y3i=function(S){var p=S!=null?S:{};S=p.fontRole;var U=p.fontSize;p=p.fontWeight;if(S!==null&&U!==null)switch(S){case "YPC_FONT_ROLE_DISPLAY":switch(U){case "YPC_FONT_SIZE_L":return p==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtDisplayLHeavy":"ytStyledTextViewModelYtDisplayL";case "YPC_FONT_SIZE_M":return p==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtDisplayMHeavy":"ytStyledTextViewModelYtDisplayM";case "YPC_FONT_SIZE_S":return p==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtDisplaySHeavy":
"ytStyledTextViewModelYtDisplayS";case "YPC_FONT_SIZE_XS":return p==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtDisplayXSHeavy":"ytStyledTextViewModelYtDisplayXS";default:return}case "YPC_FONT_ROLE_HEADLINE":switch(U){case "YPC_FONT_SIZE_L":return p==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtHeadlineLHeavy":"ytStyledTextViewModelYtHeadlineL";case "YPC_FONT_SIZE_M":return p==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtHeadlineMHeavy":"ytStyledTextViewModelYtHeadlineM";case "YPC_FONT_SIZE_S":return p===
"YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtHeadlineSHeavy":"ytStyledTextViewModelYtHeadlineS";case "YPC_FONT_SIZE_XS":return p==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtHeadlineXSHeavy":"ytStyledTextViewModelYtHeadlineXS";default:return}case "YPC_FONT_ROLE_BODY":switch(U){case "YPC_FONT_SIZE_XL":return p==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtBodyXLHeavy":"ytStyledTextViewModelYtBodyXL";case "YPC_FONT_SIZE_L":return p==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtBodyLHeavy":
"ytStyledTextViewModelYtBodyL";case "YPC_FONT_SIZE_M":return p==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtBodyMHeavy":"ytStyledTextViewModelYtBodyM";case "YPC_FONT_SIZE_S":return p==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtBodySHeavy":"ytStyledTextViewModelYtBodyS";case "YPC_FONT_SIZE_XS":return p==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtBodyXSHeavy":"ytStyledTextViewModelYtBodyXS"}}};
KPt=function(S,p){return _.I4(S.entities,"pdpStateEntity",p)};
hzL=function(S,p,U){function Y(D){return Object.values(D).map(function(z){var Q=z.productId;z=z.pricingOptionIndex;return buL(L(Q).pricingOptions,z).pricingOptionId})}
function L(D){return W().get(D)}
function I(D){D=Y(D);U(D)}
var V=jOd([S,p],function(D,z){var Q=D==null?void 0:D.selectedPricingOptions;D={};var J=!0;if(Q&&z.length)for(var K=_.d(z),G=K.next();!G.done;G=K.next()){G=G.value;var X=r3P(G.pricingOptions,function(Z){a:{Z=Z.pricingOptionId;for(var l=_.d(Q),a=l.next();!a.done;a=l.next())if(a.value===Z){Z=!0;break a}Z=!1}return Z});
X>=0&&(J=!1,D[G.groupId]={productId:G.productId,pricingOptionIndex:X})}J&&z.length&&(D[z[0].groupId]={productId:z[0].productId,pricingOptionIndex:0});return D}),W=jOd([p],function(D){return new Map(D.map(function(z){return[z.productId,
z]}))}),O=jOd([p],function(D){var z=new Map;
D=_.d(D);for(var Q=D.next();!Q.done;Q=D.next()){var J=Q.value;Q=J.groupId;var K=J.productId;J=_.d(G7X(J.pricingOptions));for(var G=J.next();!G.done;G=J.next()){var X=_.d(G.value);G=X.next().value;X=X.next().value;z.set(X.pricingOptionId,{groupId:Q,productId:K,index:G,pricingOption:X})}}return z});
return{getProductById:L,isProductSelected:function(D){var z=L(D);if(!z)return!1;var Q;return((Q=V()[z.groupId])==null?void 0:Q.productId)===D},
getSelectedPricingOptions:function(){return Object.values(V()).map(function(D){var z=D.productId;D=D.pricingOptionIndex;return buL(L(z).pricingOptions,D)})},
getSelectedProductByGroupId:function(D){var z;return(D=(z=V()[D])==null?void 0:z.productId)?L(D):void 0},
onProductSelected:function(D){var z=L(D);if(z){var Q=V(),J;if(((J=Q[z.groupId])==null?void 0:J.productId)!==D){var K,G;J=(G=(K=Q[z.groupId])==null?void 0:K.pricingOptionIndex)!=null?G:0;K=0;for(G=z.pricingOptions[Symbol.iterator]();!G.next().done;)++K;K<=J&&(J=0);K={};I(Object.assign({},Q,(K[z.groupId]={productId:D,pricingOptionIndex:J},K)))}}},
onPricingOptionSelected:function(D){var z=O().get(D);if(z){D=z.groupId;var Q=z.productId;z=z.index;var J=V(),K,G;if(((K=J[D])==null?void 0:K.productId)!==Q||((G=J[D])==null?void 0:G.pricingOptionIndex)!==z){var X,Z;K=(Z=(X=J[D])==null?void 0:X.pricingGroupAttributes)!=null?Z:[];X={};I(Object.assign({},J,(X[D]={productId:Q,pricingOptionIndex:z,pricingGroupAttributes:K},X)))}}},
onClearGroupSelected:function(D){var z=V();z[D]&&(z=Object.fromEntries(Object.entries(z).filter(function(Q){return _.d(Q).next().value!==D})),I(z))}}};
G7X=function(S){return function U(){var Y,L,I,V,W;return _.p_N(U,function(O){switch(O.nextAddress){case 1:_.V9(O,2),Y=0,L=_.d(S),I=L.next();case 4:if(I.done){O.jumpTo(2);break}V=I.value;W=_.U4e;return _.k(O,[Y++,V],7);case 7:W(O.yieldResult);I=L.next();O.jumpTo(4);break;case 2:_.IO(O),_.T7(O,0)}})}()};
r3P=function(S,p){S=_.d(G7X(S));for(var U=S.next();!U.done;U=S.next()){var Y=_.d(U.value);U=Y.next().value;Y=Y.next().value;if(p(Y))return U}return-1};
buL=function(S,p){S=_.d(G7X(S));for(var U=S.next();!U.done;U=S.next()){var Y=_.d(U.value);U=Y.next().value;Y=Y.next().value;if(U===p)return Y}};
jOd=function(S,p){var U,Y;return function(){for(var L=S.map(function(V){return V()}),I=0;I<L.length;I++)if(!U||L[I]!==U[I]){U=L;
Y=p.apply(null,_.jo(L));break}return Y}};
Rzt=function(S){var p;return!!(S.productId&&S.groupId&&((p=S.pricingOptions)==null?0:p.length)&&S.pricingOptions.every(function(U){return U.pricingOptionId}))};
FPP=function(S,p,U){return hzL(S,jOd([p],function(Y){return Y.filter(Rzt)}),U)};
X4P=function(S,p){return p.length===0?[S]:[S.slice(0,p[0]),S.slice(p[0])].filter(function(U){return U.length>0})};
PVt=function(S){switch(S){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""}};
sOA=function(S,p,U,Y){Y=Object.assign({},Y);_.Rf(Y,ZuE,{selectedOptionId:S,primaryButtonOverride:U});_.xk().dispatch(_.WG("flowStateEntity",p,Y))};
_.u5E=function(){if(!ezt){var S=_.d(_.kj(new Map,void 0,"UJImUe"));ezt=S.next().value;ga5=S.next().value}return ezt};
w4i=function(S){if(S)return _.u5E()().get(S)};
_.loL=function(S,p){if(S&&p){var U=_.u5E();U().set(S,p);S=U();ga5(new Map(S))}};
_.aoX=function(S){return{onSubmit:function(){var p;(p=w4i(S()))==null||p.onSubmit()},
isValid:function(){var p=w4i(S());return p?p.isValid():!0},
isSubmitting:function(){var p,U;return!!((p=w4i(S()))==null?0:(U=p.isSubmitting)==null?0:U.call(p))}}};
fod=function(S,p){return _.I4(S.entities,"contextNoteFeedEntityPayload",p)};
CVP=function(S){S.style.height="auto";S.style.height=S.scrollHeight+"px"};
x2t=function(S){return[S.syncStep,S.asyncStep].filter(function(p){return p!==void 0})};
m2Y=function(S){var p,U,Y;if(S=(p=S.structuredContextNoteFormSchema)==null?void 0:(U=p.fieldSchemas)==null?void 0:(Y=U.noteBody)==null?void 0:Y.validationSchema)for(p=_.d(x2t(S)),U=p.next();!U.done;U=p.next()){U=U.value.rules;if(!U)break;U=_.d(U);for(U=U.next();!U.done;U=U.next())return _.b(U.value,_.EaE)}};
va5=function(S){if(S){S=_.d(x2t(S));for(var p=S.next();!p.done;p=S.next()){p=p.value.rules;if(!p)break;p=_.d(p);for(p=p.next();!p.done;p=p.next())return _.b(p.value,oaE)}}};
iuq=function(S){if(S){S=_.d(x2t(S));for(var p=S.next();!p.done;p=S.next()){p=p.value.rules;if(!p)break;p=_.d(p);for(p=p.next();!p.done;p=p.next())return _.b(p.value,$2d)}}};
N3T=function(S){S=/^https?:\/\//.test(S)?S:"http://"+S;try{var p=_.mz(S)}catch(U){return!1}if(p.toString()!==S)return!1;S=p.JSC$8037_domain_.split(".");return S.length>1&&S.every(function(U){return!!U})};
B3J=function(S,p,U,Y){var L;Y=(L=Y.structuredContextNoteData)==null?void 0:L.createCommentEndpoint;if(L=_.b(Y,_.Lww))return L.commentText=_.Ec(S),L.videoPositionMention=p,L.sources=U,Y};
qVP=function(S){return S==null?void 0:S.stringValue};
toP=function(S,p,U){S=S.map(function(Y,L){return{listItemViewModel:{title:Y.title,subtitle:Y.subtitle,leadingImage:Y.leadingImage,trailingImage:L===p?A3L:void 0,rendererContext:{commandContext:{onTap:Y.onTap}}}}});
return Object.assign({},U&&{header:{panelHeaderViewModel:{title:U}}},{content:{listViewModel:{listItems:S}}})};
c3n=function(S,p){if(S&&p)switch(p){case "SELECTION_TYPE_BOOL":return S.boolValue;case "SELECTION_TYPE_INT":return S.intValue;case "SELECTION_TYPE_STRING":return S.stringValue;case "SELECTION_TYPE_PRIVACY_STATUS":return S.privacyStatusValue}};
SFs=function(S){var p;S=(p=S.options)==null?void 0:p.findIndex(function(U){return U.isSelected});
return S===void 0?-1:S};
piP=function(S,p,U){var Y=function(){return S().label},L={},I=_.VD("ytDropdownViewModelLabel",(L.ytDropdownViewModelLabelError=p,L));
return _.H(_.n,{cond:function(){return S().label&&!(U()===-1&&S().label&&!S().placeholderText)},
then:function(){return _.H("div",{class:I},_.H(_.i6,{text:Y}))}})};
Uan=function(S,p){var U={};U=_.VD("ytDropdownViewModelTitle",(U.ytDropdownViewModelTitlePlaceholder=function(){return p()===-1},U));
return _.H("div",{class:U},_.H(_.i6,{text:function(){var Y=S();var L=p();if(L===-1)Y=Y.placeholderText?Y.placeholderText:Y.label;else{var I,V;Y=(I=Y.options)==null?void 0:(V=I[L])==null?void 0:V.title}return Y}}))};
YFX=function(S,p){var U=function(){return S().hint};
return _.H(_.U0,null,_.H(_.n,{cond:function(){return U()&&!p()},
then:function(){return _.H("div",{class:_.VD("ytDropdownViewModelSupport","ytDropdownViewModelSupportHint")},_.H(_.i6,{text:U,className:"ytDropdownViewModelSupportText"}))}}),_.H(_.n,{cond:p,
then:function(){return _.H("div",{id:"dropdown-view-model-error",role:"alert",class:_.VD("ytDropdownViewModelSupport","ytDropdownViewModelSupportError")},_.H(_.QD,{icon:"INFO",className:"ytDropdownViewModelSupportIcon"}),_.H(_.i6,{text:p,className:"ytDropdownViewModelSupportText"}))}}))};
LJA=function(S,p){var U=_.tW().resolve(_.x7c);_.FM(function(){var Y=S().id;Y&&U!=null&&U.dropdownMap.set(Y,p)})};
IDn=function(S){S=_.b(S.scheduleButton,MbX);S=_.b(S==null?void 0:S.primaryButton,_.K6);S=_.b(S==null?void 0:S.onTap,_.Z$);var p,U,Y=((U=_.b(S,_.I2))==null?void 0:U.commands)||[S];U=_.d(Y);for(S=U.next();!S.done&&!(p=_.b(S.value,_.UCc));S=U.next());var L;p=(L=p)==null?void 0:L.createBroadcastRequest;if(!p)throw Error("Gj");return p};
WJo=function(S,p,U){U=U===void 0?{}:U;var Y,L;return _.T(function(I){if(Y=daE(p))return I.return(Y);(L=Vbn(S,p,U))&&TOt(p,L);return I.return(L)})};
TOt=function(S,p){var U=O_i(S);U&&p.then(function(Y){_.tW().resolve(_.UQ).put(U,new _.YB({innertubeResponse:Y}))})};
daE=function(S){if(S=O_i(S)){var p=_.tW().resolve(_.UQ);if(p.has(S))return p.get(S).then(function(U){return U==null?void 0:_.Y1(U)})}return null};
O_i=function(S){var p=_.b(S.endpoint,_.E$);if(p!=null&&p.videoId)return p={videoId:p.videoId},_.y("web_imp_player_mute_params")&&(p.mutedAtStart=S.startPlaybackInMutedState),_.xn("inline_playback",p)};
Vbn=function(S,p,U){S=_.lZ(S,p.endpoint,kNL(p,U)).then(function(Y){return Y});
return Promise.resolve(S)};
kNL=function(S,p){p=_.y("web_imp_player_mute_params")?Object.assign({},{vis:5,inlinePlayback:!0,inlineUnmuted:!S.startPlaybackInMutedState},p):Object.assign({},{vis:5,autonav:"1"},p);var U;p={contentPlaybackContext:_.yX(p,(U=_.b(S.endpoint.commandMetadata,_.NU))==null?void 0:U.url,window.location.href)};_.y("web_imp_player_mute_params")&&(p.overrideMutedAtStart=!S.startPlaybackInMutedState);return p};
QYA=function(S,p){var U=window.MutationObserver;U&&(pl=new U(function(Y,L){Y=_.d(Y);for(var I=Y.next();!I.done;I=Y.next()){I=I.value;var V;if(V=I.type==="childList"&&I.target)a:{V=S;I=H_X(I.target);V=H_X(V);for(var W=null,O=0;O<I.length;O++)if(V.includes(I[O])){if(O===0){V=!1;break a}W=I[O];break}W?(I=Dai(I,W),V=Dai(V,W),V=I<V):V=!1}if(V){p();L.disconnect();break}}}),(U=zHd())&&pl.observe(U,{childList:!0,
subtree:!0}))};
zHd=function(){var S=document.getElementsByTagName("ytd-rich-grid-renderer");if(S.length>0)return S[0];S=document.getElementsByTagName("ytd-section-list-renderer");return S.length>0?S[0]:null};
H_X=function(S){for(var p=[];S;)p.push(S),S=S.parentElement;return p};
Dai=function(S,p){var U=Array.from(p.children);p=S.indexOf(p);return p>0?U.indexOf(S[p-1]):-1};
UT=function(S,p,U){U=U===void 0?{}:U;return _.Oh(S,U,p)};
nEt=function(S){switch(S){case "MUSIC":return!0;default:return!1}};
J9q=function(S){return S==null?void 0:S.filter(function(p){return p.premiereTrailerBadgeRenderer})};
KJJ=function(S){var p,U=S==null?void 0:(p=S.find(function(Q){return Q.thumbnailOverlayTimeStatusRenderer}))==null?void 0:p.thumbnailOverlayTimeStatusRenderer,Y,L;
if((U==null?0:(Y=U.icon)==null?0:Y.iconType)&&nEt(U==null?void 0:(L=U.icon)==null?void 0:L.iconType)){var I;return{icon:U==null?void 0:(I=U.icon)==null?void 0:I.iconType}}var V,W;var O=(S=(V=S==null?void 0:(O=S.find(function(Q){return Q.thumbnailBottomOverlayViewModel}))==null?void 0:O.thumbnailBottomOverlayViewModel)==null?void 0:(W=V.badges)==null?void 0:W.find(function(Q){var J,K;
return((J=_.b(Q,y9E))==null?void 0:(K=J.inlinePlaybackBadgeData)==null?void 0:K.replicateAsTimestamp)===!0}))?_.b(S,y9E):void 0;
if(O==null?0:O.icon){var D,z;if((O=(D=_.Obw(O==null?void 0:O.icon))==null?void 0:(z=D.clientResource)==null?void 0:z.imageName)&&nEt(O))return{icon:O}}return{}};
r9o=function(S,p){var U="",Y="";switch(S){case -1:case 0:U=p?"VOLUME_OFF":"VOLUME_OFF_FILLED";Y=b_T;break;case 1:U=p?"VOLUME_UP_OUTLINE":"VOLUME_UP";Y=jYs;break;default:_.WP(S)}return{iconName:U,ariaLabel:Y}};
PIT=function(S,p){var U=GNn,Y=_.d(_.kj(hHo(new RHd(function(){},U,p)),void 0,"PAnyd")),L=Y.next().value,I=Y.next().value,V=new RHd(function(W){I(W)},U,p);
_.R8(function(){Promise.resolve().then(function(){var W,O=(W=S())!=null?W:{};V.playerControlsData=O;_.y("player_controls_skip_double_signal_old")&&(V.lastSeenPlayerApi=_.sp(O.playerApi));_.y("player_controls_skip_double_signal_old")||(V.lastSeenPlayerApi=_.sp(O.playerApi));FJt(V)});
_.FG(function(){Xid(V)})});
_.FG(function(){Xid(V)});
return function(){return L()}};
Z_T=function(S){return function(p){var U=S(),Y={playerState:p};if(p===1){var L;(L=U.playerApi)==null||L.loadModule("captions")}if(p===0){var I;(I=U.playerApi)==null||I.unloadModule("captions")}(p!==-1||_.y("web_imp_controls_set_player_state_killswitch"))&&U.setState(Y)}};
sYX=function(S){return function(p){S().setState({playbackRate:p})}};
eHn=function(S){return function(p){var U=S(),Y=U.playerApi,L=Y==null?void 0:Y.getVideoData(),I=(L==null?void 0:L.isLive)||!1;L=L==null?void 0:L.video_id;I={videoDuration:SVs(Y||void 0),isLive:I,videoId:L};I.videoId!==U.videoId&&(I=Object.assign({},_.dRw(Y),I));if(p==null?0:p.playertype)I.playerType=p.playertype;if(Y){I.captionsAvailable=_.gC(Y);p=I;var V;L=(V=Y.getStoryboardLevel(Y.getNumberOfStoryboardLevels()-1))==null?void 0:V.intervalMs;p.storyboardInterval=L?L/1E3:void 0;I.captionsAvailable&&
(I.captionsEnabled=_.MOY(Y))}I.volumeMuted=!(Y==null||!Y.isMuted());U.setState(I)}};
gEt=function(S){return function(p){var U=S(),Y=U.playerApi;if(Y){var L=Y.getPresentingPlayerType();p={playedTime:p||0,percentLoaded:Y.getVideoLoadedFraction(),playerType:L};U.playerState===0&&(p.playedTime=U.videoDuration);U.isLive&&(L=Y.getProgressState(L),p.playedTime-=L.seekableStart,p.videoDuration=SVs(Y));if(U.playerType===1)Y=!1;else{var I;if((I=U.uxConfig)==null?0:I.showCuedOverlay){var V;Y=!((V=U.playerApi)==null?0:V.getPlayerStateObject(U.playerType).isDomPaused)}else Y=!0}Y&&delete p.playedTime;
U.setState(p)}}};
up5=function(S){return function(){var p=S(),U,Y,L,I={volume:(L=(U=p.playerApi)==null?void 0:U.getVolume())!=null?L:0,volumeMuted:!((Y=p.playerApi)==null||!Y.isMuted())};p.setState(I)}};
wi5=function(S){return function(){var p=S(),U=p.playerApi;if(U){var Y={captionsAvailable:_.gC(U)};Y.captionsAvailable&&(Y.captionsEnabled=_.MOY(U));p.setState(Y)}}};
lDJ=function(S){return function(){var p=S();if(p.playerApi&&!(p.volumeMuted||p.controlsVisible&&p.isProbablyAScreenreaderUser)){p.setState({controlsVisible:!0,isProbablyAScreenreaderUser:!0});var U;(U=document.querySelector(".player-control-play-pause-icon"))==null||U.focus()}}};
aDX=function(S){return{appApi:Object.assign({},_.SdN(),{showCaptionsToggleToast:function(p){var U,Y;(Y=(U=S()).showCaptionsToggleToast)==null||Y.call(U,p)},
openInMiniplayer:function(){var p,U;(U=(p=S()).openInMiniplayer)==null||U.call(p)}})}};
fDt=function(S,p){var U,Y,L;return!!(S==null?0:(U=S.playerResponse)==null?0:(Y=U.playerConfig)==null?0:(L=Y.inlinePlaybackConfig)==null?0:L.showScrubbingControls)&&!(p==null?0:p.hideScrubbingControls)};
_.CIP=function(S){var p=!S.miniplayerIsActive;return[5,2,0].includes(S.miniplayerPlaybackState)||p};
xad={FILLED:"youtube_fill",OUTLINE:"youtube_outline"};EEP=function(S,p){var U,Y,L,I,V;_.T(function(W){if(!p.length)return W.return([]);U=[];Y=_.d(p);for(L=Y.next();!L.done;L=Y.next())I=L.value,(V=S.resolveIcon(I))&&!S.iconCache[V.url]&&U.push(_.SXt(S,V).then(function(){}).catch(function(){}));
return W.return(Promise.all(U))})};
maX=function(S,p){var U=[];p=(new Set(p)).values();p=_.d(p);for(var Y=p.next();!Y.done;Y=p.next()){Y=Y.value;for(var L=_.d(Object.values(xad)),I=L.next();!I.done;I=L.next())U.push({iconName:Y,iconStyle:I.value})}EEP(S.iconManager,U)};
_.oEd=function(S,p,U){var Y=U!=null?U:S.iconsToFetch;Y!=null&&Y.length?p!==void 0&&p>=0?_.bQ(_.PA,function(){maX(S,Y)},p):maX(S,Y):Promise.resolve()};
RHd=function(S,p,U){var Y=this;this.renderFn=S;this.listeners=p;this.context=U;this.eventListenerCleanupFunctions=[];this.recentlyNavigated=!1;var L;this.lastSeenPlayerApi=_.sp((L=this.playerControlsData)==null?void 0:L.playerApi);this.boundSetState=this.setState.bind(this);this.state=Object.assign({},_.dRw(),void 0);_.y("player_controls_render_optimization")&&window.addEventListener("state-navigatestart",function(){hHo(Y).setState({playerState:-1});Y.resetRecentlyNavigatedJobId&&_.PA.cancelJob(Y.resetRecentlyNavigatedJobId);
Y.recentlyNavigated=!0;Y.resetRecentlyNavigatedJobId=_.PA.addJob(function(){Y.recentlyNavigated=!1},8,1E4)})};
RHd.prototype.setState=function(S){if(!_.y("mweb_player_skip_no_op_state_changes")||!p4d(S,this.state))if(this.state=Object.assign({},this.state,S),!_.y("player_controls_render_optimization")||this.state.playerState!==-1&&this.state.playerState!==5||!this.recentlyNavigated)S=-1,_.y("player_controls_log_creation_killswitch")||U2Y()||(S=(0,_.AI)()),_.Fg("pcu_s"),_.Fg("pcu_se"),_.Fg("pcu_rs"),this.renderFn(hHo(this)),_.Fg("pcu_re"),YVo(S),_.PA.addJob(function(){_.Fg("pcu_ap")},8)};
var hHo=function(S){var p;var U=_.sp((p=S.playerControlsData)==null?void 0:p.playerApi);return Object.assign({},S.state,{setState:S.boundSetState,domMeasurements:{progressBarLineRect:S.progressBarLineRect},playerApi:U,appApi:S.context.appApi,playerContainer:S.context.playerContainer,playerControlContainer:S.context.playerControlContainer,uxConfig:S.context.uxConfig})},FJt=function(S){S.listeners.forEach(function(p){S.eventListenerCleanupFunctions.push(p.register(function(){return hHo(S)},function(){return S.getData()}))})},
Xid=function(S){S.eventListenerCleanupFunctions.forEach(function(p){p()});
S.eventListenerCleanupFunctions.length=0};
RHd.prototype.getData=function(){return this.playerControlsData};
var Yo=new _.v("abuseReportFlowState");var vEn=new _.v("feedbackFormFlowState");var $ai=new _.v("inputBoxViewModel");var i_q=new _.v("flowNextStepCommand");var NO5=new _.v("flowPrevStepCommand");var BOi=new _.v("updateFlowCommand");_.qFY=new _.v("flowStepRenderer");_.EaE=new _.v("lengthValidationRule");var oaE=new _.v("regexValidationRule");var $2d=new _.v("selectedValidationRule");var A9o=new _.v("talkToRecsViewModel");var tbP=new _.v("creatorGoalSetUpFlowDropdownItemViewModel");var c9A=new _.v("creatorGoalSetUpFlowDropdownViewModel");var y9E=new _.v("thumbnailBadgeViewModel");_.Sro=new _.v("radioButtonGroupViewModel");var MbX=new _.v("panelFooterViewModel");var pmn=new _.v("ypcCancelRecurrenceCommand");var UdT=new _.v("cancellationFlowState");var ZuE=new _.v("premiumPurchaseFlowState");var Yri=new _.v("surveyAnswerCardRenderer");var LzY=new _.v("showMoreButtonRenderer");var M$P;var I1d,ddo=function(){if(I1d!==void 0)return I1d;var S=document.createElement("template");_.h(S,'\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');
S.content.insertBefore(_.t().content.cloneNode(!0),S.content.firstChild);var p=S.content,U=p.insertBefore;M$P===void 0&&(M$P=document.createElement("template"));var Y=M$P;U.call(p,Y.content.cloneNode(!0),S.content.firstChild);return I1d=S};var Ll=function(){var S=_.w.apply(this,arguments)||this;S.goal="CREATOR_GOALS_PURCHASE_TARGET_10_SC";S.goalDescription="";S.timer="CREATOR_GOAL_TIME_LIMIT_30_MINUTES";S.tier="CREATOR_GOALS_ELIGIBLE_PURCHASE_TYPE_TEAL_SC";S.startButtonId="start-button";S.exampleButtonId="example-button";return S};
_.r(Ll,_.w);_.M=Ll.prototype;_.M.getGoalDropdownItems=function(){var S,p;return(p=_.b((S=this.data)==null?void 0:S.purchaseTargetDropdown,c9A))==null?void 0:p.dropdownItems};
_.M.getTimerDropdownItems=function(){var S,p;return(p=_.b((S=this.data)==null?void 0:S.timerDropdown,c9A))==null?void 0:p.dropdownItems};
_.M.getColorDropdownItems=function(){var S,p;return(p=_.b((S=this.data)==null?void 0:S.colorDropdown,c9A))==null?void 0:p.dropdownItems};
_.M.getDropdownItemText=function(S){var p;return(p=_.b(S,tbP))==null?void 0:p.itemLabel};
_.M.getDropdownItemValue=function(S){S=_.b(S,tbP);return(S==null?void 0:S.timeLimit)||(S==null?void 0:S.purchaseTarget)||(S==null?void 0:S.eligiblePurchaseType)};
_.M.updateFlowState=function(S){_.St(this.hostElement,"yt-flow-partial-update-flow-state-entity",[{creatorGoalSetUpFlowState:S}])};
_.M.attached=function(){this.updateFlowState({goalDescription:this.goalDescription,targetPurchases:this.goal,goalDuration:this.timer,eligiblePurchaseType:this.tier})};
_.M.updateGoalValue=function(S){this.goal=S.detail.value;this.updateFlowState({targetPurchases:this.goal})};
_.M.onTextValueChanged=function(S){this.goalDescription=S.detail.value;this.updateFlowState({goalDescription:this.goalDescription})};
_.M.updateTimerValue=function(S){this.timer=S.detail.value;this.updateFlowState({goalDuration:this.timer})};
_.M.updateTierValue=function(S){this.tier=S.detail.value;this.updateFlowState({eligiblePurchaseType:this.tier})};
_.M.getButtonViewModel=function(S){S=(S==null?void 0:S.length)>0?"BUTTON_VIEW_MODEL_STATE_ACTIVE":"BUTTON_VIEW_MODEL_STATE_DISABLED";var p,U=_.b((p=this.data)==null?void 0:p.startGoalButton,_.K6);return Object.assign({},U,{state:S})};
_.$u.Object.defineProperties(Ll,{template:{configurable:!0,enumerable:!0,get:function(){return ddo()}}});
_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],Ll.prototype,"ytRendererBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],Ll.prototype,"data",void 0);_.x([_.g(),_.E("design:type",Object)],Ll.prototype,"goal",void 0);_.x([_.g(),_.E("design:type",Object)],Ll.prototype,"goalDescription",void 0);_.x([_.g(),_.E("design:type",Object)],Ll.prototype,"timer",void 0);_.x([_.g(),_.E("design:type",Object)],Ll.prototype,"tier",void 0);
_.x([_.g(),_.E("design:type",Object)],Ll.prototype,"startButtonId",void 0);_.x([_.g(),_.E("design:type",Object)],Ll.prototype,"exampleButtonId",void 0);Ll=_.x([_.FB({is:"yt-creator-goal-set-up-flow-view-model",disableElementRegistration:!0,noInjection:!0})],Ll);_.C(Ll,"yt-creator-goal-set-up-flow-view-model",function(){return ddo()},{mode:_.y("live_chat_enable_sink_wrapper")?2:0});var V$L;var T5L;var Wzq;var MS=function(){return _.w.apply(this,arguments)||this};
_.r(MS,_.w);_.x([_.g(),_.E("design:type",Object)],MS.prototype,"data",void 0);MS=_.x([_.FB({is:"yt-survey-answer-card-renderer",disableElementRegistration:!0})],MS);
_.C(MS,"yt-survey-answer-card-renderer",function(){if(Wzq===void 0){var S=document.createElement("template");_.h(S,'\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>');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);var p=S.content,U=p.insertBefore;T5L===void 0&&(T5L=document.createElement("template"));var Y=T5L;U.call(p,Y.content.cloneNode(!0),S.content.firstChild);Wzq=S}S=Wzq;return S},{mode:2});var O2E;var krP;var Ic=function(){return _.w.apply(this,arguments)||this};
_.r(Ic,_.w);_.M=Ic.prototype;_.M.onSelectedItemChanged=function(){this.selectedItem&&this.selectedItemChanged(this.selectedItem)};
_.M.selectedItemChanged=function(S){_.St(this.hostElement,"yt-survey-flow-step-option-changed",[{feedbackTokens:[S.feedbackToken||""]}])};
_.M.surveyAnswerCardRendererClicked=function(S){if(S.target&&_.b(S.model.item,Yri)){var p=S.target;S=_.b(S.model.item,Yri);S.onTapCommand?_.Lp(p,[S.onTapCommand],p):this.data.onTapCommand&&_.Lp(p,[this.data.onTapCommand],p);this.selectedItemChanged(S)}};
_.M.checkIsCancellationStyle=function(S){return S==="SURVEY_FLOW_STEP_RENDERER_STYLE_CANCELLATION"};
_.M.updateSelectedItemFromBinding=function(S){this.selectedItem=S.detail.value};
Ic.prototype.onSelectedItemChanged=Ic.prototype.onSelectedItemChanged;_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],Ic.prototype,"ytRendererBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],Ic.prototype,"data",void 0);_.x([_.g(),_.E("design:type",Object)],Ic.prototype,"selectedItem",void 0);_.x([_.g({computed:"checkIsCancellationStyle(data.style)",reflectToAttribute:!0}),_.E("design:type",Boolean)],Ic.prototype,"isCancellationStyle",void 0);
_.x([_.T4("selectedItem"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],Ic.prototype,"onSelectedItemChanged",null);Ic=_.x([_.FB({is:"yt-survey-flow-step-renderer",disableElementRegistration:!0})],Ic);
_.C(Ic,"yt-survey-flow-step-renderer",function(){if(krP===void 0){var S=document.createElement("template");_.h(S,'\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');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);var p=S.content,U=p.insertBefore;O2E===void 0&&(O2E=document.createElement("template"));var Y=O2E;U.call(p,Y.content.cloneNode(!0),S.content.firstChild);krP=S}S=krP;return S},{mode:2});var df=function(){var S=_.w.apply(this,arguments)||this;S.actionMap={"yt-survey-flow-step-option-changed":"handleSurveyFlowStepOptionChanged"};return S};
_.r(df,_.w);df.prototype.handleSurveyFlowStepOptionChanged=function(S){this.ytdReduxBehavior.dispatch(_.S4({type:"YPC_UPDATE_SURVEY_FEEDBACK_DATA",payload:S}));_.St(this.hostElement,"yt-flow-partial-update-flow-state-entity",[{cancellationFlowState:{surveyFeedback:S}}])};
_.x([_.F(_.Aj.YtActionHandlerBehavior),_.E("design:type",Object)],df.prototype,"ytActionHandlerBehavior",void 0);_.x([_.F(_.Xh),_.E("design:type",Object)],df.prototype,"ytdReduxBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],df.prototype,"data",void 0);df=_.x([_.f({disableElementRegistration:!0,is:"ytd-survey-flow-step-renderer"})],df);
_.C(df,"ytd-survey-flow-step-renderer",function(){if(V$L!==void 0)return V$L;var S=document.createElement("template");_.h(S,'\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');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);return V$L=S},{mode:1});var LPP;LPP=_.zy({avatarViewModel:_.bS,buttonViewModel:_.PG,subscribeButtonViewModel:_.jW,imageBannerViewModel:_.LkP});_.H2i=_.Oo(_.Ioq);_.cH(_.Ioq);var Ddo;var VG=function(){return _.w.apply(this,arguments)||this};
_.r(VG,_.w);_.x([_.F(_.eL.YtComponentBehavior),_.E("design:type",Object)],VG.prototype,"ytComponentBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],VG.prototype,"data",void 0);VG=_.x([_.f({is:"ytd-channel-history-renderer",disableElementRegistration:!0})],VG);
_.C(VG,"ytd-channel-history-renderer",function(){if(Ddo!==void 0)return Ddo;var S=document.createElement("template");_.h(S,'\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>');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);return Ddo=S},{mode:1});var zR5;var Tk=function(){return _.w.apply(this,arguments)||this};
_.r(Tk,_.w);_.x([_.g(),_.E("design:type",Object)],Tk.prototype,"data",void 0);Tk=_.x([_.f({is:"ytd-feature-enablement-info-renderer",disableElementRegistration:!0})],Tk);
_.C(Tk,"ytd-feature-enablement-info-renderer",function(){if(zR5!==void 0)return zR5;var S=document.createElement("template");_.h(S,'\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>');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);return zR5=S},{mode:1});var QWA;var nYT;var WN=function(){var S=_.w.apply(this,arguments)||this;S.textBoxMaxLength=_.y("enable_tvod_campaign_code_integration")?15:12;return S};
_.r(WN,_.w);_.M=WN.prototype;_.M.dataChanged=function(){this.userInput=this.data.couponCode?this.data.couponCode:"";this.validate()};
_.M.onSubmit=function(){var S=this.data.serviceEndpoint,p=_.b(S,_.SJ);p&&S&&(p.couponCode=this.userInput,_.tW().resolve(_.cQ).resolveCommand(S,{form:{element:this.hostElement}}))};
_.M.validate=function(){var S=!(!this.data||!this.data.couponCode||this.data.couponCode!==this.userInput);this.showTick=S&&!this.data.errorMessage;this.showErrorMessage=S&&!!this.data.errorMessage;this.hideApplyButton=!this.userInput||this.showTick||this.showErrorMessage;this.disableApplyButton=_.y("enable_tvod_campaign_code_integration")?this.userInput.match(/^[\d\w]{5,15}$/)===null:this.userInput.match(/^[\d\w]{12}$/)===null};
_.M.computeStyle=function(S){return S};
_.M.computeShowValidationBelowInput=function(S){return S!=="YPC_COUPON_RENDERER_STYLE_END_ALIGN"};
_.M.updateUserInputFromBinding=function(S){this.userInput=S.currentTarget.value};
_.M.updateShowErrorMessageFromBinding=function(S){this.showErrorMessage=S.detail.value};
_.$u.Object.defineProperties(WN.prototype,{validationState:{configurable:!0,enumerable:!0,get:function(){return this.showTick?"success":this.showErrorMessage?"error":this.userInput?"user-input":"default"}}});
WN.prototype.dataChanged=WN.prototype.dataChanged;_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],WN.prototype,"ytRendererBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],WN.prototype,"data",void 0);_.x([_.g(),_.E("design:type",String)],WN.prototype,"userInput",void 0);_.x([_.g(),_.E("design:type",Boolean)],WN.prototype,"disableApplyButton",void 0);_.x([_.g(),_.E("design:type",Boolean)],WN.prototype,"hideApplyButton",void 0);
_.x([_.g(),_.E("design:type",Boolean)],WN.prototype,"hideErrorMessage",void 0);_.x([_.g(),_.E("design:type",Boolean)],WN.prototype,"showTick",void 0);_.x([_.g(),_.E("design:type",Boolean)],WN.prototype,"showErrorMessage",void 0);_.x([_.g({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.E("design:type",String)],WN.prototype,"couponStyle",void 0);
_.x([_.g({reflectToAttribute:!0,computed:"computeShowValidationBelowInput(data.style)"}),_.E("design:type",Boolean)],WN.prototype,"showValidationBelowInput",void 0);_.x([_.g(),_.E("design:type",Object)],WN.prototype,"textBoxMaxLength",void 0);_.x([_.z4("data"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],WN.prototype,"dataChanged",null);
_.x([_.e("showTick","showErrorMessage","userInput"),_.E("design:type",String),_.E("design:paramtypes",[])],WN.prototype,"validationState",null);WN=_.x([_.f({disableElementRegistration:!0,is:"ytd-ypc-coupon-renderer"})],WN);
_.C(WN,"ytd-ypc-coupon-renderer",function(){if(nYT!==void 0)return nYT;var S=document.createElement("template");_.h(S,'\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');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);return nYT=S},{mode:1});var OT=function(){return _.w.apply(this,arguments)||this};
_.r(OT,_.w);OT.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"}}}};
OT.prototype.computeStyle=function(S){return S};
_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],OT.prototype,"ytRendererBehavior",void 0);_.x([_.F(_.qH.YtRendererstamperBehavior),_.E("design:type",Object)],OT.prototype,"ytRendererstamperBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],OT.prototype,"data",void 0);_.x([_.g({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.E("design:type",String)],OT.prototype,"buttonStyle",void 0);OT=_.x([_.f({is:"ytd-flow-bottom-bar-renderer",disableElementRegistration:!0})],OT);
_.C(OT,"ytd-flow-bottom-bar-renderer",function(){if(QWA!==void 0)return QWA;var S=document.createElement("template");_.h(S,'\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');
S.content.insertBefore(_.t().content.cloneNode(!0),S.content.firstChild);return QWA=S},{mode:1});var JYq;var yYs;var KzT;var ko=function(){return _.w.apply(this,arguments)||this};
_.r(ko,_.w);ko.prototype.configureRendererStamper=function(){return{"data.trailingButtons":{id:"trailing-buttons",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.backButton":{id:"back-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
ko.prototype.focus=function(S){this.title&&_.ig(this.title,S)};
_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],ko.prototype,"ytRendererBehavior",void 0);_.x([_.F(_.qH.YtRendererstamperBehavior),_.E("design:type",Object)],ko.prototype,"ytRendererstamperBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],ko.prototype,"data",void 0);_.x([_.O2("#title"),_.E("design:type",HTMLElement)],ko.prototype,"title",void 0);ko=_.x([_.f({is:"ytd-flow-top-bar-renderer",disableElementRegistration:!0})],ko);
_.C(ko,"ytd-flow-top-bar-renderer",function(){if(KzT!==void 0)return KzT;var S=document.createElement("template");_.h(S,'\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');
S.content.insertBefore(_.t().content.cloneNode(!0),S.content.firstChild);return KzT=S},{mode:1});var b2d;var jWo;var rYi;var HN=function(){return _.w.apply(this,arguments)||this};
_.r(HN,_.w);HN.prototype.freeTextValueChanged=function(){_.St(this.hostElement,"yt-free-text-flow-step-input-changed",[{freeTextAnswers:[{answer:this.freeTextValue}]}])};
HN.prototype.updateFreeTextValueFromBinding=function(S){this.freeTextValue=S.detail.value};
_.$u.Object.defineProperties(HN.prototype,{characterLimitClass:{configurable:!0,enumerable:!0,get:function(){var S,p,U=(p=(S=this.data)==null?void 0:S.responseMaxLength)!=null?p:500,Y;return((Y=this.freeTextValue)!=null?Y:"").length>=U?"maxed-out":""}}});
HN.prototype.freeTextValueChanged=HN.prototype.freeTextValueChanged;_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],HN.prototype,"ytRendererBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],HN.prototype,"data",void 0);_.x([_.g(),_.E("design:type",String)],HN.prototype,"freeTextValue",void 0);_.x([_.O2("#user-input"),_.E("design:type",HTMLTextAreaElement)],HN.prototype,"input",void 0);
_.x([_.e("freeTextValue"),_.E("design:type",Object),_.E("design:paramtypes",[])],HN.prototype,"characterLimitClass",null);_.x([_.T4("freeTextValue"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],HN.prototype,"freeTextValueChanged",null);HN=_.x([_.FB({is:"yt-free-text-input-flow-step-renderer",disableElementRegistration:!0})],HN);
_.C(HN,"yt-free-text-input-flow-step-renderer",function(){if(rYi===void 0){var S=document.createElement("template");_.h(S,'\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>');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);var p=S.content,U=p.insertBefore;jWo===void 0&&(jWo=document.createElement("template"));var Y=jWo;U.call(p,Y.content.cloneNode(!0),S.content.firstChild);rYi=S}S=rYi;return S},{mode:2});var Dz=function(){var S=_.w.apply(this,arguments)||this;S.actionMap={"yt-free-text-flow-step-input-changed":"handleFreeTextFlowStepInputChanged"};return S};
_.r(Dz,_.w);Dz.prototype.handleFreeTextFlowStepInputChanged=function(S){_.St(this.hostElement,"yt-flow-partial-update-flow-state-entity",[{cancellationFlowState:{surveyFeedback:S}}])};
_.x([_.F(_.Aj.YtActionHandlerBehavior),_.E("design:type",Object)],Dz.prototype,"ytActionHandlerBehavior",void 0);_.x([_.F(_.Xh),_.E("design:type",Object)],Dz.prototype,"ytdReduxBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],Dz.prototype,"data",void 0);Dz=_.x([_.f({disableElementRegistration:!0,is:"ytd-free-text-input-flow-step-renderer"})],Dz);
_.C(Dz,"ytd-free-text-input-flow-step-renderer",function(){if(b2d!==void 0)return b2d;var S=document.createElement("template");_.h(S,'\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');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);return b2d=S},{mode:1});var Grs;var hRL;var zk=function(){return _.w.apply(this,arguments)||this};
_.r(zk,_.w);_.x([_.g(),_.E("design:type",Object)],zk.prototype,"data",void 0);zk=_.x([_.f({disableElementRegistration:!0,is:"ytd-metadata-line-renderer"})],zk);
_.C(zk,"ytd-metadata-line-renderer",function(){if(hRL!==void 0)return hRL;var S=document.createElement("template");_.h(S,'\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');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);return hRL=S},{mode:1});var QG=function(){return _.w.apply(this,arguments)||this};
_.r(QG,_.w);QG.prototype.configureRendererStamper=function(){return{"data.metadataLines":{id:"metadata-lines",mapping:{metadataLineRenderer:{component:"ytd-metadata-line-renderer"}}}}};
_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],QG.prototype,"ytRendererBehavior",void 0);_.x([_.F(_.qH.YtRendererstamperBehavior),_.E("design:type",Object)],QG.prototype,"ytRendererstamperBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],QG.prototype,"data",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Boolean)],QG.prototype,"isMasthead",void 0);QG=_.x([_.f({disableElementRegistration:!0,is:"ytd-media-product-renderer"})],QG);
_.C(QG,"ytd-media-product-renderer",function(){if(Grs!==void 0)return Grs;var S=document.createElement("template");_.h(S,'\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');
S.content.insertBefore(_.t().content.cloneNode(!0),S.content.firstChild);return Grs=S},{mode:1});var RRi;var nl=function(){return _.w.apply(this,arguments)||this};
_.r(nl,_.w);nl.prototype.attached=function(){this.billboardImage.notifyOnLoaded=!0};
nl.prototype.onBillboardImageLoaded=function(){_.cv(this.hostElement,"yt-refit")};
nl.prototype.onBillboardImageLoaded=nl.prototype.onBillboardImageLoaded;_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],nl.prototype,"ytRendererBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],nl.prototype,"data",void 0);_.x([_.O2("#billboardImage"),_.E("design:type",Object)],nl.prototype,"billboardImage",void 0);_.x([_.Vd("yt-img-shadow-loaded"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],nl.prototype,"onBillboardImageLoaded",null);
nl=_.x([_.f({disableElementRegistration:!0,is:"ytd-billboard-masthead-renderer"})],nl);
_.C(nl,"ytd-billboard-masthead-renderer",function(){if(RRi!==void 0)return RRi;var S=document.createElement("template");_.h(S,'\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');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);return RRi=S},{mode:1});var Fzi;var JC=function(){var S=_.w.apply(this,arguments)||this;S.smallSize=!1;return S};
_.r(JC,_.w);_.x([_.F(_.eL.YtComponentBehavior),_.E("design:type",Object)],JC.prototype,"ytComponentBehaviorType",void 0);_.x([_.g(),_.E("design:type",Object)],JC.prototype,"data",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],JC.prototype,"smallSize",void 0);JC=_.x([_.f({disableElementRegistration:!0,is:"ytd-bullet-formatted-string"})],JC);
_.C(JC,"ytd-bullet-formatted-string",function(){if(Fzi!==void 0)return Fzi;var S=document.createElement("template");_.h(S,'\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');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);return Fzi=S},{mode:1});var XmE;var yG=function(){return _.w.apply(this,arguments)||this};
_.r(yG,_.w);yG.prototype.configureRendererStamper=function(){return{"data.product":{id:"product",mapping:{mediaProductRenderer:"ytd-media-product-renderer"}}}};
_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],yG.prototype,"ytRendererBehavior",void 0);_.x([_.F(_.qH.YtRendererstamperBehavior),_.E("design:type",Object)],yG.prototype,"ytRendererstamperBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],yG.prototype,"data",void 0);yG=_.x([_.f({disableElementRegistration:!0,is:"ytd-offer-detail-renderer"})],yG);
_.C(yG,"ytd-offer-detail-renderer",function(){if(XmE!==void 0)return XmE;var S=document.createElement("template");_.h(S,'\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');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);return XmE=S},{mode:1});var P9X;var Kl=function(){return _.w.apply(this,arguments)||this};
_.r(Kl,_.w);Kl.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"}}}};
_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],Kl.prototype,"ytRendererBehavior",void 0);_.x([_.F(_.qH.YtRendererstamperBehavior),_.E("design:type",Object)],Kl.prototype,"ytRendererstamperBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],Kl.prototype,"data",void 0);Kl=_.x([_.f({disableElementRegistration:!0,is:"ytd-offer-detail-step-renderer"})],Kl);
_.C(Kl,"ytd-offer-detail-step-renderer",function(){if(P9X!==void 0)return P9X;var S=document.createElement("template");_.h(S,'\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');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);return P9X=S},{mode:1});var Z2t;var b7=function(){var S=_.w.apply(this,arguments)||this;S.isInOfferModule=!1;return S};
_.r(b7,_.w);_.M=b7.prototype;_.M.computeHasEndpoint=function(){var S;return!((S=this.data)==null||!S.onClickCommand)};
_.M.dataChanged=function(){var S;if((S=this.data)==null?0:S.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")};
_.M.detached=function(){var S;if((S=this.data)==null?0:S.onClickCommand)this.hostElement.removeEventListener("click",this.handleClickEvent),this.hostElement.removeEventListener("keydown",this.onContentKeyDown),this.hostElement.removeEventListener("keyup",this.onContentKeyUp)};
_.M.handleClickEvent=function(){var S;if((S=this.data)==null?0:S.onClickCommand){var p;this.componentBehavior.resolveCommand((p=this.data)==null?void 0:p.onClickCommand)}};
_.M.onContentKeyDown=function(S){S.key==="Enter"?this.handleClickEvent(S):S.key===" "&&S.preventDefault()};
_.M.onContentKeyUp=function(S){S.key===" "&&this.handleClickEvent(S)};
b7.prototype.dataChanged=b7.prototype.dataChanged;_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],b7.prototype,"ytRendererBehavior",void 0);_.x([_.F(_.eL.YtComponentBehavior),_.E("design:type",Object)],b7.prototype,"componentBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],b7.prototype,"data",void 0);_.x([_.g({computed:"computeHasEndpoint(data)",reflectToAttribute:!0}),_.E("design:type",Boolean)],b7.prototype,"hasEndpoint",void 0);
_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],b7.prototype,"isInOfferModule",void 0);_.x([_.T4("data"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],b7.prototype,"dataChanged",null);b7=_.x([_.f({disableElementRegistration:!0,is:"ytd-channel-masthead-renderer"})],b7);
_.C(b7,"ytd-channel-masthead-renderer",function(){if(Z2t!==void 0)return Z2t;var S=document.createElement("template");_.h(S,'\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>');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);return Z2t=S},{mode:1});var sWq;var jf=function(){var S=_.w.apply(this,arguments)||this;S.thumbnailObjectFit="CONTAIN";S.thumbnailObjectPosition="LEFT";S.isExpanded=!1;return S};
_.r(jf,_.w);_.M=jf.prototype;_.M.configureRendererStamper=function(){return{data:{id:"thumbnail",mapping:{thumbnail:{component:"yt-img-shadow",properties:{thumbnail:"[[data.thumbnail]]",objectFit:"[[thumbnailObjectFit]]",objectPosition:"[[thumbnailObjectPosition]]"}}}}}};
_.M.dataChanged=function(){this.resetStates()};
_.M.computeisTapOnOfferInfoContainerEnabled=function(){var S;return((S=this.data)==null?void 0:S.layoutType)==="CARD_LAYOUT_TYPE_COMPACT"};
_.M.onExpandBtnClick=function(){var S,p=_.b((S=this.data)==null?void 0:S.showMoreButtonRenderer,LzY);p&&_.La(_.HX(),p.trackingParams);this.isExpanded=!this.isExpanded};
_.M.onOfferInfoClick=function(S){this.isTapOnOfferInfoContainerEnabled&&(_.Eo(_.E1(S)||[],this.hostElement,["A".toString(),"BUTTON".toString()])||_.mh(_.E1(S)||[],this.hostElement,["expand-button"])||this.executeTapCommand())};
_.M.onBottomBarClick=function(){this.executeTapCommand()};
_.M.executeTapCommand=function(){var S,p=(S=this.data)==null?void 0:S.tapCommand;p&&this.ytComponentBehavior.resolveCommand(p)};
_.M.resetStates=function(){this.isExpanded=!1};
_.$u.Object.defineProperties(jf.prototype,{hasThumbnail:{configurable:!0,enumerable:!0,get:function(){var S;return!((S=this.data)==null||!S.thumbnail)}},
enableExpandButton:{configurable:!0,enumerable:!0,get:function(){var S=!(!this.showMoreButtonTitle||!this.showLessButtonTitle),p,U,Y;return((p=this.data)==null?void 0:p.styleType)==="CARD_STYLE_TYPE_INTERACTIVE_CARD"&&S&&!!((U=this.data)==null?0:(Y=U.benefits)==null?0:Y.length)}},
enableOfferContentIcon:{configurable:!0,enumerable:!0,get:function(){var S;return((S=this.data)==null?void 0:S.layoutType)==="CARD_LAYOUT_TYPE_COMPACT"&&!this.enableExpandButton}},
showMoreButtonTitle:{configurable:!0,enumerable:!0,get:function(){var S,p,U;return((p=_.b((S=this.data)==null?void 0:S.showMoreButtonRenderer,LzY))==null?void 0:p.showMoreButtonTitle)||((U=this.data)==null?void 0:U.showMoreButtonTitle)}},
showLessButtonTitle:{configurable:!0,enumerable:!0,get:function(){var S,p,U;return((p=_.b((S=this.data)==null?void 0:S.showMoreButtonRenderer,LzY))==null?void 0:p.showLessButtonTitle)||((U=this.data)==null?void 0:U.showLessButtonTitle)}},
expandedBtnText:{configurable:!0,enumerable:!0,get:function(){if(this.isExpanded){var S;return(S=this.showLessButtonTitle)!=null?S:""}var p;return(p=this.showMoreButtonTitle)!=null?p:""}},
enableBottomBar:{configurable:!0,enumerable:!0,get:function(){var S,p,U;return((S=this.data)==null?void 0:S.layoutType)==="CARD_LAYOUT_TYPE_FULL"&&!!(((p=this.data)==null?0:p.footerTitle)||((U=this.data)==null?0:U.footerSubtitle))}}});
jf.prototype.dataChanged=jf.prototype.dataChanged;_.x([_.F(_.eL.YtComponentBehavior),_.E("design:type",Object)],jf.prototype,"ytComponentBehavior",void 0);_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],jf.prototype,"ytRendererBehavior",void 0);_.x([_.F(_.qH.YtRendererstamperBehavior),_.E("design:type",Object)],jf.prototype,"ytRendererstamperBehavior",void 0);_.x([_.g(),_.E("design:type",String)],jf.prototype,"thumbnailObjectFit",void 0);
_.x([_.g(),_.E("design:type",String)],jf.prototype,"thumbnailObjectPosition",void 0);_.x([_.g({reflectToAttribute:!0,computed:"computeisTapOnOfferInfoContainerEnabled(data)"}),_.E("design:type",Boolean)],jf.prototype,"isTapOnOfferInfoContainerEnabled",void 0);_.x([_.g(),_.E("design:type",Object)],jf.prototype,"isExpanded",void 0);_.x([_.g(),_.E("design:type",Object)],jf.prototype,"data",void 0);_.x([_.g({computed:"computeIcon_(data.footerIcon)"}),_.E("design:type",String)],jf.prototype,"icon",void 0);
_.x([_.z4("data"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],jf.prototype,"dataChanged",null);_.x([_.e("data.thumbnail"),_.E("design:type",Boolean),_.E("design:paramtypes",[])],jf.prototype,"hasThumbnail",null);_.x([_.e("showMoreButtonTitle","showLessButtonTitle","data.styleType","data.benefits"),_.E("design:type",Boolean),_.E("design:paramtypes",[])],jf.prototype,"enableExpandButton",null);
_.x([_.e("data"),_.E("design:type",Boolean),_.E("design:paramtypes",[])],jf.prototype,"enableOfferContentIcon",null);_.x([_.e("data.showMoreButtonRenderer","data.showMoreButtonTitle"),_.E("design:type",Object),_.E("design:paramtypes",[])],jf.prototype,"showMoreButtonTitle",null);_.x([_.e("data.showMoreButtonRenderer","data.showLessButtonTitle"),_.E("design:type",Object),_.E("design:paramtypes",[])],jf.prototype,"showLessButtonTitle",null);
_.x([_.e("isExpanded","showMoreButtonRenderer","showLessButtonTitle"),_.E("design:type",String),_.E("design:paramtypes",[])],jf.prototype,"expandedBtnText",null);_.x([_.e("data"),_.E("design:type",Boolean),_.E("design:paramtypes",[])],jf.prototype,"enableBottomBar",null);jf=_.x([_.f({disableElementRegistration:!0,is:"ytd-offer-card-renderer"})],jf);
_.C(jf,"ytd-offer-card-renderer",function(){if(sWq!==void 0)return sWq;var S=document.createElement("template");_.h(S,'\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');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);return sWq=S},{mode:1});var eRP;var rf=function(){return _.w.apply(this,arguments)||this};
_.r(rf,_.w);rf.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"}}}};
rf.prototype.onClick=function(S){if(!_.Eo(S.composedPath()||[],this.hostElement,["A".toString()])){var p,U;if((S=(U=_.b((p=this.data)==null?void 0:p.actionButton,_.XT))==null?void 0:U.command)&&!this.ytComponentBehavior.resolveCommand(S)){var Y;(Y=_.HX())==null||Y.clickCommand(S);_.tW().resolve(_.cQ).resolveCommand(S,{form:{element:this.hostElement}})}}};
_.x([_.F(_.eL.YtComponentBehavior),_.E("design:type",Object)],rf.prototype,"ytComponentBehavior",void 0);_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],rf.prototype,"ytRendererBehavior",void 0);_.x([_.F(_.qH.YtRendererstamperBehavior),_.E("design:type",Object)],rf.prototype,"ytRendererstamperBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],rf.prototype,"data",void 0);rf=_.x([_.f({disableElementRegistration:!0,is:"ytd-offer-content-renderer"})],rf);
_.C(rf,"ytd-offer-content-renderer",function(){if(eRP!==void 0)return eRP;var S=document.createElement("template");_.h(S,'\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');
S.content.insertBefore(_.t().content.cloneNode(!0),S.content.firstChild);return eRP=S},{mode:1});var gYP;var Gk=function(){return _.w.apply(this,arguments)||this};
_.r(Gk,_.w);Gk.prototype.configureRendererStamper=function(){return{"data.offerList":{id:"offer-list",mapping:{offerContentRenderer:{component:"ytd-offer-content-renderer"},offerCardRenderer:{component:"ytd-offer-card-renderer"}}}}};
_.$u.Object.defineProperties(Gk.prototype,{hasHeaderData:{configurable:!0,enumerable:!0,get:function(){var S,p;return!((S=this.data)==null||!S.title)||!((p=this.data)==null||!p.description)}}});
_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],Gk.prototype,"ytRendererBehavior",void 0);_.x([_.F(_.qH.YtRendererstamperBehavior),_.E("design:type",Object)],Gk.prototype,"ytRendererstamperBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],Gk.prototype,"data",void 0);_.x([_.e("data"),_.E("design:type",Object),_.E("design:paramtypes",[])],Gk.prototype,"hasHeaderData",null);Gk=_.x([_.f({disableElementRegistration:!0,is:"ytd-offer-section-renderer"})],Gk);
_.C(Gk,"ytd-offer-section-renderer",function(){if(gYP!==void 0)return gYP;var S=document.createElement("template");_.h(S,'\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');
S.content.insertBefore(_.t().content.cloneNode(!0),S.content.firstChild);return gYP=S},{mode:1});var uaX;var hC=function(){return _.w.apply(this,arguments)||this};
_.r(hC,_.w);
hC.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"}}}}};
_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],hC.prototype,"ytRendererBehavior",void 0);_.x([_.F(_.qH.YtRendererstamperBehavior),_.E("design:type",Object)],hC.prototype,"ytRendererstamperBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],hC.prototype,"data",void 0);hC=_.x([_.f({disableElementRegistration:!0,is:"ytd-offer-selection-step-renderer"})],hC);
_.C(hC,"ytd-offer-selection-step-renderer",function(){if(uaX!==void 0)return uaX;var S=document.createElement("template");_.h(S,'\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>');
S.content.insertBefore(_.t().content.cloneNode(!0),S.content.firstChild);return uaX=S},{mode:1});var wmi;var Rc=function(){return _.w.apply(this,arguments)||this};
_.r(Rc,_.w);Rc.prototype.computeStyle=function(S){return S};
Rc.prototype.computeImageWidth=function(S){return S==="CONFIRMATION_MASTHEAD_RENDERER_STYLE_WIDE"?150:90};
_.x([_.g({reflectToAttribute:!0,value:"CONFIRMATION_MASTHEAD_RENDERER_STYLE_UNKNOWN",computed:"computeStyle(data.style)"}),_.E("design:type",String)],Rc.prototype,"containerStyle",void 0);_.x([_.g({reflectToAttribute:!0,value:90,computed:"computeImageWidth(data.style)"}),_.E("design:type",String)],Rc.prototype,"imageWidth",void 0);_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],Rc.prototype,"ytRendererBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],Rc.prototype,"data",void 0);
Rc=_.x([_.f({disableElementRegistration:!0,is:"ytd-confirmation-masthead-renderer"})],Rc);
_.C(Rc,"ytd-confirmation-masthead-renderer",function(){if(wmi!==void 0)return wmi;var S=document.createElement("template");_.h(S,'\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');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);return wmi=S},{mode:1});var l15;var FR=function(){return _.w.apply(this,arguments)||this};
_.r(FR,_.w);FR.prototype.computeStyle=function(S){return S};
_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],FR.prototype,"ytRendererBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],FR.prototype,"data",void 0);_.x([_.g({reflectToAttribute:!0,value:"PURCHASE_COMPLETE_DETAIL_STYLE_UNKNOWN",computed:"computeStyle(data.style)"}),_.E("design:type",String)],FR.prototype,"containerStyle",void 0);FR=_.x([_.f({disableElementRegistration:!0,is:"ytd-purchase-complete-detail-renderer"})],FR);
_.C(FR,"ytd-purchase-complete-detail-renderer",function(){if(l15!==void 0)return l15;var S=document.createElement("template");_.h(S,'\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');
S.content.insertBefore(_.t().content.cloneNode(!0),S.content.firstChild);return l15=S},{mode:1});var a1X;var PN=function(){var S=_.w.apply(this,arguments)||this;S.scriptsAppended=!1;return S};
_.r(PN,_.w);PN.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"}}}};
PN.prototype.onDataChanged=function(){var S=this.get("data.gtmId");S&&(_.Jj(S,_.g7("GL","")),this.setupConversionTracking())};
PN.prototype.setupConversionTracking=function(){if(!this.scriptsAppended){var S=document.createElement("noscript");S.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(S);this.scriptsAppended=!0}};
PN.prototype.onDataChanged=PN.prototype.onDataChanged;_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],PN.prototype,"ytRendererBehavior",void 0);_.x([_.F(_.qH.YtRendererstamperBehavior),_.E("design:type",Object)],PN.prototype,"ytRendererstamperBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],PN.prototype,"data",void 0);_.x([_.g(),_.E("design:type",Object)],PN.prototype,"scriptsAppended",void 0);
_.x([_.T4("data"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],PN.prototype,"onDataChanged",null);PN=_.x([_.f({disableElementRegistration:!0,is:"ytd-purchase-complete-step-renderer"})],PN);
_.C(PN,"ytd-purchase-complete-step-renderer",function(){if(a1X!==void 0)return a1X;var S=document.createElement("template");_.h(S,'\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');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);return a1X=S},{mode:1});var f1o;var Zz=function(){var S=_.w.apply(this,arguments)||this;S.darkerDarkTheme=_.y("web_darker_dark_theme");return S};
_.r(Zz,_.w);Zz.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],Zz.prototype,"ytRendererBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],Zz.prototype,"data",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],Zz.prototype,"darkerDarkTheme",void 0);Zz=_.x([_.f({disableElementRegistration:!0,is:"ytd-ypc-transaction-error-message-renderer"})],Zz);
_.C(Zz,"ytd-ypc-transaction-error-message-renderer",function(){if(f1o!==void 0)return f1o;var S=document.createElement("template");_.h(S,'\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');
S.content.insertBefore(_.t().content.cloneNode(!0),S.content.firstChild);return f1o=S},{mode:1});var C9J;var xdn;var sT=function(){var S=_.w.apply(this,arguments)||this;S.handlePhoneVerificationSuccess=function(p){if(S.isValidPhoneVerificationCompletionMessageEvent(p)){var U;((U=S.data)==null?0:U.nextStepCommand)&&S.ytComponentBehavior.resolveCommand(S.data.nextStepCommand)}};
return S};
_.r(sT,_.w);sT.prototype.isValidPhoneVerificationCompletionMessageEvent=function(S){if(S.data!=="yt-phone-verification-complete")return!1;S=_.ib(S.origin);return S!==null&&S.includes("youtube.com")};
sT.prototype.attached=function(){window.addEventListener("message",this.handlePhoneVerificationSuccess)};
sT.prototype.detached=function(){window.removeEventListener("message",this.handlePhoneVerificationSuccess)};
_.x([_.F(_.eL.YtComponentBehavior),_.E("design:type",Object)],sT.prototype,"ytComponentBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],sT.prototype,"data",void 0);sT=_.x([_.FB({is:"yt-feature-enablement-soft-entry-renderer",disableElementRegistration:!0})],sT);
_.C(sT,"yt-feature-enablement-soft-entry-renderer",function(){if(xdn===void 0){var S=document.createElement("template");_.h(S,'\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');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);var p=S.content,U=p.insertBefore;C9J===void 0&&(C9J=document.createElement("template"));var Y=C9J;U.call(p,Y.content.cloneNode(!0),S.content.firstChild);xdn=S}S=xdn;return S},{mode:1});var EYs;var mdt;var oYA;var vYL;var ef=function(){return _.w.apply(this,arguments)||this};
_.r(ef,_.w);_.x([_.g(),_.E("design:type",Object)],ef.prototype,"data",void 0);ef=_.x([_.FB({is:"yt-benefits-item-renderer",disableElementRegistration:!0})],ef);
_.C(ef,"yt-benefits-item-renderer",function(){if(vYL===void 0){var S=document.createElement("template");_.h(S,'\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>');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);var p=S.content,U=p.insertBefore;oYA===void 0&&(oYA=document.createElement("template"));var Y=oYA;U.call(p,Y.content.cloneNode(!0),S.content.firstChild);vYL=S}S=vYL;return S},{mode:2});var $d5;var i2n;var gf=function(){return _.w.apply(this,arguments)||this};
_.r(gf,_.w);gf.prototype.configureRendererStamper=function(){return{"data.items":{id:"benefits-items",mapping:{benefitsItemRenderer:{component:"yt-benefits-item-renderer"},cardItemRenderer:{component:"yt-card-item-renderer"}}}}};
gf.prototype.computeisWithoutPadding=function(){var S;return((S=this.data)==null?void 0:S.benefitsSectionStyle)==="BENEFITS_SECTION_RENDERER_STYLE_NO_MARGIN"};
_.x([_.F(_.qH.YtRendererstamperBehavior),_.E("design:type",Object)],gf.prototype,"ytRendererstamperBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],gf.prototype,"data",void 0);_.x([_.g({reflectToAttribute:!0,computed:"computeisWithoutPadding(data)"}),_.E("design:type",Boolean)],gf.prototype,"isWithoutPadding",void 0);gf=_.x([_.FB({is:"yt-benefits-section-renderer",disableElementRegistration:!0})],gf);
_.C(gf,"yt-benefits-section-renderer",function(){if(i2n===void 0){var S=document.createElement("template");_.h(S,'\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>');
S.content.insertBefore(_.t().content.cloneNode(!0),S.content.firstChild);var p=S.content,U=p.insertBefore;$d5===void 0&&($d5=document.createElement("template"));var Y=$d5;U.call(p,Y.content.cloneNode(!0),S.content.firstChild);i2n=S}S=i2n;return S},{mode:2});var u7=function(){return _.w.apply(this,arguments)||this};
_.r(u7,_.w);u7.prototype.configureRendererStamper=function(){return{"data.benefitsSections":{id:"benefits-sections",mapping:{benefitsSectionRenderer:{component:"yt-benefits-section-renderer"},cardItemRenderer:{component:"yt-card-item-renderer"}}}}};
u7.prototype.computeisUsingLargeWidth=function(){var S;return((S=this.data)==null?void 0:S.widthType)==="BENEFITS_FLOW_STEP_RENDERER_WIDTH_TYPE_LARGE"};
_.x([_.F(_.qH.YtRendererstamperBehavior),_.E("design:type",Object)],u7.prototype,"ytRendererstamperBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],u7.prototype,"data",void 0);_.x([_.g({reflectToAttribute:!0,computed:"computeisUsingLargeWidth(data)"}),_.E("design:type",Boolean)],u7.prototype,"isUsingLargeWidth",void 0);u7=_.x([_.FB({is:"yt-benefits-flow-step-renderer",disableElementRegistration:!0})],u7);
_.C(u7,"yt-benefits-flow-step-renderer",function(){if(mdt===void 0){var S=document.createElement("template");_.h(S,'\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>');
S.content.insertBefore(_.t().content.cloneNode(!0),S.content.firstChild);var p=S.content,U=p.insertBefore;EYs===void 0&&(EYs=document.createElement("template"));var Y=EYs;U.call(p,Y.content.cloneNode(!0),S.content.firstChild);mdt=S}S=mdt;return S},{mode:2});var N5T;var B5o;var wf=function(){return _.w.apply(this,arguments)||this};
_.r(wf,_.w);wf.prototype.checkIsUsingLargeWidth=function(){var S;return((S=this.data)==null?void 0:S.widthType)==="CONFIRMATION_FLOW_STEP_RENDERER_WIDTH_TYPE_LARGE"};
_.x([_.g(),_.E("design:type",Object)],wf.prototype,"data",void 0);_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],wf.prototype,"ytRendererBehavior",void 0);_.x([_.g({reflectToAttribute:!0,computed:"checkIsUsingLargeWidth(data)"}),_.E("design:type",Boolean)],wf.prototype,"isUsingLargeWidth",void 0);wf=_.x([_.FB({is:"yt-confirmation-flow-step-renderer",disableElementRegistration:!0})],wf);
_.C(wf,"yt-confirmation-flow-step-renderer",function(){if(B5o===void 0){var S=document.createElement("template");_.h(S,'\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>');
S.content.insertBefore(_.t().content.cloneNode(!0),S.content.firstChild);var p=S.content,U=p.insertBefore;N5T===void 0&&(N5T=document.createElement("template"));var Y=N5T;U.call(p,Y.content.cloneNode(!0),S.content.firstChild);B5o=S}S=B5o;return S},{mode:2});var qrt;var AYJ;var l7=function(){return _.w.apply(this,arguments)||this};
_.r(l7,_.w);_.x([_.g(),_.E("design:type",Object)],l7.prototype,"data",void 0);l7=_.x([_.FB({is:"yt-info-flow-step-renderer",disableElementRegistration:!0})],l7);
_.C(l7,"yt-info-flow-step-renderer",function(){if(AYJ===void 0){var S=document.createElement("template");_.h(S,'\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>');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);var p=S.content,U=p.insertBefore;qrt===void 0&&(qrt=document.createElement("template"));var Y=qrt;U.call(p,Y.content.cloneNode(!0),S.content.firstChild);AYJ=S}S=AYJ;return S},{mode:2});var t$q;var cYY;var ac=function(){return _.w.apply(this,arguments)||this};
_.r(ac,_.w);_.x([_.g(),_.E("design:type",Object)],ac.prototype,"data",void 0);ac=_.x([_.FB({is:"yt-info-list-flow-step-renderer",disableElementRegistration:!0})],ac);
_.C(ac,"yt-info-list-flow-step-renderer",function(){if(cYY===void 0){var S=document.createElement("template");_.h(S,'\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>');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);var p=S.content,U=p.insertBefore;t$q===void 0&&(t$q=document.createElement("template"));var Y=t$q;U.call(p,Y.content.cloneNode(!0),S.content.firstChild);cYY=S}S=cYY;return S},{mode:2});var SIP=_.$k(function(S){var p=S.data;return _.H("styled-text-view-model",{class:_.VD("ytStyledTextViewModelHost",function(){return y3i(p().fontAttributes)},function(){return J3d(p().color)})},_.H(_.i6,{text:function(){return p().text},
ariaLabel:function(){var U,Y,L;return(L=(U=p().accessibility)==null?void 0:(Y=U.accessibilityData)==null?void 0:Y.label)!=null?L:""}}))},"Ye");
SIP.idomCompat=!0;var pzn=_.$k(function(S){var p=function(){var L,I,V,W;return(W=(V=(L=S.alt)==null?void 0:L.call(S))!=null?V:(I=S.data().accessibilityData)==null?void 0:I.label)!=null?W:""},U=function(){return S.data().imageWidth},Y=function(){return S.data().imageHeight};
return _.H("themed-image-view-model",{class:"ytThemedImageViewModelHost"},_.H(_.n,{cond:function(){var L=S.data();if(L){var I,V,W;var O=((I=_.tW().resolve(_.AW(_.Cz)))==null?0:I())?(V=L.imageDark)!=null?V:L.imageLight:(W=L.imageLight)!=null?W:L.imageDark}else O=void 0;return O},
then:function(L){return _.H(_.of,Object.assign({},S,{data:L,alt:p,targetWidth:U,targetHeight:Y,preserveHeight:!0,preserveWidth:!0}))}}))},"Ze");
pzn.idomCompat=!0;var fl=_.$k(function(S){var p=S.data;S=_.os(function(){return p().slots},[]);
var U=_.os(function(){return p().layoutProperties},{}),Y=_.tW().resolve(_.EW);
return _.H("container-layout-view-model",{class:"ytContainerLayoutViewModelHost",style:Huq(U,Y)},_.H(_.KU,{each:S,keyBy:"INDEX"},function(L){return _.H("div",{class:"ytContainerLayoutViewModelSlot",style:Huq(function(){return L().layoutProperties},Y)},_.H(_.yP,{data:function(){return L().contents}},{containerLayoutViewModel:fl,
badgeViewModel:_.Bh,buttonViewModel:_.PG,styledTextViewModel:SIP,contentPreviewImageViewModel:function(I){return _.H(_.qf,{data:I.data,className:"ytContainerLayoutViewModelImage"})},
themedImageViewModel:function(I){return _.H(pzn,{data:I.data,preserveWidth:!0,preserveHeight:!0})}}))}))},"$e");
fl.idomCompat=!0;var UxL=_.$k(function(S){var p=S.data;var U=S.stateFns;var Y=function(){var D=p(),z=D.productId;return!(!D.clearGroupId&&!z)},L=function(){var D=p(),z=D.clearGroupId;
return(D=D.productId)?U().isProductSelected(D):z?U().getSelectedProductByGroupId(z)==null:!1},I=function(){var D=p(),z=D.clearGroupId;
if(D=D.productId)U().onProductSelected(D);else if(z)U().onClearGroupSelected(z)},V=function(){var D=p(),z=D.clearGroupId;
if(D=D.productId){var Q;return"group:"+(((Q=U().getProductById(D))==null?void 0:Q.groupId)||"")}return z?"group:"+z:""},W=_.os(function(){return p().header},[]),O=_.os(function(){return p().body},[]);
return _.H("pdp-card-section-view-model",{class:"ytPdpCardSectionViewModelHost"},_.H(_.n,{cond:function(){return W().length>0||Y()},
then:function(){return _.H("label",{class:"ytPdpCardSectionViewModelHeaderSection"},_.H("div",{class:"ytPdpCardSectionViewModelHeaderContent"},_.H(_.yP,{data:W},{containerLayoutViewModel:function(D){return _.H("div",{class:"ytPdpCardSectionViewModelContentItem"},_.H(fl,{data:D.data}))},
styledTextViewModel:function(D){return _.H("div",{class:"ytPdpCardSectionViewModelContentItem"},_.H(SIP,{data:D.data}))}})),_.H(_.n,{cond:Y,
then:function(){return _.H("div",{class:"ytPdpCardSectionViewModelHeaderRadioContainer"},_.H(_.GP,{checked:L,name:V,onChange:I}))}}))}}),_.H(_.n,{cond:function(){return O().length>0},
then:function(){return _.H("div",null,_.H(_.yP,{data:O},{containerLayoutViewModel:function(D){return _.H("div",{class:"ytPdpCardSectionViewModelContentItem"},_.H(fl,{data:D.data}))}}))}}))},"af");
UxL.idomCompat=!0;var YIs=_.$k(function(S){var p=S.data;var U=S.stateFns;return _.H("pdp-card-view-model",{class:"ytPdpCardViewModelHost"},_.H(_.n,{cond:function(){return p().banner},
then:function(Y){return _.H("div",{class:"ytPdpCardViewModelBanner"},_.H(_.i6,{text:Y}))}}),_.H(_.yP,{data:function(){return p().sections}},{pdpCardSectionViewModel:function(Y){Y=Y.data;
var L={};return _.H("div",{class:_.VD("ytPdpCardViewModelSectionContainer",(L.ytPdpCardViewModelShowDividers=function(){return p().showDividers},L))},_.H(UxL,{data:Y,
stateFns:U}))}}))},"bf");
YIs.idomCompat=!0;var L4P=_.$k(function(S){var p=S.data;var U=S.isOverlay;S={};return _.H("pdp-masthead-view-model",{class:_.VD("ytPdpMastheadViewModelHost",(S.ytPdpMastheadViewModelIsOverlay=U,S))},_.H(_.yP,{data:function(){return p().image}},{contentPreviewImageViewModel:_.qf,
themedImageViewModel:function(Y){return _.H(pzn,{data:Y.data,alt:"",className:"ytPdpMastheadViewModelImage"})}}),_.H(_.n,{cond:function(){return p().title},
then:function(Y){return _.H("h1",{class:"ytPdpMastheadViewModelHeading"},_.H(_.i6,{text:Y,isOverlay:U}))}}),_.H(_.KU,{each:function(){var Y;
return(Y=p().finePrint)!=null?Y:[]}},function(Y){return _.H("div",{class:"ytPdpMastheadViewModelFinePrint"},_.H(_.i6,{text:Y,
isOverlay:U}))}))},"cf");
L4P.idomCompat=!0;var MkA=_.$k(function(S){var p=S.data;var U=S.stateFns;return _.H("pdp-pricing-option-selector-view-model",{class:"ytPdpPricingOptionSelectorViewModelHost"},_.H(_.KU,{each:function(){var Y=U().getSelectedPricingOptions().map(function(I){return I.pricingOptionId}),L=U().getSelectedProductByGroupId(p().groupId);
return L?L.pricingOptions.map(function(I){return{pricingOption:I,isSelected:Y.includes(I.pricingOptionId)}}):(_.s9(Error("Fj`"+p().groupId)),[])},
keyBy:"INDEX"},function(Y){return _.H("label",{class:"ytPdpPricingOptionSelectorViewModelOption"},_.H("div",{class:"ytPdpPricingOptionSelectorViewModelOptionContent"},_.H(_.yP,{data:function(){return Y().pricingOption.pricingOptionSelectorOption}},{containerLayoutViewModel:fl})),_.H("div",{class:"ytPdpPricingOptionSelectorViewModelOptionRadio"},_.H(_.GP,{checked:function(){return Y().isSelected},
onClick:function(){U().onPricingOptionSelected(Y().pricingOption.pricingOptionId);var L=Y().pricingOption.onSelectPricingOption;if(L=_.sW(L)){var I;(I=_.tW().resolve(_.cQ))==null||I.resolveCommand(L)}}})))}))},"df");
MkA.idomCompat=!0;var Igs=_.$k(function(S){var p=S.data;var U=S.stateFns;return _.H("pdp-primary-button-view-model",{class:"ytPdpPrimaryButtonViewModelHost"},_.H(_.yP,{data:function(){var Y,L;return(L=(Y=U().getSelectedPricingOptions()[0])==null?void 0:Y.primaryButton)!=null?L:p().emptyStateButton}},{buttonViewModel:_.PG}))},"ef");
Igs.idomCompat=!0;var dxY=_.$k(function(S){var p=S.stateFns;return _.H("pdp-summary-view-model",{class:"ytPdpSummaryViewModelHost"},_.H(_.yP,{data:function(){return p().getSelectedPricingOptions().flatMap(function(U){return U.summaryLines}).filter(function(U){return!!U})}},{containerLayoutViewModel:function(U){return _.H("div",{class:"ytPdpSummaryViewModelLineItem"},_.H(fl,{data:U.data}))}}))},"ff");
dxY.idomCompat=!0;var Vkt=_.$k(function(S){function p(Z){var l=V();_.m_(_.r8("pdpStateEntity",l,{key:l,selectedPricingOptions:Z}))}
var U=S.data;var Y=S.internalScrolling;var L=S.stateFnsForTesting;var I=_.os(function(){return U().allProducts},[]),V=_.os(function(){return U().pdpStateEntityKey},""),W=_.Ty(KPt,V),O=_.nS(function(){_.Pz(!0);
var Z;return(Z=L==null?void 0:L())!=null?Z:FPP(W,I,p)},void 0,"POBqwe"),D=_.os(function(){return U().body},[]),z=_.os(function(){return U().columnBreakHints},[]),Q=function(){return U().backgroundMode==="PDP_BACKGROUND_MODE_FORCE_DARK"},J=function(){return Q()||U().backgroundMode==="PDP_BACKGROUND_MODE_DARK"},K=_.nS(function(){var Z=_.$O(U().background),l;
if(Z==null?0:(l=Z.sources)==null?0:l.length){var a=a===void 0?!0:a;Z=_.Dgu(void 0,Z.sources,void 0,a,a?1E3:void 0,a?void 0:1E3)}else Z=null;return Z},void 0,"BkCmEd");
S=_.zw({"--pdp-view-model-background":function(){return K()?"url("+K()+")":void 0}});
var G={};Y=_.VD("ytPdpViewModelHost",(G.ytPdpViewModelHasBackground=function(){return J()||!!K()},G.ytPdpViewModelHasDarkBackground=J,G.ytPdpViewModelHasScrim=Q,G.ytPdpViewModelInternalScrolling=_.os(Y,!1),G));
var X=function(Z){var l={};return _.VD("ytPdpViewModelItem",(l.ytPdpViewModelFullBleed=function(){return _.qyw(Z())==="dividerViewModel"||_.qyw(Z())==="sectionHeaderViewModel"},l.ytPdpViewModelNoVerticalPadding=function(){return _.qyw(Z())==="sectionHeaderViewModel"},l))};
_.FM(function(){var Z=U().onStartCommand;if(Z&&(Z=_.sW(Z))){var l;(l=_.tW().resolve(_.cQ))==null||l.resolveCommand(Z)}});
return _.H("pdp-view-model",{class:Y,style:S},_.H("div",{class:"ytPdpViewModelColumnContainer"},_.H(_.KU,{each:function(){return X4P(D(),z())},
keyBy:"INDEX"},function(Z){return _.H("div",{class:"ytPdpViewModelColumn"},_.H(_.yP,{data:Z},{containerLayoutViewModel:function(l,a){l=l.data;return _.H("div",{class:X(function(){return Z()[a()]})},_.H(fl,{data:l}))},
dividerViewModel:function(l,a){l=l.data;return _.H("div",{class:X(function(){return Z()[a()]})},_.H(_.k5w,{data:l}))},
pdpCardViewModel:function(l,a){l=l.data;return _.H("div",{class:X(function(){return Z()[a()]})},_.H(YIs,{data:l,
stateFns:O}))},
pdpMastheadViewModel:function(l,a){l=l.data;return _.H("div",{class:X(function(){return Z()[a()]})},_.H(L4P,{data:l,
isOverlay:J}))},
pdpPricingOptionSelectorViewModel:function(l,a){l=l.data;return _.H("div",{class:X(function(){return Z()[a()]})},_.H(MkA,{data:l,
stateFns:O}))},
pdpPrimaryButtonViewModel:function(l,a){l=l.data;return _.H("div",{class:X(function(){return Z()[a()]})},_.H(Igs,{data:l,
stateFns:O}))},
pdpSummaryViewModel:function(l,a){l=l.data;return _.H("div",{class:X(function(){return Z()[a()]})},_.H(dxY,{data:l,
stateFns:O}))},
sectionHeaderViewModel:function(l,a){l=l.data;return _.H("div",{class:X(function(){return Z()[a()]})},_.H(_.Yh,{data:l}))}}))})))},"gf");
Vkt.idomCompat=!0;_.qm(Vkt,"pdp-view-model",{props:{data:_.x2,stateFnsForTesting:_.BX,internalScrolling:_.BX}});var TdL=_.$k(function(S){var p=S.data;var U=S.className;var Y=_.Ty(_.Al,function(){return p().flowStateEntityKey});
return _.H("ytm-premium-purchase-button-renderer",{class:_.VD("yt-premium-purchase-button-renderer",U)},_.H(_.yP,{data:function(){var L;return(L=_.b(Y(),ZuE))==null?void 0:L.primaryButtonOverride}},{buttonRenderer:function(L){return _.H(_.ft,{data:L.data,
className:U})},
buttonViewModel:function(L){return _.H(_.PG,{data:L.data,className:U})}}))},"hf");
TdL.idomCompat=!0;var W4X=_.$k(function(S){var p=S.data;var U=function(){return PVt(p().style)},Y=_.VD("yt-flow-bottom-bar-renderer__flow-bottom-bar-primary-button","yt-flow-bottom-bar-renderer__flow-bottom-bar-button",U),L=_.VD("yt-flow-bottom-bar-renderer__flow-bottom-bar-secondary-button","yt-flow-bottom-bar-renderer__flow-bottom-bar-button",U);
return _.H("yt-flow-bottom-bar-renderer",{class:_.VD("yt-flow-bottom-bar-renderer",S.className,U)},_.H(_.yP,{data:function(){return p().secondaryButton}},{buttonRenderer:function(I){return _.H(_.ft,{data:I.data,
className:L})},
buttonViewModel:function(I){return _.H(_.PG,{data:I.data,className:L})},
premiumPurchaseButtonRenderer:function(I){return _.H(TdL,{data:I.data,className:L})}}),_.H(_.yP,{data:function(){return p().primaryButton}},{buttonRenderer:function(I){return _.H(_.ft,{data:I.data,
className:Y})},
buttonViewModel:function(I){return _.H(_.PG,{data:I.data,className:Y})},
premiumPurchaseButtonRenderer:function(I){return _.H(TdL,{data:I.data,className:Y})}}))},"jf");
W4X.idomCompat=!0;_.qm(W4X,"yt-flow-bottom-bar-renderer",{props:{data:_.x2,className:_.x2}});var OSt=_.$k(function(S){return _.H("yt-offer-summary-renderer",{class:_.VD(S.className,"ytOfferSummaryRendererHost")},_.H("div",{class:"ytOfferSummaryRendererTextContainer"},_.H("div",{class:"ytOfferSummaryRendererEyebrowText"},_.H(_.i6,{text:function(){return S.data().eyebrowText}})),_.H("div",{class:"ytOfferSummaryRendererTitle"},_.H(_.i6,{text:function(){return S.data().title}})),_.H("div",{class:"ytOfferSummaryRendererSubtitle"},_.H(_.i6,{text:function(){return S.data().subtitle}})),_.H("div",
{class:"ytOfferSummaryRendererFeatureListData"},_.H(_.KU,{each:function(){var p;
return(p=S.data().featureListData)!=null?p:[]}},function(p){var U;
return _.H("div",{class:"ytOfferSummaryRendererFeatureList"},_.H(_.QD,{icon:(U=p.icon)==null?void 0:U.iconType,className:p.style==="BULLET_FORMATTED_STRING_STYLE_THEMED_GREEN_ICON_PRIMARY_TEXT"?"ytOfferSummaryRendererFeatureListIconGreen":"ytOfferSummaryRendererFeatureListIconDefault"}),_.H("div",{class:"ytOfferSummaryRendererFeatureListText"},_.H(_.i6,{text:p.text})))})),_.H("div",{class:"ytOfferSummaryRendererDescription"},_.H(_.i6,{text:function(){return S.data().description}}))))},"kf");_.qm(_.$k(function(S){var p={};p=_.VD("ytOfferSummaryFlowStepRendererHost",(p.ytOfferSummaryFlowStepRendererDisableHeaderTopMargin=S.shouldDisableHeaderTopMargin,p));return _.H("yt-offer-summary-flow-step-renderer",{id:"yt-offer-summary-flow-step-renderer",class:p},_.H("div",{class:"ytOfferSummaryFlowStepRendererHeaderContainer ytOfferSummaryFlowStepRendererChild"},_.H("div",{class:"ytOfferSummaryFlowStepRendererHeader"},_.H(_.i6,{text:function(){return S.data().header}})),_.H("div",{class:"ytOfferSummaryFlowStepRendererSubtitle"},
_.H(_.i6,{text:function(){return S.data().subtitle}}))),_.H("div",{class:"ytOfferSummaryFlowStepRendererChild"},_.H(_.yP,{data:function(){return S.data().offerSummary}},{offerSummaryRenderer:function(U){return _.H(OSt,{data:U.data,
className:S.flowClassName})}})))},"lf"),"yt-offer-summary-flow-step-renderer",{props:{data:_.BX,
flowClassName:_.BX,flowStateEntityKey:_.BX,shouldDisableHeaderTopMargin:_.BX}});var kVn=_.$k(function(S){var p=S.data;var U=S.className;var Y=S.flowStateEntityKey;var L=S.selectionStepStyle;S=_.kL(function(O){var D=p(),z=Y==null?void 0:Y();O.target&&(O.stopPropagation(),O=z||"",z=_.Al(_.xk().getState(),O),D=Object.assign({},z,{premiumPurchaseFlowState:{selectedOptionId:D.optionId,primaryButtonOverride:D.primaryButtonOverride}}),_.xk().dispatch(_.WG("flowStateEntity",O,D)));return!1});
var I=function(){return(Y==null?void 0:Y())||""},V=_.Ty(_.Al,I);
_.FM(function(){var O=p(),D=I(),z=V();O.defaultSelected&&D!==""&&O.primaryButtonOverride&&sOA(O.optionId||"",D,O.primaryButtonOverride,z)});
var W={};return _.H("ytm-option-item-renderer",{"on:click":S,class:_.VD(U,"ytm-option-item-renderer",(W["ytm-option-item-renderer--lp2-style"]=function(){return(L==null?void 0:L())==="OPTION_SELECTION_FLOW_STEP_RENDERER_STYLE_LP_2"},W))},_.H("div",{class:"ytm-option-item-renderer__option-item-radio-container"},_.H("input",{type:"radio",
class:"ytm-option-item-renderer__option-item-radio-button","prop:checked":function(){var O=p(),D=I(),z=V();z=_.b(z,ZuE);return(z?(z==null?void 0:z.selectedOptionId)||"":O.defaultSelected&&D!==""?(O==null?void 0:O.optionId)||"":"")===p().optionId},
name:("input"+_.hs(_.jy)).toString()})),_.H("div",{class:"ytm-option-item-renderer__option-item-text-container"},_.H(_.n,{cond:function(){return p().eyebrowText},
then:function(){return _.H("div",{class:"ytm-option-item-renderer__option-item-eyebrow-text"},_.H(_.i6,{text:function(){return p().eyebrowText}}))}}),_.H("div",{class:"ytm-option-item-renderer__option-item-title"},_.H(_.i6,{text:function(){return p().title}})),_.H("div",{class:"ytm-option-item-renderer__option-item-subtitle"},_.H(_.i6,{text:function(){return p().subtitle}})),_.H(_.n,{cond:function(){return p().featureListData},
then:function(){return _.H("div",{class:"ytm-option-item-renderer__feature-list-data"},_.H(_.KU,{each:function(){return p().featureListData||[]}},function(O){var D;
return _.H("div",{class:"ytm-option-item-renderer__feature-list"},_.H(_.QD,{icon:(D=O.icon)==null?void 0:D.iconType,className:O.style==="BULLET_FORMATTED_STRING_STYLE_THEMED_GREEN_ICON_PRIMARY_TEXT"?"ytm-option-item-renderer__feature-list-icon-green":"ytm-option-item-renderer__feature-list-icon-default"}),_.H("div",{class:"ytm-option-item-renderer__feature-list-text"},_.H(_.i6,{text:O.text})))}))}}),_.H("div",{class:"ytm-option-item-renderer__option-item-description"},_.H(_.i6,{text:function(){return p().description}}))))},
"mf");var HST=_.$k(function(S){var p=S.data;var U=S.flowClassName;var Y=S.flowStateEntityKey;var L=S.selectionStepStyle;return _.H("yt-option-section-renderer",{id:"yt-option-section-renderer",class:"yt-option-section-renderer"},_.H("div",{class:"yt-option-section-renderer__option-section-header-section"},_.H("div",{class:"yt-option-section-renderer__option-section-header"},_.H(_.i6,{text:function(){return p().title}}),_.H(_.yP,{data:function(){return p().titleBadge}},{badgeViewModel:function(I){return _.H(_.Bh,
{data:I.data,
class:"yt-option-section-renderer__option-section-title-badge"})}})),_.H(_.n,{cond:function(){return p().subtitle},
then:function(){return _.H("div",{class:"yt-option-section-renderer__option-section-subtitle"},_.H(_.i6,{text:function(){return p().subtitle}}))}}),_.H(_.n,{cond:function(){return p().featureListData},
then:function(I){return _.H("div",{class:"yt-option-section-renderer__option-section-feature-list"},_.H(_.KU,{each:I},function(V){var W;return _.H("div",{class:"yt-option-section-renderer__option-section-feature-item"},_.H(_.QD,{icon:(W=V.icon)==null?void 0:W.iconType,className:V.style==="BULLET_FORMATTED_STRING_STYLE_THEMED_GREEN_ICON_PRIMARY_TEXT"?"yt-option-section-renderer__option-section-feature-item-icon-green":"yt-option-section-renderer__option-section-feature-item-icon-default"}),_.H("div",
{class:"yt-option-section-renderer__option-section-feature-item-text"},_.H(_.i6,{text:V.text})))}))}}),_.H(_.n,{cond:function(){return p().secondaryTitle},
then:function(){return _.H("div",{class:"yt-option-section-renderer__option-section-secondary-title"},_.H(_.i6,{text:function(){return p().secondaryTitle}}))}}),_.H(_.KU,{each:function(){return p().sectionDisclaimers||[]}},function(I){return _.H("div",{class:"yt-option-section-renderer__option-section-disclaimer"},_.H(_.i6,{text:I}))})),_.H(_.yP,{data:function(){return p().optionItems}},{optionItemRenderer:function(I){return _.H("div",{class:"yt-option-section-renderer__option-item"},_.H(kVn,{data:I.data,
className:U,flowStateEntityKey:Y,selectionStepStyle:L}))}}),_.H(_.n,{cond:function(){return p().offerText},
then:function(){return _.H("div",{class:"yt-option-section-renderer__option-section-offer-text"},_.H(_.i6,{text:function(){return p().offerText}}))}}))},"nf");
HST.idomCompat=!0;var Dxo=_.$k(function(S){var p=S.data;var U=S.flowClassName;var Y=S.flowStateEntityKey;S=S.isDesktop;var L=function(){var D;return(D=p().flowStateEntityKey)!=null?D:Y==null?void 0:Y()},I=function(){return(L==null?void 0:L())||""},V=function(){return p().style},W=_.Ty(_.Al,I);
_.FM(function(){var D=p(),z=I(),Q=W();!_.b(Q,ZuE)&&D.noPreselect&&z!==""&&D.defaultButtonOverride&&sOA("default",z,D.defaultButtonOverride,Q)});
var O={};return _.H("yt-option-selection-flow-step-renderer",{id:"yt-option-selection-flow-step-renderer",class:_.VD("ytm-option-selection-flow-step-renderer",(O["ytm-option-selection-flow-step-renderer--desktop"]=S,O["ytm-option-selection-flow-step-renderer--lp2-style"]=function(){return p().style==="OPTION_SELECTION_FLOW_STEP_RENDERER_STYLE_LP_2"},O))},_.H("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"},
_.H("div",{class:"ytm-option-selection-flow-step-renderer__option-selection-flow-step-header"},_.H(_.i6,{text:function(){return p().header}})),_.H("div",{class:"ytm-option-selection-flow-step-renderer__option-selection-flow-step-subtitle"},_.H(_.i6,{text:function(){return p().subtitle}}))),_.H(_.yP,{data:function(){return p().optionItems||[]}},{optionItemRenderer:function(D){return _.H("div",{class:"ytm-option-selection-flow-step-renderer__option-selection-flow-step-child"},_.H(kVn,{data:D.data,
className:U,flowStateEntityKey:L,selectionStepStyle:V}))},
optionSectionRenderer:function(D){return _.H("div",{class:"ytm-option-selection-flow-step-renderer__option-selection-flow-step-child"},_.H(HST,{data:D.data,flowClassName:U,flowStateEntityKey:L,selectionStepStyle:V}))}}))},"of");
Dxo.idomCompat=!0;_.qm(Dxo,"yt-option-selection-flow-step-renderer",{props:{data:_.x2,flowClassName:_.x2,flowStateEntityKey:_.x2,isDesktop:_.x2}});var ezt,ga5;_.Cl=_.$k(function(S){var p=_.vT(S,{type:1,disablePadding:!1,disablePrimaryButton:!1}),U=p.data,Y=p.type;S=p.disablePadding;var L=p.disablePrimaryButton,I=p.onClickPrimaryButton,V=function(){return U().stacking==="PANEL_FOOTER_STACKING_VERTICAL"},W=function(){return{disabled:L(),
state:L()?"disabled":"active"}},O=function(){return U().leadingLabel||U().trailingLabel};
p={};return _.H("yt-panel-footer-view-model",{class:_.VD("yt-panel-footer-view-model-wiz",(p["yt-panel-footer-view-model-wiz--hide-divider"]=function(){return U().shouldHideDivider},p["yt-panel-footer-view-model-wiz--disable-padding"]=S,p))},_.H(_.n,{cond:O,
then:function(){var D={},z={};return _.H("div",{class:_.VD("yt-panel-footer-view-model-wiz__text-row",(D["yt-panel-footer-view-model-wiz--row-bottom-padding"]=function(){var Q=U();return!(!Q.leadingLabel&&!Q.trailingLabel||!Q.primaryButton&&!Q.secondaryButton)},D))},_.H(_.i6,{text:function(){return U().leadingLabel},
className:_.VD((z["yt-panel-footer-view-model-wiz--text-padding"]=O,z))}),_.H(_.i6,{text:function(){return U().trailingLabel}}))}}),_.H(_.n,{cond:V,
then:function(){var D={};return _.H("div",{class:"yt-panel-footer-view-model-wiz__button-stack"},_.H("div",{class:_.VD("yt-panel-footer-view-model-wiz__primary-button",(D["yt-panel-footer-view-model-wiz__button-stack--top-button"]=function(){return U().secondaryButton},D))},_.H(_.yP,{data:function(){return U().primaryButton}},{buttonViewModel:function(z){return _.H(_.PG,{data:z.data,
buttonOverrides:W,onClick:I})}})),_.H(_.yP,{data:function(){return U().secondaryButton}},{buttonViewModel:_.PG}))}}),_.H(_.n,{cond:function(){return!V()},
then:function(){var D={},z={},Q={};return _.H("div",{class:_.VD("yt-panel-footer-view-model-wiz__button-row",(D["yt-panel-footer-view-model-wiz__button-row--trailing"]=function(){return 3===Y()},D))},_.H("div",{class:_.VD("yt-panel-footer-view-model-wiz__button-row--left-button",(z["yt-panel-footer-view-model-wiz__button-row--full-width"]=function(){return 1===Y()},z["yt-panel-footer-view-model-wiz__button-row--hidden"]=function(){return!U().secondaryButton||0===Y()},z["yt-panel-footer-view-model-wiz__button-row--shrink"]=
function(){return 2===Y()},z))},_.H(_.yP,{data:function(){return U().secondaryButton}},{buttonViewModel:_.PG})),_.H("div",{class:_.VD("yt-panel-footer-view-model-wiz__primary-button",(Q["yt-panel-footer-view-model-wiz__button-row--full-width"]=function(){return 0===Y()||1===Y()},Q["yt-panel-footer-view-model-wiz__button-row--expand"]=function(){return 2===Y()},Q))},_.H(_.yP,{data:function(){return U().primaryButton}},{buttonViewModel:function(J){return _.H(_.PG,{data:J.data,
buttonOverrides:W,onClick:I})}})))}}))},"pf");
_.Cl.idomCompat=!0;_.zTL=_.$k(function(S){S=_.vT(S,{disablePadding:!1});var p=S.data,U=S.disablePadding;S=_.aoX(function(){return p().formId});
var Y=S.onSubmit,L=S.isValid,I=S.isSubmitting;return _.H("yt-form-footer-view-model",{class:"ytFormFooterViewModelHost"},_.H(_.yP,{data:function(){return p().panelFooter}},{panelFooterViewModel:function(V){return _.H(_.Cl,{data:V.data,
onClickPrimaryButton:function(){Y()},
disablePrimaryButton:function(){return!L()||I()},
disablePadding:U})}}))},"qf");_.qm(_.zTL,"yt-form-footer-view-model",{props:{data:_.x2,disablePadding:_.x2}});_.qm(_.$k(function(S){return _.H("yt-contributor-zero-state-view-model",{class:"ytContributorZeroStateViewModelHost",style:"height: calc(var(--ytd-watch-flexy-panel-max-height, 720px) - 132px);"},_.H("div",{class:"ytContributorZeroStateViewModelCenterAlignedContent"},_.H(_.n,{cond:function(){var p;return(p=S.data())==null?void 0:p.image},
then:function(p){return _.H(_.of,{data:p,alt:"",className:"ytContributorZeroStateViewModelCenterAlignedContentImage"})}}),_.H("div",{class:"ytContributorZeroStateViewModelCenterAlignedContentTitle"},_.H(_.i6,{text:function(){var p;
return(p=S.data())==null?void 0:p.title}})),_.H("div",{class:"ytContributorZeroStateViewModelCenterAlignedContentSubtitle"},_.H(_.i6,{text:function(){var p;
return(p=S.data())==null?void 0:p.subtitle}})),_.H("div",{class:"ytContributorZeroStateViewModelCenterAlignedContentButton"},_.H(_.yP,{data:function(){var p;
return(p=S.data())==null?void 0:p.viewTipsButton}},{buttonViewModel:_.PG}))))},"rf"),"yt-contributor-zero-state-view-model",{props:{data:_.x2}});var Q8J=_.$k(function(S){var p=_.Ty(fod,_.os(function(){var U;return(U=S.data())==null?void 0:U.noteFeedEntityKey},""));
return _.H("yt-note-view-model",{class:"ytNoteViewModelHost",style:"height: calc(var(--ytd-watch-flexy-panel-max-height, 720px) - 136px);"},_.H("div",{class:"ytNoteViewModelMetadataAndOverflowButton"},_.H("div",{class:"ytNoteViewModelMetadataAndOverflowButtonMetadata"},_.H(_.n,{cond:function(){var U,Y;return(U=S.data())==null?void 0:(Y=U.noteData)==null?void 0:Y.isPinned},
then:function(){return _.H(_.QD,{icon:"KEEP_FILLED",className:"ytNoteViewModelMetadataAndOverflowButtonMetadataIconPin"})}}),_.H(_.i6,{text:function(){var U,Y;
return(U=S.data())==null?void 0:(Y=U.noteData)==null?void 0:Y.headerText}}),_.H("div",{class:"ytNoteViewModelMetadataAndOverflowButtonMetadataDelimiter"},_.H(_.i6,{text:function(){var U,Y;
return(U=S.data())==null?void 0:(Y=U.noteData)==null?void 0:Y.delimiter}})),_.H(_.i6,{text:function(){var U,Y;
return(U=p())==null?void 0:(Y=U.contributorNote)==null?void 0:Y.publishedTimeText}})),_.H(_.yP,{data:function(){var U,Y,L,I=(U=S.data())==null?void 0:U.noteData;
U=(Y=p())==null?void 0:(L=Y.contributorNote)==null?void 0:L.deleteAction;return{buttonViewModel:{style:"BUTTON_VIEW_MODEL_STYLE_MONO",type:"BUTTON_VIEW_MODEL_TYPE_TEXT",state:"BUTTON_VIEW_MODEL_STATE_ACTIVE",buttonSize:"BUTTON_VIEW_MODEL_SIZE_XSMALL",iconName:"MORE_VERT",accessibilityText:I.deleteActionText,onTap:{innertubeCommand:{showSheetCommand:{panelLoadingStrategy:{inlineContent:{sheetViewModel:{content:{listViewModel:{listItems:[{listItemViewModel:{title:{content:I.deleteActionText},leadingImage:{sources:[{clientResource:{imageName:"TRASH_CAN"}}]},
rendererContext:{commandContext:{onTap:{innertubeCommand:{confirmDialogEndpoint:{content:{confirmDialogRenderer:{title:{runs:[{text:I.deleteDialogTitle}]},dialogMessages:[{runs:[{text:I.deleteDialogSubtitle}]}],confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:{runs:[{text:I.deleteActionText}]},command:{performCommentActionEndpoint:{action:U}}}},cancelButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:{runs:[{text:I.cancelActionText}]},command:{dismissDialogCommand:{}}}}}}}}}}}}}]}}}}}}}}}}}},
{buttonViewModel:function(U){return _.H(_.PG,{data:U.data,
className:"ytNoteViewModelMetadataAndOverflowButtonOverflowButton"})}})),_.H("div",{class:"ytNoteViewModelNoteContent"},_.H(_.i6,{text:function(){var U,Y;
return(U=p())==null?void 0:(Y=U.contributorNote)==null?void 0:Y.text}})))},"sf");
Q8J.idomCompat=!0;_.qm(Q8J,"yt-note-view-model",{props:{data:_.x2}});var xo=_.$k(function(S){var p=_.vT(S,{label:"",text:"",placeholder:"",hint:"",rows:1,overflowStyle:"scroll-vertically",outline:!1,disabled:!1,disableNewLines:!1,characterLimit:void 0,validation:void 0}),U=p.label,Y=p.text,L=p.placeholder,I=p.hint;S=p.rows;var V=p.overflowStyle,W=p.outline,O=p.disabled,D=p.disableNewLines,z=p.characterLimit,Q=p.validation,J=p.onInput,K=_.vH();p=_.d(_.Dt(function(){return Y()}));
var G=p.next().value,X=p.next().value;p=_.d(_.kj(!1,void 0,"fXvinf"));var Z=p.next().value,l=p.next().value,a=function(){l(!0)},N=function(){l(!1)};
_.FM(function(){var mq=K.value,au=V(),XI=G();au==="expand-vertically"&&XI&&CVP(mq);K.value.addEventListener("focusin",a);K.value.addEventListener("focusout",N)});
_.FG(function(){K.value.removeEventListener("focusin",a);K.value.removeEventListener("focusout",N)});
var m=function(){var mq;return(mq=Q())==null?void 0:mq.validate(G())},A=function(){return z()&&!m()&&G().length>z().maxChars},q=function(){return!!m()||A()};
p=_.kL(function(mq){if(!mq.currentTarget)return!1;mq=mq.currentTarget;X(mq.value);V()==="expand-vertically"&&CVP(mq);J==null||J(mq.value);return!0});
var TG=_.kL(function(mq){D()&&mq.key==="Enter"&&mq.preventDefault();return!1}),Je=_.kL(function(){K.value.focus()}),GG=function(){return L()||U()},Zw={},Ru={},sX={};
return _.H("textarea-shape",{class:"ytStandardsTextareaShapeHost"},_.H("div",{class:_.VD("ytStandardsTextareaShapeTextareaContainer",(Zw.ytStandardsTextareaShapeTextareaContainerOutline=W,Zw.ytStandardsTextareaShapeTextareaContainerOutlineDisabled=O,Zw.ytStandardsTextareaShapeTextareaContainerOutlineError=q,Zw)),"on:click":Je},_.H("label",{class:_.VD("ytStandardsTextareaShapeLabel",(Ru.ytStandardsTextareaShapeLabelFocused=Z,Ru.ytStandardsTextareaShapeLabelDisabled=O,Ru.ytStandardsTextareaShapeLabelError=
function(){return q()&&!O()},Ru.ytStandardsTextareaShapeLabelHidden=function(){return!Z()&&!G()&&!!GG()},Ru))},U),_.H("div",{class:_.VD("ytStandardsTextareaShapePlaceholder",(sX.ytStandardsTextareaShapePlaceholderVisible=function(){return!Z()&&!G()},sX)),
"aria-hidden":"true"},GG),_.H("textarea",{el:K,class:"ytStandardsTextareaShapeTextarea",rows:S,disabled:O,placeholder:GG,"on:input":p,"on:keydown":TG},G)),_.H(_.n,{cond:function(){return I()&&!q()},
then:function(){var mq={};return _.H("div",{class:_.VD("ytStandardsTextareaShapeHint",(mq.ytStandardsTextareaShapeHintDisabled=O,mq))},_.H("div",{class:"ytStandardsTextareaShapeHintHintMessage"},I))}}),_.H(_.n,{cond:m,
then:function(){return _.H(njs,{disabled:O},_.H("div",{class:"ytStandardsTextareaShapeErrorMessage"},m))}}),_.H(_.n,{cond:z,
then:function(mq){return _.H(_.n,{cond:A,then:function(){return _.H(njs,{disabled:O},_.H("div",{class:"ytStandardsTextareaShapeErrorMessage"},function(){return mq().errorMessage}),_.H("div",{class:"ytStandardsTextareaShapeErrorCharacterCount"},function(){return G().length+"/"+mq().maxChars}))}})}}))},"tf");
xo.idomCompat={callbacks:{onInput:!0}};var njs=_.$k(function(S){var p={};return _.H("div",{class:_.VD("ytStandardsTextareaShapeError",(p.ytStandardsTextareaShapeErrorDisabled=S.disabled,p)),role:"alert"},_.H(_.QD,{icon:"INFO",className:"ytStandardsTextareaShapeErrorIcon",size:16}),S.children)},"uf");_.JyY=_.$k(function(S){var p=S.data;return _.H("text-field-view-model",{class:"ytTextFieldViewModelHost"},_.H(xo,{text:S.text,label:function(){var U;return(U=p().contentProperties)==null?void 0:U.labelText},
placeholder:function(){var U;return(U=p().contentProperties)==null?void 0:U.placeholderText},
hint:function(){var U;return(U=p().contentProperties)==null?void 0:U.hintText},
outline:function(){var U;return!((U=p().displayProperties)==null?0:U.hideBorder)},
overflowStyle:function(){var U;return((U=p().displayProperties)==null?0:U.isMultiline)?"expand-vertically":"scroll-vertically"},
disabled:S.disabled,disableNewLines:function(){var U;return(U=p().displayProperties)==null?void 0:U.disableNewLines},
onInput:S.onInput,characterLimit:S.characterLimit,validation:S.validation,rows:function(){var U;return(U=p().displayProperties)==null?void 0:U.rows}}))},"vf");_.yyJ=_.$k(function(S){var p=S.data;return _.H("text-form-field-view-model",{class:"ytTextFormFieldViewModelHost"},_.H(xo,{text:S.text,label:function(){var U;return(U=p().contentProperties)==null?void 0:U.labelText},
placeholder:function(){var U;return(U=p().contentProperties)==null?void 0:U.placeholderText},
hint:function(){var U;return(U=p().contentProperties)==null?void 0:U.hintText},
outline:function(){var U;return!((U=p().displayProperties)==null?0:U.hideBorder)},
overflowStyle:function(){var U;return((U=p().displayProperties)==null?0:U.isMultiline)?"expand-vertically":"scroll-vertically"},
disableNewLines:function(){var U;return(U=p().displayProperties)==null?void 0:U.disableNewLines},
onInput:S.onInput,characterLimit:S.characterLimit,validation:S.validation,rows:function(){var U;return(U=p().displayProperties)==null?void 0:U.rows}}))},"wf");var K4d=_.$k(function(S){var p=_.d(_.Dt(function(){var GG,Zw;return((GG=S.data().structuredContextNoteFormSchema)==null?0:(Zw=GG.initialValues)==null?0:Zw.noteBody)?S.data().structuredContextNoteFormSchema.initialValues.noteBody:""})),U=p.next().value,Y=p.next().value;
p=_.d(_.Dt(function(){S.data();return!1}));
var L=p.next().value,I=p.next().value;p=_.d(_.Dt(function(){S.data();return!1}));
var V=p.next().value,W=p.next().value;p=_.d(_.Dt(function(){var GG,Zw;return((GG=S.data().structuredContextNoteFormSchema)==null?0:(Zw=GG.initialValues)==null?0:Zw.timestamp)?S.data().structuredContextNoteFormSchema.initialValues.timestamp:""}));
var O=p.next().value,D=p.next().value;p=_.d(_.Dt(function(){S.data();return!1}));
var z=p.next().value,Q=p.next().value;p=_.d(_.Dt(function(){var GG,Zw;return((GG=S.data().structuredContextNoteFormSchema)==null?0:(Zw=GG.initialValues)==null?0:Zw.sources)?[S.data().structuredContextNoteFormSchema.initialValues.sources]:[]}));
var J=p.next().value,K=p.next().value;p=_.d(_.Dt(function(){S.data();return!1}));
var G=p.next().value,X=p.next().value;p=_.d(_.Dt(function(){return!1}));
var Z=p.next().value,l=p.next().value;_.FM(function(){var GG;_.loL((GG=S.data().structuredContextNoteFormSchema)==null?void 0:GG.id,{isSubmitting:Z,onSubmit:function(){l(!0);var Zw=B3J(U(),O(),J(),S.data()),Ru=_.tW().resolve(_.cQ);Zw&&Ru&&Ru.resolveCommand(Zw,{commandController:{onSuccess:function(){l(!1)}}})},
isValid:function(){return L()&&!V()&&!z()&&!G()}})});
var a=function(GG){if(GG!==void 0&&(Y(GG),!L()&&GG.length>0&&I(!0),L())){var Zw=m2Y(S.data());if(Zw){var Ru=Zw.minLength;Zw=Zw.maxLength;Ru&&GG.length<Ru?W(!0):Zw&&GG.length>Zw?W(!0):W(!1)}}},N=function(GG){if(GG!==void 0){D(GG);
if(GG.length>0){var Zw,Ru,sX,mq,au=va5((Zw=S.data())==null?void 0:(Ru=Zw.structuredContextNoteFormSchema)==null?void 0:(sX=Ru.fieldSchemas)==null?void 0:(mq=sX.timestamp)==null?void 0:mq.validationSchema);if(au&&(Zw=au.regex)&&!(new RegExp(Zw)).test(GG)){Q(!0);return}}Q(!1)}},m=function(GG){if(GG!==void 0){var Zw=GG.split(/[ \n]/).map(function(Ru){return Ru.trim()});
K(Zw);if(GG.length>0)for(GG=_.d(Zw),Zw=GG.next();!Zw.done;Zw=GG.next())if(!N3T(Zw.value)){X(!0);return}X(!1)}},A=function(){return{validate:function(GG){if(L()){var Zw=m2Y(S.data());
if(Zw){var Ru=Zw.minLength;Zw=Zw.translations;if(Ru&&GG.length<Ru)return Zw==null?void 0:Zw.minLengthErrorMessage}}}}},q=function(){var GG=m2Y(S.data()),Zw=GG==null?void 0:GG.maxLength,Ru;
GG=GG==null?void 0:(Ru=GG.translations)==null?void 0:Ru.maxLengthErrorMessage;if(Zw&&GG)return{maxChars:Zw,errorMessage:GG}},TG=function(){return{validate:function(GG){if(GG){var Zw,Ru,sX,mq,au=va5((Zw=S.data())==null?void 0:(Ru=Zw.structuredContextNoteFormSchema)==null?void 0:(sX=Ru.fieldSchemas)==null?void 0:(mq=sX.timestamp)==null?void 0:mq.validationSchema);
if(au&&(Zw=au.regex,au=au.translations,Zw&&!(new RegExp(Zw)).test(GG)))return au==null?void 0:au.regexErrorMessage}}}},Je=function(){return{validate:function(GG){if(GG){var Zw,Ru,sX,mq,au=iuq((Zw=S.data())==null?void 0:(Ru=Zw.structuredContextNoteFormSchema)==null?void 0:(sX=Ru.fieldSchemas)==null?void 0:(mq=sX.sources)==null?void 0:mq.validationSchema);
if(au&&(Zw=au.translations,Zw==null?0:Zw.selectedErrorMessage))for(GG=GG.split(/[ \n]/).map(function(XI){return XI.trim()}),GG=_.d(GG),Ru=GG.next();!Ru.done;Ru=GG.next())if(!N3T(Ru.value))return GG=void 0,(GG=Zw)==null?void 0:GG.selectedErrorMessage}}}};
return _.H("yt-structured-context-note-view-model",{class:"ytStructuredContextNoteViewModelHost",style:"height: calc(var(--ytd-watch-flexy-panel-max-height, 720px) - 209px);"},_.H("div",{class:"ytStructuredContextNoteViewModelTextField"},_.H(_.yP,{data:function(){var GG;return(GG=S.data())==null?void 0:GG.noteContents}},{textFormFieldViewModel:function(GG){return _.H(_.yyJ,{data:GG.data,
onInput:a,validation:A,characterLimit:q})},
textFieldViewModel:function(GG){return _.H(_.JyY,{data:GG.data,onInput:a,validation:A,characterLimit:q})}})),_.H("div",{class:"ytStructuredContextNoteViewModelTextField"},_.H(_.yP,{data:function(){var GG;
return(GG=S.data())==null?void 0:GG.noteTimestamp}},{textFormFieldViewModel:function(GG){return _.H(_.yyJ,{data:GG.data,
onInput:N,validation:TG})},
textFieldViewModel:function(GG){return _.H(_.JyY,{data:GG.data,onInput:N,validation:TG})}})),_.H("div",{class:"ytStructuredContextNoteViewModelTextField"},_.H(_.yP,{data:function(){var GG;
return(GG=S.data())==null?void 0:GG.noteSources}},{textFormFieldViewModel:function(GG){return _.H(_.yyJ,{data:GG.data,
onInput:m,validation:Je})},
textFieldViewModel:function(GG){return _.H(_.JyY,{data:GG.data,onInput:m,validation:Je})}})))},"xf");
K4d.idomCompat=!0;_.qm(K4d,"yt-structured-context-note-view-model",{props:{data:_.x2}});var bSo=_.$k(function(S){var p=_.d(_.Dt(function(){var I;if((I=S.controlled)==null?0:I.call(S))return[];var V;return(((V=S.data())==null?void 0:V.chips)||[]).map(function(W){W=_.b(W,_.eq);if(W==null?0:W.selected)return qVP(W.chipValue)}).filter(function(W){return W!==void 0})})),U=p.next().value,Y=p.next().value,L=function(I){var V=qVP(I.chipValue);
if(V!==void 0){var W;if((W=S.controlled)==null?0:W.call(S))return void S.controlled().onTap(V);I=U().includes(V)?[].concat(_.jo(U().filter(function(D){return D!==V}))):[].concat(_.jo(U()),[V]);
Y(I);var O;if((O=S.uncontrolled)==null?0:O.call(S))S.uncontrolled().onUpdate(I)}};
return _.H("chip-selection-form-field-view-model",{class:"ytChipSelectionFormFieldViewModelHost"},_.H(_.KU,{each:function(){return S.data().chips||[]}},function(I){return _.H("div",{class:"ytChipSelectionFormFieldViewModelChipWrapper"},_.H(_.Wdq,{data:function(){return _.b(I,_.eq)},
selected:function(){var V;if(V=_.b(I,_.eq)){var W=qVP(V.chipValue);if(W!==void 0){var O;V=((O=S.controlled)==null?0:O.call(S))?S.controlled().selectedValues.includes(W):U().includes(W)}else V=void 0}else V=!1;return V},
callback:L}))}))},"yf");var j85=_.$k(function(S){var p=S.data;var U=function(){var W;return((W=p())==null?void 0:W.flowStateKey)||""},Y=_.Ty(_.Al,U),L=function(){var W;
return(W=_.b(Y(),vEn))==null?void 0:W.chips},I=function(W){if(W!==void 0){var O=L()||[];
O=O.find(function(D){return D===W})?O.filter(function(D){return D!==W}):[].concat(_.jo(O),[W]);
O=Object.assign({},Y(),{feedbackFormFlowState:Object.assign({},_.b(Y(),vEn),{chips:O})});_.m_(_.WG("flowStateEntity",U(),O))}},V=function(){var W;
return _.b((W=p())==null?void 0:W.inputBox,$ai)};
S=_.OC(function(W){var O=V();O=!(O==null?0:O.maxChars)||W.length<=O.maxChars;W=Object.assign({},Y(),{feedbackFormFlowState:Object.assign({},_.b(Y(),vEn),{detail:W}),abuseReportFlowState:Object.assign({},_.b(Y(),Yo),{navigationEnabled:O})});_.m_(_.WG("flowStateEntity",U(),W))},150);
return _.H("yt-feedback-form-view-model",{class:"ytFeedbackFormViewModelHost"},_.H("div",{class:"ytFeedbackFormViewModelChips"},_.H(_.yP,{data:function(){var W;return(W=p())==null?void 0:W.chipSelection}},{chipSelectionFormFieldViewModel:function(W){return _.H(bSo,{data:W.data,
controlled:function(){return{selectedValues:L()||[],onTap:I}}})}})),_.H("div",{class:"ytFeedbackFormViewModelInputBox"},_.H(xo,{text:function(){var W;
return(W=_.b(Y(),vEn))==null?void 0:W.detail},
placeholder:function(){var W;return((W=V())==null?void 0:W.placeholderText)||""},
outline:!0,rows:4,characterLimit:function(){var W=V();if(W&&W.maxChars)return{maxChars:W.maxChars,errorMessage:W.maxCharsExceededErrorMessage||""}},
onInput:S})),_.H("div",{class:"ytFeedbackFormViewModelFooterText"},_.H(_.i6,{text:function(){return p().footerText}})))},"zf");
j85.idomCompat=!0;_.qm(j85,"yt-feedback-form-view-model",{props:{data:_.x2}});var ryT=_.$k(function(S){var p=S.data;var U=function(){return p().flowStateKey||""},Y=_.Ty(Bcs,U),L=function(){return _.b(Y(),Yo)},I=function(){if(_.y("enable_gff_accessibility_fix")){var V=!0,W;
if((W=L())==null?0:W.navigationEnabled){var O;_.wx((O=L())==null?void 0:O.navigationCommand);V=!1}W=Object.assign({},Y(),{abuseReportFlowState:Object.assign({},L(),{isReportFormDirty:V})});_.m_(_.WG("flowStateEntity",U(),W))}else _.wx((V=L())==null?void 0:V.navigationCommand)};
return _.H("yt-report-form-bottom-bar-view-model",{class:"ytWebReportFormBottomBarViewModelHost"},_.H("div",{class:"ytWebReportFormBottomBarViewModelBottomBarContainer"},_.H(_.yP,{data:function(){return p().cancelButton}},{buttonViewModel:function(V){return _.H(_.PG,{data:V.data,
className:"ytWebReportFormBottomBarViewModelButton",onClick:I})}}),_.H(_.yP,{data:function(){var V;
if(p().navButton){var W=Object;var O=W.assign,D=_.b(p().navButton,_.K6),z=((V=L())==null?0:V.navigationEnabled)||_.y("enable_gff_accessibility_fix")?"BUTTON_VIEW_MODEL_STATE_ACTIVE":"BUTTON_VIEW_MODEL_STATE_DISABLED",Q,J;V=_.b((Q=L())==null?void 0:Q.navigationCommand,_.Z$);Q=(J=_.b(V,_.Cv))==null?void 0:J.url;W={buttonViewModel:O.call(W,{},D,{state:z,iconName:Q?"OPEN_IN_NEW":""})}}else W=void 0;return W}},{buttonViewModel:function(V){return _.H(_.PG,{data:V.data,
className:"ytWebReportFormBottomBarViewModelButton",onClick:I})}})))},"Af");
ryT.idomCompat=!0;_.qm(ryT,"yt-report-form-bottom-bar-view-model",{props:{data:_.x2}});var GVY=_.$k(function(S){var p=S.nextStep;return _.H("div",{class:"ytWebReportFormConfirmationPageViewModelRow"},_.H("div",{class:"ytWebReportFormConfirmationPageViewModelIcon","aria-hidden":"true"},_.H(_.QD,{icon:function(){return p().iconName||""}})),_.H("div",null,_.H(_.i6,{text:function(){return p().text},
className:"ytWebReportFormConfirmationPageViewModelNextStepText"})))},"Bf"),hTo=_.$k(function(S){var p=S.data;
var U,Y=(U=_.tW().resolve(_.AW(_.Cz)))==null?void 0:U(),L=_.Ty(_.Al,function(){return p().flowStateKey||""});
return _.H("yt-report-form-confirmation-page-view-model",{class:function(){var I;return((I=_.b(L(),Yo))==null?void 0:I.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormConfirmationPageViewModelHostDialog":"ytWebReportFormConfirmationPageViewModelHostPanel"}},_.H("div",{class:function(){var I;
return((I=_.b(L(),Yo))==null?void 0:I.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormConfirmationPageViewModelImageDialog":"ytWebReportFormConfirmationPageViewModelImagePanel"}},_.H(_.of,{data:function(){return Y&&p().imageDark?p().imageDark:p().image},
alt:"",targetHeight:115,targetWidth:178,preserveHeight:!0,preserveWidth:!0})),_.H("div",{class:"ytWebReportFormConfirmationPageViewModelConfirmationContainer"},_.H("h1",{class:"ytWebReportFormConfirmationPageViewModelHeader"},function(){return p().confirmationHeader}),_.H("div",{class:"ytWebReportFormConfirmationPageViewModelBody"},_.H(_.i6,{text:function(){return p().confirmationText}})),_.H("div",{class:"ytWebReportFormConfirmationPageViewModelLawEnforcementText"},_.H(_.i6,{text:function(){return p().lawEnforcementText}})),
_.H("h1",{class:"ytWebReportFormConfirmationPageViewModelExpectHeader"},function(){return p().whatToExpectHeader}),_.H(_.n,{cond:function(){return p().nextSteps},
then:function(I){return _.H("div",null,_.H(_.KU,{each:I},function(V){return _.H(GVY,{nextStep:V})}))}}),_.H(_.n,{cond:function(){return p().legalReportText},
then:function(I){return _.H("div",null,_.H(_.i6,{text:I,className:"ytWebReportFormConfirmationPageViewModelLegalText"}))}})))},"Cf");
hTo.idomCompat=!0;_.qm(hTo,"yt-report-form-confirmation-page-view-model",{props:{data:_.x2}});var RTn=_.$k(function(S){var p=S.data;var U=function(){var I;return((I=_.b(p().inputBox,$ai))==null?void 0:I.maxChars)||500},Y=function(){return p().flowStateKey||""},L=_.Ty(_.Al,Y);
S=_.OC(function(I){I=Object.assign({},L(),{flowFormState:{isValid:I.length<=U()},abuseReportFlowState:{userComments:I,navigationEnabled:!(I.length>U()),isReportFormDirty:!0}});_.xk().dispatch(_.r8("flowStateEntity",Y(),I))},150);
_.FM(function(){var I=Object.assign({},L(),{flowFormState:{isValid:!0}});_.xk().dispatch(_.r8("flowStateEntity",Y(),I))});
return _.H("yt-report-form-details-page-view-model",{class:function(){var I;return((I=_.b(L(),Yo))==null?void 0:I.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormDetailsPageViewModelHostDialog":"ytWebReportFormDetailsPageViewModelHostPanel"}},_.H("h1",{class:function(){var I;
return((I=_.b(L(),Yo))==null?void 0:I.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormDetailsPageViewModelHeaderDialog":"ytWebReportFormDetailsPageViewModelHeaderPanel"}},function(){return p().detailsPageHeader}),_.H("div",{class:"ytWebReportFormDetailsPageViewModelBody"},_.H(_.i6,{text:function(){return p().bodyText}})),_.H("div",{class:"ytWebReportFormDetailsPageViewModelInput"},_.H(xo,{label:function(){var I;
return((I=_.b(p().inputBox,$ai))==null?void 0:I.placeholderText)||""},
outline:!0,rows:10,characterLimit:function(){var I;return{errorMessage:((I=_.b(p().inputBox,$ai))==null?void 0:I.maxCharsExceededErrorMessage)||"",maxChars:U()}},
onInput:S})))},"Df");
RTn.idomCompat=!0;_.qm(RTn,"yt-report-form-details-page-view-model",{props:{data:_.x2}});var F4q=_.$k(function(S){var p=S.data;var U=S.selectedKey;var Y=S.onSelected;var L=S.groupName;var I=function(){return p().text},V=function(){return p().attributedText},W=function(){return p().subtext},O=function(){return p().attributedSubtext},D=_.H("div",{class:"ytRadioButtonItemViewModelLabel"},_.H(_.n,{cond:I,
then:function(){return _.H("div",null,I)}}),_.H(_.n,{cond:V,
then:function(){return _.H(_.i6,{text:V})}}),_.H(_.n,{cond:W,
then:function(){return _.H("div",{class:"ytRadioButtonItemViewModelSubText"},W)}}),_.H(_.n,{cond:O,
then:function(){return _.H("div",{class:"ytRadioButtonItemViewModelSubText"},_.H(_.i6,{text:O}))}})),z=function(){if(V()){var J;
return(J=V())==null?void 0:J.content}return I()},Q=function(){if(O()){var J;
return(J=O())==null?void 0:J.content}return W()};
S={};return _.H("yt-radio-button-item-view-model",{class:"ytRadioButtonItemViewModelHost"},_.H(_.GP,{name:L,checked:function(){return!(U==null||!U()||p().key!==(U==null?void 0:U()))},
onChange:function(J){Y==null||Y(J.target,p(),L==null?void 0:L())},
labelRenderable:function(){return D},
ariaLabel:function(){return Q()?z()+", "+Q():z()},
className:_.VD((S.ytRadioButtonItemViewModelSubTitle=function(){return!!p().subtext},S))}))},"Ef");_.Xzn=_.$k(function(S){var p=S.data;var U=S.onSelected;var Y=S.selectedKey;var L=S.groupName;return _.H("yt-radio-button-group-view-model",{class:"yt-radio-button-group-view-model",tabindex:0},_.H("fieldset",{class:"yt-radio-button-group-view-model__fieldset"},_.H(_.yP,{data:function(){return p().radioButtons}},{radioButtonItemViewModel:function(I){return _.H(F4q,{data:I.data,
onSelected:U,selectedKey:Y,groupName:function(){return(L==null?void 0:L())||p().key}})}})))},"Ff");var Pon=_.$k(function(S){var p=S.data;var U=_.$v(),Y=function(){return p().flowStateKey||""},L=_.Ty(_.Al,Y),I=function(){return _.b(L(),Yo)};
_.R8(function(){var V,W;if(((V=I())==null?0:V.isReportFormDirty)&&((W=I())==null||!W.navigationEnabled)&&_.y("enable_gff_accessibility_fix")){var O;if(((O=I())==null?void 0:O.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"){var D;(D=document.querySelector(".ytWebReportFormReasonSelectPageViewModelHeaderDialog"))==null||D.scrollIntoView()}else{var z;(z=document.querySelector(".ytWebReportFormReasonSelectPageViewModelHeaderPanel"))==null||z.scrollIntoView()}}});
return _.H("yt-report-form-reason-select-page-view-model",{class:function(){var V;return((V=I())==null?void 0:V.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormReasonSelectPageViewModelHostDialog":"ytWebReportFormReasonSelectPageViewModelHostPanel"}},_.H("h1",{class:function(){var V;
return((V=I())==null?void 0:V.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormReasonSelectPageViewModelHeaderDialog":"ytWebReportFormReasonSelectPageViewModelHeaderPanel"}},function(){return p().pageHeader}),_.H("div",{class:"ytWebReportFormReasonSelectPageViewModelBody"},_.H(_.i6,{text:function(){return p().bodyText}})),_.H("div",{class:function(){var V;
return((V=I())==null?void 0:V.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormReasonSelectPageViewModelReasonsDialog":"ytWebReportFormReasonSelectPageViewModelReasonsPanel"}},_.H(_.n,{cond:function(){var V,W;
return((V=I())==null?void 0:V.isReportFormDirty)&&!((W=I())==null?0:W.navigationEnabled)&&_.y("enable_gff_accessibility_fix")},
then:function(){return _.H("div",{class:"ytWebReportFormReasonSelectPageViewModelEmptyReasonError",el:U},_.H(_.QD,{icon:"INFO",className:"ytWebReportFormReasonSelectPageViewModelEmptyReasonErrorIcon",size:16}),_.H("div",{class:"ytWebReportFormReasonSelectPageViewModelEmptyReasonErrorMessage","aria-live":"polite"},function(){return p().emptyReasonSelectErrorMessage}))}}),_.H(_.Xzn,{data:function(){return _.b(p().radioButtonGroup,_.Sro)},
onSelected:function(V,W){V=Object.assign({},L(),{abuseReportFlowState:Object.assign({},I(),{reasonKey:W.key,navigationEnabled:!0,isReportFormDirty:!0,navigationCommand:W.command})});_.m_(_.WG("flowStateEntity",Y(),V))},
selectedKey:function(){var V;return(V=I())==null?void 0:V.reasonKey},
groupName:"report-form-reason-select-page"})))},"Gf");
Pon.idomCompat=!0;_.qm(Pon,"yt-report-form-reason-select-page-view-model",{props:{data:_.x2}});var ZSq=_.$k(function(S){var p=S.data;var U,Y=(U=_.tW().resolve(_.AW(_.Cz)))==null?void 0:U();return _.H("yt-report-form-sign-in-page-view-model",{class:"yt-report-form-sign-in-page-view-model"},_.H("div",{class:"yt-report-form-sign-in-page-view-model__sign-in-prompt-image"},_.H(_.of,{data:function(){return Y&&p().imageDark?p().imageDark:p().image},
alt:""})),_.H("div",{class:"yt-report-form-sign-in-page-view-model__sign-in-text-content"},_.H("h1",{class:"yt-report-form-sign-in-page-view-model__sign-in-prompt-header"},function(){return p().header}),_.H(_.i6,{text:function(){return p().text},
className:"yt-report-form-sign-in-page-view-model__sign-in-prompt-body"})))},"Hf");
ZSq.idomCompat=!0;_.qm(ZSq,"yt-report-form-sign-in-page-view-model",{props:{data:_.x2}});_.qm(_.$k(function(S){var p=S.data;var U=function(){var D;return(D=p().textInputPlaceholder)==null?void 0:D.content},Y=function(D){D=D.target.value.trim();
var z=p().onUpdateText;z&&_.wx(z,{form:{userQuery:D}});p().userQuery=D},L=_.OC(function(D){Y(D)},150),I=_.kL(function(D){L(D);
return!1}),V=_.kL(function(D){D.key==="Enter"&&(Y(D),(D=p().onNextStepCommand)&&_.wx(D,{}));
return!1}),W=_.vH(),O=function(){if(_.y("web_hide_explore_hub_until_user_navigates_back_to_home")){var D,z,Q;
(Q=(z=(D=W.value)==null?void 0:D.closest("ytd-flow-step-renderer"))==null?void 0:z.querySelector("yt-flow-bottom-bar-view-model button-view-model button"))==null||Q.click()}};
return _.H("yt-talk-to-recs-view-model",{class:"ytwTalkToRecsHost",el:W},_.H("div",{class:"ytwTalkToRecsTopCornerButton"},_.H(_.yP,{data:function(){return p().topCornerButton}},{buttonViewModel:_.PG})),_.H("div",{class:"ytwTalkToRecsTalkToRecsWrapper"},_.H("div",{class:"ytwTalkToRecsTitle"},_.H(_.i6,{text:function(){return p().title}})),_.H("div",{class:"ytwTalkToRecsSubtitle"},_.H(_.i6,{text:function(){return p().subtitle}})),_.H("div",{class:"ytwTalkToRecsChipsShelf"},_.H(_.yP,{data:function(){return p().answersShelf}},
{chipsShelfViewModel:function(D){return _.H(_.yDc,{data:D.data,
callback:O})}})),_.H(_.n,{cond:function(){return p().showOpenTextInput&&!_.y("web_hide_explore_hub_until_user_navigates_back_to_home")},
then:function(){return _.H("div",{class:"ytwTalkToRecsUserInputBox"},_.H("input",{type:"text",class:"ytwTalkToRecsTextInput",placeholder:U,value:function(){return p().userQuery},
"on:input":I,"on:keyup":V}))}})))},"If"),"yt-talk-to-recs-view-model",{props:{data:_.x2}});var A3L={sources:[{clientResource:{imageName:"CHECK"}}]};_.s8i=_.$k(function(S){var p=_.vH();S=_.vT(S,{error:void 0});var U=S.data,Y=S.error,L=S.onSelected;S=_.d(_.Dt(function(){return SFs(U())}));
var I=S.next().value,V=S.next().value;LJA(U,function(Q){V(Q);var J,K,G=c3n((J=U().options)==null?void 0:(K=J[Q])==null?void 0:K.value,U().type);L==null||L(G);p.value.focus()});
S=_.kL(function(){if(!U().disabled){var Q=U(),J=I(),K=p.value;Q.options&&(Q=toP(Q.options,J,Q.label),_.tW().resolve(_.K7).openSheet({viewModel:Q},K))}});
var W=_.MfG(),O=function(){return!!Y()},D=function(){return!!U().disabled},z={};
z=_.VD("ytDropdownViewModelDropdownContainer",(z.ytDropdownViewModelDropdownContainerErrorBorder=O,z.ytDropdownViewModelDropdownContainerDisabled=D,z));return _.H("dropdown-view-model",{class:"ytDropdownViewModelHost"},_.H("div",{class:z,"on:click":S,el:p,role:"combobox",tabindex:0,"on:keydown":W,"aria-invalid":O,"aria-disabled":D,"aria-describedby":function(){return O()?"dropdown-view-model-error":void 0}},_.H("div",{class:"ytDropdownViewModelText"},piP(U,O,I),Uan(U,I)),_.H("div",{class:"ytDropdownViewModelChevronDown"},
_.H(_.QD,{icon:"CHEVRON_DOWN"}))),YFX(U,Y))},"Jf");_.qm(_.$k(function(S){var p=S.data;var U=function(L){var I=IDn(p());I.videoMetadata||(I.videoMetadata={});I.videoMetadata.sponsorshipsMetadata||(I.videoMetadata.sponsorshipsMetadata={});I.videoMetadata.sponsorshipsMetadata.minRequiredTier=String(L)},Y=function(L){var I=IDn(p());
I.scheduledRedirectMetadata||(I.scheduledRedirectMetadata={});I.scheduledRedirectMetadata.scheduledRedirectTimeDeltaSec=String(L)};
return _.H("ytfz-schedule-fanzone-view-model",{class:"ytfzScheduleFanzoneViewModelHost"},_.H("section",{class:"ytfzScheduleFanzoneViewModelContentSection"},_.H("h2",{class:"ytfzScheduleFanzoneViewModelTitleGroup"},_.H(_.i6,{text:function(){return p().title}}),_.H(_.QD,{icon:"SCHEDULE_FANZONE",
className:"ytfzScheduleFanzoneViewModelIllustration"})),_.H(_.i6,{text:function(){return p().description},
className:"ytfzScheduleFanzoneViewModelDescription"}),_.H(_.yP,{data:function(){return p().tierChoices}},{dropdownViewModel:function(L){return _.H("div",{class:"ytfzScheduleFanzoneViewModelTierDropdown"},_.H(_.s8i,{data:L.data,
onSelected:U}))}}),_.H(_.yP,{data:function(){return p().startTimeChoices}},{dropdownViewModel:function(L){return _.H("div",{class:"ytfzScheduleFanzoneViewModelStartTimeDropdown"},_.H(_.s8i,{data:L.data,
onSelected:Y}))}}),_.H(_.i6,{text:function(){return p().notice},
className:"ytfzScheduleFanzoneViewModelNotice"})),_.H("footer",{class:"ytfzScheduleFanzoneViewModelFooterSection"},_.H(_.yP,{data:function(){return p().scheduleButton}},{panelFooterViewModel:_.Cl})))},"Kf"),"ytfz-schedule-fanzone-view-model",{props:{data:_.x2}});_.qm(_.$k(function(S){var p=S.data;S=S.className===void 0?"":S.className;var U=_.Ty(Bcs,function(){return p().flowStateEntityKey||""}),Y={};
Y=_.VD("ytFlowBottomBarViewModelFlowBottomBarButtons",(Y.ytFlowBottomBarViewModelFlowBottomBarButtonsDistributed=function(){return p().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_FULL_DISTRIBUTED"||p().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_DISTRIBUTED_SPACE"},Y));
var L={},I=_.VD("ytFlowBottomBarViewModelFlowBottomBarPrimaryButton",Y,(L.ytFlowBottomBarViewModelFlowBottomBarPrimaryButtonVerticalCentered=function(){return p().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_VERTICAL_CENTERED"},L.ytFlowBottomBarViewModelFlowBottomBarPrimaryButtonFlexPrimary=function(){return p().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_FLEX_PRIMARY"},L));
L={};var V=_.VD("ytFlowBottomBarViewModelFlowBottomBarSecondaryButton",Y,(L.ytFlowBottomBarViewModelFlowBottomBarSecondaryButtonVerticalCentered=function(){return p().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_VERTICAL_CENTERED"},L.ytFlowBottomBarViewModelFlowBottomBarSecondaryButtonFullDistributed=function(){return p().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_FULL_DISTRIBUTED"},L));
Y={};Y=_.VD("ytFlowBottomBarViewModelFlowBottomBarButtonSection",(Y.ytFlowBottomBarViewModelFlowBottomBarButtonSectionVerticalCentered=function(){return p().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_VERTICAL_CENTERED"},Y.ytFlowBottomBarViewModelFlowBottomBarButtonSectionJustifyEnd=function(){return p().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_JUSTIFY_END"},Y.ytFlowBottomBarViewModelFlowBottomBarButtonSectionSpaceBetween=function(){return p().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_SPACE_BETWEEN"},
Y));
return _.H("yt-flow-bottom-bar-view-model",{class:_.VD("ytFlowBottomBarViewModelHost",S)},_.H(_.n,{cond:function(){var W;return(W=p())==null?void 0:W.textSection},
then:function(W){return _.H("div",{class:"ytFlowBottomBarViewModelFlowBottomBarTextSection"},_.H(_.i6,{text:W}))}}),_.H("div",{class:Y},_.H(_.yP,{data:function(){return p().secondaryButton}},{buttonViewModel:function(W){return _.H(_.PG,{data:W.data,
className:V})}}),_.H(_.yP,{data:function(){return p().primaryButton}},{buttonViewModel:function(W){return _.H(_.PG,{data:W.data,
className:I,buttonOverrides:function(){var O;return{disabled:!((O=U())==null||!O.primaryButtonDisabled)}}})}})))},"Lf"),"yt-flow-bottom-bar-view-model",{props:{data:_.x2,
className:_.BX}});var eTn="add arrow_left article check circle circle_full creator_academy lock price_tag".split(" "),ET=function(){var S=_.w.apply(this,arguments)||this;S.enableScrollingFix=!0;S.bottomBar=!1;S.hideBottomBar=!1;S.fitContent=!1;return S};
_.r(ET,_.w);_.M=ET.prototype;_.M.ready=function(){_.y("enable_pdp_icon_prefetch")&&_.oEd(_.tW().resolve(_.dC),0,eTn)};
_.M.focus=function(S){this.topBar?_.ig(this.topBar,S):this.paperDialog.focus(S)};
_.M.attached=function(){this.paperDialog||(this.paperDialog=this.hostElement.closest("tp-yt-paper-dialog"));this.JSC$16825_scroller&&(this.JSC$16825_scroller.dialogElement=this.paperDialog,this.JSC$16825_scroller.attached&&typeof this.JSC$16825_scroller.attached==="function"&&this.JSC$16825_scroller.attached())};
_.M.onDataChanged=function(){var S;this.fitContent=!((S=this.data)==null||!S.fitContent);var p;this.bottomBar=!((p=this.data)==null||!p.bottomBar);this.hideBottomBar=this.containsExploreHub};
_.M.onProgressChanged=function(){var S,p,U=((p=(S=this.data)==null?void 0:S.progress)!=null?p:0)*100;this.progressElement.style.width=U+"%"};
_.M.isProgressHidden=function(){var S;return!((S=this.data)==null?0:S.progress)};
_.M.configureRendererStamper=function(){return{"data.topBarOverride":{id:"top-bar",mapping:{flowTopBarRenderer:"ytd-flow-top-bar-renderer"}},"data.content":{id:"content",mapping:{benefitsFlowStepRenderer:"yt-benefits-flow-step-renderer",channelHistoryRenderer:"ytd-channel-history-renderer",confirmationFlowStepRenderer:"yt-confirmation-flow-step-renderer",creatorGoalSetUpFlowViewModel:"yt-creator-goal-set-up-flow-view-model",scheduleFanzoneViewModel:"ytfz-schedule-fanzone-view-model",contributorZeroStateViewModel:"yt-contributor-zero-state-view-model",
featureEnablementInfoRenderer:"ytd-feature-enablement-info-renderer",featureEnablementSoftEntryRenderer:"yt-feature-enablement-soft-entry-renderer",feedbackFormViewModel:"yt-feedback-form-view-model",freeTextInputFlowStepRenderer:"ytd-free-text-input-flow-step-renderer",infoFlowStepRenderer:"yt-info-flow-step-renderer",infoListFlowStepRenderer:"yt-info-list-flow-step-renderer",noteViewModel:"yt-note-view-model",offerDetailStepRenderer:"ytd-offer-detail-step-renderer",offerSelectionStepRenderer:"ytd-offer-selection-step-renderer",
pdpViewModel:{component:"pdp-view-model",params:{internalScrolling:!0}},purchaseCompleteStepRenderer:"ytd-purchase-complete-step-renderer",reportFormReasonSelectPageViewModel:"yt-report-form-reason-select-page-view-model",reportFormDetailsPageViewModel:"yt-report-form-details-page-view-model",reportFormConfirmationPageViewModel:"yt-report-form-confirmation-page-view-model",reportFormSignInPageViewModel:"yt-report-form-sign-in-page-view-model",sectionGroupViewModel:"yt-section-group-view-model",sectionListRenderer:"ytd-section-list-renderer",
structuredContextNoteViewModel:"yt-structured-context-note-view-model",surveyFlowStepRenderer:"ytd-survey-flow-step-renderer",talkToRecsViewModel:"yt-talk-to-recs-view-model",ypcTransactionErrorMessageRenderer:"ytd-ypc-transaction-error-message-renderer",optionSelectionFlowStepRenderer:{component:"yt-option-selection-flow-step-renderer",params:{flowClassName:"ytd-flow-step-renderer-content",isDesktop:!0}},offerSummaryFlowStepRenderer:{component:"yt-offer-summary-flow-step-renderer",params:{flowClassName:"ytd-flow-step-renderer-content",
shouldDisableHeaderTopMargin:!0}}}},"data.bottomBar":{id:"bottom-bar",mapping:{reportFormBottomBarViewModel:"yt-report-form-bottom-bar-view-model",formFooterViewModel:"yt-form-footer-view-model",flowBottomBarViewModel:{component:"yt-flow-bottom-bar-view-model",params:{className:"ytd-flow-step-renderer bottom-bar-view-model"}},flowBottomBarRenderer:{matcher:function(S){return _.y("enable_wiz_next_lp2_msof")&&S&&!S.couponRenderer?"yt-flow-bottom-bar-renderer":"ytd-flow-bottom-bar-renderer"}}}}}};
_.$u.Object.defineProperties(ET.prototype,{containsExploreHub:{configurable:!0,enumerable:!0,get:function(){var S;return _.y("web_hide_explore_hub_until_user_navigates_back_to_home")&&!!_.b((S=this.data)==null?void 0:S.content,A9o)}}});
ET.prototype.onProgressChanged=ET.prototype.onProgressChanged;ET.prototype.onDataChanged=ET.prototype.onDataChanged;_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],ET.prototype,"ytRendererBehavior",void 0);_.x([_.F(_.qH.YtRendererstamperBehavior),_.E("design:type",Object)],ET.prototype,"ytRendererstamperBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],ET.prototype,"data",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],ET.prototype,"enableScrollingFix",void 0);
_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],ET.prototype,"bottomBar",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],ET.prototype,"hideBottomBar",void 0);_.x([_.e("data"),_.E("design:type",Object),_.E("design:paramtypes",[])],ET.prototype,"containsExploreHub",null);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],ET.prototype,"fitContent",void 0);_.x([_.O2("#progress"),_.E("design:type",HTMLElement)],ET.prototype,"progressElement",void 0);
_.x([_.O2("#scroller"),_.E("design:type",Object)],ET.prototype,"JSC$16825_scroller",void 0);_.x([_.O2("ytd-flow-top-bar-renderer"),_.E("design:type",HTMLElement)],ET.prototype,"topBar",void 0);_.x([_.T4("data"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],ET.prototype,"onDataChanged",null);_.x([_.T4("data.progress"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],ET.prototype,"onProgressChanged",null);
ET=_.x([_.f({is:"ytd-flow-step-renderer",disableElementRegistration:!0})],ET);
_.C(ET,"ytd-flow-step-renderer",function(){if(yYs!==void 0)return yYs;var S=document.createElement("template");_.h(S,'\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');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);return yYs=S},{mode:1});var gjs=function(S){this.resolveCommand=S;this.steps={}},uGq=function(S,p){p=_.d(p||[]);
for(var U=p.next();!U.done;U=p.next()){U=U.value;var Y=Object.values(U)[0],L=void 0;if((L=Y)==null?0:L.stepId)S.steps[Y.stepId]=U}},ag5=function(S,p){var U,Y,L,I,V;
return _.T(function(W){if((U=S.state)==null||!U.currentStepId)return W.return(void 0);Y=wzi(S);if(!Y)return W.return(lgq(S));if(L=_.b(Y,_.qFY)){var O;((O=L.screenLoggingData)==null?0:O.screenVeType)&&_.S8(_.HX(),L.screenLoggingData.screenVeType);((I=L)==null?0:I.onStepStartCommand)&&S.resolveCommand((V=L)==null?void 0:V.onStepStartCommand,{})}if(L&&p){O=L;var D,z,Q,J;((D=p.flowLoggingData)==null?0:D.eventNamespace)&&((z=O.flowEventData)==null?0:z.eventType)&&((Q=O.flowEventData)==null?0:Q.eventMetadata)&&
((J=p.flowLoggingData)==null?0:J.flowType)&&(D=_.IS(p.flowLoggingData.eventNamespace,O.flowEventData.eventType,O.flowEventData.eventMetadata),_.dz(_.VX(),D,p.flowLoggingData.flowType));p.steps&&!p.steps.includes(Y)&&p.steps.push(Y)}return W.return(Y)})};
gjs.prototype.back=function(){var S;(S=this.state)!=null&&S.stepIdStack&&(this.state.currentStepId=this.state.stepIdStack.pop())};
gjs.prototype.handleUpdateFlowCommand=function(S){S.steps&&uGq(this,S.steps);S.entityUpdateCommand&&this.resolveCommand(S.entityUpdateCommand,{});S.flowContinuationCommand&&(S=S.flowContinuationCommand)&&(this.getFlowContinuationCommand=S);this.awaitFlowContinuation&&(this.awaitFlowContinuation(wzi(this)),this.awaitFlowContinuation=void 0)};
gjs.prototype.reset=function(){this.state=void 0;this.steps={};this.awaitFlowContinuation=this.getFlowContinuationCommand=void 0};
var lgq=function(S){return _.T(function(p){return S.getFlowContinuationCommand?p.return(new Promise(function(U){S.awaitFlowContinuation=U;S.getFlowContinuationCommand&&S.resolveCommand(S.getFlowContinuationCommand,{flow_state:S.state})})):p.return(Promise.resolve(void 0))})},wzi=function(S){var p;
if((p=S.state)!=null&&p.currentStepId)return S.steps[S.state.currentStepId]};var mH=function(){var S=_.w.apply(this,arguments)||this;S.flowState=new gjs(function(p,U){U=U===void 0?{}:U;_.VO.instance.resolveCommand(p,{form:{form:U,element:S.hostElement}})});
S.initialState=!0;S.isLoading=!1;S.actionMap={"yt-flow-prev-step-command":"handleFlowPrevStepCommand","yt-flow-next-step-command":"handleFlowNextStepCommand","yt-update-flow-command":"handleUpdateFlowCommand","yt-ypc-cancel-recurrence-command":"handleYpcCancelRecurrenceCommand","yt-flow-partial-update-flow-state-entity":"handlePartialUpdateFlowStateEntity"};return S};
_.r(mH,_.w);_.M=mH.prototype;_.M.onPopupClosed=function(S){S&&this.hostElement!==S.detail.popupRenderer||(this.flowState.reset(),this.currentFlowStep=this.data=void 0,this.initialState=!0)};
_.M.configureRendererStamper=function(){return{"data.topBar":{id:"top-bar",mapping:{flowTopBarRenderer:"ytd-flow-top-bar-renderer"}},currentFlowStep:{id:"flow-step",mapping:{flowStepRenderer:"ytd-flow-step-renderer"}}}};
_.M.focus=function(S){var p=this;_.uK(function(){var U=_.tB(p.hostElement).querySelector("ytd-flow-step-renderer");(U==null?0:U.topBar)?U.focus(S):p.topBar&&_.ig(p.topBar,S)},1)};
_.M.attached=function(){this.hostElement.setAttribute("dialog","true")};
_.M.computeTopBarHidden=function(S){var p;return!((p=_.b(S,_.qFY))==null||!p.topBarOverride)};
_.M.dataChanged=function(){var S=this,p,U;return _.T(function(Y){if(Y.nextAddress==1){((p=S.data)==null?0:p.steps)&&uGq(S.flowState,S.data.steps);if((U=S.data)==null?0:U.flowContinuationCommand){var L=S.flowState,I=S.data.flowContinuationCommand;I&&(L.getFlowContinuationCommand=I)}return _.k(Y,ag5(S.flowState,S.data),2)}S.currentFlowStep=Y.yieldResult;_.OV(Y)})};
_.M.flowChanged=function(){var S=this,p;return _.T(function(U){if(U.nextAddress==1){if(!S.flow)return U.return();S.flowState.state=S.flow;S.isLoading=!0;return _.k(U,ag5(S.flowState,S.data),2)}p=U.yieldResult;if(!p||S.flow.isLoading)return U.return();S.currentFlowStep=p;S.initialState=!1;S.isLoading=!1;S.autofocusAndRefit();_.OV(U)})};
_.M.autofocusAndRefit=function(){var S=this,p=_.tW().resolve(_.AW(_.SN)),U=document.activeElement&&(document.activeElement.tagName==="TEXTAREA"||document.activeElement.tagName==="INPUT"||document.activeElement.tagName==="BUTTON"),Y=document.querySelector("yt-report-form-confirmation-page-view-model"),L=document.querySelector("yt-report-form-details-page-view-model"),I=document.querySelector("yt-report-form-reason-select-page-view-model"),V=document.querySelector("yt-contributor-zero-state-view-model"),
W=document.querySelector("yt-structured-context-note-view-model"),O=document.querySelector("yt-note-view-model");(!U&&p&&p.isKeyBoardInUse()||Y||!U&&L||!U&&I||V||W||O)&&_.Nz(this.hostElement);_.oH(this,function(){_.cv(S.hostElement,"yt-refit")})};
_.M.handleUpdateFlowCommand=function(S){this.data&&(S=_.b(S,BOi),S.targetId===this.data.targetId&&(S.flowContinuationCommand&&(this.data.flowContinuationCommand=S.flowContinuationCommand),this.flowState.handleUpdateFlowCommand(S),this.autofocusAndRefit()))};
_.M.handleFlowNextStepCommand=function(S){this.data&&this.flow&&this.flow.key&&(S=_.b(S,i_q),S.targetId===this.data.targetId&&(S=S.stepId||"",this.ytdReduxBehavior.dispatch(_.r8("flowStateEntity",this.flow.key,{currentStepId:S,stepIdStack:(this.flow.stepIdStack||[]).concat(S)}))))};
_.M.handleFlowPrevStepCommand=function(S){if(this.data&&this.flow&&this.flow.key&&(S=_.b(S,NO5),S.targetId===this.data.targetId)){var p=[].concat(_.jo(this.flow.stepIdStack||[]));p.length>1?(p.pop(),this.ytdReduxBehavior.dispatch(_.r8("flowStateEntity",this.flow.key,{currentStepId:p[p.length-1],stepIdStack:p}))):S.onFirstStepCommand&&this.ytComponentBehavior.resolveCommand(S.onFirstStepCommand)}};
_.M.handleYpcCancelRecurrenceCommand=function(S){if(this.data&&this.flow&&this.flow.key&&(S=_.b(S,pmn),S.targetId===this.data.targetId&&S.endpointCommand)){var p=_.b(this.flow,UdT);p&&_.b(S.endpointCommand,_.fHj)&&(_.b(S.endpointCommand,_.fHj).feedbackData=p.surveyFeedback);this.ytComponentBehavior.resolveCommand(S.endpointCommand)}};
_.M.handlePartialUpdateFlowStateEntity=function(S){this.data&&this.flow&&this.flow.key&&this.ytdReduxBehavior.dispatch(_.r8("flowStateEntity",this.flow.key,S,"REPEATED_FIELDS_MERGE_OPTION_REPLACE"))};
mH.prototype.flowChanged=mH.prototype.flowChanged;mH.prototype.dataChanged=mH.prototype.dataChanged;mH.prototype.onPopupClosed=mH.prototype.onPopupClosed;_.x([_.F(_.Xh),_.E("design:type",Object)],mH.prototype,"ytdReduxBehavior",void 0);_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],mH.prototype,"ytRendererBehavior",void 0);_.x([_.F(_.eL.YtComponentBehavior),_.E("design:type",Object)],mH.prototype,"ytComponentBehavior",void 0);
_.x([_.F(_.qH.YtRendererstamperBehavior),_.E("design:type",Object)],mH.prototype,"ytRendererstamperBehavior",void 0);_.x([_.F(_.Aj.YtActionHandlerBehavior),_.E("design:type",Object)],mH.prototype,"ytActionHandlerBehavior",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],mH.prototype,"initialState",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],mH.prototype,"isLoading",void 0);_.x([_.g(),_.E("design:type",Object)],mH.prototype,"data",void 0);
_.x([_.g(),_.E("design:type",Object)],mH.prototype,"currentFlowStep",void 0);_.x([_.Vd("yt-popup-closed"),_.E("design:type",Function),_.E("design:paramtypes",[CustomEvent]),_.E("design:returntype")],mH.prototype,"onPopupClosed",null);_.x([_.g({selectorArgs:["data.flowStateEntityKey"],selector:Bcs}),_.E("design:type",Object)],mH.prototype,"flow",void 0);_.x([_.O2("ytd-flow-top-bar-renderer"),_.E("design:type",HTMLElement)],mH.prototype,"topBar",void 0);
_.x([_.T4("data"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype",Promise)],mH.prototype,"dataChanged",null);_.x([_.z4("flow"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype",Promise)],mH.prototype,"flowChanged",null);mH=_.x([_.f({is:"ytd-flow-root-renderer",disableElementRegistration:!0})],mH);
_.fgP=_.pz()(mH,"ytd-flow-root-renderer",function(){if(JYq!==void 0)return JYq;var S=document.createElement("template");_.h(S,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-flow-root-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="top-bar" hidden="[[computeTopBarHidden(currentFlowStep)]]" class="style-scope ytd-flow-root-renderer"></div>\n<div id="content" class="style-scope ytd-flow-root-renderer">\n  <div id="flow-step" class="style-scope ytd-flow-root-renderer"></div>\n  <div id="spinner-overlay" hidden="[[!isLoading]]" class="style-scope ytd-flow-root-renderer">\n    <tp-yt-paper-spinner-lite active="[[isLoading]]" class="style-scope ytd-flow-root-renderer"></tp-yt-paper-spinner-lite>\n  </div>\n</div>\n\n');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);return JYq=S},{mode:_.UW("kevlar_poly_si_batch_j025")?1:2});var Cod;var pl=null;_.qm(_.$k(function(S){return _.H("yt-thumbnail-overlay-attribution-view-model",{class:"ytThumbnailOverlayAttributionViewModelHost"},_.H("div",{class:"ytThumbnailOverlayAttributionViewModelInnerContainer"},_.H(_.i6,{text:function(){return S.data().text}}),_.H("span",{class:"ytThumbnailOverlayAttributionViewModelBottomRightCorner"})))},"Mf"),"yt-thumbnail-overlay-attribution-view-model",{props:{data:_.x2}});var xxL=_.$k(function(S){var p=S.playerControlsProps;var U=S.isShortsPage;return _.H("yt-bigboard",null,_.H(_.n,{cond:function(){return p().isDragging},
then:function(){return _.H("div",{class:"ytBigboardStoryboardHost"},_.H(_.hAY,{progressBarProps:p,isShortsPage:U}))}}))},"Nf");
xxL.idomCompat=!0;_.oc={ACCOUNT_LABEL:UT("ACCOUNT_LABEL"),ACT_ON_THIS_COMMENT:UT("ACT_ON_THIS_COMMENT"),ADD_TO_DROPDOWN_LABEL:UT("ADD_TO_DROPDOWN_LABEL"),AD_BADGE_HINT:UT("AD_BADGE_HINT"),AD_BADGE_TEXT:UT("AD_BADGE_TEXT"),ALL_CHANNELS_LABEL:UT("ALL_CHANNELS_LABEL"),AMBIENT_MODE:UT("AMBIENT_MODE"),AMBIENT_MODE_OFF:UT("AMBIENT_MODE_OFF"),AMBIENT_MODE_ON:UT("AMBIENT_MODE_ON"),ANDROID_DEPRECATION_MESSAGE_BODY:UT("ANDROID_DEPRECATION_MESSAGE_BODY"),ANDROID_DEPRECATION_MESSAGE_HEADER:UT("ANDROID_DEPRECATION_MESSAGE_HEADER"),
APP_UPSELL_SUBTITLE:UT("APP_UPSELL_SUBTITLE"),APP_UPSELL_TITLE:UT("APP_UPSELL_TITLE"),AUTONAV_TOGGLE:UT("AUTONAV_TOGGLE"),AUTOPLAY_IN_TEN_SECONDS:UT("AUTOPLAY_IN_TEN_SECONDS"),AUTOPLAY_PAUSED:UT("AUTOPLAY_PAUSED"),AUTOPLAY_PLAY_NOW:UT("AUTOPLAY_PLAY_NOW"),AUTOPLAY_UP_NEXT_IN:UT("AUTOPLAY_UP_NEXT_IN"),BACK:UT("BACK"),CANCEL:UT("CANCEL"),CHANNEL_SWITCHER_LABEL:UT("CHANNEL_SWITCHER_LABEL"),CLOSE:UT("CLOSE","close"),CLOSED_CAPTIONS_DISABLED:UT("CLOSED_CAPTIONS_DISABLED"),CLOSED_CAPTIONS_OFF:UT("CLOSED_CAPTIONS_OFF"),
CLOSED_CAPTIONS_ON:UT("CLOSED_CAPTIONS_ON"),CLOSED_CAPTIONS_ON_LANGUAGE:UT("CLOSED_CAPTIONS_ON_LANGUAGE"),CLOSE_SEARCH_LABEL:UT("CLOSE_SEARCH_LABEL"),CLOSE_SETTINGS_LABEL:UT("CLOSE_SETTINGS_LABEL"),COMMENT_MODAL_CONTENT:UT("COMMENT_MODAL_CONTENT"),CONFIRM_OK:UT("CONFIRM_OK"),CONNECT_TO_THE_INTERNET:UT("CONNECT_TO_THE_INTERNET"),COPIED_TO_CLIPBOARD:UT("COPIED_TO_CLIPBOARD"),COPY:UT("COPY"),COPY_DEBUG_INFO:UT("COPY_DEBUG_INFO"),COPY_EMBED_CODE:UT("COPY_EMBED_CODE"),COPY_LINK_LABEL:UT("COPY_LINK_LABEL"),
COPY_VIDEO_URL:UT("COPY_VIDEO_URL"),COPY_VIDEO_URL_AT_CURRENT_TIME:UT("COPY_VIDEO_URL_AT_CURRENT_TIME"),CREATE_CHANNEL_TITLE:UT("CREATE_CHANNEL_TITLE"),DELETE_FROM_DOWNLOADS:UT("DELETE_FROM_DOWNLOADS"),DIALOG:UT("DIALOG"),DONE:UT("DONE"),DOWNLOAD:UT("DOWNLOAD"),FAILED_COPY_ERROR_MESSAGE:UT("FAILED_COPY_ERROR_MESSAGE"),FLAG_CONFIRM:UT("FLAG_CONFIRM"),FLAG_CONTENT:UT("FLAG_CONTENT"),FLAG_LABEL:UT("FLAG_LABEL"),FLAG_TITLE:UT("FLAG_TITLE"),FULLSCREEN_GENERIC_ERROR:UT("FULLSCREEN_GENERIC_ERROR"),GOOGLE_COMPANY:UT("GOOGLE_COMPANY"),
HIDE_PLAYER_CONTROLS:UT("HIDE_PLAYER_CONTROLS","Hide player controls"),HIDE_PLAYLIST_VIDEOS:UT("HIDE_PLAYLIST_VIDEOS"),HIDE_SEARCH_FILTERS_LABEL:UT("HIDE_SEARCH_FILTERS_LABEL"),HOME:UT("HOME","Home"),INVALID_RESPONSE_RECEIVED:UT("INVALID_RESPONSE_RECEIVED"),LIBRARY:UT("LIBRARY","Library"),LISTENING:UT("LISTENING"),LOADING:UT("LOADING"),LONG_PRESS_MIC_TO_SPEAK:UT("LONG_PRESS_MIC_TO_SPEAK","Long press mic_icon_placeholder to speak"),LOOP:UT("LOOP"),MENU_DESKTOP:UT("MENU_DESKTOP"),MENU_EXIT:UT("MENU_EXIT"),
MENU_FEEDBACK:UT("MENU_FEEDBACK"),MENU_HELP:UT("MENU_HELP"),MENU_IMPRESSUM:UT("MENU_IMPRESSUM"),MENU_PLAYER_SETTINGS:UT("MENU_PLAYER_SETTINGS"),MENU_SETTINGS:UT("MENU_SETTINGS"),MENU_SIGN_IN:UT("MENU_SIGN_IN"),MENU_TITLE:UT("MENU_TITLE"),MENU_YOUR_DATA:UT("MENU_YOUR_DATA"),MORE_INFO:UT("MORE_INFO"),MORE_OPTIONS:UT("MORE_OPTIONS"),MUTE_VOLUME:UT("MUTE_VOLUME"),NEW_PLAYLIST:UT("NEW_PLAYLIST"),NEXT_VIDEO:UT("NEXT_VIDEO"),NOTIFICATION_ERROR_MESSAGE:UT("NOTIFICATION_ERROR_MESSAGE"),NOT_FOUND_CTA:UT("NOT_FOUND_CTA"),
NOT_FOUND_MESSAGE:UT("NOT_FOUND_MESSAGE"),NOT_FOUND_TITLE:UT("NOT_FOUND_TITLE"),NO_DOWNLOADS:UT("NO_DOWNLOADS"),NO_MIC_INPUT:UT("NO_MIC_INPUT"),OFFLINE_CHECK_CONNECTION:UT("OFFLINE_CHECK_CONNECTION"),OOPS_MESSAGE:UT("OOPS_MESSAGE"),OPEN_APP:UT("OPEN_APP"),OPEN_YOUTUBE:UT("OPEN_YOUTUBE"),PAUSE:UT("PAUSE"),PLAY:UT("PLAY"),PLAYER_CAPTION:UT("PLAYER_CAPTION"),PLAYER_CAPTION_OFF:UT("PLAYER_CAPTION_OFF"),PLAYER_CAPTION_ON:UT("PLAYER_CAPTION_ON"),PLAYER_DOUBLE_SPEED_USER_EDU:UT("PLAYER_DOUBLE_SPEED_USER_EDU"),
PLAYER_DOUBLE_TAP_TO_SEEK:UT("PLAYER_DOUBLE_TAP_TO_SEEK"),PLAYER_DOUBLE_TAP_TO_SHOW_OR_HIDE_PLAYER_CONTROLS:UT("PLAYER_DOUBLE_TAP_TO_SHOW_OR_HIDE_PLAYER_CONTROLS"),PLAYER_EXIT_FULLSCREEN:UT("PLAYER_EXIT_FULLSCREEN"),PLAYER_FASTFORWARD_SECONDS:UT("PLAYER_FASTFORWARD_SECONDS"),PLAYER_FULLSCREEN:UT("PLAYER_FULLSCREEN"),PLAYER_LIVE_LABEL:UT("PLAYER_LIVE_LABEL"),PLAYER_LIVE_NOW:UT("PLAYER_LIVE_NOW"),PLAYER_MINIMIZE:UT("PLAYER_MINIMIZE"),PLAYER_NEXT:UT("PLAYER_NEXT"),PLAYER_PAUSE:UT("PLAYER_PAUSE"),PLAYER_PLAY:UT("PLAYER_PLAY"),
PLAYER_PREVIOUS:UT("PLAYER_PREVIOUS"),PLAYER_PROGRESS_BAR:UT("PLAYER_PROGRESS_BAR"),PLAYER_QUALITY:UT("PLAYER_QUALITY"),PLAYER_QUALITY_AUTO:UT("PLAYER_QUALITY_AUTO"),PLAYER_REPLAY:UT("PLAYER_REPLAY"),PLAYER_REWIND_SECONDS:UT("PLAYER_REWIND_SECONDS"),PLAYER_SPEED:UT("PLAYER_SPEED"),PLAYER_SPEEDUP_USER_EDU:UT("PLAYER_SPEEDUP_USER_EDU"),PLAYER_SPEED_DECREASE:UT("PLAYER_SPEED_DECREASE"),PLAYER_SPEED_INCREASE:UT("PLAYER_SPEED_INCREASE"),PLAYER_SPEED_NORMAL:UT("PLAYER_SPEED_NORMAL"),PLAYER_SPEED_RECENT:UT("PLAYER_SPEED_RECENT"),
PLAYER_TIME_DURATION:UT("PLAYER_TIME_DURATION"),PLAYER_TIME_ELAPSED:UT("PLAYER_TIME_ELAPSED"),PLAYLIST_DESCRIPTION_INVALID_CHARACTERS:UT("PLAYLIST_DESCRIPTION_INVALID_CHARACTERS"),PLAYLIST_MIX_DETAILED_LONG_BYLINE:UT("PLAYLIST_MIX_DETAILED_LONG_BYLINE"),PLAYLIST_NAME_INVALID_CHARACTERS:UT("PLAYLIST_NAME_INVALID_CHARACTERS"),PLAYLIST_NAME_MISSING:UT("PLAYLIST_NAME_MISSING"),PLAYLIST_NAME_TOO_LONG:UT("PLAYLIST_NAME_TOO_LONG"),PLAYLIST_PANEL_END_OF_PLAYLIST:UT("PLAYLIST_PANEL_END_OF_PLAYLIST"),PLAYLIST_PANEL_NEXT:UT("PLAYLIST_PANEL_NEXT"),
PLAYLIST_PANEL_UNLISTED_PLAYLIST:UT("PLAYLIST_PANEL_UNLISTED_PLAYLIST"),PLAYLIST_TEXT_INPUT_CHAR_COUNT:UT("PLAYLIST_TEXT_INPUT_CHAR_COUNT"),PLAY_ALL:UT("PLAY_ALL"),PLEASE_FIX_ERRORS:UT("PLEASE_FIX_ERRORS"),PREMIUM_BADGE_LABEL:UT("PREMIUM_BADGE_LABEL","Premium"),PREVIOUS_VIDEO:UT("PREVIOUS_VIDEO"),PRIVACY_POLICY:UT("PRIVACY_POLICY"),RELOAD:UT("RELOAD"),REQUIRED_LABEL:UT("REQUIRED_LABEL"),SAVE_PLAYLIST:UT("SAVE_PLAYLIST"),SCRUB_SLIDE_USER_EDU:UT("SCRUB_SLIDE_USER_EDU"),SEARCH:UT("SEARCH","Search"),
SEARCH_APPEND_LABEL:UT("SEARCH_APPEND_LABEL"),SEARCH_CHANNEL:UT("SEARCH_CHANNEL"),SEARCH_CLEAR_LABEL:UT("SEARCH_CLEAR_LABEL"),SEARCH_ENTITY_SUGGESTION_ALBUM_NO_ARTIST:UT("SEARCH_ENTITY_SUGGESTION_ALBUM_NO_ARTIST","Album"),SEARCH_ENTITY_SUGGESTION_MOVIE:UT("SEARCH_ENTITY_SUGGESTION_MOVIE","Movie"),SEARCH_ENTITY_SUGGESTION_SONG_NO_ARTIST:UT("SEARCH_ENTITY_SUGGESTION_SONG_NO_ARTIST","Song"),SEARCH_ENTITY_SUGGESTION_TV_SHOW:UT("SEARCH_ENTITY_SUGGESTION_TV_SHOW","TV Show"),SEARCH_FILTERS_LABEL:UT("SEARCH_FILTERS_LABEL"),
SEARCH_LABEL:UT("SEARCH_LABEL"),SEARCH_PPP_PLACEHOLDER_TEXT:UT("SEARCH_PPP_PLACEHOLDER_TEXT"),SEEK_SLIDER:UT("SEEK_SLIDER"),SETTINGS_LABEL:UT("SETTINGS_LABEL"),SETTINGS_MIC_PERMISSION:UT("SETTINGS_MIC_PERMISSION"),SHORTS_TAB_LABEL:UT("SHORTS_TAB_LABEL","Shorts"),SHOW_LESS:UT("SHOW_LESS"),SHOW_MORE:UT("SHOW_MORE"),SHOW_PLAYER_CONTROLS:UT("SHOW_PLAYER_CONTROLS","Show player controls"),SHOW_PLAYLIST_VIDEOS:UT("SHOW_PLAYLIST_VIDEOS"),SHOW_SEARCH_FILTERS_LABEL:UT("SHOW_SEARCH_FILTERS_LABEL"),SIGN_IN_LABEL:UT("SIGN_IN_LABEL"),
SIGN_IN_ON_WEB:UT("SIGN_IN_ON_WEB"),STABLE_VOLUME:UT("STABLE_VOLUME"),STABLE_VOLUME_OFF:UT("STABLE_VOLUME_OFF"),STABLE_VOLUME_ON:UT("STABLE_VOLUME_ON"),STATS_FOR_NERDS:UT("STATS_FOR_NERDS"),SUGGESTION_DISMISSED_LABEL:UT("SUGGESTION_DISMISSED_LABEL"),SUGGESTION_DISMISS_LABEL:UT("SUGGESTION_DISMISS_LABEL"),SUGGESTION_NEW_VIDEOS_TEXT:UT("SUGGESTION_NEW_VIDEOS_TEXT"),SUGGESTION_THUMBNAIL_ATTRIBUTION_LABEL:UT("SUGGESTION_THUMBNAIL_ATTRIBUTION_LABEL","View image source"),SUGGESTION_THUMBNAIL_LABEL:UT("SUGGESTION_THUMBNAIL_LABEL"),
TERMS_OF_SERVICE:UT("TERMS_OF_SERVICE"),TIMESTAMP_MINUTES:UT("TIMESTAMP_MINUTES"),TIMESTAMP_SECONDS:UT("TIMESTAMP_SECONDS"),TOGGLE_OFF:UT("TOGGLE_OFF"),TOGGLE_ON:UT("TOGGLE_ON"),TRENDING:UT("TRENDING"),TROUBLESHOOT_PLAYBACK_ISSUE:UT("TROUBLESHOOT_PLAYBACK_ISSUE"),TRY_AGAIN_LATER:UT("TRY_AGAIN_LATER"),TRY_AGAIN_MIC_PERMISSION:UT("TRY_AGAIN_MIC_PERMISSION"),TURN_OFF_AUTOPLAY_CONFIRM_BUTTON_TITLE:UT("TURN_OFF_AUTOPLAY_CONFIRM_BUTTON_TITLE"),TURN_OFF_AUTOPLAY_DIALOG_DESCRIPTION:UT("TURN_OFF_AUTOPLAY_DIALOG_DESCRIPTION"),
TURN_OFF_AUTOPLAY_DIALOG_TITLE:UT("TURN_OFF_AUTOPLAY_DIALOG_TITLE"),UNMUTE_VOLUME:UT("UNMUTE_VOLUME"),VIDEO_LINK_LABEL:UT("VIDEO_LINK_LABEL")};var EjP=_.$k(function(S){var p=S.playerApi;S=_.vH(function(Y){_.um(Y,36843)});
var U=UT("PLAYER_FASTFORWARD_SECONDS","",{seconds_placeholder:"30"});return _.H("jump-forward-button",{class:"ytPlayerControlsJumpForwardButtonHost"},_.H("button",{el:S,class:"ytPlayerControlsJumpForwardButtonButton",title:U,"aria-label":U,"on:click":_.kL(function(){_.wC(36843);p&&p().seekBy(30);window.dispatchEvent(new CustomEvent("jump-forward-clicked"));return!1})},_.H("span",null,_.H(_.QD,{icon:"FAST_FORWARD"}))))},"Of");var mxL=_.$k(function(S){var p=S.appApi;S=_.vH(function(Y){_.um(Y,62946)});
var U=UT("OPEN_IN_MINIPLAYER");return _.H("miniplayer-button",{class:"ytMiniplayerButtonHost"},_.H("button",{el:S,class:"ytMiniplayerButtonButton",title:U,"aria-label":U,"on:click":_.kL(function(){_.wC(62946);var Y,L;(L=(Y=p()).openInMiniplayer)==null||L.call(Y);return!1})},_.H(_.QD,{icon:"PICTURE_IN_PICTURE",
active:!1})))},"Pf");var ojt=_.$k(function(S){var p=S.playerApi;S=_.vH(function(I){_.um(I,142812)});
var U=_.d(_.kj(!1,void 0,"I3VCyb")),Y=U.next().value,L=U.next().value;U=function(){return UT("SET_PLAYBACK_SPEED_X","",{speed_rate_placeholder:""+(Y()?1:2)})};
return _.H("yt-playback-speed-button",{class:"ytPlaybackSpeedButtonHost"},_.H("button",{el:S,class:"ytPlaybackSpeedButtonButton",title:U,"aria-label":U,"on:click":_.kL(function(){_.wC(142812);if(p){var I=p(),V=Y();I.setPlaybackRate(V?1:2);L(!Y())}return!1})},_.H("span",null,_.H(_.QD,{icon:function(){return Y()?"PLAY_ARROW_HALF_CIRCLE_FILLED":"PLAY_ARROW_HALF_CIRCLE"}}))))},"Qf");var vjt=_.$k(function(S){var p=S.title;var U=S.ariaLabel;var Y=S.icon;var L=S.command;var I=S.veType;S=_.vH(function(V){I&&_.um(V,I())});
return _.H("ytd-thumbnail-overlay-button",{class:"ytdThumbnailOverlayButtonHost"},_.H("button",{el:S,class:"ytdThumbnailOverlayButtonButton",title:p,"aria-label":U,"on:click":_.kL(function(){I&&_.wC(I());L&&_.tW().resolve(_.cQ).resolveCommand(L())})},_.H(_.QD,{icon:Y})))},"Rf");var tz="";var $xn=_.$k(function(S){var p=S.playerControlsProps,U=S.onClickFn;S=_.nS(function(){var I=p(),V=-1;I.captionsAvailable&&(V=I.captionsEnabled?1:0);return V},void 0,"WecR8e");
var Y=_.nS(function(){var I=p();return I.captionsAvailable?_.Oh(I.captionsEnabled?"CLOSED_CAPTIONS_ON":"CLOSED_CAPTIONS_OFF"):_.Oh("CLOSED_CAPTIONS_DISABLED")},void 0,"atEfde"),L=_.nS(function(){var I=p();
I=I.captionsAvailable?I.captionsEnabled:void 0;return I},void 0,"Q17ly");
return _.H("yt-closed-captions-toggle-button",null,_.H(_.nqA,{captionIconType:S,ariaLabel:Y,ariaPressed:L,onClick:function(I){var V=p();if(V.captionsAvailable){var W=V.playerApi;if(W){var O=V.playerApi;if(O){var D=tz;if(D){O=O.getOption("captions","track");var z;tz=(z=O?O.displayName:null)!=null?z:D}else _.gC(O)?(D=AAo(O),tz=D.length?(z=tOP(D))?z.displayName:D[0].displayName:""):tz=""}cAX(W);_.y("mweb_disable_set_state_captions_killswitch")&&V.setState({captionsEnabled:!V.captionsEnabled})}}var Q,
J;(J=(Q=V.appApi).showCaptionsToggleToast)==null||J.call(Q,V);U==null||U(I)},
isOverlay:!0}))},"Sf");var iSd=_.$k(function(S){var p=S.data;return _.H("yt-premiere-trailer-badge",{class:"yt-premiere-trailer-badge"},_.H(_.vG,{data:function(){return{type:16,text:_.yGu(p().label)}}}))},"Tf");var Ndo=_.$k(function(S){var p=_.VD("ytPlayerControlsAnimatedSeekArrowsArrow",function(){return S.direction()===1?"ytPlayerControlsAnimatedSeekArrowsForwardArrow":"ytPlayerControlsAnimatedSeekArrowsBackwardArrow"},function(){return S.size()==="small"?"ytPlayerControlsAnimatedSeekArrowsArrowSmall":"ytPlayerControlsAnimatedSeekArrowsArrowLarge"},function(){return S.size()==="small"?S.direction()===1?"ytPlayerControlsAnimatedSeekArrowsArrowSmallForward":"ytPlayerControlsAnimatedSeekArrowsArrowSmallBackward":
S.direction()===1?"ytPlayerControlsAnimatedSeekArrowsArrowLargeForward":"ytPlayerControlsAnimatedSeekArrowsArrowLargeBackward"});
return _.H("animated-seek-arrows",{class:_.VD("ytPlayerControlsAnimatedSeekArrowsHost")},_.H("span",{class:p}),_.H("span",{class:p}),_.H("span",{class:p}))},"Uf");
Ndo.idomCompat=!0;var BdE=_.$k(function(){var S=_.Oh("PLAYER_SECONDS",{seconds_placeholder:"30"}),p=_.d(_.kj(!1,void 0,"Yj8msb")),U=p.next().value,Y=p.next().value,L=_.d(_.kj(!1,void 0,"r9Z50e"));p=L.next().value;var I=L.next().value;L={};var V=_.VD("jumpForwardOverlayOverlay",(L.jumpForwardOverlayOverlayHidden=p,L));_.FM(function(){var W=null,O=null,D=function(){W!==null&&_.jC().cancelJob(W);O!==null&&_.jC().cancelJob(O);I(!0);Y(!0);_.ps(_.jC(),function(){I(!1)});
W=_.ps(_.jC(),function(){I(!0);O=_.ps(_.jC(),function(){Y(!1)},200)},600)};
window.addEventListener("jump-forward-clicked",D);_.FG(function(){window.removeEventListener("jump-forward-clicked",D)})});
return _.H("jump-forward-overlay",{class:"jumpForwardOverlayHost"},_.H(_.n,{cond:U,then:function(){return _.H("div",{class:V},_.H(Ndo,{direction:1,size:"large"}),_.H("div",null,S))}}))},"Vf");var jYs=_.oc.MUTE_VOLUME,b_T=_.oc.UNMUTE_VOLUME,qIt=_.$k(function(S){var p=S.muteIconType;var U=S.onClick;var Y=S.useOutlineIcon;S=_.vH(function(I){_.um(I,28662)});
var L=function(){return r9o(p(),Y==null?void 0:Y()).ariaLabel};
return _.H("ytm-mute-button",{class:"ytmMuteButtonHost"},_.H("button",{el:S,class:"ytmMuteButtonButton",title:L,"aria-label":L,"on:click":_.kL(function(I){_.wC(28662);U==null||U(I);return!1})},_.H("span",null,_.H(_.QD,{icon:function(){return r9o(p(),Y==null?void 0:Y()).iconName}}))))},"Wf");var AyP=_.$k(function(S){var p=S.volumeProps;var U=S.onClickFn;var Y=S.useOutlineIcon;return _.H("yt-mute-toggle-button",null,_.H(qIt,{muteIconType:function(){var L=p(),I=!_.y("mweb_treat_zero_volume_as_muted_killswitch")&&L.volume===0;return L.volumeMuted||I?0:1},
onClick:function(L){var I=p().playerApi;I&&(I.isMuted()?I.unMute():I.mute(!1));U==null||U(L)},
useOutlineIcon:function(){return!(Y==null||!Y())}}))},"Xf");
AyP.idomCompat=!0;var tks=_.$k(function(S){var p=S.data;var U=_.vH();return _.H("ytm-paid-content-overlay-renderer",{class:"ytmPaidContentOverlayHost",el:U,"on:animationend":_.kL(function(){U.value.classList.add("ytmPaidContentOverlayHidden");return!1})},_.H(_.pY,{command:function(){return p().navigationEndpoint},
className:"ytmPaidContentOverlayLink"},_.H(_.n,{cond:function(){var Y;return(Y=p().icon)==null?void 0:Y.iconType},
then:function(){return _.H("span",null,_.H(_.QD,{icon:function(){var Y;return(Y=p().icon)==null?void 0:Y.iconType}}))}}),_.H("div",{class:"ytmPaidContentOverlayText"},_.H(_.i6,{text:function(){return p().text}})),_.H(_.n,{cond:function(){return p().navigationEndpoint},
then:function(){return _.H(_.QD,{icon:"CHEVRON_RIGHT"})}})))},"Yf");
tks.idomCompat=!0;var GNn=[].concat(_.jo([{register:function(S){var p=up5(S),U;(U=S().playerApi)==null||U.addEventListener("onVolumeChange",p);return function(){}}},
{register:function(S){var p=wi5(S);S=S().playerApi;S==null||S.addEventListener("captionschanged",p);S==null||S.addEventListener("captionssettingschanged",p);S==null||S.addEventListener("onCaptionsTrackListChanged",p);return function(){}}},
{register:function(S){if(!_.y("mweb_screenreader_accessible_player"))return function(){};
var p=lDJ(S),U=document.querySelector("video");U==null||U.addEventListener("touchend",p);return function(){U==null||U.removeEventListener("touchend",p)}}},
{register:function(S){if(!_.y("mweb_screenreader_detect_screenreader_user_focus"))return function(){};
var p=lDJ(S),U=document.querySelector("video");U==null||U.addEventListener("focus",p);return function(){U==null||U.removeEventListener("focus",p)}}}]),[{register:function(S){var p=Z_T(S),U;
(U=S().playerApi)==null||U.addEventListener("onStateChange",p);return function(){}}},
{register:function(S){var p=sYX(S),U;(U=S().playerApi)==null||U.addEventListener("onPlaybackRateChange",p);return function(){}}},
{register:function(S){var p=eHn(S),U;(U=S().playerApi)==null||U.addEventListener("onVideoDataChange",p);return function(){}}},
{register:function(S){var p=gEt(S),U,Y;(U=S())==null||(Y=U.playerApi)==null||Y.addEventListener("onVideoProgress",p);return function(){}}}]);var cyP=_.$k(function(S){var p=S.data;var U=function(){return _.Oh("PLAYBACK_SPEED_X",{speed_rate_placeholder:""+p().playbackRate})};
return _.H(_.n,{cond:function(){return p().playbackRate&&p().playbackRate!==1},
then:function(){return _.H("yt-playback-rate-overlay",{class:"ytPlaybackRateOverlayHost"},_.H("div",{class:"ytPlaybackRateOverlayOverlay"},_.H(Ndo,{direction:1,size:"small"}),_.H("div",{class:"ytPlaybackRateOverlayLabel"},U)))}})},"Zf");var S0t=_.$k(function(S){var p=S.data;return _.H("div",{class:"ytInlinePlayerControlsTopLeftControls"},_.H(_.n,{cond:function(){var U,Y=(U=p())==null?void 0:U.playerResponse,L;return Y==null?void 0:(L=Y.paidContentOverlay)==null?void 0:L.paidContentOverlayRenderer},
then:function(U){return _.H(tks,{data:U})}}))},"ag"),pQL=_.$k(function(S){var p=S.props;
var U=S.data;var Y=S.options;var L=function(){var D,z,Q,J;return(D=U())==null?void 0:(z=D.playerResponse)==null?void 0:(Q=z.playerConfig)==null?void 0:(J=Q.inlinePlaybackConfig)==null?void 0:J.showAudioControls},I=function(){var D,z;
if(L()&&((D=Y())==null?void 0:(z=D.additionalButton)==null?void 0:z.button)!==void 0){var Q,J,K;D=(Q=U())==null?void 0:(J=Q.playerApi)==null?void 0:(K=J.getSize())==null?void 0:K.height;if(!(D===void 0||D<180)){var G,X;return(G=Y())==null?void 0:(X=G.additionalButton)==null?void 0:X.button}}},V=function(){var D,z;
return(D=Y())==null?void 0:(z=D.additionalButton)==null?void 0:z.thumbnailOverlayButtonRenderers},W=function(){var D,z;
return(D=Y())==null?void 0:(z=D.additionalButton)==null?void 0:z.thumbnailOverlayButtonViewModels},O=function(){var D=[_.H(AyP,{volumeProps:p}),
_.H($xn,{playerControlsProps:p})];I()===1&&D.push(_.H(EjP,{playerApi:function(){return p().playerApi}}));
I()===2&&D.push(_.H(mxL,{appApi:function(){return p().appApi}}));
I()===3&&D.push(_.H(ojt,{playerApi:function(){return p().playerApi}}));
var z=V();if(I()===4&&z){z=_.d(z);for(var Q=z.next(),J={};!Q.done;J={tooltip$jscomp$2:void 0,ariaLabel$jscomp$20:void 0,icon$jscomp$52:void 0,command$jscomp$569:void 0},Q=z.next()){Q=Q.value;J.tooltip$jscomp$2=Q.tooltip;var K=void 0,G=void 0;J.ariaLabel$jscomp$20=((K=Q.accessibility)==null?void 0:(G=K.accessibilityData)==null?void 0:G.label)||J.tooltip$jscomp$2;K=void 0;J.icon$jscomp$52=(K=Q.icon)==null?void 0:K.iconType;J.command$jscomp$569=Q.command;J.tooltip$jscomp$2&&J.ariaLabel$jscomp$20&&J.icon$jscomp$52&&
D.push(_.H(vjt,{title:function(X){return function(){return X.tooltip$jscomp$2}}(J),
ariaLabel:function(X){return function(){return X.ariaLabel$jscomp$20}}(J),
icon:function(X){return function(){return X.icon$jscomp$52}}(J),
command:function(X){return function(){return X.command$jscomp$569}}(J)}))}}z=W();
if(I()===4&&z)for(z=_.d(z),Q=z.next(),J={};!Q.done;J={tooltip$jscomp$3:void 0,ariaLabel$jscomp$21:void 0,icon$jscomp$53:void 0,command$jscomp$570:void 0},Q=z.next())Q=Q.value,J.tooltip$jscomp$3=Q.title,J.ariaLabel$jscomp$21=Q.accessibilityText||J.tooltip$jscomp$3,J.icon$jscomp$53=Q.iconName,J.command$jscomp$570=_.sW(Q.onTap),J.tooltip$jscomp$3&&J.ariaLabel$jscomp$21&&J.icon$jscomp$53&&D.push(_.H(vjt,{title:function(X){return function(){return X.tooltip$jscomp$3}}(J),
ariaLabel:function(X){return function(){return X.ariaLabel$jscomp$21}}(J),
icon:function(X){return function(){return X.icon$jscomp$53}}(J),
command:function(X){return function(){return X.command$jscomp$570}}(J)}));
return D};
return _.H(_.n,{cond:L,then:function(){return _.H("div",{class:"ytInlinePlayerControlsTopRightControls"},_.H(_.KU,{each:O},function(D){return _.H("div",{class:"ytInlinePlayerControlsTopRightControlsCircleButton"},_.H("div",{class:"ytInlinePlayerControlsButtonIcon"},D))}))}})},"bg"),LcE=_.$k(function(S){var p=S.props;
var U=S.data;var Y=S.options;S={};S=_.VD("ytInlinePlayerControlsBottomRightControls",(S.ytInlinePlayerControlsBottomRightControlsHidden=function(){var L;return fDt(U(),Y())&&((L=Y())==null?void 0:L.insetProgressBar)&&(p().isHovering||p().isDragging)},S));
return _.H("div",{class:S},_.H(UZT,{data:U}),_.H(_.n,{cond:function(){var L;return!((L=Y())==null?0:L.hideTimeDisplay)},
then:function(){return _.H(Y0X,{props:p,data:U})}}))},"cg"),UZT=_.$k(function(S){var p=S.data;
return _.H(_.yP,{data:function(){var U;return J9q((U=p())==null?void 0:U.thumbnailOverlays)}},{premiereTrailerBadgeRenderer:iSd})},"dg"),Y0X=_.$k(function(S){var p=S.props;
var U=S.data;return _.H(_.n,{cond:function(){return p().isLive},
then:function(){return _.H(Mnn,null)},
else:function(){return _.H(ICn,{props:p,data:U})}})},"eg"),ICn=_.$k(function(S){var p=S.props;
var U=S.data;var Y=_.nS(function(){var L;return KJJ((L=U())==null?void 0:L.thumbnailOverlays)},void 0,"kUmuA");
return _.H("div",{class:_.VD("ytInlinePlayerControlsTimeDisplay"),"aria-label":function(){return _.oc.PLAYER_TIME_ELAPSED+" "+_.PPw(p().playedTime)}},_.H(_.vG,{data:function(){var L=_.PPw(p().videoDuration-p().playedTime);
return Object.assign({},{type:16,text:L},Y())}}))},"fg"),Mnn=_.$k(function(){return _.H("div",{class:_.VD("ytInlinePlayerControlsTimeDisplay","ytInlinePlayerControlsLiveBadge")},_.H(_.vG,{data:{type:17,
text:_.oc.PLAYER_LIVE_LABEL,icon:"LIVE"}}))},"gg"),dZs=_.$k(function(S){var p=S.props;
var U=S.data;var Y=S.options;return _.H(_.sTq,{progressBarProps:p,config:function(){var L,I=_.b((L=U())==null?void 0:L.multiMarkersPlayerBar,_.WSP),V;L=((V=Y())==null?0:V.insetProgressBar)?2:1;var W;V=(W=Y())==null?void 0:W.useFinePointerTargetSizes;return{unmuteOnSeek:!1,position:L,chapterData:I,isInlinePlayback:!0,doSeekOnClick:V,playheadDotBehavior:V?1:0}}})},"hg");_.qm(_.$k(function(S){var p=S.data;var U=S.appApi;var Y=S.options;var L=PIT(p,aDX(U));S={};U={};return _.H("yt-inline-player-controls",{class:"ytInlinePlayerControlsHost"},_.H("div",{class:_.VD("ytInlinePlayerControlsDarkenedOverlay",(S.ytInlinePlayerControlsDarkenedOverlayShow=function(){return L().isHovering},S))}),_.H(BdE,null),_.H(cyP,{data:L}),_.H(S0t,{data:p}),_.H(xxL,{playerControlsProps:L,
isShortsPage:!1}),_.H("div",{class:_.VD((U.ytInlinePlayerControlsControlsHidden=function(){return L().isDragging},U))},_.H(pQL,{props:L,
data:p,options:Y}),_.H(LcE,{props:L,data:p,options:Y})),_.H(_.n,{cond:function(){return fDt(p(),Y())},
then:function(){return _.H(dZs,{props:L,data:p,options:Y})}}))},"$f"),"yt-inline-player-controls",{props:{data:_.x2,
appApi:_.BX,options:_.x2}});var vN=function(){var S=_.w.apply(this,arguments)||this;S.opts=null;S.playerControlsData=null;S.playerControlsAppApi={openInMiniplayer:function(){S.openInMiniplayer()}};
S.playerControlsOptions={};S.noAnimation=!1;S.playbackIntentTriggered=!1;S.positionData=null;S.hidden=!0;S.active=!1;S.playing=!1;S.videoPreviewDataIndex=0;S.JSC$16881_playerPromise=null;S.player=null;S.enableAudioControls=!1;S.hasBeenUnmuted=!1;S.captionsHaveBeenTurnedOff=!1;S.JSC$16881_playerEvents=new Map;S.videoPreviewFetchRequest=null;S.scheduledPreviewEndJobId=null;S.JSC$16881_preventProgressSaveTimer=null;S.watchEndpointStartTimeUpdaterInterval=null;S.actionMap={"yt-open-video-preview-action":"handleOpenVideoPreviewAction",
"yt-terminate-video-preview-action":"onTerminateVideoPreviewAction","yt-get-inline-preview-player-action":"getInlinePreviewPlayer","yt-window-resized":"onWindowResized"};S.windowOnBlurFn=function(){S.deactivate()};
return S};
_.r(vN,_.w);_.M=vN.prototype;
_.M.configureRendererStamper=function(){return{"opts.videoPreviewData.thumbnailOverlays":_.y("web_enable_rich_item_on_focus_effect")?{id:"endorsement",mapping:{}}:{id:"endorsement",mapping:{thumbnailOverlayEndorsementRenderer:{component:"ytd-thumbnail-overlay-endorsement-renderer",params:{disableAnimation:!0,rounded:!0}},attributionViewModel:{component:"yt-thumbnail-overlay-attribution-view-model"}}},"videoPreviewData.thumbnailOverlays":{id:"overlays",mapping:{pageIndicatorViewModel:"yt-page-indicator-view-model",thumbnailOverlayBottomPanelRenderer:"ytd-thumbnail-overlay-bottom-panel-renderer",
thumbnailOverlayTitleViewModel:"yt-thumbnail-overlay-title-view-model"}}}};
_.M.attached=function(){window.addEventListener("blur",this.windowOnBlurFn);this.JSC$16881_playerEvents.set("onStateChange",this.onPlayerStateChange);this.JSC$16881_playerEvents.set("onPlaybackStartExternal",this.onPlaybackStart);this.JSC$16881_playerEvents.set("SEEK_COMPLETE",this.onSeekComplete);this.JSC$16881_playerEvents.set("captionschanged",this.onCaptionsChanged);document.addEventListener("yt-page-type-changed",_.d9(this,this.onPageTypeChange));this.pagePath=location.pathname;window.addEventListener("scroll",
_.d9(this,this.onScroll))};
_.M.detached=function(){window.removeEventListener("blur",this.windowOnBlurFn);window.removeEventListener("scroll",_.d9(this,this.onScroll))};
_.M.onPageTypeChange=function(){this.deactivate()};
_.M.onWindowResized=function(){this.deactivate()};
_.M.onCaptionsChanged=function(S){S=!!S.languageCode;this.playing&&this.allowCaptions()&&(this.captionsHaveBeenTurnedOff=!S);this.setCaptionSize()};
_.M.setCaptionSize=function(){var S;if(this.active&&!this.captionsHaveBeenTurnedOff&&((S=this.player)==null?0:S.getCaptionWindowContainerId())){var p;(p=this.player)==null||p.updateSubtitlesUserSettings({fontSizeIncrement:2},!1)}};
_.M.currentPageAllowed=function(){return!this.isWatchPage};
_.M.alignVideoPreviewForAnimation=function(){this.hidden=!1;this.noAnimation=!0;this.positionData=this.getThumbnailPositionData();if(!this.positionData)return!1;var S=this.positionData,p=S.initialTopPosition,U=S.initialHorizontalPosition;_.Ms(this.hostElement,{"--ytd-video-preview-translate-left":S.finalHorizontalPosition-U+"px","--ytd-video-preview-translate-top":S.finalTopPosition-p+"px","--ytd-video-preview-original-top-position":p+"px","--ytd-video-preview-original-horizontal-position":U+"px",
"--ytd-video-preview-initial-scale":"scale("+S.initialScale+")","--ytd-video-preview-width":S.videoPreviewWidth+"px","--ytd-video-preview-height":S.videoPreviewHeight+"px"});return!0};
_.M.handleOpenVideoPreviewAction=function(S){var p=this,U;return _.T(function(Y){if(!p.currentPageAllowed())return Y.return(0);p.opts=S;return(U=p.alignVideoPreviewForAnimation(S.thumbnail))?Y.return(p.activate()):Y.return(0)})};
_.M.onMouseLeave=function(S){this.shouldDeactivateOnMouseLeave(S)&&this.deactivate()};
_.M.onScroll=function(){var S,p;((S=this.opts)==null?0:S.isAutoplay)&&((p=this.opts)==null?0:p.mediaRenderer)&&this.opts.mediaRenderer.getBoundingClientRect().top<0&&this.deactivate()};
_.M.optsChanged=function(){this.scheduledPreviewEndJobId&&(_.PA.cancelJob(this.scheduledPreviewEndJobId),this.scheduledPreviewEndJobId=null)};
_.M.onInlinePreviewIsEnabledChange=function(){!this.inlinePreviewIsEnabled&&this.playbackIntentTriggered&&this.deactivate()};
_.M.onIsAdsVideoChange=function(){this.isAdsVideo&&this.ytSparklesClickLocationBehavior.configureClickTargets("video-preview-container",vN.JSC$16880_DEFAULT_CLICK_LOCATION_BEHAVIOR,vN.JSC$16880_CLICK_LOCATION_ID_MAP)};
_.M.shouldDeactivateOnMouseLeave=function(S){S=S.relatedTarget;if(!S)return!0;var p;return(p=this.opts)!=null&&p.mediaRenderer?!_.p3(this.opts.mediaRenderer).contains(S):!0};
_.M.onPlayerStateChange=function(){this.player&&this.player.getPlayerState()===0&&(this.hasMultipleVideoPreviews()?this.startPlaybackForNextVideo():this.deactivate({resetWatchEndpointStartTime:!0}))};
_.M.onPlaybackStart=function(){var S=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$16881_preventProgressSaveTimer=
_.ps(_.PA,function(){S.resetPreventProgressSaveTimer()},1E4);
var p;if((p=this.opts)==null?0:p.videoPreviewDurationMs)this.scheduledPreviewEndJobId=_.ps(_.PA,function(){S.hasMultipleVideoPreviews()?S.startPlaybackForNextVideo():S.deactivate()},this.opts.videoPreviewDurationMs);
var U;this.player.setGlobalCrop(((U=this.opts)==null?0:U.cropPlayerToFillThumbnailHorizontally)?"fullwidth":null)}};
_.M.getRoundedCornersSize=function(){var S;if((S=this.opts)==null?0:S.roundedCornersSize){var p;return(p=this.opts)==null?void 0:p.roundedCornersSize}var U;if((U=this.opts)==null?0:U.enableRounding){var Y;if(((Y=this.opts)==null?void 0:Y.thumbnailSize)==="small")return 1;var L;if(((L=this.opts)==null?void 0:L.thumbnailSize)==="medium")return 2;var I;if(((I=this.opts)==null?void 0:I.thumbnailSize)==="large")return 3}return _.y("web_imp_inset_progress_bar")?3:0};
_.M.onSeekComplete=function(){this.resetPreventProgressSaveTimer()};
_.M.onTerminateVideoPreviewAction=function(){this.deactivate()};
_.M.onMediaContainerClick=function(S){this.isShortcutClick(S)||(this.navigateToWatch(S),S.preventDefault(),S.stopPropagation())};
_.M.activate=function(){var S=this,p,U,Y,L,I,V,W,O,D;return _.T(function(z){switch(z.nextAddress){case 1:if(!S.currentPageAllowed())return z.return(0);U=(p=S.videoPreviewData)==null?void 0:p.inlinePlaybackEndpoint;Y=_.uZ.instance;if(!U||!Y)return z.return(0);S.playbackIntentTriggered=!0;((L=S.opts)==null?0:L.mediaRenderer)&&((I=S.opts)==null||!I.isAutoplay)&&QYA(S.opts.mediaRenderer,function(){S.deactivate()});
_.oH(S,function(){S.revealPreviewUi()});
V={};_.y("enable_unknown_lact_fix_on_html5")&&(_.tW().resolve(_.rY),V.lact=_.pv());S.videoPreviewFetchRequest=WJo(Y,S.getInlinePlaybackRequestData(S.videoPreviewData),V);_.M2(z,2);return _.k(z,S.videoPreviewFetchRequest,4);case 4:W=z.yieldResult;if(((O=W)==null?void 0:(D=O.playabilityStatus)==null?void 0:D.status)==="OK")return z.return(S.handlePlayerResponse(W));throw Error("Hj");case 2:_.W4(z),S.deactivate();case 3:return z.return(1)}})};
_.M.getInlinePlaybackRequestData=function(S){var p,U=_.y("web_imp_player_mute_params")?((p=this.opts)==null?void 0:p.forceMutedVolume)||!this.hasBeenUnmuted:!0;return{endpoint:S.inlinePlaybackEndpoint,startPlaybackInMutedState:U}};
_.M.handlePlayerResponse=function(S){var p=this,U,Y,L,I,V,W,O,D,z,Q;return _.T(function(J){if(J.nextAddress==1){U=p.getInlinePlaybackVideoId();if(!(((Y=S)==null?0:(L=Y.videoDetails)==null?0:L.videoId)&&p.currentPageAllowed()&&p.playbackIntentTriggered&&p.opts&&U))return p.deactivate(),J.return(0);if(S.videoDetails.videoId!==U)return J.return(0);p.enableAudioControls=!!((I=S.playerConfig)==null?0:(V=I.inlinePlaybackConfig)==null?0:V.showAudioControls);S.trackingParams=p.getInlinePlaybackTrackingParams();
if(!p.inlinePlayer)return J.return(0);W={};if(D=_.b((O=p.videoPreviewData)==null?void 0:O.inlinePlaybackEndpoint,_.E$))W.watch_endpoint=D;if(p.videoPreviewData){var K,G=(K=_.b(p.videoPreviewData.inlinePlaybackEndpoint,_.E$))==null?void 0:K.startTimeSeconds;G!==void 0&&(S.playerConfig||(S.playerConfig={}),S.playerConfig.playbackStartConfig||(S.playerConfig.playbackStartConfig={}),S.playerConfig.playbackStartConfig.startPosition||(S.playerConfig.playbackStartConfig.startPosition={}),S.playerConfig.playbackStartConfig.startSeconds=
G,S.playerConfig.playbackStartConfig.startPosition.streamTimeMillis=String(G*1E3))}p.inlinePlayer.loadVideoWithPlayerResponse(S,W);if(p.JSC$16881_playerPromise)return J.jumpTo(2);p.JSC$16881_playerPromise=p.inlinePlayer.getPlayerPromise();return _.k(J,p.JSC$16881_playerPromise,3)}J.nextAddress!=2&&(z=J.yieldResult,z.setInlinePreview(!0),z.setSizeStyle(!1,!0),p.ytPlayerListenerBehavior.listenToPlayerEvents(z,p.JSC$16881_playerEvents),p.player=z,_.cv(p.hostElement,"player-api-ready"));((Q=p.opts)==
null?0:Q.showPlayerControls)&&p.videoPreviewData&&p.player&&(p.playerControlsData={playerResponse:S,isInlinePlayback:!0,thumbnailOverlays:p.videoPreviewData.thumbnailOverlays,playerApi:p.player},p.playerControlsOptions={useFinePointerTargetSizes:!0,insetProgressBar:!p.unroundCornersForPlayback,additionalButton:p.getAdditionalButtonType(p.videoPreviewData.thumbnailOverlays)});return J.return(2)})};
_.M.revealPreviewUi=function(){var S=this;this.playbackIntentTriggered&&_.sAw(this,function(){S.hasThumbnailPositionChangedSinceTriggered()||(S.updateActiveState(!0),S.noAnimation=!1)})};
_.M.hasThumbnailPositionChangedSinceTriggered=function(){var S=this.positionData,p=this.getThumbnailPositionData();return(S==null?void 0:S.initialTopPosition)!==(p==null?void 0:p.initialTopPosition)||(S==null?void 0:S.initialHorizontalPosition)!==(p==null?void 0:p.initialHorizontalPosition)};
_.M.getThumbnailPositionData=function(){var S,p;if((p=this.opts)==null||!p.thumbnail)return null;p=this.opts.thumbnail;var U=((S=this.opts)==null?0:S.cropPlayerToFillThumbnailHorizontally)?!1:!0;var Y=p.getBoundingClientRect();S=Y.width;p=Y.height;var L=Y.top+window.scrollY;Y=Y.left+window.scrollX;var I=U?Math.ceil(S):S;U=U?Math.ceil(p):p;var V=S/I;S={initialScale:V,initialTopPosition:L-12*V,finalTopPosition:L-12-(U-p)/2,initialHorizontalPosition:Y-(12+(I-S)/2),finalHorizontalPosition:Y-12-(I-S)/
2,videoPreviewWidth:I,videoPreviewHeight:U};return S};
_.M.updateActiveState=function(S){this.active=S;this.ytdReduxBehavior.dispatch(_.S4({type:"SET_INLINE_PREVIEW_IS_ACTIVE",payload:S}))};
_.M.stopPlayer=function(S){S=S.resetWatchEndpointStartTime===void 0?!1:S.resetWatchEndpointStartTime;this.player&&(this.active&&(this.playing&&this.allowUnmuting()&&(this.hasBeenUnmuted=!this.player.isMuted()),this.updateWatchEndpointStartTime(S)),this.player.setPlaybackRate(1),this.player.stopVideo());this.playing=!1;this.videoPreviewFetchRequest=null;this.resetPreventProgressSaveTimer();this.endStartTimeUpdater();this.scheduledPreviewEndJobId&&(_.PA.cancelJob(this.scheduledPreviewEndJobId),this.scheduledPreviewEndJobId=
null)};
_.M.deactivate=function(S){S=S===void 0?{}:S;S=S.resetWatchEndpointStartTime===void 0?!1:S.resetWatchEndpointStartTime;pl&&(pl.disconnect(),pl=null);this.stopPlayer({resetWatchEndpointStartTime:S});this.updateActiveState(!1);this.playbackIntentTriggered=!1;this.videoPreviewDataIndex=0;this.opts=null;this.hidden=!0;this.playerControlsData=null};
_.M.isValidThumbnailOverlayButton=function(S,p){S=S.thumbnailOverlayButtonRenderer;var U;return!!S&&!!S.tooltip&&!((U=S.icon)==null||!U.iconType)&&p.includes(S.icon.iconType)};
_.M.isValidThumbnailOverlayButtonViewModel=function(S,p){var U;S=_.b((U=S.thumbnailOverlayButtonViewModel)==null?void 0:U.overlayButton,_.K6);return!!S&&!!S.title&&!!S.iconName&&p.includes(S.iconName)};
_.M.getAdditionalButtonType=function(S){var p=this;if(_.y("web_imp_fastforward_button"))return{button:1};if(_.y("web_imp_miniplayer_button"))return{button:2};if(_.y("web_imp_playback_speed_button"))return{button:3};var U=["BOX_STACK_3"],Y=(S||[]).filter(function(I){return p.isValidThumbnailOverlayButton(I,U)}).map(function(I){return I.thumbnailOverlayButtonRenderer});
if(Y.length)return{button:4,thumbnailOverlayButtonRenderers:Y};var L=["BOX_STACK_3"];S=(S||[]).filter(function(I){return p.isValidThumbnailOverlayButtonViewModel(I,L)}).map(function(I){return _.b(I.thumbnailOverlayButtonViewModel.overlayButton,_.K6)});
if(S.length)return{button:4,thumbnailOverlayButtonViewModels:S}};
_.M.allowCaptions=function(){var S;return!((S=this.opts)==null?0:S.forceCaptionsOff)};
_.M.allowUnmuting=function(){var S;return this.enableAudioControls&&!((S=this.opts)==null?0:S.forceMutedVolume)};
_.M.beginStartTimeUpdater=function(){var S=this;this.endStartTimeUpdater();this.watchEndpointStartTimeUpdaterInterval=_.dE(function(){S.updateWatchEndpointStartTime()},1E3)};
_.M.endStartTimeUpdater=function(){this.watchEndpointStartTimeUpdaterInterval!==null&&window.clearInterval(this.watchEndpointStartTimeUpdaterInterval);this.watchEndpointStartTimeUpdaterInterval=null};
_.M.resetPreventProgressSaveTimer=function(){this.JSC$16881_preventProgressSaveTimer!==null&&(_.PA.cancelJob(this.JSC$16881_preventProgressSaveTimer),this.JSC$16881_preventProgressSaveTimer=null,this.hasMultipleVideoPreviews()||this.beginStartTimeUpdater())};
_.M.updateWatchEndpointStartTime=function(S){var p=this.videoPreviewData;if(this.player&&p!=null&&p.inlinePlaybackEndpoint&&!this.JSC$16881_preventProgressSaveTimer){S=S?0:Math.floor(this.player.getCurrentTime());var U=_.b(p.navigationEndpoint,_.E$);U&&(U.startTimeSeconds=S);if(p=_.b(p.inlinePlaybackEndpoint,_.E$))p.startTimeSeconds=S}};
_.M.isShortcutClick=function(S){return!!S&&(S.ctrlKey||S.shiftKey||S.metaKey)};
_.M.getInlinePreviewPlayer=function(){return this.inlinePlayer};
_.M.openInMiniplayer=function(){var S=this,p,U;return _.T(function(Y){if(Y.nextAddress==1){U=(p=S.videoPreviewData)==null?void 0:p.navigationEndpoint;if(!U)return Y.return();_.Vy().lockupActivation=!0;return _.k(Y,_.U3c(_.tW().resolve(_.eC),U),2)}_.Vy().userActivation=!0;_.OV(Y)})};
_.M.navigateToWatch=function(S){var p,U=(p=this.videoPreviewData)==null?void 0:p.navigationEndpoint;if(U){if(this.isAdsVideo)this.ytSparklesClickLocationBehavior.handleClick(U,S,!0);else{if(_.y("web_thumbnail_to_watch_transition")){var Y,L;(Y=this.opts)==null||(L=Y.onNavigateToWatchCallback)==null||L.call(Y)}_.cv(this.hostElement,"yt-navigate",{endpoint:U})}this.deactivate()}};
_.M.getInlinePlaybackVideoId=function(){var S,p;return(p=_.b((S=this.videoPreviewData)==null?void 0:S.inlinePlaybackEndpoint,_.E$))==null?void 0:p.videoId};
_.M.getInlinePlaybackTrackingParams=function(){var S,p;return(S=this.videoPreviewData)==null?void 0:(p=S.inlinePlaybackEndpoint)==null?void 0:p.clickTrackingParams};
_.M.hasMultipleVideoPreviews=function(){var S;return!!(((S=this.opts)==null?0:S.videoPreviewData)&&Array.isArray(this.opts.videoPreviewData))};
_.M.startPlaybackForNextVideo=function(){var S;(S=this.opts)!=null&&S.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())};
_.$u.Object.defineProperties(vN.prototype,{thumbnailData:{configurable:!0,enumerable:!0,get:function(){return this.videoPreviewData?{thumbnail:this.videoPreviewData.thumbnail}:null}},
hidePlayerControls:{configurable:!0,enumerable:!0,get:function(){var S;return!((S=this.opts)==null?0:S.showPlayerControls)||!this.active}},
isAdsVideo:{configurable:!0,enumerable:!0,get:function(){var S;return!((S=this.opts)==null||!S.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 S;if(Array.isArray((S=this.opts)==null?void 0:S.videoPreviewData)){var p;return(p=this.opts)==null?void 0:p.videoPreviewData[this.videoPreviewDataIndex]}var U;return(U=this.opts)==null?void 0:U.videoPreviewData}}});
vN.prototype.onIsAdsVideoChange=vN.prototype.onIsAdsVideoChange;vN.prototype.onInlinePreviewIsEnabledChange=vN.prototype.onInlinePreviewIsEnabledChange;vN.prototype.optsChanged=vN.prototype.optsChanged;vN.prototype.onMouseLeave=vN.prototype.onMouseLeave;vN.JSC$16880_CLICK_LOCATION_ID_MAP=new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL","media-container"]]);vN.JSC$16880_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"}];
_.x([_.F(_.Aj.YtActionHandlerBehavior),_.E("design:type",Object)],vN.prototype,"actionHandlerBehavior",void 0);_.x([_.F(_.qH.YtRendererstamperBehavior),_.E("design:type",Object)],vN.prototype,"ytRendererstamperBehavior",void 0);_.x([_.F(_.Cj.YtPlayerListenerBehavior),_.E("design:type",_.xt)],vN.prototype,"ytPlayerListenerBehavior",void 0);_.x([_.F(_.eL.YtComponentBehavior),_.E("design:type",Object)],vN.prototype,"componentBehavior",void 0);
_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],vN.prototype,"ytRendererBehavior",void 0);_.x([_.F(_.Xh),_.E("design:type",Object)],vN.prototype,"ytdReduxBehavior",void 0);_.x([_.F(_.BL.YtSparklesClickLocationBehavior),_.E("design:type",Object)],vN.prototype,"ytSparklesClickLocationBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],vN.prototype,"opts",void 0);_.x([_.g(),_.E("design:type",Object)],vN.prototype,"playerControlsData",void 0);
_.x([_.g(),_.E("design:type",Object)],vN.prototype,"playerControlsAppApi",void 0);_.x([_.g(),_.E("design:type",Object)],vN.prototype,"playerControlsOptions",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],vN.prototype,"noAnimation",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],vN.prototype,"hidden",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],vN.prototype,"active",void 0);
_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],vN.prototype,"playing",void 0);_.x([_.g({selector:_.z2d}),_.E("design:type",Boolean)],vN.prototype,"inlinePreviewIsEnabled",void 0);_.x([_.g(),_.E("design:type",String)],vN.prototype,"pagePath",void 0);_.x([_.g({selector:_.PJ}),_.E("design:type",Boolean)],vN.prototype,"isWatchPage",void 0);_.x([_.e("videoPreviewData"),_.E("design:type",Object),_.E("design:paramtypes",[])],vN.prototype,"thumbnailData",null);
_.x([_.e("opts","active"),_.g({reflectToAttribute:!0}),_.E("design:type",Boolean),_.E("design:paramtypes",[])],vN.prototype,"hidePlayerControls",null);_.x([_.e("opts"),_.E("design:type",Boolean),_.E("design:paramtypes",[])],vN.prototype,"isAdsVideo",null);_.x([_.e("opts"),_.g({reflectToAttribute:!0}),_.E("design:type",Boolean),_.E("design:paramtypes",[])],vN.prototype,"roundedCornersSmall",null);
_.x([_.e("opts"),_.g({reflectToAttribute:!0}),_.E("design:type",Boolean),_.E("design:paramtypes",[])],vN.prototype,"roundedCornersMedium",null);_.x([_.e("opts"),_.g({reflectToAttribute:!0}),_.E("design:type",Boolean),_.E("design:paramtypes",[])],vN.prototype,"roundedCornersLarge",null);_.x([_.e("opts"),_.g({reflectToAttribute:!0}),_.E("design:type",Boolean),_.E("design:paramtypes",[])],vN.prototype,"unroundCornersForPlayback",null);
_.x([_.e("opts","videoPreviewDataIndex"),_.E("design:type",Object),_.E("design:paramtypes",[])],vN.prototype,"videoPreviewData",null);_.x([_.g(),_.E("design:type",Object)],vN.prototype,"videoPreviewDataIndex",void 0);_.x([_.O2("#inline-player"),_.E("design:type",Object)],vN.prototype,"inlinePlayer",void 0);_.x([_.Vd("mouseleave"),_.E("design:type",Function),_.E("design:paramtypes",[MouseEvent]),_.E("design:returntype")],vN.prototype,"onMouseLeave",null);
_.x([_.z4("opts"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],vN.prototype,"optsChanged",null);_.x([_.z4("inlinePreviewIsEnabled"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],vN.prototype,"onInlinePreviewIsEnabledChange",null);_.x([_.T4("isAdsVideo"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],vN.prototype,"onIsAdsVideoChange",null);
vN=_.x([_.f({is:"ytd-video-preview",disableElementRegistration:!0})],vN);
_.C(vN,"ytd-video-preview",function(){if(Cod!==void 0)return Cod;var S=document.createElement("template");_.h(S,'\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');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);return Cod=S},{mode:2});
}catch(e){_._DumpException(e)}
try{
var $yo,iiJ,NFX;$yo=function(S){return _.y("kevlar_watch_cinematics_invisible")||S.fullscreen&&_.y("kevlar_watch_cinematics_invisible_in_fullscreen")||S.theater&&!S.fullscreen&&_.y("kevlar_watch_cinematics_invisible_in_theater")};
iiJ=function(){var S=document.createElement("canvas"),p=S.getContext("2d");if(!p)throw Error("Wl");_.R3(S,{position:"absolute",width:"100%",height:"100%"});return{element:S,context:p}};
NFX=function(){return!("filter"in CanvasRenderingContext2D.prototype)||_.y("kevlar_watch_cinematics_css_blur")};
_.BFE=function(S,p,U){return Math.abs(S-p)<=(U||1E-6)};
_.qJ5=function(S,p){return S==p?!0:S&&p?S.width==p.width&&S.height==p.height:!1};_.AMJ=new _.v("notificationActionRenderer");var trT=function(S){var p=this;this.element=new Image;this.failed=this.loaded=!1;this.resolver=new _.MI;this.element.addEventListener("load",function(){p.loaded=!0;p.resolver.resolve(p.element)});
this.element.addEventListener("error",function(){p.failed=!0});
this.element.src=S};var cMs=function(S,p){this.image=S;this.frame=p};
cMs.prototype.drawToCanvas=function(S,p){var U=this.frame.width/this.frame.columns,Y=this.frame.height/this.frame.rows,L=p.offsetX,I=p.offsetY;$yo(p)?(S.fillStyle=p.fullscreen?"#000":"#0f0f0f",S.fillRect(L,I,(p==null?void 0:p.width)||U,(p==null?void 0:p.height)||Y)):S.drawImage(this.image,this.frame.column*U,this.frame.row*Y,U,Y,L,I,(p==null?void 0:p.width)||U,(p==null?void 0:p.height)||Y)};
var SqA=function(S){this.color=S};
SqA.prototype.drawToCanvas=function(S,p){var U=p.offsetX,Y=p.offsetY,L=p.width,I=p.height;S.fillStyle=$yo(p)?p.fullscreen?"#000":"#0f0f0f":this.color;S.fillRect(U,Y,L,I)};var SE=function(S,p){_.qS.call(this);this.playerApi=p;this.mosaics=new Map;this.colorStore=new Map;this.pendingStoryboardIndex=this.currentStoryboardIndex=this.colorStoreTimeInterval=NaN;this.currentStoryboardSize=new _.OF(NaN,NaN);this.lastUpdateTime=NaN;this.paused=!1;this.addEventListeners();pfT(this,S);Uqd(this);this.update()};
_.r(SE,_.qS);SE.prototype.addEventListeners=function(){var S=this,p=function(){S.update()},U=function(L){S.paused||(L.type==="newdata"&&(S.mosaics.clear(),YqL(S),pw(S)),Uqd(S),S.update())},Y=function(){S.onPlayerStateChange()};
this.playerApi.addEventListener("onVideoProgress",p);this.playerApi.addEventListener("onVideoDataChange",U);this.playerApi.addEventListener("onStateChange",Y);this.addOnDisposeCallback(function(){S.playerApi.removeEventListener("onVideoProgress",p);S.playerApi.removeEventListener("onVideoDataChange",U);S.playerApi.removeEventListener("onStateChange",Y)})};
var pfT=function(S,p){S.cinematicContainerRenderer!==p&&(S.cinematicContainerRenderer=p,YqL(S),pw(S),S.colorStoreUpdateJobId=_.PA.addLowPriorityJob(function(){var U;if((U=S.cinematicContainerRenderer.colorStore)!=null&&U.sampledColors){U=Infinity;for(var Y=_.d(S.cinematicContainerRenderer.colorStore.sampledColors),L=Y.next();!L.done;L=Y.next()){L=L.value;var I=Number(L.key);I!==0&&I<U&&(U=I);I=_.ev(L.value);S.colorStore.set(L.key,I)}S.colorStoreTimeInterval=U}}))},YqL=function(S){S.colorStoreUpdateJobId&&
(_.PA.cancelJob(S.colorStoreUpdateJobId),S.colorStoreUpdateJobId=void 0);
S.colorStore.clear();S.currentStoryboardColor=void 0},Lyd=function(S,p){var U;
return(U=S.getStoryboardFrame(p))==null?void 0:U.url};
SE.prototype.onPlayerStateChange=function(){this.update()};
SE.prototype.isAdPlaying=function(){return this.playerApi.getPresentingPlayerType()===2};
var Uqd=function(S){var p=S.getStoryboardFrame(0);p&&(p=new _.OF(p.width/p.columns,p.height/p.rows),_.qJ5(S.currentStoryboardSize,p)||(S.currentStoryboardSize=p,S.publish("STORYBOARD_SIZE_CHANGED",S.currentStoryboardSize)))},M2o=function(S,p){S.currentStoryboardIndex=p;
S.pendingStoryboardIndex=NaN;p=S.getStoryboardFrame(S.currentStoryboardIndex);S.currentStoryboard=new cMs(S.mosaics.get(p.url).element,p);S.publish("STORYBOARD_CHANGED",S.currentStoryboard);S.lastUpdateTime=(0,_.AI)()};
SE.prototype.isShorts=function(){return this.cinematicContainerRenderer.config.pageType==="CINEMATIC_CONTAINER_PAGE_TYPE_SHORTS"};
var pw=function(S){S.currentStoryboardIndex=NaN;S.pendingStoryboardIndex=NaN;S.currentStoryboard&&(S.currentStoryboard=void 0,S.publish("STORYBOARD_CHANGED",void 0));S.lastUpdateTime=NaN};
SE.prototype.update=function(){if(!this.paused&&this.playerApi.getNumberOfStoryboardLevels()>0)if(this.isAdPlaying()||this.isShorts()&&this.playerApi.getProgressState().duration<15)pw(this);else{var S=this.playerApi.getPlayerState(1);if(S===-1||S===5||S===0)pw(this);else if(isNaN(this.lastUpdateTime)||!((0,_.AI)()<this.lastUpdateTime+this.cinematicContainerRenderer.config.animationConfig.minImageUpdateIntervalMs))if(S=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){S=""+Math.round(S*1E3/this.colorStoreTimeInterval)*this.colorStoreTimeInterval;var p=this.colorStore.get(S);p?p!==this.currentStoryboardColor&&(this.currentStoryboardColor=this.currentStoryboardColor=p,this.currentStoryboard=new SqA(p),this.publish("STORYBOARD_CHANGED",this.currentStoryboard),
this.lastUpdateTime=(0,_.AI)()):(_.eP(new _.y7("Could not find color for timestamp: "+S,this.cinematicContainerRenderer)),pw(this))}else pw(this);else Iyt(this,S)}};
var Iyt=function(S,p){var U=S.getStoryboardFrameIndex(p);if(U!==S.currentStoryboardIndex&&U!==S.pendingStoryboardIndex){p=Lyd(S,U);var Y=S.mosaics.get(p);Y?Y.loaded&&M2o(S,U):(S.pendingStoryboardIndex=U,U=new trT(p),S.mosaics.set(p,U),U.resolver.promise.then(function(){if(!S.isDisposed()&&!S.paused&&!isNaN(S.pendingStoryboardIndex)){var L=Lyd(S,S.pendingStoryboardIndex);if(L){var I;(I=S.mosaics.get(L))!=null&&I.loaded&&M2o(S,S.pendingStoryboardIndex)}else pw(S)}}))}};
SE.prototype.getStoryboardFrameIndex=function(S){var p=this.isShorts()&&this.playerApi.getNumberOfStoryboardLevels()>1?1:0;return this.playerApi.getStoryboardFrameIndex(S,p)};
SE.prototype.getStoryboardFrame=function(S){var p=this.isShorts()&&this.playerApi.getNumberOfStoryboardLevels()>1?1:0,U,Y;return((Y=(U=this.playerApi).getStoryboardFrame)==null?void 0:Y.call(U,S,p))||null};
SE.prototype.pause=function(){this.lastUpdateTime=NaN;this.paused=!0};var YH=function(S,p,U,Y){Y=Y===void 0?!1:Y;_.hY.call(this);this.cinematicContainerRenderer=p;this.playerApi=U;this.theater=this.fullscreen=!1;var L;this.ambientLightThemeEnabled=!Y&&!!(p==null?0:(L=p.config)==null?0:L.enableInLightTheme);this.ambientFullscreenEnabled=Y&&_.y("web_cinematic_fullscreen");this.container=document.createElement("div");S.appendChild(this.container);var I;if(_.y("web_cinematic_theater_mode")||_.y("web_cinematic_fullscreen")||(p==null?0:(I=p.config)==null?0:I.enableInLightTheme))this.ambientV2Container=
document.createElement("div"),this.container.appendChild(this.ambientV2Container);dqE(this);S=this.ambientV2Container||this.container;this.backCanvas=iiJ();this.frontCanvas=iiJ();S.appendChild(this.backCanvas.element);S.appendChild(this.frontCanvas.element);this.storyboardManager=new SE(p,this.playerApi);_.Hm(this,this.storyboardManager);this.addEventListeners();V2J(this)?TUX(this,100+U_(this)*3*2,100+U_(this)*3*2):WyL(this);OVJ(this,this.storyboardManager.currentStoryboard)};
_.r(YH,_.hY);var dqE=function(S){S.ambientV2Container?kZL(S):(_.R3(S.container,{position:"absolute",top:"0",left:"0",right:"0",bottom:"0","pointer-events":"none",transform:"scale("+HVJ(S)+", "+DqT(S)+")"}),NFX()&&_.R3(S.container,"filter","blur("+_.pA("cinematic_watch_css_filter_blur_strength",40)+"px)"))},kZL=function(S){if(S.ambientV2Container){var p=S.playerApi.getVideoAspectRatio();
_.R3(S.container,{"aspect-ratio":""+p,"max-width":"100%",height:"100%",margin:"0 auto",display:"flex","flex-direction":"column","justify-content":"center","pointer-events":"none"});_.R3(S.ambientV2Container,{"aspect-ratio":""+p,position:"relative","max-height":"100%","max-width":"100%","pointer-events":"none",transform:"scale("+HVJ(S)+", "+DqT(S)+")"});NFX()&&_.R3(S.ambientV2Container,"filter","blur("+_.pA("cinematic_watch_css_filter_blur_strength",40)+"px)")}};
YH.prototype.setFullscreen=function(S,p){this.fullscreen=S;this.theater=!!p;dqE(this);if(this.ambientFullscreenEnabled||this.ambientLightThemeEnabled)this.backCanvas.context.clearRect(0,0,this.backCanvas.element.width,this.backCanvas.element.height),S=this.storyboardManager.currentStoryboard,zQo(this),S&&QNT(this,S)};
YH.prototype.addEventListeners=function(){var S=this,p=this.storyboardManager.subscribe("STORYBOARD_CHANGED",function(L){OVJ(S,L)}),U=this.storyboardManager.subscribe("STORYBOARD_SIZE_CHANGED",function(){WyL(S)});
this.addOnDisposeCallback(function(){S.storyboardManager.unsubscribeByKey(p);S.storyboardManager.unsubscribeByKey(U)});
if(this.ambientV2Container){var Y=function(){kZL(S)};
this.playerApi.addEventListener("onVideoDataChange",Y);this.addOnDisposeCallback(function(){S.playerApi.removeEventListener("onVideoDataChange",Y)})}};
var WyL=function(S){if(!V2J(S)){var p=S.storyboardManager.currentStoryboardSize;isNaN(p.width)||isNaN(p.height)||TUX(S,Number(p.width)+U_(S)*3*2,Number(p.height)+U_(S)*3*2)}},TUX=function(S,p,U){S.backCanvas.element.width=p;
S.backCanvas.element.height=U;S.frontCanvas.element.width=p;S.frontCanvas.element.height=U},V2J=function(S){return S.cinematicContainerRenderer.presentationStyle==="CINEMATIC_CONTAINER_PRESENTATION_STYLE_DYNAMIC_SINGLE_COLOR"},OVJ=function(S,p,U){U=U===void 0?!1:U;
var Y=S.frontCanvas.element.getAnimations()[0];Y?(Y.pause(),S.backCanvas.context.globalAlpha=Number(getComputedStyle(S.frontCanvas.element).opacity),S.frontCanvas.element.style.opacity="0",Y.finish()):S.backCanvas.context.globalAlpha=1;S.backCanvas.context.drawImage(S.frontCanvas.element,0,0,S.backCanvas.element.width,S.backCanvas.element.height);zQo(S);p&&QNT(S,p);p=p?S.cinematicContainerRenderer.config.animationConfig.crossfadeDurationMs:_.pA("cinematic_watch_fade_out_duration",500);Y=_.pA("cinematic_watch_transition_frame_rate")/
1E3;var L={};Y&&(L={easing:"steps("+Math.round(p*Y)+")"});(U===void 0?0:U)||S.frontCanvas.element.animate([{opacity:0},{opacity:1}],Object.assign({},{duration:p,iterations:1},L));S.frontCanvas.element.style.opacity="1"},zQo=function(S){var p=S.ambientLightThemeEnabled,U=S.ambientLightThemeEnabled||S.ambientFullscreenEnabled&&!_.y("web_cinematic_fullscreen_v2");
S.frontCanvas.context.fillStyle=S.theater&&p||S.fullscreen&&U?"#000":"#0f0f0f";NFX()||(S.frontCanvas.context.filter="blur(0)");S.frontCanvas.context.fillRect(0,0,S.frontCanvas.element.width,S.frontCanvas.element.height)},QNT=function(S,p){NFX()||(S.frontCanvas.context.filter="blur("+U_(S)+"px)");
S.frontCanvas.context.globalAlpha=_.pA("cinematic_watch_effect_opacity",.4);var U={offsetX:U_(S)*3,offsetY:U_(S)*3,theater:S.theater,fullscreen:S.fullscreen};V2J(S)&&(U.width=100,U.height=100);p.drawToCanvas(S.frontCanvas.context,U);S.frontCanvas.context.globalAlpha=1},U_=function(S){var p;
return(p=S.cinematicContainerRenderer.config.blurStrength)!=null?p:5},HVJ=function(S){var p,U;
if((S.fullscreen||S.theater)&&((p=S.cinematicContainerRenderer.config)==null?0:(U=p.watchFullscreenConfig)==null?0:U.colorSourceWidthMultiplier))return S.cinematicContainerRenderer.config.watchFullscreenConfig.colorSourceWidthMultiplier;var Y;return(Y=S.cinematicContainerRenderer.config.colorSourceWidthMultiplier)!=null?Y:S.cinematicContainerRenderer.config.colorSourceSizeMultiplier},DqT=function(S){var p,U;
if((S.fullscreen||S.theater)&&((p=S.cinematicContainerRenderer.config)==null?0:(U=p.watchFullscreenConfig)==null?0:U.colorSourceHeightMultiplier))return S.cinematicContainerRenderer.config.watchFullscreenConfig.colorSourceHeightMultiplier;var Y;return(Y=S.cinematicContainerRenderer.config.colorSourceHeightMultiplier)!=null?Y:S.cinematicContainerRenderer.config.colorSourceSizeMultiplier};
YH.prototype.disposeInternal=function(){_.hY.prototype.disposeInternal.call(this);this.container.remove()};
YH.prototype.clear=function(){OVJ(this,void 0,!0)};
YH.prototype.pause=function(){this.storyboardManager.pause()};var nIX;nIX=_.WD(function(){var S,p,U=!((p=(S=document.createElement("canvas")).getContext)==null||!p.call(S,"2d")),Y;S=!((Y=CSS)==null||!Y.supports("filter: blur(0)"));Y=!!Element.prototype.animate&&!!Element.prototype.getAnimations;p=_.y("web_cinematic_fullscreen")||_.y("web_cinematic_theater_mode")||_.y("web_cinematic_light_theme")||!1;var L;return U&&S&&Y&&(!p||!((L=CSS)==null||!L.supports("aspect-ratio: 1 / 1")))});
_.Lw=function(S,p){_.qS.call(this);this.container=S;this.playerApi=p;this.fullscreen=this.theater=this.settingEnabled=this.isDarkModeEnabled=this.wasAllowed=!1;this.prefersReducedMotionQuery=JbJ(this);this.update()};
_.r(_.Lw,_.qS);_.ybt=function(S){var p=document.documentElement.hasAttribute("dark");S.isDarkModeEnabled=p;S.update()};
_.Kyi=function(S,p){S.settingEnabled=p;S.update()};
_.Lw.prototype.setFullscreen=function(S,p){this.fullscreen=S;this.theater=!!p;this.update()};
_.bVY=function(S,p){S.cinematicContainerRenderer=p;S.cinematicContainerRenderer&&(S.cinematicsVe=_.bZ(S.isShorts()?227858:159022),_.pa(_.HX(),S.cinematicsVe),S.loggingClientData={watchCinematicContainerData:{presentationStyle:S.cinematicContainerRenderer.presentationStyle}});S.update()};
_.Lw.prototype.isShorts=function(){var S,p;return((S=this.cinematicContainerRenderer)==null?void 0:(p=S.config)==null?void 0:p.pageType)==="CINEMATIC_CONTAINER_PAGE_TYPE_SHORTS"};
_.Lw.prototype.isAllowed=function(){var S;if(S=nIX()){var p,U,Y;S=((U=this.cinematicContainerRenderer)==null?void 0:U.presentationStyle)==="CINEMATIC_CONTAINER_PRESENTATION_STYLE_DYNAMIC_SINGLE_COLOR"&&!((Y=this.cinematicContainerRenderer)==null||!Y.colorStore)||((p=this.cinematicContainerRenderer)==null?void 0:p.presentationStyle)==="CINEMATIC_CONTAINER_PRESENTATION_STYLE_DYNAMIC_BLURRED"}if(S)if(_.y("web_cinematics_pausing")){var L,I;S=this.isDarkModeEnabled||!!((L=this.cinematicContainerRenderer)==
null?0:(I=L.config)==null?0:I.enableInLightTheme)}else{var V,W;L=!!((V=this.cinematicContainerRenderer)==null?0:(W=V.config)==null?0:W.enableInLightTheme)&&(_.g7("INNERTUBE_CLIENT_NAME")==="MWEB"||this.fullscreen||this.theater);S=this.isDarkModeEnabled||L}if(V=S){var O,D;V=!((D=(O=this.prefersReducedMotionQuery)==null?void 0:O.matches)!=null&&D)}return V};
_.jNL=function(S){(S=S.currentCinematicEffect)!=null&&(S=S.storyboardManager,S.paused=!1,Uqd(S),S.update())};
_.Lw.prototype.isEnabled=function(){return this.isAllowed()&&this.settingEnabled};
var JbJ=function(S){if(!_.y("web_watch_cinematics_preferred_reduced_motion_default_disabled")&&window.matchMedia){var p=window.matchMedia("(prefers-reduced-motion: reduce)"),U=function(){S.update()};
p.addListener(U);S.addOnDisposeCallback(function(){p.removeListener(U)});
return p}};
_.Lw.prototype.update=function(){this.isAllowed()!==this.wasAllowed&&(this.wasAllowed=this.isAllowed(),this.publish("CINEMATICS_ALLOWED_CHANGED",this.wasAllowed));if(this.isEnabled()){var S=this.cinematicContainerRenderer;this.currentCinematicEffect||(this.currentCinematicEffect=new YH(this.container,S,this.playerApi,this.isDarkModeEnabled),_.Hm(this,this.currentCinematicEffect));this.currentCinematicEffect.setFullscreen(this.fullscreen,this.theater);var p=this.currentCinematicEffect;p.cinematicContainerRenderer!==
S&&(p.cinematicContainerRenderer=S,pfT(p.storyboardManager,S),dqE(p));S=_.D9();_.zI(0,194,!0);S.save();S=_.X$();this.cinematicsVe&&S&&_.fp(S,[this.cinematicsVe],this.loggingClientData)}else this.currentCinematicEffect&&(S=_.X$(),this.cinematicsVe&&S&&_.Cp(S,[this.cinematicsVe],!1,this.loggingClientData),_.t9(this.currentCinematicEffect),this.currentCinematicEffect=void 0)};
_.$u.Object.defineProperties(_.Lw.prototype,{TEST_ONLY:{configurable:!0,enumerable:!0,get:function(){}}});
}catch(e){_._DumpException(e)}
try{
var biX;var j$J;_.jp({_template:function(){if(j$J!==void 0)return j$J;var S=document.createElement("template");_.h(S,'\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');S.content.insertBefore(_.t().content.cloneNode(!0),S.content.firstChild);var p=
S.content,U=p.insertBefore;biX===void 0&&(biX=document.createElement("template"));var Y=biX;U.call(p,Y.content.cloneNode(!0),S.content.firstChild);return j$J=S},
is:"tp-yt-iron-pages",behaviors:[_.ji,_.as],properties:{activateEvent:{type:String,value:null}},observers:["_selectedPageChanged(selected)"],_selectedPageChanged:function(){this.async(this.notifyResize)}});
}catch(e){_._DumpException(e)}
try{
var QLd;_.n4E=function(){if(_.y("kevlar_home_skeleton")&&!QLd){var S=document.querySelector("#home-page-skeleton");S&&(_.Fg("hgcr"),_.yz(S),QLd=!0)}};
QLd=!1;_.jI=new _.v("cinematicContainerRenderer");
}catch(e){_._DumpException(e)}
try{
var DLq,z1E,Qbt,n85,JVt,yVE,jb5,GoA,h1J,rVt,Kms,b5E,XsY,PDY;_.H5J=function(S,p,U){p=p===void 0?5:p;if(p!==0){var Y=typeof S==="function"?S():document.querySelector(S);Y?(U==null?0:U.enableSmartFocus)?_.cyk(Y):Y.focus():setTimeout(function(){_.H5J(S,p-1,U)},500)}};
DLq=function(S){return _.Ssk(_.ctk(S&16777215))<.5};
z1E=function(S,p,U){var Y=U.minimumRowsOfVideosBetweenSections===void 0?1:U.minimumRowsOfVideosBetweenSections;return S<(U.minimumRowsOfVideosAtStart===void 0?2:U.minimumRowsOfVideosAtStart)||p!==null&&S-p<=Y?!1:!0};
Qbt=function(S,p){var U=0,Y=0;S=_.d(S);for(var L=S.next();!L.done;L=S.next()){var I=L.value;if(I.richItemRenderer)I.richItemRenderer.rowIndex=Y,I.richItemRenderer.colIndex=U++,U===p&&(U=0,Y++);else if(I.richGroupRenderer&&I.richGroupRenderer.numColumns!==void 0)I.richGroupRenderer.rowIndex=Y,I.richGroupRenderer.colIndex=U,U+=I.richGroupRenderer.numColumns,U===p&&(U=0,Y++);else if(I.richSectionRenderer){var V=L=void 0;if(I=_.b((L=I)==null?void 0:(V=L.richSectionRenderer)==null?void 0:V.content,_.gCq))I.rowIndex=
Y++}}};
n85=function(S,p){var U=p.contentElement;p=p.rendererToTagNameMap;if(U&&p&&p.size!==0){for(var Y=new Map,L=_.d(U.children),I=L.next();!I.done;I=L.next()){I=I.value;var V=I.tagName.toLowerCase(),W=Y.get(V);W||(W=[],Y.set(V,W));W.push(I)}if(Y.size!==0)for(L=Math.min(S.length,U.children.length),I=new Map,V=0;V<L;V++){W=Object.keys(S[V])[0];W=p.get(W);if(!W)break;var O=I.get(W);O===void 0&&(O=0,I.set(W,O));var D=Y.get(W);if(!D||O>=D.length)break;I.set(W,O+1);W=D[O];O=U.children[V];O!==W&&(_.ibw=!0,_.Nqu.set(W,
!0),U.insertBefore(W,O),_.Nqu.delete(W),_.ibw=!1)}}};
JVt=function(S,p,U,Y,L,I,V){Y=Y===void 0?{}:Y;if(!S||!S.length)return[];S=S.slice();var W=[],O=[];L=null;for(var D=0,z=function(l){O.sort(function(m,A){return A.skippedOnRow-m.skippedOnRow});
for(var a,N=(a=O.shift())==null?void 0:a.content;N;)!N.richSectionRenderer&&l||W.push(N),a=void 0,N=(a=O.shift())==null?void 0:a.content},Q=[];S.length>0||O.length>0;){for(var J=[],K=p;K>0;){var G=void 0,X=void 0,Z=(X=O[0]&&O[0].skippedOnRow<D?(G=O.shift())==null?void 0:G.content:void 0)!=null?X:S.shift();
if(!Z)break;if(Z.richItemRenderer)G=Z.richItemRenderer.targetId,X=void 0,G&&((X=V)==null?0:X.has(G))&&Q.push(V.get(G)),J.push(Z),K--;else if(Z.richGroupRenderer&&Z.richGroupRenderer.numColumns!==void 0)Z.richGroupRenderer.numColumns<=K?(J.push(Z),K-=Z.richGroupRenderer.numColumns):K===p&&Z.richGroupRenderer.numColumns>p?(J.push({richGroupRenderer:Object.assign({},Z.richGroupRenderer,{numColumns:p})}),K=0):O.push({content:Z,skippedOnRow:D});else if(Z.richSectionRenderer)if(z1E(D,L,Y)&&K===p){W.push(Z);
L=D;D++;continue}else O.push({content:Z,skippedOnRow:D});else if(Z.continuationItemRenderer){z(!0);W.push(Z);K=0;break}if(K===0)W.push.apply(W,_.jo(J));else if(!U&&S.length===0){z(!1);W.push.apply(W,_.jo(J));K=0;break}}D++;Q=_.d(Q);for(J=Q.next();!J.done;J=Q.next())W.push(J.value),D++;Q=[]}Qbt(W,p);I&&n85(W,I);return W};
yVE=function(S){return S.talkToRecs};
jb5=function(S,p){if(p){var U=_.vJ().getState().entities.flowStateEntity,Y=Kms(S),L=[p];Y&&Y!==p&&L.push(Y);var I=!0,V;if(U&&S.flowStateEntityKey&&((V=U[S.flowStateEntityKey])==null?void 0:V.primaryButtonDisabled)!==void 0){var W;I=!((W=U[S.flowStateEntityKey])==null||!W.primaryButtonDisabled)}b5E(S,Y!=null?Y:p,L,I)}};
GoA=function(S){return _.Wt(_.vJ(),function(p){return p.entities.flowStateEntity},function(p,U){if(S.flowStateEntityKey){var Y,L=p==null?void 0:(Y=p[S.flowStateEntityKey])==null?void 0:Y.currentStepId,I;
U=U==null?void 0:(I=U[S.flowStateEntityKey])==null?void 0:I.currentStepId;I=_.vJ().getState().talkToRecs;if(L&&L!==U){var V;p=(p==null?void 0:(V=p[S.flowStateEntityKey])==null?void 0:V.stepIdStack)||Object.keys(I.stepStates);V=!rVt(I==null?void 0:I.stepStates[L]);b5E(S,L,p,V)}}})};
h1J=function(S){return _.Wt(_.vJ(),yVE,function(p){var U=Kms(S);if(U){var Y=Object.keys(p.stepStates);p=!rVt(p==null?void 0:p.stepStates[U]);b5E(S,U,Y,p)}})};
rVt=function(S){var p=Object.keys((S==null?void 0:S.selectionStates)||{}).reduce(function(I,V){return I||(S==null?void 0:S.selectionStates[V].isSelected)},!1),U,Y,L=!!(S==null?0:(U=S.userQuery)==null?0:(Y=U.userQuery)==null?0:Y.trim());
return p||L};
Kms=function(S){if(S.flowStateEntityKey){var p,U,Y=(p=_.vJ().getState().entities.flowStateEntity)==null?void 0:(U=p[S.flowStateEntityKey])==null?void 0:U.currentStepId;if(Y)return Y}};
b5E=function(S,p,U,Y){_.vJ().dispatch(_.WG("flowStateEntity",S.flowStateEntityKey,{currentStepId:p,stepIdStack:U,key:S.flowStateEntityKey,primaryButtonDisabled:Y}))};
_.R1P=function(S,p){return _.I4(S.entities,"youchatPendingResponseEntity",p)};
_.Fmo=function(S){return function(p){_.m_(_.WG("youchatPendingResponseEntity",S,{entityKey:S,isPendingResponse:p}))}};
XsY=function(S){S==null||S.addEventListener("DOMLoaded",function(){S.goToAndPlay(S.totalFrames-48,!0)})};var Z5T;_.jp({_template:function(){if(Z5T!==void 0)return Z5T;var S=document.createElement("template");_.h(S,'\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');S.content.insertBefore(_.t().content.cloneNode(!0),S.content.firstChild);
var p=S.content,U=p.insertBefore;PDY===void 0&&(PDY=document.createElement("template"));var Y=PDY;U.call(p,Y.content.cloneNode(!0),S.content.firstChild);return Z5T=S},
is:"tp-yt-paper-material",properties:{elevation:{type:Number,reflectToAttribute:!0,value:1},animated:{type:Boolean,reflectToAttribute:!0,value:!1}}});var sbi=new _.v("talkToRecsFlowRenderer");var e1T=new _.v("flowRootRenderer");var g8X=new _.v("learningJourneyQuizViewModel");var uoP=new _.v("chipsShelfViewModel");var wsd=new _.v("responsiveContainerConfiguration");var l_P=new _.v("horizontalShelfViewModel");_.a_L=new _.v("engagementPanelSectionListRenderer");var f_J=new _.v("conversationResourceViewModel");var CDi=function(){this.horizontal=!1},xLE=function(S,p){S.horizontal=p};
CDi.prototype.position=function(S,p,U,Y){Y=Y===void 0?1:Y;S=this.delta(S)*Y+p;Y=Math.max(p,U);return S>=Math.min(p,U)&&S<=Y?S:U};
CDi.prototype.axis=function(S){S=this.direction(S);return S==="up"||S==="down"?"Y":"X"};var Vu=function(S,p,U){p=p===void 0?_.zs():p;this.target=S;this.manager=p;this.touchAction=U;this.events=[];this.attached=!1;this.eventMap={};this.onSwipeDown=function(){};
this.onSwipeUp=function(){};
this.onPanStart=function(){};
this.onPanMove=function(){};
this.onPanEnd=function(){}};
Vu.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(_.jo(this.events)));for(var S=_.d(this.events),p=S.next();!p.done;p=S.next())this.listen(p.value)}};
Vu.prototype.detach=function(){if(this.attached){this.attached=!1;this.manager.unregisterTouchEvents.apply(this.manager,[this.target].concat(_.jo(this.events)));for(var S=_.d(this.events),p=S.next();!p.done;p=S.next())this.unlisten(p.value)}};
Vu.prototype.listen=function(S){this.eventMap[S]&&this.target.addEventListener(S,this.eventMap[S])};
Vu.prototype.unlisten=function(S){this.eventMap[S]&&this.target.removeEventListener(S,this.eventMap[S])};var Td=function(){CDi.apply(this,arguments)};
_.r(Td,CDi);Td.prototype.direction=function(S){var p=S.detail;S=p.deltaY;p=p.deltaX;return S&&!this.horizontal?S>0?"down":"up":p&&this.horizontal?p>0?"right":"left":"none"};
Td.prototype.distance=function(S){return Math.abs(this.delta(S))};
Td.prototype.delta=function(S){var p=this.direction(S),U=S.detail;S=U.deltaX;U=U.deltaY;return p==="up"||p==="down"?U||0:S||0};
Td.prototype.velocity=function(S){var p=this.direction(S),U=S.detail;S=U.velocityX;U=U.velocityY;return Math.abs(p==="up"||p==="down"?U||0:S||0)};_.Wo=function(S,p,U,Y,L,I){L=L===void 0?new Td:L;I=I===void 0?_.zs():I;Vu.call(this,p,I,Y);var V=this;this.element=S;this.target=p;this.config=U;this.input=L;this.manager=I;this.events=["panstart","panmove","panend"];this.onPanStart=function(){V.config.draggingClass&&V.element.classList.add(V.config.draggingClass);V.config.startAction&&V.config.startAction()};
this.onPanMove=function(W){var O=E8q(V,W);if(O){V.move(W,O);O.fade&&V.fade(W,O);var D=V.input.direction(W);O.moveAction&&O.moveAction(mL5(V,W,O),D)}};
this.onPanEnd=function(W){var O,D,z,Q,J,K;return _.T(function(G){if(G.nextAddress==1){V.animationRequestId&&cancelAnimationFrame(V.animationRequestId);V.animationRequestId=void 0;O=E8q(V,W);if(!O)return G.return();D=O;z=D.triggerAction;Q=D.fade;J=D.disableFinish;K=D.translateBack;var X=V.input.velocity(W),Z=V.input.distance(W),l=V.threshold(O);return X>.3&&Z>10||Z>l?J?G.jumpTo(6):Q?_.k(G,o8J(V,W),6):_.k(G,v8P(V,W,O),6):K?_.k(G,V.translateBack(W),3):G.jumpTo(3)}G.nextAddress!=3&&z&&z();V.config.draggingClass&&
V.element.classList.remove(V.config.draggingClass);V.reset();_.OV(G)})};
S=Object.keys(U.triggers);this.directions=new Set(S);xLE(this.input,this.directions.has("right")||this.directions.has("left"))};
_.r(_.Wo,Vu);_.Wo.prototype.reset=function(){this.element.style.transform="";this.element.style.opacity="";this.config.resetAction&&this.config.resetAction()};
var E8q=function(S,p){p=S.input.direction(p);return S.config.triggers[p]};
_.Wo.prototype.move=function(S,p){var U=this;this.animationRequestId||(this.animationRequestId=requestAnimationFrame(function(){var Y=U.input.axis(S),L=U.input.position(S,U.config.startPosition,p.endPosition,p.moveRatio||1);U.element.style.transform="translate"+Y+"("+L+"px)";U.animationRequestId=void 0}))};
var mL5=function(S,p,U){var Y=U.moveRatio||1;U=Math.abs(S.config.startPosition-U.endPosition);return Math.min(S.input.distance(p)*Y,U)/U};
_.Wo.prototype.fade=function(S,p){var U=p.endOpacity;S=mL5(this,S,p);S>0&&(this.element.style.opacity=""+(((U||0)-1)*S+1))};
_.Wo.prototype.threshold=function(S){return S.threshold?S.threshold:Math.abs(S.endPosition-this.config.startPosition)/3};
var v8P=function(S,p,U){var Y,L,I,V,W,O,D;return _.T(function(z){if(z.nextAddress==1)return Y=S.input.delta(p)+S.config.startPosition,L=S.input.axis(p),I=U,V=I.endPosition,W=I.transitionEndPosition,D=(O=W)!=null?O:V,_.k(z,S.element.animate([{transform:"translate"+L+"("+Y+"px)"},{transform:"translate"+L+"("+D+"px)"}],{duration:400,easing:"cubic-bezier(.05, 0, 0, 1)"}).finished,2);S.element.style.transform="translate"+L+"("+D+"px)";_.OV(z)})};
_.Wo.prototype.translateBack=function(S){var p=this,U,Y;return _.T(function(L){if(L.nextAddress==1){if(!p.element.style.transform)return L.return();U=p.input.axis(S);Y=p.config.startPosition;return _.k(L,p.element.animate([{transform:p.element.style.transform},{transform:"translate"+U+"("+Y+"px)"}],{duration:400,easing:"cubic-bezier(.05, 0, 0, 1)"}).finished,2)}p.element.style.transform="translate"+U+"("+Y+"px)";_.OV(L)})};
var o8J=function(S,p){var U,Y,L,I;return _.T(function(V){if(V.nextAddress==1)return U=S.input.delta(p)+S.config.startPosition,Y=S.input.axis(p),L=U+70,I=S.element.style.opacity===""?1:S.element.style.opacity,_.k(V,S.element.animate([{transform:"translate"+Y+"("+U+"px)",opacity:I},{transform:"translate"+Y+"("+L+"px)",opacity:0}],{duration:400,easing:"cubic-bezier(.05, 0, 0, 1)"}).finished,2);S.element.style.transform="translate"+Y+"("+L+"px)";S.element.style.opacity="0";_.OV(V)})};var O5=function(){var S=_.HT.apply(this,arguments)||this;S._noAccessors=!0;S.scrollRate=3;S.autoScrollAnimationStart=0;S.autoScrollPaused=!1;S.autoScrollRafId=0;return S};
_.r(O5,_.HT);_.M=O5.prototype;_.M.created=function(){var S=this;this.boundAutoScrollHandler=function(p){S.autoScroll(p)}};
_.M.detached=function(){this.hostElement.removeEventListener("mouseout",_.d9(this,this.startAutoScroll));this.hostElement.removeEventListener("click",_.d9(this,this.endAutoScroll));this.hostElement.removeEventListener("mouseover",_.d9(this,this.endAutoScroll));this.endAutoScroll&&this.endAutoScroll()};
_.M.autoScrollEnabledChanged=function(){this.autoScrollEnabled?(this.hostElement.addEventListener("mouseout",_.d9(this,this.startAutoScroll)),this.hostElement.addEventListener("click",_.d9(this,this.endAutoScroll)),this.hostElement.addEventListener("mouseover",_.d9(this,this.endAutoScroll)),this.startAutoScroll()):(this.hostElement.removeEventListener("mouseout",_.d9(this,this.startAutoScroll)),this.hostElement.removeEventListener("click",_.d9(this,this.endAutoScroll)),this.hostElement.removeEventListener("mouseover",
_.d9(this,this.endAutoScroll)),this.endAutoScroll())};
_.M.autoScroll=function(S){this.autoScrollAnimationStart||(this.autoScrollAnimationStart=S);var p;if(p=!this.autoScrollPaused&&this.scrollTarget)p=this.scrollTarget,p=p.scrollHeight-p.scrollTop!==p.clientHeight;p&&(p=1E3/this.scrollRate,S-=this.autoScrollAnimationStart,S>p&&(this.scrollTarget.scrollTop+=Math.ceil(S/p),this.autoScrollAnimationStart=0),this.startAutoScroll())};
_.M.startAutoScroll=function(){this.autoScrollPaused=!1;this.autoScrollRafId=window.requestAnimationFrame(this.boundAutoScrollHandler)};
_.M.endAutoScroll=function(){this.autoScrollPaused=!0;window.cancelAnimationFrame(this.autoScrollRafId)};
O5.prototype.autoScrollEnabledChanged=O5.prototype.autoScrollEnabledChanged;_.x([_.g(),_.E("design:type",Object)],O5.prototype,"scrollRate",void 0);_.x([_.g(),_.E("design:type",Object)],O5.prototype,"scrollTarget",void 0);_.x([_.g(),_.E("design:type",Boolean)],O5.prototype,"autoScrollEnabled",void 0);_.x([_.T4("autoScrollEnabled"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],O5.prototype,"autoScrollEnabledChanged",null);O5=_.x([_.Dl()],O5);_.$LT=[O5.prototype];var i5n;var kb=function(){var S=_.w.apply(this,arguments)||this;S.buttonUpdate=_.y("web_button_rework");S.dismissButtonOverrides=_.y("web_button_rework")?{iconPosition:"icon-only",style:"overlay-dark",type:"tonal",size:"M",state:"active"}:void 0;S.forceDarkTheme=!1;S.forceLightTheme=!1;S.dynamicTextHeight=94;S.hasOverflowButton=!1;S.isInfeedModernization=!1;return S};
_.r(kb,_.w);_.M=kb.prototype;_.M.computeUrlImg=function(S){if(S)return _.tS(S.thumbnails)};
_.M.getLogoHeight=function(S){return this.logoWithPadding(S)?"31":"24"};
_.M.getLogoClassName=function(S){return this.logoWithPadding(S)?"ytd-banner-promo-renderer-logo-with-padding":"ytd-banner-promo-renderer-logo"};
_.M.logoWithPadding=function(S){var p,U;return(S=(p=S.thumbnails)==null?void 0:(U=p[0])==null?void 0:U.height)&&S%31===0?!0:!1};
_.M.sendImpressionEndpoints=function(S){S.impressionEndpoints&&_.Yd(this.hostElement,S.impressionEndpoints)};
_.M.observeBasicPalette=function(){var S,p,U=(S=this.data)==null?void 0:(p=S.colorData)==null?void 0:p.basicColorPaletteData;U?_.Gw(this.hostElement,U):_.Gw(this.hostElement,{})};
_.M.observeDataChanged=function(){var S;this.dynamicTextHeight=((S=this.data)==null?0:S.supplementalText)?74:94;var p;this.hasSupplementalText=!((p=this.data)==null||!p.supplementalText);if(_.y("web_button_rework")){var U,Y,L,I;S=(U=this.data)==null?void 0:(Y=U.actionButton)==null?void 0:(L=Y.buttonRenderer)==null?void 0:(I=L.colorData)==null?void 0:I.basicColorPaletteData;var V,W,O;if(!((V=this.data)==null?0:(W=V.actionButton)==null?0:(O=W.buttonRenderer)==null?0:O.style)&&S){this.computeIsInfeedModernization(this.data)||
(S.borderColor=S.foregroundTitleColor);var D,z;this.set("data.actionButton.buttonRenderer",_.h9.unsafeClone((D=this.data)==null?void 0:(z=D.actionButton)==null?void 0:z.buttonRenderer))}}};
_.M.observeDataForCounterfactual=function(){if(_.y("kevlar_banner_cf_extra_logging")){var S;((S=this.data)==null?0:S.isVisible)||this.sendImpressionEndpoints(this.data)}};
_.M.computeSupplementalStyle=function(){var S;if((S=this.data)!=null&&S.supplementalText){var p,U,Y;if((p=this.data)==null?0:(U=p.colorData)==null?0:(Y=U.basicColorPaletteData)==null?0:Y.foregroundActivatedColor)return S=_.s1(this.data.colorData.basicColorPaletteData.foregroundActivatedColor),"--yt-endpoint-color:"+S+"; --yt-endpoint-hover-color:"+S+"; --yt-endpoint-visited-color:"+S+"; --yt-formatted-string-bold-font-weight:700;"}};
_.M.computeForcedDarkTheme=function(){var S,p,U,Y=(S=this.data)==null?void 0:(p=S.actionButton)==null?void 0:(U=p.buttonRenderer)==null?void 0:U.style,L,I,V;S=DLq(((L=this.data)==null?void 0:(I=L.colorData)==null?void 0:(V=I.basicColorPaletteData)==null?void 0:V.backgroundColor)||0);return Y&&S};
_.M.computeForcedLightTheme=function(){var S,p,U,Y=(S=this.data)==null?void 0:(p=S.actionButton)==null?void 0:(U=p.buttonRenderer)==null?void 0:U.style,L,I,V;S=!DLq(((L=this.data)==null?void 0:(I=L.colorData)==null?void 0:(V=I.basicColorPaletteData)==null?void 0:V.backgroundColor)||0);return Y&&S};
_.M.computeHasOverflowButton=function(S){return!!S.overflowButton};
_.M.computeHasTitle=function(S){return!!S.title};
_.M.computeTitleMaxFontSize=function(S){return this.computeHasOverflowButton(S)?28:64};
_.M.onDismissClick=function(){this.hostElement.classList.add("dismissed")};
_.M.computeIsInfeedModernization=function(){var S,p,U,Y,L=(S=this.data)==null?void 0:(p=S.actionButton)==null?void 0:(U=p.buttonRenderer)==null?void 0:(Y=U.colorData)==null?void 0:Y.basicColorPaletteData;return(L==null?void 0:L.backgroundColor)===452984831||(L==null?void 0:L.backgroundColor)===218103808};
kb.prototype.observeDataForCounterfactual=kb.prototype.observeDataForCounterfactual;kb.prototype.observeDataChanged=kb.prototype.observeDataChanged;kb.prototype.observeBasicPalette=kb.prototype.observeBasicPalette;_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],kb.prototype,"ytRendererBehavior",void 0);_.x([_.F(_.Zh),_.E("design:type",Object)],kb.prototype,"ytdDismissibleItemBehavior",void 0);
_.x([_.F(_.uc.YtdGuideStateAwareBehavior),_.E("design:type",Object)],kb.prototype,"ytdGuideStateAwareBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],kb.prototype,"data",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],kb.prototype,"buttonUpdate",void 0);_.x([_.g({reflectToAttribute:!0,value:!1}),_.E("design:type",Boolean)],kb.prototype,"hasSupplementalText",void 0);_.x([_.g(),_.E("design:type",Object)],kb.prototype,"dismissButtonOverrides",void 0);
_.x([_.g({reflectToAttribute:!0,computed:"computeHasTitle(data)"}),_.E("design:type",Boolean)],kb.prototype,"hasTitle",void 0);_.x([_.g({reflectToAttribute:!0,computed:"computeForcedDarkTheme(data)"}),_.E("design:type",Object)],kb.prototype,"forceDarkTheme",void 0);_.x([_.g({reflectToAttribute:!0,computed:"computeForcedLightTheme(data)"}),_.E("design:type",Object)],kb.prototype,"forceLightTheme",void 0);_.x([_.g(),_.E("design:type",Object)],kb.prototype,"dynamicTextHeight",void 0);
_.x([_.g({reflectToAttribute:!0,computed:"computeHasOverflowButton(data)"}),_.E("design:type",Object)],kb.prototype,"hasOverflowButton",void 0);_.x([_.g({reflectToAttribute:!0,computed:"computeIsInfeedModernization(data)"}),_.E("design:type",Object)],kb.prototype,"isInfeedModernization",void 0);_.x([_.T4("data.colorData.basicColorPaletteData"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],kb.prototype,"observeBasicPalette",null);
_.x([_.T4("data"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],kb.prototype,"observeDataChanged",null);_.x([_.T4("data.isVisible"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],kb.prototype,"observeDataForCounterfactual",null);kb=_.x([_.f({is:"ytd-banner-promo-renderer",disableElementRegistration:!0})],kb);
_.C(kb,"ytd-banner-promo-renderer",function(){if(i5n!==void 0)return i5n;var S=document.createElement("template");_.h(S,'\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');
S.content.insertBefore(_.t().content.cloneNode(!0),S.content.firstChild);return i5n=S},{mode:1});var N4n;var B4X;var qyL;var Ho=function(){return _.w.apply(this,arguments)||this};
_.r(Ho,_.w);_.x([_.g(),_.E("design:type",Object)],Ho.prototype,"data",void 0);_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],Ho.prototype,"ytRendererBehavior",void 0);Ho=_.x([_.f({is:"ytd-hashtag-grid-tile-renderer",disableElementRegistration:!0})],Ho);
_.C(Ho,"ytd-hashtag-grid-tile-renderer",function(){if(qyL!==void 0)return qyL;var S=document.createElement("template");_.h(S,'\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');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);return qyL=S},{mode:1});var DU=function(){return _.w.apply(this,arguments)||this};
_.r(DU,_.w);DU.prototype.configureRendererStamper=function(){return{"data.tiles":{id:"tiles",mapping:{hashtagGridTileRenderer:"ytd-hashtag-grid-tile-renderer"}}}};
DU.prototype.updateRichGridTrendingHashtagsVisibility=function(){var S,p;if(((S=this.data)==null||!S.isExpanded)&&(p=this.data)!=null&&p.tiles){S=this.data.tiles.length;p=S>this.richGridItemsPerRow?this.richGridItemsPerRow+1:S;var U=Math.ceil(S/p);this.fullyVisibleRows=S%p===1&&U===2?1:Math.min(U,2);this.isShowMoreVisible=this.fullyVisibleRows<U}};
DU.prototype.onShowMoreClick=function(){this.isShowMoreVisible=!1;this.data&&(this.data.isExpanded=!0)};
DU.prototype.updateRichGridTrendingHashtagsVisibility=DU.prototype.updateRichGridTrendingHashtagsVisibility;_.x([_.g(),_.E("design:type",Object)],DU.prototype,"data",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Number)],DU.prototype,"fullyVisibleRows",void 0);_.x([_.g({reflectToAttribute:!0,value:!1}),_.E("design:type",Boolean)],DU.prototype,"isShowMoreVisible",void 0);_.x([_.g({selector:_.R4,value:0}),_.E("design:type",Number)],DU.prototype,"richGridItemsPerRow",void 0);
_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],DU.prototype,"ytRendererBehavior",void 0);_.x([_.F(_.qH.YtRendererstamperBehavior),_.E("design:type",Object)],DU.prototype,"ytRendererstamperBehavior",void 0);_.x([_.F(_.Xh),_.E("design:type",Object)],DU.prototype,"ytdReduxBehavior",void 0);_.x([_.T4("data","richGridItemsPerRow"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],DU.prototype,"updateRichGridTrendingHashtagsVisibility",null);
DU=_.x([_.f({is:"ytd-hashtag-grid-shelf-renderer",disableElementRegistration:!0})],DU);
_.C(DU,"ytd-hashtag-grid-shelf-renderer",function(){if(B4X!==void 0)return B4X;var S=document.createElement("template");_.h(S,'\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');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);return B4X=S},{mode:1});var AVq;var tZA;var zd=function(){var S=_.w.apply(this,arguments)||this;S.visibleVideos=[];S.hiddenVideos=[];S.modern=_.y("web_modern_buttons");S.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction","yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return S};
_.r(zd,_.w);_.M=zd.prototype;_.M.attached=function(){var S=!!document.documentElement.hasAttribute("dark");this.set("isDarkTheme",S);this.onDarkModeToggledAction(S)};
_.M.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"}}}};
_.M.dataChanged=function(){var S=this;this.requestElementsPerRow();var p,U;this.currentColorPalette=this.isDarkTheme?(p=this.data)==null?void 0:p.darkColorData:(U=this.data)==null?void 0:U.lightColorData;var Y;if((Y=this.currentColorPalette)==null?0:Y.accentColor)this.videoMetadataColor=this.currentColorPalette.accentColor;this.updateButtonPalette();this.setHasMovieRenderer();this.setVisibleVideos(this.hasMovieRenderer);_.oH(this,function(){S.updateVisibilityForHiddenVideos()});
this.checkExpanded(this.data)};
_.M.elementsPerRowChanged=function(){this.updateTitleSpec();this.setVisibleVideos(this.hasMovieRenderer);this.updateVisibilityForHiddenVideos();this.checkExpanded(this.data)};
_.M.slimItemsPerRowChanged=function(){this.setVisibleVideos(this.hasMovieRenderer);this.updateVisibilityForHiddenVideos();this.checkExpanded(this.data)};
_.M.computeIsFirstFeedItem=function(S){return S};
_.M.onDarkModeToggledAction=function(S){S!==this.isDarkTheme&&this.set("isDarkTheme",S);this.data&&(this.currentColorPalette=S?this.data.darkColorData:this.data.lightColorData,this.updateButtonPalette())};
_.M.getCurrentLogo=function(S,p){if(S)return p?S.darkLogoImage:S.lightLogoImage};
_.M.computeTitleStyle=function(S){var p;if((p=this.data)!=null&&p.title&&S&&S.textPrimary!==void 0)return"color:"+_.s1(S.textPrimary)+";"};
_.M.computeSubtitleStyle=function(S){var p;if((p=this.data)!=null&&p.subtitle&&S&&S.textSecondary!==void 0)return"color:"+_.s1(S.textSecondary)+";"};
_.M.computeDismissIconStyle=function(S){if(this.data&&this.data.dismissButton&&S&&S.textPrimary!==void 0)return"--yt-button-color:"+_.s1(S.textPrimary)+";"};
_.M.computeOverflowButtonStyle=function(S){if(this.data&&this.data.overflowButton&&S&&S.textPrimary!==void 0)return"--ytd-menu-renderer-button-color:"+_.s1(S.textPrimary)+";--yt-spec-icon-active-other:"+_.s1(S.textPrimary)+";"};
_.M.computeBackgroundStyle=function(S){if(S&&this.data){var p="";if(this.data.lightBackgroundImage&&this.data.darkBackgroundImage){var U=_.tS((this.isDarkTheme?this.data.darkBackgroundImage:this.data.lightBackgroundImage).thumbnails);U&&(p+='background-image:url("'+U+'");')}S.backgroundColor!==void 0&&(p+="background-color:"+_.ev(S.backgroundColor)+";");return p}};
_.M.computeButton=function(){var S,p=Object.assign({},_.b((S=this.data)==null?void 0:S.showMoreButton,_.XT));if(this.modern&&p){p.style="STYLE_MONO_OUTLINE";var U;if(S=(U=this.currentColorPalette)==null?void 0:U.textPrimary)p.colorData={basicColorPaletteData:{foregroundTitleColor:S,borderColor:S}}}return p};
_.M.shouldShowBottomButton=function(S,p){return!(S==null?0:S.header)&&!(S==null||!S.primaryButton)&&p<3};
_.M.checkExpanded=function(S){this.isExpanded=S&&S.content?this.hiddenVideos.length===0:!0};
_.M.onShowMoreTap=function(){this.data&&(this.isExpanded=!0,this.updateVisibilityForHiddenVideos())};
_.M.getLogoHeight=function(S){return this.logoWithPadding(S)?"26":"20"};
_.M.getLogoImageId=function(S){return this.logoWithPadding(S)?"logo-image-with-padding":"logo-image"};
_.M.computeHasSectionHeader=function(S){return!!S.header};
_.M.updateButtonPalette=function(){if(this.data)if(this.currentColorPalette){var S;if((S=this.data.primaryButton)==null?0:S.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 p;((p=this.data.dismissButton)==null?0:p.buttonRenderer)&&this.currentColorPalette.dismissButtonColorData&&(this.data.dismissButton.buttonRenderer.colorData={basicColorPaletteData:this.currentColorPalette.dismissButtonColorData})}else{var U,Y;((U=this.data)==null?0:(Y=U.primaryButton)==null?0:Y.buttonRenderer)&&this.set("primaryButton",this.data.primaryButton.buttonRenderer)}};
_.M.setVisibleVideos=function(S){if(this.data&&this.data.content)if(this.data.content.length){var p=this.data.content.length;this.data.header?S?(this.visibleVideos=this.data.content.slice(0,Math.min(p,this.slimItemsPerRow)),this.hiddenVideos=this.data.content.slice(Math.min(p,this.slimItemsPerRow),p)):(this.visibleVideos=this.data.content.slice(0,Math.min(p,this.elementsPerRow)),this.hiddenVideos=this.data.content.slice(Math.min(p,this.elementsPerRow),p)):this.elementsPerRow<3?(this.visibleVideos=
this.data.content.slice(0,Math.min(p,this.elementsPerRow)),this.hiddenVideos=this.data.content.slice(Math.min(p,this.elementsPerRow),p)):(this.visibleVideos=this.data.content.slice(0,Math.min(p,this.elementsPerRow-1)),this.hiddenVideos=this.data.content.slice(Math.min(p,this.elementsPerRow-1),p))}else this.visibleVideos=[],this.hiddenVideos=[]};
_.M.setHasMovieRenderer=function(){var S;if((S=this.data)!=null&&S.content){var p;this.hasMovieRenderer=!!_.b((p=this.data)==null?void 0:p.content[0],_.Toq)}else this.hasMovieRenderer=!1};
_.M.requestElementsPerRow=function(){_.cv(this.hostElement,"yt-request-elements-per-row")};
_.M.updateVisibilityForHiddenVideos=function(){if(this.data&&this.data.content){for(var S=_.d(this.hiddenMediaRenderers),p=S.next();!p.done;p=S.next())p.value.hidden=!this.isExpanded;this.isExpanded&&this.hiddenMediaRenderers[0]&&(S=_.tB(this.hiddenMediaRenderers[0]).querySelector("#video-title-link"))&&S.focus()}};
_.M.updateTitleSpec=function(){var S;(S=this.data)!=null&&S.titleLength&&(this.largeTitle=this.elementsPerRow===2&&this.data.titleLength>10?!0:!1)};
_.M.logoWithPadding=function(S){var p,U,Y;return(S=(p=this.getCurrentLogo(S,this.isDarkTheme))==null?void 0:(U=p.thumbnails)==null?void 0:(Y=U[0])==null?void 0:Y.height)&&S%31===0?!0:!1};
_.M.onUpdateElementsPerRowAction=function(S,p,U){S&&this.elementsPerRow!==S&&(this.elementsPerRow=S);U&&this.slimItemsPerRow!==U&&(this.slimItemsPerRow=U)};
zd.prototype.slimItemsPerRowChanged=zd.prototype.slimItemsPerRowChanged;zd.prototype.elementsPerRowChanged=zd.prototype.elementsPerRowChanged;zd.prototype.dataChanged=zd.prototype.dataChanged;_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],zd.prototype,"ytRendererBehavior",void 0);_.x([_.F(_.qH.YtRendererstamperBehavior),_.E("design:type",Object)],zd.prototype,"ytRendererstamperBehavior",void 0);_.x([_.F(_.Zh),_.E("design:type",Object)],zd.prototype,"ytdDismissibleItemBehavior",void 0);
_.x([_.F(_.Aj.YtActionHandlerBehavior),_.E("design:type",Object)],zd.prototype,"actionHandlerBehavior",void 0);_.x([_.F(_.Xh),_.E("design:type",Object)],zd.prototype,"ytdReduxBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],zd.prototype,"data",void 0);_.x([_.g(),_.E("design:type",Object)],zd.prototype,"currentColorPalette",void 0);_.x([_.g(),_.E("design:type",Array)],zd.prototype,"visibleVideos",void 0);_.x([_.g(),_.E("design:type",Array)],zd.prototype,"hiddenVideos",void 0);
_.x([_.g(),_.E("design:type",Object)],zd.prototype,"primaryButton",void 0);_.x([_.g({reflectToAttribute:!0,value:3}),_.E("design:type",Number)],zd.prototype,"elementsPerRow",void 0);_.x([_.g({reflectToAttribute:!0,value:!1}),_.E("design:type",Boolean)],zd.prototype,"isDarkTheme",void 0);_.x([_.g({reflectToAttribute:!0,value:!1}),_.E("design:type",Boolean)],zd.prototype,"isExpanded",void 0);_.x([_.g({reflectToAttribute:!0,value:!1}),_.E("design:type",Boolean)],zd.prototype,"largeTitle",void 0);
_.x([_.g({reflectToAttribute:!0,value:!1}),_.E("design:type",Boolean)],zd.prototype,"hasMovieRenderer",void 0);_.x([_.g(),_.E("design:type",Number)],zd.prototype,"slimItemsPerRow",void 0);_.x([_.g(),_.E("design:type",Boolean)],zd.prototype,"showLightVideoMetadata",void 0);_.x([_.g(),_.E("design:type",Boolean)],zd.prototype,"showDarkVideoMetadata",void 0);_.x([_.g(),_.E("design:type",Number)],zd.prototype,"videoMetadataColor",void 0);
_.x([_.g({reflectToAttribute:!0,selector:_.hZ}),_.E("design:type",Boolean)],zd.prototype,"miniMode",void 0);_.x([_.g({reflectToAttribute:!0,computed:"computeIsFirstFeedItem(data.isFirstFeedItem)"}),_.E("design:type",Boolean)],zd.prototype,"isFirstFeedItem",void 0);_.x([_.g({reflectToAttribute:!0,computed:"computeHasSectionHeader(data)"}),_.E("design:type",Boolean)],zd.prototype,"hasSectionHeader",void 0);
_.x([_.g({reflectToAttribute:!0,value:!0}),_.E("design:type",Boolean)],zd.prototype,"roundedContainer",void 0);_.x([_.kk("#visible-video-container ytd-rich-grid-media"),_.E("design:type",Array)],zd.prototype,"visibleMediaRenderers",void 0);_.x([_.kk("#hidden-video-container ytd-rich-grid-media"),_.E("design:type",Array)],zd.prototype,"hiddenMediaRenderers",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],zd.prototype,"modern",void 0);
_.x([_.T4("data"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],zd.prototype,"dataChanged",null);_.x([_.T4("elementsPerRow"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],zd.prototype,"elementsPerRowChanged",null);_.x([_.T4("slimItemsPerRow"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],zd.prototype,"slimItemsPerRowChanged",null);
zd=_.x([_.f({is:"ytd-brand-video-shelf-renderer",disableElementRegistration:!0})],zd);
_.C(zd,"ytd-brand-video-shelf-renderer",function(){if(tZA!==void 0)return tZA;var S=document.createElement("template");_.h(S,'\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');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);return tZA=S},{mode:1});var cVi;var Qu=function(){var S=_.w.apply(this,arguments)||this;S.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction","yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return S};
_.r(Qu,_.w);_.M=Qu.prototype;_.M.attached=function(){var S=!!document.documentElement.hasAttribute("dark");this.set("isDarkTheme",S);this.onDarkModeToggledAction(S)};
_.M.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"}}}};
_.M.dataChanged=function(){this.requestElementsPerRow();var S,p;this.currentColorPalette=this.isDarkTheme?(S=this.data)==null?void 0:S.darkColorData:(p=this.data)==null?void 0:p.lightColorData;this.computeVideoMetadataColor(this.isDarkTheme);this.updateButtonPalette()};
_.M.elementsPerRowChanged=function(){this.updateTitleSpec()};
_.M.computeIsFirstFeedItem=function(S){return S};
_.M.onDarkModeToggledAction=function(S){S!==this.isDarkTheme&&this.set("isDarkTheme",S);this.data&&(this.currentColorPalette=S?this.data.darkColorData:this.data.lightColorData,this.computeVideoMetadataColor(S),this.updateButtonPalette())};
_.M.shouldShowThumbnailInMetadata=function(S){return S<=1};
_.M.computeVideoMetadataColor=function(){if(this.data){var S;if((S=this.currentColorPalette)==null?0:S.accentColor)this.videoMetadataColor=this.currentColorPalette.accentColor}};
_.M.computeTitleStyle=function(S){var p;if((p=this.data)!=null&&p.title&&S&&S.textPrimary!==void 0)return"color:"+_.s1(S.textPrimary)+";"};
_.M.computeSubtitleStyle=function(S){var p;if((p=this.data)!=null&&p.subtitle&&S&&S.textSecondary!==void 0)return"color:"+_.s1(S.textSecondary)+";"};
_.M.computeOverflowButtonStyle=function(S){var p;if(this.data&&this.data.overflowButton&&(S==null?0:(p=S.dismissButtonColorData)==null?0:p.foregroundTitleColor))return"--ytd-menu-renderer-button-color:"+_.s1(S.dismissButtonColorData.foregroundTitleColor)+";--yt-spec-icon-active-other:"+_.s1(S.dismissButtonColorData.foregroundTitleColor)+";"};
_.M.computeBackgroundStyle=function(S){if(S&&this.data){var p="";S.backgroundColor!==void 0&&(p+="background-color:"+_.ev(S.backgroundColor)+";");return p}};
_.M.computeHasOverflowButton=function(S){return!!S.overflowButton};
_.M.updateButtonPalette=function(){if(this.data){var S;if((S=this.data.primaryButton)==null?0:S.buttonRenderer){var p;if((p=this.currentColorPalette)==null?0:p.primaryButtonColorData)this.data.primaryButton.buttonRenderer.colorData={basicColorPaletteData:this.currentColorPalette.primaryButtonColorData},this.data.primaryButton.buttonRenderer.style=void 0;else{var U;((U=this.currentColorPalette)==null?0:U.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)})}}};
_.M.requestElementsPerRow=function(){_.cv(this.hostElement,"yt-request-elements-per-row")};
_.M.updateTitleSpec=function(){var S;(S=this.data)!=null&&S.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")};
_.M.onUpdateElementsPerRowAction=function(S){S&&this.elementsPerRow!==S&&(this.elementsPerRow=S)};
Qu.prototype.elementsPerRowChanged=Qu.prototype.elementsPerRowChanged;Qu.prototype.dataChanged=Qu.prototype.dataChanged;_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],Qu.prototype,"ytRendererBehavior",void 0);_.x([_.F(_.qH.YtRendererstamperBehavior),_.E("design:type",Object)],Qu.prototype,"ytRendererstamperBehavior",void 0);_.x([_.F(_.Zh),_.E("design:type",Object)],Qu.prototype,"ytdDismissibleItemBehavior",void 0);
_.x([_.F(_.Aj.YtActionHandlerBehavior),_.E("design:type",Object)],Qu.prototype,"actionHandlerBehavior",void 0);_.x([_.F(_.Xh),_.E("design:type",Object)],Qu.prototype,"ytdReduxBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],Qu.prototype,"data",void 0);_.x([_.g(),_.E("design:type",Object)],Qu.prototype,"currentColorPalette",void 0);_.x([_.g(),_.E("design:type",Object)],Qu.prototype,"primaryButton",void 0);
_.x([_.g({reflectToAttribute:!0,value:3}),_.E("design:type",Number)],Qu.prototype,"elementsPerRow",void 0);_.x([_.g({reflectToAttribute:!0,value:!1}),_.E("design:type",Boolean)],Qu.prototype,"isDarkTheme",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",String)],Qu.prototype,"titleSize",void 0);_.x([_.g(),_.E("design:type",Number)],Qu.prototype,"videoMetadataColor",void 0);_.x([_.g({reflectToAttribute:!0,selector:_.hZ}),_.E("design:type",Boolean)],Qu.prototype,"miniMode",void 0);
_.x([_.g({reflectToAttribute:!0,computed:"computeIsFirstFeedItem(data.isFirstFeedItem)"}),_.E("design:type",Boolean)],Qu.prototype,"isFirstFeedItem",void 0);_.x([_.g({reflectToAttribute:!0,value:!0}),_.E("design:type",Boolean)],Qu.prototype,"roundedContainer",void 0);_.x([_.g({reflectToAttribute:!0,computed:"computeHasOverflowButton(data)"}),_.E("design:type",Boolean)],Qu.prototype,"hasOverflowButton",void 0);
_.x([_.T4("data"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],Qu.prototype,"dataChanged",null);_.x([_.T4("elementsPerRow"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],Qu.prototype,"elementsPerRowChanged",null);Qu=_.x([_.f({is:"ytd-brand-video-singleton-renderer",disableElementRegistration:!0})],Qu);
_.C(Qu,"ytd-brand-video-singleton-renderer",function(){if(cVi!==void 0)return cVi;var S=document.createElement("template");_.h(S,'\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>');
S.content.insertBefore(_.t().content.cloneNode(!0),S.content.firstChild);return cVi=S},{mode:_.UW("kevlar_poly_si_batch_j070")?1:2});var SaA;var ppo=_.$k(function(S){var p=S.data;return _.H(_.of,{data:function(){return p().thumbnail},
alt:"",className:"profile-page-header-information-view-model-wiz__profile-page-header-thumbnail-image",targetHeight:function(){a:switch(p().variant){case "PROFILE_PAGE_HEADER_THUMBNAIL_VARIANT_VERTICAL":var U=108;break a;case "PROFILE_PAGE_HEADER_THUMBNAIL_VARIANT_FULL_BLEED_HORIZONTAL":U=88;break a;default:U=88}return U},
preserveHeight:!0,preserveWidth:!0,useWidth:!1,contentMode:function(){return p().thumbnail.contentMode||"CONTENT_MODE_SCALE_ASPECT_FIT"}})},"li"),YaX=_.$k(function(S){var p=S.metadataRow;
var U=S.delimiter;return _.H(_.KU,{each:function(){return p().textParts||[]},
keyBy:"INDEX"},function(Y,L){return _.H(_.U0,null,_.H(_.i6,{text:Y,noWrap:!0,userInput:!0}),_.H(UEt,{delimiter:U,max:function(){return p().textParts.length},
index:L}))})},"mi"),UEt=_.$k(function(S){var p=S.delimiter;
var U=S.max;var Y=S.index;return _.H(_.n,{cond:function(){return(p==null?void 0:p())&&U()-1>Y()},
then:function(){return _.H("span",null,p)}})},"ni"),Lbt=_.$k(function(S){var p=S.data;
S={};return _.H("yt-profile-page-header-information-view-model",{class:_.VD("profile-page-header-information-view-model-wiz",(S["profile-page-header-information-view-model-wiz--mobile"]=!1,S))},_.H(_.n,{cond:function(){return p().onTap},
then:function(){return _.H(_.pY,{className:"profile-page-header-information-view-model-wiz__profile-page-header-thumbnail",command:function(){return _.sW(p().onTap)}},_.H(_.yP,{data:function(){return p().thumbnail}},{profilePageHeaderThumbnailViewModel:ppo}))},
else:function(){return _.H("div",{class:"profile-page-header-information-view-model-wiz__profile-page-header-thumbnail"},_.H(_.yP,{data:function(){return p().thumbnail}},{profilePageHeaderThumbnailViewModel:ppo}))}}),_.H("div",{class:"profile-page-header-information-view-model-wiz__flex-container"},_.H(_.n,{cond:function(){return p().onTap},
then:function(){return _.H(_.yP,{data:function(){return p().title}},{profilePageHeaderTitleViewModel:function(U){var Y=U.data;
return _.H(_.pY,{className:"profile-page-header-information-view-model-wiz__profile-page-header-title",command:function(){return _.sW(Y().onTap)}},_.H(_.i6,{text:function(){return Y().title}}))}})},
else:function(){return _.H(_.yP,{data:function(){return p().title}},{profilePageHeaderTitleViewModel:function(U){var Y=U.data;
return _.H(_.i6,{text:function(){return Y().title},
className:"profile-page-header-information-view-model-wiz__profile-page-header-title"})}})}}),_.H(_.yP,{data:function(){return p().metadata}},{profilePageHeaderMetadataViewModel:function(U){var Y=U.data;
return _.H(_.n,{cond:function(){return Y().metadataRows},
then:function(L){return _.H("div",{class:"profile-page-header-information-view-model-wiz__profile-page-header-metadata"},_.H(_.KU,{each:L,keyBy:"INDEX"},function(I,V){return _.H(_.U0,null,_.H(YaX,{metadataRow:I,delimiter:" \u2022 "}),_.H(UEt,{delimiter:" \u2022 ",max:function(){return L().length},
index:V}))}))}})}})))},"oi");
Lbt.idomCompat=!0;_.qm(Lbt,"yt-profile-page-header-information-view-model",{props:{data:_.x2}});var nx=function(){return _.w.apply(this,arguments)||this};
_.r(nx,_.w);nx.prototype.configureRendererStamper=function(){return{"data.information":{id:"header",mapping:{profilePageHeaderInformationViewModel:"yt-profile-page-header-information-view-model"}}}};
_.x([_.F(_.qH.YtRendererstamperBehavior),_.E("design:type",Object)],nx.prototype,"ytRendererstamperBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],nx.prototype,"data",void 0);nx=_.x([_.f({is:"ytd-effect-pivot-header-view-model",disableElementRegistration:!0})],nx);
_.C(nx,"ytd-effect-pivot-header-view-model",function(){if(SaA!==void 0)return SaA;var S=document.createElement("template");_.h(S,'\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');S.content.insertBefore(_.t().content.cloneNode(!0),S.content.firstChild);return SaA=
S},{mode:1});var MgA;var Jv=function(){return _.w.apply(this,arguments)||this};
_.r(Jv,_.w);Jv.prototype.configureRendererStamper=function(){return{"data.headerInformation":{id:"header",mapping:{profilePageHeaderInformationViewModel:"yt-profile-page-header-information-view-model"}}}};
_.x([_.F(_.qH.YtRendererstamperBehavior),_.E("design:type",Object)],Jv.prototype,"ytRendererstamperBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],Jv.prototype,"data",void 0);Jv=_.x([_.f({is:"ytd-source-pivot-header-renderer",disableElementRegistration:!0})],Jv);
_.C(Jv,"ytd-source-pivot-header-renderer",function(){if(MgA!==void 0)return MgA;var S=document.createElement("template");_.h(S,'\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');S.content.insertBefore(_.t().content.cloneNode(!0),S.content.firstChild);return MgA=S},{mode:1});_.ITE=_.$k(function(S){var p=S.data;S=_.vH();_.C6(S,function(){return p().rendererContext});
var U=function(){var Y;return _.f6((Y=p())==null?void 0:Y.rendererContext)};
return _.H("content-list-item-view-model",{el:S,class:"ytContentListItemViewModelHost",role:function(){return U()?"listitem":void 0},
tabindex:function(){return U()?0:void 0}},_.H("div",{class:"ytContentListItemViewModelContentListItemWrapper"},_.H("div",{class:"ytContentListItemViewModelImageContainer"},_.H(_.n,{cond:function(){return p().image},
then:function(Y){return _.H(_.of,{data:Y,alt:"",targetWidth:72,targetHeight:72,preserveWidth:!0,preserveHeight:!0,className:"ytContentListItemViewModelimageClassName"})}}),_.H(_.yP,{data:function(){var Y;
return(Y=p())==null?void 0:Y.avatar}},{avatarViewModel:_.bS})),_.H("div",{class:"ytContentListItemViewModelTitleMetadataWrapper"},_.H("div",{class:"ytContentListItemViewModelTitle"},_.H(_.i6,{text:function(){return p().title}})),_.H("div",{class:"ytContentListItemViewModelMetadata"},_.H(_.yP,{data:function(){return p().metadata}},{contentMetadataViewModel:function(Y){return _.H(_.kkl,{data:Y.data,
layout:1})}})))),_.H("div",{class:"ytContentListItemViewModelActionButton"},_.H(_.yP,{data:function(){var Y;
return(Y=p())==null?void 0:Y.actionButton}},{buttonViewModel:_.PG,
toggleButtonViewModel:_.jS})))},"pi");_.qm(_.$k(function(S){var p={},U={},Y={},L={};return _.H("yt-card-view-model",{class:_.VD("ytCardViewModelHost",S.className,(p.ytCardViewModelOutline=function(){return S.data().cardStyle==="CARD_STYLE_OUTLINE"},p),(U.ytCardViewModelRaised=function(){return S.data().cardStyle==="CARD_STYLE_RAISED"||S.data().cardStyle==="CARD_STYLE_UNSPECIFIED"},U),(Y.ytCardViewModelTonal=function(){return S.data().cardStyle==="CARD_STYLE_TONAL"},Y),(L.ytCardViewModelInverted=function(){return S.data().cardStyle===
"CARD_STYLE_INVERSE"},L))},_.H(_.yP,{data:function(){return S.data().background}},{cinematicContainerViewModel:function(I){return _.H(_.ADP,{data:I.data})}}),_.H("div",{class:"ytCardViewModelContentWrapper"},_.H(_.yP,{data:function(){return S.data().content}},{contentListItemViewModel:function(I){return _.H(_.ITE,{data:I.data})}})),_.H(_.yP,{data:function(){return S.data().dismissAction}},{buttonViewModel:function(I){return _.H(_.PG,{data:I.data})}}))},"qi"),"yt-card-view-model",{props:{data:_.x2,
className:_.x2}});_.qm(_.$k(function(S){var p=function(){return _.b(S.data().flowRoot,e1T)};
_.FM(function(){var U=p(),Y=function(){},L=function(){};
if(U){var I,V,W=(V=_.b((I=U.steps)==null?void 0:I[0],_.qFY))==null?void 0:V.stepId;jb5(U,W||"");Y=GoA(U);L=h1J(U)}_.FG(function(){Y();Y=function(){};
L();L=function(){}})});
return _.H("ytd-talk-to-recs-flow-renderer",{class:"ytdTalkToRecsFlowRendererHost"},_.H(_.Qcj,{contentId:function(){return S.data().contentId}},function(){return _.H("div",{class:"ytdTalkToRecsFlowRendererFlowContent"},_.H(_.n,{cond:p,
then:function(U){return _.H(_.fgP,{data:U})}}))}))},"ri"),"ytd-talk-to-recs-flow-renderer",{props:{data:_.x2}});_.qm(_.$k(function(){return _.H("ytd-chips-shelf-with-video-shelf-ghost-card-view-model",{class:"ytdChipsShelfWithVideoShelfGhostCardViewModelHost"},_.H("div",{class:"ytdChipsShelfWithVideoShelfGhostCardViewModelTitle"}),_.H("div",{class:"ytdChipsShelfWithVideoShelfGhostCardViewModelChipsShelf"},_.H(_.rWo,null)),_.H(_.n3m,{data:{rows:1},isExploreHub:!0}))},"si"),"ytd-chips-shelf-with-video-shelf-ghost-card-view-model");_.qm(_.$k(function(S){var p=S.data;var U=S.standardUnitMinWidth;S=_.vH();var Y=_.d((0,_.biQ)(p)),L=Y.next().value,I=Y.next().value,V=function(){var O,D=(O=L())==null?void 0:O.contents;return D==null||D.length===0},W=function(){I(Object.assign({},L(),{contents:[]}))};
_.tU(S,{showOption:{calledOnce:!0,state:"visible"},visibilityCallback:function(){var O=_.b(p().chipsShelf,uoP);if(O!=null&&O!=null&&O.autoselectChipOnVisible){var D,z,Q=_.b(O==null?void 0:(D=O.contents)==null?void 0:D[(z=O.autoselectedChipIndex)!=null?z:0],_.eq);Q&&Q.tapCommand&&_.wx(Q.tapCommand)}}});
return _.H("ytd-chips-shelf-with-video-shelf-renderer",{class:"ytdChipsShelfWithVideoShelfRendererHost",el:S},_.H(_.Qcj,{contentId:function(){return p().contentId},
useLegacyShelfStyle:function(){return!0}},function(){return _.H("div",null,_.H("div",{class:"ytdChipsShelfWithVideoShelfRendererHeader"},_.H(_.yP,{data:function(){return p().header}},{sectionHeaderViewModel:function(O){return _.H(_.Yh,{data:O.data,
disableHorizontalPadding:!0})}})),_.H("div",{class:"ytdChipsShelfWithVideoShelfRendererChipsShelf"},_.H(_.yP,{data:function(){return p().chipsShelf}},{chipsShelfViewModel:function(O){return _.H(_.yDc,{data:O.data,
callback:W,enableSingleChipSelection:!0})}})),_.H("div",null,_.H(_.n,{cond:V,
then:function(){return _.H("div",{class:"ytdChipsShelfWithVideoShelfRendererGhostCards"},_.H(_.n3m,{data:{rows:1},isExploreHub:!0}))}}),_.H(_.yP,{data:function(){var O;
return(O=L())==null?void 0:O.contents}},{richShelfRenderer:function(O){return _.H(_.KGc,{data:O.data,
isInnerShelf:!0,standardUnitMinWidth:U})}})))}))},"ti"),"ytd-chips-shelf-with-video-shelf-renderer",{props:{data:_.x2,
standardUnitMinWidth:_.x2}});var yu=function(){return _.w.apply(this,arguments)||this};
_.r(yu,_.w);
yu.prototype.configureRendererStamper=function(){return{"data.content":{id:"content",mapping:{backgroundPromoRenderer:"ytd-background-promo-renderer",compactPromotedItemRenderer:"ytd-compact-promoted-item-renderer",counterfactualRenderer:"ytd-counterfactual-renderer",destinationShelfRenderer:{component:"ytd-destination-shelf-renderer",params:{isRichGrid:!0}},hashtagGridShelfRenderer:"ytd-hashtag-grid-shelf-renderer",inlineSurveyRenderer:"ytd-inline-survey-renderer",primetimePromoRenderer:"ytd-primetime-promo-renderer",richShelfRenderer:{component:"ytd-rich-shelf-renderer",
properties:{standardUnitMinWidth:"[[standardUnitMinWidth]]"}},sourcePivotHeaderRenderer:"ytd-source-pivot-header-renderer",effectPivotHeaderViewModel:"ytd-effect-pivot-header-view-model",showingResultsForRenderer:"yt-showing-results-for-renderer",statementBannerRenderer:"ytd-statement-banner-renderer",brandVideoShelfRenderer:"ytd-brand-video-shelf-renderer",brandVideoSingletonRenderer:"ytd-brand-video-singleton-renderer",richListHeaderRenderer:"ytd-rich-list-header-renderer",faqSectionRenderer:"yt-faq-section-renderer",
feedNudgeRenderer:"ytd-feed-nudge-renderer",shelfRenderer:"ytd-shelf-renderer",talkToRecsFlowRenderer:"ytd-talk-to-recs-flow-renderer",chipsShelfViewModel:"chips-shelf-view-model",cardViewModel:"yt-card-view-model",chipsShelfWithVideoShelfRenderer:{component:"ytd-chips-shelf-with-video-shelf-renderer",properties:{standardUnitMinWidth:"[[standardUnitMinWidth]]"}},carouselItemRenderer:{component:"ytd-carousel-item-renderer",params:{isCarouselInFeed:!0,disableGridStateAware:!0}},messageRenderer:"ytd-message-renderer",
alertBannerViewModel:{component:"yt-alert-banner-view-model",params:{isInRichGrid:!0}},chipsShelfWithVideoShelfGhostCardViewModel:"ytd-chips-shelf-with-video-shelf-ghost-card-view-model"},reuseComponents:!1}}};
yu.prototype.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"content"}};
_.x([_.F(_.Xh),_.E("design:type",Object)],yu.prototype,"ytdReduxBehavior",void 0);_.x([_.F(_.qH.YtRendererstamperBehavior),_.E("design:type",Object)],yu.prototype,"ytRendererstamperBehavior",void 0);_.x([_.F(_.wS),_.E("design:type",Object)],yu.prototype,"ytContinuationHandlerBehavior",void 0);_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],yu.prototype,"ytRendererBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],yu.prototype,"data",void 0);
_.x([_.g(),_.E("design:type",Number)],yu.prototype,"standardUnitMinWidth",void 0);yu=_.x([_.f({is:"ytd-rich-section-renderer",disableElementRegistration:!0})],yu);
_.C(yu,"ytd-rich-section-renderer",function(){if(AVq!==void 0)return AVq;var S=document.createElement("template");_.h(S,'\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');S.content.insertBefore(_.t().content.cloneNode(!0),S.content.firstChild);return AVq=S},{mode:_.UW("kevlar_poly_si_batch_j029")?
1:2});_.qm(_.H2i,"yt-profile-identity-info-view-model",{props:{data:_.x2,hideDivider:_.x2}});_.qm(_.Iij,"yt-page-header-view-model",{props:{data:_.x2,noPadding:_.x2,enableBanner:_.x2,cinematicContainerTopbarOffset:_.x2,allowCinematicContainerOverflow:_.x2,displayAsSidebar:_.x2,displayAsPanel:_.x2}});_.qm(_.$k(function(S){var p=S.data;var U=function(){var L;return(L=p().numColumns)!=null?L:2},Y=function(){return U()>1?3:2};
S={};return _.H("ytd-rich-grid-group",{class:_.VD("ytdRichGridGroupHost",(S.ytdRichGridGroupHostFirstColumn=function(){return p().colIndex===0},S)),
style:_.zw({"--ytd-rich-grid-group-num-columns":U,"--ytd-rich-grid-items-per-group":Y})},_.H("div",{class:"ytdRichGridGroupContents"},_.H(_.yP,{data:function(){var L;return(L=p().contents)==null?void 0:L.slice(0,Y())}},{richItemRenderer:function(L){return _.H(_.Jmt,{data:L.data,
noGutterMargins:!0,isInlineGroupItem:!0,insetMetadata:!0})}})))},"ui"),"ytd-rich-grid-group",{props:{data:_.x2}});var Kx=function(){var S=_.w.apply(this,arguments)||this;S.resizeOnObserverInit=!1;S.isInlinePreviewDisabled=_.y("web_disable_inline_preview");S.disableStickyFilterBar=!1;S.transparentBackgroundChipsBar=!1;S.hideChipsBar=!1;S.isWatchDefaultLayout=!0;S.continuationShowButton=!1;S.rowReducedHorizontalMargin=!1;S.useCompactList=!1;S.manualDownloadsPresent=!1;S.smartDownloadsPresent=!1;S.shouldRenderDownloadsBanner=!1;S.hasOptedIntoSmartDownloads=!1;S.elementsPerRow=4;S.typographyBump=!1;S.showGnomeContents=
!1;S.showExploreHubContents=!1;S.slimItemsPerRow=1;S.pageLoadingFromNavigation=!1;S.loggingRefactor=_.y("kevlar_rich_grid_logging_fix");S.resizeObserver=null;S.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"};S.rendererToTagNameMap=
new Map(Object.entries(S.contentMapping()).map(function(p){var U=_.d(p);p=U.next().value;U=U.next().value;return[p,U.component]}));
S.insertedContent=new Map;return S};
_.r(Kx,_.w);_.M=Kx.prototype;_.M.onUseCompactListChange=function(){if(this.useCompactList!==void 0)for(var S=_.d(_.tB(this.hostElement).querySelectorAll("ytd-rich-item-renderer")),p=S.next();!p.done;p=S.next())p.value.useCompactList=this.useCompactList};
_.M.onSizingChange=function(){if(this.sizing!==void 0&&this.typographyBump!==void 0)for(var S=_.d(_.tB(this.hostElement).querySelectorAll("ytd-rich-item-renderer")),p=S.next();!p.done;p=S.next())p=p.value,p.sizing=this.sizing,p.typographyBump=this.typographyBump};
_.M.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents","yt-reload-continuation-items-command-body":"contents","yt-reload-continuation-items-command-header":"header"}};
_.M.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]]"}}}};
_.M.configureRendererStamper=function(){return{"data.header":{id:"header",mapping:{feedFilterChipBarRenderer:{component:"ytd-feed-filter-chip-bar-renderer",properties:{fluidWidth:"[[isDefaultGrid]]",disableSticky:"[[disableStickyFilterBar]]",transparentBackground:"[[transparentBackgroundChipsBar]]"}},chipBarViewModel:{component:"chip-bar-view-model",params:{className:"ytd-rich-grid-renderer chip-bar"}},pageHeaderViewModel:{component:"yt-page-header-view-model",params:{displayAsPanel:!0}},profileIdentityInfoViewModel:{component:"yt-profile-identity-info-view-model"}}},
bigYoodleData:{id:"big-yoodle",mapping:{brandVideoShelfRenderer:"ytd-brand-video-shelf-renderer",brandVideoSingletonRenderer:"ytd-brand-video-singleton-renderer",statementBannerRenderer:"ytd-statement-banner-renderer"},reuseComponents:!1},mastheadData:{id:"masthead-ad",mapping:{bannerPromoRenderer:"ytd-banner-promo-renderer",adSlotRenderer:"ytd-ad-slot-renderer"},reuseComponents:!1},shownItems:{id:"contents",mapping:this.contentMapping(),reuseComponents:!1}}};
_.M.attached=function(){document.addEventListener("yt-page-type-changed",_.d9(this,this.onPageChange));this.updateItemMinAndMaxWidth();this.throttledOnResize=new _.NB(this.resizeObserved,_.pA("rich_grid_resize_delay_ms",50),this)};
_.M.detached=function(){var S;(S=this.resizeObserver)==null||S.disconnect();document.removeEventListener("yt-page-type-changed",_.d9(this,this.onPageChange))};
_.M.insertRichSection=function(S){var p=S.richItemTargetId;S=S.richSectionRendererToInsert;p&&S&&(this.insertedContent.set(p,S),this.reflowContent())};
_.M.computeIsReloading=function(){return this.ytContinuationHandlerBehavior.continuationIsReloading};
_.M.computeIsInlinePreviewEnabled=function(S,p,U){return _.y("web_disable_inline_preview")?!1:!U&&_.CIP({miniplayerIsActive:S,miniplayerPlaybackState:p})};
_.M.computeSizing=function(){var S=_.TFN(this.data);if(S||!(this.isShortsGrid||this.isSlimGrid||this.isCompactGrid||this.isShortsPanel))return S?this.useCompactList?"COMPACT":S:this.miniMode?"COMPACT":_.y("web_use_layout_library_for_rich_grid")?"STANDARD":void 0};
_.M.updateItemMinAndMaxWidth=function(){var S=_.pA("rich_grid_max_item_width",500);S>0&&_.Ms(this.hostElement,{"--ytd-rich-grid-item-max-width":S+"px"});var p;S=this.getRichItemMinWidth((p=this.hostElement)==null?void 0:p.clientWidth);S>0&&_.Ms(this.hostElement,{"--ytd-rich-grid-item-min-width":S+"px"})};
_.M.forceRefreshAndLog=function(){this.refreshGridLayout(!0);this.updateRichItemGridPositions()};
_.M.resizeObserved=function(){_.pp(this.hostElement,"yt-rich-grid-resize-observed");this.refreshGridLayout(!1,!0)&&this.updateRichItemGridPositions()};
_.M.navigateBackToHome=function(){_.y("web_hide_gnome_until_user_navigates_back_to_home")&&(this.showGnomeContents=!1);_.y("web_hide_explore_hub_until_user_navigates_back_to_home")&&(this.showExploreHubContents=!1);var S=_.tW().resolve(_.oy).isOnWatch(),p,U=((p=_.WB(location.pathname))==null?void 0:p.toString())||"";(["search".toString(),"subscriptions".toString(),"shorts".toString()].includes(U)||S)&&this.gnomeContents&&_.y("web_hide_gnome_until_user_navigates_back_to_home")&&(this.showGnomeContents=
!0);S&&this.exploreHubContents&&_.y("web_hide_explore_hub_until_user_navigates_back_to_home")&&(_.vJ().dispatch(_.S4({type:"TALK_TO_RECS_RESET_STEP_STATES",payload:null})),this.showExploreHubContents=!0)};
_.M.onPageChange=function(){var S=this;this.isCurrentPage()?(this.pageLoadingFromNavigation=!0,_.y("disable_chip_select_on_nav")||_.pp(this.hostElement,"yt-chip-cloud-chip-deselect-action"),_.PA.addJob(function(){S.pageLoadingFromNavigation=!1;_.y("disable_chip_select_on_nav")&&_.y("h5_reset_cache_and_filter_before_update_masthead")&&S.resetCacheAndIsFilteredFeed();S.setMasthead();S.maybeSetBigYoodle();S.forceRefreshAndLog();S.terminateVideoPreview();_.y("web_hide_gnome_until_user_navigates_back_to_home")&&
(S.dataChanged(),_.oH(S,function(){if(S.showGnomeContents){var p=Array.from(_.tB(S.hostElement).querySelectorAll("ytd-rich-section-renderer")).find(function(Y){Y=_.tB(Y).querySelector("ytd-rich-shelf-renderer");return!!Y&&Y.isGnomeShelf()});
if(p){p=p.offsetTop-S.contentsElement.offsetTop;var U=_.tW().resolve(_.oy).getCurrentPage();U&&U.getPageScrollingElement().scrollTo({top:p,behavior:"smooth"})}}}));
_.y("web_hide_explore_hub_until_user_navigates_back_to_home")&&(S.dataChanged(),_.oH(S,function(){if(S.showExploreHubContents&&!_.y("web_explore_hub_no_scroll")){var p=Array.from(_.tB(S.hostElement).querySelectorAll("ytd-rich-section-renderer")).find(function(Y){return!!Y.querySelector("ytd-talk-to-recs-flow-renderer")});
if(p){p=p.offsetTop-S.contentsElement.offsetTop;var U=_.tW().resolve(_.oy).getCurrentPage();U&&U.getPageScrollingElement().scrollTo({top:p,behavior:"smooth"})}}}))},8)):((_.y("web_hide_gnome_until_user_navigates_back_to_home")||_.y("web_hide_explore_hub_until_user_navigates_back_to_home"))&&this.navigateBackToHome(),this.mastheadData&&(this.mastheadData=void 0))};
_.M.dataChanged=function(){var S=this,p=_.pA("web_rich_grid_row_margin",0);p>0&&_.Ms(this.hostElement,{"--ytd-rich-grid-row-margin":p+"px"});_.pp(this.hostElement,"ytd-update-grid-state-action");this.data&&this.pageLoadingFromNavigation||(this.pagePath=location.pathname,this.resetCacheAndIsFilteredFeed(),this.maybeSetBigYoodle(),this.setMasthead(),this.refreshGridLayout(),_.oH(this,function(){S.updateRichItemGridPositions();S.contentsElement&&_.Ms(S.hostElement,{"--ytd-rich-grid-content-offset-top":S.contentsElement.offsetTop+
"px"})}),this.initResizeObserver())};
_.M.initResizeObserver=function(){var S=this;if(window.ResizeObserver){var p;(p=this.resizeObserver)==null||p.disconnect();var U=!1;this.resizeObserver=new ResizeObserver(function(){if(U){var Y;(Y=S.resizeObserver)==null||Y.disconnect();var L;(L=S.throttledOnResize)==null||L.fire();requestAnimationFrame(function(){var V;(V=S.throttledOnResize)==null||V.fire();S.initResizeObserver()})}else if(U=!0,S.resizeOnObserverInit){var I;
(I=S.throttledOnResize)==null||I.fire()}});
this.resizeObserver.observe(this.hostElement)}};
_.M.contentLengthChanged=function(){if(_.y("rich_grid_contents_check_width_ks")||this.containerWidth||this.isShortsPanel)this.reflowContent(),_.pp(this.hostElement,"ytd-rich-item-index-update-action")};
_.M.updateElementsPerRow=function(){_.pp(this.hostElement,"ytd-update-elements-per-row-action",[this.elementsPerRow,this.postsPerRow,this.slimItemsPerRow,this.gameCardsPerRow,this.miniGameCardsPerRow,this.containerWidth]);this.ytdReduxBehavior.dispatch(_.S4({type:"SET_RICH_GRID_ITEMS_PER_ROW",payload:this.elementsPerRow}));this.ytdReduxBehavior.dispatch(_.S4({type:"SET_RICH_GRID_SLIM_ITEMS_PER_ROW",payload:this.slimItemsPerRow}))};
_.M.onRequestElementsPerRow=function(){this.updateElementsPerRow()};
_.M.onRichShelfRendererCollapse=function(S){if(this.shownItems){var p=S.detail;S=this.shownItems.findIndex(function(Y){var L,I;return((I=_.b(Y==null?void 0:(L=Y.richSectionRenderer)==null?void 0:L.content,_.gCq))==null?void 0:I.trackingParams)===p});
var U=S+1;S<0||U>=this.contentsElement.children.length||!this.shownItems[U].richItemRenderer||this.contentsElement.children[U].scrollIntoView({behavior:"smooth",block:"start"})}};
_.M.onSoftReloadPage=function(){this.scrollUpToTop()};
_.M.handleRerenderDownloadsData=function(){_.y("kevlar_modern_downloads_page")&&this.entityDrivenRichGridData&&this.set("data.contents",this.entityDrivenRichGridData.contents)};
_.M.handlePlaylistRemoveVideosAction=function(S){var p;if(((p=_.b(S,_.cxe))==null?0:p.setVideoIds)&&this.data&&this.data.contents){S=_.b(S,_.cxe).setVideoIds;for(p=this.data.contents.length-1;p>=0;){var U=_.b(this.data.contents[p],_.jq);(U=U&&_.b(U.content,_.FT))&&U.setVideoId&&S.includes(U.setVideoId)&&this.splice("data.contents",p,1);p--}this.updateIndices()}};
_.M.updateIndices=function(){if(this.data&&this.data.contents)for(var S=0;S<this.data.contents.length;S++)this.set("data.contents."+S+".richItemRenderer.index",_.Ec(String(S+1)))};
_.M.hasTopRowInlinePlayableVideoWithEndorsement=function(S){var p;return!((p=S.slice(0,this.getItemsPerRow()))==null||!p.some(function(U){var Y;U=_.b(U==null?void 0:(Y=U.richItemRenderer)==null?void 0:Y.content,_.ZH);var L;return(U==null?void 0:U.inlinePlaybackEndpoint)&&(U==null?void 0:(L=U.thumbnailOverlays)==null?void 0:L.some(function(I){return I.thumbnailOverlayEndorsementRenderer}))}))};
_.M.refreshGridLayoutNew=function(S,p,U,Y){var L=Y.postsPerRow;var I=Y.slimItemsPerRow;var V=Y.gameCardsPerRow;Y=Y.miniGameCardsPerRow;var W;if((W=this.data)==null||!W.contents||!this.containerWidth)return!1;var O;if((O=this.data.responsiveContainerConfiguration)==null?0:O.responsiveSize){var D=_.vfr(this.data.responsiveContainerConfiguration,this.containerWidth),z;W=_.oF(Object.assign({},D,{standardUnitMinWidth:(z=this.data)==null?void 0:z.minItemWidth}));this.useCompactList=!!(this.containerWidth<
528&&D.isCompactList)}else W=_.oF({containerWidth:this.containerWidth,sizing:this.sizing,marginSettings:2,isCompactList:this.data.layoutType==="RICH_GRID_LAYOUT_TYPE_COMPACT_LIST",standardUnitMinWidth:(D=this.data)==null?void 0:D.minItemWidth}),this.data.layoutType==="RICH_GRID_LAYOUT_TYPE_COMPACT_LIST"&&(this.useCompactList=this.containerWidth<528);this.typographyBump=W.typographyBump;z=!1;if(S||this.elementsPerRow!==W.numItems||this.postsPerRow!==L||this.slimItemsPerRow!==I||this.gameCardsPerRow!==
V||this.miniGameCardsPerRow!==Y||this.gutter!==W.gutter)z=this.elementsPerRow!==W.numItems,this.elementsPerRow=W.numItems,this.postsPerRow=L,this.slimItemsPerRow=I,this.gameCardsPerRow=V,this.miniGameCardsPerRow=Y,this.gutter=W.gutter,this.itemWidth=W.itemWidth,this.reflowContent(p),_.Ms(this.hostElement,{"--ytd-rich-grid-items-per-row":""+this.elementsPerRow,"--ytd-rich-grid-item-margin":W.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(U);this.ytdReduxBehavior.dispatch(_.S4({type:"SET_RICH_GRID_CONTAINER_WIDTH",payload:W.maxContainerWidth}));return z};
_.M.refreshGridLayout=function(S,p){var U,Y=(U=this.hostElement)==null?void 0:U.clientWidth;this.containerWidth=this.adjustRichGridWidth(Y,!0);var L;if((L=this.data)==null||!L.contents||!this.containerWidth)return S&&(this.pendingForceReflow=!0),!1;this.pendingForceReflow&&!_.y("rg_pending_reflow_ks")&&(S=!0,this.pendingForceReflow=!1);U=this.getRichItemMinWidth(Y);var I=this.isShortsPanel?146:194,V=this.getMiniGameCardMinWidth(),W=this.isShortsGridSlim?2:this.isShortsGrid||this.isCompactGrid?3:6;
Y=U=this.calcElementsPerRow(U,W);(L=U<=3&&this.miniModeAllowed())&&(U=this.calcElementsPerRow(240,4));var O=this.calcMaxSlimElementsPerRow(U,W,this.isDefaultGrid);W=this.calcElementsPerRow(I,O);var D=this.calcElementsPerRow(this.isCompactGrid?I:154,O);I=this.calcElementsPerRow(this.isCompactGrid?I:V,O);V=!1;if(this.sizing)return this.refreshGridLayoutNew(S,p,L,{postsPerRow:Y,slimItemsPerRow:W,gameCardsPerRow:D,miniGameCardsPerRow:I});if(S||this.elementsPerRow!==U||this.postsPerRow!==Y||this.slimItemsPerRow!==
W||this.gameCardsPerRow!==D||this.miniGameCardsPerRow!==I)V=this.elementsPerRow!==U,this.elementsPerRow=U,this.postsPerRow=Y,this.slimItemsPerRow=W,this.gameCardsPerRow=D,this.miniGameCardsPerRow=I,this.reflowContent(p),this.updateElementsPerRow(),_.Ms(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)&&_.Ms(this.hostElement,{"--ytd-rich-grid-shorts-item-margin":this.slimItemsPerRow<4?"1px":"4px"});this.updateMiniMode(L);_.pp(this.hostElement,"yt-rich-grid-layout-refreshed");return V};
_.M.getRichItemMinWidth=function(S){var p=_.pA("rich_grid_min_item_width",310);if(!_.y("kevlar_disable_min_width_override")){var U,Y;p=(Y=(U=this.data)==null?void 0:U.minItemWidth)!=null?Y:p}return p+_.UyG(S)};
_.M.calcMaxSlimElementsPerRow=function(S,p,U){return(U===void 0?0:U)?S===1?2:S%2===0?_.y("web_shorts_2_by_3_reduce_items_per_row")&&S>=4?S/2*3-1:S/2*3:_.y("web_shorts_2_by_3_reduce_items_per_row")&&S>=3?S+1:S+2:p*2};
_.M.adjustRichGridWidth=function(S,p){var U=_.y("disable_rich_grid_guide_compensation");if(!this.isWatch&&!U){U=_.tW().resolve(_.AW(_.gr));var Y=U==null?void 0:U.guideElement;if(!(!U||U.getData()||Y!=null&&Y.opened||U.getMiniGuideVisible()))if(U.canFitPersistentGuide(S)&&U.getGuideExpandsAutomatically()){var L,I,V=Number((L=window.getComputedStyle(this.hostElement))==null?void 0:(I=L.getPropertyValue("--app-drawer-width"))==null?void 0:I.replace("px",""));S-=V||0}else if(U.canFitMiniGuide(S)){var W;
L=Number((V=window.getComputedStyle(this.hostElement))==null?void 0:(W=V.getPropertyValue("--ytd-mini-guide-width"))==null?void 0:W.replace("px",""));S-=L||0}}S>600&&(this.isShortsGrid||this.isShortsGridSlim||this.isCompactGrid||(S-=p?32:48));return S};
_.M.calcElementsPerRow=function(S,p){var U=this.adjustRichGridWidth(this.hostElement.clientWidth,!1),Y=this.isShortsPanel?2:this.isShortsGrid||this.isCompactGrid?4:16;return Math.min(Math.floor((U+Y)/(S+Y))||1,p)};
_.M.reflowContent=function(S){var p=this;if(!this.isReflowing){this.isReflowing=!0;var U,Y,L=!!((U=this.data)==null?0:(Y=U.contents)==null?0:Y.some(function(K){return _.b(K,_.SC)}));
U=this.getItemsPerRow();var I;Y=(I=this.data)==null?void 0:I.reflowOptions;S&&(_.Fg("rgr_s"),_.oH(this,function(){_.Fg("rgr_nrf")}));
S={};(I=_.tB(this.hostElement).querySelector("#contents"))&&(S={contentElement:I,rendererToTagNameMap:this.rendererToTagNameMap});I=(I=this.data.contents)?I.slice():[];var V=(_.y("web_hide_gnome_behind_feed_filter_chip")||_.y("web_hide_gnome_until_user_navigates_back_to_home"))&&!this.showGnomeContents,W=_.y("web_hide_explore_hub_until_user_navigates_back_to_home")&&!this.showExploreHubContents,O=-1,D=-1;if(this.isHomePage&&W){for(W=0;W<I.length;W++){var z=void 0,Q=void 0;_.b((z=I[W])==null?void 0:
(Q=z.richSectionRenderer)==null?void 0:Q.content,sbi)&&(D=W)}D>-1&&(this.exploreHubContents=I.splice(D,1))}if(this.isHomePage&&V){for(D=0;D<I.length;D++)Q=z=void 0,(W=_.b((z=I[D])==null?void 0:(Q=z.richSectionRenderer)==null?void 0:Q.content,_.gCq))&&V&&(Q=z=void 0,W=_.b((z=W)==null?void 0:(Q=z.contents)==null?void 0:Q[0],_.jq),z=void 0,_.b((z=W)==null?void 0:z.content,_.wDt)&&(O=D));O>-1&&(this.gnomeContents=I.splice(O,1))}var J=JVt(I,U,L,Y,this.getRichGridStyle(),S,this.insertedContent);L=function(){p.shownItems=
J;p.isReflowing=!1};
this.shownItems.length===0?(this.shownItems=this.getFirstRowItems(J),_.oH(this,L)):L()}};
_.M.getFirstRowItems=function(S){for(var p=[],U=0;U<S.length;U++){var Y=void 0,L=void 0,I=void 0,V=void 0,W=void 0,O=void 0;if(((Y=S[U])==null?void 0:(L=Y.richItemRenderer)==null?void 0:L.rowIndex)===0||((I=S[U])==null?void 0:(V=I.richGroupRenderer)==null?void 0:V.rowIndex)===0||((W=S[U])==null?void 0:(O=W.richSectionRenderer)==null?void 0:O.rowIndex)===0)p.push(S[U]);else break}return p};
_.M.getItemsPerRow=function(){return this.isShortsGrid||this.isCompactGrid?this.slimItemsPerRow:this.elementsPerRow};
_.M.handleChipCloudChipSelectAction=function(S,p){this.terminateVideoPreview();this.cachedContents||this.setCacheAndIsFilteredFeed();_.y("web_hide_gnome_behind_feed_filter_chip")&&(p?(this.showGnomeContents=!0,this.set("data.contents",this.gnomeContents)):this.showGnomeContents=!1)};
_.M.onReloadContinuationFinish=function(){this.data&&this.data.header&&Array.isArray(this.data.header)&&this.data.header.length>0&&(this.data.header=this.data.header[0]);_.y("enable_rich_grid_continuation_reflow_fix")||this.reflowContent();this.isShortsPanel||this.scrollUpToTop();this.ytRendererBehavior.markDirty()};
_.M.handleChipCloudChipDeselectAction=function(){this.terminateVideoPreview();_.y("web_hide_gnome_behind_feed_filter_chip")&&(this.showGnomeContents=!1);this.cachedContents&&(this.set("data.contents",this.cachedContents),this.resetCacheAndIsFilteredFeed(),this.reflowContent(),this.scrollUpToTop())};
_.M.terminateVideoPreview=function(){_.pp(this.hostElement,"yt-terminate-video-preview-action")};
_.M.updateRichItemGridPositions=function(){var S={gridData:{gridColumnCount:this.elementsPerRow}},p;if((p=this.data)==null?0:p.trackingParams)this.loggingRefactor?_.HX().stateChanged(this.data.trackingParams,S):(p=_.X$())&&_.mp(p,_.JS(this.data.trackingParams),S);_.pp(this.hostElement,"ytd-rich-item-index-update-action")};
_.M.miniModeAllowed=function(){return _.y("disable_channels_mini_mode")?!1:this.isChannelPage};
_.M.getMiniGameCardMinWidth=function(){return 154};
_.M.updateMiniMode=function(S){this.miniMode=this.miniModeAllowed()&&S;this.ytdReduxBehavior.dispatch(_.S4({type:"SET_RICH_GRID_MINI_MODE",payload:S}))};
_.M.isCurrentPage=function(){return location.pathname===this.pagePath};
_.M.scrollUpToTop=function(){if(!this.isChannelPage&&!this.isWatch){var S=_.tW().resolve(_.oy).getCurrentPage();S&&S.setScrollTop(0)}};
_.M.setCacheAndIsFilteredFeed=function(){this.cachedContents=this.get("contents",this.data);this.isFilteredFeed=!0};
_.M.resetCacheAndIsFilteredFeed=function(){this.cachedContents=void 0;this.isFilteredFeed=!1};
_.M.maybeSetBigYoodle=function(){var S,p=(S=this.data)==null?void 0:S.bigYoodle;this.bigYoodleData!==p&&(this.bigYoodleData=p)};
_.M.setMasthead=function(){var S;((S=this.data)==null?0:S.masthead)?this.mastheadData=this.data.masthead:_.y("disable_cached_masthead_data")&&(this.mastheadData=void 0)};
_.M.getRichGridStyle=function(){var S,p;return(p=(S=this.data)==null?void 0:S.style)!=null?p:"RICH_GRID_STYLE_UNKNOWN"};
_.M.onIsShortsGridChange=function(){var S=this.ytdReduxBehavior,p=S.dispatch,U=this.getRichGridStyle();p.call(S,_.S4({type:"SET_RICH_GRID_STYLE",payload:U}))};
_.$u.Object.defineProperties(Kx.prototype,{entitySelectorType:{configurable:!0,enumerable:!0,get:function(){var S;return((S=this.data)==null?void 0:S.entitySelectorType)||"RICH_GRID_ENTITY_SELECTOR_TYPE_UNSPECIFIED"}},
isSub:{configurable:!0,enumerable:!0,get:function(){var S;return(((S=this.data)==null?void 0:S.targetId)||"")==="browse-feedFEsubscriptions_shorts"}},
isWatch:{configurable:!0,enumerable:!0,get:function(){var S;return(((S=this.data)==null?void 0:S.targetId)||"")==="watch-next-feed"}},
isShortsPanel:{configurable:!0,enumerable:!0,get:function(){var S=_.tW().resolve(_.oy).getCurrentPage(),p,U,Y;return(((p=this.data)==null?void 0:p.targetId)==="browse-feedFEsfv_audio_pivot"||_.y("web_enable_channel_pivot_panel")&&((U=this.data)==null?void 0:U.targetId)==="browse-feedFEsfv_channel_pivot"||_.y("web_enable_effect_pivot_panel")&&((Y=this.data)==null?void 0:Y.targetId)==="browse-feedFEsfv_effect_pivot")&&(S==null?void 0:S.pageSubtype)==="shorts"}},
reducedTopMargin:{configurable:!0,enumerable:!0,get:function(){return this.isWatch&&_.y("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 S;return!((S=this.data)==null?0:S.header)}},
isChannelPage:{configurable:!0,enumerable:!0,get:function(){var S;return((S=_.tW().resolve(_.oy).getCurrentPage())==null?void 0:S.pageSubtype)==="channels"}},
isHomePage:{configurable:!0,enumerable:!0,get:function(){var S;return((S=_.tW().resolve(_.oy).getCurrentPage())==null?void 0:S.pageSubtype)==="home"}},
isSlimGrid:{configurable:!0,enumerable:!0,get:function(){return this.getRichGridStyle()==="RICH_GRID_STYLE_SLIM"}},
isShortsGrid:{configurable:!0,enumerable:!0,get:function(){return this.getRichGridStyle()==="RICH_GRID_STYLE_SHORTS_GRID"||this.getRichGridStyle()==="RICH_GRID_STYLE_SHORTS_GRID_SLIM"}},
noRichItemGutterMargins:{configurable:!0,enumerable:!0,get:function(){return this.isSlimGrid||this.isShortsGrid}},
isShortsGridSlim:{configurable:!0,enumerable:!0,get:function(){return this.getRichGridStyle()==="RICH_GRID_STYLE_SHORTS_GRID_SLIM"}},
isCompactGrid:{configurable:!0,enumerable:!0,get:function(){return this.getRichGridStyle()==="RICH_GRID_STYLE_COMPACT"}},
isDefaultGrid:{configurable:!0,enumerable:!0,get:function(){return!this.getRichGridStyle()||this.getRichGridStyle()==="RICH_GRID_STYLE_UNKNOWN"}},
hideChipsBarOnHome:{configurable:!0,enumerable:!0,get:function(){var S;return this.hideChipsBar||(((S=this.data)==null?void 0:S.targetId)||"")==="browse-feedFEwhat_to_watch"&&_.y("kevlar_hide_chips_on_home")}},
hideChipsBarOnWatch:{configurable:!0,enumerable:!0,get:function(){var S;return(((S=this.data)==null?void 0:S.targetId)||"")==="watch-next-feed"&&!_.y("swatcheroo_disable_chips")}},
force16By9ThumbnailAspectRatio:{configurable:!0,enumerable:!0,get:function(){var S,p,U;return((S=this.data)==null?0:S.enableContentSpecificAspectRatio)||((p=this.data)==null?0:(U=p.responsiveContainerConfiguration)==null?0:U.enableContentSpecificAspectRatio)?!1:!0}},
continuationTriggerOffset:{configurable:!0,enumerable:!0,get:function(){return this.isHomePage?_.pA("web_continuation_handler_margin",0):0}}});
Kx.prototype.onIsShortsGridChange=Kx.prototype.onIsShortsGridChange;Kx.prototype.onReloadContinuationFinish=Kx.prototype.onReloadContinuationFinish;Kx.prototype.reflowContent=Kx.prototype.reflowContent;Kx.prototype.handleRerenderDownloadsData=Kx.prototype.handleRerenderDownloadsData;Kx.prototype.onRichShelfRendererCollapse=Kx.prototype.onRichShelfRendererCollapse;Kx.prototype.onRequestElementsPerRow=Kx.prototype.onRequestElementsPerRow;Kx.prototype.contentLengthChanged=Kx.prototype.contentLengthChanged;
Kx.prototype.dataChanged=Kx.prototype.dataChanged;Kx.prototype.onSizingChange=Kx.prototype.onSizingChange;Kx.prototype.onUseCompactListChange=Kx.prototype.onUseCompactListChange;_.x([_.F(_.qH.YtRendererstamperBehavior),_.E("design:type",Object)],Kx.prototype,"ytRendererstamperBehavior",void 0);_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],Kx.prototype,"ytRendererBehavior",void 0);_.x([_.F(_.ji),_.E("design:type",Object)],Kx.prototype,"ironResizableBehavior",void 0);
_.x([_.F(_.Aj.YtActionHandlerBehavior),_.E("design:type",Object)],Kx.prototype,"actionHandlerBehavior",void 0);_.x([_.F(_.wS),_.E("design:type",Object)],Kx.prototype,"ytContinuationHandlerBehavior",void 0);_.x([_.F(_.eL.YtComponentBehavior),_.E("design:type",Object)],Kx.prototype,"componentBehavior",void 0);_.x([_.F(_.Xh),_.E("design:type",Object)],Kx.prototype,"ytdReduxBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],Kx.prototype,"data",void 0);
_.x([_.g({reflectToAttribute:!0,selector:_.hZ}),_.E("design:type",Boolean)],Kx.prototype,"miniMode",void 0);_.x([_.g({value:[]}),_.E("design:type",Array)],Kx.prototype,"shownItems",void 0);_.x([_.g({value:!1}),_.E("design:type",Boolean)],Kx.prototype,"isReflowing",void 0);_.x([_.g({value:!1}),_.E("design:type",Boolean)],Kx.prototype,"isFilteredFeed",void 0);_.x([_.g({selector:_.OQu}),_.E("design:type",Boolean)],Kx.prototype,"guideIsExpanded",void 0);
_.x([_.g({selectorArgs:["entitySelectorType"],selector:function(S,p){if(_.y("kevlar_modern_downloads_page")&&p&&p!=="RICH_GRID_ENTITY_SELECTOR_TYPE_UNSPECIFIED")switch(p){case "RICH_GRID_ENTITY_SELECTOR_TYPE_DOWNLOADS":var U=S.entities;p=_.j4(U);var Y=_.rt(U),L=_.PBq(S),I=_.Xje(S);S=_.ZQr(S);var V=_.YOe(U),W=_.nK(p);U=_.Gf(U);return _.aZe(p,Y,V,L,I,W,U,S);case "RICH_GRID_ENTITY_SELECTOR_TYPE_SMART_DOWNLOADS":return p=_.j4(S.entities),_.C_w(p);case "RICH_GRID_ENTITY_SELECTOR_TYPE_HOME_DOWNLOADS":return p=
_.che(S.entities),_.xeN(p);default:_.eP(new _.y7("Error: entitySelectorType defined but not matched in selector.",S,p))}}}),
_.E("design:type",Object)],Kx.prototype,"entityDrivenRichGridData",void 0);_.x([_.g(),_.E("design:type",Object)],Kx.prototype,"resizeOnObserverInit",void 0);_.x([_.g(),_.E("design:type",Object)],Kx.prototype,"bigYoodleData",void 0);_.x([_.g(),_.E("design:type",Object)],Kx.prototype,"mastheadData",void 0);_.x([_.g(),_.E("design:type",Boolean)],Kx.prototype,"isInlinePreviewDisabled",void 0);_.x([_.g(),_.E("design:type",Object)],Kx.prototype,"disableStickyFilterBar",void 0);
_.x([_.g(),_.E("design:type",Object)],Kx.prototype,"transparentBackgroundChipsBar",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],Kx.prototype,"hideChipsBar",void 0);_.x([_.g(),_.E("design:type",Object)],Kx.prototype,"isWatchDefaultLayout",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],Kx.prototype,"continuationShowButton",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],Kx.prototype,"rowReducedHorizontalMargin",void 0);
_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],Kx.prototype,"useCompactList",void 0);_.x([_.g({selector:function(S){return _.rt(S.entities).length>0}}),
_.E("design:type",Object)],Kx.prototype,"manualDownloadsPresent",void 0);_.x([_.g({selector:function(S){return _.j4(S.entities).length>0}}),
_.E("design:type",Object)],Kx.prototype,"smartDownloadsPresent",void 0);_.x([_.g({selector:_.Xje}),_.E("design:type",Object)],Kx.prototype,"shouldRenderDownloadsBanner",void 0);_.x([_.g({selector:_.PBq}),_.E("design:type",Object)],Kx.prototype,"hasOptedIntoSmartDownloads",void 0);_.x([_.T4("useCompactList"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],Kx.prototype,"onUseCompactListChange",null);
_.x([_.T4("sizing","typographyBump"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],Kx.prototype,"onSizingChange",null);_.x([_.g({selector:_.QgG}),_.E("design:type",Number)],Kx.prototype,"miniplayerPlaybackState",void 0);_.x([_.g({selector:_.F1}),_.E("design:type",Boolean)],Kx.prototype,"miniplayerIsActive",void 0);
_.x([_.g({computed:"computeIsInlinePreviewEnabled(miniplayerIsActive, miniplayerPlaybackState, isInlinePreviewDisabled)"}),_.E("design:type",Boolean)],Kx.prototype,"isInlinePreviewEnabled",void 0);_.x([_.g({computed:"computeSizing(data, useCompactList, miniMode, isShortsGrid, isSlimGrid, isCompactGrid, isShortsPanel)"}),_.E("design:type",String)],Kx.prototype,"sizing",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],Kx.prototype,"elementsPerRow",void 0);
_.x([_.g(),_.E("design:type",Object)],Kx.prototype,"typographyBump",void 0);_.x([_.g(),_.E("design:type",Number)],Kx.prototype,"itemWidth",void 0);_.x([_.O2("#header"),_.E("design:type",HTMLElement)],Kx.prototype,"headerElement",void 0);_.x([_.O2("#contents"),_.E("design:type",HTMLElement)],Kx.prototype,"contentsElement",void 0);_.x([_.z4("data"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],Kx.prototype,"dataChanged",null);
_.x([_.z4("data.contents.length"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],Kx.prototype,"contentLengthChanged",null);_.x([_.Vd("yt-request-elements-per-row"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],Kx.prototype,"onRequestElementsPerRow",null);
_.x([_.Vd("yt-rich-shelf-renderer-collapse"),_.E("design:type",Function),_.E("design:paramtypes",[CustomEvent]),_.E("design:returntype")],Kx.prototype,"onRichShelfRendererCollapse",null);_.x([_.z4("shouldRenderDownloadsBanner","hasOptedIntoSmartDownloads","manualDownloadsPresent","smartDownloadsPresent"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],Kx.prototype,"handleRerenderDownloadsData",null);
_.x([_.e("data"),_.E("design:type",String),_.E("design:paramtypes",[])],Kx.prototype,"entitySelectorType",null);_.x([_.g({reflectToAttribute:!0}),_.e("data.targetId"),_.E("design:type",Boolean),_.E("design:paramtypes",[])],Kx.prototype,"isSub",null);_.x([_.g({reflectToAttribute:!0}),_.e("data.targetId"),_.E("design:type",Boolean),_.E("design:paramtypes",[])],Kx.prototype,"isWatch",null);
_.x([_.g({reflectToAttribute:!0}),_.e("data.targetId"),_.E("design:type",Boolean),_.E("design:paramtypes",[])],Kx.prototype,"isShortsPanel",null);_.x([_.g({reflectToAttribute:!0}),_.e("isWatch"),_.E("design:type",Boolean),_.E("design:paramtypes",[])],Kx.prototype,"reducedTopMargin",null);_.x([_.g({reflectToAttribute:!0}),_.e("data","isWatch","isWatchDefaultLayout"),_.E("design:type",Boolean),_.E("design:paramtypes",[])],Kx.prototype,"noTopMargin",null);
_.x([_.g({reflectToAttribute:!0}),_.e("isInlinePreviewEnabled","shownItems"),_.E("design:type",Boolean),_.E("design:paramtypes",[])],Kx.prototype,"topRowEndorsement",null);_.x([_.e("data.header"),_.E("design:type",Boolean),_.E("design:paramtypes",[])],Kx.prototype,"hideHeader",null);_.x([_.Vd("yt-rich-grid-reflow"),_.E("design:type",Function),_.E("design:paramtypes",[Boolean]),_.E("design:returntype")],Kx.prototype,"reflowContent",null);
_.x([_.Vd("yt-reload-continuation-finish"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],Kx.prototype,"onReloadContinuationFinish",null);_.x([_.e("data"),_.g({reflectToAttribute:!0}),_.E("design:type",Boolean),_.E("design:paramtypes",[])],Kx.prototype,"isSlimGrid",null);_.x([_.e("data"),_.g({reflectToAttribute:!0}),_.E("design:type",Boolean),_.E("design:paramtypes",[])],Kx.prototype,"isShortsGrid",null);
_.x([_.e("data","isSlimGrid","isShortsGrid"),_.g(),_.E("design:type",Boolean),_.E("design:paramtypes",[])],Kx.prototype,"noRichItemGutterMargins",null);_.x([_.e("data"),_.g({reflectToAttribute:!0}),_.E("design:type",Boolean),_.E("design:paramtypes",[])],Kx.prototype,"isShortsGridSlim",null);_.x([_.e("data"),_.g({reflectToAttribute:!0}),_.E("design:type",Boolean),_.E("design:paramtypes",[])],Kx.prototype,"isCompactGrid",null);
_.x([_.e("data"),_.g({reflectToAttribute:!0}),_.E("design:type",Boolean),_.E("design:paramtypes",[])],Kx.prototype,"isDefaultGrid",null);_.x([_.e("data.targetId"),_.E("design:type",Boolean),_.E("design:paramtypes",[])],Kx.prototype,"hideChipsBarOnHome",null);_.x([_.e("data.targetId"),_.g({reflectToAttribute:!0}),_.E("design:type",Boolean),_.E("design:paramtypes",[])],Kx.prototype,"hideChipsBarOnWatch",null);
_.x([_.T4("data"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],Kx.prototype,"onIsShortsGridChange",null);_.x([_.e("data.enableContentSpecificAspectRatio"),_.g(),_.E("design:type",Boolean),_.E("design:paramtypes",[])],Kx.prototype,"force16By9ThumbnailAspectRatio",null);_.x([_.e("data"),_.E("design:type",Number),_.E("design:paramtypes",[])],Kx.prototype,"continuationTriggerOffset",null);Kx=_.x([_.f({is:"ytd-rich-grid-renderer",disableElementRegistration:!0})],Kx);
_.C(Kx,"ytd-rich-grid-renderer",function(){if(N4n!==void 0)return N4n;var S=document.createElement("template");_.h(S,'\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');
S.content.insertBefore(_.t().content.cloneNode(!0),S.content.firstChild);return N4n=S},{mode:2});var dE5=_.$k(function(S){var p=S.thumbsUp;S=S.thumbsDown;var U=_.d(_.kj(!1,void 0,"OxPsH")),Y=U.next().value,L=U.next().value;U=_.d(_.kj(!1,void 0,"V5vWne"));var I=U.next().value,V=U.next().value;return _.H("div",{class:"ytwThumbsUpDownThumbs"},_.H(_.jS,{data:p,onToggle:function(W){L(W);I()&&V(!1)},
buttonShapeOverrides:function(){return{toggled:Y()}}}),_.H(_.jS,{data:S,
onToggle:function(W){V(W);Y()&&L(!1)},
buttonShapeOverrides:function(){return{toggled:I()}}}))},"vi");
dE5.idomCompat=!0;var TCi=_.$k(function(S){var p=function(){return S.data().pendingStateEntityKey||""},U=_.Ty(_.R1P,p),Y=function(){var L;
if(!(L=S.disabled())){var I;L=!((I=U())==null||!I.isPendingResponse)}return L};
return _.H("you-chat-chips-data",{class:"ytwYouChatChipsDataHost"},_.H(_.KU,{each:function(){return S.data().chipData||[]},
keyBy:"REFERENCE"},function(L){return _.H(VgY,{data:L,disabled:Y,pendingStateKey:p,onError:S.onError})}))},"wi"),VgY=_.$k(function(S){var p=_.vH(),U=_.d(_.kj(!0,void 0,"HBREAe")),Y=U.next().value,L=U.next().value,I=function(){return S.data().text.content},V=_.kL(function(W){var O,D,z,Q,J,K,G,X;
return _.T(function(Z){switch(Z.nextAddress){case 1:W.stopPropagation();if(S.disabled())return Z.return();D=String(Math.floor(((O=_.UK())==null?void 0:O.getCurrentTime())||0)*1E3);z="youchat-"+Date.now();Q=function(){_.eV(S.data().onClick||{});var l={continuationCommand:{token:S.data().continuation,request:"CONTINUATION_REQUEST_TYPE_GET_PANEL"}},a={inputComposerFormData:{clientMessageId:z,playerOffsetMs:D}};return new Promise(function(N,m){_.eV(l,{form:{formData:a},commandController:{onSuccess:function(A,
q){N(q)},
onServerError:function(A,q){m(q.error)}}})})};
J=_.Fmo(S.pendingStateKey());J(!0);_.H5J("#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");L(!1);_.M2(Z,2);return _.k(Z,Q(),4);case 4:_.CA(Z,3);break;case 2:K=_.W4(Z),(X=(G=S).onError)==null||X.call(G,K);case 3:J(!1),_.OV(Z)}})});
return _.H(_.n,{cond:Y,then:function(){return _.H("div",{class:"ytwYouChatChipsDataChipWrapper"},_.H("button",{el:p,class:"ytwYouChatChipsDataChip","data-disabled":S.disabled,"on:click":V,tabindex:0},I))}})},"xi");var WbA=_.$k(function(S){var p=S.data;return _.H("yt-conversation-resource-view-model",{class:_.VD("ytConversationResourceViewModelHost","ytConversationResourceViewModelHostSectionList")},_.H(_.yP,{data:function(){var U,Y;return((U=p().conversationResourceData)==null?void 0:(Y=U.learningGuideData)==null?void 0:Y.sections)||[]}},{expandableMetadataViewModel:function(U){return _.H(_.vNc,{data:U.data})}}))},"yi");
WbA.idomCompat=!0;var OOE=_.$k(function(S){var p=function(){var a;return(a=S.data().text)==null?void 0:a.content},U=function(){var a,N;
return(a=S.data().webData)==null?void 0:(N=a.textResult)==null?void 0:N.content},Y=_.tW().resolve(_.EW),L=_.YO(),I=function(){return S.data().chatResponseStyle},V=function(){return{animationConfig:{autoplay:!1,
loop:!1,renderer:"svg",rendererSettings:{viewBoxSize:"12 0 48 48"},name:"YOUCHAT_ICON",path:S.data().animationUrl||"https://www.gstatic.com/youtube/img/lottie/youchat_animations/progress_indicator_solo_v1.json"}}},W=function(){var a;
return S.data().webData||((a=S.data().text)==null?void 0:a.content)||S.data().videoResultsData||S.data().conversationResourceViewModel||S.data().quiz},O=function(){var a;
return(a=S.data().videoResultsData)==null?void 0:a.videoShelf},D=function(){var a;
return _.b(((a=S.data().videoResultsData)==null?void 0:a.videoShelf)||{},l_P)},z=function(){var a;
return(a=S.data().webData)==null?void 0:a.sourcesShelf},Q=function(){var a;
return _.b(((a=S.data().webData)==null?void 0:a.sourcesShelf)||{},l_P)},J=function(){return _.b(S.data().conversationResourceViewModel||{},f_J)},K=function(){return _.b(S.data().quiz||{},g8X)},G=function(){return I()==="CHAT_RESPONSE_STYLE_MULTI_PART_START"||I()==="CHAT_RESPONSE_STYLE_MULTI_PART_MIDDLE"?!1:S.data().thumbsDownViewModel&&S.data().thumbsUpViewModel},X=function(){return _.b(S.data().thumbsUpViewModel,_.b6)},Z=function(){return _.b(S.data().thumbsDownViewModel,_.b6)};
_.hW(function(){requestAnimationFrame(function(){var a;(a=S.shouldAnimateIcon)!=null&&a.call(S)&&XsY(L.lottieEl)})});
var l={};return _.H("you-chat-item-view-model",{class:_.VD("ytwYouChatItemViewModelYouChatItemViewModel",(l.ytwYouChatItemViewModelHostNoPadding=function(){return!1},l)),
"data-target-id":function(){return S.data().id||""}},_.H(_.n,{cond:W,
then:function(){var a={};return _.H("div",{"aria-hidden":"true"},_.H(_.Tw,{className:_.VD("ytwYouChatItemViewModelIcon",(a.ytwYouChatItemViewModelRtl=Y==="rtl",a.ytwYouChatItemViewModelHidden=function(){return!(S.data().hideIcon||I()==="CHAT_RESPONSE_STYLE_MULTI_PART_MIDDLE"||I()==="CHAT_RESPONSE_STYLE_MULTI_PART_END"?0:W())},a)),
animationName:"YOUCHAT_ICON",data:V,animationRef:L}))}}),_.H(_.n,{cond:W,
then:function(){var a={};return _.H("div",{class:_.VD("ytwYouChatItemViewModelHost",(a.ytwYouChatItemViewModelChatResponseStyleMultiPartStart=function(){return I()==="CHAT_RESPONSE_STYLE_MULTI_PART_START"},a.ytwYouChatItemViewModelChatResponseStyleMultiPartMiddle=function(){return I()==="CHAT_RESPONSE_STYLE_MULTI_PART_MIDDLE"},a.ytwYouChatItemViewModelChatResponseStyleMultiPartEnd=function(){return I()==="CHAT_RESPONSE_STYLE_MULTI_PART_END"},a)),
role:"alert"},_.H(_.n,{cond:p,then:function(N){return _.H(_.P8,{text:N})}}),_.H(_.n,{cond:U,
then:function(N){return _.H(_.P8,{text:N})}}),_.H(_.n,{cond:O,
then:function(){return _.H("div",{class:"ytwYouChatItemViewModelLockupShelf"},_.H(_.FY,{data:D,hasPeek:!0,disableArrows:!1,protectBackground:!0}))}}),_.H(_.n,{cond:z,
then:function(){return _.H("div",{class:"ytwYouChatItemViewModelLockupShelf"},_.H(_.FY,{data:Q,hasPeek:!0,disableArrows:!1}))}}),_.H(_.n,{cond:J,
then:function(){return _.H(WbA,{data:J})}}),_.H(_.n,{cond:K,
then:function(){return _.H(_.EWw,{data:K})}}),_.H(_.n,{cond:G,
then:function(){return _.H(dE5,{thumbsUp:X,thumbsDown:Z})}}))}}),_.H(_.n,{cond:function(){return S.data().chipsData},
then:function(a){return _.H(TCi,{data:a,disabled:S.pending,onError:S.onError})}}))},"zi");
OOE.idomCompat={callbacks:{onError:!0,onSend:!0}};var ktX=_.$k(function(S){var p=function(){return S.data().choiceSelectedText};
return _.H("yt-you-chat-user-turn",{class:"ytYouChatUserTurnHost"},_.H(_.n,{cond:p,then:function(){return _.H("div",{class:"ytYouChatUserTurnChoiceSelected"},_.H(_.i6,{text:p}))}}),_.H("div",{class:"ytYouChatUserTurnUserMessage"},function(){return S.data().text}))},"Ai");var HOi=_.$k(function(S){var p=_.d((0,_.GaQ)(S.data)).next().value;return _.H("yt-item-section-renderer",{class:"ytItemSectionRendererHost","data-target-id":function(){return S.data().targetId||""}},_.H(_.yP,{data:function(){return S.data().header}},{chipBarViewModel:_.Oqt}),_.H(_.yP,{data:function(){return p().contents}},{accordionViewModel:_.vWd,
alertBannerViewModel:_.JDQ,chatLoadingViewModel:_.G2s,chatUserTurnViewModel:ktX,learningJourneyLoaderViewModel:_.x5m,lockupViewModel:function(U){return _.H(_.ch,{data:U.data,className:"ytItemSectionRendererLockup",containerLayoutConfig:S.containerLayoutConfig,thumbnailFixedWidth:"200px"})},
youChatItemViewModel:function(U){return _.H(OOE,{data:U.data,pending:!1})}}))},"Bi");_.qm(_.$k(function(S){var p=_.d((0,_.GaQ)(S.data)).next().value,U=_.vH(),Y=_.d(_.kj(void 0,void 0,"rQpPgc")),L=Y.next().value,I=Y.next().value,V=function(){var W;return _.b((W=S.data().sectionListLayoutConfiguration)==null?void 0:W.layoutConfiguration,wsd)};
_.FM(function(){var W,O=(W=U.value)==null?void 0:W.clientWidth;if(V()){W=V();var D=W.responsiveSize;O=O<528?"CONTAINER_SIZE_NARROW":O<1024?"CONTAINER_SIZE_MEDIUM":"CONTAINER_SIZE_WIDE";b:{var z=_.d(W.responsiveMap||[]);for(var Q=z.next();!Q.done;Q=z.next())if(Q=Q.value,Q.containerSize===O){z=Q.containerType;break b}z=void 0}if(z&&D){b:{if(z==="CONTAINER_TYPE_VERTICAL_LIST")if(D==="RESPONSIVE_SIZE_STANDARD"){if(O!=="CONTAINER_SIZE_NARROW"){Q="50%";break b}}else{Q=O==="CONTAINER_SIZE_NARROW"?"50%":
"33.3%";break b}Q=void 0}W={responsiveSize:D,containerSize:O,containerType:z,force16By9ThumbnailAspectRatio:!W.enableContentSpecificAspectRatio,contentPreviewWidth:Q,fullbleed:(z==="CONTAINER_TYPE_VERTICAL_LIST"||z==="CONTAINER_TYPE_GRID")&&O==="CONTAINER_SIZE_NARROW"&&!1}}else W=void 0}else W=void 0;I(W)});
return _.H("yt-section-list-renderer",{class:_.VD("ytSectionListRendererHost",S.className),el:U,"data-target-id":function(){return S.data().targetId||""}},_.H(_.yP,{data:function(){return p().contents}},{itemSectionRenderer:function(W){return _.H(HOi,{data:W.data,
containerLayoutConfig:L})}}))},"Ci"),"yt-section-list-renderer",{props:{data:_.x2,
className:_.BX}});var DEJ;var z9n;var b$=function(){return _.w.apply(this,arguments)||this};
_.r(b$,_.w);_.x([_.g(),_.E("design:type",Object)],b$.prototype,"data",void 0);b$=_.x([_.FB({is:"yt-alert-renderer",disableElementRegistration:!0})],b$);
_.C(b$,"yt-alert-renderer",function(){if(z9n===void 0){var S=document.createElement("template");_.h(S,'\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');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);var p=S.content,U=p.insertBefore;DEJ===void 0&&(DEJ=document.createElement("template"));var Y=DEJ;U.call(p,Y.content.cloneNode(!0),S.content.firstChild);z9n=S}S=z9n;return S},{mode:2});
}catch(e){_._DumpException(e)}
try{
_.i8X=function(S,p){var U,Y;p=p===void 0?{}:p;var L,I,V,W,O,D,z,Q,J,K,G,X;return _.T(function(Z){switch(Z.nextAddress){case 1:L=p;I=L.shouldWrap===void 0?!0:L.shouldWrap;V=L.skipTransitionTimeoutMs===void 0?300:L.skipTransitionTimeoutMs;W=L.beforeTransition;O=L.afterTransition;if(!I||!document.startViewTransition||document.visibilityState==="hidden")return Z.return(S());U=window.innerWidth;Y=window.innerHeight;D=!1;(z=W)==null||z();_.M2(Z,2);Q=document.startViewTransition(S);J=setTimeout(function(){Q.skipTransition();
D=!0},V);
return _.k(Z,Q.ready,4);case 4:return clearTimeout(J),_.k(Z,Q.finished,5);case 5:clearTimeout(J);(K=O)==null||K();_.CA(Z,0);break;case 2:G=_.W4(Z),(X=O)==null||X(),G&&!D&&document.visibilityState!=="hidden"&&U===window.innerWidth&&Y===window.innerHeight&&_.ZP(G),_.OV(Z)}})};
_.RL=function(){for(var S=Array(36),p=0,U,Y=0;Y<36;Y++)Y==8||Y==13||Y==18||Y==23?S[Y]="-":Y==14?S[Y]="4":(p<=2&&(p=33554432+Math.random()*16777216|0),U=p&15,p>>=4,S[Y]=_.tpj[Y==19?U&3|8:U]);return S.join("")};/*

Copyright (c) 2014 The Polymer Project Authors. All rights reserved.
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
Code distributed by Google as part of the polymer project is also
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
*/
var NZd=_.x1(['<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>']),
BZn=_.CNt(NZd);BZn.setAttribute("style","display: none;");document.head.appendChild(BZn.content);_.FK=_.bUw(function(S){var p=_.JY("DIV");S&&(p.className=S);p.style.cssText="overflow:auto;position:absolute;top:0;width:100px;height:100px";S=_.JY("DIV");_.Aec(S,"200px","200px");p.appendChild(S);document.body.appendChild(p);S=p.offsetWidth-p.clientWidth;_.yz(p);return S});var qHs;var Aii;var XK=function(){var S=_.w.apply(this,arguments)||this;S.icon=null;return S};
_.r(XK,_.w);XK.prototype.dismiss=function(){_.cv(this.hostElement,"yt-live-chat-error-message-dismiss")};
XK.prototype.computeIcon=function(S){return S&&S.iconType?"yt-icons:"+S.iconType.toLowerCase():"yt-icons:close"};
_.x([_.g(),_.E("design:type",Object)],XK.prototype,"data",void 0);_.x([_.g({computed:"computeIcon(data.icon)"}),_.E("design:type",Object)],XK.prototype,"icon",void 0);XK=_.x([_.FB({disableElementRegistration:!0,is:"yt-live-chat-error-message-renderer",noInjection:!0})],XK);
_.C(XK,"yt-live-chat-error-message-renderer",function(){if(Aii===void 0){var S=document.createElement("template");_.h(S,'\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');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);var p=S.content,U=p.insertBefore;qHs===void 0&&(qHs=document.createElement("template"));var Y=qHs;U.call(p,Y.content.cloneNode(!0),S.content.firstChild);Aii=S}S=Aii;return S},{mode:_.y("live_chat_enable_sink_wrapper")?2:0});
}catch(e){_._DumpException(e)}
try{
var nfJ,JGJ,yGT,KRT,R3q,FRY,XuL,P_d,ZBL,Rj,sDd,e3i,Fv,gfP,ukn,wuJ,lZd,aZJ,fZq,C_s,xei,Eft,meX,ofo,vfE,$eX,iBo,Nhs,Bhn,quL,AGn,tBi,Xv,cGA,SfL,pZt,LTq,MKL,IfX,diX,VKi,TLt,Uit,Yfd,Ods,kit,HdJ,DiJ,zGP,WTn,np5;nfJ=function(S,p){return _.I4(S.entities,"timedMarkersListSyncEntity",p)};
JGJ=function(S,p){return _.I4(S.entities,"liveReactionsDataEntity",p)};
yGT=function(S,p){S=_.I4(S.entities,"booleanEntity",p);return!(!S||!S.value)};
KRT=function(S,p){var U=_.X$();U&&S&&_.wB(U,_.JS(S),p)};
_.bBJ=function(){_.y("web_watch_log_theater_mode")&&_.iOw("GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_THEATER_MODE_ENABLED")};
_.jD5=function(S,p,U){if(!S.includes("START_TIME_PLACEHOLDER")||!S.includes("END_TIME_PLACEHOLDER"))return S;var Y=new Date(0),L=new Date(0);Y.setUTCMilliseconds(p);L.setUTCMilliseconds(U);return S.replace("START_TIME_PLACEHOLDER",_.a4(Y,7)).replace("END_TIME_PLACEHOLDER",_.a4(L,7))};
_.rG5=function(S){return S.watch.isWatchActive};
_.G$L=function(S){return _.sK(S)||_.eS(S)||_.Azq(S)};
_.h3L=function(S){return!_.G$L(S)};
_.hw=function(S){return S.watch.watchScrollTop};
R3q=function(S){return S.watch.isLiveChatCollapsed};
FRY=function(S){return S.watch.openEngagementPanels};
XuL=function(S,p){return _.I4(S.entities,"booleanEntity",p)};
P_d=function(){return function(S){_.m_(_.WG("booleanEntity","chat_input_view_model_state",{key:"chat_input_view_model_state",value:S}))}};
ZBL=function(S){switch(S){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}};
Rj=function(S,p,U){var Y=_.sW(U);S&&p&&Y&&S.getPlayerPromise().then(function(L){_.Gmw(Y)&&_.Fr();(new _.z3(L)).executeCommand(Y,p);_.y("continue_playback_on_desktop_companion_click")||L.pauseVideo()})};
sDd=function(S){var p=_.$L(),U;if(U=_.ad("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction")){var Y;U=(Y=U())==null?void 0:Y.layoutId}else U=null;Rj(p,U,S)};
e3i=function(S){var p=_.$L(),U;if(U=_.ad("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction")){var Y;U=(Y=U())==null?void 0:Y.layoutId}else U=null;Rj(p,U,S)};
Fv=function(S,p){var U=S<0?"-":"";S=Math.abs(S);var Y=Math.floor(S/3600),L=Math.floor(S)%3600,I=Math.floor(L/60);L=Math.floor(L)%60;var V="";(p===void 0?0:p)&&(V="."+Math.round((S-Math.floor(S))*10));return Y>0?U+Y+":"+(I<10?"0"+I:""+I)+":"+(L<10?"0"+L:""+L)+V:U+I+":"+(L<10?"0"+L:""+L)+V};
gfP=function(S){var p=S.match(/[^0-9:\.]/g);if(p&&p.length>0)return null;S=S.split(":");if(S.length===0||S.length>3)return null;p=1;for(var U=0;S.length>0;){var Y=S.pop();if(Y===void 0)break;var L=Number(Y);if(Y===""||isNaN(L))return null;U+=L*p;p*=60}return U};
ukn=function(S,p,U,Y){S=Math.max(U,S);p=Math.min(p,Y-U);S+p>Y?(U=Y,S=U-p):U=S+p;return{start:S,end:U}};
wuJ=function(S,p,U,Y,L,I){S<U?S=U:S+L>Y&&(S=Y-L);p>Y&&(p=Y);p=Math.min(S+I,Math.max(S+L,p));return{start:S,end:p}};
lZd=function(S,p,U,Y,L,I){p>Y?p=Y:p-L<U&&(p=U+L);S<U&&(S=U);S=Math.min(p-L,Math.max(p-I,S));return{start:S,end:p}};
aZJ=function(S){return _.y("web_transcript_cue_id_killswitch")?String(S):"ytd-transcript-renderer_"+S};
fZq=function(S){return _.y("web_transcript_cue_id_killswitch")?!0:S.startsWith("ytd-transcript-renderer")};
C_s=function(S){var p=_.$L(),U;if(U=_.ad("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction")){var Y;U=(Y=U())==null?void 0:Y.layoutId}else U=null;Rj(p,U,S)};
xei=function(S){S.style.height="auto";S.style.height=Math.min(S.scrollHeight||20,80)+"px"};
Eft=function(S,p){return{listMutationCommand:{operations:{operations:[{insertItemSectionContent:{contents:[{chatUserTurnViewModel:{text:p}}],insertByPositionInSection:{sectionTargetId:S,position:"INSERTION_POSITION_LAST"}}}]}}}};
meX=function(S){var p=_.$L(),U;U=(U=_.ad("yt.www.ads.eventcache.getLastCompanionData"))?(U=U())&&U.layoutId:null;Rj(p,U,S)};
ofo=function(S){var p=_.$L(),U;U=(U=_.ad("yt.www.ads.eventcache.getLastCompanionData"))?(U=U())&&U.layoutId:null;Rj(p,U,S)};
vfE=function(S,p){p=p===void 0?!1:p;if(S.simpleText)S=[{text:S.simpleText}];else{var U;S=((U=S.runs)!=null?U:[]).map(function(Y){return Object.assign({},Y)})}if(p)for(p=_.d(S),U=p.next();!U.done;U=p.next())U.value.bold=!0;
return S};
$eX=function(S){var p=S.startEndTimeTemplate,U=S.startTimeUtcMillis;S=S.endTimeUtcMillis;if(p&&U&&S)return _.Ec(_.jD5(_.mA(p),Number(U),Number(S)))};
iBo=function(S,p){var U,Y,L=S==null?void 0:(U=S.viewCount)==null?void 0:(Y=U.videoViewCountRenderer)==null?void 0:Y.shortViewCount;if(!p&&L)return L;var I,V;return S==null?void 0:(I=S.viewCount)==null?void 0:(V=I.videoViewCountRenderer)==null?void 0:V.viewCount};
Nhs=function(S,p){var U=S==null?void 0:S.relativeDateText;return!p&&U?[U,!0]:[S==null?void 0:S.dateText,!1]};
Bhn=function(S,p,U,Y,L){Y=Y===void 0?!0:Y;L=L===void 0?"":L;var I=iBo(S,p),V=_.d(Nhs(S,p)),W=V.next().value;V=V.next().value;p=p?S==null?void 0:S.sponsorsOnlyFirstTimeLongText:S==null?void 0:S.sponsorsOnlyFirstTimeShortText;var O=[];U&&I&&O.push(I);!U&&V||!W||O.push(W);S=[].concat(_.jo(O),[p,S==null?void 0:S.stationName,S==null?void 0:S.rating,S?$eX(S):void 0,S==null?void 0:S.upNextProgramText,S==null?void 0:S.superTitleLink]).filter(function(D){return!!D});
U={runs:[]};for(I=0;I<S.length;I++)U.runs.push.apply(U.runs,_.jo(vfE(S[I],Y))),I<S.length-1&&U.runs.push({text:" "+L+" ",bold:Y});return U};
quL=function(S){if(S)return{runs:[{text:S,bold:!0}]}};
AGn=function(S){var p,U,Y,L;if(S=S==null?void 0:(p=S.contents)==null?void 0:(U=p.twoColumnWatchNextResults)==null?void 0:(Y=U.results)==null?void 0:(L=Y.results)==null?void 0:L.contents){var I,V;return(V=(I=S.find(function(W){return!!W.videoPrimaryInfoRenderer}))==null?void 0:I.videoPrimaryInfoRenderer)==null?void 0:V.updatedMetadataEndpoint}};
tBi=function(S,p){var U;return(U=S.sourceConfigs)==null?void 0:U.find(function(Y){return Y.videoId===p})};
Xv=function(S){return S==="End of video"||S==="End of playlist"};
cGA=function(S){var p,U,Y,L;return(p=S.getWatchNextResponse())==null?void 0:(U=p.contents)==null?void 0:(Y=U.twoColumnWatchNextResults)==null?void 0:(L=Y.playlist)==null?void 0:L.playlist};
SfL=function(S){var p,U,Y,L,I,V;return(p=cGA(S))==null?void 0:(U=p.playlistButtons)==null?void 0:(Y=U.menuRenderer)==null?void 0:(L=Y.topLevelButtons)==null?void 0:(I=L[0])==null?void 0:(V=I.playlistLoopButtonRenderer)==null?void 0:V.playlistLoopStateEntityKey};
pZt=function(S){var p=_.tW().resolve(_.Fz),U;return(p=(U=_.b(p.getAutoplayEndpoint(),_.E$))==null?void 0:U.playlistId)&&p===S};
LTq=function(S,p,U,Y,L){function I(){_.PA.cancelJob(P5);var V=Uit(p,U/S.getPlaybackRate()),W=V.hours,O=V.minutes;V=(V.seconds*1E3||6E4)/S.getPlaybackRate();S.setVideoTimeLeft(Yfd(W,O));Y&&S.getPlayerState()!==0&&S.setSleepTimerTimeLeft(Yfd(W,O,!0));(W>0||O>0)&&!L&&(P5=_.HG(_.PA,I,V))}
_.PA.cancelJob(P5);P5=_.HG(_.PA,I)};
MKL=function(S,p,U){function Y(){_.PA.cancelJob(ZX);var L=Uit(p,U),I=L.hours;L=L.minutes;var V=6E4/S.getPlaybackRate();if(I>0||L>0)S.setSleepTimerTimeLeft(Yfd(I,L,!0)),ZX=_.HG(_.PA,Y,V)}
_.PA.cancelJob(ZX);ZX=_.HG(_.PA,Y)};
IfX=function(S,p){var U=S.getVolume()/(p/500),Y=function(L){_.PA.cancelJob(s_);var I=Math.floor(L-U);S.setVolume(I,!1);I>0&&(s_=_.HG(_.PA,function(){Y(I)},500))};
_.PA.cancelJob(s_);s_=_.HG(_.PA,function(){Y(S.getVolume())})};
diX=function(S,p){_.PA.cancelJob(s_);p&&S.syncVolume()};
VKi=function(){var S={openPopupAction:{popupType:"TOAST",popup:{notificationActionRenderer:{responseText:{simpleText:_.Oh("SLEEP_TIMER_DISRUPTED")}}}}};_.tW().resolve(_.cQ).resolveCommand(S)};
TLt=function(S){return(S.getDuration()-S.getProgressState().current)*1E3};
Uit=function(S,p){S=S+p-(0,_.AI)();if(S<=0)return{hours:0,minutes:0,seconds:0};var U=new WTn(0,0,0,0,0,0,S);S=U.getHours();p=U.getMinutes();U=U.getSeconds();U!==0&&p++;p!==0&&p%60===0&&(S++,p=0);return{hours:S,minutes:p,seconds:U}};
Yfd=function(S,p,U){return S>0&&p>0?U?_.Oh("TIME_LEFT_HOURS_MINUTES",{hours:S.toString(),minutes:p.toString()}):_.Oh("TIME_HOURS_MINUTES",{hours:S.toString(),minutes:p.toString()}):S>0?U?_.kd("TIME_LEFT_HOURS",S):_.kd("TIME_HOURS",S):U?_.Oh("TIME_LEFT_MINUTES",{minutes:p.toString()}):_.Oh("TIME_MINUTES",{minutes:p.toString()})};
Ods=function(S,p){if(S.timelyActions)return S.timelyActions.find(function(U){var Y;return((Y=_.b(U,eE))==null?void 0:Y.cueRangeId)===p})};
kit=function(S){var p=["expflag","debug_forced_internalcountrycode","internalcountrycode"];_.t2(S);S.keyMap_.forEach(function(U,Y){_.ou(p,Y)||this.remove(Y)},S)};
HdJ=function(S,p){S.reloadContinuationItemsCommandMatcher=p};
_.gp=function(S,p){S.insertBefore(p,S.childNodes[0]||null)};
DiJ=function(S){if(S>=48&&S<=57||S>=96&&S<=106||S>=65&&S<=90||_.pT&&S==0)return!0;switch(S){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 _.SR;default:return!1}};
zGP=function(S){if(S.altKey&&!S.ctrlKey||S.metaKey||S.keyCode>=112&&S.keyCode<=123)return!1;if(DiJ(S.keyCode))return!0;switch(S.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!_.SR;default:return S.keyCode<166||S.keyCode>183}};
WTn=function(S,p,U,Y,L,I,V){this.date=typeof S==="number"?new Date(S,p||0,U||1,Y||0,L||0,I||0,V||0):new Date(S&&S.getTime?S.getTime():_.BO())};
_.q_(WTn,_.zx);_.M=WTn.prototype;_.M.getHours=function(){return this.date.getHours()};
_.M.getMinutes=function(){return this.date.getMinutes()};
_.M.getSeconds=function(){return this.date.getSeconds()};
_.M.getMilliseconds=function(){return this.date.getMilliseconds()};
_.M.getUTCDay=function(){return this.date.getUTCDay()};
_.M.getUTCHours=function(){return this.date.getUTCHours()};
_.M.getUTCMinutes=function(){return this.date.getUTCMinutes()};
_.M.getUTCSeconds=function(){return this.date.getUTCSeconds()};
_.M.getUTCMilliseconds=function(){return this.date.getUTCMilliseconds()};
_.M.setHours=function(S){this.date.setHours(S)};
_.M.setMinutes=function(S){this.date.setMinutes(S)};
_.M.setSeconds=function(S){this.date.setSeconds(S)};
_.M.setMilliseconds=function(S){this.date.setMilliseconds(S)};
_.M.setUTCHours=function(S){this.date.setUTCHours(S)};
_.M.setUTCMinutes=function(S){this.date.setUTCMinutes(S)};
_.M.setUTCSeconds=function(S){this.date.setUTCSeconds(S)};
_.M.setUTCMilliseconds=function(S){this.date.setUTCMilliseconds(S)};
_.M.add=function(S){_.zx.prototype.add.call(this,S);S.hours&&this.setUTCHours(this.date.getUTCHours()+S.hours);S.minutes&&this.setUTCMinutes(this.date.getUTCMinutes()+S.minutes);S.seconds&&this.setUTCSeconds(this.date.getUTCSeconds()+S.seconds)};
_.M.JSC$9231_toIsoString=function(S){var p=_.zx.prototype.JSC$9231_toIsoString.call(this,S);return S?p+"T"+_.NO(this.getHours(),2)+":"+_.NO(this.getMinutes(),2)+":"+_.NO(this.getSeconds(),2):p+"T"+_.NO(this.getHours(),2)+_.NO(this.getMinutes(),2)+_.NO(this.getSeconds(),2)};
_.M.equals=function(S){return this.getTime()==S.getTime()};
_.M.toString=function(){return this.JSC$9231_toIsoString()};
_.M.clone=function(){var S=new WTn(this.date);S.firstDayOfWeek_=this.firstDayOfWeek_;S.firstWeekCutOffDay_=this.firstWeekCutOffDay_;return S};
_.Qvd=function(S){return _.S4({type:"SET_IS_WATCH_NARROW_WIDTH",payload:{isWatchNarrowWidth:S}})};
np5=new _.v("imageTileRenderer");var Jos=new _.v("adGridCardCollectionViewModel");var yoE=new _.v("carouselTitleViewModel");var KTY=new _.v("ctaCarouselItemViewModel");var bdL=new _.v("textFieldViewModel");_.jvA=new _.v("engagementPanelHeaderShowNavigationButtonCommand");var roi=new _.v("hideEngagementPanelScrimAction");var GiA=new _.v("setActivePanelItemAction");var hGt=new _.v("showEngagementPanelScrimAction");var RGX=new _.v("updateEngagementPanelAction");var FTE=new _.v("updateSearchInVideoResultsAction");var XZJ=new _.v("transcriptCueGroupRenderer");var PyT=new _.v("transcriptCueRenderer");var Zdi=new _.v("transcriptFooterRenderer");var sv5=new _.v("engagementPanelAdSubtitleRenderer");var eGJ=new _.v("videoDescriptionFantasySectionViewModel");var gpt=new _.v("deleteClipEngagementPanelCommand");var u9X=new _.v("loopCommand");var wZT=new _.v("changeCreatorEndscreenVisibilityCommand");var lf5=new _.v("liveChatCallForQuestionsRenderer");var afE=new _.v("updateTimedMarkersSyncObserverCommand");var eE=new _.v("timelyActionViewModel");var ffX=new _.v("timelyActionsOverlayViewModel");var CyP=new _.v("repeatChapterCommand");var xiA=new _.v("watchPlayerOverflowMenuCommand");var EpA=new _.v("compositeVideoOverlayRenderer");var mis=new _.v("sortFilterSubMenuRenderer");var opX=new _.v("switchListItemViewModel");var vpL=new _.v("inputComposerViewModel");var $iJ=new _.v("transcriptEditSegmentCommand");var idE=new _.v("transcriptUpdateSegmentTextCommand");var NLE=new _.v("transcriptSearchBoxRenderer");var BLP=new _.v("transcriptSegmentListRenderer");var qfo=new _.v("transcriptSegmentRenderer");_.AoE=new _.v("updateDateTextAction");var tKA=new _.v("updateTitleAction");var coP=new _.v("updateViewershipAction");var SZt=new _.v("carouselLockupRenderer");var pbA=new _.v("expandableVideoDescriptionBodyRenderer");var U$X=new _.v("videoDescriptionYouchatSectionViewModel");_.u3=_.pA("kevlar_watch_page_horizontal_margin",24);_.YZs=_.pA("kevlar_watch_page_columns_top_padding",24);_.LGs=426+_.u3*2;_.wp=_.pA("kevlar_watch_two_column_width_threshold",1E3);_.MhT=_.u3*2;_.IQs=_.pA("kevlar_watch_secondary_width",402);_.d$o=_.pA("kevlar_watch_max_player_width",1280);_.VhX=_.pA("kevlar_watch_flexy_metadata_height",136);_.TRE=_.MhT+310+_.u3;_.WGd=_.MhT+360+_.u3;var OeY={PAUSE_CHAT:18};var kOY;var HeX;var l3=function(){return _.w.apply(this,arguments)||this};
_.r(l3,_.w);l3.prototype.configureRendererStamper=function(){return{"data.button":{id:"button",mapping:{buttonViewModel:{component:"yt-button-view-model",properties:{scopingClassName:"[[is]]"}}},reuseComponents:!0}}};
l3.prototype.onEnabledChange=function(){if(this.data&&this.data.button){var S=_.b(this.data.button,_.K6);S&&(S.state=this.enabled?"BUTTON_VIEW_MODEL_STATE_ACTIVE":"BUTTON_VIEW_MODEL_STATE_DISABLED",this.data=Object.assign({},this.data))}};
_.$u.Object.defineProperties(l3,{template:{configurable:!0,enumerable:!0,get:function(){if(HeX===void 0){var S=document.createElement("template");_.h(S,'\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>');
S.content.insertBefore(_.t().content.cloneNode(!0),S.content.firstChild);var p=S.content,U=p.insertBefore;kOY===void 0&&(kOY=document.createElement("template"));var Y=kOY;U.call(p,Y.content.cloneNode(!0),S.content.firstChild);HeX=S}S=HeX;return S}}});
_.x([_.F(_.Zq),_.E("design:type",Object)],l3.prototype,"ytLiveChatReduxBehavior",void 0);_.x([_.F(_.qH.YtRendererstamperBehavior),_.E("design:type",Object)],l3.prototype,"ytRendererstamperBehavior",void 0);_.x([_.g({selectorArgs:["data.enabledEntityKey"],selector:yGT,observer:"onEnabledChange"}),_.E("design:type",Boolean)],l3.prototype,"enabled",void 0);_.x([_.g(),_.E("design:type",Object)],l3.prototype,"data",void 0);l3=_.x([_.FB({is:"yt-disableable-button-view-model",noInjection:!0})],l3);var D$i;var zad;var Qzs=["transVert01","transVert02","transVert03"],n$A="transHorizLeft01 transHorizRight01 transHorizLeft02 transHorizRight02 transHorizLeft03 transHorizRight03 transHorizLeft04 transHorizRight04".split(" "),aj=function(){var S=_.w.apply(this,arguments)||this;S.emojiManager=_.Zm;S.isDarkTheme=document.documentElement.hasAttribute("dark");S.actionMap={"yt-create-user-reaction-animation":"createUserReactionAnimation"};S.reactionBuckets=[];S.noEmojiIdentifier="NO_EMOJI";return S};
_.r(aj,_.w);_.M=aj.prototype;_.M.isActiveChanged=function(){this.isActive||this.cleanupFountain()};
_.M.desktopFountainEmojiSizePxChanged=function(){_.Ms(this.hostElement,{"--emoji-size":this.desktopFountainEmojiSizePx+"px"})};
_.M.createUserReactionAnimation=function(S){this.createEmojiAnimation(S,!0)};
_.M.cleanupFountain=function(){clearTimeout(this.emojiBucketTimerId);clearTimeout(this.emojiAnimationTimerId);var S;((S=this.data)==null?0:S.emojiFountainDataEntityKey)&&this.ytLiveChatReduxBehavior.dispatch(_.WG("emojiFountainDataEntity",this.data.emojiFountainDataEntityKey,{}));[].concat(_.jo(this.emojiContainer.children)).forEach(function(p){p.remove()})};
_.M.detached=function(){this.cleanupFountain()};
_.M.onEmojiFountainDataEntityUpdate=function(){if(this.isActive){clearTimeout(this.emojiBucketTimerId);var S;this.reactionBuckets=_.h9.unsafeClone((S=this.emojiFountainData)==null?void 0:S.reactionBuckets)||[];this.processEmojiBucket(0)}};
_.M.processEmojiBucket=function(S){var p=this;if(this.reactionBuckets&&!(S>=this.reactionBuckets.length)){clearTimeout(this.emojiAnimationTimerId);var U=this.reactionBuckets[S];this.generateEmojiAnimations(U);if(S<this.reactionBuckets.length-1){var Y;if(U==null?0:(Y=U.duration)==null?0:Y.seconds)this.emojiBucketTimerId=setTimeout(function(){p.processEmojiBucket(S+1)},Number(U.duration.seconds)*1E3)}}};
_.M.generateEmojiAnimations=function(S){var p=this,U=this.getRandomEmojiIdFromBucketWithOverride(S);if(U&&U!==this.noEmojiIdentifier){var Y=0;S.targetEps?(Y=this.linearInterpolateBounded(1,20,100,12,S.emojiSizeIndex||0),this.createEmojiAnimation(U,!1,S.emojiAnimationMs,Y),Y=this.getEmojiDelayMsFromTargetEps(S.targetEps)):(this.createEmojiAnimation(U),Y=this.getEmojiDelayMsFromDistribution(S.intensityScore));this.emojiAnimationTimerId=setTimeout(function(){p.generateEmojiAnimations(S)},Y)}};
_.M.getRandomEmojiIdFromBucketWithOverride=function(S){if(!(S&&S.reactionsData&&S.reactionsData.length&&S.totalReactions))return this.noEmojiIdentifier;for(var p=S.totalReactions,U=1,Y=_.d(S.reactionsData),L=Y.next();!L.done;L=Y.next())L=L.value,(L.reactionWeightOverride||L.reactionWeightOverride===0)&&L.reactionCount&&(p-=L.reactionCount,U-=L.reactionWeightOverride);Y=!0;U<0&&(Y=!1,p=S.totalReactions,U=1);if(Y&&U>0&&p===0)if(U===1){L=0;for(var I=_.d(S.reactionsData),V=I.next();!V.done;V=I.next())V=
V.value,V.reactionCount&&V.reactionCount>0&&L++;L=1/L;I=_.d(S.reactionsData);for(V=I.next();!V.done;V=I.next())V.value.reactionWeightOverride=L}else for(L=1/(1-U),I=_.d(S.reactionsData),V=I.next();!V.done;V=I.next())V=V.value,V.reactionWeightOverride&&(V.reactionWeightOverride*=L);L=Math.random();I=0;V=_.d(S.reactionsData);for(var W=V.next();!W.done;W=V.next())if(W=W.value,W.reactionCount&&(I=(W.reactionWeightOverride||W.reactionWeightOverride===0)&&Y?I+W.reactionWeightOverride:I+U*W.reactionCount/
p,I>L&&(W.reactionCount--,S.totalReactions--,W=this.reactionItemToEmojiString(W),W!==this.noEmojiIdentifier)))return W;return this.noEmojiIdentifier};
_.M.reactionItemToEmojiString=function(S){if(S.unicodeEmojiId)return S.unicodeEmojiId;if(S.emoteId)return S.emoteId;if(S.videoReactionType)switch(S.videoReactionType){case "VIDEO_REACTION_TYPE_LIKE":return"yt-icons:like-filled"}return this.noEmojiIdentifier};
_.M.createEmojiAnimation=function(S,p,U,Y){p=p===void 0?!1:p;this.lastEmojiRequestedForTesting=S;var L=S.startsWith("yt-icons:"),I=_.Xt(this.emojiManager,S);if(I||L){var V=document.createElement("emoji");V.classList.add("yt-emoji-fountain-view-model");V.classList.add(Qzs[Math.floor(Math.random()*Qzs.length)]);var W=document.createElement("div");W.classList.add("yt-emoji-fountain-view-model");W.classList.add("horizontal-container");W.classList.add(n$A[Math.floor(Math.random()*n$A.length)]);p?(U=document.createElement("div"),
U.classList.add("user-reaction-bubble"),U.classList.add("yt-emoji-fountain-view-model"),W.appendChild(U)):(U&&(V.style.animationDuration=U+"ms",W.style.animationDuration=U+"ms"),Y&&(V.style.width=Y+"px",V.style.height=Y+"px"));L?(L=document.createElement("yt-icon"),L.polymerController.icon=S,Y&&(L.style.width=Y+"px",L.style.height=Y+"px"),S=L):S=this.emojiManager.createEmoji(I,!1);S.classList.add("yt-emoji-fountain-view-model");W.appendChild(S);V.appendChild(W);this.emojiContainer.appendChild(V);
V.addEventListener("animationend",function(){V.remove()});
var O,D;if((O=this.data)==null?0:(D=O.loggingDirectives)==null?0:D.trackingParams)p=p?_.bZ(183501):_.bZ(183500),KRT(this.data.loggingDirectives.trackingParams,p),_.e5u(p);setTimeout(function(){V&&V.remove()},2E3)}};
_.M.getEmojiDelayMsFromDistribution=function(S){return Math.random()*(S||1)*1E3};
_.M.getEmojiDelayMsFromTargetEps=function(S){return Math.random()*2*(1/S)*1E3};
_.M.linearInterpolateBounded=function(S,p,U,Y,L){L=Math.min(Math.max(L,S),U);return(p*(U-L)+Y*(L-S))/(U-S)};
aj.prototype.onEmojiFountainDataEntityUpdate=aj.prototype.onEmojiFountainDataEntityUpdate;aj.prototype.desktopFountainEmojiSizePxChanged=aj.prototype.desktopFountainEmojiSizePxChanged;aj.prototype.isActiveChanged=aj.prototype.isActiveChanged;_.x([_.g(),_.E("design:type",_.Ft)],aj.prototype,"emojiManager",void 0);_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],aj.prototype,"ytRendererBehavior",void 0);_.x([_.F(_.Zq),_.E("design:type",Object)],aj.prototype,"ytLiveChatReduxBehavior",void 0);
_.x([_.F(_.Aj.YtActionHandlerBehavior),_.E("design:type",Object)],aj.prototype,"ytActionHandlerBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],aj.prototype,"data",void 0);_.x([_.g({selectorArgs:["data.emojiFountainDataEntityKey"],selector:function(S,p){return _.I4(S.entities,"emojiFountainDataEntity",p)}}),
_.E("design:type",Object)],aj.prototype,"emojiFountainData",void 0);_.x([_.g(),_.E("design:type",Boolean)],aj.prototype,"isActive",void 0);_.x([_.T4("isActive"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],aj.prototype,"isActiveChanged",null);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],aj.prototype,"isDarkTheme",void 0);_.x([_.g(),_.E("design:type",String)],aj.prototype,"lastEmojiRequestedForTesting",void 0);
_.x([_.g({value:function(){return _.pA("desktop_fountain_emoji_size_px",20)}}),
_.E("design:type",Number)],aj.prototype,"desktopFountainEmojiSizePx",void 0);_.x([_.T4("desktopFountainEmojiSizePx"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],aj.prototype,"desktopFountainEmojiSizePxChanged",null);_.x([_.O2("#emoji-container"),_.E("design:type",HTMLElement)],aj.prototype,"emojiContainer",void 0);
_.x([_.T4("emojiFountainData"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],aj.prototype,"onEmojiFountainDataEntityUpdate",null);aj=_.x([_.FB({disableElementRegistration:!0,is:"yt-emoji-fountain-view-model",noInjection:!0})],aj);
_.C(aj,"yt-emoji-fountain-view-model",function(){if(zad===void 0){var S=document.createElement("template");_.h(S,'\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>');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);var p=S.content,U=p.insertBefore;D$i===void 0&&(D$i=document.createElement("template"));var Y=D$i;U.call(p,Y.content.cloneNode(!0),S.content.firstChild);zad=S}S=zad;return S},{mode:_.y("live_chat_enable_sink_wrapper")?2:0});var JmJ;var ymY;var fw=function(){return _.w.apply(this,arguments)||this};
_.r(fw,_.w);fw.prototype.onChoiceChanged=function(){this.data&&_.Ms(this.hostElement,{"--yt-live-chat-poll-choice-vote-bar-transform":"translateX("+(100*(this.data.voteRatio||0)-100+"%)")})};
fw.prototype.onChoiceChanged=fw.prototype.onChoiceChanged;_.x([_.g(),_.E("design:type",Object)],fw.prototype,"data",void 0);_.x([_.T4("data"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],fw.prototype,"onChoiceChanged",null);fw=_.x([_.f({disableElementRegistration:!0,is:"yt-live-chat-banner-poll-choice"})],fw);
_.C(fw,"yt-live-chat-banner-poll-choice",function(){if(ymY===void 0){var S=document.createElement("template");_.h(S,'\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');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);var p=S.content,U=p.insertBefore;JmJ===void 0&&(JmJ=document.createElement("template"));var Y=JmJ;U.call(p,Y.content.cloneNode(!0),S.content.firstChild);ymY=S}S=ymY;return S},{mode:_.y("live_chat_enable_sink_wrapper")?2:0});var KGE;var bei;var Cw=function(){var S=_.w.apply(this,arguments)||this;S.modern=_.y("web_button_rework_with_live");S.small=!1;return S};
_.r(Cw,_.w);Cw.prototype.computeIsSmall=function(){var S;return((S=this.buttonOverrides)==null?void 0:S.size)==="S"};
Cw.prototype.computeId=function(){return this.data&&this.data.targetId};
_.x([_.F(_.sz.YtLiveChatTooltipTargetingBehavior),_.E("design:type",Object)],Cw.prototype,"ytLiveChatTooltipTargetingBehavior",void 0);_.x([_.g({computed:"computeId(data.targetId)",reflectToAttribute:!0}),_.E("design:type",String)],Cw.prototype,"id",void 0);_.x([_.g(),_.E("design:type",Object)],Cw.prototype,"buttonOverrides",void 0);_.x([_.g(),_.E("design:type",Object)],Cw.prototype,"data",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],Cw.prototype,"modern",void 0);
_.x([_.g({reflectToAttribute:!0,computed:"computeIsSmall(buttonOverrides)"}),_.E("design:type",Object)],Cw.prototype,"small",void 0);Cw=_.x([_.f({disableElementRegistration:!0,is:"yt-live-chat-button"})],Cw);
_.C(Cw,"yt-live-chat-button",function(){if(bei===void 0){var S=document.createElement("template");_.h(S,'\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');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);var p=S.content,U=p.insertBefore;KGE===void 0&&(KGE=document.createElement("template"));var Y=KGE;U.call(p,Y.content.cloneNode(!0),S.content.firstChild);bei=S}S=bei;return S},{mode:_.y("live_chat_enable_sink_wrapper")?2:0});var jzP;var rmA;var xH=function(){var S=_.w.apply(this,arguments)||this;S.inCollapsedBanner=!1;S.buttonOverrides={size:"S",style:"mono-inverse",iconPosition:"icon-only"};S.questionButtonOverrides={style:"mono",type:"filled"};return S};
_.r(xH,_.w);_.M=xH.prototype;_.M.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]]"}}}}}};
_.M.onContextMenuButtonClick=function(S){this.ytLiveChatItemBehavior.showContextMenu(S)};
_.M.onYtRendererstamperFinished=function(){this.menuButton=_.tB(this.hostElement).querySelector("#menu-button")};
_.M.dataChanged=function(){var S,p;if((p=_.b((S=this.data)==null?void 0:S.overflowMenuButton,_.XT))==null?0:p.command)this.data.contextMenuEndpoint=_.b(this.data.overflowMenuButton,_.XT).command};
_.M.onButtonClick=function(){var S,p=_.b((S=this.data)==null?void 0:S.askQuestionButton,_.XT);if(p){if(p.trackingParams&&(S=_.JS(p.trackingParams))){var U=_.X$();U&&_.xd(U,S)}_.cv(this.hostElement,"innertube-command",p.command)}};
xH.prototype.onYtRendererstamperFinished=xH.prototype.onYtRendererstamperFinished;_.x([_.F(_.qH.YtRendererstamperBehavior),_.E("design:type",Object)],xH.prototype,"ytRendererstamperBehavior",void 0);_.x([_.F(_.Zq),_.E("design:type",Object)],xH.prototype,"ytLiveChatReduxBehavior",void 0);_.x([_.F(_.sj.YtLiveChatItemBehavior),_.E("design:type",_.eN)],xH.prototype,"ytLiveChatItemBehavior",void 0);_.x([_.g({observer:"dataChanged"}),_.E("design:type",Object)],xH.prototype,"data",void 0);
_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],xH.prototype,"inCollapsedBanner",void 0);_.x([_.g(),_.E("design:type",Object)],xH.prototype,"buttonOverrides",void 0);_.x([_.g(),_.E("design:type",Object)],xH.prototype,"questionButtonOverrides",void 0);_.x([_.Vd("yt-rendererstamper-finished"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],xH.prototype,"onYtRendererstamperFinished",null);
xH=_.x([_.f({disableElementRegistration:!0,is:"yt-live-chat-call-for-questions-renderer"})],xH);
_.C(xH,"yt-live-chat-call-for-questions-renderer",function(){if(rmA===void 0){var S=document.createElement("template");_.h(S,'\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');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);var p=S.content,U=p.insertBefore;jzP===void 0&&(jzP=document.createElement("template"));var Y=jzP;U.call(p,Y.content.cloneNode(!0),S.content.firstChild);rmA=S}S=rmA;return S},{mode:_.y("live_chat_enable_sink_wrapper")?2:0});var GOq={};GOq.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 S=this;window.requestAnimationFrame(function(){S.restoreFocusNode_||(S.restoreFocusNode_=document.activeElement);var p=_.VMt(S.hostElement);p.length&&p[p.length-1].focus()})},
isAttachedChanged_:function(S,p){S?this.focusChild_():p&&this.restoreFocus_()},
hiddenChanged_:function(){this.hidden?this.restoreFocus_():this.focusChild_()},
restoreFocus_:function(){this.restoreFocusNode_&&(this.restoreFocusNode_.focus(),this.restoreFocusNode_=null)},
onFocus_:function(S){this.hidden||_.E1(S).indexOf(this.hostElement)!==-1||(S.stopPropagation(),this.focusChild_())}};var hat;var Rao;var E_=function(){return _.w.apply(this,arguments)||this};
_.r(E_,_.w);E_.prototype.configureRendererStamper=function(){return{"data.confirmButton":{id:"confirm_button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.cancelButton":{id:"cancel_button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
E_.prototype.onClick=function(S){S.target!==this.confirmButton&&S.target!==this.cancelButton&&(this.hidden=!0)};
_.x([_.O2("#confirm_button"),_.E("design:type",Object)],E_.prototype,"confirmButton",void 0);_.x([_.O2("#cancel_button"),_.E("design:type",Object)],E_.prototype,"cancelButton",void 0);_.x([_.g(),_.E("design:type",FGJ)],E_.prototype,"data",void 0);_.x([_.g({value:!0,reflectToAttribute:!0}),_.E("design:type",Boolean)],E_.prototype,"hidden",void 0);_.x([_.F(_.qH.YtRendererstamperBehavior),_.E("design:type",Object)],E_.prototype,"ytRendererstamperBehavior",void 0);
_.x([_.F(GOq.YtLiveChatDialogBehavior),_.E("design:type",Object)],E_.prototype,"ytLiveChatDialogBehavior",void 0);E_=_.x([_.FB({disableElementRegistration:!0,is:"yt-live-chat-dialog-renderer",noInjection:!0})],E_);
var FGJ=_.C(E_,"yt-live-chat-dialog-renderer",function(){if(Rao===void 0){var S=document.createElement("template");_.h(S,'\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');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);var p=S.content,U=p.insertBefore;hat===void 0&&(hat=document.createElement("template"));var Y=hat;U.call(p,Y.content.cloneNode(!0),S.content.firstChild);Rao=S}S=Rao;return S},{mode:_.y("live_chat_enable_sink_wrapper")?2:0});var Xbn;var PvA,Zet=function(){if(PvA!==void 0)return PvA;var S=document.createElement("template");_.h(S,'\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');
S.content.insertBefore(_.t().content.cloneNode(!0),S.content.firstChild);var p=S.content,U=p.insertBefore;Xbn===void 0&&(Xbn=document.createElement("template"));var Y=Xbn;U.call(p,Y.content.cloneNode(!0),S.content.firstChild);return PvA=S};var szo;var eaX;var mW=function(){var S=_.w.apply(this,arguments)||this;S.tooltip=null;S.data=null;S.id="";S.active=!1;S.icon="";S.disabled=!1;S.showTooltip=!1;S.useToggledActiveState=!0;S.actionMap={"yt-live-chat-actions":"handleLiveChatActions"};return S};
_.r(mW,_.w);_.M=mW.prototype;
_.M.dataChanged=function(){var S;((S=this.data)==null?0:S.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,_.L3)(this.tooltip).textContent=this.data.tooltip):this.tooltip&&(this.hostElement.removeChild(this.tooltip),this.tooltip=null);var p;if((p=this.data)==null?0:p.disabled)this.disabled=!0};
_.M.computeId=function(S){return S};
_.M.computeIcon=function(S,p){if(!S)return"";if(this.useToggledActiveState)return"yt-icons:"+S.toLowerCase();var U,Y;return p&&((U=this.data)==null?0:(Y=U.toggledIcon)==null?0:Y.iconType)?"yt-icons:"+this.data.toggledIcon.iconType.toLowerCase():"yt-icons:"+S.toLowerCase()};
_.M.logPDGEntryPoint=function(){_.tLe(_.IS("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")};
_.M.immediatelyShowTooltip=function(){var S=_.tB(this.hostElement).querySelector("#tooltip");S.animationDelay=0;S.animationConfig={entry:[{name:"fade-in-animation",timing:{}}]};S.show()};
_.M.disabledChanged=function(){this.disabled?this.hostElement.setAttribute("aria-disabled",""):this.hostElement.removeAttribute("aria-disabled")};
_.M.onClick=function(S){var p;((p=this.data)==null?0:p.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(),S.stopPropagation())),this.id!=="creator"&&this.id!=="product-picker"||this.removeBubble(),_.cv(this.hostElement,"yt-live-chat-icon-toggle-button-renderer-toggle",{targetId:this.id}))};
_.M.computeShowTooltip=function(S,p){return!!(S&&S.tooltip&&p)};
_.M.maybeUpdateTooltipText=function(){var S=this,p;if((p=this.data)==null?0:p.tooltip){var U=this.active&&this.data.activeTooltip?this.data.activeTooltip:this.data.tooltip;setTimeout(function(){(0,_.L3)(S.tooltip).textContent=U},250)}};
_.M.handleLiveChatActions=function(S){var p=this;S.length&&(this.id!=="creator"&&this.id!=="product-picker"||S.forEach(function(U){(U=p.get("addLiveChatTickerItemAction.item.liveChatTickerPaidMessageItemRenderer",U))&&U.durationSec===U.fullDurationSec&&p.startBubble(p.colorFromDecimal(U.startBackgroundColor))}))};
_.M.onAnimationEnd=function(){this.hostElement.removeAttribute("bubble")};
_.M.startBubble=function(S){_.Ms(this.hostElement,{"--yt-live-chat-monetization-button-glow":S});this.hostElement.setAttribute("bubble","")};
_.M.removeBubble=function(){this.hostElement.removeAttribute("bubble")};
_.M.colorFromDecimal=function(S){typeof S==="string"&&(S=Number(S));return"rgba("+[S>>16&255,S>>8&255,S&255,(S>>24&255)/255].join()+")"};
mW.prototype.onAnimationEnd=mW.prototype.onAnimationEnd;mW.prototype.disabledChanged=mW.prototype.disabledChanged;mW.prototype.dataChanged=mW.prototype.dataChanged;_.x([_.F(_.Aj.YtActionHandlerBehavior),_.E("design:type",Object)],mW.prototype,"ytActionHandlerBehavior",void 0);_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],mW.prototype,"ytRendererBehavior",void 0);
_.x([_.F(_.sz.YtLiveChatTooltipTargetingBehavior),_.E("design:type",Object)],mW.prototype,"ytLiveChatTooltipTargetingBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],mW.prototype,"data",void 0);_.x([_.g({computed:"computeId(data.targetId)",reflectToAttribute:!0}),_.E("design:type",Object)],mW.prototype,"id",void 0);_.x([_.g({notify:!0,reflectToAttribute:!0}),_.E("design:type",Object)],mW.prototype,"active",void 0);
_.x([_.g({readOnly:!0,computed:"computeIcon(data.icon.iconType, active)"}),_.E("design:type",Object)],mW.prototype,"icon",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],mW.prototype,"disabled",void 0);_.x([_.g({computed:"computeShowTooltip(data, disabled)"}),_.E("design:type",Object)],mW.prototype,"showTooltip",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],mW.prototype,"useToggledActiveState",void 0);
_.x([_.T4("data"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],mW.prototype,"dataChanged",null);_.x([_.T4("disabled"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],mW.prototype,"disabledChanged",null);_.x([_.Vd("animationend"),_.E("design:type",Function),_.E("design:paramtypes",[Event]),_.E("design:returntype")],mW.prototype,"onAnimationEnd",null);
mW=_.x([_.FB({disableElementRegistration:!0,is:"yt-live-chat-icon-toggle-button-renderer",noInjection:!0})],mW);
_.C(mW,"yt-live-chat-icon-toggle-button-renderer",function(){if(eaX===void 0){var S=document.createElement("template");_.h(S,'\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');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);var p=S.content,U=p.insertBefore;szo===void 0&&(szo=document.createElement("template"));var Y=szo;U.call(p,Y.content.cloneNode(!0),S.content.firstChild);eaX=S}S=eaX;return S},{mode:_.y("live_chat_enable_sink_wrapper")?2:0});var g$o;var uSE;var oj=function(){return _.w.apply(this,arguments)||this};
_.r(oj,_.w);oj.prototype.configureRendererStamper=function(){return{"data.helpButton":{id:"help-button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.closeButton":{id:"close-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
_.x([_.g(),_.E("design:type",Object)],oj.prototype,"data",void 0);_.x([_.F(_.qH.YtRendererstamperBehavior),_.E("design:type",Object)],oj.prototype,"ytRendererstamperBehavior",void 0);oj=_.x([_.f({disableElementRegistration:!0,is:"yt-live-chat-message-input-prompt-header-renderer"})],oj);
_.C(oj,"yt-live-chat-message-input-prompt-header-renderer",function(){if(uSE===void 0){var S=document.createElement("template");_.h(S,'\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>');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);var p=S.content,U=p.insertBefore;g$o===void 0&&(g$o=document.createElement("template"));var Y=g$o;U.call(p,Y.content.cloneNode(!0),S.content.firstChild);uSE=S}S=uSE;return S},{mode:_.y("live_chat_enable_sink_wrapper")?2:0});var wbo;var lQn;var aQo;var fQn;var CvJ;var x$P;var v5=function(){return _.w.apply(this,arguments)||this};
_.r(v5,_.w);_.x([_.g(),_.E("design:type",Object)],v5.prototype,"data",void 0);v5=_.x([_.FB({disableElementRegistration:!0,is:"yt-live-chat-message-subtext-renderer",noInjection:!0})],v5);
_.C(v5,"yt-live-chat-message-subtext-renderer",function(){if(x$P===void 0){var S=document.createElement("template");_.h(S,'\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');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);var p=S.content,U=p.insertBefore;CvJ===void 0&&(CvJ=document.createElement("template"));var Y=CvJ;U.call(p,Y.content.cloneNode(!0),S.content.firstChild);x$P=S}S=x$P;return S},{mode:_.y("live_chat_enable_sink_wrapper")?2:0});var $H=function(){var S=_.w.apply(this,arguments)||this;S.subtextOnBottom=!1;S.buttonOverrides={style:"mono",type:"tonal"};return S};
_.r($H,_.w);$H.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"}}}};
_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],$H.prototype,"ytRendererBehavior",void 0);_.x([_.F(_.qH.YtRendererstamperBehavior),_.E("design:type",Object)],$H.prototype,"ytRendererstamperBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],$H.prototype,"data",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],$H.prototype,"subtextOnBottom",void 0);_.x([_.g(),_.E("design:type",Object)],$H.prototype,"buttonOverrides",void 0);
$H=_.x([_.FB({disableElementRegistration:!0,is:"yt-live-chat-message-renderer",noInjection:!0})],$H);
_.C($H,"yt-live-chat-message-renderer",function(){if(fQn===void 0){var S=document.createElement("template");_.h(S,'\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');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);var p=S.content,U=p.insertBefore;aQo===void 0&&(aQo=document.createElement("template"));var Y=aQo;U.call(p,Y.content.cloneNode(!0),S.content.firstChild);fQn=S}S=fQn;return S},{mode:_.y("live_chat_enable_sink_wrapper")?2:0});var E$A;var m$o;var i3=function(){var S=_.w.apply(this,arguments)||this;S.isRemovable=!1;S.hasPrefilledText=!1;S.isInputDirty=!1;S.overCharacterLimit=!1;S.underCharacterLimit=!1;S.showErrorMessage=!1;return S};
_.r(i3,_.w);_.M=i3.prototype;_.M.computeId=function(){return this.data.id};
_.M.computeInputData=function(){return this.data.inputData};
_.M.computeHasPrefilledText=function(){return this.data.hasPrefilledText};
_.M.computeIsRemovable=function(){return!!this.data&&!!this.data.isRemovable};
_.M.computeShowErrorMessage=function(){return this.data&&this.data.charCountErrorText?this.overCharacterLimit||this.underCharacterLimit&&this.isInputDirty:!1};
_.M.getLiveChatRichMessageInput=function(){return _.tB(this.hostElement).querySelector("#input").liveChatRichMessageInput};
_.M.clearInput=function(){_.tB(this.hostElement).querySelector("#input").setLiveChatRichMessageInput(null)};
_.M.computeCharactersRemaining=function(){if(this.data&&this.data.maxCharacterLimit!==void 0&&this.characterCount!==void 0)return this.data.maxCharacterLimit-this.characterCount};
_.M.computeOverCharacterLimit=function(){return this.charactersRemaining!==void 0&&this.charactersRemaining<0};
_.M.computeUnderCharacterLimit=function(){return this.hasPrefilledText?!1:!!this.data&&this.characterCount!==void 0&&this.data.minCharacterLimit>this.characterCount};
_.M.handleTextInputCharCountChanged=function(S){S=S.detail&&S.detail.characterCount;S!==void 0&&(this.characterCount=S,S!==0&&(this.isInputDirty=!0))};
_.M.onInputFocusOut=function(){this.isInputDirty=!0};
_.M.onClickCloseButton=function(){_.cv(this.hostElement,"yt-live-chat-poll-editor-input-closed",{id:this.id})};
i3.prototype.handleTextInputCharCountChanged=i3.prototype.handleTextInputCharCountChanged;_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],i3.prototype,"ytRendererBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],i3.prototype,"data",void 0);_.x([_.g({computed:"computeId(data.id)"}),_.E("design:type",String)],i3.prototype,"id",void 0);_.x([_.g({computed:"computeInputData(data.inputData)"}),_.E("design:type",Object)],i3.prototype,"inputData",void 0);
_.x([_.g({reflectToAttribute:!0,computed:"computeIsRemovable(data.isRemovable)"}),_.E("design:type",Object)],i3.prototype,"isRemovable",void 0);_.x([_.g({reflectToAttribute:!0,computed:"computeHasPrefilledText(data.hasPrefilledText)"}),_.E("design:type",Object)],i3.prototype,"hasPrefilledText",void 0);_.x([_.g({computed:"computeCharactersRemaining(data.maxCharacterLimit, characterCount)"}),_.E("design:type",Number)],i3.prototype,"charactersRemaining",void 0);
_.x([_.g(),_.E("design:type",Number)],i3.prototype,"characterCount",void 0);_.x([_.g(),_.E("design:type",Object)],i3.prototype,"isInputDirty",void 0);_.x([_.g({reflectToAttribute:!0,computed:"computeOverCharacterLimit(charactersRemaining)"}),_.E("design:type",Object)],i3.prototype,"overCharacterLimit",void 0);_.x([_.g({computed:"computeUnderCharacterLimit(data, characterCount, hasPrefilledText)"}),_.E("design:type",Object)],i3.prototype,"underCharacterLimit",void 0);
_.x([_.g({reflectToAttribute:!0,computed:"computeShowErrorMessage(data.charCountErrorText, overCharacterLimit, isInputDirty, characterCount)"}),_.E("design:type",Object)],i3.prototype,"showErrorMessage",void 0);_.x([_.Vd("yt-live-chat-text-input-field-renderer-character-count-changed"),_.E("design:type",Function),_.E("design:paramtypes",[CustomEvent]),_.E("design:returntype")],i3.prototype,"handleTextInputCharCountChanged",null);
i3=_.x([_.FB({disableElementRegistration:!0,is:"yt-live-chat-poll-editor-input",noInjection:!0})],i3);
_.C(i3,"yt-live-chat-poll-editor-input",function(){if(m$o===void 0){var S=document.createElement("template");_.h(S,'\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');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);var p=S.content,U=p.insertBefore;E$A===void 0&&(E$A=document.createElement("template"));var Y=E$A;U.call(p,Y.content.cloneNode(!0),S.content.firstChild);m$o=S}S=m$o;return S},{mode:_.y("live_chat_enable_sink_wrapper")?2:0});var o$X;var v$n;var $$5={minPollOptions:2,maxPollOptions:4,minPollOptionChars:1,maxPollOptionChars:35,maxPollQuestionChars:100,optionPlaceholderText:{simpleText:""},questionPlaceholderText:{simpleText:""},customOptionPlaceholderText:[],pollOptionData:{}},N7=function(){var S=_.w.apply(this,arguments)||this;S.modern=_.y("web_button_rework_with_live");S.closeButtonOverrides={iconPosition:"icon-only"};S.startButtonOverrides={style:"mono",type:"filled"};S.addOptionButtonOverrides={style:"mono",type:"text"};return S};
_.r(N7,_.w);_.M=N7.prototype;
_.M.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"}}}}};
_.M.dataChanged=function(){this.isValidPoll=this.getIsValidPoll();var S;_.b((S=this.data)==null?void 0:S.startButton,_.XT)&&this.set("data.startButton.buttonRenderer.isDisabled",!this.isValidPoll)};
_.M.computeId=function(){return this.data&&this.data.id||""};
_.M.computeOverQuestionCharacterLimit=function(){return this.pollEditorInfoWithDefaults?this.pollQuestionCharacterCount>this.pollEditorInfoWithDefaults.maxPollQuestionChars:!1};
_.M.computeCurrentNumPollOptions=function(){return this.pollOptionsData.length};
_.M.computeHasMaxNumPollOptions=function(){return!this.pollEditorInfoWithDefaults||this.currentNumPollOptions>=this.pollEditorInfoWithDefaults.maxPollOptions};
_.M.computeShowQuestionErrorMessage=function(){return!!this.pollEditorInfoWithDefaults&&this.overQuestionCharacterLimit&&!!this.pollEditorInfoWithDefaults.pollQuestionCharCountErrorText};
_.M.shouldInitializePollChanged=function(){if(this.shouldInitializePoll)for(var S=0;S<this.pollEditorInfoWithDefaults.minPollOptions;S++)this.addPollOptionData()};
_.M.getIsValidPoll=function(){var S=this;if(!this.pollEditorInfoWithDefaults)return!1;var p=this.pollEditorInfoWithDefaults,U=p.minPollOptionChars,Y=p.maxPollOptionChars,L=p.customOptionPlaceholderText;if(this.pollQuestionCharacterCount>p.maxPollQuestionChars)return!1;p=_.tB(this.hostElement).querySelectorAll("yt-live-chat-poll-editor-input");return Array.from(p).every(function(I,V){I=I.characterCount;!I&&L[V]&&(I=S.ytRendererBehavior.getSimpleString(L[V]).length);return I!==void 0&&I>=U&&I<=Y})};
_.M.isValidPollChanged=function(){var S;_.b((S=this.data)==null?void 0:S.startButton,_.XT)&&this.set("data.startButton.buttonRenderer.isDisabled",!this.isValidPoll)};
_.M.addPollOptionData=function(){var S=this.pollEditorInfoWithDefaults,p=S.maxPollOptionChars,U=S.optionPlaceholderText,Y=S.customOptionPlaceholderText,L=S.pollOptionData;this.currentNumPollOptions>=S.maxPollOptions||(S={liveChatPollOptionInput:{inputData:{placeholder:Y[this.currentNumPollOptions]||U,maxCharacterLimit:p},maxCharacterLimit:p,minCharacterLimit:S.minPollOptionChars,hasPrefilledText:!!Y[this.currentNumPollOptions],isRemovable:this.currentNumPollOptions>=S.minPollOptions}},L.charCountErrorText&&
(S.liveChatPollOptionInput.charCountErrorText=L.charCountErrorText),L.charsRemainingAltLabel&&(S.liveChatPollOptionInput.charsRemainingAltLabel=L.charsRemainingAltLabel),L.removeOptionAltText&&(S.liveChatPollOptionInput.removeOptionAltText=L.removeOptionAltText),this.push("pollOptionsData",S),L=Array.from(_.tB(_.tB(this.hostElement).querySelector("#poll-options")).children),L.forEach(function(I,V){I.polymerController.set("data.id",V)}),_.tB(L[L.length-1]).querySelector("#input").focus())};
_.M.getPollOptionInputValues=function(){var S=this,p=[],U=_.tB(this.hostElement).querySelectorAll("yt-live-chat-poll-editor-input"),Y=this.get("data.pollEditorInfo.customOptionPlaceholderText")||[];Array.from(U).forEach(function(L,I){var V=null;L=L.getLiveChatRichMessageInput();var W;(L==null?0:(W=L.textSegments)==null?0:W.length)?V=_.so(L):Y[I]&&(V=S.formattedStringToLiveChatRichMessageInput(Y[I]));p.push(V)});
return p};
_.M.requestCreateAndStartPoll=function(S){var p=this.getPollOptionInputValues();if(!p.some(function(Y){return!Y})){p={optionText:p};
var U=_.tB(_.tB(this.hostElement).querySelector("#poll-question")).firstChild;U&&U.liveChatRichMessageInput&&(p.questionText=_.so(U.liveChatRichMessageInput));_.Yd(this.hostElement,[S,p])}};
_.M.selectedChanged=function(){if(this.selected){var S=_.tB(_.tB(this.hostElement).querySelector("#start-button")).firstElementChild;if(S){var p;(p=_.tB(S).querySelector("#button")||_.p3(S).querySelector("button"))==null||p.focus()}}};
_.M.handleTextInputChanged=function(S){var p;((p=S.target)==null?void 0:p.id)==="poll-question-input"&&(this.pollQuestionCharacterCount=S.detail.characterCount);this.isValidPoll=this.getIsValidPoll()};
_.M.handleStartButtonAction=function(S){S.detail.actionName==="yt-service-request"&&(S.stopPropagation(),(S=S.detail.args[1])&&this.requestCreateAndStartPoll(S))};
_.M.handleServiceRequestSent=function(){this.createPollRequestInFlight=!0};
_.M.handleServiceRequestCompleted=function(S){this.createPollRequestInFlight=!1;(S=S.detail&&S.detail.data)&&S.success&&(_.cv(this.hostElement,"picker-cancelled"),_.St(this.hostElement,"yt-live-chat-close-engage-with-audience-editor-panels"))};
_.M.onCloseClick=function(){_.cv(this.hostElement,"picker-cancelled");_.St(this.hostElement,"yt-live-chat-close-engage-with-audience-editor-panels")};
_.M.onAddOptionButtonClick=function(){this.addPollOptionData();this.isValidPoll=this.getIsValidPoll()};
_.M.handlePollEditorInputClosed=function(S){var p=this.pollOptionsData.findIndex(function(U){return U.liveChatPollOptionInput.id===S.detail.id});
this.splice("pollOptionsData",p,1);this.isValidPoll=this.getIsValidPoll()};
_.M.onPickerCancelled=function(){this.reset()};
_.M.reset=function(){if(this.pollEditorInfoWithDefaults){for(;this.currentNumPollOptions>this.pollEditorInfoWithDefaults.minPollOptions;)this.pop("pollOptionsData");var S=_.tB(_.tB(this.hostElement).querySelector("#poll-question")).firstChild;S&&S.setLiveChatRichMessageInput(null);if(S=_.tB(this.hostElement).querySelectorAll("yt-live-chat-poll-editor-input")){S=_.d(Array.from(S));for(var p=S.next();!p.done;p=S.next())p.value.clearInput()}this.isValidPoll=this.getIsValidPoll()}};
_.M.formattedStringToLiveChatRichMessageInput=function(S){return S.simpleText?{text_segments:[S.simpleText]}:{text_segments:S.runs}};
_.$u.Object.defineProperties(N7.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($$5,this.data.pollEditorInfo)}},
shouldInitializePoll:{configurable:!0,enumerable:!0,get:function(){return!!this.pollEditorInfoWithDefaults&&!this.pollOptionsData.length}}});
N7.prototype.onPickerCancelled=N7.prototype.onPickerCancelled;N7.prototype.handlePollEditorInputClosed=N7.prototype.handlePollEditorInputClosed;N7.prototype.handleServiceRequestCompleted=N7.prototype.handleServiceRequestCompleted;N7.prototype.handleServiceRequestSent=N7.prototype.handleServiceRequestSent;N7.prototype.handleTextInputChanged=N7.prototype.handleTextInputChanged;N7.prototype.selectedChanged=N7.prototype.selectedChanged;N7.prototype.isValidPollChanged=N7.prototype.isValidPollChanged;
N7.prototype.shouldInitializePollChanged=N7.prototype.shouldInitializePollChanged;N7.prototype.dataChanged=N7.prototype.dataChanged;_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],N7.prototype,"ytRendererBehavior",void 0);_.x([_.F(_.qH.YtRendererstamperBehavior),_.E("design:type",Object)],N7.prototype,"ytRendererstamperBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],N7.prototype,"data",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],N7.prototype,"modern",void 0);
_.x([_.g(),_.E("design:type",Object)],N7.prototype,"closeButtonOverrides",void 0);_.x([_.g(),_.E("design:type",Object)],N7.prototype,"startButtonOverrides",void 0);_.x([_.g(),_.E("design:type",Object)],N7.prototype,"addOptionButtonOverrides",void 0);_.x([_.g({computed:"computeId(data.id)",reflectToAttribute:!0}),_.E("design:type",String)],N7.prototype,"id",void 0);_.x([_.g({value:function(){return[]}}),
_.E("design:type",Array)],N7.prototype,"pollOptionsData",void 0);_.x([_.e("pollEditorInfoWithDefaults"),_.E("design:type",Object),_.E("design:paramtypes",[])],N7.prototype,"pollQuestionData",null);_.x([_.g({value:0}),_.E("design:type",Number)],N7.prototype,"pollQuestionCharacterCount",void 0);_.x([_.e("pollEditorInfoWithDefaults.maxPollQuestionChars","pollQuestionCharacterCount"),_.E("design:type",Object),_.E("design:paramtypes",[])],N7.prototype,"pollQuestionCharactersRemaining",null);
_.x([_.g({reflectToAttribute:!0,computed:"computeOverQuestionCharacterLimit(pollQuestionCharacterCount, pollEditorInfoWithDefaults)"}),_.E("design:type",Boolean)],N7.prototype,"overQuestionCharacterLimit",void 0);_.x([_.e("data.pollEditorInfo"),_.E("design:type",Object),_.E("design:paramtypes",[])],N7.prototype,"pollEditorInfoWithDefaults",null);_.x([_.g({computed:"computeCurrentNumPollOptions(pollOptionsData.splices)",value:0}),_.E("design:type",Number)],N7.prototype,"currentNumPollOptions",void 0);
_.x([_.g({computed:"computeHasMaxNumPollOptions(pollEditorInfoWithDefaults, currentNumPollOptions)",reflectToAttribute:!0}),_.E("design:type",Boolean)],N7.prototype,"hasMaxNumPollOptions",void 0);_.x([_.e("pollEditorInfoWithDefaults","pollOptionsData"),_.E("design:type",Boolean),_.E("design:paramtypes",[])],N7.prototype,"shouldInitializePoll",null);_.x([_.g(),_.E("design:type",Object)],N7.prototype,"isValidPoll",void 0);
_.x([_.g({value:!1,reflectToAttribute:!0}),_.E("design:type",Boolean)],N7.prototype,"createPollRequestInFlight",void 0);_.x([_.g(),_.E("design:type",Object)],N7.prototype,"selected",void 0);_.x([_.g({value:!1,reflectToAttribute:!0,computed:"computeShowQuestionErrorMessage(pollEditorInfoWithDefaults, overQuestionCharacterLimit)"}),_.E("design:type",Boolean)],N7.prototype,"showQuestionErrorMessage",void 0);
_.x([_.T4("data"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],N7.prototype,"dataChanged",null);_.x([_.T4("shouldInitializePoll"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],N7.prototype,"shouldInitializePollChanged",null);_.x([_.T4("isValidPoll"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],N7.prototype,"isValidPollChanged",null);
_.x([_.T4("selected"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],N7.prototype,"selectedChanged",null);_.x([_.Vd("yt-live-chat-text-input-field-renderer-character-count-changed"),_.E("design:type",Function),_.E("design:paramtypes",[CustomEvent]),_.E("design:returntype")],N7.prototype,"handleTextInputChanged",null);
_.x([_.Vd("yt-service-request-sent"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],N7.prototype,"handleServiceRequestSent",null);_.x([_.Vd("yt-service-request-completed"),_.E("design:type",Function),_.E("design:paramtypes",[CustomEvent]),_.E("design:returntype")],N7.prototype,"handleServiceRequestCompleted",null);
_.x([_.Vd("yt-live-chat-poll-editor-input-closed"),_.E("design:type",Function),_.E("design:paramtypes",[CustomEvent]),_.E("design:returntype")],N7.prototype,"handlePollEditorInputClosed",null);_.x([_.Vd("picker-cancelled"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],N7.prototype,"onPickerCancelled",null);N7=_.x([_.FB({disableElementRegistration:!0,is:"yt-live-chat-poll-editor-panel-renderer",noInjection:!0})],N7);
_.C(N7,"yt-live-chat-poll-editor-panel-renderer",function(){if(v$n===void 0){var S=document.createElement("template");_.h(S,'\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');
S.content.insertBefore(_.t().content.cloneNode(!0),S.content.firstChild);var p=S.content,U=p.insertBefore;o$X===void 0&&(o$X=document.createElement("template"));var Y=o$X;U.call(p,Y.content.cloneNode(!0),S.content.firstChild);v$n=S}S=v$n;return S},{mode:_.y("live_chat_enable_sink_wrapper")?2:0});var ieY;var NRs;var B5=function(){return _.w.apply(this,arguments)||this};
_.r(B5,_.w);B5.prototype.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menuitem");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","-1")};
B5.prototype.onClick=function(){this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
_.$u.Object.defineProperties(B5.prototype,{itemId:{configurable:!0,enumerable:!0,get:function(){var S,p;return(S=this.data)==null?void 0:(p=S.title)==null?void 0:p.content}},
hasPromotion:{configurable:!0,enumerable:!0,get:function(){var S;return!((S=this.data)==null||!S.hasBlueDot)}},
innertubeCommand:{configurable:!0,enumerable:!0,get:function(){var S;return _.sW((S=this.data)==null?void 0:S.onTapCommand)}}});
_.x([_.F(_.WV.YtEndpointBehavior),_.E("design:type",Object)],B5.prototype,"ytEndpointBehavior",void 0);_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],B5.prototype,"ytRendererBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],B5.prototype,"data",void 0);_.x([_.g({reflectToAttribute:!0}),_.e("data"),_.E("design:type",Object),_.E("design:paramtypes",[])],B5.prototype,"itemId",null);
_.x([_.g({reflectToAttribute:!0}),_.e("data"),_.E("design:type",Boolean),_.E("design:paramtypes",[])],B5.prototype,"hasPromotion",null);_.x([_.e("data"),_.E("design:type",Object),_.E("design:paramtypes",[])],B5.prototype,"innertubeCommand",null);B5=_.x([_.FB({disableElementRegistration:!0,is:"yt-live-chat-product-picker-panel-item-view-model",noInjection:!0})],B5);
_.C(B5,"yt-live-chat-product-picker-panel-item-view-model",function(){if(NRs===void 0){var S=document.createElement("template");_.h(S,'\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>');
S.content.insertBefore(_.t().content.cloneNode(!0),S.content.firstChild);var p=S.content,U=p.insertBefore;ieY===void 0&&(ieY=document.createElement("template"));var Y=ieY;U.call(p,Y.content.cloneNode(!0),S.content.firstChild);NRs=S}S=NRs;return S},{mode:_.y("live_chat_enable_sink_wrapper")?2:0});var BRY;var qZE;var q7=function(){var S=_.w.apply(this,arguments)||this;S.id="product-picker";S.selected=!1;S.closeButtonId="close-button";S.actionMap={"yt-live-chat-close-buy-flow":"onCloseBuyFlow","yt-live-chat-close-engage-with-audience-editor-panels":"onCloseEngageWithAudienceEditorPanels"};return S};
_.r(q7,_.w);_.M=q7.prototype;_.M.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{liveChatProductPickerPanelItemViewModel:"yt-live-chat-product-picker-panel-item-view-model"}}}};
_.M.observeSelected=function(){this.selected&&this.hostElement.focus();var S=_.tB(this.hostElement).querySelectorAll("yt-live-chat-product-picker-panel-item-view-model");S.length&&S[0].focus()};
_.M.onCloseBuyFlow=function(){_.cv(this.hostElement,"picker-cancelled")};
_.M.onCloseClick=function(){_.cv(this.hostElement,"picker-cancelled");var S;((S=this.data)==null?0:S.closeButton)&&this.ytRendererBehavior.logExplicitClick(_.b(this.data.closeButton,_.K6))};
_.M.onCloseEngageWithAudienceEditorPanels=function(){_.cv(this.hostElement,"picker-cancelled")};
q7.prototype.observeSelected=q7.prototype.observeSelected;_.x([_.F(_.Aj.YtActionHandlerBehavior),_.E("design:type",Object)],q7.prototype,"ytActionHandlerBehavior",void 0);_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],q7.prototype,"ytRendererBehavior",void 0);_.x([_.F(_.qH.YtRendererstamperBehavior),_.E("design:type",Object)],q7.prototype,"ytRendererstamperBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],q7.prototype,"data",void 0);
_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],q7.prototype,"id",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],q7.prototype,"selected",void 0);_.x([_.g(),_.E("design:type",Object)],q7.prototype,"closeButtonId",void 0);_.x([_.T4("selected"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],q7.prototype,"observeSelected",null);
q7=_.x([_.FB({disableElementRegistration:!0,is:"yt-live-chat-product-picker-panel-view-model",noInjection:!0})],q7);
_.C(q7,"yt-live-chat-product-picker-panel-view-model",function(){if(qZE===void 0){var S=document.createElement("template");_.h(S,'\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>');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);var p=S.content,U=p.insertBefore;BRY===void 0&&(BRY=document.createElement("template"));var Y=BRY;U.call(p,Y.content.cloneNode(!0),S.content.firstChild);qZE=S}S=qZE;return S},{mode:_.y("live_chat_enable_sink_wrapper")?2:0});var AmE;var thA;var Aw=function(){var S=_.w.apply(this,arguments)||this;S.iconId="";S.icon="";S.disabled=!1;S.systemIcons=_.y("kevlar_system_icons");return S};
_.r(Aw,_.w);_.M=Aw.prototype;_.M.attached=function(){_.y("live_chat_compute_product_button_aria_label")||(this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menuitem"),this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","-1"))};
_.M.computeIconId=function(S){return S&&S.icon&&S.icon.iconType?S.icon.iconType.toLowerCase():""};
_.M.computeIcon=function(S){return S&&S.icon&&S.icon.iconType?(S=S.icon.iconType.toLowerCase(),(S.toLowerCase()=="gift"?"yt-sys-icons":"yt-icons")+":"+S):""};
_.M.computeDisabled=function(S){return!!S};
_.M.computeCommand=function(S,p){return p?void 0:S};
_.M.computeTooltip=function(S,p){return p&&S?S:""};
_.M.onClick=function(){this.data&&!this.disabled&&this.ytRendererBehavior.logExplicitClick(this.data)};
_.$u.Object.defineProperties(Aw.prototype,{ariaLabel:{configurable:!0,enumerable:!0,get:function(){if(!_.y("live_chat_compute_product_button_aria_label"))return"";var S,p,U;if((S=this.data)==null?0:(p=S.text)==null?0:(U=p.runs)==null?0:U.length)return this.data.text.runs[0].text||"";var Y,L;return((Y=this.data)==null?0:(L=Y.text)==null?0:L.simpleText)?this.data.text.simpleText:""}}});
_.x([_.F(_.WV.YtEndpointBehavior),_.E("design:type",Object)],Aw.prototype,"ytEndpointBehavior",void 0);_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],Aw.prototype,"ytRendererBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],Aw.prototype,"data",void 0);_.x([_.g({computed:"computeIconId(data)",reflectToAttribute:!0}),_.E("design:type",Object)],Aw.prototype,"iconId",void 0);
_.x([_.g({computed:"computeIcon(data)",reflectToAttribute:!0}),_.E("design:type",Object)],Aw.prototype,"icon",void 0);_.x([_.g({computed:"computeDisabled(data.isDisabled)",reflectToAttribute:!0}),_.E("design:type",Object)],Aw.prototype,"disabled",void 0);_.x([_.g({computed:"computeCommand(data.command, disabled)"}),_.E("design:type",Object)],Aw.prototype,"command",void 0);_.x([_.g({computed:"computeTooltip(data.disabledTooltip, disabled)"}),_.E("design:type",String)],Aw.prototype,"tooltip",void 0);
_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],Aw.prototype,"systemIcons",void 0);_.x([_.e("data.text"),_.g(),_.E("design:type",String),_.E("design:paramtypes",[])],Aw.prototype,"ariaLabel",null);Aw=_.x([_.FB({disableElementRegistration:!0,is:"yt-live-chat-product-button-renderer",noInjection:!0})],Aw);
_.C(Aw,"yt-live-chat-product-button-renderer",function(){if(thA===void 0){var S=document.createElement("template");_.h(S,'\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');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);var p=S.content,U=p.insertBefore;AmE===void 0&&(AmE=document.createElement("template"));var Y=AmE;U.call(p,Y.content.cloneNode(!0),S.content.firstChild);thA=S}S=thA;return S},{mode:_.y("live_chat_enable_sink_wrapper")?2:0});var cmq;var S4T;var tw=function(){var S=_.w.apply(this,arguments)||this;S.selected=!1;S.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 S};
_.r(tw,_.w);_.M=tw.prototype;_.M.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"}}}};
_.M.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menu");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","0")};
_.M.computeId=function(S){return S.id||""};
_.M.onCloseClick=function(){_.cv(this.hostElement,"picker-cancelled")};
_.M.observeSelected=function(){this.selected&&this.hostElement.focus();var S=this.hostElement.querySelectorAll("yt-live-chat-product-button-renderer");S.length&&S[0].focus()};
_.M.onCloseBuyFlow=function(){_.cv(this.hostElement,"picker-cancelled")};
_.M.onCloseEngageWithAudienceEditorPanels=function(){_.cv(this.hostElement,"picker-cancelled")};
tw.prototype.observeSelected=tw.prototype.observeSelected;_.x([_.F(_.Aj.YtActionHandlerBehavior),_.E("design:type",Object)],tw.prototype,"ytActionHandlerBehavior",void 0);_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],tw.prototype,"ytRendererBehavior",void 0);_.x([_.F(_.qH.YtRendererstamperBehavior),_.E("design:type",Object)],tw.prototype,"ytRendererstamperBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],tw.prototype,"data",void 0);
_.x([_.g({computed:"computeId(data)",reflectToAttribute:!0}),_.E("design:type",String)],tw.prototype,"id",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],tw.prototype,"selected",void 0);_.x([_.T4("selected"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],tw.prototype,"observeSelected",null);tw=_.x([_.FB({disableElementRegistration:!0,is:"yt-live-chat-product-picker-renderer",noInjection:!0})],tw);
_.C(tw,"yt-live-chat-product-picker-renderer",function(){if(S4T===void 0){var S=document.createElement("template");_.h(S,'\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');
S.content.insertBefore(_.t().content.cloneNode(!0),S.content.firstChild);var p=S.content,U=p.insertBefore;cmq===void 0&&(cmq=document.createElement("template"));var Y=cmq;U.call(p,Y.content.cloneNode(!0),S.content.firstChild);S4T=S}S=S4T;return S},{mode:_.y("live_chat_enable_sink_wrapper")?2:0});var pRE;var U3E;var Y4T;var LMt;var c5=function(){return _.w.apply(this,arguments)||this};
_.r(c5,_.w);c5.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()};
c5.prototype.computeUseRegularBackground=function(){return!this.useLargeBackground&&!this.useAnimationBackground};
c5.prototype.created=function(){this.ids={background:_.RL(),maskOne:_.RL(),maskTwo:_.RL(),gradient:_.RL(),largeBackground:_.RL(),largeGradientOne:_.RL(),largeGradientTwo:_.RL(),largeGradientPath:_.RL()}};
c5.prototype.maybeLoadAnimationBackground=c5.prototype.maybeLoadAnimationBackground;_.x([_.g({value:!1}),_.E("design:type",Boolean)],c5.prototype,"useLargeBackground",void 0);_.x([_.g({value:!1}),_.E("design:type",Boolean)],c5.prototype,"useAnimationBackground",void 0);_.x([_.g({value:!0,computed:"computeUseRegularBackground(useLargeBackground, useAnimationBackground)"}),_.E("design:type",Boolean)],c5.prototype,"useRegularBackground",void 0);
_.x([_.g(),_.E("design:type",Object)],c5.prototype,"ids",void 0);_.x([_.g(),_.E("design:type",Object)],c5.prototype,"lottieAnimation",void 0);_.x([_.O2("#animation-background"),_.E("design:type",HTMLDivElement)],c5.prototype,"animationBackground",void 0);_.x([_.T4("useAnimationBackground"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],c5.prototype,"maybeLoadAnimationBackground",null);
c5=_.x([_.FB({disableElementRegistration:!0,is:"yt-live-interactivity-component-background",noInjection:!0})],c5);
_.C(c5,"yt-live-interactivity-component-background",function(){if(LMt===void 0){var S=document.createElement("template");_.h(S,'\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');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);var p=S.content,U=p.insertBefore;Y4T===void 0&&(Y4T=document.createElement("template"));var Y=Y4T;U.call(p,Y.content.cloneNode(!0),S.content.firstChild);LMt=S}S=LMt;return S},{mode:_.y("live_chat_enable_sink_wrapper")?2:0});var ST=function(){var S=_.w.apply(this,arguments)||this;S.characterCount=0;S.showInputErrorMessage=!1;S.startQnaRequestInFlight=!1;S.modern=_.y("web_button_rework_with_live");S.buttonOverrides={style:"mono",type:"filled"};S.closeButtonOverrides={iconPosition:"icon-only"};S.actionMap={"yt-live-chat-open-qna-start-panel":"handleOpenQnaStartPanel"};return S};
_.r(ST,_.w);_.M=ST.prototype;
_.M.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]]"}}}}}};
_.M.onCharacterCountChanged=function(S){var p,U,Y,L,I=(U=_.b(this==null?void 0:(p=this.data)==null?void 0:p.creatorCallForQuestions,lf5))==null?void 0:(Y=U.inputField)==null?void 0:(L=Y.liveChatTextInputFieldRenderer)==null?void 0:L.maxCharacterLimit,V,W;I!=null&&(S==null?void 0:(V=S.detail)==null?void 0:V.characterCount)!=null&&_.b(this==null?void 0:(W=this.data)==null?void 0:W.startButton,_.XT)&&(p=S.detail.characterCount>I,this.set("data.startButton.buttonRenderer.isDisabled",S.detail.characterCount===
0||p),this.showInputErrorMessage=p)};
_.M.onCloseClick=function(){_.cv(this.hostElement,"picker-cancelled");_.St(this.hostElement,"yt-live-chat-close-engage-with-audience-editor-panels")};
_.M.onPickerCancelled=function(){var S=_.tB(this.hostElement).querySelector("#qna-creator-text-input-field");S&&S.setLiveChatRichMessageInput(null)};
_.M.handleOpenQnaStartPanel=function(){var S=_.tB(this.hostElement).querySelector("#qna-creator-text-input-field");S&&S.focus()};
_.M.handleStartButtonAction=function(S){var p=this;if(S.detail.actionName==="yt-service-request"&&(S.stopPropagation(),S=S.detail.args[1])){var U=_.tB(this.hostElement).querySelector("#qna-creator-text-input-field"),Y;(U==null?0:(Y=U.liveChatRichMessageInput)==null?0:Y.textSegments)&&U.liveChatRichMessageInput.textSegments.length!==0&&(Y={rich_message:_.so(U.liveChatRichMessageInput)},_.Yd(this.hostElement,[S,Y]).then(function(){_.cv(p.hostElement,"picker-cancelled")}))}};
_.M.handleServiceRequestSent=function(){this.startQnaRequestInFlight=!0};
_.M.handleServiceRequestCompleted=function(S){var p;S=S==null?void 0:(p=S.detail)==null?void 0:p.data;(S==null?0:S.actions)&&S.actions.length>0?this.startQnaRequestInFlight=!1:_.St(this.hostElement,"yt-live-chat-close-engage-with-audience-editor-panels")};
_.M.handleServiceRequestError=function(){this.startQnaRequestInFlight=!1};
ST.prototype.handleServiceRequestError=ST.prototype.handleServiceRequestError;ST.prototype.handleServiceRequestCompleted=ST.prototype.handleServiceRequestCompleted;ST.prototype.handleServiceRequestSent=ST.prototype.handleServiceRequestSent;ST.prototype.onPickerCancelled=ST.prototype.onPickerCancelled;ST.prototype.onCharacterCountChanged=ST.prototype.onCharacterCountChanged;_.x([_.g(),_.E("design:type",Object)],ST.prototype,"characterCount",void 0);
_.x([_.g(),_.E("design:type",Object)],ST.prototype,"data",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],ST.prototype,"showInputErrorMessage",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],ST.prototype,"startQnaRequestInFlight",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],ST.prototype,"modern",void 0);_.x([_.g(),_.E("design:type",Object)],ST.prototype,"buttonOverrides",void 0);
_.x([_.g(),_.E("design:type",Object)],ST.prototype,"closeButtonOverrides",void 0);_.x([_.F(_.qH.YtRendererstamperBehavior),_.E("design:type",Object)],ST.prototype,"ytRendererstamperBehavior",void 0);_.x([_.F(_.Zq),_.E("design:type",Object)],ST.prototype,"ytLiveChatReduxBehavior",void 0);_.x([_.F(_.sj.YtLiveChatItemBehavior),_.E("design:type",_.eN)],ST.prototype,"ytLiveChatItemBehavior",void 0);
_.x([_.F(_.Aj.YtActionHandlerBehavior),_.E("design:type",Object)],ST.prototype,"ytActionHandlerBehavior",void 0);_.x([_.Vd("yt-live-chat-text-input-field-renderer-character-count-changed"),_.E("design:type",Function),_.E("design:paramtypes",[CustomEvent]),_.E("design:returntype")],ST.prototype,"onCharacterCountChanged",null);_.x([_.Vd("picker-cancelled"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],ST.prototype,"onPickerCancelled",null);
_.x([_.Vd("yt-service-request-sent"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],ST.prototype,"handleServiceRequestSent",null);_.x([_.Vd("yt-service-request-completed"),_.E("design:type",Function),_.E("design:paramtypes",[CustomEvent]),_.E("design:returntype")],ST.prototype,"handleServiceRequestCompleted",null);
_.x([_.Vd("yt-service-request-error"),_.E("design:type",Function),_.E("design:paramtypes",[CustomEvent]),_.E("design:returntype")],ST.prototype,"handleServiceRequestError",null);ST=_.x([_.f({disableElementRegistration:!0,is:"yt-live-chat-qna-start-panel-renderer"})],ST);
_.C(ST,"yt-live-chat-qna-start-panel-renderer",function(){if(U3E===void 0){var S=document.createElement("template");_.h(S,'\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>');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);var p=S.content,U=p.insertBefore;pRE===void 0&&(pRE=document.createElement("template"));var Y=pRE;U.call(p,Y.content.cloneNode(!0),S.content.firstChild);U3E=S}S=U3E;return S},{mode:_.y("live_chat_enable_sink_wrapper")?2:0});var M_t;var IWs;var pG=function(){return _.w.apply(this,arguments)||this};
_.r(pG,_.w);pG.prototype.dismiss=function(){_.cv(this.hostElement,"yt-live-chat-error-message-dismiss")};
pG.prototype.edit=function(){_.cv(this.hostElement,"yt-live-chat-error-message-edit",this.data.originalRichMessage)};
_.x([_.g(),_.E("design:type",Object)],pG.prototype,"data",void 0);pG=_.x([_.FB({disableElementRegistration:!0,is:"yt-live-chat-text-actions-error-message-renderer",noInjection:!0})],pG);
_.C(pG,"yt-live-chat-text-actions-error-message-renderer",function(){if(IWs===void 0){var S=document.createElement("template");_.h(S,'\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');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);var p=S.content,U=p.insertBefore;M_t===void 0&&(M_t=document.createElement("template"));var Y=M_t;U.call(p,Y.content.cloneNode(!0),S.content.firstChild);IWs=S}S=IWs;return S},{mode:_.y("live_chat_enable_sink_wrapper")?2:0});var d3L;var V_5;var T2i;var WMP;var Uk=function(){var S=_.w.apply(this,arguments)||this;S.isDarkTheme=document.documentElement.hasAttribute("dark");S.newnessDotEligible=!1;return S};
_.r(Uk,_.w);Uk.prototype.sendReaction=function(){var S,p,U=((S=this.data)==null?void 0:S.emojiId)||((p=this.data)==null?void 0:p.emoteId),Y;U&&((Y=this.data)==null?0:Y.shouldTriggerAnimation)&&_.St(this.hostElement,"yt-create-user-reaction-animation",[U]);var L;(S=_.sW((L=this.data)==null?void 0:L.onTap))&&_.Te(S,this.hostElement);this.showNewnessDot&&_.St(this.hostElement,"yt-hide-newness-dot")};
Uk.prototype.onClick=function(S){(!S||S.clientX||S.clientY)&&this.sendReaction()};
Uk.prototype.onKeyDown=function(S){S.key!=="Enter"&&S.key!==" "||S.repeat||this.sendReaction()};
_.$u.Object.defineProperties(Uk.prototype,{showNewnessDot:{configurable:!0,enumerable:!0,get:function(){var S;return!((S=this.data)==null||!S.maybeShowNewnessDot)&&this.newnessDotEligible}},
useYtImage:{configurable:!0,enumerable:!0,get:function(){var S,p;return!!(((S=this.data)==null?0:S.emojiId)||((p=this.data)==null?0:p.emoteId))}}});
_.x([_.g(),_.E("design:type",Object)],Uk.prototype,"data",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],Uk.prototype,"isDarkTheme",void 0);_.x([_.g(),_.E("design:type",Object)],Uk.prototype,"newnessDotEligible",void 0);_.x([_.e("data.maybeShowNewnessDot"),_.E("design:type",Boolean),_.E("design:paramtypes",[])],Uk.prototype,"showNewnessDot",null);_.x([_.e("data.emojiId","data.emoteId"),_.E("design:type",Boolean),_.E("design:paramtypes",[])],Uk.prototype,"useYtImage",null);
Uk=_.x([_.FB({disableElementRegistration:!0,is:"yt-reaction-control-panel-button-view-model",noInjection:!0})],Uk);
_.C(Uk,"yt-reaction-control-panel-button-view-model",function(){if(WMP===void 0){var S=document.createElement("template");_.h(S,'\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');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);var p=S.content,U=p.insertBefore;T2i===void 0&&(T2i=document.createElement("template"));var Y=T2i;U.call(p,Y.content.cloneNode(!0),S.content.firstChild);WMP=S}S=WMP;return S},{mode:_.y("live_chat_enable_sink_wrapper")?2:0});var O1d;var k8Y;var YG=function(){var S=_.w.apply(this,arguments)||this;S.reactionControlPanelExpanded=!1;S.isDarkTheme=document.documentElement.hasAttribute("dark");S.newnessDotEligible=!1;return S};
_.r(YG,_.w);_.M=YG.prototype;_.M.expandedButtonsChanged=function(){var S,p;_.Ms(this.hostElement,{"--expanded-buttons-height":((p=(S=this.expandedButtonsData)==null?void 0:S.length)!=null?p:0)*36+"px"})};
_.M.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}}};
_.M.onMouseEnter=function(){clearTimeout(this.collapseTimer);this.collapseTimer=void 0;this.reactionControlPanelExpanded=!0};
_.M.onMouseLeave=function(){var S=this;this.collapseTimer=setTimeout(function(){S.reactionControlPanelExpanded=!1},500)};
_.M.onFocusIn=function(){this.onMouseEnter()};
_.M.onFocusOut=function(){this.onMouseLeave()};
_.M.onCollapsedButtonFocusIn=function(){var S=this;setTimeout(function(){var p;(p=S.expandedButtons.querySelector("button"))==null||p.focus()},100)};
_.M.onCollapsedButtonFocusOut=function(S){S.stopPropagation()};
_.$u.Object.defineProperties(YG.prototype,{expandedButtonsData:{configurable:!0,enumerable:!0,get:function(){var S,p;return _.h9.unsafeClone((S=this.liveReactionsData)==null?void 0:S.emojiButtonData)||((p=this.data)==null?void 0:p.expandedButtons)}},
showNewnessDot:{configurable:!0,enumerable:!0,get:function(){var S;return this.newnessDotEligible&&!this.reactionControlPanelExpanded&&!((S=this.data)==null||!S.maybeShowNewnessDot)}}});
YG.prototype.expandedButtonsChanged=YG.prototype.expandedButtonsChanged;_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],YG.prototype,"ytRendererBehavior",void 0);_.x([_.F(_.qH.YtRendererstamperBehavior),_.E("design:type",Object)],YG.prototype,"ytRendererstamperBehavior",void 0);_.x([_.F(_.Zq),_.E("design:type",Object)],YG.prototype,"ytLiveChatReduxBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],YG.prototype,"data",void 0);
_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],YG.prototype,"reactionControlPanelExpanded",void 0);_.x([_.g({selectorArgs:["data.liveReactionsDataEntityKey"],selector:JGJ}),_.E("design:type",Object)],YG.prototype,"liveReactionsData",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],YG.prototype,"isDarkTheme",void 0);_.x([_.g(),_.E("design:type",Object)],YG.prototype,"newnessDotEligible",void 0);
_.x([_.e("liveReactionsData","data.expandedButtons"),_.E("design:type",Object),_.E("design:paramtypes",[])],YG.prototype,"expandedButtonsData",null);_.x([_.e("newnessDotEligible","reactionControlPanelExpanded","data.maybeShowNewnessDot"),_.g({reflectToAttribute:!0}),_.E("design:type",Object),_.E("design:paramtypes",[])],YG.prototype,"showNewnessDot",null);_.x([_.O2("#expanded-buttons"),_.E("design:type",HTMLElement)],YG.prototype,"expandedButtons",void 0);
_.x([_.T4("expandedButtonsData"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],YG.prototype,"expandedButtonsChanged",null);YG=_.x([_.FB({disableElementRegistration:!0,is:"yt-reaction-control-panel-view-model",noInjection:!0})],YG);
_.C(YG,"yt-reaction-control-panel-view-model",function(){if(k8Y===void 0){var S=document.createElement("template");_.h(S,'\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');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);var p=S.content,U=p.insertBefore;O1d===void 0&&(O1d=document.createElement("template"));var Y=O1d;U.call(p,Y.content.cloneNode(!0),S.content.firstChild);k8Y=S}S=k8Y;return S},{mode:_.y("live_chat_enable_sink_wrapper")?2:0});var LG=new _.ug("yt-live-chat"),H1T=Date.parse("2024-7-24"),Mp=function(){var S=_.w.apply(this,arguments)||this;S.emojiManager=_.Zm;S.newnessDotEligible=!1;S.newnessDotImpressionCounted=!1;S.actionMap={"yt-live-reactions-mute":"handleReactionsMute","yt-hide-newness-dot":"hideNewnessDot"};return S};
_.r(Mp,_.w);_.M=Mp.prototype;_.M.emojiCustomizationEnabledChanged=function(){var S;((S=this.data)==null?0:S.emojiCustomizationEnabled)&&!this.newnessDotImpressionCounted&&((S=LG.getCreationTime("emoji-customization-count"))&&S<H1T&&LG.set("emoji-customization-count","0"),S=Number(LG.get("emoji-customization-count"))||0,S<3&&(this.newnessDotEligible=!0,LG.set("emoji-customization-count",(S+1).toString())),this.newnessDotImpressionCounted=!0)};
_.M.hideNewnessDot=function(){this.newnessDotEligible=!1;LG.set("emoji-customization-count",(3).toString());this.data=Object.assign({},this.data||{})};
_.M.handleReactionsMute=function(S){var p=_.X$(),U=_.bZ(206221),Y={checkboxData:{state:S?"CHECKBOX_STATE_OFF":"CHECKBOX_STATE_ON"}};p&&_.xd(p,U,Y);this.reactionsMuted=S};
_.M.liveReactionsSettingChanged=function(){this.data=Object.assign({},this.data||{})};
_.M.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}}};
_.$u.Object.defineProperties(Mp.prototype,{liveReactionsEnabled:{configurable:!0,enumerable:!0,get:function(){var S;return(!((S=this.liveReactionsData)==null||!S.isEnabled)||this.liveReactionsSetting)&&!this.reactionsMuted}}});
Mp.prototype.liveReactionsSettingChanged=Mp.prototype.liveReactionsSettingChanged;Mp.prototype.emojiCustomizationEnabledChanged=Mp.prototype.emojiCustomizationEnabledChanged;_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],Mp.prototype,"ytRendererBehavior",void 0);_.x([_.F(_.qH.YtRendererstamperBehavior),_.E("design:type",Object)],Mp.prototype,"ytRendererstamperBehavior",void 0);_.x([_.F(_.Zq),_.E("design:type",Object)],Mp.prototype,"ytLiveChatReduxBehavior",void 0);
_.x([_.F(_.Aj.YtActionHandlerBehavior),_.E("design:type",Object)],Mp.prototype,"ytActionHandlerBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],Mp.prototype,"data",void 0);_.x([_.g(),_.E("design:type",_.Ft)],Mp.prototype,"emojiManager",void 0);_.x([_.g(),_.E("design:type",Object)],Mp.prototype,"newnessDotEligible",void 0);_.x([_.g(),_.E("design:type",Object)],Mp.prototype,"newnessDotImpressionCounted",void 0);
_.x([_.g({selectorArgs:["data.liveReactionsSettingEntityKey"],selector:yGT}),_.E("design:type",Boolean)],Mp.prototype,"liveReactionsSetting",void 0);_.x([_.g({selectorArgs:["data.liveReactionsDataEntityKey"],selector:JGJ}),_.E("design:type",Object)],Mp.prototype,"liveReactionsData",void 0);_.x([_.g({value:function(){var S=_.y("enable_lwe_web_mute"),p=LG.get("allow-reactions");return p===void 0?!1:!p&&S}}),
_.E("design:type",Boolean)],Mp.prototype,"reactionsMuted",void 0);_.x([_.g({reflectToAttribute:!0}),_.e("liveReactionsSetting","reactionsMuted","liveReactionsData"),_.E("design:type",Boolean),_.E("design:paramtypes",[])],Mp.prototype,"liveReactionsEnabled",null);_.x([_.T4("data.emojiCustomizationEnabled"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],Mp.prototype,"emojiCustomizationEnabledChanged",null);
_.x([_.T4("liveReactionsEnabled"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],Mp.prototype,"liveReactionsSettingChanged",null);Mp=_.x([_.FB({disableElementRegistration:!0,is:"yt-reaction-control-panel-overlay-view-model",noInjection:!0})],Mp);
_.C(Mp,"yt-reaction-control-panel-overlay-view-model",function(){if(V_5===void 0){var S=document.createElement("template");_.h(S,'\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');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);var p=S.content,U=p.insertBefore;d3L===void 0&&(d3L=document.createElement("template"));var Y=d3L;U.call(p,Y.content.cloneNode(!0),S.content.firstChild);V_5=S}S=V_5;return S},{mode:_.y("live_chat_enable_sink_wrapper")?2:0});var D3s={YtPickerBehavior:{listeners:{"picker-cancelled":"onPickerCancel_"},togglePicker_:function(S){var p=this.$.pickers.selected;if(p){_.tB(this.hostElement).removeAttribute(p+"-open");var U="#picker-buttons";this.hostElement.tagName=="YT-LIVE-CHAT-MESSAGE-INPUT-RENDERER"&&(U="#picker-buttons",p==="emoji"&&_.tB(this.hostElement).querySelector("#emoji-picker-button")&&(U="#emoji-picker-button"));if(U=_.tB(this.hostElement).querySelector(U).querySelector("#"+p))U.active=!1}U=S;p==S&&(U=null);p!=
S&&_.tB(this.hostElement).setAttribute(S+"-open","");this.$.pickers.selected=U;_.St(this.hostElement,"yt-live-chat-picker-changed",[U])},
onPickerCancel_:function(){this.togglePicker_(this.$.pickers.selected)}}};var Ii=function(){var S=_.w.apply(this,arguments)||this;S.numSentMessages=0;S.timeoutDurationMs=0;S.timeoutMs=0;S.lastTimeoutTimeMs=0;S.pendingMessageId="";S.hasFiredInitialFocusActions=!1;S.isBeforeFocusEnabled=!0;S.id="";S.characterCount=0;S.maxCharacterLimit=0;S.remainingCharacterCount=0;S.inputExpanded=!1;S.buttonOverrides={iconPosition:"icon-only"};S.inReplyPanel=!1;S.countdownRatio=0;S.isTooltipVisible=!1;S.tooltipTimeout=1E4;S.systemIcons=_.y("kevlar_system_icons");S.tallerEmojiPicker=_.y("live_chat_taller_emoji_picker");
S.blockSendMessageWithCountdown=!_.y("live_chat_enable_send_button_in_slow_mode");S.sendReplyMessageInFlight=!1;S.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"};S.onResize=function(){S.maybeToggleCharacterCount()};
return S};
_.r(Ii,_.w);_.M=Ii.prototype;
_.M.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"}}}};
_.M.attached=function(){window.addEventListener("resize",this.onResize)};
_.M.detached=function(){window.removeEventListener("resize",this.onResize)};
_.M.dataChanged=function(){this.data.sendButton&&this.data.sendButton.buttonRenderer&&(this.data.sendButton.buttonRenderer.isDisabled=this.sendDisabled)};
_.M.sendMessage=function(){var S=this,p,U,Y,L;return _.T(function(I){if(S.sendDisabled)return I.return();S.isTooltipVisible&&_.St(S.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"]);if(S.data.sendButton&&S.data.sendButton.buttonRenderer){S.input.completeEmojis();p=S.data.sendButton.buttonRenderer.serviceEndpoint;if(!p)return I.return();Y=((U=_.b(p,_.Lft))==null?void 0:U.clientIdPrefix)||"";L={client_message_id:Y+String(S.numSentMessages++),rich_message:_.so(S.input.liveChatRichMessageInput)};
S.pendingMessageId=L.client_message_id;S.inReplyPanel&&(S.sendReplyMessageInFlight=!0);_.Yd(S.hostElement,[p,L]);S.input.setLiveChatRichMessageInput(null)}_.OV(I)})};
_.M.handleSendButtonAction=function(S){S.detail.actionName==="yt-service-request"&&(S.stopPropagation(),this.sendMessage())};
_.M.onSendCompleted=function(S,p){this.inReplyPanel&&(this.sendReplyMessageInFlight=!1);(S=this.get("timeoutDurationUsec",p.data))&&this.handleTimeout(Number(S)/1E3);this.errorMessage=this.get("errorMessage",p.data);this.pendingMessageId=""};
_.M.onSendError=function(){this.inReplyPanel&&(this.sendReplyMessageInFlight=!1);this.pendingMessageId&&_.St(this.hostElement,"yt-dim-chat-item-action",[{dimChatItemAction:{clientAssignedId:this.pendingMessageId}}]);this.pendingMessageId="";this.genericErrorMessage&&(this.errorMessage={liveChatErrorMessageRenderer:{errorText:this.genericErrorMessage}})};
_.M.handlePickerButtonToggle=function(S){S=S.detail.targetId;this.ytPickerBehavior.togglePicker_(S);if(S==="emoji")this.input.focus();else if(S==="qna-start-panel"){var p,U;(p=_.tB(this.hostElement).querySelector("yt-live-chat-qna-start-panel-renderer"))==null||(U=p.querySelector("#qna-creator-text-input-field"))==null||U.focus()}};
_.M.onComponentReplaced=function(S){var p,U;S.toReplace==="REPLACE_LIVE_CHAT_ACTION_PANEL"&&((p=S.replacement.liveChatMessageInputRenderer)==null?0:(U=p.headerRenderer)==null?0:U.liveChatQnaInputPromptHeaderRenderer)&&this.input.focus()};
_.M.onEmojiSelect=function(S){this.input.focus();this.input.insertEmoji(S.detail)};
_.M.onDisableBeforeFocus=function(){this.isBeforeFocusEnabled=!1};
_.M.onInputFocusIn=function(){this.data&&(this.data.beforeFocusCommand&&this.isBeforeFocusEnabled?_.St(this.hostElement,"yt-live-chat-actions",[[this.data.beforeFocusCommand]]):this.data.onInitialFocusCommand&&!this.hasFiredInitialFocusActions&&(_.St(this.hostElement,"yt-live-chat-actions",[[this.data.onInitialFocusCommand]]),this.hasFiredInitialFocusActions=!0))};
_.M.onOpenPopupAction=function(S,p){var U=this;p===this.hostElement&&(this.isTooltipVisible=!0);this.tooltipTimeout&&setTimeout(function(){_.St(U.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"])},this.tooltipTimeout)};
_.M.onClosePopupAction=function(){this.isTooltipVisible=!1};
_.M.characterCountChanged=function(){this.maybeToggleCharacterCount()};
_.M.focusChanged=function(){this.maybeToggleCharacterCount()};
_.M.maybeToggleCharacterCount=function(){if(this.maxCharacterLimit){var S=this.characterCount/this.maxCharacterLimit*100;this.count.classList.toggle("warning",this.characterCount!==0&&this.input.clientHeight>36);this.count.classList.toggle("error",S>100)}this.inputExpanded=this.characterCount!==0&&this.inputContainer.clientHeight>36};
_.M.computeId=function(){return this.data&&this.data.targetId||""};
_.M.computeSendDisabled=function(S,p,U,Y){S=!!(this.blockSendMessageWithCountdown&&U||!S||p&&S>p||Y);(p=_.tB(this.hostElement).querySelector("#send-button"))&&p.children.length&&(p.children[0].disabled=S);return S};
_.M.handleTimeout=function(S){this.timeoutDurationMs=this.timeoutMs=S;this.countdownRatio=1;this.lastTimeoutTimeMs===0&&window.requestAnimationFrame(this.updateTimeout.bind(this))};
_.M.updateTimeout=function(S){this.lastTimeoutTimeMs&&(this.timeoutMs=Math.max(0,this.timeoutMs-(S-this.lastTimeoutTimeMs)),this.countdownRatio=this.timeoutMs/this.timeoutDurationMs);this.isAttached&&this.timeoutMs?(this.lastTimeoutTimeMs=S,window.requestAnimationFrame(this.updateTimeout.bind(this))):this.lastTimeoutTimeMs=0};
_.M.onErrorMessageDismiss=function(){this.errorMessage=void 0};
_.M.onErrorMessageEdit=function(S){this.input.setLiveChatRichMessageInput(S.detail);this.input.focusAtEnd();this.errorMessage=void 0};
_.M.errorMessageChanged=function(){var S=this;_.uK(function(){_.St(S.hostElement,"yt-live-chat-maybe-scroll-to-bottom")})};
_.M.computeAuthorNameColor=function(S){var p;if(_.y("live_chat_author_name_color_usernames")&&(S==null?0:(p=S.authorName)==null?0:p.simpleText))return _.QBN(_.n_w(S.authorName.simpleText));if(_.y("live_chat_seed_color_usernames")&&(S==null?0:S.authorSeedColorArgb))return _.QBN(_.Lz(S.authorSeedColorArgb));if(_.y("live_chat_colored_usernames"))return"#cc0000";var U;return _.y("live_chat_simple_color_usernames")&&(S==null?0:(U=S.authorName)==null?0:U.simpleText)&&(S==null?0:S.authorUsernameColorLight)&&
(S==null?0:S.authorUsernameColorDark)?document.documentElement.hasAttribute("dark")?_.Lz(S.authorUsernameColorDark):_.Lz(S.authorUsernameColorLight):""};
_.M.onIsTooltipVisibleChanged=function(){var S=_.tB(this.hostElement).querySelector("#tooltip-accessibility-text");this.isTooltipVisible?setTimeout(function(){S.hidden=!1;S.setAttribute("role","alert")},0):(S.hidden=!0,S.removeAttribute("role"))};
_.M.onFocusedChanged=function(S){this.inputFocused=S.detail.value};
_.$u.Object.defineProperties(Ii.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 S;return!((S=this.data)==null||!S.authorPhoto)&&this.characterCount>0}},
hasProductPickerPanelViewModel:{configurable:!0,enumerable:!0,get:function(){var S,p;return((S=this.data)==null?void 0:(p=S.pickers)==null?void 0:p.find(function(U){return U.liveChatProductPickerPanelViewModel}))!==void 0}},
tooltipMessage:{configurable:!0,enumerable:!0,get:function(){var S=this.get("data.onInitialFocusCommand.showLiveChatTooltipCommand.tooltip.tooltipRenderer.detailsText");return S?this.ytRendererBehavior.getSimpleString(S):""}},
authorNameColor:{configurable:!0,enumerable:!0,get:function(){return this.computeAuthorNameColor(this.data)}}});
Ii.prototype.onIsTooltipVisibleChanged=Ii.prototype.onIsTooltipVisibleChanged;Ii.prototype.errorMessageChanged=Ii.prototype.errorMessageChanged;Ii.prototype.onErrorMessageEdit=Ii.prototype.onErrorMessageEdit;Ii.prototype.onErrorMessageDismiss=Ii.prototype.onErrorMessageDismiss;Ii.prototype.focusChanged=Ii.prototype.focusChanged;Ii.prototype.characterCountChanged=Ii.prototype.characterCountChanged;Ii.prototype.onEmojiSelect=Ii.prototype.onEmojiSelect;Ii.prototype.handlePickerButtonToggle=Ii.prototype.handlePickerButtonToggle;
Ii.prototype.onSendError=Ii.prototype.onSendError;Ii.prototype.onSendCompleted=Ii.prototype.onSendCompleted;Ii.prototype.sendMessage=Ii.prototype.sendMessage;Ii.prototype.dataChanged=Ii.prototype.dataChanged;_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],Ii.prototype,"ytRendererBehavior",void 0);_.x([_.F(_.Aj.YtActionHandlerBehavior),_.E("design:type",Object)],Ii.prototype,"ytActionHandlerBehavior",void 0);
_.x([_.F(D3s.YtPickerBehavior),_.E("design:type",Object)],Ii.prototype,"ytPickerBehavior",void 0);_.x([_.F(_.qH.YtRendererstamperBehavior),_.E("design:type",Object)],Ii.prototype,"ytRendererstamperBehavior",void 0);_.x([_.F(_.sz.YtLiveChatTooltipTargetingBehavior),_.E("design:type",Object)],Ii.prototype,"ytLiveChatTooltipTargetingBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],Ii.prototype,"hasFiredInitialFocusActions",void 0);
_.x([_.g(),_.E("design:type",Object)],Ii.prototype,"isBeforeFocusEnabled",void 0);_.x([_.g(),_.E("design:type",Object)],Ii.prototype,"data",void 0);_.x([_.g({computed:"computeId(data.targetId)",reflectToAttribute:!0}),_.E("design:type",Object)],Ii.prototype,"id",void 0);_.x([_.g(),_.E("design:type",Object)],Ii.prototype,"characterCount",void 0);_.x([_.g(),_.E("design:type",Object)],Ii.prototype,"maxCharacterLimit",void 0);
_.x([_.g(),_.E("design:type",Object)],Ii.prototype,"remainingCharacterCount",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],Ii.prototype,"inputExpanded",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Boolean)],Ii.prototype,"inputFocused",void 0);_.x([_.g({value:!1}),_.E("design:type",Boolean)],Ii.prototype,"disableEmojiPickerIncrementalLoading",void 0);_.x([_.g(),_.E("design:type",_.wW)],Ii.prototype,"participantsManager",void 0);
_.x([_.g(),_.E("design:type",Object)],Ii.prototype,"buttonOverrides",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],Ii.prototype,"inReplyPanel",void 0);_.x([_.e("characterCount, maxCharacterLimit, countdownActive","blockSendMessageWithCountdown"),_.E("design:type",Boolean),_.E("design:paramtypes",[])],Ii.prototype,"sendDisabled",null);_.x([_.g(),_.E("design:type",Object)],Ii.prototype,"countdownRatio",void 0);
_.x([_.e("countdownRatio"),_.E("design:type",Number),_.E("design:paramtypes",[])],Ii.prototype,"countdownStrokeDashOffset",null);_.x([_.e("countdownRatio"),_.E("design:type",Boolean),_.E("design:paramtypes",[])],Ii.prototype,"countdownActive",null);_.x([_.e("data.interactionMessage"),_.g({reflectToAttribute:!0}),_.E("design:type",Boolean),_.E("design:paramtypes",[])],Ii.prototype,"hasInteractionMessage",null);
_.x([_.e("data.emojiPickerButton"),_.g({reflectToAttribute:!0}),_.E("design:type",Boolean),_.E("design:paramtypes",[])],Ii.prototype,"hasEmojiPickerButton",null);_.x([_.e("data, characterCount"),_.E("design:type",Boolean),_.E("design:paramtypes",[])],Ii.prototype,"showAvatar",null);_.x([_.e("data.pickers"),_.g({reflectToAttribute:!0}),_.E("design:type",Boolean),_.E("design:paramtypes",[])],Ii.prototype,"hasProductPickerPanelViewModel",null);
_.x([_.g(),_.E("design:type",Object)],Ii.prototype,"errorMessage",void 0);_.x([_.g(),_.E("design:type",Object)],Ii.prototype,"genericErrorMessage",void 0);_.x([_.g(),_.E("design:type",Object)],Ii.prototype,"isTooltipVisible",void 0);_.x([_.g(),_.E("design:type",Object)],Ii.prototype,"tooltipTimeout",void 0);_.x([_.e("data.onInitialFocusCommand"),_.E("design:type",String),_.E("design:paramtypes",[])],Ii.prototype,"tooltipMessage",null);
_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],Ii.prototype,"systemIcons",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],Ii.prototype,"tallerEmojiPicker",void 0);_.x([_.e("data"),_.E("design:type",String),_.E("design:paramtypes",[])],Ii.prototype,"authorNameColor",null);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],Ii.prototype,"blockSendMessageWithCountdown",void 0);_.x([_.g(),_.E("design:type",Object)],Ii.prototype,"sendReplyMessageInFlight",void 0);
_.x([_.O2("#input"),_.E("design:type",_.sIe)],Ii.prototype,"input",void 0);_.x([_.O2("#count"),_.E("design:type",HTMLElement)],Ii.prototype,"count",void 0);_.x([_.O2("#input-container"),_.E("design:type",HTMLElement)],Ii.prototype,"inputContainer",void 0);_.x([_.T4("data"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],Ii.prototype,"dataChanged",null);
_.x([_.Vd("yt-live-chat-send-message"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype",Promise)],Ii.prototype,"sendMessage",null);_.x([_.Vd("yt-service-request-completed"),_.E("design:type",Function),_.E("design:paramtypes",[Event,_.xL]),_.E("design:returntype")],Ii.prototype,"onSendCompleted",null);_.x([_.Vd("yt-service-request-error"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],Ii.prototype,"onSendError",null);
_.x([_.Vd("yt-live-chat-icon-toggle-button-renderer-toggle"),_.E("design:type",Function),_.E("design:paramtypes",[CustomEvent]),_.E("design:returntype")],Ii.prototype,"handlePickerButtonToggle",null);_.x([_.Vd("yt-emoji-select"),_.E("design:type",Function),_.E("design:paramtypes",[CustomEvent]),_.E("design:returntype")],Ii.prototype,"onEmojiSelect",null);
_.x([_.T4("characterCount"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],Ii.prototype,"characterCountChanged",null);_.x([_.T4("inputFocused"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],Ii.prototype,"focusChanged",null);_.x([_.Vd("yt-live-chat-error-message-dismiss"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],Ii.prototype,"onErrorMessageDismiss",null);
_.x([_.Vd("yt-live-chat-error-message-edit"),_.E("design:type",Function),_.E("design:paramtypes",[CustomEvent]),_.E("design:returntype")],Ii.prototype,"onErrorMessageEdit",null);_.x([_.T4("errorMessage"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],Ii.prototype,"errorMessageChanged",null);_.x([_.T4("isTooltipVisible"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],Ii.prototype,"onIsTooltipVisibleChanged",null);
Ii=_.x([_.FB({disableElementRegistration:!0,is:"yt-live-chat-message-input-renderer",noInjection:!0})],Ii);
_.C(Ii,"yt-live-chat-message-input-renderer",function(){if(lQn===void 0){var S=document.createElement("template");_.h(S,'\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>');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);var p=S.content,U=p.insertBefore;wbo===void 0&&(wbo=document.createElement("template"));var Y=wbo;U.call(p,Y.content.cloneNode(!0),S.content.firstChild);lQn=S}S=lQn;return S},{mode:_.y("live_chat_enable_sink_wrapper")?2:0});var zss;var QoA;var d0=function(){var S=_.w.apply(this,arguments)||this;S.systemIcons=_.y("kevlar_system_icons");S.firedOnClickCommand=!1;S.inReplyPanel=!1;return S};
_.r(d0,_.w);
d0.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"}}}};
d0.prototype.onButtonToggle=function(S){S.target.disabled||this.ytPickerBehavior.togglePicker_(S.detail.targetId)};
d0.prototype.onClick=function(){var S=this;this.get("onClickCommand.liveChatAddToToastAction",this.data)&&!this.firedOnClickCommand&&(_.St(this.hostElement,"yt-live-chat-add-to-toast-action",[this.data.onClickCommand]),this.firedOnClickCommand=!0,setTimeout(function(){return S.firedOnClickCommand=!1},5E3))};
_.$u.Object.defineProperties(d0.prototype,{hasProductPickerPanelViewModel:{configurable:!0,enumerable:!0,get:function(){var S,p;return((S=this.data)==null?void 0:(p=S.panels)==null?void 0:p.find(function(U){return U.liveChatProductPickerPanelViewModel}))!==void 0}}});
d0.prototype.onButtonToggle=d0.prototype.onButtonToggle;_.x([_.F(D3s.YtPickerBehavior),_.E("design:type",Object)],d0.prototype,"ytPickerBehavior",void 0);_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],d0.prototype,"ytRendererBehavior",void 0);_.x([_.F(_.qH.YtRendererstamperBehavior),_.E("design:type",Object)],d0.prototype,"ytRendererstamperBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],d0.prototype,"data",void 0);
_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],d0.prototype,"systemIcons",void 0);_.x([_.g({reflectToAttribute:!1}),_.E("design:type",Object)],d0.prototype,"firedOnClickCommand",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],d0.prototype,"inReplyPanel",void 0);_.x([_.e("data.pickers"),_.g({reflectToAttribute:!0}),_.E("design:type",Boolean),_.E("design:paramtypes",[])],d0.prototype,"hasProductPickerPanelViewModel",null);
_.x([_.Vd("yt-live-chat-icon-toggle-button-renderer-toggle"),_.E("design:type",Function),_.E("design:paramtypes",[CustomEvent]),_.E("design:returntype")],d0.prototype,"onButtonToggle",null);d0=_.x([_.FB({disableElementRegistration:!0,is:"yt-live-chat-restricted-participation-renderer",noInjection:!0})],d0);
_.C(d0,"yt-live-chat-restricted-participation-renderer",function(){if(QoA===void 0){var S=document.createElement("template");_.h(S,'\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');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);var p=S.content,U=p.insertBefore;zss===void 0&&(zss=document.createElement("template"));var Y=zss;U.call(p,Y.content.cloneNode(!0),S.content.firstChild);QoA=S}S=QoA;return S},{mode:_.y("live_chat_enable_sink_wrapper")?2:0});var VU=function(){var S=_.w.apply(this,arguments)||this;S.genericErrorMessage=_.Ec("Error, try again.");S.inReplyPanel=!1;S.hideBorder=!1;return S};
_.r(VU,_.w);VU.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}}}}}};
_.$u.Object.defineProperties(VU,{template:{configurable:!0,enumerable:!0,get:function(){return Zet()}}});
_.x([_.F(_.qH.YtRendererstamperBehavior),_.E("design:type",Object)],VU.prototype,"ytRendererstamperBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],VU.prototype,"data",void 0);_.x([_.g(),_.E("design:type",Object)],VU.prototype,"genericErrorMessage",void 0);_.x([_.g(),_.E("design:type",Object)],VU.prototype,"inReplyPanel",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],VU.prototype,"hideBorder",void 0);
VU=_.x([_.FB({is:"yt-live-chat-engagement-panel-input-renderer",disableElementRegistration:!0,noInjection:!0})],VU);_.C(VU,"yt-live-chat-engagement-panel-input-renderer",function(){return Zet()},{mode:_.y("live_chat_enable_sink_wrapper")?2:0});var nQt,JTJ;nQt=_.bZ(115994);JTJ=_.bZ(115993);_.T_=function(S,p,U){var Y=this;var L=U.dragDownAction;this.layer=0;this.JSC$19919_watchConfig={startPosition:0,draggingClass:"gesture-dragging",triggers:{down:{fade:!0,endOpacity:.6,endPosition:100,threshold:100,triggerAction:function(){return Y.dragDownAction()}}}};
this.JSC$19919_watchFullScreenConfig={startPosition:0,draggingClass:"gesture-dragging",triggers:{down:{disableFinish:!0,endOpacity:.6,endPosition:100,threshold:100,triggerAction:function(){return Y.dragDownAction()}}}};
this.fullscreen=!1;var I=_.HX();_.U8(I,nQt,this.layer);_.U8(I,JTJ,this.layer);this.dragDownAction=function(){L();_.gY(I,{visualElement:Y.fullscreen?nQt:JTJ})};
this.gesture=new _.Wo(S,p,this.JSC$19919_watchConfig,"pandown");this.attach()};
_.T_.prototype.attach=function(){this.gesture.attach()};
_.T_.prototype.detach=function(){this.gesture.detach()};
_.T_.prototype.update=function(S){this.fullscreen=S;this.gesture.config=S?this.JSC$19919_watchFullScreenConfig:this.JSC$19919_watchConfig};var yT5={YtMacroReplacementBehavior:[{sendServiceRequestAction:function(S){if(S&&S.length==1&&Array.isArray(S[0].loggingUrls)){S=_.h9.unsafeClone(S[0]);var p=this.macros||{},U=this.getAdModuleClient_();if(!U)return _.Mw();S.loggingUrls.forEach(function(Y){if(Y.baseUrl){var L=Y.baseUrl;var I=p;I=I===void 0?{}:I;L=U.getOptions().includes("replaceUrlMacros")?_.mSt(U,"replaceUrlMacros",{url:L,additionalMapping:I}):L;Y.baseUrl=L}},this);
S=[S]}return _.Yd(this.hostElement,S)},
getAdModuleClient_:function(){var S=_.$L(this);return S?(S=S.getPlayer())?new _.z3(S):null:null}}]};var KMt;var WU=function(){var S=_.w.apply(this,arguments)||this;S.isCollapsed=!1;S.modernPanels=_.y("kevlar_watch_modern_panels");S.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction","yt-update-donation-shelf-command":"handleUpdate","yt-open-popup-action":"handleOpenPopupAction"};return S};
_.r(WU,_.w);_.M=WU.prototype;_.M.configureRendererStamper=function(){return{"data.donateButton":{id:"donate-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.M.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
_.M.onDonateTap=function(){var S=this.get("data.donateButton.buttonRenderer.command");if(S){var p=_.X$(),U=this.get("data.donateButton.buttonRenderer.trackingParams");p&&U&&_.xd(p,_.JS(U));this.ytOpenPopupBehavior.openPopup(S)}};
_.M.onShowMore=function(){this.isCollapsed=!1;var S=_.X$(),p=this.get("data.expandButton.buttonRenderer.trackingParams");S&&p&&_.xd(S,_.JS(p))};
_.M.onShowLess=function(){this.isCollapsed=!0};
_.M.dataChanged=function(){_.Ms(this.hostElement,{"--progress-bar-completion":this.data.progress*100+"%"})};
_.M.onDarkModeToggledAction=function(S){this.isDarkTheme=S};
_.M.handleUpdate=function(S){if(S=this.get("updateDonationShelfCommand.donationShelf.donationShelfRenderer",S))this.set("data.startLabel",S.startLabel),this.set("data.endLabel",S.endLabel),this.set("data.progress",S.progress),this.set("data.amountRaisedLabel",S.amountRaisedLabel),this.dataChanged()};
_.M.handleOpenPopupAction=function(S){this.get("openPopupAction.popup.ypcTransactionErrorMessageRenderer",S)&&_.St(this.hostElement,"yt-close-popup-action",["yt-loading-renderer"])};
_.M.computeHeaderBackgroundUrl=function(S,p){if(S)return p?S.headerBackgroundDarkUrl:S.headerBackgroundUrl};
_.M.isProgressBarVisible=function(S){return!(!S||S.progress===void 0)};
_.M.headerBackgroundClass=function(){return _.g7("HTML_DIR")==="rtl"?"flip":""};
WU.prototype.dataChanged=WU.prototype.dataChanged;_.x([_.F(_.dW.YtOpenPopupBehavior),_.E("design:type",Object)],WU.prototype,"ytOpenPopupBehavior",void 0);_.x([_.F(_.qH.YtRendererstamperBehavior),_.E("design:type",Object)],WU.prototype,"ytRendererstamperBehavior",void 0);_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],WU.prototype,"ytRendererBehavior",void 0);_.x([_.F(_.Aj.YtActionHandlerBehavior),_.E("design:type",Object)],WU.prototype,"ytActionHandlerBehavior",void 0);
_.x([_.g(),_.E("design:type",Object)],WU.prototype,"data",void 0);_.x([_.g(),_.E("design:type",Object)],WU.prototype,"isCollapsed",void 0);_.x([_.g({computed:"computeHeaderBackgroundUrl(data, isDarkTheme)"}),_.E("design:type",String)],WU.prototype,"headerBackgroundUrl",void 0);_.x([_.g(),_.E("design:type",Boolean)],WU.prototype,"isDarkTheme",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],WU.prototype,"modernPanels",void 0);
_.x([_.T4("data"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],WU.prototype,"dataChanged",null);WU=_.x([_.f({is:"ytd-donation-shelf-renderer",disableElementRegistration:!0})],WU);
_.C(WU,"ytd-donation-shelf-renderer",function(){if(KMt!==void 0)return KMt;var S=document.createElement("template");_.h(S,'\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');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);return KMt=S},{mode:1});var b1q;var Ok=function(){return _.w.apply(this,arguments)||this};
_.r(Ok,_.w);_.x([_.g(),_.E("design:type",Object)],Ok.prototype,"data",void 0);Ok=_.x([_.f({is:"ytd-donation-unavailable-renderer",disableElementRegistration:!0})],Ok);
_.C(Ok,"ytd-donation-unavailable-renderer",function(){if(b1q!==void 0)return b1q;var S=document.createElement("template");_.h(S,'\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');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);return b1q=S},{mode:1});var jod;var kG=function(){return _.w.apply(this,arguments)||this};
_.r(kG,_.w);kG.prototype.computeIconType=function(S){return S?"yt-icons:"+S.toLowerCase():null};
_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],kG.prototype,"ytRendererBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],kG.prototype,"data",void 0);kG=_.x([_.f({is:"ytd-limited-state-message-renderer",disableElementRegistration:!0})],kG);
_.C(kG,"ytd-limited-state-message-renderer",function(){if(jod!==void 0)return jod;var S=document.createElement("template");_.h(S,'\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');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);return jod=S},{mode:1});var rTL;var HU=function(){return _.w.apply(this,arguments)||this};
_.r(HU,_.w);HU.prototype.configureRendererStamper=function(){return{"data.subscribeButton":{id:"subscribe-button",mapping:{subscribeButtonRenderer:"ytd-subscribe-button-renderer",buttonRenderer:"ytd-button-renderer"}}}};
HU.prototype.onTap=function(S){var p=this.data&&this.data.endpoint;p&&!_.Eo(_.E1(S),this.hostElement,["YTD-SUBSCRIBE-BUTTON-RENDERER","YTD-BUTTON-RENDERER"])&&_.cv(this.hostElement,"yt-navigate",{endpoint:p})};
_.x([_.F(_.qH.YtRendererstamperBehavior),_.E("design:type",Object)],HU.prototype,"ytRendererstamperBehavior",void 0);_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],HU.prototype,"ytRendererBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],HU.prototype,"data",void 0);HU=_.x([_.f({is:"ytd-autotagging-metadata-renderer",disableElementRegistration:!0})],HU);
_.C(HU,"ytd-autotagging-metadata-renderer",function(){if(rTL!==void 0)return rTL;var S=document.createElement("template");_.h(S,'\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');
S.content.insertBefore(_.t().content.cloneNode(!0),S.content.firstChild);return rTL=S},{mode:1});var G8n;var Dj=function(){return _.w.apply(this,arguments)||this};
_.r(Dj,_.w);Dj.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{autotaggingMetadataRenderer:"ytd-autotagging-metadata-renderer"}}}};
_.x([_.F(_.qH.YtRendererstamperBehavior),_.E("design:type",Object)],Dj.prototype,"ytRendererstamperBehavior",void 0);_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],Dj.prototype,"ytRendererBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],Dj.prototype,"data",void 0);Dj=_.x([_.f({is:"ytd-autotagging-metadata-row-renderer",disableElementRegistration:!0})],Dj);
_.C(Dj,"ytd-autotagging-metadata-row-renderer",function(){if(G8n!==void 0)return G8n;var S=document.createElement("template");_.h(S,'\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');
S.content.insertBefore(_.t().content.cloneNode(!0),S.content.firstChild);return G8n=S},{mode:1});var hst;var RsJ;var z_=function(){var S=_.w.apply(this,arguments)||this;S.engagementPanelContent=!1;return S};
_.r(z_,_.w);z_.prototype.computeHasDividerLine=function(S,p){return S&&!p};
_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],z_.prototype,"ytRendererBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],z_.prototype,"data",void 0);_.x([_.g({reflectToAttribute:!0,computed:"computeHasDividerLine(data.hasDividerLine, engagementPanelContent)"}),_.E("design:type",Boolean)],z_.prototype,"hasDividerLine",void 0);_.x([_.g(),_.E("design:type",Object)],z_.prototype,"engagementPanelContent",void 0);
z_=_.x([_.f({is:"ytd-metadata-row-header-renderer",disableElementRegistration:!0})],z_);
_.C(z_,"ytd-metadata-row-header-renderer",function(){if(RsJ!==void 0)return RsJ;var S=document.createElement("template");_.h(S,'\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');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);return RsJ=S},{mode:1});var FMt;var QU=function(){return _.w.apply(this,arguments)||this};
_.r(QU,_.w);QU.prototype.computeHasDividerLine=function(S){return S};
_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],QU.prototype,"ytRendererBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],QU.prototype,"data",void 0);_.x([_.g({reflectToAttribute:!0,computed:"computeHasDividerLine(data.hasDividerLine)"}),_.E("design:type",Boolean)],QU.prototype,"hasDividerLine",void 0);QU=_.x([_.f({is:"ytd-metadata-row-renderer",disableElementRegistration:!0})],QU);
_.C(QU,"ytd-metadata-row-renderer",function(){if(FMt!==void 0)return FMt;var S=document.createElement("template");_.h(S,'\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');
S.content.insertBefore(_.t().content.cloneNode(!0),S.content.firstChild);return FMt=S},{mode:1});var XRo;var nG=function(){return _.w.apply(this,arguments)||this};
_.r(nG,_.w);_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],nG.prototype,"ytRendererBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],nG.prototype,"data",void 0);nG=_.x([_.f({is:"ytd-metadata-with-image-row-renderer",disableElementRegistration:!0})],nG);
_.C(nG,"ytd-metadata-with-image-row-renderer",function(){if(XRo!==void 0)return XRo;var S=document.createElement("template");_.h(S,'\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');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);return XRo=S},{mode:1});var Pns;var Jf=function(){var S=_.w.apply(this,arguments)||this;S.rounded=!0;S.fixie=!1;S.fullWidth=!1;return S};
_.r(Jf,_.w);_.M=Jf.prototype;_.M.configureRendererStamper=function(){return{"data.informationButton":{id:"information-button-container",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.M.onDataChanged=function(){var S=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(p){S.onEndpointLinkKeyPress(p)}))};
_.M.onEndpointLinkKeyPress=function(S){S.target===this.endpointLink&&S.keyCode===13&&_.cv(this.hostElement,"click")};
_.M.onClick=function(){if(!this.endpointHref){this.endpointLink.blur();var S;if((S=this.data)==null?0:S.endpoint)_.Lp(this.hostElement,[this.data.endpoint],this.hostElement),this.ytRendererBehavior.logExplicitClick(this.data)}};
_.M.onYtNavigate=function(S){this.endpointHref||(S.stopPropagation(),S.preventDefault())};
_.M.onInformationButtonContainerClick=function(S){S.target.id!=="information-button-container"&&(S.stopPropagation(),S.preventDefault())};
_.M.computeStyle=function(S){return S};
_.M.computeIsThumbnailStyle=function(S){return S==="RICH_METADATA_RENDERER_STYLE_THUMBNAIL"};
_.M.computeThumbnailWidth=function(S){switch(S){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}};
_.M.computeThumbnailObjectFit=function(S){switch(S){case "RICH_METADATA_RENDERER_STYLE_SQUARE":return"CONTAIN"}};
_.$u.Object.defineProperties(Jf.prototype,{endpointHref:{configurable:!0,enumerable:!0,get:function(){var S;return((S=this.data)==null?0:S.endpoint)?this.componentBehavior.computeOptionalHref_(this.data.endpoint):null}}});
Jf.prototype.onYtNavigate=Jf.prototype.onYtNavigate;Jf.prototype.onClick=Jf.prototype.onClick;Jf.prototype.onDataChanged=Jf.prototype.onDataChanged;_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],Jf.prototype,"ytRendererBehavior",void 0);_.x([_.F(_.eL.YtComponentBehavior),_.E("design:type",Object)],Jf.prototype,"componentBehavior",void 0);_.x([_.F(_.qH.YtRendererstamperBehavior),_.E("design:type",Object)],Jf.prototype,"ytRendererstamperBehavior",void 0);
_.x([_.g(),_.E("design:type",Object)],Jf.prototype,"data",void 0);_.x([_.g({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.E("design:type",String)],Jf.prototype,"componentStyle",void 0);_.x([_.g({computed:"computeIsThumbnailStyle(data.style)"}),_.E("design:type",Boolean)],Jf.prototype,"isThumbnailStyle",void 0);_.x([_.g({computed:"computeThumbnailObjectFit(data.style)"}),_.E("design:type",String)],Jf.prototype,"thumbnailObjectFit",void 0);
_.x([_.g({computed:"computeThumbnailWidth(data.style)"}),_.E("design:type",Number)],Jf.prototype,"thumbnailWidth",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],Jf.prototype,"rounded",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],Jf.prototype,"fixie",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],Jf.prototype,"fullWidth",void 0);_.x([_.O2("#endpoint-link"),_.E("design:type",HTMLAnchorElement)],Jf.prototype,"endpointLink",void 0);
_.x([_.T4("data"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],Jf.prototype,"onDataChanged",null);_.x([_.e("data.endpoint"),_.E("design:type",Object),_.E("design:paramtypes",[])],Jf.prototype,"endpointHref",null);_.x([_.Vd("click"),_.E("design:type",Function),_.E("design:paramtypes",[Event]),_.E("design:returntype")],Jf.prototype,"onClick",null);
_.x([_.Vd("yt-navigate"),_.E("design:type",Function),_.E("design:paramtypes",[CustomEvent]),_.E("design:returntype")],Jf.prototype,"onYtNavigate",null);Jf=_.x([_.f({is:"ytd-rich-metadata-renderer",disableElementRegistration:!0})],Jf);
_.C(Jf,"ytd-rich-metadata-renderer",function(){if(Pns!==void 0)return Pns;var S=document.createElement("template");_.h(S,'\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');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);return Pns=S},{mode:_.UW("kevlar_poly_si_batch_j075")?1:2});var Z1L;var yU=function(){var S=_.w.apply(this,arguments)||this;S.fixie=!1;S.fullWidth=!1;return S};
_.r(yU,_.w);yU.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{richMetadataRenderer:{component:"ytd-rich-metadata-renderer",properties:{fixie:"[[fixie]]",fullWidth:"[[fullWidth]]"}}}}}};
yU.prototype.computeHasDividerLine=function(S){return S};
_.x([_.F(_.qH.YtRendererstamperBehavior),_.E("design:type",Object)],yU.prototype,"ytRendererstamperBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],yU.prototype,"data",void 0);_.x([_.g({reflectToAttribute:!0,computed:"computeHasDividerLine(data.hasDividerLine)"}),_.E("design:type",Boolean)],yU.prototype,"hasDividerLine",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],yU.prototype,"fixie",void 0);_.x([_.g(),_.E("design:type",Object)],yU.prototype,"fullWidth",void 0);
yU=_.x([_.f({is:"ytd-rich-metadata-row-renderer",disableElementRegistration:!0})],yU);
_.C(yU,"ytd-rich-metadata-row-renderer",function(){if(Z1L!==void 0)return Z1L;var S=document.createElement("template");_.h(S,'\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');S.content.insertBefore(_.t().content.cloneNode(!0),S.content.firstChild);return Z1L=S},{mode:1});var KG=function(){var S=_.w.apply(this,arguments)||this;S.engagementPanelContent=!1;S.fixie=!1;S.fullWidth=!1;return S};
_.r(KG,_.w);
KG.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"}}}};
KG.prototype.computeCollapsibleItems=function(S,p,U){return S===void 0||p===void 0||U===void 0||U?[]:S.slice(p)};
KG.prototype.computeAlwaysShownItems=function(S,p){return S&&S.length?S.slice(0,p):[]};
_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],KG.prototype,"ytRendererBehavior",void 0);_.x([_.F(_.qH.YtRendererstamperBehavior),_.E("design:type",Object)],KG.prototype,"ytRendererstamperBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],KG.prototype,"data",void 0);_.x([_.g({value:!1}),_.E("design:type",Boolean)],KG.prototype,"collapsed",void 0);
_.x([_.g({computed:"computeAlwaysShownItems(data.rows,data.collapsedItemCount)"}),_.E("design:type",Array)],KG.prototype,"alwaysShownItems",void 0);_.x([_.g({computed:"computeCollapsibleItems(data.rows,data.collapsedItemCount,collapsed)"}),_.E("design:type",Array)],KG.prototype,"collapsibleItems",void 0);_.x([_.g(),_.E("design:type",Object)],KG.prototype,"engagementPanelContent",void 0);_.x([_.g(),_.E("design:type",Object)],KG.prototype,"fixie",void 0);
_.x([_.g(),_.E("design:type",Object)],KG.prototype,"fullWidth",void 0);KG=_.x([_.f({is:"ytd-metadata-row-container-renderer",disableElementRegistration:!0})],KG);
_.C(KG,"ytd-metadata-row-container-renderer",function(){if(hst!==void 0)return hst;var S=document.createElement("template");_.h(S,'\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');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);return hst=S},{mode:1});var soq;var bC=function(){var S=_.w.apply(this,arguments)||this;S.currentPageUrl="";S.baseUrl="";S.isHiddenByUser=null;S.hidden=!1;S.showAboveScrim=!1;S.watchNextGrid=_.y("kevlar_watch_grid");S.modernButtons=_.y("web_modern_buttons");S.roundedContainer=!0;S.noBorder=!1;S.roundBackground=!_.y("live_chat_round_background_killswitch");S.overflowHideChat=_.y("live_chat_overflow_hide_chat");S.forceDarkTheme=!1;S.theaterWatchWhile=!1;S.isListeningForPlayerProgress=!1;S.JSC$19955_playerEvents=new Map;S.isFrameReady=
!1;S.player=null;S.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 S};
_.r(bC,_.w);_.M=bC.prototype;_.M.onShowHideChat=function(){this.isHiddenByUser=!this.collapsed;_.pp(this.hostElement,"yt-set-live-chat-collapsed",[this.collapsed])};
_.M.created=function(){var S=this;this.handleIframeEventListener=function(p){S.handleIframeEvent(p)};
this.handleKeyboardEventListener=function(p){S.handleKeyboardEvent(p)};
this.JSC$19955_playerEvents.set("onVideoProgress",this.playerProgressHandler);this.JSC$19955_playerEvents.set("onAdStart",this.playerAdStartHandler);this.JSC$19955_playerEvents.set("onAdEnd",this.playerAdEndHandler);this.JSC$19955_playerEvents.set("onStateChange",this.playerStateChangeHandler);this.JSC$19955_playerEvents.set("onLoopRangeChange",this.onLoopRangeChange)};
_.M.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()};
_.M.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};
_.M.computeBaseUrl=function(S){var p="/live_chat";this.isChatReplay()&&(p="/live_chat_replay");return _.iR(_.$x(_.v3(_.mz(S),p),null),"").toString()};
_.M.dataChanged=function(){_.y("web_watch_theater_chat")&&(this.isHiddenByUser=null)};
_.M.urlChanged=function(){if(this.url!==void 0){this.isFrameReady=!this.isChatReplay();var S=this.url;if(this.isChatReplay()&&this.player){var p=Math.floor(this.player.getProgressState().current*1E3);S=_.vm(_.mz(S),"playerOffsetMs",p.toString()).toString()}p=this.chatframe;try{var U=S==="about:blank"?_.Sew:_.JA(S),Y=p.contentDocument.location,L=_.Gl(U);L!==void 0&&Y.replace(L)}catch(I){p.src=S}}};
_.M.collapsedChanged=function(){_.cv(this.hostElement,"yt-chat-collapsed-changed",this.collapsed)};
_.M.handleIframeEvent=function(S){if(S&&this.baseUrl.startsWith(S.origin)&&S.source===this.chatframe.contentWindow&&_.pc(S.data))if(S.data["yt-iframed-buyflow-launcher"])this.handleBuyflowMessages(S);else if(S.data["yt-iframed-player-progress-relay"])this.handleChatFrameReady();else if(S.data["yt-show-feedback-dialog"]){var p=_.tW().resolve(_.AW(_.Znt));if(p){var U=S.ports,Y;U&&U.length&&(Y=function(){U[0].postMessage({})});
S=S.data["yt-show-feedback-dialog"];p.showFeedbackDialog(S.customProductData,S.feedbackContent,Y,S.bucket)}}else if(S.data["yt-show-survey"])_.cv(this.hostElement,"yt-show-survey",S.data["yt-show-survey"]);else if(S.data["yt-purchase-membership"])_.tW().resolve(_.cQ).resolveCommand(S.data["yt-purchase-membership"],{form:{element:this.hostElement}});else if(S.data["yt-tunnel-out-live-service-request"])this.ytComponentBehavior.resolveCommand(S.data["yt-tunnel-out-live-service-request"]);else if(S.data["yt-user-activity"])_.SP();
else if(S.data["yt-attach-live-chat-response-tracking-params"])this.attachLiveChatResponseVeTrackingParams(S.data["yt-attach-live-chat-response-tracking-params"].trackingParams);else if(S.data["yt-open-popup"])this.ytOpenPopupBehavior.openPopup(S.data["yt-open-popup"]);else if(S.data["yt-log-flow-logging-event-command"])this.ytComponentBehavior.resolveCommand(S.data["yt-log-flow-logging-event-command"]);else if(S.data["yt-hide-live-chat"])this.onShowHideChat();else S.data["yt-report-moderation-state-log"]&&
this.player&&(p={cpn:this.player.getVideoData().cpn},_.RV("liveChatBeingModerated",p))};
_.M.attachLiveChatResponseVeTrackingParams=function(S){S=_.JS(S);var p=_.X$(),U=_.ad("liveChatRenderer.trackingParams",this.data);p&&U&&_.wB(p,_.JS(U),S)};
_.M.handleBuyflowMessages=function(S){var p=S.data["yt-iframed-buyflow-launcher"].encryptedPurchaseParams,U=S.data["yt-iframed-buyflow-launcher"].serializedTransactionFlowLoggingParams,Y=S.data["yt-iframed-buyflow-launcher"].serializedPaymentsClientParams;_.Smd(_.p4(_.xM),p.replace(/-/g,"+").replace(/_/g,"/"),function(L){S.ports[0].postMessage({success:!0,buyFlowResponse:L})},void 0,function(L){S.ports[0].postMessage({success:!1,
error:L&&L.message||"Buyflow rejected without error."})},_.D9().get("hl"),void 0,function(){S.ports[0].postMessage({closed:!0})},U,Y)};
_.M.setupPlayerProgressRelay=function(){var S=this;if(!this.isListeningForPlayerProgress){var p=_.iZ();p!=null&&p.getPlayerPromise&&(p.getPlayerPromise().then(function(U){S.playerApiReady(U)}),this.isListeningForPlayerProgress=!0)}};
_.M.handleChatFrameReady=function(){this.isFrameReady=!0;this.player&&this.player.getAdState()===1&&this.postToContentWindow({"yt-player-ad-start":""})};
_.M.playerApiReady=function(S){this.setPlayer(S)};
_.M.playerProgressHandler=function(){if(this.player){var S=this.player.getProgressState();this.postToContentWindow({"yt-player-video-progress":S.current})}};
_.M.playerAdStartHandler=function(S){this.postToContentWindow({"yt-player-ad-start":S})};
_.M.playerAdEndHandler=function(){this.postToContentWindow({"yt-player-ad-end":!0})};
_.M.playerStateChangeHandler=function(S){this.postToContentWindow({"yt-player-state-change":S})};
_.M.setPlayer=function(S){this.player&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$19955_playerEvents);S&&(this.player=S,this.ytPlayerListenerBehavior.listenToPlayerEvents(S,this.JSC$19955_playerEvents),_.cv(this.hostElement,"player-api-ready"))};
_.M.liveChatPageUrl=function(S,p,U,Y){return!U||p?"about:blank":U.liveChatRenderer?(p=_.mz(this.currentPageUrl).JSC$8037_queryData_,kit(p),S=_.mz(S),p.add("continuation",U.liveChatRenderer.continuations[0].reloadContinuationData.continuation),U=_.bE()==="USER_INTERFACE_THEME_DARK",(Y||U)&&p.add("dark_theme","true"),_.$x(S,p),Y=_.mz(S.toString()),U=Y.JSC$8037_queryData_,"SESSION_INDEX"in _.s0&&(U.add("authuser",_.g7("SESSION_INDEX")),"DELEGATED_SESSION_ID"in _.s0&&U.add("pageId",_.g7("DELEGATED_SESSION_ID"))),
"INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT"in _.s0&&U.add("sdc",_.g7("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT")),Y.toString()):""};
_.M.isCollapsed=function(S,p){return p!==null?p:this.isChatReplay()||S&&S.conversationBarRenderer&&S.conversationBarRenderer.availabilityMessage?!0:S?S.liveChatRenderer?S.liveChatRenderer.initialDisplayState==="LIVE_CHAT_DISPLAY_STATE_COLLAPSED":!_.y("live_chat_hide_premiere_replay_message")||S.conversationBarRenderer&&S.conversationBarRenderer.availabilityMessage?!1:!0:!1};
_.M.isHidden=function(S,p,U){var Y=p&&p.conversationBarRenderer&&p.conversationBarRenderer.availabilityMessage,L=p&&p.liveChatRenderer&&p.liveChatRenderer.showHideButton,I=p&&p.liveChatRenderer&&p.liveChatRenderer.showButton;return U&&S&&!Y&&!I||!U&&S&&!Y&&!L?!0:p&&p.liveChatRenderer&&p.liveChatRenderer.initialDisplayState?p.liveChatRenderer.initialDisplayState==="LIVE_CHAT_DISPLAY_STATE_HIDDEN":!1};
_.M.computeButtonOverride=function(S,p){if(S&&p)return{type:"outline"}};
_.M.setCollapsedState=function(S){_.b(S,_.oZI)&&(this.isHiddenByUser=!!_.b(S,_.oZI).collapsed,!this.isHiddenByUser&&_.y("enable_teaser_framework_web_client")&&_.St(this.hostElement,"yt-scroll-to-watch-element",[this.hostElement]))};
_.M.forwardReduxActionToIframe=function(S){this.postToContentWindow({"yt-live-chat-forward-redux-action":S})};
_.M.onLoopRangeChange=function(S){this.showAboveScrim=!(S==null||!S.postId)};
_.M.onDarkThemeAction=function(){this.sendDarkThemePostMessage(!0)};
_.M.onLightThemeAction=function(){this.sendDarkThemePostMessage(!1)};
_.M.onClosePdgBuyFlow=function(){this.postToContentWindow({"yt-live-chat-close-buy-flow":!0})};
_.M.sendDarkThemePostMessage=function(S){this.postToContentWindow({"yt-live-chat-set-dark-theme":S})};
_.M.onLiveChatBuyFlowCallback=function(S){this.postToContentWindow({"yt-live-chat-buy-flow-callback":S})};
_.M.handleKeyboardEvent=function(S){(0,_.h9.containsValue)(OeY,S.keyCode)&&this.postToContentWindow({"yt-live-chat-keyboard-event":{eventType:S.type,keyCode:S.keyCode}})};
_.M.isChatReplay=function(){return!!(this.data&&this.data.liveChatRenderer&&this.data.liveChatRenderer.isReplay)};
_.M.postToContentWindow=function(S){if(this.isFrameReady)try{var p=window.location.protocol+"//"+window.location.host,U;(U=this.chatframe)!=null&&U.contentWindow?this.chatframe.contentWindow.postMessage(S,p):_.eP(new _.y7("Tried posting a message to an iframe with no content window",S))}catch(Y){_.ZP(Y)}};
_.M.shouldHideChatFrame=function(S){return S&&_.y("hide_live_chat_button_when_collapsed")};
_.$u.Object.defineProperties(bC.prototype,{enableShowWithoutHideChatButton:{configurable:!0,enumerable:!0,get:function(){if(_.y("live_chat_overflow_hide_chat")||_.y("web_watch_chat_hide_button_killswitch"))return _.y("live_chat_overflow_hide_chat");var S,p,U,Y;return!!((S=this.data)==null?0:(p=S.liveChatRenderer)==null?0:(U=p.header)==null?0:(Y=U.liveChatHeaderRenderer)==null?0:Y.collapseButton)}}});
bC.prototype.collapsedChanged=bC.prototype.collapsedChanged;bC.prototype.urlChanged=bC.prototype.urlChanged;bC.prototype.dataChanged=bC.prototype.dataChanged;bC.prototype.onShowHideChat=bC.prototype.onShowHideChat;_.x([_.F(_.Aj.YtActionHandlerBehavior),_.E("design:type",Object)],bC.prototype,"ytActionHandlerBehavior",void 0);_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],bC.prototype,"ytRendererBehavior",void 0);
_.x([_.F(_.eL.YtComponentBehavior),_.E("design:type",Object)],bC.prototype,"ytComponentBehavior",void 0);_.x([_.F(_.Cj.YtPlayerListenerBehavior),_.E("design:type",_.xt)],bC.prototype,"ytPlayerListenerBehavior",void 0);_.x([_.F(_.dW.YtOpenPopupBehavior),_.E("design:type",Object)],bC.prototype,"ytOpenPopupBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],bC.prototype,"data",void 0);_.x([_.g(),_.E("design:type",Object)],bC.prototype,"currentPageUrl",void 0);
_.x([_.g({computed:"computeBaseUrl(currentPageUrl,data)"}),_.E("design:type",Object)],bC.prototype,"baseUrl",void 0);_.x([_.g({computed:"liveChatPageUrl(baseUrl, collapsed, data, forceDarkTheme)"}),_.E("design:type",String)],bC.prototype,"url",void 0);_.x([_.g(),_.E("design:type",Object)],bC.prototype,"isHiddenByUser",void 0);_.x([_.g({reflectToAttribute:!0,computed:"isHidden(collapsed, data, enableShowWithoutHideChatButton)"}),_.E("design:type",Object)],bC.prototype,"hidden",void 0);
_.x([_.g({reflectToAttribute:!0,computed:"isCollapsed(data,isHiddenByUser)"}),_.E("design:type",Boolean)],bC.prototype,"collapsed",void 0);_.x([_.g({reflectToAttribute:!0,computed:"shouldHideChatFrame(collapsed)"}),_.E("design:type",Boolean)],bC.prototype,"hideChatFrame",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],bC.prototype,"showAboveScrim",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],bC.prototype,"watchNextGrid",void 0);
_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Boolean)],bC.prototype,"modernButtons",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],bC.prototype,"roundedContainer",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],bC.prototype,"noBorder",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Boolean)],bC.prototype,"roundBackground",void 0);
_.x([_.g({computed:"computeButtonOverride(collapsed,modernButtons)"}),_.E("design:type",Object)],bC.prototype,"toggleButtonOverride",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Boolean)],bC.prototype,"overflowHideChat",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],bC.prototype,"forceDarkTheme",void 0);_.x([_.e("data"),_.E("design:type",Boolean),_.E("design:paramtypes",[])],bC.prototype,"enableShowWithoutHideChatButton",null);
_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],bC.prototype,"theaterWatchWhile",void 0);_.x([_.O2("#chatframe"),_.E("design:type",HTMLIFrameElement)],bC.prototype,"chatframe",void 0);_.x([_.Vd("yt-toggle-button"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],bC.prototype,"onShowHideChat",null);_.x([_.z4("data"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],bC.prototype,"dataChanged",null);
_.x([_.T4("url"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],bC.prototype,"urlChanged",null);_.x([_.T4("collapsed"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],bC.prototype,"collapsedChanged",null);bC=_.x([_.f({is:"ytd-live-chat-frame",disableElementRegistration:!0})],bC);
_.C(bC,"ytd-live-chat-frame",function(){if(soq!==void 0)return soq;var S=document.createElement("template");_.h(S,'\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');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);return soq=S},{mode:1});var esL;var jT=function(){var S=_.w.apply(this,arguments)||this;S.modern=_.y("web_modern_buttons");S.buttonOverrides={style:"call-to-action",type:"filled"};return S};
_.r(jT,_.w);jT.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=_.s1(this.data.backgroundColor)))};
jT.prototype.onHeadlineClick=function(){if(this.data&&this.data.headline){var S=this.getFormattedStringLoggingDirectives(this.data.headline);S&&this.rendererBehavior.logExplicitClick(S)}};
jT.prototype.onDescriptionClick=function(){if(this.data&&this.data.description){var S=this.getFormattedStringLoggingDirectives(this.data.description);S&&this.rendererBehavior.logExplicitClick(S)}};
jT.prototype.getFormattedStringLoggingDirectives=function(S){return S&&S.runs&&S.runs.length>0&&S.runs[0]&&S.runs[0].loggingDirectives?S.runs[0].loggingDirectives:null};
jT.prototype.dataChanged=jT.prototype.dataChanged;_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],jT.prototype,"rendererBehavior",void 0);_.x([_.F(yT5.YtMacroReplacementBehavior),_.E("design:type",Object)],jT.prototype,"macroReplacementBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],jT.prototype,"data",void 0);_.x([_.g(),_.E("design:type",Object)],jT.prototype,"navigationEndpoint",void 0);
_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Boolean)],jT.prototype,"enableColors",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],jT.prototype,"modern",void 0);_.x([_.g(),_.E("design:type",Object)],jT.prototype,"buttonOverrides",void 0);_.x([_.T4("data"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],jT.prototype,"dataChanged",null);jT=_.x([_.f({is:"ytd-action-basic-immersive-content-renderer",disableElementRegistration:!0})],jT);
_.C(jT,"ytd-action-basic-immersive-content-renderer",function(){if(esL!==void 0)return esL;var S=document.createElement("template");_.h(S,'\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');
S.content.insertBefore(_.t().content.cloneNode(!0),S.content.firstChild);return esL=S},{mode:1});var gQt;var u2P;var r0=function(){return _.w.apply(this,arguments)||this};
_.r(r0,_.w);r0.prototype.dataChanged=function(){var S;((S=this.data)==null?void 0:S.backgroundColor)!==void 0&&_.Ms(this.hostElement,{"--bgu-color":_.s1(this.data.backgroundColor)})};
r0.prototype.onImageTileClick=function(){var S;((S=this.data)==null?0:S.navigationEndpoint)&&_.cv(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint});var p;((p=this.data)==null?0:p.clickCommand)&&this.componentBehavior.resolveCommand(this.data.clickCommand)};
_.$u.Object.defineProperties(r0.prototype,{hasBackgroundColor:{configurable:!0,enumerable:!0,get:function(){var S;return((S=this.data)==null?void 0:S.backgroundColor)!==void 0}},
getObjectFit:{configurable:!0,enumerable:!0,get:function(){var S;if(((S=this.data)==null?void 0:S.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 S;return((S=this.data)==null?void 0:S.tileRenderingStyle)==="TILE_RENDERING_STYLE_FOOTERED_METADATA"}},
getSecondaryDetails:{configurable:!0,enumerable:!0,get:function(){var S,p,U;if(((S=this.data)==null?void 0:(p=S.detailsLine)==null?void 0:p.texts)!=null&&((U=this.data)==null?void 0:U.detailsLine.texts.length)>0){var Y;return(Y=this.data)==null?void 0:Y.detailsLine.texts.map(function(L){return L.text}).join("")}return null}},
getOptionalDetails:{configurable:!0,enumerable:!0,get:function(){var S,p,U;if(((S=this.data)==null?void 0:(p=S.optionalDetailsLine)==null?void 0:p.texts)!=null&&((U=this.data)==null?void 0:U.optionalDetailsLine.texts.length)>0){var Y;return(Y=this.data)==null?void 0:Y.optionalDetailsLine.texts.map(function(L){return L.text}).join("")}return null}}});
r0.prototype.dataChanged=r0.prototype.dataChanged;_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],r0.prototype,"rendererBehavior",void 0);_.x([_.F(_.eL.YtComponentBehavior),_.E("design:type",Object)],r0.prototype,"componentBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],r0.prototype,"data",void 0);_.x([_.g({reflectToAttribute:!0}),_.e("data.backgroundColor"),_.E("design:type",Boolean),_.E("design:paramtypes",[])],r0.prototype,"hasBackgroundColor",null);
_.x([_.e("data.objectFit"),_.E("design:type",Object),_.E("design:paramtypes",[])],r0.prototype,"getObjectFit",null);_.x([_.g({reflectToAttribute:!0}),_.e("data.tileRenderingStyle"),_.E("design:type",Boolean),_.E("design:paramtypes",[])],r0.prototype,"hasTileMetadata",null);_.x([_.e("data.detailsLine"),_.E("design:type",Object),_.E("design:paramtypes",[])],r0.prototype,"getSecondaryDetails",null);
_.x([_.e("data.optionalDetailsLine"),_.E("design:type",Object),_.E("design:paramtypes",[])],r0.prototype,"getOptionalDetails",null);_.x([_.T4("data"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],r0.prototype,"dataChanged",null);r0=_.x([_.f({is:"ytd-image-tile-renderer",disableElementRegistration:!0})],r0);
_.C(r0,"ytd-image-tile-renderer",function(){if(u2P!==void 0)return u2P;var S=document.createElement("template");_.h(S,'\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');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);return u2P=S},{mode:1});var wRA;var G_=function(){return _.w.apply(this,arguments)||this};
_.r(G_,_.w);G_.prototype.getOpenLinkIcon=function(){return _.y("swap_open_in_new_with_arrow_diagonal_up_right_on_desktop")?"arrow_diagonal_up_right":"open_in_new"};
G_.prototype.onSitelinkTap=function(){_.cv(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint});if(this.data&&this.data.clickCommands)if(_.y("kevlar_command_handler_migration_killswitch"))_.Lp(this.hostElement,this.data.clickCommands,this.hostElement);else for(var S=_.d(this.data.clickCommands),p=S.next();!p.done;p=S.next())this.ytComponentBehavior.resolveCommand(p.value)};
_.x([_.F(_.eL.YtComponentBehavior),_.E("design:type",Object)],G_.prototype,"ytComponentBehavior",void 0);_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],G_.prototype,"rendererBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],G_.prototype,"data",void 0);G_=_.x([_.f({is:"ytd-sitelink-renderer",disableElementRegistration:!0})],G_);
_.C(G_,"ytd-sitelink-renderer",function(){if(wRA!==void 0)return wRA;var S=document.createElement("template");_.h(S,'\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');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);return wRA=S},{mode:1});var hf=function(){var S=_.w.apply(this,arguments)||this;S.paddingFix=_.y("enable_ads_web_ep_buenos_aires_and_padding_fix");return S};
_.r(hf,_.w);hf.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"}}}};
hf.prototype.dataChanged=function(){var S=this;this.data&&this.data.impressionCommands&&this.data.impressionCommands.forEach(function(p){p.clickTrackingParams&&delete p.clickTrackingParams;S.ytMacroReplacementBehavior.sendServiceRequestAction([p])})};
hf.prototype.shouldHideFooter=function(S){return!(S&&_.y("use_ads_engagement_panel_desktop_footer_cta"))};
_.$u.Object.defineProperties(hf.prototype,{removeBorderFromImageTiles:{configurable:!0,enumerable:!0,get:function(){var S,p;return((S=this.data)==null?void 0:S.imageTileRenderers)===void 0||((p=this.data)==null?void 0:p.imageTileRenderers.length)===0?!1:this.data.imageTileRenderers.some(function(U){var Y;return(Y=_.b(U,np5))==null?void 0:Y.removeBorder})}},
useFooteredMetadataRenderingStyle:{configurable:!0,enumerable:!0,get:function(){var S,p;return((S=this.data)==null?void 0:S.imageTileRenderers)===void 0||((p=this.data)==null?void 0:p.imageTileRenderers.length)===0?!1:this.data.imageTileRenderers.some(function(U){var Y;return((Y=_.b(U,np5))==null?void 0:Y.tileRenderingStyle)==="TILE_RENDERING_STYLE_FOOTERED_METADATA"})}}});
hf.prototype.dataChanged=hf.prototype.dataChanged;_.x([_.F(yT5.YtMacroReplacementBehavior),_.E("design:type",Object)],hf.prototype,"ytMacroReplacementBehavior",void 0);_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],hf.prototype,"ytRendererBehavior",void 0);_.x([_.F(_.qH.YtRendererstamperBehavior),_.E("design:type",Object)],hf.prototype,"ytRendererstamperBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],hf.prototype,"data",void 0);
_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],hf.prototype,"paddingFix",void 0);_.x([_.g({reflectToAttribute:!0}),_.e("data.imageTileRenderers"),_.E("design:type",Boolean),_.E("design:paramtypes",[])],hf.prototype,"removeBorderFromImageTiles",null);_.x([_.g({reflectToAttribute:!0}),_.e("data.imageTileRenderers"),_.E("design:type",Boolean),_.E("design:paramtypes",[])],hf.prototype,"useFooteredMetadataRenderingStyle",null);
_.x([_.T4("data"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],hf.prototype,"dataChanged",null);hf=_.x([_.f({is:"ytd-action-engagement-panel-content-renderer",disableElementRegistration:!0})],hf);
_.C(hf,"ytd-action-engagement-panel-content-renderer",function(){if(gQt!==void 0)return gQt;var S=document.createElement("template");_.h(S,'\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');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);return gQt=S},{mode:1});var lWE;var aWi=_.$k(function(S){var p=S.data;var U=S.customCommandResolver;S=_.vH();_.mL(S,function(){return p().interaction},U);
_.tU(S,{visibilityCallback:function(Y){var L,I=(L=p().interaction)==null?void 0:L.onFirstVisible;Y&&I&&_.wx(I)},
showOption:_.$P});return _.H("ad-grid-card-image-full-metadata-view-model",{class:function(){var Y;return((Y=p().interaction)==null?0:Y.onTap)?"ytwAdGridCardImageFullMetadataViewModelHostIsClickableAdComponent":"ytwAdGridCardImageFullMetadataViewModelHost"},
el:S,"aria-label":function(){var Y,L;return(Y=p().interaction)==null?void 0:(L=Y.accessibility)==null?void 0:L.label}},_.H("div",{class:"ytwAdGridCardImageFullMetadataViewModelHostImage"},_.H(_.yP,{data:function(){return p().adImage}},{adImageViewModel:function(Y){return _.H(_.dy,{data:Y.data,
customCommandResolver:U})}})),_.H("div",{class:"ytwAdGridCardImageFullMetadataViewModelHostMetadata"},_.H(_.n,{cond:function(){return p().headline},
then:function(Y){return _.H(_.i6,{text:Y,className:"ytwAdGridCardImageFullMetadataViewModelHostMetadataHeadline"})}}),_.H(_.n,{cond:function(){return p().detailsLine},
then:function(Y){return _.H("div",{class:"ytwAdGridCardImageFullMetadataViewModelHostMetadataPrimary"},_.H(_.yP,{data:Y},{adDetailsLineViewModel:function(L){return _.H(_.tQ,{data:L.data,customCommandResolver:U,adRenderingContextType:function(){return"AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"}})}}))}}),_.H(_.n,{cond:function(){return p().secondaryDetailsLine},
then:function(Y){return _.H("div",{class:"ytwAdGridCardImageFullMetadataViewModelHostMetadataSecondary"},_.H(_.yP,{data:Y},{adDetailsLineViewModel:function(L){return _.H(_.tQ,{data:L.data,customCommandResolver:U,adRenderingContextType:function(){return"AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"}})}}))}})))},"Ki");var fWA=_.$k(function(S){var p=S.data;var U=S.customCommandResolver;S=_.vH();_.mL(S,function(){return p().interaction},U);
_.tU(S,{visibilityCallback:function(Y){var L,I=(L=p().interaction)==null?void 0:L.onFirstVisible;Y&&I&&_.wx(I)},
showOption:_.$P});return _.H("ad-grid-card-image-view-model",{class:function(){var Y;return((Y=p().interaction)==null?0:Y.onTap)?"ytwAdGridCardImageViewModelHostIsClickableAdComponent":"ytwAdGridCardImageViewModelHost"},
el:S,"aria-label":function(){var Y,L;return(Y=p().interaction)==null?void 0:(L=Y.accessibility)==null?void 0:L.label}},_.H(_.yP,{data:function(){return p().adImage}},{adImageViewModel:function(Y){return _.H(_.dy,{data:Y.data,
customCommandResolver:U})}}),_.H("div",{class:"ytwAdGridCardImageViewModelHostCardBadge"},_.H(_.yP,{data:function(){return p().adCardBadge}},{adCardBadgeViewModel:_.OVt})))},"Li");var CnY=_.$k(function(S){var p=S.data;var U=S.customCommandResolver;S=_.vH();_.mL(S,function(){return p().interaction},U);
_.tU(S,{visibilityCallback:function(Y){var L,I=(L=p().interaction)==null?void 0:L.onFirstVisible;Y&&I&&_.wx(I)},
showOption:_.$P});return _.H("ad-grid-card-text-view-model",{class:function(){var Y;return((Y=p().interaction)==null?0:Y.onTap)?"ytwAdGridCardTextViewModelHostIsClickableAdComponent":"ytwAdGridCardTextViewModelHost"},
el:S,"aria-label":function(){var Y,L;return(Y=p().interaction)==null?void 0:(L=Y.accessibility)==null?void 0:L.label}},_.H("div",{class:"ytwAdGridCardTextViewModelHostMetadata"},_.H(_.n,{cond:function(){return p().title},
then:function(Y){return _.H(_.i6,{text:Y,className:"ytwAdGridCardTextViewModelHostMetadataHeadline"})}}),_.H("div",{class:function(){return _.y("desktop_sitelinks_inline_descriptions")?"ytwAdGridCardTextViewModelHostMetadataDescriptionInline":"ytwAdGridCardTextViewModelHostMetadataDescription"}},_.H(_.KU,{each:function(){var Y;
return((Y=p())==null?void 0:Y.descriptions)||[]},
keyBy:"INDEX"},function(Y){return _.H(_.i6,{text:Y,className:function(){return _.y("desktop_sitelinks_inline_descriptions")?"ytwAdGridCardTextViewModelHostMetadataDescriptionInlineStringInline":"ytwAdGridCardTextViewModelHostMetadataDescriptionString"}})}))),_.H("div",{class:"ytwAdGridCardTextViewModelHostButton"},_.H(_.yP,{data:function(){return p().moreInfoButton}},{adButtonViewModel:function(Y){return _.H(_.Nf,{data:Y.data,
customCommandResolver:U})}})))},"Mi");var x3q=_.$k(function(S){var p=S.data;var U=S.customCommandResolver;var Y=S.adGridCardCollectionStyle;S=_.vH();_.tU(S,{visibilityCallback:function(L){var I,V=(I=p().interaction)==null?void 0:I.onFirstVisible;L&&V&&_.wx(V)},
showOption:_.$P});return _.H("ad-grid-card-collection-view-model",{class:function(){return"ytwAdGridCardCollectionViewModelHost"},
el:S,style:function(){return"grid-template-columns: repeat("+ZBL(Y?Y():p().style)+", minmax(0, 1fr));"}},_.H(_.yP,{data:function(){var L;
return(L=p())==null?void 0:L.gridCards}},{adGridCardImageViewModel:function(L){return _.H(fWA,{data:L.data,
customCommandResolver:U})},
adGridCardImageFullMetadataViewModel:function(L){return _.H(aWi,{data:L.data,customCommandResolver:U})},
adGridCardTextViewModel:function(L){return _.H(CnY,{data:L.data,customCommandResolver:U})}}))},"Ni");_.qm(_.$k(function(S){var p=S.data;S=_.vH();_.mL(S,function(){return p().interaction},sDd);
_.tU(S,{visibilityCallback:function(U){var Y,L=(Y=p().interaction)==null?void 0:Y.onFirstVisible;U&&L&&_.wx(L)},
showOption:_.$P});return _.H("panel-text-icon-image-tiles-button-layout-content-view-model",{class:"ytwPanelTextIconImageTilesButtonLayoutContentViewModelHost",el:S},_.H("div",{class:"ytwPanelTextIconImageTilesButtonLayoutContentViewModelHostCardCollection"},_.H(_.n,{cond:_.wZu("(min-width: "+((0,_.FK)()+_.wp)+"px)"),then:function(){return _.H(_.yP,{data:function(){return p().adGridCardCollection}},{adGridCardCollectionViewModel:function(U){return _.H(x3q,{data:U.data,
customCommandResolver:sDd})}})},
else:function(){return _.H(_.yP,{data:function(){return p().adGridCardCollection}},{adGridCardCollectionViewModel:function(U){return _.H(x3q,{data:U.data,
customCommandResolver:sDd,adGridCardCollectionStyle:"AD_GRID_CARD_COLLECTION_STYLE_FIXED_SIX_COLUMNS"})}})}})),_.H("div",{class:"ytwPanelTextIconImageTilesButtonLayoutContentViewModelHostButton"},_.H(_.yP,{data:function(){return p().adButton}},{adButtonViewModel:function(U){return _.H(_.Nf,{data:U.data,
customCommandResolver:sDd})}})))},"Oi"),"panel-text-icon-image-tiles-button-layout-content-view-model",{props:{data:_.x2}});_.qm(_.$k(function(S){var p=S.data;S=_.vH();_.mL(S,function(){return p().interaction},e3i);
_.tU(S,{visibilityCallback:function(U){var Y,L=(Y=p().interaction)==null?void 0:Y.onFirstVisible;U&&L&&_.wx(L)},
showOption:_.$P});return _.H("panel-text-icon-text-grid-cards-sub-layout-content-view-model",{class:"ytwPanelTextIconTextGridCardsSubLayoutContentViewModelHost",el:S},_.H("div",{class:"ytwPanelTextIconTextGridCardsSubLayoutContentViewModelHostCardCollection"},_.H(_.yP,{data:function(){if(_.wZu("(min-width: "+((0,_.FK)()+_.wp)+"px)")())var U=p().adGridCardCollection;else{U=Object.assign({},_.b(p().adGridCardCollection,Jos));var Y;U.gridCards!==void 0&&((Y=U.gridCards)==null?void 0:Y.length)>1?U.style=
"AD_GRID_CARD_COLLECTION_STYLE_FIXED_TWO_COLUMNS":U.style="AD_GRID_CARD_COLLECTION_STYLE_FIXED_ONE_COLUMN";U={adGridCardCollectionViewModel:U}}return U}},{adGridCardCollectionViewModel:function(U){return _.H(x3q,{data:U.data,
customCommandResolver:e3i})}})),_.H("div",{class:"ytwPanelTextIconTextGridCardsSubLayoutContentViewModelHostButton"},_.H(_.yP,{data:function(){return p().adButton}},{adButtonViewModel:function(U){return _.H(_.Nf,{data:U.data,
customCommandResolver:e3i})}})))},"Pi"),"panel-text-icon-text-grid-cards-sub-layout-content-view-model",{props:{data:_.x2}});var Ri=function(){var S=_.w.apply(this,arguments)||this;S.actionMap={"yt-ad-engagement-panel-click-action":"handleAdsEngagementPanelClick"};return S};
_.r(Ri,_.w);_.M=Ri.prototype;_.M.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"}}}};
_.M.attached=function(){this.getDataFromPlayerAndRender()};
_.M.dataChanged=function(){this.getDataFromPlayerAndRender()};
_.M.detached=function(){this.player&&(this.ytPlayerListenerBehavior.unlistenFromPlayerEvent(this.player,"updateEngagementPanelAction",this.sendUpdateEngagementPanelAction),this.ytPlayerListenerBehavior.unlistenFromPlayerEvent(this.player,"changeEngagementPanelVisibility",this.sendChangeEngagementPanelVisibilityAction),this.player=null)};
_.M.getDataFromPlayerAndRender=function(){var S=this,p=_.$L(this.hostElement);p&&p.getPlayerPromise().then(function(U){S.getCachedDataAndListen(U)})};
_.M.getCachedDataAndListen=function(S){this.resolveCachedActions();this.player||(this.ytPlayerListenerBehavior.listenToPlayerEvent(S,"updateEngagementPanelAction",this.sendUpdateEngagementPanelAction),this.ytPlayerListenerBehavior.listenToPlayerEvent(S,"changeEngagementPanelVisibility",this.sendChangeEngagementPanelVisibilityAction),this.player=S)};
_.M.resolveCachedActions=function(){var S=_.ad("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction");(S=S&&S())&&!_.h9.isEmpty(S)&&this.sendUpdateEngagementPanelAction(S);(S=(S=_.ad("yt.www.ads.eventcache.getLastChangeEngagementPanelVisibilityAction"))&&S())&&!_.h9.isEmpty(S)&&this.sendChangeEngagementPanelVisibilityAction(S);(S=(S=_.ad("yt.www.ads.eventcache.getLastScrollToEngagementPanelCommand"))&&S())&&!_.h9.isEmpty(S)&&this.sendScrollToEngagementPanelCommand(S)};
_.M.sendUpdateEngagementPanelAction=function(S){var p;_.St(this.hostElement,"yt-update-engagement-panel-action",[(p=_.h9.get(S,"action"))!=null?p:S])};
_.M.sendChangeEngagementPanelVisibilityAction=function(S){_.St(this.hostElement,"yt-change-engagement-panel-visibility-action",[S])};
_.M.sendScrollToEngagementPanelCommand=function(S){_.St(this.hostElement,"yt-scroll-to-engagement-panel-command",[S])};
_.M.handleAdsEngagementPanelClick=function(){this.player?(this.player.onAdUxClicked("ads-engagement-panel"),_.y("pause_ad_video_on_desktop_engagement_panel_click")&&this.player.pauseVideo()):_.eP(Error("fm"))};
Ri.prototype.dataChanged=Ri.prototype.dataChanged;_.x([_.F(_.Aj.YtActionHandlerBehavior),_.E("design:type",Object)],Ri.prototype,"actionHandlerBehavior",void 0);_.x([_.F(_.eL.YtComponentBehavior),_.E("design:type",Object)],Ri.prototype,"componentBehavior",void 0);_.x([_.F(_.Cj.YtPlayerListenerBehavior),_.E("design:type",_.xt)],Ri.prototype,"ytPlayerListenerBehavior",void 0);_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],Ri.prototype,"ytRendererBehavior",void 0);
_.x([_.F(_.qH.YtRendererstamperBehavior),_.E("design:type",Object)],Ri.prototype,"ytRendererstamperBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],Ri.prototype,"data",void 0);_.x([_.g(),_.E("design:type",Object)],Ri.prototype,"player",void 0);_.x([_.T4("data"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],Ri.prototype,"dataChanged",null);Ri=_.x([_.f({is:"ytd-ads-engagement-panel-content-renderer",disableElementRegistration:!0})],Ri);
_.C(Ri,"ytd-ads-engagement-panel-content-renderer",function(){if(lWE!==void 0)return lWE;var S=document.createElement("template");_.h(S,'\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');S.content.insertBefore(_.t().content.cloneNode(!0),S.content.firstChild);
return lWE=S},{mode:1});var EQA;var FJ=function(){var S=_.w.apply(this,arguments)||this;S.player=null;S.JSC$19992_playerEvents=new Map;S.actionMap={"yt-delete-clip-engagement-panel-command":"onYtDeleteClipEngagementPanelCommand"};return S};
_.r(FJ,_.w);_.M=FJ.prototype;_.M.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]]"}}}}}};
_.M.created=function(){this.player=null;this.JSC$19992_playerEvents=new Map;this.JSC$19992_playerEvents.set("onLoopRangeChange",this.onLoopRangeChange);this.JSC$19992_playerEvents.set("onVideoProgress",this.onVideoProgress);this.JSC$19992_playerEvents.set("onAdStart",this.playerAdStartHandler);this.JSC$19992_playerEvents.set("onPlaybackStartExternal",this.playerAdEndHandler)};
_.M.attached=function(){var S=this,p=_.$L();this.set("isDarkTheme",!!document.documentElement.hasAttribute("dark"));p&&p.getPlayerPromise().then(function(U){S.setPlayer(U);S.set("isPageLoad",!1)})};
_.M.setPlayer=function(S){this.player&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$19992_playerEvents);this.set("player",S);S&&(this.ytPlayerListenerBehavior.listenToPlayerEvents(S,this.JSC$19992_playerEvents),S.getPresentingPlayerType()===2&&this.playerAdStartHandler())};
_.M.onLoopRangeChange=function(S){var p=_.tW().resolve(_.AW(_.oy));if((!p||p.isOnWatch())&&this.hostElement.clientHeight){var U;!S&&((U=this.data)==null?0:U.onScrubExit)&&this.ytComponentBehavior.resolveCommand(this.data.onScrubExit)}};
_.M.onVideoProgress=function(S){var p,U,Y=((p=this.player)==null?void 0:(U=p.getPresentingPlayerType)==null?void 0:U.call(p))===2;this.isAdPlaying!==Y&&this.set("isAdPlaying",Y);var L;if(!Y&&(L=this.player)!=null&&L.getLoopRange()){U=this.player.getLoopRange();p=U.startTimeMs;U=U.endTimeMs;Y=this.player.getProgressState(1).seekableStart;var I;p<Y*1E3&&((I=this.data)==null?0:I.onClipViewInvalidCommand)&&(this.player.seekToLiveHead(),this.ytComponentBehavior.resolveCommand(this.data.onClipViewInvalidCommand));
S=U<S*1E3;var V;((V=this.player)==null?0:V.getLoopRange())&&S&&this.player.seekTo(p/1E3)}};
_.M.playerAdStartHandler=function(){this.set("isAdPlaying",!0)};
_.M.playerAdEndHandler=function(){this.set("isAdPlaying",!1)};
_.M.onYtDeleteClipEngagementPanelCommand=function(S){_.b(S,gpt).command&&this.ytComponentBehavior.resolveCommand(_.b(S,gpt).command)};
_.$u.Object.defineProperties(FJ.prototype,{voteCount:{configurable:!0,enumerable:!0,get:function(){var S;return((S=this.data)==null?void 0:S.voteCount)||_.Ec("0")}},
channelEndpoint:{configurable:!0,enumerable:!0,get:function(){var S;return(S=this.data)==null?void 0:S.channelNavigationEndpoint}},
channelHref:{configurable:!0,enumerable:!0,get:function(){return this.ytComponentBehavior.computeHref_(this.channelEndpoint)}}});
_.x([_.F(_.eL.YtComponentBehavior),_.E("design:type",Object)],FJ.prototype,"ytComponentBehavior",void 0);_.x([_.F(_.qH.YtRendererstamperBehavior),_.E("design:type",Object)],FJ.prototype,"ytRendererstamperBehavior",void 0);_.x([_.F(_.Aj.YtActionHandlerBehavior),_.E("design:type",Object)],FJ.prototype,"ytActionHandlerBehavior",void 0);_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],FJ.prototype,"ytRendererBehavior",void 0);
_.x([_.F(_.Cj.YtPlayerListenerBehavior),_.E("design:type",_.xt)],FJ.prototype,"ytPlayerListenerBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],FJ.prototype,"data",void 0);_.x([_.g({reflectToAttribute:!0,value:!1}),_.E("design:type",Boolean)],FJ.prototype,"isAdPlaying",void 0);_.x([_.g({reflectToAttribute:!0,value:!0}),_.E("design:type",Boolean)],FJ.prototype,"isPageLoad",void 0);_.x([_.g({reflectToAttribute:!0,value:!0}),_.E("design:type",Boolean)],FJ.prototype,"isDarkTheme",void 0);
_.x([_.e("data"),_.E("design:type",Object),_.E("design:paramtypes",[])],FJ.prototype,"voteCount",null);_.x([_.e("data"),_.E("design:type",Object),_.E("design:paramtypes",[])],FJ.prototype,"channelEndpoint",null);_.x([_.e("channelEndpoint"),_.E("design:type",Object),_.E("design:paramtypes",[])],FJ.prototype,"channelHref",null);FJ=_.x([_.f({is:"ytd-clip-attribution-renderer",disableElementRegistration:!0})],FJ);
_.C(FJ,"ytd-clip-attribution-renderer",function(){if(EQA!==void 0)return EQA;var S=document.createElement("template");_.h(S,'\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');
S.content.insertBefore(_.t().content.cloneNode(!0),S.content.firstChild);return EQA=S},{mode:1});var m3t;var XJ=function(){var S=_.w.apply(this,arguments)||this;S.player=null;S.JSC$19997_playerEvents=new Map;return S};
_.r(XJ,_.w);_.M=XJ.prototype;_.M.created=function(){this.player=null;this.JSC$19997_playerEvents=new Map;this.JSC$19997_playerEvents.set("onVideoProgress",this.onVideoProgress);this.JSC$19997_playerEvents.set("onAdStart",this.playerAdStartHandler);this.JSC$19997_playerEvents.set("onPlaybackStartExternal",this.playerAdEndHandler)};
_.M.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:{component:"ytd-button-renderer"}}}}};
_.M.attached=function(){var S=this,p=_.$L();p&&p.getPlayerPromise().then(function(U){S.setPlayer(U);S.set("isPageLoad",!1)})};
_.M.setPlayer=function(S){this.player&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$19997_playerEvents);this.set("player",S);if(S){this.ytPlayerListenerBehavior.listenToPlayerEvents(S,this.JSC$19997_playerEvents);var p;(S==null?void 0:(p=S.getPresentingPlayerType)==null?void 0:p.call(S))===2&&this.playerAdStartHandler()}};
_.M.playerAdStartHandler=function(){this.set("isAdPlaying",!0)};
_.M.playerAdEndHandler=function(){this.set("isAdPlaying",!1)};
_.M.onVideoProgress=function(){var S,p,U=((S=this.player)==null?void 0:(p=S.getPresentingPlayerType)==null?void 0:p.call(S))===2;this.isAdPlaying!==U&&this.set("isAdPlaying",U)};
_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],XJ.prototype,"ytRendererBehavior",void 0);_.x([_.F(_.qH.YtRendererstamperBehavior),_.E("design:type",Object)],XJ.prototype,"ytRendererstamperBehavior",void 0);_.x([_.F(_.Cj.YtPlayerListenerBehavior),_.E("design:type",_.xt)],XJ.prototype,"ytPlayerListenerBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],XJ.prototype,"data",void 0);_.x([_.g({reflectToAttribute:!0,value:!1}),_.E("design:type",Boolean)],XJ.prototype,"isAdPlaying",void 0);
_.x([_.g({reflectToAttribute:!0,value:!0}),_.E("design:type",Boolean)],XJ.prototype,"isPageLoad",void 0);XJ=_.x([_.f({is:"ytd-clip-section-footer-renderer",disableElementRegistration:!0})],XJ);
_.C(XJ,"ytd-clip-section-footer-renderer",function(){if(m3t!==void 0)return m3t;var S=document.createElement("template");_.h(S,'\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');S.content.insertBefore(_.t().content.cloneNode(!0),S.content.firstChild);return m3t=S},{mode:1});var oQ5;var vQT;var PU=function(){return _.w.apply(this,arguments)||this};
_.r(PU,_.w);_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],PU.prototype,"ytRendererBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],PU.prototype,"data",void 0);PU=_.x([_.f({is:"ytd-clip-ad-state-renderer",disableElementRegistration:!0})],PU);
_.C(PU,"ytd-clip-ad-state-renderer",function(){if(vQT!==void 0)return vQT;var S=document.createElement("template");_.h(S,'\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');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);return vQT=S},{mode:1});var $3J;var Zj=function(){var S=_.w.apply(this,arguments)||this;S.value="";S.valid=!1;S.userChangedValue=!1;S.disabled=!1;S.actionMap={"yt-clip-creation-disable":"onClipCreationDisable","yt-clip-creation-enable":"onClipCreationEnable","yt-clip-creation-visibility-changed":"onClipCreationVisibilityChange"};return S};
_.r(Zj,_.w);_.M=Zj.prototype;_.M.detached=function(){this.userChangedValue=!1};
_.M.handleKeyDown=function(S){if(_.SR)var p=13;else _.Onr&&_.pT?p=13:p=13;S.keyCode===p&&S.preventDefault()};
_.M.handleInput=function(){var S=_.tB(this.hostElement).querySelector("#title");if(S){var p=(S.value||"").replace(/\r|\n/g," ");this.set("value",p);S.value=p;this.valid=S.validate();this.userChangedValue=!0}};
_.M.handleBlur=function(){this.valid=_.tB(this.hostElement).querySelector("#title").validate()};
_.M.onValueChanged=function(){_.cv(this.hostElement,"title-changed",{title:this.value})};
_.M.onValidChanged=function(){_.cv(this.hostElement,"title-valid-changed",{valid:this.valid})};
_.M.setInput=function(S,p){var U=_.tB(this.hostElement).querySelector("#title");U&&(U.value=S,this.handleInput(),p&&(U.invalid=!1,this.valid=!0))};
_.M.onClipCreationDisable=function(){this.set("disabled",!0)};
_.M.onClipCreationEnable=function(){this.set("disabled",!1)};
_.M.onClipCreationVisibilityChange=function(S){var p=this;S.visible?requestAnimationFrame(function(){var U;((U=_.tB(p.hostElement).querySelector("#title"))==null?void 0:U.inputElement).textarea.focus()}):(this.setInput("",!0),this.userChangedValue=!1)};
Zj.prototype.onValidChanged=Zj.prototype.onValidChanged;Zj.prototype.onValueChanged=Zj.prototype.onValueChanged;Zj.prototype.handleBlur=Zj.prototype.handleBlur;Zj.prototype.handleInput=Zj.prototype.handleInput;Zj.prototype.handleKeyDown=Zj.prototype.handleKeyDown;_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],Zj.prototype,"ytRendererBehavior",void 0);_.x([_.F(_.Aj.YtActionHandlerBehavior),_.E("design:type",Object)],Zj.prototype,"ytActionHandlerBehavior",void 0);
_.x([_.g(),_.E("design:type",Object)],Zj.prototype,"data",void 0);_.x([_.g(),_.E("design:type",Object)],Zj.prototype,"value",void 0);_.x([_.g(),_.E("design:type",Object)],Zj.prototype,"valid",void 0);_.x([_.g(),_.E("design:type",Object)],Zj.prototype,"userChangedValue",void 0);_.x([_.g(),_.E("design:type",Object)],Zj.prototype,"disabled",void 0);_.x([_.Vd("keydown"),_.E("design:type",Function),_.E("design:paramtypes",[KeyboardEvent]),_.E("design:returntype")],Zj.prototype,"handleKeyDown",null);
_.x([_.Vd("input"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],Zj.prototype,"handleInput",null);_.x([_.Vd("blur"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],Zj.prototype,"handleBlur",null);_.x([_.T4("value"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],Zj.prototype,"onValueChanged",null);
_.x([_.T4("valid"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],Zj.prototype,"onValidChanged",null);Zj=_.x([_.f({is:"ytd-clip-creation-text-input-renderer",disableElementRegistration:!0})],Zj);
_.C(Zj,"ytd-clip-creation-text-input-renderer",function(){if($3J!==void 0)return $3J;var S=document.createElement("template");_.h(S,'\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');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);return $3J=S},{mode:1});var i1d;var N2o;var B2L;var q4i;var ATP;var sk=function(){var S=_.w.apply(this,arguments)||this;S.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggled_","yt-clip-creation-enable":"onClipCreationEnable_","yt-clip-creation-visibility-changed":"onVisibilityChangedAction_"};S.pendingStoryboardImages_={};S.pixelRatioBreakpoints_=["1dppx","1.5dppx","2dppx","3dppx"];S.tickLabelInterval=30;S.mediumTickInterval=5;S.largeTickInterval=15;S.aboveRulerHeight=32;S.rulerHeight=50;S.smallTickHeight=4;S.mediumTickHeight=8;S.largeTickHeight=16;S.mediaListeners_=
{};return S};
_.r(sk,_.w);_.M=sk.prototype;_.M.attached=function(){var S=this;this.updatePixelRatio_();this.pixelRatioBreakpoints_.forEach(function(p){p=_.d(["screen and (min-resolution: "+p+")","screen and (max-resolution: "+p+")"]);for(var U=p.next();!U.done;U=p.next()){U=U.value;var Y=window.matchMedia(U);Y&&(S.mediaListeners_[U]=S.updatePixelRatio_.bind(S),Y.addEventListener?Y.addEventListener("change",S.mediaListeners_[U]):Y.addListener?Y.addListener(S.mediaListeners_[U]):delete S.mediaListeners_[U])}})};
_.M.detached=function(){this.setPlayer(null);for(var S=_.d(Object.keys(this.mediaListeners_)),p=S.next();!p.done;p=S.next()){var U=p.value;p=this.mediaListeners_[U];(U=window.matchMedia(U))&&(U.removeEventListener?U.removeEventListener("change",p):U.removeListener&&U.removeListener(p))}this.mediaListeners_={};this.storyboardImages_&&this.splice("storyboardImages_",0,this.storyboardImages_.length)};
_.M.onVisibilityChangedAction_=function(S){var p=this;S.visible&&!this.player_&&(S=_.$L())&&S.getPlayerPromise().then(function(U){p.setPlayer(U)})};
_.M.setPlayer=function(S){S&&this.set("player_",S)};
_.M.updatePixelRatio_=function(){this.set("devicePixelRatio_",Math.max(1,window.devicePixelRatio))};
_.M.setUpCanvas_=function(){var S=this.rulerWidth,p=this.devicePixelRatio_,U=this.visible;this.set("canvasReady_",!1);if(U&&p!==0){U=this.aboveRulerHeight+this.rulerHeight;var Y=_.tB(this.hostElement).querySelector("#ticks");Y.width=S*p;Y.height=U*p;Y.style.width=S+"px";Y.style.height=U+"px";Y.getContext("2d").scale(p,p);this.set("canvasReady_",!0)}};
_.M.drawRuler_=function(S,p,U,Y,L,I,V,W,O,D,z,Q){S&&U&&p&&(S=_.tB(this.hostElement).querySelector("#ticks"),p=S.getContext("2d"),p.clearRect(0,0,S.width,S.height),p.strokeStyle=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-10-percent-layer"),p.lineWidth=2,p.beginPath(),p.moveTo(0,this.aboveRulerHeight),p.lineTo(S.width,this.aboveRulerHeight),p.moveTo(0,S.height),p.lineTo(S.width,S.height),p.stroke(),this.drawRulerTicks_(S,I,L,Y),this.drawStoryboardImages_(S,U,I,L,Y),p.fillStyle=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-themed-overlay-background"),
p.fillRect(0,this.aboveRulerHeight,this.timeToPixels_(V-I,Y,!1),this.rulerHeight),U=this.timeToPixels_(W-I,Y,!1),p.fillRect(U,this.aboveRulerHeight,S.width-U,this.rulerHeight),this.drawSpeedLines_(S,I,Q))};
_.M.drawRulerTicks_=function(S,p,U,Y){var L=S.getContext("2d");L.save();L.lineWidth=1;for(var I=Math.floor(Math.max(0,p-this.tickLabelInterval));I<p+U;I++){L.strokeStyle=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-text-disabled");var V=(I-p)*Y;L.beginPath();L.moveTo(V,S.height);var W=this.smallTickHeight;I%this.largeTickInterval===0?W=this.largeTickHeight:I%this.mediumTickInterval===0&&(W=this.mediumTickHeight);L.lineTo(V,S.height-W);L.stroke();I%this.tickLabelInterval===0&&(L.font=
getComputedStyle(this.hostElement).getPropertyValue("font"),L.fillStyle=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-text-disabled"),L.fillText(Fv(I),V+4,12),L.strokeStyle=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-10-percent-layer"),L.moveTo(V,0),L.lineTo(V,this.aboveRulerHeight),L.stroke())}L.restore()};
_.M.percentToHex_=function(S){S=Math.round(S*255).toString(16);S.length<2&&(S="0"+S);return S};
_.M.drawSpeedLines_=function(S,p,U){var Y=S.getContext("2d");Y.save();var L=Math.min(25,Math.abs(U)-15)/25,I=S.width*.3*L,V=S.width*-.3,W=S.width*1.3,O=this.aboveRulerHeight;S=S.height;var D=Math.round(4*L),z=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-text-primary");z.length<7&&(z="#"+z.substring(1,4).repeat(2));var Q=this.percentToHex_(.5+L/2);Q=z+Q;z+="00";if(L>0)for(L=0;L<D;L++){var J=V+Math.random()*(W-V),K=O+Math.random()*(S-O),G=I+p%I,X=Y.createLinearGradient(J,K,J+G,K);
U<0?(X.addColorStop(0,Q),X.addColorStop(.4,Q),X.addColorStop(.9,z)):(X.addColorStop(.1,z),X.addColorStop(.6,Q),X.addColorStop(1,Q));Y.strokeStyle=X;Y.lineWidth=1;Y.beginPath();Y.moveTo(J,K);Y.lineTo(J+G,K);Y.stroke()}Y.restore()};
_.M.getStoryboardForTime_=function(S,p,U){U===void 0&&(U=p.getNumberOfStoryboardLevels()-1);S=p.getStoryboardFrameIndex(S,U);return p.getStoryboardFrame(S,U)};
_.M.drawStoryboardImages_=function(S,p,U,Y,L){if(!this.disabled){S=S.getContext("2d");var I=this.getStoryboardForTime_(0,p);if(I){var V=I.width/I.columns;I=I.height/I.rows;var W=V/I,O=this.rulerHeight*W;O=this.tickLabelInterval*(W<this.tickLabelInterval*L/this.rulerHeight?1/Math.floor(this.tickLabelInterval*L/O):Math.round(O/(this.tickLabelInterval*L)));var D=O*L,z=this.rulerHeight,Q=D/this.rulerHeight,J=Math.floor(Math.max(0,U-O));for(J-=J%O;J<U+Y;J+=O){var K=this.getStoryboardForTime_(J,p),G=this.getPreloadedStoryboard_(K.url);
if(G){var X=(J-U)*L,Z=this.aboveRulerHeight,l=K.column*V,a=K.row*I;if(W<Q){var N=z/(D/W);K=V;N*=I;a+=(I-N)/2}else K=D/(z*W)*V,N=I,l+=(V-K)/2;S.drawImage(G,l,a,K,N,X,Z,D,z)}else this.fetchStoryboardImage_(K)}}}};
_.M.getPreloadedStoryboard_=function(S){return this.storyboardImages_.find(function(p){if(p.src==S)return!0;var U=p.src.indexOf(S);return U!=-1&&U==p.src.length-S.length})};
_.M.fetchStoryboardImage_=function(S){var p=this,U=this.getPreloadedStoryboard_(S.url),Y=this.pendingStoryboardImages_[S.url];U||Y!==void 0||(U=new Promise(function(L){var I=new Image(S.width,S.height);I.src=S.url;I.onload=function(){L(I)};
I.onerror=function(){L(null)}}),this.pendingStoryboardImages_[S.url]=U,U.then(function(L){L&&p.push("storyboardImages_",L);
return L}).finally(function(){delete p.pendingStoryboardImages_[S.url]}))};
_.M.onClipCreationEnable_=function(){this.set("forceRender_",this.forceRender_+1)};
_.M.timeToPixels_=function(S,p,U){S*=p;return U===void 0||U?S+"px":S};
_.M.onDarkModeToggled_=function(){this.set("forceRender_",this.forceRender_+1)};
sk.prototype.drawRuler_=sk.prototype.drawRuler_;sk.prototype.setUpCanvas_=sk.prototype.setUpCanvas_;_.x([_.F(_.Aj.YtActionHandlerBehavior),_.E("design:type",Object)],sk.prototype,"ytActionHandlerBehavior",void 0);_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],sk.prototype,"ytRendererBehavior",void 0);_.x([_.g({value:0}),_.E("design:type",Number)],sk.prototype,"start",void 0);_.x([_.g({value:30}),_.E("design:type",Number)],sk.prototype,"end",void 0);
_.x([_.g({value:!1}),_.E("design:type",Boolean)],sk.prototype,"visible",void 0);_.x([_.g(),_.E("design:type",Object)],sk.prototype,"player_",void 0);_.x([_.g(),_.E("design:type",Number)],sk.prototype,"tickSpacing",void 0);_.x([_.g(),_.E("design:type",Number)],sk.prototype,"windowSizeSec",void 0);_.x([_.g({value:0}),_.E("design:type",Number)],sk.prototype,"rulerWidth",void 0);_.x([_.g({value:0}),_.E("design:type",Number)],sk.prototype,"rulerShift",void 0);
_.x([_.g({value:!1}),_.E("design:type",Boolean)],sk.prototype,"canvasReady_",void 0);_.x([_.g({value:function(){return[]}}),
_.E("design:type",Array)],sk.prototype,"storyboardImages_",void 0);_.x([_.g({value:!1,reflectToAttribute:!0}),_.E("design:type",Boolean)],sk.prototype,"disabled",void 0);_.x([_.g({value:0}),_.E("design:type",Number)],sk.prototype,"forceRender_",void 0);_.x([_.g({value:1}),_.E("design:type",Number)],sk.prototype,"devicePixelRatio_",void 0);_.x([_.g({value:0}),_.E("design:type",Number)],sk.prototype,"windowSpeed",void 0);
_.x([_.T4("visible","devicePixelRatio_","rulerWidth"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],sk.prototype,"setUpCanvas_",null);
_.x([_.T4("visible","canvasReady_","player_","tickSpacing","windowSizeSec","rulerShift","start","end","storyboardImages_.*","forceRender_","disabled","windowSpeed"),_.E("design:type",Function),_.E("design:paramtypes",[Boolean,Boolean,Object,Number,Number,Number,Number,Number,Object,Number,Boolean,Number]),_.E("design:returntype")],sk.prototype,"drawRuler_",null);sk=_.x([_.FB({is:"yt-clip-creation-scrubber-canvas",disableElementRegistration:!0})],sk);
_.C(sk,"yt-clip-creation-scrubber-canvas",function(){if(ATP===void 0){var S=document.createElement("template");_.h(S,'\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');S.content.insertBefore(_.t().content.cloneNode(!0),S.content.firstChild);ATP=S}S=ATP;return S},
{mode:2});var t_n;var cT5;var eT=function(){var S=_.w.apply(this,arguments)||this;S.start=0;S.end=30;S.visible=!1;S.draggingLeft_=!1;S.draggingRight_=!1;S.draggingRuler_=!1;S.draggingWindow_=!1;S.seekableStart=0;S.seekableEnd=0;S.rulerWidth_=0;S.rulerShift_=0;S.windowSlideSpeed=0;S.disabled=!1;S.initialized=!1;S.durationAccessibilityLabel="";S.activeLoopRange_=!1;S.rulerDragMouseStart_=0;S.rulerDragRulerStart_=0;S.rulerDragStartTime_=0;S.rulerDragEndTime_=0;S.dragMouseLastX_=0;S.scrollInterval_=null;S.scrubberVe_=null;S.boundHandlers_=
{};S.actionMap={"yt-clip-creation-disable":"onClipCreationDisable_","yt-clip-creation-visibility-changed":"onVisibilityChangedAction_"};return S};
_.r(eT,_.w);_.M=eT.prototype;
_.M.created=function(){var S=this;this.JSC$20010_playerEvents=new Map;this.JSC$20010_playerEvents.set("onVideoProgress",this.onVideoProgress_);this.JSC$20010_playerEvents.set("SEEK_COMPLETE",this.onSeekComplete_);this.JSC$20010_playerEvents.set("onStateChange",this.onStateChange_);var p={mouseup:this.endDrag_,mousemove:this.handleMouseDrag_,resize:this.updateRulerSize_,handles_mousedown:this.beginHandleDrag_,ruler_mousedown:this.beginRulerDrag_};Object.keys(p).forEach(function(U){S.boundHandlers_[U]=p[U].bind(S)})};
_.M.attached=function(){this.activeLoopRange_=!1;_.tB(this.hostElement).querySelector("#handles").addEventListener("mousedown",this.boundHandlers_.handles_mousedown);_.tB(this.hostElement).querySelector("#ticks").addEventListener("mousedown",this.boundHandlers_.ruler_mousedown);window.addEventListener("resize",this.boundHandlers_.resize);this.scrubberVe_=_.bZ(156731)};
_.M.detached=function(){this.setPlayer(null);window.removeEventListener("resize",this.boundHandlers_.resize);this.removeMouseEventHandlers_();_.tB(this.hostElement).querySelector("#handles").removeEventListener("mousedown",this.boundHandlers_.handles_mousedown);_.tB(this.hostElement).querySelector("#ticks").removeEventListener("mousedown",this.boundHandlers_.ruler_mousedown)};
_.M.onVisibilityChangedAction_=function(S){var p=this;S.visible&&!this.player_&&(S=_.$L())&&S.getPlayerPromise().then(function(U){p.setPlayer(U)})};
_.M.setPlayer=function(S){this.player_&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player_,this.JSC$20010_playerEvents);S&&(this.set("player_",S),this.ytPlayerListenerBehavior.listenToPlayerEvents(S,this.JSC$20010_playerEvents))};
_.M.addMouseEventHandlers_=function(){window.addEventListener("mouseup",this.boundHandlers_.mouseup);window.addEventListener("mousemove",this.boundHandlers_.mousemove)};
_.M.removeMouseEventHandlers_=function(){window.removeEventListener("mouseup",this.boundHandlers_.mouseup);window.removeEventListener("mousemove",this.boundHandlers_.mousemove)};
_.M.beginHandleDrag_=function(S){this.disabled||(S.preventDefault(),this.draggingWindow_=this.draggingRuler_=this.draggingRight_=this.draggingLeft_=!1,this.dragMouseLastX_=S.clientX,S.target===_.tB(this.hostElement).querySelector("#handle-left")?this.beginLeftHandleDrag_():S.target===_.tB(this.hostElement).querySelector("#handle-right")?this.beginRightHandleDrag_():this.beginWindowDrag_())};
_.M.beginLeftHandleDrag_=function(){this.draggingLeft_=!0;this.beginDrag_()};
_.M.beginRightHandleDrag_=function(){this.draggingRight_=!0;this.beginDrag_()};
_.M.beginWindowDrag_=function(){this.disabled||(this.draggingWindow_=!0,this.beginWindowScroll_(),this.beginDrag_())};
_.M.beginRulerDrag_=function(S){this.disabled||(S.preventDefault(),this.draggingRight_=this.draggingLeft_=!1,this.draggingRuler_=!0,this.draggingWindow_=!1,this.rulerDragMouseStart_=S.clientX,this.rulerDragRulerStart_=this.rulerShift_,this.rulerDragStartTime_=this.start,this.rulerDragEndTime_=this.end,this.beginDrag_())};
_.M.beginDrag_=function(){this.player_.pauseVideo();this.addMouseEventHandlers_()};
_.M.beginWindowScroll_=function(){var S=this;this.scrollInterval_=setInterval(function(){var p=S.windowSlideSpeed;if(p=_.BFE(S.start,S.boundedRulerStartLimit_())?p-.1:_.BFE(S.end,S.boundedRulerEndLimit_())?p+.1:0){var U=S.capRulerOffset_(S.rulerShift_+p);U==S.rulerShift_?p=0:(S.set("rulerShift_",U),_.cv(S.hostElement,"set-fixed-length-range",{start:S.start+p,duration:S.end-S.start}))}S.set("windowSlideSpeed",p)},33)};
_.M.endWindowScroll_=function(){this.scrollInterval_&&(clearInterval(this.scrollInterval_),this.scrollInterval_=null,this.windowSlideSpeed=0)};
_.M.endDrag_=function(){this.logClick();var S=void 0;this.draggingRight_?S=this.end-1:this.draggingLeft_&&(S=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,S);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))};
_.M.onVisibleChanged_=function(){this.visible&&this.updateRulerSize_()};
_.M.updateRulerSize_=function(){this.set("rulerWidth_",_.tB(this.hostElement).querySelector("#ruler").getBoundingClientRect().width)};
_.M.handleMouseDrag_=function(S){S.buttons==0&&(this.draggingLeft_||this.draggingRight_||this.draggingRuler_||this.draggingWindow_)&&this.endDrag_();this.disabled||(this.draggingRuler_?this.handleRulerDrag_(S):this.draggingLeft_||this.draggingRight_?this.handleWindowHandleDrag_(S):this.draggingWindow_&&this.handleWindowDrag_(S))};
_.M.handleRulerDrag_=function(S){S=this.pixelsToTime_(S.clientX-this.rulerDragMouseStart_);S=this.capRulerOffset_(this.rulerDragRulerStart_-S);this.set("rulerShift_",S);var p=this.rulerDragStartTime_-(this.rulerDragRulerStart_-S);_.cv(this.hostElement,"set-fixed-length-range",{start:p,duration:this.rulerDragEndTime_-(this.rulerDragRulerStart_-S)-p})};
_.M.handleWindowDrag_=function(S){var p=S.clientX-this.dragMouseLastX_;this.dragMouseLastX_=S.clientX;S=this.pixelsToTime_(p);_.cv(this.hostElement,"set-fixed-length-range",{start:this.start+S,duration:this.end-this.start,startLimit:this.draggableStartLimit_(),endLimit:this.draggableEndLimit_()})};
_.M.capRulerOffset_=function(S){var p=this.seekableStart-this.pixelsToTime_(16),U=this.seekableEnd-this.windowSizeSec_+this.pixelsToTime_(16);return Math.min(Math.max(p,S),U)};
_.M.boundedRulerStartLimit_=function(){return this.rulerShift_+this.pixelsToTime_(16)};
_.M.boundedRulerEndLimit_=function(){return this.rulerShift_+this.windowSizeSec_-this.pixelsToTime_(16)};
_.M.draggableStartLimit_=function(){return Math.max(this.boundedRulerStartLimit_(),this.seekableStart)};
_.M.draggableEndLimit_=function(){return Math.min(this.boundedRulerEndLimit_(),this.seekableEnd)};
_.M.handleWindowHandleDrag_=function(S){var p=S.clientX-this.dragMouseLastX_;this.dragMouseLastX_=S.clientX;S=this.pixelsToTime_(p);if(this.draggingLeft_){var U=this.start+S;var Y=this.end}else this.draggingRight_&&(U=this.start,Y=this.end+S);_.cv(this.hostElement,"set-range",{start:U,end:Y,startLimit:this.draggableStartLimit_(),endLimit:this.draggableEndLimit_()})};
_.M.onVideoProgress_=function(S){this.disabled||(S=this.timeToPixels_(S-this.rulerShift_,this.tickSpacing_),_.tB(this.hostElement).querySelector("#playhead").style.transform="translateX("+S+")")};
_.M.onClipCreationDisable_=function(){this.endDrag_()};
_.M.timeToPixels_=function(S,p,U){S*=p;return U===void 0||U?S+"px":S};
_.M.pixelsToTime_=function(S){return S/this.tickSpacing_};
_.M.onInitializedChanged_=function(){this.initialized&&this.centerRuler_(this.start,this.end,this.windowSizeSec_)};
_.M.centerRuler_=function(S,p,U){this.set("rulerShift_",this.capRulerOffset_(S+(p-S)/2-U/2))};
_.M.onUpdateLoopRange=function(){this.updateLoopRange_(this.player_,this.visible,this.disabled,this.initialized,this.start,this.end)};
_.M.updateLoopRange_=function(S,p,U,Y,L,I,V){S&&(p&&Y&&!U?(this.draggingLeft_||this.draggingRuler_||this.draggingWindow_?(S.pauseVideo(),S.seekTo(L,!1,void 0,void 0,50)):this.draggingRight_?(S.pauseVideo(),S.seekTo(I-.1,!1,void 0,void 0,50)):(V!==void 0?S.seekTo(V,!0,void 0,void 0,50):(p=S.getCurrentTime(),p<L||p>I?S.seekTo(L,!0,void 0,void 0,50):S.seekTo(p,!0,void 0,void 0,50)),S.playVideo()),S.setLoopRange({startTimeMs:L*1E3,endTimeMs:I*1E3,type:"clips"}),this.activeLoopRange_=!0,this.onVideoProgress_(S.getCurrentTime())):
this.activeLoopRange_&&(S.setLoopRange(null),this.activeLoopRange_=!1))};
_.M.updateHandles_=function(){_.tB(this.hostElement).querySelector("#handles").style.left=String(this.timeToPixels_(this.start-this.rulerShift_,this.tickSpacing_));_.tB(this.hostElement).querySelector("#handles").style.width=String(this.timeToPixels_(this.end-this.start,this.tickSpacing_))};
_.M.updateRuler_=function(){var S=this.end,p=this.start,U=this.draggableStartLimit_(),Y=this.draggableEndLimit_();(p<U-.001||S>Y+.001)&&this.centerRuler_(this.start,this.end,this.windowSizeSec_)};
_.M.computeDurationLabel_=function(S,p){return S?S.replace("$clip_length",parseFloat(p).toFixed(1)):""};
_.M.computeDuration_=function(S,p){return this.isValidTime_(S)&&this.isValidTime_(p)&&S<p?p-S:0};
_.M.isValidTime_=function(S){return isNaN(parseFloat(S))||S<0?!1:this.player_?S>=this.seekableStart&&S<=this.seekableEnd:!0};
_.M.computeWindowSizeSec_=function(S,p,U){return Math.min((S||12E4)/1E3,U-p)};
_.M.computeTickSpacing_=function(S,p){return p?p/S:1};
_.M.onDragStateChanged_=function(){_.cv(this.hostElement,"clips-drag-state",{startChanging:this.draggingLeft_||this.draggingWindow_||this.draggingRuler_,endChanging:this.draggingRight_||this.draggingWindow_||this.draggingRuler_})};
_.M.centerRangeOnTime_=function(S){var p=this.duration;S=ukn(S-p/2,p,this.seekableStart,this.seekableEnd);_.cv(this.hostElement,"set-fixed-length-range",{start:S.start,duration:S.end-S.start})};
_.M.nearlyLessThan_=function(S,p,U){return S+(U===void 0?1E-6:U)<p};
_.M.onSeekComplete_=function(){if(this.visible&&!this.disabled&&this.dragState=="none"){var S=this.player_.getCurrentTime();(!this.player_.getLoopRange()||this.nearlyLessThan_(S,this.start)||this.nearlyLessThan_(this.end,S))&&this.centerRangeOnTime_(S)}};
_.M.onStateChange_=function(S){this.visible&&!this.disabled&&S==0&&this.centerRangeOnTime_(this.seekableEnd)};
_.M.computeDragState_=function(S,p,U,Y){return S?"left":p?"right":U?"ruler":Y?"window":"none"};
_.M.logClick=function(){var S=_.X$(),p=_.F$();S&&p&&this.scrubberVe_&&(_.y("combine_ve_grafts")?_.pa(_.HX(),this.scrubberVe_,p):_.wB(S,p,this.scrubberVe_),_.xd(S,this.scrubberVe_))};
eT.prototype.onDragStateChanged_=eT.prototype.onDragStateChanged_;eT.prototype.updateRuler_=eT.prototype.updateRuler_;eT.prototype.updateHandles_=eT.prototype.updateHandles_;eT.prototype.onUpdateLoopRange=eT.prototype.onUpdateLoopRange;eT.prototype.onInitializedChanged_=eT.prototype.onInitializedChanged_;eT.prototype.onVisibleChanged_=eT.prototype.onVisibleChanged_;_.x([_.F(_.Aj.YtActionHandlerBehavior),_.E("design:type",Object)],eT.prototype,"ytActionHandlerBehavior",void 0);
_.x([_.F(_.Cj.YtPlayerListenerBehavior),_.E("design:type",Object)],eT.prototype,"ytPlayerListenerBehavior",void 0);_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],eT.prototype,"ytRendererBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],eT.prototype,"start",void 0);_.x([_.g(),_.E("design:type",Object)],eT.prototype,"end",void 0);_.x([_.g({computed:"computeDuration_(start, end)"}),_.E("design:type",Number)],eT.prototype,"duration",void 0);
_.x([_.g(),_.E("design:type",String)],eT.prototype,"lengthTemplate",void 0);_.x([_.g({computed:"computeDurationLabel_(lengthTemplate, duration)"}),_.E("design:type",String)],eT.prototype,"durationLabel",void 0);_.x([_.g(),_.E("design:type",Object)],eT.prototype,"visible",void 0);_.x([_.g(),_.E("design:type",Object)],eT.prototype,"player_",void 0);_.x([_.g(),_.E("design:type",Object)],eT.prototype,"draggingLeft_",void 0);_.x([_.g(),_.E("design:type",Object)],eT.prototype,"draggingRight_",void 0);
_.x([_.g(),_.E("design:type",Object)],eT.prototype,"draggingRuler_",void 0);_.x([_.g({value:!1}),_.E("design:type",Object)],eT.prototype,"draggingWindow_",void 0);_.x([_.g({computed:"computeTickSpacing_(windowSizeSec_, rulerWidth_)"}),_.E("design:type",Number)],eT.prototype,"tickSpacing_",void 0);_.x([_.g(),_.E("design:type",Object)],eT.prototype,"seekableStart",void 0);_.x([_.g(),_.E("design:type",Object)],eT.prototype,"seekableEnd",void 0);
_.x([_.g(),_.E("design:type",Number)],eT.prototype,"windowSizeMs",void 0);_.x([_.g({computed:"computeWindowSizeSec_(windowSizeMs, seekableStart, seekableEnd)"}),_.E("design:type",Number)],eT.prototype,"windowSizeSec_",void 0);_.x([_.g(),_.E("design:type",Object)],eT.prototype,"rulerWidth_",void 0);_.x([_.g(),_.E("design:type",Object)],eT.prototype,"rulerShift_",void 0);_.x([_.g(),_.E("design:type",Object)],eT.prototype,"windowSlideSpeed",void 0);
_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],eT.prototype,"disabled",void 0);_.x([_.g(),_.E("design:type",Object)],eT.prototype,"initialized",void 0);_.x([_.g(),_.E("design:type",Object)],eT.prototype,"durationAccessibilityLabel",void 0);_.x([_.g({computed:"computeDragState_(draggingLeft_, draggingRight_, draggingRuler_, draggingWindow_)",reflectToAttribute:!0}),_.E("design:type",String)],eT.prototype,"dragState",void 0);
_.x([_.T4("visible"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],eT.prototype,"onVisibleChanged_",null);_.x([_.T4("initialized"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],eT.prototype,"onInitializedChanged_",null);_.x([_.T4("player_","visible","disabled","initialized","start","end"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],eT.prototype,"onUpdateLoopRange",null);
_.x([_.T4("start","end","rulerShift_","tickSpacing_","windowSizeSec_"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],eT.prototype,"updateHandles_",null);_.x([_.T4("start","end"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],eT.prototype,"updateRuler_",null);
_.x([_.T4("draggingLeft_","draggingRight_","draggingRuler_","draggingWindow_"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],eT.prototype,"onDragStateChanged_",null);eT=_.x([_.FB({is:"yt-clip-creation-scrubber-view",disableElementRegistration:!0})],eT);
_.C(eT,"yt-clip-creation-scrubber-view",function(){if(cT5===void 0){var S=document.createElement("template");_.h(S,'\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');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);var p=S.content,U=p.insertBefore;t_n===void 0&&(t_n=document.createElement("template"));var Y=t_n;U.call(p,Y.content.cloneNode(!0),S.content.firstChild);cT5=S}S=cT5;return S},{mode:2});var g0=function(){var S=_.w.apply(this,arguments)||this;S.actionMap={"yt-clip-creation-visibility-changed":"onVisibilityChangedAction_","yt-clip-creation-disable":"onClipCreationDisable_","yt-clip-creation-enable":"onClipCreationEnable_"};S.startHighlightTimeout=0;S.endHighlightTimeout=0;return S};
_.r(g0,_.w);_.M=g0.prototype;_.M.attached=function(){var S=this;this.startInput.addEventListener("input",function(p){return S.handleStartInput_(p)});
this.endInput.addEventListener("input",function(p){return S.handleEndInput_(p)});
this.startInput.addEventListener("focusout",function(p){return S.handleStartBlur_(p)});
this.endInput.addEventListener("focusout",function(p){return S.handleEndBlur_(p)})};
_.M.setPlayer=function(S){this.set("player_",S)};
_.M.onSetFixedLengthRange_=function(S){var p=S.detail;S=p.start;var U=p.duration,Y=p.startLimit;p=p.endLimit;Y||(Y=this.seekableStart_);p||(p=this.seekableEnd_);S=ukn(S,U,Y,p);this.start=S.start;this.end=S.end};
_.M.onSetRange_=function(S){var p=S.detail;S=p.start;var U=p.end,Y=p.startLimit;p=p.endLimit;Y||(Y=this.seekableStart_);p||(p=this.seekableEnd_);if(S=wuJ(S,U,Y,p,this.minLengthSec,this.maxLengthSec))this.start=S.start,this.end=S.end};
_.M.updateInputs_=function(){var S=this.end,p=this.start;this.startInput.focused||(this.startInput.value=Fv(p,!0));this.endInput.focused||(this.endInput.value=Fv(S,!0))};
_.M.handleStartInput_=function(S){S=gfP(S.target.value);if(S===null)this.set("startValid",!1);else{var p=this.end,U=wuJ(S,this.end,this.seekableStart_,this.seekableEnd_,this.minLengthSec,this.maxLengthSec);U?(this.set("endWillUpdate",U.end!==p),this.set("startValid",U.start===S)):this.set("startValid",!1)}};
_.M.handleEndInput_=function(S){S=gfP(S.target.value);if(S===null)this.set("endValid",!1);else{var p=this.start,U=lZd(this.start,S,this.seekableStart_,this.seekableEnd_,this.minLengthSec,this.maxLengthSec);U?(this.set("startWillUpdate",U.start!==p),this.set("endValid",U.end===S)):this.set("endValid",!1)}};
_.M.handleStartBlur_=function(S){S=gfP(S.target.value);S===null?this.startInput.value=Fv(this.start,!0):this.forceUpdateInputs_(wuJ(S,this.end,this.seekableStart_,this.seekableEnd_,this.minLengthSec,this.maxLengthSec))};
_.M.handleEndBlur_=function(S){S=gfP(S.target.value);S===null?this.endInput.value=Fv(this.end,!0):this.forceUpdateInputs_(lZd(this.start,S,this.seekableStart_,this.seekableEnd_,this.minLengthSec,this.maxLengthSec))};
_.M.forceUpdateInputs_=function(S){S&&(this.start=S.start,this.end=S.end);this.startInput.value=Fv(this.start,!0);this.endInput.value=Fv(this.end,!0);this.endValid=this.startValid=!0;this.startWillUpdate=this.endWillUpdate=!1};
_.M.initializeClipRange_=function(){var S=this.seekableEnd_,p=this.seekableStart_,U=this.visible_,Y=this.player_;if(!Y||!U||p===null||!S)this.set("initialized",!1);else if(!this.initialized){var L=Y.getCurrentTime(),I=this.getDefaultLengthSec_();U=Y.getVideoData();var V=Y.getPlayerState()==1,W=U.isLive;I=Math.min(I,S-p);L=Math.max(0,L);S=W?lZd(L-I,L,p,S,this.minLengthSec,this.maxLengthSec):V?ukn(L-I/2,I,p,S):ukn(L,I,p,S);this.start=S.start;this.end=S.end;this.set("initialized",!0);U.isLive&&Y.seekTo(S.start);
this.startInput.value=Fv(this.start,!0);this.endInput.value=Fv(this.end,!0)}};
_.M.onStartChanged_=function(){var S=this;_.cv(this.hostElement,"start-changed",{start:this.start});var p;isNaN((p=this.oldStart)!=null?p:NaN)||(this.set("highlightStart",!0),clearTimeout(this.startHighlightTimeout),this.startHighlightTimeout=setTimeout(function(){S.set("highlightStart",!1);S.startHighlightTimeout=0;S.oldStart=S.start},3E3))};
_.M.onEndChanged_=function(){var S=this;_.cv(this.hostElement,"end-changed",{end:this.end});var p;isNaN((p=this.oldEnd)!=null?p:NaN)||(this.set("highlightEnd",!0),clearTimeout(this.endHighlightTimeout),this.endHighlightTimeout=setTimeout(function(){S.set("highlightEnd",!1);S.endHighlightTimeout=0;S.oldEnd=S.end},3E3))};
_.M.onVisibilityChangedAction_=function(S){var p=this;this.set("visible_",S.visible);this.visible_&&!this.player_&&(S=_.$L())&&S.getPlayerPromise().then(function(U){p.setPlayer(U)})};
_.M.computeMinLengthSec_=function(S){return S/1E3||5};
_.M.computeMaxLengthSec_=function(S){return S/1E3||60};
_.M.computeDefaultLengthSec_=function(S){return S/1E3};
_.M.getDefaultLengthSec_=function(){return this.defaultLengthSec||30};
_.M.computeSeekableStart_=function(S,p){return S&&p?S.getProgressState(1).seekableStart:0};
_.M.computeSeekableEnd_=function(S,p){return S&&p?S.getProgressState(1).seekableEnd:0};
_.M.onClipCreationDisable_=function(){this.set("disabled",!0)};
_.M.onClipCreationEnable_=function(){this.set("disabled",!1)};
_.M.onDragState_=function(S){this.set("highlightStart",S.detail.startChanging);this.set("highlightEnd",S.detail.endChanging)};
g0.prototype.onDragState_=g0.prototype.onDragState_;g0.prototype.onEndChanged_=g0.prototype.onEndChanged_;g0.prototype.onStartChanged_=g0.prototype.onStartChanged_;g0.prototype.initializeClipRange_=g0.prototype.initializeClipRange_;g0.prototype.updateInputs_=g0.prototype.updateInputs_;g0.prototype.onSetRange_=g0.prototype.onSetRange_;g0.prototype.onSetFixedLengthRange_=g0.prototype.onSetFixedLengthRange_;
_.x([_.F(_.Aj.YtActionHandlerBehavior),_.E("design:type",Object)],g0.prototype,"ytActionHandlerBehavior",void 0);_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],g0.prototype,"ytRendererBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],g0.prototype,"data",void 0);_.x([_.g({value:0}),_.E("design:type",Number)],g0.prototype,"start",void 0);_.x([_.g({value:!0}),_.E("design:type",Boolean)],g0.prototype,"startValid",void 0);
_.x([_.g({value:!1,reflectToAttribute:!0}),_.E("design:type",Boolean)],g0.prototype,"startWillUpdate",void 0);_.x([_.g({value:30}),_.E("design:type",Number)],g0.prototype,"end",void 0);_.x([_.g({value:!0}),_.E("design:type",Boolean)],g0.prototype,"endValid",void 0);_.x([_.g({value:!1,reflectToAttribute:!0}),_.E("design:type",Boolean)],g0.prototype,"endWillUpdate",void 0);_.x([_.g({computed:"computeMinLengthSec_(data.minLengthMs)"}),_.E("design:type",Number)],g0.prototype,"minLengthSec",void 0);
_.x([_.g({computed:"computeMaxLengthSec_(data.maxLengthMs)"}),_.E("design:type",Number)],g0.prototype,"maxLengthSec",void 0);_.x([_.g({computed:"computeDefaultLengthSec_(data.defaultLengthMs)"}),_.E("design:type",Number)],g0.prototype,"defaultLengthSec",void 0);_.x([_.g({value:!1}),_.E("design:type",Boolean)],g0.prototype,"visible_",void 0);_.x([_.g(),_.E("design:type",Object)],g0.prototype,"player_",void 0);
_.x([_.g({value:0,computed:"computeSeekableStart_(player_, visible_)"}),_.E("design:type",Number)],g0.prototype,"seekableStart_",void 0);_.x([_.g({computed:"computeSeekableEnd_(player_, visible_)"}),_.E("design:type",Number)],g0.prototype,"seekableEnd_",void 0);_.x([_.g({value:!1}),_.E("design:type",Boolean)],g0.prototype,"initialized",void 0);_.x([_.g({value:!1,reflectToAttribute:!0}),_.E("design:type",Boolean)],g0.prototype,"disabled",void 0);
_.x([_.g({value:!1,reflectToAttribute:!0}),_.E("design:type",Boolean)],g0.prototype,"highlightStart",void 0);_.x([_.g({value:!1,reflectToAttribute:!0}),_.E("design:type",Boolean)],g0.prototype,"highlightEnd",void 0);_.x([_.O2("#start"),_.E("design:type",HTMLInputElement)],g0.prototype,"startInput",void 0);_.x([_.O2("#end"),_.E("design:type",HTMLInputElement)],g0.prototype,"endInput",void 0);
_.x([_.Vd("set-fixed-length-range"),_.E("design:type",Function),_.E("design:paramtypes",[CustomEvent]),_.E("design:returntype")],g0.prototype,"onSetFixedLengthRange_",null);_.x([_.Vd("set-range"),_.E("design:type",Function),_.E("design:paramtypes",[CustomEvent]),_.E("design:returntype")],g0.prototype,"onSetRange_",null);_.x([_.T4("start","end"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],g0.prototype,"updateInputs_",null);
_.x([_.T4("player_","visible_","seekableStart_","seekableEnd_"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],g0.prototype,"initializeClipRange_",null);_.x([_.T4("start"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],g0.prototype,"onStartChanged_",null);_.x([_.T4("end"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],g0.prototype,"onEndChanged_",null);
_.x([_.Vd("clips-drag-state"),_.E("design:type",Function),_.E("design:paramtypes",[CustomEvent]),_.E("design:returntype")],g0.prototype,"onDragState_",null);g0=_.x([_.FB({is:"yt-clip-creation-scrubber-renderer",disableElementRegistration:!0})],g0);
_.C(g0,"yt-clip-creation-scrubber-renderer",function(){if(q4i===void 0){var S=document.createElement("template");_.h(S,'\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');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);var p=S.content,U=p.insertBefore;B2L===void 0&&(B2L=document.createElement("template"));var Y=B2L;U.call(p,Y.content.cloneNode(!0),S.content.firstChild);q4i=S}S=q4i;return S},{mode:2});var uC=function(){var S=_.w.apply(this,arguments)||this;S.player_=null;S.JSC$20024_playerEvents=new Map;S.actionMap={"yt-clip-creation-visibility-changed":"onVisibilityChangedAction_"};return S};
_.r(uC,_.w);_.M=uC.prototype;_.M.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"}}}};
_.M.created=function(){this.JSC$20024_playerEvents.set("onAdStart",this.playerAdStartHandler_);this.JSC$20024_playerEvents.set("onPlaybackStartExternal",this.playerAdEndHandler_);this.JSC$20024_playerEvents.set("onVideoDataChange",this.onVideoDataChange_);this.JSC$20024_playerEvents.set("onVideoProgress",this.onVideoProgress_)};
_.M.detached=function(){this.setPlayer(null)};
_.M.onVisibilityChangedAction_=function(S){var p=this,U;if((U=this.data)==null?0:U.externalVideoId){var Y;this.videoId=(Y=this.data)==null?void 0:Y.externalVideoId}this.getPlayer().then(function(L){if(S.visible)p.returnTime=L.getCurrentTime(),p.isAtLiveHead=L.getProgressState().isAtLiveHead;else{var I=p.returnTime;p.isAtLiveHead&&(I=Number.POSITIVE_INFINITY);L.seekTo(I,void 0,void 0,void 0,51)}})};
_.M.getPlayer=function(){var S=this;if(!this.player_){var p=_.$L();if(p)return p.getPlayerPromise().then(function(U){S.setPlayer(U);return U})}return Promise.resolve(this.player_)};
_.M.setPlayer=function(S){this.player_&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player_,this.JSC$20024_playerEvents);if(S){this.player_=S;var p;((p=this.data)==null?0:p.externalVideoId)||this.set("videoId",S.getVideoData().video_id||"");var U;(S==null?void 0:(U=S.getPresentingPlayerType)==null?void 0:U.call(S))===2&&(this.set("isAdPlaying",!0),_.St(this.hostElement,"yt-clip-creation-disable"));this.ytPlayerListenerBehavior.listenToPlayerEvents(S,this.JSC$20024_playerEvents)}};
_.M.ready=function(){_.tB(this.hostElement).querySelector("#share").addEventListener("tap",this.onSubmit_.bind(this))};
_.M.onTitleChanged_=function(S){this.set("titleValue",S.detail.title)};
_.M.onStartChanged_=function(S){this.set("start",S.detail.start)};
_.M.onEndChanged_=function(S){this.set("end",S.detail.end)};
_.M.onTitleValidChanged_=function(S){this.set("titleValid",S.detail.valid)};
_.M.onStartValidChanged_=function(S){this.set("startValid",S.detail.valid)};
_.M.onEndValidChanged_=function(S){this.set("endValid",S.detail.valid)};
_.M.onVideoDataChange_=function(){var S;if((S=this.data)==null||!S.externalVideoId){var p;this.set("videoId",((p=this.player_)==null?void 0:p.getVideoData().video_id)||"")}};
_.M.computeFormValid_=function(S,p,U,Y){return!!(S&&p&&U&&Y)};
_.M.computeCancelButton_=function(S,p,U){return S&&_.b(S,_.XT)?{buttonRenderer:Object.assign({},_.b(S,_.XT),{isDisabled:p||U})}:null};
_.M.computeSubmitButton_=function(S,p,U){return S&&_.b(S,_.XT)?{buttonRenderer:Object.assign({},_.b(S,_.XT),{command:void 0,isDisabled:!this.formValid||p||U})}:null};
_.M.computeSubmitCommand_=function(S){return S||null};
_.M.onSubmit_=function(S){var p=this;S.stopPropagation();S.preventDefault();this.submitCommand_&&(S={},S.comment_text=this.titleValue,S.clip_external_video_id=this.videoId,S.clip_offset_ms=parseInt(this.start*1E3,10),S.clip_duration_ms=parseInt((this.end-this.start)*1E3,10),this.set("isLoading_",!0),_.Yd(this.hostElement,[this.submitCommand_,S]).then(function(){p.set("isLoading_",!1)},function(){p.set("isLoading_",!1)}))};
_.M.playerAdStartHandler_=function(){_.St(this.hostElement,"yt-clip-creation-disable");this.set("isAdPlaying",!0)};
_.M.playerAdEndHandler_=function(){_.St(this.hostElement,"yt-clip-creation-enable");this.set("isAdPlaying",!1)};
_.M.onVideoProgress_=function(){var S=this;this.getPlayer().then(function(p){var U,Y=(p==null?void 0:(U=p.getPresentingPlayerType)==null?void 0:U.call(p))===2;S.isAdPlaying!==Y&&(Y?S.playerAdStartHandler_():S.playerAdEndHandler_())})};
uC.prototype.onEndValidChanged_=uC.prototype.onEndValidChanged_;uC.prototype.onStartValidChanged_=uC.prototype.onStartValidChanged_;uC.prototype.onTitleValidChanged_=uC.prototype.onTitleValidChanged_;uC.prototype.onEndChanged_=uC.prototype.onEndChanged_;uC.prototype.onStartChanged_=uC.prototype.onStartChanged_;uC.prototype.onTitleChanged_=uC.prototype.onTitleChanged_;_.x([_.F(_.Aj.YtActionHandlerBehavior),_.E("design:type",Object)],uC.prototype,"ytActionHandlerBehavior",void 0);
_.x([_.F(_.Cj.YtPlayerListenerBehavior),_.E("design:type",Object)],uC.prototype,"ytPlayerListenerBehavior",void 0);_.x([_.F(_.qH.YtRendererstamperBehavior),_.E("design:type",Object)],uC.prototype,"ytRendererstamperBehavior",void 0);_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],uC.prototype,"ytRendererBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],uC.prototype,"data",void 0);_.x([_.g({value:""}),_.E("design:type",String)],uC.prototype,"titleValue",void 0);
_.x([_.g({value:!1}),_.E("design:type",Boolean)],uC.prototype,"titleValid",void 0);_.x([_.g({value:0}),_.E("design:type",Number)],uC.prototype,"start",void 0);_.x([_.g({value:!0}),_.E("design:type",Boolean)],uC.prototype,"startValid",void 0);_.x([_.g({value:0}),_.E("design:type",Number)],uC.prototype,"end",void 0);_.x([_.g({value:!0}),_.E("design:type",Boolean)],uC.prototype,"endValid",void 0);_.x([_.g({value:""}),_.E("design:type",String)],uC.prototype,"videoId",void 0);
_.x([_.g({computed:"computeFormValid_(data, titleValid, startValid, endValid)"}),_.E("design:type",Boolean)],uC.prototype,"formValid",void 0);_.x([_.g({computed:"computeSubmitButton_(data.saveButton, isAdPlaying, isLoading_, formValid)"}),_.E("design:type",Object)],uC.prototype,"submitButton_",void 0);_.x([_.g({computed:"computeSubmitCommand_(data.saveButton.buttonRenderer.command)"}),_.E("design:type",Object)],uC.prototype,"submitCommand_",void 0);
_.x([_.g({computed:"computeCancelButton_(data.cancelButton, isAdPlaying, isLoading_)"}),_.E("design:type",Object)],uC.prototype,"cancelButton_",void 0);_.x([_.g({value:!1}),_.E("design:type",Boolean)],uC.prototype,"isLoading_",void 0);_.x([_.g({value:!1,reflectToAttribute:!0}),_.E("design:type",Boolean)],uC.prototype,"isAdPlaying",void 0);_.x([_.g({value:0}),_.E("design:type",Number)],uC.prototype,"returnTime",void 0);_.x([_.g({value:!1}),_.E("design:type",Boolean)],uC.prototype,"isAtLiveHead",void 0);
_.x([_.Vd("title-changed"),_.E("design:type",Function),_.E("design:paramtypes",[CustomEvent]),_.E("design:returntype")],uC.prototype,"onTitleChanged_",null);_.x([_.Vd("start-changed"),_.E("design:type",Function),_.E("design:paramtypes",[CustomEvent]),_.E("design:returntype")],uC.prototype,"onStartChanged_",null);_.x([_.Vd("end-changed"),_.E("design:type",Function),_.E("design:paramtypes",[CustomEvent]),_.E("design:returntype")],uC.prototype,"onEndChanged_",null);
_.x([_.Vd("title-valid-changed"),_.E("design:type",Function),_.E("design:paramtypes",[CustomEvent]),_.E("design:returntype")],uC.prototype,"onTitleValidChanged_",null);_.x([_.Vd("start-valid-changed"),_.E("design:type",Function),_.E("design:paramtypes",[CustomEvent]),_.E("design:returntype")],uC.prototype,"onStartValidChanged_",null);_.x([_.Vd("end-valid-changed"),_.E("design:type",Function),_.E("design:paramtypes",[CustomEvent]),_.E("design:returntype")],uC.prototype,"onEndValidChanged_",null);
uC=_.x([_.FB({is:"yt-clip-creation-renderer",disableElementRegistration:!0})],uC);
_.C(uC,"yt-clip-creation-renderer",function(){if(N2o===void 0){var S=document.createElement("template");_.h(S,'\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');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);var p=S.content,U=p.insertBefore;i1d===void 0&&(i1d=document.createElement("template"));var Y=i1d;U.call(p,Y.content.cloneNode(!0),S.content.firstChild);N2o=S}S=N2o;return S},{mode:2});var w0=function(){return _.w.apply(this,arguments)||this};
_.r(w0,_.w);w0.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"}}}};
w0.prototype.onPanelContentVisibleChanged=function(){this.data&&this.data.contents&&this.data.contents.some(function(S){return S.hasOwnProperty("clipCreationRenderer")})&&_.St(this.hostElement,"yt-clip-creation-visibility-changed",[{visible:!!this.panelContentVisible}])};
w0.prototype.onPanelContentVisibleChanged=w0.prototype.onPanelContentVisibleChanged;_.x([_.F(_.qH.YtRendererstamperBehavior),_.E("design:type",Object)],w0.prototype,"ytRendererstamperBehavior",void 0);_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],w0.prototype,"ytRendererBehavior",void 0);_.x([_.F(_.wk.YtVisibilityBehavior),_.E("design:type",Object)],w0.prototype,"ytVisibilityBehavior",void 0);_.x([_.F(_.Xh),_.E("design:type",Object)],w0.prototype,"ytdReduxBehavior",void 0);
_.x([_.g(),_.E("design:type",Object)],w0.prototype,"data",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Boolean)],w0.prototype,"panelContentVisible",void 0);_.x([_.T4("panelContentVisible"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],w0.prototype,"onPanelContentVisibleChanged",null);w0=_.x([_.f({is:"ytd-clip-section-renderer",disableElementRegistration:!0})],w0);
_.C(w0,"ytd-clip-section-renderer",function(){if(oQ5!==void 0)return oQ5;var S=document.createElement("template");_.h(S,'\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');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);return oQ5=S},{mode:1});var SmA;var lC=function(){return _.w.apply(this,arguments)||this};
_.r(lC,_.w);_.M=lC.prototype;
_.M.onKeyDown=function(S){if(this.snippetElements.length!==0&&(S=S.keyCode,S===38||S===40)){this.highlightedIndex>=0&&this.removeSnippetHighlight(this.snippetElements[this.highlightedIndex]);S===38?this.highlightedIndex--:this.highlightedIndex++;this.highlightedIndex=_.F7(this.highlightedIndex,-1,this.snippetElements.length);S=this.snippetElements.length;var p=this.highlightedIndex%S;this.highlightedIndex=p*S<0?p+S:p;S=this.snippetElements[this.highlightedIndex];this.highlightSnippet(S);this.ensureVisible(S)}};
_.M.onKeyUp=function(S){var p=this;zGP(S)&&(S.keyCode===13?(this.selectSnippet(this.snippetElements[this.highlightedIndex]),this.inputElement.blur()):this.filterSnippets(this.snippets,this.typedValue),this.inputTimerId&&_.PA.cancelJob(this.inputTimerId),this.inputTimerId=_.PA.addLowPriorityJob(function(){p.typedValue&&(p.fetchSnippets(p.typedValue),p.logInputGesture(p.data))},1E3))};
_.M.onClick=function(S){(S=_.irQ(S.target,null,"snippet-item"))&&this.selectSnippet(S)};
_.M.panelContentVisibleChanged=function(){this.panelContentVisible&&this.inputElement.focus()};
_.M.created=function(){this.ytActionHandlerBehavior.actionMap={"yt-update-search-in-video-results-action":"onUpdateSearchInVideoResults"}};
_.M.ready=function(){var S=this;this.inputElement.addEventListener("focus",function(){S.snippetsWrapper.style.removeProperty("display")})};
_.M.dataChanged=function(){this.typedValue="";this.snippets=[];this.fetchSnippets("")};
_.M.getSourceTimelines=function(){if(!this.data)return[];var S=[];if(this.data.searchInVideoSources)for(var p=_.d(this.data.searchInVideoSources),U=p.next();!U.done;U=p.next())U=U.value,U==="SEARCH_IN_VIDEO_SOURCE_ASR"?S.push({type:"TIMELINE_TYPE_STRUCTURAL_ASR"}):U==="SEARCH_IN_VIDEO_SOURCE_OCR"&&S.push({type:"TIMELINE_TYPE_OCR_LABEL_SPAN"});return S};
_.M.fetchSnippets=function(S){var p=_.St(this.hostElement,"yt-get-current-video-id-action")[0],U=this.getSourceTimelines();S={getSearchInVideoCommand:{externalVideoId:p,query:S!=null?S:"",sourceTimelines:U},commandMetadata:{webCommandMetadata:{apiUrl:"/youtubei/v1/in_video/search",sendPost:!0}}};_.tW().resolve(_.cQ).resolveCommand(S,{form:{element:this.hostElement}})};
_.M.filterSnippets=function(S,p){var U=this;if(p){this.filteredSnippets=(0,_.h9.unsafeClone)(S);var Y=RegExp(_.fNR(p),"i");this.filteredSnippets=this.filteredSnippets.filter(function(V){return Y.test(U.ytRendererBehavior.getSimpleString(V.snippet))});
S=_.d(this.filteredSnippets);for(var L=S.next();!L.done;L=S.next()){L=L.value;var I=this.ytRendererBehavior.getSimpleString(L.snippet);L.snippet={runs:[{text:I.substring(0,I.toLowerCase().indexOf(p))},{text:I.substring(I.toLowerCase().indexOf(p),I.toLowerCase().indexOf(p)+p.length),bold:!0},{text:I.substring(I.toLowerCase().indexOf(p)+p.length,I.length)}]}}}else this.filteredSnippets=S};
_.M.onUpdateSearchInVideoResults=function(S){if(!(this.snippets.length>0)){var p,U,Y;if((Y=(p=_.b(S,FTE))==null?void 0:(U=p.results)==null?void 0:U.length)!=null&&Y){var L;this.filteredSnippets=this.snippets=((L=_.b(S,FTE))==null?void 0:L.results).map(function(I){var V,W,O;return{startMs:I==null?void 0:(V=I.searchInVideoResultRenderer)==null?void 0:V.startMs,startTimeText:I==null?void 0:(W=I.searchInVideoResultRenderer)==null?void 0:W.startTimeText,snippet:I==null?void 0:(O=I.searchInVideoResultRenderer)==
null?void 0:O.snippet}})}}};
_.M.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};
_.M.highlightSnippet=function(S){S.classList.add("highlighted")};
_.M.removeSnippetHighlight=function(S){S.classList.remove("highlighted")};
_.M.selectSnippet=function(S){this.typedValue=String(S.dataset.text);this.filterSnippets(this.snippets,this.typedValue);this.snippetsWrapper.style.display="none";this.seekPlayer(S);this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
_.M.ensureVisible=function(S){var p=this.snippetsWrapper.scrollTop,U=p+this.snippetsWrapper.clientHeight,Y=S.offsetTop-this.snippetsWrapper.offsetTop;S=Y+S.clientHeight;Y<p?this.snippetsWrapper.scrollTop-=p-Y:S>U&&(this.snippetsWrapper.scrollTop+=S-U)};
_.M.seekPlayer=function(S){var p,U;return _.T(function(Y){if(Y.nextAddress==1){if(!S)return Y.jumpTo(0);p=Number(S.dataset.startOffset);return _.k(Y,_.iZ().getPlayerPromise(),3)}U=Y.yieldResult;U.seekTo(p/1E3,!0);U.wakeUpControls();_.OV(Y)})};
_.M.logInputGesture=function(S){var p=_.X$();p&&(S==null?0:S.trackingParams)&&_.Eh(p,_.JS(S.trackingParams),"INTERACTION_LOGGING_GESTURE_TYPE_INPUT_TEXT")};
_.M.typedValueChangedForBinding=function(){this.hostElement.dispatchEvent(new _.uz("typed-value-changed",this.typedValue))};
_.M.updateTypedValueFromBinding=function(S){this.typedValue=S.currentTarget.value};
lC.prototype.typedValueChangedForBinding=lC.prototype.typedValueChangedForBinding;lC.prototype.dataChanged=lC.prototype.dataChanged;lC.prototype.panelContentVisibleChanged=lC.prototype.panelContentVisibleChanged;lC.prototype.onClick=lC.prototype.onClick;lC.prototype.onKeyUp=lC.prototype.onKeyUp;lC.prototype.onKeyDown=lC.prototype.onKeyDown;_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],lC.prototype,"ytRendererBehavior",void 0);
_.x([_.F(_.Aj.YtActionHandlerBehavior),_.E("design:type",Object)],lC.prototype,"ytActionHandlerBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],lC.prototype,"data",void 0);_.x([_.g({value:[]}),_.E("design:type",Array)],lC.prototype,"snippets",void 0);_.x([_.g({value:[]}),_.E("design:type",Array)],lC.prototype,"filteredSnippets",void 0);_.x([_.g({value:[]}),_.E("design:type",Array)],lC.prototype,"snippetElements",void 0);
_.x([_.O2("#siv-input"),_.E("design:type",HTMLElement)],lC.prototype,"inputElement",void 0);_.x([_.O2("#siv-snippets-wrapper"),_.E("design:type",HTMLElement)],lC.prototype,"snippetsWrapper",void 0);_.x([_.g(),_.E("design:type",String)],lC.prototype,"typedValue",void 0);_.x([_.g({value:-1}),_.E("design:type",Number)],lC.prototype,"highlightedIndex",void 0);_.x([_.Vd("keydown"),_.E("design:type",Function),_.E("design:paramtypes",[_.dM]),_.E("design:returntype")],lC.prototype,"onKeyDown",null);
_.x([_.Vd("keyup"),_.E("design:type",Function),_.E("design:paramtypes",[_.dM]),_.E("design:returntype")],lC.prototype,"onKeyUp",null);_.x([_.Vd("click"),_.E("design:type",Function),_.E("design:paramtypes",[Event]),_.E("design:returntype")],lC.prototype,"onClick",null);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Boolean)],lC.prototype,"panelContentVisible",void 0);
_.x([_.T4("panelContentVisible"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],lC.prototype,"panelContentVisibleChanged",null);_.x([_.T4("data"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],lC.prototype,"dataChanged",null);_.x([_.T4("typedValue"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],lC.prototype,"typedValueChangedForBinding",null);
lC=_.x([_.f({is:"ytd-search-in-video-renderer",disableElementRegistration:!0})],lC);
_.C(lC,"ytd-search-in-video-renderer",function(){if(SmA!==void 0)return SmA;var S=document.createElement("template");_.h(S,'\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');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);return SmA=S},{mode:1});var p6A;var ai=function(){return _.w.apply(this,arguments)||this};
_.r(ai,_.w);ai.prototype.computeButtonOverride=function(){if(this.data)return{size:"S"}};
ai.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]]"}}}}}};
ai.prototype.showSnackbarIfPlaceholder=function(){if(this.isProductPlaceholder){var S,p,U,Y,L=(p=_.b((S=this.data)==null?void 0:S.onClickCommand,_.DH))==null?void 0:(U=p.item)==null?void 0:(Y=U.notificationTextRenderer)==null?void 0:Y.successResponseText;L&&_.Uqe(this.hostElement,L)}};
_.$u.Object.defineProperties(ai.prototype,{useCenterLayoutContainer:{configurable:!0,enumerable:!0,get:function(){return this.isProductPlaceholder}},
isProductPlaceholder:{configurable:!0,enumerable:!0,get:function(){var S;return!((S=this.data)==null||!S.isProductPlaceholder)}},
showDropCountdown:{configurable:!0,enumerable:!0,get:function(){var S,p,U,Y;return this.isProductPlaceholder&&((S=this.data)==null?void 0:(p=S.hiddenProductOptions)==null?void 0:p.showDropCountdown)&&!!((U=this.data)==null?0:(Y=U.hiddenProductOptions)==null?0:Y.dropTimestamp)}},
showBrandName:{configurable:!0,enumerable:!0,get:function(){var S;return!this.isProductPlaceholder&&!((S=this.data)==null?0:S.merchantName)}},
showPriceReplacementText:{configurable:!0,enumerable:!0,get:function(){var S;return!((S=this.data)==null||!S.priceReplacementText)}},
showPrice:{configurable:!0,enumerable:!0,get:function(){var S,p;return!((S=this.data)==null?0:S.priceReplacementText)&&!((p=this.data)==null||!p.price)}},
showMetadata:{configurable:!0,enumerable:!0,get:function(){return!this.isProductPlaceholder}}});
_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],ai.prototype,"ytRendererBehavior",void 0);_.x([_.F(_.eL.YtComponentBehavior),_.E("design:type",Object)],ai.prototype,"componentBehavior",void 0);_.x([_.F(_.qH.YtRendererstamperBehavior),_.E("design:type",Object)],ai.prototype,"ytRendererstamperBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],ai.prototype,"data",void 0);
_.x([_.g({reflectToAttribute:!0}),_.e("isProductPlaceholder"),_.E("design:type",Object),_.E("design:paramtypes",[])],ai.prototype,"useCenterLayoutContainer",null);_.x([_.g({computed:"computeButtonOverride(data)"}),_.E("design:type",Object)],ai.prototype,"buttonOverride",void 0);_.x([_.e("data"),_.E("design:type",Object),_.E("design:paramtypes",[])],ai.prototype,"isProductPlaceholder",null);
_.x([_.e("isProductPlaceholder"),_.E("design:type",Object),_.E("design:paramtypes",[])],ai.prototype,"showDropCountdown",null);_.x([_.e("isProductPlaceholder","data"),_.E("design:type",Object),_.E("design:paramtypes",[])],ai.prototype,"showBrandName",null);_.x([_.e("data"),_.E("design:type",Object),_.E("design:paramtypes",[])],ai.prototype,"showPriceReplacementText",null);_.x([_.e("data"),_.E("design:type",Object),_.E("design:paramtypes",[])],ai.prototype,"showPrice",null);
_.x([_.e("isProductPlaceholder"),_.E("design:type",Object),_.E("design:paramtypes",[])],ai.prototype,"showMetadata",null);ai=_.x([_.f({disableElementRegistration:!0,is:"ytd-product-list-item-renderer"})],ai);
_.C(ai,"ytd-product-list-item-renderer",function(){if(p6A!==void 0)return p6A;var S=document.createElement("template");_.h(S,'\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>');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);return p6A=S},{mode:1});var U5P;var fG=function(){return _.w.apply(this,arguments)||this};
_.r(fG,_.w);fG.prototype.created=function(){this.ytRendererBehavior.monitorScroll=!0};
fG.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{productListHeaderRenderer:"ytd-product-list-header-renderer",productListItemRenderer:"ytd-product-list-item-renderer"}}}};
fG.prototype.panelContentVisibleChanged=function(){var S=this,p;return _.T(function(U){if(U.nextAddress==1)return S.playerApi?U.jumpTo(2):_.k(U,_.iZ().getPlayerPromise(),3);U.nextAddress!=2&&(S.playerApi=U.yieldResult);(p=S.playerApi)==null||p.productsInVideoVisibilityUpdated(!!S.panelContentVisible);_.OV(U)})};
fG.prototype.panelContentVisibleChanged=fG.prototype.panelContentVisibleChanged;_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],fG.prototype,"ytRendererBehavior",void 0);_.x([_.F(_.qH.YtRendererstamperBehavior),_.E("design:type",Object)],fG.prototype,"ytRendererstamperBehavior",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Boolean)],fG.prototype,"panelContentVisible",void 0);_.x([_.g(),_.E("design:type",Object)],fG.prototype,"data",void 0);
_.x([_.T4("panelContentVisible"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype",Promise)],fG.prototype,"panelContentVisibleChanged",null);fG=_.x([_.f({disableElementRegistration:!0,is:"ytd-product-list-renderer"})],fG);
_.C(fG,"ytd-product-list-renderer",function(){if(U5P!==void 0)return U5P;var S=document.createElement("template");_.h(S,'\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');S.content.insertBefore(_.t().content.cloneNode(!0),S.content.firstChild);return U5P=S},{mode:1});var YmT;var CG=function(){var S=_.w.apply(this,arguments)||this;S.hideTimestamps=!!_.Uz("hide-transcript-timestamps");S.currentCueIndex=-1;S.flatCues=[];S.actionMap={"yt-signal-action-toggle-transcript-timestamps":"handleSignalActionToggleTranscriptTimestamps","yt-player-time-changed":"onYtPlayerTimeChanged"};S.TEST_ONLY={getFlatCues:function(){return S.flatCues}};
return S};
_.r(CG,_.w);_.M=CG.prototype;_.M.hideTimestampsChanged=function(){_.p$("hide-transcript-timestamps",this.hideTimestamps)};
_.M.toggleTranscriptTimestampAction=function(){this.hideTimestamps=!this.hideTimestamps};
_.M.handleSignalActionToggleTranscriptTimestamps=function(){this.toggleTranscriptTimestampAction()};
_.M.dataChanged=function(){var S;if((S=this.data)!=null&&S.cueGroups){this.flatCues.length=0;this.currentCueIndex=-1;S=_.d(this.data.cueGroups);for(var p=S.next();!p.done;p=S.next()){p=_.d(_.b(p.value,XZJ).cues);for(var U=p.next();!U.done;U=p.next())this.flatCues.push(Number(_.b(U.value,PyT).startOffsetMs))}}};
_.M.onYtPlayerTimeChanged=function(S){if(!(S<0)){for(var p=this.currentCueIndex,U=p;;){var Y=U>=0?this.flatCues[U]/1E3:-1;if(S+.5<Y)--U;else if(Y=U+1<this.flatCues.length?this.flatCues[U+1]/1E3:Infinity,S+.5>Y)U+=1;else break}U!==p&&(p>=0&&((S=this.getCueElement(p))&&S.classList.remove("active"),(p=this.getCueGroupElement(p))&&p.classList.remove("active")),(p=this.getCueElement(U))&&p.classList.add("active"),(p=this.getCueGroupElement(U))&&p.classList.add("active"),this.currentCueIndex=U,this.isHovered||
this.scrollElementToTop(U))}};
_.M.scrollElementToTop=function(S){S=this.getCueElement(S>=3?S-3:0);this.hostElement.scrollTop=Math.min(S.offsetTop-this.hostElement.offsetTop,this.hostElement.scrollHeight-this.hostElement.offsetHeight)};
_.M.getCueElement=function(S){return _.tB(this.hostElement).querySelector('.cue[start-offset="'+this.flatCues[S]+'"]')};
_.M.getCueGroupElement=function(S){return(S=this.getCueElement(S))&&S.parentElement?S.parentElement.parentElement:null};
_.M.onTap=function(S){var p=_.mF(S);S.target.classList.contains("cue")&&this.seekCueElement(p)};
_.M.onKeyPress=function(S){S.keyCode==13&&(S=_.irQ(S.target,null,"cue"))&&this.seekCueElement(S)};
_.M.seekCueElement=function(S){S=Number(S.getAttribute("start-offset"));_.St(this.hostElement,"yt-transcript-player-seek",[S/1E3])};
_.M.onMouseEnter=function(){this.isHovered=!0};
_.M.onMouseLeave=function(){this.isHovered=!1};
CG.prototype.onMouseLeave=CG.prototype.onMouseLeave;CG.prototype.onMouseEnter=CG.prototype.onMouseEnter;CG.prototype.onKeyPress=CG.prototype.onKeyPress;CG.prototype.onTap=CG.prototype.onTap;CG.prototype.dataChanged=CG.prototype.dataChanged;CG.prototype.hideTimestampsChanged=CG.prototype.hideTimestampsChanged;_.x([_.F(_.Aj.YtActionHandlerBehavior),_.E("design:type",Object)],CG.prototype,"ytActionHandlerBehavior",void 0);
_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],CG.prototype,"ytRendererBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],CG.prototype,"data",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],CG.prototype,"hideTimestamps",void 0);_.x([_.g(),_.E("design:type",Boolean)],CG.prototype,"isHovered",void 0);_.x([_.T4("hideTimestamps"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],CG.prototype,"hideTimestampsChanged",null);
_.x([_.T4("data"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],CG.prototype,"dataChanged",null);_.x([_.Vd("tap"),_.E("design:type",Function),_.E("design:paramtypes",[Event]),_.E("design:returntype")],CG.prototype,"onTap",null);_.x([_.Vd("keypress"),_.E("design:type",Function),_.E("design:paramtypes",[Event]),_.E("design:returntype")],CG.prototype,"onKeyPress",null);
_.x([_.Vd("mouseenter"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],CG.prototype,"onMouseEnter",null);_.x([_.Vd("mouseleave"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],CG.prototype,"onMouseLeave",null);CG=_.x([_.f({disableElementRegistration:!0,is:"ytd-transcript-body-renderer"})],CG);
_.C(CG,"ytd-transcript-body-renderer",function(){if(YmT!==void 0)return YmT;var S=document.createElement("template");_.h(S,'\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');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);return YmT=S},{mode:1});var LdJ;var xG=function(){var S=_.w.apply(this,arguments)||this;S.darkerPanels=_.y("web_watch_darker_panels");return S};
_.r(xG,_.w);xG.prototype.configureRendererStamper=function(){return{"data.languageMenu":{id:"menu",mapping:{sortFilterSubMenuRenderer:"yt-sort-filter-sub-menu-renderer"}}}};
_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],xG.prototype,"ytRendererBehavior",void 0);_.x([_.F(_.qH.YtRendererstamperBehavior),_.E("design:type",Object)],xG.prototype,"ytRendererstamperBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],xG.prototype,"data",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],xG.prototype,"darkerPanels",void 0);xG=_.x([_.f({disableElementRegistration:!0,is:"ytd-transcript-footer-renderer"})],xG);
_.C(xG,"ytd-transcript-footer-renderer",function(){if(LdJ!==void 0)return LdJ;var S=document.createElement("template");_.h(S,'\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');S.content.insertBefore(_.t().content.cloneNode(!0),S.content.firstChild);return LdJ=S},{mode:1});var MUY;var IJX;var Ek=function(){var S=_.w.apply(this,arguments)||this;S.systemIcons=_.y("kevlar_system_icons");S.showClearButton=!1;return S};
_.r(Ek,_.w);_.M=Ek.prototype;_.M.handleInput=function(S){var p=this;S.target.value.length?_.w9(this,"ytdTranscriptSearchBoxSearch",function(){p.emitSearchEvent(S)},500):(_.ruG(this,"ytdTranscriptSearchBoxSearch"),this.emitClearEvent());
this.showClearButton=S.target.value.length>0};
_.M.clear=function(){this.inputBox.value="";this.showClearButton=!1};
_.M.handleClick=function(){var S,p=(S=this.data)==null?void 0:S.trackingParams;p&&_.La(_.HX(),p)};
_.M.handleClear=function(){_.ruG(this,"ytdTranscriptSearchBoxSearch");this.emitClearEvent();var S,p,U=(p=_.b((S=this.data)==null?void 0:S.clearButton,_.XT))==null?void 0:p.trackingParams;U&&_.La(_.HX(),U);this.clear()};
_.M.emitSearchEvent=function(S){_.cv(this.hostElement,"yt-transcript-search-box-search",{query:S.target.value});var p,U;(S=(U=_.b((p=this.data)==null?void 0:p.searchButton,_.XT))==null?void 0:U.trackingParams)&&_.La(_.HX(),S)};
_.M.emitClearEvent=function(){_.cv(this.hostElement,"yt-transcript-search-box-clear")};
_.$u.Object.defineProperties(Ek.prototype,{inputBox:{configurable:!0,enumerable:!0,get:function(){return _.tB(this.hostElement).querySelector("#transcript-search-box-input")}},
value:{configurable:!0,enumerable:!0,get:function(){return this.inputBox.value}}});
_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],Ek.prototype,"ytRendererBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],Ek.prototype,"data",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],Ek.prototype,"systemIcons",void 0);Ek=_.x([_.f({disableElementRegistration:!0,is:"ytd-transcript-search-box-renderer"})],Ek);
_.C(Ek,"ytd-transcript-search-box-renderer",function(){if(IJX!==void 0)return IJX;var S=document.createElement("template");_.h(S,'\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');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);return IJX=S},{mode:1});var d5t;var VUo;var mD=function(){return _.w.apply(this,arguments)||this};
_.r(mD,_.w);mD.prototype.dataChanged=function(){if(this.data&&this.data.accessibility&&this.data.accessibility.accessibilityData){var S,p;this.sectionHeaderAriaLabel=(S=this.data)==null?void 0:(p=S.accessibility)==null?void 0:p.accessibilityData.label}};
mD.prototype.fireSelectedEvent=function(S){_.cv(this.hostElement,"ytd-transcript-section-header",{startMs:S})};
mD.prototype.handleClick=function(){this.data&&this.fireSelectedEvent(Number(this.data.startMs))};
mD.prototype.handleKeyPress=function(S){this.data&&S.key==="Enter"&&this.fireSelectedEvent(Number(this.data.startMs))};
_.$u.Object.defineProperties(mD.prototype,{enableTappableTranscriptHeader:{configurable:!0,enumerable:!0,get:function(){var S,p;return(p=(S=this.data)==null?void 0:S.enableTappableTranscriptHeader)!=null?p:!1}}});
mD.prototype.dataChanged=mD.prototype.dataChanged;_.x([_.g(),_.E("design:type",Object)],mD.prototype,"data",void 0);_.x([_.g(),_.E("design:type",String)],mD.prototype,"sectionHeaderAriaLabel",void 0);_.x([_.e("data"),_.E("design:type",Object),_.E("design:paramtypes",[])],mD.prototype,"enableTappableTranscriptHeader",null);_.x([_.T4("data"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],mD.prototype,"dataChanged",null);
mD=_.x([_.f({disableElementRegistration:!0,is:"ytd-transcript-section-header-renderer"})],mD);
_.C(mD,"ytd-transcript-section-header-renderer",function(){if(VUo!==void 0)return VUo;var S=document.createElement("template");_.h(S,'\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');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);return VUo=S},{mode:1});var TGn;var Wdd;var oi=function(){var S=_.w.apply(this,arguments)||this;S.isEditMode=!1;S.touchCaptionsEnabled=!1;S.deleteCaptionCorrectionPopupCommand=null;S.voteCaptionCorrectionPopupCommand=null;S.roundedContainer=!0;S.mouseOver=!1;S.textChanged=!1;S.messages={suggest_correction:_.Oh("suggest_correction",void 0,"Edit caption"),suggested_caption:_.Oh("suggested_caption",void 0,"Suggested caption"),submit_correction:_.Oh("submit_correction",void 0,"Submit for review"),cancel_correction:_.Oh("cancel_correction",
void 0,"Cancel"),replay_segment:_.Oh("replay_segment",void 0,"Re-play segment"),delete_correction:_.Oh("delete_correction",void 0,"Delete correction")};S.actionMap={"yt-transcript-update-segment-text-command":"handleUpdateSegmentText","yt-transcript-edit-segment-command":"handleEditSegmentCommand"};return S};
_.r(oi,_.w);_.M=oi.prototype;_.M.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)};
_.M.handleDelete=function(S){if(this.deleteCaptionCorrectionPopupCommand){var p=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(this.deleteCaptionCorrectionPopupCommand);p&&this.ytdOpenPopupBehavior.openPopup(p);S.stopPropagation()}};
_.M.handleSubmit=function(S){if(this.data&&this.data.submitCaptionCorrectionCommand&&(S.stopPropagation(),this.textChanged)){var p;S=(p=_.b(this.data.submitCaptionCorrectionCommand,_.Ucq))==null?void 0:p.params;p=Object.assign({},this.data.submitCaptionCorrectionCommand,{transcriptSubmitCaptionCorrectionCommand:{params:S,correctionText:String(this.ironTextAreaElement.value),originalText:_.mA(this.data.snippet)}});this.ytComponentBehavior.resolveCommand(p);this.isEditMode=!1}};
_.M.handleUpdateSegmentText=function(S){(S=_.b(S,idE))&&S.targetId&&this.data&&S.targetId===this.data.targetId&&(S.userCorrection&&(this.editedText=S.userCorrection),S.restoreOriginalCaption&&(this.editedText=void 0,this.ironTextAreaElement.value=_.mA(this.data.snippet)),S.deleteCaptionCorrectionPopupCommand?this.deleteCaptionCorrectionPopupCommand=S.deleteCaptionCorrectionPopupCommand:this.deleteCaptionCorrectionPopupCommand=null,this.voteCaptionCorrectionPopupCommand=S.voteCaptionCorrectionPopupCommand?
S.voteCaptionCorrectionPopupCommand:null,S.accessibility&&(this.segmentAriaLabel=S.accessibility.accessibilityData.label))};
_.M.handleCancel=function(S){this.isEditMode=!1;S.stopPropagation();this.logClientVe(159409)};
_.M.handleEditSegmentCommand=function(S){(S=_.b(S,$iJ))&&S.targetId&&this.data&&S.targetId===this.data.targetId&&this.handleEdit()};
_.M.handleEditButtonClick=function(S){this.data&&(this.handleEdit(),S.stopPropagation())};
_.M.handleEdit=function(){if(this.data){this.fireEditEvent(Number(this.data.startMs),Number(this.data.endMs));this.isEditMode=!0;var S;(S=this.ironTextAreaElement.textarea)==null||S.focus();this.logClientVe(159407)}};
_.M.handleMouseEnter=function(){this.mouseOver=!0};
_.M.handleMouseLeave=function(){this.mouseOver=!1};
_.M.handleReplay=function(S){this.data&&(this.fireReplayEvent(Number(this.data.startMs),Number(this.data.endMs)),S.stopPropagation(),this.logClientVe(159408))};
_.M.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()))};
_.M.handleKeypress=function(S){this.data&&(this.isEditMode?S.stopPropagation():this.isEnterPress(S)?(this.fireSelectedEvent(Number(this.data.startMs)),this.logClick()):this.isCopyPress(S)&&this.logClientVe(138758))};
_.M.handleTextboxClick=function(S){S.stopPropagation()};
_.M.handleTextboxKeydown=function(S){this.isControlEnterPress(S)?this.handleSubmit(S):S.key==="Escape"&&this.handleCancel(S)};
_.M.handleTextboxKeyup=function(){this.textChanged=_.mA(this.latestText)!==String(this.ironTextAreaElement.value)};
_.M.fireSelectedEvent=function(S){_.cv(this.hostElement,"yt-transcript-segment-selected",{startMs:S})};
_.M.fireReplayEvent=function(S,p){_.cv(this.hostElement,"yt-transcript-segment-replay",{startMs:Math.max(S-100,0),endMs:p})};
_.M.fireEditEvent=function(S,p){_.cv(this.hostElement,"yt-transcript-segment-edit",{startMs:S,endMs:p})};
_.M.isEnterPress=function(S){return S.key==="Enter"||S.code==="Enter"||S.code==="NumpadEnter"||S.keyCode===13?!0:!1};
_.M.isControlEnterPress=function(S){var p=S.key==="Enter"||S.code==="Enter"||S.code==="NumpadEnter"||S.keyCode===13;return(S.ctrlKey||S.metaKey)&&p};
_.M.isCopyPress=function(S){var p=S.ctrlKey;return S.key==="c"&&p};
_.M.logClick=function(){var S,p=(S=this.data)==null?void 0:S.trackingParams;p&&_.La(_.HX(),p)};
_.M.logClientVe=function(S){_.YV(_.HX(),_.bZ(S))};
_.$u.Object.defineProperties(oi.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}}});
oi.prototype.handleMouseLeave=oi.prototype.handleMouseLeave;oi.prototype.handleMouseEnter=oi.prototype.handleMouseEnter;oi.prototype.dataChanged=oi.prototype.dataChanged;_.x([_.F(_.Aj.YtActionHandlerBehavior),_.F(_.eL.YtComponentBehavior),_.E("design:type",Object)],oi.prototype,"ytComponentBehavior",void 0);_.x([_.F(_.xK),_.E("design:type",Object)],oi.prototype,"ytdOpenPopupBehavior",void 0);_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],oi.prototype,"ytRendererBehavior",void 0);
_.x([_.g(),_.E("design:type",Object)],oi.prototype,"data",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],oi.prototype,"isEditMode",void 0);_.x([_.g(),_.E("design:type",Object)],oi.prototype,"touchCaptionsEnabled",void 0);_.x([_.g(),_.E("design:type",Object)],oi.prototype,"editedText",void 0);_.x([_.g(),_.E("design:type",Object)],oi.prototype,"deleteCaptionCorrectionPopupCommand",void 0);_.x([_.g(),_.E("design:type",Object)],oi.prototype,"voteCaptionCorrectionPopupCommand",void 0);
_.x([_.g(),_.E("design:type",String)],oi.prototype,"segmentAriaLabel",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],oi.prototype,"roundedContainer",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],oi.prototype,"mouseOver",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],oi.prototype,"textChanged",void 0);_.x([_.g(),_.E("design:type",Object)],oi.prototype,"messages",void 0);
_.x([_.O2("#suggestion"),_.E("design:type",Object)],oi.prototype,"ironTextAreaElement",void 0);_.x([_.e("data","editedText"),_.E("design:type",Object),_.E("design:paramtypes",[])],oi.prototype,"latestText",null);_.x([_.e("touchCaptionsEnabled","isEditMode"),_.E("design:type",Boolean),_.E("design:paramtypes",[])],oi.prototype,"enableEditButton",null);
_.x([_.e("enableEditButton","deleteCaptionCorrectionPopupCommand"),_.E("design:type",Boolean),_.E("design:paramtypes",[])],oi.prototype,"enableUndoButton",null);_.x([_.T4("data"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],oi.prototype,"dataChanged",null);_.x([_.Vd("mouseenter"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],oi.prototype,"handleMouseEnter",null);
_.x([_.Vd("mouseleave"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],oi.prototype,"handleMouseLeave",null);oi=_.x([_.f({disableElementRegistration:!0,is:"ytd-transcript-segment-renderer"})],oi);
_.C(oi,"ytd-transcript-segment-renderer",function(){if(Wdd!==void 0)return Wdd;var S=document.createElement("template");_.h(S,'\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');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);return Wdd=S},{mode:1});var vU=function(){var S=_.w.apply(this,arguments)||this;S.actionMap={"yt-player-time-changed":"onYtPlayerTimeChanged"};S.isError=!1;S.darkerPanels=_.y("web_watch_darker_panels");S.useParentMaxHeight=_.y("web_watch_transscript_use_parent_max_height");S.segmentOffsets=[];S.segmentIndex=-1;return S};
_.r(vU,_.w);_.M=vU.prototype;_.M.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"}}}}};
_.M.segmentsChanged=function(){this.updateOffsets()};
_.M.onYtPlayerTimeChanged=function(S){for(var p=this.segmentIndex,U=p;;){if(U>=0){var Y=this.segmentOffsets[U].start;var L=this.segmentOffsets[U].isAutoScrollable}else Y=-1,L=!0;var I=S+.5;if(!L){Y=U+1<this.segmentOffsets.length?this.segmentOffsets[U+1].start:Infinity;if(I>=Y){U+=1;continue}U=-1;break}if(I<Y)Y=U-1>=0&&this.segmentOffsets[U-1].isAutoScrollable,L=U===0||Y?1:2,U-=L;else if(L=U+1<this.segmentOffsets.length&&this.segmentOffsets[U+1].isAutoScrollable?1:2,Y=U+L<this.segmentOffsets.length?
this.segmentOffsets[U+L].start:Infinity,I>Y)U+=L;else{if(U<0)break;U<this.segmentOffsets.length&&I>this.segmentOffsets[U].end&&(U=-1);break}}if(p!==U){if(p>=0){var V;(V=this.getSegmentElement(p))==null||V.classList.remove("active")}this.segmentIndex=U;if(!(U<0)){var W;(W=this.getSegmentElement(U))==null||W.classList.add("active");this.isHovered||this.scrollElementToTop(U)}}};
_.M.handleSegmentEdit=function(S){S.target&&(this.lastSegmentEdited&&(this.lastSegmentEdited.isEditMode=!1),this.lastSegmentEdited=S.target,_.St(this.hostElement,"yt-transcript-player-edit",[S.detail.startMs/1E3,S.detail.endMs/1E3]))};
_.M.handleSegmentSelected=function(S){_.St(this.hostElement,"yt-transcript-player-seek",[S.detail.startMs/1E3])};
_.M.handleSegmentReplay=function(S){_.St(this.hostElement,"yt-transcript-player-replay",[S.detail.startMs/1E3,S.detail.endMs/1E3])};
_.M.handleSectionHeaderSelected=function(S){_.St(this.hostElement,"yt-transcript-player-seek",[S.detail.startMs/1E3])};
_.M.onMouseEnter=function(){this.isHovered=!0};
_.M.onMouseLeave=function(){this.isHovered=!1};
_.M.onRetryButtonClick=function(){_.cv(this.hostElement,"transcript-retry-button-click")};
_.M.getSegmentElement=function(S){return _.tB(this.hostElement).querySelector(":nth-child("+(S+1)+")")};
_.M.scrollElementToTop=function(S){S=this.getSegmentElement(S>=2?S-2:0);this.hostElement.scrollTop=Math.min(S.offsetTop-this.hostElement.offsetTop,this.hostElement.scrollHeight-this.hostElement.offsetHeight)};
_.M.updateOffsets=function(){this.segmentOffsets=this.segments.map(function(S){var p,U=(p=S.transcriptSegmentRenderer)!=null?p:S.transcriptSectionHeaderRenderer;return{start:Number(U.startMs)/1E3,end:Number(U.endMs)/1E3,isAutoScrollable:S.transcriptSegmentRenderer!==void 0}});
this.segmentIndex=-1;this.clearHighlightedSegments()};
_.M.clearHighlightedSegments=function(){var S=_.tB(this.hostElement);S=_.d(S.querySelectorAll("ytd-transcript-segment-renderer"));for(var p=S.next();!p.done;p=S.next())p.value.classList.remove("active")};
_.$u.Object.defineProperties(vU.prototype,{segments:{configurable:!0,enumerable:!0,get:function(){var S,p;return((S=this.data)==null?void 0:S.searchResultSegments)||((p=this.data)==null?void 0:p.initialSegments)||[]}},
displayNoResults:{configurable:!0,enumerable:!0,get:function(){return!!this.segments&&this.segments.length===0&&!!this.noResultLabel}}});
vU.prototype.onMouseLeave=vU.prototype.onMouseLeave;vU.prototype.onMouseEnter=vU.prototype.onMouseEnter;vU.prototype.handleSectionHeaderSelected=vU.prototype.handleSectionHeaderSelected;vU.prototype.handleSegmentReplay=vU.prototype.handleSegmentReplay;vU.prototype.handleSegmentSelected=vU.prototype.handleSegmentSelected;vU.prototype.handleSegmentEdit=vU.prototype.handleSegmentEdit;vU.prototype.segmentsChanged=vU.prototype.segmentsChanged;
_.x([_.F(_.Aj.YtActionHandlerBehavior),_.E("design:type",Object)],vU.prototype,"ytActionHandlerBehavior",void 0);_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],vU.prototype,"ytRendererBehavior",void 0);_.x([_.F(_.qH.YtRendererstamperBehavior),_.E("design:type",Object)],vU.prototype,"ytRendererstamperBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],vU.prototype,"data",void 0);_.x([_.g(),_.E("design:type",Object)],vU.prototype,"isError",void 0);
_.x([_.g(),_.E("design:type",Object)],vU.prototype,"noResultLabel",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],vU.prototype,"darkerPanels",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],vU.prototype,"useParentMaxHeight",void 0);_.x([_.e("data"),_.E("design:type",Array),_.E("design:paramtypes",[])],vU.prototype,"segments",null);
_.x([_.e("segments","noResultLabel"),_.E("design:type",Boolean),_.E("design:paramtypes",[])],vU.prototype,"displayNoResults",null);_.x([_.T4("segments"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],vU.prototype,"segmentsChanged",null);_.x([_.Vd("yt-transcript-segment-edit"),_.E("design:type",Function),_.E("design:paramtypes",[Event]),_.E("design:returntype")],vU.prototype,"handleSegmentEdit",null);
_.x([_.Vd("yt-transcript-segment-selected"),_.E("design:type",Function),_.E("design:paramtypes",[Event]),_.E("design:returntype")],vU.prototype,"handleSegmentSelected",null);_.x([_.Vd("yt-transcript-segment-replay"),_.E("design:type",Function),_.E("design:paramtypes",[Event]),_.E("design:returntype")],vU.prototype,"handleSegmentReplay",null);
_.x([_.Vd("ytd-transcript-section-header"),_.E("design:type",Function),_.E("design:paramtypes",[Event]),_.E("design:returntype")],vU.prototype,"handleSectionHeaderSelected",null);_.x([_.Vd("mouseenter"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],vU.prototype,"onMouseEnter",null);_.x([_.Vd("mouseleave"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],vU.prototype,"onMouseLeave",null);
vU=_.x([_.f({disableElementRegistration:!0,is:"ytd-transcript-segment-list-renderer"})],vU);
_.C(vU,"ytd-transcript-segment-list-renderer",function(){if(TGn!==void 0)return TGn;var S=document.createElement("template");_.h(S,'\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>');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);return TGn=S},{mode:1});var $G=function(){var S=_.w.apply(this,arguments)||this;S.hideTimestamps=!!_.Uz("hide-transcript-timestamps");S.isLoadingTranscripts=!1;S.darkerPanels=_.y("web_watch_darker_panels");S.isError=!1;S.actionMap={"yt-signal-action-toggle-transcript-timestamps":"handleSignalActionToggleTranscriptTimestamps","yt-signal-action-copy-transcript":"handleSignalActionCopyTranscript"};return S};
_.r($G,_.w);_.M=$G.prototype;_.M.headerChanged=function(){var S,p;this.baseGetTranscriptsCommand=(p=_.b((S=this.data)==null?void 0:S.header,NLE))==null?void 0:p.onTextChangeCommand};
_.M.bodyChanged=function(){var S=this.getBodyRenderer();S&&(S.initialSegments&&(this.initialTranscriptsRenderer=S),S.noResultLabel&&(this.noResultLabel=S.noResultLabel),S.retryLabel&&(this.retryLabel=S.retryLabel))};
_.M.detached=function(){this.clearSearchBoxText()};
_.M.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"body"}};
_.M.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"}}}};
_.M.onReloadContinuationFinish=function(){this.isLoadingTranscripts=!1};
_.M.fireSearch=function(S){var p=this;if(S){var U=S.detail.query;if(this.baseGetTranscriptsCommand){var Y;S=(Y=_.b(this.baseGetTranscriptsCommand,_.xOq))==null?void 0:Y.params;var L;Y=_.b((L=this.data)==null?void 0:L.footer,Zdi);var I;if((L=(I=_.b(Y==null?void 0:Y.languageMenu,mis))==null?void 0:I.subMenuItems)&&L.length>0&&(I=L.find(function(O){return O.selected}))){var V,W;
S=(V=I.continuation)==null?void 0:(W=V.reloadContinuationData)==null?void 0:W.continuation}V=Object.assign({},this.baseGetTranscriptsCommand,{getTranscriptEndpoint:{params:S,searchQuery:U}});this.ytComponentBehavior.resolveCommand(V,{commandController:{onServerError:function(){p.setError()}}});
this.isLoadingTranscripts=!0;this.set("data.body",{});HdJ(this.ytContinuationHandlerBehavior,function(){return U===p.getCurrentSearchBoxText()})}}};
_.M.searchCleared=function(){this.data&&this.data.body&&(this.isLoadingTranscripts=!1,this.set("data.body",{transcriptSegmentListRenderer:this.initialTranscriptsRenderer}))};
_.M.onRetryButtonClick=function(){this.isError=!1;var S={query:this.getCurrentSearchBoxText()};this.fireSearch(new CustomEvent("yt-transcript-search-box-search",{detail:S}))};
_.M.hideTimestampsChanged=function(){_.p$("hide-transcript-timestamps",this.hideTimestamps)};
_.M.toggleTranscriptTimestampAction=function(){this.hideTimestamps=!this.hideTimestamps};
_.M.handleSignalActionToggleTranscriptTimestamps=function(){this.toggleTranscriptTimestampAction()};
_.M.handleSignalActionCopyTranscript=function(){var S=this,p=this.getBodyRenderer();p&&(p=((p==null?void 0:p.searchResultSegments)||(p==null?void 0:p.initialSegments)||[]).map(function(U){return _.b(U,qfo)}).filter(function(U){return!!U}).map(function(U){return{snippet:U.snippet||{runs:[{text:""}]},
startTimeText:U.startTimeText||{simpleText:""}}}).map(function(U){var Y=(U.snippet.runs||[]).reduce(function(L,I){return L+I.text},"");
return S.hideTimestamps?Y:U.startTimeText.simpleText+" "+Y}).join("\n"),this.copyToClipboard(p))};
_.M.copyToClipboard=function(S){navigator.clipboard&&navigator.clipboard.writeText(S)};
_.M.getCurrentSearchBoxText=function(){var S;return(S=this.searchBox)==null?void 0:S.value};
_.M.clearSearchBoxText=function(){this.searchBox&&this.searchBox.clear()};
_.M.getBodyRenderer=function(){var S;return _.b((S=this.data)==null?void 0:S.body,BLP)};
_.M.setError=function(){this.isLoadingTranscripts=!1;this.isError=!0};
_.$u.Object.defineProperties($G.prototype,{searchBox:{configurable:!0,enumerable:!0,get:function(){return _.tB(this.hostElement).querySelector("ytd-transcript-search-box-renderer")}}});
$G.prototype.hideTimestampsChanged=$G.prototype.hideTimestampsChanged;$G.prototype.searchCleared=$G.prototype.searchCleared;$G.prototype.fireSearch=$G.prototype.fireSearch;$G.prototype.onReloadContinuationFinish=$G.prototype.onReloadContinuationFinish;$G.prototype.bodyChanged=$G.prototype.bodyChanged;$G.prototype.headerChanged=$G.prototype.headerChanged;_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],$G.prototype,"ytRendererBehavior",void 0);
_.x([_.F(_.eL.YtComponentBehavior),_.E("design:type",Object)],$G.prototype,"ytComponentBehavior",void 0);_.x([_.F(_.qH.YtRendererstamperBehavior),_.E("design:type",Object)],$G.prototype,"ytRendererstamperBehavior",void 0);_.x([_.F(_.wS),_.E("design:type",Object)],$G.prototype,"ytContinuationHandlerBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],$G.prototype,"data",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],$G.prototype,"hideTimestamps",void 0);
_.x([_.g(),_.E("design:type",Object)],$G.prototype,"isLoadingTranscripts",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],$G.prototype,"darkerPanels",void 0);_.x([_.g(),_.E("design:type",Object)],$G.prototype,"isError",void 0);_.x([_.T4("data.header"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],$G.prototype,"headerChanged",null);
_.x([_.z4("data.body"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],$G.prototype,"bodyChanged",null);_.x([_.Vd("yt-reload-continuation-finish"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],$G.prototype,"onReloadContinuationFinish",null);_.x([_.Vd("yt-transcript-search-box-search"),_.E("design:type",Function),_.E("design:paramtypes",[Event]),_.E("design:returntype")],$G.prototype,"fireSearch",null);
_.x([_.Vd("yt-transcript-search-box-clear"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],$G.prototype,"searchCleared",null);_.x([_.T4("hideTimestamps"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],$G.prototype,"hideTimestampsChanged",null);$G=_.x([_.f({disableElementRegistration:!0,is:"ytd-transcript-search-panel-renderer"})],$G);
_.C($G,"ytd-transcript-search-panel-renderer",function(){if(d5t!==void 0)return d5t;var S=document.createElement("template");_.h(S,'\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');
S.content.insertBefore(_.t().content.cloneNode(!0),S.content.firstChild);return d5t=S},{mode:1});var iC=function(){var S=_.w.apply(this,arguments)||this;S.player=null;S.playerPollJobId=0;return S};
_.r(iC,_.w);_.M=iC.prototype;_.M.panelContentVisibleChanged=function(){this.updatePlayerListening()};
_.M.onLoadReloadContinuation=function(S){_.y("enable_att_for_transcript_request_on_web_client")?this.ytComponentBehavior.resolveCommand({getTranscriptEndpoint:{params:S.target.data.continuation}}):(S={clickTrackingParams:S.target.data.clickTrackingParams,getTranscriptEndpoint:{params:S.target.data.continuation},commandMetadata:{webCommandMetadata:{apiUrl:"/youtubei/v1/get_transcript",sendPost:!0}}},_.tW().resolve(_.cQ).resolveCommand(S,{form:{element:this.hostElement}}))};
_.M.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"}}}};
_.M.created=function(){this.ytActionHandlerBehavior.actionMap={"yt-transcript-player-edit":"onYtTranscriptPlayerEdit","yt-transcript-player-seek":"onYtTranscriptPlayerSeek","yt-transcript-player-replay":"onYtTranscriptPlayerReplay"}};
_.M.attached=function(){this.updatePlayerListening()};
_.M.detached=function(){this.updatePlayerListening()};
_.M.updatePlayerListening=function(){this.isAttached&&this.panelContentVisible?(this.player&&this.stopPlayerListening(),this.startPlayerListening()):this.stopPlayerListening()};
_.M.startPlayerListening=function(){var S=this,p;return _.T(function(U){if(U.nextAddress==1)return(p=_.$L())?_.k(U,p.getPlayerPromise(),2):U.return();S.player=U.yieldResult;S.playerPollJobId=_.PA.addLowPriorityJob(function(){S.getPlayerVideoProgress()},1E3);
S.player.addEventListener("onCueRangeEnter",function(Y){S.onCueRangeEnter(Y)});
S.player.addEventListener("onCueRangeExit",function(Y){S.onCueRangeExit(Y)});
S.player.addEventListener("onStateChange",function(Y){S.onPlayerStateChange(Y)});
S.player.addEventListener("SEEK_TO",function(Y){S.onPlayerSeek(Y)});
_.OV(U)})};
_.M.getPlayerVideoProgress=function(){var S=this;_.PA.cancelJob(this.playerPollJobId);if(this.player){var p=this.player.getCurrentTime();_.St(this.hostElement,"yt-player-time-changed",[p])}this.playerPollJobId=_.PA.addLowPriorityJob(function(){S.getPlayerVideoProgress()},1E3)};
_.M.stopPlayerListening=function(){this.player=null;_.PA.cancelJob(this.playerPollJobId)};
_.M.onPlayerStateChange=function(S){S===2&&this.removePendingCue()};
_.M.onPlayerSeek=function(S){var p;if(p=this.pendingReplayCueId)p=this.pendingReplayCueId,p=S===(_.y("web_transcript_cue_id_killswitch")?Number(p):Number(p.split("_")[1]));p||this.removePendingCue()};
_.M.onCueRangeEnter=function(S){fZq(S)&&(this.pendingReplayCueId=S)};
_.M.onCueRangeExit=function(S){fZq(S)&&this.player&&(this.player.pauseVideo(),this.removePendingCue())};
_.M.removePendingCue=function(){this.player&&this.pendingReplayCueId&&this.player.removeCueRange(this.pendingReplayCueId);this.pendingReplayCueId=void 0};
_.M.onYtTranscriptPlayerSeek=function(S){this.player&&this.player.seekTo(S,!0)};
_.M.onYtTranscriptPlayerReplay=function(S,p){this.player&&(this.player.addCueRange(aZJ(S),S,p),this.player.seekTo(S,!0),this.player.playVideo())};
_.M.onYtTranscriptPlayerEdit=function(S,p){this.player&&(this.player.getPlayerState()===1&&this.player.addCueRange(aZJ(S),S,p),this.player.seekTo(S,!0))};
iC.prototype.onLoadReloadContinuation=iC.prototype.onLoadReloadContinuation;iC.prototype.panelContentVisibleChanged=iC.prototype.panelContentVisibleChanged;_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],iC.prototype,"ytRendererBehavior",void 0);_.x([_.F(_.eL.YtComponentBehavior),_.E("design:type",Object)],iC.prototype,"ytComponentBehavior",void 0);_.x([_.F(_.qH.YtRendererstamperBehavior),_.E("design:type",Object)],iC.prototype,"ytRendererstamperBehavior",void 0);
_.x([_.F(_.Aj.YtActionHandlerBehavior),_.E("design:type",Object)],iC.prototype,"ytActionHandlerBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],iC.prototype,"data",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Boolean)],iC.prototype,"panelContentVisible",void 0);_.x([_.T4("panelContentVisible"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],iC.prototype,"panelContentVisibleChanged",null);
_.x([_.Vd("yt-load-reload-continuation"),_.E("design:type",Function),_.E("design:paramtypes",[Object]),_.E("design:returntype")],iC.prototype,"onLoadReloadContinuation",null);iC=_.x([_.f({disableElementRegistration:!0,is:"ytd-transcript-renderer"})],iC);
_.C(iC,"ytd-transcript-renderer",function(){if(MUY!==void 0)return MUY;var S=document.createElement("template");_.h(S,'\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');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);return MUY=S},{mode:1});var OqJ;var k5P;var Np=function(){return _.w.apply(this,arguments)||this};
_.r(Np,_.w);Np.prototype.onTap=function(){this.data&&(this.data.navigationEndpoint&&_.cv(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint}),this.data.clickCommand&&_.Lp(this.hostElement,[this.data.clickCommand],this.hostElement))};
Np.prototype.computeHideMediaQuery=function(){return"(min-width: 600px) and (max-width: "+((0,_.FK)()+_.wp)+"px)"};
Np.prototype.updateShouldHideFromBinding=function(S){this.shouldHide=S.detail.value};
_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],Np.prototype,"rendererBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],Np.prototype,"data",void 0);_.x([_.g(),_.E("design:type",Boolean)],Np.prototype,"shouldHide",void 0);Np=_.x([_.f({is:"ytd-ad-engagement-panel-banner-renderer",disableElementRegistration:!0})],Np);
_.C(Np,"ytd-ad-engagement-panel-banner-renderer",function(){if(k5P!==void 0)return k5P;var S=document.createElement("template");_.h(S,'\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');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);return k5P=S},{mode:_.UW("kevlar_poly_si_batch_j070")?1:2});var Hqn;var BU=function(){var S=_.w.apply(this,arguments)||this;S.modernPanels=_.y("kevlar_watch_modern_panels");S.buttonUpdate=_.y("web_modern_buttons");S.adsSemanticText=_.y("enable_ads_web_ep_buenos_aires_and_padding_fix");return S};
_.r(BU,_.w);BU.prototype.computeHideDefaultAdBadge=function(){return this.data&&!this.data.badges};
_.x([_.g(),_.E("design:type",Object)],BU.prototype,"data",void 0);_.x([_.g({computed:"computeHideDefaultAdBadge(data)"}),_.E("design:type",Boolean)],BU.prototype,"hideDefaultAdBadge",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],BU.prototype,"modernPanels",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],BU.prototype,"buttonUpdate",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],BU.prototype,"adsSemanticText",void 0);
BU=_.x([_.f({is:"ytd-engagement-panel-ad-subtitle-renderer",disableElementRegistration:!0})],BU);
_.C(BU,"ytd-engagement-panel-ad-subtitle-renderer",function(){if(Hqn!==void 0)return Hqn;var S=document.createElement("template");_.h(S,'\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');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);return Hqn=S},{mode:1});var D5X;var qp=function(){var S=_.w.apply(this,arguments)||this;S.darkerPanels=_.y("web_watch_darker_panels");S.enableSqueezebackPanels=_.y("web_shorts_enable_squeezeback_panels");S.enableAnchoredPanel=_.y("desktop_shorts_v2_anchored_panel");S.modernPanels=_.y("kevlar_watch_modern_panels");S.actionMap={"yt-engagement-panel-header-show-navigation-button-command":"onYtEngagementPanelHeaderShowNavigationButtonCommand"};return S};
_.r(qp,_.w);_.M=qp.prototype;_.M.computeAdsInfoButton=function(){if(_.y("web_modern_buttons")){var S,p;return(p=_.b((S=this.data)==null?void 0:S.subtitleComplex,sv5))==null?void 0:p.adInfoRenderer}};
_.M.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}}}}}};
_.M.collapsedChanged=function(){var S;(S=this.data)!=null&&S.actionButton?this.hideActionButton=this.targetId==="engagement-panel-ads"&&_.y("use_ads_engagement_panel_desktop_footer_cta")?!this.collapsed:!1:this.hideActionButton=!0};
_.M.focus=function(S){this.titleElement&&_.ig(this.titleElement,S)};
_.M.computeTitleAriaLabel=function(S){var p=[];if(S.title){var U,Y;p.push(this.ytRendererBehavior.getSimpleString(S.title)||((U=S.title.accessibility)==null?void 0:(Y=U.accessibilityData)==null?void 0:Y.label))}S.contextualInfo&&p.push(this.ytRendererBehavior.getSimpleString(S.contextualInfo));return p.join(" ")};
_.M.onHeaderClick=function(S){this.shouldTriggerHeaderClick(S)&&this.data&&(this.data.navigationEndpoint||this.data.onClickCommand?(this.data.navigationEndpoint&&_.cv(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint}),this.data.onClickCommand&&_.Lp(this.hostElement,[this.data.onClickCommand],this.hostElement)):(S=this.getVisibilityToggleButton())&&S.click())};
_.M.onVisibilityButtonClick=function(){if(this.data&&this.data.visibilityButton){var S=_.b(this.data.visibilityButton,_.XT)||_.b(this.data.visibilityButton,_.Pj);S&&this.ytRendererBehavior.logExplicitClick(S)}};
_.M.getVisibilityToggleButton=function(){var S=_.tB(this.hostElement).querySelector("#visibility-button").firstElementChild;return(S==null?void 0:S.is)==="ytd-toggle-button-renderer"?S:null};
_.M.shouldTriggerHeaderClick=function(S){return!_.Eo(_.E1(S),this.hostElement,["YTD-MENU-RENDERER","YTD-BUTTON-RENDERER","YTD-TOGGLE-BUTTON-RENDERER"])};
_.M.onYtEngagementPanelHeaderShowNavigationButtonCommand=function(S){S=_.b(S,_.jvA);this.targetId&&(S==null?void 0:S.targetId)===this.targetId&&(S=S.navigationButton)&&this.set("data.navigationButton",S)};
_.$u.Object.defineProperties(qp.prototype,{adsSemanticText:{configurable:!0,enumerable:!0,get:function(){return _.y("enable_ads_web_ep_buenos_aires_and_padding_fix")&&this.targetId==="engagement-panel-ads"}},
isActionButtonHidden:{configurable:!0,enumerable:!0,get:function(){var S;return!!(((S=this.entity)==null?0:S.isActionButtonHidden)||this.hideActionButton)}}});
qp.prototype.collapsedChanged=qp.prototype.collapsedChanged;_.x([_.F(_.Aj.YtActionHandlerBehavior),_.E("design:type",Object)],qp.prototype,"actionHandlerBehavior",void 0);_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],qp.prototype,"ytRendererBehavior",void 0);_.x([_.F(_.qH.YtRendererstamperBehavior),_.E("design:type",Object)],qp.prototype,"ytRendererstamperBehavior",void 0);_.x([_.F(_.Xh),_.E("design:type",Object)],qp.prototype,"ytdReduxBehavior",void 0);
_.x([_.g(),_.E("design:type",Object)],qp.prototype,"data",void 0);_.x([_.g(),_.E("design:type",String)],qp.prototype,"targetId",void 0);_.x([_.g(),_.E("design:type",Boolean)],qp.prototype,"collapsed",void 0);_.x([_.g(),_.E("design:type",Boolean)],qp.prototype,"hideActionButton",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Boolean)],qp.prototype,"shortsPanel",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Boolean)],qp.prototype,"liveChatEngagementPanel",void 0);
_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],qp.prototype,"darkerPanels",void 0);_.x([_.O2("#title"),_.E("design:type",HTMLElement)],qp.prototype,"titleElement",void 0);_.x([_.g({computed:"computeAdsInfoButton(data)"}),_.E("design:type",Object)],qp.prototype,"adsInfoButton",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],qp.prototype,"enableSqueezebackPanels",void 0);
_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],qp.prototype,"enableAnchoredPanel",void 0);_.x([_.g({selectorArgs:["data.engagementPanelTitleHeaderEntityKey"],selector:function(S,p){return _.I4(S.entities,"engagementPanelTitleHeaderEntity",p)}}),
_.E("design:type",Object)],qp.prototype,"entity",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],qp.prototype,"modernPanels",void 0);_.x([_.g({reflectToAttribute:!0}),_.e("targetId"),_.E("design:type",Boolean),_.E("design:paramtypes",[])],qp.prototype,"adsSemanticText",null);_.x([_.z4("collapsed"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],qp.prototype,"collapsedChanged",null);
_.x([_.e("entity","hideActionButton"),_.E("design:type",Boolean),_.E("design:paramtypes",[])],qp.prototype,"isActionButtonHidden",null);qp=_.x([_.f({is:"ytd-engagement-panel-title-header-renderer",disableElementRegistration:!0})],qp);
_.C(qp,"ytd-engagement-panel-title-header-renderer",function(){if(D5X!==void 0)return D5X;var S=document.createElement("template");_.h(S,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-engagement-panel-title-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="banner" aria-hidden="true" class="style-scope ytd-engagement-panel-title-header-renderer"></div>\n<div id="ads-info-button" class="style-scope ytd-engagement-panel-title-header-renderer"></div>\n<div id="header" on-click="onHeaderClick" class="style-scope ytd-engagement-panel-title-header-renderer">\n  <div id="navigation-button" hidden="[[!data.navigationButton]]" class="style-scope ytd-engagement-panel-title-header-renderer"></div>\n  <yt-img-shadow id="icon" hidden="[[!data.icon]]" thumbnail="[[data.icon]]" class="style-scope ytd-engagement-panel-title-header-renderer"></yt-img-shadow>\n  <div id="title-container" class="style-scope ytd-engagement-panel-title-header-renderer">\n    <h2 id="title" aria-label$="[[computeTitleAriaLabel(data)]]" class="style-scope ytd-engagement-panel-title-header-renderer">\n      <yt-formatted-string id="title-text" ellipsis-truncate="" text="[[data.title]]" class="style-scope ytd-engagement-panel-title-header-renderer">\n      </yt-formatted-string>\n      <yt-formatted-string id="contextual-info" hidden="[[!data.contextualInfo]]" text="[[data.contextualInfo]]" class="style-scope ytd-engagement-panel-title-header-renderer">\n      </yt-formatted-string>\n    </h2>\n    <yt-formatted-string id="subtitle" hidden="[[!data.subtitle]]" text="[[data.subtitle]]" class="style-scope ytd-engagement-panel-title-header-renderer">\n    </yt-formatted-string>\n    <ytd-badge-supported-renderer hidden="[[!data.titleBadge]]" top-standalone-badge="[[data.titleBadge]]" class="style-scope ytd-engagement-panel-title-header-renderer">\n    </ytd-badge-supported-renderer>\n    <div id="subtitle-complex" class="style-scope ytd-engagement-panel-title-header-renderer"></div>\n  </div>\n  <div id="action-button" hidden="[[isActionButtonHidden]]" class="style-scope ytd-engagement-panel-title-header-renderer"></div>\n  <div id="information-button" hidden="[[!data.informationButton]]" class="style-scope ytd-engagement-panel-title-header-renderer"></div>\n  <div id="menu" class="style-scope ytd-engagement-panel-title-header-renderer"></div>\n  <div id="visibility-button" on-click="onVisibilityButtonClick" class="style-scope ytd-engagement-panel-title-header-renderer"></div>\n</div>\n<div id="subheader" class="style-scope ytd-engagement-panel-title-header-renderer"></div>\n');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);return D5X=S},{mode:1});var zJq;var Af=function(){return _.w.apply(this,arguments)||this};
_.r(Af,_.w);Af.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.editButton":{id:"edit",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],Af.prototype,"ytRendererBehavior",void 0);_.x([_.F(_.qH.YtRendererstamperBehavior),_.E("design:type",Object)],Af.prototype,"ytRendererstamperBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],Af.prototype,"data",void 0);Af=_.x([_.f({is:"ytd-macro-markers-info-item-renderer",disableElementRegistration:!0})],Af);
_.C(Af,"ytd-macro-markers-info-item-renderer",function(){if(zJq!==void 0)return zJq;var S=document.createElement("template");_.h(S,'\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');
S.content.insertBefore(_.t().content.cloneNode(!0),S.content.firstChild);return zJq=S},{mode:1});var QCY;var yDE=function(S,p,U,Y,L,I){_.hY.call(this);var V=this;this.JSC$20126_containerElement=S;this.hostElement=p;this.supportedSyncItems=U;this.syncEntityKey=Y;this.options=L;this.renderLazyListItems=I;this.activeItemBelowSyncPosition=this.contentVisible=this.browsingMode=!1;nW5(this);JDX(this);this.JSC$20126_scrollAnimation=new _.sY(function(W){S.scrollTop=W});
_.Hm(this,this.JSC$20126_scrollAnimation);this.addOnDisposeCallback(function(){V.exitBrowsingMode(!1);V.activeItem&&V.activeItem.dispatchEvent(new CustomEvent("yt-synced-panel-active-item-update",{detail:{active:!1}}))})};
_.r(yDE,_.hY);var nW5=function(S){var p=_.Wt(_.tW().resolve(_.XF),function(U){return U.entities.markersEngagementPanelSyncEntity||{}},function(U,Y){var L;
U[S.syncEntityKey]!==Y[S.syncEntityKey]&&((L=U[S.syncEntityKey])==null?void 0:L.activeItemIndex)!==void 0&&S.updatePanelActiveItem(U[S.syncEntityKey].activeItemIndex)});
S.unsubscribeFromTimedMarkersListSyncEntity=p;S.addOnDisposeCallback(p);Kd5(S)},Kd5=function(S){var p=_.tW().resolve(_.XF);
p=_.rPE(p.getState(),S.syncEntityKey);(p==null?void 0:p.activeItemIndex)!==void 0&&(p=S.getItemByIndex(p.activeItemIndex))&&S.setActiveItem(p)},JDX=function(S){var p=new _.NB(S.onScroll,50,S);
_.Hm(S,p);var U=function(){p.fire()};
S.JSC$20126_containerElement.addEventListener("scroll",U);S.addOnDisposeCallback(function(){S.JSC$20126_containerElement.removeEventListener("scroll",U)})};
_.M=yDE.prototype;
_.M.updatePanelActiveItem=function(S){var p=this.getItemByIndex(S);if(p){if(this.setActiveItem(p),this.contentVisible)if(this.browsingMode){var U;((U=this.options)==null?void 0:U.floatingPillType)==="FLOATING_PILL_TYPE_MODERN_TRANSCRIPT"&&(S=bqX(this),p.offsetTop<this.JSC$20126_containerElement.clientHeight+this.JSC$20126_containerElement.scrollTop&&S&&!this.activeItemBelowSyncPosition&&this.exitBrowsingMode(!1));jCn(this)}else this.scrollToItem(p)}else _.eP(new _.y7("Could not find "+this.supportedSyncItems+
" sync child to set active.",S,this.JSC$20126_containerElement.querySelectorAll(this.supportedSyncItems).length))};
_.M.getItemByIndex=function(S){var p;(p=this.renderLazyListItems)==null||p.call(this,S);p=this.JSC$20126_containerElement.querySelectorAll(this.supportedSyncItems);if(p.length>S)return p[S]};
_.M.setActiveItem=function(S){this.activeItem&&this.activeItem.dispatchEvent(new CustomEvent("yt-synced-panel-active-item-update",{detail:{active:!1}}));S.dispatchEvent(new CustomEvent("yt-synced-panel-active-item-update",{detail:{active:!0}}));this.activeItem=S};
_.M.scrollToItem=function(S){S=this.getScrollPositionForItem(S);this.JSC$20126_containerElement.scrollTop!==S&&this.JSC$20126_scrollAnimation.start(this.JSC$20126_containerElement.scrollTop,S,300)};
_.M.getScrollPositionForItem=function(S){if(this.JSC$20126_containerElement.querySelectorAll(this.supportedSyncItems)[0]===S)return 0;var p,U=((p=this.options)==null?0:p.percentOffset)?this.JSC$20126_containerElement.clientHeight*this.options.percentOffset:0;S=_.eb(S).y+this.JSC$20126_containerElement.scrollTop-(_.eb(this.JSC$20126_containerElement).y+U);return Math.max(0,Math.min(S,this.JSC$20126_containerElement.scrollHeight-this.JSC$20126_containerElement.offsetHeight))};
_.M.onScroll=function(){this.activeItemBelowSyncPosition=bqX(this);if(this.activeItem&&!this.JSC$20126_scrollAnimation.isAnimating()&&Math.abs(this.JSC$20126_containerElement.scrollTop-this.getScrollPositionForItem(this.activeItem))>10){var S;switch((S=this.options)==null?void 0:S.floatingPillType){case "FLOATING_PILL_TYPE_MODERN_TRANSCRIPT":this.enterBrowsingMode(!rDP(this));jCn(this);break;default:this.enterBrowsingMode(!0)}}};
_.M.enterBrowsingMode=function(S){var p=this,U,Y;return _.T(function(L){if(L.nextAddress==1){if(p.browsingMode)return L.return();p.browsingMode=!0;S&&p.hostElement.classList.add("browsing-mode");p.playerExitBrowsingModeListener=function(){p.exitBrowsingMode(!1)};
return _.k(L,_.p6(),2)}U=L.yieldResult;(Y=U)==null||Y.addEventListener("SEEK_TO",p.playerExitBrowsingModeListener);_.OV(L)})};
_.M.exitBrowsingMode=function(S){S=S===void 0?!0:S;this.browsingMode&&(this.browsingMode=!1,this.hostElement.classList.remove("browsing-mode"),S&&this.scrollToItem(this.activeItem),this.removePlayerSeekListener())};
_.M.removePlayerSeekListener=function(){var S=this,p,U;return _.T(function(Y){if(Y.nextAddress==1)return S.playerExitBrowsingModeListener?_.k(Y,_.p6(),3):Y.jumpTo(0);p=Y.yieldResult;(U=p)==null||U.removeEventListener("SEEK_TO",S.playerExitBrowsingModeListener);S.playerExitBrowsingModeListener=void 0;_.OV(Y)})};
var jCn=function(S){var p;((p=S.options)==null?void 0:p.floatingPillType)==="FLOATING_PILL_TYPE_MODERN_TRANSCRIPT"&&(rDP(S)?S.hostElement.classList.remove("browsing-mode"):S.activeItem&&S.hostElement.classList.add("browsing-mode"))},bqX=function(S){if(!S.activeItem)return!1;
var p,U=((p=S.options)==null?0:p.percentOffset)?S.JSC$20126_containerElement.clientHeight*S.options.percentOffset:0;return S.activeItem.offsetTop>=S.JSC$20126_containerElement.scrollTop+U},rDP=function(S){if(!S.activeItem)return!1;
var p=S.activeItem.offsetTop+14<=S.JSC$20126_containerElement.scrollTop+S.JSC$20126_containerElement.clientHeight;return S.activeItem.offsetTop+S.activeItem.clientHeight-14>=S.JSC$20126_containerElement.scrollTop&&p};
yDE.prototype.panelContentVisibleChanged=function(S){(this.contentVisible=S)&&!this.browsingMode&&this.activeItem&&this.scrollToItem(this.activeItem)};
var G5n=function(S,p){S.syncEntityKey=p;var U;(U=S.unsubscribeFromTimedMarkersListSyncEntity)==null||U.call(S);nW5(S)},hJE=function(S,p){S.options=p};var tf=function(){var S=_.w.apply(this,arguments)||this;S.browsingMode=!1;S.modern=_.y("web_button_rework");S.actionMap={"yt-set-active-panel-item-action":"handleSetActivePanelItemAction"};return S};
_.r(tf,_.w);_.M=tf.prototype;_.M.activeItemChanged=function(){if(!_.y("synced_panel_scrolling_controller")){var S;((S=this.syncEntity)==null?void 0:S.activeItemIndex)!==void 0&&this.updatePanelActiveItem(this.syncEntity.activeItemIndex)}};
_.M.created=function(){var S=this;_.y("synced_panel_scrolling_controller")||(this.JSC$20130_scrollAnimation=new _.sY(function(p){S.contents.scrollTop=p}),this.boundExitBrowsingMode=function(){S.exitBrowsingMode(!1)})};
_.M.detached=function(){if(_.y("synced_panel_scrolling_controller")){var S;(S=this.scrollController)==null||S.dispose();this.scrollController=void 0}else this.removePlayerSeekListener()};
_.M.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"}}}};
_.M.dataChanged=function(){var S=this;_.y("synced_panel_scrolling_controller")?_.oH(this,function(){if(S.scrollController){var p;(p=S.scrollController)==null||p.exitBrowsingMode(!1);var U,Y,L;(Y=S.scrollController)==null||G5n(Y,(L=(U=S.data)==null?void 0:U.syncModelEntityKey)!=null?L:"default-macro-markers-list-renderer-entity-key");var I,V,W;(W=S.scrollController)==null||hJE(W,{percentOffset:(I=S.data)==null?void 0:I.selectedItemAlignmentPercentOffset,floatingPillType:(V=S.data)==null?void 0:V.floatingPillType})}else{var O,
D,z,Q;S.scrollController=new yDE(S.contents,S.hostElement,"ytd-macro-markers-list-item-renderer,macro-markers-panel-item-view-model",(Q=(O=S.data)==null?void 0:O.syncModelEntityKey)!=null?Q:"default-macro-markers-list-renderer-entity-key",{percentOffset:(D=S.data)==null?void 0:D.selectedItemAlignmentPercentOffset,floatingPillType:(z=S.data)==null?void 0:z.floatingPillType},function(J){S.renderLazyListItems(J)})}S.scrollController.panelContentVisibleChanged(!!S.panelContentVisible)}):this.exitBrowsingMode()};
_.M.computeButtonShape=function(){var S=this;if(this.data&&this.data.syncButtonLabel&&this.modern)return{onTap:function(){S.onSyncClick()},
style:"mono",type:"filled",state:"active",size:"S",focused:!1,buttonText:this.ytRendererBehavior.getSimpleString(this.data.syncButtonLabel)}};
_.M.computeSyncEnabled=function(S){return!(S==null||!S.syncButtonLabel)};
_.M.renderLazyListItems=function(S){for(var p=this.contents.children,U=0,Y=0;Y<p.length;Y++){var L=void 0;(L=p[Y].ytLazyListBehavior)==null||L.fillRemainingListItems();var I=void 0,V=void 0;L=_.b((I=this.data)==null?void 0:(V=I.contents)==null?void 0:V[Y],_.mVE);V=I=void 0;if((I=L)==null?0:(V=I.contents)==null?0:V.length)U+=L.contents.length;if(U>=S)break}};
_.M.getItemByIndex=function(S){this.renderLazyListItems(S);var p=this.contents.querySelectorAll("ytd-macro-markers-list-item-renderer,macro-markers-panel-item-view-model");if(p.length>S)return p[S]};
_.M.setActiveItem=function(S){this.currentActiveItem&&this.currentActiveItem.active!==void 0&&(this.currentActiveItem.active=!1);S.active!==void 0&&(S.active=!0);this.currentActiveItem=S};
_.M.handleSetActivePanelItemAction=function(S){if((S=_.b(S,GiA))&&this.panelTargetId===S.panelTargetId){S=S.itemIndex;if(_.y("synced_panel_scrolling_controller")){var p,U;var Y=(U=(p=this.data)==null?void 0:p.syncModelEntityKey)!=null?U:"default-macro-markers-list-renderer-entity-key"}else{var L;Y=(L=this.data)==null?void 0:L.syncModelEntityKey}if(Y){var I;((I=this.syncEntity)==null?void 0:I.activeItemIndex)!==S&&this.ytdReduxBehavior.dispatch(_.WG("markersEngagementPanelSyncEntity",Y,{key:Y,activeItemIndex:S}))}else this.updatePanelActiveItem(S)}};
_.M.updatePanelActiveItem=function(S){var p=this.getItemByIndex(S);p?(this.setActiveItem(p),!this.browsingMode&&this.panelContentVisible&&this.scrollToItem(p)):_.eP(new _.y7("Could not find ytd-macro-markers-list-renderer sync child to set active.",S,this.contents.querySelectorAll("ytd-macro-markers-list-item-renderer,macro-markers-panel-item-view-model").length))};
_.M.scrollToItem=function(S){S=this.getScrollPositionForItem(S);this.contents.scrollTop!==S&&this.JSC$20130_scrollAnimation.start(this.contents.scrollTop,S,300)};
_.M.getScrollPositionForItem=function(S){if(this.contents.querySelectorAll("ytd-macro-markers-list-item-renderer,macro-markers-panel-item-view-model")[0]===S)return 0;S=_.eb(S).y+this.contents.scrollTop-_.eb(this.contents).y-this.getStickyHeaderHeight(S);return Math.min(S,this.contents.scrollHeight-this.contents.offsetHeight)};
_.M.getStickyHeaderHeight=function(S){if(S.nodeName==="MACRO-MARKERS-PANEL-ITEM-VIEW-MODEL"){var p,U,Y;return(Y=(p=S.closest('ytd-item-section-renderer[header-style="sticky-header"]'))==null?void 0:(U=p.header)==null?void 0:U.offsetHeight)!=null?Y:0}return 0};
_.M.onScroll=function(){_.y("synced_panel_scrolling_controller")||(this.ytRendererBehavior.markDirty(),this.syncEnabled&&!this.browsingMode&&this.currentActiveItem&&!this.JSC$20130_scrollAnimation.isAnimating()&&Math.abs(this.contents.scrollTop-this.getScrollPositionForItem(this.currentActiveItem))>10&&this.enterBrowsingMode())};
_.M.enterBrowsingMode=function(){var S=this;return _.T(function(p){if(p.nextAddress==1){if(S.browsingMode)return p.return();S.browsingMode=!0;return _.k(p,_.iZ().getPlayerPromise(),2)}S.player=p.yieldResult;S.player.addEventListener("SEEK_TO",S.boundExitBrowsingMode);_.OV(p)})};
_.M.exitBrowsingMode=function(S){this.browsingMode&&(this.browsingMode=!1,(S===void 0||S)&&this.scrollToItem(this.currentActiveItem),this.removePlayerSeekListener())};
_.M.removePlayerSeekListener=function(){this.player&&(this.player.removeEventListener("SEEK_TO",this.boundExitBrowsingMode),this.player=void 0)};
_.M.onSyncClick=function(){if(_.y("synced_panel_scrolling_controller")){var S;(S=this.scrollController)==null||S.exitBrowsingMode()}else this.exitBrowsingMode()};
_.M.panelContentVisibleChanged=function(){if(_.y("synced_panel_scrolling_controller")){var S;(S=this.scrollController)==null||S.panelContentVisibleChanged(!!this.panelContentVisible)}else this.panelContentVisible&&this.syncEnabled&&!this.browsingMode&&this.currentActiveItem&&this.scrollToItem(this.currentActiveItem)};
tf.prototype.panelContentVisibleChanged=tf.prototype.panelContentVisibleChanged;tf.prototype.dataChanged=tf.prototype.dataChanged;tf.prototype.activeItemChanged=tf.prototype.activeItemChanged;_.x([_.F(_.Aj.YtActionHandlerBehavior),_.E("design:type",Object)],tf.prototype,"actionHandlerBehavior",void 0);_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],tf.prototype,"ytRendererBehavior",void 0);
_.x([_.F(_.qH.YtRendererstamperBehavior),_.E("design:type",Object)],tf.prototype,"ytRendererstamperBehavior",void 0);_.x([_.F(_.Xh),_.E("design:type",Object)],tf.prototype,"ytdReduxBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],tf.prototype,"data",void 0);_.x([_.g({value:!1,reflectToAttribute:!0}),_.E("design:type",Boolean)],tf.prototype,"useCustomColors",void 0);_.x([_.g({computed:"computeSyncEnabled(data)"}),_.E("design:type",Boolean)],tf.prototype,"syncEnabled",void 0);
_.x([_.g({reflectToAttribute:!0}),_.E("design:type",String)],tf.prototype,"panelTargetId",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Boolean)],tf.prototype,"panelContentVisible",void 0);_.x([_.O2("#contents"),_.E("design:type",HTMLElement)],tf.prototype,"contents",void 0);_.x([_.O2("#sync-container"),_.E("design:type",HTMLElement)],tf.prototype,"syncContainer",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],tf.prototype,"browsingMode",void 0);
_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Boolean)],tf.prototype,"modern",void 0);_.x([_.g({selectorArgs:["data.syncModelEntityKey"],selector:_.rPE}),_.E("design:type",Object)],tf.prototype,"syncEntity",void 0);_.x([_.T4("syncEntity.activeItemIndex"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],tf.prototype,"activeItemChanged",null);
_.x([_.z4("data"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],tf.prototype,"dataChanged",null);_.x([_.T4("panelContentVisible"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],tf.prototype,"panelContentVisibleChanged",null);tf=_.x([_.f({is:"ytd-macro-markers-list-renderer",disableElementRegistration:!0})],tf);
_.C(tf,"ytd-macro-markers-list-renderer",function(){if(QCY!==void 0)return QCY;var S=document.createElement("template");_.h(S,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-macro-markers-list-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="contents" on-scroll="onScroll" class="style-scope ytd-macro-markers-list-renderer"></div>\n<div id="sync-container" hidden="[[!syncEnabled]]" class="style-scope ytd-macro-markers-list-renderer">\n  <tp-yt-paper-button id="sync-button" disable-upgrade="[[modern]]" hidden="[[modern]]" on-click="onSyncClick" class="style-scope ytd-macro-markers-list-renderer">\n    [[getSimpleString(data.syncButtonLabel)]]\n  </tp-yt-paper-button>\n  <yt-button-shape id="sync-button-modern" data="[[computeButtonShape(data)]]" disable-upgrade="[[!modern]]" hidden="[[!modern]]" class="style-scope ytd-macro-markers-list-renderer">\n  </yt-button-shape>\n</div>\n');
S.content.insertBefore(_.t().content.cloneNode(!0),S.content.firstChild);return QCY=S},{mode:1});var RJT;var cU=function(){return _.w.apply(this,arguments)||this};
_.r(cU,_.w);_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],cU.prototype,"ytRendererBehavior",void 0);_.x([_.F(_.eL.YtComponentBehavior),_.E("design:type",Object)],cU.prototype,"ytComponentBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],cU.prototype,"data",void 0);cU=_.x([_.f({is:"ytd-error-corrections-section-item-renderer",disableElementRegistration:!0})],cU);
_.C(cU,"ytd-error-corrections-section-item-renderer",function(){if(RJT!==void 0)return RJT;var S=document.createElement("template");_.h(S,'\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');
S.content.insertBefore(_.t().content.cloneNode(!0),S.content.firstChild);return RJT=S},{mode:1});var FdP;var S6=function(){return _.w.apply(this,arguments)||this};
_.r(S6,_.w);S6.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{errorCorrectionsSectionItemRenderer:"ytd-error-corrections-section-item-renderer"}}}};
_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],S6.prototype,"ytRendererBehavior",void 0);_.x([_.F(_.eL.YtComponentBehavior),_.E("design:type",Object)],S6.prototype,"ytComponentBehavior",void 0);_.x([_.F(_.qH.YtRendererstamperBehavior),_.E("design:type",Object)],S6.prototype,"ytRendererstamperBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],S6.prototype,"data",void 0);S6=_.x([_.f({is:"ytd-error-corrections-section-renderer",disableElementRegistration:!0})],S6);
_.C(S6,"ytd-error-corrections-section-renderer",function(){if(FdP!==void 0)return FdP;var S=document.createElement("template");_.h(S,'\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');
S.content.insertBefore(_.t().content.cloneNode(!0),S.content.firstChild);return FdP=S},{mode:1});var X6A;var py=function(){return _.w.apply(this,arguments)||this};
_.r(py,_.w);_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],py.prototype,"ytRendererBehavior",void 0);_.x([_.F(_.eL.YtComponentBehavior),_.E("design:type",Object)],py.prototype,"componentBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],py.prototype,"data",void 0);py=_.x([_.f({is:"ytd-topic-link-renderer",disableElementRegistration:!0})],py);
_.C(py,"ytd-topic-link-renderer",function(){if(X6A!==void 0)return X6A;var S=document.createElement("template");_.h(S,'\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');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);return X6A=S},{mode:1});var P0E;var Ue=function(){var S=_.w.apply(this,arguments)||this;S.modern=_.y("kevlar_modern_sd_v2");S.modernLockupV2=_.y("modernize_structured_description_playlist_lockups_v2");S.modernTypography=_.y("web_modern_typography");return S};
_.r(Ue,_.w);Ue.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"}}}};
_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],Ue.prototype,"ytRendererBehavior",void 0);_.x([_.F(_.qH.YtRendererstamperBehavior),_.E("design:type",Object)],Ue.prototype,"ytRendererstamperBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],Ue.prototype,"data",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],Ue.prototype,"modern",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],Ue.prototype,"modernLockupV2",void 0);
_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],Ue.prototype,"modernTypography",void 0);Ue=_.x([_.f({is:"ytd-video-description-course-section-renderer",disableElementRegistration:!0})],Ue);
_.C(Ue,"ytd-video-description-course-section-renderer",function(){if(P0E!==void 0)return P0E;var S=document.createElement("template");_.h(S,'\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');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);return P0E=S},{mode:1});var Zqo;var YN=function(){var S=_.w.apply(this,arguments)||this;S.modern=_.y("kevlar_modern_sd_v2");S.modernTypography=_.y("web_modern_typography");return S};
_.r(YN,_.w);YN.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"}}}};
_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],YN.prototype,"ytRendererBehavior",void 0);_.x([_.F(_.qH.YtRendererstamperBehavior),_.E("design:type",Object)],YN.prototype,"ytRendererstamperBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],YN.prototype,"data",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],YN.prototype,"modern",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],YN.prototype,"modernTypography",void 0);
YN=_.x([_.f({is:"ytd-video-description-files-section-renderer",disableElementRegistration:!0})],YN);
_.C(YN,"ytd-video-description-files-section-renderer",function(){if(Zqo!==void 0)return Zqo;var S=document.createElement("template");_.h(S,'\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');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);return Zqo=S},{mode:1});var sCn;var Ly=function(){return _.w.apply(this,arguments)||this};
_.r(Ly,_.w);Ly.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"}}}};
_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],Ly.prototype,"ytRendererBehavior",void 0);_.x([_.F(_.qH.YtRendererstamperBehavior),_.E("design:type",Object)],Ly.prototype,"ytRendererstamperBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],Ly.prototype,"data",void 0);Ly=_.x([_.f({is:"ytd-video-description-gaming-section-renderer",disableElementRegistration:!0})],Ly);
_.C(Ly,"ytd-video-description-gaming-section-renderer",function(){if(sCn!==void 0)return sCn;var S=document.createElement("template");_.h(S,'\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');
S.content.insertBefore(_.t().content.cloneNode(!0),S.content.firstChild);return sCn=S},{mode:1});var eJn;var M8=function(){var S=_.w.apply(this,arguments)||this;S.isExpanded=!1;return S};
_.r(M8,_.w);M8.prototype.computeHasDefaultMetadataEndpoint=function(S){var p;S=S==null?void 0:(p=S.defaultMetadata)==null?void 0:p.runs;return!(!S||S.length!==1||!S[0].navigationEndpoint)};
M8.prototype.onRowExpand=function(){this.isExpandable&&!this.isExpanded&&(this.isExpanded=!0)};
_.$u.Object.defineProperties(M8.prototype,{isExpandable:{configurable:!0,enumerable:!0,get:function(){var S;return!((S=this.data)==null||!S.expandedMetadata)}},
showExpandedMetadata:{configurable:!0,enumerable:!0,get:function(){return!(!this.isExpandable||!this.isExpanded)}}});
_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],M8.prototype,"ytRendererBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],M8.prototype,"data",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],M8.prototype,"isExpanded",void 0);_.x([_.g({computed:"computeHasDefaultMetadataEndpoint(data)",reflectToAttribute:!0}),_.E("design:type",Boolean)],M8.prototype,"hasDefaultMetadataEndpoint",void 0);
_.x([_.e("data"),_.E("design:type",Boolean),_.E("design:paramtypes",[])],M8.prototype,"isExpandable",null);_.x([_.e("data","isExpandable","isExpanded"),_.E("design:type",Boolean),_.E("design:paramtypes",[])],M8.prototype,"showExpandedMetadata",null);M8=_.x([_.f({is:"ytd-info-row-renderer",disableElementRegistration:!0})],M8);
_.C(M8,"ytd-info-row-renderer",function(){if(eJn!==void 0)return eJn;var S=document.createElement("template");_.h(S,'\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');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);return eJn=S},{mode:1});var gWE;var IM=function(){var S=_.w.apply(this,arguments)||this;S.currentIndex=0;S.supportComponentResize=!0;S.modern=_.y("kevlar_modern_sd_v2");S.JSC$20156_lastScrollContainerWidth=NaN;return S};
_.r(IM,_.w);_.M=IM.prototype;
_.M.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"}}}};
_.M.getItemsPath=function(){return"videoLockups"};
_.M.hiddenChanged=function(){this.contentHidden||this.updateVideoLockupStyles()};
_.M.onIronResize=function(){this.updateVideoLockupStyles()};
_.M.dataChanged=function(){this.updateVideoLockupStyles();this.ytdHorizontalListBehavior.reset()};
_.M.updateVideoLockupStyles=function(){var S;this.JSC$20156_scrollContainer!==void 0&&(S=this.videoLockups)!=null&&S.length&&(S=this.JSC$20156_scrollContainer.clientWidth,S!==this.JSC$20156_lastScrollContainerWidth&&(this.JSC$20156_lastScrollContainerWidth=S,_.Ms(this.hostElement,{"--ytd-compact-video-renderer-width":Math.min(S*.8,415)+"px"}),_.cv(this.hostElement,"iron-resize")))};
_.$u.Object.defineProperties(IM.prototype,{videoLockups:{configurable:!0,enumerable:!0,get:function(){var S=[],p;if((p=this.data)==null||!p.carouselLockups)return S;p=_.d(this.data.carouselLockups);for(var U=p.next();!U.done;U=p.next()){U=U.value;var Y=void 0;((Y=_.b(U,SZt))==null?0:Y.videoLockup)&&S.push(_.b(U,SZt).videoLockup)}return S}},
hasVideoLockups:{configurable:!0,enumerable:!0,get:function(){var S;return!((S=this.videoLockups)==null||!S.length)}},
infoRows:{configurable:!0,enumerable:!0,get:function(){var S=[],p;if((p=this.data)==null||!p.carouselLockups)return S;var U;return(U=_.b(this.data.carouselLockups[this.scrollCount],SZt))==null?void 0:U.infoRows}}});
IM.prototype.dataChanged=IM.prototype.dataChanged;IM.prototype.onIronResize=IM.prototype.onIronResize;IM.prototype.hiddenChanged=IM.prototype.hiddenChanged;_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],IM.prototype,"ytRendererBehavior",void 0);_.x([_.F(_.eL.YtComponentBehavior),_.E("design:type",Object)],IM.prototype,"componentBehavior",void 0);_.x([_.F(_.A6.YtdHorizontalListBehavior),_.E("design:type",Object)],IM.prototype,"ytdHorizontalListBehavior",void 0);
_.x([_.F(_.qH.YtRendererstamperBehavior),_.E("design:type",Object)],IM.prototype,"ytRendererstamperBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],IM.prototype,"data",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Boolean)],IM.prototype,"inlineStructuredDescription",void 0);_.x([_.g({value:2}),_.E("design:type",Number)],IM.prototype,"initialCount",void 0);_.x([_.g(),_.E("design:type",Object)],IM.prototype,"currentIndex",void 0);
_.x([_.g(),_.E("design:type",Number)],IM.prototype,"scrollCount",void 0);_.x([_.g(),_.E("design:type",Object)],IM.prototype,"supportComponentResize",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Boolean)],IM.prototype,"contentHidden",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],IM.prototype,"modern",void 0);_.x([_.O2("#scroll-container"),_.E("design:type",HTMLDivElement)],IM.prototype,"JSC$20156_scrollContainer",void 0);
_.x([_.T4("contentHidden"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],IM.prototype,"hiddenChanged",null);_.x([_.e("data"),_.E("design:type",Array),_.E("design:paramtypes",[])],IM.prototype,"videoLockups",null);_.x([_.e("videoLockups"),_.E("design:type",Boolean),_.E("design:paramtypes",[])],IM.prototype,"hasVideoLockups",null);
_.x([_.Vd("iron-resize"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],IM.prototype,"onIronResize",null);_.x([_.e("data","scrollCount"),_.E("design:type",Object),_.E("design:paramtypes",[])],IM.prototype,"infoRows",null);_.x([_.z4("data"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],IM.prototype,"dataChanged",null);IM=_.x([_.f({is:"ytd-video-description-music-section-renderer",disableElementRegistration:!0})],IM);
_.C(IM,"ytd-video-description-music-section-renderer",function(){if(gWE!==void 0)return gWE;var S=document.createElement("template");_.h(S,'\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');
S.content.insertBefore(_.t().content.cloneNode(!0),S.content.firstChild);return gWE=S},{mode:_.UW("kevlar_poly_si_batch_j081")?1:2});var uxT;var du=function(){var S=_.w.apply(this,arguments)||this;S.modern=_.y("kevlar_modern_sd_v2");S.modernTypography=_.y("web_modern_typography");return S};
_.r(du,_.w);du.prototype.configureRendererStamper=function(){return{"data.primaryButton":{id:"primary-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.x([_.F(_.qH.YtRendererstamperBehavior),_.E("design:type",Object)],du.prototype,"ytRendererstamperBehavior",void 0);_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],du.prototype,"ytRendererBehavior",void 0);_.x([_.g({}),_.E("design:type",Object)],du.prototype,"data",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],du.prototype,"modern",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],du.prototype,"modernTypography",void 0);
du=_.x([_.f({is:"ytd-video-description-transcript-section-renderer",disableElementRegistration:!0})],du);
_.C(du,"ytd-video-description-transcript-section-renderer",function(){if(uxT!==void 0)return uxT;var S=document.createElement("template");_.h(S,'\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');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);return uxT=S},{mode:1});var w6E;_.qm(_.$k(function(S){var p=_.Ty(_.g4w,function(){return S.data().firstProviderLinkStatusEntityKey}),U=_.Ty(_.g4w,function(){return S.data().secondProviderLinkStatusEntityKey}),Y=function(){var L,I;
return((L=p())==null?void 0:L.linked)||((I=U())==null?void 0:I.linked)};
return _.H("ytw-video-description-fantasy-section-view-model",{class:"ytwVideoDescriptionFantasySectionViewModelHost"},_.H(_.i6,{className:"ytwVideoDescriptionFantasySectionViewModelTitle",text:function(){return S.data().sectionTitle}}),_.H(_.i6,{className:"ytwVideoDescriptionFantasySectionViewModelMessage",
text:function(){return Y()?S.data().connectedMessage:S.data().notConnectedMessage}}),_.H(_.n,{cond:Y,
then:function(){return _.H(_.yP,{data:function(){return S.data().connectedButton}},{buttonViewModel:function(L){return _.H(_.PG,{data:L.data,
className:"ytwVideoDescriptionFantasySectionViewModelButton"})}})}}),_.H(_.n,{cond:function(){return!Y()},
then:function(){return _.H(_.yP,{data:function(){return S.data().notConnectedButton}},{buttonViewModel:function(L){return _.H(_.PG,{data:L.data,
className:"ytwVideoDescriptionFantasySectionViewModelButton"})}})}}))},"Qi"),"ytw-video-description-fantasy-section-view-model",{props:{data:_.x2}});_.qm(_.$k(function(S){var p=S.data;return _.H("how-this-was-made-section-view-model",{class:"ytwHowThisWasMadeSectionViewModelHost",tabindex:-1},_.H("div",{class:"ytwHowThisWasMadeSectionViewModelSectionTitle"},_.H(_.i6,{text:function(){return p().sectionTitle}})),_.H("div",{class:"ytwHowThisWasMadeSectionViewModelBodyHeader"},_.H(_.i6,{text:function(){return p().bodyHeader}})),_.H("div",{class:"ytwHowThisWasMadeSectionViewModelBodyText"},_.H(_.i6,{text:function(){return p().bodyText}})),_.H(_.n,
{cond:function(){return p().attributionText},
then:function(){return _.H("div",{class:"ytwHowThisWasMadeSectionViewModelAttributionText"},_.H(_.i6,{text:function(){return p().attributionText}}))}}))},"Ri"),"how-this-was-made-section-view-model",{props:{data:_.x2}});_.qm(_.$k(function(S){return _.H("yt-video-description-youchat-section-view-model",{class:_.VD("ytVideoDescriptionYouchatSectionViewModelHost")},_.H("div",{class:"ytVideoDescriptionYouchatSectionViewModelSectionTitle"},_.H(_.i6,{text:function(){return S.data().sectionTitle}})),_.H("div",{class:"ytVideoDescriptionYouchatSectionViewModelSubHeaderText"},_.H(_.i6,{text:function(){return S.data().subHeaderText}})),_.H("div",{class:"ytVideoDescriptionYouchatSectionViewModelPrimaryButton"},_.H(_.PG,{data:function(){return _.b(S.data().primaryButton,
_.K6)}})))},"Si"),"yt-video-description-youchat-section-view-model",{props:{data:_.x2}});var V$=function(){var S=_.w.apply(this,arguments)||this;S.modern=_.y("kevlar_modern_sd_v2");S.actionMap={"yt-set-active-panel-item-action":"handleSetActiveItemAction"};return S};
_.r(V$,_.w);_.M=V$.prototype;
_.M.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}}}}}};
_.M.panelContentVisibleChanged=function(){this.description&&(this.description.panelContentVisible=this.panelContentVisible)};
_.M.dataChanged=function(){var S,p;this.hasDescriptionOnly=!(((S=this.data)==null?void 0:(p=S.items)==null?void 0:p.length)!==1||!_.b(this.data.items[0],pbA))};
_.M.onHiddenChanged=function(){this.musicMetadataSection&&(this.musicMetadataSection.contentHidden=this.hidden);this.hidden||this.resize()};
_.M.onYtExpanderMoreTapped=function(){this.autoFocusDescription()};
_.M.autoFocusDescription=function(){var S;((S=_.tW().resolve(_.AW(_.SN)))==null?0:S.isKeyBoardInUse())&&this.description&&_.Nz(this.description)};
_.M.resize=function(){if(_.y("kevlar_disable_sd_resize"))this.JSC$20164_cardList&&_.cv(this.JSC$20164_cardList,"iron-resize"),this.problemWalkthroughCardList&&_.cv(this.problemWalkthroughCardList,"iron-resize"),this.musicMetadataSection&&_.cv(this.musicMetadataSection,"iron-resize");else if(this.ironResizableBehavior.notifyResize(),this.shelfSection)this.shelfSection.onParentResize()};
_.M.scrollToSection=function(S){if(S=this.getSectionElement(S))_.St(this.hostElement,"yt-scroll-to-watch-element",[S]),S.focus()};
_.M.getSectionElement=function(S){switch(S){case "infocards-item-section":var p;return(p=this.infocardsSection)!=null?p:null;case "transcript-item-section":var U;return(U=this.transcriptSection)!=null?U:null;case "how-this-was-made-section-item-section":var Y;return(Y=this.howThisWasMadeSection)!=null?Y:null;case "files-item-section":var L;return(L=this.filesSection)!=null?L:null;default:return null}};
_.M.handleSetActiveItemAction=function(S){var p=_.b(S,GiA),U=p&&(p==null?void 0:p.panelTargetId)==="engagement-panel-macro-markers-problem-walkthroughs"?this.problemWalkthroughCardList:this.JSC$20164_cardList;if(p&&U){S=this.currentActiveChapter;var Y=this.currentActiveProblem;p=U==null?void 0:U.getItemByIndex(p.itemIndex);var L=U=!0;p&&(p.active=!0,p.carouselType==="MACRO_MARKERS_LIST_ITEM_RENDERER_CAROUSEL_TYPE_DEFAULT"?(U=S!==p,L=!1,this.currentActiveChapter=p):(p==null?void 0:p.carouselType)===
"MACRO_MARKERS_LIST_ITEM_RENDERER_CAROUSEL_TYPE_TEXT_ONLY"&&(U=!1,L=Y!==p,this.currentActiveProblem=p));S&&U&&(S.active=!1);Y&&L&&(Y.active=!1)}};
_.$u.Object.defineProperties(V$.prototype,{showVideoSummary:{configurable:!0,enumerable:!0,get:function(){return _.y("web_watch_move_summary_to_sd")&&!!this.videoSummary}}});
V$.prototype.onYtExpanderMoreTapped=V$.prototype.onYtExpanderMoreTapped;V$.prototype.onHiddenChanged=V$.prototype.onHiddenChanged;V$.prototype.dataChanged=V$.prototype.dataChanged;V$.prototype.panelContentVisibleChanged=V$.prototype.panelContentVisibleChanged;_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],V$.prototype,"ytRendererBehavior",void 0);_.x([_.F(_.qH.YtRendererstamperBehavior),_.E("design:type",Object)],V$.prototype,"ytRendererstamperBehavior",void 0);
_.x([_.F(_.Aj.YtActionHandlerBehavior),_.E("design:type",Object)],V$.prototype,"actionHandlerBehavior",void 0);_.x([_.F(_.ji),_.E("design:type",Object)],V$.prototype,"ironResizableBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],V$.prototype,"data",void 0);_.x([_.g(),_.E("design:type",Boolean)],V$.prototype,"panelContentVisible",void 0);_.x([_.g(),_.E("design:type",Boolean)],V$.prototype,"hasDescriptionOnly",void 0);
_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Boolean)],V$.prototype,"inlineStructuredDescription",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Boolean)],V$.prototype,"hidden",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Boolean)],V$.prototype,"shortsPanel",void 0);_.x([_.g(),_.E("design:type",Object)],V$.prototype,"videoSummary",void 0);_.x([_.g(),_.E("design:type",Object)],V$.prototype,"merchShelf",void 0);
_.x([_.e("videoSummary"),_.E("design:type",Boolean),_.E("design:paramtypes",[])],V$.prototype,"showVideoSummary",null);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],V$.prototype,"modern",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Boolean)],V$.prototype,"engagementPanel",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Boolean)],V$.prototype,"watchWhileSdp",void 0);
_.x([_.O2("ytd-expandable-video-description-body-renderer"),_.E("design:type",Object)],V$.prototype,"description",void 0);_.x([_.O2("ytd-horizontal-card-list-renderer"),_.E("design:type",Object)],V$.prototype,"JSC$20164_cardList",void 0);_.x([_.O2("ytd-horizontal-card-list-renderer[center-items]"),_.E("design:type",Object)],V$.prototype,"problemWalkthroughCardList",void 0);_.x([_.O2("ytd-shelf-renderer"),_.E("design:type",Object)],V$.prototype,"shelfSection",void 0);
_.x([_.O2("ytd-video-description-music-section-renderer"),_.E("design:type",Object)],V$.prototype,"musicMetadataSection",void 0);_.x([_.O2("ytd-video-description-infocards-section-renderer"),_.E("design:type",Object)],V$.prototype,"infocardsSection",void 0);_.x([_.O2("ytd-video-description-transcript-section-renderer"),_.E("design:type",Object)],V$.prototype,"transcriptSection",void 0);
_.x([_.O2("how-this-was-made-section-view-model"),_.E("design:type",Object)],V$.prototype,"howThisWasMadeSection",void 0);_.x([_.O2("ytd-video-description-files-section-renderer"),_.E("design:type",Object)],V$.prototype,"filesSection",void 0);_.x([_.T4("panelContentVisible"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],V$.prototype,"panelContentVisibleChanged",null);
_.x([_.T4("data"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],V$.prototype,"dataChanged",null);_.x([_.T4("hidden"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],V$.prototype,"onHiddenChanged",null);_.x([_.Vd("yt-expander-more-tapped"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],V$.prototype,"onYtExpanderMoreTapped",null);
V$=_.x([_.f({is:"ytd-structured-description-content-renderer",disableElementRegistration:!0})],V$);
_.C(V$,"ytd-structured-description-content-renderer",function(){if(w6E!==void 0)return w6E;var S=document.createElement("template");_.h(S,'\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');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);return w6E=S},{mode:2});var lJ5;var aJt;var TL=function(){return _.w.apply(this,arguments)||this};
_.r(TL,_.w);TL.prototype.computeAriaLabel=function(S){var p,U;return(S==null?void 0:(p=S.accessibility)==null?void 0:(U=p.accessibilityData)==null?void 0:U.label)||_.Oh("LOADING",void 0,"Loading")};
_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],TL.prototype,"ytRendererBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],TL.prototype,"data",void 0);_.x([_.g({computed:"computeAriaLabel(data)"}),_.E("design:type",String)],TL.prototype,"ariaLabel",void 0);TL=_.x([_.FB({disableElementRegistration:!0,is:"yt-content-loading-renderer"})],TL);
_.C(TL,"yt-content-loading-renderer",function(){if(aJt===void 0){var S=document.createElement("template");_.h(S,'\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');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);var p=S.content,U=p.insertBefore;lJ5===void 0&&(lJ5=document.createElement("template"));var Y=lJ5;U.call(p,Y.content.cloneNode(!0),S.content.firstChild);aJt=S}S=aJt;return S},{mode:_.UW("kevlar_poly_si_batch_j043")?1:2});_.qm(_.$k(function(S){var p=_.d(_.kj(!1,void 0,"WbYeXc")),U=p.next().value,Y=p.next().value;p=_.d(_.kj(!1,void 0,"msXkzc"));var L=p.next().value,I=p.next().value;_.FM(function(){var O=_.b(S.data().collaboratePlaylistCollaborationSetting,opX);O&&Y(O.switchedOnByDefault);var D=_.b(S.data().allowNewCollaboratorsPlaylistCollaborationSetting,opX);D&&I(D.switchedOnByDefault);if(!O&&!D||!O&&S.data().collaborationType==="COLLABORATION_TYPE_TASTE_MATCH")Y(!0),I(!0)});
var V=function(O){Y(O);I(O);var D=S.data().playlistCollaborationEntityKey||"";var z=_.xk().getState();(z=_.I4(z.entities,"playlistCollaborationEntity",D))&&(z==null?void 0:z.isCollaborative)===O||_.xk().dispatch(_.WG("playlistCollaborationEntity",D,Object.assign({},z,{isCollaborative:O})))},W=function(O){I(O)};
return _.H("playlist-collaboration-view-model",{class:"ytPlaylistCollaborationViewModelHost"},_.H("div",{class:"ytPlaylistCollaborationViewModelSwitchListItemViewModelWrapper"},_.H(_.yP,{data:function(){return S.data().collaboratePlaylistCollaborationSetting}},{switchListItemViewModel:function(O){return _.H(_.X6e,{data:O.data,
onSwitch:V})}})),_.H(_.n,{cond:U,
then:function(){return _.H("div",null,_.H("div",{class:"ytPlaylistCollaborationViewModelSwitchListItemViewModelWrapper"},_.H(_.yP,{data:function(){return S.data().allowNewCollaboratorsPlaylistCollaborationSetting}},{switchListItemViewModel:function(O){return _.H(_.X6e,{data:O.data,
onSwitch:W,overrideDisabled:!1})}})),_.H(_.n,{cond:L,
then:function(){return _.H("div",{class:"ytPlaylistCollaborationViewModelButtonViewModelWrapper"},_.H(_.yP,{data:function(){return S.data().copyLinkButton}},{buttonViewModel:_.PG}))}}),_.H("div",{class:"ytPlaylistCollaborationViewModelContentListItemViewModelWrapper"},_.H(_.yP,{data:function(){return S.data().playlistCollaborators}},{contentListItemViewModel:_.ITE})))}}))},"Ti"),"playlist-collaboration-view-model",{props:{data:_.x2}});var fJX=_.$k(function(S){var p=S.data;var U=S.customCommandResolver;return _.H(_.U0,null,_.H("div",{class:"ytwAdAvatarLockupViewModelHostAvatarStyleCompact"},_.H(_.yP,{data:function(){return p().adAvatar}},{adAvatarViewModel:function(Y){return _.H(_.nom,{data:Y.data,
customCommandResolver:U})}})),_.H("div",{class:"ytwAdAvatarLockupViewModelHostTextsStyleCompact"},_.H(_.n,{cond:function(){return p().headline},
then:function(Y){return _.H(_.i6,{text:Y,className:function(){return"ytwAdAvatarLockupViewModelHostTextsStyleCompactHeadlineWidthUnlocked"}})}}),_.H("div",{class:function(){return"ytwAdAvatarLockupViewModelHostTextsStyleCompactDescriptionWidthUnlocked"}},_.H(_.yP,{data:function(){return p().adBadge}},{adBadgeViewModel:function(Y){return _.H(_.AQ,{data:Y.data,
hasDot:function(){return p().primaryDetailsLine!==void 0},
customCommandResolver:U,adRenderingContextType:function(){return"AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"}})}}),_.H(_.yP,{data:function(){return p().primaryDetailsLine}},{adDetailsLineViewModel:function(Y){return _.H(_.tQ,{data:Y.data,
customCommandResolver:U,adRenderingContextType:function(){return"AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"}})}}))))},"Ui"),C0J=_.$k(function(S){var p=S.data;
var U=S.customCommandResolver;S=_.vH();_.mL(S,function(){return p().interaction},U);
_.tU(S,{visibilityCallback:function(Y){var L,I=(L=p().interaction)==null?void 0:L.onFirstVisible;Y&&I&&_.wx(I)},
showOption:_.$P});return _.H("ad-avatar-lockup-view-model",{class:function(){var Y;return((Y=p().interaction)==null?0:Y.onTap)?"ytwAdAvatarLockupViewModelHostIsClickableAdComponent":"ytwAdAvatarLockupViewModelHost"},
el:S,"aria-label":function(){var Y,L;return(Y=p().interaction)==null?void 0:(L=Y.accessibility)==null?void 0:L.label}},_.H(_.r7,null,_.H(_.bb,{when:function(){return p().style==="AD_AVATAR_LOCKUP_STYLE_COMPACT"}},function(){return _.H(fJX,{data:p,
customCommandResolver:U})}),_.H(_.jn,null,function(){return null})))},"Vi");_.qm(_.$k(function(S){var p=S.data;var U=S.panelContentVisibility;S=_.vH();_.mL(S,function(){return p().interaction},C_s);
_.tU(S,{visibilityCallback:function(L){var I,V=(I=p().interaction)==null?void 0:I.onFirstVisible;L&&V&&_.wx(V)},
showOption:_.$P});_.Zg(function(){var L,I;if(I=_.ad("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction")){var V;I=(V=I())==null?void 0:V.onLayoutVisibleCallback}else I=null;(L=I)==null||L()});
var Y=function(){return U()==="ENGAGEMENT_PANEL_VISIBILITY_COLLAPSED"};
return _.H("panel-ad-header-image-lockup-view-model",{class:"ytwPanelAdHeaderImageLockupViewModelHost",el:S},_.H("div",{class:"ytwPanelAdHeaderImageLockupViewModelHostHeader"},_.H("div",{class:"ytwPanelAdHeaderImageLockupViewModelHostHeaderBannerImage"},_.H(_.n,{cond:_.wZu("(min-width: "+((0,_.FK)()+_.wp)+"px) or (max-width: 600px)"),then:function(){return _.H(_.yP,{data:function(){return p().adImage}},{adImageViewModel:function(L){return _.H(_.dy,{data:L.data,
targetHeight:80,customCommandResolver:C_s})}})}})),_.H("div",{class:"ytwPanelAdHeaderImageLockupViewModelHostHeaderMetadata"},_.H("div",{class:"ytwPanelAdHeaderImageLockupViewModelHostHeaderMetadataAvatarLockup"},_.H(_.yP,{data:function(){return p().adAvatarLockup}},{adAvatarLockupViewModel:function(L){return _.H(C0J,{data:L.data,
customCommandResolver:C_s})}})),_.H(_.n,{cond:Y,
then:function(){return _.H(_.yP,{data:function(){return p().adButton}},{adButtonViewModel:function(L){return _.H(_.Nf,{data:L.data,
customCommandResolver:C_s})}})},
else:function(){return _.H(_.yP,{data:function(){return p().menu}},{buttonViewModel:_.PG})}}),_.H("div",{class:"ytwPanelAdHeaderImageLockupViewModelHostHeaderMetadataMenu"},_.H(_.yP,{data:function(){var L=_.b(p().toggleButton,_.b6);
return{toggleButtonViewModel:Object.assign({},L,{isTogglingDisabled:!0,isToggled:Y()})}}},{toggleButtonViewModel:_.jS})))))},"Wi"),"panel-ad-header-image-lockup-view-model",{props:{data:_.x2,
panelContentVisibility:_.x2}});_.qm(_.$k(function(S){var p=function(){return _.b(S.data().inputComposerViewModel,vpL)},U=function(){var G;
return((G=p())==null?void 0:G.youchatPendingResponseEntityKey)||""},Y=_.Ty(_.R1P,U),L=function(){var G;
return!((G=Y())==null||!G.isPendingResponse)},I=_.d(_.kj(!0,void 0,"DR0q1d")),V=I.next().value,W=I.next().value,O=function(){return p().sectionTargetId||"youchat_messages_section"};
I=_.$v();var D=_.vH(),z=_.Ty(XuL,"chat_input_view_model_state"),Q=P_d(),J=function(){var G;return!((G=z())==null||!G.value)};
_.FM(function(){var G;!J()&&((G=p())==null?0:G.welcomeFeatureContinuation)&&(G={continuationCommand:{token:p().welcomeFeatureContinuation,request:"CONTINUATION_REQUEST_TYPE_GET_PANEL"}},_.eV(G),Q(!0));var X=O(),Z;(Z=_.tW().resolve(_.AW(_.Hl)))==null||Z.addEventListener("yt-navigate-start",function(){_.QP.remove(X);Q(!1)},{once:!0})});
var K=function(){var G,X,Z,l,a,N,m,A,q;return _.T(function(TG){G=D.value.value;D.value.value="";xei(D.value);X=Eft(O(),G);_.eV(X);Z=_.Fmo(U());_.wx(((l=p())==null?void 0:l.onSubmitCommand)||{});Z(!0);N=String(Math.floor(((a=_.UK())==null?void 0:a.getCurrentTime())||0)*1E3);A={continuationCommand:{token:(m=p())==null?void 0:m.continuation,request:"CONTINUATION_REQUEST_TYPE_GET_PANEL"}};q={inputComposerFormData:{clientMessageId:"youchat-"+Date.now(),userInputText:G,playerOffsetMs:N}};_.eV(A,{form:{formData:q},
commandController:{onSuccess:function(){Z(!1)},
onServerError:function(){var Je=O();_.eV({listMutationCommand:{operations:{operations:[{removeItem:{removeByTargetId:{targetIds:["loading_response_message_id"]},sectionTargetId:Je}}]}}});Z(!1)}}});
_.OV(TG)})};
return _.H("yt-chat-input-view-model",{class:"chatInputViewModelChatInputViewModel",el:I},_.H("div",{class:"chatInputViewModelChatInputWrapper"},_.H("form",{class:"chatInputViewModelChatInputForm"},_.H("textarea",{class:"chatInputViewModelChatInput",el:D,"on:keydown":_.kL(function(G){var X=L()||!1;xei(D.value);X||G.key!=="Enter"||G.shiftKey||(G.preventDefault(),K());return!1}),
"on:keyup":_.kL(function(){W(D.value.value.length===0);return!1}),
placeholder:function(){var G,X;var Z=_.b((X=p())==null?void 0:X.inputFormField,bdL);return Z==null?void 0:(G=Z.contentProperties)==null?void 0:G.placeholderText},
rows:1}),_.H(_.PG,{data:function(){return _.b(S.data().sendButton,_.K6)},
onClick:function(G){G.preventDefault();K();W(D.value.value.length===0)},
buttonOverrides:function(){return{disabled:V()||L()}}})),_.H(_.i6,{className:"chatInputViewModelChatDisclaimer",
text:function(){var G;return(G=_.b(S.data().disclaimer,_.orm))==null?void 0:G.text}})))},"Xi"),"yt-chat-input-view-model",{props:{data:_.x2}});var x5i=["engagement-panel-clip-create","engagement-panel-clip-view"],EWP=0,Wa=function(){var S=_.w.apply(this,arguments)||this;var p;S.headerData=(p=S.data)==null?void 0:p.header;S.darkerPanels=_.y("web_watch_darker_panels");S.matchContentTheme=_.y("web_watch_panel_content_match_theme");S.disableAutoFill=!1;S.isFullscreen=!1;S.isTheaterMode=!1;S.modernPanels=_.y("kevlar_watch_modern_panels");S.liveChatReplyPanel=!1;S.enableAnchoredPanel=_.y("desktop_shorts_v2_anchored_panel");S.disableBackdropFilter=
_.y("web_disable_backdrop_filter");S.trackEngagementPanelVisibility=_.y("web_watch_track_engagement_panel_visibility");S.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 S};
_.r(Wa,_.w);_.M=Wa.prototype;
_.M.configureRendererStamper=function(){return{headerData:{id:"header",mapping:{engagementPanelTitleHeaderRenderer:{component:"ytd-engagement-panel-title-header-renderer",properties:{liveChatEngagementPanel:"[[liveChatEngagementPanel]]",targetId:"[[data.targetId]]",shortsPanel:"[[shortsPanel]]"}},panelAdHeaderImageLockupViewModel:{component:"panel-ad-header-image-lockup-view-model"},pageHeaderViewModel:{component:"yt-page-header-view-model"}},events:!0},"data.content":{id:"content",mapping:{sectionListRenderer:{matcher:function(S){var p;
return(S==null?void 0:(p=S.webComponentHint)==null?void 0:p.componentVersion)==="WEB_COMPONENT_VERSION_SHARED"?"yt-section-list-renderer":"ytd-section-list-renderer"},
params:{engagementPanel:!0},properties:{liveChatEngagementPanel:"[[liveChatEngagementPanel]]",inReplyPanel:"[[liveChatReplyPanel]]",engagementPanelDropdown:"[[dropdown]]",engagementPanelDialog:"[[dialog]]",disableAutoFill:"[[disableAutoFill]]"}},continuationItemRenderer:"ytd-continuation-item-renderer",richGridRenderer:"ytd-rich-grid-renderer",transcriptRenderer:"ytd-transcript-renderer",clipSectionRenderer:"ytd-clip-section-renderer",adsEngagementPanelContentRenderer:"ytd-ads-engagement-panel-content-renderer",
macroMarkersListRenderer:"ytd-macro-markers-list-renderer",searchInVideoRenderer:"ytd-search-in-video-renderer",structuredDescriptionContentRenderer:{component:"ytd-structured-description-content-renderer",params:{engagementPanel:!0},properties:{shortsPanel:"[[shortsPanel]]",watchWhileSdp:"[[isWatchWhilePanel]]"}},mediaUpsellRenderer:"ytd-media-upsell-renderer",productListRenderer:"ytd-product-list-renderer",contentLoadingRenderer:"yt-content-loading-renderer",flowRootRenderer:"ytd-flow-root-renderer",
sponsorshipsGiftingOptInRenderer:"ytd-sponsorships-gifting-opt-in-renderer",playlistCollaborationViewModel:"playlist-collaboration-view-model"},events:!0},"data.footer":{id:"footer",mapping:{commerceCartCheckoutButtonRenderer:{component:"ytd-commerce-cart-checkout-button-renderer",params:{fullWidth:!0}},cardItemRenderer:"yt-card-item-renderer",chatInputViewModel:"yt-chat-input-view-model",liveChatEngagementPanelInputRenderer:{component:"yt-live-chat-engagement-panel-input-renderer",properties:{inReplyPanel:"[[liveChatReplyPanel]]",
hideBorder:"[[hideFooterBorder]]"}},liveLeaderboardItemViewModel:"ytvl-live-leaderboard-item-view-model",disableableButtonViewModel:"yt-disableable-button-view-model"}}}};
_.M.attached=function(){this.hostElement.parentElement&&this.hostElement.parentElement.is==="tp-yt-paper-dialog"&&(this.dialog=!0);var S;if((S=this.hostElement.parentElement)==null?0:S.classList.contains("tp-yt-iron-dropdown"))this.dropdown=!0;this.disableAutoFill=!(!this.dialog&&!this.dropdown)};
_.M.detached=function(){this.updateTheaterDisablement()};
_.M.showPanel=function(){var S=this;this.notifyVisibilityChanged("ENGAGEMENT_PANEL_VISIBILITY_EXPANDED");this.showDelayMs?_.PA.addJob(function(){S.visibility="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"},2,this.showDelayMs):this.visibility="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"};
_.M.maybeScrollToItemSection=function(S){var p=this,U,Y=S==null?void 0:(U=S.sectionListEngagementPanelExtras)==null?void 0:U.scrollToItemSectionIdentifier;Y&&_.PA.addJob(function(){var L;(L=p.sectionListRendererElement)==null||L.scrollToItemSection(Y)},8)};
_.M.hidePanel=function(){var S=this;this.notifyVisibilityChanged("ENGAGEMENT_PANEL_VISIBILITY_HIDDEN");this.hideDelayMs?_.PA.addJob(function(){S.visibility="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"},2,this.hideDelayMs):this.visibility="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"};
_.M.isVisible=function(){return!!this.visibility&&this.visibility!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"};
_.M.getPanelContent=function(){return{engagementPanelSectionListRenderer:this.data}};
_.M.updatePanel=function(S,p,U,Y){var L=this;if((S=S==null?void 0:S.engagementPanelSectionListRenderer)||Y){if(S){Y=S.header;var I=S.content,V=S.footer;(S=S.targetId)&&this.set("data.targetId",S);Y&&this.set("data.header",Y);I&&this.set("data.content",I);V&&this.set("data.footer",V)}else Y&&(S=Y.content,I=Y.secondaryHeaderContent,(Y=Y.targetId)&&this.set("data.targetId",Y),S&&this.set("data.content",S),I&&(this.secondaryHeaderData=I));this.updateChildVisibilityProperties();if(p){var W;_.y("kevlar_update_panel_focus_scroll_killswitch")||
(W={preventScroll:!0});this.focus(W)}_.oH(this,function(){_.cv(L.hostElement,"yt-refit");L.maybeScrollToItemSection(U)})}};
_.M.computeHeaderData=function(){var S,p=(0,_.h9.unsafeClone)((S=this.data)==null?void 0:S.header);if(p){S=new _.v(Object.keys(p)[0]);var U=_.b(p,S),Y=_.b(this.secondaryHeaderData,S);Y&&_.Rf(p,S,Object.assign({},Y,U))}return p};
_.M.getReloadContinuation=function(){var S,p,U,Y=_.d(((S=this.data)==null?void 0:(p=S.content)==null?void 0:(U=p.sectionListRenderer)==null?void 0:U.continuations)||[]);for(S=Y.next();!S.done;S=Y.next())if(S=S.value,S.reloadContinuationData)return S.reloadContinuationData.continuation};
_.M.onYtRendererstamperFinished=function(){this.updateChildVisibilityProperties();var S;((S=this.data)==null?0:S.targetId)&&(S=this.contentElement.firstElementChild)&&S.setAttribute("panel-target-id",this.data.targetId)};
_.M.forwardPopupClosedToFlowRootRenderer=function(){var S=_.tB(this.hostElement).querySelector("ytd-flow-root-renderer");if(S)S.onPopupClosed()};
_.M.dataChanged=function(){this.getSurface()==="ENGAGEMENT_PANEL_SURFACE_LIVE_CHAT"&&(this.liveChatEngagementPanel=!0,this.getIdentifier()==="PAreply_thread"&&(this.liveChatReplyPanel=!0));var S=_.y("web_watch_imax_theater_mode")&&this.isTheaterMode;S=_.y("web_watch_enable_fs_squeezeback_panels")&&this.isFullscreen||S;if(_.y("kevlar_watch_metadata_ep_killswitch")||this.getIdentifier()!=="engagement-panel-structured-description"||this.getSurface()==="ENGAGEMENT_PANEL_SURFACE_SHORTS"||S){var p;this.visibility=
(p=this.data)==null?void 0:p.visibility;var U;this.trackEngagementPanelVisibility&&((U=this.data)==null?void 0:U.visibility)==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"&&this.notifyVisibilityChanged("ENGAGEMENT_PANEL_VISIBILITY_EXPANDED");var Y,L,I,V;this.contentEmpty=!!(((Y=this.data)==null?0:(L=Y.content)==null?0:L.structuredDescriptionContentRenderer)&&Object.keys((I=this.data)==null?void 0:(V=I.content)==null?void 0:V.structuredDescriptionContentRenderer).length===0);(p=_.tW().resolve(_.y6))&&p.registerPanel(this.getIdentifier(),
this);this.updateTheaterDisablement()}else this.data.visibility="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",this.visibility=this.data.visibility};
_.M.isTheaterModeChanged=function(){_.y("web_watch_imax_theater_mode")&&(this.liveChatEngagementPanel||this.hidePanel())};
_.M.isFullscreenChanged=function(){_.y("web_watch_close_eps_on_fullscreen")&&(this.liveChatEngagementPanel||this.hidePanel())};
_.M.focus=function(S){if(this.header)this.header.focus(S);else{var p;(p=_.tB(this.hostElement).querySelector("ytd-flow-root-renderer"))==null||p.focus(S)}};
_.M.visibilityChanged=function(){if(!_.y("kevlar_use_engagement_panel_management_component")){this.updateChildVisibilityProperties();var S=this.visibility&&this.visibility!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",p=this.visibility==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",U=this.lastVisibility&&this.lastVisibility!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",Y=this.lastVisibility==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",L=Y||!this.lastVisibility,I,V,W=(I=this.data)==null?void 0:(V=I.identifier)==null?void 0:V.tag,
O;if(((O=this.data)==null?0:O.onShowCommands)&&S&&L)_.Lp(this.hostElement,this.data.onShowCommands,this.hostElement),W&&_.vJ().dispatch(_.S4({type:"ADD_OPEN_ENGAGEMENT_PANEL",payload:{panelToAdd:W}}));else{var D;((D=this.data)==null?0:D.onHideCommands)&&p&&U&&(_.Lp(this.hostElement,this.data.onHideCommands,this.hostElement),W&&_.vJ().dispatch(_.S4({type:"REMOVE_OPEN_ENGAGEMENT_PANEL",payload:{panelToRemove:W}})))}S&&this.lastVisibility!==void 0&&(this.hostElement.style.order=String(-1*EWP++));_.y("kevlar_watch_focus_on_engagement_panels")&&
S&&Y&&this.focus({preventScroll:!0});this.updateTheaterDisablement()}this.lastVisibility=this.visibility};
_.M.notifyVisibilityChanged=function(S){var p;_.pp(this.hostElement,"yt-engagement-panel-visible-changed",[this.data,S,(p=this.data)==null?void 0:p.targetId])};
_.M.updateTheaterDisablement=function(){if(!_.y("kevlar_watch_theater_disablement_killswitch")){var S=this.theaterDisablementPanelIdentifier||this.getIdentifier()||"";if(this.isWatch&&x5i.includes(S)&&!_.y("watch_next_grid_ignore_disallowed_panels")){var p=_.sK(_.vJ().getState()),U=this.visibility!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN";S!==this.getIdentifier()&&this.originalTheaterState?this.clearTheaterDisablement():U?(this.originalTheaterState===void 0&&(this.originalTheaterState=p,this.theaterDisablementPanelIdentifier=
S),p&&_.St(this.hostElement,"yt-toggle-theater-mode",[!1,!1])):this.originalTheaterState&&this.clearTheaterDisablement()}}};
_.M.clearTheaterDisablement=function(){_.St(this.hostElement,"yt-toggle-theater-mode",[!0,!1]);this.theaterDisablementPanelIdentifier=this.originalTheaterState=void 0};
_.M.updateChildVisibilityProperties=function(){this.hostElement||_.y("kevlar_panel_property_init_killswitch")||this._enableProperties();var S=this.visibility;this.adHeaderImageLockupViewModel&&(this.adHeaderImageLockupViewModel.panelContentVisibility=S);var p,U=(p=this.headerElement)==null?void 0:p.firstElementChild;if(U&&!this.adHeaderImageLockupViewModel){p=S==="ENGAGEMENT_PANEL_VISIBILITY_COLLAPSED";U.collapsed=p;U=_.tB(U).querySelector("#visibility-button");if(!U)return;(U=U.firstElementChild)&&
U.polymerController.is==="ytd-toggle-button-renderer"&&U.polymerController.data.isToggled!==p&&U.polymerController.set("data.isToggled",p)}var Y;if(p=(Y=this.contentElement)==null?void 0:Y.firstElementChild)if(S&&S!=="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED")p.removeAttribute("panel-content-visible");else{p.setAttribute("panel-content-visible","");var L;(L=p.markDirty)==null||L.call(p)}};
_.M.onYtChangeEngagementPanelVisibilityAction=function(S){var p=this,U,Y=(U=this.data)==null?void 0:U.targetId,L,I,V;U=((L=this.data)==null?void 0:(I=L.identifier)==null?void 0:I.tag)||((V=this.data)==null?void 0:V.panelIdentifier);var W=_.b(S,_.qpP),O;S=Y&&(W==null?void 0:W.targetId)===Y||U&&(W==null?void 0:(O=W.panelIdentifier)==null?void 0:O.tag)===U;this.dialog&&S&&(W==null?void 0:W.visibility)==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&(Y==="engagement-panel-comments-section"?_.St(this.hostElement,
"yt-close-popup-action",["ytd-engagement-panel-section-list-renderer"]):_.St(this.hostElement,"yt-close-popup-action",["ytd-engagement-panel-section-list-renderer",U]));!_.y("kevlar_use_engagement_panel_management_component")&&S&&(Y=W.visibility==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED",this.hideDelayMs&&!Y?_.PA.addJob(function(){p.visibility=W.visibility},2,this.hideDelayMs):this.visibility=W.visibility,W.visibility&&this.notifyVisibilityChanged(W.visibility))};
_.M.onYtScrollToEngagementPanelCommand=function(S){var p,U=(p=this.data)==null?void 0:p.targetId,Y,L,I;p=((Y=this.data)==null?void 0:(L=Y.identifier)==null?void 0:L.tag)||((I=this.data)==null?void 0:I.panelIdentifier);S=_.b(S,_.dOH);var V;(U&&(S==null?void 0:S.targetId)===U||p&&(S==null?void 0:(V=S.panelIdentifier)==null?void 0:V.tag)===p)&&this.visibility==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"&&_.St(this.hostElement,"yt-scroll-to-watch-element",[this.hostElement])};
_.M.attachVEs=function(S){var p,U;(S==null?0:(p=S.content)==null?0:(U=p.productListRenderer)==null?0:U.trackingParams)&&_.HX().graftServerVe(S.content.productListRenderer.trackingParams);var Y,L;(S==null?0:(Y=S.content)==null?0:(L=Y.transcriptRenderer)==null?0:L.trackingParams)&&_.HX().graftServerVe(S.content.transcriptRenderer.trackingParams)};
_.M.onYtUpdateEngagementPanelAction=function(S){var p,U=(p=this.data)==null?void 0:p.targetId;S=_.b(S,RGX);U&&(S==null?void 0:S.targetId)===U&&(this.updatePanel({engagementPanelSectionListRenderer:{header:S==null?void 0:S.header,content:S==null?void 0:S.content}},!1),this.attachVEs(S))};
_.M.onYtShowEngagementPanelScrimAction=function(S){var p,U=(p=this.data)==null?void 0:p.targetId;S=_.b(S,hGt);U&&(S==null?void 0:S.engagementPanelTargetId)===U&&(this.scrimmed=!0)};
_.M.onYtHideEngagementPanelScrimAction=function(S){var p,U=(p=this.data)==null?void 0:p.targetId;S=_.b(S,roi);U&&(S==null?void 0:S.engagementPanelTargetId)===U&&(this.scrimmed=!1)};
_.M.getIdentifier=function(){var S,p,U;return((S=this.data)==null?void 0:S.panelIdentifier)||((p=this.data)==null?void 0:(U=p.identifier)==null?void 0:U.tag)};
_.M.getSurface=function(){var S,p;return(S=this.data)==null?void 0:(p=S.identifier)==null?void 0:p.surface};
_.$u.Object.defineProperties(Wa.prototype,{targetId:{configurable:!0,enumerable:!0,get:function(){var S;return(S=this.data)==null?void 0:S.targetId}},
webSize:{configurable:!0,enumerable:!0,get:function(){var S;return(S=this.data)==null?void 0:S.size}},
hideFooterBorder:{configurable:!0,enumerable:!0,get:function(){var S=this.getIdentifier();return S==="engagement-panel-youchat"||S==="PAyouchat"}}});
Wa.prototype.visibilityChanged=Wa.prototype.visibilityChanged;Wa.prototype.isFullscreenChanged=Wa.prototype.isFullscreenChanged;Wa.prototype.isTheaterModeChanged=Wa.prototype.isTheaterModeChanged;Wa.prototype.dataChanged=Wa.prototype.dataChanged;Wa.prototype.forwardPopupClosedToFlowRootRenderer=Wa.prototype.forwardPopupClosedToFlowRootRenderer;Wa.prototype.onYtRendererstamperFinished=Wa.prototype.onYtRendererstamperFinished;
_.x([_.F(_.Aj.YtActionHandlerBehavior),_.E("design:type",Object)],Wa.prototype,"actionHandlerBehavior",void 0);_.x([_.F(_.qH.YtRendererstamperBehavior),_.E("design:type",Object)],Wa.prototype,"ytRendererstamperBehavior",void 0);_.x([_.F(_.Xh),_.E("design:type",Object)],Wa.prototype,"ytdReduxBehavior",void 0);_.x([_.F(_.kP.YtEventForwardingBehavior),_.E("design:type",Object)],Wa.prototype,"ytEventForwardingBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],Wa.prototype,"data",void 0);
_.x([_.g({computed:"computeHeaderData(data.header, secondaryHeaderData)"}),_.E("design:type",Object)],Wa.prototype,"headerData",void 0);_.x([_.g(),_.E("design:type",Object)],Wa.prototype,"secondaryHeaderData",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],Wa.prototype,"visibility",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Boolean)],Wa.prototype,"contentEmpty",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Boolean)],Wa.prototype,"scrimmed",void 0);
_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Boolean)],Wa.prototype,"dialog",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Boolean)],Wa.prototype,"dropdown",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],Wa.prototype,"darkerPanels",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],Wa.prototype,"matchContentTheme",void 0);_.x([_.g(),_.E("design:type",Object)],Wa.prototype,"disableAutoFill",void 0);
_.x([_.g({reflectToAttribute:!0,value:_.y("optimal_reading_width_comments_ep")}),_.E("design:type",Boolean)],Wa.prototype,"optimalReadingWidthComments",void 0);_.x([_.g(),_.E("design:type",Number)],Wa.prototype,"hideDelayMs",void 0);_.x([_.g({selector:_.eS,reflectToAttribute:!0}),_.E("design:type",Object)],Wa.prototype,"isFullscreen",void 0);_.x([_.g({selector:_.sK,reflectToAttribute:!0}),_.E("design:type",Object)],Wa.prototype,"isTheaterMode",void 0);
_.x([_.g(),_.E("design:type",Number)],Wa.prototype,"showDelayMs",void 0);_.x([_.g({reflectToAttribute:!0}),_.e("data.targetId"),_.E("design:type",Object),_.E("design:paramtypes",[])],Wa.prototype,"targetId",null);_.x([_.g({reflectToAttribute:!0}),_.e("data"),_.E("design:type",Object),_.E("design:paramtypes",[])],Wa.prototype,"webSize",null);_.x([_.g(),_.e("data"),_.E("design:type",Object),_.E("design:paramtypes",[])],Wa.prototype,"hideFooterBorder",null);
_.x([_.g(),_.E("design:type",Object)],Wa.prototype,"isWatch",void 0);_.x([_.g(),_.E("design:type",Object)],Wa.prototype,"originalTheaterState",void 0);_.x([_.g(),_.E("design:type",Object)],Wa.prototype,"theaterDisablementPanelIdentifier",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],Wa.prototype,"modernPanels",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Boolean)],Wa.prototype,"isWatchWhilePanel",void 0);
_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Boolean)],Wa.prototype,"shortsPanel",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Boolean)],Wa.prototype,"liveChatEngagementPanel",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],Wa.prototype,"liveChatReplyPanel",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],Wa.prototype,"enableAnchoredPanel",void 0);
_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],Wa.prototype,"disableBackdropFilter",void 0);_.x([_.g(),_.E("design:type",Object)],Wa.prototype,"trackEngagementPanelVisibility",void 0);_.x([_.O2("#header"),_.E("design:type",HTMLElement)],Wa.prototype,"headerElement",void 0);_.x([_.O2("#header > *"),_.E("design:type",HTMLElement)],Wa.prototype,"header",void 0);_.x([_.O2("ytd-section-list-renderer"),_.E("design:type",Object)],Wa.prototype,"sectionListRendererElement",void 0);
_.x([_.O2("panel-ad-header-image-lockup-view-model"),_.E("design:type",HTMLElement)],Wa.prototype,"adHeaderImageLockupViewModel",void 0);_.x([_.O2("#content"),_.E("design:type",HTMLElement)],Wa.prototype,"contentElement",void 0);_.x([_.Vd("yt-rendererstamper-finished"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],Wa.prototype,"onYtRendererstamperFinished",null);
_.x([_.Vd("yt-popup-closed"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],Wa.prototype,"forwardPopupClosedToFlowRootRenderer",null);_.x([_.z4("data","isFullscreen","isTheaterMode"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],Wa.prototype,"dataChanged",null);_.x([_.T4("isTheaterMode"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],Wa.prototype,"isTheaterModeChanged",null);
_.x([_.T4("isFullscreen"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],Wa.prototype,"isFullscreenChanged",null);_.x([_.T4("visibility"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],Wa.prototype,"visibilityChanged",null);Wa=_.x([_.f({is:"ytd-engagement-panel-section-list-renderer",disableElementRegistration:!0})],Wa);
_.C(Wa,"ytd-engagement-panel-section-list-renderer",function(){if(OqJ!==void 0)return OqJ;var S=document.createElement("template");_.h(S,'\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');
S.content.insertBefore(_.t().content.cloneNode(!0),S.content.firstChild);return OqJ=S},{mode:_.UW("kevlar_poly_si_batch_j028")?1:2});var m5L;var Oe=function(){var S=_.w.apply(this,arguments)||this;S.lastRenderedPanelIds=new Set;S.visiblePanels=[];S.actionMap={"yt-change-engagement-panel-visibility-action":"onYtChangeEngagementPanelVisibilityAction"};return S};
_.r(Oe,_.w);_.M=Oe.prototype;_.M.dataChanged=function(){if(this.data){for(var S=[],p=_.d(this.data),U=p.next();!U.done;U=p.next()){U=U.value;var Y=void 0,L=void 0,I=(Y=U)==null?void 0:(L=Y.engagementPanelSectionListRenderer)==null?void 0:L.visibility;L=Y=void 0;((Y=U)==null?0:(L=Y.engagementPanelSectionListRenderer)==null?0:L.targetId)&&I!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&S.push(U)}this.visiblePanels=S}else this.visiblePanels=[]};
_.M.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}}};
_.M.withoutVisiblePanelById=function(S){return this.visiblePanels.filter(function(p){var U;return((U=p.engagementPanelSectionListRenderer)==null?void 0:U.targetId)!==S})};
_.M.onYtChangeEngagementPanelVisibilityAction=function(S){var p=this,U=_.b(S,_.qpP);if(this.data&&(U==null?0:U.targetId)&&(U==null?0:U.visibility)){var Y,L=(Y=this.data.find(function(V){var W;return((W=V.engagementPanelSectionListRenderer)==null?void 0:W.targetId)===U.targetId}))==null?void 0:Y.engagementPanelSectionListRenderer;
if(L){var I=this.withoutVisiblePanelById(U.targetId);U.visibility!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&(S=this.data.find(function(V){var W;return((W=V.engagementPanelSectionListRenderer)==null?void 0:W.targetId)===U.targetId}))&&(I=[S].concat(_.jo(I)));
this.hideDelayMs&&U.visibility==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&I.length===0?_.PA.addJob(function(){L.visibility=U.visibility;p.visiblePanels=I},10,this.hideDelayMs):(L.visibility=U.visibility,this.visiblePanels=I);
_.pp(this.hostElement,"yt-engagement-panels-visible-changed",[I])}}};
_.M.onRendererstamperFinished=function(){var S=new Set(this.visiblePanels.map(function(p){var U;return(U=p.engagementPanelSectionListRenderer)==null?void 0:U.targetId}));
this.handlePanelVisibilityChange(S,this.lastRenderedPanelIds);this.lastRenderedPanelIds=S};
_.M.handlePanelVisibilityChange=function(S,p){S=S===void 0?new Set:S;p=p===void 0?new Set:p;if(this.data)for(var U=_.d(this.data),Y=U.next();!Y.done;Y=U.next()){Y=Y.value;var L=void 0,I=void 0,V=(L=Y)==null?void 0:(I=L.engagementPanelSectionListRenderer)==null?void 0:I.targetId;if(V&&(L=p.has(V),I=S.has(V),V=void 0,!L&&I?(I=L=void 0,V=(L=Y)==null?void 0:(I=L.engagementPanelSectionListRenderer)==null?void 0:I.onShowCommands):L&&!I&&(I=L=void 0,V=(L=Y)==null?void 0:(I=L.engagementPanelSectionListRenderer)==
null?void 0:I.onHideCommands),V))for(Y=_.d(V),V=Y.next();!V.done;V=Y.next())this.ytComponentBehavior.resolveCommand(V.value)}};
Oe.prototype.onRendererstamperFinished=Oe.prototype.onRendererstamperFinished;Oe.prototype.dataChanged=Oe.prototype.dataChanged;_.x([_.F(_.eL.YtComponentBehavior),_.E("design:type",Object)],Oe.prototype,"ytComponentBehavior",void 0);_.x([_.F(_.Aj.YtActionHandlerBehavior),_.E("design:type",Object)],Oe.prototype,"actionHandlerBehavior",void 0);_.x([_.F(_.qH.YtRendererstamperBehavior),_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],Oe.prototype,"ytRendererBehavior",void 0);
_.x([_.F(_.qH.YtRendererstamperBehavior),_.E("design:type",Object)],Oe.prototype,"ytRendererstamperBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],Oe.prototype,"lastRenderedPanelIds",void 0);_.x([_.g(),_.E("design:type",Number)],Oe.prototype,"hideDelayMs",void 0);_.x([_.g(),_.E("design:type",Array)],Oe.prototype,"data",void 0);_.x([_.g(),_.E("design:type",Array)],Oe.prototype,"visiblePanels",void 0);_.x([_.g(),_.E("design:type",Boolean)],Oe.prototype,"isWatchWhilePanel",void 0);
_.x([_.T4("data"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],Oe.prototype,"dataChanged",null);_.x([_.Vd("yt-rendererstamper-finished"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],Oe.prototype,"onRendererstamperFinished",null);Oe=_.x([_.f({is:"ytd-watch-engagement-panels",disableElementRegistration:!0})],Oe);
_.C(Oe,"ytd-watch-engagement-panels",function(){if(m5L!==void 0)return m5L;var S=document.createElement("template");_.h(S,'\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');S.content.insertBefore(_.t().content.cloneNode(!0),S.content.firstChild);return m5L=S},{mode:1});var oW5;var kN=function(){return _.w.apply(this,arguments)||this};
_.r(kN,_.w);kN.prototype.dataChanged=function(){this.data&&this.data.companionLegalText!==void 0&&this.data.companionLegalText!==null&&_.Ch(_.tB(this.hostElement).querySelector("#text"),_.dGc(_.Wqt,this.data.companionLegalText))};
kN.prototype.computeAutoScrollEnabled=function(S,p){return S&&!p};
kN.prototype.expandedChanged=function(){this.expanderIcon=this.expanded?"expand-less":"expand-more"};
kN.prototype.onToggleTap=function(){this.expanded=!this.expanded};
kN.prototype.expandedChanged=kN.prototype.expandedChanged;kN.prototype.dataChanged=kN.prototype.dataChanged;_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],kN.prototype,"ytRendererBehavior",void 0);_.x([_.F(_.$LT),_.E("design:type",Object)],kN.prototype,"ytdAutoScrollBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],kN.prototype,"data",void 0);_.x([_.g({reflectToAttribute:!0,value:!1}),_.E("design:type",Boolean)],kN.prototype,"expanded",void 0);
_.x([_.g({computed:"computeAutoScrollEnabled(data.companionLegalTextEnableAutoscroll, expanded)"}),_.E("design:type",Boolean)],kN.prototype,"autoScrollEnabled",void 0);_.x([_.g(),_.E("design:type",String)],kN.prototype,"expanderIcon",void 0);_.x([_.T4("data"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],kN.prototype,"dataChanged",null);
_.x([_.T4("expanded"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],kN.prototype,"expandedChanged",null);kN=_.x([_.f({disableElementRegistration:!0,is:"ytd-companion-legal-text-renderer"})],kN);
_.C(kN,"ytd-companion-legal-text-renderer",function(){if(oW5!==void 0)return oW5;var S=document.createElement("template");_.h(S,'\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');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);return oW5=S},{mode:1});var vWs;var Ha=function(){var S=_.w.apply(this,arguments)||this;S.buttonUpdate=_.y("web_modern_buttons");S.kevlarWatchGrid=_.y("kevlar_watch_grid");S.centerAlignDescription=_.y("action_companion_center_align_description");S.truncateDomain=_.y("action_companion_truncate_domain");return S};
_.r(Ha,_.w);_.M=Ha.prototype;_.M.computeButtonOverride=function(){if(this.buttonUpdate)return{style:"call-to-action",type:"filled"}};
_.M.getOnLayoutVisibleCallback=function(){var S=_.ad("yt.www.ads.eventcache.getLastCompanionData");return S?(S=S())&&S.onLayoutVisibleCallback:null};
_.M.getLayoutId=function(){var S=_.ad("yt.www.ads.eventcache.getLastCompanionData");return S?(S=S())&&S.layoutId:null};
_.M.dataChanged=function(){if(this.data){this.data.adBadge||this.set("data.adBadge",Ha.JSC$20211_DEFAULT_AD_BADGE_RENDERER);var S=this.getOnLayoutVisibleCallback();S&&S()}};
_.M.getButtonRenderer=function(S){return S.actionButton&&_.b(S.actionButton,_.XT)?(delete _.b(S.actionButton,_.XT).navigationEndpoint,_.b(S.actionButton,_.XT)):{}};
_.M.onClick=function(S){var p=this;if((!_.y("web_modern_buttons")||!_.Eo(_.E1(S),this.hostElement,["YTD-AD-HOVER-TEXT-BUTTON-RENDERER"]))&&this.data&&this.data.navigationEndpoint){S=_.$L();var U=this.getLayoutId();S&&U&&_.y("h5_companion_enable_adcpn_macro_substitution_for_click_pings")?S.getPlayerPromise().then(function(Y){(new _.z3(Y)).executeCommand(p.data.navigationEndpoint,U)}):_.y("kevlar_companion_resolve_command_killswitch")?_.cv(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint}):
this.ytComponentBehavior.resolveCommand(this.data.navigationEndpoint);
_.St(this.hostElement,"yt-companion-ad-clicked",["action-companion",U])}};
_.$u.Object.defineProperties(Ha.prototype,{getRating:{configurable:!0,enumerable:!0,get:function(){var S,p,U;return((S=this.data)==null?0:(p=S.detailsLine)==null?0:(U=p.adRating)==null?0:U.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 S,p,U,Y;return((S=this.data)==null?0:(p=S.detailsLine)==null?0:(U=p.adRating)==null?0:(Y=U.ratingIcon)==null?0:Y.iconType)?_.If(this.data.detailsLine.adRating.ratingIcon.iconType):null}},
getDetailsLine:{configurable:!0,enumerable:!0,get:function(){var S,p,U,Y;return((S=this.data)==null?0:(p=S.detailsLine)==null?0:(U=p.texts)==null?0:(Y=U[0])==null?0:Y.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 S,p;return((S=this.data)==null?0:(p=S.description)==null?0:p.text)?this.data.description.text:null}},
computeDescriptionTextHidden:{configurable:!0,enumerable:!0,get:function(){return!this.getDescriptionText}},
interactionLoggingClientData:{configurable:!0,enumerable:!0,get:function(){var S=_.ad("yt.www.ads.eventcache.getLastCompanionData");return S?(S=S())&&S.interactionLoggingClientData:null}},
hideBanner:{configurable:!0,enumerable:!0,get:function(){var S=this.data.bannerImage&&this.get("thumbnail.thumbnails.0.url",this.data.bannerImage);return S?S.indexOf("/default_banner")!==-1:!0}}});
Ha.prototype.onClick=Ha.prototype.onClick;Ha.prototype.dataChanged=Ha.prototype.dataChanged;Ha.JSC$20211_DEFAULT_AD_BADGE_RENDERER={metadataBadgeRenderer:{label:_.Oh("AD_BADGE_TEXT",void 0,"Ad"),style:"BADGE_STYLE_TYPE_AD"}};_.x([_.F(_.eL.YtComponentBehavior),_.E("design:type",Object)],Ha.prototype,"ytComponentBehavior",void 0);_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],Ha.prototype,"rendererBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],Ha.prototype,"data",void 0);
_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],Ha.prototype,"buttonUpdate",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],Ha.prototype,"kevlarWatchGrid",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],Ha.prototype,"centerAlignDescription",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],Ha.prototype,"truncateDomain",void 0);
_.x([_.g({computed:"computeButtonOverride(buttonUpdate)"}),_.E("design:type",Object)],Ha.prototype,"buttonOverride",void 0);_.x([_.e("data.detailsLine.adRating.ratingText"),_.E("design:type",Object),_.E("design:paramtypes",[])],Ha.prototype,"getRating",null);_.x([_.e("getRating"),_.E("design:type",Boolean),_.E("design:paramtypes",[])],Ha.prototype,"computeRatingHidden",null);
_.x([_.e("data.detailsLine.adRating.ratingIcon.iconType"),_.E("design:type",Object),_.E("design:paramtypes",[])],Ha.prototype,"iconType",null);_.x([_.e("data.detailsLine.texts.0.text"),_.E("design:type",Object),_.E("design:paramtypes",[])],Ha.prototype,"getDetailsLine",null);_.x([_.e("getDetailsLine"),_.E("design:type",Boolean),_.E("design:paramtypes",[])],Ha.prototype,"computeDetailsLineHidden",null);
_.x([_.e("data.description.text"),_.E("design:type",Object),_.E("design:paramtypes",[])],Ha.prototype,"getDescriptionText",null);_.x([_.e("getDescriptionText"),_.E("design:type",Boolean),_.E("design:paramtypes",[])],Ha.prototype,"computeDescriptionTextHidden",null);_.x([_.e("data"),_.E("design:type",Object),_.E("design:paramtypes",[])],Ha.prototype,"interactionLoggingClientData",null);
_.x([_.g({reflectToAttribute:!0}),_.e("data"),_.E("design:type",Boolean),_.E("design:paramtypes",[])],Ha.prototype,"hideBanner",null);_.x([_.z4("data"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],Ha.prototype,"dataChanged",null);_.x([_.Vd("click"),_.E("design:type",Function),_.E("design:paramtypes",[Event]),_.E("design:returntype")],Ha.prototype,"onClick",null);Ha=_.x([_.f({is:"ytd-action-companion-ad-renderer",disableElementRegistration:!0})],Ha);
_.C(Ha,"ytd-action-companion-ad-renderer",function(){if(vWs!==void 0)return vWs;var S=document.createElement("template");_.h(S,'\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');
S.content.insertBefore(_.t().content.cloneNode(!0),S.content.firstChild);return vWs=S},{mode:_.UW("kevlar_poly_si_batch_j067")?1:2});var $5i;var iqE;var Dn=function(){var S=_.w.apply(this,arguments)||this;S.buttonUpdate=_.y("web_modern_buttons");S.hideLegacyBanner=_.y("enable_dsa_one_click_ata_translators_infeed_elements");S.adInfoButtonStyle="mono";S.adInfoButtonType="text";S.noDotAdBadge=!0;return S};
_.r(Dn,_.w);_.M=Dn.prototype;_.M.getOnLayoutVisibleCallback=function(){var S=_.ad("yt.www.ads.eventcache.getLastCompanionData");return S?(S=S())&&S.onLayoutVisibleCallback:null};
_.M.getLayoutId=function(){var S=_.ad("yt.www.ads.eventcache.getLastCompanionData");return S?(S=S())&&S.layoutId:null};
_.M.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 S=this.data.image.thumbnail.thumbnails[0];this.imageSrc=S.url?_.JA(S.url):void 0;this.imageWidth=S.width||0;this.imageHeight=S.height||0}this.data.clickthroughEndpoint&&_.b(this.data.clickthroughEndpoint,_.Cv)&&(S=_.b(this.data.clickthroughEndpoint,_.Cv).url,_.y("kevlar_sanitize_image_companion_killswitch")?this.clickThroughUrl=
S||"":S?(S=_.JA(S),this.clickThroughUrl=_.DO(S)):this.clickThroughUrl=void 0);(S=this.getOnLayoutVisibleCallback())&&S()}};
_.M.onClick=function(S){_.Eo(_.E1(S),this.hostElement,["A".toString(),"BUTTON".toString()])||this.handleClick(S)};
_.M.handleClick=function(){var S=this;this.data&&this.data.clickthroughEndpoint&&(_.cv(this.hostElement,"yt-navigate",{endpoint:this.data.clickthroughEndpoint}),this.data.onClickCommands&&this.data.onClickCommands.forEach(function(p){S.macroReplacementBehavior.sendServiceRequestAction([p])}),_.St(this.hostElement,"yt-companion-ad-clicked",["image-companion",
this.getLayoutId()]))};
_.M.onLoad=function(){_.pp(this.hostElement,"yt-refit-popups-action")};
_.$u.Object.defineProperties(Dn.prototype,{macros:{configurable:!0,enumerable:!0,get:function(){var S=_.ad("yt.www.ads.eventcache.getLastCompanionData");return S?(S=S())&&S.macros||{}:{}}},
interactionLoggingClientData:{configurable:!0,enumerable:!0,get:function(){var S=_.ad("yt.www.ads.eventcache.getLastCompanionData");return S?(S=S())&&S.interactionLoggingClientData:null}}});
Dn.prototype.onLoad=Dn.prototype.onLoad;Dn.prototype.onClick=Dn.prototype.onClick;Dn.prototype.dataChanged=Dn.prototype.dataChanged;_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],Dn.prototype,"rendererBehavior",void 0);_.x([_.F(yT5.YtMacroReplacementBehavior),_.E("design:type",Object)],Dn.prototype,"macroReplacementBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],Dn.prototype,"data",void 0);
_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],Dn.prototype,"buttonUpdate",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],Dn.prototype,"hideLegacyBanner",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],Dn.prototype,"adInfoButtonStyle",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],Dn.prototype,"adInfoButtonType",void 0);_.x([_.e("data"),_.E("design:type",Object),_.E("design:paramtypes",[])],Dn.prototype,"macros",null);
_.x([_.e("data"),_.E("design:type",Object),_.E("design:paramtypes",[])],Dn.prototype,"interactionLoggingClientData",null);_.x([_.g(),_.E("design:type",String)],Dn.prototype,"clickThroughUrl",void 0);_.x([_.g(),_.E("design:type",_.O3)],Dn.prototype,"imageSrc",void 0);_.x([_.g(),_.E("design:type",Number)],Dn.prototype,"imageWidth",void 0);_.x([_.g(),_.E("design:type",Number)],Dn.prototype,"imageHeight",void 0);_.x([_.g(),_.E("design:type",Object)],Dn.prototype,"noDotAdBadge",void 0);
_.x([_.z4("data"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],Dn.prototype,"dataChanged",null);_.x([_.Vd("click"),_.E("design:type",Function),_.E("design:paramtypes",[Event]),_.E("design:returntype")],Dn.prototype,"onClick",null);_.x([_.Vd("load"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],Dn.prototype,"onLoad",null);Dn=_.x([_.f({is:"ytd-image-companion-renderer",disableElementRegistration:!0})],Dn);
_.C(Dn,"ytd-image-companion-renderer",function(){if(iqE!==void 0)return iqE;var S=document.createElement("template");_.h(S,'\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');
S.content.insertBefore(_.t().content.cloneNode(!0),S.content.firstChild);return iqE=S},{mode:_.UW("kevlar_poly_si_batch_j067")?1:2});var NGt;var zL=function(){return _.w.apply(this,arguments)||this};
_.r(zL,_.w);_.M=zL.prototype;_.M.dataChanged=function(){this.set("data.adBadge",zL.JSC$20220_DEFAULT_AD_BADGE_RENDERER);if(this.data){var S=this.getOnLayoutVisibleCallback();S&&S()}};
_.M.getOnLayoutVisibleCallback=function(){var S=_.ad("yt.www.ads.eventcache.getLastCompanionData");return S?(S=S())&&S.onLayoutVisibleCallback:null};
_.M.getLayoutId=function(){var S=_.ad("yt.www.ads.eventcache.getLastCompanionData");return S?(S=S())&&S.layoutId:null};
_.M.onCompanionClicked=function(S){this.data&&(S.target!==this.shopTitle&&this.sendTrackingPings(this.data.clickTrackingEndpoints),_.St(this.hostElement,"yt-companion-ad-clicked",["shopping-companion",this.getLayoutId()]))};
_.M.onShopTextTap=function(){if(this.data&&this.data.clickToAdvSiteEndpoint){var S=_.$L(),p=this.getLayoutId(),U=this.data.clickToAdvSiteEndpoint;S&&p&&_.y("h5_companion_enable_adcpn_macro_substitution_for_click_pings")?S.getPlayerPromise().then(function(Y){(new _.z3(Y)).executeCommand(U,p)}):_.cv(this.hostElement,"yt-navigate",{endpoint:U})}};
_.M.sendTrackingPings=function(S){if(S&&S.length!==0&&S[0].loggingUrls&&(S=S[0].loggingUrls.map(this.getBaseUrl)))for(var p=0;p<S.length;p++)_.Cf(S[p])};
_.M.getBaseUrl=function(S){return S.baseUrl||""};
_.$u.Object.defineProperties(zL.prototype,{interactionLoggingClientData:{configurable:!0,enumerable:!0,get:function(){var S=_.ad("yt.www.ads.eventcache.getLastCompanionData");return S?(S=S())&&S.interactionLoggingClientData:null}}});
zL.prototype.onCompanionClicked=zL.prototype.onCompanionClicked;zL.prototype.dataChanged=zL.prototype.dataChanged;zL.JSC$20220_DEFAULT_AD_BADGE_RENDERER={metadataBadgeRenderer:{label:_.Oh("AD_BADGE_TEXT",void 0,"Ad"),style:"BADGE_STYLE_TYPE_AD"}};_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],zL.prototype,"ytRendererBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],zL.prototype,"data",void 0);_.x([_.O2("#title"),_.E("design:type",HTMLElement)],zL.prototype,"shopTitle",void 0);
_.x([_.z4("data.impressionEndpoints"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],zL.prototype,"dataChanged",null);_.x([_.e("data"),_.E("design:type",Object),_.E("design:paramtypes",[])],zL.prototype,"interactionLoggingClientData",null);_.x([_.Vd("yt-navigate"),_.E("design:type",Function),_.E("design:paramtypes",[Event]),_.E("design:returntype")],zL.prototype,"onCompanionClicked",null);
zL=_.x([_.f({is:"ytd-shopping-companion-renderer",disableElementRegistration:!0})],zL);
_.C(zL,"ytd-shopping-companion-renderer",function(){if(NGt!==void 0)return NGt;var S=document.createElement("template");_.h(S,'\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');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);return NGt=S},{mode:1});_.qm(_.$k(function(S){var p=S.data;var U=_.vH();_.mL(U,function(){return p().interaction},meX);
_.tU(U,{visibilityCallback:function(Y){var L,I=(L=p().interaction)==null?void 0:L.onFirstVisible;Y&&I&&_.wx(I)},
showOption:_.$P});_.Zg(function(){var Y,L;L=(L=_.ad("yt.www.ads.eventcache.getLastCompanionData"))?(L=L())&&L.onLayoutVisibleCallback:null;(Y=L)==null||Y()});
return _.H("banner-image-layout-view-model",{class:"ytwBannerImageLayoutViewModelHost","on:load":_.kL(function(){_.pp(U.value,"yt-refit-popups-action")}),
el:U,"aria-label":function(){var Y,L;return(Y=p().interaction)==null?void 0:(L=Y.accessibility)==null?void 0:L.label}},_.H("div",{class:"ytwBannerImageLayoutViewModelHostBannerImage"},_.H(_.yP,{data:function(){return p().adImage}},{adImageViewModel:function(Y){return _.H(_.dy,{data:Y.data,
targetHeight:80,customCommandResolver:meX})}})),_.H("div",{class:"ytwBannerImageLayoutViewModelHostMetadata"},_.H("div",{class:"ytwBannerImageLayoutViewModelHostMetadataAdBadge"},_.H(_.yP,{data:function(){return p().adBadge}},{adBadgeViewModel:function(Y){return _.H(_.AQ,{data:Y.data,
hasDot:!1,adRenderingContextType:function(){return"AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"}})}})),_.H("div",{class:"ytwBannerImageLayoutViewModelHostMetadataMenu"},_.H(_.yP,{data:function(){return p().menu}},{buttonViewModel:_.PG}))))},"Yi"),"banner-image-layout-view-model",{props:{data:_.x2}});_.qm(_.$k(function(S){var p=S.data;S=_.vH();_.mL(S,function(){return p().interaction},ofo);
_.tU(S,{visibilityCallback:function(U){var Y,L=(Y=p().interaction)==null?void 0:Y.onFirstVisible;U&&L&&_.wx(L)},
showOption:_.$P});_.Zg(function(){var U,Y;Y=(Y=_.ad("yt.www.ads.eventcache.getLastCompanionData"))?(Y=Y())&&Y.onLayoutVisibleCallback:null;(U=Y)==null||U()});
return _.H("top-banner-image-text-icon-buttoned-layout-view-model",{class:"ytwTopBannerImageTextIconButtonedLayoutViewModelHost",el:S},_.H("div",{class:"ytwTopBannerImageTextIconButtonedLayoutViewModelHostBannerImage"},_.H(_.yP,{data:function(){return p().adImage}},{adImageViewModel:function(U){return _.H(_.dy,{data:U.data,
targetHeight:80,customCommandResolver:ofo})}})),_.H("div",{class:"ytwTopBannerImageTextIconButtonedLayoutViewModelHostMetadata"},_.H("div",{class:"ytwTopBannerImageTextIconButtonedLayoutViewModelHostMetadataAvatarLockup"},_.H(_.yP,{data:function(){return p().adAvatarLockup}},{adAvatarLockupViewModel:function(U){return _.H(C0J,{data:U.data,
customCommandResolver:ofo})}})),_.H(_.yP,{data:function(){return p().adButton}},{adButtonViewModel:function(U){return _.H(_.Nf,{data:U.data,
customCommandResolver:ofo})}}),_.H("div",{class:"ytwTopBannerImageTextIconButtonedLayoutViewModelHostMetadataMenu"},_.H(_.yP,{data:function(){return p().menu}},{buttonViewModel:_.PG}))))},"Zi"),"top-banner-image-text-icon-buttoned-layout-view-model",{props:{data:_.x2}});var BGA={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"},Q$=function(){var S=_.w.apply(this,arguments)||this;S.updateCompanionDataJobId=0;S.contentVideoId=null;S.player=null;S.actionMap={"yt-companion-ad-clicked":"handleCompanionAdClicked"};
return S};
_.r(Q$,_.w);_.M=Q$.prototype;_.M.configureRendererStamper=function(){return{oneofRenderer:{id:"companion",mapping:BGA}}};
_.M.attached=function(){var S=this,p=_.$L();p&&p.getPlayerPromise().then(function(U){S.getCachedDataAndListen(U)})};
_.M.detached=function(){this.player&&(this.ytPlayerListenerBehavior.unlistenFromPlayerEvent(this.player,"updateKevlarOrC3Companion",this.receiveCompanionData),this.player=null)};
_.M.updateRendererStamper=function(){var S={};if(this.data)for(var p in BGA)if(this.data[p]){S[p]=this.data[p];break}if(this.oneofRenderer!=void 0||Object.keys(S).length)this.oneofRenderer=S};
_.M.getCachedDataAndListen=function(S){var p=this.retrieveCachedCompanionData();p&&Object.keys(p).length&&this.receiveCompanionData(p);this.ytPlayerListenerBehavior.listenToPlayerEvent(S,"updateKevlarOrC3Companion",this.receiveCompanionData);this.player=S};
_.M.retrieveCachedCompanionData=function(){return _.UX.yt&&_.UX.yt.www&&_.UX.yt.www.ads&&_.UX.yt.www.ads.eventcache&&_.UX.yt.www.ads.eventcache.getLastCompanionData?_.UX.yt.www.ads.eventcache.getLastCompanionData():null};
_.M.receiveCompanionData=function(S){S&&Object.keys(S).length?(this.contentVideoId=S.contentVideoId,this.setCompanionData(S)):this.setCompanionData(S)};
_.M.setCompanionData=function(S){this.cancelPendingCompanionAdJobs();if(S){this.updateCompanionDataJobId=0;for(var p in BGA)BGA.hasOwnProperty(p)&&(this.data[p]=void 0);S.shoppingCompanionCarouselRenderer?this.set("data.shoppingCompanionCarouselRenderer",S.shoppingCompanionCarouselRenderer):S.imageCompanionAdRenderer?this.set("data.imageCompanionAdRenderer",S.imageCompanionAdRenderer):S.actionCompanionAdRenderer?(this.set("data.actionCompanionAdRenderer",S.actionCompanionAdRenderer),_.pp(this.hostElement,
"yt-hide-unlimited-offer-module"),_.pp(this.hostElement,"yt-hide-tvfilm-offer-module")):S.bannerImageLayoutViewModel?this.set("data.bannerImageLayoutViewModel",S.bannerImageLayoutViewModel):S.topBannerImageTextIconButtonedLayoutViewModel&&this.set("data.topBannerImageTextIconButtonedLayoutViewModel",S.topBannerImageTextIconButtonedLayoutViewModel);this.updateRendererStamper()}};
_.M.dataChanged=function(){var S=this,p=_.$L();p?p.getPlayerPromise().then(function(U){S.contentVideoId&&U.getVideoUrl().includes("v="+S.contentVideoId)||(S.cancelPendingCompanionAdJobs(),S.updateRendererStamper())}):_.fU(Error("gm"))};
_.M.cancelPendingCompanionAdJobs=function(){this.updateCompanionDataJobId&&(_.PA.cancelJob(this.updateCompanionDataJobId),this.updateCompanionDataJobId=0)};
_.M.handleCompanionAdClicked=function(S,p){this.player.onAdUxClicked(S,p);this.player.pauseVideo()};
Q$.prototype.dataChanged=Q$.prototype.dataChanged;_.x([_.F(_.eL.YtComponentBehavior),_.E("design:type",Object)],Q$.prototype,"ytComponentBehavior",void 0);_.x([_.F(_.Aj.YtActionHandlerBehavior),_.E("design:type",Object)],Q$.prototype,"ytActionHandlerBehavior",void 0);_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],Q$.prototype,"ytRendererBehavior",void 0);_.x([_.F(_.qH.YtRendererstamperBehavior),_.E("design:type",Object)],Q$.prototype,"ytRendererstamperBehavior",void 0);
_.x([_.F(_.Cj.YtPlayerListenerBehavior),_.E("design:type",_.xt)],Q$.prototype,"ytPlayerListenerBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],Q$.prototype,"data",void 0);_.x([_.g(),_.E("design:type",Object)],Q$.prototype,"oneofRenderer",void 0);_.x([_.z4("data"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],Q$.prototype,"dataChanged",null);Q$=_.x([_.f({is:"ytd-companion-slot-renderer",disableElementRegistration:!0})],Q$);
_.C(Q$,"ytd-companion-slot-renderer",function(){if($5i!==void 0)return $5i;var S=document.createElement("template");_.h(S,'\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');S.content.insertBefore(_.t().content.cloneNode(!0),S.content.firstChild);return $5i=S},{mode:_.UW("kevlar_poly_si_batch_j067")?
1:2});var qmL;var ny=function(){return _.w.apply(this,arguments)||this};
_.r(ny,_.w);ny.prototype.dataChanged=function(){this.companionSlotData={hack:!0}};
ny.prototype.dataChanged=ny.prototype.dataChanged;_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],ny.prototype,"ytRendererBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],ny.prototype,"data",void 0);_.x([_.g(),_.E("design:type",Object)],ny.prototype,"companionSlotData",void 0);_.x([_.z4("data"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],ny.prototype,"dataChanged",null);
ny=_.x([_.f({disableElementRegistration:!0,is:"ytd-player-legacy-desktop-watch-ads-renderer"})],ny);
_.C(ny,"ytd-player-legacy-desktop-watch-ads-renderer",function(){if(qmL!==void 0)return qmL;var S=document.createElement("template");_.h(S,'\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');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);return qmL=S},{mode:1});var ADT;var J_=function(){var S=_.w.apply(this,arguments)||this;S.skinnyMode=!1;S.COMPACT_EVENT_COUNT=4;S.onShelfToggleButtonTap=function(){S.logTap(S.data);S.showingMore=!S.showingMore};
S.onShelfToggleButtonFocus=function(){S.showingMore||(S.logTap(S.data),S.showingMore=!0,_.oH(S,function(){var p=S.COMPACT_EVENT_COUNT-1,U;(U=_.tB(S.hostElement).querySelector("#event-"+p))==null||U.focus()}))};
return S};
_.r(J_,_.w);_.M=J_.prototype;_.M.attached=function(){this.shelfToggleButton.addEventListener("tap",this.onShelfToggleButtonTap);this.shelfToggleButton.addEventListener("focus",this.onShelfToggleButtonFocus);this.addInfoTooltipListeners()};
_.M.detached=function(){this.shelfToggleButton.removeEventListener("tap",this.onShelfToggleButtonTap);this.shelfToggleButton.removeEventListener("focus",this.onShelfToggleButtonFocus);this.removeInfoTooltipListeners()};
_.M.addInfoTooltipListeners=function(){this.infoContainer.addEventListener("tap",_.d9(this.infoTooltip,this.infoTooltip.show));this.infoContainer.addEventListener("mouseenter",_.d9(this.infoTooltip,this.infoTooltip.show));this.infoContainer.addEventListener("focus",_.d9(this.infoTooltip,this.infoTooltip.show));this.infoContainer.addEventListener("mouseleave",_.d9(this.infoTooltip,this.infoTooltip.hide));this.infoContainer.addEventListener("blur",_.d9(this.infoTooltip,this.infoTooltip.hide))};
_.M.removeInfoTooltipListeners=function(){this.infoContainer.removeEventListener("tap",_.d9(this.infoTooltip,this.infoTooltip.show));this.infoContainer.removeEventListener("mouseenter",_.d9(this.infoTooltip,this.infoTooltip.show));this.infoContainer.removeEventListener("focus",_.d9(this.infoTooltip,this.infoTooltip.show));this.infoContainer.removeEventListener("mouseleave",_.d9(this.infoTooltip,this.infoTooltip.hide));this.infoContainer.removeEventListener("blur",_.d9(this.infoTooltip,this.infoTooltip.hide))};
_.M.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)};
_.M.onShowingMoreChanged=function(){var S;this.showingMoreChanged((S=this.showingMore)!=null?S:!1)};
_.M.showingMoreChanged=function(S){var p=this.get("data.events")||[];this.set("restEvents",p.slice(1,S?p.length:this.COMPACT_EVENT_COUNT).map(function(U){return U.ticketEventRenderer}));
p.slice(0,S?p.length:this.COMPACT_EVENT_COUNT).forEach(function(U){var Y=_.X$();U=U.ticketEventRenderer.trackingParams;_.F$()&&Y&&U&&(U=_.JS(U),Y&&_.a2(Y,U))});
this.shelfTogglerLabelText=this.showingMore?this.data.showLess||"":this.data.showMore||"";this.shelfTogglerIcon=this.showingMore?"yt-icons:expand-less":"yt-icons:expand-more"};
_.M.computeAriaLabel=function(S){return S.subtitle1+", "+S.subtitle2};
_.M.logTap=function(S){_.F$()&&this.ytRendererBehavior.logExplicitClick(S)};
_.M.isKeyboardAction=function(S){return this.get("detail.x",S)===0&&this.get("detail.y",S)===0};
_.M.onFirstEventTap=function(S){S.target&&this.handleTap(S.target,this.firstEvent,this.isKeyboardAction(S))};
_.M.onTicketLinkTap=function(S){S.target&&this.handleTap(S.target,S.model.item,this.isKeyboardAction(S))};
_.M.handleTap=function(S,p,U){if(p.buttonCommand)if(p.hasMultipleOffers)Object.assign(_.b(p.buttonCommand,_.KQ),{properties:{source:U?"keyboard":"tap"}}),this.logTap(p),this.popupPositionTarget=S,_.Lp(this.hostElement,[p.buttonCommand],this.hostElement);else{var Y;if((Y=_.b(p.buttonCommand,_.Cv))==null?0:Y.url)this.logTap(p),_.s3(window,_.b(p.buttonCommand,_.Cv).url)}};
J_.prototype.onShowingMoreChanged=J_.prototype.onShowingMoreChanged;J_.prototype.dataChanged=J_.prototype.dataChanged;_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],J_.prototype,"ytRendererBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],J_.prototype,"data",void 0);_.x([_.g(),_.E("design:type",Object)],J_.prototype,"firstEvent",void 0);_.x([_.g(),_.E("design:type",Object)],J_.prototype,"restEvents",void 0);_.x([_.g(),_.E("design:type",String)],J_.prototype,"imageUrl",void 0);
_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Boolean)],J_.prototype,"showingMore",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Boolean)],J_.prototype,"canShowMore",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],J_.prototype,"skinnyMode",void 0);_.x([_.g(),_.E("design:type",HTMLElement)],J_.prototype,"popupPositionTarget",void 0);_.x([_.O2("#banner-info-tooltip"),_.E("design:type",Object)],J_.prototype,"infoTooltip",void 0);
_.x([_.O2("#info-container"),_.E("design:type",HTMLElement)],J_.prototype,"infoContainer",void 0);_.x([_.O2("#shelf-toggler"),_.E("design:type",HTMLElement)],J_.prototype,"shelfToggleButton",void 0);_.x([_.O2("#separator"),_.E("design:type",HTMLDivElement)],J_.prototype,"separator",void 0);_.x([_.g(),_.E("design:type",String)],J_.prototype,"shelfTogglerLabelText",void 0);_.x([_.g(),_.E("design:type",String)],J_.prototype,"shelfTogglerIcon",void 0);
_.x([_.z4("data"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],J_.prototype,"dataChanged",null);_.x([_.z4("showingMore"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],J_.prototype,"onShowingMoreChanged",null);J_=_.x([_.f({disableElementRegistration:!0,is:"ytd-ticket-shelf-renderer"})],J_);
_.C(J_,"ytd-ticket-shelf-renderer",function(){if(ADT!==void 0)return ADT;var S=document.createElement("template");_.h(S,'\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');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);return ADT=S},{mode:1});var tUn;var cDt;var y$=function(){return _.w.apply(this,arguments)||this};
_.r(y$,_.w);_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],y$.prototype,"ytRendererBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],y$.prototype,"data",void 0);y$=_.x([_.f({disableElementRegistration:!0,is:"ytd-comments-entry-point-message-renderer"})],y$);
_.C(y$,"ytd-comments-entry-point-message-renderer",function(){if(cDt!==void 0)return cDt;var S=document.createElement("template");_.h(S,'\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');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);return cDt=S},{mode:1});var SUT;var Ky=function(){return _.w.apply(this,arguments)||this};
_.r(Ky,_.w);_.$u.Object.defineProperties(Ky.prototype,{hasAvatar:{configurable:!0,enumerable:!0,get:function(){var S;return!((S=this.data)==null||!S.teaserAvatar)}}});
_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],Ky.prototype,"ytRendererBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],Ky.prototype,"data",void 0);_.x([_.e("data"),_.E("design:type",Boolean),_.E("design:paramtypes",[])],Ky.prototype,"hasAvatar",null);Ky=_.x([_.f({disableElementRegistration:!0,is:"ytd-comments-entry-point-teaser-renderer"})],Ky);
_.C(Ky,"ytd-comments-entry-point-teaser-renderer",function(){if(SUT!==void 0)return SUT;var S=document.createElement("template");_.h(S,'\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>');
S.content.insertBefore(_.t().content.cloneNode(!0),S.content.firstChild);return SUT=S},{mode:1});var p_i;var bk=function(){return _.w.apply(this,arguments)||this};
_.r(bk,_.w);_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],bk.prototype,"ytRendererBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],bk.prototype,"data",void 0);bk=_.x([_.f({disableElementRegistration:!0,is:"ytd-comments-simplebox-renderer"})],bk);
_.C(bk,"ytd-comments-simplebox-renderer",function(){if(p_i!==void 0)return p_i;var S=document.createElement("template");_.h(S,'\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>');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);return p_i=S},{mode:1});var j6=function(){var S=_.w.apply(this,arguments)||this;S.fullHeight=!_.y("comment_teaser_full_height_kill_switch")&&_.y("kevlar_watch_grid");return S};
_.r(j6,_.w);j6.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"}}}};
j6.prototype.attached=function(){this.hostElement.setAttribute("role","button");this.hostElement.setAttribute("tabindex","0")};
j6.prototype.onTap=function(){var S=this.tapCommand;S&&(this.data&&this.ytRendererBehavior.logExplicitClick(this.data),this.ytComponentBehavior.resolveCommand(S))};
j6.prototype.onKeyUp=function(S){if(S.keyCode===13)this.onTap()};
_.$u.Object.defineProperties(j6.prototype,{tapCommand:{configurable:!0,enumerable:!0,get:function(){var S;if((S=this.data)==null?0:S.onTap)return this.data.onTap;var p,U;if(((p=this.data)==null?0:p.teaserContent)||((U=this.data)==null?0:U.simpleboxPlaceholder))return{signalAction:{signal:"SCROLL_TO_COMMENTS"}}}},
simpleboxPlaceholder:{configurable:!0,enumerable:!0,get:function(){var S;return(S=this.data)==null?void 0:S.simpleboxPlaceholder}},
hasSimpleboxPlaceholder:{configurable:!0,enumerable:!0,get:function(){return!!this.simpleboxPlaceholder}},
simpleboxAvatar:{configurable:!0,enumerable:!0,get:function(){var S;return(S=this.data)==null?void 0:S.simpleboxAvatar}},
teaserContent:{configurable:!0,enumerable:!0,get:function(){var S;return(S=this.data)==null?void 0:S.teaserContent}},
hasTeaserContent:{configurable:!0,enumerable:!0,get:function(){return!!this.teaserContent}},
teaserAvatar:{configurable:!0,enumerable:!0,get:function(){var S;return(S=this.data)==null?void 0:S.teaserAvatar}},
hasTeaserAvatar:{configurable:!0,enumerable:!0,get:function(){return!!this.teaserAvatar}},
messageText:{configurable:!0,enumerable:!0,get:function(){var S;return(S=this.data)==null?void 0:S.messageText}},
contentRenderer:{configurable:!0,enumerable:!0,get:function(){var S;return(S=this.data)==null?void 0:S.contentRenderer}},
hasContents:{configurable:!0,enumerable:!0,get:function(){var S;return(S=this.data)!=null&&S.contents?this.data.contents.length>0:!1}},
hasContentRenderer:{configurable:!0,enumerable:!0,get:function(){return!!this.contentRenderer}}});
j6.prototype.onKeyUp=j6.prototype.onKeyUp;j6.prototype.onTap=j6.prototype.onTap;_.x([_.F(_.qH.YtRendererstamperBehavior),_.E("design:type",Object)],j6.prototype,"ytRendererstamperBehavior",void 0);_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],j6.prototype,"ytRendererBehavior",void 0);_.x([_.F(_.eL.YtComponentBehavior),_.E("design:type",Object)],j6.prototype,"ytComponentBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],j6.prototype,"data",void 0);
_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],j6.prototype,"fullHeight",void 0);_.x([_.e("data"),_.E("design:type",Object),_.E("design:paramtypes",[])],j6.prototype,"tapCommand",null);_.x([_.e("data"),_.E("design:type",Object),_.E("design:paramtypes",[])],j6.prototype,"simpleboxPlaceholder",null);_.x([_.e("data"),_.E("design:type",Boolean),_.E("design:paramtypes",[])],j6.prototype,"hasSimpleboxPlaceholder",null);
_.x([_.e("data"),_.E("design:type",Object),_.E("design:paramtypes",[])],j6.prototype,"simpleboxAvatar",null);_.x([_.e("data"),_.E("design:type",Object),_.E("design:paramtypes",[])],j6.prototype,"teaserContent",null);_.x([_.e("data"),_.E("design:type",Boolean),_.E("design:paramtypes",[])],j6.prototype,"hasTeaserContent",null);_.x([_.e("data"),_.E("design:type",Object),_.E("design:paramtypes",[])],j6.prototype,"teaserAvatar",null);
_.x([_.e("data"),_.E("design:type",Boolean),_.E("design:paramtypes",[])],j6.prototype,"hasTeaserAvatar",null);_.x([_.e("data"),_.E("design:type",Object),_.E("design:paramtypes",[])],j6.prototype,"messageText",null);_.x([_.e("data"),_.E("design:type",Object),_.E("design:paramtypes",[])],j6.prototype,"contentRenderer",null);_.x([_.e("data"),_.g({reflectToAttribute:!0}),_.E("design:type",Boolean),_.E("design:paramtypes",[])],j6.prototype,"hasContents",null);
_.x([_.e("data"),_.g({reflectToAttribute:!0}),_.E("design:type",Boolean),_.E("design:paramtypes",[])],j6.prototype,"hasContentRenderer",null);_.x([_.Vd("click"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],j6.prototype,"onTap",null);_.x([_.Vd("keypress"),_.E("design:type",Function),_.E("design:paramtypes",[_.dM]),_.E("design:returntype")],j6.prototype,"onKeyUp",null);j6=_.x([_.f({disableElementRegistration:!0,is:"ytd-comments-entry-point-header-renderer"})],j6);
_.C(j6,"ytd-comments-entry-point-header-renderer",function(){if(tUn!==void 0)return tUn;var S=document.createElement("template");_.h(S,'\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>');
S.content.insertBefore(_.t().content.cloneNode(!0),S.content.firstChild);return tUn=S},{mode:1});var U4J;_.y("web_enable_sink_animated_rolling_character_and_number")?_.qm(_.xrc,"yt-animated-rolling-number",{props:{numberText:_.x2,numberValue:_.x2,heightPx:_.x2,fontSizeMultiplier:_.x2,shouldAnimate:_.x2,forceRollUp:_.x2}}):_.Ls(_.yJq,"yt-animated-rolling-number",{propNames:["numberText","numberValue","heightPx","shouldAnimate","forceRollUp"]});var YUL=Number(getComputedStyle(document.documentElement).fontSize.replace("px","")),LkT={numberText:"",heightPx:2*YUL,shouldAnimate:!1},ru=function(){var S=_.w.apply(this,arguments)||this;S.usingAnimatedComponents=!0;S.wasDetailed=!1;S.JSC$20257_browserSupportsAnimation=_.y("web_supports_animations_api");S.actionMap={"yt-update-viewership-action":"onYtUpdateViewershipAction","yt-update-date-text-action":"onYtUpdateDateTextAction"};S.detailed=!1;S.shouldAnimate=!1;S.viewCountProps=LkT;S.dateTextProps=
LkT;S.metadataBadgesInDescription=_.y("web_metadata_badges_in_description");return S};
_.r(ru,_.w);_.M=ru.prototype;_.M.resetAnimationState=function(){this.shouldAnimate=!1};
_.M.updateDynamicMetadata=function(){if(this.JSC$20257_browserSupportsAnimation){if(!this.detailed){var S,p,U,Y;var L=(S=this.videoPrimaryInfoRenderer)==null?void 0:(p=S.viewCount)==null?void 0:(U=p.videoViewCountRenderer)==null?void 0:(Y=U.extraShortViewCount)==null?void 0:Y.simpleText;var I,V,W,O;var D=(I=this.videoPrimaryInfoRenderer)==null?void 0:(V=I.viewCount)==null?void 0:(W=V.videoViewCountRenderer)==null?void 0:(O=W.shortViewCount)==null?void 0:O.simpleText}if(!D){var z,Q,J,K;L=(z=this.videoPrimaryInfoRenderer)==
null?void 0:(Q=z.viewCount)==null?void 0:(J=Q.videoViewCountRenderer)==null?void 0:(K=J.unlabeledViewCountValue)==null?void 0:K.simpleText;var G,X,Z,l;D=(G=this.videoPrimaryInfoRenderer)==null?void 0:(X=G.viewCount)==null?void 0:(Z=X.videoViewCountRenderer)==null?void 0:(l=Z.viewCount)==null?void 0:l.simpleText}var a,N,m;S=Number((a=this.videoPrimaryInfoRenderer)==null?void 0:(N=a.viewCount)==null?void 0:(m=N.videoViewCountRenderer)==null?void 0:m.originalViewCount);var A,q;a=(A=this.videoPrimaryInfoRenderer)==
null?void 0:(q=A.relativeDateText)==null?void 0:q.simpleText;var TG;A=!((TG=this.videoPrimaryInfoRenderer)==null||!TG.relativeDateText);if(L&&D&&S&&(a||!A)){this.wasDetailed!==this.detailed&&(this.shouldAnimate=!1);this.wasDetailed=this.detailed;TG=D.split(new RegExp("("+L+")"));L=quL(TG[0]);var Je;D={numberText:(Je=TG[1])!=null?Je:"",numberValue:S,heightPx:2*YUL,shouldAnimate:this.shouldAnimate&&!!this.viewCountProps.numberText};var GG;Je=((GG=TG[2])!=null?GG:"")+"  ";this.setViewCount(D,L,quL(Je));
if(!this.detailed&&A){L=a.split(/(\d+)/);GG=quL(L[0]);var Zw;Je={numberText:(Zw=L[1])!=null?Zw:"",heightPx:2*YUL,shouldAnimate:this.shouldAnimate&&!!this.dateTextProps.numberText};var Ru;Zw=((Ru=L[2])!=null?Ru:"")+"  ";this.setDateText(Je,GG,quL(Zw))}else this.setDateText();this.usingAnimatedComponents=!0;this.shouldAnimate=!1}else this.usingAnimatedComponents=!1,this.setViewCount(),this.setDateText()}else this.usingAnimatedComponents=!1};
_.M.setViewCount=function(S,p,U){_.mA(p)!==_.mA(this.viewCountPreNumberText)&&(this.viewCountPreNumberText=p);this.viewCountProps.numberText!==(S==null?void 0:S.numberText)&&(this.viewCountProps=S||LkT);_.mA(U)!==_.mA(this.viewCountPostNumberText)&&(this.viewCountPostNumberText=U)};
_.M.setDateText=function(S,p,U){_.mA(p)!==_.mA(this.dateTextPreNumberText)&&(this.dateTextPreNumberText=p);this.dateTextProps.numberText!==(S==null?void 0:S.numberText)&&(this.dateTextProps=S||LkT);_.mA(U)!==_.mA(this.dateTextPostNumberText)&&(this.dateTextPostNumberText=U)};
_.M.onYtUpdateViewershipAction=function(S){this.videoPrimaryInfoRenderer&&(_.b(S,coP).isEmpty?this.set("videoPrimaryInfoRenderer.viewCount",null):_.b(S,coP).viewCount&&(this.shouldAnimate=!0,this.set("videoPrimaryInfoRenderer.viewCount",_.b(S,coP).viewCount)))};
_.M.onYtUpdateDateTextAction=function(S){if(this.videoPrimaryInfoRenderer){S=_.b(S,_.AoE).dateText;this.shouldAnimate=!0;var p;((p=this.videoPrimaryInfoRenderer)==null?0:p.relativeDateText)?this.set("videoPrimaryInfoRenderer.relativeDateText",S):this.set("videoPrimaryInfoRenderer.dateText",S)}};
_.$u.Object.defineProperties(ru.prototype,{infoText:{configurable:!0,enumerable:!0,get:function(){return Bhn(this.videoPrimaryInfoRenderer,this.detailed,!this.usingAnimatedComponents)}},
descriptionInfoTooltipText:{configurable:!0,enumerable:!0,get:function(){return _.mA(Bhn(this.videoPrimaryInfoRenderer,!0,!0,!1,"\u2022"))}},
showDescriptionInfoTooltip:{configurable:!0,enumerable:!0,get:function(){return!this.detailed}},
animatedViewCountAccessibilityLabel:{configurable:!0,enumerable:!0,get:function(){return[_.mA(this.viewCountPreNumberText),this.viewCountProps.numberText,_.mA(this.viewCountPostNumberText)].join("")}},
animatedDateTextAccessibilityLabel:{configurable:!0,enumerable:!0,get:function(){return[_.mA(this.dateTextPreNumberText),this.dateTextProps.numberText,_.mA(this.dateTextPostNumberText)].join("")}}});
ru.prototype.updateDynamicMetadata=ru.prototype.updateDynamicMetadata;ru.prototype.resetAnimationState=ru.prototype.resetAnimationState;_.x([_.F(_.eL.YtComponentBehavior),_.E("design:type",Object)],ru.prototype,"ytComponentBehavior",void 0);_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],ru.prototype,"ytRendererBehavior",void 0);_.x([_.F(_.qH.YtRendererstamperBehavior),_.E("design:type",Object)],ru.prototype,"ytRendererstamperBehavior",void 0);
_.x([_.F(_.Aj.YtActionHandlerBehavior),_.E("design:type",Object)],ru.prototype,"ytActionHandlerBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],ru.prototype,"videoPrimaryInfoRenderer",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],ru.prototype,"detailed",void 0);_.x([_.g(),_.E("design:type",Object)],ru.prototype,"shouldAnimate",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],ru.prototype,"viewCountPreNumberText",void 0);
_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],ru.prototype,"viewCountProps",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],ru.prototype,"viewCountPostNumberText",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],ru.prototype,"dateTextPreNumberText",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],ru.prototype,"dateTextProps",void 0);
_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],ru.prototype,"dateTextPostNumberText",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],ru.prototype,"metadataBadgesInDescription",void 0);_.x([_.e("videoPrimaryInfoRenderer","videoPrimaryInfoRenderer.dateText","videoPrimaryInfoRenderer.viewCount","detailed","usingAnimatedComponents"),_.E("design:type",Object),_.E("design:paramtypes",[])],ru.prototype,"infoText",null);
_.x([_.e("videoPrimaryInfoRenderer","videoPrimaryInfoRenderer.dateText","videoPrimaryInfoRenderer.viewCount"),_.E("design:type",String),_.E("design:paramtypes",[])],ru.prototype,"descriptionInfoTooltipText",null);_.x([_.e("detailed"),_.E("design:type",Boolean),_.E("design:paramtypes",[])],ru.prototype,"showDescriptionInfoTooltip",null);
_.x([_.e("viewCountPreNumberText","viewCountProps.numberText","viewCountPostNumberText"),_.E("design:type",String),_.E("design:paramtypes",[])],ru.prototype,"animatedViewCountAccessibilityLabel",null);_.x([_.e("dateTextPreNumberText","dateTextProps.numberText","dateTextPostNumberText"),_.E("design:type",String),_.E("design:paramtypes",[])],ru.prototype,"animatedDateTextAccessibilityLabel",null);
_.x([_.T4("videoPrimaryInfoRenderer"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],ru.prototype,"resetAnimationState",null);_.x([_.T4("videoPrimaryInfoRenderer","videoPrimaryInfoRenderer.dateText","videoPrimaryInfoRenderer.viewCount","detailed"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],ru.prototype,"updateDynamicMetadata",null);ru=_.x([_.f({disableElementRegistration:!0,is:"ytd-watch-info-text"})],ru);
_.C(ru,"ytd-watch-info-text",function(){if(U4J!==void 0)return U4J;var S=document.createElement("template");_.h(S,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-watch-info-text--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="info-container" class="style-scope ytd-watch-info-text">\n  <div id="view-count" aria-label$="[[animatedViewCountAccessibilityLabel]]" class="style-scope ytd-watch-info-text">\n    <yt-formatted-string aria-hidden="true" text="[[viewCountPreNumberText]]" class="style-scope ytd-watch-info-text"></yt-formatted-string>\n    <yt-animated-rolling-number 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');
S.content.insertBefore(_.t().content.cloneNode(!0),S.content.firstChild);return U4J=S},{mode:1});var M1q;var Iiq=_.$k(function(S){var p=S.data;var U=S.setTapCommand;_.R8(function(){var Y=_.sW(p().onTap);U(Y)});
return _.H("yt-comment-input-box-carousel-item-view-model",{class:"ytCommentInputBoxCarouselItemViewModelHost"},_.H(_.yP,{data:function(){return p().avatar}},{avatarViewModel:_.bS}),_.H("div",{class:"ytCommentInputBoxCarouselItemViewModelInputBox"},_.H("span",null,function(){return p().simpleboxText})))},"$i");var d4n=_.$k(function(S){return _.H("comments-entry-point-teaser-view-model",{class:"ytCommentsEntryPointTeaserViewModelHost"},_.H(_.n,{cond:function(){return _.b(S.data().avatar,_.xO)},
then:function(p){return _.H(_.bS,{data:p,avatarButtonCustomClassName:"ytCommentsEntryPointTeaserViewModelAvatar"})}}),_.H("div",{class:"ytCommentsEntryPointTeaserViewModelTeaser"},_.H(_.i6,{text:function(){return S.data().teaserText}})))},"aj");var V1X=_.$k(function(S){var p=S.data;var U=S.setTapCommand;_.R8(function(){var Y=_.sW(p().onTap);U(Y)});
return _.H("yt-comment-teaser-carousel-item-view-model",{class:"ytCommentTeaserCarouselItemViewModelHost"},_.H(_.yP,{data:function(){return p().teasers}},{commentsEntryPointTeaserViewModel:d4n}))},"bj");var TDs=_.$k(function(S){var p=S.data;var U=S.setTapCommand;_.R8(function(){var Y=_.sW(p().onTap);U(Y)});
return _.H("yt-comments-entry-point-message-view-model",{class:"ytCommentsEntryPointMessageViewModelHost"},_.H(_.i6,{text:function(){return p().messageText}}))},"cj");var WkE=_.$k(function(S){var p=S.data;var U=S.setTapCommand;var Y=S.isDisabled;_.R8(function(){var L=(Y==null?0:Y())?void 0:_.sW(p().onTap);U(L)});
return _.H("yt-text-carousel-item-view-model",{class:"ytTextCarouselItemViewModelHost"},_.H(_.QD,{icon:function(){return p().iconName},
className:"ytTextCarouselItemViewModelImageType"}),_.H(_.n,{cond:function(){return p().image},
then:function(L){return _.H(_.of,{data:L,alt:"",className:"ytTextCarouselItemViewModelImageType"})}}),_.H(_.i6,{text:function(){return p().text},
className:function(){return p().image||p().iconName?"ytTextCarouselItemViewModelText":"ytTextCarouselItemViewModelTextWithoutImage"},
ellipsisTruncate:!0}),_.H(_.yP,{data:function(){return p().button}},{buttonViewModel:function(L){return _.H(_.PG,{data:L.data,
className:"ytTextCarouselItemViewModelButton",buttonOverrides:function(){return{disabled:Y==null?void 0:Y()}}})}}))},"dj");var OML=_.$k(function(S){var p=S.data;var U=S.itemIndex;var Y=S.selectedIndex;var L=S.indexUpdatedCallback;var I=S.observer;S=S.title;var V=_.vH(function(Q){_.y("web_metadata_carousel_elref_bugfix")&&I&&I().observe(Q)}),W=function(Q){U()===Y()&&L(Q)},O=_.Xc(R3q),D=_.Xc(FRY),z=function(){var Q,J,K;
return((Q=p())==null?void 0:Q.itemType)==="VIDEO_METADATA_CAROUSEL_PAGINATION_TYPE_LIVE_CHAT_STATIC_TEXT"&&!O()||((J=p())==null?void 0:J.itemType)==="VIDEO_METADATA_CAROUSEL_PAGINATION_TYPE_QUIZ_TEASER_STATIC_TEXT"&&D().includes("PAposts_by_host")||((K=p())==null?void 0:K.itemType)==="VIDEO_METADATA_CAROUSEL_PAGINATION_TYPE_YOUCHAT_STATIC_TEXT"&&D().includes("PAyouchat")};
_.FM(function(){_.y("web_metadata_carousel_elref_bugfix")||I&&I().observe(V.value)});
return _.H("yt-carousel-item-view-model",{el:V,class:"ytCarouselItemViewModelHost",tabindex:0,"aria-label":S},_.H(_.yP,{data:function(){var Q,J;return(J=(Q=_.b(p().carouselItem,KTY))==null?void 0:Q.textCarousel)!=null?J:p().carouselItem}},{textCarouselItemViewModel:function(Q){return _.H(WkE,{data:Q.data,
setTapCommand:W,isDisabled:z})},
commentTeaserCarouselItemViewModel:function(Q){return _.H(V1X,{data:Q.data,setTapCommand:W})},
commentInputBoxCarouselItemViewModel:function(Q){return _.H(Iiq,{data:Q.data,setTapCommand:W})},
commentsEntryPointMessageViewModel:function(Q){return _.H(TDs,{data:Q.data,setTapCommand:W})}}))},"ej");var kzd=_.$k(function(S){var p=S.numDots;var U=S.activeIndex;return _.H("yt-carousel-dots-shape",{class:"ytCarouselDotsShapeHost"},_.H(_.KU,{each:function(){return Array.from({length:p()})},
keyBy:"INDEX"},function(Y,L){return _.H("div",{class:function(){var I={};return _.W7("ytCarouselDotsShapeDot",(I.ytCarouselDotsShapeDotActive=L===U(),I))}})}))},"fj");var HME=_.$k(function(S){var p=S.data;var U=S.handleCarouselNavigation;var Y=S.numItems;var L=S.selectedIndex;var I=function(){return{disabled:L()===0}},V=function(){return{disabled:L()===Y()-1}};
return _.H("yt-carousel-title-view-model",{class:"ytCarouselTitleViewModelHost"},_.H("div",null,_.H("h2",{class:"ytCarouselTitleViewModelTitle","aria-live":"polite"},function(){return p().title}),_.H(_.n,{cond:function(){return p().subtitle},
then:function(W){return _.H("span",{class:"ytCarouselTitleViewModelSubtitle","aria-label":function(){return p().subtitleAccessibilityText}},W)}})),_.H(_.n,{cond:function(){return Y()>1},
then:function(){return _.H("div",{class:"ytCarouselTitleViewModelNavigation"},_.H(kzd,{numDots:Y,activeIndex:L}),_.H(_.n,{cond:function(){return p().previousButton},
then:function(W){return _.H(_.yP,{data:W},{buttonViewModel:function(O){return _.H(_.PG,{data:O.data,className:"ytCarouselTitleViewModelNavigationButton",onClick:function(){return U(-1)},
buttonOverrides:I})}})}}),_.H(_.n,{cond:function(){return p().nextButton},
then:function(W){return _.H(_.yP,{data:W},{buttonViewModel:function(O){return _.H(_.PG,{data:O.data,className:"ytCarouselTitleViewModelNavigationButton",onClick:function(){return U(1)},
buttonOverrides:V})}})}}))}}))},"gj");_.qm(_.$k(function(S){var p=S.data;var U,Y=_.vH(),L=_.vH(function(A){if(_.y("web_metadata_carousel_elref_bugfix")){var q=function(){var TG=A.offsetWidth*X(),Je=24*(X()-1);J(TG+Je)};
q();window.ResizeObserver&&(U=new ResizeObserver(q),U.observe(A))}}),I=_.g7("HTML_DIR")==="rtl",V=!1,W=0,O=0;
S=_.d(_.kj(0,void 0,"f4aYxe"));var D=S.next().value,z=S.next().value;S=_.d(_.kj(0,void 0,"kU9O9"));var Q=S.next().value,J=S.next().value;S=_.d(_.kj(!1,void 0,"GqphDd"));var K=S.next().value,G=S.next().value,X=function(){var A,q,TG;return(TG=(A=p())==null?void 0:(q=A.carouselTitles)==null?void 0:q.length)!=null?TG:0},Z=function(){L.value&&L.value.scrollLeft!==W&&z((I?L.value.scrollLeft<W:L.value.scrollLeft>W)?Math.min(D()+1,X()-1):Math.max(D()-1,0))},l;
window.IntersectionObserver&&(l=new IntersectionObserver(function(A){A=_.d(A);for(var q=A.next();!q.done;q=A.next())if(q.value.isIntersecting){if(V){V=!1;break}Z()}else z(O)},{threshold:.2}));
_.R8(function(){if(L.value){var A=(I?-1:1)*(Q()/X()+12)*(K()&&l?O:D());typeof L.value.scrollTo==="function"?L.value.scrollTo({left:A,behavior:"smooth"}):L.value.scrollLeft=A;W=A;O=K()&&l?O:D()}});
var a,N=function(A){a=A};
_.FM(function(){if(!_.y("web_metadata_carousel_elref_bugfix")){var A=function(){var TG=L.value.offsetWidth*X(),Je=24*(X()-1);J(TG+Je)};
A();if(window.ResizeObserver){var q=new ResizeObserver(A);q.observe(L.value);_.FG(function(){q.disconnect();l&&l.disconnect()})}}});
_.FG(function(){if(_.y("web_metadata_carousel_elref_bugfix")){var A;(A=U)==null||A.disconnect();var q;(q=l)==null||q.disconnect()}});
var m=function(A){A=D()+A;A>=0&&A<X()&&(V=!0,z(A))};
return _.H("yt-video-metadata-carousel-view-model",{class:"ytVideoMetadataCarouselViewModelHost",el:Y,"on:click":_.kL(function(A){if(_.l6(_.w8(A),Y.value,["BUTTON".toString()])||!a)return!1;_.tW().resolve(_.cQ).resolveCommand(a,{forceClickLogging:!0});return!1}),
"on:touchstart":_.kL(function(){G(!0);return!1}),
"on:touchend":_.kL(function(){l||Z();G(!1);return!1}),
hidden:function(){var A,q;return!((A=p())==null?0:(q=A.carouselItems)==null?0:q.length)}},_.H("div",{class:"ytVideoMetadataCarouselViewModelTitleSection"},_.H(_.n,{cond:function(){return p().carouselTitles},
then:function(A){return _.H(_.yP,{data:function(){return A()[K()&&l?O:D()]}},{carouselTitleViewModel:function(q){return _.H(HME,{data:q.data,
handleCarouselNavigation:m,numItems:X,selectedIndex:D})}})}})),_.H("div",{class:"ytVideoMetadataCarouselViewModelCarouselContainer",
el:L},_.H("div",{class:"ytVideoMetadataCarouselViewModelItemSection",style:function(){return"min-width: "+Q()+"px;"}},_.H(_.n,{cond:function(){return p().carouselItems},
then:function(A){return _.H(_.KU,{each:A},function(q,TG){return _.H(_.yP,{data:function(){return q}},{carouselItemViewModel:function(Je){return _.H(OML,{data:Je.data,
itemIndex:TG,selectedIndex:D,indexUpdatedCallback:N,observer:l,title:function(){a:{var GG=TG();var Zw,Ru=(Zw=p())==null?void 0:Zw.carouselTitles;if(Ru&&(GG=Ru[GG])){var sX;GG=(sX=_.b(GG,yoE))==null?void 0:sX.title;break a}GG=void 0}return GG}})}})})}}))))},"hj"),"yt-video-metadata-carousel-view-model",{props:{data:_.x2}});var D4d=_.y("web_action_buttons_update_owner_width")?32:12,GL=function(){var S=_.w.apply(this,arguments)||this;S.metadataBadgesInDescription=_.y("web_metadata_badges_in_description");S.descriptionCollapsed=!0;S.useFadedScrimDescription=_.y("kevlar_enable_faded_scrim_on_description");S.skinnyMode=!1;S.playlist=!1;S.isDark=document.documentElement.hasAttribute("dark");S.disableVideoOwnerOnTap=_.y("swatchie_video_owner_on_tap_ks");S.swatcherooDelayLoad=_.y("swatcheroo_enable_ghost_cards");S.primaryMenuWidth=
0;S.videoId="";S.titleHeadlineXs=_.y("web_watch_typography_title_headline_xs");S.titleHeadlineS=_.y("web_watch_typography_title_headline_s");S.titleHeadlineM=_.y("web_watch_typography_title_headline_m");S.titleHashtagBlackLinkified=_.y("web_title_hashtag_black_linkified");S.titleHashtagGreyLinkified=_.y("web_title_hashtag_grey_linkified");S.actionButtonsUpdateOwnerWidth=_.y("web_action_buttons_update_owner_width");S.shouldForceIconOnly=!1;S.actionMap={"yt-update-title-action":"onYtUpdateTitleAction",
"yt-update-description-action":"onYtUpdateDescriptionAction","yt-dark-mode-toggled-action":"onYtDarkModeToggledAction"};S.isFullscreen=!1;S.isTheaterMode=!1;return S};
_.r(GL,_.w);_.M=GL.prototype;_.M.ready=function(){this.updateOwnerAndDescriptionPosition()};
_.M.updateOwnerAndDescriptionPosition=function(){_.y("kevlar_watch_grid")&&(this.skinnyMode?(this.titleElement.appendChild(this.descriptionElement),_.gp(this.bottomRowElement,this.ownerElement)):(_.gp(this.bottomRowElement,this.descriptionElement),_.gp(this.topRowElement,this.ownerElement)))};
_.M.titleOnTap=function(S){if(this.descriptionExpandCommand&&this.skinnyMode&&!_.Eo(_.E1(S)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"TP-YT-PAPER-BUTTON"])){var p;((p=window.getSelection())==null?0:p.toString().length)||this.handleExpandDescriptionCommands()}};
_.M.videoOwnerOnTap=function(S){this.disableVideoOwnerOnTap||this.skinnyMode&&this.videoOwnerCommand&&(_.Eo(_.E1(S)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"TP-YT-PAPER-BUTTON"])||this.ytComponentBehavior.resolveCommand(this.videoOwnerCommand))};
_.M.detached=function(){var S=this,p;return _.T(function(U){(p=S.resizeObserver)==null||p.disconnect();_.OV(U)})};
_.M.maybeAttachResizeObserver=function(){var S=this;this.flexMenuEnabled&&window.ResizeObserver&&(this.resizeThrottle||(this.resizeThrottle=new _.NB(this.resize,200,this)),this.resizeObserver=this.resizeObserver||new ResizeObserver(function(){S.resizeThrottle.fire()}),this.resizeObserver.observe(this.hostElement))};
_.M.maybeUpdateActionsOnSeparateLine=function(){if(this.skinnyMode)this.actionsOnSeparateLine=!0;else if(this.primaryMenuWidth){var S=this.hostElement.clientWidth,p=Math.max(this.largerItemWrap?400:350,S/2-D4d);if(_.y("web_action_buttons_update_owner_width")){var U;p=(((U=document.getElementById("owner"))==null?void 0:U.clientWidth)||0)+D4d}this.actionsOnSeparateLine=this.primaryMenuWidth>S-p?!0:!1}};
_.M.stripAttributedDescription=function(S){return{content:S.content.replace(/[\r\n]{2,}/g,"\n")}};
_.M.configureRendererStamper=function(){return{"videoPrimaryInfoRenderer.videoActions":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer",params:{icon:"yt-icons:more",styleActionButton:!0,disableTextTransformOnButtons:!0,tonalOverride:_.y("web_modern_buttons"),forceIconButton:!_.y("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:_.y("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"}}}};
_.M.videoPrimaryInfoRendererChanged=function(){var S;if((S=this.videoPrimaryInfoRenderer)==null?0:S.trackingParams)this.data={trackingParams:this.videoPrimaryInfoRenderer.trackingParams};this.flexMenuEnabled&&(this.maybeAttachResizeObserver(),this.updatePrimaryMenuWidth())};
_.M.videoSecondaryInfoRendererChanged=function(){var S,p;(p=(S=this.descriptionInlineExpander).collapse)==null||p.call(S);this.descriptionExpandClientVe=_.bZ(110509);this.descriptionCollapseClientVe=_.bZ(110510);S=_.X$();p=_.F$();S&&p&&(_.y("combine_ve_grafts")?(_.pa(_.HX(),this.descriptionExpandClientVe,p),_.pa(_.HX(),this.descriptionCollapseClientVe,p)):_.l5(S,p,[this.descriptionExpandClientVe,this.descriptionCollapseClientVe]))};
_.M.structuredDescriptionContentRendererChanged=function(){_.y("ytd-watch-metadata-manual-sd-updates-killswitch")||(this.useFadedScrimDescription&&this.fadedStructuredDescriptionContentRendererElement?this.fadedStructuredDescriptionContentRendererElement.data=this.structuredDescriptionContentRenderer:this.structuredDescriptionContentRendererElement&&(this.structuredDescriptionContentRendererElement.data=this.structuredDescriptionContentRenderer))};
_.M.updateTopLevelIconsOnly=function(){var S=this;_.y("top_level_update_killswitch")||this.menu&&_.PA.addLowPriorityJob(function(){S.menu.topLevelIconsOnly=S.skinnyMode},_.pA("swathceroo_delay_flexible_menu_update",100))};
_.M.updateShouldForceIconOnly=function(){this.shouldForceIconOnly=this.skinnyMode||_.y("web_action_buttons_minimize_subscribe")};
_.M.moveActionsElement=function(){this.skinnyMode?this.bottomActionsElement.appendChild(this.actionsElement):this.topRowElement.appendChild(this.actionsElement)};
_.M.onYtTextInlineExpanderExpandClicked=function(){this.logExpandClick()};
_.M.onYtTextInlineExpanderCollapseClicked=function(){this.logCollapseClick();this.isWatchFlexy&&this.scrollToTopOfContainer()};
_.M.onYtTextInlineExpanderExpandedChanged=function(){if(!_.y("kevlar_watch_grid")){this.descriptionCollapsed=!this.descriptionInlineExpander.isExpanded;var S,p;(p=(S=this.structuredDescriptionContentRendererElement).resize)==null||p.call(S)}};
_.M.onRenderStamperFinished=function(S){(S==null?void 0:S.target)===this.hostElement&&this.updatePrimaryMenuWidth()};
_.M.onYtExpanderMoreTapped=function(){this.handleExpandDescriptionCommands()};
_.M.onYtExpanderLessTapped=function(){var S,p=(S=this.videoSecondaryInfoRenderer)==null?void 0:S.showLessCommand;p&&this.ytComponentBehavior.resolveCommand(p)};
_.M.onDescriptionDown=function(){this.descriptionCollapsed&&this.descriptionInteraction.triggerDown()};
_.M.onDescriptionUp=function(){this.descriptionCollapsed&&this.descriptionInteraction.triggerUp()};
_.M.onDescriptionClick=function(S){if(!_.Eo(_.E1(S)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"TP-YT-PAPER-BUTTON"])){var p;((p=window.getSelection())==null?0:p.toString().length)||(this.descriptionCollapsed?this.handleExpandDescriptionClick():_.y("kevlar_watch_metadata_entire_collapse_click_target")&&this.handleCollapseDescriptionClick())}};
_.M.handleExpandDescriptionClick=function(){this.descriptionCollapsed&&(this.useFadedScrimDescription&&this.logExpandClick(),this.expandDescription())};
_.M.handleCollapseDescriptionClick=function(){!this.descriptionCollapsed&&this.useFadedScrimDescription&&(this.collapseDescription(),this.scrollToTopOfContainer(),this.logCollapseClick())};
_.M.logCollapseClick=function(){var S=_.X$();S&&this.descriptionCollapseClientVe&&_.xd(S,this.descriptionCollapseClientVe)};
_.M.logExpandClick=function(){var S=_.X$();S&&this.descriptionExpandClientVe&&_.xd(S,this.descriptionExpandClientVe)};
_.M.collapseDescription=function(){this.descriptionCollapsed=!0};
_.M.scrollToTopOfContainer=function(){_.St(this.hostElement,"yt-scroll-to-watch-element",[this.titleElement])};
_.M.expandDescription=function(){if(this.descriptionCollapsed)if(this.useFadedScrimDescription)this.descriptionCollapsed=!1,this.handleExpandDescriptionCommands();else this.descriptionInlineExpander.onExpandClick()};
_.M.handleExpandDescriptionCommands=function(){this.descriptionExpandCommand&&!this.structuredDescriptionContentRenderer&&this.ytComponentBehavior.resolveCommand(this.descriptionExpandCommand)};
_.M.getAboveTheFoldHeight=function(){return this.aboveTheFoldContainer.offsetHeight};
_.M.resize=function(){if(this.descriptionInlineExpander){var S,p;(p=(S=this.descriptionInlineExpander).resize)==null||p.call(S)}else _.eP(new _.y7("Tried to resize description inline expander when the HTML element was null",this.videoSecondaryInfoRenderer));if(this.flexMenuEnabled){var U;(U=this.menu)==null||U.maybeFlushDebouncer();this.primaryMenuWidth===0?this.updatePrimaryMenuWidth():(_.y("web_action_buttons_overlap_fix")&&this.updatePrimaryMenuWidth(),this.maybeUpdateActionsOnSeparateLine())}};
_.M.updatePrimaryMenuWidth=function(){if(this.flexMenuEnabled&&this.menu){var S,p,U,Y,L=_.y("web_action_buttons_update_owner_width")?(U=(S=_.tB(this.menu).querySelector("#button-shape"))==null?void 0:S.clientWidth)!=null?U:0:(Y=(p=_.tB(this.menu).querySelector("#button"))==null?void 0:p.clientWidth)!=null?Y:0,I,V;S=((V=(I=_.tB(this.menu).querySelector("#top-level-buttons-computed"))==null?void 0:I.clientWidth)!=null?V:0)+8+L;var W,O;L=(O=(W=_.tB(this.menu).querySelector("#top-level-buttons-computed"))==
null?void 0:W.children.length)!=null?O:2;S<=8*L||(this.primaryMenuWidth=S)}};
_.M.onYtUpdateTitleAction=function(S){this.videoPrimaryInfoRenderer&&this.set("videoPrimaryInfoRenderer.title",_.b(S,tKA).title)};
_.M.onYtUpdateDescriptionAction=function(S){if(S=_.b(S,_.dcc)){var p,U=!((p=this.videoSecondaryInfoRenderer)==null||!p.attributedDescription);S.isEmpty||!S.description&&!S.attributedDescription?(this.set("videoSecondaryInfoRenderer.attributedDescription",null),this.set("videoSecondaryInfoRenderer.description",null)):S.attributedDescription?this.set("videoSecondaryInfoRenderer.attributedDescription",S.attributedDescription):S.description&&(U?this.set("videoSecondaryInfoRenderer.attributedDescription",
_.Fi(S.description)):this.set("videoSecondaryInfoRenderer.description",S.description))}};
_.M.onYtDarkModeToggledAction=function(S){this.isDark=S};
_.M.registerPanel=function(){if(!_.y("kevlar_watch_metadata_ep_killswitch")&&this.hasInlineStructuredDescription){var S=_.y("web_watch_imax_theater_mode")&&this.isTheaterMode;S=_.y("web_watch_enable_fs_squeezeback_panels")&&this.isFullscreen||S;var p=_.tW().resolve(_.y6);p&&!S&&p.registerPanel("engagement-panel-structured-description",this)}};
_.M.resetDescriptionState=function(){this.useFadedScrimDescription&&(this.descriptionCollapsed=!0)};
_.M.showPanel=function(S){this.expandDescription();var p=this.useFadedScrimDescription?this.fadedStructuredDescriptionContentRendererElement:this.structuredDescriptionContentRendererElement;p.resize();var U,Y=S==null?void 0:(U=S.sectionListEngagementPanelExtras)==null?void 0:U.scrollToItemSectionIdentifier;Y?_.PA.addJob(function(){p==null||p.scrollToSection(Y)},8):this.scrollToTopOfContainer()};
_.M.isVisible=function(){return!this.descriptionCollapsed};
_.M.getReloadContinuation=function(){};
_.M.hidePanel=function(){};
_.M.updatePanel=function(){};
_.$u.Object.defineProperties(GL.prototype,{productShelf:{configurable:!0,enumerable:!0,get:function(){var S;if((S=this.structuredDescriptionContentRenderer)!=null&&S.items){var p;S=_.d((p=this.structuredDescriptionContentRenderer)==null?void 0:p.items);for(p=S.next();!p.done;p=S.next())if(p=_.b(p.value,_.dCP))return p}}},
shouldHideBadges:{configurable:!0,enumerable:!0,get:function(){var S;return!((S=this.videoPrimaryInfoRenderer)==null?0:S.badges)||this.metadataBadgesInDescription}},
shouldShowProductShelf:{configurable:!0,enumerable:!0,get:function(){return!(!this.productShelf||this.descriptionCollapsed)}},
largerItemWrap:{configurable:!0,enumerable:!0,get:function(){var S,p,U;return!!((S=this.videoSecondaryInfoRenderer)==null?0:(p=S.owner)==null?0:(U=p.videoOwnerRenderer)==null?0:U.membershipButton)}},
descriptionText:{configurable:!0,enumerable:!0,get:function(){if(this.skinnyMode&&!_.y("swatchie_sd_new_line_strip_ks")){var S,p;if((S=this.videoSecondaryInfoRenderer)==null?0:(p=S.attributedDescription)==null?0:p.content){var U,Y;return(Y=this.stripAttributedDescription((U=this.videoSecondaryInfoRenderer)==null?void 0:U.attributedDescription))!=null?Y:{runs:[]}}}var L,I,V,W;return(W=(V=(L=this.videoSecondaryInfoRenderer)==null?void 0:L.description)!=null?V:(I=this.videoSecondaryInfoRenderer)==null?
void 0:I.attributedDescription)!=null?W:{runs:[]}}},
headerRuns:{configurable:!0,enumerable:!0,get:function(){var S,p;return(p=(S=this.videoSecondaryInfoRenderer)==null?void 0:S.headerRuns)!=null?p:[]}},
hasTeaser:{configurable:!0,enumerable:!0,get:function(){var S;return!((S=this.commentsEntryPointHeaderRenderer)==null||!S.commentsEntryPointHeaderRenderer)}},
hasTeaserCarousel:{configurable:!0,enumerable:!0,get:function(){var S;return!((S=this.videoMetadataCarousel)==null||!S.videoMetadataCarouselViewModel)}},
descriptionMaxLines:{configurable:!0,enumerable:!0,get:function(){return this.skinnyMode?_.pA("swatchie_desc_lines",3):this.hasTeaserCarousel?_.pA("teaser_carousel_desc_lines",2):3}},
collapsibleMetadataRows:{configurable:!0,enumerable:!0,get:function(){var S,p,U=Object.assign({},(S=this.videoSecondaryInfoRenderer)==null?void 0:(p=S.metadataRowContainer)==null?void 0:p.metadataRowContainerRenderer);if(U&&U.rows&&U.collapsedItemCount!==void 0&&!(U.rows.length<=U.collapsedItemCount))return U.rows=U.rows.slice(U.collapsedItemCount),U.collapsedItemCount=0,U}},
alwaysVisibleMetadataRows:{configurable:!0,enumerable:!0,get:function(){if(!this.suppressTopLevelMetadataRows){var S,p,U=Object.assign({},(S=this.videoSecondaryInfoRenderer)==null?void 0:(p=S.metadataRowContainer)==null?void 0:p.metadataRowContainerRenderer);if(U&&U.rows&&U.collapsedItemCount!==void 0)return U.rows=U.rows.slice(0,U.collapsedItemCount),U.collapsedItemCount=U.rows.length,U}}},
hasInlineStructuredDescription:{configurable:!0,enumerable:!0,get:function(){var S,p;return!!((S=this.structuredDescriptionContentRenderer)==null?0:(p=S.items)==null?0:p.length)}},
showInlineStructuredDescription:{configurable:!0,enumerable:!0,get:function(){return!this.useFadedScrimDescription&&this.hasInlineStructuredDescription&&!this.descriptionCollapsed}},
descriptionExpandCommand:{configurable:!0,enumerable:!0,get:function(){if(this.structuredDescriptionContentRenderer)return null;var S;return(S=this.videoSecondaryInfoRenderer)==null?void 0:S.showMoreCommand}},
videoOwnerCommand:{configurable:!0,enumerable:!0,get:function(){var S,p,U;return((S=this.videoSecondaryInfoRenderer)==null?0:(p=S.owner)==null?0:(U=p.videoOwnerRenderer)==null?0:U.navigationEndpoint)?this.videoSecondaryInfoRenderer.owner.videoOwnerRenderer.navigationEndpoint:null}},
flexMenuEnabled:{configurable:!0,enumerable:!0,get:function(){var S,p,U,Y;return!!((S=this.videoPrimaryInfoRenderer)==null?0:(p=S.videoActions)==null?0:(U=p.menuRenderer)==null?0:(Y=U.flexibleItems)==null?0:Y.length)}},
showAttributedStringDescription:{configurable:!0,enumerable:!0,get:function(){return this.useFadedScrimDescription&&_.xX(this.descriptionText)}},
showFormattedStringDescription:{configurable:!0,enumerable:!0,get:function(){return this.useFadedScrimDescription&&!_.xX(this.descriptionText)}},
showFadedStructuredDescription:{configurable:!0,enumerable:!0,get:function(){return!(!this.useFadedScrimDescription||!this.hasInlineStructuredDescription||this.descriptionCollapsed)}},
videoTitle:{configurable:!0,enumerable:!0,get:function(){var S=this;if(_.y("web_title_hashtag_grey_delinkified")){var p,U=_.h9.unsafeClone((p=this.videoPrimaryInfoRenderer)==null?void 0:p.title);(p=U==null?void 0:U.runs)&&p.forEach(function(Y){if(Y==null?0:Y.navigationEndpoint)Y.textColor=4284506208,S.isDark&&(Y.textColor=4289374890)});
return U}return(U=this.videoPrimaryInfoRenderer)==null?void 0:U.title}},
noEndpoints:{configurable:!0,enumerable:!0,get:function(){return _.y("web_title_hashtag_black_delinkified")||_.y("web_title_hashtag_grey_delinkified")}}});
GL.prototype.resetDescriptionState=GL.prototype.resetDescriptionState;GL.prototype.registerPanel=GL.prototype.registerPanel;GL.prototype.onYtExpanderLessTapped=GL.prototype.onYtExpanderLessTapped;GL.prototype.onYtExpanderMoreTapped=GL.prototype.onYtExpanderMoreTapped;GL.prototype.onRenderStamperFinished=GL.prototype.onRenderStamperFinished;GL.prototype.onYtTextInlineExpanderExpandedChanged=GL.prototype.onYtTextInlineExpanderExpandedChanged;GL.prototype.onYtTextInlineExpanderCollapseClicked=GL.prototype.onYtTextInlineExpanderCollapseClicked;
GL.prototype.onYtTextInlineExpanderExpandClicked=GL.prototype.onYtTextInlineExpanderExpandClicked;GL.prototype.moveActionsElement=GL.prototype.moveActionsElement;GL.prototype.updateShouldForceIconOnly=GL.prototype.updateShouldForceIconOnly;GL.prototype.updateTopLevelIconsOnly=GL.prototype.updateTopLevelIconsOnly;GL.prototype.structuredDescriptionContentRendererChanged=GL.prototype.structuredDescriptionContentRendererChanged;GL.prototype.videoSecondaryInfoRendererChanged=GL.prototype.videoSecondaryInfoRendererChanged;
GL.prototype.videoPrimaryInfoRendererChanged=GL.prototype.videoPrimaryInfoRendererChanged;GL.prototype.maybeUpdateActionsOnSeparateLine=GL.prototype.maybeUpdateActionsOnSeparateLine;GL.prototype.updateOwnerAndDescriptionPosition=GL.prototype.updateOwnerAndDescriptionPosition;_.x([_.F(_.Aj.YtActionHandlerBehavior),_.E("design:type",Object)],GL.prototype,"ytActionHandlerBehavior",void 0);_.x([_.F(_.eL.YtComponentBehavior),_.E("design:type",Object)],GL.prototype,"ytComponentBehavior",void 0);
_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],GL.prototype,"ytRendererBehavior",void 0);_.x([_.F(_.qH.YtRendererstamperBehavior),_.E("design:type",Object)],GL.prototype,"ytRendererstamperBehavior",void 0);_.x([_.F(_.Xh),_.E("design:type",Object)],GL.prototype,"ytdReduxBehavior",void 0);_.x([_.O2("#above-the-fold"),_.E("design:type",HTMLElement)],GL.prototype,"aboveTheFoldContainer",void 0);_.x([_.O2("#menu ytd-menu-renderer"),_.E("design:type",Object)],GL.prototype,"menu",void 0);
_.x([_.O2("#description-inline-expander"),_.E("design:type",Object)],GL.prototype,"descriptionInlineExpander",void 0);_.x([_.O2("#faded-structured-description"),_.E("design:type",Object)],GL.prototype,"fadedStructuredDescriptionContentRendererElement",void 0);_.x([_.O2("#structured-description"),_.E("design:type",Object)],GL.prototype,"structuredDescriptionContentRendererElement",void 0);_.x([_.O2("#title"),_.E("design:type",HTMLElement)],GL.prototype,"titleElement",void 0);
_.x([_.O2("#description"),_.E("design:type",HTMLElement)],GL.prototype,"descriptionElement",void 0);_.x([_.O2("#description-interaction"),_.E("design:type",Object)],GL.prototype,"descriptionInteraction",void 0);_.x([_.O2("#owner"),_.E("design:type",HTMLElement)],GL.prototype,"ownerElement",void 0);_.x([_.O2("#top-row"),_.E("design:type",HTMLElement)],GL.prototype,"topRowElement",void 0);_.x([_.O2("#bottom-row"),_.E("design:type",HTMLElement)],GL.prototype,"bottomRowElement",void 0);
_.x([_.O2("#actions"),_.E("design:type",HTMLElement)],GL.prototype,"actionsElement",void 0);_.x([_.O2("#bottom-actions"),_.E("design:type",HTMLElement)],GL.prototype,"bottomActionsElement",void 0);_.x([_.O2("#ytd-watch-info-text"),_.E("design:type",Object)],GL.prototype,"watchInfoTextElement",void 0);_.x([_.g(),_.E("design:type",Object)],GL.prototype,"data",void 0);_.x([_.g(),_.E("design:type",Object)],GL.prototype,"videoPrimaryInfoRenderer",void 0);
_.x([_.g(),_.E("design:type",Object)],GL.prototype,"videoSecondaryInfoRenderer",void 0);_.x([_.g(),_.E("design:type",Object)],GL.prototype,"commentsEntryPointHeaderRenderer",void 0);_.x([_.g(),_.E("design:type",Object)],GL.prototype,"videoMetadataCarousel",void 0);_.x([_.g(),_.E("design:type",Object)],GL.prototype,"structuredDescriptionContentRenderer",void 0);_.x([_.g(),_.E("design:type",Object)],GL.prototype,"videoSummary",void 0);
_.x([_.g(),_.E("design:type",Object)],GL.prototype,"merchShelf",void 0);_.x([_.g(),_.E("design:type",Object)],GL.prototype,"infoPanelBelowMetadata",void 0);_.x([_.e("structuredDescriptionContentRenderer"),_.E("design:type",Object),_.E("design:paramtypes",[])],GL.prototype,"productShelf",null);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],GL.prototype,"metadataBadgesInDescription",void 0);
_.x([_.e("videoPrimaryInfoRenderer"),_.E("design:type",Object),_.E("design:paramtypes",[])],GL.prototype,"shouldHideBadges",null);_.x([_.e("productShelf","descriptionCollapsed"),_.E("design:type",Boolean),_.E("design:paramtypes",[])],GL.prototype,"shouldShowProductShelf",null);_.x([_.g(),_.E("design:type",Boolean)],GL.prototype,"isWatchFlexy",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],GL.prototype,"descriptionCollapsed",void 0);
_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Boolean)],GL.prototype,"useFadedScrimDescription",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],GL.prototype,"skinnyMode",void 0);_.x([_.g({reflectToAttribute:!0}),_.e("videoSecondaryInfoRenderer"),_.E("design:type",Object),_.E("design:paramtypes",[])],GL.prototype,"largerItemWrap",null);_.x([_.g(),_.E("design:type",Object)],GL.prototype,"playlist",void 0);_.x([_.g(),_.E("design:type",Object)],GL.prototype,"clarifyBox",void 0);
_.x([_.g(),_.E("design:type",Object)],GL.prototype,"playerAds",void 0);_.x([_.g(),_.E("design:type",Boolean)],GL.prototype,"isDark",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Boolean)],GL.prototype,"actionsOnSeparateLine",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],GL.prototype,"disableVideoOwnerOnTap",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],GL.prototype,"swatcherooDelayLoad",void 0);
_.x([_.g(),_.E("design:type",Boolean)],GL.prototype,"suppressTopLevelMetadataRows",void 0);_.x([_.g(),_.E("design:type",Object)],GL.prototype,"primaryMenuWidth",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],GL.prototype,"videoId",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],GL.prototype,"titleHeadlineXs",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],GL.prototype,"titleHeadlineS",void 0);
_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],GL.prototype,"titleHeadlineM",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],GL.prototype,"titleHashtagBlackLinkified",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],GL.prototype,"titleHashtagGreyLinkified",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],GL.prototype,"actionButtonsUpdateOwnerWidth",void 0);
_.x([_.g(),_.E("design:type",Object)],GL.prototype,"shouldForceIconOnly",void 0);_.x([_.z4("skinnyMode"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],GL.prototype,"updateOwnerAndDescriptionPosition",null);_.x([_.z4("skinnyMode"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],GL.prototype,"maybeUpdateActionsOnSeparateLine",null);
_.x([_.e("videoSecondaryInfoRenderer.description","videoSecondaryInfoRenderer.attributedDescription"),_.E("design:type",Object),_.E("design:paramtypes",[])],GL.prototype,"descriptionText",null);_.x([_.e("videoSecondaryInfoRenderer.headerRuns"),_.E("design:type",Array),_.E("design:paramtypes",[])],GL.prototype,"headerRuns",null);_.x([_.g({value:!1}),_.e("commentsEntryPointHeaderRenderer"),_.E("design:type",Object),_.E("design:paramtypes",[])],GL.prototype,"hasTeaser",null);
_.x([_.g({value:!1,reflectToAttribute:!0}),_.e("videoMetadataCarousel"),_.E("design:type",Object),_.E("design:paramtypes",[])],GL.prototype,"hasTeaserCarousel",null);_.x([_.g({value:3}),_.e("skinnyMode","playerAds","clarifyBox","hasTeaserCarousel"),_.E("design:type",Object),_.E("design:paramtypes",[])],GL.prototype,"descriptionMaxLines",null);_.x([_.e("videoSecondaryInfoRenderer.metadataRowContainer"),_.E("design:type",Object),_.E("design:paramtypes",[])],GL.prototype,"collapsibleMetadataRows",null);
_.x([_.e("videoSecondaryInfoRenderer.metadataRowContainer","suppressTopLevelMetadataRows"),_.E("design:type",Object),_.E("design:paramtypes",[])],GL.prototype,"alwaysVisibleMetadataRows",null);_.x([_.e("videoSecondaryInfoRenderer","structuredDescriptionContentRenderer"),_.E("design:type",Boolean),_.E("design:paramtypes",[])],GL.prototype,"hasInlineStructuredDescription",null);
_.x([_.e("useFadedScrimDescription","hasInlineStructuredDescription","descriptionCollapsed"),_.E("design:type",Boolean),_.E("design:paramtypes",[])],GL.prototype,"showInlineStructuredDescription",null);_.x([_.e("data","hasInlineStructuredDescription","videoSecondaryInfoRenderer"),_.E("design:type",Object),_.E("design:paramtypes",[])],GL.prototype,"descriptionExpandCommand",null);
_.x([_.e("videoSecondaryInfoRenderer.owner"),_.E("design:type",Object),_.E("design:paramtypes",[])],GL.prototype,"videoOwnerCommand",null);_.x([_.g({reflectToAttribute:!0}),_.e("videoPrimaryInfoRenderer.videoActions"),_.E("design:type",Boolean),_.E("design:paramtypes",[])],GL.prototype,"flexMenuEnabled",null);_.x([_.g({selector:_.eS,reflectToAttribute:!0}),_.E("design:type",Object)],GL.prototype,"isFullscreen",void 0);
_.x([_.g({selector:_.sK,reflectToAttribute:!0}),_.E("design:type",Object)],GL.prototype,"isTheaterMode",void 0);_.x([_.e("descriptionText","useFadedScrimDescription"),_.E("design:type",Boolean),_.E("design:paramtypes",[])],GL.prototype,"showAttributedStringDescription",null);_.x([_.e("descriptionText","useFadedScrimDescription"),_.E("design:type",Boolean),_.E("design:paramtypes",[])],GL.prototype,"showFormattedStringDescription",null);
_.x([_.e("useFadedScrimDescription","descriptionCollapsed","hasInlineStructuredDescription"),_.E("design:type",Boolean),_.E("design:paramtypes",[])],GL.prototype,"showFadedStructuredDescription",null);_.x([_.z4("videoPrimaryInfoRenderer"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],GL.prototype,"videoPrimaryInfoRendererChanged",null);_.x([_.e("videoPrimaryInfoRenderer.title"),_.E("design:type",Object),_.E("design:paramtypes",[])],GL.prototype,"videoTitle",null);
_.x([_.e("videoPrimaryInfoRenderer"),_.E("design:type",Object),_.E("design:paramtypes",[])],GL.prototype,"noEndpoints",null);_.x([_.z4("videoSecondaryInfoRenderer"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],GL.prototype,"videoSecondaryInfoRendererChanged",null);
_.x([_.T4("videoPrimaryInfoRenderer","structuredDescriptionContentRenderer"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],GL.prototype,"structuredDescriptionContentRendererChanged",null);_.x([_.T4("skinnyMode"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],GL.prototype,"updateTopLevelIconsOnly",null);
_.x([_.T4("skinnyMode"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],GL.prototype,"updateShouldForceIconOnly",null);_.x([_.T4("skinnyMode"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],GL.prototype,"moveActionsElement",null);_.x([_.Vd("yt-text-inline-expander-expand-clicked"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],GL.prototype,"onYtTextInlineExpanderExpandClicked",null);
_.x([_.Vd("yt-text-inline-expander-collapse-clicked"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],GL.prototype,"onYtTextInlineExpanderCollapseClicked",null);_.x([_.Vd("yt-text-inline-expander-expanded-changed"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],GL.prototype,"onYtTextInlineExpanderExpandedChanged",null);
_.x([_.Vd("yt-rendererstamper-finished"),_.E("design:type",Function),_.E("design:paramtypes",[Event]),_.E("design:returntype")],GL.prototype,"onRenderStamperFinished",null);_.x([_.Vd("yt-expander-more-tapped"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],GL.prototype,"onYtExpanderMoreTapped",null);_.x([_.Vd("yt-expander-less-tapped"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],GL.prototype,"onYtExpanderLessTapped",null);
_.x([_.T4("videoPrimaryInfoRenderer","hasInlineStructuredDescription","isFullscreen"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],GL.prototype,"registerPanel",null);_.x([_.T4("videoSecondaryInfoRenderer"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],GL.prototype,"resetDescriptionState",null);GL=_.x([_.f({disableElementRegistration:!0,is:"ytd-watch-metadata"})],GL);
_.C(GL,"ytd-watch-metadata",function(){if(M1q!==void 0)return M1q;var S=document.createElement("template");_.h(S,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-watch-metadata--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="above-the-fold" class="style-scope ytd-watch-metadata">\n  <div id="title" on-click="titleOnTap" class="style-scope ytd-watch-metadata">\n    <ytd-badge-supported-renderer hidden="[[!videoPrimaryInfoRenderer.topStandaloneBadge]]" top-standalone-badge="[[videoPrimaryInfoRenderer.topStandaloneBadge]]" class="style-scope ytd-watch-metadata">\n    </ytd-badge-supported-renderer>\n    <h1 class="style-scope ytd-watch-metadata">\n      <yt-formatted-string force-default-style="" no-endpoints="[[noEndpoints]]" text="[[videoTitle]]" title="[[getSimpleString(videoPrimaryInfoRenderer.title)]]" class="style-scope ytd-watch-metadata">\n      </yt-formatted-string>\n    </h1>\n    <ytd-badge-supported-renderer badges="[[videoPrimaryInfoRenderer.badges]]" hidden="[[shouldHideBadges]]" class="style-scope ytd-watch-metadata">\n    </ytd-badge-supported-renderer>\n  </div>\n\n  <div id="top-row" class="style-scope ytd-watch-metadata">\n    <div id="owner" class="item style-scope ytd-watch-metadata" hidden="[[!videoSecondaryInfoRenderer.owner.videoOwnerRenderer]]" on-click="videoOwnerOnTap">\n      <ytd-video-owner-renderer data="[[videoSecondaryInfoRenderer.owner.videoOwnerRenderer]]" subscribe-key="[[videoSecondaryInfoRenderer.subscribeButton.subscribeButtonRenderer.subscribedEntityKey]]" watch-metadata-refresh="" class="style-scope ytd-watch-metadata">\n      </ytd-video-owner-renderer>\n      <div id="subscribe-button" class="style-scope ytd-watch-metadata"></div>\n    </div>\n    <div id="actions" class="item style-scope ytd-watch-metadata">\n      <div id="actions-inner" class="style-scope ytd-watch-metadata">\n        <div id="menu" class="style-scope ytd-watch-metadata"></div>\n      </div>\n    </div>\n  </div>\n\n  <div id="middle-row" class="style-scope ytd-watch-metadata"></div>\n\n  <div id="bottom-row" class="style-scope ytd-watch-metadata">\n    <div id="description" class="item style-scope ytd-watch-metadata" on-down="onDescriptionDown" on-up="onDescriptionUp" on-click="onDescriptionClick">\n      <div id="description-inner" class="style-scope ytd-watch-metadata">\n        <ytd-watch-info-text id="ytd-watch-info-text" detailed="[[!descriptionCollapsed]]" video-primary-info-renderer="[[videoPrimaryInfoRenderer]]" class="style-scope ytd-watch-metadata"></ytd-watch-info-text>\n        \n        <template is="dom-if" if="[[shouldShowProductShelf]]" restamp="" id="product-shelf" class="style-scope ytd-watch-metadata">\n          <ytd-merch-shelf-renderer data="[[productShelf]]" class="style-scope ytd-watch-metadata">\n          </ytd-merch-shelf-renderer>\n        </template>\n        <yt-formatted-string id="description-placeholder" hidden="[[!videoSecondaryInfoRenderer.descriptionPlaceholder]]" text="[[videoSecondaryInfoRenderer.descriptionPlaceholder]]" class="style-scope ytd-watch-metadata">\n        </yt-formatted-string>\n        <div id="description-text-container" hidden="[[!useFadedScrimDescription]]" class="style-scope ytd-watch-metadata">\n          <yt-attributed-string id="attributed-description-text" data="[[descriptionText]]" disable-upgrade$="[[!showAttributedStringDescription]]" header-runs="[[headerRuns]]" hidden="[[!showAttributedStringDescription]]" user-input="" class="style-scope ytd-watch-metadata">\n          </yt-attributed-string>\n          \n          <yt-formatted-string id="formatted-description-text" disable-upgrade$="[[!showFormattedStringDescription]]" hidden="[[!showFormattedStringDescription]]" split-lines="[[showFormattedStringDescription]]" text="[[descriptionText]]" class="style-scope ytd-watch-metadata">\n          </yt-formatted-string>\n          <ytd-structured-description-content-renderer id="faded-structured-description" data="[[structuredDescriptionContentRenderer]]" disable-upgrade$="[[!showFadedStructuredDescription]]" hidden="[[!showFadedStructuredDescription]]" inline-structured-description="" video-summary="[[videoSummary]]" class="style-scope ytd-watch-metadata">\n          </ytd-structured-description-content-renderer>\n          <ytd-metadata-row-container-renderer data="[[collapsibleMetadataRows]]" disable-upgrade$="[[!collapsibleMetadataRows]]" full-width="[[skinnyMode]]" class="style-scope ytd-watch-metadata">\n          </ytd-metadata-row-container-renderer>\n          <tp-yt-paper-button id="collapse-button" class="button style-scope ytd-watch-metadata" hidden="[[descriptionCollapsed]]" on-click="handleCollapseDescriptionClick">[[getSimpleString(videoSecondaryInfoRenderer.showLessText)]]</tp-yt-paper-button>\n        </div>\n        <ytd-text-inline-expander id="description-inline-expander" always-show-expand-button="" collapse-label="[[getSimpleString(videoSecondaryInfoRenderer.showLessText)]]" disable-upgrade$="[[useFadedScrimDescription]]" expand-command="[[descriptionExpandCommand]]" expand-label="[[getSimpleString(videoSecondaryInfoRenderer.showMoreText)]]" header-runs="[[headerRuns]]" hidden="[[useFadedScrimDescription]]" max-lines="[[descriptionMaxLines]]" text="[[descriptionText]]" class="style-scope ytd-watch-metadata">\n          <div slot="extra-content" class="style-scope ytd-watch-metadata">\n            <ytd-structured-description-content-renderer id="structured-description" data="[[structuredDescriptionContentRenderer]]" hidden="[[!showInlineStructuredDescription]]" inline-structured-description="" merch-shelf="[[merchShelf]]" video-summary="[[videoSummary]]" class="style-scope ytd-watch-metadata">\n            </ytd-structured-description-content-renderer>\n            <ytd-metadata-row-container-renderer data="[[collapsibleMetadataRows]]" disable-upgrade$="[[!collapsibleMetadataRows]]" full-width="[[skinnyMode]]" class="style-scope ytd-watch-metadata">\n            </ytd-metadata-row-container-renderer>\n          </div>\n        </ytd-text-inline-expander>\n      </div>\n      <yt-interaction id="description-interaction" class="rounded-large style-scope ytd-watch-metadata" hidden="[[skinnyMode]]"></yt-interaction>\n    </div>\n    <div id="bottom-actions" class="style-scope ytd-watch-metadata"></div>\n    <div id="comment-teaser" class="item style-scope ytd-watch-metadata" hidden="[[!hasTeaser]]"></div>\n    <div id="teaser-carousel" class="item style-scope ytd-watch-metadata" hidden="[[!hasTeaserCarousel]]"></div>\n  </div>\n</div>\n\n<ytd-metadata-row-container-renderer data="[[alwaysVisibleMetadataRows]]" full-width="[[skinnyMode]]" class="style-scope ytd-watch-metadata">\n</ytd-metadata-row-container-renderer>\n');
S.content.insertBefore(_.t().content.cloneNode(!0),S.content.firstChild);return M1q=S},{mode:2});_.j_X=function(S){_.hY.call(this);this.JSC$20280_watchApi=S;this.temporaryTheaterMode=this.autonavCancelledBySignal=!1;zuJ(this);Q_s(this);nJd(this);JpX(this);ypq(this);Kkd(this);bMi(this)};
_.r(_.j_X,_.hY);var nJd=function(S){var p=function(){_.y("kevlar_is_pupi_enabled")||h_(S)};
S.JSC$20280_watchApi.getRoot().addEventListener("yt-player-updated",p);S.addOnDisposeCallback(function(){S.JSC$20280_watchApi.getRoot().removeEventListener("yt-player-updated",p)})},ypq=function(S){if(_.y("kevlar_endscreen_auto_theater_mode")){var p=S.JSC$20280_watchApi.subscribeToActiveChanged(function(){rpE(S)},!1);
S.addOnDisposeCallback(p)}},zuJ=function(S){var p,U,Y,L,I;
_.T(function(V){if(V.nextAddress==1)return _.k(V,S.JSC$20280_watchApi.playerApi,2);p=V.yieldResult;U=function(W){W=!!W;RM(S)&&(W=W?2:1,_.og.getInstance().setState(W,!0,!1))};
Y=function(W){W&&_.h3L(_.vJ().getState())&&(_.St(S.JSC$20280_watchApi.getRoot(),"yt-toggle-theater-mode",[!0,!1]),S.temporaryTheaterMode=!0)};
L=function(W){_.y("kevlar_player_update_autonav_on_new_data")&&W.type==="newdata"&&(_.y("kevlar_is_pupi_enabled")||h_(S))};
I=function(W){S.onPlayerStateChange(W)};
_.y("kevlar_endscreen_auto_theater_mode")&&p.addEventListener("onAutonavCancelled",Y);p.addEventListener("onAutonavChangeRequest",U);p.addEventListener("onVideoDataChange",L);p.addEventListener("onStateChange",I);S.addOnDisposeCallback(function(){p.removeEventListener("onAutonavChangeRequest",U);p.removeEventListener("onVideoDataChange",L);p.removeEventListener("onStateChange",I);_.y("kevlar_endscreen_auto_theater_mode")&&p.removeEventListener("onAutonavCancelled",Y)});
_.OV(V)})},Q_s=function(S){S.JSC$20280_watchApi.registerActionHandler("yt-signal-action-cancel-autonav",function(){S.autonavCancelledBySignal=!0;
_.y("kevlar_is_pupi_enabled")||h_(S)});
S.JSC$20280_watchApi.registerActionHandler("yt-autonav-state-changed-action",function(p,U,Y){U&&h_(S,Y)});
S.JSC$20280_watchApi.registerActionHandler("yt-enable-autoplay-command",function(){RM(S)&&_.og.getInstance().setState(2,!0,!0)});
S.JSC$20280_watchApi.registerActionHandler("yt-disable-autoplay-command",function(){RM(S)&&_.og.getInstance().setState(1,!0,!0)});
S.addOnDisposeCallback(function(){S.JSC$20280_watchApi.unregisterActionHandler("yt-signal-action-cancel-autonav");S.JSC$20280_watchApi.unregisterActionHandler("yt-autonav-state-changed-action");S.JSC$20280_watchApi.unregisterActionHandler("yt-enable-autoplay-command");S.JSC$20280_watchApi.unregisterActionHandler("yt-disable-autoplay-command")})},JpX=function(S){var p=S.JSC$20280_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){bMi(S)}),U=S.JSC$20280_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",
function(){Kkd(S)});
S.addOnDisposeCallback(function(){S.JSC$20280_watchApi.unsubscribeByKey(p);S.JSC$20280_watchApi.unsubscribeByKey(U)})},bMi=function(S){S.autonavCancelledBySignal=!1;
_.y("kevlar_is_pupi_enabled")||h_(S)},Kkd=function(S){var p=S.JSC$20280_watchApi.getWatchNextResponse(),U,Y;
var L=(p=(Y=_.b(p==null?void 0:(L=p.playerOverlays)==null?void 0:(U=L.playerOverlayRenderer)==null?void 0:U.autonavToggle,_.Tej))==null?void 0:Y.enabled)?2:1;_.y("kevlar_is_pupi_enabled")?_.og.getInstance().setState(L,!1,!1):h_(S);_.y("web_persist_server_autonav_state_on_client")&&typeof p==="boolean"&&_.Jsw(L===2)},RM=function(S){if(S.autonavCancelledBySignal)return!1;
var p,U,Y,L;return!!((p=S.JSC$20280_watchApi.getWatchNextResponse())==null?0:(U=p.contents)==null?0:(Y=U.twoColumnWatchNextResults)==null?0:(L=Y.autoplay)==null?0:L.autoplay)};
_.j_X.prototype.onPlayerStateChange=function(S){if(S===0){S=!_.og.getInstance().isAutoplaySetExplicitly();var p=this.JSC$20280_watchApi.getWatchNextResponse(),U,Y,L,I;p=_.b(p==null?void 0:(U=p.contents)==null?void 0:(Y=U.twoColumnWatchNextResults)==null?void 0:(L=Y.autoplay)==null?void 0:(I=L.autoplay)==null?void 0:I.autoplayExplicitChoiceDialogRenderer,_.grP);RM(this)&&S&&p&&_.VO.instance.resolveCommand({openPopupAction:{popup:{confirmDialogRenderer:p},popupType:"DIALOG"}})}else rpE(this)};
var rpE=function(S){S.temporaryTheaterMode&&(S.temporaryTheaterMode=!1,_.St(S.JSC$20280_watchApi.getRoot(),"yt-toggle-theater-mode",[!1,!1]))},h_=function(S,p){p=p===void 0?!1:p;
var U;_.T(function(Y){if(Y.nextAddress==1)return _.k(Y,S.JSC$20280_watchApi.playerApi,2);U=Y.yieldResult;RM(S)?U.setAutonavState(_.og.getInstance().getState(),p):U.setAutonavState(1,p);_.OV(Y)})};var Gzn={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"};_.RuE=function(S){_.hY.call(this);var p=this;this.JSC$20285_watchApi=S;var U=this.JSC$20285_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){hut(p)});
this.addOnDisposeCallback(function(){p.JSC$20285_watchApi.unsubscribeByKey(U)});
hut(this)};
_.r(_.RuE,_.hY);var hut=function(S){var p=S.JSC$20285_watchApi.getPlayerResponse(),U=S.JSC$20285_watchApi.getWatchNextResponse();if(!_.ADu(p==null?void 0:p.playabilityStatus,U==null?void 0:U.playerOverlays)){var Y;var L=p==null?void 0:(Y=p.playabilityStatus)==null?void 0:Y.errorScreen}S.JSC$20285_watchApi.provideRenderingData("ERROR_SCREEN",L)};var FkL=_.$k(function(S){var p=S.data;return _.H("yt-player-overlay-video-details-renderer",{class:"ytPlayerOverlayVideoDetailsRendererHost","on:click":_.kL(function(){var U=p().onTap;U&&_.tW().resolve(_.cQ).resolveCommand(U)})},_.H("div",{class:"ytPlayerOverlayVideoDetailsRendererTitle"},_.H(_.i6,{text:function(){return p().title}})),_.H("div",{class:"ytPlayerOverlayVideoDetailsRendererSubtitle"},_.H(_.yP,{data:function(){return p().channelAvatar}},{avatarViewModel:_.bS}),_.H(_.i6,{text:function(){return p().subtitle}})))},
"ij");var FV={LIKE:"LIKE_DELHI_PLAYER",DISLIKE:"DISLIKE_DELHI_PLAYER",SHARE:"SHARE_DELHI_PLAYER",COMMENT:"COMMENT_DELHI_PLAYER"},X_o=_.$k(function(S){var p=S.data;var U=_.Xc(_.eS);return _.H("yt-player-quick-action-buttons",{class:_.VD("ytPlayerQuickActionButtonsHost")},_.H(_.KU,{each:function(){var Y=p(),L=U();Y=JSON.parse(JSON.stringify(Y));for(var I=_.y("web_watch_action_bar_resize_buttons"),V=_.y("delhi_modern_web_player_icons")&&!_.y("enable_web_delhi_icons"),W=_.d(Y),O=W.next();!O.done;O=W.next()){var D=
O.value,z=void 0;O=_.b((z=_.b(D,_.Gy))==null?void 0:z.toggleButtonViewModel,_.b6);var Q=void 0;z=_.b((Q=_.b(D,_.hn))==null?void 0:Q.toggleButtonViewModel,_.b6);D=_.b(D,_.K6);O?(z=_.b(O.defaultButtonViewModel,_.K6),O=_.b(O.toggledButtonViewModel,_.K6),z&&(V&&z.iconName&&(z.iconName=FV[z.iconName]),!L&&I&&(z.buttonSize="BUTTON_VIEW_MODEL_SIZE_DEFAULT")),O&&(V&&O.iconName&&(O.iconName=FV[O.iconName]),!L&&I&&(O.buttonSize="BUTTON_VIEW_MODEL_SIZE_DEFAULT"))):z?(O=_.b(z.defaultButtonViewModel,_.K6),z=_.b(z.toggledButtonViewModel,
_.K6),O&&(V&&O.iconName&&(O.iconName=FV[O.iconName]),!L&&I&&(O.buttonSize="BUTTON_VIEW_MODEL_SIZE_DEFAULT")),z&&(V&&z.iconName&&(z.iconName=FV[z.iconName]),!L&&I&&(z.buttonSize="BUTTON_VIEW_MODEL_SIZE_DEFAULT"))):D&&(V&&D.iconName&&(D.iconName=FV[D.iconName]),!L&&I&&(D.buttonSize="BUTTON_VIEW_MODEL_SIZE_DEFAULT"))}return Y}},function(Y){return _.H(_.yP,{data:function(){return Y}},{buttonViewModel:_.PG,
likeButtonViewModel:function(L){return _.H(_.Rr,{data:L.data,disableIconAnimation:!0})},
dislikeButtonViewModel:_.hO})}))},"jj");_.ZML=function(S){_.hY.call(this);var p=this;this.JSC$20288_watchApi=S;S=_.d(_.kj({},void 0,"ufFdVc"));this.quickActionsViewModel=S.next().value;this.setQuickActionsViewModel=S.next().value;S=_.d(_.kj({},void 0,"atbdp"));this.playerOverlayVideoDetailsRenderer=S.next().value;this.setPlayerOverlayVideoDetailsRenderer=S.next().value;var U=this.JSC$20288_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){PwJ(p)});
this.addOnDisposeCallback(function(){p.JSC$20288_watchApi.unsubscribeByKey(U)});
PwJ(this)};
_.r(_.ZML,_.hY);
var PwJ=function(S){var p,U,Y,L,I,V,W,O,D,z,Q,J,K,G;_.T(function(X){if(X.nextAddress==1)return _.k(X,S.JSC$20288_watchApi.playerApi,2);p=X.yieldResult;U=S.JSC$20288_watchApi.getWatchNextResponse();I=(Y=U)==null?void 0:(L=Y.playerOverlays)==null?void 0:L.playerOverlayRenderer;W=_.b((V=I)==null?void 0:V.fullscreenQuickActionsBar,_.DVt);(D=(O=S).setQuickActionsViewModel)==null||D.call(O,W||{});W&&s_5(S,p);J=(z=I)==null?void 0:(Q=z.videoDetails)==null?void 0:Q.playerOverlayVideoDetailsRenderer;(G=(K=
S).setPlayerOverlayVideoDetailsRenderer)==null||G.call(K,J||{});J&&eu5(S,p);_.OV(X)})},s_5=function(S,p){if(!S.quickActionButtonsContainer){S.quickActionButtonsContainer=document.createElement("div");
p.setFullscreenQuickActions(S.quickActionButtonsContainer);var U=function(){return S.quickActionsViewModel().quickActionButtons||[]},Y=_.G2(S.quickActionButtonsContainer,function(){return _.H(X_o,{data:U})});
S.addOnDisposeCallback(function(){p.setFullscreenQuickActions(void 0);Y()})}},eu5=function(S,p){if(!S.playerOverlayVideoDetailsRendererContainer){S.playerOverlayVideoDetailsRendererContainer=document.createElement("div");
p.setPlayerOverlayVideoDetailsRenderer(S.playerOverlayVideoDetailsRendererContainer);var U=_.G2(S.playerOverlayVideoDetailsRendererContainer,function(){return _.H(FkL,{data:S.playerOverlayVideoDetailsRenderer})});
S.addOnDisposeCallback(function(){p.setPlayerOverlayVideoDetailsRenderer(void 0);U()})}};_.XV=function(S){_.hY.call(this);var p=this;this.JSC$20293_watchApi=S;this.JSC$20293_miniplayerActive=this.isFullscreen=this.shouldShowFullerscreenEdu=this.fullerscreenEduButtonClickedThisPlayback=this.fullerscreenEduButtonShownThisPlayback=!1;S=_.Wt(_.vJ(),_.eS,function(U){p.onFullscreenChanged(U)});
this.addOnDisposeCallback(S);S=_.Wt(_.vJ(),_.hw,function(U){p.onWatchScroll(U)});
this.addOnDisposeCallback(S);_.y("kevlar_watch_while_v2")&&(S=_.Wt(_.vJ(),_.F1,function(U){gJs(p,U)}),this.addOnDisposeCallback(S));
uwA(this);w_A(this);liP();this.onWatchScroll(_.hw(_.vJ().getState()));_.ub("START_IN_FULL_WINDOW_MODE")&&this.JSC$20293_watchApi.dispatchEvent("yt-set-fullerscreen-styles")};
_.r(_.XV,_.hY);var uwA=function(S){S.JSC$20293_watchApi.registerActionHandler("yt-fullscreen-change-action",function(p){var U=S.JSC$20293_watchApi.isActive();p&&!U||_.vJ().dispatch(_.S4({type:"SET_IS_WATCH_FULLSCREEN",payload:{isWatchFullscreen:!!p}}))});
S.addOnDisposeCallback(function(){S.JSC$20293_watchApi.unregisterActionHandler("yt-fullscreen-change-action")})},w_A=function(S){var p,U;
_.T(function(Y){if(Y.nextAddress==1)return _.k(Y,S.JSC$20293_watchApi.playerApi,2);p=Y.yieldResult;U=function(){S.onFullerscreenEduClicked()};
p.addEventListener("onFullerscreenEduClicked",U);S.addOnDisposeCallback(function(){p.removeEventListener("onFullerscreenEduClicked",U)});
_.OV(Y)})};
_.XV.prototype.onFullscreenChanged=function(S){var p=this,U;return _.T(function(Y){if(Y.nextAddress==1)return p.isFullscreen=!!_.Bv(),_.k(Y,p.JSC$20293_watchApi.playerApi,2);U=Y.yieldResult;p.JSC$20293_miniplayerActive||U.setFauxFullscreen(p.isFullscreen);if(S&&(p.JSC$20293_watchApi.focusOnPlayer(),!p.fullerscreenEduButtonShownThisPlayback)){p.fullerscreenEduButtonShownThisPlayback=!0;var L=_.Uz("yt-fullerscreen-edu-button-shown-count")||0;_.p$("yt-fullerscreen-edu-button-shown-count",L+1,31536E3);
p.updateFullerscreenEduButtonSubtleModeState()}_.OV(Y)})};
var gJs=function(S,p){var U;_.T(function(Y){if(Y.nextAddress==1)return S.JSC$20293_miniplayerActive=p,_.k(Y,S.JSC$20293_watchApi.playerApi,2);U=Y.yieldResult;U.setFauxFullscreen(!S.JSC$20293_miniplayerActive&&S.isFullscreen);_.OV(Y)})};
_.XV.prototype.onWatchScroll=function(S){var p=this,U,Y;return _.T(function(L){if(L.nextAddress==1)return _.y("external_fullscreen_with_edu")?_.k(L,p.JSC$20293_watchApi.playerApi,2):L.return();U=L.yieldResult;Y=S<=0;p.shouldShowFullerscreenEdu!==Y&&(p.shouldShowFullerscreenEdu=Y,U.updateFullerscreenEduButtonVisibility(!p.shouldShowFullerscreenEdu));_.OV(L)})};
_.XV.prototype.onFullerscreenEduClicked=function(){this.JSC$20293_watchApi.scrollWatchTo(186,!0);if(!this.fullerscreenEduButtonClickedThisPlayback){this.fullerscreenEduButtonClickedThisPlayback=!0;var S=_.Uz("yt-fullerscreen-edu-button-click-count")||0;_.p$("yt-fullerscreen-edu-button-click-count",S+1,31536E3);this.updateFullerscreenEduButtonSubtleModeState()}};
_.XV.prototype.updateFullerscreenEduButtonSubtleModeState=function(){var S=this,p,U,Y,L,I,V;return _.T(function(W){if(W.nextAddress==1)return p=_.Uz("yt-fullerscreen-edu-button-click-count")||0,U=_.Uz("yt-fullerscreen-edu-button-shown-count")||0,Y=_.pA("external_fullscreen_button_click_threshold"),L=_.pA("external_fullscreen_button_shown_threshold"),I=p>=Y||U>=L,_.k(W,S.JSC$20293_watchApi.playerApi,2);V=W.yieldResult;V.updateFullerscreenEduButtonSubtleModeState(I);_.OV(W)})};
_.XV.prototype.disposeInternal=function(){_.hY.prototype.disposeInternal.call(this);var S=_.Bv();_.y("kevlar_exit_fullscreen_leaving_watch")&&S&&_.qU(S)};
var liP=function(){if(_.y("web_watch_add_viewport_meta_tag")){var S=document.querySelector("meta[name=viewport]"),p=document.head;p&&!S&&(S=document.createElement("meta"),S.name="viewport",S.content="width=device-width, initial-scale=1.0, viewport-fit=cover",p.appendChild(S))}};_.Pa=function(S){_.hY.call(this);var p=this;this.JSC$20297_watchApi=S;this.jobId=0;this.pendingRequestId=void 0;var U=this.JSC$20297_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){aiA(p)});
this.addOnDisposeCallback(function(){p.JSC$20297_watchApi.unsubscribeByKey(U)});
aiA(this)};
_.r(_.Pa,_.hY);var fiJ=function(S){_.PA.cancelJob(S.jobId);S.pendingRequestId=void 0},aiA=function(S){fiJ(S);
var p=AGn(S.JSC$20297_watchApi.getWatchNextResponse());if(p){var U=250,Y,L=(Y=_.b(p,_.QUw))==null?void 0:Y.initialDelayMs;_.y("web_watch_updated_metadata_server_initial_delay")&&L&&(U=L);S.jobId=_.PA.addLowPriorityJob(function(){return S.fetchUpdatedMetadata(p)},U)}};
_.Pa.prototype.fetchUpdatedMetadata=function(S,p){var U=this,Y,L,I,V,W,O,D,z,Q,J,K,G,X,Z,l;return _.T(function(a){switch(a.nextAddress){case 1:p&&(Y={continuation:p});if(!_.y("web_get_updated_metadata_fantasy_panel_continuation_params")){a.jumpTo(2);break}L=_.tW().resolve(_.y6);I="PAsports_fantasy";return _.k(a,L.isVisible(I,!0),3);case 3:a.yieldResult&&(D=(W=(V=L).getUpdatePanelContinuationData)==null?void 0:(O=W.call(V,I))==null?void 0:O.updatePanelContinuationRequest)&&(Y||(Y={}),Y.clientParams=
{panelContinuationParams:{panelContinuation:D}});case 2:z=_.tW().resolve(_.F3);if(!z)return _.ZP(Error("hm")),a.return();Q={};U.pendingRequestId=Q;return _.k(a,_.lZ(z,S,Y),4);case 4:J=a.yieldResult;if(Q!==U.pendingRequestId)return a.return();X=(K=J)==null?void 0:(G=K.continuation)==null?void 0:G.timedContinuationData;((Z=X)==null?0:Z.continuation)&&((l=X)==null?0:l.timeoutMs)&&(U.jobId=_.PA.addLowPriorityJob(function(){return U.fetchUpdatedMetadata(S,X.continuation)},X.timeoutMs));
_.OV(a)}})};
_.Pa.prototype.disposeInternal=function(){_.hY.prototype.disposeInternal.call(this);fiJ(this)};var CwX=_.$k(function(S){var p=_.kL(function(){var Y=S.data().videoId;if(S.active())Y=_.qw(Y),_.tW().resolve(_.cQ).resolveCommand(Y);else{var L=S.playerApi(),I=L.getAvailableAudioTracks(),V,W,O=(V=S.sourceVideoConfig().audioTracks)==null?void 0:(W=V.find(function(D){return D.isDefaultForSource}))==null?void 0:W.id;
if(I=I.find(function(D){return D.getLanguageInfo().getId()===O}))L.setAudioTrack(I,!0),L.setCompositeParam({activeVideoId:Y}),S.setActiveSourceId(Y)}}),U={};
return _.H("ytw-composite-source-video-overlay",{class:_.VD("ytwCompositeSourceVideoOverlayHost",(U.ytwCompositeSourceVideoOverlayActive=S.active,U.ytwCompositeSourceVideoOverlayInteracting=S.interacting,U)),style:_.zw({left:function(){var Y;return((Y=S.data().topLeftCornerX)!=null?Y:0)*100+"%"},
top:function(){var Y;return((Y=S.data().topLeftCornerY)!=null?Y:0)*100+"%"},
width:function(){var Y;return((Y=S.data().width)!=null?Y:0)*100+"%"},
height:function(){var Y;return((Y=S.data().height)!=null?Y:0)*100+"%"}}),
"on:click":p},_.H("div",{class:"ytwCompositeSourceVideoOverlayOutline"}))},"kj");var x4L=_.$k(function(S){var p=_.d(_.Dt(function(){var V,W=(V=S.data().sources)==null?void 0:V.find(function(O){return O.isActive});
if(W)return W.videoId})),U=p.next().value,Y=p.next().value;
p=_.d(_.kj(!1,void 0,"WI4BUb"));var L=p.next().value,I=p.next().value;return _.H("ytw-composite-video-overlay-renderer",{class:"ytwCompositeVideoOverlayRendererHost","on:mouseover":_.kL(function(){I(!0)}),
"on:mouseout":_.kL(function(){I(!1)})},_.H(_.n,{cond:function(){return S.data().sources},
then:function(V){return _.H(_.KU,{each:V},function(W){return _.H(CwX,{data:W,active:function(){return W.videoId===U()},
setActiveSourceId:Y,interacting:L,playerApi:S.playerApi,sourceVideoConfig:function(){return tBi(S.compositeVideoConfig(),W.videoId)}})})}}))},"lj");_.oJX=function(S){_.hY.call(this);this.JSC$20313_watchApi=S;S=_.d(_.kj({},void 0,"gyAjHd"));this.compositeVideoOverlayRenderer=S.next().value;this.setCompositeVideoOverlayRenderer=S.next().value;S=_.d(_.kj({},void 0,"U5hcq"));this.compositeVideoConfig=S.next().value;this.setCompositeVideoConfig=S.next().value;EJA(this);m4P(this)};
_.r(_.oJX,_.hY);var EJA=function(S){var p=S.JSC$20313_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){m4P(S)});
S.addOnDisposeCallback(function(){S.JSC$20313_watchApi.unsubscribeByKey(p)})},vJT=function(S){var p;
return _.T(function(U){if(U.nextAddress==1)return _.k(U,S.JSC$20313_watchApi.playerApi,2);p=U.yieldResult;p.setCompositeVideoOverlayRendererComponent(S.container);_.OV(U)})},$4Y=function(S){var p;
return _.T(function(U){if(U.nextAddress==1)return _.k(U,S.JSC$20313_watchApi.playerApi,2);p=U.yieldResult;p.setCompositeVideoOverlayRendererComponent(void 0);_.OV(U)})},iMJ=function(S){var p,U;
return _.T(function(Y){if(Y.nextAddress==1)return _.k(Y,S.JSC$20313_watchApi.playerApi,2);p=Y.yieldResult;S.container=document.createElement("div");U=_.G2(S.container,function(){return _.H(x4L,{data:S.compositeVideoOverlayRenderer,compositeVideoConfig:S.compositeVideoConfig,playerApi:p})});
S.addOnDisposeCallback(U);_.OV(Y)})},m4P=function(S){var p,U,Y,L,I,V,W,O;
_.T(function(D){return D.nextAddress==1?(p=S.JSC$20313_watchApi.getPlayerResponse(),I=_.b((U=p)==null?void 0:(Y=U.overlay)==null?void 0:(L=Y.playerControlsOverlayRenderer)==null?void 0:L.compositeVideoOverlay,EpA),O=(V=p)==null?void 0:(W=V.playerConfig)==null?void 0:W.compositeVideoConfig,I&&S.setCompositeVideoOverlayRenderer(I),O&&S.setCompositeVideoConfig(O),I&&O?S.container?D.jumpTo(6):_.k(D,iMJ(S),6):NDo(S)?_.k(D,$4Y(S),0):D.jumpTo(0)):NDo(S)?D.jumpTo(0):_.k(D,vJT(S),0)})},NDo=function(S){var p;
return!((p=S.container)==null||!p.parentElement)};
_.oJX.prototype.disposeInternal=function(){NDo(this)&&$4Y(this);_.hY.prototype.disposeInternal.call(this)};_.cpE=function(S){_.hY.call(this);var p=this;this.JSC$20319_watchApi=S;var U=this.JSC$20319_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){var Y=p.JSC$20319_watchApi.getPlayerResponse();if(Y){var L,I;if(Y=_.b((L=Y.endscreen)==null?void 0:(I=L.endscreenRenderer)==null?void 0:I.hideButton,_.b6)){var V;(V=p.setEndscreenHideButton)==null||V.call(p,Y);BDL(p)}}});
this.addOnDisposeCallback(function(){p.JSC$20319_watchApi.unsubscribeByKey(U)});
S=_.d(_.kj({},void 0,"PPHRb"));this.endscreenHideButton=S.next().value;this.setEndscreenHideButton=S.next().value;qUJ(this);ApL(this);t1X(this)};
_.r(_.cpE,_.hY);var BDL=function(S){var p,U;_.T(function(Y){if(Y.nextAddress==1)return S.creatorEndscreenHideButtonContainer?Y.return():_.k(Y,S.JSC$20319_watchApi.playerApi,2);p=Y.yieldResult;S.creatorEndscreenHideButtonContainer=document.createElement("div");_.$Y(S.creatorEndscreenHideButtonContainer,!1);p.setCreatorEndscreenHideButton(S.creatorEndscreenHideButtonContainer);U=_.G2(S.creatorEndscreenHideButtonContainer,function(){return _.H(_.jS,{data:S.endscreenHideButton,useOutlinedIcon:!0})});
S.addOnDisposeCallback(function(){U();p.setCreatorEndscreenHideButton(void 0)});
_.OV(Y)})},qUJ=function(S){var p,U;
_.T(function(Y){if(Y.nextAddress==1)return _.k(Y,S.JSC$20319_watchApi.playerApi,2);p=Y.yieldResult;U=function(){S.creatorEndscreenHideButtonContainer&&_.$Y(S.creatorEndscreenHideButtonContainer,!0)};
p.addEventListener("endscreenelementshown",U);S.addOnDisposeCallback(function(){p.removeEventListener("endscreenelementshown",U)});
_.OV(Y)})},ApL=function(S){var p=function(){S.creatorEndscreenHideButtonContainer&&_.$Y(S.creatorEndscreenHideButtonContainer,!1)},U=S.JSC$20319_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",p),Y=S.JSC$20319_watchApi.subscribe("WATCH_NEXT_RESPONSE_RELOADED",p);
S.addOnDisposeCallback(function(){S.JSC$20319_watchApi.unsubscribeByKey(U);S.JSC$20319_watchApi.unsubscribeByKey(Y)})},t1X=function(S){S.JSC$20319_watchApi.registerActionHandler("yt-change-creator-endscreen-visibility-command",function(p){var U=_.b(p,wZT);
S.JSC$20319_watchApi.playerApi.then(function(Y){Y==null||Y.setCreatorEndscreenVisibility(!!U.hide)})});
S.addOnDisposeCallback(function(){S.JSC$20319_watchApi.unregisterActionHandler("yt-change-creator-endscreen-visibility-command")})};_.pMJ=function(S){_.hY.call(this);this.JSC$20325_watchApi=S;Sdi(this)};
_.r(_.pMJ,_.hY);var Sdi=function(S){var p,U;_.T(function(Y){if(Y.nextAddress==1)return _.k(Y,S.JSC$20325_watchApi.playerApi,2);p=Y.yieldResult;U=function(L){_.vJ().dispatch(_.S4({type:"SET_IS_WATCH_RETRO_MODE",payload:{isWatchRetroMode:L}}))};
p.addEventListener("onRetroModeChanged",U);S.addOnDisposeCallback(function(){p.removeEventListener("onRetroModeChanged",U)});
_.OV(Y)})};var ZX=0,P5=0,s_=0;var URP;URP=new Map([["10",6E5],["15",9E5],["20",12E5],["30",18E5],["45",27E5],["60",36E5]]);_.Zn=function(S){_.hY.call(this);this.JSC$20338_watchApi=S;this.selectedOption="Off";this.pauseAutonavPlayback=!1;this.adjustmentsCount=this.presetPauseSchedulerId=this.presetFadeSchedulerId=0;Ydt(this)};
_.r(_.Zn,_.hY);
var Ydt=function(S){var p,U,Y;_.T(function(L){if(L.nextAddress==1)return _.k(L,S.JSC$20338_watchApi.playerApi,2);p=L.yieldResult;if(S.isDisposed())return L.return();S.sessionStorage=_.oRE("yt-sleep-timer");S.sessionStorage||_.eP(new _.y7("SessionStorage for Sleep Timer is undefined."));((U=S.sessionStorage)==null?void 0:U.get("yt-sleep-timer"))==="true"&&(VKi(),(Y=S.sessionStorage)==null||Y.remove("yt-sleep-timer"),p.syncVolume());LOX(S,p);Mzd(S,p);IIq(S,p);_.OV(L)})},LOX=function(S,p){var U=function(D){S.onSleepTimerSettingsChanged(D,
p)},Y=function(D){S.onPlayerStateChange(D,p)},L=function(){S.onLoopChange(p)},I=function(){S.onCloseMiniplayer(p)},V=function(){LTq(p,(0,_.AI)(),TLt(p),S.selectedOption==="End of video",p.getPlayerState()!==1)},W=function(){S.onSeekComplete(p)},O=function(){_.PA.cancelJob(P5);
var D=p.getCurrentTime()>=p.getDuration(),z=S.selectedOption==="End of video"||S.selectedOption==="End of playlist"&&!pZt(S.playlistId);D&&z&&dRL(S,p)};
p.addEventListener("onSleepTimerSettingsChanged",U);p.addEventListener("onLoopChange",L);p.addEventListener("onLoopRangeChange",L);p.addEventListener("onStateChange",Y);p.addEventListener("onCloseMiniplayer",I);p.addEventListener("onSleepTimerFeatureAvailable",V);p.addEventListener("SEEK_COMPLETE",W);p.addEventListener("onAdStart",O);S.addOnDisposeCallback(function(){p.removeEventListener("onSleepTimerSettingsChanged",U);p.removeEventListener("onLoopChange",L);p.removeEventListener("onLoopRangeChange",
L);p.removeEventListener("onStateChange",Y);p.removeEventListener("onCloseMiniplayer",I);p.removeEventListener("onSleepTimerFeatureAvailable",V);p.removeEventListener("SEEK_COMPLETE",W);p.removeEventListener("onAdStart",O)})},Mzd=function(S,p){var U=S.JSC$20338_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){a:{var Y=p.getVideoData().video_id,L,I=(L=cGA(S.JSC$20338_watchApi))==null?void 0:L.playlistId;
S.pauseAutonavPlayback&&(p.pauseVideo(),p.syncVolume(),S.pauseAutonavPlayback=!1);if(S.selectedOption==="End of video"&&Y!==S.videoId)se(S,p);else{if(S.selectedOption==="End of playlist"){L=pZt(S.playlistId);if(I!==S.playlistId){se(S,p);break a}L?L&&Vzo(S,p):Tgd(S,p)}S.videoId=Y;S.playlistId=I}}});
S.addOnDisposeCallback(function(){S.JSC$20338_watchApi.unsubscribeByKey(U)})},IIq=function(S,p){var U=_.tW().resolve(_.XF),Y=_.Wt(U,_.HQX,function(I){I&&S.selectedOption!=="Off"&&se(S,p)}),L=S.JSC$20338_watchApi.subscribeToActiveChanged(function(I){var V,W;
return _.T(function(O){if(O.nextAddress==1)return _.k(O,_.Vy().navigationFinishPromise,2);V=!_.Gbq();W=_.tW().resolve(_.eC).isMiniplayerActive();I||!Xv(S.selectedOption)||W||V||se(S,p);_.OV(O)})},!1);
U=_.Wt(U,function(I){return I.entities.playlistLoopStateEntity||{}},function(I){I=I===void 0?{}:I;
var V=SfL(S.JSC$20338_watchApi);if(V){var W;((W=I[V])==null?void 0:W.state)==="PLAYLIST_LOOP_STATE_ALL"&&Xv(S.selectedOption)&&se(S,p)}});
S.addOnDisposeCallback(Y);S.addOnDisposeCallback(U);S.addOnDisposeCallback(L)};
_.Zn.prototype.onSleepTimerSettingsChanged=function(S,p){switch(S){case "Off":this.selectedOption!=="Off"&&se(this,p);break;case "End of video":case "End of playlist":WOA(this,S,p);break;default:WOA(this,S,p,URP.get(S))}};
_.Zn.prototype.onLoopChange=function(S){(S.getLoopVideo()||S.getLoopRange())&&Xv(this.selectedOption)&&se(this,S)};
_.Zn.prototype.onCloseMiniplayer=function(S){Xv(this.selectedOption)&&se(this,S)};
var WOA=function(S,p,U,Y){OoT(S,U);S.selectedOption=p;S.videoId=U.getVideoData().video_id;S.playlistId="";var L;(L=S.sessionStorage)==null||L.set("yt-sleep-timer","true");S.adjustmentsCount++;LTq(U,(0,_.AI)(),TLt(U),S.selectedOption==="End of video");if(S.selectedOption==="End of video")Tgd(S,U),kuJ(S,U);else if(S.selectedOption==="End of playlist"){kuJ(S,U);var I,V;S.playlistId=(V=(I=cGA(S.JSC$20338_watchApi))==null?void 0:I.playlistId)!=null?V:"";pZt(S.playlistId)||Tgd(S,U)}else Y&&(S.presetFadeSchedulerId=
_.HG(_.PA,function(){IfX(U,15E3)},Y-15E3),S.presetPauseSchedulerId=_.HG(_.PA,function(){dRL(S,U)},Y),MKL(U,(0,_.AI)(),Y))},dRL=function(S,p){if(S.JSC$20338_watchApi.isActive()){var U={dismissDialogEndpoint:{}};
var Y={commandExecutorCommand:{commands:[U,{watchPlayerOverflowMenuCommand:{openMenuItemKey:"menu_item_sleep_timer"}}]}};U={buttonViewModel:{title:_.Oh("CLOSE"),style:"BUTTON_VIEW_MODEL_STYLE_MONO",type:"BUTTON_VIEW_MODEL_TYPE_FILLED",onTap:{innertubeCommand:U}}};Y={buttonViewModel:{title:_.Oh("SLEEP_TIMER_ADD_TIME_LABEL"),style:"BUTTON_VIEW_MODEL_STYLE_MONO",type:"BUTTON_VIEW_MODEL_TYPE_TONAL",onTap:{innertubeCommand:Y}}};var L={dialogHeaderViewModel:{headline:{content:_.Oh("SLEEP_TIMER_ENDED_TITLE")}}},
I={basicContentViewModel:{paragraphs:[{text:{content:_.Oh("SLEEP_TIMER_ENDED_TEXT")}}]}};U={showDialogCommand:{panelLoadingStrategy:{inlineContent:{dialogViewModel:{header:L,content:I,footer:{panelFooterViewModel:{primaryButton:U,secondaryButton:Y,shouldHideDivider:!0}}}}}}};_.tW().resolve(_.cQ).resolveCommand(U,{form:{element:S}})}else VKi();Hoo(S,!1);DRP(S,p);p.pauseVideo();_.og.getInstance().getState()===2&&p.getPlayerState()===5&&(S.pauseAutonavPlayback=!0)},se=function(S,p){Hoo(S,!0);
DRP(S,p);VKi()},DRP=function(S,p){OoT(S,p);
S.selectedOption="Off";S.videoId="";S.playlistId="";S.adjustmentsCount=0;var U;(U=S.sessionStorage)==null||U.remove("yt-sleep-timer");_.PA.cancelJob(ZX);p.resetSleepTimerMenuSettings()},Hoo=function(S,p){p={timer_length_adjustment_times_during_session:S.adjustmentsCount-1,
is_session_cancelled:p};switch(S.selectedOption){case "Off":p.option_type="SLEEP_TIMER_OPTION_TYPE_OFF";break;case "End of video":p.option_type="SLEEP_TIMER_OPTION_TYPE_END_OF_VIDEO";break;case "End of playlist":p.option_type="SLEEP_TIMER_OPTION_TYPE_END_OF_PLAYLIST";break;default:p.option_type="SLEEP_TIMER_OPTION_TYPE_FIXED_MINUTES_DURATION",p.option_duration_in_minutes=URP.get(S.selectedOption)/6E4}_.RV("sleepTimerSessionFinishEvent",p)};
_.Zn.prototype.onPlayerStateChange=function(S,p){S===1?LTq(p,(0,_.AI)(),TLt(p),this.selectedOption==="End of video"):S===0?(_.PA.cancelJob(P5),p.setVideoTimeLeft(Yfd(0,0))):S===2&&_.PA.cancelJob(P5);this.selectedOption==="End of video"?S===0?dRL(this,p):S===2&&diX(p):this.selectedOption!=="End of playlist"||pZt(this.playlistId)||(S===0?dRL(this,p):S===2&&diX(p))};
_.Zn.prototype.onSeekComplete=function(S){S.getPlayerState()===2&&LTq(S,(0,_.AI)(),TLt(S),this.selectedOption==="End of video",!0)};
_.Zn.prototype.onCueRangeEnter=function(S,p){S==="sleep-timer-fade-audio"&&IfX(p,(p.getDuration()-p.getProgressState().current)*1E3)};
_.Zn.prototype.onCueRangeExit=function(S,p){S==="sleep-timer-fade-audio"&&p.getPlayerState()!==0&&diX(p,!0)};
var Tgd=function(S,p){p.addCueRange("sleep-timer-fade-audio",p.getDuration()-15,p.getDuration());p.addEventListener("onCueRangeEnter",function(U){S.onCueRangeEnter(U,p)});
p.addEventListener("onCueRangeExit",function(U){S.onCueRangeExit(U,p)})},Vzo=function(S,p){p.removeCueRange("sleep-timer-fade-audio");
p.removeEventListener("onCueRangeEnter",function(U){S.onCueRangeEnter(U,p)});
p.removeEventListener("onCueRangeExit",function(U){S.onCueRangeExit(U,p)})},OoT=function(S,p){Xv(S.selectedOption)?Vzo(S,p):(_.PA.cancelJob(S.presetPauseSchedulerId),_.PA.cancelJob(S.presetFadeSchedulerId),S.presetPauseSchedulerId=0,S.presetFadeSchedulerId=0);
diX(p,!0)},kuJ=function(S,p){p.setLoop(!1);
p.setLoopVideo(!1);p.setLoopRange(null);(S=SfL(S.JSC$20338_watchApi))&&_.tW().resolve(_.XF).dispatch(_.WG("playlistLoopStateEntity",S,{key:S,state:"PLAYLIST_LOOP_STATE_NONE"}))};_.JXo=function(S){_.hY.call(this);this.JSC$20341_watchApi=S;zNq(this);Qht(this);ncL(this);S=S.getRoot();if(S.is==="ytd-watch-flexy"||S.is==="ytd-watch-grid")S.onTheaterReduxValueUpdate(this.getState());this.getState()&&_.bBJ();_.y("web_watch_log_theater_mode_cookie_state")&&_.D5.get("wide","0")==="1"&&_.iOw("GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_USER_HAS_THEATER_MODE_COOKIE_ENABLED")};
_.r(_.JXo,_.hY);var zNq=function(S){var p,U;_.T(function(Y){if(Y.nextAddress==1)return _.k(Y,S.JSC$20341_watchApi.playerApi,2);p=Y.yieldResult;U=function(L){yXA(S,!!L)};
p.addEventListener("SIZE_CLICKED",U);S.addOnDisposeCallback(function(){p.removeEventListener("SIZE_CLICKED",U)});
_.OV(Y)})},Qht=function(S){S.JSC$20341_watchApi.registerActionHandler("yt-toggle-theater-mode",function(p,U){yXA(S,p,U===void 0?!0:U)});
S.addOnDisposeCallback(function(){S.JSC$20341_watchApi.unregisterActionHandler("yt-toggle-theater-mode")})};
_.JXo.prototype.getState=function(){return _.sK(_.vJ().getState())};
var yXA=function(S,p,U){U=U===void 0?!0:U;var Y,L,I,V=_.y("enable_player_resize_transition")&&!!S.JSC$20341_watchApi.getWatchNextResponse()&&!((Y=S.JSC$20341_watchApi.getWatchNextResponse())==null?0:(L=Y.contents)==null?0:(I=L.twoColumnWatchNextResults)==null?0:I.conversationBar);_.i8X(function(){_.vJ().dispatch(_.S4({type:"SET_IS_THEATER_MODE",payload:{isTheaterMode:p}}));_.y("theater_mode_scroll_to_top_killswitch")||S.JSC$20341_watchApi.scrollWatchTo(0,!1);_.Bv()&&_.y("external_fullscreen")&&_.qU(document.documentElement);
ncL(S);U&&_.zp("wide",p?"1":"0",-1);_.St(S.JSC$20341_watchApi.getRoot(),"yt-close-popup-action",["yt-tooltip-renderer"]);S.JSC$20341_watchApi.dispatchEvent("yt-set-theater-mode-enabled",{enabled:p});p&&_.bBJ()},{shouldWrap:V})},ncL=function(S){var p;
_.T(function(U){if(U.nextAddress==1)return _.k(U,S.JSC$20341_watchApi.playerApi,2);p=U.yieldResult;p.setSizeStyle(!0,S.getState());_.OV(U)})};var jhA=function(S){_.hY.call(this);var p=this;this.playerApi=S;this.timeToPanelSyncKeyMap={};var U;if(S==null?0:(U=S.isReady)==null?0:U.call(S)){U=_.Wt(_.tW().resolve(_.XF),function(L){return L.entities.timedMarkersListSyncEntity||{}},function(L,I){L=L===void 0?{}:L;
I=I===void 0?{}:I;for(var V=_.d(Object.keys(I)),W=V.next();!W.done;W=V.next())W=W.value,L[W]!==I[W]&&KOP(p,I[W]);I=_.d(Object.keys(L));for(V=I.next();!V.done;V=I.next())V=V.value,W=L[V],p.timeToPanelSyncKeyMap[V]&&bon(p,W)});
this.addOnDisposeCallback(U);var Y=function(L){p.onCueRangeEnter(L)};
S.addEventListener("onCueRangeEnter",Y);this.addOnDisposeCallback(function(){var L;(L=S.removeEventListener)==null||L.call(S,"onCueRangeEnter",Y)})}};
_.r(jhA,_.hY);
var bon=function(S,p){var U,Y;if((U=S.playerApi)==null?0:(Y=U.isReady)==null?0:Y.call(U)){var L;if((U=p==null?void 0:(L=p.timedListData)==null?void 0:L.sections)&&p!=null&&p.key)for(L=_.d(U),U=L.next();!U.done;U=L.next())if(U=U.value,U.timedSyncDataList&&U.sectionId)for(Y=0;Y<U.timedSyncDataList.length;Y++){var I=U.timedSyncDataList[Y];I.syncItemId&&S.playerApi.addCueRange(U.sectionId+"_"+p.key+"_"+I.syncItemId,Number(I.videoTimeMs)/1E3,Y===U.timedSyncDataList.length-1?0x8000000000000:Number(U.timedSyncDataList[Y+
1].videoTimeMs)/1E3)}}},KOP=function(S,p){var U,Y;
if((U=S.playerApi)==null?0:(Y=U.isReady)==null?0:Y.call(U)){var L;if((U=p==null?void 0:(L=p.timedListData)==null?void 0:L.sections)&&p!=null&&p.key)for(L=_.d(U),U=L.next();!U.done;U=L.next())if(U=U.value,U.timedSyncDataList&&U.sectionId){Y=_.d(U.timedSyncDataList);for(var I=Y.next();!I.done;I=Y.next())I=I.value,I.syncItemId&&S.playerApi.removeCueRange(U.sectionId+"_"+p.key+"_"+I.syncItemId)}}};
jhA.prototype.onCueRangeEnter=function(S){for(var p=_.d(Object.keys(this.timeToPanelSyncKeyMap)),U=p.next();!U.done;U=p.next()){U=U.value;var Y=_.d(S.split("_"+U+"_")),L=Y.next().value;Y=Y.next().value;if(L&&Y){S=_.tW().resolve(_.XF);p=this.timeToPanelSyncKeyMap[U];var I=_.rPE(S.getState(),p);U=rXT(U,L,Y);if(U===-1)break;U={activeSyncId:Y,activeItemIndex:U,activeSectionInfo:{sectionIdentifier:L}};I?S.dispatch(_.r8("markersEngagementPanelSyncEntity",p,U)):S.dispatch(_.WG("markersEngagementPanelSyncEntity",
p,Object.assign({},{key:p},U)));break}}};
var rXT=function(S,p,U){var Y=_.tW().resolve(_.XF),L,I;S=(L=nfJ(Y.getState(),S))==null?void 0:(I=L.timedListData)==null?void 0:I.sections;if(!S)return-1;L=0;I=_.d(S);for(S=I.next();!S.done;S=I.next()){S=S.value;Y=S.timedSyncDataList||[];if(S.sectionId===p)return p=Y.findIndex(function(V){return V.syncItemId===U}),p===-1?p:L+p;
L+=Y.length}return-1};_.RNq=function(S){_.hY.call(this);var p=this;this.JSC$20353_watchApi=S;this.unresolvedCommands=[];this.JSC$20353_watchApi.registerActionHandler("yt-update-timed-markers-sync-observer-command",function(U){GuP(p,U)});
this.addOnDisposeCallback(function(){p.JSC$20353_watchApi.unregisterActionHandler("yt-update-timed-markers-sync-observer-command")});
hNE(this)};
_.r(_.RNq,_.hY);var hNE=function(S){var p;_.T(function(U){if(U.nextAddress==1)return _.k(U,S.JSC$20353_watchApi.playerApi,2);p=U.yieldResult;if(S.isDisposed())return U.return();S.timedSyncObserver=new jhA(p);S.unresolvedCommands.length&&(S.unresolvedCommands.forEach(function(Y){return GuP(S,Y)}),S.unresolvedCommands=[]);
_.Hm(S,S.timedSyncObserver);_.OV(U)})},GuP=function(S,p){if(S.timedSyncObserver){var U=_.b(p,afE);
if(U&&U.timedSyncEntityKey&&U.panelSyncEntityKey){S=S.timedSyncObserver;p=U.timedSyncEntityKey;var Y=U.panelSyncEntityKey;U=!!U.isEnabled;U=U===void 0?!0:U;var L=_.tW().resolve(_.XF);L=nfJ(L.getState(),p);U?S.timeToPanelSyncKeyMap[p]||(S.timeToPanelSyncKeyMap[p]=Y,bon(S,L)):(delete S.timeToPanelSyncKeyMap[p],KOP(S,L))}}else S.unresolvedCommands.push(p)};var FOE=_.$k(function(S){var p=S.data,U=S.maybeLogSmartSkipClientData,Y=_.vH();_.C6(Y,function(){return p().rendererContext},{onTap:function(z,Q){Q({disableClickTracking:!0})}});
var L=null,I=null,V=_.y("web_enable_auto_focus_for_timely_action_button"),W=function(){L=document.activeElement},O=function(){p().smartSkipMetadata&&(L=document.activeElement,_.H5J(function(){return I}))},D=function(z){if(p().smartSkipMetadata&&(!z||z.key!=="Enter")){L&&L.isConnected&&(_.H5J(function(){return L}),L=null);
var Q;(Q=I)==null||Q.blur()}};
S=_.kL(function(){U==null||U(!0,p());return!1});
_.tU(Y,{visibilityCallback:function(z){if(V)z?I&&p().smartSkipMetadata&&(O(),document.addEventListener("focusin",W)):(document.removeEventListener("focusin",W),D());else if(z&&_.y("web_ephemeral_actions")){z=_.aF(p().rendererContext);var Q=Number(p().maxVisibleDurationMilliseconds),J,K=(J=_.b(p().rendererContext,_.Hj))==null?void 0:J.label;z&&Q&&K&&(J={label:K,command:z,durationMs:Q},_.tW().resolve(_.Tt).enqueue(J))}},
showOption:{calledOnce:!1,state:"visible"},hideOption:{calledOnce:!1,state:"hidden"}});_.hW(function(){if(V){var z;if((I=(z=Y.value)==null?void 0:z.querySelector("button"))&&p().smartSkipMetadata){var Q;(Q=Y.value)==null||Q.addEventListener("keydown",D)}}});
_.FG(function(){V&&(I&&p().smartSkipMetadata&&I.removeEventListener("keydown",D),document.removeEventListener("focusin",W),D())});
return _.H("ytw-timely-action-view-model",{class:"ytwTimelyActionViewModelHost",el:Y,"on:click":S},_.H(_.yP,{data:function(){return p().content}},{buttonViewModel:_.PG}))},"mj");var XMd=_.$k(function(S){var p=S.data,U=S.playerApi,Y=_.tW().resolve(_.q_m);S=_.d(_.Dt(function(){p()}));
var L=S.next().value,I=S.next().value,V=function(){return Ods(p(),L())},W=function(D,z){var Q,J,K=(Q=_.b(z==null?void 0:z.rendererContext,_.D$))==null?void 0:(J=Q.loggingDirectives)==null?void 0:J.trackingParams;
if((z=z==null?void 0:z.smartSkipMetadata)&&z.loggingData&&(J=z.loggingData,z=J.algorithmId,Q=J.startMilliseconds,J=J.endMilliseconds,z&&Q!==void 0&&J!==void 0)){var G,X;D={smartSkipData:Object.assign({},{versionName:z,startMediaTimeMs:Q,endMediaTimeMs:J},D&&{userInteractionMediaTimeMs:(Math.floor(((G=_.$L())==null?void 0:(X=G.getPlayer())==null?void 0:X.getCurrentTime())||0)*1E3).toString()})};G=_.X$();var Z;K&&(Z=_.JS(K));G&&Z&&_.mp(G,Z,D)}},O=function(D,z){var Q=Ods(p(),D);
if(Q){var J=_.b(Q,eE),K;if(K=z)K=U(),Q=_.b(Q,eE),K=Q!=null&&Q.smartSkipMetadata?!(K==null?0:K.isSameMarkerTypeVisible((Q==null?void 0:Q.smartSkipMetadata.markerKey)||"")):!0;if(K){var G,X;(J==null?0:(G=J.smartSkipMetadata)==null?0:(X=G.loggingData)==null?0:X.isCounterfactual)||(W(!1,J),I(D))}else z||L()!==D||I(void 0)}};
_.R8(function(){var D=p().timelyActions;if(D){D=_.d(D);for(var z=D.next();!z.done;z=D.next()){z=_.b(z.value,eE);var Q=void 0;(Q=z)!=null&&Q.cueRangeId&&Y.timelyActionsMap.set(z.cueRangeId,O)}_.FG(function(){Y.timelyActionsMap.clear()})}});
return _.H("ytw-timely-actions-overlay-view-model",{class:"ytwTimelyActionsOverlayViewModelHost"},_.H(_.yP,{data:V},{timelyActionViewModel:function(D){return _.H(FOE,{data:D.data,maybeLogSmartSkipClientData:function(){W(!0,_.b(V(),eE))}})}}))},"nj");_.Zon=function(S){_.hY.call(this);this.JSC$20365_watchApi=S;S=_.d(_.kj({},void 0,"pLDp2"));this.timelyActionsOverlay=S.next().value;this.setTimelyActionsOverlay=S.next().value;PPs(this)};
_.r(_.Zon,_.hY);var PPs=function(S){var p,U,Y,L;_.T(function(I){if(I.nextAddress==1)return shP(S),eNE(S),S.timelyActionsContainer=document.createElement("div"),_.k(I,S.JSC$20365_watchApi.playerApi,2);p=I.yieldResult;(Y=(U=p).insertTimelyActionUi)==null||Y.call(U,S.timelyActionsContainer);L=_.G2(S.timelyActionsContainer,function(){return _.H(XMd,{data:S.timelyActionsOverlay,playerApi:p})});
S.addOnDisposeCallback(L);_.OV(I)})},eNE=function(S){var p=S.JSC$20365_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){shP(S)});
S.addOnDisposeCallback(function(){S.JSC$20365_watchApi.unsubscribeByKey(p)})},shP=function(S){var p=S.JSC$20365_watchApi.getWatchNextResponse();
if(p){var U,Y;if(p=_.b((U=p.playerOverlays)==null?void 0:(Y=U.playerOverlayRenderer)==null?void 0:Y.timelyActionsOverlayViewModel,ffX)){var L;(L=S.setTimelyActionsOverlay)==null||L.call(S,p)}}};_.u0E=function(S){_.hY.call(this);this.JSC$20369_watchApi=S;gcE(this)};
_.r(_.u0E,_.hY);var gcE=function(S){var p,U;_.T(function(Y){if(Y.nextAddress==1)return _.k(Y,S.JSC$20369_watchApi.playerApi,2);p=Y.yieldResult;U=function(L){_.VO.instance.resolveCommand({openPopupAction:{popup:{notificationActionRenderer:_.b(L,_.AMJ)},popupType:"TOAST"}})};
p.addEventListener("onYtShowToast",U);S.addOnDisposeCallback(function(){p.removeEventListener("onYtShowToast",U)});
_.OV(Y)})};var wMo,fIE,lIq,aIP,mRi,xRo,EcA,vco,$Rd;wMo=!1;_.CPt=function(S){_.hY.call(this);this.JSC$20372_watchApi=S;this.fullscreen=this.theater=!1;lIq(this);aIP(this);fIE(this)};
_.r(_.CPt,_.hY);fIE=function(S){var p,U,Y;_.T(function(L){if(L.nextAddress==1)return _.k(L,S.JSC$20372_watchApi.playerApi,2);p=L.yieldResult;if(S.isDisposed())return L.return();U=S.JSC$20372_watchApi.getElement("CINEMATICS");if(!U)return L.return();S.JSC$20372_cinematicController=new _.Lw(U,p);_.Hm(S,S.JSC$20372_cinematicController);_.ybt(S.JSC$20372_cinematicController);xRo(S,_.OYw());Y=S.JSC$20372_cinematicController.subscribe("CINEMATICS_ALLOWED_CHANGED",function(I){EcA(S,I)});
S.addOnDisposeCallback(function(){S.JSC$20372_watchApi.unsubscribeByKey(Y)});
mRi(S);EcA(S,S.JSC$20372_cinematicController.isAllowed());_.ocX(S,S.fullscreen,S.theater);vco(S);_.OV(L)})};
lIq=function(S){var p=S.JSC$20372_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){mRi(S)});
S.addOnDisposeCallback(function(){S.JSC$20372_watchApi.unsubscribeByKey(p)})};
aIP=function(S){var p,U;_.T(function(Y){if(Y.nextAddress==1)return _.k(Y,S.JSC$20372_watchApi.playerApi,2);p=Y.yieldResult;U=function(L){xRo(S,L)};
p.addEventListener("cinematicSettingsToggleChange",U);S.addOnDisposeCallback(function(){p.removeEventListener("cinematicSettingsToggleChange",U)});
_.OV(Y)})};
mRi=function(S){var p=S.JSC$20372_watchApi.getWatchNextResponse(),U;p=_.b(p==null?void 0:(U=p.pageVisualEffects)==null?void 0:U[0],_.jI);var Y;(Y=S.JSC$20372_cinematicController)==null||_.bVY(Y,p)};
xRo=function(S,p){var U;(U=S.JSC$20372_cinematicController)==null||_.Kyi(U,p);$Rd(S)};
EcA=function(S,p){var U;_.T(function(Y){if(Y.nextAddress==1)return _.y("kevlar_watch_cinematics_invisible")&&(p=!1),_.k(Y,S.JSC$20372_watchApi.playerApi,2);U=Y.yieldResult;U.updateCinematicSettings(p);$Rd(S);_.OV(Y)})};
vco=function(S){var p=_.D9();if(_.y("kevlar_measure_ambient_mode_idle")&&!p.getFlag(192)&&!wMo){wMo=!0;var U=_.bQ(_.PA,function(){_.tW().resolve(_.ERo).start(1E4)},5E3);
S.addOnDisposeCallback(function(){_.PA.cancelJob(U);_.tW().resolve(_.ERo).stop()})}};
_.ocX=function(S,p,U){S.fullscreen=p;S.theater=U;var Y;(Y=S.JSC$20372_cinematicController)==null||Y.setFullscreen(S.fullscreen,S.theater);if(_.y("web_cinematics_pausing")&&!document.documentElement.hasAttribute("dark"))if(S.theater||S.fullscreen){var L;(L=S.JSC$20372_cinematicController)==null||_.jNL(L)}else if((S=S.JSC$20372_cinematicController)!=null){var I;(I=S.currentCinematicEffect)==null||I.pause()}};
$Rd=function(S){if(_.y("web_cinematic_theater_mode")||_.y("web_cinematic_fullscreen")){var p;S.JSC$20372_watchApi.getRoot().toggleCinematicsActive(!((p=S.JSC$20372_cinematicController)==null||!p.isEnabled()))}};_.qdT=function(S){_.hY.call(this);var p=this;this.JSC$20375_watchApi=S;this.commentsReady=!1;this.setCommentsJobId=0;S=_.Wt(_.vJ(),_.hw,function(){ioA(p)});
this.addOnDisposeCallback(S);var U=this.JSC$20375_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){Ngt(p)}),Y=this.JSC$20375_watchApi.subscribe("WATCH_NEXT_RESPONSE_RELOADED",function(){Ngt(p)});
this.addOnDisposeCallback(function(){p.JSC$20375_watchApi.unsubscribeByKey(U);p.JSC$20375_watchApi.unsubscribeByKey(Y)});
var L=function(){_.y("kevlar_cancel_scheduled_comment_jobs_on_navigate")&&Bgi(p,"false")};
this.JSC$20375_watchApi.getRoot().addEventListener("yt-page-data-will-update",L);this.addOnDisposeCallback(function(){p.JSC$20375_watchApi.getRoot().removeEventListener("yt-page-data-will-update",L)});
Ngt(this)};
_.r(_.qdT,_.hY);var Ngt=function(S){S.commentsReady=!1;_.PA.cancelJob(S.setCommentsJobId);S.setCommentsJobId=_.bQ(_.PA,function(){ioA(S)},1E3)},ioA=function(S){if(!S.commentsReady){_.Fg("cmi");
_.PA.cancelJob(S.setCommentsJobId);var p,U,Y,L,I=(p=S.JSC$20375_watchApi.getWatchNextResponse())==null?void 0:(U=p.contents)==null?void 0:(Y=U.twoColumnWatchNextResults)==null?void 0:(L=Y.results)==null?void 0:L.results.contents;p=void 0;if(I&&I.length)for(I=_.d(I),U=I.next();!U.done;U=I.next())if(U=U.value,L=Y=void 0,((Y=U)==null?void 0:(L=Y.itemSectionRenderer)==null?void 0:L.sectionIdentifier)==="comment-item-section"){_.y("web_watch_provide_undefined_comments")?p=U.itemSectionRenderer:S.JSC$20375_watchApi.provideRenderingData("COMMENTS",
U.itemSectionRenderer);Bgi(S,"true");break}_.y("web_watch_provide_undefined_comments")&&S.JSC$20375_watchApi.provideRenderingData("COMMENTS",p);S.commentsReady=!0;S.JSC$20375_watchApi.dispatchEvent("yt-watch-comments-ready")}},Bgi=function(S,p){var U;
(U=S.JSC$20375_watchApi.getElement("COMMENTS"))==null||U.setAttribute("canScheduleJobs",p)};_.wu=function(S){_.hY.call(this);var p=this;this.JSC$20378_watchApi=S;this.providePlayerJobId=this.provideWatchNextJobId=this.provideRichGridJobId=0;this.directlyProvideComments=_.y("swatcheroo_directly_provide_comments");this.provideWatchNextSecondaryResults=_.y("web_watch_provide_secondary_results_renderer");this.swatcherooProvideAllDataOnScheduledJob=_.y("swatcheroo_provide_all_data_on_scheduled_job");this.provideAllDataDelayMs=_.pA("swatcheroo_provide_all_data_delay_ms",250);if(this.swatcherooProvideAllDataOnScheduledJob)AXJ(this);
else{var U=this.JSC$20378_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){e6(p);gu(p)}),Y=this.JSC$20378_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){uk(p);
gu(p)});
this.JSC$20378_watchApi.getRoot().is==="ytd-watch-grid"&&_.y("swatcheroo_pbs_load_grid")&&(tzE(this),cXT(this));this.addOnDisposeCallback(function(){p.JSC$20378_watchApi.unsubscribeByKey(U);p.JSC$20378_watchApi.unsubscribeByKey(Y);_.PA.cancelJob(p.provideRichGridJobId)});
e6(this);uk(this)}};
_.r(_.wu,_.hY);var AXJ=function(S){var p=S.JSC$20378_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){S.providePlayerJobId=_.Jn(_.PA,function(){e6(S);gu(S)},S.provideAllDataDelayMs)}),U=S.JSC$20378_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){S.provideWatchNextJobId=_.Jn(_.PA,function(){uk(S);
gu(S)},S.provideAllDataDelayMs)}),Y=S.JSC$20378_watchApi.subscribe("WATCH_NEXT_RESPONSE_RELOADED",function(){S.provideWatchNextJobId=_.Jn(_.PA,function(){uk(S);
gu(S)},S.provideAllDataDelayMs)});
S.JSC$20378_watchApi.registerActionHandler("yt-pending-navigation-cancelled",function(){_.bQ(_.PA,function(){e6(S);uk(S);gu(S)},100)});
S.JSC$20378_watchApi.addPageDisposeJob(function(){_.PA.cancelJob(S.provideWatchNextJobId);_.PA.cancelJob(S.providePlayerJobId)});
S.addOnDisposeCallback(function(){S.JSC$20378_watchApi.unregisterActionHandler("yt-pending-navigation-cancelled");S.JSC$20378_watchApi.unsubscribeByKey(p);S.JSC$20378_watchApi.unsubscribeByKey(U);S.JSC$20378_watchApi.unsubscribeByKey(Y);_.PA.cancelJob(S.providePlayerJobId);_.PA.cancelJob(S.provideWatchNextJobId)});
e6(S);uk(S)},e6=function(S){var p=S.JSC$20378_watchApi.getPlayerResponse(),U,Y,L=(Y=p==null?void 0:(U=p.playabilityStatus)==null?void 0:U.messageRenderers)!=null?Y:[],I,V;
p=(V=p==null?void 0:(I=p.playabilityStatus)==null?void 0:I.messages)!=null?V:[];I=_.d(p);for(V=I.next();!V.done;V=I.next())L.push({alertRenderer:{text:_.Ec(V.value),type:"WARNING"}});S.JSC$20378_watchApi.provideRenderingData("ALERTS",L)},uk=function(S){var p=[],U,Y,L,I=S.JSC$20378_watchApi.getWatchNextResponse(),V,W,O,D,z=I==null?void 0:(V=I.contents)==null?void 0:(W=V.twoColumnWatchNextResults)==null?void 0:(O=W.results)==null?void 0:(D=O.results)==null?void 0:D.contents;
if(z)for(V=_.d(z),W=V.next();!W.done;W=V.next())if(W=W.value,W.videoPrimaryInfoRenderer)var Q=W;else if(W.videoSecondaryInfoRenderer){var J=W;D=O=void 0;W=Object.assign({},(O=W.videoSecondaryInfoRenderer)==null?void 0:(D=O.metadataRowContainer)==null?void 0:D.metadataRowContainerRenderer);if(W.rows&&W.collapsedItemCount!==void 0){W.rows=W.rows.slice(0,W.collapsedItemCount).filter(function(Bw){return!!Bw.richMetadataRowRenderer});
W.collapsedItemCount=W.rows.length;var K={metadataRowContainerRenderer:W}}}else if(W.merchandiseShelfRenderer)var G=W;else if(W.ticketShelfRenderer)var X=W;else if(W.expandableMetadataRenderer)var Z=W;else if(W.itemSectionRenderer)if(O=W.itemSectionRenderer.contents,D=void 0,S.directlyProvideComments&&((D=W.itemSectionRenderer)==null?void 0:D.sectionIdentifier)==="comment-item-section")_.Fg("cmi"),S.JSC$20378_watchApi.provideRenderingData("COMMENTS",W.itemSectionRenderer);else if(O)for(W=_.d(O),O=
W.next();!O.done;O=W.next())if(O=O.value,O.commentsEntryPointHeaderRenderer)var l=O;else if(O.clarificationRenderer||O.infoPanelContainerRenderer||O.infoPanelContentRenderer||O.emergencyOneboxRenderer){p.push(O);var a=a||!!J}else O.limitedStateMessageRenderer?Y=O:O.videoMetadataCarouselViewModel&&(L=O);if(_.y("web_watch_merch_in_sd_when_ticket_shelf_present")&&G&&X){var N=G;G=void 0}if(S.provideWatchNextSecondaryResults){var m,A,q;S.JSC$20378_watchApi.provideRenderingData("WATCH_NEXT_SECONDARY_RESULTS",
I==null?void 0:(m=I.contents)==null?void 0:(A=m.twoColumnWatchNextResults)==null?void 0:(q=A.secondaryResults)==null?void 0:q.secondaryResults)}if(S.JSC$20378_watchApi.getRoot().is==="ytd-watch-grid"){var TG,Je;S.JSC$20378_watchApi.provideRenderingData("LIVE_CHAT",I==null?void 0:(TG=I.contents)==null?void 0:(Je=TG.twoColumnWatchNextResults)==null?void 0:Je.conversationBar)}var GG,Zw,Ru,sX;(m=I==null?void 0:(GG=I.contents)==null?void 0:(Zw=GG.twoColumnWatchNextResults)==null?void 0:(Ru=Zw.secondaryResults)==
null?void 0:(sX=Ru.secondaryResults)==null?void 0:sX.offerModule)&&(m.donationShelfRenderer||m.donationUnavailableRenderer)&&S.JSC$20378_watchApi.getRoot().is!=="ytd-watch-grid"&&(U=m);GG=S.JSC$20378_watchApi.getPlayerResponse();if(!GG||!_.ADu(GG.playabilityStatus,I==null?void 0:I.playerOverlays)){var mq;if(I==null?0:(mq=I.contents)==null?0:mq.singleColumnWatchNextResults){var au,XI;var nE=I==null?void 0:(au=I.contents.singleColumnWatchNextResults.results)==null?void 0:(XI=au.results)==null?void 0:
XI.contents}else{var ut,Hw,Tj,Ut;mq=!!(z==null?0:(ut=z[0])==null?0:(Hw=ut.itemSectionRenderer)==null?0:(Tj=Hw.contents)==null?0:(Ut=Tj[0])==null?0:Ut.backgroundPromoRenderer);var Ww,kA;ut=!!(I==null?0:(Ww=I.contents)==null?0:(kA=Ww.twoColumnWatchNextResults)==null?0:kA.secondaryResults);mq&&!ut&&(nE=z)}}z=p[0];Ww=p[1];a&&p.length===1&&(Ww=z,z=void 0);S.JSC$20378_watchApi.provideRenderingData("PRIMARY_INFO",Q);S.JSC$20378_watchApi.provideRenderingData("SECONDARY_INFO",J);S.JSC$20378_watchApi.provideRenderingData("COMMENTS_ENTRY_POINT_HEADER",
l);S.JSC$20378_watchApi.provideRenderingData("VIDEO_METADATA_CAROUSEL",L);S.JSC$20378_watchApi.provideRenderingData("CLARIFICATION",z);S.JSC$20378_watchApi.provideRenderingData("RICH_METADATA",K);S.JSC$20378_watchApi.provideRenderingData("MERCH_SHELF",G);_.y("web_watch_merch_in_sd_when_ticket_shelf_present")&&S.JSC$20378_watchApi.provideRenderingData("MERCH_SHELF_IN_SD",N);S.JSC$20378_watchApi.provideRenderingData("TICKET_SHELF",X);S.JSC$20378_watchApi.provideRenderingData("LIMITED_STATE",Y);S.JSC$20378_watchApi.getRoot().is!==
"ytd-watch-grid"&&S.JSC$20378_watchApi.provideRenderingData("DONATION_SHELF",U);S.JSC$20378_watchApi.provideRenderingData("SINGLE_COLUMN_CONTENTS",nE);S.JSC$20378_watchApi.provideRenderingData("INFO_PANEL_BELOW_METADATA",Ww);S.JSC$20378_watchApi.provideRenderingData("EXPANDABLE_METADATA",Z);if(S.swatcherooProvideAllDataOnScheduledJob){var XO,Vw,Kc,eQ,x5,rm;Q=I==null?void 0:(XO=I.contents)==null?void 0:(Vw=XO.twoColumnWatchNextResults)==null?void 0:(Kc=Vw.secondaryResults)==null?void 0:(eQ=Kc.secondaryResults)==
null?void 0:(x5=eQ.results)==null?void 0:(rm=x5[0])==null?void 0:rm.richGridRenderer;S.JSC$20378_watchApi.provideRenderingData("RICH_GRID_RENDERER",Q)}};
_.wu.prototype.hasCompanionAds=function(S){var p,U;return(U=S==null?void 0:(p=S.adPlacements)==null?void 0:p.some(function(Y){var L,I,V,W;return(Y==null?void 0:(L=Y.adPlacementRenderer)==null?void 0:(I=L.renderer)==null?void 0:I.actionCompanionAdRenderer)||(Y==null?void 0:(V=Y.adPlacementRenderer)==null?void 0:(W=V.renderer)==null?void 0:W.topBannerImageTextIconButtonedLayoutViewModel)}))!=null?U:!1};
var gu=function(S){if(!_.y("swaterdoo_ps_wn_handle_ks")){S.swatcherooProvideAllDataOnScheduledJob||cXT(S,3E3);var p=S.JSC$20378_watchApi.getPlayerResponse(),U,Y,L,I,V,W=(U=S.JSC$20378_watchApi.getWatchNextResponse())==null?void 0:(Y=U.contents)==null?void 0:(L=Y.twoColumnWatchNextResults)==null?void 0:(I=L.secondaryResults)==null?void 0:(V=I.secondaryResults)==null?void 0:V.offerModule;p=S.hasCompanionAds(p);var O,D;U=(W==null?void 0:(O=W.tvfilmOfferModuleRenderer)==null?void 0:O.clientShouldSuppressIfCompanionAdDisplayed)||
(W==null?void 0:(D=W.unlimitedOfferModuleRenderer)==null?void 0:D.suppressIfCompanionAds);O=p&&U;S.JSC$20378_watchApi.getRoot().is==="ytd-watch-grid"&&S.JSC$20378_watchApi.provideRenderingData("OFFER_MODULE",O?void 0:W)}},cXT=function(S,p){_.y("swatcheroo_pbs_load_grid")&&(S.provideRichGridJobId&&_.PA.cancelJob(S.provideRichGridJobId),S.provideRichGridJobId=_.Jn(_.PA,function(){S.provideRichGridJobId=0;
var U,Y,L,I,V,W,O,D=(U=S.JSC$20378_watchApi.getWatchNextResponse())==null?void 0:(Y=U.contents)==null?void 0:(L=Y.twoColumnWatchNextResults)==null?void 0:(I=L.secondaryResults)==null?void 0:(V=I.secondaryResults)==null?void 0:(W=V.results)==null?void 0:(O=W[0])==null?void 0:O.richGridRenderer;D&&S.JSC$20378_watchApi.provideRenderingData("RICH_GRID_RENDERER",D)},p))},tzE=function(S){var p,U;
_.T(function(Y){if(Y.nextAddress==1)return _.k(Y,S.JSC$20378_watchApi.playerApi,2);p=Y.yieldResult;U=function(){S.onPlaybackStart()};
p.addEventListener("onPlaybackStartExternal",U);S.addOnDisposeCallback(function(){p.removeEventListener("onPlaybackStartExternal",U)});
_.OV(Y)})};
_.wu.prototype.onPlaybackStart=function(){cXT(this)};_.poY=function(S){_.hY.call(this);var p=this;this.JSC$20388_watchApi=S;S.playerApi.then(function(U){p.player=U});
this.gestures=new _.T_(this.JSC$20388_watchApi.getRoot(),S.getElement("PLAYER_CONTAINER"),{dragDownAction:function(){if(_.rG5(_.vJ().getState())&&_.hw(_.vJ().getState())<=0)if(_.eS(_.vJ().getState())){var U;(U=p.player)==null||U.toggleFullscreen()}else _.St(p.JSC$20388_watchApi.getRoot(),"yt-activate-miniplayer-from-watch-action")}});
S55(this)};
_.r(_.poY,_.hY);var S55=function(S){var p=_.Wt(_.vJ(),_.eS,function(U){S.onFullscreenChanged(U)});
S.addOnDisposeCallback(p);p=_.Wt(_.vJ(),_.hw,function(U){S.gestures&&(U>0?S.gestures.detach():S.gestures.attach())});
S.addOnDisposeCallback(p)};
_.poY.prototype.onFullscreenChanged=function(S){this.gestures&&this.gestures.update(S)};_.Y5P=function(S){_.hY.call(this);var p=this;this.JSC$20391_watchApi=S;this.clearDataJobId=0;this.pageDisposalDataTypes=[];this.runPageDisposeJob=function(){};
this.runClearDataJob=function(){};
this.runOnYtNavigateAwayFinish=function(){};
this.addOnDisposeCallback(S.subscribeToActiveChanged(function(U){p.onActiveChanged(U)}));
UlT(this)};
_.r(_.Y5P,_.hY);var LXi=function(S){if(_.y("swatcheroo_page_dispose_all_watch_data"))S.pageDisposalDataTypes=Object.values(Gzn).filter(function(U){return U!=="PLAYLIST"});
else if(_.y("swatcheroo_page_dispose_rich_grid")){var p;(p=S.pageDisposalDataTypes)==null||p.push("RICH_GRID_RENDERER")}},UlT=function(S){_.y("swatcheroo_enable_ghost_cards")&&(LXi(S),S.JSC$20391_watchApi.registerActionHandler("yt-pending-navigation-cancelled",function(){_.PA.cancelJob(S.clearDataJobId);
S.clearDataJobId=0}),S.runPageDisposeJob=function(){var p=_.tW().resolve(_.oy).getDestinationPageType()==="watch";
S.clearDataJobId=_.Jn(_.PA,S.runClearDataJob,p?0:_.pA("web_watch_delay_page_dispose_ms",1E4))},S.runClearDataJob=function(){MIJ(S)},S.runOnYtNavigateAwayFinish=function(){S.clearDataJobId&&(_.PA.cancelJob(S.clearDataJobId),S.clearDataJobId=0,MIJ(S))},document.addEventListener("yt-navigate-finish",S.runOnYtNavigateAwayFinish),S.JSC$20391_watchApi.addPageDisposeJob(S.runPageDisposeJob),S.addOnDisposeCallback(function(){S.JSC$20391_watchApi.removePageDisposeJob(S.runPageDisposeJob);
S.JSC$20391_watchApi.unregisterActionHandler("yt-pending-navigation-cancelled");document.removeEventListener("yt-navigate-finish",S.runOnYtNavigateAwayFinish)}))},MIJ=function(S){S.pageDisposalDataTypes.forEach(function(p){S.JSC$20391_watchApi.provideRenderingData(p,void 0)});
S.clearDataJobId=0};
_.Y5P.prototype.onActiveChanged=function(S){S&&((S=document.querySelector("#watch-page-skeleton"))&&_.yz(S),IUt(this),document.body.removeAttribute("no-y-overflow"),_.ub("IS_SHELL_LOAD")&&_.n4E())};
var IUt=function(S){_.T(function(p){if(p.nextAddress==1)return _.k(p,S.JSC$20391_watchApi.playerApi,2);_.x9();_.OV(p)})};var dlP;dlP=_.y("kevlar_watch_while_counterfactual")?0:.25;_.lk=function(S){_.hY.call(this);this.JSC$20394_watchApi=S;this.JSC$20394_watchWhileEnabled=_.y("kevlar_watch_while_v2");this.pipEnabled=_.y("web_enable_pip_on_miniplayer");VIL(this);TAs(this);WXn(this)};
_.r(_.lk,_.hY);var VIL=function(S){S.JSC$20394_watchApi.registerActionHandler("yt-activate-miniplayer-from-watch-action",function(){Oxq(S)});
S.addOnDisposeCallback(function(){S.JSC$20394_watchApi.unregisterActionHandler("yt-activate-miniplayer-from-watch-action")})},TAs=function(S){var p,U;
_.T(function(Y){if(Y.nextAddress==1)return _.k(Y,S.JSC$20394_watchApi.playerApi,2);p=Y.yieldResult;U=function(){Oxq(S)};
p.addEventListener("onCollapseMiniplayer",U);S.addOnDisposeCallback(function(){p.removeEventListener("onCollapseMiniplayer",U)});
_.OV(Y)})},WXn=function(S){var p=S.JSC$20394_watchApi.getElement("PLAYER_CONTAINER");
window.IntersectionObserver&&p&&S.JSC$20394_watchWhileEnabled&&(S.playerIntersectionObserver=new IntersectionObserver(function(U){S.handleIntersect(U)},{threshold:[dlP]}),S.playerIntersectionObserver.observe(p),S.addOnDisposeCallback(function(){var U;
(U=S.playerIntersectionObserver)==null||U.disconnect()}))},Oxq=function(S){var p,U,Y;
_.T(function(L){if(L.nextAddress==1){p=_.tW().resolve(_.oy);U=p.data;Y=_.t1w(U.response,U.playerResponse);_.Vy().miniplayerButtonActivation=!0;if(S.pipEnabled)return _.Vy().watchPipActivation=!0,L.jumpTo(2);_.tW().resolve(_.eC).collapse();return _.k(L,_.Vy().navigationFinishPromise,2)}if(L.nextAddress!=4)return _.Vy().currentEndpoint=Y.watchEndpoint||null,_.k(L,_.tW().resolve(_.eC).activate(S.JSC$20394_watchApi.getElement("PLAYER"),Y,U),4);_.Vy().userActivation=!0;_.OV(L)})};
_.lk.prototype.handleIntersect=function(S){kdX(this,S[S.length-1])};
var kdX=function(S,p){S.watchWhileJobId&&_.PA.cancelJob(S.watchWhileJobId);S.watchWhileJobId=_.PA.addLowPriorityJob(function(){var U,Y;return _.T(function(L){if(L.nextAddress==1)return S.watchWhileJobId=void 0,U=_.tW().resolve(_.eC),p.intersectionRatio>dlP?U.isMiniplayerActive()?_.k(L,U.deactivate(),0):L.jumpTo(0):(Y=!U.isMiniplayerActive())?_.k(L,Hxi(S),5):L.jumpTo(4);L.nextAddress!=4&&(Y=L.yieldResult);if(!Y)return L.jumpTo(0);_.Vy().watchWhileActivation=!0;return _.k(L,DlX(S),0)})},100)},Hxi=function(S){return _.T(function(p){return p.nextAddress==
1?_.y("kevlar_watch_while_paused")?p.return(!0):_.k(p,S.isPlayerPlaying(),2):p.return(p.yieldResult)})};
_.lk.prototype.isPlayerPlaying=function(){var S=this,p;return _.T(function(U){if(U.nextAddress==1)return _.k(U,S.JSC$20394_watchApi.playerApi,2);p=U.yieldResult;return U.return(p.getPlayerStateObject().isPlaying)})};
var DlX=function(S){var p,U;return _.T(function(Y){p=_.tW().resolve(_.oy).data;U=_.t1w(p.response,p.playerResponse);_.Vy().currentEndpoint=U.watchEndpoint||null;return _.k(Y,_.tW().resolve(_.eC).activate(S.JSC$20394_watchApi.getElement("PLAYER"),U,p),0)})};_.nbJ=function(S){_.hY.call(this);this.JSC$20398_watchApi=S;z7X(this);Q1t(this)};
_.r(_.nbJ,_.hY);var Q1t=function(S){var p,U;_.T(function(Y){if(Y.nextAddress==1)return _.k(Y,S.JSC$20398_watchApi.playerApi,2);p=Y.yieldResult;U=function(L){var I;L.sessionData&&L.sessionData.itct&&(I=L.sessionData.itct);var V=L.watchEndpoint;if(V&&L.sessionData&&L.sessionData.autonav)V=_.CuX(V,I);else{var W;V=_.qw(L.videoId,(W=L.listId)!=null?W:void 0,I)}I={endpoint:V};L.sessionData&&(I.tempData=L.sessionData);S.JSC$20398_watchApi.dispatchEvent("yt-navigate",I)};
p.addEventListener("onPlayVideo",U);S.addOnDisposeCallback(function(){p.removeEventListener("onPlayVideo",U)});
_.OV(Y)})},z7X=function(S){var p=function(U){S.onYtNavigate(U)};
S.JSC$20398_watchApi.getRoot().addEventListener("yt-navigate",p);S.addOnDisposeCallback(function(){S.JSC$20398_watchApi.getRoot().removeEventListener("yt-navigate",p)})};
_.nbJ.prototype.onYtNavigate=function(S){var p=this,U,Y,L,I,V,W,O,D,z;return _.T(function(Q){if(Q.nextAddress==1){if(!((U=S.detail)==null?0:(Y=U.endpoint)==null?0:Y.watchEndpoint))return Q.return();L=S.detail.endpoint.watchEndpoint;I=p.JSC$20398_watchApi.getWatchNextResponse();W=_.b((V=I)==null?void 0:V.currentVideoEndpoint,_.E$);if(!W)return Q.return();if(L.videoId!==W.videoId||L.playlistId&&L.playlistId!==W.playlistId||typeof L.startTimeSeconds!=="number")return Q.jumpTo(0);S.stopPropagation();
(O=_.y("kevlar_watch_while_v2")&&!_.y("kevlar_watch_while_counterfactual"))&&_.tW().resolve(_.eC).isMiniplayerActive()||p.JSC$20398_watchApi.scrollWatchTo(0,!0);return _.k(Q,p.JSC$20398_watchApi.playerApi,3)}D=Q.yieldResult;z=L.startTimeSeconds;D.seekTo(z,void 0,void 0,void 0,84);D.wakeUpControls();z<D.getDuration()&&D.playVideo();_.OV(Q)})};_.yvo=function(S){_.hY.call(this);var p=this;this.JSC$20401_watchApi=S;var U=this.JSC$20401_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){JvP(p)});
this.addOnDisposeCallback(function(){p.JSC$20401_watchApi.unsubscribeByKey(U)});
JvP(this)};
_.r(_.yvo,_.hY);var JvP=function(S){var p=S.JSC$20401_watchApi.getWatchNextResponse();if(p){var U,Y=[].concat(_.jo((U=p==null?void 0:p.engagementPanels)!=null?U:[]));Y.unshift.apply(Y,_.jo(KXP(p)));S.JSC$20401_watchApi.provideRenderingData("ENGAGEMENT_PANELS",Y)}},bxo=function(S){var p,U,Y,L=(p=S.engagementPanels)==null?void 0:(U=p.find(function(K){var G;
return((G=K.engagementPanelSectionListRenderer)==null?void 0:G.panelIdentifier)==="engagement-panel-structured-description"}))==null?void 0:(Y=U.engagementPanelSectionListRenderer.content)==null?void 0:Y.structuredDescriptionContentRenderer,I;
if(_.b(L==null?void 0:(I=L.items)==null?void 0:I.find(function(K){return!!_.b(K,U$X)}),U$X))return!0;
var V,W,O,D;if(S=(((V=S.contents)==null?void 0:(W=V.twoColumnWatchNextResults)==null?void 0:(O=W.results)==null?void 0:(D=O.results)==null?void 0:D.contents)||[]).find(function(K){return K.videoPrimaryInfoRenderer})){var z,Q,J;
return(((z=S.videoPrimaryInfoRenderer)==null?void 0:(Q=z.videoActions)==null?void 0:(J=Q.menuRenderer)==null?void 0:J.flexibleItems)||[]).some(function(K){K=_.b(K,_.w1E);if(!K)return!1;var G,X;K=(G=K.topLevelButton)==null?void 0:(X=G.buttonViewModel)==null?void 0:X.onTap;if(!K)return!1;G=_.sW(K);if(!G)return!1;var Z;return((Z=_.b(G,_.hx))==null?void 0:Z.panelIdentifier)==="PAyouchat"})}return!1},KXP=function(S){var p=[];
if(!_.y("web_watch_inject_placeholder_fantasy_panel_killswitch")){var U,Y,L,I=(U=S.engagementPanels)==null?void 0:(Y=U.find(function(W){var O;return((O=W.engagementPanelSectionListRenderer)==null?void 0:O.panelIdentifier)==="engagement-panel-structured-description"}))==null?void 0:(L=Y.engagementPanelSectionListRenderer.content)==null?void 0:L.structuredDescriptionContentRenderer,V;
_.b(I==null?void 0:(V=I.items)==null?void 0:V.find(function(W){return!!_.b(W,eGJ)}),eGJ)&&(U=_.CnG("PAsports_fantasy"),U.engagementPanelSectionListRenderer.visibility="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",p.push(U))}bxo(S)&&(S=_.CnG("PAyouchat"),S.engagementPanelSectionListRenderer.targetId="PAyouchat",S.engagementPanelSectionListRenderer.visibility="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",p.push(S));
return p};_.rvn=function(S){_.hY.call(this);this.JSC$20404_watchApi=S;j1d(this)};
_.r(_.rvn,_.hY);var j1d=function(S){S.JSC$20404_watchApi.registerActionHandler("yt-loop-command",function(p){GdP(S,p)});
S.JSC$20404_watchApi.registerActionHandler("yt-repeat-chapter-command",function(p){h75(S,p)});
S.addOnDisposeCallback(function(){S.JSC$20404_watchApi.unregisterActionHandler("yt-loop-command");S.JSC$20404_watchApi.unregisterActionHandler("yt-repeat-chapter-command")})},GdP=function(S,p){var U;
_.T(function(Y){if(Y.nextAddress==1)return _.k(Y,S.JSC$20404_watchApi.playerApi,2);U=Y.yieldResult;_.b(p,u9X).loop?(U.setLoopRange({startTimeMs:Number(_.b(p,u9X).startTimeMs),endTimeMs:Number(_.b(p,u9X).endTimeMs),postId:_.b(p,u9X).postId,type:"clips"}),U.playVideo()):U.setLoopRange(null);_.OV(Y)})},h75=function(S,p){var U,Y;
_.T(function(L){if(L.nextAddress==1)return _.k(L,S.JSC$20404_watchApi.playerApi,2);U=L.yieldResult;Y=_.b(p,CyP).repeat;Y==="REPEAT_CHAPTER_TYPE_ENABLE_REPEAT"?(U.setLoopRange({startTimeMs:Number(_.b(p,CyP).startTimeMs),endTimeMs:Number(_.b(p,CyP).endTimeMs),type:"repeatChapter"}),U.playVideo()):Y==="REPEAT_CHAPTER_TYPE_DISABLE_REPEAT"&&U.setLoopRange(null);_.OV(L)})};_.FX5=function(S){_.hY.call(this);this.JSC$20409_watchApi=S;R7X(this)};
_.r(_.FX5,_.hY);var R7X=function(S){S.JSC$20409_watchApi.registerActionHandler("yt-watch-player-overflow-menu-command",function(p){Xoq(S,p)});
S.addOnDisposeCallback(function(){S.JSC$20409_watchApi.unregisterActionHandler("yt-watch-player-overflow-menu-command")})},Xoq=function(S,p){var U,Y,L,I,V,W,O,D,z,Q,J;
_.T(function(K){if(K.nextAddress==1)return _.k(K,S.JSC$20409_watchApi.playerApi,2);U=K.yieldResult;if(I=(L=(Y=_.b(p,xiA))==null?void 0:Y.highlightedMenuItemKey)!=null?L:"")(W=(V=U).highlightSettingsMenuItem)==null||W.call(V,I);if(z=(D=(O=_.b(p,xiA))==null?void 0:O.openMenuItemKey)!=null?D:"")(J=(Q=U).openSettingsMenuItem)==null||J.call(Q,z);_.OV(K)})};var P$T=_.M9("/youtube/app/watch/player_state","playerStateEntity");_.s1i=function(S){_.hY.call(this);this.JSC$20412_watchApi=S;ZxL(this)};
_.r(_.s1i,_.hY);var e7q=function(S){switch(S){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"}},ZxL=function(S){var p,U;
_.T(function(Y){if(Y.nextAddress==1)return _.k(Y,S.JSC$20412_watchApi.playerApi,2);p=Y.yieldResult;U=function(L){S.onPlayerStateChange(L)};
p.addEventListener("onStateChange",U);S.addOnDisposeCallback(function(){p.removeEventListener("onStateChange",U)});
_.OV(Y)})};
_.s1i.prototype.onPlayerStateChange=function(S){var p=this,U,Y;return _.T(function(L){if(L.nextAddress==1)return _.k(L,p.JSC$20412_watchApi.playerApi,2);U=L.yieldResult;Y=U.getVideoData().video_id;_.xk().dispatch(_.WG("playerStateEntity",P$T,{key:P$T,playerState:e7q(S),videoId:Y}));_.OV(L)})};_.uL5=function(S){_.hY.call(this);var p=this;this.JSC$20416_watchApi=S;this.enableExternalPlaylistPanelInPlayer=_.y("delhi_web_player_use_external_playlist_panel");_.tW().resolve(_.Fz).setPlayer(this.JSC$20416_watchApi.getElement("PLAYER"));S=this.JSC$20416_watchApi.subscribeToActiveChanged(function(U){p.onActiveChanged(U)});
this.addOnDisposeCallback(S);gbX(this)};
_.r(_.uL5,_.hY);var gbX=function(S){var p,U;_.T(function(Y){if(Y.nextAddress==1)return S.enableExternalPlaylistPanelInPlayer?_.k(Y,S.JSC$20416_watchApi.playerApi,2):Y.return();p=Y.yieldResult;U=function(){if(S.playlistPanelElement)S.playlistPanelElement.onToggleExpanded()};
p.addEventListener("onToggleExternalPlaylistPanel",U);S.addOnDisposeCallback(function(){p.removeEventListener("onToggleExternalPlaylistPanel",U)});
_.OV(Y)})};
_.uL5.prototype.onActiveChanged=function(S){var p=this,U=_.tW().resolve(_.Fz),Y=function(){woi(p)};
S?(this.playlistPanelElement=this.JSC$20416_watchApi.getElement("PLAYLIST_PANEL"))?(U.setPlaylistComponent(this.playlistPanelElement),U.addEventListener("yt-playlist-data-updated",Y),this.addOnDisposeCallback(function(){U.removeEventListener("yt-playlist-data-updated",Y)}),woi(this)):_.fU(Error("im")):(U.removeEventListener("yt-playlist-data-updated",Y),U.cancelVideoSkip())};
var woi=function(S){var p=_.tW().resolve(_.Fz);S.JSC$20416_watchApi.provideRenderingData("PLAYLIST",p.getPlaylistData())};_.aM=function(S){_.hY.call(this);var p=this;this.JSC$20419_watchApi=S;this.onPageScroll=function(){p.scrollThrottle.fire();p.mastheadScrollThrottle.fire()};
this.scrollThrottle=new _.NB(this.onThrottledScroll,200,this);_.Hm(this,this.scrollThrottle);this.mastheadScrollThrottle=new _.NB(this.onMastheadThrottledScroll,50,this);_.Hm(this,this.mastheadScrollThrottle);this.animation=new _.sY(function(U){p.JSC$20419_watchApi.getRoot().setScrollTop(U)});
S=_.Wt(_.vJ(),_.eS,function(){p.onFullscreenChanged()});
this.addOnDisposeCallback(S);lUi(this);aUA(this);this.onThrottledScroll()};
_.r(_.aM,_.hY);
_.aM.prototype.onFullscreenChanged=function(){var S=this,p=this.JSC$20419_watchApi.getRoot();!this.pageScrollElement&&p.pageScrollElement?(this.pageScrollElement=p.pageScrollElement,p.pageScrollElement.addEventListener("scroll",this.onPageScroll),this.addOnDisposeCallback(function(){S.pageScrollElement&&S.pageScrollElement.removeEventListener("scroll",S.onPageScroll)})):this.pageScrollElement&&!p.pageScrollElement&&(this.pageScrollElement.removeEventListener("scroll",this.onPageScroll),this.pageScrollElement=
void 0)};
var lUi=function(S){window.addEventListener("scroll",S.onPageScroll);S.addOnDisposeCallback(function(){window.removeEventListener("scroll",S.onPageScroll)})},aUA=function(S){S.JSC$20419_watchApi.registerActionHandler("yt-scroll-to-watch-element",function(p){a:{var U;
if(U=S.JSC$20419_watchApi.getRoot().contains(p)&&!S.animation.isAnimating()){U=p.tagName==="YTD-ENGAGEMENT-PANEL-SECTION-LIST-RENDERER";var Y,L,I=(p==null?void 0:(Y=p.parentElement)==null?void 0:(L=Y.parentElement)==null?void 0:L.id)==="fixed-secondary";U=!(U&&I)}if(U){if(_.y("kevlar_watch_scroll_manager_absolute_offset_killswitch"))Y=p.offsetTop;else for(Y=0,L=p;L!==null;)Y+=L.offsetTop,Y-=L.scrollTop,L=L.offsetParent;L=Y;Y=L-24;p=L+p.offsetHeight+24;L=S.JSC$20419_watchApi.getRoot().getPageScrollingElement();
U=S.JSC$20419_watchApi.getRoot().getScrollTop();I=U+L.clientHeight-56;if(Y<U+56)p=Y-56;else if(p>I)p-=L.clientHeight;else break a;S.scrollWatchTo(Math.max(0,p),!0)}}});
S.addOnDisposeCallback(function(){S.JSC$20419_watchApi.unregisterActionHandler("yt-scroll-to-watch-element")})};
_.aM.prototype.onThrottledScroll=function(){var S=_.vJ(),p=S.dispatch,U=this.JSC$20419_watchApi.getRoot().getScrollTop();p.call(S,_.S4({type:"SET_WATCH_SCROLL_TOP",payload:{watchScrollTop:U}}))};
_.aM.prototype.onMastheadThrottledScroll=function(){this.JSC$20419_watchApi.dispatchEvent("yt-watch-masthead-scroll",this.JSC$20419_watchApi.getRoot().getScrollTop())};
_.aM.prototype.scrollWatchTo=function(S,p){(p===void 0?0:p)?this.animation.start(this.JSC$20419_watchApi.getRoot().getScrollTop(),Math.max(0,S),500):this.JSC$20419_watchApi.getRoot().setScrollTop(S)};_.xlA=function(S){_.hY.call(this);var p=this;this.JSC$20422_watchApi=S;var U=this.JSC$20422_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){fUq(p)}),Y=this.JSC$20422_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){C$t(p)});
this.addOnDisposeCallback(function(){p.JSC$20422_watchApi.unsubscribeByKey(U);p.JSC$20422_watchApi.unsubscribeByKey(Y)});
fUq(this);C$t(this)};
_.r(_.xlA,_.hY);
var fUq=function(S){var p,U,Y,L=(Y=(p=S.JSC$20422_watchApi.getPlayerResponse())==null?void 0:(U=p.videoDetails)==null?void 0:U.title)!=null?Y:"";S.JSC$20422_watchApi.dispatchEvent("yt-update-title",L)},C$t=function(S){var p,U,Y,L,I,V,W,O=(W=((V=(p=S.JSC$20422_watchApi.getWatchNextResponse())==null?void 0:(U=p.contents)==null?void 0:(Y=U.twoColumnWatchNextResults)==null?void 0:(L=Y.results)==null?void 0:(I=L.results)==null?void 0:I.contents)!=null?V:[]).find(function(D){return!!D.videoPrimaryInfoRenderer}))==null?
void 0:W.videoPrimaryInfoRenderer;
(p=_.mA(O==null?void 0:O.title))&&S.JSC$20422_watchApi.dispatchEvent("yt-update-title",p)};_.mlY=function(S){_.hY.call(this);this.JSC$20425_watchApi=S;Eb5(this)};
_.r(_.mlY,_.hY);var Eb5=function(S){var p,U;_.T(function(Y){if(Y.nextAddress==1)return _.k(Y,S.JSC$20425_watchApi.playerApi,2);p=Y.yieldResult;U=function(){S.onYpcContentRequest()};
p.addEventListener("onYpcContentRequest",U);S.addOnDisposeCallback(function(){p.removeEventListener("onYpcContentRequest",U)});
_.OV(Y)})};
_.mlY.prototype.onYpcContentRequest=function(){var S,p,U,Y,L,I=(S=this.JSC$20425_watchApi.getWatchNextResponse())==null?void 0:(p=S.contents)==null?void 0:(U=p.twoColumnWatchNextResults)==null?void 0:(Y=U.secondaryResults)==null?void 0:(L=Y.secondaryResults)==null?void 0:L.offerModule,V,W,O,D;S=(D=(O=(W=(V=I==null?void 0:I.episodeOfferModuleRenderer)!=null?V:I==null?void 0:I.movieOfferModuleRenderer)!=null?W:I==null?void 0:I.unlimitedOfferModuleRenderer)!=null?O:I==null?void 0:I.liveOfferModuleRenderer)!=
null?D:I==null?void 0:I.tvfilmOfferModuleRenderer;var z,Q,J;I=(J=I==null?void 0:(z=I.tvfilmOfferModuleRenderer)==null?void 0:(Q=z.actionButtons)==null?void 0:Q.length)!=null?J:0;Q=Math.max(I-1,0);var K,G,X;z=(X=S==null?void 0:(K=S.offerButton)==null?void 0:K.buttonRenderer)!=null?X:S==null?void 0:(G=S.actionButtons)==null?void 0:G[Q].buttonRenderer;var Z,l;(K=(l=(Z=z==null?void 0:z.navigationEndpoint)!=null?Z:z==null?void 0:z.serviceEndpoint)!=null?l:z==null?void 0:z.command)&&_.VO.instance.resolveCommand(K)};
}catch(e){_._DumpException(e)}
try{
var DZT,OUn,T7q;_.Wci=function(){var S=_.h9.clone(VnY),p;return(new _.O9(function(U,Y){S.onSuccess=function(L){_.guu(L)?U(new T7q(L)):Y(new _.$o("Request failed, status="+_.LA(L),"net.badstatus",L))};
S.onError=function(L){Y(new _.$o("Unknown request error","net.unknown",L))};
S.onTimeout=function(L){Y(new _.$o("Request timed out","net.timeout",L))};
p=_.WS("//googleads.g.doubleclick.net/pagead/id",S)})).thenCatch(function(U){if(U instanceof _.aA){var Y;
(Y=p)==null||Y.abort()}return _.jV(U)})};
_.k2t=function(S){a:{var p="EMBEDDED_PLAYER_MODE_UNKNOWN";window.location.hostname.includes("youtubeeducation.com")&&(p="EMBEDDED_PLAYER_MODE_PFL");var U=S.raw_embedded_player_response;if(!U&&(S=S.embedded_player_response))try{U=JSON.parse(S)}catch(L){break a}if(U)b:for(var Y in OUn)if(OUn[Y]==U.embeddedPlayerMode){p=OUn[Y];break b}}return p==="EMBEDDED_PLAYER_MODE_PFL"};
_.HUd=function(){if(_.y("disable_biscotti_fetch_entirely_for_all_web_clients"))return Error("mf");if(!_.c2w())return Error("nf");var S=_.g7("PLAYER_VARS",{});if(_.h9.get(S,"privembed",!1)=="1")return Error("of");if(_.k2t(S))return Error("pf")};
DZT=function(S){switch(S){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:_.WP(S,"unknown result type")}};
_.zwA=function(S,p,U){p=_.qzE[p];U={detected:S===0,source:p.z85,detectionResult:DZT(S),contentCpn:U};_.RV("biscottiBasedDetection",U);_.zIt.increment(p.z85,S);p.s1C!==void 0&&_.en("CATSTAT",_.Nkq(S,p))};
_.i7=function(S,p){var U={};U.key=S;U.value=p;return _.Pzq().then(function(Y){return new Promise(function(L,I){try{var V=Y.transaction("swpushnotificationsstore","readwrite").objectStore("swpushnotificationsstore").put(U);V.onsuccess=function(){L()};
V.onerror=function(){I()}}catch(W){I(W)}})})};
_.nsq=function(){var S=_.pA("user_engagement_experiments_rate_limit_ms"),p=Qdo.get("last-user-engagement-exp-trigger-timestamp");return!p||(0,_.AI)()>=p+S?(Qdo.set("last-user-engagement-exp-trigger-timestamp",(0,_.AI)()),!0):!1};
_.NS=function(S,p,U,Y,L){p=p===void 0?null:p;U=U===void 0?null:U;Y=Y===void 0?null:Y;L=L===void 0?null:L;S={youThereEventType:S};U&&(S.lactThresholdMs=U.lactThresholdMs,S.mediaPosSec=U.promptDelaySec,S.lactServerRequestMs=U.lactServerRequestMs,S.triggerReason=U.triggerReason);L!=null&&(S.renderingMediaPosSec=Math.round(L));p||(p=_.X$());p&&(S.clientScreenNonce=p);Y&&(S.clientPlaybackNonce=Y);_.RV("youThere",S)};
OUn={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"};T7q=function(S){this.xhr=S};
_.$o=function(S,p,U){_.Sw.call(this,S+", errorCode="+p);this.errorCode=p;this.xhr=U;this.name="PromiseAjaxError"};
_.r(_.$o,_.Sw);var VnY={format:"RAW",method:"GET",timeout:5E3,withCredentials:!0};var Qdo=new _.ug("ratelimit");
}catch(e){_._DumpException(e)}
try{
_.ihT=function(S){return _.S4({type:"SET_SINGLE_OPTION_SURVEY_IS_ACTIVE",payload:S})};
}catch(e){_._DumpException(e)}
try{
var Ee,S7L,U6T,Y7Y,L85,MGo,d6i,ziT,Q75,nwi,I2P,pKi,OnE,W8i,K8t;_.cvn=function(){var S=window.location.hash;S.charAt(0)==="#"&&(S=S.charAt(1)==="!"?S.substring(2):S.substring(1));return _.E0(S)};
Ee=function(S,p,U){var Y;return _.T(function(L){if(L.nextAddress==1)return _.k(L,p(),2);Y=L.yieldResult;U(Y,S);_.OV(L)})};
S7L=function(){return _.T(function(S){return S.nextAddress==1?_.k(S,(_.HUd()!==void 0?_.jV(Error("qf")):_.Wci()).then(function(){return 1},function(p){if(p.message==="Biscotti id is disabled")return 3;
_.eP("Failed fetching bid");return 0}),2):S.return(S.yieldResult)})};
U6T=function(){var S=_.BJ("b2x5dC1oYXZlbi1lbWJlZC1wbGF5ZXIjcHB3dGFjNnV3dw=="),p=_.BJ("cmFtZSM5N3U0ZzVjYnRkbDJpZg==");return document.querySelector(p+pKi+S)?0:1};
Y7Y=function(){return _.uFR(_.w_)};
L85=function(){return _.wld()===0?0:_.lqr()};
MGo=function(){return _.E2w(_.YzG([["player-ads",["ytd-merch-shelf-renderer","ytp-featured-product"],null]]))};
d6i=function(){return _.R_d(I2P)};
_.VGn=function(S){_.T(function(p){switch(p.nextAddress){case 1:return _.k(p,Ee("b.f_",S7L,S),2);case 2:return _.k(p,Ee("j.s_",_.Gsw,S),3);case 3:return _.k(p,Ee("r.s_",_.b$u,S),4);case 4:return _.k(p,Ee("e.h_",d6i,S),5);case 5:if(!_.y("ab_det_sc_inj")){p.jumpTo(6);break}return _.k(p,Ee("s.i_",_.e_X,S),6);case 6:if(_.y("ab_deg_unex_thr")){p.jumpTo(8);break}return _.k(p,Ee("a.o_",_.Z$e,S),8);case 8:if(_.y("ks_get_o_pp")){p.jumpTo(10);break}return _.k(p,Ee("g.o_",_.Pjw,S),10);case 10:if(_.y("ks_det_gpbl")){p.jumpTo(12);
break}return _.k(p,Ee("p.i_",_.XlX,S),12);case 12:return _.k(p,Ee("f.i_",_.WVN,S),14);case 14:return _.k(p,Ee("a.b_",_.yjw,S),15);case 15:return _.k(p,Ee("p.m_",_.H$E,S),16);case 16:if(!_.y("ab_det_el_h_v2")){p.jumpTo(17);break}return _.k(p,Ee("n.h_",MGo,S),17);case 17:return _.k(p,Ee("o.p_",Y7Y,S),19);case 19:return _.k(p,Ee("e.i_",U6T,S),20);case 20:if(_.y("ab_det_apm"))return _.k(p,Ee("o.a_",L85,S),0);p.jumpTo(0)}})};
_.TjT=function(S,p){S={videoId:S};p&&(S.playlistId=p);return S};
_.kSL=function(){if(_.c2w()){var S=_.g7("PLAYER_VARS",{});if(_.h9.get(S,"privembed",!1)!="1"&&!_.k2t(S)){var p=function(){W8i=!0;"google_ad_status"in window?_.en("DCLKSTAT",1):_.en("DCLKSTAT",2)};
try{_.uL("//static.doubleclick.net/instream/ad_status.js",p)}catch(U){}OnE.push(_.PA.addLowPriorityJob(function(){if(!(W8i||"google_ad_status"in window)){try{_.vxe("//static.doubleclick.net/instream/ad_status.js",p)}catch(U){}W8i=!0;_.en("DCLKSTAT",3)}},5E3))}}};
_.m2=function(S,p,U){U=U===void 0?!1:U;var Y=Math.max(S.width,_.LGs);if(_.y("kevlar_watch_feed_big_thumbs")&&S.width>=1550-_.FK()&&S.height>=800)Y-=_.WGd;else if(S.width>=_.wp){var L=_.MhT+_.IQs+_.u3;_.y("kevlar_watch_feed_big_thumbs")&&(L=_.TRE);Y-=L}else Y-=_.MhT;Y=Math.min(Y,_.d$o);L=240;U&&(L=380);p<.5624||(!_.y("kevlar_watch_flexy_disable_small_window_sizing")&&(S.height<630&&S.width>=657||S.height>=630&&S.width>=_.wp&&S.width<1327)?L=360:!_.y("kevlar_watch_flexy_disable_large_window_sizing")&&
S.height>=630&&S.width>=1327&&(L=480));var I=Math.min(Y*p,S.height-(56+_.YZs+_.VhX));I=Math.max(I,L);p<1?Y=I/p:S.width>=_.wp&&(Y=_.m2(S,.5625,U).width);return new _.OF(Math.round(Y),Math.round(I))};
_.Hni=function(S){var p=0;S.indexOf("h")!=-1&&(S=S.split("h"),p=S[0]*60*60,S=S[1]);S.indexOf("m")!=-1&&(S=S.split("m"),p=S[0]*60+p,S=S[1]);S.indexOf("s")!=-1?(S=S.split("s"),p=S[0]*1+p):p=S*1+p;return p};
_.D6J=function(){_.pA("service_worker_push_logged_out_prompt_watches")!=-1&&_.Az("WatchCount").then(function(S){S>=100||_.i7("WatchCount",S+1)})};
ziT=function(S){var p=S.externalVideoId||"";return p?S.isShortsEligible?"https://www.youtube.com/shorts/"+p:"https://www.youtube.com/watch?v="+p:""};
Q75=function(S){var p=[];S.viewCount&&p.push({"@type":"InteractionCounter",interactionType:"https://schema.org/WatchAction",userInteractionCount:S.viewCount});S.likeCount&&p.push({"@type":"InteractionCounter",interactionType:"https://schema.org/LikeAction",userInteractionCount:S.likeCount});return p};
nwi=function(S){var p,U,Y={"@context":"https://schema.org","@type":"VideoObject",description:_.mA(S.description),duration:"PT"+(S.lengthSeconds||"0")+"S",embedUrl:S.embed?S.embed.iframeUrl:"",name:_.mA(S.title),thumbnailUrl:((p=S.thumbnail)==null?void 0:(U=p.thumbnails)==null?void 0:U.map(function(z){return z&&z.url||""}))||[],
uploadDate:S.publishDate};_.y("mweb_video_schema_id_killswitch")||(Y["@id"]=ziT(S));p=Q75(S);p.length&&(Y.interactionStatistic=p);S.category&&(Y.genre=S.category);S.ownerChannelName&&(Y.author=S.ownerChannelName);S.liveBroadcastDetails&&(Y.publication=[{"@type":"BroadcastEvent",isLiveBroadcast:!0,startDate:S.liveBroadcastDetails.startTimestamp,endDate:S.liveBroadcastDetails.endTimestamp}]);if(S.learningResource){S=S.learningResource;Y["@type"]=["VideoObject","LearningResource"];var L;if((L=S.learningResourceType)==
null?0:L.length)Y.learningResourceType=S.learningResourceType[0];var I;if((I=S.educationalAlignment)==null?0:I.length)Y.educationalAlignment={"@type":"AlignmentObject",targetName:S.educationalAlignment[0]};var V;if((V=S.educationalLevel)==null?0:V.length){L=S.educationalLevel[0];var W;if((W=S.educationalLevelCountry)==null?0:W.length)L+=" ("+S.educationalLevelCountry+")";Y.educationalLevel=L}var O,D;if(((O=S.learningResourceType)==null?0:O.length)&&S.learningResourceType[0]==="Problem walkthrough"&&
((D=S.problemDescriptions)==null?0:D.length))for(Y.hasPart=[],W=_.d(S.problemDescriptions),O=W.next();!O.done;O=W.next())L=O.value,O=L.problemDescriptionText,D=L.startOffset,L=L.url,O&&D!==void 0&&L&&Y.hasPart.push({"@type":["Clip","LearningResource"],learningResourceType:"Problem walkthrough",name:O,text:O,startOffset:D,url:L})}return Y};
_.J$X=function(S){return _.S4({type:"SET_IS_LIVE_CHAT_COLLAPSED",payload:{isLiveChatCollapsed:S}})};
I2P=[[["YXJ5I2NzcnRneWIycTJ2bnByaW0=",null,null],[null,["YnJvd3NlLXJlc3VsdHMtcmVuZGVyZXIjcWhsaDdtNDBlM3pmeXRkLXR3by1jb2x1bW4t","aHYxdXk1dzRzODU5c3R5bGUtc2NvcGUj"],null],["eTJmNzE5b3poZ3d3bWFzdGhlYWQtYWQj",["Z3l0ZC1yaWNoLWdyaWQtcmVuZGVyZXIjNTllaXp2ZDZ0NjY="],null],[null,["b3l0ZC1yaWNoLWdyaWQtcmVuZGVyZXIjOGt0eTE0dTFpcGQ=","dHYzd3U1cHl0YTdtc3R5bGUtc2NvcGUj"],null],[null,["ZC1iYW5uZXItcHJvbW8tcmVuZGVyZXIjbmN6M3Q3a29vODFzeXQ=","Z3dqOWZ2MzA3Z3pqc3R5bGUtc2NvcGUj"],null],[null,["a3B2eXRkLWFkLXNsb3QtcmVuZGVyZXIjanptM3czdjQ5"],
null]],[["ZHMjcWxuN2U2ZXB1b2RwbGF5ZXItYQ==",null,null]]];pKi="#";OnE=[];W8i=!1;_.y$L=["engagement-panel-ads"];K8t=new _.v("updateSentimentBarStateCommand");_.bn5=new _.v("showSurveyCommand");_.oM=new _.v("changeMarkersVisibilityCommand");var r$J,GSt,XK5,F8X,RiX,va;_.j7L=function(S,p){this.playerProvider_=S;this.actionSenderElement_=p;this.pausePlaybackJob_=this.showBlockingWarningJob_=this.showWarningJob_=0;this.youThereData_=null;this.inYouThereFlow_=this.ignoreFullscreenExitUserActivity_=this.isUserPredictedAbsent_=!1};
_.j7L.prototype.reset=function(){r$J(this);this.isUserPredictedAbsent_=!1};
r$J=function(S,p){!S.youThereData_||S.showWarningJob_||p!==void 0&&p||(_.NS("YOU_THERE_EVENT_TYPE_NAVIGATED_OUT",_.X$(),S.youThereData_,S.clientPlaybackNonce_),_.Fr());_.PA.cancelJob(S.showWarningJob_);S.showWarningJob_=0;_.PA.cancelJob(S.showBlockingWarningJob_);S.showBlockingWarningJob_=0;_.PA.cancelJob(S.pausePlaybackJob_);S.pausePlaybackJob_=0;S.youThereData_=null;S.clientPlaybackNonce_=void 0;S.inYouThereFlow_=!1};
_.hii=function(S,p){var U,Y,L;_.T(function(I){if(I.nextAddress==1)return S.reset(),_.k(I,S.playerProvider_().getPlayerPromise(),2);U=I.yieldResult;S.clientPlaybackNonce_=U.getVideoData().cpn;S.youThereData_=p.configData.youThereData;if(!S.youThereData_)return I.return();if(S.youThereData_.triggerReason&&S.youThereData_.triggerReason=="YOU_THERE_TRIGGER_REASON_3"&&!_.nsq())return _.NS("YOU_THERE_EVENT_TYPE_RATE_LIMITED",_.X$(),S.youThereData_,S.clientPlaybackNonce_),I.return();Y=S.youThereData_.promptDelaySec;
L=U.getCurrentTime();S.showWarningJob_=_.PA.addLowPriorityJob(function(){return _.T(function(V){S.showWarningJob_=0;return _.k(V,GSt(S),0)})},Math.max(Y-L,0)*1E3);
_.OV(I)})};
GSt=function(S){var p,U,Y,L,I,V;return _.T(function(W){if(W.nextAddress==1)return _.k(W,S.playerProvider_().getPlayerPromise(),2);if(W.nextAddress!=3)return p=W.yieldResult,U=p.getCurrentTime(),_.k(W,RiX(S),3);Y=W.yieldResult;if(!Y||!S.youThereData_)return W.return();if(_.y("check_user_lact_at_prompt_shown_time_on_web")&&(L=parseInt(S.youThereData_.lactThresholdMs,10),_.pv()<L))return _.NS("YOU_THERE_EVENT_TYPE_BELOW_LACT_THRESHOLD",_.X$(),S.youThereData_,S.clientPlaybackNonce_),W.return();if(S.youThereData_.playbackPauseDelayMs<=
0)return F8X(S),W.return();!_.y("external_fullscreen")&&(I=_.Bv())&&(S.ignoreFullscreenExitUserActivity_=!0,_.PA.addLowPriorityJob(function(){S.ignoreFullscreenExitUserActivity_=!1},2E3),_.qU(I));
S.youThereData_.showToastWarningPrompt&&(va(S,S.youThereData_.showWarningActions),S.inYouThereFlow_=!0,_.NS("YOU_THERE_EVENT_TYPE_PROMPT_SHOWN",_.X$(),S.youThereData_,S.clientPlaybackNonce_,U),_.NS("YOU_THERE_EVENT_TYPE_WARNING_PROMPT_SHOWN",_.X$(),S.youThereData_,S.clientPlaybackNonce_,U));V=0;S.youThereData_.blockingPromptDelayMs&&(V=S.youThereData_.blockingPromptDelayMs);S.showBlockingWarningJob_=_.PA.addLowPriorityJob(function(){return _.T(function(O){S.showBlockingWarningJob_=0;return _.k(O,
XK5(S),0)})},V);
_.OV(W)})};
XK5=function(S){var p,U,Y;return _.T(function(L){if(L.nextAddress==1)return _.k(L,RiX(S),2);p=L.yieldResult;if(!S.youThereData_)return L.return();p&&(S.youThereData_.showBlockingWarningAction&&(_.NS("YOU_THERE_EVENT_TYPE_WARNING_PROMPT_SHOWN_IN_DIALOG",_.X$(),S.youThereData_,S.clientPlaybackNonce_),(U=_.b(S.youThereData_.showBlockingWarningAction,_.I2))?va(S,U.commands):va(S,[S.youThereData_.showBlockingWarningAction]),S.inYouThereFlow_=!0),Y=S.youThereData_.playbackPauseDelayMs,S.pausePlaybackJob_=
_.PA.addLowPriorityJob(function(){return _.T(function(I){S.pausePlaybackJob_=0;return _.k(I,F8X(S),0)})},Y));
_.OV(L)})};
F8X=function(S){var p;return _.T(function(U){if(U.nextAddress==1)return _.k(U,RiX(S),2);p=U.yieldResult;if(!S.youThereData_)return U.return();p&&(_.NS("YOU_THERE_EVENT_TYPE_PLAYBACK_PAUSED",_.X$(),S.youThereData_,S.clientPlaybackNonce_),va(S,S.youThereData_.showPausedActions),S.inYouThereFlow_=!0);_.OV(U)})};
_.j7L.prototype.onUserActivity=function(){if(this.youThereData_){if(this.ignoreFullscreenExitUserActivity_)return;if(this.youThereData_.userActiveDuringFlowAction){var S=_.b(this.youThereData_.userActiveDuringFlowAction,_.I2);S?va(this,S.commands):va(this,[this.youThereData_.userActiveDuringFlowAction])}this.inYouThereFlow_&&(_.NS("YOU_THERE_EVENT_TYPE_LACT_RESET",_.X$(),this.youThereData_,this.clientPlaybackNonce_),_.Fr());r$J(this,!0)}_.PUd(this,!1)};
_.ZnY=function(S){_.NS("YOU_THERE_EVENT_TYPE_USER_RESPONDED",_.X$(),S.youThereData_,S.clientPlaybackNonce_)};
RiX=function(S){var p,U;return _.T(function(Y){if(Y.nextAddress==1)return _.k(Y,S.playerProvider_().getPlayerPromise(),2);p=Y.yieldResult;U=p.getPlayerState();return Y.return(U==-1||U==1||U==3)})};
_.PUd=function(S,p){var U;_.T(function(Y){if(Y.nextAddress==1){if(S.isUserPredictedAbsent_==p)return Y.jumpTo(0);S.isUserPredictedAbsent_=p;return _.k(Y,S.playerProvider_().getPlayerPromise(),3)}U=Y.yieldResult;U.setUserEngagement(p);p&&_.NS("YOU_THERE_EVENT_TYPE_ABR_TRIGGERED",_.X$(),S.youThereData_,S.clientPlaybackNonce_);_.OV(Y)})};
va=function(S,p){if(_.y("handle_service_request_actions")||_.y("kevlar_youthere_service_endpoint_actions_killswitch"))_.Lp(S.actionSenderElement_,p,S.actionSenderElement_);else{p=_.d(p);for(var U=p.next();!U.done;U=p.next())U=U.value,U.commandMetadata&&U.commandMetadata.webCommandMetadata&&U.commandMetadata.webCommandMetadata.sendPost?_.Yd(S.actionSenderElement_,[U]):_.Lp(S.actionSenderElement_,[U],S.actionSenderElement_)}};var s7i;var eiE;var $N=function(){var S=_.w.apply(this,arguments)||this;S.systemIcons=_.y("kevlar_system_icons");S.actionMap={"yt-update-sentiment-bar-state-command":"handleUpdateSentimentBarStateCommand"};return S};
_.r($N,_.w);$N.prototype.observeLikeStatus=function(){if(this.data){if(this.data.likeStatus==="DISLIKE"){var S=this.data.percentIfDisliked||0;this.activated=!0}else this.data.likeStatus==="LIKE"?(S=this.data.percentIfLiked||0,this.activated=!0):(S=this.data.percentIfIndifferent||0,this.activated=!1);_.tB(this.hostElement).querySelector("#like-bar").style.width=S+"%"}};
$N.prototype.handleUpdateSentimentBarStateCommand=function(S){this.data&&this.set("data.likeStatus",_.b(S,K8t).likeStatus)};
$N.prototype.observeLikeStatus=$N.prototype.observeLikeStatus;_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],$N.prototype,"ytRendererBehavior",void 0);_.x([_.F(_.Aj.YtActionHandlerBehavior),_.E("design:type",Object)],$N.prototype,"ytActionHandlerBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],$N.prototype,"data",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Boolean)],$N.prototype,"activated",void 0);
_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],$N.prototype,"systemIcons",void 0);_.x([_.T4("data.likeStatus"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],$N.prototype,"observeLikeStatus",null);$N=_.x([_.f({is:"ytd-sentiment-bar-renderer",disableElementRegistration:!0})],$N);
_.C($N,"ytd-sentiment-bar-renderer",function(){if(eiE!==void 0)return eiE;var S=document.createElement("template");_.h(S,'\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');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);return eiE=S},{mode:1});var gwX;var ik=function(){var S=_.w.apply(this,arguments)||this;S.small=!0;return S};
_.r(ik,_.w);_.x([_.F(_.eL.YtComponentBehavior),_.E("design:type",Object)],ik.prototype,"ytComponentBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],ik.prototype,"data",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],ik.prototype,"small",void 0);ik=_.x([_.f({disableElementRegistration:!0,is:"ytd-video-view-count-renderer"})],ik);
_.C(ik,"ytd-video-view-count-renderer",function(){if(gwX!==void 0)return gwX;var S=document.createElement("template");_.h(S,'\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>');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);return gwX=S},{mode:_.UW("kevlar_poly_si_batch_j080")?1:2});var N8=function(){var S=_.w.apply(this,arguments)||this;S.infoFormattedStrings=[];S.wrapVideoActions=_.y("kevar_watch_wrap_video_actions");S.hideSentimentBar=_.y("kevlar_watch_hide_sentiment_bar");S.actionMap={};return S};
_.r(N8,_.w);_.M=N8.prototype;_.M.configureRendererStamper=function(){return{"data.videoActions":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer",params:{icon:"yt-icons:more",styleActionButton:!0,tonalOverride:_.y("web_modern_buttons"),forceIconButton:!_.y("web_modern_buttons")}}}},"data.viewCount":{id:"count",mapping:{videoViewCountRenderer:"ytd-video-view-count-renderer"}}}};
_.M.dataChanged=function(){_.y("web_watch_get_updated_metadata_manager")||this.scheduleInitialUpdatedMetadataRequest();this.setSentimentBarWidth()};
_.M.computeInfoFormattedStrings=function(S){if(!S)return[];var p=[];S.dateText&&p.push(S.dateText);S.stationName&&p.push(S.stationName);S.rating&&p.push(S.rating);S.startEndTimeTemplate&&S.startTimeUtcMillis&&S.endTimeUtcMillis&&p.push(_.Ec(_.jD5(_.mA(S.startEndTimeTemplate),Number(S.startTimeUtcMillis),Number(S.endTimeUtcMillis))));S.upNextProgramText&&p.push(S.upNextProgramText);return p};
_.M.scheduleInitialUpdatedMetadataRequest=function(){var S,p=(S=this.data)==null?void 0:S.updatedMetadataEndpoint;if(p){var U;S=Number((U=_.b(p,_.QUw))==null?void 0:U.initialDelayMs);U=isNaN(S)?250:S;this.ytTaskEmitterBehavior.getTaskManager().addLowPriorityJob(this.fetchUpdatedMetadata.bind(this),U)}};
_.M.setSentimentBarWidth=function(){var S=this;_.oH(this,function(){var p=_.tB(S.hostElement).querySelector("ytd-menu-renderer");if(p){p=p.topLevelButtons;for(var U=0,Y=0;Y<p.length;Y++){var L=p[Y],I=S.get("toggleButtonSupportedData.toggleButtonIdData.id",L.data);if(I==="TOGGLE_BUTTON_ID_TYPE_DISLIKE"||I==="TOGGLE_BUTTON_ID_TYPE_LIKE")U+=L.clientWidth+8;else break}U&&(S.sentiment.style.width=U-8+" px")}})};
_.M.fetchUpdatedMetadata=function(S){var p;S&&(p={continuation:S});var U;(S=(U=this.data)==null?void 0:U.updatedMetadataEndpoint)&&_.tW().resolve(_.cQ).resolveCommand(S,{form:Object.assign({},p,{element:this.hostElement})})};
_.M.onYtServiceRequestSent=function(S,p){p.endpoint&&_.b(p.endpoint,_.lO)&&(this.hasUpdateSentimentBarStateCommands()&&!_.y("kevlar_sentiment_bar_update_killswitch")||this.set("data.sentimentBar.sentimentBarRenderer.likeStatus",_.b(p.endpoint,_.lO).status),this.setSentimentBarWidth())};
_.M.hasUpdateSentimentBarStateCommands=function(){var S,p,U,Y,L=(Y=(S=this.data)==null?void 0:(p=S.videoActions)==null?void 0:(U=p.menuRenderer)==null?void 0:U.topLevelButtons)!=null?Y:[];S=_.d(L);for(p=S.next();!p.done;p=S.next()){p=p.value;L=Y=U=void 0;var I=(U=p.toggleButtonRenderer)==null?void 0:(Y=U.toggleButtonSupportedData)==null?void 0:(L=Y.toggleButtonIdData)==null?void 0:L.id;if(I==="TOGGLE_BUTTON_ID_TYPE_LIKE"||I==="TOGGLE_BUTTON_ID_TYPE_DISLIKE"){Y=U=void 0;p=(Y=_.b((U=p.toggleButtonRenderer)==
null?void 0:U.defaultServiceEndpoint,_.I2))==null?void 0:Y.commands;if(!p)break;p=_.d(p);for(U=p.next();!U.done;U=p.next())if(_.b(U.value,K8t))return!0}}return!1};
_.M.onYtServiceRequestCompleted=function(S,p){var U;(S=(U=p.data)==null?void 0:U.loggingDirectives)&&_.ZOw(_.HX(),S);this.get("continuation.timedContinuationData",p.data)&&this.data&&this.data.updatedMetadataEndpoint&&(p=p.data.continuation.timedContinuationData,this.ytTaskEmitterBehavior.getTaskManager().addLowPriorityJob(this.fetchUpdatedMetadata.bind(this,p.continuation),p.timeoutMs))};
_.M.computeHasDateText=function(S){return!!S&&!!S.dateText};
_.$u.Object.defineProperties(N8.prototype,{flexMenuEnabled:{configurable:!0,enumerable:!0,get:function(){var S,p,U,Y;return!((Y=(S=this.data)==null?void 0:(p=S.videoActions)==null?void 0:(U=p.menuRenderer)==null?void 0:U.flexibleItems)==null||!Y.length)}}});
N8.prototype.onYtServiceRequestCompleted=N8.prototype.onYtServiceRequestCompleted;N8.prototype.onYtServiceRequestSent=N8.prototype.onYtServiceRequestSent;N8.prototype.dataChanged=N8.prototype.dataChanged;_.x([_.F(_.Aj.YtActionHandlerBehavior),_.E("design:type",Object)],N8.prototype,"ytActionHandlerBehavior",void 0);_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],N8.prototype,"ytRendererBehavior",void 0);
_.x([_.F(_.qH.YtRendererstamperBehavior),_.E("design:type",Object)],N8.prototype,"ytRendererstamperBehavior",void 0);_.x([_.F(_.$2.YtTaskEmitterBehavior),_.E("design:type",Object)],N8.prototype,"ytTaskEmitterBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],N8.prototype,"data",void 0);_.x([_.g({computed:"computeInfoFormattedStrings(data)"}),_.E("design:type",Array)],N8.prototype,"infoFormattedStrings",void 0);
_.x([_.g({computed:"computeHasDateText(data)",reflectToAttribute:!0}),_.E("design:type",Boolean)],N8.prototype,"hasDateText",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],N8.prototype,"wrapVideoActions",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],N8.prototype,"hideSentimentBar",void 0);_.x([_.g({reflectToAttribute:!0}),_.e("data"),_.E("design:type",Boolean),_.E("design:paramtypes",[])],N8.prototype,"flexMenuEnabled",null);
_.x([_.O2("#sentiment"),_.E("design:type",Object)],N8.prototype,"sentiment",void 0);_.x([_.T4("data"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],N8.prototype,"dataChanged",null);_.x([_.Vd("yt-service-request-sent"),_.E("design:type",Function),_.E("design:paramtypes",[CustomEvent,_.eM]),_.E("design:returntype")],N8.prototype,"onYtServiceRequestSent",null);
_.x([_.Vd("yt-service-request-completed"),_.E("design:type",Function),_.E("design:paramtypes",[CustomEvent,_.xL]),_.E("design:returntype")],N8.prototype,"onYtServiceRequestCompleted",null);
_.C(N8,"ytd-video-primary-info-renderer",function(){if(s7i===void 0){var S=document.createElement("template");_.h(S,'\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>');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);s7i=S}S=s7i;return S},{mode:1});var u_E;var Ba=function(){var S=_.w.apply(this,arguments)||this;S.actionMap={"yt-update-date-text-action":"handleUpdateDateTextAction","yt-update-description-action":"handleUpdateDescriptionAction","yt-change-engagement-panel-visibility-action":"onYtChangeEngagementPanelVisibilityAction"};return S};
_.r(Ba,_.w);_.M=Ba.prototype;_.M.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"}}}};
_.M.dataChanged=function(){var S;this.descriptionToggled=!((S=this.data)==null||!S.defaultExpanded);var p;this.collapsed=this.descriptionAlwaysCollapsed||!((p=this.data)==null?0:p.defaultExpanded);this.subscribeButtonData=this.data.subscribeButton;this.descriptionCollapsedHeight=(this.data.descriptionCollapsedLines||3)*20;this.showMoreClientVe=_.bZ(110509);this.showLessClientVe=_.bZ(110510);S=_.X$();p=_.F$();S&&p&&_.l5(S,p,[this.showMoreClientVe,this.showLessClientVe])};
_.M.onYtExpanderMoreTapped=function(){var S,p=(S=this.data)==null?void 0:S.showMoreCommand;p&&!this.hasInlineStructuredDescription&&this.componentBehavior.resolveCommand(p);(S=_.X$())&&this.showMoreClientVe&&_.xd(S,this.showMoreClientVe)};
_.M.onYtExpanderLessTapped=function(){var S=_.X$();S&&this.showLessClientVe&&_.xd(S,this.showLessClientVe);var p;(S=(p=this.data)==null?void 0:p.showLessCommand)&&this.componentBehavior.resolveCommand(S)};
_.M.handleUpdateDateTextAction=function(S){this.data&&this.data.dateText&&this.set("data.dateText",_.b(S,_.AoE).dateText)};
_.M.handleUpdateDescriptionAction=function(S){if(S=_.b(S,_.dcc))S.isEmpty||!S.description?this.description.hidden=!0:this.hasAttributedDescription?this.set("data.attributedDescription",_.Fi(S.description)):this.set("data.description",S.description)};
_.M.onYtChangeEngagementPanelVisibilityAction=function(S){if(_.y("web_structured_description_show_more")||_.y("web_engagement_panel_open_description")){var p,U=(p=_.b(S,_.qpP))==null?void 0:p.targetId,Y;S=((Y=_.b(S,_.qpP))==null?void 0:Y.visibility)==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED";U==="engagement-panel-structured-description"&&S&&(this.descriptionToggled=!0)}};
_.M.updateCollapsedFromBinding=function(S){this.collapsed=S.detail.value};
_.M.updateDescriptionToggledFromBinding=function(S){this.descriptionToggled=S.detail.value};
_.M.updateCanCollapseFromBinding=function(S){this.canCollapse=S.detail.value};
_.$u.Object.defineProperties(Ba.prototype,{metadataCollapsible:{configurable:!0,enumerable:!0,get:function(){var S,p,U=(S=this.data)==null?void 0:(p=S.metadataRowContainer)==null?void 0:p.metadataRowContainerRenderer;return!!U&&!!U.rows&&U.rows.length>U.collapsedItemCount}},
hasInlineStructuredDescription:{configurable:!0,enumerable:!0,get:function(){return!!this.structuredDescriptionContentRenderer}},
hasAttributedDescription:{configurable:!0,enumerable:!0,get:function(){var S;return!((S=this.data)==null||!S.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}}});
Ba.prototype.onYtExpanderLessTapped=Ba.prototype.onYtExpanderLessTapped;Ba.prototype.onYtExpanderMoreTapped=Ba.prototype.onYtExpanderMoreTapped;Ba.prototype.dataChanged=Ba.prototype.dataChanged;_.x([_.F(_.Aj.YtActionHandlerBehavior),_.E("design:type",Object)],Ba.prototype,"ytActionHandlerBehavior",void 0);_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],Ba.prototype,"ytRendererBehavior",void 0);
_.x([_.F(_.qH.YtRendererstamperBehavior),_.E("design:type",Object)],Ba.prototype,"ytRendererstamperBehavior",void 0);_.x([_.F(_.eL.YtComponentBehavior),_.E("design:type",Object)],Ba.prototype,"componentBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],Ba.prototype,"data",void 0);_.x([_.g(),_.E("design:type",Boolean)],Ba.prototype,"collapsed",void 0);_.x([_.g(),_.E("design:type",Boolean)],Ba.prototype,"descriptionToggled",void 0);
_.x([_.g(),_.E("design:type",Boolean)],Ba.prototype,"canCollapse",void 0);_.x([_.g(),_.E("design:type",Object)],Ba.prototype,"subscribeButtonData",void 0);_.x([_.g(),_.E("design:type",Number)],Ba.prototype,"descriptionCollapsedHeight",void 0);_.x([_.g(),_.E("design:type",Object)],Ba.prototype,"structuredDescriptionContentRenderer",void 0);_.x([_.g({value:function(){return _.y("web_watch_description_always_collapsed")}}),
_.E("design:type",Boolean)],Ba.prototype,"descriptionAlwaysCollapsed",void 0);_.x([_.O2("#description"),_.E("design:type",HTMLDivElement)],Ba.prototype,"description",void 0);_.x([_.z4("data"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],Ba.prototype,"dataChanged",null);_.x([_.Vd("yt-expander-more-tapped"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],Ba.prototype,"onYtExpanderMoreTapped",null);
_.x([_.Vd("yt-expander-less-tapped"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],Ba.prototype,"onYtExpanderLessTapped",null);_.x([_.e("data.metadataRowContainer"),_.E("design:type",Boolean),_.E("design:paramtypes",[])],Ba.prototype,"metadataCollapsible",null);_.x([_.e("data","structuredDescriptionContentRenderer"),_.E("design:type",Boolean),_.E("design:paramtypes",[])],Ba.prototype,"hasInlineStructuredDescription",null);
_.x([_.e("data.attributedDescription"),_.E("design:type",Boolean),_.E("design:paramtypes",[])],Ba.prototype,"hasAttributedDescription",null);_.x([_.e("hasInlineStructuredDescription","collapsed"),_.E("design:type",Boolean),_.E("design:paramtypes",[])],Ba.prototype,"loadStructuredDescription",null);_.x([_.e("data","structuredDescriptionContentRenderer","collapsed"),_.E("design:type",Boolean),_.E("design:paramtypes",[])],Ba.prototype,"showInlineStructuredDescription",null);
_.x([_.e("data","hasInlineStructuredDescription","metadataCollapsible"),_.E("design:type",Boolean),_.E("design:paramtypes",[])],Ba.prototype,"descriptionAlwaysCollapsible",null);
_.C(Ba,"ytd-video-secondary-info-renderer",function(){if(u_E===void 0){var S=document.createElement("template");_.h(S,'\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>');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);u_E=S}S=u_E;return S},{mode:2});var wKL;var q8=function(){return _.w.apply(this,arguments)||this};
_.r(q8,_.w);q8.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:_.y("web_modern_buttons"),forceIconButton:!_.y("web_modern_buttons")}}}},"data.subscribeButton":{id:"subscribe",mapping:{buttonRenderer:"ytd-button-renderer",subscribeButtonRenderer:"ytd-subscribe-button-renderer"}}}};
q8.prototype.activate=function(S){S.appendTo(this.player);S.getPlayerPromise().then(function(p){p.setMinimized(!0)});
this.active=!0};
q8.prototype.deactivate=function(){var S=this.player.firstElementChild;S.getPlayerPromise().then(function(p){p.setMinimized(!1)});
this.active=!1;return S};
q8.prototype.onScrollUpTap=function(){var S=_.tW().resolve(_.oy).getCurrentPage();S&&S.setScrollTop(0)};
_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],q8.prototype,"ytRendererBehavior",void 0);_.x([_.F(_.qH.YtRendererstamperBehavior),_.E("design:type",Object)],q8.prototype,"ytRendererstamperBehavior",void 0);_.x([_.F(_.eL.YtComponentBehavior),_.E("design:type",Object)],q8.prototype,"componentBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],q8.prototype,"data",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Boolean)],q8.prototype,"active",void 0);
_.x([_.g({reflectToAttribute:!0,value:function(){return _.y("kevlar_watch_while_miniplayer_bar_dark_launch")}}),
_.E("design:type",Boolean)],q8.prototype,"darkLaunch",void 0);_.x([_.O2("#player"),_.E("design:type",HTMLDivElement)],q8.prototype,"player",void 0);q8=_.x([_.f({disableElementRegistration:!0,is:"ytd-miniplayer-bar-renderer"})],q8);
_.C(q8,"ytd-miniplayer-bar-renderer",function(){if(wKL!==void 0)return wKL;var S=document.createElement("template");_.h(S,'\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');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);return wKL=S},{mode:1});_.qm(_.$k(function(S){var p=_.vH();_.R8(function(){var U;if(U=JSON)U=nwi(S.data()),U=_.wc(JSON.stringify(U).replace(/</g,"\\u003C"));var Y=S.data(),L=_.mA(Y.title).trim().length===0,I=!Y.publishDate||Y.publishDate.trim().length===0,V,W,O,D,z=!((V=Y.thumbnail)==null?0:(W=V.thumbnails)==null?0:W.length)||!((O=Y.thumbnail)==null?0:O.thumbnails[0].url)||((D=Y.thumbnail)==null?void 0:D.thumbnails[0].url.trim().length)===0;p.value&&U&&!(L||I||z)&&_.aK(p.value,U)});
return _.H("player-microformat-renderer",{class:"playerMicroformatRendererHost"},_.H("script",{el:p,type:"application/ld+json"}))},"oj"),"player-microformat-renderer",{props:{data:_.BX}});
}catch(e){_._DumpException(e)}
try{
var q5s;_.obJ=function(S){return S.watch.watchWindowSize};
_.vbd=function(S){return _.S4({type:"SET_IS_WATCH_ACTIVE",payload:{isWatchActive:S}})};
q5s=function(S){_.hY.call(this);var p=this;this.JSC$20429_watchApi=S;S=_.Wt(_.vJ(),_.Azq,function(){$lL(p)});
this.addOnDisposeCallback(S);S=_.Wt(_.vJ(),_.obJ,function(){$lL(p)});
this.addOnDisposeCallback(S);ixi(this);NA5(this);BAX()};
_.r(q5s,_.hY);var ixi=function(S){var p=function(Y){_.vJ().dispatch(_.Qvd(Y.matches))},U=window.matchMedia("(max-width: "+(999+_.FK())+"px)");
U.addListener(p);S.addOnDisposeCallback(function(){U.removeListener(p)});
p(U)},NA5=function(S){S.JSC$20429_watchApi.registerActionHandler("yt-window-resized",function(){BAX()});
S.addOnDisposeCallback(function(){S.JSC$20429_watchApi.unregisterActionHandler("yt-window-resized")})},BAX=function(){var S=_.zv();
_.vJ().dispatch(_.S4({type:"SET_WATCH_WINDOW_SIZE",payload:{watchWindowSize:{width:S.width,height:S.height}}}))},$lL=function(S){var p;
_.T(function(U){if(U.nextAddress==1)return _.k(U,S.JSC$20429_watchApi.playerApi,2);p=U.yieldResult;p.setSize(NaN,NaN);_.OV(U)})};_.fy=function(S){_.qS.call(this);var p=this;this.rootElement=S;this.activeModules=[];this.actionHandlers=new Map;this.TEST_ONLY={getActiveModules:function(){return p.activeModules}};
this.initPersistentModules();this.addOnDisposeCallback(this.subscribeToActiveChanged(function(U){p.initOrDisposeActiveModules(U)}));
this.onAttached()};
_.r(_.fy,_.qS);_.M=_.fy.prototype;_.M.getRoot=function(){return this.rootElement};
_.M.getElement=function(S){return this.rootElement.getElement(S)};
_.M.setPlayerResponse=function(S){this.playerResponse=S;this.publish("PLAYER_RESPONSE_UPDATED",S)};
_.M.getPlayerResponse=function(){return this.playerResponse};
_.M.setWatchNextResponse=function(S){this.watchNextResponse===S?this.publish("WATCH_NEXT_RESPONSE_RELOADED"):(this.watchNextResponse=S,this.publish("WATCH_NEXT_RESPONSE_UPDATED",S))};
_.M.getWatchNextResponse=function(){return this.watchNextResponse};
_.M.registerActionHandler=function(S,p){var U=this;if(_.y("web_watch_controller_reg_multiple_handlers_killswitch")){var Y={};_.E9(_.xv.getInstance(),(Y[S]=p,Y),this.getRoot())}else this.actionHandlers.has(S)||(this.actionHandlers.set(S,[]),Y={},_.E9(_.xv.getInstance(),(Y[S]=function(){var L=_.jO.apply(0,arguments);return(U.actionHandlers.get(S)||[]).map(function(I){return I.apply(null,_.jo(L))})},Y),this.getRoot())),this.actionHandlers.get(S).push(p)};
_.M.unregisterActionHandler=function(S){if(_.y("web_watch_controller_reg_multiple_handlers_killswitch")){var p={};_.me(_.xv.getInstance(),(p[S]=!0,p),this.getRoot())}else(p=this.actionHandlers.get(S))?(p.pop(),p.length===0&&(p={},_.me(_.xv.getInstance(),(p[S]=!0,p),this.getRoot()),this.actionHandlers.delete(S))):_.eP(new _.y7("Attempted to unregister an action handler which is not registered.",S))};
_.M.addPageDisposeJob=function(S){this.rootElement.pageDisposeJobs||(this.rootElement.pageDisposeJobs=[]);_.$R(this.rootElement.pageDisposeJobs,S)};
_.M.removePageDisposeJob=function(S){this.rootElement.pageDisposeJobs&&_.NG(this.rootElement.pageDisposeJobs,S)};
_.M.dispatchEvent=function(S,p){_.cv(this.rootElement,S,p)};
_.M.provideRenderingData=function(S,p){this.rootElement.provideRenderingData(S,p)};
_.M.scrollWatchTo=function(S,p){var U;(U=this.watchScrollManager)==null||U.scrollWatchTo(S,p)};
_.M.focusOnPlayer=function(){var S=this.getElement("PLAYER");_.oH(S,function(){if(S&&S.firstElementChild){var p=S.querySelector(".html5-video-player");p&&(_.ic(_.tW().resolve(_.rY)),p.focus())}else _.eP(Error("jm"))})};
_.M.updateCinematicFullscreenConfig=function(){var S=!!this.rootElement.theater,p=!!this.rootElement.fullscreen,U;(U=this.watchCinematicManager)==null||_.ocX(U,p,S)};
_.M.subscribeToActiveChanged=function(S,p){p=p===void 0?!0:p;var U=_.Wt(_.vJ(),_.rG5,function(Y){S(Y)});
p&&S(_.rG5(_.vJ().getState()));return U};
_.M.isActive=function(){return _.rG5(_.vJ().getState())};
_.M.onAttached=function(){var S=_.y("external_fullscreen");_.y("use_unified_flag_accessor")&&(S=_.tW().resolve(_.GGJ).retriever.getFlag(_.sOe));(S||_.ub("START_IN_FULL_WINDOW_MODE"))&&this.dispatchEvent("yt-set-fullerscreen-styles")};
var AvL=function(S){return S.getRoot().is==="ytd-watch-flexy"||S.getRoot().is==="ytd-watch-grid"},Cy=function(S){return S.getRoot().is==="ytd-watch-fixie"};
_.fy.prototype.initPersistentModules=function(){if(Cy(this)||AvL(this)&&_.y("kevlar_watch_flexy_theater_manager")){var S=new _.JXo(this);_.Hm(this,S)}S=new _.Y5P(this);_.Hm(this,S);S=new _.XV(this);_.Hm(this,S);S=new _.wu(this);_.Hm(this,S);S=new _.s1i(this);_.Hm(this,S);S=new _.Zn(this);_.Hm(this,S);if(Cy(this)||AvL(this)&&_.y("kevlar_watch_flexy_playlist_manager"))S=new _.uL5(this),_.Hm(this,S)};
_.fy.prototype.initOrDisposeActiveModules=function(S){S?(this.watchScrollManager=new _.aM(this),this.activeModules.push(this.watchScrollManager),this.activeModules.push(new _.nbJ(this)),this.activeModules.push(new _.j_X(this)),Cy(this)&&this.activeModules.push(new q5s(this)),this.activeModules.push(new _.xlA(this)),this.activeModules.push(new _.lk(this)),(Cy(this)||_.y("kevlar_watch_flexy_error_screen_data_provider"))&&this.activeModules.push(new _.RuE(this)),this.activeModules.push(new _.rvn(this)),
(Cy(this)||_.y("kevlar_watch_flexy_ypc_manager"))&&this.activeModules.push(new _.mlY(this)),(Cy(this)||_.y("kevlar_watch_flexy_ads_manager"))&&this.activeModules.push(new _.u0E(this)),_.y("kevlar_watch_cinematics")&&(this.watchCinematicManager=new _.CPt(this),this.activeModules.push(this.watchCinematicManager),this.updateCinematicFullscreenConfig()),_.y("kevlar_watch_player_menu_highlight_manager_killswitch")||this.activeModules.push(new _.FX5(this)),_.y("kevlar_watch_flexy_gestures_manager")&&this.activeModules.push(new _.poY(this)),
S=_.y("swatcheroo_directly_provide_comments")&&this.getRoot().is==="ytd-watch-grid",_.y("kevlar_watch_flexy_comments_manager")&&!S&&this.activeModules.push(new _.qdT(this)),_.y("web_watch_get_updated_metadata_manager")&&this.activeModules.push(new _.Pa(this)),this.activeModules.push(new _.RNq(this)),this.activeModules.push(new _.yvo(this)),_.y("web_enable_timely_actions")&&this.activeModules.push(new _.Zon(this)),_.y("web_enable_player_creator_endscreen_manager")&&this.activeModules.push(new _.cpE(this)),
_.y("web_watch_enable_multiview_manager")&&this.activeModules.push(new _.oJX(this)),_.y("web_fullscreen_video_action_bar")&&this.activeModules.push(new _.ZML(this)),_.y("web_player_rtr_ctrls")&&this.activeModules.push(new _.pMJ(this))):(_.ci(this.activeModules),this.activeModules.length=0,this.watchScrollManager=void 0)};
_.fy.prototype.disposeInternal=function(){_.qS.prototype.disposeInternal.call(this);this.initOrDisposeActiveModules(!1)};
_.$u.Object.defineProperties(_.fy.prototype,{playerApi:{configurable:!0,enumerable:!0,get:function(){return this.getRoot().getPlayer().getPlayerPromise()}}});
}catch(e){_._DumpException(e)}
try{
var yzq,Gd,Kbt,bOT,rzt,GtY,jLL,h95;yzq=function(){var S=_.QT();S.info||(S.info={});return S.info};
Gd=function(S){return Math.round(_.Ja()+S)};
Kbt=function(){var S;if(_.y("csi_use_performance_navigation_timing")){var p,U,Y,L=_.np==null?void 0:(S=_.np.getEntriesByType)==null?void 0:(p=S.call(_.np,"navigation"))==null?void 0:(U=p[0])==null?void 0:(Y=U.toJSON)==null?void 0:Y.call(U);L?(L.requestStart=Gd(L.requestStart),L.responseEnd=Gd(L.responseEnd),L.redirectStart=Gd(L.redirectStart),L.redirectEnd=Gd(L.redirectEnd),L.domainLookupEnd=Gd(L.domainLookupEnd),L.connectStart=Gd(L.connectStart),L.connectEnd=Gd(L.connectEnd),L.responseStart=Gd(L.responseStart),
L.secureConnectionStart=Gd(L.secureConnectionStart),L.domainLookupStart=Gd(L.domainLookupStart),L.isPerformanceNavigationTiming=!0,S=L):S=_.np.timing}else S=_.y("csi_performance_timing_to_object")?JSON.parse(JSON.stringify(_.np.timing)):_.np.timing;return S};
bOT=function(){if(_.np.getEntriesByType){var S=_.np.getEntriesByType("paint");if(S=_.fr(S,function(U){return U.name==="first-paint"}))return Gd(S.startTime)}var p;
_.y("csi_use_performance_navigation_timing")?p=_.np.getEntriesByType("first-paint")[0].startTime:p=_.np.timing.msFirstPaint;return p?Math.max(0,p):0};
rzt=function(){var S=window.location.protocol,p=_.np.getEntriesByType("resource");p=_.Ax(p,function(U){return U.name.indexOf(S+"//fonts.gstatic.com/s/")===0});
(p=jLL(p,function(U,Y){return Y.duration>U.duration?Y:U}))&&p.startTime>0&&p.responseEnd>0&&(_.yT("wffs",Gd(p.startTime)),_.yT("wffe",Gd(p.responseEnd)))};
GtY=function(S,p){S=document.querySelector(S);if(!S)return!1;var U="",Y=S.nodeName;Y==="SCRIPT"?(U=S.src,U||(U=S.getAttribute("data-timing-href"))&&(U=window.location.protocol+U)):Y==="LINK"&&(U=S.href);_.eO(document)&&S.setAttribute("nonce",_.eO(document));return U?(S=_.np.getEntriesByName(U))&&S[0]&&(S=S[0],U=_.Ja(),_.yT("rsf_"+p,U+Math.round(S.fetchStart)),_.yT("rse_"+p,U+Math.round(S.responseEnd)),S.transferSize!==void 0&&S.transferSize===0)?!0:!1:!1};
_.hv=function(S,p){_.lb(function(){_.Phw("").info.actionType=S;p&&_.en("TIMING_AFT_KEYS",p);_.en("TIMING_ACTION",S);var U=_.$Ce(_.g7("TIMING_INFO",{}));Object.keys(U).length>0&&_.Kp(U);U={isNavigation:!0,actionType:_.eLE(_.g7("TIMING_ACTION"))};var Y=_.g7("PREVIOUS_ACTION");Y&&(U.previousAction=_.eLE(Y));if(Y=_.g7("CLIENT_PROTOCOL"))U.httpProtocol=Y;if(Y=_.g7("CLIENT_TRANSPORT"))U.transportProtocol=Y;(Y=_.X$())&&Y!=="UNDEFINED_CSN"&&(U.clientScreenNonce=Y);Y=_.vgX();if(Y===1||Y===-1)U.isVisible=!0;
Y=_.jEr().loadType==="cold";var L=yzq();Y||(Y=L.yt_lt==="cold");if(Y){U.loadType="cold";Y=yzq();L=Kbt();var I=_.Ja(),V=_.g7("CSI_START_TIMESTAMP_MILLIS",0);V>0&&!_.y("embeds_web_enable_csi_start_override_killswitch")&&(I=V);I&&(_.yT("srt",L.responseStart),Y.prerender!==1&&_.a7r(I));Y=bOT();Y>0&&_.yT("fpt",Y);Y=Kbt();Y.isPerformanceNavigationTiming&&_.Kp({performanceNavigationTiming:!0},void 0);_.yT("nreqs",Y.requestStart,void 0);_.yT("nress",Y.responseStart,void 0);_.yT("nrese",Y.responseEnd,void 0);
Y.redirectEnd-Y.redirectStart>0&&(_.yT("nrs",Y.redirectStart,void 0),_.yT("nre",Y.redirectEnd,void 0));Y.domainLookupEnd-Y.domainLookupStart>0&&(_.yT("ndnss",Y.domainLookupStart,void 0),_.yT("ndnse",Y.domainLookupEnd,void 0));Y.connectEnd-Y.connectStart>0&&(_.yT("ntcps",Y.connectStart,void 0),_.yT("ntcpe",Y.connectEnd,void 0));Y.secureConnectionStart>=_.Ja()&&Y.connectEnd-Y.secureConnectionStart>0&&(_.yT("nstcps",Y.secureConnectionStart,void 0),_.yT("ntcpe",Y.connectEnd,void 0));_.np&&"getEntriesByType"in
_.np&&rzt();Y=[];if(document.querySelector&&_.np&&_.np.getEntriesByName)for(var W in h95)h95.hasOwnProperty(W)&&(L=h95[W],GtY(W,L)&&Y.push(L));if(Y.length>0)for(U.resourceInfo=[],W=_.d(Y),Y=W.next();!Y.done;Y=W.next())U.resourceInfo.push({resourceCache:Y.value})}_.Kp(U);U=_.G9X();U.preLoggedGelInfos||(U.preLoggedGelInfos=[]);W=U.preLoggedGelInfos;U=_.hLk();Y=void 0;for(L=0;L<W.length;L++)if(I=W[L],I.loadType){Y=I.loadType;break}if(_.jEr().loadType==="cold"&&(U.loadType==="cold"||Y==="cold")){Y=_.rsX();
L=_.G9X();L=L.gelTicks?L.gelTicks:L.gelTicks={};for(var O in Y)if(!(O in L))if(typeof Y[O]==="number")_.yT(O,_.rB(O));else if(_.y("log_repeated_ytcsi_ticks"))for(I=_.d(Y[O]),V=I.next();!V.done;V=I.next())V=V.value,_.yT(O.slice(1),V);O={};Y=!1;W=_.d(W);for(L=W.next();!L.done;L=W.next())Y=L.value,_.hBq(U,Y),_.hBq(O,Y),Y=!0;Y&&_.Kp(O)}_.Nou(!0);O=_.g7("TIMING_ACTION");_.ad("ytglobal.timingready_")&&O&&_.LZG()&&_.iXq()&&_.mCG()})()};
jLL=function(S,p){return Array.prototype.reduce.call(S,p,{duration:0})};
h95={'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 R9E={};R9E.YtVisibilityRootBehavior=[_.VDe.YtVisibilityObserverBehavior,{isVisibilityRoot:!0,resetVisibilityRoot:function(){_.t9(this.visibilityObserverForChild_)},
disconnectVisibilityRoot:function(){this.visibilityObserverForChild_&&this.visibilityObserverForChild_.disconnect(_.g7("INNERTUBE_CLIENT_NAME")==="WEB")},
reconnectVisibilityRoot:function(){this.visibilityObserverForChild_&&this.visibilityObserverForChild_.reconnect();var S=_.g7("INNERTUBE_CLIENT_NAME")!=="WEB";_.y("kevlar_use_vimio_behavior")&&S&&_.doj()}}];_.R1={};_.R1.YtPageBehavior=[[{listeners:{"yt-get-context-provider":"getContextProvider_"},attached:function(){this.getProvidedContext()&&this.getProvidedContext().start()},
detached:function(){this.getProvidedContext()&&this.getProvidedContext().pause()},
getContextProvider_:function(S){S.detail.contextProvider=this;S.stopPropagation()},
getProvidedContext:function(){return null}},
{created:function(){this.pageContext=null},
getProvidedContext:function(){return this.pageContext}}],
R9E.YtVisibilityRootBehavior,{_noAccessors:!0,properties:{active:Boolean,data:Object,loading:Boolean,pageDisposeJobs:Array},observers:["ytPageBehaviorActiveObserver_(active)"],created:function(){this.pageCount=0;this.readyResolver_=_.ay();this.pageScrollElement=null;this.isVisibilityRoot=!0},
ready:function(){this.readyResolver_.resolve()},
getReady:function(){return this.readyResolver_.promise},
loadPage:function(S){var p=this;this.pageCount+=1;_.y("kevlar_use_vimio_behavior")&&(_.g7("INNERTUBE_CLIENT_NAME")==="WEB"?_.PA.addJob(function(){p.reconnectVisibilityRoot()},8):(this.disconnectVisibilityRoot(),this.reconnectVisibilityRoot()));
this.loadPage_(S)},
loadPage_:function(S){this.data=S},
ytPageBehaviorActiveObserver_:function(S){var p=this;_.y("kevlar_use_vimio_behavior")&&(S?_.g7("INNERTUBE_CLIENT_NAME")==="WEB"?_.PA.addJob(function(){p.reconnectVisibilityRoot()},8):this.reconnectVisibilityRoot():this.disconnectVisibilityRoot())},
setScrollTop:function(S){if(!this.setScrollTopJobId_){var p=this;this.setScrollTopJobId_=window.requestAnimationFrame(function(){p.setScrollTopJobId_=0;var U=_.tW().resolve(_.AW(_.rY));U&&_.ic(U);this.getPageScrollingElement().scrollTop=S}.bind(this))}},
getPageScrollingElement:function(){return this.pageScrollElement||_.QC(document)},
getScrollTop:function(){return this.getPageScrollingElement().scrollTop}}];
}catch(e){_._DumpException(e)}
try{
var JzT;var rA=function(){var S=_.w.apply(this,arguments)||this;S.playerListenerConfig=null;S.actionMap={"yt-show-watch-page-survey":"openSurvey"};return S};
_.r(rA,_.w);_.M=rA.prototype;_.M.dataChanged=function(){var S=this,p=_.$L();p&&p.getPlayerPromise().then(function(Y){S.maybeRemovePlayerListeners(Y)});
var U=this.data&&this.data.survey;U&&((U=(U=U.singleOptionSurveyRenderer||U.checkboxSurveyRenderer||U.multiStageSurveyRenderer)&&U.watchPageDisplayTriggers)?this.triggerWatchPageSurvey(p,U):this.openSurvey())};
_.M.triggerWatchPageSurvey=function(S,p){var U=this,Y,L,I,V,W,O,D,z,Q;return _.T(function(J){if(J.nextAddress==1)return S?_.k(J,S.getPlayerPromise(),2):J.return();U.player=J.yieldResult;if(!U.player)return J.return();Y={};L=_.d(p);for(I=L.next();!I.done;I=L.next())V=I.value,W=_.d(U.createEventListenerPair(V)),O=W.next().value,D=W.next().value,z=O,Q=D,z&&Q&&(Y[z]=Q,U.ytPlayerListenerBehavior.listenToPlayerEvent(U.player,z,Q));U.playerListenerConfig=Y;_.OV(J)})};
_.M.createEventListenerPair=function(S){var p=S.playbackEventTrigger;return p?this.handlePlaybackTrigger(p):(S=S.watchTimeTrigger)?this.handleWatchTimeTrigger(S):[void 0,void 0]};
_.M.handleWatchTimeTrigger=function(S){var p=this;this.accumulatedMediaTime=this.lastKnownPlaybackPosition=0;var U=S.videoWatchFraction,Y=S.watchTimeSec;return Y&&U?["onVideoProgress",function(){p.player&&p.isWatchTimeConditionMet(p.player,U,Y)&&p.showSurvey()}]:[void 0,
void 0]};
_.M.isWatchTimeConditionMet=function(S,p,U){var Y=S.getProgressState(),L=Y.current-this.lastKnownPlaybackPosition;L<5&&(this.accumulatedMediaTime+=L);this.lastKnownPlaybackPosition=Y.current;Y=Math.round(this.accumulatedMediaTime/Y.duration*1E3)/1E3;return S.getPresentingPlayerType&&S.getPresentingPlayerType()===1&&(this.accumulatedMediaTime>U||Y>p)};
_.M.handlePlaybackTrigger=function(S){var p=this;S=S.playbackEvent;if(S==="SURVEY_DISPLAY_TRIGGER_PLAYBACK_EVENT_PLAYBACK_FINISH"){var U="onStateChange";var Y=function(L){L===0&&p.showSurvey()}}else S==="SURVEY_DISPLAY_TRIGGER_PLAYBACK_EVENT_CONTENT_VIDEO_START"?(U="onVideoProgress",Y=function(L){p.player&&p.player.getPresentingPlayerType&&p.player.getPresentingPlayerType()===1&&L&&p.showSurvey()}):S==="SURVEY_DISPLAY_TRIGGER_PLAYBACK_EVENT_AD_FINISH"&&(U="onAdEnd",Y=this.showSurvey);
return[U,Y]};
_.M.showSurvey=function(){this.openSurvey();this.player&&this.maybeRemovePlayerListeners(this.player)};
_.M.openSurvey=function(){var S=this,p=this.data&&this.data.survey;this.ytdReduxBehavior.dispatch(_.ihT(!!p));_.PA.addJob(function(){S.ytdOpenPopupBehavior.openPopup({openPopupAction:{popupType:"SURVEY",popup:p}})},0,0)};
_.M.maybeRemovePlayerListeners=function(S){if(this.playerListenerConfig){for(var p=_.d(Object.keys(this.playerListenerConfig)),U=p.next();!U.done;U=p.next())U=U.value,this.ytPlayerListenerBehavior.unlistenFromPlayerEvent(S,U,this.playerListenerConfig[U]);this.playerListenerConfig=null}};
rA.prototype.dataChanged=rA.prototype.dataChanged;_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],rA.prototype,"ytRendererBehavior",void 0);_.x([_.F(_.xK),_.E("design:type",Object)],rA.prototype,"ytdOpenPopupBehavior",void 0);_.x([_.F(_.Cj.YtPlayerListenerBehavior),_.E("design:type",_.xt)],rA.prototype,"ytPlayerListenerBehavior",void 0);_.x([_.F(_.Aj.YtActionHandlerBehavior),_.E("design:type",Object)],rA.prototype,"ytActionHandlerBehavior",void 0);
_.x([_.F(_.Xh),_.E("design:type",Object)],rA.prototype,"ytdReduxBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],rA.prototype,"data",void 0);_.x([_.g(),_.E("design:type",Object)],rA.prototype,"playerListenerConfig",void 0);_.x([_.g({value:0}),_.E("design:type",Number)],rA.prototype,"lastKnownPlaybackPosition",void 0);_.x([_.g({value:0}),_.E("design:type",Number)],rA.prototype,"accumulatedMediaTime",void 0);_.x([_.g(),_.E("design:type",Object)],rA.prototype,"player",void 0);
_.x([_.T4("data"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],rA.prototype,"dataChanged",null);rA=_.x([_.f({is:"ytd-survey-trigger-renderer",disableElementRegistration:!0})],rA);
_.C(rA,"ytd-survey-trigger-renderer",function(){if(JzT!==void 0)return JzT;var S=document.createElement("template");_.h(S,"\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");S.content.insertBefore(_.t().content.cloneNode(!0),S.content.firstChild);return JzT=S},{mode:1});
}catch(e){_._DumpException(e)}
try{
var MBt=new _.v("promotedSparklesWebRenderer");var IZq=new _.v("relatedChipCommand");var deJ;var VBL;var QM=function(){return _.w.apply(this,arguments)||this};
_.r(QM,_.w);QM.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer"}}}}};
_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],QM.prototype,"ytRendererBehavior",void 0);_.x([_.F(_.qH.YtRendererstamperBehavior),_.E("design:type",Object)],QM.prototype,"ytRendererstamperBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],QM.prototype,"data",void 0);QM=_.x([_.f({disableElementRegistration:!0,is:"ytd-compact-tvfilm-entry-point-renderer"})],QM);
_.C(QM,"ytd-compact-tvfilm-entry-point-renderer",function(){if(VBL!==void 0)return VBL;var S=document.createElement("template");_.h(S,'\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>');
S.content.insertBefore(_.t().content.cloneNode(!0),S.content.firstChild);return VBL=S},{mode:1});var Thd;var WRJ;var OBA;var nw=function(){return _.w.apply(this,arguments)||this};
_.r(nw,_.w);nw.prototype.ready=function(){this.initializeDefs()};
nw.prototype.initializeDefs=function(){var S=this.meta.byKey("yt-icons"),p=_.tB(S).querySelector("#star"),U=_.tB(S).querySelector("#star_half");S=_.tB(S).querySelector("#star_border");p&&this.defs.appendChild(p.cloneNode(!0));U&&this.defs.appendChild(U.cloneNode(!0));S&&this.defs.appendChild(S.cloneNode(!0))};
nw.prototype.percentChanged=function(){for(var S=this.rating;S.firstChild;)S.removeChild(S.firstChild);var p=Math.round(this.percent/10);S=Math.floor(p/2);p%=2;var U=5-S-p;this.appendStars("star",S,0);this.appendStars("star_half",p,S);this.appendStars("star_border",U,S+p)};
nw.prototype.appendStars=function(S,p,U){for(var Y=0;Y<p;Y++){var L=(18+this.spacing)*(Y+U),I=document.createElementNS("http://www.w3.org/2000/svg","use");_.NcA(I,"#"+S);I.setAttribute("x",""+L);I.setAttribute("y","0");this.rating.appendChild(I)}};
nw.prototype.percentChanged=nw.prototype.percentChanged;_.x([_.O2("#defs"),_.E("design:type",HTMLElement)],nw.prototype,"defs",void 0);_.x([_.O2("#rating"),_.E("design:type",HTMLElement)],nw.prototype,"rating",void 0);_.x([_.g(),_.E("design:type",Number)],nw.prototype,"percent",void 0);_.x([_.g({value:6}),_.E("design:type",Number)],nw.prototype,"spacing",void 0);_.x([_.g({value:_.DF.create("iron-meta",{type:"iconset"})}),_.E("design:type",_.Jh)],nw.prototype,"meta",void 0);
_.x([_.T4("percent"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],nw.prototype,"percentChanged",null);nw=_.x([_.f({disableElementRegistration:!0,is:"ytd-ratings"})],nw);
_.C(nw,"ytd-ratings",function(){if(OBA!==void 0)return OBA;var S=document.createElement("template");_.h(S,'\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');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);return OBA=S},{mode:1});var Jw=function(){return _.w.apply(this,arguments)||this};
_.r(Jw,_.w);_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],Jw.prototype,"ytRendererBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],Jw.prototype,"data",void 0);Jw=_.x([_.f({is:"ytd-offer-review-renderer",disableElementRegistration:!0})],Jw);
_.C(Jw,"ytd-offer-review-renderer",function(){if(WRJ!==void 0)return WRJ;var S=document.createElement("template");_.h(S,'\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');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);return WRJ=S},{mode:1});var yM=function(){var S=_.w.apply(this,arguments)||this;S.badges=[{textBadge:{label:_.Ec("CC")}}];return S};
_.r(yM,_.w);_.M=yM.prototype;_.M.configureRendererStamper=function(){return{"data.storefrontEntryPoint":{id:"storefront-entry-point",mapping:{compactTvfilmEntryPointRenderer:"ytd-compact-tvfilm-entry-point-renderer"}}}};
_.M.dataChanged=function(){var S=this.get("data.offerButton.buttonRenderer.serviceEndpoint");if(S&&S.commandMetadata&&_.b(S.commandMetadata,_.bB)&&_.b(S.commandMetadata,_.bB).fireAutomatically)_.tW().resolve(_.cQ).resolveCommand(S,{form:{element:this.hostElement}});else{var p;S&&((p=_.b(S,_.bB))==null?0:p.fireAutomatically)&&_.tW().resolve(_.cQ).resolveCommand(S,{form:{element:this.hostElement}})}};
_.M.isEmptyContent=function(S){return this.isStorefrontEntryPointEmpty(S)&&this.shouldHideOfferModule(S)};
_.M.isStorefrontEntryPointEmpty=function(S){return!S||!S.storefrontEntryPoint};
_.M.shouldHideOfferModule=function(S){return!!S.hideVideoDetails};
_.M.isOfferModuleNavigationInactive=function(S){return!S.navigationEndpoint&&!S.serviceEndpoint};
_.M.maybeNavigateWithServiceEndpoint=function(){this.data&&this.data.navigationEndpoint||this.data&&this.data.serviceEndpoint&&_.tW().resolve(_.cQ).resolveCommand(this.data.serviceEndpoint,{form:{element:this.hostElement}})};
yM.prototype.dataChanged=yM.prototype.dataChanged;_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],yM.prototype,"ytRendererBehavior",void 0);_.x([_.F(_.qH.YtRendererstamperBehavior),_.E("design:type",Object)],yM.prototype,"ytRendererstamperBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],yM.prototype,"data",void 0);_.x([_.g({reflectToAttribute:!0,computed:"isEmptyContent(data)"}),_.E("design:type",Boolean)],yM.prototype,"hidden",void 0);
_.x([_.g(),_.E("design:type",Object)],yM.prototype,"badges",void 0);_.x([_.T4("data"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],yM.prototype,"dataChanged",null);yM=_.x([_.f({disableElementRegistration:!0,is:"ytd-movie-offer-module-renderer"})],yM);
_.C(yM,"ytd-movie-offer-module-renderer",function(){if(Thd!==void 0)return Thd;var S=document.createElement("template");_.h(S,'\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');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);return Thd=S},{mode:1});var k$q;var Kw=function(){return _.w.apply(this,arguments)||this};
_.r(Kw,_.w);_.x([_.F(_.eL.YtComponentBehavior),_.E("design:type",Object)],Kw.prototype,"componentBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],Kw.prototype,"data",void 0);Kw=_.x([_.f({disableElementRegistration:!0,is:"ytd-media-masthead-renderer"})],Kw);
_.C(Kw,"ytd-media-masthead-renderer",function(){if(k$q!==void 0)return k$q;var S=document.createElement("template");_.h(S,'\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');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);return k$q=S},{mode:1});var HBt;_.qm(_.p_m,"course-metadata-view-model",{props:{data:_.BX,isOverlay:_.BX}});var b3=function(){var S=_.w.apply(this,arguments)||this;S.isMetadataVisible=!1;S.modernPanels=_.y("kevlar_watch_modern_panels");S.actionMap={"yt-hide-tvfilm-offer-module":"handleHideAction"};return S};
_.r(b3,_.w);_.M=b3.prototype;
_.M.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"}}}}};
_.M.descriptionChanged=function(){this.expander.collapsed=!0;this.expander.reset()};
_.M.dataChanged=function(){this.hostElement.hidden=!1;this.isMetadataVisible=this.isExpandButtonToggled()};
_.M.expanderChanged=function(){var S;if((S=this.data)==null?0:S.expandedMetadata)this.expander.hidden=this.isMetadataVisible};
_.M.isExpandButtonToggled=function(){var S,p;return(p=_.b((S=this.data)==null?void 0:S.expandMetadataButton,_.b6))==null?void 0:p.isToggled};
_.M.onVisibilityButtonClick=function(){var S;if((S=this.data)==null?0:S.expandMetadataButton)this.isMetadataVisible=!this.isMetadataVisible};
_.M.handleHideAction=function(){this.data&&this.data.clientShouldSuppressIfCompanionAdDisplayed&&(this.hostElement.hidden=!0)};
b3.prototype.expanderChanged=b3.prototype.expanderChanged;b3.prototype.dataChanged=b3.prototype.dataChanged;b3.prototype.descriptionChanged=b3.prototype.descriptionChanged;_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],b3.prototype,"ytRendererBehavior",void 0);_.x([_.F(_.qH.YtRendererstamperBehavior),_.E("design:type",Object)],b3.prototype,"ytRendererstamperBehavior",void 0);_.x([_.F([_.Aj.YtActionHandlerBehavior]),_.E("design:type",Object)],b3.prototype,"actionHandlerBehavior",void 0);
_.x([_.g(),_.E("design:type",Object)],b3.prototype,"data",void 0);_.x([_.g(),_.E("design:type",Object)],b3.prototype,"isMetadataVisible",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],b3.prototype,"modernPanels",void 0);_.x([_.O2("#expander"),_.E("design:type",Object)],b3.prototype,"expander",void 0);_.x([_.T4("data.description"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],b3.prototype,"descriptionChanged",null);
_.x([_.T4("data"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],b3.prototype,"dataChanged",null);_.x([_.T4("isMetadataVisible"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],b3.prototype,"expanderChanged",null);b3=_.x([_.f({disableElementRegistration:!0,is:"ytd-tvfilm-offer-module-renderer"})],b3);
_.C(b3,"ytd-tvfilm-offer-module-renderer",function(){if(HBt!==void 0)return HBt;var S=document.createElement("template");_.h(S,'\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');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);return HBt=S},{mode:2});var Deq;var jE=function(){var S=_.w.apply(this,arguments)||this;S.actionMap={"yt-hide-unlimited-offer-module":"handleHideAction"};return S};
_.r(jE,_.w);jE.prototype.dataChanged=function(){this.hostElement.hidden=!1};
jE.prototype.configureRendererStamper=function(){return{"data.storefrontEntryPoint":{id:"storefront-entry-point",mapping:{compactTvfilmEntryPointRenderer:"ytd-compact-tvfilm-entry-point-renderer"}}}};
jE.prototype.onThumbnailTap=function(S){this.data&&this.data.serviceEndpoint&&(_.tW().resolve(_.cQ).resolveCommand(this.data.serviceEndpoint,{form:{element:this.hostElement}}),S.stopPropagation())};
jE.prototype.handleHideAction=function(){this.data&&this.data.suppressIfCompanionAds&&(this.hostElement.hidden=!0)};
jE.prototype.dataChanged=jE.prototype.dataChanged;_.x([_.F(_.qH.YtRendererstamperBehavior),_.E("design:type",Object)],jE.prototype,"ytRendererstamperBehavior",void 0);_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],jE.prototype,"rendererBehaviors",void 0);_.x([_.F([_.Aj.YtActionHandlerBehavior]),_.E("design:type",Object)],jE.prototype,"actionHandlerBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],jE.prototype,"data",void 0);
_.x([_.T4("data"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],jE.prototype,"dataChanged",null);jE=_.x([_.f({is:"ytd-unlimited-offer-module-renderer",disableElementRegistration:!0})],jE);
_.C(jE,"ytd-unlimited-offer-module-renderer",function(){if(Deq!==void 0)return Deq;var S=document.createElement("template");_.h(S,'\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');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);return Deq=S},{mode:1});var z3E;var QDo;var rp=function(){var S=_.w.apply(this,arguments)||this;S.actionMap={"yt-related-chip-command":"handleRelatedChipCommand"};return S};
_.r(rp,_.w);rp.prototype.configureRendererStamper=function(){return{"data.content":{id:"content",mapping:{chipCloudRenderer:{component:"yt-chip-cloud-renderer"}}}}};
rp.prototype.handleRelatedChipCommand=function(S){S=_.b(S,IZq);var p=S.contents;p?_.pp(this.hostElement,"yt-item-section-replace-action",[p,S.targetSectionIdentifier]):_.pp(this.hostElement,"yt-item-section-continuation-action",[S.continuationData,S.targetSectionIdentifier])};
_.x([_.F(_.qH.YtRendererstamperBehavior),_.E("design:type",Object)],rp.prototype,"ytRendererstamperBehavior",void 0);_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],rp.prototype,"ytRendererBehavior",void 0);_.x([_.F(_.Aj.YtActionHandlerBehavior),_.E("design:type",Object)],rp.prototype,"actionHandlerBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],rp.prototype,"data",void 0);rp=_.x([_.FB({is:"yt-related-chip-cloud-renderer",disableElementRegistration:!0})],rp);
_.C(rp,"yt-related-chip-cloud-renderer",function(){if(QDo===void 0){var S=document.createElement("template");_.h(S,'\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');
S.content.insertBefore(_.t().content.cloneNode(!0),S.content.firstChild);var p=S.content,U=p.insertBefore;z3E===void 0&&(z3E=document.createElement("template"));var Y=z3E;U.call(p,Y.content.cloneNode(!0),S.content.firstChild);QDo=S}S=QDo;return S},{mode:2});var G6=function(){var S=_.w.apply(this,arguments)||this;S.isTwoColumns=!0;S.hideOfferModules=!1;S.watchFeedBigThumbs=_.y("kevlar_watch_feed_big_thumbs");S.watchNextGridHideChips=_.y("kevlar_watch_grid_hide_chips");S.eligibleToSwitchToGrid=_.y("web_watch_eligible_to_switch_to_grid");S.disableShortsShelfHeightOverride=_.y("web_shorts_wn_shelf_ratio_tuning");S.isWatchNextGrid=!1;S.reuseComponents=!_.y("kevlar_watch_grid");S.nextContinuation={continuationType:"watchNextSecondaryResultsContinuation",contentsArray:"data.results",
continuationsArray:"data.continuations",responseContentsKey:"results",requestPath:"/related_ajax"};return S};
_.r(G6,_.w);_.M=G6.prototype;
_.M.configureRendererStamper=function(){return{"data.offerModule":{id:"offer-module",mapping:{movieOfferModuleRenderer:"ytd-movie-offer-module-renderer",episodeOfferModuleRenderer:"ytd-movie-offer-module-renderer",liveOfferModuleRenderer:"ytd-movie-offer-module-renderer",channelOfferModuleRenderer:"ytd-movie-offer-module-renderer",unlimitedOfferModuleRenderer:{component:"ytd-unlimited-offer-module-renderer",properties:{hidden:"[[hideUnlimitedOfferModule]]"}},tvfilmOfferModuleRenderer:{component:"ytd-tvfilm-offer-module-renderer",properties:{hidden:"[[hideTvfilmOfferModule]]"}},
ctaShelfRenderer:"ytd-brandconnect-cta-shelf-card-renderer"}},shownItems:{id:"items",reuseComponents:this.reuseComponents,mapping:{lockupViewModel:{component:"yt-lockup-view-model",params:{className:"ytd-watch-next-secondary-results-renderer lockup",sizing:"COMPACT",thumbnailFixedWidth:"168px",force16By9ThumbnailAspectRatio:!0},properties:{containerType:"[[lockupContainerType]]"}},compactMovieRenderer:"ytd-compact-movie-renderer",compactVideoRenderer:"ytd-compact-video-renderer",compactCourseVideoRenderer:"ytd-compact-video-renderer",
compactPromotedVideoRenderer:"ytd-compact-promoted-video-renderer",compactRadioRenderer:"ytd-compact-radio-renderer",compactPlaylistRenderer:"ytd-compact-playlist-renderer",promotedSparklesWebRenderer:"ytd-promoted-sparkles-web-renderer",adSlotRenderer:"ytd-ad-slot-renderer",relatedChipCloudRenderer:"yt-related-chip-cloud-renderer",itemSectionRenderer:{component:"ytd-item-section-renderer",params:{isWatch:!0},properties:{continuationShowButton:"[[showButton]]",eligibleToSwitchToGrid:"[[eligibleToSwitchToGrid]]"}},
reelShelfRenderer:"ytd-reel-shelf-renderer",richGridRenderer:{component:"ytd-rich-grid-renderer",properties:{disableStickyFilterBar:"[[isWatchNextGrid]]",transparentBackgroundChipsBar:"[[isWatchNextGrid]]",reducedBottomMargin:"[[isWatchNextGrid]]",rowReducedHorizontalMargin:"[[isWatchNextGrid]]"},params:{resizeOnObserverInit:!_.y("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}}};
_.M.getItemsPath=function(){return"data.results"};
_.M.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"results","yt-reload-continuation-items-command-body":"results"}};
_.M.created=function(){this.ytLazyListBehavior.initialCount=1};
_.M.ready=function(){_.Ms(this.hostElement,{"--yt-img-shadow-placeholder-color":"var(--yt-spec-10-percent-layer)","--yt-img-shadow-min-height":"100%","--yt-img-shadow-min-width":"100%"})};
_.M.resultsChanged=function(){if(this.data&&this.data.results){for(var S=this.data.results,p=null,U=null,Y=0;Y<S.length;Y++)S[Y].relatedChipCloudRenderer?p=S[Y].relatedChipCloudRenderer:S[Y].itemSectionRenderer&&(U=S[Y].itemSectionRenderer);if(p&&U)for(this.set("data.continuations",[]),S=_.b(p.content,_.f0e).chips,p=0;p<S.length;p++)if(Y=this.get("chipCloudChipRenderer.navigationEndpoint.relatedChipCommand",S[p]),Y.loadCached||!Y.contents){Y.contents=U.contents;break}}};
_.M.dataChanged=function(){var S=this,p;if((p=this.data)!=null&&p.results&&this.hasAllowedInstreamAd(this.playerData)){if(p=this.data.results.filter(function(W){return!!W.promotedSparklesWebRenderer})){for(var U=0;U<p.length;U++){var Y=this.get("promotedSparklesWebRenderer.errorCommand.loggingUrls",p[U]);
if(Y)for(var L=0;L<Y.length;L++)Y[L]&&Y[L].baseUrl&&_.Cf(Y[L].baseUrl)}this.set("data.results",this.data.results.filter(function(W){return!W.promotedSparklesWebRenderer}))}if(p=this.data.results.filter(function(W){return!!S.getSparklesAd(W)})){p=_.d(p);
for(L=p.next();!L.done;L=p.next())if(Y=U=void 0,L=(U=this.getSparklesAd(L.value))==null?void 0:(Y=U.errorCommand)==null?void 0:Y.loggingUrls)for(U=_.d(L),Y=U.next();!Y.done;Y=U.next())(Y=Y.value)&&Y.baseUrl&&_.Cf(Y.baseUrl);var I,V;this.set("data.results",(I=this.data)==null?void 0:(V=I.results)==null?void 0:V.filter(function(W){return!W.adSlotRenderer}))}}};
_.M.getSparklesAd=function(S){var p,U;S=_.b((p=S.adSlotRenderer)==null?void 0:(U=p.fulfillmentContent)==null?void 0:U.fulfilledLayout,_.L6e);return _.b(S==null?void 0:S.renderingContent,MBt)};
_.M.hasAllowedInstreamAd=function(S){S=this.get("adPlacements",S)||[];for(var p=0;p<S.length;p++){var U=this.get("adPlacementRenderer.config.adPlacementConfig",S[p]);if(U&&U.suppressDisplayAd)return!0}return!1};
_.M.computeHideUnlimitedOfferModule=function(S,p){return S&&S.offerModule&&p&&S.offerModule.unlimitedOfferModuleRenderer&&S.offerModule.unlimitedOfferModuleRenderer.suppressIfCompanionAds&&this.hasCompanionAds(p)?!0:!1};
_.M.hideUnlimitedOfferModuleChanged=function(){var S=_.tB(this.hostElement).querySelector("ytd-unlimited-offer-module-renderer");S&&(S.hidden=this.hideUnlimitedOfferModule)};
_.M.updateLockupContainerTypes=function(S){if(this.eligibleToSwitchToGrid){var p;(p=Array.from(this.hostElement.querySelectorAll("#items yt-lockup-view-model")))==null||p.forEach(function(U){U.containerType=S})}};
_.M.computeHideTvfilmOfferModule=function(S,p){var U,Y;return!!((S==null?0:(U=S.offerModule)==null?0:(Y=U.tvfilmOfferModuleRenderer)==null?0:Y.clientShouldSuppressIfCompanionAdDisplayed)&&p&&this.hasCompanionAds(p))};
_.M.hideTvfilmOfferModuleChanged=function(){var S=_.tB(this.hostElement).querySelector("ytd-tvfilm-offer-module-renderer");S&&(S.hidden=this.hideTvfilmOfferModule)};
_.M.hasCompanionAds=function(S){S=this.get("adPlacements",S)||[];for(var p=0;p<S.length;p++){if(this.get("adPlacementRenderer.renderer.actionCompanionAdRenderer",S[p]))return!0;var U=void 0,Y=void 0,L=void 0;if(!_.y("web_watch_top_banner_companion_check_killswitch")&&((U=S[p])==null?0:(Y=U.adPlacementRenderer)==null?0:(L=Y.renderer)==null?0:L.topBannerImageTextIconButtonedLayoutViewModel))return!0}return!1};
_.M.hasSuppressedResults=function(S){return S==null?!0:S.filter(function(p){return!p.continuationItemRenderer&&!p.compactPromotedVideoRenderer&&!p.promotedSparklesWebRenderer}).length===0};
_.M.computeShowButton=function(S,p){return this.isWatchNextGrid?S:S||this.hasSuppressedResults(p)};
_.M.showButtonChanged=function(){if(this.isWatchNextGrid){var S=_.tB(this.hostElement).querySelector("ytd-rich-grid-renderer");S&&this.showButton!==null&&(S.continuationShowButton=this.showButton)}else{S=_.tB(this.hostElement).querySelector("yt-next-continuation");var p=_.tB(this.hostElement).querySelector("ytd-continuation-item-renderer"),U=_.tB(this.hostElement).querySelector("ytd-item-section-renderer");S&&(S.showButton=this.showButton);p&&(p.showButton=this.showButton);U&&(U.continuationShowButton=
this.showButton)}};
_.M.continuationTap=function(S){var p;if(((p=this.data)==null?void 0:p.continuations)!=null&&S.target.tagName==="TP-YT-PAPER-BUTTON")for(S=this.data.continuations,p=0;p<S.length;p++)S[p].nextContinuationData&&this.ytRendererBehavior.logExplicitClick(S[p].nextContinuationData||{})};
_.M.shownItemsChangedForBinding=function(){this.hostElement.dispatchEvent(new _.uz("shown-items-changed",this.shownItems))};
_.$u.Object.defineProperties(G6.prototype,{lockupContainerType:{configurable:!0,enumerable:!0,get:function(){return this.eligibleToSwitchToGrid?this.isGridViewEnabled?2:3:3}},
containsLockups:{configurable:!0,enumerable:!0,get:function(){var S;return!((S=this.shownItems)==null||!S.some(function(p){return!!p.lockupViewModel||p.compactVideoRenderer}))}}});
G6.prototype.shownItemsChangedForBinding=G6.prototype.shownItemsChangedForBinding;G6.prototype.showButtonChanged=G6.prototype.showButtonChanged;G6.prototype.hideTvfilmOfferModuleChanged=G6.prototype.hideTvfilmOfferModuleChanged;G6.prototype.updateLockupContainerTypes=G6.prototype.updateLockupContainerTypes;G6.prototype.hideUnlimitedOfferModuleChanged=G6.prototype.hideUnlimitedOfferModuleChanged;G6.prototype.dataChanged=G6.prototype.dataChanged;G6.prototype.resultsChanged=G6.prototype.resultsChanged;
_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],G6.prototype,"ytRendererBehavior",void 0);_.x([_.F(_.qH.YtRendererstamperBehavior),_.E("design:type",Object)],G6.prototype,"ytRendererstamperBehavior",void 0);_.x([_.F(_.qb.YtLazyListBehavior),_.E("design:type",Object)],G6.prototype,"ytLazyListBehavior",void 0);_.x([_.F(_.lX.YtNextContinuationBehavior),_.E("design:type",Object)],G6.prototype,"ytNextContinuationBehavior",void 0);
_.x([_.F(_.wS),_.E("design:type",Object)],G6.prototype,"ytContinuationHandlerBehavior",void 0);_.x([_.F(_.Xh),_.E("design:type",Object)],G6.prototype,"ytdReduxBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],G6.prototype,"data",void 0);_.x([_.g(),_.E("design:type",Object)],G6.prototype,"playerData",void 0);_.x([_.g({value:!0}),_.E("design:type",Boolean)],G6.prototype,"autoFill",void 0);_.x([_.g({value:60}),_.E("design:type",Number)],G6.prototype,"targetFramerate",void 0);
_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],G6.prototype,"isTwoColumns",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],G6.prototype,"hideOfferModules",void 0);_.x([_.g(),_.E("design:type",Object)],G6.prototype,"shownItems",void 0);_.x([_.g({computed:"computeHideUnlimitedOfferModule(data, playerData)"}),_.E("design:type",Boolean)],G6.prototype,"hideUnlimitedOfferModule",void 0);
_.x([_.g({computed:"computeHideTvfilmOfferModule(data, playerData)"}),_.E("design:type",Boolean)],G6.prototype,"hideTvfilmOfferModule",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],G6.prototype,"watchFeedBigThumbs",void 0);_.x([_.g(),_.E("design:type",Object)],G6.prototype,"watchNextGridHideChips",void 0);_.x([_.g(),_.E("design:type",Object)],G6.prototype,"eligibleToSwitchToGrid",void 0);
_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],G6.prototype,"disableShortsShelfHeightOverride",void 0);_.x([_.g({selector:_.g8,reflectToAttribute:!0}),_.E("design:type",Object)],G6.prototype,"isGridViewEnabled",void 0);_.x([_.g({value:!1}),_.E("design:type",Boolean)],G6.prototype,"showMoreButton",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],G6.prototype,"isWatchNextGrid",void 0);
_.x([_.g({computed:"computeShowButton(showMoreButton, data.results)"}),_.E("design:type",Boolean)],G6.prototype,"showButton",void 0);_.x([_.z4("data.results.*"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],G6.prototype,"resultsChanged",null);_.x([_.T4("data"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],G6.prototype,"dataChanged",null);
_.x([_.T4("hideUnlimitedOfferModule"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],G6.prototype,"hideUnlimitedOfferModuleChanged",null);_.x([_.e("isGridViewEnabled","containsLockups","data"),_.g({reflectToAttribute:!0}),_.E("design:type",Number),_.E("design:paramtypes",[])],G6.prototype,"lockupContainerType",null);
_.x([_.T4("lockupContainerType","data"),_.E("design:type",Function),_.E("design:paramtypes",[Number]),_.E("design:returntype")],G6.prototype,"updateLockupContainerTypes",null);_.x([_.T4("hideTvfilmOfferModule"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],G6.prototype,"hideTvfilmOfferModuleChanged",null);_.x([_.T4("showButton"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],G6.prototype,"showButtonChanged",null);
_.x([_.T4("shownItems"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],G6.prototype,"shownItemsChangedForBinding",null);_.x([_.e("shownItems"),_.g({reflectToAttribute:!0}),_.E("design:type",Boolean),_.E("design:paramtypes",[])],G6.prototype,"containsLockups",null);
_.C(G6,"ytd-watch-next-secondary-results-renderer",function(){if(deJ===void 0){var S=document.createElement("template");_.h(S,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-watch-next-secondary-results-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="offer-module" hidden="[[hideOfferModules]]" class="style-scope ytd-watch-next-secondary-results-renderer"></div>\n<div id="items" class="style-scope ytd-watch-next-secondary-results-renderer"></div>\n<div id="continuations" hidden="[[canShowMore]]" on-click="continuationTap" class="style-scope ytd-watch-next-secondary-results-renderer"></div>\n');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);deJ=S}S=deJ;return S},{mode:1});
}catch(e){_._DumpException(e)}
try{
_.l2L={};
_.l2L.YtdWatchBehavior=[_.c.YtRendererBehavior,_.Cj.YtPlayerListenerBehavior,_.qH.YtRendererstamperBehavior,_.Aj.YtActionHandlerBehavior,_.R1.YtPageBehavior,_.WV.YtEndpointBehavior,{_noAccessors:!0,properties:{data:{type:Object,observer:"dataChanged_"},info:{type:Object},meta:{type:Object},ticket:{type:Object},donation:{type:Object},clarifyBox:{type:Object,computed:"getClarifyBox(data, clarifyBoxValue)"},offerModule:{type:Object},engagementPanels:{type:Object},inlineEngagementPanels:{type:Object},clarifyBoxValue:{type:Object},
conversationBar:{type:Object},infoPanelBelowMetadata:{type:Object},expandableMetadata:{type:Object},limitedState:{type:Object,computed:"getLimitedState(data, limitedStateValue)"},limitedStateValue:{type:Object},merchShelf:{type:Object,computed:"getMerchShelf(data, merchShelfValue)"},merchShelfValue:{type:Object},merchShelfInSd:{type:Object},singleColumn:{type:Object,computed:"getSingleColumn(playerData.playabilityStatus, data, singleColumnValue)"},singleColumnValue:{type:Object},comments:{type:Object,
value:null},playerData:{type:Object,observer:"playerDataChanged_"},playerAds:{type:Object,value:null},localPlaylistData_:{type:Object,value:{},computed:"setPlaylistData_(data.contents.twoColumnWatchNextResults.playlist.playlist)"},externalPlaylistData_:{type:Object,value:{}},playlistData:{type:Object,computed:"computePlaylistData_(localPlaylistData_, externalPlaylistData_)"},theater:{type:Boolean,value:!1,reflectToAttribute:!0},fullWindowMode_:{type:Boolean,reflectToAttribute:!0,value:function(){return _.ub("START_IN_FULL_WINDOW_MODE")}},
useProviderForSecondaryResultsRenderer:{type:Boolean,value:function(){return _.y("web_watch_provide_secondary_results_renderer")}},
enableFullBleedSingleColumnDefaultPlayer:{type:Boolean,value:function(){return _.y("full_bleed_single_column_default_player")}},
fullscreen:{type:Boolean,reflectToAttribute:!0},playlist:{type:Boolean,reflectToAttribute:!0,computed:"hasPlaylist_(playlistData, loadingData.playlist)",observer:"secondaryColumnModulePresenceChanged_"},alerts:{type:Object,computed:"getAlerts_(playerData.playabilityStatus, alertsValue)"},alertsValue:{type:Object},microformat:{type:Object,computed:"getPlayerMicroformatRenderer_(playerData.microformat)"},commentsReady:{type:Boolean,observer:"commentsReadyChanged_"},theaterRequested_:{type:Boolean,reflectToAttribute:!0,
value:function(){return _.ub("START_IN_THEATER_MODE")}},
loading:{type:Boolean,observer:"onLoadingChanged_"},loadingData:{type:Object,value:{playlist:!1}},playerUnavailable:{type:Boolean,value:!1,reflectToAttribute:!0,computed:"isPlayerUnavailable_(playerData.playabilityStatus, playerLoading_, playerOverlays)"},playerOverlays:{type:Object,value:null,computed:"getPlayerOverlays_(data)"},plaShelfEnabled_:{type:Boolean,value:!1,computed:"isPlaShelfEnabled_(playerData)"},monetizationShelvesEnabled_:{type:Boolean,value:!0},watchNextShownItems:Array,watchNextCanShowMore:Boolean,
hidden:{type:Boolean,reflectToAttribute:!0,value:!1},shouldStampChat:{type:Boolean,value:!1,computed:"computeShouldStampChat_(data, hidden)",observer:"secondaryColumnModulePresenceChanged_",reflectToAttribute:!0},shouldCollapseDonationShelf:{type:Boolean,value:!1,computed:"computeIsDonationShelfCollapsed_(shouldStampChat)",reflectToAttribute:!0},shouldShowMerchShelf:{type:Boolean,value:!1,computed:"computeShouldShowMerchShelf(merchShelf, monetizationShelvesEnabled_)",reflectToAttribute:!0},canScheduleCommentJobs_:{type:Boolean,
value:!0},videoId:{type:String,value:"",computed:"identity(data.currentVideoEndpoint.watchEndpoint.videoId)",reflectToAttribute:!0},isTwoColumns_:{type:Boolean,reflectToAttribute:!0,observer:"isTwoColumnsChanged_"},isVerticalVideo_:{type:Boolean,reflectToAttribute:!0,computed:"computeIsVerticalVideo_(videoHeightToWidthRatio_)"},isFourThreeToSixteenNineVideo_:{type:Boolean,reflectToAttribute:!0,computed:"computeIsFourThreeToSixteenNineVideo_(videoHeightToWidthRatio_)"},isExtraWideVideo_:{type:Boolean,
reflectToAttribute:!0,computed:"computeIsExtraWideVideo_(videoHeightToWidthRatio_)"},videoHeightToWidthRatio_:{type:Number,value:.5625,observer:"videoHeightToWidthRatioChanged_"},flexySmallWindow_:{type:Boolean,reflectToAttribute:!0},flexyLargeWindow_:{type:Boolean,reflectToAttribute:!0},playerLoading_:{type:Boolean,value:!1},showEngagementPanelScrim_:{type:Boolean,reflectToAttribute:!0,observer:"showEngagementPanelScrimChanged_"},watchFeedBigThumbs_:{type:Boolean,reflectToAttribute:!0,value:function(){return _.y("kevlar_watch_feed_big_thumbs")}},
useEngagementPanelManagementComponent:{type:Boolean,value:function(){return _.y("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 _.pA("wn_grid_min_item_width",310)}},
richItemMaxWidth:{type:Number,value:function(){return _.pA("wn_grid_max_item_width",700)}},
commentsEntryPointHeaderRenderer:{type:Object,computed:"computeCommentsEntryPointHeaderRenderer(data, commentsEntryPointHeaderRendererValue, defaultTwoColumnLayout, isTwoColumns_)"},showRichGridContinuationButton:{type:Boolean,value:!1,computed:"computeShowRichGridContinuationButton(isTwoColumns_, commentsEntryPointHeaderRenderer)"},commentsEntryPointHeaderRendererValue:{type:Object},videoMetadataCarousel:{type:Object},richGridRendererData:{type:Object},watchNextSecondaryResults:{type:Object},videoPrimaryInfoRenderer:{type:Object,
computed:"computeVideoPrimaryInfoRenderer(data, videoPrimaryInfoRendererValue)"},videoPrimaryInfoRendererValue:{type:Object},videoSecondaryInfoRenderer:{type:Object,computed:"computeVideoSecondaryInfoRenderer(data, videoSecondaryInfoRendererValue)"},videoSecondaryInfoRendererValue:{type:Object},inlineStructuredDescriptionData:{type:Object,computed:"computeInlineStructuredDescriptionData(data)"},flexyEnableSmallWindowSizing:{type:Boolean,reflectToAttribute:!0,value:function(){return!_.y("kevlar_watch_flexy_disable_small_window_sizing")}},
flexyEnableLargeWindowSizing:{type:Boolean,reflectToAttribute:!0,value:function(){return!_.y("kevlar_watch_flexy_disable_large_window_sizing")}},
hideComments:{type:Boolean},legacyMetadataClass:{type:String,computed:"computeLegacyMetadataClass(watchMetadataRefresh)"},newMetadataClass:{type:String,computed:"computeNewMetadataClass(watchMetadataRefresh)"},cinematicsEnabled:{type:Boolean,reflectToAttribute:!0,value:function(){return _.y("kevlar_watch_cinematics")}},
responseHasComments:{type:Boolean,reflectToAttribute:!0,value:function(){return!0}},
deprecateFullerscreenUi:{type:Boolean,reflectToAttribute:!0,value:function(){return _.y("web_watch_fullerscreen_deprecation_ui")}},
iMaxTheaterMode:{type:Boolean,reflectToAttribute:!0,value:function(){return _.y("web_watch_imax_theater_mode")}},
swatcherooDirectUseRichGrid:{type:Boolean,value:function(){return _.y("swatcheroo_direct_use_rich_grid")}},
cinematicsActive:{type:Boolean,value:!1,reflectToAttribute:!0},noTopMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.y("kevlar_watch_no_top_margin")}},
reducedTopMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.y("kevlar_watch_reduced_top_margin")}},
frame0LoadingState:{type:Boolean,reflectToAttribute:!0,value:function(){return _.y("kevlar_watch_frame0_loading_state")}},
retroMode:{type:Boolean,value:!1},roundedPlayer:{type:Boolean,reflectToAttribute:!0,computed:"computeRoundedPlayer(defaultLayout, retroMode)"},showExpandableMetadata:{type:Boolean,reflectToAttribute:!0,computed:"computeShowExpandableMetadata(expandableMetadata)"},fullBleedPlayer:{type:Boolean,reflectToAttribute:!0,computed:"computeFullBleedPlayer(fullscreen, theater, isTwoColumns_)"},defaultLayout:{type:Boolean,reflectToAttribute:!0,computed:"computeDefaultLayout(fullBleedPlayer)"},defaultTwoColumnLayout:{type:Boolean,
reflectToAttribute:!0,computed:"computeDefaultTwoColumnLayout(fullBleedPlayer, isTwoColumns_)"},swatcherooSplitScroll:{type:Boolean,reflectToAttribute:!0,value:function(){return _.y("swatcheroo_split_scroll")}},
trackEngagementPanelVisibility:{type:Boolean,value:function(){return _.y("web_watch_track_engagement_panel_visibility")}},
commentTeaserEnabled:{type:Boolean,value:function(){return _.y("web_watch_show_comment_teaser")}},
swatcherooBinaryLayout:{type:Boolean,reflectToAttribute:!0,value:function(){return _.y("swatcheroo_binary_layout")}},
swatcherooGhostCards:{type:Boolean,reflectToAttribute:!0,value:function(){return _.y("swatcheroo_enable_ghost_cards")}},
metadataSkinnyMode:{type:Boolean,reflectToAttribute:!0,value:!1,computed:"computeMetadataSkinnyMode(swatcherooBinaryLayout, isTwoColumns_, defaultTwoColumnLayout)"},fullBleedNoMaxWidthColumns:{type:Boolean,reflectToAttribute:!0,value:function(){return _.y("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 _.y("web_watch_while_wider_panels")}},
watchWhileMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.y("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 _.y("web_thumbnail_to_watch_transition")}},
playerContainerBackgroundImage:{type:Object,computed:"computePlayerContainerBackgroundImage(playerData, miniplayerIsActive)"},miniplayerIsActive:{type:Boolean}},observers:"watchPageActiveChanged_(active);shouldProceedToNextVideo_(playerData.playabilityStatus, data, playlist);userEngagementConfigDataChanged_(data.userEngagementConfig);updateTheaterModeState_(theaterRequested_);watchNextShownItemsAddedOrRemoved_(watchNextShownItems.splices, watchNextCanShowMore);youthereDataChanged_(playerData.messages);onSetPlaylistCollapsed(playlist);updateChatLocation(liveChatPresentAndExpanded);swatcherooUpdatePanelsLocation(isTwoColumns_, fullBleedPlayer, squeezeback, playlistPanelExpanded, liveChatPresentAndExpanded, engagementPanelExpanded);scheduleFullHeightPanelPositionUpdate(defaultTwoColumnLayout, panelExpanded);swatcherooRichGridRendererDataChanged(data);watchNextSecondaryResultsChanged(data);defaultTwoColumnLayoutChanged(defaultTwoColumnLayout);onMiniplayerActiveReduxValueUpdate(miniplayerIsActive)".split(";"),
monitorScroll:!0,configureRendererStamper:function(){var S={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:_.ZT(["aa","eocs"])},"data.survey":{id:"survey",mapping:{surveyTriggerRenderer:"ytd-survey-trigger-renderer"},initialRenderPriority:3,waitForSignal:_.ZT(["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"||_.y("swa_prov_panels_ks")?S.engagementPanels={id:"panels",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",params:{isWatch:!0}}}}:(S.engagementPanels={id:"panels",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",
params:{isWatch:!0}}}},S.inlineEngagementPanels={id:"inline-panels",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",params:{isWatch:!0}}},reuseComponents:!1});return S},
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 S=this;this.watchController=void 0;this.pageDisposeJobs=[function(){S.showMetadataPlaceholder_()},
function(){_.y("web_watch_dont_clear_comments")||S.clearComments_()},
function(){S.clearPlayerAds_()},
function(){S.resetAutonavCanceledForNewPlayback_()}];
this.player=this.playerContainerEl=this.playerEl=this.watchNextSkeletonEl_=null;this.onPlayingCallbacks_=[];this.clearPlayerAdsJobId_=this.setRichGridJobId_=this.setCommentsJobId_=0;this.showFullerscreenEdu_=!1;this.windowSize_=null;this.is==="ytd-watch-grid"&&(this.visiblePanelIdentifiers_=new Set);this.trackEngagementPanelVisibility&&(this.visiblePanelIdentifiers_=new Set);this.autonavCanceledSignal_=!1;_.y("kevlar_watch_while")&&(this.watchWhileScrollThreshold_=NaN);_.y("web_watch_start_chat_in_theater_mode")&&
(this.theaterEnabledForChat=!1);this.youThereManager_=new _.j7L(function(){return _.v7(S)},this.hostElement);
this.pageDisposeJobs.push(function(){S.youThereManager_.reset()});
_.y("external_fullscreen")&&(this.fullerscreenEduButtonShownThisPlayback_=this.fullerscreenEduButtonClickedThisPlayback_=!1,this.pageDisposeJobs.push(function(){S.resetFullerscreenEduButtonForNewPlayback_()}));
this.fullHeightPanelPositionUpdateJobId=this.panelMaxHeightUpdateJob_=0;this.playerEvents_=new _.Si;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;_.y("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));_.y("kevlar_watch_flexy_comments_manager")||this.hostElement.addEventListener("yt-page-data-will-update",_.d9(this,this.onYtPageDataWillUpdate_))},
onYtUpdatedPlayabilityStatus:function(S){S&&(this.playerData=Object.assign({},this.playerData,{playabilityStatus:S}),S.status==="ERROR"&&(this.playerData.videoDetails=void 0))},
onTheaterReduxValueUpdate:function(S){_.y("kevlar_watch_flexy_theater_manager")&&(this.theater=S,this.updateFullBleedElementLocations(),this.schedulePlayerSizeUpdate_(),this.active!==void 0&&this.schedulePanelMaxHeightUpdate_())},
onMiniplayerActiveReduxValueUpdate:function(S){!_.y("kevlar_watch_while_v2")&&!_.y("web_watch_pip")||S||(this.player&&this.setPlayerTheaterMode_(),this.schedulePlayerSizeUpdate_())},
onFullscreenReduxValueUpdate:function(S){this.active!==void 0&&(this.fullscreen=S,_.y("kevlar_watch_flexy_gestures_manager")||this.gestures_&&this.gestures_.update(this.fullscreen),this.updateFullBleedElementLocations())},
onScrollReduxValueUpdate:function(S){this.active!==void 0&&(_.cv(this.hostElement,"yt-autonav-pause-scroll"),this.setComments_(),_.y("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_(),_.y("kevlar_watch_flexy_gestures_manager")||this.gestures_&&(S>0?this.gestures_.detach():this.gestures_.attach()))},
loadPage_:function(S){this.initCsi_();this.updatePageData_(S)},
updatePageData_:function(S){var p=this;if(S)if(this.data===S){this.onPageLoadWithSameData_();var U;(U=this.watchController)==null||U.setWatchNextResponse(this.data)}else this.data=S;this.playlist&&_.ha({watchInfo:{isPlaylist:!0}});this.pageCount===1&&_.Fg("nw");this.loading=!1;_.bQ(_.PA,function(){p.initDclkstatus_();var Y,L=((Y=p.player)==null?void 0:Y.getVideoData().cpn)||"";_.VGn(function(I,V){_.zwA(I,V,L)})})},
onPageLoadWithSameData_:function(){_.y("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 S=this.get("endpoint.watchEndpoint.playlistId",this.loadingData);this.set("loadingData.playlist",!!S);this.set("loadingData.playlistLoading",S&&S!==this.get("playlistId",this.playlistData));this.toggleBodyScrolling_(!1);if(this.watchNextSkeletonEl_)for(this.playlist?this.watchNextSkeletonEl_.setAttribute("playlist",
""):this.watchNextSkeletonEl_.removeAttribute("playlist"),S=this.watchNextSkeletonEl_.firstElementChild;S;)S.classList.remove("hidden"),S=S.nextElementSibling;if(_.y("kevlar_watch_frame0_loading_state")){var p,U,Y;S=(p=this.loadingData)==null?void 0:(U=p.endpoint)==null?void 0:(Y=U.watchEndpoint)==null?void 0:Y.videoId;var L;S&&(L="https://i.ytimg.com/vi/"+S+"/frame0.jpg");_.tB(this.hostElement).querySelector("#player").style.backgroundImage=L?"url("+L+")":""}},
clearLoadingState_:function(){this.hostElement.classList.remove("show-skeleton");this.hostElement.classList.add("hide-skeleton");var S=_.tB(this.hostElement).querySelector("#related-skeleton");!this.get("data.contents.twoColumnWatchNextResults.secondaryResults.secondaryResults")&&S&&(S.hidden=!0);this.clearPlayerLoadingState_();this.hostElement.classList.remove("loading");this.loadingData={playlist:!1};this.toggleBodyScrolling_(!0);if(this.watchMetadata){var p,U;(U=(p=this.watchMetadata).updateSentimentBarWidth)==
null||U.call(p);var Y,L;(L=(Y=this.watchMetadata).resize)==null||L.call(Y)}_.y("kevlar_watch_frame0_loading_state")&&(_.tB(this.hostElement).querySelector("#player").style.backgroundImage="")},
addSplitScrollMouseTrap:function(S){var p=_.tB(this.hostElement).querySelector(S);p?_.A8(p,!1):_.eP(new _.y7("Overscroll monitor not found for component: ",S))},
removeSplitScrollMouseTrap:function(S){var p=_.tB(this.hostElement).querySelector(S);p?_.t8(p):_.eP(new _.y7("Disposal component for  overscroll monitoring not found: ",S))},
onLoadingChanged_:function(S){S?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(S){var p=this;S?document.body.removeAttribute("no-y-overflow"):document.body.setAttribute("no-y-overflow","");_.PA.addLowPriorityJob(function(){p.onWindowResized_(_.zv(!0))})},
updateTheaterModeState_:function(S){if(!_.y("kevlar_watch_flexy_theater_manager")){S=S||this.fullWindowMode_;if(this.theater!==void 0||S)this.theater=S;this.updateFullBleedElementLocations();this.player&&this.setPlayerTheaterMode_();this.togglePageSwatchActive_();S&&_.bBJ()}},
updateFullBleedElementLocations:function(){this.updateChatLocation();this.updatePlayerLocation();this.updateCinematicsLocation();this.updatePanelsLocation()},
updatePlayerLocation:function(){var S=this.theater||this.enableFullBleedSingleColumnDefaultPlayer&&this.fullBleedPlayer;_.y("external_fullscreen")&&this.fullscreen&&(S=!0);S=S?_.tB(this.hostElement).querySelector("#player-full-bleed-container"):_.tB(this.hostElement).querySelector("#player-container-inner");var p=this.getPlayerContainer(),U=_.y("kevlar_watch_while_v2")||_.y("web_watch_pip");p.parentElement!==S&&(U&&this.isMiniplayerActive()?this.deactivateMiniplayerAndResetPlayer():(_.v7(this).appendTo(S,
p),S.appendChild(_.tB(this.hostElement).querySelector("#error-screen"))))},
deactivateMiniplayerAndResetPlayer:function(){var S=this;return _.T(function(p){if(p.nextAddress==1)return _.k(p,_.tW().resolve(_.eC).deactivate(),2);S.updatePlayerLocation();_.OV(p)})},
updateCinematicsLocation:function(){var S=this.getElement("CINEMATICS");if(S){var p=this.getCinematicsLocationContainer();S.parentElement!==p&&p.appendChild(S);var U;(U=this.watchController)==null||U.updateCinematicFullscreenConfig()}},
getCinematicsLocationContainer:function(){return this.shouldCinematicsBeInWideContainer(this.theater&&!this.fullscreen,this.fullscreen)?_.tB(this.hostElement).querySelector("#cinematics-full-bleed-container"):_.tB(this.hostElement).querySelector("#cinematics-container")},
shouldCinematicsBeInWideContainer:function(S,p){var U=document.documentElement.hasAttribute("dark"),Y=U&&_.y("web_cinematic_theater_mode"),L=U&&_.y("web_cinematic_fullscreen");U=!U&&this.cinematicLightTheme;return S&&Y||p&&L||(p||S)&&U},
isTheater_:function(){return this.theater&&this.active},
dataChanged_:function(){var S=this,p;(p=this.watchController)==null||p.setWatchNextResponse(this.data);_.y("kevlar_watch_flexy_comments_manager")||this.initComments_();_.y("kevlar_metadata_reset_on_nav")&&this.hostElement.classList.add("hide-skeleton");_.tW().resolve(_.Fz).cancelVideoSkip();this.showEngagementPanelScrim_=!1;this.trackEngagementPanelVisibility&&(this.engagementPanelExpanded=!1,this.visiblePanelIdentifiers_.clear());if(this.is==="ytd-watch-grid")if(this.liveChatCollapsed=!0,this.visiblePanelIdentifiers_.clear(),
this.engagementPanelExpanded=!1,_.y("kevlar_watch_grid_auto_open_playlist"))this.onSetPlaylistCollapsed(!1),_.PA.addLowPriorityJob(function(){_.pp(S.hostElement,"yt-set-playlist-collapsed",[!1])},1E3);
else this.onSetPlaylistCollapsed(!this.playlistPanelExpanded);this.data&&this.updateCinematicsLocation();if(_.y("web_watch_start_chat_in_theater_mode")){var U,Y,L;if((U=this.data)==null?0:(Y=U.contents)==null?0:(L=Y.twoColumnWatchNextResults)==null?0:L.conversationBar)this.setTheaterModeRequested(!0,!1),this.theaterEnabledForChat=!0;else{var I,V;((I=this.data)==null?0:(V=I.contents)==null?0:V.twoColumnWatchNextResults)&&this.theaterEnabledForChat&&(this.setTheaterModeRequested(!1,!1),this.theaterEnabledForChat=
!1)}}},
playerDataChanged_:function(S){var p;(p=this.watchController)==null||p.setPlayerResponse(this.playerData);S&&S.playabilityStatus&&(p=this.isVideoPlayable_(S.playabilityStatus,this.getPlayerOverlays_(this.data)),S=this.isLiveStreamOffline_(S.playabilityStatus),p&&!S||_.oH(this,function(){_.Fg("pbu")}));
this.setPlayerAds_();_.pp(this.hostElement,"ytd-watch-player-data-changed")},
computePlayerContainerBackgroundImage:function(S,p){if((_.y("kevlar_watch_while_v2")||_.y("web_watch_pip"))&&this.playerData&&p)return this.playerData.videoDetails},
watchPageActiveChanged_:function(S){_.vJ().dispatch(_.vbd(this.active));S?this.activate_():this.deactivate_()},
attached:function(){var S=this;this.watchController=new _.fy(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);_.y("web_watch_common_class_killswitch")||this.hostElement.classList.add("watch-root-element");var p=_.v7(this);_.y("kevlar_disable_prepare_player")||
p.preparePlayer();_.y("kevlar_watch_flexy_playlist_manager")||_.tW().resolve(_.Fz).setPlayer(p);this.is!=="ytd-watch-grid"&&this.attachWatchPageSkeleton_();this.updatePageMediaQueries();p={"--ytd-watch-flexy-scrollbar-width":_.FK()+"px"};this.is==="ytd-watch-grid"&&(p["--ytd-watch-flexy-sidebar-width"]=_.IQs+"px",p["--ytd-watch-grid-horizontal-page-margins"]=_.u3+"px",p["--ytd-watch-grid-columns-top-margins"]=_.YZs+"px",p["--ytd-watch-grid-min-player-height-medium"]="360px");!_.pA("kv_pl_mx_sz_ks")&&
_.pA("kevlar_watch_max_player_width")&&(p["--ytd-watch-flexy-max-player-width-wide-screen"]=_.d$o+"px");_.pA("kevlar_watch_flexy_metadata_height")&&(p["--ytd-watch-flexy-space-below-player"]=_.VhX+"px");this.safeUpdateStyles(p);_.y("kevlar_watch_flexy_gestures_manager")||(this.gestures_=new _.T_(this.hostElement,this.getPlayerContainer(),{dragDownAction:function(){return S.onPlayerTouchPanDown_()}}));
this.watchMetadata=_.tB(this.hostElement).querySelector("ytd-watch-metadata:not([swatcheroo-secondary-below-metadata])")},
updatePageMediaQueries:function(){var S=_.FK(),p=_.wp+S,U=p;this.fixedPanels&&(p+=_.IQs);var Y=657+S;S=1327+S;_.tB(this.hostElement).querySelector("#two-column-query").query="(min-width: "+p+"px)";_.tB(this.hostElement).querySelector("#small-window-query").query="(max-height: 629px) and (min-width: "+(Y+"px), (min-height: 630px) and (min-width: ")+(p+"px) and (max-width: ")+(S+"px)");_.tB(this.hostElement).querySelector("#large-window-query").query="(min-height: 630px) and (min-width: "+(S+"px)");
_.tB(this.hostElement).querySelector("#watch-while-query").query="(min-width: "+U+"px)"},
calculateCurrentPlayerSize_:function(){var S=_.tB(this.hostElement).querySelector("#miniplayer-bar").firstChild,p=this.squeezeback&&!_.y("web_watch_squeezeback_player_size_killswitch");return S&&S.active||this.theater||_.y("web_watch_fullscreen_panels")&&this.fullscreen||this.swatcherooSqueezeback||p||!this.active||!this.windowSize_||this.enableFullBleedSingleColumnDefaultPlayer&&this.fullBleedPlayer?new _.OF(NaN,NaN):_.m2(this.windowSize_,this.videoHeightToWidthRatio_,this.isTwoColumns_&&(this.playlist||
this.shouldStampChat))},
calculateNormalPlayerSize_:function(){return _.m2(this.windowSize_,this.videoHeightToWidthRatio_,this.isTwoColumns_&&(this.playlist||this.shouldStampChat))},
detached:function(){_.t9(this.watchController);this.watchController=void 0;this.deactivate_()},
activate_:function(){var S=this;this.onWindowResized_(_.zv());_.y("browse_skeleton_removal_on_watch_killswitch")||_.ub("IS_SHELL_LOAD")&&_.n4E();this.theaterRequested_=this.theater;this.togglePageSwatchActive_();var p=_.v7(this);p.addEventListener("yt-player-updated",_.d9(this,this.onPlayerUpdated_));p.getPlayerPromise().then(function(U){S.playerApiReady_(U)});
_.y("kevlar_watch_flexy_playlist_manager")||(p=_.tW().resolve(_.Fz),_.y("kevlar_watch_observe_playlist_navigations_killswitch")&&p.addEventListener("yt-navigate",_.d9(this,this.onYtNavigate_)),p.setPlaylistComponent(_.tB(this.hostElement).querySelector("#playlist")),p.addEventListener("yt-playlist-data-updated",_.d9(this,this.onYtPlaylistDataUpdated_)),this.onYtPlaylistDataUpdated_());_.PA.addLowPriorityJob(function(){_.cv(S.hostElement,"yt-autonav-pause-scroll")})},
deactivate_:function(){this.disconnectFromPlayer_();_.v7(this).removeEventListener("yt-player-updated",_.d9(this,this.onPlayerUpdated_));this.swatcherooSplitScroll&&this.defaultTwoColumnLayout&&(this.removeSplitScrollMouseTrap("#secondary-inner"),this.removeSplitScrollMouseTrap("#fixed-secondary"));if(!_.y("kevlar_watch_flexy_playlist_manager")){var S=_.tW().resolve(_.Fz);_.y("kevlar_watch_observe_playlist_navigations_killswitch")&&S.removeEventListener("yt-navigate",_.d9(this,this.onYtNavigate_));
S.cancelVideoSkip();S.removeEventListener("yt-playlist-data-updated",_.d9(this,this.onYtPlaylistDataUpdated_))}this.loading&&this.toggleBodyScrolling_(!0);_.y("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_();this.schedulePlayerSizeUpdate_();_.cv(this.hostElement,"yt-autonav-pause-player",!1);S=_.Bv();_.y("kevlar_exit_fullscreen_leaving_watch")&&S&&_.qU(S)},
disconnectFromPlayer_:function(){this.player&&(this.unlistenFromPlayerEvents(this.player,this.playerEvents_),this.player=null)},
onUpdatePlayerNextVideo_:function(S){this.player&&this.player.updateVideoData({rvs:S.rvs})},
getPageContents:function(S){return S&&S.contents&&S.contents.twoColumnWatchNextResults&&S.contents.twoColumnWatchNextResults.results&&S.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(S){return this.get("contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule",S)},
onRetrieveLocation_:function(S,p){p.hasComments?p.locationRetrieved("/comment_service_ajax?action_get_comments=1&pbj=1",void 0):p.locationRetrieved("/related_ajax",void 0);S.stopPropagation()},
onSubscriptionChanged_:function(S,p){this.player&&(p?this.player.channelSubscribed():this.player.channelUnsubscribed())},
initCsi_:function(){_.hv("watch",["pbs","pbp","pbu"])},
getPlayerContainer:function(){this.playerContainerEl||(this.playerContainerEl=_.tB(this.hostElement).querySelector("#player-container"));return this.playerContainerEl},
getPlayer:function(){this.playerEl||(this.playerEl=_.tB(this.hostElement).querySelector("#ytd-player"));return this.playerEl},
playerApiReady_:function(S){this.player=S;this.setPlayerState(S.getPlayerState());this.listenToPlayerEvents(this.player,this.playerEvents_);this.updatePlayerStartTime_();this.setPlayerTheaterMode_();this.onPlayerPresentingVideoDataChange_();this.handlePlayerUpdated_();_.y("external_fullscreen")&&this.updateFullerscreenEduButtonSubtleModeState_();(_.y("kevlar_unified_player")||_.y("kevlar_player_new_bootstrap_adoption"))&&_.x9()},
onFullerscreenEduClicked_:function(){this.scrollToAnimation_.start(0,186,500);this.fullerscreenEduButtonClickedThisPlayback_||(this.fullerscreenEduButtonClickedThisPlayback_=!0,this.incrementFullerscreenEduButtonCount_("yt-fullerscreen-edu-button-click-count"))},
setTheaterModeRequested:function(S,p){p=p===void 0?!0:p;_.Bv()&&_.y("external_fullscreen")&&_.qU(document.documentElement);this.theaterRequested_=S;p&&_.zp("wide",S?"1":"0",-1);this.togglePageSwatchActive_();this.player&&this.setPlayerTheaterMode_();this.schedulePlayerSizeUpdate_();this.schedulePanelMaxHeightUpdate_();_.St(this.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"])},
togglePageSwatchActive_:function(){this.theater!==void 0&&this.active&&_.cv(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(S){_.gK(S,typeof this.player),this.player&&_.gK(S,this.player.setSizeStyle)}},
onPlayerTouchPanDown_:function(){if(this.active&&this.getScrollTop()<=0){var S;((S=this.player)==null?0:S.isFullscreen())?this.player.toggleFullscreen():_.St(this.hostElement,"yt-activate-miniplayer-from-watch-action")}},
hasPlaylist_:function(S,p){return this.loading?p:!!Object.keys(S).length},
autonavAllowed_:function(){return this.autonavCanceledSignal_?!1:!!this.get("contents.twoColumnWatchNextResults.autoplay.autoplay",this.data)},
youthereDataChanged_:function(S){if(S){S=_.d(S);for(var p=S.next();!p.done;p=S.next())p=p.value,p.youThereRenderer&&_.hii(this.youThereManager_,p.youThereRenderer)}},
setPlaylistData_:function(S){return S||{}},
userEngagementConfigDataChanged_:function(S){if(S)if(S.lowUserEngagementAction==="LOW_USER_ENGAGEMENT_ACTION_LOWER_QUALITY"){var p=this.youThereManager_;_.pv()<S.lowEngagementThresholdMs||_.PUd(p,!0)}else S.lowUserEngagementAction==="LOW_USER_ENGAGEMENT_ACTION_PAUSE_AUTOPLAY"&&_.St(this.hostElement,"yt-autonav-pause-user-engagement",[S])},
isPlayerUnavailable_:function(S,p,U){return!!S&&!this.isVideoPlayable_(S,U)&&!p},
getPlayerOverlays_:function(S){return(S==null?void 0:S.playerOverlays)||null},
isVideoPlayable_:function(S,p){if(!S)return!1;var U=S.status==="OK"||S.status==="LIVE_STREAM_OFFLINE",Y=this.get("errorScreen.playerLegacyDesktopYpcTrailerRenderer",S)||this.get("errorScreen.ypcTrailerRenderer",S);S=this.get("errorScreen.playerLegacyDesktopYpcOfferRenderer",S);var L;p=p==null?void 0:(L=p.playerOverlayRenderer)==null?void 0:L.gatedActionsOverlayRenderer;return!!U||!!Y||!!S||!!p},
hasWatchNextResponseErrorRenderer:function(S){var p=this.getPageContents(S),U,Y,L,I,V;return!(S==null?0:(U=S.contents)==null?0:(Y=U.twoColumnWatchNextResults)==null?0:Y.secondaryResults)&&!!((L=p[0])==null?0:(I=L.itemSectionRenderer)==null?0:(V=I.contents[0])==null?0:V.backgroundPromoRenderer)},
isLiveStreamOffline_:function(S){return S?S.status==="LIVE_STREAM_OFFLINE":!1},
shouldProceedToNextVideo_:function(S,p,U){var Y=!!this.get("contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule",p),L=["AGE_CHECK_REQUIRED","CONTENT_CHECK_REQUIRED","AGE_VERIFICATION_REQUIRED"];L=_.y("web_no_skip_video_on_verification_checks")?(S==null?void 0:S.status)&&L.includes(S.status):S&&S.status==="AGE_CHECK_REQUIRED";var I=this.get("skip.playabilityErrorSkipConfig.skipOnPlayabilityError",S);I==void 0&&(I=!0);!U||this.isVideoPlayable_(S,this.getPlayerOverlays_(p))||
Y||L||!I||_.tW().resolve(_.Fz).skipVideo()},
getServiceTrackingParams:function(){if(this.data&&this.data.responseContext)return this.data.responseContext.serviceTrackingParams},
onPlayerUpdated_:function(){this.handlePlayerUpdated_();_.D6J()},
onPlayerFeedbackStartRequest_:function(S){_.St(this.hostElement,"yt-feedback-dialog-requested",[{customProductData:S}])},
onPlayerFeedbackArticleRequest_:function(S){_.St(this.hostElement,"yt-help-dialog-requested",[S])},
onPlayerYpcContentRequest_:function(){var S,p,U,Y,L,I,V,W,O=((S=this.data)==null?NaN:(p=S.contents)==null?NaN:(U=p.twoColumnWatchNextResults)==null?NaN:(Y=U.secondaryResults)==null?NaN:(L=Y.secondaryResults)==null?NaN:(I=L.offerModule)==null?NaN:(V=I.tvfilmOfferModuleRenderer)==null?NaN:(W=V.actionButtons)==null?NaN:W.length)-1;S=[".offerButton.buttonRenderer.",".actionButtons."+(O>=0?O:0)+".buttonRenderer."];p=_.d(["episodeOfferModuleRenderer","movieOfferModuleRenderer","unlimitedOfferModuleRenderer",
"liveOfferModuleRenderer","tvfilmOfferModuleRenderer"]);for(U=p.next();!U.done;U=p.next())for(U=U.value,Y=_.d(S),L=Y.next();!L.done;L=Y.next())if(L="contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule."+U+L.value,L=this.get(L+"navigationEndpoint",this.data)||this.get(L+"serviceEndpoint",this.data)||this.get(L+"command",this.data)){_.Te(L,this.hostElement);return}},
onPlayerAutonavPauseRequest_:function(S){_.cv(this.hostElement,"yt-autonav-pause-player",S)},
onPlayerPlaying_:function(){this.onPlayingCallbacks_.forEach(function(S){S()});
this.onPlayingCallbacks_.length=0},
onAdStateChange_:function(S){switch(S){case 3:this.clearPlayerLoadingState_();break;case 1:this.clearPlayerLoadingState_(),this.onPlayerPlaying_()}},
onPlayerStateChange_:function(S){switch(S){case 3:this.clearPlayerLoadingState_();break;case 1:this.clearPlayerLoadingState_();this.onPlayerPlaying_();break;case 0:_.cv(this.hostElement,"yt-autonav-pause-player-ended")}this.setPlayerState(S)},
setPlayerState:function(S){_.vJ().dispatch(_.bjm(S))},
onPlayerSubscribe_:function(S){_.St(this.hostElement,"yt-player-subscribe",[S])},
onPlayerUnsubscribe_:function(S){_.St(this.hostElement,"yt-player-unsubscribe",[S])},
onPlayerAdYtShowToast_:function(S){_.St(this.hostElement,"yt-open-popup-action",[{openPopupAction:{popup:{notificationActionRenderer:S.notificationActionRenderer},popupType:"TOAST"}},this])},
getAlerts_:function(){return this.alertsValue},
getPlayerMicroformatRenderer_:function(S){if(S)return S},
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(S){return!_.y("web_watch_move_summary_to_sd")&&!!S},
computeWatchMetadataRefresh:function(){return _.y("kevlar_watch_metadata_refresh")&&this.videoPrimaryInfoRenderer?!0:!1},
computeRoundedPlayer:function(){return this.defaultLayout&&!(_.y("web_player_rtr_ctrls")&&this.retroMode)},
watchNextSecondaryResultsChanged:function(){if(this.is!=="ytd-watch-grid"&&!this.useProviderForSecondaryResultsRenderer){var S,p,U,Y;this.watchNextSecondaryResults=(S=this.data)==null?void 0:(p=S.contents)==null?void 0:(U=p.twoColumnWatchNextResults)==null?void 0:(Y=U.secondaryResults)==null?void 0:Y.secondaryResults}},
swatcherooRichGridRendererDataChanged:function(){if(this.is==="ytd-watch-grid"&&this.swatcherooDirectUseRichGrid&&!_.y("swatcheroo_pbs_load_grid")&&!_.y("swatcheroo_provide_all_data_on_scheduled_job")){_.PA.cancelJob(this.setRichGridJobId_);var S,p,U,Y,L,I,V;this.setRichGridRendererData((S=this.data)==null?void 0:(p=S.contents)==null?void 0:(U=p.twoColumnWatchNextResults)==null?void 0:(Y=U.secondaryResults)==null?void 0:(L=Y.secondaryResults)==null?void 0:(I=L.results)==null?void 0:(V=I[0])==null?
void 0:V.richGridRenderer)}},
setRichGridRendererData:function(S){this.richGridRendererData=S},
computeVideoPrimaryInfoRenderer:function(){return this.videoPrimaryInfoRendererValue},
computeVideoSecondaryInfoRenderer:function(){return this.videoSecondaryInfoRendererValue},
computeInlineStructuredDescriptionData:function(){var S,p=(S=this.data)==null?void 0:S.engagementPanels;if(p==null?0:p.length){S=null;p=_.d(p);for(var U=p.next();!U.done;U=p.next()){U=U.value;var Y=void 0;if(((Y=U.engagementPanelSectionListRenderer)==null?void 0:Y.targetId)==="engagement-panel-structured-description"){S=U;break}}var L,I,V;S=(L=S)==null?void 0:(I=L.engagementPanelSectionListRenderer)==null?void 0:(V=I.content)==null?void 0:V.structuredDescriptionContentRenderer;if(S==null?0:S.items){L=
[];I=_.d(S.items);for(V=I.next();!V.done;V=I.next()){V=V.value;if(!_.y("sd_horizontal_list_show_nav_killswitch")){var W=Y=U=p=S=void 0,O=void 0,D=(S=V.horizontalCardListRenderer)==null?void 0:(p=S.header)==null?void 0:(U=p.richListHeaderRenderer)==null?void 0:(Y=U.navigationButton)==null?void 0:(W=Y.buttonRenderer)==null?void 0:(O=W.command)==null?void 0:O.commandExecutorCommand;D&&D.commands&&(D.commands=D.commands.filter(function(z){return!_.b(z,_.jvA)}))}V.expandableVideoDescriptionBodyRenderer||
V.videoDescriptionHeaderRenderer||L.push(V)}return{items:L}}}},
constructWarning_:function(S){return{text:_.Ec(S),type:"WARNING"}},
isPlaShelfEnabled_:function(S){if((this.get("adPlacements",S)||[]).length)return!0;S=this.get("playerAds",S)||[];return!(!S.length||!this.get("playerLegacyDesktopWatchAdsRenderer.playerAdParams.allowBelowThePlayerCompanion",S[0]))},
resetAutonavCanceledForNewPlayback_:function(){this.autonavCanceledSignal_=!1},
onThrottledScroll_:function(){var S=this;_.cv(this.hostElement,"yt-autonav-pause-scroll");this.setComments_();_.y("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_();var p=this.getScrollTop()>0;this.gestures_&&(p?this.gestures_.detach():this.gestures_.attach());p!==this.showFullerscreenEdu_&&_.y("external_fullscreen_with_edu")&&this.fullscreen&&(this.showFullerscreenEdu_=p,_.v7(this).getPlayerPromise().then(function(U){U.updateFullerscreenEduButtonVisibility(S.getScrollTop()>0)}))},
onMastheadThrottledScroll:function(){_.cv(this.hostElement,"yt-watch-masthead-scroll",this.getScrollTop())},
onYtPageDataWillUpdate_:function(){this.preparePageReset_()},
preparePageReset_:function(){this.clearScheduledCommentJobs_()},
initComments_:function(){var S=this;this.commentsReady=!1;_.PA.cancelJob(this.setCommentsJobId_);this.setCommentsJobId_=_.bQ(_.PA,function(){S.setComments_()},1E3)},
setComments_:function(){if(!_.y("kevlar_watch_flexy_comments_manager")&&!this.commentsReady){_.Fg("cmi");_.PA.cancelJob(this.setCommentsJobId_);var S=this.getPageContents(this.data);if(S&&S.length){S=_.d(S);for(var p=S.next();!p.done;p=S.next())if(p=p.value,this.get("itemSectionRenderer.sectionIdentifier",p)==="comment-item-section"){this.comments=p.itemSectionRenderer;this.canScheduleCommentJobs_=!0;break}}this.commentsReady=!0}},
commentsReadyChanged_:function(){this.commentsReady&&_.cv(this.hostElement,"yt-watch-comments-ready")},
clearScheduledCommentJobs_:function(){_.y("kevlar_cancel_scheduled_comment_jobs_on_navigate")&&(this.canScheduleCommentJobs_=!1)},
showMetadataPlaceholder_:function(){_.y("kevlar_metadata_reset_on_nav")&&this.hostElement.classList.remove("hide-skeleton")},
clearComments_:function(){this.doRemoveComments_();_.Fg("cmc")},
doRemoveComments_:function(){this.comments={};_.y("kevlar_watch_hide_comments_while_panel_open")&&(this.hideComments=!1)},
setPlayerAds_:function(){_.PA.cancelJob(this.clearPlayerAdsJobId_);this.playerAds=this.get("playerAds",this.playerData)},
clearPlayerAds_:function(){_.PA.cancelJob(this.clearPlayerAdsJobId_);this.playerAds=void 0},
onYtNavigate_:function(S,p){var U=_.b(p.endpoint,_.E$);U&&(!(p=this.get("data.currentVideoEndpoint.watchEndpoint"))||U.videoId!==p.videoId||U.playlistId&&U.playlistId!==p.playlistId||U.index!==void 0&&U.index!==p.index||typeof U.startTimeSeconds!=="number"||(S.stopPropagation(),this.setScrollTop(0),_.v7(this).getPlayerPromise().then(function(Y){var L=U.startTimeSeconds;Y.seekTo(L);Y.wakeUpControls();L<Y.getDuration()&&Y.playVideo()})))},
updatePlayerStartTime_:function(){var S=_.cvn();"t"in S&&(S=_.Hni(S.t),this.player.seekTo(S,!0))},
updateTitleFromWatchNext:function(S){S=this.getPageContents(S);var p,U;(S=_.mA(S==null?void 0:(p=S[0])==null?void 0:(U=p.videoPrimaryInfoRenderer)==null?void 0:U.title))&&_.cv(this.hostElement,"yt-update-title",S)},
updateTitle_:function(S){S=this.get("videoDetails.title",S)||"";_.cv(this.hostElement,"yt-update-title",S)},
syncWithRemoteVideo_:function(S,p,U){if(this.active&&this.player){var Y=this.player.getVideoData();if(Y.video_id===U&&(U=Y.list,_.y("polymer_enable_mdx_queue")&&U&&U.startsWith("RQ")&&(U=void 0),Y.video_id!==S||U!=p)){var L;_.y("kevlar_player_watch_endpoint_navigation")?L=_.CuX(_.TjT(S,p)):L=this.buildWatchEndpoint_(S,p);_.cv(this.hostElement,"yt-navigate",{endpoint:L,isRemotePlayback:!0})}}},
buildWatchEndpoint_:function(S,p,U){return _.qw(S,p,U)},
initDclkstatus_:function(){_.kSL()},
attachWatchPageSkeleton_:function(){var S=document.querySelector("#watch-page-skeleton");if(S){var p=S.querySelector("#primary-info"),U=S.querySelector("#secondary-info"),Y=S.querySelector("#related");p&&_.tB(this.hostElement).querySelector("#info-skeleton").appendChild(p);U&&_.tB(this.hostElement).querySelector("#meta-skeleton").appendChild(U);Y&&(_.tB(this.hostElement).querySelector("#related-skeleton").appendChild(Y),this.watchNextSkeletonEl_=Y);_.yz(S)}},
handlePlayerUpdated_:function(){_.v7(this).focusOnPlayer()},
watchNextShownItemsAddedOrRemoved_:function(S,p){if((this.is!=="ytd-watch-grid"||!this.swatcherooDirectUseRichGrid)&&this.watchNextSkeletonEl_&&typeof p!=="undefined"){var U=this.watchNextSkeletonEl_.children,Y=S&&S.indexSplices.length?S.indexSplices[0].index:0;S=Math.min(this.watchNextShownItems.length,U.length);p||(Y=0,S=U.length);for(p=Y;p<S;p++)U[p].classList.add("hidden")}},
onPlayerFullscreenChange_:function(S){_.y("external_fullscreen")||_.St(this.hostElement,"yt-player-fullscreen",[S.fullscreen])},
onFullscreenChange_:function(S){this.fullscreen=S;this.gestures_&&this.gestures_.update(this.fullscreen);var p=_.v7(this);p.getPlayerPromise().then(function(U){U.setFauxFullscreen(!!_.Bv())});
this.updateFullBleedElementLocations();S&&(p.focusOnPlayer(),this.fullerscreenEduButtonShownThisPlayback_||(this.fullerscreenEduButtonShownThisPlayback_=!0,this.incrementFullerscreenEduButtonCount_("yt-fullerscreen-edu-button-shown-count")))},
computeShouldStampChat_:function(S,p){return!!this.get("data.contents.twoColumnWatchNextResults.conversationBar")&&!p},
computeIsDonationShelfCollapsed_:function(S){return S},
computeShouldShowMerchShelf:function(S,p){return p&&!!S},
computeResponseHasComments:function(S){var p,U,Y,L,I;return!!(S==null?0:(p=S.contents)==null?0:(U=p.twoColumnWatchNextResults)==null?0:(Y=U.results)==null?0:(L=Y.results)==null?0:(I=L.contents)==null?0:I.some(function(V){var W;return(V==null?void 0:(W=V.itemSectionRenderer)==null?void 0:W.sectionIdentifier)==="comment-item-section"}))},
computeShowComments_:function(S,p,U,Y){this.responseHasComments=this.computeResponseHasComments(this.data);return this.is==="ytd-watch-grid"&&Y?!1:!!S&&!!Object.keys(S).length&&!p},
identity:_.Cr,onWindowResized_:function(S){this.windowSize_=S;this.active&&(this.schedulePlayerSizeUpdate_(!0),this.schedulePanelMaxHeightUpdate_(),this.scheduleFullHeightPanelPositionUpdate());_.y("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_()},
onPlayerPresentingVideoDataChange_:function(S){var p=this;S&&S.type!=="dataloaded"&&S.type!=="dataupdated"||_.v7(this).getPlayerPromise().then(function(U){var Y=U.getPlayerState();Y!==5&&Y!==0&&(U=1/U.getVideoAspectRatio(),p.videoHeightToWidthRatio_!==U&&(p.videoHeightToWidthRatio_=U))})},
schedulePlayerSizeUpdate_:function(S){var p=this,U=_.y("kevlar_watch_while_v2")||_.y("web_watch_pip"),Y=function(){if(p.watchMetadata){var L,I;(I=(L=p.watchMetadata).resize)==null||I.call(L)}_.v7(p).getPlayerPromise().then(function(V){if(_.y("kevlar_set_internal_player_size")){if(!U||!p.isMiniplayerActive()){var W=p.calculateCurrentPlayerSize_();V.setInternalSize(W.width,W.height)}}else V.setSize(NaN,NaN);_.y("kevlar_watch_while")&&p.updateWatchWhileScrollThreshold_()})};
S?Y():_.Jn(_.PA,Y)},
secondaryColumnModulePresenceChanged_:function(){this.isAttached&&this.schedulePlayerSizeUpdate_()},
onYtShowSurvey_:function(S){this.set("data.survey",S.detail)},
onYtShowSurveyCommand_:function(S){this.set("data.survey",_.b(S,_.bn5).survey)},
onDownloadedVideoDeleted:function(S){var p=this,U,Y;return _.T(function(L){if(L.nextAddress==1){if(!p.active||(U=p.playerData)==null||!U.offlineState||p.videoId!==S)return L.return();(Y=p.player)==null||Y.stopVideo();_.Vy().navigatingAwayFromWatchDeletedVideo=!0;_.Te(_.FRG,p.hostElement);return _.k(L,_.Vy().navigationFinishPromise,2)}_.Vy().navigatingAwayFromWatchDeletedVideo=!1;_.OV(L)})},
updateWatchWhileScrollThreshold_:function(){if(this.windowSize_){var S;this.theater?S=_.F7(.5625*this.windowSize_.width,480,this.windowSize_.height-185):S=this.calculateNormalPlayerSize_().height+24;this.watchWhileScrollThreshold_!==S&&(this.watchWhileScrollThreshold_=S,this.updateMiniplayerBarVisibility_())}},
updateMiniplayerBarVisibility_:function(){var S=_.tB(this.hostElement).querySelector("ytd-miniplayer-bar-renderer");if(this.windowSize_&&S){var p=this.windowSize_.height>=624,U=this.active?this.getScrollTop():0;!S.active&&p&&U>=this.watchWhileScrollThreshold_?(S.activate(this.getPlayer()),this.schedulePlayerSizeUpdate_()):S.active&&(!p||U<this.watchWhileScrollThreshold_&&!_.Bv())&&(S.deactivate().appendTo(this.getPlayerContainer()),this.schedulePlayerSizeUpdate_())}},
defaultTwoColumnLayoutChanged:function(){if(this.swatcherooBinaryLayout&&this.is==="ytd-watch-grid"){var S=_.tB(this.hostElement).querySelector("#secondary-inner");if(S){var p=_.tB(this.hostElement).querySelector("#below"),U=_.tB(this.hostElement).querySelector("#secondary"),Y=_.tB(this.hostElement).querySelector("#comments");Y&&U&&p&&(this.defaultTwoColumnLayout?(S.appendChild(Y),U.appendChild(S)):(p.appendChild(Y),_.gp(p,S)))}}},
isTwoColumnsChanged_:function(S,p){if(S!==!0||p!==void 0)if(this.enableFullBleedSingleColumnDefaultPlayer&&this.updateFullBleedElementLocations(),this.is==="ytd-watch-grid"){if(!this.swatcherooBinaryLayout&&(S=_.tB(this.hostElement).querySelector("#secondary-inner"))){p=_.tB(this.hostElement).querySelector("#below");var U=_.tB(this.hostElement).querySelector("#secondary"),Y=_.tB(this.hostElement).querySelector("#comments");Y&&U&&p&&(this.isTwoColumns_?(S.appendChild(Y),U.appendChild(S)):(p.appendChild(Y),
_.gp(p,S)))}}else{S=!_.y("web_watch_enable_fs_squeezeback_panels")||!(this.fullscreen||this.iMaxTheaterMode&&this.theater);p=_.tB(this.hostElement).querySelector("#panels");var L=_.tB(this.hostElement).querySelector("#alerts");U=_.tB(this.hostElement).querySelector("#playlist");Y=_.tB(this.hostElement).querySelector("#related");var I=_.tB(this.hostElement).querySelector("#donation-shelf"),V=_.tB(this.hostElement).querySelector("#comments");this.isTwoColumns_?(L=_.tB(this.hostElement).querySelector("#secondary-inner"),
S&&(L.appendChild(p),L.appendChild(U)),L.appendChild(I),L.appendChild(Y)):(S&&(_.b1(p,L),_.b1(U,L)),_.b1(I,L),V&&_.b1(Y,V));this.active&&(this.schedulePanelMaxHeightUpdate_(),this.scheduleFullHeightPanelPositionUpdate())}},
watchWhileWindowSizeSufficientChanged:function(){_.y("web_watch_theater_chat")&&this.updateChatLocation()},
updateChatLocation:function(){if(this.is!=="ytd-watch-grid"&&!_.y("web_watch_enable_fs_squeezeback_panels")&&_.y("web_watch_theater_chat")){var S=_.tB(this.hostElement).querySelector("#chat-container"),p=this.theater&&!this.fullscreen||_.y("web_watch_fullscreen_panels")&&this.fullscreen;this.watchWhileWindowSizeSufficient&&this.liveChatPresentAndExpanded&&p?(p=_.tB(this.hostElement).querySelector("#columns"),(S==null?void 0:S.parentElement)!==p&&p.append(S),this.fixedPanels=!0):(this.fixedPanels=
!1,p=_.tB(this.hostElement).querySelector("#playlist"),S&&p?_.jc(S,p):_.eP(new _.y7("Missing element when updating chat location",{"chatContainer defined":!!S,"playlist defined":!!p})));this.updatePageMediaQueries();this.schedulePlayerSizeUpdate_()}},
computeHasMetadata:function(S,p){return _.y("sw_metadata_vis_toggle_ks")?!0:!!S||!!p},
computeForceDarkPanelTheme:function(S){return _.y("web_watch_theater_chat_beside_player_dark")?!document.documentElement.hasAttribute("dark")&&S:!1},
safeUpdateStyles:function(S){try{_.Ms(this.hostElement,S)}catch(p){_.eP(p)}},
videoHeightToWidthRatioChanged_:function(S,p){p&&(this.safeUpdateStyles({"--ytd-watch-flexy-width-ratio":1,"--ytd-watch-flexy-height-ratio":this.videoHeightToWidthRatio_}),this.schedulePlayerSizeUpdate_(),this.schedulePanelMaxHeightUpdate_())},
onYtInitialVideoAspectRatio_:function(S){this.videoHeightToWidthRatio_=1/S},
computeIsVerticalVideo_:function(S){return S>=1},
computeIsFourThreeToSixteenNineVideo_:function(S){return S<=.7501&&S>=.5624},
computeIsExtraWideVideo_:function(S){return S<.5624},
onYtUserActivity_:function(){this.youThereManager_.onUserActivity()},
handleSignalActionPausePlayer_:function(){this.active&&_.v7(this).pause()},
handleSignalActionPlayPlayer_:function(){this.active&&_.v7(this).play()},
handleSignalActionAcknowledgeYouThere_:function(){_.ZnY(this.youThereManager_)},
incrementFullerscreenEduButtonCount_:function(S){var p=_.Uz(S)||0;_.p$(S,p+1,31536E3);this.updateFullerscreenEduButtonSubtleModeState_()},
updateFullerscreenEduButtonSubtleModeState_:function(){var S=_.Uz("yt-fullerscreen-edu-button-click-count")||0,p=_.Uz("yt-fullerscreen-edu-button-shown-count")||0,U=_.pA("external_fullscreen_button_shown_threshold"),Y=S>=_.pA("external_fullscreen_button_click_threshold")||p>=U;_.v7(this).getPlayerPromise().then(function(L){L.updateFullerscreenEduButtonSubtleModeState(Y)})},
resetFullerscreenEduButtonForNewPlayback_:function(){this.fullerscreenEduButtonShownThisPlayback_=this.fullerscreenEduButtonClickedThisPlayback_=!1},
computePlaylistData_:function(S,p){return p},
onYtPlaylistDataUpdated_:function(){this.externalPlaylistData_=_.tW().resolve(_.Fz).getPlaylistData()||{}},
scheduleFullHeightPanelPositionUpdate:function(){var S=this;this.is==="ytd-watch-grid"&&(this.panelExpanded||this.playlist)&&(this.fullHeightPanelPositionUpdateJobId&&_.PA.cancelJob(this.fullHeightPanelPositionUpdateJobId),this.fullHeightPanelPositionUpdateJobId=_.PA.addLowPriorityJob(function(){S.fullHeightPanelPositionUpdateJobId=0;var p=_.tB(S.hostElement).querySelector("#secondary"),U=_.tB(S.hostElement).querySelector("#fixed-secondary");p=p.getBoundingClientRect();var Y=p.width;S.swatcherooSqueezeback&&
(Y+=_.u3);if(S.swatcherooSqueezeback){var L=_.tB(S.hostElement).querySelector("#squeezeback-constraining-container");L.style.width=Y+"px";L.style.flex="0 0 "+Y+"px"}U.style.width=Y+"px";U.style.left=p.left+"px"}))},
schedulePanelMaxHeightUpdate_:function(){var S=this;this.is!=="ytd-watch-grid"&&(this.panelMaxHeightUpdateJob_&&_.PA.cancelJob(this.panelMaxHeightUpdateJob_),this.panelMaxHeightUpdateJob_=_.PA.addLowPriorityJob(function(){S.panelMaxHeightUpdateJob_=0;var p;!S.isTwoColumns_||S.theater||S.fullscreen?p=460:p=S.calculateNormalPlayerSize_().height;var U=p+"px";_.y("live_chat_taller_height")&&!S.theater&&(U="calc(100vh - var(--ytd-toolbar-height) -\n                        (var(--ytd-margin-6x) * 2))");
_.y("live_chat_medium_height")&&!S.theater&&(U="calc(100vh - var(--ytd-toolbar-height) - 144px)");_.y("live_chat_scaled_height")&&!S.theater&&(U="calc(100vh - var(--ytd-toolbar-height) - 238px)");S.safeUpdateStyles({"--ytd-watch-flexy-panel-max-height":p+"px","--ytd-watch-flexy-chat-max-height":U,"--ytd-watch-flexy-structured-description-max-height":p+"px","--ytd-watch-flexy-comments-panel-max-height":p+"px","--ytd-comments-engagement-panel-content-height":p+"px"})}))},
onYtShowEngagementPanelScrimAction_:function(S){this.engagementPanelScrimOnClickCommands_=this.get("showEngagementPanelScrimAction.onClickCommands",S)||null;this.showEngagementPanelScrim_=!0},
onYtHideEngagementPanelScrimAction_:function(){this.engagementPanelScrimOnClickCommands_=null;this.showEngagementPanelScrim_=!1},
onEngagementPanelScrimClick_:function(){this.engagementPanelScrimOnClickCommands_&&_.Lp(this.hostElement,this.engagementPanelScrimOnClickCommands_,this.hostElement)},
showEngagementPanelScrimChanged_:function(S){var p=_.tB(this.hostElement).querySelector("#engagement-panel-scrim");S?p.addEventListener("tap",_.d9(this,this.onEngagementPanelScrimClick_)):p.removeEventListener("tap",_.d9(this,this.onEngagementPanelScrimClick_))},
onGetCurrentVideoIdAction_:function(){if(this.active)return this.videoId},
onYtScrollToWatchElement_:function(S){if(this.hostElement.contains(S)&&!this.scrollToAnimation_.isAnimating()){var p=S.offsetTop-24;S=S.offsetTop+S.offsetHeight+24;var U=this.getPageScrollingElement(),Y=this.getScrollTop(),L=Y+U.clientHeight-56;if(p<Y+56)p-=56;else if(S>L)p=S-U.clientHeight;else return;this.scrollToAnimation_.start(this.getScrollTop(),Math.max(0,p),500)}},
onYtSignalActionScrollToComments:function(){var S=this.hostElement.querySelector("#comments");if(S&&!this.scrollToAnimation_.isAnimating()){S=S.offsetTop-56-24;if(_.y("kevlar_comment_teaser_scroll_to_midpoint")&&(S-=_.kE().height/3,S<this.getScrollTop()))return;this.scrollToAnimation_.start(this.getScrollTop(),Math.max(0,S),500)}},
onYtEngagementPanelVisibleChanged:function(S,p,U){if(this.active&&this.trackEngagementPanelVisibility&&!_.y$L.includes(U)){if(p==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"){if(this.swatcherooBinaryLayout||this.squeezeback)if(this.onSetPlaylistCollapsed(!0),_.pp(this.hostElement,"yt-set-live-chat-collapsed-state-action",[{setLiveChatCollapsedStateAction:{collapsed:!0}}]),_.y("kevlar_single_panel_fullscreen")){var Y=_.tW().resolve(_.y6);this.visiblePanelIdentifiers_.forEach(function(L){L!==U&&Y.hidePanel(L)})}this.visiblePanelIdentifiers_.add(U)}p!==
"ENGAGEMENT_PANEL_VISIBILITY_COLLAPSED"&&p!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"||this.visiblePanelIdentifiers_.delete(U);
this.engagementPanelExpanded=this.visiblePanelIdentifiers_.size>0}},
computeLegacyMetadataClass:function(S){return S?"":"watch-active-metadata"},
computeNewMetadataClass:function(S){return S?"watch-active-metadata":""},
computeFullBleedPlayer:function(S,p,U){return S||p||this.enableFullBleedSingleColumnDefaultPlayer&&!U},
computeDefaultLayout:function(S){return!S},
computeDefaultTwoColumnLayout:function(S,p){return!S&&p},
updatePanelsLocation:function(){if(_.y("web_watch_enable_fs_squeezeback_panels")){var S=_.tB(this.hostElement).querySelector("#below"),p=_.tB(this.hostElement).querySelector("#panels"),U=_.tB(this.hostElement).querySelector("#playlist"),Y=_.tB(this.hostElement).querySelector("#chat-container"),L=_.tB(this.hostElement).querySelector("#panels-full-bleed-container"),I=_.tB(this.hostElement).querySelector("#secondary-inner"),V=this.fullscreen||this.theater&&this.iMaxTheaterMode,W=this.theater&&!this.iMaxTheaterMode&&
this.liveChatPresentAndExpanded;this.fixedPanels=!1;V?(L.appendChild(p),L.appendChild(Y),L.appendChild(U)):this.isTwoColumns_?(W?(S=_.tB(this.hostElement).querySelector("#columns"),(Y==null?void 0:Y.parentElement)!==S&&S.append(Y),this.fixedPanels=!0):_.gp(I,Y),_.gp(I,p),_.gp(I,U)):(S.appendChild(p),S.appendChild(Y),S.appendChild(U))}},
swatcherooUpdatePanelsLocation:function(S,p,U,Y,L,I){if(this.is==="ytd-watch-grid"){p=S&&!p;this.swatcherooSplitScroll&&(p?(this.addSplitScrollMouseTrap("#secondary-inner"),this.addSplitScrollMouseTrap("#fixed-secondary")):(this.removeSplitScrollMouseTrap("#secondary-inner"),this.removeSplitScrollMouseTrap("#fixed-secondary")));U=_.tB(this.hostElement).querySelector("#panels");var V=_.tB(this.hostElement).querySelector("#playlist"),W=_.tB(this.hostElement).querySelector("#fixed-secondary"),O=_.tB(this.hostElement).querySelector("#fixed-below"),
D=_.tB(this.hostElement).querySelector("ytd-watch-metadata:not([swatcheroo-secondary-below-metadata])"),z=_.tB(this.hostElement).querySelector("#chat-container");I&&(S?W.appendChild(U):O.appendChild(U));L?S?W.appendChild(z):O.appendChild(z):_.jc(z,D);Y?S?W.appendChild(V):O.appendChild(V):_.jc(V,D);this.swatcherooSplitScroll&&(S=_.tB(this.hostElement).querySelector("#secondary"),Y=_.tB(this.hostElement).querySelector("#columns"),L=_.tB(this.hostElement).querySelector("#fixed-columns-secondary"),p?
L.appendChild(S):Y.appendChild(S))}},
computeMetadataSkinnyMode:function(S,p,U){return this.is!=="ytd-watch-grid"?!1:S?U:p},
computeWatchWhilePanelsActive:function(S,p){return S||p},
computeNoBorderOnChat:function(S){return _.y("web_watch_theater_chat_no_border")&&S},
computeLiveChatPresentAndExpanded:function(S,p){return S&&!p},
computePanelExpanded:function(S,p,U){return S||p||U},
computeSqueezeback:function(S,p,U,Y){if(_.y("web_watch_enable_fs_squeezeback_panels")){var L=this.iMaxTheaterMode&&this.theater;return(S||p||U)&&(Y||L)}},
computeSwatcherooSqueezeback:function(S,p,U){return this.is!=="ytd-watch-grid"||_.y("ww_squeezeback_killswitch")?!1:S&&p&&U},
swatcherooSqueezebackChanged:function(){this.is==="ytd-watch-grid"&&this.schedulePlayerSizeUpdate_()},
squeezebackChanged:function(){this.schedulePlayerSizeUpdate_()},
onChangeMarkersVisibility:function(S){_.v7(this).getPlayerPromise().then(function(p){var U;(U=p.changeMarkerVisibility)==null||U.call(p,_.b(S,_.oM).isVisible||!1,_.b(S,_.oM).entityKeys||[],_.b(S,_.oM).visibilityRestrictionMode||void 0)})},
onYtChatCollapsedChanged:function(S){this.liveChatCollapsed=S.detail;_.vJ().dispatch(_.J$X(S.detail))},
onSetPlaylistCollapsed:function(S){_.y("delhi_web_player_use_external_playlist_panel")&&(this.playlistPanelExpanded=this.playlist&&!S)},
provideRenderingData:function(S,p){switch(S){case "SINGLE_COLUMN_CONTENTS":this.singleColumnValue=p;break;case "PRIMARY_INFO":_.y("kevlar_watch_metadata_refresh_no_old_primary_data")||(this.info=p);this.videoPrimaryInfoRendererValue=p==null?void 0:p.videoPrimaryInfoRenderer;break;case "SECONDARY_INFO":_.y("kevlar_watch_metadata_refresh_no_old_secondary_data")||(this.meta=p);this.videoSecondaryInfoRendererValue=p==null?void 0:p.videoSecondaryInfoRenderer;break;case "COMMENTS_ENTRY_POINT_HEADER":this.commentsEntryPointHeaderRendererValue=
p;break;case "CLARIFICATION":this.clarifyBoxValue=p;break;case "LIVE_CHAT":this.conversationBar=p;break;case "INFO_PANEL_BELOW_METADATA":this.infoPanelBelowMetadata=p;break;case "PLAYLIST":this.externalPlaylistData_=p!=null?p:{};break;case "MERCH_SHELF":this.merchShelfValue=p==null?void 0:p.merchandiseShelfRenderer;break;case "MERCH_SHELF_IN_SD":this.merchShelfInSd=p;break;case "TICKET_SHELF":this.ticket=p;break;case "OFFER_MODULE":this.offerModule=p;break;case "LIMITED_STATE":this.limitedStateValue=
p;break;case "DONATION_SHELF":this.donation=p;break;case "ALERTS":this.alertsValue=p;break;case "COMMENTS":this.comments=p;break;case "WATCH_NEXT_SECONDARY_RESULTS":this.watchNextSecondaryResults=p;break;case "ENGAGEMENT_PANELS":this.engagementPanels=p;break;case "INLINE_ENGAGEMENT_PANELS":this.inlineEngagementPanels=p;break;case "RICH_GRID_RENDERER":this.richGridRendererData=p;break;case "EXPANDABLE_METADATA":this.expandableMetadata=p;break;case "VIDEO_METADATA_CAROUSEL":this.videoMetadataCarousel=
p}},
toggleCinematicsActive:function(S){this.cinematicsActive=S},
isMiniplayerActive:function(){return _.tW().resolve(_.eC).isMiniplayerActive()}}];
}catch(e){_._DumpException(e)}
try{
var yWA;_.JWY=function(S){return S.shorts.isShortsActive};
_.Kcn=function(S){return S.findIndex(function(p){return yWA.indexOf(p.tagName)>-1})>-1};
_.bUX=function(S){return _.S4({type:"SET_IS_FULLSCREEN",payload:{isFullscreen:S}})};
_.jdJ=function(){var S=_.tW().resolve(_.Ts);_.lGX(["requestFullscreen","webkitRequestFullscreen","mozRequestFullScreen","msRequestFullscreen"],document.body)!=null&&(S.isFullscreenEnabled()?_.qU(document.documentElement):_.dCu(document.documentElement))};
yWA=["INPUT".toString(),"SELECT".toString(),"TEXTAREA".toString(),"EMBED".toString(),"YTD-COMMENTBOX","YT-LIVE-CHAT-RENDERER","YTD-PDG-BUY-FLOW-RENDERER"];_.AC=new Map;_.AC.set(32,59972);_.AC.set(27,50765);_.AC.set(70,60102);_.AC.set(76,60221);_.AC.set(77,60222);_.AC.set(74,60223);_.AC.set(84,60224);_.AC.set(38,61941);_.AC.set(40,61942);_.AC.set(73,62521);_.AC.set(67,62522);_.AC.set(80,63390);_.AC.set(78,63397);_.AC.set(75,59972);_.AC.set(188,63385);_.AC.set(190,63384);_.AC.set(36,63387);
_.AC.set(35,63386);_.AC.set(37,63388);_.AC.set(39,63389);_.AC.set(79,63423);_.AC.set(87,63424);_.AC.set(107,63426);_.AC.set(109,63425);_.AC.set(65,63428);_.AC.set(83,63430);_.AC.set(68,63429);_.AC.set(221,63431);_.AC.set(219,63432);_.AC.set(97,63439);_.AC.set(98,63440);_.AC.set(99,63441);_.AC.set(100,63442);_.AC.set(101,63443);_.AC.set(102,63444);_.AC.set(103,63445);_.AC.set(104,63446);_.AC.set(105,63447);_.tC=new Map;_.tC.set(80,63390);_.tC.set(78,63397);_.tC.set(188,63400);_.tC.set(190,63401);
_.tC.set(191,60765);_.tC.set(13,247917);_.cN=new Map;_.Sr=new Map;
}catch(e){_._DumpException(e)}
try{
var jKs,hfT,RfT,F1t;_.JAt=function(S){return S.ui.guideIsVisibleButNotPersistent};
_.yAs=function(S){return S.ui.tabGesturesIsActive};
_.K1X=function(){var S=_.Ug("service_worker_scope");try{return navigator.serviceWorker.getRegistration(S)}catch(p){return Promise.reject(p)}};
_.bhs=function(S){return!(!S||!S.pushManager)};
jKs=function(){return _.K1X().then(_.bhs).catch(function(){return!1})};
_.rAq=function(){return navigator.serviceWorker&&navigator.serviceWorker.getRegistration&&window.Notification?jKs():Promise.resolve(!1)};
_.GlE=function(){return window.MediaSource&&window.MediaSource.isTypeSupported&&window.MediaSource.isTypeSupported('video/mp4; codecs="av01.0.05M.08"')};
hfT=function(){var S,p,U;return _.T(function(Y){switch(Y.nextAddress){case 1:return _.k(Y,_.na.getInstance(),2);case 2:S=Y.yieldResult;if(!S){p=void 0;Y.jumpTo(3);break}return _.k(Y,S.get("lmqf"),4);case 4:p=Y.yieldResult;case 3:switch((U=p)||(U="SD"),U){case "HD":return Y.return("SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_HD");case "HD_1080":return Y.return("SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_HD_1080");case "SD":return Y.return("SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_SD");case "LD":return Y.return("SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_LD");
default:return Y.return("SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_UNKNOWN")}}})};
RfT=function(S){var p,U,Y;return _.T(function(L){if(L.nextAddress==1){if(window.localStorage&&window.localStorage["yt-player-av1-pref"]&&!_.y("disable_av1_setting")){var I=window.localStorage["yt-player-av1-pref"];I=I==="480"?"SETTINGS_OPTIONS_ID_TYPE_AV1_SD":I==="8192"?"SETTINGS_OPTIONS_ID_TYPE_AV1_ALWAYS":"SETTINGS_OPTIONS_ID_TYPE_UNKNOWN"}else I="SETTINGS_OPTIONS_ID_TYPE_AV1_AUTO";if(p=S===I)return L.jumpTo(2);Y=U=S;return _.k(L,hfT(),3)}L.nextAddress!=2&&(p=Y===L.yieldResult);return L.return(p)})};var XEq;var Pxo=_.Qm.IronButtonState,ZhE=(0,_.HC)(HTMLElement);
_.jp({_template:function(){if(XEq!==void 0)return XEq;var S=document.createElement("template");_.h(S,'\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');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);var p=S.content,U=p.insertBefore;F1t===void 0&&(F1t=document.createElement("template"));var Y=F1t;U.call(p,Y.content.cloneNode(!0),S.content.firstChild);return XEq=S},
is:"tp-yt-paper-dropdown-menu",hostAttributes:{"style-target":"host"},behaviors:[Pxo,_.DE,_.nL,_.KL],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(S){var p=(0,_.Dc)(this);p.attachShadow({mode:"open",delegatesFocus:!0,
shadyUpgradeFragment:S});p.shadowRoot.appendChild(S);return ZhE.prototype._attachDom.call(this,S)},
focus:function(){this.$.input._focusableElement.focus()},
attached:function(){var S=this.contentElement;S&&S.selectedItem&&this._setSelectedItem(S.selectedItem)},
get contentElement(){for(var S=_.K9(this.$.content).getDistributedNodes(),p=0,U=S.length;p<U;p++)if(S[p].nodeType===Node.ELEMENT_NODE)return S[p]},open:function(){this.$.menuButton.open()},
close:function(){this.$.menuButton.close()},
_onIronSelect:function(S){this._setSelectedItem(S.detail.item)},
_onIronDeselect:function(){this._setSelectedItem(null)},
_onTap:function(S){_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(S)===this&&this.open()},
_selectedItemChanged:function(S){var p="";S?p=S.label||S.getAttribute("label")||S.textContent.trim():p="";this.value=p;this._setSelectedItemLabel(p)},
_computeMenuVerticalOffset:function(S,p){return p?p:S?-4:8},
_getValidity:function(){return this.disabled||!this.required||this.required&&!!this.value},
_openedChanged:function(){var S=this.opened?"true":"false",p=this.contentElement;p&&p.setAttribute("aria-expanded",S)}});_.x4=new _.v("navigateAction");var sKd=new _.v("formRenderer");var Ea=function(){var S=_.HT.apply(this,arguments)||this;S.showInput=!1;return S};
_.r(Ea,_.HT);_.M=Ea.prototype;_.M.detached=function(){this.showInput&&window.removeEventListener("click",_.d9(this,this.closeOnOutsideClick_))};
_.M.stopPropagation_=function(S){this.showInput&&S.stopPropagation()};
_.M.closeOnOutsideClick_=function(S){this.closeOnOutsideClickCondition(S)&&(this.showInput=!1,window.removeEventListener("click",_.d9(this,this.closeOnOutsideClick_)),this.closeOnOutsideClickHandler())};
_.M.closeOnOutsideClickCondition=function(){return!0};
_.M.closeOnOutsideClickHandler=function(){};
_.M.openOnClick_=function(){this.showInput=!0;window.addEventListener("click",_.d9(this,this.closeOnOutsideClick_));this.openOnClickHandler()};
_.M.openOnClickHandler=function(){};
_.M.showInputChanged=function(){};
_.M.setShowInput=function(S){this.showInput=S};
Ea.prototype.setShowInput=Ea.prototype.setShowInput;Ea.prototype.showInputChanged=Ea.prototype.showInputChanged;Ea.prototype.openOnClickHandler=Ea.prototype.openOnClickHandler;Ea.prototype.openOnClick_=Ea.prototype.openOnClick_;Ea.prototype.closeOnOutsideClickHandler=Ea.prototype.closeOnOutsideClickHandler;Ea.prototype.closeOnOutsideClickCondition=Ea.prototype.closeOnOutsideClickCondition;Ea.prototype.closeOnOutsideClick_=Ea.prototype.closeOnOutsideClick_;Ea.prototype.stopPropagation_=Ea.prototype.stopPropagation_;
_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],Ea.prototype,"showInput",void 0);_.x([_.Vd("click"),_.Vd("keydown"),_.E("design:type",Function),_.E("design:paramtypes",[Event]),_.E("design:returntype")],Ea.prototype,"stopPropagation_",null);_.x([_.T4("showInput"),_.E("design:type",Function),_.E("design:paramtypes",[Boolean]),_.E("design:returntype")],Ea.prototype,"showInputChanged",null);Ea=_.x([_.Dl()],Ea);_.efd=[Ea.prototype];var gqP;var uqE;var mb=function(){return _.w.apply(this,arguments)||this};
_.r(mb,_.w);_.M=mb.prototype;_.M.computePreselectedOption=function(S,p){return p===this.itemSelected_?S:void 0};
_.M.dataChanged_=function(){var S=this;this.preselectedSubreason=this.itemSelected_=-1;var p;(p=this.data)!=null&&p.key&&_.oH(this,function(){var U,Y=Number((U=S.data)==null?void 0:U.key);!Number.isNaN(Y)&&(S.itemSelected_=Y,U=(U=(S.data.items||[])[Y])&&U.optionSelectableItemRenderer&&U.optionSelectableItemRenderer.preselectedIndex)&&(S.preselectedSubreason=U)})};
_.M.isSubReasonHidden_=function(S,p){return S!=p};
_.M.onTopItemSelected_=function(S,p){for(var U=_.tB(this.hostElement).querySelectorAll("tp-yt-paper-listbox"),Y=0,L=U.length;Y<L;Y++)U[Y].select(0);_.St(this.hostElement,"yt-report-form-update",[p.item.value]);S.stopPropagation()};
_.M.onItemSelected_=function(S,p){_.St(this.hostElement,"yt-report-form-update",[p.item.value]);S.stopPropagation()};
_.M.getItem_=function(S){return S.serviceItem?S.serviceItem:S.navigationItem?S.navigationItem:S.optionSelectableItemRenderer?S.optionSelectableItemRenderer:null};
_.M.computeText_=function(S){return(S=this.getItem_(S))?this.ytRendererBehavior.getSimpleString(S.text):null};
_.M.validate=function(){return this.itemSelected_!==-1};
_.M.computeAriaLabel_=function(S){var p=_.mA(S.text);(S=S.accessibility&&S.accessibility.accessibilityData&&S.accessibility.accessibilityData.label)&&(p+=". "+S);return p};
_.M.computeItemSelected_=function(S){return S};
_.M.preventSelection_=function(S){S.stopPropagation();this.tooltipTapped=!0};
_.M.onPaperRippleTransitionEnd_=function(){this.tooltipTapped=!1};
_.M.updateItemSelectedFromBinding=function(S){this.itemSelected_=S.detail.value};
_.M.save=function(){var S;this.validate()&&(S=this.data)!=null&&S.items&&(S=this.data.items[this.itemSelected_],S!=null&&S.optionSelectableItemRenderer&&(this.ytComponentBehavior.resolveCommand(S.optionSelectableItemRenderer.submitEndpoint)||_.Yd(this.hostElement,[S.optionSelectableItemRenderer.submitEndpoint])))};
mb.prototype.onPaperRippleTransitionEnd_=mb.prototype.onPaperRippleTransitionEnd_;mb.prototype.dataChanged_=mb.prototype.dataChanged_;_.x([_.F(_.eL.YtComponentBehavior),_.E("design:type",Object)],mb.prototype,"ytComponentBehavior",void 0);_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],mb.prototype,"ytRendererBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],mb.prototype,"data",void 0);_.x([_.g({value:-1}),_.E("design:type",Number)],mb.prototype,"itemSelected_",void 0);
_.x([_.g({computed:"computeItemSelected_(itemSelected_)"}),_.E("design:type",Number)],mb.prototype,"value",void 0);_.x([_.g({value:!1}),_.E("design:type",Boolean)],mb.prototype,"restoreFocusOnClose",void 0);_.x([_.g({reflectToAttribute:!0,value:!1}),_.E("design:type",Boolean)],mb.prototype,"tooltipTapped",void 0);_.x([_.g({value:-1}),_.E("design:type",Number)],mb.prototype,"preselectedSubreason",void 0);
_.x([_.T4("data"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],mb.prototype,"dataChanged_",null);_.x([_.Vd("transitionend"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],mb.prototype,"onPaperRippleTransitionEnd_",null);mb=_.x([_.FB({is:"yt-options-renderer",disableElementRegistration:!0})],mb);
_.C(mb,"yt-options-renderer",function(){if(uqE===void 0){var S=document.createElement("template");_.h(S,'\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');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);var p=S.content,U=p.insertBefore;gqP===void 0&&(gqP=document.createElement("template"));var Y=gqP;U.call(p,Y.content.cloneNode(!0),S.content.firstChild);uqE=S}S=uqE;return S},{mode:2});var wEA;var lOA;var aOs;var fO5;var CxA;var xJq;var oL=function(){return _.w.apply(this,arguments)||this};
_.r(oL,_.w);oL.prototype.onDataChanged=function(){if(this.thumbnail)this.thumbnail.onShow()};
oL.prototype.onFocus=function(){getComputedStyle(this.hostElement).getPropertyValue("pointer-events")==="none"?this.hostElement.setAttribute("aria-disabled","true"):this.hostElement.removeAttribute("aria-disabled")};
oL.prototype.onTap=function(S){if(this.hostElement.classList.contains("selected")||_.Uh(this.hostElement,"yt-share-panel-can-select-contact-action"))S&&S.detail&&(S.detail.x||S.detail.y)&&_.tB(this.hostElement).querySelector("#target").blur(),(S=this.hostElement.classList.toggle("selected"))?this.hostElement.setAttribute("aria-checked","true"):this.hostElement.removeAttribute("aria-checked"),S={name:this.componentTitle,id:this.data.contactId,isGroup:!1,isSuggested:!1,serialization:S?this.data.serializedContactInvitee:
null,undoFn:this.onTap.bind(this)},_.St(this.hostElement,"yt-share-panel-select-contact-action",[S])};
_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],oL.prototype,"ytRendererBehavior",void 0);_.x([_.g({observer:"onDataChanged"}),_.E("design:type",Object)],oL.prototype,"data",void 0);_.x([_.g({reflectToAttribute:!0,computed:"getSimpleString(data.name)"}),_.E("design:type",String)],oL.prototype,"componentTitle",void 0);_.x([_.O2("#thumbnail"),_.E("design:type",Object)],oL.prototype,"thumbnail",void 0);oL=_.x([_.FB({is:"yt-enrolled-contact-renderer",disableElementRegistration:!0})],oL);
_.C(oL,"yt-enrolled-contact-renderer",function(){if(xJq===void 0){var S=document.createElement("template");_.h(S,'\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');
S.content.insertBefore(_.t().content.cloneNode(!0),S.content.firstChild);var p=S.content,U=p.insertBefore;CxA===void 0&&(CxA=document.createElement("template"));var Y=CxA;U.call(p,Y.content.cloneNode(!0),S.content.firstChild);xJq=S}S=xJq;return S},{mode:2});var Eqn;var mJq;var vp=function(){return _.w.apply(this,arguments)||this};
_.r(vp,_.w);vp.prototype.onDataChanged=function(){if(this.thumbnail)this.thumbnail.polymerController.onShow_()};
vp.prototype.onFocus=function(){getComputedStyle(this.hostElement).getPropertyValue("pointer-events")==="none"?this.hostElement.setAttribute("aria-disabled","true"):this.hostElement.removeAttribute("aria-disabled")};
vp.prototype.onTap=function(S){if(this.hostElement.classList.contains("selected")||_.Uh(this.hostElement,"yt-share-panel-can-select-contact-action"))S&&S.detail&&(S.detail.x||S.detail.y)&&_.tB(this.hostElement).querySelector("#target").blur(),(S=this.hostElement.classList.toggle("selected"))?this.hostElement.setAttribute("aria-checked","true"):this.hostElement.removeAttribute("aria-checked"),S={name:this.componentTitle,id:this.data.contactId,isGroup:!1,isSuggested:!0,serialization:S?this.data.serializedSuggestedContact:
null,undoFn:this.onTap.bind(this)},_.St(this.hostElement,"yt-share-panel-select-contact-action",[S])};
_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],vp.prototype,"ytRendererBehavior",void 0);_.x([_.g({observer:"onDataChanged"}),_.E("design:type",Object)],vp.prototype,"data",void 0);_.x([_.g({reflectToAttribute:!0,computed:"getSimpleString(data.name)"}),_.E("design:type",String)],vp.prototype,"componentTitle",void 0);_.x([_.O2("#thumbnail"),_.E("design:type",Object)],vp.prototype,"thumbnail",void 0);vp=_.x([_.FB({is:"yt-suggested-contact-renderer",disableElementRegistration:!0})],vp);
_.C(vp,"yt-suggested-contact-renderer",function(){if(mJq===void 0){var S=document.createElement("template");_.h(S,'\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');
S.content.insertBefore(_.t().content.cloneNode(!0),S.content.firstChild);var p=S.content,U=p.insertBefore;Eqn===void 0&&(Eqn=document.createElement("template"));var Y=Eqn;U.call(p,Y.content.cloneNode(!0),S.content.firstChild);mJq=S}S=mJq;return S},{mode:2});var $4=function(){var S=_.w.apply(this,arguments)||this;S.actionMap={"yt-share-panel-reset-action":"onReset"};return S};
_.r($4,_.w);$4.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"}}}}}};
$4.prototype.onDataChanged=function(){this.data&&this.data.selectMessageRenderer&&this.data.selectMessageRenderer.contactSelectMessageRenderer&&_.St(this.hostElement,"yt-share-panel-set-select-message-renderer-action",[this.data.selectMessageRenderer.contactSelectMessageRenderer])};
$4.prototype.onReset=function(){for(var S=_.tB(this.hostElement).querySelector("#contents").getElementsByClassName("selected"),p=S.length-1;p>=0;p--)S[p].classList.toggle("selected")};
_.x([_.F(_.Aj.YtActionHandlerBehavior),_.E("design:type",Object)],$4.prototype,"ytActionHandlerBehavior",void 0);_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],$4.prototype,"ytRendererBehavior",void 0);_.x([_.F(_.qH.YtRendererstamperBehavior),_.E("design:type",Object)],$4.prototype,"ytRendererstamperBehavior",void 0);_.x([_.g({observer:"onDataChanged"}),_.E("design:type",Object)],$4.prototype,"data",void 0);
$4=_.x([_.FB({is:"yt-contact-section-renderer",disableElementRegistration:!0})],$4);
_.C($4,"yt-contact-section-renderer",function(){if(fO5===void 0){var S=document.createElement("template");_.h(S,'\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');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);var p=S.content,U=p.insertBefore;aOs===void 0&&(aOs=document.createElement("template"));var Y=aOs;U.call(p,Y.content.cloneNode(!0),S.content.firstChild);fO5=S}S=fO5;return S},{mode:2});var im=function(){var S=_.w.apply(this,arguments)||this;S.actionMap={"yt-refresh-form-command":"onYtRefreshFormCommand"};return S};
_.r(im,_.w);_.M=im.prototype;_.M.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"}}}};
_.M.onYtRefreshFormCommand=function(S){var p;(S=_.b((p=_.b(S,_.MRc))==null?void 0:p.formRenderer,sKd))&&this.set("data",S)};
_.M.reset=function(){var S=_.tB(this.hostElement).querySelector("#fields").children;S=_.d(S);for(var p=S.next();!p.done;p=S.next())p=p.value,p.reset&&p.reset()};
_.M.getForm=function(){var S={},p=_.tB(this.hostElement).querySelector("#fields").children;p=_.d(p);for(var U=p.next();!U.done;U=p.next()){U=U.value;if(!U.validate())return null;S[U.data.key]=U.value}return S};
_.M.submitFormFields=function(){if(this.fields)for(var S=_.d(this.fields),p=S.next();!p.done;p=S.next())p=p.value,p.nodeName==="YT-TEXT-INPUT-FORM-FIELD-RENDERER"?p.save():p.nodeName==="YT-OPTIONS-RENDERER"&&p.save()};
_.x([_.F(_.Aj.YtActionHandlerBehavior),_.E("design:type",Object)],im.prototype,"ytActionHandlerBehavior",void 0);_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],im.prototype,"ytRendererBehavior",void 0);_.x([_.F(_.qH.YtRendererstamperBehavior),_.E("design:type",Object)],im.prototype,"ytRendererstamperBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],im.prototype,"data",void 0);_.x([_.kk("#fields > *"),_.E("design:type",Array)],im.prototype,"fields",void 0);
im=_.x([_.FB({is:"yt-form-renderer",disableElementRegistration:!0})],im);
_.C(im,"yt-form-renderer",function(){if(lOA===void 0){var S=document.createElement("template");_.h(S,'\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');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);var p=S.content,U=p.insertBefore;wEA===void 0&&(wEA=document.createElement("template"));var Y=wEA;U.call(p,Y.content.cloneNode(!0),S.content.firstChild);lOA=S}S=lOA;return S},{mode:2});var oqs;var NE=function(){var S=_.w.apply(this,arguments)||this;S.actionMap={"yt-settings-update-checkbox-command":"handleUpdateCheckboxCommand"};return S};
_.r(NE,_.w);NE.prototype.onCheckboxChange=function(S){this.data&&(S=(this.checked=_.mF(S).checked)?this.data.enableServiceEndpoint:this.data.disableServiceEndpoint)&&_.tW().resolve(_.cQ).resolveCommand(S,{form:{element:this.hostElement}})};
NE.prototype.handleUpdateCheckboxCommand=function(S){(S=_.b(S,_.bTl))&&this.data&&this.data.id===S.id&&(this.set("data.disabled",S.disabled),this.set("data.title",S.title))};
_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],NE.prototype,"ytRendererBehavior",void 0);_.x([_.F(_.Aj.YtActionHandlerBehavior),_.E("design:type",Object)],NE.prototype,"ytActionHandlerBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],NE.prototype,"data",void 0);_.x([_.g(),_.E("design:type",Boolean)],NE.prototype,"checked",void 0);NE=_.x([_.f({is:"ytd-settings-checkbox-renderer",disableElementRegistration:!0})],NE);
_.C(NE,"ytd-settings-checkbox-renderer",function(){if(oqs!==void 0)return oqs;var S=document.createElement("template");_.h(S,'\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');
S.content.insertBefore(_.t().content.cloneNode(!0),S.content.firstChild);return oqs=S},{mode:1});var vqE;var Bp=function(){var S=_.w.apply(this,arguments)||this;S.actionMap={"yt-select-settings-radio-option":"onSelectOption"};return S};
_.r(Bp,_.w);Bp.prototype.dataChanged=function(){var S=this,p;return _.T(function(U){if(U.nextAddress==1)return S.radio.removeAttribute("checked"),!S.data||!S.data.id||S.data.id!=="SETTINGS_OPTIONS_ID_TYPE_AV1_SD"||_.GlE()&&window.SourceBuffer&&window.SourceBuffer.prototype.changeType?(p=S.data&&S.data.id)?_.k(U,RfT(S.data.id),4):U.jumpTo(3):(S.set("data.hidden",!0),U.jumpTo(0));U.nextAddress!=3&&(p=U.yieldResult);p&&_.St(S.hostElement,"yt-select-settings-radio-option",[S.data.id]);_.OV(U)})};
Bp.prototype.onButtonChanged=function(S){_.mF(S).checked?this.data&&this.data.id&&(this.data.serviceEndpoint&&_.tW().resolve(_.cQ).resolveCommand(this.data.serviceEndpoint,{form:{element:this.hostElement}}),_.St(this.hostElement,"yt-select-settings-radio-option",[this.data.id])):this.radio.setAttribute("checked","")};
Bp.prototype.onSelectOption=function(S){this.data&&this.data.id&&(this.data.id===S?this.radio.setAttribute("checked",""):this.radio.removeAttribute("checked"))};
Bp.prototype.dataChanged=Bp.prototype.dataChanged;_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],Bp.prototype,"ytRendererBehavior",void 0);_.x([_.F(_.Aj.YtActionHandlerBehavior),_.E("design:type",Object)],Bp.prototype,"ytActionHandlerBehavior",void 0);_.x([_.O2("#radio"),_.E("design:type",Object)],Bp.prototype,"radio",void 0);_.x([_.g(),_.E("design:type",Object)],Bp.prototype,"data",void 0);
_.x([_.z4("data"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype",Promise)],Bp.prototype,"dataChanged",null);Bp=_.x([_.f({is:"ytd-settings-radio-option-renderer",disableElementRegistration:!0})],Bp);
_.C(Bp,"ytd-settings-radio-option-renderer",function(){if(vqE!==void 0)return vqE;var S=document.createElement("template");_.h(S,'\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');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);return vqE=S},{mode:1});var $Jd;var qE=function(){var S=_.w.apply(this,arguments)||this;S.actionMap={"yt-settings-update-text-command":"handleUpdateTextCommand","yt-settings-update-connected-app-renderer-command":"handleUpdateConnectedAppRendererCommand"};return S};
_.r(qE,_.w);
qE.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"}}}};
qE.prototype.handleUpdateTextCommand=function(S){(S=_.b(S,_.jad))&&this.data&&this.data.id===S.id&&this.set("data",S)};
qE.prototype.handleUpdateConnectedAppRendererCommand=function(S){if(_.b(S,_.hyq)&&this.data){var p,U;if(S=(p=_.b(S,_.hyq))==null?void 0:(U=p.newConnectedAppRenderer)==null?void 0:U.connectedAppRenderer)this.data=S}};
qE.prototype.computeConnectedAppStyle=function(S){return S.style?S.style.toLowerCase().replace(/_/g,"-"):""};
_.x([_.F(_.qH.YtRendererstamperBehavior),_.E("design:type",Object)],qE.prototype,"ytRendererstamperBehavior",void 0);_.x([_.F(_.Aj.YtActionHandlerBehavior),_.E("design:type",Object)],qE.prototype,"ytActionHandlerBehavior",void 0);_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],qE.prototype,"ytRendererBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],qE.prototype,"data",void 0);
_.x([_.g({reflectToAttribute:!0,computed:"computeConnectedAppStyle(data)"}),_.E("design:type",String)],qE.prototype,"connectedAppStyle",void 0);qE=_.x([_.f({is:"ytd-connected-app-renderer",disableElementRegistration:!0})],qE);
_.C(qE,"ytd-connected-app-renderer",function(){if($Jd!==void 0)return $Jd;var S=document.createElement("template");_.h(S,'\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');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);return $Jd=S},{mode:1});
}catch(e){_._DumpException(e)}
try{
_.e$("iuT5Oc");

_.g5();
}catch(e){_._DumpException(e)}
try{
_.e$("L3n37");
var owL=function(S){return S.watch.isLearningJourneyActive},vwA=_.bZ(115994),$6n=_.bZ(115993),NjE=function(S,p,U){var Y=this;
var L=U.dragDownAction;this.layer=0;this.JSC$20492_watchConfig={startPosition:0,draggingClass:"gesture-dragging",triggers:{down:{fade:!0,endOpacity:.6,endPosition:100,threshold:100,triggerAction:function(){return Y.dragDownAction()}}}};
this.JSC$20492_watchFullScreenConfig={startPosition:0,draggingClass:"gesture-dragging",triggers:{down:{disableFinish:!0,endOpacity:.6,endPosition:100,threshold:100,triggerAction:function(){return Y.dragDownAction()}}}};
this.fullscreen=!1;var I=_.HX();_.U8(I,vwA,this.layer);_.U8(I,$6n,this.layer);this.dragDownAction=function(){L();_.gY(I,{visualElement:Y.fullscreen?vwA:$6n})};
this.gesture=new _.Wo(S,p,this.JSC$20492_watchConfig,"pandown");this.attach()};
NjE.prototype.attach=function(){this.gesture.attach()};
NjE.prototype.detach=function(){this.gesture.detach()};
NjE.prototype.update=function(S){this.fullscreen=S;this.gesture.config=S?this.JSC$20492_watchFullScreenConfig:this.JSC$20492_watchConfig};var BjX=function(S){_.qS.call(this);var p=this;this.rootElement=S;this.activeModules=[];this.actionHandlers=new Map;this.TEST_ONLY={getActiveModules:function(){return p.activeModules}};
this.initPersistentModules();this.addOnDisposeCallback(this.subscribeToActiveChanged(function(U){p.initOrDisposeActiveModules(U)}));
this.onAttached()};
_.r(BjX,_.qS);_.M=BjX.prototype;_.M.getRoot=function(){return this.rootElement};
_.M.getElement=function(S){return this.rootElement.getElement(S)};
_.M.setPlayerResponse=function(S){this.playerResponse=S;this.publish("PLAYER_RESPONSE_UPDATED",S)};
_.M.getPlayerResponse=function(){return this.playerResponse};
_.M.setWatchNextResponse=function(S){this.watchNextResponse===S?this.publish("WATCH_NEXT_RESPONSE_RELOADED"):(this.watchNextResponse=S,this.publish("WATCH_NEXT_RESPONSE_UPDATED",S))};
_.M.getWatchNextResponse=function(){return this.watchNextResponse};
_.M.registerActionHandler=function(S,p){var U=this;if(_.y("web_watch_controller_reg_multiple_handlers_killswitch")){var Y={};_.E9(_.xv.getInstance(),(Y[S]=p,Y),this.getRoot())}else this.actionHandlers.has(S)||(this.actionHandlers.set(S,[]),Y={},_.E9(_.xv.getInstance(),(Y[S]=function(){var L=_.jO.apply(0,arguments);return(U.actionHandlers.get(S)||[]).map(function(I){return I.apply(null,_.jo(L))})},Y),this.getRoot())),this.actionHandlers.get(S).push(p)};
_.M.unregisterActionHandler=function(S){if(_.y("web_watch_controller_reg_multiple_handlers_killswitch")){var p={};_.me(_.xv.getInstance(),(p[S]=!0,p),this.getRoot())}else(p=this.actionHandlers.get(S))?(p.pop(),p.length===0&&(p={},_.me(_.xv.getInstance(),(p[S]=!0,p),this.getRoot()),this.actionHandlers.delete(S))):_.eP(new _.y7("Attempted to unregister an action handler which is not registered.",S))};
_.M.addPageDisposeJob=function(S){this.rootElement.pageDisposeJobs||(this.rootElement.pageDisposeJobs=[]);_.$R(this.rootElement.pageDisposeJobs,S)};
_.M.removePageDisposeJob=function(S){this.rootElement.pageDisposeJobs&&_.NG(this.rootElement.pageDisposeJobs,S)};
_.M.dispatchEvent=function(S,p){_.cv(this.rootElement,S,p)};
_.M.provideRenderingData=function(S,p){this.rootElement.provideRenderingData(S,p)};
_.M.scrollWatchTo=function(S,p){var U;(U=this.watchScrollManager)==null||U.scrollWatchTo(S,p)};
_.M.focusOnPlayer=function(){var S=this.getElement("PLAYER");_.oH(S,function(){if(S&&S.firstElementChild){var p=S.querySelector(".html5-video-player");p&&(_.ic(_.tW().resolve(_.rY)),p.focus())}else _.eP(Error("jm"))})};
_.M.updateCinematicFullscreenConfig=function(){var S=!!this.rootElement.theater,p=!!this.rootElement.fullscreen,U;(U=this.watchCinematicManager)==null||_.ocX(U,p,S)};
_.M.subscribeToActiveChanged=function(S,p){p=p===void 0?!0:p;var U=_.Wt(_.vJ(),owL,function(Y){S(Y)});
p&&S(owL(_.vJ().getState()));return U};
_.M.isActive=function(){return owL(_.vJ().getState())};
_.M.onAttached=function(){var S=_.y("external_fullscreen");_.y("use_unified_flag_accessor")&&(S=_.tW().resolve(_.GGJ).retriever.getFlag(_.sOe));(S||_.ub("START_IN_FULL_WINDOW_MODE"))&&this.dispatchEvent("yt-set-fullerscreen-styles")};
_.M.initPersistentModules=function(){if(_.y("kevlar_watch_flexy_theater_manager")){var S=new _.JXo(this);_.Hm(this,S)}S=new _.Y5P(this);_.Hm(this,S);S=new _.XV(this);_.Hm(this,S);S=new _.wu(this);_.Hm(this,S);S=new _.s1i(this);_.Hm(this,S);S=new _.Zn(this);_.Hm(this,S);_.y("kevlar_watch_flexy_playlist_manager")&&(S=new _.uL5(this),_.Hm(this,S))};
_.M.initOrDisposeActiveModules=function(S){S?(this.watchScrollManager=new _.aM(this),this.activeModules.push(this.watchScrollManager),this.activeModules.push(new _.nbJ(this)),this.activeModules.push(new _.j_X(this)),this.activeModules.push(new _.xlA(this)),this.activeModules.push(new _.lk(this)),_.y("kevlar_watch_flexy_error_screen_data_provider")&&this.activeModules.push(new _.RuE(this)),this.activeModules.push(new _.rvn(this)),_.y("kevlar_watch_flexy_ypc_manager")&&this.activeModules.push(new _.mlY(this)),
_.y("kevlar_watch_flexy_ads_manager")&&this.activeModules.push(new _.u0E(this)),_.y("kevlar_watch_cinematics")&&(this.watchCinematicManager=new _.CPt(this),this.activeModules.push(this.watchCinematicManager),this.updateCinematicFullscreenConfig()),_.y("kevlar_watch_player_menu_highlight_manager_killswitch")||this.activeModules.push(new _.FX5(this)),_.y("kevlar_watch_flexy_gestures_manager")&&this.activeModules.push(new _.poY(this)),S=_.y("swatcheroo_directly_provide_comments")&&this.getRoot().is===
"ytd-watch-grid",_.y("kevlar_watch_flexy_comments_manager")&&!S&&this.activeModules.push(new _.qdT(this)),_.y("web_watch_get_updated_metadata_manager")&&this.activeModules.push(new _.Pa(this)),this.activeModules.push(new _.RNq(this)),this.activeModules.push(new _.yvo(this)),_.y("web_enable_timely_actions")&&this.activeModules.push(new _.Zon(this)),_.y("web_enable_player_creator_endscreen_manager")&&this.activeModules.push(new _.cpE(this)),_.y("web_watch_enable_multiview_manager")&&this.activeModules.push(new _.oJX(this)),
_.y("web_fullscreen_video_action_bar")&&this.activeModules.push(new _.ZML(this)),_.y("web_player_rtr_ctrls")&&this.activeModules.push(new _.pMJ(this))):(_.ci(this.activeModules),this.activeModules.length=0,this.watchScrollManager=void 0)};
_.M.disposeInternal=function(){_.qS.prototype.disposeInternal.call(this);this.initOrDisposeActiveModules(!1)};
_.$u.Object.defineProperties(BjX.prototype,{playerApi:{configurable:!0,enumerable:!0,get:function(){return this.getRoot().getPlayer().getPlayerPromise()}}});var q7q={},A$Y=["learning-journey-engagement-panel","PAlearning_chat"];
q7q.YtdLearningJourneyWatchBehavior=[_.c.YtRendererBehavior,_.Cj.YtPlayerListenerBehavior,_.qH.YtRendererstamperBehavior,_.Aj.YtActionHandlerBehavior,_.R1.YtPageBehavior,_.WV.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 _.ub("START_IN_FULL_WINDOW_MODE")}},
useProviderForSecondaryResultsRenderer:{type:Boolean,value:function(){return _.y("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 _.ub("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 _.y("kevlar_watch_js_panel_height")},
reflectToAttribute:!0},showEngagementPanelScrim_:{type:Boolean,reflectToAttribute:!0,observer:"showEngagementPanelScrimChanged_"},watchFeedBigThumbs_:{type:Boolean,reflectToAttribute:!0,value:function(){return _.y("kevlar_watch_feed_big_thumbs")}},
useEngagementPanelManagementComponent:{type:Boolean,value:function(){return _.y("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 _.pA("wn_grid_min_item_width",310)}},
richItemMaxWidth:{type:Number,value:function(){return _.pA("wn_grid_max_item_width",700)}},
commentsEntryPointHeaderRenderer:{type:Object,computed:"computeCommentsEntryPointHeaderRenderer(data, commentsEntryPointHeaderRendererValue, defaultTwoColumnLayout, isTwoColumns_)"},commentsEntryPointHeaderRendererValue:{type:Object},videoMetadataCarousel:{type:Object},richGridRendererData:{type:Object},watchNextSecondaryResults:{type:Object},videoPrimaryInfoRenderer:{type:Object,computed:"computeVideoPrimaryInfoRenderer(data, videoPrimaryInfoRendererValue)"},videoPrimaryInfoRendererValue:{type:Object},
videoSecondaryInfoRenderer:{type:Object,computed:"computeVideoSecondaryInfoRenderer(data, videoSecondaryInfoRendererValue)"},videoSecondaryInfoRendererValue:{type:Object},inlineStructuredDescriptionData:{type:Object,computed:"computeInlineStructuredDescriptionData(data)"},flexyEnableSmallWindowSizing:{type:Boolean,reflectToAttribute:!0,value:function(){return!_.y("kevlar_watch_flexy_disable_small_window_sizing")}},
flexyEnableLargeWindowSizing:{type:Boolean,reflectToAttribute:!0,value:function(){return!_.y("kevlar_watch_flexy_disable_large_window_sizing")}},
hideComments:{type:Boolean},legacyMetadataClass:{type:String,computed:"computeLegacyMetadataClass(watchMetadataRefresh)"},newMetadataClass:{type:String,computed:"computeNewMetadataClass(watchMetadataRefresh)"},cinematicsEnabled:{type:Boolean,reflectToAttribute:!0,value:function(){return _.y("kevlar_watch_cinematics")}},
responseHasComments:{type:Boolean,reflectToAttribute:!0,value:function(){return!0}},
deprecateFullerscreenUi:{type:Boolean,reflectToAttribute:!0,value:function(){return _.y("web_watch_fullerscreen_deprecation_ui")}},
cinematicsActive:{type:Boolean,value:!1,reflectToAttribute:!0},noTopMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.y("kevlar_watch_no_top_margin")}},
reducedTopMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.y("kevlar_watch_reduced_top_margin")}},
frame0LoadingState:{type:Boolean,reflectToAttribute:!0,value:function(){return _.y("kevlar_watch_frame0_loading_state")}},
roundedPlayerMedium:{type:Boolean,reflectToAttribute:!0,value:function(){return _.y("web_watch_rounded_player_medium")}},
roundedPlayerLarge:{type:Boolean,reflectToAttribute:!0,value:function(){return _.y("web_watch_rounded_player_large")||_.y("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 _.y("web_watch_track_engagement_panel_visibility")}},
commentTeaserEnabled:{type:Boolean,value:function(){return _.y("web_watch_show_comment_teaser")}},
fullBleedNoMaxWidthColumns:{type:Boolean,reflectToAttribute:!0,value:function(){return _.y("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 _.y("web_watch_while_wider_panels")}},
watchWhileMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.y("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 _.y("web_thumbnail_to_watch_transition")}}},
observers:"watchPageActiveChanged_(active);shouldProceedToNextVideo_(playerData.playabilityStatus, data, playlist);userEngagementConfigDataChanged_(data.userEngagementConfig);updateTheaterModeState_(theaterRequested_);watchNextShownItemsAddedOrRemoved_(watchNextShownItems.splices, watchNextCanShowMore);youthereDataChanged_(playerData.messages);updateChatLocation(liveChatPresentAndExpanded);watchNextSecondaryResultsChanged(data)".split(";"),monitorScroll:!0,configureRendererStamper:function(){return{info:{id:"info-contents",
mapping:{videoPrimaryInfoRenderer:{component:"ytd-video-primary-info-renderer"}}},meta:{id:"meta-contents",mapping:{videoSecondaryInfoRenderer:{component:"ytd-video-secondary-info-renderer",properties:{structuredDescriptionContentRenderer:"[[inlineStructuredDescriptionData]]"}}}},ticket:{id:"ticket-shelf",mapping:{ticketShelfRenderer:{component:"ytd-ticket-shelf-renderer",properties:{skinnyMode:"[[isTwoColumns_]]"}}}},offerModule:{id:"offer-module",mapping:{donationShelfRenderer:{component:"ytd-donation-shelf-renderer",
properties:{isCollapsed:"[[shouldCollapseDonationShelf]]"}},donationUnavailableRenderer:{component:"ytd-donation-unavailable-renderer"},movieOfferModuleRenderer:"ytd-movie-offer-module-renderer",episodeOfferModuleRenderer:"ytd-movie-offer-module-renderer",liveOfferModuleRenderer:"ytd-movie-offer-module-renderer",channelOfferModuleRenderer:"ytd-movie-offer-module-renderer",unlimitedOfferModuleRenderer:{component:"ytd-unlimited-offer-module-renderer",properties:{hidden:"[[hideUnlimitedOfferModule]]"}},
tvfilmOfferModuleRenderer:{component:"ytd-tvfilm-offer-module-renderer",properties:{hidden:"[[hideTvfilmOfferModule]]"}},ctaShelfRenderer:"ytd-brandconnect-cta-shelf-card-renderer"}},expandableMetadata:{id:"expandable-metadata",mapping:{expandableMetadataRenderer:{component:"ytd-expandable-metadata-renderer",params:{isWatch:!0}}}},donation:{id:"donation-shelf",mapping:{donationShelfRenderer:{component:"ytd-donation-shelf-renderer",properties:{isCollapsed:"[[shouldCollapseDonationShelf]]"}},donationUnavailableRenderer:{component:"ytd-donation-unavailable-renderer"}}},
clarifyBox:{id:"clarify-box",mapping:{clarificationRenderer:"ytd-clarification-renderer",infoPanelContainerRenderer:"ytd-info-panel-container-renderer",infoPanelContentRenderer:"ytd-info-panel-content-renderer",emergencyOneboxRenderer:{component:"ytd-emergency-onebox-renderer",attributes:{"class":"watch"}}}},limitedState:{id:"limited-state",mapping:{limitedStateMessageRenderer:"ytd-limited-state-message-renderer"}},playerAds:{id:"player-ads",mapping:{playerLegacyDesktopWatchAdsRenderer:"ytd-player-legacy-desktop-watch-ads-renderer"},
initialRenderPriority:3,waitForSignal:_.ZT(["aa","eocs"])},"data.survey":{id:"survey",mapping:{surveyTriggerRenderer:"ytd-survey-trigger-renderer"},initialRenderPriority:3,waitForSignal:_.ZT(["aa","eocs"])},alerts:{id:"alerts",mapping:{alertRenderer:"yt-alert-renderer",alertWithButtonRenderer:"ytd-alert-with-button-renderer"}},"data.contents.twoColumnWatchNextResults.miniplayerBar":{id:"miniplayer-bar",mapping:{miniplayerBarRenderer:"ytd-miniplayer-bar-renderer"}},microformat:{id:"microformat",mapping:{playerMicroformatRenderer:"player-microformat-renderer"}},
singleColumn:{id:"single-column-container",mapping:{itemSectionRenderer:"ytd-item-section-renderer"}},learningJourneyEngagementPanels:{id:"plj-panels",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",params:{isWatch:!0}}}},nonLearningJourneyEngagementPanels:{id:"panels",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",params:{isWatch:!0}}}}}},
listeners:{"yt-retrieve-location":"onRetrieveLocation_","yt-subscription-changed":"onSubscriptionChanged_","yt-show-survey":"onYtShowSurvey_","yt-chat-collapsed-changed":"onYtChatCollapsedChanged"},actionMap:{"yt-sync-with-remote-video":"syncWithRemoteVideo_","yt-window-resized":"onWindowResized_","yt-initial-video-aspect-ratio":"onYtInitialVideoAspectRatio_","yt-update-player-next-video":"onUpdatePlayerNextVideo_","yt-signal-action-pause-player":"handleSignalActionPausePlayer_","yt-signal-action-play-player":"handleSignalActionPlayPlayer_",
"yt-signal-action-acknowledge-youthere":"handleSignalActionAcknowledgeYouThere_","yt-user-activity":"onYtUserActivity_","yt-show-engagement-panel-scrim-action":"onYtShowEngagementPanelScrimAction_","yt-hide-engagement-panel-scrim-action":"onYtHideEngagementPanelScrimAction_","yt-get-current-video-id-action":"onGetCurrentVideoIdAction_","yt-show-survey-command":"onYtShowSurveyCommand_","yt-signal-action-scroll-to-comments":"onYtSignalActionScrollToComments","yt-engagement-panel-visible-changed":"onYtEngagementPanelVisibleChanged",
"yt-downloaded-video-deleted":"onDownloadedVideoDeleted","yt-change-markers-visibility-command":"onChangeMarkersVisibility","yt-updated-playability-status":"onYtUpdatedPlayabilityStatus"},created:function(){var S=this;this.watchController=void 0;this.pageDisposeJobs=[function(){S.showMetadataPlaceholder_()},
function(){_.y("web_watch_dont_clear_comments")||S.clearComments_()},
function(){S.clearPlayerAds_()},
function(){S.resetAutonavCanceledForNewPlayback_()}];
this.player=this.playerContainerEl=this.playerEl=this.watchNextSkeletonEl_=null;this.onPlayingCallbacks_=[];this.clearPlayerAdsJobId_=this.setRichGridJobId_=this.setCommentsJobId_=0;this.showFullerscreenEdu_=!1;this.windowSize_=null;this.trackEngagementPanelVisibility&&(this.visiblePanelIdentifiers_=new Set);this.autonavCanceledSignal_=!1;_.y("kevlar_watch_while")&&(this.watchWhileScrollThreshold_=NaN);_.y("web_watch_start_chat_in_theater_mode")&&(this.theaterEnabledForChat=!1);this.youThereManager_=
new _.j7L(function(){return _.v7(S)},this.hostElement);
this.pageDisposeJobs.push(function(){S.youThereManager_.reset()});
_.y("external_fullscreen")&&(this.fullerscreenEduButtonShownThisPlayback_=this.fullerscreenEduButtonClickedThisPlayback_=!1,this.pageDisposeJobs.push(function(){S.resetFullerscreenEduButtonForNewPlayback_()}));
_.y("kevlar_watch_js_panel_height")&&(this.panelMaxHeightUpdateJob_=0);this.fullHeightPanelPositionUpdateJobId=0;this.playerEvents_=new _.Si;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;_.y("kevlar_watch_metadata_refresh")&&
(this.watchMetadata=void 0);_.y("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));_.y("kevlar_watch_flexy_comments_manager")||this.hostElement.addEventListener("yt-page-data-will-update",_.d9(this,this.onYtPageDataWillUpdate_))},
onYtUpdatedPlayabilityStatus:function(S){S&&(this.playerData=Object.assign({},this.playerData,{playabilityStatus:S}),S.status==="ERROR"&&(this.playerData.videoDetails=void 0))},
onTheaterReduxValueUpdate:function(S){_.y("kevlar_watch_flexy_theater_manager")&&(this.theater=S,this.updateFullBleedElementLocations(),this.schedulePlayerSizeUpdate_(),_.y("kevlar_watch_js_panel_height")&&this.active!==void 0&&this.schedulePanelMaxHeightUpdate_())},
onMiniplayerActiveReduxValueUpdate:function(S){!_.y("kevlar_watch_while_v2")&&!_.y("web_watch_pip")||S||(this.player&&this.setPlayerTheaterMode_(),this.schedulePlayerSizeUpdate_())},
onFullscreenReduxValueUpdate:function(S){this.active!==void 0&&(this.fullscreen=S,_.y("kevlar_watch_flexy_gestures_manager")||this.gestures_&&this.gestures_.update(this.fullscreen),this.updateFullBleedElementLocations())},
onScrollReduxValueUpdate:function(S){this.active!==void 0&&(_.cv(this.hostElement,"yt-autonav-pause-scroll"),this.setComments_(),_.y("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_(),_.y("kevlar_watch_flexy_gestures_manager")||this.gestures_&&(S>0?this.gestures_.detach():this.gestures_.attach()))},
loadPage_:function(S){this.initCsi_();this.updatePageData_(S)},
updatePageData_:function(S){var p=this;if(S)if(this.data===S){this.onPageLoadWithSameData_();var U;(U=this.watchController)==null||U.setWatchNextResponse(this.data)}else this.data=S;this.playlist&&_.ha({watchInfo:{isPlaylist:!0}});this.pageCount===1&&_.Fg("nw");this.loading=!1;_.bQ(_.PA,function(){p.initDclkstatus_();var Y,L=((Y=p.player)==null?void 0:Y.getVideoData().cpn)||"";_.VGn(function(I,V){_.zwA(I,V,L)})})},
onPageLoadWithSameData_:function(){_.y("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 S=this.get("endpoint.watchEndpoint.playlistId",this.loadingData);this.set("loadingData.playlist",!!S);this.set("loadingData.playlistLoading",S&&S!==this.get("playlistId",this.playlistData));this.toggleBodyScrolling_(!1);if(this.watchNextSkeletonEl_)for(this.playlist?this.watchNextSkeletonEl_.setAttribute("playlist",
""):this.watchNextSkeletonEl_.removeAttribute("playlist"),S=this.watchNextSkeletonEl_.firstElementChild;S;)S.classList.remove("hidden"),S=S.nextElementSibling;if(_.y("kevlar_watch_frame0_loading_state")){var p,U,Y;S=(p=this.loadingData)==null?void 0:(U=p.endpoint)==null?void 0:(Y=U.watchEndpoint)==null?void 0:Y.videoId;var L;S&&(L="https://i.ytimg.com/vi/"+S+"/frame0.jpg");_.tB(this.hostElement).querySelector("#player").style.backgroundImage=L?"url("+L+")":""}},
clearLoadingState_:function(){this.hostElement.classList.remove("show-skeleton");this.hostElement.classList.add("hide-skeleton");var S=_.tB(this.hostElement).querySelector("#related-skeleton");!this.get("data.contents.twoColumnWatchNextResults.secondaryResults.secondaryResults")&&S&&(S.hidden=!0);this.clearPlayerLoadingState_();this.hostElement.classList.remove("loading");this.loadingData={playlist:!1};this.toggleBodyScrolling_(!0);if(this.watchMetadata){var p,U;(U=(p=this.watchMetadata).updateSentimentBarWidth)==
null||U.call(p);var Y,L;(L=(Y=this.watchMetadata).resize)==null||L.call(Y)}_.y("kevlar_watch_frame0_loading_state")&&(_.tB(this.hostElement).querySelector("#player").style.backgroundImage="")},
addSplitScrollMouseTrap:function(S){var p=_.tB(this.hostElement).querySelector(S);p?_.A8(p,!1):_.eP(new _.y7("Overscroll monitor not found for component: ",S))},
removeSplitScrollMouseTrap:function(S){var p=_.tB(this.hostElement).querySelector(S);p?_.t8(p):_.eP(new _.y7("Disposal component for  overscroll monitoring not found: ",S))},
onLoadingChanged_:function(S){S?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(S){var p=this;S?document.body.removeAttribute("no-y-overflow"):document.body.setAttribute("no-y-overflow","");_.PA.addLowPriorityJob(function(){p.onWindowResized_(_.zv(!0))})},
updateTheaterModeState_:function(S){if(!_.y("kevlar_watch_flexy_theater_manager")){S=S||this.fullWindowMode_;if(this.theater!==void 0||S)this.theater=S;this.updateFullBleedElementLocations();this.player&&this.setPlayerTheaterMode_();this.togglePageSwatchActive_();S&&_.bBJ()}},
updateFullBleedElementLocations:function(){this.updateChatLocation();this.updatePlayerLocation();this.updateCinematicsLocation()},
updatePlayerLocation:function(){var S=this.theater;_.y("external_fullscreen")&&this.fullscreen&&(S=!0);S=S?_.tB(this.hostElement).querySelector("#player-full-bleed-container"):_.tB(this.hostElement).querySelector("#player-container-inner");var p=this.getPlayerContainer(),U=_.y("kevlar_watch_while_v2")||_.y("web_watch_pip");p.parentElement!==S&&(U&&this.isMiniplayerActive()?this.deactivateMiniplayerAndResetPlayer():(_.v7(this).appendTo(S,p),S.appendChild(_.tB(this.hostElement).querySelector("#error-screen"))))},
deactivateMiniplayerAndResetPlayer:function(){var S=this;return _.T(function(p){if(p.nextAddress==1)return _.k(p,_.tW().resolve(_.eC).deactivate(),2);S.updatePlayerLocation();_.OV(p)})},
updateCinematicsLocation:function(){var S=this.getElement("CINEMATICS");if(S){var p=this.getCinematicsLocationContainer();S.parentElement!==p&&p.appendChild(S);var U;(U=this.watchController)==null||U.updateCinematicFullscreenConfig()}},
getCinematicsLocationContainer:function(){return this.shouldCinematicsBeInWideContainer(this.theater&&!this.fullscreen,this.fullscreen)?_.tB(this.hostElement).querySelector("#cinematics-full-bleed-container"):_.tB(this.hostElement).querySelector("#cinematics-container")},
shouldCinematicsBeInWideContainer:function(S,p){var U=document.documentElement.hasAttribute("dark"),Y=U&&_.y("web_cinematic_theater_mode"),L=U&&_.y("web_cinematic_fullscreen");U=!U&&this.cinematicLightTheme;return S&&Y||p&&L||(p||S)&&U},
isTheater_:function(){return this.theater&&this.active},
dataChanged_:function(){var S;(S=this.watchController)==null||S.setWatchNextResponse(this.data);_.y("kevlar_watch_flexy_comments_manager")||this.initComments_();_.y("kevlar_metadata_reset_on_nav")&&this.hostElement.classList.add("hide-skeleton");_.tW().resolve(_.Fz).cancelVideoSkip();this.showEngagementPanelScrim_=!1;this.trackEngagementPanelVisibility&&(this.engagementPanelExpanded=!1,this.visiblePanelIdentifiers_.clear());this.data&&this.updateCinematicsLocation();if(_.y("web_watch_start_chat_in_theater_mode")){var p,
U,Y;if((p=this.data)==null?0:(U=p.contents)==null?0:(Y=U.twoColumnWatchNextResults)==null?0:Y.conversationBar)this.setTheaterModeRequested(!0,!1),this.theaterEnabledForChat=!0;else{var L,I;((L=this.data)==null?0:(I=L.contents)==null?0:I.twoColumnWatchNextResults)&&this.theaterEnabledForChat&&(this.setTheaterModeRequested(!1,!1),this.theaterEnabledForChat=!1)}}},
playerDataChanged_:function(S){var p;(p=this.watchController)==null||p.setPlayerResponse(this.playerData);S&&S.playabilityStatus&&(p=this.isVideoPlayable_(S.playabilityStatus,this.getPlayerOverlays_(this.data)),S=this.isLiveStreamOffline_(S.playabilityStatus),p&&!S||_.oH(this,function(){_.Fg("pbu")}));
this.setPlayerAds_();_.pp(this.hostElement,"ytd-watch-player-data-changed")},
watchPageActiveChanged_:function(S){_.vJ().dispatch(_.S4({type:"SET_IS_LEARNING_JOURNEY_ACTIVE",payload:{isLearningJourneyActive:this.active}}));S?this.activate_():this.deactivate_()},
attached:function(){var S=this;this.watchController=new BjX(this.hostElement);this.playerData&&this.watchController.setPlayerResponse(this.playerData);this.data&&this.watchController.setWatchNextResponse(this.data);_.y("web_watch_common_class_killswitch")||this.hostElement.classList.add("watch-root-element");var p=_.v7(this);_.y("kevlar_disable_prepare_player")||p.preparePlayer();_.y("kevlar_watch_flexy_playlist_manager")||_.tW().resolve(_.Fz).setPlayer(p);this.updatePageMediaQueries();p={"--ytd-watch-flexy-scrollbar-width":_.FK()+
"px"};!_.pA("kv_pl_mx_sz_ks")&&_.pA("kevlar_watch_max_player_width")&&(p["--ytd-watch-flexy-max-player-width-wide-screen"]=_.d$o+"px");_.pA("kevlar_watch_flexy_metadata_height")&&(p["--ytd-watch-flexy-space-below-player"]=_.VhX+"px");this.safeUpdateStyles(p);_.y("kevlar_watch_flexy_gestures_manager")||(this.gestures_=new NjE(this.hostElement,this.getPlayerContainer(),{dragDownAction:function(){return S.onPlayerTouchPanDown_()}}));
_.y("kevlar_watch_metadata_refresh")&&(this.watchMetadata=_.tB(this.hostElement).querySelector("ytd-watch-metadata:not([swatcheroo-secondary-below-metadata])"))},
updatePageMediaQueries:function(){var S=_.FK(),p=_.wp+S,U=p;this.fixedPanels&&(p+=_.IQs);var Y=657+S;S=1327+S;_.tB(this.hostElement).querySelector("#two-column-query").query="(min-width: "+p+"px)";_.tB(this.hostElement).querySelector("#small-window-query").query="(max-height: 629px) and (min-width: "+(Y+"px), (min-height: 630px) and (min-width: ")+(p+"px) and (max-width: ")+(S+"px)");_.tB(this.hostElement).querySelector("#large-window-query").query="(min-height: 630px) and (min-width: "+(S+"px)");
_.tB(this.hostElement).querySelector("#watch-while-query").query="(min-width: "+U+"px)"},
calculateCurrentPlayerSize_:function(){var S=_.tB(this.hostElement).querySelector("#miniplayer-bar").firstChild;return S&&S.active||this.theater||_.y("web_watch_fullscreen_panels")&&this.fullscreen||!this.active||!this.windowSize_?new _.OF(NaN,NaN):_.m2(this.windowSize_,this.videoHeightToWidthRatio_,this.isTwoColumns_&&(this.playlist||this.shouldStampChat))},
calculateNormalPlayerSize_:function(){return _.m2(this.windowSize_,this.videoHeightToWidthRatio_,this.isTwoColumns_&&(this.playlist||this.shouldStampChat))},
detached:function(){_.t9(this.watchController);this.watchController=void 0;this.deactivate_()},
activate_:function(){var S=this;this.onWindowResized_(_.zv());_.y("browse_skeleton_removal_on_watch_killswitch")||_.ub("IS_SHELL_LOAD")&&_.n4E();this.theaterRequested_=this.theater;this.togglePageSwatchActive_();var p=_.v7(this);p.addEventListener("yt-player-updated",_.d9(this,this.onPlayerUpdated_));p.getPlayerPromise().then(function(U){S.playerApiReady_(U)});
_.y("kevlar_watch_flexy_playlist_manager")||(p=_.tW().resolve(_.Fz),_.y("kevlar_watch_observe_playlist_navigations_killswitch")&&p.addEventListener("yt-navigate",_.d9(this,this.onYtNavigate_)),p.setPlaylistComponent(_.tB(this.hostElement).querySelector("#playlist")),p.addEventListener("yt-playlist-data-updated",_.d9(this,this.onYtPlaylistDataUpdated_)),this.onYtPlaylistDataUpdated_());_.PA.addLowPriorityJob(function(){_.cv(S.hostElement,"yt-autonav-pause-scroll")})},
deactivate_:function(){this.disconnectFromPlayer_();_.v7(this).removeEventListener("yt-player-updated",_.d9(this,this.onPlayerUpdated_));if(!_.y("kevlar_watch_flexy_playlist_manager")){var S=_.tW().resolve(_.Fz);_.y("kevlar_watch_observe_playlist_navigations_killswitch")&&S.removeEventListener("yt-navigate",_.d9(this,this.onYtNavigate_));S.cancelVideoSkip();S.removeEventListener("yt-playlist-data-updated",_.d9(this,this.onYtPlaylistDataUpdated_))}this.loading&&this.toggleBodyScrolling_(!0);_.y("kevlar_watch_while")&&
this.updateMiniplayerBarVisibility_();this.schedulePlayerSizeUpdate_();_.cv(this.hostElement,"yt-autonav-pause-player",!1);S=_.Bv();_.y("kevlar_exit_fullscreen_leaving_watch")&&S&&_.qU(S)},
disconnectFromPlayer_:function(){this.player&&(this.unlistenFromPlayerEvents(this.player,this.playerEvents_),this.player=null)},
onUpdatePlayerNextVideo_:function(S){this.player&&this.player.updateVideoData({rvs:S.rvs})},
getPageContents:function(S){return S&&S.contents&&S.contents.twoColumnWatchNextResults&&S.contents.twoColumnWatchNextResults.results&&S.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(S){return this.get("contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule",S)},
onRetrieveLocation_:function(S,p){p.hasComments?p.locationRetrieved("/comment_service_ajax?action_get_comments=1&pbj=1",void 0):p.locationRetrieved("/related_ajax",void 0);S.stopPropagation()},
onSubscriptionChanged_:function(S,p){this.player&&(p?this.player.channelSubscribed():this.player.channelUnsubscribed())},
initCsi_:function(){_.hv("watch",["pbs","pbp","pbu"])},
getPlayerContainer:function(){this.playerContainerEl||(this.playerContainerEl=_.tB(this.hostElement).querySelector("#player-container"));return this.playerContainerEl},
getPlayer:function(){this.playerEl||(this.playerEl=_.tB(this.hostElement).querySelector("#ytd-plj-player"));return this.playerEl},
playerApiReady_:function(S){this.player=S;this.setPlayerState(S.getPlayerState());this.listenToPlayerEvents(this.player,this.playerEvents_);this.updatePlayerStartTime_();this.setPlayerTheaterMode_();this.onPlayerPresentingVideoDataChange_();this.handlePlayerUpdated_();_.y("external_fullscreen")&&this.updateFullerscreenEduButtonSubtleModeState_();(_.y("kevlar_unified_player")||_.y("kevlar_player_new_bootstrap_adoption"))&&_.x9()},
onFullerscreenEduClicked_:function(){this.scrollToAnimation_.start(0,186,500);this.fullerscreenEduButtonClickedThisPlayback_||(this.fullerscreenEduButtonClickedThisPlayback_=!0,this.incrementFullerscreenEduButtonCount_("yt-fullerscreen-edu-button-click-count"))},
setTheaterModeRequested:function(S,p){p=p===void 0?!0:p;_.Bv()&&_.y("external_fullscreen")&&_.qU(document.documentElement);this.theaterRequested_=S;p&&_.zp("wide",S?"1":"0",-1);this.togglePageSwatchActive_();this.player&&this.setPlayerTheaterMode_();this.schedulePlayerSizeUpdate_();_.y("kevlar_watch_js_panel_height")&&this.schedulePanelMaxHeightUpdate_();_.St(this.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"])},
togglePageSwatchActive_:function(){this.theater!==void 0&&this.active&&_.cv(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(S){_.gK(S,typeof this.player),this.player&&_.gK(S,this.player.setSizeStyle)}},
onPlayerTouchPanDown_:function(){if(this.active&&this.getScrollTop()<=0){var S;((S=this.player)==null?0:S.isFullscreen())?this.player.toggleFullscreen():_.St(this.hostElement,"yt-activate-miniplayer-from-watch-action")}},
hasPlaylist_:function(S,p){return this.loading?p:!!Object.keys(S).length},
autonavAllowed_:function(){return this.autonavCanceledSignal_?!1:!!this.get("contents.twoColumnWatchNextResults.autoplay.autoplay",this.data)},
youthereDataChanged_:function(S){if(S){S=_.d(S);for(var p=S.next();!p.done;p=S.next())p=p.value,p.youThereRenderer&&_.hii(this.youThereManager_,p.youThereRenderer)}},
setPlaylistData_:function(S){return S||{}},
userEngagementConfigDataChanged_:function(S){if(S)if(S.lowUserEngagementAction==="LOW_USER_ENGAGEMENT_ACTION_LOWER_QUALITY"){var p=this.youThereManager_;_.pv()<S.lowEngagementThresholdMs||_.PUd(p,!0)}else S.lowUserEngagementAction==="LOW_USER_ENGAGEMENT_ACTION_PAUSE_AUTOPLAY"&&_.St(this.hostElement,"yt-autonav-pause-user-engagement",[S])},
isPlayerUnavailable_:function(S,p,U){return!!S&&!this.isVideoPlayable_(S,U)&&!p},
getPlayerOverlays_:function(S){return(S==null?void 0:S.playerOverlays)||null},
isVideoPlayable_:function(S,p){if(!S)return!1;var U=S.status==="OK"||S.status==="LIVE_STREAM_OFFLINE",Y=this.get("errorScreen.playerLegacyDesktopYpcTrailerRenderer",S)||this.get("errorScreen.ypcTrailerRenderer",S);S=this.get("errorScreen.playerLegacyDesktopYpcOfferRenderer",S);var L;p=p==null?void 0:(L=p.playerOverlayRenderer)==null?void 0:L.gatedActionsOverlayRenderer;return!!U||!!Y||!!S||!!p},
hasWatchNextResponseErrorRenderer:function(S){var p=this.getPageContents(S),U,Y,L,I,V;return!(S==null?0:(U=S.contents)==null?0:(Y=U.twoColumnWatchNextResults)==null?0:Y.secondaryResults)&&!!((L=p[0])==null?0:(I=L.itemSectionRenderer)==null?0:(V=I.contents[0])==null?0:V.backgroundPromoRenderer)},
isLiveStreamOffline_:function(S){return S?S.status==="LIVE_STREAM_OFFLINE":!1},
shouldProceedToNextVideo_:function(S,p,U){var Y=!!this.get("contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule",p),L=["AGE_CHECK_REQUIRED","CONTENT_CHECK_REQUIRED","AGE_VERIFICATION_REQUIRED"];L=_.y("web_no_skip_video_on_verification_checks")?(S==null?void 0:S.status)&&L.includes(S.status):S&&S.status==="AGE_CHECK_REQUIRED";var I=this.get("skip.playabilityErrorSkipConfig.skipOnPlayabilityError",S);I==void 0&&(I=!0);!U||this.isVideoPlayable_(S,this.getPlayerOverlays_(p))||
Y||L||!I||_.tW().resolve(_.Fz).skipVideo()},
getServiceTrackingParams:function(){if(this.data&&this.data.responseContext)return this.data.responseContext.serviceTrackingParams},
onPlayerUpdated_:function(){this.handlePlayerUpdated_();_.D6J()},
onPlayerFeedbackStartRequest_:function(S){_.St(this.hostElement,"yt-feedback-dialog-requested",[{customProductData:S}])},
onPlayerFeedbackArticleRequest_:function(S){_.St(this.hostElement,"yt-help-dialog-requested",[S])},
onPlayerYpcContentRequest_:function(){var S,p,U,Y,L,I,V,W,O=((S=this.data)==null?NaN:(p=S.contents)==null?NaN:(U=p.twoColumnWatchNextResults)==null?NaN:(Y=U.secondaryResults)==null?NaN:(L=Y.secondaryResults)==null?NaN:(I=L.offerModule)==null?NaN:(V=I.tvfilmOfferModuleRenderer)==null?NaN:(W=V.actionButtons)==null?NaN:W.length)-1;S=[".offerButton.buttonRenderer.",".actionButtons."+(O>=0?O:0)+".buttonRenderer."];p=_.d(["episodeOfferModuleRenderer","movieOfferModuleRenderer","unlimitedOfferModuleRenderer",
"liveOfferModuleRenderer","tvfilmOfferModuleRenderer"]);for(U=p.next();!U.done;U=p.next())for(U=U.value,Y=_.d(S),L=Y.next();!L.done;L=Y.next())if(L="contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule."+U+L.value,L=this.get(L+"navigationEndpoint",this.data)||this.get(L+"serviceEndpoint",this.data)||this.get(L+"command",this.data)){_.Te(L,this.hostElement);return}},
onPlayerAutonavPauseRequest_:function(S){_.cv(this.hostElement,"yt-autonav-pause-player",S)},
onPlayerPlaying_:function(){this.onPlayingCallbacks_.forEach(function(S){S()});
this.onPlayingCallbacks_.length=0},
onAdStateChange_:function(S){switch(S){case 3:this.clearPlayerLoadingState_();break;case 1:this.clearPlayerLoadingState_(),this.onPlayerPlaying_()}},
onPlayerStateChange_:function(S){switch(S){case 3:this.clearPlayerLoadingState_();break;case 1:this.clearPlayerLoadingState_();this.onPlayerPlaying_();break;case 0:_.cv(this.hostElement,"yt-autonav-pause-player-ended")}this.setPlayerState(S)},
setPlayerState:function(S){_.vJ().dispatch(_.bjm(S))},
onPlayerSubscribe_:function(S){_.St(this.hostElement,"yt-player-subscribe",[S])},
onPlayerUnsubscribe_:function(S){_.St(this.hostElement,"yt-player-unsubscribe",[S])},
onPlayerAdYtShowToast_:function(S){_.St(this.hostElement,"yt-open-popup-action",[{openPopupAction:{popup:{notificationActionRenderer:S.notificationActionRenderer},popupType:"TOAST"}},this])},
getAlerts_:function(){return this.alertsValue},
getPlayerMicroformatRenderer_:function(S){if(S)return S},
computeCommentsEntryPointHeaderRenderer:function(){if(this.commentTeaserEnabled)return this.defaultTwoColumnLayout?void 0:this.commentsEntryPointHeaderRendererValue},
computeShowExpandableMetadata:function(S){return!_.y("web_watch_move_summary_to_sd")&&!!S},
computeWatchMetadataRefresh:function(){return _.y("kevlar_watch_metadata_refresh")&&this.videoPrimaryInfoRenderer?!0:!1},
watchNextSecondaryResultsChanged:function(){if(!this.useProviderForSecondaryResultsRenderer){var S,p,U,Y;this.watchNextSecondaryResults=(S=this.data)==null?void 0:(p=S.contents)==null?void 0:(U=p.twoColumnWatchNextResults)==null?void 0:(Y=U.secondaryResults)==null?void 0:Y.secondaryResults}},
setRichGridRendererData:function(S){this.richGridRendererData=S},
computeVideoPrimaryInfoRenderer:function(){return this.videoPrimaryInfoRendererValue},
computeVideoSecondaryInfoRenderer:function(){return this.videoSecondaryInfoRendererValue},
computeInlineStructuredDescriptionData:function(){var S,p=(S=this.data)==null?void 0:S.engagementPanels;if(p==null?0:p.length){S=null;p=_.d(p);for(var U=p.next();!U.done;U=p.next()){U=U.value;var Y=void 0;if(((Y=U.engagementPanelSectionListRenderer)==null?void 0:Y.targetId)==="engagement-panel-structured-description"){S=U;break}}var L,I,V;S=(L=S)==null?void 0:(I=L.engagementPanelSectionListRenderer)==null?void 0:(V=I.content)==null?void 0:V.structuredDescriptionContentRenderer;if(S==null?0:S.items){L=
[];I=_.d(S.items);for(V=I.next();!V.done;V=I.next()){V=V.value;if(!_.y("sd_horizontal_list_show_nav_killswitch")){var W=Y=U=p=S=void 0,O=void 0,D=(S=V.horizontalCardListRenderer)==null?void 0:(p=S.header)==null?void 0:(U=p.richListHeaderRenderer)==null?void 0:(Y=U.navigationButton)==null?void 0:(W=Y.buttonRenderer)==null?void 0:(O=W.command)==null?void 0:O.commandExecutorCommand;D&&D.commands&&(D.commands=D.commands.filter(function(z){return!_.b(z,_.jvA)}))}V.expandableVideoDescriptionBodyRenderer||
V.videoDescriptionHeaderRenderer||L.push(V)}return{items:L}}}},
constructWarning_:function(S){return{text:_.Ec(S),type:"WARNING"}},
isPlaShelfEnabled_:function(S){if((this.get("adPlacements",S)||[]).length)return!0;S=this.get("playerAds",S)||[];return!(!S.length||!this.get("playerLegacyDesktopWatchAdsRenderer.playerAdParams.allowBelowThePlayerCompanion",S[0]))},
resetAutonavCanceledForNewPlayback_:function(){this.autonavCanceledSignal_=!1},
onThrottledScroll_:function(){var S=this;_.cv(this.hostElement,"yt-autonav-pause-scroll");this.setComments_();_.y("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_();var p=this.getScrollTop()>0;this.gestures_&&(p?this.gestures_.detach():this.gestures_.attach());p!==this.showFullerscreenEdu_&&_.y("external_fullscreen_with_edu")&&this.fullscreen&&(this.showFullerscreenEdu_=p,_.v7(this).getPlayerPromise().then(function(U){U.updateFullerscreenEduButtonVisibility(S.getScrollTop()>0)}))},
onMastheadThrottledScroll:function(){_.cv(this.hostElement,"yt-watch-masthead-scroll",this.getScrollTop())},
onYtPageDataWillUpdate_:function(){this.preparePageReset_()},
preparePageReset_:function(){this.clearScheduledCommentJobs_()},
initComments_:function(){var S=this;this.commentsReady=!1;_.PA.cancelJob(this.setCommentsJobId_);this.setCommentsJobId_=_.bQ(_.PA,function(){S.setComments_()},1E3)},
setComments_:function(){if(!_.y("kevlar_watch_flexy_comments_manager")&&!this.commentsReady){_.Fg("cmi");_.PA.cancelJob(this.setCommentsJobId_);var S=this.getPageContents(this.data);if(S&&S.length){S=_.d(S);for(var p=S.next();!p.done;p=S.next())if(p=p.value,this.get("itemSectionRenderer.sectionIdentifier",p)==="comment-item-section"){this.comments=p.itemSectionRenderer;this.canScheduleCommentJobs_=!0;break}}this.commentsReady=!0}},
commentsReadyChanged_:function(){this.commentsReady&&_.cv(this.hostElement,"yt-watch-comments-ready")},
clearScheduledCommentJobs_:function(){_.y("kevlar_cancel_scheduled_comment_jobs_on_navigate")&&(this.canScheduleCommentJobs_=!1)},
showMetadataPlaceholder_:function(){_.y("kevlar_metadata_reset_on_nav")&&this.hostElement.classList.remove("hide-skeleton")},
clearComments_:function(){this.doRemoveComments_();_.Fg("cmc")},
doRemoveComments_:function(){this.comments={};_.y("kevlar_watch_hide_comments_while_panel_open")&&(this.hideComments=!1)},
setPlayerAds_:function(){_.PA.cancelJob(this.clearPlayerAdsJobId_);this.playerAds=this.get("playerAds",this.playerData)},
clearPlayerAds_:function(){_.PA.cancelJob(this.clearPlayerAdsJobId_);this.playerAds=void 0},
onYtNavigate_:function(S,p){var U=_.b(p.endpoint,_.E$);U&&(!(p=this.get("data.currentVideoEndpoint.watchEndpoint"))||U.videoId!==p.videoId||U.playlistId&&U.playlistId!==p.playlistId||U.index!==void 0&&U.index!==p.index||typeof U.startTimeSeconds!=="number"||(S.stopPropagation(),this.setScrollTop(0),_.v7(this).getPlayerPromise().then(function(Y){var L=U.startTimeSeconds;Y.seekTo(L);Y.wakeUpControls();L<Y.getDuration()&&Y.playVideo()})))},
updatePlayerStartTime_:function(){var S=_.cvn();"t"in S&&(S=_.Hni(S.t),this.player.seekTo(S,!0))},
updateTitleFromWatchNext:function(S){S=this.getPageContents(S);var p,U;(S=_.mA(S==null?void 0:(p=S[0])==null?void 0:(U=p.videoPrimaryInfoRenderer)==null?void 0:U.title))&&_.cv(this.hostElement,"yt-update-title",S)},
updateTitle_:function(S){S=this.get("videoDetails.title",S)||"";_.cv(this.hostElement,"yt-update-title",S)},
syncWithRemoteVideo_:function(S,p,U){if(this.active&&this.player){var Y=this.player.getVideoData();if(Y.video_id===U&&(U=Y.list,_.y("polymer_enable_mdx_queue")&&U&&U.startsWith("RQ")&&(U=void 0),Y.video_id!==S||U!=p)){var L;_.y("kevlar_player_watch_endpoint_navigation")?L=_.CuX(_.TjT(S,p)):L=this.buildWatchEndpoint_(S,p);_.cv(this.hostElement,"yt-navigate",{endpoint:L,isRemotePlayback:!0})}}},
buildWatchEndpoint_:function(S,p,U){return _.qw(S,p,U)},
initDclkstatus_:function(){_.kSL()},
attachWatchPageSkeleton_:function(){var S=document.querySelector("#watch-page-skeleton");if(S){var p=S.querySelector("#primary-info"),U=S.querySelector("#secondary-info"),Y=S.querySelector("#related");p&&_.tB(this.hostElement).querySelector("#info-skeleton").appendChild(p);U&&_.tB(this.hostElement).querySelector("#meta-skeleton").appendChild(U);Y&&(_.tB(this.hostElement).querySelector("#related-skeleton").appendChild(Y),this.watchNextSkeletonEl_=Y);_.yz(S)}},
handlePlayerUpdated_:function(){_.v7(this).focusOnPlayer()},
watchNextShownItemsAddedOrRemoved_:function(S,p){if(this.watchNextSkeletonEl_&&typeof p!=="undefined"){var U=this.watchNextSkeletonEl_.children,Y=S&&S.indexSplices.length?S.indexSplices[0].index:0;S=Math.min(this.watchNextShownItems.length,U.length);p||(Y=0,S=U.length);for(p=Y;p<S;p++)U[p].classList.add("hidden")}},
onPlayerFullscreenChange_:function(S){_.y("external_fullscreen")||_.St(this.hostElement,"yt-player-fullscreen",[S.fullscreen])},
onFullscreenChange_:function(S){this.fullscreen=S;this.gestures_&&this.gestures_.update(this.fullscreen);var p=_.v7(this);p.getPlayerPromise().then(function(U){U.setFauxFullscreen(!!_.Bv())});
this.updateFullBleedElementLocations();S&&(p.focusOnPlayer(),this.fullerscreenEduButtonShownThisPlayback_||(this.fullerscreenEduButtonShownThisPlayback_=!0,this.incrementFullerscreenEduButtonCount_("yt-fullerscreen-edu-button-shown-count")))},
computeShouldStampChat_:function(S,p){return!!this.get("data.contents.twoColumnWatchNextResults.conversationBar")&&!p},
computeIsDonationShelfCollapsed_:function(S){return S},
computeShouldShowMerchShelf:function(S,p){return p&&!!S},
computeResponseHasComments:function(S){var p,U,Y,L,I;return!!(S==null?0:(p=S.contents)==null?0:(U=p.twoColumnWatchNextResults)==null?0:(Y=U.results)==null?0:(L=Y.results)==null?0:(I=L.contents)==null?0:I.some(function(V){var W;return(V==null?void 0:(W=V.itemSectionRenderer)==null?void 0:W.sectionIdentifier)==="comment-item-section"}))},
computeShowComments_:function(S,p){this.responseHasComments=this.computeResponseHasComments(this.data);return!!S&&!!Object.keys(S).length&&!p},
identity:_.Cr,onWindowResized_:function(S){this.windowSize_=S;this.active&&(this.schedulePlayerSizeUpdate_(!0),_.y("kevlar_watch_js_panel_height")&&this.schedulePanelMaxHeightUpdate_());_.y("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_()},
onPlayerPresentingVideoDataChange_:function(S){var p=this;S&&S.type!=="dataloaded"&&S.type!=="dataupdated"||_.v7(this).getPlayerPromise().then(function(U){var Y=U.getPlayerState();Y!==5&&Y!==0&&(U=1/U.getVideoAspectRatio(),p.videoHeightToWidthRatio_!==U&&(p.videoHeightToWidthRatio_=U))})},
schedulePlayerSizeUpdate_:function(S){var p=this,U=_.y("kevlar_watch_while_v2")||_.y("web_watch_pip"),Y=function(){if(p.watchMetadata){var L,I;(I=(L=p.watchMetadata).resize)==null||I.call(L)}_.v7(p).getPlayerPromise().then(function(V){if(_.y("kevlar_set_internal_player_size")){if(!U||!p.isMiniplayerActive()){var W=p.calculateCurrentPlayerSize_();V.setInternalSize(W.width,W.height)}}else V.setSize(NaN,NaN);_.y("kevlar_watch_while")&&p.updateWatchWhileScrollThreshold_()})};
S?Y():_.Jn(_.PA,Y)},
secondaryColumnModulePresenceChanged_:function(){this.isAttached&&this.schedulePlayerSizeUpdate_()},
onYtShowSurvey_:function(S){this.set("data.survey",S.detail)},
onYtShowSurveyCommand_:function(S){this.set("data.survey",_.b(S,_.bn5).survey)},
onDownloadedVideoDeleted:function(S){var p=this,U,Y;return _.T(function(L){if(L.nextAddress==1){if(!p.active||(U=p.playerData)==null||!U.offlineState||p.videoId!==S)return L.return();(Y=p.player)==null||Y.stopVideo();_.Vy().navigatingAwayFromWatchDeletedVideo=!0;_.Te(_.FRG,p.hostElement);return _.k(L,_.Vy().navigationFinishPromise,2)}_.Vy().navigatingAwayFromWatchDeletedVideo=!1;_.OV(L)})},
updateWatchWhileScrollThreshold_:function(){if(this.windowSize_){var S;this.theater?S=_.F7(.5625*this.windowSize_.width,480,this.windowSize_.height-185):S=this.calculateNormalPlayerSize_().height+24;this.watchWhileScrollThreshold_!==S&&(this.watchWhileScrollThreshold_=S,this.updateMiniplayerBarVisibility_())}},
updateMiniplayerBarVisibility_:function(){var S=_.tB(this.hostElement).querySelector("ytd-miniplayer-bar-renderer");if(this.windowSize_&&S){var p=this.windowSize_.height>=624,U=this.active?this.getScrollTop():0;!S.active&&p&&U>=this.watchWhileScrollThreshold_?(S.activate(this.getPlayer()),this.schedulePlayerSizeUpdate_()):S.active&&(!p||U<this.watchWhileScrollThreshold_&&!_.Bv())&&(S.deactivate().appendTo(this.getPlayerContainer()),this.schedulePlayerSizeUpdate_())}},
isTwoColumnsChanged_:function(S,p){if(S!==!0||p!==void 0){S=!_.y("live_chat_over_engagement_panels");p=_.tB(this.hostElement).querySelector("#chat-container");var U=_.tB(this.hostElement).querySelector("#plj-sidebar"),Y=_.tB(this.hostElement).querySelector("#panels"),L=_.tB(this.hostElement).querySelector("#plj-panels"),I=_.tB(this.hostElement).querySelector("#plj-playlist"),V=_.tB(this.hostElement).querySelector("#alerts"),W=_.tB(this.hostElement).querySelector("#playlist"),O=_.tB(this.hostElement).querySelector("#related"),
D=_.tB(this.hostElement).querySelector("#donation-shelf"),z=_.tB(this.hostElement).querySelector("#comments");this.isTwoColumns_?(V=_.tB(this.hostElement).querySelector("#secondary-inner"),V.appendChild(U),U.appendChild(I),I.appendChild(W),U.appendChild(L),S&&V.appendChild(Y),_.y("web_watch_theater_chat")||V.appendChild(p),S||V.appendChild(Y),V.appendChild(D),V.appendChild(O)):(S&&_.b1(Y,V),_.b1(W,V),_.y("web_watch_theater_chat")||_.b1(p,V),S||_.b1(Y,V),_.b1(D,V),z&&(L&&_.b1(L,z),_.b1(O,z)));_.y("kevlar_watch_js_panel_height")&&
this.active&&this.schedulePanelMaxHeightUpdate_()}},
watchWhileWindowSizeSufficientChanged:function(){_.y("web_watch_theater_chat")&&this.updateChatLocation()},
updateChatLocation:function(){if(_.y("web_watch_theater_chat")){var S=_.tB(this.hostElement).querySelector("#chat-container"),p=this.theater&&!this.fullscreen||_.y("web_watch_fullscreen_panels")&&this.fullscreen;this.watchWhileWindowSizeSufficient&&this.liveChatPresentAndExpanded&&p?_.y("web_watch_theater_chat_beside_player")?(p=_.tB(this.hostElement).querySelector("#panels-full-bleed-container"),(S==null?void 0:S.parentElement)!==p&&p.append(S),this.panelsBesidePlayer=!0):_.y("web_watch_theater_fixed_chat")&&
(p=_.tB(this.hostElement).querySelector("#columns"),(S==null?void 0:S.parentElement)!==p&&p.append(S),this.fixedPanels=!0):(_.y("web_watch_theater_chat_beside_player")?this.panelsBesidePlayer=!1:_.y("web_watch_theater_fixed_chat")&&(this.fixedPanels=!1),p=_.tB(this.hostElement).querySelector("#playlist"),S&&p?_.jc(S,p):_.eP(new _.y7("Missing element when updating chat location",{"chatContainer defined":!!S,"playlist defined":!!p})));this.updatePageMediaQueries();this.schedulePlayerSizeUpdate_()}},
computeHasMetadata:function(S,p){return _.y("sw_metadata_vis_toggle_ks")?!0:!!S||!!p},
computeForceDarkPanelTheme:function(S){return _.y("web_watch_theater_chat_beside_player_dark")?!document.documentElement.hasAttribute("dark")&&S:!1},
safeUpdateStyles:function(S){try{_.Ms(this.hostElement,S)}catch(p){_.eP(p)}},
videoHeightToWidthRatioChanged_:function(S,p){p&&(this.safeUpdateStyles({"--ytd-watch-flexy-width-ratio":1,"--ytd-watch-flexy-height-ratio":this.videoHeightToWidthRatio_}),this.schedulePlayerSizeUpdate_(),_.y("kevlar_watch_js_panel_height")&&this.schedulePanelMaxHeightUpdate_())},
onYtInitialVideoAspectRatio_:function(S){this.videoHeightToWidthRatio_=1/S},
computeIsVerticalVideo_:function(S){return S>=1},
computeIsFourThreeToSixteenNineVideo_:function(S){return S<=.7501&&S>=.5624},
computeIsExtraWideVideo_:function(S){return S<.5624},
onYtUserActivity_:function(){this.youThereManager_.onUserActivity()},
handleSignalActionPausePlayer_:function(){this.active&&_.v7(this).pause()},
handleSignalActionPlayPlayer_:function(){this.active&&_.v7(this).play()},
handleSignalActionAcknowledgeYouThere_:function(){_.ZnY(this.youThereManager_)},
incrementFullerscreenEduButtonCount_:function(S){var p=_.Uz(S)||0;_.p$(S,p+1,31536E3);this.updateFullerscreenEduButtonSubtleModeState_()},
updateFullerscreenEduButtonSubtleModeState_:function(){var S=_.Uz("yt-fullerscreen-edu-button-click-count")||0,p=_.Uz("yt-fullerscreen-edu-button-shown-count")||0,U=_.pA("external_fullscreen_button_shown_threshold"),Y=S>=_.pA("external_fullscreen_button_click_threshold")||p>=U;_.v7(this).getPlayerPromise().then(function(L){L.updateFullerscreenEduButtonSubtleModeState(Y)})},
resetFullerscreenEduButtonForNewPlayback_:function(){this.fullerscreenEduButtonShownThisPlayback_=this.fullerscreenEduButtonClickedThisPlayback_=!1},
computePlaylistData_:function(S,p){return p},
onYtPlaylistDataUpdated_:function(){this.externalPlaylistData_=_.tW().resolve(_.Fz).getPlaylistData()||{}},
schedulePanelMaxHeightUpdate_:function(){var S=this;this.panelMaxHeightUpdateJob_&&_.PA.cancelJob(this.panelMaxHeightUpdateJob_);this.panelMaxHeightUpdateJob_=_.PA.addLowPriorityJob(function(){S.panelMaxHeightUpdateJob_=0;var p;!S.isTwoColumns_||S.theater||S.fullscreen?p=460:p=S.calculateNormalPlayerSize_().height;var U=p+"px";_.y("live_chat_taller_height")&&!S.theater&&(U="calc(100vh - var(--ytd-toolbar-height) -\n                        (var(--ytd-margin-6x) * 2))");_.y("live_chat_medium_height")&&
!S.theater&&(U="calc(100vh - var(--ytd-toolbar-height) - 144px)");_.y("live_chat_scaled_height")&&!S.theater&&(U="calc(100vh - var(--ytd-toolbar-height) - 238px)");S.safeUpdateStyles({"--ytd-watch-flexy-panel-max-height":p+"px","--ytd-watch-flexy-chat-max-height":U,"--ytd-watch-flexy-structured-description-max-height":p+"px","--ytd-watch-flexy-comments-panel-max-height":p+"px","--ytd-comments-engagement-panel-content-height":p+"px"})})},
onYtShowEngagementPanelScrimAction_:function(S){this.engagementPanelScrimOnClickCommands_=this.get("showEngagementPanelScrimAction.onClickCommands",S)||null;this.showEngagementPanelScrim_=!0},
onYtHideEngagementPanelScrimAction_:function(){this.engagementPanelScrimOnClickCommands_=null;this.showEngagementPanelScrim_=!1},
onEngagementPanelScrimClick_:function(){this.engagementPanelScrimOnClickCommands_&&_.Lp(this.hostElement,this.engagementPanelScrimOnClickCommands_,this.hostElement)},
showEngagementPanelScrimChanged_:function(S){var p=_.tB(this.hostElement).querySelector("#engagement-panel-scrim");S?p.addEventListener("tap",_.d9(this,this.onEngagementPanelScrimClick_)):p.removeEventListener("tap",_.d9(this,this.onEngagementPanelScrimClick_))},
onGetCurrentVideoIdAction_:function(){if(this.active)return this.videoId},
onYtScrollToWatchElement_:function(S){if(this.hostElement.contains(S)&&!this.scrollToAnimation_.isAnimating()){var p=S.offsetTop-24;S=S.offsetTop+S.offsetHeight+24;var U=this.getPageScrollingElement(),Y=this.getScrollTop(),L=Y+U.clientHeight-56;if(p<Y+56)p-=56;else if(S>L)p=S-U.clientHeight;else return;this.scrollToAnimation_.start(this.getScrollTop(),Math.max(0,p),500)}},
onYtSignalActionScrollToComments:function(){var S=this.hostElement.querySelector("#comments");if(S&&!this.scrollToAnimation_.isAnimating()){S=S.offsetTop-56-24;if(_.y("kevlar_comment_teaser_scroll_to_midpoint")&&(S-=_.kE().height/3,S<this.getScrollTop()))return;this.scrollToAnimation_.start(this.getScrollTop(),Math.max(0,S),500)}},
onYtEngagementPanelVisibleChanged:function(S,p,U){this.active&&this.trackEngagementPanelVisibility&&!_.y$L.includes(U)&&(p==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"&&this.visiblePanelIdentifiers_.add(U),p!=="ENGAGEMENT_PANEL_VISIBILITY_COLLAPSED"&&p!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"||this.visiblePanelIdentifiers_.delete(U),this.engagementPanelExpanded=this.visiblePanelIdentifiers_.size>0)},
computeLegacyMetadataClass:function(S){return S?"":"watch-active-metadata"},
computeNewMetadataClass:function(S){return S?"watch-active-metadata":""},
computeFullBleedPlayer:function(S,p){return S||p},
computeDefaultLayout:function(S){return!S},
computeDefaultTwoColumnLayout:function(S,p){return!S&&p},
computeWatchWhilePanelsActive:function(S,p){return S||p},
computeNoBorderOnChat:function(S){return _.y("web_watch_theater_chat_no_border")&&S},
computeLiveChatPresentAndExpanded:function(S,p){return S&&!p},
computePanelExpanded:function(S,p,U){return S||p||U},
onChangeMarkersVisibility:function(S){_.v7(this).getPlayerPromise().then(function(p){var U;(U=p.changeMarkerVisibility)==null||U.call(p,_.b(S,_.oM).isVisible||!1,_.b(S,_.oM).entityKeys||[],_.b(S,_.oM).visibilityRestrictionMode||void 0)})},
onYtChatCollapsedChanged:function(S){this.liveChatCollapsed=S.detail;_.vJ().dispatch(_.J$X(S.detail))},
provideRenderingData:function(S,p){switch(S){case "SINGLE_COLUMN_CONTENTS":this.singleColumnValue=p;break;case "PRIMARY_INFO":_.y("kevlar_watch_metadata_refresh_no_old_primary_data")||(this.info=p);this.videoPrimaryInfoRendererValue=p==null?void 0:p.videoPrimaryInfoRenderer;break;case "SECONDARY_INFO":_.y("kevlar_watch_metadata_refresh_no_old_secondary_data")||(this.meta=p);this.videoSecondaryInfoRendererValue=p==null?void 0:p.videoSecondaryInfoRenderer;break;case "COMMENTS_ENTRY_POINT_HEADER":this.commentsEntryPointHeaderRendererValue=
p;break;case "CLARIFICATION":this.clarifyBoxValue=p;break;case "LIVE_CHAT":this.conversationBar=p;break;case "INFO_PANEL_BELOW_METADATA":this.infoPanelBelowMetadata=p;break;case "PLAYLIST":this.externalPlaylistData_=p!=null?p:{};break;case "MERCH_SHELF":this.merchShelfValue=p==null?void 0:p.merchandiseShelfRenderer;break;case "TICKET_SHELF":this.ticket=p;break;case "OFFER_MODULE":this.offerModule=p;break;case "LIMITED_STATE":this.limitedStateValue=p;break;case "DONATION_SHELF":this.donation=p;break;
case "ALERTS":this.alertsValue=p;break;case "COMMENTS":this.comments=p;break;case "WATCH_NEXT_SECONDARY_RESULTS":this.watchNextSecondaryResults=p;break;case "ENGAGEMENT_PANELS":this.engagementPanels=p;break;case "INLINE_ENGAGEMENT_PANELS":this.inlineEngagementPanels=p;break;case "RICH_GRID_RENDERER":this.richGridRendererData=p;break;case "EXPANDABLE_METADATA":this.expandableMetadata=p;break;case "VIDEO_METADATA_CAROUSEL":this.videoMetadataCarousel=p}},
toggleCinematicsActive:function(S){this.cinematicsActive=S},
isMiniplayerActive:function(){return _.tW().resolve(_.eC).isMiniplayerActive()},
getLearningJourneyEngagementPanels:function(S){return A$Y.map(function(p){return S.find(function(U){var Y;return(U==null?void 0:(Y=U.engagementPanelSectionListRenderer)==null?void 0:Y.targetId)===p})}).filter(function(p){return p!==void 0})},
getNonLearningJourneyEngagementPanels:function(S){return S.filter(function(p){var U;return!A$Y.includes((p==null?void 0:(U=p.engagementPanelSectionListRenderer)==null?void 0:U.targetId)||"")})}}];var tGE;var ca=function(){var S=_.w.apply(this,arguments)||this;S.flexy=!0;S.learningJourney=!0;S.roundedInfoPanel=!0;S.viewTransitionEnabled=_.y("enable_player_resize_transition");S.smallerChatMinHeight=_.y("live_chat_smaller_min_height");S.cinematicTheaterMode=_.y("web_cinematic_theater_mode");S.transparentTheaterMode=_.y("web_transparent_theater_mode");S.cinematicFullscreen=_.y("web_cinematic_fullscreen");S.useLargerMaxPlayerValue=_.y("kevlar_flexy_use_larger_player_value");S.cinematicFullscreenV2=_.y("web_cinematic_fullscreen_v2");
S.isDarkTheme=document.documentElement.hasAttribute("dark");S.theaterLargerPlayer=_.y("web_watch_theater_larger_player");S.defaultCollapsePlaylist=_.y("web_watch_default_collapse_playlist");return S};
_.r(ca,_.w);_.M=ca.prototype;_.M.updateTheaterValue=function(){this.ytdWatchBehavior.onTheaterReduxValueUpdate(!!this.theaterValue)};
_.M.updateFullscreenValue=function(){this.ytdWatchBehavior.onFullscreenReduxValueUpdate(!!this.fullscreenValue)};
_.M.updateScrollTopValue=function(){this.ytdWatchBehavior.onScrollReduxValueUpdate(this.scrollTopValue||0)};
_.M.updateMiniplayerIsActiveValue=function(){this.ytdWatchBehavior.onMiniplayerActiveReduxValueUpdate(!!this.miniplayerIsActiveValue)};
_.M.ready=function(){var S=this,p=function(){S.onColumnScroll()};
this.primary.addEventListener("scroll",p);this.secondary.addEventListener("scroll",p)};
_.M.onColumnScroll=function(){this.ytRendererBehavior.markDirty()};
_.M.updateIsTwoColumnsFromBinding=function(S){_.y("web_watch_update_narrow_width_killswitch")||_.vJ().dispatch(_.Qvd(!S.detail.value));this.ytdWatchBehavior.isTwoColumns_=S.detail.value};
_.M.updateFlexySmallWindowFromBinding=function(S){this.ytdWatchBehavior.flexySmallWindow_=S.detail.value};
_.M.updateFlexyLargeWindowFromBinding=function(S){this.ytdWatchBehavior.flexyLargeWindow_=S.detail.value};
_.M.updateWatchWhileWindowSizeSufficientFromBinding=function(S){this.ytdWatchBehavior.watchWhileWindowSizeSufficient=S.detail.value};
_.M.updateWatchNextCanShowMoreFromBinding=function(S){this.ytdWatchBehavior.watchNextCanShowMore=S.detail.value};
_.M.updateShownItemsFromBinding=function(S){S.detail.path?this.set(S.detail.path,S.detail.value):this.ytdWatchBehavior.watchNextShownItems=S.detail.value};
_.M.getElement=function(S){switch(S){case "PLAYER":return this.ytdPlayer;case "PLAYLIST_PANEL":return this.JSC$20501_ytdPlaylistPanelRenderer;case "CINEMATICS":return this.JSC$20501_cinematics;case "PLAYER_CONTAINER":return this.playerContainer;case "COMMENTS":return this.ytdComments}};
_.$u.Object.defineProperties(ca.prototype,{cinematicLightTheme:{configurable:!0,enumerable:!0,get:function(){var S;if((S=this.data)==null||!S.pageVisualEffects)return!1;for(var p=0;p<this.data.pageVisualEffects.length;p++)if(S=_.b(this.data.pageVisualEffects[p],_.jI))return p=void 0,(p=S.config)==null?void 0:p.enableInLightTheme;return!1}},
hasLearningJourneyPanels:{configurable:!0,enumerable:!0,get:function(){var S;return((S=this.learningJourneyEngagementPanels)==null?void 0:S.length)>0}},
backButtonData:{configurable:!0,enumerable:!0,get:function(){var S,p=(S=this.learningJourneyEngagementPanels)==null?void 0:S.find(function(J){var K;return(J==null?void 0:(K=J.engagementPanelSectionListRenderer)==null?void 0:K.panelIdentifier)==="learning-journey-engagement-panel"});
if(p){var U,Y,L,I,V,W,O,D,z;if(S=(D=((O=(V=((I=p==null?void 0:(U=p.engagementPanelSectionListRenderer)==null?void 0:(Y=U.content)==null?void 0:(L=Y.sectionListRenderer)==null?void 0:L.contents)!=null?I:[])[0])==null?void 0:(W=V.itemSectionRenderer)==null?void 0:W.contents)!=null?O:[])[0])==null?void 0:(z=D.accordionViewModel)==null?void 0:z.onTitleTap){var Q=_.sW(S);if(Q)return{type:"filled",style:"mono",state:"active",size:"M",iconPosition:"icon-only",onTap:function(){_.VO.instance.resolveCommand(Q)}}}}}}});
_.$u.Object.defineProperties(ca,{template:{configurable:!0,enumerable:!0,get:function(){if(tGE===void 0){var S=document.createElement("template");_.h(S,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-watch-learning-journey--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n<iron-media-query id="two-column-query" query-matches="[[isTwoColumns_]]" on-query-matches-changed="updateIsTwoColumnsFromBinding" class="style-scope ytd-watch-learning-journey"></iron-media-query>\n<iron-media-query id="small-window-query" query-matches="[[flexySmallWindow_]]" on-query-matches-changed="updateFlexySmallWindowFromBinding" class="style-scope ytd-watch-learning-journey">\n</iron-media-query>\n<iron-media-query id="large-window-query" query-matches="[[flexyLargeWindow_]]" on-query-matches-changed="updateFlexyLargeWindowFromBinding" class="style-scope ytd-watch-learning-journey">\n</iron-media-query>\n<iron-media-query id="watch-while-query" query-matches="[[watchWhileWindowSizeSufficient]]" on-query-matches-changed="updateWatchWhileWindowSizeSufficientFromBinding" class="style-scope ytd-watch-learning-journey"></iron-media-query>\n\n<div id="microformat" class="style-scope ytd-watch-learning-journey"></div>\n\n<div id="miniplayer-bar" class="style-scope ytd-watch-learning-journey"></div>\n\n<div id="full-bleed-container" hidden="[[singleColumn]]" class="style-scope ytd-watch-learning-journey">\n  <div id="player-full-bleed-container" class="style-scope ytd-watch-learning-journey">\n    <div id="cinematics-full-bleed-container" class="style-scope ytd-watch-learning-journey"></div>\n  </div>\n  <div id="panels-full-bleed-container" class="style-scope ytd-watch-learning-journey"></div>\n</div>\n\n<div id="single-column-container" hidden="[[!singleColumn]]" class="style-scope ytd-watch-learning-journey"></div>\n<div id="columns" hidden="[[singleColumn]]" class="style-scope ytd-watch-learning-journey">\n\n  <div id="secondary" class="style-scope ytd-watch-learning-journey">\n    <div id="secondary-inner" class="style-scope ytd-watch-learning-journey">\n      <div id="plj-sidebar" class="style-scope ytd-watch-learning-journey">\n        <div id="plj-playlist" class="style-scope ytd-watch-learning-journey"></div>\n        <div id="plj-panels" class="style-scope ytd-watch-learning-journey"></div>\n      </div>\n      <div id="panels" class="style-scope ytd-watch-learning-journey">\n        <ytd-watch-engagement-panels data="[[data.engagementPanels]]" disable-upgrade$="[[!useEngagementPanelManagementComponent]]" hidden="[[!useEngagementPanelManagementComponent]]" class="style-scope ytd-watch-learning-journey">\n        </ytd-watch-engagement-panels>\n      </div>\n      <ytd-playlist-panel-renderer id="playlist" autoplay-data="[[data.contents.twoColumnWatchNextResults.autoplay.autoplay]]" collapsed="[[defaultCollapsePlaylist]]" data="[[playlistData]]" hidden="[[!playlist]]" loading$="[[loadingData.playlistLoading]]" class="style-scope ytd-watch-learning-journey">\n      </ytd-playlist-panel-renderer>\n      <div id="donation-shelf" class="style-scope ytd-watch-learning-journey"></div>\n      <div id="chat-container" class="style-scope ytd-watch-learning-journey">\n        \n        <template is="dom-if" if="[[shouldStampChat]]" restamp="" id="chat-template" class="style-scope ytd-watch-learning-journey">\n          <ytd-live-chat-frame id="chat" data="[[data.contents.twoColumnWatchNextResults.conversationBar]]" force-dark-theme="[[forceDarkPanelTheme]]" no-border="[[noBorderOnChat]]" theater-watch-while="[[watchWhilePanelsActive]]" class="style-scope ytd-watch-learning-journey">\n          </ytd-live-chat-frame>\n        </template>\n      </div>\n      <div id="related" class="style-scope ytd-watch-learning-journey">\n        <div id="player-ads" class="style-scope ytd-watch-learning-journey"></div>\n        <ytd-watch-next-secondary-results-renderer can-show-more="[[watchNextCanShowMore]]" data="[[watchNextSecondaryResults]]" disable-upgrade$="[[!watchNextSecondaryResults]]" hidden="[[!watchNextSecondaryResults]]" is-two-columns="[[isTwoColumns_]]" player-data="[[playerData]]" show-more-button="[[!isTwoColumns_]]" shown-items="[[watchNextShownItems]]" on-can-show-more-changed="updateWatchNextCanShowMoreFromBinding" on-shown-items-changed="updateShownItemsFromBinding" class="style-scope ytd-watch-learning-journey">\n        </ytd-watch-next-secondary-results-renderer>\n        <div id="related-skeleton" class="watch-skeleton style-scope ytd-watch-learning-journey"></div>\n      </div>\n    </div>\n  </div>\n\n  <div id="primary" class="style-scope ytd-watch-learning-journey">\n    <div id="primary-inner" class="style-scope ytd-watch-learning-journey">\n      <div id="player" class="style-scope ytd-watch-learning-journey">\n        <div id="cinematics-container" class="style-scope ytd-watch-learning-journey">\n          <div id="cinematics" class="style-scope ytd-watch-learning-journey"></div>\n        </div>\n        <div id="player-container-outer" class="style-scope ytd-watch-learning-journey">\n          <div id="player-container-inner" class="style-scope ytd-watch-learning-journey">\n            <div id="player-container" role="complementary" class="style-scope ytd-watch-learning-journey">\n              <ytd-player id="ytd-plj-player" context="WEB_PLAYER_CONTEXT_CONFIG_ID_LEARNING_JOURNEY_WATCH" watch-next-data="[[data]]" class="style-scope ytd-watch-learning-journey">\n              </ytd-player>\n            </div>\n          </div>\n          <div id="player-button-overlays" class="style-scope ytd-watch-learning-journey">\n            <yt-button-shape data="[[backButtonData]]" 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>\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');
S.content.insertBefore(_.t().content.cloneNode(!0),S.content.firstChild);tGE=S}S=tGE;return S}}});
ca.prototype.updateMiniplayerIsActiveValue=ca.prototype.updateMiniplayerIsActiveValue;ca.prototype.updateScrollTopValue=ca.prototype.updateScrollTopValue;ca.prototype.updateFullscreenValue=ca.prototype.updateFullscreenValue;ca.prototype.updateTheaterValue=ca.prototype.updateTheaterValue;_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],ca.prototype,"ytRendererBehavior",void 0);_.x([_.F(_.eL.YtComponentBehavior),_.E("design:type",Object)],ca.prototype,"ytComponentBehavior",void 0);
_.x([_.F(q7q.YtdLearningJourneyWatchBehavior),_.E("design:type",Object)],ca.prototype,"ytdWatchBehavior",void 0);_.x([_.F(_.Xh),_.E("design:type",Object)],ca.prototype,"ytdReduxBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],ca.prototype,"data",void 0);_.x([_.g(),_.E("design:type",Object)],ca.prototype,"playerData",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],ca.prototype,"flexy",void 0);
_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],ca.prototype,"learningJourney",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],ca.prototype,"roundedInfoPanel",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],ca.prototype,"viewTransitionEnabled",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],ca.prototype,"smallerChatMinHeight",void 0);
_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],ca.prototype,"cinematicTheaterMode",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],ca.prototype,"transparentTheaterMode",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],ca.prototype,"cinematicFullscreen",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],ca.prototype,"useLargerMaxPlayerValue",void 0);
_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],ca.prototype,"cinematicFullscreenV2",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],ca.prototype,"isDarkTheme",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],ca.prototype,"theaterLargerPlayer",void 0);_.x([_.g(),_.E("design:type",Object)],ca.prototype,"defaultCollapsePlaylist",void 0);_.x([_.g({selector:_.sK}),_.E("design:type",Object)],ca.prototype,"theaterValue",void 0);
_.x([_.g({selector:_.eS}),_.E("design:type",Object)],ca.prototype,"fullscreenValue",void 0);_.x([_.g({selector:_.hw}),_.E("design:type",Object)],ca.prototype,"scrollTopValue",void 0);_.x([_.g({selector:_.F1}),_.E("design:type",Object)],ca.prototype,"miniplayerIsActiveValue",void 0);_.x([_.O2("#ytd-plj-player"),_.E("design:type",HTMLElement)],ca.prototype,"ytdPlayer",void 0);_.x([_.O2("#playlist"),_.E("design:type",HTMLElement)],ca.prototype,"JSC$20501_ytdPlaylistPanelRenderer",void 0);
_.x([_.BN("ytd-comments"),_.E("design:type",HTMLElement)],ca.prototype,"ytdComments",void 0);_.x([_.O2("#primary"),_.E("design:type",HTMLElement)],ca.prototype,"primary",void 0);_.x([_.O2("#secondary"),_.E("design:type",HTMLElement)],ca.prototype,"secondary",void 0);_.x([_.O2("#player-container"),_.E("design:type",HTMLElement)],ca.prototype,"playerContainer",void 0);_.x([_.O2("#cinematics"),_.E("design:type",HTMLElement)],ca.prototype,"JSC$20501_cinematics",void 0);
_.x([_.T4("theaterValue"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],ca.prototype,"updateTheaterValue",null);_.x([_.T4("fullscreenValue"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],ca.prototype,"updateFullscreenValue",null);_.x([_.T4("scrollTopValue"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],ca.prototype,"updateScrollTopValue",null);
_.x([_.T4("miniplayerIsActiveValue"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],ca.prototype,"updateMiniplayerIsActiveValue",null);_.x([_.g({reflectToAttribute:!0}),_.e("data"),_.E("design:type",Object),_.E("design:paramtypes",[])],ca.prototype,"cinematicLightTheme",null);_.x([_.g({reflectToAttribute:!0}),_.e("learningJourneyEngagementPanels"),_.E("design:type",Object),_.E("design:paramtypes",[])],ca.prototype,"hasLearningJourneyPanels",null);
_.x([_.e("learningJourneyEngagementPanels"),_.E("design:type",Object),_.E("design:paramtypes",[])],ca.prototype,"backButtonData",null);ca=_.x([_.f({is:"ytd-watch-learning-journey"})],ca);_.A4.registerService(_.qdu,ca);
_.g5();
}catch(e){_._DumpException(e)}
try{
_.e$("Tm0L3c");
var f2L;var CU5;var x6t=function(){return _.w.apply(this,arguments)||this};
_.r(x6t,_.w);x6t=_.x([_.f({is:"ytd-ghost-comments-renderer",disableElementRegistration:!0})],x6t);
_.C(x6t,"ytd-ghost-comments-renderer",function(){if(CU5===void 0){var S=document.createElement("template");_.h(S,'\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');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);CU5=S}S=CU5;return S},{mode:1});var Ewq;var m6t=function(){return _.w.apply(this,arguments)||this};
_.r(m6t,_.w);m6t=_.x([_.f({is:"ytd-ghost-watch-metadata-renderer",disableElementRegistration:!0})],m6t);
_.C(m6t,"ytd-ghost-watch-metadata-renderer",function(){if(Ewq===void 0){var S=document.createElement("template");_.h(S,'\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');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);Ewq=S}S=Ewq;return S},{mode:1});var t_=function(){var S=_.w.apply(this,arguments)||this;S.ghostGridRenderer={rows:6};S.roundedInfoPanel=!0;S.hideOfferModules=!0;S.smallerChatMinHeight=_.y("live_chat_smaller_min_height");S.cinematicTheaterMode=_.y("web_cinematic_theater_mode");S.transparentTheaterMode=_.y("web_transparent_theater_mode");S.darkerPanels=_.y("web_watch_darker_panels");S.cinematicFullscreen=_.y("web_cinematic_fullscreen");S.cinematicFullscreenV2=_.y("web_cinematic_fullscreen_v2");S.isDarkTheme=document.documentElement.hasAttribute("dark");
return S};
_.r(t_,_.w);_.M=t_.prototype;_.M.updateTheaterValue=function(){this.ytdWatchBehavior.onTheaterReduxValueUpdate(!!this.theaterValue)};
_.M.updateFullscreenValue=function(){this.ytdWatchBehavior.onFullscreenReduxValueUpdate(!!this.fullscreenValue)};
_.M.updateScrollTopValue=function(){this.ytdWatchBehavior.onScrollReduxValueUpdate(this.scrollTopValue||0)};
_.M.updateMiniplayerIsActiveValue=function(){this.ytdWatchBehavior.onMiniplayerActiveReduxValueUpdate(!!this.miniplayerIsActiveValue)};
_.M.ready=function(){var S=this,p=function(){S.onColumnScroll()};
this.primary.addEventListener("scroll",p);this.secondary.addEventListener("scroll",p)};
_.M.onColumnScroll=function(){this.ytRendererBehavior.markDirty()};
_.M.updateIsTwoColumnsFromBinding=function(S){this.ytdWatchBehavior.isTwoColumns_=S.detail.value};
_.M.updateFlexySmallWindowFromBinding=function(S){this.ytdWatchBehavior.flexySmallWindow_=S.detail.value};
_.M.updateFlexyLargeWindowFromBinding=function(S){this.ytdWatchBehavior.flexyLargeWindow_=S.detail.value};
_.M.updateWatchWhileWindowSizeSufficientFromBinding=function(S){this.ytdWatchBehavior.watchWhileWindowSizeSufficient=S.detail.value};
_.M.updateWatchNextCanShowMoreFromBinding=function(S){this.ytdWatchBehavior.watchNextCanShowMore=S.detail.value};
_.M.updateShownItemsFromBinding=function(S){_.y("swatcheroo_direct_use_rich_grid")||(S.detail.path?this.set(S.detail.path,S.detail.value):this.ytdWatchBehavior.watchNextShownItems=S.detail.value)};
_.M.getElement=function(S){switch(S){case "PLAYER":return this.ytdPlayer;case "PLAYLIST_PANEL":return this.JSC$20489_ytdPlaylistPanelRenderer;case "CINEMATICS":return this.JSC$20489_cinematics;case "PLAYER_CONTAINER":return this.playerContainer;case "COMMENTS":return this.ytdComments}};
_.$u.Object.defineProperties(t_.prototype,{cinematicLightTheme:{configurable:!0,enumerable:!0,get:function(){var S;if((S=this.data)==null||!S.pageVisualEffects)return!1;for(var p=0;p<this.data.pageVisualEffects.length;p++)if(S=_.b(this.data.pageVisualEffects[p],_.jI))return p=void 0,(p=S.config)==null?void 0:p.enableInLightTheme;return!1}}});
t_.prototype.updateMiniplayerIsActiveValue=t_.prototype.updateMiniplayerIsActiveValue;t_.prototype.updateScrollTopValue=t_.prototype.updateScrollTopValue;t_.prototype.updateFullscreenValue=t_.prototype.updateFullscreenValue;t_.prototype.updateTheaterValue=t_.prototype.updateTheaterValue;_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],t_.prototype,"ytRendererBehavior",void 0);_.x([_.F(_.eL.YtComponentBehavior),_.E("design:type",Object)],t_.prototype,"ytComponentBehavior",void 0);
_.x([_.F(_.l2L.YtdWatchBehavior),_.E("design:type",Object)],t_.prototype,"ytdWatchBehavior",void 0);_.x([_.F(_.Xh),_.E("design:type",Object)],t_.prototype,"ytdReduxBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],t_.prototype,"data",void 0);_.x([_.g(),_.E("design:type",Object)],t_.prototype,"ghostGridRenderer",void 0);_.x([_.g(),_.E("design:type",Object)],t_.prototype,"playerData",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],t_.prototype,"roundedInfoPanel",void 0);
_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],t_.prototype,"hideOfferModules",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],t_.prototype,"smallerChatMinHeight",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],t_.prototype,"cinematicTheaterMode",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],t_.prototype,"transparentTheaterMode",void 0);
_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],t_.prototype,"darkerPanels",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],t_.prototype,"cinematicFullscreen",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],t_.prototype,"cinematicFullscreenV2",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],t_.prototype,"isDarkTheme",void 0);_.x([_.g({selector:_.sK}),_.E("design:type",Object)],t_.prototype,"theaterValue",void 0);
_.x([_.g({selector:_.eS}),_.E("design:type",Object)],t_.prototype,"fullscreenValue",void 0);_.x([_.g({selector:_.hw}),_.E("design:type",Object)],t_.prototype,"scrollTopValue",void 0);_.x([_.g({selector:_.F1}),_.E("design:type",Object)],t_.prototype,"miniplayerIsActiveValue",void 0);_.x([_.O2("#ytd-player"),_.E("design:type",HTMLElement)],t_.prototype,"ytdPlayer",void 0);_.x([_.O2("#playlist"),_.E("design:type",HTMLElement)],t_.prototype,"JSC$20489_ytdPlaylistPanelRenderer",void 0);
_.x([_.O2("#ytd-comments"),_.E("design:type",HTMLElement)],t_.prototype,"ytdComments",void 0);_.x([_.O2("#primary"),_.E("design:type",HTMLElement)],t_.prototype,"primary",void 0);_.x([_.O2("#secondary"),_.E("design:type",HTMLElement)],t_.prototype,"secondary",void 0);_.x([_.O2("#player-container"),_.E("design:type",HTMLElement)],t_.prototype,"playerContainer",void 0);_.x([_.O2("#cinematics"),_.E("design:type",HTMLElement)],t_.prototype,"JSC$20489_cinematics",void 0);
_.x([_.T4("theaterValue"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],t_.prototype,"updateTheaterValue",null);_.x([_.T4("fullscreenValue"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],t_.prototype,"updateFullscreenValue",null);_.x([_.T4("scrollTopValue"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],t_.prototype,"updateScrollTopValue",null);
_.x([_.T4("miniplayerIsActiveValue"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],t_.prototype,"updateMiniplayerIsActiveValue",null);_.x([_.g({reflectToAttribute:!0}),_.e("data"),_.E("design:type",Object),_.E("design:paramtypes",[])],t_.prototype,"cinematicLightTheme",null);
_.C(t_,"ytd-watch-grid",function(){if(f2L===void 0){var S=document.createElement("template");_.h(S,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-watch-grid--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n<iron-media-query id="two-column-query" query-matches="[[isTwoColumns_]]" on-query-matches-changed="updateIsTwoColumnsFromBinding" class="style-scope ytd-watch-grid"></iron-media-query>\n<iron-media-query id="small-window-query" query-matches="[[flexySmallWindow_]]" on-query-matches-changed="updateFlexySmallWindowFromBinding" class="style-scope ytd-watch-grid">\n</iron-media-query>\n<iron-media-query id="large-window-query" query-matches="[[flexyLargeWindow_]]" on-query-matches-changed="updateFlexyLargeWindowFromBinding" class="style-scope ytd-watch-grid">\n</iron-media-query>\n<iron-media-query id="watch-while-query" query-matches="[[watchWhileWindowSizeSufficient]]" on-query-matches-changed="updateWatchWhileWindowSizeSufficientFromBinding" class="style-scope ytd-watch-grid">\n</iron-media-query>\n\n<div id="microformat" class="style-scope ytd-watch-grid"></div>\n\n<div id="miniplayer-bar" class="style-scope ytd-watch-grid"></div>\n\n<div id="player-full-bleed-container" hidden="[[singleColumn]]" class="style-scope ytd-watch-grid">\n  <div id="cinematics-full-bleed-container" class="style-scope ytd-watch-grid">\n  </div>\n  <div id="squeezeback-constraining-container" hidden="[[!squeezeback]]" class="style-scope ytd-watch-grid"></div>\n</div>\n\n<div id="single-column-container" hidden="[[!singleColumn]]" class="style-scope ytd-watch-grid"></div>\n<div id="columns" hidden="[[singleColumn]]" class="style-scope ytd-watch-grid">\n  <div id="primary" class="style-scope ytd-watch-grid">\n    <div id="primary-inner" class="style-scope ytd-watch-grid">\n      <div id="player" class="style-scope ytd-watch-grid">\n        <div id="cinematics-container" class="style-scope ytd-watch-grid">\n          <div id="cinematics" class="style-scope ytd-watch-grid"></div>\n        </div>\n        <div id="player-container-outer" class="style-scope ytd-watch-grid">\n          <div id="player-container-inner" class="style-scope ytd-watch-grid">\n            <div id="player-container" role="complementary" class="style-scope ytd-watch-grid">\n              <ytd-player id="ytd-player" context="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_WATCH" watch-next-data="[[data]]" class="style-scope ytd-watch-grid">\n              </ytd-player>\n            </div>\n          </div>\n        </div>\n        <yt-playability-error-supported-renderers id="error-screen" data="[[playerData.playabilityStatus.errorScreen]]" disable-upgrade$="[[!playerUnavailable]]" hidden$="[[!playerUnavailable]]" status="[[playerData.playabilityStatus.status]]" class="style-scope ytd-watch-grid">\n        </yt-playability-error-supported-renderers>\n      </div>\n      <div id="below" class="style-scope ytd-watch-grid">\n        <div id="fixed-below" class="style-scope ytd-watch-grid"></div>\n        <div id="bottom-grid" class="style-scope ytd-watch-grid">\n          <ytd-rich-grid-renderer continuation-show-button="[[showRichGridContinuationButton]]" data="[[richGridRendererData]]" disable-upgrade$="[[!richGridRendererData]]" hidden="[[!richGridRendererData]]" hide-chips-bar="" is-watch-default-layout="[[defaultTwoColumnLayout]]" item-max-width="[[richItemMaxWidth]]" item-min-width="[[richItemMinWidth]]" reduced-bottom-margin="" row-reduced-horizontal-margin="" transparent-background-chips-bar="" class="style-scope ytd-watch-grid">\n          </ytd-rich-grid-renderer>\n          <ytd-ghost-grid-renderer data="[[ghostGridRenderer]]" hidden="[[richGridRendererData]]" is-watch-next="" rich-item-min-width="[[richItemMinWidth]]" class="style-scope ytd-watch-grid"></ytd-ghost-grid-renderer>\n        </div>\n      </div>\n    </div>\n  </div>\n  <div id="secondary" class="style-scope ytd-watch-grid">\n    <div id="fixed-secondary" class="style-scope ytd-watch-grid">\n      <div id="panels" class="style-scope ytd-watch-grid">\n        <ytd-watch-engagement-panels data="[[data.engagementPanels]]" disable-upgrade$="[[!useEngagementPanelManagementComponent]]" hidden="[[!useEngagementPanelManagementComponent]]" class="style-scope ytd-watch-grid">\n        </ytd-watch-engagement-panels>\n      </div>\n      <div id="chat-container" class="style-scope ytd-watch-grid">\n        \n        <template is="dom-if" if="[[shouldStampChat]]" restamp="" id="chat-template" class="style-scope ytd-watch-grid">\n          <ytd-live-chat-frame id="chat" data="[[conversationBar]]" class="style-scope ytd-watch-grid">\n          </ytd-live-chat-frame>\n        </template>\n      </div>\n    </div>\n    <div id="secondary-inner" class="style-scope ytd-watch-grid">\n        <ytd-watch-metadata clarify-box="[[clarifyBox]]" comments-entry-point-header-renderer="[[commentsEntryPointHeaderRenderer]]" hidden="[[!videoPrimaryInfoRenderer]]" info-panel-below-metadata="[[infoPanelBelowMetadata]]" player-ads="[[playerAds]]" playlist="[[playlist]]" skinny-mode="[[metadataSkinnyMode]]" swatcheroo-enable-double-metadata="[[swatcherooUseDoubleMetadata]]" video-primary-info-renderer="[[videoPrimaryInfoRenderer]]" video-secondary-info-renderer="[[videoSecondaryInfoRenderer]]" class="style-scope ytd-watch-grid">\n        </ytd-watch-metadata>\n        <ytd-ghost-watch-metadata-renderer hidden="[[hasMetadata]]" class="style-scope ytd-watch-grid"></ytd-ghost-watch-metadata-renderer>\n        <div id="inline-panels" class="style-scope ytd-watch-grid"></div>\n        <div id="clarify-box" class="attached-message style-scope ytd-watch-grid"></div>\n        <div id="alerts" class="style-scope ytd-watch-grid"></div>\n        <div id="messages" class="style-scope ytd-watch-grid"></div>\n        <div id="related" class="style-scope ytd-watch-grid">\n          <div id="player-ads" class="style-scope ytd-watch-grid"></div>\n          <div id="related-skeleton" class="watch-skeleton style-scope ytd-watch-grid"></div>\n        </div>\n        <ytd-playlist-panel-renderer id="playlist" autoplay-data="[[data.contents.twoColumnWatchNextResults.autoplay.autoplay]]" collapsed="[[!playlistPanelExpanded]]" data="[[playlistData]]" hidden="[[!playlist]]" loading$="[[loadingData.playlistLoading]]" meta-panel="[[swatcherooSplitScroll]]" class="style-scope ytd-watch-grid">\n        </ytd-playlist-panel-renderer>\n        <div id="expandable-metadata" hidden="[[!expandableMetadata]]" class="style-scope ytd-watch-grid"></div>\n        <div class$="[[legacyMetadataClass]] style-scope ytd-watch-grid" hidden="">\n          <div id="info" class="style-scope ytd-watch-grid">\n            <div id="info-skeleton" class="watch-skeleton style-scope ytd-watch-grid"></div>\n            <div id="info-contents" hidden="[[watchMetadataRefresh]]" class="style-scope ytd-watch-grid"></div>\n          </div>\n          <div id="meta" class="style-scope ytd-watch-grid">\n            <div id="meta-skeleton" class="watch-skeleton style-scope ytd-watch-grid"></div>\n            <div id="meta-contents" hidden="[[watchMetadataRefresh]]" class="style-scope ytd-watch-grid"></div>\n          </div>\n        </div>\n        <div id="limited-state" class="attached-message style-scope ytd-watch-grid"></div>\n      <div id="offer-module" class="style-scope ytd-watch-grid"></div>\n      <div id="donation-shelf" class="style-scope ytd-watch-grid"></div>\n      <div id="ticket-shelf" hidden="[[!monetizationShelvesEnabled_]]" class="style-scope ytd-watch-grid"></div>\n      \n      <template is="dom-if" if="[[shouldShowMerchShelf]]" restamp="" id="merch-shelf" class="style-scope ytd-watch-grid">\n        <ytd-merch-shelf-renderer data="[[merchShelf]]" meta-panel="[[swatcherooSplitScroll]]" skinny-mode="[[isTwoColumns_]]" watch-metadata-refresh="[[watchMetadataRefresh]]" class="style-scope ytd-watch-grid">\n        </ytd-merch-shelf-renderer>\n      </template>\n      <ytd-ghost-comments-renderer hidden="[[comments]]" class="style-scope ytd-watch-grid"></ytd-ghost-comments-renderer>\n      <ytd-comments id="comments" can-schedule-jobs="[[canScheduleCommentJobs_]]" data="[[comments]]" hidden="[[!computeShowComments_(comments, hideComments, shouldStampChat, commentsEntryPointHeaderRenderer)]]" hide-panel-button="[[!defaultTwoColumnLayout]]" is-watch-grid="" class="style-scope ytd-watch-grid">\n      </ytd-comments>\n    </div>\n  </div>\n</div>\n<div id="fixed-columns-secondary" hidden="[[!swatcherooSplitScroll]]" class="style-scope ytd-watch-grid"> </div>\n\n<div id="survey" class="style-scope ytd-watch-grid"></div>\n<div id="engagement-panel-scrim" hidden="[[!showEngagementPanelScrim_]]" class="style-scope ytd-watch-grid"></div>\n');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);f2L=S}S=f2L;return S},{mode:2});_.A4.registerService(_.BgN,t_);
_.g5();
}catch(e){_._DumpException(e)}
try{
_.e$("CF909");
var a25;var A_=function(){var S=_.w.apply(this,arguments)||this;S.flexy=!0;S.roundedInfoPanel=!0;S.viewTransitionEnabled=_.y("enable_player_resize_transition");S.smallerChatMinHeight=_.y("live_chat_smaller_min_height");S.cinematicTheaterMode=_.y("web_cinematic_theater_mode");S.transparentTheaterMode=_.y("web_transparent_theater_mode");S.cinematicFullscreen=_.y("web_cinematic_fullscreen");S.useLargerMaxPlayerValue=_.y("kevlar_flexy_use_larger_player_value");S.cinematicFullscreenV2=_.y("web_cinematic_fullscreen_v2");
S.isDarkTheme=document.documentElement.hasAttribute("dark");S.defaultCollapsePlaylist=_.y("web_watch_default_collapse_playlist");S.retroModeReduxValue=!1;return S};
_.r(A_,_.w);_.M=A_.prototype;_.M.updateTheaterValue=function(){this.ytdWatchBehavior.onTheaterReduxValueUpdate(!!this.theaterValue)};
_.M.updateFullscreenValue=function(){this.ytdWatchBehavior.onFullscreenReduxValueUpdate(!!this.fullscreenValue)};
_.M.updateScrollTopValue=function(){this.ytdWatchBehavior.onScrollReduxValueUpdate(this.scrollTopValue||0)};
_.M.updateRetroModeReduxValue=function(){_.y("web_player_rtr_ctrls")&&(this.ytdWatchBehavior.retroMode=this.retroModeReduxValue)};
_.M.ready=function(){var S=this,p=function(){S.onColumnScroll()};
this.primary.addEventListener("scroll",p);this.secondary.addEventListener("scroll",p)};
_.M.onColumnScroll=function(){this.ytRendererBehavior.markDirty()};
_.M.updateIsTwoColumnsFromBinding=function(S){_.y("web_watch_update_narrow_width_killswitch")||_.vJ().dispatch(_.Qvd(!S.detail.value));this.ytdWatchBehavior.isTwoColumns_=S.detail.value};
_.M.updateFlexySmallWindowFromBinding=function(S){this.ytdWatchBehavior.flexySmallWindow_=S.detail.value};
_.M.updateFlexyLargeWindowFromBinding=function(S){this.ytdWatchBehavior.flexyLargeWindow_=S.detail.value};
_.M.updateWatchWhileWindowSizeSufficientFromBinding=function(S){this.ytdWatchBehavior.watchWhileWindowSizeSufficient=S.detail.value};
_.M.updateWatchNextCanShowMoreFromBinding=function(S){this.ytdWatchBehavior.watchNextCanShowMore=S.detail.value};
_.M.updateShownItemsFromBinding=function(S){S.detail.path?this.set(S.detail.path,S.detail.value):this.ytdWatchBehavior.watchNextShownItems=S.detail.value};
_.M.getElement=function(S){switch(S){case "PLAYER":return this.ytdPlayer;case "PLAYLIST_PANEL":return this.JSC$20484_ytdPlaylistPanelRenderer;case "CINEMATICS":return this.JSC$20484_cinematics;case "PLAYER_CONTAINER":return this.playerContainer;case "COMMENTS":return this.ytdComments}};
_.$u.Object.defineProperties(A_.prototype,{cinematicLightTheme:{configurable:!0,enumerable:!0,get:function(){var S;if((S=this.data)==null||!S.pageVisualEffects)return!1;for(var p=0;p<this.data.pageVisualEffects.length;p++)if(S=_.b(this.data.pageVisualEffects[p],_.jI))return p=void 0,(p=S.config)==null?void 0:p.enableInLightTheme;return!1}}});
_.$u.Object.defineProperties(A_,{template:{configurable:!0,enumerable:!0,get:function(){if(a25===void 0){var S=document.createElement("template");_.h(S,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-watch-flexy--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n<iron-media-query id="two-column-query" query-matches="[[isTwoColumns_]]" on-query-matches-changed="updateIsTwoColumnsFromBinding" class="style-scope ytd-watch-flexy"></iron-media-query>\n<iron-media-query id="small-window-query" query-matches="[[flexySmallWindow_]]" on-query-matches-changed="updateFlexySmallWindowFromBinding" class="style-scope ytd-watch-flexy">\n</iron-media-query>\n<iron-media-query id="large-window-query" query-matches="[[flexyLargeWindow_]]" on-query-matches-changed="updateFlexyLargeWindowFromBinding" class="style-scope ytd-watch-flexy">\n</iron-media-query>\n<iron-media-query id="watch-while-query" query-matches="[[watchWhileWindowSizeSufficient]]" on-query-matches-changed="updateWatchWhileWindowSizeSufficientFromBinding" class="style-scope ytd-watch-flexy"></iron-media-query>\n\n<div id="microformat" class="style-scope ytd-watch-flexy"></div>\n\n<div id="miniplayer-bar" class="style-scope ytd-watch-flexy"></div>\n\n<div id="full-bleed-container" hidden="[[singleColumn]]" class="style-scope ytd-watch-flexy">\n  <div id="player-full-bleed-container" class="style-scope ytd-watch-flexy">\n    <div class="player-container-background style-scope ytd-watch-flexy" hidden="[[!playerContainerBackgroundImage]]">\n      <ytd-thumbnail class="player-container-background-image style-scope ytd-watch-flexy" data="[[playerContainerBackgroundImage]]"></ytd-thumbnail>\n    </div>\n    <div id="cinematics-full-bleed-container" class="style-scope ytd-watch-flexy"></div>\n  </div>\n  <div id="panels-full-bleed-container" class="style-scope ytd-watch-flexy"></div>\n</div>\n\n<div id="single-column-container" hidden="[[!singleColumn]]" class="style-scope ytd-watch-flexy"></div>\n<div id="columns" hidden="[[singleColumn]]" class="style-scope ytd-watch-flexy">\n  <div id="primary" class="style-scope ytd-watch-flexy">\n    <div id="primary-inner" class="style-scope ytd-watch-flexy">\n      <div id="player" class="style-scope ytd-watch-flexy">\n        <div id="cinematics-container" class="style-scope ytd-watch-flexy">\n          <div id="cinematics" class="style-scope ytd-watch-flexy"></div>\n        </div>\n        <div id="player-container-outer" class="style-scope ytd-watch-flexy">\n          <div id="player-container-inner" class="style-scope ytd-watch-flexy">\n            <div class="player-container-background style-scope ytd-watch-flexy" hidden="[[!playerContainerBackgroundImage]]">\n              <ytd-thumbnail class="player-container-background-image style-scope ytd-watch-flexy" data="[[playerContainerBackgroundImage]]"></ytd-thumbnail>\n            </div>\n            <div id="player-container" role="complementary" class="style-scope ytd-watch-flexy">\n              <ytd-player id="ytd-player" context="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_WATCH" watch-next-data="[[data]]" class="style-scope ytd-watch-flexy">\n              </ytd-player>\n            </div>\n          </div>\n        </div>\n        <yt-playability-error-supported-renderers id="error-screen" data="[[playerData.playabilityStatus.errorScreen]]" disable-upgrade$="[[!playerUnavailable]]" hidden$="[[!playerUnavailable]]" status="[[playerData.playabilityStatus.status]]" class="style-scope ytd-watch-flexy">\n        </yt-playability-error-supported-renderers>\n      </div>\n      <div id="below" class="style-scope ytd-watch-flexy">\n        <div id="alerts" class="style-scope ytd-watch-flexy"></div>\n        <div id="messages" class="style-scope ytd-watch-flexy"></div>\n        <div id="clarify-box" class="attached-message style-scope ytd-watch-flexy"></div>\n        <div id="limited-state" class="attached-message style-scope ytd-watch-flexy"></div>\n        <ytd-watch-metadata class$="[[newMetadataClass]] style-scope ytd-watch-flexy" comments-entry-point-header-renderer="[[commentsEntryPointHeaderRenderer]]" disable-upgrade$="[[!watchMetadataRefresh]]" hidden="[[!watchMetadataRefresh]]" info-panel-below-metadata="[[infoPanelBelowMetadata]]" is-watch-flexy="" merch-shelf="[[merchShelfInSd]]" structured-description-content-renderer="[[inlineStructuredDescriptionData]]" video-id="[[videoId]]" video-metadata-carousel="[[videoMetadataCarousel]]" video-primary-info-renderer="[[videoPrimaryInfoRenderer]]" video-secondary-info-renderer="[[videoSecondaryInfoRenderer]]" video-summary="[[expandableMetadata]]">\n        </ytd-watch-metadata>\n        <div class$="[[legacyMetadataClass]] style-scope ytd-watch-flexy">\n          <div id="info" class="style-scope ytd-watch-flexy">\n            <div id="info-skeleton" class="watch-skeleton style-scope ytd-watch-flexy"></div>\n            <div id="info-contents" hidden="[[watchMetadataRefresh]]" class="style-scope ytd-watch-flexy"></div>\n          </div>\n          <div id="meta" class="style-scope ytd-watch-flexy">\n            <div id="meta-skeleton" class="watch-skeleton style-scope ytd-watch-flexy"></div>\n            <div id="meta-contents" hidden="[[watchMetadataRefresh]]" class="style-scope ytd-watch-flexy"></div>\n          </div>\n        </div>\n        <div id="expandable-metadata" hidden="[[!showExpandableMetadata]]" class="style-scope ytd-watch-flexy"></div>\n        <div id="ticket-shelf" hidden="[[!monetizationShelvesEnabled_]]" class="style-scope ytd-watch-flexy"></div>\n        \n        <template is="dom-if" if="[[shouldShowMerchShelf]]" restamp="" id="merch-shelf" class="style-scope ytd-watch-flexy">\n          <ytd-merch-shelf-renderer data="[[merchShelf]]" watch-metadata-refresh="[[watchMetadataRefresh]]" class="style-scope ytd-watch-flexy">\n          </ytd-merch-shelf-renderer>\n        </template>\n        <ytd-comments id="comments" can-schedule-jobs="[[canScheduleCommentJobs_]]" data="[[comments]]" disable-upgrade$="[[!computeShowComments_(comments, hideComments, shouldStampChat)]]" hidden="[[!computeShowComments_(comments, hideComments, shouldStampChat)]]" class="style-scope ytd-watch-flexy">\n        </ytd-comments>\n      </div>\n    </div>\n  </div>\n\n  <div id="secondary" class="style-scope ytd-watch-flexy">\n    <div id="secondary-inner" class="style-scope ytd-watch-flexy">\n      <div id="panels" class="style-scope ytd-watch-flexy">\n        <ytd-watch-engagement-panels data="[[data.engagementPanels]]" disable-upgrade$="[[!useEngagementPanelManagementComponent]]" hidden="[[!useEngagementPanelManagementComponent]]" class="style-scope ytd-watch-flexy">\n        </ytd-watch-engagement-panels>\n      </div>\n      <ytd-playlist-panel-renderer id="playlist" autoplay-data="[[data.contents.twoColumnWatchNextResults.autoplay.autoplay]]" collapsed="[[defaultCollapsePlaylist]]" data="[[playlistData]]" hidden="[[!playlist]]" loading$="[[loadingData.playlistLoading]]" class="style-scope ytd-watch-flexy">\n      </ytd-playlist-panel-renderer>\n      <div id="donation-shelf" class="style-scope ytd-watch-flexy"></div>\n      <div id="chat-container" class="style-scope ytd-watch-flexy">\n        \n        <template is="dom-if" if="[[shouldStampChat]]" restamp="" id="chat-template" class="style-scope ytd-watch-flexy">\n          <ytd-live-chat-frame id="chat" data="[[data.contents.twoColumnWatchNextResults.conversationBar]]" force-dark-theme="[[forceDarkPanelTheme]]" no-border="[[noBorderOnChat]]" theater-watch-while="[[watchWhilePanelsActive]]" class="style-scope ytd-watch-flexy">\n          </ytd-live-chat-frame>\n        </template>\n      </div>\n      <div id="related" class="style-scope ytd-watch-flexy">\n        <div id="player-ads" class="style-scope ytd-watch-flexy"></div>\n        <ytd-watch-next-secondary-results-renderer can-show-more="[[watchNextCanShowMore]]" data="[[watchNextSecondaryResults]]" disable-upgrade$="[[!watchNextSecondaryResults]]" hidden="[[!watchNextSecondaryResults]]" is-two-columns="[[isTwoColumns_]]" player-data="[[playerData]]" show-more-button="[[!isTwoColumns_]]" shown-items="[[watchNextShownItems]]" on-can-show-more-changed="updateWatchNextCanShowMoreFromBinding" on-shown-items-changed="updateShownItemsFromBinding" class="style-scope ytd-watch-flexy">\n        </ytd-watch-next-secondary-results-renderer>\n        <div id="related-skeleton" class="watch-skeleton style-scope ytd-watch-flexy"></div>\n      </div>\n    </div>\n  </div>\n</div>\n\n<div id="survey" class="style-scope ytd-watch-flexy"></div>\n<div id="engagement-panel-scrim" hidden="[[!showEngagementPanelScrim_]]" class="style-scope ytd-watch-flexy"></div>\n');
S.content.insertBefore(_.t().content.cloneNode(!0),S.content.firstChild);a25=S}S=a25;return S}}});
A_.prototype.updateRetroModeReduxValue=A_.prototype.updateRetroModeReduxValue;A_.prototype.updateScrollTopValue=A_.prototype.updateScrollTopValue;A_.prototype.updateFullscreenValue=A_.prototype.updateFullscreenValue;A_.prototype.updateTheaterValue=A_.prototype.updateTheaterValue;_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],A_.prototype,"ytRendererBehavior",void 0);_.x([_.F(_.eL.YtComponentBehavior),_.E("design:type",Object)],A_.prototype,"ytComponentBehavior",void 0);
_.x([_.F(_.l2L.YtdWatchBehavior),_.E("design:type",Object)],A_.prototype,"ytdWatchBehavior",void 0);_.x([_.F(_.Xh),_.E("design:type",Object)],A_.prototype,"ytdReduxBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],A_.prototype,"data",void 0);_.x([_.g(),_.E("design:type",Object)],A_.prototype,"playerData",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],A_.prototype,"flexy",void 0);
_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],A_.prototype,"roundedInfoPanel",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],A_.prototype,"viewTransitionEnabled",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],A_.prototype,"smallerChatMinHeight",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],A_.prototype,"cinematicTheaterMode",void 0);
_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],A_.prototype,"transparentTheaterMode",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],A_.prototype,"cinematicFullscreen",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],A_.prototype,"useLargerMaxPlayerValue",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],A_.prototype,"cinematicFullscreenV2",void 0);
_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],A_.prototype,"isDarkTheme",void 0);_.x([_.g(),_.E("design:type",Object)],A_.prototype,"defaultCollapsePlaylist",void 0);_.x([_.g({selector:_.sK}),_.E("design:type",Object)],A_.prototype,"theaterValue",void 0);_.x([_.g({selector:_.eS}),_.E("design:type",Object)],A_.prototype,"fullscreenValue",void 0);_.x([_.g({selector:_.hw}),_.E("design:type",Object)],A_.prototype,"scrollTopValue",void 0);
_.x([_.g({selector:_.F1}),_.E("design:type",Object)],A_.prototype,"miniplayerIsActive",void 0);_.x([_.g({selector:function(S){return S.watch.isWatchRetroMode}}),
_.E("design:type",Object)],A_.prototype,"retroModeReduxValue",void 0);_.x([_.BN("ytd-player"),_.E("design:type",HTMLElement)],A_.prototype,"ytdPlayer",void 0);_.x([_.O2("#playlist"),_.E("design:type",HTMLElement)],A_.prototype,"JSC$20484_ytdPlaylistPanelRenderer",void 0);_.x([_.BN("ytd-comments"),_.E("design:type",HTMLElement)],A_.prototype,"ytdComments",void 0);_.x([_.O2("#primary"),_.E("design:type",HTMLElement)],A_.prototype,"primary",void 0);
_.x([_.O2("#secondary"),_.E("design:type",HTMLElement)],A_.prototype,"secondary",void 0);_.x([_.O2("#player-container"),_.E("design:type",HTMLElement)],A_.prototype,"playerContainer",void 0);_.x([_.O2("#cinematics"),_.E("design:type",HTMLElement)],A_.prototype,"JSC$20484_cinematics",void 0);_.x([_.T4("theaterValue"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],A_.prototype,"updateTheaterValue",null);
_.x([_.T4("fullscreenValue"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],A_.prototype,"updateFullscreenValue",null);_.x([_.T4("scrollTopValue"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],A_.prototype,"updateScrollTopValue",null);_.x([_.T4("retroModeReduxValue"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],A_.prototype,"updateRetroModeReduxValue",null);
_.x([_.g({reflectToAttribute:!0}),_.e("data"),_.E("design:type",Object),_.E("design:paramtypes",[])],A_.prototype,"cinematicLightTheme",null);A_=_.x([_.f({is:"ytd-watch-flexy"})],A_);_.A4.registerService(_.NgX,A_);
_.g5();
}catch(e){_._DumpException(e)}
try{
_.e$("nmfa2d");
var tIE;var xN=function(){var S=_.w.apply(this,arguments)||this;S.hidden=!1;S.errorScreen=null;S.playlistData={};return S};
_.r(xN,_.w);_.M=xN.prototype;_.M.getPlayer=function(){return this.ytdPlayer};
_.M.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:_.ZT(["aa","eocs"])}}};
_.M.onActiveChanged=function(){_.vJ().dispatch(_.vbd(this.ytPageBehavior.active))};
_.M.playerDataChanged=function(){var S;(S=this.watchController)==null||S.setPlayerResponse(this.playerData)};
_.M.dataChanged=function(){var S;(S=this.watchController)==null||S.setWatchNextResponse(this.data)};
_.M.sizeChanged=function(){var S,p;(p=(S=this.metadata).resize)==null||p.call(S)};
_.M.attached=function(){this.watchController=new _.fy(this);this.playerData&&this.watchController.setPlayerResponse(this.playerData);this.data&&this.watchController.setWatchNextResponse(this.data)};
_.M.detached=function(){_.t9(this.watchController);this.watchController=void 0};
_.M.getPlayerContainer=function(){return this.playerContainer};
_.M.getElement=function(S){switch(S){case "PLAYER":return this.ytdPlayer;case "PLAYLIST_PANEL":return this.JSC$20436_playlistPanel}};
_.M.provideRenderingData=function(S,p){switch(S){case "SINGLE_COLUMN_CONTENTS":this.singleColumnContents=p;break;case "ERROR_SCREEN":this.errorScreen=p!=null?p:null;break;case "PRIMARY_INFO":this.videoPrimaryInfoRenderer=p;break;case "SECONDARY_INFO":this.videoSecondaryInfoRenderer=p;break;case "COMMENTS_ENTRY_POINT_HEADER":this.commentsEntryPointHeaderRenderer=p;break;case "RICH_METADATA":this.richMetadataRowContainer=p;break;case "CLARIFICATION":this.clarificationData=p;break;case "PLAYLIST":this.playlistData=
p!=null?p:{};break;case "MERCH_SHELF":this.merchShelf=p;break;case "TICKET_SHELF":this.ticketShelf=p;break;case "LIMITED_STATE":this.limitedState=p;break;case "DONATION_SHELF":this.donationShelf=p;break;case "ALERTS":this.alerts=p}};
_.$u.Object.defineProperties(xN.prototype,{hasPlaylistData:{configurable:!0,enumerable:!0,get:function(){return this.playlistData&&!!Object.keys(this.playlistData).length}},
hasChat:{configurable:!0,enumerable:!0,get:function(){var S,p,U;return!this.hidden&&!!((S=this.data)==null?0:(p=S.contents)==null?0:(U=p.twoColumnWatchNextResults)==null?0:U.conversationBar)}}});
xN.prototype.sizeChanged=xN.prototype.sizeChanged;xN.prototype.dataChanged=xN.prototype.dataChanged;xN.prototype.playerDataChanged=xN.prototype.playerDataChanged;xN.prototype.onActiveChanged=xN.prototype.onActiveChanged;_.x([_.F(_.R1.YtPageBehavior),_.E("design:type",Object)],xN.prototype,"ytPageBehavior",void 0);_.x([_.F(_.eL.YtComponentBehavior),_.E("design:type",Object)],xN.prototype,"ytComponentBehavior",void 0);
_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],xN.prototype,"ytRendererBehavior",void 0);_.x([_.F(_.qH.YtRendererstamperBehavior),_.E("design:type",Object)],xN.prototype,"ytRendererstamperBehavior",void 0);_.x([_.F(_.Xh),_.E("design:type",Object)],xN.prototype,"ytdReduxBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],xN.prototype,"data",void 0);_.x([_.g(),_.E("design:type",Object)],xN.prototype,"playerData",void 0);
_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],xN.prototype,"hidden",void 0);_.x([_.O2("#ytd-player"),_.E("design:type",HTMLElement)],xN.prototype,"ytdPlayer",void 0);_.x([_.O2("#player-container"),_.E("design:type",HTMLElement)],xN.prototype,"playerContainer",void 0);_.x([_.O2("#metadata"),_.E("design:type",Object)],xN.prototype,"metadata",void 0);_.x([_.O2("#playlist"),_.E("design:type",HTMLElement)],xN.prototype,"JSC$20436_playlistPanel",void 0);
_.x([_.g({selector:_.h3L,reflectToAttribute:!0}),_.E("design:type",Object)],xN.prototype,"fixie",void 0);_.x([_.g({selector:_.G$L,reflectToAttribute:!0}),_.E("design:type",Object)],xN.prototype,"singleColumn",void 0);_.x([_.g({selector:function(S){return _.sK(S)&&!_.eS(S)},
reflectToAttribute:!0}),_.E("design:type",Object)],xN.prototype,"theater",void 0);_.x([_.g({selector:_.eS,reflectToAttribute:!0}),_.E("design:type",Object)],xN.prototype,"fullscreen",void 0);_.x([_.g({selector:_.obJ}),_.E("design:type",Object)],xN.prototype,"windowSize",void 0);_.x([_.g(),_.E("design:type",Object)],xN.prototype,"singleColumnContents",void 0);_.x([_.g(),_.E("design:type",Object)],xN.prototype,"errorScreen",void 0);_.x([_.g(),_.E("design:type",Object)],xN.prototype,"playlistData",void 0);
_.x([_.g(),_.E("design:type",Object)],xN.prototype,"videoPrimaryInfoRenderer",void 0);_.x([_.g(),_.E("design:type",Object)],xN.prototype,"videoSecondaryInfoRenderer",void 0);_.x([_.g(),_.E("design:type",Object)],xN.prototype,"richMetadataRowContainer",void 0);_.x([_.g(),_.E("design:type",Object)],xN.prototype,"clarificationData",void 0);_.x([_.g(),_.E("design:type",Object)],xN.prototype,"commentsEntryPointHeaderRenderer",void 0);_.x([_.g(),_.E("design:type",Object)],xN.prototype,"ticketShelf",void 0);
_.x([_.g(),_.E("design:type",Object)],xN.prototype,"merchShelf",void 0);_.x([_.g(),_.E("design:type",Object)],xN.prototype,"donationShelf",void 0);_.x([_.g(),_.E("design:type",Object)],xN.prototype,"limitedState",void 0);_.x([_.g(),_.E("design:type",Object)],xN.prototype,"alerts",void 0);_.x([_.e("playlistData"),_.E("design:type",Object),_.E("design:paramtypes",[])],xN.prototype,"hasPlaylistData",null);
_.x([_.e("data","hidden"),_.E("design:type",Boolean),_.E("design:paramtypes",[])],xN.prototype,"hasChat",null);_.x([_.T4("active"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],xN.prototype,"onActiveChanged",null);_.x([_.T4("playerData"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],xN.prototype,"playerDataChanged",null);
_.x([_.T4("data"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],xN.prototype,"dataChanged",null);_.x([_.T4("windowSize","singleColumn"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],xN.prototype,"sizeChanged",null);
_.C(xN,"ytd-watch-fixie",function(){if(tIE===void 0){var S=document.createElement("template");_.h(S,'\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');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);tIE=S}S=tIE;return S},{mode:1});_.A4.registerService(_.iod,xN);
_.g5();
}catch(e){_._DumpException(e)}
try{
_.e$("xwEKAe");
var rbY=function(S){var p=_.D9();if(p.getFlag(202))p=p.getFlag(201);else{var U;p=(S==null?void 0:(U=S.config)==null?void 0:U.settingOnByDefault)!==void 0?S.config.settingOnByDefault:!_.y("web_shorts_cinematics_disabled_by_default")}return p},GZJ=function(S){var p=_.D9();
_.zI(0,201,S);_.zI(0,202,!0);p.save()},hQJ=function(S){return(S=_.Vyw(S))?_.WvN(S):0},RQX=function(S){return S.shorts.isSmallScreenSqueezeback},Fyn=function(S){return S.shorts.isPlaybackStarted},Xfo=function(S,p,U,Y){S=p-S;
U=Y-U;return Math.sqrt(S*S+U*U)},P2E=function(S,p){S&&_.tW().resolve(_.cQ).resolveCommand(S,{forceClickLogging:!0,
form:{element:p}})},ZVd=function(S,p,U,Y){S=p-S;
U=Y-U;return Math.sqrt(S*S+U*U)},sNP=function(S,p){S&&_.tW().resolve(_.cQ).resolveCommand(S,{forceClickLogging:!0,
form:{element:p}})},eQL=function(S){S.unsubscribeFromStore=_.Wt(S.storeWithShorts,_.JWY,function(p){S.initOrDisposeActiveModules(p);
!p&&S.storeWithShorts.getState().shorts.isFullscreen&&(_.qU(document.documentElement),S.storeWithShorts.dispatch(_.bUX(!1)))});
S.initOrDisposeActiveModules(_.JWY(S.storeWithShorts.getState()))},gI5=function(S){var p=_.tW().resolve(_.Ts);
p.rootElement=S;eQL(p)},ueT=function(){return _.tW().resolve(_.Ts).dismissedIndices},wf5=function(S){return _.S4({type:"SET_IS_WATCH_WHILE_MODE",
payload:{isWatchWhileMode:S}})},ly5=function(S){return _.S4({type:"SET_IS_SMALL_SCREEN_SQUEEZEBACK",
payload:{isSmallScreenSqueezeback:S}})},M7=function(S){return _.S4({type:"SET_IS_PLAYBACK_STARTED",
payload:{isPlaybackStarted:S}})},Ij=function(S,p){if(S instanceof Ij)this.array_=S.array_;
else{var U;if(U=_.Ae(S))a:{for(var Y=U=0;Y<S.length;Y++){if(!_.Ae(S[Y])||U>0&&S[Y].length!=U){U=!1;break a}for(var L=0;L<S[Y].length;L++)if(typeof S[Y][L]!=="number"){U=!1;break a}U==0&&(U=S[Y].length)}U=U!=0}if(U)this.array_=_.qG(S);else if(S instanceof _.OF)this.array_=ayP(S.height,S.width);else if(typeof S==="number"&&typeof p==="number"&&S>0&&p>0)this.array_=ayP(S,p);else throw Error("Xl");}this.size_=new _.OF(this.array_[0].length,this.array_.length)},fyX=function(S,p,U){for(var Y=0;Y<S.getSize().height;Y++)for(var L=
0;L<S.getSize().width;L++)p.call(U,S.array_[Y][L],Y,L,S)},C2s=function(S,p){var U=new Ij(S.getSize());
fyX(S,function(Y,L,I){U.array_[L][I]=p.call(void 0,Y,L,I,S)});
return U},ayP=function(S,p){for(var U=[],Y=0;Y<S;Y++){U[Y]=[];
for(var L=0;L<p;L++)U[Y][L]=0}return U};
Ij.prototype.add=function(S){if(!_.qJ5(this.size_,S.getSize()))throw Error("Yl");return C2s(this,function(p,U,Y){return p+S.array_[U][Y]})};
Ij.prototype.equals=function(S,p){if(this.size_.width!=S.size_.width||this.size_.height!=S.size_.height)return!1;p=p||0;for(var U=0;U<this.size_.height;U++)for(var Y=0;Y<this.size_.width;Y++)if(!_.BFE(this.array_[U][Y],S.array_[U][Y],p))return!1;return!0};
Ij.prototype.getSize=function(){return this.size_};
var dp=function(S,p,U){return p>=0&&p<S.size_.height&&U>=0&&U<S.size_.width?S.array_[p][U]:null};
Ij.prototype.isSquare=function(){return this.size_.width==this.size_.height};
var VM=function(S,p,U,Y){if(!(p>=0&&p<S.size_.height&&U>=0&&U<S.size_.width))throw Error("Zl`"+p+"`"+U+"`"+S.size_.height+"`"+S.size_.width);S.array_[p][U]=Y};
Ij.prototype.multiply=function(S){if(S instanceof Ij){if(this.size_.width!=S.getSize().height)throw Error("$l");return xqd(this,S)}if(typeof S==="number")return EIt(this,S);throw Error("am");};
var xqd=function(S,p){var U=new Ij(S.size_.height,p.getSize().width);fyX(U,function(Y,L,I){for(var V=Y=0;V<this.size_.width;V++)Y+=dp(this,L,V)*dp(p,V,I);VM(U,L,I,Y)},S);
return U},EIt=function(S,p){return C2s(S,function(U){return U*p})};var mq5=new _.v("inlineSurveyRenderer");var oIJ=new _.v("interstitialViewModel");var vIq=new _.v("reelNavigateCommand");var $qX=new _.v("reelNonVideoContentDismissalCommand");var iV5=new _.v("showReelsCommentsOverlayCommand");var NUX=new _.v("shortsSuggestedActionViewModel");var BUi=new _.v("videoInteractionPopUpRenderer");var qqP;var Abo;var t2n;var T6=function(){var S=_.w.apply(this,arguments)||this;S.ctaVisualElement=null;S.currentCsn=null;return S};
_.r(T6,_.w);_.M=T6.prototype;_.M.onDataChanged=function(){this.maybeLogShows()};
_.M.computeButtonShape=function(){var S=this;if(this.data)return{buttonText:_.mA(this.data.text),state:"active",onTap:function(){S.onTap()},
iconPosition:"leading",style:"overlay-dark",type:"tonal",size:"M"}};
_.M.maybeCreateCtaVe=function(){var S;if((S=this.data)!=null&&S.badgeInteractionLogging){var p;if(S=(p=this.data.badgeInteractionLogging)==null?void 0:p.trackingParams)this.ctaVisualElement=_.JS(S)}};
_.M.maybeLogClicks=function(){this.currentCsn=_.X$(this.ytRendererBehavior.getScreenLayer());this.maybeCreateCtaVe();this.ctaVisualElement&&this.currentCsn&&_.xd(this.currentCsn,this.ctaVisualElement)};
_.M.maybeLogShows=function(){this.currentCsn=_.X$(this.ytRendererBehavior.getScreenLayer());this.maybeCreateCtaVe();this.ctaVisualElement&&this.currentCsn&&_.fp(this.currentCsn,[this.ctaVisualElement])};
_.M.onTap=function(){var S;if((S=this.data)!=null&&S.onClickCommand){var p;this.ytComponentBehavior.resolveCommand((p=this.data)==null?void 0:p.onClickCommand);this.maybeLogClicks()}};
T6.prototype.onDataChanged=T6.prototype.onDataChanged;_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],T6.prototype,"ytRendererBehavior",void 0);_.x([_.F(_.eL.YtComponentBehavior),_.E("design:type",Object)],T6.prototype,"ytComponentBehavior",void 0);_.x([_.g({}),_.E("design:type",Object)],T6.prototype,"data",void 0);_.x([_.T4("data"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],T6.prototype,"onDataChanged",null);
T6=_.x([_.f({disableElementRegistration:!0,is:"ytd-shopping-overlay-badge-renderer"})],T6);
_.C(T6,"ytd-shopping-overlay-badge-renderer",function(){if(t2n!==void 0)return t2n;var S=document.createElement("template");_.h(S,'\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');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);return t2n=S},{mode:1});_.qm(_.iyt,"reel-sound-metadata-view-model",{props:{data:_.BX,overlayDensity:_.BX}});_.qm(_.unX,"player-disclosure-view-model",{props:{data:_.x2}});_.qm(_.QNP,"pivot-button-view-model",{props:{data:_.BX,className:_.BX}});_.qm(_.nIQ,"reel-action-bar-view-model",{props:{data:_.x2,buttonShapeOverrideables:_.x2}});_.qm(_.$k(function(S){function p(){var Je,GG,Zw,Ru,sX=(GG=_.b((Je=N())==null?void 0:Je.command,_.DH))==null?void 0:(Zw=GG.item)==null?void 0:(Ru=Zw.notificationTextRenderer)==null?void 0:Ru.successResponseText;if(sX)_.St(Y.value,"yt-open-popup-action",[_.iM(sX),Y.value]);else if(m())P2E(m(),G.value);else{var mq;P2E((mq=N())==null?void 0:mq.command,G.value);document.dispatchEvent(new CustomEvent("yt-shorts-reset"))}}
var U=S.data;var Y=_.vH();S=_.d(_.kj("0px",void 0,"O1N7Ce"));var L=S.next().value,I=S.next().value;S=_.d(_.kj("0px",void 0,"tTDBdb"));var V=S.next().value,W=S.next().value;S=_.d(_.kj(0,void 0,"fh8Zkc"));var O=S.next().value,D=S.next().value;S=_.d(_.kj(0,void 0,"CUjqGd"));var z=S.next().value,Q=S.next().value,J=function(){var Je;if(((Je=_.UK())==null?void 0:Je.getPlayerState())!==-1){Y.value.style.display="inherit";var GG;(GG=_.UK())==null||GG.removeEventListener("onStateChange",J)}K()},K=function(){var Je=
document.querySelector("video");
if(Je){D(Je.getBoundingClientRect().width);Q(Je.getBoundingClientRect().height);var GG;I((Je==null?void 0:(GG=Je.style)==null?void 0:GG.left)||"0px");var Zw;W((Je==null?void 0:(Zw=Je.style)==null?void 0:Zw.top)||"0px")}};
_.R8(function(){var Je,GG,Zw;if(((Je=_.UK())==null?void 0:Je.getPlayerState())===-1&&Math.round(((Zw=(GG=_.UK())==null?void 0:GG.getVideoAspectRatio())!=null?Zw:0)*100)!==Math.round(O()/z()*100)){Y.value.style.display="none";var Ru,sX;Q(O()/((sX=(Ru=_.UK())==null?void 0:Ru.getVideoAspectRatio())!=null?sX:1))}},"VB5m5");
_.hW(function(){var Je;(Je=_.UK())==null||Je.addEventListener("onStateChange",J);window.addEventListener("resize",K);K();var GG,Zw,Ru;if((Ru=(GG=U())==null?void 0:(Zw=GG.regions)==null?void 0:Zw[0])==null||!Ru.transformationMatrix)throw Error("em");var sX;if((sX=U())==null?0:sX.trackingParams){var mq;_.HX().graftServerVe((mq=U().trackingParams)!=null?mq:"")}_.FG(function(){var au;(au=_.UK())==null||au.removeEventListener("onStateChange",J);window.removeEventListener("resize",K)})});
var G=_.vH(),X=_.d(_.kj(!1,void 0,"TPsTce"));S=X.next().value;var Z=X.next().value,l=_.d(_.kj(!1,void 0,"Uz6CHf"));X=l.next().value;var a=l.next().value,N=function(){var Je;return _.b((Je=U())==null?void 0:Je.popUp,BUi)},m=function(){var Je;
return(Je=U())==null?void 0:Je.command},A=function(){return _.b(m(),_.OK)!==void 0};
l=_.kL(function(){p();return!1});
var q={},TG={};return _.H("yt-player-overlay-video-interactions",{el:Y},_.H("svg",{"on:mouseover":_.kL(function(){A()&&Z(!0);a(!0);return!1}),
"on:mouseout":_.kL(function(){Z(!1);a(!1);return!1}),
"on:keydown":_.kL(function(Je){Je.key==="Enter"&&p();return!1}),
"on:focus":_.kL(function(){A()&&Z(!0);return!1}),
"on:blur":_.kL(function(){A()&&Z(!1);return!1}),
el:G,tabindex:0,"aria-label":function(){var Je;return(Je=U())==null?void 0:Je.a11yString},
id:"player-overlay-video-interaction-svg",class:_.VD("yt-player-overlay-video-interactions__interactions-svg",(q["yt-player-overlay-video-interactions__interactions-svg-hover"]=S,q),(TG["yt-player-overlay-video-interactions__interactions-svg-hide-outline"]=X,TG)),role:"button",style:function(){var Je,GG,Zw,Ru=(Zw=(Je=U())==null?void 0:(GG=Je.regions)==null?void 0:GG[0].transformationMatrix)!=null?Zw:[];Je=O();GG=z();Zw=[];for(var sX=0,mq=-1;sX<Ru.length;sX++)sX%3===0&&(mq++,Zw[mq]=[]),Zw[mq].push(Ru[sX]);
Ru=new Ij(Zw);Zw=new Ij([[0,1,1,0],[0,0,1,1],[1,1,1,1]]);Zw=Ru.multiply(Zw);Ru=new Ij([[0,0],[0,0],[0,0],[0,0]]);for(sX=0;sX<Zw.getSize().width;sX++){mq=dp(Zw,0,sX);var au=dp(Zw,1,sX);if(mq===null||au===null)throw Error("dm`"+(sX+1).toString());VM(Ru,sX,0,mq*Je);VM(Ru,sX,1,au*GG)}Je=dp(Ru,0,0);sX=dp(Ru,1,0);GG=dp(Ru,0,1);mq=dp(Ru,1,1);if(Je===null||sX===null||GG===null||mq===null)throw Error("bm");Zw=Xfo(Je,sX,GG,mq);au=dp(Ru,3,0);Ru=dp(Ru,3,1);if(au===null||Ru===null)throw Error("cm");Ru=Xfo(Je,
au,GG,Ru);mq=(Number((mq*-1).toFixed(2))-Number((GG*-1).toFixed(2)))/(Number(sX.toFixed(2))-Number(Je.toFixed(2)));au=Math.atan(mq)*180/Math.PI;sX=mq===Number.POSITIVE_INFINITY?-90:mq===Number.NEGATIVE_INFINITY?90:Object.is(mq,-0)?180:mq===0?0:mq>0?au*-1:Je<sX?au*-1:Math.abs(au)+180;return"left:calc("+Je+"px + "+L()+"); top:calc("+(GG+"px + "+V()+"); width:")+(Zw+"px; height:")+(Ru+"px; transform:rotate(")+(sX+"deg);")},
"on:click":l}))},"Gi"),"yt-player-overlay-video-interactions",{props:{data:_.x2}});_.qm(_.CJd,"yt-reel-metapanel-view-model",{props:{data:_.x2,overlayDensity:_.x2}});var cbP=_.$k(function(S){var p=S.children;var U=S.region;var Y=_.vH();S=_.d(_.kj("0px",void 0,"H14H5c"));var L=S.next().value,I=S.next().value;S=_.d(_.kj("0px",void 0,"Mn8Uvf"));var V=S.next().value,W=S.next().value;S=_.d(_.kj(0,void 0,"QQCIqc"));var O=S.next().value,D=S.next().value;S=_.d(_.kj(0,void 0,"HyEvh"));var z=S.next().value,Q=S.next().value,J=function(){var Z;if(((Z=_.UK())==null?void 0:Z.getPlayerState())!==-1){Y.value.style.display="inherit";var l;(l=_.UK())==null||l.removeEventListener("onStateChange",
J)}K()},K=function(){var Z=document.querySelector("video");
if(Z){D(Z.getBoundingClientRect().width);Q(Z.getBoundingClientRect().height);var l;I((Z==null?void 0:(l=Z.style)==null?void 0:l.left)||"0px");var a;W((Z==null?void 0:(a=Z.style)==null?void 0:a.top)||"0px")}};
_.R8(function(){var Z,l,a;if(((Z=_.UK())==null?void 0:Z.getPlayerState())===-1&&Math.round(((a=(l=_.UK())==null?void 0:l.getVideoAspectRatio())!=null?a:0)*100)!==Math.round(O()/z()*100)){Y.value.style.display="none";var N,m;Q(O()/((m=(N=_.UK())==null?void 0:N.getVideoAspectRatio())!=null?m:1))}},"DYkOCf");
var G=function(){K()},X;
_.hW(function(){K();var Z;if(!(U==null?0:(Z=U())==null?0:Z.transformationMatrix))throw Error("em");var l;(l=_.UK())==null||l.addEventListener("onStateChange",J);window.ResizeObserver?(X=new ResizeObserver(_.OC(G,17)),X.observe(Y.value)):window.addEventListener("resize",K);_.FG(function(){var a;(a=_.UK())==null||a.removeEventListener("onStateChange",J);X?X.disconnect():window.removeEventListener("resize",K)})});
return _.H("yt-overlay-sticker",{el:Y,style:function(){var Z,l,a=(l=U==null?void 0:(Z=U())==null?void 0:Z.transformationMatrix)!=null?l:[];Z=O();l=z();for(var N=[],m=0,A=-1;m<a.length;m++)m%3===0&&(A++,N[A]=[]),N[A].push(a[m]);a=new Ij(N);N=new Ij([[0,1,1,0],[0,0,1,1],[1,1,1,1]]);N=a.multiply(N);a=new Ij([[0,0],[0,0],[0,0],[0,0]]);for(m=0;m<N.getSize().width;m++){A=dp(N,0,m);var q=dp(N,1,m);if(A===null||q===null)throw Error("dm`"+(m+1).toString());VM(a,m,0,A*Z);VM(a,m,1,q*l)}Z=dp(a,0,0);m=dp(a,1,
0);l=dp(a,0,1);A=dp(a,1,1);if(Z===null||m===null||l===null||A===null)throw Error("bm");N=ZVd(Z,m,l,A);q=dp(a,3,0);a=dp(a,3,1);if(q===null||a===null)throw Error("cm");a=ZVd(Z,q,l,a);A=(Number((A*-1).toFixed(2))-Number((l*-1).toFixed(2)))/(Number(m.toFixed(2))-Number(Z.toFixed(2)));q=Math.atan(A)*180/Math.PI;m=A===Number.POSITIVE_INFINITY?-90:A===Number.NEGATIVE_INFINITY?90:Object.is(A,-0)?180:A===0?0:A>0?q*-1:Z<m?q*-1:Math.abs(q)+180;return"left:calc("+Z+"px + "+L()+"); top:calc("+(l+"px + "+V()+"); width:")+
(N+"px; height:")+(a+"px; transform:rotate(")+(m+"deg);")},
class:"ytOverlayStickerHost"},p)},"Hi");_.qm(_.$k(function(S){function p(){var K,G,X,Z,l=(G=_.b((K=O())==null?void 0:K.command,_.DH))==null?void 0:(X=G.item)==null?void 0:(Z=X.notificationTextRenderer)==null?void 0:Z.successResponseText;if(l)_.St(Y.value,"yt-open-popup-action",[_.iM(l),Y.value]);else if(D())sNP(D(),Y.value);else{var a;sNP((a=O())==null?void 0:a.command,Y.value);document.dispatchEvent(new CustomEvent("yt-shorts-reset"))}}
var U=S.data;_.hW(function(){var K;if((K=U())==null?0:K.trackingParams){var G;_.HX().graftServerVe((G=U().trackingParams)!=null?G:"")}});
var Y=_.vH(),L=_.d(_.kj(!1,void 0,"Gjm8Mb"));S=L.next().value;var I=L.next().value,V=_.d(_.kj(!1,void 0,"JN7Pdb"));L=V.next().value;var W=V.next().value,O=function(){var K;return _.b((K=U())==null?void 0:K.popUp,BUi)},D=function(){var K;
return(K=U())==null?void 0:K.command},z=function(){return _.b(D(),_.OK)!==void 0};
V=_.kL(function(){p();return!1});
var Q={},J={};return _.H("yt-player-overlay-interaction",null,_.H(cbP,{region:function(){var K,G;return(K=U())==null?void 0:(G=K.regions)==null?void 0:G[0]}},_.H("svg",{"on:mouseover":_.kL(function(){z()&&I(!0);
W(!0);return!1}),
"on:mouseout":_.kL(function(){I(!1);W(!1);return!1}),
"on:keydown":_.kL(function(K){K.key==="Enter"&&p();return!1}),
"on:focus":_.kL(function(){z()&&I(!0);return!1}),
"on:blur":_.kL(function(){z()&&I(!1);return!1}),
el:Y,tabindex:0,"aria-label":function(){var K;return(K=U())==null?void 0:K.a11yString},
id:"player-overlay-video-interaction-svg",class:_.VD("ytPlayerOverlayInteractionInteractionsSvg",(Q.ytPlayerOverlayInteractionInteractionsSvgHover=S,Q),(J.ytPlayerOverlayInteractionInteractionsSvgHideOutline=L,J)),role:"button","on:click":V})))},"Ii"),"yt-player-overlay-interaction",{props:{data:_.x2}});var W5=function(){var S=_.w.apply(this,arguments)||this;S.showScrubber=!1;S.isWatchWhileMode=!1;S.enableRemixButton=_.y("web_enable_shorts_remix_handoff_ep");S.enableAnchoredPanel=_.y("desktop_shorts_v2_anchored_panel");S.enableNewStickers=_.y("use_shorts_sticker_overlay_web");S.anchoredPanelActive=!1;S.enableLivingroomLayout=_.y("reels_enable_livingroom_layout");S.enablePlayerMetadataContainer=_.y("reels_web_enable_metadata_container");S.enableSqueezebackPanels=_.y("web_shorts_enable_squeezeback_panels");
S.isSqueezebackActive=!1;S.smallScreenSqueezeback=!1;S.isPlayerStarted=!1;S.overlayDensity=0;S.isOverlay=!1;S.isImmersive=!1;S.isImmersiveHorizontal=!1;S.isFullscreen=!1;S.onWindowResized=function(){var p;S.set("isImmersive",((p=window.getComputedStyle(S.hostElement))==null?void 0:p.getPropertyValue("--immersive-mode-on"))==="1");S.set("isImmersiveHorizontal",S.isImmersive&&S.enableLivingroomLayout&&!S.isWatchWhileMode)};
return S};
_.r(W5,_.w);_.M=W5.prototype;_.M.updateIsOverlay=function(S){this.isOverlay=S.detail.value};
_.M.computeIsShortsOverlay=function(){this.enableLivingroomLayout&&(this.isWatchWhileMode?(this.isImmersiveHorizontal=!1,this.isOverlay=!0):(!this.isOverlay&&this.isImmersive&&(this.isImmersiveHorizontal=!0),this.isOverlay=!1));if(_.y("web_enable_flexible_overlay")||_.y("web_enable_format_first")||_.y("web_enable_format_first_organic_only"))this.isOverlay=this.overlayDensity===2;return this.isWatchWhileMode&&!this.enableAnchoredPanel&&!this.enableLivingroomLayout||this.isOverlay};
_.M.computeIsShortsImmersive=function(){return!this.isWatchWhileMode&&this.isImmersive&&!this.anchoredPanelActive};
_.M.onIsActiveChanged=function(){this.isActive||this.setEmptyOverlayMetadata()};
_.M.computeActionBarButtonOverride=function(){return{style:this.isOverlay||this.isWatchWhileMode&&!this.enableAnchoredPanel?"overlay-dark":"mono",iconPosition:"icon-with-label",size:"L"}};
_.M.computeButtonOverride=function(){return{style:this.isOverlay||this.isWatchWhileMode&&!this.enableAnchoredPanel?"overlay-dark":"mono",type:"tonal",iconPosition:"icon-with-label",size:"L"}};
_.M.attached=function(){window.addEventListener("resize",this.onWindowResized);this.onWindowResized()};
_.M.detached=function(){window.removeEventListener("resize",this.onWindowResized)};
_.M.ready=function(){this.get("data.likeButton")||this.get("data.viewCommentsButton")||this.get("data.shareButton")||this.get("data.remixButton")||this.get("data.menu")||this.get("data.subscribeButtonRenderer")||this.setFakeLoadingButtons();this.hostElement.style.setProperty("--metadata-justify-content",_.Ug("reels_metadata_justified_content")||"flex-start");this.hostElement.style.setProperty("--action-justify-content",_.Ug("reels_action_justified_content")||"flex-start")};
_.M.configureRendererStamper=function(){return{"data.pivotButton":{id:"pivot-button",mapping:{pivotButtonViewModel:{component:"pivot-button-view-model",params:{className:"ytd-reel-player-overlay-renderer"}}},renderPriority:0},"data.badge":{id:"badge",mapping:{metadataBadgeRenderer:{component:"ytd-badge-supported-renderer",properties:{topStandaloneBadge:"[[data.badge]]"}}},renderPriority:0},"data.disclosure":{id:"disclosure",mapping:{playerDisclosureViewModel:{component:"player-disclosure-view-model"}},
renderPriority:0},"data.infoPanel":{id:"info-panel",mapping:{infoPanelContainerRenderer:{component:"ytd-info-panel-container-renderer",params:{roundedContainer:!1}}},renderPriority:0}}};
_.M.setFakeLoadingButtons=function(){this.set("data.likeButton",{likeButtonRenderer:{likesAllowed:!0,likeStatus:"INDIFFERENT",likeCountText:{simpleText:_.Oh("LIKE_LABEL",void 0,"Like")},dislikeCountText:{simpleText:_.Oh("DISLIKE_LABEL",void 0,"Dislike")}}});this.set("data.viewCommentsButton",{buttonRenderer:{icon:{iconType:"SHORTS_COMMENT"},text:{simpleText:_.Oh("COMMENT_LABEL",void 0,"Comment")}}});this.set("data.shareButton",{buttonRenderer:{icon:{iconType:"SHORTS_SHARE"},text:{simpleText:_.Oh("SHARE_LABEL",
void 0,"Share")}}});_.y("web_enable_shorts_remix_handoff_ep")&&this.set("data.remixButton",{buttonRenderer:{icon:{iconType:"REMIX_FILLED"},text:{simpleText:_.Oh("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()};
_.M.setEmptyOverlayMetadata=function(){_.y("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}))};
_.$u.Object.defineProperties(W5.prototype,{hasInfoPanel:{configurable:!0,enumerable:!0,get:function(){var S;return!((S=this.data)==null||!S.infoPanel)}}});
W5.prototype.onIsActiveChanged=W5.prototype.onIsActiveChanged;_.x([_.F(_.eL.YtComponentBehavior),_.E("design:type",Object)],W5.prototype,"ytComponentBehavior",void 0);_.x([_.F(_.qH.YtRendererstamperBehavior),_.E("design:type",Object)],W5.prototype,"ytRendererstamperBehavior",void 0);_.x([_.F(_.Xh),_.E("design:type",Object)],W5.prototype,"ytdReduxBehavior",void 0);_.x([_.F(_.uc.YtdGuideStateAwareBehavior),_.E("design:type",Object)],W5.prototype,"ytdGuideStateAwareBehavior",void 0);
_.x([_.g(),_.E("design:type",Object)],W5.prototype,"data",void 0);_.x([_.g(),_.E("design:type",Boolean)],W5.prototype,"isActive",void 0);_.x([_.g({reflectToAttribute:!0,value:!1}),_.E("design:type",Boolean)],W5.prototype,"hidden",void 0);_.x([_.g({value:!0}),_.E("design:type",Boolean)],W5.prototype,"useShortsIcon",void 0);_.x([_.g({value:"left"}),_.E("design:type",String)],W5.prototype,"buttonTooltipPosition",void 0);
_.x([_.g({value:_.y("reels_enable_livingroom_layout")?"top":"left"}),_.E("design:type",String)],W5.prototype,"likeButtonTooltipPosition",void 0);_.x([_.g({value:"none"}),_.E("design:type",String)],W5.prototype,"textTransform",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],W5.prototype,"showScrubber",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],W5.prototype,"isWatchWhileMode",void 0);
_.x([_.g({reflectToAttribute:!0}),_.e("data.infoPanel"),_.E("design:type",Object),_.E("design:paramtypes",[])],W5.prototype,"hasInfoPanel",null);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],W5.prototype,"enableRemixButton",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],W5.prototype,"enableAnchoredPanel",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],W5.prototype,"enableNewStickers",void 0);
_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],W5.prototype,"anchoredPanelActive",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],W5.prototype,"enableLivingroomLayout",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Boolean)],W5.prototype,"enablePlayerMetadataContainer",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],W5.prototype,"enableSqueezebackPanels",void 0);
_.x([_.g({selector:_.P2r,reflectToAttribute:!0}),_.E("design:type",Object)],W5.prototype,"isSqueezebackActive",void 0);_.x([_.g({selector:RQX,reflectToAttribute:!0}),_.E("design:type",Object)],W5.prototype,"smallScreenSqueezeback",void 0);_.x([_.g({selector:Fyn}),_.E("design:type",Object)],W5.prototype,"isPlayerStarted",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],W5.prototype,"overlayDensity",void 0);_.x([_.g(),_.E("design:type",Object)],W5.prototype,"isOverlay",void 0);
_.x([_.g({computed:"computeIsShortsOverlay(isOverlay, isWatchWhileMode, overlayDensity)"}),_.E("design:type",Boolean)],W5.prototype,"isShortsOverlay",void 0);_.x([_.g(),_.E("design:type",Object)],W5.prototype,"isImmersive",void 0);_.x([_.g(),_.E("design:type",Object)],W5.prototype,"isImmersiveHorizontal",void 0);_.x([_.g({computed:"computeIsShortsImmersive(isImmersive, isWatchWhileMode, anchoredPanelActive)"}),_.E("design:type",Boolean)],W5.prototype,"isShortsImmersive",void 0);
_.x([_.g({computed:"computeButtonOverride(isOverlay, isWatchWhileMode)"}),_.E("design:type",Object)],W5.prototype,"buttonOverride",void 0);_.x([_.g({computed:"computeActionBarButtonOverride(isOverlay, isWatchWhileMode)"}),_.E("design:type",Object)],W5.prototype,"actionBarButtonOverride",void 0);_.x([_.g({selector:_.Th,reflectToAttribute:!0}),_.E("design:type",Object)],W5.prototype,"isFullscreen",void 0);
_.x([_.T4("isActive"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],W5.prototype,"onIsActiveChanged",null);W5=_.x([_.f({is:"ytd-reel-player-overlay-renderer",disableElementRegistration:!0})],W5);
_.C(W5,"ytd-reel-player-overlay-renderer",function(){if(Abo!==void 0)return Abo;var S=document.createElement("template");_.h(S,'\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="[[!enableNewStickers]]" class="style-scope ytd-reel-player-overlay-renderer">\n      <template is="dom-repeat" items="[[data.videoInteractions.interactions]]" as="item" class="style-scope ytd-reel-player-overlay-renderer">\n        <yt-player-overlay-video-interactions data="[[item]]" class="style-scope ytd-reel-player-overlay-renderer">\n        </yt-player-overlay-video-interactions>\n      </template>\n    </template>\n    <template is="dom-if" if="[[enableNewStickers]]" 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">\n        </yt-player-overlay-interaction>\n      </template>\n    </template>\n    <template is="dom-if" if="[[data.metapanel]]" class="style-scope ytd-reel-player-overlay-renderer">\n      <div id="metapanel" class="style-scope ytd-reel-player-overlay-renderer">\n        <yt-reel-metapanel-view-model data="[[data.metapanel.reelMetapanelViewModel]]" overlay-density="[[overlayDensity]]" class="style-scope ytd-reel-player-overlay-renderer"></yt-reel-metapanel-view-model>\n      </div>\n    </template>\n  </div>\n  <div id="info-panel" class="style-scope ytd-reel-player-overlay-renderer"></div>\n</div>\n\n<div class="action-container style-scope ytd-reel-player-overlay-renderer">\n  <div id="actions" class="style-scope ytd-reel-player-overlay-renderer">\n    <template is="dom-if" if="[[data.buttonBar]]" class="style-scope ytd-reel-player-overlay-renderer">\n      <div id="button-bar" class="style-scope ytd-reel-player-overlay-renderer">\n        <reel-action-bar-view-model button-shape-overrideables="[[actionBarButtonOverride]]" data="[[data.buttonBar.reelActionBarViewModel]]" class="style-scope ytd-reel-player-overlay-renderer"></reel-action-bar-view-model>\n      </div>\n    </template>\n    <template is="dom-if" if="[[data.likeButton]]" class="style-scope ytd-reel-player-overlay-renderer">\n      <div id="like-button" class="button-container style-scope ytd-reel-player-overlay-renderer">\n        <ytd-like-button-renderer button-tooltip-position="[[likeButtonTooltipPosition]]" data="[[data.likeButton.likeButtonRenderer]]" overrides="[[buttonOverride]]" text-transform="[[textTransform]]" use-shorts-icon="[[useShortsIcon]]" vertical="[[!isImmersiveHorizontal]]" class="style-scope ytd-reel-player-overlay-renderer"></ytd-like-button-renderer>\n      </div>\n    </template>\n    <template is="dom-if" if="[[data.viewCommentsButton]]" class="style-scope ytd-reel-player-overlay-renderer">\n      <div id="comments-button" class="button-container style-scope ytd-reel-player-overlay-renderer">\n        <ytd-button-renderer button-tooltip-position="[[buttonTooltipPosition]]" data="[[data.viewCommentsButton.buttonRenderer]]" overrides="[[buttonOverride]]" vertically-aligned="" class="style-scope ytd-reel-player-overlay-renderer"></ytd-button-renderer>\n      </div>\n    </template>\n    <template is="dom-if" if="[[data.shareButton]]" class="style-scope ytd-reel-player-overlay-renderer">\n      <div id="share-button" class="button-container style-scope ytd-reel-player-overlay-renderer">\n        <ytd-button-renderer button-tooltip-position="[[buttonTooltipPosition]]" data="[[data.shareButton.buttonRenderer]]" overrides="[[buttonOverride]]" vertically-aligned="" class="style-scope ytd-reel-player-overlay-renderer"></ytd-button-renderer>\n      </div>\n    </template>\n    <template is="dom-if" if="[[data.remixButton]]" class="style-scope ytd-reel-player-overlay-renderer">\n      <div id="remix-button" class="button-container style-scope ytd-reel-player-overlay-renderer">\n        <ytd-button-renderer button-tooltip-position="[[buttonTooltipPosition]]" data="[[data.remixButton.buttonRenderer]]" overrides="[[buttonOverride]]" vertically-aligned="" class="style-scope ytd-reel-player-overlay-renderer"></ytd-button-renderer>\n      </div>\n    </template>\n    <div id="menu-button" class="button-container style-scope ytd-reel-player-overlay-renderer">\n      <ytd-menu-renderer data="[[data.menu.menuRenderer]]" is-overlay="[[isShortsOverlay]]" three-dot-size="L" tonal-override="" use-overlay-dark="" class="style-scope ytd-reel-player-overlay-renderer"></ytd-menu-renderer>\n    </div>\n    <div id="pivot-button" class="button-container style-scope ytd-reel-player-overlay-renderer" tabindex="0"></div>\n  </div>\n</div>\n<iron-media-query id="overlay-query" query="(max-width: 599px)" query-matches="[[isOverlay]]" on-query-matches-changed="updateIsOverlay" class="style-scope ytd-reel-player-overlay-renderer"></iron-media-query>\n');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);return Abo=S},{mode:1});var SuJ;var O_=function(){var S=_.w.apply(this,arguments)||this;S.videoDuration=0;S.playedTime=0;S.isActive=!1;S.JSC$19698_playerEvents=new Map;return S};
_.r(O_,_.w);_.M=O_.prototype;_.M.created=function(){this.JSC$19698_playerEvents.set("onVideoDataChange",this.onVideoDataChange);this.JSC$19698_playerEvents.set("onVideoProgress",this.onVideoProgress)};
_.M.attached=function(){this.getPlayerAndInitializeListeners()};
_.M.detached=function(){this.player&&(this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$19698_playerEvents),this.player=null);document.removeEventListener("yt-page-type-changed",_.d9(this,this.onPageChanged))};
_.M.getPlayerAndInitializeListeners=function(){var S=this,p;return _.T(function(U){if(U.nextAddress==1)return p=_.$L(),p?_.k(U,p.getPlayerPromise(),3):(document.addEventListener("yt-page-type-changed",_.d9(S,S.onPageChanged)),U.jumpTo(0));S.player=U.yieldResult;S.initializePlayerListeners();_.OV(U)})};
_.M.onPageChanged=function(S){var p=this;return _.T(function(U){if(U.nextAddress==1)return S.detail.newPageType!=="ytd-shorts"?U.return():_.k(U,_.iZ().getPlayerPromise(),2);p.player=U.yieldResult;p.initializePlayerListeners();document.removeEventListener("yt-page-type-changed",_.d9(p,p.onPageChanged));_.OV(U)})};
_.M.initializePlayerListeners=function(){this.ytPlayerListenerBehavior.listenToPlayerEvents(this.player,this.JSC$19698_playerEvents)};
_.M.onVideoDataChange=function(S){var p=this;return _.T(function(U){if(!p.player||S.type!=="newdata")return U.return();p.videoDuration=_.y("web_shorts_use_progress_state_for_gapless")?p.player.getProgressState(S.playertype).seekableEnd:p.player.getDuration(S.playertype);p.playedTime=0;_.OV(U)})};
_.M.onVideoProgress=function(S){var p=this,U,Y;return _.T(function(L){if(!p.player)return L.return();U=p.player.getPresentingPlayerType();Y=p.player.getPlayerState();p.videoDuration=_.y("web_shorts_use_progress_state_for_gapless")?p.player.getProgressState(U).seekableEnd:p.player.getDuration(U);p.playedTime=Y===0?p.videoDuration:S;_.OV(L)})};
_.M.getPercentPlayed=function(S,p){return S?_.F7(p/S,0,1):0};
_.$u.Object.defineProperties(O_.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 S="";return S=this.videoDuration&&this.playedTime?S+("transform:scaleX("+this.getPercentPlayed(this.videoDuration,this.playedTime)+");"):S+"transform:scaleX(0);"}},
hideProgressBar:{configurable:!0,enumerable:!0,get:function(){return this.videoDuration?!(this.isActive&&this.videoDuration>30):!1}}});
_.x([_.F(_.eL.YtComponentBehavior),_.E("design:type",Object)],O_.prototype,"componentBehavior",void 0);_.x([_.F(_.Cj.YtPlayerListenerBehavior),_.E("design:type",_.xt)],O_.prototype,"ytPlayerListenerBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],O_.prototype,"player",void 0);_.x([_.g(),_.E("design:type",Object)],O_.prototype,"videoDuration",void 0);_.x([_.g(),_.E("design:type",Object)],O_.prototype,"playedTime",void 0);_.x([_.g(),_.E("design:type",Object)],O_.prototype,"isActive",void 0);
_.x([_.e("videoDuration","playedTime"),_.E("design:type",Number),_.E("design:paramtypes",[])],O_.prototype,"percentPlayed",null);_.x([_.e("videoDuration","playedTime"),_.E("design:type",Object),_.E("design:paramtypes",[])],O_.prototype,"percentPlayedStyle",null);_.x([_.e("videoDuration","isActive"),_.E("design:type",Boolean),_.E("design:paramtypes",[])],O_.prototype,"hideProgressBar",null);
_.C(O_,"ytd-progress-bar-line",function(){if(SuJ===void 0){var S=document.createElement("template");_.h(S,'\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');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);SuJ=S}S=SuJ;return S},{mode:_.UW("kevlar_poly_si_batch_j028")?1:2});var puL;_.qm(_.nqA,"ytm-closed-captioning-button",{props:{captionIconType:_.x2,onClick:_.BX,ariaLabel:_.x2,ariaPressed:_.x2,isOverlay:_.BX,isModern:_.BX}});_.Ls(_.wMq,"desktop-shorts-volume-controls",{propNames:["noSlider","orientation"]});var kH=function(){var S=_.w.apply(this,arguments)||this;S.playerState=null;S.isMuted=!1;S.shortsModernControlsEnabled=_.y("web_shorts_modern_controls");S.volumeControlsOrientationState="vertical_down";S.isOverlay=!0;S.captionIconType=-1;S.ariaLabel="";S.overlayDensity=0;S.JSC$19701_playerEvents=new Map;S.onClosedCaptionsButtonClick=function(){S.player&&_.gC(S.player)&&(S.player.toggleSubtitles(),S.updateCaptionIconType())};
return S};
_.r(kH,_.w);_.M=kH.prototype;_.M.created=function(){this.JSC$19701_playerEvents.set("onStateChange",this.onPlayerStateChange);this.JSC$19701_playerEvents.set("onVolumeChange",this.onPlayerVolumeChange);this.shortsModernControlsEnabled&&this.JSC$19701_playerEvents.set("captionschanged",this.updateCaptionIconType)};
_.M.attached=function(){this.getPlayerAndInitializeListeners();this.muteButtonClientVE=_.bZ(28662);this.playPauseButtonClientVE=_.bZ(36842);this.fullscreenButtonToggleOffClientVE=_.bZ(222256);this.fullscreenButtonToggleOnClientVE=_.bZ(222257);var S=_.X$(),p=_.F$();S&&p&&(_.y("combine_ve_grafts")?(_.pa(_.HX(),this.muteButtonClientVE,p),_.pa(_.HX(),this.playPauseButtonClientVE,p)):_.l5(S,p,[this.muteButtonClientVE,this.playPauseButtonClientVE,this.fullscreenButtonToggleOffClientVE,this.fullscreenButtonToggleOnClientVE]))};
_.M.detached=function(){this.player&&(this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$19701_playerEvents),this.player=null)};
_.M.updateCaptionIconType=function(){var S=-1,p=void 0,U=_.Oh("CLOSED_CAPTIONS_DISABLED");this.player&&_.gC(this.player)&&(_.MOY(this.player)?(p=!0,U=_.Oh("CLOSED_CAPTIONS_ENABLED"),S=1):(p=!1,U=_.Oh("CLOSED_CAPTIONS_DISABLED"),S=0));this.captionIconType=S;this.ariaPressedState=p;this.ariaLabel=U};
_.M.getPlayerAndInitializeListeners=function(){var S=this,p;return _.T(function(U){if(U.nextAddress==1)return p=_.$L(),p?_.k(U,p.getPlayerPromise(),3):(document.addEventListener("yt-page-type-changed",_.d9(S,S.onPageChanged)),U.jumpTo(0));S.player=U.yieldResult;S.initializePlayerListeners();_.OV(U)})};
_.M.onPageChanged=function(S){var p=this;return _.T(function(U){if(U.nextAddress==1)return S.detail.newPageType!=="ytd-shorts"?U.return():_.k(U,_.iZ().getPlayerPromise(),2);p.player=U.yieldResult;p.initializePlayerListeners();document.removeEventListener("yt-page-type-changed",_.d9(p,p.onPageChanged));_.OV(U)})};
_.M.initializePlayerListeners=function(){this.ytPlayerListenerBehavior.listenToPlayerEvents(this.player,this.JSC$19701_playerEvents);this.shortsModernControlsEnabled&&this.updateCaptionIconType()};
_.M.onPlayerStateChange=function(S){this.playerState=S};
_.M.onPlayerVolumeChange=function(S){this.isMuted=S.muted};
_.M.onPlayPauseButtonClick=function(){var S=this,p,U;return _.T(function(Y){if(Y.nextAddress==1)return _.k(Y,_.iZ().getPlayerPromise(),2);p=Y.yieldResult;(U=_.X$())&&S.playPauseButtonClientVE&&_.xd(U,S.playPauseButtonClientVE);p.getPlayerState()!==1?p.playVideo():p.pauseVideo();_.OV(Y)})};
_.M.computePlayPauseIcon=function(S){return S===2||S===-1||S===5?_.y("web_shorts_modern_controls")?"PLAY_ARROW_DELHI_PLAYER_FILLED":"PLAY_ARROW_FILLED":_.y("web_shorts_modern_controls")?"PAUSE_DELHI_PLAYER_FILLED":_.y("enable_web_delhi_icons")?"PAUSE_FILLED":"miniplayer:shorts-pause"};
_.M.computeFullscreenLabel=function(S){return S?_.Oh("FULLSCREEN_EXIT_LABEL"):_.Oh("FULLSCREEN_ENTER_LABEL")};
_.M.computePlayPauseLabel=function(S){return S===1||S===3?_.Oh("PLAYER_LABEL_PAUSE"):_.Oh("PLAYER_LABEL_PLAY")};
_.M.onMuteButtonClick=function(){var S=this,p,U;return _.T(function(Y){if(Y.nextAddress==1)return _.k(Y,_.iZ().getPlayerPromise(),2);p=Y.yieldResult;(U=_.X$())&&S.muteButtonClientVE&&_.xd(U,S.muteButtonClientVE);p.isMuted()?p.unMute(!0):p.mute(!0);_.OV(Y)})};
_.M.computeMuteIcon=function(S){return S?"miniplayer:volume-off":"miniplayer:volume-up"};
_.M.computeMuteLabel=function(S){return S?_.Oh("PLAYER_LABEL_UNMUTE"):_.Oh("PLAYER_LABEL_MUTE")};
_.M.onFullscreenButtonClick=function(){var S=_.X$();S&&(this.fullscreenButtonToggleOffClientVE&&this.isFullscreen?_.xd(S,this.fullscreenButtonToggleOffClientVE):this.fullscreenButtonToggleOnClientVE&&!this.isFullscreen&&_.xd(S,this.fullscreenButtonToggleOnClientVE));document.activeElement instanceof HTMLElement&&document.activeElement.blur();_.jdJ()};
_.$u.Object.defineProperties(kH.prototype,{playPauseButtonData:{configurable:!0,enumerable:!0,get:function(){var S=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(){S.onPlayPauseButtonClick()},
disableBackdropFilter:this.shortsModernControlsEnabled,customColors:this.shortsModernControlsEnabled?{backgroundColor:"var(--yt-spec-static-overlay-additive-background)"}:{}}}},
fullscreenButtonData:{configurable:!0,enumerable:!0,get:function(){return{disabled:!1,accessibilityLabel:this.computeFullscreenLabel(this.isFullscreen),iconPosition:"icon-only",size:"L",state:"active",style:"overlay-dark",type:"tonal",tooltipText:this.computeFullscreenLabel(this.isFullscreen),disableBackdropFilter:this.shortsModernControlsEnabled,customColors:this.shortsModernControlsEnabled?{backgroundColor:"transparent"}:{}}}},
fullscreenIcon:{configurable:!0,enumerable:!0,get:function(){return this.isFullscreen?_.y("web_shorts_modern_controls")?"player_full_exit_delhi_player":_.y("enable_web_delhi_icons")?"player_full_exit":"screen_full_exit":_.y("web_shorts_modern_controls")?"player_full_enter_delhi_player":_.y("enable_web_delhi_icons")?"SCREEN_FULLSCREEN":"screen_full"}}});
_.x([_.F(_.eL.YtComponentBehavior),_.E("design:type",Object)],kH.prototype,"componentBehavior",void 0);_.x([_.F(_.Cj.YtPlayerListenerBehavior),_.E("design:type",_.xt)],kH.prototype,"ytPlayerListenerBehavior",void 0);_.x([_.F(_.Xh),_.E("design:type",Object)],kH.prototype,"ytdReduxBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],kH.prototype,"player",void 0);_.x([_.g(),_.E("design:type",Object)],kH.prototype,"playerState",void 0);_.x([_.g(),_.E("design:type",Object)],kH.prototype,"isMuted",void 0);
_.x([_.g({computed:"computePlayPauseIcon(playerState)"}),_.E("design:type",String)],kH.prototype,"playPauseIcon",void 0);_.x([_.g({computed:"computeMuteIcon(isMuted)"}),_.E("design:type",String)],kH.prototype,"muteIcon",void 0);_.x([_.g({selector:_.Th}),_.E("design:type",Boolean)],kH.prototype,"isFullscreen",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],kH.prototype,"shortsModernControlsEnabled",void 0);
_.x([_.g(),_.E("design:type",Object)],kH.prototype,"volumeControlsOrientationState",void 0);_.x([_.g(),_.E("design:type",Object)],kH.prototype,"isOverlay",void 0);_.x([_.g(),_.E("design:type",Object)],kH.prototype,"captionIconType",void 0);_.x([_.g(),_.E("design:type",Object)],kH.prototype,"ariaLabel",void 0);_.x([_.g(),_.E("design:type",Object)],kH.prototype,"ariaPressedState",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],kH.prototype,"overlayDensity",void 0);
_.x([_.e("playerState"),_.E("design:type",Object),_.E("design:paramtypes",[])],kH.prototype,"playPauseButtonData",null);_.x([_.e("isFullscreen"),_.E("design:type",Object),_.E("design:paramtypes",[])],kH.prototype,"fullscreenButtonData",null);_.x([_.g(),_.E("design:type",Object)],kH.prototype,"onClosedCaptionsButtonClick",void 0);_.x([_.e("isFullscreen"),_.E("design:type",String),_.E("design:paramtypes",[])],kH.prototype,"fullscreenIcon",null);
_.C(kH,"ytd-shorts-player-controls",function(){if(puL===void 0){var S=document.createElement("template");_.h(S,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-shorts-player-controls--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-button-shape id="play-pause-button-shape" data="[[playPauseButtonData]]" icon-name="[[playPauseIcon]]" class="style-scope ytd-shorts-player-controls">\n</yt-button-shape>\n<template is="dom-if" if="[[shortsModernControlsEnabled]]" class="style-scope ytd-shorts-player-controls">\n  <div id="right-controls" class="style-scope ytd-shorts-player-controls">\n    <desktop-shorts-volume-controls orientation="[[volumeControlsOrientationState]]" class="style-scope ytd-shorts-player-controls"></desktop-shorts-volume-controls>\n    <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    <yt-button-shape id="fullscreen-button-shape" data="[[fullscreenButtonData]]" icon-name="[[fullscreenIcon]]" on-click="onFullscreenButtonClick" class="style-scope ytd-shorts-player-controls">\n    </yt-button-shape>\n  </div>\n</template>\n<template is="dom-if" if="[[!shortsModernControlsEnabled]]" class="style-scope ytd-shorts-player-controls">\n  <desktop-shorts-volume-controls class="style-scope ytd-shorts-player-controls"></desktop-shorts-volume-controls>\n  <yt-button-shape id="fullscreen-button-shape" data="[[fullscreenButtonData]]" icon-name="[[fullscreenIcon]]" on-click="onFullscreenButtonClick" class="style-scope ytd-shorts-player-controls">\n  </yt-button-shape>\n</template>\n');
S.content.insertBefore(_.t().content.cloneNode(!0),S.content.firstChild);puL=S}S=puL;return S},{mode:1});var UeL;_.qm(_.a2m,"yt-interstitial-view-model",{props:{data:_.x2}});var Yun=_.$k(function(S){var p=S.data;return _.H("reel-watch-break-view-model",{class:"reelWatchBreakViewModelHost"},_.H("h1",{class:"reelWatchBreakViewModelHostTitle"},_.H(_.i6,{text:function(){return p().title}})),_.H("h2",{class:"reelWatchBreakViewModelHostBody"},_.H(_.i6,{text:function(){return p().body},
isOverlay:!0})),_.H(_.yP,{data:function(){return p().buttons}},{buttonViewModel:function(U,Y){return _.H("div",{class:function(){return Y()===0?"reelWatchBreakViewModelHostContinueWatchingButton":"reelWatchBreakViewModelHostGoHomeButton"}},_.H(_.PG,{data:U.data}))}}))},"Ji");
Yun.idomCompat=!0;_.qm(Yun,"reel-watch-break-view-model",{props:{data:_.x2}});var H5=function(){return _.w.apply(this,arguments)||this};
_.r(H5,_.w);H5.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}}};
_.$u.Object.defineProperties(H5.prototype,{isSurvey:{configurable:!0,enumerable:!0,get:function(){var S;return!!_.b((S=this.data)==null?void 0:S.renderer,mq5)}},
isInterstitialViewModel:{configurable:!0,enumerable:!0,get:function(){var S;return!!_.b((S=this.data)==null?void 0:S.renderer,oIJ)}}});
_.x([_.F(_.qH.YtRendererstamperBehavior),_.E("design:type",Object)],H5.prototype,"ytRendererstamperBehavior",void 0);_.x([_.F(_.eL.YtComponentBehavior),_.E("design:type",Object)],H5.prototype,"ytComponentBehavior",void 0);_.x([_.F(_.Xh),_.E("design:type",Object)],H5.prototype,"ytdReduxBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],H5.prototype,"data",void 0);
_.x([_.g({reflectToAttribute:!0}),_.e("data.renderer"),_.E("design:type",Boolean),_.E("design:paramtypes",[])],H5.prototype,"isSurvey",null);_.x([_.g({reflectToAttribute:!0}),_.e("data.renderer"),_.E("design:type",Boolean),_.E("design:paramtypes",[])],H5.prototype,"isInterstitialViewModel",null);H5=_.x([_.f({is:"ytd-reel-non-video-content-renderer",disableElementRegistration:!0})],H5);
_.C(H5,"ytd-reel-non-video-content-renderer",function(){if(UeL!==void 0)return UeL;var S=document.createElement("template");_.h(S,'\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');S.content.insertBefore(_.t().content.cloneNode(!0),S.content.firstChild);
return UeL=S},{mode:_.UW("kevlar_poly_si_batch_j028")?1:2});var LR5;_.qm(_.g5n,"desktop-shorts-player-controls",{});var DX=function(){var S=_.w.apply(this,arguments)||this;S.isPlayerPaused=!1;S.isPlayerStarted=!1;S.showPlayerControls=!1;S.showScrubber=!1;S.autoHideJobId=0;S.modern=_.y("web_button_rework");S.overlayType=_.Ug("web_shorts_expanded_overlay_type");S.panelData=void 0;S.isWatchWhileMode=!1;S.hasError=!1;S.panelShowDelayMs=1;S.scrubberComponent={};S.useStamper=_.y("web_shorts_enable_title_deflation");S.isFullscreen=!1;S.shouldHideOverlay=!1;S.enableAnchoredPanel=_.y("desktop_shorts_v2_anchored_panel");
S.enablePersistentAnchoredPanel=_.y("desktop_shorts_v2_persistent_anchored_panel");S.hideWatchWhilePanel=_.y("web_shorts_hide_watch_while_panel");S.isPersistentPanelActive=!1;S.anchoredPanelActive=!1;S.isShortsPipActive=!1;S.smallScreenSqueezeback=!1;S.enableFlexibleOverlay=_.y("web_enable_flexible_overlay");S.enableRemixButton=_.y("web_enable_shorts_remix_handoff_ep");S.overlayDensity=0;S.actionMap={"yt-show-reels-comments-overlay-command":"handleShowReelsCommentsOverlayCommand","yt-engagement-panel-visible-changed":"handleEngagementPanelVisibilityChanged"};
S.onWindowResized=function(){_.w9(S,"calculateOverlayDensity",function(){S.calculateOverlayDensity()},100)};
return S};
_.r(DX,_.w);_.M=DX.prototype;_.M.updateShouldHideOverlay=function(){this.shouldHideOverlay=this.isActive&&this.hasError};
_.M.onScrubberDataChange=function(){this.shouldRenderScrubber?this.scrubberComponent={desktopShortsPlayerControls:{}}:this.scrubberComponent={}};
_.M.shouldRenderOverlayControl=function(S){return!this.useStamper&&this.isVideoContent(S)};
_.M.onEngagementPanelsChanged=function(){if(this.watchWhileEngagementPanels)if(this.isActive){if(this.panelData=this.watchWhileEngagementPanels,this.isActive){var S=_.tW().resolve(_.y6);this.isWatchWhileMode&&(_.y("web_enable_shorts_new_carousel")?_.PA.addJob(function(){S.showPanel("shorts-comments-panel",void 0,void 0,void 0,null)},0):S.showPanel("shorts-comments-panel",void 0,void 0,void 0,null))}}else this.panelData=void 0};
_.M.handleShowReelsCommentsOverlayCommand=function(S){S=_.b(S,iV5);this.isActive&&(S==null?0:S.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))};
_.M.updateEngagementPanelVisibility=function(S,p){S&&this.ytComponentBehavior.resolveCommand({changeEngagementPanelVisibilityAction:{visibility:p?"ENGAGEMENT_PANEL_VISIBILITY_EXPANDED":"ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",targetId:S}})};
_.M.detached=function(){this.panelData=this.watchWhileEngagementPanels=void 0;this.isWatchWhileMode=!1;(this.enableFlexibleOverlay||this.enableFormatFirst)&&window.removeEventListener("resize",this.onWindowResized)};
_.M.handleEngagementPanelVisibilityChanged=function(){this.isActive&&!this.enablePersistentAnchoredPanel&&(_.tW().resolve(_.Ts).watchWhileIndices.has(this.index)?this.anchoredPanelActive=!0:this.anchoredPanelActive=!1)};
_.M.handleWatchWhilePanelScrimClick=function(){var S=_.tW().resolve(_.y6);this.activeWatchWhilePanel&&(S.hidePanel(this.activeWatchWhilePanel),this.isWatchWhileMode=!1,this.activeWatchWhilePanel=void 0)};
_.M.attached=function(){this.isFirstReel()&&this.handlePlayerClick();if(this.enableFlexibleOverlay||this.enableFormatFirst)window.addEventListener("resize",this.onWindowResized),this.calculateOverlayDensity()};
_.M.configureRendererStamper=function(){return{scrubberComponent:{id:"scrubber",mapping:{desktopShortsPlayerControls:{component:"desktop-shorts-player-controls"}},initialRenderPriority:2},overlayComponent:{id:"experiment-overlay",mapping:{reelPlayerOverlayRenderer:{component:"ytd-reel-player-overlay-renderer",properties:{anchoredPanelActive:"[[anchoredPanelActive]]",disableUpgrade:"[[shouldHideOverlay]]",hidden:"[[shouldHideOverlay]]",isActive:"[[isActive]]",isWatchWhileMode:"[[watchWhileOrPersistentActive]]",
overlayDensity:"[[overlayDensity]]",showScrubber:"[[showScrubber]]"}},adsOverlay:{component:"ytd-ad-slot-renderer",properties:{overlayDensity:"[[overlayDensity]]"}}},renderPriority:_.y("web_enable_shorts_new_carousel")?0:void 0}}};
_.M.handlePlayerClick=function(S){var p=this,U,Y;if((Y=(U=window).matchMedia)!=null&&Y.call(U,"(any-pointer: coarse)").matches||!S)this.showPlayerControls=!0,_.PA.cancelJob(this.autoHideJobId),this.autoHideJobId=_.bQ(_.PA,function(){p.showPlayerControls=!1},4E3)};
_.M.isFirstReel=function(){return this.index===0};
_.M.handleMouseenter=function(){_.PA.cancelJob(this.autoHideJobId);this.showPlayerControls=!0};
_.M.handleMouseleave=function(){this.isPlayerPaused||(this.showPlayerControls=!1)};
_.M.handleScrubberEnter=function(){this.showScrubber=!0};
_.M.handleScrubberLeave=function(){this.showScrubber=!1};
_.M.maybeLogNonDefaultAspectRatio=function(){var S;(S=this.data)!=null&&S.thumbnail&&this.isActive&&.5625!==hQJ(this.data.thumbnail)&&_.iOw("GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_SHORTS_NON_DEFAULT_ASPECT_RATIO")};
_.M.calculateOverlayDensity=function(){if(this.enableFlexibleOverlay||this.enableFormatFirst){var S=document.querySelector("#shorts-container");if(S){S=S.offsetWidth/2-this.playerContainer.offsetWidth/2;S=S>=368?1:S>=72?0:2;this.enableFormatFirst&&!this.enableFlexibleOverlay&&S===1&&(S=0);this.isPersistentPanelActive&&(S=0);window.innerWidth<=599&&(S=2);this.overlayDensity=S;var p;(p=this.onOverlayDensityChanged)==null||p.call(this,this.index,this.overlayDensity)}}};
_.M.onOverlayDensityChange=function(){var S;(S=this.onOverlayDensityChanged)==null||S.call(this,this.index,this.overlayDensity);(S=_.tB(this.hostElement).querySelector("ytd-reel-player-overlay-renderer"))&&S.set("overlayDensity",this.overlayDensity);if(S=this.hostElement.querySelector("reels-player-overlay-layout-view-model"))S.overlayDensity=this.overlayDensity};
_.M.isVideoContent=function(S){_.tW().resolve(_.Ts);return!!_.b(S,_.QX)};
_.M.isNonVideoContent=function(S){_.tW().resolve(_.Ts);return!!_.b(S,_.Rg)};
_.M.closeInactiveWatchWhilePanel=function(){this.activeWatchWhilePanel&&this.isWatchWhileMode&&this.updateEngagementPanelVisibility(this.activeWatchWhilePanel,!1)};
_.$u.Object.defineProperties(DX.prototype,{enableFormatFirst:{configurable:!0,enumerable:!0,get:function(){var S,p;return _.y("web_enable_format_first")||((S=this.data)==null?void 0:S.adsOverlay)&&_.y("web_enable_format_first_ads_only")||((p=this.data)==null?void 0:p.reelPlayerOverlayRenderer)&&_.y("web_enable_format_first_organic_only")}},
shouldRenderPlayerElements:{configurable:!0,enumerable:!0,get:function(){return this.isActive&&!this.hasError}},
watchWhileOrPersistentActive:{configurable:!0,enumerable:!0,get:function(){return this.isWatchWhileMode}},
shouldRenderScrubber:{configurable:!0,enumerable:!0,get:function(){var S;return!this.isActive||!this.isPlayerStarted||(S=this.data)!=null&&S.adsOverlay?!1:!0}},
overlayComponent:{configurable:!0,enumerable:!0,get:function(){var S;if(this.useStamper&&((S=this.data)==null?0:S.command)&&this.isVideoContent(this.data.command)){var p,U;if(((p=this.data)==null?0:p.adsOverlay)&&Object.keys((U=this.data)==null?void 0:U.adsOverlay).length>0)return{adsOverlay:this.data.adsOverlay};var Y,L;if(((Y=this.data)==null?0:Y.reelPlayerOverlayRenderer)&&Object.keys((L=this.data)==null?void 0:L.reelPlayerOverlayRenderer).length>0)return{reelPlayerOverlayRenderer:this.data.reelPlayerOverlayRenderer}}return{}}}});
DX.prototype.onOverlayDensityChange=DX.prototype.onOverlayDensityChange;DX.prototype.calculateOverlayDensity=DX.prototype.calculateOverlayDensity;DX.prototype.maybeLogNonDefaultAspectRatio=DX.prototype.maybeLogNonDefaultAspectRatio;DX.prototype.onEngagementPanelsChanged=DX.prototype.onEngagementPanelsChanged;DX.prototype.onScrubberDataChange=DX.prototype.onScrubberDataChange;DX.prototype.updateShouldHideOverlay=DX.prototype.updateShouldHideOverlay;
_.x([_.F(_.qH.YtRendererstamperBehavior),_.E("design:type",Object)],DX.prototype,"ytRendererstamperBehavior",void 0);_.x([_.F(_.eL.YtComponentBehavior),_.E("design:type",Object)],DX.prototype,"ytComponentBehavior",void 0);_.x([_.F(_.uc.YtdGuideStateAwareBehavior),_.E("design:type",Object)],DX.prototype,"ytdGuideStateAwareBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],DX.prototype,"data",void 0);_.x([_.g(),_.E("design:type",Number)],DX.prototype,"index",void 0);
_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Boolean)],DX.prototype,"isActive",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Boolean)],DX.prototype,"isHiddenInDom",void 0);_.x([_.g(),_.E("design:type",Object)],DX.prototype,"isPlayerPaused",void 0);_.x([_.g({selector:Fyn}),_.E("design:type",Object)],DX.prototype,"isPlayerStarted",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],DX.prototype,"showPlayerControls",void 0);
_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],DX.prototype,"showScrubber",void 0);_.x([_.g(),_.E("design:type",Object)],DX.prototype,"autoHideJobId",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],DX.prototype,"modern",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],DX.prototype,"overlayType",void 0);_.x([_.F(_.Xh),_.E("design:type",Object)],DX.prototype,"ytdReduxBehavior",void 0);
_.x([_.F(_.Aj.YtActionHandlerBehavior),_.E("design:type",Object)],DX.prototype,"ytActionHandlerBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],DX.prototype,"watchWhileEngagementPanels",void 0);_.x([_.g(),_.E("design:type",Object)],DX.prototype,"panelData",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],DX.prototype,"isWatchWhileMode",void 0);_.x([_.g(),_.E("design:type",String)],DX.prototype,"activeWatchWhilePanel",void 0);
_.x([_.g(),_.E("design:type",Object)],DX.prototype,"hasError",void 0);_.x([_.g(),_.E("design:type",Object)],DX.prototype,"panelShowDelayMs",void 0);_.x([_.g(),_.E("design:type",Object)],DX.prototype,"scrubberComponent",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],DX.prototype,"useStamper",void 0);_.x([_.g({selector:_.Th,reflectToAttribute:!0}),_.E("design:type",Object)],DX.prototype,"isFullscreen",void 0);
_.x([_.g(),_.E("design:type",Object)],DX.prototype,"shouldHideOverlay",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],DX.prototype,"enableAnchoredPanel",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],DX.prototype,"enablePersistentAnchoredPanel",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],DX.prototype,"hideWatchWhilePanel",void 0);
_.x([_.g({selector:_.P2r,reflectToAttribute:!0}),_.E("design:type",Object)],DX.prototype,"isPersistentPanelActive",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],DX.prototype,"anchoredPanelActive",void 0);_.x([_.g({selector:_.WI,reflectToAttribute:!0}),_.E("design:type",Object)],DX.prototype,"isShortsPipActive",void 0);_.x([_.g({selector:RQX,reflectToAttribute:!0}),_.E("design:type",Object)],DX.prototype,"smallScreenSqueezeback",void 0);
_.x([_.g({reflectToAttribute:!0}),_.e("data.adsOverlay","data.reelPlayerOverlayRenderer"),_.E("design:type",Object),_.E("design:paramtypes",[])],DX.prototype,"enableFormatFirst",null);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],DX.prototype,"enableFlexibleOverlay",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],DX.prototype,"enableRemixButton",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],DX.prototype,"overlayDensity",void 0);
_.x([_.g(),_.E("design:type",Function)],DX.prototype,"onOverlayDensityChanged",void 0);_.x([_.g(),_.e("isActive","hasError"),_.E("design:type",Object),_.E("design:paramtypes",[])],DX.prototype,"shouldRenderPlayerElements",null);_.x([_.g(),_.e("isActive","isWatchWhileMode"),_.E("design:type",Object),_.E("design:paramtypes",[])],DX.prototype,"watchWhileOrPersistentActive",null);
_.x([_.T4("isActive","hasError","showingExpandedOverlay"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],DX.prototype,"updateShouldHideOverlay",null);_.x([_.g({reflectToAttribute:!0}),_.e("isActive","isPlayerStarted","data"),_.E("design:type",Object),_.E("design:paramtypes",[])],DX.prototype,"shouldRenderScrubber",null);
_.x([_.T4("shouldRenderScrubber"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],DX.prototype,"onScrubberDataChange",null);_.x([_.e("useStamper","data.adsOverlay","data.reelPlayerOverlayRenderer"),_.E("design:type",Object),_.E("design:paramtypes",[])],DX.prototype,"overlayComponent",null);_.x([_.T4("watchWhileEngagementPanels"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],DX.prototype,"onEngagementPanelsChanged",null);
_.x([_.O2("#player-container"),_.E("design:type",HTMLElement)],DX.prototype,"playerContainer",void 0);_.x([_.O2("#cinematic-container"),_.E("design:type",HTMLElement)],DX.prototype,"cinematicContainer",void 0);_.x([_.T4("isPersistentPanelActive","data.thumbnail"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],DX.prototype,"maybeLogNonDefaultAspectRatio",null);
_.x([_.T4("isPersistentPanelActive"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],DX.prototype,"calculateOverlayDensity",null);_.x([_.T4("overlayDensity"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],DX.prototype,"onOverlayDensityChange",null);DX=_.x([_.f({is:"ytd-reel-video-renderer",disableElementRegistration:!0})],DX);
_.C(DX,"ytd-reel-video-renderer",function(){if(LR5!==void 0)return LR5;var S=document.createElement("template");_.h(S,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-reel-video-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="short-video-container style-scope ytd-reel-video-renderer" id="short-video-container" hidden="[[!isVideoContent(data.command)]]">\n  <div id="cinematic-container" class="cinematic-container style-scope ytd-reel-video-renderer"></div>\n  <div class="player-wrapper style-scope ytd-reel-video-renderer">\n    <div id="player-container" class="player-container style-scope ytd-reel-video-renderer" on-click="handlePlayerClick" on-mouseenter="handleMouseenter" on-mouseleave="handleMouseleave">\n      <div class="pip-blur-filter style-scope ytd-reel-video-renderer" hidden="[[!isShortsPipActive]]"></div>\n          <template is="dom-if" if="[[shouldRenderPlayerElements]]" restamp="" class="style-scope ytd-reel-video-renderer">\n            <div class="player-controls style-scope ytd-reel-video-renderer">\n              <ytd-shorts-player-controls disable-upgrade="[[!isActive]]" 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="[[shouldRenderOverlayControl(data.command)]]" class="style-scope ytd-reel-video-renderer">\n  <div id="control-overlay" class="overlay style-scope ytd-reel-video-renderer">\n    <template is="dom-if" if="[[data.reelPlayerOverlayRenderer]]" class="style-scope ytd-reel-video-renderer">\n      <ytd-reel-player-overlay-renderer anchored-panel-active="[[anchoredPanelActive]]" data="[[data.reelPlayerOverlayRenderer]]" disable-upgrade="[[shouldHideOverlay]]" hidden="[[shouldHideOverlay]]" is-active="[[isActive]]" is-player-started="[[isPlayerStarted]]" is-watch-while-mode="[[watchWhileOrPersistentActive]]" show-scrubber="[[showScrubber]]" class="style-scope ytd-reel-video-renderer"></ytd-reel-player-overlay-renderer>\n    </template>\n    <template is="dom-if" if="[[data.adsOverlay]]" class="style-scope ytd-reel-video-renderer">\n      <ytd-ad-slot-renderer data="[[data.adsOverlay]]" class="style-scope ytd-reel-video-renderer"></ytd-ad-slot-renderer>\n    </template>\n  </div>\n</template>\n<template is="dom-if" if="[[isNonVideoContent(data.command)]]" class="style-scope ytd-reel-video-renderer">\n  <ytd-reel-non-video-content-renderer data="[[data.reelNonVideoContentRenderer]]" class="style-scope ytd-reel-video-renderer">\n  </ytd-reel-non-video-content-renderer>\n</template>\n');
S.content.insertBefore(_.t().content.cloneNode(!0),S.content.firstChild);return LR5=S},{mode:_.UW("kevlar_poly_si_batch_j028")?1:2});var z6=function(){var S=_.w.apply(this,arguments)||this;S.isPreviousPageShorts=!1;S.index=0;S.delayedActiveIndex=0;S.playablePreviousIndex=null;S.isPlayerPaused=!1;S.isPlayerStarted=!1;S.intersectionObserverThreshold=.6;S.fitToVisibleBounds=!1;S.pageSubtype="shorts";S.enablePreviousContinuation=_.y("shorts_in_playlists_web");S.shortsPipEnabled=_.y("web_shorts_pip");S.isDark=document.documentElement.hasAttribute("dark");S.shortsViewTransitions=_.y("web_shorts_view_transitions");S.isFullscreen=!1;S.isShortsPipActive=
!1;S.buttonOverride={iconPosition:"icon-only",size:"XL"};S.anchoredPanelActive=!1;S.isActive=!1;S.smallScreenPersistentPanel=!1;S.isPersistentPanelActive=!1;S.smallScreenSqueezeBack=!1;S.enableScrollIntoViewCenter=_.y("web_scroll_into_view_center");S.formatFirst=_.y("web_enable_format_first")||_.y("web_enable_format_first_ads_only")||_.y("web_enable_format_first_organic_only");S.enableFlexibleOverlay=_.y("web_enable_flexible_overlay");S.isShortsInitialized=!1;S.hidePreviousButtonImmediately=!1;S.showPreviousButtonImmediately=
!1;S.endOfNextContinuation=!1;S.currentPlayerIndex=0;S.nextReelVe=_.bZ(56921);S.prevReelVe=_.bZ(56922);S.loopToggleOffVe=_.bZ(198013);S.loopToggleOnVe=_.bZ(198014);S.ambientModeToggleVe=_.bZ(227860);S.reelPlayerPausedStateRendererVe=_.bZ(141313);S.storedPlaybackSpeed=null;S.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"};
S.onOverlayDensityChanged=function(p,U){var Y;(Y=S.getActiveReelVideo(p))==null||Y.setAttribute("overlay-density",String(U))};
return S};
_.r(z6,_.w);_.M=z6.prototype;
_.M.deflateInactivePreviousSlides=function(){var S=_.pA("web_shorts_deflate_inactive_slides_aggressive_distance");if(S>0&&this.shortsProcessedSequence&&this.activeIndex){S=this.activeIndex-S;for(var p=0;p<=S;p++){var U=void 0;((U=this.shortsProcessedSequence[p].reelPlayerOverlayRenderer)==null?0:U.metapanel)&&this.set("shortsProcessedSequence."+p+".reelPlayerOverlayRenderer",{});U=void 0;((U=this.shortsProcessedSequence[p].adsOverlay)==null?0:U.adSlotMetadata)&&this.set("shortsProcessedSequence."+p+
".adsOverlay",{})}}};
_.M.calculateIsSmallWidth=function(){return window.innerWidth<=599};
_.M.onResize=function(){var S=_.vJ(),p=S.dispatch,U=this.calculateIsSmallWidth();p.call(S,_.S4({type:"SET_IS_DESKTOP_SMALL_WIDTH",payload:{isDesktopSmallWidth:U}}));this.updateBackNavContainerWidth();this.calculateSqueezebackPanelSize()};
_.M.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:_.y("web_enable_shorts_new_carousel")?0:void 0},anchoredEngagementPanels:{id:"anchored-panel",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",
params:{isWatchWhilePanel:!0,shortsPanel:!0}}},renderPriority:0}}};
_.M.updateBackNavContainerWidth=function(){if(this.player&&this.backNavButton){var S=(this.hostElement.clientWidth-this.shortsInnerContainer.clientWidth)/2,p=S,U=0;S<250&&(p=S+this.shortsInnerContainer.clientWidth,U=24);_.Ms(this.hostElement,{"--ytd-shorts-header-width":p+"px","--ytd-shorts-top-spacing":U+"px"})}};
_.M.isFirstShorts=function(S){return S?this.index===-S.length:this.index===0};
_.M.isActiveReel=function(S,p,U){U&&(p=this.calculatePrevIndex(p,U));return S===p};
_.M.onFullscreenChange=function(){if(_.y("web_fullscreen_shorts")){var S;(S=this.getActiveReelVideo(this.activeIndex))==null||S.scrollIntoView({behavior:"instant",block:"nearest",inline:this.enableScrollIntoViewCenter?"center":"start"});this.isFullscreen&&this.isShortsPipActive&&_.tW().resolve(_.eC).close(!0)}};
_.M.engagementPanelsChanged=function(){var S;this.watchWhileEngagementPanels=(S=this.data)==null?void 0:S.engagementPanels};
_.M.unregisterPanels=function(){var S=_.tW().resolve(_.y6);if(this.watchWhileEngagementPanels)for(var p=_.d(this.watchWhileEngagementPanels),U=p.next();!U.done;U=p.next()){var Y=void 0,L=void 0;U=(Y=U.value.engagementPanelSectionListRenderer)==null?void 0:(L=Y.identifier)==null?void 0:L.tag;S&&U&&S.panelMap.delete(U)}};
_.M.isVideoContent=function(S){return this.isVideoContentCommand(S==null?void 0:S.command)};
_.M.getActiveReelVideo=function(S){return _.tB(this.hostElement).querySelector('.reel-video-in-sequence-new[id="'+S+'"]')};
_.M.calculatePrevIndex=function(S,p){return p?S-((p==null?void 0:p.length)||0):-1};
_.M.onKeydown=function(S){var p=_.E1(S)||[];if(!_.Kcn(p))if(S.code==="ArrowUp")S.preventDefault(),this.handlePrevButtonClick();else if(S.code==="ArrowDown")S.preventDefault(),this.handleNextButtonClick();else if(S.code==="KeyM")this.toggleMuteUnmuteVideo();else if(S.code==="KeyK"||S.code==="Space")this.togglePlayPauseVideo();else if((S.code==="KeyA"||S.code==="ArrowLeft")&&_.y("web_shorts_keyboard_enable_seek_shortcuts")){var U;(U=this.player)==null||U.seekBy(-5)}else if((S.code==="KeyD"||S.code===
"ArrowRight")&&_.y("web_shorts_keyboard_enable_seek_shortcuts")&&this.player&&this.player.getDuration()>this.player.getCurrentTime()+6){var Y;(Y=this.player)==null||Y.seekBy(5)}};
_.M.onServiceRequestCompleted=function(S,p){S=p.data;S.continuationEndpoint&&S.entries?this.processAppendReelWatchSequenceContinuationEntriesAction({appendReelWatchSequenceContinuationEntriesAction:{entries:S.entries,continuationEndpoint:S.continuationEndpoint}}):S.prevContinuationEndpoint&&S.prevEntries?this.processAppendReelWatchSequenceContinuationEntriesAction({appendReelWatchSequenceContinuationEntriesAction:{prevEntries:S.prevEntries,prevContinuationEndpoint:S.prevContinuationEndpoint}}):this.shortsProcessedSequence&&
this.index>0&&(this.endOfNextContinuation=!0)};
_.M.handleEngagementPanelVisibilityChanged=function(S,p){var U=_.tW().resolve(_.y6);if(S&&U){var Y,L=((Y=S.identifier)==null?void 0:Y.tag)||S.panelIdentifier||S.targetId;if(p==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED")if(this.anchoredPanelActive&&this.activePanel!==L){U.hidePanel(this.activePanel);var I;this.activePanel=((I=S.identifier)==null?void 0:I.tag)||S.panelIdentifier}else this.isPersistentPanelActive=!0,_.vJ().dispatch(wf5(!0)),this.anchoredPanelActive=!0,this.activePanel=L;else p==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&
this.activePanel===L&&(this.isPersistentPanelActive=this.anchoredPanelActive=!1,_.vJ().dispatch(wf5(!1)))}};
_.M.handlePanelScrimClick=function(){var S=_.tW().resolve(_.y6);this.activePanel&&(S.hidePanel(this.activePanel),_.vJ().dispatch(wf5(!1)))};
_.M.getShortsLoopSetting=function(){var S,p,U,Y,L;return _.T(function(I){switch(I.nextAddress){case 1:return _.y("kevlar_shorts_auto_advance")?_.k(I,_.na.getInstance(),2):I.return(!0);case 2:return(S=I.yieldResult)?_.k(I,S.get("sfvles"),3):I.return(!0);case 3:return U=(p=I.yieldResult)!=null?p:!1,_.k(I,S.get("sfvle"),4);case 4:return L=(Y=I.yieldResult)!=null?Y:!0,U?I.return(L):I.return(!0)}})};
_.M.handleSignalActionToggleLoopShortsOff=function(){var S=this,p,U,Y;return _.T(function(L){switch(L.nextAddress){case 1:if(!S.player)return L.return();S.player.setLoopVideo(!1);p=_.HX();_.YV(p,S.loopToggleOffVe);return _.k(L,_.na.getInstance(),2);case 2:return(U=L.yieldResult)?_.k(L,U.set("sfvle",!1),3):L.return();case 3:return _.k(L,U.set("sfvles",!0),4);case 4:Y=_.D9(),_.zI(0,203,!1),_.zI(0,204,!0),Y.save(),_.OV(L)}})};
_.M.handleSignalActionToggleLoopShortsOn=function(){var S=this,p,U,Y;return _.T(function(L){switch(L.nextAddress){case 1:if(!S.player)return L.return();S.player.setLoopVideo(!0);p=_.HX();_.YV(p,S.loopToggleOnVe);return _.k(L,_.na.getInstance(),2);case 2:return(U=L.yieldResult)?_.k(L,U.set("sfvle",!0),3):L.return();case 3:return _.k(L,U.set("sfvles",!0),4);case 4:Y=_.D9(),_.zI(0,203,!0),_.zI(0,204,!0),Y.save(),_.OV(L)}})};
_.M.handleSignalActionToggleCinematicShortsOn=function(){GZJ(!0);var S;(S=this.JSC$19725_cinematicController)==null||_.Kyi(S,!0);_.YV(_.HX(),this.ambientModeToggleVe,{toggleButtonData:{isToggledOn:!1}})};
_.M.handleSignalActionToggleCinematicShortsOff=function(){GZJ(!1);var S;(S=this.JSC$19725_cinematicController)==null||_.Kyi(S,!1);_.YV(_.HX(),this.ambientModeToggleVe,{toggleButtonData:{isToggledOn:!0}})};
_.M.toggleMuteUnmuteVideo=function(){this.player&&(this.player.isMuted()?this.player.unMute():this.player.mute())};
_.M.togglePlayPauseVideo=function(){this.player&&(this.player.getPlayerState()===1?this.player.pauseVideo():this.player.getPlayerState()===2&&this.player.playVideo())};
_.M.unhideCurrentOverlay=function(){if(this.overlayContainer){var S=this.overlayContainer.querySelector("#experiment-overlay");S&&_.PA.addLowPriorityJob(function(){S.style.display="unset"},100)}};
_.M.getCurrentShort=function(){if(this.currentEndpoint){var S=this.currentEndpoint;if(this.isNonVideoContentCommand(S)){var p=_.b(S,_.Rg);return{reelNonVideoContentRenderer:_.b(p==null?void 0:p.renderer,_.FZd),command:S}}if(this.data){var U;p=(U=_.b(this.currentEndpoint,_.QX))==null?void 0:U.thumbnail;var Y;U=(Y=this.data.overlay)==null?void 0:Y.reelPlayerOverlayRenderer;_.tW().resolve(_.Ts);S=this.data;var L,I;Y=(L=S.overlay)==null?void 0:(I=L.shortsAdsRenderer)==null?void 0:I.adSlots;if(Y!==void 0)Y.length===
0?(_.qB("Shorts ads returned no ad slots."),S=void 0):(Y.length>1&&_.qB("Shorts ads has more than one ad slots."),S=_.b(Y[0],_.Iam));else{var V,W;S=_.b((V=S.overlay)==null?void 0:(W=V.shortsAdsRenderer)==null?void 0:W.overlay,_.Iam)}V=S;S=Object.assign({},this.currentEndpoint,{reelWatchEndpoint:Object.assign({},_.b(this.currentEndpoint,_.QX),{sequenceParams:void 0,sequenceProvider:void 0,racyCheckOk:void 0,contentCheckOk:void 0})});return{reelPlayerOverlayRenderer:U,thumbnail:p,command:S,adsOverlay:V}}}};
_.M.created=function(){var S=this;this.scrollToVideoThrottle=new _.NB(function(p){var U;(U=S.getActiveReelVideo(p))==null||U.scrollIntoView({behavior:"smooth",block:"nearest",inline:S.enableScrollIntoViewCenter?"center":"start"})},500,this);
this.transitionToVideoThrottle=new _.NB(function(p){var U;(U=S.getActiveReelVideo(p))==null||U.scrollIntoView({behavior:"auto",block:"nearest",inline:S.enableScrollIntoViewCenter?"center":"start"})},500,this);
this.maybeCreateIntersectionObserver()};
_.M.onScroll=function(){this.scrollToVideoThrottle.fire(this.index)};
_.M.attached=function(){var S=this;gI5(this);this.pageScrollElement=_.tB(this.hostElement).querySelector("#shorts-container");document.addEventListener("yt-shorts-reset",_.d9(this,this.processResetAction));_.y("web_reels_min_height_adjustment")&&this.hostElement.style.setProperty("--ytd-reels-min-height","460px");_.y("web_fullscreen_shorts")&&window.ResizeObserver&&!this.resizeObserver&&(this.resizeObserver=this.onResizeFinished(this.shortsContainer,function(){var p=S.getActiveReelVideo(S.activeIndex);
S.maybeCreateIntersectionObserver();p==null||p.scrollIntoView({behavior:"instant",block:"nearest",inline:S.enableScrollIntoViewCenter?"center":"start"});S.shortsContainer.style.overflowY="scroll"}))};
_.M.calculateSqueezebackPanelSize=function(){var S=this,p=window.innerWidth-456-(window.innerHeight-106)*.5625;_.PA.addLowPriorityJob(function(){p<360?_.vJ().dispatch(ly5(!0)):(S.hostElement.style.setProperty("--anchored-panel-width",Math.min(p,480)+"px"),_.vJ().dispatch(ly5(!1)))})};
_.M.detached=function(){var S=_.tW().resolve(_.Ts);S.rootElement=void 0;var p;(p=S.unsubscribeFromStore)==null||p.call(S);S.unsubscribeFromStore=void 0;document.removeEventListener("yt-shorts-reset",_.d9(this,this.processResetAction));this.intersectionObserver=this.resizeObserver=void 0};
_.M.onResizeFinished=function(S,p){var U=this,Y=new ResizeObserver(function(){U.shortsContainer.style.overflowY="hidden";_.PA.addLowPriorityJob(function(){p()},100)});
Y.observe(S);return Y};
_.M.resetDocumentScrollTop=function(){var S,p;if((S=document)==null?0:(p=S.scrollingElement)==null?0:p.scrollTop)document.scrollingElement.scrollTop=0};
_.M.loadPage_=function(S){var p=this;this.resetDocumentScrollTop();if(this.currentEndpoint&&this.isNonVideoContentCommand(this.currentEndpoint))this.data=this.playerData=void 0;else if(this.initCsi(),this.updateTitle(this.playerData),S){var U;if((U=_.b(this.currentEndpoint,_.QX))==null?0:U.sequenceParams)this.index=0,this.scrollToVideoThrottle.fire(this.index),this.movePlayerToVideo(this.index);this.data=S;this.isPlayerStarted?this.handleOnPlaybackCommand():this.afterPlayerStarted=function(){p.isPlayerStarted&&
(p.handleOnPlaybackCommand(),p.afterPlayerStarted=function(){})};
this.registerPanel(S)}};
_.M.afterPlayerStarted=function(){};
_.M.handleOnPlaybackCommand=function(){if(_.y("web_shorts_comment_stickers")&&this.isPlayerStarted){var S,p=(S=_.b(this.currentEndpoint,_.QX))==null?void 0:S.onPlaybackCommand;p&&this.ytComponentBehavior.resolveCommand(p)}};
_.M.maybeCreateIntersectionObserver=function(){var S=this,p=this.calculateIntersectionObserverThreshold();if(!this.intersectionObserver||this.intersectionObserverThreshold!==p){this.intersectionObserverThreshold=p;var U={rootMargin:"0px",threshold:p},Y;(Y=this.intersectionObserver)==null||Y.disconnect();this.intersectionObserver=new IntersectionObserver(function(L){L=_.d(L);for(var I=L.next();!I.done;I=L.next())if(I=I.value,I.intersectionRatio>p){I=Number(I.target.id);if(isNaN(I))break;if(I===S.index)break;
_.SwE();S.loadVideo(I);_.Pd("r_vtc")}},U);
this.observeShorts()}};
_.M.observeShorts=function(){var S=[].concat(_.jo(_.tB(this.hostElement).querySelectorAll(".reel-video-in-sequence-new")));S=_.d(S);for(var p=S.next();!p.done;p=S.next()){p=p.value;var U=void 0;(U=this.intersectionObserver)==null||U.observe(p)}};
_.M.initCsi=function(){_.hv("reel_watch","pbs pbp pbu r_vtc r_tr cpt".split(" "));var S={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"}},p,U;if((p=this.playerData)==null?0:(U=p.cacheMetadata)==null?0:U.isCacheHit)S.isCacheHit=!0;var Y;if(p=(Y=_.b(this.currentEndpoint,_.QX))==null?void 0:
Y.prefetchTaskId)S.prefetchInfo={taskId:p};_.ha(S)};
_.M.isAd=function(){var S,p;return!!((S=_.b(this.currentEndpoint,_.QX))==null?0:(p=S.adClientParams)==null?0:p.isAd)};
_.M.getPlayer=function(){this.$||this._enableProperties();return this.playerElement};
_.M.getPlayerContainer=function(){var S;return(S=_.tB(this.hostElement).querySelector("ytd-reel-video-renderer"))==null?void 0:S.playerContainer};
_.M.onPlayerStateChange=function(S){var p=this;this.isPlayerPaused=S===2;S!==1&&this.isShortPlayable()||this.currentPlayerIndex===this.index?S===1&&this.index===0&&(this.isPlayerStarted||_.vJ().dispatch(M7(!0))):(this.movePlayerToVideo(this.index),this.isPlayerStarted||_.vJ().dispatch(M7(!0)));this.player&&!this.player.getLoopVideo()&&_.PA.addLowPriorityJob(function(){p.getShortsLoopSetting().then(function(U){var Y;(Y=p.player)==null||Y.setLoopVideo(U)})});
this.isPlayerPaused&&_.y("web_shorts_paused_state_logging")&&_.fp(_.X$(),[this.reelPlayerPausedStateRendererVe])};
_.M.isInBackground=function(){var S=window.document.visibilityState;return!(!S||S==="visible")};
_.M.isShortPlayable=function(){if(_.y("kevlar_playable_short_killswitch"))return!0;var S;return(S=this.playerData)!=null&&S.playabilityStatus?this.playerData.playabilityStatus.status==="OK":!1};
_.M.setNormalPlaybackSpeed=function(){var S=this,p,U;return _.T(function(Y){if(Y.nextAddress==1)return _.k(Y,S.getPlayer().getPlayerPromise(),2);p=Y.yieldResult;U=p.getPlaybackRate();U!==1&&(S.storedPlaybackSpeed=U,p.setPlaybackRate(1));_.OV(Y)})};
_.M.restorePlaybackSpeed=function(){var S=this,p;return _.T(function(U){if(U.nextAddress==1)return S.storedPlaybackSpeed===null?U.jumpTo(0):_.k(U,S.getPlayer().getPlayerPromise(),3);p=U.yieldResult;p.setPlaybackRate(S.storedPlaybackSpeed);S.storedPlaybackSpeed=null;_.OV(U)})};
_.M.playerDataChanged=function(){var S=this,p,U,Y,L,I,V,W,O,D;return _.T(function(z){if(z.nextAddress==1){p=S.getPlayer();_.y("web_shorts_dynamic_intersection_observer_threshold")&&((U=S.intersectionObserver)==null||U.disconnect());if(S.playerData){if(((Y=S.playerData.videoDetails)==null?void 0:Y.videoId)!==((L=p.getPlayer())==null?void 0:L.getVideoData().video_id)){I={};if(V=_.b(S.currentEndpoint,_.QX))I.watch_endpoint=V,V.endTimeSeconds&&(I.end=V.endTimeSeconds);p.loadVideoWithPlayerResponse(S.playerData,
I)}}else return z.return();return S.player?z.jumpTo(2):_.k(z,p.getPlayerPromise(),3)}z.nextAddress!=2&&(S.player=z.yieldResult,S.JSC$19725_playerStateChangeListener=S.onPlayerStateChange.bind(S),S.player.addEventListener("onStateChange",S.JSC$19725_playerStateChangeListener),_.y("kevlar_client_enable_shorts_player_bootstrap")&&_.x9(),S.scrollToVideoThrottle.fire(S.index),S.movePlayerToVideo(S.index),_.PA.addLowPriorityJob(function(){S.getShortsLoopSetting().then(function(Q){var J;(J=S.player)==null||
J.setLoopVideo(Q)})}),_.Hjq.resolve(S.player),S.player.syncVolume(),S.getPlayer().focusOnPlayer());
_.y("web_shorts_caption_language_entity_killswitch")||_.PA.addLowPriorityJob(function(){var Q=_.tW().resolve(_.Ts),J,K=(J=S.player)==null?void 0:J.getOption("captions","track");J=_.M9("/youtube/app/player_caption_language_entity_key","stringEntity",2);if(K){var G;((G=_.Ty(_.L9e,J)())==null?void 0:G.value)!==K.displayName&&Q.store.dispatch(_.WG("stringEntity",J,{key:J,value:K.displayName||""}))}else Q.store.dispatch(_.WG("stringEntity",J,{key:J,value:"CAPTIONS_UNAVAILABLE"}))});
_.PA.addLowPriorityJob(function(){S.observeShorts()},100);
W=S.player.getPlayerState(S.player.getPresentingPlayerType());W!==1||S.isPlayerStarted||_.vJ().dispatch(M7(!0));S.updateBackNavContainerWidth();O=_.b(S.currentEndpoint,_.QX);((D=O)==null?0:D.startTimeSeconds)&&S.player.seekTo(O.startTimeSeconds);if(S.JSC$19725_cinematicController||S.cinematicsInitializeJobId)return z.return();S.cinematicsInitializeJobId=_.PA.addLowPriorityJob(function(){S.initCinematicController();S.cinematicsInitializeJobId=void 0});
_.OV(z)})};
_.M.onShortUndoDismiss=function(){var S=this,p=ueT().pop();p!==void 0&&(_.oH(this,function(){S.showCardWithIndex(p)}),this.playablePreviousIndex=this.getPlayablePreviousIndex())};
_.M.onShortsDismiss=function(S){if(S=S.detail.reelDismissalActionRenderer)(S=_.b(S.onDismissalCompletionRenderer,_.AMJ))&&this.ytComponentBehavior.resolveCommand({openPopupAction:{popupType:"TOAST",popup:{notificationActionRenderer:S}}}),this.scrollAndDismissCard()};
_.M.processReelNonVideoContentDismissalCommand=function(S){var p=this;this.activeDimissalTimeout&&(clearTimeout(this.activeDimissalTimeout),this.activeDimissalTimeout=void 0);S=_.b(S,$qX);this.activeDimissalTimeout=setTimeout(function(){p.scrollAndDismissCard()},Number(S==null?void 0:S.delayMs))};
_.M.scrollAndDismissCard=function(){var S=this,p=this.index;ueT().push(p);_.oH(this,function(){var U=S.getPlayableNextIndex();U!==null&&(U=S.getActiveReelVideo(U),S.hideCardWithIndex(p),U==null||U.scrollIntoView({behavior:"smooth",block:"nearest",inline:S.enableScrollIntoViewCenter?"center":"start"}))})};
_.M.hideCardWithIndex=function(S){if(S=this.getActiveReelVideo(S))S.hidden=!0};
_.M.showCardWithIndex=function(S){if(S=this.getActiveReelVideo(S))S.hidden=!1};
_.M.onActiveChanged=function(){this.activeChanged(this.ytPageBehavior.active)};
_.M.activeChanged=function(S){_.vJ().dispatch(_.S4({type:"SET_IS_SHORTS_ACTIVE",payload:{isShortsActive:S}}));if(S)document.addEventListener("keydown",_.d9(this,this.onKeydown)),document.body.setAttribute("no-y-overflow",""),this.setNormalPlaybackSpeed(),this.getPlayer().focusOnPlayer();else{if(this.isAd()){var p;(p=this.player)==null||p.sendAbandonmentPing()}var U;(U=this.player)==null||U.cueVideoByPlayerVars({videoId:"00000000"});document.removeEventListener("keydown",_.d9(this,this.onKeydown));
document.body.removeAttribute("no-y-overflow");this.restorePlaybackSpeed();this.processResetAction()}};
_.M.graftClientVisualElements=function(){if(this.data){var S=_.HX();_.OYH(S,_.Mw({response:this.reelWatchSequenceResponse}));_.pa(S,this.nextReelVe);_.pa(S,this.prevReelVe);_.y("kevlar_shorts_auto_advance")&&(_.pa(S,this.loopToggleOffVe),_.pa(S,this.loopToggleOnVe));_.pa(S,this.ambientModeToggleVe);_.fp(_.X$(),[this.nextReelVe,this.prevReelVe]);_.y("web_shorts_paused_state_logging")&&_.pa(S,this.reelPlayerPausedStateRendererVe)}};
_.M.graftNvcRenderer=function(){var S,p,U,Y,L=this.index<0?(S=this.shortsProcessedPrevSequence)==null?void 0:(p=S[this.shortsProcessedPrevSequence.length+this.index])==null?void 0:p.command:(U=this.shortsProcessedSequence)==null?void 0:(Y=U[this.index])==null?void 0:Y.command;if(L&&this.isNonVideoContentCommand(L)){S=_.b(L,_.Rg);var I,V;(S=(I=_.b(S==null?void 0:S.renderer,_.FZd))==null?void 0:(V=I.loggingDirectives)==null?void 0:V.trackingParams)&&_.HX().graftServerVe(S)}};
_.M.setActiveIndex=function(){_.tW().resolve(_.Ts).setActiveIndex(this.index)};
_.M.onShortsPipActiveChanged=function(){this.isShortsMiniplayerActive()&&this.updateMiniplayerData()};
_.M.lazyUpdateMiniplayerData=function(){var S=this;this.isShortsMiniplayerActive()&&(this.cancelPreviousMiniplayerDataUpdate(),this.updateMiniplayerDataJobId=_.PA.addLowPriorityJob(function(){S.updateMiniplayerData();S.updateMiniplayerDataJobId=void 0}))};
_.M.cancelPreviousMiniplayerDataUpdate=function(){this.updateMiniplayerDataJobId&&_.PA.cancelJob(this.updateMiniplayerDataJobId)};
_.M.updateMiniplayerData=function(){var S,p,U,Y=_.tW().resolve(_.eC),L={shortsData:this.getCurrentShort(),previousButtonDisabled:!((S=this.prevButtonData)==null||!S.isDisabled),nextButtonDisabled:!((p=this.nextButtonData)==null||!p.isDisabled),playabilityStatus:(U=this.playerData)==null?void 0:U.playabilityStatus};_.jg(Y,L)};
_.M.resetPlayerLocation=function(){var S=this.getPlayer();this.initialPlayerContainer&&S.appendTo(this.initialPlayerContainer,void 0,!0);this.shortsInnerContainer&&this.overlayContainer&&(this.shortsInnerContainer.appendChild(this.overlayContainer),this.overlayContainer=void 0)};
_.M.movePlayerToVideo=function(S,p){var U=this;p=p===void 0?!0:p;var Y=this.getActiveReelVideo(S),L=this.getPlayer();if(Y){this.overlayContainer||(this.overlayContainer=_.tB(this.hostElement).querySelector("ytd-reel-video-renderer")||void 0,this.isShortsMiniplayerActive()||L.appendTo(this.overlayContainer.playerContainer,void 0,!0));Y.appendChild(this.overlayContainer);var I;(I=this.player)==null||I.setSize(NaN,NaN);this.isActive||_.bQ(_.PA,function(){U.isActive=!0});
L.style.visibility="visible";_.y("reels_web_disable_rtr_tick")||_.y("reels_web_use_pbs_first_shorts")&&S===0||_.Fg("r_tr");this.currentPlayerIndex=S;Y.appendChild(this.errorScreenContainer);var V;(V=this.JSC$19725_cinematicController)==null||_.jNL(V)}else p?_.PA.addLowPriorityJob(function(){U.movePlayerToVideo(U.index,!1)}):Math.random()<=_.pA("web_shorts_error_logging_threshold")&&_.s9(new _.y7("Trying to movePlayerToVideo with undefined container.",{firstAttempt:p,
index:S}))};
_.M.enableFormatFirst=function(S){return _.y("web_enable_format_first")||S.adsOverlay&&_.y("web_enable_format_first_ads_only")||S.reelPlayerOverlayRenderer&&_.y("web_enable_format_first_organic_only")};
_.M.getAspectRatio=function(S){if(S!=null&&S.thumbnail&&this.enableFormatFirst(S))return"--ytd-shorts-player-ratio: "+hQJ(S.thumbnail)};
_.M.getBackgroundImage=function(S){if(S!=null&&S.thumbnail)return(S=_.tS(S.thumbnail.thumbnails))?'background-image:url("'+S+'");':"background-color:black;"};
_.M.onPersistentPanelActiveChanged=function(){var S=this.getCurrentShort();if(S&&this.enableFormatFirst(S)&&(S==null?0:S.thumbnail)&&hQJ(S.thumbnail)!==.5625){var p;(p=this.player)==null||p.setSize(NaN,NaN)}};
_.M.isShortsMiniplayerActive=function(){return this.shortsPipEnabled&&this.isShortsPipActive};
_.M.moveCinematicsToVideo=function(){var S=_.tB(this.hostElement).querySelector("ytd-reel-video-renderer");(S==null?0:S.cinematicContainer)&&S.cinematicContainer!==this.shortsCinematicContainer.parentElement&&S.cinematicContainer.appendChild(this.shortsCinematicContainer)};
_.M.onPrevButtonDataChange=function(){this.updatePrevButtonData()};
_.M.updatePrevButtonData=function(){var S=this.get("overlay.reelPlayerOverlayRenderer.prevItemButton.buttonRenderer",this.data);if(S){var p;this.prevButtonData=S=Object.assign({},S,{accessibility:{label:_.Oh("PREVIOUS_VIDEO_LABEL")},icon:{iconType:"YOUTUBE_SHORTS_ARROW_UP"},isDisabled:S.isDisabled||this.index===-(((p=this.shortsProcessedPrevSequence)==null?void 0:p.length)||0),tooltip:this.isUpArrowHidden?"":_.Oh("PREVIOUS_VIDEO_LABEL")})}else this.prevButtonData&&(this.prevButtonData=S=Object.assign({},
this.prevButtonData,{isDisabled:!1}))};
_.M.onNextButtonDataChange=function(){this.updateNextButtonData()};
_.M.updateNextButtonData=function(){var S=this.get("overlay.reelPlayerOverlayRenderer.nextItemButton.buttonRenderer",this.data);if(S){var p;this.nextButtonData=S=Object.assign({},S,{accessibility:{label:_.Oh("NEXT_VIDEO_LABEL")},icon:{iconType:"YOUTUBE_SHORTS_ARROW_DOWN"},isDisabled:S.isDisabled||this.index===((p=this.shortsProcessedSequence)==null?void 0:p.length),tooltip:_.Oh("NEXT_VIDEO_LABEL")||""})}};
_.M.getPlayablePreviousIndex=function(){for(var S,p=this.index-1;p>=-(((S=this.prevShortsSequence)==null?void 0:S.length)||0);p--)if(!ueT().includes(p))return p;return null};
_.M.getIndexInSequence=function(S,p){return S.findIndex(function(U){var Y;return((Y=_.b(U.command,_.QX))==null?void 0:Y.videoId)===p})};
_.M.handlePrevButtonClick=function(S){var p=this,U,Y;return _.T(function(L){U=p.getPlayablePreviousIndex();if(U===null)return L.return();p.gestureType=((Y=S)==null?void 0:Y.type)==="click"?"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK":"INTERACTION_LOGGING_GESTURE_TYPE_KEY_PRESS";U===0&&(p.hidePreviousButtonImmediately=!0);if(p.shortsViewTransitions&&document.startViewTransition)return document.startViewTransition(function(){p.transitionToVideoThrottle.fire(U)}),L.return();
p.scrollToVideoThrottle.fire(U);_.OV(L)})};
_.M.getPlayableNextIndex=function(){for(var S,p=this.index+1;p<(((S=this.shortsProcessedSequence)==null?void 0:S.length)||0);p++)if(!ueT().includes(p))return p;return null};
_.M.handleNextButtonClick=function(S,p){var U=this,Y,L;return _.T(function(I){Y=U.getPlayableNextIndex();if(Y===null)return I.return();Y===1&&(U.showPreviousButtonImmediately=!0);U.gestureType=((L=S)==null?void 0:L.type)==="click"?"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK":"INTERACTION_LOGGING_GESTURE_TYPE_KEY_PRESS";p&&(U.gestureType=p);if(U.shortsViewTransitions&&document.startViewTransition)return document.startViewTransition(function(){U.transitionToVideoThrottle.fire(Y)}),I.return();
U.scrollToVideoThrottle.fire(Y);_.OV(I)})};
_.M.handleReelNavigateCommand=function(S,p,U){(S=_.b(S,vIq))&&p&&S.destination==="REEL_NAVIGATION_DESTINATION_NEXT"&&this.handleNextButtonClick(U)};
_.M.loadVideo=function(S,p){p=p===void 0?!1:p;if(S!==this.currentPlayerIndex){_.vJ().dispatch(M7(!1));if(this.isAd()&&!p){var U;(U=this.player)==null||U.notifyShortsAdSwipeEvent()}if((p=this.JSC$19725_cinematicController)!=null){var Y;(Y=p.currentCinematicEffect)==null||Y.pause()}if((Y=this.JSC$19725_cinematicController)!=null){var L;(L=Y.currentCinematicEffect)==null||L.clear()}Y=S>this.index;this.isShortsMiniplayerActive()&&(this.cancelPreviousMiniplayerDataUpdate(),this.setMiniplayerPreview(Y));
this.getPlayer().style.visibility="hidden";this.overlayContainer&&(this.overlayContainer.querySelector("#experiment-overlay").style.display="none");var I,V,W,O;L=S<0?(I=this.shortsProcessedPrevSequence)==null?void 0:(V=I[this.shortsProcessedPrevSequence.length+S])==null?void 0:V.command:(W=this.shortsProcessedSequence)==null?void 0:(O=W[S])==null?void 0:O.command;this.index=S;this.gestureType||(this.gestureType=Y?"INTERACTION_LOGGING_GESTURE_TYPE_SWIPE":"INTERACTION_LOGGING_GESTURE_TYPE_BACK_SWIPE");
L&&this.isVideoContentCommand(L)&&(this.ytComponentBehavior.resolveCommand(L,{form:{createScreenConfig:{clickedVisualElement:Y?this.nextReelVe:this.prevReelVe,implicitGestureType:this.gestureType}}}),this.gestureType=void 0);if(L&&this.isNonVideoContentCommand(L)){this.currentEndpoint=L;this.data=void 0;I=_.HX();V=_.b(L,_.Rg);var D,z;(V=(D=_.b(V==null?void 0:V.renderer,_.FZd))==null?void 0:(z=D.screenLoggingData)==null?void 0:z.screenVeType)&&_.S8(I,V);this.currentPlayerIndex=-1;this.player&&this.isShortPlayable()&&
this.player.pauseVideo()}var Q,J;if(((Q=this.reelWatchSequenceResponse)==null?0:Q.continuationEndpoint)&&((J=this.reelWatchSequenceResponse)==null?0:J.entries)&&S===this.reelWatchSequenceResponse.entries.length-1){var K,G;D={contentPlaybackContext:_.yX({},(G=_.b((K=this.currentEndpoint)==null?void 0:K.commandMetadata,_.NU))==null?void 0:G.url,window.location.href)};this.ytComponentBehavior.resolveCommand(this.reelWatchSequenceResponse.continuationEndpoint,{form:D})}var X,Z,l;((X=this.reelWatchSequenceResponse)==
null?0:X.prevContinuationEndpoint)&&S===-(((Z=this.reelWatchSequenceResponse)==null?void 0:(l=Z.prevEntries)==null?void 0:l.length)||0)&&this.ytComponentBehavior.resolveCommand(this.reelWatchSequenceResponse.prevContinuationEndpoint)}};
_.M.setMiniplayerPreview=function(S){S=(S===void 0?0:S)?this.getPlayableNextIndex():this.getPlayablePreviousIndex();var p,U,Y=_.tW().resolve(_.eC),L={shortsData:void 0,shortsPreviewThumbnail:S?(p=this.shortsProcessedSequence)==null?void 0:(U=p[S])==null?void 0:U.thumbnail:void 0};_.jg(Y,L)};
_.M.updateTitle=function(S){var p,U;S=(S==null?0:S.adSlots)?"":(U=S==null?void 0:(p=S.videoDetails)==null?void 0:p.title)!=null?U:"";_.cv(this.hostElement,"yt-update-title",S)};
_.M.registerPanel=function(S){var p=_.tW().resolve(_.y6);if(p){S=_.d(S.engagementPanels||[]);for(var U=S.next();!U.done;U=S.next()){U=U.value;var Y=U.engagementPanelSectionListRenderer,L=void 0,I=void 0,V=void 0,W=void 0,O=((L=Y)==null?void 0:L.targetId)||((I=Y)==null?void 0:I.panelIdentifier)||((V=Y)==null?void 0:(W=V.identifier)==null?void 0:W.tag);L=Y=void 0;(L=(Y=p).registerPanelContent)==null||L.call(Y,O,U)}}};
_.M.processResetAction=function(){this.currentPlayerIndex=this.index=0;this.playerData=this.player=void 0;this.unregisterPanels();this.currentEndpoint=this.reelWatchSequenceResponse=this.data=void 0;this.endOfNextContinuation=this.isPersistentPanelActive=this.anchoredPanelActive=!1;_.vJ().dispatch(M7(!1));this.isShortsInitialized=!1;this.resetPlayerLocation();_.vJ().dispatch(wf5(!1));var S=_.tW().resolve(_.Ts);S.dismissedIndices=[];S.watchWhileIndices.clear();this.isShortsMiniplayerActive()&&_.tW().resolve(_.eC).close(!0)};
_.M.processAppendReelWatchSequenceContinuationEntriesAction=function(S){var p=this,U;(U=this.intersectionObserver)==null||U.disconnect();S=S.appendReelWatchSequenceContinuationEntriesAction;if(S==null?0:S.entries){var Y;this.reelWatchSequenceResponse=Object.assign({},this.reelWatchSequenceResponse,{entries:[].concat(_.jo(((Y=this.reelWatchSequenceResponse)==null?void 0:Y.entries)||[]),_.jo(S.entries)),continuationEndpoint:S.continuationEndpoint})}else if(S==null?0:S.prevEntries){var L;this.reelWatchSequenceResponse=
Object.assign({},this.reelWatchSequenceResponse,{prevEntries:[].concat(_.jo(((L=this.reelWatchSequenceResponse)==null?void 0:L.prevEntries)||[]),_.jo(S.prevEntries)),prevContinuationEndpoint:S.prevContinuationEndpoint});_.PA.addLowPriorityJob(function(){p.movePlayerToVideo(p.index);var I;(I=p.getActiveReelVideo(p.index))==null||I.scrollIntoView({block:"nearest",inline:p.enableScrollIntoViewCenter?"center":"start"})})}else return;
_.PA.addLowPriorityJob(function(){p.observeShorts()},100)};
_.M.processWatchSequence=function(S){var p=this;return S.map(function(U){U=U.command;if(p.isVideoContentCommand(U)){var Y=_.b(U,_.QX);return{reelPlayerOverlayRenderer:_.b(Y==null?void 0:Y.overlay,_.X1t),thumbnail:Y.thumbnail,command:U}}return p.isNonVideoContentCommand(U)?(Y=_.b(U,_.Rg),{reelNonVideoContentRenderer:_.b(Y==null?void 0:Y.renderer,_.FZd),command:U}):{command:U}})};
_.M.calculateIntersectionObserverThreshold=function(){if(!_.y("web_shorts_dynamic_intersection_observer_threshold"))return.6;var S=_.tB(this.hostElement).querySelector("ytd-reel-video-renderer"),p=1;(S==null?0:S.offsetHeight)&&(S==null?0:S.offsetWidth)&&(p=Math.min(S.offsetHeight,this.shortsContainer.offsetHeight)/S.offsetHeight*(Math.min(S.offsetWidth,this.shortsContainer.offsetWidth)/S.offsetWidth));return Math.round(p*.6*10)/10};
_.M.isVideoContentCommand=function(S){_.tW().resolve(_.Ts);return!!_.b(S,_.QX)};
_.M.isNonVideoContentCommand=function(S){_.tW().resolve(_.Ts);return!!_.b(S,_.Rg)};
_.M.initCinematicController=function(){var S=this;if(this.player&&this.shortsCinematicContainer){this.JSC$19725_cinematicController=new _.Lw(this.shortsCinematicContainer,this.player);var p,U=_.b((p=this.data)==null?void 0:p.background,_.jI);_.bVY(this.JSC$19725_cinematicController,U);_.Kyi(this.JSC$19725_cinematicController,rbY(U));_.ybt(this.JSC$19725_cinematicController);_.PA.addLowPriorityJob(function(){S.moveCinematicsToVideo()})}};
_.M.handleMiniplayerNavigateShorts=function(S){S==="REEL_NAVIGATION_DESTINATION_NEXT"?this.handleNextButtonClick():S==="REEL_NAVIGATION_DESTINATION_PREV"&&this.handlePrevButtonClick()};
_.M.handleSignalActionToggleShortsPictureInPicture=function(){if(_.tW().resolve(_.eC).pictureInPictureSupported()){var S=_.tW().resolve(_.Ts);if(_.y("web_shorts_pip")){var p=_.tW().resolve(_.eC);S.isShortsPipActive()?p.deactivate():p.isMiniplayerActive()||(_.Vy().shortsPipActivation=!0,_.o5t(p))}}else(S=this.player)==null||S.togglePictureInPicture()};
_.$u.Object.defineProperties(z6.prototype,{prevShortsSequence:{configurable:!0,enumerable:!0,get:function(){var S;if((S=this.reelWatchSequenceResponse)!=null&&S.prevEntries)return this.processWatchSequence([].concat(_.jo(this.reelWatchSequenceResponse.prevEntries)).reverse())}},
shortsProcessedPrevSequence:{configurable:!0,enumerable:!0,get:function(){if(this.prevShortsSequence){var S=this.getCurrentShort();if(this.index>=0&&this.shortsProcessedPrevSequence||!S)return this.shortsProcessedPrevSequence;if(this.shortsProcessedPrevSequence){if(this.shortsProcessedPrevSequence.length<this.prevShortsSequence.length){var p=this.prevShortsSequence.length-this.shortsProcessedPrevSequence.length;return[].concat(_.jo(this.prevShortsSequence.slice(0,p)),[S],_.jo(this.prevShortsSequence.slice(p+
1)))}p=this.index+this.shortsProcessedPrevSequence.length;S.thumbnail=this.shortsProcessedPrevSequence[p].thumbnail;return[].concat(_.jo(this.shortsProcessedPrevSequence.slice(0,p)),[S],_.jo(this.shortsProcessedPrevSequence.slice(p+1)))}return this.prevShortsSequence}}},
shortsSequence:{configurable:!0,enumerable:!0,get:function(){var S;if((S=this.reelWatchSequenceResponse)!=null&&S.entries)return this.processWatchSequence(this.reelWatchSequenceResponse.entries)}},
shortsProcessedSequence:{configurable:!0,enumerable:!0,get:function(){if(this.data||this.shortsSequence){var S=this.getCurrentShort();if(!S||this.index<0)return this.shortsProcessedSequence;if(!this.shortsSequence)return[S];if(S==null||!S.reelNonVideoContentRenderer){var p=this.getIndexInSequence(this.shortsSequence,_.b(this.currentEndpoint,_.QX).videoId);if(this.index===0&&p!==-1)return this.currentPlayerIndex=this.index=p,this.scrollToVideoThrottle.fire(this.index),this.movePlayerToVideo(this.index),
[].concat(_.jo(this.shortsSequence.slice(0,this.index)),[S],_.jo(this.shortsSequence.slice(this.index+1)))}if(this.shortsProcessedSequence){S.thumbnail=this.shortsProcessedSequence[this.index].thumbnail;var U,Y,L,I;p=((Y=_.b((U=this.shortsProcessedSequence[0])==null?void 0:U.command,_.QX))==null?void 0:Y.videoId)===((I=_.b((L=this.shortsSequence[0])==null?void 0:L.command,_.QX))==null?void 0:I.videoId)?this.index+1:this.index;this.deflateInactivePreviousSlides();return[].concat(_.jo(this.shortsProcessedSequence.slice(0,
this.index)),[S],_.jo(this.shortsSequence.slice(p)))}return[S].concat(_.jo(this.shortsSequence))}}},
isUpArrowHidden:{configurable:!0,enumerable:!0,get:function(){this.playablePreviousIndex=this.getPlayablePreviousIndex();var S=this.isFirstShorts(this.prevShortsSequence)||this.playablePreviousIndex===null;S&&(this.hidePreviousButtonImmediately=!1);if(this.showPreviousButtonImmediately){if(S)return!1;this.showPreviousButtonImmediately=!1}return this.hidePreviousButtonImmediately||this.isFirstShorts(this.prevShortsSequence)||this.playablePreviousIndex===null}},
isDownArrowHidden:{configurable:!0,enumerable:!0,get:function(){if(this.endOfNextContinuation){var S,p;return this.index===((S=this.reelWatchSequenceResponse)==null?void 0:(p=S.entries)==null?void 0:p.length)}var U;return!((U=this.reelWatchSequenceResponse)==null?0:U.entries)&&this.index===0}},
activeIndex:{configurable:!0,enumerable:!0,get:function(){var S;(S=this.delayedActiveIndexUpdateDebouncer)==null||S.fire(this.index);return this.index}},
shouldRenderOfflineContent:{configurable:!0,enumerable:!0,get:function(){var S,p,U;return this.isShortPlayable()||((p=_.b((S=this.data)==null?void 0:S.watchStatus,_.a0l))==null?void 0:(U=p.style)==null?void 0:U.value)!=="BACKGROUND_PROMO_STYLE_TYPE_FULL_HEIGHT"?!1:!0}},
anchoredEngagementPanels:{configurable:!0,enumerable:!0,get:function(){var S=this,p=this.currentEndpoint&&this.isNonVideoContentCommand(this.currentEndpoint),U;if((this.data||p)&&(((U=this.data)==null?0:U.engagementPanels)||this.isAd()||p)){p=!1;this.activePanel="shorts-comments-panel";var Y;U=_.d(((Y=this.data)==null?void 0:Y.engagementPanels)||[]);for(Y=U.next();!Y.done;Y=U.next()){Y=Y.value.engagementPanelSectionListRenderer;var L=void 0,I=void 0,V=void 0,W=void 0;if((((L=Y)==null?void 0:(I=L.identifier)==
null?void 0:I.tag)||((V=Y)==null?void 0:V.targetId)||((W=Y)==null?void 0:W.panelIdentifier))===this.activePanel){p=!0;break}}if(this.isPersistentPanelActive){var O=_.tW().resolve(_.y6);_.bQ(_.PA,function(){O.showPanel(S.activePanel,void 0,void 0,void 0,null)},100)}var D;
U=[].concat(_.jo(Object.values(((D=this.data)==null?void 0:D.engagementPanels)||{})));if(_.y("enable_preview_panel_for_shorts_search_suggested_action")){var z,Q,J,K,G;((K=_.b((z=this.data)==null?void 0:(Q=z.overlay)==null?void 0:(J=Q.reelPlayerOverlayRenderer)==null?void 0:J.metapanel,_.RxH))==null?void 0:(G=K.metadataItems)==null?void 0:G.find(function(X){var Z,l;return((Z=_.b(X,NUX))==null?void 0:(l=Z.icon)==null?void 0:l.iconType)==="SEARCH"}))!==void 0&&U.push({engagementPanelSectionListRenderer:{identifier:{tag:"PAsearch_preview"},
targetId:"PAsearch_preview"}})}D=this.get("overlay.reelPlayerOverlayRenderer.viewCommentsButton.buttonRenderer",this.data);z=this.get("overlay.reelPlayerOverlayRenderer.buttonBar.reelActionBarViewModel.buttonViewModels.2.buttonViewModel",this.data);return D===void 0&&z===void 0||(D==null?0:D.isDisabled)||(z==null?void 0:z.state)==="BUTTON_VIEW_MODEL_STATE_DISABLED"||this.currentEndpoint&&this.isNonVideoContentCommand(this.currentEndpoint)||this.isAd()||!p?(p=U==null?void 0:U.findIndex(function(X){var Z,
l;return((Z=X.engagementPanelSectionListRenderer)==null?void 0:(l=Z.identifier)==null?void 0:l.tag)==="shorts-comments-panel"}),p===-1||p===void 0||U!=null&&U.splice(p,1),[{engagementPanelSectionListRenderer:{header:{engagementPanelTitleHeaderRenderer:{title:{runs:[{text:_.Oh("COMMENTS",void 0,"Comments")}]},
visibilityButton:{buttonRenderer:{style:"STYLE_DEFAULT",size:"SIZE_DEFAULT",icon:{iconType:"CLOSE"},accessibilityData:{accessibilityData:{label:_.Oh("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:_.Oh("COMMENTS_OFF",void 0,"Comments are turned off. ")},
{text:" "},{text:_.Oh("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(_.jo(Object.values(U||
{})))):U}}},
activeReel:{configurable:!0,enumerable:!0,get:function(){var S;return(S=this.shortsProcessedSequence)==null?void 0:S[this.activeIndex]}},
errorScreen:{configurable:!0,enumerable:!0,get:function(){var S=this,p,U,Y;if((p=this.playerData)==null?0:(U=p.playabilityStatus)==null?0:(Y=U.errorScreen)==null?0:Y.playerInterstitialRenderer)return _.PA.addLowPriorityJob(function(){S.movePlayerToVideo(S.index)}),this.playerData.playabilityStatus.errorScreen;
var L,I;return((L=this.data)==null?void 0:L.status)==="REEL_ITEM_WATCH_STATUS_EMPTY"&&((I=this.data)==null?0:I.watchStatus)&&_.b(this.data.watchStatus,_.axH)?(_.PA.addLowPriorityJob(function(){S.movePlayerToVideo(S.index)}),this.data.watchStatus):null}},
hasError:{configurable:!0,enumerable:!0,get:function(){return!!this.errorScreen}}});
_.$u.Object.defineProperties(z6,{template:{configurable:!0,enumerable:!0,get:function(){if(qqP===void 0){var S=document.createElement("template");_.h(S,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-shorts--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-shorts">\n  <div id="back-nav-button" class="style-scope ytd-shorts"></div>\n</div>\n<div id="offline-container" hidden="[[!shouldRenderOfflineContent]]" class="style-scope ytd-shorts"></div>\n<div id="shorts-container" hidden="[[shouldRenderOfflineContent]]" class="style-scope ytd-shorts">\n  <div id="cinematic-shorts-scrim" class="style-scope ytd-shorts"></div>\n  <div id="shorts-inner-container" class="style-scope ytd-shorts">\n    <template is="dom-if" if="[[enablePreviousContinuation]]" class="style-scope ytd-shorts">\n      <dom-repeat items="[[shortsProcessedPrevSequence]]" class="style-scope ytd-shorts">\n        <template class="style-scope ytd-shorts">\n          <div class="reel-video-in-sequence-new style-scope ytd-shorts" id$="[[calculatePrevIndex(index, shortsProcessedPrevSequence)]]" style$="[[getAspectRatio(item)]]">\n            <div class="reel-video-in-sequence-thumbnail style-scope ytd-shorts" style$="[[getBackgroundImage(item)]]">\n            </div>\n          </div>\n        </template>\n      </dom-repeat>\n    </template>\n    <dom-repeat items="[[shortsProcessedSequence]]" class="style-scope ytd-shorts">\n      <template class="style-scope ytd-shorts">\n        <div class="reel-video-in-sequence-new style-scope ytd-shorts" id$="[[index]]" style$="[[getAspectRatio(item)]]">\n          <div class="reel-video-in-sequence-thumbnail style-scope ytd-shorts" style$="[[getBackgroundImage(item)]]">\n          </div>\n        </div>\n      </template>\n    </dom-repeat>\n    <div id="initial-player-container" class="style-scope ytd-shorts">\n      <div id="shorts-cinematic-container" class="style-scope ytd-shorts"></div>\n      <ytd-player id="player" aria-hidden="[[hasError]]" context="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_SHORTS" disable-touch-gestures="" class="style-scope ytd-shorts">\n      </ytd-player>\n      <yt-playability-error-supported-renderers id="error-screen" data="[[errorScreen]]" hidden$="[[!errorScreen]]" no-background="" class="style-scope ytd-shorts">\n      </yt-playability-error-supported-renderers>\n    </div>\n    <ytd-reel-video-renderer id="reel-video-renderer" data="[[getCurrentShort(data)]]" has-error="[[hasError]]" index="[[index]]" is-active="[[isActive]]" is-persistent-panel-active="[[isPersistentPanelActive]]" is-player-paused="[[isPlayerPaused]]" watch-while-engagement-panels="[[watchWhileEngagementPanels]]" on-overlay-density-changed="[[onOverlayDensityChanged]]" class="style-scope ytd-shorts">\n    </ytd-reel-video-renderer>\n  </div>\n</div>\n<div id="shorts-panel-container" class="style-scope ytd-shorts">\n  <div id="anchored-panel-scrim" on-click="handlePanelScrimClick" class="style-scope ytd-shorts"></div>\n  <div id="anchored-panel" class="anchored-panel style-scope ytd-shorts"></div>\n</div>\n<div class="navigation-container style-scope ytd-shorts">\n  <div class="navigation-button style-scope ytd-shorts" id="navigation-button-up">\n    <ytd-button-renderer button-tooltip-position="left" data="[[prevButtonData]]" fit-to-visible-bounds="[[fitToVisibleBounds]]" overrides="[[buttonOverride]]" on-click="handlePrevButtonClick" class="style-scope ytd-shorts">\n    </ytd-button-renderer>\n  </div>\n  <div class="navigation-button style-scope ytd-shorts" id="navigation-button-down">\n    <ytd-button-renderer button-tooltip-position="left" data="[[nextButtonData]]" fit-to-visible-bounds="[[fitToVisibleBounds]]" overrides="[[buttonOverride]]" on-click="handleNextButtonClick" class="style-scope ytd-shorts">\n    </ytd-button-renderer>\n  </div>\n</div>\n');
S.content.insertBefore(_.t().content.cloneNode(!0),S.content.firstChild);qqP=S}S=qqP;return S}}});
z6.prototype.onNextButtonDataChange=z6.prototype.onNextButtonDataChange;z6.prototype.onPrevButtonDataChange=z6.prototype.onPrevButtonDataChange;z6.prototype.onPersistentPanelActiveChanged=z6.prototype.onPersistentPanelActiveChanged;z6.prototype.lazyUpdateMiniplayerData=z6.prototype.lazyUpdateMiniplayerData;z6.prototype.onShortsPipActiveChanged=z6.prototype.onShortsPipActiveChanged;z6.prototype.setActiveIndex=z6.prototype.setActiveIndex;z6.prototype.graftNvcRenderer=z6.prototype.graftNvcRenderer;
z6.prototype.graftClientVisualElements=z6.prototype.graftClientVisualElements;z6.prototype.onActiveChanged=z6.prototype.onActiveChanged;z6.prototype.onShortsDismiss=z6.prototype.onShortsDismiss;z6.prototype.onShortUndoDismiss=z6.prototype.onShortUndoDismiss;z6.prototype.playerDataChanged=z6.prototype.playerDataChanged;z6.prototype.afterPlayerStarted=z6.prototype.afterPlayerStarted;z6.prototype.unhideCurrentOverlay=z6.prototype.unhideCurrentOverlay;z6.prototype.onServiceRequestCompleted=z6.prototype.onServiceRequestCompleted;
z6.prototype.engagementPanelsChanged=z6.prototype.engagementPanelsChanged;z6.prototype.onFullscreenChange=z6.prototype.onFullscreenChange;z6.prototype.onResize=z6.prototype.onResize;_.x([_.F(_.eL.YtComponentBehavior),_.E("design:type",Object)],z6.prototype,"ytComponentBehavior",void 0);_.x([_.F(_.R1.YtPageBehavior),_.E("design:type",Object)],z6.prototype,"ytPageBehavior",void 0);_.x([_.F(_.Aj.YtActionHandlerBehavior),_.E("design:type",Object)],z6.prototype,"ytActionHandlerBehavior",void 0);
_.x([_.F(_.ji),_.E("design:type",Object)],z6.prototype,"ironResizableBehavior",void 0);_.x([_.F(_.qH.YtRendererstamperBehavior),_.E("design:type",Object)],z6.prototype,"ytRendererstamperBehavior",void 0);_.x([_.F(_.Zh),_.E("design:type",Object)],z6.prototype,"ytdDismissibleItemBehavior",void 0);_.x([_.F(_.uc.YtdGuideStateAwareBehavior),_.E("design:type",Object)],z6.prototype,"ytdGuideStateAwareBehavior",void 0);_.x([_.F(_.Xh),_.E("design:type",Object)],z6.prototype,"ytdReduxBehavior",void 0);
_.x([_.g(),_.E("design:type",Object)],z6.prototype,"data",void 0);_.x([_.g(),_.E("design:type",Object)],z6.prototype,"playerData",void 0);_.x([_.g(),_.E("design:type",Object)],z6.prototype,"reelWatchSequenceResponse",void 0);_.x([_.g(),_.E("design:type",Object)],z6.prototype,"cachedReelWatchSequenceResponse",void 0);_.x([_.g(),_.E("design:type",Object)],z6.prototype,"currentEndpoint",void 0);_.x([_.g(),_.E("design:type",Object)],z6.prototype,"nextButtonData",void 0);
_.x([_.g(),_.E("design:type",Object)],z6.prototype,"prevButtonData",void 0);_.x([_.g(),_.E("design:type",Object)],z6.prototype,"isPreviousPageShorts",void 0);_.x([_.g(),_.E("design:type",Object)],z6.prototype,"index",void 0);_.x([_.g(),_.E("design:type",Object)],z6.prototype,"delayedActiveIndex",void 0);_.x([_.g(),_.E("design:type",Object)],z6.prototype,"playablePreviousIndex",void 0);_.x([_.g(),_.E("design:type",Object)],z6.prototype,"player",void 0);
_.x([_.g(),_.E("design:type",Object)],z6.prototype,"isPlayerPaused",void 0);_.x([_.g({selector:Fyn}),_.E("design:type",Object)],z6.prototype,"isPlayerStarted",void 0);_.x([_.g(),_.E("design:type",Object)],z6.prototype,"intersectionObserver",void 0);_.x([_.g(),_.E("design:type",Number)],z6.prototype,"cinematicsInitializeJobId",void 0);_.x([_.g(),_.E("design:type",Number)],z6.prototype,"updateMiniplayerDataJobId",void 0);_.x([_.g(),_.E("design:type",Object)],z6.prototype,"fitToVisibleBounds",void 0);
_.x([_.g(),_.E("design:type",Object)],z6.prototype,"pageSubtype",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Boolean)],z6.prototype,"enablePreviousContinuation",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],z6.prototype,"shortsPipEnabled",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],z6.prototype,"isDark",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],z6.prototype,"shortsViewTransitions",void 0);
_.x([_.g({selector:_.Th,reflectToAttribute:!0}),_.E("design:type",Object)],z6.prototype,"isFullscreen",void 0);_.x([_.g({selector:_.WI,reflectToAttribute:!0}),_.E("design:type",Object)],z6.prototype,"isShortsPipActive",void 0);_.x([_.O2("#shorts-inner-container"),_.E("design:type",HTMLElement)],z6.prototype,"shortsInnerContainer",void 0);_.x([_.O2("#back-nav-button ytd-button-renderer"),_.E("design:type",_.mg)],z6.prototype,"backNavButton",void 0);
_.x([_.O2("#shorts-container"),_.E("design:type",HTMLElement)],z6.prototype,"shortsContainer",void 0);_.x([_.BN("error-screen"),_.E("design:type",HTMLElement)],z6.prototype,"errorScreenContainer",void 0);_.x([_.BN("player"),_.E("design:type",Object)],z6.prototype,"playerElement",void 0);_.x([_.BN("shorts-cinematic-container"),_.E("design:type",HTMLElement)],z6.prototype,"shortsCinematicContainer",void 0);
_.x([_.BN("initial-player-container"),_.E("design:type",HTMLElement)],z6.prototype,"initialPlayerContainer",void 0);_.x([_.g(),_.E("design:type",Object)],z6.prototype,"buttonOverride",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],z6.prototype,"anchoredPanelActive",void 0);_.x([_.g(),_.E("design:type",String)],z6.prototype,"activePanel",void 0);_.x([_.g(),_.E("design:type",Object)],z6.prototype,"isActive",void 0);
_.x([_.g({selector:RQX,reflectToAttribute:!0}),_.E("design:type",Object)],z6.prototype,"smallScreenPersistentPanel",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],z6.prototype,"isPersistentPanelActive",void 0);_.x([_.g(),_.E("design:type",Object)],z6.prototype,"smallScreenSqueezeBack",void 0);_.x([_.g(),_.E("design:type",Object)],z6.prototype,"enableScrollIntoViewCenter",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],z6.prototype,"formatFirst",void 0);
_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],z6.prototype,"enableFlexibleOverlay",void 0);_.x([_.g(),_.E("design:type",Object)],z6.prototype,"panelContainer",void 0);_.x([_.g(),_.E("design:type",Object)],z6.prototype,"overlayContainer",void 0);_.x([_.g(),_.E("design:type",Object)],z6.prototype,"isShortsInitialized",void 0);_.x([_.e("reelWatchSequenceResponse"),_.E("design:type",Object),_.E("design:paramtypes",[])],z6.prototype,"prevShortsSequence",null);
_.x([_.e("data","prevShortsSequence"),_.E("design:type",Object),_.E("design:paramtypes",[])],z6.prototype,"shortsProcessedPrevSequence",null);_.x([_.e("reelWatchSequenceResponse"),_.E("design:type",Object),_.E("design:paramtypes",[])],z6.prototype,"shortsSequence",null);_.x([_.e("data","shortsSequence"),_.E("design:type",Object),_.E("design:paramtypes",[])],z6.prototype,"shortsProcessedSequence",null);
_.x([_.g({reflectToAttribute:!0}),_.e("index","playablePreviousIndex","prevShortsSequence","hidePreviousButtonImmediately","showPreviousButtonImmediately"),_.E("design:type",Boolean),_.E("design:paramtypes",[])],z6.prototype,"isUpArrowHidden",null);_.x([_.g({reflectToAttribute:!0}),_.e("reelWatchSequenceResponse","index","endOfNextContinuation"),_.E("design:type",Boolean),_.E("design:paramtypes",[])],z6.prototype,"isDownArrowHidden",null);
_.x([_.g(),_.e("index"),_.E("design:type",Number),_.E("design:paramtypes",[])],z6.prototype,"activeIndex",null);_.x([_.e("isShortPlayable","data"),_.E("design:type",Boolean),_.E("design:paramtypes",[])],z6.prototype,"shouldRenderOfflineContent",null);_.x([_.Vd("iron-resize"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],z6.prototype,"onResize",null);_.x([_.e("data"),_.E("design:type",Object),_.E("design:paramtypes",[])],z6.prototype,"anchoredEngagementPanels",null);
_.x([_.g(),_.E("design:type",Object)],z6.prototype,"watchWhileEngagementPanels",void 0);_.x([_.T4("isFullscreen"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],z6.prototype,"onFullscreenChange",null);_.x([_.T4("data"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],z6.prototype,"engagementPanelsChanged",null);
_.x([_.Vd("yt-service-request-completed"),_.E("design:type",Function),_.E("design:paramtypes",[CustomEvent,_.xL]),_.E("design:returntype")],z6.prototype,"onServiceRequestCompleted",null);_.x([_.e("data","shortsSequence","index"),_.E("design:type",Object),_.E("design:paramtypes",[])],z6.prototype,"activeReel",null);_.x([_.T4("data"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],z6.prototype,"unhideCurrentOverlay",null);
_.x([_.T4("isPlayerStarted"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],z6.prototype,"afterPlayerStarted",null);_.x([_.e("playerData","reelWatchSequenceResponse","data"),_.E("design:type",Object),_.E("design:paramtypes",[])],z6.prototype,"errorScreen",null);_.x([_.e("errorScreen"),_.E("design:type",Boolean),_.E("design:paramtypes",[])],z6.prototype,"hasError",null);
_.x([_.T4("playerData"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype",Promise)],z6.prototype,"playerDataChanged",null);_.x([_.Vd("yt-dismissible-item-undo-feedback"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],z6.prototype,"onShortUndoDismiss",null);_.x([_.Vd("yt-disable-lockup-interaction"),_.E("design:type",Function),_.E("design:paramtypes",[Object]),_.E("design:returntype")],z6.prototype,"onShortsDismiss",null);
_.x([_.z4("active"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],z6.prototype,"onActiveChanged",null);_.x([_.T4("data"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],z6.prototype,"graftClientVisualElements",null);_.x([_.T4("currentPlayerIndex"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],z6.prototype,"graftNvcRenderer",null);
_.x([_.T4("index"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],z6.prototype,"setActiveIndex",null);_.x([_.T4("isShortsPipActive"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],z6.prototype,"onShortsPipActiveChanged",null);_.x([_.T4("data"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],z6.prototype,"lazyUpdateMiniplayerData",null);
_.x([_.g(),_.E("design:type",Object)],z6.prototype,"onOverlayDensityChanged",void 0);_.x([_.T4("isPersistentPanelActive"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],z6.prototype,"onPersistentPanelActiveChanged",null);_.x([_.T4("index","data","isUpArrowHidden"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],z6.prototype,"onPrevButtonDataChange",null);
_.x([_.T4("index","data"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],z6.prototype,"onNextButtonDataChange",null);z6=_.x([_.f({is:"ytd-shorts"})],z6);_.A4.registerService(_.$Re,z6);
_.g5();
}catch(e){_._DumpException(e)}
try{
_.e$("JzFVk");
var GaX=function(S){return _.H("ytd-button-banner-view-model",{class:"ytwYtdButtonBannerViewModelHost"},rMs(S.data.ctaButton,{buttonViewModel:{}}),_.H(_.i6,{text:S.data.subtext,className:"ytwYtdButtonBannerViewModelSubtext"}))};var hVT;var RVo;var gj=function(){return _.w.apply(this,arguments)||this};
_.r(gj,_.w);gj.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
gj.prototype.computeBlueBottomLink=function(S){return S};
_.x([_.F(_.qH.YtRendererstamperBehavior),_.E("design:type",Object)],gj.prototype,"ytRendererstamperBehavior",void 0);_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],gj.prototype,"ytRendererBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],gj.prototype,"data",void 0);_.x([_.g({computed:"computeIcon_(data.bottomIcon)"}),_.E("design:type",String)],gj.prototype,"bottomIcon",void 0);
_.x([_.g({computed:"computeBlueBottomLink(data.blueBottomLink)",reflectToAttribute:!0}),_.E("design:type",Boolean)],gj.prototype,"enableBlueBottomLink",void 0);gj=_.x([_.f({is:"ytd-web-answer-renderer",disableElementRegistration:!0})],gj);
_.C(gj,"ytd-web-answer-renderer",function(){if(RVo!==void 0)return RVo;var S=document.createElement("template");_.h(S,'\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');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);return RVo=S},{mode:_.UW("kevlar_poly_si_batch_j035")?1:2});var FNJ;var uU=function(){var S=_.w.apply(this,arguments)||this;S.hasChipBar=!1;return S};
_.r(uU,_.w);uU.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}}};
uU.prototype.computeHasChipBar=function(S){return!(S==null||!S.chipBar)};
_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],uU.prototype,"ytRendererBehavior",void 0);_.x([_.F(_.qH.YtRendererstamperBehavior),_.E("design:type",Object)],uU.prototype,"ytRendererstamperBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],uU.prototype,"data",void 0);_.x([_.g({reflectToAttribute:!0,computed:"computeHasChipBar(data)"}),_.E("design:type",Object)],uU.prototype,"hasChipBar",void 0);uU=_.x([_.f({is:"ytd-search-header-renderer",disableElementRegistration:!0})],uU);
_.C(uU,"ytd-search-header-renderer",function(){if(FNJ!==void 0)return FNJ;var S=document.createElement("template");_.h(S,'\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');
S.content.insertBefore(_.t().content.cloneNode(!0),S.content.firstChild);return FNJ=S},{mode:1});var X2i;var wj=function(){return _.w.apply(this,arguments)||this};
_.r(wj,_.w);wj.prototype.configureRendererStamper=function(){return{"data.pages":{id:"pages",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],wj.prototype,"ytRendererBehavior",void 0);_.x([_.F(_.qH.YtRendererstamperBehavior),_.E("design:type",Object)],wj.prototype,"ytRendererstamperBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],wj.prototype,"data",void 0);wj=_.x([_.f({disableElementRegistration:!0,is:"ytd-page-continuation"})],wj);
_.C(wj,"ytd-page-continuation",function(){if(X2i!==void 0)return X2i;var S=document.createElement("template");_.h(S,'\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');S.content.insertBefore(_.t().content.cloneNode(!0),S.content.firstChild);return X2i=S},{mode:1});var PdP;var ZiJ;var s$5;var lU=function(){return _.w.apply(this,arguments)||this};
_.r(lU,_.w);_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],lU.prototype,"ytRendererBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],lU.prototype,"data",void 0);lU=_.x([_.f({disableElementRegistration:!0,is:"ytd-watch-card-one-vs-one-event"})],lU);
_.C(lU,"ytd-watch-card-one-vs-one-event",function(){if(s$5!==void 0)return s$5;var S=document.createElement("template");_.h(S,'\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');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);return s$5=S},{mode:1});var a7=function(){return _.w.apply(this,arguments)||this};
_.r(a7,_.w);_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],a7.prototype,"ytRendererBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],a7.prototype,"data",void 0);a7=_.x([_.f({is:"ytd-watch-card-hero-one-vs-one-event-renderer",disableElementRegistration:!0})],a7);
_.C(a7,"ytd-watch-card-hero-one-vs-one-event-renderer",function(){if(ZiJ!==void 0)return ZiJ;var S=document.createElement("template");_.h(S,'\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');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);return ZiJ=S},{mode:1});var eVX;var fn=function(){return _.w.apply(this,arguments)||this};
_.r(fn,_.w);_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],fn.prototype,"ytRendererBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],fn.prototype,"data",void 0);fn=_.x([_.f({is:"ytd-banner-and-box-hero-image-renderer",disableElementRegistration:!0})],fn);
_.C(fn,"ytd-banner-and-box-hero-image-renderer",function(){if(eVX!==void 0)return eVX;var S=document.createElement("template");_.h(S,'\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>');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);return eVX=S},{mode:1});var g3X;var Cn=function(){var S=_.w.apply(this,arguments)||this;S.modern=_.y("web_modern_buttons");return S};
_.r(Cn,_.w);Cn.prototype.computeIcon=function(){var S,p,U=(S=this.data)==null?void 0:(p=S.icon)==null?void 0:p.iconType;if(U)return _.If(U)};
Cn.prototype.computeButtonShape=function(){var S;return{buttonText:_.mA((S=this.data)==null?void 0:S.label),iconPosition:"leading",style:"overlay",type:"filled",size:"M",state:"active"}};
_.$u.Object.defineProperties(Cn.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"}}});
_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],Cn.prototype,"ytRendererBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],Cn.prototype,"data",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],Cn.prototype,"modern",void 0);_.x([_.g({type:_.y("kevlar_property_type_migration_killswitch")?String:void 0,reflectToAttribute:!0}),_.e("data.style"),_.E("design:type",Object),_.E("design:paramtypes",[])],Cn.prototype,"buttonColor",null);
Cn=_.x([_.f({is:"ytd-call-to-action-button-renderer",disableElementRegistration:!0})],Cn);
_.C(Cn,"ytd-call-to-action-button-renderer",function(){if(g3X!==void 0)return g3X;var S=document.createElement("template");_.h(S,'\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');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);return g3X=S},{mode:1});var uZq;var xw=function(){return _.w.apply(this,arguments)||this};
_.r(xw,_.w);xw.prototype.onLeftThumbnailChanged=function(){this.data&&this.data.leftThumbnail&&(_.tB(this.hostElement).querySelector("#section-left").style.backgroundImage="url("+_.AS(this.data.leftThumbnail.thumbnails,216)+")")};
xw.prototype.onLeftThumbnailChanged=xw.prototype.onLeftThumbnailChanged;_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],xw.prototype,"ytRendererBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],xw.prototype,"data",void 0);_.x([_.T4("data.leftThumbnail"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],xw.prototype,"onLeftThumbnailChanged",null);xw=_.x([_.f({is:"ytd-collage-hero-image-renderer",disableElementRegistration:!0})],xw);
_.C(xw,"ytd-collage-hero-image-renderer",function(){if(uZq!==void 0)return uZq;var S=document.createElement("template");_.h(S,'\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>');
S.content.insertBefore(_.t().content.cloneNode(!0),S.content.firstChild);return uZq=S},{mode:1});var w25;var E7=function(){return _.w.apply(this,arguments)||this};
_.r(E7,_.w);E7.prototype.computeStyle=function(S){return S};
_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],E7.prototype,"ytRendererBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],E7.prototype,"data",void 0);_.x([_.g({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.E("design:type",String)],E7.prototype,"componentStyle",void 0);E7=_.x([_.f({is:"ytd-single-hero-image-renderer",disableElementRegistration:!0})],E7);
_.C(E7,"ytd-single-hero-image-renderer",function(){if(w25!==void 0)return w25;var S=document.createElement("template");_.h(S,'\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');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);return w25=S},{mode:1});var l8E;var m8=function(){return _.w.apply(this,arguments)||this};
_.r(m8,_.w);_.M=m8.prototype;
_.M.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:_.y("defer_overlays")?0:void 0,waitForSignal:"eocs"}}};
_.M.computeSubtitle=function(S){if(this.data){var p;if(this.data.upcomingEventData){S=_.mA(S.subtitle);var U=Number(this.data.upcomingEventData.startTime);isNaN(U)||(p=_.Ec(_.Ze(S,U)))}else p=S.subtitle;return p}};
_.M.onHeroTap=function(S){S.preventDefault();var p=this.data&&this.data.navigationEndpoint;!p||!_.Eo(_.E1(S),this.hostElement,["YTD-CALL-TO-ACTION-BUTTON-RENDERER"])&&_.Eo(_.E1(S),this.hostElement,["A".toString(),"BUTTON".toString()])||(_.y("kevlar_watchcard_hero_video_renderer_killswitch")?_.cv(this.hostElement,"yt-navigate",{navigationEndpoint:p}):this.ytComponentBehavior.resolveCommand(p))};
_.M.computeHeroTabIndex=function(S){return S&&S.simpleText?-1:0};
_.M.computeHeroRole=function(S){return S&&S.simpleText?"":"link"};
_.M.computeIsReminderButtonPresent=function(S){return!(!S||!S.reminderButton)};
_.M.computeHideBottomItems=function(S){return!(this.computeIsReminderButtonPresent(S)||S.subtitle)};
_.M.dataChanged=function(){var S=this.get("data.buttons.buttonRenderer.serviceEndpoint"),p;((p=_.b(S==null?void 0:S.commandMetadata,_.bB))==null?0:p.fireAutomatically)&&this.ytComponentBehavior.resolveCommand(S)};
m8.prototype.dataChanged=m8.prototype.dataChanged;_.x([_.F(_.eL.YtComponentBehavior),_.E("design:type",Object)],m8.prototype,"ytComponentBehavior",void 0);_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],m8.prototype,"ytRendererBehavior",void 0);_.x([_.F(_.qH.YtRendererstamperBehavior),_.E("design:type",Object)],m8.prototype,"ytRendererstamperBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],m8.prototype,"data",void 0);
_.x([_.g({computed:"computeSubtitle(data)"}),_.E("design:type",String)],m8.prototype,"subtitle",void 0);_.x([_.g({computed:"computeIsReminderButtonPresent(data)",reflectToAttribute:!0}),_.E("design:type",Boolean)],m8.prototype,"isReminderButtonPresent",void 0);_.x([_.g({computed:"computeHideBottomItems(data)",reflectToAttribute:!0}),_.E("design:type",Boolean)],m8.prototype,"hideBottomItems",void 0);
_.x([_.T4("data"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],m8.prototype,"dataChanged",null);m8=_.x([_.f({is:"ytd-watch-card-hero-video-renderer",disableElementRegistration:!0})],m8);
_.C(m8,"ytd-watch-card-hero-video-renderer",function(){if(l8E!==void 0)return l8E;var S=document.createElement("template");_.h(S,'\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');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);return l8E=S},{mode:1});var a85;var o7=function(){return _.w.apply(this,arguments)||this};
_.r(o7,_.w);_.M=o7.prototype;_.M.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"}}}};
_.M.computeTitleBadges=function(S){return S?[S]:[]};
_.M.computeHeaderStyle=function(S){return S?S.replace("WATCH_CARD_RICH_HEADER_RENDERER_STYLE_","").toLowerCase():""};
_.M.computeAvatarAriaLabel=function(S){if(S){var p,U,Y,L;return(L=(p=S.avatar)==null?void 0:(U=p.accessibility)==null?void 0:(Y=U.accessibilityData)==null?void 0:Y.label)!=null?L:_.mA(S==null?void 0:S.title)}};
_.M.computeAvatarHeight=function(S){return S==="WATCH_CARD_RICH_HEADER_RENDERER_STYLE_LEFT_AVATAR"?72:48};
_.M.computeBadgeRowClass=function(S){return(S==null?0:S[0].metadataBadgeRenderer)?"layout-block":"layout-inline"};
_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],o7.prototype,"ytRendererBehavior",void 0);_.x([_.F(_.qH.YtRendererstamperBehavior),_.E("design:type",Object)],o7.prototype,"ytRendererstamperBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],o7.prototype,"data",void 0);_.x([_.g({computed:"computeTitleBadges(data.titleBadge)"}),_.E("design:type",Array)],o7.prototype,"titleBadges",void 0);
_.x([_.g({reflectToAttribute:!0,computed:"computeHeaderStyle(data.style)"}),_.E("design:type",String)],o7.prototype,"headerStyle",void 0);_.x([_.g({reflectToAttribute:!0,computed:"computeBadgeRowClass(data.badges)"}),_.E("design:type",String)],o7.prototype,"badgeRowClass",void 0);o7=_.x([_.f({is:"ytd-watch-card-rich-header-renderer",disableElementRegistration:!0})],o7);
_.C(o7,"ytd-watch-card-rich-header-renderer",function(){if(a85!==void 0)return a85;var S=document.createElement("template");_.h(S,'\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');
S.content.insertBefore(_.t().content.cloneNode(!0),S.content.firstChild);return a85=S},{mode:1});var f8T;var CdL;var vK=function(){return _.w.apply(this,arguments)||this};
_.r(vK,_.w);vK.prototype.onMetadataTap=function(S){var p=this.data&&this.data.navigationEndpoint;p&&!_.Eo(_.E1(S),this.hostElement,["A".toString()])&&_.cv(this.hostElement,"yt-navigate",{endpoint:p})};
_.$u.Object.defineProperties(vK.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 S;if(this.data.upcomingEventData){var p=_.mA(this.data.subtitle),U=Number(this.data.upcomingEventData.startTime);isNaN(U)||(S=_.Ec(_.Ze(p,U)))}else S=this.data.subtitle;return S}}}});
_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],vK.prototype,"ytRendererBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],vK.prototype,"data",void 0);_.x([_.g({reflectToAttribute:!0}),_.e("data.style"),_.E("design:type",Boolean),_.E("design:paramtypes",[])],vK.prototype,"isCondensed",null);_.x([_.g({reflectToAttribute:!0}),_.e("data"),_.E("design:type",Object),_.E("design:paramtypes",[])],vK.prototype,"subtitle",null);
vK=_.x([_.f({is:"ytd-watch-card-compact-video-renderer",disableElementRegistration:!0})],vK);
_.C(vK,"ytd-watch-card-compact-video-renderer",function(){if(CdL!==void 0)return CdL;var S=document.createElement("template");_.h(S,'\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');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);return CdL=S},{mode:1});var xyT;var $w=function(){return _.w.apply(this,arguments)||this};
_.r($w,_.w);_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],$w.prototype,"ytRendererBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],$w.prototype,"data",void 0);$w=_.x([_.f({is:"ytd-watch-card-one-vs-one-event-compact-video-renderer",disableElementRegistration:!0})],$w);
_.C($w,"ytd-watch-card-one-vs-one-event-compact-video-renderer",function(){if(xyT!==void 0)return xyT;var S=document.createElement("template");_.h(S,'\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');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);return xyT=S},{mode:1});var iU=function(){return _.w.apply(this,arguments)||this};
_.r(iU,_.w);iU.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}}}}};
_.x([_.F(_.qH.YtRendererstamperBehavior),_.E("design:type",Object)],iU.prototype,"ytRendererStamperBehavior",void 0);_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],iU.prototype,"ytRendererBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],iU.prototype,"data",void 0);iU=_.x([_.f({is:"ytd-vertical-watch-card-list-renderer",disableElementRegistration:!0})],iU);
_.C(iU,"ytd-vertical-watch-card-list-renderer",function(){if(f8T!==void 0)return f8T;var S=document.createElement("template");_.h(S,'\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');
S.content.insertBefore(_.t().content.cloneNode(!0),S.content.firstChild);return f8T=S},{mode:1});var E3E;var N6=function(){var S=_.w.apply(this,arguments)||this;S.ariaExpanded="false";return S};
_.r(N6,_.w);_.M=N6.prototype;_.M.configureRendererStamper=function(){return{"data.lists":{id:"lists",mapping:{verticalWatchCardListRenderer:"ytd-vertical-watch-card-list-renderer"}}}};
_.M.dataChanged=function(){var S;this.currentSeasonIndex=((S=this.data)==null?void 0:S.dropdownDefaultSelectedIndex)||0;this.lists.select(this.currentSeasonIndex);this.label=this.getUppercaseSimpleString(this.data.dropdownTitles[this.currentSeasonIndex])};
_.M.computeEpisodesInfo=function(S,p,U){if(S!==void 0&&p.length===S.length)return S[U]};
_.M.onSeasonSelect=function(){this.ytRendererBehavior.markDirty()};
_.M.currentSeasonIndexChanged=function(){this.data&&this.data.dropdownTitles&&(this.label=this.getUppercaseSimpleString(this.data.dropdownTitles[this.currentSeasonIndex]))};
_.M.onLabelClick=function(){this.hostElement.ariaExpanded="true"};
_.M.onIronOverlayClosed=function(){this.hostElement.ariaExpanded="false"};
_.M.getUppercaseSimpleString=function(S){return this.ytRendererBehavior.getSimpleString(S).toUpperCase()};
_.M.updateCurrentSeasonIndexFromBinding=function(S){this.currentSeasonIndex=S.detail.value};
N6.prototype.onIronOverlayClosed=N6.prototype.onIronOverlayClosed;N6.prototype.currentSeasonIndexChanged=N6.prototype.currentSeasonIndexChanged;N6.prototype.dataChanged=N6.prototype.dataChanged;_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],N6.prototype,"ytRendererBehavior",void 0);_.x([_.F(_.qH.YtRendererstamperBehavior),_.E("design:type",Object)],N6.prototype,"ytRendererstamperBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],N6.prototype,"data",void 0);
_.x([_.g(),_.E("design:type",String)],N6.prototype,"label",void 0);_.x([_.g({value:0}),_.E("design:type",Number)],N6.prototype,"currentSeasonIndex",void 0);_.x([_.g({computed:"computeEpisodesInfo(data.dropdownSubtitles,data.dropdownTitles,currentSeasonIndex)"}),_.E("design:type",Object)],N6.prototype,"episodesInfo",void 0);_.x([_.g({value:"false"}),_.E("design:type",Object)],N6.prototype,"ariaExpanded",void 0);_.x([_.O2("#lists"),_.E("design:type",Object)],N6.prototype,"lists",void 0);
_.x([_.z4("data"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],N6.prototype,"dataChanged",null);_.x([_.z4("currentSeasonIndex"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],N6.prototype,"currentSeasonIndexChanged",null);_.x([_.Vd("iron-overlay-closed"),_.E("design:type",Function),_.E("design:paramtypes",[Event]),_.E("design:returntype")],N6.prototype,"onIronOverlayClosed",null);
N6=_.x([_.f({is:"ytd-watch-card-section-dropdown-renderer",disableElementRegistration:!0})],N6);
_.C(N6,"ytd-watch-card-section-dropdown-renderer",function(){if(E3E!==void 0)return E3E;var S=document.createElement("template");_.h(S,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-watch-card-section-dropdown-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="season-picker-container style-scope ytd-watch-card-section-dropdown-renderer">\n  <tp-yt-paper-menu-button id="input" dynamic-align="" horizontal-align="left" class="style-scope ytd-watch-card-section-dropdown-renderer">\n    <tp-yt-paper-button id="label" class="dropdown-trigger style-scope ytd-watch-card-section-dropdown-renderer" slot="dropdown-trigger" aria-expanded$="[[ariaExpanded]]" aria-label$="[[label]]" on-tap="onLabelClick">\n      <div id="label-text" class="style-scope ytd-watch-card-section-dropdown-renderer">[[label]]</div>\n      <yt-icon id="label-icon" icon="yt-icons:arrow_drop_down" class="style-scope ytd-watch-card-section-dropdown-renderer">\n      </yt-icon>\n    </tp-yt-paper-button>\n    <tp-yt-paper-listbox id="seasons" class="dropdown-content style-scope ytd-watch-card-section-dropdown-renderer" slot="dropdown-content" selected="[[currentSeasonIndex]]" on-iron-select="onSeasonSelect" on-selected-changed="updateCurrentSeasonIndexFromBinding">\n      <template is="dom-repeat" items="[[data.dropdownTitles]]" class="style-scope ytd-watch-card-section-dropdown-renderer">\n        <tp-yt-paper-item aria-label$="[[item.accessibility.accessibilityData.label]]" class="style-scope ytd-watch-card-section-dropdown-renderer">\n          [[getUppercaseSimpleString(item)]]\n        </tp-yt-paper-item>\n      </template>\n    </tp-yt-paper-listbox>\n  </tp-yt-paper-menu-button>\n  <span id="spacer" class="style-scope ytd-watch-card-section-dropdown-renderer"></span>\n  <yt-formatted-string id="episodes" text="[[episodesInfo]]" class="style-scope ytd-watch-card-section-dropdown-renderer">\n  </yt-formatted-string>\n</div>\n<tp-yt-iron-pages id="lists" selected="[[currentSeasonIndex]]" on-selected-changed="updateCurrentSeasonIndexFromBinding" class="style-scope ytd-watch-card-section-dropdown-renderer">\n  \n</tp-yt-iron-pages>\n');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);return E3E=S},{mode:1});var myA;var BK=function(){var S=_.w.apply(this,arguments)||this;S.isSearch=!1;return S};
_.r(BK,_.w);BK.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}}}}};
_.x([_.F(_.qH.YtRendererstamperBehavior),_.E("design:type",Object)],BK.prototype,"ytRendererstamperBehavior",void 0);_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],BK.prototype,"ytRendererBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],BK.prototype,"data",void 0);_.x([_.g(),_.E("design:type",Object)],BK.prototype,"isSearch",void 0);BK=_.x([_.f({is:"ytd-watch-card-section-sequence-renderer",disableElementRegistration:!0})],BK);
_.C(BK,"ytd-watch-card-section-sequence-renderer",function(){if(myA!==void 0)return myA;var S=document.createElement("template");_.h(S,'\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');S.content.insertBefore(_.t().content.cloneNode(!0),S.content.firstChild);
return myA=S},{mode:1});var rMs=_.zy({buttonViewModel:_.PG});_.cH(GaX);_.Ls(GaX,"ytd-button-banner-view-model",{propNames:["data"]});var q6=function(){var S=_.w.apply(this,arguments)||this;S.isSearch=!1;return S};
_.r(q6,_.w);
q6.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"}}}};
_.x([_.F(_.qH.YtRendererstamperBehavior),_.E("design:type",Object)],q6.prototype,"ytRendererstamperBehavior",void 0);_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],q6.prototype,"ytRendererBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],q6.prototype,"data",void 0);_.x([_.g({reflectToAttribute:!0,value:!0}),_.E("design:type",Boolean)],q6.prototype,"rounded",void 0);_.x([_.g(),_.E("design:type",Object)],q6.prototype,"isSearch",void 0);
q6=_.x([_.f({is:"ytd-universal-watch-card-renderer",disableElementRegistration:!0})],q6);
_.C(q6,"ytd-universal-watch-card-renderer",function(){if(PdP!==void 0)return PdP;var S=document.createElement("template");_.h(S,'\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');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);return PdP=S},{mode:1});var o3q;_.qm(_.$k(function(S){var p=S.data;var U;S=!((U=_.tW().resolve(_.AW(_.Cz)))==null||!U());U={};return _.H("overview-message-view-model",{class:_.VD("ytwOverviewMessageViewModelHost",(U.ytwOverviewMessageViewModelDarkBackground=S,U.ytwOverviewMessageViewModelLightBackground=!S,U))},_.H(_.n,{cond:function(){return p().primaryImage},
then:function(Y){return _.H(_.of,{data:Y,contentMode:"CONTENT_MODE_CENTER",alt:"",targetWidth:120,targetHeight:120,className:"ytwOverviewMessageViewModelMessageImage"})}}),_.H(_.n,{cond:function(){return p().primaryText},
then:function(){return _.H("div",{class:"ytwOverviewMessageViewModelPrimaryMessageText"},_.H(_.i6,{text:function(){return p().primaryText}}))}}),_.H(_.n,{cond:function(){return p().secondaryText},
then:function(){return _.H("div",{class:"ytwOverviewMessageViewModelSecondaryMessageText"},_.H(_.i6,{text:function(){return p().secondaryText}}))}}))},"Fi"),"overview-message-view-model",{props:{data:_.x2}});_.Ls(_.OMH,"ytd-overview-answer-view-model",{propNames:["data"]});var A$=function(){return _.w.apply(this,arguments)||this};
_.r(A$,_.w);A$.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"}}}};
A$.prototype.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"contents"}};
_.x([_.F(_.qH.YtRendererstamperBehavior),_.E("design:type",Object)],A$.prototype,"ytRendererstamperBehavior",void 0);_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],A$.prototype,"ytRendererBehavior",void 0);_.x([_.F(_.wS),_.E("design:type",Object)],A$.prototype,"ytContinuationHandlerBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],A$.prototype,"data",void 0);_.x([_.g({value:!1}),_.E("design:type",Boolean)],A$.prototype,"isSearch",void 0);
A$=_.x([_.f({disableElementRegistration:!0,is:"ytd-secondary-search-container-renderer"})],A$);
_.C(A$,"ytd-secondary-search-container-renderer",function(){if(o3q!==void 0)return o3q;var S=document.createElement("template");_.h(S,'\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');S.content.insertBefore(_.t().content.cloneNode(!0),S.content.firstChild);
return o3q=S},{mode:1});var v3d;var t$=function(){var S=_.w.apply(this,arguments)||this;S.renderSecondarySearchContainer=!1;S.isSearch=!1;S.isSearchDova=_.y("dova_on_search");return S};
_.r(t$,_.w);_.M=t$.prototype;_.M.configureRendererStamper=function(){return{"data.primaryContents":{id:"primary",mapping:{sectionListRenderer:{component:"ytd-section-list-renderer",properties:{isSearch:"[[isSearch]]",isSearchDova:"[[isSearchDova]]"}}}},"data.continuations":{id:"continuations",mapping:{pageContinuationData:"ytd-page-continuation"}}}};
_.M.created=function(){var S=this;this.boundStampSecondarySearchContainerIfFits=function(){S.stampSecondarySearchContainerIfFits()};
_.en("REMAINING_DOVA_DEFERRED_CHUNKS",1)};
_.M.computeIsSearchFrictionPage=function(S){var p,U,Y,L,I;S=S==null?void 0:(p=S.primaryContents)==null?void 0:(U=p.sectionListRenderer)==null?void 0:(Y=U.contents)==null?void 0:(L=Y[0])==null?void 0:(I=L.itemSectionRenderer)==null?void 0:I.contents;if(!S)return!1;p=_.d(S);for(U=p.next();!U.done;U=p.next())if(Y=void 0,(Y=U.value)==null?0:Y.searchFrictionViewModel)return!0;return!1};
_.M.computeShowSecondaryColumn=function(S,p){return!!(p&&p.secondaryContents&&S)};
_.M.activeChanged=function(){var S=this;this.active&&!this.renderSecondarySearchContainer?(window.addEventListener("resize",_.d9(this,this.debounceStampSecondarySearchContainerIfFits)),_.uK(function(){S.debounceStampSecondarySearchContainerIfFits()})):this.active||window.removeEventListener("resize",_.d9(this,this.debounceStampSecondarySearchContainerIfFits))};
_.M.persistentGuideChanged=function(){this.active&&!this.renderSecondarySearchContainer&&this.debounceStampSecondarySearchContainerIfFits()};
_.M.stampSecondarySearchContainerIfFits=function(){!this.renderSecondarySearchContainer&&window.innerWidth>=1090&&(this.renderSecondarySearchContainer=!0)};
_.M.debounceStampSecondarySearchContainerIfFits=function(){_.w9(this,"stampSecondarySearchContainerIfFits",this.boundStampSecondarySearchContainerIfFits)};
_.M.onRetrieveLocation=function(S,p){p.locationRetrieved(location.pathname+location.search+"&pbj=1",void 0);S.stopPropagation()};
_.M.dataChanged=function(){this.active&&!this.renderSecondarySearchContainer&&this.debounceStampSecondarySearchContainerIfFits()};
t$.prototype.dataChanged=t$.prototype.dataChanged;t$.prototype.onRetrieveLocation=t$.prototype.onRetrieveLocation;t$.prototype.persistentGuideChanged=t$.prototype.persistentGuideChanged;t$.prototype.activeChanged=t$.prototype.activeChanged;_.x([_.F(_.qH.YtRendererstamperBehavior),_.E("design:type",Object)],t$.prototype,"ytRendererstamperBehavior",void 0);_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],t$.prototype,"ytRendererBehavior",void 0);
_.x([_.F(_.uc.YtdGuideStateAwareBehavior),_.E("design:type",Object)],t$.prototype,"ytdGuideStateAwareBehavior",void 0);_.x([_.F(_.ji),_.E("design:type",Object)],t$.prototype,"ironResizableBehavior",void 0);_.x([_.g(),_.E("design:type",Boolean)],t$.prototype,"active",void 0);_.x([_.g(),_.E("design:type",Object)],t$.prototype,"data",void 0);_.x([_.g({reflectToAttribute:!0,value:function(){return _.y("enable_desktop_search_bigger_thumbs")}}),
_.E("design:type",Boolean)],t$.prototype,"useBiggerThumbs",void 0);_.x([_.g({reflectToAttribute:!0,value:function(){return _.Ug("desktop_search_bigger_thumbs_style")}}),
_.E("design:type",String)],t$.prototype,"biggerThumbsStyle",void 0);_.x([_.g(),_.E("design:type",Object)],t$.prototype,"renderSecondarySearchContainer",void 0);_.x([_.g({computed:"computeShowSecondaryColumn(renderSecondarySearchContainer, data)"}),_.E("design:type",Boolean)],t$.prototype,"showSecondaryColumn",void 0);_.x([_.g({reflectToAttribute:!0,computed:"computeIsSearchFrictionPage(data)"}),_.E("design:type",Boolean)],t$.prototype,"isSearchFrictionPage",void 0);
_.x([_.g(),_.E("design:type",Object)],t$.prototype,"isSearch",void 0);_.x([_.g(),_.E("design:type",Object)],t$.prototype,"isSearchDova",void 0);_.x([_.T4("active"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],t$.prototype,"activeChanged",null);_.x([_.T4("guidePersistentAndVisible"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],t$.prototype,"persistentGuideChanged",null);
_.x([_.Vd("yt-retrieve-location"),_.E("design:type",Function),_.E("design:paramtypes",[CustomEvent,Object]),_.E("design:returntype")],t$.prototype,"onRetrieveLocation",null);_.x([_.z4("data"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],t$.prototype,"dataChanged",null);t$=_.x([_.f({disableElementRegistration:!0,is:"ytd-two-column-search-results-renderer"})],t$);
_.C(t$,"ytd-two-column-search-results-renderer",function(){if(v3d!==void 0)return v3d;var S=document.createElement("template");_.h(S,'\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');
S.content.insertBefore(_.t().content.cloneNode(!0),S.content.firstChild);return v3d=S},{mode:1});var cK=function(){var S=_.w.apply(this,arguments)||this;S.hasSearchHeader=!1;S.hasSecondaryContent=!1;S.hasBiggerThumbs=_.y("enable_desktop_search_bigger_thumbs");S.actionMap={"yt-show-search-contents-command":"onYtShowSearchContentsCommand"};return S};
_.r(cK,_.w);_.M=cK.prototype;_.M.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:_.ZT(["aa","eocs"])}}};
_.M.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"contents","yt-reload-continuation-items-command-header":"header"}};
_.M.loadPage_=function(S){this.initCsi();S&&(this.data=S,_.en("REFINEMENTS_TUPLE",["FromSearchResponse",S.refinements||[]]),this.ytRendererBehavior.parentComponent&&_.Nz(this.ytRendererBehavior.parentComponent));this.updateTitle()};
_.M.initCsi=function(){_.hv("results",["ol","cpt"])};
_.M.updateTitle=function(){var S=_.xY(window.location.href,"q");S||(S=_.xY(window.location.href,"search_query"));_.cv(this.hostElement,"yt-update-title",S||"")};
_.M.onYtShowSearchContentsCommand=function(){this.set("data.hideContents",!1)};
_.M.dataChanged=function(){this.hasSearchHeader=this.computeHasSearchHeader(this.data);this.hasSecondaryContent=this.computeHasSecondaryContent(this.data);_.y("web_srp_data_changed_terminate_imp_killswitch")||_.St(this.hostElement,"yt-terminate-video-preview-action")};
_.M.onReloadContinuationFinish=function(){this.hasSearchHeader=this.computeHasSearchHeader(this.data);this.hasSecondaryContent=this.computeHasSecondaryContent(this.data)};
_.M.computeHasSearchHeader=function(S){var p;S=S==null?void 0:(p=S.header)==null?void 0:p.searchHeaderRenderer;return!!S&&(!!S.searchFilterButton||!!S.chipBar)};
_.M.computeHasSecondaryContent=function(S){var p,U;return!!(S==null?0:(p=S.contents)==null?0:(U=p.twoColumnSearchResultsRenderer)==null?0:U.secondaryContents)};
_.$u.Object.defineProperties(cK,{template:{configurable:!0,enumerable:!0,get:function(){if(hVT===void 0){var S=document.createElement("template");_.h(S,'\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');
S.content.insertBefore(_.t().content.cloneNode(!0),S.content.firstChild);hVT=S}S=hVT;return S}}});
cK.prototype.onReloadContinuationFinish=cK.prototype.onReloadContinuationFinish;cK.prototype.dataChanged=cK.prototype.dataChanged;_.x([_.F(_.R1.YtPageBehavior),_.E("design:type",Object)],cK.prototype,"ytPageBehavior",void 0);_.x([_.F(_.Aj.YtActionHandlerBehavior),_.E("design:type",Object)],cK.prototype,"actionHandlerBehavior",void 0);_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],cK.prototype,"ytRendererBehavior",void 0);
_.x([_.F(_.qH.YtRendererstamperBehavior),_.E("design:type",Object)],cK.prototype,"ytRendererstamperBehavior",void 0);_.x([_.F(_.wS),_.E("design:type",Object)],cK.prototype,"ytContinuationHandlerBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],cK.prototype,"data",void 0);_.x([_.g({value:!0}),_.E("design:type",Boolean)],cK.prototype,"monitorScroll",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],cK.prototype,"hasSearchHeader",void 0);
_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],cK.prototype,"hasSecondaryContent",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],cK.prototype,"hasBiggerThumbs",void 0);_.x([_.z4("data"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],cK.prototype,"dataChanged",null);
_.x([_.Vd("yt-reload-continuation-finish"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],cK.prototype,"onReloadContinuationFinish",null);cK=_.x([_.f({is:"ytd-search"})],cK);_.A4.registerService(_.vcq,cK);
_.g5();
}catch(e){_._DumpException(e)}
try{
_.e$("h8y2qb");
var Fbq=function(S){if(S=_.Vyw(S)){var p;(p=S.sources)!=null&&p[0]?(p=_.WvN(S),p=p<1?"VERTICAL":p>1?"HORIZONTAL":"SQUARE"):p=void 0;return p}},FL=function(S){_.HF.call(this,"upload");
this.opts.query=S},PmX=function(S,p){return _.H(Xpn,{data:S,
onYtNavigate:p})},ZOs=function(S,p){return _.I4(S.entities,"pageHeaderEntity",p)},e9E=function(S,p){return S.map(function(U){if(U.tabRenderer)return sLq(U.tabRenderer);
if(U.expandableTabRenderer&&p){var Y=U.expandableTabRenderer;return{customTabRenderable:function(){return p(Y)}}}return{}})},sLq=function(S){return{identifier:S.tabIdentifier,
aTagConfig:_.gx({innertubeCommand:S.endpoint,forceNewState:!0}),title:S.title,selected:S.selected,disabled:S.unselectable,icon:S.icon}},g4L=function(S){return _.S4({type:"SET_TAB_GESTURES_IS_ACTIVE",
payload:S})},uKd=function(S){if(!_.NF(document,"gtm-noscript")){var p=document.createElement("noscript");
p.id="gtm-noscript";p.textContent='<iframe src="https://www.googletagmanager.com/ns.html?id='+S+'" height="0" width="0" style="display:none;visibility:hidden"></iframe>';document.body.prepend(p)}};_.q_(FL,_.HF);FL.prototype.JSC$8079_setLabel=function(S){FL.superClass_.JSC$8079_setLabel.call(this,S);return this};
FL.prototype.addUploadMetadata=function(S,p){FL.superClass_.addUploadMetadata.call(this,S,p);return this};var wps=function(S){if(S!=="youtubebanner"&&S!=="youtube-channel-banner")throw Error("Tl");FL.call(this,S)};
_.r(wps,FL);wps.prototype.JSC$8079_setLabel=function(S){FL.prototype.JSC$8079_setLabel.call(this,S);return this};
wps.prototype.addUploadMetadata=function(S,p){FL.prototype.addUploadMetadata.call(this,S,p);return this};var lTL=[_.ji,{listeners:{"app-reset-layout":"_appResetLayoutHandler","iron-resize":"resetLayout"},attached:function(){this.fire("app-reset-layout")},
_appResetLayoutHandler:function(S){_.K9(S).path[0]!==this&&(this.resetLayout(),S.stopPropagation())},
_updateLayoutStates:function(){console.error("unimplemented")},
resetLayout:function(){var S=this._updateLayoutStates.bind(this);this._layoutDebouncer=_.c1(this._layoutDebouncer,_.bT,S);_.Sd(this._layoutDebouncer);this._notifyDescendantResize()},
_notifyLayoutChanged:function(){var S=this;requestAnimationFrame(function(){S.fire("app-reset-layout")})},
_notifyDescendantResize:function(){this.isAttached&&this._interestedResizables.forEach(function(S){this.resizerShouldNotify(S)&&this._notifyDescendant(S)},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 aT5=[_.$sP,{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(S,p){var U=_._scrollEffects$$module$third_party$javascript$youtube_components$tp_yt_app_layout$tp_yt_helpers$tp_yt_helpers[S];if(!U)throw new ReferenceError(this._getUndefinedMsg(S));S=this._boundEffect(U,p||{});S.setUp();return S},
_effectsChanged:function(S,p,U){this._tearDownEffects();S&&U&&(S.split(" ").forEach(function(Y){var L;Y!==""&&((L=_._scrollEffects$$module$third_party$javascript$youtube_components$tp_yt_app_layout$tp_yt_helpers$tp_yt_helpers[Y])?this._effects.push(this._boundEffect(L,p[Y])):console.warn(this._getUndefinedMsg(Y)))},this),this._setUpEffect())},
_layoutIfDirty:function(){return this.offsetWidth},
_boundEffect:function(S,p){p=p||{};var U=parseFloat(p.startsAt||0),Y=parseFloat(p.endsAt||1),L=Y-U,I=function(){};
Y=U===0&&Y===1?S.run:function(V,W){S.run.call(this,Math.max(0,(V-U)/L),W)};
return{setUp:S.setUp?S.setUp.bind(this,p):I,run:S.run?Y.bind(this):I,tearDown:S.tearDown?S.tearDown.bind(this):I}},
_setUpEffect:function(){this.isAttached&&this._effects&&(this._effectsRunFn=[],this._effects.forEach(function(S){S.setUp()!==!1&&this._effectsRunFn.push(S.run)},this))},
_tearDownEffects:function(){this._effects&&this._effects.forEach(function(S){S.tearDown()});
this._effectsRunFn=[];this._effects=[]},
_runEffects:function(S,p){this._effectsRunFn&&this._effectsRunFn.forEach(function(U){U(S,p)})},
_scrollHandler:function(){this._scrollStateChanged()},
_scrollStateChanged:function(){if(!this.disabled){var S=this._clampedScrollTop;this._updateScrollState(S);this.threshold>0&&this._setThresholdTriggered(S>=this.threshold)}},
_getDOMRef:function(S){console.warn("_getDOMRef","`"+S+"` is undefined")},
_getUndefinedMsg:function(S){return"Scroll effect `"+S+"` is undefined. Did you forget to import app-layout/app-scroll-effects/effects/"+S+".html ?"}}];if(_._scrollEffects$$module$third_party$javascript$youtube_components$tp_yt_app_layout$tp_yt_helpers$tp_yt_helpers["parallax-background"]!=null)throw Error("Ul`parallax-background");
_._scrollEffects$$module$third_party$javascript$youtube_components$tp_yt_app_layout$tp_yt_helpers$tp_yt_helpers["parallax-background"]={setUp:function(S){var p={};S=parseFloat(S.scalar);p.background=this._getDOMRef("background");p.backgroundFrontLayer=this._getDOMRef("backgroundFrontLayer");p.backgroundRearLayer=this._getDOMRef("backgroundRearLayer");p.deltaBg=p.backgroundFrontLayer.offsetHeight-p.background.offsetHeight;p.deltaBg===0?(isNaN(S)&&(S=.8),p.deltaBg=(this._dHeight||0)*S):(isNaN(S)&&(S=
1),p.deltaBg*=S);this._fxParallaxBackground=p},
run:function(S){var p=this._fxParallaxBackground;this.transform("translate3d(0px, "+p.deltaBg*Math.min(1,S)+"px, 0px)",p.backgroundFrontLayer);p.backgroundRearLayer&&this.transform("translate3d(0px, "+p.deltaBg*Math.min(1,S)+"px, 0px)",p.backgroundRearLayer)},
tearDown:function(){delete this._fxParallaxBackground}};var fTE;var CmY;var xEt=function(){};
_.M=xEt.prototype;_.M._scrollTargetChanged=function(){};
_.M.scroll=function(){};
_.M._isValidScrollTarget=function(){};
_.M._toggleScrollListener=function(){};
_.M.toggleScrollListener=function(){};
_.M.createEffect=function(){};
_.M._effectsChanged=function(){};
_.M._layoutIfDirty=function(){};
_.M._boundEffect=function(){};
_.M._setUpEffect=function(){};
_.M._tearDownEffects=function(){};
_.M._runEffects=function(){};
_.M._scrollHandler=function(){};
_.M._scrollStateChanged=function(){};
_.M._getUndefinedMsg=function(){};
_.M.notifyResize=function(){};
_.M.assignParentResizable=function(){};
_.M.stopResizeNotificationsFor=function(){};
_.M._subscribeIronResize=function(){};
_.M._unsubscribeIronResize=function(){};
_.M.resizerShouldNotify=function(){};
_.M._onDescendantIronResize=function(){};
_.M._fireResize=function(){};
_.M._onIronRequestResizeNotifications=function(){};
_.M._parentResizableChanged=function(){};
_.M._notifyDescendant=function(){};
_.M._requestResizeNotifications=function(){};
_.M._findParent=function(){};
_.M._appResetLayoutHandler=function(){};
_.M.resetLayout=function(){};
_.M._notifyLayoutChanged=function(){};
_.M._notifyDescendantResize=function(){};
_.M._setThresholdTriggered=function(){};
xEt=_.jp({_template:function(){if(CmY!==void 0)return CmY;var S=document.createElement("template");_.h(S,'\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');
S.content.insertBefore(_.t().content.cloneNode(!0),S.content.firstChild);var p=S.content,U=p.insertBefore;fTE===void 0&&(fTE=document.createElement("template"));var Y=fTE;U.call(p,Y.content.cloneNode(!0),S.content.firstChild);return CmY=S},
is:"tp-yt-app-header",behaviors:[aT5,lTL],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 S=_.K9(this.$.slot).getDistributedNodes(),p=0,U;U=S[p];p++)if(U.nodeType===Node.ELEMENT_NODE)if(U.hasAttribute("sticky")){this._stickyElRef=U;break}else this._stickyElRef||(this._stickyElRef=U);return this._stickyElRef},_configChanged:function(){this.resetLayout();this._notifyLayoutChanged()},
_updateLayoutStates:function(){if(this.offsetWidth!==0||this.offsetHeight!==0){var S=this._clampedScrollTop,p=this._height===0||S===0,U=this.disabled;this._height=this.offsetHeight;this._stickyElRef=null;this.disabled=!0;p||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();p?this._updateScrollState(S,!0):(this._updateScrollState(this._lastScrollTop,
!0),this._layoutIfDirty());this.disabled=U}},
_updateScrollState:function(S,p){if(this._height!==0){var U=0,Y=this._top;var L=this._maxHeaderTop;var I=S-this._lastScrollTop,V=Math.abs(I),W=S>this._lastScrollTop,O=performance.now();this._mayMove()&&(U=this._clamp(this.reveals?Y+I:S,0,L));S>=this._dHeight&&(U=this.condenses&&!this.fixed?Math.max(this._dHeight,U):U,this.style.transitionDuration="0ms");if(this.reveals&&!this.disabled&&V<100){if(O-this._initTimestamp>300||this._wasScrollingDown!==W)this._initScrollTop=S,this._initTimestamp=O;S>=L&&
(Math.abs(this._initScrollTop-S)>30||V>10?(W&&S>=L?U=L:!W&&S>=this._dHeight&&(U=this.condenses&&!this.fixed?this._dHeight:0),this.style.transitionDuration=this._clamp((U-Y)/(I/(O-this._lastTimestamp)),0,300)+"ms"):U=this._top)}L=this._dHeight===0?S>0?1:0:U/this._dHeight;p||(this._lastScrollTop=S,this._top=U,this._wasScrollingDown=W,this._lastTimestamp=O);if(p||L!==this._progress||Y!==U||S===0)this._progress=L,this._runEffects(L,U),this._transformHeader(U)}},
_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(S){this.translate3d(0,-S+"px",0);this._stickyEl&&this.translate3d(0,this.condenses&&S>=this._stickyElTop?Math.min(S,this._dHeight)-this._stickyElTop+"px":0,0,this._stickyEl)},
_clamp:function(S,p,U){return Math.min(U,Math.max(p,S))},
_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),_.K9(this.root).insertBefore(this._bgContainer,this.$.contentContainer))},
_getDOMRef:function(S){switch(S){case "backgroundFrontLayer":return this._ensureBgContainers(),this._bgFront;case "backgroundRearLayer":return this._ensureBgContainers(),this._bgRear;case "background":return this._ensureBgContainers(),this._bgContainer;case "mainTitle":return _.K9(this).querySelector("[main-title]");case "condensedTitle":return _.K9(this).querySelector("[condensed-title]")}return null},
getScrollState:function(){return{progress:this._progress,top:this._top}}});var E4q;var mEt;_.jp({_template:function(){if(mEt!==void 0)return mEt;var S=document.createElement("template");_.h(S,'\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');
S.content.insertBefore(_.t().content.cloneNode(!0),S.content.firstChild);var p=S.content,U=p.insertBefore;E4q===void 0&&(E4q=document.createElement("template"));var Y=E4q;U.call(p,Y.content.cloneNode(!0),S.content.firstChild);return mEt=S},
is:"tp-yt-app-header-layout",behaviors:[lTL],properties:{hasScrollingRegion:{type:Boolean,value:!1,reflectToAttribute:!0}},observers:["resetLayout(isAttached, hasScrollingRegion)"],get header(){return _.K9(this.$.headerSlot).getDistributedNodes()[0]},_updateLayoutStates:function(){var S=this.header;if(this.isAttached&&S){this.$.wrapper.classList.remove("initializing");S.scrollTarget=this.hasScrollingRegion?this.$.contentContainer:this.ownerDocument.documentElement;if(this.hasScrollingRegion)S.style.left=
"",S.style.right="";else{var p=this.getBoundingClientRect(),U=document.documentElement.clientWidth-p.right;S.style.left=p.left+"px";S.style.right=U+"px"}p=this.$.contentContainer.style;U=S.offsetHeight;S.fixed&&!S.condenses&&this.hasScrollingRegion?(p.marginTop=U+"px",p.paddingTop=""):(p.paddingTop=U+"px",p.marginTop="")}}});var o4o=new _.v("replaceFeedContentAction");var v4J=new _.v("alertCommand");var $EE=new _.v("manageLabsStateCommand");var iOs=new _.v("inlineFormRenderer");var XL=new _.v("playlistSidebarPrimaryInfoRenderer");var NCE=new _.v("productDetailsThumbnailRenderer"),BCs=new _.v("productDetailsVariantRenderer"),qaX=new _.v("productDetailsVariantOptionRenderer"),Azo=new _.v("productDetailsOffersContainerRenderer"),tgn=new _.v("productDetailsOfferRenderer");var czJ=new _.v("shoppingFlaggingRenderer");var STi=new _.v("playlistBylineRenderer");var pNE=new _.v("insertChannelTabCommand");var Po=function(){return _.HT.apply(this,arguments)||this};
_.r(Po,_.HT);_.M=Po.prototype;_.M.activeChanged=function(){if(this.active){var S=_.tB(this.hostElement).querySelector("#header");S&&_.cv(S,"iron-resize");window.addEventListener("scroll",_.d9(this,this.onScroll))}else window.removeEventListener("scroll",_.d9(this,this.onScroll)),_.cv(this.hostElement,"yt-request-panel-mode-change",{mode:"seamed"})};
_.M.guideVisibleChanged=function(){var S=_.tB(this.hostElement).querySelector("#header");S&&_.cv(S,"iron-resize")};
_.M.onScroll=function(){var S=this;_.w9(this,"onScroll",function(){var p=_.tB(S.hostElement).querySelector("#header");p&&p.polymerController&&(p=p.polymerController.getScrollState().progress===1?"standard":"seamed",_.cv(S.hostElement,"yt-request-panel-mode-change",{mode:p}))},10)};
_.M.tabsChanged=function(){if(this.tabs){for(var S=null,p=0,U=this.tabs.length;p<U;++p){var Y=this.tabs[p].tabRenderer;if(Y&&Y.selected){S=p;break}}this.selected=S}};
_.M.onTabsActivate=function(S){_.cv(this.hostElement,"yt-navigate",{endpoint:this.tabs[S.detail.selected].tabRenderer.endpoint})};
Po.prototype.tabsChanged=Po.prototype.tabsChanged;Po.prototype.guideVisibleChanged=Po.prototype.guideVisibleChanged;Po.prototype.activeChanged=Po.prototype.activeChanged;_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],Po.prototype,"ytRendererBehavior",void 0);_.x([_.F(_.uc.YtdGuideStateAwareBehavior),_.E("design:type",Object)],Po.prototype,"ytdGuideStateAwareBehavior",void 0);_.x([_.g(),_.E("design:type",Array)],Po.prototype,"tabs",void 0);
_.x([_.g(),_.E("design:type",Object)],Po.prototype,"selected",void 0);_.x([_.g(),_.E("design:type",Boolean)],Po.prototype,"active",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Boolean)],Po.prototype,"disableHeaderFluidWidth",void 0);_.x([_.T4("active"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],Po.prototype,"activeChanged",null);
_.x([_.T4("guidePersistentAndVisible"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],Po.prototype,"guideVisibleChanged",null);_.x([_.T4("tabs"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],Po.prototype,"tabsChanged",null);Po=_.x([_.Dl()],Po);var USn=[_.c.YtRendererBehavior,_.uc.YtdGuideStateAwareBehavior,Po.prototype];var YTX=2/3,LHi=_.bZ(130749),MfY=function(S,p){var U=this;this.element=S;this.layer=0;this.refreshConfig={startPosition:0,startAction:function(){U.startAction()},
draggingClass:"gesture-dragging",triggers:{down:{endPosition:80,threshold:120,disableFinish:!0,translateBack:!0,moveRatio:YTX,moveAction:function(Y){U.moveAction(Y)},
triggerAction:function(){U.element.isReloading=!0;_.gY(_.HX(),{visualElement:LHi});_.VO.instance.resolveCommand({signalAction:{signal:"SOFT_RELOAD_PAGE"}},{form:{element:U.element}})}}}};
_.U8(_.HX(),LHi,this.layer);this.gesture=new _.Wo(S,p,this.refreshConfig,"pan-down");this.attach()};
_.M=MfY.prototype;_.M.attach=function(){this.gesture.attach()};
_.M.detach=function(){this.gesture.detach()};
_.M.reset=function(){this.element.close()};
_.M.startAction=function(){this.element.reset();this.element.isReloading=!1};
_.M.moveAction=function(S){this.element.rotation=S*360};var Izq=_.bZ(130750),ZU=function(S,p,U,Y,L){var I=this;this.element=S;this.parent=U;this.channelHeader=Y;this.ytdReduxDispatch=L;this.layer=0;this.scrollPositionNeedsUpdate=!1;this.scrollPositionForTabs=new Map;this.tabConfig={startPosition:0,draggingClass:"gesture-tab-dragging",startAction:function(){I.tabsStartAtInPx=I.channelHeader.clientHeight-48;var V;(V=I.selectedTab)!=null&&V.title&&(V=_.tW().resolve(_.AW(_.oy)))&&(V=V.getCurrentPage(),I.lastVisitedTabScrollPosition=V.getScrollTop(),I.previousTab&&
((I.lastVisitedTabScrollPosition===void 0?0:I.lastVisitedTabScrollPosition<I.channelHeader.clientHeight-48)?I.scrollPositionForTabs.has(I.selectedTab.title)&&I.scrollPositionForTabs.delete(I.selectedTab.title):I.scrollPositionForTabs.set(I.selectedTab.title,V.getScrollTop())))},
triggers:{right:{endPosition:500,threshold:100,transitionEndPosition:dSE(),triggerAction:function(){I.navigate(I.previousTab)},
moveAction:function(V,W){I.moveAction(V,W)}},
left:{endPosition:-500,threshold:-100,transitionEndPosition:-dSE(),triggerAction:function(){I.navigate(I.nextTab)},
moveAction:function(V,W){I.moveAction(V,W)}}}};
_.U8(_.HX(),Izq,this.layer);this.gesture=new _.Wo(S,p,this.tabConfig);this.attach()};
ZU.prototype.attach=function(){this.gesture.attach()};
ZU.prototype.detach=function(){this.gesture.detach()};
ZU.prototype.tabsChanged=function(S){if(S){var p=void 0;this.nextTab=this.previousTab=this.selectedTab=void 0;S=_.d(S);for(var U=S.next();!U.done;U=S.next()){U=U.value.tabRenderer;this.selectedTab&&!this.nextTab&&(this.nextTab=U);var Y=void 0;if((Y=U)==null?0:Y.selected)this.previousTab=p,this.selectedTab=U;p=U}p=this.gesture;S=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}});
p.config=S;this.scrollPositionNeedsUpdate=!0}};
ZU.prototype.moveAction=function(S,p){if(!this.tabsElement){var U;this.tabsElement=(U=this.parent.header)==null?void 0:U.tabsElement;p==="right"&&this.previousTab?_.VHt(_.Oz.instance,this.previousTab.endpoint,{},""):p==="left"&&this.nextTab&&_.VHt(_.Oz.instance,this.nextTab.endpoint,{},"");if(!this.tabsElement)return}U=this.tabsElement._pos;p==="right"&&(S*=-1);this.tabsElement._positionBar(U.width,U.left*1+U.width*S)};
var dSE=function(){var S,p;return(p=(S=_.tW().resolve(_.oy).getCurrentPage())==null?void 0:S.clientWidth)!=null?p:0};
ZU.prototype.navigate=function(S){this.element.data=void 0;if(S=S==null?void 0:S.endpoint)this.ytdReduxDispatch(g4L(!0)),_.gY(_.HX(),{visualElement:Izq}),_.VO.instance.resolveCommand({navigateAction:{endpoint:S}},{form:{element:this.element}})};var Vfd;var TfT;var s5=function(){return _.w.apply(this,arguments)||this};
_.r(s5,_.w);s5.prototype.configureRendererStamper=function(){return{"data.deleteButton":{id:"delete-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!0}}}}}};
_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],s5.prototype,"ytRendererBehavior",void 0);_.x([_.F(_.qH.YtRendererstamperBehavior),_.E("design:type",Object)],s5.prototype,"ytRendererstamperBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],s5.prototype,"data",void 0);s5=_.x([_.f({is:"ytd-labs-edit-renderer",disableElementRegistration:!0})],s5);
_.C(s5,"ytd-labs-edit-renderer",function(){if(TfT!==void 0)return TfT;var S=document.createElement("template");_.h(S,'\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');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);return TfT=S},{mode:1});var WHo;var eI=function(){var S=_.w.apply(this,arguments)||this;S.dark=!1;S.headerBackgroundLight="https://www.gstatic.com/youtube/img/labs/early_access_web_background_expanded_ai_2x.jpg";S.headerBackgroundDark="https://www.gstatic.com/youtube/img/labs/early_access_web_background_expanded_ai_2x.jpg";S.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return S};
_.r(eI,_.w);eI.prototype.configureRendererStamper=function(){return{"data.primaryButton":{id:"primary-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
eI.prototype.ready=function(){var S=document.documentElement.hasAttribute("dark");this.setBackgroundImage(S);this.dark=S};
eI.prototype.onDarkModeToggledAction=function(S){this.setBackgroundImage(S);this.dark=S};
eI.prototype.setBackgroundImage=function(S){_.Ms(this.hostElement,{"--yt-labs-header-background":"url("+(S?this.headerBackgroundDark:this.headerBackgroundLight)+")"})};
_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],eI.prototype,"ytRendererBehavior",void 0);_.x([_.F(_.qH.YtRendererstamperBehavior),_.E("design:type",Object)],eI.prototype,"ytRendererstamperBehavior",void 0);_.x([_.F(_.Aj.YtActionHandlerBehavior),_.E("design:type",Object)],eI.prototype,"ytActionHandlerBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],eI.prototype,"data",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],eI.prototype,"dark",void 0);
eI=_.x([_.f({is:"ytd-labs-header-renderer",disableElementRegistration:!0})],eI);
_.C(eI,"ytd-labs-header-renderer",function(){if(WHo!==void 0)return WHo;var S=document.createElement("template");_.h(S,'\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');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);return WHo=S},{mode:1});var OlA;var gA=function(){var S=_.w.apply(this,arguments)||this;S.actionMap={"yt-check-labs-opted-in-state":"onCheckLabsOptedInState","yt-manage-labs-state-command":"onManageLabsState"};return S};
_.r(gA,_.w);gA.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"}}}}}};
gA.prototype.onYtToggleButton=function(S){this.notifyPath("data.primaryButton.toggleButtonRenderer.isToggled",S.detail.toggled)};
gA.prototype.onManageLabsState=function(S){if(S=_.b(S,$EE))S.stateChange==="LABS_STATE_TYPE_OVERRIDE_OPT_IN"&&this.data?S.labsItemId!==this.data.labsItemId?this.set("data.primaryButton.toggleButtonRenderer.isToggled",!1):this.set("data.primaryButton.toggleButtonRenderer.isToggled",!0):this.data&&S.labsItemId===this.data.labsItemId&&(S.stateChange==="LABS_STATE_TYPE_OPT_IN"?_.St(this.hostElement,"yt-check-labs-opted-in-state").some(function(p){return p})&&this.data.confirmationDialogCommand?_.Lp(this.hostElement,
[this.data.confirmationDialogCommand],this.hostElement):this.data.optInCommand&&(_.tW().resolve(_.cQ).resolveCommand(this.data.optInCommand,{form:{element:this.hostElement}}),this.set("data.primaryButton.toggleButtonRenderer.isToggled",!0)):this.data.optOutCommand&&S.stateChange==="LABS_STATE_TYPE_OPT_OUT"&&(_.tW().resolve(_.cQ).resolveCommand(this.data.optOutCommand,{form:{element:this.hostElement}}),this.set("data.primaryButton.toggleButtonRenderer.isToggled",!1)))};
gA.prototype.onCheckLabsOptedInState=function(){var S=this.get("data.primaryButton.toggleButtonRenderer");return S?S.isToggled:!1};
_.$u.Object.defineProperties(gA.prototype,{itemStyle:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.itemStyle}}});
gA.prototype.onYtToggleButton=gA.prototype.onYtToggleButton;_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],gA.prototype,"ytRendererBehavior",void 0);_.x([_.F(_.qH.YtRendererstamperBehavior),_.E("design:type",Object)],gA.prototype,"ytRendererstamperBehavior",void 0);_.x([_.F(_.Aj.YtActionHandlerBehavior),_.E("design:type",Object)],gA.prototype,"ytActionHandlerBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],gA.prototype,"data",void 0);
_.x([_.g({reflectToAttribute:!0}),_.e("data"),_.E("design:type",Object),_.E("design:paramtypes",[])],gA.prototype,"itemStyle",null);_.x([_.Vd("yt-toggle-button"),_.E("design:type",Function),_.E("design:paramtypes",[CustomEvent]),_.E("design:returntype")],gA.prototype,"onYtToggleButton",null);gA=_.x([_.f({is:"ytd-labs-item-renderer",disableElementRegistration:!0})],gA);
_.C(gA,"ytd-labs-item-renderer",function(){if(OlA!==void 0)return OlA;var S=document.createElement("template");_.h(S,'\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');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);return OlA=S},{mode:1});var kkt;var HlT;var u$=function(){return _.w.apply(this,arguments)||this};
_.r(u$,_.w);_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],u$.prototype,"ytRendererBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],u$.prototype,"data",void 0);u$=_.x([_.f({is:"ytd-live-chat-history-new-sponsor-chip-renderer",disableElementRegistration:!0})],u$);
_.C(u$,"ytd-live-chat-history-new-sponsor-chip-renderer",function(){if(HlT!==void 0)return HlT;var S=document.createElement("template");_.h(S,'\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');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);return HlT=S},{mode:1});var DSY;var wA=function(){return _.w.apply(this,arguments)||this};
_.r(wA,_.w);wA.prototype.observeSuperchatChip=function(){if(this.data){var S={"--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)};_.Ms(this.hostElement,S)}};
wA.prototype.colorFromDecimal=function(S){return _.ev(Number(S||0))};
wA.prototype.observeSuperchatChip=wA.prototype.observeSuperchatChip;_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],wA.prototype,"ytRendererBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],wA.prototype,"data",void 0);_.x([_.T4("data"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],wA.prototype,"observeSuperchatChip",null);wA=_.x([_.f({is:"ytd-live-chat-history-super-chat-chip-renderer",disableElementRegistration:!0})],wA);
_.C(wA,"ytd-live-chat-history-super-chat-chip-renderer",function(){if(DSY!==void 0)return DSY;var S=document.createElement("template");_.h(S,'\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');
S.content.insertBefore(_.t().content.cloneNode(!0),S.content.firstChild);return DSY=S},{mode:1});var l$=function(){return _.w.apply(this,arguments)||this};
_.r(l$,_.w);l$.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"}}}};
_.$u.Object.defineProperties(l$.prototype,{hideMessageBlock:{configurable:!0,enumerable:!0,get:function(){return!!this.data&&!this.data.charityName&&!!this.data.chip}}});
_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],l$.prototype,"ytRendererBehavior",void 0);_.x([_.F(_.qH.YtRendererstamperBehavior),_.E("design:type",Object)],l$.prototype,"ytRendererstamperBehavior",void 0);_.x([_.F(_.Zh),_.E("design:type",Object)],l$.prototype,"ytdDismissibleItemBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],l$.prototype,"data",void 0);_.x([_.e("data"),_.E("design:type",Boolean),_.E("design:paramtypes",[])],l$.prototype,"hideMessageBlock",null);
l$=_.x([_.f({is:"ytd-live-chat-history-entry-renderer",disableElementRegistration:!0})],l$);
_.C(l$,"ytd-live-chat-history-entry-renderer",function(){if(kkt!==void 0)return kkt;var S=document.createElement("template");_.h(S,'\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');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);return kkt=S},{mode:1});var znE;var a1=function(){return _.w.apply(this,arguments)||this};
_.r(a1,_.w);_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],a1.prototype,"ytRendererBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],a1.prototype,"data",void 0);a1=_.x([_.f({is:"ytd-channel-options-renderer",disableElementRegistration:!0})],a1);
_.C(a1,"ytd-channel-options-renderer",function(){if(znE!==void 0)return znE;var S=document.createElement("template");_.h(S,'\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');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);return znE=S},{mode:1});var Qcq;var fx=function(){return _.w.apply(this,arguments)||this};
_.r(fx,_.w);fx.prototype.configureRendererStamper=function(){return{"data.resumeButton":{id:"resume-button",mapping:{buttonRenderer:"ytd-button-renderer",toggleButtonRenderer:"ytd-toggle-button-renderer"}}}};
_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],fx.prototype,"ytRendererBehavior",void 0);_.x([_.F(_.qH.YtRendererstamperBehavior),_.E("design:type",Object)],fx.prototype,"ytRendererstamperBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],fx.prototype,"data",void 0);fx=_.x([_.f({is:"ytd-settings-email-item-renderer",disableElementRegistration:!0})],fx);
_.C(fx,"ytd-settings-email-item-renderer",function(){if(Qcq!==void 0)return Qcq;var S=document.createElement("template");_.h(S,'\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');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);return Qcq=S},{mode:1});var noi;var Cx=function(){return _.w.apply(this,arguments)||this};
_.r(Cx,_.w);Cx.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"}}}};
Cx.prototype.getExpansionIcon=function(S){return S?"arrow_drop_up":"arrow_drop_down"};
Cx.prototype.onToggleListExpansion=function(){this.expanded=!this.expanded};
_.$u.Object.defineProperties(Cx.prototype,{emailListExpanded:{configurable:!0,enumerable:!0,get:function(){return this.expanded?"true":"false"}}});
_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],Cx.prototype,"ytRendererBehavior",void 0);_.x([_.F(_.qH.YtRendererstamperBehavior),_.E("design:type",Object)],Cx.prototype,"ytRendererstamperBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],Cx.prototype,"data",void 0);_.x([_.g({value:!1,reflectToAttribute:!0}),_.E("design:type",Boolean)],Cx.prototype,"expanded",void 0);_.x([_.e("expanded"),_.E("design:type",String),_.E("design:paramtypes",[])],Cx.prototype,"emailListExpanded",null);
_.x([_.O2("#options"),_.E("design:type",Object)],Cx.prototype,"options",void 0);Cx=_.x([_.f({is:"ytd-settings-email-list-renderer",disableElementRegistration:!0})],Cx);
_.C(Cx,"ytd-settings-email-list-renderer",function(){if(noi!==void 0)return noi;var S=document.createElement("template");_.h(S,'\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');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);return noi=S},{mode:1});var JCn;var xb=function(){var S=_.w.apply(this,arguments)||this;S.actionMap={"yt-signal-action-submit-form":"handleSignalActionSubmitForm"};return S};
_.r(xb,_.w);xb.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"}}}};
xb.prototype.handleSignalActionSubmitForm=function(){var S,p=(S=this.formRenderer)==null?void 0:S.getForm();p&&this.data.serviceEndpoint&&_.tW().resolve(_.cQ).resolveCommand(this.data.serviceEndpoint,{form:Object.assign({},p,{element:this.hostElement})})};
_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],xb.prototype,"ytRendererBehavior",void 0);_.x([_.F(_.qH.YtRendererstamperBehavior),_.E("design:type",Object)],xb.prototype,"ytRendererstamperBehavior",void 0);_.x([_.F(_.Aj.YtActionHandlerBehavior),_.E("design:type",Object)],xb.prototype,"ytActionHandlerBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],xb.prototype,"data",void 0);_.x([_.O2("yt-form-renderer"),_.E("design:type",Object)],xb.prototype,"formRenderer",void 0);
xb=_.x([_.f({is:"ytd-settings-gaia-link-renderer",disableElementRegistration:!0})],xb);
_.C(xb,"ytd-settings-gaia-link-renderer",function(){if(JCn!==void 0)return JCn;var S=document.createElement("template");_.h(S,'\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');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);return JCn=S},{mode:1});var yCn;var E5=function(){var S=_.w.apply(this,arguments)||this;S.actionMap={"yt-settings-update-options-command":"handleUpdateOptionsCommand"};return S};
_.r(E5,_.w);E5.prototype.dataChanged=function(){this.data&&this.data.id&&this.data.id==="SETTINGS_OPTIONS_ID_TYPE_AV1_OPTIONS"&&_.GlE()&&this.set("data.hidden",!1)};
E5.prototype.onSwitchReady=function(){var S=this;this.data&&this.data.id&&this.data.id==="SETTINGS_OPTIONS_ID_TYPE_PUSH_NOTIFICATIONS_ENABLED"&&_.y("service_worker_push_enabled")&&navigator.serviceWorker.ready.then(function(){_.rAq().then(function(p){p&&(Notification.permission==="default"?S.set("data.hidden",!1):Notification.permission==="granted"&&_.Az("NotificationsDisabled").then(function(U){U||_.St(S.hostElement,"yt-toggle-settings-switch",[S.data.id,!U]);S.set("data.hidden",!1)}).catch(function(){}))})})};
E5.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}}}}};
E5.prototype.handleUpdateOptionsCommand=function(S){(S=_.b(S,_.rkH))&&this.data&&this.data.id===S.id&&(this.set("data.hidden",S.hidden),S.text!==void 0&&this.set("data.text",S.text),S.clearOptions&&this.set("data.options",[]))};
E5.prototype.onSwitchReady=E5.prototype.onSwitchReady;E5.prototype.dataChanged=E5.prototype.dataChanged;_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],E5.prototype,"ytRendererBehavior",void 0);_.x([_.F(_.qH.YtRendererstamperBehavior),_.E("design:type",Object)],E5.prototype,"ytRendererstamperBehavior",void 0);_.x([_.F(_.Aj.YtActionHandlerBehavior),_.E("design:type",Object)],E5.prototype,"ytActionHandlerBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],E5.prototype,"data",void 0);
_.x([_.z4("data"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],E5.prototype,"dataChanged",null);_.x([_.Vd("yt-settings-switch-ready"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],E5.prototype,"onSwitchReady",null);E5=_.x([_.f({is:"ytd-settings-options-renderer",disableElementRegistration:!0})],E5);
_.C(E5,"ytd-settings-options-renderer",function(){if(yCn!==void 0)return yCn;var S=document.createElement("template");_.h(S,'\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');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);return yCn=S},{mode:1});var KHo;var mX=function(){return _.w.apply(this,arguments)||this};
_.r(mX,_.w);mX.prototype.onYtExpanderMoreTapped=function(){this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
mX.prototype.configureRendererStamper=function(){return{"data.attributionLinkButtonRenderer":{id:"attribution-link-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{disableTextTransform:!0}}}}}};
mX.prototype.onYtExpanderMoreTapped=mX.prototype.onYtExpanderMoreTapped;_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],mX.prototype,"ytRendererBehavior",void 0);_.x([_.F(_.eL.YtComponentBehavior),_.E("design:type",Object)],mX.prototype,"ytComponentBehavior",void 0);_.x([_.F(_.qH.YtRendererstamperBehavior),_.E("design:type",Object)],mX.prototype,"ytRendererstamperBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],mX.prototype,"data",void 0);
_.x([_.Vd("yt-expander-more-tapped"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],mX.prototype,"onYtExpanderMoreTapped",null);mX=_.x([_.f({disableElementRegistration:!0,is:"ytd-product-details-description-renderer"})],mX);
_.C(mX,"ytd-product-details-description-renderer",function(){if(KHo!==void 0)return KHo;var S=document.createElement("template");_.h(S,'\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');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);return KHo=S},{mode:1});var blP;var o1=function(){var S=_.w.apply(this,arguments)||this;S.shippingIcon="https://www.gstatic.com/images/icons/material/system/1x/local_shipping_grey600_48dp.png";S.shippingAddressIcon="https://www.gstatic.com/images/icons/material/system/1x/location_on_grey600_48dp.png";S.googleGuaranteeIcon="https://www.gstatic.com/images/icons/material/system/1x/google_guarantee_grey600_48dp.png";S.returnPolicyIcon="https://www.gstatic.com/images/icons/material/system/1x/undo_grey600_48dp.png";return S};
_.r(o1,_.w);o1.prototype.configureRendererStamper=function(){return{"data.purchaseButtonRenderer":{id:"purchase-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.purchaseButtonRenderers":{id:"purchase-buttons",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.$u.Object.defineProperties(o1.prototype,{showAdditionalFees:{configurable:!0,enumerable:!0,get:function(){var S,p;return((S=this.data)==null?void 0:(p=S.offerData)==null?void 0:p.additionalFeesText)!==""}},
showMultiPurchaseButtons:{configurable:!0,enumerable:!0,get:function(){var S,p;return((S=this.data)==null?void 0:S.purchaseButtonRenderers)!==void 0&&((p=this.data)==null?void 0:p.purchaseButtonRenderers.length)!==0}},
showPurchaseData:{configurable:!0,enumerable:!0,get:function(){var S,p;return!((S=this.data)==null||!S.formattedFromMerchantText)&&(!((p=this.data)==null||!p.purchaseButtonRenderer)||this.showMultiPurchaseButtons)}}});
_.x([_.F(_.qH.YtRendererstamperBehavior),_.E("design:type",Object)],o1.prototype,"ytRendererstamperBehavior",void 0);_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],o1.prototype,"ytRendererBehavior",void 0);_.x([_.F(_.eL.YtComponentBehavior),_.E("design:type",Object)],o1.prototype,"ytComponentBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],o1.prototype,"data",void 0);
_.x([_.g({type:_.y("kevlar_property_type_migration_killswitch")?String:void 0}),_.E("design:type",Object)],o1.prototype,"shippingIcon",void 0);_.x([_.g({type:_.y("kevlar_property_type_migration_killswitch")?String:void 0}),_.E("design:type",Object)],o1.prototype,"shippingAddressIcon",void 0);_.x([_.g({type:_.y("kevlar_property_type_migration_killswitch")?String:void 0}),_.E("design:type",Object)],o1.prototype,"googleGuaranteeIcon",void 0);
_.x([_.g({type:_.y("kevlar_property_type_migration_killswitch")?String:void 0}),_.E("design:type",Object)],o1.prototype,"returnPolicyIcon",void 0);_.x([_.e("data"),_.E("design:type",Boolean),_.E("design:paramtypes",[])],o1.prototype,"showAdditionalFees",null);_.x([_.e("data"),_.E("design:type",Boolean),_.E("design:paramtypes",[])],o1.prototype,"showMultiPurchaseButtons",null);
_.x([_.e("data","showMultiPurchaseButtons"),_.E("design:type",Boolean),_.E("design:paramtypes",[])],o1.prototype,"showPurchaseData",null);o1=_.x([_.f({disableElementRegistration:!0,is:"ytd-product-details-hero-offer-renderer"})],o1);
_.C(o1,"ytd-product-details-hero-offer-renderer",function(){if(blP!==void 0)return blP;var S=document.createElement("template");_.h(S,'\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');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);return blP=S},{mode:1});var jcd;var rCo;var vo=function(){return _.w.apply(this,arguments)||this};
_.r(vo,_.w);_.M=vo.prototype;_.M.attached=function(){this.hostElement.addEventListener("click",this.handleSelection);this.hostElement.addEventListener("mouseenter",this.onMouseEnterImage);this.hostElement.addEventListener("mouseleave",this.onMouseLeaveImage)};
_.M.onKeyDown=function(S){S=S.keyCode;S!==13&&S!==32||this.handleSelection()};
_.M.onMouseEnterImage=function(){var S;((S=this.data)==null?void 0:S.thumbnailDetails)!==void 0&&_.pp(this.polymerController.hostElement,"ytd-product-details-variant-image-select",[this.data.thumbnailDetails])};
_.M.onMouseLeaveImage=function(){_.pp(this.polymerController.hostElement,"ytd-product-details-variant-image-unselect")};
_.M.handleSelection=function(){this.data&&_.cv(this.hostElement,"ytd-product-details-thumbnail-renderer-selected",this.data.index)};
_.$u.Object.defineProperties(vo.prototype,{isSelected:{configurable:!0,enumerable:!0,get:function(){var S;return!((S=this.data)==null||!S.isSelected)}}});
_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],vo.prototype,"ytRendererBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],vo.prototype,"data",void 0);_.x([_.e("data"),_.E("design:type",Object),_.E("design:paramtypes",[])],vo.prototype,"isSelected",null);vo=_.x([_.f({disableElementRegistration:!0,is:"ytd-product-details-thumbnail-renderer"})],vo);
_.C(vo,"ytd-product-details-thumbnail-renderer",function(){if(rCo!==void 0)return rCo;var S=document.createElement("template");_.h(S,'\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');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);return rCo=S},{mode:1});var $b=function(){var S=_.w.apply(this,arguments)||this;var p={};S.actionMap=(p["ytd-product-details-variant-image-select"]="handlePreviewImageSelect",p["ytd-product-details-variant-image-unselect"]="handlePreviewImageDeselect",p);S.selectedThumbnailIndex=0;S.selectItem=function(U){U.target.onKeyDown(U)};
return S};
_.r($b,_.w);_.M=$b.prototype;_.M.handlePreviewImageSelect=function(S){this.hoverThumbnail=S};
_.M.handlePreviewImageDeselect=function(){this.hoverThumbnail=void 0};
_.M.configureRendererStamper=function(){return{"populatedData.imageRenderer":{id:"items",mapping:{productDetailsThumbnailRenderer:{component:"ytd-product-details-thumbnail-renderer",attributes:{role:"option"}}}}}};
_.M.onThumbnailSelected=function(S,p){this.selectedThumbnailIndex=p};
_.M.dataChanged=function(){this.ytdHorizontalListBehavior.reset();this.selectedThumbnailIndex=0};
_.M.updateOffset=function(){var S=_.tB(this.hostElement).querySelector("#scroll-container").clientWidth;this.ytdHorizontalListBehavior.offset=Math.max(0,Math.min(this.ytdHorizontalListBehavior.offset,this.items.clientWidth-S));this.ytdHorizontalListBehavior.reposition_()};
_.$u.Object.defineProperties($b.prototype,{showThumbnails:{configurable:!0,enumerable:!0,get:function(){var S;if((S=this.data)==null?0:S.imageRenderer){var p,U;return((p=this.data)==null?void 0:(U=p.imageRenderer)==null?void 0:U.length)>1}return!1}},
thumbnailDetails:{configurable:!0,enumerable:!0,get:function(){if(this.hoverThumbnail!==void 0)return this.hoverThumbnail;var S;if((S=this.data)==null?0:S.imageRenderer){var p;return(p=_.b(this.data.imageRenderer[this.selectedThumbnailIndex],NCE))==null?void 0:p.thumbnailDetails}}},
populatedData:{configurable:!0,enumerable:!0,get:function(){var S=this,p,U,Y,L=(Y=(p=this.data)==null?void 0:(U=p.imageRenderer)==null?void 0:U.map(function(I,V){return{productDetailsThumbnailRenderer:Object.assign({},_.b(I,NCE),{index:V,isSelected:V===S.selectedThumbnailIndex})}}))!=null?Y:[];
return Object.assign({},this.data,{imageRenderer:L})}}});
$b.prototype.updateOffset=$b.prototype.updateOffset;$b.prototype.dataChanged=$b.prototype.dataChanged;$b.prototype.onThumbnailSelected=$b.prototype.onThumbnailSelected;_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],$b.prototype,"ytRendererBehavior",void 0);_.x([_.F(_.qH.YtRendererstamperBehavior),_.E("design:type",Object)],$b.prototype,"ytRendererstamperBehavior",void 0);_.x([_.F(_.A6.YtdHorizontalListBehavior),_.E("design:type",Object)],$b.prototype,"ytdHorizontalListBehavior",void 0);
_.x([_.F(_.eL.YtComponentBehavior),_.E("design:type",Object)],$b.prototype,"componentBehavior",void 0);_.x([_.F([_.Aj.YtActionHandlerBehavior]),_.E("design:type",Object)],$b.prototype,"actionHandlerBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],$b.prototype,"data",void 0);_.x([_.g({value:"$.items.children"}),_.E("design:type",String)],$b.prototype,"itemsPath",void 0);_.x([_.g({value:3}),_.E("design:type",Number)],$b.prototype,"initialCount",void 0);
_.x([_.O2("#items"),_.E("design:type",Object)],$b.prototype,"items",void 0);_.x([_.g(),_.E("design:type",Object)],$b.prototype,"selectedThumbnailIndex",void 0);_.x([_.g(),_.E("design:type",Object)],$b.prototype,"hoverThumbnail",void 0);_.x([_.e("data"),_.E("design:type",Boolean),_.E("design:paramtypes",[])],$b.prototype,"showThumbnails",null);
_.x([_.Vd("ytd-product-details-thumbnail-renderer-selected"),_.E("design:type",Function),_.E("design:paramtypes",[CustomEvent,Number]),_.E("design:returntype")],$b.prototype,"onThumbnailSelected",null);_.x([_.e("data","selectedThumbnailIndex","hoverThumbnail"),_.E("design:type",Object),_.E("design:paramtypes",[])],$b.prototype,"thumbnailDetails",null);_.x([_.e("data","selectedThumbnailIndex"),_.E("design:type",Object),_.E("design:paramtypes",[])],$b.prototype,"populatedData",null);
_.x([_.T4("data"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],$b.prototype,"dataChanged",null);_.x([_.Vd("iron-resize"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],$b.prototype,"updateOffset",null);$b=_.x([_.f({disableElementRegistration:!0,is:"ytd-product-details-image-carousel-renderer"})],$b);
_.C($b,"ytd-product-details-image-carousel-renderer",function(){if(jcd!==void 0)return jcd;var S=document.createElement("template");_.h(S,'\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');
S.content.insertBefore(_.t().content.cloneNode(!0),S.content.firstChild);return jcd=S},{mode:_.UW("kevlar_poly_si_batch_j079")?1:2});var GkY;var i$=function(){return _.w.apply(this,arguments)||this};
_.r(i$,_.w);_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],i$.prototype,"ytRendererBehavior",void 0);_.x([_.F(_.qH.YtRendererstamperBehavior),_.E("design:type",Object)],i$.prototype,"ytRendererstamperBehavior",void 0);_.x([_.F(_.eL.YtComponentBehavior),_.E("design:type",Object)],i$.prototype,"componentBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],i$.prototype,"data",void 0);i$=_.x([_.f({disableElementRegistration:!0,is:"ytd-product-details-offer-renderer"})],i$);
_.C(i$,"ytd-product-details-offer-renderer",function(){if(GkY!==void 0)return GkY;var S=document.createElement("template");_.h(S,'\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');
S.content.insertBefore(_.t().content.cloneNode(!0),S.content.firstChild);return GkY=S},{mode:1});var hnX;var Nl=function(){var S=_.w.apply(this,arguments)||this;S.isOffersHidden=!0;return S};
_.r(Nl,_.w);Nl.prototype.toggleOffers=function(){this.isOffersHidden=!this.isOffersHidden;var S,p=_.b((S=this.data)==null?void 0:S.viewOffersButton,_.XT);p&&this.ytRendererBehavior.logExplicitClick(p)};
Nl.prototype.configureRendererStamper=function(){return{"data.offers":{id:"offer",mapping:{productDetailsOfferRenderer:"ytd-product-details-offer-renderer"}}}};
_.$u.Object.defineProperties(Nl.prototype,{firstOfferVendorLogoUrl:{configurable:!0,enumerable:!0,get:function(){var S,p,U,Y;return(U=_.b((S=this.data)==null?void 0:(p=S.offers)==null?void 0:p[0],tgn))==null?void 0:(Y=U.offerData)==null?void 0:Y.vendorLogoUrl}}});
_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],Nl.prototype,"ytRendererBehavior",void 0);_.x([_.F(_.qH.YtRendererstamperBehavior),_.E("design:type",Object)],Nl.prototype,"ytRendererstamperBehavior",void 0);_.x([_.F(_.eL.YtComponentBehavior),_.E("design:type",Object)],Nl.prototype,"componentBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],Nl.prototype,"data",void 0);_.x([_.g(),_.E("design:type",Object)],Nl.prototype,"isOffersHidden",void 0);
_.x([_.e("data"),_.E("design:type",Object),_.E("design:paramtypes",[])],Nl.prototype,"firstOfferVendorLogoUrl",null);Nl=_.x([_.f({disableElementRegistration:!0,is:"ytd-product-details-offers-container-renderer"})],Nl);
_.C(Nl,"ytd-product-details-offers-container-renderer",function(){if(hnX!==void 0)return hnX;var S=document.createElement("template");_.h(S,'\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');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);return hnX=S},{mode:1});var Rnd;var FHt;var Bo=function(){return _.w.apply(this,arguments)||this};
_.r(Bo,_.w);Bo.prototype.ready=function(){this.hostElement.addEventListener("mouseenter",this.onMouseEnterImage);this.hostElement.addEventListener("mouseleave",this.onMouseLeaveImage)};
Bo.prototype.onMouseEnterImage=function(){this.isImageButton&&this.thumbnailDetails!==void 0&&_.pp(this,"ytd-product-details-variant-image-select",[this.thumbnailDetails])};
Bo.prototype.onMouseLeaveImage=function(){this.isImageButton&&_.pp(this,"ytd-product-details-variant-image-unselect")};
_.$u.Object.defineProperties(Bo.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 S;return((S=this.data)==null?void 0:S.variantOptionState)==="VARIANT_OPTION_STATE_SELECTED"}},
isUnavailable:{configurable:!0,enumerable:!0,get:function(){var S,p,U;return((S=this.data)==null?void 0:S.variantAvailability)==="VARIANT_AVAILABILITY_NO_OFFERS"||((p=this.data)==null?void 0:p.variantOptionState)==="VARIANT_OPTION_STATE_OTHER_ATTRIBUTE_WILL_CHANGE"||((U=this.data)==null?void 0:U.variantOptionState)==="VARIANT_OPTION_STATE_DISABLED"}},
thumbnailDetails:{configurable:!0,enumerable:!0,get:function(){if(this.isImageButton){var S;if(((S=this.data)==null?void 0:S.imageDetails)!==void 0)return this.data.imageDetails}}},
accessibilityLabel:{configurable:!0,enumerable:!0,get:function(){var S,p;return this.isUnavailable?(S=this.data)==null?void 0:S.variantOptionUnavailableAccessibilityLabel:(p=this.data)==null?void 0:p.variantOptionAccessibilityLabel}}});
_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],Bo.prototype,"ytRendererBehavior",void 0);_.x([_.F(_.qH.YtRendererstamperBehavior),_.E("design:type",Object)],Bo.prototype,"ytRendererstamperBehavior",void 0);_.x([_.F(_.eL.YtComponentBehavior),_.E("design:type",Object)],Bo.prototype,"componentBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],Bo.prototype,"data",void 0);_.x([_.g(),_.E("design:type",String)],Bo.prototype,"displayType",void 0);
_.x([_.e("displayType","data"),_.E("design:type",Boolean),_.E("design:paramtypes",[])],Bo.prototype,"isImageButton",null);_.x([_.e("displayType","data"),_.E("design:type",Boolean),_.E("design:paramtypes",[])],Bo.prototype,"isPillButton",null);_.x([_.e("data"),_.g({reflectToAttribute:!0}),_.E("design:type",Boolean),_.E("design:paramtypes",[])],Bo.prototype,"isActive",null);
_.x([_.e("data"),_.g({reflectToAttribute:!0}),_.E("design:type",Boolean),_.E("design:paramtypes",[])],Bo.prototype,"isUnavailable",null);_.x([_.e("data"),_.E("design:type",Object),_.E("design:paramtypes",[])],Bo.prototype,"thumbnailDetails",null);_.x([_.e("isUnavailable","data"),_.E("design:type",Object),_.E("design:paramtypes",[])],Bo.prototype,"accessibilityLabel",null);Bo=_.x([_.f({disableElementRegistration:!0,is:"ytd-product-details-variant-option-renderer"})],Bo);
_.C(Bo,"ytd-product-details-variant-option-renderer",function(){if(FHt!==void 0)return FHt;var S=document.createElement("template");_.h(S,'\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');
S.content.insertBefore(_.t().content.cloneNode(!0),S.content.firstChild);return FHt=S},{mode:1});var XNd;var ql=function(){var S=_.w.apply(this,arguments)||this;S.variantsExpanded=!1;S.hideShowMoreLessVariantButton=!0;S.initialized=!1;S.computeVariantsDebouncer=null;S.computeVariants=function(p){p=p===void 0?!1:p;S.variantsExpanded||S.showOptions()||!p||(S.variantsExpanded=!0);if(S.variantsExpanded){p=_.d(S.items.children);for(var U=p.next();!U.done;U=p.next())U.value.hidden=!1}S.initialized=!0};
return S};
_.r(ql,_.w);_.M=ql.prototype;_.M.ready=function(){var S=this;setTimeout(function(){S.computeVariants(!0)})};
_.M.showOptions=function(){for(var S=_.d(this.items.children),p=S.next();!p.done;p=S.next())p.value.hidden=!0;var U=this.container.getBoundingClientRect().width,Y=0,L=S=0;p=!1;for(var I=_.d(this.items.children),V=I.next();!V.done;V=I.next()){V=V.value;V.hidden=!1;var W=V.getBoundingClientRect().width;if(Y+W<U)Y+=W;else if(++L<2)Y=W;else break;S+=1;V.hasAttribute("is-active")&&(p=!0)}for(U=S;U<this.items.children.length;U++)this.items.children[U].hidden=!0;this.hideShowMoreLessVariantButton=S===this.items.children.length;
return p};
_.M.debouncedComputeVariants=function(){this.computeVariantsDebouncer=_.c1(this.computeVariantsDebouncer,_.xr.after(100),this.computeVariants)};
_.M.onShowMoreLessVariantsButtonClick=function(){var S;(S=this.data)!=null&&S.variantOptionRenderers&&(this.variantsExpanded=!this.variantsExpanded,this.computeVariants())};
_.M.configureRendererStamper=function(){return{"data.variantOptionRenderers":{id:"items",mapping:{productDetailsVariantOptionRenderer:{component:"ytd-product-details-variant-option-renderer",properties:{displayType:"[[displayType]]"}}}}}};
_.$u.Object.defineProperties(ql.prototype,{selectedOptionName:{configurable:!0,enumerable:!0,get:function(){var S,p,U=(S=this.data)==null?void 0:(p=S.variantOptionRenderers)==null?void 0:p.find(function(I){return _.b(I,qaX).variantOptionState==="VARIANT_OPTION_STATE_SELECTED"}),Y,L;
return(L=(Y=_.b(U,qaX))==null?void 0:Y.name)!=null?L:""}},
displayType:{configurable:!0,enumerable:!0,get:function(){var S;return((S=this.data)==null?void 0:S.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"}}}});
ql.prototype.debouncedComputeVariants=ql.prototype.debouncedComputeVariants;_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],ql.prototype,"ytRendererBehavior",void 0);_.x([_.F(_.qH.YtRendererstamperBehavior),_.E("design:type",Object)],ql.prototype,"ytRendererstamperBehavior",void 0);_.x([_.F(_.eL.YtComponentBehavior),_.E("design:type",Object)],ql.prototype,"componentBehavior",void 0);_.x([_.F(_.ji),_.E("design:type",Object)],ql.prototype,"ironResizableBehavior",void 0);
_.x([_.g(),_.E("design:type",Object)],ql.prototype,"data",void 0);_.x([_.g(),_.E("design:type",Object)],ql.prototype,"variantsExpanded",void 0);_.x([_.g(),_.E("design:type",Object)],ql.prototype,"hideShowMoreLessVariantButton",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],ql.prototype,"initialized",void 0);_.x([_.O2("#items"),_.E("design:type",HTMLDivElement)],ql.prototype,"items",void 0);_.x([_.O2("#container"),_.E("design:type",HTMLDivElement)],ql.prototype,"container",void 0);
_.x([_.O2("#more-variants-button"),_.E("design:type",HTMLElement)],ql.prototype,"moreVariantsButton",void 0);_.x([_.e("data"),_.E("design:type",String),_.E("design:paramtypes",[])],ql.prototype,"selectedOptionName",null);_.x([_.T4("data","variantsExpanded"),_.Vd("iron-resize"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],ql.prototype,"debouncedComputeVariants",null);
_.x([_.e("data"),_.E("design:type",String),_.E("design:paramtypes",[])],ql.prototype,"displayType",null);_.x([_.e("displayType"),_.E("design:type",Object),_.E("design:paramtypes",[])],ql.prototype,"variantItemsClassname",null);ql=_.x([_.f({disableElementRegistration:!0,is:"ytd-product-details-variant-renderer"})],ql);
_.C(ql,"ytd-product-details-variant-renderer",function(){if(XNd!==void 0)return XNd;var S=document.createElement("template");_.h(S,'\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');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);return XNd=S},{mode:1});var Av=function(){return _.w.apply(this,arguments)||this};
_.r(Av,_.w);
Av.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"}}}};
_.$u.Object.defineProperties(Av.prototype,{showPurchaseData:{configurable:!0,enumerable:!0,get:function(){var S;return!((S=this.data)==null||!S.heroOfferRenderer)}},
showHeroOfferRenderer:{configurable:!0,enumerable:!0,get:function(){var S;return!((S=this.data)==null||!S.heroOfferRenderer)}},
showBrandText:{configurable:!0,enumerable:!0,get:function(){var S;return!((S=this.data)==null||!S.formattedByBrandText)}},
showOffers:{configurable:!0,enumerable:!0,get:function(){var S,p,U=(p=_.b((S=this.data)==null?void 0:S.offersContainerRenderer,Azo))==null?void 0:p.offers;return U!==void 0&&(U==null?void 0:U.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 S,p,U;return((U=(S=this.data)==null?void 0:(p=S.variants)==null?void 0:p.map(function(Y){var L,I;Y=(I=(L=_.b(Y,BCs))==null?void 0:L.variantOptionRenderers)==null?void 0:I.find(function(W){var O;return((O=_.b(W,qaX))==null?void 0:O.variantOptionState)==="VARIANT_OPTION_STATE_SELECTED"});
var V;return(V=_.b(Y,qaX))==null?void 0:V.name}).filter(function(Y){return typeof Y==="string"}))!=null?U:[]).join(" \u2022 ")}},
shoppingReportingButtonData:{configurable:!0,enumerable:!0,get:function(){var S,p,U,Y=(p=_.b((S=this.data)==null?void 0:S.shoppingFlaggingRenderer,czJ))==null?void 0:(U=p.reportButton)==null?void 0:U.buttonRenderer;if(Y)return{text:Y.text,command:Y.command,icon:{iconType:"FLAG"},accessibilityData:Y.accessibilityData,trackingParams:Y.trackingParams,loggingDirectives:Y.loggingDirectives}}}});
_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],Av.prototype,"ytRendererBehavior",void 0);_.x([_.F(_.qH.YtRendererstamperBehavior),_.E("design:type",Object)],Av.prototype,"ytRendererstamperBehavior",void 0);_.x([_.F(_.eL.YtComponentBehavior),_.E("design:type",Object)],Av.prototype,"componentBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],Av.prototype,"data",void 0);_.x([_.O2("#image-carousel-renderer"),_.E("design:type",Object)],Av.prototype,"imageCarouselRenderer",void 0);
_.x([_.O2("#hero-offer-renderer"),_.E("design:type",Object)],Av.prototype,"productDetailsHeroOfferRenderer",void 0);_.x([_.O2("#variants"),_.E("design:type",Object)],Av.prototype,"productDetailsVariantRenderer",void 0);_.x([_.O2("#offers"),_.E("design:type",Object)],Av.prototype,"productDetailsOffersContainerRenderer",void 0);_.x([_.O2("#description-renderer"),_.E("design:type",Object)],Av.prototype,"productDetailsDescriptionRenderer",void 0);
_.x([_.e("data"),_.E("design:type",Boolean),_.E("design:paramtypes",[])],Av.prototype,"showPurchaseData",null);_.x([_.e("data"),_.E("design:type",Boolean),_.E("design:paramtypes",[])],Av.prototype,"showHeroOfferRenderer",null);_.x([_.e("data"),_.E("design:type",Boolean),_.E("design:paramtypes",[])],Av.prototype,"showBrandText",null);_.x([_.e("data"),_.E("design:type",Boolean),_.E("design:paramtypes",[])],Av.prototype,"showOffers",null);
_.x([_.e("showOffers","showPurchaseData"),_.E("design:type",Boolean),_.E("design:paramtypes",[])],Av.prototype,"showBuySeparator",null);_.x([_.e("showOffers","showPurchaseData"),_.E("design:type",Boolean),_.E("design:paramtypes",[])],Av.prototype,"showBuyCard",null);_.x([_.e("data"),_.E("design:type",String),_.E("design:paramtypes",[])],Av.prototype,"selectedVariantsText",null);_.x([_.e("data"),_.E("design:type",Object),_.E("design:paramtypes",[])],Av.prototype,"shoppingReportingButtonData",null);
Av=_.x([_.f({disableElementRegistration:!0,is:"ytd-product-details-renderer"})],Av);
_.C(Av,"ytd-product-details-renderer",function(){if(Rnd!==void 0)return Rnd;var S=document.createElement("template");_.h(S,'\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');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);return Rnd=S},{mode:1});var P7t;var Zld;var scL;var tv=function(){return _.w.apply(this,arguments)||this};
_.r(tv,_.w);tv.prototype.configureRendererStamper=function(){return{"data.vcIcon":{id:"vc-icon",mapping:{themedImageRenderer:{component:"yt-themed-image-renderer"}}}}};
_.$u.Object.defineProperties(tv.prototype,{vcBalanceWidgetStyle:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.style?this.data.style:"VC_BALANCE_WIDGET_STYLE_UNKNOWN"}}});
_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],tv.prototype,"ytRendererBehavior",void 0);_.x([_.F(_.qH.YtRendererstamperBehavior),_.E("design:type",Object)],tv.prototype,"ytRendererstamperBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],tv.prototype,"data",void 0);_.x([_.g(),_.E("design:type",String)],tv.prototype,"formattedAmount",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],tv.prototype,"ariaLabel",void 0);
_.x([_.g({reflectToAttribute:!0}),_.e("data.style"),_.E("design:type",String),_.E("design:paramtypes",[])],tv.prototype,"vcBalanceWidgetStyle",null);tv=_.x([_.FB({is:"yt-vc-balance-renderer",disableElementRegistration:!0})],tv);
_.C(tv,"yt-vc-balance-renderer",function(){if(scL===void 0){var S=document.createElement("template");_.h(S,'\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');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);var p=S.content,U=p.insertBefore;Zld===void 0&&(Zld=document.createElement("template"));var Y=Zld;U.call(p,Y.content.cloneNode(!0),S.content.firstChild);scL=S}S=scL;return S},{mode:2});_.Ry("vcBalanceRenderer","vcBalanceRenderer","ytd-vc-balance-renderer");var co=function(){return _.w.apply(this,arguments)||this};
_.r(co,_.w);_.$u.Object.defineProperties(co.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:""}}});
_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],co.prototype,"ytRendererBehavior",void 0);_.x([_.F(_.Xh),_.E("design:type",Object)],co.prototype,"ytdReduxBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],co.prototype,"data",void 0);_.x([_.g({selectorArgs:["data.vcBalanceEntityKey"],selector:function(S,p){return _.I4(S.entities,"vcBalanceEntity",p)}}),
_.E("design:type",Object)],co.prototype,"vcBalanceEntity",void 0);_.x([_.e("vcBalanceEntity"),_.E("design:type",String),_.E("design:paramtypes",[])],co.prototype,"formattedAmount",null);_.x([_.e("vcBalanceEntity"),_.E("design:type",String),_.E("design:paramtypes",[])],co.prototype,"vcBalanceAriaLabel",null);co=_.x([_.f({disableElementRegistration:!0,is:"ytd-vc-balance-renderer"})],co);
_.C(co,"ytd-vc-balance-renderer",function(){if(P7t!==void 0)return P7t;var S=document.createElement("template");_.h(S,'\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');
S.content.insertBefore(_.t().content.cloneNode(!0),S.content.firstChild);return P7t=S},{mode:1});var end;var SG=function(){var S=_.w.apply(this,arguments)||this;S.rotation=0;S.isReloading=!1;return S};
_.r(SG,_.w);SG.prototype.rotationChanged=function(){this.icon.style.transform="rotate("+(this.rotation+180)+"deg)";this.icon.style.opacity=""+(.7/360*this.rotation+.3)};
SG.prototype.reset=function(){this.hostElement.style.opacity=""};
SG.prototype.close=function(){var S=this;return _.T(function(p){if(p.nextAddress==1)return _.k(p,S.hostElement.animate([{transform:"scale(1)",opacity:1},{transform:"scale(.4)",opacity:0}],{duration:150,easing:"cubic-bezier(.05, 0, 0, 1)"}).finished,2);S.hostElement.style.opacity="0";_.OV(p)})};
SG.prototype.rotationChanged=SG.prototype.rotationChanged;_.x([_.g(),_.E("design:type",Object)],SG.prototype,"rotation",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],SG.prototype,"isReloading",void 0);_.x([_.O2("#icon"),_.E("design:type",HTMLElement)],SG.prototype,"icon",void 0);_.x([_.T4("rotation"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],SG.prototype,"rotationChanged",null);
SG=_.x([_.f({disableElementRegistration:!0,is:"ytd-refresh"})],SG);
_.C(SG,"ytd-refresh",function(){if(end!==void 0)return end;var S=document.createElement("template");_.h(S,'\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');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);return end=S},{mode:1});var gon;var pn=function(){return _.w.apply(this,arguments)||this};
_.r(pn,_.w);pn.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"}}}};
pn.prototype.dataChanged=function(){if(this.data){var S=this.hasBannerArt;this.hasBannerArt=!1;if(this.data&&this.data.banner){var p=_.AS(this.data.banner.thumbnails,this.hostElement.clientWidth);p&&(p.indexOf("//")===0&&(p="https:"+p),this.hasBannerArt=!0,_.Ms(this.hostElement,{"--ytd-interactive-tabbed-header-renderer-banner-url":"url("+p+")"}))}this.hasBannerArt!==S&&_.tB(this.hostElement).querySelector("#header").fire("iron-resize")}};
pn.prototype.updateSelectedFromBinding=function(S){this.selected=S.detail.value};
pn.prototype.dataChanged=pn.prototype.dataChanged;_.x([_.F(USn),_.E("design:type",Object)],pn.prototype,"ytdTabbedHeaderBehavior",void 0);_.x([_.F(_.qH.YtRendererstamperBehavior),_.E("design:type",Object)],pn.prototype,"ytRendererstamperBehavior",void 0);_.x([_.F(_.ej),_.E("design:type",Object)],pn.prototype,"ytdGridStateAwareBehavior",void 0);_.x([_.F(_.uc.YtdGuideStateAwareBehavior),_.E("design:type",Object)],pn.prototype,"ytdGuideStateAwareBehavior",void 0);
_.x([_.F(_.eL.YtComponentBehavior),_.E("design:type",Object)],pn.prototype,"componentBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],pn.prototype,"data",void 0);_.x([_.g(),_.E("design:type",Number)],pn.prototype,"selected",void 0);_.x([_.g(),_.E("design:type",Boolean)],pn.prototype,"active",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Boolean)],pn.prototype,"hasBannerArt",void 0);
_.x([_.z4("data"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],pn.prototype,"dataChanged",null);pn=_.x([_.f({is:"ytd-interactive-tabbed-header-renderer",disableElementRegistration:!0})],pn);
_.C(pn,"ytd-interactive-tabbed-header-renderer",function(){if(gon!==void 0)return gon;var S=document.createElement("template");_.h(S,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-interactive-tabbed-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-app-header-layout class="style-scope ytd-interactive-tabbed-header-renderer"><tp-yt-app-header id="header" slot="header" condenses="" disabled="[[!active]]" effects="parallax-background" effects-config="{&quot;parallax-background&quot;: {&quot;scalar&quot;: 0.5}}" fixed="" class="style-scope ytd-interactive-tabbed-header-renderer"><svg id="bg" viewBox="0 0 1439 304" preserveAspectRatio="xMinYMid slice" class="style-scope ytd-interactive-tabbed-header-renderer"><path opacity="0.5" d="M 0,304 V 0 H 963 L 1439,304 Z" class="style-scope ytd-interactive-tabbed-header-renderer"></path><path opacity="0.5" d="M 0,0 l 0,304 580,0 L 1055,0 0,0 Z" class="style-scope ytd-interactive-tabbed-header-renderer"></path><path opacity="0.9" d="M 0,304 V 0 H 780 L 1247,304 Z" class="style-scope ytd-interactive-tabbed-header-renderer"></path></svg><div id="content-container" class="style-scope ytd-interactive-tabbed-header-renderer"><div id="content" class="style-scope ytd-interactive-tabbed-header-renderer"><yt-img-shadow id="box-art" object-fit="COVER" thumbnail="[[data.boxArt]]" class="style-scope ytd-interactive-tabbed-header-renderer"></yt-img-shadow><div id="details" class="style-scope ytd-interactive-tabbed-header-renderer"><div id="title" class="style-scope ytd-interactive-tabbed-header-renderer">[[getSimpleString(data.title)]]</div><div id="auto-generated" hidden="[[!data.autoGenerated]]" class="style-scope ytd-interactive-tabbed-header-renderer">[[getSimpleString(data.autoGenerated)]]</div><div id="description" class="style-scope ytd-interactive-tabbed-header-renderer">[[getSimpleString(data.description)]]</div><div id="metadata" class="style-scope ytd-interactive-tabbed-header-renderer">[[getSimpleString(data.metadata)]]</div><ytd-badge-supported-renderer badges="[[data.badges]]" class="style-scope ytd-interactive-tabbed-header-renderer"></ytd-badge-supported-renderer><div id="buttons" class="style-scope ytd-interactive-tabbed-header-renderer"></div></div></div></div><tp-yt-app-toolbar sticky="" class="style-scope ytd-interactive-tabbed-header-renderer"><div id="tabs-container" class="style-scope ytd-interactive-tabbed-header-renderer"><div id="tabs-inner-container" class="style-scope ytd-interactive-tabbed-header-renderer"><tp-yt-paper-tabs noink="" scrollable="" selected="[[selected]]" on-iron-activate="onTabsActivate" on-selected-changed="updateSelectedFromBinding" class="style-scope ytd-interactive-tabbed-header-renderer"><template is="dom-repeat" items="[[tabs]]" class="style-scope ytd-interactive-tabbed-header-renderer"><tp-yt-paper-tab hidden="[[!item.tabRenderer]]" class="style-scope ytd-interactive-tabbed-header-renderer">\n                [[item.tabRenderer.title]]\n              </tp-yt-paper-tab></template></tp-yt-paper-tabs></div></div></tp-yt-app-toolbar></tp-yt-app-header></tp-yt-app-header-layout>');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);return gon=S},{mode:1});var uRi;var U7=function(){return _.w.apply(this,arguments)||this};
_.r(U7,_.w);U7.prototype.configureRendererStamper=function(){return{"data.leftActions":{id:"left-actions",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.actions":{id:"actions",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
U7.prototype.computeActionsAlignment=function(S){return(S==null?void 0:S.actionsAlignment)||""};
_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],U7.prototype,"ytRendererBehavior",void 0);_.x([_.F(_.qH.YtRendererstamperBehavior),_.E("design:type",Object)],U7.prototype,"ytRendererstamperBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],U7.prototype,"data",void 0);_.x([_.g({reflectToAttribute:!0,computed:"computeActionsAlignment(data)"}),_.E("design:type",String)],U7.prototype,"actionsAlignment",void 0);
U7=_.x([_.f({is:"ytd-page-footer-renderer",disableElementRegistration:!0})],U7);
_.C(U7,"ytd-page-footer-renderer",function(){if(uRi!==void 0)return uRi;var S=document.createElement("template");_.h(S,'\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');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);return uRi=S},{mode:1});var wN5;var lzq;var Yw=function(){var S=_.w.apply(this,arguments)||this;S.isEditing=!1;S.useSlot=!1;S.isMultiline=!1;return S};
_.r(Yw,_.w);_.M=Yw.prototype;_.M.onKeydown=function(S){if(S.keyCode===13&&!this.isMultiline)this.onSave();else if(S.keyCode===27)this.onCancel()};
_.M.computeComponentStyle=function(S){return(S==null?0:S.style)?S.style:"INLINE_FORM_STYLE_UNKNOWN"};
_.M.computeisMultiline=function(S){if(this.multilineOverride!==void 0)return this.multilineOverride;var p,U;return!!(S==null?0:(p=S.formField)==null?0:(U=p.textInputFormFieldRenderer)==null?0:U.isMultiline)};
_.M.computeTextDisplayed=function(S,p){if(S)return S;if(p)return p};
_.M.onEdit=function(){this.isEditing=!0;this.textForm.focusTextInput()};
_.M.onSave=function(){if(this.textForm.validate()){this.textForm.save();var S=this.textForm.value;if(S)this.set("data.textDisplayed",_.Ec(S));else{var p;((p=this.data)==null?0:p.placeholder)&&this.set("data.textDisplayed",this.data.placeholder)}this.hostElement.dispatchEvent(new _.uz("inline-form-changed",this.data));this.isEditing=!1}};
_.M.onCancel=function(){var S=_.mA(this.data.textDisplayed);S===this.data.placeholder?this.textForm.reset(""):this.textForm.reset(S);this.isEditing=!1};
Yw.prototype.onKeydown=Yw.prototype.onKeydown;_.x([_.F(_.kP.YtEventForwardingBehavior),_.E("design:type",Object)],Yw.prototype,"ytEventForwardingBehavior",void 0);_.x([_.F(_.qH.YtRendererstamperBehavior),_.E("design:type",Object)],Yw.prototype,"ytRendererstamperBehavior",void 0);_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],Yw.prototype,"ytRendererBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],Yw.prototype,"data",void 0);
_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],Yw.prototype,"isEditing",void 0);_.x([_.g(),_.E("design:type",Object)],Yw.prototype,"useSlot",void 0);_.x([_.g(),_.E("design:type",Boolean)],Yw.prototype,"multilineOverride",void 0);_.x([_.g(),_.E("design:type",Boolean)],Yw.prototype,"enableOverlayTheme",void 0);_.x([_.g({reflectToAttribute:!0,computed:"computeComponentStyle(data)"}),_.E("design:type",String)],Yw.prototype,"componentStyle",void 0);
_.x([_.g({computed:"computeisMultiline(data)"}),_.E("design:type",Object)],Yw.prototype,"isMultiline",void 0);_.x([_.O2("#text-form"),_.E("design:type",Object)],Yw.prototype,"textForm",void 0);_.x([_.Vd("keydown"),_.E("design:type",Function),_.E("design:paramtypes",[KeyboardEvent]),_.E("design:returntype")],Yw.prototype,"onKeydown",null);Yw=_.x([_.f({is:"ytd-inline-form-renderer",disableElementRegistration:!0})],Yw);
_.C(Yw,"ytd-inline-form-renderer",function(){if(lzq!==void 0)return lzq;var S=document.createElement("template");_.h(S,'\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');
S.content.insertBefore(_.t().content.cloneNode(!0),S.content.firstChild);return lzq=S},{mode:1});var azT;var Ln=function(){var S=_.w.apply(this,arguments)||this;S.previousSelectValue=void 0;S.selectedItemMessage=void 0;return S};
_.r(Ln,_.w);Ln.prototype.detached=function(){this.selectedItemMessage=this.previousSelectValue=void 0};
Ln.prototype.selectedValueChanged=function(){if(this.selectedValue!==void 0){var S,p,U,Y,L=(S=this.data)==null?void 0:(p=S.dropdown)==null?void 0:(U=p.dropdownRenderer)==null?void 0:(Y=U.entries)==null?void 0:Y.map(function(W){return W.privacyDropdownItemRenderer});
S=_.d(L!=null?L:[]);for(p=S.next();!p.done;p=S.next())if((p=p.value)&&p.int32Value===this.selectedValue){this.selectedItemMessage=p.itemMessage;break}}else this.selectedItemMessage=void 0;var I;(I=this.onValueChanged)==null||I.call(this);if(this.selectedValue!==-1)if(this.previousSelectValue===void 0)this.previousSelectValue=this.selectedValue;else if(this.previousSelectValue!==this.selectedValue){var V;(V=this.data)!=null&&V.key&&this.data.onChange&&(this.set(this.data.key,this.selectedValue,this.data.onChange),
this.ytComponentBehavior.resolveCommand(this.data.onChange),this.previousSelectValue=this.selectedValue)}};
Ln.prototype.onValueChangedForSelectedValue=function(S){this.selectedValue=S.detail.value};
Ln.prototype.selectedValueChanged=Ln.prototype.selectedValueChanged;_.x([_.F(_.kP.YtEventForwardingBehavior),_.E("design:type",Object)],Ln.prototype,"ytEventForwardingBehavior",void 0);_.x([_.F(_.eL.YtComponentBehavior),_.E("design:type",Object)],Ln.prototype,"ytComponentBehavior",void 0);_.x([_.F(_.qH.YtRendererstamperBehavior),_.E("design:type",Object)],Ln.prototype,"ytRendererstamperBehavior",void 0);
_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],Ln.prototype,"ytRendererBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],Ln.prototype,"data",void 0);_.x([_.g(),_.E("design:type",String)],Ln.prototype,"theme",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Number)],Ln.prototype,"selectedValue",void 0);_.x([_.g(),_.E("design:type",Function)],Ln.prototype,"onValueChanged",void 0);
_.x([_.z4("selectedValue"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],Ln.prototype,"selectedValueChanged",null);Ln=_.x([_.f({is:"ytd-dropdown-form-field-renderer",disableElementRegistration:!0})],Ln);
_.C(Ln,"ytd-dropdown-form-field-renderer",function(){if(azT!==void 0)return azT;var S=document.createElement("template");_.h(S,'\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');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);return azT=S},{mode:_.UW("kevlar_poly_si_batch_j025")?1:2});var fzT;var M6=function(){return _.w.apply(this,arguments)||this};
_.r(M6,_.w);_.$u.Object.defineProperties(M6.prototype,{byline:{configurable:!0,enumerable:!0,get:function(){for(var S=[],p=_.d(this.data||[]),U=p.next();!U.done;U=p.next())(U=_.b(U.value,STi))&&S.push(U);return S}}});
_.x([_.g(),_.E("design:type",Array)],M6.prototype,"data",void 0);_.x([_.e("data"),_.E("design:type",Object),_.E("design:paramtypes",[])],M6.prototype,"byline",null);M6=_.x([_.f({is:"ytd-playlist-byline-renderer",disableElementRegistration:!0})],M6);
_.C(M6,"ytd-playlist-byline-renderer",function(){if(fzT!==void 0)return fzT;var S=document.createElement("template");_.h(S,'\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>');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);return fzT=S},{mode:1});var C7A;var I7=function(){var S=_.w.apply(this,arguments)||this;S.rtlBullet=_.y("web_playlist_stats_rtl_bullet_icon_killswitch");S.modern=_.y("web_modern_buttons");S.actionMap={"yt-update-playlist-action":"onUpdatePlaylistAction"};return S};
_.r(I7,_.w);_.M=I7.prototype;_.M.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"}}}}};
_.M.attached=function(){};
_.M.computeIsCustomThumbnail=function(S){return S?!!S.playlistCustomThumbnailRenderer:!1};
_.M.onYtNavigate=function(S,p){if(p&&p.actions&&p.actions.indexOf("shuffle")>-1){S=_.tW().resolve(_.Fz);var U=p.tempData||{};U.watch_params=this.get("menu.menuRenderer.topLevelButtons[1].buttonRenderer.navigationEndpoint.watchEndpoint.params",this.data);p.tempData=U;S.isShuffleNextPlaylist=!0}};
_.M.onUpdatePlaylistAction=function(S){var p;S=(p=_.b(S,_.Sxt))==null?void 0:p.updatedRenderer;if(p=_.b(S,XL))this.data=p};
_.M.computeStyleType=function(S){return S?S.toLowerCase().replace(/_/g,"-"):""};
_.M.computeThumbnailWidth=function(S){return S==="PLAYLIST_SIDEBAR_PRIMARY_INFO_RENDERER_STYLE_TYPE_SHOW"?412:357};
_.M.computeHideThumbnailAria=function(S){if(S==null?0:S.thumbnailOverlays)for(var p=0;p<S.thumbnailOverlays.length;p++){var U=void 0;if((U=S.thumbnailOverlays[p])==null?0:U.tvfilmShowWatchForwardOverlayRenderer)return!1}return!0};
I7.prototype.onYtNavigate=I7.prototype.onYtNavigate;_.x([_.F(_.qH.YtRendererstamperBehavior),_.E("design:type",Object)],I7.prototype,"ytRendererstamperBehavior",void 0);_.x([_.F(_.Aj.YtActionHandlerBehavior),_.E("design:type",Object)],I7.prototype,"ytActionHandlerBehavior",void 0);_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],I7.prototype,"ytRendererBehavior",void 0);_.x([_.F(_.eL.YtComponentBehavior),_.E("design:type",Object)],I7.prototype,"ytComponentBehavior",void 0);
_.x([_.g(),_.E("design:type",Object)],I7.prototype,"data",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],I7.prototype,"rtlBullet",void 0);_.x([_.g({reflectToAttribute:!0,computed:"computeStyleType(data.style)"}),_.E("design:type",String)],I7.prototype,"styleType",void 0);_.x([_.g({reflectToAttribute:!0,computed:"computeThumbnailWidth(data.style)"}),_.E("design:type",Number)],I7.prototype,"thumbnailWidth",void 0);
_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],I7.prototype,"modern",void 0);_.x([_.g({reflectToAttribute:!0,computed:"computeIsCustomThumbnail(data.thumbnailRenderer)"}),_.E("design:type",Boolean)],I7.prototype,"isCustomThumbnail",void 0);_.x([_.Vd("yt-navigate"),_.E("design:type",Function),_.E("design:paramtypes",[Event,Object]),_.E("design:returntype")],I7.prototype,"onYtNavigate",null);
I7=_.x([_.f({is:"ytd-playlist-sidebar-primary-info-renderer",disableElementRegistration:!0})],I7);
_.C(I7,"ytd-playlist-sidebar-primary-info-renderer",function(){if(C7A!==void 0)return C7A;var S=document.createElement("template");_.h(S,'\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>');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);return C7A=S},{mode:1});var xSX;var dj=function(){return _.w.apply(this,arguments)||this};
_.r(dj,_.w);dj.prototype.computeOwnerVisibility=function(S){return!(!S.videoOwner&&!S.button)};
dj.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"}}}};
_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],dj.prototype,"ytRendererBehavior",void 0);_.x([_.F(_.qH.YtRendererstamperBehavior),_.E("design:type",Object)],dj.prototype,"ytRendererstamperBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],dj.prototype,"data",void 0);dj=_.x([_.f({is:"ytd-playlist-sidebar-secondary-info-renderer",disableElementRegistration:!0})],dj);
_.C(dj,"ytd-playlist-sidebar-secondary-info-renderer",function(){if(xSX!==void 0)return xSX;var S=document.createElement("template");_.h(S,'\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');
S.content.insertBefore(_.t().content.cloneNode(!0),S.content.firstChild);return xSX=S},{mode:1});var EoY;var Vn=function(){var S=_.w.apply(this,arguments)||this;S.expanded=!1;S.isCompact=!1;return S};
_.r(Vn,_.w);_.M=Vn.prototype;_.M.attached=function(){this.ytdAutoScrollBehavior.scrollTarget=this.text};
_.M.dataChanged=function(){this.data&&_.Ch(_.tB(this.text),_.dGc(_.Wqt,_.mA(this.data.text||null)))};
_.M.computeAutoScrollEnabled=function(S,p){return S&&!p};
_.M.expandedChanged=function(){this.expanderIcon.icon="yt-icons:expand-"+(this.expanded?"less":"more")};
_.M.toggleOnTap=function(){this.expanded=!this.expanded};
Vn.prototype.expandedChanged=Vn.prototype.expandedChanged;Vn.prototype.dataChanged=Vn.prototype.dataChanged;_.x([_.F(_.$LT),_.E("design:type",Object)],Vn.prototype,"ytdAutoScrollBehavior",void 0);_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],Vn.prototype,"ytRendererBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],Vn.prototype,"data",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],Vn.prototype,"expanded",void 0);
_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],Vn.prototype,"isCompact",void 0);_.x([_.g({computed:"computeAutoScrollEnabled(data.autoscroll, expanded)"}),_.E("design:type",Boolean)],Vn.prototype,"autoScrollEnabled",void 0);_.x([_.O2("#text"),_.E("design:type",Object)],Vn.prototype,"text",void 0);_.x([_.O2("#expander-icon"),_.E("design:type",Object)],Vn.prototype,"expanderIcon",void 0);
_.x([_.T4("data"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],Vn.prototype,"dataChanged",null);_.x([_.T4("expanded"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],Vn.prototype,"expandedChanged",null);Vn=_.x([_.f({disableElementRegistration:!0,is:"ytd-channel-legal-info-renderer"})],Vn);
_.C(Vn,"ytd-channel-legal-info-renderer",function(){if(EoY!==void 0)return EoY;var S=document.createElement("template");_.h(S,'\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');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);return EoY=S},{mode:1});var mSY;var ooJ=_.Oh("DOWNLOAD",{},"Download"),voL=_.Oh("DOWNLOADING",{},"Downloading"),$ST=_.Oh("DOWNLOADED",{},"Downloaded"),TS=function(){var S=_.w.apply(this,arguments)||this;S.downloadProgress=0;S.isDownloadComplete=!1;S.transferState="TRANSFER_STATE_UNKNOWN";return S};
_.r(TS,_.w);_.M=TS.prototype;_.M.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.M.dataChanged=function(){var S;(S=this.data)!=null&&S.tooltip||(S=_.sc(_.vJ().getState(),this.playlistId),this.updateButtonState(S))};
_.M.computePlaylistId=function(S){return S};
_.M.onTransferStateChanged=function(){this.updateButtonState(this.transferState)};
_.M.updateButtonState=function(S){if(this.data&&(this.data.tooltip!==voL||!_.zf(S))){this.isDownloadComplete=!1;switch(S){case "TRANSFER_STATE_UNKNOWN":S=ooJ;var p="OFFLINE_DOWNLOAD";var U="ACTION_ADD";break;case "TRANSFER_STATE_FAILED":case "TRANSFER_STATE_COMPLETE":S=$ST;p="OFFLINE_PIN";U="ACTION_REMOVE_WITH_PROMPT";this.isDownloadComplete=!0;break;case "TRANSFER_STATE_PRE_TRANSFER":case "TRANSFER_STATE_TRANSFER_IN_QUEUE":case "TRANSFER_STATE_TRANSFERRING":S=voL;p="OFFLINE_DOWNLOADING_ZERO";U="ACTION_REMOVE_WITH_PROMPT";
break;default:S=ooJ,p="OFFLINE_DOWNLOAD",U="ACTION_ADD"}var Y=Object.assign({},this.data);Y.tooltip=S;Y.accessibilityData={accessibilityData:{label:S}};Y.icon={iconType:p};Y.size="SIZE_DEFAULT";_.b(Y.command,_.d8)&&(_.b(Y.command,_.d8).action=U);this.set("data",Y)}};
_.M.updateProgress=function(){if(this.data&&this.transferState!=="TRANSFER_STATE_COMPLETE"){this.isDownloadComplete=!1;var S="OFFLINE_DOWNLOAD";this.downloadProgress>0&&this.downloadProgress<=.1?S="OFFLINE_DOWNLOADING_ZERO":this.downloadProgress>.1&&this.downloadProgress<=.3?S="OFFLINE_DOWNLOADING_TWENTY":this.downloadProgress>.3&&this.downloadProgress<=.5?S="OFFLINE_DOWNLOADING_FORTY":this.downloadProgress>.5&&this.downloadProgress<=.7?S="OFFLINE_DOWNLOADING_SIXTY":this.downloadProgress>.7&&this.downloadProgress<
1?S="OFFLINE_DOWNLOADING_EIGHTY":this.downloadProgress===1&&(S="OFFLINE_PIN",this.isDownloadComplete=!0);var p;S!==((p=this.data.icon)==null?void 0:p.iconType)&&(p=Object.assign({},this.data),p.tooltip=voL,p.accessibilityData={accessibilityData:{label:voL}},p.icon={iconType:S},_.b(p.command,_.d8)&&(_.b(p.command,_.d8).action="ACTION_REMOVE_WITH_PROMPT"),this.set("data",p))}};
TS.prototype.updateProgress=TS.prototype.updateProgress;TS.prototype.onTransferStateChanged=TS.prototype.onTransferStateChanged;TS.prototype.dataChanged=TS.prototype.dataChanged;_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],TS.prototype,"ytRendererBehavior",void 0);_.x([_.F(_.Xh),_.E("design:type",Object)],TS.prototype,"ytdReduxBehavior",void 0);_.x([_.g({value:!1}),_.E("design:type",Boolean)],TS.prototype,"forceIconButton",void 0);
_.x([_.g({value:!0}),_.E("design:type",Boolean)],TS.prototype,"forceIconOnly",void 0);_.x([_.g({value:!1}),_.E("design:type",Boolean)],TS.prototype,"overrides",void 0);_.x([_.g({value:!1}),_.E("design:type",Boolean)],TS.prototype,"buttonTooltipPosition",void 0);_.x([_.g({value:!1}),_.E("design:type",Boolean)],TS.prototype,"styleActionButton",void 0);_.x([_.g({value:!1}),_.E("design:type",Boolean)],TS.prototype,"disableTextTransform",void 0);
_.x([_.g({computed:"computePlaylistId(data.command.offlinePlaylistEndpoint.playlistId)"}),_.E("design:type",String)],TS.prototype,"playlistId",void 0);_.x([_.g(),_.E("design:type",Object)],TS.prototype,"data",void 0);_.x([_.g({selector:_.G1q,selectorArgs:["playlistId"]}),_.E("design:type",Object)],TS.prototype,"downloadProgress",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],TS.prototype,"isDownloadComplete",void 0);
_.x([_.g({selector:_.sc,selectorArgs:["playlistId"]}),_.E("design:type",String)],TS.prototype,"transferState",void 0);_.x([_.g({value:!0}),_.E("design:type",Boolean)],TS.prototype,"showTooltips",void 0);_.x([_.g({value:!0}),_.E("design:type",Boolean)],TS.prototype,"sendCommandWhenDisabled",void 0);_.x([_.g({value:!1}),_.E("design:type",Boolean)],TS.prototype,"disabled",void 0);
_.x([_.z4("data"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],TS.prototype,"dataChanged",null);_.x([_.z4("transferState"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],TS.prototype,"onTransferStateChanged",null);_.x([_.z4("downloadProgress"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],TS.prototype,"updateProgress",null);
TS=_.x([_.f({disableElementRegistration:!0,is:"ytd-download-playlist-button-renderer"})],TS);
_.C(TS,"ytd-download-playlist-button-renderer",function(){if(mSY!==void 0)return mSY;var S=document.createElement("template");_.h(S,'\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>');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);return mSY=S},{mode:1});var ild;_.qm(_.v4t,"thumbnail-overlay-button-view-model",{props:{data:_.x2,lockupExperiments:_.x2}});var WK=function(){var S=_.w.apply(this,arguments)||this;S.isSquare=!1;S.isVertical=!1;return S};
_.r(WK,_.w);WK.prototype.computeIsSquare=function(S){return S!=null&&S.thumbnail?Fbq(S.thumbnail)==="SQUARE":!1};
WK.prototype.computeIsVertical=function(S){return S!=null&&S.thumbnail?Fbq(S.thumbnail)==="VERTICAL":!1};
WK.prototype.configureRendererStamper=function(){return{"data.thumbnailOverlays":{id:"overlays",mapping:{thumbnailOverlayHoverTextRenderer:"ytd-thumbnail-overlay-hover-text-renderer",thumbnailOverlayButtonViewModel:"thumbnail-overlay-button-view-model"}}}};
_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],WK.prototype,"ytRendererBehavior",void 0);_.x([_.F(_.qH.YtRendererstamperBehavior),_.E("design:type",Object)],WK.prototype,"ytRendererstamperBehavior",void 0);_.x([_.g({reflectToAttribute:!0,computed:"computeIsSquare(data)"}),_.E("design:type",Object)],WK.prototype,"isSquare",void 0);_.x([_.g({reflectToAttribute:!0,computed:"computeIsVertical(data)"}),_.E("design:type",Object)],WK.prototype,"isVertical",void 0);
_.x([_.g(),_.E("design:type",Object)],WK.prototype,"data",void 0);WK=_.x([_.f({disableElementRegistration:!0,is:"ytd-hero-playlist-thumbnail-renderer"})],WK);
_.C(WK,"ytd-hero-playlist-thumbnail-renderer",function(){if(ild!==void 0)return ild;var S=document.createElement("template");_.h(S,'\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');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);return ild=S},{mode:1});var O7=function(){var S=_.w.apply(this,arguments)||this;S.isDarkTheme=!1;S.isUltraWide=!1;S.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction","yt-window-resized":"onWindowResize"};return S};
_.r(O7,_.w);_.M=O7.prototype;_.M.attached=function(){this.isDarkTheme=!!document.documentElement.hasAttribute("dark");_.tW();var S;(S=_.tW().resolve(_.AW(_.oG)))!=null&&(S.headerElement=this.hostElement)};
_.M.detached=function(){var S;(S=_.tW().resolve(_.AW(_.oG)))!=null&&(S.headerElement=void 0)};
_.M.onUpdateHeader=function(S){(S=S.detail)&&this.set("data",S)};
_.M.computeTextDisplayed=function(S){if(S)return S.textDisplayed?S.textDisplayed:S.placeholder};
_.M.gradientColorToLinearGradientStop=function(S){var p=this.isDarkTheme?S.darkThemeColor:S.lightThemeColor;return p?_.ev(p)+" "+((S==null?void 0:S.startLocation)||0)*100+"%":"transparent"};
_.M.onWindowResize=function(){var S;((S=this.data)==null?0:S.descriptionForm)?this.editableDescriptionInlineExpander.resize():this.descriptionInlineExpander.resize()};
_.M.onIronResize=function(S){this.isUltraWide=!S.detail.value};
_.M.onDarkModeToggledAction=function(S){this.isDarkTheme=S};
_.M.onUpdatePlaylistName=function(S){var p=this;this.set("data.titleForm.inlineFormRenderer",Object.assign({},S.detail.value));_.oH(this,function(){var U;(U=p.editableTitle)==null||U.resize()})};
_.M.onUpdatePlaylistDescription=function(S){var p=this;this.set("data.descriptionForm.inlineFormRenderer",Object.assign({},S.detail.value));_.oH(this,function(){var U;(U=p.editableDescriptionInlineExpander)==null||U.resize()})};
_.M.getCinematicData=function(S){return _.b(S==null?void 0:S.cinematicContainer,_.jI)};
_.$u.Object.defineProperties(O7.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 S,p=(S=this.getCinematicData(this.data))==null?void 0:S.config;return(S=this.isDarkTheme?p==null?void 0:p.darkThemeBackgroundColor:p==null?void 0:p.lightThemeBackgroundColor)?"background-color:"+_.s1(S)+";":"background-color:transparent;"}},
descriptionFormData:{configurable:!0,enumerable:!0,get:function(){var S;return _.b((S=this.data)==null?void 0:S.descriptionForm,iOs)}},
getDropdownTheme:{configurable:!0,enumerable:!0,get:function(){return this.noCinematicData?"":"WHITE_THEME"}},
gradientStyle:{configurable:!0,enumerable:!0,get:function(){var S=this,p,U,Y;return"background:linear-gradient(to bottom, "+(((Y=(p=this.getCinematicData(this.data))==null?void 0:(U=p.gradientColorConfig)==null?void 0:U.map(function(L){return S.gradientColorToLinearGradientStop(L)}))==null?void 0:Y.join(", "))+");")}},
descriptionTapText:{configurable:!0,enumerable:!0,get:function(){var S;return _.mA((S=this.data)==null?void 0:S.descriptionTapText)}}});
O7.prototype.onUpdateHeader=O7.prototype.onUpdateHeader;_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],O7.prototype,"ytRendererBehavior",void 0);_.x([_.F(_.Aj.YtActionHandlerBehavior),_.E("design:type",Object)],O7.prototype,"actionHandlerBehavior",void 0);_.x([_.O2("#description-inline-expander"),_.E("design:type",Object)],O7.prototype,"descriptionInlineExpander",void 0);
_.x([_.O2("#editable-description-inline-expander"),_.E("design:type",Object)],O7.prototype,"editableDescriptionInlineExpander",void 0);_.x([_.g(),_.E("design:type",Object)],O7.prototype,"data",void 0);_.x([_.g(),_.E("design:type",Object)],O7.prototype,"isUltraWide",void 0);_.x([_.O2("#editable-title-display"),_.E("design:type",Object)],O7.prototype,"editableTitle",void 0);_.x([_.e("isUltraWide"),_.E("design:type",Object),_.E("design:paramtypes",[])],O7.prototype,"maxDescriptionLines",null);
_.x([_.g({reflectToAttribute:!0}),_.e("data"),_.E("design:type",Object),_.E("design:paramtypes",[])],O7.prototype,"noCinematicData",null);_.x([_.Vd("yt-new-playlist-header"),_.E("design:type",Function),_.E("design:paramtypes",[CustomEvent]),_.E("design:returntype")],O7.prototype,"onUpdateHeader",null);_.x([_.e("data","isDarkTheme"),_.E("design:type",Object),_.E("design:paramtypes",[])],O7.prototype,"backgroundStyle",null);
_.x([_.e("data"),_.E("design:type",Object),_.E("design:paramtypes",[])],O7.prototype,"descriptionFormData",null);_.x([_.e("data"),_.E("design:type",Object),_.E("design:paramtypes",[])],O7.prototype,"getDropdownTheme",null);_.x([_.e("data","isDarkTheme"),_.E("design:type",String),_.E("design:paramtypes",[])],O7.prototype,"gradientStyle",null);_.x([_.e("data"),_.E("design:type",Object),_.E("design:paramtypes",[])],O7.prototype,"descriptionTapText",null);
O7=_.x([_.f({is:"ytd-playlist-header-renderer",disableElementRegistration:!0})],O7);
_.C(O7,"ytd-playlist-header-renderer",function(){if(wN5!==void 0)return wN5;var S=document.createElement("template");_.h(S,'\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');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);return wN5=S},{mode:_.UW("kevlar_poly_si_batch_j078")?1:2});var Nfd;var Bf5;var kw=function(){return _.w.apply(this,arguments)||this};
_.r(kw,_.w);kw.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{gridShowRenderer:"ytd-grid-show-renderer"}}}};
_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],kw.prototype,"ytRendererBehavior",void 0);_.x([_.F(_.qH.YtRendererstamperBehavior),_.E("design:type",Object)],kw.prototype,"ytRendererstamperBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],kw.prototype,"data",void 0);kw=_.x([_.f({is:"ytd-playlist-sidebar-tertiary-info-renderer",disableElementRegistration:!0})],kw);
_.C(kw,"ytd-playlist-sidebar-tertiary-info-renderer",function(){if(Bf5!==void 0)return Bf5;var S=document.createElement("template");_.h(S,'\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');
S.content.insertBefore(_.t().content.cloneNode(!0),S.content.firstChild);return Bf5=S},{mode:1});var HK=function(){return _.w.apply(this,arguments)||this};
_.r(HK,_.w);
HK.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}}}}};
HK.prototype.computeUsePremiumShowStyle=function(S){if(!S||!S.items)return!1;for(var p=0;p<S.items.length;p++)if(_.b(S.items[p],XL)){var U=void 0;return((U=_.b(S.items[p],XL))==null?void 0:U.style)==="PLAYLIST_SIDEBAR_PRIMARY_INFO_RENDERER_STYLE_TYPE_SHOW"}return!1};
_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],HK.prototype,"ytRendererBehavior",void 0);_.x([_.F(_.qH.YtRendererstamperBehavior),_.E("design:type",Object)],HK.prototype,"ytRendererstamperBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],HK.prototype,"data",void 0);_.x([_.g({reflectToAttribute:!0,computed:"computeUsePremiumShowStyle(data)"}),_.E("design:type",Boolean)],HK.prototype,"usePremiumShowStyle",void 0);
HK=_.x([_.f({is:"ytd-playlist-sidebar-renderer",disableElementRegistration:!0})],HK);
_.C(HK,"ytd-playlist-sidebar-renderer",function(){if(Nfd!==void 0)return Nfd;var S=document.createElement("template");_.h(S,'\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');S.content.insertBefore(_.t().content.cloneNode(!0),S.content.firstChild);return Nfd=S},{mode:1});var qTo;var ACX;var tfY=function(S,p,U,Y,L,I,V,W){this.minWidth=S;this.minHeight=p;this.recommendedWidth=U;this.recommendedHeight=Y;this.JSC$19482_maxFileSize=L;this.title=I;this.bannerGalleryTitle=V;this.channelId=W;this.picker_=null;S=_.Kge("yt-banner");p=S.addView;U=(new wps("youtubebanner")).addUploadMetadata("silo_id","19");U.opts.ytMaxFileSize=this.JSC$19482_maxFileSize;Y=this.recommendedHeight;U.opts.ytRecWidth=this.recommendedWidth;U.opts.ytRecHeight=Y;p.call(S,U);S.addView(new _.Qt);p=S.addView;U=new _.Qt;
U.opts.type="ytbanner";p.call(S,U.JSC$8079_setLabel(this.bannerGalleryTitle));p=S.setTitle(this.title).setSize(1E3);p.urlParamMap_.set("thumbs","orig");U=this.minWidth;Y=this.minHeight;if(isNaN(U)||isNaN(Y))throw Error("kb`"+U+"`"+Y);p.urlParamMap_.set("minSize",U+"x"+Y);p.urlParamMap_.set("cropMode","ytcb");this.builder_=S};
tfY.prototype.open=function(){var S=this;return new _.O9(function(p,U){_.EYd(S.builder_,function(Y){Y.action=="picked"?p(Y):Y.action=="cancel"&&U(Error("Vl"))});
S.picker_&&S.picker_.dispose();S.picker_=S.builder_.build();S.picker_.setVisible(!0)})};
tfY.prototype.dispose=function(){this.picker_&&(this.picker_.dispose(),this.picker_=null)};var cCo=function(S){this.channelId=S},SJP=function(S,p){var U="";
p.viewToken&&(U=p.viewToken[2].type);var Y=p.docs[0];p=Y.crop;S={channel_id:S.channelId,fife_url:Y.thumbnails[0].url,photo_id:Y.id,is_gallery_image:U=="ytbanner"};p&&(S.crop_top=p.top,S.crop_right=p.right,S.crop_bottom=p.bottom,S.crop_left=p.left);return _.aQq("/channels_profile_ajax?action_update_banner_image=1",{method:"POST",postParams:S})};var D2=function(){var S=_.w.apply(this,arguments)||this;S.ariaLabel=null;return S};
_.r(D2,_.w);_.M=D2.prototype;_.M.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","button");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","0")};
_.M.detached=function(){this.picker&&this.picker.dispose()};
_.M.dataChanged=function(){this.uploader=this.picker=this.message=null};
_.M.computeAriaLabel=function(S){return S};
_.M.onTap=function(){var S=this,p;if((p=this.data)==null||!p.editBannerCommand){this.message=null;!this.picker&&this.data&&(this.picker=new tfY(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 U;(U=this.picker)==null||U.open().then(function(Y){S.handleBannerPicked(Y)},function(){})}};
_.M.handleBannerPicked=function(S){var p=this;this.uploader||(this.uploader=new cCo(this.data.channelId||""));this.message=this.data.uploadingText;SJP(this.uploader,S).then(function(U){p.handleBannerUploadSucceeded(U)},function(U){p.handleBannerUploadFailed(U)})};
_.M.handleBannerUploadSucceeded=function(S){S&&S.errors?this.handleBannerUploadFailed(S):(_.cv(this.hostElement,"yt-banner-updated",S),this.message=null)};
_.M.handleBannerUploadFailed=function(S){this.message=S&&S.errors&&S.errors.length?S.errors[0]:null};
D2.prototype.dataChanged=D2.prototype.dataChanged;_.x([_.F(_.eL.YtComponentBehavior),_.E("design:type",Object)],D2.prototype,"componentBehavior",void 0);_.x([_.F(_.GC),_.E("design:type",Object)],D2.prototype,"ironButtonState",void 0);_.x([_.g(),_.E("design:type",Object)],D2.prototype,"data",void 0);_.x([_.g({reflectToAttribute:!0,readOnly:!0,computed:"computeAriaLabel(data.buttonLabel)"}),_.E("design:type",Object)],D2.prototype,"ariaLabel",void 0);
_.x([_.g(),_.E("design:type",Object)],D2.prototype,"message",void 0);_.x([_.g(),_.E("design:type",Object)],D2.prototype,"picker",void 0);_.x([_.g(),_.E("design:type",Object)],D2.prototype,"uploader",void 0);_.x([_.z4("data"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],D2.prototype,"dataChanged",null);D2=_.x([_.f({is:"ytd-channel-banner-editor-renderer",disableElementRegistration:!0})],D2);
_.C(D2,"ytd-channel-banner-editor-renderer",function(){if(ACX!==void 0)return ACX;var S=document.createElement("template");_.h(S,'\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');
S.content.insertBefore(_.t().content.cloneNode(!0),S.content.firstChild);return ACX=S},{mode:1});var p2L;var Uyq=_.x1(["#"]),zS=function(){return _.w.apply(this,arguments)||this};
_.r(zS,_.w);zS.prototype.computeHrefWithDefault=function(S){return this.ytComponentBehavior.computeHref_(S,!0)||_.rc(Uyq)};
zS.prototype.dataChanged=function(){var S=this.data;S&&S.targetId&&_.GQj(_.Dq(),S.targetId,this.moreIcon)};
zS.prototype.dataChanged=zS.prototype.dataChanged;_.x([_.F(_.eL.YtComponentBehavior),_.E("design:type",Object)],zS.prototype,"ytComponentBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],zS.prototype,"data",void 0);_.x([_.O2("#more-icon"),_.E("design:type",Object)],zS.prototype,"moreIcon",void 0);_.x([_.T4("data"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],zS.prototype,"dataChanged",null);
zS=_.x([_.f({is:"ytd-channel-tagline-renderer",disableElementRegistration:!0})],zS);
_.C(zS,"ytd-channel-tagline-renderer",function(){if(p2L!==void 0)return p2L;var S=document.createElement("template");_.h(S,'\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');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);return p2L=S},{mode:1});var YJq;var Qn=function(){return _.w.apply(this,arguments)||this};
_.r(Qn,_.w);_.M=Qn.prototype;_.M.ready=function(){var S=this;_.tB(this.hostElement).querySelector("#form").addEventListener("submit",function(p){S.onSubmit(p)})};
_.M.onDataChanged=function(){var S;((S=this.data)==null?0:S.selected)&&this.ytdExpandableInputBehavior.setShowInput(!0)};
_.M.onIconButtonKeydown=function(S){S.keyCode===13&&this.iconButton.click()};
_.M.closeOnOutsideClickHandler=function(){this.set("data.expandedText","")};
_.M.openOnClickHandler=function(){this.input.focus()};
_.M.onSubmit=function(S){S.preventDefault();return!1};
_.M.submitOnEnterKeyUp=function(S){var p;if(S.keyCode===13&&((p=this.data)==null?0:p.expandedText)){S=this.data.endpoint;p=_.h9.unsafeClone(S);var U;((U=_.b(p==null?void 0:p.commandMetadata,_.NU))==null?0:U.url)?(_.b(p.commandMetadata,_.NU).url=_.wK(_.b(p.commandMetadata,_.NU).url,"query",this.data.expandedText),_.b(p,_.kM)&&(_.b(p,_.kM).query=this.data.expandedText),_.cv(this.hostElement,"yt-navigate",{endpoint:p,tempData:{disableCache:!0}})):(U=new _.y7("Error: Trying to navigate to an endpoint without url",
S),_.ZP(U))}};
_.M.updateDataExpandedTextFromBinding=function(S){this.set("data.expandedText",S.detail.value)};
_.$u.Object.defineProperties(Qn.prototype,{searchIcon:{configurable:!0,enumerable:!0,get:function(){return _.y("enable_web_delhi_icons")?"search":"yt-icons:search"}}});
Qn.prototype.onDataChanged=Qn.prototype.onDataChanged;_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],Qn.prototype,"ytRendererBehavior",void 0);_.x([_.F(_.efd),_.E("design:type",Object)],Qn.prototype,"ytdExpandableInputBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],Qn.prototype,"data",void 0);_.x([_.O2("#input"),_.E("design:type",Object)],Qn.prototype,"input",void 0);_.x([_.O2("#icon-button"),_.E("design:type",HTMLElement)],Qn.prototype,"iconButton",void 0);
_.x([_.g(),_.E("design:type",String),_.E("design:paramtypes",[])],Qn.prototype,"searchIcon",null);_.x([_.z4("data"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],Qn.prototype,"onDataChanged",null);Qn=_.x([_.f({disableElementRegistration:!0,is:"ytd-expandable-tab-renderer"})],Qn);
var Xpn=_.pz()(Qn,"ytd-expandable-tab-renderer",function(){if(YJq===void 0){var S=document.createElement("template");_.h(S,'\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');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);YJq=S}S=YJq;return S},{allowedProps:["data"],
callbackProps:["onYtNavigate"],mode:1});var LNT;var nn=function(){var S=_.w.apply(this,arguments)||this;S.avatarSize=80;S.ariaLabel=_.Oh("EDIT_AVATAR_LABEL",void 0,"Edit channel icon");return S};
_.r(nn,_.w);nn.prototype.attached=function(){this.hostElement.setAttribute("role","button");this.hostElement.setAttribute("tabindex","0")};
nn.prototype.computeHref=function(S){var p;return((p=_.b(S,_.Cv))==null?0:p.url)?this.componentBehavior.computeHref_(S):null};
nn.prototype.onTap=function(){var S,p;(S=this.data)==null||!S.editAvatarServiceEndpoint||((p=_.b(this.data.editAvatarServiceEndpoint,_.Cv))==null?0:p.url)||_.tW().resolve(_.cQ).resolveCommand(this.data.editAvatarServiceEndpoint,{form:{element:this.hostElement}})};
_.x([_.F(_.GC),_.E("design:type",Object)],nn.prototype,"ironButtonState",void 0);_.x([_.F(_.eL.YtComponentBehavior),_.E("design:type",Object)],nn.prototype,"componentBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],nn.prototype,"data",void 0);_.x([_.g(),_.E("design:type",Object)],nn.prototype,"avatarSize",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",String)],nn.prototype,"ariaLabel",void 0);nn=_.x([_.f({disableElementRegistration:!0,is:"ytd-channel-avatar-editor"})],nn);
_.C(nn,"ytd-channel-avatar-editor",function(){if(LNT!==void 0)return LNT;var S=document.createElement("template");_.h(S,'\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');
S.content.insertBefore(_.t().content.cloneNode(!0),S.content.firstChild);return LNT=S},{mode:1});var MrY=_.$k(function(S){var p=S.data;var U=S.noPadding;var Y=S.enableBanner;var L=S.cinematicContainerTopbarOffset;var I=S.allowCinematicContainerOverflow;var V=S.displayAsSidebar;S=S.className;_.R8(function(){p().tagManagerId&&(_.Jj(p().tagManagerId,_.g7("GL")),uKd(p().tagManagerId))});
var W=_.Ty(ZOs,function(){return p().pageHeaderEntityKey});
return _.H("yt-page-header-renderer",{class:_.VD("page-header-renderer-wiz",S)},_.H(_.yP,{data:function(){var O;return((O=W())==null?0:O.header)?W().header:(V==null?0:V())&&p().sidebarContent?p().sidebarContent:p().content}},{pageHeaderViewModel:function(O){return _.H(_.Iij,{data:O.data,
noPadding:U,enableBanner:Y,cinematicContainerTopbarOffset:L,allowCinematicContainerOverflow:I,displayAsSidebar:function(){return(V==null?void 0:V())&&p().enableSidebarView}})}}))},"Di");
MrY.idomCompat=!0;_.qm(MrY,"yt-page-header-renderer",{props:{data:_.x2,noPadding:_.x2,enableBanner:_.x2,cinematicContainerTopbarOffset:_.x2,allowCinematicContainerOverflow:_.x2,displayAsSidebar:_.x2,className:_.x2}});_.qm(_.LkP,"yt-image-banner-view-model",{props:{data:_.x2,isPositionRelative:_.x2}});_.qm(_.j_Q,"yt-tab-group-shape",{props:{shape:_.x2}});var J$=function(){var S=_.w.apply(this,arguments)||this;S.expandableCustomTabRenderable=function(p){return PmX(p,function(){return void S.onSearchNavigate()})};
S.isRichGrid=!1;S.isConstrainedList=!1;S.richGridMiniMode=!1;S.richGridStyle="RICH_GRID_STYLE_UNKNOWN";S.isRichGridShorts=!1;S.responsiveSizing="COMPACT";S.disableGridStateAware=!1;S.actionMap={"yt-insert-channel-tab-command":"handleInsertTabCommand","ytd-refresh-channel-tab-action":"handleRefreshChannelTabAction","yt-window-resized":"onWindowResize"};return S};
_.r(J$,_.w);_.M=J$.prototype;_.M.computeHeaderDisabled=function(S,p){return p||!S||this.tabsHidden};
_.M.computeTabsHidden=function(){return!this.tabs||this.tabs.length<=1};
_.M.computeIsRichGridShorts=function(S){return S==="RICH_GRID_STYLE_SHORTS_GRID"||S==="RICH_GRID_STYLE_SHORTS_GRID_SLIM"};
_.M.computeImageBannerViewModel=function(){var S,p;return _.b((p=_.b((S=this.data)==null?void 0:S.content,_.$vd))==null?void 0:p.banner,_.xvQ)};
_.M.computeHasCinematicContainer=function(){var S,p;return!((p=_.b((S=this.data)==null?void 0:S.content,_.$vd))==null||!p.background)};
_.M.handleHeaderResize=function(){var S=_.tB(this.hostElement).querySelector("#header");S&&_.cv(S,"iron-resize")};
_.M.handleInsertTabCommand=function(S){var p=_.b(S,pNE);p&&(p.tabIdentifier&&this.ytdTabbedHeaderBehavior.tabs.some(function(U){return U.tabRenderer&&U.tabRenderer.tabIdentifier===p.tabIdentifier})||this.splice("tabs",p.tabIndex||-1,0,p.tab))};
_.M.handleRefreshChannelTabAction=function(S){this.ytdTabbedHeaderBehavior.selected&&this.ytdTabbedHeaderBehavior.tabs[this.ytdTabbedHeaderBehavior.selected].tabRenderer.tabIdentifier===S&&_.cv(this.hostElement,"yt-navigate",{endpoint:this.ytdGuideStateAwareBehavior.activeEndpoint,tempData:{disableCache:!0}})};
_.M.observerRichGridItemsPerRow=function(){this.isRichGrid&&this.richGridItemsPerRow&&_.Ms(this.hostElement,{"--ytd-rich-grid-items-per-row":""+this.richGridItemsPerRow})};
_.M.observerRichGridSlimItemsPerRow=function(){_.Ms(this.hostElement,{"--ytd-rich-grid-slim-items-per-row":""+this.richGridSlimItemsPerRow})};
_.M.updateCssVars=function(){this.richGridItemsPerRow&&_.Ms(this.hostElement,{"--ytd-rich-grid-max-width":this.richGridItemsPerRow*((this.richGridMiniMode?320:_.pA("rich_grid_max_item_width",500))+16)-16+"px"})};
_.M.updateCssVarsForResponsiveGrid=function(){this.richGridContainerWidth&&_.Ms(this.hostElement,{"--ytd-rich-grid-max-width":this.richGridContainerWidth+"px"})};
_.M.onDataChanged=function(){this.handleHeaderResize()};
_.M.onWindowResize=function(){this.handleHeaderResize()};
_.M.onFocusedChanged=function(S){(S=_.mF(S))&&S.is==="tp-yt-paper-tab"&&S.hasRipple()&&(S.getRipple().holdDown=!S.pointerDown&&S.focused)};
_.M.updateSelectedFromBinding=function(S){this.ytdTabbedHeaderBehavior.selected=S.detail.value};
_.M.onSearchNavigate=function(){this.tabsElement.selected=-1};
_.$u.Object.defineProperties(J$.prototype,{tabGroupShape:{configurable:!0,enumerable:!0,get:function(){return this.tabs?{isOverflowHidden:!0,tabs:e9E(this.tabs,this.expandableCustomTabRenderable)}:{}}},
hasBanner:{configurable:!0,enumerable:!0,get:function(){return!!this.imageBannerViewModel}},
hasInsetBanner:{configurable:!0,enumerable:!0,get:function(){var S;return((S=this.imageBannerViewModel)==null?void 0:S.style)==="IMAGE_BANNER_STYLE_INSET"}}});
J$.prototype.onDataChanged=J$.prototype.onDataChanged;J$.prototype.updateCssVarsForResponsiveGrid=J$.prototype.updateCssVarsForResponsiveGrid;J$.prototype.updateCssVars=J$.prototype.updateCssVars;J$.prototype.observerRichGridSlimItemsPerRow=J$.prototype.observerRichGridSlimItemsPerRow;J$.prototype.observerRichGridItemsPerRow=J$.prototype.observerRichGridItemsPerRow;_.x([_.F(_.ej),_.E("design:type",Object)],J$.prototype,"ytdGridStateAwareBehavior",void 0);
_.x([_.F(USn),_.E("design:type",Object)],J$.prototype,"ytdTabbedHeaderBehavior",void 0);_.x([_.F(_.Aj.YtActionHandlerBehavior),_.E("design:type",Object)],J$.prototype,"ytActionHandlerBehavior",void 0);_.x([_.F(_.qH.YtRendererstamperBehavior),_.E("design:type",Object)],J$.prototype,"ytRendererstamperBehavior",void 0);_.x([_.F(_.uc.YtdGuideStateAwareBehavior),_.E("design:type",Object)],J$.prototype,"ytdGuideStateAwareBehavior",void 0);
_.x([_.F(_.Xh),_.E("design:type",Object)],J$.prototype,"ytdReduxBehavior",void 0);_.x([_.O2("#tabs"),_.E("design:type",Object)],J$.prototype,"tabsElement",void 0);_.x([_.g(),_.E("design:type",Array)],J$.prototype,"tabs",void 0);_.x([_.g(),_.E("design:type",Object)],J$.prototype,"expandableCustomTabRenderable",void 0);_.x([_.e("tabs.*"),_.E("design:type",Object),_.E("design:paramtypes",[])],J$.prototype,"tabGroupShape",null);
_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],J$.prototype,"isRichGrid",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],J$.prototype,"isConstrainedList",void 0);_.x([_.g({reflectToAttribute:!0,selector:_.hZ}),_.E("design:type",Object)],J$.prototype,"richGridMiniMode",void 0);_.x([_.g({selector:function(S){return S.ui.richGridStyle}}),
_.E("design:type",Object)],J$.prototype,"richGridStyle",void 0);_.x([_.g({reflectToAttribute:!0,computed:"computeIsRichGridShorts(richGridStyle)"}),_.E("design:type",Object)],J$.prototype,"isRichGridShorts",void 0);_.x([_.g({selector:_.R4}),_.E("design:type",Number)],J$.prototype,"richGridItemsPerRow",void 0);_.x([_.g({selector:function(S){return S.ui.richGridContainerWidth}}),
_.E("design:type",Number)],J$.prototype,"richGridContainerWidth",void 0);_.x([_.g({selector:_.WSu}),_.E("design:type",Number)],J$.prototype,"richGridSlimItemsPerRow",void 0);_.x([_.g(),_.E("design:type",Object)],J$.prototype,"data",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],J$.prototype,"responsiveSizing",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],J$.prototype,"disableGridStateAware",void 0);
_.x([_.g({computed:"computeImageBannerViewModel(data)"}),_.E("design:type",Object)],J$.prototype,"imageBannerViewModel",void 0);_.x([_.g({reflectToAttribute:!0,computed:"computeHasCinematicContainer(data)"}),_.E("design:type",Boolean)],J$.prototype,"hasCinematicContainer",void 0);_.x([_.g({selector:_.JAt,reflectToAttribute:!0}),_.E("design:type",Boolean)],J$.prototype,"guideIsVisibleButNotPersistent",void 0);
_.x([_.g({reflectToAttribute:!0}),_.e("imageBannerViewModel"),_.E("design:type",Object),_.E("design:paramtypes",[])],J$.prototype,"hasBanner",null);_.x([_.g({reflectToAttribute:!0}),_.e("imageBannerViewModel"),_.E("design:type",Object),_.E("design:paramtypes",[])],J$.prototype,"hasInsetBanner",null);_.x([_.g({computed:"computeTabsHidden(tabs)",value:!0}),_.E("design:type",Boolean)],J$.prototype,"tabsHidden",void 0);
_.x([_.T4("richGridItemsPerRow","isRichGrid"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],J$.prototype,"observerRichGridItemsPerRow",null);_.x([_.T4("richGridSlimItemsPerRow"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],J$.prototype,"observerRichGridSlimItemsPerRow",null);
_.x([_.T4("richGridItemsPerRow","richGridMiniMode"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],J$.prototype,"updateCssVars",null);_.x([_.T4("richGridContainerWidth"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],J$.prototype,"updateCssVarsForResponsiveGrid",null);_.x([_.T4("data"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],J$.prototype,"onDataChanged",null);
J$=_.x([_.f({is:"ytd-tabbed-page-header",disableElementRegistration:!0})],J$);
_.C(J$,"ytd-tabbed-page-header",function(){if(qTo!==void 0)return qTo;var S=document.createElement("template");_.h(S,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-tabbed-page-header--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<template is="dom-if" if="[[!tabsHidden]]" class="style-scope ytd-tabbed-page-header">\n  <tp-yt-app-header-layout class="style-scope ytd-tabbed-page-header">\n    <tp-yt-app-header id="header" slot="header" condenses="" disabled="[[computeHeaderDisabled(active, guideIsVisibleButNotPersistent, tabs)]]" effects="parallax-background" effects-config="{&quot;parallax-background&quot;: {&quot;scalar&quot;: 0.5}}" fixed="" class="style-scope ytd-tabbed-page-header">\n      <div id="page-header-container" class="style-scope ytd-tabbed-page-header">\n        <template is="dom-if" if="[[hasBanner]]" class="style-scope ytd-tabbed-page-header">\n          <div id="page-header-banner" class="style-scope ytd-tabbed-page-header">\n            <div id="page-header-banner-sizer" class="style-scope ytd-tabbed-page-header">\n              <yt-image-banner-view-model data="[[imageBannerViewModel]]" class="style-scope ytd-tabbed-page-header">\n              </yt-image-banner-view-model>\n            </div>\n          </div>\n        </template>\n        <div id="page-header" class="style-scope ytd-tabbed-page-header">\n          <yt-page-header-renderer allow-cinematic-container-overflow="" data="[[data]]" disable-upgrade$="[[tabsHidden]]" no-padding="" class="style-scope ytd-tabbed-page-header"></yt-page-header-renderer>\n        </div>\n      </div>\n      <tp-yt-app-toolbar disable-upgrade$="[[tabsHidden]]" sticky="" class="style-scope ytd-tabbed-page-header">\n        <div id="tabs-container" class="style-scope ytd-tabbed-page-header">\n          \n          <div id="tabs-inner-container" class="style-scope ytd-tabbed-page-header">\n            <div id="tabs-divider" class="style-scope ytd-tabbed-page-header"></div>\n            <tp-yt-paper-tabs id="tabs" disable-upgrade$="[[tabsHidden]]" noink="" remove-idle-scroll-buttons="" scrollable="" selected="[[selected]]" on-iron-activate="onTabsActivate" on-selected-changed="updateSelectedFromBinding" class="style-scope ytd-tabbed-page-header">\n              <yt-tab-group-shape shape="[[tabGroupShape]]" class="style-scope ytd-tabbed-page-header"> </yt-tab-group-shape>\n            </tp-yt-paper-tabs>\n          </div>\n        </div>\n      </tp-yt-app-toolbar>\n    </tp-yt-app-header>\n  </tp-yt-app-header-layout>\n</template>\n<template is="dom-if" if="[[tabsHidden]]" class="style-scope ytd-tabbed-page-header">\n  <div id="page-header-container" class="style-scope ytd-tabbed-page-header">\n    <template is="dom-if" if="[[hasBanner]]" class="style-scope ytd-tabbed-page-header">\n      <div id="page-header-banner" class="style-scope ytd-tabbed-page-header">\n        <div id="page-header-banner-sizer" class="style-scope ytd-tabbed-page-header">\n          <yt-image-banner-view-model data="[[imageBannerViewModel]]" class="style-scope ytd-tabbed-page-header"> </yt-image-banner-view-model>\n        </div>\n      </div>\n    </template>\n    <div id="page-header" class="style-scope ytd-tabbed-page-header">\n      <yt-page-header-renderer allow-cinematic-container-overflow="" data="[[data]]" disable-upgrade$="[[!tabsHidden]]" no-padding="true" class="style-scope ytd-tabbed-page-header"></yt-page-header-renderer>\n    </div>\n  </div>\n</template>\n');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);return qTo=S},{mode:1});var I8L;var yn=function(){return _.w.apply(this,arguments)||this};
_.r(yn,_.w);yn.prototype.observerRichGridItemsPerRow=function(){this.richGridItemsPerRow&&_.Ms(this.hostElement,{"--ytd-rich-grid-items-per-row":""+this.richGridItemsPerRow})};
_.$u.Object.defineProperties(yn.prototype,{badgeIconName:{configurable:!0,enumerable:!0,get:function(){var S,p;return this.componentBehavior.computeIcon_(((p=_.b((S=this.data)==null?void 0:S.badge,_.uUt))==null?void 0:p.icon)||null)}},
badgeLabel:{configurable:!0,enumerable:!0,get:function(){var S,p;return(p=_.b((S=this.data)==null?void 0:S.badge,_.uUt))==null?void 0:p.label}}});
yn.prototype.observerRichGridItemsPerRow=yn.prototype.observerRichGridItemsPerRow;_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],yn.prototype,"ytRendererBehavior",void 0);_.x([_.F(_.eL.YtComponentBehavior),_.E("design:type",Object)],yn.prototype,"componentBehavior",void 0);_.x([_.F(_.Xh),_.E("design:type",Object)],yn.prototype,"ytdReduxBehavior",void 0);_.x([_.g({reflectToAttribute:!0,selector:_.hZ}),_.E("design:type",Boolean)],yn.prototype,"richGridMiniMode",void 0);
_.x([_.g({selector:_.R4}),_.E("design:type",Number)],yn.prototype,"richGridItemsPerRow",void 0);_.x([_.g(),_.E("design:type",Object)],yn.prototype,"data",void 0);_.x([_.T4("richGridItemsPerRow"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],yn.prototype,"observerRichGridItemsPerRow",null);_.x([_.e("data"),_.E("design:type",Object),_.E("design:paramtypes",[])],yn.prototype,"badgeIconName",null);
_.x([_.e("data"),_.E("design:type",Object),_.E("design:paramtypes",[])],yn.prototype,"badgeLabel",null);yn=_.x([_.f({is:"ytd-member-hub-profile-renderer",disableElementRegistration:!0})],yn);
_.C(yn,"ytd-member-hub-profile-renderer",function(){if(I8L!==void 0)return I8L;var S=document.createElement("template");_.h(S,'\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');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);return I8L=S},{mode:1});var dyY;var Kn=function(){return _.w.apply(this,arguments)||this};
_.r(Kn,_.w);Kn.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{compactLinkRenderer:{component:"ytd-compact-link-renderer",noInjection:!0}}}}};
_.x([_.F(_.qH.YtRendererstamperBehavior),_.E("design:type",Object)],Kn.prototype,"ytRendererstamperBehavior",void 0);_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],Kn.prototype,"ytRendererBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],Kn.prototype,"data",void 0);Kn=_.x([_.f({is:"ytd-settings-sidebar-renderer",disableElementRegistration:!0})],Kn);
_.C(Kn,"ytd-settings-sidebar-renderer",function(){if(dyY!==void 0)return dyY;var S=document.createElement("template");_.h(S,'\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');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);return dyY=S},{mode:1});var Vro;var bU=function(){var S=_.w.apply(this,arguments)||this;S.expandableCustomTabRenderable=function(p){return PmX(p,function(){return void S.onSearchNavigate()})};
return S};
_.r(bU,_.w);bU.prototype.configureRendererStamper=function(){return{"data.subscribeButton":{id:"subscribe-button",mapping:{buttonRenderer:"ytd-button-renderer",subscribeButtonRenderer:"ytd-subscribe-button-renderer"}}}};
bU.prototype.onSearchNavigate=function(){this.selected=void 0};
bU.prototype.onTabsChange=function(){var S,p=(S=this.tabs)==null?void 0:S.findIndex(function(U){var Y;return U==null?void 0:(Y=U.tabRenderer)==null?void 0:Y.selected});
p!==void 0&&(this.selected=p)};
bU.prototype.onTabsActive=function(S){if(this.tabs!==void 0){var p,U;(S=(p=this.tabs[S.detail.selected])==null?void 0:(U=p.tabRenderer)==null?void 0:U.endpoint)&&_.cv(this.hostElement,"yt-navigate",{endpoint:S})}};
_.$u.Object.defineProperties(bU.prototype,{tabGroupShape:{configurable:!0,enumerable:!0,get:function(){return this.tabs?{isOverflowHidden:!0,tabs:e9E(this.tabs,this.expandableCustomTabRenderable)}:{}}},
tabsEnabled:{configurable:!0,enumerable:!0,get:function(){return this.tabs!==void 0&&this.tabs.length>1}}});
bU.prototype.onTabsChange=bU.prototype.onTabsChange;_.x([_.F(_.qH.YtRendererstamperBehavior),_.E("design:type",Object)],bU.prototype,"ytRendererstamperBehavior",void 0);_.x([_.F(_.ej),_.E("design:type",Object)],bU.prototype,"ytdGridStateAwareBehavior",void 0);_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],bU.prototype,"ytRendererBehavior",void 0);_.x([_.F(_.uc.YtdGuideStateAwareBehavior),_.E("design:type",Object)],bU.prototype,"ytdGuideStateAwareBehavior",void 0);
_.x([_.g(),_.E("design:type",Object)],bU.prototype,"data",void 0);_.x([_.g(),_.E("design:type",Array)],bU.prototype,"tabs",void 0);_.x([_.g(),_.E("design:type",Number)],bU.prototype,"selected",void 0);_.x([_.e("tabs.*"),_.E("design:type",Object),_.E("design:paramtypes",[])],bU.prototype,"tabGroupShape",null);_.x([_.g(),_.E("design:type",Object)],bU.prototype,"expandableCustomTabRenderable",void 0);
_.x([_.e("tabs"),_.E("design:type",Boolean),_.E("design:paramtypes",[])],bU.prototype,"tabsEnabled",null);_.x([_.z4("tabs"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],bU.prototype,"onTabsChange",null);bU=_.x([_.f({is:"ytd-topic-channel-details-renderer",disableElementRegistration:!0})],bU);
_.C(bU,"ytd-topic-channel-details-renderer",function(){if(Vro!==void 0)return Vro;var S=document.createElement("template");_.h(S,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-topic-channel-details-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-topic-channel-details-renderer">\n  <div id="channel-header-container" class="style-scope ytd-topic-channel-details-renderer">\n    <a class="yt-simple-endpoint style-scope ytd-topic-channel-details-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n      <yt-img-shadow id="avatar" thumbnail="[[data.avatar]]" width="80" class="style-scope ytd-topic-channel-details-renderer"> </yt-img-shadow>\n      <div id="inner-header-container" class="style-scope ytd-topic-channel-details-renderer">\n        <h1 class="style-scope ytd-topic-channel-details-renderer">\n          <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-topic-channel-details-renderer"> </yt-formatted-string>\n        </h1>\n        <yt-formatted-string id="subtitle" text="[[data.subtitle]]" class="style-scope ytd-topic-channel-details-renderer"> </yt-formatted-string>\n      </div>\n    </a>\n    <div id="subscribe-button" class="style-scope ytd-topic-channel-details-renderer"></div>\n  </div>\n  <div id="tabs-container" hidden="[[!tabsEnabled]]" class="style-scope ytd-topic-channel-details-renderer">\n    <div id="tabs-inner-container" class="style-scope ytd-topic-channel-details-renderer">\n      <tp-yt-paper-tabs id="tabs" noink="" remove-idle-scroll-buttons="true" scrollable="" selected="[[selected]]" on-iron-activate="onTabsActive" class="style-scope ytd-topic-channel-details-renderer">\n        <yt-tab-group-shape shape="[[tabGroupShape]]" class="style-scope ytd-topic-channel-details-renderer"> </yt-tab-group-shape>\n      </tp-yt-paper-tabs>\n    </div>\n  </div>\n</div>\n');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);return Vro=S},{mode:1});var TFi;var jG=function(){var S=_.w.apply(this,arguments)||this;S.disableGridStateAware=!1;return S};
_.r(jG,_.w);jG.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]]"}}}}}};
jG.prototype.activeChanged=function(){this.carousel&&(this.carousel.active=this.active)};
jG.prototype.updateCssVars=function(){_.Ms(this.hostElement,{"--ytd-rich-grid-max-width":this.richGridItemsPerRow*((this.richGridMiniMode?320:_.pA("rich_grid_max_item_width",500))+16)-16+"px"})};
jG.prototype.updateCssVars=jG.prototype.updateCssVars;jG.prototype.activeChanged=jG.prototype.activeChanged;_.x([_.F(_.uc.YtdGuideStateAwareBehavior),_.E("design:type",Object)],jG.prototype,"ytdGuideStateAwareBehavior",void 0);_.x([_.F(_.Xh),_.E("design:type",Object)],jG.prototype,"ytdReduxBehavior",void 0);_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],jG.prototype,"ytRendererBehavior",void 0);
_.x([_.F(_.qH.YtRendererstamperBehavior),_.E("design:type",Object)],jG.prototype,"ytRendererstamperBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],jG.prototype,"data",void 0);_.x([_.g(),_.E("design:type",Array)],jG.prototype,"tabs",void 0);_.x([_.g(),_.E("design:type",Boolean)],jG.prototype,"active",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],jG.prototype,"disableGridStateAware",void 0);
_.x([_.g({selector:_.R4}),_.E("design:type",Number)],jG.prototype,"richGridItemsPerRow",void 0);_.x([_.g({selector:_.hZ}),_.E("design:type",Boolean)],jG.prototype,"richGridMiniMode",void 0);_.x([_.O2("ytd-carousel-item-renderer"),_.E("design:type",Object)],jG.prototype,"carousel",void 0);_.x([_.T4("active"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],jG.prototype,"activeChanged",null);
_.x([_.T4("richGridItemsPerRow","richGridMiniMode"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],jG.prototype,"updateCssVars",null);jG=_.x([_.f({disableElementRegistration:!0,is:"ytd-carousel-header-renderer"})],jG);
_.C(jG,"ytd-carousel-header-renderer",function(){if(TFi!==void 0)return TFi;var S=document.createElement("template");_.h(S,'\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');S.content.insertBefore(_.t().content.cloneNode(!0),S.content.firstChild);return TFi=S},{mode:1});var WNX;var OiJ=_.x1(["https://www.google-analytics.com/analytics.js"]),rj=function(){var S=_.w.apply(this,arguments)||this;S.scriptAnalyticsAdded=!1;return S};
_.r(rj,_.w);rj.prototype.dataChanged=function(){this.data&&this.data.analyticsId&&this.sendGoogleAnalyticsPageview(this.data.analyticsId);var S,p=(S=this.data)==null?void 0:S.tagManagerId;p&&(_.Jj(p,_.g7("GL")),uKd(p))};
rj.prototype.sendGoogleAnalyticsPageview=function(S){this.scriptAnalyticsAdded||this.appendAnalyticsScript();window.ga=window.ga||function(){var U=_.jO.apply(0,arguments);(window.ga.q=window.ga.q||[]).push(U)};
var p=window.ga;p("set","page",window.location.pathname);p.l=+new Date;p("set","forceSSL",!0);p("create",S,"'auto'");p("send","pageview")};
rj.prototype.appendAnalyticsScript=function(){this.scriptAnalyticsAdded=!0;var S=_.JY("SCRIPT");S.name="ga-analytics";var p=_.UF(OiJ);_.fh(S,p);S.async=!0;_.tB(this.hostElement).appendChild(S)};
rj.prototype.dataChanged=rj.prototype.dataChanged;_.x([_.g(),_.E("design:type",Object)],rj.prototype,"data",void 0);_.x([_.T4("data"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],rj.prototype,"dataChanged",null);rj=_.x([_.f({disableElementRegistration:!0,is:"ytd-channel-metadata-renderer"})],rj);
_.C(rj,"ytd-channel-metadata-renderer",function(){if(WNX!==void 0)return WNX;var S=document.createElement("template");_.h(S,'\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');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);return WNX=S},{mode:1});var kad;var Hit;var GS=function(){return _.w.apply(this,arguments)||this};
_.r(GS,_.w);_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],GS.prototype,"ytRendererBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],GS.prototype,"data",void 0);GS=_.x([_.f({is:"ytd-sub-feed-option-renderer",disableElementRegistration:!0})],GS);
_.C(GS,"ytd-sub-feed-option-renderer",function(){if(Hit!==void 0)return Hit;var S=document.createElement("template");_.h(S,'\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');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);return Hit=S},{mode:1});var Dyd;var h$=function(){return _.w.apply(this,arguments)||this};
_.r(h$,_.w);h$.prototype.configureRendererStamper=function(){return{"data.options":{id:"options",mapping:{subFeedOptionRenderer:{component:"ytd-sub-feed-option-renderer",noInjection:!0}}}}};
_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],h$.prototype,"ytRendererBehavior",void 0);_.x([_.F(_.qH.YtRendererstamperBehavior),_.E("design:type",Object)],h$.prototype,"ytRendererStamperBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],h$.prototype,"data",void 0);h$=_.x([_.f({is:"ytd-sub-feed-selector-renderer",disableElementRegistration:!0})],h$);
_.C(h$,"ytd-sub-feed-selector-renderer",function(){if(Dyd!==void 0)return Dyd;var S=document.createElement("template");_.h(S,'\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');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);return Dyd=S},{mode:1});var R7=function(){return _.w.apply(this,arguments)||this};
_.r(R7,_.w);
R7.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}}}}};
_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],R7.prototype,"ytRendererBehavior",void 0);_.x([_.F(_.qH.YtRendererstamperBehavior),_.E("design:type",Object)],R7.prototype,"ytRendererstamperBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],R7.prototype,"data",void 0);R7=_.x([_.f({is:"ytd-browse-feed-actions-renderer",disableElementRegistration:!0})],R7);
_.C(R7,"ytd-browse-feed-actions-renderer",function(){if(kad!==void 0)return kad;var S=document.createElement("template");_.h(S,'\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');S.content.insertBefore(_.t().content.cloneNode(!0),S.content.firstChild);return kad=S},{mode:1});var zVY;var Q$5;var F_=function(){return _.w.apply(this,arguments)||this};
_.r(F_,_.w);F_.prototype.configureRendererStamper=function(){return{"data.subscribeButton":{id:"subscribe",mapping:{subscribeButtonRenderer:"ytd-subscribe-button-renderer",buttonRenderer:"ytd-button-renderer"}}}};
_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],F_.prototype,"ytRendererBehavior",void 0);_.x([_.F(_.qH.YtRendererstamperBehavior),_.E("design:type",Object)],F_.prototype,"ytRendererstamperBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],F_.prototype,"data",void 0);F_=_.x([_.f({is:"ytd-mini-channel-renderer",disableElementRegistration:!0})],F_);
_.C(F_,"ytd-mini-channel-renderer",function(){if(Q$5!==void 0)return Q$5;var S=document.createElement("template");_.h(S,'\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');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);return Q$5=S},{mode:1});var n35;var X_=function(){return _.w.apply(this,arguments)||this};
_.r(X_,_.w);X_.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{miniChannelRenderer:"ytd-mini-channel-renderer"}}}};
_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],X_.prototype,"ytRendererBehavior",void 0);_.x([_.F(_.qH.YtRendererstamperBehavior),_.E("design:type",Object)],X_.prototype,"ytRendererstamperBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],X_.prototype,"data",void 0);X_=_.x([_.f({disableElementRegistration:!0,is:"ytd-vertical-channel-section-renderer"})],X_);
_.C(X_,"ytd-vertical-channel-section-renderer",function(){if(n35!==void 0)return n35;var S=document.createElement("template");_.h(S,'\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');
S.content.insertBefore(_.t().content.cloneNode(!0),S.content.firstChild);return n35=S},{mode:1});var PK=function(){return _.w.apply(this,arguments)||this};
_.r(PK,_.w);PK.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{verticalChannelSectionRenderer:{component:"ytd-vertical-channel-section-renderer",noInjection:!0}}}}};
_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],PK.prototype,"ytRendererBehavior",void 0);_.x([_.F(_.qH.YtRendererstamperBehavior),_.E("design:type",Object)],PK.prototype,"ytRendererstamperBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],PK.prototype,"data",void 0);PK=_.x([_.f({is:"ytd-browse-secondary-contents-renderer",disableElementRegistration:!0})],PK);
_.C(PK,"ytd-browse-secondary-contents-renderer",function(){if(zVY!==void 0)return zVY;var S=document.createElement("template");_.h(S,'\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>');S.content.insertBefore(_.t().content.cloneNode(!0),S.content.firstChild);
return zVY=S},{mode:1});var JM5;var Z2=function(){var S=_.w.apply(this,arguments)||this;S.actionMap={"yt-replace-feed-content-action":"onReplaceFeedContentAction"};S.notActive=!1;S.isConstrainedList=!1;return S};
_.r(Z2,_.w);_.M=Z2.prototype;
_.M.configureRendererStamper=function(){return{content:{id:"primary",mapping:{richGridRenderer:{component:"ytd-rich-grid-renderer"},sectionListRenderer:{component:"ytd-section-list-renderer",properties:{initialCount:"[[initialCount]]",pageSubtype:"[[pageSubtype]]",isConstrainedList:"[[isConstrainedList]]",responsiveSizing:"[[responsiveSizing]]"},matcher:function(S){var p;return(S==null?void 0:(p=S.webComponentHint)==null?void 0:p.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}}}}};
_.M.getPath=function(S,p){var U="data.tabs.#"+p+".";S.tabs[p].tabRenderer?U+="tabRenderer.":S.tabs[p].expandableTabRenderer&&(U+="expandableTabRenderer.");return U+"content.sectionListRenderer"};
_.M.computeDisplayedContent=function(S){this.unlinkPaths("content");if(S&&S.tabs)for(var p=S.tabs.length,U=0;U<p;U++){var Y=S.tabs[U].tabRenderer||S.tabs[U].expandableTabRenderer;if(Y.selected&&Y.content)return this.linkPaths("content",this.getPath(S,U)),Y.content}return null};
_.M.computeHasSecondaryColumnData=function(S){return!!S&&!!S.secondaryContents};
_.M.onRetrieveLocation=function(S,p){p.locationRetrieved(p.hasComments?"/comment_service_ajax?action_get_comments=1&pbj=1":"/browse_ajax",void 0);S.stopPropagation()};
_.M.onYtServiceRequestSent=function(S,p){_.y("replace_feed_content_action_killswitch")&&this.handleServiceRequestActions(p)};
_.M.onYtServiceRequestCompleted=function(S,p){_.y("replace_feed_content_action_killswitch")&&this.handleServiceRequestActions(p)};
_.M.onReplaceFeedContentAction=function(S){if(!_.y("replace_feed_content_action_killswitch")&&!this.notActive){var p;(S=(p=_.b(S,o4o))==null?void 0:p.items)&&this.listRenderer&&this.listRenderer.replacePrimaryContent(S)}};
_.M.handleServiceRequestActions=function(S){if(S=S.actions){S=_.d(S);for(var p=S.next();!p.done;p=S.next()){p=p.value;var U=void 0;((U=_.b(p,o4o))==null?0:U.items)&&this.listRenderer&&this.listRenderer.replacePrimaryContent(_.b(p,o4o).items)}}};
Z2.prototype.onYtServiceRequestCompleted=Z2.prototype.onYtServiceRequestCompleted;Z2.prototype.onYtServiceRequestSent=Z2.prototype.onYtServiceRequestSent;Z2.prototype.onRetrieveLocation=Z2.prototype.onRetrieveLocation;_.x([_.F(_.ej),_.E("design:type",Object)],Z2.prototype,"ytdGridStateAwareBehavior",void 0);_.x([_.F(_.qH.YtRendererstamperBehavior),_.E("design:type",Object)],Z2.prototype,"ytRendererstamperBehavior",void 0);
_.x([_.F(_.Aj.YtActionHandlerBehavior),_.E("design:type",Object)],Z2.prototype,"ytActionHandlerBehavior",void 0);_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],Z2.prototype,"ytRendererBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],Z2.prototype,"data",void 0);_.x([_.g({computed:"computeDisplayedContent(data)"}),_.E("design:type",Object)],Z2.prototype,"content",void 0);
_.x([_.g({computed:"computeHasSecondaryColumnData(data)",reflectToAttribute:!0}),_.E("design:type",Boolean)],Z2.prototype,"hasSecondaryColumnData",void 0);_.x([_.g({value:function(){return window.outerHeight>1024?3:2}}),
_.E("design:type",Number)],Z2.prototype,"initialCount",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",String)],Z2.prototype,"pageSubtype",void 0);_.x([_.O2("ytd-section-list-renderer"),_.E("design:type",Object)],Z2.prototype,"listRenderer",void 0);_.x([_.g(),_.E("design:type",Object)],Z2.prototype,"notActive",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],Z2.prototype,"isConstrainedList",void 0);
_.x([_.g(),_.E("design:type",String)],Z2.prototype,"responsiveSizing",void 0);_.x([_.Vd("yt-retrieve-location"),_.E("design:type",Function),_.E("design:paramtypes",[CustomEvent,Object]),_.E("design:returntype")],Z2.prototype,"onRetrieveLocation",null);_.x([_.Vd("yt-service-request-sent"),_.E("design:type",Function),_.E("design:paramtypes",[CustomEvent,_.eM]),_.E("design:returntype")],Z2.prototype,"onYtServiceRequestSent",null);
_.x([_.Vd("yt-service-request-completed"),_.E("design:type",Function),_.E("design:paramtypes",[CustomEvent,_.xL]),_.E("design:returntype")],Z2.prototype,"onYtServiceRequestCompleted",null);Z2=_.x([_.f({disableElementRegistration:!0,is:"ytd-two-column-browse-results-renderer"})],Z2);
_.C(Z2,"ytd-two-column-browse-results-renderer",function(){if(JM5!==void 0)return JM5;var S=document.createElement("template");_.h(S,'\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');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);return JM5=S},{mode:2});var yMo;var KNE;var s7=function(){var S=_.w.apply(this,arguments)||this;S.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"]);S.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"]);S.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction"};
return S};
_.r(s7,_.w);_.M=s7.prototype;_.M.attached=function(){this.requestElementsPerRow()};
_.M.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_]]"}}}}}};
_.M.onUpdateElementsPerRowAction=function(S){S&&this.elementsPerRow!==S&&(this.elementsPerRow=S)};
_.M.dismissButtonTap_=function(){this.set("data.isVisible",!this.closeOnDismissButton.has(this.data.dismissStrategy||"ALERT_WITH_ACTIONS_DISMISS_STRATEGY_UNKNOWN"))};
_.M.acceptButtonTap_=function(){this.set("data.isVisible",!this.closeOnAcceptButton.has(this.data.dismissStrategy||"ALERT_WITH_ACTIONS_DISMISS_STRATEGY_UNKNOWN"))};
_.M.computeAlertStyle_=function(S){return S};
_.M.observerElementsPerRow=function(){this.elementsPerRow&&_.Ms(this.hostElement,{"--ytd-rich-grid-items-per-row":""+this.elementsPerRow})};
_.M.onIsVisibleChanged_=function(){this.data&&!this.data.isVisible&&this.ytRendererBehavior.impressionLog()};
_.M.requestElementsPerRow=function(){_.cv(this.hostElement,"yt-request-elements-per-row")};
s7.prototype.onIsVisibleChanged_=s7.prototype.onIsVisibleChanged_;s7.prototype.observerElementsPerRow=s7.prototype.observerElementsPerRow;_.x([_.F(_.qH.YtRendererstamperBehavior),_.E("design:type",Object)],s7.prototype,"ytRendererstamperBehavior",void 0);_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],s7.prototype,"ytRendererBehavior",void 0);_.x([_.F(_.Aj.YtActionHandlerBehavior),_.E("design:type",Object)],s7.prototype,"actionHandlerBehavior",void 0);
_.x([_.g(),_.E("design:type",Object)],s7.prototype,"data",void 0);_.x([_.g({value:6,reflectToAttribute:!0}),_.E("design:type",Number)],s7.prototype,"elementsPerRow",void 0);_.x([_.g({value:!1,reflectToAttribute:!0}),_.E("design:type",Boolean)],s7.prototype,"wrapButtons",void 0);_.x([_.g({value:_.g7("INNERTUBE_CLIENT_NAME")==="WEB_REMIX",reflectToAttribute:!0}),_.E("design:type",Boolean)],s7.prototype,"isMusic",void 0);
_.x([_.g({reflectToAttribute:!0,computed:"computeAlertStyle_(data.alertType.type)"}),_.E("design:type",String)],s7.prototype,"alertStyle",void 0);_.x([_.g({value:function(){return this.dismissButtonTap_.bind(this)}}),
_.E("design:type",Function)],s7.prototype,"dismissBoundButtonTap_",void 0);_.x([_.g({value:function(){return this.acceptButtonTap_.bind(this)}}),
_.E("design:type",Function)],s7.prototype,"acceptBoundButtonTap_",void 0);_.x([_.T4("elementsPerRow"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],s7.prototype,"observerElementsPerRow",null);_.x([_.T4("data.isVisible"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],s7.prototype,"onIsVisibleChanged_",null);s7=_.x([_.FB({is:"yt-alert-with-actions-renderer",disableElementRegistration:!0})],s7);
_.C(s7,"yt-alert-with-actions-renderer",function(){if(KNE===void 0){var S=document.createElement("template");_.h(S,'\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');
S.content.insertBefore(_.t().content.cloneNode(!0),S.content.firstChild);var p=S.content,U=p.insertBefore;yMo===void 0&&(yMo=document.createElement("template"));var Y=yMo;U.call(p,Y.content.cloneNode(!0),S.content.firstChild);KNE=S}S=KNE;return S},{mode:2});_.qm(_.$k(function(S){function p(J){var K={};return _.H(_.i6,{text:J,className:_.VD("ytPersonalGreetingViewModelHeadline",(K.ytPersonalGreetingViewModelHeadlineSmall=function(){return W()===48},K))})}
function U(J,K){return _.H("span",{el:J,class:"ytPersonalGreetingViewModelHeadlineInvisible","aria-hidden":"true"},p(K))}
var Y=_.vH(),L=_.vH(),I=_.vH(),V=function(){return S.data().canvasPromoData},W=function(){var J;
return(J=S.data().bannerHeight)!=null?J:56},O=_.Die(Y,{throttleMs:100}),D=_.Die(L,{throttleMs:100}),z=_.Die(I,{throttleMs:100}),Q=function(){return D.width()-O.width()>1};
_.C6(Y,function(){var J;return(J=S.data())==null?void 0:J.rendererContext},void 0,void 0,void 0,!0);
return _.H("yt-personal-greeting-view-model",{el:Y,"aria-hidden":Q,class:_.VD(S.className,"ytPersonalGreetingViewModelHost"),style:_.zw({height:(0,_.rq)(function(){return Q()?0:W()})})},_.H(_.n,{cond:function(){return S.data().avatar&&!(z.width()+(S.data().avatar?48:0)-O.width()>1)},
then:function(){return _.H(_.yP,{data:function(){return S.data().avatar}},{decoratedAvatarViewModel:function(J){return _.H(_.jH,{data:J.data,
className:_.VD("ytPersonalGreetingViewModelAvatar")})}})}}),_.H("h1",null,p(function(){var J;
return(V==null?void 0:(J=V())==null?void 0:J.headline)||(z.width()+(S.data().avatar?48:0)-O.width()>1?S.data().shorterGreeting:S.data().greeting)})),U(I,function(){return S.data().greeting}),U(L,function(){return S.data().shorterGreeting}))},"Ei"),"yt-personal-greeting-view-model",{props:{data:_.x2,
className:_.x2}});var eG=function(){var S=_.w.apply(this,arguments)||this;S.hidden=!1;S.isConstrainedList=!1;S.darkerDarkTheme=_.y("web_darker_dark_theme");S.responsiveSizing="COMPACT";S.attachedPlayers=_.y("kevlar_channel_trailer_multi_attach")?[]:void 0;S.player=null;S.actionMap={"yt-alert-command":"handleAlertCommand","yt-playlist-deletion-redirect-command":"handleYtPlaylistDeletionRedirect"};return S};
_.r(eG,_.w);_.M=eG.prototype;
_.M.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}}}}};
_.M.created=function(){var S=this;this.ytRendererBehavior.monitorScroll=!0;this.ytPageBehavior.pageDisposeJobs=[function(){S.disposeMastheadAd()}]};
_.M.attached=function(){this.pageSubtype==="home"&&this.refresh&&this.contents&&(this.refreshGesture=new MfY(this.refresh,this.contents))};
_.M.detached=function(){this.tabGestures&&(this.tabGestures.detach(),this.tabGestures=void 0);this.refreshGesture&&(this.refreshGesture.detach(),this.refreshGesture=void 0)};
_.M.activeChanged=function(){var S=this.ytPageBehavior.active;this.header&&this.header.firstChild&&(this.header.firstChild.active=S)};
_.M.tabsChanged=function(){var S=this,p,U;if(this.pageSubtype==="channels"||_.y("kevlar_tab_gestures_for_tabbed_header_data")&&((p=this.data)==null?0:(U=p.header)==null?0:U.carouselHeaderRenderer))this.tabGestures=new ZU(this.contents,this.contents,this.hostElement,this.header,function(V){S.ytdReduxBehavior.dispatch(V)});
var Y,L,I;p=(Y=this.data)==null?void 0:(L=Y.contents)==null?void 0:(I=L.twoColumnBrowseResultsRenderer)==null?void 0:I.tabs;this.tabGestures&&this.tabGestures.tabsChanged(p)};
_.M.scrollAtTopChanged=function(){this.refreshGesture&&(this.scrollAtTop?this.refreshGesture.attach():this.refreshGesture.detach())};
_.M.engagementPanelsChanged=function(){var S=_.tW().resolve(_.y6);if(S){if(this.engagementPanels)for(var p=_.d(this.engagementPanels),U=p.next();!U.done;U=p.next()){var Y=void 0;(U=(Y=U.value.identifier)==null?void 0:Y.tag)&&S.panelMap.delete(U)}this.engagementPanels=[];var L;p=_.d(((L=this.data)==null?void 0:L.panels)||[]);for(L=p.next();!L.done;L=p.next()){L=_.b(L.value,_.a_L);var I=U=void 0,V=void 0,W=void 0;if(Y=((U=L)==null?void 0:U.targetId)||((I=L)==null?void 0:I.panelIdentifier)||((V=L)==
null?void 0:(W=V.identifier)==null?void 0:W.tag))I=U=void 0,(I=(U=S).registerPanelContent)==null||I.call(U,Y,{engagementPanelSectionListRenderer:L}),this.engagementPanels.push(L)}}};
_.M.onStampFinished=function(){var S=this;_.oH(this,function(){if(S.tabGestures){var p=S.tabGestures;if(p.scrollPositionNeedsUpdate){var U=_.tW().resolve(_.AW(_.oy)),Y;if((Y=p.selectedTab)!=null&&Y.title&&U&&(Y=U.getCurrentPage())){if(p.scrollPositionForTabs.has(p.selectedTab.title)){var L,I;U=(I=(L=U.getCurrentPage())==null?void 0:L.clientHeight)!=null?I:0;L=p.scrollPositionForTabs.get(p.selectedTab.title);Y.setScrollTop(L);U>L+100&&(p.scrollPositionNeedsUpdate=!1)}else Y.setScrollTop(Math.min(p.lastVisitedTabScrollPosition!==
void 0?p.lastVisitedTabScrollPosition:Number.MAX_SAFE_INTEGER,p.tabsStartAtInPx)),p.scrollPositionNeedsUpdate=!1;p.ytdReduxDispatch(g4L(!1))}}}})};
_.M.loadPage_=function(S){this.initCsi();S&&(this.data=S);this.updateTitle(this.data);this.setMastheadAd(this.data)};
_.M.getTitle=function(S){if(this.pageSubtype=="home")return"";if(this.get("microformat.microformatDataRenderer.title",S))return this.get("microformat.microformatDataRenderer.title",S);if(this.get("header.feedTabbedHeaderRenderer.title",S))return _.mA(this.get("header.feedTabbedHeaderRenderer.title",S));if(this.get("header.interactiveTabbedHeaderRenderer.title",S))return this.get("header.interactiveTabbedHeaderRenderer.title",S);if(this.get("contents.twoColumnBrowseResultsRenderer.tabs.0.tabRenderer.content.richGridRenderer.contents.0.richSectionRenderer.content.sourcePivotHeaderRenderer.headerInformation.profilePageHeaderInformationRenderer.title.profilePageHeaderTitleRenderer.title",
S))return _.mA(this.get("contents.twoColumnBrowseResultsRenderer.tabs.0.tabRenderer.content.richGridRenderer.contents.0.richSectionRenderer.content.sourcePivotHeaderRenderer.headerInformation.profilePageHeaderInformationRenderer.title.profilePageHeaderTitleRenderer.title",S));var p,U;return _.y("enable_page_header_page_title")&&(S==null?0:(p=S.header)==null?0:(U=p.pageHeaderRenderer)==null?0:U.pageTitle)?S.header.pageHeaderRenderer.pageTitle:""};
_.M.updateTitle=function(S){_.cv(this.hostElement,"yt-update-title",this.getTitle(S))};
_.M.initCsi=function(){_.hv(this.pageSubtype||"browse",["ol","cpt"])};
_.M.getPlayer=function(){if(_.y("kevlar_channel_trailer_multi_attach")){for(var S=_.d(this.attachedPlayers),p=S.next();!p.done;p=S.next())if(p=p.value,p.isConnected||_.C2(this.hostElement,p))return p;return null}return this.player};
_.M.getPlayerContainer=function(){return null};
_.M.onPlayerAttached=function(S,p){_.y("kevlar_channel_trailer_multi_attach")?this.attachedPlayers.push(p):this.player=p};
_.M.onPlayerDetached=function(S,p){_.y("kevlar_channel_trailer_multi_attach")?(S=this.attachedPlayers.indexOf(p),S<0||this.attachedPlayers.splice(S,1)):this.player=null};
_.M.getServiceTrackingParams=function(){var S,p;return((S=this.data)==null?void 0:(p=S.responseContext)==null?void 0:p.serviceTrackingParams)||[]};
_.M.setMastheadAd=function(S){S&&S.mastheadAd&&(this.mastheadAdData=void 0);this.mastheadAdData=S&&S.mastheadAd};
_.M.dataChanged=function(){var S=this;this.refreshGesture&&this.refreshGesture.reset();this.get("filler",this.data)||_.n4E();_.oH(this,function(){_.pp(S.hostElement,"ytd-update-grid-state-action")})};
_.M.disposeMastheadAd=function(){this.mastheadAdData=void 0};
_.M.computeAlertBannerData=function(){if(this.data&&this.data.alerts){var S=this.data.alerts;return S&&S.find(function(p){return!!p.alertWithActionsRenderer})}};
_.M.computeGreetingData=function(){if(this.data&&this.data.alerts){var S=this.data.alerts;return S&&S.find(function(p){return!!p.personalGreetingViewModel})}};
_.M.computeHasMemberHubProfileRenderer=function(S){var p;return!!(S==null?0:(p=S.header)==null?0:p.memberHubProfileRenderer)};
_.M.handleAlertCommand=function(S){this.get("alertCommand.alert.alertWithActionsRenderer",S)&&(S=_.b(S,v4J),this.data.alerts||this.set("data.alerts",[]),this.unshift("data.alerts",S.alert))};
_.M.handleYtPlaylistDeletionRedirect=function(S){S=this.get("playlistDeletionRedirectCommand.redirectEndpoint",S);_.cv(this.hostElement,"yt-navigate",{endpoint:S})};
_.M.computeFluidWidth=function(S,p,U){if(p==="mini_app"||U)return!0;var Y,L,I;S=S==null?void 0:(Y=S.contents)==null?void 0:(L=Y.twoColumnBrowseResultsRenderer)==null?void 0:(I=L.tabs)==null?void 0:I.find(function(O){var D;return O==null?void 0:(D=O.tabRenderer)==null?void 0:D.selected});
if(!S)return!1;var V,W;return!!((V=S.tabRenderer)==null?0:(W=V.content)==null?0:W.richGridRenderer)&&!["channel","channels","playables"].includes(p)};
_.M.computeHeaderFluidWidth=function(S){return S==="hashtag-landing-page"};
_.M.computeHasSidebar=function(S){var p;return!!(S.sidebar||((p=S.header)==null?0:p.playlistHeaderRenderer))};
_.M.computeHasPageHeaderSidebar=function(S){var p,U;return!!((p=S.header)==null?0:(U=p.pageHeaderRenderer)==null?0:U.enableSidebarView)};
_.M.computeUseUnifiedShowPageLayout=function(S){if(!S||this.pageSubtype!=="show"||!S.sidebar||!S.sidebar.playlistSidebarRenderer)return!1;S=S.sidebar.playlistSidebarRenderer;if(!S.items)return!1;for(var p=0;p<S.items.length;p++)if(_.b(S.items[p],XL)){var U=void 0;return((U=_.b(S.items[p],XL))==null?void 0:U.style)==="PLAYLIST_SIDEBAR_PRIMARY_INFO_RENDERER_STYLE_TYPE_SHOW"}return!1};
_.M.computeIsConstrainedList=function(S){return _.y("web_enable_constrained_list_subscriptions_channels")&&S==="subscriptions-channels"};
_.M.computeResponsiveSizing=function(S){return S==="subscriptions-channels"?"STANDARD":"COMPACT"};
_.$u.Object.defineProperties(eG.prototype,{usePlaylistHeaderRenderer:{configurable:!0,enumerable:!0,get:function(){var S,p;return((S=this.data)==null?0:(p=S.header)==null?0:p.playlistHeaderRenderer)?!0:!1}},
useOldPlaylistSidebarRenderer:{configurable:!0,enumerable:!0,get:function(){var S,p;if(!((S=this.data)==null?0:(p=S.sidebar)==null?0:p.playlistSidebarRenderer))return!1;var U;return(U=this.data)!=null&&U.header?!1:!0}}});
_.$u.Object.defineProperties(eG,{template:{configurable:!0,enumerable:!0,get:function(){if(Vfd===void 0){var S=document.createElement("template");_.h(S,'\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');
S.content.insertBefore(_.t().content.cloneNode(!0),S.content.firstChild);Vfd=S}S=Vfd;return S}}});
eG.prototype.dataChanged=eG.prototype.dataChanged;eG.prototype.onPlayerDetached=eG.prototype.onPlayerDetached;eG.prototype.onPlayerAttached=eG.prototype.onPlayerAttached;eG.prototype.onStampFinished=eG.prototype.onStampFinished;eG.prototype.engagementPanelsChanged=eG.prototype.engagementPanelsChanged;eG.prototype.scrollAtTopChanged=eG.prototype.scrollAtTopChanged;eG.prototype.tabsChanged=eG.prototype.tabsChanged;eG.prototype.activeChanged=eG.prototype.activeChanged;
_.x([_.F(_.Aj.YtActionHandlerBehavior),_.E("design:type",Object)],eG.prototype,"ytActionHandlerBehavior",void 0);_.x([_.F(_.xK),_.E("design:type",Object)],eG.prototype,"ytdOpenPopupBehavior",void 0);_.x([_.F(_.qH.YtRendererstamperBehavior),_.E("design:type",Object)],eG.prototype,"ytRendererstamperBehavior",void 0);_.x([_.F(_.Xh),_.E("design:type",Object)],eG.prototype,"ytdReduxBehavior",void 0);_.x([_.F(_.R1.YtPageBehavior),_.E("design:type",Object)],eG.prototype,"ytPageBehavior",void 0);
_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],eG.prototype,"ytRendererBehavior",void 0);_.x([_.F(_.uc.YtdGuideStateAwareBehavior),_.E("design:type",Object)],eG.prototype,"ytdGuideStateAwareBehavior",void 0);_.x([_.F(_.eL.YtComponentBehavior),_.E("design:type",Object)],eG.prototype,"ytComponentBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],eG.prototype,"data",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],eG.prototype,"hidden",void 0);
_.x([_.g(),_.E("design:type",Object)],eG.prototype,"mastheadAdData",void 0);_.x([_.g({readOnly:!0,computed:"computeAlertBannerData(data.alerts.*)"}),_.E("design:type",Object)],eG.prototype,"alertBannerData",void 0);_.x([_.g({readOnly:!0,computed:"computeGreetingData(data.alerts.*)"}),_.E("design:type",Object)],eG.prototype,"greetingData",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",String)],eG.prototype,"pageSubtype",void 0);
_.x([_.g({reflectToAttribute:!0,computed:"computeHasMemberHubProfileRenderer(data)"}),_.E("design:type",Boolean)],eG.prototype,"hasMemberHubProfileRenderer",void 0);_.x([_.g({computed:"computeHasSidebar(data)",reflectToAttribute:!0}),_.E("design:type",Boolean)],eG.prototype,"hasSidebar",void 0);_.x([_.g({computed:"computeHasPageHeaderSidebar(data)",reflectToAttribute:!0}),_.E("design:type",Boolean)],eG.prototype,"hasPageHeaderSidebar",void 0);
_.x([_.g({reflectToAttribute:!0,value:!0}),_.E("design:type",Boolean)],eG.prototype,"roundedContainer",void 0);_.x([_.g({computed:"computeUseUnifiedShowPageLayout(data)",reflectToAttribute:!0}),_.E("design:type",Boolean)],eG.prototype,"useUnifiedShowPageLayout",void 0);_.x([_.g({computed:"computeIsConstrainedList(pageSubtype)"}),_.E("design:type",Object)],eG.prototype,"isConstrainedList",void 0);
_.x([_.e("data"),_.E("design:type",Boolean),_.E("design:paramtypes",[])],eG.prototype,"usePlaylistHeaderRenderer",null);_.x([_.e("data"),_.E("design:type",Boolean),_.E("design:paramtypes",[])],eG.prototype,"useOldPlaylistSidebarRenderer",null);_.x([_.g({computed:"computeFluidWidth(data, pageSubtype, isConstrainedList)"}),_.E("design:type",Boolean)],eG.prototype,"fluidWidth",void 0);_.x([_.g({selector:function(S){return S.ui.scrollAtTop}}),
_.E("design:type",Boolean)],eG.prototype,"scrollAtTop",void 0);_.x([_.g({selector:_.yAs}),_.E("design:type",Boolean)],eG.prototype,"tabGesturesIsActive",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],eG.prototype,"darkerDarkTheme",void 0);_.x([_.g({reflectToAttribute:!0,computed:"computeHeaderFluidWidth(pageSubtype)"}),_.E("design:type",Boolean)],eG.prototype,"disableHeaderFluidWidth",void 0);
_.x([_.g({reflectToAttribute:!0,computed:"computeResponsiveSizing(pageSubtype)"}),_.E("design:type",String)],eG.prototype,"responsiveSizing",void 0);_.x([_.O2("ytd-two-column-browse-results-renderer"),_.E("design:type",HTMLElement)],eG.prototype,"contents",void 0);_.x([_.O2("#header"),_.E("design:type",HTMLElement)],eG.prototype,"header",void 0);_.x([_.O2("ytd-refresh"),_.E("design:type",Object)],eG.prototype,"refresh",void 0);
_.x([_.T4("active"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],eG.prototype,"activeChanged",null);_.x([_.T4("data.contents.twoColumnBrowseResultsRenderer.tabs"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],eG.prototype,"tabsChanged",null);_.x([_.T4("scrollAtTop"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],eG.prototype,"scrollAtTopChanged",null);
_.x([_.g(),_.E("design:type",Object)],eG.prototype,"engagementPanels",void 0);_.x([_.T4("data.panels"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],eG.prototype,"engagementPanelsChanged",null);_.x([_.Vd("yt-rendererstamper-finished"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],eG.prototype,"onStampFinished",null);
_.x([_.Vd("yt-player-attached"),_.E("design:type",Function),_.E("design:paramtypes",[CustomEvent,Element]),_.E("design:returntype")],eG.prototype,"onPlayerAttached",null);_.x([_.Vd("yt-player-detached"),_.E("design:type",Function),_.E("design:paramtypes",[CustomEvent,Element]),_.E("design:returntype")],eG.prototype,"onPlayerDetached",null);_.x([_.z4("data"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],eG.prototype,"dataChanged",null);
eG=_.x([_.f({is:"ytd-browse"})],eG);_.A4.registerService(_.ocw,eG);
_.g5();
}catch(e){_._DumpException(e)}
try{
_.e$("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 pi=function(S){if(!S)return"browse";var p=S.page,U=S.url,Y,L,I,V=(Y=S.response)==null?void 0:(L=Y.responseContext)==null?void 0:(I=L.webResponseContextExtensionData)==null?void 0:I.pageTheme;if(V)p=V.toLowerCase().replace(/_/g,"-");else if(p!=="watch"&&p!=="learning_journey_watch"){var W,O;if((p==="browse"||p==="settings")&&((W=S.response)==null?0:(O=W.sidebar)==null?0:O.settingsSidebarRenderer))p="WEB_PAGE_TYPE_SETTINGS";else{var D,z;p==="browse"&&((D=S.response)==null?0:(z=D.metadata)==null?
0:z.channelMetadataRenderer)?p="channel":U&&(p=_.WB(U)||p)}}return p},hwt=function(){var S=_.ad("yt.aba.att");
return S?S:_.AP.instance!==void 0?_.AP.instance.rKC.bind(_.AP.instance):null},RwY=function(S,p){var U;
return _.T(function(Y){return(U=hwt())?Y.return(U(S,p,6E4)):Y.return(Promise.resolve({error:"ATTESTATION_ERROR_API_NOT_READY"}))})},Fcq=function(S,p,U,Y,L){p=p===void 0?[]:p;
L=L?{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{signalAction:L}]}}:void 0;return{popupType:"DIALOG",popup:{confirmDialogRenderer:{title:_.Aa(S),dialogMessages:p.map(function(I){return _.Aa(I)}),
confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.Aa(U),serviceEndpoint:L}},cancelButton:{buttonRenderer:{style:"STYLE_TEXT",size:"SIZE_DEFAULT",text:_.Aa(Y)}}}}}},XQJ=function(S){var p=!!_.e8().queueProxy;
var U,Y,L;S=S==null?void 0:(U=S.response)==null?void 0:(Y=U.currentVideoEndpoint)==null?void 0:(L=Y.watchEndpoint)==null?void 0:L.playlistId;return!(!p&&!S)},PbX=function(S,p){var U=_.Vy();
if(XQJ(S))return U.playlistWatchPageActivation=!0;switch(pi(p)){case "yts-products":return U.productDetailsPageActivation=!0;case "mini_app":return U.miniAppPageActivation=!0;case "playables":return U.playablesDestPageActivation=!0;default:return!1}},ZUi=function(S,p,U){for(var Y=typeof S==="string"?S.split(""):S,L=S.length-1;L>=0;--L)L in Y&&p.call(U,Y[L],L,S)},sdd=function(S,p){p=_.nRr(S,p);
p>=0&&_.ie(S,p)},ewE=function(S){return Array.prototype.concat.apply([],arguments)},gso=function(S){var p=0;
p=p===void 0?0:p;if(!_.yL(S))throw _.km("uint64");var U=typeof S;switch(p){case 512:switch(U){case "string":return _.WEG(S);case "bigint":return String((0,_.uJ)(64,S));default:return _.VQk(S)}case 1024:switch(U){case "string":return _.OcG(S);case "bigint":return _.qt((0,_.uJ)(64,S));default:return _.TmN(S)}case 0:switch(U){case "string":return _.WEG(S);case "bigint":return _.qt((0,_.uJ)(64,S));default:return _.dtw(S)}default:return _.WP(p,"Unknown format requested type for int64")}},uMP=function(S){S!=
null&&(S=S.JSC$6820_value_||"",S=typeof S==="string"?S:new Uint8Array(S));
return S},wQi=function(S){for(var p=_.jO.apply(1,arguments),U=S[0],Y=0;Y<S.length-1;Y++)U+=String(p[Y]),U+=S[Y+1];
p=document.implementation.createHTMLDocument("");Y=p.createElement("style");p.head.appendChild(Y);p=Y.sheet;p.insertRule(U,0);if(p.cssRules.length===1&&(U=p.cssRules[0],U instanceof CSSStyleRule))return new _.m1(U.cssText.replace(/</g,"\\3C "))},lCX=function(S,p){if(/-[a-z]/.test(p))return null;
if(_.heP&&S.dataset){if(_.Vwd()&&!(p in S.dataset))return null;S=S.dataset[p];return S===void 0?null:S}return S.getAttribute("data-"+_.O$(p))},fCt=function(){var S=aCL;
_.ad("yt.ads.biscotti.getId_")||_.NT("yt.ads.biscotti.getId_",S)},CbE=function(S){_.NT("yt.ads.biscotti.lastId_",S)},EsP=function(){var S={};
for(_.hI=new xZL(S.handleError===void 0?_.s9:S.handleError,S.logEvent===void 0?_.RV:S.logEvent);_.Rx.length>0;)switch(S=_.Rx.shift(),S.type){case "ERROR":_.hI.logError(S.payload);break;case "EVENT":_.hI.logEvent(S.eventType,S.payload)}},mZq=function(S,p,U){return _.aLq(function(Y){return U?Y.userIdentifier!==void 0&&!S.includes(Y.userIdentifier)&&U.includes(Y.publicName):Y.userIdentifier!==void 0&&!S.includes(Y.userIdentifier)},p)},osd=function(S){var p,U;
return _.T(function(Y){if(Y.nextAddress==1)return p=_.nA("YtIdbMeta hasAnyMeta other"),_.k(Y,_.aLq(function(L){return L.userIdentifier!==void 0&&L.userIdentifier!==p},S),2);
U=Y.yieldResult;return Y.return(U.length>0)})},$ZA=function(S,p){vsL||(vsL=_.PA.addLowPriorityJob(function(){var U,Y,L,I,V;
return _.T(function(W){switch(W.nextAddress){case 1:return _.k(W,_.BS(),2);case 2:U=W.yieldResult;if(!U)return W.return();Y=!0;_.M2(W,3);return _.k(W,mZq(S,U,p),5);case 5:L=W.yieldResult;if(!L.length){Y=!1;W.jumpTo(6);break}I=L[0];return _.k(W,_.xU(I.actualName),7);case 7:return _.k(W,_.ox(I.actualName,U),6);case 6:_.CA(W,4);break;case 3:V=_.W4(W),_.Fu(V),Y=!1;case 4:_.PA.cancelJob(vsL),vsL=0,Y&&$ZA(S,p),_.OV(W)}})}))},iUE=function(){var S;
return _.T(function(p){return p.nextAddress==1?_.k(p,_.BS(),2):(S=p.yieldResult)?p.return(osd(S)):p.return(!1)})},N7o=function(S){var p=100;
p=p===void 0?500:p;var U,Y,L,I,V,W;return _.T(function(O){return O.nextAddress==1?(U=_.g7("INNERTUBE_CONTEXT_CLIENT_NAME",0),Y=[U,(0,_.AI)()-2592E6],L=[U,(0,_.AI)()],I=IDBKeyRange.bound(Y,L),_.k(O,_.WFq(S),2)):O.nextAddress!=3?(V=O.yieldResult,W=[],_.k(O,_.mY(V,["SWHealthLog"],{mode:"readwrite",enableRetries:!0},function(D){W.length=0;return _.tI(D.objectStore("SWHealthLog").index("swHealthNewRequest"),{query:I,direction:"prev"},function(z){if(z.getValue()&&W.length<p)return W.push(z.getValue()),
z.delete().then(function(){return z.continue()})})}),3)):O.return(W)})},B7q=function(){var S;
return _.T(function(p){if(p.nextAddress==1)return _.k(p,_.BS(),2);S=p.yieldResult;if(!S||!_.JI()&&!_.y("nwl_init_require_datasync_id_killswitch")||!_.PEr())return p.jumpTo(0);_.sSX=!0;_.ZHG.isNwlInitialized=_.sSX;return _.k(p,_.g7t().awaitInitialization(),0)})},UJ=function(S,p){_.NzN[S]=!0;
var U=_.U9();U&&U.publish.apply(U,arguments);_.NzN[S]=!1},AWn=function(){if(_.h$q()&&!q0q){var S=function(U){U=U.data;
if(U.op==="serializedGelBatch"){var Y=_.B9G.get(U.key);Y&&(_.AFk(U.serializedBatch,Y.client,Y.resolve,Y.networklessOptions,Y.isIsolated,Y.useVSSEndpoint,Y.dangerousLogToVisitorSession,Y.requestsOutstanding),_.B9G.delete(U.key))}},p=_.Gfw();
p&&(p.addEventListener("message",S),p.onerror=function(){_.B9G.clear()});
q0q=!0}},Y3=function(){this.relativeTimeStart_=_.BO()},tni=function(S,p){S!=null&&this.append.apply(this,arguments)},cWL=function(){return _.em("SLI_NAME_YOUTUBE_WEB_YT_GUIDE_DATA_PRESENT","GUIDE_DATA_PRESENT",6E4,"FAILURE")},Sg5=function(S,p,U){U=U===void 0?!1:U;
var Y,L,I,V,W;return _.T(function(O){switch(O.nextAddress){case 1:_.zp("SOCS",S,34128E3,"youtube.com",!0);if(_.YC)return L=fetch(p,{method:"POST",mode:_.f9(p),credentials:_.a9(p),cache:"no-store",headers:{"Content-Type":"text/plain"}}).catch(function(){}),I=fetch("/upgrade_visitor_cookie?eom=1",{method:"POST",
mode:_.f9("/upgrade_visitor_cookie?eom=1"),credentials:_.a9("/upgrade_visitor_cookie?eom=1"),cache:"no-store",headers:{"Content-Type":"application/x-www-form-urlencoded"}}),_.k(O,Promise.all([L,I]).then(function(D){return D[1]}),5);
fetch(p,{method:"POST",mode:_.f9(p),credentials:_.a9(p),cache:"no-store",headers:{"Content-Type":"text/plain"}});return _.k(O,fetch("/upgrade_visitor_cookie?eom=1",{method:"POST",mode:_.f9("/upgrade_visitor_cookie?eom=1"),credentials:_.a9("/upgrade_visitor_cookie?eom=1"),cache:"no-store",headers:{"Content-Type":"application/x-www-form-urlencoded"}}),4);case 4:Y=O.yieldResult;O.jumpTo(3);break;case 5:Y=V=O.yieldResult;case 3:if(!Y.ok)throw Error("lf");return _.k(O,Y.text(),7);case 7:W=O.yieldResult,
!W.includes('"state_switch":true')&&!U||W.includes("skip_reload_for_test")||window.location.reload(),_.OV(O)}})},pSo=function(S){return _.T(function(p){return p.nextAddress==1?_.k(p,Sg5(S.socsCookie,S.savePreferenceUrl,!0),2):p.return()})},UTt=function(S){return _.T(function(p){return p.nextAddress==1?_.k(p,Sg5(S.socsCookie,S.savePreferenceUrl),2):p.return()})},LY5=function(S){S=S.xhr.responseText;
if(!_.Lr(S,")]}'"))throw new Li;S=JSON.parse(S.substr(4));if((S.type||1)>1)throw new Li;S=S.id;CbE(S);My=_.ag(S);YgL(18E5,2);return S},I55=function(S,p){p=new M9q(p);
CbE("");My=_.Y8m(p);S>0&&YgL(12E4,S-1);throw p;},YgL=function(S,p){_.MT(function(){_.Wci().then(LY5,function(U){return I55(p,U)}).thenCatch(_.TX)},S)},aCL=function(){var S=_.HUd();
if(S!==void 0)return _.jV(S);My||(My=_.Wci().then(LY5).thenCatch(function(p){return I55(2,p)}));
return My},dTJ=function(){var S=document;
return _.fr(["fullscreenchange","webkitfullscreenchange","mozfullscreenchange","MSFullscreenChange"],function(p){return"on"+p.toLowerCase()in S})},V9d=function(S){S.addEventListener("click",function(p){var U=p.target;
U&&U.getAttribute("href")&&(U=U.getAttribute("href"),_.s3(window,U,"_blank"),p.preventDefault(),p.stopImmediatePropagation())})},TE5=function(S){var p,U,Y,L=(Y=(U=((p=S.mainDownloadsListEntity)!=null?p:{})[_.LSw])==null?void 0:U.refresh)!=null?Y:"",I;
S=(I=S.refresh)==null?void 0:I[L];L=S!=null?S:{};return(L==null?0:L.refreshTime)?Number(L==null?void 0:L.refreshTime):0},WYn=function(S,p){var U=_.bM(S);
return p.every(function(Y){var L;Y=Y==null?void 0:(L=Y.playbackDataEntity)==null?void 0:L.key;if(!Y)return!1;L=_.M9(_.Uc(Y).entityId,"mainVideoEntity");return!!U[L]})},OAL=function(S){S=_.JZ(S.entities);
return _.nzG(S).length},kpY=function(S,p){if(p){var U;
S=(U=_.I4(S.entities,"downloadQualityPickerEntity",p))!=null?U:void 0}else S=void 0;return S},z85=function(){HAE||(_.xl=_.S8G,HAE=new DT5);
return HAE},QxA=function(S){var p=document.getElementsByTagName("ytd-enforcement-message-view-model");
p.length===0||getComputedStyle(p[0]).display==="none"?S(0,"p.h_"):S(1,"p.h_")},nUt=function(){I$=0;
var S=[_.zv(!0)];dF&&_.pp(dF,"yt-window-resized",S)},JIq=function(){I$||(I$=_.PA.addLowPriorityJob(nUt,200))},KYJ=function(){V3=0;
yIi=_.Rdj(document);var S=[yIi];dF&&_.pp(dF,"yt-window-scrolled",S)},bAT=function(){V3||(V3=_.PA.addLowPriorityJob(KYJ,200))},rIs=function(S){S=S===void 0?null:S;
jxo.push(_.tE(window,"resize",JIq));jxo.push(_.tE(window,"scroll",bAT));S&&(dF=S)},h8A=function(){var S={isWide:_.D5.get("wide","0")==="1"},p=_.D9();
if(p=p.getFlag(165)||p.getFlag(174))S.theme=_.bE(!0);if(_.DoR()){var U=_.KH()?"USER_INTERFACE_THEME_DARK":"USER_INTERFACE_THEME_LIGHT";S.systemTheme=U}!p&&_.y("parent_tools_enable_app_settings")&&_.mc(window.location.href).theme!==void 0&&(S.theme=_.bE());if((p=Ta)?!_.h9.equals(p,S):S)p={currentValue:S},Gpq&&(p.timeSinceLastSnapshotSecs=Math.round(((0,_.AI)()-Gpq)/1E3)),Ta&&(p.previousValue=Ta),_.RV("appSettingsCaptured",p),Ta=S,Gpq=(0,_.AI)()},R8T=function(S){_.T(function(p){if(p.nextAddress==1)return _.k(p,
S.delete("yt-appshell-assets"),2);
_.OV(p)})},FYT=function(S){return _.Eg((0,_.gPt)(),S)},Pis=function(){var S;
_.T(function(p){return p.nextAddress==1?_.k(p,W2.getInstance(),2):(S=p.yieldResult)?_.k(p,XSn(S),0):p.jumpTo(0)})},sxi=function(){var S;
_.T(function(p){return p.nextAddress==1?_.k(p,OJ.getInstance(),2):(S=p.yieldResult)?_.k(p,ZAn(S),0):p.jumpTo(0)})},e8t=function(S){R8T(S);
Pis();sxi()},gUi=function(S){var p,U;
return _.T(function(Y){if(Y.nextAddress==1)return _.k(Y,_.lmw(S),2);if(p=Y.yieldResult){var L;a:{if(p.headers&&(L=p.headers.get("date"))&&(L=Date.parse(L),!isNaN(L))){L=Math.round((0,_.AI)()-L);break a}L=-1}U=L;if(U>-1)return Y.return(U)}return Y.return(-1)})},uuq=function(){var S=_.UX.caches,p=_.ub("IS_SHELL_LOAD"),U,Y;
_.T(function(L){if(L.nextAddress==1)return U=-1,p?_.k(L,gUi(S),3):(Y=_.Ja(),U=Math.round((0,_.AI)()-Y),L.jumpTo(2));L.nextAddress!=2&&(U=L.yieldResult);U>=0&&U<2147483648&&_.ha({appInstallDataAgeMs:U});_.OV(L)})},wSX=function(S){var p=_.mz(_.UX.location.href),U={};
"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(Y){var L=p.JSC$8037_queryData_.getValues(Y);if(L==null?0:L.length)U[Y]=L});
return _.YE(S,new Map(Object.entries(U)))},l5X=function(S){S=S.match(/(.*)::.*::.*/);
if(S!==null)return S[1]},a5i=function(S){if(_.pLw()){var p=Object.keys(window.localStorage);
p=_.d(p);for(var U=p.next();!U.done;U=p.next()){U=U.value;var Y=l5X(U);Y===void 0||S.includes(Y)||self.localStorage.removeItem(U)}}},f5J=function(){if(!_.pLw())return!1;
var S=_.nA(),p=Object.keys(window.localStorage);p=_.d(p);for(var U=p.next();!U.done;U=p.next())if(U=l5X(U.value),U!==void 0&&U!==S)return!0;return!1},Ciq=function(S){return _.i7("NotificationsDisabled",S)},xTi=function(){return Notification.permission!="granted"?Promise.resolve():_.K1X().then(function(S){return S?S.pushManager.getSubscription().then(function(p){if(p)return Promise.resolve();
p={userVisibleOnly:!0,applicationServerKey:_.Ol("BPr83OIQ0ehMqbAUQWSaFHZOJeRvvXddR5EONgwwQcHR6FRe6G43LgD36pJq1IuGN10mmMv-V7IKSIZludF9G1k")};return S.pushManager.subscribe(p).then(function(){return Promise.resolve()},function(){return Promise.resolve()})}):Promise.resolve()}).catch(function(){})},EUo=function(S){return _.K1X().then(function(p){if(!p||!p.active)return Promise.reject(new _.y7("serviceworker.postMessage",S,p));
try{return p.active.postMessage(S),Promise.resolve()}catch(U){return Promise.reject(U)}})},mTT=function(){EUo({type:"notifications_register",
data:_.g7("ID_TOKEN")})},oUL=function(){if(!_.ub("LOGGED_IN"))return Promise.resolve(!1);
var S=_.Ug("service_worker_push_force_notification_prompt_tag");return S?_.Az("PromptTags").then(function(p){if(!p)return!0;var U=[];try{U=JSON.parse(p)}catch(Y){return!1}return U&&U.indexOf(S)==-1}):Promise.resolve(!1)},vUs=function(){var S=_.pA("service_worker_push_prompt_delay_microseconds");
return S?_.Az("PromptTime").then(function(p){return Promise.resolve(Date.now()-S>(p||0))}):Promise.resolve(!0)},$Tq=function(){var S=_.pA("service_worker_push_logged_out_prompt_watches");
return S==-1?Promise.resolve(!1):_.Az("WatchCount").then(function(p){return p>=S})},iAt=function(){var S=_.NF(document,"yt-push-prompt-modal-bg");
S&&_.yz(S)},NEi=function(){return _.pA("service_worker_push_prompt_cap")==-1?Promise.resolve(!0):_.Az("PromptCount").then(function(S){S||(S=0);
return Promise.resolve(S<_.pA("service_worker_push_prompt_cap"))})},BEq=function(S){return _.ub("SERVICE_WORKER_PROMPT_NOTIFICATIONS")||_.ub("LOGGED_IN")&&(S===void 0?0:S)?oUL().then(function(p){if(p)return!0;
p=[NEi(),vUs()];_.ub("LOGGED_IN")||p.push($Tq());return Promise.all(p).then(function(U){return U.every(function(Y){return Y})})}):Promise.resolve(!1)},qgt=function(){_.Az("PromptCount").then(function(S){return _.i7("PromptCount",S+1)}).then(function(){return _.i7("PromptTime",Date.now())}).then(function(){var S=_.Ug("service_worker_push_force_notification_prompt_tag");
if(S)return _.Az("PromptTags").then(function(p){var U=[];if(p)try{U=JSON.parse(p)}catch(Y){return!1}U||(U=[]);U.push(S);return _.i7("PromptTags",JSON.stringify(U))})})},t9n=function(){AIA||iAt()},cIL=function(S){S.style.zIndex=2147483648;
S.style.pointerEvents="auto";S.style.backgroundColor="rgba(0, 0, 0, 0.6)";S.style.width="100%";S.style.height="100vh";S.style.position="absolute";S.style.top="0";S.style.left="0";S.style.border="none"},SPA=function(){var S=_.NF(document,"yt-push-prompt-modal-bg");
AIA=_.y("service_worker_push_prompt_modal_ignore_click");S?cIL(S):(S=_.n0("div",{id:"yt-push-prompt-modal-bg"}),cIL(S),document.body.appendChild(S),_.oME(document,"click",t9n))},pAE=function(){var S=arguments;
_.y("service_worker_push_prompt_modal_enable")&&SPA();return Notification.requestPermission().then(function(p){iAt();var U=document.getElementById("ticker");U&&(U.className=U.classList.remove("show"));if(p=="granted")return xTi().then(function(){Ciq(!1);mTT();return Promise.resolve(!0)});
p=="denied"&&mTT();return Promise.resolve(!1)}).catch(function(){iAt();
return Promise.reject.apply(Promise,_.jo(S))})},UzJ=function(S){S=S===void 0?!1:S;
var p=_.ytE().client;if(p&&p.browserVersion){var U=p.browserVersion,Y=p.browserName=="CHROME"&&_.Dw(U,"50.0.0")<0;p=p.browserName=="OPERA"&&_.Dw(U,"42.0.0")<0;if(Y||p)return Promise.resolve()}return _.rAq().then(function(L){if(!L)return Promise.resolve();L=xTi().then(function(){return EUo({type:"notifications_check_registration",data:_.g7("ID_TOKEN")})});
return Notification.permission!="default"?L.catch(function(){}):L.then(function(){return BEq(S)}).then(function(I){if(I)return qgt(),pAE().then(function(){})}).catch(function(){})})},YPA=function(S){return _.bhs(S)?UzJ():Promise.resolve()},LjX=function(S){var p=S.installing||S.waiting;
return S.active||!p?Promise.resolve(S):new Promise(function(U){var Y=function(L){L=L.target;if(L.state==="activated"||L.state==="redundant")p.removeEventListener("statechange",Y),U(S)};
p.addEventListener("statechange",Y)})},Mat=function(){var S=new _.swG("SLI_NAME_YOUTUBE_WEB_SERVICE_WORKER_REGISTRATION","",12E4,"TIMEOUT");
_.Vj(S,{mainAppWeb:_.aS()});var p=_.AQq;_.y("service_worker_forward_exp_params")&&(p=wSX(p));try{var U=_.bjN(p).catch(function(){_.TU(S,"FAILURE");return new Promise(function(){})});
_.y("service_worker_push_enabled")&&U.then(function(Y){_.TU(S,"SUCCESS");return Y}).then(LjX).then(YPA)}catch(Y){if(_.TU(S,"FAILURE"),Y.name!=="SecurityError")throw Y;
}},IuT=function(){navigator.serviceWorker&&navigator.serviceWorker.getRegistrations&&window.location.protocol==="https:"&&Mat()},dzd=function(S,p){var U={};
p&&(U.serializedYpcFamilyCreateLoggingParams=p);_.RV(S,U);_.Fr()},VaJ=function(S,p){var U={};
U.serializedYpcRefundFlowLoggingParams=p;S&&(U.eventType=S);_.RV("ypcRefundFlowEvent",U);_.Fr()},T6s=function(S){S&&_.r6X("transactionFlowSucceeded",S)},WjP=function(S){S&&_.Pp("ypcCancelFlowFailed","serializedYpcCancelFlowLoggingParams",S,void 0,"YPC_ERROR_REASON_YPC_CANCEL_RECURRENCE_TRANSACTION_FAILURE")},OfE=function(S){var p,U,Y,L,I,V,W;
_.T(function(O){if(O.nextAddress==1)return _.k(O,_.dXd(),2);if(O.nextAddress!=3){if(!O.yieldResult)return O.return(!1);p=[];return _.k(O,_.Uo.keys(),3)}U=O.yieldResult;Y=_.d(U);for(L=Y.next();!L.done;L=Y.next())I=L.value,V=_.M3e(I),W=V.datasyncId,!W||S.includes(W)||p.push(_.Uo.delete(I));return O.return(Promise.all(p).then(function(D){return D.some(function(z){return z})}))})},kMA=function(){var S,p,U,Y,L,I,V;
return _.T(function(W){if(W.nextAddress==1)return _.k(W,_.dXd(),2);if(W.nextAddress!=3){if(!W.yieldResult)return W.return(!1);S=_.nA("cache contains other");return _.k(W,_.Uo.keys(),3)}p=W.yieldResult;U=_.d(p);for(Y=U.next();!Y.done;Y=U.next())if(L=Y.value,I=_.M3e(L),(V=I.datasyncId)&&V!==S)return W.return(!0);return W.return(!1)})},HfJ=function(){var S=_.tW().resolve(_.AW(_.lYI));
return S?S.getCurrentTime():0},Dzs=function(){var S,p,U,Y,L,I,V,W,O,D,z,Q,J,K;
return _.T(function(G){switch(G.nextAddress){case 1:S={},p=_.LIu(),U=_.d(Object.entries(p)),Y=U.next();case 4:if(Y.done){G.jumpTo(3);break}L=Y.value;I=_.d(L);V=I.next().value;W=I.next().value;O=V;D=W;if(!D){G.jumpTo(5);break}return _.k(G,D(),8);case 8:S[O]=G.yieldResult;case 5:Y=U.next();G.jumpTo(4);break;case 2:z=_.d(void 0),Q=z.next();case 9:if(Q.done){G.jumpTo(3);break}J=Q.value;K=p[J];if(!K){G.jumpTo(10);break}return _.k(G,K(),13);case 13:S[J]=G.yieldResult;case 10:Q=z.next();G.jumpTo(9);break;
case 3:return G.return(S)}})},zCt=function(){var S;
_.T(function(p){if(p.nextAddress==1)return _.k(p,Dzs(),2);S=p.yieldResult;return _.k(p,navigator.clipboard.writeText(JSON.stringify(S,null,2)),0)})},Qtq=function(S,p){return _.I4(S.entities,"superThanksSelectedTierEntity",p)},n7o=function(S){var p;
return(p=S.sharedUi)==null?void 0:p.currentPageType},JEq=function(S,p){return{popup:{searchSuggestionReportDialog:{searchQuery:S,
title:_.Oh("SBOX_INAPPROPRIATE_TITLE"),suggestions:p,categoryLabel:_.Oh("SBOX_INAPPROPRIATE_CATEGORY"),categories:[{id:1,label:_.Oh("SBOX_INAPPROPRIATE_HATEFUL")},{id:2,label:_.Oh("SBOX_INAPPROPRIATE_EXPLICIT")},{id:3,label:_.Oh("SBOX_INAPPROPRIATE_VIOLENT")},{id:4,label:_.Oh("SBOX_INAPPROPRIATE_DANGEROUS")},{id:5,label:_.Oh("SBOX_INAPPROPRIATE_OTHER"),reasonLabel:_.Oh("SBOX_INAPPROPRIATE_REASON")}],detailsPlaceholderLabel:_.Oh("SBOX_INAPPROPRIATE_ADDITIONAL"),cancelButtonLabel:_.Oh("SBOX_INAPPROPRIATE_CANCEL"),
submitButtonLabel:_.Oh("SBOX_INAPPROPRIATE_REPORT")}},popupType:"DIALOG"}},yE5=function(S){var p,U,Y,L,I,V,W,O,D,z,Q,J,K,G,X,Z,l,a,N;
return _.T(function(m){switch(m.nextAddress){case 1:return _.k(m,_.Tf(),2);case 2:return(p=m.yieldResult)?_.k(m,_.G5E(p),3):m.return();case 3:U=m.yieldResult;if(!U)return m.return();L=((Y=U.offlineVideos)==null?void 0:Y.length)||0;V=((I=U.offlinePlaylists)==null?void 0:I.length)||0;if(L===0&&V===0)return m.return();W=0;if(U.offlineVideos)for(O=_.d(U.offlineVideos),D=O.next();!D.done;D=O.next())z=D.value,"OFFLINE_VIDEO_STATE_PLAYABLE"===z.videoState&&(W+=1);S.offline_videos_count=L.toString();_.y("kevlar_log_offline_current_network_type_ks")||
(S.offline_current_network_type=(Q=_.O9w())!=null?Q:"CONN_INVALID");_.y("kevlar_log_updated_time_for_smart_downloads")&&(J=_.vJ().getState().entities,K=_.Gf(J),G=TE5(J),S.offline_smart_downloads_last_sync_time_ms=K.toString(),S.offline_smart_downloads_next_sync_time_ms=G.toString());S.offline_videos_playable=W.toString();S.offline_playlists_count=V.toString();if(!_.y("woffle_used_state_report")){m.jumpTo(4);break}U.offlineVideos&&(X=U.offlineVideos.reduce(function(A,q){q.downloadedBytes&&(A+=Number(q.downloadedBytes));
return A},0).toString())&&(S.offline_used_disk_space_bytes=X);
if(!((Z=navigator)==null?0:(l=Z.storage)==null?0:l.estimate)){m.jumpTo(4);break}return _.k(m,navigator.storage.estimate(),6);case 6:a=m.yieldResult,S.offline_free_disk_space_bytes=(((N=a)==null?void 0:N.quota)||0).toString();case 4:S.offline_client_state=JSON.stringify(U),_.OV(m)}})},KjY=function(S){S=S.match(/(.*)::.*::.*/);
if(S!==null)return S[1]},bfJ=function(S){if(_.Rur()){var p=Object.keys(window.sessionStorage);
p=_.d(p);for(var U=p.next();!U.done;U=p.next()){U=U.value;var Y=KjY(U);Y===void 0||S.includes(Y)||self.sessionStorage.removeItem(U)}}},jtY=function(){if(!_.Rur())return!1;
var S=_.nA(),p=Object.keys(window.sessionStorage);p=_.d(p);for(var U=p.next();!U.done;U=p.next())if(U=KjY(U.value),U!==void 0&&U!==S)return!0;return!1},k3=function(S,p,U){(_.y("desktop_keyboard_shortcut_usage_log")||U&&_.y("web_shorts_keyboard_shortcut_usage_log"))&&(p?_.tC.get(S):_.AC.get(S))&&(S=p?_.Sr.get(S):_.cN.get(S))&&_.xd(_.X$(),S)},rEo=function(S){return S.visibility!=="hidden"&&S.display!=="none"},GME=function(S){if(!S.matches("a[href],a[tabindex],area[href],iframe,[tabindex],[contentEditable],summary,details:not(:has(summary)),input:not([disabled]),select:not([disabled]),textarea:not([disabled]),button:not([disabled]),object:not([disabled])"))return-1;
S=S.getAttribute("tabindex")||"0";return Number(S)},hCJ=function(S){return S.some(function(p){return GME(p)>0})},RCX=function(S){if(S.textContent)return!0;
if(S instanceof HTMLInputElement){if(!S.labels)return!1;S=_.d(S.labels);for(var p=S.next();!p.done;p=S.next())if(p.value.textContent)return!0}return!1},FjL=function(S){return S.sort(function(p,U){return GME(U)-GME(p)})},XAA=function(S){S=Array.from(S.querySelectorAll("a[href],a[tabindex],area[href],iframe,[tabindex],[contentEditable],summary,details:not(:has(summary)),input:not([disabled]),select:not([disabled]),textarea:not([disabled]),button:not([disabled]),object:not([disabled])")).filter(function(p){return(rEo(p.style)?
rEo(window.getComputedStyle(p)):!1)&&RCX(p)});
return hCJ(S)?FjL(S):S},PgJ=function(S){S=XAA(S);
S.length>0&&S[0].focus()},Zft=function(S,p){p.stack&&(S.stack+="\n"+p.stack);
return S},g7J=function(S){var p=H2(S,"Content-Type");
if(!p)return null;p=p.toLowerCase();if(p.startsWith("application/json"))return p.startsWith("application/json+protobuf")?new stJ:new _.AK;if(p.startsWith("application/x-protobuf")){S=H2(S,"Content-Transfer-Encoding");if(!S)return new D8;if(S.toLowerCase()=="base64")return new eCX}return null},mzq=function(S,p,U,Y){var L=new uyY(function(W,O){return wAY.has(O)?W.sentinel==="gal"&&W.event!==void 0:!1},function(W){W.event?(W=lus(W.event),W=!W||auX(Y,W)?!0:_.Wg(S.lastEvent,za,2,Q3)?!_.Wg(W,ni,1,Q3)&&
!_.Wg(W,za,2,Q3):!_.Wg(W,ni,1,Q3)&&!_.Wg(W,za,3,Q3)):W=!0;
return W});
U=_.YE(S.trustedUrl,new Map([["result_channel","5"],["origin",(new URL(window.location.href)).origin],["color_scheme",fu5(U)]]));if(S.nestedOrigins!==void 0)for(var I=_.d(S.nestedOrigins),V=I.next();!V.done;V=I.next())U=_.YE(U,new Map([["origin",V.value]]));return CgE(L,U,p).then(function(W){W=xzi(W.event);if(_.Wg(W,ni,1,Q3)){var O,D=(O=_.Ra(W,ni,1,Q3))==null?void 0:_.r1(O,2);D&&Y.JSC$17102_logErrorEvent(E7T(D));O=_.Ra(W,ni,1,Q3);_.r1(O,2)===4?(W=_.Ra(W,ni,1,Q3),W={statusCode:11,statusMessage:_.jR(W,
3)}):(W=_.Ra(W,ni,1,Q3),W={statusCode:12,statusMessage:_.jR(W,3)});return W}_.Wg(W,za,3,Q3)?(W=_.Ra(W,za,3,Q3),W={statusCode:1,consentLanguageKeys:_.jR(W,2)}):W={statusCode:1};return W}).catch(function(W){return W.errorCode!==void 0?{statusCode:W.errorCode,
statusMessage:W.errorMessage}:{statusCode:7,statusMessage:"Data Usage Notice screen did not return result"}})},ifT=function(S){var p={};
if(S===void 0||S===null)return p;S.getToken()!==void 0&&o7n(S.getToken())&&o7n(S.getToken()).length>0&&(p.scopes=new Set(o7n(S.getToken())));S.getToken()!==void 0&&v7X(S.getToken())&&v7X(S.getToken()).length>0&&(p.capabilities=new Set(v7X(S.getToken())));_.jR(S,3)!==void 0&&(p.consistencyKey=_.jR(S,3));S.getName()!==void 0&&S.getName()!==""&&(p.linkName=S.getName());_.TR(S,$z5,4)&&(S=_.Sa(S,$z5,4),S=Object.assign({},_.jR(S,1)&&{userId:_.jR(S,1)},_.jR(S,2)&&{displayName:_.jR(S,2)},_.jR(S,3)&&{email:_.jR(S,
3)},_.jR(S,5)&&{username:_.jR(S,5)},_.jR(S,4)&&{profilePicture:_.jR(S,4)}),p.profile=S);return p},N6t=function(S,p){var U=S.flowParams;
return{serviceId:U.serviceId,sessionId:U.sessionId,currentFlow:S.currentFlow,googleScopesString:p,linkingSessionSerialized:S.session.serialize(),consentLanguageKeys:U.consentLanguageKeys,callerState:S.callerState,dynamicUrlParameters:U.dynamicUrlParameters,partnerConfigMinReadTimestamp:U.partnerConfigMinReadTimestamp}},cEi=function(S){var p=S.googleScopes!==void 0?Array.from(S.googleScopes).join(","):"";
B6n(N6t(S,p));p=qPY(S);return p===null?Promise.resolve(AEY):p.start().then(function(U){var Y,L=(Y=U.link)==null?void 0:Y.consistencyKey;return U.statusCode===1&&S.googleScopes!==void 0&&S.googleScopes.size>0&&L!==void 0?(Y=S.flowParams,taT(Y.serviceId,Y.sessionId,S.googleScopes,L,Y.galService,S.config,U)):U})},S9q=function(S){var p=qPY(S);
return p===null?Promise.resolve(JM({statusCode:7,statusMessage:"Failed to create flow object"},S.callerState)):p.complete().then(function(U){var Y,L=(Y=U.link)==null?void 0:Y.consistencyKey;return U.statusCode===1&&S.googleScopes!==void 0&&S.googleScopes.size>0&&L!==void 0?(Y=S.flowParams,taT(Y.serviceId,Y.sessionId,S.googleScopes,L,Y.galService,S.config,U)):JM(U,S.callerState)},function(U){return JM({statusCode:12,
statusMessage:"Failed to complete the flow: "+U.message},S.callerState)})},taT=function(S,p,U,Y,L,I,V){return pHi(L,{serviceId:S,
sessionId:p,googleScopes:U,consistencyKey:Y}).then(function(){return V},function(W){return L.deleteLink({serviceId:S,
sessionId:p,accountLinkingEntryPoint:I.accountLinkingEntryPoint}).then(function(){return{statusCode:12,statusMesaage:"2-way linking failed: "+W.message}},function(O){return{statusCode:12,
statusMesaage:"2-way linking failed and did not cleanup the link:\n                            "+O.message}})})},qPY=function(S){switch(S.currentFlow){case 1:var p=S.flowParams;
S=_.Sa(S.session,UWn,1);return y3.createOAuthFlow(p,S);case 2:case 3:return p=S.flowParams,S=_.Sa(S.session,Y9o,6),Ki.createStreamlinedFlow(p,S);default:return null}},LeX=function(S,p){S===2&&(S=3);
var U=0;bd.indexOf(S)!==-1&&(U=bd.indexOf(S)+1);for(S=U;S<bd.length;S++)if(p.has(bd[S]))return bd[S]},dWA=function(S){var p=S.serviceId;
var U=S.sessionId;var Y=S.config;var L=S.galService;var I=S.capabilities;var V=S.scopes;var W=S.loginHint;var O=S.callerState;var D=S.consentLanguageKeys;var z=S.linkName;var Q=S.dynamicUrlParameters;var J=S.partnerConfigMinReadTimestamp;S=Y.dataUsageNoticeConfig?Y.dataUsageNoticeConfig.enabledDataUsageNoticeUis:void 0;return L.startLinkingSession({serviceId:p,sessionId:U,capabilities:I,scopes:V,loginHint:W,callerState:O,supportedFlows:MPt(Y.supportedFlows),completionUrl:Y.completionUrl,accountLinkingEntryPoint:Y.accountLinkingEntryPoint,
consentLanguageKeys:D,dataUsageNoticeConfig:S,linkName:z,dynamicUrlParameters:Q,partnerConfigMinReadTimestamp:J}).then(function(K){return new IP5(p,U,Y,L,K,void 0,O,D,Q,J)})},kYL=function(S,p,U){a:{var Y=new VPX;
if(Y.storage!==null)try{var L=Y.storage.get("SAVED_SESSION");if(L===void 0){var I=null;break a}if(L.serviceId===S){I=L;break a}}catch(V){}I=null}if(I===null)return Promise.resolve({statusCode:2});TKt(S);Y=Wes(I.linkingSessionSerialized);return OvL(new IP5(S,I.sessionId,p,U,Y,I.googleScopesString!==""&&I.googleScopesString!==void 0?new Set(I.googleScopesString.split(",")):void 0,I.callerState,I.consentLanguageKeys,I.dynamicUrlParameters,I.partnerConfigMinReadTimestamp),I.currentFlow,I.consentLanguageKeys)},
B6n=function(S){var p=new VPX;
p.storage!==null&&p.storage.set("SAVED_SESSION",S)},TKt=function(S){var p=new VPX;
if(p.storage!==null){var U=p.storage.get("SAVED_SESSION");U!==void 0&&U.serviceId===S&&p.storage.remove("SAVED_SESSION")}},MPt=function(S){var p=new Set;
S=_.d(S);for(var U=S.next();!U.done;U=S.next())U=U.value,U!==1&&Hvs.has(U)&&p.add(Hvs.get(U));return p},JM=function(S,p){p!==void 0&&(S.callerState=p);
return S},DWq=function(S){switch(S){case 5:return 3;
case 7:return 4;case 16:return 5;case 13:return 7;default:return 12}},nv5=function(){var S={timeout:5E3};
S=S===void 0?{}:S;return zYd!=null?zYd:zYd=QVn(S)},JUA=function(){return new Promise(function(S,p){window.gapi.load("client",{callback:S,
onerror:p})})},QVn=function(S){S=S===void 0?{}:S;
var p;return _.T(function(U){if(U.nextAddress==1){if((p=window.gapi)&&p.client&&p.client.load)U=U.return(p);else{var Y=_.dc("https://apis.google.com/js/api.js");U=_.k(U,_.ro(Y,S),2)}return U}if(U.nextAddress!=3){p=window.gapi;if(!p)throw Error("Xj");return p.client&&p.client.load?U.jumpTo(3):_.k(U,JUA(),3)}return U.return(p)})},KeT=function(S,p){p=p===void 0?0:p;
var U=S.auth2.getAuthInstance().currentUser.get(),Y=U.getAuthResponse(!0);if(Y&&Y.expires_at-Date.now()<p){if(yUq.has(S))return yUq.get(S);p=Promise.resolve(U.reloadAuthResponse()).finally(function(){yUq.delete(S)});
yUq.set(S,p);return p}return Promise.resolve()},bvL=function(S,p){var U;
return S.client.init({apiKey:p.apiKey,clientId:p.clientId,scope:p.scope,discoveryDocs:p.discoveryDocs,hostedDomain:p.hostedDomain,fetchBasicProfile:(U=p.fetchBasicProfile)!=null?U:!0})},jVs=function(S){if(S.queryParams!=null){var p={},U;
for(U in S.queryParams)S.queryParams[U]!==void 0&&(p[U]=S.queryParams[U]);S.queryParams=p}},hYP=function(S){return new rUJ(S,new GYs(S))},XHt=function(S,p){p=p===void 0?!1:p;
var U=document.createElement("div");S&&(U.style.transform="scaleX(-1)");U.style.backgroundColor=p?"rgba(138,180,248,.24)":"#e8f0fe";U.style.height="4px";U.style.overflow="hidden";U.style.position="absolute";U.style.top="0";U.style.width="100%";U.style.zIndex="1500";U.setAttribute("aria-label","Loading");U.setAttribute("aria-live","polite");S=document.createElement("style");S.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  }";
U.appendChild(S);S=RYt();S.style.animation="omdc-linear-progress-primary-indeterminate-translate 2s infinite linear";S.style.left="-145.166611%";var Y=FeJ(p);Y.style.animation="omdc-linear-progress-primary-indeterminate-scale 2s infinite linear";S.appendChild(Y);U.appendChild(S);S=RYt();S.style.animation="omdc-linear-progress-secondary-indeterminate-translate 2s infinite linear";S.style.left="-54.888891%";p=FeJ(p);p.style.animation="omdc-linear-progress-secondary-indeterminate-scale 2s infinite linear";
S.appendChild(p);U.appendChild(S);return U},RYt=function(){var S=document.createElement("div");
S.style.height="100%";S.style.position="absolute";S.style.transformOrigin="top left";S.style.width="100%";return S},FeJ=function(S){var p=document.createElement("span");
p.style.borderTop=S?"4px solid #669df6":"4px solid #4285f4";p.style.display="inline-block";p.style.position="absolute";p.style.width="100%";return p},PQi=function(S){return S==null?void 0:_.eeP(S).valueOf()},gvt=function(S){var p=document.body,U=!1,Y=function(){U||(U=!0,Zvn(L,I),setTimeout(function(){p.removeChild(I);
p.removeChild(L)},150))},L=sVP(S,getComputedStyle(p).direction==="rtl",Y),I=eYY(Y);
Zvn(L,I);p.appendChild(I);p.appendChild(L);window.requestAnimationFrame(function(){I.style.opacity="1";L.style.opacity="1";L.style.transform="translate(-50%, -50%) scale(1)";L.children[0].focus()})},sVP=function(S,p,U){var Y=document.createElement("div");
Y.style.position="fixed";Y.style.alignItems="center";Y.style.backgroundColor=S?"rgb(32, 33, 36)":"white";Y.style.boxShadow="0px 1px 2px rgba(60,64,67,0.3), 0px 2px 6px 2px rgba(60,64,67,0.15);";Y.style.display="flex";Y.style.flexDirection="column";Y.style.justifyContent="center";Y.style.left="50%";Y.style.top="50%";Y.style.transition="opacity 75ms linear,transform 150ms cubic-bezier(0,0,0.2,1)";Y.style.zIndex="2002";document.body.clientWidth>=660?(Y.style.borderRadius="8px",Y.style.minHeight="220px",
Y.style.maxHeight="90%",Y.style.maxWidth="90%",Y.style.minWidth="540px"):(Y.style.height="100%",Y.style.width="100%");Y.setAttribute("aria-label","Error");Y.setAttribute("aria-modal","true");Y.setAttribute("role","alertdialog");Y.addEventListener("keydown",function(I){I.key==="Escape"&&U()});
p=urL(S,p,U);Y.appendChild(wHT(p));Y.appendChild(p);var L=document.createElement("img");L.src=S?"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";L.style.height="72px";L.style.width="72px";L.style.color="#9aa0a6";L.setAttribute("alt","");Y.appendChild(L);L=document.createElement("h1");L.textContent="Something went wrong.  Try again.";
L.style.fontFamily="'Google Sans', Roboto, Arial, sans-serif";L.style.lineHeight="24px";L.style.fontSize="16px";L.style.textAlign="center";L.style.letterSpacing="0.1px";L.style.color=S?"rgb(232,234,237)":"#3c4043";Y.appendChild(L);Y.appendChild(wHT(p));return Y},urL=function(S,p,U){var Y=document.createElement("button");
Y.style.backgroundColor="transparent";Y.style.border="none";Y.style.borderRadius="50%";Y.style.cursor="pointer";Y.style.outline="none";Y.style.padding="12px";Y.setAttribute("aria-label","Close dialog");Y.style.position="absolute";Y.style.top="0";p?Y.style.right="0":Y.style.left="0";Y.addEventListener("focus",function(){Y.style.backgroundColor=S?"rgba(232, 234, 237,.12)":"rgba(0,0,0,.12)"});
Y.addEventListener("blur",function(){Y.style.backgroundColor="transparent"});
Y.addEventListener("mouseenter",function(){Y.style.backgroundColor=S?"rgba(232, 234, 237, .04) ":"rgba(0,0,0,.04)"});
Y.addEventListener("mouseleave",function(){Y.style.backgroundColor="transparent"});
Y.addEventListener("click",U);Y.addEventListener("keydown",function(L){L.key!=="Enter"&&L.key!=="Space"||U()});
p=document.createElement("img");p.src=S?"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";p.style.display="block";p.style.height="24px";p.style.width="24px";p.setAttribute("alt","");Y.appendChild(p);return Y},wHT=function(S){var p=document.createElement("div");
p.setAttribute("tabindex","0");p.setAttribute("aria-hidden","true");p.addEventListener("focus",function(){return void S.focus()});
return p},eYY=function(S){var p=document.createElement("div");
p.style.backgroundColor="rgba(32,33,36,0.6)";p.style.bottom="0";p.style.left="0";p.style.position="fixed";p.style.right="0";p.style.top="0";p.style.transition=" opacity 150 ms linear";p.style.zIndex="2001";p.addEventListener("click",S);return p},Zvn=function(S,p){p.style.opacity="0";
S.style.opacity="0";S.style.transform="translate(-50%, -50%) scale(0.8)"},lPT=function(S,p){S.sandbox&&S.sandbox.add&&(S.sandbox.add("allow-same-origin","allow-scripts","allow-forms","allow-popups","allow-popups-to-escape-sandbox","allow-storage-access-by-user-activation"),S.sandbox.add("allow-downloads"));
S.src=p},jr=function(S){aPd.call(this,S)},rF=function(S,p){p=p===void 0?!1:p;
this.parsedImageUrl_=null;S instanceof fPA||(CQT==void 0&&(CQT=new xWY),S=CQT.parse(S.toString(),p));S=this.parsedImageUrl_=S;S.JSC$17333_parsedOptions_==void 0&&((p=S.getOptions())||(p=""),S.JSC$17333_parsedOptions_=(new EvT).parse(p));aPd.call(this,S.JSC$17333_parsedOptions_);this.protocolPrefix_=this.parsedImageUrl_.originalPrefix_;S=this.parsedImageUrl_;p=S.uri_.JSC$8037_port_;this.JSC$17335_domain_=S.uri_.JSC$8037_domain_+(p?":"+p:"");this.JSC$17335_query_=this.parsedImageUrl_.uri_.JSC$8037_queryData_.toString()},
mWL=function(S){this.mode=4;
this.data=S;this.parsedData=[];S=0;for(var p=this.data.length;S<p;S++){var U=[],Y=this.data.charCodeAt(S);Y>65536?(U[0]=240|(Y&1835008)>>>18,U[1]=128|(Y&258048)>>>12,U[2]=128|(Y&4032)>>>6,U[3]=128|Y&63):Y>2048?(U[0]=224|(Y&61440)>>>12,U[1]=128|(Y&4032)>>>6,U[2]=128|Y&63):Y>128?(U[0]=192|(Y&1984)>>>6,U[1]=128|Y&63):U[0]=Y;this.parsedData.push(U)}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))},ovE=function(S){this.typeNumber=0;
this.errorCorrectLevel=S===void 0?2:S;this.modules=null;this.moduleCount=0;this.dataCache=null;this.dataList=[]},Ga=function(S,p){if(S.length==void 0)throw Error("rk`"+S.length+"`"+p);
for(var U=0;U<S.length&&S[U]==0;)U++;this.num=Array(S.length-U+p);for(p=0;p<S.length-U;p++)this.num[p]=S[p+U]},vvd=function(S,p){this.totalCount=S;
this.dataCount=p},$Ws=function(){this.buffer=[];
this.length=0},ivs=function(){var S=!1;
if(_.kGE()){S=_.zG();var p="";_.zdw()?(p=/Windows (?:NT|Phone) ([0-9.]+)/,p=(S=p.exec(S))?S[1]:"0.0"):_.ue()?(p=/(?:iPhone|iPod|iPad|CPU)\s+OS\s+(\S+)/,p=(S=p.exec(S))&&S[1].replace(/_/g,".")):_.DGq()?(p=/Mac OS X ([0-9_.]+)/,p=(S=p.exec(S))?S[1].replace(/_/g,"."):"10"):_.OX(_.zG(),"KaiOS")?(p=/(?:KaiOS)\/(\S+)/i,p=(S=p.exec(S))&&S[1]):_.kGE()?(p=/Android\s+([^\);]+)(\)|;)/,p=(S=p.exec(S))&&S[1]):_.Quw()&&(p=/(?:CrOS\s+(?:i686|x86_64)\s+([0-9.]+))/,p=(S=p.exec(S))&&S[1]);S=p||""}return S},cUq=function(S,
p){this.JSC$17358__htOption={width:256,
height:256,typeNumber:4,colorDark:"#000000",colorLight:"#ffffff",correctLevel:2};if(p)for(var U in p)this.JSC$17358__htOption[U]=p[U];this.JSC$17358__htOption.useSVG&&(NKJ=BKT);this.JSC$17358__android=ivs();this.JSC$17358__el=S;this._oQRCode=null;this._oDrawing=new NKJ(this.JSC$17358__el,this.JSC$17358__htOption);this.JSC$17358__htOption.text&&(S=this.JSC$17358__htOption.text,this._oQRCode=new ovE(this.JSC$17358__htOption.correctLevel),q9s(this._oQRCode,S),p=this._oQRCode,AU5(p,!1,tPX(p)),this.JSC$17358__el.title=
S,this._oDrawing.draw(this._oQRCode),this.makeImage())},SRE=function(S,p,U,Y,L){S.save();
var I=new Path2D;I.roundRect(p,U,Y*7,Y*7,Y*2);I.roundRect(p+Y,U+Y,Y*5,Y*5,Y*1.3);I.roundRect(p+2*Y,U+2*Y,Y*3,Y*3,Y);S.clip(I,"evenodd");S.fillStyle=L;S.fillRect(0,0,S.canvas.width,S.canvas.height);S.restore()},hM=function(S,p){if(typeof S!=="function")throw Error("uk");
return _.UX.setTimeout(function(){S()},p)},R$=function(){},U0P=function(S,p,U,Y,L){(new R$).debug("TestLoadImageWithRetries: "+L);
if(Y==0)U(!1);else{var I=L||0;Y--;prX(S,p,function(V){V?U(!0):_.UX.setTimeout(function(){U0P(S,p,U,Y,I)},I)})}},prX=function(S,p,U){var Y=new R$;
Y.debug("TestLoadImage: loading "+S);var L=new Image;L.onload=function(){try{Y.debug("TestLoadImage: loaded"),YRt(L),U(!0)}catch(I){}};
L.onerror=function(){try{Y.debug("TestLoadImage: error"),YRt(L),U(!1)}catch(I){}};
L.onabort=function(){try{Y.debug("TestLoadImage: abort"),YRt(L),U(!1)}catch(I){}};
L.ontimeout=function(){try{Y.debug("TestLoadImage: timeout"),YRt(L),U(!1)}catch(I){}};
_.UX.setTimeout(function(){if(L.ontimeout)L.ontimeout()},p);
L.src=S},YRt=function(S){S.onload=null;
S.onerror=null;S.onabort=null;S.ontimeout=null},L$5=function(){this.front_=[];
this.back_=[]},MFJ=function(S,p){_.hY.call(this);
this.delay_=new _.Fa(this.JSC$17484_onTick_,0,this);_.Hm(this,this.delay_);this.JSC$17482_interval_=5E3;this.nextTickTime_=0;if(typeof S==="function")p&&(S=(0,_.RW)(S,p));else if(S&&typeof S.handleEvent==="function")S=(0,_.RW)(S.handleEvent,S);else throw Error("Ca");this.JSC$17484_listener_=S},FZ=function(S,p,U,Y,L,I,V,W,O,D,z,Q,J,K){U=U===void 0?!1:U;
Y=Y===void 0?function(){return""}:Y;
L=L===void 0?!1:L;I=I===void 0?!1:I;V=V===void 0?!1:V;W=W===void 0?function(){return _.Mw({})}:W;
O=O===void 0?!1:O;z=z===void 0?!1:z;Q=Q===void 0?!1:Q;J=J===void 0?!1:J;K=K===void 0?!1:K;this.JSC$17485_pathPrefix_=S;this.defaultQueryParams_=p;this.pubsub_=new _.kU;this.reconnectTimer_=new MFJ(this.safeReconnect_,this);this.JSC$17485_channel_=null;this.JSC$17485_disposed_=!1;this.connectionParams_=null;this.sCookie_="";this.disconnectUi_=this.connectUi_=0;this.JSC$17485_pendingMessages_=[];this.enableAsyncTest_=U;this.JSC$17485_getXsrfToken_=Y;this.useAsyncBrowserChannelHandler_=I;this.getAuthorizationHeader_=
W;this.getAuthorizationHeaderSync_=D;this.enableCachedUpdateAuthorizationHeader_=V;this.updateAuthorizationHeaderPromise_=null;this.connectPromise_=_.Mw();this.enableLoungeTokenRefresh_=L;this.enableAsyncMdxLibraryWithoutAuthHeaderFetch_=O;this.disableMdxAuthForNonPlaybackMessages_=z;this.disableMdxAuthForAdMessages_=Q;this.enableMdxAuthForConnectionOnly_=J;this.disableMdxAuthForShortsMessages_=K;this.JSC$17485_channelOpenedCounter=new Icd;this.JSC$17485_channelClosedCounter=new d0q;this.channelMessageSentCounter=
new VFo;this.JSC$17485_channelMessageReceivedCounter=new TVn;this.JSC$17485_channelErrorCounter=new W$L;this.pendingMapsOnClosedCounter=new OZL;this.undeliveredMapsOnClosedCounter=new kTq},XZ=function(S){this.scheme="https";
this.port=this.domain="";this.basePath="/api/lounge";this.supportCors=!0;S=S||document.location.href;var p=Number(_.$s(S)[4]||null)||"";p&&(this.port=":"+p);this.domain=_.ib(S)||"";S=_.zG();S.search("MSIE")>=0&&_.Dw(S.match(/MSIE ([\d.]+)/)[1],"10.0")<0&&(this.supportCors=!1)},P2=function(S){S=S||{};
this.name=S.name||"";this.id=S.id||S.screenId||"";this.token=S.token||S.loungeToken||"";this.uuid=S.uuid||S.dialId||"";this.idType=S.screenIdType||"normal"},HZn=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(S){var p=Math.random()*16|0;
return(S=="x"?p:p&3|8).toString(16)})},D0i=function(S){return _.Fp(S,function(p){return{key:p.id,
name:p.name}})},zkX=function(S,p){return _.fr(S,function(U){return U||p?!U!=!p?!1:U.id==p.id:!0})},sJ=function(S,p){return _.fr(S,function(U){return Z8(U,p)})},K$L=function(){var S=QHn(),p=nus();
if(Jrt()){var U=S,Y=_.brd(U,p);Y<0&&_.KqN(U,-(Y+1),0,p)}S=yrn(S);if(S.length==0)try{_.dUN("remote_sid")}catch(L){}else try{_.zp("remote_sid",S.join(","),-1)}catch(L){}},QHn=function(){var S=_.Uz("yt-remote-connected-devices")||[];
S.sort(_.Lc);return S},yrn=function(S){if(S.length==0)return[];
var p=S[0].indexOf("#"),U=p==-1?S[0]:S[0].substring(0,p);return _.Fp(S,function(Y,L){return L==0?Y:Y.substring(U.length)})},bZt=function(S){_.p$("yt-remote-connected-devices",S,86400)},nus=function(){if(jHd)return jHd;
var S=_.Uz("yt-remote-device-id");S||(S=HZn(),_.p$("yt-remote-device-id",S,31536E3));for(var p=QHn(),U=1,Y=S;_.ou(p,Y);)U++,Y=S+"#"+U;return jHd=Y},rrP=function(){return _.Uz("yt-remote-session-browser-channel")},Jrt=function(){return _.Uz("yt-remote-session-screen-id")},RkP=function(S){S.length>5&&(S=S.slice(S.length-5));
var p=_.Fp(GTo(),function(Y){return Y.loungeToken}),U=_.Fp(S,function(Y){return Y.loungeToken});
_.tNw(U,function(Y){return!_.ou(p,Y)})&&hk5();
_.p$("yt-remote-local-screens",S,31536E3)},GTo=function(){return _.Uz("yt-remote-local-screens")||[]},hk5=function(){_.p$("yt-remote-lounge-token-expiration",!0,86400)},er=function(S){S||(_.Y2("yt-remote-session-screen-id"),_.Y2("yt-remote-session-video-id"));
K$L();S=QHn();_.NG(S,nus());bZt(S)},XrT=function(){F$J();
return gF?!!gF.get("yt-remote-use-staging-server"):!1},F$J=function(){if(!gF){var S=_.Q9G();
S&&(gF=new _.KA(S))}},ekE=function(S,p,U,Y,L){U=U===void 0?function(){return""}:U;
var I=function(){return new FZ(ud(S,"/bc"),p,!1,U,Y)};
return _.y("enable_mdx_web_channel_desktop")?new PNX(function(){return new ZZi(ud(S,"/wc"),p,U)}):new sHn(I,L)},lci=function(){var S=guT;
ujJ();wF.push(S);wro()},ld=function(S,p){ujJ();
var U=acT(S,String(p));wF.length==0?fcE(U):(wro(),_.xs(wF,function(Y){Y(U)}))},a$=function(S){ld("CP",S)},ujJ=function(){wF||(wF=_.ad("yt.mdx.remote.debug.handlers_")||[],_.NT("yt.mdx.remote.debug.handlers_",wF))},fcE=function(S){var p=(fi+1)%50;
fi=p;CNJ[p]=S;x0T||(x0T=p==49)},wro=function(){var S=wF;
if(CNJ[0]){var p=x0T?fi:-1,U={};do U={record$jscomp$13:void 0},p=(p+1)%50,U.record$jscomp$13=CNJ[p],_.xs(S,function(Y){return function(L){L(Y.record$jscomp$13)}}(U));
while(p!=fi);CNJ=Array(50);fi=-1;x0T=!1}},acT=function(S,p){var U=(Date.now()-EuE)/1E3;
U.toFixed&&(U=U.toFixed(3));var Y=[];Y.push("[",U+"s","] ");Y.push("[","yt.mdx.remote","] ");Y.push(S+": "+p,"\n");return Y.join("")},Ci=function(S){_.qS.call(this);
this.JSC$17509_logName_=S;this.screens=[]},EJ=function(S){Ci.call(this,"LocalScreenService");
this.JSC$17516_http_=S;this.loungeTokenRefreshTimer_=NaN;x3(this);this.info("Initializing with "+m0A(this.screens))},mN=function(S,p){p=p===void 0?!1:p;
Ci.call(this,"ScreenService");this.JSC$17522_http_=S;this.disableAutomaticScreenCache_=p;this.onlineScreenService_=this.localScreenService_=null;this.automaticScreens_=[];this.deviceToScreenId_={};ou5(this)},o$=function(S,p,U){_.qS.call(this);
this.JSC$17526_logName_=U;this.JSC$17526_screenService_=S;this.receiver_=p;this.screen_=null},MmT=function(S,p,U){U.disableCastApi?v2("Cannot initialize because disabled by Mdx config."):vuA()?$0q(S,U)&&(iZJ(!0),window.chrome&&chrome.cast&&chrome.cast.isAvailable?NVs(p):(window.__onGCastApiAvailable=function(Y,L){Y?NVs(p):($3("Failed to load cast API: "+L),BVX(!1),iZJ(!1),_.Y2("yt-remote-cast-available"),_.Y2("yt-remote-cast-receiver"),qRi(),p(!1))},U.loadCastApiSetupScript?_.uL("https://www.gstatic.com/cv/js/sender/v1/cast_sender.js"):
window.navigator.userAgent.indexOf("Android")>=0&&window.navigator.userAgent.indexOf("Chrome/")>=0&&window.navigator.presentation?Arq()>=60&&tFJ():!window.chrome||!window.navigator.presentation||window.navigator.userAgent.indexOf("Edge")>=0?crn():Arq()>=89?S$n():(pvY(),UUq(Y$T.map(LaJ))))):v2("Cannot initialize because not running Chrome")},qRi=function(){v2("dispose");
var S=id();S&&S.dispose();_.NT("yt.mdx.remote.cloudview.instance_",null);ILY(!1);_.Bze(dUi);dUi.length=0},VmE=function(){return!!_.Uz("yt-remote-cast-installed")},TnY=function(){var S=_.Uz("yt-remote-cast-receiver");
return S?S.friendlyName:null},Wat=function(){v2("clearCurrentReceiver");
_.Y2("yt-remote-cast-receiver")},O9L=function(){return VmE()?id()?id().getCastSession():($3("getCastSelector: Cast is not initialized."),null):($3("getCastSelector: Cast API is not installed!"),null)},H9T=function(S,p){k0L()?id().setConnectedScreenStatus(S,p):$3("setConnectedScreenStatus called before ready.")},vuA=function(){var S=_.zG().search(/ (CrMo|Chrome|CriOS)\//)>=0;
return _.LT||S},$0q=function(S,p){var U=!1;
id()||(S=new Ny(S,p),S.subscribe("yt-remote-cast2-availability-change",function(Y){_.p$("yt-remote-cast-available",Y);UJ("yt-remote-cast2-availability-change",Y)}),S.subscribe("yt-remote-cast2-receiver-selected",function(Y){v2("onReceiverSelected: "+Y.friendlyName);
_.p$("yt-remote-cast-receiver",Y);UJ("yt-remote-cast2-receiver-selected",Y)}),S.subscribe("yt-remote-cast2-receiver-resumed",function(Y){v2("onReceiverResumed: "+Y.friendlyName);
_.p$("yt-remote-cast-receiver",Y);UJ("yt-remote-cast2-receiver-resumed",Y)}),S.subscribe("yt-remote-cast2-session-change",function(Y){v2("onSessionChange: "+DUd(Y));
Y||_.Y2("yt-remote-cast-receiver");UJ("yt-remote-cast2-session-change",Y)}),_.NT("yt.mdx.remote.cloudview.instance_",S),U=!0);
v2("cloudview.createSingleton_: "+U);return U},id=function(){return _.ad("yt.mdx.remote.cloudview.instance_")},NVs=function(S){BVX(!0);
iZJ(!1);id().init(!1,function(p){p?(ILY(!0),_.q1w("yt-remote-cast2-api-ready")):($3("Failed to initialize cast API."),BVX(!1),_.Y2("yt-remote-cast-available"),_.Y2("yt-remote-cast-receiver"),qRi());S(p)})},v2=function(S){ld("cloudview",S)},$3=function(S){ld("cloudview",S)},BVX=function(S){v2("setCastInstalled_ "+S);
_.p$("yt-remote-cast-installed",S)},k0L=function(){return!!_.ad("yt.mdx.remote.cloudview.apiReady_")},ILY=function(S){v2("setApiReady_ "+S);
_.NT("yt.mdx.remote.cloudview.apiReady_",S)},iZJ=function(S){_.NT("yt.mdx.remote.cloudview.initializing_",S)},B2=function(S){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(S)},z0Y=function(){var S,p;
return _.T(function(U){if(U.nextAddress==1)return(_.eFw()||_.y("use_new_nwl"))&&_.XBX().isNetworkAvailable()?_.k(U,_.BS(),2):U.return();if(U.nextAddress!=3)return(S=U.yieldResult)?_.k(U,N7o(S),3):U.return();p=U.yieldResult;if(!p.length)return U.return();p.forEach(function(Y){var L={timestamp:Y.timestamp};Y=Y.appShellAssetLoadReport?{payloadName:"appShellAssetLoadReport",payload:Y.appShellAssetLoadReport,options:L}:Y.clientError?{payloadName:"clientError",payload:Y.clientError,options:L}:void 0;Y&&
_.RV(Y.payloadName,Y.payload,Y.options)});
p.length===100&&_.PA.addLowPriorityJob(z0Y);_.OV(U)})},Q9q=function(S){if(S.playerResponse){if(S=S.playerResponse,S.messages&&S.messages.length>0&&(S=S.messages.find(function(p){return!(!p||!p.mealbarPromoRenderer)}))&&S.mealbarPromoRenderer)return S.mealbarPromoRenderer}else if(S.response&&(S=S.response)&&S.overlay&&S.overlay.mealbarPromoRenderer)return S.overlay.mealbarPromoRenderer},nns=function(S){if(S.response){var p=S.response;
if(p&&p.overlay&&p.overlay.tooltipRenderer)return p.overlay.tooltipRenderer}if(S.playerResponse&&(S=S.playerResponse,S.messages&&S.messages.length>0&&(S=S.messages.find(function(U){return!(!U||!U.tooltipRenderer)}))&&S.tooltipRenderer))return S.tooltipRenderer},y8t=function(S){if(!J8L&&(S=S||_.g7("ZWIEBACK_PING_URLS"))&&S.length){J8L=!0;
for(var p=0;p<S.length;p++)_.Cf(S[p])}},b95=function(S){if(_.h9.get(_.g7("PLAYER_VARS",{}),"privembed",!1)!="1"){S&&fCt();
try{Ka5().then(function(){},function(){}),_.MT(b95,18E5)}catch(p){_.w7(p)}}},j9T=function(){var S=_.D9(),p=S.getFlag(119),U=window.devicePixelRatio>1;
document.body&&_.sD(document.body,"exp-invert-logo")&&(U&&!_.sD(document.body,"inverted-hdpi")?_.vX(document.body,"inverted-hdpi"):!U&&_.sD(document.body,"inverted-hdpi")&&_.ms(document.body,"inverted-hdpi"));p!=U&&(_.zI(0,119,U),S.save())},r8E=function(S){return S.filter(function(p){return"ypcGetCartEndpoint"in p||"ypcFixInstrumentEndpoint"in p})},G0L=function(S){return S.filter(function(p){return!_.b(p,_.xcj)})},R0Y=function(S){S=_.d(S);
for(var p=S.next(),U={};!p.done;U={setter$jscomp$6:void 0},p=S.next()){var Y=p.value;p=Y.params;Y=Y.service;p&&Y&&(U.setter$jscomp$6=h0P[Y],U.setter$jscomp$6&&p.forEach(function(L){return function(I){var V=I.key;I=I.value;V&&I&&(0,L.setter$jscomp$6)(V,I)}}(U)))}},XvA=function(S,p){var U,Y,L,I,V,W,O;
_.T(function(D){switch(D.nextAddress){case 1:U=_.Gv.getInstance();Y=_.VO.instance;L=_.uZ.instance;if(!L)return FaA(S,Y,p),D.return();_.M2(D,2);S.onLoadingCommand&&Y.resolveCommand(S.onLoadingCommand);return _.k(D,U.getCurrentPositionFromGeolocation(),4);case 4:I=D.yieldResult;if(!S.resolveLocationCommand){D.jumpTo(5);break}V=U.createLocationInfo(I);return _.k(D,_.lZ(L,S.resolveLocationCommand,{locationInfo:V}),6);case 6:W=D.yieldResult;if(!W||"error"in W&&W.error||W.errorMetadata)return FaA(S,Y,p),
D.return();var z;if(W==null?0:(z=W.onResponseReceivedActions)==null?0:z.length){z=_.d(W.onResponseReceivedActions);for(var Q=z.next();!Q.done;Q=z.next())Y.resolveCommand(Q.value)}(_.b(S.onSuccessCommand,_.E$)||_.b(S.onSuccessCommand,_.kM))&&_.cv(p.hostElement,"yt-navigate",{endpoint:S.onSuccessCommand,reload:!0});case 5:_.CA(D,0);break;case 2:O=_.W4(D);if(O instanceof GeolocationPositionError&&O.code===GeolocationPositionError.PERMISSION_DENIED)return S.onDeniedCommand&&Y.resolveCommand(S.onDeniedCommand),
D.return();FaA(S,Y,p);_.OV(D)}})},FaA=function(S,p,U){S.onFailureCommand&&(p.resolveCommand(S.onFailureCommand),_.St(U.hostElement,"yt-close-popup-action",["yt-confirm-dialog-renderer"]))},Z9o=function(S,p){var U=_.b(S,_.pgP);
if(U&&p){S=U.videoIds||[U.videoId];var Y;p=(Y=_.cv(p,"yt-lockup-requested",{videoIds:S}).detail)==null?void 0:Y.returnValue;var L;U.listType==="PLAYLIST_EDIT_LIST_TYPE_QUEUE"?L=p?p:S.map(function(I){return{videoId:I,navigationEndpoint:U.videoCommand}}):p&&(L=p);
L&&(Y=L.map(function(I){var V=Object,W=V.assign;var O=I.navigationEndpoint;if(!_.b(O,_.QX)){var D=_.b(O,_.E$);if(D){if(delete D.index,delete D.playlistId,D=_.b(O==null?void 0:O.commandMetadata,_.NU),D==null?0:D.url){var z=D.url;z=_.iL(z,"list");z=_.iL(z,"index");D.url=z}}else O=void 0}return W.call(V,{},I,{ownerBadges:void 0,topStandaloneBadge:void 0,menu:void 0,navigationEndpoint:O})}),PLi(Y,U))}},s9T=function(S){var p=_.e8();
if(S=_.b(S,_.UOq))S.listType==="PLAYLIST_EDIT_LIST_TYPE_QUEUE"&&p.clearQueue(),S.closeMiniplayer&&_.tW().resolve(_.eC).close(!0)},gnP=function(S){e0T(_.e8(),S)},u$i=function(S){var p;
(S=(p=_.b(S,_.cxe))==null?void 0:p.setVideoIds)&&S.forEach(function(U){_.SQe(_.e8(),U)})},lLn=function(S){wvn(_.e8(),S)},aLo=function(){try{return!(!window.AudioContext&&!window.webkitAudioContext)}catch(S){return!1}},fLA=function(S){var p=_.tW().resolve(_.AW(_.nO));
if(p){var U={beforeTransition:function(){S.style.viewTransitionName="miniplayer-page-transition"},
afterTransition:function(){S.style.viewTransitionName=""}};
qy(p,"slide",U);qy(p,"zoom",U)}},CLY=function(S,p,U){return{horizontalAlignment:S.x+U.width/2<p.width/2?"west":"east",
verticalAlignment:S.y+U.height/2<p.height/2?"north":"south"}},mUt=function(S,p,U,Y,L){L=L===void 0?new _.Xp(0,0):L;
return xUL(En5(S,p,U,Y),L)},En5=function(S,p,U,Y){return new _.Xp(S==="west"?16:U.width-Y.width-16,p==="north"?16:U.height-Y.height-16)},oni=function(S,p){var U=0;
S&&(U+=76);p&&(U+=285);return U},vnA=function(S){var p=["h",
"m","s"],U=_.qG(p);U.reverse();var Y={};S=(S.toLowerCase().match(/\d+\s*[hms]?/g)||[]).filter(function(V){var W=(V.match(/[hms]/)||[""])[0];return W?(Y[W]=parseInt(V.match(/\d+/)[0],10),!1):!0});
for(S.reverse();S.length&&U.length;){var L=U.shift();L in Y||(Y[L]=parseInt(S.shift(),10))}if(S.length||Y.s>59||Y.m>59||Y.h>9)return null;var I="";p.forEach(function(V){Y[V]&&(I+=""+Y[V]+V)});
return I||null},$UA=function(S){S=S.data;
return _.H("yt-profile-badge-view-model",{class:"profile-badge-view-model-wiz"},_.H("div",{class:"profile-badge-view-model-wiz__badge-icon-container"},_.H(_.of,{data:{thumbnails:[{url:S.badgeIconUrl}]},alt:"",targetWidth:36,targetHeight:36})),_.H("div",{class:"profile-badge-view-model-wiz__content"},_.H("div",{class:"profile-badge-view-model-wiz__badge-description"},S.badgeDesc),S.badgeSubtitle?_.H("div",{class:"profile-badge-view-model-wiz__badge-subtitle"},S.badgeSubtitle):null))},i9J=function(S){S=
S.data;
var p=_.vH();_.WHq(p,S.rendererContext);return _.H("yt-comment-interaction-view-model",{el:p,class:"yt-comment-interaction-view-model-wiz"},_.H("div",{class:"yt-comment-interaction-view-model-wiz__frame",role:"button","aria-label":S.onTapA11yLabel,"on:keydown":_.LHN(),tabindex:0},_.H("div",{class:"yt-comment-interaction-view-model-wiz__header"},_.H("div",{class:"yt-comment-interaction-view-model-wiz__video-title"},S.headerPrefix,' "',S.videoTitle),_.H("div",{class:"yt-comment-interaction-view-model-wiz__video-title-quote"},
'"')),_.H("div",{class:"yt-comment-interaction-view-model-wiz__content"},_.H("div",{class:"yt-comment-interaction-view-model-wiz__comment-content"},S.commentContent),_.H("div",{class:"yt-comment-interaction-view-model-wiz__chevron"},_.H(_.of,{data:{thumbnails:[{url:S.chevronUrl}]},alt:"",targetWidth:18,targetHeight:18})))))},Bn5=function(S){S=S.data;
return _.H("yt-shared-subscription-view-model",{class:"yt-shared-subscription-view-model-wiz"},Nnd(S.avatar),_.H("div",{class:"yt-shared-subscription-view-model-wiz__channel-name"},S.channelName))},A8X=function(S){S=S.data;
var p;return _.H("div",{class:"yt-profile-info-view-model-wiz__activity"},_.H("div",{class:"yt-profile-info-view-model-wiz__header"},_.H("div",{class:"yt-profile-info-view-model-wiz__section-title"},S.commentsInteractionTitle)),(p=S.comments)==null?void 0:p.map(function(U){return _.H("div",{class:"yt-profile-info-view-model-wiz__activity"},q$5(U))}))},tmA=function(S){S=S.data;
var p=_.gx({elementsCommand:S.subscriptionsAccessButtonCommand}),U=_.vH();_.xSw(U,_.sW(S.subscriptionsAccessButtonCommand));var Y;return _.H("div",{class:"yt-profile-info-view-model-wiz__sub-section"},_.H("div",{class:"yt-profile-info-view-model-wiz__sub-header"},_.H("a",{el:U,"on:click":_.kL(function(L){if(p==null?0:p.onclick)p.onclick(L);return!1}),
class:"yt-profile-info-view-model-wiz__another-header"},_.H("div",{class:"yt-profile-info-view-model-wiz__section-title-modern"},S.sharedSubscriptionsTitle),_.H("div",null,q$5(S.subscriptionsAccessButton)))),_.H("div",{class:"yt-profile-info-view-model-wiz__subs"},(Y=S.sharedSubscriptions)==null?void 0:Y.slice(0,5).map(function(L){return _.H("div",{class:"yt-profile-info-view-model-wiz__sub"}," ",q$5(L))})))},c8o=function(S){S=S.data;
var p;return _.H("div",{class:"yt-profile-info-view-model-wiz__sub-section"},_.H("div",{class:"yt-profile-info-view-model-wiz__sub-header"},_.H("h2",{class:"yt-profile-info-view-model-wiz__section-title"},S.sharedSubscriptionsTitle)),_.H("div",{class:"yt-profile-info-view-model-wiz__subs"},(p=S.sharedSubscriptions)==null?void 0:p.slice(0,5).map(function(U){return _.H("div",{class:"yt-profile-info-view-model-wiz__sub"}," ",q$5(U))})))},ShX=function(S){S=S.data;
return _.H("div",{class:"yt-profile-info-view-model-wiz__activity"},[S.profileBadgeInfoYtWide,S.profileBadgeInfoChannelWide].map(function(p){var U,Y,L,I,V;return p?_.H(_.U0,null,_.H("div",{class:"yt-profile-info-view-model-wiz__header"},_.H("div",{class:"yt-profile-info-view-model-wiz__section-title"},p==null?void 0:p.profileSectionTitle),_.H("div",{class:"yt-profile-info-view-model-wiz__section-desc"},_.H("div",{class:"yt-profile-info-view-model-wiz__section-subtitle"},p==null?void 0:(U=p.commentBadge)==
null?void 0:U.commentDesc),(p==null?0:(Y=p.commentBadge)==null?0:Y.blackHeartDesc)?_.H("div",{class:"yt-profile-info-view-model-wiz__section-divider"},"\u2022"):null,_.H("div",{class:"yt-profile-info-view-model-wiz__section-heart-icon"},_.H(_.of,{data:{thumbnails:[{url:p==null?void 0:(L=p.commentBadge)==null?void 0:L.blackHeartIconUrl}]},alt:"",targetWidth:14,targetHeight:14,preserveWidth:!0,preserveHeight:!0})),_.H("div",{class:"yt-profile-info-view-model-wiz__section-subtitle"},p==null?void 0:(I=
p.commentBadge)==null?void 0:I.blackHeartDesc))),_.H("div",{class:"yt-profile-info-view-model-wiz__badge"},p==null?void 0:(V=p.badges)==null?void 0:V.map(function(W){return _.H($UA,{data:W})}))):null}))},pdt=function(S){S=S.data;
return _.H("yt-profile-info-view-model",{class:"yt-profile-info-view-model-wiz"},_.H(ShX,{data:S}),S.comments?_.H(A8X,{data:S}):null,S.sharedSubscriptionsTitle?S.subscriptionsAccessButtonCommand?_.H(tmA,{data:S}):_.H(c8o,{data:S}):null)},YhY=function(S){var p=S.data;
S=p?Uwq(p.profileIdentityInfo):void 0;p=p?Uwq(p.profileInfo):void 0;return _.H("yt-profile-card-view-model",{class:"yt-profile-card-view-model-wiz",style:"overflow: hidden"},S,p)},LpL=function(S,p){var U=_.wId(p,{},S,!0);
return new Promise(function(Y,L){U.listenOnce("n",function(){L(Error("el`"+U.JSC$25868_getErrorDescription()))});
U.listenOnce("l",function(){var I=U.getResponseCode();if(I!==200)L(Error("fl`"+p+"`"+S.type+"`"+S.size+"`"+I));else try{Y(JSON.parse(U.getResponseText()).encryptedBlobId)}catch(V){L(V)}});
U.run()})},Mts=function(S){return S.substring(S.indexOf(":")+1,S.indexOf(";"))},I95=function(S){return new Promise(function(p,U){var Y=new FileReader;
Y.onloadend=function(){try{var L=new Uint8Array(Y.result);L.length<8&&U(void 0);var I=L.subarray(0,8);L="";for(var V=0;V<I.length;V++)L+=("0"+I[V].toString(16)).substr(-2);L.startsWith("ffd8ff")?p("image/jpeg"):L.startsWith("47494638")?p("image/gif"):L.startsWith("89504e470d0a1a0a")?p("image/png"):L.startsWith("424d")?p("image/bmp"):p(void 0)}catch(W){U(W)}};
Y.onerror=U;Y.readAsArrayBuffer(S)})},dwE=function(S){return new Promise(function(p,U){var Y=new Image;
Y.crossOrigin="anonymous";Y.onload=function(){var L=document.createElement("canvas");L.width=Y.naturalWidth;L.height=Y.naturalHeight;var I=L.getContext("2d");if(!I)throw Error("gl");I.drawImage(Y,0,0);I=Mts(S);L.toBlob(function(V){V?p(V):U()},I)};
Y.src=S})},TBJ=function(S,p){var U;
if(((U=_.b(S,_.QX))==null?void 0:U.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS"){var Y;_.cv((Y=p.hostElement)!=null?Y:p,"yt-shorts-reset");_.LQm(_.tW().resolve(_.Ts),S).then(function(I){VtY(I,p,S)})}else{var L;
_.Yd((L=p.hostElement)!=null?L:p,[S]).then(function(I){I&&VtY(I.data,p,S)})}},VtY=function(S,p,U){if(S){var Y=_.b(S.replacementEndpoint,_.QX);
if(Y){S.sequenceContinuation&&(Y.sequenceParams=S.sequenceContinuation);var L;_.cv((L=p.hostElement)!=null?L:p,"yt-navigate",{endpoint:S.replacementEndpoint})}else if((S==null?void 0:S.status)==="REEL_ITEM_WATCH_STATUS_EMPTY"&&(S==null?0:S.watchStatus)&&_.b(S.watchStatus,_.axH)){var I;_.cv((I=p.hostElement)!=null?I:p,"yt-navigate",{endpoint:U})}}},WpJ=function(S){var p=_.tW().resolve(_.XF),U=n7o(p.getState())||"";
p=_.ile(p.getState())||"";U=U==="ytd-browse"&&p==="home";return _.y("web_guide_entry_enable_cache_for_non_home_pages")?(S=(S==null?void 0:S.navigationEndpoint)&&_.O1(S.navigationEndpoint)==="home",{disableCache:U&&S}):{disableCache:U}},OpY=function(S){if(!S)return!1;
try{if(S.host&&S.host.tagName==="YT-FORMATTED-STRING"&&S.host.id==="contenteditable-textarea"||S.nodeType===Node.ELEMENT_NODE&&S.tagName==="YTD-COMMENT-INPUT")return!0}catch(p){return!1}return OpY(S.parentNode)},AM=function(S){return S?S.tagName==="A"&&S.href&&S.classList.contains("yt-simple-endpoint"):!1},kIE=function(S){return S?S.tagName==="IMG"&&S.classList.contains("emoji"):!1},Hpd=function(S,p,U){if(!S)return null;
var Y=AM(S);if(Y&&U)return p=S.pathname.substring(S.pathname.indexOf("/channel/")+9),document.createTextNode("@"+p);if(Y&&!U)return document.createTextNode("");if(kIE(S))return U=S.alt,S=S.dataset.emojiId,!S&&p&&(p=_.k9(p,U))&&p.isCustomEmoji&&(S=p.emojiId),S?document.createTextNode("<URehb0Lc5mi4S0dpuLG8:"+S+">"):document.createTextNode(U);Y=S.cloneNode(!1);for(var L=0;L<S.childNodes.length;++L){var I=Hpd(S.childNodes[L],p,U);I&&Y.appendChild(I)}return Y},tM=function(S){return S?AM(S)?S:tM(S.lastChild):
null},DwX=function(S){return S?AM(S)?S:DwX(S.firstChild):null},zUn=function(S){if(!S)return null;
for(var p=S.previousSibling;p;)if(p.nodeType===Node.ELEMENT_NODE&&p.nodeName==="BR")p=p.previousSibling;else if(p.nodeType===Node.TEXT_NODE&&/\s+/.test(p.textContent))p=p.previousSibling;else break;(p=tM(p))?S=p:S=(S=S.parentNode)?tM(S.previousElementSibling):null;return S},Q2d=function(S){if(!S)return null;
for(var p=S.nextSibling;p;)if(p.nodeType===Node.ELEMENT_NODE&&p.nodeName==="BR")p=p.nextSibling;else if(p.nodeType===Node.TEXT_NODE&&/\s+/.test(p.textContent))p=p.nextSibling;else break;return(p=DwX(p))?p:Q2d(S.parentNode)},ndA=function(S){var p=_.Dp(),U=p.JSC$9248_getStartNode();
if(!OpY(U.parentNode))return null;p=p.JSC$9248_getStartOffset();if(U.nodeType===Node.TEXT_NODE){var Y=_.uI(U,AM);if(Y){if(S&&p===0||!S&&p===U.length)return Y}else{if(S&&p===U.length)return!U||U.nodeName==="BR"||U.nextElementSibling&&_.zh(U.nextElementSibling,"display")==="block"?null:DwX(U.nextElementSibling);if(!S&&p===0)return U?tM(U.previousElementSibling):null}}if(U.nodeType===Node.ELEMENT_NODE)if(S){if(0<=p&&p<U.childNodes.length)return DwX(U.childNodes[p])}else if(0<p&&p<=U.childNodes.length)return tM(U.childNodes[p-
1]);return null},Jad=function(S,p,U){if(!S)return null;
if(S.nodeType===Node.TEXT_NODE)if(U){var Y=zUn(S);if(Y&&!/^\s+\S/.test(S.wholeText.substr(0,p)))return Y}else if((Y=Q2d(S))&&!/\S\s+/.test(S.wholeText.substr(p,S.wholeText.length)))return Y;return S.nodeType===Node.ELEMENT_NODE?U?zUn(S.childNodes[p]):Q2d(S.childNodes[p]):Jad(S.parentNode,p,U)},yaL=function(S){if(S.hasChildNodes())switch(S.tagName){case "DIV":case "A":case "SPAN":var p="";
for(S=S.firstChild;S;S=S.nextSibling)p+=yaL(S);return p;default:return""}else switch(S.nodeType){case 3:return S.textContent;default:return""}},Kpd=function(S){S=S.data;
return _.H("ytd-menu-title-renderer",{class:"ytd-menu-title-renderer"},_.H("div",null,_.H(_.i6,{text:S.title})),S.subtitle?_.H("div",{class:"ytd-menu-title-renderer__subtitle"},_.H(_.i6,{text:S.subtitle})):null)},bpA=function(S){switch(S){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"}},j2P=function(S){return S.map(function(p){return{settingsRadioOptionRenderer:{title:_.cd(p.name),
asideText:_.cd(p.approximateSize),id:bpA(p.format)}}})},GIT=function(S){if(S&&S.length!==0)return S.filter(raX()).map(function(p){return{settingsRadioOptionRenderer:{title:p.name,
asideText:p.approximateSize,id:bpA(p.formatType)}}})},c2=function(S){if(S)return S.replaceAll("&nbsp;"," ").replaceAll("&#39;","'")},hUY=function(S,p){S=new Set(S!=null?S:[]);
if(S.has(790))return"YOUTUBE_ENTITY_TYPE_CHANNEL";if(S.has(788))return"YOUTUBE_ENTITY_TYPE_TV_SHOW";if(S.has(789))return"YOUTUBE_ENTITY_TYPE_MOVIE";if(S.has(786))return"YOUTUBE_ENTITY_TYPE_SONG";if(S.has(787))return"YOUTUBE_ENTITY_TYPE_ALBUM";if(p)return"YOUTUBE_ENTITY_TYPE_DEFAULT"},RUd=function(S){var p=S.indexOf("(");
return p!==-1?S.substring(p+1,S.length-1):S},Fpn=function(S){switch(S){case 38:return-1;
case 40:return 1;case 37:return-1;case 39:return 1;default:return 0}},P5J=function(S,p,U,Y,L,I){var V=_.h9.clone(Xd5);
V.locale=_.g7("SBOX_SETTINGS",{}).REQUEST_LANGUAGE;V.report={description:L||"<empty>"};L=_.g7("SBOX_SETTINGS",{});p=p.join(",");var W=Date.now();S={choice_cc:Y,choice_id_cc:U,choices_sc:p,gl:L.REQUEST_DOMAIN,hl:L.REQUEST_LANGUAGE,query:S,time:W};I&&(S.choice_additional_comment_cc=I);_.E9j(V,S)},ZpE=function(S){var p=new Map;
p.set("authuser",_.g7("SESSION_INDEX","0"));return _.YE(S,p)},eUX=function(S){var p;
return _.T(function(U){switch(U.nextAddress){case 1:if(!S||!s2t(S))return U.return(null);p=null;switch(_.g7("INNERTUBE_CLIENT_NAME")){case "WEB":return U.jumpTo(2);case "WEB_REMIX":p=S.getPlayer()}U.jumpTo(3);break;case 2:return _.k(U,S.getPlayerPromise(),4);case 4:p=U.yieldResult;U.jumpTo(3);break;case 3:return U.return(p)}})},s2t=function(S){return["ytd-player",
"ytmusic-player"].includes(String(S.tagName||"").toLowerCase())},gdE=function(S){S=Math.round(S);
return S%2?S-1:S},ugA=function(S){S=Math.round(S);
return S%2===0?S-1:S},wds=function(S){var p,U,Y;
if(S=(p=S.createPlaylistDialogFormSchema)==null?void 0:(U=p.fieldSchemas)==null?void 0:(Y=U.title)==null?void 0:Y.validationSchema)for(p=[S.syncStep,S.asyncStep].filter(function(L){return L!==void 0}),p=_.d(p),U=p.next();!U.done;U=p.next()){U=U.value.rules;
if(!U)break;U=_.d(U);for(U=U.next();!U.done;U=U.next())return _.b(U.value,_.EaE)}},a9i=function(S){var p,U,Y;
if(S=(p=S.createPlaylistDialogFormSchema)==null?void 0:(U=p.fieldSchemas)==null?void 0:(Y=U.visibility)==null?void 0:Y.validationSchema)for(p=[S.syncStep,S.asyncStep].filter(function(L){return L!==void 0}),p=_.d(p),U=p.next();!U.done;U=p.next()){U=U.value.rules;
if(!U)break;U=_.d(U);for(Y=U.next();!Y.done;Y=U.next())if(Y=_.b(Y.value,l9Y))return p=void 0,(p=Y.translations)==null?void 0:p.visibilityNotValidErrorMessage}},f9d=function(){var S,p;
return(p=(S=_.tW().resolve(_.AW(_.Cz)))==null?void 0:S())!=null?p:!1},C5i=function(S){var p=21;
if(!S)return p;p+=S.headerTitle?27:0;p+=S.headerTitle&&S.hasHeaderActionHeader?4:0;return p+=S.headerTitle&&S.headerSubtitle?16:0},xw5=function(S){var p=0;
if(!S)return p;p+=S.hasFooterPrimaryButton||S.hasFooterSecondaryButton?48:0;p+=S.footerTrailingLabel||S.footerLeadingLabel?30:0;return p+=S.hasFooterPrimaryButton||S.hasFooterSecondaryButton||!S.footerTrailingLabel&&!S.footerLeadingLabel?0:12},Edd=function(S){var p=new _.kU,U=S;
return{subscribe:function(Y){p.subscribe("changed",Y)},
dispatch:function(Y,L){var I=U;Y==="Touch Start"?U=Object.assign({},I,{isAnimating:!1,initialY:L.event.touches[0].clientY}):Y==="Touch Move"?(Y=Math.min(L.fullContentWrapperHeight,L.contentHeightMap[L.contentWrapperId]+C5i(L.header)-xw5(L.footer)),U=Object.assign({},I,{currentY:Math.max(L.contentScrollable?-1*(I.initialY-24):0,L.event.touches[0].clientY-I.initialY),maxHeightForContentWrapper:Math.min(Y,Math.max(0,(I.isFullScreen?Y:L.contentWrapperHeight)-I.currentY))})):U=Y==="Snap To Full Screen"?
Object.assign({},I,{isAnimating:!1,currentY:0,isFullScreen:!0,maxHeightForContentWrapper:L.maxHeight}):Y==="Snap To Neutral Position"?Object.assign({},I,{isAnimating:!1,currentY:0,isFullScreen:!1,maxHeightForContentWrapper:L.maxHeight}):Y==="Close Sheet"?Object.assign({},I,{isAnimating:!0,currentY:L.clientHeight,isFullScreen:!1,maxHeightForContentWrapper:L.maxHeight}):I;p.publish("changed",U)}}},mwi=function(S){return _.kL(function(p){S(p);
return!1})},odP=function(){_.tW().resolve(_.K7).closeSheet()},vdq=function(S){var p,U,Y,L,I,V,W,O,D,z,Q;
return{headerTitle:(p=S.headerTitle)==null?void 0:p.call(S),headerSubtitle:(U=S.headerSubtitle)==null?void 0:U.call(S),headerActionHeader:S.headerActionHeader,footerPrimaryButton:S.footerPrimaryButton,footerSecondaryButton:S.footerSecondaryButton,footerButtonType:(Y=S.footerButtonType)==null?void 0:Y.call(S),footerLeadingLabel:(L=S.footerLeadingLabel)==null?void 0:L.call(S),footerTrailingLabel:(I=S.footerTrailingLabel)==null?void 0:I.call(S),shouldShowIcons:(V=S.shouldShowIcons)==null?void 0:V.call(S),
skipContentClick:(W=S.skipContentClick)==null?void 0:W.call(S),additionalClassName:(O=S.additionalClassName)==null?void 0:O.call(S),onClosedCallback:S.onClosedCallback,focusOnClose:(D=S.focusOnClose)==null?void 0:D.call(S),isDisabled:(z=S.isDisabled)==null?void 0:z.call(S),disabledCommand:(Q=S.disabledCommand)==null?void 0:Q.call(S),headerFn:S.headerFn,contentFn:S.contentFn,footerFn:S.footerFn,hasHeaderFn:S.hasHeaderFn(),hasContentFn:S.hasContentFn(),hasFooterFn:S.hasFooterFn(),hasFooterPrimaryButton:S.hasFooterPrimaryButton(),
hasFooterSecondaryButton:S.hasFooterSecondaryButton(),hasHeaderActionHeader:S.hasHeaderActionHeader()}},$wL=function(S){switch(S){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""}},ipi=function(S){switch(S){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""}},NBn=function(S){switch(S){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""}},BBE=function(S,p,U){p.forEach(function(Y){_.La(_.tW().resolve(_.Jt),Y)});
_.St(S,"yt-close-popup-action",["yt-gen-ai-feedback-form-view-model",U])},caE=function(S,p,U,Y){var L=_.b(U,_.ge).commandLifeCycleConfig;
L&&L.onStartCommand&&_.Lp(S,[L.onStartCommand],p);_.fJ(p);var I=_.uZ.instance;I&&_.wY(I,U)?_.lZ(I,U,Y).then(function(V){if(!V||(V==null?0:V.error))return V=_.b(U,_.ge).serializedTransactionFlowLoggingParams,_.CJ(p),_.jV(new S2("TRANSACTION_ERROR_TYPE_YPC_HANDLE_TRANSACTION_RPC_FAILURE",V));_.CJ(p);return{data:V}}).then(function(V){_.CJ(p);
qho(V.data);var W=V.data.command;W&&_.Lp(S,[W],p);W=Aa5(U,V.data);if(!W){var O=V.data;V=!1;if(O&&O.command&&_.b(O.command,_.I2)){var D;O=((D=_.b(O.command,_.I2))==null?void 0:D.commands)||[];for(D=0;D<O.length;D++)if(_.b(O[D],_.r1m)){V=!0;break}}V||_.ya('{"event": "purchase", "eventParams" : {"purchaseStatus": "success"}}')}!W&&L&&L.onSuccessCommand?_.Lp(S,[L.onSuccessCommand],p):W&&L&&L.onFailureCommand&&_.Lp(S,[L.onFailureCommand],p)},function(){_.CJ(p);
L&&L.onFailureCommand&&_.Lp(S,[L.onFailureCommand],p);ttt(U)}):_.ZP(Error("xl"),"ERROR")},ScE=function(S,p,U){var Y=[p];
U&&Y.push(U);return _.Yd(S,Y).then(function(L){var I=_.b(p,_.ge).serializedTransactionFlowLoggingParams,V=L.data,W=Aa5(p,V);W?L=_.jV(new S2(W,I)):qho(V);return L},function(){var L=_.b(p,_.ge).serializedTransactionFlowLoggingParams;
ttt(p);return _.jV(new S2("TRANSACTION_ERROR_TYPE_YPC_HANDLE_TRANSACTION_RPC_FAILURE",L))})},Aa5=function(S,p){S=_.b(S,_.ge).serializedTransactionFlowLoggingParams;
var U=null;switch(p.ypcResponseCode){case "YPC_RESPONSE_CODE_ERROR":U="TRANSACTION_ERROR_TYPE_YPC_HANDLE_TRANSACTION_RPC_FAILURE";break;case "YPC_RESPONSE_CODE_ERROR_PROMO_CODE_POLICY_VIOLATION":U="TRANSACTION_ERROR_TYPE_REJECTED_WITH_PROMO_CODE_POLICY_VIOLATION";break;case "YPC_RESPONSE_CODE_LIVE_CHAT_BACKEND_ERROR":U="TRANSACTION_ERROR_TYPE_LIVE_CHAT_BACKEND_ERROR"}U?_.CH(U,S):T6s(S);return U},ttt=function(S){_.CH("TRANSACTION_ERROR_TYPE_YPC_HANDLE_TRANSACTION_RPC_FAILURE",_.b(S,_.ge).serializedTransactionFlowLoggingParams)},
qho=function(S){if(S.trackingParams){var p=_.X$(),U=_.F$();
p&&U&&_.wB(p,U,_.JS(S.trackingParams))}},pJq=function(S,p,U){var Y=_.uZ.instance,L=_.ATk(_.g7("YPC_MB_URL")),I=(new _.B2w).init(),V=_.q4N(),W=_.b(U,_.y1I).languageCode;
W===void 0?_.ZP(Error("Bi"),"ERROR"):_.DS([I,L]).then(function(){var O={ctk:payments.business.integration.ClientTokenFactory.createClientToken(W,V)};Y&&_.wY(Y,U)?_.lZ(Y,U,O).then(function(D){return{data:D}}).then(function(D){_.cv(p,"yt-service-request-completed",D);
D.code!=="ERROR"&&(D=D.data.command)&&_.Lp(S,[D],p)}):_.ZP(Error("xl"),"ERROR")})},LAP=function(S,p,U,Y){var L=_.uZ.instance;
L&&_.wY(L,U)?_.lZ(L,U,Y).then(function(I){return{data:I}}).then(function(I){U9o(S,p,U,I)},function(){Ycs(U)}):(L=_.tW().resolve(_.AW(_.RS)))&&L.requestDataForServiceEndpoint(U,Y).then(function(I){U9o(S,p,U,I)},function(){Ycs(U)})},U9o=function(S,p,U,Y){_.cv(p,"yt-service-request-completed",Y);
if(Y.code&&Y.code=="ERROR")Ycs(U);else{(Y=Y.data.commands)&&_.Lp(S,Y,p);var L;(S=(L=_.b(U,_.h2E))==null?void 0:L.serializedYpcPauseFlowLoggingParams)&&S&&_.Pp("ypcPauseFlowSucceeded","serializedYpcPauseFlowLoggingParams",S)}},Ycs=function(S){var p;
(S=(p=_.b(S,_.h2E))==null?void 0:p.serializedYpcPauseFlowLoggingParams)&&S&&_.Pp("ypcPauseFlowFailed","serializedYpcPauseFlowLoggingParams",S,void 0,"YPC_ERROR_REASON_INNERTUBE_RESPONSE_FAILURE")},d9E=function(S,p,U){var Y=_.uZ.instance;
Y&&_.wY(Y,U)?_.lZ(Y,U).then(function(L){return{data:L}}).then(function(L){M4o(S,p,U,L)},function(){I4o(U)}):(Y=_.tW().resolve(_.AW(_.RS)))&&Y.requestDataForServiceEndpoint(U).then(function(L){M4o(S,p,U,L)},function(){I4o(U)})},M4o=function(S,p,U,Y){_.cv(p,"yt-service-request-completed",Y);
Y.code&&Y.code=="ERROR"?I4o(U):((Y=Y.data.commands)&&_.Lp(S,Y,p),(S=_.b(U,_.R2l).serializedYpcResumeFlowLoggingParams)&&S&&_.Pp("ypcResumeFlowSucceeded","serializedYpcResumeFlowLoggingParams",S))},I4o=function(S){(S=_.b(S,_.R2l).serializedYpcResumeFlowLoggingParams)&&S&&_.Pp("ypcResumeFlowFailed","serializedYpcResumeFlowLoggingParams",S,void 0,"YPC_ERROR_REASON_INNERTUBE_RESPONSE_FAILURE")},V4Y=function(S){S=S===void 0?{}:S;
_.tW().resolve(_.Znt).showFeedbackDialog(S.customProductData,S.feedbackContent,S.onFeedbackSubmitted,S.bucket)},Ttd=function(S){S=S===void 0?{}:S;
_.tW().resolve(_.Znt).showHelpDialog(S.helpContext,S.articleId,S.productData)},WAq=function(){Ttd()},OKE=function(){V4Y()},HKd=function(S,p,U){var Y,L,I,V,W,O,D;
return _.T(function(z){switch(z.nextAddress){case 1:Y=_.b(S,kft);if((L=Y)==null?0:L.productId){O={productId:Y.productId,bucket:Y.bucket,enableAnonymousFeedback:(W=Y.enableAnonymousFeedback)!=null?W:!0,allowNonLoggedInFeedback:!0};D={feedbackChoice:U.feedbackChoice};if(!_.y("web_collect_offline_state")){z.jumpTo(8);break}_.M2(z,9);return _.k(z,yE5(D),11)}V={bucket:(I=Y)==null?void 0:I.bucket};if(!_.y("web_collect_offline_state")){z.jumpTo(4);break}V.customProductData={};_.M2(z,5);return _.k(z,yE5(V.customProductData),
7);case 7:_.CA(z,4);break;case 5:_.W4(z);case 4:V4Y(V);z.jumpTo(0);break;case 11:_.CA(z,8);break;case 9:_.W4(z);case 8:_.v$E(D),_.o$w("GFEEDBACK",D),Y.productId==="5295751"&&(D.client_attestation=Number(_.g7("CATSTAT",0))),Y.productId==="5295751"&&(D.client_time=Date.now()/1E3/3600),Y.productId==="5295751"&&(D.original_playback_id=_.O7d||""),_.E9j(O,D),_.OV(z)}})},D9t=function(S){if(S=_.b(S,_.m1w)){var p={bucket:S.bucketIdentifier};
S.additionalDatas&&(p.customProductData={},S.additionalDatas.forEach(function(U){if(U=U.userFeedbackEndpointProductSpecificValueData)p.customProductData[U.key]=U.value}));
V4Y(p)}},z$o=function(S){var p=_.xv.getInstance();
var U=_.Oh("DELETE_ALL_DOWNLOADS_PROMPT",void 0,"Delete all downloads?");var Y=_.Oh("DELETE",void 0,"Delete"),L=_.Oh("CANCEL",void 0,"Cancel");U=Fcq(U,void 0,Y,L,{signal:"DELETE_ALL_DOWNLOADS"});_.Rq(p,[{openPopupAction:U}],S)},nls=function(){return _.T(function(S){return S.nextAddress==1?_.k(S,_.tW().resolve(_.AV),2):_.k(S,Q4i(),0)})},JZi=function(S){var p,U;
return _.T(function(Y){return Y.nextAddress==1?(U=(p=_.b(S,_.aV))==null?void 0:p.targetId)?_.k(Y,_.tW().resolve(_.AV),3):Y.jumpTo(0):_.k(Y,_.tW().resolve(_.qL).deleteVideo(U),0)})},KAY=function(S){var p,U;
return _.T(function(Y){return Y.nextAddress==1?(U=(p=_.b(S,_.aV))==null?void 0:p.targetId)?_.k(Y,_.tW().resolve(_.AV),3):Y.jumpTo(0):_.k(Y,yZn(_.tW().resolve(_.qL),U),0)})},j4P=function(S){var p,U;
return _.T(function(Y){return(U=(p=_.b(S,_.aV))==null?void 0:p.targetId)?_.k(Y,bKP(U),0):Y.jumpTo(0)})},GfX=function(){_.y("kevlar_woffle_refresh_dl_load_killswitch")||rZn()},R$T=function(){_.y("kevlar_woffle")&&_.rz.instance&&h$o()},XJd=function(S){var p;
if((p=_.b(S,_.MB))==null||!p.videoId)return!1;FAt(_.tW().resolve(_.qL),_.b(S,_.MB),S.clickTrackingParams);return!0},ZKP=function(S){var p;
if((p=_.b(S,_.d8))==null||!p.playlistId)return!1;PML(_.tW().resolve(_.qL),_.b(S,_.d8),S.clickTrackingParams);return!0},e$J=function(S){var p=_.b(S,_.Jhm);
(p==null?void 0:p.settingItemId)!=="SMART_DOWNLOADS_ENABLED"&&(p==null?void 0:p.settingItemId)!=="SMART_DOWNLOADS_OPT_IN_BANNER_DISMISSED"||s4E(_.tW().resolve(_.qL),_.b(S,_.Jhm))},u1i=function(S){S=_.b(S,_.$Cq);
var p;(S==null?0:(p=S.actions)==null?0:p.length)&&gln(S)},a4L=function(S){var p,U;
return _.T(function(Y){p=_.b(S,wJJ);return(U=p)!=null&&U.localWatchHistoryCommandType?_.k(Y,l4L(p),0):Y.return()})},f45=function(S){setTimeout(function(){requestAnimationFrame(S)},80)},CMJ=function(S){return Object.entries(S).map(function(p){return p.join(":")}).join(";")},Eld=function(S){var p,U,Y;
_.T(function(L){if(L.nextAddress==1)return _.k(L,x9L(),2);p=L.yieldResult;U=_.VO.instance;switch(p){case "granted":Y=S.getLocationCommand;break;case "denied":Y=S.openDeniedDialogAction;break;case "prompt":Y=S.openCollectionDialogAction;break;default:Y=S.openCollectionDialogAction}Y&&U.resolveCommand(Y);_.OV(L)})},x9L=function(){var S,p;
return _.T(function(U){if(U.nextAddress==1)return S="prompt",navigator.permissions?_.k(U,navigator.permissions.query({name:"geolocation"}),3):U.jumpTo(2);U.nextAddress!=2&&(p=U.yieldResult,S=p.state);return U.return(S)})},olt=function(){_.T(function(S){return _.k(S,_.m9J(),0)})},vli=function(){var S,p,U;
return _.T(function(Y){if(Y.nextAddress==1)return S=_.tW().resolve(_.F3),S?_.k(Y,_.lZ(S,{signalServiceEndpoint:{signal:"GET_DATASYNC_IDS"}}),2):(_.eP(Error("Al")),Y.return(void 0));if(p=Y.yieldResult){if(p.errorMetadata)return _.eP(Error("Bl`"+p.errorMetadata.status+"`"+p.error)),Y.return(void 0);U=p.datasyncIds;_.Zwj=U.length;return Y.return(U)}_.eP(Error("Cl"));return Y.return(void 0)})},$9L=function(){vli().then(function(S){S&&($ZA(S),OfE(S),a5i(S),bfJ(S))})},iKX=function(S){_.PA.addLowPriorityJob(function(){var p,
U,Y,L,I;
return _.T(function(V){switch(V.nextAddress){case 1:if(_.y("ytidb_clear_optimizations_killswitch")){V.jumpTo(2);break}p=_.nA("clear");if(p.startsWith("V")&&p.endsWith("||")){var W=[p];$ZA(W);OfE(W);a5i(W);bfJ(W);return V.return()}U=f5J();Y=jtY();return _.k(V,kMA(),3);case 3:return L=V.yieldResult,_.k(V,iUE(),4);case 4:if(I=V.yieldResult,!(U||Y||L||I))return V.return();case 2:S.isNetworkAvailable()?$9L():S.listenOnce("publicytnetworkstatus-online",$9L),_.OV(V)}})})},pV=function(S){S={openPopupAction:{popupType:"TOAST",
popup:{notificationActionRenderer:{responseText:_.Ec(S)}}}};_.VO.instance&&_.VO.instance.resolveCommand(S)},NtA=function(S){if(S){var p=_.HX();
_.S8(p,3854,void 0,{layer:0,parentLayer:4});switch(S){case 1:var U=238708;break;case 2:U=238715;break;case 3:U=238710;break;case 6:U=238709}U&&(S=_.kX(p,{veType:U}))&&_.YV(p,S)}},BtY=function(S){if(S){var p=_.HX();
_.S8(p,3854,void 0,{layer:0,parentLayer:4});switch(S){case 1:var U=238714;break;case 2:U=238711;break;case 8:U=238709;break;case 7:U=238713;break;case 3:case 4:case 5:U=238712}U&&(S=_.kX(p,{veType:U}))&&_.YV(p,S)}},qcX=function(S){switch(S.latencyType){case 0:_.R2("consent_primitive_flow");
_.Fg("cpit",S.timestampEpochMillis,"consent_primitive_flow");break;case 3:_.Fg("cpist",S.timestampEpochMillis,"consent_primitive_flow");break;case 5:_.Fg("cprtif",S.timestampEpochMillis,"consent_primitive_flow");break;case 4:_.Fg("cprtli",S.timestampEpochMillis,"consent_primitive_flow");break;case 6:_.Fg("cprt",S.timestampEpochMillis,"consent_primitive_flow");break;case 7:_.Fg("cpdt",S.timestampEpochMillis,"consent_primitive_flow");break;case 8:_.Fg("cpjct",S.timestampEpochMillis,"consent_primitive_flow")}},
IGt=function(S,p){var U,Y,L,I,V,W,O,D,z,Q,J,K,G,X,Z,l,a,N,m,A;
return _.T(function(q){switch(q.nextAddress){case 1:_.M2(q,2);(Y=(U=_.b(S,AZP))==null?void 0:U.serializedConsentRequest)||(Y=(L=_.b(S,t4A))==null?void 0:L.serializedConsentRequest);Y&&(I=cZo(_.Ol(Y)));if(I===void 0)return q.return();V=S1A(I);V.latencyCallback=qcX;p&&pBJ(V,function(){p.then(function(TG){TG.pauseVideo();(new UIP).increment()})});
return((W=_.b(S,AZP))==null?void 0:W.consentAction)==="CONSENT_ACTION_PREWARM"||((O=_.b(S,t4A))==null?void 0:O.consentAction)==="CONSENT_ACTION_PREWARM"?_.k(q,Y1X(V),5):_.k(q,LFY(V),6);case 6:D=q.yieldResult;z=_.Hg(D,Uq);if(z===1){if(((Q=_.Ra(D,YI,1,Uq))==null?void 0:_.r1(Q,1))===1||((J=_.Ra(D,YI,1,Uq))==null?void 0:_.r1(J,1))===2||((K=_.Ra(D,YI,1,Uq))==null?void 0:_.r1(K,1))===3)_.b(S,t4A)?pV(_.Oh("MMG_CONFIRMATION",{},"Your choices have been saved. You can change your choices anytime in your Google Account.")):
pV(_.Oh("DMA_CONSENT_CONFIRMATION2",{},"Your choices have been saved. You can change your choices anytime in your Google Account."));NtA((G=_.Ra(D,YI,1,Uq))==null?void 0:_.r1(G,1),_.p2(D,Mvo,3,_.Ur()))}else z===2?(((X=LV(D))==null?void 0:_.r1(X,1))===5?_.b(S,t4A)?pV(_.Oh("MMG_CONSENT_RECORD_ERROR",{},"Something went wrong while loading")):pV(_.Oh("DMA_CONSENT_RECORD_ERROR",{},"Something went wrong while loading")):((Z=LV(D))==null?void 0:_.r1(Z,1))===1||((l=LV(D))==null?void 0:_.r1(l,1))===4?pV(_.Oh("DMA_CONSENT_GENERAL_ERROR",
{},"Something went wrong while loading")):((a=LV(D))==null?void 0:_.r1(a,1))===7&&((N=I)==null?void 0:(m=_.Sa(N,Mq,4))==null?void 0:_.r1(m,4))!==1&&pV(_.Oh("DMA_CONSENT_GENERAL_ERROR",{},"Something went wrong while loading")),BtY((A=LV(D))==null?void 0:_.r1(A,1))):pV(_.Oh("DMA_CONSENT_GENERAL_ERROR",{},"Something went wrong while loading"));q.jumpTo(5);break;case 5:_.CA(q,0);break;case 2:_.W4(q),pV(_.Oh("DMA_CONSENT_GENERAL_ERROR",{},"Something went wrong while loading")),_.OV(q)}})},VvE=function(){if(!dIJ.has("Worker")){dIJ.set("Worker",
!0);
var S={api:"BROWSER_API_WEB_WORKER"};S.available="Worker"in window?!0:!1;_.RV("apiTest",S)}},Tzi=function(S){return typeof S==="undefined"?"-1":String(Math.ceil(S/1048576))},HHq=function(S,p){WFo(new OHt(_.b(p,kvA).addToken,_.b(p,kvA).commonToken)).then(function(){_.cv(S,"yt-invoke-instrument-manager-action-completed")},function(U){_.cv(S,"yt-invoke-instrument-manager-action-error",U)})},DIs=function(S){return _.sx(S)},zFd=function(S){var p=1;
S=S.split(":");for(var U=[];p>0&&S.length;)U.push(S.shift()),p--;S.length&&U.push(S.join(":"));return U},QSJ=function(S,p){p=S.aspectRatio()<=p.aspectRatio()?p.width/S.width:p.height/S.height;
S.scale(p)},nMt=function(S,p){p=S.aspectRatio()>p.aspectRatio()?p.width/S.width:p.height/S.height;
return S.scale(p)},JBE=function(S){var p=new _.cD;
return _.FU(p,11,S)},yBL=function(S){var p={};
S=S.getAllResponseHeaders().split("\r\n");for(var U=0;U<S.length;U++)if(!_.dN(S[U])){var Y=zFd(S[U]),L=Y[0];Y=Y[1];if(typeof Y==="string"){Y=Y.trim();var I=p[L]||[];p[L]=I;I.push(Y)}}return _.h9.map(p,function(V){return V.join(", ")})},H2=function(S,p){return S.JSC$7805_xhr_?S.JSC$7805_xhr_.getResponseHeader(p):null},IN=function(S,p,U){Array.isArray(U)||(U=[String(U)]);
_.hHE(S.JSC$8037_queryData_,p,U);return S},h$o=function(){var S=_.rz.instance;
_.T(function(p){return S.deferredInstallPrompt?_.k(p,S.deferredInstallPrompt.prompt(),0):p.jumpTo(0)})},KFi=function(S,p,U){if(_.Ae(S))_.xs(S,p,U);
else for(S=_.e8l(S);;){var Y=S.next();if(Y.done)break;p.call(U,Y.value,void 0,S)}},bHd={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}"]},nki,JFP,yFP,K_5,b3A,jsP,rFE,G4o,hqn,bKP,yZn,Q4i,Rq5,F_X,XT5,PK5,Z3d,PML,FAt,ssT,eqs,gkA,rZn,s4E,uBd,gln,wTJ,l4L,lli,alJ,flL,CKX,xsn,EkE,msP,qy,ok5,vkt,
e0T,PLi,$sT,kI,Hf,Dy,zZ,i3P,N9T,B9q,q2T,AFP,tpq,cFP,SWn,pXi,UmJ;bHd={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 jSP=function(S,p){var U=[];KFi(p,function(Y){try{var L=_.p9.prototype.getWrapper.call(this,Y,!0)}catch(I){if(I=="Storage: Invalid value was encountered")return;throw I;}L===void 0?U.push(Y):_.sxm(L)&&U.push(Y)},S);
return U},rBi=function(S,p){jSP(S,p).forEach(function(U){_.p9.prototype.remove.call(this,U)},S)},GvX=function(S){var p=_.wH;
p._minimumZ=Math.max(p._minimumZ,S)},hFL=["www.youtube-nocookie.com",
"www.youtubeeducation.com","youtube.googleapis.com"],RFA=function(S,p){_.t9(S.rX);S.rX=p},FFY=function(S,p,U,Y){S.setState(5);
var L=!!S.zyy&&hFL.includes(_.ib(S.zyy)||"");try{var I=new _.rM({program:p,globalName:U,lG:{disable:!_.y("att_web_record_metrics")||!_.y("att_skip_metrics_for_cookieless_domains_ks")&&L,sQ:"aGIf"}});I.iaC.then(function(){S.setState(6);Y&&Y(p)});
RFA(S,I)}catch(V){S.setState(7),V instanceof Error&&_.eP(V)}},XBt=function(S,p,U,Y,L,I){var V=V===void 0?"trayride":V;
U?(S.setState(2),_.uL(U,function(){if(window[V])FFY(S,Y,V,L);else{S.setState(3);var W=_.$Nw(U),O=document.getElementById(W);O&&(_.tve(W),O.parentNode.removeChild(O));_.eP(new _.y7("BL:ULB",U))}},I)):p?(I=_.JY("SCRIPT"),p instanceof _.ux?_.aK(I,p):I.textContent=p,I.nonce=_.eO(document),document.head.appendChild(I),document.head.removeChild(I),window[V]?FFY(S,Y,V,L):(S.setState(4),_.eP(new _.y7("BL:ULBJ")))):_.eP(new _.y7("BL:ULV"))},PEE=function(){this.state=1;
this.rX=null;this.zyy=void 0};
_.M=PEE.prototype;_.M.initialize=function(S,p,U,Y){this.zyy=Y;if(S.program){var L;Y=(L=S.interpreterUrl)!=null?L:null;if(S.interpreterSafeScript)L=_.KAG(S.interpreterSafeScript);else{var I;L=(I=S.interpreterScript)!=null?I:null}S.interpreterSafeUrl&&(Y=_.Zu(S.interpreterSafeUrl).toString());XBt(this,L,Y,S.program,p,U)}else _.eP(Error("jf"))};
_.M.isInitialized=function(){return!!this.rX};
_.M.getState=function(){return this.state};
_.M.isLoading=function(){return this.state===2};
_.M.invoke=function(S){S=S===void 0?{}:S;var p;this.rX?p=_.DJl(this.rX,{rM:S}):p=null;return p};
_.M.dispose=function(){RFA(this,null);this.setState(8)};
_.M.setState=function(S){this.state=S};
var ZHq=function(S,p){return S.rX.snapshot(p)},sSt=function(S,p){var U=_.pA("botguard_async_snapshot_timeout_ms",3E3);
p=p===void 0?{}:p;U=U===void 0?3E3:U;return S.rX?new Promise(function(Y,L){var I=!1,V=_.PA.addJob(function(){I=!0;L(Error("kf"))},1,U);
S.rX?ZHq(S,{rM:p}).then(function(W){_.PA.cancelJob(V);I||Y(W)}).catch(function(W){_.PA.cancelJob(V);
I||L(W)}):(_.PA.cancelJob(V),Y(null))}):Promise.resolve(null)},eFX=["att/log"],gMJ;
gMJ={searchEndpoint:{},commandMetadata:{webCommandMetadata:{url:"/results?search_query=",rootVe:4724,webPageType:"WEB_PAGE_TYPE_SEARCH"}}};var u3J={signalServiceEndpoint:{signal:"LOAD_GUIDE"}},wBJ=function(S,p){return _.kl(S,{mode:"readwrite",enableRetries:!0},function(U){return _.hDw(U,p,"settingEntity")})},lGt=function(S,p,U){return _.kl(S,{mode:"readonly",
enableRetries:!0},function(Y){return _.Ate(Y,p,U)})},aGs=function(S){if(!S.storage)return!1;
a:{if(S.storage){try{var p=S.storage.get("TLPQtimestamp")}catch(U){}S=Number(p);if(!isNaN(S))break a}S=void 0}return S?Date.now()-S<864E5:!1},fGo=function(S){if(S.storage){try{var p=S.storage.get("TLPQindex")}catch(U){}S=Number(p);
if(!isNaN(S))return S}},CEA=function(S,p){S.queueProxy&&p.forEach(function(U){if(U.videoId&&U.trackingParams&&S.queueProxy instanceof _.GE){var Y=_.X$();
S.queueProxy.attributionData.set(U.videoId,{enqueueingVe:_.JS(U.trackingParams).getAsJson(),enqueueingCsn:Y?Y:void 0,clientEnqueueingTimeMs:Math.floor((0,_.AI)()).toString()})}})},xIP=function(S){var p=_.PAe(S);
p!=S.currentSnapState_&&(S.currentSnapState_=p,S.actionRouter_.triggerOptionalAction("ytd-update-grid-state-action"))},dU=function(S){this.JSC$11047_networkManager_=S;
this.partCallbacks_=[]};
dU.prototype.getCacheKeyForEndpoint=function(S){return _.ImG(S,!1)};
dU.prototype.onPartsCallback_=function(S){this.partCallbacks_.forEach(function(p){S&&p(S)})};
var Vo=function(S,p,U){dU.call(this,S);this.player_=p;this.autoplayData_=U};
_.r(Vo,dU);Vo.prototype.getCacheKeyForEndpoint=function(S){return _.ImG(S,!!this.autoplayData_)};
Vo.prototype.getTempData=function(S,p){p=p.timeBeforeNextVideo;S={itct:S.clickTrackingParams,lact:_.pv(),pbis:p,prefetch_reason:"hc_pbis",vis:this.player_.getVisibilityState()};this.autoplayData_&&(S.autonav=1);return S};
Vo.prototype.getXhrParams=function(S){return Object.assign({pbj:"prefetch"},S)};
Vo.prototype.getParams=function(S){S={frags:S.fragmentsRequested.join(",")};_.y("kevlar_droppable_prefetchable_requests")&&(S.prefetch=1);return S};
var EMA=function(S){S.playerEvents_.forEach(function(p){S.player.removeEventListener(p.eventName,p.callback)});
S.playerEvents_.length=0},TZ=function(S,p,U){this.player=S;
this.JSC$11057_taskManager=p;this.prefetchDelay=U;this.completionResolver_=null;this.playerEvents_=[]};
TZ.prototype.start=function(){var S=this;this.completionResolver_=_.ay();_.zB(this.completionResolver_.promise,function(){EMA(S);S.completionResolver_=null});
this.prepareTrigger(this.completionResolver_);return this.completionResolver_.promise};
var mIq=function(S,p,U){S.player.addEventListener(p,U);S.playerEvents_.push({eventName:p,callback:U})},oMn={watch:{pageFragments:["pl",
"wn"],prefetchedFragments:["pl"]},shorts:{pageFragments:["pl","riw"],prefetchedFragments:["pl"]}},vMo={pl:{requiredKeys:["playerResponse"],graftedKeys:["playerResponse"]},wn:{requiredKeys:["response"],graftedKeys:["response"]}},$IA=function(S,p,U){TZ.call(this,S,p,U);this.cueId_="playbackTrigger-"+Math.random()};
_.r($IA,TZ);
$IA.prototype.prepareTrigger=function(S){var p=this,U=this.player.getDuration(),Y=this.player.getVideoData(),L=Y.isLive&&Y.hasProgressBarBoundaries;if(L&&Y.progressBarEndPositionUtcTimeMillis){var I=Y.progressBarEndPositionUtcTimeMillis/1E3;isNaN(I)||(U=I)}var V=0;this.prefetchDelay>=0?L?Y.progressBarStartPositionUtcTimeMillis&&(Y=Y.progressBarStartPositionUtcTimeMillis/1E3,isNaN(Y)||(V=Y+this.prefetchDelay)):V=this.prefetchDelay:V=U+this.prefetchDelay;L?this.player.addUtcCueRange(this.cueId_,V,U):
this.player.addCueRange(this.cueId_,V,U);_.zB(S.promise,function(){p.player.removeCueRange(p.cueId_)});
mIq(this,"onCueRangeEnter",function(W){W==p.cueId_&&S.resolve(U-V)})};
var iHd=function(S,p){S.fragmentConfiguration_[p].requiredKeys.every(function(U){return!!S.prefetchedData_[U]})&&(S.validatedFragments_.push(p),p=S.missingFragments_.indexOf(p),p!==-1&&S.missingFragments_.splice(p,1))},Nzi=function(S){S.prefetchedFragments_.forEach(function(p){iHd(S,p)})},Bzd=function(S,p,U){this.pageFragments_=S;
this.prefetchedFragments_=p;this.fragmentConfiguration_=vMo;this.prefetchedData_=U;this.validatedFragments_=[];this.missingFragments_=this.pageFragments_.slice();this.mergedPrefetchedData_=null;Nzi(this)},q1X=function(){},ABq=function(S){this.JSC$11071_playlistManager_=S};
_.r(ABq,q1X);ABq.prototype.getPrefetchEndpoint=function(){return this.JSC$11071_playlistManager_.getAutoplayEndpoint()};
var tvd=function(S){this.autonavEndpoints_=S};
_.r(tvd,q1X);tvd.prototype.getPrefetchEndpoint=function(){return this.autonavEndpoints_.length?this.autonavEndpoints_[0]:void 0};
var cBY=function(S,p,U,Y,L){this.autonavEndpoints=S;this.foregroundTrigger=p;this.backgroundTrigger=U;this.pageType=Y;this.isInPlaylist=L},S2q=function(S,p){if(S.webPrefetchData&&S.webPrefetchData.navigationEndpoints&&S.webPrefetchData.navigationEndpoints.length){S=S.webPrefetchData.navigationEndpoints;
var U=_.b(S[0],_.E$);if(U.watchEndpointSupportedPrefetchConfig&&U.watchEndpointSupportedPrefetchConfig.prefetchHintConfig){var Y=U.watchEndpointSupportedPrefetchConfig.prefetchHintConfig;U=Y.playbackRelativeSecondsPrefetchCondition;U=typeof U==="number"&&Math.abs(U)<p.videoDuration?U:void 0;Y=Y.countdownUiRelativeSecondsPrefetchCondition;Y=typeof Y!=="number"||_.y("prefetch_job_config_cleanup_ks")&&p.inPlaylist?void 0:Y;if(typeof Y==="number")return new cBY(S,p.makeUpNextTrigger(Y),p.makePlaybackTrigger(Y),
"watch",p.inPlaylist);if(typeof U==="number")return new cBY(S,p.makePlaybackTrigger(U),null,"watch",p.inPlaylist)}}},pTn=function(S){return S.prefetchJobConfig_.backgroundTrigger?_.lb(_.vgX)()==0?S.prefetchJobConfig_.backgroundTrigger:S.prefetchJobConfig_.foregroundTrigger:S.prefetchJobConfig_.foregroundTrigger},Uso=function(S){_.W3(document,"visibilitychange",S.onVisibilityChange_,!1,S)},Wf=function(S){dU.call(this,S)};
_.r(Wf,dU);Wf.prototype.getCacheKeyForEndpoint=function(S){return dU.prototype.getCacheKeyForEndpoint.call(this,S)};
Wf.prototype.getTempData=function(){return{}};
Wf.prototype.getXhrParams=function(S){return S};
Wf.prototype.getParams=function(){return{}};
var Y2o=function(S,p,U){var Y=S.prefetchDelay*1E3;if(Math.abs(Y)>p)U.promise.cancel("Not enough time to prefetch, cancelling prefetch job");else{var L=Y,I=p-Y;Y<0&&(L=p+Y,I=Math.abs(Y));var V=S.JSC$11057_taskManager.addJob(function(){U.resolve(I/1E3)},10,L);
U.promise.thenCatch(function(){S.JSC$11057_taskManager.cancelJob(V)})}},L_Y=function(S,p,U){TZ.call(this,S,p,U)};
_.r(L_Y,TZ);L_Y.prototype.prepareTrigger=function(S){var p=this;mIq(this,"onAutonavCoundownStarted",function(U){Y2o(p,U,S)})};
var MpT=function(S){S.pendingPrefetchJob_&&(S.pendingPrefetchJob_.cancel(),S.pendingPrefetchJob_=null)},IlL=function(S,p,U){if(!S.triggeredTargets.has(p)){var Y=_.rQQ(S,p);
Y.action=U;_.btE(S,p,Y)}},dsL=function(S){_.V7E();
_.YwG("cpt")&&_.eP(Error("jh"));_.UX.requestAnimationFrame(function(){_.UX.setTimeout(function(){_.Fg("cpt");var p=_.Z9("vpl"),U=_.Z9("cpt");p&&U&&_.Fg("ol",Math.max(p,U))})});
try{_.Fg("fr_s"),S()}catch(p){_.ZP(p)}_.UX.requestAnimationFrame(function(){_.Fg("bcp")})},VpT=function(S,p){S.serviceEndpointHandlers.push(p)},T9t=function(S,p){p=S.pendingPages_.indexOf(p);
p>-1&&S.pendingPages_.splice(p,1)},W_T=function(S,p){var U=_.Gnl.indexOf(p);
U>-1&&_.Gnl.splice(U,1);S.targetPage_==p?(S.abort(),_.R5H(S)):T9t(S,p)},O3A=function(S,p,U,Y){p={challenge:p};
U&&(p.webResponse=U);return _.R6(S.innertubeTransportService,p,_.$l(eFX),Y)},k45=function(S,p,U){if(!p.challenge)throw Error("li");
if(p.botguardData&&p.botguardData.program){var Y=new PEE;Y.initialize(p.botguardData,function(){sSt(Y,{atr_challenge:p.challenge}).then(function(L){if(!L)throw Error("mi");return O3A(S,p.challenge,L,U)}).catch(function(L){_.eP(L);
return O3A(S,p.challenge,void 0,U)})},void 0)}else O3A(S,p.challenge,void 0,U)},H3T=function(S,p,U){var Y={};
p.ids&&(Y.ids=[].concat(_.jo(p.ids)));p.engagementType&&(Y.engagementType=p.engagementType);return _.R6(S.innertubeTransportService,Y,_.$l(_.kEq),U).then(function(L){if(!L)throw new _.y7("GetAttestationChallenge returned falsy");k45(S,L,U)}).thenCatch(function(L){_.ZP(L)})},DsL=function(S,p,U){return new _.O9(function(Y,L){var I;
return _.T(function(V){if(V.nextAddress==1){var W=p.engagementType,O=p.ids,D={};O=_.d(O!=null?O:[]);for(var z=O.next();!z.done;z=O.next())z=z.value,z.encryptedVideoId?D.encryptedVideoId=z.encryptedVideoId:z.externalChannelId?D.externalChannelId=z.externalChannelId:z.commentId?D.commentId=z.commentId:z.externalOwnerId?D.externalOwnerId=z.externalOwnerId:z.artistId?D.artistId=z.artistId:z.playlistId?D.playlistId=z.playlistId:z.externalPostId?D.externalPostId=z.externalPostId:z.shareId&&(D.shareId=z.shareId);
return _.k(V,RwY(W,D),2)}I=V.yieldResult;if(!I.challenge)return _.eP(Error("ni")),H3T(S,p,U).then(Y,L),V.return();W=I;D={challenge:W.challenge};D.webResponse=W.webResponse;D.engagementType=p.engagementType;D.ids=p.ids;_.R6(S.innertubeTransportService,D,_.$l(eFX),U).then(Y,L);_.OV(V)})})},wvn=function(S,p){var U,Y,L,I;
_.T(function(V){if(V.nextAddress==1){U=_.b(p,_.L5E);if(!(U&&U.listId&&S.response&&S.response.playingVideoId)||S.listId!==U.listId)return V.return();S.index===void 0&&(S.index=0);return _.k(V,_.skl(S.JSC$10802_playlistNetworkManager,U.listId,S.index,S.response.playingVideoId),2)}Y=V.yieldResult;if(!Y)return V.return();L=Y.playlistId;I=Y.playlistPanelRenderer;S.setPlaylistData(L,I,Y.autoplayRenderer);_.OV(V)})},zqt=function(S,p,U){var Y=S.getParams(U),L=_.ZzG(p,Y),I=S.getTempData(p,U);
I.endpoint=JSON.stringify(p);_.y("enable_unknown_lact_fix_on_html5")&&(_.tW().resolve(_.rY),I.lact=_.pv());var V={headers:{"X-YouTube-STS":_.g7("STS"),"x-youtube-csoc":1}};_.$n(L,I);return new _.O9(function(W,O){var D=S.getXhrParams(Y),z;_.y("kevlar_cache_on_ttl_player")&&(z=_.Oz.instance);z&&_.SLH(z,p)?_.VHt(z,p,I,window.location.href).then(function(Q){Q?W(Q):O()},O):_.jIH(S.JSC$11047_networkManager_,p,D,S.onPartsCallback_.bind(S),V).then(function(Q){Q?W(Q):O()},O)})},Qso=function(S,p){S.triggerPromise_=
p.start();
S.triggerPromise_.then(function(U){var Y=S.prefetchEndpointProvider_.getPrefetchEndpoint();if(Y){var L=oMn[S.prefetchJobConfig_.pageType].prefetchedFragments;S.prefetchRequestPromise_=zqt(S.JSC$11083_networkPrefetchRequest_,Y,{fragmentsRequested:L,timeBeforeNextVideo:U});S.prefetchResponseCacheKey_=S.JSC$11083_networkPrefetchRequest_.getCacheKeyForEndpoint(Y);Uso(S);S.prefetchRequestPromise_.then(function(I){S.storePrefetchedDataCallback_(S.prefetchResponseCacheKey_,I);if(_.y("web_prefetch_preload_video")&&
L.length===1&&L[0]==="pl"&&I&&!I.playerAds&&!I.adPlacements){var V=_.b(Y,_.QX),W=V!=null,O={raw_player_response:I,watch_endpoint:V};(I=_.tW().resolve(W?_.DbH:_.A7))&&Y&&I.then(function(D){W&&_.y("web_queue_preload_video")?(O.prefer_gapless=!0,D.queueNextVideo(O)):D.preloadVideoByPlayerVars(O)})}})}})},Oq=function(S,p,U,Y){this.prefetchEndpointProvider_=S;
this.prefetchRequestPromise_=this.triggerPromise_=null;this.storePrefetchedDataCallback_=p;this.prefetchJobConfig_=U;this.JSC$11083_networkPrefetchRequest_=Y;this.prefetchResponseCacheKey_=null};
Oq.prototype.enqueue=function(){this.triggerPromise_||(Qso(this,pTn(this)),_.Kz(document,"visibilitychange",this.onVisibilityChange_,!1,this))};
Oq.prototype.resolve=function(){this.cancel()};
Oq.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.");Uso(this)};
Oq.prototype.onVisibilityChange_=function(){var S=this;_.lb(_.vgX)()==0?this.triggerPromise_&&(this.triggerPromise_.thenCatch(function(){S.triggerPromise_=null}),this.triggerPromise_.cancel("Visibility changed to background, trigger promise cancelled.")):this.triggerPromise_||Qso(this,pTn(this))};
nki=function(S,p,U,Y,L){p&&(p==null?0:p.videoId)&&U&&U.entries&&_.y("kevlar_enable_shorts_prefetch_in_sequence")&&(MpT(S),p=U.entries.map(function(I){var V;return(V=_.b(I.command,_.QX))==null?void 0:V.videoId}).indexOf(p.videoId),U=U.entries[p+1],U!=null&&U.command&&!_.b(U==null?void 0:U.command,_.Rg)&&(Y=new cBY([U.command],new $IA(Y,_.PA,1),null,"shorts",!1),S.pendingPrefetchJob_=new Oq(new tvd(Y.autonavEndpoints),function(){return!1},Y,new Wf(L)),S.pendingPrefetchJob_.enqueue()))};
JFP=function(S,p,U,Y,L,I){var V=_.og.getInstance();if(!_.y("block_all_player_prefetch_requests")){MpT(S);var W=!!U.getPlaylistId(),O=U.getVideoData().isLive&&U.getVideoData().hasProgressBarBoundaries;if((V.getState()==2||W||O)&&(!U.getVideoData().isLive||O)){V={inPlaylist:W,videoDuration:U.getDuration(),makeUpNextTrigger:function(z){return new L_Y(U,_.PA,z)},
makePlaybackTrigger:function(z){return new $IA(U,_.PA,z)}};
var D=S2q(p,V);D&&(S.pendingPrefetchJob_=new Oq(D.isInPlaylist?new ABq(L):new tvd(D.autonavEndpoints),function(z,Q){Q=new Bzd(oMn[D.pageType].pageFragments,oMn[D.pageType].prefetchedFragments,Q);return _.kQl(Q)?(S.prefetchCache_.set(z,Q),!0):!1},D,new Vo(Y,U,I,L)),S.pendingPrefetchJob_.enqueue())}}};
yFP=function(){var S=_.e8();S.signals.parkOrScheduleJob(function(){var p=S.storage;if(p.storage)if(aGs(p)){var U=p.getPlaylistId();p=fGo(p);U=!!U&&p!==void 0}else p.clear(),U=!1;else U=!1;if(U){U=S.pageManager.isOnWatch();a:{var Y=S.storage;if(Y.storage&&aGs(Y)&&(p=Y.getPlaylistId(),Y=fGo(Y),p&&Y!==void 0)){U={recoverPlaylistCommand:{listId:p,index:Y,openMiniplayer:!U,openListPanel:U,listType:"PLAYLIST_EDIT_LIST_TYPE_QUEUE"}};break a}U=void 0}U&&_.Rq(S.JSC$10802_actionRouter,[U],null)}},0,"ma")};
K_5=function(S,p,U,Y,L,I){var V=_.bZ(7111);_.pa(S.JSC$16102_screenManager,V,I?_.JS(I):void 0);_.YV(S.JSC$16102_screenManager,V,{offlineabilityData:{offlineModeType:"OFFLINE_NOW",offlineObjectType:Y,offlineId:p,offlineabilityFormatType:U,isDefaultFormatType:L==="DOWNLOAD_QUALITY_SETTINGS_ACTION_ALREADY_SAVED",downloadQualitySettingsAction:L}})};
b3A=function(S,p,U,Y,L){var I,V,W,O,D;return _.T(function(z){if(z.nextAddress==1)return _.k(z,S.JSC$16102_playerApiPromise,2);I=z.yieldResult;K_5(S,p,U,"OFFLINE_OBJECT_TYPE_PLAYLIST",Y,L);if(W=_.Lxt[S.entityTypeMap.listEntityType])D={},V=(D[W]={maximumDownloadQuality:(O=U)!=null?O:void 0},D);return _.k(z,I.queueOfflineAction(p,S.entityTypeMap.listEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_ADD",V),0)})};
jsP=function(S,p){var U,Y,L,I;return _.T(function(V){if(V.nextAddress==1)return _.k(V,S.JSC$16102_persistentStorePromiseAccessor(),2);if(V.nextAddress!=3){U=V.yieldResult;if(!U)return _.eP(new _.y7("PES is undefined")),V.return();Y=_.M9(p,"downloadStatusEntity");return _.k(V,lGt(U,Y,"downloadStatusEntity"),3)}L=V.yieldResult;return V.return((I=L)==null?void 0:I.downloadState)})};
rFE=function(S,p,U,Y,L){var I,V,W,O,D,z;return _.T(function(Q){switch(Q.nextAddress){case 1:return _.k(Q,S.JSC$16102_playerApiPromise,2);case 2:I=Q.yieldResult;K_5(S,p,U,"OFFLINE_OBJECT_TYPE_VIDEO",Y,L);if(W=_.Lxt[S.entityTypeMap.singleEntityType])D={},V=(D[W]={maximumDownloadQuality:(O=U)!=null?O:void 0},D);return _.k(Q,jsP(S,p),3);case 3:z=Q.yieldResult;if(z!=="DOWNLOAD_STATE_USER_DELETED"){Q.jumpTo(4);break}return _.k(Q,S.deleteVideo(p),4);case 4:return _.k(Q,I.queueOfflineAction(p,S.entityTypeMap.singleEntityType,
"OFFLINE_ORCHESTRATION_ACTION_TYPE_ADD",V),0)}})};
G4o=function(S,p,U,Y,L){return _.T(function(I){return I.nextAddress==1?_.k(I,S.deleteVideo(p,"OFFLINE_DELETE_REASON_FAILED_VIDEO_RETRY"),2):_.k(I,rFE(S,p,U,Y,L),0)})};
hqn=function(S,p,U){var Y,L;return _.T(function(I){if(I.nextAddress==1)return _.k(I,S.JSC$16102_playerApiPromise,2);Y=I.yieldResult;L=_.M9(p,"mainVideoDownloadStateEntity");return _.k(I,Y.updateDownloadState(L,U),0)})};
bKP=function(S){var p=_.tW().resolve(_.qL);return _.T(function(U){if(U.nextAddress==1)return p.previousDownloadStateForVideo[S]!=="DOWNLOAD_STATE_DOWNLOAD_IN_PROGRESS"&&p.previousDownloadStateForVideo[S]!=="DOWNLOAD_STATE_PENDING_DOWNLOAD"?U.jumpTo(2):_.k(U,p.resumeVideoDownload(S),2);if(U.nextAddress!=4)return _.k(U,hqn(p,S,p.previousDownloadStateForVideo[S]),4);delete p.previousDownloadStateForVideo[S];_.OV(U)})};
yZn=function(S,p){var U;return _.T(function(Y){if(Y.nextAddress==1)return _.k(Y,S.JSC$16102_playerApiPromise,2);U=Y.yieldResult;return _.k(Y,U.queueOfflineAction(p,S.entityTypeMap.listEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_DELETE"),0)})};
Q4i=function(){var S=_.tW().resolve(_.qL),p,U;return _.T(function(Y){if(Y.nextAddress==1)return _.k(Y,S.JSC$16102_playerApiPromise,2);if(Y.nextAddress!=3)return p=Y.yieldResult,U={offlineLoggingData:{offlineDeleteReason:"OFFLINE_DELETE_REASON_SETTINGS_DELETE_ALL"}},_.k(Y,p.queueOfflineAction("!*$_ALL_ENTITIES_!*$",S.entityTypeMap.singleEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_DELETE",U),3);var L=S.JSC$16102_commandHandler,I=L.resolveCommand,V=_.Oh("DELETING_ALL",void 0,"Downloads are being deleted");
I.call(L,{openPopupAction:{popup:{notificationActionRenderer:{responseText:_.Aa(V)}},popupType:"TOAST"}});_.OV(Y)})};
Rq5=function(S){var p,U;return _.T(function(Y){if(Y.nextAddress==1)return _.k(Y,S.JSC$16102_prefStorage,2);p=Y.yieldResult;return Y.return((U=p)==null?void 0:U.get("sdois"))})};
F_X=function(S){var p,U,Y,L,I,V;return _.T(function(W){if(W.nextAddress==1)return _.k(W,S.JSC$16102_persistentStorePromiseAccessor(),2);if(W.nextAddress!=3){p=W.yieldResult;if(!p)return _.eP(new _.y7("PES is undefined")),W.return();U=_.M9("SMART_DOWNLOADS_OPT_IN_BANNER_DISMISSED","settingEntity");return _.k(W,lGt(p,U,"settingEntity"),3)}Y=W.yieldResult;return W.return((V=(L=Y)==null?void 0:(I=L.settingOptionValue)==null?void 0:I.boolValue)!=null?V:!1)})};
XT5=function(S,p){var U,Y,L,I;return _.T(function(V){switch(V.nextAddress){case 1:return((U=p)==null?void 0:U.formatType)===void 0?V.return():_.k(V,S.JSC$16102_prefStorage,2);case 2:Y=V.yieldResult;if(Y===void 0)return V.return();if(((L=p)==null?void 0:L.settingsAction)==="DOWNLOAD_QUALITY_SETTINGS_ACTION_SAVE")return _.k(V,Y.set("lmqf",p.formatType),8);if(((I=p)==null?void 0:I.settingsAction)!=="DOWNLOAD_QUALITY_SETTINGS_ACTION_EXPIRING_SAVE"){V.jumpTo(0);break}return _.k(V,Y.set("lmqf",p.formatType),
6);case 6:return _.k(V,Y.set("lmqflst",Math.floor((0,_.AI)())),0);case 8:return _.k(V,Y.remove("lmqflst"),0)}})};
PK5=function(S){var p,U;return _.T(function(Y){switch(Y.nextAddress){case 1:return _.k(Y,S.JSC$16102_prefStorage,2);case 2:p=Y.yieldResult;if(!p){Y.jumpTo(3);break}return _.k(Y,p.get("lmqflst"),4);case 4:if(U=Y.yieldResult,U!==void 0)return Y.return(U);case 3:return Y.return(0)}})};
Z3d=function(S){var p,U;return _.T(function(Y){switch(Y.nextAddress){case 1:return _.k(Y,S.JSC$16102_prefStorage,2);case 2:p=Y.yieldResult;if(p===void 0){Y.jumpTo(3);break}return _.k(Y,p.get("lmqf"),4);case 4:if(U=Y.yieldResult,U!==void 0)return Y.return(U);case 3:return Y.return("SD")}})};
PML=function(S,p,U){var Y,L,I,V,W,O,D,z;_.T(function(Q){switch(Q.nextAddress){case 1:return _.k(Q,XT5(S,(Y=p)==null?void 0:Y.actionParams),2);case 2:L=p.playlistId;if(!L)return Q.return();if(p.action==="ACTION_ADD")return((V=p.actionParams)==null?0:V.formatType)?_.k(Q,b3A(S,L,p.actionParams.formatType,(z=p.actionParams)==null?void 0:z.settingsAction,U),0):_.k(Q,S.offlineWebClientEligibility,14);if(p.action==="ACTION_REMOVE_WITH_PROMPT"){var J=S.JSC$16102_commandHandler,K=J.resolveCommand,G=_.g7("INNERTUBE_CLIENT_NAME");
var X=G==="WEB_REMIX"?_.Oh("REMOVE_DOWNLOAD_QUESTION",void 0,"Remove download?"):_.Oh("DELETE_FROM_DOWNLOADS",void 0,"Remove from downloads");var Z=G==="WEB_REMIX"?[_.Oh("REMOVE_DOWNLOAD_CONFIRMATION",void 0,"Items you remove will no longer play without an internet connection.")]:[];G=G==="WEB_REMIX"?_.Oh("REMOVE_DOWNLOAD_BUTTON",void 0,"Remove"):_.Oh("DELETE",void 0,"Delete");var l=_.Oh("CANCEL",void 0,"Cancel");X=Fcq(X,Z,G,l,{signal:"DELETE_PLAYLIST_DOWNLOAD",targetId:L});K.call(J,{openPopupAction:X});
return Q.return()}if(p.action==="ACTION_REMOVE")return _.k(Q,yZn(S,L),0);if(p.action!=="ACTION_SYNC"){Q.jumpTo(0);break}return _.k(Q,S.JSC$16102_playerApiPromise,9);case 9:return I=Q.yieldResult,_.k(Q,I.queueOfflineAction(L,S.entityTypeMap.listEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_REFRESH"),0);case 14:return W=Q.yieldResult,_.k(Q,Z3d(S),15);case 15:return O=Q.yieldResult,_.k(Q,PK5(S),16);case 16:D=Q.yieldResult,p.onAddCommand&&S.JSC$16102_commandHandler.resolveCommand(p.onAddCommand,{form:{preferredFormatType:O,
offlineWebClientEligibility:W,lastOfflineQualitySettingsSavedMs:D.toString()}}),Q.jumpTo(0)}})};
FAt=function(S,p,U){var Y,L,I,V,W,O,D,z,Q,J,K,G,X,Z;_.T(function(l){switch(l.nextAddress){case 1:return _.k(l,XT5(S,(Y=p)==null?void 0:Y.actionParams),2);case 2:L=p.videoId;if(!L)return l.return();if(p.action==="ACTION_REMOVE_WITH_PROMPT"){var a=S.JSC$16102_commandHandler,N=a.resolveCommand,m=_.g7("INNERTUBE_CLIENT_NAME");var A=m==="WEB_REMIX"?_.Oh("REMOVE_DOWNLOAD_QUESTION",void 0,"Remove download?"):_.Oh("DELETE_FROM_DOWNLOADS",void 0,"Remove from downloads");var q=m==="WEB_REMIX"?[_.Oh("REMOVE_DOWNLOAD_CONFIRMATION_TRACK_OFFLINE",
void 0,"This track won't be available to listen offline.")]:[];m=m==="WEB_REMIX"?_.Oh("REMOVE_DOWNLOAD_BUTTON",void 0,"Remove"):_.Oh("DELETE",void 0,"Delete");var TG=_.Oh("CANCEL",void 0,"Cancel");A=Fcq(A,q,m,TG,{signal:"DELETE_DOWNLOAD",targetId:L});N.call(a,{openPopupAction:A});return l.return()}if(p.action==="ACTION_ADD")return((J=p.actionParams)==null?0:J.formatType)?_.k(l,rFE(S,L,p.actionParams.formatType,(Z=p.actionParams)==null?void 0:Z.settingsAction,U),0):_.k(l,S.offlineWebClientEligibility,
23);if(p.action==="ACTION_RETRY")return _.k(l,Z3d(S),19);if(p.action==="ACTION_PAUSE")return _.k(l,S.pauseVideoDownload(L),0);if(p.action==="ACTION_RESUME")return _.k(l,S.resumeVideoDownload(L),0);if(p.action!=="ACTION_REMOVE"){l.jumpTo(0);break}return _.k(l,jsP(S,L),13);case 13:return I=l.yieldResult,S.previousDownloadStateForVideo[L]=(V=I)!=null?V:"DOWNLOAD_STATE_UNKNOWN",_.k(l,hqn(S,L,"DOWNLOAD_STATE_USER_DELETED"),14);case 14:if(S.previousDownloadStateForVideo[L]!=="DOWNLOAD_STATE_DOWNLOAD_IN_PROGRESS"&&
S.previousDownloadStateForVideo[L]!=="DOWNLOAD_STATE_PENDING_DOWNLOAD"){l.jumpTo(15);break}return _.k(l,S.pauseVideoDownload(L),15);case 15:a=_.Oh("DELETED_VIDEO",void 0,"Video deleted from downloads.");N=_.Oh("UNDO_ACTION",void 0,"Undo");A=_.Oh("CLOSE",void 0,"Close");W={openPopupAction:{popup:{notificationActionRenderer:{responseText:_.Aa(a),actionButton:{buttonRenderer:{style:"STYLE_LIGHT_TEXT",size:"SIZE_DEFAULT",text:_.Aa(N),serviceEndpoint:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{signalAction:{signal:"UNDO_DELETE_DOWNLOAD",
targetId:L}}]}},loggingDirectives:{clientVeSpec:{uiType:169048}},accessibilityData:{accessibilityData:{label:a+" "+N}}}},closeActionButton:{buttonRenderer:{icon:{iconType:"CLOSE"},serviceEndpoint:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{signalAction:{signal:"DELETE_DOWNLOAD",targetId:L}}]}},loggingDirectives:{clientVeSpec:{uiType:169049}},accessibilityData:{accessibilityData:{label:A}}}},loggingDirectives:{clientVeSpec:{uiType:169047}}}},popupType:"TOAST"}};S.JSC$16102_commandHandler.resolveCommand(W);
l.jumpTo(0);break;case 19:O=l.yieldResult;O==="UNKNOWN_FORMAT_TYPE"&&(O="SD");D="DOWNLOAD_QUALITY_SETTINGS_ACTION_ALREADY_SAVED";if((z=p.actionParams)==null?0:z.formatType)O=p.actionParams.formatType,D=(Q=p.actionParams)==null?void 0:Q.settingsAction;return _.k(l,G4o(S,L,O,D,U),20);case 20:return l.return();case 23:return K=l.yieldResult,_.k(l,Z3d(S),24);case 24:return G=l.yieldResult,_.k(l,PK5(S),25);case 25:X=l.yieldResult,p.onAddCommand&&S.JSC$16102_commandHandler.resolveCommand(p.onAddCommand,
{form:{preferredFormatType:G,offlineWebClientEligibility:K,lastOfflineQualitySettingsSavedMs:X.toString()}}),l.jumpTo(0)}})};
ssT=function(S,p){var U,Y,L,I,V,W,O;return _.T(function(D){if(D.nextAddress==1)return _.k(D,S.JSC$16102_persistentStorePromiseAccessor(),2);U=D.yieldResult;if(!U)return _.eP(new _.y7("PES is undefined")),D.return();if((Y=p)==null||!Y.settingItemId)return D.return();L=p;I=L.settingItemId;V=L.boolValue;W=_.M9(I,"settingEntity");O={key:W,settingOptionValue:{boolValue:V}};return _.k(D,wBJ(U,O),0)})};
eqs=function(S,p){var U,Y,L,I,V,W,O;return _.T(function(D){switch(D.nextAddress){case 1:return _.k(D,S.JSC$16102_prefStorage,2);case 2:return U=D.yieldResult,Y=_.D9(),_.k(D,S.JSC$16102_persistentStorePromiseAccessor(),3);case 3:return L=D.yieldResult,U?L?_.k(D,U.get("sdois"),4):(_.eP(new _.y7("PES is undefined")),D.return()):(_.eP(new _.y7("prefStorage is undefined")),D.return());case 4:I=D.yieldResult;W=(V=p)==null?void 0:V.boolValue;W===void 0||_.y("kevlar_set_sd_enabled_flag_killswitch")||_.zI(0,
197,!0);I===void 0&&W===void 0&&(W=!1);if(W===void 0){D.jumpTo(0);break}return _.k(D,U.set("sdois",W),6);case 6:return _.y("kevlar_set_sd_enabled_flag_killswitch")||(_.zI(0,196,W),Y.save()),O={settingItemId:"SMART_DOWNLOADS_ENABLED",boolValue:W},_.k(D,ssT(S,O),0)}})};
gkA=function(S,p,U){var Y,L,I,V,W;return _.T(function(O){switch(O.nextAddress){case 1:return _.k(O,Rq5(S),2);case 2:return Y=O.yieldResult,_.k(O,eqs(S,U),3);case 3:return _.k(O,Rq5(S),4);case 4:return L=O.yieldResult,I=L!==Y,_.k(O,F_X(S),5);case 5:V=O.yieldResult&&!_.y("kevlar_modern_downloads_page");if((W=!L&&!V)||I)return _.k(O,p.queueOfflineAction("DOWNLOADS_LIST_ENTITY_ID_SMART_DOWNLOADS","mainDownloadsListEntity","OFFLINE_ORCHESTRATION_ACTION_TYPE_REFRESH"),0);O.jumpTo(0)}})};
rZn=function(){var S=_.tW().resolve(_.qL),p;_.T(function(U){switch(U.nextAddress){case 1:return _.k(U,S.JSC$16102_playerApiPromise,2);case 2:p=U.yieldResult;if(!_.y("kevlar_force_refresh_smart_downloads")){U.jumpTo(3);break}return _.k(U,p.refreshAllStaleEntities(0),4);case 4:return U.return();case 3:return _.k(U,p.refreshAllStaleEntities(),5);case 5:return _.k(U,gkA(S,p),0)}})};
s4E=function(S,p){var U,Y;_.T(function(L){switch(L.nextAddress){case 1:return _.k(L,S.JSC$16102_playerApiPromise,2);case 2:U=L.yieldResult;switch((Y=p)==null?void 0:Y.settingItemId){case "SMART_DOWNLOADS_ENABLED":return L.jumpTo(3);case "SMART_DOWNLOADS_OPT_IN_BANNER_DISMISSED":return L.jumpTo(4)}L.jumpTo(0);break;case 3:return _.k(L,gkA(S,U,p),6);case 6:L.jumpTo(0);break;case 4:return _.k(L,ssT(S,p),7);case 7:L.jumpTo(0)}})};
uBd=function(S,p){var U,Y,L;return _.T(function(I){if(I.nextAddress==1)return _.k(I,S.JSC$16102_persistentStorePromiseAccessor(),2);if(I.nextAddress!=3){U=I.yieldResult;if(!U)return _.eP(new _.y7("PES is undefined")),I.return(!1);if(!p)return I.return(!1);Y=_.M9(p,"mainVideoEntity");return _.k(I,lGt(U,Y,"mainVideoEntity"),3)}L=I.yieldResult;return I.return(L!==void 0)})};
gln=function(S){var p=_.tW().resolve(_.qL),U,Y,L,I,V,W,O,D,z,Q,J;_.T(function(K){switch(K.nextAddress){case 1:return _.k(K,p.JSC$16102_playerApiPromise,2);case 2:U=K.yieldResult;L=(Y=S)==null?void 0:Y.actions;if(!L)return K.return();I=_.d(L);V=I.next();case 3:if(V.done){K.jumpTo(0);break}W=V.value;D=O=void 0;if(!(((O=W)==null?0:O.entityKey)&&((D=W)==null?0:D.actionType))){K.jumpTo(4);break}z=_.Uc(W.entityKey);Q=z.entityId;J=z.entityType;return _.k(K,U.queueOfflineAction(Q,J,W.actionType),4);case 4:V=
I.next(),K.jumpTo(3)}})};
wTJ=function(S,p){var U,Y,L,I,V;return _.T(function(W){if(W.nextAddress==1)return _.k(W,S.JSC$16102_prefStorage,2);if(W.nextAddress!=3)return(U=W.yieldResult)?_.k(W,U.get("psi"),3):W.return();Y=W.yieldResult;V={isPaused:p,lastSyncTimestamp:(I=(L=Y)==null?void 0:L.lastSyncTimestamp)!=null?I:"0"};return _.k(W,U.set("psi",V),0)})};
l4L=function(S){var p=_.tW().resolve(_.qL),U,Y,L,I,V,W,O,D;return _.T(function(z){switch(z.nextAddress){case 1:return _.k(z,p.JSC$16102_playerApiPromise,2);case 2:U=z.yieldResult;L=((Y=S)==null?void 0:Y.localWatchHistoryCommandType)==="LOCAL_WATCH_HISTORY_COMMAND_TYPE_PAUSE";switch((W=S)==null?void 0:W.localWatchHistoryCommandType){case "LOCAL_WATCH_HISTORY_COMMAND_TYPE_CLEAR":I="!*$_ALL_ENTITIES_!*$";V="OFFLINE_ORCHESTRATION_ACTION_TYPE_DELETE";break;case "LOCAL_WATCH_HISTORY_COMMAND_TYPE_PAUSE":case "LOCAL_WATCH_HISTORY_COMMAND_TYPE_RESUME":return z.jumpTo(3);
case "LOCAL_WATCH_HISTORY_COMMAND_TYPE_REMOVE":return z.jumpTo(4)}z.jumpTo(5);break;case 3:return _.k(z,wTJ(p,L),6);case 6:z.jumpTo(5);break;case 4:return _.k(z,uBd(p,(O=S)==null?void 0:O.videoId),7);case 7:z.yieldResult&&(I=(D=S)==null?void 0:D.videoId,V="OFFLINE_ORCHESTRATION_ACTION_TYPE_DELETE");z.jumpTo(5);break;case 5:if(I&&V)return _.k(z,U.queueOfflineAction(I,"videoPlaybackPositionEntity",V),0);z.jumpTo(0)}})};
lli=function(S,p){var U;p!==1||((U=S.currentPersistentToast)==null?0:U.isOpened())?S.openToast():S.currentPersistentToast=void 0};
alJ=function(){var S,p,U,Y;return _.T(function(L){if(L.nextAddress==1)return S=navigator,(p=S.storage)!=null&&p.persisted?_.k(L,(U=S.storage)==null?void 0:U.persisted(),2):L.return("PERSISTED_STATE_NOT_SUPPORTED");Y=L.yieldResult;return L.return(Y?"PERSISTED_STATE_GRANTED":"PERSISTED_STATE_NOT_GRANTED")})};
flL=function(){var S,p,U,Y;return _.T(function(L){if(L.nextAddress==1)return S=navigator,(p=S.storage)!=null&&p.persist?_.k(L,(U=S.storage)==null?void 0:U.persist(),2):L.return("PERSISTED_STATE_NOT_SUPPORTED");Y=L.yieldResult;return L.return(Y?"PERSISTED_STATE_GRANTED":"PERSISTED_STATE_NOT_GRANTED")})};
CKX=function(){var S,p;return _.T(function(U){switch(U.nextAddress){case 1:return S="PERSISTED_STATE_NOT_SUPPORTED",_.M2(U,2),_.k(U,alJ(),4);case 4:S=U.yieldResult;if(S!=="PERSISTED_STATE_NOT_GRANTED"){U.jumpTo(5);break}return _.k(U,flL(),6);case 6:S=U.yieldResult;case 5:_.CA(U,3);break;case 2:p=_.W4(U),p instanceof Error&&_.ZP(p);case 3:return _.RV("persistentStorageStateChecked",{persistedState:S}),U.return(S)}})};
xsn=function(S,p){var U=[],Y=!1;p=_.d(p);for(var L=p.next();!L.done;L=p.next()){L=S.moduleRegistry[L.value];var I=void 0,V=void 0;((I=L)==null?0:I.isFetching)&&((V=L)==null?0:V.resolver)?(U.push(L.resolver.promise),Y=!0):(L=new _.MI,L.resolve(void 0),U.push(L.promise))}return Y?Promise.all(U):void 0};
EkE=function(S,p,U){U=U===void 0?{}:U;var Y=S.defaultViewTransitionOptions,L=p.map(function(V){return V.beforeTransition}),I=p.map(function(V){return V.afterTransition});
return Object.assign({},Y,U,{beforeTransition:function(){var V;(V=Y.beforeTransition)==null||V.call(Y);var W,O;(O=(W=U).beforeTransition)==null||O.call(W);V=_.d(L);for(W=V.next();!W.done;W=V.next())W=W.value,W()},
afterTransition:function(){var V;(V=Y.afterTransition)==null||V.call(Y);var W,O;(O=(W=U).afterTransition)==null||O.call(W);V=_.d(I);for(W=V.next();!W.done;W=V.next())W=W.value,W()}})};
msP=function(S,p,U){var Y,L,I,V,W,O,D;_.T(function(z){if(S.config.disableAllTransitions)return z.return(p());if((Y=U)==null||!Y.transitionName)return z.return(_.i8X(p,(L=U)==null?void 0:L.viewTransitionOptions));I=U;V=I.transitionName;W=I.viewTransitionOptions;O=S.config.transitionConfigs.get(V);if(!O)return z.return(p());var Q;D=(Q=S.transitionTasksMap.get(V))!=null?Q:[];return z.return(_.i8X(p,EkE(O,D,W)))})};
qy=function(S,p,U){S.transitionTasksMap.has(p)?S.transitionTasksMap.get(p).push(U):(S=new _.y7("Transition task registered for unknown transition name",p),_.ZP(S))};
ok5=function(S,p,U){if(S.isInitialized()){var Y=pi(U),L=Y==="watch";Y=Y==="shorts";var I=pi(p)==="watch";if(L)I||(S.backgroundPageData=p),S.watchPipMode&&I||S.deactivate(U.endpoint);else if(Y){if(pi(p)!=="shorts"){var V;(V=S.getPlayerElement())==null||V.pause()}}else I&&!S.watchPipMode&&(PbX(p,U)?(S.watchWhileMode&&_.Bii(S,!1),_.mYt(S,p)):S.isMiniplayerActive()&&S.watchWhileMode&&S.deactivate());I&&_.AdX(S);S.shortsPipMode&&!Y&&(window.focus(),S.deactivate());if(S.pictureInPictureEnabled())if(Y&&
S.shortsPipEnabled||L&&S.watchPipEnabled)_.eJE(S.handleMediaSessionPipActivation);else if(!S.isMiniplayerActive()&&(S.shortsPipEnabled||S.watchPipEnabled)&&window.documentPictureInPicture&&_.Pk()&&_.Ore("Chromium")>=120){S=_.sCE().mediaSession;try{S.setActionHandler("enterpictureinpicture",null)}catch(W){}}}};
vkt=function(S,p){var U,Y;_.T(function(L){if(L.nextAddress==1){if(!S||!S.navigationEndpoint)return L.return();_.Vy().lockupActivation=!0;var I;p?I=_.Ec(_.Oh("QUEUE",void 0,"Queue")):I=S.longBylineText;Y=(U=I)&&S.title?{miniplayerTitle:S.title,miniplayerSubtitle:U,playlistData:null}:void 0;return _.k(L,_.U3c(_.tW().resolve(_.eC),S.navigationEndpoint,!0,Y),2)}_.Vy().userActivation=!0;_.OV(L)})};
e0T=function(S,p){var U,Y,L,I,V,W;_.T(function(O){if(O.nextAddress==1){U=_.b(p,_.Yxm);if(!U||!U.listId)return O.return();S.index=U.index||S.index||0;Y=S.response&&S.response.playingVideoId||void 0;return _.k(O,_.skl(S.JSC$10802_playlistNetworkManager,U.listId,S.index,Y),2)}L=O.yieldResult;if(!L)return O.return();I=L.playlistId;V=L.playlistPanelRenderer;!S.queueProxy&&I&&V&&I.startsWith("TLPQ")&&(S.queueProxy=new _.GE(S.JSC$10802_playlistNetworkManager,I,S.setPlaylistData.bind(S),S.clearQueue.bind(S),
_.t8E(V),S.storage));if(U.openMiniplayer&&(W=_.c4w(V))&&!S.pageManager.isOnWatch()){var D=W,z=U.listType==="PLAYLIST_EDIT_LIST_TYPE_QUEUE";S.isMiniplayerActive()?S.openToast(D):vkt(D,z)}S.setPlaylistData(I,V,L.autoplayRenderer);_.OV(O)})};
PLi=function(S,p){var U=_.e8();U.index===void 0&&(U.index=0);U.temporaryItems.push.apply(U.temporaryItems,_.jo(S));if((p.videoId||p.videoIds)&&U.index!==void 0&&p.listType==="PLAYLIST_EDIT_LIST_TYPE_QUEUE"){if(!U.queueProxy){var Y=[];if(U.response){var L=_.tW().resolve(_.eC).isMiniplayerActive();if(U.response.playlistPanelRenderer&&U.response.playlistId&&!U.response.playlistId.startsWith("TLPQ")){if(U.pageManager.isOnWatch()||L)Y=_.t8E(U.response.playlistPanelRenderer)}else U.response.playingVideoId&&
!p.openMiniplayer?Y.push(U.response.playingVideoId):L&&U.response.playingVideoId&&p.openMiniplayer&&Y.push(U.response.playingVideoId)}U.queueProxy=new _.GE(U.JSC$10802_playlistNetworkManager,"",U.setPlaylistData.bind(U),U.clearQueue.bind(U),Y,U.storage);U.queueProxy.JSC$10748_setCurrentIndex(U.index)}U.queueProxy.addVideos(p.videoIds||[p.videoId],p)}CEA(U,S);U.response&&_.g_(U,_.ul(U,U.response.autoplayRenderer));U.pageManager.isOnWatch()?U.isMiniplayerActive()&&U.openToast(S[0]):(S=S[0],p=p.listType===
"PLAYLIST_EDIT_LIST_TYPE_QUEUE",U.isMiniplayerActive()?U.openToast(S):vkt(S,p))};
$sT=function(S){var p=_.HP(S);if(p=="object"||p=="array"){if(typeof S.clone==="function")return S.clone();if(typeof Map!=="undefined"&&S instanceof Map)return new Map(S);if(typeof Set!=="undefined"&&S instanceof Set)return new Set(S);p=p=="array"?[]:{};for(var U in S)p[U]=$sT(S[U]);return p}return S};
kI=function(S,p){return _.BNG(_.VY(S,p,void 0,_.d1))};
Hf=function(S,p){return _.hd(_.VY(S,p,void 0,_.d1))};
Dy=function(S,p){return _.Dtu(_.VY(S,p,void 0,_.d1))};
zZ=function(S,p){return _.VY(S,p,void 0,_.d1,_.k5)};
i3P=_.vY(function(S,p,U){if(S.nextWireType_!==0)return!1;_.$A(p,U,_.ZN(S.decoder_,_.Y5));return!0},_.Ai,_.g1);
N9T=_.vY(function(S,p,U,Y){if(S.nextWireType_!==0)return!1;_.kC(p,U,Y,_.ZN(S.decoder_,_.Y5));return!0},_.Ai,_.g1);
B9q=_.vY(function(S,p,U){if(S.nextWireType_!==1)return!1;var Y=S.decoder_;S=_.eR(Y);Y=_.eR(Y);S=_.SX(S,Y);_.$A(p,U,S);return!0},_.iEu,_.G6R);
q2T=_.vY(function(S,p,U){if(S.nextWireType_!==5)return!1;_.$A(p,U,_.eR(S.decoder_));return!0},function(S,p,U){p=_.RT(p);
p!=null&&(_.Nh(S,U,5),_.qh(S.encoder_,p))},_.rwu);
AFP=_.vY(function(S,p,U){if(S.nextWireType_!==0)return!1;S=_.Y_N(S.decoder_);_.$A(p,U,S===!1?void 0:S);return!0},_.Niq,_.ywq);
tpq=_.vY(function(S,p,U){if(S.nextWireType_!==2)return!1;S=_.TpG(S);_.$A(p,U,S===""?void 0:S);return!0},_.qtG,_.KWw);
cFP=_.vY(function(S,p,U){if(S.nextWireType_!==2)return!1;S=_.WWN(S);_.$A(p,U,S===_.lt()?void 0:S);return!0},_.tXw,_.FWk);
SWn=_.ask(function(S,p,U){if(S.nextWireType_!==0&&S.nextWireType_!==2)return!1;p=_.hi(p,p[_.jQ]|0,U);S.nextWireType_==2?_.OwN(S,DIs,p):p.push(_.sx(S.decoder_));return!0},function(S,p,U){p=_.lsr(_.hd,p,!0);
if(p!=null&&p.length){U=_.HEw(S,U);for(var Y=0;Y<p.length;Y++)_.mYX(S.encoder_,p[Y]);_.DYN(S,U)}},_.X5E);
pXi=_.vY(function(S,p,U){if(S.nextWireType_!==0)return!1;S=_.sx(S.decoder_);_.$A(p,U,S===0?void 0:S);return!0},_.cde,_.X5E);
UmJ=_.vY(function(S,p,U,Y){if(S.nextWireType_!==0)return!1;_.kC(p,U,Y,_.sx(S.decoder_));return!0},_.cde,_.X5E);
_.m1=function(S){this.privateDoNotAccessOrElseWrappedStyleSheet=S};
_.m1.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedStyleSheet};
var xUL=function(S,p){return new _.Xp(S.x+p.x,S.y+p.y)},YWT=function(S){return S.previousElementSibling!==void 0?S.previousElementSibling:_.gRj(S.previousSibling,!1)},Lsn=function(S,p){var U=[];
for(p=p||0;p<S.length;p+=2)_.jPP(S[p],S[p+1],U);return U.join("&")},MVn=function(S,p){var U=arguments.length==2?Lsn(arguments[1],0):Lsn(arguments,1);
return _.bcE(S,U)},I$t=function(S){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.UH(S)};
_.r(I$t,_.a5);I$t.prototype.getValue=function(){var S=_.VY(this,2);if(Array.isArray(S)||S instanceof _.a5)throw Error("aa");return _.Ox(this,2)};
var Icd=function(){var S=_.pH();this.JSC$7923_streamzService=S;S.addNewCounter("/client_streamz/youtube/living_room/mdx/channel/opened",_.IW("channel_type"))};
Icd.prototype.increment=function(S){this.JSC$7923_streamzService.JSC$7796_incrementCounter("/client_streamz/youtube/living_room/mdx/channel/opened",S)};
var d0q=function(){var S=_.pH();this.JSC$7926_streamzService=S;S.addNewCounter("/client_streamz/youtube/living_room/mdx/channel/closed",_.IW("channel_type"))};
d0q.prototype.increment=function(S){this.JSC$7926_streamzService.JSC$7796_incrementCounter("/client_streamz/youtube/living_room/mdx/channel/closed",S)};
var TVn=function(){var S=_.pH();this.JSC$7929_streamzService=S;S.addNewCounter("/client_streamz/youtube/living_room/mdx/channel/message_received",_.IW("channel_type"))};
TVn.prototype.increment=function(S){this.JSC$7929_streamzService.JSC$7796_incrementCounter("/client_streamz/youtube/living_room/mdx/channel/message_received",S)};
var VFo=function(){var S=_.pH();this.JSC$7932_streamzService=S;S.addNewCounter("/client_streamz/youtube/living_room/mdx/channel/success")};
VFo.prototype.increment=function(){this.JSC$7932_streamzService.JSC$7796_incrementCounter("/client_streamz/youtube/living_room/mdx/channel/success")};
var W$L=function(){var S=_.pH();this.JSC$7935_streamzService=S;S.addNewCounter("/client_streamz/youtube/living_room/mdx/channel/error",_.IW("channel_type"),_.IW("error_type"))};
W$L.prototype.increment=function(S,p){this.JSC$7935_streamzService.JSC$7796_incrementCounter("/client_streamz/youtube/living_room/mdx/channel/error",S,p)};
var OZL=function(){var S=_.pH();this.JSC$7938_streamzService=S;S.addNewCounter("/client_streamz/youtube/living_room/mdx/browser_channel/pending_maps")};
OZL.prototype.increment=function(){this.JSC$7938_streamzService.JSC$7796_incrementCounter("/client_streamz/youtube/living_room/mdx/browser_channel/pending_maps")};
var kTq=function(){var S=_.pH();this.JSC$7941_streamzService=S;S.addNewCounter("/client_streamz/youtube/living_room/mdx/browser_channel/undelivered_maps")};
kTq.prototype.increment=function(){this.JSC$7941_streamzService.JSC$7796_incrementCounter("/client_streamz/youtube/living_room/mdx/browser_channel/undelivered_maps")};
var UIP=function(){var S=_.pH();this.JSC$7947_streamzService=S;S.addNewCounter("/client_streamz/youtube/identity/dma_pause_player")};
UIP.prototype.increment=function(){this.JSC$7947_streamzService.JSC$7796_incrementCounter("/client_streamz/youtube/identity/dma_pause_player")};
var dmn=function(S){return S.getCount&&typeof S.getCount=="function"?S.getCount():_.Ae(S)||typeof S==="string"?S.length:_.h9.getCount(S)},VVn=function(S,p){if(typeof S.every=="function")return S.every(p,void 0);
if(_.Ae(S)||typeof S==="string")return Array.prototype.every.call(S,p,void 0);for(var U=_.QYe(S),Y=_.xx(S),L=Y.length,I=0;I<L;I++)if(!p.call(void 0,Y[I],U&&U[I],S))return!1;return!0},TxE=function(S,p,U,Y){var L=new _.ma(null);
S&&_.ED(L,S);p&&_.mf(L,p);U&&_.ow(L,U);Y&&_.v3(L,Y);return L},Wso=function(){var S=_.gE&&_.Dw(_.XzI,10)>=0,p;
if(p=_.nwN)p=_.Dw(_.F4j,10)>=0;var U=_.LT&&_.Dw(_.XzI,85)>=0;return _.SR||S||p||U},Ozd=function(S){var p=_.Ute(S);
return p&&Wso()?-S.scrollLeft:p&&_.f2(S,"overflowX")!="visible"?S.scrollWidth-S.clientWidth-S.scrollLeft:S.scrollLeft},keJ=function(S,p){p=Math.max(p,0);
_.Ute(S)?Wso()?S.scrollLeft=-p:S.scrollLeft=S.scrollWidth-p-S.clientWidth:S.scrollLeft=p},vsL=0,q0q=!1;
Y3.prototype.set=function(S){this.relativeTimeStart_=S};
Y3.prototype.reset=function(){this.set(_.BO())};
Y3.prototype.get=function(){return this.relativeTimeStart_};
var Hzd=null,DmT=function(){Hzd||(Hzd=new Y3)},zM5=function(){Hzd||(Hzd=new Y3)};
_.q_(zM5,DmT);_.M=tni.prototype;_.M.JSC$9257_buffer_="";_.M.set=function(S){this.JSC$9257_buffer_=""+S};
_.M.append=function(S,p,U){this.JSC$9257_buffer_+=String(S);if(p!=null)for(var Y=1;Y<arguments.length;Y++)this.JSC$9257_buffer_+=arguments[Y];return this};
_.M.clear=function(){this.JSC$9257_buffer_=""};
_.M.getLength=function(){return this.JSC$9257_buffer_.length};
_.M.toString=function(){return this.JSC$9257_buffer_};
var Qfs=function(){var S={type:"unit",style:"narrow"};this.listType_=S&&S.type?S.type:"conjunction";this.listStyle_=S&&S.style?S.style:"long";this.listSymbols_=bHd;S=0;switch(this.listStyle_){case "short":S=1;break;case "narrow":S=2}switch(this.listType_){case "conjunction":this.listStartPattern_=this.listSymbols_.AND_START[S];this.listTwoPattern_=(this.listSymbols_.AND_TWO||this.listSymbols_.AND_END)[S];this.listMiddlePattern_=(this.listSymbols_.AND_MIDDLE||this.listSymbols_.AND_START)[S];this.listEndPattern_=
this.listSymbols_.AND_END[S];break;case "disjunction":this.listStartPattern_=(this.listSymbols_.OR_START||this.listSymbols_.AND_START)[S];this.listTwoPattern_=(this.listSymbols_.OR_TWO||this.listSymbols_.OR_END)[S];this.listMiddlePattern_=(this.listSymbols_.OR_MIDDLE||this.listSymbols_.AND_START)[S];this.listEndPattern_=this.listSymbols_.OR_END[S];break;case "unit":this.listStartPattern_=(this.listSymbols_.UNIT_START||this.listSymbols_.AND_START)[S],this.listTwoPattern_=(this.listSymbols_.UNIT_TWO||
this.listSymbols_.UNIT_END)[S],this.listMiddlePattern_=(this.listSymbols_.UNIT_MIDDLE||this.listSymbols_.AND_START)[S],this.listEndPattern_=this.listSymbols_.UNIT_END[S]}};
Qfs.prototype.format=function(S){return nXT(this,S)};
var nXT=function(S,p){var U=p.length;switch(U){case 0:return"";case 1:return String(p[0]);case 2:return S.listTwoPattern_.replace("{0}",String(p[0])).replace("{1}",String(p[1]))}for(var Y=S.listStartPattern_.replace("{0}",String(p[0])).replace("{1}",String(p[1])),L=2;L<U-1;++L)Y=S.listMiddlePattern_.replace("{0}",Y).replace("{1}",String(p[L]));return S.listEndPattern_.replace("{0}",Y).replace("{1}",String(p[U-1]))},DT5=function(){var S={style:1};
this.style_=(S==null?void 0:S.style)||0;this.durationSymbols_=_.IhE||_.Ttq},JSi=function(S,p){switch(p){default:case "years":return S.durationSymbols_.YEAR;
case "months":return S.durationSymbols_.MONTH;case "weeks":return S.durationSymbols_.WEEK;case "days":return S.durationSymbols_.DAY;case "hours":return S.durationSymbols_.HOUR;case "minutes":return S.durationSymbols_.MINUTE;case "seconds":return S.durationSymbols_.SECOND}},Qo=function(S,p,U){a:{U=JSi(S,U);
switch(S.style_){case 1:if(U.LONG!=void 0){S=U.LONG;break a}case 2:if(U.NARROW!=void 0){S=U.NARROW;break a}default:S=U.SHORT;break a}S=void 0}return S?(new _.s4c("{DURATION_VALUE,plural,"+S+"}")).format({DURATION_VALUE:p}):""};
DT5.prototype.format=function(S){var p=[],U=S.years,Y=S.months,L=S.weeks,I=S.days,V=S.hours,W=S.minutes;S=S.seconds;U!=null&&p.push(Qo(this,U,"years"));Y!=null&&p.push(Qo(this,Y,"months"));L!=null&&p.push(Qo(this,L,"weeks"));I!=null&&p.push(Qo(this,I,"days"));V!=null&&p.push(Qo(this,V,"hours"));W!=null&&p.push(Qo(this,W,"minutes"));S!=null&&p.push(Qo(this,S,"seconds"));return(new Qfs).format(p)};
var ySn=!1,M9q=function(S){_.Sw.call(this,S.message||S.description||S.name);this.isMissing=S instanceof Li;this.isTimeout=S instanceof _.$o&&S.errorCode=="net.timeout";this.isCanceled=S instanceof _.aA};
_.r(M9q,_.Sw);M9q.prototype.name="BiscottiError";var Li=function(){_.Sw.call(this,"Biscotti ID is missing from server")};
_.r(Li,_.Sw);Li.prototype.name="BiscottiMissingError";var My=null,Ka5=function(){try{var S=_.ad("yt.ads.biscotti.getId_");return S?S():aCL()}catch(p){return _.jV(p)}},HAE,Ksq=function(S){return _.S4({type:"SET_GUIDE_IS_EXPANDED",
payload:S})},bzE=function(S){return _.S4({type:"SET_ONLINE_STATUS",
payload:S})},jft=function(S,p){return _.S4({type:"SET_TRANSCRIPTION_STATE",
payload:{high:S,low:p}})},rSn=function(S){return _.S4({type:"SET_OVERLAY_STATE",
payload:S})},Ge5=0,hMY=function(S,p,U){var Y=this;
this.priority=p;this.delay=U;this.jobId=0;this.completionCallback=_.TX;this.wrappedJob=function(){S();Y.completionCallback()};
this.id=++Ge5};
hMY.prototype.enqueue=function(S){this.completionCallback=S;this.jobId=_.PA.addJob(this.wrappedJob,this.priority,this.delay)};
var nV=function(){_.BF.call(this);this.isActive=!1;this.suspendedTasks=new Set;this.scheduledTasks=new Set;this.taskIdToTask=new Map};
_.r(nV,_.BF);nV.prototype.addJob=function(S,p,U){S=new hMY(S,p,U);this.taskIdToTask.set(S.id,S);this.isActive?RMq(this,S):this.suspendedTasks.add(S);return S.id};
var RMq=function(S,p){S.scheduledTasks.add(p);p.enqueue(function(){S.scheduledTasks.delete(p)})};
nV.prototype.cancelJob=function(S){(S=this.taskIdToTask.get(S))&&(this.scheduledTasks.delete(S)?_.PA.cancelJob(S.jobId):this.suspendedTasks.delete(S))};
nV.prototype.pause=function(){var S=this;this.isActive=!1;this.scheduledTasks.forEach(function(p){_.PA.cancelJob(p.jobId);S.suspendedTasks.add(p)});
this.scheduledTasks.clear()};
nV.prototype.start=function(){var S=this;this.isActive=!0;this.suspendedTasks.forEach(function(p){RMq(S,p)});
this.suspendedTasks.clear()};
nV.prototype.reset=function(){this.scheduledTasks.forEach(function(S){_.PA.cancelJob(S.jobId)});
this.scheduledTasks.clear();this.suspendedTasks.clear();this.taskIdToTask.clear()};
var Jb=function(S,p){this.JSC$10931_networkService_=S;this.pageRequestPromise=p};
Jb.prototype.fetchData=function(S){Fsn(this,this.JSC$10931_networkService_.fetchData(S))};
Jb.prototype.postData=function(S,p){Fsn(this,this.JSC$10931_networkService_.postData(S,p))};
Jb.prototype.requestDataForServiceEndpoint=function(S,p){Fsn(this,this.JSC$10931_networkService_.requestDataForServiceEndpoint(S,p))};
var Fsn=function(S,p){p.then(S.pageRequestPromise.onSuccess,S.pageRequestPromise.onFailure,S.pageRequestPromise)};
Jb.prototype.cancel=function(){this.pageRequestPromise.cancel()};
var yo=function(S){this.buildNetworkRequest_=S;this.pendingRequests_=new Set};
yo.prototype.reset=function(){this.pendingRequests_.forEach(function(S){S.cancel()});
this.pendingRequests_.clear()};
yo.prototype.fetchData=function(S){var p=XXn(this);p.fetchData(S);return p.pageRequestPromise};
yo.prototype.postData=function(S,p){var U=XXn(this);U.postData(S,p);return U.pageRequestPromise};
yo.prototype.requestDataForServiceEndpoint=function(S,p){var U=XXn(this);U.requestDataForServiceEndpoint(S,p);return U.pageRequestPromise};
var XXn=function(S){var p=S.buildNetworkRequest_();S.pendingRequests_.add(p);var U=function(){S.pendingRequests_.delete(p)};
p.pageRequestPromise.then(U,U);return p},PTJ=function(S){var p=new nV;
this.JSC$10938_networkService_=S;this.JSC$10938_taskManager_=p;this.JSC$10938_networkManager_=new yo(this.networkRequestFactory_.bind(this))};
_.M=PTJ.prototype;_.M.networkRequestFactory_=function(){return new Jb(this.JSC$10938_networkService_,new _.Nu(this.JSC$10938_taskManager_))};
_.M.reset=function(){this.JSC$10938_taskManager_.reset();this.JSC$10938_networkManager_.reset()};
_.M.start=function(){this.JSC$10938_taskManager_.start()};
_.M.pause=function(){this.JSC$10938_taskManager_.pause()};
_.M.getTaskManager=function(){return this.JSC$10938_taskManager_};
_.M.getNetworkManager=function(){return this.JSC$10938_networkManager_};
var yIi=null,jxo=[],I$=0,V3=0,dF=null,ZzY=!1,Ta=null,Gpq=void 0,sf5=function(){var S=(0,_.vBm)();S&&rBi(S,S.mechanism.__iterator__(!0))},OJ=function(S){this.token=S};
OJ.getInstance=function(){var S;return _.T(function(p){if(p.nextAddress==1)return _.k(p,_.BS(),2);S=p.yieldResult;if(!S)return p.return();OJ.instance||(OJ.instance=new OJ(S));return p.return(OJ.instance)})};
var ZAn=function(S){var p;return _.T(function(U){if(U.nextAddress==1)return _.k(U,FYT(S.token),2);p=U.yieldResult;return U.return(p.clear("resource-manifest-assets"))})},W2=function(S){this.token=S};
W2.getInstance=function(){var S;return _.T(function(p){if(p.nextAddress==1)return _.k(p,_.BS(),2);S=p.yieldResult;if(!S)return p.return();W2.instance||(W2.instance=new W2(S));return p.return(W2.instance)})};
var XSn=function(S){var p;return _.T(function(U){if(U.nextAddress==1)return _.k(U,FYT(S.token),2);p=U.yieldResult;return _.k(U,p.clear("auth"),0)})},AIA=!1,eMi=function(S){_.Sw.call(this,S)};
_.r(eMi,_.WNQ);var Arq=function(){var S=window.navigator.userAgent.match(/Chrome\/([0-9]+)/);return S?parseInt(S[1],10):0},gXX=function(S){return!!document.currentScript&&(document.currentScript.src.indexOf("?"+S)!=-1||document.currentScript.src.indexOf("&"+S)!=-1)},uiL=function(){return typeof window.__onGCastApiAvailable=="function"?window.__onGCastApiAvailable:null},UUq=function(S){S.length?wXA(S.shift(),function(){UUq(S)}):crn()},LaJ=function(S){return"chrome-extension://"+S+"/cast_sender.js"},wXA=function(S,
p,U){var Y=document.createElement("script");
Y.onerror=p;U&&(Y.onload=U);_.fh(Y,_.Xa(S));(document.head||document.documentElement).appendChild(Y)},l$X=function(){var S=Arq(),p=[];
if(S>1){var U=S-1;p.push("//www.gstatic.com/eureka/clank/"+S+"/cast_sender.js");p.push("//www.gstatic.com/eureka/clank/"+U+"/cast_sender.js")}return p},crn=function(){var S=uiL();
S&&S(!1,"No cast extension found")},pvY=function(){if(a$Y){var S=2,p=uiL(),U=function(){S--;
S==0&&p&&p(!0)};
window.__onGCastApiAvailable=U;wXA("//www.gstatic.com/cast/sdk/libs/sender/1.0/cast_framework.js",crn,U)}},tFJ=function(){pvY();
var S=l$X();S.push("//www.gstatic.com/eureka/clank/cast_sender.js");UUq(S)},S$n=function(){pvY();
var S=l$X();S.push.apply(S,_.jo(Y$T.map(LaJ)));S.push("//www.gstatic.com/eureka/clank/cast_sender.js");UUq(S)},a$Y=gXX("loadCastFramework")||gXX("loadCastApplicationFramework"),Y$T=["pkedcjkdefgpdelpbcmbmeomcjbeemfm",
"enhhojjnijigcajfphajepfemndkmdlo"];var f$i=function(S){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.UH(S)};
_.r(f$i,_.a5);var CTt=function(S){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.UH(S)};
_.r(CTt,_.a5);var xm5=function(){var S=new CTt;return _.XU(S,1,3)};var KV=function(S){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.UH(S)};
_.r(KV,_.a5);var $z5=function(S){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.UH(S)};
_.r($z5,_.a5);var EXn=function(S){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.UH(S)};
_.r(EXn,_.a5);EXn.prototype.getToken=function(){return _.jR(this,1)};
EXn.prototype.setToken=function(S){return _.$9(this,1,S)};
var o7n=function(S){return _.K8(S,3,_.CE,_.Ur())},v7X=function(S){return _.K8(S,6,_.CE,_.Ur())};var b2=function(S){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.UH(S)};
_.r(b2,_.a5);b2.prototype.getToken=function(){return _.Sa(this,EXn,2)};
b2.prototype.setToken=function(S){return _.U3(this,2,S)};
b2.prototype.getName=function(){return _.jR(this,6)};
var mmX=_.SO(b2);var oXn=function(S,p,U){this.requestMessage=S;this.methodDescriptor=p;this.metadata=U};
oXn.prototype.getMetadata=function(){return this.metadata};var vXL=function(S,p){p=p===void 0?{}:p;this.responseMessage=S;this.metadata=p;this.status=null};
vXL.prototype.getMetadata=function(){return this.metadata};
vXL.prototype.getStatus=function(){return this.status};var j2=function(S,p,U,Y,L){this.name=S;this.methodType="unary";this.requestType=p;this.responseType=U;this.requestSerializeFn=Y;this.responseDeserializeFn=L},$ms=function(S,p,U){U=U===void 0?{}:U;
return new oXn(p,S,U)};
j2.prototype.getName=function(){return this.name};var rU=function(S){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.UH(S)};
_.r(rU,_.a5);rU.prototype.setHeader=function(S){return _.U3(this,1,S)};
rU.prototype.hasHeader=function(){return _.TR(this,KV,1)};var izo=function(S){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.UH(S)};
_.r(izo,_.a5);var NxJ=new j2("/google.internal.identity.accountlinking.v1.AccountLinkingService/DeleteLink",rU,izo,function(S){return S.serialize()},_.SO(izo));var GZ=function(S){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.UH(S)};
_.r(GZ,_.a5);GZ.prototype.setHeader=function(S){return _.U3(this,1,S)};
GZ.prototype.hasHeader=function(){return _.TR(this,KV,1)};var BxX=function(S){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.UH(S)};
_.r(BxX,_.a5);var qWX=new j2("/google.internal.identity.accountlinking.v1.AccountLinkingService/DepositGoogleCredential",GZ,BxX,function(S){return S.serialize()},_.SO(BxX));var hb=function(S){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.UH(S)};
_.r(hb,_.a5);hb.prototype.setHeader=function(S){return _.U3(this,1,S)};
hb.prototype.hasHeader=function(){return _.TR(this,KV,1)};var ASJ=function(S){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.UH(S)};
_.r(ASJ,_.a5);ASJ.prototype.getLink=function(){return _.Sa(this,b2,1)};var tVA=new j2("/google.internal.identity.accountlinking.v1.AccountLinkingService/FinishOAuth",hb,ASJ,function(S){return S.serialize()},_.SO(ASJ));var RN=function(S){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.UH(S)};
_.r(RN,_.a5);RN.prototype.setHeader=function(S){return _.U3(this,1,S)};
RN.prototype.hasHeader=function(){return _.TR(this,KV,1)};var cS5=new j2("/google.internal.identity.accountlinking.v1.AccountLinkingService/GetLink",RN,b2,function(S){return S.serialize()},mmX);var Soo=function(S){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.UH(S)};
_.r(Soo,_.a5);var p75=function(S){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.UH(S)};
_.r(p75,_.a5);p75.prototype.getUrl=function(){return _.jR(this,2)};
p75.prototype.setUrl=function(S){return _.$9(this,2,S)};var UFn=function(S){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.UH(S)};
_.r(UFn,_.a5);var YoT=function(S){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.UH(S)};
_.r(YoT,_.a5);var LhE=function(S){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.UH(S)};
_.r(LhE,_.a5);var Y9o=function(S){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.UH(S)};
_.r(Y9o,_.a5);var UWn=function(S){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.UH(S)};
_.r(UWn,_.a5);var MMi=function(S){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.UH(S)};
_.r(MMi,_.a5);var Wes=_.SO(MMi);var ItY=function(S){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.UH(S)};
_.r(ItY,_.a5);var Fe=function(S){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.UH(S)};
_.r(Fe,_.a5);Fe.prototype.setHeader=function(S){return _.U3(this,1,S)};
Fe.prototype.hasHeader=function(){return _.TR(this,KV,1)};
Fe.prototype.getCompletionUrl=function(){return _.jR(this,6)};
Fe.prototype.getDeviceId=function(){return _.jR(this,11)};var dFL=new j2("/google.internal.identity.accountlinking.v1.AccountLinkingService/StartLinkingSession",Fe,MMi,function(S){return S.serialize()},Wes);var VMJ=new Set(["SAPISIDHASH","APISIDHASH"]);var TYd=function(S){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.UH(S)};
_.r(TYd,_.a5);TYd.prototype.getMessage=function(){return _.jR(this,2)};
var WhP=_.SO(TYd);var Xe=function(S,p){this.xhrNodeReadableStream_=S.nodeReadableStream;this.grpcResponseDeserializeFn_=p;this.JSC$17027_xhr_=S.xhr;this.onDataCallbacks_=[];this.onMetadataCallbacks_=[];this.onStatusCallbacks_=[];this.onEndCallbacks_=[];this.JSC$17027_onErrorCallbacks_=[];this.xhrNodeReadableStream_&&Osd(this)},nLd=function(S,p){var U=new kwt;
_.Kz(S.JSC$17027_xhr_,"complete",function(){if(S.JSC$17027_xhr_.isSuccess()){var Y=S.JSC$17027_xhr_.getResponseText();var L;if(L=p)L=S.JSC$17027_xhr_,L.JSC$7805_xhr_&&L.isComplete()?(L=L.JSC$7805_xhr_.getResponseHeader("Content-Type"),L=L===null?void 0:L):L=void 0,L=L==="text/plain";if(L){if(!atob)throw Error("Ij");Y=atob(Y)}try{var I=S.grpcResponseDeserializeFn_(Y)}catch(W){Pf(S,Zft(new _.nW(13,"Error when deserializing response data; error: "+W+(", response: "+Y)),U));return}Y=_.Or(S.JSC$17027_xhr_.getStatus());
Hsn(S,DFJ(S));Y==0?zoX(S,I):Pf(S,Zft(new _.nW(Y,"Xhr succeeded but the status code is not 200"),U))}else{Y=S.JSC$17027_xhr_.getResponseText();I=DFJ(S);if(Y){var V=QyX(S,Y);Y=V.code;L=V.details;V=V.metadata}else Y=2,L="Rpc failed due to xhr error. uri: "+String(S.JSC$17027_xhr_.JSC$7805_lastUri_)+", error code: "+S.JSC$17027_xhr_.JSC$7805_lastErrorCode_+", error: "+S.JSC$17027_xhr_.getLastError(),V=I;Hsn(S,I);Pf(S,Zft(new _.nW(Y,L,V),U))}})},Osd=function(S){S.xhrNodeReadableStream_.on("data",function(p){if("1"in
p){var U=p["1"];
try{var Y=S.grpcResponseDeserializeFn_(U)}catch(L){Pf(S,new _.nW(13,"Error when deserializing response data; error: "+L+(", response: "+U)))}Y&&zoX(S,Y)}if("2"in p)for(p=QyX(S,p["2"]),U=0;U<S.onStatusCallbacks_.length;U++)S.onStatusCallbacks_[U](p)});
S.xhrNodeReadableStream_.on("end",function(){Hsn(S,DFJ(S));for(var p=0;p<S.onEndCallbacks_.length;p++)S.onEndCallbacks_[p]()});
S.xhrNodeReadableStream_.on("error",function(){if(S.JSC$17027_onErrorCallbacks_.length!=0){var p=S.JSC$17027_xhr_.JSC$7805_lastErrorCode_;p!==0||S.JSC$17027_xhr_.isSuccess()||(p=6);var U=-1;switch(p){case 0:var Y=2;break;case 7:Y=10;break;case 8:Y=4;break;case 6:U=S.JSC$17027_xhr_.getStatus();Y=_.Or(U);break;default:Y=14}Hsn(S,DFJ(S));p=_.BZI(p)+", error: "+S.JSC$17027_xhr_.getLastError();U!=-1&&(p+=", http status code: "+U);Pf(S,new _.nW(Y,p))}})},DFJ=function(S){var p={},U=yBL(S.JSC$17027_xhr_);
Object.keys(U).forEach(function(Y){p[Y]=U[Y]});
return p},QyX=function(S,p){var U=2,Y={};
try{var L=WhP(p);U=_.YY(L,1);var I=L.getMessage();_.p2(L,I$t,3,_.Ur()).length&&(Y["grpc-web-status-details-bin"]=p)}catch(V){S.JSC$17027_xhr_&&S.JSC$17027_xhr_.getStatus()===404?(U=5,I="Not Found: "+String(S.JSC$17027_xhr_.JSC$7805_lastUri_)):(U=14,I="Unable to parse RpcStatus: "+V)}return{code:U,details:I,metadata:Y}};
Xe.prototype.on=function(S,p){S=="data"?this.onDataCallbacks_.push(p):S=="metadata"?this.onMetadataCallbacks_.push(p):S=="status"?this.onStatusCallbacks_.push(p):S=="end"?this.onEndCallbacks_.push(p):S=="error"&&this.JSC$17027_onErrorCallbacks_.push(p);return this};
var Zy=function(S,p){p=S.indexOf(p);p>-1&&S.splice(p,1)};
Xe.prototype.removeListener=function(S,p){S=="data"?Zy(this.onDataCallbacks_,p):S=="metadata"?Zy(this.onMetadataCallbacks_,p):S=="status"?Zy(this.onStatusCallbacks_,p):S=="end"?Zy(this.onEndCallbacks_,p):S=="error"&&Zy(this.JSC$17027_onErrorCallbacks_,p);return this};
Xe.prototype.cancel=function(){this.JSC$17027_xhr_.abort()};
var zoX=function(S,p){for(var U=0;U<S.onDataCallbacks_.length;U++)S.onDataCallbacks_[U](p)},Hsn=function(S,p){for(var U=0;U<S.onMetadataCallbacks_.length;U++)S.onMetadataCallbacks_[U](p)},Pf=function(S,p){for(var U=0;U<S.JSC$17027_onErrorCallbacks_.length;U++)S.JSC$17027_onErrorCallbacks_[U](p)};
Xe.prototype.cancel=Xe.prototype.cancel;Xe.prototype.removeListener=Xe.prototype.removeListener;Xe.prototype.on=Xe.prototype.on;var kwt=function(){var S=Error.call(this);this.message=S.message;"stack"in S&&(this.stack=S.stack);Object.setPrototypeOf(this,this.constructor.prototype);this.name="AsyncStack"};
_.r(kwt,Error);var sq=function(S){this.JSC$17036_worker_=S.worker||null;this.JSC$17036_streamBinaryChunks_=S.streamBinaryChunks||!1;this.JSC$17036_credentialsMode_=void 0};
_.q_(sq,_.qrX);sq.prototype.createInstance=function(){var S=new e2(this.JSC$17036_worker_,this.JSC$17036_streamBinaryChunks_);this.JSC$17036_credentialsMode_&&S.setCredentialsMode(this.JSC$17036_credentialsMode_);return S};
sq.prototype.setCredentialsMode=function(S){this.JSC$17036_credentialsMode_=S};
var e2=function(S,p){_.OD.call(this);this.JSC$17040_worker_=S;this.JSC$17040_streamBinaryChunks_=p;this.JSC$17040_credentialsMode_=void 0;this.status=this.readyState=0;this.responseType=this.responseText=this.response=this.statusText="";this.onreadystatechange=null;this.requestHeaders_=new Headers;this.JSC$17040_responseHeaders_=null;this.JSC$17040_method_="GET";this.JSC$17040_url_="";this.inProgress_=!1;this.JSC$17040_textDecoder_=this.currentReader_=this.fetchResponse_=null};
_.q_(e2,_.OD);e2.prototype.open=function(S,p){if(this.readyState!=0)throw this.abort(),Error("Jj");this.JSC$17040_method_=S;this.JSC$17040_url_=p;this.readyState=1;gU(this)};
e2.prototype.send=function(S){if(this.readyState!=1)throw this.abort(),Error("Kj");this.inProgress_=!0;var p={headers:this.requestHeaders_,method:this.JSC$17040_method_,credentials:this.JSC$17040_credentialsMode_,cache:void 0};S&&(p.body=S);(this.JSC$17040_worker_||_.UX).fetch(new Request(this.JSC$17040_url_,p)).then(this.handleResponse_.bind(this),this.handleSendFailure_.bind(this))};
e2.prototype.abort=function(){this.response=this.responseText="";this.requestHeaders_=new Headers;this.status=0;this.currentReader_&&this.currentReader_.cancel("Request was aborted.").catch(function(){return null});
this.readyState>=1&&this.inProgress_&&this.readyState!=4&&(this.inProgress_=!1,u2(this));this.readyState=0};
e2.prototype.handleResponse_=function(S){if(this.inProgress_&&(this.fetchResponse_=S,this.JSC$17040_responseHeaders_||(this.status=this.fetchResponse_.status,this.statusText=this.fetchResponse_.statusText,this.JSC$17040_responseHeaders_=S.headers,this.readyState=2,gU(this)),this.inProgress_&&(this.readyState=3,gU(this),this.inProgress_)))if(this.responseType==="arraybuffer")S.arrayBuffer().then(this.handleResponseArrayBuffer_.bind(this),this.handleSendFailure_.bind(this));else if(typeof _.UX.ReadableStream!==
"undefined"&&"body"in S){this.currentReader_=S.body.getReader();if(this.JSC$17040_streamBinaryChunks_){if(this.responseType)throw Error("Lj");this.response=[]}else this.response=this.responseText="",this.JSC$17040_textDecoder_=new TextDecoder;J7Y(this)}else S.text().then(this.handleResponseText_.bind(this),this.handleSendFailure_.bind(this))};
var J7Y=function(S){S.currentReader_.read().then(S.handleDataFromStream_.bind(S)).catch(S.handleSendFailure_.bind(S))};
e2.prototype.handleDataFromStream_=function(S){if(this.inProgress_){if(this.JSC$17040_streamBinaryChunks_&&S.value)this.response.push(S.value);else if(!this.JSC$17040_streamBinaryChunks_){var p=S.value?S.value:new Uint8Array(0);if(p=this.JSC$17040_textDecoder_.decode(p,{stream:!S.done}))this.response=this.responseText+=p}S.done?u2(this):gU(this);this.readyState==3&&J7Y(this)}};
e2.prototype.handleResponseText_=function(S){this.inProgress_&&(this.response=this.responseText=S,u2(this))};
e2.prototype.handleResponseArrayBuffer_=function(S){this.inProgress_&&(this.response=S,u2(this))};
e2.prototype.handleSendFailure_=function(){this.inProgress_&&u2(this)};
var u2=function(S){S.readyState=4;S.fetchResponse_=null;S.currentReader_=null;S.JSC$17040_textDecoder_=null;gU(S)};
e2.prototype.setRequestHeader=function(S,p){this.requestHeaders_.append(S,p)};
e2.prototype.getResponseHeader=function(S){return this.JSC$17040_responseHeaders_?this.JSC$17040_responseHeaders_.get(S.toLowerCase())||"":""};
e2.prototype.getAllResponseHeaders=function(){if(!this.JSC$17040_responseHeaders_)return"";for(var S=[],p=this.JSC$17040_responseHeaders_.entries(),U=p.next();!U.done;)U=U.value,S.push(U[0]+": "+U[1]),U=p.next();return S.join("\r\n")};
e2.prototype.setCredentialsMode=function(S){this.JSC$17040_credentialsMode_=S};
var gU=function(S){S.onreadystatechange&&S.onreadystatechange.call(S)};
Object.defineProperty(e2.prototype,"withCredentials",{get:function(){return this.JSC$17040_credentialsMode_==="include"},
set:function(S){this.setCredentialsMode(S?"include":"same-origin")}});var y7d=function(S){var p="";_.h9.forEach(S,function(U,Y){p+=Y;p+=":";p+=U;p+="\r\n"});
return p},Kh5=function(S,p,U){if(_.h9.isEmpty(U))return S;
U=y7d(U);if(typeof S==="string")return _.ec(S,_.CU(p),U);_.vm(S,p,U);return S};var bsE=function(){this.isInputValid_=!0;this.JSC$17046_streamPos_=0;this.leftoverInput_=""};
bsE.prototype.isInputValid=function(){return this.isInputValid_};var D8=function(){this.errorMessage_=null;this.result_=[];this.countLengthBytes_=this.length_=this.tag_=this.state_=this.JSC$17049_streamPos_=0;this.messageBuffer_=null;this.countMessageBytes_=0};
D8.prototype.isInputValid=function(){return this.state_!=3};
var wU=function(S,p,U,Y){S.state_=3;S.errorMessage_="The stream is broken @"+S.JSC$17049_streamPos_+"/"+U+". Error: "+Y+". With input:\n"+p;throw Error(S.errorMessage_);};
D8.prototype.acceptsBinaryInput=function(){return!0};
D8.prototype.parse=function(S){function p(O){O&128&&wU(I,V,W,"invalid tag");(O&7)!=2&&wU(I,V,W,"invalid wire type");I.tag_=O>>>3;I.tag_!=1&&I.tag_!=2&&I.tag_!=15&&wU(I,V,W,"unexpected tag");I.state_=1;I.length_=0;I.countLengthBytes_=0}
function U(O){I.countLengthBytes_++;I.countLengthBytes_==5&&O&240&&wU(I,V,W,"message length too long");I.length_|=(O&127)<<(I.countLengthBytes_-1)*7;O&128||(I.state_=2,I.countMessageBytes_=0,typeof Uint8Array!=="undefined"?I.messageBuffer_=new Uint8Array(I.length_):I.messageBuffer_=Array(I.length_),I.length_==0&&L())}
function Y(O){I.messageBuffer_[I.countMessageBytes_++]=O;I.countMessageBytes_==I.length_&&L()}
function L(){if(I.tag_<15){var O={};O[I.tag_]=I.messageBuffer_;I.result_.push(O)}I.state_=0}
for(var I=this,V=S instanceof Array?S:new Uint8Array(S),W=0;W<V.length;){switch(I.state_){case 3:wU(I,V,W,"stream already broken");break;case 0:p(V[W]);break;case 1:U(V[W]);break;case 2:Y(V[W]);break;default:throw Error("Nj`"+I.state_);}I.JSC$17049_streamPos_++;W++}S=I.result_;I.result_=[];return S.length>0?S:null};var eCX=function(){this.errorMessage_=null;this.JSC$17052_streamPos_=0;this.base64Decoder_=new bsE;this.pbParser_=new D8};
eCX.prototype.isInputValid=function(){return this.errorMessage_===null};
var jyq=function(S,p,U){S.errorMessage_="The stream is broken @"+S.JSC$17052_streamPos_+". Error: "+U+". With input:\n"+p;throw Error(S.errorMessage_);};
eCX.prototype.acceptsBinaryInput=function(){return!1};
eCX.prototype.parse=function(S){this.errorMessage_!==null&&jyq(this,S,"stream already broken");var p=null;try{var U=this.base64Decoder_;if(!U.isInputValid_)throw U.isInputValid_=!1,Error("Mj`"+U.JSC$17046_streamPos_+"`stream already broken`"+S);U.leftoverInput_+=S;var Y=Math.floor(U.leftoverInput_.length/4);if(Y==0)var L=null;else{try{var I=_.M_X(U.leftoverInput_.slice(0,Y*4))}catch(O){var V=U.leftoverInput_,W=O.message;U.isInputValid_=!1;throw Error("Mj`"+U.JSC$17046_streamPos_+"`"+W+"`"+V);}U.JSC$17046_streamPos_+=
Y*4;U.leftoverInput_=U.leftoverInput_.slice(Y*4);L=I}p=L===null?null:this.pbParser_.parse(L)}catch(O){jyq(this,S,O.message)}this.JSC$17052_streamPos_+=S.length;return p};var stJ=function(){this.errorMessage_=this.jsonStreamParser_=null;this.state_=this.JSC$17055_streamPos_=0;this.result_=[];this.statusParsed_=!1};
stJ.prototype.isInputValid=function(){return this.errorMessage_===null};
stJ.prototype.acceptsBinaryInput=function(){return!1};
stJ.prototype.parse=function(S){function p(O){I.state_=6;I.errorMessage_="The stream is broken @"+I.JSC$17055_streamPos_+"/"+V+". Error: "+O+". With input:\n";throw Error(I.errorMessage_);}
function U(){I.jsonStreamParser_=new _.AK({allowCompactJsonArrayFormat:!0,deliverMessageAsRawString:!0})}
function Y(O){if(O)for(var D=0;D<O.length;D++){var z={};z[1]=O[D];I.result_.push(z)}}
function L(O){if(O){(I.statusParsed_||O.length>1)&&p("extra status: "+O);I.statusParsed_=!0;var D={};D[2]=O[0];I.result_.push(D)}}
for(var I=this,V=0;V<S.length;){var W;if(W=I.state_!==2){a:{for(;V<S.length;){if(!_.qD(S[V])){W=!0;break a}V++;I.JSC$17055_streamPos_++}W=!1}W=!W}if(W)return null;switch(I.state_){case 6:p("stream already broken");break;case 0:S[V]==="["?(I.state_=1,V++,I.JSC$17055_streamPos_++):p("unexpected input token");break;case 1:S[V]==="["?(I.state_=2,U()):S[V]===","||S.slice(V,V+5)=="null,"?I.state_=3:S[V]==="]"?(I.state_=5,V++,I.JSC$17055_streamPos_++):p("unexpected input token");break;case 2:W=I.jsonStreamParser_.parse(S.substring(V));
Y(W);I.jsonStreamParser_.done()?(I.state_=3,W=I.jsonStreamParser_.JSC$9384_buffer_,I.JSC$17055_streamPos_+=S.length-V-W.length,S=W,V=0):(I.JSC$17055_streamPos_+=S.length-V,V=S.length);break;case 3:S[V]===","||S.slice(V,V+5)=="null,"?(I.state_=4,U(),I.jsonStreamParser_.parse("["),V+=S[V]===","?1:5,I.JSC$17055_streamPos_++):S[V]==="]"&&(I.state_=5,V++,I.JSC$17055_streamPos_++);break;case 4:W=I.jsonStreamParser_.parse(S.substring(V));L(W);I.jsonStreamParser_.done()?(I.state_=5,W=I.jsonStreamParser_.JSC$9384_buffer_,
I.JSC$17055_streamPos_+=S.length-V-W.length,S=W,V=0):(I.JSC$17055_streamPos_+=S.length-V,V=S.length);break;case 5:p("extra input after stream end")}}return I.result_.length>0?(S=I.result_,I.result_=[],S):null};var r7n=function(S){this.JSC$17058_xhr_=S;this.JSC$17058_parser_=null;this.status_=this.JSC$17058_pos_=0;this.hasStreamingResponseData_=!1;this.dataHandler_=this.statusHandler_=this.JSC$17058_textDecoder_=null;this.JSC$17058_eventHandler_=new _.cr(this);this.JSC$17058_eventHandler_.listen(this.JSC$17058_xhr_,"readystatechange",this.JSC$17060_readyStateChangeHandler_)},l2=function(S,p){S.status_!=p&&(S.status_=p,S.statusHandler_&&S.statusHandler_())},aN=function(S){S.JSC$17058_eventHandler_.removeAll();
if(S.JSC$17058_xhr_){var p=S.JSC$17058_xhr_;S.JSC$17058_xhr_=null;p.abort();p.dispose()}};
r7n.prototype.getStatus=function(){return this.status_};
r7n.prototype.JSC$17060_readyStateChangeHandler_=function(S){S=S.target;try{if(S==this.JSC$17058_xhr_)a:{var p=_.KW(this.JSC$17058_xhr_),U=this.JSC$17058_xhr_.JSC$7805_lastErrorCode_,Y=this.JSC$17058_xhr_.getStatus(),L=this.JSC$17058_xhr_.getResponseText();S=[];if(this.JSC$17058_xhr_.getResponse()instanceof Array){var I=this.JSC$17058_xhr_.getResponse();I.length>0&&I[0]instanceof Uint8Array&&(this.hasStreamingResponseData_=!0,S=I)}if(!(p<3||p==3&&!L&&S.length==0))if(Y=Y==200||Y==206,p==4&&(U==8?l2(this,
7):U==7?l2(this,8):Y||l2(this,3)),this.JSC$17058_parser_||(this.JSC$17058_parser_=g7J(this.JSC$17058_xhr_),this.JSC$17058_parser_==null&&l2(this,5)),this.status_>2)aN(this);else{if(S.length>this.JSC$17058_pos_){var V=S.length;U=[];try{if(this.JSC$17058_parser_.acceptsBinaryInput())for(var W=0;W<V;W++){var O=this.JSC$17058_parser_.parse(Array.from(S[W]));O&&(U=U.concat(O))}else{O="";if(!this.JSC$17058_textDecoder_){if(typeof TextDecoder==="undefined")throw Error("Oj");this.JSC$17058_textDecoder_=new TextDecoder}for(W=
0;W<V;W++)O+=this.JSC$17058_textDecoder_.decode(S[W],{stream:p==4&&W==V-1});U=this.JSC$17058_parser_.parse(O)}S.splice(0,V);U&&this.dataHandler_(U)}catch(z){l2(this,5);aN(this);break a}}else if(L.length>this.JSC$17058_pos_){W=L.slice(this.JSC$17058_pos_);this.JSC$17058_pos_=L.length;try{var D=this.JSC$17058_parser_.parse(W);D!=null&&this.dataHandler_&&this.dataHandler_(D)}catch(z){l2(this,5);aN(this);break a}}p==4?(L.length!=0||this.hasStreamingResponseData_?l2(this,2):l2(this,4),aN(this)):l2(this,
1)}}}catch(z){l2(this,6),aN(this)}};var GwX=function(S){S=this.xhrReader_=S;var p=(0,_.RW)(this.onData_,this);S.dataHandler_=p;S=this.xhrReader_;p=(0,_.RW)(this.onStatusChange_,this);S.statusHandler_=p;this.JSC$17062_callbackMap_={};this.callbackOnceMap_={}};
_.M=GwX.prototype;_.M.on=function(S,p){var U=this.JSC$17062_callbackMap_[S];U||(U=[],this.JSC$17062_callbackMap_[S]=U);U.push(p);return this};
_.M.addListener=function(S,p){this.on(S,p);return this};
_.M.removeListener=function(S,p){var U=this.JSC$17062_callbackMap_[S];U&&_.NG(U,p);(S=this.callbackOnceMap_[S])&&_.NG(S,p);return this};
_.M.once=function(S,p){var U=this.callbackOnceMap_[S];U||(U=[],this.callbackOnceMap_[S]=U);U.push(p);return this};
_.M.onData_=function(S){var p=this.JSC$17062_callbackMap_.data;p&&hoq(S,p);(p=this.callbackOnceMap_.data)&&hoq(S,p);this.callbackOnceMap_.data=[]};
var hoq=function(S,p){for(var U={},Y=0;Y<S.length;U={message$jscomp$969:void 0},Y++)U.message$jscomp$969=S[Y],p.forEach(function(L){return function(I){try{I(L.message$jscomp$969)}catch(V){}}}(U))};
GwX.prototype.onStatusChange_=function(){switch(this.xhrReader_.getStatus()){case 1:Roo(this,"readable");break;case 5:case 6:case 4:case 7:case 3:Roo(this,"error");break;case 8:Roo(this,"close");break;case 2:Roo(this,"end")}};
var Roo=function(S,p){var U=S.JSC$17062_callbackMap_[p];U&&U.forEach(function(Y){try{Y()}catch(L){}});
(U=S.callbackOnceMap_[p])&&U.forEach(function(Y){Y()});
S.callbackOnceMap_[p]=[]};var FhY=function(){var S={format:"jspb"};S=S===void 0?{}:S;this.suppressCorsPreflight=S.suppressCorsPreflight||_.ad("suppressCorsPreflight",S)||!1;this.withCredentials=S.withCredentials||_.ad("withCredentials",S)||!1;this.streamInterceptors=S.streamInterceptors||[];this.unaryInterceptors=S.unaryInterceptors||[];this.workerScope=S.workerScope;this.chunkedServerStreaming=S.useFetchDownloadStreams||!1},Zsi=function(S,p,U,Y,L,I){I=I===void 0?{}:I;
var V=p.substring(0,p.length-L.name.length),W,O=(W=I)==null?void 0:W.signal;return X7o(function(D){return new Promise(function(z,Q){if(O==null?0:O.aborted){var J=new _.nW(1,"Aborted");J.cause=O.reason;Q(J)}else{var K={},G=PZn(S,D,V);G.on("error",function(X){return void Q(X)});
G.on("metadata",function(X){K=X});
G.on("data",function(X){var Z=K;Z=Z===void 0?{}:Z;z(new vXL(X,Z))});
O&&O.addEventListener("abort",function(){G.cancel();var X=new _.nW(1,"Aborted");X.cause=O.reason;Q(X)})}})},S.unaryInterceptors).call(S,$ms(L,U,Y)).then(function(D){return D.responseMessage})},fV=function(S,p,U,Y,L,I){I=I===void 0?{}:I;
return Zsi(S,p,U,Y,L,I)};
FhY.prototype.serverStreaming=function(S,p,U,Y){var L=this,I=S.substring(0,S.length-Y.name.length);return syi(function(V){var W=V.methodDescriptor,O=V.getMetadata(),D=eos(L,!1);O=gLP(L,O,D,I+W.getName());var z=ucT(D,W.responseDeserializeFn,!0);V=W.requestSerializeFn(V.requestMessage);D.send(O,"POST",V);return z},this.streamInterceptors).call(this,$ms(Y,p,U))};
var PZn=function(S,p,U){var Y=p.methodDescriptor,L=p.getMetadata(),I=eos(S,!0);S=gLP(S,L,I,U+Y.getName());U=ucT(I,Y.responseDeserializeFn,!1);nLd(U,L["X-Goog-Encode-Response-If-Executable"]==="base64");p=Y.requestSerializeFn(p.requestMessage);I.send(S,"POST",p);return U},eos=function(S,p){p=S.chunkedServerStreaming&&!p;
return S.workerScope||p?new _.yf(new sq({worker:S.workerScope,streamBinaryChunks:p})):new _.yf},gLP=function(S,p,U,Y){p["Content-Type"]="application/json+protobuf";
p["X-User-Agent"]="grpc-web-javascript/0.1";var L=p.Authorization;if(L&&VMJ.has(L.split(" ")[0])||S.withCredentials)U.JSC$7805_withCredentials_=!0;if(S.suppressCorsPreflight)Y=Kh5(Y,"$httpHeaders",p);else for(S=_.d(Object.keys(p)),L=S.next();!L.done;L=S.next())L=L.value,U.headers.set(L,p[L]);return Y},ucT=function(S,p,U){if(U){U=new r7n(S);
var Y=new GwX(U)}return new Xe({xhr:S,nodeReadableStream:Y},p)},syi=function(S,p){return p.reduce(function(U,Y){return function(L){return Y.intercept(L,U)}},S)},X7o=function(S,p){return p.reduce(function(U,Y){return function(L){return Y.intercept(L,U)}},S)};var w7i=function(S){this.client_=new FhY;this.hostname_=S==void 0?S:S.replace(/\/+$/,"")};
_.M=w7i.prototype;_.M.JSC$17081_depositGoogleCredential=function(S,p,U){return fV(this.client_,this.hostname_+"/$rpc/google.internal.identity.accountlinking.v1.AccountLinkingService/DepositGoogleCredential",S,p||{},qWX,U)};
_.M.deleteLink=function(S,p,U){return fV(this.client_,this.hostname_+"/$rpc/google.internal.identity.accountlinking.v1.AccountLinkingService/DeleteLink",S,p||{},NxJ,U)};
_.M.JSC$17081_finishOAuth=function(S,p,U){return fV(this.client_,this.hostname_+"/$rpc/google.internal.identity.accountlinking.v1.AccountLinkingService/FinishOAuth",S,p||{},tVA,U)};
_.M.getLink=function(S,p,U){return fV(this.client_,this.hostname_+"/$rpc/google.internal.identity.accountlinking.v1.AccountLinkingService/GetLink",S,p||{},cS5,U)};
_.M.startLinkingSession=function(S,p,U){return fV(this.client_,this.hostname_+"/$rpc/google.internal.identity.accountlinking.v1.AccountLinkingService/StartLinkingSession",S,p||{},dFL,U)};var ltq=[0,AFP,1,SWn,[0,_.CT,[0,tpq,-1]],[0,cFP],[0,pXi,-1]];var atE=function(){this.storage=new Map},CZn=function(S,p,U,Y,L){if(!S.storage.has(p))return null;
S=_.d(S.storage.get(p));for(p=S.next();!p.done;p=S.next())if(p=p.value,!L||p.linkName===L)if(U&&p.scopes&&ftP(p.scopes,U)||Y&&p.capabilities&&ftP(p.capabilities,Y))return p;return null},xFJ=function(S,p,U){if(!U)S.storage.delete(p);
else if(S.storage.has(p)){var Y=S.storage.get(p).filter(function(L){return L.linkName!==U});
Y.length>0?S.storage.set(p,Y):S.storage.delete(p)}},ftP=function(S,p){p=_.d(p);
for(var U=p.next();!U.done;U=p.next())if(!S.has(U.value))return!1;return!0};var ELn=function(){var S=_.g7("LINK_GAL_DOMAIN");this.alsDomain1p=_.g7("LINK_GAL_DOMAIN");this.alsDomain3p=S;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},mFi=function(S,p){S.apiKey=p;
return S};
ELn.prototype.build=function(){var S={};if(this.supportedFlows===void 0||this.supportedFlows.size===0)throw Error("Pj");S.supportedFlows=this.supportedFlows;if(this.dataUsageNoticeConfig!==void 0){if(this.dataUsageNoticeConfig.enabledDataUsageNoticeUis.size===0)throw Error("Qj");if(!this.dataUsageNoticeConfig.uiAdapter)throw Error("Rj");S.dataUsageNoticeConfig=this.dataUsageNoticeConfig}this.galSdkEventHandler!==void 0&&(S.galSdkEventHandler=this.galSdkEventHandler);if(this.apiKey!==void 0)S.apiKey=
this.apiKey,S.alsDomain=this.alsDomain1p;else{if(this.oauthToken===void 0)throw Error("Sj");S.oauthToken=this.oauthToken;S.alsDomain=this.alsDomain3p}S.clientXd3=this.clientXd3;S.accountLinkingEntryPoint=this.accountLinkingEntryPoint;this.authUser!==void 0&&(S.authUser=this.authUser);this.bucket!==void 0&&(S.bucket=this.bucket);this.completionUrl!==void 0&&(S.completionUrl=this.completionUrl);this.interactionMode!==void 0&&(S.interactionMode=this.interactionMode);this.redirectServiceUrl!==void 0&&
(S.redirectServiceUrl=this.redirectServiceUrl);this.locale!==void 0&&(S.locale=this.locale);S.loggerType=this.loggerType;S.clientEnvironment=this.clientEnvironment;S.colorScheme=this.colorScheme;S.showCloseOption=this.showCloseOption;return S};var za=function(S){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.UH(S)};
_.r(za,_.a5);var oLT=function(S){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.UH(S)};
_.r(oLT,_.a5);var vLo=function(S){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.UH(S)};
_.r(vLo,_.a5);var ni=function(S){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.UH(S)};
_.r(ni,_.a5);var $F5=function(S){return _.r1(S,1)};var isP=function(S){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.UH(S)};
_.r(isP,_.a5);var xzi=_.SO(isP),Q3=[1,2,3,4,5];var lus=function(S){try{return xzi(S)}catch(p){return null}},NY5=function(){},auX=function(S,p){switch(_.Hg(p,Q3)){case 4:return(p=_.Ra(p,vLo,4,Q3))&&S.logStateTransition(_.r1(p,1)),!0;
case 5:return(p=_.Ra(p,oLT,5,Q3))&&S.logInternalEvent(_.r1(p,1)),!0}return!1},E7T=function(S){switch(S){case 0:return 0;
case 1:return 6;case 2:return 2;case 3:return 3;case 4:return 50;default:_.WP(S)}};var uyY=function(S,p){var U=this;this.validator=S;this.messageListener=p;this.dismissCallback=function(){BYY(U,{errorCode:9,errorMessage:"iFrame closed by parent window"})};
this.JSC$17110_receiveMessage=function(Y){Y.type==="message"&&(Y=Y.event_,Y!==null&&(new URL(U.iframe.src)).origin===Y.origin&&U.validator(Y.data,Y.origin)&&!U.messageListener(Y.data)&&(U.JSC$17110_resolveCb!==void 0&&U.JSC$17110_resolveCb(Y.data),qo5(U)))}},CgE=function(S,p,U){S.uiHandler!==void 0&&BYY(S,{errorCode:7,
errorMessage:"iFrame window is already open"});return new Promise(function(Y,L){S.JSC$17110_resolveCb=Y;S.JSC$17110_rejectCb=L;S.iframe=document.createElement("iframe");_.PE(S.iframe,p);S.uiHandler=U.displayContent(S.iframe,S.dismissCallback);_.Kz(window,"message",S.JSC$17110_receiveMessage,!1,S)})},BYY=function(S,p){S.JSC$17110_rejectCb!==void 0&&S.JSC$17110_rejectCb(p);
qo5(S)},qo5=function(S){S.uiHandler!==void 0&&S.uiHandler.hideContent();
_.W3(window,"message",S.JSC$17110_receiveMessage,!1,S);S.JSC$17110_resolveCb=void 0;S.JSC$17110_rejectCb=void 0;S.uiHandler=void 0;S.iframe=void 0};var A7J=function(S){if(S===2){var p;S=((p=window)==null?0:p.matchMedia("(prefers-color-scheme: dark)").matches)?1:0}return S},fu5=function(S){S=A7J(S);
switch(S){case 0:return"light";case 1:return"dark";default:_.WP(S)}};var wAY=new Set(["https://myaccount.google.com","https://myaccount-dev.corp.google.com","https://myaccount-autopush.corp.google.com","https://myaccount-staging.corp.google.com"]),tMn=function(S,p){this.JSC$17122_linkingSession=S;this.noticeConfig=p;this.displayInfoMap=new Map;var U=new Map;if(_.TR(this.JSC$17122_linkingSession,UFn,7))for(S=_.Sa(this.JSC$17122_linkingSession,UFn,7),S=_.p2(S,p75,1,_.Ur()),S=_.d(S),p=S.next();!p.done;p=S.next())p=p.value,U.set(_.r1(p,1),_.uGG(_.Sa(p,_.WMk,3)));if(U.size>
0&&this.noticeConfig!==void 0&&this.noticeConfig.enabledDataUsageNoticeUis.size>0){p=this.noticeConfig.enabledDataUsageNoticeUis;S=p.has(0)?U.get(1):void 0;p=p.has(1)?U.get(2):void 0;U=S!==void 0&&p!==void 0?U.get(3):void 0;var Y=this.noticeConfig.nestedOrigins;var L=new isP;var I=new za;L=_.Yq(L,2,Q3,I);I=new isP;var V=new za;I=_.Yq(I,3,Q3,V);V=[];S!==void 0&&(this.displayInfoMap.set(1,[{trustedUrl:S,lastEvent:L,nestedOrigins:Y}]),V.push({trustedUrl:S,lastEvent:L,nestedOrigins:Y}));p!==void 0&&(this.displayInfoMap.set(2,
[{trustedUrl:p,lastEvent:I,nestedOrigins:Y}]),V.push({trustedUrl:p,lastEvent:I,nestedOrigins:Y}));U!==void 0?this.displayInfoMap.set(3,[{trustedUrl:U,lastEvent:I,nestedOrigins:Y}]):this.displayInfoMap.set(3,V)}};var c7i=function(S){var p=new atE;this.galService=S;this.galCache=p};
c7i.prototype.getLink=function(S){var p=S.serviceId;var U=S.scopes;var Y=S.capabilities;var L=S.linkName;var I=this,V;return _.T(function(W){if(Y!==void 0&&U!==void 0)throw Error("Tj");V=CZn(I.galCache,p,U,Y,L);return V!==null?W.return(V):W.return(I.galService.getLink({serviceId:p,sessionId:Math.floor(Math.random()*2147483648),scopes:U,capabilities:Y,linkName:L}).then(function(O){O=ifT(O);var D=I.galCache;D.storage.has(p)?D.storage.get(p).push(O):D.storage.set(p,[O]);return O}))})};
c7i.prototype.deleteLink=function(S,p,U){var Y=this;return _.T(function(L){xFJ(Y.galCache,S,U);return L.return(Y.galService.deleteLink({serviceId:S,sessionId:Math.floor(Math.random()*2147483648),accountLinkingEntryPoint:p,linkName:U}).then(function(){return!0}))})};var pGs=function(S,p){var U=this;this.validator=S;this.msgHandler=p;this.closedPopupTimeout=this.JSC$17144_rejectCb=this.JSC$17144_resolveCb=this.popup=null;this.JSC$17144_receiveMessage=function(Y){if(Y!==null&&(Y=Y.event_,Y.source===U.popup)){var L=Y.data;if(U.validator(L,Y.origin)){var I;(I=U.msgHandler)!=null&&I.call(U,L)||(U.JSC$17144_resolveCb!==null&&U.JSC$17144_resolveCb(L),SKT(U))}}}};
pGs.prototype.open=function(S,p){var U=this;this.popup!==null&&UBq(this);return new Promise(function(Y,L){U.JSC$17144_resolveCb=Y;U.JSC$17144_rejectCb=L;U.popup=_.s3(window,S,"",p);_.Kz(window,"message",U.JSC$17144_receiveMessage,!1,U);YKL(U)})};
var UBq=function(S,p){S.JSC$17144_rejectCb!==null&&S.JSC$17144_rejectCb(p);SKT(S)},SKT=function(S){S.closedPopupTimeout&&(S.closedPopupTimeout.cancel(),S.closedPopupTimeout=null);
S.popup&&S.popup.close();_.W3(window,"message",S.JSC$17144_receiveMessage,!1,S);S.popup=null;S.JSC$17144_resolveCb=null;S.JSC$17144_rejectCb=null},YKL=function(S){S.closedPopupTimeout=_.oAc(100).then(function(){S.popup?S.popup.closed?LL5(S):YKL(S):UBq(S,{errorCode:8,
errorMessage:"Popup blocked by the browser"})},function(){})},LL5=function(S){S.closedPopupTimeout=_.oAc(100).then(function(){UBq(S,{errorCode:9,
errorMessage:"Popup closed by the user"})},function(){})};var MSA=new Set(["https://oauth-redirect.googleusercontent.com","https://oauth-redirect-sandbox.googleusercontent.com","https://oauth-redirect-test.googleusercontent.com"]),Iet=function(S,p,U,Y,L,I,V,W,O,D){var z=this;this.serviceId=S;this.sessionId=p;this.galService=U;this.oauthDetails=Y;this.galLogger=L;this.interactionMode=I;this.redirectServiceUrl=V;this.consentLanguageKeys=W;this.dynamicUrlParameters=O;this.partnerConfigMinReadTimestamp=D;this.started=!1;this.JSC$17150_dataValidator=function(Q,
J){var K=MSA.has(J);K||z.redirectServiceUrl===void 0||(K=z.redirectServiceUrl===J);return K?Q.sentinel==="gdi":!1}};
Iet.prototype.complete=function(){var S=this,p;return _.T(function(U){if(S.interactionMode!==1)return U.return(Promise.resolve({statusCode:7,statusMessage:"Flow completion is only supported for redirect mode"}));p=y3.getRedirectStateFromUri();return p===null?U.return(Promise.resolve({statusCode:12,statusMessage:"redirect_state is missing in URI"})):U.return(dBn(S,p))})};
Iet.prototype.start=function(){var S=this,p;return _.T(function(U){if(S.started)return U.return(Promise.resolve({statusCode:12,statusMessage:"OAuth flow is already active."}));if(!_.jR(S.oauthDetails,1))return U.return(Promise.resolve({statusCode:7,statusMessage:"OAuth flow does not have redirect URL"}));if(S.interactionMode===1)return y3.setLocation(_.jR(S.oauthDetails,1)),U.return(Promise.resolve({statusCode:6,statusMessage:"OAuth flow redirected to different page"}));S.started=!0;S.galLogger.logStateTransition(5);
p=y3.getPostMessagePopup(S.JSC$17150_dataValidator);return U.return(p.open(_.jR(S.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(Y){S.started=!1;var L=S.galLogger;if((Y==null?void 0:Y.error)!==void 0)throw L.logInternalEvent(59),Error("Uj");if((Y==null?void 0:Y.redirect_state)===void 0)throw L.logInternalEvent(131),Error("Vj");return dBn(S,Y.redirect_state)}).catch(function(Y){S.started=
!1;
return Y.errorCode!==void 0?{statusCode:Y.errorCode,statusMessage:Y.errorMessage}:{statusCode:7,statusMessage:"OAuth flow popup page did not return result"}}))})};
var dBn=function(S,p){return _.T(function(U){return U.return(VSn(S.galService,{serviceId:S.serviceId,sessionId:S.sessionId,dynamicUrlParameters:S.dynamicUrlParameters,redirectState:p,consentLanguageKeys:S.consentLanguageKeys,partnerConfigMinReadTimestamp:S.partnerConfigMinReadTimestamp}).then(function(Y){var L={statusCode:1,link:ifT(Y.getLink())};uMP(_.Ox(Y,3))!==void 0&&(L.callerState=uMP(_.Ox(Y,3)));S.galLogger.logInternalEvent(134);return L}))})},y3={getPostMessagePopup:function(S){return new pGs(S)},
getRedirectStateFromUri:function(){var S=_.mz(y3.getLocation()).fragment_;return(new _.B3(S)).get("redirect_state",null)},
getLocation:function(){return window.location.href},
setLocation:function(S){_.vE(window.location,_.JA(S))},
createOAuthFlow:function(S,p){return new Iet(S.serviceId,S.sessionId,S.galService,p,S.galLogger,S.interactionMode,S.redirectServiceUrl,S.consentLanguageKeys,S.dynamicUrlParameters,S.partnerConfigMinReadTimestamp)}};var T8n=function(S){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.UH(S)};
_.r(T8n,_.a5);var WLi=_.SO(T8n);var O6J=new Set(["https://myaccount.google.com","https://myaccount-dev.corp.google.com","https://myaccount-autopush.corp.google.com","https://myaccount-staging.corp.google.com"]),kyX=function(S,p,U,Y,L,I,V,W,O){var D=this;this.serviceId=S;this.sessionId=p;this.galService=U;this.gsiWebFlowDetails=Y;this.colorScheme=L;this.showCloseOption=I;this.galLogger=V;this.interactionMode=W;this.redirectServiceUrl=O;this.started=!1;this.JSC$17162_dataValidator=function(z,Q){var J=O6J.has(Q);J||D.redirectServiceUrl===
void 0||(J=D.redirectServiceUrl===Q);return J?z.sentinel==="gal":!1};
this.logEventProcessor=function(z){return z.result?(z=lus(z.result))?auX(D.galLogger,z):!1:!1}};
kyX.prototype.complete=function(){var S=this,p,U;return _.T(function(Y){if(S.interactionMode!==1)return Y.return(Promise.resolve({statusCode:7,statusMessage:"Flow completion is only supported for redirect mode"}));p=Ki.getRedirectStateFromUri();if(p===void 0)return S.galLogger.JSC$17102_logErrorEvent(131),Y.return(Promise.resolve({statusCode:12,statusMessage:"redirect_state is missing in URI"}));try{return U=H6E(S,p),Y.return(DBY(S,U))}catch(L){return Y.return(Promise.resolve({statusCode:12,statusMessage:"`e`"}))}})};
kyX.prototype.start=function(){var S=this,p;return _.T(function(U){if(S.started)return U.return(Promise.resolve({statusCode:12,statusMessage:"Streamlined flow is already active."}));if(!_.jR(S.gsiWebFlowDetails,1))return U.return(Promise.resolve({statusCode:7,statusMessage:"Streamlined flow does not have URL"}));if(S.interactionMode===1)return Ki.setLocation(zli(S,_.jR(S.gsiWebFlowDetails,1))),U.return(Promise.resolve({statusCode:6,statusMessage:"Streamlined flow redirected to different page"}));
S.started=!0;p=Ki.getPostMessagePopup(S.JSC$17162_dataValidator,S.logEventProcessor);return U.return(p.open(zli(S,_.jR(S.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(Y){S.started=!1;if((Y==null?void 0:Y.result)===void 0)throw S.galLogger.JSC$17102_logErrorEvent(131),Error("Vj");Y=H6E(S,Y.result);return DBY(S,Y)}).catch(function(Y){S.started=!1;
return Y.errorCode!==void 0?{statusCode:Y.errorCode,statusMessage:Y.errorMessage}:{statusCode:7,statusMessage:"Streamlined flow popup page did not return result"}}))})};
var zli=function(S,p){S=["result_channel",S.interactionMode===1?"2":"1","color_scheme",fu5(S.colorScheme),"show_close_option",S.showCloseOption];return MVn(p,S)},DBY=function(S,p){if(p!==null&&_.TR(p,ni,2)){var U,Y=p==null?void 0:(U=_.Sa(p,ni,2))==null?void 0:_.r1(U,2);
Y&&S.galLogger.JSC$17102_logErrorEvent(E7T(Y));return $F5(_.Sa(p,ni,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 S.galService.getLink({serviceId:S.serviceId,sessionId:S.sessionId,consistencyKey:_.jR(p,1)}).then(function(L){L=ifT(L);S.galLogger.logInternalEvent(134);return{statusCode:1,link:L}})},H6E=function(S,p){p=WLi(p);
if(!_.TR(p,ni,2)&&_.jR(p,1)==="")throw S.galLogger.JSC$17102_logErrorEvent(5),Error("Wj");return p},Ki={getPostMessagePopup:function(S,p){return new pGs(S,p)},
getRedirectStateFromUri:function(){return _.oW(_.mz(Ki.getLocation()),"redirect_state")},
getLocation:function(){return window.location.href},
setLocation:function(S){_.vE(window.location,_.JA(S))},
createStreamlinedFlow:function(S,p){return new kyX(S.serviceId,S.sessionId,S.galService,p,S.colorScheme,S.showCloseOption,S.galLogger,S.interactionMode,S.redirectServiceUrl)}};var VPX=function(){var S=_.nnw("GAL");this.storage=S?new _.KA(S):null};var CV=function(){};
_.r(CV,NY5);CV.prototype.logStateTransition=function(){};
CV.prototype.logInternalEvent=function(){};
CV.prototype.JSC$17102_logErrorEvent=function(){};var QFt=function(S){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.UH(S)};
_.r(QFt,_.a5);QFt.prototype.getCompletionUrl=function(){return _.jR(this,15)};var xI=function(S,p,U,Y,L,I){this.serviceId=S;this.environment=p;this.sessionId=U;this.colorSchemeSelected=Y;this.colorThemeDisplayed=L;this.JSC$17175_transport=I;this.currentState=1};
_.r(xI,NY5);xI.prototype.logStateTransition=function(S){var p=nOA(this);p=_.pf(p,3,this.currentState);p=_.pf(p,1,S);this.currentState=S;S=JBE(1);this.dispatch(p,S)};
xI.prototype.logInternalEvent=function(S){S=JBE(S);this.dispatch(nOA(this),S)};
xI.prototype.JSC$17102_logErrorEvent=function(S){var p=nOA(this);p=_.pf(p,1,10);S=JBE(S);this.dispatch(p,S)};
var nOA=function(S){var p=new QFt;p=_.pf(p,1,S.currentState);p=_.zN(p,7,S.serviceId);var U,Y;var L=((U=window)==null?0:(Y=U.location)==null?0:Y.href)?_.mz(window.location.href).JSC$8037_domain_:"NO_PACKAGE_NAME";U=_.zN(p,8,L);U=_.pf(U,6,S.environment);U=_.zN(U,5,"100");U=_.pf(U,11,S.colorSchemeSelected);return _.pf(U,12,S.colorThemeDisplayed)};
xI.prototype.dispatch=function(S,p){p===void 0&&(p=new _.cD);var U=p;S=S.serialize();U=_.zN(U,8,S);_.yR(U,12,this.sessionId);this.JSC$17175_transport.dispatch(p)};var Jno=function(S,p){this.loggerType=S;this.sessionIndex=p!=null?p:0},yni;
Jno.prototype.create=function(S,p,U,Y,L){switch(this.loggerType){case 0:return new CV;case 1:return yni||(yni=(new _.kY(555,this.sessionIndex.toString())).build()),new xI(S,p,U,Y,L,yni);default:_.WP(this.loggerType,"unknown logger type")}};var bd=[6,2,3,1],Hvs=new Map([[4,1],[1,6],[2,2],[3,3]]),AEY={statusCode:7,statusMessage:"Failed to create flow object"},IP5=function(S,p,U,Y,L,I,V,W,O,D){this.serviceId=S;this.sessionId=p;this.config=U;this.galService=Y;this.JSC$17182_linkingSession=L;this.googleScopes=I;this.callerState=V;this.consentLanguageKeys=W;this.dynamicUrlParameters=O;this.partnerConfigMinReadTimestamp=D;this.currentFlow=0;Y=this.JSC$17182_linkingSession;L=new Set;_.TR(Y,UWn,1)&&L.add(1);_.TR(Y,LhE,2)&&_.TR(Y,Y9o,6)&&L.add(2);
_.TR(Y,YoT,3)&&_.TR(Y,Y9o,6)&&L.add(3);_.TR(Y,Soo,4)&&L.add(6);this.supportedFlows=L;Y=U.loggerType;L=U.clientEnvironment;a:{I=U.colorScheme;switch(I){case 0:I=1;break a;case 1:I=2;break a;case 2:I=3;break a;default:_.WP(I)}I=void 0}a:{V=U.colorScheme;V=A7J(V);switch(V){case 0:V=1;break a;case 1:V=2;break a;default:_.WP(V)}V=void 0}this.galLogger=(new Jno(Y,U.authUser)).create(S,L,p,I,V)},b6P=function(S){return new Promise(function(p){var U,Y,L,I,V,W,O,D,z,Q;
return _.T(function(J){switch(J.nextAddress){case 1:U=LeX(S.currentFlow,S.supportedFlows),Y=!1,L=new tMn(S.JSC$17182_linkingSession,S.config.dataUsageNoticeConfig);case 2:if(U===void 0){J.jumpTo(4);break}_.M2(J,5);var K=L,G=U,X=void 0;Y?G===1&&(X=K.displayInfoMap.get(2)):G===2||G===3?X=K.displayInfoMap.get(1):G===1&&(X=K.displayInfoMap.get(3));I=X?X:[];V=S.consentLanguageKeys;W=_.d(I);O=W.next();case 7:if(O.done)return S.currentFlow=U,_.k(J,cEi(KLP(S,V)),11);D=O.value;return _.k(J,mzq(D,S.config.dataUsageNoticeConfig.uiAdapter,
S.config.colorScheme,S.galLogger),10);case 10:z=J.yieldResult;if(z.statusCode!==1)return TKt(S.serviceId),S.currentFlow=0,p(JM({statusCode:z.statusCode,statusMessage:z.statusMessage},S.callerState)),J.return();z.consentLanguageKeys!==void 0&&(V=z.consentLanguageKeys);O=W.next();J.jumpTo(7);break;case 11:Q=J.yieldResult;if(Q.statusCode!==10)return Q.statusCode!==6&&(TKt(S.serviceId),S.currentFlow=0),Q.statusCode!==1&&S.callerState!==void 0&&(Q.callerState=S.callerState),p(Q),J.return();_.CA(J,6);break;
case 5:_.W4(J);case 6:U=LeX(S.currentFlow,S.supportedFlows);Y=!0;J.jumpTo(2);break;case 4:TKt(S.serviceId),S.currentFlow=0,p(JM({statusCode:12,statusMessage:"Linking failed"},S.callerState)),_.OV(J)}})})},OvL=function(S,p,U){S.currentFlow=p;
return S9q(KLP(S,U)).then(function(Y){return Y.statusCode===10&&S.config.interactionMode===1&&LeX(S.currentFlow,S.supportedFlows)!==void 0?b6P(S):Y})},KLP=function(S,p){return{flowParams:{serviceId:S.serviceId,
sessionId:S.sessionId,galService:S.galService,galLogger:S.galLogger,interactionMode:S.config.interactionMode,redirectServiceUrl:S.config.redirectServiceUrl,colorScheme:S.config.colorScheme,consentLanguageKeys:p,dynamicUrlParameters:S.dynamicUrlParameters,showCloseOption:S.config.showCloseOption,partnerConfigMinReadTimestamp:S.partnerConfigMinReadTimestamp},currentFlow:S.currentFlow,config:S.config,session:S.JSC$17182_linkingSession,googleScopes:S.googleScopes,callerState:S.callerState}};var rUJ=function(S,p){this.config=S;this.galService=p.getService();this.JSC$17195_galRepository=p.JSC$17232_galRepository};
rUJ.prototype.getLink=function(S,p){return jFA(this,S,p)};
var jFA=function(S,p,U){return S.JSC$17195_galRepository.getLink({serviceId:p,scopes:void 0,capabilities:void 0,linkName:U}).then(function(Y){return{statusCode:1,link:Y}}).catch(function(Y){return{statusCode:DWq(Y.code),
statusMessage:Y.message}})};
rUJ.prototype.deleteLink=function(S,p){return this.JSC$17195_galRepository.deleteLink(S,this.config.accountLinkingEntryPoint,p).then(function(){return{statusCode:1}}).catch(function(U){return{statusCode:DWq(U.code),
statusMessage:U.message}})};
rUJ.prototype.startLinkingSession=function(S){var p=S.serviceId;var U=S.sessionId;return dWA({serviceId:p,sessionId:U!==void 0?U:Math.floor(Math.random()*2147483648),config:this.config,galService:this.galService,loginHint:S.loginHint,callerState:S.callerState,consentLanguageKeys:S.consentLanguageKeys,linkName:S.linkName,dynamicUrlParameters:S.dynamicUrlParameters,partnerConfigMinReadTimestamp:S.partnerConfigMinReadTimestamp})};var zYd=null,yUq=new WeakMap;var rnt=function(){};
rnt.prototype.send=function(S,p){jVs(S);return this.makeRequest(S).then(function(U){if(p){var Y=new p;if(U!=null){if(p==null)throw Error("Yj");new p;throw Error("$j");}U=Y}return U})};var GyE=function(S,p,U,Y,L){this.gapiUrl=S;this.gapiKey=p;this.gapiConfigUpdates=U||{};this.gapiAuthParams=Y||{};this.defaultApiId=L};
_.r(GyE,rnt);var Rld=function(S){return nv5().then(function(p){p=p||window.gapi;hld(S,p);return bvL(p,{apiKey:S.gapiKey,clientId:S.gapiAuthParams.clientId,scope:S.gapiAuthParams.scope,hostedDomain:S.gapiAuthParams.hostedDomain,fetchBasicProfile:S.gapiAuthParams.fetchBasicProfile}).then(function(){return p})})};
GyE.prototype.makeRequest=function(S){var p=this;return Rld(this).then(function(U){return _.T(function(Y){if(Y.nextAddress==1)return p.gapiAuthParams.minAuthTokenTimeRemaining===void 0?Y.jumpTo(2):_.k(Y,KeT(U,p.gapiAuthParams.minAuthTokenTimeRemaining),2);hld(p,U);return Y.return(FLX(U.client.request({root:p.gapiUrl,path:S.path,method:S.httpMethod,body:S.body,params:S.queryParams,headers:S.headers,authType:S.authType,apiId:S.apiId||p.defaultApiId})))})})};
var FLX=function(S){return new Promise(function(p,U){S.then(function(Y){p(Y.result===!1&&Y.body!=null?{data:Y.body}:Y.result)},function(Y){U(Y.result===!1&&Y.body!=null?{data:Y.body}:Y.result)})})},hld=function(S,p){for(var U in S.gapiConfigUpdates)if(S.gapiConfigUpdates.hasOwnProperty(U)){var Y=p,L=U,I=S.gapiConfigUpdates[U],V=Y.config.get(L);
I!==V&&Y.config.update(L,I)}};
GyE.$inject=["gapiUrl","gapiKey","gapiConfigUpdates","gapiAuthParams","defaultApiId"];var Eq=function(S,p,U,Y,L,I,V,W){this.apiKey=p;this.authUser=U;this.oauthToken=Y;this.bucket=L;this.locale=V;this.galSdkEventHandler=W;if(Y===void 0){if(p===void 0)throw Error("ak");this.requestService=new GyE(S,p,{"googleapis.config/auth/useFirstPartyAuth":!0,"googleapis.config/auth/useFirstPartyAuthV2":!0,"client/xd4":I===void 0||I===!1,"client/xd3":I===!0})}this.galServiceClient=new w7i(S)};
Eq.prototype.deleteLink=function(S){var p=S.serviceId;var U=S.sessionId;var Y=S.accountLinkingEntryPoint;var L=S.linkName;var I=this,V;return _.T(function(W){var O=(new rU).setHeader(my(I,U));var D=XGX({serviceId:p,linkName:L});O=_.U3(O,2,D);V=_.XU(O,3,Y);return W.return(I.makeRequest(I.galServiceClient.deleteLink,V,[1,3],[2,4]))})};
var VSn=function(S,p){var U=p.serviceId;var Y=p.sessionId;var L=p.dynamicUrlParameters;var I=p.redirectState;var V=p.consentLanguageKeys;var W=p.partnerConfigMinReadTimestamp;var O;return _.T(function(D){var z=(new hb).setHeader(my(S,Y,L));z=_.$9(z,2,U);O=_.$9(z,4,I);V!==void 0&&_.$9(O,5,V);W!==void 0&&_.U3(O,6,W);return D.return(S.makeRequest(S.galServiceClient.JSC$17081_finishOAuth,O,[1,3],[2,4]))})};
Eq.prototype.getLink=function(S){var p=S.serviceId;var U=S.sessionId;var Y=S.scopes;var L=S.capabilities;var I=S.consistencyKey;var V=S.linkName;var W=this,O;return _.T(function(D){var z=(new RN).setHeader(my(W,U)),Q=XGX({serviceId:p,scopes:Y,capabilities:L,linkName:V});O=_.U3(z,2,Q);I!==void 0&&(z=xm5(),z=_.$9(z,2,I),_.U3(O,3,z));return D.return(W.makeRequest(W.galServiceClient.getLink,O,[1,3],[2,4]))})};
var pHi=function(S,p){var U=p.serviceId;var Y=p.sessionId;var L=p.googleScopes;var I=p.consistencyKey;var V;return _.T(function(W){var O=(new GZ).setHeader(my(S,Y));O=_.$9(O,2,U);var D=Array.from(L.values());O=_.rZ(O,3,D,_.lJ);D=xm5();D=_.$9(D,2,I);V=_.U3(O,4,D);return W.return(S.makeRequest(S.galServiceClient.JSC$17081_depositGoogleCredential,V,[1,3],[2,4]))})};
Eq.prototype.startLinkingSession=function(S){var p=S.serviceId;var U=S.sessionId;var Y=S.scopes;var L=S.capabilities;var I=S.loginHint;var V=S.supportedFlows;var W=S.completionUrl;var O=S.usePingPong;var D=S.twoWayLinking;var z=S.accountLinkingEntryPoint;var Q=S.callerState;var J=S.consentLanguageKeys;var K=S.googleScopes;var G=S.dataUsageNoticeConfig;var X=S.linkName;var Z=S.dynamicUrlParameters;var l=S.partnerConfigMinReadTimestamp;var a=this,N,m;return _.T(function(A){if(L!==void 0&&Y!==void 0)throw Error("Tj");
var q=(new Fe).setHeader(my(a,U,Z));N=_.$9(q,2,p);X!==void 0&&_.$9(N,14,X);if(L!==void 0){q=N;var TG=Array.from(L.values());_.rZ(q,5,TG,_.lJ)}else Y!==void 0&&(q=N,TG=Array.from(Y.values()),_.rZ(q,3,TG,_.lJ));W!==void 0&&_.$9(N,6,W);O!==void 0&&_.G0(N,15,O);V!==void 0&&(q=N,TG=Array.from(V.values()),_.rZ(q,4,TG,_.jX));if(D!==void 0){if(D&&(!K||K.size===0))throw Error("bk");_.G0(N,8,D)}z!==void 0&&_.XU(N,9,z);I!==void 0&&_.$9(N,13,I);Q!==void 0&&(q=N,TG=(new TextEncoder).encode(Q),_.GD(q,12,_.aP(TG,
!1),_.lt()));J!==void 0&&_.$9(N,16,J);l!==void 0&&_.U3(N,18,l);if(G!==void 0&&G.size>0||K!==void 0&&K.size>0)m=new ItY,K!==void 0&&K.size>0&&(q=m,TG=Array.from(K.values()),_.rZ(q,1,TG,_.lJ)),G!==void 0&&(G.has(0)&&_.dYd(m,2,_.jX,1,_.ri),G.has(1)&&_.dYd(m,2,_.jX,2,_.ri)),_.U3(N,17,m);return A.return(a.makeRequest(a.galServiceClient.startLinkingSession,N,[1],[2]))})};
Eq.prototype.getMetadata=function(){var S=this,p,U,Y;return _.T(function(L){if(L.nextAddress==1)return p={},S.requestService?_.k(L,Rld(S.requestService),3):(p.Authorization="Bearer "+S.oauthToken,L.jumpTo(2));L.nextAddress!=2&&(U=L.yieldResult,p["X-Goog-Api-Key"]=S.apiKey,p["X-Goog-AuthUser"]=S.authUser!==void 0?S.authUser.toString():"0",(Y=U.auth.getAuthHeaderValueForFirstParty([]))&&(p.Authorization=Y));S.locale&&(p["accept-language"]=S.locale);return L.return(p)})};
Eq.prototype.makeRequest=function(S,p,U,Y){var L=this,I;return _.T(function(V){if(V.nextAddress==1)return _.k(V,L.getMetadata(),2);I=V.yieldResult;P6o(L,U);return V.return(S.bind(L.galServiceClient)(p,I).finally(function(){P6o(L,Y)}))})};
var P6o=function(S,p){S.galSdkEventHandler!==void 0&&p.forEach(function(U){S.galSdkEventHandler.onEvent(U)})},my=function(S,p,U){var Y=new KV;
p=_.GD(Y,2,_.Gq(p),0);p=_.XU(p,5,3);U=_.rZ(p,8,U,_.lJ);S.bucket!==void 0&&_.$9(U,1,S.bucket);return U},XGX=function(S){var p=S.serviceId;
var U=S.scopes;var Y=S.capabilities;S=S.linkName;if(Y!==void 0&&U!==void 0)throw Error("Tj");var L=new f$i;p=_.$9(L,1,p);Y!==void 0?(U=Array.from(Y.values()),_.rZ(p,5,U,_.lJ)):U!==void 0&&(U=Array.from(U.values()),_.rZ(p,3,U,_.lJ));S!==void 0&&_.$9(p,6,S);return p};var GYs=function(S){this.galService=new Eq(S.alsDomain,S.apiKey,S.authUser,S.oauthToken,S.bucket,S.clientXd3,S.locale,S.galSdkEventHandler);this.JSC$17232_galRepository=new c7i(this.galService)};
GYs.prototype.getService=function(){return this.galService};var Z6L=function(S){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.UH(S)};
_.r(Z6L,_.a5);var sFA=function(S){var p=new Z6L;return _.pf(p,1,S)};
Z6L.prototype.setErrorMessage=function(S){return _.zN(this,2,S)};var elL=[0,_.Ex,_.fT,_.Ex];var oN=function(S){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.UH(S)};
_.r(oN,_.a5);var gOT=[0,[1,2,3],_.xC,[0,i3P,q2T,-1],_.xC,[0,B9q,-1],_.C3N];var uCo=[0,_.w1,1,_.Ex,_.fT,-1,1,_.m7u,_.uY,_.Ex,-1,gOT];var wGs=[0,_.Ex,[0,_.m7u,_.uY,[0,_.fT]],_.lY,[0,_.Ex,-1]];var Mq=function(S){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.UH(S)};
_.r(Mq,_.a5);var leo=[0,_.fT,_.Ex,-2,_.w1,_.Ex,_.w1,_.Ex,-2,1,_.lY];var aen=function(S){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.UH(S)};
_.r(aen,_.a5);var feq=[0,_.w1];var C6X=function(S){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.UH(S)};
_.r(C6X,_.a5);var xBn=[0,_.Ex,wGs,feq,leo,uCo];var cZo=_.ti(C6X,xBn);var EOn=[0,ltq];var Mvo=function(S){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.UH(S)};
_.r(Mvo,_.a5);var mBq=[0,[1,3],UmJ,_.Ex,UmJ];var YI=function(S){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.UH(S)};
_.r(YI,_.a5);var oOJ=[0,_.Ex];var vO5=function(S){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.UH(S)};
_.r(vO5,_.a5);var LV=function(S){return _.Ra(S,Z6L,2,Uq)},$Bd=function(S){var p=new vO5;
return _.Yq(p,2,Uq,S)},Uq=[1,
2];var i6n=[0,Uq,_.xC,oOJ,_.xC,elL,_.CT,mBq,1,_.Ex,EOn];var N8P=function(S){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.UH(S)};
_.r(N8P,_.a5);var qKt=function(S){var p=new N8P;return _.Yq(p,3,B8Y,S)},B8Y=[2,
3];var vf=function(S){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.UH(S)};
_.r(vf,_.a5);var AnL=function(S,p){return _.U3(S,2,p)},tS5=function(S,p){return _.U3(S,8,p)},cn5=function(S,p){return _.U3(S,3,p)};var SEt=[0,_.Ex,i6n,xBn,_.vmq,[0,[5,6],[0,_.Ex,-2],[0,_.w1,_.Ex,_.fT],[0,gOT],[0,_.fT,_.Ex,-1,_.ome,_.Ex],_.xC,[0,[0,_.w1],_.Ex,-1],_.xC,[0,[3,4],_.Ex,-1,_.xC,[0,[0,_.Ex,_.lY]],_.xC,[0,[0,[0,[1,2],_.xC,[0],_.xC,[0]]]]]],_.vmq,-1,[0,B8Y,_.Ex,_.xC,oOJ,_.xC,elL,_.CT,mBq,[0,ltq]]];var pI5=_.ti(vf,SEt),UPP=_.cY(SEt);var YEL=function(){_.hY.call(this)};
_.r(YEL,_.hY);YEL.prototype.init=function(){};
new YEL;var LUi=_.x1(["data-"]),MJY=_.x1(["aria-"]),IpT=_.x1(["aria-"]),$I=function(S,p){this.isLatencyMeasurementExperiment=S===void 0?!1:S;this.enableDialogA11yFix=p===void 0?!1:p;this.JSC$17261_win=window;this.focusChangeListener=this.handleFocusChange.bind(this);this.origin=_.nmI(_.UX.location.href)},pBJ=function(S,p){S.onConsentPrimitiveShownCallback=p},dPJ=function(S,p){return S.overriddenIframeLoadTimeout?S.overriddenIframeLoadTimeout:p!==void 0?p:5E3},Y1X=function(S){if(S.prewarmPromise!==void 0)return S.prewarmPromise;
S.prewarmPromise=new Promise(function(p,U){i2(S,1);VJY(S,TbY(S,!0),WUP(S));S.iframe?S.prewarmChannel||OJ5(S,S.iframe,p):U(Error("ck"))});
S.prewarmPromise.finally(function(){S.prewarmPromise=void 0});
return S.prewarmPromise};
$I.prototype.showPrimitive=function(){var S=this;if(this.consentPromise!==void 0)return this.consentPromise;var p=Date.now();kho(this,p);this.consentPromise=new Promise(function(U,Y){i2(S,0,p);var L=S.isDarkTheme();S.isLatencyMeasurementExperiment||S.initialLoadingStrategy===1||S.initialLoadingStrategy===2||(S.loadingBar||(S.loadingBar=XHt(getComputedStyle(document.body).direction==="rtl",L),S.loadingBar.style.position="fixed",S.loadingBar.style.zIndex="15000"),document.body.appendChild(S.loadingBar));
VJY(S,TbY(S),WUP(S));S.iframe?S.channel||HJP(S,S.iframe,U,Y):(DPs(S),Y(Error("ck")))});
this.consentPromise.finally(function(){S.consentPromise=void 0});
return this.consentPromise};
var HJP=function(S,p,U,Y){var L,I;_.T(function(V){switch(V.nextAddress){case 1:i2(S,3);L=!1;setTimeout(function(){if(!L){DPs(S);zjs(S);QAX(S);var W=sFA(7).setErrorMessage("Timeout connecting to iframe");U(tS5(AnL(new vf,$Bd(W)),qKt(W)))}},dPJ(S,n9t(S)));
if(!S.prewarmPromise){V.jumpTo(2);break}_.M2(V,3);return _.k(V,S.prewarmPromise,5);case 5:_.CA(V,2);break;case 3:_.W4(V),I=sFA(4).setErrorMessage("Error while prewarming."),U(tS5(AnL(new vf,$Bd(I)),qKt(I)));case 2:S.prewarmChannel&&S.prewarmChannel.send(UPP(cn5(new vf,S.consentPrimitiveRequest))),S.channel=_.vg({destination:S.JSC$17261_win,iframe:p,origin:JlT(S),channelName:"cpw",onEstablished:function(){L=!0;DPs(S);S.isLatencyMeasurementExperiment||(S.JSC$17261_previousBodyOverflow=document.body.style.overflow,
S.JSC$17261_previousHtmlOverscroll=document.documentElement.style.overscrollBehavior,S.JSC$17261_previousBodyOverscroll=document.body.style.overscrollBehavior,document.documentElement.style.overscrollBehavior="contain",document.body.style.overscrollBehavior="contain",document.body.style.overflow="hidden",S.enableDialogA11yFix&&window.addEventListener("blur",S.focusChangeListener));var W=S.iframe;W.style.bottom="0";W.style.position="fixed";W.style.right="0";W.style.border="none";W.style.left="0";W.style.top=
"0";W.style.zIndex="5000";W.style.pointerEvents="";W.style.visibility="";S.initialLoadingStrategy===2||S.initialLoadingStrategy===3?i2(S,4):i2(S,6);var O;(O=S.onConsentPrimitiveShownCallback)==null||O.call(S)},
onMessage:function(W){W=pI5(W.data);switch(_.r1(W,1)){case 1:zjs(S);var O=PQi(_.Sa(W,_.eJ,7));O&&(S.initialLoadingStrategy!==2&&S.initialLoadingStrategy!==3||i2(S,6,O),i2(S,5,O));if(O=PQi(_.Sa(W,_.eJ,6)))i2(S,7,O),i2(S,8);var D,z;((D=_.Sa(W,vO5,2))==null?void 0:_.Hg(D,Uq))!==0&&((z=_.Sa(W,N8P,8))==null?void 0:_.Hg(z,B8Y))!==0||Y(Error("dk"));U(W);break;case 2:QAX(S)}}}),_.OV(V)}})},OJ5=function(S,p,U){S.prewarmChannel=_.vg({destination:S.JSC$17261_win,
iframe:p,origin:JlT(S),channelName:"pwcp",onEstablished:function(){i2(S,2);U()}})},JlT=function(S){var p=_.Tl(S.src).toString();
return p&&p.indexOf("://")<0&&p.indexOf("//")!==0?S.origin:_.nmI(p)},TbY=function(S,p){p=p===void 0?!1:p;
var U,Y=new Map([["origin",S.origin],["hl",(U=yld(S))!=null?U:null]]);p&&Y.set("pw","1");p=_.d([["cpr",S.consentPrimitiveRequest.serialize()]]);for(U=p.next();!U.done;U=p.next()){var L=_.d(U.value);U=L.next().value;L=L.next().value;Y.set(U,L)}S.isDarkTheme()&&Y.set("color_scheme","dark");return _.YE(S.src,Y)},DPs=function(S){S.isLatencyMeasurementExperiment||S.loadingBar&&document.body.removeChild(S.loadingBar)};
$I.prototype.getSrc=function(){var S=_.ib(this.origin),p;var U=(p=_.Sa(this.consentPrimitiveRequest,aen,3))==null?void 0:_.YY(p,1);p="consent.google.com";U=U?"/u/"+encodeURIComponent(U.toString()):"";(S==null?0:S.endsWith("youtube.com"))?p="consent.youtube.com":(S=S==null?void 0:S.match("google\\.(co\\.)?([a-z]{2,3})$"))&&(p="consent.google."+((S[1]?"co.":"")+encodeURIComponent(S[2])));return _.dc("https://"+p+"/signedin"+U+"/landing")};
var VJY=function(S,p,U){S.iframe||(S.iframe=document.createElement("iframe"),S.iframe.style.width="100%",S.iframe.style.height="100%",U!==112496729&&(S.iframe.style.colorScheme="auto"),S.isLatencyMeasurementExperiment&&(S.iframe.style.display="none"),_.PE(S.iframe,p),S.iframe.setAttribute("jsname","C5o1O"),KUT(S.iframe),document.body.appendChild(S.iframe))},KUT=function(S){S.style.bottom="-200vh";
S.style.position="fixed";S.style.right="-200vw";S.style.border="";S.style.left="";S.style.top="";S.style.zIndex="";S.style.pointerEvents="none";S.style.visibility="hidden"},zjs=function(S){S.iframe&&(S.isLatencyMeasurementExperiment||(S.JSC$17261_previousHtmlOverscroll!==void 0&&(document.documentElement.style.overscrollBehavior=S.JSC$17261_previousHtmlOverscroll),S.JSC$17261_previousBodyOverscroll!==void 0&&(document.body.style.overscrollBehavior=S.JSC$17261_previousBodyOverscroll),S.JSC$17261_previousBodyOverflow!==
void 0&&(document.body.style.overflow=S.JSC$17261_previousBodyOverflow),S.enableDialogA11yFix&&bJL(S,!1)),KUT(S.iframe))};
$I.prototype.handleFocusChange=function(){document.activeElement===this.iframe&&(bJL(this,!0),window.removeEventListener("blur",this.focusChangeListener))};
var bJL=function(S,p){var U,Y,L=(U=S.iframe)==null?void 0:(Y=U.parentElement)==null?void 0:Y.children;if(L)for(U=0;U<L.length;U++)Y=L[U],Y!==S.iframe&&(p?(Y.hasAttribute("aria-hidden")&&_.xq([_.Sb(LUi)],Y,"data-old-aria-hidden",Y.getAttribute("aria-hidden")),_.xq([_.Sb(MJY)],Y,"aria-hidden","true")):(Y.removeAttribute("aria-hidden"),Y.hasAttribute("data-old-aria-hidden")&&(_.xq([_.Sb(IpT)],Y,"aria-hidden",Y.getAttribute("data-old-aria-hidden")),Y.removeAttribute("data-old-aria-hidden"))))},i2=function(S,
p,U){var Y;
(Y=S.latencyCallback)==null||Y.call(S,{latencyType:p,timestampEpochMillis:U!=null?U:Date.now()})};var jAo=function(S,p,U){$I.call(this,p,U===void 0?!1:U);this.consentPrimitiveRequest=S;S=yld(this);if(!(0,_.f2w)(S))throw Error("H``"+String(S));this.src=this.getSrc();var Y;this.initialLoadingStrategy=(Y=_.Sa(this.consentPrimitiveRequest,Mq,4))==null?void 0:_.r1(Y,4)},rl5;
_.r(jAo,$I);var S1A=function(S){var p=_.y("enable_primitive_dialog_aria_hide_siblings");S={request:S,enableDialogA11yFix:p===void 0?!1:p};rl5||(rl5=new jAo(S.request,S.isLatencyMeasurementExperiment||_.r1(S.request,1)===2,S.enableDialogA11yFix));return rl5},yld=function(S){var p;
return(p=_.Sa(S.consentPrimitiveRequest,Mq,4))==null?void 0:_.jR(p,1)},kho=function(S,p){if(!_.TR(S.consentPrimitiveRequest,oN,5)){var U=S.consentPrimitiveRequest,Y=new oN;
_.U3(U,5,Y)}var L;if((L=_.Sa(S.consentPrimitiveRequest,oN,5))==null||_.kjd(_.VY(L,8))==null){var I;(I=_.Sa(S.consentPrimitiveRequest,oN,5))!=null&&_.yR(I,8,p)}},WUP=function(S){var p;
return(p=_.Sa(S.consentPrimitiveRequest,oN,5))==null?void 0:_.YY(p,1)};
jAo.prototype.isDarkTheme=function(){var S;return((S=_.Sa(this.consentPrimitiveRequest,Mq,4))==null?void 0:_.r1(S,2))===2};
var n9t=function(S){var p;return((p=_.Sa(S.consentPrimitiveRequest,Mq,4))==null?void 0:_.YY(p,5))||void 0},QAX=function(S){S.channel=void 0;
S.prewarmChannel=void 0;S.iframe&&(document.body.contains(S.iframe)&&document.body.removeChild(S.iframe),S.iframe=void 0);rl5=void 0},LFY=function(S){return $I.prototype.showPrimitive.call(S).then(function(p){return _.Sa(p,vO5,2)})};for(var Nq={},GhY=(Nq[64]="ma",Nq[73]="ogb",Nq[89]="cr",Nq[21]="test",Nq[0]="unkn",Nq[137]="con",Nq[155]="hl",Nq[78]="yt",Nq[171]="lp",Nq[172]="ap",Nq[177]="amo",Nq[178]="pqe",Nq[74]="gg",Nq[1]="gm",Nq[140]="am",Nq),hjE=_.d(Object.keys(GhY)),RjX=hjE.next();!RjX.done;RjX=hjE.next());var FUL=function(S){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.UH(S)};
_.r(FUL,_.a5);var XIP=[0,[2,3,4],_.Ex,N9T,UmJ,_.C3N];var POE=function(S){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.UH(S)};
_.r(POE,_.a5);var ZJY=_.ti(POE,[0,pXi,_.fT,_.Ex,_.fT,_.Ex,XIP]);var sAs=function(S){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.UH(S)};
_.r(sAs,_.a5);sAs.prototype.getCommand=function(){return _.r1(this,1)};
var ejt=function(){var S=new sAs;return _.XU(S,1,0)};var g9d=_.cY([0,pXi,_.fT,[0,_.Ex,_.fT,-1]]);var uNq=new _.MN("s"),wIs=new _.MN("t"),lp5=new _.MN("u"),apJ=new _.MN("v"),fpd=function(S,p,U){_.Iw.call(this,uNq);this.mediaKey=S;this.photoUrl=p;this.photoSource=U};
_.r(fpd,_.Iw);var COL=function(){_.Iw.call(this,wIs)};
_.r(COL,_.Iw);var xP5=function(S){S=S===void 0?!1:S;_.Iw.call(this,lp5);this.isError=S};
_.r(xP5,_.Iw);var E9q=function(){_.Iw.call(this,apJ)};
_.r(E9q,_.Iw);var mP5=/^\[([a-z0-9-]+)(="([^\\"]*)")?]$/,iJT=function(S){if(typeof S=="string"){if(S.charAt(0)==".")return o9L(S.substr(1));if(S.charAt(0)=="["){var p=mP5.exec(S);S=S.indexOf("=")==-1?void 0:p[3];return v95(p[1],S)}return $Pi(S)}return S},o9L=function(S){return function(p){return p.getAttribute&&_.sD(p,S)}},v95=function(S,p){return function(U){return p!==void 0?U.getAttribute&&U.getAttribute(S)==p:U.hasAttribute&&U.hasAttribute(S)}},$Pi=function(S){S=S.toUpperCase();
return function(p){return(p=p.tagName)&&p.toUpperCase()==S}},Nbq=function(){return!0};var Bf=function(S,p){this.JSC$17289_key_=S;this.JSC$17289_value_=p},qq=function(S){throw Error("ek`"+S.JSC$17289_key_);
},Bbn=function(S,p){return new TypeError("fk`"+p+"`"+S.JSC$17289_key_+"`"+S.JSC$17289_value_+"`"+typeof S.JSC$17289_value_)};
Bf.prototype.string=function(S){if(arguments.length==0)var p=qEJ(this);else{var U;p=(U=AlP(this))!=null?U:S}return p};
var qEJ=function(S){var p=AlP(S);p===null&&qq(S);return p},AlP=function(S){var p=S.JSC$17289_value_;
if(p==null)return null;if(typeof p==="string")return p;throw Bbn(S,"string");};
Bf.prototype.bool=function(S){if(arguments.length==0){var p=this.optionalBool();p===null&&qq(this)}else{var U;p=(U=this.optionalBool())!=null?U:S}return p};
Bf.prototype.optionalBool=function(){var S=this.JSC$17289_value_;if(S==null)return null;if(typeof S==="boolean")return S;if(typeof S==="string"){S=S.toLowerCase();if(S==="true"||S==="1")return!0;if(S==="false"||S==="0")return!1}throw Bbn(this,"boolean");};
Bf.prototype.number=function(S){if(arguments.length==0){var p=tJo(this);p===null&&qq(this)}else{var U;p=(U=tJo(this))!=null?U:S}return p};
var tJo=function(S){var p=S.JSC$17289_value_;if(p==null)return null;if(typeof p==="number")return p;if(typeof p==="string"){var U=Number(p);if(!isNaN(U)&&(U!==0||p.trim().length!==0))return U}throw Bbn(S,"number");};
Bf.prototype.toString=function(){return qEJ(this)};
Bf.prototype.array=function(S){if(arguments.length==0){var p=clL(this);p===null&&qq(this);return p}p=clL(this);return p==null?S:p};
var clL=function(S){var p=S.JSC$17289_value_;if(p==null)return null;Array.isArray(p)||(typeof p!=="string"?p=[p]:(p=p.trim(),p=p==""?[]:p.split(",").map(function(U){return U.trim()})));
return SpL(S,p)},SpL=function(S,p){var U=S.JSC$17289_key_+"[";
return Array.from(p,function(Y,L){return new Bf(U+L+"]",Y)})};
Bf.prototype.object=function(S){var p=this.JSC$17289_value_;if(p==null)return S===void 0&&qq(this),S;if(typeof p==="object"&&p.constructor===Object){S={};var U=this.JSC$17289_key_+".",Y;for(Y in p)S[Y]=new Bf(U+Y,p[Y]);return S}throw Bbn(this,"object");};var Ab=function(S){this.list_=pOY(S)},pOY=function(S){if(S instanceof Ab)S=S.list_;
else if(S[0]instanceof Ab){for(var p=new Set,U=0;U<S.length;U++)for(var Y=_.d(S[U].list_),L=Y.next();!L.done;L=Y.next())p.add(L.value);S=p}return[].concat(_.jo(S))};
_.M=Ab.prototype;_.M.each=function(S,p,U){((U===void 0?0:U)?ZUi:_.xs)(this.list_,S,p);return this};
_.M.size=function(){return this.list_.length};
_.M.isEmpty=function(){return this.list_.length===0};
_.M.get=function(S){return this.list_[S]||null};
_.M.el=function(){return this.list_[0]||null};
_.M.map=function(S,p){return _.Fp(this.list_,S,p)};
_.M.equals=function(S){return this===S||_.dm(this.list_,S.list_)};
_.M.first=function(){return this.list_.length==0?null:new tb(this.list_[0])};
_.M.find=function(S){var p=[];this.each(function(U){U=U.querySelectorAll(String(S));for(var Y=0;Y<U.length;Y++)p.push(U[Y])});
return new Ab(p)};
_.M.parent=function(){var S=[];this.each(function(p){(p=p.parentElement||null)&&!_.ou(S,p)&&S.push(p)});
return new Ab(S)};
_.M.children=function(){var S=[];this.each(function(p){p=_.rX(p);for(var U=0;U<p.length;U++)S.push(p[U])});
return new Ab(S)};
_.M.filter=function(S){S=_.Ax(this.list_,iJT(S));return new Ab(S)};
_.M.closest=function(S){var p=[],U=iJT(S),Y=function(L){return _.BA(L)&&U(L)};
this.each(function(L){(L=_.uI(L,Y,!0))&&!_.ou(p,L)&&p.push(L)});
return new Ab(p)};
_.M.next=function(S){return U_J(this,_.uEl,S)};
_.M.prev=function(S){return U_J(this,YWT,S)};
var U_J=function(S,p,U){var Y=[];var L=U?iJT(U):Nbq;S.each(function(I){(I=p(I))&&L(I)&&Y.push(I)});
return new Ab(Y)};
Ab.prototype.setClass=function(S){return this.each(function(p){_.ZS(p,S)})};
var Ypt=function(S,p){return S.each(function(U){_.vX(U,p)})},L6A=function(S,p){return S.each(function(U){_.ms(U,p)})};
Ab.prototype.toggleClass=function(S,p){return p===!0?Ypt(this,S):p===!1?L6A(this,S):this.each(function(U){_.sD(U,S)?_.ms(U,S):_.vX(U,S)})};
Ab.prototype.setText=function(S){return this.each(function(p){_.GX(p,S)})};
var MCq=function(S){S.each(function(p){p.removeAttribute("aria-hidden")})};
Ab.prototype.getStyle=function(S){if(this.list_.length>0){var p=this.list_[0],U=p.style[_.kn(S)];return typeof U!=="undefined"?U:p.style[_.NNl(p,S)]||""}};
Ab.prototype.getData=function(S){if(this.list_.length===0)return new Bf(S,null);var p=lCX(this.list_[0],S);return new Bf(S,p)};
Ab.prototype.focus=function(S){try{S?this.el().focus(S):this.el().focus()}catch(p){}return this};
Ab.prototype.click=function(){var S=_.ZD(this.el());if(S.createEvent){var p=S.createEvent("MouseEvents");p.initMouseEvent("click",!0,!0,S.defaultView,1,0,0,0,0,!1,!1,!1,!1,0,null);this.el().dispatchEvent(p)}else S=S.createEventObject(),S.clientX=0,S.clientY=0,S.screenX=0,S.screenY=0,S.altKey=!1,S.ctrlKey=!1,S.shiftKey=!1,S.button=0,this.el().fireEvent("onclick",S)};
var cf=function(S,p,U,Y){function L(W,O,D){var z=O;O&&O.parentNode&&(z=O.cloneNode(!0));W(z,D)}
Y=Y===void 0?!1:Y;if(S.list_.length==1){var I=S.list_[0],V=function(W){return p(W,I)};
U instanceof Ab?U.each(V,void 0,Y):Array.isArray(U)?(Y?ZUi:_.xs)(U,V):V(U);return S}return S.each(function(W){U instanceof Ab?U.each(function(O){L(p,O,W)}):Array.isArray(U)?_.xs(U,function(O){L(p,O,W)}):L(p,U,W)})};
_.M=Ab.prototype;_.M.append=function(S){return cf(this,function(p,U){p&&U.appendChild(p)},S)};
_.M.appendTo=function(S){(new Ab([S])).append(this);return this};
_.M.remove=function(){return cf(this,function(S,p){_.yz(p)},null)};
_.M.empty=function(){return cf(this,function(S,p){_.K0(p)},null)};
_.M.after=function(S,p){return cf(this,function(U,Y){U&&_.jc(U,Y)},S,!(p===void 0||p))};
_.M.before=function(S){return cf(this,function(p,U){p&&_.b1(p,U)},S)};
_.M.replaceWith=function(S){return cf(this,function(p,U){p&&_.suP(p,U)},S)};
_.M.toggle=function(S){return this.each(function(p){_.$Y(p,S)})};
_.M.show=function(){return this.toggle(!0)};
_.M.hide=function(){return this.toggle(!1)};
_.M.trigger=function(S,p,U,Y){return Ia5(this,S,p,U,Y)};
var Ia5=function(S,p,U,Y,L){return S.each(function(I){_.rWq(_.ZD(I)).triggerWizEventInternal(I,p,U,Y,L)})},tb=function(S,p){S instanceof Ab&&(p=S.list_,S=null);
this.list_=pOY(S!=null?[S]:p)};
_.q_(tb,Ab);_.M=tb.prototype;_.M.children=function(){return new Ab(Array.prototype.slice.call(_.rX(this.list_[0])))};
_.M.each=function(S,p){S.call(p,this.list_[0],0);return this};
_.M.size=function(){return 1};
_.M.el=function(){return this.list_[0]};
_.M.first=function(){return this};var SB=function(S,p){p=p===void 0?window:p;this.hostId=S;this.JSC$17300_win=p;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$17300_previousHtmlOverscroll=this.JSC$17300_previousBodyOverscroll=this.JSC$17300_previousBodyOverflow="";this.eventTarget=new _.OD;this.JSC$17300_win.location.hostname.indexOf("youtube.com")>=0&&(this.domain="profilewidgets.youtube.com")},
TIn=function(S){var p=d_A(d_A(d_A(new VC5(78),"po"),"hppp"),"hhc");
p.authUser=Number(_.g7("SESSION_INDEX","0"));p.colorScheme=S;return p};
SB.prototype.getOrigin=function(){return this.origin?this.origin:_.ow(_.mf(_.ED(new _.ma,this.JSC$17300_win.location.protocol),this.JSC$17300_win.location.hostname),this.JSC$17300_win.location.port).toString()};
SB.prototype.getTargetOrigin=function(){return _.ow(_.mf(_.ED(new _.ma,this.scheme),this.domain),this.port)};
SB.prototype.preloadIframe=function(S){var p=this;if(this.iframeLoadPromise===void 0){var U=document.createElement("iframe");this.iframe=U;lPT(U,S);this.iframeLoadPromise=new Promise(function(Y,L){var I=!1,V=function(W){W.stopPropagation();U.removeEventListener("error",V);U.removeEventListener("securitypolicyviolation",V);L(Error("gk",{cause:W}))};
U.addEventListener("error",V);U.addEventListener("securitypolicyviolation",V);setTimeout(function(){I||L(Error("hk"))},3E4);
W6E(p,U,function(){I=!0;U.removeEventListener("error",V);U.removeEventListener("securitypolicyviolation",V);Y()})});
O4T(this);S=this.getTargetOrigin().toString();U.setAttribute("allow","camera "+S+"; display-capture "+S);this.parentElement.appendChild(U)}return this.iframeLoadPromise};
var D_t=function(S,p){var U,Y;return _.T(function(L){if(L.nextAddress==1)return U=XHt(getComputedStyle(S.parentElement).direction==="rtl"),S.parentElement.appendChild(U),document.activeElement instanceof HTMLElement&&(S.elementToFocusAfterClose=document.activeElement),_.M2(L,2),_.k(L,S.preloadIframe(p),4);if(L.nextAddress!=2){S.parentElement.removeChild(U);S.JSC$17300_previousBodyOverflow=S.parentElement.style.overflow;S.JSC$17300_previousHtmlOverscroll=document.documentElement.style.overscrollBehavior;
S.JSC$17300_previousBodyOverscroll=S.parentElement.style.overscrollBehavior;document.documentElement.style.overscrollBehavior="contain";S.parentElement.style.overscrollBehavior="contain";S.parentElement.style.overflow="hidden";var I=S.iframe;I.style.bottom="0";I.style.border="none";I.style.height="100%";I.style.left="0";I.style.position=S.iframePosition;I.style.right="0";I.style.top="0";I.style.width="100%";I.style.zIndex="2202";I.setAttribute("aria-hidden","false");I.setAttribute("aria-modal","true");
S.opened=!0;kUd(S);return _.CA(L,0)}Y=_.W4(L);S.parentElement.removeChild(U);gvt(S.isDarkTheme());H4E(S,!1);throw Error("ik",{cause:Y});})},H4E=function(S,p){p=p===void 0?!0:p;
S.iframe!==void 0&&(zOt(S),document.documentElement.style.overscrollBehavior=S.JSC$17300_previousHtmlOverscroll,S.parentElement.style.overscrollBehavior=S.JSC$17300_previousBodyOverscroll,S.parentElement.style.overflow=S.JSC$17300_previousBodyOverflow,S.elementToFocusAfterClose!==void 0&&(S.elementToFocusAfterClose.focus(),S.elementToFocusAfterClose=void 0),p?O4T(S):(S.parentElement.removeChild(S.iframe),S.iframe=void 0,S.iframeLoadPromise=void 0,S.mainChannel=void 0),S.opened=!1)},zOt=function(S){S.backgroundElementsAriaHiddenIsNull&&
(MCq(S.backgroundElementsAriaHiddenIsNull),S.backgroundElementsAriaHiddenIsNull=void 0);
S.backgroundElementsAriaHiddenIsFalse&&(S.backgroundElementsAriaHiddenIsFalse.each(function(p){p.setAttribute("aria-hidden","false")}),S.backgroundElementsAriaHiddenIsFalse=void 0);
S.backgroundElementsWithoutInert&&(S.backgroundElementsWithoutInert.each(function(p){p.removeAttribute("inert")}),S.backgroundElementsWithoutInert=void 0)},kUd=function(S){S.backgroundElementsAriaHiddenIsNull=(new tb(S.iframe.parentElement)).children().filter(function(p){return p.getAttribute("aria-hidden")===null&&p!==S.iframe});
S.backgroundElementsAriaHiddenIsNull.each(function(p){p.setAttribute("aria-hidden","true")});
S.backgroundElementsAriaHiddenIsFalse=(new tb(S.iframe.parentElement)).children().filter(function(p){return p.getAttribute("aria-hidden")==="false"&&p!==S.iframe});
S.backgroundElementsAriaHiddenIsFalse.each(function(p){p.setAttribute("aria-hidden","true")});
S.backgroundElementsWithoutInert=(new tb(S.iframe.parentElement)).children().filter(function(p){return!p.hasAttribute("inert")&&p!==S.iframe});
S.backgroundElementsWithoutInert.each(function(p){p.setAttribute("inert","true")})},O4T=function(S){S=S.iframe;
S.style.bottom="-1000px";S.style.position="fixed";S.style.right="-1000px";S.style.border="";S.style.height="";S.style.left="";S.style.top="";S.style.width="";S.style.zIndex="";S.setAttribute("aria-hidden","true");S.setAttribute("aria-modal","false")};
SB.prototype.isDarkTheme=function(){return this.colorScheme==="dark"||window.matchMedia("(prefers-color-scheme: dark)").matches&&this.colorScheme!=="light"};var VC5=function(S,p){SB.call(this,GhY[S],p);this.options=[];this.style=""};
_.r(VC5,SB);var QpX=function(S){S.style="youtube";return S},n1P=function(S,p){S.eventTarget.listen(lp5,p);
return S},Jxq=function(S,p){S.eventTarget.listen(uNq,p);
return S},d_A=function(S,p){S.options.push(p);
return S},yxn=function(S){var p=[S.getOrigin()];
S.ancestorOrigins&&p.push.apply(p,_.jo(S.ancestorOrigins));var U=new _.ma(S.JSC$17300_win.location.href),Y=S.startUrl?S.startUrl:S.options.includes("po")?"profile-picture/art":"profile-picture";p=IN(_.v3(S.getTargetOrigin(),Y),"origin",p);S.startUrl&&_.vm(p,"startPath",S.startUrl);S.authUser>0&&_.vm(p,"authuser",S.authUser);S.pageId!==void 0&&_.vm(p,"pageId",S.pageId);_.vm(p,"hostId",S.hostId);S.jsMode!==void 0&&_.vm(p,"jsmode",S.jsMode);S.options.length>0&&_.vm(p,"opts",S.options.join(","));try{for(var L=
_.d(["utm_source","utm_medium","utm_campaign","utm_content"]),I=L.next();!I.done;I=L.next()){var V=I.value;_.oW(U,V)&&_.vm(p,V,_.oW(U,V))}var W,O=(W=S.hl)!=null?W:_.oW(U,"hl");O!==void 0&&_.vm(p,"hl",O)}catch(D){if(!(D instanceof URIError))throw D;}S.colorScheme&&_.vm(p,"theme",S.colorScheme);S.style&&_.vm(p,"style",S.style);return p},K6n=function(S,p){S.mainChannel=_.vg({destination:S.JSC$17300_win,
iframe:p,origin:S.getTargetOrigin().toString(),channelName:"ow",onMessage:function(U){U=ZJY(U.data);if(p===S.iframe)switch(_.r1(U,1)){case 1:S.eventTarget.dispatchEvent(new xP5);H4E(S);break;case 2:S.eventTarget.dispatchEvent(new fpd(_.jR(U,4),_.jR(U,2),_.r1(U,5),_.Sa(U,FUL,6)));break;case 0:var Y;S.eventTarget.dispatchEvent(new COL(_.jR(U,2),(Y=_.r1(U,3))!=null?Y:0));break;case 3:S.eventTarget.dispatchEvent(new xP5(!0));H4E(S,!1);break;case 4:S.eventTarget.dispatchEvent(new E9q)}}})},W6E=function(S,
p,U){_.vg({destination:S.JSC$17300_win,
iframe:p,origin:_.ow(_.mf(_.ED(new _.ma,S.scheme),S.domain),S.port).toString(),channelName:"owi",onMessage:function(Y){p===S.iframe&&(U!==void 0&&U(),K6n(S,p),S.opened&&S.mainChannel.send(g9d(ejt())),Y.reply(),W6E(S,p))}})};
VC5.prototype.preloadIframe=function(){return this.iframeLoadPromise===void 0?SB.prototype.preloadIframe.call(this,yxn(this).toString()):this.iframeLoadPromise};
VC5.prototype.openPicker=function(S){var p=this;return _.T(function(U){if(U.nextAddress==1)return p.startUrl=S?S:p.options.includes("po")?"profile-picture/art":"profile-picture",_.k(U,D_t(p,yxn(p).toString()),2);if(p.mainChannel){var Y=p.mainChannel,L=Y.send;var I=ejt();I=_.zN(I,2,p.startUrl);L.call(Y,g9d(I))}_.OV(U)})};var b4E=function(S){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.UH(S)};
_.r(b4E,_.a5);_.M=b4E.prototype;_.M.getSize=function(){return Hf(this,1)};
_.M.setSize=function(S){return _.FU(this,1,S)};
_.M.getWidth=function(){return Hf(this,12)};
_.M.getHeight=function(){return Hf(this,13)};
_.M.setCenterCrop=function(S){return _.d5(this,20,S)};
_.M.getHtml=function(){return _.yY(this,4)};
_.M.getToken=function(){return _.n2(this,24)};
_.M.setToken=function(S){return _.zN(this,24,S)};
_.M.getBackgroundColor=function(){return Hf(this,87)};
_.M.hasBackgroundColor=function(){return _.hd(_.VY(this,87))!=null};
_.M.getStoryboardLevel=function(){return Hf(this,109)};var pB=function(S){this.JSC$17308_value_=void 0;this.childNodes_={};if(S){var p=_.QYe(S);S=_.xx(S);for(var U=0;U<p.length;U++)this.set(p[U],S[U])}};
pB.prototype.set=function(S,p){jpd(this,S,p,!1)};
pB.prototype.add=function(S,p){jpd(this,S,p,!0)};
var jpd=function(S,p,U,Y){for(var L=0;L<p.length;L++){var I=p.charAt(L);S.childNodes_[I]||(S.childNodes_[I]=new pB);S=S.childNodes_[I]}if(Y&&S.JSC$17308_value_!==void 0)throw Error("jk`"+p);S.JSC$17308_value_=U},rx5=function(S,p){for(var U=0;U<p.length;U++)if(S=S.childNodes_[p.charAt(U)],!S)return;
return S};
pB.prototype.get=function(S){return(S=rx5(this,S))?S.JSC$17308_value_:void 0};
pB.prototype.getValues=function(){var S=[];GUs(this,S);return S};
var GUs=function(S,p){S.JSC$17308_value_!==void 0&&p.push(S.JSC$17308_value_);for(var U in S.childNodes_)GUs(S.childNodes_[U],p)};
pB.prototype.getKeys=function(S){var p=[];if(S){for(var U=this,Y=0;Y<S.length;Y++){var L=S.charAt(Y);if(!U.childNodes_[L])return[];U=U.childNodes_[L]}hOE(U,S,p)}else hOE(this,"",p);return p};
var hOE=function(S,p,U){S.JSC$17308_value_!==void 0&&U.push(p);for(var Y in S.childNodes_)hOE(S.childNodes_[Y],p+Y,U)};
_.M=pB.prototype;_.M.containsKey=function(S){return this.get(S)!==void 0};
_.M.containsValue=function(S){if(this.JSC$17308_value_===S)return!0;for(var p in this.childNodes_)if(this.childNodes_[p].containsValue(S))return!0;return!1};
_.M.clear=function(){this.childNodes_={};this.JSC$17308_value_=void 0};
_.M.remove=function(S){for(var p=this,U=[],Y=0;Y<S.length;Y++){var L=S.charAt(Y);if(!p.childNodes_[L])throw Error("kk`"+S);U.push([p,L]);p=p.childNodes_[L]}S=p.JSC$17308_value_;for(delete p.JSC$17308_value_;U.length>0;)if(Y=U.pop(),p=Y[0],Y=Y[1],p.childNodes_[Y].isEmpty())delete p.childNodes_[Y];else break;return S};
_.M.clone=function(){return new pB(this)};
_.M.getCount=function(){return dmn(this.getValues())};
_.M.isEmpty=function(){return this.JSC$17308_value_===void 0&&_.h9.isEmpty(this.childNodes_)};var EvT=function(){if(!ROs){var S=ROs=new pB,p;for(p in F6n)S.add(p,F6n[p])}},ROs,Uu=function(S,p){this.types=S;
this.setters=p},F6n={a:new Uu([3,
0],[function(S,p){_.d5(S,21,p)},
function(S,p){_.FU(S,56,p)}]),
al:new Uu([3],[function(S,p){_.d5(S,74,p)}]),
b:new Uu([3,0],[function(S,p){_.d5(S,23,p)},
function(S,p){_.FU(S,38,p)}]),
ba:new Uu([0],[function(S,p){_.FU(S,85,p)}]),
bc:new Uu([0],[function(S,p){_.FU(S,87,p)}]),
br:new Uu([0],[function(S,p){_.FU(S,86,p)}]),
c:new Uu([3,0],[function(S,p){_.d5(S,2,p)},
function(S,p){_.FU(S,39,p)}]),
cc:new Uu([3],[function(S,p){_.d5(S,51,p)}]),
ci:new Uu([3],[function(S,p){_.d5(S,32,p)}]),
ckm:new Uu([3],[function(S,p){_.d5(S,104,p)}]),
cp:new Uu([0],[function(S,p){_.FU(S,92,p)}]),
cr:new Uu([3],[function(S,p){_.d5(S,108,p)}]),
cv:new Uu([0],[function(S,p){_.FU(S,94,p)}]),
d:new Uu([3],[function(S,p){_.d5(S,3,p)}]),
dc:new Uu([5],[function(S,p){_.zN(S,99,p)}]),
df:new Uu([3],[function(S,p){_.d5(S,80,p)}]),
dv:new Uu([3],[function(S,p){_.d5(S,90,p)}]),
e:new Uu([0],[function(S,p){_.FU(S,15,p)}]),
em:new Uu([0],[function(S,p){_.FU(S,107,p)}]),
f:new Uu([4],[function(S,p){_.zN(S,16,p)}]),
fg:new Uu([3],[function(S,p){_.d5(S,34,p)}]),
fh:new Uu([3],[function(S,p){_.d5(S,30,p)}]),
fm:new Uu([3],[function(S,p){_.d5(S,84,p)}]),
fo:new Uu([2],[function(S,p){_.UP(S,79,_.Ot(p))}]),
ft:new Uu([3],[function(S,p){_.d5(S,50,p)}]),
fv:new Uu([3],[function(S,p){_.d5(S,31,p)}]),
g:new Uu([3],[function(S,p){_.d5(S,14,p)}]),
gce:new Uu([4],[function(S,p){_.zN(S,112,p)}]),
gd:new Uu([3],[function(S,p){_.d5(S,83,p)}]),
gm:new Uu([3],[function(S,p){_.d5(S,105,p)}]),
h:new Uu([3,0],[function(S,p){_.d5(S,4,p)},
function(S,p){_.FU(S,13,p)}]),
i:new Uu([3],[function(S,p){_.d5(S,22,p)}]),
ic:new Uu([0],[function(S,p){_.FU(S,71,p)}]),
id:new Uu([3],[function(S,p){_.d5(S,70,p)}]),
il:new Uu([3],[function(S,p){_.d5(S,96,p)}]),
ip:new Uu([3],[function(S,p){_.d5(S,54,p)}]),
iv:new Uu([0],[function(S,p){_.yR(S,75,p)}]),
j:new Uu([1],[function(S,p){p=p==null?p:gso(p);_.UP(S,29,p)}]),
k:new Uu([3,0],[function(S,p){_.d5(S,17,p)},
function(S,p){_.FU(S,42,p)}]),
l:new Uu([0],[function(S,p){_.FU(S,44,p)}]),
lf:new Uu([3],[function(S,p){_.d5(S,65,p)}]),
lo:new Uu([3],[function(S,p){_.d5(S,97,p)}]),
m:new Uu([0],[function(S,p){_.FU(S,63,p)}]),
md:new Uu([3],[function(S,p){_.d5(S,91,p)}]),
mm:new Uu([4],[function(S,p){_.zN(S,81,p)}]),
mo:new Uu([3],[function(S,p){_.d5(S,73,p)}]),
mv:new Uu([3],[function(S,p){_.d5(S,66,p)}]),
n:new Uu([3],[function(S,p){S.setCenterCrop(p)}]),
nc:new Uu([3],[function(S,p){_.d5(S,55,p)}]),
nd:new Uu([3],[function(S,p){_.d5(S,53,p)}]),
ng:new Uu([3],[function(S,p){_.d5(S,95,p)}]),
ngm:new Uu([3],[function(S,p){_.d5(S,106,p)}]),
no:new Uu([3],[function(S,p){_.d5(S,37,p)}]),
ns:new Uu([3],[function(S,p){_.d5(S,40,p)}]),
nt0:new Uu([4],[function(S,p){_.zN(S,36,p)}]),
ntm:new Uu([3],[function(S,p){_.d5(S,114,p)}]),
nu:new Uu([3],[function(S,p){_.d5(S,46,p)}]),
nw:new Uu([3],[function(S,p){_.d5(S,48,p)}]),
o:new Uu([1,3],[function(S,p){p=p==null?p:gso(p);_.UP(S,7,p)},
function(S,p){_.d5(S,27,p)}]),
p:new Uu([3,0],[function(S,p){_.d5(S,19,p)},
function(S,p){_.FU(S,43,p)}]),
pa:new Uu([3],[function(S,p){_.d5(S,61,p)}]),
pc:new Uu([0],[function(S,p){_.FU(S,88,p)}]),
pd:new Uu([3],[function(S,p){_.d5(S,60,p)}]),
pf:new Uu([3],[function(S,p){_.d5(S,67,p)}]),
pg:new Uu([3],[function(S,p){_.d5(S,72,p)}]),
pi:new Uu([2],[function(S,p){_.UP(S,76,_.Ot(p))}]),
pp:new Uu([3],[function(S,p){_.d5(S,52,p)}]),
pt:new Uu([4],[function(S,p){_.zN(S,111,p)}]),
q:new Uu([4],[function(S,p){_.zN(S,28,p)}]),
r:new Uu([3,0],[function(S,p){_.d5(S,6,p)},
function(S,p){_.FU(S,26,p)}]),
ra:new Uu([3],[function(S,p){_.d5(S,103,p)}]),
rf:new Uu([3],[function(S,p){_.d5(S,100,p)}]),
rg:new Uu([3],[function(S,p){_.d5(S,59,p)}]),
rh:new Uu([3],[function(S,p){_.d5(S,49,p)}]),
rj:new Uu([3],[function(S,p){_.d5(S,57,p)}]),
ro:new Uu([2],[function(S,p){_.UP(S,78,_.Ot(p))}]),
rp:new Uu([3],[function(S,p){_.d5(S,58,p)}]),
rw:new Uu([3],[function(S,p){_.d5(S,35,p)}]),
rwa:new Uu([3],[function(S,p){_.d5(S,64,p)}]),
rwu:new Uu([3],[function(S,p){_.d5(S,41,p)}]),
s:new Uu([3,0],[function(S,p){_.d5(S,33,p)},
function(S,p){S.setSize(p)}]),
sb:new Uu([0],[function(S,p){_.FU(S,110,p)}]),
sc:new Uu([0],[function(S,p){_.FU(S,89,p)}]),
sg:new Uu([3],[function(S,p){_.d5(S,82,p)}]),
sl:new Uu([0],[function(S,p){_.FU(S,109,p)}]),
sm:new Uu([3],[function(S,p){_.d5(S,93,p)}]),
t:new Uu([4],[function(S,p){S.setToken(p)}]),
tm:new Uu([3],[function(S,p){_.d5(S,113,p)}]),
u:new Uu([3],[function(S,p){_.d5(S,18,p)}]),
ut:new Uu([3],[function(S,p){_.d5(S,45,p)}]),
v:new Uu([0],[function(S,p){_.FU(S,62,p)}]),
vb:new Uu([0],[function(S,p){_.yR(S,68,p)}]),
vf:new Uu([4],[function(S,p){_.zN(S,102,p)}]),
vl:new Uu([0],[function(S,p){_.yR(S,69,p)}]),
vm:new Uu([3],[function(S,p){_.d5(S,98,p)}]),
w:new Uu([0],[function(S,p){_.FU(S,12,p)}]),
x:new Uu([0],[function(S,p){_.FU(S,9,p)}]),
y:new Uu([0],[function(S,p){_.FU(S,10,p)}]),
ya:new Uu([2],[function(S,p){_.UP(S,77,_.Ot(p))}]),
z:new Uu([0],[function(S,p){_.FU(S,11,p)}])};
EvT.prototype.parse=function(S){var p=new b4E,U=new b4E;if(S=="")S=!0;else{S=S.split("-");for(var Y=!0,L=0;L<S.length;L++){var I=S[L];if(I.length==0)Y=!1;else{var V=I,W=!1;var O=V;var D=V.charAt(0);D!=D.toLowerCase()&&(W=!0,O=V.charAt(0).toLowerCase()+V.substring(1));var z=ROs;for(D=1;D<=O.length;++D){var Q=z,J=O.substring(0,D);if(J.length==0?Q.isEmpty():!rx5(Q,J))break}O=D==1?null:(O=z.get(O.substring(0,D-1)))?{option:V.substring(0,D-1),value:V.substring(D-1),signed:W,attributes:O}:null;if(O){V=
[];W=[];D=!1;for(z=0;z<O.attributes.types.length;z++){Q=O.attributes.types[z];var K=O.value;J=L;if(O.signed&&Q==1)for(var G=K.length;G<12&&J<S.length-1;)K+="-"+S[J+1],G=K.length,++J;else if(Q==2)for(;J<S.length-1&&S[J+1].match(/^[\d\.]/);)K+="-"+S[J+1],++J;G=O.attributes.setters[z];K=J2t(this,Q)(O.option,K,p,U,G);if(K===null){D=!0;L=J;break}else V.push(Q),W.push(K)}if(!D)for(O=0;O<W.length;O++)z=V[O],K=W[O],y2q(this,z)(I,K);Y=Y&&D}else Y=!1}}S=Y}return new KfA(p,U,S)};
var Yf=function(S,p,U,Y,L,I){L(U,p);S=S.charAt(0);I=I(S==S.toUpperCase());L(Y,I)};
_.M=EvT.prototype;_.M.parseAndSetIntOption_=function(S,p,U,Y,L){if(p=="")return 0;isFinite(p)&&(p=String(p));p=typeof p==="string"?/^\s*-?0x/i.test(p)?parseInt(p,16):parseInt(p,10):NaN;if(isNaN(p))return 1;Yf(S,p,U,Y,L,Number);return null};
_.M.logIntParseError_=function(){};
_.M.parseAndSetFloatOption_=function(S,p,U,Y,L){if(p=="")return 0;var I=Number(p);p=I==0&&_.dN(p)?NaN:I;if(isNaN(p))return 1;Yf(S,p,U,Y,L,Number);return null};
_.M.logFloatParseError_=function(){};
_.M.parseAndSetBoolOption_=function(S,p,U,Y,L){if(p!="")return 2;Yf(S,!0,U,Y,L,Boolean);return null};
_.M.logBoolParseError_=function(){};
_.M.parseAndSetStringOption_=function(S,p,U,Y,L){if(p=="")return 0;Yf(S,p,U,Y,L,function(I){return I?"1":""});
return null};
_.M.logStringParseError_=function(){};
_.M.parseAndSetUint64Base64Option_=function(S,p,U,Y,L){if(p=="")return 0;Yf(S,p,U,Y,L,function(I){return I?1:0});
return null};
var J2t=function(S,p){switch(p){case 0:return(0,_.RW)(S.parseAndSetIntOption_,S);case 2:return(0,_.RW)(S.parseAndSetFloatOption_,S);case 3:return(0,_.RW)(S.parseAndSetBoolOption_,S);case 4:return(0,_.RW)(S.parseAndSetStringOption_,S);case 1:return(0,_.RW)(S.parseAndSetUint64Base64Option_,S);default:return function(){}}},y2q=function(S,p){switch(p){case 0:return(0,_.RW)(S.logIntParseError_,S);
case 2:return(0,_.RW)(S.logFloatParseError_,S);case 3:return(0,_.RW)(S.logBoolParseError_,S);case 4:case 1:return(0,_.RW)(S.logStringParseError_,S);default:return function(){}}},KfA=function(S,p,U){this.valueProto_=S;
this.signatureFlagProto_=p;this.JSC$17320_valid_=U};
KfA.prototype.isValid=function(){return this.JSC$17320_valid_};var aPd=function(S){this.JSC$17321_parser_=null;this.JSC$17321_components_=[];this.JSC$17321_parsedOptions_=null;bWP(this,S)},jwL=function(S){S.JSC$17321_parser_==null&&(S.JSC$17321_parser_=new EvT);
return S.JSC$17321_parser_},bWP=function(S,p){S.JSC$17321_parsedOptions_=p?typeof p==="string"?jwL(S).parse(p):p:jwL(S).parse("")},LB=function(S,p){return S==p?!1:!0};
_.M=aPd.prototype;_.M.JSC$17323_setCrop=function(S){S=S||void 0;var p=this.JSC$17321_parsedOptions_,U=p.valueProto_;LB(S,_.yY(U,2),_.yY(p.signatureFlagProto_,2))&&_.d5(U,2,S);return this};
_.M.JSC$17323_setCircleCrop=function(S){S=S||void 0;var p=this.JSC$17321_parsedOptions_,U=p.valueProto_;LB(S,kI(U,51),kI(p.signatureFlagProto_,51))&&_.d5(U,51,S);return this};
_.M.JSC$17323_setImageCrop=function(S){S=S||void 0;var p=this.JSC$17321_parsedOptions_,U=p.valueProto_;LB(S,kI(U,32),kI(p.signatureFlagProto_,32))&&_.d5(U,32,S);return this};
_.M.JSC$17323_setHeight=function(S){var p=this.JSC$17321_parsedOptions_,U=p.valueProto_;LB(S,U.getHeight(),p.signatureFlagProto_.getHeight())&&_.FU(U,13,S);return this};
_.M.setCenterCrop=function(S){S=S||void 0;var p=this.JSC$17321_parsedOptions_,U=p.valueProto_;LB(S,_.yY(U,20),_.yY(p.signatureFlagProto_,20))&&U.setCenterCrop(S);return this};
_.M.JSC$17323_setSmartCrop=function(S){S=S||void 0;var p=this.JSC$17321_parsedOptions_,U=p.valueProto_;LB(S,_.yY(U,19),_.yY(p.signatureFlagProto_,19))&&_.d5(U,19,S);return this};
_.M.JSC$17323_setPad=function(S){S=S||void 0;var p=this.JSC$17321_parsedOptions_,U=p.valueProto_;LB(S,kI(U,60),kI(p.signatureFlagProto_,60))&&_.d5(U,60,S);return this};
_.M.JSC$17323_setSmartCropUseFace=function(S){S=S||void 0;var p=this.JSC$17321_parsedOptions_,U=p.valueProto_;LB(S,_.yY(U,67),_.yY(p.signatureFlagProto_,67))&&_.d5(U,67,S);return this};
_.M.JSC$17323_setSmartCropNoClip=function(S){S=S||void 0;var p=this.JSC$17321_parsedOptions_,U=p.valueProto_;LB(S,_.yY(U,52),_.yY(p.signatureFlagProto_,52))&&_.d5(U,52,S);return this};
_.M.setSize=function(S){var p=this.JSC$17321_parsedOptions_,U=p.valueProto_;LB(S,U.getSize(),p.signatureFlagProto_.getSize())&&U.setSize(S);return this};
_.M.setToken=function(S){S=S||void 0;var p=this.JSC$17321_parsedOptions_,U=p.valueProto_;LB(S,U.getToken(),p.signatureFlagProto_.getToken())&&U.setToken(S);return this};
_.M.JSC$17323_setWidth=function(S){var p=this.JSC$17321_parsedOptions_,U=p.valueProto_;LB(S,U.getWidth(),p.signatureFlagProto_.getWidth())&&_.FU(U,12,S);return this};
_.M.clearOptions=function(){bWP(this,"");return this};
_.M.build=function(){this.JSC$17321_components_.length=0;var S=this.JSC$17321_parsedOptions_,p=S.valueProto_;S=S.signatureFlagProto_;Me(this,"s",p.getSize(),S.getSize());Me(this,"w",p.getWidth(),S.getWidth());ID(this,"c",_.yY(p,2),_.yY(S,2));ID(this,"d",_.yY(p,3),_.yY(S,3));Me(this,"h",p.getHeight(),S.getHeight());ID(this,"s",kI(p,33),kI(S,33));ID(this,"h",p.getHtml(),S.getHtml());ID(this,"p",_.yY(p,19),_.yY(S,19));ID(this,"pp",_.yY(p,52),_.yY(S,52));ID(this,"pf",_.yY(p,67),_.yY(S,67));ID(this,"n",
_.yY(p,20),_.yY(S,20));Me(this,"r",Hf(p,26),Hf(S,26));ID(this,"r",_.yY(p,6),_.yY(S,6));ID(this,"o",kI(p,27),kI(S,27));var U=_.Jk(p,7,_.d1);dh(this,"o",U,_.Jk(S,7,_.d1));U=_.Jk(p,29,_.d1);dh(this,"j",U,_.Jk(S,29,_.d1));Me(this,"x",Hf(p,9),Hf(S,9));Me(this,"y",Hf(p,10),Hf(S,10));Me(this,"z",Hf(p,11),Hf(S,11));ID(this,"g",_.yY(p,14),_.yY(S,14));Me(this,"e",Hf(p,15),Hf(S,15));dh(this,"f",_.n2(p,16),_.n2(S,16));ID(this,"k",kI(p,17),kI(S,17));ID(this,"u",kI(p,18),!0);ID(this,"ut",kI(p,45),!0);ID(this,"i",
kI(p,22),!0);ID(this,"a",kI(p,21),kI(S,21));ID(this,"b",_.yY(p,23),_.yY(S,23));Me(this,"b",Hf(p,38),Hf(S,38));Me(this,"c",Hf(p,39),Hf(S,39),16,8);dh(this,"q",_.n2(p,28),_.n2(S,28));ID(this,"fh",kI(p,30),kI(S,30));ID(this,"fv",kI(p,31),kI(S,31));ID(this,"fg",_.yY(p,34),_.yY(S,34));ID(this,"ci",kI(p,32),kI(S,32));dh(this,"t",p.getToken(),S.getToken());dh(this,"nt0",_.n2(p,36),_.n2(S,36));ID(this,"rw",_.yY(p,35),_.yY(S,35));ID(this,"rwu",_.yY(p,41),_.yY(S,41));ID(this,"rwa",_.yY(p,64),_.yY(S,64));ID(this,
"nw",_.yY(p,48),_.yY(S,48));ID(this,"rh",_.yY(p,49),_.yY(S,49));ID(this,"no",_.yY(p,37),_.yY(S,37));ID(this,"ns",kI(p,40),kI(S,40));Me(this,"k",Hf(p,42),Hf(S,42));Me(this,"p",Hf(p,43),Hf(S,43));Me(this,"l",Hf(p,44),Hf(S,44));Me(this,"v",Hf(p,62),Hf(S,62));ID(this,"nu",kI(p,46),kI(S,46));ID(this,"ft",kI(p,50),kI(S,50));ID(this,"cc",kI(p,51),kI(S,51));ID(this,"nd",kI(p,53),kI(S,53));ID(this,"ip",kI(p,54),kI(S,54));ID(this,"nc",kI(p,55),kI(S,55));Me(this,"a",Hf(p,56),Hf(S,56));ID(this,"rj",kI(p,57),
kI(S,57));ID(this,"rp",kI(p,58),kI(S,58));ID(this,"rg",kI(p,59),kI(S,59));ID(this,"pd",kI(p,60),kI(S,60));ID(this,"pa",kI(p,61),kI(S,61));Me(this,"m",Hf(p,63),Hf(S,63));Me(this,"vb",Dy(p,68),Dy(S,68));Me(this,"vl",Dy(p,69),Dy(S,69));ID(this,"lf",kI(p,65),kI(S,65));ID(this,"mv",kI(p,66),kI(S,66));ID(this,"id",kI(p,70),kI(S,70));Me(this,"ic",Hf(p,71),!0);ID(this,"pg",_.yY(p,72),_.yY(S,72));ID(this,"mo",kI(p,73),kI(S,73));ID(this,"al",kI(p,74),kI(S,74));Me(this,"iv",Dy(p,75),Dy(S,75));Me(this,"pi",zZ(p,
76),zZ(S,76));Me(this,"ya",zZ(p,77),zZ(S,77));Me(this,"ro",zZ(p,78),zZ(S,78));Me(this,"fo",zZ(p,79),zZ(S,79));ID(this,"df",kI(p,80),kI(S,80));dh(this,"mm",_.n2(p,81),_.n2(S,81));ID(this,"sg",kI(p,82),kI(S,82));ID(this,"gd",kI(p,83),kI(S,83));ID(this,"fm",kI(p,84),kI(S,84));Me(this,"ba",Hf(p,85),Hf(S,85));Me(this,"br",Hf(p,86),Hf(S,86));Me(this,"bc",p.getBackgroundColor(),S.getBackgroundColor(),16,8);Me(this,"pc",Hf(p,88),Hf(S,88),16,8);Me(this,"sc",Hf(p,89),Hf(S,89),16,8);ID(this,"dv",kI(p,90),kI(S,
90));ID(this,"md",kI(p,91),kI(S,91));Me(this,"cp",Hf(p,92),Hf(S,92));ID(this,"sm",kI(p,93),kI(S,93));Me(this,"cv",Hf(p,94),Hf(S,94));ID(this,"ng",kI(p,95),kI(S,95));ID(this,"il",kI(p,96),kI(S,96));ID(this,"lo",kI(p,97),kI(S,97));ID(this,"vm",kI(p,98),kI(S,98));dh(this,"dc",_.n2(p,99),_.n2(S,99));ID(this,"rf",kI(p,100),kI(S,100));dh(this,"vf",_.n2(p,102),_.n2(S,102));ID(this,"ra",_.yY(p,103),_.yY(S,103));ID(this,"ckm",kI(p,104),kI(S,104));ID(this,"gm",kI(p,105),kI(S,105));ID(this,"ngm",kI(p,106),kI(S,
106));Me(this,"em",Hf(p,107),Hf(S,107));ID(this,"cr",kI(p,108),kI(S,108));Me(this,"sl",p.getStoryboardLevel(),S.getStoryboardLevel());Me(this,"sb",Hf(p,110),Hf(S,110));dh(this,"pt",_.n2(p,111),_.n2(S,111));dh(this,"gce",_.n2(p,112),_.n2(S,112));ID(this,"tm",kI(p,113),kI(S,113));ID(this,"ntm",kI(p,114),kI(S,114));return this.JSC$17321_components_.join("-")};
var Me=function(S,p,U,Y,L,I){if(U!=null){var V=L==void 0||L!=10&&L!=16?10:L;U=Number(U).toString(V);L=new tni;L.append(V==16?"0x":"");V=L.append;I==void 0?I="":(I-=U.length,I=I<=0?"":(0,_.nNR)("0",I));V.call(L,I);L.append(U);r2J(S,p,L.toString(),!!Number(Y))}},ID=function(S,p,U,Y){U&&r2J(S,p,"",!!Y)},dh=function(S,p,U,Y){U&&r2J(S,p,String(U),!!Number(Y))},r2J=function(S,p,U,Y){Y&&(p=p.charAt(0).toUpperCase()+p.substring(1));
S.JSC$17321_components_.push(p+U)};_.q_(jr,aPd);_.M=jr.prototype;_.M.JSC$17323_setCrop=function(S){S&&VQ(this);return jr.superClass_.JSC$17323_setCrop.call(this,S)};
_.M.JSC$17323_setHeight=function(S){S=S==null||S<0?void 0:S;S!=null&&this.setSize();return jr.superClass_.JSC$17323_setHeight.call(this,S)};
_.M.JSC$17323_setImageCrop=function(S){S&&VQ(this);return jr.superClass_.JSC$17323_setImageCrop.call(this,S)};
_.M.JSC$17323_setCircleCrop=function(S){S&&VQ(this);return jr.superClass_.JSC$17323_setCircleCrop.call(this,S)};
_.M.setSize=function(S){_.pc(S)&&(S=Math.max(S.width,S.height));S=S==null||S<0?void 0:S;S!=null&&(this.JSC$17323_setWidth(),this.JSC$17323_setHeight());return jr.superClass_.setSize.call(this,S)};
_.M.JSC$17323_setSmartCrop=function(S){S&&VQ(this);return jr.superClass_.JSC$17323_setSmartCrop.call(this,S)};
_.M.JSC$17323_setSmartCropNoClip=function(S){S&&VQ(this);return jr.superClass_.JSC$17323_setSmartCropNoClip.call(this,S)};
_.M.JSC$17323_setSmartCropUseFace=function(S){S&&VQ(this);return jr.superClass_.JSC$17323_setSmartCropUseFace.call(this,S)};
_.M.setCenterCrop=function(S){S&&VQ(this);return jr.superClass_.setCenterCrop.call(this,S)};
_.M.JSC$17323_setPad=function(S){S&&VQ(this);return jr.superClass_.JSC$17323_setPad.call(this,S)};
_.M.JSC$17323_setWidth=function(S){S=S==null||S<0?void 0:S;S!=null&&this.setSize();return jr.superClass_.JSC$17323_setWidth.call(this,S)};
var GBq=function(S){S.clearOptions();var p=S.JSC$17321_parsedOptions_,U=p.valueProto_;LB(!0,_.yY(U,3),_.yY(p.signatureFlagProto_,3))&&_.d5(U,3,!0);return S},VQ=function(S){S.setCenterCrop();
S.JSC$17323_setCircleCrop();S.JSC$17323_setCrop();S.JSC$17323_setImageCrop();S.JSC$17323_setPad();S.JSC$17323_setSmartCrop();S.JSC$17323_setSmartCropNoClip();S.JSC$17323_setSmartCropUseFace()};
jr.prototype.build=function(){var S=this.JSC$17321_parsedOptions_.valueProto_;kI(S,18)||kI(S,45)?S.getSize()||this.setSize(0):(S=this.JSC$17321_parsedOptions_.valueProto_,S.getSize()||S.getWidth()||S.getHeight()||(this.setSize(),this.JSC$17323_setHeight(),this.JSC$17323_setWidth(),VQ(this)));return jr.superClass_.build.call(this)};var hBo=/^[^\/]*\/\//,T$=function(S,p){p=p===void 0?!1:p;this.original_=S;this.originalPrefix_="";(S=this.original_.match(hBo))&&S[0]?(this.originalPrefix_=S[0],S=this.originalPrefix_.match(/\w+/)?this.original_:"http://"+this.original_.substring(this.originalPrefix_.length)):S="http://"+this.original_;this.uri_=_.mz(S,!0);this.isFreeformUrl_=p;this.JSC$17327_valid_=!0;this.obfuscated_=!1},RBq=function(S,p){S.JSC$17329_pathPrefix_=S.JSC$17329_pathPrefix_?S.JSC$17329_pathPrefix_+("/"+p):p},Wu=function(S){if(S.JSC$17329_components_==
void 0){var p=S.uri_.getPath().substring(1);
S.JSC$17329_pathPrefix_=null;if(S.isFreeformUrl_){S.JSC$17329_components_=[];if((p.match(/=/g)||[]).length>1)return S.JSC$17327_valid_=!1,S.JSC$17329_components_;var U=p.indexOf("=");U!=-1?(S.JSC$17329_components_.push(p.substr(0,U)),S.JSC$17329_components_.push(p.substr(U+1))):S.JSC$17329_components_.push(p);return S.JSC$17329_components_}S.JSC$17329_components_=p.split("/");p=S.JSC$17329_components_.length;p>2&&S.JSC$17329_components_[0]=="u"&&(RBq(S,S.JSC$17329_components_[0]+"/"+S.JSC$17329_components_[1]),
S.JSC$17329_components_.shift(),S.JSC$17329_components_.shift(),p-=2);if(p==0||p==4||p>7)return S.JSC$17327_valid_=!1,S.JSC$17329_components_;if(p==2)RBq(S,S.JSC$17329_components_[0]);else if(S.JSC$17329_components_[0]=="image")RBq(S,S.JSC$17329_components_[0]);else if(p==7||p==3)return S.JSC$17327_valid_=!1,S.JSC$17329_components_;if(p<=3){S.obfuscated_=!0;p==3&&(RBq(S,S.JSC$17329_components_[1]),S.JSC$17329_components_.shift(),--p);--p;U=S.JSC$17329_components_[p];var Y=U.indexOf("=");Y!=-1&&(S.JSC$17329_components_[p]=
U.substr(0,Y),S.JSC$17329_components_.push(U.substr(Y+1)))}}return S.JSC$17329_components_};
T$.prototype.isValid=function(){Wu(this);return this.JSC$17327_valid_};
T$.prototype.isObfuscated=function(){Wu(this);return this.obfuscated_};
var FfT=function(S){Wu(S);return S.isFreeformUrl_},Ou=function(S){Wu(S);
S.JSC$17329_pathPrefix_==void 0&&(S.JSC$17329_pathPrefix_=null);return S.JSC$17329_pathPrefix_},X3o=function(S){switch(Wu(S).length){case 7:return!0;
case 6:return Ou(S)==null;case 5:return!1;case 3:return!0;case 2:return Ou(S)==null;case 1:return!1;default:return!1}},kf=function(S,p){if(FfT(S))a:{switch(p){case 7:p=0;
break;case 4:if(!X3o(S)){S=null;break a}p=1;break;default:S=null;break a}S=Wu(S)[p]}else if(S.isObfuscated())a:{var U=Ou(S)!=null?1:0;switch(p){case 6:p=U;break;case 4:if(!X3o(S)){S=null;break a}p=1+U;break;default:S=null;break a}S=Wu(S)[p]}else a:{U=Ou(S)!=null?1:0;switch(p){case 0:p=U;break;case 1:p=1+U;break;case 2:p=2+U;break;case 3:p=3+U;break;case 4:if(!X3o(S)){S=null;break a}p=4+U;break;case 5:p=X3o(S)?1:0;p=4+U+p;break;default:S=null;break a}S=Wu(S)[p]}return S};
T$.prototype.getOptions=function(){this.options_==void 0&&(this.options_=kf(this,4));return this.options_};var xWY=function(){};
xWY.prototype.parse=function(S,p){return new fPA(S,p===void 0?!1:p)};
var fPA=function(S,p){T$.call(this,S,p===void 0?!1:p)};
_.r(fPA,T$);_.q_(rF,jr);var CQT;rF.prototype.isValid=function(){return this.parsedImageUrl_.isValid()};
rF.prototype.build=function(){if(!this.parsedImageUrl_.isValid())return this.parsedImageUrl_.original_;var S=rF.superClass_.build.call(this),p=[];Ou(this.parsedImageUrl_)!=null&&p.push(Ou(this.parsedImageUrl_));var U=FfT(this.parsedImageUrl_);if(this.parsedImageUrl_.isObfuscated()){var Y=this.parsedImageUrl_;Y.obfuscatedData_==void 0&&(Y.obfuscatedData_=kf(Y,6));p.push(Y.obfuscatedData_+(S?"="+S:""))}else if(U){Y=p.push;var L=this.parsedImageUrl_;L.freeformUrlPath_===void 0&&(L.freeformUrlPath_=kf(L,
7));Y.call(p,L.freeformUrlPath_);S&&p.push(S)}else Y=p.push,L=this.parsedImageUrl_,L.obfuscatedGaiaId_==void 0&&(L.obfuscatedGaiaId_=kf(L,0)),Y.call(p,L.obfuscatedGaiaId_),Y=p.push,L=this.parsedImageUrl_,L.photoId_==void 0&&(L.photoId_=kf(L,1)),Y.call(p,L.photoId_),Y=p.push,L=this.parsedImageUrl_,L.imageVersion_==void 0&&(L.imageVersion_=kf(L,2)),Y.call(p,L.imageVersion_),Y=p.push,L=this.parsedImageUrl_,L.signature_==void 0&&(L.signature_=kf(L,3)),Y.call(p,L.signature_),S&&p.push(S),S=p.push,Y=this.parsedImageUrl_,
Y.filename_==void 0&&(Y.filename_=kf(Y,5)),S.call(p,Y.filename_);p=U?p.join("="):p.join("/");p=_.mz(this.protocolPrefix_+this.JSC$17335_domain_+"/"+p+(this.JSC$17335_query_?"?"+this.JSC$17335_query_:"")).toString();p.startsWith("%3a//")&&(p=p.replace("%3a//","://"));return p};var PRq=_.x1(["viewBox"]),ZWo=_.x1(["width"]),swY=_.x1(["height"]),eBE=_.x1(["fill"]),gxE=_.x1(["id"]),u8q=_.x1(["x"]),w3Y=_.x1(["y"]);mWL.prototype.getLength=function(){return this.parsedData.length};
mWL.prototype.write=function(S){for(var p=0,U=this.parsedData.length;p<U;p++)S.put(this.parsedData[p],8)};
var q9s=function(S,p){var U=new mWL(p);S.dataList.push(U);U=S.errorCorrectLevel;var Y=1,L=encodeURI(p).toString().replace(/%[0-9a-fA-F]{2}/g,"a");p=L.length+(L.length!=p?3:0);L=0;for(var I=Hu.length;L<=I;L++){var V=0;switch(U){case 1:V=Hu[L][0];break;case 0:V=Hu[L][1];break;case 3:V=Hu[L][2];break;case 2:V=Hu[L][3]}if(p<=V)break;else Y++}if(Y>Hu.length)throw Error("tk");S.typeNumber=Y;S.dataCache=null};
ovE.prototype.isDark=function(S,p){if(S<0||this.moduleCount<=S||p<0||this.moduleCount<=p)throw Error("lk`"+S+"`"+p);return this.modules[S][p]};
for(var AU5=function(S,p,U){S.moduleCount=S.typeNumber*4+17;S.modules=Array(S.moduleCount);for(var Y=0;Y<S.moduleCount;Y++){S.modules[Y]=Array(S.moduleCount);for(var L=0;L<S.moduleCount;L++)S.modules[Y][L]=null}lSd(S,0,0);lSd(S,S.moduleCount-7,0);lSd(S,0,S.moduleCount-7);Y=aSA[S.typeNumber-1];for(L=0;L<Y.length;L++)for(var I=0;I<Y.length;I++){var V=Y[L],W=Y[I];if(S.modules[V][W]==null)for(var O=-2;O<=2;O++)for(var D=-2;D<=2;D++)S.modules[V+O][W+D]=O==-2||O==2||D==-2||D==2||O==0&&D==0?!0:!1}for(Y=
8;Y<S.moduleCount-8;Y++)S.modules[Y][6]==null&&(S.modules[Y][6]=Y%2==0);for(Y=8;Y<S.moduleCount-8;Y++)S.modules[6][Y]==null&&(S.modules[6][Y]=Y%2==0);Y=S.errorCorrectLevel<<3|U;for(L=Y<<10;DZ(L)-DZ(1335)>=0;)L^=1335<<DZ(L)-DZ(1335);Y=(Y<<10|L)^21522;for(L=0;L<15;L++)I=!p&&(Y>>L&1)==1,L<6?S.modules[L][8]=I:L<8?S.modules[L+1][8]=I:S.modules[S.moduleCount-15+L][8]=I;for(L=0;L<15;L++)I=!p&&(Y>>L&1)==1,L<8?S.modules[8][S.moduleCount-L-1]=I:L<9?S.modules[8][15-L-1+1]=I:S.modules[8][15-L-1]=I;S.modules[S.moduleCount-
8][8]=!p;if(S.typeNumber>=7){Y=S.typeNumber;for(L=Y<<12;DZ(L)-DZ(7973)>=0;)L^=7973<<DZ(L)-DZ(7973);Y=Y<<12|L;for(L=0;L<18;L++)I=!p&&(Y>>L&1)==1,S.modules[Math.floor(L/3)][L%3+S.moduleCount-8-3]=I;for(L=0;L<18;L++)I=!p&&(Y>>L&1)==1,S.modules[L%3+S.moduleCount-8-3][Math.floor(L/3)]=I}if(S.dataCache==null){L=S.typeNumber;I=S.dataList;p=S.errorCorrectLevel;Y=fSs(L,p);if(Y==void 0)throw Error("sk`"+L+"`"+p);V=Y.length/3;p=[];for(W=0;W<V;W++){O=Y[W*3];D=Y[W*3+1];for(var z=Y[W*3+2],Q=0;Q<O;Q++)p.push(new vvd(D,
z))}Y=new $Ws;for(V=0;V<I.length;V++)W=I[V],Y.put(W.mode,4),Y.put(W.getLength(),CRd(W.mode,L)),W.write(Y);for(V=L=0;V<p.length;V++)L+=p[V].dataCount;if(Y.length>L*8)throw Error("mk`"+Y.length+"`"+L*8);for(Y.length+4<=L*8&&Y.put(0,4);Y.length%8!=0;)xNE(Y,!1);for(;!(Y.length>=L*8);){Y.put(236,8);if(Y.length>=L*8)break;Y.put(17,8)}I=L=D=0;V=Array(p.length);W=Array(p.length);for(O=0;O<p.length;O++){Q=p[O].dataCount;var J=p[O].totalCount-Q;L=Math.max(L,Q);I=Math.max(I,J);V[O]=Array(Q);for(z=0;z<V[O].length;z++)V[O][z]=
255&Y.buffer[z+D];D+=Q;z=J;Q=new Ga([1],0);for(J=0;J<z;J++)Q=Q.multiply(new Ga([1,Exd(J)],0));z=Q;Q=(new Ga(V[O],z.getLength()-1)).mod(z);W[O]=Array(z.getLength()-1);for(z=0;z<W[O].length;z++)J=z+Q.getLength()-W[O].length,W[O][z]=J>=0?Q.get(J):0}for(z=Y=0;z<p.length;z++)Y+=p[z].totalCount;Y=Array(Y);for(z=D=0;z<L;z++)for(O=0;O<p.length;O++)z<V[O].length&&(Y[D++]=V[O][z]);for(z=0;z<I;z++)for(O=0;O<p.length;O++)z<W[O].length&&(Y[D++]=W[O][z]);S.dataCache=Y}p=S.dataCache;Y=-1;L=S.moduleCount-1;I=7;V=
0;for(W=S.moduleCount-1;W>0;W-=2)for(W==6&&W--;;){for(O=0;O<2;O++)S.modules[L][W-O]==null&&(D=!1,V<p.length&&(D=(p[V]>>>I&1)==1),mNi(U,L,W-O)&&(D=!D),S.modules[L][W-O]=D,I--,I==-1&&(V++,I=7));L+=Y;if(L<0||S.moduleCount<=L){L-=Y;Y=-Y;break}}},lSd=function(S,p,U){for(var Y=-1;Y<=7;Y++)if(!(p+Y<=-1||S.moduleCount<=p+Y))for(var L=-1;L<=7;L++)U+L<=-1||S.moduleCount<=U+L||(S.modules[p+Y][U+L]=0<=Y&&Y<=6&&(L==0||L==6)||0<=L&&L<=6&&(Y==0||Y==6)||2<=Y&&Y<=4&&2<=L&&L<=4?!0:!1)},tPX=function(S){for(var p=0,
U=0,Y=0;Y<8;Y++){AU5(S,!0,Y);
var L=S;for(var I=L.moduleCount,V=0,W=0;W<I;W++)for(var O=0;O<I;O++){for(var D=0,z=L.isDark(W,O),Q=-1;Q<=1;Q++)if(!(W+Q<0||I<=W+Q))for(var J=-1;J<=1;J++)O+J<0||I<=O+J||(Q!=0||J!=0)&&z==L.isDark(W+Q,O+J)&&D++;D>5&&(V+=3+D-5)}for(W=0;W<I-1;W++)for(O=0;O<I-1;O++)if(D=0,L.isDark(W,O)&&D++,L.isDark(W+1,O)&&D++,L.isDark(W,O+1)&&D++,L.isDark(W+1,O+1)&&D++,D==0||D==4)V+=3;for(W=0;W<I;W++)for(O=0;O<I-6;O++)L.isDark(W,O)&&!L.isDark(W,O+1)&&L.isDark(W,O+2)&&L.isDark(W,O+3)&&L.isDark(W,O+4)&&!L.isDark(W,O+5)&&
L.isDark(W,O+6)&&(V+=40);for(O=0;O<I;O++)for(W=0;W<I-6;W++)L.isDark(W,O)&&!L.isDark(W+1,O)&&L.isDark(W+2,O)&&L.isDark(W+3,O)&&L.isDark(W+4,O)&&!L.isDark(W+5,O)&&L.isDark(W+6,O)&&(V+=40);for(O=D=0;O<I;O++)for(W=0;W<I;W++)L.isDark(W,O)&&D++;L=V+=Math.abs(100*D/I/I-50)/5*10;if(Y==0||p>L)p=L,U=Y}return U},aSA=[[],
[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]],DZ=function(S){for(var p=0;S!=0;)p++,S>>>=1;return p},mNi=function(S,p,U){switch(S){case 0:return(p+U)%2==0;
case 1:return p%2==0;case 2:return U%3==0;case 3:return(p+U)%3==0;case 4:return(Math.floor(p/2)+Math.floor(U/3))%2==0;case 5:return p*U%2+p*U%3==0;case 6:return(p*U%2+p*U%3)%2==0;case 7:return(p*U%3+(p+U)%2)%2==0;default:throw Error("nk`"+S);}},CRd=function(S,p){if(1<=p&&p<10)switch(S){case 1:return 10;
case 2:return 9;case 4:return 8;case 8:return 8;default:throw Error("ok`"+S);}else if(p<27)switch(S){case 1:return 12;case 2:return 11;case 4:return 16;case 8:return 10;default:throw Error("ok`"+S);}else if(p<41)switch(S){case 1:return 14;case 2:return 13;case 4:return 16;case 8:return 12;default:throw Error("ok`"+S);}else throw Error("pk`"+p);},z$=function(S){if(S<1)throw Error("qk`"+S);
return oxn[S]},Exd=function(S){for(;S<0;)S+=255;
for(;S>=256;)S-=255;return QQ[S]},QQ=Array(256),oxn=Array(256),vxJ=0;vxJ<8;vxJ++)QQ[vxJ]=1<<vxJ;
for(var nB=8;nB<256;nB++)QQ[nB]=QQ[nB-4]^QQ[nB-5]^QQ[nB-6]^QQ[nB-8];for(var $NL=0;$NL<255;$NL++)oxn[QQ[$NL]]=$NL;Ga.prototype.get=function(S){return this.num[S]};
Ga.prototype.getLength=function(){return this.num.length};
Ga.prototype.multiply=function(S){for(var p=Array(this.getLength()+S.getLength()-1),U=0;U<this.getLength();U++)for(var Y=0;Y<S.getLength();Y++)p[U+Y]^=Exd(z$(this.get(U))+z$(S.get(Y)));return new Ga(p,0)};
Ga.prototype.mod=function(S){if(this.getLength()-S.getLength()<0)return this;for(var p=z$(this.get(0))-z$(S.get(0)),U=Array(this.getLength()),Y=0;Y<this.getLength();Y++)U[Y]=this.get(Y);for(Y=0;Y<S.getLength();Y++)U[Y]^=Exd(z$(S.get(Y))+p);return(new Ga(U,0)).mod(S)};
var iWo=[[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]],fSs=function(S,p){switch(p){case 1:return iWo[(S-1)*4];case 0:return iWo[(S-1)*4+1];case 3:return iWo[(S-1)*4+2];case 2:return iWo[(S-1)*4+3]}};
$Ws.prototype.get=function(S){return(this.buffer[Math.floor(S/8)]>>>7-S%8&1)==1};
$Ws.prototype.put=function(S,p){for(var U=0;U<p;U++)xNE(this,(S>>>p-U-1&1)==1)};
var xNE=function(S,p){var U=Math.floor(S.length/8);S.buffer.length<=U&&S.buffer.push(0);p&&(S.buffer[U]|=128>>>S.length%8);S.length++},Hu=[[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]],BKT=function(){var S=function(p,U){this.JSC$17355__el=p;this.JSC$17355__htOption=U};
S.prototype.draw=function(p){function U(z,Q){z=document.createElementNS("http://www.w3.org/2000/svg",z);for(var J in Q)Q.hasOwnProperty(J)&&(J==="href"?_.NcA(z,Q[J]):_.xq([_.Sb(PRq),_.Sb(ZWo),_.Sb(swY),_.Sb(eBE),_.Sb(gxE),_.Sb(u8q),_.Sb(w3Y)],z,J,Q[J]));return z}
var Y=this.JSC$17355__htOption,L=this.JSC$17355__el,I=p.moduleCount;this.clear();var V=U("svg",{viewBox:"0 0 "+String(I)+" "+String(I),width:"100%",height:"100%",fill:Y.colorLight,"xmlns:xlink":"http://www.w3.org/1999/xlink"});L.appendChild(V);V.appendChild(U("rect",{fill:Y.colorLight,width:"100%",height:"100%"}));V.appendChild(U("rect",{fill:Y.colorDark,width:"1",height:"1",id:"template"}));for(var W=0;W<I;W++)for(var O=0;O<I;O++)if(p.isDark(W,O)){var D=U("use",{x:String(W),y:String(O),href:"#template"});
V.appendChild(D)}};
S.prototype.clear=function(){for(;this.JSC$17355__el.hasChildNodes();)this.JSC$17355__el.removeChild(this.JSC$17355__el.lastChild)};
return S}(),NKJ=document.documentElement.tagName.toLowerCase()==="svg"?BKT:typeof CanvasRenderingContext2D!="undefined"?function(){var S=function(p,U){this._bIsPainted=!1;
ivs();this.JSC$17355__htOption=U;this._elCanvas=document.createElement("canvas");this._elCanvas.width=U.width;this._elCanvas.height=U.height;p.appendChild(this._elCanvas);this.JSC$17355__el=p;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$17355__el.appendChild(this._elImage);this._bSupportDataURI=null};
S.prototype._onMakeImage=function(){var p=this._elCanvas.toDataURL("image/png");this._elImage.src=p;this._elImage.style.display="block";this._elCanvas.style.display="none"};
S.prototype._safeSetDataURI=function(p,U){var Y=this;Y._fFail=U;Y._fSuccess=p;Y._bSupportDataURI===null?(p=_.JY("IMG"),U=function(){Y._bSupportDataURI=!1;Y._fFail&&Y._fFail.call(Y)},p.onabort=U,p.onerror=U,p.onload=function(){Y._bSupportDataURI=!0;
Y._fSuccess&&Y._fSuccess.call(Y)},p.src="data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAHElEQVQI12P4//8/w38GIAXDIBKE0DHxgljNBAAO9TXL0Y4OHwAAAABJRU5ErkJggg=="):Y._bSupportDataURI===!0&&Y._fSuccess?Y._fSuccess.call(Y):Y._bSupportDataURI===!1&&Y._fFail&&Y._fFail.call(Y)};
S.prototype.draw=function(p){var U=this._oContext,Y=this.JSC$17355__htOption,L=p.moduleCount,I=Y.width/L,V=Y.height/L,W=Math.round(I),O=Math.round(V);this._elImage.style.display="none";this.clear();for(var D=0;D<L;D++)for(var z=0;z<L;z++){var Q=p.isDark(D,z),J=z*I,K=D*V;U.strokeStyle=Q?Y.colorDark:Y.colorLight;U.lineWidth=1;U.fillStyle=Q?Y.colorDark:Y.colorLight;U.fillRect(J,K,I,V);U.strokeRect(Math.floor(J)+.5,Math.floor(K)+.5,W,O);U.strokeRect(Math.ceil(J)-.5,Math.ceil(K)-.5,W,O)}this._bIsPainted=
!0};
S.prototype.makeImage=function(){this._bIsPainted&&this._safeSetDataURI(this._onMakeImage,function(){})};
S.prototype.clear=function(){this._oContext.clearRect(0,0,this._elCanvas.width,this._elCanvas.height);this._bIsPainted=!1};
S.prototype.round=function(p){return p?Math.floor(p*1E3)/1E3:p};
return S}():function(){var S=function(p,U){this.JSC$17355__el=p;
this.JSC$17355__htOption=U};
S.prototype.draw=function(p){for(var U=this.JSC$17355__htOption,Y=this.JSC$17355__el,L=p.moduleCount,I=Math.floor(U.width/L),V=Math.floor(U.height/L),W=['<table style="border:0;border-collapse:collapse;">'],O=0;O<L;O++){W.push("<tr>");for(var D=0;D<L;D++)W.push('<td style="border:0;border-collapse:collapse;padding:0;margin:0;width:'+I+"px;height:"+V+"px;background-color:"+(p.isDark(O,D)?U.colorDark:U.colorLight)+';"></td>');W.push("</tr>")}W.push("</table>");p=W.join("");p=_.dGc(_.TNP,p);_.Ch(Y,p);
p=Y.childNodes[0];L=(U.width-p.offsetWidth)/2;I=(U.height-p.offsetHeight)/2;L>0&&I>0&&(p.style.margin=I+"px "+L+"px")};
S.prototype.clear=function(){this.JSC$17355__el.textContent=""};
return S}();
cUq.prototype.makeImage=function(){typeof this._oDrawing.makeImage=="function"&&(!this.JSC$17358__android||this.JSC$17358__android>=3)&&this._oDrawing.makeImage()};
cUq.prototype.clear=function(){this._oDrawing.clear()};
_.UX.QRCode=cUq;var NMX={cellSize:16,cellStyle:2,relativeCircleSize:.9375,color:"white",backgroundColor:"black",autoClear:!0,logoPadding:1,padding:0,borderRadius:0};var JG=function(){};
JG.prototype.stringify=function(S){return _.UX.JSON.stringify(S,void 0)};
JG.prototype.parse=function(S){return _.UX.JSON.parse(S,void 0)};var BMP=function(){_.Iw.call(this,"z")};
_.q_(BMP,_.Iw);var qDo=function(){_.Iw.call(this,"y")};
_.q_(qDo,_.Iw);var A2i=null,tls=function(){return A2i=A2i||new _.OD},c2X=function(S){_.Iw.call(this,"serverreachability",S)};
_.q_(c2X,_.Iw);var yQ=function(S){var p=tls();p.dispatchEvent(new c2X(p,S))},SB5=function(S){_.Iw.call(this,"statevent",S)};
_.q_(SB5,_.Iw);var KB=function(S){var p=tls();p.dispatchEvent(new SB5(p,S))},pFd=function(S,p,U,Y){_.Iw.call(this,"timingevent",S);
this.size=p;this.rtt=U;this.retries=Y};
_.q_(pFd,_.Iw);var UCE=function(S,p,U){var Y=tls();Y.dispatchEvent(new pFd(Y,S,p,U))},b_=function(S,p){if(typeof S!=="function")throw Error("uk");
return _.UX.setTimeout(function(){S()},p)};var jB=function(){this.redactEnabled_=!0};
jB.prototype.disableRedact=function(){this.redactEnabled_=!1};
var YBY=function(S,p,U,Y,L,I){S.info(function(){if(S.redactEnabled_)if(I){var V="";for(var W=I.split("&"),O=0;O<W.length;O++){var D=W[O].split("=");if(D.length>1){var z=D[0];D=D[1];var Q=z.split("_");V=Q.length>=2&&Q[1]=="type"?V+(z+"="+D+"&"):V+(z+"=redacted&")}}}else V=null;else V=I;return"XMLHTTP REQ ("+Y+") [attempt "+L+"]: "+p+"\n"+U+"\n"+V})},LnY=function(S,p,U,Y,L,I,V){S.info(function(){return"XMLHTTP RESP ("+Y+") [ attempt "+L+"]: "+p+"\n"+U+"\n"+I+" "+V})},rh=function(S,p,U,Y){S.info(function(){return"XMLHTTP TEXT ("+
p+"): "+MYA(S,U)+(Y?" "+Y:"")})},I75=function(S,p){S.info(function(){return"TIMEOUT: "+p})};
jB.prototype.debug=function(){};
jB.prototype.info=function(){};
jB.prototype.warning=function(){};
var MYA=function(S,p){if(!S.redactEnabled_)return p;if(!p)return null;try{var U=JSON.parse(p);if(U)for(var Y=0;Y<U.length;Y++)if(Array.isArray(U[Y])){var L=U[Y];if(!(L.length<2)){var I=L[1];if(Array.isArray(I)&&!(I.length<1)){var V=I[0];if(V!="noop"&&V!="stop"&&V!="close")for(var W=1;W<I.length;W++)I[W]=""}}}return(0,_.J2)(U)}catch(O){return S.debug("Exception parsing expected JS array - probably was not JS"),p}};var G$=function(S,p,U,Y,L){this.JSC$17380_channel_=S;this.JSC$17380_channelDebug_=p;this.sid_=U;this.JSC$17380_rid_=Y;this.JSC$17380_retryId_=L||1;this.JSC$17380_eventHandler_=new _.cr(this);this.timeout_=45E3;this.JSC$17380_extraHeaders_=null;this.JSC$17380_successful_=!1;this.JSC$17380_postData_=this.JSC$17380_requestUri_=this.JSC$17380_baseUri_=this.JSC$17380_type_=this.JSC$17380_requestStartTime_=this.JSC$17380_watchDogTimeoutTime_=this.JSC$17380_watchDogTimerId_=null;this.JSC$17380_pendingMessages_=
[];this.JSC$17380_xmlHttp_=null;this.JSC$17380_xmlHttpChunkStart_=0;this.JSC$17380_lastError_=this.JSC$17380_verb_=null;this.JSC$17380_lastStatusCode_=-1;this.JSC$17380_cancelled_=!1;this.JSC$17380_readyStateChangeThrottleMs_=0;this.JSC$17380_readyStateChangeThrottle_=null;this.firstByteReceived_=this.initialResponseDecoded_=this.decodeInitialResponse_=this.decodeChunks_=!1;this.fetchResponseState_=new dCT},dCT=function(){this.textDecoder=null;
this.responseBuffer="";this.responseArrivedForFetch=!1},VYJ=function(S,p){switch(S){case 0:return"Non-200 return code ("+p+")";
case 1:return"XMLHTTP failure (no data)";case 2:return"HttpConnection timeout";default:return"Unknown error"}},Tod={},Wnt={};
G$.prototype.setTimeout=function(S){this.timeout_=S};
var k9d=function(S,p,U){S.JSC$17380_type_=1;S.JSC$17380_baseUri_=_.A2(p.clone());S.JSC$17380_postData_=U;S.decodeChunks_=!0;OX5(S,null)},OX5=function(S,p){S.JSC$17380_requestStartTime_=Date.now();
HX5(S);S.JSC$17380_requestUri_=S.JSC$17380_baseUri_.clone();IN(S.JSC$17380_requestUri_,"t",S.JSC$17380_retryId_);S.JSC$17380_xmlHttpChunkStart_=0;var U=S.JSC$17380_channel_.JSC$17399_supportsCrossDomainXhrs_;S.fetchResponseState_=new dCT;S.JSC$17380_xmlHttp_=DCn(S.JSC$17380_channel_,U?p:null,!S.JSC$17380_postData_);S.JSC$17380_readyStateChangeThrottleMs_>0&&(S.JSC$17380_readyStateChangeThrottle_=new _.NB((0,_.RW)(S.JSC$17384_xmlHttpHandler_,S,S.JSC$17380_xmlHttp_),S.JSC$17380_readyStateChangeThrottleMs_));
S.JSC$17380_eventHandler_.listen(S.JSC$17380_xmlHttp_,"readystatechange",S.JSC$17384_readyStateChangeHandler_);p=S.JSC$17380_extraHeaders_?_.h9.clone(S.JSC$17380_extraHeaders_):{};S.JSC$17380_postData_?(S.JSC$17380_verb_||(S.JSC$17380_verb_="POST"),p["Content-Type"]="application/x-www-form-urlencoded",S.JSC$17380_xmlHttp_.send(S.JSC$17380_requestUri_,S.JSC$17380_verb_,S.JSC$17380_postData_,p)):(S.JSC$17380_verb_="GET",S.JSC$17380_xmlHttp_.send(S.JSC$17380_requestUri_,S.JSC$17380_verb_,null,p));yQ(1);
YBY(S.JSC$17380_channelDebug_,S.JSC$17380_verb_,S.JSC$17380_requestUri_,S.JSC$17380_rid_,S.JSC$17380_retryId_,S.JSC$17380_postData_)};
G$.prototype.JSC$17384_readyStateChangeHandler_=function(S){S=S.target;var p=this.JSC$17380_readyStateChangeThrottle_;p&&_.KW(S)==3?(this.JSC$17380_channelDebug_.debug("Throttling readystatechange."),p.fire()):this.JSC$17384_xmlHttpHandler_(S)};
G$.prototype.JSC$17384_xmlHttpHandler_=function(S){try{S==this.JSC$17380_xmlHttp_?zLP(this):this.JSC$17380_channelDebug_.warning("Called back with an unexpected xmlhttp")}catch(p){this.JSC$17380_channelDebug_.debug("Failed call to OnXmlHttpReadyStateChanged_"),QEt(this)}finally{}};
var zLP=function(S){var p=_.KW(S.JSC$17380_xmlHttp_),U=S.JSC$17380_xmlHttp_.JSC$7805_lastErrorCode_,Y=S.JSC$17380_xmlHttp_.getStatus();if(!(p<3||p==3&&!QEt(S))){S.JSC$17380_cancelled_||p!=4||U==7||(U==8||Y<=0?yQ(3):yQ(2));ngn(S);var L=S.JSC$17380_xmlHttp_.getStatus();S.JSC$17380_lastStatusCode_=L;U=JsL(S);QEt(S)||S.JSC$17380_channelDebug_.debug(function(){return"No response text for uri "+S.JSC$17380_requestUri_+" status "+L});
S.JSC$17380_successful_=L==200;LnY(S.JSC$17380_channelDebug_,S.JSC$17380_verb_,S.JSC$17380_requestUri_,S.JSC$17380_rid_,S.JSC$17380_retryId_,p,L);if(S.JSC$17380_successful_){if(S.decodeInitialResponse_&&!S.initialResponseDecoded_)if(Y=ysJ(S))rh(S.JSC$17380_channelDebug_,S.JSC$17380_rid_,Y,"Initial handshake response via X-HTTP-Initial-Response"),S.initialResponseDecoded_=!0,KnE(S,Y);else{S.JSC$17380_successful_=!1;S.JSC$17380_lastError_=3;KB(12);S.JSC$17380_channelDebug_.warning("XMLHTTP Missing X_HTTP_INITIAL_RESPONSE ("+
S.JSC$17380_rid_+")");hG(S);RD(S);return}S.decodeChunks_?bXE(S,p,U):(rh(S.JSC$17380_channelDebug_,S.JSC$17380_rid_,U,null),KnE(S,U));p==4&&hG(S);S.JSC$17380_successful_&&!S.JSC$17380_cancelled_&&(p==4?jEE(S.JSC$17380_channel_,S):(S.JSC$17380_successful_=!1,HX5(S)))}else yBL(S.JSC$17380_xmlHttp_),L==400&&U.indexOf("Unknown SID")>0?(S.JSC$17380_lastError_=3,KB(12),S.JSC$17380_channelDebug_.warning("XMLHTTP Unknown SID ("+S.JSC$17380_rid_+")")):(S.JSC$17380_lastError_=0,KB(13),S.JSC$17380_channelDebug_.warning("XMLHTTP Bad status "+
L+" ("+S.JSC$17380_rid_+")")),hG(S),RD(S)}},ysJ=function(S){return S.JSC$17380_xmlHttp_&&(S=H2(S.JSC$17380_xmlHttp_,"X-HTTP-Initial-Response"))&&!_.dN(S)?S:null},JsL=function(S){if(!rst(S))return S.JSC$17380_xmlHttp_.getResponseText();
var p=S.JSC$17380_xmlHttp_.getResponse();if(p==="")return"";var U="",Y=p.length,L=_.KW(S.JSC$17380_xmlHttp_)==4;if(!S.fetchResponseState_.textDecoder){if(typeof TextDecoder==="undefined")return hG(S),RD(S),"";S.fetchResponseState_.textDecoder=new _.UX.TextDecoder}for(var I=0;I<Y;I++)S.fetchResponseState_.responseArrivedForFetch=!0,U+=S.fetchResponseState_.textDecoder.decode(p[I],{stream:!(L&&I==Y-1)});p.length=0;S.fetchResponseState_.responseBuffer+=U;S.JSC$17380_xmlHttpChunkStart_=0;return S.fetchResponseState_.responseBuffer},
QEt=function(S){return S.JSC$17380_xmlHttp_?S.fetchResponseState_.responseArrivedForFetch?!0:!(!S.JSC$17380_xmlHttp_.getResponseText()&&!S.JSC$17380_xmlHttp_.getResponse()):!1},rst=function(S){return S.JSC$17380_xmlHttp_?S.JSC$17380_verb_=="GET"&&S.JSC$17380_type_!=2&&S.JSC$17380_channel_.usesFetchStreams_:!1},bXE=function(S,p,U){for(var Y=!0,L;!S.JSC$17380_cancelled_&&S.JSC$17380_xmlHttpChunkStart_<U.length;)if(L=G9t(S,U),L==Wnt){p==4&&(S.JSC$17380_lastError_=4,KB(14),Y=!1);
rh(S.JSC$17380_channelDebug_,S.JSC$17380_rid_,null,"[Incomplete Response]");break}else if(L==Tod){S.JSC$17380_lastError_=4;KB(15);rh(S.JSC$17380_channelDebug_,S.JSC$17380_rid_,U,"[Invalid Chunk]");Y=!1;break}else rh(S.JSC$17380_channelDebug_,S.JSC$17380_rid_,L,null),KnE(S,L);rst(S)&&S.JSC$17380_xmlHttpChunkStart_!=0&&(S.fetchResponseState_.responseBuffer=S.fetchResponseState_.responseBuffer.slice(S.JSC$17380_xmlHttpChunkStart_),S.JSC$17380_xmlHttpChunkStart_=0);p!=4||U.length!=0||S.fetchResponseState_.responseArrivedForFetch||
(S.JSC$17380_lastError_=1,KB(16),Y=!1);S.JSC$17380_successful_=S.JSC$17380_successful_&&Y;Y?U.length>0&&!S.firstByteReceived_&&(S.firstByteReceived_=!0,p=S.JSC$17380_channel_,p.JSC$17399_backChannelRequest_==S&&p.detectBufferingProxy_&&!p.bpDetectionDone_&&(p.JSC$17399_channelDebug_.info("Great, no buffering proxy detected. Bytes received: "+U.length),hLP(p),p.bpDetectionDone_=!0,KB(11))):(rh(S.JSC$17380_channelDebug_,S.JSC$17380_rid_,U,"[Invalid Chunked Response]"),hG(S),RD(S))},G9t=function(S,p){var U=
S.JSC$17380_xmlHttpChunkStart_,Y=p.indexOf("\n",U);
if(Y==-1)return Wnt;U=Number(p.substring(U,Y));if(isNaN(U))return Tod;Y+=1;if(Y+U>p.length)return Wnt;p=p.slice(Y,Y+U);S.JSC$17380_xmlHttpChunkStart_=Y+U;return p};
G$.prototype.cancel=function(){this.JSC$17380_cancelled_=!0;hG(this)};
var HX5=function(S){S.JSC$17380_watchDogTimeoutTime_=Date.now()+S.timeout_;RLE(S,S.timeout_)},RLE=function(S,p){if(S.JSC$17380_watchDogTimerId_!=null)throw Error("vk");
S.JSC$17380_watchDogTimerId_=b_((0,_.RW)(S.JSC$17384_onWatchDogTimeout_,S),p)},ngn=function(S){S.JSC$17380_watchDogTimerId_&&(_.UX.clearTimeout(S.JSC$17380_watchDogTimerId_),S.JSC$17380_watchDogTimerId_=null)};
G$.prototype.JSC$17384_onWatchDogTimeout_=function(){this.JSC$17380_watchDogTimerId_=null;var S=Date.now();S-this.JSC$17380_watchDogTimeoutTime_>=0?(I75(this.JSC$17380_channelDebug_,this.JSC$17380_requestUri_),this.JSC$17380_type_!=2&&(yQ(3),KB(17)),hG(this),this.JSC$17380_lastError_=2,RD(this)):(this.JSC$17380_channelDebug_.warning("WatchDog timer called too early"),RLE(this,this.JSC$17380_watchDogTimeoutTime_-S))};
var RD=function(S){S.JSC$17380_channel_.state_==0||S.JSC$17380_cancelled_||jEE(S.JSC$17380_channel_,S)},hG=function(S){ngn(S);
_.t9(S.JSC$17380_readyStateChangeThrottle_);S.JSC$17380_readyStateChangeThrottle_=null;S.JSC$17380_eventHandler_.removeAll();if(S.JSC$17380_xmlHttp_){var p=S.JSC$17380_xmlHttp_;S.JSC$17380_xmlHttp_=null;p.abort();p.dispose()}};
G$.prototype.getLastError=function(){return this.JSC$17380_lastError_};
var KnE=function(S,p){try{var U=S.JSC$17380_channel_;if(U.state_!=0&&(U.JSC$17399_backChannelRequest_==S||FnP(U.forwardChannelRequestPool_,S)))if(!S.initialResponseDecoded_&&FnP(U.forwardChannelRequestPool_,S)&&U.state_==3){try{var Y=U.wireCodec_.JSC$17394_parser_.parse(p)}catch(W){Y=null}if(Array.isArray(Y)&&Y.length==3){p=Y;if(p[0]==0)a:if(U.JSC$17399_channelDebug_.debug("Server claims our backchannel is missing."),U.JSC$17399_backChannelTimerId_)U.JSC$17399_channelDebug_.debug("But we are currently starting the request.");
else{if(U.JSC$17399_backChannelRequest_)if(U.JSC$17399_backChannelRequest_.JSC$17380_requestStartTime_+3E3<S.JSC$17380_requestStartTime_)XFE(U),PhL(U);else break a;else U.JSC$17399_channelDebug_.warning("We do not have a BackChannel established");ZXn(U);KB(18)}else{U.JSC$17399_lastPostResponseArrayId_=p[1];var L=U.JSC$17399_lastPostResponseArrayId_-U.JSC$17399_lastArrayId_;if(0<L){var I=p[2];U.JSC$17399_channelDebug_.debug(I+" bytes (in "+L+" arrays) are outstanding on the BackChannel");I<37500&&
U.enableStreaming_&&U.JSC$17399_backChannelRetryCount_==0&&!U.JSC$17399_deadBackChannelTimerId_&&(U.JSC$17399_deadBackChannelTimerId_=b_((0,_.RW)(U.JSC$17401_onBackChannelDead_,U),6E3))}}if(sEP(U.forwardChannelRequestPool_)<=1&&U.forwardChannelFlushedCallback_){try{U.forwardChannelFlushedCallback_()}catch(W){}U.forwardChannelFlushedCallback_=void 0}}else U.JSC$17399_channelDebug_.debug("Bad POST response data returned"),Fk(U,11)}else if((S.initialResponseDecoded_||U.JSC$17399_backChannelRequest_==
S)&&XFE(U),!_.dN(p)){var V=U.wireCodec_.JSC$17394_parser_.parse(p);U.onInput_(V,S)}yQ(4)}catch(W){}};var eLn=function(S,p){this.JSC$17387_mapId=S;this.map=p;this.context=null};var ggs=function(S){this.maxPoolSizeConfigured_=S||10;_.UX.PerformanceNavigationTiming?(S=_.UX.performance.getEntriesByType("navigation"),S=S.length>0&&(S[0].nextHopProtocol=="hq"||S[0].nextHopProtocol=="h2")):S=!!(_.UX.chrome&&_.UX.chrome.loadTimes&&_.UX.chrome.loadTimes()&&_.UX.chrome.loadTimes().wasFetchedViaSpdy);this.JSC$17390_maxSize_=S?this.maxPoolSizeConfigured_:1;this.requestPool_=null;this.JSC$17390_maxSize_>1&&(this.requestPool_=new Set);this.JSC$17390_request_=null;this.JSC$17390_pendingMessages_=
[]},ulT=function(S){return S.JSC$17390_request_?!0:S.requestPool_?S.requestPool_.size>=S.JSC$17390_maxSize_:!1},sEP=function(S){return S.JSC$17390_request_?1:S.requestPool_?S.requestPool_.size:0},FnP=function(S,p){return S.JSC$17390_request_?S.JSC$17390_request_==p:S.requestPool_?S.requestPool_.has(p):!1},wFP=function(S,p){S.requestPool_?S.requestPool_.add(p):S.JSC$17390_request_=p},l7i=function(S,p){S.JSC$17390_request_&&S.JSC$17390_request_==p?S.JSC$17390_request_=null:S.requestPool_&&S.requestPool_.has(p)&&
S.requestPool_.delete(p)};
ggs.prototype.cancel=function(){this.JSC$17390_pendingMessages_=a7E(this);if(this.JSC$17390_request_)this.JSC$17390_request_.cancel(),this.JSC$17390_request_=null;else if(this.requestPool_&&this.requestPool_.size!==0){for(var S=_.d(this.requestPool_.values()),p=S.next();!p.done;p=S.next())p.value.cancel();this.requestPool_.clear()}};
var a7E=function(S){if(S.JSC$17390_request_!=null)return S.JSC$17390_pendingMessages_.concat(S.JSC$17390_request_.JSC$17380_pendingMessages_);if(S.requestPool_!=null&&S.requestPool_.size!==0){var p=S.JSC$17390_pendingMessages_;S=_.d(S.requestPool_.values());for(var U=S.next();!U.done;U=S.next())p=p.concat(U.value.JSC$17380_pendingMessages_);return p}return _.qG(S.JSC$17390_pendingMessages_)},f7J=function(S,p){S.JSC$17390_pendingMessages_=S.JSC$17390_pendingMessages_.concat(p)};var Chs=function(S,p){var U=new jB;U.debug("TestLoadImage: loading "+S);if(_.UX.Image){var Y=new Image;Y.onload=_.Hd(Xk,U,"TestLoadImage: loaded",!0,p,Y);Y.onerror=_.Hd(Xk,U,"TestLoadImage: error",!1,p,Y);Y.onabort=_.Hd(Xk,U,"TestLoadImage: abort",!1,p,Y);Y.ontimeout=_.Hd(Xk,U,"TestLoadImage: timeout",!1,p,Y);_.UX.setTimeout(function(){if(Y.ontimeout)Y.ontimeout()},1E4);
Y.src=S}else p(!1)},xCJ=function(S,p){var U=new jB,Y=new AbortController,L=setTimeout(function(){Y.abort();
Xk(U,"TestPingServer: timeout",!1,p)},1E4);
fetch(S,{signal:Y.signal}).then(function(I){clearTimeout(L);I.ok?Xk(U,"TestPingServer: ok",!0,p):Xk(U,"TestPingServer: server error",!1,p)}).catch(function(){clearTimeout(L);
Xk(U,"TestPingServer: error",!1,p)})},Xk=function(S,p,U,Y,L){try{S.debug(p),L&&(L.onload=null,L.onerror=null,L.onabort=null,L.ontimeout=null),Y(U)}catch(I){}};var Egq=function(){this.JSC$17394_parser_=new JG},mCY=function(S,p,U){var Y=U||"";
try{_.nEl(S,function(L,I){var V=L;_.pc(L)&&(V=(0,_.J2)(L));p.push(Y+I+"="+encodeURIComponent(V))})}catch(L){throw p.push(Y+"type="+encodeURIComponent("_badmap")),L;
}};var Pu=function(S,p,U){return U&&U.internalChannelParams?U.internalChannelParams[S]||p:p},ZZ=function(S){this.serverVersion_=0;
this.JSC$17399_outgoingMaps_=[];this.JSC$17399_channelDebug_=new jB;this.JSC$17399_hostPrefix_=this.JSC$17399_backChannelUri_=this.JSC$17399_forwardChannelUri_=this.JSC$17399_path_=this.JSC$17399_backChannelRequest_=this.httpSessionId_=this.httpSessionIdParam_=this.JSC$17399_extraParams_=this.httpHeadersOverwriteParam_=this.initHeaders_=this.JSC$17399_extraHeaders_=null;this.JSC$17399_nextMapId_=this.JSC$17399_nextRid_=0;this.JSC$17399_failFast_=Pu("failFast",!1,S);this.enableStreaming_=this.JSC$17399_deadBackChannelTimerId_=
this.JSC$17399_backChannelTimerId_=this.JSC$17399_forwardChannelTimerId_=this.handler_=null;this.allowStreamingMode_=!0;this.errorResponseStatusCode_=this.JSC$17399_lastPostResponseArrayId_=this.JSC$17399_lastArrayId_=-1;this.JSC$17399_backChannelAttemptId_=this.JSC$17399_backChannelRetryCount_=this.JSC$17399_forwardChannelRetryCount_=0;this.JSC$17399_baseRetryDelayMs_=Pu("baseRetryDelayMs",5E3,S);this.JSC$17399_retryDelaySeedMs_=Pu("retryDelaySeedMs",1E4,S);this.JSC$17399_forwardChannelMaxRetries_=
Pu("forwardChannelMaxRetries",2,S);this.JSC$17399_forwardChannelRequestTimeoutMs_=Pu("forwardChannelRequestTimeoutMs",2E4,S);this.JSC$17399_xmlHttpFactory_=S&&S.xmlHttpFactory||void 0;this.networkTestUrl_=S&&S.networkTestUrl||void 0;this.usesFetchStreams_=S&&S.useFetchStreams||!1;this.backChannelRequestTimeoutMs_=void 0;this.JSC$17399_supportsCrossDomainXhrs_=S&&S.supportsCrossDomainXhr||!1;this.sid_="";this.forwardChannelRequestPool_=new ggs(S&&S.concurrentRequestLimit);this.wireCodec_=new Egq;this.fastHandshake_=
S&&S.fastHandshake||!1;this.encodeInitMessageHeaders_=S&&S.encodeInitMessageHeaders||!1;this.fastHandshake_&&this.encodeInitMessageHeaders_&&(this.JSC$17399_channelDebug_.warning("Ignore encodeInitMessageHeaders because fastHandshake is set."),this.encodeInitMessageHeaders_=!1);this.blockingHandshake_=S&&S.blockingHandshake||!1;S&&S.disableRedact&&this.JSC$17399_channelDebug_.disableRedact();S&&S.forceLongPolling&&(this.allowStreamingMode_=!1);this.detectBufferingProxy_=!this.fastHandshake_&&this.allowStreamingMode_&&
S&&S.detectBufferingProxy||!1;this.longPollingTimeout_=void 0;S&&S.longPollingTimeout&&S.longPollingTimeout>0&&(this.longPollingTimeout_=S.longPollingTimeout);this.forwardChannelFlushedCallback_=void 0;this.handshakeRttMs_=0;this.bpDetectionDone_=!1;this.nonAckedMapsAtChannelClose_=this.bpDetectionTimerId_=null};
ZZ.prototype.JSC$17401_channelVersion_=8;ZZ.prototype.state_=1;
ZZ.prototype.connect=function(S,p,U,Y){this.JSC$17399_channelDebug_.debug("connect()");KB(0);this.JSC$17399_path_=S;this.JSC$17399_extraParams_=p||{};U&&Y!==void 0&&(this.JSC$17399_extraParams_.OSID=U,this.JSC$17399_extraParams_.OAID=Y);this.enableStreaming_=this.allowStreamingMode_;this.JSC$17399_channelDebug_.debug("connectChannel_()");S=og5(this,null,this.JSC$17399_path_);this.JSC$17399_channelDebug_.debug("GetForwardChannelUri: "+S);this.JSC$17399_forwardChannelUri_=S;vgt(this)};
ZZ.prototype.disconnect=function(){this.JSC$17399_channelDebug_.debug("disconnect()");$Cd(this);if(this.state_==3){var S=this.JSC$17399_nextRid_++,p=this.JSC$17399_forwardChannelUri_.clone();_.vm(p,"SID",this.sid_);_.vm(p,"RID",S);_.vm(p,"TYPE","terminate");su(this,p);S=new G$(this,this.JSC$17399_channelDebug_,this.sid_,S);S.JSC$17380_type_=2;S.JSC$17380_baseUri_=_.A2(p.clone());p=!1;if(_.UX.navigator&&_.UX.navigator.sendBeacon)try{p=_.UX.navigator.sendBeacon(S.JSC$17380_baseUri_.toString(),"")}catch(U){}!p&&
_.UX.Image&&((new Image).src=S.JSC$17380_baseUri_,p=!0);p||(S.JSC$17380_xmlHttp_=DCn(S.JSC$17380_channel_,null),S.JSC$17380_xmlHttp_.send(S.JSC$17380_baseUri_));S.JSC$17380_requestStartTime_=Date.now();HX5(S)}iXo(this)};
var PhL=function(S){S.JSC$17399_backChannelRequest_&&(hLP(S),S.JSC$17399_backChannelRequest_.cancel(),S.JSC$17399_backChannelRequest_=null)},$Cd=function(S){PhL(S);
S.JSC$17399_backChannelTimerId_&&(_.UX.clearTimeout(S.JSC$17399_backChannelTimerId_),S.JSC$17399_backChannelTimerId_=null);XFE(S);S.forwardChannelRequestPool_.cancel();S.JSC$17399_forwardChannelTimerId_&&(typeof S.JSC$17399_forwardChannelTimerId_==="number"&&_.UX.clearTimeout(S.JSC$17399_forwardChannelTimerId_),S.JSC$17399_forwardChannelTimerId_=null)};
ZZ.prototype.getState=function(){return this.state_};
var vgt=function(S){ulT(S.forwardChannelRequestPool_)||S.JSC$17399_forwardChannelTimerId_||(S.JSC$17399_forwardChannelTimerId_=!0,_.H3(S.JSC$17401_onStartForwardChannelTimer_,S),S.JSC$17399_forwardChannelRetryCount_=0)},BoE=function(S,p){if(sEP(S.forwardChannelRequestPool_)>=S.forwardChannelRequestPool_.JSC$17390_maxSize_-(S.JSC$17399_forwardChannelTimerId_?1:0))return!1;
if(S.JSC$17399_forwardChannelTimerId_)return S.JSC$17399_channelDebug_.debug("Use the retry request that is already scheduled."),S.JSC$17399_outgoingMaps_=p.JSC$17380_pendingMessages_.concat(S.JSC$17399_outgoingMaps_),!0;if(S.state_==1||S.state_==2||S.JSC$17399_forwardChannelRetryCount_>=(S.JSC$17399_failFast_?0:S.JSC$17399_forwardChannelMaxRetries_))return!1;S.JSC$17399_channelDebug_.debug("Going to retry POST");S.JSC$17399_forwardChannelTimerId_=b_((0,_.RW)(S.JSC$17401_onStartForwardChannelTimer_,
S,p),NoT(S,S.JSC$17399_forwardChannelRetryCount_));S.JSC$17399_forwardChannelRetryCount_++;return!0};
ZZ.prototype.JSC$17401_onStartForwardChannelTimer_=function(S){if(this.JSC$17399_forwardChannelTimerId_)if(this.JSC$17399_forwardChannelTimerId_=null,this.JSC$17399_channelDebug_.debug("startForwardChannel_"),this.state_==1){if(!S){this.JSC$17399_channelDebug_.debug("open_()");this.JSC$17399_nextRid_=Math.floor(Math.random()*1E5);S=this.JSC$17399_nextRid_++;var p=new G$(this,this.JSC$17399_channelDebug_,"",S),U=this.JSC$17399_extraHeaders_;this.initHeaders_&&(U?(U=_.h9.clone(U),_.h9.extend(U,this.initHeaders_)):
U=this.initHeaders_);this.httpHeadersOverwriteParam_!==null||this.encodeInitMessageHeaders_||(p.JSC$17380_extraHeaders_=U,U=null);var Y;if(this.fastHandshake_)a:{for(var L=Y=0;L<this.JSC$17399_outgoingMaps_.length;L++){b:{var I=this.JSC$17399_outgoingMaps_[L];if("__data__"in I.map&&(I=I.map.__data__,typeof I==="string")){I=I.length;break b}I=void 0}if(I===void 0)break;Y+=I;if(Y>4096){Y=L;break a}if(Y===4096||L===this.JSC$17399_outgoingMaps_.length-1){Y=L+1;break a}}Y=1E3}else Y=1E3;Y=qBd(this,p,Y);
L=this.JSC$17399_forwardChannelUri_.clone();_.vm(L,"RID",S);_.vm(L,"CVER",22);this.httpSessionIdParam_&&_.vm(L,"X-HTTP-Session-Id",this.httpSessionIdParam_);su(this,L);U&&(this.encodeInitMessageHeaders_?Y="headers="+_.CU(y7d(U))+"&"+Y:this.httpHeadersOverwriteParam_&&Kh5(L,this.httpHeadersOverwriteParam_,U));wFP(this.forwardChannelRequestPool_,p);this.blockingHandshake_&&_.vm(L,"TYPE","init");this.fastHandshake_?(_.vm(L,"$req",Y),_.vm(L,"SID","null"),p.decodeInitialResponse_=!0,k9d(p,L,null)):k9d(p,
L,Y);this.state_=2}}else this.state_==3&&(S?AsX(this,S):this.JSC$17399_outgoingMaps_.length==0?this.JSC$17399_channelDebug_.debug("startForwardChannel_ returned: nothing to send"):ulT(this.forwardChannelRequestPool_)||(AsX(this),this.JSC$17399_channelDebug_.debug("startForwardChannel_ finished, sent request")))};
var AsX=function(S,p){var U;p?U=p.JSC$17380_rid_:U=S.JSC$17399_nextRid_++;var Y=S.JSC$17399_forwardChannelUri_.clone();_.vm(Y,"SID",S.sid_);_.vm(Y,"RID",U);_.vm(Y,"AID",S.JSC$17399_lastArrayId_);su(S,Y);S.httpHeadersOverwriteParam_&&S.JSC$17399_extraHeaders_&&Kh5(Y,S.httpHeadersOverwriteParam_,S.JSC$17399_extraHeaders_);U=new G$(S,S.JSC$17399_channelDebug_,S.sid_,U,S.JSC$17399_forwardChannelRetryCount_+1);S.httpHeadersOverwriteParam_===null&&(U.JSC$17380_extraHeaders_=S.JSC$17399_extraHeaders_);p&&
(S.JSC$17399_outgoingMaps_=p.JSC$17380_pendingMessages_.concat(S.JSC$17399_outgoingMaps_));p=qBd(S,U,1E3);U.setTimeout(Math.round(S.JSC$17399_forwardChannelRequestTimeoutMs_*.5)+Math.round(S.JSC$17399_forwardChannelRequestTimeoutMs_*.5*Math.random()));wFP(S.forwardChannelRequestPool_,U);k9d(U,Y,p)},su=function(S,p){S.JSC$17399_extraParams_&&_.h9.forEach(S.JSC$17399_extraParams_,function(U,Y){_.vm(p,Y,U)});
S.handler_&&_.nEl({},function(U,Y){_.vm(p,Y,U)})},qBd=function(S,p,U){U=Math.min(S.JSC$17399_outgoingMaps_.length,U);
var Y=S.handler_?(0,_.RW)(S.handler_.JSC$17405_badMapError,S.handler_,S):null;a:{for(var L=S.JSC$17399_outgoingMaps_,I=-1;;){var V=["count="+U];I==-1?U>0?(I=L[0].JSC$17387_mapId,V.push("ofs="+I)):I=0:V.push("ofs="+I);for(var W=!0,O=0;O<U;O++){var D=L[O].JSC$17387_mapId,z=L[O].map;D-=I;if(D<0)I=Math.max(0,L[O].JSC$17387_mapId-100),W=!1;else try{mCY(z,V,"req"+D+"_")}catch(Q){Y&&Y(z)}}if(W){Y=V.join("&");break a}}Y=void 0}S=S.JSC$17399_outgoingMaps_.splice(0,U);p.JSC$17380_pendingMessages_=S;return Y},
tYd=function(S){S.JSC$17399_backChannelRequest_||S.JSC$17399_backChannelTimerId_||(S.JSC$17399_backChannelAttemptId_=1,_.H3(S.JSC$17401_onStartBackChannelTimer_,S),S.JSC$17399_backChannelRetryCount_=0)},ZXn=function(S){if(S.JSC$17399_backChannelRequest_||S.JSC$17399_backChannelTimerId_||S.JSC$17399_backChannelRetryCount_>=3)return!1;
S.JSC$17399_channelDebug_.debug("Going to retry GET");S.JSC$17399_backChannelAttemptId_++;S.JSC$17399_backChannelTimerId_=b_((0,_.RW)(S.JSC$17401_onStartBackChannelTimer_,S),NoT(S,S.JSC$17399_backChannelRetryCount_));S.JSC$17399_backChannelRetryCount_++;return!0};
ZZ.prototype.JSC$17401_onStartBackChannelTimer_=function(){this.JSC$17399_backChannelTimerId_=null;csi(this);if(this.detectBufferingProxy_&&!this.bpDetectionDone_)if(this.JSC$17399_backChannelRequest_==null||this.handshakeRttMs_<=0)this.JSC$17399_channelDebug_.warning("Skip bpDetectionTimerId_ "+this.JSC$17399_backChannelRequest_+" "+this.handshakeRttMs_);else{var S=2*this.handshakeRttMs_;this.JSC$17399_channelDebug_.info("BP detection timer enabled: "+S);this.bpDetectionTimerId_=b_((0,_.RW)(this.onBpDetectionTimer_,
this),S)}};
ZZ.prototype.onBpDetectionTimer_=function(){if(this.bpDetectionTimerId_){this.bpDetectionTimerId_=null;this.JSC$17399_channelDebug_.info("BP detection timeout reached.");if(this.JSC$17399_backChannelRequest_.JSC$17380_xmlHttp_!=null){var S=this.JSC$17399_backChannelRequest_.JSC$17380_xmlHttp_.getResponseText();S&&this.JSC$17399_channelDebug_.warning("Timer should have been cancelled : "+S)}this.JSC$17399_channelDebug_.info("Buffering proxy detected and switch to long-polling!");this.enableStreaming_=
!1;this.bpDetectionDone_=!0;KB(10);PhL(this);csi(this)}else this.JSC$17399_channelDebug_.warning("Invalid operation.")};
var hLP=function(S){S.bpDetectionTimerId_!=null&&(S.JSC$17399_channelDebug_.debug("Cancel the BP detection timer."),_.UX.clearTimeout(S.bpDetectionTimerId_),S.bpDetectionTimerId_=null)},csi=function(S){S.JSC$17399_channelDebug_.debug("Creating new HttpRequest");
S.JSC$17399_backChannelRequest_=new G$(S,S.JSC$17399_channelDebug_,S.sid_,"rpc",S.JSC$17399_backChannelAttemptId_);S.httpHeadersOverwriteParam_===null&&(S.JSC$17399_backChannelRequest_.JSC$17380_extraHeaders_=S.JSC$17399_extraHeaders_);S.JSC$17399_backChannelRequest_.JSC$17380_readyStateChangeThrottleMs_=0;var p=S.JSC$17399_backChannelUri_.clone();_.vm(p,"RID","rpc");_.vm(p,"SID",S.sid_);_.vm(p,"AID",S.JSC$17399_lastArrayId_);_.vm(p,"CI",S.enableStreaming_?"0":"1");!S.enableStreaming_&&S.longPollingTimeout_&&
_.vm(p,"TO",S.longPollingTimeout_);_.vm(p,"TYPE","xmlhttp");su(S,p);S.httpHeadersOverwriteParam_&&S.JSC$17399_extraHeaders_&&Kh5(p,S.httpHeadersOverwriteParam_,S.JSC$17399_extraHeaders_);S.backChannelRequestTimeoutMs_&&S.JSC$17399_backChannelRequest_.setTimeout(S.backChannelRequestTimeoutMs_);var U=S.JSC$17399_backChannelRequest_,Y=S.JSC$17399_hostPrefix_;U.JSC$17380_type_=1;U.JSC$17380_baseUri_=_.A2(p.clone());U.JSC$17380_postData_=null;U.decodeChunks_=!0;OX5(U,Y);S.JSC$17399_channelDebug_.debug("New Request created")};
ZZ.prototype.JSC$17401_onBackChannelDead_=function(){this.JSC$17399_deadBackChannelTimerId_!=null&&(this.JSC$17399_deadBackChannelTimerId_=null,PhL(this),ZXn(this),KB(19))};
var XFE=function(S){S.JSC$17399_deadBackChannelTimerId_!=null&&(_.UX.clearTimeout(S.JSC$17399_deadBackChannelTimerId_),S.JSC$17399_deadBackChannelTimerId_=null)},jEE=function(S,p){S.JSC$17399_channelDebug_.debug("Request complete");
var U=null;if(S.JSC$17399_backChannelRequest_==p){XFE(S);hLP(S);S.JSC$17399_backChannelRequest_=null;var Y=2}else if(FnP(S.forwardChannelRequestPool_,p))U=p.JSC$17380_pendingMessages_,l7i(S.forwardChannelRequestPool_,p),Y=1;else return;if(S.state_!=0)if(p.JSC$17380_successful_)Y==1?(UCE(p.JSC$17380_postData_?p.JSC$17380_postData_.length:0,Date.now()-p.JSC$17380_requestStartTime_,S.JSC$17399_forwardChannelRetryCount_),vgt(S)):tYd(S);else{var L=p.JSC$17380_lastStatusCode_,I=p.getLastError();if(I==3||
I==0&&L>0)S.JSC$17399_channelDebug_.debug("Not retrying due to error type"),L>200&&(S.errorResponseStatusCode_=p.JSC$17380_lastStatusCode_);else{S.JSC$17399_channelDebug_.debug(function(){return"Maybe retrying, last error: "+VYJ(I,S.errorResponseStatusCode_)});
if(Y==1&&BoE(S,p)||Y==2&&ZXn(S))return;S.JSC$17399_channelDebug_.debug("Exceeded max number of retries")}U&&U.length>0&&f7J(S.forwardChannelRequestPool_,U);S.JSC$17399_channelDebug_.debug("Error: HTTP request failed");switch(I){case 1:Fk(S,5);break;case 4:Fk(S,10);break;case 3:Fk(S,6);break;default:Fk(S,2)}}},NoT=function(S,p){var U=S.JSC$17399_baseRetryDelayMs_+Math.floor(Math.random()*S.JSC$17399_retryDelaySeedMs_);
S.isActive()||(S.JSC$17399_channelDebug_.debug("Inactive channel"),U*=2);return U*p};
ZZ.prototype.onInput_=function(S,p){for(var U=0;U<S.length;U++){var Y=S[U];this.JSC$17399_lastArrayId_=Y[0];Y=Y[1];if(this.state_==2)if(Y[0]=="c"){this.sid_=Y[1];this.JSC$17399_hostPrefix_=Y[2];var L=Y[3];L!=null&&(this.JSC$17401_channelVersion_=L,this.JSC$17399_channelDebug_.info("VER="+this.JSC$17401_channelVersion_));L=Y[4];L!=null&&(this.serverVersion_=L,this.JSC$17399_channelDebug_.info("SVER="+this.serverVersion_));Y=Y[5];Y!=null&&typeof Y==="number"&&Y>0&&(this.backChannelRequestTimeoutMs_=
Y*=1.5,this.JSC$17399_channelDebug_.info("backChannelRequestTimeoutMs_="+Y));if(Y=p.JSC$17380_xmlHttp_){var I=H2(Y,"X-Client-Wire-Protocol");I&&(L=this.forwardChannelRequestPool_,!L.requestPool_&&(_.Wk(I,"spdy")||_.Wk(I,"quic")||_.Wk(I,"h2"))&&(L.JSC$17390_maxSize_=L.maxPoolSizeConfigured_,L.requestPool_=new Set,L.JSC$17390_request_&&(wFP(L,L.JSC$17390_request_),L.JSC$17390_request_=null)));this.httpSessionIdParam_&&((Y=H2(Y,"X-HTTP-Session-Id"))?(this.httpSessionId_=Y,_.vm(this.JSC$17399_forwardChannelUri_,
this.httpSessionIdParam_,Y)):this.JSC$17399_channelDebug_.warning("Missing X_HTTP_SESSION_ID in the handshake response"))}this.state_=3;this.handler_&&this.handler_.JSC$17405_channelOpened();this.detectBufferingProxy_&&(this.handshakeRttMs_=Date.now()-p.JSC$17380_requestStartTime_,this.JSC$17399_channelDebug_.info("Handshake RTT: "+this.handshakeRttMs_+"ms"));Y=p;L=og5(this,this.JSC$17399_supportsCrossDomainXhrs_?this.JSC$17399_hostPrefix_:null,this.JSC$17399_path_);this.JSC$17399_channelDebug_.debug("GetBackChannelUri: "+
L);this.JSC$17399_backChannelUri_=L;Y.initialResponseDecoded_?(this.JSC$17399_channelDebug_.debug("Upgrade the handshake request to a backchannel."),l7i(this.forwardChannelRequestPool_,Y),L=Y,(I=this.backChannelRequestTimeoutMs_)&&L.setTimeout(I),L.JSC$17380_watchDogTimerId_&&(ngn(L),HX5(L)),this.JSC$17399_backChannelRequest_=Y):tYd(this);this.JSC$17399_outgoingMaps_.length>0&&vgt(this)}else Y[0]!="stop"&&Y[0]!="close"||Fk(this,7);else this.state_==3&&(Y[0]=="stop"||Y[0]=="close"?Y[0]=="stop"?Fk(this,
7):this.disconnect():Y[0]!="noop"&&this.handler_&&this.handler_.JSC$17405_channelHandleArray(Y),this.JSC$17399_backChannelRetryCount_=0)}};
var Fk=function(S,p){S.JSC$17399_channelDebug_.info("Error code "+p);if(p==2){var U=(0,_.RW)(S.testNetworkCallback_,S),Y=S.networkTestUrl_,L=!Y;Y=new _.ma(Y||"//www.google.com/images/cleardot.gif");_.UX.location&&_.UX.location.protocol=="http"||_.ED(Y,"https");_.A2(Y);L?Chs(Y.toString(),U):xCJ(Y.toString(),U)}else KB(2);S.onError_(p)};
ZZ.prototype.testNetworkCallback_=function(S){S?(this.JSC$17399_channelDebug_.info("Successfully pinged google.com"),KB(2)):(this.JSC$17399_channelDebug_.info("Failed to ping google.com"),KB(1))};
ZZ.prototype.onError_=function(S){this.JSC$17399_channelDebug_.debug("HttpChannel: error - "+S);this.state_=0;this.handler_&&this.handler_.JSC$17405_channelError(S);iXo(this);$Cd(this)};
var iXo=function(S){S.state_=0;S.nonAckedMapsAtChannelClose_=[];if(S.handler_){var p=a7E(S.forwardChannelRequestPool_);if(p.length!=0||S.JSC$17399_outgoingMaps_.length!=0)S.JSC$17399_channelDebug_.debug(function(){return"Number of undelivered maps, pending: "+p.length+", outgoing: "+S.JSC$17399_outgoingMaps_.length}),_.te(S.nonAckedMapsAtChannelClose_,p),_.te(S.nonAckedMapsAtChannelClose_,S.JSC$17399_outgoingMaps_),S.forwardChannelRequestPool_.JSC$17390_pendingMessages_.length=0,_.qG(S.JSC$17399_outgoingMaps_),
S.JSC$17399_outgoingMaps_.length=0;
S.handler_.JSC$17405_channelClosed()}},Swn=function(S){if(S.state_==0)return S.nonAckedMapsAtChannelClose_;
var p=[];_.te(p,a7E(S.forwardChannelRequestPool_));_.te(p,S.JSC$17399_outgoingMaps_);return p},og5=function(S,p,U){var Y=_.mz(U);
Y.JSC$8037_domain_!=""?(p&&_.mf(Y,p+"."+Y.JSC$8037_domain_),_.ow(Y,Y.JSC$8037_port_)):(Y=_.UX.location,Y=TxE(Y.protocol,p?p+"."+Y.hostname:Y.hostname,+Y.port,U));p=S.httpSessionIdParam_;U=S.httpSessionId_;p&&U&&_.vm(Y,p,U);_.vm(Y,"VER",S.JSC$17401_channelVersion_);su(S,Y);return Y},DCn=function(S,p,U){if(p&&!S.JSC$17399_supportsCrossDomainXhrs_)throw Error("wk");
p=S.usesFetchStreams_&&!S.JSC$17399_xmlHttpFactory_?new _.yf(new sq({streamBinaryChunks:U})):new _.yf(S.JSC$17399_xmlHttpFactory_);p.JSC$7805_withCredentials_=S.JSC$17399_supportsCrossDomainXhrs_;return p};
ZZ.prototype.isActive=function(){return!!this.handler_&&this.handler_.isActive(this)};
var p1Y=function(){};
_.M=p1Y.prototype;_.M.JSC$17405_channelOpened=function(){};
_.M.JSC$17405_channelHandleArray=function(){};
_.M.JSC$17405_channelError=function(){};
_.M.JSC$17405_channelClosed=function(){};
_.M.isActive=function(){return!0};
_.M.JSC$17405_badMapError=function(){};var UVT=function(){},gh=function(S,p){_.OD.call(this);
this.JSC$17408_channel_=new ZZ(p);this.JSC$17408_url_=S;this.messageUrlParams_=p&&p.messageUrlParams||null;S=p&&p.messageHeaders||null;p&&p.clientProtocolHeaderRequired&&(S?_.h9.set(S,"X-Client-Protocol","webchannel"):S=_.h9.create("X-Client-Protocol","webchannel"));this.JSC$17408_channel_.JSC$17399_extraHeaders_=S;S=p&&p.initMessageHeaders||null;p&&p.messageContentType&&(S?_.h9.set(S,"X-WebChannel-Content-Type",p.messageContentType):S=_.h9.create("X-WebChannel-Content-Type",p.messageContentType));
p&&p.clientProfile&&(S?_.h9.set(S,"X-WebChannel-Client-Profile",p.clientProfile):S=_.h9.create("X-WebChannel-Client-Profile",p.clientProfile));this.JSC$17408_channel_.initHeaders_=S;(S=p&&p.httpHeadersOverwriteParam)&&!_.dN(S)&&(this.JSC$17408_channel_.httpHeadersOverwriteParam_=S);this.supportsCrossDomainXhr_=p&&p.supportsCrossDomainXhr||!1;this.sendRawJson_=p&&p.sendRawJson||!1;(p=p&&p.httpSessionIdParam)&&!_.dN(p)&&(this.JSC$17408_channel_.httpSessionIdParam_=p,_.h9.containsKey(this.messageUrlParams_,
p)&&_.h9.remove(this.messageUrlParams_,p));this.channelHandler_=new eB(this)};
_.q_(gh,_.OD);gh.prototype.open=function(){this.JSC$17408_channel_.handler_=this.channelHandler_;this.supportsCrossDomainXhr_&&(this.JSC$17408_channel_.JSC$17399_supportsCrossDomainXhrs_=!0);this.JSC$17408_channel_.connect(this.JSC$17408_url_,this.messageUrlParams_||void 0)};
gh.prototype.close=function(){this.JSC$17408_channel_.disconnect()};
gh.prototype.send=function(S){var p=this.JSC$17408_channel_;if(typeof S==="string"){var U={};U.__data__=S;S=U}else this.sendRawJson_&&(U={},U.__data__=(0,_.J2)(S),S=U);p.JSC$17399_outgoingMaps_.push(new eLn(p.JSC$17399_nextMapId_++,S));p.state_==3&&vgt(p)};
gh.prototype.disposeInternal=function(){this.JSC$17408_channel_.handler_=null;delete this.channelHandler_;this.JSC$17408_channel_.disconnect();delete this.JSC$17408_channel_;gh.superClass_.disposeInternal.call(this)};
var YwY=function(S){BMP.call(this);S.__headers__&&(this.headers=S.__headers__,this.statusCode=S.__status__,delete S.__headers__,delete S.__status__);var p=S.__sm__;p?this.data=(this.metadataKey=_.h9.getAnyKey(p))?_.h9.get(p,this.metadataKey):p:this.data=S};
_.q_(YwY,BMP);var LZq=function(S){qDo.call(this);this.status=1;this.errorCode=S};
_.q_(LZq,qDo);var eB=function(S){this.JSC$17415_channel_=S};
_.q_(eB,p1Y);eB.prototype.JSC$17405_channelOpened=function(){this.JSC$17415_channel_.dispatchEvent("w")};
eB.prototype.JSC$17405_channelHandleArray=function(S){this.JSC$17415_channel_.dispatchEvent(new YwY(S))};
eB.prototype.JSC$17405_channelError=function(S){this.JSC$17415_channel_.dispatchEvent(new LZq(S))};
eB.prototype.JSC$17405_channelClosed=function(){this.JSC$17415_channel_.dispatchEvent("x")};
var M0s=function(S,p){this.transportChannel_=S;this.JSC$17418_channel_=p},I0X=function(S){return Swn(S.JSC$17418_channel_).map(function(p){var U=S.transportChannel_;
p=p.map;"__data__"in p?(p=p.__data__,U=U.sendRawJson_?(0,_.NZq)(p):p):U=p;return U})};var u_=function(S){dVo.dispatchEvent(new V0X(dVo,S))},dVo=new _.OD,V0X=function(S){_.Iw.call(this,"statevent",S)};
_.r(V0X,_.Iw);var wh=function(S,p,U,Y,L){this.JSC$17423_channel_=S;this.JSC$17423_channelDebug_=p;this.sid_=U;this.JSC$17423_rid_=Y;this.JSC$17423_retryId_=L||1;this.timeout_=45E3;this.JSC$17423_eventHandler_=new _.cr(this);this.pollingTimer_=new _.tr;this.pollingTimer_.setInterval(250)};
_.M=wh.prototype;_.M.JSC$17425_extraHeaders_=null;_.M.JSC$17425_successful_=!1;_.M.JSC$17425_watchDogTimerId_=null;_.M.JSC$17425_watchDogTimeoutTime_=null;_.M.JSC$17425_requestStartTime_=null;_.M.JSC$17425_type_=null;_.M.JSC$17425_baseUri_=null;_.M.JSC$17425_requestUri_=null;_.M.JSC$17425_postData_=null;_.M.JSC$17425_xmlHttp_=null;_.M.JSC$17425_xmlHttpChunkStart_=0;_.M.trident_=null;_.M.JSC$17425_verb_=null;_.M.JSC$17425_lastError_=null;_.M.JSC$17425_lastStatusCode_=-1;_.M.sendClose_=!0;
_.M.JSC$17425_cancelled_=!1;_.M.JSC$17425_readyStateChangeThrottleMs_=0;_.M.JSC$17425_readyStateChangeThrottle_=null;var Tld=function(S,p){switch(S){case 0:return"Non-200 return code ("+p+")";case 1:return"XMLHTTP failure (no data)";case 2:return"HttpConnection timeout";default:return"Unknown error"}},WZA={},ODJ={};
wh.prototype.setTimeout=function(S){this.timeout_=S};
var HDn=function(S,p,U){S.JSC$17425_type_=1;S.JSC$17425_baseUri_=_.A2(p.clone());S.JSC$17425_postData_=U;S.decodeChunks_=!0;kAi(S,null)},DVY=function(S,p,U,Y,L){S.JSC$17425_type_=1;
S.JSC$17425_baseUri_=_.A2(p.clone());S.JSC$17425_postData_=null;S.decodeChunks_=U;L&&(S.sendClose_=!1);kAi(S,Y)},kAi=function(S,p){S.JSC$17425_requestStartTime_=Date.now();
zxo(S);S.JSC$17425_requestUri_=S.JSC$17425_baseUri_.clone();IN(S.JSC$17425_requestUri_,"t",S.JSC$17423_retryId_);S.JSC$17425_xmlHttpChunkStart_=0;S.JSC$17425_xmlHttp_=S.JSC$17423_channel_.JSC$17432_createXhrIo(S.JSC$17423_channel_.JSC$17432_shouldUseSecondaryDomains()?p:null);S.JSC$17425_readyStateChangeThrottleMs_>0&&(S.JSC$17425_readyStateChangeThrottle_=new _.NB((0,_.RW)(S.JSC$17425_xmlHttpHandler_,S,S.JSC$17425_xmlHttp_),S.JSC$17425_readyStateChangeThrottleMs_));S.JSC$17423_eventHandler_.listen(S.JSC$17425_xmlHttp_,
"readystatechange",S.JSC$17425_readyStateChangeHandler_);p=S.JSC$17425_extraHeaders_?_.h9.clone(S.JSC$17425_extraHeaders_):{};S.JSC$17425_postData_?(S.JSC$17425_verb_="POST",p["Content-Type"]="application/x-www-form-urlencoded",S.JSC$17425_xmlHttp_.send(S.JSC$17425_requestUri_,S.JSC$17425_verb_,S.JSC$17425_postData_,p)):(S.JSC$17425_verb_="GET",S.sendClose_&&!_.pT&&(p.Connection="close"),S.JSC$17425_xmlHttp_.send(S.JSC$17425_requestUri_,S.JSC$17425_verb_,null,p));S.JSC$17423_channel_.notifyServerReachabilityEvent(1);
p=S.JSC$17423_channelDebug_;var U=S.JSC$17425_postData_;if(U){var Y="";U=U.split("&");for(var L=0;L<U.length;L++){var I=U[L].split("=");if(I.length>1){var V=I[0];I=I[1];var W=V.split("_");Y=W.length>=2&&W[1]=="type"?Y+(V+"="+I+"&"):Y+(V+"=redacted&")}}}else Y=null;p.info("XMLHTTP REQ ("+S.JSC$17423_rid_+") [attempt "+S.JSC$17423_retryId_+"]: "+S.JSC$17425_verb_+"\n"+S.JSC$17425_requestUri_+"\n"+Y)};
wh.prototype.JSC$17425_readyStateChangeHandler_=function(S){S=S.target;var p=this.JSC$17425_readyStateChangeThrottle_;p&&_.KW(S)==3?(this.JSC$17423_channelDebug_.debug("Throttling readystatechange."),p.fire()):this.JSC$17425_xmlHttpHandler_(S)};
wh.prototype.JSC$17425_xmlHttpHandler_=function(S){try{if(S==this.JSC$17425_xmlHttp_)a:{var p=_.KW(this.JSC$17425_xmlHttp_),U=this.JSC$17425_xmlHttp_.JSC$7805_lastErrorCode_,Y=this.JSC$17425_xmlHttp_.getStatus();if(_.pT&&!_.Ux("420+")){if(p<4)break a}else if(p<3||p==3&&!this.JSC$17425_xmlHttp_.getResponseText())break a;this.JSC$17425_cancelled_||p!=4||U==7||(U==8||Y<=0?this.JSC$17423_channel_.notifyServerReachabilityEvent(3):this.JSC$17423_channel_.notifyServerReachabilityEvent(2));QqA(this);var L=
this.JSC$17425_xmlHttp_.getStatus();this.JSC$17425_lastStatusCode_=L;var I=this.JSC$17425_xmlHttp_.getResponseText();I||this.JSC$17423_channelDebug_.debug("No response text for uri "+this.JSC$17425_requestUri_+" status "+L);this.JSC$17425_successful_=L==200;this.JSC$17423_channelDebug_.info("XMLHTTP RESP ("+this.JSC$17423_rid_+") [ attempt "+this.JSC$17423_retryId_+"]: "+this.JSC$17425_verb_+"\n"+this.JSC$17425_requestUri_+"\n"+p+" "+L);if(this.JSC$17425_successful_){p==4&&l_(this);if(this.decodeChunks_){for(S=
!0;!this.JSC$17425_cancelled_&&this.JSC$17425_xmlHttpChunkStart_<I.length;){var V=nrT(this,I);if(V==ODJ){p==4&&(this.JSC$17425_lastError_=4,u_(15),S=!1);aD(this.JSC$17423_channelDebug_,this.JSC$17423_rid_,null,"[Incomplete Response]");break}else if(V==WZA){this.JSC$17425_lastError_=4;u_(16);aD(this.JSC$17423_channelDebug_,this.JSC$17423_rid_,I,"[Invalid Chunk]");S=!1;break}else aD(this.JSC$17423_channelDebug_,this.JSC$17423_rid_,V,null),Jcq(this,V)}p==4&&I.length==0&&(this.JSC$17425_lastError_=1,
u_(17),S=!1);this.JSC$17425_successful_=this.JSC$17425_successful_&&S;S||(aD(this.JSC$17423_channelDebug_,this.JSC$17423_rid_,I,"[Invalid Chunked Response]"),l_(this),yc5(this))}else aD(this.JSC$17423_channelDebug_,this.JSC$17423_rid_,I,null),Jcq(this,I);this.JSC$17425_successful_&&!this.JSC$17425_cancelled_&&(p==4?this.JSC$17423_channel_.JSC$17432_onRequestComplete(this):(this.JSC$17425_successful_=!1,zxo(this)))}else L==400&&I.indexOf("Unknown SID")>0?(this.JSC$17425_lastError_=3,u_(13),this.JSC$17423_channelDebug_.warning("XMLHTTP Unknown SID ("+
this.JSC$17423_rid_+")")):(this.JSC$17425_lastError_=0,u_(14),this.JSC$17423_channelDebug_.warning("XMLHTTP Bad status "+L+" ("+this.JSC$17423_rid_+")")),l_(this),yc5(this)}else this.JSC$17423_channelDebug_.warning("Called back with an unexpected xmlhttp")}catch(W){this.JSC$17423_channelDebug_.debug("Failed call to OnXmlHttpReadyStateChanged_")}finally{}};
var nrT=function(S,p){var U=S.JSC$17425_xmlHttpChunkStart_,Y=p.indexOf("\n",U);if(Y==-1)return ODJ;U=Number(p.substring(U,Y));if(isNaN(U))return WZA;Y+=1;if(Y+U>p.length)return ODJ;p=p.slice(Y,Y+U);S.JSC$17425_xmlHttpChunkStart_=Y+U;return p};
wh.prototype.cancel=function(){this.JSC$17425_cancelled_=!0;l_(this)};
var zxo=function(S){S.JSC$17425_watchDogTimeoutTime_=Date.now()+S.timeout_;KZt(S,S.timeout_)},KZt=function(S,p){if(S.JSC$17425_watchDogTimerId_!=null)throw Error("vk");
S.JSC$17425_watchDogTimerId_=hM((0,_.RW)(S.JSC$17425_onWatchDogTimeout_,S),p)},QqA=function(S){S.JSC$17425_watchDogTimerId_&&(_.UX.clearTimeout(S.JSC$17425_watchDogTimerId_),S.JSC$17425_watchDogTimerId_=null)};
wh.prototype.JSC$17425_onWatchDogTimeout_=function(){this.JSC$17425_watchDogTimerId_=null;var S=Date.now();S-this.JSC$17425_watchDogTimeoutTime_>=0?(this.JSC$17423_channelDebug_.info("TIMEOUT: "+this.JSC$17425_requestUri_),this.JSC$17425_type_!=2&&this.JSC$17423_channel_.notifyServerReachabilityEvent(3),l_(this),this.JSC$17425_lastError_=2,u_(18),yc5(this)):(this.JSC$17423_channelDebug_.warning("WatchDog timer called too early"),KZt(this,this.JSC$17425_watchDogTimeoutTime_-S))};
var yc5=function(S){S.JSC$17423_channel_.JSC$17432_isClosed()||S.JSC$17425_cancelled_||S.JSC$17423_channel_.JSC$17432_onRequestComplete(S)},l_=function(S){QqA(S);
_.t9(S.JSC$17425_readyStateChangeThrottle_);S.JSC$17425_readyStateChangeThrottle_=null;S.pollingTimer_.stop();S.JSC$17423_eventHandler_.removeAll();if(S.JSC$17425_xmlHttp_){var p=S.JSC$17425_xmlHttp_;S.JSC$17425_xmlHttp_=null;p.abort();p.dispose()}S.trident_&&(S.trident_=null)};
wh.prototype.getLastError=function(){return this.JSC$17425_lastError_};
var Jcq=function(S,p){try{S.JSC$17423_channel_.JSC$17432_onRequestData(S,p),S.JSC$17423_channel_.notifyServerReachabilityEvent(4)}catch(U){}};var aD=function(S,p,U,Y){var L=S.info;a:if(U&&U!="y2f%"){try{var I=JSON.parse(U);if(I)for(var V=0;V<I.length;V++)if(Array.isArray(I[V])){var W=I[V];if(!(W.length<2)){var O=W[1];if(Array.isArray(O)&&!(O.length<1)){var D=O[0];if(D!="noop"&&D!="stop")for(var z=1;z<O.length;z++)O[z]=""}}}var Q=(0,_.J2)(I);break a}catch(J){S.debug("Exception parsing expected JS array - probably was not JS");Q=U;break a}Q=void 0}else Q=U;L.call(S,"XMLHTTP TEXT ("+p+"): "+Q+(Y?" "+Y:""))};
R$.prototype.debug=function(S){this.info(S)};
R$.prototype.info=function(){};
R$.prototype.warning=function(){};var bDT=function(S,p){this.JSC$17430_channel_=S;this.JSC$17430_channelDebug_=p;this.JSC$17430_parser_=new JG};
_.M=bDT.prototype;_.M.JSC$17432_extraHeaders_=null;_.M.JSC$17432_request_=null;_.M.receivedIntermediateResult_=!1;_.M.JSC$17432_path_=null;_.M.state_=null;_.M.JSC$17432_lastStatusCode_=-1;_.M.JSC$17432_hostPrefix_=null;_.M.blockedPrefix_=null;
_.M.connect=function(S){this.JSC$17432_path_=S;S=jqP(this.JSC$17430_channel_,this.JSC$17432_path_);u_(3);Date.now();var p=this.JSC$17430_channel_.firstTestResults_;p!=null?(this.JSC$17432_hostPrefix_=p[0],(this.blockedPrefix_=p[1])?(this.state_=1,rc5(this)):(this.state_=2,GAo(this))):(IN(S,"MODE","init"),this.JSC$17432_request_=new wh(this,this.JSC$17430_channelDebug_),this.JSC$17432_request_.JSC$17425_extraHeaders_=this.JSC$17432_extraHeaders_,DVY(this.JSC$17432_request_,S,!1,null,!0),this.state_=
0)};
var rc5=function(S){var p=hxt(S.JSC$17430_channel_,S.blockedPrefix_,"/mail/images/cleardot.gif");_.A2(p);U0P(p.toString(),5E3,(0,_.RW)(S.checkBlockedCallback_,S),3,2E3);S.notifyServerReachabilityEvent(1)};
bDT.prototype.checkBlockedCallback_=function(S){if(S)this.state_=2,GAo(this);else{u_(4);var p=this.JSC$17430_channel_;p.JSC$17433_channelDebug_.debug("Test Connection Blocked");p.JSC$17437_lastStatusCode_=p.connectionTest_.JSC$17432_lastStatusCode_;fB(p,9)}S&&this.notifyServerReachabilityEvent(2)};
var GAo=function(S){S.JSC$17430_channelDebug_.debug("TestConnection: starting stage 2");var p=S.JSC$17430_channel_.secondTestResults_;p!=null?(S.JSC$17430_channelDebug_.debug("TestConnection: skipping stage 2, precomputed result is "+p?"Buffered":"Unbuffered"),u_(5),p?(u_(11),CB(S.JSC$17430_channel_,S,!1)):(u_(12),CB(S.JSC$17430_channel_,S,!0))):(S.JSC$17432_request_=new wh(S,S.JSC$17430_channelDebug_),S.JSC$17432_request_.JSC$17425_extraHeaders_=S.JSC$17432_extraHeaders_,p=RxL(S.JSC$17430_channel_,
S.JSC$17432_hostPrefix_,S.JSC$17432_path_),u_(5),IN(p,"TYPE","xmlhttp"),DVY(S.JSC$17432_request_,p,!1,S.JSC$17432_hostPrefix_,!1))};
_.M=bDT.prototype;_.M.JSC$17432_createXhrIo=function(S){return this.JSC$17430_channel_.JSC$17432_createXhrIo(S)};
_.M.abort=function(){this.JSC$17432_request_&&(this.JSC$17432_request_.cancel(),this.JSC$17432_request_=null);this.JSC$17432_lastStatusCode_=-1};
_.M.JSC$17432_isClosed=function(){return!1};
_.M.JSC$17432_onRequestData=function(S,p){this.JSC$17432_lastStatusCode_=S.JSC$17425_lastStatusCode_;if(this.state_==0)if(this.JSC$17430_channelDebug_.debug("TestConnection: Got data for stage 1"),p){try{var U=this.JSC$17430_parser_.parse(p)}catch(Y){FZs(this.JSC$17430_channel_,this);return}this.JSC$17432_hostPrefix_=U[0];this.blockedPrefix_=U[1]}else this.JSC$17430_channelDebug_.debug("TestConnection: Null responseText"),FZs(this.JSC$17430_channel_,this);else this.state_==2&&(this.receivedIntermediateResult_?
(u_(7),Date.now()):p=="11111"?(u_(6),this.receivedIntermediateResult_=!0,Date.now(),this.JSC$17432_lastStatusCode_=200,this.JSC$17432_request_.cancel(),this.JSC$17430_channelDebug_.debug("Test connection succeeded; using streaming connection"),u_(12),CB(this.JSC$17430_channel_,this,!0)):(u_(8),Date.now(),this.receivedIntermediateResult_=!1))};
_.M.JSC$17432_onRequestComplete=function(){this.JSC$17432_lastStatusCode_=this.JSC$17432_request_.JSC$17425_lastStatusCode_;this.JSC$17432_request_.JSC$17425_successful_?this.state_==0?(this.JSC$17430_channelDebug_.debug("TestConnection: request complete for initial check"),this.blockedPrefix_?(this.state_=1,rc5(this)):(this.state_=2,GAo(this))):this.state_==2&&(this.JSC$17430_channelDebug_.debug("TestConnection: request complete for stage 2"),this.receivedIntermediateResult_?(this.JSC$17430_channelDebug_.debug("Test connection succeeded; using streaming connection"),
u_(12),CB(this.JSC$17430_channel_,this,!0)):(this.JSC$17430_channelDebug_.debug("Test connection failed; not using streaming"),u_(11),CB(this.JSC$17430_channel_,this,!1))):(this.JSC$17430_channelDebug_.debug("TestConnection: request failed, in state "+this.state_),this.state_==0?u_(9):this.state_==2&&u_(10),FZs(this.JSC$17430_channel_,this,this.JSC$17432_request_.getLastError()))};
_.M.JSC$17432_shouldUseSecondaryDomains=function(){return this.JSC$17430_channel_.JSC$17432_shouldUseSecondaryDomains()};
_.M.isActive=function(){return this.JSC$17430_channel_.isActive()};
_.M.notifyServerReachabilityEvent=function(S){this.JSC$17430_channel_.notifyServerReachabilityEvent(S)};var xf=function(S,p,U){this.state_=1;this.JSC$17433_outgoingMaps_=[];this.pendingMaps_=[];this.JSC$17433_channelDebug_=new R$;this.JSC$17433_parser_=new JG;this.firstTestResults_=S||null;this.secondTestResults_=p!=null?p:null;this.asyncTest_=U||!1},X1Y=function(S,p){this.JSC$17435_mapId=S;
this.map=p;this.context=null};
_.M=xf.prototype;_.M.JSC$17437_extraHeaders_=null;_.M.JSC$17437_extraParams_=null;_.M.forwardChannelRequest_=null;_.M.JSC$17437_backChannelRequest_=null;_.M.JSC$17437_path_=null;_.M.JSC$17437_forwardChannelUri_=null;_.M.JSC$17437_backChannelUri_=null;_.M.JSC$17437_hostPrefix_=null;_.M.JSC$17437_nextRid_=0;_.M.JSC$17437_nextMapId_=0;_.M.handler_=null;_.M.JSC$17437_forwardChannelTimerId_=null;_.M.JSC$17437_backChannelTimerId_=null;_.M.JSC$17437_deadBackChannelTimerId_=null;_.M.connectionTest_=null;
_.M.useChunked_=null;_.M.JSC$17437_lastArrayId_=-1;_.M.JSC$17437_lastPostResponseArrayId_=-1;_.M.JSC$17437_lastStatusCode_=-1;_.M.JSC$17437_forwardChannelRetryCount_=0;_.M.JSC$17437_backChannelRetryCount_=0;_.M.JSC$17437_channelVersion_=8;var PaJ={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},ZDA=function(S,p,U,Y){_.Iw.call(this,"timingevent",S);this.size=p;this.rtt=U;this.retries=Y};
_.q_(ZDA,_.Iw);var sqX=function(S){_.Iw.call(this,"serverreachability",S)};
_.q_(sqX,_.Iw);xf.prototype.connect=function(S,p,U,Y,L){this.JSC$17433_channelDebug_.debug("connect()");u_(0);this.JSC$17437_path_=p;this.JSC$17437_extraParams_=U||{};Y&&L!==void 0&&(this.JSC$17437_extraParams_.OSID=Y,this.JSC$17437_extraParams_.OAID=L);this.asyncTest_?(hM((0,_.RW)(this.connectTest_,this,S),100),exJ(this)):this.connectTest_(S)};
xf.prototype.disconnect=function(){this.JSC$17433_channelDebug_.debug("disconnect()");grT(this);if(this.state_==3){var S=this.JSC$17437_nextRid_++,p=this.JSC$17437_forwardChannelUri_.clone();_.vm(p,"SID",this.sid_);_.vm(p,"RID",S);_.vm(p,"TYPE","terminate");Eu(this,p);S=new wh(this,this.JSC$17433_channelDebug_,this.sid_,S);S.JSC$17425_type_=2;S.JSC$17425_baseUri_=_.A2(p.clone());(new Image).src=S.JSC$17425_baseUri_.toString();S.JSC$17425_requestStartTime_=Date.now();zxo(S)}ufA(this)};
xf.prototype.connectTest_=function(S){this.JSC$17433_channelDebug_.debug("connectTest_()");this.connectionTest_=new bDT(this,this.JSC$17433_channelDebug_);this.connectionTest_.JSC$17432_extraHeaders_=this.JSC$17437_extraHeaders_;this.connectionTest_.JSC$17430_parser_=this.JSC$17433_parser_;this.connectionTest_.connect(S)};
var exJ=function(S){S.JSC$17433_channelDebug_.debug("connectChannel_()");S.JSC$17437_ensureInState_(1,0);S.JSC$17437_forwardChannelUri_=jqP(S,S.JSC$17437_path_);w1o(S)},grT=function(S){S.connectionTest_&&(S.connectionTest_.abort(),S.connectionTest_=null);
S.JSC$17437_backChannelRequest_&&(S.JSC$17437_backChannelRequest_.cancel(),S.JSC$17437_backChannelRequest_=null);S.JSC$17437_backChannelTimerId_&&(_.UX.clearTimeout(S.JSC$17437_backChannelTimerId_),S.JSC$17437_backChannelTimerId_=null);l0n(S);S.forwardChannelRequest_&&(S.forwardChannelRequest_.cancel(),S.forwardChannelRequest_=null);S.JSC$17437_forwardChannelTimerId_&&(_.UX.clearTimeout(S.JSC$17437_forwardChannelTimerId_),S.JSC$17437_forwardChannelTimerId_=null)},a0t=function(S,p){if(S.state_==0)throw Error("yk");
S.JSC$17433_outgoingMaps_.length==1E3&&S.JSC$17433_parser_.stringify(p);S.JSC$17433_outgoingMaps_.push(new X1Y(S.JSC$17437_nextMapId_++,p));S.state_!=2&&S.state_!=3||w1o(S)};
xf.prototype.JSC$17432_isClosed=function(){return this.state_==0};
xf.prototype.getState=function(){return this.state_};
var w1o=function(S){S.forwardChannelRequest_||S.JSC$17437_forwardChannelTimerId_||(S.JSC$17437_forwardChannelTimerId_=hM((0,_.RW)(S.JSC$17437_onStartForwardChannelTimer_,S),0),S.JSC$17437_forwardChannelRetryCount_=0)};
xf.prototype.JSC$17437_onStartForwardChannelTimer_=function(S){this.JSC$17437_forwardChannelTimerId_=null;f0A(this,S)};
var f0A=function(S,p){S.JSC$17433_channelDebug_.debug("startForwardChannel_");if(S.state_==1){if(!p){S.JSC$17433_channelDebug_.debug("open_()");S.JSC$17437_nextRid_=Math.floor(Math.random()*1E5);p=S.JSC$17437_nextRid_++;var U=new wh(S,S.JSC$17433_channelDebug_,"",p);U.JSC$17425_extraHeaders_=S.JSC$17437_extraHeaders_;var Y=CaX(S),L=S.JSC$17437_forwardChannelUri_.clone();_.vm(L,"RID",p);_.vm(L,"CVER","1");Eu(S,L);HDn(U,L,Y);S.forwardChannelRequest_=U;S.state_=2}}else S.state_==3&&(p?xVd(S,p):S.JSC$17433_outgoingMaps_.length==
0?S.JSC$17433_channelDebug_.debug("startForwardChannel_ returned: nothing to send"):S.forwardChannelRequest_||(xVd(S),S.JSC$17433_channelDebug_.debug("startForwardChannel_ finished, sent request")))},xVd=function(S,p){if(p)if(S.JSC$17437_channelVersion_>6){S.JSC$17433_outgoingMaps_=S.pendingMaps_.concat(S.JSC$17433_outgoingMaps_);
S.pendingMaps_.length=0;var U=S.JSC$17437_nextRid_-1;p=CaX(S)}else U=p.JSC$17423_rid_,p=p.JSC$17425_postData_;else U=S.JSC$17437_nextRid_++,p=CaX(S);var Y=S.JSC$17437_forwardChannelUri_.clone();_.vm(Y,"SID",S.sid_);_.vm(Y,"RID",U);_.vm(Y,"AID",S.JSC$17437_lastArrayId_);Eu(S,Y);U=new wh(S,S.JSC$17433_channelDebug_,S.sid_,U,S.JSC$17437_forwardChannelRetryCount_+1);U.JSC$17425_extraHeaders_=S.JSC$17437_extraHeaders_;U.setTimeout(1E4+Math.round(1E4*Math.random()));S.forwardChannelRequest_=U;HDn(U,Y,p)},
Eu=function(S,p){S.handler_&&(S=S.handler_.JSC$17444_getAdditionalParams())&&_.h9.forEach(S,function(U,Y){_.vm(p,Y,U)})},CaX=function(S){var p=Math.min(S.JSC$17433_outgoingMaps_.length,1E3),U=["count="+p];
if(S.JSC$17437_channelVersion_>6&&p>0){var Y=S.JSC$17433_outgoingMaps_[0].JSC$17435_mapId;U.push("ofs="+Y)}else Y=0;for(var L={},I=0;I<p;L={mapId$jscomp$3:void 0},I++){L.mapId$jscomp$3=S.JSC$17433_outgoingMaps_[I].JSC$17435_mapId;var V=S.JSC$17433_outgoingMaps_[I].map;L.mapId$jscomp$3=S.JSC$17437_channelVersion_<=6?I:L.mapId$jscomp$3-Y;try{_.h9.forEach(V,function(W){return function(O,D){U.push("req"+W.mapId$jscomp$3+"_"+D+"="+encodeURIComponent(O))}}(L))}catch(W){U.push("req"+L.mapId$jscomp$3+"_type="+
encodeURIComponent("_badmap"))}}S.pendingMaps_=S.pendingMaps_.concat(S.JSC$17433_outgoingMaps_.splice(0,p));
return U.join("&")},Erd=function(S){S.JSC$17437_backChannelRequest_||S.JSC$17437_backChannelTimerId_||(S.JSC$17437_backChannelAttemptId_=1,S.JSC$17437_backChannelTimerId_=hM((0,_.RW)(S.JSC$17437_onStartBackChannelTimer_,S),0),S.JSC$17437_backChannelRetryCount_=0)},ori=function(S){if(S.JSC$17437_backChannelRequest_||S.JSC$17437_backChannelTimerId_||S.JSC$17437_backChannelRetryCount_>=3)return!1;
S.JSC$17433_channelDebug_.debug("Going to retry GET");S.JSC$17437_backChannelAttemptId_++;S.JSC$17437_backChannelTimerId_=hM((0,_.RW)(S.JSC$17437_onStartBackChannelTimer_,S),mVo(S,S.JSC$17437_backChannelRetryCount_));S.JSC$17437_backChannelRetryCount_++;return!0};
xf.prototype.JSC$17437_onStartBackChannelTimer_=function(){this.JSC$17437_backChannelTimerId_=null;this.JSC$17433_channelDebug_.debug("Creating new HttpRequest");this.JSC$17437_backChannelRequest_=new wh(this,this.JSC$17433_channelDebug_,this.sid_,"rpc",this.JSC$17437_backChannelAttemptId_);this.JSC$17437_backChannelRequest_.JSC$17425_extraHeaders_=this.JSC$17437_extraHeaders_;this.JSC$17437_backChannelRequest_.JSC$17425_readyStateChangeThrottleMs_=0;var S=this.JSC$17437_backChannelUri_.clone();_.vm(S,
"RID","rpc");_.vm(S,"SID",this.sid_);_.vm(S,"CI",this.useChunked_?"0":"1");_.vm(S,"AID",this.JSC$17437_lastArrayId_);Eu(this,S);_.vm(S,"TYPE","xmlhttp");DVY(this.JSC$17437_backChannelRequest_,S,!0,this.JSC$17437_hostPrefix_,!1);this.JSC$17433_channelDebug_.debug("New Request created")};
var CB=function(S,p,U){S.JSC$17433_channelDebug_.debug("Test Connection Finished");S.useChunked_=S.secondTestResults_==null?U:!S.secondTestResults_;S.JSC$17437_lastStatusCode_=p.JSC$17432_lastStatusCode_;S.asyncTest_||exJ(S)},FZs=function(S,p){S.JSC$17433_channelDebug_.debug("Test Connection Failed");
S.JSC$17437_lastStatusCode_=p.JSC$17432_lastStatusCode_;fB(S,2)};
xf.prototype.JSC$17432_onRequestData=function(S,p){if(this.state_!=0&&(this.JSC$17437_backChannelRequest_==S||this.forwardChannelRequest_==S))if(this.JSC$17437_lastStatusCode_=S.JSC$17425_lastStatusCode_,this.forwardChannelRequest_==S&&this.state_==3)if(this.JSC$17437_channelVersion_>7){try{var U=this.JSC$17433_parser_.parse(p)}catch(Y){U=null}if(Array.isArray(U)&&U.length==3)if(p=U,p[0]==0)a:if(this.JSC$17433_channelDebug_.debug("Server claims our backchannel is missing."),this.JSC$17437_backChannelTimerId_)this.JSC$17433_channelDebug_.debug("But we are currently starting the request.");
else{if(this.JSC$17437_backChannelRequest_)if(this.JSC$17437_backChannelRequest_.JSC$17425_requestStartTime_+3E3<this.forwardChannelRequest_.JSC$17425_requestStartTime_)l0n(this),this.JSC$17437_backChannelRequest_.cancel(),this.JSC$17437_backChannelRequest_=null;else break a;else this.JSC$17433_channelDebug_.warning("We do not have a BackChannel established");ori(this);u_(19)}else this.JSC$17437_lastPostResponseArrayId_=p[1],S=this.JSC$17437_lastPostResponseArrayId_-this.JSC$17437_lastArrayId_,0<
S&&(p=p[2],this.JSC$17433_channelDebug_.debug(p+" bytes (in "+S+" arrays) are outstanding on the BackChannel"),p<37500&&this.useChunked_&&this.JSC$17437_backChannelRetryCount_==0&&!this.JSC$17437_deadBackChannelTimerId_&&(this.JSC$17437_deadBackChannelTimerId_=hM((0,_.RW)(this.JSC$17437_onBackChannelDead_,this),6E3)));else this.JSC$17433_channelDebug_.debug("Bad POST response data returned"),fB(this,11)}else p!="y2f%"&&(this.JSC$17433_channelDebug_.debug("Bad data returned - missing/invald magic cookie"),
fB(this,11));else this.JSC$17437_backChannelRequest_==S&&l0n(this),_.dN(p)||(S=this.JSC$17433_parser_.parse(p),this.onInput_(S))};
xf.prototype.JSC$17437_onBackChannelDead_=function(){this.JSC$17437_deadBackChannelTimerId_!=null&&(this.JSC$17437_deadBackChannelTimerId_=null,this.JSC$17437_backChannelRequest_.cancel(),this.JSC$17437_backChannelRequest_=null,ori(this),u_(20))};
var l0n=function(S){S.JSC$17437_deadBackChannelTimerId_!=null&&(_.UX.clearTimeout(S.JSC$17437_deadBackChannelTimerId_),S.JSC$17437_deadBackChannelTimerId_=null)};
xf.prototype.JSC$17432_onRequestComplete=function(S){this.JSC$17433_channelDebug_.debug("Request complete");if(this.JSC$17437_backChannelRequest_==S){l0n(this);this.JSC$17437_backChannelRequest_=null;var p=2}else if(this.forwardChannelRequest_==S)this.forwardChannelRequest_=null,p=1;else return;this.JSC$17437_lastStatusCode_=S.JSC$17425_lastStatusCode_;if(this.state_!=0)if(S.JSC$17425_successful_)if(p==1){p=S.JSC$17425_postData_?S.JSC$17425_postData_.length:0;S=Date.now()-S.JSC$17425_requestStartTime_;
var U=dVo;U.dispatchEvent(new ZDA(U,p,S,this.JSC$17437_forwardChannelRetryCount_));w1o(this);this.handler_&&this.handler_.JSC$17444_channelSuccess(this,this.pendingMaps_);this.pendingMaps_.length=0}else Erd(this);else{U=S.getLastError();if(U==3||U==7||U==0&&this.JSC$17437_lastStatusCode_>0)this.JSC$17433_channelDebug_.debug("Not retrying due to error type");else{this.JSC$17433_channelDebug_.debug("Maybe retrying, last error: "+Tld(U,this.JSC$17437_lastStatusCode_));var Y;if(Y=p==1)this.forwardChannelRequest_||
this.JSC$17437_forwardChannelTimerId_||this.state_==1||this.JSC$17437_forwardChannelRetryCount_>=2?Y=!1:(this.JSC$17433_channelDebug_.debug("Going to retry POST"),this.JSC$17437_forwardChannelTimerId_=hM((0,_.RW)(this.JSC$17437_onStartForwardChannelTimer_,this,S),mVo(this,this.JSC$17437_forwardChannelRetryCount_)),this.JSC$17437_forwardChannelRetryCount_++,Y=!0);if(Y||p==2&&ori(this))return;this.JSC$17433_channelDebug_.debug("Exceeded max number of retries")}this.JSC$17433_channelDebug_.debug("Error: HTTP request failed");
switch(U){case 1:fB(this,5);break;case 4:fB(this,10);break;case 3:fB(this,6);break;case 7:fB(this,12);break;default:fB(this,2)}}};
var mVo=function(S,p){var U=5E3+Math.floor(Math.random()*1E4);S.isActive()||(S.JSC$17433_channelDebug_.debug("Inactive channel"),U*=2);return U*p};
xf.prototype.onInput_=function(S){for(var p=0;p<S.length;p++){var U=S[p];this.JSC$17437_lastArrayId_=U[0];U=U[1];this.state_==2?U[0]=="c"?(this.sid_=U[1],this.JSC$17437_hostPrefix_=U[2],U=U[3],U!=null?this.JSC$17437_channelVersion_=U:this.JSC$17437_channelVersion_=6,this.state_=3,this.handler_&&this.handler_.JSC$17444_channelOpened(),this.JSC$17437_backChannelUri_=RxL(this,this.JSC$17437_hostPrefix_,this.JSC$17437_path_),Erd(this)):U[0]=="stop"&&fB(this,7):this.state_==3&&(U[0]=="stop"?fB(this,7):
U[0]!="noop"&&this.handler_&&this.handler_.JSC$17444_channelHandleArray(U),this.JSC$17437_backChannelRetryCount_=0)}};
xf.prototype.JSC$17437_ensureInState_=function(S){if(!_.ou(arguments,this.state_))throw Error("zk`"+this.state_);};
var fB=function(S,p){S.JSC$17433_channelDebug_.info("Error code "+p);if(p==2||p==9){var U=null;S.handler_&&(U=null);var Y=(0,_.RW)(S.testGoogleComCallback_,S);U||(U=new _.ma("//www.google.com/images/cleardot.gif"),_.A2(U));prX(U.toString(),1E4,Y)}else u_(2);S.onError_(p)};
xf.prototype.testGoogleComCallback_=function(S){S?(this.JSC$17433_channelDebug_.info("Successfully pinged google.com"),u_(2)):(this.JSC$17433_channelDebug_.info("Failed to ping google.com"),u_(1),this.onError_(8))};
xf.prototype.onError_=function(S){this.JSC$17433_channelDebug_.debug("HttpChannel: error - "+S);this.state_=0;this.handler_&&this.handler_.JSC$17444_channelError(S);ufA(this);grT(this)};
var ufA=function(S){S.state_=0;S.JSC$17437_lastStatusCode_=-1;if(S.handler_)if(S.pendingMaps_.length==0&&S.JSC$17433_outgoingMaps_.length==0)S.handler_.JSC$17444_channelClosed();else{S.JSC$17433_channelDebug_.debug("Number of undelivered maps, pending: "+S.pendingMaps_.length+", outgoing: "+S.JSC$17433_outgoingMaps_.length);var p=_.qG(S.pendingMaps_),U=_.qG(S.JSC$17433_outgoingMaps_);S.pendingMaps_.length=0;S.JSC$17433_outgoingMaps_.length=0;S.handler_.JSC$17444_channelClosed(p,U)}},jqP=function(S,
p){p=hxt(S,null,p);
S.JSC$17433_channelDebug_.debug("GetForwardChannelUri: "+p);return p},RxL=function(S,p,U){p=hxt(S,S.JSC$17432_shouldUseSecondaryDomains()?p:null,U);
S.JSC$17433_channelDebug_.debug("GetBackChannelUri: "+p);return p},hxt=function(S,p,U){var Y=_.mz(U);
if(Y.JSC$8037_domain_!="")p&&_.mf(Y,p+"."+Y.JSC$8037_domain_),_.ow(Y,Y.JSC$8037_port_);else{var L=window.location;Y=TxE(L.protocol,p?p+"."+L.hostname:L.hostname,+L.port,U)}S.JSC$17437_extraParams_&&_.h9.forEach(S.JSC$17437_extraParams_,function(I,V){_.vm(Y,V,I)});
_.vm(Y,"VER",S.JSC$17437_channelVersion_);Eu(S,Y);return Y};
xf.prototype.JSC$17432_createXhrIo=function(S){if(S)throw Error("wk");S=new _.yf;S.JSC$7805_withCredentials_=!1;return S};
xf.prototype.isActive=function(){return!!this.handler_&&this.handler_.isActive(this)};
xf.prototype.notifyServerReachabilityEvent=function(S){var p=dVo;p.dispatchEvent(new sqX(p,S))};
xf.prototype.JSC$17432_shouldUseSecondaryDomains=function(){return!1};
new zM5;var vro=function(){};
_.M=vro.prototype;_.M.JSC$17444_channelOpened=function(){};
_.M.JSC$17444_channelHandleArray=function(){};
_.M.JSC$17444_channelSuccess=function(){};
_.M.JSC$17444_channelError=function(){};
_.M.JSC$17444_channelClosed=function(){};
_.M.JSC$17444_getAdditionalParams=function(){return{}};
_.M.isActive=function(){return!0};var $VA=function(S){S.front_.length===0&&(S.front_=S.back_,S.front_.reverse(),S.back_=[])};
_.M=L$5.prototype;_.M.enqueue=function(S){this.back_.push(S)};
_.M.peek=function(){$VA(this);return _.le(this.front_)};
_.M.getCount=function(){return this.front_.length+this.back_.length};
_.M.isEmpty=function(){return this.front_.length===0&&this.back_.length===0};
_.M.clear=function(){this.front_=[];this.back_=[]};
_.M.contains=function(S){return _.ou(this.front_,S)||_.ou(this.back_,S)};
_.M.remove=function(S){var p=this.front_;var U=Array.prototype.lastIndexOf.call(p,S,p.length-1);U>=0?(_.ie(p,U),p=!0):p=!1;return p||_.NG(this.back_,S)};
_.M.getValues=function(){for(var S=[],p=this.front_.length-1;p>=0;--p)S.push(this.front_[p]);p=this.back_.length;for(var U=0;U<p;++U)S.push(this.back_[U]);return S};var mR=function(S){this.JSC$17448_map_=new _.Si;this.size=0;S&&this.addAll(S)},iDo=function(S){var p=typeof S;
return p=="object"&&S||p=="function"?"o"+_.Ul(S):p.charAt(0)+S};
_.M=mR.prototype;_.M.getCount=function(){return this.JSC$17448_map_.size};
_.M.add=function(S){this.JSC$17448_map_.set(iDo(S),S);this.size=this.JSC$17448_map_.size};
_.M.addAll=function(S){S=_.xx(S);for(var p=S.length,U=0;U<p;U++)this.add(S[U]);this.size=this.JSC$17448_map_.size};
_.M.removeAll=function(S){S=_.xx(S);for(var p=S.length,U=0;U<p;U++)this.remove(S[U]);this.size=this.JSC$17448_map_.size};
_.M.delete=function(S){S=this.JSC$17448_map_.remove(iDo(S));this.size=this.JSC$17448_map_.size;return S};
_.M.remove=function(S){return this.delete(S)};
_.M.clear=function(){this.JSC$17448_map_.clear();this.size=0};
_.M.isEmpty=function(){return this.JSC$17448_map_.size===0};
_.M.has=function(S){return this.JSC$17448_map_.containsKey(iDo(S))};
_.M.contains=function(S){return this.JSC$17448_map_.containsKey(iDo(S))};
_.M.getValues=function(){return this.JSC$17448_map_.getValues()};
_.M.values=function(){return this.JSC$17448_map_.values()};
_.M.clone=function(){return new mR(this)};
_.M.equals=function(S){return this.getCount()==dmn(S)&&Nln(this,S)};
var Nln=function(S,p){var U=dmn(p);if(S.getCount()>U)return!1;!(p instanceof mR)&&U>5&&(p=new mR(p));return VVn(S,function(Y){var L=p;return L.contains&&typeof L.contains=="function"?L.contains(Y):L.containsValue&&typeof L.containsValue=="function"?L.containsValue(Y):_.Ae(L)||typeof L==="string"?_.ou(L,Y):_.h9.containsValue(L,Y)})};
mR.prototype.__iterator__=function(){return this.JSC$17448_map_.__iterator__(!1)};
mR.prototype[Symbol.iterator]=function(){return this.values()};var Bls={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(S){return(this._clampValue(S)-this.min)/(this.max-this.min)},
_clampValue:function(S){return Math.min(this.max,Math.max(this.min,this._calcStep(S)))},
_calcStep:function(S){S=parseFloat(S);if(!this.step)return S;S=Math.round((S-this.min)/this.step);return this.step<1?S/(1/this.step)+this.min:S*this.step+this.min},
_validateValue:function(){var S=this._clampValue(this.value);this.value=this.oldValue=isNaN(S)?this.oldValue:S;return this.value!==S},
_update:function(){this._validateValue();this._setRatio(this._calcRatio(this.value)*100)}};var qwE;var AcP;_.jp({_template:function(){if(AcP!==void 0)return AcP;var S=document.createElement("template");_.h(S,'\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');
S.content.insertBefore(_.t().content.cloneNode(!0),S.content.firstChild);var p=S.content,U=p.insertBefore;qwE===void 0&&(qwE=document.createElement("template"));var Y=qwE;U.call(p,Y.content.cloneNode(!0),S.content.firstChild);return AcP=S},
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(){_.oH(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(S){S.keyCode===27&&(S.preventDefault(),this.close())},
_track:function(S){if(!this.persistent&&!this.disableSwipe)switch(S.preventDefault(),S.detail.state){case "start":this._trackStart(S);break;case "track":this._trackMove(S);break;case "end":this._trackEnd(S)}},
_trackStart:function(){this._drawerState=this._DRAWER_STATE.TRACKING;var S=this.$.contentContainer.getBoundingClientRect();this._savedWidth=S.width;this._translateOffset=this.position==="left"?S.left:S.right-window.innerWidth;this._trackDetails=[];this._styleTransitionDuration(0);this.style.visibility="visible"},
_trackMove:function(S){this._trackDetails&&(this._translateDrawer(S.detail.dx+this._translateOffset),this._trackDetails.push({dx:S.detail.dx,timeStamp:Date.now()}))},
_trackEnd:function(S){if(this._trackDetails){var p=S.detail.dx+this._translateOffset,U=this.getWidth();p=this.position==="left"?p>=0||p<=-U:p<=0||p>=U;if(!p){var Y=this._trackDetails;this._trackDetails=null;this._flingDrawer(S,Y);if(this._drawerState===this._DRAWER_STATE.FLINGING)return}U/=2;S.detail.dx<-U?this.opened=this.position==="right":S.detail.dx>U&&(this.opened=this.position==="left");p?this.debounce("_resetDrawerState",this._resetDrawerState):this.debounce("_resetDrawerState",this._resetDrawerState,
this.transitionDuration);this._styleTransitionDuration(this.transitionDuration);this._resetDrawerTranslate();this.style.visibility=""}},
_calculateVelocity:function(S,p){for(var U=Date.now(),Y=U-100,L,I=0,V=p.length-1;I<=V;){var W=I+V>>1,O=p[W];O.timeStamp>=Y?(L=O,V=W-1):I=W+1}return L?(S.detail.dx-L.dx)/(U-L.timeStamp||1):0},
_flingDrawer:function(S,p){p=this._calculateVelocity(S,p);if(!(Math.abs(p)<this._MIN_FLING_THRESHOLD)){this._drawerState=this._DRAWER_STATE.FLINGING;S=S.detail.dx+this._translateOffset;var U=this.getWidth(),Y=this.position==="left",L=p>0;L?(p=Math.max(p,this._MIN_TRANSITION_VELOCITY),this.opened=this.position==="left"):(p=Math.min(p,-this._MIN_TRANSITION_VELOCITY),this.opened=this.position==="right");p=this._FLING_INITIAL_SLOPE*(!L&&Y?-(S+U):L&&!Y?U-S:-S)/p;this._styleTransitionDuration(p);this._styleTransitionTimingFunction(this._FLING_TIMING_FUNCTION);
this._resetDrawerTranslate();this.debounce("_resetDrawerState",this._resetDrawerState,p)}},
_styleTransitionDuration:function(S){this.style.transitionDuration=S+"ms";this.$.contentContainer.style.transitionDuration=S+"ms";this.$.scrim.style.transitionDuration=S+"ms"},
_styleTransitionTimingFunction:function(S){this.$.contentContainer.style.transitionTimingFunction=S;this.$.scrim.style.transitionTimingFunction=S},
_translateDrawer:function(S){var p=this.getWidth();this.position==="left"?(S=Math.max(-p,Math.min(S,0)),this.$.scrim.style.opacity=1+S/p):(S=Math.max(0,Math.min(S,p)),this.$.scrim.style.opacity=1-S/p);this.translate3d(S+"px","0","0",this.$.contentContainer)},
_resetDrawerTranslate:function(){this.$.scrim.style.opacity="";this.transform("",this.$.contentContainer)},
_resetDrawerState:function(){var S=this._drawerState;S===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;S!==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=""),S!==this._DRAWER_STATE.INIT&&this.fire("app-drawer-transitioned"))},
resetLayout:function(){this.fire("app-reset-layout")},
_setKeyboardFocusTrap:function(){if(!this.noFocusTrap){var S=_.K9(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"])');S.length>0?(this._firstTabStop=S[0],this._lastTabStop=S[S.length-1]):
this._lastTabStop=this._firstTabStop=null;(S=this.getAttribute("tabindex"))&&parseInt(S,10)>-1?this.focus():this._firstTabStop&&this._firstTabStop.focus()}},
_tabKeydownHandler:function(S){this.noFocusTrap||this._drawerState!==this._DRAWER_STATE.OPENED||S.keyCode!==9||(S.shiftKey?this._firstTabStop&&_.K9(S).localTarget===this._firstTabStop&&(S.preventDefault(),this._lastTabStop.focus()):this._lastTabStop&&_.K9(S).localTarget===this._lastTabStop&&(S.preventDefault(),this._firstTabStop.focus()))},
_openedPersistentChanged:function(S,p){this.toggleClass("visible",S&&!p,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 t0o;var ccP;_.jp({_template:function(){if(ccP!==void 0)return ccP;var S=document.createElement("template");_.h(S,'\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');
S.content.insertBefore(_.t().content.cloneNode(!0),S.content.firstChild);var p=S.content,U=p.insertBefore;t0o===void 0&&(t0o=document.createElement("template"));var Y=t0o;U.call(p,Y.content.cloneNode(!0),S.content.firstChild);return ccP=S},
is:"tp-yt-paper-progress",behaviors:[Bls],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(S){this.toggleClass("indeterminate",S,this.$.primaryProgress)},
_transformProgress:function(S,p){S.style.transform=S.style.webkitTransform="scaleX("+p/100+")"},
_mainRatioChanged:function(S){this._transformProgress(this.$.primaryProgress,S)},
_progressChanged:function(S,p,U,Y,L){S=this._clampValue(S);p=this._clampValue(p);var I=this._calcRatio(S)*100,V=this._calcRatio(p)*100;this._setSecondaryRatio(I);this._transformProgress(this.$.secondaryProgress,I);this._transformProgress(this.$.primaryProgress,V);this.secondaryProgress=S;L?this.removeAttribute("aria-valuenow"):this.setAttribute("aria-valuenow",p);this.setAttribute("aria-valuemin",U);this.setAttribute("aria-valuemax",Y)},
_disabledChanged:function(S){this.setAttribute("aria-disabled",S?"true":"false")},
_hideSecondaryProgress:function(S){return S===0}});var Sbs;var pCq;var UD5=function(){};
_.M=UD5.prototype;_.M.registered=function(){};
_.M.addOwnKeyBinding=function(){};
_.M.removeOwnKeyBindings=function(){};
_.M.keyboardEventMatchesKeys=function(){};
_.M._collectKeyBindings=function(){};
_.M._prepKeyBindings=function(){};
_.M._addKeyBinding=function(){};
_.M._resetKeyEventListeners=function(){};
_.M._listenKeyEventListeners=function(){};
_.M._unlistenKeyEventListeners=function(){};
_.M._onKeyBindingEvent=function(){};
_.M._triggerKeyHandler=function(){};
_.M._tapHandler=function(){};
_.M._focusChanged=function(){};
_.M._detectKeyboardFocus=function(){};
_.M._userActivate=function(){};
_.M._upHandler=function(){};
_.M._spaceKeyDownHandler=function(){};
_.M._spaceKeyUpHandler=function(){};
_.M._asyncClick=function(){};
_.M._pressedChanged=function(){};
_.M._ariaActiveAttributeChanged=function(){};
_.M._activeChanged=function(){};
_.M._controlStateChanged=function(){};
_.M._changedButtonState=function(){};
_.M._focusBlurHandler=function(){};
_.M._disabledChanged=function(){};
_.M._changedControlState=function(){};
_.M._buttonStateChanged=function(){};
_.M._downHandler=function(){};
_.M.ensureRipple=function(){};
_.M.getRipple=function(){};
_.M.hasRipple=function(){};
_.M._noinkChanged=function(){};
_.M._calcRatio=function(){};
_.M._clampValue=function(){};
_.M._calcStep=function(){};
_.M._validateValue=function(){};
_.M._update=function(){};
_.M._setImmediateValue=function(){};
_.M._setExpand=function(){};
_.M._setDragging=function(){};
_.M._setTransiting=function(){};
_.M._setMarkers=function(){};
_.M._setPressed=function(){};
_.M._setPointerDown=function(){};
_.M._setReceivedFocusFromKeyboard=function(){};
_.M._setFocused=function(){};
_.M._setRatio=function(){};
UD5=_.jp({_template:function(){if(pCq!==void 0)return pCq;var S=document.createElement("template");_.h(S,'\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');
S.content.insertBefore(_.t().content.cloneNode(!0),S.content.firstChild);var p=S.content,U=p.insertBefore;Sbs===void 0&&(Sbs=document.createElement("template"));var Y=Sbs;U.call(p,Y.content.cloneNode(!0),S.content.firstChild);return pCq=S},
is:"tp-yt-paper-slider",behaviors:[_.H$,_.nL,_.X7E,Bls],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&&_.Xj(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(S,p,U){this.setAttribute("aria-valuemin",p);this.setAttribute("aria-valuemax",U);this.setAttribute("aria-valuenow",S);this._positionKnob(this._calcRatio(S)*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(S){this._setImmediateValue(this._calcStep(this._calcKnobPosition(S)));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(S){return(this.max-this.min)*S/100+this.min},
_onTrack:function(S){S.stopPropagation();switch(S.detail.state){case "start":this._trackStart(S);break;case "track":this._trackX(S);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(S){this.dragging||this._trackStart(S);this._x=this._startx+Math.min(this._maxx,Math.max(this._minx,S.detail.dx*(this._isRTL?-1:1)));S=this._calcStep(this._calcKnobPosition(this._x/this._w*100));this._setImmediateValue(S);S=this._calcRatio(this.immediateValue)*this._w-this._knobstartx;this.translate3d(S+"px",0,0,this.$.sliderKnob)},
_trackEnd:function(){var S=this.$.sliderKnob.style;this.$.sliderKnob.classList.remove("dragging");this._setDragging(!1);this._resetKnob();this.value=this.immediateValue;S.transform=S.webkitTransform="";this.fire("change",{composed:!0})},
_knobdown:function(S){this._expandKnob();S.preventDefault();this.focus()},
_bartrack:function(S){this._allowBarEvent(S)&&this._onTrack(S)},
_barclick:function(S){this._w=this.$.sliderBar.offsetWidth;var p=this.$.sliderBar.getBoundingClientRect();p=(S.detail.x-p.left)/this._w*100;this._isRTL&&(p=100-p);var U=this.ratio;this._setTransiting(!0);this._positionKnob(p);U===this.ratio&&this._setTransiting(!1);this.async(function(){this.fire("change",{composed:!0})});
S.preventDefault();this.focus()},
_bardown:function(S){this._allowBarEvent(S)&&(this.debounce("expandKnob",this._expandKnob,60),this._barclick(S))},
_knobTransitionEnd:function(S){S.target===this.$.sliderKnob&&this._setTransiting(!1)},
_updateMarkers:function(S,p,U,Y){Y||this._setMarkers([]);p=Math.round((U-p)/this.step);p>S&&(p=S);if(p<0||!isFinite(p))p=0;this._setMarkers(Array(p))},
_mergeClasses:function(S){return Object.keys(S).filter(function(p){return S[p]}).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(S){return!this.ignoreBarTouch||S.detail.sourceEvent instanceof MouseEvent},
get _isRTL(){this.__isRTL===void 0&&(this.__isRTL=window.getComputedStyle(this).direction==="rtl");return this.__isRTL},_leftKey:function(S){this._isRTL?this._incrementKey(S):this._decrementKey(S)},
_rightKey:function(S){this._isRTL?this._decrementKey(S):this._incrementKey(S)},
_incrementKey:function(S){this.disabled||(S.detail.key==="end"?this.value=this.max:this.increment(),this.fire("change"),S.preventDefault())},
_decrementKey:function(S){this.disabled||(S.detail.key==="home"?this.value=this.min:this.decrement(),this.fire("change"),S.preventDefault())},
_changeValue:function(S){this.value=S.target.value;this.fire("change",{composed:!0})},
_inputKeyDown:function(S){S.stopPropagation()},
_createRipple:function(){this._rippleContainer=this.$.sliderKnob;return _.Fht._createRipple.call(this)},
_focusedChanged:function(S){S&&this.ensureRipple();this.hasRipple()&&(this._ripple.style.display=S?"":"none",this._ripple.holdDown=S)}});var Yb5;var Ll5;var oD=null,MdL=function(){};
_.M=MdL.prototype;_.M.fit=function(){};
_.M._discoverInfo=function(){};
_.M.resetFit=function(){};
_.M.refit=function(){};
_.M.position=function(){};
_.M.constrain=function(){};
_.M._sizeDimension=function(){};
_.M.__sizeDimension=function(){};
_.M.center=function(){};
_.M.__getNormalizedRect=function(){};
_.M.__getOffscreenArea=function(){};
_.M.__getPosition=function(){};
_.M.notifyResize=function(){};
_.M.assignParentResizable=function(){};
_.M.stopResizeNotificationsFor=function(){};
_.M._subscribeIronResize=function(){};
_.M._unsubscribeIronResize=function(){};
_.M.resizerShouldNotify=function(){};
_.M._onDescendantIronResize=function(){};
_.M._fireResize=function(){};
_.M._onIronRequestResizeNotifications=function(){};
_.M._parentResizableChanged=function(){};
_.M._notifyDescendant=function(){};
_.M._requestResizeNotifications=function(){};
_.M._findParent=function(){};
_.M.toggle=function(){};
_.M.open=function(){};
_.M.close=function(){};
_.M.cancel=function(){};
_.M.invalidateTabbables=function(){};
_.M._ensureSetup=function(){};
_.M._canceledChanged=function(){};
_.M._withBackdropChanged=function(){};
_.M._prepareRenderOpened=function(){};
_.M._finishRenderOpened=function(){};
_.M._finishRenderClosed=function(){};
_.M._preparePositioning=function(){};
_.M._finishPositioning=function(){};
_.M._applyFocus=function(){};
_.M._onCaptureClick=function(){};
_.M._onCaptureFocus=function(){};
_.M._onCaptureEsc=function(){};
_.M._onCaptureTab=function(){};
_.M._onIronResize=function(){};
_.M._onNodesChange=function(){};
_.M.__ensureFirstLastFocusables=function(){};
_.M.__openedChanged=function(){};
_.M.__deraf=function(){};
_.M.__updateScrollObservers=function(){};
_.M.__addScrollListeners=function(){};
_.M.__removeScrollListeners=function(){};
_.M.__isValidScrollAction=function(){};
_.M.__onCaptureScroll=function(){};
_.M.__saveScrollPosition=function(){};
_.M.__restoreScrollPosition=function(){};
_.M._setCanceled=function(){};
MdL=_.jp({_template:function(){if(Ll5!==void 0)return Ll5;var S=document.createElement("template");_.h(S,'\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');
S.content.insertBefore(_.t().content.cloneNode(!0),S.content.firstChild);var p=S.content,U=p.insertBefore;Yb5===void 0&&(Yb5=document.createElement("template"));var Y=Yb5;U.call(p,Y.content.cloneNode(!0),S.content.firstChild);return Ll5=S},
is:"tp-yt-paper-toast",behaviors:[_.aU],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(){_.DF._warn("`visible` is deprecated, use `opened` instead");return this.opened},get _canAutoClose(){return this.duration>0&&this.duration!==Infinity},created:function(){this._autoClose=null;_.ei.requestAvailability()},
show:function(S){typeof S=="string"&&(S={text:S});for(var p in S)p.indexOf("_")===0?_.DF._warn('The property "'+p+'" is private and was not set.'):p in this?this[p]=S[p]:_.DF._warn('The property "'+p+'" is not valid.');this.open()},
hide:function(){this.close()},
isOpened:function(){return this.opened},
__onTransitionEnd:function(S){S&&S.target===this&&S.propertyName==="opacity"&&(this.opened?this._finishRenderOpened():this._finishRenderClosed())},
_openedChanged:function(){this._autoClose!==null&&(this.cancelAsync(this._autoClose),this._autoClose=null);this.opened?(oD&&oD!==this&&oD.close(),oD=this,this._fireIronAnnounce(),this._canAutoClose&&(this._autoClose=this.async(this.close,this.duration))):oD===this&&(oD=null);_.ls._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(S){this.positionTarget=S},
_fireIronAnnounce:function(){this.noIronAnnounce||this.fire("iron-announce",{text:this.label||this.text})}});var IFt=new _.v("disablePersonalizationAction");var AZP=new _.v("showDmaConsentFlowCommand");var t4A=new _.v("showMmgNoticeCommand");var dDq=new _.v("saveConsentAction");var VdE=function(S){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.UH(S)};
_.r(VdE,_.a5);var TPX=_.Uhw(VdE);var WlE=new _.v("updateTopbarAvatarAction");var OCA=new _.v("channelHandleValidationResultRenderer");var kxn=new _.v("generateHandleFromNameResultRenderer");var HC5=new _.v("channelHandleInputRenderer");var DDP=new _.v("copyLinkRenderer");var zDP=new _.v("timedCommand");var QXo=new _.v("clearCookieAction");var niE=new _.v("getMultiPageMenuAction");var JKL=new _.v("addToGuideSectionAction"),yKT=new _.v("removeFromGuideSectionAction");var Kld=new _.v("updateNotificationsUnseenCountAction");var bCY=new _.v("resetChannelUnreadCountCommand");var jXT=new _.v("resetSubscriptionsUnreadDotCommand");var rKi=new _.v("selectLanguageCommand");var kft=new _.v("sendFeedbackAction");var GxE=new _.v("uploadImageToScottyCommand");var hDs=new _.v("registerPromoCommand");var RDL=new _.v("setPushNotificationsEnabledCommand");var FlJ=new _.v("desktopTopbarRenderer");var XCo=new _.v("surveyFollowUpRenderer");var Pps=new _.v("handlesClaimingRadioOptionRenderer");var ZCt=new _.v("hotkeyDialogRenderer");var sXt=new _.v("modifyReportFormCommand");var eDq=new _.v("accountLinkCommand");var giE=new _.v("accountUnlinkCommand");var uDJ=new _.v("logAccountLinkingEventCommand");var wCd=new _.v("guideCollapsibleEntryRenderer");var lFL=new _.v("guideDownloadsEntryRenderer");var vu=new _.v("guideEntryRenderer");var aFq=new _.v("getLocationCommand");var fFY=new _.v("locationCollectionCommand");var CpA=new _.v("storiesItemViewModel");var xDP=new _.v("addToRemoteQueueAction");var EiP=new _.v("insertInRemoteQueueAction");var mDn=new _.v("removeFromRemoteQueueAction");var oiJ=new _.v("notificationRenderer");var wJJ=new _.v("localWatchHistoryCommand");var vii=new _.v("pdgBuyFlowHeaderRenderer");var $Ds=new _.v("pdgColorSliderRenderer");var iCi=new _.v("pdgCommentOptionRenderer");var NP5=new _.v("pdgCommentPreviewRenderer");var BPo=new _.v("superVodSelectableItemButtonRenderer");var qbT=new _.v("switchButtonRenderer");var AKi=new _.v("upsellDialogRenderer");var tdL=new _.v("feedbackQuestionRenderer"),cKA=new _.v("feedbackOptionRenderer");var SSn=new _.v("sponsorshipsTierRenderer"),p$X=new _.v("sponsorshipsPromotionChannelRenderer");var Uv5=new _.v("simpleSurveyMessageRenderer");var kvA=new _.v("invokeInstrumentManagerAction");var YSq=new _.v("logYpcFlowDismissCommand");var LwP=new _.v("logYpcFlowStartCommand");var MiY=new _.v("unlimitedCreateFamilyEndpoint");var IEA=new _.v("iconBadgeRenderer");var l9Y=new _.v("collaborativePlaylistVisibilityValidationRule");var dvY=function(S){_.Iw.call(this,"channelMessage");this.message=S};
_.r(dvY,_.Iw);var Viq=function(S){_.Iw.call(this,"channelError");this.error=S};
_.r(Viq,_.Iw);var THs={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"},Wws={UNKNOWN_THEME:"u",CLASSIC:"cl",KIDS:"k",INSTANT:"i",CREATOR:"cr",MUSIC:"m",
GAMING:"g",UNPLUGGED:"up"},OLE={AD_PLAYING:"adPlaying",ON_AD_STATE_CHANGE:"onAdStateChange"},kCJ={NOW_PLAYING:"nowPlaying",ON_STATE_CHANGE:"onStateChange",AD_PLAYING:"adPlaying",ON_AD_STATE_CHANGE:"onAdStateChange",NOW_PLAYING_SHORTS:"nowPlayingShorts",ON_SHORTS_STATE_CHANGE:"onShortsStateChange"},HLt={NOW_PLAYING_SHORTS:"nowPlayingShorts",ON_SHORTS_STATE_CHANGE:"onShortsStateChange"};var $f=function(S){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 _.Si;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";S&&(this.id=S.id||S.name,this.name=S.name,this.clientName=S.clientName?S.clientName.toUpperCase():"UNKNOWN_INTERFACE",this.app=S.app,this.type=S.type||"REMOTE_CONTROL",this.username=S.user||"",this.avatar=S.userAvatarUri||"",this.obfuscatedGaiaId=S.obfuscatedGaiaId||"",this.ownerObfuscatedGaiaId=S.ownerObfuscatedGaiaId||"",this.theme=S.theme||"u",Dvd(this,S.capabilities||""),zKq(this,S.compatibleSenderThemes||""),QUP(this,S.experiments||""),
this.remoteControllerUrl=S.remoteControllerUrl||"",this.localChannelEncryptionKey=S.localChannelEncryptionKey||"",this.deviceContext=S.deviceContext,this.brand=S.brand||"",this.model=S.model||"",this.year=S.year||0,this.os=S.os||"",this.osVersion=S.osVersion||"",this.chipset=S.chipset||"",this.mdxDialServerType=S.mdxDialServerType||"MDX_DIAL_SERVER_TYPE_UNKNOWN",this.pairingType=S.pairingType||"unknown",S=S.deviceInfo)&&(S=JSON.parse(S),this.brand=S.brand||"",this.model=S.model||"",this.year=S.year||
0,this.os=S.os||"",this.osVersion=S.osVersion||"",this.chipset=S.chipset||"",this.clientName=S.clientName?S.clientName.toUpperCase():"UNKNOWN_INTERFACE",this.mdxDialServerType=S.mdxDialServerType||"MDX_DIAL_SERVER_TYPE_UNKNOWN")};
$f.prototype.copy=function(){var S={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&&(S.brand=this.brand);
this.model&&(S.model=this.model);this.year&&(S.year=this.year);this.os&&(S.os=this.os);this.osVersion&&(S.osVersion=this.osVersion);this.chipset&&(S.chipset=this.chipset);this.clientName!=="UNKNOWN_INTERFACE"&&(S.clientName=this.clientName);this.mdxDialServerType!=="MDX_DIAL_SERVER_TYPE_UNKNOWN"&&(S.mdxDialServerType=this.mdxDialServerType);S=new $f(S);S.connected=this.connected;S.remoteControllerUrl=this.remoteControllerUrl;S.localChannelEncryptionKey=this.localChannelEncryptionKey;S.deviceContext=
this.deviceContext;return S};
$f.prototype.equals=function(S){return S?this.id==S.id:!1};
var Dvd=function(S,p){S.capabilities.clear();_.Ax(p.split(","),_.Hd(_.h9.contains,THs)).forEach(function(U){S.capabilities.add(U)})},zKq=function(S,p){S.compatibleSenderThemes.clear();
_.Ax(p.split(","),_.Hd(_.h9.contains,Wws)).forEach(function(U){S.compatibleSenderThemes.add(U)})},QUP=function(S,p){S.experiments.clear();
p.split(",").forEach(function(U){S.experiments.add(U)})};var nzq=function(S,p){this.action=S;this.params=p||{}};_.q_(MFJ,_.hY);_.M=MFJ.prototype;_.M.JSC$17484_onTick_=function(){this.JSC$17482_interval_=Math.min(3E5,this.JSC$17482_interval_*2);this.JSC$17484_listener_();this.nextTickTime_&&this.start()};
_.M.start=function(){var S=this.JSC$17482_interval_+15E3*Math.random(),p=this.delay_;p.isActive()||p.start(S);this.nextTickTime_=Date.now()+S};
_.M.stop=function(){this.delay_.stop();this.nextTickTime_=0};
_.M.isActive=function(){return this.delay_.isActive()};
_.M.reset=function(){this.delay_.stop();this.JSC$17482_interval_=5E3};_.q_(FZ,vro);_.M=FZ.prototype;_.M.subscribe=function(S,p,U){return this.pubsub_.subscribe(S,p,U)};
_.M.unsubscribe=function(S,p,U){return this.pubsub_.unsubscribe(S,p,U)};
_.M.unsubscribeByKey=function(S){return this.pubsub_.unsubscribeByKey(S)};
_.M.publish=function(S,p){return this.pubsub_.publish.apply(this.pubsub_,arguments)};
_.M.dispose=function(){this.JSC$17485_disposed_||(this.JSC$17485_disposed_=!0,_.t9(this.pubsub_),this.disconnect(),_.t9(this.reconnectTimer_),this.reconnectTimer_=null,this.JSC$17485_getXsrfToken_=function(){return""},this.getAuthorizationHeader_=function(){return _.Mw({})})};
_.M.isDisposed=function(){return this.JSC$17485_disposed_};
_.M.connect=function(S,p,U){var Y=this,L,I,V,W;return _.T(function(O){if(O.nextAddress==1)return _.V9(O,2),Y.useAsyncBrowserChannelHandler_?_.k(O,Y.connectPromise_,2):O.jumpTo(2);_.IO(O);if(Y.JSC$17485_disposed_||Y.JSC$17485_channel_&&Y.JSC$17485_channel_.getState()==2)return O.return();Y.sCookie_="";Y.reconnectTimer_.stop();Y.connectionParams_=S||null;Y.connectUi_=p||0;L=Y.JSC$17485_pathPrefix_+"/test";I=Y.JSC$17485_pathPrefix_+"/bind";V=new xf(U?U.firstTestResults:null,U?U.secondTestResults:null,
Y.enableAsyncTest_);if(W=Y.JSC$17485_channel_)W.handler_=null;V.handler_=Y;Y.JSC$17485_channel_=V;if(Y.useAsyncBrowserChannelHandler_)return Y.connectPromise_=Jhi(Y).then(function(){return yhd(Y,L,I,W,U)}),O.return(Y.connectPromise_.then(function(){Y.connectPromise_=_.Mw()}));
yhd(Y,L,I,W,U);return _.T7(O,0)})};
var yhd=function(S,p,U,Y,L){Kwt(S);if(S.JSC$17485_channel_){var I=_.g7("ID_TOKEN"),V=S.JSC$17485_channel_.JSC$17437_extraHeaders_||{};I?V["x-youtube-identity-token"]=I:delete V["x-youtube-identity-token"];S.JSC$17485_channel_.JSC$17437_extraHeaders_=V}bLo(S);Y?(Y.getState(),S.JSC$17485_channel_.connect(p,U,S.defaultQueryParams_,Y.sid_,Y.JSC$17437_lastArrayId_)):L?S.JSC$17485_channel_.connect(p,U,S.defaultQueryParams_,L.sessionId,L.arrayId):S.JSC$17485_channel_.connect(p,U,S.defaultQueryParams_)};
FZ.prototype.disconnect=function(S){try{this.useAsyncBrowserChannelHandler_&&(this.connectPromise_.cancel(),this.connectPromise_=_.Mw())}finally{this.disconnectUi_=S||0,this.reconnectTimer_&&this.reconnectTimer_.stop(),Kwt(this),this.JSC$17485_channel_&&(this.JSC$17485_channel_.getState()==3&&f0A(this.JSC$17485_channel_),this.JSC$17485_channel_.disconnect()),this.disconnectUi_=0}};
FZ.prototype.sendMessage=function(S,p){var U=this,Y;return _.T(function(L){switch(L.nextAddress){case 1:_.V9(L,2);if(!U.useAsyncBrowserChannelHandler_){L.jumpTo(2);break}return _.k(L,U.connectPromise_,2);case 2:_.IO(L);if(U.JSC$17485_disposed_)return L.return();Y={_sc:S};p&&_.h9.extend(Y,p);if(U.reconnectTimer_.isActive()||(U.JSC$17485_channel_?U.JSC$17485_channel_.getState():0)==2){U.JSC$17485_pendingMessages_.push(Y);L.jumpTo(6);break}if(!U.isChannelOpened()){L.jumpTo(6);break}_.V9(L,8);if(!U.useAsyncBrowserChannelHandler_||
jUX(U,S)){L.jumpTo(8);break}return _.k(L,Jhi(U),8);case 8:_.IO(L,0,0,1);U.isChannelOpened()&&(jUX(U,S)||bLo(U),Kwt(U),a0t(U.JSC$17485_channel_,Y));_.T7(L,6,1);break;case 6:_.T7(L,0)}})};
var jUX=function(S,p){return S.enableMdxAuthForConnectionOnly_?!0:S.disableMdxAuthForAdMessages_?Object.values(OLE).includes(p):S.disableMdxAuthForNonPlaybackMessages_?!Object.values(kCJ).includes(p):S.disableMdxAuthForShortsMessages_?Object.values(HLt).includes(p):!1};
FZ.prototype.JSC$17444_channelOpened=function(){this.reconnectTimer_.reset();this.connectionParams_=null;this.connectUi_=0;if(this.JSC$17485_pendingMessages_.length)if(this.useAsyncBrowserChannelHandler_)rhA(this);else{var S=this.JSC$17485_pendingMessages_;this.JSC$17485_pendingMessages_=[];var p=S.length;bLo(this);GC5(this,S,p);hKi(this)}else hKi(this)};
var rhA=function(S){var p,U;_.T(function(Y){if(Y.nextAddress==1)return _.V9(Y,2),_.k(Y,Jhi(S),2);_.IO(Y);p=S.JSC$17485_pendingMessages_;S.JSC$17485_pendingMessages_=[];U=p.length;GC5(S,p,U);hKi(S);return _.T7(Y,0)})},GC5=function(S,p,U){for(var Y=0;Y<U;++Y)a0t(S.JSC$17485_channel_,p[Y]);
hKi(S)},hKi=function(S){S.publish("handlerOpened");
S.JSC$17485_channelOpenedCounter.increment("BROWSER_CHANNEL")};
_.M=FZ.prototype;_.M.JSC$17444_channelError=function(S){var p=S==2&&this.JSC$17485_channel_.JSC$17437_lastStatusCode_==401;S==4||p||this.reconnectTimer_.start();this.publish("handlerError",S,p);p=Object.keys(PaJ).find(function(U){return PaJ[U]===S});
this.JSC$17485_channelErrorCounter.increment("BROWSER_CHANNEL",p!=null?p:"UNKNOWN")};
_.M.JSC$17444_channelClosed=function(S,p){if(!this.reconnectTimer_.isActive())this.publish("handlerClosed");else if(p)for(var U=p.length,Y=0;Y<U;++Y){var L=p[Y].map;L&&this.JSC$17485_pendingMessages_.push(L)}this.JSC$17485_channelClosedCounter.increment("BROWSER_CHANNEL");S&&this.pendingMapsOnClosedCounter.JSC$7938_streamzService.JSC$7796_incrementCounterBy("/client_streamz/youtube/living_room/mdx/browser_channel/pending_maps",S.length);p&&this.undeliveredMapsOnClosedCounter.JSC$7941_streamzService.JSC$7796_incrementCounterBy("/client_streamz/youtube/living_room/mdx/browser_channel/undelivered_maps",
p.length)};
_.M.JSC$17444_channelSuccess=function(S,p){p!=null&&S!=null&&this.channelMessageSentCounter.increment()};
_.M.JSC$17444_getAdditionalParams=function(){var S={v:2};this.sCookie_&&(S.gsessionid=this.sCookie_);this.connectUi_!=0&&(S.ui=""+this.connectUi_);this.disconnectUi_!=0&&(S.ui=""+this.disconnectUi_);this.connectionParams_&&_.h9.extend(S,this.connectionParams_);return S};
_.M.JSC$17444_channelHandleArray=function(S){S[0]=="S"?this.sCookie_=S[1]:S[0]=="gracefulReconnect"?(this.reconnectTimer_.start(),this.JSC$17485_channel_.disconnect()):this.publish("handlerMessage",new nzq(S[0],S[1]));this.JSC$17485_channelMessageReceivedCounter.increment("BROWSER_CHANNEL")};
_.M.isChannelOpened=function(){return!!this.JSC$17485_channel_&&this.JSC$17485_channel_.getState()==3};
var Kwt=function(S){if(S.JSC$17485_channel_){var p=S.JSC$17485_getXsrfToken_(),U=S.JSC$17485_channel_.JSC$17437_extraHeaders_||{};p?U["x-youtube-lounge-xsrf-token"]=p:delete U["x-youtube-lounge-xsrf-token"];S.JSC$17485_channel_.JSC$17437_extraHeaders_=U}},Jhi=function(S){if(S.enableAsyncMdxLibraryWithoutAuthHeaderFetch_)return _.Mw();
if(!S.enableCachedUpdateAuthorizationHeader_)return RKt(S);S.updateAuthorizationHeaderPromise_===null&&(S.updateAuthorizationHeaderPromise_=RKt(S));return S.updateAuthorizationHeaderPromise_},RKt=function(S){return _.zB(S.getAuthorizationHeader_().then(function(p){FwX(S,p)}).thenCatch(function(){}),function(){S.updateAuthorizationHeaderPromise_=null})},FwX=function(S,p){if(S.JSC$17485_channel_){var U=S.JSC$17485_channel_.JSC$17437_extraHeaders_||{};
p&&Object.keys(p).length>0?U=Object.assign({},U,p):delete U.Authorization;S.JSC$17485_channel_.JSC$17437_extraHeaders_=U}},bLo=function(S){S.getAuthorizationHeaderSync_&&!S.useAsyncBrowserChannelHandler_&&FwX(S,S.getAuthorizationHeaderSync_())};
_.M=FZ.prototype;_.M.setLoungeToken=function(S){(this.defaultQueryParams_.loungeIdToken=S)||this.reconnectTimer_.stop();if(this.enableLoungeTokenRefresh_&&this.JSC$17485_channel_){var p=this.JSC$17485_channel_.JSC$17437_extraHeaders_||{};S?p["X-YouTube-LoungeId-Token"]=S:delete p["X-YouTube-LoungeId-Token"];this.JSC$17485_channel_.JSC$17437_extraHeaders_=p}};
_.M.getDeviceId=function(){return this.defaultQueryParams_.id};
_.M.getReconnectTimeout=function(){return this.reconnectTimer_.isActive()?this.reconnectTimer_.nextTickTime_-Date.now():NaN};
_.M.reconnect=function(){var S=this.reconnectTimer_;S.delay_.fire();S.start()};
_.M.safeReconnect_=function(){var S=this.JSC$17485_channel_,p=0;S.JSC$17437_backChannelRequest_&&p++;S.forwardChannelRequest_&&p++;p==0&&this.connect(this.connectionParams_,this.connectUi_)};var ud=function(S,p){var U=S.basePath;S.supportCors&&(U=S.scheme+"://"+S.domain+S.port+S.basePath);return _.vQ(U+p,{})};
XZ.prototype.sendRequest=function(S,p,U,Y,L,I,V){S={format:I?"RAW":"JSON",method:S,context:this,timeout:5E3,withCredentials:!!V,onSuccess:_.Hd(this.JSC$17490_onSuccess_,Y,!I),onError:_.Hd(this.onError_,L),onTimeout:_.Hd(this.JSC$17490_onTimeout_,L)};U&&(S.postParams=U,S.headers={"Content-Type":"application/x-www-form-urlencoded"});return _.WS(p,S)};
XZ.prototype.JSC$17490_onSuccess_=function(S,p,U,Y){p?S(Y):S({text:U.responseText})};
XZ.prototype.onError_=function(S,p){S(Error("Ak`"+p.status))};
XZ.prototype.JSC$17490_onTimeout_=function(S){S(Error("Bk"))};var Z8=function(S,p){return!!p&&(S.id==p||S.uuid==p)},X$5=function(S){return{name:S.name,
screenId:S.id,loungeToken:S.token,dialId:S.uuid,screenIdType:S.idType}},PsA=function(S){return new P2(S)},ZLi=function(S){return Array.isArray(S)?_.Fp(S,PsA):[]},DUd=function(S){if(!S)return"null";
var p=S.token?".."+S.token.slice(-6):"-",U=S.uuid?".."+S.uuid.slice(-6):"-";return'{name:"'+S.name+'",id:'+S.id.substr(0,6)+"..,token:"+(p+",uuid:"+U+",idType:"+S.idType+"}")},m0A=function(S){return Array.isArray(S)?"["+_.Fp(S,DUd).join(",")+"]":"null"};var jHd="",gF=null;var sHn=function(S,p){_.OD.call(this);var U=this;this.handler=S();this.handler.subscribe("handlerOpened",this.JSC$17497_onOpened,this);this.handler.subscribe("handlerClosed",this.onClosed,this);this.handler.subscribe("handlerError",function(Y,L){U.onError(L)});
this.handler.subscribe("handlerMessage",this.onMessage,this);this.currentScreenId=p};
_.r(sHn,_.OD);_.M=sHn.prototype;_.M.connect=function(S,p,U){this.handler.connect(S,p,U)};
_.M.disconnect=function(S){this.handler.disconnect(S)};
_.M.reconnect=function(){this.handler.reconnect()};
_.M.getDeviceId=function(){return this.handler.getDeviceId()};
_.M.getReconnectTimeout=function(){return this.handler.getReconnectTimeout()};
_.M.isChannelOpened=function(){return this.handler.isChannelOpened()};
_.M.JSC$17497_onOpened=function(){this.dispatchEvent("channelOpened");var S=this.handler,p=this.currentScreenId;_.p$("yt-remote-session-browser-channel",{firstTestResults:[""],secondTestResults:!S.JSC$17485_channel_.useChunked_,sessionId:S.JSC$17485_channel_.sid_,arrayId:S.JSC$17485_channel_.JSC$17437_lastArrayId_});_.p$("yt-remote-session-screen-id",p);S=QHn();p=nus();_.ou(S,p)||S.push(p);bZt(S);K$L()};
_.M.onClosed=function(){this.dispatchEvent("channelClosed")};
_.M.onMessage=function(S){this.dispatchEvent(new dvY(S))};
_.M.onError=function(S){this.dispatchEvent(new Viq(S?1:0))};
_.M.sendMessage=function(S,p){this.handler.sendMessage(S,p)};
_.M.setLoungeToken=function(S){this.handler.setLoungeToken(S)};
_.M.dispose=function(){this.handler.dispose()};var ZZi=function(S,p,U){var Y=this;U=U===void 0?function(){return""}:U;
var L=L===void 0?new UVT:L;var I=I===void 0?new _.kU:I;this.pathPrefix=S;this.defaultQueryParams=p;this.getXsrfToken=U;this.JSC$17500_pubsub=I;this.connectionParams=null;this.disconnectUi=this.connectUi=0;this.channel=null;this.channelState=0;this.reconnectTimer=new MFJ(function(){var V;((V=Y.channel)==null?void 0:sEP((new M0s(V,V.JSC$17408_channel_)).JSC$17418_channel_.forwardChannelRequestPool_))===0&&Y.connect(Y.connectionParams,Y.connectUi)});
this.webChannelMessageHeaders={};this.webChannelMessageUrlParams={};this.JSC$17500_disposed=!1;this.logger=null;this.nonAckedMessagesOnChannelClosed=[];this.lastStatusCode=void 0;this.JSC$17500_channelOpenedCounter=new Icd;this.JSC$17500_channelClosedCounter=new d0q;this.JSC$17500_channelMessageReceivedCounter=new TVn;this.JSC$17500_channelErrorCounter=new W$L};
ZZi.prototype.connect=function(S,p){S=S===void 0?{}:S;p=p===void 0?0:p;this.channelState!==2&&(this.reconnectTimer.stop(),this.connectionParams=S,this.connectUi=p,sUo(this),(S=_.g7("ID_TOKEN"))?this.webChannelMessageHeaders["x-youtube-identity-token"]=S: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 gh(this.pathPrefix,{httpSessionIdParam:"gsessionid",messageHeaders:this.webChannelMessageHeaders,
messageUrlParams:this.webChannelMessageUrlParams}),this.channel.open(),this.channelState=2,eKA(this))};
var eKA=function(S){_.Kz(S.channel,"w",function(){S.channelState=3;S.reconnectTimer.reset();S.connectionParams=null;S.connectUi=0;for(var p=_.d(S.nonAckedMessagesOnChannelClosed),U=p.next();!U.done;U=p.next())U=U.value,S.channel&&S.channel.send(U);S.nonAckedMessagesOnChannelClosed=[];S.publish("webChannelOpened");S.JSC$17500_channelOpenedCounter.increment("WEB_CHANNEL")});
_.Kz(S.channel,"x",function(){S.channelState=0;S.reconnectTimer.isActive()||S.publish("webChannelClosed");var p,U=(p=S.channel)==null?void 0:I0X(new M0s(p,p.JSC$17408_channel_));U&&(S.nonAckedMessagesOnChannelClosed=[].concat(_.jo(U)));S.JSC$17500_channelClosedCounter.increment("WEB_CHANNEL")});
_.Kz(S.channel,"z",function(p){var U=p.data;U[0]==="gracefulReconnect"?(S.reconnectTimer.start(),S.channel&&S.channel.close()):S.publish("webChannelMessage",new nzq(U[0],U[1]));S.lastStatusCode=p.statusCode;S.JSC$17500_channelMessageReceivedCounter.increment("WEB_CHANNEL")});
_.Kz(S.channel,"y",function(){S.lastStatusCode===401||S.reconnectTimer.start();S.publish("webChannelError");S.JSC$17500_channelErrorCounter.increment("WEB_CHANNEL","")})};
_.M=ZZi.prototype;_.M.disconnect=function(S){this.disconnectUi=S===void 0?0:S;this.reconnectTimer.stop();sUo(this);this.channel&&(this.disconnectUi!==0?this.webChannelMessageUrlParams.ui=""+this.disconnectUi:delete this.webChannelMessageUrlParams.ui,this.channel.close());this.disconnectUi=0};
_.M.getReconnectTimeout=function(){return this.reconnectTimer.isActive()?this.reconnectTimer.nextTickTime_-Date.now():NaN};
_.M.reconnect=function(){var S=this.reconnectTimer;S.delay_.fire();S.start()};
_.M.sendMessage=function(S,p){this.channel&&(sUo(this),S=Object.assign({},{_sc:S},p),this.channel.send(S))};
_.M.setLoungeToken=function(S){S||this.reconnectTimer.stop();S?this.webChannelMessageHeaders["X-YouTube-LoungeId-Token"]=S:delete this.webChannelMessageHeaders["X-YouTube-LoungeId-Token"]};
var sUo=function(S){var p=S.getXsrfToken();p?S.webChannelMessageHeaders["x-youtube-lounge-xsrf-token"]=p:delete S.webChannelMessageHeaders["x-youtube-lounge-xsrf-token"]};
_.M=ZZi.prototype;_.M.getDeviceId=function(){return this.defaultQueryParams?this.defaultQueryParams.id:""};
_.M.publish=function(S){return this.JSC$17500_pubsub.publish.apply(this.JSC$17500_pubsub,[S].concat(_.jo(_.jO.apply(1,arguments))))};
_.M.subscribe=function(S,p,U){return this.JSC$17500_pubsub.subscribe(S,p,U)};
_.M.unsubscribe=function(S,p,U){return this.JSC$17500_pubsub.unsubscribe(S,p,U)};
_.M.unsubscribeByKey=function(S){return this.JSC$17500_pubsub.unsubscribeByKey(S)};
_.M.dispose=function(){this.JSC$17500_disposed||(this.JSC$17500_disposed=!0,_.t9(this.JSC$17500_pubsub),this.disconnect(),_.t9(this.reconnectTimer),this.getXsrfToken=function(){return""})};
_.M.isDisposed=function(){return this.JSC$17500_disposed};var PNX=function(S){_.OD.call(this);this.webChannelService=S();this.webChannelService.subscribe("webChannelOpened",this.JSC$17508_onOpened,this);this.webChannelService.subscribe("webChannelClosed",this.onClosed,this);this.webChannelService.subscribe("webChannelError",this.onError,this);this.webChannelService.subscribe("webChannelMessage",this.onMessage,this)};
_.r(PNX,_.OD);_.M=PNX.prototype;_.M.connect=function(S,p){this.webChannelService.connect(S,p)};
_.M.disconnect=function(S){this.webChannelService.disconnect(S)};
_.M.reconnect=function(){this.webChannelService.reconnect()};
_.M.getDeviceId=function(){return this.webChannelService.getDeviceId()};
_.M.getReconnectTimeout=function(){return this.webChannelService.getReconnectTimeout()};
_.M.isChannelOpened=function(){return this.webChannelService.channelState===3};
_.M.JSC$17508_onOpened=function(){this.dispatchEvent("channelOpened")};
_.M.onClosed=function(){this.dispatchEvent("channelClosed")};
_.M.onMessage=function(S){this.dispatchEvent(new dvY(S))};
_.M.onError=function(){this.dispatchEvent(new Viq(this.webChannelService.lastStatusCode===401?1:0))};
_.M.sendMessage=function(S,p){this.webChannelService.sendMessage(S,p)};
_.M.setLoungeToken=function(S){this.webChannelService.setLoungeToken(S)};
_.M.dispose=function(){this.webChannelService.dispose()};var EuE=Date.now(),wF=null,CNJ=Array(50),fi=-1,x0T=!1;_.q_(Ci,_.qS);Ci.prototype.getScreens=function(){return this.screens};
Ci.prototype.contains=function(S){return!!zkX(this.screens,S)};
Ci.prototype.get=function(S){return S?sJ(this.screens,S):null};
var gzA=function(S,p){var U=S.get(p.uuid)||S.get(p.id);if(U)return S=U.name,U.id=p.id||U.id,U.name=p.name,U.token=p.token,U.uuid=p.uuid||U.uuid,U.name!=S;S.screens.push(p);return!0},u4q=function(S,p){var U=S.screens.length!=p.length;
S.screens=_.Ax(S.screens,function(I){return!!zkX(p,I)});
for(var Y=p.length,L=0;L<Y;L++)U=gzA(S,p[L])||U;return U},w$q=function(S,p){var U=S.screens.length;
S.screens=_.Ax(S.screens,function(Y){return!(Y||p?!Y!=!p?0:Y.id==p.id:1)});
return S.screens.length<U};
Ci.prototype.info=function(S){ld(this.JSC$17509_logName_,S)};var lEq=function(S,p,U,Y,L){_.qS.call(this);this.JSC$17512_http_=S;this.pairingCode_=p;this.deviceId_=U;this.friendlyName_=Y;this.enableShortLivedLoungeToken_=L;this.pollIndex_=0;this.JSC$17512_xhr_=null;this.JSC$17512_timer_=NaN};
_.r(lEq,_.qS);_.M=lEq.prototype;_.M.start=function(){!this.JSC$17512_xhr_&&isNaN(this.JSC$17512_timer_)&&this.poll_()};
_.M.stop=function(){this.JSC$17512_xhr_&&(this.JSC$17512_xhr_.abort(),this.JSC$17512_xhr_=null);isNaN(this.JSC$17512_timer_)||(_.V7(this.JSC$17512_timer_),this.JSC$17512_timer_=NaN)};
_.M.disposeInternal=function(){this.stop();_.qS.prototype.disposeInternal.call(this)};
_.M.poll_=function(){this.JSC$17512_timer_=NaN;this.JSC$17512_xhr_=_.WS(ud(this.JSC$17512_http_,"/pairing/get_screen"),{method:"POST",postParams:{pairing_code:this.pairingCode_},timeout:5E3,onSuccess:(0,_.RW)(this.JSC$17514_onSuccess_,this),onError:(0,_.RW)(this.onError_,this),onTimeout:(0,_.RW)(this.JSC$17514_onTimeout_,this)})};
_.M.JSC$17514_onSuccess_=function(S,p){this.JSC$17512_xhr_=null;S=p.screen||{};S.dialId=this.deviceId_;S.name=this.friendlyName_;p=-1;this.enableShortLivedLoungeToken_&&S.shortLivedLoungeToken&&S.shortLivedLoungeToken.value&&S.shortLivedLoungeToken.refreshIntervalMs&&(S.screenIdType="shortLived",S.loungeToken=S.shortLivedLoungeToken.value,p=S.shortLivedLoungeToken.refreshIntervalMs);this.publish("pairingComplete",new P2(S),p)};
_.M.onError_=function(S){this.JSC$17512_xhr_=null;S.status&&S.status==404?this.pollIndex_>=aEt.length?this.publish("pairingFailed",Error("Ck")):(S=aEt[this.pollIndex_],this.JSC$17512_timer_=_.MT((0,_.RW)(this.poll_,this),S),this.pollIndex_++):this.publish("pairingFailed",Error("Dk`"+S.status))};
_.M.JSC$17514_onTimeout_=function(){this.JSC$17512_xhr_=null;this.publish("pairingFailed",Error("Ek"))};
var aEt=[2E3,2E3,1E3,1E3,1E3,2E3,2E3,5E3,5E3,1E4];_.q_(EJ,Ci);_.M=EJ.prototype;_.M.start=function(){x3(this)&&this.publish("screenChange");!_.Uz("yt-remote-lounge-token-expiration")&&fEo(this);_.V7(this.loungeTokenRefreshTimer_);this.loungeTokenRefreshTimer_=_.MT((0,_.RW)(this.start,this),1E4)};
_.M.add=function(S,p){x3(this);gzA(this,S);CsT(this,!1);this.publish("screenChange");p(S);S.token||fEo(this)};
_.M.remove=function(S,p){var U=x3(this);w$q(this,S)&&(CsT(this,!1),U=!0);p(S);U&&this.publish("screenChange")};
_.M.updateName=function(S,p,U,Y){var L=x3(this),I=this.get(S.id);I?(I.name!=p&&(I.name=p,CsT(this,!1),L=!0),U(S)):Y(Error("Fk"));L&&this.publish("screenChange")};
_.M.disposeInternal=function(){_.V7(this.loungeTokenRefreshTimer_);EJ.superClass_.disposeInternal.call(this)};
var fEo=function(S){if(S.screens.length){var p=_.Fp(S.screens,function(Y){return Y.id}),U=ud(S.JSC$17516_http_,"/pairing/get_lounge_token_batch");
S.JSC$17516_http_.sendRequest("POST",U,{screen_ids:p.join(",")},(0,_.RW)(S.handleLoungeTokens_,S),(0,_.RW)(S.handleLoungeTokenError_,S))}};
EJ.prototype.handleLoungeTokens_=function(S){x3(this);var p=this.screens.length;S=S&&S.screens||[];for(var U=S.length,Y=0;Y<U;++Y){var L=S[Y],I=this.get(L.screenId);I&&(I.token=L.loungeToken,--p)}CsT(this,!p);p&&ld(this.JSC$17509_logName_,"Missed "+p+" lounge tokens.")};
EJ.prototype.handleLoungeTokenError_=function(S){ld(this.JSC$17509_logName_,"Requesting lounge tokens failed: "+S)};
var x3=function(S){if(_.y("deprecate_pair_servlet_enabled"))return u4q(S,[]);var p=ZLi(GTo());p=_.Ax(p,function(U){return!U.uuid});
return u4q(S,p)},CsT=function(S,p){RkP(_.Fp(S.screens,X$5));
p&&hk5()};var i_=function(S,p){_.qS.call(this);this.getScreensToCheck_=p;p=(p=_.Uz("yt-remote-online-screen-ids")||"")?p.split(","):[];for(var U={},Y=this.getScreensToCheck_(),L=Y.length,I=0;I<L;++I){var V=Y[I].id;U[V]=_.ou(p,V)}this.screenIdSet_=U;this.JSC$17519_http_=S;this.refreshTimer_=this.fastCheckEndTime_=NaN;this.currentRequest_=null;xvX("Initialized with "+(0,_.J2)(this.screenIdSet_))};
_.r(i_,_.qS);i_.prototype.isOnline=function(S){return!!this.screenIdSet_[S]};
i_.prototype.start=function(){var S=parseInt(_.Uz("yt-remote-fast-check-period")||"0",10);(this.fastCheckEndTime_=_.BO()-144E5<S?0:S)?Ezd(this):(this.fastCheckEndTime_=_.BO()+3E5,_.p$("yt-remote-fast-check-period",this.fastCheckEndTime_),this.requestScreenAvailability_())};
i_.prototype.isEmpty=function(){return _.h9.isEmpty(this.screenIdSet_)};
i_.prototype.update=function(){xvX("Updating availability on schedule.");var S=this.getScreensToCheck_(),p=_.h9.filter(this.screenIdSet_,function(U,Y){return U&&!!sJ(S,Y)},this);
mvL(this,p)};
var ozA=function(S,p,U){var Y=ud(S.JSC$17519_http_,"/pairing/get_screen_availability");S.JSC$17519_http_.sendRequest("POST",Y,{lounge_token:p.token},(0,_.RW)(function(L){L=L.screens||[];for(var I=L.length,V=0;V<I;++V)if(L[V].loungeToken==p.token){U(L[V].status=="online");return}U(!1)},S),(0,_.RW)(function(){U(!1)},S))};
i_.prototype.disposeInternal=function(){_.V7(this.refreshTimer_);this.refreshTimer_=NaN;this.currentRequest_&&(this.currentRequest_.abort(),this.currentRequest_=null);_.qS.prototype.disposeInternal.call(this)};
var mvL=function(S,p){a:if(_.h9.getCount(p)!=_.h9.getCount(S.screenIdSet_))var U=!1;else{U=_.h9.getKeys(p);for(var Y=U.length,L=0;L<Y;++L)if(!S.screenIdSet_[U[L]]){U=!1;break a}U=!0}U||(xvX("Updated online screens: "+(0,_.J2)(S.screenIdSet_)),S.screenIdSet_=p,S.publish("screenChange"));vzJ(S)},Ezd=function(S){isNaN(S.refreshTimer_)||_.V7(S.refreshTimer_);
S.refreshTimer_=_.MT((0,_.RW)(S.requestScreenAvailability_,S),S.fastCheckEndTime_>0&&S.fastCheckEndTime_<_.BO()?2E4:1E4)};
i_.prototype.requestScreenAvailability_=function(){_.V7(this.refreshTimer_);this.refreshTimer_=NaN;this.currentRequest_&&this.currentRequest_.abort();var S=$vs(this);if(_.h9.getCount(S)){var p=ud(this.JSC$17519_http_,"/pairing/get_screen_availability"),U={lounge_token:_.h9.getKeys(S).join(",")};this.currentRequest_=this.JSC$17519_http_.sendRequest("POST",p,U,(0,_.RW)(this.onScreenAvailability_,this,S),(0,_.RW)(this.onScreenAvailabilityError_,this))}else mvL(this,{}),Ezd(this)};
i_.prototype.onScreenAvailability_=function(S,p){this.currentRequest_=null;var U=_.h9.getKeys($vs(this));if(_.dm(U,_.h9.getKeys(S))){p=p.screens||[];U={};for(var Y=p.length,L=0;L<Y;++L)U[S[p[L].loungeToken]]=p[L].status=="online";mvL(this,U);Ezd(this)}else this.warn_("Changing Screen set during request."),this.requestScreenAvailability_()};
i_.prototype.onScreenAvailabilityError_=function(S){this.warn_("Screen availability failed: "+S);this.currentRequest_=null;Ezd(this)};
var xvX=function(S){ld("OnlineScreenService",S)};
i_.prototype.warn_=function(S){ld("OnlineScreenService",S)};
var $vs=function(S){var p={};_.xs(S.getScreensToCheck_(),function(U){U.token?p[U.token]=U.id:this.warn_("Requesting availability of screen w/o lounge token.")});
return p},vzJ=function(S){S=_.h9.getKeys(_.h9.filter(S.screenIdSet_,function(p){return p}));
S.sort(_.Lc);S.length?_.p$("yt-remote-online-screen-ids",S.join(","),60):_.Y2("yt-remote-online-screen-ids")};_.q_(mN,Ci);_.M=mN.prototype;_.M.start=function(){this.localScreenService_.start();this.onlineScreenService_.start();this.screens.length&&(this.publish("screenChange"),this.onlineScreenService_.isEmpty()||this.publish("onlineScreenChange"))};
_.M.add=function(S,p,U){this.localScreenService_.add(S,p,U)};
_.M.remove=function(S,p,U){this.localScreenService_.remove(S,p,U);this.onlineScreenService_.update()};
_.M.updateName=function(S,p,U,Y){this.localScreenService_.contains(S)?this.localScreenService_.updateName(S,p,U,Y):(S="Updating name of unknown screen: "+S.name,ld(this.JSC$17509_logName_,S),Y(Error(S)))};
_.M.getScreens=function(S){return S?this.screens:ewE(this.screens,_.Ax(this.automaticScreens_,function(p){return!this.contains(p)},this))};
_.M.JSC$17524_getOnlineScreens=function(){return _.Ax(this.getScreens(!0),function(S){return this.onlineScreenService_.isOnline(S.id)},this)};
var NHT=function(S,p,U,Y,L,I){S.info("getAutomaticScreenByIds "+U+" / "+p);U||(U=S.deviceToScreenId_[p]);var V=S.getScreens(),W=U?sJ(V,U):null;U&&(S.disableAutomaticScreenCache_||W)||(W=sJ(V,p));if(W){W.uuid=p;var O=Ne(S,W);ozA(S.onlineScreenService_,O,function(D){L(D?O:null)})}else U?iLJ(S,U,(0,_.RW)(function(D){var z=Ne(this,new P2({name:Y,
screenId:U,loungeToken:D,dialId:p||""}));ozA(this.onlineScreenService_,z,function(Q){L(Q?z:null)})},S),I):L(null)};
mN.prototype.JSC$17524_getScreenByPollingPairingCode=function(S,p,U,Y,L,I){var V=this;this.info("getDialScreenByPairingCode "+S+" / "+p);var W=new lEq(this.JSC$17522_http_,S,p,U,Y);W.subscribe("pairingComplete",function(O,D){_.t9(W);L(Ne(V,O),D)});
W.subscribe("pairingFailed",function(O){_.t9(W);I(O)});
W.start();return(0,_.RW)(W.stop,W)};
var BHn=function(S,p){for(var U=S.screens.length,Y=0;Y<U;++Y)if(S.screens[Y].name==p)return S.screens[Y];return null};
mN.prototype.JSC$17524_getScreenByPairingCode=function(S,p,U,Y){_.WS(ud(this.JSC$17522_http_,"/pairing/get_screen"),{method:"POST",postParams:{pairing_code:S},timeout:5E3,onSuccess:(0,_.RW)(function(L,I){L=new P2(I.screen||{});if(!L.name||BHn(this,L.name)){a:{I=L.name;for(var V=2,W=p(I,V);BHn(this,W);){V++;if(V>20)break a;W=p(I,V)}I=W}L.name=I}U(Ne(this,L))},this),
onError:(0,_.RW)(function(L){Y(Error("Gk`"+L.status))},this),
onTimeout:(0,_.RW)(function(){Y(Error("Hk"))},this)})};
var qSt=function(S,p,U){ozA(S.onlineScreenService_,p,U)};
mN.prototype.disposeInternal=function(){_.t9(this.localScreenService_);_.t9(this.onlineScreenService_);mN.superClass_.disposeInternal.call(this)};
var iLJ=function(S,p,U,Y){S.info("requestLoungeToken_ for "+p);var L={postParams:{screen_ids:p},method:"POST",context:S,onSuccess:function(I,V){I=V&&V.screens||[];I[0]&&I[0].screenId==p?U(I[0].loungeToken):Y(Error("Ik"))},
onError:function(){Y(Error("Jk"))}};
_.WS(ud(S.JSC$17522_http_,"/pairing/get_lounge_token_batch"),L)},AhL=function(S){S.screens=S.localScreenService_.getScreens();
for(var p=_.h9.transpose(S.deviceToScreenId_),U=S.screens.length,Y=0;Y<U;++Y){var L=S.screens[Y];L.uuid=p[L.id]||""}S.info("Updated manual screens: "+m0A(S.screens))};
mN.prototype.handleScreenChange_=function(){AhL(this);this.publish("screenChange");this.onlineScreenService_.update()};
var ou5=function(S){tio(S);S.localScreenService_=new EJ(S.JSC$17522_http_);S.localScreenService_.subscribe("screenChange",(0,_.RW)(S.handleScreenChange_,S));AhL(S);S.disableAutomaticScreenCache_||(S.automaticScreens_=ZLi(_.Uz("yt-remote-automatic-screen-cache")||[]));tio(S);S.info("Initializing automatic screens: "+m0A(S.automaticScreens_));S.onlineScreenService_=new i_(S.JSC$17522_http_,(0,_.RW)(S.getScreens,S,!0));S.onlineScreenService_.subscribe("screenChange",(0,_.RW)(function(){this.publish("onlineScreenChange")},
S))},Ne=function(S,p){var U=S.get(p.id);
U?(U.uuid=p.uuid,p=U):((U=sJ(S.automaticScreens_,p.uuid))?(U.id=p.id,U.token=p.token,p=U):S.automaticScreens_.push(p),S.disableAutomaticScreenCache_||chd(S));tio(S);S.deviceToScreenId_[p.uuid]=p.id;_.p$("yt-remote-device-id-map",S.deviceToScreenId_,31536E3);return p},chd=function(S){S=_.Ax(S.automaticScreens_,function(p){return p.idType!="shortLived"});
_.p$("yt-remote-automatic-screen-cache",_.Fp(S,X$5))},tio=function(S){S.deviceToScreenId_=_.Uz("yt-remote-device-id-map")||{}};
mN.prototype.dispose=mN.prototype.dispose;_.q_(o$,_.qS);var Bu=function(S,p){S.screen_=p;S.publish("sessionScreen",S.screen_)},SO5=function(S,p){S.screen_&&(S.screen_.token=p,Ne(S.JSC$17526_screenService_,S.screen_));
S.publish("sessionScreen",S.screen_)};
o$.prototype.onSessionStopped=function(S){this.isDisposed()||(S&&(qe(this,""+S),this.publish("sessionFailed")),this.screen_=null,this.publish("sessionScreen",null))};
o$.prototype.info=function(S){ld(this.JSC$17526_logName_,S)};
var qe=function(S,p){ld(S.JSC$17526_logName_,p)};
o$.prototype.JSC$17528_getCastSession=function(){return null};
o$.prototype.setDisplayStatus=function(S){var p=this.receiver_;S?(p.displayStatus=new chrome.cast.ReceiverDisplayStatus(S,[]),p.displayStatus.showStop=!0):p.displayStatus=null;chrome.cast.setReceiverDisplayStatus(p,(0,_.RW)(function(){this.info("Updated receiver status for "+p.friendlyName+": "+S)},this),(0,_.RW)(function(){qe(this,"Failed to update receiver status for: "+p.friendlyName)},this))};
o$.prototype.disposeInternal=function(){this.setDisplayStatus("");o$.superClass_.disposeInternal.call(this)};var AG=function(S,p,U){o$.call(this,S,p,"CastSession");var Y=this;this.config_=U;this.JSC$17531_session_=null;this.JSC$17531_boundSessionUpdate_=(0,_.RW)(this.JSC$17533_onSessionUpdate_,this);this.boundYoutubeMessage_=(0,_.RW)(this.onYoutubeMessage_,this);this.sessionStatusTimeoutKey_=_.MT(function(){pjP(Y,null)},12E4);
this.getLoungeTokenTimeoutKey_=this.onLoungeTokenTimeoutKey_=this.JSC$17531_checkScreenAvailabilityTimeoutKey_=this.getScreenTimeoutKey_=0;this.JSC$17531_isInitLoungeToken_=!1;this.JSC$17531_lastLoungeTokenRefreshError_="unknown"};
_.r(AG,o$);_.M=AG.prototype;
_.M.setCastSession=function(S){if(this.JSC$17531_session_){if(this.JSC$17531_session_==S)return;qe(this,"Overriding cast session with new session object");Ucd(this);this.JSC$17531_isInitLoungeToken_=!1;this.JSC$17531_lastLoungeTokenRefreshError_="unknown";this.JSC$17531_session_.removeUpdateListener(this.JSC$17531_boundSessionUpdate_);this.JSC$17531_session_.removeMessageListener("urn:x-cast:com.google.youtube.mdx",this.boundYoutubeMessage_)}this.JSC$17531_session_=S;this.JSC$17531_session_.addUpdateListener(this.JSC$17531_boundSessionUpdate_);this.JSC$17531_session_.addMessageListener("urn:x-cast:com.google.youtube.mdx",
this.boundYoutubeMessage_);YOJ(this,"getMdxSessionStatus")};
_.M.launchWithParams=function(S){this.info("launchWithParams no-op for Cast: "+(0,_.J2)(S))};
_.M.stop=function(){if(this.JSC$17531_session_)this.JSC$17531_session_.stop((0,_.RW)(function(){this.onSessionStopped()},this),(0,_.RW)(function(){this.onSessionStopped(Error("Kk"))},this));
else this.onSessionStopped(Error("Lk"))};
_.M.setDisplayStatus=function(){};
_.M.disposeInternal=function(){this.info("disposeInternal");Ucd(this);this.JSC$17531_session_&&(this.JSC$17531_session_.removeUpdateListener(this.JSC$17531_boundSessionUpdate_),this.JSC$17531_session_.removeMessageListener("urn:x-cast:com.google.youtube.mdx",this.boundYoutubeMessage_));this.JSC$17531_session_=null;o$.prototype.disposeInternal.call(this)};
var MqA=function(S,p){_.V7(S.getLoungeTokenTimeoutKey_);S.getLoungeTokenTimeoutKey_=0;p==0?LSs(S):S.getLoungeTokenTimeoutKey_=_.MT(function(){LSs(S)},p)},LSs=function(S){YOJ(S,"getLoungeToken");
_.V7(S.onLoungeTokenTimeoutKey_);S.onLoungeTokenTimeoutKey_=_.MT(function(){IHd(S,null)},3E4)},YOJ=function(S,p){S.info("sendYoutubeMessage_: "+p+" "+(0,_.J2)(void 0));
var U={};U.type=p;S.JSC$17531_session_?S.JSC$17531_session_.sendMessage("urn:x-cast:com.google.youtube.mdx",U,function(){},(0,_.RW)(function(){qe(this,"Failed to send message: "+p+".")},S)):qe(S,"Sending yt message without session: "+(0,_.J2)(U))};
AG.prototype.onYoutubeMessage_=function(S,p){if(!this.isDisposed())if(p)if(p=(0,_.rn)(p),_.pc(p))switch(S=""+p.type,p=p.data||{},this.info("onYoutubeMessage_: "+S+" "+(0,_.J2)(p)),S){case "mdxSessionStatus":pjP(this,p);break;case "loungeToken":IHd(this,p);break;default:qe(this,"Unknown youtube message: "+S)}else qe(this,"Unable to parse message.");else qe(this,"No data in message.")};
var dcE=function(S,p){if(p)S.info("onConnectedScreenId_: Received screenId: "+p),S.screen_&&S.screen_.id==p||S.getScreen_(p,function(U){Bu(S,U)},function(){return S.onSessionStopped()},5);
else S.onSessionStopped(Error("Mk"))},Teq=function(S,p,U){S.info("onConnectedScreenData_: Received screenData: "+JSON.stringify(p));
var Y=new P2(p);VqA(S,Y,function(L){L?(S.JSC$17531_isInitLoungeToken_=!0,Ne(S.JSC$17526_screenService_,Y),Bu(S,Y),S.JSC$17531_lastLoungeTokenRefreshError_="unknown",MqA(S,U)):(_.w7(Error("Nk`"+JSON.stringify(p))),S.onSessionStopped())},5)},pjP=function(S,p){_.V7(S.sessionStatusTimeoutKey_);
S.sessionStatusTimeoutKey_=0;if(p)S.config_.enableCastLoungeToken&&p.loungeToken?p.deviceId?S.screen_&&S.screen_.uuid==p.deviceId||(p.loungeTokenRefreshIntervalMs?Teq(S,{name:S.receiver_.friendlyName,screenId:p.screenId,loungeToken:p.loungeToken,dialId:p.deviceId,screenIdType:"shortLived"},p.loungeTokenRefreshIntervalMs):(_.w7(Error("Pk`"+JSON.stringify(p))),dcE(S,p.screenId))):(_.w7(Error("Ok`"+JSON.stringify(p))),dcE(S,p.screenId)):dcE(S,p.screenId);else S.onSessionStopped(Error("Mk"))},IHd=function(S,
p){_.V7(S.onLoungeTokenTimeoutKey_);
S.onLoungeTokenTimeoutKey_=0;var U=null;if(p)if(p.loungeToken){var Y;((Y=S.screen_)==null?void 0:Y.token)==p.loungeToken&&(U="staleLoungeToken")}else U="missingLoungeToken";else U="noLoungeTokenResponse";U?(S.info("Did not receive a new lounge token in onLoungeToken_ with data: "+(JSON.stringify(p)+", error: "+U)),S.JSC$17531_lastLoungeTokenRefreshError_=U,MqA(S,3E4)):(SO5(S,p.loungeToken),S.JSC$17531_isInitLoungeToken_=!1,S.JSC$17531_lastLoungeTokenRefreshError_="unknown",MqA(S,p.loungeTokenRefreshIntervalMs))};
AG.prototype.getScreen_=function(S,p,U,Y){_.V7(this.getScreenTimeoutKey_);this.getScreenTimeoutKey_=0;NHT(this.JSC$17526_screenService_,this.receiver_.label,S,this.receiver_.friendlyName,(0,_.RW)(function(L){L?p(L):Y>=0?(qe(this,"Screen "+S+" appears to be offline. "+Y+" retries left."),this.getScreenTimeoutKey_=_.MT((0,_.RW)(this.getScreen_,this,S,p,U,Y-1),300)):U(Error("Qk"))},this),U)};
var VqA=function(S,p,U,Y){_.V7(S.JSC$17531_checkScreenAvailabilityTimeoutKey_);S.JSC$17531_checkScreenAvailabilityTimeoutKey_=0;qSt(S.JSC$17526_screenService_,p,function(L){L||Y<0?U(L):S.JSC$17531_checkScreenAvailabilityTimeoutKey_=_.MT(function(){VqA(S,p,U,Y-1)},300)})};
AG.prototype.JSC$17528_getCastSession=function(){return this.JSC$17531_session_};
AG.prototype.JSC$17533_onSessionUpdate_=function(S){this.isDisposed()||S||(qe(this,"Cast session died."),this.onSessionStopped())};
var Ucd=function(S){_.V7(S.getScreenTimeoutKey_);S.getScreenTimeoutKey_=0;_.V7(S.JSC$17531_checkScreenAvailabilityTimeoutKey_);S.JSC$17531_checkScreenAvailabilityTimeoutKey_=0;_.V7(S.sessionStatusTimeoutKey_);S.sessionStatusTimeoutKey_=0;_.V7(S.onLoungeTokenTimeoutKey_);S.onLoungeTokenTimeoutKey_=0;_.V7(S.getLoungeTokenTimeoutKey_);S.getLoungeTokenTimeoutKey_=0};var tG=function(S,p,U,Y){o$.call(this,S,p,"DialSession");this.config_=Y;this.JSC$17535_session_=this.launchData_=null;this.reversePairingCode_="";this.JSC$17535_theme_=U;this.connectData_=null;this.deferredLaunch_=function(){};
this.JSC$17535_deferredLaunchDeadlineTimer_=NaN;this.JSC$17535_boundSessionUpdate_=(0,_.RW)(this.JSC$17537_onSessionUpdate_,this);this.cancelPolling_=function(){};
this.getDialAppInfoTimeoutKey_=this.JSC$17535_checkScreenAvailabilityTimeoutKey_=0;this.JSC$17535_isInitLoungeToken_=!1;this.JSC$17535_lastLoungeTokenRefreshError_="unknown"};
_.r(tG,o$);tG.prototype.setCastSession=function(S){this.JSC$17535_session_=S;this.JSC$17535_session_.addUpdateListener(this.JSC$17535_boundSessionUpdate_)};
tG.prototype.launchWithParams=function(S){this.connectData_=S;this.deferredLaunch_()};
tG.prototype.stop=function(){WST(this);if(this.JSC$17535_session_)this.JSC$17535_session_.stop((0,_.RW)(this.onSessionStopped,this,null),(0,_.RW)(this.onSessionStopped,this,"Failed to stop DIAL device."));else this.onSessionStopped()};
tG.prototype.disposeInternal=function(){WST(this);this.JSC$17535_session_&&this.JSC$17535_session_.removeUpdateListener(this.JSC$17535_boundSessionUpdate_);this.JSC$17535_session_=null;o$.prototype.disposeInternal.call(this)};
var OQT=function(S){var p;return!!(S.config_.enableDialLoungeToken&&((p=S.JSC$17535_session_)==null?0:p.getDialAppInfo))},k1d=function(S){S.cancelPolling_=S.JSC$17526_screenService_.JSC$17524_getScreenByPollingPairingCode(S.reversePairingCode_,S.receiver_.label,S.receiver_.friendlyName,OQT(S),function(p,U){S.cancelPolling_=function(){};
S.JSC$17535_isInitLoungeToken_=!0;Bu(S,p);p.idType=="shortLived"&&U>0&&cu(S,U)},function(p){S.cancelPolling_=function(){};
S.onSessionStopped(p)})};
tG.prototype.JSC$17537_onSessionUpdate_=function(S){this.isDisposed()||S||(qe(this,"DIAL session died."),this.cancelPolling_(),this.cancelPolling_=function(){},this.onSessionStopped())};
var HQt=function(S){var p={};p.pairingCode=S.reversePairingCode_;p.theme=S.JSC$17535_theme_;XrT()&&(p.env_useStageMdx=1);return _.Og(p)},Dcs=function(S){return new Promise(function(p){S.reversePairingCode_=HZn();
if(S.connectData_){var U=new chrome.cast.DialLaunchResponse(!0,HQt(S));p(U);k1d(S)}else S.deferredLaunch_=function(){_.V7(S.JSC$17535_deferredLaunchDeadlineTimer_);S.deferredLaunch_=function(){};
S.JSC$17535_deferredLaunchDeadlineTimer_=NaN;var Y=new chrome.cast.DialLaunchResponse(!0,HQt(S));p(Y);k1d(S)},S.JSC$17535_deferredLaunchDeadlineTimer_=_.MT(function(){S.deferredLaunch_()},100)})},QgY=function(S,p,U){S.info("initOnConnectedScreenDataPromise_: Received screenData: "+JSON.stringify(p));
var Y=new P2(p);return(new Promise(function(L){z2A(S,Y,function(I){I?(S.JSC$17535_isInitLoungeToken_=!0,Ne(S.JSC$17526_screenService_,Y),Bu(S,Y),cu(S,U)):_.w7(Error("Sk`"+JSON.stringify(p)));L(I)},5)})).then(function(L){return L?new chrome.cast.DialLaunchResponse(!1):Dcs(S)})},nSi=function(S,p){var U=S.launchData_.receiver.label,Y=S.receiver_.friendlyName;
return(new Promise(function(L){NHT(S.JSC$17526_screenService_,U,p,Y,function(I){I&&I.token&&Bu(S,I);L(I)},function(I){qe(S,"Failed to get DIAL screen: "+I);
L(null)})})).then(function(L){return L&&L.token?new chrome.cast.DialLaunchResponse(!1):Dcs(S)})},z2A=function(S,p,U,Y){_.V7(S.JSC$17535_checkScreenAvailabilityTimeoutKey_);
S.JSC$17535_checkScreenAvailabilityTimeoutKey_=0;qSt(S.JSC$17526_screenService_,p,function(L){L||Y<0?U(L):S.JSC$17535_checkScreenAvailabilityTimeoutKey_=_.MT(function(){z2A(S,p,U,Y-1)},300)})},cu=function(S,p){S.info("getDialAppInfoWithTimeout_ "+p);
OQT(S)&&(_.V7(S.getDialAppInfoTimeoutKey_),S.getDialAppInfoTimeoutKey_=0,p==0?J1P(S):S.getDialAppInfoTimeoutKey_=_.MT(function(){J1P(S)},p))},J1P=function(S){OQT(S)&&S.JSC$17535_session_.getDialAppInfo(function(p){S.info("getDialAppInfo dialLaunchData: "+JSON.stringify(p));
p=p.extraData||{};var U=null;if(p.loungeToken){var Y;((Y=S.screen_)==null?void 0:Y.token)==p.loungeToken&&(U="staleLoungeToken")}else U="missingLoungeToken";U?(S.JSC$17535_lastLoungeTokenRefreshError_=U,cu(S,3E4)):(S.JSC$17535_isInitLoungeToken_=!1,S.JSC$17535_lastLoungeTokenRefreshError_="unknown",SO5(S,p.loungeToken),cu(S,p.loungeTokenRefreshIntervalMs))},function(p){S.info("getDialAppInfo error: "+p);
S.JSC$17535_lastLoungeTokenRefreshError_="noLoungeTokenResponse";cu(S,3E4)})},WST=function(S){_.V7(S.JSC$17535_checkScreenAvailabilityTimeoutKey_);
S.JSC$17535_checkScreenAvailabilityTimeoutKey_=0;_.V7(S.getDialAppInfoTimeoutKey_);S.getDialAppInfoTimeoutKey_=0;S.cancelPolling_();S.cancelPolling_=function(){};
_.V7(S.JSC$17535_deferredLaunchDeadlineTimer_)};var SK=function(S,p){o$.call(this,S,p,"ManualSession");this.JSC$17539_deferredLaunchDeadlineTimer_=_.MT((0,_.RW)(this.launchWithParams,this,null),150)};
_.r(SK,o$);SK.prototype.stop=function(){this.onSessionStopped()};
SK.prototype.setCastSession=function(){};
SK.prototype.launchWithParams=function(){_.V7(this.JSC$17539_deferredLaunchDeadlineTimer_);this.JSC$17539_deferredLaunchDeadlineTimer_=NaN;var S=sJ(this.JSC$17526_screenService_.getScreens(),this.receiver_.label);if(S)Bu(this,S);else this.onSessionStopped(Error("Tk"))};
SK.prototype.disposeInternal=function(){_.V7(this.JSC$17539_deferredLaunchDeadlineTimer_);this.JSC$17539_deferredLaunchDeadlineTimer_=NaN;o$.prototype.disposeInternal.call(this)};var Ny=function(S,p){_.qS.call(this);this.config_=p;this.JSC$17542_screenService_=S;this.JSC$17542_appId_=p.appId||"233637DE";this.JSC$17542_theme_=p.theme||"cl";this.disableDial_=p.disableCastApi||!1;this.forceMirroring_=p.forceMirroring||!1;this.JSC$17542_session_=null;this.hasCastReceiver_=!1;this.customReceivers_=[];this.boundReceiverActionListener_=(0,_.RW)(this.onReceiverAction_,this)};
_.r(Ny,_.qS);
Ny.prototype.init=function(S,p){chrome.cast.timeout.requestSession=3E4;var U=new chrome.cast.SessionRequest(this.JSC$17542_appId_,[chrome.cast.Capability.AUDIO_OUT]);_.y("desktop_enable_cast_connect")&&(U.androidReceiverCompatible=!0);this.disableDial_||(U.dialRequest=new chrome.cast.DialRequest("YouTube"));var Y=chrome.cast.AutoJoinPolicy.TAB_AND_ORIGIN_SCOPED;S=S||this.forceMirroring_?chrome.cast.DefaultActionPolicy.CAST_THIS_TAB:chrome.cast.DefaultActionPolicy.CREATE_SESSION;var L=(0,_.RW)(this.onReceiverUpdated_,
this);U=new chrome.cast.ApiConfig(U,(0,_.RW)(this.onSessionEstablished_,this),L,Y,S);U.customDialLaunchCallback=(0,_.RW)(this.onDialLaunchRequested_,this);chrome.cast.initialize(U,(0,_.RW)(function(){this.isDisposed()||(chrome.cast.addReceiverActionListener(this.boundReceiverActionListener_),lci(),this.JSC$17542_screenService_.subscribe("onlineScreenChange",(0,_.RW)(this.JSC$17544_onScreenChange_,this)),this.customReceivers_=y1n(this),chrome.cast.setCustomReceivers(this.customReceivers_,function(){},
(0,_.RW)(function(I){this.warn_("Failed to set initial custom receivers: "+(0,_.J2)(I))},this)),this.publish("yt-remote-cast2-availability-change",pd(this)),p(!0))},this),(0,_.RW)(function(I){this.warn_("Failed to initialize API: "+(0,_.J2)(I));
p(!1)},this))};
Ny.prototype.setConnectedScreenStatus=function(S,p){Uf("Setting connected screen ID: "+S+" -> "+p);if(this.JSC$17542_session_){var U=this.JSC$17542_session_.screen_;if(!S||U&&U.id!=S)Uf("Unsetting old screen status: "+this.JSC$17542_session_.receiver_.friendlyName),Yp(this,null)}if(S&&p){if(!this.JSC$17542_session_){S=sJ(this.JSC$17542_screenService_.getScreens(),S);if(!S){Uf("setConnectedScreenStatus: Unknown screen.");return}if(S.idType=="shortLived"){Uf("setConnectedScreenStatus: Screen with id type to be short lived.");
return}U=KSs(this,S);U||(Uf("setConnectedScreenStatus: Connected receiver not custom..."),U=new chrome.cast.Receiver(S.uuid?S.uuid:S.id,S.name),U.receiverType=chrome.cast.ReceiverType.CUSTOM,this.customReceivers_.push(U),chrome.cast.setCustomReceivers(this.customReceivers_,function(){},(0,_.RW)(function(Y){this.warn_("Failed to set initial custom receivers: "+(0,_.J2)(Y))},this)));
Uf("setConnectedScreenStatus: new active receiver: "+U.friendlyName);Yp(this,new SK(this.JSC$17542_screenService_,U),!0)}this.JSC$17542_session_.setDisplayStatus(p)}else Uf("setConnectedScreenStatus: no screen.")};
var KSs=function(S,p){return p?_.fr(S.customReceivers_,function(U){return Z8(p,U.label)},S):null};
Ny.prototype.setLaunchParams=function(S){this.isDisposed()?this.warn_("Setting connection data on disposed cast v2"):this.JSC$17542_session_?this.JSC$17542_session_.launchWithParams(S):this.warn_("Setting connection data without a session")};
Ny.prototype.JSC$17544_stopSession=function(){this.isDisposed()?this.warn_("Stopping session on disposed cast v2"):this.JSC$17542_session_?(this.JSC$17542_session_.stop(),Yp(this,null)):Uf("Stopping non-existing session")};
Ny.prototype.requestSession=function(){chrome.cast.requestSession((0,_.RW)(this.onSessionEstablished_,this),(0,_.RW)(this.onSessionRequestFailed_,this))};
Ny.prototype.disposeInternal=function(){this.JSC$17542_screenService_.unsubscribe("onlineScreenChange",(0,_.RW)(this.JSC$17544_onScreenChange_,this));window.chrome&&chrome.cast&&chrome.cast.removeReceiverActionListener(this.boundReceiverActionListener_);_.NG(_.ad("yt.mdx.remote.debug.handlers_")||[],guT);_.t9(this.JSC$17542_session_);_.qS.prototype.disposeInternal.call(this)};
var Uf=function(S){ld("Controller",S)};
Ny.prototype.warn_=function(S){ld("Controller",S)};
var guT=function(S){window.chrome&&chrome.cast&&chrome.cast.logMessage&&chrome.cast.logMessage(S)},pd=function(S){return S.hasCastReceiver_||!!S.customReceivers_.length||!!S.JSC$17542_session_},Yp=function(S,p,U){p!=S.JSC$17542_session_&&(_.t9(S.JSC$17542_session_),(S.JSC$17542_session_=p)?(U?S.publish("yt-remote-cast2-receiver-resumed",p.receiver_):S.publish("yt-remote-cast2-receiver-selected",p.receiver_),p.subscribe("sessionScreen",(0,_.RW)(S.onSessionScreen_,S,p)),p.subscribe("sessionFailed",
function(){return bQY(S,p)}),p.screen_?S.publish("yt-remote-cast2-session-change",p.screen_):U&&S.JSC$17542_session_.launchWithParams(null)):S.publish("yt-remote-cast2-session-change",null))},bQY=function(S,p){S.JSC$17542_session_==p&&S.publish("yt-remote-cast2-session-failed")};
_.M=Ny.prototype;_.M.onSessionScreen_=function(S,p){this.JSC$17542_session_==S&&(p||Yp(this,null),this.publish("yt-remote-cast2-session-change",p))};
_.M.onReceiverAction_=function(S,p){if(!this.isDisposed())if(S)switch(S.friendlyName=chrome.cast.unescape(S.friendlyName),Uf("onReceiverAction_ "+S.label+" / "+S.friendlyName+"-- "+p),p){case chrome.cast.ReceiverAction.CAST:if(this.JSC$17542_session_)if(this.JSC$17542_session_.receiver_.label!=S.label)Uf("onReceiverAction_: Stopping active receiver: "+this.JSC$17542_session_.receiver_.friendlyName),this.JSC$17542_session_.stop();else{Uf("onReceiverAction_: Casting to active receiver.");this.JSC$17542_session_.screen_&&
this.publish("yt-remote-cast2-session-change",this.JSC$17542_session_.screen_);break}switch(S.receiverType){case chrome.cast.ReceiverType.CUSTOM:Yp(this,new SK(this.JSC$17542_screenService_,S));break;case chrome.cast.ReceiverType.DIAL:Yp(this,new tG(this.JSC$17542_screenService_,S,this.JSC$17542_theme_,this.config_));break;case chrome.cast.ReceiverType.CAST:Yp(this,new AG(this.JSC$17542_screenService_,S,this.config_));break;default:this.warn_("Unknown receiver type: "+S.receiverType)}break;case chrome.cast.ReceiverAction.STOP:this.JSC$17542_session_&&
this.JSC$17542_session_.receiver_.label==S.label?this.JSC$17542_session_.stop():this.warn_("Stopping receiver w/o session: "+S.friendlyName)}else this.warn_("onReceiverAction_ called without receiver.")};
_.M.onDialLaunchRequested_=function(S){if(this.isDisposed())return Promise.reject(Error("Uk"));var p=S.receiver;p.receiverType!=chrome.cast.ReceiverType.DIAL&&(this.warn_("Not DIAL receiver: "+p.friendlyName),p.receiverType=chrome.cast.ReceiverType.DIAL);var U=this.JSC$17542_session_?this.JSC$17542_session_.receiver_:null;if(!U||U.label!=p.label)return this.warn_("Receiving DIAL launch request for non-clicked DIAL receiver: "+p.friendlyName),Promise.reject(Error("Vk"));if(U&&U.label==p.label&&U.receiverType!=
chrome.cast.ReceiverType.DIAL){if(this.JSC$17542_session_.screen_)return Uf("Reselecting dial screen."),this.publish("yt-remote-cast2-session-change",this.JSC$17542_session_.screen_),Promise.resolve(new chrome.cast.DialLaunchResponse(!1));this.warn_('Changing CAST intent from "'+U.receiverType+'" to "dial" for '+p.friendlyName);Yp(this,new tG(this.JSC$17542_screenService_,p,this.JSC$17542_theme_,this.config_))}p=this.JSC$17542_session_;p.launchData_=S;p.launchData_.appState==chrome.cast.DialAppState.RUNNING?
(S=p.launchData_.extraData||{},U=S.screenId||null,OQT(p)&&S.loungeToken?S.loungeTokenRefreshIntervalMs?S=QgY(p,{name:p.receiver_.friendlyName,screenId:S.screenId,loungeToken:S.loungeToken,dialId:p.launchData_.receiver.label,screenIdType:"shortLived"},S.loungeTokenRefreshIntervalMs):(_.w7(Error("Rk`"+JSON.stringify(S))),S=nSi(p,U)):S=nSi(p,U)):S=Dcs(p);return S};
_.M.onSessionEstablished_=function(S){var p=this;if(!this.isDisposed()&&!this.forceMirroring_){Uf("New cast session ID: "+S.sessionId);var U=S.receiver;if(U.receiverType!=chrome.cast.ReceiverType.CUSTOM){if(!this.JSC$17542_session_)if(U.receiverType==chrome.cast.ReceiverType.CAST)Uf("Got resumed cast session before resumed mdx connection."),U.friendlyName=chrome.cast.unescape(U.friendlyName),Yp(this,new AG(this.JSC$17542_screenService_,U,this.config_),!0);else{this.warn_("Got non-cast session without previous mdx receiver event, or mdx resume.");
return}var Y=this.JSC$17542_session_.receiver_,L=sJ(this.JSC$17542_screenService_.getScreens(),Y.label);L&&Z8(L,U.label)&&Y.receiverType!=chrome.cast.ReceiverType.CAST&&U.receiverType==chrome.cast.ReceiverType.CAST&&(Uf("onSessionEstablished_: manual to cast session change "+U.friendlyName),_.t9(this.JSC$17542_session_),this.JSC$17542_session_=new AG(this.JSC$17542_screenService_,U,this.config_),this.JSC$17542_session_.subscribe("sessionScreen",(0,_.RW)(this.onSessionScreen_,this,this.JSC$17542_session_)),
this.JSC$17542_session_.subscribe("sessionFailed",function(){return bQY(p,p.JSC$17542_session_)}),this.JSC$17542_session_.launchWithParams(null));
this.JSC$17542_session_.setCastSession(S)}}};
_.M.JSC$17544_getCastSession=function(){return this.JSC$17542_session_?this.JSC$17542_session_.JSC$17528_getCastSession():null};
_.M.onSessionRequestFailed_=function(S){this.isDisposed()||(this.warn_("Failed to estabilish a session: "+(0,_.J2)(S)),S.code!=chrome.cast.ErrorCode.CANCEL&&Yp(this,null),this.publish("yt-remote-cast2-session-failed"))};
_.M.onReceiverUpdated_=function(S){Uf("Receiver availability updated: "+S);if(!this.isDisposed()){var p=pd(this);this.hasCastReceiver_=S==chrome.cast.ReceiverAvailability.AVAILABLE;pd(this)!=p&&this.publish("yt-remote-cast2-availability-change",pd(this))}};
var y1n=function(S){var p=S.JSC$17542_screenService_.JSC$17524_getOnlineScreens(),U=S.JSC$17542_session_&&S.JSC$17542_session_.receiver_;S=_.Fp(p,function(Y){U&&Z8(Y,U.label)&&(U=null);var L=Y.uuid?Y.uuid:Y.id,I=KSs(this,Y);I?(I.label=L,I.friendlyName=Y.name):(I=new chrome.cast.Receiver(L,Y.name),I.receiverType=chrome.cast.ReceiverType.CUSTOM);return I},S);
U&&(U.receiverType!=chrome.cast.ReceiverType.CUSTOM&&(U=new chrome.cast.Receiver(U.label,U.friendlyName),U.receiverType=chrome.cast.ReceiverType.CUSTOM),S.push(U));return S};
Ny.prototype.JSC$17544_onScreenChange_=function(){this.isDisposed()||(this.customReceivers_=y1n(this),Uf("Updating custom receivers: "+(0,_.J2)(this.customReceivers_)),chrome.cast.setCustomReceivers(this.customReceivers_,function(){},(0,_.RW)(function(){this.warn_("Failed to set custom receivers.")},this)),this.publish("yt-remote-cast2-availability-change",pd(this)))};
Ny.prototype.setLaunchParams=Ny.prototype.setLaunchParams;Ny.prototype.setConnectedScreenStatus=Ny.prototype.setConnectedScreenStatus;Ny.prototype.stopSession=Ny.prototype.JSC$17544_stopSession;Ny.prototype.getCastSession=Ny.prototype.JSC$17544_getCastSession;Ny.prototype.requestSession=Ny.prototype.requestSession;Ny.prototype.init=Ny.prototype.init;Ny.prototype.dispose=Ny.prototype.dispose;var dUi=[];var jgn=function(S){S.audioTrackId=null;S.trackData=null;S.playerState=-1;S.hasPrevious=!1;S.hasNext=!1;S.playerTime_=0;S.playerTimeAt_=_.BO();S.seekableStart_=0;S.seekableEnd_=0;S.duration_=0;S.loadedTime=0;S.liveIngestionTime_=NaN;S.isLive_=!1};
_.M=B2.prototype;
_.M.reset=function(S){this.listId="";this.stopPlayer();this.volume=-1;this.muted=!1;S&&(this.index=S.index,this.listId=S.listId,this.videoId=S.videoId,this.playerState=S.playerState,this.volume=S.volume,this.muted=S.muted,this.audioTrackId=S.audioTrackId,this.trackData=S.trackData,this.hasPrevious=S.hasPrevious,this.hasNext=S.hasNext,this.playerTime_=S.playerTime,this.playerTimeAt_=S.playerTimeAt,this.seekableStart_=S.seekableStart,this.seekableEnd_=S.seekableEnd,this.duration_=S.duration,this.loadedTime=
S.loadedTime,this.liveIngestionTime_=S.liveIngestionTime,this.isLive_=!isNaN(this.liveIngestionTime_))};
_.M.stopPlayer=function(){this.index=-1;this.videoId="";jgn(this)};
_.M.isPlaying=function(){return this.playerState==1};
_.M.isBuffering=function(){return this.playerState==3};
_.M.isAdPlaying=function(){return this.playerState==1081};
var Ld=function(S,p){S.playerTime_=p;S.playerTimeAt_=_.BO()},r1i=function(S){switch(S.playerState){case 1:case 1081:return(_.BO()-S.playerTimeAt_)/1E3+S.playerTime_;
case -1E3:return 0}return S.playerTime_};
B2.prototype.getDuration=function(){return this.isLive_?this.duration_+(this.isPlaying()?(_.BO()-this.playerTimeAt_)/1E3:0):this.duration_};
var G1o=function(S,p,U){var Y=S.videoId;S.videoId=p;S.index=U;p!=Y&&jgn(S)},h2o=function(S){var p={};
p.index=S.index;p.listId=S.listId;p.videoId=S.videoId;p.playerState=S.playerState;p.volume=S.volume;p.muted=S.muted;p.audioTrackId=S.audioTrackId;p.trackData=_.h9.unsafeClone(S.trackData);p.hasPrevious=S.hasPrevious;p.hasNext=S.hasNext;p.playerTime=S.playerTime_;p.playerTimeAt=S.playerTimeAt_;p.seekableStart=S.seekableStart_;p.seekableEnd=S.seekableEnd_;p.duration=S.duration_;p.loadedTime=S.loadedTime;p.liveIngestionTime=S.liveIngestionTime_;return p};
B2.prototype.clone=function(){return new B2(h2o(this))};var Mi=function(S,p){_.qS.call(this);var U=this;this.state_=0;this.connection_=S;this.contextSubscriptions_=[];this.actionQueue_=new L$5;this.castSession_=this.castMedia_=null;this.boundCastStatusListener_=(0,_.RW)(this.onCastStatusUpdate_,this);this.boundCastMediaListener_=(0,_.RW)(this.onCastMediaChange_,this);this.boundCastMediaUpdateListener_=(0,_.RW)(this.onCastMediaUpdate_,this);this.boundCloudviewAvailabilityChange_=(0,_.RW)(this.onCloudviewAvailabilityChange_,this);var Y=0;S?(Y=S.getProxyState(),
Y!=3&&(S.subscribe("proxyStateChange",this.setState_,this),R2t(this))):Y=3;Y!=0&&(p?this.setState_(Y):_.MT(function(){U.setState_(Y)},0));
(S=O9L())&&FS5(this,S);this.subscribe("yt-remote-cast2-session-change",this.boundCloudviewAvailabilityChange_)};
_.r(Mi,_.qS);Mi.prototype.getState=function(){return this.state_};
Mi.prototype.getReconnectTimeout=function(){return this.connection_.getReconnectTimeout()};
Mi.prototype.reconnect=function(){this.connection_.reconnect()};
var Iv=function(S){return new B2(S.connection_.getPlayerContextData())};
_.M=Mi.prototype;_.M.play=function(){dL(this)?(this.castMedia_?this.castMedia_.play(null,_.TX,XjJ(this,"play")):Vh(this,"play"),PBo(this,1,r1i(Iv(this))),this.publish("remotePlayerChange")):Ti(this,this.play)};
_.M.pause=function(){dL(this)?(this.castMedia_?this.castMedia_.pause(null,_.TX,XjJ(this,"pause")):Vh(this,"pause"),PBo(this,2,r1i(Iv(this))),this.publish("remotePlayerChange")):Ti(this,this.pause)};
_.M.seekTo=function(S){if(dL(this)){if(this.castMedia_){var p=Iv(this),U=new chrome.cast.media.SeekRequest;U.currentTime=S;p.isPlaying()||p.isBuffering()?U.resumeState=chrome.cast.media.ResumeState.PLAYBACK_START:U.resumeState=chrome.cast.media.ResumeState.PLAYBACK_PAUSE;this.castMedia_.seek(U,_.TX,XjJ(this,"seekTo",{newTime:S}))}else Vh(this,"seekTo",{newTime:S});PBo(this,3,S);this.publish("remotePlayerChange")}else Ti(this,_.Hd(this.seekTo,S))};
_.M.stop=function(){if(dL(this)){this.castMedia_?this.castMedia_.stop(null,_.TX,XjJ(this,"stopVideo")):Vh(this,"stopVideo");var S=Iv(this);S.stopPlayer();WZ(this,S);this.publish("remotePlayerChange")}else Ti(this,this.stop)};
_.M.setVolume=function(S,p){if(dL(this)){var U=Iv(this);if(this.castSession_){if(U.volume!=S){var Y=Math.round(S)/100;this.castSession_.setReceiverVolumeLevel(Y,(0,_.RW)(function(){a$("set receiver volume: "+Y)},this),(0,_.RW)(function(){this.warn_("failed to set receiver volume.")},this))}U.muted!=p&&this.castSession_.setReceiverMuted(p,(0,_.RW)(function(){a$("set receiver muted: "+p)},this),(0,_.RW)(function(){this.warn_("failed to set receiver muted.")},this))}else{var L={volume:S,
muted:p};U.volume!=-1&&(L.delta=S-U.volume);Vh(this,"setVolume",L)}U.muted=p;U.volume=S;WZ(this,U)}else Ti(this,_.Hd(this.setVolume,S,p))};
_.M.setAudioTrack=function(S,p){dL(this)?(p=p.getLanguageInfo().getId(),Vh(this,"setAudioTrack",{videoId:S,audioTrackId:p}),S=Iv(this),S.audioTrackId=p,WZ(this,S)):Ti(this,_.Hd(this.setAudioTrack,S,p))};
_.M.addVideo=function(S){dL(this)?Vh(this,"addVideo",{videoId:S}):Ti(this,_.Hd(this.addVideo,S))};
_.M.addPlaylist=function(S){dL(this)?Vh(this,"addVideos",{listId:S}):Ti(this,_.Hd(this.addPlaylist,S))};
_.M.addVideos=function(S){S.length==0?this.warn_("Ignore add videos request due to empty list"):dL(this)?Vh(this,"addVideos",{videoIds:S.join(",")}):Ti(this,_.Hd(this.addVideos,S))};
_.M.JSC$17554_removeVideo=function(S){dL(this)?Vh(this,"removeVideo",{videoId:S}):Ti(this,_.Hd(this.JSC$17554_removeVideo,S))};
_.M.JSC$17554_insertVideo=function(S){dL(this)?Vh(this,"insertVideo",{videoId:S}):Ti(this,_.Hd(this.JSC$17554_insertVideo,S))};
_.M.playVideo=function(S,p,U,Y,L,I,V){Y=Y===void 0?null:Y;L=L===void 0?null:L;I=I===void 0?null:I;V=V===void 0?null:V;var W=Iv(this),O={videoId:S};U!==void 0&&(O.currentIndex=U);G1o(W,S,U||0);p!==void 0&&(Ld(W,p),O.currentTime=p);Y&&(O.listId=Y);L&&(O.playerParams=L);I&&(O.clickTrackingParams=I);V&&(O.locationInfo=(0,_.J2)(V));Vh(this,"setPlaylist",O);Y||WZ(this,W)};
_.M.nextVideo=function(S,p){if(dL(this)){if(S&&p){var U=Iv(this);G1o(U,S,p);WZ(this,U)}Vh(this,"next")}else Ti(this,_.Hd(this.nextVideo,S,p))};
_.M.clearPlaylist=function(){if(dL(this)){Vh(this,"clearPlaylist");var S=Iv(this);S.reset();WZ(this,S);this.publish("remotePlayerChange")}else Ti(this,this.clearPlaylist)};
_.M.dispose=function(){if(this.state_!=3){var S=this.state_;this.state_=3;this.publish("proxyStateChange",S,this.state_)}_.qS.prototype.dispose.call(this)};
_.M.disposeInternal=function(){ZQE(this);this.connection_=null;this.actionQueue_.clear();FS5(this,null);_.qS.prototype.disposeInternal.call(this)};
var R2t=function(S){_.xs("nowAutoplaying autoplayDismissed remotePlayerChange remoteQueueChange autoplayModeChange autoplayUpNext previousNextChange multiStateLoopEnabled loopModeChange".split(" "),function(p){this.contextSubscriptions_.push(this.connection_.subscribe(p,_.Hd(this.onProxyEvent_,p),this))},S)},ZQE=function(S){_.xs(S.contextSubscriptions_,function(p){this.connection_.unsubscribeByKey(p)},S);
S.contextSubscriptions_.length=0},dL=function(S){return S.getState()==1},Ti=function(S,p){S.actionQueue_.getCount()<50&&S.actionQueue_.enqueue(p)},PBo=function(S,p,U){var Y=Iv(S);
Ld(Y,U);Y.playerState!=-1E3&&(Y.playerState=p);WZ(S,Y)},Vh=function(S,p,U){S.connection_.sendMessage(p,U)},WZ=function(S,p){ZQE(S);
S.connection_.setPlayerContextData(h2o(p));R2t(S)};
Mi.prototype.setState_=function(S){if((S!=this.state_||S==2)&&this.state_!=3&&S!=0){var p=this.state_;this.state_=S;this.publish("proxyStateChange",p,S);if(S==1)for(;!this.actionQueue_.isEmpty();)S=this.actionQueue_,$VA(S),S.front_.pop().apply(this);else S==3&&this.dispose()}};
Mi.prototype.onProxyEvent_=function(S,p){this.publish(S,p)};
var FS5=function(S,p){S.castSession_&&(S.castSession_.removeUpdateListener(S.boundCastStatusListener_),S.castSession_.removeMediaListener(S.boundCastMediaListener_),S.onCastMediaChange_(null));S.castSession_=p;if(S.castSession_&&(a$("Setting cast session: "+S.castSession_.sessionId),S.castSession_.addUpdateListener(S.boundCastStatusListener_),S.castSession_.addMediaListener(S.boundCastMediaListener_),S.castSession_.media.length))S.onCastMediaChange_(S.castSession_.media[0])};
Mi.prototype.onCastStatusUpdate_=function(S){if(!S)this.onCastMediaChange_(null),FS5(this,null);else if(this.castSession_.receiver.volume){S=this.castSession_.receiver.volume;var p=Iv(this),U=Math.round(100*S.level||0);if(p.volume!=U||p.muted!=S.muted)a$("Cast volume update: "+S.level+(S.muted?" muted":"")),p.volume=U,p.muted=!!S.muted,WZ(this,p)}};
Mi.prototype.onCastMediaChange_=function(S){a$("Cast media: "+!!S);this.castMedia_&&this.castMedia_.removeUpdateListener(this.boundCastMediaUpdateListener_);if(this.castMedia_=S)this.castMedia_.addUpdateListener(this.boundCastMediaUpdateListener_),sgt(this),this.publish("remotePlayerChange")};
var sgt=function(S){var p=S.castMedia_.media,U=S.castMedia_.customData;if(p&&U){var Y=Iv(S);p.contentId!=Y.videoId&&a$("Cast changing video to: "+p.contentId);Y.videoId=p.contentId;Y.playerState=U.playerState;Ld(Y,S.castMedia_.getEstimatedTime());WZ(S,Y)}else a$("No cast media video. Ignoring state update.")};
Mi.prototype.onCastMediaUpdate_=function(S){if(S)sgt(this),this.publish("remotePlayerChange");else this.onCastMediaChange_(null)};
Mi.prototype.onCloudviewAvailabilityChange_=function(){var S=O9L();S&&FS5(this,S)};
Mi.prototype.warn_=function(S){ld("CP",S)};
var XjJ=function(S,p,U){return(0,_.RW)(function(Y){this.warn_("Failed to "+p+" with cast v2 channel. Error code: "+Y.code);Y.code!=chrome.cast.ErrorCode.TIMEOUT&&(this.warn_("Retrying "+p+" using MDx browser channel."),Vh(this,p,U))},S)};var kp=function(S,p,U,Y){Y=Y===void 0?!1:Y;_.qS.call(this);var L=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$17561_http_=S;this.enableConnectWithInitialState_=Y;this.listeners_.push(_.tE(window,"beforeunload",function(){L.JSC$17564_disconnect_(2)}));
this.connectedDevices_=[];this.playerContext_=new B2;this.currentScreenId_=p.id;this.currentScreenIdType_=p.idType;this.channelService=ekE(this.JSC$17561_http_,U,this.JSC$17564_getXsrfToken_,this.currentScreenIdType_=="shortLived",this.currentScreenId_);this.channelService.listen("channelOpened",function(){e2J(L)});
this.channelService.listen("channelClosed",function(){Of("Channel closed");isNaN(L.connectTimerId_)?er(!0):er();L.dispose()});
this.channelService.listen("channelError",function(I){er();isNaN(L.getReconnectTimeout_())?(I==1&&L.currentScreenIdType_=="shortLived"&&L.publish("browserChannelAuthError",I),Of("Channel error: "+I+" without reconnection"),L.dispose()):(L.reconnecting_=!0,Of("Channel error: "+I+" with reconnection in "+L.getReconnectTimeout_()+" ms"),gSt(L,2))});
this.channelService.listen("channelMessage",function(I){uTd(L,I)});
this.channelService.setLoungeToken(p.token);this.subscribe("remoteQueueChange",function(){var I=L.playerContext_.videoId;Jrt()&&_.p$("yt-remote-session-video-id",I)})};
_.r(kp,_.qS);
kp.prototype.connect=function(S,p){if(p){var U=p.listId,Y=p.videoId,L=p.videoIds,I=p.playerParams,V=p.clickTrackingParams,W=p.index,O={videoId:Y},D=p.currentTime,z=p.locationInfo;p=p.loopMode;D!==void 0&&(O.currentTime=D<=5?0:D);I&&(O.playerParams=I);z&&(O.locationInfo=z);V&&(O.clickTrackingParams=V);U&&(O.listId=U);L&&L.length>0&&(O.videoIds=L.join(","));W!==void 0&&(O.currentIndex=W);this.enableConnectWithInitialState_&&(O.loopMode=p||"LOOP_MODE_OFF");U&&(this.playerContext_.listId=U);this.playerContext_.videoId=
Y;this.playerContext_.index=W||0;this.playerContext_.state=3;Ld(this.playerContext_,D);this.autoplayMode_="UNSUPPORTED";U=this.enableConnectWithInitialState_?"setInitialState":"setPlaylist";Of("Connecting with "+U+" and params: "+(0,_.J2)(O));this.channelService.connect({method:U,params:(0,_.J2)(O)},S,rrP())}else Of("Connecting without params"),this.channelService.connect({},S,rrP());wjA(this)};
kp.prototype.setLoungeToken=function(S){this.channelService.setLoungeToken(S)};
kp.prototype.dispose=function(){this.isDisposed()||(_.NT("yt.mdx.remote.remoteClient_",null),this.publish("beforeDispose"),gSt(this,3));_.qS.prototype.dispose.call(this)};
kp.prototype.disposeInternal=function(){lHn(this);aHX(this);fHq(this);_.V7(this.clientSetVideoTimerId_);this.clientSetVideoTimerId_=NaN;_.V7(this.idleDisconnectTimerId_);this.idleDisconnectTimerId_=NaN;this.clientVideoId_=null;_.mIG(this.listeners_);this.listeners_.length=0;this.channelService.dispose();_.qS.prototype.disposeInternal.call(this);this.autoplayMode_=this.autoplayVideoId_=this.connectedDevices_=this.playerContext_=this.channelService=null};
var CBo=function(S){return _.fr(S.connectedDevices_,function(p){return p.type=="LOUNGE_SCREEN"})},Of=function(S){ld("conn",S)},gSt=function(S,p){S.publish("proxyStateChange",p)},wjA=function(S){S.connectTimerId_=_.MT(function(){Of("Connecting timeout");
S.JSC$17564_disconnect_(1)},2E4)},lHn=function(S){_.V7(S.connectTimerId_);
S.connectTimerId_=NaN},fHq=function(S){_.V7(S.reconnectedCheckScreenTimeout_);
S.reconnectedCheckScreenTimeout_=NaN},xcq=function(S){aHX(S);
S.playingSyncTimerId_=_.MT(function(){HZ(S,"getNowPlaying")},2E4)},aHX=function(S){_.V7(S.playingSyncTimerId_);
S.playingSyncTimerId_=NaN},e2J=function(S){Of("Channel opened");
S.reconnecting_&&(S.reconnecting_=!1,fHq(S),S.reconnectedCheckScreenTimeout_=_.MT(function(){Of("Timing out waiting for a screen.");S.JSC$17564_disconnect_(1)},15E3))},mci=function(S,p){var U=null;
if(p){var Y=CBo(S);Y&&(U={clientName:Y.clientName,deviceMake:Y.brand,deviceModel:Y.model,osVersion:Y.osVersion})}_.NT("yt.mdx.remote.remoteClient_",U);p&&(lHn(S),fHq(S));U=S.channelService.isChannelOpened()&&isNaN(S.connectTimerId_);p==U?p&&(gSt(S,1),HZ(S,"getSubtitlesTrack")):p?(S.getOtherConnectedRemoteId_()&&S.playerContext_.reset(),gSt(S,1),HZ(S,"getNowPlaying"),ESL(S)):S.JSC$17564_disconnect_(1)},oSn=function(S,p){var U=p.params.videoId;
delete p.params.videoId;U==S.playerContext_.videoId&&(_.h9.isEmpty(p.params)?S.playerContext_.trackData=null:S.playerContext_.trackData=p.params,S.publish("remotePlayerChange"))},vSE=function(S,p,U){var Y=p.params.videoId||p.params.video_id,L=parseInt(p.params.currentIndex,10);
S.playerContext_.listId=p.params.listId||S.playerContext_.listId;G1o(S.playerContext_,Y,L);S.publish("remoteQueueChange",U)},$cJ=function(S,p){p.params=p.params||{};
vSE(S,p,"NOW_PLAYING_MAY_CHANGE");S.onStateChange_(p);S.publish("autoplayDismissed")};
kp.prototype.onStateChange_=function(S){var p=parseInt(S.params.currentTime||S.params.current_time,10);Ld(this.playerContext_,isNaN(p)?0:p);p=parseInt(S.params.state,10);p=isNaN(p)?-1:p;p==-1&&this.playerContext_.playerState==-1E3&&(p=-1E3);this.playerContext_.playerState=p;p=Number(S.params.loadedTime);this.playerContext_.loadedTime=isNaN(p)?0:p;p=Number(S.params.duration);this.playerContext_.duration_=isNaN(p)?0:p;p=this.playerContext_;var U=Number(S.params.liveIngestionTime);p.liveIngestionTime_=
U;p.isLive_=isNaN(U)?!1:!0;p=this.playerContext_;U=Number(S.params.seekableStartTime);S=Number(S.params.seekableEndTime);p.seekableStart_=isNaN(U)?0:U;p.seekableEnd_=isNaN(S)?0:S;this.playerContext_.playerState==1?xcq(this):aHX(this);this.publish("remotePlayerChange")};
kp.prototype.onAdStateChange_=function(S){if(this.playerContext_.playerState!=-1E3){var p=1085;switch(parseInt(S.params.adState,10)){case 1:p=1081;break;case 2:p=1084;break;case 0:p=1083}this.playerContext_.playerState=p;S=parseInt(S.params.currentTime,10);Ld(this.playerContext_,isNaN(S)?0:S);this.publish("remotePlayerChange")}};
var iQ5=function(S,p){var U=p.params.muted=="true";S.playerContext_.volume=parseInt(p.params.volume,10);S.playerContext_.muted=U;S.publish("remotePlayerChange")},Ne5=function(S,p){S.autoplayVideoId_=p.params.videoId;
S.publish("nowAutoplaying",parseInt(p.params.timeout,10))},Beo=function(S,p){S.autoplayVideoId_=p.params.videoId||null;
S.publish("autoplayUpNext",S.autoplayVideoId_)},qOY=function(S,p){S.autoplayMode_=p.params.autoplayMode;
S.publish("autoplayModeChange",S.autoplayMode_);S.autoplayMode_=="DISABLED"&&S.publish("autoplayDismissed")},A1s=function(S,p){var U=p.params.hasNext=="true";
S.playerContext_.hasPrevious=p.params.hasPrevious=="true";S.playerContext_.hasNext=U;S.publish("previousNextChange")};
kp.prototype.isCapabilitySupportedOnConnectedDevices_=function(S){if(!this.connectedDevices_||this.connectedDevices_.length===0)return!1;for(var p=_.d(this.connectedDevices_),U=p.next();!U.done;U=p.next())if(!U.value.capabilities.has(S))return!1;return!0};
var uTd=function(S,p){p=p.message;p.params?Of("Received: action="+p.action+", params="+(0,_.J2)(p.params)):Of("Received: action="+p.action+" {}");switch(p.action){case "loungeStatus":p=(0,_.rn)(p.params.devices);S.connectedDevices_=_.Fp(p,function(Y){return new $f(Y)});
p=!!_.fr(S.connectedDevices_,function(Y){return Y.type=="LOUNGE_SCREEN"});
mci(S,p);p=S.isCapabilitySupportedOnConnectedDevices_("mlm");S.publish("multiStateLoopEnabled",p);break;case "loungeScreenDisconnected":sdd(S.connectedDevices_,function(Y){return Y.type=="LOUNGE_SCREEN"});
mci(S,!1);break;case "remoteConnected":var U=new $f((0,_.rn)(p.params.device));_.fr(S.connectedDevices_,function(Y){return Y.equals(U)})||_.$R(S.connectedDevices_,U);
break;case "remoteDisconnected":U=new $f((0,_.rn)(p.params.device));sdd(S.connectedDevices_,function(Y){return Y.equals(U)});
break;case "gracefulDisconnect":break;case "playlistModified":vSE(S,p,"QUEUE_MODIFIED");break;case "nowPlaying":$cJ(S,p);break;case "onStateChange":S.onStateChange_(p);break;case "onAdStateChange":S.onAdStateChange_(p);break;case "onVolumeChanged":iQ5(S,p);break;case "onSubtitlesTrackChanged":oSn(S,p);break;case "nowAutoplaying":Ne5(S,p);break;case "autoplayDismissed":S.publish("autoplayDismissed");break;case "autoplayUpNext":Beo(S,p);break;case "onAutoplayModeChanged":qOY(S,p);break;case "onHasPreviousNextChanged":A1s(S,
p);break;case "requestAssistedSignIn":S.publish("assistedSignInRequested",p.params.authCode);break;case "onLoopModeChanged":S.publish("loopModeChange",p.params.loopMode);break;default:Of("Unrecognized action: "+p.action)}};
_.M=kp.prototype;_.M.getProxyState_=function(){var S=3;this.isDisposed()||(S=0,isNaN(this.getReconnectTimeout_())?this.channelService.isChannelOpened()&&isNaN(this.connectTimerId_)&&(S=1):S=2);return S};
_.M.JSC$17564_disconnect_=function(S){Of("Disconnecting with "+S);_.NT("yt.mdx.remote.remoteClient_",null);lHn(this);this.publish("beforeDisconnect",S);S==1&&er();this.channelService.disconnect(S);this.dispose()};
_.M.getPlayerContextData_=function(){var S=this.playerContext_;this.clientVideoId_&&(S=this.playerContext_.clone(),G1o(S,this.clientVideoId_,S.index));return h2o(S)};
_.M.setPlayerContextData_=function(S){var p=this,U=new B2(S);U.videoId&&U.videoId!=this.playerContext_.videoId&&(this.clientVideoId_=U.videoId,_.V7(this.clientSetVideoTimerId_),this.clientSetVideoTimerId_=_.MT(function(){if(p.clientVideoId_){var L=p.clientVideoId_;p.clientVideoId_=null;p.playerContext_.videoId!=L&&HZ(p,"getNowPlaying")}},5E3));
var Y=[];this.playerContext_.listId==U.listId&&this.playerContext_.videoId==U.videoId&&this.playerContext_.index==U.index||Y.push("remoteQueueChange");this.playerContext_.playerState==U.playerState&&this.playerContext_.volume==U.volume&&this.playerContext_.muted==U.muted&&r1i(this.playerContext_)==r1i(U)&&(0,_.J2)(this.playerContext_.trackData)==(0,_.J2)(U.trackData)||Y.push("remotePlayerChange");this.playerContext_.reset(S);_.xs(Y,function(L){this.publish(L)},this)};
_.M.getOtherConnectedRemoteId_=function(){var S=this.channelService.getDeviceId(),p=_.fr(this.connectedDevices_,function(U){return U.type=="REMOTE_CONTROL"&&U.id!=S});
return p?p.id:""};
_.M.getReconnectTimeout_=function(){return this.channelService.getReconnectTimeout()};
_.M.getAutoplayMode_=function(){return this.autoplayMode_||"UNSUPPORTED"};
_.M.getAutoplayVideoId_=function(){return this.autoplayVideoId_||""};
_.M.JSC$17564_reconnect_=function(){!isNaN(this.getReconnectTimeout_())&&this.channelService.reconnect()};
var ESL=function(S){_.V7(S.idleDisconnectTimerId_);S.idleDisconnectTimerId_=_.MT(function(){S.JSC$17564_disconnect_(1)},864E5)},HZ=function(S,p,U){U?Of("Sending: action="+p+", params="+(0,_.J2)(U)):Of("Sending: action="+p);
S.channelService.sendMessage(p,U)};
kp.prototype.sendMessageWithUserAction_=function(S,p){HZ(this,S,p);ESL(this)};
kp.prototype.JSC$17564_getXsrfToken_=function(){var S=_.D5.get("SAPISID","")||_.D5.get("__Secure-1PAPISID",void 0)||"",p=_.D5.get("__Secure-3PAPISID","")||"";if(!S&&!p)return"";S=_.Ad(_.r5(S),2);p=_.Ad(_.r5(p),2);return _.Ad(_.r5(","+S+","+p),2)};
kp.prototype.subscribe=kp.prototype.subscribe;kp.prototype.unsubscribeByKey=kp.prototype.unsubscribeByKey;kp.prototype.getProxyState=kp.prototype.getProxyState_;kp.prototype.disconnect=kp.prototype.JSC$17564_disconnect_;kp.prototype.getPlayerContextData=kp.prototype.getPlayerContextData_;kp.prototype.setPlayerContextData=kp.prototype.setPlayerContextData_;kp.prototype.getOtherConnectedRemoteId=kp.prototype.getOtherConnectedRemoteId_;kp.prototype.getReconnectTimeout=kp.prototype.getReconnectTimeout_;
kp.prototype.getAutoplayMode=kp.prototype.getAutoplayMode_;kp.prototype.getAutoplayVideoId=kp.prototype.getAutoplayVideoId_;kp.prototype.reconnect=kp.prototype.JSC$17564_reconnect_;kp.prototype.sendMessage=kp.prototype.sendMessageWithUserAction_;kp.prototype.getXsrfToken=kp.prototype.JSC$17564_getXsrfToken_;kp.prototype.isCapabilitySupportedOnConnectedDevices=kp.prototype.isCapabilitySupportedOnConnectedDevices_;var tqE=function(S){Ci.call(this,"ScreenServiceProxy");this.instance_=S;this.subscriptionKeys_=[];this.subscriptionKeys_.push(this.instance_.$_s("screenChange",(0,_.RW)(this.JSC$17567_onScreenChange_,this)));this.subscriptionKeys_.push(this.instance_.$_s("onlineScreenChange",(0,_.RW)(this.onOnlineScreenChange_,this)))};
_.r(tqE,Ci);_.M=tqE.prototype;_.M.getScreens=function(S){return this.instance_.$_gs(S)};
_.M.contains=function(S){return!!this.instance_.$_c(S)};
_.M.get=function(S){return this.instance_.$_g(S)};
_.M.start=function(){this.instance_.$_st()};
_.M.add=function(S,p,U){this.instance_.$_a(S,p,U)};
_.M.remove=function(S,p,U){this.instance_.$_r(S,p,U)};
_.M.updateName=function(S,p,U,Y){this.instance_.$_un(S,p,U,Y)};
_.M.disposeInternal=function(){for(var S=this.subscriptionKeys_.length,p=0;p<S;++p)this.instance_.$_ubk(this.subscriptionKeys_[p]);this.subscriptionKeys_.length=0;this.instance_=null;Ci.prototype.disposeInternal.call(this)};
_.M.JSC$17567_onScreenChange_=function(){this.publish("screenChange")};
_.M.onOnlineScreenChange_=function(){this.publish("onlineScreenChange")};
mN.prototype.$_st=mN.prototype.start;mN.prototype.$_gspc=mN.prototype.JSC$17524_getScreenByPairingCode;mN.prototype.$_gsppc=mN.prototype.JSC$17524_getScreenByPollingPairingCode;mN.prototype.$_c=mN.prototype.contains;mN.prototype.$_g=mN.prototype.get;mN.prototype.$_a=mN.prototype.add;mN.prototype.$_un=mN.prototype.updateName;mN.prototype.$_r=mN.prototype.remove;mN.prototype.$_gs=mN.prototype.getScreens;mN.prototype.$_gos=mN.prototype.JSC$17524_getOnlineScreens;mN.prototype.$_s=mN.prototype.subscribe;
mN.prototype.$_ubk=mN.prototype.unsubscribeByKey;var M8t=function(S){F$J();if(!gF||!gF.get("yt-remote-disable-remote-module-for-dev")){S=_.g7("MDX_CONFIG")||S;sf5();K$L();Df||(Df=new XZ(S?S.loungeApiHost:void 0),XrT()&&(Df.basePath="/api/loungedev"));zi||(zi=_.ad("yt.mdx.remote.deferredProxies_")||[],_.NT("yt.mdx.remote.deferredProxies_",zi));c1T();var p=Qh();if(!p){var U=new mN(Df,S?S.disableAutomaticScreenCache||!1:!1);_.NT("yt.mdx.remote.screenService_",U);p=Qh();var Y={};S&&(Y={appId:S.appId,disableDial:S.disableDial,theme:S.theme,loadCastApiSetupScript:S.loadCastApiSetupScript,
disableCastApi:S.disableCastApi,enableDialLoungeToken:S.enableDialLoungeToken,enableCastLoungeToken:S.enableCastLoungeToken,forceMirroring:S.forceMirroring});_.NT("yt.mdx.remote.enableConnectWithInitialState_",S?S.enableConnectWithInitialState||!1:!1);MmT(U,function(I){I?nd()&&H9T(nd(),"YouTube TV"):U.subscribe("onlineScreenChange",function(){UJ("yt-remote-receiver-availability-change")})},Y)}if(S&&!_.ad("yt.mdx.remote.initialized_")){_.NT("yt.mdx.remote.initialized_",!0);
Jo("Initializing: "+(0,_.J2)(S));yh.push(_.MW("yt-remote-cast2-api-ready",function(){UJ("yt-remote-api-ready")}));
yh.push(_.MW("yt-remote-cast2-availability-change",function(){UJ("yt-remote-receiver-availability-change")}));
yh.push(_.MW("yt-remote-cast2-receiver-selected",function(){S8Y();UJ("yt-remote-auto-connect","cast-selector-receiver")}));
yh.push(_.MW("yt-remote-cast2-receiver-resumed",function(){UJ("yt-remote-receiver-resumed","cast-selector-receiver")}));
yh.push(_.MW("yt-remote-cast2-session-change",pt5));yh.push(_.MW("yt-remote-connection-change",function(I){I?H9T(nd(),"YouTube TV"):Uun()||(H9T(null,null),Wat())}));
yh.push(_.MW("yt-remote-cast2-session-failed",function(){UJ("yt-remote-connection-failed")}));
Y=Y85();S.isAuto&&(Y.id+="#dial");var L=S.capabilities||[];L.length>0&&(Y.capabilities=L);Y.name=S.device;Y.app=S.app;(S=S.theme)&&(Y.theme=S);Jo(" -- with channel params: "+(0,_.J2)(Y));Y?(_.p$("yt-remote-session-app",Y.app),_.p$("yt-remote-session-name",Y.name)):(_.Y2("yt-remote-session-app"),_.Y2("yt-remote-session-name"));_.NT("yt.mdx.remote.channelParams_",Y);p.start();nd()||Ltt()}}},duJ=function(){var S=Qh().instance_.$_gos();
var p=Irq();p&&Kd()&&(zkX(S,p)||S.push(p));return D0i(S)},V8o=function(){var S=duJ(),p=Irq();
p||(p=Uun());return _.fr(S,function(U){return p&&Z8(p,U.key)?!0:!1})},Irq=function(){var S=nd();
if(!S)return null;var p=Qh().getScreens();return sJ(p,S)},pt5=function(S){Jo("remote.onCastSessionChange_: "+DUd(S));
if(S){var p=Irq();p&&p.id==S.id?(H9T(p.id,"YouTube TV"),S.idType=="shortLived"&&(S=S.token)&&(p=Kd())&&p.setLoungeToken(S)):(p&&T_T(),Wti(S,1))}else Kd()&&T_T()},T_T=function(){k0L()?id().stopSession():$3("stopSession called before API ready.");
var S=Kd();S&&(S.disconnect(1),OaE(null))},kEd=function(){var S=Kd();
return S&&S.getProxyState()!=3?new Mi(Kd(),void 0):null},Jo=function(S){ld("remote",S)},Qh=function(){if(!HaJ){var S=_.ad("yt.mdx.remote.screenService_");
HaJ=S?new tqE(S):null}return HaJ},nd=function(){return _.ad("yt.mdx.remote.currentScreenId_")},Dun=function(S){_.NT("yt.mdx.remote.currentScreenId_",S)},S8Y=function(){_.NT("yt.mdx.remote.connectData_",null)},Kd=function(){return _.ad("yt.mdx.remote.connection_")},OaE=function(S){var p=Kd();
S8Y();S||Dun("");_.NT("yt.mdx.remote.connection_",S);zi&&(_.xs(zi,function(U){U(S)}),zi.length=0);
p&&!S?UJ("yt-remote-connection-change",!1):!p&&S&&UJ("yt-remote-connection-change",!0)},Uun=function(){var S=Jrt();
if(!S)return null;var p=Qh();if(!p)return null;p=p.getScreens();return sJ(p,S)},Wti=function(S,p){Dun(S.id);
S=new kp(Df,S,Y85(),_.ad("yt.mdx.remote.enableConnectWithInitialState_")||!1);S.connect(p,_.ad("yt.mdx.remote.connectData_"));S.subscribe("beforeDisconnect",function(U){UJ("yt-remote-before-disconnect",U)});
S.subscribe("beforeDispose",function(){Kd()&&OaE(null)});
S.subscribe("browserChannelAuthError",function(){var U=Irq();U&&U.idType=="shortLived"&&(k0L()?id().handleBrowserChannelAuthError():$3("refreshLoungeToken called before API ready."))});
OaE(S)},Ltt=function(){var S=Uun();
S?(Jo("Resume connection to: "+DUd(S)),Wti(S,0)):(er(),Wat(),Jo("Skipping connecting because no session screen found."))},Df=null,zi=null,HaJ=null,c1T=function(){var S=Y85();
if(_.h9.isEmpty(S)){S=nus();var p=_.Uz("yt-remote-session-name")||"",U=_.Uz("yt-remote-session-app")||"";S={device:"REMOTE_CONTROL",id:S,name:p,app:U,mdxVersion:3};S.authuser=String(_.g7("SESSION_INDEX","0"));(p=_.g7("DELEGATED_SESSION_ID"))&&(S.pageId=String(p));_.NT("yt.mdx.remote.channelParams_",S)}},Y85=function(){return _.ad("yt.mdx.remote.channelParams_")||{}},yh=[];var ztJ=new _.ug("yt-menu"),Q6o=function(){},J4i=function(S,p,U){S=p=="right-click"?U.rightClickMenuPopupHint:U.menuPopupHint;
if(!(nVi(p)>10))return p=p||"default",ztJ.set(p+"-impression",nVi(p)+1),S},nVi=function(S){return parseInt(ztJ.get((S||"default")+"-impression")||0,10)};
_.N_(Q6o);var y45=function(){this.contexts_=new WeakMap;this.JSC$17573_networkService_=this.activeContext_=null},KtJ=function(S,p,U){var Y=S.contexts_.get(p);
Y||(Y=new PTJ(S.JSC$17573_networkService_),S.contexts_.set(p,Y));S.activeContext_=Y;U&&S.activeContext_.reset();S.activeContext_.start();return S.activeContext_};var by=function(){};
by.prototype.enqueue=function(){var S=this,p;return _.T(function(U){if(S.isCounterfactual())return(p=S.getCounterfactualData())&&S.shouldLogCounterfactualImpression()&&S.sendImpressionEndpoints(p),U.return();S.doEnqueue();_.OV(U)})};
by.prototype.sendImpressionEndpoints=function(S){_.xv.getInstance().triggerOptionalAction("yt-service-request",{},S[0])};var jK=function(S,p){this.renderer=S;this.page=p};
_.r(jK,by);jK.prototype.getCounterfactualData=function(){if(this.renderer.impressionCommand)return[this.renderer.impressionCommand]};
jK.prototype.isCounterfactual=function(){return!this.renderer.isVisible};
jK.prototype.shouldLogCounterfactualImpression=function(){return!0};
jK.prototype.doEnqueue=function(){var S=_.v7(this.page);S&&S.pause();this.renderer.impressionCommand&&_.xv.getInstance().triggerOptionalAction("yt-service-request",{},this.renderer.impressionCommand);this.renderer.promoCommand&&_.Rq(_.xv.getInstance(),[this.renderer.promoCommand],this.page)};var bao=function(S,p){this.renderer=S;this.resolver=_.ay();this.JSC$17585_enforcementCounter=new _.QOt;p?this.JSC$17585_playerManager=_.v7(p):this.JSC$17585_playerManager=null;_.Tv(1,!0)};
_.r(bao,by);_.M=bao.prototype;_.M.getCounterfactualData=function(){if(this.renderer.impressionEndpoints){var S=[];this.renderer.impressionEndpoints.forEach(function(p){(p=_.sW(p))&&S.push(p)});
return S}};
_.M.isCounterfactual=function(){return this.renderer.isVisible===!1};
_.M.shouldLogCounterfactualImpression=function(){var S=_.cmG();S?(this.JSC$17585_enforcementCounter.increment("POPUP"),_.Tv(3)):_.Tv(2);return S};
_.M.cancel=function(){this.resolver.promise.cancel()};
_.M.doEnqueue=function(){var S=this;_.cmG()?(this.JSC$17585_enforcementCounter.increment("POPUP"),_.Tv(3),j6J(this)):this.JSC$17585_playerManager?(this.resolver.promise.then(function(){j6J(S)}),r45(this.resolver,this.JSC$17585_playerManager)):_.Tv(2)};
var r45=function(S,p){var U=_.ay();p.getPlayerPromise().then(function(Y){U.resolve(Y)});
U.promise.then(function(Y){Y.addEventListener("onAbnormalityDetected",S.resolve);_.zB(S.promise,function(){Y.removeEventListener("onAbnormalityDetected",S.resolve)})});
S.promise.thenCatch(function(){U.promise.cancel()})},j6J=function(S){_.Tv(3);
var p={popupType:"LOCKED_MODAL",popup:{enforcementMessageViewModel:S.renderer}};p=_.xv.getInstance().triggerOptionalAction("yt-open-popup-action",{openPopupAction:p},{});Promise.all(p).then(function(){GE5();S.JSC$17585_playerManager&&S.JSC$17585_playerManager.pause()})},GE5=function(){QxA(function(S,p){_.zwA(S,p);
S===0?_.Tv(7):_.Tv(4)})};var htd=function(S,p){this.renderer=S;this.page=p;this.resolver=_.ay()};
_.r(htd,by);_.M=htd.prototype;_.M.cancel=function(){this.resolver.promise.cancel()};
_.M.getCounterfactualData=function(){return this.renderer.impressionEndpoints};
_.M.isCounterfactual=function(){return!this.renderer.isVisible};
_.M.shouldLogCounterfactualImpression=function(){return!0};
_.M.doEnqueue=function(){var S=this;this.resolver.promise.then(function(){var U={popup:{mealbarPromoRenderer:S.renderer},popupType:"MEALBAR"};_.xv.getInstance().triggerOptionalAction("yt-open-popup-action",{openPopupAction:U},{})});
switch(this.renderer.triggerCondition){case "TRIGGER_CONDITION_POST_AD":if(this.page){var p=_.v7(this.page);p&&Rtn(this.resolver,p)}break;default:this.resolver.resolve()}};
var Rtn=function(S,p){var U=_.ay();p.getPlayerPromise().then(function(Y){U.resolve(Y)});
U.promise.then(function(Y){Y.addEventListener("onAdEnd",S.resolve);_.zB(S.promise,function(){Y.removeEventListener("onAdEnd",S.resolve)})});
S.promise.thenCatch(function(){U.promise.cancel()})};var Ftn=function(S,p){this.renderer=S;this.page=p};
_.r(Ftn,by);_.M=Ftn.prototype;_.M.cancel=function(){this.JSC$17593_downloadedVideosCountSelectorUnsubscriber&&(this.JSC$17593_downloadedVideosCountSelectorUnsubscriber(),this.JSC$17593_downloadedVideosCountSelectorUnsubscriber=void 0)};
_.M.getCounterfactualData=function(){return this.renderer.impressionEndpoints};
_.M.isCounterfactual=function(){return!this.renderer.isVisible};
_.M.shouldLogCounterfactualImpression=function(){return!0};
_.M.doEnqueue=function(){var S=this,p,U;((p=this.renderer.upsellDialogTriggerConditionSupportedDatas)==null?void 0:(U=p.playbackUpsellDialogTriggerConditionData)==null?void 0:U.triggerType)==="TRIGGER_TYPE_POST_DOWNLOAD"?this.JSC$17593_downloadedVideosCountSelectorUnsubscriber=_.Wt(_.vJ(),OAL,function(Y,L){Y>L&&(XtX(S),S.cancel())}):XtX(this)};
var XtX=function(S){var p={popup:{upsellDialogRenderer:S.renderer},popupType:"MODAL"};_.xv.getInstance().triggerOptionalAction("yt-open-popup-action",{openPopupAction:p},{});(S=_.v7(S.page))&&S.pause()};var rL={},Plq=(rL.TOOLTIP_POSITION_TYPE_BELOW="OPEN_POPUP_POSITION_BOTTOM",rL.TOOLTIP_POSITION_TYPE_START="OPEN_POPUP_POSITION_LEFT",rL.TOOLTIP_POSITION_TYPE_END="OPEN_POPUP_POSITION_RIGHT",rL.TOOLTIP_POSITION_TYPE_BELOW_START="OPEN_POPUP_POSITION_BOTTOMLEFT",rL.TOOLTIP_POSITION_TYPE_BELOW_END="OPEN_POPUP_POSITION_BOTTOMRIGHT",rL.TOOLTIP_POSITION_TYPE_ABOVE_START="OPEN_POPUP_POSITION_TOPLEFT",rL.TOOLTIP_POSITION_TYPE_ABOVE_END="OPEN_POPUP_POSITION_TOPRIGHT",rL),Zai=function(S,p){this.renderer=S;this.targetManager=
p};
_.r(Zai,by);_.M=Zai.prototype;_.M.cancel=function(){this.renderer.triggerCondition==="TOOLTIP_TRIGGER_CONDITION_TYPE_POST_DOWNLOAD"&&this.JSC$17600_downloadedVideosCountSelectorUnsubscriber&&(this.JSC$17600_downloadedVideosCountSelectorUnsubscriber(),this.JSC$17600_downloadedVideosCountSelectorUnsubscriber=void 0)};
_.M.getCounterfactualData=function(){if(this.isCounterfactual()){var S;return(S=this.renderer.promoConfig)==null?void 0:S.impressionEndpoints}};
_.M.isCounterfactual=function(){return!(!this.renderer.promoConfig||!this.renderer.promoConfig.isCounterfactual)};
_.M.shouldLogCounterfactualImpression=function(){return!0};
_.M.doEnqueue=function(){var S=this;if(this.renderer.targetId)switch(this.renderer.triggerCondition){case "TOOLTIP_TRIGGER_CONDITION_TYPE_POST_DOWNLOAD":this.JSC$17600_downloadedVideosCountSelectorUnsubscriber=_.Wt(_.vJ(),OAL,function(p,U){S.renderer.targetId&&p>U&&(IlL(S.targetManager,S.renderer.targetId,s65(S)),S.cancel())});
break;default:IlL(this.targetManager,this.renderer.targetId,s65(this))}};
var s65=function(S){var p;if((p=S.renderer.suggestedPosition)==null?0:p.type)var U=Plq[S.renderer.suggestedPosition.type];U||(U="OPEN_POPUP_POSITION_BOTTOM");return{openPopupAction:{popup:{tooltipRenderer:S.renderer},popupType:"HINT",position:U}}};var et5=function(){this.previousPage=null},gVn;
et5.prototype.registerPromoCommand=function(S,p){uzJ(this,void 0,void 0,_.b(S.roadblock,AKi),void 0,void 0,p)};
var uzJ=function(S,p,U,Y,L,I,V){S.previousPage!==V&&S.pendingTooltipPromo&&S.pendingTooltipPromo.cancel();S.previousPage=V;L?(S.pendingEnforcementPromo&&S.pendingEnforcementPromo.cancel(),S.pendingEnforcementPromo=new bao(L,V),S.pendingEnforcementPromo.enqueue()):I?(S.pendingCommandWrapperPromo=new jK(I,V),S.pendingCommandWrapperPromo.enqueue()):Y?(S.pendingRoadblockPromo&&S.pendingRoadblockPromo.cancel(),S.pendingRoadblockPromo=new Ftn(Y,V),S.pendingRoadblockPromo.enqueue()):p?(S.pendingMealbarPromo&&
S.pendingMealbarPromo.cancel(),S.pendingMealbarPromo=new htd(p,V),S.pendingMealbarPromo.enqueue()):U&&(S.pendingTooltipPromo&&S.pendingTooltipPromo.cancel(),S.pendingTooltipPromo=new Zai(U,_.Dq()),S.pendingTooltipPromo.enqueue())},wtq=function(){gVn||(gVn=new et5);
return gVn};var J8L=!1;var OHt=function(S,p){var U=_.g7("SESSION_INDEX");this.actionToken_=S;this.commonToken_=p;this.sessionIndex_=U},WFo=function(S){var p=_.ay(),U=_.ad("payments.business.integration.bootstrap"),Y=_.ad("payments.business.integration"),L=Y.Style.create().withMaterialDesignStyle(),I=Y.mashupMode.popup("instrument-manager");
U.asMashupMode(I).usingUserIndex(S.sessionIndex_).usingDefaultActivityStatusChangeHandler().usingStyle(L).inStandaloneContext(Y.standaloneContextAuthId.forUserId()).instrumentManager(S.actionToken_,S.commonToken_.length>0?S.commonToken_:void 0,function(V){var W=V.instrumentId;W?p.resolve(W):(W=_.ad("payments.business.integration.scenario.InstrumentManager"),p.reject(V.errorCode&&V.errorCode===W.FailureReason.CANCELLED?"instrumentManagerCancelled":"instrumentManagerCallbackError"))}).load(null,function(V){_.w7(V);
p.reject("instrumentManagerLoadError")});
return p.promise};var S2=function(S,p,U){this.payloadName="transactionFlowFailed";this.payload={errorType:S,serializedTransactionFlowLoggingParams:p,isUserDismiss:U===void 0?!1:U}};
_.NT("yt.ypc.shared.YpcTransactionFlowError",S2);var Gi=function(){return _.HT.apply(this,arguments)||this};
_.r(Gi,_.HT);Gi.prototype.beforeRegister=function(){this.stampDom||(this.stampDom={});this.stampDom.errorRenderer={id:"error",mapping:{liveChatErrorMessageRenderer:"yt-live-chat-error-message-renderer"}}};
Gi.prototype.onErrorMessageDismiss=function(){this._setErrorRenderer(null)};
Gi.prototype.onErrorMessageDismiss=Gi.prototype.onErrorMessageDismiss;_.x([_.g({readOnly:!0,observer:"errorRendererChanged"}),_.E("design:type",Object)],Gi.prototype,"errorRenderer",void 0);_.x([_.Vd("yt-live-chat-error-message-dismiss"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],Gi.prototype,"onErrorMessageDismiss",null);Gi=_.x([_.Dl()],Gi);var lr5=[Gi.prototype];var arJ;var frT;var Cls=new _.ug("yt-live-chat"),xuY=new Map;xuY.set("timestamp_toggle","show-timestamps");xuY.set("reactions_toggle","allow-reactions");var ho=function(){return _.w.apply(this,arguments)||this};
_.r(ho,_.w);_.M=ho.prototype;_.M.menuItemIdentifierChanged=function(){var S;(S=this.data)!=null&&S.menuItemIdentifier&&(S=xuY.get(this.data.menuItemIdentifier))&&(_.y("enable_lwe_web_mute")?(S=Cls.get(S),this.isToggled=!(S===void 0?!this.data.isToggled:!S)):this.isToggled=Cls.get(S))};
_.M.onFocus=function(){this.toggleButton.focus()};
_.M.onTap=function(){var S=this.data.command;S&&this.componentBehavior.resolveCommand(S)};
_.M.computeText=function(S,p,U){return this.componentBehavior.getSimpleString(S?U:p)};
_.M.computeIcon=function(S,p,U){return(S=S?U:p)&&S.iconType?_.If(S.iconType):""};
ho.prototype.onTap=ho.prototype.onTap;ho.prototype.onFocus=ho.prototype.onFocus;ho.prototype.menuItemIdentifierChanged=ho.prototype.menuItemIdentifierChanged;_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],ho.prototype,"ytRendererBehavior",void 0);_.x([_.F(_.eL.YtComponentBehavior),_.E("design:type",Object)],ho.prototype,"componentBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],ho.prototype,"data",void 0);
_.x([_.g({computed:"computeIcon(data.isToggled,data.defaultIcon,data.toggledIcon)",value:""}),_.E("design:type",String)],ho.prototype,"icon",void 0);_.x([_.g({value:!1}),_.E("design:type",Boolean)],ho.prototype,"isToggled",void 0);_.x([_.O2("tp-yt-paper-toggle-button"),_.E("design:type",Object)],ho.prototype,"toggleButton",void 0);_.x([_.T4("data.menuItemIdentifier"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],ho.prototype,"menuItemIdentifierChanged",null);
_.x([_.Vd("focus"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],ho.prototype,"onFocus",null);_.x([_.Vd("tap"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],ho.prototype,"onTap",null);ho=_.x([_.FB({disableElementRegistration:!0,is:"yt-live-chat-toggle-renderer",noInjection:!0})],ho);
_.C(ho,"yt-live-chat-toggle-renderer",function(){if(frT===void 0){var S=document.createElement("template");_.h(S,'\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');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);var p=S.content,U=p.insertBefore;arJ===void 0&&(arJ=document.createElement("template"));var Y=arJ;U.call(p,Y.content.cloneNode(!0),S.content.firstChild);frT=S}S=frT;return S},{mode:_.y("live_chat_enable_sink_wrapper")?2:0});var EVq=new _.$g("NAVIGATION_PROGRESS_TOKEN");_.en("LATEST_ECATCHER_SERVICE_TRACKING_PARAMS",{});var muT={},h0P=(muT.CSI=function(S,p){var U={};U[S]=p;S=_.lb(_.$Ce)(U);Object.keys(S).length>0&&_.ha(S)},muT.ECATCHER=function(S){return function(p,U){_.g7(S)[p]=U}}("LATEST_ECATCHER_SERVICE_TRACKING_PARAMS"),muT);var oV5={},vV5={},$un=(vV5[fFY.name]=!0,vV5),Rv=function(){var S=_.HT.apply(this,arguments)||this;S._noAccessors=!0;S.tabGesturesIsActive=!1;S.actionRouterIsRoot=!0;S.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"};S.pageTitle="";S.titleSuffix="YouTube";S.unseenNotificationCount=
0;S.hasNavigated=!1;S.hasSetScrollTopForNavigation=!1;S.pagePreparer=null;S.zwiebackInitJobId=0;S.dataUpdatePromise=null;S.loadDepsPromise=_.Mw();S.hasPendingNavigation=!1;S.pendingPlayerOnResponseReceivedActions=[];return S};
_.r(Rv,_.HT);Rv.prototype.attached=function(){iai(this);document.addEventListener("yt-navigate-cache",_.d9(this,this.onYtNavigateCache));this.ytActionHandlerBehavior.registerActionMap(this.appBehaviorActionMap);var S=F9();S.init();S.dispatchElement=this.hostElement};
var iai=function(S,p){p=p===void 0?0:p;var U=_.tW().resolve(_.AW(_.Hl));if(U)N_n(S,U);else{if(p>=5)throw Error("Wk");setTimeout(function(){iai(S,p+1)},0)}},N_n=function(S,p){p.addEventListener("yt-navigate-start",_.d9(S,S.onYtNavigateStart));
p.addEventListener("yt-navigate-finish",_.d9(S,S.onYtNavigateFinish));p.addEventListener("yt-navigate-error",_.d9(S,S.onYtNavigateError));p.addEventListener("yt-page-data-fetched",_.d9(S,S.onYtPageDataFetched))};
_.M=Rv.prototype;_.M.detached=function(){var S=_.tW().resolve(_.Hl);S.removeEventListener("yt-navigate-start",_.d9(this,this.onYtNavigateStart));S.removeEventListener("yt-navigate-finish",_.d9(this,this.onYtNavigateFinish));S.removeEventListener("yt-navigate-error",_.d9(this,this.onYtNavigateError));S.removeEventListener("yt-page-data-fetched",_.d9(this,this.onYtPageDataFetched));document.removeEventListener("yt-navigate-cache",_.d9(this,this.onYtNavigateCache));this.ytActionHandlerBehavior.unregisterActionMap(this.appBehaviorActionMap)};
_.M.setPageOffset=function(S,p){S?_.St(this.hostElement,"yt-set-page-offset",[S,p]):_.ZP(Error("Xk"))};
_.M.setPageOffsetForNavigation=function(S,p){this.hasSetScrollTopForNavigation||(this.hasSetScrollTopForNavigation=!0,this.setPageOffset(S,p))};
_.M.onYtNavigateSetPageOffset=function(S,p){this.setPageOffsetForNavigation(p.page,p.offset)};
_.M.getPageOffset=function(){var S=_.tB(this.hostElement).querySelector("#page-manager").getCurrentPage(),p=0;S&&(p=_.St(this.hostElement,"yt-get-page-offset",[S])[0]);return p};
_.M.onYtHistoryPop=function(S,p){if(_.ub("DISABLE_WARM_LOADS"))S.preventDefault(),window.location.reload();else{var U=_.tW().resolve(_.Hl);U.hasPendingNavigation()&&S.preventDefault();U.cancelPendingNavigation();_.pp(this.hostElement,"yt-pending-navigation-cancelled");p.errorMsg&&(S=p.errorMsg.split(" - "),p=Error(S[0]),S.length==2&&S[1]&&(_.gK(p,S[1]),_.eP(p)),window.location.reload())}};
_.M.onYtHistoryLoad=function(S,p){var U=this;if(_.ub("DISABLE_WARM_LOADS"))window.location.reload();else{(S=p.endpoint)&&Object.keys(S).length||(S=null);var Y=p.historyEntry,L=_.tW().resolve(_.Hl),I=_.tW().resolve(_.oy),V=null;Y&&Y.rootData&&(V=Y.rootData);var W=V&&B_T(V);!V||W||V.filler?S?(L.navigate(S,!0),q8T(this,S)):(p.legacyBorder||W||(p.JSC$26568_savedComponentState==null&&V==null?_.eP(new _.y7("Incomplete history entry",p.forward)):_.s9(new _.y7("Malformed history entry",p.JSC$26568_savedComponentState,
p.forward,V))),window.location.reload()):(_.SwE({isHot:!0}),_.ha({webInfo:{navigationReason:"h"}}),_.HFk(),_.Fg("srt"),_.Fg("pdc"),this.cancelPendingTasks(),A4J(this,p.forward,V),V.player&&(V.player.loaded=!1),q8T(this,S),_.dMc(L,S||{},V,2,{},!1,p).then(function(){U.setPageOffset(I.getCurrentPage(),Y.scrollTop||0)}))}};
_.M.initHistoryManager=function(S){if(!this.hasNavigated){this.hasNavigated=!0;var p=_.tB(this.hostElement).querySelector("#page-manager").getCurrentData();S=isNaN(S)?this.getPageOffset():S;var U=_.tW().resolve(_.Hl).currentEndpoint;this.replaceState(U,p,S)}};
_.M.cancelPendingTasks=function(){this.pagePreparer&&this.pagePreparer.cancel()};
_.M.onYtNavigateStart=function(S,p){this.cancelPendingTasks();p.noProgressBar||(S=_.tW().resolve(_.AW(EVq)))&&S.start();S=this.hasPendingNavigation?null:this.data;var U=_.tW().resolve(_.oy),Y,L,I;_.y("kevlar_use_vimio_behavior")&&!((Y=p.endpoint)==null?0:(L=Y.commandMetadata)==null?0:(I=L.webCommandMetadata)==null?0:I.ignoreNavigation)&&(Y=U.getCurrentPage())&&Y.disconnectVisibilityRoot();U.prepareForNavigation(p.pageType,p.endpoint);_.y("kevlar_remove_page_dom_on_switch")||(this.pagePreparer=new _.NH(1,
"pcl"),_.Bl(this.pagePreparer,U.preparePage.bind(U,p.pageType,p.endpoint)));Y=this.getPageOffset();this.initHistoryManager(Y);p.reload||this.hasPendingNavigation?this.replaceState(p.endpoint,S,Y):(S==null?void 0:S.page)==="watch"&&p.pageType==="watch"&&_.y("kevlar_replace_watch_to_watch_history_state")?this.replaceState(p.endpoint,S,Y):(S==null?void 0:S.page)!=="shorts"||p.pageType!=="shorts"||p.endpoint.reelWatchEndpoint.sequenceParams||_.y("short_to_short_back_nav_killswitch")?p.type!="navigate-back"&&
p.type!="navigate-forward"&&(p.pageType==="shorts"&&_.cv(this.hostElement,"yt-shorts-reset"),this.saveAndPush(p.url,p.endpoint,S,Y)):this.replaceState(p.endpoint,S,0);this.hasPendingNavigation=!0};
var t8n=function(S){S.hasPendingNavigation=!1;(S=_.tW().resolve(_.AW(EVq)))&&S.finish()};
Rv.prototype.onYtNavigateError=function(S,p){t8n(this);S=this.get("endpoint.commandMetadata.webCommandMetadata.url",p);var U=_.mc(window.location.href);S&&!U.pbjreload&&(p=p.navigationErrorReason||"10",_.y("kevlar_parent_on_pbjreload")&&(U={csn:_.X$()},this.get("data.endpoint.clickTrackingParams")&&(U.itct=this.data.endpoint.clickTrackingParams),_.$n(S,U)),_.lE(_.od(S,{pbjreload:p})))};
Rv.prototype.onYtNavigateCache=function(S,p){var U=this,Y=p.url,L=p.endpoint,I=p.data;S=!!p.miniplayer;p=!!p.skipHistory;if(Y&&L&&I){var V=this.getPageOffset(),W=this.data||null;p||this.saveAndPush(Y,L,W,V);Y=_.dMc(_.tW().resolve(_.Hl),L,I,S?4:3,{},S);S&&Y.then(function(){U.dataUpdatePromise&&U.dataUpdatePromise.then(function(){var O=_.tW().resolve(_.oy);U.setPageOffset(O.getCurrentPage(),0)})})}};
Rv.prototype.onYtNavigateFinish=function(S,p){var U=this;this.dataUpdatePromise&&this.dataUpdatePromise.then(function(){c4X(U,p.fromHistory)})};
var c4X=function(S,p){t8n(S);if(S.pendingPlayerOnResponseReceivedActions){for(var U=_.d(S.pendingPlayerOnResponseReceivedActions),Y=U.next();!Y.done;Y=U.next())_.Te(Y.value,S.hostElement);S.pendingPlayerOnResponseReceivedActions=[]}U=_.tW().resolve(_.oy);!p&&S.hasNavigated&&((p=U.getCurrentPage())?p.is==="ytd-shorts"||S.tabGesturesIsActive||S.setPageOffsetForNavigation(p,0):_.eP(Error("Yk")));_.uK(function(){_.uK(function(){_.Fg("pda")})})};
Rv.prototype.onYtNavigate=function(S){if(!S.detail.endpoint){var p=new _.y7("Error: Missing yt-navigate endpoint from target:",S.target,S.target.nodeName);_.ZP(p)}if(p=_.y("cold_missing_history"))p=F9(),p.init(!1),p=!(p.browserHistory.boundHistoryReplaceState&&p.browserHistory.boundHistoryPushState);if(p){_.en("DISABLE_WARM_LOADS",!0);p=new _.y7("Failed to initialize history manager",this.getDebugString());var U=navigator.userAgent&&navigator.userAgent.includes("Version/11.1.2 Safari");this.getThirdPartyManipulationSuspected()||
U?_.eP(p):_.ZP(p)}p=S.detail.endpoint;var Y,L;_.y("debug_forward_web_query_parameters")&&((Y=p.commandMetadata)==null?0:(L=Y.webCommandMetadata)==null?0:L.url)&&(p=JSON.parse(JSON.stringify(p)),p.commandMetadata.webCommandMetadata.url=_.Eur(p.commandMetadata.webCommandMetadata.url,window.location.search));S={type:0,command:p,form:{params:S.detail.params,tempData:S.detail.tempData||{},requestType:S.detail.type,createScreenConfig:S.detail.createScreenConfig,reload:S.detail.reload?S.detail.reload:!1,
requestForm:S.detail}};_.y("kevlar_yt_navigate_command_handler")?(Y=_.tW().resolve(_.cQ),S.form.skipDefaultElement=!0,Y.resolveCommand(p,{form:S.form})):this.handleNavigate(S)};
Rv.prototype.handleNavigate=function(S){this.hasSetScrollTopForNavigation=!1;var p=_.tW().resolve(_.Hl),U=S.form||{};p.navigate(S.command,U.reload,U.params,U.tempData,U.requestType,U.createScreenConfig,U.ignoreConfirmation,U.requestForm)&&q8T(this,S.command,U.tempData)};
Rv.prototype.onYtPageDataFetched=function(S,p){try{_.V7E().reset();this.data=p.pageData;this.dataUpdatePromise&&(this.dataUpdatePromise.cancel("canceled dataUpdatePromise_"),this.dataUpdatePromise=null);this.pendingPlayerOnResponseReceivedActions=[];this.dataUpdatePromise=_.tW().resolve(_.oy).updatePageData(this.data);var U=this.get("playerResponse.responseContext.serviceTrackingParams",this.data);U&&R0Y(U);var Y=this.get("response.responseContext.serviceTrackingParams",this.data);Y&&R0Y(Y);var L=
this.get("playerResponse.onResponseReceivedActions",this.data);L&&(L=SzA(this,L));L&&_.Lp(this.hostElement,L,this.hostElement);var I=this.get("playerResponse.responseContext.consistencyTokenJar",this.data),V=this.get("response.responseContext.consistencyTokenJar",this.data);if(I||V){var W=_.Jtw(),O=(0,_.h9.getValues)(W.tokenJars);I&&W.replace(O,I);V&&W.replace(O,V)}}catch(D){_.ZP(D)}};
var q8T=function(S,p,U){try{S.onYtEndpointChangeHandler(p,U)}catch(Y){_.ZP(Y)}};
_.M=Rv.prototype;_.M.onYtEndpointChangeHandler=function(){};
_.M.setPageTitle=function(S){S=(this.pageTitle=S)?S+" - "+this.titleSuffix:this.titleSuffix;document.title=(this.unseenNotificationCount?"("+this.unseenNotificationCount+") ":"")+S};
_.M.onYtUpdateTitle=function(S,p){this.setPageTitle(p)};
_.M.setUnseenNotificationCount=function(S){this.unseenNotificationCount=S;this.setPageTitle(this.pageTitle)};
_.M.handleUpdateNotificationsUnseenCountAction=function(S){_.b(S,Kld)&&((S=_.b(S,Kld).unseenCount)?this.setUnseenNotificationCount(S):this.setUnseenNotificationCount(0))};
_.M.handleClearCookieAction=function(S){var p;(S=(p=_.b(S,QXo))==null?void 0:p.cookieName)&&_.dUN(S)};
_.M.onYtUpdateUnseenNotificationCount=function(S,p){this.setUnseenNotificationCount(p)};
_.M.loadData=function(S){var p=this;this.loadDepsPromise.then(function(){var U=_.tW().resolve(_.AW(_.Hl));U||_.ZP(Error("Zk"));if(S&&S.response){if(!S.endpoint){var Y=_.lL(window.document.location.href)||"/",L="";if(Y==="/"||Y.startsWith("/?"))L="WEB_PAGE_TYPE_BROWSE";S.endpoint={commandMetadata:{webCommandMetadata:{url:Y,webPageType:L,rootVe:3854}}}}_.dMc(U,S.endpoint,S,5,{})}else S.endpoint?U.navigate(S.endpoint):U.navigate(_.TE);_.PA.cancelJob(p.zwiebackInitJobId);p.zwiebackInitJobId=_.PA.addLowPriorityJob(y8t)})};
var F9=function(){return _.tW().resolve(_.ds)};
Rv.prototype.getDebugString=function(){return F9().getDebugString()};
Rv.prototype.getThirdPartyManipulationSuspected=function(){return F9().getThirdPartyManipulationSuspected()};
Rv.prototype.replaceState=function(S,p,U){F9().saveAndReplace(S,p,U)};
Rv.prototype.saveAndPush=function(S,p,U,Y){F9().saveAndPush(S,p,U,Y)};
var B_T=function(S){return _.b(S.endpoint,_.E$)||_.b(S.endpoint,_.QX)?!0:!S||isNaN(S.expirationTime)?!1:(0,_.AI)()>S.expirationTime},A4J=function(S,p,U){var Y=S.get("response.trackingParams",U),L=_.F$(),I=_.X$();
if(Y&&L&&I&&(Y=S.get("response.responseContext.webResponseContextExtensionData.ytConfigData.rootVisualElementType",U),!Y&&U.rootVe&&(Y=U.rootVe),L=p?"forwardButton":"backButton",p=S.get("playerResponse.topbar.desktopTopbarRenderer."+L+".buttonRenderer.command.clickTrackingParams",S.data),S=S.get("response.topbar.desktopTopbarRenderer."+L+".buttonRenderer.command.clickTrackingParams",S.data),p=(S=p||S)?_.JS(S):void 0,S=_.HX(),L=[_.Mw(U)],_.S8(S,Y,p,{dataPromises:L,csnToClone:U.csn}),U.graftedVes))for(U=
_.d(U.graftedVes),Y=U.next();!Y.done;Y=U.next())_.pa(S,Y.value)};
Rv.prototype.onStoreGraftedVeAction=function(S){this.data?(this.data.graftedVes||(this.data.graftedVes=[]),this.data.graftedVes.push(S)):_.eP(Error("$k"))};
var SzA=function(S,p){return p.filter(function(U){for(var Y in U)if($un[Y])return S.pendingPlayerOnResponseReceivedActions.push(U),!0;return!1})};
_.$u.Object.defineProperties(Rv.prototype,{csiServiceName:{configurable:!0,enumerable:!0,get:function(){}}});
Rv.prototype.onStoreGraftedVeAction=Rv.prototype.onStoreGraftedVeAction;Rv.prototype.loadData=Rv.prototype.loadData;Rv.prototype.onYtUpdateUnseenNotificationCount=Rv.prototype.onYtUpdateUnseenNotificationCount;Rv.prototype.handleClearCookieAction=Rv.prototype.handleClearCookieAction;Rv.prototype.handleUpdateNotificationsUnseenCountAction=Rv.prototype.handleUpdateNotificationsUnseenCountAction;Rv.prototype.setUnseenNotificationCount=Rv.prototype.setUnseenNotificationCount;
Rv.prototype.onYtUpdateTitle=Rv.prototype.onYtUpdateTitle;Rv.prototype.setPageTitle=Rv.prototype.setPageTitle;Rv.prototype.onYtEndpointChangeHandler=Rv.prototype.onYtEndpointChangeHandler;Rv.prototype.onYtPageDataFetched=Rv.prototype.onYtPageDataFetched;Rv.prototype.handleNavigate=Rv.prototype.handleNavigate;Rv.prototype.onYtNavigate=Rv.prototype.onYtNavigate;Rv.prototype.onYtNavigateFinish=Rv.prototype.onYtNavigateFinish;Rv.prototype.onYtNavigateCache=Rv.prototype.onYtNavigateCache;
Rv.prototype.onYtNavigateError=Rv.prototype.onYtNavigateError;Rv.prototype.onYtNavigateStart=Rv.prototype.onYtNavigateStart;Rv.prototype.cancelPendingTasks=Rv.prototype.cancelPendingTasks;Rv.prototype.initHistoryManager=Rv.prototype.initHistoryManager;Rv.prototype.onYtHistoryLoad=Rv.prototype.onYtHistoryLoad;Rv.prototype.onYtHistoryPop=Rv.prototype.onYtHistoryPop;Rv.prototype.onYtNavigateSetPageOffset=Rv.prototype.onYtNavigateSetPageOffset;Rv.prototype.setPageOffset=Rv.prototype.setPageOffset;
_.x([_.F(_.Aj.YtActionHandlerBehavior),_.E("design:type",Object)],Rv.prototype,"ytActionHandlerBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],Rv.prototype,"data",void 0);_.x([_.Vd("yt-navigate-set-page-offset"),_.E("design:type",Function),_.E("design:paramtypes",[CustomEvent,Object]),_.E("design:returntype")],Rv.prototype,"onYtNavigateSetPageOffset",null);
_.x([_.Vd("yt-history-pop"),_.E("design:type",Function),_.E("design:paramtypes",[CustomEvent,Object]),_.E("design:returntype")],Rv.prototype,"onYtHistoryPop",null);_.x([_.Vd("yt-history-load"),_.E("design:type",Function),_.E("design:paramtypes",[Event,_.F9Q]),_.E("design:returntype")],Rv.prototype,"onYtHistoryLoad",null);_.x([_.Vd("yt-navigate"),_.E("design:type",Function),_.E("design:paramtypes",[CustomEvent]),_.E("design:returntype")],Rv.prototype,"onYtNavigate",null);
_.x([_.Vd("yt-update-title"),_.E("design:type",Function),_.E("design:paramtypes",[Event,String]),_.E("design:returntype")],Rv.prototype,"onYtUpdateTitle",null);_.x([_.Vd("yt-update-unseen-notification-count"),_.E("design:type",Function),_.E("design:paramtypes",[Event,Number]),_.E("design:returntype")],Rv.prototype,"onYtUpdateUnseenNotificationCount",null);Rv=_.x([_.Dl()],Rv);oV5.YtdAppBehavior=[_.Aj.YtActionHandlerBehavior,Rv.prototype];var X9=function(){var S=_.HT.apply(this,arguments)||this;S._noAccessors=!0;return S};
_.r(X9,_.HT);X9.prototype.ready=function(){var S=this;_.tB(this.hostElement).querySelector("#checkbox").addEventListener("change",function(){S.onChange_()})};
X9.prototype.dataChanged_=function(){_.tB(this.hostElement).querySelector("#checkbox").checked=!1};
X9.prototype.onChange_=function(){var S=_.tB(this.hostElement).querySelector("#checkbox").checked?"selected":"deselected";_.cv(this.hostElement,"yt-dismissal-reason-"+S,this.data.feedbackToken)};
X9.prototype.dataChanged_=X9.prototype.dataChanged_;_.x([_.g(),_.E("design:type",Object)],X9.prototype,"data",void 0);_.x([_.T4("data"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],X9.prototype,"dataChanged_",null);X9=_.x([_.Dl()],X9);var plY=[X9.prototype];var PZ=function(){var S=_.HT.apply(this,arguments)||this;S.timeoutJobId=0;S.actionMap={"yt-open-popup-action":"startTimeout","yt-close-popup-action":"cancelTimeout"};return S};
_.r(PZ,_.HT);PZ.prototype.ytdHatsSurveyBehaviorDataChanged=function(){this.cancelTimeout()};
PZ.prototype.startTimeout=function(){var S=this,p=this.data&&this.data.displayDurationSeconds;p&&!this.timeoutJobId&&(this.timeoutJobId=_.bQ(_.PA,function(){_.St(S.hostElement,"yt-close-popup-action",[S.is]);S.timeoutJobId=0},p*1E3))};
PZ.prototype.cancelTimeout=function(){_.PA.cancelJob(this.timeoutJobId);this.timeoutJobId=0};
PZ.prototype.ytdHatsSurveyBehaviorDataChanged=PZ.prototype.ytdHatsSurveyBehaviorDataChanged;_.x([_.F(_.Aj.YtActionHandlerBehavior),_.E("design:type",Object)],PZ.prototype,"ytActionHandlerBehavior",void 0);_.x([_.T4("data"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],PZ.prototype,"ytdHatsSurveyBehaviorDataChanged",null);PZ=_.x([_.Dl()],PZ);var UHA=[_.Aj.YtActionHandlerBehavior,PZ.prototype];var YzY=function(S,p){return S.SHARED_RENDERERS_.hasOwnProperty(p)?"yt":S.prefix},Zf={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}};Zf.MEALBAR={component:"tp-yt-paper-dialog",properties:{keepBelowPlayer:!_.y("kevlar_mealbar_above_player"),modern:_.y("web_modern_dialogs"),noAutoFocus:!0,noCancelOnOutsideClick:!0,withBackdrop:!1,restoreFocusOnClose:!0},styles:{position:"fixed",top:"auto",left:"0",right:"auto",bottom:"0",margin:"16px"},rtlStyles:{position:"fixed",top:"auto",right:"0",left:"auto",bottom:"0",margin:"16px"}};
Zf.BOTTOM_SHEET={component:"tp-yt-paper-dialog",properties:{},styles:{position:"fixed",bottom:"0",width:"100%",margin:"0"}};Zf.MODAL={component:"tp-yt-paper-dialog",properties:{modal:!0,modern:!0},forceFocus:!0,preventAutonav:!0};Zf.LOCKED_MODAL={component:"tp-yt-paper-dialog",properties:{modal:!0,modern:!0,scrollAction:"lock"},forceFocus:!0,preventAutonav:!0};
Zf.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)"}};
Zf.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};
Zf.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};
Zf.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};
Zf.CONTEXTUAL_SHEET={component:"tp-yt-iron-dropdown",properties:{noOverlap:!0,horizontalAlign:"auto",verticalAlign:"top",dynamicAlign:!0,withBackdrop:!1,avoidOuterEdge:!0},forceFocus:!0,slotName:"dropdown-content",preventAutonav:!0};Zf.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"}};
Zf.TOP_ALIGNED_DIALOG={component:"tp-yt-paper-dialog",properties:{withBackdrop:!0,verticalAlign:"top",horizontalAlign:"center"},styles:{margin:"8px 0 0 0"},targetContainer:!0};Zf.TOAST={component:null,properties:{}};var LVn=new function(S,p,U){this.supportedPopups=S;this.navigationEndpointPopupMap=p;this.popupTypeMap=U;this.supportedPopups=S;this.navigationEndpointPopupMap=p;this.popupTypeMap=U}({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:_.y("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"}),MLq=new function(){this.prefix="ytd";this.SHARED_RENDERERS_={aboutThisAdRenderer:!0,
bubbleHintRenderer:!0,confirmDialogRenderer:!0,fancyDismissibleDialogRenderer:!0,mealbarPromoRenderer:!0,notificationActionRenderer:!0,reportDetailsFormRenderer:!0,reportFormModalRenderer:!0,sharingEmbedRenderer:!0,sharingRenderer:!0,showActionDialogRenderer:!0,sortFilterSubMenuPopupRenderer:!0,tooltipRenderer:!0,unlimitedFamilyMessageInterstitialRenderer:!0,unlimitedFamilyProfileInterstitialRenderer:!0,unpluggedPauseMembershipDialogRenderer:!0,upsellDialogRenderer:!0,ypcOffersModalRenderer:!0,ypcUpgradeDialogRenderer:!0,
loadingRenderer:!0,sheetViewModel:!0,miniAppGameInfoDialogViewModel:!0,profileCardViewModel:!0,genAiFeedbackFormViewModel:!0,dialogViewModel:!0,gulpTriggeringDialogViewModel:!0,imageEditorRenderer:!0,storiesViewerViewModel:!0};this.JSC$17652_popupConfig=Zf;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 IqL=function(){this.pageNameToElement=new Map;this.TEST_ONLY=void 0;this.elementPoolPopulator=_.rr.getInstance()},sf=function(S,p){var U=S.pageNameToElement.get(p);
if(!U){switch(p){case "watch":var Y=_.y("web_watch_force_learning_journey_for_testing")?_.ij("ytd-watch-learning-journey"):_.y("kevlar_watch_fixie")?_.ij("ytd-watch-fixie"):_.y("kevlar_watch_grid")?_.ij("ytd-watch-grid"):_.ij("ytd-watch-flexy");break;case "learning_journey_watch":Y=_.ij("ytd-watch-learning-journey");break;case "shorts":Y=_.ij("ytd-shorts");break;case "search":Y=_.ij("ytd-search");break;case "channel":Y=_.ij("ytd-browse");Y.pageSubtype="channels";break;case "trending":Y=_.ij("ytd-browse");
Y.pageSubtype="trending";break;case "playlist":case "standalone":case "home":case "explore":case "learning":case "live":case "news":case "sports":case "music":case "playables":case "mini_app":case "red":case "WEB_PAGE_TYPE_SETTINGS":case "history":case "labs":case "handle":case "subscriptions":case "filteredsubscriptions":case "memberships-and-purchases":case "channel-memberships-shopfront":case "yts-products":case "ypc-offers":case "ypc-checkout":case "fashion":case "hashtag-landing-page":case "show":case "open-in-app":case "audio-pivot":case "subscriptions-channels":Y=
_.ij("ytd-browse");Y.pageSubtype=p;break;case "browse":Y=_.ij("ytd-browse");break;default:_.eP(new _.y7("Error getting page element for type",p))}U=Y;S.pageNameToElement.set(p,U)}return U};
IqL.prototype.preparePage=function(S,p,U){U&&(S=_.O1(U)||S);if(S!=="watch"){var Y=this.elementPoolPopulator,L=S;L!=Y.targetPage_&&Y.pendingPages_.indexOf(L)>-1&&(Y.targetPage_&&(Y.pendingPages_.unshift(Y.targetPage_),Y.abort()),T9t(Y,L),_.h5H(Y,L))}if((Y=sf(this,S))||!_.b(U,_.Cv)){Y.isAttached||Y===p||(Y.hidden=!0);if(!(Y.data||S==="watch"&&_.y("swatcheroo_page_pool_dont_provide_filler_data"))){var I;if(S=(I=_.g7("FILLER_DATA",{})[S])==null?void 0:I.response)Y.data=S}return Y}};var dHL=function(S){this.JSC$28461_clientRoot=S;this.playlistHandlerActionMap={"yt-add-to-playlist-command":Z9o,"yt-end-playlist-command":s9T,"yt-recover-playlist-command":gnP,"yt-refresh-playlist-command":lLn,"yt-playlist-remove-videos-action":u$i};_.E9(_.xv.getInstance(),this.playlistHandlerActionMap,this.JSC$28461_clientRoot);yFP()},VLA;var eK=function(S,p,U){this.apiKey=S;this.endpoint=p;this.confidenceThreshold=U===void 0?.5:U;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=p==="https://embeddedassistant-webchannel.googleapis.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel"||p==="https://embeddedassistant-clients6.youtube.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel"||
p==="https://embeddedassistant-frontend-webchannel.googleapis.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel"||p==="https://embeddedassistant-frontend-clients6.youtube.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel";new UVT};
_.M=eK.prototype;
_.M.start=function(S){if(this.state===0)if(this.isOnline()){S.supportsHttpHeadersOverwriteParam!==void 0&&(this.supportsHttpHeadersOverwriteParam=S.supportsHttpHeadersOverwriteParam);S.startCustomCsiTimeline!==void 0&&(this.startCustomCsiTimeline=S.startCustomCsiTimeline);this.startCustomCsiTimeline&&_.R2("voice_assistant");_.Xg("voz_ms",void 0,"voice_assistant");this.state=1;this.receivedEndOfUtterance=!1;this.languageCode=S.languageCode||"en-US";this.supportsCrossDomainXhr=S.supportsCrossDomainXhr||this.supportsCrossDomainXhr;
this.youtubeAssistantRequest=S.youtubeAssistantRequest||null;this.listeningHandler=S.listeningHandler||this.listeningHandler;this.audioDetectedHandler=S.audioDetectedHandler||this.audioDetectedHandler;this.stopHandler=S.stopHandler||this.stopHandler;this.completeHandler=S.completeHandler||this.completeHandler;this.transcriptionCompleteHandler=S.transcriptionCompleteHandler||this.transcriptionCompleteHandler;this.vaaConsentUpdateHandler=S.vaaConsentUpdateHandler||this.vaaConsentUpdateHandler;this.errorHandler=
S.errorHandler||this.errorHandler;this.transcriptionUpdateHandler=S.transcriptionUpdateHandler||this.transcriptionUpdateHandler;this.accessToken=S.accessToken;this.additionalHeaders=S.additionalHeaders||{};var p;this.prefetchResponseTimeoutMs=(p=S.prefetchResponseTimeoutMs)!=null?p:this.prefetchResponseTimeoutMs;Tkt(this);this.startAudio();WVi(this)}else this.errorHandler("OFFLINE")};
_.M.stop=function(S){var p=S===void 0?{}:S;S=p.logCancel===void 0?!0:p.logCancel;var U=p.logMicClosed===void 0?!0:p.logMicClosed;var Y=p.handleError===void 0?!0:p.handleError;p=p.handleStop===void 0?!0:p.handleStop;this.state!==0&&(S&&gL("voz_cx"),uy(this,{logMicClosed:U,handleStop:p}),Y&&this.errorHandler("ABORTED"))};
_.M.getState=function(){return this.state};
_.M.isSupported=function(){return!0};
_.M.stopAudio=function(S){(S===void 0||S)&&gL("voz_mf")};
_.M.startAudio=function(){gL("voz_vp");return _.Mw(null)};
var O$Y=function(S,p){S.channelOpen&&(S.state!==2&&(S.state=2,gL("voz_ss"),S.listeningHandler()),p=new Uint8Array(p),p='{ "audioIn": "'+_.Ad(p)+'" }',S.channel.send(p))},uy=function(S,p){var U=p===void 0?{}:p;
p=U.logMicClosed===void 0?!0:U.logMicClosed;U=U.handleStop===void 0?!0:U.handleStop;S.vozEndOfDataTimeout>-1&&(clearTimeout(S.vozEndOfDataTimeout),S.vozEndOfDataTimeout=-1);ksY(S);S.stopAudio(p);S.channel&&(S.channelOpen=!1,S.manuallyClosedChannel=!0,S.channel.close(),S.channel=void 0);S.transcribedSpeechResults=[];S.state=0;U&&S.stopHandler()},Tkt=function(S){var p={httpHeadersOverwriteParam:S.supportsHttpHeadersOverwriteParam?"$httpHeaders":void 0,
httpSessionIdParam:"gsessionid",sendRawJson:!0,initMessageHeaders:Object.assign({},S.additionalHeaders,S.accessToken&&S.isUsingVoz?{Authorization:"Bearer "+S.accessToken}:{"x-goog-api-key":S.apiKey}),supportsCrossDomainXhr:S.supportsCrossDomainXhr};S.channel=new gh(S.endpoint,p);S.channel.open();_.Kz(S.channel,"w",function(){var U=S.channel,Y=U.send,L=S.isUsingVoz?"PLACEHOLDER":"example";L={config:{dialogStateIn:{languageCode:S.languageCode},deviceConfig:{deviceId:L,deviceModelId:L},audioInConfig:{encoding:"LINEAR16",
sampleRateHertz:16E3},audioOutConfig:{encoding:"MP3",sampleRateHertz:22050,volumePercentage:0}}};if(!S.isUsingVoz)L.config.requestType=4;else if(S.isUsingVoz&&S.youtubeAssistantRequest){var I=JSON.stringify(S.youtubeAssistantRequest);L.config.internalIn={youtubeAssistantS3InputJson:I}}Y.call(U,L);S.channelOpen=!0;S.manuallyClosedChannel=!1});
_.Kz(S.channel,"x",function(){S.manuallyClosedChannel||(S.channelOpen=!1,S.channel=void 0,uy(S))});
_.Kz(S.channel,"z",function(U){if(U.data){ksY(S);for(var Y=0;Y<U.data.length;Y++){var L=S,I=U.data[Y],V=I.speechResults;if(V)a:{var W=[];I=[];var O=!1;V=_.d(V);for(var D=V.next();!D.done;D=V.next()){D=D.value;if(D.noSpeech){uy(L);L.errorHandler("NO_SPEECH");break a}D.transcript!==void 0&&D.stability!==void 0&&(D.stability<L.confidenceThreshold&&(O=!0),O?I.push(D.transcript):W.push(D.transcript))}if(W.length!==0||I.length!==0)W=W.join(" "),I=I.join(" "),L.receivedEndOfUtterance&&!L.isUsingVoz?L.isUsingVoz||
L.completeHandler([W,I]):(O=L,V=W,D=I,gL("voz_sf"),O.transcriptionUpdateHandler(V,D),O.transcribedSpeechResults=[V,D]),L.receivedEndOfUtterance&&(gL("voz_eou"),L.transcriptionCompleteHandler([W,I]),L.isUsingVoz&&(L.prefetchResponseTimeoutMs===0?uy(L,{logMicClosed:!1,handleStop:!0}):L.prefetchResponseTimeoutMs>0&&H$n(L)))}else L.isUsingVoz&&(I==null?0:I.internalOut)?(I=JSON.parse(I.internalOut.youtubeAssistantS3OutputJson),I.userHasOptedInToVaa||I.vaaConsent?L.vaaConsentUpdateHandler(!!I.userHasOptedInToVaa,
!!I.vaaConsent):(DHE(L),I&&(W=L.transcribedSpeechResults,gL("voz_rqf"),L.completeHandler(W,I)))):I.eventType==="END_OF_UTTERANCE"?L.receivedEndOfUtterance=!0:(gL("voz_err"),L.errorHandler("UNEXPECTED_ASSISTANT_RESPONSE"),_.eP(Error("al")))}}});
_.Kz(S.channel,"y",function(U){uy(S);switch(U.status){case 1:U="WEBCHANNEL_NETWORK_ERROR";break;case 2:U="WEBCHANNEL_SERVER_ERROR";break;default:U="WEBCHANNEL_UNKNOWN_ERROR"}S.errorHandler(U);S.logError(Error(U))})};
eK.prototype.logError=function(S){_.ZP(S)};
eK.prototype.isOnline=function(){return!0};
var H$n=function(S){DHE(S);S.prefetchResponseSetTimeoutId=setTimeout(function(){uy(S,{logMicClosed:!1,handleStop:!0})},S.prefetchResponseTimeoutMs)},DHE=function(S){S.prefetchResponseSetTimeoutId>-1&&(clearTimeout(S.prefetchResponseSetTimeoutId),S.prefetchResponseSetTimeoutId=-1)},WVi=function(S){ksY(S);
S.noResponseReceivedTimeout=window.setTimeout(function(){uy(S);S.errorHandler("NO_SPEECH")},11E3)},ksY=function(S){S.noResponseReceivedTimeout>-1&&(window.clearTimeout(S.noResponseReceivedTimeout),S.noResponseReceivedTimeout=-1)},gL=function(S){_.Fg(S,void 0,"voice_assistant")};var wL=function(){eK.apply(this,arguments);this.audioContext=this.processor=null;this.audioDetected=!1};
_.r(wL,eK);wL.prototype.isSupported=function(){return aLo()};
wL.prototype.startAudio=function(){var S=this;if(!navigator||!navigator.mediaDevices||!navigator.mediaDevices.getUserMedia)return _.jV(null);this.audioContext=new (window.AudioContext||window.webkitAudioContext)({latencyHint:"interactive"});this.processor=this.audioContext.createScriptProcessor(1024,1,1);this.processor.onaudioprocess=function(Y){z_E(S,Y)};
this.processor.connect(this.audioContext.destination);var p=function(Y){S.stream=Y;if(!S.audioContext)return _.Mw(null);Y=S.audioContext.createMediaStreamSource(Y);S.processor&&Y.connect(S.processor);return _.Mw(null)},U={audio:{sampleSize:16,
channelCount:1},video:!1};this.stream?p(this.stream):navigator.mediaDevices.getUserMedia(U).then(p).catch(function(Y){uy(S);Y.name&&Y.name==="NotAllowedError"?S.errorHandler("NO_MICROPHONE_PERMISSION"):(S.errorHandler("AUDIO_ERROR"),S.logError(Y));return _.jV(null)});
return eK.prototype.startAudio.call(this)};
wL.prototype.stopAudio=function(S){S=S===void 0?!0:S;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(p){p.stop()}),this.stream=null));
this.processor=null;this.audioDetected=!1;eK.prototype.stopAudio.call(this,S)};
wL.prototype.isOnline=function(){return navigator.onLine};
var z_E=function(S,p){if(S.audioContext)if(window.OfflineAudioContext){var U=S.audioContext.sampleRate,Y=p.inputBuffer.getChannelData(0);p=new window.OfflineAudioContext(1,Y.length,16E3);for(var L=p.createBuffer(1,Y.length,U),I=L.getChannelData(0),V=0,W=0;W<Y.length;W++)I[W]=Y[W],V+=I[W]*I[W];!S.audioDetected&&Math.sqrt(V/Y.length)>.01&&(S.audioDetected=!0,S.audioDetectedHandler());Y=p.createBufferSource();Y.buffer=L;Y.connect(p.destination);Y.start(0);p.oncomplete=function(O){O=O.renderedBuffer.getChannelData(0);
for(var D=Math.floor(16384E3/U),z=new Int16Array(D),Q=0;Q<D;++Q)z[Q]=Math.max(-1,Math.min(1,O[Q]))*32767;O$Y(S,z.buffer)};
p.startRendering()}else Qlt(S,p)},Qlt=function(S,p){var U=S.audioContext.sampleRate,Y=p.inputBuffer.getChannelData(0),L=Math.floor((U+8E3)/16E3);
U=Y.length/L;p=new Float32Array(U);for(var I=0;I<U;++I)p[I]=Y[I*L];Y=new Int16Array(U);for(L=0;L<U;++L)Y[L]=Math.max(-1,Math.min(1,p[L]))*32767;O$Y(S,Y.buffer)};var n2t={FAILURE:"failure",NO_INPUT:"no_input",OPEN:"open",SUCCESS:"success"};var Jj5=function(){this.JSC$17717_audioEnabled=!0;this.audioFeedbackHolder={}};
Jj5.prototype.isPlaying=function(S){return S.currentTime>0&&!S.paused&&!S.ended&&S.readyState>2};
var yjL=function(S){for(var p=_.d(Object.values(n2t)),U=p.next();!U.done;U=p.next())U=U.value,S.audioFeedbackHolder[U]=new Audio,S.audioFeedbackHolder[U].src="/s/search/audio/"+U+".mp3",S.audioFeedbackHolder[U].load()},ly=function(S,p){if(S.JSC$17717_audioEnabled!==!1&&p in S.audioFeedbackHolder){for(var U=_.d(Object.values(S.audioFeedbackHolder)),Y=U.next();!Y.done;Y=U.next())Y=Y.value,S.isPlaying(Y)&&Y.pause();
S.audioFeedbackHolder[p].currentTime=0;S.audioFeedbackHolder[p].play().catch(function(){})}};var KVL=function(S,p){var U=this;this.store=S;this.service=p;this.stream=null;this.permissionsSupported=!0;this.enableFirstPartyAuth=this.enableInlineSearchResponse=!1;this.audioPlayer=null;this.enableFPAForSignedInUsers=this.disableHttpHeadersOverwrite=!1;this.handleOfflineEvent=function(){U.setState("offline");U.stop()};
this.audioPlayer=new Jj5;var Y;(Y=this.audioPlayer)==null||yjL(Y)};
_.M=KVL.prototype;_.M.getService=function(){return this.service};
_.M.isEnabled=function(){return!!this.service};
_.M.isSupported=function(){var S;return(S=this.service)==null?void 0:S.isSupported()};
_.M.start=function(){var S=this,p,U,Y,L,I,V,W,O,D,z,Q,J,K;return _.T(function(G){switch(G.nextAddress){case 1:S.store.dispatch(jft("",""));if(!navigator.onLine)return S.setState("offline"),G.return();window.addEventListener("offline",S.handleOfflineEvent);S.stream=null;if(!S.permissionsSupported){G.jumpTo(2);break}_.M2(G,3);return _.k(G,b$T(S),5);case 5:p=G.yieldResult;if(!p)return(U=S.audioPlayer)==null||ly(U,"failure"),G.return();S.service.stream=S.stream;S.setState("listening");_.CA(G,2);break;
case 3:_.W4(G),S.permissionsSupported=!1;case 2:Y={context:_.Dww(_.cS())},Y.youtubeAssistantParams={searchParams:{inlineSearchResponse:S.enableInlineSearchResponse}},L=function(X,Z){S.store.dispatch(rSn("transcribing"));S.store.dispatch(jft(X,Z))},I=function(){var X;
(X=S.audioPlayer)==null||ly(X,"open");S.setState("listening")},V=function(){S.setState("transcribing")},W=function(X){S.setErrorState(X)},O=function(X,Z){var l;
(l=S.audioPlayer)==null||ly(l,"success");Z&&(_.y("kevlar_voice_search_inline_search")&&(S.responseProcessor=_.tW().resolve(_.Ulu),S.responseProcessor&&(l=Z.navigationAction,X=Z.prefetchedSearchResponse,l&&X&&(l=(new _.G_m).JSC$11002_getStoreKey(l),_.lG(S.responseProcessor,X,l)))),S.JSC$17735_actionRouter.triggerOptionalAction("yt-speech-query-complete-action",Z))},D=function(){window.removeEventListener("offline",S.handleOfflineEvent)},z=_.raw(!1),Q=z.Authorization!=null,J=S.enableFirstPartyAuth||
S.enableFPAForSignedInUsers&&Q?z:{"X-Goog-Visitor-Id":z["X-Goog-Visitor-Id"]},K={completeHandler:O,
errorHandler:W,listeningHandler:I,audioDetectedHandler:V,stopHandler:D,transcriptionUpdateHandler:L,youtubeAssistantRequest:Y,languageCode:jlE(),additionalHeaders:J,supportsCrossDomainXhr:S.enableFirstPartyAuth||S.enableFPAForSignedInUsers&&Q,supportsHttpHeadersOverwriteParam:!S.disableHttpHeadersOverwrite},S.service.start(K),_.OV(G)}})};
_.M.stop=function(){this.service.getState()!==0&&this.service.stop()};
_.M.reset=function(){this.store.dispatch(_.S4({type:"RESET_VOICE_SEARCH_STATE"}))};
_.M.setState=function(S){this.store.dispatch(rSn(S))};
_.M.setErrorState=function(S){switch(S){case "OFFLINE":case "WEBCHANNEL_NETWORK_ERROR":case "WEBCHANNEL_SERVER_ERROR":case "WEBCHANNEL_UNKNOWN_ERROR":var p;(p=this.audioPlayer)==null||ly(p,"failure");this.setState("offline");break;case "NO_MICROPHONE_PERMISSION":if(this.permissionsSupported)b$T(this);else{var U;(U=this.audioPlayer)==null||ly(U,"failure");this.setState("permission-denied")}break;case "ABORTED":var Y;(Y=this.audioPlayer)==null||ly(Y,"no_input");break;default:var L;(L=this.audioPlayer)==
null||ly(L,"no_input");this.setState("timeout")}};
var b$T=function(S){var p,U;return _.T(function(Y){switch(Y.nextAddress){case 1:return _.k(Y,navigator.permissions.query({name:"microphone"}),2);case 2:p=Y.yieldResult;if(p.state==="granted")return Y.return(!0);if(p.state==="denied")return S.setState("permission-denied"),Y.return(!1);S.setState("permission");U={audio:{sampleSize:16,channelCount:1},video:!1};_.M2(Y,3);return _.k(Y,navigator.mediaDevices.getUserMedia(U),5);case 5:return S.stream=Y.yieldResult,Y.return(!0);case 3:return _.W4(Y),S.setState("permission-denied"),
Y.return(!1)}})},jlE=function(){var S=_.g7("INNERTUBE_CONTEXT_HL"),p=_.g7("INNERTUBE_CONTEXT_GL");
return S.indexOf("-")>-1?S:S+"-"+p};var rjL=function(S,p,U){KVL.call(this,p,U);this.JSC$17735_actionRouter=S;this.enableInlineSearchResponse=_.y("kevlar_voice_search_inline_search");this.enableFirstPartyAuth=_.y("kevlar_voice_search_auth_enabled");this.disableHttpHeadersOverwrite=!0;this.enableFPAForSignedInUsers=_.y("kevlar_voice_search_enable_fpa_signedin_users")},GsX;
_.r(rjL,KVL);
var h_J=function(){if(!GsX){var S="https://embeddedassistant-webchannel.googleapis.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel";_.y("kevlar_voice_search_auth_enabled")||_.y("kevlar_voice_search_use_yt_endpoint")?S="https://embeddedassistant-frontend-clients6.youtube.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel":_.y("kevlar_voice_search_use_fp_endpoint")&&(S="https://embeddedassistant-clients6.youtube.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel");GsX=
new rjL(_.xv.getInstance(),_.vJ(),new wL(_.g7("VOZ_API_KEY"),S,.5))}return GsX};var R_A=function(S){this.JSC$17739_clientRoot=S;this.autonavPauseReasons={scroll:!1,inputBoxFocus:!1,overlayOpen:!1,guideOpen:!1,backgroundAndMute:!1,requestedByPlayer:!1,longIdle:!1,youthereLactExperiment:!1,userEngagement:!1};this.autonavPauseActionMap={"ytd-log-youthere-nav":this.onYtEndpointChanged.bind(this),"yt-autonav-pause-user-engagement":this.onYtAutonavPauseUserEngagement.bind(this),"yt-user-activity":this.onYtUserActivity.bind(this),"yt-get-autonav-pause-debug-state":this.onYtGetAutonavPauseDebugState.bind(this)};
this.userEngagementCsn=null;this.eventListeners=new Map;this.eventListeners.set(document,new Map([["visibilitychange",this.onYtAutonavVisibilityChanged.bind(this)]]));this.eventListeners.set(this.JSC$17739_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)]]));S=_.d(this.eventListeners);for(var p=S.next();!p.done;p=S.next()){var U=_.d(p.value);p=U.next().value;U=U.next().value;U=_.d(U);for(var Y=U.next();!Y.done;Y=U.next()){var L=
_.d(Y.value);Y=L.next().value;L=L.next().value;p.addEventListener(Y,L)}}_.E9(_.xv.getInstance(),this.autonavPauseActionMap,this.JSC$17739_clientRoot)},FVX,Xlt=function(S){return _.y("kevlar_autonav_popup_filtering")?(S=_.mF(S))?S.hasAttribute("prevent-autonav"):!0:!0};
_.M=R_A.prototype;_.M.onIronOverlayOpened=function(S){Xlt(S)&&(this.autonavPauseReasons.overlayOpen=!0,av(this))};
_.M.onIronOverlayClosed=function(S){Xlt(S)&&(this.autonavPauseReasons.overlayOpen=!1,av(this))};
_.M.onYtAutonavPauseFocus=function(){this.autonavPauseReasons.inputBoxFocus=!0;av(this)};
_.M.onYtAutonavPauseBlur=function(){var S=this;_.PA.addJob(function(){S.isInBackground()||(S.autonavPauseReasons.inputBoxFocus=!1,av(S))},8,0)};
_.M.onYtAutonavPauseGuideOpened=function(){this.autonavPauseReasons.guideOpen=!0;av(this)};
_.M.onYtAutonavPauseGuideClosed=function(){this.autonavPauseReasons.guideOpen=!1;av(this)};
_.M.onYtAutonavPauseScroll=function(){var S=_.tW().resolve(_.oy);S.isOnWatch()&&(S=S.getCurrentPage().getPlayerContainer())&&(this.autonavPauseReasons.scroll=S.getBoundingClientRect().top<-200,av(this))};
_.M.onYtAutonavPauseUserEngagement=function(S){var p=this;if(_.y("user_engagement_enable_autoplay_pause_feature")){var U=Number(S.lowEngagementThresholdMs);isNaN(U)||U<=0||S.lowUserEngagementAction!=="LOW_USER_ENGAGEMENT_ACTION_PAUSE_AUTOPLAY"?_.NS("YOU_THERE_EVENT_TYPE_F_AUTONAV_INVALID_LACT_THRESHOLD"):(_.tW().resolve(_.rY),_.pv()<U?_.bQ(_.PA,function(){_.NS("YOU_THERE_EVENT_TYPE_F_AUTONAV_BELOW_LACT_THRESHOLD")}):_.nsq()?(this.userEngagementCsn=_.X$(),_.bQ(_.PA,function(){_.NS("YOU_THERE_EVENT_TYPE_F_AUTONAV_PAUSE_ENABLED",
p.userEngagementCsn)}),this.autonavPauseReasons.userEngagement=!0,av(this)):_.NS("YOU_THERE_EVENT_TYPE_F_AUTONAV_RATE_LIMITED"))}else _.FsE(Error("bl`"+JSON.stringify(S)))};
_.M.onYtAutonavPausePlayer=function(S){this.autonavPauseReasons.requestedByPlayer=!!S.detail;av(this)};
_.M.onYtAutonavVisibilityChanged=function(){var S=this,p,U,Y;return _.T(function(L){if(L.nextAddress==1)return(p=_.$L())?_.k(L,p.getPlayerPromise(),2):L.return();U=L.yieldResult;Y=U.isMuted()||U.getVolume()===0;S.autonavPauseReasons.backgroundAndMute=S.isInBackground()&&Y;av(S);_.OV(L)})};
_.M.onYtAutonavPausePlayerEnded=function(){_.tW().resolve(_.rY);var S=144E5;_.y("user_engagement_enable_autoplay_pause_feature")||_.y("is_part_of_any_user_engagement_experiment")||(S=45E5);this.autonavPauseReasons.longIdle=_.pv()>S;PjX(this);av(this)};
_.M.onYtUserActivity=function(){var S=this;this.autonavPauseReasons.userEngagement&&(_.bQ(_.PA,function(){_.NS("YOU_THERE_EVENT_TYPE_F_AUTONAV_PAUSE_DISABLED_BY_LACT_RESET",S.userEngagementCsn)}),this.autonavPauseReasons.userEngagement=!1,av(this));
this.autonavPauseReasons.youthereLactExperiment&&(_.bQ(_.PA,function(){_.NS("YOU_THERE_EVENT_TYPE_AUTOPLAY_RESUMED",S.userEngagementCsn);_.Fr()}),this.autonavPauseReasons.youthereLactExperiment=!1,av(this));
this.autonavPauseReasons.longIdle&&!_.y("disable_kevlar_resume_autonav_after_user_activity")&&(this.autonavPauseReasons.longIdle=!1,av(this))};
_.M.isInBackground=function(){var S=window.document.visibilityState;return!(!S||S==="visible")};
var av=function(S){for(var p=!1,U=_.d(Object.values(S.autonavPauseReasons)),Y=U.next();!Y.done;Y=U.next())Y=Y.value,p=p||Y;p?_.og.getInstance().pause(S.autonavPauseReasons):(S=_.og.getInstance(),S.autonavState_==3?(S.setState(2,!1,!1),S.autonavPauseReason_=void 0):S.autonavState_==1&&(S.disabledAutonavPauseReason_=void 0))},PjX=function(S){var p=!1;
if(_.y("enable_autoplay_pause_by_lact")){_.tW().resolve(_.rY);p=_.pA("autoplay_pause_by_lact_sec")*1E3;var U=_.pA("autoplay_pause_by_lact_sampling_fraction");(p=_.pv()>=p&&Math.random()<U)&&!_.nsq()&&(_.bQ(_.PA,function(){_.NS("YOU_THERE_EVENT_TYPE_AUTOPLAY_RATE_LIMITED")}),p=!1)}p!==S.autonavPauseReasons.youthereLactExperiment&&(S.autonavPauseReasons.youthereLactExperiment=p)&&(S.userEngagementCsn=_.X$(),_.bQ(_.PA,function(){_.NS("YOU_THERE_EVENT_TYPE_AUTOPLAY_PAUSED",S.userEngagementCsn)}));
S.autonavPauseReasons.userEngagement&&_.bQ(_.PA,function(){_.NS("YOU_THERE_EVENT_TYPE_F_AUTONAV_PAUSED",S.userEngagementCsn)})};
R_A.prototype.onYtEndpointChanged=function(){this.autonavPauseReasons.youthereLactExperiment&&(_.NS("YOU_THERE_EVENT_TYPE_AUTOPLAY_NAVIGATED_OUT",this.userEngagementCsn),_.Fr(),this.autonavPauseReasons.youthereLactExperiment=!1,av(this));this.autonavPauseReasons.userEngagement&&(_.NS("YOU_THERE_EVENT_TYPE_F_AUTONAV_NAVIGATED_OUT",this.userEngagementCsn),this.autonavPauseReasons.userEngagement=!1,av(this))};
R_A.prototype.onYtGetAutonavPauseDebugState=function(){return JSON.stringify(this.autonavPauseReasons)};var fd=function(){var S=_.w.apply(this,arguments)||this;S.miniGuideVisible=!1;S.guideOpened=_.y("disable_initial_guide_state_fix")?!1:S.canFitPersistentGuide(S.initialBodyClientWidth);S.guideUserStateOpened=S.getInitialGuideUserStateOpened();S.isFullscreenShorts=!1;S.miniGuideWidthThreshold=_.pA("kevlar_mini_guide_width_threshold",791);S.persistentGuideBlockedPages="/clip /musicpremium /new /handle /premium /premiumlite /red /watch".split(" ");S.persistentGuideBlockedPagesPatterns="^/clip(/|$) ^/musicpremium(/|$) ^/new(/|$) ^/handle(/|$) ^/premium(/|$) ^/premiumlite(/|$) ^/red(/|$) ^/watch(/|$) ^/playables/(?!saved).".split(" ");
S.persistentGuideBlockedPagePathRegex=new RegExp(S.persistentGuideBlockedPagesPatterns.join("|"));S.animationTransitionDuration=0;S.lateDataResolver=_.ay();S.initialGuideDataFetchFailed=!1;S.initialLoad=!0;S.guideRenderers=new Set;S.actionMap={"yt-start-loading-watch":"startLoadingWatch","yt-start-loading-shorts":"startLoadingShorts"};return S};
_.r(fd,_.w);_.M=fd.prototype;_.M.onGuidePersistendAndVisibleChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("guide-persistent-and-visible-changed",{detail:{value:this.guidePersistentAndVisible,queueProperty:!0}}))};
_.M.onGuideIsVisibleButNotPersistentChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("guide-is-visible-but-not-persistent-changed",{detail:{value:this.guideIsVisibleButNotPersistent,queueProperty:!0}}))};
_.M.onMiniGuideVisibleChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("mini-guide-visible-changed",{detail:{value:this.miniGuideVisible,queueProperty:!0}}))};
_.M.onActiveEndpointChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("active-endpoint-changed",{detail:{value:this.activeEndpoint,queueProperty:!0}}))};
_.M.onRenderGuideChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("render-guide-changed",{detail:{value:this.renderGuide,queueProperty:!0}}))};
_.M.onGuidePersistentChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("guide-persistent-changed",{detail:{queueProperty:!0,value:this.guidePersistent}}))};
_.M.ready=function(){_.tW().addProvider({provide:_.gr,useValue:this.hostElement})};
_.M.attached=function(){var S=this;this.cachedClientWidth=this.initialBodyClientWidth;this.resetGuide();document.addEventListener("yt-navigate-finish",_.d9(this,this.onYtNavigateFinish));document.addEventListener("yt-guide-toggle",_.d9(this,this.onYtGuideToggle));document.addEventListener("yt-guide-close",_.d9(this,this.onYtGuideClose));document.addEventListener("yt-guide-show",_.d9(this,this.onYtGuideShow));_.oH(this,function(){S.animationTransitionDuration=200})};
_.M.detached=function(){document.removeEventListener("yt-navigate-finish",_.d9(this,this.onYtNavigateFinish));document.removeEventListener("yt-guide-toggle",_.d9(this,this.onYtGuideToggle));document.removeEventListener("yt-guide-close",_.d9(this,this.onYtGuideClose));document.removeEventListener("yt-guide-show",_.d9(this,this.onYtGuideShow));this.guideElement&&(this.guideElement.removeEventListener("opened-changed",_.d9(this,this.onDrawerOpenedChanged)),this.guideElement.removeEventListener("app-drawer-transitioned",
_.d9(this,this.onAppDrawerTransitioned)),this.guideElement.removeEventListener("app-drawer-transitioned",_.d9(this,this.onAppDrawerTransitionedFromKeyInput)))};
_.M.getData=function(){return this.data};
_.M.load=function(){var S=this,p,U,Y,L;return _.T(function(I){switch(I.nextAddress){case 1:if(!window.ytInitialGuideData&&window.ytInitialGuideDataPresent)return window.loadGuideDataHook=S.lateDataResolver.resolve.bind(S),I.return(S.lateDataResolver.promise);if(window.ytInitialGuideData)return p=_.ay(),p.resolve(window.ytInitialGuideData),I.return(p.promise);Y=!1;_.M2(I,2);return _.k(I,S.fetchGuideData(),4);case 4:U=I.yieldResult;_.CA(I,3);break;case 2:L=_.W4(I),L.message==="Returned error"&&(Y=!0);
case 3:if(U)return I.return(U);S.onYtGuideClose();Y||(S.initialGuideDataFetchFailed=!0);return I.return(S.lateDataResolver.promise)}})};
_.M.fetchGuideData=function(){var S=this,p,U,Y,L,I,V,W;return _.T(function(O){if(O.nextAddress==1)return p=_.tW(),S.guidePromise||(U=p.resolve(_.F3),S.guidePromise=_.lZ(U,u3J)),_.k(O,S.guidePromise,2);if(O.nextAddress!=3)return Y=O.yieldResult,L=p.resolve(_.Ey),_.k(O,L(),3);(I=O.yieldResult)&&((V=Y)==null?void 0:(W=V.responseContext)==null?void 0:W.maxAgeSeconds)!==0&&I.put("service:guide:fallback",new _.YB({innertubeResponse:Y}));return O.return(Y)})};
_.M.initializeGuideDataIfEmpty=function(){var S=this,p,U;return _.T(function(Y){if(Y.nextAddress==1){if(!S.initialGuideDataFetchFailed||S.data)return Y.return();_.M2(Y,2);return _.k(Y,S.fetchGuideData(),4)}if(Y.nextAddress!=2)return(p=Y.yieldResult)&&S.lateDataResolver.resolve(p),_.CA(Y,0);U=_.W4(Y);_.eP(U);_.OV(Y)})};
_.M.initializeGuideData=function(){var S=this,p;return _.T(function(U){switch(U.nextAddress){case 1:return _.Vj(cWL(),{mainAppWeb:_.aS()}),_.M2(U,2),_.k(U,S.load(),4);case 4:S.data=U.yieldResult;_.CA(U,3);break;case 2:_.W4(U),_.TU(cWL(),"FAILURE");case 3:p=S.data&&S.data.items&&S.data.items.length>0?"SUCCESS":"FAILURE",_.TU(cWL(),p),_.OV(U)}})};
_.M.setGuideData=function(S){var p=this,U,Y;return _.T(function(L){if(L.nextAddress==1)return p.disabled?L.return():p.data?(S.data=p.data,p.guideRenderers.add(S),L.return()):_.k(L,p.initializeGuideData(),2);p.graftGuideToPage();U=_.ub("IS_HOMEPAGE_COLD")?"eop":void 0;_.y("disable_element_pool_populator")?p.setGuideDataAfterInit(S):(Y=new _.NH(1,U),_.Bl(Y,p.setGuideDataAfterInit.bind(p,S)));_.OV(L)})};
_.M.setGuideDataAfterInit=function(S){S.data=this.data;S.markDirty();this.guideRenderers.add(S);_.uK(function(){_.Fg("gle")});
_.oH(this,function(){_.Fg("gpe")})};
_.M.graftGuideToPage=function(){if(this.data){var S=this.data&&this.data.trackingParams;S&&(S=_.JS(S),_.U8(_.HX(),S))}};
_.M.onGuideElementChanged=function(){this.guideElement.addEventListener("opened-changed",_.d9(this,this.onDrawerOpenedChanged));this.guideElement.swipeOpen=!0};
_.M.onDrawerOpenedChanged=function(S,p){!p.value&&this.guideOpened&&(this.guideOpened=!1)};
_.M.onYtGuideToggle=function(S){var p=this.guideOpened;this.guideOpened=!p;if(this.guidePersistent){this.guideUserStateOpened=this.guideOpened;var U=_.D9();_.zI(0,109,!this.guideUserStateOpened);U.save()}this.updateGuideDrawerElementState();if(this.guideElement){var Y;this.guideOpened&&((Y=S.detail)==null?0:Y.isKeyInput)&&this.guideElement.addEventListener("app-drawer-transitioned",_.d9(this,this.onAppDrawerTransitionedFromKeyInput));this.guideElement.addEventListener("app-drawer-transitioned",_.d9(this,
this.onAppDrawerTransitioned))}p||this.initializeGuideDataIfEmpty()};
_.M.onAppDrawerTransitionedFromKeyInput=function(){this.guideElement.removeEventListener("app-drawer-transitioned",_.d9(this,this.onAppDrawerTransitionedFromKeyInput));this.guideOpened&&this.guideElement&&_.Nz(this.guideElement)};
_.M.onAppDrawerTransitioned=function(){this.guideElement.removeEventListener("app-drawer-transitioned",_.d9(this,this.onAppDrawerTransitioned));this.ytdReduxBehavior.dispatch(Ksq(this.guideOpened))};
_.M.guidePersistentAndVisibleChanged=function(){_.pp(this.hostElement,"ytd-update-guide-state-action",[this.guidePersistentAndVisible])};
_.M.guideIsVisibleButNotPersistentChanged=function(){this.ytdReduxBehavior.dispatch(_.S4({type:"SET_GUIDE_IS_VISIBLE_BUT_NOT_PERSISTENT",payload:this.guideIsVisibleButNotPersistent}))};
_.M.miniGuideVisibleChanged=function(){_.pp(this.hostElement,"ytd-update-mini-guide-state-action",[this.miniGuideVisible])};
_.M.guideOpenedChanged=function(){this.initialLoad&&(this.ytdReduxBehavior.dispatch(Ksq(this.guideOpened)),this.initialLoad=!1);_.pp(this.hostElement,"ytd-update-guide-opened-action",[this.guideOpened])};
_.M.activeEndpointChanged=function(){_.pp(this.hostElement,"ytd-update-active-endpoint-action",[this.activeEndpoint]);this.initializeGuideDataIfEmpty()};
_.M.resetGuide=function(){this.forceMiniGuideClose=!1;if(this.persistentGuideEnabled(this.pageType,this.pageUrl))this.onYtGuideShow();else this.onYtGuideClose()};
_.M.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()};
_.M.cachedClientWidthChanged=function(){if(this.persistentGuideEnabled(this.pageType,this.pageUrl)){var S=this.canFitPersistentGuide(this.cachedClientWidth);S?this.guideOpened=this.guideUserStateOpened:this.guidePersistent&&(this.guideOpened=!1);this.guidePersistent=S}this.updateGuideDrawerElementState()};
_.M.getGuidePersistentAndVisible=function(){return!!this.guidePersistentAndVisible};
_.M.getGuideOpened=function(){return this.guideOpened};
_.M.getGuideExpandsAutomatically=function(){return this.guideUserStateOpened};
_.M.getActiveEndpoint=function(){return this.activeEndpoint};
_.M.getMiniGuideVisible=function(){return this.miniGuideVisible};
_.M.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&&_.cv(this.hostElement,"yt-guide-hover"),!this.guideOpened||this.guidePersistent)&&(document.body.style.overflow="")};
_.M.computeGuidePersistentAndVisible=function(){var S=this;_.w9(this,"computeGuidePersistentAndVisible",function(){S.guidePersistentAndVisible=S.guideOpened&&S.guidePersistent;S.guideIsVisibleButNotPersistent=!(!S.guideOpened||S.guidePersistent)})};
_.M.observeForMiniGuideVisible=function(){this.guidePersistentAndVisible!==void 0&&(this.miniGuideVisible=!this.forceMiniGuideClose&&!this.guidePersistentAndVisible&&this.canFitMiniGuide(this.cachedClientWidth)&&this.persistentGuideEnabled(this.pageType,this.pageUrl))};
_.M.closeGuide=function(){this.guideOpened=!1;this.updateGuideDrawerElementState()};
_.M.onYtGuideClose=function(){this.closeGuide();this.forceMiniGuideClose=!0;this.guidePersistent=this.miniGuideVisible=!1};
_.M.startLoadingWatch=function(){this.closeGuide()};
_.M.startLoadingShorts=function(){_.y("web_hide_guide_on_shorts")&&this.closeGuide()};
_.M.onYtNavigateFinish=function(S,p){if(!_.cO||p){this.activeEndpoint=p.endpoint;this.pageType=p.pageType;this.pageUrl=p.response.url;var U,Y;S=(Y=_.b((U=p.endpoint)==null?void 0:U.commandMetadata,_.NU))==null?void 0:Y.url;!this.pageUrl&&S&&(this.pageUrl=S);_.y("kevlar_use_vimio_behavior")&&this.markGuideRendererDirty(this.getVisibleGuideRenderer())}};
_.M.getVisibleGuideRenderer=function(){for(var S=_.d(this.guideRenderers),p=S.next();!p.done;p=S.next())if(p=p.value,this.miniGuideVisible&&p.is==="ytd-mini-guide-renderer"||this.guideOpened&&p.is==="ytd-guide-renderer")return p;return null};
_.M.markGuideRendererDirty=function(S){if(S){typeof S.markDirty==="function"&&S.markDirty();S=_.d([].concat(_.jo(_.tB(S).children)));for(var p=S.next();!p.done;p=S.next())this.markGuideRendererDirty(p.value)}};
_.M.persistentGuideEnabled=function(S,p){if(!p||S==="watch"||S==="settings"||S==="shorts"&&this.isFullscreenShorts||_.y("reels_web_disable_persistent_guide_shorts")&&S==="shorts")return!1;var U=_.Tp(p)||"";return _.y("kevlar_premium_guide_collapse_killswitch")?!this.persistentGuideBlockedPages.some(function(Y){return U===Y}):!this.persistentGuideBlockedPagePathRegex.test(U)};
_.M.canFitPersistentGuide=function(S){var p=_.pA("kevlar_persistent_guide_width_threshold",1312);return p===-1||_.y("reels_web_show_mini_guide_on_shorts")&&this.pageType==="shorts"?!1:S>p};
_.M.canFitMiniGuide=function(S){return this.miniGuideWidthThreshold===-1?!1:S>this.miniGuideWidthThreshold};
_.M.onResize=function(){var S=this;_.w9(this,"calculateGuideState",function(){S.onResizeDebounced()})};
_.M.onResizeDebounced=function(){this.cachedClientWidth=window.innerWidth};
_.M.disableGuideAnimation=function(){this.guideElement.transitionDuration=0};
_.M.enableGuideAnimation=function(){this.guideElement.transitionDuration=this.animationTransitionDuration};
_.M.getInitialGuideUserStateOpened=function(){return!_.D9().getFlag(109)};
_.$u.Object.defineProperties(fd.prototype,{initialBodyClientWidth:{configurable:!0,enumerable:!0,get:function(){return _.g7("initialBodyClientWidth")||window.innerWidth}}});
fd.prototype.onResize=fd.prototype.onResize;fd.prototype.observeForMiniGuideVisible=fd.prototype.observeForMiniGuideVisible;fd.prototype.computeGuidePersistentAndVisible=fd.prototype.computeGuidePersistentAndVisible;fd.prototype.cachedClientWidthChanged=fd.prototype.cachedClientWidthChanged;fd.prototype.resetGuide=fd.prototype.resetGuide;fd.prototype.activeEndpointChanged=fd.prototype.activeEndpointChanged;fd.prototype.guideOpenedChanged=fd.prototype.guideOpenedChanged;
fd.prototype.miniGuideVisibleChanged=fd.prototype.miniGuideVisibleChanged;fd.prototype.guideIsVisibleButNotPersistentChanged=fd.prototype.guideIsVisibleButNotPersistentChanged;fd.prototype.guidePersistentAndVisibleChanged=fd.prototype.guidePersistentAndVisibleChanged;fd.prototype.onGuideElementChanged=fd.prototype.onGuideElementChanged;fd.prototype.onGuidePersistentChanged=fd.prototype.onGuidePersistentChanged;fd.prototype.onRenderGuideChanged=fd.prototype.onRenderGuideChanged;
fd.prototype.onActiveEndpointChanged=fd.prototype.onActiveEndpointChanged;fd.prototype.onMiniGuideVisibleChanged=fd.prototype.onMiniGuideVisibleChanged;fd.prototype.onGuideIsVisibleButNotPersistentChanged=fd.prototype.onGuideIsVisibleButNotPersistentChanged;fd.prototype.onGuidePersistendAndVisibleChanged=fd.prototype.onGuidePersistendAndVisibleChanged;_.x([_.F(_.ji),_.E("design:type",Object)],fd.prototype,"ironResizableBehavior",void 0);
_.x([_.F(_.Aj.YtActionHandlerBehavior),_.E("design:type",Object)],fd.prototype,"ytActionHandlerBehavior",void 0);_.x([_.F(_.eL.YtComponentBehavior),_.E("design:type",Object)],fd.prototype,"ytComponentBehavior",void 0);_.x([_.F(_.Xh),_.E("design:type",Object)],fd.prototype,"ytdReduxBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],fd.prototype,"data",void 0);_.x([_.g(),_.E("design:type",Boolean)],fd.prototype,"disabled",void 0);
_.x([_.g(),_.E("design:type",Boolean)],fd.prototype,"guidePersistentAndVisible",void 0);_.x([_.T4("guidePersistentAndVisible"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],fd.prototype,"onGuidePersistendAndVisibleChanged",null);_.x([_.g(),_.E("design:type",Boolean)],fd.prototype,"guideIsVisibleButNotPersistent",void 0);
_.x([_.T4("guideIsVisibleButNotPersistent"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],fd.prototype,"onGuideIsVisibleButNotPersistentChanged",null);_.x([_.g(),_.E("design:type",Object)],fd.prototype,"miniGuideVisible",void 0);_.x([_.T4("miniGuideVisible"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],fd.prototype,"onMiniGuideVisibleChanged",null);_.x([_.g(),_.E("design:type",Boolean)],fd.prototype,"forceMiniGuideClose",void 0);
_.x([_.g(),_.E("design:type",Object)],fd.prototype,"activeEndpoint",void 0);_.x([_.T4("activeEndpoint"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],fd.prototype,"onActiveEndpointChanged",null);_.x([_.g(),_.E("design:type",Boolean)],fd.prototype,"renderGuide",void 0);_.x([_.T4("renderGuide"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],fd.prototype,"onRenderGuideChanged",null);
_.x([_.g(),_.E("design:type",Object)],fd.prototype,"guideOpened",void 0);_.x([_.g(),_.E("design:type",Boolean)],fd.prototype,"guidePersistent",void 0);_.x([_.T4("guidePersistent"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],fd.prototype,"onGuidePersistentChanged",null);_.x([_.g(),_.E("design:type",Object)],fd.prototype,"guideUserStateOpened",void 0);_.x([_.g(),_.E("design:type",String)],fd.prototype,"pageUrl",void 0);
_.x([_.g(),_.E("design:type",String)],fd.prototype,"pageType",void 0);_.x([_.g(),_.E("design:type",Number)],fd.prototype,"cachedClientWidth",void 0);_.x([_.g(),_.E("design:type",Object)],fd.prototype,"guideElement",void 0);_.x([_.g({selector:_.Th}),_.E("design:type",Object)],fd.prototype,"isFullscreenShorts",void 0);_.x([_.T4("guideElement"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],fd.prototype,"onGuideElementChanged",null);
_.x([_.T4("guidePersistentAndVisible"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],fd.prototype,"guidePersistentAndVisibleChanged",null);_.x([_.z4("guideIsVisibleButNotPersistent"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],fd.prototype,"guideIsVisibleButNotPersistentChanged",null);
_.x([_.T4("miniGuideVisible"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],fd.prototype,"miniGuideVisibleChanged",null);_.x([_.z4("guideOpened"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],fd.prototype,"guideOpenedChanged",null);_.x([_.T4("activeEndpoint"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],fd.prototype,"activeEndpointChanged",null);
_.x([_.z4("pageUrl"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],fd.prototype,"resetGuide",null);_.x([_.z4("cachedClientWidth"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],fd.prototype,"cachedClientWidthChanged",null);_.x([_.T4("guideOpened","guidePersistent"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],fd.prototype,"computeGuidePersistentAndVisible",null);
_.x([_.z4("guidePersistentAndVisible","pageUrl","cachedClientWidth"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],fd.prototype,"observeForMiniGuideVisible",null);_.x([_.Vd("iron-resize"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],fd.prototype,"onResize",null);fd=_.x([_.f({disableElementRegistration:!0,is:"yt-guide-manager"})],fd);var Z$d=_.C(fd,"yt-guide-manager",void 0,{mode:_.UW("kevlar_poly_si_batch_j081")?1:2});var Cd=function(){var S=_.w.apply(this,arguments)||this;S.JSC$17749_keyboardInUse=!1;S.boundHandleCapturedKeydownEvent=function(p){S.handleCapturedKeydownEvent(p)};
return S};
_.r(Cd,_.w);_.M=Cd.prototype;_.M.attached=function(){this.listenToDocument(document)};
_.M.listenToDocument=function(S){S.addEventListener("keydown",_.d9(this,this.onKeyDownEvent));S.addEventListener("keyup",_.d9(this,this.onKeyUpEvent));S.addEventListener("mousedown",_.d9(this,this.onMouseDownEvent));_.y("desktop_keyboard_capture_keydown_killswitch")||S.addEventListener("keydown",this.boundHandleCapturedKeydownEvent,!0);S.addEventListener("yt-page-data-updated",_.d9(this,this.onPageUpdate))};
_.M.detached=function(){this.unlistenFromDocument(document)};
_.M.unlistenFromDocument=function(S){S.removeEventListener("keydown",_.d9(this,this.onKeyDownEvent));S.removeEventListener("keyup",_.d9(this,this.onKeyUpEvent));S.removeEventListener("mousedown",_.d9(this,this.onMouseDownEvent));_.y("desktop_keyboard_capture_keydown_killswitch")||S.removeEventListener("keydown",this.boundHandleCapturedKeydownEvent,!0);S.removeEventListener("yt-page-data-updated",_.d9(this,this.onPageUpdate))};
_.M.ready=function(){_.tW().addProvider({provide:_.SN,useValue:this})};
_.M.isKeyBoardInUse=function(){return this.JSC$17749_keyboardInUse};
_.M.handleCapturedKeydownEvent=function(S){if(S.keyCode===32&&!this.isKeyBoardInUse())this.onKeyDownEvent(S)};
_.M.onMouseDownEvent=function(){this.JSC$17749_keyboardInUse=!1};
_.M.onPageUpdate=function(){if(_.y("desktop_keyboard_shortcut_usage_log")||this.isShortsPage&&_.y("web_shorts_keyboard_shortcut_usage_log")){_.cN.clear();for(var S=_.d(_.AC),p=S.next();!p.done;p=S.next()){var U=_.d(p.value);p=U.next().value;U=U.next().value;U=_.bZ(U);_.cN.set(p,U);_.wB(_.X$(),_.F$(),U)}_.Sr.clear();S=_.d(_.tC);for(p=S.next();!p.done;p=S.next())U=_.d(p.value),p=U.next().value,U=U.next().value,U=_.bZ(U),_.Sr.set(p,U),_.wB(_.X$(),_.F$(),U);_.l5(_.X$(),_.F$(),[].concat(_.jo(_.Sr.values()),
_.jo(_.cN.values())));_.fp(_.X$(),[].concat(_.jo(_.Sr.values()),_.jo(_.cN.values())))}};
_.M.onMiniplayerActiveChange=function(){var S;(S=_.tW().resolve(_.eC).pipController.getWindow())&&(this.miniplayerIsActive?this.listenToDocument(S.document):this.unlistenFromDocument(S.document))};
_.M.ignoreKeyEvent=function(S){if(S.ctrlKey||S.altKey)if(_.y("kevlar_macro_markers_keyboard_shortcut")){if(S.keyCode!==37&&S.keyCode!==39)return!0}else return!0;var p=_.E1(S)||[];return _.Kcn(p)?!0:S.defaultPrevented?(k3(S.keyCode,S.shiftKey,this.isShortsPage),!0):S.keyCode===32&&this.isKeyBoardInUse()?this.isSpacebarClick(S):!1};
_.M.isSpacebarClick=function(S){var p=S||window.event;var U;p.composedPath&&typeof p.composedPath==="function"?U=p.composedPath():U=p.path;U&&U.length?p=U[0]:(p=p||window.event,p=p.target||p.srcElement,p.nodeType==3&&(p=p.parentNode));return p&&S.keyCode===32&&(S=p.tagName==="BUTTON"||p.tagName==="A"||p.tagName==="INPUT",p=(p=p.getAttribute("role"))&&(p==="option"||p==="button"||p.indexOf("menuitem")===0),S||p)?!0:!1};
_.M.onKeyDownEvent=function(S){if(!this.ignoreKeyEvent(S)&&(S.keyCode===191&&(S.shiftKey||S.metaKey?S.repeat!=null&&S.repeat||(this.openHotkeyDialog(),k3(S.keyCode,S.shiftKey,this.isShortsPage)):(this.focusSearchBox(),S.preventDefault())),!S.metaKey)){var p=_.tW().resolve(_.eC);switch(S.keyCode){case 9:this.JSC$17749_keyboardInUse=!0;break;case 32:this.handlePlayerSpaceKey(S);break;case 84:p.pipController.getWindow()&&window.focus();this.toggleTheaterMode(S.keyCode,S.shiftKey);break;case 73:p.pipController.getWindow()&&
window.focus();this.toggleMiniplayer(S.keyCode,S.shiftKey);break;case 70:if(this.isShortsPage&&_.y("web_fullscreen_shorts")){_.jdJ();break}this.isMiniplayerActive()?p.pipController.getWindow()&&(p.close(!0),window.focus()):this.passEventToPlayer(S);break;case 27:this.closeMiniplayer(S.keyCode,S.shiftKey)||this.passEventToPlayer(S);break;case 13:S.shiftKey&&_.y("web_ephemeral_actions")&&_.tW().resolve(_.Tt).activate(S);break;default:this.passEventToPlayer(S)}}};
_.M.onKeyUpEvent=function(S){if(!this.ignoreKeyEvent(S))if(_.y("web_speedmaster_spacebar_control")&&S.keyCode===32)this.handlePlayerSpaceKey(S,!0);else{var p=this.getPlayerManager();p&&(p=p.getPlayer())&&p.handleGlobalKeyUp(S.keyCode,S.shiftKey,S.ctrlKey,S.altKey,S.metaKey,S.key,S.code)}};
_.M.getPlayerManager=function(){var S=_.$L(),p=_.tW().resolve(_.AW(_.oy));return S&&p&&p.isOnWatch()?S:null};
_.M.passEventToPlayer=function(S,p){var U=this,Y,L,I;return _.T(function(V){if(V.nextAddress==1)return!_.y("desktop_keyboard_shortcuts_enabled_miniplayer_killswitch")&&U.isMiniplayerActive()?Y=_.tW().resolve(_.eC).getPlayerElement():U.inlinePreviewIsActive?(L=_.pp(U.hostElement,"yt-get-inline-preview-player-action"))&&L[0]&&(Y=L[0]):Y=_.$L(),Y?_.k(V,Y.getPlayerPromise(),3):V.jumpTo(0);I=V.yieldResult;p?I.handleGlobalKeyUp(S.keyCode,S.shiftKey,S.ctrlKey,S.altKey,S.metaKey,S.key,S.code,S.repeat):I.handleGlobalKeyDown(S.keyCode,
S.shiftKey,S.ctrlKey,S.altKey,S.metaKey,S.key,S.code,S.repeat);S.keyCode!==38&&S.keyCode!==40&&k3(S.keyCode,S.shiftKey,U.isShortsPage);_.OV(V)})};
_.M.focusSearchBox=function(){_.cv(this.hostElement,"yt-focus-searchbox")};
_.M.openHotkeyDialog=function(){_.cv(this.hostElement,"yt-open-hotkey-dialog")};
_.M.isMiniplayerActive=function(){return _.tW().resolve(_.eC).isMiniplayerActive()};
_.M.closeMiniplayer=function(S,p){return this.isMiniplayerActive()?(_.tW().resolve(_.eC).close(),k3(S,p,this.isShortsPage),!0):!1};
_.M.toggleTheaterMode=function(S,p){var U=_.sK(_.vJ().getState()),Y=this.getPlayerManager(),L=_.y("disable_theater_mode_keyboard")||_.ub("START_IN_FULL_WINDOW_MODE");Y&&!L&&(U=!U,_.Bv()&&_.y("external_fullscreen")&&(U=!0),_.St(this.hostElement,"yt-toggle-theater-mode",[U]),k3(S,p,this.isShortsPage))};
_.M.toggleMiniplayer=function(S,p){var U=this.getPlayerManager();if(this.isMiniplayerActive()){var Y;((Y=_.tW().resolve(_.AW(_.oy)))==null?0:Y.isOnWatch())?_.tW().resolve(_.eC).close(!0):_.Jz(_.tW().resolve(_.eC));k3(S,p,this.isShortsPage)}else U&&(_.St(this.hostElement,"yt-activate-miniplayer-from-watch-action"),k3(S,p,this.isShortsPage))};
_.M.handlePlayerSpaceKey=function(S,p){var U=!!_.$L()||this.isMiniplayerActive();U=_.y("disable_space_scroll_fix")||U;_.y("global_spacebar_pause")&&!this.isKeyBoardInUse()&&U&&(S.preventDefault(),this.passEventToPlayer(S,p))};
Cd.prototype.onMiniplayerActiveChange=Cd.prototype.onMiniplayerActiveChange;_.x([_.F(_.eL.YtComponentBehavior),_.E("design:type",Object)],Cd.prototype,"ytComponentBehavior",void 0);_.x([_.F(_.Xh),_.E("design:type",Object)],Cd.prototype,"ytdReduxBehavior",void 0);_.x([_.g({selector:_.Dcw}),_.E("design:type",Boolean)],Cd.prototype,"inlinePreviewIsActive",void 0);_.x([_.g({selector:_.JWY}),_.E("design:type",Boolean)],Cd.prototype,"isShortsPage",void 0);
_.x([_.g({selector:_.F1}),_.E("design:type",Boolean)],Cd.prototype,"miniplayerIsActive",void 0);_.x([_.T4("miniplayerIsActive"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],Cd.prototype,"onMiniplayerActiveChange",null);Cd=_.x([_.f({disableElementRegistration:!0,is:"yt-hotkey-manager"})],Cd);_.C(Cd,"yt-hotkey-manager",void 0,{mode:_.UW("kevlar_poly_si_batch_j081")?1:2});var xp=function(){var S=_.w.apply(this,arguments)||this;S.loopStateEntityKey_=null;S.playlistLoopStateEntity_=null;S.isShuffleNextPlaylist=!1;S.PLAYER_EVENTS_=new Map;S.playerListenersSetup_=!1;S.videoSkipJob_=0;S.canAutoAdvance_=!1;S.playerManager_=null;S.TEST_ONLY={};return S};
_.r(xp,_.w);_.M=xp.prototype;_.M.ready=function(){_.tW().addProvider({provide:_.Fz,useValue:this.hostElement})};
_.M.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_)};
_.M.attached=function(){document.addEventListener("yt-navigate-start",_.d9(this,this.onYtNavigateStart_));document.addEventListener("yt-navigate-finish",_.d9(this,this.onYtNavigateFinish_))};
_.M.detached=function(){document.removeEventListener("yt-navigate-start",_.d9(this,this.onYtNavigateStart_));document.removeEventListener("yt-navigate-finish",_.d9(this,this.onYtNavigateFinish_))};
_.M.updatePlaylistEventListeners=function(S,p){p&&!this.playerListenersSetup_?(this.playerManager_=S,this.registerPlaylistEventListeners_(S)):!p&&this.playerListenersSetup_&&(this.playerManager_=null,this.removePlaylistEventListeners_(S))};
_.M.setPlayer=function(S){this.playerManager_&&this.removePlaylistEventListeners_(this.playerManager_);this.playerManager_=S};
_.M.activate_=function(){this.playerManager_&&this.registerPlaylistEventListeners_(this.playerManager_)};
_.M.deactivate_=function(){this.playerManager_&&this.removePlaylistEventListeners_(this.playerManager_)};
_.M.registerPlaylistEventListeners_=function(S){var p=this;S.getPlayerPromise().then(function(U){p.playerListenersSetup_||(p.ytPlayerListenerBehavior.listenToPlayerEvents(U,p.PLAYER_EVENTS_),p.playerListenersSetup_=!0)})};
_.M.removePlaylistEventListeners_=function(S){var p=this;S.getPlayerPromise().then(function(U){p.playerListenersSetup_&&(p.ytPlayerListenerBehavior.unlistenFromPlayerEvents(U,p.PLAYER_EVENTS_),p.playerListenersSetup_=!1)})};
_.M.setPlaylistComponent=function(S){this.playlistComponent&&(this.playlistComponent.removeEventListener("yt-navigate",_.d9(this,this.onPlaylistYtNavigate_)),S&&(S.data&&this.playlistComponent.data&&S.data.playlistId==this.playlistComponent.data.playlistId?(S.loopOn=this.playlistComponent.loopOn,S.shuffleOn=this.playlistComponent.shuffleOn):(S.loopOn=!1,S.shuffleOn=!1),this.isShuffleNextPlaylist&&(S.shuffleOn=!0,this.isShuffleNextPlaylist=!1)));this.playlistComponent=S;this.playlistComponent.addEventListener("yt-navigate",
_.d9(this,this.onPlaylistYtNavigate_))};
_.M.setAutoplayRenderer=function(S){this.autoplayData=S};
_.M.setPlaylistData=function(S){this.currentPlaylistData_=S;_.cv(this.hostElement,"yt-playlist-data-updated");_.h9.isEmpty(S)?this.deactivate_():this.activate_();this.setLoopStateEntityKey_(S)};
_.M.setPlayerPlaybackControlData=function(S){this.playerManager_&&this.playerManager_.updatePlayerComponents(S.playlistPanelRenderer)};
_.M.getPlaylistData=function(){return this.currentPlaylistData_};
_.M.getTempData_=function(S,p){if(this.playlistComponent==null)return null;S={};this.playlistComponent.shuffleOn&&(S.shuffle_on=this.playlistComponent.shuffleOn);this.playlistComponent.loopOn&&(S.loop_on=this.playlistComponent.loopOn);p&&(S.autonav="1",_.tW().resolve(_.rY),p=_.pv(),p>0&&(S.lact=p),this.playerManager_&&(p=this.playerManager_.getPlayer())&&p.shouldSendVisibilityState()&&(p=p.getVisibilityState(),p!=0&&(S.vis=p)));_.y("enable_unknown_lact_fix_on_html5")&&(_.tW().resolve(_.rY),S.lact=
_.pv());return S};
_.M.getPlaylistState_=function(){return this.playlistComponent.loopOn&&this.playlistComponent.shuffleOn?"LOOP_SHUFFLE":this.playlistComponent.loopOn?"LOOP":this.playlistComponent.shuffleOn?"SHUFFLE":"NORMAL"};
_.M.setLoopStateEntityKey_=function(S){var p;this.loopStateEntityKey_=((p=this.getPlaylistLoopData_(S))==null?void 0:p.playlistLoopStateEntityKey)||null};
_.M.onPlaylistNext=function(){this.playlistComponent&&this.navigateToAutoplayWatchEndpoint_(this.getPlaylistState_(),"nextButtonVideo")};
_.M.onPlaylistPrevious=function(){this.playlistComponent&&this.navigateToAutoplayWatchEndpoint_(this.getPlaylistState_(),"previousButtonVideo")};
_.M.skipVideo=function(){var S=this,p=_.y("web_playlist_queue_multiple_skips_ks");if(!this.videoSkipJob_||p)p=this.isInBackground_()?1E3:5E3,this.videoSkipJob_=_.HG(_.PA,function(){S.onPlaylistNext();S.videoSkipJob_=0},p)};
_.M.cancelVideoSkip=function(){this.videoSkipJob_&&(_.PA.cancelJob(this.videoSkipJob_),this.videoSkipJob_=0)};
_.M.isInBackground_=function(){var S=window.document.visibilityState;return!(!S||S=="visible")};
_.M.onPlaylistIndex_=function(S){this.playlistComponent&&(S=this.playlistComponent.data.contents[S].playlistPanelVideoRenderer.navigationEndpoint,_.cv(this.hostElement,"yt-navigate",{endpoint:S,tempData:this.getTempData_(S)}))};
_.M.onPlayerStateChange_=function(S){if(S=S==0&&this.playlistComponent&&this.canAutoAdvance_)S=_.og.getInstance(),S=!(S.autonavState_===3?S.autonavPauseReason_&&S.autonavPauseReason_.inputBoxFocus===!0:S.autonavState_===1&&S.disabledAutonavPauseReason_&&S.disabledAutonavPauseReason_.inputBoxFocus===!0);S&&this.navigateToAutoplayWatchEndpoint_(this.getPlaylistState_(),"autoplayVideo",!0)};
_.M.onYtNavigateStart_=function(){this.canAutoAdvance_=!1};
_.M.onYtNavigateFinish_=function(){this.canAutoAdvance_=!0};
_.M.navigateToAutoplayWatchEndpoint_=function(S,p,U){var Y=this.playlistComponent.data.currentIndex,L=this.getNumPlayableVideos_();S=="NORMAL"&&p=="autoplayVideo"&&Y+1>=L&&U||!(S=this.getVideoEndpoint_(S,p))||(U=this.getTempData_(S,U),_.cv(this.hostElement,"yt-navigate",{endpoint:S,tempData:U}))};
_.M.getNumPlayableVideos_=function(){for(var S=0,p=_.d(this.playlistComponent.data.contents||[]),U=p.next();!U.done;U=p.next())U.value.playlistPanelVideoRenderer&&(S+=1);return S};
_.M.getVideoEndpoint_=function(S,p){if(this.autoplayData&&this.autoplayData.sets)for(var U=0,Y=this.autoplayData.sets.length;U<Y;U++){var L=this.autoplayData.sets[U];if(L.mode==S){if(L[p])return L[p];break}}else S=new _.y7("AutoplayData is undefined in playlist manager","Mode: "+S+" endpoint: "+p),_.eP(S)};
_.M.getAutoplayEndpoint=function(){if(this.playlistComponent)return this.getVideoEndpoint_(this.getPlaylistState_(),"autoplayVideo")};
_.M.onPlaylistYtNavigate_=function(S){if(S.detail.endpoint){S.stopPropagation();var p=S.detail;p.tempData=this.getTempData_(S.detail.endpoint);_.cv(this.hostElement,"yt-navigate",p)}};
_.M.hasAutoplayData=function(){return!(!this.autoplayData||!this.autoplayData.sets)};
_.M.onPlaylistLoopStateEntityChanged=function(){this.playlistLoopStateEntityChanged_(this.playlistLoopStateEntity_)};
_.M.playlistLoopStateEntityChanged_=function(S){var p=this,U,Y,L;return _.T(function(I){if(I.nextAddress==1){if(!S)return I.return();U=S.state==="PLAYLIST_LOOP_STATE_ONE";return p.playerManager_?_.k(I,p.playerManager_.getPlayerPromise(),3):I.jumpTo(2)}I.nextAddress!=2&&(Y=I.yieldResult,Y.setLoopVideo(U));L=S.state==="PLAYLIST_LOOP_STATE_ALL";p.playlistComponent&&(p.playlistComponent.loopOn=L);_.OV(I)})};
_.M.getPlaylistLoopData_=function(S){var p,U;if(S=S==null?void 0:(p=S.playlistButtons)==null?void 0:(U=p.menuRenderer)==null?void 0:U.topLevelButtons)for(p=_.d(S),U=p.next();!U.done;U=p.next())if(U=U.value,U.playlistLoopButtonRenderer)return U.playlistLoopButtonRenderer};
_.M.getLoopStateCommand_=function(S){var p=this.getPlaylistData(),U;p=((U=this.getPlaylistLoopData_(p))==null?void 0:U.states)||[];var Y;S=(Y=_.b(p[S?1:2],_.lNt))==null?void 0:Y.button;var L;return(L=_.b(S,_.XT))==null?void 0:L.command};
_.M.onPlayerLoopChange_=function(S){this.playlistLoopStateEntity_&&(S?"PLAYLIST_LOOP_STATE_ONE":"PLAYLIST_LOOP_STATE_NONE")!==this.playlistLoopStateEntity_.state&&(S=this.getLoopStateCommand_(S))&&this.ytComponentBehavior.resolveCommand(S)};
_.M.onSleepTimerSettingsChanged_=function(S){this.canAutoAdvance_=S!=="End of video"};
xp.prototype.onPlaylistLoopStateEntityChanged=xp.prototype.onPlaylistLoopStateEntityChanged;_.x([_.F(_.eL.YtComponentBehavior),_.E("design:type",Object)],xp.prototype,"ytComponentBehavior",void 0);_.x([_.F(_.Cj.YtPlayerListenerBehavior),_.E("design:type",_.xt)],xp.prototype,"ytPlayerListenerBehavior",void 0);_.x([_.F(_.Xh),_.E("design:type",Object)],xp.prototype,"ytdReduxBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],xp.prototype,"loopStateEntityKey_",void 0);
_.x([_.g({selectorArgs:["loopStateEntityKey_"],selector:_.sQd}),_.E("design:type",Object)],xp.prototype,"playlistLoopStateEntity_",void 0);_.x([_.T4("playlistLoopStateEntity_"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],xp.prototype,"onPlaylistLoopStateEntityChanged",null);xp=_.x([_.f({disableElementRegistration:!0,is:"yt-playlist-manager"})],xp);_.C(xp,"yt-playlist-manager",void 0,{mode:_.UW("kevlar_poly_si_batch_j081")?1:2});var sl5,e_t=function(){if(sl5!==void 0)return sl5;var S=document.createElement("template");_.h(S,"\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");S.content.insertBefore(_.t().content.cloneNode(!0),S.content.firstChild);return sl5=S};var vZ=function(){var S=_.w.apply(this,arguments)||this;S.lastCallback=null;S.getAccountLinkPromises={};S.redirectModeProviderAllowlist=new Set(["football.fantasysports.yahoo.com","riotgames.com"]);S.actionMap={"yt-initialize-third-party":"handleInitializeRequest","yt-account-link-command":"handleAccountLinkCommand","yt-account-unlink-command":"handleAccountUnlinkCommand","yt-log-account-linking-event-command":"handleLogAccountLinkingEventCommand"};return S};
_.r(vZ,_.w);_.M=vZ.prototype;_.M.getLocation=function(){return window.location.href};
_.M.getCompletionUrl=function(){return _.vv(this.getLocation())};
_.M.containsRedirectState=function(S){return(S=_.bG(_.WId(S)))?(new URLSearchParams(S)).get("redirect_state")!==null:!1};
_.M.createGalConfig=function(S,p){var U=new ELn;S=U=p?this.getPopupOrRedirectSetting(U,_.g7("LINK_API_KEY"),_.g7("LINK_API_KEY_REDIRECT"),S):mFi(U,_.g7("LINK_API_KEY"));S.authUser=_.g7("SESSION_INDEX")||0;S.supportedFlows=new Set([4]);return S.build()};
_.M.getPopupOrRedirectSetting=function(S,p,U,Y){this.isGalInteractionPopupMode(Y)?(S.interactionMode=0,S=mFi(S,p)):(S.interactionMode=1,p=this.getCompletionUrl(),S.completionUrl=p,S=mFi(S,U));return S};
_.M.isGalInteractionPopupMode=function(S){if(this.redirectModeProviderAllowlist.has(S))switch(S){case "football.fantasysports.yahoo.com":return!1;case "riotgames.com":return!_.y("main_web_redirect_integration_riot");default:return!1}return!0};
_.M.getStatusEntityKeyForProviderId=function(S){return _.M9(S+":all","accountLinkStatusEntity")};
_.M.findNestedPropValue=function(S,p){var U=!1,Y=null;JSON.stringify(S,function(L,I){U||L!==p||(U=!0,Y=I);return U?null:I});
return Y};
_.M.findAccountLinkButtonViewModel=function(S,p){var U=null,Y=!1;JSON.stringify(S,function(L,I){Y||I.accountLinkStatusEntityKey!==p||I.accountLinkStatusSecondaryEntityKey||(Y=!0,U=I);return Y?null:I});
return U};
_.M.executeLinkingSuccessOrFailureCommands=function(S,p,U){var Y=null,L;(p==null?0:(L=p.url)==null?0:L.includes("account_sharing"))?Y=p==null?void 0:p.response:Y=p==null?void 0:p.response;(p=this.findAccountLinkButtonViewModel(Y,S))?(S=U?this.findNestedPropValue(p,"onSuccessCommand"):this.findNestedPropValue(p,"onFailureCommand"))?_.dB([S],this.hostElement):_.fU(Error("cl")):_.fU(Error("dl`"+S))};
_.M.handleInitializeRequest=function(S,p){var U=this,Y=hYP(this.createGalConfig(S,!0));this.containsRedirectState(this.getLocation())?kYL(S,Y.config,Y.galService).then(function(L){var I=U.getStatusEntityKeyForProviderId(S);if(L.statusCode===1)p&&U.executeLinkingSuccessOrFailureCommands(I,p,!0),L=U.getLocation().indexOf("#"),L!==-1&&window.history.pushState(null,"",U.getLocation().substring(0,L));else return p&&U.executeLinkingSuccessOrFailureCommands(I,p,!1),Promise.reject(Error(L.statusMessage))}).catch(function(L){_.eP(L);
_.RV("gamingAccountLinkStatusChanged",{serviceId:S,event:"GAMING_ACCOUNT_LINK_ACTION_LINKING",actionStatus:"GAMING_ACCOUNT_LINK_ACTION_STATUS_FAILED"});return Promise.reject(L)}):this.getAccountLinkPromises[S]=Y.startLinkingSession({serviceId:S})};
_.M.handleAccountLinkCommand=function(S){_.b(S,eDq)&&this.handleLinkRequest(_.b(S,eDq))};
_.M.handleLinkRequest=function(S){var p=this,U=S.thirdPartyId;if(U)if(this.isGalInteractionPopupMode(U)){var Y=function(){p.closeAndFire("ytd-gaming-account-link-setting-renderer",S.onFailureCommand)},L=function(){p.closeAndFire("ytd-gaming-account-link-setting-renderer",S.onSuccessCommand)};
this.lastCallback=L;this.getAccountLinkPromises[U].then(function(I){b6P(I).then(function(V){V.statusCode===1?L():Y()})}).catch(function(){Y()})}else this.getAccountLinkPromises[U].then(function(I){b6P(I).then(function(V){if(V.statusCode!==1)return Promise.reject(Error(V.statusMessage))})}).catch(function(I){_.eP(I);
_.RV("gamingAccountLinkStatusChanged",{serviceId:U,event:"GAMING_ACCOUNT_LINK_ACTION_LINKING",actionStatus:"GAMING_ACCOUNT_LINK_ACTION_STATUS_FAILED"});return Promise.reject(I)})};
_.M.closeAndFire=function(S,p){_.St(this.hostElement,"yt-close-popup-action",[S]);p&&_.dB([p],this.hostElement)};
_.M.handleAccountUnlinkCommand=function(S){_.b(S,giE)&&this.handleUnlinkRequest(_.b(S,giE))};
_.M.handleUnlinkRequest=function(S){var p=this,U=S.thirdPartyId;if(U){var Y=function(){p.closeAndFire("ytd-gaming-account-link-confirm-dialog-renderer",S.onFailureCommand)},L=function(){p.closeAndFire("ytd-gaming-account-link-confirm-dialog-renderer",S.onSuccessCommand)};
this.lastCallback=L;var I=hYP(this.createGalConfig(U,!1));this.unlinkUserGal(I,U).then(function(V){V.statusCode===1?L():Y()}).catch(function(){Y()})}};
_.M.unlinkUserGal=function(S,p){return S.deleteLink(p)};
_.M.handleLogAccountLinkingEventCommand=function(S){_.y("enable_gel_log_commands")&&_.b(S,uDJ)&&(S=_.b(S,uDJ).event)&&_.RV("gamingAccountLinkStatusChanged",S)};
_.$u.Object.defineProperties(vZ,{template:{configurable:!0,enumerable:!0,get:function(){return e_t()}}});
_.x([_.F(_.dW.YtOpenPopupBehavior),_.E("design:type",Object)],vZ.prototype,"ytOpenPopupBehavior",void 0);_.x([_.F(_.Aj.YtActionHandlerBehavior),_.E("design:type",Object)],vZ.prototype,"ytActionHandlerBehavior",void 0);vZ=_.x([_.f({disableElementRegistration:!0,is:"ytd-third-party-manager"})],vZ);_.C(vZ,"ytd-third-party-manager",function(){return e_t()},{mode:_.UW("kevlar_poly_si_batch_j081")?1:2});var g2L,uF5=function(){return g2L!==void 0?g2L:g2L=document.createElement("template")};
document.head.appendChild(uF5().content);var wlA,lqE=function(){if(wlA!==void 0)return wlA;var S=document.createElement("template");_.h(S,"\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-page-manager--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.main_desktop.pages.ytd_page_manager.ytd.page.manager.transitions.css.js,video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e");S.content.insertBefore(uF5().content.cloneNode(!0),S.content.firstChild);S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);return wlA=S};var aq5=_.x1(["\n          :root {\n            --page-manager-transition-exit-ms: ","ms;\n            --page-manager-transition-wait-ms: ","ms;\n            --page-manager-transition-enter-ms: ","ms;\n          }\n      "]),$p=function(){var S=_.w.apply(this,arguments)||this;S.currentPage=void 0;S.renderLoadingStateJobId=0;S.updatePageDataJobId=0;S.pageDisposeJobsets=new WeakMap;S.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"};S.applyZoomTransition=_.Ug("web_page_transition_type")==="zoom";S.applySlideTransition=_.Ug("web_page_transition_type")==="slide";S.TEST_ONLY=void 0;return S};
_.r($p,_.w);_.M=$p.prototype;_.M.ready=function(){var S=_.tW();S.addProvider({provide:_.oy,useValue:this});S.addProvider({provide:_.ixm,useValue:this})};
_.M.created=function(){this.pagePool=new IqL;this.contextSwitcher=new y45};
_.M.attached=function(){_.cv(this.hostElement,"attached");var S=_.tW().resolve(_.AW(_.RS));S&&(this.contextSwitcher.JSC$17573_networkService_=S);this.viewTransitionManager=_.tW().resolve(_.AW(_.nO));this.setupPageTransitionAnimation()};
_.M.getPageOffset=function(S){return S.getScrollTop()};
_.M.setPageOffset=function(S,p){try{S.setScrollTop(p)}catch(U){}};
_.M.setPageOffsetForNavigation=function(S,p){_.cv(this.hostElement,"yt-navigate-set-page-offset",{page:S,offset:p===void 0?0:p})};
_.M.pauseActiveContext=function(){var S=this.contextSwitcher;S.activeContext_&&S.activeContext_.pause()};
_.M.getModuleNameForType=function(S){return S==="watch"?_.y("kevlar_watch_fixie")?"watchFixie":_.y("kevlar_watch_grid")?"watchGrid":"watchFlexy":S==="shorts"||S==="search"?S:"browse"};
_.M.attachPage=function(S){var p,U=!_.y("pc_is_attached_ks")&&(S==null?void 0:(p=S.polymerController)==null?void 0:p.isAttached);if(!S.isAttached&&!U)try{_.tB(this.hostElement).appendChild(S)}catch(L){var Y;_.eP(new _.y7("Error attaching page element for component",{origin:(Y=this.currentPage)==null?void 0:Y.is,component:S.is}))}};
_.M.setActivePage=function(S){var p=this,U=!1,Y=function(){var L=p.isOnWatch(),I=p.currentPage;if(S)if(S!==p.currentPage){I&&(I.hidden=!0,I.active=!1,I.removeAttribute("role"));p.currentPage=S;var V,W=_.O1((V=p.data)==null?void 0:V.endpoint);I&&_.cv(p.hostElement,"yt-page-type-changed",{oldPageType:I.is,newPageType:S.is,newPageSubtype:W});_.xk().dispatch(_.S4({type:"SET_SHARED_CURRENT_PAGE_TYPE",payload:S.is}));_.xk().dispatch(_.S4({type:"SET_SHARED_CURRENT_PAGE_SUB_TYPE",payload:W||""}));S.hidden=
!1;p.attachPage(S);S.active=!0;S.setAttribute("role","main");I&&p.setPageOffsetForNavigation(S,0);_.y("kevlar_remove_page_dom_on_switch")&&!L&&I&&_.tB(p.hostElement).removeChild(I)}else U=!0;else L=new _.y7("Unable to set active page",I?I.is:"unknown origin",(W=p.data)==null?void 0:W.endpoint),_.ZP(L)};
this.viewTransitionManager?msP(this.viewTransitionManager,Y,this.viewTransitionConfigForSetActivePage(this.currentPage,S)):Y();return U};
_.M.viewTransitionConfigForSetActivePage=function(S,p){return _.y("web_thumbnail_to_watch_transition")&&(S==null?void 0:S.is)==="ytd-browse"&&this.isWatchPage(p)?{viewTransitionOptions:{shouldWrap:!0}}:(this.applySlideTransition||this.applyZoomTransition)&&(S==null?void 0:S.is)==="ytd-browse"&&(p==null?void 0:p.is)==="ytd-browse"&&S!==p?this.applySlideTransition?{transitionName:"slide"}:{transitionName:"zoom"}:{viewTransitionOptions:{shouldWrap:!1}}};
_.M.updatePageData=function(S){var p=this,U=this.data;this.updatePageDataJobId&&_.PA.cancelJob(this.updatePageDataJobId);this.data=S;return new _.O9(function(Y){var L=function(){S.filler?p.performDataUpdate(S,U):dsL(function(){p.performDataUpdate(S,U)});
var O=_.Pt();_.Zr(O,"cr")||O.processSignal("cr");Y()},I=function(){S&&S.page==="watch"?p.updatePageDataJobId=_.HG(_.PA,L):L()};
if(_.y("kevlar_enable_mss_page_modules_client")&&S){var V=_.tW().resolve(_.uG),W=p.getModuleNameForType(S.page);(V=xsn(V,[W]))?V.then(I):I()}else I()})};
_.M.isDownloadsPage=function(S){var p,U;return(S==null?void 0:(p=S.endpoint)==null?void 0:(U=p.browseEndpoint)==null?void 0:U.browseId)==="FEdownloads"};
_.M.setPlayerSyncInterval=function(S){var p;return _.T(function(U){if(U.nextAddress==1)return _.k(U,_.tW().resolve(_.A7),2);p=U.yieldResult;p.setUpPositionSyncInterval(S);_.OV(U)})};
_.M.performDataUpdate=function(S,p){_.y("kevlar_early_popup_close")||_.St(this.hostElement,"yt-close-all-popups-action",[["ytd-video-download-toast-renderer"]]);var U=!S.filler;U&&(_.Fg("lps"),_.y("config_age_report_killswitch")||uuq());var Y=pi(S),L,I=!1;if(_.y("kevlar_remove_page_dom_on_switch")){var V=p&&pi(p);Y===V&&(L=this.getCurrentPage())}L||(L=sf(this.pagePool,Y));U&&W_T(this.pagePool.elementPoolPopulator,Y);U&&!this.renderLoadingStateJobId&&(I=this.setActivePage(L));if(L){V=Y==="watch";var W=
Y==="shorts",O=Y==="learning_journey_watch";_.y("kevlar_flush_jobs_before_setting_player_response")&&this.flushPageDisposeJobset(L);if(V||W||O)L.playerData=S.playerResponse;if(W){S.reelWatchSequenceResponse?L.reelWatchSequenceResponse=S.reelWatchSequenceResponse:S.cachedReelWatchSequenceResponse?L.reelWatchSequenceResponse=S.cachedReelWatchSequenceResponse:_.y("web_enable_cached_reel_sequence_fix")&&L.cachedReelWatchSequenceResponse&&!L.reelWatchSequenceResponse&&(L.reelWatchSequenceResponse=L.cachedReelWatchSequenceResponse);
L.currentEndpoint=S.endpoint;var D;L.isPreviousPageShorts=!!(p==null?0:(D=p.endpoint)==null?0:D.reelWatchEndpoint);S.cachedReelWatchSequenceResponse=S.reelWatchSequenceResponse||S.cachedReelWatchSequenceResponse||(p==null?void 0:p.cachedReelWatchSequenceResponse);L.cachedReelWatchSequenceResponse=S.cachedReelWatchSequenceResponse}D=this.isDownloadsPage(S);var z=this.isDownloadsPage(p);D&&!z?this.setPlayerSyncInterval(6E5):!D&&z&&this.setPlayerSyncInterval();_.y("block_all_player_prefetch_requests")||
this.preparePrefetchRequest(S,L,U,V,W,O);ok5(_.tW().resolve(_.eC),p,S);_.ic(_.tW().resolve(_.rY));_.y("kevlar_flush_jobs_before_setting_player_response")||this.flushPageDisposeJobset(L);U?(U=typeof L.loadPage,U==="function"?(L.pageContext=KtJ(this.contextSwitcher,L,L.data!==S.response),U=function(){L.loadPage(S.response)},(this.applySlideTransition||this.applyZoomTransition)&&this.viewTransitionManager&&L.is==="ytd-browse"&&I&&this.isDifferentBrowseId(S==null?void 0:S.endpoint,p==null?void 0:p.endpoint)?
this.applySlideTransition?msP(this.viewTransitionManager,U,{transitionName:"slide"}):msP(this.viewTransitionManager,U,{transitionName:"zoom"}):U()):_.s9(new _.y7("b/38014653 ",[Y,
L.is,L.nodeName,U,L.isAttached,p&&pi(p),this.hostElement.children.length])),_.Fg("pdl")):(L.hidden=!0,S.response.filler=!0,L.data=S.response,this.attachPage(L));_.cv(this.hostElement,"yt-page-data-updated",{pageType:Y})}_.bQ(_.PA,function(){_.y("logging_avoid_blocking_during_navigation")&&_.cFk().transition("none");var Q=wtq(),J=L;if(S){var K=Q9q(S),G=nns(S),X;a:{if(S.playerResponse){var Z=S.playerResponse,l;if((X=Z.auxiliaryUi)==null?0:(l=X.messageRenderers)==null?0:l.upsellDialogRenderer){X=Z.auxiliaryUi.messageRenderers.upsellDialogRenderer;
break a}}else if(S.response&&(X=S.response,(Z=X.overlay)==null?0:Z.upsellDialogRenderer)){X=X.overlay.upsellDialogRenderer;break a}X=void 0}var a;var N;l=(a=S.playerResponse)==null?void 0:(N=a.auxiliaryUi)==null?void 0:N.messageRenderers;a=(l==null?void 0:l.enforcementMessageViewModel)||(l==null?void 0:l.bkaEnforcementMessageViewModel);a=(a==null?void 0:a.displayType)!=="ENFORCEMENT_MESSAGE_VIEW_MODEL_DISPLAY_TYPE_PLAYER"?a:void 0;var m;a:{if(S.response&&(N=S.response,(m=N.overlay)==null?0:m.commandWrapperPromoRenderer)){m=
N.overlay.commandWrapperPromoRenderer;break a}m=void 0}uzJ(Q,K,G,X,a,m,J)}})};
_.M.preparePrefetchRequest=function(S,p,U,Y,L,I){var V,W,O,D,z,Q,J,K,G,X,Z,l,a,N,m;return _.T(function(A){if(A.nextAddress==1)return!U||!(Y||L||I)||_.y("kevlar_disable_background_prefetch")&&_.lb(_.vgX)()===0?A.return():(V=_.v7(p))?_.k(A,V.getPlayerPromise(),2):A.return();W=A.yieldResult;O=_.tW().resolve(_.AW(_.RS));if(!O)return A.return();if(L)return D=_.p4(_.k2),nki(D,(z=S.endpoint)==null?void 0:z.reelWatchEndpoint,p.reelWatchSequenceResponse,W,O),A.return();K=(Q=S.response)==null?void 0:(J=Q.responseContext)==
null?void 0:J.webResponseContextExtensionData;if(!K)return A.return();a=(G=S.response)==null?void 0:(X=G.contents)==null?void 0:(Z=X.twoColumnWatchNextResults)==null?void 0:(l=Z.autoplay)==null?void 0:l.autoplay;N=_.tW().resolve(_.Fz);m=_.p4(_.k2);JFP(m,K,W,O,N,a);_.OV(A)})};
_.M.movePlayerToWatch=function(S){var p=this,U,Y;return _.T(function(L){U=sf(p.pagePool,"watch");Y=U.getPlayerContainer();S.appendTo(Y);_.OV(L)})};
_.M.movePlayerToShorts=function(S){var p=this,U,Y,L;return _.T(function(I){U=sf(p.pagePool,"shorts");Y=U.getPlayerContainer();(L=S)==null||L.appendTo(Y,void 0,!0);_.OV(I)})};
_.M.getPlayerFromWatch=function(){var S=sf(this.pagePool,"watch");return _.v7(S)};
_.M.getPlayerFromShorts=function(){var S=sf(this.pagePool,"shorts");return _.v7(S)};
_.M.startLoadingWatch=function(){var S=sf(this.pagePool,"watch");this.renderLoadingStateJobId?(_.PA.cancelJob(this.renderLoadingStateJobId),this.renderLoadingStateJobId=0,this.renderPageLoadingState("watch")):this.setActivePage(S)};
_.M.startLoadingShorts=function(){var S=sf(this.pagePool,"shorts");this.setActivePage(S)};
_.M.startLoadingLearningJourney=function(){var S=sf(this.pagePool,"learning_journey_watch");this.setActivePage(S)};
_.M.getCurrentPage=function(){return this.currentPage};
_.M.getDestinationPageType=function(){return this.destinationPageType};
_.M.getCurrentData=function(){return this.data};
_.M.isOnWatch=function(){return this.isWatchPage(this.currentPage)};
_.M.isOnShorts=function(){var S;return((S=this.currentPage)==null?void 0:S.is)==="ytd-shorts"};
_.M.isWatchPage=function(S){return!!S&&(S.is==="ytd-watch-flexy"||S.is==="ytd-watch-fixie"||S.is==="ytd-watch-grid")};
_.M.preparePage=function(S,p){var U=this,Y=function(){var V=U.pagePool.preparePage(S,U.currentPage,p);V&&U.attachPage(V)},L=function(V){_.gK(V,p);
_.eP(V)};
if(_.y("kevlar_enable_mss_page_modules_client")){var I=this.getModuleNameForType(S);if(I=xsn(_.tW().resolve(_.uG),[I])){I.then(Y.bind(this)).catch(L.bind(this));return}}try{Y()}catch(V){L(V)}};
_.M.lazyPrepareCriticalPages=function(S,p){S=_.O1(p)||S;_.y("kevlar_enable_mss_page_modules_client")?this.downloadPageModules(S).then(this.maybePrepareWatchPage.bind(this,S)):this.maybePrepareWatchPage(S)};
_.M.maybePrepareWatchPage=function(S){S!=="watch"&&_.bQ(_.PA,this.preparePage.bind(this,"watch"))};
_.M.downloadPageModules=function(S){S=this.getModuleNameForType(S);var p=new Set(["browse","search","shorts",this.getModuleNameForType("watch")]);p.delete(S);var U=_.tW().resolve(_.uG);U.JSC$16308_loadModules(S);return U.JSC$16308_loadModules.apply(U,_.jo(p))};
_.M.renderPageLoadingState=function(S,p){this.preparePage(S,p);var U=sf(this.pagePool,S);U.loadingData&&(U.loadingData.endpoint=p);U.loading=!0;this.setActivePage(U);S==="watch"&&_.cv(this.hostElement,"yt-guide-close")};
_.M.prepareForNavigation=function(S,p){var U=this;if(this.currentPage&&this.data){var Y=_.O1(p)||S;this.destinationPageType=Y;pi(this.data)==Y&&_.cv(this.currentPage,"yt-page-data-will-update",{bubbles:!1})}if(S==="watch"&&this.data&&this.data.page!=="watch"){this.renderLoadingStateJobId&&_.PA.cancelJob(this.renderLoadingStateJobId);_.tW().resolve(_.eC).deactivate(p);var L=this.data;this.renderLoadingStateJobId=_.Jn(_.PA,function(){if(U.data!=L){var I=sf(U.pagePool,S);U.setActivePage(I)}else U.renderPageLoadingState(S,
p);U.renderLoadingStateJobId=0},150)}};
_.M.preparePageDispose=function(){if(this.currentPage&&Array.isArray(this.currentPage.pageDisposeJobs)&&this.currentPage.pageDisposeJobs.length!==0){var S=new _.NH(1);this.currentPage.pageDisposeJobs.forEach(function(p){_.Bl(S,p)});
this.pageDisposeJobsets.set(this.currentPage,S)}};
_.M.flushPageDisposeJobset=function(S){var p=this.pageDisposeJobsets.get(S);p&&(p.flushJobs(),this.pageDisposeJobsets.delete(S))};
_.M.onYtStopOldPlayer=function(S,p){p=p===void 0?!1:p;var U,Y=_.YU("kevlar_new_stop_old_player_logic_pages");if(_.y("kevlar_check_current_page_on_stop_old_player")&&(Y.length===0||this.currentPage&&Y.includes(this.currentPage.is)))if(this.data&&(U=pi(this.data)),pi(S)===U&&this.currentPage&&pi(this.currentPage.data)!==U)var L=_.v7(this.currentPage);else U=pi(this.data),L=sf(this.pagePool,U),L=_.v7(L);else this.data&&(U=pi(this.data),L=sf(this.pagePool,U),L=_.v7(L));if(L)if(S=pi(S),Y=sf(this.pagePool,
S),Y=_.v7(Y),L==Y)p&&!_.y("kevlar_disable_preemptive_player_reset")&&L.resetForNewPlayback();else if(p=U==="watch"&&S!=="watch",!p||S==="shorts"||_.Gbq()&&!XQJ(this.data)&&S!=="yts-products"&&S!="mini_app"&&S!="playables")U=_.tW().resolve(_.eC),p&&U.isMiniplayerActive()&&U.pipController.getWindow()||L.stop()};
_.M.setupPageTransitionAnimation=function(){var S=this;if((this.applyZoomTransition||this.applySlideTransition)&&this.viewTransitionManager){qy(this.viewTransitionManager,"slide",{beforeTransition:function(){S.hostElement.style.viewTransitionName="page-manager-slide"},
afterTransition:function(){S.hostElement.style.viewTransitionName=""}});
qy(this.viewTransitionManager,"zoom",{beforeTransition:function(){S.hostElement.style.viewTransitionName="page-manager-zoom"},
afterTransition:function(){S.hostElement.style.viewTransitionName=""}});
var p=_.pA("web_page_transition_exit_ms"),U=_.pA("web_page_transition_wait_ms"),Y=_.pA("web_page_transition_enter_ms");if(!isNaN(p)||!isNaN(U)||!isNaN(Y))if(p=wQi(aq5,p,U,Y))U=document.createElement("style"),U.textContent=_.GDG(p),document.head.appendChild(U)}};
_.M.isDifferentBrowseId=function(S,p){S=_.b(S,_.kM);p=_.b(p,_.kM);return(S==null?void 0:S.browseId)!==(p==null?void 0:p.browseId)};
_.$u.Object.defineProperties($p,{template:{configurable:!0,enumerable:!0,get:function(){return lqE()}}});
_.x([_.F(_.Aj.YtActionHandlerBehavior),_.E("design:type",Object)],$p.prototype,"ytActionHandlerBehavior",void 0);$p=_.x([_.f({disableElementRegistration:!0,is:"ytd-page-manager"})],$p);_.C($p,"ytd-page-manager",function(){return lqE()},{mode:_.UW("kevlar_poly_si_batch_j081")?1:2});var iy=function(S,p,U){U=U===void 0?!1:U;_.hY.call(this);this.draggableElement=S;this.callbacks=p;this.allowClicks=U;this.dragOccurred=!1;this.internalDragger=new _.PF(this.draggableElement);this.dragDelay=new _.Br(this.delayedDrag.bind(this));fqt(this);this.allowClicks&&(_.lgj(this.internalDragger,5),S.addEventListener("click",_.d9(this,this.validateClick),{capture:!0}))};
_.r(iy,_.hY);var fqt=function(S){_.Kz(S.internalDragger,"earlycancel",function(){S.allowClicks&&(S.dragOccurred=!1)});
_.Kz(S.internalDragger,"start",function(p){var U,Y;(Y=(U=S.callbacks).onStartDrag)==null||Y.call(U,p);!p.defaultPrevented&&S.allowClicks&&(S.dragOccurred=!0)});
_.Kz(S.internalDragger,"beforedrag",function(p){p.preventDefault();S.lastOffset=new _.Xp(p.clientX-S.internalDragger.startX,p.clientY-S.internalDragger.startY);S.dragDelay.start()});
_.Kz(S.internalDragger,"end",function(){S.dragDelay.stop();var p,U;(U=(p=S.callbacks).onEndDrag)==null||U.call(p);S.lastOffset=void 0})};
iy.prototype.delayedDrag=function(){if(this.lastOffset)this.callbacks.onDrag(this.lastOffset)};
iy.prototype.disposeInternal=function(){this.internalDragger.dispose();this.allowClicks&&this.draggableElement.removeEventListener("click",_.d9(this,this.validateClick),{capture:!0})};
iy.prototype.validateClick=function(S){this.dragOccurred&&(this.dragOccurred=!1,S.stopPropagation(),S.preventDefault())};var Ni=function(S,p){_.hY.call(this);this.JSC$17774_resizeContainer=S;this.callbacks=p;this.aspectRatio=16/9;this.JSC$17774_resizers=[];S=_.d(this.JSC$17774_resizeContainer.children);for(p=S.next();!p.done;p=S.next())Cj5(this,p.value)};
_.r(Ni,_.hY);Ni.prototype.disposeInternal=function(){for(var S=_.d(this.JSC$17774_resizers),p=S.next();!p.done;p=S.next())p.value.dispose();S=_.d(this.JSC$17774_resizeContainer.children);for(p=S.next();!p.done;p=S.next())p.value.setAttribute("disabled","");this.JSC$17774_resizers.length=0};
Ni.prototype.setSize=function(S){this.currentMiniplayerSize=S};
Ni.prototype.setAspectRatio=function(S){this.aspectRatio=S};
Ni.prototype.update=function(S,p){for(var U=_.d(this.JSC$17774_resizeContainer.children),Y=U.next();!Y.done;Y=U.next()){Y=Y.value;var L=Y.getAttribute("alignment");_.Yk(Y,"disabled",L===S||L===p)}};
var Cj5=function(S,p){var U=p.getAttribute("alignment"),Y=new iy(p,{onStartDrag:function(L){if(p.hasAttribute("disabled"))L.preventDefault();else{S.dragStartSize=S.currentMiniplayerSize;var I,V;(V=(I=S.callbacks).onStartResize)==null||V.call(I)}},
onDrag:function(L){if(S.dragStartSize){U!=="north"&&U!=="west"||L.scale(-1);var I=U==="north"||U==="south";L=I?L.y:L.x;I&&S.aspectRatio>=1?L*=S.aspectRatio:!I&&S.aspectRatio<1&&(L/=S.aspectRatio);S.callbacks.onResize(S.dragStartSize+L)}}});
S.JSC$17774_resizers.push(Y)};var xHA,E2X=function(){return xHA!==void 0?xHA:xHA=document.createElement("template")};
document.head.appendChild(E2X().content);var mHs;var o2L=_.$k(function(S){var p=_.vH(),U=S.onDrag,Y=S.onDragStart,L=S.onDragEnd,I=_.vT(S,{allowClicks:!1,dragThreshold:5}),V=I.dragThreshold,W=I.allowClicks;S=I.children;I=I.className;var O=void 0,D=void 0,z=new _.Xp(0,0),Q=!1;_.FM(function(){O=new _.PF(p.value);D=new _.Br(K);J(O,D);if(W()){_.lgj(O,V());var X;(X=p.value)==null||X.addEventListener("click",G,{capture:!0})}_.FG(function(){var Z;(Z=O)==null||Z.dispose();if(W()){var l;(l=p.value)==null||l.removeEventListener("click",G,{capture:!0})}})});
var J=function(X,Z){_.Kz(X,"earlycancel",function(){W()&&(Q=!1)});
_.Kz(X,"start",function(l){Y==null||Y(l);l.defaultPrevented||W()&&(Q=!0)});
_.Kz(X,"beforedrag",function(l){O&&D&&(l.preventDefault(),z=new _.Xp(l.clientX-O.startX,l.clientY-O.startY),D.start())});
_.Kz(X,"end",function(){Z.stop();L==null||L();z=new _.Xp(0,0)})},K=function(){z&&U(z)},G=function(X){Q&&(Q=!1,X.stopPropagation(),X.preventDefault())};
return _.H("yt-draggable",{el:p,class:_.VD("ytDraggableComponentHost",I)},S)},"kg");var v2T=_.$k(function(S){var p=_.d(_.kj(0,void 0,"CvAwBd")),U=p.next().value,Y=p.next().value;p=function(L){var I={},V={};return _.H(o2L,{className:_.VD("ytdMiniplayerComponentResizer",(I.ytdMiniplayerComponentResizerDisabled=function(){return L===S.horizontalAlignment()||L===S.verticalAlignment()},I.ytdMiniplayerComponentResizerNorth=L==="north",I.ytdMiniplayerComponentResizerEast=L==="east",I.ytdMiniplayerComponentResizerSouth=L==="south",I.ytdMiniplayerComponentResizerWest=L==="west",I)),
onDragStart:function(){Y(S.currentMiniplayerSize());if(S.onResizeStart)S.onResizeStart()},
onDrag:function(W){L!=="north"&&L!=="west"||W.scale(-1);var O;W=(O=L==="north"||L==="south")?W.y:W.x;var D=S.currentAspectRatio();O&&D>=1?W*=D:!O&&D<1&&(W/=D);O=W;S.onResize(U()+O)}},_.H("div",{class:_.VD("ytdMiniplayerComponentResizerCorner",(V.ytdMiniplayerComponentResizerNorthCorner=L==="north",V.ytdMiniplayerComponentResizerEastCorner=L==="east",V.ytdMiniplayerComponentResizerSouthCorner=L==="south",V.ytdMiniplayerComponentResizerWestCorner=L==="west",V))}))};
return _.H("div",{class:"ytdMiniplayerComponentResizers"},p("north"),p("east"),p("south"),p("west"))},"lg");var $HE=16/9,i$o=_.$k(function(){var S=_.vH(),p=_.d(_.kj(new _.OF(NaN,NaN),void 0,"UYv80c")),U=p.next().value,Y=p.next().value;p=_.d(_.kj(!1,void 0,"L9O3Tc"));var L=p.next().value,I=p.next().value;p=_.d(_.kj(!1,void 0,"nw5gMc"));var V=p.next().value,W=p.next().value;p=_.d(_.kj(!1,void 0,"X4YUZc"));var O=p.next().value,D=p.next().value;p=_.d(_.kj(!1,void 0,"jOjwyc"));var z=p.next().value,Q=p.next().value;p=_.d(_.kj(!1,void 0,"EmWIj"));var J=p.next().value,K=p.next().value;p=_.d(_.kj(!1,void 0,"pdZbNb"));
var G=p.next().value,X=p.next().value;p=_.d(_.kj($HE,void 0,"vdAiue"));var Z=p.next().value,l=p.next().value,a=_.d(_.kj(!1,void 0,"agiiqf"));p=a.next().value;var N=a.next().value;a=_.d(_.kj(!1,void 0,"z3vkHe"));var m=a.next().value,A=a.next().value;a=_.d(_.kj(void 0,void 0,"FMEjz"));var q=a.next().value,TG=a.next().value;a=_.d(_.kj(_.g7("HTML_DIR")==="rtl"?"west":"east",void 0,"jGuIHe"));var Je=a.next().value,GG=a.next().value;a=_.d(_.kj("south",void 0,"R5stie"));var Zw=a.next().value,Ru=a.next().value;
a=_.d(_.kj(400,void 0,"CJeuke"));var sX=a.next().value,mq=a.next().value,au=_.tW().resolve(_.eC).miniplayerPropSignalMap[0],XI=au.data,nE=au.externalPlaylistData;a=au.toastData;var ut=au.playabilityStatus,Hw=au.isReadyToResume,Tj=au.isDisabled,Ut=au.watchWhile,Ww=au.playerVe,kA=au.expandVe,XO=au.closeVe,Vw=au.readyToResumeVe,Kc=au.readyToResumeCloseVe,eQ=au.repositionVe,x5=au.resizeVe;au=_.d(_.Dt(Hw));var rm=au.next().value,Bw=au.next().value,oO=!1,$m=!1,Mt;_.FM(function(){Y(_.zv());S.value.addEventListener("animationend",
function(Cc){Cc.target===S.value&&(K(!1),X(!1))});
fLA(S.value)});
_.oV("yt-window-resized",function(Cc){Cc&&Y(Cc)});
var El=function(){Mt&&l(Mt.getVideoAspectRatio())},KE=function(){if(Mt){var Cc=Mt.getPlayerState()===1;
rm()&&Cc&&Bw(!1)}},yH=function(){var Cc=kA();
if(Cc){var aT=_.X$(3);aT&&_.xd(aT,Cc)}},Gj=function(){var Cc=XO(),aT=Kc();
Cc&&_.xd(_.X$(3),Cc);Hw()&&aT&&_.xd(_.X$(3),aT)};
_.oV("yt-activate-miniplayer",function(Cc){var aT;return _.T(function(td){if(td.nextAddress==1)return L()?td.return():_.k(td,(aT=_.tW().resolve(_.eC).getPlayerElement())==null?void 0:aT.getPlayerPromise(),2);Mt=td.yieldResult;if(!Mt)return td.return();!m()&&_.y("kevlar_watch_while_v2")&&(Ru(Cc&&!_.y("kevlar_watch_while_bottom_align")?"north":"south"),GG(_.g7("HTML_DIR")==="rtl"?"west":"east"));var V8=Mt;V8.addEventListener("onVideoDataChange",El);V8.addEventListener("onStateChange",KE);V8.addEventListener("onExpandMiniplayer",
yH);V8.addEventListener("onCloseMiniplayer",Gj);l(Mt.getVideoAspectRatio());I(!0);K(!0);_.OV(td)})});
_.oV("yt-deactivate-miniplayer",function(Cc){return _.T(function(aT){if(!L())return aT.return();I(!1);Bw(!1);X(Cc);K(!0);Q(!1);W(!1);if(Mt){var td=Mt;td.removeEventListener("onVideoDataChange",El);td.removeEventListener("onStateChange",KE);td.removeEventListener("onExpandMiniplayer",yH);td.removeEventListener("onCloseMiniplayer",Gj)}_.OV(aT)})});
var MY=function(){return!(Ut()&&_.y("kevlar_watch_while_modern"))},V2=function(){var Cc;
return!((Cc=nE())==null||!Cc.contents)},Tq=function(){var Cc=sX();
var aT=U();aT=Math.min(Math.min(aT.width,aT.height)-32,720);var td=Z(),V8=MY(),Ix=V2()&&V(),F5=Math.min(Cc,aT);Cc=new _.OF(192,V8?116:192);td=nMt(new _.OF(Ix?$HE:td,1),new _.OF(F5,V8?F5-76:F5));Cc.width<=td.width&&Cc.height<=td.height||(QSJ(td,Cc),td.width=Math.min(td.width,aT),td.height=Math.min(td.height,aT));return new _.OF(td.width,_.F7(192,td.height+oni(V8,Ix),720))},Ku=function(){var Cc=Tq(),aT=MY(),td=V2()&&V();
return new _.OF(Cc.width,Cc.height-oni(aT,td))},VT=function(){var Cc=function(aT){aT.target===S.value&&z()&&(Q(!1),S.value.removeEventListener("transitionend",Cc))};
S.value.addEventListener("transitionend",Cc);Q(!0);W(!V())};
_.R8(function(){var Cc=Ww(),aT=_.X$(3),td=_.F$(3);if(aT&&td&&Cc){_.wB(aT,td,Cc);td=eQ();var V8=x5(),Ix=kA(),F5=XO(),CS=Kc();Ix&&F5&&CS&&(_.l5(aT,Cc,[Ix,F5,CS]),_.fp(aT,[Ix,F5]));td&&V8&&_.l5(aT,Cc,[td,V8])}});
_.R8(function(){var Cc=rm(),aT=Vw();if(aT&&(Cc===void 0?0:Cc)){Cc=_.X$(0);var td=_.F$(0);Cc&&td&&(_.wB(Cc,td,aT),_.fp(Cc,[aT]))}});
au={};return _.H("ytd-miniplayer",{el:S,class:_.VD("ytdMiniplayerComponentHost",(au.ytdMiniplayerComponentVisible=function(){return L()||J()},au.ytdMiniplayerComponentAnimatingSnap=O,au.ytdMiniplayerComponentAnimatingPlaylistExpand=z,au.ytdMiniplayerComponentAnimatingFade=J,au),function(){if(J()){var Cc=Zw();
var aT=L(),td=G();Cc=aT?Cc==="south"?"ytdMiniplayerComponentAnimatingFadeInSouth":"ytdMiniplayerComponentAnimatingFadeInNorth":td?Cc==="south"?"ytdMiniplayerComponentAnimatingFadeOutNorth":"ytdMiniplayerComponentAnimatingFadeOutSouth":Cc==="south"?"ytdMiniplayerComponentAnimatingFadeOutSouth":"ytdMiniplayerComponentAnimatingFadeOutNorth"}else Cc="";return Cc}),
style:_.zw({top:function(){return Zw()==="north"?"16px":""},
right:function(){return Je()==="east"?"16px":""},
bottom:function(){return Zw()==="south"?"16px":""},
left:function(){return Je()==="west"?"16px":""},
width:function(){return Tq().width+"px"},
height:function(){return Tq().height+"px"},
transform:function(){var Cc=q();return Cc?"translate("+Cc.x+"px, "+Cc.y+"px)":""}})},_.H("div",{class:"ytdMiniplayerComponentContent"},_.H(o2L,{allowClicks:!0,
className:"ytdMiniplayerComponentDraggable",onDragStart:function(Cc){var aT=mUt(Je(),Zw(),U(),Tq(),q()),td=Ku();Math.abs(Cc.clientY-(aT.y+td.height))>15?(N(!0),Cc=_.X$(3),aT=eQ(),oO||(oO=!0,Cc&&aT&&_.fp(Cc,[aT])),Cc&&aT&&_.xd(Cc,aT)):Cc.preventDefault()},
onDrag:function(Cc){TG(Cc)},
onDragEnd:function(){var Cc=CLY(mUt(Je(),Zw(),U(),Tq(),q()),U(),Tq()),aT=En5(Je(),Zw(),U(),Tq()),td=En5(Cc.horizontalAlignment,Cc.verticalAlignment,U(),Tq());td=new _.Xp(td.x-aT.x,td.y-aT.y);var V8;aT=aT.y+(((V8=q())==null?void 0:V8.y)||0)+Tq().height/2;var Ix=function(){Je()===Cc.horizontalAlignment&&Zw()===Cc.verticalAlignment||A(!0);GG(Cc.horizontalAlignment);Ru(Cc.verticalAlignment);TG(void 0)},F5=function(CS){CS.target===S.value&&O()&&(D(!1),Ix(),S.value.removeEventListener("transitionend",F5))};
N(!1);Zw()==="south"&&aT>U().height?(Ix(),_.tW().resolve(_.eC).close()):(S.value.addEventListener("transitionend",F5),D(!0),TG(td))}},_.H(_.n,{cond:L,
then:function(){return _.H(_.BmL,{isDisabled:Tj,playabilityStatus:ut,size:Ku})}}),_.H(_.n,{cond:MY,
then:function(){return _.H(_.ici,{isReadyToResume:rm,data:XI,expanded:V,onExpandClick:VT,playlistData:nE})}}),_.H(_.n,{cond:p,
then:function(){return _.H("div",{class:"ytdMiniplayerComponentDraggableDragCover"})}})),_.H(_.n,{cond:function(){return V2()&&V()||z()},
then:function(){return _.H(_.Q7m,{className:"ytdMiniplayerComponentPlaylistPanel",data:nE,hideHeaderText:!0,withinMiniplayer:!0})}}),_.H("div",{class:"ytdMiniplayerComponentToast"},_.H(_.qln,{toastData:a}))),_.H(v2T,{onResize:function(Cc){mq(_.F7(192,Cc,720))},
onResizeStart:function(){var Cc=_.X$(3),aT=x5();$m||($m=!0,Cc&&aT&&_.fp(Cc,[aT]));Cc&&aT&&_.xd(Cc,aT)},
currentAspectRatio:Z,currentMiniplayerSize:sX,horizontalAlignment:Je,verticalAlignment:Zw}))},"mg");_.y("ytd_miniplayer_to_wiz")&&_.qm(i$o,"ytd-miniplayer",{});_.qm(_.qln,"ytd-miniplayer-toast",{props:{toastData:_.x2}});var Nko=16/9,Bkt=new _.OF(400,400/Nko),BZ=function(){var S=_.w.apply(this,arguments)||this;S.active=!1;S.hasNoData=!1;S.enabled=!1;S.expanded=!1;S.readyToResume=!1;S.isDisabled=!1;S.externalPlaylistData={};S.premiumBadges=[];S.watchWhile=!1;S.playerState=null;S.verticalAttachment="south";S.horizontalAttachment=_.g7("HTML_DIR")==="rtl"?"west":"east";S.isAnimatingFade=!1;S.isAnimatingSnap=!1;S.isAnimatingExpand=!1;S.isDragging=!1;S.playerHidden=!1;S.hasPlaylistData=!1;S.closed=!1;S.expandedClosed=!1;
S.isForReadyToResume=!1;S.watchResponse=null;S.player=null;S.playerVe=null;S.expandVe=null;S.closeVe=null;S.readyToResumeCloseVe=null;S.disabledInitialStateIsPlaying=!1;S.PLAYER_EVENTS=new Map;S.aspectRatio=Nko;S.currentMiniplayerSize=400;S.userSetSize=!1;S.userSetPosition=!1;S.userHasDragged=!1;S.maxMiniplayerSize=720;S.transform=new _.Xp(0,0);S.windowDimensions=new _.OF(NaN,NaN);S.dimensions=Bkt;S.screenLayer=3;S.actionMap={"yt-activate-miniplayer-action":"activate","yt-deactivate-miniplayer-action":"deactivate",
"yt-window-resized":"onWindowResized"};return S};
_.r(BZ,_.w);_.M=BZ.prototype;_.M.created=function(){this.PLAYER_EVENTS.set("onVideoDataChange",this.onPlayerVideoDataChange);this.PLAYER_EVENTS.set("onCloseMiniplayer",this.onPlayerCloseMiniplayer);this.PLAYER_EVENTS.set("onExpandMiniplayer",this.onPlayerExpandMiniplayer);this.PLAYER_EVENTS.set("onStateChange",this.onPlayerStateChange);this.registerViewTransitionTasks()};
_.M.ready=function(){this.setUpDragging();this.setUpResizing()};
_.M.attached=function(){this.onWindowResized(_.zv());this.hostElement.addEventListener("animationend",_.d9(this,this.resetFadingAnimation))};
_.M.detached=function(){this.hostElement.removeEventListener("animationend",_.d9(this,this.resetFadingAnimation))};
_.M.resetFadingAnimation=function(S){S.target===this.hostElement&&(this.isAnimatingFade=!1)};
_.M.hasPlaylistDataChanged=function(){!this.hasPlaylistData&&this.expanded&&(this.expanded=!1);this.updateDimensionsAndResize()};
_.M.onPlayerVeChange=function(){this.playerVe&&this.logMiniplayer()};
_.M.premiumBrandingChanged=function(){if(this.premiumBranding){this.readyToResume=this.isForReadyToResume=!0;var S=_.X$(this.screenLayer);this.readyToResumeCloseVe&&S&&_.fp(S,[this.readyToResumeCloseVe]);this.set("premiumBadges",[{metadataBadgeRenderer:{icon:{iconType:"PREMIUM_STANDALONE_CAIRO"}}}])}};
_.M.readyToResumeVeChanged=function(){if(this.readyToResumeVe){var S=_.X$(0),p=_.F$(0);S&&p&&(_.wB(S,p,this.readyToResumeVe),_.fp(S,[this.readyToResumeVe]))}};
_.M.onIsDisabledChanged=function(){if(this.isDisabled&&this.player){var S=this.player.getPlayerState();(this.disabledInitialStateIsPlaying=S===-1||S===1||S===3)&&this.player.pauseVideo()}};
_.M.activate=function(S,p){p=p===void 0?!1:p;var U=this,Y;return _.T(function(L){if(L.nextAddress==1)return U.setInitialActivatePositioning(p),U.enabled=!0,U.active=!0,U.expanded=!1,U.closed=!1,U.expandedClosed=!1,U.watchWhileHidden||(U.isAnimatingFade=!0),_.tW().resolve(_.Fz).setPlaylistComponent(U.JSC$17785_playlistPanel),S.appendTo(U.playerContainer),_.k(L,S.getPlayerPromise(),2);Y=L.yieldResult;Y.setSizeStyle(!1,!0);U.ytPlayerListenerBehavior.listenToPlayerEvents(Y,U.PLAYER_EVENTS);U.player=Y;
U.watchWhile&&_.y("kevlar_watch_while_minimum_size")&&U.setMiniplayerSize(192);U.setAspectRatio(U.player.getVideoAspectRatio());U.onIsDisabledChanged();_.OV(L)})};
_.M.setInitialActivatePositioning=function(S){if(!this.userSetPosition&&_.y("kevlar_watch_while_v2")){this.verticalAttachment=S&&!_.y("kevlar_watch_while_bottom_align")?"north":"south";this.horizontalAttachment=_.g7("HTML_DIR")==="rtl"?"west":"east";var p;(p=this.JSC$17785_resizers)==null||p.update(this.horizontalAttachment,this.verticalAttachment)}};
_.M.deactivate=function(S,p){var U=this;return _.T(function(Y){if(!U.active)return Y.return();S||(U.expanded?U.expandedClosed=!0:U.closed=!0);U.active=!1;U.isForReadyToResume=!1;p&&_.y("kevlar_watch_while_counterfactual")||(U.isAnimatingFade=!0);U.player&&U.ytPlayerListenerBehavior.unlistenFromPlayerEvents(U.player,U.PLAYER_EVENTS);U.player=null;_.OV(Y)})};
_.M.onMetadataTap=function(S){this.expandVe&&(S===void 0||S)&&(S=_.X$(this.screenLayer))&&_.xd(S,this.expandVe);_.Jz(_.tW().resolve(_.eC))};
_.M.onDisabledTap=function(S){S.target===_.tB(this.hostElement).querySelector("#blocking-container")&&(this.disabledInitialStateIsPlaying&&this.player.playVideo(),this.onMetadataTap())};
_.M.onPlaylistExpandTap=function(S){if(this.hasPlaylistData){S=_.E1(S)||[];S=_.d(S);for(var p=S.next();!p.done;p=S.next()){p=p.value;if(p===this.hostElement)break;if(p.classList&&p.classList.contains("miniplayer-title"))return}this.playlistExpand()}};
_.M.playlistExpand=function(){this.hostElement.addEventListener("transitionend",_.d9(this,this.animatedResizePlaylist));this.isAnimatingExpand=!0;this.ytRendererBehavior.markDirty();this.expanded=!this.expanded;this.updateDimensionsAndResize()};
_.M.animatedResizePlaylist=function(S){S.target===this.hostElement&&(this.isAnimatingExpand=!1,this.hostElement.removeEventListener("transitionend",_.d9(this,this.animatedResizePlaylist)))};
_.M.getExpandIcon=function(S){return S?"miniplayer:keyboard-arrow-down":"miniplayer:keyboard-arrow-up"};
_.M.onPlayerVideoDataChange=function(){var S,p=(S=this.player)==null?void 0:S.getVideoAspectRatio();p&&p!==this.aspectRatio&&this.setAspectRatio(p)};
_.M.setAspectRatio=function(S){if(this.active){this.aspectRatio=S;this.updateDimensionsAndResize();var p;(p=this.JSC$17785_resizers)==null||p.setAspectRatio(S)}};
_.M.updateDimensionsAndResize=function(){var S=Math.min(this.currentMiniplayerSize,this.maxMiniplayerSize),p=this.expanded?Nko:this.aspectRatio,U=new _.OF(192,this.showInfoBar?116:192);S=nMt(new _.OF(p,1),new _.OF(S,this.showInfoBar?S-76:S));U.width<=S.width&&U.height<=S.height||(QSJ(S,U),S.width=Math.min(S.width,this.maxMiniplayerSize),S.height=Math.min(S.height,this.maxMiniplayerSize),this.setMiniplayerSize(this.showInfoBar&&p<=1?Math.max(S.width,S.height)+76:Math.max(S.width,S.height)));this.dimensions=
new _.OF(S.width,this.clamp(S.height+this.getNonPlayerHeight()));this.resize()};
_.M.resize=function(){this.hostElement.style.width=this.dimensions.width+"px";this.hostElement.style.height=this.dimensions.height+"px";var S=this.getPlayerSize(this.dimensions);this.playerContainer.style.height=S.height+"px";var p;(p=this.player)==null||p.setInternalSize(S.width,S.height)};
_.M.getPlayerSize=function(S){var p=Math.max(0,S.height-this.getNonPlayerHeight());return new _.OF(S.width,p)};
_.M.getNonPlayerHeight=function(){var S=0;this.showInfoBar&&(S+=76);this.expanded&&(S+=285);return S};
_.M.onDisabledCloseMiniplayer=function(){this.logClosingClick();_.tW().resolve(_.eC).close()};
_.M.onPlayerCloseMiniplayer=function(){this.logClosingClick()};
_.M.logClosingClick=function(){this.closeVe&&_.xd(_.X$(this.screenLayer),this.closeVe);this.isForReadyToResume&&this.readyToResumeCloseVe&&_.xd(_.X$(this.screenLayer),this.readyToResumeCloseVe)};
_.M.onPlayerExpandMiniplayer=function(){if(this.expandVe){var S=_.X$(this.screenLayer);S&&_.xd(S,this.expandVe)}};
_.M.onPlayerStateChange=function(){if(this.player){this.playerState=this.player.getPlayerState();var S=this.playerState===1;this.continueWatching&&S&&(this.continueWatching=!1);this.premiumBadges.length&&S&&(this.set("premiumBadges",[]),this.readyToResume=this.premiumBranding=!1,this.updateDimensionsAndResize())}};
_.M.getScreenLayer=function(){return this.screenLayer};
_.M.logMiniplayer=function(){var S=_.X$(this.screenLayer),p=_.F$(this.screenLayer);S&&p&&this.playerVe&&(_.wB(S,p,this.playerVe),this.expandVe&&this.closeVe&&this.readyToResumeCloseVe&&(_.l5(S,this.playerVe,[this.expandVe,this.closeVe,this.readyToResumeCloseVe]),_.fp(S,[this.expandVe,this.closeVe])),this.repositionVe&&this.resizeVe&&_.l5(S,this.playerVe,[this.repositionVe,this.resizeVe]))};
_.M.computePlaylistData=function(S,p){return p};
_.M.computeHasPlaylistData=function(){return!!this.playlistData&&!!this.playlistData.contents};
_.M.computeExpandButtonHidden=function(S,p,U){return!S||!p||U};
_.M.computePlaylistIndexHidden=function(S,p){return!S||p};
_.M.computePlaylistPanelHidden=function(S,p){return!p&&!S};
_.M.computeExpandButtonLabel=function(S){return S?_.Oh("MINIPLAYER_COLLAPSE_LABEL"):_.Oh("MINIPLAYER_EXPAND_LABEL")};
_.M.computeDisabledStateCloseButtonLabel=function(){return _.Oh("MINIPLAYER_CLOSE",void 0,"Close")};
_.M.onWindowResized=function(S){S&&(S=this.windowDimensions=S,this.maxMiniplayerSize=Math.min(Math.min(S.width,S.height)-32,720),this.updateDimensionsAndResize())};
_.M.setUpResizing=function(){var S=this;this.JSC$17785_resizers||(this.JSC$17785_resizers=new Ni(this.JSC$17785_resizeContainer,{onStartResize:function(){S.handleResizeStart()},
onResize:function(p){S.handleResize(p)}}),this.JSC$17785_resizers.setSize(this.currentMiniplayerSize),this.JSC$17785_resizers.update(this.horizontalAttachment,this.verticalAttachment))};
_.M.handleResizeStart=function(){var S=_.X$(this.screenLayer);this.userSetSize||(this.userSetSize=!0,S&&this.resizeVe&&_.fp(S,[this.resizeVe]));S&&this.resizeVe&&_.xd(S,this.resizeVe)};
_.M.handleResize=function(S){this.setMiniplayerSize(S);this.updateDimensionsAndResize()};
_.M.setUpDragging=function(){var S=this;this.JSC$17785_dragger||(this.JSC$17785_dragger=new iy(this.draggableContainer,{onStartDrag:function(p){!S.isSafeToDrag(p)||S.isAnimatingSnap?p.preventDefault():S.handleDragStart()},
onDrag:function(p){S.transform=p;S.setTransform(S.transform)},
onEndDrag:function(){S.handleDragEnd()}},!0))};
_.M.handleDragStart=function(){this.isDragging=!0;var S=_.X$(this.screenLayer);this.userHasDragged||(this.userHasDragged=!0,S&&this.repositionVe&&_.fp(S,[this.repositionVe]));S&&this.repositionVe&&_.xd(S,this.repositionVe)};
_.M.handleDragEnd=function(){this.isDragging=!1;var S=this.getCurrentGlobalPosition().y+this.dimensions.height/2;this.verticalAttachment==="south"&&S>this.windowDimensions.height&&_.tW().resolve(_.eC).close();this.animateSnapToCorner()};
_.M.animateSnapToCorner=function(){var S=this.getGlobalPositionFromAttachments(this.horizontalAttachment,this.verticalAttachment),p=this.getNearestAttachments();p=this.getGlobalPositionFromAttachments(p.horizontalAttachment,p.verticalAttachment);S=new _.Xp(p.x-S.x,p.y-S.y);this.isAnimatingSnap=!0;this.setTransform(S);this.hostElement.addEventListener("transitionend",_.d9(this,this.endSnapAnimation))};
_.M.endSnapAnimation=function(S){S.target===this.hostElement&&this.isAnimatingSnap&&(this.hostElement.removeEventListener("transitionend",_.d9(this,this.endSnapAnimation)),this.endDrag())};
_.M.endDrag=function(){this.isAnimatingSnap=!1;this.updateAttachments();this.setTransform(null)};
_.M.setTransform=function(S){this.hostElement.style.transform=S?"translate("+S.x+"px, "+S.y+"px)":""};
_.M.getGlobalPositionFromAttachments=function(S,p){return new _.Xp(S==="west"?16:this.windowDimensions.width-this.dimensions.width-16,p==="north"?16:this.windowDimensions.height-this.dimensions.height-16)};
_.M.updateAttachments=function(){var S=this.getNearestAttachments();if(this.horizontalAttachment!==S.horizontalAttachment||this.verticalAttachment!==S.verticalAttachment)this.userSetPosition=!0;this.horizontalAttachment=S.horizontalAttachment;this.verticalAttachment=S.verticalAttachment;var p;(p=this.JSC$17785_resizers)==null||p.update(this.horizontalAttachment,this.verticalAttachment)};
_.M.getNearestAttachments=function(){var S=this.getCurrentGlobalPosition();return{horizontalAttachment:S.x+this.dimensions.width/2<this.windowDimensions.width/2?"west":"east",verticalAttachment:S.y+this.dimensions.height/2<this.windowDimensions.height/2?"north":"south"}};
_.M.getCurrentGlobalPosition=function(){var S=this.getGlobalPositionFromAttachments(this.horizontalAttachment,this.verticalAttachment);return xUL(S,this.transform)};
_.M.isSafeToDrag=function(S){var p=this.playerContainer.getBoundingClientRect();return Math.abs(S.clientY-(p.y+p.height))>15};
_.M.setMiniplayerSize=function(S){this.currentMiniplayerSize=this.clamp(S);var p;(p=this.JSC$17785_resizers)==null||p.setSize(this.currentMiniplayerSize)};
_.M.clamp=function(S){return _.F7(192,S,720)};
_.M.registerViewTransitionTasks=function(){var S=this,p=_.tW().resolve(_.AW(_.nO));if(p){var U={beforeTransition:function(){S.hostElement&&(S.hostElement.style.viewTransitionName="miniplayer-page-transition")},
afterTransition:function(){S.hostElement&&(S.hostElement.style.viewTransitionName="")}};
qy(p,"slide",U);qy(p,"zoom",U)}};
_.$u.Object.defineProperties(BZ.prototype,{showInfoBar:{configurable:!0,enumerable:!0,get:function(){return this.watchWhile?!_.y("kevlar_watch_while_modern"):!0}},
showOverlayPremiumBadges:{configurable:!0,enumerable:!0,get:function(){return!this.showInfoBar&&!!this.premiumBadges.length}},
miniplayerSubtitle:{configurable:!0,enumerable:!0,get:function(){if(this.continueWatching)return{simpleText:_.Oh("CONTINUE_WATCHING",void 0,"Continue watching")};var S;if((S=this.externalPlaylistData)==null?0:S.contents)return this.externalPlaylistData.titleText;var p;return(p=this.data)==null?void 0:p.miniplayerSubtitle}},
miniplayerTitle:{configurable:!0,enumerable:!0,get:function(){var S;if((S=this.externalPlaylistData)==null?0:S.contents){var p;return(p=_.c4w(this.externalPlaylistData))==null?void 0:p.title}var U;return(U=this.data)==null?void 0:U.miniplayerTitle}},
playlistIndexMessage:{configurable:!0,enumerable:!0,get:function(){var S,p,U,Y;return((S=this.externalPlaylistData)==null?void 0:S.currentIndex)!==void 0&&((p=this.externalPlaylistData)==null?0:p.totalVideos)&&!((U=this.data)==null?0:(Y=U.playlistData)==null?0:Y.isCourse)?this.externalPlaylistData.currentIndex+1+" / "+this.externalPlaylistData.totalVideos:null}},
showErrorScreen:{configurable:!0,enumerable:!0,get:function(){return!!this.playabilityStatus&&!_.ADu(this.playabilityStatus)}},
watchWhileHidden:{configurable:!0,enumerable:!0,get:function(){return this.watchWhile&&_.y("kevlar_watch_while_counterfactual")}}});
BZ.prototype.onIsDisabledChanged=BZ.prototype.onIsDisabledChanged;BZ.prototype.readyToResumeVeChanged=BZ.prototype.readyToResumeVeChanged;BZ.prototype.premiumBrandingChanged=BZ.prototype.premiumBrandingChanged;BZ.prototype.onPlayerVeChange=BZ.prototype.onPlayerVeChange;BZ.prototype.hasPlaylistDataChanged=BZ.prototype.hasPlaylistDataChanged;_.x([_.F(_.Cj.YtPlayerListenerBehavior),_.E("design:type",_.xt)],BZ.prototype,"ytPlayerListenerBehavior",void 0);
_.x([_.F(_.Aj.YtActionHandlerBehavior),_.E("design:type",Object)],BZ.prototype,"ytActionHandlerBehavior",void 0);_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],BZ.prototype,"ytRendererBehavior",void 0);_.x([_.F(_.eL.YtComponentBehavior),_.E("design:type",Object)],BZ.prototype,"ytComponentBehavior",void 0);_.x([_.F(_.Xh),_.E("design:type",Object)],BZ.prototype,"ytdReduxBehavior",void 0);_.x([_.O2("#draggable"),_.E("design:type",HTMLDivElement)],BZ.prototype,"draggableContainer",void 0);
_.x([_.O2("#resize-container"),_.E("design:type",HTMLDivElement)],BZ.prototype,"JSC$17785_resizeContainer",void 0);_.x([_.O2("#video-container"),_.E("design:type",HTMLDivElement)],BZ.prototype,"videoContainer",void 0);_.x([_.O2("#player-container"),_.E("design:type",HTMLDivElement)],BZ.prototype,"playerContainer",void 0);_.x([_.O2("#playlist"),_.E("design:type",HTMLDivElement)],BZ.prototype,"JSC$17785_playlistPanel",void 0);_.x([_.g(),_.E("design:type",Object)],BZ.prototype,"data",void 0);
_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],BZ.prototype,"active",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],BZ.prototype,"hasNoData",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],BZ.prototype,"enabled",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],BZ.prototype,"expanded",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],BZ.prototype,"readyToResume",void 0);
_.x([_.g(),_.E("design:type",Object)],BZ.prototype,"isDisabled",void 0);_.x([_.g(),_.E("design:type",Object)],BZ.prototype,"externalPlaylistData",void 0);_.x([_.g(),_.E("design:type",Array)],BZ.prototype,"premiumBadges",void 0);_.x([_.g(),_.E("design:type",Object)],BZ.prototype,"toastData",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],BZ.prototype,"watchWhile",void 0);_.x([_.g(),_.E("design:type",Boolean)],BZ.prototype,"premiumBranding",void 0);
_.x([_.g(),_.E("design:type",Object)],BZ.prototype,"playerState",void 0);_.x([_.g(),_.E("design:type",Boolean)],BZ.prototype,"continueWatching",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",String)],BZ.prototype,"verticalAttachment",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",String)],BZ.prototype,"horizontalAttachment",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],BZ.prototype,"isAnimatingFade",void 0);
_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],BZ.prototype,"isAnimatingSnap",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],BZ.prototype,"isAnimatingExpand",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],BZ.prototype,"isDragging",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],BZ.prototype,"playerHidden",void 0);
_.x([_.g({computed:"computePlaylistData(data.playlistData, externalPlaylistData)"}),_.E("design:type",Object)],BZ.prototype,"playlistData",void 0);_.x([_.g({reflectToAttribute:!0,computed:"computeHasPlaylistData(playlistData)"}),_.E("design:type",Object)],BZ.prototype,"hasPlaylistData",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],BZ.prototype,"closed",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],BZ.prototype,"expandedClosed",void 0);
_.x([_.g({selector:_.k1e}),_.E("design:type",Boolean)],BZ.prototype,"isSingleOptionSurveyActive",void 0);_.x([_.g({reflectToAttribute:!0,selector:_.PJ}),_.E("design:type",Boolean)],BZ.prototype,"isWatchPage",void 0);_.x([_.g({reflectToAttribute:!0}),_.e("watchWhile"),_.E("design:type",Object),_.E("design:paramtypes",[])],BZ.prototype,"showInfoBar",null);_.x([_.e("premiumBadges","showInfoBar"),_.E("design:type",Object),_.E("design:paramtypes",[])],BZ.prototype,"showOverlayPremiumBadges",null);
_.x([_.g(),_.E("design:type",Object)],BZ.prototype,"watchResponse",void 0);_.x([_.g(),_.E("design:type",Object)],BZ.prototype,"miniplayerRenderer",void 0);_.x([_.g(),_.E("design:type",Object)],BZ.prototype,"playabilityStatus",void 0);_.x([_.g(),_.E("design:type",Object)],BZ.prototype,"playerVe",void 0);_.x([_.g(),_.E("design:type",Object)],BZ.prototype,"expandVe",void 0);_.x([_.g(),_.E("design:type",Object)],BZ.prototype,"closeVe",void 0);
_.x([_.g(),_.E("design:type",Object)],BZ.prototype,"readyToResumeCloseVe",void 0);_.x([_.g(),_.E("design:type",_.R9)],BZ.prototype,"readyToResumeVe",void 0);_.x([_.g(),_.E("design:type",_.R9)],BZ.prototype,"resizeVe",void 0);_.x([_.g(),_.E("design:type",_.R9)],BZ.prototype,"repositionVe",void 0);_.x([_.T4("hasPlaylistData"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],BZ.prototype,"hasPlaylistDataChanged",null);
_.x([_.T4("playerVe"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],BZ.prototype,"onPlayerVeChange",null);_.x([_.T4("premiumBranding"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],BZ.prototype,"premiumBrandingChanged",null);_.x([_.T4("readyToResumeVe"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],BZ.prototype,"readyToResumeVeChanged",null);
_.x([_.T4("isDisabled"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],BZ.prototype,"onIsDisabledChanged",null);_.x([_.e("continueWatching","data.miniplayerSubtitle","externalPlaylistData"),_.E("design:type",Object),_.E("design:paramtypes",[])],BZ.prototype,"miniplayerSubtitle",null);_.x([_.e("data.miniplayerTitle","externalPlaylistData"),_.E("design:type",Object),_.E("design:paramtypes",[])],BZ.prototype,"miniplayerTitle",null);
_.x([_.e("externalPlaylistData","continueWatching"),_.E("design:type",Object),_.E("design:paramtypes",[])],BZ.prototype,"playlistIndexMessage",null);_.x([_.g({reflectToAttribute:!0}),_.e("playabilityStatus"),_.E("design:type",Object),_.E("design:paramtypes",[])],BZ.prototype,"showErrorScreen",null);_.x([_.g({reflectToAttribute:!0}),_.e("watchWhile"),_.E("design:type",Object),_.E("design:paramtypes",[])],BZ.prototype,"watchWhileHidden",null);
_.y("ytd_miniplayer_to_wiz")||_.C(BZ,"ytd-miniplayer",function(){if(mHs===void 0){var S=document.createElement("template");_.h(S,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-miniplayer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.main_desktop.player.ytd_miniplayer.ytd.miniplayer.view.transition.css.js,video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="blocking-container" hidden="[[!isDisabled]]" on-click="onDisabledTap" class="style-scope ytd-miniplayer">\n  <yt-icon-button aria-label$="[[computeDisabledStateCloseButtonLabel()]]" on-click="onDisabledCloseMiniplayer" class="style-scope ytd-miniplayer">\n    <yt-icon id="close-icon" icon="yt-icons:close" class="style-scope ytd-miniplayer"></yt-icon>\n  </yt-icon-button>\n</div>\n<div class="miniplayer style-scope ytd-miniplayer" role="dialog">\n  <div id="card" class="style-scope ytd-miniplayer">\n    <div id="draggable" class="style-scope ytd-miniplayer">\n      <div id="video-container" class="style-scope ytd-miniplayer">\n        <div id="player-container" class="style-scope ytd-miniplayer"></div>\n        <yt-playability-error-supported-renderers id="error-screen" compact="" data="[[playabilityStatus.errorScreen]]" hidden$="[[!showErrorScreen]]" reason="[[playabilityStatus.reason]]" status="[[playabilityStatus.status]]" class="style-scope ytd-miniplayer">\n        </yt-playability-error-supported-renderers>\n        <ytd-badge-supported-renderer class="premium-badges overlay style-scope ytd-miniplayer" badges="[[premiumBadges]]" hidden="[[!showOverlayPremiumBadges]]" overlay-premium="">\n        </ytd-badge-supported-renderer>\n        <yt-formatted-string id="card-owner-name" class="owner-name style-scope ytd-miniplayer" hidden="[[!showOverlayPremiumBadges]]" no-endpoints="" text="[[miniplayerSubtitle]]">\n        </yt-formatted-string>\n      </div>\n      <div id="info-bar" on-click="onPlaylistExpandTap" hidden="[[!showInfoBar]]" class="style-scope ytd-miniplayer">\n        <div class="metadata style-scope ytd-miniplayer">\n          <h1 aria-label$="[[getSimpleString(data.miniplayerTitle)]]" class="title meta style-scope ytd-miniplayer" hidden="[[!active]]" on-click="onMetadataTap" role="heading">\n            <yt-formatted-string class="miniplayer-title style-scope ytd-miniplayer" ellipsis-truncate="" text="[[miniplayerTitle]]">\n            </yt-formatted-string>\n          </h1>\n          <div class="channel style-scope ytd-miniplayer">\n            <ytd-badge-supported-renderer class="premium-badges style-scope ytd-miniplayer" badges="[[premiumBadges]]" hidden="[[!premiumBadges.length]]">\n            </ytd-badge-supported-renderer>\n            <yt-formatted-string id="owner-name" no-endpoints="" text="[[miniplayerSubtitle]]" class="style-scope ytd-miniplayer">\n            </yt-formatted-string>\n            <div class="index-message style-scope ytd-miniplayer" hidden="[[computePlaylistIndexHidden(playlistIndexMessage, readyToResume)]]">\n              <span class="text-divider style-scope ytd-miniplayer">\u2022</span>\n              <span class="style-scope ytd-miniplayer">[[playlistIndexMessage]]</span>\n            </div>\n          </div>\n        </div>\n        <div class="expander style-scope ytd-miniplayer" hidden="[[computeExpandButtonHidden(hasPlaylistData, active, isDisabled)]]">\n          <yt-icon-button label="[[computeExpandButtonLabel(expanded)]]" class="style-scope ytd-miniplayer">\n            <yt-icon icon="[[getExpandIcon(expanded)]]" class="style-scope ytd-miniplayer"></yt-icon>\n          </yt-icon-button>\n        </div>\n      </div>\n      <div class="dragging-cover style-scope ytd-miniplayer" hidden="[[!isDragging]]"></div>\n    </div>\n    <ytd-playlist-panel-renderer id="playlist" data="[[playlistData]]" hidden="[[computePlaylistPanelHidden(expanded, isAnimatingExpand)]]" hide-header-text="" within-miniplayer="" class="style-scope ytd-miniplayer">\n    </ytd-playlist-panel-renderer>\n    <div class="toast-container style-scope ytd-miniplayer">\n      <ytd-miniplayer-toast toast-data="[[toastData]]" class="style-scope ytd-miniplayer"></ytd-miniplayer-toast>\n    </div>\n  </div>\n  <div id="resize-container" aria-hidden="true" class="style-scope ytd-miniplayer">\n    \n    <div class="resizer style-scope ytd-miniplayer" alignment="north"><div class="corner style-scope ytd-miniplayer"></div></div>\n    <div class="resizer style-scope ytd-miniplayer" alignment="east"><div class="corner style-scope ytd-miniplayer"></div></div>\n    <div class="resizer style-scope ytd-miniplayer" alignment="south"><div class="corner style-scope ytd-miniplayer"></div></div>\n    <div class="resizer style-scope ytd-miniplayer" alignment="west"><div class="corner style-scope ytd-miniplayer"></div></div>\n  </div>\n</div>\n');
S.content.insertBefore(E2X().content.cloneNode(!0),S.content.firstChild);S.content.insertBefore(_.t().content.cloneNode(!0),S.content.firstChild);mHs=S}S=mHs;return S},{mode:2});var qzn;var qi=function(){var S=_.w.apply(this,arguments)||this;S.useListItemStyles=_.y("web_list_item_style_for_menu_items");S.systemIcons=_.y("kevlar_system_icons");return S};
_.r(qi,_.w);_.M=qi.prototype;_.M.ready=function(){this.hostElement.addEventListener("tap",_.d9(this,this.onEndpointTapExtra))};
_.M.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menuitem")};
_.M.onFocus=function(){var S;(S=_.tB(this.hostElement).querySelector("tp-yt-paper-item"))==null||S.focus()};
_.M.onEndpointTapExtra=function(S){_.cv(this.hostElement,"iron-activate");var p=this.data.navigationEndpoint;p&&_.b(p,_.m1w)&&(S.stopPropagation(),_.Lp(this.hostElement,[p],this.hostElement))};
_.M.computeIcon=function(S){return S&&S.iconType?_.If(S.iconType):""};
_.M.computeHasSeparator=function(){return!(!this.data||!this.data.hasSeparator)};
_.M.computeIconHidden=function(){return this.useIcons?!1:!this.icon};
_.M.forceUpdateStylesOnLegacyBrowsers=function(){_.y("kevlar_legacy_browsers")&&_.Ms(this.hostElement)};
qi.prototype.forceUpdateStylesOnLegacyBrowsers=qi.prototype.forceUpdateStylesOnLegacyBrowsers;qi.prototype.onFocus=qi.prototype.onFocus;_.x([_.F(_.xK),_.E("design:type",Object)],qi.prototype,"ytdOpenPopupBehavior",void 0);_.x([_.F(_.y$H.YtConditionalRendererBehavior),_.E("design:type",Object)],qi.prototype,"ytConditionalRendererBehavior",void 0);_.x([_.F(_.WV.YtEndpointBehavior),_.E("design:type",Object)],qi.prototype,"ytEndpointBehavior",void 0);
_.x([_.g(),_.E("design:type",Object)],qi.prototype,"data",void 0);_.x([_.g({computed:"computeIcon(data.icon)",value:""}),_.E("design:type",String)],qi.prototype,"icon",void 0);_.x([_.g({reflectToAttribute:!0,value:!1}),_.E("design:type",Boolean)],qi.prototype,"useIcons",void 0);_.x([_.g({computed:"computeHasSeparator(data.hasSeparator)",reflectToAttribute:!0}),_.E("design:type",Boolean)],qi.prototype,"hasSeparator",void 0);
_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],qi.prototype,"useListItemStyles",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],qi.prototype,"systemIcons",void 0);_.x([_.Vd("focus"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],qi.prototype,"onFocus",null);_.x([_.T4("useIcons","hasSeparator"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],qi.prototype,"forceUpdateStylesOnLegacyBrowsers",null);
_.C(qi,"ytd-menu-navigation-item-renderer",function(){if(qzn===void 0){var S=document.createElement("template");_.h(S,'\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');
S.content.insertBefore(_.t().content.cloneNode(!0),S.content.firstChild);qzn=S}S=qzn;return S},{mode:1});var AjA;var tLJ=_.Ec(_.Oh("DOWNLOAD",{},"Download")),cjJ=_.Ec(_.Oh("DELETE_FROM_DOWNLOADS",{},"Delete from downloads")),SjX=_.Ec(_.Oh("RETRY",{},"Retry")),pVA=_.Ec(_.Oh("PAUSE_DOWNLOADING",{},"Pause downloading")),UoY=_.Ec(_.Oh("RESUME_DOWNLOAD",{},"Resume download")),Ao=function(){var S=_.w.apply(this,arguments)||this;S.primaryText=tLJ;S.primaryIconType="OFFLINE_DOWNLOAD";S.hasSecondaryContent=!1;S.hasSeparator=!1;S.transferState="TRANSFER_STATE_UNKNOWN";S.isVideoDeletedByUser=!1;S.isHidden=!1;S.offlineabilityState=
"ADD_TO_OFFLINE_BUTTON_STATE_ENABLED";return S};
_.r(Ao,_.w);_.M=Ao.prototype;_.M.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menuitem")};
_.M.onFocus=function(){this.primaryEntry.focus()};
_.M.onPrimaryClicked=function(){this.sendOfflineAction(this.primaryAction)};
_.M.onSecondaryClicked=function(){this.sendOfflineAction(this.secondaryAction)};
_.M.getRemoveAction=function(){return"ACTION_REMOVE"};
_.M.sendOfflineAction=function(S){var p=this.data.serviceEndpoint;if(p){var U=_.b(p,_.MB);U&&S&&(U.action=S);this.ytComponentBehavior.resolveCommand(p)}};
_.M.onTransferStateChange=function(){this.hasSecondaryContent=!1;this.secondaryAction=this.primaryAction=void 0;if(this.isVideoDeletedByUser)this.primaryText=tLJ,this.primaryIconType="OFFLINE_DOWNLOAD",this.primaryAction="ACTION_ADD";else switch(this.transferState){case "TRANSFER_STATE_UNKNOWN":this.primaryText=tLJ;this.primaryIconType="OFFLINE_DOWNLOAD";this.primaryAction="ACTION_ADD";break;case "TRANSFER_STATE_FAILED":case "TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH":this.primaryText=SjX;
this.primaryIconType="OFFLINE_DOWNLOAD";this.primaryAction="ACTION_RETRY";this.secondaryText=cjJ;this.secondaryIconType="DELETE";this.secondaryAction=this.getRemoveAction();this.hasSecondaryContent=!0;break;case "TRANSFER_STATE_PAUSED_BY_USER":this.primaryText=UoY;this.primaryIconType="OFFLINE_DOWNLOAD";this.primaryAction="ACTION_RESUME";this.secondaryText=cjJ;this.secondaryIconType="DELETE";this.secondaryAction=this.getRemoveAction();this.hasSecondaryContent=!0;break;case "TRANSFER_STATE_TRANSFERRING":this.primaryText=
pVA;this.primaryIconType="OFFLINE_PAUSE";this.primaryAction="ACTION_PAUSE";this.secondaryText=cjJ;this.secondaryIconType="DELETE";this.secondaryAction=this.getRemoveAction();this.hasSecondaryContent=!0;break;case "TRANSFER_STATE_COMPLETE":case "TRANSFER_STATE_TRANSFER_IN_QUEUE":this.primaryText=cjJ;this.primaryIconType="DELETE";this.primaryAction=this.getRemoveAction();break;default:this.primaryText=tLJ,this.primaryIconType="OFFLINE_DOWNLOAD",this.primaryAction="ACTION_ADD"}};
_.M.showHideButton=function(){this.isHidden=this.offlineabilityState!=="ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"};
_.M.isSecondaryEntryHidden=function(S,p){return S?!0:!p};
_.M.computeHasSeparator=function(){var S;return!((S=this.data)==null||!S.hasSeparator)};
Ao.prototype.showHideButton=Ao.prototype.showHideButton;Ao.prototype.onTransferStateChange=Ao.prototype.onTransferStateChange;Ao.prototype.onFocus=Ao.prototype.onFocus;_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],Ao.prototype,"ytRendererBehavior",void 0);_.x([_.F(_.Xh),_.E("design:type",Object)],Ao.prototype,"ytdReduxBehavior",void 0);_.x([_.F(_.eL.YtComponentBehavior),_.E("design:type",Object)],Ao.prototype,"ytComponentBehavior",void 0);
_.x([_.g(),_.E("design:type",Object)],Ao.prototype,"data",void 0);_.x([_.g(),_.E("design:type",Object)],Ao.prototype,"primaryText",void 0);_.x([_.g(),_.E("design:type",String)],Ao.prototype,"primaryIconType",void 0);_.x([_.g(),_.E("design:type",String)],Ao.prototype,"primaryAction",void 0);_.x([_.g(),_.E("design:type",Object)],Ao.prototype,"secondaryText",void 0);_.x([_.g(),_.E("design:type",String)],Ao.prototype,"secondaryIconType",void 0);
_.x([_.g(),_.E("design:type",String)],Ao.prototype,"secondaryAction",void 0);_.x([_.g(),_.E("design:type",Object)],Ao.prototype,"hasSecondaryContent",void 0);_.x([_.g({computed:"computeHasSeparator(data.hasSeparator)",reflectToAttribute:!0}),_.E("design:type",Object)],Ao.prototype,"hasSeparator",void 0);_.x([_.g({selector:_.Z4,selectorArgs:["data.serviceEndpoint.offlineVideoEndpoint.videoId"]}),_.E("design:type",String)],Ao.prototype,"transferState",void 0);
_.x([_.g({selector:_.e2e,selectorArgs:["data.serviceEndpoint.offlineVideoEndpoint.videoId"]}),_.E("design:type",Object)],Ao.prototype,"isVideoDeletedByUser",void 0);_.x([_.g(),_.E("design:type",Object)],Ao.prototype,"isHidden",void 0);_.x([_.g({selector:_.R2X,selectorArgs:["data.serviceEndpoint.offlineVideoEndpoint.videoId"]}),_.E("design:type",Object)],Ao.prototype,"offlineabilityState",void 0);_.x([_.O2("#primary-entry"),_.E("design:type",Object)],Ao.prototype,"primaryEntry",void 0);
_.x([_.Vd("focus"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],Ao.prototype,"onFocus",null);_.x([_.z4("transferState","isVideoDeletedByUser"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],Ao.prototype,"onTransferStateChange",null);_.x([_.z4("offlineabilityState"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],Ao.prototype,"showHideButton",null);
_.C(Ao,"ytd-menu-service-item-download-renderer",function(){if(AjA===void 0){var S=document.createElement("template");_.h(S,'\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');
S.content.insertBefore(_.t().content.cloneNode(!0),S.content.firstChild);AjA=S}S=AjA;return S},{mode:1});var YjP;var to=function(){var S=_.w.apply(this,arguments)||this;S.useIcons=!1;S.systemIcons=_.y("kevlar_system_icons");S.useListItemStyles=_.y("web_list_item_style_for_menu_items");return S};
_.r(to,_.w);_.M=to.prototype;_.M.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menuitem")};
_.M.onFocus=function(){var S;(S=_.tB(this.hostElement).querySelector("tp-yt-paper-item"))==null||S.focus()};
_.M.onTap=function(){_.pp(this.hostElement,"yt-menu-service-item-selected-action",[this.data]);var S=this.data.serviceEndpoint,p=this.data.command;if(S){var U,Y=(U=this.data)==null?void 0:U.trackingParams;U=!!_.b(S,_.xCt);Y&&U&&_.vJ().dispatch(_.S4({type:"SET_PARENT_CLICK_TRACKING_PARAMS",payload:{parentClickTrackingParams:Y}}));this.ytComponentBehavior.resolveCommand(S)||_.tW().resolve(_.cQ).resolveCommand(S,{form:{element:this.hostElement}})}p&&(this.ytComponentBehavior.resolveCommand(p)||_.Lp(this.hostElement,
[p],this.hostElement))};
_.M.computeIcon=function(S){return S&&S.iconType?_.If(S.iconType):""};
_.M.computeIconHidden=function(){return this.useIcons?!1:!this.icon};
_.M.computeHasSeparator=function(){var S;return!((S=this.data)==null||!S.hasSeparator)};
_.M.forceUpdateStylesOnLegacyBrowsers=function(){_.y("kevlar_legacy_browsers")&&_.Ms(this.hostElement)};
_.M.computeIsSelected=function(){var S;return!((S=this.data)==null||!S.isSelected)};
to.prototype.forceUpdateStylesOnLegacyBrowsers=to.prototype.forceUpdateStylesOnLegacyBrowsers;to.prototype.onTap=to.prototype.onTap;to.prototype.onFocus=to.prototype.onFocus;_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],to.prototype,"ytRendererBehavior",void 0);_.x([_.F(_.xK),_.E("design:type",Object)],to.prototype,"ytdOpenPopupBehavior",void 0);_.x([_.F(_.eL.YtComponentBehavior),_.E("design:type",Object)],to.prototype,"ytComponentBehavior",void 0);
_.x([_.F(_.y$H.YtConditionalRendererBehavior),_.E("design:type",Object)],to.prototype,"ytConditionalRendererBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],to.prototype,"data",void 0);_.x([_.g({computed:"computeIcon(data.icon)",value:""}),_.E("design:type",String)],to.prototype,"icon",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],to.prototype,"useIcons",void 0);
_.x([_.g({computed:"computeHasSeparator(data.hasSeparator)",reflectToAttribute:!0}),_.E("design:type",Boolean)],to.prototype,"hasSeparator",void 0);_.x([_.g({computed:"computeIsSelected(data.isSelected)",reflectToAttribute:!0}),_.E("design:type",Boolean)],to.prototype,"isSelected",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],to.prototype,"systemIcons",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],to.prototype,"useListItemStyles",void 0);
_.x([_.Vd("focus"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],to.prototype,"onFocus",null);_.x([_.Vd("tap"),_.E("design:type",Function),_.E("design:paramtypes",[Event]),_.E("design:returntype")],to.prototype,"onTap",null);_.x([_.T4("useIcons","hasSeparator"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],to.prototype,"forceUpdateStylesOnLegacyBrowsers",null);
_.C(to,"ytd-menu-service-item-renderer",function(){if(YjP===void 0){var S=document.createElement("template");_.h(S,'\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');
S.content.insertBefore(_.t().content.cloneNode(!0),S.content.firstChild);YjP=S}S=YjP;return S},{mode:2});var Lgt;var cZ=function(){return _.w.apply(this,arguments)||this};
_.r(cZ,_.w);_.M=cZ.prototype;_.M.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.M.onDataChanged=function(){var S=this;_.oH(this,function(){S.postbox.openDialog();S.focus();_.cv(S.hostElement,"yt-refit")})};
_.M.focus=function(){this.postbox.focus()};
_.M.closePopup=function(){_.St(this.hostElement,"yt-close-popup-action")};
_.M.onYtCommentboxDismiss=function(){this.closePopup()};
cZ.prototype.onYtCommentboxDismiss=cZ.prototype.onYtCommentboxDismiss;cZ.prototype.onDataChanged=cZ.prototype.onDataChanged;_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],cZ.prototype,"ytRendererBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],cZ.prototype,"data",void 0);_.x([_.g({value:function(){return _.Oh("SBOX_INAPPROPRIATE_CANCEL")}}),
_.E("design:type",String)],cZ.prototype,"closeButtonAriaLabel",void 0);_.x([_.O2("#postbox"),_.E("design:type",Object)],cZ.prototype,"postbox",void 0);_.x([_.T4("data"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],cZ.prototype,"onDataChanged",null);_.x([_.Vd("yt-commentbox-dismiss"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],cZ.prototype,"onYtCommentboxDismiss",null);
cZ=_.x([_.f({disableElementRegistration:!0,is:"ytd-backstage-post-dialog-popup-renderer"})],cZ);
_.C(cZ,"ytd-backstage-post-dialog-popup-renderer",function(){if(Lgt!==void 0)return Lgt;var S=document.createElement("template");_.h(S,'\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');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);return Lgt=S},{mode:1});var MNY;var Sh=function(){return _.w.apply(this,arguments)||this};
_.r(Sh,_.w);_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],Sh.prototype,"ytRendererBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],Sh.prototype,"data",void 0);Sh=_.x([_.f({disableElementRegistration:!0,is:"ytd-sender-id-section-renderer"})],Sh);
_.C(Sh,"ytd-sender-id-section-renderer",function(){if(MNY!==void 0)return MNY;var S=document.createElement("template");_.h(S,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sender-id-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="text" class="style-scope ytd-sender-id-section-renderer">[[getSimpleString(data.text)]]</div>\n');S.content.insertBefore(_.t().content.cloneNode(!0),S.content.firstChild);
return MNY=S},{mode:1});var ImY;var doq;var VNP;var pe=function(){return _.w.apply(this,arguments)||this};
_.r(pe,_.w);pe.prototype.closePopup=function(){_.St(this.hostElement,"yt-close-popup-action")};
_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],pe.prototype,"ytRendererBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],pe.prototype,"data",void 0);pe=_.x([_.FB({is:"yt-community-post-section-renderer",disableElementRegistration:!0})],pe);
_.C(pe,"yt-community-post-section-renderer",function(){if(VNP===void 0){var S=document.createElement("template");_.h(S,'\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');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);var p=S.content,U=p.insertBefore;doq===void 0&&(doq=document.createElement("template"));var Y=doq;U.call(p,Y.content.cloneNode(!0),S.content.firstChild);VNP=S}S=VNP;return S},{mode:2});var TW5;var Wg5;var OYL;var kbE;var HYJ;var Do5;var UZ=function(){return _.w.apply(this,arguments)||this};
_.r(UZ,_.w);_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],UZ.prototype,"ytRendererBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],UZ.prototype,"data",void 0);UZ=_.x([_.FB({is:"yt-share-start-time-with-context-renderer",disableElementRegistration:!0})],UZ);
_.C(UZ,"yt-share-start-time-with-context-renderer",function(){if(Do5===void 0){var S=document.createElement("template");_.h(S,'\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>');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);var p=S.content,U=p.insertBefore;HYJ===void 0&&(HYJ=document.createElement("template"));var Y=HYJ;U.call(p,Y.content.cloneNode(!0),S.content.firstChild);Do5=S}S=Do5;return S},{mode:2});var Y$=function(){return _.w.apply(this,arguments)||this};
_.r(Y$,_.w);Y$.prototype.configureRendererStamper=function(){return{"data.subtitle":{id:"subtitle",mapping:{shareStartTimeWithContextRenderer:"yt-share-start-time-with-context-renderer"}}}};
_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],Y$.prototype,"ytRendererBehavior",void 0);_.x([_.F(_.qH.YtRendererstamperBehavior),_.E("design:type",Object)],Y$.prototype,"ytRendererstamperBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],Y$.prototype,"data",void 0);Y$=_.x([_.FB({is:"yt-share-panel-title-v15-renderer",disableElementRegistration:!0})],Y$);
_.C(Y$,"yt-share-panel-title-v15-renderer",function(){if(kbE===void 0){var S=document.createElement("template");_.h(S,'\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');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);var p=S.content,U=p.insertBefore;OYL===void 0&&(OYL=document.createElement("template"));var Y=OYL;U.call(p,Y.content.cloneNode(!0),S.content.firstChild);kbE=S}S=kbE;return S},{mode:2});var Le=function(){return _.w.apply(this,arguments)||this};
_.r(Le,_.w);Le.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"}}}};
_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],Le.prototype,"ytRendererBehavior",void 0);_.x([_.F(_.qH.YtRendererstamperBehavior),_.E("design:type",Object)],Le.prototype,"ytRendererstamperBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],Le.prototype,"data",void 0);Le=_.x([_.FB({is:"yt-share-panel-header-renderer",disableElementRegistration:!0})],Le);
_.C(Le,"yt-share-panel-header-renderer",function(){if(Wg5===void 0){var S=document.createElement("template");_.h(S,'\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');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);var p=S.content,U=p.insertBefore;TW5===void 0&&(TW5=document.createElement("template"));var Y=TW5;U.call(p,Y.content.cloneNode(!0),S.content.firstChild);Wg5=S}S=Wg5;return S},{mode:2});var zZL;var Qnn;var M$=function(){var S=_.w.apply(this,arguments)||this;S.actionMap={"yt-open-popup-action":"onOpen"};return S};
_.r(M$,_.w);_.M=M$.prototype;_.M.attached=function(){this.onOpen()};
_.M.updateTimeSecs=function(S){this.currentTimeSecs=S};
_.M.computeTimeString=function(S){S=S.toString();var p=Math.floor(Number(S)/3600),U=Math.floor(Number(S)%3600%60);return(p>0?p+":":"")+_.NO(Math.floor(Number(S)%3600/60),p>0?2:1)+":"+_.NO(U,2)};
_.M.computeTimeStringA11y=function(S){S=_.uTe({seconds:S});var p=S.hours===void 0?0:S.hours,U=S.minutes===void 0?0:S.minutes,Y=S.seconds===void 0?0:S.seconds;S=[];if(p>0){var L=z85().format({hours:p});if(!"be bg es et hu it ka lv pl pt-PT sl sq".split(" ").includes(_.uM)||p>9999)L=L.replace(p.toString(),_.wjd(p)),_.uM==="km"&&(L=L.replace(".",","));S.push(L)}U>0&&S.push(z85().format({minutes:U}));Y>0&&S.push(z85().format({seconds:Y}));p="be gu ja kk km ko mn ru tr uz zh-HK zh-TW".split(" ");U=_.uM==
"am"?"{0}\u1363 ":_.uM=="fa"?"{0}\u060c\u200f ":_.uM=="my"?"{0} - ":_.uM=="ne"?"{0},":_.uM=="th"?"{0} ":_.uM=="ur"?"{0}\u060c ":_.uM=="ar"||_.uM=="ar-XB"?"{0} \u0648":_.uM=="ja"||_.uM=="zh-CN"||_.uM=="zh-HK"||_.uM=="zh-TW"?"{0}\u3001":"{0}, ";Y=_.uM=="am"?"\u1363 ":_.uM=="fa"?"\u060c\u200f ":_.uM=="my"?" - ":_.uM=="th"?" ":_.uM=="ur"?"\u060c ":_.uM=="ar"||_.uM=="ar-XB"?" \u0648":_.uM=="ja"||_.uM=="zh-CN"||_.uM=="zh-HK"||_.uM=="zh-TW"?"\u3001":", ";L=_.uM=="am"?" \u12a5\u1293 {0}":_.uM=="as"?" \u0986\u09f0\u09c1 {0}":
_.uM=="az"?" v\u0259 {0}":_.uM=="bn"?" \u098f\u09ac\u0982 {0}":_.uM=="cs"?" a\u00a0{0}":_.uM=="de"?" und {0}":_.uM=="el"?" \u03ba\u03b1\u03b9 {0}":_.uM=="eu"?" eta {0}":_.uM=="fa"?"\u060c \u0648 {0}":_.uM=="fil"?", at {0}":_.uM=="gu"?" \u0a85\u0aa8\u0ac7 {0}":_.uM=="hi"?", \u0914\u0930 {0}":_.uM=="hu"?" \u00e9s {0}":_.uM=="hy"?" \u0587 {0}":_.uM=="id"?", dan {0}":_.uM=="iw"?" \u05d5-{0}":_.uM=="ja"?"\u3001{0}":_.uM=="ka"?" \u10d3\u10d0 {0}":_.uM=="km"?" \u1793\u17b7\u1784 {0}":_.uM=="kn"?", \u0cae\u0ca4\u0ccd\u0ca4\u0cc1 {0}":
_.uM=="ko"?" \ubc0f {0}":_.uM=="ky"?" \u0436\u0430\u043d\u0430 {0}":_.uM=="lt"?" ir {0}":_.uM=="lv"?" un {0}":_.uM=="ml"?", {0} \u0d0e\u0d28\u0d4d\u0d28\u0d3f\u0d35":_.uM=="mr"?" \u0906\u0923\u093f {0}":_.uM=="ms"?" dan {0}":_.uM=="my"?"\u1014\u103e\u1004\u1037\u103a {0}":_.uM=="ne"?" \u0930 {0}":_.uM=="or"?", \u0b13 {0}":_.uM=="pa"?" \u0a05\u0a24\u0a47 {0}":_.uM=="ro"?" \u0219i {0}":_.uM=="si"?", \u0dc3\u0dc4 {0}":_.uM=="sk"?" a {0}":_.uM=="sl"?" in {0}":_.uM=="sq"?" dhe {0}":_.uM=="sv"?" och {0}":
_.uM=="sw"?" na {0}":_.uM=="ta"?" \u0bae\u0bb1\u0bcd\u0bb1\u0bc1\u0bae\u0bcd {0}":_.uM=="te"?" \u0c2e\u0c30\u0c3f\u0c2f\u0c41 {0}":_.uM=="th"?" \u0e41\u0e25\u0e30{0}":_.uM=="tr"?" ve {0}":_.uM=="ur"?"\u060c \u0627\u0648\u0631 {0}":_.uM=="uz"?" va {0}":_.uM=="vi"?" v\u00e0 {0}":_.uM=="zh-HK"?"\u53ca{0}":_.uM=="zu"?", ne-{0}":_.uM=="af"||_.uM=="nl"?" en {0}":_.uM=="ar"||_.uM=="ar-XB"?" \u0648{0}":_.uM=="be"||_.uM=="uk"?" \u0456 {0}":_.uM=="en-GB"||_.uM=="en-IN"?" and {0}":_.uM=="en"||_.uM=="en-XA"?
", and {0}":_.uM=="et"||_.uM=="fi"?" ja {0}":_.uM=="fr"||_.uM=="fr-CA"?" et {0}":_.uM=="zh-CN"||_.uM=="zh-TW"?"\u548c{0}":_.uM=="da"||_.uM=="is"||_.uM=="no"?" og {0}":_.uM=="es"||_.uM=="es-419"||_.uM=="es-US"?" y {0}":_.uM=="kk"||_.uM=="lo"||_.uM=="mn"?", {0}":_.uM=="bg"||_.uM=="mk"||_.uM=="ru"||_.uM=="sr"?" \u0438 {0}":_.uM=="gl"||_.uM=="it"||_.uM=="pt-BR"||_.uM=="pt-PT"?" e {0}":" i {0}";var I=_.uM=="am"?"{0} \u12a5\u1293 {1}":_.uM=="as"?"{0} \u0986\u09f0\u09c1 {1}":_.uM=="az"?"{0} v\u0259 {1}":
_.uM=="bn"?"{0} \u098f\u09ac\u0982 {1}":_.uM=="de"?"{0} und {1}":_.uM=="el"?"{0} \u03ba\u03b1\u03b9 {1}":_.uM=="eu"?"{0} eta {1}":_.uM=="fa"?"{0} \u0648 {1}":_.uM=="fil"?"{0} at {1}":_.uM=="gu"?"{0} \u0a85\u0aa8\u0ac7 {1}":_.uM=="hi"?"{0} \u0914\u0930 {1}":_.uM=="hu"?"{0} \u00e9s {1}":_.uM=="hy"?"{0} \u0587 {1}":_.uM=="iw"?"{0} \u05d5-{1}":_.uM=="ja"?"{0}\u3001{1}":_.uM=="ka"?"{0} \u10d3\u10d0 {1}":_.uM=="kk"?"{0} \u0436\u04d9\u043d\u0435 {1}":_.uM=="km"?"{0} \u1793\u17b7\u1784\u200b{1}":_.uM=="kn"?
"{0} \u0cae\u0ca4\u0ccd\u0ca4\u0cc1 {1}":_.uM=="ko"?"{0} \ubc0f {1}":_.uM=="ky"?"{0} \u0436\u0430\u043d\u0430 {1}":_.uM=="lo"?"{0} \u0ec1\u0ea5\u0eb0 {1}":_.uM=="lt"?"{0} ir {1}":_.uM=="lv"?"{0} un {1}":_.uM=="ml"?"{0} \u0d15\u0d42\u0d1f\u0d3e\u0d24\u0d46 {1}":_.uM=="mn"?"{0}, {1}":_.uM=="mr"?"{0} \u0906\u0923\u093f {1}":_.uM=="my"?"{0}\u1014\u103e\u1004\u1037\u103a {1}":_.uM=="ne"?"{0} \u0930 {1}":_.uM=="or"?"{0} \u0b13 {1}":_.uM=="pa"?"{0} \u0a05\u0a24\u0a47 {1}":_.uM=="ro"?"{0} \u0219i {1}":_.uM==
"si"?"{0} \u0dc3\u0dc4 {1}":_.uM=="sl"?"{0} in {1}":_.uM=="sq"?"{0} dhe {1}":_.uM=="sv"?"{0} och {1}":_.uM=="sw"?"{0} na {1}":_.uM=="ta"?"{0} \u0bae\u0bb1\u0bcd\u0bb1\u0bc1\u0bae\u0bcd {1}":_.uM=="te"?"{0} \u0c2e\u0c30\u0c3f\u0c2f\u0c41 {1}":_.uM=="th"?"{0}\u0e41\u0e25\u0e30{1}":_.uM=="tr"?"{0} ve {1}":_.uM=="ur"?"{0} \u0627\u0648\u0631 {1}":_.uM=="uz"?"{0} va {1}":_.uM=="vi"?"{0} v\u00e0 {1}":_.uM=="zh-HK"?"{0}\u53ca{1}":_.uM=="zu"?"{0} ne-{1}":_.uM=="af"||_.uM=="nl"?"{0} en {1}":_.uM=="ar"||_.uM==
"ar-XB"?"{0} \u0648{1}":_.uM=="be"||_.uM=="uk"?"{0} \u0456 {1}":_.uM=="cs"||_.uM=="sk"?"{0} a\u00a0{1}":_.uM=="et"||_.uM=="fi"?"{0} ja {1}":_.uM=="fr"||_.uM=="fr-CA"?"{0} et {1}":_.uM=="id"||_.uM=="ms"?"{0} dan {1}":_.uM=="zh-CN"||_.uM=="zh-TW"?"{0}\u548c{1}":_.uM=="da"||_.uM=="is"||_.uM=="no"?"{0} og {1}":_.uM=="es"||_.uM=="es-419"||_.uM=="es-US"?"{0} y {1}":_.uM=="bg"||_.uM=="mk"||_.uM=="ru"||_.uM=="sr"?"{0} \u0438 {1}":_.uM=="en"||_.uM=="en-GB"||_.uM=="en-IN"||_.uM=="en-XA"?"{0} and {1}":_.uM==
"gl"||_.uM=="it"||_.uM=="pt-BR"||_.uM=="pt-PT"?"{0} e {1}":"{0} i {1}";_.uM==="sq"?(L=L.replace("dhe","e"),I=I.replace("dhe","e")):_.uM==="th"?(Y=Y.replace("{0}"," {0}"),I=I.replace("{0}","{0} "),I=I.replace("{1}"," {1}")):_.uM==="ne"?Y=",":_.uM==="zh-CN"?Y="":p.includes(_.uM)&&(Y=" ");return S.length<2?S.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(_.uM)?S.length===2?
I.replace("{0}",S[0]).replace("{1}",S[1]):U.replace("{0}",S[0])+S.slice(1,-1).join(Y)+L.replace("{0}",S[S.length-1]):S.join(Y)};
_.M.getTimeParam=function(){return vnA(this.timeString)};
_.M.onChangeStartAtCheckbox=function(){this.startAtTimestamp.disabled=!this.isStartAtChecked;this.setTimestamp();var S={checkboxData:{state:this.isStartAtChecked?"CHECKBOX_STATE_ON":"CHECKBOX_STATE_OFF"}},p;_.La(_.HX(),(p=this.data)==null?void 0:p.trackingParams,S,7)};
_.M.onChangeStartAtTimestamp=function(){for(var S=this.startAtTimestamp.value.split(":"),p=0,U=1,Y=S.length-1;Y>=0;Y--)p+=Number(S[Y])*U,U*=60;this.updateTimeSecs(p);this.setTimestamp()};
_.M.onOpen=function(){var S=this;this.updateTimeSecs(0);this.isStartAtChecked=!1;var p=_.$L();p?p.getPlayerPromise().then(function(U){U=U.getCurrentTime();S.updateTimeSecs(U)}):HfJ()&&this.updateTimeSecs(HfJ())};
_.M.setTimestamp=function(){var S=Math.floor(this.currentTimeSecs);_.St(this.hostElement,"yt-share-panel-set-timestamp-action",[{isSet:this.isStartAtChecked&&!!S,timestamp:S||""}])};
_.x([_.F(_.Aj.YtActionHandlerBehavior),_.E("design:type",Object)],M$.prototype,"ytActionHandlerBehavior",void 0);_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],M$.prototype,"ytRendererBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],M$.prototype,"data",void 0);_.x([_.g({value:!1,notify:!0}),_.E("design:type",Boolean)],M$.prototype,"isStartAtChecked",void 0);_.x([_.g(),_.E("design:type",Number)],M$.prototype,"currentTimeSecs",void 0);
_.x([_.g({computed:"computeTimeString(currentTimeSecs)"}),_.E("design:type",String)],M$.prototype,"timeString",void 0);_.x([_.g({computed:"computeTimeStringA11y(currentTimeSecs)"}),_.E("design:type",String)],M$.prototype,"timeStringA11y",void 0);_.x([_.O2("#start-at-timestamp"),_.E("design:type",Object)],M$.prototype,"startAtTimestamp",void 0);M$=_.x([_.FB({is:"yt-start-at-renderer",disableElementRegistration:!0})],M$);
_.C(M$,"yt-start-at-renderer",function(){if(Qnn===void 0){var S=document.createElement("template");_.h(S,'\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');
S.content.insertBefore(_.t().content.cloneNode(!0),S.content.firstChild);var p=S.content,U=p.insertBefore;zZL===void 0&&(zZL=document.createElement("template"));var Y=zZL;U.call(p,Y.content.cloneNode(!0),S.content.firstChild);Qnn=S}S=Qnn;return S},{mode:2});var nKY;var JtL;var ytn=new Map([["ADD_TO_PLAYLIST","playlist_add"],["ADD_TO_REMOTE_QUEUE","add_to_queue"],["CAST_ICON","chromecast-filled"],["CAST_OUTLINE","chromecast"],["DISLIKE","dislike_outline"],["DISLIKE_SELECTED","dislike"],["ERROR_WHITE","error"],["FAVORITE","like_outline"],["LIKE","like_outline"],["LIKE_SELECTED","like"],["LOOP","music_repeat_all"],["LOOP_ONE","music_repeat_one"],["PLAYLIST_PLAY","playlists"],["QUEUE_PLAY_NEXT","playlists"],["REMOVE","delete"],["REMOVE_FROM_HISTORY","delete"],["REMOVE_FROM_PLAYLIST",
"delete"],["SHUFFLE","music_shuffle"],["SUBSCRIPTIONS","subscriptions"],["TAB_EXPLORE","explore"],["TAB_MUSIC_PREMIUM","youtube_music_monochrome"],["UNFAVORITE","like"]]),KgJ=new Map([["BOOKMARK","bookmark-filled"],["CLOUD_UPLOAD","cloud_arrow_up"],["DISLIKE","dislike"],["DISLIKE_SELECTED","dislike-filled"],["ERROR_WHITE","error-filled"],["FAVORITE","like"],["INSERT_CHART_OUTLINED","bar_graph_box_vertical"],["LIKE","like"],["LIKE_SELECTED","like-filled"],["MUSIC_EXPLICIT_BADGE","music_explicit_badge-filled"],
["MUSIC_SHUFFLE","shuffle"],["PAUSE","offline_pause"],["REMOVE","delete"],["REMOVE_FROM_HISTORY","delete"],["REMOVE_FROM_PLAYLIST","delete"],["TAB_MUSIC_PREMIUM","youtube_music_monochrome"],["UNFAVORITE","like-filled"],["VOLUME_UP","volume_up"],["DISMISS_QUEUE","list_remove"]]),bYi=new Map([["ARROW_CHART_NEUTRAL","yt-icons:"],["OFFLINE_NO_CONTENT","offline-no-content:"],["YOUTUBE","yt-logos:"]]);var jni={};jni.YtBindingExpressionsBehavior={identity:_.Cr,msg:function(S,p){p=p===void 0?{}:p;return _.Oh(S,p,S)},
msgPlural:function(S,p){return _.kd(S,p)},
getMusicIconFromType:function(S){if(_.y("music_web_enable_icon_wil"))S=_.If(S);else if(KgJ.has(S))S="yt-sys-icons:"+KgJ.get(S);else{var p=ytn.get(S)||_.If(S).split(":")[1];p=_.Xyw(p);var U;S=((U=bYi.get(S))!=null?U:"yt-sys-icons:")+p}return S}};var rtX;var Gbd;var hZi;var RZn=document.head,Fgq=RZn.appendChild,XVs;if(hZi===void 0){var Pzo=document.createElement("template");_.h(Pzo,'\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>');hZi=Pzo}XVs=hZi;Fgq.call(RZn,XVs.content);var Iz=function(){var S=_.w.apply(this,arguments)||this;S.screenLayer=7;return S};
_.r(Iz,_.w);Iz.prototype.getScreenLayer=function(){return this.screenLayer};
Iz.prototype.onTap=function(S){S&&S.detail&&(S.detail.x||S.detail.y)&&_.tB(this.hostElement).querySelector("#target").blur();this.data.serviceEndpoint?_.Yd(this.hostElement,[this.data.serviceEndpoint]):this.data.navigationEndpoint&&(S=this.getScreenLayer(),_.cv(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint,createScreenConfig:{layer:S}}));this.data.onTapCommand&&this.ytComponentBehavior.resolveCommand(this.data.onTapCommand,{form:{createScreenConfig:{layer:this.getScreenLayer()}}})};
_.$u.Object.defineProperties(Iz.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()}}});
Iz.prototype.onTap=Iz.prototype.onTap;_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],Iz.prototype,"ytRendererBehavior",void 0);_.x([_.F(_.eL.YtComponentBehavior),_.E("design:type",Object)],Iz.prototype,"ytComponentBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],Iz.prototype,"data",void 0);_.x([_.e("data.title"),_.E("design:type",Object),_.E("design:paramtypes",[])],Iz.prototype,"title",null);
_.x([_.e("data.serviceName"),_.E("design:type",String),_.E("design:paramtypes",[])],Iz.prototype,"icon",null);_.x([_.Vd("tap"),_.E("design:type",Function),_.E("design:paramtypes",[CustomEvent]),_.E("design:returntype")],Iz.prototype,"onTap",null);Iz=_.x([_.FB({is:"yt-share-target-renderer",disableElementRegistration:!0})],Iz);
_.C(Iz,"yt-share-target-renderer",function(){if(Gbd===void 0){var S=document.createElement("template");_.h(S,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-share-target-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.sharing.yt_share_target_renderer.yt.share.target.renderer.css.js--\x3e<button id="target" title="[[title]]" class="style-scope yt-share-target-renderer">\n  <yt-icon class="icon-resize style-scope yt-share-target-renderer" icon="[[icon]]"></yt-icon>\n  <div id="title" style-target="title" class="style-scope yt-share-target-renderer">[[title]]</div>\n</button>\n');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);var p=S.content,U=p.insertBefore;rtX===void 0&&(rtX=document.createElement("template"));var Y=rtX;U.call(p,Y.content.cloneNode(!0),S.content.firstChild);Gbd=S}S=Gbd;return S},{mode:2});var ZYT;var snT;var dR=function(){var S=_.w.apply(this,arguments)||this;S.SHARE_TARGET_WIDTH=70;S.SHARE_TARGET_MARGIN_RIGHT=8;S.PAGE_SCROLL_SPEED=9;S.actionMap={"yt-share-panel-reset-action":"onReset_"};return S};
_.r(dR,_.w);_.M=dR.prototype;_.M.configureRendererStamper=function(){return{"data.shareTargets":{id:"contents",mapping:{shareTargetRenderer:{component:"yt-share-target-renderer",attributes:{role:"button"}}}}}};
_.M.onDataChanged_=function(){this.data&&this.data.shareTargets&&(_.tB(this.hostElement).querySelector("#scroll-button-back").hidden=!0,_.tB(this.hostElement).querySelector("#scroll-button-forward").hidden=this.data.shareTargets.length<=6)};
_.M.onReset_=function(){if(_.tB(this.hostElement).querySelector("#list")){var S=_.tB(this.hostElement).querySelector("#list");var p=_.tB(this.hostElement).querySelector("#list");var U=p.offsetLeft,Y=p.offsetParent;Y||_.qXE(p)!="fixed"||(Y=_.ZD(p).documentElement);if(Y){if(_.SR&&!_.Ux(58)){var L=_.LEm(Y);U+=L.left}else Number(_.F8w)>=8&&!(Number(_.F8w)>=9)&&(L=_.LEm(Y),U-=L.left);p=_.Ute(Y)?Y.clientWidth-(U+p.offsetWidth):U}else p=U;keJ(S,p);this.updateScrollButtons_()}};
_.M.onScrollBack_=function(){this.smoothScrollByOnePage_(!1)};
_.M.onScrollForward_=function(){this.smoothScrollByOnePage_(!0)};
_.M.onScrollWheel_=function(S){S.stopPropagation();S.preventDefault();var p=Ozd(_.tB(this.hostElement).querySelector("#list"));S=Math.abs(S.deltaX)>Math.abs(S.deltaY)?S.deltaX:S.deltaY;keJ(_.tB(this.hostElement).querySelector("#list"),p+S);this.updateScrollButtons_()};
_.M.smoothScrollByOnePage_=function(S){var p=_.tB(this.hostElement).querySelector("#list"),U=(Math.floor(p.clientWidth/this.SHARE_TARGET_WIDTH)*(this.SHARE_TARGET_WIDTH+this.SHARE_TARGET_MARGIN_RIGHT)-this.SHARE_TARGET_MARGIN_RIGHT)/2,Y=Ozd(p),L=U*(S?1:-1),I=this.PAGE_SCROLL_SPEED,V=this.updateScrollButtons_.bind(this),W=0,O;(function z(){W+=I;O=W/U*2;keJ(p,Y+L*(O<1?O*O:-O*O+4*O-2));W<U?window.requestAnimationFrame(z):V()})()};
_.M.updateScrollButtons_=function(){var S=Ozd(_.tB(this.hostElement).querySelector("#list")),p=_.tB(this.hostElement).querySelector("#list").scrollWidth-_.tB(this.hostElement).querySelector("#list").clientWidth;_.tB(this.hostElement).querySelector("#scroll-button-back").hidden=S<=0;_.tB(this.hostElement).querySelector("#scroll-button-forward").hidden=S>=p};
dR.prototype.onScrollWheel_=dR.prototype.onScrollWheel_;dR.prototype.onDataChanged_=dR.prototype.onDataChanged_;_.x([_.F(_.qH.YtRendererstamperBehavior),_.E("design:type",Object)],dR.prototype,"ytRendererstamperBehavior",void 0);_.x([_.F(_.Aj.YtActionHandlerBehavior),_.E("design:type",Object)],dR.prototype,"ytActionHandlerBehavior",void 0);_.x([_.F(jni.YtBindingExpressionsBehavior),_.E("design:type",Object)],dR.prototype,"ytBindingExpressionsBehavior",void 0);
_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],dR.prototype,"ytRendererBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],dR.prototype,"data",void 0);_.x([_.T4("data"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],dR.prototype,"onDataChanged_",null);_.x([_.Vd("wheel"),_.E("design:type",Function),_.E("design:paramtypes",[WheelEvent]),_.E("design:returntype")],dR.prototype,"onScrollWheel_",null);
dR=_.x([_.FB({is:"yt-third-party-share-target-section-renderer",disableElementRegistration:!0})],dR);
_.C(dR,"yt-third-party-share-target-section-renderer",function(){if(snT===void 0){var S=document.createElement("template");_.h(S,'\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');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);var p=S.content,U=p.insertBefore;ZYT===void 0&&(ZYT=document.createElement("template"));var Y=ZYT;U.call(p,Y.content.cloneNode(!0),S.content.firstChild);snT=S}S=snT;return S},{mode:2});var Vp=function(){return _.w.apply(this,arguments)||this};
_.r(Vp,_.w);Vp.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"}}}};
_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],Vp.prototype,"ytRendererBehavior",void 0);_.x([_.F(_.qH.YtRendererstamperBehavior),_.E("design:type",Object)],Vp.prototype,"ytRendererstamperBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],Vp.prototype,"data",void 0);Vp=_.x([_.FB({is:"yt-third-party-network-section-renderer",disableElementRegistration:!0})],Vp);
_.C(Vp,"yt-third-party-network-section-renderer",function(){if(JtL===void 0){var S=document.createElement("template");_.h(S,'\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');
S.content.insertBefore(_.t().content.cloneNode(!0),S.content.firstChild);var p=S.content,U=p.insertBefore;nKY===void 0&&(nKY=document.createElement("template"));var Y=nKY;U.call(p,Y.content.cloneNode(!0),S.content.firstChild);JtL=S}S=JtL;return S},{mode:2});_.qm(_.$k(function(S){return _.H("first-party-network-section-view-model",{class:"ytwFirstPartyNetworkSectionViewModelHost"},_.H("div",{class:"ytwFirstPartyNetworkSectionViewModelfirstPartyItems"},_.H(_.yP,{data:function(){return S.data().firstPartyItems}},{listItemViewModel:_.h5})))},"ng"),"first-party-network-section-view-model",{props:{data:_.x2}});var eZE=_.x1(["data:image/svg+xml;charset=UTF-8;base64,",""]),TO=function(){var S=_.w.apply(this,arguments)||this;S.screenLayer=7;S.qrCodeEnabled=_.y("web_enable_sharing_qr_code");S.actionMap={"yt-share-panel-set-timestamp-action":"handleSetTimestamp"};return S};
_.r(TO,_.w);_.M=TO.prototype;_.M.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{senderIdSectionRenderer:"ytd-sender-id-section-renderer",thirdPartyNetworkSection:"yt-third-party-network-section-renderer",firstPartyNetworkSectionViewModel:"first-party-network-section-view-model"}}}};
_.M.attached=function(){this.JSC$17837_scroller&&(this.JSC$17837_scroller.dialogElement=this.hostElement.parentNode,this.JSC$17837_scroller.attached&&typeof this.JSC$17837_scroller.attached==="function"&&this.JSC$17837_scroller.attached(),this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true"))};
_.M.onDataChanged=function(){var S=this,p;(p=this.data)!=null&&p.contents&&(this.hostElement.setAttribute("links-only","true"),_.Yk(this.hostElement,"can-post",this.hasCommunityPostRenderer()),this.logSharePanelPage(),this.maybeRenderQrCode(this.shortUrl()),_.oH(this,function(){_.cv(S.hostElement,"yt-refit");S.focusSharePanelHeader()}))};
_.M.focusSharePanelHeader=function(){this.header&&(this.header.setAttribute("tabindex","-1"),this.header.focus())};
_.M.handleSetTimestamp=function(S){var p=this.shortUrl();S.isSet&&(p=_.ec(p,"t",S.timestamp));this.maybeRenderQrCode(p)};
_.M.shortUrl=function(){var S,p=(S=this.data)==null?void 0:S.contents;if(p)for(S=0;S<p.length;S++){var U=void 0,Y=void 0;if((U=p[S])==null?0:(Y=U.thirdPartyNetworkSection)==null?0:Y.copyLinkContainer){var L=Y=U=void 0;return(L=_.b((U=p[S])==null?void 0:(Y=U.thirdPartyNetworkSection)==null?void 0:Y.copyLinkContainer,DDP))==null?void 0:L.shortUrl}}};
_.M.maybeRenderQrCode=function(S){var p=this,U,Y,L,I,V,W,O,D,z;return _.T(function(Q){if(Q.nextAddress==1){U=_.tB(p.hostElement).querySelector("#qr-code");if(!p.qrCodeEnabled||!S)return U&&(U.style.display="none"),Q.return();Y=_.CHE(_.tW().resolve(_.dx),{iconName:"youtube_logo_icon",iconStyle:"youtube_fill"});L=document.createElement("div");return typeof Y==="function"?(Y(L),Q.jumpTo(2)):_.k(Q,Y,3)}Q.nextAddress!=2&&(I=Q.yieldResult,I(L));O=(V=L)==null?void 0:(W=V.firstChild)==null?void 0:W.firstChild;
D=document.createElement("img");z=_.rc(eZE,btoa(O.outerHTML));D.onload=function(){var J={canvas:U,cellStyle:1,backgroundColor:"white",borderRadius:30,color:"black",padding:10,width:256,logo:D},K=new ovE;q9s(K,S);AU5(K,!1,tPX(K));var G=K.modules,X=Object.assign({},NMX,J);G=structuredClone(G);J=G.length;var Z,l=(Z=X.canvas)!=null?Z:document.createElement("canvas");Z=X.cellSize;K=X.logo;var a,N=(a=X.logoSize)!=null?a:Math.floor(J/4);J%2!==N%2&&N++;var m=X.logoPadding,A=X.backgroundColor;a=J*Z;var q=
X.width,TG=0;q&&(TG=X.padding,TG=Math.ceil(TG*a/(q-TG*2)),l.style.width=q+"px",l.style.height=q+"px");l.width!==a+TG*2&&(l.width=a+TG*2);l.height!==a+TG*2&&(l.height=a+TG*2);a=l.getContext("2d");X.autoClear&&a.clearRect(0,0,l.width,l.height);a.fillStyle=A;a.beginPath();a.roundRect(0,0,l.width,l.height,X.borderRadius);a.fill();a.save();a.translate(TG,TG);if(K)for(l=Math.floor(J-N)/2-m,m=Math.floor(J+N)/2+m,A=l;A<m;A++)for(q=l;q<m;q++)G[A][q]=!1;for(l=0;l<J;l++)for(m=0;m<J;m++)(l<7&&m<7||l<7&&m>=J-
7||l>=J-7&&m<7)&&(G[l][m]=!1);var Je;l=(Je=X.markerColor)!=null?Je:X.color;SRE(a,0,0,Z,l);SRE(a,Z*(J-7),0,Z,l);SRE(a,0,Z*(J-7),Z,l);switch(X.cellStyle){case 0:Je=G;G=Je.length;l=X.cellSize;a.beginPath();for(m=0;m<G;m++)for(A=0;A<G;A++)Je[m][A]&&a.rect(m*l,A*l,l,l);a.fillStyle=X.color;a.fill();break;case 1:Je=G;G=Je.length;l=X.cellSize;m=l*X.relativeCircleSize;a.fillStyle=X.color;a.beginPath();for(X=0;X<G;X++)for(A=0;A<G;A++)Je[X][A]&&(a.beginPath(),a.ellipse((X+.5)*l,(A+.5)*l,m/2,m/2,0,0,2*Math.PI),
a.fill());a.fill();break;case 2:Je=G;G=Je.length;l=X.cellSize;a.fillStyle=X.color;X=[[1,1],[-1,1],[-1,-1],[1,-1]];a.beginPath();for(m=0;m<G;m++)for(A=0;A<G;A++)if(Je[m][A])a.roundRect(m*l,A*l,l,l,l/2),m+1<G&&Je[m+1][A]&&a.rect(m*l+l/2,A*l,l,l),A+1<G&&Je[m][A+1]&&a.rect(m*l,A*l+l/2,l,l);else{q=m*l+l/2;TG=A*l+l/2;for(var GG=0;GG<4;GG++){var Zw=_.d(X[GG]),Ru=Zw.next().value;Zw=Zw.next().value;m+Ru>=0&&m+Ru<G&&A+Zw>=0&&A+Zw<G&&Je[m+Ru][A]&&Je[m][A+Zw]&&Je[m+Ru][A+Zw]&&(Ru=GG*Math.PI/2,Zw=l/2,a.moveTo(q+
Zw*Math.cos(Ru),TG+Zw*Math.sin(Ru)),a.arc(q,TG,l/2,Ru,Ru+Math.PI/2,!1),a.lineTo(q+Zw*(Math.cos(Ru)-Math.sin(Ru)),TG+Zw*(Math.cos(Ru)+Math.sin(Ru))),a.lineTo(q+Zw*Math.cos(Ru),TG+Zw*Math.sin(Ru)))}}a.fill()}K&&a.drawImage(K,(J-N)*Z/2,(J-N)*Z/2,N*Z,N*Z);a.restore();U.style.removeProperty("display")};
D.src=_.DO(z);_.OV(Q)})};
_.M.hasCommunityPostRenderer=function(){var S,p,U,Y;return!!((S=this.data)==null?0:(p=S.header)==null?0:(U=p.sharePanelHeaderRenderer)==null?0:(Y=U.communityPost)==null?0:Y.communityPostSectionRenderer)};
_.M.onTapClose=function(){_.St(this.hostElement,"yt-close-popup-action",["ytd-unified-share-panel-renderer"])};
_.M.getScreenLayer=function(){return this.screenLayer};
_.M.logSharePanelPage=function(){if(!_.y("enable_share_panel_navigation_logging_fix_on_web")){var S;if((S=this.data)!=null&&S.trackingParams){S=this.data.trackingParams;var p=this.parentClickTrackingParams;p=p?_.JS(p):void 0;var U=_.HX();_.S8(U,21760,p,{layer:7,parentLayer:0});U.graftServerVe(S,void 0,7);_.vJ().dispatch(_.S4({type:"CLEAR_PARENT_CLICK_TRACKING_PARAMS"}))}}};
TO.prototype.onDataChanged=TO.prototype.onDataChanged;_.x([_.F(_.qH.YtRendererstamperBehavior),_.E("design:type",Object)],TO.prototype,"ytRendererstamperBehavior",void 0);_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],TO.prototype,"ytRendererBehavior",void 0);_.x([_.F(_.Xh),_.E("design:type",Object)],TO.prototype,"ytdReduxBehavior",void 0);_.x([_.F(_.Aj.YtActionHandlerBehavior),_.E("design:type",Object)],TO.prototype,"ytActionHandlerBehavior",void 0);
_.x([_.g(),_.E("design:type",Object)],TO.prototype,"data",void 0);_.x([_.g({value:_.Oh("SBOX_INAPPROPRIATE_CANCEL")}),_.E("design:type",String)],TO.prototype,"closeButtonAriaLabel",void 0);_.x([_.O2("yt-share-panel-header-renderer"),_.E("design:type",HTMLElement)],TO.prototype,"header",void 0);_.x([_.g({selector:function(S){return S.share.parentClickTrackingParams}}),
_.E("design:type",String)],TO.prototype,"parentClickTrackingParams",void 0);_.x([_.g(),_.E("design:type",Object)],TO.prototype,"qrCodeEnabled",void 0);_.x([_.O2("#scroller"),_.E("design:type",Object)],TO.prototype,"JSC$17837_scroller",void 0);_.x([_.z4("data"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],TO.prototype,"onDataChanged",null);TO=_.x([_.f({disableElementRegistration:!0,is:"ytd-unified-share-panel-renderer"})],TO);
_.C(TO,"ytd-unified-share-panel-renderer",function(){if(ImY!==void 0)return ImY;var S=document.createElement("template");_.h(S,'\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');
S.content.insertBefore(_.t().content.cloneNode(!0),S.content.firstChild);return ImY=S},{mode:1});var gKE;var Wb=function(){var S=_.w.apply(this,arguments)||this;S.modernModal=_.y("kevlar_sign_in_modal_modernization");return S};
_.r(Wb,_.w);Wb.prototype.attached=function(){this.hostElement.setAttribute("modal","true")};
Wb.prototype.computeShouldHideOldButtons=function(){var S;return!((S=this.data)==null?0:S.button)};
_.$u.Object.defineProperties(Wb.prototype,{buttonRendererData:{configurable:!0,enumerable:!0,get:function(){var S,p;if(this.modernModal&&((S=this.data)==null?0:(p=S.button)==null?0:p.buttonRenderer))return Object.assign({},this.data.button.buttonRenderer,{style:"STYLE_MONO_FILLED"});var U,Y;return(U=this.data)==null?void 0:(Y=U.button)==null?void 0:Y.buttonRenderer}}});
_.x([_.g(),_.E("design:type",Object)],Wb.prototype,"data",void 0);_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],Wb.prototype,"ytRendererBehavior",void 0);_.x([_.F(_.kP.YtEventForwardingBehavior),_.E("design:type",Object)],Wb.prototype,"ytEventForwardingBehavior",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],Wb.prototype,"modernModal",void 0);_.x([_.e("data"),_.E("design:type",Object),_.E("design:paramtypes",[])],Wb.prototype,"buttonRendererData",null);
Wb=_.x([_.f({disableElementRegistration:!0,is:"ytd-modal-with-title-and-button-renderer"})],Wb);
_.C(Wb,"ytd-modal-with-title-and-button-renderer",function(){if(gKE!==void 0)return gKE;var S=document.createElement("template");_.h(S,'\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');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);return gKE=S},{mode:1});var ut5;var OZ=function(){return _.w.apply(this,arguments)||this};
_.r(OZ,_.w);OZ.prototype.pageChangedForBinding=function(){this.hostElement.dispatchEvent(new _.uz("page-changed",this.page))};
OZ.prototype.pageChangedForBinding=OZ.prototype.pageChangedForBinding;_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],OZ.prototype,"ytRendererBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],OZ.prototype,"data",void 0);_.x([_.g(),_.E("design:type",String)],OZ.prototype,"page",void 0);_.x([_.T4("page"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],OZ.prototype,"pageChangedForBinding",null);
OZ=_.x([_.f({is:"ytd-account-item-section-header-renderer",disableElementRegistration:!0})],OZ);
_.C(OZ,"ytd-account-item-section-header-renderer",function(){if(ut5!==void 0)return ut5;var S=document.createElement("template");_.h(S,'\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');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);return ut5=S},{mode:1});var wVP;var k$=function(){return _.w.apply(this,arguments)||this};
_.r(k$,_.w);k$.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"}}}};
k$.prototype.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents"}};
_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],k$.prototype,"ytRendererBehavior",void 0);_.x([_.F(_.qH.YtRendererstamperBehavior),_.E("design:type",Object)],k$.prototype,"ytRendererstamperBehavior",void 0);_.x([_.F(_.wS),_.E("design:type",Object)],k$.prototype,"ytContinuationHandlerBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],k$.prototype,"data",void 0);_.x([_.g({reflectToAttribute:!1}),_.E("design:type",Function)],k$.prototype,"onAccountItemTap",void 0);
k$=_.x([_.f({is:"ytd-account-item-section-renderer",disableElementRegistration:!0})],k$);
_.C(k$,"ytd-account-item-section-renderer",function(){if(wVP!==void 0)return wVP;var S=document.createElement("template");_.h(S,'\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');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);return wVP=S},{mode:1});var lmX;var ami;var Hb=function(){return _.w.apply(this,arguments)||this};
_.r(Hb,_.w);_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],Hb.prototype,"ytRendererBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],Hb.prototype,"data",void 0);Hb=_.x([_.f({is:"ytd-accounts-dialog-header-renderer",disableElementRegistration:!0})],Hb);
_.C(Hb,"ytd-accounts-dialog-header-renderer",function(){if(ami!==void 0)return ami;var S=document.createElement("template");_.h(S,'\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');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);return ami=S},{mode:1});var fmJ;var DQ=function(){return _.w.apply(this,arguments)||this};
_.r(DQ,_.w);DQ.prototype.configureRendererStamper=function(){return{"data.managedAccountDisclaimer":{id:"managedAccountDisclaimer",mapping:{compactLinkRenderer:"ytd-compact-link-renderer"}}}};
_.x([_.F(_.qH.YtRendererstamperBehavior),_.E("design:type",Object)],DQ.prototype,"ytRendererstamperBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],DQ.prototype,"data",void 0);DQ=_.x([_.f({is:"ytd-google-account-header-renderer",disableElementRegistration:!0})],DQ);
_.C(DQ,"ytd-google-account-header-renderer",function(){if(fmJ!==void 0)return fmJ;var S=document.createElement("template");_.h(S,'\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');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);return fmJ=S},{mode:1});var zO=function(){return _.w.apply(this,arguments)||this};
_.r(zO,_.w);zO.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"}}}};
zO.prototype.pageChangedForBinding=function(){this.hostElement.dispatchEvent(new _.uz("page-changed",this.page))};
zO.prototype.pageChangedForBinding=zO.prototype.pageChangedForBinding;_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],zO.prototype,"ytRendererBehavior",void 0);_.x([_.F(_.qH.YtRendererstamperBehavior),_.E("design:type",Object)],zO.prototype,"ytRendererstamperBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],zO.prototype,"data",void 0);_.x([_.g(),_.E("design:type",String)],zO.prototype,"page",void 0);
_.x([_.T4("page"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],zO.prototype,"pageChangedForBinding",null);zO=_.x([_.f({is:"ytd-account-section-list-renderer",disableElementRegistration:!0})],zO);
_.pz()(zO,"ytd-account-section-list-renderer",function(){if(lmX===void 0){var S=document.createElement("template");_.h(S,'\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');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);lmX=S}S=lmX;return S},{allowedProps:["data"],
mode:1});var CzP;var Qp=function(){var S=_.w.apply(this,arguments)||this;S.enableHandlesAccountMenuSwitcher=_.y("enable_handles_account_menu_switcher");return S};
_.r(Qp,_.w);Qp.prototype.dataChanged=function(){if(this.data)this.avatar.onShow()};
Qp.prototype.dataChanged=Qp.prototype.dataChanged;_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],Qp.prototype,"ytRendererBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],Qp.prototype,"data",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],Qp.prototype,"enableHandlesAccountMenuSwitcher",void 0);_.x([_.O2("#avatar"),_.E("design:type",Object)],Qp.prototype,"avatar",void 0);
_.x([_.T4("data"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],Qp.prototype,"dataChanged",null);Qp=_.x([_.f({is:"ytd-active-account-header-renderer",disableElementRegistration:!0})],Qp);
_.pz()(Qp,"ytd-active-account-header-renderer",function(){if(CzP===void 0){var S=document.createElement("template");_.h(S,'\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');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);CzP=S}S=CzP;return S},{allowedProps:["data"],
mode:1});var xoo;var EKT;var ne=function(){return _.w.apply(this,arguments)||this};
_.r(ne,_.w);ne.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
ne.prototype.onBackTap=function(){_.cv(this.hostElement,"yt-menu-back-tapped")};
_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],ne.prototype,"ytRendererBehavior",void 0);_.x([_.F(_.qH.YtRendererstamperBehavior),_.E("design:type",Object)],ne.prototype,"ytRendererstamperBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],ne.prototype,"data",void 0);ne=_.x([_.f({is:"ytd-simple-menu-header-renderer",disableElementRegistration:!0})],ne);
_.pz()(ne,"ytd-simple-menu-header-renderer",function(){if(EKT===void 0){var S=document.createElement("template");_.h(S,'\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');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);EKT=S}S=EKT;return S},{allowedProps:["data"],
mode:2});var moT;var Jm=function(){return _.w.apply(this,arguments)||this};
_.r(Jm,_.w);_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],Jm.prototype,"ytRendererBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],Jm.prototype,"data",void 0);Jm=_.x([_.f({is:"ytd-comment-video-thumbnail-header-renderer",disableElementRegistration:!0})],Jm);
_.C(Jm,"ytd-comment-video-thumbnail-header-renderer",function(){if(moT!==void 0)return moT;var S=document.createElement("template");_.h(S,'\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');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);return moT=S},{mode:1});var oKY;var yp=function(){return _.w.apply(this,arguments)||this};
_.r(yp,_.w);_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],yp.prototype,"ytRendererBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],yp.prototype,"data",void 0);yp=_.x([_.f({is:"ytd-abuse-type-selector-renderer",disableElementRegistration:!0})],yp);
_.C(yp,"ytd-abuse-type-selector-renderer",function(){if(oKY!==void 0)return oKY;var S=document.createElement("template");_.h(S,'\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');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);return oKY=S},{mode:1});var vKq;var Ke=function(){return _.w.apply(this,arguments)||this};
_.r(Ke,_.w);Ke.prototype.attached=function(){var S=this;this.additionalContext=this.additionalContextRedux||"";requestAnimationFrame(function(){S.additionalContextInput.focusTextInput()})};
Ke.prototype.handleAdditionalContextChanged=function(){var S=this;_.w9(this,"ytd-report-channel-additional-context-update",function(){S.ytdReduxBehavior.dispatch(_.S4({type:"ADDITIONAL_CONTEXT_UPDATED",payload:S.additionalContext}))},300)};
Ke.prototype.updateAdditionalContextFromBinding=function(S){this.additionalContext=S.detail.value};
Ke.prototype.handleAdditionalContextChanged=Ke.prototype.handleAdditionalContextChanged;_.x([_.F(_.Xh),_.E("design:type",Object)],Ke.prototype,"ytdReduxBehavior",void 0);_.x([_.g(),_.E("design:type",String)],Ke.prototype,"additionalContext",void 0);_.x([_.g({selector:function(S){return S.reportChannelAbuse.additionalContext}}),
_.E("design:type",String)],Ke.prototype,"additionalContextRedux",void 0);_.x([_.g(),_.E("design:type",Object)],Ke.prototype,"data",void 0);_.x([_.O2("yt-text-input-form-field-renderer"),_.E("design:type",Object)],Ke.prototype,"additionalContextInput",void 0);_.x([_.T4("additionalContext"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],Ke.prototype,"handleAdditionalContextChanged",null);
Ke=_.x([_.f({is:"ytd-report-channel-modal-additional-context-renderer",disableElementRegistration:!0})],Ke);
_.C(Ke,"ytd-report-channel-modal-additional-context-renderer",function(){if(vKq!==void 0)return vKq;var S=document.createElement("template");_.h(S,'\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');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);return vKq=S},{mode:1});var $oE;var bv=function(){var S=_.w.apply(this,arguments)||this;S.nextButtonDisabled=null;S.submitEndpoint=null;S.navigationEndpoint=null;S.actionMap={"yt-report-form-update":"handleReportFormEndpointUpdateAction","yt-signal-action-submit-form":"handleSignalActionSubmitForm","ytd-report-channel-modal-disable-next-button-action":"handleReportChannelModalDisableNextButtonAction"};return S};
_.r(bv,_.w);_.M=bv.prototype;_.M.computeNextButtonData=function(S,p,U){var Y={};p&&(Y.navigationEndpoint=p);U&&(Y.serviceEndpoint=U);S&&S.buttonRenderer&&_.h9.extend(Y,S.buttonRenderer);return Y};
_.M.handleReportChannelModalDisableNextButtonAction=function(S){this.setNextButtonIsDisabled(S)};
_.M.handleReportFormEndpointUpdateAction=function(S){this.setNextButtonIsDisabled(!!S.disableSubmitButton);this.resetEndpointData();S.submitEndpoint?this.submitEndpoint=S.submitEndpoint:S.submitNavigationEndpoint&&(this.navigationEndpoint=S.submitNavigationEndpoint)};
_.M.handleSignalActionSubmitForm=function(){var S,p=Object.keys(((S=this.reportChannelAbuseForm)==null?void 0:S.selectedVideoIds)||{}),U;S=((U=this.reportChannelAbuseForm)==null?void 0:U.additionalContext)||"";var Y;U=((Y=this.reportChannelAbuseForm)==null?void 0:Y.impersonatedChannelUrl)||"";var L;if((L=this.data)==null?0:L.submitEndpoint){p={impersonated_channel_url:U,text:S,video_ids:p};var I;_.tW().resolve(_.cQ).resolveCommand((I=this.data)==null?void 0:I.submitEndpoint,{form:Object.assign({},
p,{element:this.hostElement})})}this.setNextButtonIsDisabled(!0)};
_.M.onYtServiceRequestCompleted=function(){this.resetEndpointData()};
_.M.onYtServiceRequestError=function(S){this.setNextButtonIsDisabled(!1);_.An(this.hostElement,S.detail.error.message)};
_.M.setNextButtonIsDisabled=function(S){this.set("data.nextButton.buttonRenderer.isDisabled",S)};
_.M.resetEndpointData=function(){this.submitEndpoint=this.navigationEndpoint=null};
bv.prototype.onYtServiceRequestError=bv.prototype.onYtServiceRequestError;bv.prototype.onYtServiceRequestCompleted=bv.prototype.onYtServiceRequestCompleted;_.x([_.g(),_.E("design:type",Object)],bv.prototype,"data",void 0);_.x([_.g(),_.E("design:type",Object)],bv.prototype,"nextButtonDisabled",void 0);_.x([_.F(_.Xh),_.E("design:type",Object)],bv.prototype,"ytdReduxBehavior",void 0);_.x([_.F(_.Aj.YtActionHandlerBehavior),_.E("design:type",Object)],bv.prototype,"ytActionHandlerBehavior",void 0);
_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],bv.prototype,"ytRendererBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],bv.prototype,"submitEndpoint",void 0);_.x([_.g(),_.E("design:type",Object)],bv.prototype,"navigationEndpoint",void 0);_.x([_.g({selector:function(S){return S.reportChannelAbuse}}),
_.E("design:type",Object)],bv.prototype,"reportChannelAbuseForm",void 0);_.x([_.Vd("yt-service-request-completed"),_.E("design:type",Function),_.E("design:paramtypes",[CustomEvent]),_.E("design:returntype")],bv.prototype,"onYtServiceRequestCompleted",null);_.x([_.Vd("yt-service-request-error"),_.E("design:type",Function),_.E("design:paramtypes",[CustomEvent]),_.E("design:returntype")],bv.prototype,"onYtServiceRequestError",null);
bv=_.x([_.f({is:"ytd-report-channel-modal-footer-renderer",disableElementRegistration:!0})],bv);
_.C(bv,"ytd-report-channel-modal-footer-renderer",function(){if($oE!==void 0)return $oE;var S=document.createElement("template");_.h(S,'\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');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);return $oE=S},{mode:1});var iYP;var jh=function(){var S=_.w.apply(this,arguments)||this;S.boundOnTapDismissButton=function(){S.closePopup()};
return S};
_.r(jh,_.w);jh.prototype.configureRendererStamper=function(){return{"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[boundOnTapDismissButton]]"}}}}}};
jh.prototype.handleDataChanged=function(){_.ig(this.hostElement)};
jh.prototype.closePopup=function(){_.St(this.hostElement,"yt-close-popup-action")};
jh.prototype.handleDataChanged=jh.prototype.handleDataChanged;_.x([_.g(),_.E("design:type",Object)],jh.prototype,"boundOnTapDismissButton",void 0);_.x([_.g(),_.E("design:type",Object)],jh.prototype,"data",void 0);_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],jh.prototype,"ytRendererBehavior",void 0);_.x([_.F(_.qH.YtRendererstamperBehavior),_.E("design:type",Object)],jh.prototype,"ytRendererstamperBehavior",void 0);
_.x([_.T4("data"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],jh.prototype,"handleDataChanged",null);jh=_.x([_.f({is:"ytd-report-channel-modal-header-renderer",disableElementRegistration:!0})],jh);
_.C(jh,"ytd-report-channel-modal-header-renderer",function(){if(iYP!==void 0)return iYP;var S=document.createElement("template");_.h(S,'\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');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);return iYP=S},{mode:1});var NWn;var rR=function(){var S=_.w.apply(this,arguments)||this;S.autoValidate=!1;S.invalid=!1;S.actionMap={"yt-modify-report-form-command":"handleModifyReportFormCommand"};return S};
_.r(rR,_.w);_.M=rR.prototype;_.M.attached=function(){var S=this;this.impersonatedChannelUrlRedux?(this.impersonatedChannelUrl=this.impersonatedChannelUrlRedux,this.handleImpersonatedChannelUrlChanged()):this.impersonatedChannelUrl="";requestAnimationFrame(function(){S.channelUrlInput.focusTextInput()})};
_.M.disableNextButton=function(S){_.St(this.hostElement,"ytd-report-channel-modal-disable-next-button-action",[S])};
_.M.handleImpersonatedChannelUrlChanged=function(){var S=this;this.disableNextButton(!0);this.invalid=!1;_.w9(this,"ytd-report-channel-impersonated-channel-update",function(){var p=S.impersonatedChannelUrl.trim();S.ytdReduxBehavior.dispatch(_.S4({type:"IMPERSONATED_CHANNEL_URL_UPDATED",payload:p}));var U;((U=S.data)==null?0:U.submitEndpoint)&&p&&_.tW().resolve(_.cQ).resolveCommand(S.data.submitEndpoint,{form:{impersonated_channel_url:p,element:S.hostElement}})},500)};
_.M.handleModifyReportFormCommand=function(S){this.invalid=this.get("modifyReportFormCommand.action",S)!=="REPORT_FORM_ACTION_ENABLE_SUBMIT_BUTTON";this.disableNextButton(this.invalid)};
_.M.updateInvalidFromBinding=function(S){this.invalid=S.detail.value};
_.M.updateImpersonatedChannelUrlFromBinding=function(S){this.impersonatedChannelUrl=S.detail.value};
rR.prototype.handleImpersonatedChannelUrlChanged=rR.prototype.handleImpersonatedChannelUrlChanged;_.x([_.F(_.Xh),_.E("design:type",Object)],rR.prototype,"ytdReduxBehavior",void 0);_.x([_.F(_.Aj.YtActionHandlerBehavior),_.E("design:type",Object)],rR.prototype,"ytActionHandlerBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],rR.prototype,"autoValidate",void 0);_.x([_.g(),_.E("design:type",Object)],rR.prototype,"invalid",void 0);
_.x([_.g(),_.E("design:type",String)],rR.prototype,"impersonatedChannelUrl",void 0);_.x([_.g({selector:function(S){return S.reportChannelAbuse.impersonatedChannelUrl}}),
_.E("design:type",String)],rR.prototype,"impersonatedChannelUrlRedux",void 0);_.x([_.g(),_.E("design:type",Object)],rR.prototype,"data",void 0);_.x([_.O2("#text-input"),_.E("design:type",Object)],rR.prototype,"channelUrlInput",void 0);_.x([_.T4("impersonatedChannelUrl"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],rR.prototype,"handleImpersonatedChannelUrlChanged",null);
rR=_.x([_.f({is:"ytd-report-channel-modal-impersonation-renderer",disableElementRegistration:!0})],rR);
_.C(rR,"ytd-report-channel-modal-impersonation-renderer",function(){if(NWn!==void 0)return NWn;var S=document.createElement("template");_.h(S,'\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');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);return NWn=S},{mode:1});var BWL;var qjn;var GO=function(){return _.w.apply(this,arguments)||this};
_.r(GO,_.w);GO.prototype.onCheckboxToggled=function(S){var p,U,Y=(U=_.b((p=this.data)==null?void 0:p.video,_.ZH))==null?void 0:U.videoId;Y&&this.ytdReduxBehavior.dispatch(S.target.checked?_.S4({type:"VIDEO_SELECTED",payload:Y}):_.S4({type:"VIDEO_UNSELECTED",payload:Y}))};
GO.prototype.configureRendererStamper=function(){return{video:{id:"video",mapping:{videoRenderer:{component:"ytd-video-renderer",params:{isPostCompactVideo:!0}}}}}};
_.$u.Object.defineProperties(GO.prototype,{video:{configurable:!0,enumerable:!0,get:function(){var S,p=(S=this.data)==null?void 0:S.video;if(!p)return{};var U;S=(U=_.b(p,_.ZH))==null?void 0:U.navigationEndpoint;if(!S)return p;_.b(S==null?void 0:S.commandMetadata,_.NU)&&(_.b(S.commandMetadata,_.NU).ignoreNavigation=!0);return p}}});
_.x([_.g({reflectToAttribute:!0,selector:function(S,p){return p in S.reportChannelAbuse.selectedVideoIds},
selectorArgs:["data.video.videoRenderer.videoId"]}),_.E("design:type",Boolean)],GO.prototype,"checked",void 0);_.x([_.g(),_.E("design:type",Object)],GO.prototype,"data",void 0);_.x([_.e("data"),_.E("design:type",Object),_.E("design:paramtypes",[])],GO.prototype,"video",null);_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],GO.prototype,"ytRendererBehavior",void 0);_.x([_.F(_.qH.YtRendererstamperBehavior),_.E("design:type",Object)],GO.prototype,"ytRendererstamperBehavior",void 0);
_.x([_.F(_.Xh),_.E("design:type",Object)],GO.prototype,"ytdReduxBehavior",void 0);GO=_.x([_.f({is:"ytd-selectable-video-renderer",disableElementRegistration:!0})],GO);
_.C(GO,"ytd-selectable-video-renderer",function(){if(qjn!==void 0)return qjn;var S=document.createElement("template");_.h(S,'\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');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);return qjn=S},{mode:1});var hm=function(){var S=_.w.apply(this,arguments)||this;S.monitorScroll=!0;return S};
_.r(hm,_.w);hm.prototype.configureRendererStamper=function(){return{"data.selectableVideos":{id:"selectable-videos",mapping:{selectableVideoRenderer:{component:"ytd-selectable-video-renderer"}},events:!0}}};
_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],hm.prototype,"ytRendererBehavior",void 0);_.x([_.F(_.qH.YtRendererstamperBehavior),_.E("design:type",Object)],hm.prototype,"ytRendererstamperBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],hm.prototype,"data",void 0);hm=_.x([_.f({is:"ytd-selectable-video-list-renderer",disableElementRegistration:!0})],hm);
_.C(hm,"ytd-selectable-video-list-renderer",function(){if(BWL!==void 0)return BWL;var S=document.createElement("template");_.h(S,'\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');
S.content.insertBefore(_.t().content.cloneNode(!0),S.content.firstChild);return BWL=S},{mode:1});var AtA;_.Ry("multiPageMenuSectionItems","toggleItemRenderer","ytd-toggle-item-renderer");var Rz=function(){return _.w.apply(this,arguments)||this};
_.r(Rz,_.w);Rz.prototype.onChange=function(S){if(S=_.mF(S).checked?this.data.toggleOnActions:this.data.toggleOffActions)if(_.y("kevlar_command_handler_migration_killswitch"))_.Lp(this.hostElement,S,this.hostElement);else{S=_.d(S);for(var p=S.next();!p.done;p=S.next())this.ytComponentBehavior.resolveCommand(p.value)}};
Rz.prototype.isEnabled=function(){return!!this.data.toggleOnActions||!!this.data.toggleOffActions};
Rz.prototype.updateDataToggledFromBinding=function(S){this.set("data.toggled",S.detail.value)};
_.x([_.F(_.eL.YtComponentBehavior),_.E("design:type",Object)],Rz.prototype,"ytComponentBehavior",void 0);_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],Rz.prototype,"ytRendererBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],Rz.prototype,"data",void 0);_.x([_.g({computed:"isEnabled(data)"}),_.E("design:type",Boolean)],Rz.prototype,"enabled",void 0);Rz=_.x([_.f({is:"ytd-toggle-item-renderer",disableElementRegistration:!0})],Rz);
_.C(Rz,"ytd-toggle-item-renderer",function(){if(AtA!==void 0)return AtA;var S=document.createElement("template");_.h(S,'\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');
S.content.insertBefore(_.t().content.cloneNode(!0),S.content.firstChild);return AtA=S},{mode:1});var tNL;var ctP;var SsP;var FS=function(){var S=_.w.apply(this,arguments)||this;S.setVisible=!1;S.boundOnSubmitButtonClick=function(){S.onSubmitButtonClick()};
S.actionMap={"yt-survey-flow-step-option-changed":"handleSurveyFlowStepOptionChanged","yt-signal-action-submit-form":"handleSignalActionSubmitForm"};return S};
_.r(FS,_.w);FS.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}}}}}};
FS.prototype.handleSurveyFlowStepOptionChanged=function(){this.setVisible=!0};
FS.prototype.onSubmitButtonClick=function(){var S;((S=this.data)==null?0:S.submitEndpoint)&&!_.y("enable_ytc_refunds_submit_form_signal_action")&&_.Yd(this.hostElement,[this.data.submitEndpoint,{formData:{ypcBrowseFormData:{problemFlowFormData:{surveyFeedbackData:this.surveyFeedbackData}}}}])};
FS.prototype.handleSignalActionSubmitForm=function(){var S;((S=this.data)==null?0:S.submitEndpoint)&&_.Yd(this.hostElement,[this.data.submitEndpoint,{formData:{ypcBrowseFormData:{problemFlowFormData:{surveyFeedbackData:this.surveyFeedbackData}}}}])};
_.$u.Object.defineProperties(FS.prototype,{visibilityHidden:{configurable:!0,enumerable:!0,get:function(){var S;return!((S=this.data)==null||!S.hiddenByDefault)&&!this.setVisible}}});
_.x([_.F(_.Aj.YtActionHandlerBehavior),_.E("design:type",Object)],FS.prototype,"ytActionHandlerBehavior",void 0);_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],FS.prototype,"ytRendererBehavior",void 0);_.x([_.F(_.qH.YtRendererstamperBehavior),_.E("design:type",Object)],FS.prototype,"ytRendererstamperBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],FS.prototype,"setVisible",void 0);_.x([_.g(),_.E("design:type",Object)],FS.prototype,"data",void 0);
_.x([_.g(),_.E("design:type",Object)],FS.prototype,"surveyFeedbackData",void 0);_.x([_.g(),_.E("design:type",Object)],FS.prototype,"boundOnSubmitButtonClick",void 0);_.x([_.g({reflectToAttribute:!0}),_.e("data","setVisible"),_.E("design:type",Object),_.E("design:paramtypes",[])],FS.prototype,"visibilityHidden",null);FS=_.x([_.FB({is:"yt-flow-footer-renderer",disableElementRegistration:!0})],FS);
_.C(FS,"yt-flow-footer-renderer",function(){if(SsP===void 0){var S=document.createElement("template");_.h(S,'\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>');
S.content.insertBefore(_.t().content.cloneNode(!0),S.content.firstChild);var p=S.content,U=p.insertBefore;ctP===void 0&&(ctP=document.createElement("template"));var Y=ctP;U.call(p,Y.content.cloneNode(!0),S.content.firstChild);SsP=S}S=SsP;return S},{mode:2});var XS=function(){return _.w.apply(this,arguments)||this};
_.r(XS,_.w);_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],XS.prototype,"ytRendererBehavior",void 0);_.x([_.F(_.Xh),_.E("design:type",Object)],XS.prototype,"ytdReduxBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],XS.prototype,"data",void 0);_.x([_.g({selector:function(S){return S.ypc.surveyFeedbackData}}),
_.E("design:type",Object)],XS.prototype,"surveyFeedbackData",void 0);XS=_.x([_.f({disableElementRegistration:!0,is:"ytd-flow-footer-renderer"})],XS);
_.C(XS,"ytd-flow-footer-renderer",function(){if(tNL!==void 0)return tNL;var S=document.createElement("template");_.h(S,'\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');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);return tNL=S},{mode:_.UW("kevlar_poly_si_batch_j025")?1:2});var pLL;var Ubo;var Pb=function(){var S=_.w.apply(this,arguments)||this;S.actionMap={"yt-broadcast-user-invalidation-action":"updateMenu_","yt-hide-enclosing-action":"handleHideEnclosingAction_"};return S};
_.r(Pb,_.w);_.M=Pb.prototype;_.M.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:_.Fc("multiPageMenuSectionItems")}}};
_.M.handleHideEnclosingAction_=function(S){if(this.data&&this.data.items)for(var p=0;p<this.data.items.length;p++){var U=this.data.items[p].notificationRenderer;if(U&&U.notificationId==S.hideEnclosingAction.notificationId){this.splice("data.items",p,1);_.St(this.hostElement,"yt-close-popup-action",["ytd-menu-popup-renderer"]);this.maybeHideNotificationSection_();break}}};
_.M.maybeHideNotificationSection_=function(){this.data&&this.data.items&&this.data.items.length==0&&_.Yk(this.hostElement,"hidden",!0)};
_.M.updateMenu_=function(S){if(this.ytRendererBehavior.parentComponent.isPopUpOpen&&this.data&&this.data.continuations&&S&&!S.doNotRefreshInbox){S=this.data.continuations;for(var p=0;p<S.length;p++)if(S[p].invalidationContinuationData){var U=void 0;var Y=(U=S[p].invalidationContinuationData)==null?void 0:U.continuation;break}S=_.h9.clone(this.data.continuationUpdateEndpoint||null);S.continuation=Y;S.click_tracking_params=this.data.trackingParams;_.Yd(this.hostElement,[S])}};
_.M.onServiceRequestCompleted_=function(S,p){if(this.data&&(S=p.actions)){p=0;for(var U=S.length;p<U;p++){var Y=_.b(S[p],_.BIH);if(!Y)break;if((Y.target==="CONTINUATION_TARGET_NOTIFICATION_MENU"||Y.target==="CONTINUATION_TARGET_CONVERSATION_MENU")&&Y.continuationItems&&this.data.items){var L=this.data.items.length-1;this.data.items[L].continuationItemRenderer&&this.splice.apply(this,["data.items",L,1].concat(Y.continuationItems))}}}};
Pb.prototype.onServiceRequestCompleted_=Pb.prototype.onServiceRequestCompleted_;_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],Pb.prototype,"ytRendererBehavior",void 0);_.x([_.F(_.qH.YtRendererstamperBehavior),_.E("design:type",Object)],Pb.prototype,"ytRendererstamperBehavior",void 0);_.x([_.F(_.Aj.YtActionHandlerBehavior),_.E("design:type",Object)],Pb.prototype,"ytActionHandlerBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],Pb.prototype,"data",void 0);
_.x([_.Vd("yt-service-request-completed"),_.E("design:type",Function),_.E("design:paramtypes",[CustomEvent,_.xL]),_.E("design:returntype")],Pb.prototype,"onServiceRequestCompleted_",null);Pb=_.x([_.FB({is:"yt-multi-page-menu-section-renderer",disableElementRegistration:!0})],Pb);
_.pz()(Pb,"yt-multi-page-menu-section-renderer",function(){if(Ubo===void 0){var S=document.createElement("template");_.h(S,'\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');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);var p=S.content,U=p.insertBefore;pLL===void 0&&(pLL=document.createElement("template"));var Y=pLL;U.call(p,Y.content.cloneNode(!0),S.content.firstChild);Ubo=S}S=Ubo;return S},{allowedProps:["data"],
mode:2});var YsA;var LxY;var ZQ=function(){return _.w.apply(this,arguments)||this};
_.r(ZQ,_.w);ZQ.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{"dialog-dismiss":!0},params:{noink:!0}}}}}};
_.$u.Object.defineProperties(ZQ.prototype,{showProgressBar:{configurable:!0,enumerable:!0,get:function(){var S;return((S=this.data)==null?void 0:S.progress)!=null}},
progress:{configurable:!0,enumerable:!0,get:function(){var S;return((S=this.data)==null?void 0:S.progress)==null?0:this.data.progress*100}}});
_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],ZQ.prototype,"ytRendererBehavior",void 0);_.x([_.F(_.qH.YtRendererstamperBehavior),_.E("design:type",Object)],ZQ.prototype,"ytRendererstamperBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],ZQ.prototype,"data",void 0);_.x([_.e("data.progress"),_.E("design:type",Boolean),_.E("design:paramtypes",[])],ZQ.prototype,"showProgressBar",null);
_.x([_.e("data.progress"),_.E("design:type",Number),_.E("design:paramtypes",[])],ZQ.prototype,"progress",null);ZQ=_.x([_.FB({is:"yt-flow-header-renderer",disableElementRegistration:!0})],ZQ);
_.C(ZQ,"yt-flow-header-renderer",function(){if(LxY===void 0){var S=document.createElement("template");_.h(S,'\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');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);var p=S.content,U=p.insertBefore;YsA===void 0&&(YsA=document.createElement("template"));var Y=YsA;U.call(p,Y.content.cloneNode(!0),S.content.firstChild);LxY=S}S=LxY;return S},{mode:2});var MjP;var Iho;var sZ=function(){return _.w.apply(this,arguments)||this};
_.r(sZ,_.w);sZ.prototype.configureRendererStamper=function(){return{"data.text":{id:"text",mapping:{cardItemTextCollectionRenderer:{component:"yt-card-item-text-collection-renderer"}}}}};
_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],sZ.prototype,"ytRendererBehavior",void 0);_.x([_.F(_.qH.YtRendererstamperBehavior),_.E("design:type",Object)],sZ.prototype,"ytRendererstamperBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],sZ.prototype,"data",void 0);sZ=_.x([_.FB({is:"yt-post-confirmation-flow-step-renderer",disableElementRegistration:!0})],sZ);
_.C(sZ,"yt-post-confirmation-flow-step-renderer",function(){if(Iho===void 0){var S=document.createElement("template");_.h(S,'\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>');
S.content.insertBefore(_.t().content.cloneNode(!0),S.content.firstChild);var p=S.content,U=p.insertBefore;MjP===void 0&&(MjP=document.createElement("template"));var Y=MjP;U.call(p,Y.content.cloneNode(!0),S.content.firstChild);Iho=S}S=Iho;return S},{mode:2});var dbo;var VjE;var eh=function(){return _.w.apply(this,arguments)||this};
_.r(eh,_.w);
eh.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"}}}}};
_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],eh.prototype,"ytRendererBehavior",void 0);_.x([_.F(_.qH.YtRendererstamperBehavior),_.E("design:type",Object)],eh.prototype,"ytRendererstamperBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],eh.prototype,"data",void 0);eh=_.x([_.FB({is:"yt-refund-confirmation-flow-step-renderer",disableElementRegistration:!0})],eh);
_.C(eh,"yt-refund-confirmation-flow-step-renderer",function(){if(VjE===void 0){var S=document.createElement("template");_.h(S,'\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>');
S.content.insertBefore(_.t().content.cloneNode(!0),S.content.firstChild);var p=S.content,U=p.insertBefore;dbo===void 0&&(dbo=document.createElement("template"));var Y=dbo;U.call(p,Y.content.cloneNode(!0),S.content.firstChild);VjE=S}S=VjE;return S},{mode:2});_.cH($UA);_.cH(i9J);var Nnd=_.zy({avatarViewModel:_.bS});_.cH(Bn5);var q$5=_.zy({commentInteractionViewModel:i9J,sharedSubscriptionViewModel:Bn5,buttonViewModel:_.PG});_.cH(A8X);_.cH(tmA);_.cH(c8o);_.cH(ShX);_.cH(pdt);var Uwq=_.zy({profileIdentityInfoViewModel:_.Ioq,profileInfoViewModel:pdt});_.cH(YhY);_.Ls(YhY,"yt-profile-card-view-model",{propNames:["data"]});var gR=function(){var S=_.w.apply(this,arguments)||this;S.enableFocusFix=_.y("music_web_enable_focus_on_setting_menu_fix")&&_.ub("IS_MOBILE_WEB",!1);S.covered=!1;S.hideMenu=!1;S.isCommentNotificationOnProfileCard=!1;S.scrolledByTouch=!1;S.disableBackdropFilter=_.y("web_disable_backdrop_filter");S.HIGH_PRIORITY_NOTIFICATION_DISPLAY_TIMEOUT_MS=4E3;return S};
_.r(gR,_.w);_.M=gR.prototype;
_.M.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"}}}};
_.M.ready=function(){var S=this;this.JSC$17946_containerElement.addEventListener("scroll",function(){S.ytRendererBehavior.markDirty()})};
_.M.attributeChanged=function(S,p){S==="menu-style"&&_.St(this.hostElement,"yt-multi-page-menu-closed-action",[p])};
_.M.detached=function(){this.hostElement.removeEventListener("yt-rendererstamper-finished",_.d9(this,this.focusOnStampFinished))};
_.M.focusFirstItem=function(){this.doFocus();this.hostElement.addEventListener("yt-rendererstamper-finished",_.d9(this,this.focusOnStampFinished))};
_.M.reset=function(){this.closeJobId&&(_.PA.cancelJob(this.closeJobId),this.closeJobId=0);this.covered=!1};
_.M.focusOnStampFinished=function(S){S.detail.container===this.sectionsElement&&(this.hostElement.removeEventListener("yt-rendererstamper-finished",_.d9(this,this.focusOnStampFinished)),this.doFocus())};
_.M.doFocus=function(){var S=_.VMt(this.sectionsElement);S.length&&S[0].focus()};
_.M.computeMenuStyle=function(S){return S?S.toLowerCase().replace(/_/g,"-"):""};
_.M.computeIsCommentNotificationOnProfileCard=function(S){return _.y("enable_profile_cards_on_comments")&&S.style==="MULTI_PAGE_MENU_STYLE_TYPE_PROFILE_CARD_COMMENTS"};
_.M.computeHideMenu=function(S,p){return S||!(!p||!p.showLoadingSpinner)};
_.M.onPopupClosed=function(){this.isPopUpOpen=!1;_.St(this.hostElement,"yt-multi-page-menu-closed-action",[this.menuStyle])};
_.M.onPopupOpened=function(S,p){this.isPopUpOpen=!0;p.is==="ytd-multi-page-menu-renderer"&&(this.reset(),_.cv(this.hostElement,"yt-refit"),this.enableFocusFix&&this.doFocus(),this.data.style==="MULTI_PAGE_MENU_STYLE_TYPE_REPORT_CHANNEL"&&this.ytdReduxBehavior.dispatch(_.S4({type:"CHANNEL_REPORT_RESET"})))};
_.M.onYtNavigate=function(S,p){this.shouldCloseOnNavigateEvent(p.endpoint)&&_.St(this.hostElement,"yt-close-all-popups-action")};
_.M.handleEndpoint=function(S){S=_.b(S,_.G1);!this.isCommentNotificationOnProfileCard&&S&&(this.spinnerElement.hidden=!1,this.headerElement.hidden=!0,this.JSC$17946_containerElement.hidden=!0,this.submenuElement.hidden=!0)};
_.M.handleActions=function(S){for(var p=0,U=S.length;p<U;p++){var Y=_.b(S[p],niE);Y&&this.handleGetMultiPageMenuAction(Y);(Y=_.b(S[p],_.BIH))&&this.handleAppendContinuationItemsAction(Y)}};
_.M.onServiceRequestSentOrCompleted=function(S,p){S.detail&&S.detail.endpoint&&this.handleEndpoint(S.detail.endpoint);p.actions&&this.handleActions(p.actions)};
_.M.handleGetMultiPageMenuAction=function(S){var p=document.createElement("ytd-multi-page-menu-renderer");this.refitAfterRender();this.emptySubmenuContainer();_.tB(this.submenuElement).appendChild(p);(S=S.menu.multiPageMenuRenderer)&&this.logSubmenu(S);p.data=S;p.covered=!1;this.covered=!0;this.spinnerElement.hidden=!0};
_.M.handleAppendContinuationItemsAction=function(S){if(this.data&&S.target==="CONTINUATION_TARGET_NOTIFICATION_MENU"&&S.continuationItems&&this.data.sections){var p=this.data.sections.length-1;this.data.sections[p].continuationItemRenderer&&(this.splice("data.sections",this.data.sections.length-1,1),p--);if(this.data.sections[p].multiPageMenuNotificationSectionRenderer&&S.continuationItems){S=_.d(S==null?void 0:S.continuationItems);for(var U=S.next();!U.done;U=S.next())if(U=U.value,_.b(U,oiJ)){var Y=
void 0,L=void 0,I=void 0,V=void 0,W=void 0;((Y=this)==null?0:(L=Y.data)==null?0:(I=L.sections)==null?0:(V=I[p])==null?0:(W=V.multiPageMenuNotificationSectionRenderer)==null?0:W.items)&&this.push("data.sections."+p+".multiPageMenuNotificationSectionRenderer.items",U)}else if(_.b(U,_.wge)||_.b(U,_.SC))this.push("data.sections",U),p++}}};
_.M.logSubmenu=function(S){if(!_.y("kevlar_multi_page_menu_sub_page_loggin_killswitch")){var p=this.ytRendererBehavior.getScreenLayer(),U=_.X$(p),Y=_.F$(p);if((S=S.trackingParams)&&U&&Y){var L=_.JS(S);_.y("combine_ve_grafts")?_.HX().graftServerVe(S,Y,p):_.wB(U,Y,L)}}};
_.M.emptySubmenuContainer=function(){for(var S=_.tB(this.submenuElement);S.firstChild;)S.removeChild(S.firstChild)};
_.M.onMenuBackTap=function(S){_.cv(this.hostElement,"yt-submenu-closed");S.stopPropagation()};
_.M.onSubmenuClosed=function(S){_.mF(S)!==this.hostElement&&(this.covered=!1,_.cv(this.hostElement,"yt-refit"),S.stopPropagation())};
_.M.onRetrieveLocation=function(S,p){p.hasComments&&(p.locationRetrieved("/comment_service_ajax?action_get_comments=1&pbj=1",void 0),S.stopPropagation())};
_.M.shouldCloseOnNavigateEvent=function(S){if(!S)return!0;if(_.b(S,_.ggd)||_.b(S,_.ulP)||_.b(S,_.eLI)||_.b(S,_.Cv))return!1;var p;return((p=_.b(S==null?void 0:S.commandMetadata,_.NU))==null?0:p.ignoreNavigation)?!1:!0};
_.M.onContainerTouchStart=function(){this.scrolledByTouch=!0};
_.M.onContainerTouchEnd=function(){this.scrolledByTouch=!1};
_.M.refitAfterRender=function(){var S=this;_.oH(this,function(){_.cv(S.hostElement,"yt-refit")})};
gR.prototype.refitAfterRender=gR.prototype.refitAfterRender;gR.prototype.onRetrieveLocation=gR.prototype.onRetrieveLocation;gR.prototype.onSubmenuClosed=gR.prototype.onSubmenuClosed;gR.prototype.onMenuBackTap=gR.prototype.onMenuBackTap;gR.prototype.onServiceRequestSentOrCompleted=gR.prototype.onServiceRequestSentOrCompleted;gR.prototype.onYtNavigate=gR.prototype.onYtNavigate;gR.prototype.onPopupOpened=gR.prototype.onPopupOpened;gR.prototype.onPopupClosed=gR.prototype.onPopupClosed;
_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],gR.prototype,"ytRendererBehavior",void 0);_.x([_.F(_.kP.YtEventForwardingBehavior),_.E("design:type",Object)],gR.prototype,"ytEventForwardingBehavior",void 0);_.x([_.F(_.qH.YtRendererstamperBehavior),_.E("design:type",Object)],gR.prototype,"ytRendererstamperBehavior",void 0);_.x([_.F(_.Xh),_.E("design:type",Object)],gR.prototype,"ytdReduxBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],gR.prototype,"data",void 0);
_.x([_.g(),_.E("design:type",Object)],gR.prototype,"enableFocusFix",void 0);_.x([_.g(),_.E("design:type",Object)],gR.prototype,"covered",void 0);_.x([_.g({computed:"computeHideMenu(covered, data)"}),_.E("design:type",Object)],gR.prototype,"hideMenu",void 0);_.x([_.g({reflectToAttribute:!0,computed:"computeMenuStyle(data.style)"}),_.E("design:type",String)],gR.prototype,"menuStyle",void 0);
_.x([_.g({computed:"computeIsCommentNotificationOnProfileCard(data)"}),_.E("design:type",Object)],gR.prototype,"isCommentNotificationOnProfileCard",void 0);_.x([_.g(),_.E("design:type",Boolean)],gR.prototype,"isPopUpOpen",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],gR.prototype,"scrolledByTouch",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],gR.prototype,"disableBackdropFilter",void 0);
_.x([_.O2("#sections"),_.E("design:type",HTMLElement)],gR.prototype,"sectionsElement",void 0);_.x([_.O2("#spinner"),_.E("design:type",HTMLElement)],gR.prototype,"spinnerElement",void 0);_.x([_.O2("#header"),_.E("design:type",HTMLElement)],gR.prototype,"headerElement",void 0);_.x([_.O2("#container"),_.E("design:type",HTMLElement)],gR.prototype,"JSC$17946_containerElement",void 0);_.x([_.O2("#submenu"),_.E("design:type",HTMLElement)],gR.prototype,"submenuElement",void 0);
_.x([_.Vd("yt-popup-closed"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],gR.prototype,"onPopupClosed",null);_.x([_.Vd("yt-popup-opened"),_.E("design:type",Function),_.E("design:paramtypes",[CustomEvent,Object]),_.E("design:returntype")],gR.prototype,"onPopupOpened",null);_.x([_.Vd("yt-navigate"),_.E("design:type",Function),_.E("design:paramtypes",[CustomEvent,Object]),_.E("design:returntype")],gR.prototype,"onYtNavigate",null);
_.x([_.Vd("yt-service-request-completed"),_.Vd("yt-service-request-sent"),_.E("design:type",Function),_.E("design:paramtypes",[CustomEvent,_.xL]),_.E("design:returntype")],gR.prototype,"onServiceRequestSentOrCompleted",null);_.x([_.Vd("yt-menu-back-tapped"),_.E("design:type",Function),_.E("design:paramtypes",[CustomEvent]),_.E("design:returntype")],gR.prototype,"onMenuBackTap",null);
_.x([_.Vd("yt-submenu-closed"),_.E("design:type",Function),_.E("design:paramtypes",[CustomEvent]),_.E("design:returntype")],gR.prototype,"onSubmenuClosed",null);_.x([_.Vd("yt-retrieve-location"),_.E("design:type",Function),_.E("design:paramtypes",[CustomEvent,Object]),_.E("design:returntype")],gR.prototype,"onRetrieveLocation",null);_.x([_.T4("data"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],gR.prototype,"refitAfterRender",null);
gR=_.x([_.f({is:"ytd-multi-page-menu-renderer",disableElementRegistration:!0})],gR);
_.C(gR,"ytd-multi-page-menu-renderer",function(){if(xoo!==void 0)return xoo;var S=document.createElement("template");_.h(S,'\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');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);return xoo=S},{mode:1});var Trt;var uv=function(){var S=_.w.apply(this,arguments)||this;S.actionMap={"yt-multi-page-menu-closed-action":"handleTopbarMenuClosedAction","yt-update-topbar-avatar-action":"handleUpdateTopbarAvatarAction"};return S};
_.r(uv,_.w);_.M=uv.prototype;_.M.created=function(){this.showTooltips=!0};
_.M.computeAccessibility_=function(S){return this.get("accessibility.accessibilityData",S)||null};
_.M.onTap=function(){var S=_.pp(this.hostElement,"yt-get-popup-opened-action",["ytd-multi-page-menu-renderer"]);this.toggleIconState(!0);if(S&&S.length===1&&S[0])_.St(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"]);else{var p;if((p=this.data)==null?0:p.menuRenderer)this.ytdOpenPopupBehavior.openPopup({openPopupAction:{popupType:"DROPDOWN",popup:this.data.menuRenderer}});else{var U;((U=this.data)==null?0:U.menuRequest)&&_.Yd(this.hostElement,[this.data.menuRequest])}}};
_.M.handleTopbarMenuClosedAction=function(S){var p,U;(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(S)===((p=this.data)==null?void 0:(U=p.icon)==null?void 0:U.iconType)&&this.toggleIconState(!1)};
_.M.toggleIconState=function(S){_.y("kevlar_system_icons")&&this.iconButton&&(this.iconButton.pressed=S)};
_.M.handleUpdateTopbarAvatarAction=function(S){var p;S=(p=_.b(S,WlE))==null?void 0:p.avatarUrl;var U,Y;p=(U=this.data)==null?void 0:(Y=U.avatar)==null?void 0:Y.thumbnails;S&&p&&(U={thumbnails:[Object.assign({},p[0],{url:S})]},this.set("data.avatar",U))};
_.$u.Object.defineProperties(uv.prototype,{container:{configurable:!0,enumerable:!0,get:function(){return _.tB(this.hostElement).querySelector("#button")}}});
uv.prototype.onTap=uv.prototype.onTap;_.x([_.F(_.Aj.YtActionHandlerBehavior),_.E("design:type",Object)],uv.prototype,"ytActionHandlerBehavior",void 0);_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],uv.prototype,"ytRendererBehavior",void 0);_.x([_.F(_.xK),_.E("design:type",Object)],uv.prototype,"ytdOpenPopupBehavior",void 0);_.x([_.F(_.Vxj.YtButtonBehavior),_.E("design:type",Object)],uv.prototype,"ytButtonBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],uv.prototype,"data",void 0);
_.x([_.O2("yt-icon-button#button"),_.E("design:type",Object)],uv.prototype,"iconButton",void 0);_.x([_.Vd("tap"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],uv.prototype,"onTap",null);uv=_.x([_.f({is:"ytd-topbar-menu-button-renderer",disableElementRegistration:!0})],uv);
_.C(uv,"ytd-topbar-menu-button-renderer",function(){if(Trt!==void 0)return Trt;var S=document.createElement("template");_.h(S,'\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');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);return Trt=S},{mode:1});var Wxn;var wR=function(){return _.w.apply(this,arguments)||this};
_.r(wR,_.w);wR.prototype.getSelected=function(){return this.reasons.selected};
_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],wR.prototype,"ytRendererBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],wR.prototype,"data",void 0);_.x([_.O2("#reasons"),_.E("design:type",Object)],wR.prototype,"reasons",void 0);wR=_.x([_.f({is:"ytd-ad-feedback-content",disableElementRegistration:!0})],wR);
_.C(wR,"ytd-ad-feedback-content",function(){if(Wxn!==void 0)return Wxn;var S=document.createElement("template");_.h(S,'\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');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);return Wxn=S},{mode:1});var Ojd;var lv=function(){return _.w.apply(this,arguments)||this};
_.r(lv,_.w);_.M=lv.prototype;_.M.onPopupOpened=function(){_.St(this.hostElement,"yt-mute-ad-action",["ytd-ad-feedback-renderer",this])};
_.M.computeConfirmButton=function(S){return{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:S.confirmLabel}};
_.M.computeCancelButton=function(S){return{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:S.cancelLabel}};
_.M.onConfirmTap=function(){var S=this.content.getSelected();S!==void 0&&(S=this.data.reasons[S].endpoint)&&(_.tW().resolve(_.cQ).resolveCommand(S,{form:{element:this.hostElement}}),_.St(this.hostElement,"yt-close-popup-action"),this.sendFeedbackSubmitToastAction())};
_.M.sendFeedbackSubmitToastAction=function(){var S;(S=this.data)!=null&&S.completionMessage&&_.St(this.hostElement,"yt-open-popup-action",[_.iM(this.data.completionMessage),this])};
_.M.onCancelTap=function(){_.St(this.hostElement,"yt-close-popup-action")};
lv.prototype.onPopupOpened=lv.prototype.onPopupOpened;_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],lv.prototype,"ytRendererBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],lv.prototype,"data",void 0);_.x([_.O2("#content"),_.E("design:type",Object)],lv.prototype,"content",void 0);_.x([_.Vd("yt-popup-opened"),_.E("design:type",Function),_.E("design:paramtypes",[CustomEvent]),_.E("design:returntype")],lv.prototype,"onPopupOpened",null);
lv=_.x([_.f({is:"ytd-ad-feedback-renderer",disableElementRegistration:!0})],lv);
_.C(lv,"ytd-ad-feedback-renderer",function(){if(Ojd!==void 0)return Ojd;var S=document.createElement("template");_.h(S,'\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');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);return Ojd=S},{mode:1});var kWs;var az=function(){return _.w.apply(this,arguments)||this};
_.r(az,_.w);_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],az.prototype,"ytRendererBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],az.prototype,"data",void 0);az=_.x([_.f({is:"ytd-ad-info-dialog-content",disableElementRegistration:!0})],az);
_.C(az,"ytd-ad-info-dialog-content",function(){if(kWs!==void 0)return kWs;var S=document.createElement("template");_.h(S,'\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');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);return kWs=S},{mode:1});var Hjd;var fe=function(){return _.w.apply(this,arguments)||this};
_.r(fe,_.w);fe.prototype.computeConfirmButton=function(S){return{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:S.confirmLabel}};
fe.prototype.onConfirmTap=function(){_.St(this.hostElement,"yt-close-popup-action",["ytd-ad-info-dialog-renderer"])};
fe.prototype.computeShouldShowTitle=function(){var S;return!((S=this.data)==null||!S.title)};
fe.prototype.onPopupClosed=function(){this.data&&this.data.confirmServiceEndpoint&&_.tW().resolve(_.cQ).resolveCommand(this.data.confirmServiceEndpoint,{form:{element:this.hostElement}})};
fe.prototype.onPopupClosed=fe.prototype.onPopupClosed;_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],fe.prototype,"ytRendererBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],fe.prototype,"data",void 0);_.x([_.Vd("yt-popup-closed"),_.E("design:type",Function),_.E("design:paramtypes",[CustomEvent]),_.E("design:returntype")],fe.prototype,"onPopupClosed",null);fe=_.x([_.f({is:"ytd-ad-info-dialog-renderer",disableElementRegistration:!0})],fe);
_.C(fe,"ytd-ad-info-dialog-renderer",function(){if(Hjd!==void 0)return Hjd;var S=document.createElement("template");_.h(S,'\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');
S.content.insertBefore(_.t().content.cloneNode(!0),S.content.firstChild);return Hjd=S},{mode:1});var DbL;var Ce=function(){var S=_.w.apply(this,arguments)||this;S.actionButtonClass="action-button";S.dismissButtonId="dismiss-button";S.dialogDismiss=!0;return S};
_.r(Ce,_.w);_.M=Ce.prototype;_.M.computeInPlayer=function(S){return(S==null?void 0:S.displayType)==="ENFORCEMENT_MESSAGE_VIEW_MODEL_DISPLAY_TYPE_PLAYER"};
_.M.computedLogo=function(){var S,p;return this.isDarkTheme()?(S=this.data)==null?void 0:S.logoDark:(p=this.data)==null?void 0:p.logo};
_.M.computedHeaderImage=function(){var S,p;return this.isDarkTheme()?(S=this.data)==null?void 0:S.headerImageDark:(p=this.data)==null?void 0:p.headerImage};
_.M.computeLogoIconId=function(){var S,p,U,Y=(S=this.computedLogo())==null?void 0:(p=S.sources)==null?void 0:(U=p[0])==null?void 0:U.height;return Y&&Y%31===0?"logo-icon-with-padding":"logo-icon"};
_.M.computeLogoIconHeight=function(){var S,p,U,Y=(S=this.computedLogo())==null?void 0:(p=S.sources)==null?void 0:(U=p[0])==null?void 0:U.height;return Y&&Y%31===0?"31":"24"};
_.M.onPopupClosed=function(){_.tW().resolve(_.UG).dispose()};
_.M.isDarkTheme=function(){return document.documentElement.hasAttribute("dark")||this.inPlayer};
_.M.onShow=function(){this.inPlayer&&_.Tv(6)};
_.M.impressionLog=function(){if(this.data&&this.data.impressionEndpoints)for(var S=0;S<this.data.impressionEndpoints.length;S++){var p=_.b(this.data.impressionEndpoints[S],_.Z$);p&&this.ytComponentBehavior.resolveCommand(p)}};
_.M.onDismissClicked=function(){getComputedStyle(this.dismissButton).getPropertyValue("pointer-events")!=="none"&&_.St(this.hostElement,"yt-close-popup-action",["ytd-enforcement-message-view-model"])};
_.$u.Object.defineProperties(Ce.prototype,{hasHeaderImage:{configurable:!0,enumerable:!0,get:function(){var S,p;return!((S=this.data)==null||!S.headerImageDark)&&!((p=this.data)==null||!p.headerImage)}},
hasPremiumButton:{configurable:!0,enumerable:!0,get:function(){var S;return!((S=this.data)==null||!S.secondaryButton)}}});
Ce.prototype.onPopupClosed=Ce.prototype.onPopupClosed;_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],Ce.prototype,"ytRendererBehavior",void 0);_.x([_.F(_.eL.YtComponentBehavior),_.E("design:type",Object)],Ce.prototype,"ytComponentBehavior",void 0);_.x([_.F(_.wk.YtVisibilityBehavior),_.E("design:type",Object)],Ce.prototype,"ytVisibilityBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],Ce.prototype,"data",void 0);
_.x([_.g(),_.E("design:type",Object)],Ce.prototype,"actionButtonClass",void 0);_.x([_.g(),_.E("design:type",Object)],Ce.prototype,"dismissButtonId",void 0);_.x([_.g(),_.E("design:type",Object)],Ce.prototype,"dialogDismiss",void 0);_.x([_.e("data"),_.E("design:type",Object),_.E("design:paramtypes",[])],Ce.prototype,"hasHeaderImage",null);_.x([_.e("data"),_.E("design:type",Object),_.E("design:paramtypes",[])],Ce.prototype,"hasPremiumButton",null);
_.x([_.g({reflectToAttribute:!0,computed:"computeInPlayer(data)"}),_.E("design:type",Boolean)],Ce.prototype,"inPlayer",void 0);_.x([_.O2("#dismiss-button"),_.E("design:type",HTMLElement)],Ce.prototype,"dismissButton",void 0);_.x([_.Vd("yt-popup-closed"),_.E("design:type",Function),_.E("design:paramtypes",[CustomEvent]),_.E("design:returntype")],Ce.prototype,"onPopupClosed",null);Ce=_.x([_.f({is:"ytd-enforcement-message-view-model",disableElementRegistration:!0})],Ce);
_.C(Ce,"ytd-enforcement-message-view-model",function(){if(DbL!==void 0)return DbL;var S=document.createElement("template");_.h(S,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-enforcement-message-view-model--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="container" class="style-scope ytd-enforcement-message-view-model">\n<div id="header" class="style-scope ytd-enforcement-message-view-model">\n  <yt-image data="[[computedLogo(data)]]" height$="[[computeLogoIconHeight()]]" id$="[[computeLogoIconId()]]" preserve-height="" class="style-scope ytd-enforcement-message-view-model">\n  </yt-image>\n  <yt-button-view-model id="[[dismissButtonId]]" data="[[data.dismissButton]]" icon="[[data.dismissButton.iconName]]" scoping-class-name="[[is]]" on-click="onDismissClicked" class="style-scope ytd-enforcement-message-view-model">\n  </yt-button-view-model>\n</div>\n\n<div id="header-image" hidden="[[!hasHeaderImage]]" class="style-scope ytd-enforcement-message-view-model">\n  <yt-image data="[[computedHeaderImage(data)]]" height="64" preserve-height="" class="style-scope ytd-enforcement-message-view-model">\n  </yt-image>\n</div>\n\n<div id="title" class="style-scope ytd-enforcement-message-view-model">\n  <yt-attributed-string data="[[data.title]]" class="style-scope ytd-enforcement-message-view-model"></yt-attributed-string>\n</div>\n\n<ul id="body" class="style-scope ytd-enforcement-message-view-model">\n  <template is="dom-repeat" items="[[data.bulletList.bulletListItems]]" as="item" class="style-scope ytd-enforcement-message-view-model">\n    <li class="style-scope ytd-enforcement-message-view-model">\n      <yt-attributed-string class="body-message style-scope ytd-enforcement-message-view-model" data="[[item.title]]"></yt-attributed-string>\n    </li>\n  </template>\n</ul>\n\n<div id="buttons" class="style-scope ytd-enforcement-message-view-model">\n  <yt-button-view-model classes="[[actionButtonClass]]" data="[[data.primaryButton]]" scoping-class-name="[[is]]" class="style-scope ytd-enforcement-message-view-model">\n  </yt-button-view-model>\n  <yt-button-view-model classes="[[actionButtonClass]]" data="[[data.secondaryButton]]" dialog-dismiss="[[dialogDismiss]]" hidden$="[[!hasPremiumButton]]" scoping-class-name="[[is]]" class="style-scope ytd-enforcement-message-view-model">\n  </yt-button-view-model>\n</div>\n\n<div id="divider" class="style-scope ytd-enforcement-message-view-model"></div>\n\n<div id="feedback" class="style-scope ytd-enforcement-message-view-model">\n  <yt-attributed-string id="feedback-message" data="[[data.feedbackMessage]]" class="style-scope ytd-enforcement-message-view-model">\n  </yt-attributed-string>\n</div>\n</div>');
S.content.insertBefore(_.t().content.cloneNode(!0),S.content.firstChild);return DbL=S},{mode:1});var zWs;var Qkq;var x$=function(){var S=_.w.apply(this,arguments)||this;S.TEST_ONLY={immediateValidation:function(){S.immediateValidation()},
onValidationResponse:function(p){S.onValidationResponse(p)},
onGenerateHandleFromNameResponse:function(p){S.onGenerateHandleFromNameResponse(p)}};
return S};
_.r(x$,_.w);_.M=x$.prototype;_.M.onValueChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("value-changed",{detail:{value:this.value,queueProperty:!0}}))};
_.M.validate=function(){this.immediateValidation()};
_.M.applyHandleEdit=function(){this.handleEdit!==void 0&&this.setHandleInputValue(this.handleEdit)};
_.M.setHandleInputValue=function(S){this.handleDir=this.getHandleDir(S);this.handleInput.value=S;this.validationState={status:"PENDING"};this.immediateValidation()};
_.M.getHandleDir=function(S){var p=S===""&&!1;return(p=_.pSE.test.call(_.pSE,S))?"rtl":"ltr"};
_.M.onDataChanged=function(){var S,p;this.handleDir=this.getHandleDir((p=(S=this.data)==null?void 0:S.handle)!=null?p:"");var U;this.validationState=((U=this.data)==null?0:U.handle)?{status:"UNKNOWN",handle:this.data.handle}:void 0;var Y;((Y=this.data)==null?0:Y.validateOnInit)&&this.immediateValidation()};
_.M.stopPropagation=function(S){S.stopPropagation()};
_.M.onInput=function(){var S;this.handleDir=this.getHandleDir((S=this.handleInput.value)!=null?S:"");this.wasEdited=!0;this.validationState={status:"PENDING"};this.delayedValidation()};
_.M.onFocusout=function(S){this.handleInput.contains(S.relatedTarget)||this.validationState!==void 0&&this.validationState.status!=="PENDING"||this.immediateValidation()};
_.M.delayedValidation=function(){var S,p;this.debouncedValidation((p=(S=this.data)==null?void 0:S.validationDelayMs)!=null?p:1E3)};
_.M.immediateValidation=function(){this.debouncedValidation(0)};
_.M.debouncedValidation=function(S){var p=this;_.w9(this,"debouncedValidation",function(){var U,Y=p.staticValidation((U=p.handleInput.value)!=null?U:"");if(Y!==void 0)p.validationState={status:"INVALID",errorIndicator:"BORDER",errorMessage:Y};else{var L;if((L=p.data)!=null&&L.validateChannelHandleCommand){p.validationState={status:"LOADING"};var I;p.ytComponentBehavior.resolveCommand(p.data.validateChannelHandleCommand,{form:{handle:(I=p.handleInput.value)!=null?I:""},commandController:{onSuccess:function(V,
W){p.onValidationResponse(W)},
onServerError:function(V,W){p.onValidationServerError(W)}}})}else p.handleUnexpectedValidationError(new _.y7("Missing validateChannelHandleCommand in ChannelHandleInputRenderer.",p.data))}},S)};
_.M.staticValidation=function(S){var p;if(((p=this.data)==null?void 0:p.channelHandleStaticValidationParams)!==void 0){p=this.data.channelHandleStaticValidationParams;if(this.validValueRegexp!==void 0&&!this.validValueRegexp.test(S)&&p.validValueRegexpErrorMessage!==void 0)return p.validValueRegexpErrorMessage;if(p.minLength!==void 0&&S.length<p.minLength&&p.minLengthErrorMessage!==void 0)return p.minLengthErrorMessage;if(p.maxLength!==void 0&&S.length>p.maxLength&&p.maxLengthErrorMessage!==void 0)return p.maxLengthErrorMessage}};
_.M.onValidationResponse=function(S){var p=_.b(S.result,OCA);p===void 0?this.handleUnexpectedValidationError(new _.y7("ValidateChannelHandleResponse does not contain ChannelHandleValidationResultRenderer.",S)):this.handleValidationResultRenderer(p)};
_.M.onValidationServerError=function(S){this.handleUnexpectedValidationError(new _.y7("ValidateChannelHandle request failed.",S))};
_.M.handleValidationResultRenderer=function(S){if(S.handle===void 0)this.handleUnexpectedValidationError(new _.y7("ChannelHandleValidationResultRenderer does not contain handle.",S));else if(S.handle===this.handleInput.value)switch(S.result){case "CHANNEL_HANDLE_VALIDATION_RESULT_OK":this.validationState={status:"OK",handle:S.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:S.errorMessage};break;case "CHANNEL_HANDLE_VALIDATION_RESULT_UNKNOWN":case void 0:this.handleUnexpectedValidationError(new _.y7("Unrecognized ChannelHandleValidationResult",S));break;default:_.WP(S.result)}};
_.M.handleUnexpectedValidationError=function(S){var p;this.validationState={status:"UNKNOWN",handle:(p=this.handleInput.value)!=null?p:""};_.eP(S)};
_.M.stopEventPropagation=function(S){S.stopPropagation()};
_.M.updateHandleOnChannelNameInputChange=function(S){if(!this.wasEdited){var p,U;this.debouncedGenerateHandleFromName(S,(U=(p=this.data)==null?void 0:p.validationDelayMs)!=null?U:1E3)}};
_.M.debouncedGenerateHandleFromName=function(S,p){var U=this;_.w9(this,"debouncedGenerateHandleFromName",function(){var Y;(Y=U.data)!=null&&Y.validateChannelHandleCommand?U.ytComponentBehavior.resolveCommand(U.data.validateChannelHandleCommand,{form:{name:S},commandController:{onSuccess:function(L,I){U.onGenerateHandleFromNameResponse(I)},
onServerError:function(L,I){_.eP(new _.y7("Error calling GenerateHandleFromName",I))}}}):_.eP(new _.y7("Missing validateChannelHandleCommand in ChannelHandleInputRenderer when generate handle from name.",U.data))},p)};
_.M.onGenerateHandleFromNameResponse=function(S){this.wasEdited||((S=_.b(S.result,kxn))?this.setHandleInputValue(S.handle):_.eP(new _.y7("Invalid results when generate handle from name")))};
_.$u.Object.defineProperties(x$.prototype,{value:{configurable:!0,enumerable:!0,get:function(){var S;if(S=this.validationState)S=this.validationState,S=S.status==="OK"||S.status==="UNKNOWN";if(S)return this.validationState.handle}},
errorIndicator:{configurable:!0,enumerable:!0,get:function(){var S;if(((S=this.validationState)==null?void 0:S.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 S,p=(S=this.channelHandleEntity)==null?void 0:S.handleEdit;this.handleDir=this.getHandleDir(p!=null?p:"");return p}},
validValueRegexp:{configurable:!0,enumerable:!0,get:function(){var S,p;if(((S=this.data)==null?void 0:(p=S.channelHandleStaticValidationParams)==null?void 0:p.validValueRegexp)!==void 0)return new RegExp("^"+this.data.channelHandleStaticValidationParams.validValueRegexp+"$")}}});
x$.prototype.stopEventPropagation=x$.prototype.stopEventPropagation;x$.prototype.onDataChanged=x$.prototype.onDataChanged;x$.prototype.applyHandleEdit=x$.prototype.applyHandleEdit;x$.prototype.onValueChanged=x$.prototype.onValueChanged;_.x([_.F(_.eL.YtComponentBehavior),_.E("design:type",Object)],x$.prototype,"ytComponentBehavior",void 0);_.x([_.F(_.Xh),_.E("design:type",Object)],x$.prototype,"ytdReduxBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],x$.prototype,"data",void 0);
_.x([_.g(),_.E("design:type",Boolean)],x$.prototype,"wasEdited",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",String)],x$.prototype,"handleDir",void 0);_.x([_.O2("#handle-input"),_.E("design:type",Object)],x$.prototype,"handleInput",void 0);_.x([_.g(),_.e("validationState"),_.E("design:type",Object),_.E("design:paramtypes",[])],x$.prototype,"value",null);
_.x([_.T4("value"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],x$.prototype,"onValueChanged",null);_.x([_.e("validationState"),_.E("design:type",Object),_.E("design:paramtypes",[])],x$.prototype,"errorIndicator",null);_.x([_.g({reflectToAttribute:!0}),_.e("errorIndicator"),_.E("design:type",Boolean),_.E("design:paramtypes",[])],x$.prototype,"borderErrorIndicator",null);
_.x([_.g({selectorArgs:["data.channelHandleEntityKey"],selector:function(S,p){return _.I4(S.entities,"channelHandle",p)}}),
_.E("design:type",Object)],x$.prototype,"channelHandleEntity",void 0);_.x([_.e("channelHandleEntity"),_.E("design:type",Object),_.E("design:paramtypes",[])],x$.prototype,"handleEdit",null);_.x([_.T4("handleEdit"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],x$.prototype,"applyHandleEdit",null);_.x([_.T4("data"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],x$.prototype,"onDataChanged",null);
_.x([_.e("data.channelHandleStaticValidationParams.validValueRegexp"),_.E("design:type",Object),_.E("design:paramtypes",[])],x$.prototype,"validValueRegexp",null);_.x([_.Vd("yt-service-request-sent"),_.Vd("yt-service-request-completed"),_.Vd("yt-service-request-error"),_.E("design:type",Function),_.E("design:paramtypes",[Event]),_.E("design:returntype")],x$.prototype,"stopEventPropagation",null);x$=_.x([_.f({is:"ytd-channel-handle-input-renderer",disableElementRegistration:!0})],x$);
_.C(x$,"ytd-channel-handle-input-renderer",function(){if(Qkq!==void 0)return Qkq;var S=document.createElement("template");_.h(S,'\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');
S.content.insertBefore(_.t().content.cloneNode(!0),S.content.firstChild);return Qkq=S},{mode:_.UW("kevlar_poly_si_batch_j025")?1:2});var EZ=function(){var S=_.w.apply(this,arguments)||this;S.data=null;S.errorMessage=null;S.isLoading=!0;S.hideContainer=!1;S.enableNewChannelCreationOnIdForAll=_.y("enable_new_channel_creation_for_id4all");S.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"};S.testOnly={setErrorMessage:function(p){S.resetErrorState();
S.setErrorState(p)}};
return S};
_.r(EZ,_.w);_.M=EZ.prototype;_.M.created=function(){this.logScreenVe()};
_.M.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")};
_.M.dataChanged=function(){this.set("isLoading",!1);this.graftServerVe();this.set("errorMessage",null);var S;((S=this.zeroStepErrorMessageEntity)==null?0:S.value)&&this.set("errorMessage",_.Ec(this.zeroStepErrorMessageEntity.value))};
_.M.onCreateTap=function(){var S=this;if(this.data&&this.data.channelCreationEndpoint){var p,U;if(!((p=this.data.createChannelButton)==null?0:(U=p.buttonRenderer)==null?0:U.isDisabled)){var Y;if((Y=this.nameInput)!=null&&Y.value){this.setLoadingState();var L,I;p=Object.assign({},{name:this.nameInput.value},this.encryptedBlobId?{encryptedBlobId:this.encryptedBlobId}:{avatar_url:this.userSetPhotoThumbnailUrl},{handle:(L=this.handleInput)==null?void 0:L.value,isNameChanged:this.isNameChanged(this.nameInput.value),
isHandleChanged:this.isHandleChanged((I=this.handleInput)==null?void 0:I.value),isDefaultProfilePhoto:this.data.isDefaultProfilePhoto,obakeImageSource:this.obakeImageSource,enableIdentityForAllChannelCreationDialog:this.enableIdentityForAllChannelCreationDialog});this.ytComponentBehavior.resolveCommand(this.data.channelCreationEndpoint,{form:p,commandController:{onSuccess:function(V,W){S.onChannelCreationEndpointSuccess(W);S.obakeImageSource&&_.RV("channelCreatedWithObakeImage",{imageSourceType:S.obakeImageSource})},
onServerError:function(){S.onChannelCreationEndpointError()}}});
this.maybeWipeZeroStepErrorMessage()}}}};
_.M.endpointRequiresServiceRequestAction=function(S){return!!_.b(S,_.hx)||!!_.b(S,WlE)};
_.M.isNavigateAction=function(S){var p;return!!_.b(S,_.x4)||!!_.b((p=_.b(S,zDP))==null?void 0:p.command,_.x4)};
_.M.isPlaylistAction=function(S){return!!_.b(S,_.h1)||!!_.b(S,_.sO)};
_.M.onChannelCreationEndpointSuccess=function(S){if(S.createChannelError){var p;this.setErrorState((p=S.createChannelError)==null?void 0:p.errorMessage);this.handleInput&&this.handleInput.validate()}else{_.y("enable_secondary_channel_creation_form")&&S.navigationEndpoint&&this.ytComponentBehavior.resolveCommand(S.navigationEndpoint);if(S.actions){p=_.d(S.actions);for(var U=p.next();!U.done;U=p.next())if(U=U.value,this.endpointRequiresServiceRequestAction(U)&&this.ytComponentBehavior.resolveCommand(U),
this.isNavigateAction(U)){var Y=void 0;U=_.b((Y=_.b(U,zDP))==null?void 0:Y.command,_.x4);Y=void 0;this.isPlaylistAction((Y=U)==null?void 0:Y.endpoint)&&(_.St(this.hostElement,"yt-close-popup-action",["ytd-channel-creation-dialog-renderer"]),Y=void 0,this.ytComponentBehavior.resolveCommand((Y=U)==null?void 0:Y.endpoint))}}S.actions&&S.actions.some(function(L){var I;return _.b(L,_.x4)||_.b((I=_.b(L,zDP))==null?void 0:I.command,_.x4)})||_.St(this.hostElement,"yt-close-popup-action",["ytd-channel-creation-dialog-renderer"])}};
_.M.onChannelCreationEndpointError=function(){this.setErrorState();this.handleInput&&this.handleInput.validate()};
_.M.onCancelTap=function(){var S,p,U;if(!((S=this.data)==null?0:(p=S.cancelButton)==null?0:(U=p.buttonRenderer)==null?0:U.isDisabled)){var Y,L,I;S=(Y=this.data)==null?void 0:(L=Y.cancelButton)==null?void 0:(I=L.buttonRenderer)==null?void 0:I.command;if(!S||!_.b(S,_.K9N)){var V;this.nameInput&&((V=this.data)==null?0:V.name)&&(this.nameInput.value=this.data.name);var W;this.handleInput&&((W=this.data)==null?0:W.channelHandleInput)&&(this.handleInput.data=_.b(this.data.channelHandleInput,HC5));this.encryptedBlobId=
this.previewDataUrl=void 0;this.maybeWipeZeroStepErrorMessage()}}};
_.M.toggleCreateChannelButton=function(){this.set("data.createChannelButton.buttonRenderer.isDisabled",!this.nameInput.value||this.handleInput&&this.handleInput.value===void 0)};
_.M.onChannelNameInput=function(){this.toggleCreateChannelButton();this.handleInput&&this.nameInput.value&&this.handleInput.updateHandleOnChannelNameInputChange(this.nameInput.value)};
_.M.onClearProfilePhotoTap=function(){var S,p,U;((S=this.data)==null?0:(p=S.clearProfilePhotoButton)==null?0:(U=p.buttonRenderer)==null?0:U.isDisabled)||(this.set("data.isDefaultProfilePhoto",!0),this.set("data.clearProfilePhotoButton.buttonRenderer.isDisabled",!0))};
_.M.onEditAvatarTap=function(){var S,p,U;((S=this.data)==null?0:(p=S.editAvatarButton)==null?0:(U=p.buttonRenderer)==null?0:U.isDisabled)||(this.hideContainer=!0,this.openProfilePicturePicker())};
_.M.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)};
_.M.resetErrorState=function(){this.set("data.createChannelButton.buttonRenderer.isDisabled",!1);this.set("data.cancelButton.buttonRenderer.isDisabled",!1);var S;this.set("data.clearProfilePhotoButton.buttonRenderer.isDisabled",((S=this.data)==null?0:S.isDefaultProfilePhoto)?!0:!1);this.set("isLoading",!1);this.set("errorMessage",null)};
_.M.setErrorState=function(S){this.resetErrorState();if(S)this.set("errorMessage",S);else{var p;if((p=this.zeroStepErrorMessageEntity)==null?0:p.value)this.set("errorMessage",_.Ec(this.zeroStepErrorMessageEntity.value));else{var U;((U=this.data)==null?0:U.errorMessage)?this.set("errorMessage",this.data.errorMessage):this.set("errorMessage",null)}}};
_.M.fetchImageBlobWithAlr=function(S,p){p=p===void 0?5:p;var U=this,Y,L,I,V,W;return _.T(function(O){switch(O.nextAddress){case 1:return _.k(O,fetch(S,{method:"GET",mode:"cors"}),2);case 2:Y=O.yieldResult;if(Y.ok){O.jumpTo(3);break}if(p===0)throw Error();L=U.addJitter(Math.pow(2,5-p));return _.k(O,new Promise(function(D){setTimeout(D,L*1E3)}),4);
case 4:return O.return(U.fetchImageBlobWithAlr(S,p-1));case 3:if(!Y.headers.get("content-type").split(";").some(function(D){return D.trim()==="text/plain"})){O.jumpTo(5);
break}I=U;V=I.fetchImageBlobWithAlr;return _.k(O,Y.text(),6);case 6:return O.return(V.call(I,O.yieldResult,p-1));case 5:return _.k(O,Y.blob(),7);case 7:return W=O.yieldResult,O.return(W)}})};
_.M.addJitter=function(S){var p=S*.3*Math.random();Math.random()>.5&&(p*=-1);return S+p};
_.M.openProfilePicturePicker=function(){var S=this,p,U,Y,L,I;return _.T(function(V){if(V.nextAddress==1){p=S.data.scottyUploadUrl;if(!p)return V.return();U=document.documentElement.hasAttribute("dark");Y=document.body.style.colorScheme;U&&(document.body.style.colorScheme="dark");L=n1P(Jxq(QpX(TIn(U?"dark":"light")),function(W){var O,D,z,Q,J;return _.T(function(K){if(K.nextAddress==1)return O=_.ec(GBq(new rF(W.photoUrl,!1)).build(),"alr","yes"),S.obakeImageSource=S.pictureChangeSourceToObakeImageSourceType(W.photoSource),
_.M2(K,2),S.setLoadingState(),_.k(K,S.fetchImageBlobWithAlr(O),4);if(K.nextAddress!=2)return D=K.yieldResult,z=new FileReader,z.addEventListener("load",function(){var G,X,Z,l,a,N;return _.T(function(m){if(m.nextAddress==1){if(D.size>15728640)return S.setErrorState((G=S.data)==null?void 0:G.imageSizeErrorMessage),_.eP(Error("hl")),m.return();if(!z.result)return S.setErrorState((X=S.data)==null?void 0:X.genericImageLoadErrorMessage),_.eP(Error("il")),m.return();Z=z.result;_.M2(m,2);return _.k(m,LpL(D,
p),4)}if(m.nextAddress!=2)return l=m.yieldResult,S.handleImageUpdatedAction(Z,l),S.resetErrorState(),_.CA(m,0);a=_.W4(m);S.setErrorState((N=S.data)==null?void 0:N.uploadErrorMessage);if(a instanceof Error)_.ZP(a);else{var A=new _.y7(JSON.stringify(a));_.ZP(A)}_.OV(m)})}),z.readAsDataURL(D),_.CA(K,0);
Q=_.W4(K);S.setErrorState((J=S.data)==null?void 0:J.genericImageLoadErrorMessage);Q instanceof Error?_.ZP(Q):_.s9(new _.y7(JSON.stringify(Q)));_.OV(K)})}),function(){S.hideContainer=!1;
document.body.style.colorScheme=Y});
_.M2(V,2);return _.k(V,L.openPicker(),4)}if(V.nextAddress!=2)return _.CA(V,0);_.W4(V);S.setErrorState((I=S.data)==null?void 0:I.selectImageErrorMessage);_.OV(V)})};
_.M.pictureChangeSourceToObakeImageSourceType=function(S){switch(S){case 1:return 1;case 2:return 2;case 3:return 3;case 4:return 4;default:return 0}};
_.M.logScreenVe=function(){_.S8(_.HX(),124448)};
_.M.graftServerVe=function(){var S=_.F$(),p,U,Y=(p=this.data)==null?void 0:(U=p.loggingDirectives)==null?void 0:U.trackingParams;Y&&S&&(this.channelCreationFormVe=_.HX().graftServerVe(Y,S),S={visualElement:this.channelCreationFormVe},_.OW().reportShown(S))};
_.M.isNameChanged=function(S){var p;return((p=this.data)==null?void 0:p.name)!==S};
_.M.isHandleChanged=function(S){var p,U=_.b((p=this.data)==null?void 0:p.channelHandleInput,HC5);return U&&S?U.handle!==S:!1};
_.M.handleImageUpdatedAction=function(S,p){this.hideContainer=!1;this.previewDataUrl=S;this.encryptedBlobId=p};
_.M.handleImageSelectionErrorAction=function(S){this.hideContainer=!1;this.setErrorState(S)};
_.M.handleImageSelectionResetErrorAction=function(){this.hideContainer=!1;this.resetErrorState()};
_.M.showContainer=function(){this.hideContainer=!1};
_.M.maybeWipeZeroStepErrorMessage=function(){var S,p=(S=this.data)==null?void 0:S.zeroStepErrorMessageEntityKey,U;p&&((U=this.zeroStepErrorMessageEntity)==null?0:U.value)&&this.ytdReduxBehavior.dispatch(_.WG("stringEntity",p,{key:p,value:""}))};
_.$u.Object.defineProperties(EZ.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 S;return((S=this.photoThumbnail)==null?0:S.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 S;return!((S=this.data)==null||!S.descriptionInfo)}},
description:{configurable:!0,enumerable:!0,get:function(){var S;return(S=this.data)==null?void 0:S.descriptionInfo}}});
EZ.prototype.dataChanged=EZ.prototype.dataChanged;_.x([_.F(_.eL.YtComponentBehavior),_.E("design:type",Object)],EZ.prototype,"ytComponentBehavior",void 0);_.x([_.F(_.Aj.YtActionHandlerBehavior),_.E("design:type",Object)],EZ.prototype,"ytActionHandlerBehavior",void 0);_.x([_.F(_.Xh),_.E("design:type",Object)],EZ.prototype,"ytdReduxBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],EZ.prototype,"data",void 0);_.x([_.g(),_.E("design:type",Object)],EZ.prototype,"errorMessage",void 0);
_.x([_.g(),_.E("design:type",Object)],EZ.prototype,"isLoading",void 0);_.x([_.g(),_.E("design:type",String)],EZ.prototype,"previewDataUrl",void 0);_.x([_.g(),_.E("design:type",Number)],EZ.prototype,"obakeImageSource",void 0);_.x([_.g(),_.E("design:type",Object)],EZ.prototype,"hideContainer",void 0);_.x([_.O2("#title-input"),_.E("design:type",Object)],EZ.prototype,"nameInput",void 0);_.x([_.O2("#handle-input"),_.E("design:type",Object)],EZ.prototype,"handleInput",void 0);
_.x([_.g(),_.E("design:type",Boolean)],EZ.prototype,"enableNewChannelCreationOnIdForAll",void 0);_.x([_.g({selectorArgs:["data.zeroStepErrorMessageEntityKey"],selector:_.L9e}),_.E("design:type",Object)],EZ.prototype,"zeroStepErrorMessageEntity",void 0);_.x([_.e("data","data.isDefaultProfilePhoto","previewDataUrl"),_.E("design:type",Object),_.E("design:paramtypes",[])],EZ.prototype,"photoThumbnail",null);
_.x([_.e("data","data.isDefaultProfilePhoto","photoThumbnail"),_.E("design:type",Object),_.E("design:paramtypes",[])],EZ.prototype,"userSetPhotoThumbnailUrl",null);_.x([_.e("data"),_.E("design:type",Boolean),_.E("design:paramtypes",[])],EZ.prototype,"hideProfilePhotoButtonLayer",null);_.x([_.g({reflectToAttribute:!0}),_.e("data"),_.E("design:type",Boolean),_.E("design:paramtypes",[])],EZ.prototype,"enableIdentityForAllChannelCreationDialog",null);
_.x([_.z4("data","zeroStepErrorMessageEntity"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],EZ.prototype,"dataChanged",null);_.x([_.g({reflectToAttribute:!0}),_.e("data.descriptionInfo","zeroStepErrorMessageEntity"),_.E("design:type",Object),_.E("design:paramtypes",[])],EZ.prototype,"description",null);EZ=_.x([_.f({is:"ytd-channel-creation-dialog-renderer",disableElementRegistration:!0})],EZ);
_.C(EZ,"ytd-channel-creation-dialog-renderer",function(){if(zWs!==void 0)return zWs;var S=document.createElement("template");_.h(S,'\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');
S.content.insertBefore(_.t().content.cloneNode(!0),S.content.firstChild);return zWs=S},{mode:1});var nt5;var mG=function(){var S=_.w.apply(this,arguments)||this;S.isLoading=!1;S.isDisabled=!1;return S};
_.r(mG,_.w);mG.prototype.attached=function(){this.hostElement.setAttribute("dialog","true")};
mG.prototype.updateDisabled=function(){var S;this.isDisabled=this.isLoading||((S=this.handleInput)==null?void 0:S.value)===void 0;this.set("data.saveButton.buttonRenderer.isDisabled",this.isDisabled)};
mG.prototype.onSaveClick=function(){var S=this;if(!this.isDisabled&&this.handleInput.value!==void 0){var p;((p=this.data)==null?void 0:p.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 U;if((U=S.data)==null?0:U.nextEndpoint){var Y;S.ytComponentBehavior.resolveCommand((Y=S.data)==null?void 0:Y.nextEndpoint)}else S.isLoading=
!1,S.closeDialog()},
onServerError:function(){S.isLoading=!1;S.handleInput.validate();var U;S.errorMessage=(U=S.data)==null?void 0:U.errorMessage}}}))}};
mG.prototype.closeDialog=function(){_.St(this.hostElement,"yt-close-popup-action",[this.is])};
mG.prototype.updateDisabled=mG.prototype.updateDisabled;_.x([_.F(_.eL.YtComponentBehavior),_.E("design:type",Object)],mG.prototype,"ytComponentBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],mG.prototype,"data",void 0);_.x([_.O2("#handle-input"),_.E("design:type",Object)],mG.prototype,"handleInput",void 0);_.x([_.T4("isLoading"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],mG.prototype,"updateDisabled",null);
mG=_.x([_.f({is:"ytd-channel-handle-edit-dialog-renderer",disableElementRegistration:!0})],mG);
_.C(mG,"ytd-channel-handle-edit-dialog-renderer",function(){if(nt5!==void 0)return nt5;var S=document.createElement("template");_.h(S,'\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');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);return nt5=S},{mode:1});var J6i;var oz=function(){return _.w.apply(this,arguments)||this};
_.r(oz,_.w);oz.prototype.configureRendererStamper=function(){return{"data.button":{id:"button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.feedback":{id:"feedback",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],oz.prototype,"ytRendererBehavior",void 0);_.x([_.F(_.qH.YtRendererstamperBehavior),_.E("design:type",Object)],oz.prototype,"ytRendererstamperBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],oz.prototype,"data",void 0);oz=_.x([_.f({is:"ytd-channel-switcher-footer-renderer",disableElementRegistration:!0})],oz);
_.C(oz,"ytd-channel-switcher-footer-renderer",function(){if(J6i!==void 0)return J6i;var S=document.createElement("template");_.h(S,'\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');
S.content.insertBefore(_.t().content.cloneNode(!0),S.content.firstChild);return J6i=S},{mode:1});var y6P;var KxX;var vb=function(){return _.w.apply(this,arguments)||this};
_.r(vb,_.w);vb.prototype.onIronChange=function(){if(this.checkbox&&this.onDontAskAgainChanged)this.onDontAskAgainChanged(this.checkbox.checked)};
vb.prototype.onIronChange=vb.prototype.onIronChange;_.x([_.g(),_.E("design:type",Object)],vb.prototype,"data",void 0);_.x([_.g({reflectToAttribute:!1}),_.E("design:type",Function)],vb.prototype,"onDontAskAgainChanged",void 0);_.x([_.O2("#checkbox"),_.E("design:type",Object)],vb.prototype,"checkbox",void 0);_.x([_.Vd("iron-change"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],vb.prototype,"onIronChange",null);
vb=_.x([_.f({is:"ytd-identity-prompt-footer-renderer",disableElementRegistration:!0})],vb);
_.C(vb,"ytd-identity-prompt-footer-renderer",function(){if(KxX!==void 0)return KxX;var S=document.createElement("template");_.h(S,'\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');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);return KxX=S},{mode:1});var $$=function(){var S=_.w.apply(this,arguments)||this;S.dontAskAgain=!1;S.showPopup=!1;S.boundDontAskAgainChanged=function(p){S.dontAskAgainChanged(p)};
S.boundOnAccountItemTap=function(p){S.onAccountItemTap(p)};
return S};
_.r($$,_.w);_.M=$$.prototype;
_.M.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]]"}}}}}};
_.M.ready=function(){var S=this;_.tB(this.hostElement).querySelector("#container").addEventListener("scroll",function(){S.ytRendererBehavior.markDirty()})};
_.M.dontAskAgainChanged=function(S){this.dontAskAgain=S};
_.M.onAccountItemTap=function(S){if(S){var p={};this.dontAskAgain&&(p={dont_ask_again:this.dontAskAgain});_.lE(S,p)}};
_.M.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.M.dataChanged=function(){this.data&&this.redirectOnlyAccount(this.data)};
_.M.redirectOnlyAccount=function(S){S.sections&&S.sections.length>0&&(S=_.b(S.sections[0],_.iJP),(S==null?0:S.contents)&&(S==null?void 0:S.contents.length)<=1?(S=_.mc(window.location.href),(S==null?0:S.next)&&_.bZX(S.next)?_.lE(S.next):_.lE("/")):this.showPopup=!0)};
$$.prototype.dataChanged=$$.prototype.dataChanged;_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],$$.prototype,"ytRendererBehavior",void 0);_.x([_.F(_.qH.YtRendererstamperBehavior),_.E("design:type",Object)],$$.prototype,"ytRendererstamperBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],$$.prototype,"data",void 0);_.x([_.g({reflectToAttribute:!1}),_.E("design:type",Object)],$$.prototype,"dontAskAgain",void 0);
_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],$$.prototype,"showPopup",void 0);_.x([_.g({reflectToAttribute:!1}),_.E("design:type",Object)],$$.prototype,"boundDontAskAgainChanged",void 0);_.x([_.g({reflectToAttribute:!1}),_.E("design:type",Object)],$$.prototype,"boundOnAccountItemTap",void 0);_.x([_.z4("data"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],$$.prototype,"dataChanged",null);
$$=_.x([_.f({is:"ytd-channel-switcher-renderer",disableElementRegistration:!0})],$$);
_.C($$,"ytd-channel-switcher-renderer",function(){if(y6P!==void 0)return y6P;var S=document.createElement("template");_.h(S,'\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');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);return y6P=S},{mode:1});var bji;var iv=function(){return _.w.apply(this,arguments)||this};
_.r(iv,_.w);_.$u.Object.defineProperties(iv.prototype,{steps:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.steps?this.data.steps:[]}}});
_.x([_.g(),_.E("design:type",Object)],iv.prototype,"data",void 0);_.x([_.e("data"),_.E("design:type",Array),_.E("design:paramtypes",[])],iv.prototype,"steps",null);iv=_.x([_.f({is:"ytd-channel-transfer-stepper-renderer",disableElementRegistration:!0})],iv);
_.C(iv,"ytd-channel-transfer-stepper-renderer",function(){if(bji!==void 0)return bji;var S=document.createElement("template");_.h(S,'\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');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);return bji=S},{mode:1});var jkn;var N$=function(){var S=_.w.apply(this,arguments)||this;S.data=null;S.isError=!1;S.isLoading=!1;return S};
_.r(N$,_.w);_.M=N$.prototype;_.M.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"}}}};
_.M.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.M.dataChanged=function(){this.set("isLoading",!1);this.set("isError",!1)};
_.M.computeProfileName=function(S){return S?S.givenNameValue+" "+S.familyNameValue:""};
_.M.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)};
_.M.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)};
N$.prototype.onYtServiceRequestError=N$.prototype.onYtServiceRequestError;N$.prototype.onYtServiceRequestSent=N$.prototype.onYtServiceRequestSent;N$.prototype.dataChanged=N$.prototype.dataChanged;_.x([_.F(_.qH.YtRendererstamperBehavior),_.E("design:type",Object)],N$.prototype,"ytRendererstamperBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],N$.prototype,"data",void 0);
_.x([_.g({computed:"computeProfileName(data.personalAccountTile.contents.createCoreIdentityChannelContentRenderer)"}),_.E("design:type",String)],N$.prototype,"profileName",void 0);_.x([_.g(),_.E("design:type",Object)],N$.prototype,"isError",void 0);_.x([_.g(),_.E("design:type",Object)],N$.prototype,"isLoading",void 0);_.x([_.T4("data"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],N$.prototype,"dataChanged",null);
_.x([_.Vd("yt-service-request-sent"),_.E("design:type",Function),_.E("design:paramtypes",[CustomEvent,_.eM]),_.E("design:returntype")],N$.prototype,"onYtServiceRequestSent",null);_.x([_.Vd("yt-service-request-error"),_.E("design:type",Function),_.E("design:paramtypes",[CustomEvent,_.eM]),_.E("design:returntype")],N$.prototype,"onYtServiceRequestError",null);N$=_.x([_.f({is:"ytd-channel-warm-welcome-cont-renderer",disableElementRegistration:!0})],N$);
_.C(N$,"ytd-channel-warm-welcome-cont-renderer",function(){if(jkn!==void 0)return jkn;var S=document.createElement("template");_.h(S,'\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');
S.content.insertBefore(_.t().content.cloneNode(!0),S.content.firstChild);return jkn=S},{mode:1});var r6t;var Bb=function(){var S=_.w.apply(this,arguments)||this;S.data=null;return S};
_.r(Bb,_.w);Bb.prototype.configureRendererStamper=function(){return{"data.nextButton":{id:"next-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.cancelButton":{id:"cancel-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
Bb.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.hostElement.hasAttribute("autofocus")||this.hostElement.setAttribute("autofocus","true")};
_.x([_.F(_.qH.YtRendererstamperBehavior),_.E("design:type",Object)],Bb.prototype,"ytRendererstamperBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],Bb.prototype,"data",void 0);Bb=_.x([_.f({is:"ytd-channel-warm-welcome-renderer",disableElementRegistration:!0})],Bb);
_.C(Bb,"ytd-channel-warm-welcome-renderer",function(){if(r6t!==void 0)return r6t;var S=document.createElement("template");_.h(S,'\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');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);return r6t=S},{mode:1});var GWq;var q$=function(){return _.w.apply(this,arguments)||this};
_.r(q$,_.w);_.$u.Object.defineProperties(q$.prototype,{thumbnailDetails:{configurable:!0,enumerable:!0,get:function(){var S;return((S=this.data)==null?void 0:S.authorThumbnail)||{}}}});
_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],q$.prototype,"ytRendererBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],q$.prototype,"data",void 0);_.x([_.e("data"),_.E("design:type",Object),_.E("design:paramtypes",[])],q$.prototype,"thumbnailDetails",null);q$=_.x([_.f({is:"ytd-comment-preview-renderer",disableElementRegistration:!0})],q$);
_.C(q$,"ytd-comment-preview-renderer",function(){if(GWq!==void 0)return GWq;var S=document.createElement("template");_.h(S,'\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');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);return GWq=S},{mode:1});var hWq;var Am=function(){return _.w.apply(this,arguments)||this};
_.r(Am,_.w);Am.prototype.configureRendererStamper=function(){return{submitButton:{id:"submit-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.$u.Object.defineProperties(Am.prototype,{submitButton:{configurable:!0,enumerable:!0,get:function(){var S;return(S=this.data)==null?void 0:S.submitButton}}});
_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],Am.prototype,"ytRendererBehavior",void 0);_.x([_.F(_.qH.YtRendererstamperBehavior),_.E("design:type",Object)],Am.prototype,"ytRendererstamperBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],Am.prototype,"data",void 0);_.x([_.e("data"),_.E("design:type",Object),_.E("design:paramtypes",[])],Am.prototype,"submitButton",null);Am=_.x([_.f({is:"ytd-notice-renderer",disableElementRegistration:!0})],Am);
_.C(Am,"ytd-notice-renderer",function(){if(hWq!==void 0)return hWq;var S=document.createElement("template");_.h(S,'\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');
S.content.insertBefore(_.t().content.cloneNode(!0),S.content.firstChild);return hWq=S},{mode:1});var RWi;var tm=function(){return _.w.apply(this,arguments)||this};
_.r(tm,_.w);tm.prototype.configureRendererStamper=function(){return{"data.comment":{id:"comment-preview",mapping:{commentPreviewRenderer:{component:"ytd-comment-preview-renderer"}}}}};
_.x([_.F(_.qH.YtRendererstamperBehavior),_.E("design:type",Object)],tm.prototype,"ytRendererstamperBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],tm.prototype,"data",void 0);tm=_.x([_.f({is:"ytd-preview-comment-dialog-content",disableElementRegistration:!0})],tm);
_.C(tm,"ytd-preview-comment-dialog-content",function(){if(RWi!==void 0)return RWi;var S=document.createElement("template");_.h(S,'\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');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);return RWi=S},{mode:1});var Fxs;var cb=function(){return _.w.apply(this,arguments)||this};
_.r(cb,_.w);cb.prototype.attached=function(){this.hostElement.setAttribute("dialog","true")};
cb.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:{component:"yt-button-renderer"}}}}};
_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],cb.prototype,"ytRendererBehavior",void 0);_.x([_.F(_.qH.YtRendererstamperBehavior),_.E("design:type",Object)],cb.prototype,"ytRendererstamperBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],cb.prototype,"data",void 0);cb=_.x([_.f({is:"ytd-preview-comment-dialog-renderer",disableElementRegistration:!0})],cb);
_.C(cb,"ytd-preview-comment-dialog-renderer",function(){if(Fxs!==void 0)return Fxs;var S=document.createElement("template");_.h(S,'\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');
S.content.insertBefore(_.t().content.cloneNode(!0),S.content.firstChild);return Fxs=S},{mode:1});var XLo;var Pci=_.y("web_button_rework")&&_.ub("BUTTON_REWORK")||_.y("web_button_rework_with_live"),S_=function(){var S=_.w.apply(this,arguments)||this;S.closeLabel=_.Oh("CLOSE");S.selectedAmountIndex=1;S.privacyCheckboxValue=!1;S.useAmsterdamStyle=Pci;S.amountPlaceholderIndex=-1;return S};
_.r(S_,_.w);_.M=S_.prototype;_.M.onAmountClick=function(S){this.selectedAmountIndex=_.tB(this.hostElement).querySelector("#amounts").indexForElement(S.currentTarget)};
_.M.onCloseClick=function(){this.hostElement.hasAttribute("live-chat")&&(_.St(this.hostElement,"yt-live-chat-close-buy-flow"),this.ytLiveChatErrorMessageBehavior._setErrorRenderer(null))};
_.M.onDonateButtonClick=function(){if(this.hostElement.hasAttribute("live-chat"))this.donateCommand&&_.St(this.hostElement,"yt-live-chat-start-buy-flow",[this.donateCommand,{},this.donationCallback.bind(this)]);else{_.St(this.hostElement,"yt-close-popup-action",[this.is]);var S;(S=_.$L())==null||S.getPlayerPromise().then(function(p){p.pauseVideo()})}};
_.M.donationCallback=function(S){S.success?(this.hostElement.hasAttribute("live-chat")&&S.response&&S.response.data&&S.response.data.actions&&_.St(this.hostElement,"yt-live-chat-open-popup",[S.response.data.actions[0]]),_.St(this.hostElement,"yt-close-popup-action",[this.is]),_.St(this.hostElement,"yt-live-chat-close-buy-flow")):S.errorMessageRenderer&&this.ytLiveChatErrorMessageBehavior._setErrorRenderer(S.errorMessageRenderer)};
_.M.setFocusOnCustomAmountInput=function(){this.customAmount!==null&&_.tB(this.hostElement).querySelector("#custom-amount-input").focus()};
_.M.updateConfirmationDialogTextWithAmount=function(S){var p=this.getConfirmDialogRuns();p&&this.set(["data","confirmLargeAmount","openPopupAction","popup","confirmDialogRenderer","dialogMessages",0,"runs",this.getAmountPlaceholderIndex(p),"text"],this.getFormattedAmount(S))};
_.M.getConfirmDialogRuns=function(){return this.get(["confirmLargeAmount","openPopupAction","popup","confirmDialogRenderer","dialogMessages",0,"runs"],this.data)};
_.M.getAmountPlaceholderIndex=function(S){this.amountPlaceholderIndex<0&&(this.amountPlaceholderIndex=S.findIndex(function(p){return p.text==="${amount}"}));
return this.amountPlaceholderIndex};
_.M.getFormattedAmount=function(S){var p;return(new _.wt(4,((p=this.data)==null?void 0:p.currencyCode)||"")).format(S)};
_.M.isAmountValid=function(S){if(S==="")return!1;S=Number(S)*1E6;var p=this.get("minAmountMicros",this.data),U=this.get("maxAmountMicros",this.data);return p&&S<p||U&&S>U?!1:!0};
_.M.setInputError=function(){this.shouldShowValidationError?_.tB(this.hostElement).querySelector("#custom-amount-input").setAttribute("invalid",""):_.tB(this.hostElement).querySelector("#custom-amount-input").removeAttribute("invalid")};
_.M.setInitialCheckboxValue=function(){var S;this.privacyCheckboxValue=!((S=this.data)==null||!S.privacyCheckboxInitialState)};
_.M.updateCustomAmountInputFromBinding=function(S){this.customAmountInput=S.detail.value};
_.M.updatePrivacyCheckboxValueFromBinding=function(S){this.privacyCheckboxValue=S.detail.value};
_.$u.Object.defineProperties(S_.prototype,{suggestedAmountButtons:{configurable:!0,enumerable:!0,get:function(){var S=this,p,U;return((p=this.data)==null?void 0:(U=p.suggestedAmounts)==null?void 0:U.map(function(Y,L){return{buttonRenderer:{style:S.selectedAmountIndex===L?"STYLE_PRIMARY":"STYLE_SUGGESTIVE",text:Y.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 S;return!((S=this.data)==null||!S.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 S=this.hostElement.hasAttribute("live-chat")?this.get("payFromLiveChat",this.data):this.get("donateButton.buttonRenderer.command",this.data);if(S&&this.amountMicros!==null)return Object.assign({},S,{ypcGetCartEndpoint:Object.assign({},S.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 S=this.get("confirmLargeAmount",this.data);if(S&&this.amountMicros)return this.updateConfirmationDialogTextWithAmount(this.amountMicros/1E6),this.set("data.confirmLargeAmount.openPopupAction.popup.confirmDialogRenderer.confirmButton.buttonRenderer.command",this.donateCommand),S}},
donateButtonRenderer:{configurable:!0,enumerable:!0,get:function(){var S=this.get("donateButton.buttonRenderer",this.data);if(S)return Object.assign({},S,{isDisabled:!this.isDonateButtonEnabled,command:this.hostElement.hasAttribute("live-chat")?void 0:this.donateCommandWithConfirmation})}}});
S_.prototype.setInitialCheckboxValue=S_.prototype.setInitialCheckboxValue;S_.prototype.setInputError=S_.prototype.setInputError;S_.prototype.setFocusOnCustomAmountInput=S_.prototype.setFocusOnCustomAmountInput;_.x([_.F(lr5),_.E("design:type",Object)],S_.prototype,"ytLiveChatErrorMessageBehavior",void 0);_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],S_.prototype,"ytRendererBehavior",void 0);
_.x([_.F(_.qH.YtRendererstamperBehavior),_.E("design:type",Object)],S_.prototype,"ytRendererstamperBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],S_.prototype,"data",void 0);_.x([_.g(),_.E("design:type",Object)],S_.prototype,"closeLabel",void 0);_.x([_.g(),_.E("design:type",Object)],S_.prototype,"selectedAmountIndex",void 0);_.x([_.g(),_.E("design:type",String)],S_.prototype,"customAmountInput",void 0);_.x([_.g(),_.E("design:type",Object)],S_.prototype,"privacyCheckboxValue",void 0);
_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Boolean)],S_.prototype,"useAmsterdamStyle",void 0);_.x([_.T4("customAmount"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],S_.prototype,"setFocusOnCustomAmountInput",null);_.x([_.e("data","selectedAmountIndex"),_.E("design:type",Array),_.E("design:paramtypes",[])],S_.prototype,"suggestedAmountButtons",null);
_.x([_.e("data","selectedAmountIndex"),_.E("design:type",Boolean),_.E("design:paramtypes",[])],S_.prototype,"isCustomAmountSelected",null);_.x([_.e("data"),_.E("design:type",Boolean),_.E("design:paramtypes",[])],S_.prototype,"showPrivacyCheckbox",null);_.x([_.e("data","selectedAmountIndex","customAmount"),_.E("design:type",Object),_.E("design:paramtypes",[])],S_.prototype,"amountMicros",null);
_.x([_.e("isCustomAmountSelected","customAmountInput"),_.E("design:type",Object),_.E("design:paramtypes",[])],S_.prototype,"customAmount",null);_.x([_.e("customAmount"),_.E("design:type",Boolean),_.E("design:paramtypes",[])],S_.prototype,"shouldShowValidationError",null);_.x([_.e("customAmount"),_.E("design:type",Boolean),_.E("design:paramtypes",[])],S_.prototype,"isDonateButtonEnabled",null);
_.x([_.e("data","isDonateButtonEnabled","amountMicros","privacyCheckboxValue"),_.E("design:type",Object),_.E("design:paramtypes",[])],S_.prototype,"donateCommand",null);_.x([_.e("donateCommand","isCustomAmountSelected","confirmLargeAmountCommand","amountMicros"),_.E("design:type",Object),_.E("design:paramtypes",[])],S_.prototype,"donateCommandWithConfirmation",null);_.x([_.e("data"),_.E("design:type",Object),_.E("design:paramtypes",[])],S_.prototype,"largeDonationThreshold",null);
_.x([_.e("customAmount","donateCommand","amountMicros"),_.E("design:type",Object),_.E("design:paramtypes",[])],S_.prototype,"confirmLargeAmountCommand",null);_.x([_.e("data","isDonateButtonEnabled","donateCommandWithConfirmation"),_.E("design:type",Object),_.E("design:paramtypes",[])],S_.prototype,"donateButtonRenderer",null);_.x([_.T4("shouldShowValidationError"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],S_.prototype,"setInputError",null);
_.x([_.T4("data"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],S_.prototype,"setInitialCheckboxValue",null);S_=_.x([_.f({is:"ytd-donation-amount-picker-renderer",disableElementRegistration:!0})],S_);
_.C(S_,"ytd-donation-amount-picker-renderer",function(){if(XLo!==void 0)return XLo;var S=document.createElement("template");_.h(S,'\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');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);return XLo=S},{mode:1});var Zjn;var p1=function(){return _.w.apply(this,arguments)||this};
_.r(p1,_.w);_.x([_.F(_.eL.YtComponentBehavior),_.E("design:type",Object)],p1.prototype,"ytComponentBehavior",void 0);_.x([_.g({}),_.E("design:type",Object)],p1.prototype,"data",void 0);p1=_.x([_.f({is:"ytd-donation-post-transaction-content",disableElementRegistration:!0})],p1);
_.C(p1,"ytd-donation-post-transaction-content",function(){if(Zjn!==void 0)return Zjn;var S=document.createElement("template");_.h(S,'\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');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);return Zjn=S},{mode:1});var skt;var U4=function(){return _.w.apply(this,arguments)||this};
_.r(U4,_.w);U4.prototype.configureRendererStamper=function(){return{"data.doneButton":{id:"done-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.x([_.F(_.qH.YtRendererstamperBehavior),_.E("design:type",Object)],U4.prototype,"ytRendererstamperBehavior",void 0);_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],U4.prototype,"ytRendererBehavior",void 0);_.x([_.g({}),_.E("design:type",Object)],U4.prototype,"data",void 0);U4=_.x([_.f({is:"ytd-donation-post-transaction-renderer",disableElementRegistration:!0})],U4);
_.C(U4,"ytd-donation-post-transaction-renderer",function(){if(skt!==void 0)return skt;var S=document.createElement("template");_.h(S,'\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');
S.content.insertBefore(_.t().content.cloneNode(!0),S.content.firstChild);return skt=S},{mode:1});var eWt;var gtL;var YQ=function(){return _.w.apply(this,arguments)||this};
_.r(YQ,_.w);YQ.prototype.computeIsStreamingProvider=function(S){return!!S.isStreamingShelf};
YQ.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!1}}}}}};
_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],YQ.prototype,"ytRendererBehavior",void 0);_.x([_.F(_.qH.YtRendererstamperBehavior),_.E("design:type",Object)],YQ.prototype,"ytRendererstamperBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],YQ.prototype,"data",void 0);_.x([_.g({computed:"computeIsStreamingProvider(data)",reflectToAttribute:!0}),_.E("design:type",Boolean)],YQ.prototype,"isStreamingProvider",void 0);
YQ=_.x([_.f({is:"ytd-media-provider-renderer",disableElementRegistration:!0})],YQ);
_.C(YQ,"ytd-media-provider-renderer",function(){if(gtL!==void 0)return gtL;var S=document.createElement("template");_.h(S,'\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');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);return gtL=S},{mode:1});var uhn;var L1=function(){return _.w.apply(this,arguments)||this};
_.r(L1,_.w);L1.prototype.observeLightsourcePalette=function(){var S,p=(S=this.data)==null?void 0:S.vibrantsourceColorPaletteData;p&&_.Gw(this.hostElement,p)};
L1.prototype.observeLightsourcePalette=L1.prototype.observeLightsourcePalette;_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],L1.prototype,"ytRendererBehavior",void 0);_.x([_.F(_.qH.YtRendererstamperBehavior),_.E("design:type",Object)],L1.prototype,"ytRendererstamperBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],L1.prototype,"data",void 0);
_.x([_.T4("data.vibrantsourceColorPaletteData"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],L1.prototype,"observeLightsourcePalette",null);L1=_.x([_.f({is:"ytd-streaming-pop-up-dialog",disableElementRegistration:!0})],L1);
_.C(L1,"ytd-streaming-pop-up-dialog",function(){if(uhn!==void 0)return uhn;var S=document.createElement("template");_.h(S,'\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');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);return uhn=S},{mode:1});var M3=function(){return _.w.apply(this,arguments)||this};
_.r(M3,_.w);M3.prototype.onPopupOpened_=function(){var S;((S=this.data)==null?0:S.serviceEndpoint)&&_.tW().resolve(_.cQ).resolveCommand(this.data.serviceEndpoint,{form:{element:this.hostElement}})};
M3.prototype.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"content"}};
M3.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"}}}}};
M3.prototype.onPopupOpened_=M3.prototype.onPopupOpened_;_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],M3.prototype,"ytRendererBehavior",void 0);_.x([_.F(_.qH.YtRendererstamperBehavior),_.E("design:type",Object)],M3.prototype,"ytRendererstamperBehavior",void 0);_.x([_.F(_.wS),_.E("design:type",Object)],M3.prototype,"ytContinuationHandlerBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],M3.prototype,"data",void 0);
_.x([_.Vd("yt-popup-opened"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],M3.prototype,"onPopupOpened_",null);M3=_.x([_.f({is:"ytd-brandconnect-popup-renderer",disableElementRegistration:!0})],M3);
_.C(M3,"ytd-brandconnect-popup-renderer",function(){if(eWt!==void 0)return eWt;var S=document.createElement("template");_.h(S,'\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');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);return eWt=S},{mode:1});var wLX;var Io=function(){return _.w.apply(this,arguments)||this};
_.r(Io,_.w);_.M=Io.prototype;_.M.configureRendererStamper=function(){return{"data.options":{id:"options",mapping:{checkboxSurveyOptionRenderer:"ytd-checkbox-survey-option-renderer"}}}};
_.M.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.M.dataChanged=function(){for(var S=0;S<this.getOptionRenderers().length;S++)this.notifyPath("data.options."+S+".checkboxSurveyOptionRenderer.checked"),this.set("data.options."+S+".checkboxSurveyOptionRenderer.checked",!1);this.updateSubmitButton(!1)};
_.M.updateSubmitButton=function(S){this.set("data.submitButton.buttonRenderer.isDisabled",!S)};
_.M.computeAlt=function(S){return _.mA(S)};
_.M.onDismissTap=function(){_.St(this.hostElement,"yt-close-popup-action");this.data.dismissalEndpoint&&_.tW().resolve(_.cQ).resolveCommand(this.data.dismissalEndpoint,{form:{element:this.hostElement}})};
_.M.getOptionRenderers=function(S){return(S=S||this.data)&&S.options?S.options.reduce(function(p,U){U.checkboxSurveyOptionRenderer&&p.push(U.checkboxSurveyOptionRenderer);return p},[]):[]};
_.M.onOptionChange=function(S){var p=this,U=!1;if(S.detail.checked)for(var Y=this.getOptionRenderers().find(function(W){return W.value===S.detail.value}),L=this.getOptionRenderers(),I=0;I<L.length;I++){var V=L[I];
this.notifyPath("data.options."+I+".checkboxSurveyOptionRenderer.checked");V.checked&&((Y==null?0:Y.isExclusiveOption)?!V.isExclusiveOption:V.isExclusiveOption)?this.set("data.options."+I+".checkboxSurveyOptionRenderer.checked",!1):V.checked&&(U=!0)}else U=this.getOptionRenderers().some(function(W,O){p.notifyPath("data.options."+O+".checkboxSurveyOptionRenderer.checked");return W.checked});
this.updateSubmitButton(U)};
_.M.onSubmitTap=function(){var S=this.getOptionRenderers().filter(function(I){return I.checked});
if(S.length!==0){var p=S.map(function(I){return I.responseEndpoint});
S=[];for(var U=1;U<p.length;U++){var Y=void 0,L=(Y=_.b(p[U],_.Rp))==null?void 0:Y.feedbackToken;L&&S.push(L)}p=[p[0]];S.length&&p.push({extra_feedback_tokens:S});_.Yd(this.hostElement,p);_.St(this.hostElement,"yt-close-popup-action",["ytd-checkbox-survey-renderer"]);S=this.data&&this.data.submitActions||[];if(_.y("kevlar_command_handler_migration_killswitch"))_.Lp(this.hostElement,S,this.hostElement);else for(S=_.d(S),p=S.next();!p.done;p=S.next())this.ytComponentBehavior.resolveCommand(p.value)}};
Io.prototype.onOptionChange=Io.prototype.onOptionChange;Io.prototype.dataChanged=Io.prototype.dataChanged;_.x([_.F(_.kP.YtEventForwardingBehavior),_.E("design:type",Object)],Io.prototype,"ytEventForwardingBehavior",void 0);_.x([_.F(_.qH.YtRendererstamperBehavior),_.E("design:type",Object)],Io.prototype,"ytRendererstamperBehavior",void 0);_.x([_.F(_.eL.YtComponentBehavior),_.E("design:type",Object)],Io.prototype,"ytComponentBehavior",void 0);
_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],Io.prototype,"ytRendererBehavior",void 0);_.x([_.F(UHA),_.E("design:type",Object)],Io.prototype,"ytdHatsSurveyBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],Io.prototype,"data",void 0);_.x([_.z4("data"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],Io.prototype,"dataChanged",null);
_.x([_.Vd("ytd-checkbox-survey-option-changed"),_.E("design:type",Function),_.E("design:paramtypes",[CustomEvent]),_.E("design:returntype")],Io.prototype,"onOptionChange",null);Io=_.x([_.f({is:"ytd-checkbox-survey-renderer",disableElementRegistration:!0})],Io);
_.C(Io,"ytd-checkbox-survey-renderer",function(){if(wLX!==void 0)return wLX;var S=document.createElement("template");_.h(S,'\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');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);return wLX=S},{mode:1});var lhi;var ah5;var d2=function(){return _.w.apply(this,arguments)||this};
_.r(d2,_.w);_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],d2.prototype,"ytRendererBehavior",void 0);_.x([_.F(plY),_.E("design:type",Object)],d2.prototype,"ytdDismissalReasonBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],d2.prototype,"data",void 0);d2=_.x([_.f({is:"ytd-dismissal-reason-text-renderer",disableElementRegistration:!0})],d2);
_.C(d2,"ytd-dismissal-reason-text-renderer",function(){if(ah5!==void 0)return ah5;var S=document.createElement("template");_.h(S,'\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');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);return ah5=S},{mode:1});var fhP;var V1=function(){return _.w.apply(this,arguments)||this};
_.r(V1,_.w);_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],V1.prototype,"ytRendererBehavior",void 0);_.x([_.F(plY),_.E("design:type",Object)],V1.prototype,"ytdDismissalReasonBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],V1.prototype,"data",void 0);V1=_.x([_.f({is:"ytd-dismissal-reason-video-renderer",disableElementRegistration:!0})],V1);
_.C(V1,"ytd-dismissal-reason-video-renderer",function(){if(fhP!==void 0)return fhP;var S=document.createElement("template");_.h(S,'\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');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);return fhP=S},{mode:1});var T8=function(){var S=_.w.apply(this,arguments)||this;S.darkerDarkTheme=_.y("web_darker_dark_theme");return S};
_.r(T8,_.w);_.M=T8.prototype;_.M.created=function(){this.selectedFeedbackTokens=new mR};
_.M.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.M.configureRendererStamper=function(){return{"data.reasons":{id:"reasons",mapping:{dismissalReasonTextRenderer:"ytd-dismissal-reason-text-renderer",dismissalReasonVideoRenderer:"ytd-dismissal-reason-video-renderer"}}}};
_.M.dataChanged=function(){this.hasReasonsSelected=!1;this.selectedFeedbackTokens.clear()};
_.M.onDismissalReasonSelected=function(S,p){_.cv(this.hostElement,"yt-invalidate-popup-tabbables");this.selectedFeedbackTokens.add(p);this.hasReasonsSelected=!0};
_.M.onDismissalReasonDeselected=function(S,p){_.cv(this.hostElement,"yt-invalidate-popup-tabbables");this.selectedFeedbackTokens.delete(p);this.hasReasonsSelected=this.selectedFeedbackTokens.size!==0};
_.M.onCancelTap=function(){_.St(this.hostElement,"yt-close-popup-action")};
_.M.onSubmitTap=function(){var S=Array.from(this.selectedFeedbackTokens.values());this.data.submitFeedbackEndpoint&&(S={feedback_tokens:S},_.tW().resolve(_.cQ).resolveCommand(this.data.submitFeedbackEndpoint,{form:Object.assign({},S,{element:this.hostElement})}));_.St(this.hostElement,"yt-close-popup-action")};
T8.prototype.onDismissalReasonDeselected=T8.prototype.onDismissalReasonDeselected;T8.prototype.onDismissalReasonSelected=T8.prototype.onDismissalReasonSelected;T8.prototype.dataChanged=T8.prototype.dataChanged;_.x([_.F(_.qH.YtRendererstamperBehavior),_.E("design:type",Object)],T8.prototype,"ytRendererstamperBehavior",void 0);_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],T8.prototype,"ytRendererBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],T8.prototype,"data",void 0);
_.x([_.g(),_.E("design:type",Boolean)],T8.prototype,"hasReasonsSelected",void 0);_.x([_.g(),_.E("design:type",mR)],T8.prototype,"selectedFeedbackTokens",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],T8.prototype,"darkerDarkTheme",void 0);_.x([_.z4("data"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],T8.prototype,"dataChanged",null);
_.x([_.Vd("yt-dismissal-reason-selected"),_.E("design:type",Function),_.E("design:paramtypes",[CustomEvent,String]),_.E("design:returntype")],T8.prototype,"onDismissalReasonSelected",null);_.x([_.Vd("yt-dismissal-reason-deselected"),_.E("design:type",Function),_.E("design:paramtypes",[CustomEvent,String]),_.E("design:returntype")],T8.prototype,"onDismissalReasonDeselected",null);T8=_.x([_.f({is:"ytd-dismissal-follow-up-renderer",disableElementRegistration:!0})],T8);
_.C(T8,"ytd-dismissal-follow-up-renderer",function(){if(lhi!==void 0)return lhi;var S=document.createElement("template");_.h(S,'\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');
S.content.insertBefore(_.t().content.cloneNode(!0),S.content.firstChild);return lhi=S},{mode:1});var Ccn;var WR=function(){return _.w.apply(this,arguments)||this};
_.r(WR,_.w);_.M=WR.prototype;_.M.onCheckedChange=function(){this.multiselect||_.cv(this.hostElement,"yt-feedback-single-select-changed");_.tB(this.hostElement).querySelector("#freeform").focus();_.cv(this.hostElement,"yt-refit")};
_.M.showTextBox=function(S,p){return S&&p};
_.M.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))};
_.M.updateDataCheckedFromBinding=function(S){this.set("data.checked",S.detail.value)};
_.M.updateDataResultTextFromBinding=function(S){this.set("data.resultText",S.detail.value)};
WR.prototype.dataChanged=WR.prototype.dataChanged;_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],WR.prototype,"ytRendererBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],WR.prototype,"data",void 0);_.x([_.g({value:!1}),_.E("design:type",Boolean)],WR.prototype,"multiselect",void 0);_.x([_.T4("data"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],WR.prototype,"dataChanged",null);
WR=_.x([_.f({is:"ytd-feedback-option-renderer",disableElementRegistration:!0})],WR);
_.C(WR,"ytd-feedback-option-renderer",function(){if(Ccn!==void 0)return Ccn;var S=document.createElement("template");_.h(S,'\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');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);return Ccn=S},{mode:1});var xbL;var O4=function(){return _.w.apply(this,arguments)||this};
_.r(O4,_.w);O4.prototype.configureRendererStamper=function(){return{"data.options":{id:"options",mapping:{feedbackOptionRenderer:{component:"ytd-feedback-option-renderer",properties:{multiselect:"[[data.multiSelect]]"}}}}}};
O4.prototype.onSingleSelectCheckedChanged=function(S){S=_.mF(S);for(var p=0;p<this.data.options.length;p++)if(S.data!==_.b(this.data.options[p],cKA)){var U="data.options."+p+".feedbackOptionRenderer.checked";this.notifyPath(U);this.set(U,!1)}};
O4.prototype.onSingleSelectCheckedChanged=O4.prototype.onSingleSelectCheckedChanged;_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],O4.prototype,"ytRendererBehavior",void 0);_.x([_.F(_.qH.YtRendererstamperBehavior),_.E("design:type",Object)],O4.prototype,"ytRendererstamperBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],O4.prototype,"data",void 0);
_.x([_.Vd("yt-feedback-single-select-changed"),_.E("design:type",Function),_.E("design:paramtypes",[Event]),_.E("design:returntype")],O4.prototype,"onSingleSelectCheckedChanged",null);O4=_.x([_.f({is:"ytd-feedback-question-renderer",disableElementRegistration:!0})],O4);
_.C(O4,"ytd-feedback-question-renderer",function(){if(xbL!==void 0)return xbL;var S=document.createElement("template");_.h(S,'\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');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);return xbL=S},{mode:1});var EtL;var kQ=function(){return _.w.apply(this,arguments)||this};
_.r(kQ,_.w);kQ.prototype.configureRendererStamper=function(){return{"data.questions":{id:"questions",mapping:{feedbackQuestionRenderer:"ytd-feedback-question-renderer"}}}};
kQ.prototype.getSelectedFeedbackResults=function(){for(var S={},p=0;p<this.data.questions.length;p++)for(var U=_.b(this.data.questions[p],tdL),Y=0;Y<U.options.length;Y++){var L=_.b(U.options[Y],cKA);L&&L.checked&&(S[L.optionKey]=L.resultText)}return S};
kQ.prototype.onKeyUp=function(){var S=this;_.ps(_.PA,function(){_.cv(S.hostElement,"yt-refit")});
_.PA.start()};
kQ.prototype.submitSurvey=function(){var S=this.getSelectedFeedbackResults();Object.keys(S).length>0&&this.data.submitFeedbackEndpoint&&(S={survey_results:S,is_feedback_token_unencrypted:!0},_.tW().resolve(_.cQ).resolveCommand(this.data.submitFeedbackEndpoint,{form:Object.assign({},S,{element:this.hostElement})}))};
_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],kQ.prototype,"ytRendererBehavior",void 0);_.x([_.F(_.qH.YtRendererstamperBehavior),_.E("design:type",Object)],kQ.prototype,"ytRendererstamperBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],kQ.prototype,"data",void 0);kQ=_.x([_.f({is:"ytd-feedback-survey-renderer",disableElementRegistration:!0})],kQ);
_.C(kQ,"ytd-feedback-survey-renderer",function(){if(EtL!==void 0)return EtL;var S=document.createElement("template");_.h(S,'\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');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);return EtL=S},{mode:1});var mbA;var otE;var HR=function(){return _.w.apply(this,arguments)||this};
_.r(HR,_.w);HR.prototype.computeAlt=function(S){return _.mA(S)};
HR.prototype.submitResponse=function(){var S,p;(S=this.data)!=null&&S.feedbackToken&&((p=this.data)==null?void 0:p.nextStageIndex)!==void 0&&(_.pp(this.hostElement,"yt-single-select-submit-feedback",[this.data.feedbackToken]),_.pp(this.hostElement,"yt-survey-set-stage-index",[this.data.nextStageIndex]))};
HR.prototype.onClick=function(){this.submitResponse()};
HR.prototype.onClick=HR.prototype.onClick;_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],HR.prototype,"ytRendererBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],HR.prototype,"data",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Boolean)],HR.prototype,"vertical",void 0);_.x([_.Vd("click"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],HR.prototype,"onClick",null);
HR=_.x([_.f({is:"ytd-single-select-answer-option-renderer",disableElementRegistration:!0})],HR);
_.C(HR,"ytd-single-select-answer-option-renderer",function(){if(otE!==void 0)return otE;var S=document.createElement("template");_.h(S,'\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');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);return otE=S},{mode:1});var vtT;var DW=function(){var S=_.w.apply(this,arguments)||this;S.darkerDarkTheme=_.y("web_darker_dark_theme");S.actionMap={"yt-single-select-submit-feedback":"submitFeedback"};return S};
_.r(DW,_.w);DW.prototype.configureRendererStamper=function(){return{"data.answerOptions":{id:"options",mapping:{singleSelectAnswerOptionRenderer:{component:"ytd-single-select-answer-option-renderer",properties:{vertical:"[[vertical]]"}}}}}};
DW.prototype.dataChanged=function(){var S,p;this.vertical=((p=(S=this.data)==null?void 0:S.answerOrientation)!=null?p:"SURVEY_LAYOUT_TYPE_HORIZONTAL")==="SURVEY_LAYOUT_TYPE_VERTICAL"};
DW.prototype.submitFeedback=function(S){var p;((p=this.data)==null?0:p.responseEndpoint)&&S&&_.Yd(this.hostElement,[this.data.responseEndpoint,{extra_feedback_tokens:[S]}])};
DW.prototype.dataChanged=DW.prototype.dataChanged;_.x([_.F(_.Aj.YtActionHandlerBehavior),_.E("design:type",Object)],DW.prototype,"ytActionHandlerBehavior",void 0);_.x([_.F(_.kP.YtEventForwardingBehavior),_.E("design:type",Object)],DW.prototype,"eventForwardingBehavior",void 0);_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],DW.prototype,"ytRendererBehavior",void 0);_.x([_.F(_.qH.YtRendererstamperBehavior),_.E("design:type",Object)],DW.prototype,"ytRendererstamperBehavior",void 0);
_.x([_.g(),_.E("design:type",Object)],DW.prototype,"data",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Boolean)],DW.prototype,"vertical",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],DW.prototype,"darkerDarkTheme",void 0);_.x([_.z4("data"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],DW.prototype,"dataChanged",null);DW=_.x([_.f({is:"ytd-single-select-question-renderer",disableElementRegistration:!0})],DW);
_.C(DW,"ytd-single-select-question-renderer",function(){if(vtT!==void 0)return vtT;var S=document.createElement("template");_.h(S,'\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');
S.content.insertBefore(_.t().content.cloneNode(!0),S.content.firstChild);return vtT=S},{mode:1});var z8=function(){var S=_.w.apply(this,arguments)||this;S.actionMap={"yt-survey-set-stage-index":"jumpToStage"};return S};
_.r(z8,_.w);_.M=z8.prototype;_.M.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"}}}};
_.M.dataChanged=function(){this.jumpToStage(0)};
_.M.jumpToStage=function(S){var p,U;if((p=this.data)==null?0:(U=p.stages)==null?0:U[S])this.currentStage=this.data.stages[S],this.refitAfterRender()};
_.M.computeAlt=function(S){return _.mA(S)};
_.M.computeSimpleMessage=function(S){var p;return(p=_.b(S,Uv5))==null?void 0:p.messageText};
_.M.computeHideDismiss=function(S){var p;return(p=_.b(S,XCo))==null?void 0:p.hideParentDismissButton};
_.M.onDismissTap=function(){_.St(this.hostElement,"yt-close-popup-action");_.b(this.currentStage,Uv5)||this.data.dismissalEndpoint&&_.tW().resolve(_.cQ).resolveCommand(this.data.dismissalEndpoint,{form:{element:this.hostElement}})};
_.M.refitAfterRender=function(){var S=this;_.oH(this,function(){_.cv(S.hostElement,"yt-refit")})};
z8.prototype.dataChanged=z8.prototype.dataChanged;_.x([_.F(_.kP.YtEventForwardingBehavior),_.E("design:type",Object)],z8.prototype,"eventForwardingBehavior",void 0);_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],z8.prototype,"ytRendererBehavior",void 0);_.x([_.F(_.qH.YtRendererstamperBehavior),_.E("design:type",Object)],z8.prototype,"ytRendererstamperBehavior",void 0);_.x([_.F(_.Aj.YtActionHandlerBehavior),_.E("design:type",Object)],z8.prototype,"ytActionHandlerBehavior",void 0);
_.x([_.F(UHA),_.E("design:type",Object)],z8.prototype,"ytdHatsSurveyBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],z8.prototype,"data",void 0);_.x([_.g(),_.E("design:type",Object)],z8.prototype,"currentStage",void 0);_.x([_.z4("data"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],z8.prototype,"dataChanged",null);z8=_.x([_.f({is:"ytd-multi-stage-survey-renderer",disableElementRegistration:!0})],z8);
_.C(z8,"ytd-multi-stage-survey-renderer",function(){if(mbA!==void 0)return mbA;var S=document.createElement("template");_.h(S,'\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');
S.content.insertBefore(_.t().content.cloneNode(!0),S.content.firstChild);return mbA=S},{mode:1});var $bP;var Q1=function(){return _.w.apply(this,arguments)||this};
_.r(Q1,_.w);Q1.prototype.computeAlt=function(S){return _.mA(S)};
Q1.prototype.submitResponse=function(){this.data&&this.data.submissionEndpoint&&(_.tW().resolve(_.cQ).resolveCommand(this.data.submissionEndpoint,{form:{element:this.hostElement}}),_.St(this.hostElement,"yt-close-popup-action",["ytd-single-option-survey-renderer"]),this.ytdReduxBehavior.dispatch(_.ihT(!1)))};
Q1.prototype.onTap=function(){this.vertical&&this.submitResponse()};
Q1.prototype.onTap=Q1.prototype.onTap;_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],Q1.prototype,"ytRendererBehavior",void 0);_.x([_.F(_.Xh),_.E("design:type",Object)],Q1.prototype,"ytdReduxBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],Q1.prototype,"data",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Boolean)],Q1.prototype,"vertical",void 0);
_.x([_.Vd("tap"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],Q1.prototype,"onTap",null);Q1=_.x([_.f({is:"ytd-single-option-survey-option-renderer",disableElementRegistration:!0})],Q1);
_.C(Q1,"ytd-single-option-survey-option-renderer",function(){if($bP!==void 0)return $bP;var S=document.createElement("template");_.h(S,'\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');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);return $bP=S},{mode:1});var ijT;var n1=function(){return _.w.apply(this,arguments)||this};
_.r(n1,_.w);_.M=n1.prototype;_.M.configureRendererStamper=function(){return{"data.options":{id:"options",mapping:{singleOptionSurveyOptionRenderer:{component:"ytd-single-option-survey-option-renderer",properties:{vertical:"[[vertical]]"}}}}}};
_.M.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.M.dataChanged=function(){var S,p;this.vertical=(((S=this.data)==null?void 0:(p=S.surveyOrientation)==null?void 0:p.type)||"HORIZONTAL")==="VERTICAL"};
_.M.computeAlt=function(S){return _.mA(S)};
_.M.onDismissTap=function(){_.St(this.hostElement,"yt-close-popup-action");this.data.dismissalEndpoint&&_.tW().resolve(_.cQ).resolveCommand(this.data.dismissalEndpoint,{form:{element:this.hostElement}});this.ytdReduxBehavior.dispatch(_.ihT(!1))};
n1.prototype.dataChanged=n1.prototype.dataChanged;_.x([_.F(_.kP.YtEventForwardingBehavior),_.E("design:type",Object)],n1.prototype,"eventForwardingBehavior",void 0);_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],n1.prototype,"ytRendererBehavior",void 0);_.x([_.F(_.qH.YtRendererstamperBehavior),_.E("design:type",Object)],n1.prototype,"ytRendererstamperBehavior",void 0);_.x([_.F(UHA),_.E("design:type",Object)],n1.prototype,"ytdHatsSurveyBehavior",void 0);
_.x([_.F(_.Xh),_.E("design:type",Object)],n1.prototype,"ytdReduxBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],n1.prototype,"data",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Boolean)],n1.prototype,"vertical",void 0);_.x([_.z4("data"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],n1.prototype,"dataChanged",null);n1=_.x([_.f({is:"ytd-single-option-survey-renderer",disableElementRegistration:!0})],n1);
_.C(n1,"ytd-single-option-survey-renderer",function(){if(ijT!==void 0)return ijT;var S=document.createElement("template");_.h(S,'\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');
S.content.insertBefore(_.t().content.cloneNode(!0),S.content.firstChild);return ijT=S},{mode:1});var Nrn;var JT=function(){var S=_.w.apply(this,arguments)||this;S.darkerDarkTheme=_.y("web_darker_dark_theme");return S};
_.r(JT,_.w);JT.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
JT.prototype.onDismissTap=function(){_.St(this.hostElement,"yt-close-popup-action")};
JT.prototype.onNavigate=function(){_.St(this.hostElement,"yt-close-popup-action")};
JT.prototype.onNavigate=JT.prototype.onNavigate;_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],JT.prototype,"ytRendererBehavior",void 0);_.x([_.F(_.kP.YtEventForwardingBehavior),_.E("design:type",Object)],JT.prototype,"ytEventForwardingBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],JT.prototype,"data",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],JT.prototype,"darkerDarkTheme",void 0);
_.x([_.Vd("yt-navigate"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],JT.prototype,"onNavigate",null);JT=_.x([_.f({is:"ytd-survey-follow-up-renderer",disableElementRegistration:!0})],JT);
_.C(JT,"ytd-survey-follow-up-renderer",function(){if(Nrn!==void 0)return Nrn;var S=document.createElement("template");_.h(S,'\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');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);return Nrn=S},{mode:1});var Brn;var qsX;var A6L;var y1=function(){var S=_.w.apply(this,arguments)||this;S.polymer2="Element"in Polymer;return S};
_.r(y1,_.w);_.M=y1.prototype;_.M.ready=function(){this.secondsEl.addEventListener("blur",this.formatSeconds.bind(this))};
_.M.secondsChanged=function(){this.secondsEl.focused||this.formatSeconds()};
_.M.formatSeconds=function(){this.seconds.length===1&&(this.seconds="0"+this.seconds)};
_.M.minutesChangedForBinding=function(){this.hostElement.dispatchEvent(new _.uz("minutes-changed",this.minutes))};
_.M.secondsChangedForBinding=function(){this.hostElement.dispatchEvent(new _.uz("seconds-changed",this.seconds))};
_.M.updateMinutesFromBinding=function(S){this.minutes=S.detail.value};
_.M.updateSecondsFromBinding=function(S){this.seconds=S.detail.value};
y1.prototype.secondsChangedForBinding=y1.prototype.secondsChangedForBinding;y1.prototype.minutesChangedForBinding=y1.prototype.minutesChangedForBinding;y1.prototype.secondsChanged=y1.prototype.secondsChanged;_.x([_.g(),_.E("design:type",String)],y1.prototype,"minutes",void 0);_.x([_.g(),_.E("design:type",String)],y1.prototype,"seconds",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Boolean)],y1.prototype,"polymer2",void 0);
_.x([_.O2("#seconds"),_.E("design:type",Object)],y1.prototype,"secondsEl",void 0);_.x([_.T4("seconds"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],y1.prototype,"secondsChanged",null);_.x([_.T4("minutes"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],y1.prototype,"minutesChangedForBinding",null);
_.x([_.T4("seconds"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],y1.prototype,"secondsChangedForBinding",null);y1=_.x([_.FB({is:"yt-timestamp-input",disableElementRegistration:!0})],y1);
_.C(y1,"yt-timestamp-input",function(){if(A6L===void 0){var S=document.createElement("template");_.h(S,'\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');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);var p=S.content,U=p.insertBefore;qsX===void 0&&(qsX=document.createElement("template"));var Y=qsX;U.call(p,Y.content.cloneNode(!0),S.content.firstChild);A6L=S}S=A6L;return S},{mode:2});var K1=function(){return _.w.apply(this,arguments)||this};
_.r(K1,_.w);_.M=K1.prototype;_.M.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.JSC$18118_scroller.dialogElement=this.hostElement.parentNode};
_.M.dataChanged=function(){var S=this;this.description.value="";this.seconds=this.minutes=this.fullName.value="";this.toggleSubmitButton(!1);this.showTimestamp&&_.iZ().getPlayerPromise().then(function(p){p=p.getCurrentTime();S.minutes=Math.floor(p/60).toString();S.seconds=(Math.floor(p)%60).toString()})};
_.M.onTapSubmit=function(S){S.stopPropagation();this.serviceEndpoint&&!this.get("submitButton.isDisabled")&&(S={flag_description:this.descriptionText.trim(),flag_issue_type:this.issueType,flag_affiliation:this.affiliation},this.fullNameText&&(S.flag_full_name=this.fullNameText.trim()),this.showTimestamp&&(S.minutes=this.minutes,S.seconds=this.seconds),_.tW().resolve(_.cQ).resolveCommand(this.serviceEndpoint,{form:Object.assign({},S,{element:this.hostElement})}))};
_.M.onYtServiceRequestSent=function(){this.toggleSubmitButton(!1)};
_.M.onYtServiceRequestCompleted=function(S,p){p=p.actions;if(Array.isArray(p))for(var U=0,Y=p.length;U<Y;U++)_.b(p[U],_.KQ)&&(S.stopPropagation(),this.hostElement.parentElement.close(),this.ytOpenPopupBehavior.openPopup(p[U]))};
_.M.onYtServiceRequestError=function(){this.toggleSubmitButton(!0)};
_.M.toggleSubmitButton=function(S){this.set("submitButton.isDisabled",!S)};
_.M.handleInput=function(){var S=this.issueType,p=this.affiliation,U=this.minutes,Y=this.seconds;U=!this.showTimestamp||!!U&&!!Y;this.toggleSubmitButton(!!this.descriptionText&&!!S&&!!p&&U)};
_.M.computeServiceEndpoint=function(S){return this.get("submitButton.buttonRenderer.serviceEndpoint",S)};
_.M.computeSubmitButton=function(S){(S=this.get("submitButton.buttonRenderer",S))&&(S=Object.assign({},S,{serviceEndpoint:void 0}));return S};
_.M.computeShowTimestamp=function(S){return!!S};
_.M.onValueChangedForIssueType=function(S){this.issueType=S.detail.value};
_.M.onValueChangedForAffiliation=function(S){this.affiliation=S.detail.value};
_.M.updateDescriptionTextFromBinding=function(S){this.descriptionText=S.detail.value};
_.M.updateFullNameTextFromBinding=function(S){this.fullNameText=S.detail.value};
_.M.updateMinutesFromBinding=function(S){this.minutes=S.detail.value};
_.M.updateSecondsFromBinding=function(S){this.seconds=S.detail.value};
K1.prototype.handleInput=K1.prototype.handleInput;K1.prototype.onYtServiceRequestError=K1.prototype.onYtServiceRequestError;K1.prototype.onYtServiceRequestCompleted=K1.prototype.onYtServiceRequestCompleted;K1.prototype.onYtServiceRequestSent=K1.prototype.onYtServiceRequestSent;K1.prototype.dataChanged=K1.prototype.dataChanged;_.x([_.F(_.dW.YtOpenPopupBehavior),_.E("design:type",Object)],K1.prototype,"ytOpenPopupBehavior",void 0);
_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],K1.prototype,"ytRendererBehavior",void 0);_.x([_.O2("#scroller"),_.E("design:type",Object)],K1.prototype,"JSC$18118_scroller",void 0);_.x([_.O2("#description"),_.E("design:type",HTMLInputElement)],K1.prototype,"description",void 0);_.x([_.O2("#full-name"),_.E("design:type",Object)],K1.prototype,"fullName",void 0);_.x([_.g(),_.E("design:type",Object)],K1.prototype,"data",void 0);
_.x([_.g({computed:"computeShowTimestamp(data.timestampLabel)"}),_.E("design:type",Boolean)],K1.prototype,"showTimestamp",void 0);_.x([_.g({readOnly:!0,computed:"computeServiceEndpoint(data)"}),_.E("design:type",Object)],K1.prototype,"serviceEndpoint",void 0);_.x([_.g({computed:"computeSubmitButton(data)"}),_.E("design:type",Object)],K1.prototype,"submitButton",void 0);_.x([_.g(),_.E("design:type",String)],K1.prototype,"descriptionText",void 0);
_.x([_.g(),_.E("design:type",Number)],K1.prototype,"issueType",void 0);_.x([_.g(),_.E("design:type",Number)],K1.prototype,"affiliation",void 0);_.x([_.g(),_.E("design:type",String)],K1.prototype,"fullNameText",void 0);_.x([_.g(),_.E("design:type",String)],K1.prototype,"minutes",void 0);_.x([_.g(),_.E("design:type",String)],K1.prototype,"seconds",void 0);_.x([_.T4("data"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],K1.prototype,"dataChanged",null);
_.x([_.Vd("yt-service-request-sent"),_.E("design:type",Function),_.E("design:paramtypes",[CustomEvent,_.eM]),_.E("design:returntype")],K1.prototype,"onYtServiceRequestSent",null);_.x([_.Vd("yt-service-request-completed"),_.E("design:type",Function),_.E("design:paramtypes",[CustomEvent,_.xL]),_.E("design:returntype")],K1.prototype,"onYtServiceRequestCompleted",null);
_.x([_.Vd("yt-service-request-error"),_.E("design:type",Function),_.E("design:paramtypes",[CustomEvent]),_.E("design:returntype")],K1.prototype,"onYtServiceRequestError",null);_.x([_.T4("descriptionText","issueType","affiliation","fullNameText","minutes","seconds"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],K1.prototype,"handleInput",null);K1=_.x([_.f({is:"ytd-legal-report-details-form-renderer",disableElementRegistration:!0})],K1);
_.C(K1,"ytd-legal-report-details-form-renderer",function(){if(Brn!==void 0)return Brn;var S=document.createElement("template");_.h(S,'\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');
S.content.insertBefore(_.t().content.cloneNode(!0),S.content.firstChild);return Brn=S},{mode:1});var tjX;var bn=function(){var S=_.w.apply(this,arguments)||this;S.actionMap={"yt-signal-action-submit-form":"handleSignalActionSubmitForm","yt-signal-action-submit-popup-form-fields":"handleSignalActionSubmitPopupFormFields"};return S};
_.r(bn,_.w);bn.prototype.configureRendererStamper=function(){return{"data.form":{id:"form",mapping:{formRenderer:"yt-form-renderer"}}}};
bn.prototype.handleSignalActionSubmitForm=function(){if(this.formRenderer){var S=this.formRenderer.getForm();S&&this.data.submitEndpoint&&(_.tW().resolve(_.cQ).resolveCommand(this.data.submitEndpoint,{form:Object.assign({},S,{element:this.hostElement})}),_.St(this.hostElement,"yt-close-popup-action"))}};
bn.prototype.handleSignalActionSubmitPopupFormFields=function(){this.formRenderer&&(this.formRenderer.submitFormFields(),_.St(this.hostElement,"yt-close-popup-action"))};
bn.prototype.onPopupClosed=function(){this.formRenderer&&this.formRenderer.reset()};
bn.prototype.onPopupClosed=bn.prototype.onPopupClosed;_.x([_.F(_.kP.YtEventForwardingBehavior),_.E("design:type",Object)],bn.prototype,"ytEventForwardingBehavior",void 0);_.x([_.F(_.qH.YtRendererstamperBehavior),_.E("design:type",Object)],bn.prototype,"ytRendererstamperBehavior",void 0);_.x([_.F(_.Aj.YtActionHandlerBehavior),_.E("design:type",Object)],bn.prototype,"ytActionHandlerBehavior",void 0);_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],bn.prototype,"ytRendererBehavior",void 0);
_.x([_.O2("yt-form-renderer"),_.E("design:type",Object)],bn.prototype,"formRenderer",void 0);_.x([_.g(),_.E("design:type",Object)],bn.prototype,"data",void 0);_.x([_.Vd("yt-popup-closed"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],bn.prototype,"onPopupClosed",null);bn=_.x([_.f({is:"ytd-form-popup-content",disableElementRegistration:!0})],bn);
_.C(bn,"ytd-form-popup-content",function(){if(tjX!==void 0)return tjX;var S=document.createElement("template");_.h(S,'\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>');S.content.insertBefore(_.t().content.cloneNode(!0),S.content.firstChild);return tjX=S},{mode:1});var c6P;var j_=function(){return _.w.apply(this,arguments)||this};
_.r(j_,_.w);j_.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
j_.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
j_.prototype.onPopupOpened=function(){_.cv(this.hostElement,"yt-invalidate-popup-tabbables")};
j_.prototype.onYtServiceRequestCompleted=function(S,p){p.data&&p.data.success&&(this.set("data.buttons.1.buttonRenderer.isDisabled",!1),_.cv(this.hostElement,"yt-invalidate-popup-tabbables"))};
j_.prototype.onYtServiceRequestCompleted=j_.prototype.onYtServiceRequestCompleted;j_.prototype.onPopupOpened=j_.prototype.onPopupOpened;_.x([_.F(_.kP.YtEventForwardingBehavior),_.E("design:type",Object)],j_.prototype,"ytEventForwardingBehavior",void 0);_.x([_.F(_.qH.YtRendererstamperBehavior),_.E("design:type",Object)],j_.prototype,"ytRendererstamperBehavior",void 0);_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],j_.prototype,"ytRendererBehavior",void 0);
_.x([_.g(),_.E("design:type",Object)],j_.prototype,"data",void 0);_.x([_.Vd("yt-popup-opened"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],j_.prototype,"onPopupOpened",null);_.x([_.Vd("yt-service-request-completed"),_.E("design:type",Function),_.E("design:paramtypes",[CustomEvent,_.xL]),_.E("design:returntype")],j_.prototype,"onYtServiceRequestCompleted",null);j_=_.x([_.f({is:"ytd-form-popup-renderer",disableElementRegistration:!0})],j_);
_.C(j_,"ytd-form-popup-renderer",function(){if(c6P!==void 0)return c6P;var S=document.createElement("template");_.h(S,'\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');
S.content.insertBefore(_.t().content.cloneNode(!0),S.content.firstChild);return c6P=S},{mode:1});var SQA;var r2=function(){var S=_.w.apply(this,arguments)||this;S.isLoading=!1;return S};
_.r(r2,_.w);_.M=r2.prototype;_.M.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");V9d(this.hostElement)};
_.M.onYtServiceRequestSent=function(){this.isLoading=!0};
_.M.onYtServiceRequestCompleted=function(){_.St(this.hostElement,"yt-close-popup-action",["ytd-gaming-account-link-confirm-dialog-renderer"])};
_.M.fireOnCloseActions=function(){this.isLoading=!1;this.data&&this.data.onClosedActions&&_.Lp(this.hostElement,this.data.onClosedActions,this.hostElement)};
_.M.closePopupHandler=function(){this.fireOnCloseActions()};
_.M.onHeaderImageChanged=function(){if(this.data){this.data.headerImage?this.hostElement.setAttribute("dialog-with-header-image",""):this.hostElement.removeAttribute("dialog-with-header-image");var S=this.get("data.headerImage.thumbnails");S&&(S=_.AS(S,this.hostElement.clientWidth),this.header.style.backgroundImage="url("+S+")")}};
_.M.onYtNavigate=function(S){(S=_.mF(S))&&S.parentElement===this.confirmButton&&this.hostElement.parentElement&&this.hostElement.parentElement.close()};
r2.prototype.onYtNavigate=r2.prototype.onYtNavigate;r2.prototype.onHeaderImageChanged=r2.prototype.onHeaderImageChanged;r2.prototype.closePopupHandler=r2.prototype.closePopupHandler;r2.prototype.onYtServiceRequestCompleted=r2.prototype.onYtServiceRequestCompleted;r2.prototype.onYtServiceRequestSent=r2.prototype.onYtServiceRequestSent;_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],r2.prototype,"ytRendererBehavior",void 0);
_.x([_.F(_.kP.YtEventForwardingBehavior),_.E("design:type",Object)],r2.prototype,"ytEventForwardingBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],r2.prototype,"data",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],r2.prototype,"isLoading",void 0);_.x([_.O2("#header"),_.E("design:type",HTMLDivElement)],r2.prototype,"header",void 0);_.x([_.O2("#confirm-button"),_.E("design:type",_.zb)],r2.prototype,"confirmButton",void 0);
_.x([_.Vd("yt-service-request-sent"),_.E("design:type",Function),_.E("design:paramtypes",[CustomEvent]),_.E("design:returntype")],r2.prototype,"onYtServiceRequestSent",null);_.x([_.Vd("yt-service-request-completed"),_.E("design:type",Function),_.E("design:paramtypes",[CustomEvent]),_.E("design:returntype")],r2.prototype,"onYtServiceRequestCompleted",null);
_.x([_.Vd("yt-popup-closed"),_.E("design:type",Function),_.E("design:paramtypes",[CustomEvent,Object]),_.E("design:returntype")],r2.prototype,"closePopupHandler",null);_.x([_.T4("data.headerImage"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],r2.prototype,"onHeaderImageChanged",null);_.x([_.Vd("yt-navigate"),_.E("design:type",Function),_.E("design:paramtypes",[CustomEvent]),_.E("design:returntype")],r2.prototype,"onYtNavigate",null);
r2=_.x([_.f({is:"ytd-gaming-account-link-confirm-dialog-renderer",disableElementRegistration:!0})],r2);
_.C(r2,"ytd-gaming-account-link-confirm-dialog-renderer",function(){if(SQA!==void 0)return SQA;var S=document.createElement("template");_.h(S,'\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');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);return SQA=S},{mode:1});var pWA;var G8=function(){var S=_.w.apply(this,arguments)||this;S.isLoading=!1;return S};
_.r(G8,_.w);_.M=G8.prototype;_.M.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"}}}};
_.M.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.scrollable&&(this.scrollable.dialogElement=this.hostElement.parentNode);V9d(this.hostElement)};
_.M.onYtServiceRequestCompleted=function(){_.St(this.hostElement,"yt-close-popup-action",["ytd-gaming-account-link-setting-renderer"])};
_.M.onYtServiceRequestError=function(S){_.An(this.hostElement,S.detail.error.message)};
_.M.onDomChange=function(){this.ytRendererBehavior.markDirty()};
_.M.onButtonClick=function(){this.data&&(this.data.isContinueDialog||this.data.thirdPartyId&&this.data.thirdPartyId!=="gpg"&&_.St(this.hostElement,"yt-initialize-third-party",[this.data.thirdPartyId]),this.isLoading=!0)};
_.M.onDataChanged=function(){this.isLoading=!1;var S=this.get("data.headerImage.thumbnails");S&&(S=_.AS(S,this.hostElement.clientWidth),this.header.style.backgroundImage="url("+S+")");S=_.X$();var p=_.F$(),U=this.get("data.trackingParams");U&&p&&S&&_.wB(S,p,_.JS(U))};
_.$u.Object.defineProperties(G8.prototype,{hasDescription:{configurable:!0,enumerable:!0,get:function(){return!(!this.data||!this.data.descriptions)}}});
G8.prototype.onDataChanged=G8.prototype.onDataChanged;G8.prototype.onDomChange=G8.prototype.onDomChange;G8.prototype.onYtServiceRequestError=G8.prototype.onYtServiceRequestError;G8.prototype.onYtServiceRequestCompleted=G8.prototype.onYtServiceRequestCompleted;_.x([_.F(_.qH.YtRendererstamperBehavior),_.E("design:type",Object)],G8.prototype,"ytRendererstamperBehavior",void 0);_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],G8.prototype,"ytRendererBehavior",void 0);
_.x([_.g(),_.E("design:type",Object)],G8.prototype,"data",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],G8.prototype,"isLoading",void 0);_.x([_.g({reflectToAttribute:!0}),_.e("data"),_.E("design:type",Boolean),_.E("design:paramtypes",[])],G8.prototype,"hasDescription",null);_.x([_.O2("tp-yt-paper-dialog-scrollable"),_.E("design:type",Object)],G8.prototype,"scrollable",void 0);_.x([_.O2("#header"),_.E("design:type",HTMLElement)],G8.prototype,"header",void 0);
_.x([_.Vd("yt-service-request-completed"),_.E("design:type",Function),_.E("design:paramtypes",[CustomEvent]),_.E("design:returntype")],G8.prototype,"onYtServiceRequestCompleted",null);_.x([_.Vd("yt-service-request-error"),_.E("design:type",Function),_.E("design:paramtypes",[CustomEvent]),_.E("design:returntype")],G8.prototype,"onYtServiceRequestError",null);
_.x([_.Vd("dom-change"),_.E("design:type",Function),_.E("design:paramtypes",[CustomEvent]),_.E("design:returntype")],G8.prototype,"onDomChange",null);_.x([_.T4("data"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],G8.prototype,"onDataChanged",null);G8=_.x([_.f({is:"ytd-gaming-account-link-setting-renderer",disableElementRegistration:!0})],G8);
_.C(G8,"ytd-gaming-account-link-setting-renderer",function(){if(pWA!==void 0)return pWA;var S=document.createElement("template");_.h(S,'\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');
S.content.insertBefore(_.t().content.cloneNode(!0),S.content.firstChild);return pWA=S},{mode:1});var UKJ;var YQL;var hT=function(){var S=_.w.apply(this,arguments)||this;S.isHeader=!1;S.getEndpointForm=function(){return WpJ(S.data)};
return S};
_.r(hT,_.w);_.M=hT.prototype;_.M.triggerHintActions=function(){var S=this;this.data&&this.data.hintActions&&this.taskEmitterBehavior.getTaskManager().addLowPriorityJob(function(){var p=_.pp(S.hostElement,"yt-get-opened-popups-action");!(p&&p.length===1?p[0]:[]).some(function(U){U=U.openPopupAction.popupType;return U==="SURVEY"||U==="MEALBAR"||U==="HINT"})&&S.data.hintActions&&S.guideOpened&&(_.Lp(S.hostElement,S.data.hintActions,S.hostElement),S.data.hintActions=void 0)})};
_.M.getBadgeIconType=function(S){return S&&S.liveBroadcasting?"live":null};
_.M.onDown=function(){this.interaction.triggerDown()};
_.M.onUp=function(){this.interaction.triggerUp()};
_.M.onTap=function(S){if(this.data.serviceEndpoint){var p;_.y("shorts_controller_retrieve_seedless_sequence_v2")&&((p=_.b(this.data.serviceEndpoint,_.QX))==null?void 0:p.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS"?this.componentBehavior.resolveCommand(this.data.serviceEndpoint):TBJ(this.data.serviceEndpoint,this);S.preventDefault()}else this.data.navigationEndpoint&&!_.Eo(_.E1(S),this.hostElement,["A".toString()])&&_.cv(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint})};
_.M.computeActive=function(S,p){if(!S)return!1;var U=S.navigationEndpoint;S=S.serviceEndpoint;if(!U&&!S||!p)return!1;if(U){S=(S=_.O1(p))&&["subscriptions","filteredsubscriptions"].includes(S);if(_.b(U,_.kM)&&_.b(p,_.kM)&&!S){var Y=_.b(U,_.kM).browseId;p=_.b(p,_.kM).browseId;return Y!==void 0&&p!==void 0&&(Y===p||Y==="VLWL"&&p==="FEwatch_later"||Y==="FEwatch_later"&&p==="VLWL")}var L;U=(L=_.b(U.commandMetadata,_.NU))==null?void 0:L.url;p=(Y=_.b(p.commandMetadata,_.NU))==null?void 0:Y.url;return!(!U||
!p||U!==p&&U!==_.Tp(p))}return this.isActiveShortsTab(S,p)};
_.M.isActiveShortsTab=function(S,p){p=!!_.b(p,_.QX)||!!_.b(p,_.Rg);return(!!_.b(S,_.QX)||!!_.b(S,_.Rg))&&p};
_.M.computeIsPrimary=function(S){return!!S};
_.$u.Object.defineProperties(hT.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 S=this.get("data.accessibility.accessibilityData.label");if(this.lineEndStyle!=="none"&&S)return S}}});
hT.prototype.onTap=hT.prototype.onTap;hT.prototype.onUp=hT.prototype.onUp;hT.prototype.onDown=hT.prototype.onDown;hT.prototype.triggerHintActions=hT.prototype.triggerHintActions;_.x([_.F(_.eL.YtComponentBehavior),_.E("design:type",Object)],hT.prototype,"componentBehavior",void 0);_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],hT.prototype,"rendererBehavior",void 0);_.x([_.F(_.$2.YtTaskEmitterBehavior),_.E("design:type",Object)],hT.prototype,"taskEmitterBehavior",void 0);
_.x([_.g(),_.E("design:type",Object)],hT.prototype,"activeEndpoint",void 0);_.x([_.g(),_.E("design:type",Object)],hT.prototype,"data",void 0);_.x([_.g(),_.E("design:type",Boolean)],hT.prototype,"guideOpened",void 0);_.x([_.g(),_.E("design:type",String)],hT.prototype,"type",void 0);_.x([_.O2("yt-interaction"),_.E("design:type",Object)],hT.prototype,"interaction",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],hT.prototype,"isHeader",void 0);
_.x([_.g({reflectToAttribute:!0}),_.e("data","activeEndpoint"),_.E("design:type",Boolean),_.E("design:paramtypes",[])],hT.prototype,"active",null);_.x([_.g({reflectToAttribute:!0}),_.e("data"),_.E("design:type",Boolean),_.E("design:paramtypes",[])],hT.prototype,"isPrimary",null);_.x([_.g({reflectToAttribute:!0}),_.e("data.count","data.presentationStyle","data.badges.*"),_.E("design:type",String),_.E("design:paramtypes",[])],hT.prototype,"lineEndStyle",null);
_.x([_.e("lineEndStyle"),_.E("design:type",Object),_.E("design:paramtypes",[])],hT.prototype,"ariaLabel",null);_.x([_.T4("data.hintActions","guideOpened"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],hT.prototype,"triggerHintActions",null);_.x([_.Vd("down"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],hT.prototype,"onDown",null);
_.x([_.Vd("up"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],hT.prototype,"onUp",null);_.x([_.Vd("tap"),_.E("design:type",Function),_.E("design:paramtypes",[CustomEvent]),_.E("design:returntype")],hT.prototype,"onTap",null);hT=_.x([_.f({is:"ytd-guide-entry-renderer",disableElementRegistration:!0})],hT);
_.C(hT,"ytd-guide-entry-renderer",function(){if(YQL!==void 0)return YQL;var S=document.createElement("template");_.h(S,'\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');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);return YQL=S},{mode:1});var Ro=function(){var S=_.w.apply(this,arguments)||this;S.userToggled=!1;return S};
_.r(Ro,_.w);_.M=Ro.prototype;_.M.getItemsPath=function(){return"data.expandableItems"};
_.M.configureRendererStamper=function(){return{shownItems:{id:"expandable-items",mapping:{guideEntryRenderer:{component:"ytd-guide-entry-renderer",properties:{activeEndpoint:"[[activeEndpoint]]"},noInjection:!0}}}}};
_.M.onExpanderItemTapped=function(S){var p=this;this._setExpanded(!0);this.userToggled=!0;this.ytLazyListBehavior.fillRemainingListItems();this.expandableItems&&!_.y("kevlar_guide_expandable_items_killswitch")&&_.oH(this,function(){_.Nz(p.expandableItems)});
S.preventDefault()};
_.M.onCollapserItemTapped=function(S){var p=this;this._setExpanded(!1);this.userToggled=!0;S.preventDefault();this.expandableItems&&!_.y("kevlar_guide_collapsible_items_killswitch")&&_.oH(this,function(){_.ig(p.hostElement)})};
_.M.observeActiveEndpoint=function(){for(var S=this.activeEndpoint,p=this.data,U=this.expandableItems.children,Y=0,L=U.length;Y<L;Y++)U[Y].activeEndpoint=S;p&&p.autoExpandCommand&&S&&!this.userToggled&&(U=this.data.autoExpandCommand,p=!(!_.b(U,_.kM)||!_.b(S,_.kM)||_.b(U,_.kM).browseId!==_.b(S,_.kM).browseId),S=this.get("commandMetadata.webCommandMetadata.url",S),U=this.get("commandMetadata.webCommandMetadata.url",U),p=p||!!(S&&U&&S.includes(U)),this._setExpanded(p),p&&this.ytLazyListBehavior.fillRemainingListItems())};
Ro.prototype.observeActiveEndpoint=Ro.prototype.observeActiveEndpoint;_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],Ro.prototype,"ytRendererBehavior",void 0);_.x([_.F(_.qH.YtRendererstamperBehavior),_.E("design:type",Object)],Ro.prototype,"ytRendererstamperBehavior",void 0);_.x([_.F(_.qb.YtLazyListBehavior),_.E("design:type",Object)],Ro.prototype,"ytLazyListBehavior",void 0);_.x([_.O2("#expandable-items"),_.E("design:type",HTMLElement)],Ro.prototype,"expandableItems",void 0);
_.x([_.g(),_.E("design:type",Object)],Ro.prototype,"data",void 0);_.x([_.g({readOnly:!0,reflectToAttribute:!0}),_.E("design:type",Boolean)],Ro.prototype,"expanded",void 0);_.x([_.g({value:0}),_.E("design:type",Number)],Ro.prototype,"initialCount",void 0);_.x([_.g(),_.E("design:type",Object)],Ro.prototype,"activeEndpoint",void 0);_.x([_.T4("data","activeEndpoint","canShowMore"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],Ro.prototype,"observeActiveEndpoint",null);
Ro=_.x([_.f({is:"ytd-guide-collapsible-entry-renderer",disableElementRegistration:!0})],Ro);
_.C(Ro,"ytd-guide-collapsible-entry-renderer",function(){if(UKJ!==void 0)return UKJ;var S=document.createElement("template");_.h(S,'\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');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);return UKJ=S},{mode:_.UW("kevlar_poly_si_batch_j079")?1:2});var LBX;var MWt;var F2=function(){var S=_.w.apply(this,arguments)||this;S.allVideosCount=0;S.renderGuideEntry=!1;return S};
_.r(F2,_.w);F2.prototype.observeRenderEntry=function(){var S;this.renderGuideEntry=!((S=this.data)==null||!S.alwaysShow)||!!this.allVideosCount};
F2.prototype.observeRenderEntry=F2.prototype.observeRenderEntry;_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],F2.prototype,"ytRendererBehavior",void 0);_.x([_.F(_.Xh),_.E("design:type",Object)],F2.prototype,"ytdReduxBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],F2.prototype,"data",void 0);_.x([_.g(),_.E("design:type",Object)],F2.prototype,"activeEndpoint",void 0);_.x([_.g({selector:_.bQG}),_.E("design:type",Object)],F2.prototype,"allVideosCount",void 0);
_.x([_.g(),_.E("design:type",Object)],F2.prototype,"renderGuideEntry",void 0);_.x([_.z4("allVideosCount","data.alwaysShow"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],F2.prototype,"observeRenderEntry",null);F2=_.x([_.f({is:"ytd-guide-downloads-entry-renderer",disableElementRegistration:!0})],F2);
_.C(F2,"ytd-guide-downloads-entry-renderer",function(){if(MWt===void 0){var S=document.createElement("template");_.h(S,'\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');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);MWt=S}S=MWt;return S},{mode:1});var X2=function(){var S=_.w.apply(this,arguments)||this;S.youtab=_.y("web_enable_youtab");S.actionMap={"yt-add-to-guide-section-action":"handleAddToGuideSectionAction","yt-remove-from-guide-section-action":"handleRemoveFromGuideSectionAction"};return S};
_.r(X2,_.w);_.M=X2.prototype;_.M.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]]"}}}}}};
_.M.activeEndpointChanged=function(){if(this.activeEndpoint){this.headerEntry.activeEndpoint=this.activeEndpoint;for(var S=this.sectionItems.children,p=0,U=S.length;p<U;p++)S[p].activeEndpoint=this.activeEndpoint}};
_.M.handleAddToGuideSectionAction=function(S){var p=_.b(S,JKL);if(p&&this.data&&(S=p.items,p=p.handlerData,S&&p&&this.data.handlerDatas&&this.data.handlerDatas.indexOf(p)>-1)){p=0;for(var U=S.length;p<U;p++)S[p].guideEntryRenderer&&this.data.sectionItems&&this.splice("data.sectionItems",this.data.sectionItems.length-1,0,S[p])}};
_.M.handleRemoveFromGuideSectionAction=function(S){var p=_.b(S,yKT);p&&this.data&&(S=p.guideEntryId,p=p.handlerData,S&&p&&this.data.handlerDatas&&this.data.handlerDatas.indexOf(p)>-1&&this.data&&this.data.sectionItems&&(this.removeFromExpandedSection(S,this.data.sectionItems),this.removeFromCollapsedSection(S,this.data.sectionItems)))};
_.M.removeFromExpandedSection=function(S,p){S=this.getEntryIndexMatchingId(S,p);S!==-1&&this.splice("data.sectionItems",S,1)};
_.M.removeFromCollapsedSection=function(S,p){var U=p.findIndex(function(Y){return!!_.b(Y,wCd)});
U&&U!==-1&&p[U]&&_.b(p[U],wCd)&&(p=_.b(p[U],wCd).expandableItems)&&(S=this.getEntryIndexMatchingId(S,p),S!==-1&&this.splice("data.sectionItems."+U+".guideCollapsibleEntryRenderer.expandableItems",S,1))};
_.M.getEntryIndexMatchingId=function(S,p){var U=this;return p.findIndex(function(Y){return U.get("guideEntryRenderer.entryData.guideEntryData.guideEntryId",Y)===S})};
X2.prototype.activeEndpointChanged=X2.prototype.activeEndpointChanged;_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],X2.prototype,"ytRendererBehavior",void 0);_.x([_.F(_.Aj.YtActionHandlerBehavior),_.E("design:type",Object)],X2.prototype,"actionHandlerBehavior",void 0);_.x([_.F(_.qH.YtRendererstamperBehavior),_.E("design:type",Object)],X2.prototype,"ytRendererstamperBehavior",void 0);_.x([_.O2("#section-items"),_.E("design:type",HTMLDivElement)],X2.prototype,"sectionItems",void 0);
_.x([_.O2("#header-entry"),_.E("design:type",Object)],X2.prototype,"headerEntry",void 0);_.x([_.g(),_.E("design:type",Object)],X2.prototype,"data",void 0);_.x([_.g(),_.E("design:type",Object)],X2.prototype,"activeEndpoint",void 0);_.x([_.g(),_.E("design:type",Object)],X2.prototype,"youtab",void 0);_.x([_.T4("activeEndpoint"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],X2.prototype,"activeEndpointChanged",null);
X2=_.x([_.f({is:"ytd-guide-collapsible-section-entry-renderer",disableElementRegistration:!0})],X2);
_.C(X2,"ytd-guide-collapsible-section-entry-renderer",function(){if(LBX===void 0){var S=document.createElement("template");_.h(S,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-guide-collapsible-section-entry-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-guide-collapsible-section-entry-renderer">\n  <ytd-guide-entry-renderer id="header-entry" data="[[data.headerEntry.guideEntryRenderer]]" is-header="[[youtab]]" class="style-scope ytd-guide-collapsible-section-entry-renderer">\n  </ytd-guide-entry-renderer>\n</div>\n<div id="section-items" class="style-scope ytd-guide-collapsible-section-entry-renderer"></div>\n');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);LBX=S}S=LBX;return S},{mode:1});var Ik5;var dKq;var PR=function(){var S=_.w.apply(this,arguments)||this;S.modernTypography=_.y("web_modern_typography");S.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 S};
_.r(PR,_.w);_.M=PR.prototype;
_.M.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}}}}};
_.M.persistentGuideChanged=function(){if(!this.ytdGuideStateAwareBehavior.guidePersistentAndVisible){var S=_.pp(this.hostElement,"yt-get-popup-opened-action",["yt-bubble-hint-renderer"]);S&&S.length===1&&S[0]&&_.pp(this.hostElement,"yt-close-popup-action",["yt-bubble-hint-renderer"])}};
_.M.handleResetChannelUnreadCountCommand=function(S){var p;(S=(p=_.b(S,bCY))==null?void 0:p.channelId)&&this.data&&this.data.items&&(p=this.getPathToEntryMatchingId(S))&&(this.set(p+".guideEntryRenderer.count",0),this.set(p+".guideEntryRenderer.presentationStyle","GUIDE_ENTRY_PRESENTATION_STYLE_NONE"))};
_.M.handleResetSubscriptionsUnreadDotCommand=function(S){var p,U=(p=_.b(S,jXT))==null?void 0:p.targetId,Y;U&&(Y=this.data)!=null&&Y.items&&(S=this.data.items.findIndex(function(L){var I;return((I=L.guideEntryRenderer)==null?void 0:I.targetId)===U}),S<0||this.set("data.items."+S+".guideEntryRenderer.presentationStyle","GUIDE_ENTRY_PRESENTATION_STYLE_NONE"))};
_.M.getPathToEntryMatchingId=function(S){if(this.data&&this.data.items){var p=this.getEntryIndexMatchingId(S,this.data.items);if(p>-1)return"data.items."+p;for(var U=0;U<this.data.items.length;U++)if(p=this.get("guideCollapsibleEntryRenderer.expandableItems",this.data.items[U]))if(p=this.getEntryIndexMatchingId(S,p),p>-1)return"data.items."+U+".guideCollapsibleEntryRenderer.expandableItems."+p}};
_.M.handleAddToGuideSectionAction=function(S){var p=this;if(_.b(S,JKL)){var U=_.b(S,JKL).items;S=_.b(S,JKL).handlerData;var Y,L;U&&S&&((Y=this.data)==null?void 0:(L=Y.handlerDatas)==null?void 0:L.indexOf(S))>-1&&(U=U.filter(function(I){return(I=p.get("guideEntryRenderer.entryData.guideEntryData.guideEntryId",I))&&!p.isGuideItemPresent(I)}),this.unshift.apply(this,["data.items"].concat(_.jo(U))))}};
_.M.isGuideItemPresent=function(S){if(this.data&&this.data.items){if(this.getEntryIndexMatchingId(S,this.data.items)!==-1)return!0;var p=this.data.items.find(function(U){return!!U.guideCollapsibleEntryRenderer});
if((p==null?0:p.guideCollapsibleEntryRenderer.expandableItems)&&this.getEntryIndexMatchingId(S,p.guideCollapsibleEntryRenderer.expandableItems)!==-1)return!0}return!1};
_.M.getEntryIndexMatchingId=function(S,p){var U=this;return p.findIndex(function(Y){return U.get("guideEntryRenderer.entryData.guideEntryData.guideEntryId",Y)===S})};
_.M.handleRemoveFromGuideSectionAction=function(S){if(_.b(S,yKT)){var p=_.b(S,yKT).guideEntryId;S=_.b(S,yKT).handlerData;var U,Y;p&&S&&((U=this.data)==null?void 0:(Y=U.handlerDatas)==null?void 0:Y.indexOf(S))>-1&&this.data&&this.data.items&&(this.removeFromExpandedSection(p,this.data.items),this.removeFromCollapsedSection(p,this.data.items))}};
_.M.removeFromExpandedSection=function(S,p){S=this.getEntryIndexMatchingId(S,p);S!==-1&&this.splice("data.items",S,1)};
_.M.removeFromCollapsedSection=function(S,p){var U=p.findIndex(function(Y){return!!Y.guideCollapsibleEntryRenderer});
U!==-1&&(p=p[U].guideCollapsibleEntryRenderer.expandableItems)&&(S=this.getEntryIndexMatchingId(S,p),S!==-1&&this.splice("data.items."+U+".guideCollapsibleEntryRenderer.expandableItems",S,1))};
_.M.activeEndpointChanged=function(){for(var S=_.tB(this.hostElement).querySelector("#items").children,p=0,U=S.length;p<U;p++)S[p].activeEndpoint=this.ytdGuideStateAwareBehavior.activeEndpoint};
_.M.guideOpenedChanged=function(){for(var S=_.tB(this.hostElement).querySelector("#items").children,p=0,U=S.length;p<U;p++)S[p].guideOpened=this.ytdGuideStateAwareBehavior.guideOpened};
PR.prototype.guideOpenedChanged=PR.prototype.guideOpenedChanged;PR.prototype.activeEndpointChanged=PR.prototype.activeEndpointChanged;PR.prototype.persistentGuideChanged=PR.prototype.persistentGuideChanged;_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],PR.prototype,"ytRendererBehavior",void 0);_.x([_.F(_.qH.YtRendererstamperBehavior),_.E("design:type",Object)],PR.prototype,"ytRendererstamperBehavior",void 0);
_.x([_.F(_.Aj.YtActionHandlerBehavior),_.E("design:type",Object)],PR.prototype,"ytActionHandlerBehavior",void 0);_.x([_.F(_.qb.YtLazyListBehavior),_.E("design:type",Object)],PR.prototype,"ytLazyListBehavior",void 0);_.x([_.F(_.uc.YtdGuideStateAwareBehavior),_.E("design:type",Object)],PR.prototype,"ytdGuideStateAwareBehavior",void 0);_.x([_.F(_.eL.YtComponentBehavior),_.E("design:type",Object)],PR.prototype,"ytComponentBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],PR.prototype,"data",void 0);
_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],PR.prototype,"modernTypography",void 0);_.x([_.g(),_.E("design:type",String)],PR.prototype,"type",void 0);_.x([_.g({value:20}),_.E("design:type",Number)],PR.prototype,"initialCount",void 0);_.x([_.g({value:10}),_.E("design:type",Number)],PR.prototype,"targetFramerate",void 0);_.x([_.g({value:!0}),_.E("design:type",Boolean)],PR.prototype,"autoFill",void 0);_.x([_.g({value:50}),_.E("design:type",Number)],PR.prototype,"renderDelay",void 0);
_.x([_.T4("guidePersistentAndVisible"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],PR.prototype,"persistentGuideChanged",null);_.x([_.z4("activeEndpoint"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],PR.prototype,"activeEndpointChanged",null);_.x([_.z4("guideOpened"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],PR.prototype,"guideOpenedChanged",null);
PR=_.x([_.f({is:"ytd-guide-section-renderer",disableElementRegistration:!0})],PR);
_.C(PR,"ytd-guide-section-renderer",function(){if(dKq!==void 0)return dKq;var S=document.createElement("template");_.h(S,'\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');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);return dKq=S},{mode:_.UW("kevlar_poly_si_batch_j073")?1:2});var VWJ;var ZW=function(){return _.w.apply(this,arguments)||this};
_.r(ZW,_.w);_.$u.Object.defineProperties(ZW.prototype,{alignByText:{configurable:!0,enumerable:!0,get:function(){return this.get("data.signInButton.buttonRenderer.style")==="STYLE_BLUE_TEXT"}}});
_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],ZW.prototype,"rendererBehaviors",void 0);_.x([_.g(),_.E("design:type",Object)],ZW.prototype,"data",void 0);_.x([_.g(),_.e("data.signInButton.buttonRenderer.style"),_.E("design:type",Object),_.E("design:paramtypes",[])],ZW.prototype,"alignByText",null);ZW=_.x([_.f({is:"ytd-guide-signin-promo-renderer",disableElementRegistration:!0})],ZW);
_.C(ZW,"ytd-guide-signin-promo-renderer",function(){if(VWJ===void 0){var S=document.createElement("template");_.h(S,'\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');
S.content.insertBefore(_.t().content.cloneNode(!0),S.content.firstChild);VWJ=S}S=VWJ;return S},{mode:1});var s4=function(){var S=_.w.apply(this,arguments)||this;S.showFooter=!1;return S};
_.r(s4,_.w);s4.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}}}}};
s4.prototype.attached=function(){var S=this,p;return _.T(function(U){if(U.nextAddress==1){p=_.tW().resolve(_.AW(_.gr));if(!p)return U.jumpTo(0);p.setGuideData(S.hostElement);return _.k(U,0,3)}S.ytLazyListBehavior.initialCount=2;return U.return()})};
s4.prototype.dataChanged=function(){this.data&&(this.showFooter=!0)};
s4.prototype.dataChanged=s4.prototype.dataChanged;_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],s4.prototype,"ytRendererBehavior",void 0);_.x([_.F(_.eL.YtComponentBehavior),_.E("design:type",Object)],s4.prototype,"ytComponentBehavior",void 0);_.x([_.F(_.qb.YtLazyListBehavior),_.E("design:type",Object)],s4.prototype,"ytLazyListBehavior",void 0);_.x([_.F(_.qH.YtRendererstamperBehavior),_.E("design:type",Object)],s4.prototype,"ytRendererstamperBehavior",void 0);
_.x([_.g(),_.E("design:type",Object)],s4.prototype,"data",void 0);_.x([_.g(),_.E("design:type",Object)],s4.prototype,"showFooter",void 0);_.x([_.g({value:!0}),_.E("design:type",Boolean)],s4.prototype,"autoFill",void 0);_.x([_.z4("data"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],s4.prototype,"dataChanged",null);s4=_.x([_.f({is:"ytd-guide-renderer",disableElementRegistration:!0})],s4);
_.C(s4,"ytd-guide-renderer",function(){if(Ik5!==void 0)return Ik5;var S=document.createElement("template");_.h(S,'\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');
S.content.insertBefore(_.t().content.cloneNode(!0),S.content.firstChild);return Ik5=S},{mode:_.UW("kevlar_poly_si_batch_j073")?1:2});var TsE;var e_=function(){var S=_.w.apply(this,arguments)||this;S.systemIcons=_.y("kevlar_system_icons");S.frostedGlass=_.y("web_frosted_glass");S.getEndpointForm=function(){return WpJ(S.data)};
return S};
_.r(e_,_.w);_.M=e_.prototype;_.M.attached=function(){this.hostElement.setAttribute("role","tab");this.hostElement.setAttribute("tabindex","0")};
_.M.dataChanged=function(){this.hostElement.setAttribute("aria-selected",""+this.isActive);this.hostElement.setAttribute("aria-label",_.mA(this.data.formattedTitle))};
_.M.onActiveStateChange=function(){this.hostElement.setAttribute("aria-selected",""+this.isActive)};
_.M.onDown=function(){this.interaction.triggerDown()};
_.M.onUp=function(){this.interaction.triggerUp()};
_.M.onTap=function(S){if(this.data.serviceEndpoint){var p;_.y("shorts_controller_retrieve_seedless_sequence_v2")&&((p=_.b(this.data.serviceEndpoint,_.QX))==null?void 0:p.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS"?this.ytComponentBehavior.resolveCommand(this.data.serviceEndpoint):TBJ(this.data.serviceEndpoint,this);S.preventDefault()}else{var U;((U=this.data)==null?0:U.navigationEndpoint)&&!_.Eo(_.E1(S),this.hostElement,["A".toString()])&&_.cv(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint})}};
_.M.computeActive=function(S,p){if(!S)return!1;var U=S.navigationEndpoint;S=S.serviceEndpoint;if(!U&&!S||!p)return!1;if(U){S=_.b(U,_.kM);var Y=_.b(p,_.kM);if(S&&Y)return S.browseId===Y.browseId&&S.params===Y.params;var L;U=(L=_.b(U.commandMetadata,_.NU))==null?void 0:L.url;var I;p=(I=_.b(p.commandMetadata,_.NU))==null?void 0:I.url;return!(!U||!p||U!==p&&U!==_.Tp(p))}return this.isActiveShortsTab(S,p)};
_.M.isActiveShortsTab=function(S,p){p=!!_.b(p,_.QX)||!!_.b(p,_.Rg);return(!!_.b(S,_.QX)||!!_.b(S,_.Rg))&&p};
_.M.computeTitle=function(S,p){return p?"":_.mA(S)};
_.$u.Object.defineProperties(e_.prototype,{ariaSelected:{configurable:!0,enumerable:!0,get:function(){if(this.isActive!==void 0)return this.isActive.toString()}}});
e_.prototype.onTap=e_.prototype.onTap;e_.prototype.onUp=e_.prototype.onUp;e_.prototype.onDown=e_.prototype.onDown;e_.prototype.onActiveStateChange=e_.prototype.onActiveStateChange;e_.prototype.dataChanged=e_.prototype.dataChanged;_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],e_.prototype,"ytRendererBehavior",void 0);_.x([_.F(_.eL.YtComponentBehavior),_.E("design:type",Object)],e_.prototype,"ytComponentBehavior",void 0);
_.x([_.F(_.GC),_.E("design:type",Object)],e_.prototype,"ironButtonState",void 0);_.x([_.g(),_.E("design:type",Object)],e_.prototype,"data",void 0);_.x([_.g(),_.E("design:type",Object)],e_.prototype,"activeEndpoint",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Boolean)],e_.prototype,"noLabels",void 0);_.x([_.g({reflectToAttribute:!0,computed:"computeActive(data,activeEndpoint)"}),_.E("design:type",Boolean)],e_.prototype,"isActive",void 0);
_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],e_.prototype,"systemIcons",void 0);_.x([_.O2("yt-interaction"),_.E("design:type",Object)],e_.prototype,"interaction",void 0);_.x([_.e("isActive"),_.E("design:type",Object),_.E("design:paramtypes",[])],e_.prototype,"ariaSelected",null);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],e_.prototype,"frostedGlass",void 0);
_.x([_.z4("data"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],e_.prototype,"dataChanged",null);_.x([_.T4("isActive"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],e_.prototype,"onActiveStateChange",null);_.x([_.Vd("down"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],e_.prototype,"onDown",null);
_.x([_.Vd("up"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],e_.prototype,"onUp",null);_.x([_.Vd("tap"),_.E("design:type",Function),_.E("design:paramtypes",[CustomEvent]),_.E("design:returntype")],e_.prototype,"onTap",null);e_=_.x([_.f({is:"ytd-mini-guide-entry-renderer",disableElementRegistration:!0})],e_);
_.C(e_,"ytd-mini-guide-entry-renderer",function(){if(TsE!==void 0)return TsE;var S=document.createElement("template");_.h(S,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-mini-guide-entry-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a id="endpoint" tabindex="-1" class="yt-simple-endpoint style-scope ytd-mini-guide-entry-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]" title="[[computeTitle(data.formattedTitle, noLabels)]]" get-form="[[getEndpointForm]]">\n  <yt-icon id="icon" class="guide-icon style-scope ytd-mini-guide-entry-renderer" active="[[isActive]]" disable-upgrade$="[[data.thumbnail]]" hidden="[[data.thumbnail]]" icon="[[data.icon.iconType]]">\n  </yt-icon>\n  <span class="title style-scope ytd-mini-guide-entry-renderer" hidden="[[noLabels]]">[[getSimpleString(data.formattedTitle)]]</span>\n  <tp-yt-paper-tooltip animation-delay="0" hidden="[[!noLabels]]" offset="4" position="right" class="style-scope ytd-mini-guide-entry-renderer">\n    [[getSimpleString(data.formattedTitle)]]\n  </tp-yt-paper-tooltip>\n  <yt-interaction class="style-scope ytd-mini-guide-entry-renderer"></yt-interaction>\n</a>\n');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);return TsE=S},{mode:_.UW("kevlar_poly_si_batch_j063")?1:2});var WBL;var g2=function(){var S=_.w.apply(this,arguments)||this;S.allVideosCount=0;S.noLabels=_.y("kevlar_mini_guide_no_labels");S.frostedGlass=_.y("web_frosted_glass");return S};
_.r(g2,_.w);_.M=g2.prototype;_.M.configureRendererStamper=function(){return{miniGuideItems:{id:"items",mapping:{guideEntryRenderer:{component:"ytd-mini-guide-entry-renderer",properties:{activeEndpoint:"[[activeEndpoint]]",noLabels:"[[noLabels]]"},noInjection:!0}}}}};
_.M.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","navigation")};
_.M.visibleChanged=function(){if(this.visible&&!this.data){var S=_.tW().resolve(_.AW(_.gr));S&&S.setGuideData(this.hostElement)}};
_.M.dataChanged=function(){var S=[],p;if((p=this.data)!=null&&p.items){p=_.d(this.data.items);for(var U=p.next();!U.done;U=p.next()){U=U.value;var Y=void 0;if((Y=U.guideSectionRenderer)==null?0:Y.items)for(Y=void 0,U=_.d((Y=U.guideSectionRenderer)==null?void 0:Y.items),Y=U.next();!Y.done;Y=U.next())if(Y=Y.value,Y.guideEntryRenderer)Y=Y.guideEntryRenderer,Y.isPrimary&&S.push({guideEntryRenderer:Y});else if(Y.guideCollapsibleSectionEntryRenderer){var L=void 0;((L=_.b(Y.guideCollapsibleSectionEntryRenderer.headerEntry,
vu))==null?0:L.isPrimary)&&S.push({guideEntryRenderer:_.b(Y.guideCollapsibleSectionEntryRenderer.headerEntry,vu)});if(Y=Y.guideCollapsibleSectionEntryRenderer.sectionItems)for(Y=_.d(Y),L=Y.next();!L.done;L=Y.next()){var I=L.value;L=_.b(I,lFL);var V=void 0;((V=_.b(I,vu))==null?0:V.isPrimary)?S.push({guideEntryRenderer:_.b(I,vu)}):L&&(I=void 0,_.b((I=L)==null?void 0:I.entryRenderer,vu)&&(L.alwaysShow||this.allVideosCount)&&S.push({guideEntryRenderer:_.b(L.entryRenderer,vu)}))}}}}this.miniGuideItems=
S};
_.M.activeEndpointChanged=function(){for(var S=this.items.children,p=0;p<S.length;p++)S[p].activeEndpoint=this.ytdGuideStateAwareBehavior.activeEndpoint};
g2.prototype.activeEndpointChanged=g2.prototype.activeEndpointChanged;g2.prototype.dataChanged=g2.prototype.dataChanged;g2.prototype.visibleChanged=g2.prototype.visibleChanged;_.x([_.F(_.Xh),_.E("design:type",Object)],g2.prototype,"ytdReduxBehavior",void 0);_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],g2.prototype,"ytRendererBehavior",void 0);_.x([_.F(_.qH.YtRendererstamperBehavior),_.E("design:type",Object)],g2.prototype,"ytRendererstamperBehavior",void 0);
_.x([_.F(_.uc.YtdGuideStateAwareBehavior),_.E("design:type",Object)],g2.prototype,"ytdGuideStateAwareBehavior",void 0);_.x([_.F(_.eL.YtComponentBehavior),_.E("design:type",Object)],g2.prototype,"ytComponentBehavior",void 0);_.x([_.O2("#items"),_.E("design:type",Object)],g2.prototype,"items",void 0);_.x([_.g(),_.E("design:type",Object)],g2.prototype,"data",void 0);_.x([_.g(),_.E("design:type",Boolean)],g2.prototype,"visible",void 0);
_.x([_.g(),_.E("design:type",Object)],g2.prototype,"miniGuideItems",void 0);_.x([_.g({selector:_.bQG}),_.E("design:type",Object)],g2.prototype,"allVideosCount",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],g2.prototype,"noLabels",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],g2.prototype,"frostedGlass",void 0);_.x([_.z4("visible"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],g2.prototype,"visibleChanged",null);
_.x([_.z4("data","allVideosCount"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],g2.prototype,"dataChanged",null);_.x([_.z4("activeEndpoint"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],g2.prototype,"activeEndpointChanged",null);g2=_.x([_.f({is:"ytd-mini-guide-renderer",disableElementRegistration:!0})],g2);
_.C(g2,"ytd-mini-guide-renderer",function(){if(WBL===void 0){var S=document.createElement("template");_.h(S,'\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');S.content.insertBefore(_.t().content.cloneNode(!0),S.content.firstChild);WBL=S}S=WBL;return S},{mode:1});var O7s;var kFt=/^[\x00-\x7F]+$/,un=function(){var S=_.w.apply(this,arguments)||this;S.darkerDarkTheme=_.y("web_darker_dark_theme");return S};
_.r(un,_.w);_.$u.Object.defineProperties(un.prototype,{displayHandle:{configurable:!0,enumerable:!0,get:function(){var S,p=_.mA((S=this.data)==null?void 0:S.handle);if(p)return _.Ec("@"+p)}},
displayHandleUrl:{configurable:!0,enumerable:!0,get:function(){var S=_.mA(this.displayHandle),p,U=_.mA((p=this.data)==null?void 0:p.handleUrl);if(S&&U)return _.Ec(U+S)}},
warningText:{configurable:!0,enumerable:!0,get:function(){var S=_.mA(this.displayHandle);if(S&&!kFt.test(S)){var p;return(p=this.data)==null?void 0:p.warningText}}},
urlInfoTextWithUrl:{configurable:!0,enumerable:!0,get:function(){var S=_.mA(this.displayHandleUrl),p,U=_.mA((p=this.data)==null?void 0:p.urlInfoText);if(S&&U)return _.Ec(U+" "+S)}}});
_.x([_.g(),_.E("design:type",Object)],un.prototype,"data",void 0);_.x([_.e("data"),_.E("design:type",Object),_.E("design:paramtypes",[])],un.prototype,"displayHandle",null);_.x([_.e("displayHandle"),_.E("design:type",Object),_.E("design:paramtypes",[])],un.prototype,"displayHandleUrl",null);_.x([_.e("displayHandle"),_.E("design:type",Object),_.E("design:paramtypes",[])],un.prototype,"warningText",null);
_.x([_.e("displayHandleUrl"),_.E("design:type",Object),_.E("design:paramtypes",[])],un.prototype,"urlInfoTextWithUrl",null);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],un.prototype,"darkerDarkTheme",void 0);un=_.x([_.f({is:"ytd-handles-claiming-confirm-dialog-content",disableElementRegistration:!0})],un);
_.C(un,"ytd-handles-claiming-confirm-dialog-content",function(){if(O7s!==void 0)return O7s;var S=document.createElement("template");_.h(S,'\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');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);return O7s=S},{mode:1});var H7L;var w2=function(){var S=_.w.apply(this,arguments)||this;S.okButtonOverride={style:"mono",type:"outline",size:"M"};return S};
_.r(w2,_.w);w2.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
w2.prototype.configureRendererStamper=function(){return{"data.okButton":{id:"ok-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[okButtonOverride]]"}}}}}};
_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],w2.prototype,"ytRendererBehavior",void 0);_.x([_.F(_.qH.YtRendererstamperBehavior),_.E("design:type",Object)],w2.prototype,"ytRendererstamperBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],w2.prototype,"okButtonOverride",void 0);_.x([_.g(),_.E("design:type",Object)],w2.prototype,"data",void 0);w2=_.x([_.f({is:"ytd-handles-claiming-confirm-dialog-renderer",disableElementRegistration:!0})],w2);
_.C(w2,"ytd-handles-claiming-confirm-dialog-renderer",function(){if(H7L!==void 0)return H7L;var S=document.createElement("template");_.h(S,'\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');
S.content.insertBefore(_.t().content.cloneNode(!0),S.content.firstChild);return H7L=S},{mode:1});var DKL;var zIY=/^[\x00-\x7F]+$/,ln=function(){var S=_.w.apply(this,arguments)||this;S.isLoading=!1;S.darkerDarkTheme=_.y("web_darker_dark_theme");return S};
_.r(ln,_.w);ln.prototype.selectedHandleChanged=function(){if(this.handleInput&&this.onSelectedHandleChanged){var S;this.selectedHandle=(S=this.handleInput)==null?void 0:S.value;this.onSelectedHandleChanged(this.selectedHandle);_.pp(this.hostElement,"yt-refit-popups-action")}};
_.$u.Object.defineProperties(ln.prototype,{handleUrlPrefix:{configurable:!0,enumerable:!0,get:function(){var S;return(S=this.data)==null?void 0:S.handleUrlPrefix}},
displayHandle:{configurable:!0,enumerable:!0,get:function(){if(this.selectedHandle)return _.Ec("@"+this.selectedHandle)}},
displayHandleUrl:{configurable:!0,enumerable:!0,get:function(){if(this.handleUrlPrefix&&this.selectedHandle)return _.Ec(this.handleUrlPrefix+"@"+this.selectedHandle)}},
warningText:{configurable:!0,enumerable:!0,get:function(){if(this.selectedHandle&&!zIY.test(this.selectedHandle)){var S;return(S=this.data)==null?void 0:S.warningText}}}});
_.x([_.F(_.eL.YtComponentBehavior),_.E("design:type",Object)],ln.prototype,"ytComponentBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],ln.prototype,"data",void 0);_.x([_.g(),_.E("design:type",String)],ln.prototype,"selectedHandle",void 0);_.x([_.g(),_.E("design:type",Object)],ln.prototype,"isLoading",void 0);_.x([_.g(),_.E("design:type",Function)],ln.prototype,"onSelectedHandleChanged",void 0);_.x([_.O2("#channel-handle-input"),_.E("design:type",Object)],ln.prototype,"handleInput",void 0);
_.x([_.e("data"),_.E("design:type",Object),_.E("design:paramtypes",[])],ln.prototype,"handleUrlPrefix",null);_.x([_.e("selectedHandle"),_.E("design:type",Object),_.E("design:paramtypes",[])],ln.prototype,"displayHandle",null);_.x([_.e("selectedHandle"),_.E("design:type",Object),_.E("design:paramtypes",[])],ln.prototype,"displayHandleUrl",null);_.x([_.e("selectedHandle"),_.E("design:type",Object),_.E("design:paramtypes",[])],ln.prototype,"warningText",null);
_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],ln.prototype,"darkerDarkTheme",void 0);_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],ln.prototype,"ytRendererBehavior",void 0);ln=_.x([_.f({is:"ytd-handles-claiming-edit-dialog-content",disableElementRegistration:!0})],ln);
_.C(ln,"ytd-handles-claiming-edit-dialog-content",function(){if(DKL!==void 0)return DKL;var S=document.createElement("template");_.h(S,'\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');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);return DKL=S},{mode:1});var Qrn;var ao=function(){var S=_.w.apply(this,arguments)||this;S.actionButtonOverride={style:"mono",type:"filled",size:"M"};S.cancelButtonOverride={style:"mono",type:"text",size:"M"};S.selectButtonDisabled=!1;S.isLoading=!1;S.hasSelectedHandleEventListener=!1;S.selectedHandleChanged=function(p){S.selectedHandle=p};
return S};
_.r(ao,_.w);_.M=ao.prototype;_.M.onSelectedHandleChanged=function(){this.updateSelectButtonDisabled()};
_.M.onDataChanged=function(){var S,p;this.selectedHandle=(p=_.b((S=this.data)==null?void 0:S.inputField,HC5))==null?void 0:p.handle};
_.M.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.M.onCancel=function(){this.selectedHandle="";_.St(this.hostElement,"yt-close-popup-action",[this.is])};
_.M.onSelectHandle=function(){var S=this;if(this.selectedHandle!==void 0){var p;((p=this.data)==null?void 0:p.updateChannelPageSettings)!==void 0&&(this.isLoading=!0,this.ytComponentBehavior.resolveCommand(this.data.updateChannelPageSettings,{form:{handle:this.selectedHandle},commandController:{onSuccess:function(U,Y){if(Y.newHandleUpdateStatus!==void 0&&Y.newHandleUpdateStatus.error==="HANDLE_UPDATE_ERROR_HANDLE_CHANGE_QUOTA_EXCEEDED"&&Y.newHandleUpdateStatus.errorMessage)_.An(S.hostElement,_.mA(Y.newHandleUpdateStatus.errorMessage)),
S.isLoading=!1;else{var L;if((L=S.data)==null?0:L.onChannelUpdateSuccess){U=S.data.onChannelUpdateSuccess;var I,V;if(Y=(I=_.b(U,_.KQ))==null?void 0:(V=I.popup)==null?void 0:V.handlesClaimingConfirmDialogRenderer)Y.handle=_.Ec(S.selectedHandle);S.ytComponentBehavior.resolveCommand(U);_.St(S.hostElement,"yt-close-popup-action",[S.is])}else S.isLoading=!1}},
onServerError:function(){var U;S.content&&((U=S.content)==null?0:U.handleInput)&&S.content.handleInput.validate();S.isLoading=!1;_.An(S.hostElement,_.Oh("TRY_AGAIN_LATER"))}}}))}};
_.M.updateSelectButtonDisabled=function(){this.selectButtonDisabled=this.isLoading||this.selectedHandle===void 0||this.selectedHandle===""||!this.selectedHandle};
ao.prototype.onDataChanged=ao.prototype.onDataChanged;ao.prototype.onSelectedHandleChanged=ao.prototype.onSelectedHandleChanged;_.x([_.F(_.eL.YtComponentBehavior),_.E("design:type",Object)],ao.prototype,"ytComponentBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],ao.prototype,"actionButtonOverride",void 0);_.x([_.g(),_.E("design:type",Object)],ao.prototype,"cancelButtonOverride",void 0);_.x([_.g(),_.E("design:type",Object)],ao.prototype,"data",void 0);
_.x([_.g(),_.E("design:type",String)],ao.prototype,"selectedHandle",void 0);_.x([_.g(),_.E("design:type",Object)],ao.prototype,"selectButtonDisabled",void 0);_.x([_.g(),_.E("design:type",Object)],ao.prototype,"isLoading",void 0);_.x([_.g(),_.E("design:type",Object)],ao.prototype,"hasSelectedHandleEventListener",void 0);_.x([_.g(),_.E("design:type",Object)],ao.prototype,"handleInput",void 0);
_.x([_.T4("selectedHandle"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],ao.prototype,"onSelectedHandleChanged",null);_.x([_.T4("data"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],ao.prototype,"onDataChanged",null);_.x([_.O2("ytd-handles-claiming-edit-dialog-content"),_.E("design:type",Object)],ao.prototype,"content",void 0);_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],ao.prototype,"ytRendererBehavior",void 0);
_.x([_.F(_.qH.YtRendererstamperBehavior),_.E("design:type",Object)],ao.prototype,"ytRendererstamperBehavior",void 0);ao=_.x([_.f({is:"ytd-handles-claiming-edit-dialog-renderer",disableElementRegistration:!0})],ao);
_.C(ao,"ytd-handles-claiming-edit-dialog-renderer",function(){if(Qrn!==void 0)return Qrn;var S=document.createElement("template");_.h(S,'\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');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);return Qrn=S},{mode:1});var nBT;var f1=function(){return _.w.apply(this,arguments)||this};
_.r(f1,_.w);_.$u.Object.defineProperties(f1.prototype,{formattedHandle:{configurable:!0,enumerable:!0,get:function(){var S;if((S=this.data)==null?0:S.handle){var p;return _.Ec("@"+_.mA((p=this.data)==null?void 0:p.handle))}}}});
_.x([_.e("data"),_.E("design:type",Object),_.E("design:paramtypes",[])],f1.prototype,"formattedHandle",null);_.x([_.g(),_.E("design:type",Object)],f1.prototype,"data",void 0);f1=_.x([_.f({is:"ytd-handles-claiming-radio-option-renderer",disableElementRegistration:!0})],f1);
_.C(f1,"ytd-handles-claiming-radio-option-renderer",function(){if(nBT!==void 0)return nBT;var S=document.createElement("template");_.h(S,'\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');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);return nBT=S},{mode:1});var JOt;var yOP=/^[\x00-\x7F]+$/,C1=function(){var S=_.w.apply(this,arguments)||this;S.initialRadioIndex="-1";S.isLoading=!1;S.darkerDarkTheme=_.y("web_darker_dark_theme");S.maybeSubmitFeedback=function(){S.feedbackSurveyRenderer.submitSurvey()};
return S};
_.r(C1,_.w);C1.prototype.updateSelectedHandleIndexFromBinding=function(S){this.selectedRadioIndex=+S.detail.value;if(this.onSelectedRadioIndexChanged)this.onSelectedRadioIndexChanged(S)};
C1.prototype.selectedHandleChanged=function(S){if(this.handleInput&&Number(this.selectedRadioIndex)===this.radioButtonLength&&this.onSelectedHandleChanged){var p;this.selectedHandle=(p=this.handleInput)==null?void 0:p.value;this.onSelectedHandleChanged(S)}};
_.$u.Object.defineProperties(C1.prototype,{radioButtonLength:{configurable:!0,enumerable:!0,get:function(){var S;return(((S=this.data)==null?void 0:S.radioButton)||[]).length}},
handleUrlPrefix:{configurable:!0,enumerable:!0,get:function(){var S;return this.ytRendererBehavior.getSimpleString((S=this.data)==null?void 0:S.handleUrlPrefix)}},
displayHandle:{configurable:!0,enumerable:!0,get:function(){if(this.selectedHandle)return _.Ec("@"+this.selectedHandle)}},
displayHandleUrl:{configurable:!0,enumerable:!0,get:function(){if(this.handleUrlPrefix&&this.selectedHandle)return _.Ec(this.handleUrlPrefix+"@"+this.selectedHandle)}},
warningText:{configurable:!0,enumerable:!0,get:function(){if(this.selectedHandle&&!yOP.test(this.selectedHandle)){var S;return(S=this.data)==null?void 0:S.warningText}}}});
_.x([_.g(),_.E("design:type",Object)],C1.prototype,"data",void 0);_.x([_.g(),_.E("design:type",Object)],C1.prototype,"initialRadioIndex",void 0);_.x([_.g(),_.E("design:type",Number)],C1.prototype,"selectedRadioIndex",void 0);_.x([_.g(),_.E("design:type",String)],C1.prototype,"selectedHandle",void 0);_.x([_.g(),_.E("design:type",Object)],C1.prototype,"isLoading",void 0);_.x([_.g(),_.E("design:type",Function)],C1.prototype,"onSelectedHandleChanged",void 0);
_.x([_.g(),_.E("design:type",Function)],C1.prototype,"onSelectedRadioIndexChanged",void 0);_.x([_.O2("#channel-handle-input"),_.E("design:type",Object)],C1.prototype,"handleInput",void 0);_.x([_.O2("ytd-feedback-survey-renderer"),_.E("design:type",Object)],C1.prototype,"feedbackSurveyRenderer",void 0);_.x([_.e("data"),_.E("design:type",Number),_.E("design:paramtypes",[])],C1.prototype,"radioButtonLength",null);
_.x([_.e("data"),_.E("design:type",Object),_.E("design:paramtypes",[])],C1.prototype,"handleUrlPrefix",null);_.x([_.e("selectedHandle"),_.E("design:type",Object),_.E("design:paramtypes",[])],C1.prototype,"displayHandle",null);_.x([_.e("selectedHandle"),_.E("design:type",Object),_.E("design:paramtypes",[])],C1.prototype,"displayHandleUrl",null);_.x([_.e("selectedHandle"),_.E("design:type",Object),_.E("design:paramtypes",[])],C1.prototype,"warningText",null);
_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],C1.prototype,"darkerDarkTheme",void 0);_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],C1.prototype,"ytRendererBehavior",void 0);C1=_.x([_.f({is:"ytd-handles-claiming-select-dialog-content",disableElementRegistration:!0})],C1);
_.C(C1,"ytd-handles-claiming-select-dialog-content",function(){if(JOt!==void 0)return JOt;var S=document.createElement("template");_.h(S,'\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');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);return JOt=S},{mode:1});var KBA;var xQ=function(){var S=_.w.apply(this,arguments)||this;S.actionButtonOverride={style:"mono",type:"filled",size:"M"};S.cancelButtonOverride={style:"mono",type:"text",size:"M"};S.initialRadioIndex="-1";S.selectButtonDisabled=!1;S.isLoading=!1;S.selectedRadioIndexChanged=function(p){S.selectedRadioIndex=Number(p.detail.value)};
S.selectedHandleChanged=function(p){S.selectedHandle=p.detail.value};
S.darkerDarkTheme=_.y("web_darker_dark_theme");return S};
_.r(xQ,_.w);_.M=xQ.prototype;_.M.onDataChanged=function(){this.initialRadioIndex="0";this.selectedRadioIndex=0};
_.M.onSelectedHandleIndexChanged=function(){this.updateSelectedHandle()};
_.M.onSelectedHandleChanged=function(){this.updateSelectButtonDisabled();_.pp(this.hostElement,"yt-refit-popups-action")};
_.M.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.M.onCancel=function(){this.initialRadioIndex="-1";this.selectedRadioIndex=-1;_.St(this.hostElement,"yt-close-popup-action",[this.is])};
_.M.onSelectHandle=function(){var S=this;if(this.selectedHandle!==void 0){var p;((p=this.data)==null?void 0:p.updateChannelPageSettings)!==void 0&&(this.isLoading=!0,this.ytComponentBehavior.resolveCommand(this.data.updateChannelPageSettings,{form:{handle:this.selectedHandle},commandController:{onSuccess:function(U,Y){if(Y.newHandleUpdateStatus!==void 0&&Y.newHandleUpdateStatus.error==="HANDLE_UPDATE_ERROR_HANDLE_CHANGE_QUOTA_EXCEEDED"&&Y.newHandleUpdateStatus.errorMessage)_.An(S.hostElement,_.mA(Y.newHandleUpdateStatus.errorMessage)),
S.isLoading=!1;else{var L;if((L=S.data)==null?0:L.onChannelUpdateSuccess){U=S.data.onChannelUpdateSuccess;Y=_.b(U,_.KQ);var I;if(Y==null?0:(I=Y.popup)==null?0:I.handlesClaimingConfirmDialogRenderer)Y.popup.handlesClaimingConfirmDialogRenderer.handle=_.Ec(S.selectedHandle);S.ytComponentBehavior.resolveCommand(U);_.St(S.hostElement,"yt-close-popup-action",[S.is])}else S.isLoading=!1}},
onServerError:function(){if(S.selectedRadioIndex===S.radioButtonLength){var U;S.content&&((U=S.content)==null?0:U.handleInput)&&S.content.handleInput.validate()}S.isLoading=!1;_.An(S.hostElement,_.Oh("TRY_AGAIN_LATER"))}}}))}};
_.M.updateSelectedHandle=function(){if(this.selectedRadioIndex!==void 0)if(this.selectedRadioIndex<0)this.selectedHandle=void 0;else if(this.selectedRadioIndex===this.radioButtonLength){var S,p;this.selectedHandle=(S=this.content)==null?void 0:(p=S.handleInput)==null?void 0:p.value}else this.selectedRadioIndex>=0&&((S=this.getRadioItem(this.selectedRadioIndex))?this.selectedHandle=this.ytRendererBehavior.getSimpleString(S==null?void 0:S.handle):this.selectedHandle=void 0)};
_.M.updateSelectButtonDisabled=function(){this.selectButtonDisabled=this.isLoading||this.selectedHandle===void 0||this.selectedHandle===""||!this.selectedHandle};
_.M.getRadioItem=function(S){if(this.radioButtonLength>S&&S>=0)return _.b(this.data.radioButton[S],Pps)};
_.$u.Object.defineProperties(xQ.prototype,{radioButtonLength:{configurable:!0,enumerable:!0,get:function(){var S;return(((S=this.data)==null?void 0:S.radioButton)||[]).length}}});
xQ.prototype.onSelectedHandleChanged=xQ.prototype.onSelectedHandleChanged;xQ.prototype.onSelectedHandleIndexChanged=xQ.prototype.onSelectedHandleIndexChanged;xQ.prototype.onDataChanged=xQ.prototype.onDataChanged;_.x([_.F(_.eL.YtComponentBehavior),_.E("design:type",Object)],xQ.prototype,"ytComponentBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],xQ.prototype,"actionButtonOverride",void 0);_.x([_.g(),_.E("design:type",Object)],xQ.prototype,"cancelButtonOverride",void 0);
_.x([_.g(),_.E("design:type",Object)],xQ.prototype,"data",void 0);_.x([_.g(),_.E("design:type",Object)],xQ.prototype,"initialRadioIndex",void 0);_.x([_.g(),_.E("design:type",Number)],xQ.prototype,"selectedRadioIndex",void 0);_.x([_.g(),_.E("design:type",String)],xQ.prototype,"selectedHandle",void 0);_.x([_.g(),_.E("design:type",Object)],xQ.prototype,"selectButtonDisabled",void 0);_.x([_.g(),_.E("design:type",Object)],xQ.prototype,"isLoading",void 0);
_.x([_.e("data"),_.E("design:type",Number),_.E("design:paramtypes",[])],xQ.prototype,"radioButtonLength",null);_.x([_.O2("ytd-handles-claiming-select-dialog-content"),_.E("design:type",Object)],xQ.prototype,"content",void 0);_.x([_.T4("data"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],xQ.prototype,"onDataChanged",null);
_.x([_.T4("selectedRadioIndex"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],xQ.prototype,"onSelectedHandleIndexChanged",null);_.x([_.T4("selectedHandle"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],xQ.prototype,"onSelectedHandleChanged",null);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],xQ.prototype,"darkerDarkTheme",void 0);
_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],xQ.prototype,"ytRendererBehavior",void 0);_.x([_.F(_.qH.YtRendererstamperBehavior),_.E("design:type",Object)],xQ.prototype,"ytRendererstamperBehavior",void 0);xQ=_.x([_.f({is:"ytd-handles-claiming-select-dialog-renderer",disableElementRegistration:!0})],xQ);
_.C(xQ,"ytd-handles-claiming-select-dialog-renderer",function(){if(KBA!==void 0)return KBA;var S=document.createElement("template");_.h(S,'\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');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);return KBA=S},{mode:1});var b7Y;var jr5;var E4=function(){return _.w.apply(this,arguments)||this};
_.r(E4,_.w);E4.prototype.configureRendererStamper=function(){return{"data.badge":{id:"standalone-badge",mapping:{metadataBadgeRenderer:{component:"ytd-badge-supported-renderer",properties:{topStandaloneBadge:"[[data.badge]]"}}}}}};
_.x([_.F(_.qH.YtRendererstamperBehavior),_.E("design:type",Object)],E4.prototype,"ytRendererstamperBehavior",void 0);_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],E4.prototype,"ytRendererBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],E4.prototype,"data",void 0);E4=_.x([_.f({is:"ytd-hotkey-dialog-section-option-renderer",disableElementRegistration:!0})],E4);
_.C(E4,"ytd-hotkey-dialog-section-option-renderer",function(){if(jr5!==void 0)return jr5;var S=document.createElement("template");_.h(S,'\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');
S.content.insertBefore(_.t().content.cloneNode(!0),S.content.firstChild);return jr5=S},{mode:1});var rOn;var mM=function(){return _.w.apply(this,arguments)||this};
_.r(mM,_.w);mM.prototype.configureRendererStamper=function(){return{"data.options":{id:"options",mapping:{hotkeyDialogSectionOptionRenderer:"ytd-hotkey-dialog-section-option-renderer"}}}};
_.x([_.F(_.qH.YtRendererstamperBehavior),_.E("design:type",Object)],mM.prototype,"ytRendererstamperBehavior",void 0);_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],mM.prototype,"ytRendererBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],mM.prototype,"data",void 0);mM=_.x([_.f({is:"ytd-hotkey-dialog-section-renderer",disableElementRegistration:!0})],mM);
_.C(mM,"ytd-hotkey-dialog-section-renderer",function(){if(rOn!==void 0)return rOn;var S=document.createElement("template");_.h(S,'\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');
S.content.insertBefore(_.t().content.cloneNode(!0),S.content.firstChild);return rOn=S},{mode:1});var oo=function(){var S=_.w.apply(this,arguments)||this;S.darkerDarkTheme=_.y("web_darker_dark_theme");return S};
_.r(oo,_.w);oo.prototype.configureRendererStamper=function(){return{"data.sections":{id:"sections",mapping:{hotkeyDialogSectionRenderer:"ytd-hotkey-dialog-section-renderer"}}}};
_.x([_.F(_.qH.YtRendererstamperBehavior),_.E("design:type",Object)],oo.prototype,"ytRendererstamperBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],oo.prototype,"data",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],oo.prototype,"darkerDarkTheme",void 0);oo=_.x([_.f({is:"ytd-hotkey-dialog-content",disableElementRegistration:!0})],oo);
_.C(oo,"ytd-hotkey-dialog-content",function(){if(b7Y!==void 0)return b7Y;var S=document.createElement("template");_.h(S,'\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');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);return b7Y=S},{mode:1});var GFT;var vR=function(){return _.w.apply(this,arguments)||this};
_.r(vR,_.w);vR.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");var S=document.querySelector("ytd-hotkey-dialog-content #scrollable");S&&(S.dialogElement=this.hostElement.parentElement)};
vR.prototype.onCloseTap=function(){_.St(this.hostElement,"yt-close-popup-action")};
_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],vR.prototype,"ytRendererBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],vR.prototype,"data",void 0);vR=_.x([_.f({is:"ytd-hotkey-dialog-renderer",disableElementRegistration:!0})],vR);
_.C(vR,"ytd-hotkey-dialog-renderer",function(){if(GFT!==void 0)return GFT;var S=document.createElement("template");_.h(S,'\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');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);return GFT=S},{mode:1});var hIJ;var $Q=function(){return _.w.apply(this,arguments)||this};
_.r($Q,_.w);$Q.prototype.onYtServiceRequestError=function(){if(this.blocked){var S;var p=(S=this.data)==null?void 0:S.defaultServiceEndpoint}else{var U;p=(U=this.data)==null?void 0:U.toggledServiceEndpoint}var Y;(p=(Y=_.b(p,_.C1w))==null?void 0:Y.onFailureAction)&&this.ytComponentBehavior.resolveCommand(p);this.updateBlockState(!this.blocked)};
$Q.prototype.onYtToggleButton=function(S){this.updateBlockState(S.detail.toggled)};
$Q.prototype.updateBlockState=function(S){if(S!==this.blocked){var p=this.blockedEntityKey;p&&this.ytdReduxBehavior.dispatch(_.WG("blockStateEntity",p,{key:p,blocked:S}));this.set("data.isToggled",S)}};
_.$u.Object.defineProperties($Q.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)}}});
$Q.prototype.onYtToggleButton=$Q.prototype.onYtToggleButton;$Q.prototype.onYtServiceRequestError=$Q.prototype.onYtServiceRequestError;_.x([_.F(_.eL.YtComponentBehavior),_.E("design:type",Object)],$Q.prototype,"ytComponentBehavior",void 0);_.x([_.F(_.Xh),_.E("design:type",Object)],$Q.prototype,"ytdReduxBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],$Q.prototype,"data",void 0);_.x([_.g(),_.E("design:type",Object)],$Q.prototype,"blockedEntityKey",void 0);
_.x([_.g({selectorArgs:["blockedEntityKey"],selector:function(S,p){return _.I4(S.entities,"blockStateEntity",p)}}),
_.E("design:type",Object)],$Q.prototype,"blockStateEntity",void 0);_.x([_.e("data","blockStateEntity"),_.E("design:type",Boolean),_.E("design:paramtypes",[])],$Q.prototype,"blocked",null);_.x([_.Vd("yt-service-request-error"),_.E("design:type",Function),_.E("design:paramtypes",[CustomEvent]),_.E("design:returntype")],$Q.prototype,"onYtServiceRequestError",null);
_.x([_.Vd("yt-toggle-button"),_.E("design:type",Function),_.E("design:paramtypes",[CustomEvent]),_.E("design:returntype")],$Q.prototype,"onYtToggleButton",null);$Q=_.x([_.f({is:"ytd-block-button",disableElementRegistration:!0})],$Q);
_.C($Q,"ytd-block-button",function(){if(hIJ!==void 0)return hIJ;var S=document.createElement("template");_.h(S,'\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');S.content.insertBefore(_.t().content.cloneNode(!0),S.content.firstChild);return hIJ=S},
{mode:1});var RIA;var FBX;var N3=function(){return _.w.apply(this,arguments)||this};
_.r(N3,_.w);_.x([_.F(_.eL.YtComponentBehavior),_.E("design:type",Object)],N3.prototype,"ytComponentBehavior",void 0);_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],N3.prototype,"ytRendererBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],N3.prototype,"data",void 0);N3=_.x([_.f({is:"ytd-kids-blocklist-picker-item-renderer",disableElementRegistration:!0})],N3);
_.C(N3,"ytd-kids-blocklist-picker-item-renderer",function(){if(FBX!==void 0)return FBX;var S=document.createElement("template");_.h(S,'\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');
S.content.insertBefore(_.t().content.cloneNode(!0),S.content.firstChild);return FBX=S},{mode:1});var BR=function(){return _.w.apply(this,arguments)||this};
_.r(BR,_.w);BR.prototype.configureRendererStamper=function(){return{"data.childRows":{id:"child-rows",mapping:{kidsBlocklistPickerItemRenderer:"ytd-kids-blocklist-picker-item-renderer"}}}};
_.x([_.F(_.qH.YtRendererstamperBehavior),_.E("design:type",Object)],BR.prototype,"ytRendererstamperBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],BR.prototype,"data",void 0);BR=_.x([_.f({is:"ytd-kids-blocklist-picker-content",disableElementRegistration:!0})],BR);
_.C(BR,"ytd-kids-blocklist-picker-content",function(){if(RIA!==void 0)return RIA;var S=document.createElement("template");_.h(S,'\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');S.content.insertBefore(_.t().content.cloneNode(!0),S.content.firstChild);return RIA=
S},{mode:_.UW("kevlar_poly_si_batch_j025")?1:2});var XWL;var q3=function(){var S=_.w.apply(this,arguments)||this;S.hasAnyRequestSucceeded=!1;S.hasAnyRequestFailed=!1;S.numPendingRequests=0;return S};
_.r(q3,_.w);_.M=q3.prototype;_.M.attached=function(){this.hostElement.setAttribute("dialog","")};
_.M.onDoneButtonTap=function(){_.St(this.hostElement,"yt-close-popup-action",["ytd-kids-blocklist-picker-renderer"])};
_.M.onYtServiceRequestSent=function(){this.numPendingRequests+=1};
_.M.onYtServiceRequestCompleted=function(){--this.numPendingRequests;this.hasAnyRequestSucceeded=!0};
_.M.onYtServiceRequestError=function(){--this.numPendingRequests;this.hasAnyRequestFailed=!0};
_.M.onPopupClosed=function(S){var p,U;if(((p=S.detail)==null?void 0:(U=p.popup)==null?void 0:U.is)==="tp-yt-paper-dialog"){var Y;this.numPendingRequests<=0&&this.hasAnyRequestSucceeded&&!this.hasAnyRequestFailed&&((Y=this.data)==null?0:Y.successfulToastActionMessage)&&this.ytComponentBehavior.resolveCommand(_.iM(this.data.successfulToastActionMessage));this.hasAnyRequestFailed=this.hasAnyRequestSucceeded=!1;this.numPendingRequests=0}};
q3.prototype.onPopupClosed=q3.prototype.onPopupClosed;q3.prototype.onYtServiceRequestError=q3.prototype.onYtServiceRequestError;q3.prototype.onYtServiceRequestCompleted=q3.prototype.onYtServiceRequestCompleted;q3.prototype.onYtServiceRequestSent=q3.prototype.onYtServiceRequestSent;_.x([_.F(_.eL.YtComponentBehavior),_.E("design:type",Object)],q3.prototype,"ytComponentBehavior",void 0);_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],q3.prototype,"ytRendererBehavior",void 0);
_.x([_.g(),_.E("design:type",Object)],q3.prototype,"data",void 0);_.x([_.Vd("yt-service-request-sent"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],q3.prototype,"onYtServiceRequestSent",null);_.x([_.Vd("yt-service-request-completed"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],q3.prototype,"onYtServiceRequestCompleted",null);
_.x([_.Vd("yt-service-request-error"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],q3.prototype,"onYtServiceRequestError",null);_.x([_.Vd("yt-popup-closed"),_.E("design:type",Function),_.E("design:paramtypes",[CustomEvent]),_.E("design:returntype")],q3.prototype,"onPopupClosed",null);q3=_.x([_.f({is:"ytd-kids-blocklist-picker-renderer",disableElementRegistration:!0})],q3);
_.C(q3,"ytd-kids-blocklist-picker-renderer",function(){if(XWL!==void 0)return XWL;var S=document.createElement("template");_.h(S,'\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');
S.content.insertBefore(_.t().content.cloneNode(!0),S.content.firstChild);return XWL=S},{mode:1});var PAA;var Z7X;var AT=function(){return _.w.apply(this,arguments)||this};
_.r(AT,_.w);AT.prototype.setTip=function(S){var p=this;this.data&&(this.tip=J4i(Q6o.getInstance(),S,this.data),_.oH(this,function(){_.cv(p.hostElement,"yt-refit")}))};
AT.prototype.clearTip=function(){this.tip=void 0};
AT.prototype.computeHidden=function(S){return!S};
_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],AT.prototype,"ytRendererBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],AT.prototype,"data",void 0);_.x([_.g({reflectToAttribute:!0,computed:"computeHidden(tip)",value:!0}),_.E("design:type",Boolean)],AT.prototype,"hidden",void 0);_.x([_.g(),_.E("design:type",Object)],AT.prototype,"tip",void 0);AT=_.x([_.f({is:"ytd-menu-popup-tip-renderer",disableElementRegistration:!0})],AT);
_.C(AT,"ytd-menu-popup-tip-renderer",function(){if(Z7X!==void 0)return Z7X;var S=document.createElement("template");_.h(S,'\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');S.content.insertBefore(_.t().content.cloneNode(!0),S.content.firstChild);
return Z7X=S},{mode:1});var sr5;var tT=function(){var S=_.w.apply(this,arguments)||this;S.useIcons=!1;S.systemIcons=_.y("kevlar_system_icons");S.useListItemStyles=_.y("web_list_item_style_for_menu_items");return S};
_.r(tT,_.w);_.M=tT.prototype;_.M.onFocus=function(){var S;(S=_.tB(this.hostElement).querySelector("tp-yt-paper-item"))==null||S.focus()};
_.M.onTap=function(){var S=this.data.isToggled?this.data.toggledServiceEndpoint:this.data.defaultServiceEndpoint;if(S&&_.b(S,_.I2))this.componentBehavior.resolveCommand(S),this.updateToggledStateInEntity();else if(S){this.componentBehavior.resolveCommand(S)||_.tW().resolve(_.cQ).resolveCommand(S,{form:{element:this.hostElement}});var p;((p=_.b(S,_.TI))==null?void 0:p.signal)==="CLIENT_SIGNAL"&&this.updateToggledStateInEntity()}};
_.M.onYtServiceRequestCompleted=function(){this.updateToggledStateInEntity()};
_.M.toggledStateEntityChanged=function(){this.toggleMenuServiceItemEntity&&this.set("data.isToggled",!!this.toggleMenuServiceItemEntity.isToggled)};
_.M.updateToggledStateInEntity=function(){var S=this.data.toggleMenuServiceItemEntityKey,p=!this.data.isToggled;S&&this.ytdReduxBehavior.dispatch(_.WG("toggleMenuServiceItemEntity",S,{key:S,isToggled:p}))};
_.M.computeIcon=function(S,p,U){return(S=S?U:p)&&S.iconType?_.If(S.iconType):""};
_.M.computeIconHidden=function(){return this.useIcons?!1:!this.icon};
_.M.isIconActive=function(S){return!_.y("toggle_menu_active_icon_killswitch")&&S};
_.$u.Object.defineProperties(tT.prototype,{toggleButtonText:{configurable:!0,enumerable:!0,get:function(){var S,p,U;return((S=this.data)==null?0:S.isToggled)?(p=this.data)==null?void 0:p.toggledText:(U=this.data)==null?void 0:U.defaultText}}});
tT.prototype.toggledStateEntityChanged=tT.prototype.toggledStateEntityChanged;tT.prototype.onYtServiceRequestCompleted=tT.prototype.onYtServiceRequestCompleted;tT.prototype.onTap=tT.prototype.onTap;tT.prototype.onFocus=tT.prototype.onFocus;_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],tT.prototype,"ytRendererBehavior",void 0);_.x([_.F(_.eL.YtComponentBehavior),_.E("design:type",Object)],tT.prototype,"componentBehavior",void 0);
_.x([_.F(_.Xh),_.E("design:type",Object)],tT.prototype,"ytdReduxBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],tT.prototype,"data",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],tT.prototype,"useIcons",void 0);_.x([_.g({computed:"computeIcon(data.isToggled,data.defaultIcon,data.toggledIcon)",value:""}),_.E("design:type",String)],tT.prototype,"icon",void 0);
_.x([_.g({selectorArgs:["data.toggleMenuServiceItemEntityKey"],selector:function(S,p){return _.I4(S.entities,"toggleMenuServiceItemEntity",p)}}),
_.E("design:type",Object)],tT.prototype,"toggleMenuServiceItemEntity",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],tT.prototype,"systemIcons",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],tT.prototype,"useListItemStyles",void 0);_.x([_.Vd("focus"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],tT.prototype,"onFocus",null);
_.x([_.e("data.isToggled"),_.E("design:type",Object),_.E("design:paramtypes",[])],tT.prototype,"toggleButtonText",null);_.x([_.Vd("tap"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],tT.prototype,"onTap",null);_.x([_.Vd("yt-service-request-completed"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],tT.prototype,"onYtServiceRequestCompleted",null);
_.x([_.T4("toggleMenuServiceItemEntity.isToggled","data"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],tT.prototype,"toggledStateEntityChanged",null);tT=_.x([_.f({is:"ytd-toggle-menu-service-item-renderer",disableElementRegistration:!0})],tT);
_.C(tT,"ytd-toggle-menu-service-item-renderer",function(){if(sr5!==void 0)return sr5;var S=document.createElement("template");_.h(S,'\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');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);return sr5=S},{mode:1});var eIE;var cR=function(){return _.w.apply(this,arguments)||this};
_.r(cR,_.w);cR.prototype.onFocus=function(){var S;(S=_.tB(this.hostElement).querySelector("tp-yt-paper-item"))==null||S.focus()};
_.$u.Object.defineProperties(cR.prototype,{imageSource:{configurable:!0,enumerable:!0,get:function(){if(this.data&&this.data.iconUrl)return _.JA(this.data.iconUrl)}}});
cR.prototype.onFocus=cR.prototype.onFocus;_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],cR.prototype,"rendererBehavior",void 0);_.x([_.F(_.WV.YtEndpointBehavior),_.E("design:type",Object)],cR.prototype,"ytEndpointBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],cR.prototype,"data",void 0);_.x([_.Vd("focus"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],cR.prototype,"onFocus",null);
_.x([_.e("data.iconUrl"),_.E("design:type",Object),_.E("design:paramtypes",[])],cR.prototype,"imageSource",null);cR=_.x([_.f({disableElementRegistration:!0,is:"ytd-menu-custom-icon-item-renderer"})],cR);
_.C(cR,"ytd-menu-custom-icon-item-renderer",function(){if(eIE!==void 0)return eIE;var S=document.createElement("template");_.h(S,'\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');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);return eIE=S},{mode:_.UW("kevlar_poly_si_batch_j028")?1:2});_.qm(_.h5,"yt-list-item-view-model",{props:{data:_.x2,isMenuItem:_.x2,isCompact:_.x2,onTap:_.BX,trailingAccessory:_.BX,hideSelectionTextChevron:_.x2,disabled:_.x2,inPopup:_.x2,disableHorizontalPadding:_.x2,isOverlay:_.x2}});var SU=function(){var S=_.w.apply(this,arguments)||this;S.disableBackdropFilter=_.y("web_disable_backdrop_filter");return S};
_.r(SU,_.w);_.M=SU.prototype;
_.M.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"}}}};
_.M.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menu")};
_.M.computeAriaLabel=function(S){return S};
_.M.onPopupOpened=function(){this.items.selected=0;for(var S=_.d(_.tB(this.items).children),p=S.next();!p.done;p=S.next())p.value.popupPositionTarget=this.positionTarget;if(S=this.popupTip||void 0)S.setTip(this.source||""),this.source=void 0;this.veData&&(S=_.X$())&&_.fp(S,[this.veData])};
_.M.onPopupClosed=function(){var S=this.popupTip||void 0;S&&S.clearTip()};
_.M.onIronActivate=function(S){this.shouldPersist(S)||_.St(this.hostElement,"yt-close-popup-action",["ytd-menu-popup-renderer"]);this.veData&&(S=_.X$())&&_.xd(S,this.veData)};
_.M.shouldPersist=function(S){var p,U;if(((p=S.detail)==null?void 0:p.selected)===void 0||(U=this.data)==null||!U.items)return!1;var Y,L;return!((L=(Y=this.data.items[S.detail.selected])==null?void 0:Y.toggleMenuServiceItemRenderer)==null||!L.persistentOnMenuPopup)};
_.M.computeUseIcons=function(){return this.data&&this.data.items?this.data.items.some(function(S){return S.menuNavigationItemRenderer?!!S.menuNavigationItemRenderer.icon:S.menuServiceItemRenderer?!!S.menuServiceItemRenderer.icon:S.menuConditionalServiceItemRenderer?!!S.menuConditionalServiceItemRenderer.icon:S.menuConditionalNavigationItemRenderer?!!S.menuConditionalNavigationItemRenderer.icon:S.toggleMenuServiceItemRenderer?!!S.toggleMenuServiceItemRenderer.defaultIcon:!1}):!1};
SU.prototype.onPopupClosed=SU.prototype.onPopupClosed;SU.prototype.onPopupOpened=SU.prototype.onPopupOpened;_.x([_.F(_.kP.YtEventForwardingBehavior),_.E("design:type",Object)],SU.prototype,"ytEventForwardingBehavior",void 0);_.x([_.F(_.qH.YtRendererstamperBehavior),_.E("design:type",Object)],SU.prototype,"ytRendererstamperBehavior",void 0);_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],SU.prototype,"ytRendererBehavior",void 0);
_.x([_.g(),_.E("design:type",Object)],SU.prototype,"data",void 0);_.x([_.g(),_.E("design:type",Object)],SU.prototype,"veData",void 0);_.x([_.g({reflectToAttribute:!0,readOnly:!0,computed:"computeAriaLabel(data.menuPopupAccessibility.label)"}),_.E("design:type",String)],SU.prototype,"ariaLabel",void 0);_.x([_.g({computed:"computeUseIcons(data)",reflectToAttribute:!0}),_.E("design:type",Boolean)],SU.prototype,"useIcons",void 0);
_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],SU.prototype,"disableBackdropFilter",void 0);_.x([_.O2("#items"),_.E("design:type",Object)],SU.prototype,"items",void 0);_.x([_.O2("ytd-menu-popup-tip-renderer"),_.E("design:type",Object)],SU.prototype,"popupTip",void 0);_.x([_.Vd("yt-popup-opened"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],SU.prototype,"onPopupOpened",null);
_.x([_.Vd("yt-popup-closed"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],SU.prototype,"onPopupClosed",null);SU=_.x([_.f({is:"ytd-menu-popup-renderer",disableElementRegistration:!0})],SU);
_.C(SU,"ytd-menu-popup-renderer",function(){if(PAA!==void 0)return PAA;var S=document.createElement("template");_.h(S,'\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');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);return PAA=S},{mode:1});var gBi;var uPi=_.$k(function(S){S=_.vT(S,{icon:void 0});var p=S.data;S=S.icon;var U=function(){return p().iconBadgeText},Y={},L=_.VD("yt-spec-icon-badge-shape",function(){a:switch(p().iconBadgeType){case "notification":var I="yt-spec-icon-badge-shape--type-notification";
break a;case "cart":I="yt-spec-icon-badge-shape--type-cart";break a;default:I=""}return I},function(){a:switch(p().iconBadgeStyle){case "overlay":var I="yt-spec-icon-badge-shape--style-overlay";
break a;default:I=""}return I},(Y["yt-spec-icon-badge-shape--text-size-small"]=function(){var I=U();
return!!((I==null?0:I.length)&&I.length>2)},Y));
return _.H("yt-icon-badge-shape",null,_.H(_.n,{cond:S,then:function(I){return _.H("div",{class:L},_.H("div",{class:"yt-spec-icon-badge-shape__icon"},_.H(_.QD,{icon:I})),_.H(_.n,{cond:U,then:function(V){return _.H("div",{class:"yt-spec-icon-badge-shape__badge"},V)}}))}}))},"og");
uPi.idomCompat=!0;_.qm(uPi,"yt-icon-badge-shape",{props:{data:_.x2,icon:_.x2}});var pq=function(){var S=_.w.apply(this,arguments)||this;S.actionMap={"yt-update-notifications-unseen-count-action":"handleUpdateNotificationsUnseenCountAction","yt-multi-page-menu-closed-action":"handleTopbarMenuClosedAction"};S.unseenCount=0;S.isOverlay=!1;return S};
_.r(pq,_.w);_.M=pq.prototype;_.M.attached=function(){var S=this;this.data&&this.data.updateUnseenCountEndpoint&&this.sendUnseenCountRequest(this.data.updateUnseenCountEndpoint);navigator&&navigator.serviceWorker&&navigator.serviceWorker.addEventListener("message",function(p){S.onServiceWorkerMessage(p)})};
_.M.onDataChanged=function(){this.isAttached&&!this.JSC$18249_lastData&&this.data&&this.data.updateUnseenCountEndpoint&&this.sendUnseenCountRequest(this.data.updateUnseenCountEndpoint);this.JSC$18249_lastData=this.data};
_.M.computeIconBadgeShape=function(){return{iconBadgeType:"notification",iconBadgeText:this.unseenCount,iconBadgeStyle:this.isOverlay?"overlay":"mono"}};
_.M.computeIcon=function(){var S,p;return(S=this.data)==null?void 0:(p=S.icon)==null?void 0:p.iconType};
_.M.onServiceWorkerMessage=function(S){S.data.type==="update_unseen_notifications_count_signal"&&this.data&&this.data.updateUnseenCountEndpoint&&this.hasUnseenNotificationCountEndpoint()&&this.sendUnseenCountRequest(this.data.updateUnseenCountEndpoint)};
_.M.hasUnseenNotificationCountEndpoint=function(){return!!this.data&&!!this.data.updateUnseenCountEndpoint&&!!_.b(this.data.updateUnseenCountEndpoint,_.TI)&&_.b(this.data.updateUnseenCountEndpoint,_.TI).signal==="GET_UNSEEN_NOTIFICATION_COUNT"};
_.M.handleUpdateNotificationsUnseenCountAction=function(S){var p=this;S=_.b(S,Kld);S!=null&&S.unseenCount&&S.handlerData==="NOTIFICATION_ACTION_UPDATE_UNSEEN_COUNT"&&(this.updateCountUI(S.unseenCount),_.PA.addLowPriorityJob(function(){p.data.updateUnseenCountEndpoint&&p.ytComponentBehavior.resolveCommand(p.data.updateUnseenCountEndpoint)},S.timeoutMs))};
_.M.onClick=function(){_.cv(this.hostElement,"yt-update-unseen-notification-count",0);this.set("unseenCount",0);this.toggleIconState(!0);var S=_.pp(this.hostElement,"yt-get-popup-opened-action",["ytd-multi-page-menu-renderer"]),p=this.data.menuRequest;S&&S.length===1&&S[0]?_.St(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"]):p&&this.ytComponentBehavior.resolveCommand(p)};
_.M.handleTopbarMenuClosedAction=function(S){S==="multi-page-menu-style-type-notifications"&&this.toggleIconState(!1)};
_.M.toggleIconState=function(S){this.iconButton&&(this.iconButton.pressed=S)};
_.M.sendUnseenCountRequest=function(S){var p=this;_.bQ(_.PA,function(){p.ytComponentBehavior.resolveCommand(S)})};
_.M.updateCountUI=function(S){this.set("unseenCount",S<9?S:"9+")};
_.$u.Object.defineProperties(pq.prototype,{showNotificationCount:{configurable:!0,enumerable:!0,get:function(){return this.unseenCount}}});
pq.prototype.handleUpdateNotificationsUnseenCountAction=pq.prototype.handleUpdateNotificationsUnseenCountAction;pq.prototype.onDataChanged=pq.prototype.onDataChanged;_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],pq.prototype,"ytRendererBehavior",void 0);_.x([_.F(_.eL.YtComponentBehavior),_.E("design:type",Object)],pq.prototype,"ytComponentBehavior",void 0);_.x([_.F(_.xK),_.E("design:type",Object)],pq.prototype,"ytdOpenPopupBehavior",void 0);
_.x([_.F(_.Aj.YtActionHandlerBehavior),_.E("design:type",Object)],pq.prototype,"ytActionHandlerBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],pq.prototype,"data",void 0);_.x([_.g(),_.E("design:type",Object)],pq.prototype,"unseenCount",void 0);_.x([_.g(),_.E("design:type",Object)],pq.prototype,"isOverlay",void 0);_.x([_.g({value:!0}),_.E("design:type",Boolean)],pq.prototype,"showTooltips",void 0);_.x([_.O2("yt-icon-button"),_.E("design:type",Object)],pq.prototype,"iconButton",void 0);
_.x([_.e("unseenCount"),_.E("design:type",Object),_.E("design:paramtypes",[])],pq.prototype,"showNotificationCount",null);_.x([_.T4("data"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],pq.prototype,"onDataChanged",null);_.x([_.Vd("yt-update-notifications-unseen-count-action"),_.E("design:type",Function),_.E("design:paramtypes",[Object]),_.E("design:returntype")],pq.prototype,"handleUpdateNotificationsUnseenCountAction",null);
pq=_.x([_.f({is:"ytd-notification-topbar-button-renderer",disableElementRegistration:!0})],pq);
_.C(pq,"ytd-notification-topbar-button-renderer",function(){if(gBi!==void 0)return gBi;var S=document.createElement("template");_.h(S,'\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');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);return gBi=S},{mode:_.UW("kevlar_poly_si_batch_j025")?1:2});var wWL;var Um=function(){var S=_.w.apply(this,arguments)||this;S.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggled"};return S};
_.r(Um,_.w);Um.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}}}}}};
Um.prototype.attached=function(){this.dark=document.documentElement.hasAttribute("dark")};
Um.prototype.onDarkModeToggled=function(S){this.dark=S};
_.x([_.F(_.Aj.YtActionHandlerBehavior),_.E("design:type",Object)],Um.prototype,"ytActionHandlerBehavior",void 0);_.x([_.F(_.qH.YtRendererstamperBehavior),_.E("design:type",Object)],Um.prototype,"ytRendererstamperBehavior",void 0);_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],Um.prototype,"ytRendererBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],Um.prototype,"data",void 0);_.x([_.g({value:!0,reflectToAttribute:!0}),_.E("design:type",Boolean)],Um.prototype,"dark",void 0);
Um=_.x([_.f({disableElementRegistration:!0,is:"yt-pdg-buy-flow-header-renderer"})],Um);
_.C(Um,"yt-pdg-buy-flow-header-renderer",function(){if(wWL!==void 0)return wWL;var S=document.createElement("template");_.h(S,'\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');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);return wWL=S},{mode:1});var lk5;var aki;var YW=function(){var S=_.w.apply(this,arguments)||this;S.immediateValue=0;S.isDarkTheme=!1;S.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return S};
_.r(YW,_.w);_.M=YW.prototype;_.M.created=function(){_.ei.requestAvailability()};
_.M.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
_.M.dataChanged=function(){var S=_.tB(this.hostElement).querySelector("#color-slider");S.immediateValue&&this.updateSliderKnobAndGradientStyles(S.immediateValue);this.data.notches[0].knobColorArgb&&_.Ms(this.hostElement,{"--ytd-pdg-color-slider-first-knob-color":_.ev(this.data.notches[0].knobColorArgb)});this.data.notches&&(this.maxMarkers=this.data.notches.length-1);_.g7("HTML_DIR")==="rtl"&&_.tB(this.hostElement).querySelector("#color-slider").setAttribute("dir","rtl");this.updateSliderAria()};
_.M.onSliderImmediateChange=function(){var S=_.tB(this.hostElement).querySelector("#color-slider");S.dragging&&(S.immediateValue!==void 0&&(this.updateSuperThanksSelectedTierEntity(S.immediateValue),this.updateSliderKnobAndGradientStyles(S.immediateValue)),this.updateSliderAria())};
_.M.onSliderChange=function(){var S=_.tB(this.hostElement).querySelector("#color-slider");S.immediateValue!==void 0&&(this.updateSuperThanksSelectedTierEntity(S.immediateValue),this.updateSliderKnobAndGradientStyles(S.immediateValue));this.updateSliderAria()};
_.M.updateSliderAria=function(){var S=_.tB(this.hostElement).querySelector("#color-slider"),p=_.tB(this.hostElement).querySelector("#color-slider");p=_.mA(this.data.notches[p.immediateValue].tierValue);_.ew()&&_.cv(this.hostElement,"iron-announce",{text:p});S.setAttribute("aria-valuetext",p)};
_.M.updateSuperThanksSelectedTierEntity=function(S){if(S!==this.immediateValue){var p,U,Y=this==null?void 0:(p=this.data)==null?void 0:(U=p.superThanksSelectedTierEntity)==null?void 0:U.key;Y&&Y.length>0&&this.ytdReduxBehavior.dispatch(_.WG("superThanksSelectedTierEntity",Y,{key:Y,index:S}))}};
_.M.onDarkModeToggledAction=function(S){this.isDarkTheme=S};
_.M.updateSliderKnobAndGradientStyles=function(S){this.immediateValue=S;S=this.data.notches[S];if(S==null?0:S.knobColorArgb)var p={"--ytd-pdg-color-slider-knob-color":_.ev(S.knobColorArgb)};(S==null?0:S.linearGradientCssStyle)&&p!==null&&(p=Object.assign({},p,{"--ytd-pdg-color-slider-active-color":S==null?void 0:S.linearGradientCssStyle}));p!==null&&_.Ms(this.hostElement,p)};
YW.prototype.onSliderChange=YW.prototype.onSliderChange;YW.prototype.onSliderImmediateChange=YW.prototype.onSliderImmediateChange;YW.prototype.dataChanged=YW.prototype.dataChanged;_.x([_.g(),_.E("design:type",Object)],YW.prototype,"data",void 0);_.x([_.g(),_.E("design:type",Object)],YW.prototype,"immediateValue",void 0);_.x([_.g(),_.E("design:type",Number)],YW.prototype,"maxMarkers",void 0);
_.x([_.g({selectorArgs:["data.superThanksSelectedTierEntity.key"],selector:Qtq}),_.E("design:type",Object)],YW.prototype,"superThanksSelectedTierEntity",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],YW.prototype,"isDarkTheme",void 0);_.x([_.F(_.Xh),_.E("design:type",Object)],YW.prototype,"ytdReduxBehavior",void 0);_.x([_.T4("data"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],YW.prototype,"dataChanged",null);
_.x([_.Vd("immediate-value-change"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],YW.prototype,"onSliderImmediateChange",null);_.x([_.Vd("change"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],YW.prototype,"onSliderChange",null);YW=_.x([_.f({disableElementRegistration:!0,is:"ytd-pdg-color-slider-renderer"})],YW);
_.C(YW,"ytd-pdg-color-slider-renderer",function(){if(aki!==void 0)return aki;var S=document.createElement("template");_.h(S,'\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>');
S.content.insertBefore(_.t().content.cloneNode(!0),S.content.firstChild);return aki=S},{mode:1});var fkt;var CAq;var Lq=null;
_.jp({is:"ytd-comment-input",_template:function(){if(CAq!==void 0)return CAq;var S=document.createElement("template");_.h(S,'\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');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);return CAq=S},
behaviors:[_.Ufk.YtHostElementBehavior,_.H$,_.eL.YtComponentBehavior,_.qH.YtRendererstamperBehavior,_.uHe.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 _.Zm}},
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",_.d9(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;_.LC();this.focus()},
detached:function(){document.removeEventListener("tap",_.d9(this,this.onTap_))},
created:function(){document.addEventListener("selectionchange",this.onSelectionChange_);this.textRequiresScrolling=!1},
onEmojiSelect:function(S){S=S.detail;S=S.isCustomEmoji?S.shortcuts[0]:S.emojiId;var p=this.getInputRange_().cloneRange();this.insertTextWithEmojis_(p,S);this.maybeUpdateTextDirection_();_.cv(this.hostElement,"input")},
getInputRange_:function(){var S=_.Dp();if(S){S=S.getBrowserRangeObject();for(var p=S.commonAncestorContainer;p;){if(p===this.getEditableTextArea_())return S;p=p.parentNode}}S=this.getEditableTextArea_();S=_.FD(S,S.childNodes.length);S.select();return S.getBrowserRangeObject()},
insertTextWithEmojis_:function(S,p,U){(p=this.emojiManager.createDocumentFragment(p,!0,!1,U===void 0?!0:U))&&p.childNodes.length!==0&&(S.collapsed||S.deleteContents(),U=p.lastChild,S.insertNode(p),_.Wpt(U).select(),this.getInputRange_().collapse(!1),this.getEditableTextArea_().normalize())},
onSelectionChange_:function(){var S=_.Dp();if(S){var p=S.JSC$9248_getStartNode(),U=S.JSC$9248_getEndNode();if(OpY(p)&&OpY(U)){var Y=S.JSC$9248_getStartOffset(),L;if(_.YC&&p.nodeType===Node.ELEMENT_NODE&&(L=_.reE(p)))_.FD(L,0).select();else{L=AM(p)?p:_.uI(p,AM);var I=AM(U)?U:_.uI(U,AM);if(L||I)if(S.isCollapsed()){if(p.nodeType===Node.TEXT_NODE){S=!0;Y===p.length&&(S=!1);if(Lq==="end"||Lq==="right")S=!1;p=p.parentNode;S=[].concat(_.jo(p.parentNode.childNodes)).indexOf(p)+(S?0:1);_.FD(p.parentNode,S).select()}}else L?
L.previousSibling&&L.previousSibling.length>0?_.XD(U,S.JSC$9248_getEndOffset(),L.previousSibling,L.previousSibling.length-1).select():(p=document.createTextNode("\u200b"),L.parentNode.insertBefore(p,L),_.XD(U,S.JSC$9248_getEndOffset(),p,0).select()):I&&(I.nextSibling&&I.nextSibling.length>0?_.XD(p,S.JSC$9248_getStartOffset(),I.nextSibling,1).select():(U=document.createTextNode("\u200b"),I.parentNode.insertBefore(U,I.nextSibling),_.XD(p,S.JSC$9248_getStartOffset(),U,U.length).select()));Lq=null}}else Lq=
null}else Lq=null},
leftKeyPressed_:function(){Lq="left"},
rightKeyPressed_:function(){Lq="right"},
endKeyPressed_:function(){Lq="end"},
maybeDeleteChip_:function(){var S=ndA(!0);if(S){var p=_.Dp(),U=p.JSC$9248_getStartNode();p=p.JSC$9248_getStartOffset();_.jd(U,p,S,S.childNodes.length).select()}},
maybeBackspaceChip_:function(){var S=ndA(!1);if(S){var p=_.Dp(),U=p.JSC$9248_getStartNode();p=p.JSC$9248_getStartOffset();_.jd(U,p,S,0).select()}},
maybeBackspaceChipWordMode_:function(S){var p=_.Dp();if(p.isCollapsed()){var U=p.JSC$9248_getStartNode();p=p.JSC$9248_getStartOffset();var Y=Jad(U,p,!0);Y&&(_.jd(U,p,Y,0).select(),document.execCommand("delete"),S.preventDefault(),S.stopImmediatePropagation())}},
maybeDeleteChipWordMode_:function(S){var p=_.Dp();if(p.isCollapsed()){var U=p.JSC$9248_getStartNode();p=p.JSC$9248_getStartOffset();var Y=Jad(U,p,!1);Y&&(_.jd(U,p,Y,Y.childNodes.length).select(),document.execCommand("delete"),S.preventDefault(),S.stopImmediatePropagation())}},
onContentClick:function(S){S.target.id==="content"&&this.getEditableTextArea_().focus()},
onTap_:function(S){S.defaultPrevented||S.currentTarget.tagName==="YTD-COMMENT-INPUT"&&AM(S.target)&&S.preventDefault()},
clear:function(){this.errorMessage_=null;this.setTextAreaValue(this.editableText);this.previousText_=this.getTextAreaValue().trim();this.updateCharCount_();this.receivedFocusPreviously_=!1},
getEditableTextArea_:function(){return _.tB(this.hostElement).querySelector("#contenteditable-textarea").getRoot().root.node},
getEditableFormattedString_:function(){return _.tB(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(S,p){S=Hpd(S,this.emojiManager,p).cloneNode(!0);for(p=S.firstChild;p;)if(p.nodeType!==1)p=p.nextSibling;else switch(p.tagName){case "BR":var U=_.JH();_.suP(U,p);p=U.nextSibling;break;case "DIV":(U=p.lastChild)&&p.nextSibling&&_.jc(_.JH(),U);p.previousSibling&&(p.previousSibling.nodeType===1||p.previousSibling.nodeType===3&&!p.previousSibling.textContent.endsWith("\n"))&&_.b1(_.JH(),p);U&&U.nodeName==="BR"&&_.yz(U);U=p;p.hasChildNodes()?(p=p.firstChild,
_.edE(U)):(p=p.nextSibling,_.yz(U));break;default:p=p.nextSibling}return yaL(S)},
setTextAreaValue:function(S){S||(S="");var p=this.getEditableFormattedString_();p.text="";this.getEditableTextArea_().innerText="";typeof S==="string"&&(S={runs:[{text:S}]});p.text=S},
focus:function(){this.getEditableTextArea_().focus();this.maybeSetCursorAtEnd_();this.maybeUpdateTextDirection_();Lq=null},
maybeSetCursorAtEnd_:function(){if(!this.receivedFocusPreviously_){var S=this.getEditableTextArea_();S&&(_.FD(S,S.childNodes.length).select(),this.receivedFocusPreviously_=!0)}},
maybeUpdateTextDirection_:function(){if(_.g7("HTML_DIR")==="rtl"){var S=this.getEditableTextArea_(),p=this.getTextAreaValue()!==""?"auto":"rtl";S.setAttribute("dir",p)}},
handleInputEvent_:function(){var S=null;if(this.isEmojiButtonDisplayed){var p=this.getInputRange_();p&&(S=this.emojiInput.retrieveTextBeforeRange(p))}this.insertText_(S,!0);this.updateCharCount_();S=this.getEditableTextArea_();this.isBackstagePost&&(this.textRequiresScrolling=S.scrollHeight>S.clientHeight);this.maybeHeightChanged()},
maybeHeightChanged:function(){var S=52+this.getEditableTextArea_().offsetHeight;this.fire("yt-commentbox-resize",{height:S})},
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(S){this.isEmojiButtonDisplayed&&(S.preventDefault(),S.stopImmediatePropagation(),S=S.clipboardData.getData("text/plain"),this.insertText_(S,!1,!1),_.cv(this.hostElement,"input"))},
insertText_:function(S,p,U){p=p===void 0?!1:p;U=U===void 0?!0:U;this.maybeUpdateTextDirection_();if(this.isEmojiButtonDisplayed&&S){var Y=this.getInputRange_().cloneRange();this.emojiManager&&Y&&(p&&this.emojiInput.offsetStartOfRangeBy(Y,S.length),this.insertTextWithEmojis_(Y,S,U),kIE(this.getEditableTextArea_().lastChild)||(Y=this.getInputRange_().cloneRange()),Y&&(this.emojiInput.updateSuggestions(Y,S),this.updateSuggestionOffset_(Y)))}},
getSimpleString:_.mA,computeHasCommentChip_:function(){return this.commentChip!==void 0},
computeCreationBoxClass_:function(S){return S?"focused":"not-focused"},
computePlaceholderText_:function(S){return this.getSimpleString(S)},
computeEditableText_:function(S){return this.getSimpleString(S)},
onPrefilledContentDismissed_:function(S){S.stopPropagation();this.dismissPrefilledContent_();this.getEditableTextArea_().focus()},
onInsertMention_:function(){this.updateCharCount_()},
isValidInput_:function(){return this.aboveCharLimit_?!1:!!this.getTextAreaValue().trim()},
onIsInputFocusChanged_:function(S,p){S?this.fire("yt-autonav-pause-focus"):p!==void 0&&this.fire("yt-autonav-pause-blur")},
plaintextDrop_:function(S){var p=this.getEditableTextArea_();[].concat(_.jo(S.dataTransfer.items)).forEach(function(U){U.kind==="string"&&U.type.match("^text/plain")&&U.getAsString(function(Y){p.appendChild(document.createTextNode(Y))})});
S.preventDefault()},
preventDefault_:function(S){S.preventDefault()},
onSuggestionInsert_:function(S){this.insertTextWithEmojis_(S.detail.range,S.detail.text)},
onEmojiSuggestionClick_:function(S){this.emojiInput.insertSuggestion(S.detail)},
updateSuggestionOffset_:function(S){if(this.emojiInput&&_.tB(this.emojiInput).querySelector("#dropdown")){var p=this.getEditableTextArea_().getBoundingClientRect().bottom,U=S.getBoundingClientRect().top;this.verticalSuggestionsOffset=Math.ceil(p-U)+5;p=this.getEditableTextArea_().getBoundingClientRect().left;S=S.getBoundingClientRect().left-p;_.tB(this.emojiInput).querySelector("#dropdown").style.marginLeft=S+"px"}},
getLocalStorage_:function(){this.localStorage||(this.localStorage=new _.ug("yt-post"));return this.localStorage}});var M5=function(){var S=_.w.apply(this,arguments)||this;S.currentCommentOptionIndex=0;S.isEmojiPickerDisplayed=!1;S.emojiManager=_.Zm;S.isUgcEmpty=!1;S.userGeneratedCommentChangedHandler=function(){_.cv(S.hostElement,"ytd-pdg-user-generated-comment-changed");S.isEmojiYtdCommentInputEnabled&&(S.isUgcEmpty=!S.ytdCommentInputEl.getTextAreaValue())};
S.pasteHandler=function(p){p.preventDefault();p.stopImmediatePropagation();var U;if(p=(U=p.clipboardData)==null?void 0:U.getData("text/plain"))U=document.getSelection().getRangeAt(0),U.collapsed||U.deleteContents(),p=document.createTextNode(p),U.insertNode(p),U.selectNodeContents(p),U.collapse(!1),p=window.getSelection(),p.removeAllRanges(),p.addRange(U)};
S.onDocumentClick=function(p){if(S.isEmojiPickerDisplayed){var U,Y,L;!(p.target instanceof Node)||(U=p.composedPath())!=null&&U.includes(S.editableTextEl)||(Y=p.composedPath())!=null&&Y.includes(S.emojiButtonEl)||(L=p.composedPath())!=null&&L.includes(S.emojiPickerEl)||(S.isEmojiPickerDisplayed=!1)}};
return S};
_.r(M5,_.w);_.M=M5.prototype;_.M.configureRendererStamper=function(){return{emojiPicker:{id:"emoji-picker",mapping:{emojiPickerRenderer:{component:"yt-emoji-picker-renderer",properties:{emojiManager:"[[emojiManager]]"}}}}}};
_.M.attached=function(){this.containerEl.addEventListener("input",this.userGeneratedCommentChangedHandler);this.containerEl.addEventListener("paste",this.pasteHandler);document.addEventListener("click",this.onDocumentClick)};
_.M.detached=function(){var S;(S=this.contentEl)==null||S.removeEventListener("input",this.userGeneratedCommentChangedHandler);var p;(p=this.contentEl)==null||p.removeEventListener("paste",this.pasteHandler);document.removeEventListener("click",this.onDocumentClick)};
_.M.currentCommentOptionChanged=function(){this.handleBackgroundColorStyling()};
_.M.dataChanged=function(){this.containerEl.classList.add("ugc");if(this.contentEl){var S;this.contentEl.textContent=this.rendererBehavior.getSimpleString((S=this.data)==null?void 0:S.defaultCommentText)}this.isEmojiYtdCommentInputEnabled&&(this.containerEl.classList.add("emojis"),this.reloadEmojis());this.handleTextScrolling()};
_.M.reloadEmojis=function(){this.emojiPickerEl&&_.b(this.emojiPicker,_.AHE)&&this.emojiPickerEl.updateEmojiCategories()};
_.M.handleTextScrolling=function(){this.isEmojiYtdCommentInputEnabled||_.Ms(this.hostElement,{"--ytd-pdg-comment-preview-max-height":"300px","--ytd-pdg-comment-preview-overflow":"auto"})};
_.M.handleBackgroundColorStyling=function(){var S;if((S=this.currentCommentOption)==null?0:S.commentBackgroundColorArgb){var p;_.Ms(this.hostElement,{"--ytd-pdg-comment-preview-background-color":_.ev((p=this.currentCommentOption)==null?void 0:p.commentBackgroundColorArgb)})}else _.Ms(this.hostElement,{"--ytd-pdg-comment-preview-background-color":"initial"})};
_.M.onContainerClick=function(){if(this.isEmojiYtdCommentInputEnabled)this.containerEl.focus();else if(this.containerEl.classList.contains("ugc")){var S;(S=this.contentEl)==null||S.focus()}};
_.M.onEditButtonClick=function(S){var p=document.getSelection();p&&this.contentEl&&(S.stopPropagation(),S.preventDefault(),p.selectAllChildren(this.contentEl),p.collapseToEnd())};
_.M.onContentDrop=function(S){var p=this;if(S.dataTransfer){S=_.d(S.dataTransfer.items);for(var U=S.next();!U.done;U=S.next())U=U.value,U.kind==="string"&&U.type.match("^text/plain")&&U.getAsString(function(Y){var L;(L=p.contentEl)==null||L.appendChild(document.createTextNode(Y))})}};
_.M.onEmojiButtonClick=function(){this.isEmojiPickerDisplayed=!this.isEmojiPickerDisplayed;this.emojiPickerEl.selected=!this.emojiPickerEl.selected};
_.M.getUserGeneratedCommentText=function(){var S,p=this.isEmojiYtdCommentInputEnabled?this.ytdCommentInputEl.getTextAreaValue():(S=this.contentEl)==null?void 0:S.textContent;return p?p.trim():""};
_.M.getIsEmojiYtdCommentInputEnabled=function(){return this.isEmojiYtdCommentInputEnabled};
_.M.onEmojiSelect=function(S){this.ytdCommentInputEl.onEmojiSelect(S)};
_.$u.Object.defineProperties(M5.prototype,{isEmojiYtdCommentInputEnabled:{configurable:!0,enumerable:!0,get:function(){var S;return!((S=this.data)==null||!S.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 S;return!((S=this.currentCommentOption)==null||!S.chipRenderer)}},
paidCommentChipRenderer:{configurable:!0,enumerable:!0,get:function(){var S;if(_.b((S=this.currentCommentOption)==null?void 0:S.chipRenderer,_.Tlq)){var p;return _.b((p=this.currentCommentOption)==null?void 0:p.chipRenderer,_.Tlq)}}},
currentCommentOption:{configurable:!0,enumerable:!0,get:function(){if(this.superThanksSelectedTierEntity&&this.superThanksSelectedTierEntity.index!==void 0){var S,p;return((S=this.data)==null?0:S.commentOptionRenderers)?_.b((p=this.data)==null?void 0:p.commentOptionRenderers[this.superThanksSelectedTierEntity.index],iCi):void 0}var U,Y;return((U=this.data)==null?0:U.commentOptionRenderers)?_.b((Y=this.data)==null?void 0:Y.commentOptionRenderers[this.currentCommentOptionIndex],iCi):void 0}},
commentText:{configurable:!0,enumerable:!0,get:function(){var S;return this.rendererBehavior.getSimpleString((S=this.data)==null?void 0:S.defaultCommentText)}},
placeholderText:{configurable:!0,enumerable:!0,get:function(){var S;return this.rendererBehavior.getSimpleString((S=this.data)==null?void 0:S.placeholderText)}},
editableText:{configurable:!0,enumerable:!0,get:function(){var S,p;return(p=_.b((S=this.data)==null?void 0:S.commentDialog,_.m_q))==null?void 0:p.editableText}},
emojiButton:{configurable:!0,enumerable:!0,get:function(){var S,p;return(p=_.b((S=this.data)==null?void 0:S.commentDialog,_.m_q))==null?void 0:p.emojiButton}},
emojiPicker:{configurable:!0,enumerable:!0,get:function(){var S,p;return(p=_.b((S=this.data)==null?void 0:S.commentDialog,_.m_q))==null?void 0:p.emojiPicker}},
isEmojiButtonDisplayed:{configurable:!0,enumerable:!0,get:function(){var S,p,U=(p=_.b((S=this.data)==null?void 0:S.commentDialog,_.m_q))==null?void 0:p.emojiPicker;if(!_.b(U,_.AHE)||!_.b(U,_.AHE).categories)return!1;S=function(I){return I.emojiPickerCategoryRenderer?I.emojiPickerCategoryRenderer.emojiIds&&I.emojiPickerCategoryRenderer.emojiIds.length>0:I.emojiPickerUpsellCategoryRenderer?I.emojiPickerUpsellCategoryRenderer.emojis&&I.emojiPickerUpsellCategoryRenderer.emojis.length>0:!1};
var Y,L;return((Y=_.b(U,_.AHE))==null?0:(L=Y.categories)==null?0:L.find(S))?!0:!1}}});
M5.prototype.onEmojiSelect=M5.prototype.onEmojiSelect;M5.prototype.dataChanged=M5.prototype.dataChanged;M5.prototype.currentCommentOptionChanged=M5.prototype.currentCommentOptionChanged;_.x([_.F(_.Xh),_.E("design:type",Object)],M5.prototype,"ytdReduxBehavior",void 0);_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],M5.prototype,"rendererBehavior",void 0);_.x([_.F(_.qH.YtRendererstamperBehavior),_.E("design:type",Object)],M5.prototype,"ytRendererstamperBehavior",void 0);
_.x([_.O2("#content-dom-if"),_.E("design:type",_.G4)],M5.prototype,"contentDomIfEl",void 0);_.x([_.O2("#content-no-emojis"),_.E("design:type",HTMLElement)],M5.prototype,"contentEl",void 0);_.x([_.O2("#container"),_.E("design:type",HTMLElement)],M5.prototype,"containerEl",void 0);_.x([_.O2("#comment-chip-container"),_.E("design:type",HTMLElement)],M5.prototype,"paidCommentChipContainerEl",void 0);_.x([_.O2("#text-input"),_.E("design:type",HTMLElement)],M5.prototype,"editableTextEl",void 0);
_.x([_.O2("#emoji-button"),_.E("design:type",HTMLElement)],M5.prototype,"emojiButtonEl",void 0);_.x([_.O2("#emoji-picker > yt-emoji-picker-renderer"),_.E("design:type",Object)],M5.prototype,"emojiPickerEl",void 0);_.x([_.O2("#text-input > ytd-comment-input"),_.E("design:type",Object)],M5.prototype,"ytdCommentInputEl",void 0);_.x([_.g(),_.E("design:type",Object)],M5.prototype,"data",void 0);_.x([_.g(),_.E("design:type",Object)],M5.prototype,"currentCommentOptionIndex",void 0);
_.x([_.g({selectorArgs:["data.superThanksSelectedTierEntity.key"],selector:Qtq}),_.E("design:type",Object)],M5.prototype,"superThanksSelectedTierEntity",void 0);_.x([_.g(),_.E("design:type",Object)],M5.prototype,"isEmojiPickerDisplayed",void 0);_.x([_.g(),_.E("design:type",Object)],M5.prototype,"emojiManager",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],M5.prototype,"isUgcEmpty",void 0);
_.x([_.T4("currentCommentOption"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],M5.prototype,"currentCommentOptionChanged",null);_.x([_.T4("data"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],M5.prototype,"dataChanged",null);_.x([_.e("data"),_.E("design:type",Boolean),_.E("design:paramtypes",[])],M5.prototype,"isEmojiYtdCommentInputEnabled",null);
_.x([_.e("data.title"),_.E("design:type",Object),_.E("design:paramtypes",[])],M5.prototype,"title",null);_.x([_.e("data.authorText"),_.E("design:type",Object),_.E("design:paramtypes",[])],M5.prototype,"channelName",null);_.x([_.e("data.commentOptionRenderers","currentCommentOption"),_.E("design:type",Boolean),_.E("design:paramtypes",[])],M5.prototype,"shouldShowPaidCommentChipRenderer",null);
_.x([_.e("data.commentOptionRenderers","currentCommentOption"),_.E("design:type",Object),_.E("design:paramtypes",[])],M5.prototype,"paidCommentChipRenderer",null);_.x([_.e("data.commentOptionRenderers","currentCommentOptionIndex","superThanksSelectedTierEntity"),_.E("design:type",Object),_.E("design:paramtypes",[])],M5.prototype,"currentCommentOption",null);
_.x([_.e("data.defaultCommentText","superThanksSelectedTierEntity"),_.E("design:type",Object),_.E("design:paramtypes",[])],M5.prototype,"commentText",null);_.x([_.e("data.placeholderText"),_.E("design:type",Object),_.E("design:paramtypes",[])],M5.prototype,"placeholderText",null);_.x([_.e("data.commentDialog.commentDialogRenderer.editableText"),_.E("design:type",Object),_.E("design:paramtypes",[])],M5.prototype,"editableText",null);
_.x([_.e("data.commentDialog.commentDialogRenderer.emojiButton"),_.E("design:type",Object),_.E("design:paramtypes",[])],M5.prototype,"emojiButton",null);_.x([_.e("data.commentDialog.commentDialogRenderer.emojiPicker"),_.E("design:type",Object),_.E("design:paramtypes",[])],M5.prototype,"emojiPicker",null);
_.x([_.e("data.commentDialog.commentDialogRenderer.emojiPicker","data.commentDialog.commentDialogRenderer.emojiButton"),_.E("design:type",Boolean),_.E("design:paramtypes",[])],M5.prototype,"isEmojiButtonDisplayed",null);_.x([_.Vd("yt-emoji-select"),_.E("design:type",Function),_.E("design:paramtypes",[Event]),_.E("design:returntype")],M5.prototype,"onEmojiSelect",null);M5=_.x([_.f({disableElementRegistration:!0,is:"ytd-pdg-comment-preview-renderer"})],M5);
_.C(M5,"ytd-pdg-comment-preview-renderer",function(){if(fkt!==void 0)return fkt;var S=document.createElement("template");_.h(S,'\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');
S.content.insertBefore(_.t().content.cloneNode(!0),S.content.firstChild);return fkt=S},{mode:2});var xKs;var IC=function(){var S=_.w.apply(this,arguments)||this;S.selected=!1;return S};
_.r(IC,_.w);_.M=IC.prototype;_.M.beforeRegister=function(){this.ironA11yKeysBehavior.keyBindings={"enter:keydown":"onKeyboardSelect","space:keydown":"onKeyboardSelect"}};
_.M.attached=function(){this.hostElement.setAttribute("tabindex","0");this.hostElement.setAttribute("role","radio")};
_.M.dataChanged=function(){this.data&&(_.p3(this.hostElement).setAttribute("selectable","true"),this.data.chipColorArgb&&this.data.chipFontColorArgb&&_.Ms(this.hostElement,{"--yt-pdg-super-vod-selectable-item-button-chip-background-color":_.ev(this.data.chipColorArgb),"--yt-pdg-super-vod-selectable-item-button-chip-font-color":_.ev(this.data.chipFontColorArgb)}),this.basePriceText=this.data.basePriceText,this.purchaseCommand=this.data.purchaseCommand)};
_.M.selectedChanged=function(){this.hostElement.setAttribute("aria-checked",this.selected.toString())};
_.M.onClick=function(){this.logClick()};
_.M.onKeyboardSelect=function(){_.cv(this.hostElement,"tap");this.onClick()};
_.M.logClick=function(){this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
IC.prototype.onClick=IC.prototype.onClick;IC.prototype.selectedChanged=IC.prototype.selectedChanged;IC.prototype.dataChanged=IC.prototype.dataChanged;_.x([_.F(_.eL.YtComponentBehavior),_.E("design:type",Object)],IC.prototype,"componentBehavior",void 0);_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],IC.prototype,"ytRendererBehavior",void 0);_.x([_.F(_.H$),_.E("design:type",Object)],IC.prototype,"ironA11yKeysBehavior",void 0);
_.x([_.F(_.as),_.E("design:type",Object)],IC.prototype,"ironSelectableBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],IC.prototype,"data",void 0);_.x([_.g(),_.E("design:type",Object)],IC.prototype,"shownThumbnail",void 0);_.x([_.g(),_.E("design:type",Object)],IC.prototype,"basePriceText",void 0);_.x([_.g(),_.E("design:type",Object)],IC.prototype,"purchaseCommand",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],IC.prototype,"selected",void 0);
_.x([_.T4("data"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],IC.prototype,"dataChanged",null);_.x([_.T4("selected"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],IC.prototype,"selectedChanged",null);_.x([_.Vd("click"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],IC.prototype,"onClick",null);
IC=_.x([_.f({disableElementRegistration:!0,is:"ytd-pdg-super-vod-selectable-item-button-renderer"})],IC);
_.C(IC,"ytd-pdg-super-vod-selectable-item-button-renderer",function(){if(xKs!==void 0)return xKs;var S=document.createElement("template");_.h(S,'\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');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);return xKs=S},{mode:1});var dG=function(){var S=_.w.apply(this,arguments)||this;S.selectedItemIndex=0;S.buyButtonDisabled=!1;return S};
_.r(dG,_.w);_.M=dG.prototype;
_.M.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]]"}}}}}};
_.M.onBuyButtonClick=function(){if(!this.buyButtonDisabled&&this.selectedItemIndex!==void 0){if(this.isColorSlider){var S;var p=(S=_.b(this.data.colorSlider,$Ds))==null?void 0:S.notches[this.selectedItemIndex].purchaseCommand}else{var U;p=(U=_.b(this.data.selectableItemButtons[this.selectedItemIndex],BPo))==null?void 0:U.purchaseCommand}if(p){S=_.b(p,_.xcj);S.productData||(S.productData={});var Y;S.productData={pdgData:{commentMessageText:(Y=this.commentPreviewRenderer)==null?void 0:Y.getUserGeneratedCommentText()}};
_.cv(this.hostElement,"yt-pdg-buy-flow-selection-submitted");this.ytComponentBehavior.resolveCommand(p)}}};
_.M.dataChanged=function(){if(this.data){_.Zm.emojis.length===0&&(this.data.unicodeEmojisUrl&&_.DgP(_.Zm,this.data.unicodeEmojisUrl),this.data.customEmojis&&_.Zm.load(this.data.customEmojis));this.isColorSlider=!!this.data.colorSlider;var S;this.buyButtonDisabled=!((S=_.b(this.data.commentPreview,NP5))==null||!S.placeholderText);this.updatePriceSelectorStatus();var p;if((p=this.data)==null?0:p.defaultPriceTier)this.selectedItemIndex=this.data.defaultPriceTier||0;S=[];this.data.preloadImages&&(S=this.data.preloadImages);
S=S.map(function(U){return _.AS(U.thumbnails,1920)});
S=_.d(S);for(p=S.next();!p.done;p=S.next())(p=p.value)&&_.sZe(p).thenCatch(function(){_.eP(Error("jl"))})}};
_.M.superThanksSelectedTierEntityChanged=function(){var S;(this==null?void 0:(S=this.superThanksSelectedTierEntity)==null?void 0:S.index)!==void 0&&(this.selectedItemIndex=this.superThanksSelectedTierEntity.index)};
_.M.selectedItemIndexChanged=function(){this.commentPreviewRenderer&&(this.commentPreviewRenderer.currentCommentOptionIndex=this.selectedItemIndex)};
_.M.updatePriceSelectorStatus=function(){this.isColorSlider?(_.tB(this.hostElement).querySelector("#selectable-items").setAttribute("hidden","true"),_.tB(this.hostElement).querySelector("#slider").removeAttribute("hidden")):(_.tB(this.hostElement).querySelector("#selectable-items").removeAttribute("hidden"),_.tB(this.hostElement).querySelector("#slider").setAttribute("hidden","true"))};
_.M.closeBuyFlow=function(){_.St(this.hostElement,"yt-close-popup-action",["ytd-pdg-buy-flow-renderer"])};
_.M.onUserGeneratedContentChanged=function(){var S;this.buyButtonDisabled=!((S=this.commentPreviewRenderer)==null?0:S.getUserGeneratedCommentText())};
_.M.updateSelectedItemIndexFromBinding=function(S){this.selectedItemIndex=S.detail.value};
_.$u.Object.defineProperties(dG.prototype,{isDisclaimerTextShown:{configurable:!0,enumerable:!0,get:function(){var S;return!((S=this.data)==null||!S.disclaimerText)}}});
dG.prototype.onUserGeneratedContentChanged=dG.prototype.onUserGeneratedContentChanged;dG.prototype.closeBuyFlow=dG.prototype.closeBuyFlow;dG.prototype.selectedItemIndexChanged=dG.prototype.selectedItemIndexChanged;dG.prototype.superThanksSelectedTierEntityChanged=dG.prototype.superThanksSelectedTierEntityChanged;dG.prototype.dataChanged=dG.prototype.dataChanged;_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],dG.prototype,"ytRendererBehavior",void 0);
_.x([_.F(_.qH.YtRendererstamperBehavior),_.E("design:type",Object)],dG.prototype,"ytRendererstamperBehavior",void 0);_.x([_.F(_.eL.YtComponentBehavior),_.E("design:type",Object)],dG.prototype,"ytComponentBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],dG.prototype,"data",void 0);_.x([_.g(),_.E("design:type",Object)],dG.prototype,"selectedItemIndex",void 0);_.x([_.g(),_.E("design:type",Boolean)],dG.prototype,"isColorSlider",void 0);
_.x([_.g(),_.E("design:type",Object)],dG.prototype,"buyButtonDisabled",void 0);_.x([_.g({selectorArgs:["data.superThanksSelectedTierEntity.key"],selector:Qtq}),_.E("design:type",Object)],dG.prototype,"superThanksSelectedTierEntity",void 0);_.x([_.O2("ytd-pdg-comment-preview-renderer"),_.E("design:type",Object)],dG.prototype,"commentPreviewRenderer",void 0);_.x([_.F(_.Xh),_.E("design:type",Object)],dG.prototype,"ytdReduxBehavior",void 0);
_.x([_.z4("data"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],dG.prototype,"dataChanged",null);_.x([_.T4("superThanksSelectedTierEntity"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],dG.prototype,"superThanksSelectedTierEntityChanged",null);_.x([_.T4("selectedItemIndex"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],dG.prototype,"selectedItemIndexChanged",null);
_.x([_.Vd("yt-service-request-completed"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],dG.prototype,"closeBuyFlow",null);_.x([_.Vd("ytd-pdg-user-generated-comment-changed"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],dG.prototype,"onUserGeneratedContentChanged",null);_.x([_.e("data"),_.E("design:type",Boolean),_.E("design:paramtypes",[])],dG.prototype,"isDisclaimerTextShown",null);
dG=_.x([_.f({disableElementRegistration:!0,is:"yt-super-vod-buy-flow-content-renderer"})],dG);
_.C(dG,"yt-super-vod-buy-flow-content-renderer",function(){if(lk5!==void 0)return lk5;var S=document.createElement("template");_.h(S,'\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>');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);return lk5=S},{mode:1});var EBT;var VB=function(){var S=_.w.apply(this,arguments)||this;S.lottieAnimationRef={};return S};
_.r(VB,_.w);_.M=VB.prototype;_.M.created=function(){_.ei.requestAvailability();this.hostElement.addEventListener("iron-overlay-opened",_.d9(this,this.onPopupIronOverlayOpened));this.ironOverlayBehavior.scrollAction="lock";this.ironOverlayBehavior.noCancelOnEscKey=!0;this.ironOverlayBehavior.noCancelOnOutsideClick=!0;this.ironOverlayBehavior.allowClickThrough=!1};
_.M.onPopupIronOverlayOpened=function(){this.data&&this.data.accessibility&&this.data.accessibility.accessibilityData&&this.data.accessibility.accessibilityData.label&&_.cv(this.hostElement,"iron-announce",{text:this.data.accessibility.accessibilityData.label})};
_.M.detached=function(){this.autoCloseJobId&&_.PA.cancelJob(this.autoCloseJobId);this.hostElement.removeEventListener("iron-overlay-opened",_.d9(this,this.onPopupIronOverlayOpened))};
_.M.dataChanged=function(){var S=this;this.data&&this.data.autoCloseDelay&&(_.St(this.hostElement,"yt-close-popup-action",["ytd-pdg-buy-flow-renderer"]),this.data.lottie||(this.autoCloseJobId=_.ps(_.PA,function(){S.closePopup()},(Number(this.data.autoCloseDelay.seconds)||0)*1E3)),this.data.lottieImageScalePercent&&this.data.lottie&&_.Ms(this.hostElement,{"--ytd-desktop-image-overlay-scale-percent":this.data.lottieImageScalePercent+"%"}))};
_.M.onDOMLoadedLottie=function(){var S=this,p,U,Y=Number((p=this.data)==null?void 0:(U=p.autoCloseDelay)==null?void 0:U.seconds)||0;this.fadeOutJobId=_.ps(_.PA,function(){S.lottiePlayerEl.classList.add("fadeout")},(Y-.25)*1E3);
this.autoCloseJobId=_.ps(_.PA,function(){S.closePopup()},Y*1E3)};
_.M.openPopup=function(){this.ironOverlayBehavior.open()};
_.M.closePopup=function(){this.ironOverlayBehavior.close();this.data&&(_.St(this.hostElement,"yt-close-popup-action",["ytd-desktop-image-overlay-renderer"]),this.data.onCloseCommand&&_.Lp(this.hostElement,[this.data.onCloseCommand],this.hostElement),this.data.onCloseSurveyCommand&&_.tW().resolve(_.cQ).resolveCommand(this.data.onCloseSurveyCommand,{form:{element:this.hostElement}}),this.autoCloseJobId&&_.PA.cancelJob(this.autoCloseJobId),this.fadeOutJobId&&_.PA.cancelJob(this.fadeOutJobId),this.lottiePlayerEl.classList.contains("fadeout")&&
this.lottiePlayerEl.classList.remove("fadeout"))};
_.M.maybeInitializeLottie=function(){if(this.hasLottieAnimation){var S,p;(S=this.lottieAnimationRef)==null||(p=S.lottieEl)==null||p.destroy();S=this.data.lottie;var U,Y;this.lottiePlayerProps={animationRef:this.lottieAnimationRef,animationConfig:{name:S.url+"_"+Math.random(),path:S.url,autoplay:!0,loop:(Y=(U=S.settings)==null?void 0:U.loop)!=null?Y:!1,renderer:"svg",rendererSettings:{viewBoxOnly:!1,preserveAspectRatio:"xMidYMid meet"}},listeners:{DOMLoaded:this.onDOMLoadedLottie.bind(this)}}}};
_.$u.Object.defineProperties(VB.prototype,{hasLottieAnimation:{configurable:!0,enumerable:!0,get:function(){var S,p;return!!((S=this.data)==null?0:(p=S.lottie)==null?0:p.url)}}});
VB.prototype.maybeInitializeLottie=VB.prototype.maybeInitializeLottie;VB.prototype.dataChanged=VB.prototype.dataChanged;_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],VB.prototype,"rendererBehavior",void 0);_.x([_.F(_.aU),_.E("design:type",Object)],VB.prototype,"ironOverlayBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],VB.prototype,"data",void 0);_.x([_.g(),_.E("design:type",Object)],VB.prototype,"lottiePlayerProps",void 0);
_.x([_.g(),_.E("design:type",Object)],VB.prototype,"lottieAnimationRef",void 0);_.x([_.O2("ytd-lottie-player"),_.E("design:type",HTMLElement)],VB.prototype,"lottiePlayerEl",void 0);_.x([_.T4("data"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],VB.prototype,"dataChanged",null);_.x([_.e("data"),_.E("design:type",Boolean),_.E("design:paramtypes",[])],VB.prototype,"hasLottieAnimation",null);
_.x([_.T4("data.lottie.url"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],VB.prototype,"maybeInitializeLottie",null);VB=_.x([_.f({disableElementRegistration:!0,is:"ytd-desktop-image-overlay-renderer"})],VB);
_.C(VB,"ytd-desktop-image-overlay-renderer",function(){if(EBT!==void 0)return EBT;var S=document.createElement("template");_.h(S,'\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');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);return EBT=S},{mode:1});var mKA;var T5=function(){return _.w.apply(this,arguments)||this};
_.r(T5,_.w);_.M=T5.prototype;_.M.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"}}}}};
_.M.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",_.d9(this,this.closePopup))};
_.M.detached=function(){this.hostElement.removeEventListener("yt-popup-closed",_.d9(this,this.closePopup))};
_.M.dataChanged=function(){_.pp(this.hostElement,"yt-close-popup-action",["yt-loading-renderer"]);this.data&&this.data.header&&_.b(this.data.header,vii)&&(this.hasBackgroundBanner=!!_.b(this.data.header,vii).backgroundBanner)};
_.M.handleBuyflowSelectionSubmitted=function(){this.hostElement.removeEventListener("yt-popup-closed",_.d9(this,this.closePopup))};
_.M.closePopup=function(){this.data&&this.data.onCloseCommand&&_.Yd(this.hostElement,[this.data.onCloseCommand])};
T5.prototype.handleBuyflowSelectionSubmitted=T5.prototype.handleBuyflowSelectionSubmitted;T5.prototype.dataChanged=T5.prototype.dataChanged;_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],T5.prototype,"ytRendererBehavior",void 0);_.x([_.F(_.qH.YtRendererstamperBehavior),_.E("design:type",Object)],T5.prototype,"ytRendererstamperBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],T5.prototype,"data",void 0);
_.x([_.g({value:!0,reflectToAttribute:!0}),_.E("design:type",Boolean)],T5.prototype,"hasBackgroundBanner",void 0);_.x([_.z4("data"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],T5.prototype,"dataChanged",null);_.x([_.Vd("yt-pdg-buy-flow-selection-submitted"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],T5.prototype,"handleBuyflowSelectionSubmitted",null);
T5=_.x([_.f({disableElementRegistration:!0,is:"ytd-pdg-buy-flow-renderer"})],T5);
_.C(T5,"ytd-pdg-buy-flow-renderer",function(){if(mKA!==void 0)return mKA;var S=document.createElement("template");_.h(S,'\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>');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);return mKA=S},{mode:1});var oBi;var W6=function(){var S=_.w.apply(this,arguments)||this;S.isOpen=!1;S.isPlaylistCreated=!1;return S};
_.r(W6,_.w);_.M=W6.prototype;_.M.reset=function(){this.isPlaylistCreated=this.isOpen=!1;this.nameInput.reset();this.privacyInput.reset()};
_.M.onOpenTap=function(){this.isOpen=!0;this.isPlaylistCreated=!1;this.nameInput.focusTextInput();_.cv(this.hostElement,"yt-refit")};
_.M.onCreateTap=function(){var S=this;!this.isPlaylistCreated&&this.nameInput.validate()&&(_.Yd(this.hostElement,[this.data.serviceEndpoint,{create_playlist_title:this.nameInput.value,create_playlist_privacy_status:this.privacyInput.value},{onSuccess:function(p,U){if(!_.y("killswitch_ep_in_create_playlist_response")&&(U==null?0:U.actions))for(p=_.d(U.actions),U=p.next();!U.done;U=p.next())U=U.value,_.b(U,_.hx)&&S.ytComponentBehavior.resolveCommand(U)}}]),this.isPlaylistCreated=!0)};
_.M.onKeydown=function(S){if(S.keyCode===13)this.onCreateTap()};
_.M.onServiceRequestCompleted=function(S){S.stopPropagation();_.St(this.hostElement,"yt-close-popup-action",["ytd-add-to-playlist-renderer"])};
_.M.computePrivacyBadge=function(S){return S?[{metadataBadgeRenderer:S}]:[]};
W6.prototype.onServiceRequestCompleted=W6.prototype.onServiceRequestCompleted;W6.prototype.onKeydown=W6.prototype.onKeydown;_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],W6.prototype,"ytRendererBehavior",void 0);_.x([_.F(_.eL.YtComponentBehavior),_.E("design:type",Object)],W6.prototype,"ytComponentBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],W6.prototype,"data",void 0);_.x([_.g(),_.E("design:type",Object)],W6.prototype,"isOpen",void 0);
_.x([_.g(),_.E("design:type",Object)],W6.prototype,"isPlaylistCreated",void 0);_.x([_.g({value:{REQUIRED_LABEL:_.Oh("REQUIRED_LABEL",void 0,"Required"),NO_ANGLE_BRACKET_LABEL:_.Oh("NO_ANGLE_BRACKET_LABEL",void 0,"Cannot contain < or >")}}),_.E("design:type",Object)],W6.prototype,"addToStrings",void 0);_.x([_.g({computed:"computePrivacyBadge(data.privacyInput.metadataBadgeRenderer)"}),_.E("design:type",Array)],W6.prototype,"privacyBadge",void 0);
_.x([_.O2("#privacy-input"),_.E("design:type",Object)],W6.prototype,"privacyInput",void 0);_.x([_.O2("#name-input"),_.E("design:type",Object)],W6.prototype,"nameInput",void 0);_.x([_.Vd("keydown"),_.E("design:type",Function),_.E("design:paramtypes",[KeyboardEvent]),_.E("design:returntype")],W6.prototype,"onKeydown",null);_.x([_.Vd("yt-service-request-completed"),_.E("design:type",Function),_.E("design:paramtypes",[CustomEvent]),_.E("design:returntype")],W6.prototype,"onServiceRequestCompleted",null);
W6=_.x([_.f({is:"ytd-add-to-playlist-create-renderer",disableElementRegistration:!0})],W6);
_.C(W6,"ytd-add-to-playlist-create-renderer",function(){if(oBi!==void 0)return oBi;var S=document.createElement("template");_.h(S,'\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');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);return oBi=S},{mode:1});var vB5;var $K5;var Om=function(){var S=_.w.apply(this,arguments)||this;S.transferState="TRANSFER_STATE_UNKNOWN";return S};
_.r(Om,_.w);Om.prototype.dataChanged=function(){this.data&&(this.checkbox.checked=this.data.containsSelectedVideos==="ALL")};
Om.prototype.onCheckboxChange=function(S){var p=this;this.data&&_.w9(this,"yt-playlist-checkbox-changed",function(){var U=_.mF(S).checked?p.data.addToPlaylistServiceEndpoint:p.data.removeFromPlaylistServiceEndpoint;U&&_.tW().resolve(_.cQ).resolveCommand(U,{form:{element:p.hostElement}});_.y("dl_playlist_killswitch")||p.transferState!=="TRANSFER_STATE_UNKNOWN"&&p.transferState!=="TRANSFER_STATE_FAILED"&&p.ytComponentBehavior.resolveCommand({offlinePlaylistEndpoint:{playlistId:p.data.playlistId,action:"ACTION_SYNC"}})},
100)};
Om.prototype.computeIconType=function(S){return S?"yt-icons:"+S.toLowerCase():null};
Om.prototype.dataChanged=Om.prototype.dataChanged;_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],Om.prototype,"ytRendererBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],Om.prototype,"data",void 0);_.x([_.F(_.Xh),_.E("design:type",Object)],Om.prototype,"ytdReduxBehavior",void 0);_.x([_.F(_.eL.YtComponentBehavior),_.E("design:type",Object)],Om.prototype,"ytComponentBehavior",void 0);_.x([_.O2("#checkbox"),_.E("design:type",HTMLInputElement)],Om.prototype,"checkbox",void 0);
_.x([_.g({selector:_.sc,selectorArgs:["data.playlistId"]}),_.E("design:type",String)],Om.prototype,"transferState",void 0);_.x([_.T4("data"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],Om.prototype,"dataChanged",null);Om=_.x([_.f({is:"ytd-playlist-add-to-option-renderer",disableElementRegistration:!0})],Om);
_.C(Om,"ytd-playlist-add-to-option-renderer",function(){if($K5!==void 0)return $K5;var S=document.createElement("template");_.h(S,'\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');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);return $K5=S},{mode:1});_.cH(Kpd);_.Ls(Kpd,"ytd-menu-title-renderer",{propNames:["data"]});var kW=function(){var S=_.w.apply(this,arguments)||this;S.addToStrings={ADD_TO_DROPDOWN_LABEL:_.Oh("ADD_TO_DROPDOWN_LABEL",void 0,"Save to...")};S.closeButtonAriaLabel=_.Oh("SBOX_INAPPROPRIATE_CANCEL");S.dialog=_.y("desktop_add_to_playlist_renderer_dialog_popup");return S};
_.r(kW,_.w);_.M=kW.prototype;_.M.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"}}}};
_.M.onPopupOpened=function(){_.U2(this.playlists,"scrollable",!0);this.createRenderer&&this.createRenderer.reset()};
_.M.onPopupClosed=function(){_.U2(this.playlists,"scrollable",!1)};
_.M.computeAriaLabel=function(){var S;if(this==null?0:(S=this.data)==null?0:S.actions){S=_.d(this.data.actions);for(var p=S.next();!p.done;p=S.next())if(p=p.value,p.menuTitleRenderer)return _.mA(p.menuTitleRenderer.title)}};
_.M.onTapClose=function(){_.St(this.hostElement,"yt-close-popup-action",["ytd-add-to-playlist-renderer"])};
_.$u.Object.defineProperties(kW.prototype,{menuTitleRenderer:{configurable:!0,enumerable:!0,get:function(){var S;if(this==null?0:(S=this.data)==null?0:S.actions){S=_.d(this.data.actions);for(var p=S.next();!p.done;p=S.next())if(p=p.value,p.menuTitleRenderer)return p.menuTitleRenderer}return!1}}});
kW.prototype.onPopupClosed=kW.prototype.onPopupClosed;kW.prototype.onPopupOpened=kW.prototype.onPopupOpened;_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],kW.prototype,"ytRendererBehavior",void 0);_.x([_.F(_.kP.YtEventForwardingBehavior),_.E("design:type",Object)],kW.prototype,"ytEventForwardingBehavior",void 0);_.x([_.F(_.qH.YtRendererstamperBehavior),_.E("design:type",Object)],kW.prototype,"ytRendererStamperBehavior",void 0);
_.x([_.g(),_.E("design:type",Object)],kW.prototype,"data",void 0);_.x([_.g(),_.E("design:type",Object)],kW.prototype,"addToStrings",void 0);_.x([_.g({reflectToAttribute:!0,readOnly:!0,computed:"computeAriaLabel(data)"}),_.E("design:type",String)],kW.prototype,"ariaLabel",void 0);_.x([_.g(),_.E("design:type",String)],kW.prototype,"closeButtonAriaLabel",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Boolean)],kW.prototype,"dialog",void 0);
_.x([_.O2("#playlists"),_.E("design:type",HTMLElement)],kW.prototype,"playlists",void 0);_.x([_.O2("ytd-add-to-playlist-create-renderer"),_.E("design:type",Object)],kW.prototype,"createRenderer",void 0);_.x([_.e("data"),_.E("design:type",Object),_.E("design:paramtypes",[])],kW.prototype,"menuTitleRenderer",null);_.x([_.Vd("yt-popup-opened"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],kW.prototype,"onPopupOpened",null);
_.x([_.Vd("yt-popup-closed"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],kW.prototype,"onPopupClosed",null);kW=_.x([_.f({is:"ytd-add-to-playlist-renderer",disableElementRegistration:!0})],kW);
_.C(kW,"ytd-add-to-playlist-renderer",function(){if(vB5!==void 0)return vB5;var S=document.createElement("template");_.h(S,'\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');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);return vB5=S},{mode:1});var i7T;var H6=function(){var S=_.w.apply(this,arguments)||this;S.isPlaylistEditComplete=!1;S.isCollabEngagementDisabled=!1;S.closeButtonAriaLabel=_.Oh("SBOX_INAPPROPRIATE_CANCEL");S.saveButton={title:_.Oh("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"};S.onValueChanged=function(){S.updateSaveButtonState();S.computeCollabEngagementDisabled()};
return S};
_.r(H6,_.w);_.M=H6.prototype;_.M.attached=function(){this.JSC$18305_scroller&&(this.JSC$18305_scroller.dialogElement=this.hostElement.parentNode,this.JSC$18305_scroller.attached&&typeof this.JSC$18305_scroller.attached==="function"&&this.JSC$18305_scroller.attached())};
_.M.reset=function(){this.isPlaylistEditComplete=!1;this.nameInput.reset();this.descriptionInput.reset();this.computeCollabEngagementDisabled();this.updateSaveButtonState()};
_.M.onPopupClosed=function(){this.reset()};
_.M.close=function(){_.St(this.hostElement,"yt-close-popup-action",["ytd-playlist-settings-editor-renderer"])};
_.M.onClickSave=function(){var S=this;if(!this.isPlaylistEditComplete&&this.nameInput.validate()&&this.descriptionInput.validate()){var p=[];this.nameInput.value!==null&&p.push({action:"ACTION_SET_PLAYLIST_NAME",playlistName:this.nameInput.value});this.descriptionInput.value!==null&&p.push({action:"ACTION_SET_PLAYLIST_DESCRIPTION",playlistDescription:this.descriptionInput.value});if(this.privacyInput.value!==null){var U=Number(this.privacyInput.value);isNaN(U)||p.push({action:"ACTION_SET_PLAYLIST_PRIVACY",
playlistPrivacy:U})}this.votingInput.value!==null&&(U=this.votingInput.value)&&p.push({action:"ACTION_SET_ALLOW_ITEM_VOTE",itemVotePermission:U});if(p.length>0){var Y;_.b((Y=this.data)==null?void 0:Y.updateSettingsEndpoint,_.h1).actions=p;var L;if((L=this.data)==null?0:L.updateSettingsEndpoint)this.ytComponentBehavior.resolveCommand(this.data.updateSettingsEndpoint,{commandController:{onSuccess:function(){S.close()}}}),this.isPlaylistEditComplete=!0}}};
_.M.computePrivacyBadge=function(S){return S?[{metadataBadgeRenderer:S}]:[]};
_.M.computeEditorData=function(S){var p,U;return S==null?void 0:(p=S.sections)==null?void 0:(U=p[0])==null?void 0:U.playlistSettingsEditorCasualSectionRenderer};
_.M.computeCollabEngagementDisabled=function(){this.isCollabEngagementDisabled=this.privacyInput.value===0};
_.M.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}}}}}};
_.M.computeAriaLabel=function(){var S,p,U,Y=(S=this.data)==null?void 0:(p=S.sections)==null?void 0:(U=p[0])==null?void 0:U.playlistSettingsEditorCasualSectionRenderer;return _.mA(Y==null?void 0:Y.title)};
_.M.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"}))};
_.M.isFormValid=function(){return this.nameInput.validate()&&this.descriptionInput.validate()};
_.M.isFormChanged=function(){return this.isNameChanged()||this.isDescriptionChanged()||this.isPrivacyChanged()||this.isVotingChanged()};
_.M.isNameChanged=function(){var S,p,U;return(((S=this.editorData)==null?void 0:(p=S.name)==null?void 0:(U=p.textInputFormFieldRenderer)==null?void 0:U.value)||"")!==(this.nameInput.value||"")};
_.M.isDescriptionChanged=function(){var S,p,U;return(((S=this.editorData)==null?void 0:(p=S.description)==null?void 0:(U=p.textInputFormFieldRenderer)==null?void 0:U.value)||"")!==(this.descriptionInput.value||"")};
_.M.isPrivacyChanged=function(){var S,p,U,Y,L,I,V,W;return((V=(S=this.editorData)==null?void 0:(p=S.privacy)==null?void 0:(U=p.dropdownFormFieldRenderer)==null?void 0:(Y=U.dropdown)==null?void 0:(L=Y.dropdownRenderer)==null?void 0:(I=L.entries)==null?void 0:I.find(function(O){var D;return O==null?void 0:(D=O.privacyDropdownItemRenderer)==null?void 0:D.isSelected}))==null?void 0:(W=V.privacyDropdownItemRenderer)==null?void 0:W.int32Value)!==this.privacyInput.value};
_.M.isVotingChanged=function(){var S,p,U,Y,L,I,V,W;return((V=(S=this.editorData)==null?void 0:(p=S.voting)==null?void 0:(U=p.dropdownFormFieldRenderer)==null?void 0:(Y=U.dropdown)==null?void 0:(L=Y.dropdownRenderer)==null?void 0:(I=L.entries)==null?void 0:I.find(function(O){var D;return O==null?void 0:(D=O.privacyDropdownItemRenderer)==null?void 0:D.isSelected}))==null?void 0:(W=V.privacyDropdownItemRenderer)==null?void 0:W.int32Value)!==this.votingInput.value};
H6.prototype.onPopupClosed=H6.prototype.onPopupClosed;_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],H6.prototype,"ytRendererBehavior",void 0);_.x([_.F(_.eL.YtComponentBehavior),_.E("design:type",Object)],H6.prototype,"ytComponentBehavior",void 0);_.x([_.F(_.kP.YtEventForwardingBehavior),_.E("design:type",Object)],H6.prototype,"ytEventForwardingBehavior",void 0);_.x([_.F(_.qH.YtRendererstamperBehavior),_.E("design:type",Object)],H6.prototype,"ytRendererStamperBehavior",void 0);
_.x([_.g(),_.E("design:type",Object)],H6.prototype,"data",void 0);_.x([_.g({computed:"computePrivacyBadge(editorData.privacy.metadataBadgeRenderer)"}),_.E("design:type",Array)],H6.prototype,"privacyBadge",void 0);_.x([_.g({computed:"computeEditorData(data)"}),_.E("design:type",Object)],H6.prototype,"editorData",void 0);_.x([_.g(),_.E("design:type",Object)],H6.prototype,"isPlaylistEditComplete",void 0);_.x([_.g(),_.E("design:type",Object)],H6.prototype,"isCollabEngagementDisabled",void 0);
_.x([_.g({value:{REQUIRED_LABEL:_.Oh("REQUIRED_LABEL",void 0,"Required"),NO_ANGLE_BRACKET_LABEL:_.Oh("NO_ANGLE_BRACKET_LABEL",void 0,"Cannot contain < or >")}}),_.E("design:type",Object)],H6.prototype,"addToStrings",void 0);_.x([_.g({reflectToAttribute:!0,readOnly:!0,computed:"computeAriaLabel(data)"}),_.E("design:type",String)],H6.prototype,"ariaLabel",void 0);_.x([_.g(),_.E("design:type",String)],H6.prototype,"closeButtonAriaLabel",void 0);
_.x([_.g(),_.E("design:type",Object)],H6.prototype,"saveButton",void 0);_.x([_.O2("#name-input"),_.E("design:type",Object)],H6.prototype,"nameInput",void 0);_.x([_.O2("#description-input"),_.E("design:type",Object)],H6.prototype,"descriptionInput",void 0);_.x([_.O2("#privacy-input"),_.E("design:type",Object)],H6.prototype,"privacyInput",void 0);_.x([_.O2("#voting-input"),_.E("design:type",Object)],H6.prototype,"votingInput",void 0);
_.x([_.O2("#scroller"),_.E("design:type",Object)],H6.prototype,"JSC$18305_scroller",void 0);_.x([_.Vd("yt-popup-closed"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],H6.prototype,"onPopupClosed",null);_.x([_.g(),_.E("design:type",Object)],H6.prototype,"onValueChanged",void 0);H6=_.x([_.f({is:"ytd-playlist-settings-editor-renderer",disableElementRegistration:!0})],H6);
_.C(H6,"ytd-playlist-settings-editor-renderer",function(){if(i7T===void 0){var S=document.createElement("template");_.h(S,'\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');
S.content.insertBefore(_.t().content.cloneNode(!0),S.content.firstChild);i7T=S}S=i7T;return S},{mode:1});var Nsq;_.Ry("itemSectionRenderer","redCancelSurveyRenderer","ytd-red-cancel-survey-renderer");var DJ=function(){return _.w.apply(this,arguments)||this};
_.r(DJ,_.w);_.M=DJ.prototype;_.M.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}}}}}};
_.M.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.M.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 S=this.get("data.nextButton.buttonRenderer.navigationEndpoint");S&&(this.nextNavigationEndpoint=S,this.set("data.nextButton.buttonRenderer.navigationEndpoint",void 0))};
_.M.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 S={feedbackTokens:[this.get(["data.singleOptions.styles",this.selectedResponseIndex]).radioButtonSurveyOptionRenderer.submissionEndpoint.feedbackEndpoint.feedbackToken]};
this.set("nextNavigationEndpoint.confirmDialogEndpoint.content.confirmDialogRenderer.confirmButton.buttonRenderer.serviceEndpoint.ypcCancelRecurrenceEndpoint.feedbackData",S)}}};
_.M.onPopupOpened=function(S){S.detail!==this&&S.detail!==this.hostElement||!_.y("enable_premium_voluntary_pause")||_.St(this.hostElement,"yt-close-popup-action",["yt-confirm-dialog-renderer"])};
_.M.onNextButtonTap=function(){var S=this.nextNavigationEndpoint&&this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(this.nextNavigationEndpoint);S&&this.ytdOpenPopupBehavior.openPopup(S)};
_.M.updateSelectedResponseIndexFromBinding=function(S){this.selectedResponseIndex=S.detail.value};
DJ.prototype.onPopupOpened=DJ.prototype.onPopupOpened;DJ.prototype.onSelectedResponseIndexChange=DJ.prototype.onSelectedResponseIndexChange;DJ.prototype.dataChanged=DJ.prototype.dataChanged;_.x([_.F(_.xK),_.E("design:type",Object)],DJ.prototype,"ytdOpenPopupBehavior",void 0);_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],DJ.prototype,"ytRendererBehavior",void 0);_.x([_.F(_.qH.YtRendererstamperBehavior),_.E("design:type",Object)],DJ.prototype,"ytRendererstamperBehavior",void 0);
_.x([_.g(),_.E("design:type",Object)],DJ.prototype,"data",void 0);_.x([_.g(),_.E("design:type",Number)],DJ.prototype,"selectedResponseIndex",void 0);_.x([_.T4("data"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],DJ.prototype,"dataChanged",null);_.x([_.T4("selectedResponseIndex"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],DJ.prototype,"onSelectedResponseIndexChange",null);
_.x([_.Vd("yt-popup-opened"),_.E("design:type",Function),_.E("design:paramtypes",[CustomEvent,Object]),_.E("design:returntype")],DJ.prototype,"onPopupOpened",null);DJ=_.x([_.f({is:"ytd-red-cancel-survey-renderer",disableElementRegistration:!0})],DJ);
_.C(DJ,"ytd-red-cancel-survey-renderer",function(){if(Nsq!==void 0)return Nsq;var S=document.createElement("template");_.h(S,'\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');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);return Nsq=S},{mode:1});var BsE;var z5=function(){var S=_.w.apply(this,arguments)||this;S.closeButtonAriaLabel=_.Oh("SBOX_INAPPROPRIATE_CANCEL");return S};
_.r(z5,_.w);z5.prototype.configureRendererStamper=function(){return{"data.groups":{id:"options",mapping:{searchFilterGroupRenderer:{component:"ytd-search-filter-group-renderer"}}}}};
z5.prototype.onClickClose=function(){_.St(this.hostElement,"yt-close-popup-action",["ytd-search-filter-options-dialog-renderer"])};
_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],z5.prototype,"ytRendererBehavior",void 0);_.x([_.F(_.qH.YtRendererstamperBehavior),_.E("design:type",Object)],z5.prototype,"rendererStamperBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],z5.prototype,"data",void 0);_.x([_.g(),_.E("design:type",String)],z5.prototype,"closeButtonAriaLabel",void 0);z5=_.x([_.f({is:"ytd-search-filter-options-dialog-renderer",disableElementRegistration:!0})],z5);
_.C(z5,"ytd-search-filter-options-dialog-renderer",function(){if(BsE!==void 0)return BsE;var S=document.createElement("template");_.h(S,'\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');
S.content.insertBefore(_.t().content.cloneNode(!0),S.content.firstChild);return BsE=S},{mode:1});var qQL;var raX=function(){return function(S){S=S.availabilityType;return S===void 0||S==="OFFLINEABILITY_AVAILABILITY_TYPE_UNKNOWN"||S==="OFFLINEABILITY_AVAILABILITY_TYPE_PREMIUM_LOCKED"?!0:!1}};var QB=function(){var S=_.w.apply(this,arguments)||this;S.qualityOptions=[];S.upsellOptions=[];S.showUpsellSection=!1;S.darkerDarkTheme=_.y("web_darker_dark_theme");S.rememberSettingsChecked=!1;return S};
_.r(QB,_.w);_.M=QB.prototype;_.M.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}}}}};
_.M.dataChanged=function(){this.updateRememberString();this.updateQualityOptions()};
_.M.updateQualityOptions=function(){if(this.formats===void 0)_.St(this.hostElement,"yt-close-popup-action",["ytd-download-quality-selector-renderer"]);else{var S=[],p=[];this.showUpsellSection=!1;for(var U=_.d(this.formats),Y=U.next();!Y.done;Y=U.next())(Y=Y.value)&&(Y.availabilityType==="OFFLINEABILITY_AVAILABILITY_TYPE_PREMIUM_LOCKED"?p.push(Y):S.push(Y));S.length&&(this.qualityOptions=j2P(S));p.length&&(this.showUpsellSection=!0,this.upsellOptions=j2P(p))}};
_.M.updateRememberString=function(){if(this.downloadQualityPickerEntity)var S=this.downloadQualityPickerEntity.rememberSettingString;else if(this.selectedUpsellQuality){var p;S=(p=this.data)==null?void 0:p.premiumRememberSettingString}else{var U;S=(U=this.data)==null?void 0:U.rememberSettingString}S=S===void 0?_.Oh("REMEMBER_MY_SETTINGS",void 0,"Remember my settings"):S;this.rememberSettingsCheckboxRenderer={title:_.Aa(S),disabled:!1}};
_.M.rememberSettingsCheckedChanged=function(){if(this.onRememberSettingsCheckedChanged)this.onRememberSettingsCheckedChanged(this.rememberSettingsCheckbox.checked)};
_.$u.Object.defineProperties(QB.prototype,{formats:{configurable:!0,enumerable:!0,get:function(){var S;return this.downloadQualityPickerEntity?this.downloadQualityPickerEntity.formats:(S=this.data)==null?void 0:S.qualityFormats}}});
QB.prototype.updateRememberString=QB.prototype.updateRememberString;QB.prototype.updateQualityOptions=QB.prototype.updateQualityOptions;QB.prototype.dataChanged=QB.prototype.dataChanged;_.x([_.F(_.qH.YtRendererstamperBehavior),_.E("design:type",Object)],QB.prototype,"ytRendererstamperBehavior",void 0);_.x([_.F(_.eL.YtComponentBehavior),_.E("design:type",Object)],QB.prototype,"ytComponentBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],QB.prototype,"data",void 0);
_.x([_.F(_.Xh),_.E("design:type",Object)],QB.prototype,"ytdReduxBehavior",void 0);_.x([_.g(),_.E("design:type",Boolean)],QB.prototype,"selectedUpsellQuality",void 0);_.x([_.g({computed:"computeIcon_(data.premiumIcon)",value:""}),_.E("design:type",String)],QB.prototype,"premiumIcon",void 0);_.x([_.g({selector:kpY,selectorArgs:["data.downloadQualityPickerEntityKey"]}),_.E("design:type",Object)],QB.prototype,"downloadQualityPickerEntity",void 0);
_.x([_.g(),_.E("design:type",Array)],QB.prototype,"qualityOptions",void 0);_.x([_.g(),_.E("design:type",Array)],QB.prototype,"upsellOptions",void 0);_.x([_.g(),_.E("design:type",Object)],QB.prototype,"showUpsellSection",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],QB.prototype,"darkerDarkTheme",void 0);_.x([_.g(),_.E("design:type",Object)],QB.prototype,"rememberSettingsCheckboxRenderer",void 0);
_.x([_.O2("#remember-settings"),_.E("design:type",HTMLInputElement)],QB.prototype,"rememberSettingsCheckbox",void 0);_.x([_.g(),_.E("design:type",Object)],QB.prototype,"rememberSettingsChecked",void 0);_.x([_.g(),_.E("design:type",Function)],QB.prototype,"onRememberSettingsCheckedChanged",void 0);_.x([_.T4("data"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],QB.prototype,"dataChanged",null);
_.x([_.T4("downloadQualityPickerEntity"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],QB.prototype,"updateQualityOptions",null);_.x([_.T4("selectedUpsellQuality"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],QB.prototype,"updateRememberString",null);QB=_.x([_.f({is:"ytd-download-quality-selector-content",disableElementRegistration:!0})],QB);
_.C(QB,"ytd-download-quality-selector-content",function(){if(qQL!==void 0)return qQL;var S=document.createElement("template");_.h(S,'\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');
S.content.insertBefore(_.t().content.cloneNode(!0),S.content.firstChild);return qQL=S},{mode:1});var AOA;var nq=function(){var S=_.w.apply(this,arguments)||this;S.selectedUpsellQuality=!1;S.qualityOptions=[];S.darkerDarkTheme=_.y("web_darker_dark_theme");S.useUpsellDismissAlternate=_.y("use_not_now_dl_upsell_dismiss_cta");S.shouldShowAlternateUpsellDimiss=!1;S.rememberSettings=!1;S.rememberSettingsChecked=!1;S.actionMap={"yt-select-settings-radio-option":"onQualityOptionsSelect"};S.rememberSettingsCheckedChanged=function(p){S.rememberSettingsChecked=p};
return S};
_.r(nq,_.w);_.M=nq.prototype;
_.M.dataChanged=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.rememberSettingsCheckedChanged(!1);this.downloadButtonRenderer={style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.Aa(_.Oh("DOWNLOAD",void 0,"Download")),isDisabled:!0};this.upsellButtonRenderer={style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.Aa(_.Oh("GET_PREMIUM",void 0,"Get Premium")),isDisabled:!0};this.cancelButtonRenderer={style:"STYLE_TEXT",size:"SIZE_DEFAULT",text:_.Aa(_.Oh("SBOX_INAPPROPRIATE_CANCEL",
void 0,"Cancel"))};this.upsellCancelButtonRenderer={style:"STYLE_TEXT",size:"SIZE_DEFAULT",text:_.Aa(_.Oh("NOT_NOW",void 0,"Not now"))};this.updateQualityOptions()};
_.M.updateQualityOptions=function(){this.formats===void 0?_.St(this.hostElement,"yt-close-popup-action",["ytd-download-quality-selector-renderer"]):this.qualityOptions=j2P(this.formats)};
_.M.onQualityOptionsSelect=function(S){if(this.qualityOptions&&S){S!==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 p=_.d(this.qualityOptions.entries()),U=p.next();!U.done;U=
p.next()){U=_.d(U.value);var Y=U.next().value;U=U.next().value;var L=void 0,I=void 0;if(((L=U)==null?void 0:(I=L.settingsRadioOptionRenderer)==null?void 0:I.id)===S){this.selectedQualityIndex=Y;S=void 0;this.shouldShowAlternateUpsellDimiss=(this.selectedUpsellQuality=((S=this.formats[Y])==null?void 0:S.availabilityType)==="OFFLINEABILITY_AVAILABILITY_TYPE_PREMIUM_LOCKED")&&this.useUpsellDismissAlternate;break}}}};
_.M.onClickSubmit=function(){var S;if((S=this.downloadButtonRenderer)==null||!S.isDisabled){var p,U;S=(U=(p=this.data)==null?void 0:p.onSubmitEndpoint)!=null?U:{};var Y,L;if(this.formats&&(((Y=_.b(S,_.MB))==null?0:Y.videoId)||((L=_.b(S,_.d8))==null?0:L.playlistId))){var I,V,W,O,D,z;p={formatType:(O=(I=this.formats)==null?void 0:(V=I[(W=this.selectedQualityIndex)!=null?W:0])==null?void 0:V.format)!=null?O:"UNKNOWN_FORMAT_TYPE",settingsAction:this.getOfflineSettingsAction(this.rememberSettingsChecked,
(D=this.getOfflineEndpoint(S))==null?void 0:(z=D.actionParams)==null?void 0:z.settingsAction)};this.getOfflineEndpoint(S).actionParams=p;this.ytComponentBehavior.resolveCommand(S)}_.St(this.hostElement,"yt-close-popup-action",["ytd-download-quality-selector-renderer"])}};
_.M.onClickUpsell=function(){var S;if((S=this.upsellButtonRenderer)==null||!S.isDisabled){var p,U;S=(U=(p=this.data)==null?void 0:p.upsellEndpoint)!=null?U:{};this.ytComponentBehavior.resolveCommand(S);_.St(this.hostElement,"yt-close-popup-action",["ytd-download-quality-selector-renderer"]);p="UNKNOWN_FORMAT_TYPE";if(this.rememberSettingsChecked){var Y,L,I,V;p=(V=(Y=this.formats)==null?void 0:(L=Y[(I=this.selectedQualityIndex)!=null?I:0])==null?void 0:L.format)!=null?V:"UNKNOWN_FORMAT_TYPE"}this.ytComponentBehavior.resolveCommand({setPrefStorageEntryCommand:{key:"lmqf",
value:p}})}};
_.M.onClickClose=function(){_.St(this.hostElement,"yt-close-popup-action",["ytd-download-quality-selector-renderer"])};
_.M.getOfflineSettingsAction=function(S,p){return S?p===void 0?"DOWNLOAD_QUALITY_SETTINGS_ACTION_SAVE":p:"DOWNLOAD_QUALITY_SETTINGS_ACTION_DONT_SAVE"};
_.M.getOfflineEndpoint=function(S){return _.b(S,_.MB)?_.b(S,_.MB):_.b(S,_.d8)};
_.$u.Object.defineProperties(nq.prototype,{titleText:{configurable:!0,enumerable:!0,get:function(){return _.Aa(_.Oh("DOWNLOAD_QUALITY",void 0,"Download Quality"))}},
formats:{configurable:!0,enumerable:!0,get:function(){var S;return this.downloadQualityPickerEntity?this.downloadQualityPickerEntity.formats:(S=this.data)==null?void 0:S.qualityFormats}}});
nq.prototype.updateQualityOptions=nq.prototype.updateQualityOptions;nq.prototype.dataChanged=nq.prototype.dataChanged;_.x([_.F(_.qH.YtRendererstamperBehavior),_.E("design:type",Object)],nq.prototype,"ytRendererstamperBehavior",void 0);_.x([_.F(_.eL.YtComponentBehavior),_.E("design:type",Object)],nq.prototype,"ytComponentBehavior",void 0);_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],nq.prototype,"ytRendererBehavior",void 0);
_.x([_.F(_.Aj.YtActionHandlerBehavior),_.E("design:type",Object)],nq.prototype,"ytActionHandlerBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],nq.prototype,"data",void 0);_.x([_.g(),_.E("design:type",Number)],nq.prototype,"selectedQualityIndex",void 0);_.x([_.g(),_.E("design:type",Object)],nq.prototype,"selectedUpsellQuality",void 0);_.x([_.F(_.Xh),_.E("design:type",Object)],nq.prototype,"ytdReduxBehavior",void 0);
_.x([_.g({selector:kpY,selectorArgs:["data.downloadQualityPickerEntityKey"]}),_.E("design:type",Object)],nq.prototype,"downloadQualityPickerEntity",void 0);_.x([_.g(),_.E("design:type",Array)],nq.prototype,"qualityOptions",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],nq.prototype,"darkerDarkTheme",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Boolean)],nq.prototype,"useUpsellDismissAlternate",void 0);
_.x([_.g(),_.E("design:type",Object)],nq.prototype,"shouldShowAlternateUpsellDimiss",void 0);_.x([_.g(),_.E("design:type",Object)],nq.prototype,"downloadButtonRenderer",void 0);_.x([_.g(),_.E("design:type",Object)],nq.prototype,"upsellButtonRenderer",void 0);_.x([_.g(),_.E("design:type",Object)],nq.prototype,"cancelButtonRenderer",void 0);_.x([_.g(),_.E("design:type",Object)],nq.prototype,"upsellCancelButtonRenderer",void 0);_.x([_.g(),_.E("design:type",Object)],nq.prototype,"rememberSettings",void 0);
_.x([_.g(),_.E("design:type",Object)],nq.prototype,"rememberSettingsChecked",void 0);_.x([_.T4("data"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],nq.prototype,"dataChanged",null);_.x([_.T4("downloadQualityPickerEntity"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],nq.prototype,"updateQualityOptions",null);nq=_.x([_.f({is:"ytd-download-quality-selector-renderer",disableElementRegistration:!0})],nq);
_.C(nq,"ytd-download-quality-selector-renderer",function(){if(AOA!==void 0)return AOA;var S=document.createElement("template");_.h(S,'\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');
S.content.insertBefore(_.t().content.cloneNode(!0),S.content.firstChild);return AOA=S},{mode:1});var tWt;var JD=function(){var S=_.w.apply(this,arguments)||this;S.darkerDarkTheme=_.y("web_darker_dark_theme");return S};
_.r(JD,_.w);JD.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
JD.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"}}}}};
_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],JD.prototype,"ytRendererBehavior",void 0);_.x([_.F(_.qH.YtRendererstamperBehavior),_.E("design:type",Object)],JD.prototype,"ytRendererstamperBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],JD.prototype,"data",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],JD.prototype,"darkerDarkTheme",void 0);_.x([_.g({computed:"computeIcon_(data.infoIcon)"}),_.E("design:type",Object)],JD.prototype,"infoIcon",void 0);
_.x([_.g({computed:"computeIcon_(data.warningIcon)"}),_.E("design:type",Object)],JD.prototype,"warningIcon",void 0);JD=_.x([_.f({is:"ytd-cross-account-transfer-channel-confirm-dialog-renderer",disableElementRegistration:!0})],JD);
_.C(JD,"ytd-cross-account-transfer-channel-confirm-dialog-renderer",function(){if(tWt!==void 0)return tWt;var S=document.createElement("template");_.h(S,'\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');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);return tWt=S},{mode:1});var cOt;var yB=function(){var S=_.w.apply(this,arguments)||this;S.darkerDarkTheme=_.y("web_darker_dark_theme");return S};
_.r(yB,_.w);yB.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
yB.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"}}}}};
_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],yB.prototype,"ytRendererBehavior",void 0);_.x([_.F(_.qH.YtRendererstamperBehavior),_.E("design:type",Object)],yB.prototype,"ytRendererstamperBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],yB.prototype,"data",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],yB.prototype,"darkerDarkTheme",void 0);yB=_.x([_.f({is:"ytd-cross-account-transfer-channel-overview-renderer",disableElementRegistration:!0})],yB);
_.C(yB,"ytd-cross-account-transfer-channel-overview-renderer",function(){if(cOt!==void 0)return cOt;var S=document.createElement("template");_.h(S,'\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');
S.content.insertBefore(_.t().content.cloneNode(!0),S.content.firstChild);return cOt=S},{mode:1});var SLL;var Kq=function(){var S=_.w.apply(this,arguments)||this;S.darkerDarkTheme=_.y("web_darker_dark_theme");return S};
_.r(Kq,_.w);Kq.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
Kq.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"}}}}};
Kq.prototype.onServiceRequestSentOrCompleted=function(S,p){p&&p.actions&&p.actions.length>0&&_.St(this.hostElement,"yt-close-popup-action",[this.is])};
Kq.prototype.onServiceRequestSentOrCompleted=Kq.prototype.onServiceRequestSentOrCompleted;_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],Kq.prototype,"ytRendererBehavior",void 0);_.x([_.F(_.qH.YtRendererstamperBehavior),_.E("design:type",Object)],Kq.prototype,"ytRendererstamperBehavior",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],Kq.prototype,"darkerDarkTheme",void 0);_.x([_.g(),_.E("design:type",Object)],Kq.prototype,"data",void 0);
_.x([_.Vd("yt-service-request-completed"),_.Vd("yt-service-request-sent"),_.E("design:type",Function),_.E("design:paramtypes",[CustomEvent,_.xL]),_.E("design:returntype")],Kq.prototype,"onServiceRequestSentOrCompleted",null);Kq=_.x([_.f({is:"ytd-cross-account-transfer-channel-tnc-dialog-renderer",disableElementRegistration:!0})],Kq);
_.C(Kq,"ytd-cross-account-transfer-channel-tnc-dialog-renderer",function(){if(SLL!==void 0)return SLL;var S=document.createElement("template");_.h(S,'\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');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);return SLL=S},{mode:1});var phE;var b0=function(){var S=_.w.apply(this,arguments)||this;S.darkerDarkTheme=_.y("web_darker_dark_theme");S.submitButtonDisabled=!0;return S};
_.r(b0,_.w);_.M=b0.prototype;_.M.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.M.configureRendererStamper=function(){return{"data.sections":{id:"sections",mapping:{itemSectionRenderer:{component:"ytd-item-section-renderer",noInjection:!0}}}}};
_.M.onDataChanged=function(){var S,p,U;if(((S=this.data)==null?void 0:(p=S.confirmButton)==null?void 0:(U=p.buttonRenderer)==null?void 0:U.isDisabled)!==void 0){var Y,L,I;this.submitButtonDisabled=(Y=this.data)==null?void 0:(L=Y.confirmButton)==null?void 0:(I=L.buttonRenderer)==null?void 0:I.isDisabled}};
_.M.checkboxChanged=function(){this.submitButtonDisabled=!this.submitButtonDisabled};
_.M.updateSubmitButtonDisabledFromBinding=function(S){this.submitButtonDisabled=S.detail.value};
_.M.updateSubmitButtonDisabledFromConfirmCheckbox=function(S){this.submitButtonDisabled=!S.detail.value};
b0.prototype.onDataChanged=b0.prototype.onDataChanged;_.x([_.F(_.qH.YtRendererstamperBehavior),_.E("design:type",Object)],b0.prototype,"ytRendererstamperBehavior",void 0);_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],b0.prototype,"ytRendererBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],b0.prototype,"data",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],b0.prototype,"darkerDarkTheme",void 0);
_.x([_.g(),_.E("design:type",Object)],b0.prototype,"submitButtonDisabled",void 0);_.x([_.T4("data"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],b0.prototype,"onDataChanged",null);b0=_.x([_.f({is:"ytd-transfer-channel-confirm-dialog-renderer",disableElementRegistration:!0})],b0);
_.C(b0,"ytd-transfer-channel-confirm-dialog-renderer",function(){if(phE!==void 0)return phE;var S=document.createElement("template");_.h(S,'\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');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);return phE=S},{mode:1});var UfP;var jU=function(){return _.w.apply(this,arguments)||this};
_.r(jU,_.w);_.$u.Object.defineProperties(jU.prototype,{ariaLabel:{configurable:!0,enumerable:!0,get:function(){var S,p,U;return((S=this.data)==null?void 0:S.title)+" "+((p=this.data)==null?void 0:p.metadataPrimary)+" "+((U=this.data)==null?void 0:U.metadataSecondary)}}});
_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],jU.prototype,"ytRendererBehavior",void 0);_.x([_.F(_.eL.YtComponentBehavior),_.E("design:type",Object)],jU.prototype,"ytComponentBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],jU.prototype,"data",void 0);_.x([_.e("data"),_.E("design:type",Object),_.E("design:paramtypes",[])],jU.prototype,"ariaLabel",null);jU=_.x([_.f({disableElementRegistration:!0,is:"ytd-compact-product-list-item-renderer"})],jU);
_.C(jU,"ytd-compact-product-list-item-renderer",function(){if(UfP!==void 0)return UfP;var S=document.createElement("template");_.h(S,'\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>');
S.content.insertBefore(_.t().content.cloneNode(!0),S.content.firstChild);return UfP=S},{mode:1});var YLL;var rG=function(){return _.w.apply(this,arguments)||this};
_.r(rG,_.w);rG.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]]"}}}}}};
_.$u.Object.defineProperties(rG.prototype,{buttonOverrides:{configurable:!0,enumerable:!0,get:function(){return{style:"mono"}}}});
_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],rG.prototype,"ytRendererBehavior",void 0);_.x([_.F(_.eL.YtComponentBehavior),_.E("design:type",Object)],rG.prototype,"ytComponentBehavior",void 0);_.x([_.F(_.qH.YtRendererstamperBehavior),_.E("design:type",Object)],rG.prototype,"ytRendererstamperBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],rG.prototype,"data",void 0);rG=_.x([_.f({disableElementRegistration:!0,is:"ytd-compact-product-list-renderer"})],rG);
_.C(rG,"ytd-compact-product-list-renderer",function(){if(YLL!==void 0)return YLL;var S=document.createElement("template");_.h(S,'\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>');
S.content.insertBefore(_.t().content.cloneNode(!0),S.content.firstChild);return YLL=S},{mode:1});var LQ5;var G5=function(){var S=_.w.apply(this,arguments)||this;S.darkerDarkTheme=_.y("web_darker_dark_theme");return S};
_.r(G5,_.w);_.M=G5.prototype;_.M.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.M.configureRendererStamper=function(){return{"data.okayButton":{id:"okay-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",attributes:{"dialog-dismiss":!0}}}}}};
_.M.getBackgroundUrl=function(){var S=this.get("data.headerImage.thumbnails");return S?"url("+_.AS(S,this.hostElement.clientWidth)+")":""};
_.M.onDataChanged=function(){var S=this.getBackgroundUrl();S&&(this.header.style.backgroundImage=S);S=_.X$();var p=_.F$(),U=this.get("data.trackingParams");U&&p&&S&&_.wB(S,p,_.JS(U));S=_.d(this.hostElement.querySelectorAll("yt-img-shadow"));for(p=S.next();!p.done;p=S.next())p.value.onShow()};
_.M.onPopupClosed=function(S){_.mF(S).localName==="ytd-membership-post-cancel-renderer"&&_.St(this.hostElement,"ytd-refresh-channel-tab-action",["TAB_ID_SPONSORSHIPS"])};
G5.prototype.onPopupClosed=G5.prototype.onPopupClosed;G5.prototype.onDataChanged=G5.prototype.onDataChanged;_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],G5.prototype,"ytRendererBehavior",void 0);_.x([_.F(_.qH.YtRendererstamperBehavior),_.E("design:type",Object)],G5.prototype,"ytRendererstamperBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],G5.prototype,"data",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],G5.prototype,"darkerDarkTheme",void 0);
_.x([_.O2("#header"),_.E("design:type",HTMLDivElement)],G5.prototype,"header",void 0);_.x([_.T4("data"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],G5.prototype,"onDataChanged",null);_.x([_.Vd("yt-popup-closed"),_.E("design:type",Function),_.E("design:paramtypes",[CustomEvent]),_.E("design:returntype")],G5.prototype,"onPopupClosed",null);G5=_.x([_.f({disableElementRegistration:!0,is:"ytd-membership-post-cancel-renderer"})],G5);
_.C(G5,"ytd-membership-post-cancel-renderer",function(){if(LQ5!==void 0)return LQ5;var S=document.createElement("template");_.h(S,'\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');
S.content.insertBefore(_.t().content.cloneNode(!0),S.content.firstChild);return LQ5=S},{mode:1});var MHP;var hD=function(){var S=_.w.apply(this,arguments)||this;S.darkerDarkTheme=_.y("web_darker_dark_theme");return S};
_.r(hD,_.w);hD.prototype.maybeSubmitFeedback=function(){this.feedbackSurveyRenderer&&this.feedbackSurveyRenderer.submitSurvey()};
hD.prototype.configureRendererStamper=function(){return{"data.feedbackSurvey":{id:"feedback-survey",mapping:{feedbackSurveyRenderer:"ytd-feedback-survey-renderer"}}}};
_.x([_.F(_.qH.YtRendererstamperBehavior),_.E("design:type",Object)],hD.prototype,"ytRendererstamperBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],hD.prototype,"data",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],hD.prototype,"darkerDarkTheme",void 0);_.x([_.O2("ytd-feedback-survey-renderer"),_.E("design:type",Object)],hD.prototype,"feedbackSurveyRenderer",void 0);hD=_.x([_.f({disableElementRegistration:!0,is:"ytd-sponsorship-confirm-cancel-content"})],hD);
_.C(hD,"ytd-sponsorship-confirm-cancel-content",function(){if(MHP!==void 0)return MHP;var S=document.createElement("template");_.h(S,'\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');
S.content.insertBefore(_.t().content.cloneNode(!0),S.content.firstChild);return MHP=S},{mode:1});var IbE;var RC=function(){var S=_.w.apply(this,arguments)||this;S.darkerDarkTheme=_.y("web_darker_dark_theme");S.maybeSubmitFeedback=function(){S.content&&S.content.maybeSubmitFeedback()};
return S};
_.r(RC,_.w);_.M=RC.prototype;_.M.configureRendererStamper=function(){return{"data.confirmButton":{id:"confirm-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[maybeSubmitFeedback]]"}}}}}};
_.M.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.scrollable.dialogElement=this.hostElement.parentNode;this.scrollable._ensureTarget();this.onDataChanged()};
_.M.onYtPopupOpened=function(S,p){p===this&&this.data&&this.data.onOpenCommands&&_.Lp(this.hostElement,this.data.onOpenCommands,this.hostElement);_.St(this.hostElement,"yt-close-popups-action",[["ytd-manage-membership-renderer","ytd-membership-offer-renderer"]])};
_.M.onYtPopupClosed=function(S,p){(p&&p.canceled===!0||p&&p.canceled===!1&&p.confirmed===!1)&&this.data&&this.data.onDismissCommands&&_.Lp(this.hostElement,this.data.onDismissCommands,this.hostElement)};
_.M.onYtServiceRequestCompleted=function(){_.St(this.hostElement,"yt-close-popup-action",["ytd-sponsorship-confirm-cancel-renderer"])};
_.M.onYtServiceRequestError=function(S){_.An(this.hostElement,S.detail.error.message)};
_.M.onDataChanged=function(){if(this.isAttached){var S=this.backgroundUrl;S&&(_.tB(this.hostElement).querySelector("#header").style.backgroundImage=S)}};
_.$u.Object.defineProperties(RC.prototype,{backgroundUrl:{configurable:!0,enumerable:!0,get:function(){var S=this.get("data.header.sponsorshipDialogHeaderRenderer.headerImage.thumbnails");return S?"url("+_.AS(S,this.hostElement.clientWidth)+")":""}}});
RC.prototype.onDataChanged=RC.prototype.onDataChanged;RC.prototype.onYtServiceRequestError=RC.prototype.onYtServiceRequestError;RC.prototype.onYtServiceRequestCompleted=RC.prototype.onYtServiceRequestCompleted;RC.prototype.onYtPopupClosed=RC.prototype.onYtPopupClosed;RC.prototype.onYtPopupOpened=RC.prototype.onYtPopupOpened;_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],RC.prototype,"ytRendererBehavior",void 0);
_.x([_.F(_.qH.YtRendererstamperBehavior),_.E("design:type",Object)],RC.prototype,"ytRendererstamperBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],RC.prototype,"data",void 0);_.x([_.g({value:function(){return _.Oh("SBOX_INAPPROPRIATE_CANCEL")}}),
_.E("design:type",String)],RC.prototype,"closeButtonAriaLabel",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],RC.prototype,"darkerDarkTheme",void 0);_.x([_.O2("#scrollable"),_.E("design:type",Object)],RC.prototype,"scrollable",void 0);_.x([_.O2("ytd-sponsorship-confirm-cancel-content"),_.E("design:type",Object)],RC.prototype,"content",void 0);
_.x([_.Vd("yt-popup-opened"),_.E("design:type",Function),_.E("design:paramtypes",[CustomEvent,Object]),_.E("design:returntype")],RC.prototype,"onYtPopupOpened",null);_.x([_.Vd("yt-popup-closed"),_.E("design:type",Function),_.E("design:paramtypes",[CustomEvent,Object]),_.E("design:returntype")],RC.prototype,"onYtPopupClosed",null);
_.x([_.Vd("yt-service-request-completed"),_.E("design:type",Function),_.E("design:paramtypes",[CustomEvent]),_.E("design:returntype")],RC.prototype,"onYtServiceRequestCompleted",null);_.x([_.Vd("yt-service-request-error"),_.E("design:type",Function),_.E("design:paramtypes",[CustomEvent]),_.E("design:returntype")],RC.prototype,"onYtServiceRequestError",null);_.x([_.T4("data"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],RC.prototype,"onDataChanged",null);
RC=_.x([_.f({disableElementRegistration:!0,is:"ytd-sponsorship-confirm-cancel-renderer"})],RC);
_.C(RC,"ytd-sponsorship-confirm-cancel-renderer",function(){if(IbE!==void 0)return IbE;var S=document.createElement("template");_.h(S,'\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');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);return IbE=S},{mode:_.UW("kevlar_poly_si_batch_j081")?1:2});var df5;var Fx=function(){var S=_.w.apply(this,arguments)||this;S.darkerDarkTheme=_.y("web_darker_dark_theme");return S};
_.r(Fx,_.w);Fx.prototype.configureRendererStamper=function(){return{"data.contents":{id:"content",mapping:{sponsorshipsListTileRenderer:{component:"ytd-sponsorships-list-tile-renderer"}}}}};
_.x([_.F(_.qH.YtRendererstamperBehavior),_.E("design:type",Object)],Fx.prototype,"ytRendererstamperBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],Fx.prototype,"data",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],Fx.prototype,"darkerDarkTheme",void 0);Fx=_.x([_.f({disableElementRegistration:!0,is:"ytd-sponsorships-celebration-content"})],Fx);
_.C(Fx,"ytd-sponsorships-celebration-content",function(){if(df5!==void 0)return df5;var S=document.createElement("template");_.h(S,'\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');S.content.insertBefore(_.t().content.cloneNode(!0),S.content.firstChild);return df5=
S},{mode:1});var VHJ;var TaJ=_.x1(["\n      window.dataLayer = window.dataLayer || [];\n      function gtag(){dataLayer.push(arguments);}\n      gtag('event', 'conversion', {'send_to': 'AW-10800507011/WarlCOX0sIIDEIPRip4o', 'transaction_id': ''});\n    "]),Xx=function(){var S=_.w.apply(this,arguments)||this;S.scriptsAppended=!1;S.buttonOverrides={type:"tonal",style:"overlay-dark"};return S};
_.r(Xx,_.w);_.M=Xx.prototype;
_.M.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:_.y("web_modern_buttons")}}}},"data.primaryButton":{id:"primary-button",mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{"dialog-dismiss":!0}}}},"data.secondaryButton":{id:"secondary-button",mapping:{buttonRenderer:{component:"yt-button-renderer",
attributes:{"dialog-dismiss":!0}}}}}};
_.M.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.M.onDataChanged=function(){var S;(S=this.header)==null||S.style.setProperty("background-color",this.backgroundColor);if(S=this.headerImageUrl){var p;(p=this.header)==null||p.style.setProperty("background-image",S)}p=_.X$(4);S=_.F$(4);var U=this.get("data.trackingParams");if(U&&S&&p){var Y=_.JS(U);_.wB(p,S,Y);_.y("combine_ve_grafts")?_.HX().graftServerVe(U,S,4):_.wB(p,S,Y)}p=_.d(this.hostElement.querySelectorAll("yt-img-shadow"));for(S=p.next();!S.done;S=p.next())S.value.onShow();if(p=this.get("data.gtmId"))_.Jj(p,
_.g7("GL","")),this.setupConversionTracking()};
_.M.setupConversionTracking=function(){if(!this.scriptsAppended){var S=document.createElement("script");var p=_.wc(TaJ.join(""));_.aK(S,p);document.head.appendChild(S);S=document.createElement("noscript");S.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(S);this.scriptsAppended=!0}};
_.M.onPopupClosed=function(S){if(_.mF(S).localName==="ytd-sponsorships-celebration-renderer"){_.St(this.hostElement,"ytd-refresh-channel-tab-action",["TAB_ID_SPONSORSHIPS"]);var p;this.data&&((p=this.data)==null?0:p.dismissCommand)&&_.VO.instance.resolveCommand(this.data.dismissCommand,{form:{element:this.hostElement}})}};
_.$u.Object.defineProperties(Xx.prototype,{backgroundColor:{configurable:!0,enumerable:!0,get:function(){var S=this.get("data.header.sponsorshipsHeaderRenderer.backgroundColor");return _.ev(S)}},
headerImageUrl:{configurable:!0,enumerable:!0,get:function(){var S=this.get("data.header.sponsorshipsHeaderRenderer.backgroundImage.thumbnails");return S?"url("+_.AS(S,this.hostElement.getBoundingClientRect().width)+")":""}}});
Xx.prototype.onPopupClosed=Xx.prototype.onPopupClosed;Xx.prototype.onDataChanged=Xx.prototype.onDataChanged;_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],Xx.prototype,"ytRendererBehavior",void 0);_.x([_.F(_.qH.YtRendererstamperBehavior),_.E("design:type",Object)],Xx.prototype,"ytRendererstamperBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],Xx.prototype,"data",void 0);_.x([_.O2("#header"),_.E("design:type",HTMLElement)],Xx.prototype,"header",void 0);
_.x([_.g(),_.E("design:type",Object)],Xx.prototype,"scriptsAppended",void 0);_.x([_.g(),_.E("design:type",Object)],Xx.prototype,"buttonOverrides",void 0);_.x([_.T4("data"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],Xx.prototype,"onDataChanged",null);_.x([_.Vd("yt-popup-closed"),_.E("design:type",Function),_.E("design:paramtypes",[CustomEvent]),_.E("design:returntype")],Xx.prototype,"onPopupClosed",null);
Xx=_.x([_.f({disableElementRegistration:!0,is:"ytd-sponsorships-celebration-renderer"})],Xx);
_.C(Xx,"ytd-sponsorships-celebration-renderer",function(){if(VHJ!==void 0)return VHJ;var S=document.createElement("template");_.h(S,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sponsorships-celebration-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-sponsorships-celebration-renderer">\n  <div id="avatar-container" class="style-scope ytd-sponsorships-celebration-renderer">\n    <yt-img-shadow class="avatar style-scope ytd-sponsorships-celebration-renderer" fit="true" thumbnail="[[data.header.sponsorshipsHeaderRenderer.channelImage]]">\n    </yt-img-shadow>\n  </div>\n  <div class="title-container style-scope ytd-sponsorships-celebration-renderer">\n    <yt-formatted-string class="title style-scope ytd-sponsorships-celebration-renderer" text="[[data.header.sponsorshipsHeaderRenderer.title]]">\n    </yt-formatted-string>\n    <yt-formatted-string class="subtitle style-scope ytd-sponsorships-celebration-renderer" text="[[data.header.sponsorshipsHeaderRenderer.subtitle]]">\n    </yt-formatted-string>\n  </div>\n</div>\n<ytd-sponsorships-celebration-content data="[[data]]" class="style-scope ytd-sponsorships-celebration-renderer"></ytd-sponsorships-celebration-content>\n<div id="top-bar" class="style-scope ytd-sponsorships-celebration-renderer">\n  <div id="dismiss-button" class="style-scope ytd-sponsorships-celebration-renderer"></div>\n</div>\n<div id="button-bar" class="style-scope ytd-sponsorships-celebration-renderer">\n  <div id="secondary-button" class="style-scope ytd-sponsorships-celebration-renderer"></div>\n  <div id="primary-button" class="style-scope ytd-sponsorships-celebration-renderer"></div>\n</div>\n');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);return VHJ=S},{mode:1});var WQs;var P6=function(){var S=_.w.apply(this,arguments)||this;S.isToggleChecked=!1;return S};
_.r(P6,_.w);P6.prototype.onDataChanged=function(){var S;this.isToggleChecked=((S=this.data)==null?void 0:S.initialOptInStatus)==="SPONSORSHIPS_GIFTING_OPT_IN_STATUS_ENABLED"};
P6.prototype.close=function(){var S;((S=this.data)==null?0:S.closeCommand)&&this.ytComponentBehavior.resolveCommand(this.data.closeCommand)};
P6.prototype.handleOptInToggle=function(){this.isToggleChecked=!this.isToggleChecked;var S,p=_.b((S=this.data)==null?void 0:S.switchButton,qbT);p&&(this.isToggleChecked&&p.switchOnInnertubeCommand&&this.ytComponentBehavior.resolveCommand(p.switchOnInnertubeCommand),!this.isToggleChecked&&p.switchOffInnertubeCommand&&this.ytComponentBehavior.resolveCommand(p.switchOffInnertubeCommand))};
P6.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
P6.prototype.onDataChanged=P6.prototype.onDataChanged;_.x([_.F(_.eL.YtComponentBehavior),_.E("design:type",Object)],P6.prototype,"ytComponentBehavior",void 0);_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],P6.prototype,"ytRendererBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],P6.prototype,"data",void 0);_.x([_.g(),_.E("design:type",Object)],P6.prototype,"isToggleChecked",void 0);_.x([_.g({value:_.Oh("CLOSE")}),_.E("design:type",String)],P6.prototype,"closeButtonAriaLabel",void 0);
_.x([_.T4("data"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],P6.prototype,"onDataChanged",null);P6=_.x([_.f({disableElementRegistration:!0,is:"ytd-sponsorships-gifting-opt-in-renderer"})],P6);
_.C(P6,"ytd-sponsorships-gifting-opt-in-renderer",function(){if(WQs!==void 0)return WQs;var S=document.createElement("template");_.h(S,'\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');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);return WQs=S},{mode:1});var OtY;var ZJ=function(){return _.w.apply(this,arguments)||this};
_.r(ZJ,_.w);_.M=ZJ.prototype;_.M.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"}}}}};
_.M.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.M.detached=function(){this.playerElement.stop()};
_.M.onYtServiceRequestCompleted=function(){_.St(this.hostElement,"yt-close-popup-action",["ytd-sponsorships-offer-renderer"])};
_.M.onYtServiceRequestError=function(S){_.An(this.hostElement,S.detail.error.message)};
_.M.onYtPopupOpened=function(){this.scrollable&&(this.scrollable.scrollTarget.scrollTop=0)};
_.M.onYtPopupClosed=function(){this.playerElement.stop();this.backgroundPlayerElement&&this.isBackgroundPlayerAlreadyPlaying&&!this.tierRenderer.purchaseButtonClicked&&this.backgroundPlayerElement.play();this.set("selectedTier",0)};
_.M.getTier=function(S,p){return!S||!S.tiers||p<0?null:_.b(S.tiers[p],SSn)};
_.M.moreThanOne=function(S){return!!(S&&S.length>1)};
_.M.tierOverviewTap=function(S){var p=this;this.selectedTier=S.model.index;_.oH(this,function(){_.cv(p.hostElement,"yt-refit")})};
_.M.computeSelectedClass=function(S,p){return this.isSelected(S,p)?"selected":""};
_.M.computeButtonAriaPressed=function(S,p){return this.isSelected(S,p)?"true":"false"};
_.M.isSelected=function(S,p){return S===p};
_.M.onDataChanged=function(){_.tB(this.hostElement).querySelector("#header-overlay").style.visibility="";_.tB(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 S=_.d(this.hostElement.querySelectorAll("yt-img-shadow")),
p=S.next();!p.done;p=S.next())p.value.onShow();var U;this.set("selectedTier",(U=this.get("data.targetTierIndex"))!=null?U:0);var Y;(S=(Y=this.data)==null?void 0:Y.onVisible)&&this.ytComponentBehavior.resolveCommand(S)};
_.M.initializeVe=function(S){var p=_.X$(),U=_.F$(),Y=this.get("data.trackingParams");U&&p&&(this.screenLayer=4,p=_.lb(_.HDE)(void 0,69877,{clientScreenNonce:p,visualElement:U},void 0,void 0,void 0),_.ZL(p,69877,4),U=_.F$(4),Y&&U&&(Y=_.JS(Y),_.wB(p,U,Y),S&&(this.offerVideoVe=_.bZ(74659),_.wB(p,Y,this.offerVideoVe))))};
_.M.setHeaderBackground=function(){var S=this.get("data.header.sponsorshipsHeaderRenderer.backgroundColor");_.tB(this.hostElement).querySelector("#background-image-layer").style.backgroundColor=_.ev(S);if(S=this.getHeaderImage())S=_.AS(S,screen.width),_.tB(this.hostElement).querySelector("#background-image-layer").style.backgroundImage="url("+S+")"};
_.M.getHeaderImage=function(){var S=this.get("data.header.sponsorshipsHeaderRenderer.backgroundImageDarkMode.thumbnails");return this.isAppDarkTheme()&&S?S:this.get("data.header.sponsorshipsHeaderRenderer.backgroundImage.thumbnails")};
_.M.isAppDarkTheme=function(){return document.documentElement.hasAttribute("dark")};
_.M.setupVideoPlayer=function(S){var p=this,U,Y,L,I;return _.T(function(V){if(V.nextAddress==1)return U=p.get("data.header.sponsorshipsHeaderRenderer.inlineVideo.sponsorshipsOfferVideoRenderer.autoplay"),Y=p.get("data.header.sponsorshipsHeaderRenderer.inlineVideo.sponsorshipsOfferVideoRenderer.playerWatchEndpointParams"),_.y("kevlar_player_update_killswitch")?p.playerElement.update({args:{autoplay:U,video_id:S,player_params:Y}}):p.playerElement.loadVideoWithPlayerVars({autoplay:U,video_id:S,player_params:Y}),
_.k(V,p.playerElement.getPlayerPromise(),2);L=V.yieldResult;L.addEventListener("onStateChange",function(W){p.onPlayerStateChange(W)});
L.setScreenLayer(p.screenLayer);(I=_.X$(4))&&p.offerVideoVe&&_.a2(I,p.offerVideoVe);U&&(p.pauseOtherPlayers(),p.playerElement.focusOnPlayer(),p.playerElement.getPlayer().hideControls(),_.bQ(_.PA,function(){p.fadeOutHeaderOverlay()},4E3));
_.OV(V)})};
_.M.onPlayerStateChange=function(S){S===1?this.backgroundPlayerElement&&(S=this.backgroundPlayerElement.player_.getPlayerState(),S!==1&&S!==3||this.backgroundPlayerElement.pause()):S===0&&(_.tB(this.hostElement).querySelector("#header-overlay").style.visibility="",this.playerElement.getPlayer().hideControls(),_.tB(this.hostElement).querySelector("#header-overlay").classList.remove("header-overlay-transition"))};
_.M.fadeOutHeaderOverlay=function(){_.tB(this.hostElement).querySelector("#header-overlay").classList.add("header-overlay-transition");this.playerElement.getPlayer().showControls()};
_.M.onHeaderTap=function(){if(this.offerVideo){_.tB(this.hostElement).querySelector("#header-overlay").style.visibility="hidden";this.pauseOtherPlayers();var S;((S=this.playerElement.player_)==null?void 0:S.getPlayerState())===1?this.playerElement.pause():this.playerElement.play();(S=_.X$(4))&&this.offerVideoVe&&_.xd(S,this.offerVideoVe)}};
_.M.getBackgroundImageLayerClass=function(S){return S?"background-image-layer-with-video":""};
_.M.getHeaderClass=function(S){return S?"header-with-video":""};
_.M.getHeaderOverlayClass=function(S){return S?"header-overlay-with-video":""};
_.M.getTitleContainerClass=function(S,p){return S?"title-container-with-video":p?"title-container-without-video-flexible":"title-container-without-video"};
_.M.tierTitleDisplayStatus=function(S){return this.moreThanOne(S)?"hide":"show"};
_.M.pauseOtherPlayers=function(){this.isMiniplayerActive()?this.backgroundPlayerElement=_.tW().resolve(_.eC).getPlayerElement():this.backgroundPlayerElement=_.$L();if(this.backgroundPlayerElement&&this.backgroundPlayerElement.player_){var S=this.backgroundPlayerElement.player_.getPlayerState();this.isBackgroundPlayerAlreadyPlaying=S===1||S===3;this.backgroundPlayerElement.pause()}};
_.M.isMiniplayerActive=function(){return _.tW().resolve(_.eC).isMiniplayerActive()};
_.M.selectedTierChangedForBinding=function(){this.hostElement.dispatchEvent(new _.uz("selected-tier-changed",this.selectedTier))};
ZJ.prototype.selectedTierChangedForBinding=ZJ.prototype.selectedTierChangedForBinding;ZJ.prototype.onDataChanged=ZJ.prototype.onDataChanged;ZJ.prototype.onYtPopupClosed=ZJ.prototype.onYtPopupClosed;ZJ.prototype.onYtPopupOpened=ZJ.prototype.onYtPopupOpened;ZJ.prototype.onYtServiceRequestError=ZJ.prototype.onYtServiceRequestError;ZJ.prototype.onYtServiceRequestCompleted=ZJ.prototype.onYtServiceRequestCompleted;
_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],ZJ.prototype,"ytRendererBehavior",void 0);_.x([_.F(_.eL.YtComponentBehavior),_.E("design:type",Object)],ZJ.prototype,"ytComponentBehavior",void 0);_.x([_.F(_.qH.YtRendererstamperBehavior),_.E("design:type",Object)],ZJ.prototype,"ytRendererstamperBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],ZJ.prototype,"data",void 0);_.x([_.g({value:0}),_.E("design:type",Number)],ZJ.prototype,"selectedTier",void 0);
_.x([_.g({value:""}),_.E("design:type",String)],ZJ.prototype,"offerVideo",void 0);_.x([_.g({value:!1}),_.E("design:type",Boolean)],ZJ.prototype,"isBackgroundPlayerAlreadyPlaying",void 0);_.x([_.g({value:function(){return"ytd-sponsorships-offer-with-video-renderer-"+_.Ul(this)}}),
_.E("design:type",String)],ZJ.prototype,"playerId",void 0);_.x([_.O2("tp-yt-paper-dialog-scrollable"),_.E("design:type",Object)],ZJ.prototype,"scrollable",void 0);_.x([_.O2("ytd-sponsorships-tier-renderer"),_.E("design:type",Object)],ZJ.prototype,"tierRenderer",void 0);_.x([_.O2("#player"),_.E("design:type",Object)],ZJ.prototype,"playerElement",void 0);
_.x([_.Vd("yt-service-request-completed"),_.E("design:type",Function),_.E("design:paramtypes",[CustomEvent]),_.E("design:returntype")],ZJ.prototype,"onYtServiceRequestCompleted",null);_.x([_.Vd("yt-service-request-error"),_.E("design:type",Function),_.E("design:paramtypes",[CustomEvent]),_.E("design:returntype")],ZJ.prototype,"onYtServiceRequestError",null);
_.x([_.Vd("yt-popup-opened"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],ZJ.prototype,"onYtPopupOpened",null);_.x([_.Vd("yt-popup-closed"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],ZJ.prototype,"onYtPopupClosed",null);_.x([_.z4("data"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],ZJ.prototype,"onDataChanged",null);
_.x([_.T4("selectedTier"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],ZJ.prototype,"selectedTierChangedForBinding",null);ZJ=_.x([_.f({disableElementRegistration:!0,is:"ytd-sponsorships-offer-renderer"})],ZJ);
_.C(ZJ,"ytd-sponsorships-offer-renderer",function(){if(OtY!==void 0)return OtY;var S=document.createElement("template");_.h(S,'\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');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);return OtY=S},{mode:_.UW("kevlar_poly_si_batch_j077")?1:2});var kQt;var sm=function(){var S=_.w.apply(this,arguments)||this;S.buttonOverrides={type:"filled",style:"mono"};return S};
_.r(sm,_.w);sm.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}}}}}};
sm.prototype.backgroundColorChanged=function(){var S,p,U,Y=(p=_.b((S=this.data)==null?void 0:S.content,p$X))==null?void 0:(U=p.backgroundColor)==null?void 0:U.backgroundColor;Y&&(S=_.s1(Y),_.tB(this.hostElement).querySelector("#banner").style.backgroundColor=S,_.tB(this.hostElement).querySelector("#abstract-art").style.backgroundColor=S)};
sm.prototype.attached=function(){this.JSC$18391_scroller&&(this.JSC$18391_scroller.dialogElement=this.hostElement.parentNode,this.JSC$18391_scroller.attached&&typeof this.JSC$18391_scroller.attached==="function"&&this.JSC$18391_scroller.attached());this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
sm.prototype.backgroundColorChanged=sm.prototype.backgroundColorChanged;_.x([_.g(),_.E("design:type",Object)],sm.prototype,"data",void 0);_.x([_.F(_.qH.YtRendererstamperBehavior),_.E("design:type",Object)],sm.prototype,"ytRendererstamperBehavior",void 0);_.x([_.O2("#scroller"),_.E("design:type",Object)],sm.prototype,"JSC$18391_scroller",void 0);_.x([_.g(),_.E("design:type",Object)],sm.prototype,"buttonOverrides",void 0);
_.x([_.T4("data.content.sponsorshipsPromotionChannelRenderer.backgroundColor"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],sm.prototype,"backgroundColorChanged",null);sm=_.x([_.f({disableElementRegistration:!0,is:"ytd-sponsorships-promotion-celebration-renderer"})],sm);
_.C(sm,"ytd-sponsorships-promotion-celebration-renderer",function(){if(kQt!==void 0)return kQt;var S=document.createElement("template");_.h(S,'\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');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);return kQt=S},{mode:_.UW("kevlar_poly_si_batch_j077")?1:2});var HtX;var Dfo;var eU=function(){return _.w.apply(this,arguments)||this};
_.r(eU,_.w);eU.prototype.getValue=function(){return this.checkbox.checked?this.data.params:void 0};
eU.prototype.computeIsInitiallyChecked=function(S){return S===1};
_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],eU.prototype,"ytRendererBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],eU.prototype,"data",void 0);_.x([_.O2("#checkbox"),_.E("design:type",Object)],eU.prototype,"checkbox",void 0);eU=_.x([_.f({disableElementRegistration:!0,is:"ytd-subscription-toggle-option-renderer"})],eU);
_.C(eU,"ytd-subscription-toggle-option-renderer",function(){if(Dfo!==void 0)return Dfo;var S=document.createElement("template");_.h(S,'\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');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);return Dfo=S},{mode:1});var gG=function(){var S=_.w.apply(this,arguments)||this;S.darkerDarkTheme=_.y("web_darker_dark_theme");S.actionMap={"yt-signal-action-submit-notification-options-form":"handleSignalActionSubmitNotificationOptionsForm"};return S};
_.r(gG,_.w);gG.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"}}}};
gG.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
gG.prototype.handleSignalActionSubmitNotificationOptionsForm=function(){var S=_.tB(this.hostElement).querySelector("#options").selected;S=this.data.options[S].subscriptionRadioOptionRenderer.serviceEndpoint;var p=_.tB(this.hostElement).querySelector("ytd-subscription-toggle-option-renderer");p&&S&&S.modifyChannelNotificationPreferenceEndpoint&&(p=p.getValue())&&(S.modifyChannelNotificationPreferenceEndpoint.secondaryParams=[p]);_.tW().resolve(_.cQ).resolveCommand(S,{form:{element:this.hostElement}});
_.St(this.hostElement,"yt-close-popup-action")};
_.$u.Object.defineProperties(gG.prototype,{initialIndex:{configurable:!0,enumerable:!0,get:function(){if(!this.data||!this.data.options)return null;for(var S=this.data.options,p=0;p<S.length;p++){var U=S[p].subscriptionRadioOptionRenderer;if(U&&U.selected)return p}return null}}});
_.x([_.F(_.qH.YtRendererstamperBehavior),_.E("design:type",Object)],gG.prototype,"ytRendererstamperBehavior",void 0);_.x([_.F(_.Aj.YtActionHandlerBehavior),_.E("design:type",Object)],gG.prototype,"ytActionHandlerBehavior",void 0);_.x([_.F(_.kP.YtEventForwardingBehavior),_.E("design:type",Object)],gG.prototype,"eventForwardingBehavior",void 0);_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],gG.prototype,"ytRendererBehavior",void 0);
_.x([_.g(),_.E("design:type",Object)],gG.prototype,"data",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],gG.prototype,"darkerDarkTheme",void 0);_.x([_.e("data.options"),_.E("design:type",Object),_.E("design:paramtypes",[])],gG.prototype,"initialIndex",null);gG=_.x([_.f({disableElementRegistration:!0,is:"ytd-subscription-notification-options-renderer"})],gG);
_.C(gG,"ytd-subscription-notification-options-renderer",function(){if(HtX!==void 0)return HtX;var S=document.createElement("template");_.h(S,'\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');
S.content.insertBefore(_.t().content.cloneNode(!0),S.content.firstChild);return HtX=S},{mode:1});var zbi;var u0=function(){return _.w.apply(this,arguments)||this};
_.r(u0,_.w);_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],u0.prototype,"ytRendererBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],u0.prototype,"data",void 0);u0=_.x([_.f({disableElementRegistration:!0,is:"ytd-tvfilm-offer-groups-renderer"})],u0);
_.C(u0,"ytd-tvfilm-offer-groups-renderer",function(){if(zbi!==void 0)return zbi;var S=document.createElement("template");_.h(S,'\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');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);return zbi=S},{mode:1});var QmA;var wG=function(){var S=_.w.apply(this,arguments)||this;S.darkerDarkTheme=_.y("web_darker_dark_theme");return S};
_.r(wG,_.w);_.M=wG.prototype;_.M.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"}}}};
_.M.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.hostElement.hasAttribute("aria-label")||this.hostElement.setAttribute("aria-label","Offers")};
_.M.computeThumbnailClass=function(S){return S.thumbnailOverlays?S.isShow?"thumbnail-show":"thumbnail-movie":S.isShow?"thumbnail-no-overlay-show":"thumbnail-no-overlay-movie"};
_.M.computeCommerceSectionClass=function(S){return S.offers&&S.offers.tvfilmOffersRenderer?"commerce-section-groups":"commerce-section-tabs"};
_.M.computeTitleClass=function(S){return S.offers&&S.offers.tvfilmOffersRenderer?"title-with-offer-groups":""};
_.M.onDataChanged=function(){[].concat(_.jo(this.hostElement.querySelectorAll("yt-img-shadow"))).forEach(function(S){S.onShow()})};
wG.prototype.onDataChanged=wG.prototype.onDataChanged;_.x([_.F(_.qH.YtRendererstamperBehavior),_.E("design:type",Object)],wG.prototype,"ytRendererstamperBehavior",void 0);_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],wG.prototype,"ytRendererBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],wG.prototype,"data",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],wG.prototype,"darkerDarkTheme",void 0);
_.x([_.T4("data"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],wG.prototype,"onDataChanged",null);wG=_.x([_.f({disableElementRegistration:!0,is:"ytd-ypc-offers-overlay-renderer"})],wG);
_.C(wG,"ytd-ypc-offers-overlay-renderer",function(){if(QmA!==void 0)return QmA;var S=document.createElement("template");_.h(S,'\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');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);return QmA=S},{mode:_.UW("kevlar_poly_si_batch_j028")?1:2});var nPX;var JQs=function(){this.usedMethods=new Set};
JQs.prototype.add=function(S){this.usedMethods.add(S)};
JQs.prototype.reset=function(){this.usedMethods.clear()};var bto=function(S,p){this.query=S;this.previousSearchQuery=p;this.id=yQs++;if(!KQ5){p=_.g7("SBOX_SETTINGS");S="https://"+((p==null?void 0:p.SEARCHBOX_HOST_OVERRIDE)||"suggestqueries-clients6.youtube.com")+"/complete/search?ds=yt";var U=p==null?void 0:p.REQUEST_LANGUAGE;U&&(S+="&hl="+U);(U=p==null?void 0:p.REQUEST_DOMAIN)&&(S+="&gl="+U);S+="&client=youtube&gs_ri=youtube";(U=p==null?void 0:p.SUGG_EXP_ID)&&(S+="&sugexp="+encodeURIComponent(U));(U=p==null?void 0:p.PSUGGEST_TOKEN)&&(S+="&tok="+U);(p=
p==null?void 0:p.SESSION_INDEX)&&(S+="&authuser="+p);_.y("desktop_enable_visual_suggest")&&(S+="&h=180&w=320&ytvs=1");KQ5=S}},jmn=function(S){var p="q="+encodeURIComponent(S.query);
S.previousSearchQuery&&(p+="&pq="+encodeURIComponent(S.previousSearchQuery));return p},rQX=function(){var S=_.g7("SBOX_SETTINGS"),p={};
if(S==null?0:S.SEND_VISITOR_DATA)p["X-Goog-Visitor-Id"]=S==null?void 0:S.VISITOR_DATA;return p},GQq=function(S){var p=KQ5;
p+="&gs_id="+S.id.toString(36);p+="&q="+encodeURIComponent(S.query);p+="&cp="+S.query.length;S.previousSearchQuery&&(p+="&pq="+encodeURIComponent(S.previousSearchQuery));(S=window.URLSearchParams?(new URLSearchParams(window.location.search)).get("v"):null)&&(p+="&video_id="+S);return p},yQs=0,KQ5="";var hbL=_.oc.SEARCH_ENTITY_SUGGESTION_ALBUM_NO_ARTIST,RbJ=_.oc.SEARCH_ENTITY_SUGGESTION_MOVIE,FQq=_.oc.SEARCH_ENTITY_SUGGESTION_SONG_NO_ARTIST,Xho=_.oc.SEARCH_ENTITY_SUGGESTION_TV_SHOW,PS5=function(S,p){this.text=S;this.bold=p},ZtP=function(S,p,U){this.input=p;
this.index=U;this.text="";this.suggestionSources={COMPLETE_SERVER:1};this.text=S[0];this.type=S[1];this.subtypes=S[2];var Y;this.displayText=c2((Y=S[3])==null?void 0:Y.b);var L;this.ignoredPrefix=c2((L=S[3])==null?void 0:L.a);var I,V;this.hasNewVideo=((I=S[3])==null?void 0:(V=I.zam)==null?void 0:V.toString())==="true"?!0:!1;var W;this.visualSuggestUrl=(W=S[3])==null?void 0:W.zai;var O;this.entityType=c2((O=S[3])==null?void 0:O.zap);var D;this.entityName=c2((D=S[3])==null?void 0:D.zao);var z;p=c2((z=
S[3])==null?void 0:z.zaf);var Q;this.entityMid=(Q=S[3])==null?void 0:Q.zae;z=hUY(this.subtypes,this.entityMid);if(p&&z){if(p){Q="";switch(z){case "YOUTUBE_ENTITY_TYPE_SONG":Q=FQq;break;case "YOUTUBE_ENTITY_TYPE_ALBUM":Q=hbL;break;case "YOUTUBE_ENTITY_TYPE_TV_SHOW":Q=Xho;break;case "YOUTUBE_ENTITY_TYPE_MOVIE":Q=RbJ}z=z==="YOUTUBE_ENTITY_TYPE_SONG"||z==="YOUTUBE_ENTITY_TYPE_ALBUM"?Q+" \u2022  \u2022 "+p:p}else z="";this.entitySubtitle=z}var J;this.externalChannelId=(J=S[3])==null?void 0:J.zav;var K;
this.entityThumbnailAttributionUrl=(K=S[3])==null?void 0:K.zaq},smJ=function(S){var p=[],U,Y=(U=S.displayText)!=null?U:S.text;
if(S.type===33)return p.push(new PS5(Y,!1)),p;if(Y.length>=S.input.length&&Y.substring(0,S.input.length)===S.input)p.push(new PS5(S.input,!1)),p.push(new PS5(Y.substring(S.input.length),!0));else{var L=new Set(S.input.split(/\s/)),I=Y.split(/\s/);p=I.map(function(V,W){return new PS5(V.trim()+(W===I.length-1?"":" "),!L.has(V))})}return p};var ebi=function(S){this.rawResponse=["",[],{}];this.suggestions=[];try{var p=JSON.parse(RUd(S));if(typeof p==="object"&&p!==null)this.rawResponse=p;else{console.log("Suggest: Unexpected type from JSON.parse!");return}}catch(Y){console.log("Suggest: Failed to parse SuggestResponse!");return}var U=this.rawResponse[0];this.suggestions=this.rawResponse[1].map(function(Y,L){return new ZtP(Y,U,L)})};var gPJ=function(){this.sessionNumber=this.startTime=-1;this.outOfSyncResponseCount=0;this.zeroPrefixSuggestionCount=-1;this.availableSuggestions=[];this.previousSuggestions={};this.selectedSuggestionIndex=-1;this.inputMethodsTracker=new JQs;this.zeroPrefixRoundTripTime=this.maxRoundTripTime=this.JSC$18427_totalRoundTripTime=0;this.roundTripTimeHistogram=Array.from({length:10}).fill(0);this.lastEditTime=this.firstEditTime=this.lastQueryBuildTime=-1;this.experimentTriggeredBeforeFinal=this.experimentTriggeredFinal=
!1},uAE,whX=function(){uAE||(uAE=new gPJ);
return uAE};
gPJ.prototype.updateSuggestions=function(S){var p=this;this.availableSuggestions.forEach(function(U){p.previousSuggestions[U]=!0});
this.availableSuggestions=S.map(function(U){var Y=U.type.toString();U.subtypes.length>0&&(Y+="i"+U.subtypes.join("i"),Y+="k"+U.suggestionSources.COMPLETE_SERVER.toString());return Y})};
var lbo=function(S,p){var U=Date.now();S.firstEditTime<0&&(S.firstEditTime=U);p&&(S.lastQueryBuildTime=U);S.lastEditTime=U};
gPJ.prototype.reset=function(){this.startTime=Date.now();++this.sessionNumber;this.inputMethodsTracker.reset();this.selectedSuggestionIndex=-1;this.maxRoundTripTime=this.JSC$18427_totalRoundTripTime=this.outOfSyncResponseCount=0;this.roundTripTimeHistogram.fill(0);this.zeroPrefixSuggestionCount=this.lastQueryBuildTime=this.lastEditTime=this.firstEditTime=-1};
var abo=function(S){var p="";S.availableSuggestions.forEach(function(L){delete S.previousSuggestions[L]});
for(var U=_.d(Object.keys(S.previousSuggestions)),Y=U.next();!Y.done;Y=U.next())Y=Y.value,S.previousSuggestions[Y]&&(p+=(p?"j":"")+Y);return p},fbt=function(S,p){var U=[];
p&&(U[1]=p.toString());U[0]="youtube";U[7]=Date.now()-S.startTime;U[6]=S.sessionNumber;S.zeroPrefixSuggestionCount>=0&&(U[33]=S.zeroPrefixSuggestionCount);U[13]=S.outOfSyncResponseCount;if(S.availableSuggestions.length>0){for(var Y=p="",L=0,I=_.d(S.availableSuggestions),V=I.next();!V.done;V=I.next())V=V.value,V!==Y&&(L>1&&(p+="l"+L),p+=(Y?"j":"")+V,L=0,Y=V),L+=1;L>1&&(p+="l"+L);U[3]=p}U[35]=abo(S);S.selectedSuggestionIndex>=0&&(U[2]=S.selectedSuggestionIndex);var W;if(p=(W=_.g7("SBOX_SETTINGS"))==
null?void 0:W.SUGG_EXP_ID)U[19]=S.normalize(p),W=0,S.experimentTriggeredBeforeFinal&&(W|=1),S.experimentTriggeredFinal&&(W|=2),U[20]=W;U[26]=Array.from(S.inputMethodsTracker.usedMethods).join("j");if(S.JSC$18427_totalRoundTripTime>0){U[15]=S.JSC$18427_totalRoundTripTime;U[14]=S.maxRoundTripTime;W=[];for(L=p=0;L<10;L++)Y=S.roundTripTimeHistogram[L],Y===0?p++:(p>1?W.push(L+"-"+Y):p===1?W.push("0j"+Y):W.push(Y.toString()),p=0);W=W.join("j");U[16]=W}S.zeroPrefixRoundTripTime>0&&(U[36]=S.zeroPrefixRoundTripTime);
S.lastQueryBuildTime>0&&(U[18]=S.lastQueryBuildTime-S.startTime);S.firstEditTime>0&&(U[4]=S.firstEditTime-S.startTime);S.lastEditTime>0&&(U[5]=S.lastEditTime-S.startTime);return U.join(".")};
gPJ.prototype.normalize=function(S){return S.replaceAll(".","-")};
var CSL=[0,1,2,3,4,5,5,6,6,6,7,7,7,7,7,8,8,8,8,8];var l0=function(){var S=_.w.apply(this,arguments)||this;S.microphoneSpinnerActive=!1;S.noAnimations=!1;S.boundExitClick=function(){S.onExitButtonClick()};
S.speechOverlayClassName="";S.isLevelAnimating=!1;S.playCloseDialogAudioFeedback=!0;S.actionMap={"yt-speech-query-complete-action":"handleSpeechQueryCompleteAction"};return S};
_.r(l0,_.w);_.M=l0.prototype;_.M.configureRendererStamper=function(){return{"data.exitButton":{id:"exit-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[boundExitClick]]"}}}}}};
_.M.attached=function(){this.hostElement.setAttribute("dialog","true");this.manager=h_J()};
_.M.dataChanged=function(){this.logDialog()};
_.M.onPopupClosed=function(){if(this.manager){this.manager.reset();if(!this.playCloseDialogAudioFeedback){var S;(S=this.manager.audioPlayer)!=null&&(S.JSC$17717_audioEnabled=!1)}this.manager.stop();(S=this.manager.audioPlayer)!=null&&(S.JSC$17717_audioEnabled=!0);this.playCloseDialogAudioFeedback=!0}};
_.M.handleSpeechQueryCompleteAction=function(S){var p=S.navigationAction;p&&(S.trackingParams&&_.HX().graftServerVe(S.trackingParams,this.dialogVe,5),_.cv(this.hostElement,"yt-navigate",{endpoint:p,tempData:this.getNavigationParams(p),createScreenConfig:{parentLayer:5}}),this.playCloseDialogAudioFeedback=!1,this.closeDialog())};
_.M.onExitButtonClick=function(){this.closeDialog()};
_.M.onMicrophoneTap=function(){if(this.state==="listening"||this.state==="transcribing"){var S;if((S=this.manager)!=null){var p;(p=S.audioPlayer)==null||ly(p,"failure");S.setState("microphone-off");S.stop()}}else(S=this.manager)==null||S.start()};
_.M.transcriptionChanged=function(){var S,p;(((S=this.transcription)==null?0:S.low)||((p=this.transcription)==null?0:p.high))&&this.setState("transcribing",this.transcription)};
_.M.stateChanged=function(){this.setState(this.state,this.transcription)};
_.M.logDialog=function(){var S;(S=this.data)!=null&&S.trackingParams&&(S=_.HX(),_.S8(S,22678,void 0,{layer:5,parentLayer:0}),this.dialogVe=S.graftServerVe(this.data.trackingParams,void 0,5))};
_.M.getNavigationParams=function(S){var p={};if(_.y("web_yt_searchbox")){var U=whX();U.inputMethodsTracker.add(6);U=fbt(U,15);p.gs_l=U;var Y;p.oq=((Y=_.b(S,_.HB))==null?void 0:Y.query)||""}else if(S=window.ytvoicesearchloggingparams){if(S=S())p.oq=S.oq,p.gs_l=S.gs_l}else _.fU(Error("kl"));return p};
_.M.closeDialog=function(){_.St(this.hostElement,"yt-close-popup-action",["ytd-voice-search-dialog-renderer"])};
_.M.setState=function(S,p){if(this.data){var U=this.data,Y={};switch(S){case "listening":Y={headerText:U.placeholderHeader,microphoneState:"listening",microphoneAriaLabel:U.microphoneButtonAriaLabel};break;case "timeout":Y={headerText:U.promptHeader,microphoneState:"try-again",microphoneLabel:U.promptMicrophoneLabel,microphoneAriaLabel:U.promptMicrophoneLabel};break;case "microphone-off":Y={headerText:U.microphoneOffPromptHeader,microphoneState:"try-again",microphoneLabel:U.promptMicrophoneLabel,
microphoneAriaLabel:U.promptMicrophoneLabel};break;case "transcribing":(p==null?0:p.low)||(p==null?0:p.high)?Y={transcriptionLow:p==null?void 0:p.low,transcriptionHigh:p==null?void 0:p.high,microphoneState:"speaking",microphoneAriaLabel:U.microphoneButtonAriaLabel}:Y={headerText:U.placeholderHeader,microphoneState:"speaking",microphoneAriaLabel:U.microphoneButtonAriaLabel};break;case "processing":Y={headerText:U.loadingHeader,microphoneState:"processing",microphoneAriaLabel:U.microphoneButtonAriaLabel};
break;case "offline":Y={headerText:U.connectionErrorHeader,microphoneState:"try-again",microphoneLabel:U.connectionErrorMicrophoneLabel,microphoneAriaLabel:U.connectionErrorMicrophoneLabel};break;case "permission":Y={headerText:U.permissionsHeader,bodyLine1:U.permissionsSubtext,microphoneState:"try-again",microphoneAriaLabel:U.permissionsSubtext};break;case "permission-denied":Y={headerText:U.disabledHeader,bodyLine1:U.disabledSubtext,microphoneState:"try-again",microphoneAriaLabel:U.disabledSubtext}}Y.className=
S;this.speechOverlayState=Y;this.setClass(this.speechOverlayState.className);this.setMicrophoneState(this.speechOverlayState.microphoneState)}};
_.M.setMicrophoneState=function(S){var p=this.isLevelAnimating;this.isLevelAnimating=S==="speaking";!p&&this.isLevelAnimating&&this.runLevelAnimation();this.microphoneSpinnerActive=S==="processing"&&!this.noAnimations};
_.M.setClass=function(S){this.speechOverlayClassName&&_.U2(this.hostElement,this.speechOverlayClassName,!1);S&&(this.speechOverlayClassName=S,_.U2(this.hostElement,S,!0))};
_.M.runLevelAnimation=function(){var S=this;if(!this.noAnimations&&this.level)if(this.isLevelAnimating){var p=1+Math.random()*.75,U=Math.round(110+Math.random()*10);this.level.style.setProperty("transition","transform "+U/1E3+"s ease-in-out");this.level.style.setProperty("transform","scale("+p+")");_.PA.addJob(function(){S.runLevelAnimation()},3,U)}else this.level.style.removeProperty("opacity"),this.level.style.removeProperty("transition"),this.level.style.removeProperty("transform")};
l0.prototype.stateChanged=l0.prototype.stateChanged;l0.prototype.transcriptionChanged=l0.prototype.transcriptionChanged;l0.prototype.onPopupClosed=l0.prototype.onPopupClosed;l0.prototype.dataChanged=l0.prototype.dataChanged;_.x([_.F(_.Aj.YtActionHandlerBehavior),_.E("design:type",Object)],l0.prototype,"ytActionHandlerBehavior",void 0);_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],l0.prototype,"ytRendererBehavior",void 0);
_.x([_.F(_.qH.YtRendererstamperBehavior),_.E("design:type",Object)],l0.prototype,"rendererStamperBehavior",void 0);_.x([_.F(_.Xh),_.E("design:type",Object)],l0.prototype,"ytdReduxBehavior",void 0);_.x([_.F(_.kP.YtEventForwardingBehavior),_.E("design:type",Object)],l0.prototype,"eventForwardingBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],l0.prototype,"data",void 0);_.x([_.g(),_.E("design:type",Object)],l0.prototype,"speechOverlayState",void 0);
_.x([_.g(),_.E("design:type",Object)],l0.prototype,"microphoneSpinnerActive",void 0);_.x([_.g({type:_.y("kevlar_property_type_migration_killswitch")?Boolean:void 0,reflectToAttribute:!0}),_.E("design:type",Object)],l0.prototype,"noAnimations",void 0);_.x([_.g({selector:function(S){var p;return(p=S.voiceSearch)==null?void 0:p.transcription}}),
_.E("design:type",Object)],l0.prototype,"transcription",void 0);_.x([_.g({selector:function(S){var p;return(p=S.voiceSearch)==null?void 0:p.overlay}}),
_.E("design:type",String)],l0.prototype,"state",void 0);_.x([_.g(),_.E("design:type",Object)],l0.prototype,"boundExitClick",void 0);_.x([_.O2("#microphone-levels"),_.E("design:type",HTMLElement)],l0.prototype,"level",void 0);_.x([_.T4("data"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],l0.prototype,"dataChanged",null);_.x([_.Vd("yt-popup-closed"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],l0.prototype,"onPopupClosed",null);
_.x([_.z4("transcription"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],l0.prototype,"transcriptionChanged",null);_.x([_.z4("state"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],l0.prototype,"stateChanged",null);l0=_.x([_.f({disableElementRegistration:!0,is:"ytd-voice-search-dialog-renderer"})],l0);
_.C(l0,"ytd-voice-search-dialog-renderer",function(){if(nPX!==void 0)return nPX;var S=document.createElement("template");_.h(S,'\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');
S.content.insertBefore(_.t().content.cloneNode(!0),S.content.firstChild);return nPX=S},{mode:1});var xfo;var aC=function(){var S=_.w.apply(this,arguments)||this;S.isOverlay=!1;S.hidden=!1;return S};
_.r(aC,_.w);_.M=aC.prototype;_.M.onPopupClosed=function(){this.toggleIconState(!1)};
_.M.computeIcon=function(){var S,p,U;return(p=_.b((S=this.data)==null?void 0:S.icon,IEA))==null?void 0:(U=p.icon)==null?void 0:U.iconType};
_.M.computeIconBadgeShape=function(){var S;return{iconBadgeType:"cart",iconBadgeText:(S=this.iconBadgeEntity)==null?void 0:S.badgeText,iconBadgeStyle:this.isOverlay?"overlay":"mono"}};
_.M.onClick=function(){var S;(S=this.data)!=null&&S.onClick&&(this.toggleIconState(!0),this.ytComponentBehavior.resolveCommand(this.data.onClick))};
_.M.computeHidden=function(S){return!S};
_.M.toggleIconState=function(S){this.iconButton&&(this.iconButton.pressed=S)};
aC.prototype.onPopupClosed=aC.prototype.onPopupClosed;_.x([_.F(_.Xh),_.E("design:type",Object)],aC.prototype,"ytdReduxBehavior",void 0);_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],aC.prototype,"ytRendererBehavior",void 0);_.x([_.F(_.eL.YtComponentBehavior),_.E("design:type",Object)],aC.prototype,"ytComponentBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],aC.prototype,"data",void 0);_.x([_.g(),_.E("design:type",Object)],aC.prototype,"isOverlay",void 0);
_.x([_.g({computed:"computeHidden(iconBadgeEntity.isVisible)",reflectToAttribute:!0}),_.E("design:type",Object)],aC.prototype,"hidden",void 0);_.x([_.g({selectorArgs:["data.iconBadgeEntityKey"],selector:function(S,p){return _.I4(S.entities,"iconBadgeEntity",p)}}),
_.E("design:type",Object)],aC.prototype,"iconBadgeEntity",void 0);_.x([_.O2("yt-icon-button"),_.E("design:type",HTMLButtonElement)],aC.prototype,"iconButton",void 0);_.x([_.Vd("yt-popup-closed"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],aC.prototype,"onPopupClosed",null);aC=_.x([_.f({disableElementRegistration:!0,is:"ytd-icon-badge-topbar-button-renderer"})],aC);
_.C(aC,"ytd-icon-badge-topbar-button-renderer",function(){if(xfo!==void 0)return xfo;var S=document.createElement("template");_.h(S,'\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');
S.content.insertBefore(_.t().content.cloneNode(!0),S.content.firstChild);return xfo=S},{mode:1});var EPT;var fq=function(){var S=_.w.apply(this,arguments)||this;S.premiumOptions=[];S.darkerDarkTheme=_.y("web_darker_dark_theme");return S};
_.r(fq,_.w);fq.prototype.configureRendererStamper=function(){return{premiumOptions:{id:"premium-options",mapping:{settingsRadioOptionRenderer:{component:"ytd-settings-radio-option-renderer",noInjection:!0}}}}};
_.$u.Object.defineProperties(fq.prototype,{hasPremiumOptions:{configurable:!0,enumerable:!0,get:function(){return!!this.premiumOptions}}});
_.x([_.F(_.qH.YtRendererstamperBehavior),_.E("design:type",Object)],fq.prototype,"ytRendererstamperBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],fq.prototype,"data",void 0);_.x([_.g(),_.E("design:type",Array)],fq.prototype,"premiumOptions",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],fq.prototype,"darkerDarkTheme",void 0);_.x([_.e("premiumOptions"),_.E("design:type",Object),_.E("design:paramtypes",[])],fq.prototype,"hasPremiumOptions",null);
fq=_.x([_.f({disableElementRegistration:!0,is:"ytd-offline-promo-content"})],fq);
_.C(fq,"ytd-offline-promo-content",function(){if(EPT!==void 0)return EPT;var S=document.createElement("template");_.h(S,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-offline-promo-content--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string id="subtitle" text="[[data.subtitle]]" class="style-scope ytd-offline-promo-content"></yt-formatted-string>\n<div id="premium-options" hidden="[[!hasPremiumOptions]]" class="style-scope ytd-offline-promo-content"></div>\n<yt-formatted-string id="description" hidden="[[!hasPremiumOptions]]" text="[[data.description]]" class="style-scope ytd-offline-promo-content"></yt-formatted-string>\n');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);return EPT=S},{mode:1});var mfo;var Cq=function(){var S=_.w.apply(this,arguments)||this;S.premiumOptions=[];return S};
_.r(Cq,_.w);Cq.prototype.dataChanged=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");var S;this.premiumOptions=GIT((S=this.data)==null?void 0:S.formats)};
Cq.prototype.onClickSubmit=function(){_.St(this.hostElement,"yt-close-popup-action",["ytd-offline-promo-renderer"]);var S;(S=_.$L())==null||S.pause()};
Cq.prototype.attached=function(){this.JSC$18447_scroller&&(this.JSC$18447_scroller.dialogElement=this.hostElement.parentNode)};
_.$u.Object.defineProperties(Cq.prototype,{showIcon:{configurable:!0,enumerable:!0,get:function(){return this.headersIcon}}});
Cq.prototype.dataChanged=Cq.prototype.dataChanged;_.x([_.F(_.qH.YtRendererstamperBehavior),_.E("design:type",Object)],Cq.prototype,"ytRendererstamperBehavior",void 0);_.x([_.F(_.eL.YtComponentBehavior),_.E("design:type",Object)],Cq.prototype,"ytComponentBehavior",void 0);_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],Cq.prototype,"ytRendererBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],Cq.prototype,"data",void 0);
_.x([_.g({computed:"computeIcon_(data.headersIcon)",value:""}),_.E("design:type",String)],Cq.prototype,"headersIcon",void 0);_.x([_.g(),_.E("design:type",Array)],Cq.prototype,"premiumOptions",void 0);_.x([_.O2("#scroller"),_.E("design:type",Object)],Cq.prototype,"JSC$18447_scroller",void 0);_.x([_.e("headersIcon"),_.E("design:type",Object),_.E("design:paramtypes",[])],Cq.prototype,"showIcon",null);
_.x([_.z4("data"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],Cq.prototype,"dataChanged",null);Cq=_.x([_.f({disableElementRegistration:!0,is:"ytd-offline-promo-renderer"})],Cq);
_.C(Cq,"ytd-offline-promo-renderer",function(){if(mfo!==void 0)return mfo;var S=document.createElement("template");_.h(S,'\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');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);return mfo=S},{mode:1});var oPL;var xW=function(){var S=_.w.apply(this,arguments)||this;S.playbackPauseInterval=NaN;S.isLoading=!1;S.hasError=!1;S.dialogClass="";S.youtubeLabel=_.Oh("LOGO_ALT_LABEL",{},"YouTube Home");S.logoName="yt-logos-ext:yt-logo-updated";S.actionMap={"yt-save-consent-action":"handleSaveConsent","yt-disable-personalization-action":"handleDisablePersonalization"};return S};
_.r(xW,_.w);_.M=xW.prototype;_.M.onDataChange=function(){var S;if(this.showEOMV1Text=!((S=this.data)==null||!S.eomV1Text))this.dialogClass="eom-v1-dialog"};
_.M.attached=function(){this.pausePlayer()};
_.M.detached=function(){this.playbackPauseInterval&&(window.clearInterval(this.playbackPauseInterval),this.playbackPauseInterval=NaN)};
_.M.handleLangSelect=function(S){this.langSelect.style.display="none";this.ytComponentBehavior.resolveCommand(this.data.languageList.dropdownRenderer.entries[S.target.selectedIndex].dropdownItemRenderer.onSelectCommand)};
_.M.showLangPicker=function(){this.langSelect.style.display=this.langSelect.style.display&&this.langSelect.style.display!=="none"?"none":"block"};
_.M.handleSaveConsent=function(S){var p=this;this.showLoadingSpinner();this.showLoadingSpinner();pSo(_.b(S,dDq)).catch(function(U){_.eP(new _.y7("Something went wrong when save consent "+(U.message?U.message:U)+"."));p.hideLoadingSpinner();p.showErrorMessage()})};
_.M.handleDisablePersonalization=function(S){var p=this;this.showLoadingSpinner();UTt(_.b(S,IFt)).then(function(){p.dialog.close();p.resumePlayer()}).catch(function(U){_.eP(new _.y7("Something went wrong when disable personalization "+(U.message?U.message:U)+"."));
p.hideLoadingSpinner();p.showErrorMessage()})};
_.M.showLoadingSpinner=function(){var S=this;this.showSpinnerJobId=_.PA.addLowPriorityJob(function(){S.isLoading=!0},500)};
_.M.hideLoadingSpinner=function(){this.isLoading=!1;this.showSpinnerJobId!==void 0&&(_.PA.cancelJob(this.showSpinnerJobId),this.showSpinnerJobId=void 0)};
_.M.showErrorMessage=function(){var S=this;this.hasError=!0;_.PA.addLowPriorityJob(function(){S.hasError=!1},2E3)};
_.M.pausePlayer=function(){this.playbackPauseInterval||(this.playbackPauseInterval=_.dE(function(){try{var S=_.$L();S&&S.pause()}catch(p){}},100))};
_.M.resumePlayer=function(){this.playbackPauseInterval&&(window.clearInterval(this.playbackPauseInterval),this.playbackPauseInterval=NaN);try{var S=_.$L();S&&S.play()}catch(p){}};
_.$u.Object.defineProperties(xW.prototype,{eomEssentialCookieMsgItems:{configurable:!0,enumerable:!0,get:function(){var S;if((S=this.data)==null||!S.eomV1Text)return[];S=[];for(var p=["SHIELD","WARNING","BAR_CHART"],U=this.data.eomV1Text.essentialCookieMsg.items,Y=0;Y<p.length&&Y<U.length;Y++)S.push({icon:p[Y],text:U[Y]});return S}},
eomNonEssentialCookieMsgItems:{configurable:!0,enumerable:!0,get:function(){var S;if((S=this.data)==null||!S.eomV1Text)return[];S=[];for(var p=["TRENDING_UP","BAR_CHART","AUTO_AWESOME","PURCHASES"],U=this.data.eomV1Text.nonEssentialCookieMsg.items,Y=0;Y<p.length&&Y<U.length;Y++)S.push({icon:p[Y],text:U[Y]});return S}}});
xW.prototype.onDataChange=xW.prototype.onDataChange;_.x([_.g(),_.E("design:type",Object)],xW.prototype,"data",void 0);_.x([_.g(),_.E("design:type",Boolean)],xW.prototype,"showEOMV1Text",void 0);_.x([_.g(),_.E("design:type",Object)],xW.prototype,"isLoading",void 0);_.x([_.g(),_.E("design:type",Object)],xW.prototype,"hasError",void 0);_.x([_.g(),_.E("design:type",Number)],xW.prototype,"showSpinnerJobId",void 0);_.x([_.g(),_.E("design:type",Object)],xW.prototype,"dialogClass",void 0);
_.x([_.O2("#dialog"),_.E("design:type",Object)],xW.prototype,"dialog",void 0);_.x([_.O2("#cb-header"),_.E("design:type",HTMLElement)],xW.prototype,"header",void 0);_.x([_.O2("#lang-select"),_.E("design:type",HTMLElement)],xW.prototype,"langSelect",void 0);_.x([_.F(_.Aj.YtActionHandlerBehavior),_.E("design:type",Object)],xW.prototype,"ytActionHandlerBehavior",void 0);_.x([_.F(_.eL.YtComponentBehavior),_.E("design:type",Object)],xW.prototype,"ytComponentBehavior",void 0);
_.x([_.g(),_.E("design:type",String)],xW.prototype,"youtubeLabel",void 0);_.x([_.g(),_.E("design:type",Object)],xW.prototype,"logoName",void 0);_.x([_.z4("data"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],xW.prototype,"onDataChange",null);_.x([_.e("data"),_.E("design:type",Array),_.E("design:paramtypes",[])],xW.prototype,"eomEssentialCookieMsgItems",null);
_.x([_.e("data"),_.E("design:type",Array),_.E("design:paramtypes",[])],xW.prototype,"eomNonEssentialCookieMsgItems",null);xW=_.x([_.f({disableElementRegistration:!0,is:"ytd-consent-bump-v2-lightbox"})],xW);
_.C(xW,"ytd-consent-bump-v2-lightbox",function(){if(oPL!==void 0)return oPL;var S=document.createElement("template");_.h(S,'\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');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);return oPL=S},{mode:1});var vPL;var Em=function(){return _.w.apply(this,arguments)||this};
_.r(Em,_.w);Em.prototype.ready=function(){if(!_.Q7()||ySn)var S=!0;else ySn=!0,S=!1;S||(S=document.querySelector("ytd-app"),S||(S=document.body),this.internalLightBox=_.tB(S).appendChild(this.lightBox),this.internalLightBox.dialog.open())};
_.x([_.g(),_.E("design:type",Object)],Em.prototype,"data",void 0);_.x([_.O2("#lightbox"),_.E("design:type",Object)],Em.prototype,"lightBox",void 0);Em=_.x([_.f({disableElementRegistration:!0,is:"ytd-consent-bump-v2-renderer"})],Em);
_.C(Em,"ytd-consent-bump-v2-renderer",function(){if(vPL!==void 0)return vPL;var S=document.createElement("template");_.h(S,'\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>');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);return vPL=S},{mode:1});var $fd;var itJ;var Naq;var md=function(){var S=_.w.apply(this,arguments)||this;S.ephemeralActionsEnabled=_.y("web_ephemeral_actions");return S};
_.r(md,_.w);_.M=md.prototype;_.M.toastOpenedChanged=function(){this.toastManager&&this.hasOpened&&this.toast&&!this.toast.opened&&this.toastType!==1&&lli(this.toastManager,this.toastType)};
_.M.open=function(S){this.toast&&(this.ephemeralAction&&_.tW().resolve(_.Tt).enqueue(this.ephemeralAction),this.hasOpened=!0,this.toastManager?(this.toastType=S!=null?S:0,this.toastManager.enqueue(this.toast,S)):this.toast.open())};
_.M.close=function(S){var p;(p=this.toast)==null||p.close();this.toastManager&&S===1&&lli(this.toastManager,S)};
_.M.refit=function(){var S;(S=this.toast)==null||S.refit()};
_.M.tapClose=function(){if(!this.useCloseButton||this.closeToastOnActionButtonClick){var S;(S=this.toast)==null||S.close()}};
_.M.setVerticalOffset=function(S){this.toast&&(this.toast.verticalOffset=S,this.toast.fit())};
_.M.computeButtonClass_=function(S){return S?"toast-button":""};
_.M.computeText_=function(S){return _.mA(S)};
_.M.toastOpenedChangedForBinding=function(){this.hostElement.dispatchEvent(new _.uz("toast-opened-changed",this.toastOpened))};
_.M.updateToastOpenedFromBinding=function(S){this.toastOpened=S.detail.value};
_.$u.Object.defineProperties(md.prototype,{command:{configurable:!0,enumerable:!0,get:function(){var S,p,U=(S=this.data)==null?void 0:(p=S.actionButton)==null?void 0:p.buttonRenderer;return(U==null?void 0:U.command)||(U==null?void 0:U.serviceEndpoint)||(U==null?void 0:U.navigationEndpoint)}},
ephemeralAction:{configurable:!0,enumerable:!0,get:function(){if(this.ephemeralActionsEnabled&&this.labelText&&this.command&&this.duration)return{label:this.labelText,command:this.command,durationMs:this.duration}}},
hasEphemeralAction:{configurable:!0,enumerable:!0,get:function(){return!!this.ephemeralAction}},
labelText:{configurable:!0,enumerable:!0,get:function(){var S=[],p;((p=this.data)==null?0:p.responseText)&&S.push(_.mA(this.data.responseText));var U;((U=this.data)==null?0:U.subText)&&S.push(_.mA(this.data.subText));var Y,L;if((Y=this.data)==null?0:(L=Y.actionButton)==null?0:L.buttonRenderer){var I,V;S.push(((I=this.data.actionButton.buttonRenderer.accessibilityData)==null?void 0:(V=I.accessibilityData)==null?void 0:V.label)||_.mA(this.data.actionButton.buttonRenderer.text))}return S.filter(function(W){return W}).join(". ")}},
opened:{configurable:!0,enumerable:!0,get:function(){var S,p;return(p=(S=this.toast)==null?void 0:S.opened)!=null?p:!1}}});
md.prototype.toastOpenedChangedForBinding=md.prototype.toastOpenedChangedForBinding;md.prototype.toastOpenedChanged=md.prototype.toastOpenedChanged;_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],md.prototype,"ytRendererBehavior",void 0);_.x([_.F(_.kP.YtEventForwardingBehavior),_.E("design:type",Object)],md.prototype,"ytEventForwardingBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],md.prototype,"data",void 0);_.x([_.g(),_.E("design:type",Object)],md.prototype,"duration",void 0);
_.x([_.g(),_.E("design:type",Number)],md.prototype,"toastType",void 0);_.x([_.g({value:!1}),_.E("design:type",Boolean)],md.prototype,"useCloseButton",void 0);_.x([_.g({value:!1}),_.E("design:type",Boolean)],md.prototype,"closeToastOnActionButtonClick",void 0);_.x([_.g({value:function(){return _.Oh("SBOX_INAPPROPRIATE_CANCEL")}}),
_.E("design:type",String)],md.prototype,"closeButtonAriaLabel",void 0);_.x([_.g(),_.E("design:type",Boolean)],md.prototype,"toastOpened",void 0);_.x([_.g(),_.E("design:type",Boolean)],md.prototype,"hasOpened",void 0);_.x([_.g(),_.E("design:type",Object)],md.prototype,"ephemeralActionsEnabled",void 0);_.x([_.e("data"),_.E("design:type",Object),_.E("design:paramtypes",[])],md.prototype,"command",null);
_.x([_.e("ephemeralActionsEnabled","labelText","command","duration"),_.E("design:type",Object),_.E("design:paramtypes",[])],md.prototype,"ephemeralAction",null);_.x([_.e("ephemeralAction"),_.E("design:type",Boolean),_.E("design:paramtypes",[])],md.prototype,"hasEphemeralAction",null);_.x([_.O2("#toast"),_.E("design:type",Object)],md.prototype,"toast",void 0);_.x([_.g({value:function(){return{style:"call-to-action-inverse"}}}),
_.E("design:type",Object)],md.prototype,"buttonOverrides",void 0);_.x([_.g({value:{style:"mono-inverse"}}),_.E("design:type",Object)],md.prototype,"closeButtonOverrides",void 0);_.x([_.g({value:function(){return _.tW().resolve(_.AW(_.fnH))}}),
_.E("design:type",Object)],md.prototype,"toastManager",void 0);_.x([_.e("data.responseText","data.subText","data.actionButton"),_.E("design:type",Object),_.E("design:paramtypes",[])],md.prototype,"labelText",null);_.x([_.T4("toastOpened"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],md.prototype,"toastOpenedChanged",null);
_.x([_.T4("toastOpened"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],md.prototype,"toastOpenedChangedForBinding",null);md=_.x([_.FB({is:"yt-notification-action-renderer",disableElementRegistration:!0})],md);
_.C(md,"yt-notification-action-renderer",function(){if(Naq===void 0){var S=document.createElement("template");_.h(S,'\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');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);var p=S.content,U=p.insertBefore;itJ===void 0&&(itJ=document.createElement("template"));var Y=itJ;U.call(p,Y.content.cloneNode(!0),S.content.firstChild);Naq=S}S=Naq;return S},{mode:2});var YJ=function(){var S=_.w.apply(this,arguments)||this;S.duration=4E3;S.downloadingCount=0;S.downloadedCount=0;S.downloadingOnlySmartDownloads=!1;S.sessionTotalDownloads=0;S.sessionDownloaded=0;S.previousSessionsDownloaded=0;S.totalDownloadPercentage=0;S.currentDownloadProgress=0;S.currentDownloadPercentage=0;S.isLeaderTab=!0;S.isFullScreen=!1;S.actionMap={"yt-fullscreen-change-action":"handleFullscreenChange"};S.boundBeforeUnload=function(p){S.isLeaderTab&&S.downloadingCount>0&&(p.preventDefault(),
p.returnValue=!0)};
return S};
_.r(YJ,_.w);_.M=YJ.prototype;
_.M.open=function(){this.updateDownloadState();if(this.data){var S=this.sessionDownloaded+1,p=this.sessionTotalDownloads>1?_.Oh("VIDEOS_DOWNLOADING_RATIO",{downloaded:S.toString(),total:this.sessionTotalDownloads.toString()},"Downloading... "+S+"/"+this.sessionTotalDownloads):_.Oh("DOWNLOADING",void 0,"Downloading")+"...";this.downloadingOnlySmartDownloads&&(p=this.sessionTotalDownloads>1?_.Oh("SMART_DOWNLOADS_UPDATING_RATIO",{downloaded:S.toString(),total:this.sessionTotalDownloads.toString()},"Updating Smart downloads... "+
S+"/"+this.sessionTotalDownloads):_.Oh("SMART_DOWNLOADS_UPDATING",void 0,"`Updating Smart downloads..."));S=this.isLeaderTab?_.Oh("KEEP_OPEN",{},"Keep window open to continue"):"";if(_.mA(this.data.responseText)!==p||_.mA(this.data.subText)!==S)this.set("data.responseText",_.Ec(p)),this.set("data.subText",_.Ec(S)),this.notificationActionRenderer.refit()}this.notificationActionRenderer.open(1);window.addEventListener("beforeunload",this.boundBeforeUnload)};
_.M.close=function(){this.previousSessionsDownloaded=this.sessionDownloaded=this.sessionTotalDownloads=0;this.notificationActionRenderer.hasOpened&&this.notificationActionRenderer.close(1);window.removeEventListener("beforeunload",this.boundBeforeUnload)};
_.M.updatePopup=function(){!this.data||this.isFullScreen||this.downloadingCount===0?this.close():this.open()};
_.M.updateCurrentDownloadProgress=function(){this.currentDownloadPercentage=Math.floor(this.currentDownloadProgress*100)};
_.M.updateDownloadState=function(){this.previousSessionsDownloaded===0&&(this.previousSessionsDownloaded=this.downloadedCount);var S=this.downloadedCount-this.previousSessionsDownloaded;S<this.sessionDownloaded&&(this.previousSessionsDownloaded-=this.sessionDownloaded-S);this.sessionDownloaded=this.downloadedCount-this.previousSessionsDownloaded;this.sessionTotalDownloads=this.downloadingCount+this.sessionDownloaded};
_.M.handleFullscreenChange=function(S){(this.isFullScreen=S)||this.updatePopup()};
YJ.prototype.updateCurrentDownloadProgress=YJ.prototype.updateCurrentDownloadProgress;YJ.prototype.updatePopup=YJ.prototype.updatePopup;_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],YJ.prototype,"ytRendererBehavior",void 0);_.x([_.F(_.Xh),_.E("design:type",Object)],YJ.prototype,"ytdReduxBehavior",void 0);_.x([_.F(_.kP.YtEventForwardingBehavior),_.E("design:type",Object)],YJ.prototype,"ytEventForwardingBehavior",void 0);
_.x([_.F(_.Aj.YtActionHandlerBehavior),_.E("design:type",Object)],YJ.prototype,"actionHandlerBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],YJ.prototype,"data",void 0);_.x([_.g(),_.E("design:type",Object)],YJ.prototype,"duration",void 0);_.x([_.g({selector:function(S){return _.bLq(S.entities).length}}),
_.E("design:type",Object)],YJ.prototype,"downloadingCount",void 0);_.x([_.g({selector:OAL}),_.E("design:type",Object)],YJ.prototype,"downloadedCount",void 0);_.x([_.g({selector:function(S){var p=_.bLq(S.entities);return WYn(S.entities,p)}}),
_.E("design:type",Object)],YJ.prototype,"downloadingOnlySmartDownloads",void 0);_.x([_.g(),_.E("design:type",Object)],YJ.prototype,"sessionTotalDownloads",void 0);_.x([_.g(),_.E("design:type",Object)],YJ.prototype,"sessionDownloaded",void 0);_.x([_.g(),_.E("design:type",Object)],YJ.prototype,"previousSessionsDownloaded",void 0);_.x([_.g(),_.E("design:type",Object)],YJ.prototype,"totalDownloadPercentage",void 0);
_.x([_.g({selector:function(S){var p;S=(p=_.bLq(S.entities))!=null?p:[];return S.length>0?_.Www(S.slice(-1)):0}}),
_.E("design:type",Object)],YJ.prototype,"currentDownloadProgress",void 0);_.x([_.g(),_.E("design:type",Object)],YJ.prototype,"currentDownloadPercentage",void 0);_.x([_.g({selector:_.h2q}),_.E("design:type",Object)],YJ.prototype,"isLeaderTab",void 0);_.x([_.O2("yt-notification-action-renderer"),_.E("design:type",Object)],YJ.prototype,"notificationActionRenderer",void 0);
_.x([_.z4("downloadingCount","downloadedCount","downloadingOnlySmartDownloads","isLeaderTab"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],YJ.prototype,"updatePopup",null);_.x([_.z4("currentDownloadProgress"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],YJ.prototype,"updateCurrentDownloadProgress",null);YJ=_.x([_.f({disableElementRegistration:!0,is:"ytd-video-download-toast-renderer"})],YJ);
_.C(YJ,"ytd-video-download-toast-renderer",function(){if($fd!==void 0)return $fd;var S=document.createElement("template");_.h(S,'\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>');
S.content.insertBefore(_.t().content.cloneNode(!0),S.content.firstChild);return $fd=S},{mode:1});var BaY;var qLt;var LM=function(){return _.w.apply(this,arguments)||this};
_.r(LM,_.w);LM.prototype.computeIsRedLogo=function(S,p){!S&&p&&(S=p);return S==="YOUTUBE_RED_LOGO"||S==="YOUTUBE_PREMIUM_LOGO"};
LM.prototype.computeLogoName=function(S){S=this.componentBehavior.computeIcon_(S);return S===""?"yt-logos-ext:yt-logo-updated":S};
_.x([_.F(_.eL.YtComponentBehavior),_.E("design:type",Object)],LM.prototype,"componentBehavior",void 0);_.x([_.g({value:!1,reflectToAttribute:!0,computed:"computeIsRedLogo(data.iconType, logoType)"}),_.E("design:type",Boolean)],LM.prototype,"isRedLogo",void 0);_.x([_.g({computed:"computeLogoName(data)"}),_.E("design:type",String)],LM.prototype,"logoName",void 0);_.x([_.g({value:{}}),_.E("design:type",Object)],LM.prototype,"data",void 0);
_.x([_.g(),_.E("design:type",Object)],LM.prototype,"logoType",void 0);LM=_.x([_.f({disableElementRegistration:!0,is:"ytd-logo"})],LM);
_.C(LM,"ytd-logo",function(){if(qLt!==void 0)return qLt;var S=document.createElement("template");_.h(S,'\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>');S.content.insertBefore(_.t().content.cloneNode(!0),S.content.firstChild);return qLt=S},{mode:_.UW("kevlar_poly_si_batch_j074")?1:2});var M4=function(){var S=_.w.apply(this,arguments)||this;S.animationRef={};return S};
_.r(M4,_.w);_.M=M4.prototype;_.M.attached=function(){document.addEventListener("yt-navigate-finish",_.d9(this,this.logYoodle))};
_.M.detached=function(){document.removeEventListener("yt-navigate-finish",_.d9(this,this.logYoodle))};
_.M.logYoodle=function(){var S,p;if((S=this.data)==null?0:(p=S.loggingDirectives)==null?0:p.trackingParams)this.ytRendererBehavior.markDirty(),_.HX().graftServerVe(this.data.loggingDirectives.trackingParams)};
_.M.computeHideImg=function(S,p){return!!S||!!p};
_.M.computeHideYtdLogo=function(S,p){return!S||!!p};
_.M.computeHideLottie=function(S){return!S};
_.M.computeIsRedLogo=function(S){return S==="YOUTUBE_RED_LOGO"||S==="YOUTUBE_PREMIUM_LOGO"};
_.M.renderLogoEntity=function(){var S=this.getThumbnailUrl(this.useDarkThemeYoodle,this.data),p=this.getAnimatedThumbnailUrl(this.useDarkThemeYoodle,this.data),U=this.getLogoTitleText(this.data),Y=this.getLottieUrl(this.useDarkThemeYoodle,this.data);this.url!==S&&(this.url=S);this.animatedUrl!==p&&(this.animatedUrl=p);this.logoTitleText!==U&&(this.logoTitleText=U);this.lottieUrl!==Y&&(this.lottieUrl=Y,this.lottiePlayerProps=this.computeLottiePlayerProps(Y))};
_.M.getSanitizedThumbnail=function(S){return S&&S.thumbnails?_.qne(S.thumbnails,122)||"":""};
_.M.getThumbnailUrl=function(S,p){if(!p)return"";var U,Y;S=S?(U=p.darkThemeLogo)==null?void 0:U.thumbnail:(Y=p.lightThemeLogo)==null?void 0:Y.thumbnail;return this.getSanitizedThumbnail(S)};
_.M.getAnimatedThumbnailUrl=function(S,p){return p?this.getSanitizedThumbnail(S?p.darkThemeAnimatedLogo:p.lightThemeAnimatedLogo):""};
_.M.getLogoTitleText=function(S){if(S)return _.mA(S.tooltipText)};
_.M.computeLogoIcon=function(S,p){if(p){var U,Y;return S?(U=p.darkThemeLogo)==null?void 0:U.icon:(Y=p.lightThemeLogo)==null?void 0:Y.icon}};
_.M.playAnimation=function(){this.hideLottie||this.animationRef.lottieEl&&this.animationRef.lottieEl.isPaused&&this.animationRef.lottieEl.goToAndPlay(0)};
_.M.getLottieUrl=function(S,p){var U,Y,L,I;return S?p==null?void 0:(U=p.darkThemeLogo)==null?void 0:(Y=U.lottieAnimation)==null?void 0:Y.url:p==null?void 0:(L=p.lightThemeLogo)==null?void 0:(I=L.lottieAnimation)==null?void 0:I.url};
_.M.computeLottiePlayerProps=function(S){if(S){var p;if((p=this.animationRef)==null?0:p.lottieEl){var U;(U=this.animationRef)==null||U.lottieEl.destroy()}return{animationRef:this.animationRef,animationConfig:{name:"LOGO_ENTITY_ANIMATION_NAME",path:S,autoplay:!0,loop:!1,rendererSettings:{viewBoxOnly:!1}},listeners:{data_failed:this.onLottieError.bind(this),error:this.onLottieError.bind(this)}}}};
_.M.onLottieError=function(){this.data&&this.lottieUrl&&_.cv(this.hostElement,"yoodle-error")};
_.M.onImgError=function(){this.data&&!this.lottieUrl&&_.cv(this.hostElement,"yoodle-error")};
M4.prototype.playAnimation=M4.prototype.playAnimation;M4.prototype.renderLogoEntity=M4.prototype.renderLogoEntity;_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],M4.prototype,"ytRendererBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],M4.prototype,"data",void 0);_.x([_.g({value:!1,computed:"computeHideImg(logoIcon, lottiePlayerProps)"}),_.E("design:type",Boolean)],M4.prototype,"hideImg",void 0);
_.x([_.g({value:!0,computed:"computeHideYtdLogo(logoIcon, lottiePlayerProps)"}),_.E("design:type",Boolean)],M4.prototype,"hideYtdLogo",void 0);_.x([_.g({value:!0,reflectToAttribute:!0,computed:"computeHideLottie(lottiePlayerProps)"}),_.E("design:type",Boolean)],M4.prototype,"hideLottie",void 0);_.x([_.g({value:!1,reflectToAttribute:!0,computed:"computeIsRedLogo(logoType)"}),_.E("design:type",Boolean)],M4.prototype,"isRedLogo",void 0);
_.x([_.g(),_.E("design:type",Boolean)],M4.prototype,"useDarkThemeYoodle",void 0);_.x([_.g(),_.E("design:type",String)],M4.prototype,"url",void 0);_.x([_.g(),_.E("design:type",String)],M4.prototype,"animatedUrl",void 0);_.x([_.g(),_.E("design:type",String)],M4.prototype,"logoTitleText",void 0);_.x([_.g({value:{},computed:"computeLogoIcon(useDarkThemeYoodle, data)"}),_.E("design:type",Object)],M4.prototype,"logoIcon",void 0);_.x([_.g(),_.E("design:type",Object)],M4.prototype,"logoType",void 0);
_.x([_.g(),_.E("design:type",String)],M4.prototype,"lottieUrl",void 0);_.x([_.g(),_.E("design:type",Object)],M4.prototype,"lottiePlayerProps",void 0);_.x([_.g(),_.E("design:type",Object)],M4.prototype,"animationRef",void 0);_.x([_.T4("data"),_.T4("useDarkThemeYoodle"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],M4.prototype,"renderLogoEntity",null);
_.x([_.Vd("click"),_.E("design:type",Function),_.E("design:paramtypes",[Event]),_.E("design:returntype")],M4.prototype,"playAnimation",null);M4=_.x([_.f({disableElementRegistration:!0,is:"ytd-yoodle-renderer"})],M4);
_.C(M4,"ytd-yoodle-renderer",function(){if(BaY!==void 0)return BaY;var S=document.createElement("template");_.h(S,'\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>');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);return BaY=S},{mode:_.UW("kevlar_poly_si_batch_j074")?1:2});var AQd;var tHn;var I_=function(){var S=_.w.apply(this,arguments)||this;S.actionMap={"yt-navigate-home-action":"onNavigateHomeAction"};return S};
_.r(I_,_.w);_.M=I_.prototype;_.M.onYoodleError=function(){_.y("kevlar_yoodle_handle_load_failure_killswitch")||(this.yoodleError=!0)};
_.M.computeLogoName=function(S){S=this.componentBehavior.computeIcon_(S);return S===""?"yt-logos-ext:yt-logo-updated":S};
_.M.computeTitle=function(S,p,U){return U&&(p==null?0:p.tooltipText)?_.mA(p.tooltipText):_.mA(S)};
_.M.computeAriaLabel=function(S,p,U){return U&&(p==null?0:p.tooltipText)?_.mA(S):""};
_.M.computeShowYoodle=function(S,p,U){return!S||!p&&!!U&&!_.h9.isEmpty(U)};
_.M.onNavigateHomeAction=function(){if(_.y("kevlar_miniplayer_navigate_home_from_app_killswitch")){var S;(S=_.tB(this.hostElement).querySelector(".yt-simple-endpoint"))==null||S.click()}};
_.M.computeLogoHref=function(S,p,U){var Y;(U==null?0:U.onTapCommand)?Y=this.componentBehavior.computeHref_(U.onTapCommand):S&&(Y=this.componentBehavior.computeHref_(S));return Y?Y:p};
_.M.computeCommand=function(S,p){return(p==null?void 0:p.onTapCommand)||S};
_.M.getEndpointForm=function(){if(_.y("kevlar_topbar_disable_cache_only_home")){var S=_.tW().resolve(_.XF),p=n7o(S.getState())||"";S=_.ile(S.getState())||"";return{disableCache:p==="ytd-browse"&&S==="home"}}return{disableCache:!0}};
I_.prototype.onYoodleError=I_.prototype.onYoodleError;_.x([_.F(_.Aj.YtActionHandlerBehavior),_.E("design:type",Object)],I_.prototype,"ytActionHandlerBehavior",void 0);_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],I_.prototype,"ytRendererBehavior",void 0);_.x([_.F(_.eL.YtComponentBehavior),_.E("design:type",Object)],I_.prototype,"componentBehavior",void 0);_.x([_.F(_.Xh),_.E("design:type",Object)],I_.prototype,"ytdReduxBehavior",void 0);
_.x([_.g(),_.E("design:type",Object)],I_.prototype,"data",void 0);_.x([_.g(),_.E("design:type",String)],I_.prototype,"countryCode",void 0);_.x([_.g({selectorArgs:["data.overrideEntityKey"],selector:function(S,p){return _.I4(S.entities,"logoEntity",p)}}),
_.E("design:type",Object)],I_.prototype,"logoEntity",void 0);_.x([_.g({reflectToAttribute:!0,computed:"computeShowYoodle(data, yoodleError, logoEntity)"}),_.E("design:type",Boolean)],I_.prototype,"showYoodle",void 0);_.x([_.g({value:!1}),_.E("design:type",Boolean)],I_.prototype,"yoodleError",void 0);_.x([_.g({computed:"computeTitle(data.tooltipText, logoEntity, showYoodle)"}),_.E("design:type",String)],I_.prototype,"titleText",void 0);
_.x([_.g({value:"",computed:"computeAriaLabel(data.tooltipText, logoEntity, showYoodle)"}),_.E("design:type",String)],I_.prototype,"ariaLabelText",void 0);_.x([_.g({value:"/"}),_.E("design:type",String)],I_.prototype,"defaultEndpointUrl",void 0);_.x([_.g({computed:"computeLogoHref(data.endpoint, defaultEndpointUrl, logoEntity)"}),_.E("design:type",String)],I_.prototype,"endpointUrl",void 0);
_.x([_.g({computed:"computeCommand(data.endpoint, logoEntity)"}),_.E("design:type",String)],I_.prototype,"command",void 0);_.x([_.g(),_.E("design:type",Object)],I_.prototype,"logoType",void 0);_.x([_.g({}),_.E("design:type",Boolean)],I_.prototype,"useDarkThemeYoodle",void 0);_.x([_.Vd("yoodle-error"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],I_.prototype,"onYoodleError",null);I_=_.x([_.f({disableElementRegistration:!0,is:"ytd-topbar-logo-renderer"})],I_);
_.C(I_,"ytd-topbar-logo-renderer",function(){if(tHn!==void 0)return tHn;var S=document.createElement("template");_.h(S,'\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');
S.content.insertBefore(_.t().content.cloneNode(!0),S.content.firstChild);return tHn=S},{mode:_.UW("kevlar_poly_si_batch_j027")?1:2});var cQn=0;var SvP=_.oc.SEARCH_APPEND_LABEL,pci=_.oc.SUGGESTION_NEW_VIDEOS_TEXT,Unn=_.oc.SUGGESTION_THUMBNAIL_LABEL,YvE=_.oc.SUGGESTION_THUMBNAIL_ATTRIBUTION_LABEL,L0d=_.$k(function(S){function p(Gj){var MY,V2;return _.T(function(Tq){if(Tq.nextAddress==1)return MY=new Request(Gj),_.M2(Tq,2),_.k(Tq,fetch(MY,{credentials:"include"}),4);if(Tq.nextAddress!=2)return kA(!0),_.CA(Tq,0);V2=_.W4(Tq);_.eP(V2);_.OV(Tq)})}
var U=S.isHighlighted;var Y=S.suggestion;var L=S.onClickCallback;var I=S.onHoverUpdateCallback;var V=S.labels;var W=S.queryBuilderFunction;var O=S.onRemoveCallback;var D=S.suggestionIndex;var z=S.generateUniqueId;var Q=S.highlightedId;var J=S.useScrollMargin;var K=S.isKeyboardMode;var G=null,X=null,Z=_.vH(),l=_.vH();S=_.d(_.kj(!1,void 0,"CgAMgc"));var a=S.next().value,N=S.next().value,m=_.$v(function(Gj){Gj&&_.X7(237477,Gj,X,function(MY){X=MY})}),A=_.$v(function(Gj){Gj&&_.X7(237477,Gj,X,function(MY){X=
MY})}),q=_.kL(function(Gj){if((Gj==null?void 0:Gj.button)===2)return Gj.preventDefault(),!1;
var MY=_.X$();MY&&G&&_.Eh(MY,G,"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK");var V2;L(Gj,Y().text,Y().index,Y().entityMid,Gj==null?void 0:(V2=Gj.detail)==null?void 0:V2.wasSelectedByKeyboard);return!1}),TG=function(){return Y().type===35},Je=function(){return _.y("desktop_enable_single_suggestion_highlight")},GG=function(){return _.pA("desktop_suggestions_panel_row_height")||0},Zw=function(){var Gj;
return _.y("desktop_enable_new_video_metadata")&&((Gj=Y())==null?void 0:Gj.hasNewVideo)===!0},Ru=function(){return _.y("desktop_enable_visual_suggest")},sX=function(){var Gj;
if(Gj=_.y("desktop_enable_entity_suggest")){var MY=Y();Gj=!!hUY(MY.subtypes);MY=!!MY.entityMid;Gj=Gj||MY}return Gj},mq=function(){return Y().entitySubtitle},au=function(){return Je()?(U==null?void 0:U())||Kc()&&!(K==null?0:K()):(U==null?void 0:U())||Kc()},XI=function(){var Gj=_.g7("SBOX_SETTINGS");
return TG()&&!(Gj==null?0:Gj.HIDE_REMOVE_LINK)},nE=function(){return smJ(Y())},ut,Hw=!((ut=_.tW().resolve(_.AW(_.Cz)))==null||!ut()),Tj=function(){return TG()?_.y("enable_web_delhi_icons")?"HISTORY":"ARROW_TIME":"SEARCH"},Ut=function(){return V==null?void 0:V().SUGGESTION_DISMISS_LABEL},Ww=function(){return V==null?void 0:V().SUGGESTION_DISMISSED_LABEL};
S=_.d(_.kj(!1,void 0,"ze5Bhc"));ut=S.next().value;var kA=S.next().value;S=_.d(_.kj(!1,void 0,"Mx5LWc"));var XO=S.next().value,Vw=S.next().value,Kc=XO,eQ=_.kL(function(){W(l.value.innerText);return!1}),x5=_.kL(function(Gj){Gj.preventDefault();
return!1}),rm=_.kL(function(Gj){var MY=Y().text,V2=_.g7("SBOX_SETTINGS"),Tq="https://"+(V2.SEARCHBOX_HOST_OVERRIDE||"suggestqueries-clients6.youtube.com")+"/complete/deleteitems?client=youtube";
Tq+="&delq="+encodeURIComponent(MY);(MY=V2==null?void 0:V2.PSUGGEST_TOKEN)&&(Tq+="&tok="+MY);(V2=V2==null?void 0:V2.SESSION_INDEX)&&(Tq+="&authuser="+V2);p(Tq);Gj.preventDefault();(Gj=_.X$())&&X&&_.Eh(Gj,X,"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK");O(D==null?void 0:D());return!1}),Bw=_.kL(function(){if(Je()&&(K==null?0:K()))return!1;
Vw(!0);I(!0);return!1}),oO=_.kL(function(){Vw(!1);
I(!1);return!1}),$m=_.kL(function(){N(!0);
return!1}),Mt=_.kL(function(){N(!1);
return!1}),El=_.kL(function(Gj){Gj.preventDefault();
var MY;(Gj=(MY=Y().entityThumbnailAttributionUrl)!=null?MY:"")&&_.QkG(Gj);return!1});
S=_.d(_.kj("",void 0,"aYzCJe"));var KE=S.next().value,yH=S.next().value;_.hW(function(){XI()&&yH(z==null?void 0:z(D==null?void 0:D()));Z.value&&_.X7(12453,Z.value,G,function(Gj){G=Gj})});
return _.H(_.n,{cond:ut,then:function(){var Gj={};return _.H("div",{class:_.VD("ytSuggestionComponentRemovedText",(Gj.ytSuggestionComponentLargerRemovedText=function(){return Ru()},Gj)),
style:function(){return GG()>0?"height: "+GG()+"px;":""},
role:"button"},Ww)},
else:function(){var Gj={},MY={};return _.H("div",{class:_.VD("ytSuggestionComponentSuggestion",(Gj.ytSuggestionComponentSuggestionHover=function(){return!Je()},Gj.ytSuggestionComponentHighlighted=au,Gj.ytSuggestionComponentPersonalizedSuggestion=TG,Gj.ytSuggestionComponentMweb=!1,Gj.ytSuggestionComponentLargerSuggestion=function(){return Zw()||Ru()},Gj.ytSuggestionComponentThumbnailSuggestion=function(){return Ru()},Gj.ytSuggestionComponentRoundedSuggestion=function(){return _.y("desktop_enable_scrollable_suggestions_panel")&&
_.y("desktop_enable_suggestions_panel_padding")},Gj.ytSuggestionComponentThumbnailPadding=function(){return Ru()&&!TG()},Gj)),
style:function(){return GG()>0?"height: "+GG()+"px;":""},
role:"presentation","on:mousedown":q,"on:mouseover":Bw,"on:mouseout":oO,el:Z},_.H("div",{class:_.VD("ytSuggestionComponentText",(MY.ytSuggestionComponentScrollMargin=J,MY)),"aria-label":function(){return Zw()?Y().text+" "+pci:Y().text},
id:function(){return z==null?void 0:z(D==null?void 0:D())},
"on:mousedown":q,role:"option"},_.H(_.n,{cond:function(){return Y().type!==33},
then:function(){return _.H(_.QD,{icon:Tj,className:"ytSuggestionComponentIcon"})}}),_.H("div",{class:"ytSuggestionComponentLeftContainer"},_.H("span",{el:l,
role:"button",tabindex:0},_.H(_.KU,{each:nE},function(V2){return V2.bold?_.H("span",{class:"ytSuggestionComponentBold"},V2.text):_.H("span",null,V2.text)})),_.H(_.n,{cond:function(){return sX()&&!!Y().entitySubtitle||Zw()},
then:function(){return _.H("div",{class:"ytSuggestionComponentMetadataContainer"},_.H(_.n,{cond:function(){return sX()&&!!Y().entitySubtitle},
then:function(){return _.H("div",{class:"ytSuggestionComponentEntitySubtitle"},mq)}}),_.H(_.n,{cond:function(){return Zw()},
then:function(){return _.H("div",{class:"ytSuggestionComponentNewVideoContainer"},_.H("div",{class:"ytSuggestionComponentNewVideoIcon"}),_.H("div",{class:"ytSuggestionComponentNewVideoText"},pci))}}))}}))),_.H("div",{class:"ytSuggestionComponentRightContainer"},_.H(_.n,{cond:function(){return Ru()&&Y().visualSuggestUrl!==void 0},
then:function(){var V2={};return _.H("div",{class:"ytSuggestionComponentThumbnailContainer"},_.H("img",{"aria-label":Unn,class:_.VD("ytSuggestionComponentVisualSuggestThumbnail",(V2.ytSuggestionComponentCircularFrame=function(){return sX()&&Y().subtypes.includes(790)},V2.ytSuggestionComponentEntitySuggestThumbnail=function(){return sX()},V2)),
src:function(){return Y().visualSuggestUrl}}),_.H(_.n,{cond:function(){return sX()&&!!Y().entityThumbnailAttributionUrl},
then:function(){var Tq={};return _.H("span",{title:YvE,role:"tooltip"},_.H("div",{"on:mouseover":$m,"on:mouseout":Mt,"on:mousedown":El,class:_.VD("ytSuggestionComponentThumbnailOverlay",(Tq.ytSuggestionComponentThumbnailOverlayHidden=function(){return!a()},Tq))},_.H(_.QD,{icon:"INFO",
className:"ytSuggestionComponentInfoIcon"})))}}))}}),_.H(_.r7,null,_.H(_.bb,{when:function(){return Ru()&&XI()}},function(){var V2={};
return _.H("button",{class:_.VD("ytSuggestionComponentRemoveLinkClearButton",(V2.ytSuggestionComponentRemoveLinkClearButtonSelected=function(){return KE()&&KE()===(Q==null?void 0:Q())},V2.ytSuggestionComponentRemoveLinkClearButtonHidden=function(){return!au()},V2)),
el:A,"on:mousedown":rm,"aria-label":Ut,id:function(){return KE()}},_.H(_.QD,{icon:"DISMISSAL",
className:"ytSuggestionComponentClearButtonIcon"}))}),_.H(_.bb,{when:function(){return!(Ru()&&Y().visualSuggestUrl!==void 0)&&XI()}},function(){var V2={};
return _.H("a",{class:_.VD("ytSuggestionComponentRemoveLink",(V2.ytSuggestionComponentRemoveLinkDark=Hw,V2.ytSuggestionComponentRemoveLinkSelected=function(){return KE()&&KE()===(Q==null?void 0:Q())},V2)),
el:m,"on:mousedown":rm,"aria-label":Ut,tabindex:0,role:"button",id:function(){return KE()}},Ut)}),_.H(_.bb,{when:function(){return!1}},function(){return _.H("button",{class:"ytSuggestionComponentQueryBuilderButton",
"on:click":eQ,"on:mousedown":x5,role:"button","aria-label":SvP},_.H(_.QD,{icon:"ARROW_DIAGONAL",className:"ytSuggestionComponentQueryBuilderButtonIcon"}))}))))}})},"pg");var MeX=_.$k(function(){return _.H("ytd-text-input-assistant",{class:"ytdTextInputAssistantHost"},_.H("button",{class:"ytdTextInputAssistantButton","on:click":_.kL(function(){whX().inputMethodsTracker.add(3);var S,p=(S=_.g7("SBOX_SETTINGS"))==null?void 0:S.REQUEST_LANGUAGE;if(p)return _.uL("//www.google.com/textinputassistant/14/"+p+"_tia.js"),!1})},_.H("img",{class:"ytdTextInputAssistantIcon",
tia_field_name:"search_query",tia_disable_swap:"true",tia_property:"youtube",src:"//www.gstatic.com/inputtools/images/tia.png",alt:""})))},"qg");var I6P=function(){this.cache=new Map},dno=function(S){for(var p=_.d(S.cache.entries()),U=p.next();!U.done;U=p.next()){var Y=_.d(U.value);
U=Y.next().value;Y=Y.next().value;Y.suggestions.some(function(L){return L.type===35})&&S.cache.delete(U)}};var Vet=_.oc.SEARCH,TSt=_.oc.SEARCH_CLEAR_LABEL,W0s=new _.$g("FAKE_SUGGEST_RESPONSE");_.qm(_.$k(function(S){function p(){$m||($m=setTimeout(function(){El()},1E3))}
function U(Jq,zj,bJ){if(Jq.trim()){oO=Jq;_.en("REFINEMENTS_TUPLE",void 0);rm=!0;var HY;zj=fbt(XO,zj);var IP=(HY=S.searchEndpoint)==null?void 0:HY.call(S);HY=Tj.value.value;IP||(IP=gMJ);var y2;(y2=_.b(IP.commandMetadata,_.NU))!=null&&y2.url||(y2=Error("ll`"+JSON.stringify(IP)),_.ZP(y2),IP=gMJ);y2=_.h9.unsafeClone(IP);IP=_.wK(_.b(y2.commandMetadata,_.NU).url,"search_query",Jq);_.xY(location.href,"sv")==="1"&&(_.b(y2,_.HB).params="EgOAAgE%3D",IP=_.wK(IP,"sv","1"));_.b(y2,_.HB)&&(_.b(y2,_.HB).query=Jq);
IP=IP.replace(/%20/g,"+");_.b(y2.commandMetadata,_.NU).url=IP;bJ=_.y("desktop_enable_entity_suggest")?{entityMid:bJ}:{};_.tW().resolve(_.cQ).resolveCommand(y2,{form:{tempData:Object.assign({},{gs_l:zj,oq:HY!=null?HY:Jq},bJ)}});El();Tj.value.value=Jq;Tj.value.blur();XO.reset()}}
function Y(Jq){return _.T(function(zj){return zj.return(new Promise(function(bJ){var HY=new XMLHttpRequest;HY.open("GET",GQq(Jq),!0);HY.withCredentials=!0;var IP=_.g7("SBOX_SETTINGS");(IP==null?0:IP.SEND_VISITOR_DATA)&&HY.setRequestHeader("X-Goog-Visitor-Id",IP==null?void 0:IP.VISITOR_DATA);HY.onload=function(){bJ(HY.responseText)};
HY.onerror=function(){_.eP(Error("ml"));bJ(null)};
setTimeout(function(){HY.abort()},1E4);
HY.send(null)}))})}
function L(Jq){var zj,bJ,HY,IP;return _.T(function(y2){switch(y2.nextAddress){case 1:return zj={credentials:"include",headers:rQX()},window.AbortController&&(bJ=new AbortController,setTimeout(function(){bJ.abort("ytsbox-suggest-timeout")},1E4),zj.signal=bJ.signal),_.M2(y2,2),_.k(y2,fetch(GQq(Jq),zj),4);
case 4:HY=y2.yieldResult.text();_.CA(y2,3);break;case 2:return IP=_.W4(y2),IP!=="ytsbox-abort-last"&&IP!=="ytsbox-suggest-timeout"&&_.eP(IP),y2.return(null);case 3:return y2.return(HY)}})}
function I(Jq){var zj,bJ,HY;return _.T(function(IP){switch(IP.nextAddress){case 1:if(zj=_.tW().resolve(_.AW(W0s)))return IP.return(zj);bJ=Date.now();p();return _.y("yt_searchbox_xhr")?_.k(IP,Y(Jq),5):_.k(IP,L(Jq),4);case 4:HY=IP.yieldResult;IP.jumpTo(3);break;case 5:HY=IP.yieldResult;case 3:if(HY){$m&&(clearTimeout($m),$m=null);var y2=XO,ys=bJ,u4=Jq.query.length===0;ys=Date.now()-ys;u4?y2.zeroPrefixRoundTripTime=ys:(y2.JSC$18427_totalRoundTripTime+=ys,y2.maxRoundTripTime=Math.max(y2.maxRoundTripTime,
ys),u4=Math.floor(ys/100),u4>=CSL.length?++y2.roundTripTimeHistogram[9]:++y2.roundTripTimeHistogram[CSL[u4]])}return IP.return(HY)}})}
function V(Jq){var zj,bJ,HY;return _.T(function(IP){if(IP.nextAddress==1)return(zj=kA.cache.get(jmn(Jq)))?IP.return(zj):_.k(IP,I(Jq),2);bJ=IP.yieldResult;if(bJ===null)return IP.return(null);HY=new ebi(bJ);Jq.query.length===0&&HY.suggestions.length===0||kA.cache.set(jmn(Jq),HY);return IP.return(HY)})}
function W(Jq){var zj,bJ;return _.T(function(HY){if(HY.nextAddress==1){Bw=!1;var IP=oO;IP=_.TUw()==="search"?(_.xY(location.href,"search_query")||_.xY(location.href,"q"))===IP:!1;zj=new bto(Jq,IP?oO:null);return _.k(HY,V(zj),2)}bJ=HY.yieldResult;if(bJ===null)return HY.return();zj.query.length===0&&(XO.zeroPrefixSuggestionCount=bJ.suggestions.length);if(zj.id<=Mt)return XO.outOfSyncResponseCount++,HY.return();if(document.activeElement!==Tj.value)return HY.return();Mt=zj.id;var y2=XO,ys=bJ.rawResponse[2]||
{};y2.experimentTriggeredBeforeFinal||(y2.experimentTriggeredBeforeFinal=y2.experimentTriggeredFinal);y2.experimentTriggeredFinal=!!ys.e;XO.updateSuggestions(bJ.suggestions);Z(-1);XI([]);bJ.suggestions!==K()&&rE(bJ.suggestions.length);G(bJ.suggestions);Je(bJ.suggestions.length>0&&bJ.suggestions[0].type===33);Ww&&(Ww.hidden=bJ.suggestions.length===0,TG()?(Ww.style.minWidth="",y2=Ww.style,ys=(IP=K()[0])==null?void 0:IP.ignoredPrefix,y2.marginLeft=(ys?Math.min(ys.length*6,Ut.value.offsetWidth):0).toString()+
"px"):(Ww.style.minWidth=Ut.value.offsetWidth+"px",Ww.style.marginLeft="0"),cE());_.OV(HY)})}
function O(){if(!rm)return!1;var Jq=_.g7("REFINEMENTS_TUPLE");return Jq?(Jq=Jq[1].map(function(zj,bJ){return new ZtP([zj,0,[71]],Tj.value.value,bJ)}),K()!==Jq&&rE(Jq.length),XI([]),G(Jq),XO.updateSuggestions(Jq),rm=!1,Ww.hidden=Jq.length===0,Bw=Jq.length>0,!0):!1}
function D(){var Jq=Tj.value.value;(typeof Jq==="string"||Jq instanceof String)&&Jq!==""?m(!0):m(!1)}
function z(){if(_.TUw()==="search"){var Jq=window.location.href;try{var zj=_.xY(Jq,"search_query")||_.xY(Jq,"q")||""}catch(bJ){zj=""}zj&&(Tj.value.value=zj,m(!0))}}
var Q=_.d(_.kj([],void 0,"kGFAjf")),J=Q.next().value;Q=Q.next().value;var K=J,G=Q;J=_.d(_.kj(-1,void 0,"mLGL9e"));var X=J.next().value,Z=J.next().value;J=_.d(_.kj(-1,void 0,"u2rYdc"));var l=J.next().value,a=J.next().value;J=_.d(_.kj(!1,void 0,"W9DFC"));var N=J.next().value,m=J.next().value;J=_.d(_.kj(!1,void 0,"Ip4dNc"));var A=J.next().value,q=J.next().value;Q=_.d(_.kj(!1,void 0,"ZNKSQb"));J=Q.next().value;Q=Q.next().value;var TG=J,Je=Q;Q=_.d(_.kj(!1,void 0,"JBrGLd"));J=Q.next().value;var GG=Q.next().value;
Q=_.d(_.kj(!1,void 0,"P2pD6e"));var Zw=Q.next().value,Ru=Q.next().value;Q=_.d(_.kj(1,void 0,"SjP20c"));var sX=Q.next().value,mq=Q.next().value;Q=_.d(_.kj([],void 0,"h4dRaf"));var au=Q.next().value,XI=Q.next().value;Q=_.d(_.kj(!1,void 0,"TUTzaf"));var nE=Q.next().value,ut=Q.next().value;Q=_.y("web_searchbox_animate_suggestions")&&"contentVisibility"in document.documentElement.style&&"interpolateSize"in document.documentElement.style;var Hw=_.vH(),Tj=_.vH(),Ut=_.vH(),Ww,kA=new I6P,XO=whX(),Vw=_.tW().resolve(_.AW(_.Cz)),
Kc=function(){var Jq;return((Jq=S.forceDarkMode)==null?void 0:Jq.call(S))||!(Vw==null||!Vw())},eQ=function(){return _.y("desktop_enable_scrollable_suggestions_panel")},x5="i"+cQn++,rm=!1,Bw=!1,oO="",$m=null,Mt=-1,El=function(){XI([]);
G([]);Je(!1);Ww&&(Ww.hidden=!0);$m&&(clearTimeout($m),$m=null);Z(-1)},KE=function(Jq,zj){Jq.preventDefault();
ut(!0);Ww&&(Ww.hidden=!1);var bJ=X();Jq=K();var HY=au();zj=Fpn(zj);bJ+=zj;for(bJ>=Jq.length?bJ=-1:bJ<-1&&(bJ=Jq.length-1);bJ!==-1&&(HY.includes(bJ)||bJ>=Jq.length||bJ<0);)bJ+=zj,bJ>=Jq.length&&(bJ=-1);Z(bJ);X()>=0&&(Tj.value.value=K()[X()].text,a(0),D(),Jq=X(),HY=l(),(HY=document.getElementById(F5[Jq][HY]))&&eQ()&&(Jq===K().length-1?Ww.scrollTop=Ww.scrollHeight:HY.scrollIntoView({block:"nearest",inline:"start"})))},yH=_.kL(function(Jq){if(!(Jq.relatedTarget instanceof Element&&Jq.relatedTarget.className.includes("ytSuggestionComponentRemoveLinkClearButton"))){q(!0);
var zj;(zj=S.focusCallback)==null||zj.call(S,!0);O()||(Bw?Ww.hidden=!1:(_.cv(Hw.value,"yt-autonav-pause-focus",{}),W(Jq.target.value)))}}),Gj=_.kL(function(Jq){if(!(Jq.relatedTarget instanceof Element&&Jq.relatedTarget.className.includes("ytSuggestionComponentRemoveLinkClearButton"))){q(!1);
var zj;(zj=S.focusCallback)==null||zj.call(S,!1);Ww.scrollTop=0;Ww.hidden=!0;_.cv(Hw.value,"yt-autonav-pause-blur",{})}}),MY=function(Jq){Jq=Fpn(Jq);
var zj;((zj=F5[X()])==null?0:zj[l()+Jq])&&a(l()+Jq)},V2=_.kL(function(Jq){var zj=Jq.target;
switch(Jq.keyCode){case 13:Jq.preventDefault();var bJ;if((bJ=F5[X()])==null?0:bJ[l()]){var HY;(HY=document.getElementById(F5[X()][l()]))==null||HY.dispatchEvent(new CustomEvent("mousedown",{detail:{wasSelectedByKeyboard:!0}}));break}Jq=Jq.shiftKey?4:3;bJ=XO;HY=X();bJ.selectedSuggestionIndex=HY;U(zj.value,Jq);break;case 27:Ww&&(Ww.hidden=!0);break;case 40:KE(Jq,40);break;case 38:KE(Jq,38);break;case 39:MY(39);break;case 37:MY(37);break;case 229:XO.inputMethodsTracker.add(4);break;default:XO.inputMethodsTracker.add(1),
lbo(XO)}return!1}),Tq=_.kL(function(Jq){W(Jq.target.value);
D();eQ()&&Ww&&(Ww.scrollTop=0);return!1}),Ku=_.kL(function(){XO.inputMethodsTracker.add(2);
lbo(XO);return!1});
_.hW(function(){if(Ww){XO.reset();if(window.ResizeObserver){var Jq=new ResizeObserver(function(){TG()||(Ww.style.minWidth=Ut.value.offsetWidth+"px")});
Jq.observe(Ut.value);(new ResizeObserver(function(){cE()})).observe(Ww);
_.FG(function(){Jq.disconnect()})}z();
window.addEventListener("yt-navigate-finish",z);window.addEventListener("yt-focus-searchbox",function(){Tj.value.focus()});
var zj;GG((zj=_.g7("SBOX_SETTINGS"))==null?void 0:zj.HAS_ON_SCREEN_KEYBOARD)}else _.ZP(new _.y7("suggestionsEl was not set in onInit. Component may be broken."),"WARNING")});
var VT=_.kL(function(Jq){Jq.preventDefault();U(Tj.value.value,12);return!1}),Cc=_.kL(function(Jq){Jq.preventDefault();
var zj,bJ;(zj=Tj)==null||(bJ=zj.value)==null||bJ.focus();var HY,IP;((HY=Tj)==null?void 0:(IP=HY.value)==null?void 0:IP.value)!==""&&(Tj.value.value="",Tj.value.dispatchEvent(new Event("input")));return!1}),aT=_.kL(function(){var Jq=JEq(Tj.value.value,K().filter(function(zj){return zj.type!==35}).map(function(zj){return{label:zj.text}}));
_.St(Hw.value,"yt-open-popup-action",[{openPopupAction:Jq},document.body]);return!1}),td=_.kL(function(){Tj.value.focus();
return!1}),V8=function(Jq,zj,bJ,HY,IP){XO.selectedSuggestionIndex=bJ;
U(zj,IP?3:1,HY)},Ix=function(Jq){Tj.value.value=Jq;
Tj.value.dispatchEvent(new Event("input"));XO.inputMethodsTracker.add(5);lbo(XO,!0)},F5=[[]],CS=function(Jq){var zj="searchbox-suggestion"+_.hs(_.jy);
F5[Jq].push(zj);return zj},rE=function(Jq){if(K()){F5=[[]];
for(var zj=0;zj<Jq;zj++)F5.push([])}},cE=function(){if(eQ()){var Jq=Ww,zj=Jq.scrollTop;
Jq=Jq.scrollHeight-Jq.clientHeight;Ru(zj>=Jq);zj=Math.abs(Jq-zj);zj<=40?mq(1-(40-zj)/40):mq(1)}},OP=function(){return"opacity: "+sX()*100+"%"},be=_.kL(function(){cE();
return!1}),wN=_.kL(function(){ut(!1);
return!1}),EX,Dd={},IT={},PY={},Ds={};
return _.H("yt-searchbox",{class:_.VD("ytSearchboxComponentHost",(Dd.ytSearchboxComponentMweb=!1,Dd.ytSearchboxComponentDesktop=!0,Dd["yt-searchbox-filled-query"]=function(){return N()},Dd["ytd-masthead"]=function(){return!A()},Dd.ytSearchboxComponentHostDark=Kc,Dd)),
role:"search",el:Hw,"client-ve-type":10349},_.H("div",{el:Ut,"on:click":td,class:_.VD("ytSearchboxComponentInputBox",(IT.ytSearchboxComponentInputBoxDark=Kc,IT.ytSearchboxComponentInputBoxHasFocus=A,IT))},_.H("form",{action:"/results",class:"ytSearchboxComponentSearchForm","on:submit":VT},_.H(_.n,{cond:A,then:function(){return _.H("div",{class:"ytSearchboxComponentInnerSearchIcon"},_.H(_.QD,{icon:"SEARCH"}))}}),_.H("input",{el:Tj,
class:_.VD("ytSearchboxComponentInput","yt-searchbox-input","title"),name:"search_query","aria-controls":x5,"aria-expanded":!((EX=Ww)==null?0:EX.hidden),type:"text",autocomplete:"off",autocorrect:"off",spellcheck:!1,"on:blur":Gj,"on:focus":yH,"on:input":Tq,"on:keydown":V2,"on:paste":Ku,placeholder:S.placeholderText,"aria-activedescendant":function(){var Jq;return(Jq=F5[X()])==null?void 0:Jq[l()]},
"aria-autocomplete":"list",role:"combobox"})),_.H(_.n,{cond:J,then:function(){return _.H("div",{class:"ytSearchboxComponentYtdTextInputAssistantWrapper"},_.H(MeX,null))}}),_.H(_.n,{cond:N,
then:function(){return _.H("div",{class:"ytSearchboxComponentClearButtonWrapper"},_.H("button",{class:"ytSearchboxComponentClearButton","on:click":Cc,"aria-label":S.clearButtonAriaLabel||TSt},_.H(_.QD,{icon:"DISMISSAL",className:"ytSearchboxComponentClearButtonIcon"}),_.H(_.yD,{model:{}})))}})),_.H("button",{class:_.VD("ytSearchboxComponentSearchButton",(PY.ytSearchboxComponentSearchButtonDark=Kc,PY)),
"on:click":VT,"aria-label":Vet,title:S.placeholderText},_.H(_.QD,{icon:"SEARCH"})),_.H(_.n,{cond:function(){if(aLo()&&_.y("mweb_voice_search")&&S.voiceSearchButton)return S.voiceSearchButton()},
then:function(Jq){var zj={};return _.H("div",{class:_.VD("ytSearchboxComponentVoiceSearchWrapper",(zj.ytSearchboxComponentHideVoiceSearchButton=function(){return N()},zj))},_.H(_.yP,{data:Jq},{buttonRenderer:function(bJ){return _.H(_.ft,{data:bJ.data,
onButtonClickCallback:function(){}})}}))}}),_.H("div",{el:_.$X(function(Jq){return void(Ww=Jq)}),
id:x5,class:_.VD("ytSearchboxComponentSuggestionsContainer",(Ds.ytSearchboxComponentSuggestionsContainerDark=Kc,Ds["yt-searchbox-suggestions-container"]=!1,Ds.ytSearchboxComponentSuggestionsContainerScrollable=eQ(),Ds.ytSearchboxComponentSuggestionsContainerAnimated=Q,Ds)),"on:scroll":be,"on:mousemove":wN,role:"listbox",hidden:!0},_.H(_.KU,{each:K},function(Jq,zj){return _.H(L0d,{suggestion:Jq,isHighlighted:function(){return zj()===X()},
onClickCallback:V8,onHoverUpdateCallback:function(bJ){if(_.y("desktop_enable_single_suggestion_highlight")){var HY=zj();bJ&&(a(0),Z(HY))}},
onRemoveCallback:function(bJ){dno(kA);bJ===void 0||bJ<0||au().includes(bJ)||XI([].concat(_.jo(au()),[bJ]))},
labels:S.labels,queryBuilderFunction:Ix,suggestionIndex:zj,generateUniqueId:CS,highlightedId:function(){var bJ;return(bJ=F5[X()])==null?void 0:bJ[l()]},
useScrollMargin:eQ(),isKeyboardMode:nE})}),_.H(_.n,{cond:function(){return!TG()&&K().find(function(Jq){return Jq.type!==35})&&_.y("searchbox_reporting")},
then:function(){return _.H("button",{class:"ytSearchboxComponentReportButton","on:mousedown":aT},_.Oh("SBOX_INAPPROPRIATE_PROMPT",void 0,"Report search predictions"))}}),_.H(_.n,{cond:function(){return!Zw()&&eQ()},
then:function(){return _.H("div",{class:"ytSearchboxComponentSuggestionsContainerFooter"},_.H("div",{class:"ytSearchboxComponentSuggestionsContainerFooterGradient",style:OP}))}})))},"rg"),"yt-searchbox",{props:{searchEndpoint:_.x2,
placeholderText:_.x2,labels:_.x2,voiceSearchButton:_.x2,focusCallback:_.BX,clearButtonAriaLabel:_.x2,forceDarkMode:_.x2}});var dD=function(){var S=_.w.apply(this,arguments)||this;S.menuButtonTargetId="topbar-guide-menu";S.narrow=!1;S.menuStrings={BACK_ALT_LABEL:_.Oh("BACK_ALT_LABEL",void 0,"Back"),GUIDE_ALT_LABEL:_.Oh("GUIDE_ALT_LABEL",void 0,"Guide"),LOGO_ALT_LABEL:_.Oh("LOGO_ALT_LABEL",void 0,"YouTube Home"),SEARCH_ALT_LABEL:_.Oh("SBOX_PLACEHOLDER",void 0,"Search")};S.pageDarkTheme=document.documentElement.hasAttribute("dark");S.watchPageScrollTop=0;S.theater=!1;S.fullscreen=!1;S.desktopUnifiedSearchPanelMode=_.y("desktop_enable_unified_search_panel");
S.cinematicTheaterMode=_.y("web_cinematic_theater_mode");S.ytSearchboxFocused=!1;S.searchboxLabels=_.g7("SBOX_LABELS");S.topbarIsAboveChipbar=!1;S.isDarkThemeForced=!1;S.areGhostCardsHidden=!1;S.guideKeyboardToggle=!1;S.voiceSearchManager=h_J();S.actionMap={"yt-send-feedback-action":"onYtSendFeedbackAction","yt-fullscreen-change-action":"onFullscreenChangeAction"};S.setYtSearchboxFocused=function(p){S.ytSearchboxFocused=p};
return S};
_.r(dD,_.w);_.M=dD.prototype;_.M.computeSimpleText=function(S){return _.mA(S)};
_.M.onDarkChanged=function(){for(var S=_.d(this.buttons||[]),p=S.next();!p.done;p=S.next())p.value.isOverlay=!!this.dark;S=_.d(this.buttonRenderers||[]);for(p=S.next();!p.done;p=S.next())p.value.overrides=this.computeButtonOverride()};
_.M.computeButtonOverride=function(){return this.dark?{style:"overlay"}:void 0};
_.M.configureRendererStamper=function(){return{"data.interstitial":{id:"interstitial",mapping:{consentBumpV2Renderer:"ytd-consent-bump-v2-renderer"}},"data.voiceSearchButton":{id:"voice-search-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[boundOnTapVoiceButton]]",overrides:"[[buttonOverrides]]"}}},reuseComponents:!1},"data.topbarButtons":{id:"buttons",events:!0,mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[buttonOverrides]]"}},
notificationTopbarButtonRenderer:{component:"ytd-notification-topbar-button-renderer",properties:{isOverlay:"[[dark]]"}},iconBadgeTopbarButtonRenderer:{component:"ytd-icon-badge-topbar-button-renderer",properties:{isOverlay:"[[dark]]"}},topbarMenuButtonRenderer:"ytd-topbar-menu-button-renderer"},initialRenderPriority:1},"data.a11ySkipNavigationButton":{id:"skip-navigation",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.M.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","banner");var S=_.Zr(_.Pt(),"aa");_.U2(this.hostElement,"shell",!1);!this.hostElement.classList.contains("dark")&&!this.hostElement.classList.contains("theater")||S||(this.isDarkThemeForced=this.dark=!0);this.logoType?(S=this.hostElement.querySelector("#masthead-logo"))&&(_.y("polymer_on_demand_shady_dom")?S.setAttribute("slot","masthead-logo-old"):_.yz(S)):this.logo.hidden=!0;document.addEventListener("yt-watch-masthead-scroll",
_.d9(this,this.onWatchScroll));document.addEventListener("yt-set-theater-mode-enabled",_.d9(this,this.onSetTheaterModeEnabled))};
_.M.detached=function(){document.removeEventListener("yt-watch-masthead-scroll",_.d9(this,this.onWatchScroll));document.removeEventListener("yt-set-theater-mode-enabled",_.d9(this,this.onSetTheaterModeEnabled))};
_.M.dataChanged=function(){var S=this.data;S&&(this.voiceEnabled=S.voiceSearchButton?h_J().isSupported():!1,_.GQj(_.Dq(),this.menuButtonTargetId,this.guideButton),S.onReceivedActions&&S.onReceivedActions.length>0&&!this.hasShownCreatorEmailOptInPopup&&(_.Lp(this.hostElement,S.onReceivedActions,this.hostElement),this.hasShownCreatorEmailOptInPopup=!0),!this.hasRenderedWithData&&S&&(this.hasRenderedWithData=!0,this.logo.hidden=!1,_.U2(this.hostElement,"dark",!1),_.U2(this.hostElement,"theater",!1),
(S=this.hostElement.querySelector("#masthead-logo"))&&(_.y("polymer_on_demand_shady_dom")?S.setAttribute("slot","masthead-logo-old"):_.yz(S))))};
_.M.computeCenterHidden=function(){var S;return this.data&&!((S=this.data.searchbox)==null?0:S.fusionSearchboxRenderer)};
_.M.onRendererStamperFinished=function(){this.areGhostCardsHidden||(_.U2(this.hostElement,"masthead-finish",!0),this.areGhostCardsHidden=!0)};
_.M.onWatchPageChange=function(){this.isWatchPage||this.resetBackground()};
_.M.onWatchScroll=function(S){this.watchPageScrollTop=S.detail||0;this.updateMastheadBackgroundOpacity()};
_.M.onFullscreenChangeAction=function(S){S||(this.watchPageScrollTop=0);this.fullscreen=S;this.updateMastheadBackgroundOpacity()};
_.M.onSetTheaterModeEnabled=function(S){this.theater=S.detail.enabled;this.updateMastheadBackgroundOpacity()};
_.M.updateMastheadBackgroundOpacity=function(){this.shouldShowCinematicMastHead()&&(this.isBigPlayer()?this.resetBackground():document.body.className.indexOf("lock-scrollbar")===-1&&this.setBackgroundOpacity(this.watchPageScrollTop))};
_.M.resetBackground=function(){this.background.style.removeProperty("opacity");this.watchPageScrollTop=0};
_.M.setBackgroundOpacity=function(S){S=this.calculateBackgroundOpacity(S);this.background.style.opacity=""+S};
_.M.calculateBackgroundOpacity=function(S){var p=this.theater&&this.cinematicTheaterMode?.6:0,U=this.hostElement.clientHeight/2;return Math.min(Math.max(S,0),U)/U*(1-p)+p};
_.M.shouldShowCinematicMastHead=function(){var S=_.y("kevlar_watch_grid")&&!_.y("swatchie_cinematic_masthead_ks");return this.isWatchPage&&(S||this.pageDarkTheme)};
_.M.isBigPlayer=function(){return this.fullscreen||this.theater&&!this.cinematicTheaterMode};
_.M.focusGuide=function(){this.guideButton.focus()};
_.M.onGuideToggleTap=function(){_.cv(this.hostElement,"yt-guide-toggle",{isKeyInput:this.guideKeyboardToggle});this.guideKeyboardToggle=!1};
_.M.onGuideButtonKeydown=function(){this.guideKeyboardToggle=!0};
_.M.onGuideToggleHover=function(){_.cv(this.hostElement,"yt-guide-hover")};
_.M.onSearchCloseClick=function(){this.ytdExpandableInputBehavior.showInput=!1};
_.M.narrowChanged=function(){this.narrow?this.ytSearchboxFocused&&this.ytdExpandableInputBehavior.openOnClick_():this.ytdExpandableInputBehavior.showInput=!1};
_.M.closeOnOutsideClickCondition=function(S){for(S=_.E1(S);S[0];){var p=S.shift();if(p instanceof Element&&p.id==="kbd")return!1}return!0};
_.M.onVoiceTap=function(){this.pausePlayer();this.voiceSearchManager.start()};
_.M.pausePlayer=function(){var S;(S=_.$L())==null||S.pause();this.pauseMiniplayer()};
_.M.pauseMiniplayer=function(){if(this.isMiniplayerActive()){var S;(S=_.tW().resolve(_.eC).getPlayerElement())==null||S.pause()}};
_.M.isMiniplayerActive=function(){return _.tW().resolve(_.eC).isMiniplayerActive()};
_.M.updateNarrowFromBinding=function(S){this.narrow=S.detail.value};
_.M.onYtSendFeedbackAction=function(){_.St(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"])};
_.$u.Object.defineProperties(dD.prototype,{guideIcon:{configurable:!0,enumerable:!0,get:function(){return _.y("enable_web_delhi_icons")?"menu":"yt-icons:menu"}},
shouldShowVoiceSearchButton:{configurable:!0,enumerable:!0,get:function(){return!!this.voiceEnabled&&!this.desktopUnifiedSearchPanelMode}},
voiceSearchButton:{configurable:!0,enumerable:!0,get:function(){if(this.desktopUnifiedSearchPanelMode){var S;return(S=this.data)==null?void 0:S.voiceSearchButton}}}});
dD.prototype.narrowChanged=dD.prototype.narrowChanged;dD.prototype.onWatchPageChange=dD.prototype.onWatchPageChange;dD.prototype.onRendererStamperFinished=dD.prototype.onRendererStamperFinished;dD.prototype.dataChanged=dD.prototype.dataChanged;dD.prototype.onDarkChanged=dD.prototype.onDarkChanged;_.x([_.F(_.ji),_.E("design:type",Object)],dD.prototype,"ironResizableBehavior",void 0);_.x([_.F(_.efd),_.E("design:type",Object)],dD.prototype,"ytdExpandableInputBehavior",void 0);
_.x([_.F(_.uc.YtdGuideStateAwareBehavior),_.E("design:type",Object)],dD.prototype,"ytdGuideStateAwareBehavior",void 0);_.x([_.F(_.qH.YtRendererstamperBehavior),_.E("design:type",Object)],dD.prototype,"ytRendererstamperBehavior",void 0);_.x([_.F(_.eL.YtComponentBehavior),_.E("design:type",Object)],dD.prototype,"ytComponentBehavior",void 0);_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],dD.prototype,"ytRendererBehavior",void 0);
_.x([_.F(_.Aj.YtActionHandlerBehavior),_.E("design:type",Object)],dD.prototype,"ytActionHandlerBehavior",void 0);_.x([_.F(_.Xh),_.E("design:type",Object)],dD.prototype,"ytdReduxBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],dD.prototype,"data",void 0);_.x([_.g(),_.E("design:type",Object)],dD.prototype,"narrow",void 0);_.x([_.g(),_.E("design:type",Object)],dD.prototype,"logoType",void 0);_.x([_.g(),_.E("design:type",Boolean)],dD.prototype,"voiceEnabled",void 0);
_.x([_.g(),_.E("design:type",Object)],dD.prototype,"menuStrings",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Boolean)],dD.prototype,"dark",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],dD.prototype,"pageDarkTheme",void 0);_.x([_.g(),_.E("design:type",Object)],dD.prototype,"watchPageScrollTop",void 0);_.x([_.g({reflectToAttribute:!0,selector:_.PJ}),_.E("design:type",Boolean)],dD.prototype,"isWatchPage",void 0);
_.x([_.g({reflectToAttribute:!0,selector:_.HQX}),_.E("design:type",Boolean)],dD.prototype,"isShortsPage",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],dD.prototype,"theater",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],dD.prototype,"fullscreen",void 0);_.x([_.g({reflectToAttribute:!0,selector:_.J1k}),_.E("design:type",String)],dD.prototype,"frostedGlassMode",void 0);_.x([_.g(),_.E("design:type",Object)],dD.prototype,"ytSearchboxFocused",void 0);
_.x([_.kk("#buttons > *"),_.E("design:type",Array)],dD.prototype,"buttons",void 0);_.x([_.kk("ytd-button-renderer"),_.E("design:type",Array)],dD.prototype,"buttonRenderers",void 0);_.x([_.O2("#background"),_.E("design:type",HTMLDivElement)],dD.prototype,"background",void 0);_.x([_.O2("#guide-button"),_.E("design:type",Object)],dD.prototype,"guideButton",void 0);_.x([_.O2("#logo"),_.E("design:type",Object)],dD.prototype,"logo",void 0);
_.x([_.g({computed:"computeButtonOverride(dark)"}),_.E("design:type",Object)],dD.prototype,"buttonOverrides",void 0);_.x([_.z4("dark"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],dD.prototype,"onDarkChanged",null);_.x([_.g({value:function(){return this.onVoiceTap.bind(this)}}),
_.E("design:type",Function)],dD.prototype,"boundOnTapVoiceButton",void 0);_.x([_.g(),_.E("design:type",Object)],dD.prototype,"topbarIsAboveChipbar",void 0);_.x([_.g(),_.E("design:type",String),_.E("design:paramtypes",[])],dD.prototype,"guideIcon",null);_.x([_.e("voiceEnabled"),_.E("design:type",Boolean),_.E("design:paramtypes",[])],dD.prototype,"shouldShowVoiceSearchButton",null);_.x([_.e("data"),_.E("design:type",Object),_.E("design:paramtypes",[])],dD.prototype,"voiceSearchButton",null);
_.x([_.z4("data"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],dD.prototype,"dataChanged",null);_.x([_.Vd("yt-rendererstamper-finished"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],dD.prototype,"onRendererStamperFinished",null);_.x([_.z4("isWatchPage"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],dD.prototype,"onWatchPageChange",null);
_.x([_.z4("narrow"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],dD.prototype,"narrowChanged",null);dD=_.x([_.f({disableElementRegistration:!0,is:"ytd-masthead"})],dD);
_.C(dD,"ytd-masthead",function(){if(AQd!==void 0)return AQd;var S=document.createElement("template");_.h(S,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-masthead--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<iron-media-query query="max-width: 656px" query-matches="[[narrow]]" on-query-matches-changed="updateNarrowFromBinding" class="style-scope ytd-masthead">\n</iron-media-query>\n<div id="ticker" class="style-scope ytd-masthead"></div>\n<div id="interstitial" class="style-scope ytd-masthead"></div>\n<div id="background" hidden="[[hideBackground]]" class="style-scope ytd-masthead"></div>\n<div id="container" class="style-scope ytd-masthead">\n  <div id="start" class="style-scope ytd-masthead">\n    <yt-icon-button id="back-button" label="[[menuStrings.BACK_ALT_LABEL]]" on-click="onSearchCloseClick" class="style-scope ytd-masthead">\n      <yt-icon disable-upgrade$="[[!showInput]]" icon="yt-icons:arrow-back" class="style-scope ytd-masthead">\n      </yt-icon>\n    </yt-icon-button>\n    <tp-yt-paper-tooltip id="back-button-tooltip" disable-upgrade$="[[!showInput]]" for="back-button" class="style-scope ytd-masthead">\n      [[menuStrings.BACK_ALT_LABEL]]\n    </tp-yt-paper-tooltip>\n    <yt-icon-button id="guide-button" label="[[menuStrings.GUIDE_ALT_LABEL]]" pressed="[[guideOpened]]" toggleable="true" on-click="onGuideToggleTap" on-keydown="onGuideButtonKeydown" on-mouseenter="onGuideToggleHover" class="style-scope ytd-masthead">\n      <yt-icon id="guide-icon" icon="[[guideIcon]]" class="style-scope ytd-masthead"></yt-icon>\n    </yt-icon-button>\n    <slot name="masthead-logo" class="style-scope ytd-masthead"></slot>\n    <ytd-topbar-logo-renderer id="logo" country-code="[[data.countryCode]]" data="[[data.logo.topbarLogoRenderer]]" logo-type="[[logoType]]" use-dark-theme-yoodle="[[dark]]" class="style-scope ytd-masthead">\n    </ytd-topbar-logo-renderer>\n    <div id="skip-navigation" class="style-scope ytd-masthead"></div>\n  </div>\n  <div id="center" hidden="[[computeCenterHidden(data)]]" class="style-scope ytd-masthead">\n    <yt-searchbox clear-button-aria-label="[[data.searchbox.fusionSearchboxRenderer.clearButton.buttonRenderer.accessibilityData.accessibilityData.label]]" focus-callback="[[setYtSearchboxFocused]]" force-dark-mode="[[dark]]" labels="[[searchboxLabels]]" placeholder-text="[[computeSimpleText(data.searchbox.fusionSearchboxRenderer.placeholderText)]]" search-endpoint="[[data.searchbox.fusionSearchboxRenderer.searchEndpoint]]" voice-search-button="[[voiceSearchButton]]" class="style-scope ytd-masthead">\n    </yt-searchbox>\n    <yt-icon-button id="search-button-narrow" label="[[menuStrings.SEARCH_ALT_LABEL]]" on-click="openOnClick_" class="style-scope ytd-masthead">\n      <yt-icon class="topbar-icons style-scope ytd-masthead" disable-upgrade$="[[!narrow]]" icon="yt-icons:search">\n      </yt-icon>\n      <tp-yt-paper-tooltip disable-upgrade$="[[!narrow]]" for="search-button-narrow" hidden="[[!narrow]]" class="style-scope ytd-masthead">\n        [[menuStrings.SEARCH_ALT_LABEL]]\n      </tp-yt-paper-tooltip>\n    </yt-icon-button>\n    <div id="voice-search-button" hidden="[[!shouldShowVoiceSearchButton]]" class="style-scope ytd-masthead">\n    </div>\n  </div>\n  <div id="end" class="style-scope ytd-masthead">\n    <slot name="masthead-skeleton" class="style-scope ytd-masthead"></slot>\n    <div id="buttons" class="style-scope ytd-masthead"></div>\n  </div>\n</div>\n');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);return AQd=S},{mode:_.UW("kevlar_poly_si_batch_j036")?1:2});var Og5;var k3i={},HgP={},DnA={},zPX={},QRA=(zPX.OFFLINE=(k3i["publicytnetworkstatus-online"]="BACK_ONLINE",k3i),zPX.ONLINE=(HgP["publicytnetworkstatus-offline"]="OFFLINE",HgP),zPX.BACK_ONLINE=(DnA["publicytnetworkstatus-offline"]="OFFLINE",DnA.TIMER_TRIGGER="ONLINE",DnA),zPX),VW=function(){var S=_.w.apply(this,arguments)||this;S.currentState="ONLINE";S.scheduledJobId=0;S.bannerString="";S.bannerVe=null;S.networkStatusManagerInstance=new _.EP;return S};
_.r(VW,_.w);_.M=VW.prototype;_.M.attached=function(){var S=this;this.networkStatusManagerInstance.isNetworkAvailable()||this.stateChangeHandler("publicytnetworkstatus-offline");this.networkStatusManagerInstance.listen("publicytnetworkstatus-online",function(){S.stateChangeHandler("publicytnetworkstatus-online")});
this.networkStatusManagerInstance.listen("publicytnetworkstatus-offline",function(){S.stateChangeHandler("publicytnetworkstatus-offline")})};
_.M.detached=function(){var S=this;this.networkStatusManagerInstance.unlisten("publicytnetworkstatus-online",function(){S.stateChangeHandler("publicytnetworkstatus-online")});
this.networkStatusManagerInstance.unlisten("publicytnetworkstatus-offline",function(){S.stateChangeHandler("publicytnetworkstatus-offline")})};
_.M.enterState=function(S){var p=this;this.scheduledJobId&&_.PA.cancelJob(this.scheduledJobId);S==="ONLINE"?(this.logVisibility(!1),this.bannerString=""):S==="OFFLINE"?(this.logVisibility(!0),this.bannerString=_.Oh("NO_INTERNET_CONNECTION",void 0,"No internet connection")):S==="BACK_ONLINE"&&(this.bannerString=_.Oh("BACK_ONLINE",void 0,"Back Online"),this.scheduledJobId=_.bQ(_.PA,function(){p.stateChangeHandler("TIMER_TRIGGER")},3E3));
this.currentState=S};
_.M.stateChangeHandler=function(S){(S=QRA[this.currentState][S])&&this.enterState(S)};
_.M.logVisibility=function(S){var p=_.X$();this.createBannerVe(S);p&&this.bannerVe&&(S?_.fp(p,[this.bannerVe]):_.Cp(p,[this.bannerVe]))};
_.M.createBannerVe=function(S){!this.bannerVe&&S&&(this.bannerVe=_.bZ(37929),_.U8(_.HX(),this.bannerVe))};
_.x([_.g({reflectToAttribute:!0}),_.E("design:type",String)],VW.prototype,"currentState",void 0);_.x([_.g(),_.E("design:type",Object)],VW.prototype,"scheduledJobId",void 0);_.x([_.g(),_.E("design:type",Object)],VW.prototype,"bannerString",void 0);VW=_.x([_.f({disableElementRegistration:!0,is:"ytd-network-status-banner"})],VW);
_.C(VW,"ytd-network-status-banner",function(){if(Og5!==void 0)return Og5;var S=document.createElement("template");_.h(S,'\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');S.content.insertBefore(_.t().content.cloneNode(!0),S.content.firstChild);return Og5=
S},{mode:1});var nyt;var Tz=function(){var S=_.w.apply(this,arguments)||this;S.actionMap={"yt-update-permission-role-command":"handleUpdatePermissionRoleCommand"};S.hidden=!0;S.frostedGlass=_.y("web_frosted_glass");return S};
_.r(Tz,_.w);Tz.prototype.computeHidden=function(S){return S&&S.status?!1:!0};
Tz.prototype.handleUpdatePermissionRoleCommand=function(S){if(S=_.b(S,_.ODt))if(S=_.b(S.renderer,_.WZe))this.data=S};
_.x([_.F(_.Aj.YtActionHandlerBehavior),_.E("design:type",Object)],Tz.prototype,"ytActionHandlerBehavior",void 0);_.x([_.F(_.eL.YtComponentBehavior),_.E("design:type",Object)],Tz.prototype,"componentBehavior",void 0);_.x([_.g({value:!0,computed:"computeHidden(data)"}),_.E("design:type",Object)],Tz.prototype,"hidden",void 0);_.x([_.g(),_.E("design:type",Object)],Tz.prototype,"data",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Boolean)],Tz.prototype,"frostedGlass",void 0);
Tz=_.x([_.f({disableElementRegistration:!0,is:"ytd-permission-role-bottom-bar-renderer"})],Tz);
_.C(Tz,"ytd-permission-role-bottom-bar-renderer",function(){if(nyt!==void 0)return nyt;var S=document.createElement("template");_.h(S,'\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');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);return nyt=S},{mode:1});var JuJ;var yud;var Xd5={productId:"5047190",bucket:"suggest",enableAnonymousFeedback:!0,flow:"submit",allowNonLoggedInFeedback:!0};var W_=function(){return _.w.apply(this,arguments)||this};
_.r(W_,_.w);_.M=W_.prototype;_.M.attached=function(){this.JSC$18529_scroller&&(this.JSC$18529_scroller.dialogElement=this.hostElement.parentNode,this.JSC$18529_scroller.attached&&typeof this.JSC$18529_scroller.attached==="function"&&this.JSC$18529_scroller.attached());this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.M.dataChanged=function(){if(this.data!==void 0){Array.prototype.slice.call(this.hostElement.querySelectorAll("tp-yt-paper-checkbox")).forEach(function(U){U.checked=!1});
this.catagorySelected=this.suggestionSelected=!1;var S=_.tB(this.hostElement);S.querySelector("tp-yt-paper-radio-group").selected="";var p=S.querySelector("#reason-text");p&&(p.value="");S.querySelector("#description-text").value=""}};
_.M.canSubmit=function(S,p){_.cv(this.hostElement,"yt-invalidate-popup-tabbables");return!(S&&p)};
_.M.onCancel=function(){_.St(this.hostElement,"yt-close-popup-action",["ytd-search-suggestion-report-dialog"])};
_.M.onSubmit=function(){var S=Array.prototype.slice.call(this.hostElement.querySelectorAll("tp-yt-paper-checkbox")).filter(function(I){return I.active}).map(function(I){return I.innerText.trim()}),p=this.hostElement.querySelector("tp-yt-paper-radio-group"),U=p.selectedItem,Y=U.name;
U=U.innerText.trim();var L=p.querySelector("#reason-text");p=void 0;L&&(p=L.value);(L=this.descriptionText.value)&&(L=L.trim());P5J(this.data.searchQuery,S,Y,U,L,p);_.St(this.hostElement,"yt-close-popup-action",["ytd-search-suggestion-report-dialog"]);this.sendFormSubmitToast()};
_.M.sendFormSubmitToast=function(){var S=_.N9(_.Oh("SBOX_INAPPROPRIATE_TOAST"));_.St(this.hostElement,"yt-open-popup-action",[S,this])};
_.M.onIronChange=function(){this.suggestionSelected=Array.prototype.slice.call(this.hostElement.querySelectorAll("tp-yt-paper-checkbox")).some(function(S){return S.active})};
_.M.onIronSelect=function(){this.catagorySelected=!!this.hostElement.querySelector("tp-yt-paper-radio-group").selected};
W_.prototype.onIronSelect=W_.prototype.onIronSelect;W_.prototype.onIronChange=W_.prototype.onIronChange;W_.prototype.dataChanged=W_.prototype.dataChanged;_.x([_.g(),_.E("design:type",Object)],W_.prototype,"data",void 0);_.x([_.g({value:!0,computed:"canSubmit(suggestionSelected,catagorySelected)"}),_.E("design:type",Boolean)],W_.prototype,"submitDisabled",void 0);_.x([_.g(),_.E("design:type",Boolean)],W_.prototype,"suggestionSelected",void 0);
_.x([_.g(),_.E("design:type",Boolean)],W_.prototype,"catagorySelected",void 0);_.x([_.O2("#scroller"),_.E("design:type",Object)],W_.prototype,"JSC$18529_scroller",void 0);_.x([_.O2("#description-text"),_.E("design:type",Object)],W_.prototype,"descriptionText",void 0);_.x([_.z4("data"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],W_.prototype,"dataChanged",null);
_.x([_.Vd("iron-change"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],W_.prototype,"onIronChange",null);_.x([_.Vd("iron-select"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],W_.prototype,"onIronSelect",null);W_=_.x([_.f({disableElementRegistration:!0,is:"ytd-search-suggestion-report-dialog"})],W_);
_.C(W_,"ytd-search-suggestion-report-dialog",function(){if(yud!==void 0)return yud;var S=document.createElement("template");_.h(S,'\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');
S.content.insertBefore(_.t().content.cloneNode(!0),S.content.firstChild);return yud=S},{mode:1});var OU=function(S){var p=S.openPopupAction;var U=S.target;var Y=S.container;var L=S.popupContainerConfig;var I=S.getElement;S=S.removeWhenClosed===void 0?!1:S.removeWhenClosed;this.naturalHeight=this.popupContent=this.popup=void 0;this.openPopupAction=p;this.target=U;this.container=Y;this.popupContainerConfig=L;this.getElement=I;this.JSC$18535_popupConfig=this.popupContainerConfig.JSC$17652_popupConfig[this.openPopupAction.popupType];this.rendererName=(p=this.getName())?_.gXw(p,YzY(this.popupContainerConfig,
p)):"";_.y("ytpopup_disable_default_html_caching")&&(this.removeWhenClosed=S);this.createPopup()};
OU.prototype.updatePopup=function(S){this.openPopupAction=S;this.JSC$18535_popupConfig=this.popupContainerConfig.JSC$17652_popupConfig[this.openPopupAction.popupType];K0i(this);_.y("reorder_popup_updates_killswitch")&&bgY(this);_.y("kevlar_keyboard_button_focus")&&(this.popup.restoreFocusOnClose=!0)};
var G3T=function(S,p,U){S.target=U;var Y;U=((Y=S.target.polymerController)!=null?Y:S.target).popupPositionTarget||S.target;S.JSC$18535_popupConfig.targetContainer&&(U=S.container);S.popup.positionTarget=U;S.popupContent.positionTarget=U;_.y("reorder_popup_updates_killswitch")||bgY(S);S.JSC$18535_popupConfig.forceFocus&&(S.popupContent.style.outline="none");S.popupContent.tabIndex=-1;S.JSC$18535_popupConfig.narrowProperties&&(S.popup.style.position="static");S.JSC$18535_popupConfig.preventAutonav&&
S.popup.setAttribute("prevent-autonav",!0);S.JSC$18535_popupConfig.forceCloseOnOutsideClick&&S.popup.setAttribute("force-close-on-outside-click",!0);jRP(S,p);ruY(S,S.JSC$18535_popupConfig.styles);S.isRtl()&&ruY(S,S.JSC$18535_popupConfig.rtlStyles);if(!S.openPopupAction.shouldStopParentSignal){var L;p=(L=S.target.polymerController)!=null?L:S.target;(S.popupContent.startForwardingEvents||S.popupContainerConfig.forwardingEnabledPopups.has(S.rendererName))&&p.parentComponent!==S.popupContent&&S.popupContent!==
S.target&&S.target!==document.body&&(S.popupContent.startForwardingEvents?S.popupContent.startForwardingEvents(S.popupContainerConfig.forwardedEvents,S.target):(S.JSC$18535_eventForwarder||(S.JSC$18535_eventForwarder=new _.dI(S.popupContent)),S.JSC$18535_eventForwarder.start(S.popupContainerConfig.forwardedEvents,S.target)))}};
OU.prototype.refit=function(){this.popup.opened&&this.popup.refit()};
var jRP=function(S,p){hPL(S,p&&S.JSC$18535_popupConfig.narrowProperties?S.JSC$18535_popupConfig.narrowProperties:S.JSC$18535_popupConfig.properties);S.isRtl()&&hPL(S,S.JSC$18535_popupConfig.rtlProperties);bgY(S)};
OU.prototype.createPopup=function(){var S=this.JSC$18535_popupConfig.component;if(this.popupContent=RPd(this,this.rendererName)){if(S){this.popup=RPd(this,S);var p=this.popupContent;_.y("web_enable_wrapper_for_cow_component_in_popup")&&(p=document.createElement("div"),p.appendChild(this.popupContent));_.y("kevlar_keyboard_button_focus")&&(this.popup.restoreFocusOnClose=!0);this.JSC$18535_popupConfig.slotName&&p.setAttribute("slot",this.JSC$18535_popupConfig.slotName);S=this.popup;var U=this.container.tagName.toLowerCase(),
Y=_.oS(p);_.LBw(_.$M(S),_.BB(p,U,Y));document.body.appendChild(this.popup)}else this.popup=this.popupContent;_.y("ytpopup_disable_default_html_caching")&&(this.popup.removeWhenClosed=this.removeWhenClosed);_.tB(this.container).appendChild(this.popup)}};
var K0i=function(S){var p,U,Y=(p=S.openPopupAction.accessibilityData)==null?void 0:(U=p.accessibilityData)==null?void 0:U.label;Y&&(S.popup.ariaLabel=Y);var L;((L=S.popupContent.polymerController)!=null?L:S.popupContent).data=(0,_.h9.unsafeClone)(S.openPopupAction.popup[S.getName()]);S.popupContent.duration=F0A(S);S.popupContent.positionType=S.openPopupAction.position;var I=S.openPopupAction.properties;I&&Object.keys(I).forEach(function(V){S.popupContent[V]=I[V]})},hPL=function(S,p){if(p)for(var U=
_.d(Object.keys(p)),Y=U.next();!Y.done;Y=U.next())Y=Y.value,S.popup[Y]=p[Y]},bgY=function(S){if(S.openPopupAction.position){var p=S.JSC$18535_popupConfig.positionalProperties&&S.JSC$18535_popupConfig.positionalProperties[S.openPopupAction.position],U=S.JSC$18535_popupConfig.rtlPositionalProperties&&S.JSC$18535_popupConfig.rtlPositionalProperties[S.openPopupAction.position];
p=S.isRtl()&&U?U:p;p.shiftedHorizontalOffset&&(U=S.popup.style.display,S.popup.style.display="block",S.popupContent&&S.popup.positionTarget&&S.popupContent.clientWidth>S.popup.positionTarget.clientWidth&&(p.horizontalOffset=S.popup.positionTarget.clientWidth/2-p.shiftedHorizontalOffset),S.popup.style.display=U);hPL(S,p)}},ruY=function(S,p){if(p)for(var U=_.d(Object.keys(p)),Y=U.next();!Y.done;Y=U.next())Y=Y.value,S.popup.style[Y]=p[Y]};
OU.prototype.getName=function(){return _.ZC(this.openPopupAction.popup,"renderer")||_.ZC(this.openPopupAction.popup,"dialog")||_.ZC(this.openPopupAction.popup,"model")||void 0};
var F0A=function(S){S=S.openPopupAction.durationHintMs;return S===0?S:Math.max(4E3,S||4E3)};
OU.prototype.isRtl=function(){return _.g7("HTML_DIR")==="rtl"};
var RPd=function(S,p){S=S.getElement(p,S.target);S==null&&_.eP(new _.y7("popup getElement returned null",p));return S};var XcA={};
XcA.YtPopupContainerBehavior=[_.eL.YtComponentBehavior,_.Aj.YtActionHandlerBehavior,{created:function(){this.popupContainerConfig=null;this.popups_={};this.shownPopupKeys_=new Set;this.popupContainerActionMap_={"yt-close-popup-action":"handleClosePopupAction_","yt-close-popup-command":"handleClosePopupCommand_","yt-close-popups-action":"handleClosePopupsAction_","yt-close-all-popups-action":"handleCloseAllPopupsAction_","yt-get-popup-opened-action":"handleGetPopupOpenedAction_","yt-get-opened-popups-action":"handleGetOpenedPopupsAction_","yt-open-popup-action":"handleOpenPopupAction",
"yt-signal-action-close-popup":"handleSignalActionClosePopup_","yt-window-scrolled":"windowResizedOrScrolled_","yt-window-resized":"windowResizedOrScrolled_","yt-refit-popups-action":"refitPopups_"};this.narrowMediaQuery_=void 0;this.repositionEventsBound_=!1;this.setPopupVisibilityJobId_=this.setPopupPositioningJobId_=0;this.dynamicallyPositionedElements_=new Set},
attached:function(){this.registerActionMap(this.popupContainerActionMap_);_.A8(this.hostElement,!1)},
detached:function(){this.unregisterActionMap(this.popupContainerActionMap_);_.t8(this.hostElement)},
closePopup:function(S){var p=this.createCacheKey(void 0,S);this.popups_[p]&&this.handleClosePopupAction_(void 0,S)},
windowResizedOrScrolled_:function(){this.setPopupPositioningJobId_||(this.setPopupPositioningJobId_=_.PA.addLowPriorityJob(this.setPopupPositioning_.bind(this)));this.setPopupVisibilityJobId_||(this.setPopupVisibilityJobId_=_.PA.addLowPriorityJob(this.setPopupVisibility_.bind(this)))},
setPopupPositioning_:function(){this.dynamicallyPositionedElements_.forEach(function(S){S.opened&&S.keepBelowPlayer&&this.ensurePopupBelowPlayer(S)},this);
this.setPopupPositioningJobId_=0},
setPopupVisibility_:function(){for(var S in this.popups_){var p=this.popups_[S];if(p.popup.scrollAction==="refit"){var U=p.popup.positionTarget.getBoundingClientRect(),Y=p.popup;U=U.top;var L=p;if(!L.naturalHeight){L.popup.hidden=!1;L.popup.style.position="fixed";L.popup.style.top="0px";L.popup.style.left="0px";var I=L.popup.getBoundingClientRect();L.naturalHeight=I.bottom-I.top;L.popup.refit()}Y.hidden=!(U>=L.naturalHeight+60);p.popupContent.clientHeight===0&&p.popup.refit()}}this.setPopupVisibilityJobId_=
0},
ensurePopupBelowPlayer:function(){return!1},
initPopupContainerBehavior:function(S){this.popupContainerConfig=S},
handleOpenPopupAction:function(S,p){var U=S.openPopupAction,Y=_.tW().resolve(_.AW(_.fnH))&&U.popupType==="TOAST";Y&&!U.uniqueId&&(U.uniqueId=_.RL());if(!_.y("popup_container_parent_target_killswitch")){var L;p=(L=this.getParentTarget(p))!=null?L:p}var I=this.ensurePopup_(U,p);return new _.O9(function(V){I.then(function(W){if(!W)return V();this.maybeCreateNarrowMediaQuery_();var O=this.createCacheKey(W.rendererName,W.openPopupAction.uniqueId);if(U.showOncePerUniqueId){if(this.shownPopupKeys_.has(O))return V();
this.shownPopupKeys_.add(O)}O=this.popups_[O];var D=!(!O||!O.openPopupAction.beReused);D=!!U.reusePopup||D;if(W.popup.opened&&!D){Y&&!W.openPopupAction.replacePopup||this.handleClosePopupAction_(W.rendererName,W.openPopupAction.uniqueId);D=U.popupType==="DIALOG"&&!_.y("popup_container_dialog_reopen_killswitch");if(!Y&&!D&&O&&O.target==p&&!W.openPopupAction.replacePopup)return V();_.oH(W.popup,function(){this.completeOpenPopupAction_(U,p,W);V()}.bind(this))}else W.popup.opened?W.updatePopup(U):this.completeOpenPopupAction_(U,
p,W),V()}.bind(this))}.bind(this))},
getParentTarget:function(S){if(S&&S instanceof HTMLElement)for(var p=_.d(Object.entries(this.popups_)),U=p.next();!U.done;U=p.next())if(U=_.d(U.value),U.next(),U=U.next().value,U.popup.tagName==="TP-YT-IRON-DROPDOWN"&&U.popup.opened&&S.closest(U.rendererName))return U.target},
completeOpenPopupAction_:function(S,p,U){_.y("reorder_popup_updates_killswitch")?(G3T(U,this.narrowMediaQuery_.queryMatches,p),U.updatePopup(S)):(U.updatePopup(S),G3T(U,this.narrowMediaQuery_.queryMatches,p));S=U.popup;S.addEventListener("iron-overlay-opened",_.d9(this,this.onPopupIronOverlayOpened_));S.addEventListener("iron-overlay-closed",_.d9(this,this.onPopupIronOverlayClosed_));S.addEventListener("iron-overlay-canceled",_.d9(this,this.onPopupIronOverlayCanceled_));S.addEventListener("yt-refit",
_.d9(this,this.refitPopup_));S.addEventListener("yt-invalidate-popup-tabbables",_.d9(this,this.handleInvalidatePopupTabbables_));S.open()},
getPopupDurationMs_:function(S){return S.durationHintMs===0?S.durationHintMs:Math.max(4E3,S.durationHintMs||4E3)},
handleClosePopupAction_:function(S,p){var U=_.y("web_popup_cache_key_killswitch")||!!p;if(S||U){var Y=this.createCacheKey(S,p);S=(S=this.popups_[Y])&&S.popup}else S=_.Osq(_.wH);if(S&&S.close){if(p=_.tW().resolve(_.AW(_.SN)))S.restoreFocusOnClose=p.isKeyBoardInUse();S.close();this.removePopup_(S,Y)}},
handleClosePopupCommand_:function(S){S.closePopupCommand&&S.closePopupCommand.uniquePopupId&&this.handleClosePopupAction_(void 0,S.closePopupCommand.uniquePopupId)},
handleCloseAllPopupsAction_:function(S){var p={},U;for(U in this.popups_)if(p={key$jscomp$1164:p.key$jscomp$1164},p.key$jscomp$1164=U,!S||!S.some(function(I){return function(V){return V==I.key$jscomp$1164}}(p))){var Y=this.popups_[p.key$jscomp$1164],L=Y.popup;
_.tW().resolve(_.AW(_.fnH))&&Y.openPopupAction.popupType==="TOAST"||(L&&L.close&&L.close(),this.removePopup_(L,p.key$jscomp$1164))}},
handleClosePopupsAction_:function(S){S.forEach(function(p){var U=this.popups_[p];U&&((U=U.popup)&&U.close&&U.close(),this.removePopup_(U,p))}.bind(this))},
handleGetPopupOpenedAction_:function(S,p){return(p=this.createCacheKey(S,p))&&this.popups_[p]?this.popups_[S].popup.opened:!1},
handleGetOpenedPopupsAction_:function(){var S=[],p;for(p in this.popups_){var U=this.popups_[p];U.popup.opened&&S.push(U)}return S},
getOpenedPopups:function(){this.handleGetOpenedPopupsActions_()},
handleSignalActionClosePopup_:function(){this.handleCloseAllPopupsAction_()},
removePopup_:function(S,p){_.y("ytpopup_disable_default_html_caching")&&S&&S.removeWhenClosed&&(_.tB(this.hostElement).removeChild(S),p&&this.popups_[p]&&delete this.popups_[p])},
shouldReusePopup_:function(S){return!(!S||!S.reusePopup)||!(!S||!S.beReused)},
ensurePopup_:function(S,p){this.maybeCreateNarrowMediaQuery_();var U=_.ZC(S.popup,"renderer")||_.ZC(S.popup,"dialog")||_.ZC(S.popup,"model");if(!U)return _.Mw();U=_.gXw(U,YzY(this.popupContainerConfig,U));return _.Mw(this.getAndMaybeCreatePopup_(S,U,p))},
getAndMaybeCreatePopup_:function(S,p,U){var Y=this.createCacheKey(p,S.uniqueId);if(this.popups_[Y])return this.popups_[Y];S=new OU({openPopupAction:S,target:U,container:this.hostElement,popupContainerConfig:this.popupContainerConfig,getElement:this.getElement.bind(this),removeWhenClosed:this.shouldRemoveWhenClosed_(p)});return this.popups_[Y]=S},
getElement:function(){return null},
shouldRemoveWhenClosed_:function(S){return _.y("ytpopup_disable_default_html_caching")?S&&S.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",_.d9(this,this.openPopupQueryMatchesChanged_)),_.tB(this.hostElement).appendChild(this.narrowMediaQuery_))},
openPopupQueryMatchesChanged_:function(S){S=S.detail.value;for(var p in this.popups_)jRP(this.popups_[p],S)},
onPopupIronOverlayClosed_:function(S){var p=S.currentTarget,U=_.GFu(p);U=U.length>0?U[0]:p;if(U.is!=="ytd-reel-watch-while-dialog-renderer"||S.target.is!=="tp-yt-iron-dropdown"){S.detail.popup=p;S.detail.popupRenderer=U;var Y,L={context:{openingElement:((Y=this.popups_[(U==null?void 0:U.is)||""])==null?void 0:Y.target)||void 0}};Object.assign(L,S.detail);var I;_.cv((I=U.hostElement)!=null?I:U,"yt-popup-closed",L);p.removeEventListener("yt-refit",_.d9(this,this.refitPopup_));p.removeEventListener("yt-invalidate-popup-tabbables",
_.d9(this,this.handleInvalidatePopupTabbables_));p.removeEventListener("iron-overlay-canceled",_.d9(this,this.onPopupIronOverlayCanceled_));p.removeEventListener("iron-overlay-closed",_.d9(this,this.onPopupIronOverlayClosed_));this.dynamicallyPositionedElements_.delete(p)}},
onPopupIronOverlayCanceled_:function(S,p){var U=S.currentTarget,Y=_.GFu(U);Y=Y.length>0?Y[0]:U;if(Y.is!=="ytd-reel-watch-while-dialog-renderer"||S.target.is!=="tp-yt-iron-dropdown"){var L;_.cv((L=Y.hostElement)!=null?L:Y,"yt-popup-canceled",S.detail);L=p?_.E1(p):null;(!p||["click","tap"].includes(p.type))&&!U.hasAttribute("force-close-on-outside-click")&&U.positionTarget&&L&&L.includes(U.positionTarget)&&S.preventDefault();U.restoreFocusOnClose=_.H$.keyboardEventMatchesKeys(p,"esc")}},
onPopupIronOverlayOpened_:function(S){S=S.currentTarget;var p=_.GFu(S);p=p.length>0?p[0]:S;var U,Y;_.cv((U=p.hostElement)!=null?U:p,"yt-popup-opened",(Y=p.hostElement)!=null?Y:p);S.keepBelowPlayer&&(this.ensurePopupBelowPlayer(S,!0),this.dynamicallyPositionedElements_.add(S));U=_.tW().resolve(_.AW(_.SN));Y=!!p.querySelector("#toast");U&&U.isKeyBoardInUse()&&!Y&&(typeof p.focusFirstItem==="function"?p.focusFirstItem():(p=_.VMt(S),p.length&&p[0].focus()));S.removeEventListener("iron-overlay-opened",
_.d9(this,this.onPopupIronOverlayOpened_))},
refitPopup_:function(S){S=S.currentTarget;S.refit&&S.refit()},
refitPopups_:function(){for(var S in this.popups_)this.popups_[S].refit()},
handleInvalidatePopupTabbables_:function(S){S=S.currentTarget;S.invalidateTabbables&&S.invalidateTabbables()},
createCacheKey:function(S,p){return _.y("web_popup_cache_key_killswitch")?p?S+"#"+p:S:p?"#"+p:S},
openSheet:function(S,p){var U=S==null?void 0:S.openPopupActionCommand;!U&&(S==null?0:S.viewModel)&&(U={openPopupAction:{popup:{sheetViewModel:S.viewModel},popupType:"CONTEXTUAL_SHEET"}});U&&this.handleOpenPopupAction(U,p)},
closeSheet:function(){this.handleClosePopupAction_("yt-sheet-view-model")},
isSheetOpen:function(){var S=this;return _.T(function(p){return p.return(S.handleGetOpenedPopupsAction_().filter(function(U){var Y;return((Y=U.openPopupAction)==null?void 0:Y.popupType)==="CONTEXTUAL_SHEET"}).length>0)})},
getSheetContainerElement:function(){return this.hostElement},
openDialog:function(S,p,U){if(_.y("web_dialog_utils_killswitch")){var Y=S==null?void 0:S.openPopupActionCommand,L=(U==null?0:U.ariaLabel)?{accessibilityData:{accessibilityData:{label:U.ariaLabel}}}:void 0;!Y&&(S==null?0:S.viewModel)&&(Y={openPopupAction:Object.assign({},{popup:{dialogViewModel:S.viewModel},popupType:(U==null?0:U.isModal)?"MODAL":"DIALOG"},L&&L)});Y&&this.handleOpenPopupAction(Y,p)}else{if(L=S==null?void 0:S.viewModel){var I=U=U===void 0?{}:U;U=I.ariaLabel;L={popup:{dialogViewModel:L},
popupType:I.isModal?"MODAL":"DIALOG"};I={accessibilityData:{label:U}};U&&(L.accessibilityData=I);L={openPopupAction:L}}else L=void 0;(L=(Y=L)!=null?Y:S==null?void 0:S.openPopupActionCommand)&&this.handleOpenPopupAction(L,p)}},
closeDialog:function(){this.handleClosePopupAction_("yt-dialog-view-model")},
isDialogOpen:function(){var S=this;return _.T(function(p){return p.return(S.handleGetOpenedPopupsAction_().filter(function(U){var Y;return((Y=U.openPopupAction)==null?void 0:Y.popupType)==="DIALOG"}).length>0)})}}];var PXt;var ZgA;var sRX=_.x1(["about:blank"]),kJ=function(){var S=_.w.apply(this,arguments)||this;S.isMuted=!1;S.pageLoadTimeoutId=void 0;return S};
_.r(kJ,_.w);_.M=kJ.prototype;_.M.dataChanged=function(){var S=this;if(this.data){this.ytRendererBehavior.markDirty();this.isMuted=!1;var p=this.data.url,U=_.Zu(p);_.y("enable_yt_ata_iframe_authuser")?(U=_.Zu(p),_.PE(this.iframe,ZpE(U))):_.PE(this.iframe,U);this.pageLoadTimeoutId=_.bQ(_.jC(),function(){return void S.logStateChanged({pageLoadTimedOut:!0})},5E3);
_.vg({destination:window,iframe:this.iframe,origin:_.nmI(U.toString()),channelName:"ataiframe",onMessage:_.XUq(VdE,function(Y){TPX(Y.data)?(Y=_.K8(Y.data,1,_.ri,_.Ur()),Y.length!==1?_.eP(Error("nl")):(Y=Y[0],Y===3?(S.isMuted=!0,S.logStateChanged({adMuteRequested:!0})):Y===1&&S.close())):_.eP(Error("ol"))}),
onEstablished:function(){S.cancelPageLoadTimeout();S.logStateChanged({pageLoadSucceeded:!0})}})}};
_.M.cancelPageLoadTimeout=function(){this.pageLoadTimeoutId!==void 0&&(_.jC().cancelJob(this.pageLoadTimeoutId),this.pageLoadTimeoutId=void 0)};
_.M.logStateChanged=function(S){var p;if((p=this.data)==null?0:p.trackingParams)S={adsClientData:{aboutThisAdData:S}},_.HX().stateChanged(this.data.trackingParams,S)};
_.M.close=function(){_.St(this.hostElement,"yt-close-popup-action",[this.is])};
_.M.handlesPopupClosed=function(S,p){var U=this,Y,L;return _.T(function(I){if(I.nextAddress==1)return _.g7("INNERTUBE_CLIENT_NAME")==="WEB_KIDS"?(_.St(U.hostElement,"on-about-this-ad-popup-closed",[U.isMuted,p]),I.jumpTo(0)):S&&s2t(S)?_.k(I,eUX(S),4):(U.isMuted&&_.St(U.hostElement,"yt-mute-ad-action",[U.is,U]),I.jumpTo(0));if(Y=I.yieldResult){var V=L=new _.z3(Y),W=U.isMuted;V.getOptions().includes("onAboutThisAdPopupClosed")?_.mSt(V,"onAboutThisAdPopupClosed",{isMuted:W,layoutId:p}):_.qB("Calling onAboutThisAdPopupClosed when adModule is not loaded")}_.OV(I)})};
_.M.onPopupClosed=function(S){var p=this,U,Y;return _.T(function(L){U=_.UF(sRX);_.PE(p.iframe,U);p.cancelPageLoadTimeout();if(!p.data)return L.jumpTo(0);p.ytRendererBehavior.markDirty();Y=S.detail.context.openingElement;return _.k(L,p.handlesPopupClosed(Y,p.data.layoutId),0)})};
_.M.detached=function(){this.cancelPageLoadTimeout()};
_.M.ready=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
kJ.prototype.onPopupClosed=kJ.prototype.onPopupClosed;kJ.prototype.dataChanged=kJ.prototype.dataChanged;_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],kJ.prototype,"ytRendererBehavior",void 0);_.x([_.O2("#iframe"),_.E("design:type",HTMLIFrameElement)],kJ.prototype,"iframe",void 0);_.x([_.g(),_.E("design:type",Object)],kJ.prototype,"data",void 0);_.x([_.T4("data"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],kJ.prototype,"dataChanged",null);
_.x([_.Vd("yt-popup-closed"),_.E("design:type",Function),_.E("design:paramtypes",[CustomEvent]),_.E("design:returntype",Promise)],kJ.prototype,"onPopupClosed",null);kJ=_.x([_.FB({is:"yt-about-this-ad-renderer",disableElementRegistration:!0})],kJ);
_.C(kJ,"yt-about-this-ad-renderer",function(){if(ZgA===void 0){var S=document.createElement("template");_.h(S,'\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>');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);var p=S.content,U=p.insertBefore;PXt===void 0&&(PXt=document.createElement("template"));var Y=PXt;U.call(p,Y.content.cloneNode(!0),S.content.firstChild);ZgA=S}S=ZgA;return S},{mode:2});var ePY;var gys;var H_=function(S){var p=Error.call(this,"Try adding a file that's {$maxFileSizeMB}MB or smaller");this.message=p.message;"stack"in p&&(this.stack=p.stack);this.maxFileSizeMB=S;Object.setPrototypeOf(this,H_.prototype)};
_.r(H_,Error);var ubd=function(S,p){var U=Error.call(this,"Images must be at least {$minWidth} x {$minHeight} pixels");this.message=U.message;"stack"in U&&(this.stack=U.stack);this.minWidth=S;this.minHeight=p;Object.setPrototypeOf(this,ubd.prototype)};
_.r(ubd,Error);var wcT=function(S){this.requirements=S;this.JSC$18563_maxFileSize=S.maxFileSizeMB*1024*1024},l6T=function(S,p){if(p.size>S.JSC$18563_maxFileSize)throw new H_(S.requirements.maxFileSizeMB);
};var a6t=function(S,p){this.canvas=S;this.imageEditorBuilder=p};
a6t.prototype.addEventListeners=function(S){var p=function(L){f6n(S,L)};
this.JSC$18569_mouseDownEvent=p;var U=function(L){CXn(S,L)};
this.JSC$18569_mouseMoveEvent=U;var Y=function(){xnL(S)};
this.JSC$18569_mouseUpEvent=Y;this.canvas.addEventListener("mousedown",p);this.canvas.addEventListener("mousemove",U);document.addEventListener("mouseup",Y)};
a6t.prototype.removeEventListeners=function(){this.JSC$18569_mouseDownEvent&&this.canvas.removeEventListener("mousedown",this.JSC$18569_mouseDownEvent);this.JSC$18569_mouseMoveEvent&&this.canvas.removeEventListener("mousemove",this.JSC$18569_mouseMoveEvent);this.JSC$18569_mouseUpEvent&&document.removeEventListener("mouseup",this.JSC$18569_mouseUpEvent)};
var Ey5=function(S,p){S.removeEventListeners();return new Promise(function(U){var Y=new Image;Y.crossOrigin="anonymous";Y.onload=function(){var L=S.imageEditorBuilder(S.canvas,Y);S.addEventListeners(L);U(L)};
Y.src=p})},Di=function(S,p,U,Y,L,I,V,W){this.canvas=S;
this.image=p;this.requiredRatio=U;this.minImageCropDimension=Y;this.minOutputImageResolution=L;this.component=I;this.styleFocusedCorner=W===void 0?!0:W;this.action=2;this.focusedCorner=this.resizeCorner=0;S=this.canvas.getContext("2d");if(!S)throw Error("pl");this.ctx=S;this.canvasMargin=V!=null?V:24;this.canvasInnerWidth=this.canvas.width-2*this.canvasMargin;V=this.image;S=this.canvasInnerWidth/V.width;V.height*S>912&&(S=V.width/V.height*912/V.width);V=S;this.scaledImageWidth=this.canvas.width%2?
ugA(this.image.width*V):gdE(this.image.width*V);this.scaledImageHeight=Math.round(this.image.height*V);this.canvas.height=this.scaledImageHeight+2*this.canvasMargin;this.horizontalMargin=(this.canvas.width-this.scaledImageWidth)/2;this.JSC$18572_overlayMarginBottom=this.JSC$18572_overlayMarginTop=this.canvasMargin;this.JSC$18572_overlayMarginRight=this.JSC$18572_overlayMarginLeft=this.horizontalMargin;this.JSC$18572_overlayWidth=this.scaledImageWidth;this.JSC$18572_overlayHeight=this.scaledImageHeight;
S=this.image.width/this.image.height;S>this.requiredRatio?(this.JSC$18572_overlayWidth=this.canvas.width%2?ugA(this.scaledImageHeight*this.requiredRatio):gdE(this.scaledImageHeight*this.requiredRatio),this.JSC$18572_overlayMarginRight=this.JSC$18572_overlayMarginLeft=(this.canvas.width-this.JSC$18572_overlayWidth)/2):S<this.requiredRatio&&(this.JSC$18572_overlayHeight=this.canvas.height%2?ugA(this.scaledImageWidth/this.requiredRatio):gdE(this.scaledImageWidth/this.requiredRatio),this.JSC$18572_overlayMarginBottom=
this.JSC$18572_overlayMarginTop=(this.canvas.height-this.JSC$18572_overlayHeight)/2);this.minOverlayWidth=Math.min(this.minImageCropDimension[0]*V,this.scaledImageWidth);mnn(this)};
Di.prototype.getContext=function(){return this.ctx};
var f6n=function(S,p){p={x:Math.round(p.pageX-S.canvas.getBoundingClientRect().left),y:Math.round(p.pageY-S.canvas.getBoundingClientRect().top)};S.dragStart=p;oyn(S,p)!==0?(S.action=1,vyA(S,p),S.resizeCorner=oyn(S,p)):p.x>S.JSC$18572_overlayMarginLeft&&p.x<S.JSC$18572_overlayMarginLeft+S.JSC$18572_overlayWidth&&p.y>S.JSC$18572_overlayMarginTop&&p.y<S.JSC$18572_overlayMarginTop+S.JSC$18572_overlayHeight&&(S.action=0)},$nq=function(S,p){switch(p){case 1:return{x:S.JSC$18572_overlayMarginLeft,
y:S.JSC$18572_overlayMarginTop};case 2:return{x:S.JSC$18572_overlayMarginLeft,y:S.JSC$18572_overlayMarginTop+S.JSC$18572_overlayHeight};case 3:return{x:S.JSC$18572_overlayMarginLeft+S.JSC$18572_overlayWidth,y:S.JSC$18572_overlayMarginTop};case 4:return{x:S.JSC$18572_overlayMarginLeft+S.JSC$18572_overlayWidth,y:S.JSC$18572_overlayMarginTop+S.JSC$18572_overlayHeight};default:throw Error("ql");}},NSA=function(S,p){if(S.focusedCorner!==0){S.dragStart=$nq(S,S.focusedCorner);
S.action=1;S.resizeCorner=S.focusedCorner;var U=S.dragStart.x,Y=S.dragStart.y;switch(p){case 0:S.focusedCorner===1||S.focusedCorner===4?(U-=10,Y-=10):(U-=10,Y+=10);break;case 1:S.focusedCorner===1||S.focusedCorner===4?(U+=10,Y+=10):(U+=10,Y-=10);break;case 2:U=S.focusedCorner===1||S.focusedCorner===4?U-10:U+10;Y-=10;break;case 3:U=S.focusedCorner===1||S.focusedCorner===4?U+10:U-10;Y+=10;break;default:throw Error("rl");}igE(S,{x:U,y:Y});mnn(S);S.action=2;S.dragStart=void 0}},CXn=function(S,p){p={x:Math.round(p.pageX-
S.canvas.getBoundingClientRect().left),
y:Math.round(p.pageY-S.canvas.getBoundingClientRect().top)};vyA(S,p);switch(S.action){case 1:igE(S,p);break;case 0:S.dragStart&&(S.JSC$18572_overlayMarginLeft=Math.max(S.horizontalMargin,Math.min(S.JSC$18572_overlayMarginLeft-(S.dragStart.x-p.x),S.horizontalMargin+S.scaledImageWidth-S.JSC$18572_overlayWidth)),S.JSC$18572_overlayMarginRight=S.canvas.width-S.JSC$18572_overlayMarginLeft-S.JSC$18572_overlayWidth,S.JSC$18572_overlayMarginTop=Math.max(S.canvasMargin,Math.min(S.JSC$18572_overlayMarginTop-
(S.dragStart.y-p.y),S.scaledImageHeight-S.JSC$18572_overlayHeight+S.canvasMargin)),S.JSC$18572_overlayMarginBottom=S.canvas.height-(S.JSC$18572_overlayMarginTop+S.JSC$18572_overlayHeight));break;default:return}mnn(S);S.dragStart=p},xnL=function(S){S.action=2;
S.dragStart=void 0;document.body.style.cursor="auto"},vyA=function(S,p){switch(oyn(S,p)){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:S.action!==1&&(document.body.style.cursor="auto")}},oyn=function(S,p){var U=S.JSC$18572_overlayMarginLeft-5,Y=S.JSC$18572_overlayMarginTop-5,L=S.JSC$18572_overlayMarginLeft+S.JSC$18572_overlayWidth-5;
S=S.JSC$18572_overlayMarginTop+S.JSC$18572_overlayHeight-5;return BSs(p,{x:U,y:Y})?1:BSs(p,{x:L,y:Y})?3:BSs(p,{x:U,y:S})?2:BSs(p,{x:L,y:S})?4:0},BSs=function(S,p){return S.x>=p.x&&S.x<=p.x+10&&S.y>=p.y&&S.y<=p.y+10},igE=function(S,p){if(S.dragStart)switch(S.resizeCorner){case 2:Math.abs((S.JSC$18572_overlayMarginLeft+S.JSC$18572_overlayWidth-p.x)/(p.y-S.JSC$18572_overlayMarginTop))>=S.requiredRatio?qvT(S,p.x):Auo(S,p.y);
break;case 1:Math.abs((S.JSC$18572_overlayMarginLeft+S.JSC$18572_overlayWidth-p.x)/(S.JSC$18572_overlayMarginTop+S.JSC$18572_overlayHeight-p.y))>=S.requiredRatio?teP(S,p.x):Auo(S,p.y);break;case 4:Math.abs((p.x-S.JSC$18572_overlayMarginLeft)/(p.y-S.JSC$18572_overlayMarginTop))>=S.requiredRatio?qvT(S,p.x):cuJ(S,p.y);break;case 3:Math.abs((p.x-S.JSC$18572_overlayMarginLeft)/(S.JSC$18572_overlayMarginTop+S.JSC$18572_overlayHeight-p.y))>=S.requiredRatio?teP(S,p.x):cuJ(S,p.y);break;default:throw Error("sl");
}},qvT=function(S,p){var U=S.JSC$18572_overlayMarginTop;
S.JSC$18572_overlayMarginBottom=Sin(S,p);S.JSC$18572_overlayHeight=S.canvas.height-S.JSC$18572_overlayMarginBottom-U;S.JSC$18572_overlayWidth=Math.round(S.JSC$18572_overlayHeight*S.requiredRatio);pnJ(S)},teP=function(S,p){var U=S.JSC$18572_overlayMarginTop+S.JSC$18572_overlayHeight;
S.JSC$18572_overlayMarginTop=Sin(S,p);S.JSC$18572_overlayHeight=U-S.JSC$18572_overlayMarginTop;S.JSC$18572_overlayWidth=Math.round(S.JSC$18572_overlayHeight*S.requiredRatio);pnJ(S)},pnJ=function(S){switch(S.resizeCorner){case 2:case 1:S.JSC$18572_overlayMarginLeft=S.canvas.width-S.JSC$18572_overlayMarginRight-S.JSC$18572_overlayWidth;
break;case 4:case 3:S.JSC$18572_overlayMarginRight=S.canvas.width-S.JSC$18572_overlayMarginLeft-S.JSC$18572_overlayWidth;break;default:throw Error("sl");}},Auo=function(S,p){var U=S.JSC$18572_overlayMarginLeft+S.JSC$18572_overlayWidth;
S.JSC$18572_overlayMarginLeft=UQY(S,p);S.JSC$18572_overlayWidth=U-S.JSC$18572_overlayMarginLeft;S.JSC$18572_overlayHeight=Math.round(S.JSC$18572_overlayWidth/S.requiredRatio);YiL(S)},cuJ=function(S,p){var U=S.JSC$18572_overlayMarginLeft;
S.JSC$18572_overlayMarginRight=UQY(S,p);S.JSC$18572_overlayWidth=S.canvas.width-S.JSC$18572_overlayMarginRight-U;S.JSC$18572_overlayHeight=Math.round(S.JSC$18572_overlayWidth/S.requiredRatio);YiL(S)},YiL=function(S){switch(S.resizeCorner){case 2:case 4:S.JSC$18572_overlayMarginBottom=S.canvas.height-S.JSC$18572_overlayMarginTop-S.JSC$18572_overlayHeight;
break;case 1:case 3:S.JSC$18572_overlayMarginTop=S.canvas.height-S.JSC$18572_overlayMarginBottom-S.JSC$18572_overlayHeight;break;default:throw Error("sl");}},Sin=function(S,p){switch(S.resizeCorner){case 2:p=S.canvas.height-(S.JSC$18572_overlayMarginTop+LiX(S,p));
break;case 4:p=S.canvas.height-(S.JSC$18572_overlayMarginTop+MDL(S,p));break;case 1:p=S.JSC$18572_overlayMarginTop+S.JSC$18572_overlayHeight-LiX(S,p);break;case 3:p=S.JSC$18572_overlayMarginTop+S.JSC$18572_overlayHeight-MDL(S,p);break;default:throw Error("sl");}return Math.max(p,S.canvasMargin)},LiX=function(S,p){p=S.JSC$18572_overlayMarginLeft+S.JSC$18572_overlayWidth-Math.max(p,S.horizontalMargin);
p=p<0?S.JSC$18572_overlayWidth:Math.max(p,S.minOverlayWidth);return Math.round(p/S.requiredRatio)},MDL=function(S,p){p=S.canvas.width-Math.max(S.canvas.width-p,S.horizontalMargin)-S.JSC$18572_overlayMarginLeft;
p=p<0?S.JSC$18572_overlayWidth:Math.max(p,S.minOverlayWidth);return Math.round(p/S.requiredRatio)},UQY=function(S,p){switch(S.resizeCorner){case 2:p=S.canvas.width-S.JSC$18572_overlayMarginRight-IRs(S,p);
break;case 4:p=S.canvas.width-S.JSC$18572_overlayMarginLeft-IRs(S,p);break;case 1:p=S.canvas.width-S.JSC$18572_overlayMarginRight-dQP(S,p);break;case 3:p=S.canvas.width-S.JSC$18572_overlayMarginLeft-dQP(S,p);break;default:throw Error("sl");}return Math.max(p,S.horizontalMargin)},IRs=function(S,p){p=S.canvas.height-Math.max(S.canvas.height-p,S.canvasMargin)-S.JSC$18572_overlayMarginTop;
return p<0?S.JSC$18572_overlayWidth:Math.max(Math.round(p*S.requiredRatio),S.minOverlayWidth)},dQP=function(S,p){p=S.JSC$18572_overlayMarginTop+S.JSC$18572_overlayHeight-Math.max(p,S.canvasMargin);
return p<0?S.JSC$18572_overlayWidth:Math.max(Math.round(p*S.requiredRatio),S.minOverlayWidth)},mnn=function(S){S.ctx.clearRect(0,0,S.canvas.width,S.canvas.height);
S.ctx.drawImage(S.image,0,0,S.image.width,S.image.height,S.horizontalMargin,S.canvasMargin,S.canvas.width-2*S.horizontalMargin,S.scaledImageHeight);S.ctx.fillStyle="rgba(0, 0, 0, 0.7)";S.ctx.fillRect(S.horizontalMargin,S.JSC$18572_overlayMarginTop,S.JSC$18572_overlayMarginLeft-S.horizontalMargin,S.JSC$18572_overlayHeight);S.ctx.fillRect(S.JSC$18572_overlayMarginLeft+S.JSC$18572_overlayWidth,S.JSC$18572_overlayMarginTop,S.JSC$18572_overlayMarginRight-S.horizontalMargin,S.JSC$18572_overlayHeight);S.ctx.fillRect(S.horizontalMargin,
S.canvasMargin,S.scaledImageWidth,S.JSC$18572_overlayMarginTop-S.canvasMargin);S.ctx.fillRect(S.horizontalMargin,S.JSC$18572_overlayMarginTop+S.JSC$18572_overlayHeight,S.scaledImageWidth,S.JSC$18572_overlayMarginBottom-S.canvasMargin);S.drawOverlay();S.component&&_.cv(S.component,"image-updated")};
Di.prototype.drawOverlay=function(){this.ctx.lineWidth=2;this.ctx.strokeStyle="#3EA6FF";this.ctx.strokeRect(this.JSC$18572_overlayMarginLeft,this.JSC$18572_overlayMarginTop,this.JSC$18572_overlayWidth,this.JSC$18572_overlayHeight);VDA(this)};
var VDA=function(S){var p=S.JSC$18572_overlayMarginLeft-5,U=S.JSC$18572_overlayMarginTop-5,Y=S.JSC$18572_overlayMarginLeft+S.JSC$18572_overlayWidth-5,L=S.JSC$18572_overlayMarginTop+S.JSC$18572_overlayHeight-5;S.ctx.fillStyle="#FFF";S.ctx.fillRect(p,U,10,10);S.ctx.strokeRect(p,U,10,10);S.ctx.fillRect(Y,U,10,10);S.ctx.strokeRect(Y,U,10,10);S.ctx.fillRect(p,L,10,10);S.ctx.strokeRect(p,L,10,10);S.ctx.fillRect(Y,L,10,10);S.ctx.strokeRect(Y,L,10,10);if(S.focusedCorner!==0&&S.styleFocusedCorner){S.ctx.lineWidth=
4;S.ctx.strokeStyle="#3EA6FF";switch(S.focusedCorner){case 1:--p;--U;break;case 2:--p;U=L-1;break;case 3:p=Y-1;--U;break;case 4:p=Y-1;U=L-1;break;default:return}S.ctx.strokeRect(p,U,12,12)}};
Di.prototype.crop=function(S,p){p=p===void 0?!0:p;var U=this.image.width/this.scaledImageWidth,Y=document.createElement("canvas"),L=this.minOutputImageResolution?this.minOutputImageResolution[1]:this.minImageCropDimension[1],I=this.JSC$18572_overlayWidth*U,V=this.JSC$18572_overlayHeight*U;Y.width=Math.max(I,this.minOutputImageResolution?this.minOutputImageResolution[0]:this.minImageCropDimension[0]);Y.height=Math.max(V,L);S&&(Y.width=Math.min(Y.width,Y.height),Y.height=Math.min(Y.width,Y.height));
S=Y.getContext("2d");if(!S)throw Error("gl");L=(this.JSC$18572_overlayMarginLeft-this.horizontalMargin)*U;U*=this.JSC$18572_overlayMarginTop-this.canvasMargin;p||(S.fillStyle="white",S.fillRect(0,0,Y.width,Y.height));S.drawImage(this.image,L,U,I,V,0,0,Y.width,Y.height);return Y};var Tyt=function(S,p,U,Y,L){Di.call(this,S,p,U,Y,void 0,L,8,!1)};
_.r(Tyt,Di);Tyt.prototype.drawOverlay=function(){var S=this.getContext(),p=this.JSC$18572_overlayWidth,U=this.JSC$18572_overlayHeight,Y=this.JSC$18572_overlayMarginTop,L=this.JSC$18572_overlayMarginLeft;S.lineWidth=2;S.strokeStyle="#3EA6FF";S.beginPath();S.arc(L+p/2,Y+U/2,p/2,0,2*Math.PI);S.stroke();S.strokeRect(L,Y,p,U);VDA(this)};
var WiP={maxFileSizeMB:15,minWidth:98,minHeight:98},Om5=["image/png","image/jpeg","image/gif"],zz=function(){var S=_.w.apply(this,arguments)||this;S.fileSelectorFocusListener=null;S.errorMessage=null;S.isLoading=!0;S.hideContainer=!0;S.actionMap={"yt-upload-image-to-scotty-command":"handleUploadImageToScottyCommand","yt-image-selection-error-action":"handleImageSelectionErrorAction"};return S};
_.r(zz,_.w);_.M=zz.prototype;_.M.cleanupFocusListener=function(){this.fileSelectorFocusListener&&window.removeEventListener("focus",this.fileSelectorFocusListener)};
_.M.setLoadingState=function(){this.set("data.updateButton.buttonRenderer.isDisabled",!0);this.set("data.cancelButton.buttonRenderer.isDisabled",!0);this.isLoading=!0;this.errorMessage=null};
_.M.computePlaylistThumbnail=function(S){return S==="IMAGE_TYPE_PLAYLIST_THUMBNAIL"};
_.M.resetErrorState=function(){this.set("data.updateButton.buttonRenderer.isDisabled",!1);this.set("data.cancelButton.buttonRenderer.isDisabled",!1);this.isLoading=!1;this.errorMessage=null;this.isPlaylistThumbnail||_.St(this.hostElement,"yt-image-selection-reset-error-action",[])};
_.M.setErrorState=function(S){this.resetErrorState();S&&(this.errorMessage=S)};
_.M.showPopup=function(){var S=this;this.hideContainer=!1;_.bQ(_.PA,function(){_.cv(S.hostElement,"yt-refit")});
this.isLoading=!1};
_.M.resetFileSelector=function(){this.fileSelector.value="";this.cleanupFocusListener();this.fileSelectorFocusListener=null};
_.M.closePopup=function(){this.resetFileSelector();_.St(this.hostElement,"yt-close-popup-action",[this.is])};
_.M.onCancelTap=function(){this.isPlaylistThumbnail||_.St(this.hostElement,"yt-show-caller-popup-action",[]);this.closePopup()};
_.M.openFileSelector=function(){var S=this;this.resetErrorState();try{this.fileSelector.click(),this.fileSelectorFocusListener=function(){_.bQ(_.PA,function(){setTimeout(function(){if(!S.fileSelector.files||S.fileSelector.files.length===0)S.onCancelTap();S.cleanupFocusListener()},2E3)},500)},window.addEventListener("focus",this.fileSelectorFocusListener)}catch(p){p instanceof Error?_.ZP(p):_.s9(new _.y7(JSON.stringify(p)))}};
_.M.handleFileSelection=function(){var S=this,p,U,Y,L,I,V;return _.T(function(W){switch(W.nextAddress){case 1:_.M2(W,2);if(!S.fileSelector.files||!S.imageEditorCanvas)return S.onCancelTap(),W.return();p=S.fileSelector.files[0];l6T(S.imageChecker,p);_.M2(W,4);return _.k(W,I95(p),6);case 6:S.mimeType=W.yieldResult;_.CA(W,5,2);break;case 4:_.W4(W,2),_.St(S.hostElement,"yt-image-selection-error-action",[(U=S.data)==null?void 0:U.genericImageLoadErrorMessage]),S.onCancelTap();case 5:Y=new FileReader;Y.addEventListener("load",
function(){var O,D;return _.T(function(z){if(z.nextAddress==1){if(!Y.result)return _.eP(Error("il")),z.return();O=Y.result;D=new Image;D.src=O;D.onload=function(){try{var Q=S.imageChecker;if(D.width<Q.requirements.minWidth||D.height<Q.requirements.minHeight)throw new ubd(Q.requirements.minWidth,Q.requirements.minHeight);}catch(K){if(K instanceof ubd){var J;_.St(S.hostElement,"yt-image-selection-error-action",[(J=S.data)==null?void 0:J.imageDimensionErrorMessage]);S.logImageDimensionErrorVe()}else K instanceof
Error?_.ZP(K):(Q=new _.y7(JSON.stringify(K)),_.ZP(Q));S.onCancelTap()}S.showPopup()};
D.onerror=function(){var Q;_.St(S.hostElement,"yt-image-selection-error-action",[(Q=S.data)==null?void 0:Q.genericImageLoadErrorMessage]);S.onCancelTap()};
return _.k(z,Ey5(S.imageEditorCanvas,O),2)}S.imageEditor=z.yieldResult;S.updatePositionOfAllCorners();S.addEventListeners(S.imageEditor);_.OV(z)})},!1);
Y.readAsDataURL(p);_.CA(W,0);break;case 2:L=_.W4(W),L instanceof H_?_.St(S.hostElement,"yt-image-selection-error-action",[(I=S.data)==null?void 0:I.imageSizeErrorMessage]):(L instanceof Error?_.ZP(L):_.s9(new _.y7(JSON.stringify(L))),_.St(S.hostElement,"yt-image-selection-error-action",[(V=S.data)==null?void 0:V.genericImageLoadErrorMessage])),S.onCancelTap(),_.OV(W)}})};
_.M.logImageDimensionErrorVe=function(){if(this.isPlaylistThumbnail){var S=_.kX(_.HX(),{veType:232707,visualElement:_.bZ(232707)});S&&(S={visualElement:S},_.OW().reportShown(S))}};
_.M.handleImageSelectionErrorAction=function(S){this.isPlaylistThumbnail&&_.Uqe(this.hostElement,S)};
_.M.convertToImageFormatBundle=function(S){var p=this,U,Y,L;return _.T(function(I){switch(I.nextAddress){case 1:return U=S.toDataURL(p.outputMimeType,1),_.k(I,dwE(U),2);case 2:Y=I.yieldResult;_.M2(I,3);l6T(p.imageChecker,Y);_.CA(I,4);break;case 3:L=_.W4(I);if(!(L instanceof H_))throw L;_.eP(new _.y7("Output size is bigger than input size for image",p.mimeType,p.outputMimeType,Y.size));U=S.toDataURL("image/jpeg",.95);return _.k(I,dwE(U),6);case 6:Y=I.yieldResult;case 4:return I.return({dataUrl:U,imageFile:Y})}})};
_.M.handleUploadImageToScottyCommand=function(S){var p=this,U,Y,L,I,V,W,O,D,z,Q;return _.T(function(J){switch(J.nextAddress){case 1:if(!p.imageEditor||!_.b(S,GxE))return J.return();U=_.b(S,GxE).scottyUploadUrl;if(!U){var K=new _.y7("Cannot handle UploadImageToScottyCommand without scotty upload\n    URL");_.ZP(K);return J.return()}_.M2(J,2);p.setLoadingState();Y=p.imageEditor.crop(!1,!1);return _.k(J,p.convertToImageFormatBundle(Y),4);case 4:return L=J.yieldResult,_.k(J,LpL(L.imageFile,U),5);case 5:I=
J.yieldResult;((V=p.data)==null?0:V.onUploadEndpoint)?(W=p.buildUploadServiceEndpoint(I),p.ytComponentBehavior.resolveCommand(W),O=_.b(W,_.h1),((D=O)==null?0:D.params)?p.closePopup():p.resetFileSelector()):(_.St(p.hostElement,"yt-image-updated-action",[L.dataUrl,I]),p.closePopup());_.CA(J,0);break;case 2:z=_.W4(J),p.setErrorState((Q=p.data)==null?void 0:Q.uploadErrorMessage),z instanceof Error?_.ZP(z):(K=new _.y7(JSON.stringify(z)),_.ZP(K)),_.OV(J)}})};
_.M.buildUploadServiceEndpoint=function(S){return this.data&&this.data.onUploadEndpoint?(this.set("data.onUploadEndpoint.playlistEditEndpoint.actions.0.addedCustomThumbnail.playlistScottyEncryptedBlobId",S),this.data.onUploadEndpoint):null};
_.M.dataChanged=function(){var S=this,p;return _.T(function(U){if(U.nextAddress==1){if(!S.data||!S.canvasElement)return U.return();S.data.imageRatio&&S.data.minImageCropWidth||_.s9(new _.y7("Renderer data is incomplete: missing image_ratio or \nmin_image_crop_width"));p=function(Y,L){return S.data.imageType==="IMAGE_TYPE_AVATAR"?new Tyt(Y,L,S.data.imageRatio,[S.data.minImageCropWidth,S.data.minImageCropWidth/S.data.imageRatio],S.hostElement):new Di(Y,L,S.data.imageRatio,[S.data.minImageCropWidth,
S.data.minImageCropWidth/S.data.imageRatio],void 0,S.hostElement,8,!1)};
S.imageEditorCanvas=new a6t(S.canvasElement,p);return S.data.url?_.k(U,Ey5(S.imageEditorCanvas,S.data.url),3):(S.hideContainer=!0,S.openFileSelector(),U.jumpTo(0))}S.imageEditor=U.yieldResult;S.showPopup();S.addEventListeners(S.imageEditor);_.OV(U)})};
_.M.addEventListeners=function(S){this.removeEventListeners();var p=function(L){f6n(S,L)};
this.JSC$18580_mouseDownEvent=p;var U=function(L){CXn(S,L)};
this.JSC$18580_mouseMoveEvent=U;var Y=function(){xnL(S)};
this.JSC$18580_mouseUpEvent=Y;this.topLeftCorner.addEventListener("mousedown",p);this.topLeftCorner.addEventListener("mousemove",U);this.topLeftCorner.addEventListener("mouseup",Y);this.topRightCorner.addEventListener("mousedown",p);this.topRightCorner.addEventListener("mousemove",U);this.topRightCorner.addEventListener("mouseup",Y);this.bottomLeftCorner.addEventListener("mousedown",p);this.bottomLeftCorner.addEventListener("mousemove",U);this.bottomLeftCorner.addEventListener("mouseup",Y);this.bottomRightCorner.addEventListener("mousedown",
p);this.bottomRightCorner.addEventListener("mousemove",U);this.bottomRightCorner.addEventListener("mouseup",Y)};
_.M.removeEventListeners=function(){this.JSC$18580_mouseDownEvent&&(this.topLeftCorner.removeEventListener("mousedown",this.JSC$18580_mouseDownEvent),this.topRightCorner.removeEventListener("mousedown",this.JSC$18580_mouseDownEvent),this.bottomLeftCorner.removeEventListener("mousedown",this.JSC$18580_mouseDownEvent),this.bottomRightCorner.removeEventListener("mousedown",this.JSC$18580_mouseDownEvent));this.JSC$18580_mouseMoveEvent&&(this.topLeftCorner.removeEventListener("mousemove",this.JSC$18580_mouseMoveEvent),
this.topRightCorner.removeEventListener("mousemove",this.JSC$18580_mouseMoveEvent),this.bottomLeftCorner.removeEventListener("mousemove",this.JSC$18580_mouseMoveEvent),this.bottomRightCorner.removeEventListener("mousemove",this.JSC$18580_mouseMoveEvent));this.JSC$18580_mouseUpEvent&&(this.topLeftCorner.removeEventListener("mouseup",this.JSC$18580_mouseUpEvent),this.topRightCorner.removeEventListener("mouseup",this.JSC$18580_mouseUpEvent),this.bottomLeftCorner.removeEventListener("mouseup",this.JSC$18580_mouseUpEvent),
this.bottomRightCorner.removeEventListener("mouseup",this.JSC$18580_mouseUpEvent))};
_.M.setFocusInImageEditor=function(){if(!this.imageEditor)return!1;for(var S=document.activeElement;S&&S.shadowRoot&&S.shadowRoot.activeElement;)S=S.shadowRoot.activeElement;switch(S){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};
_.M.updatePositionOfCorner=function(S,p){var U=S.y-p.offsetHeight/2+4;p.style.left=S.x-p.offsetWidth/2+16+"px";p.style.top=U+"px"};
_.M.updatePositionOfAllCorners=function(){if(this.imageEditor)for(var S=_.d([{corner:1,div:this.topLeftCorner},{corner:3,div:this.topRightCorner},{corner:2,div:this.bottomLeftCorner},{corner:4,div:this.bottomRightCorner}]),p=S.next();!p.done;p=S.next()){p=p.value;var U=$nq(this.imageEditor,p.corner);this.updatePositionOfCorner(U,p.div)}};
_.M.onLeft=function(S){this.imageEditor&&this.setFocusInImageEditor()&&(NSA(this.imageEditor,0),this.updatePositionOfAllCorners(),S.preventDefault())};
_.M.onRight=function(S){this.imageEditor&&this.setFocusInImageEditor()&&(NSA(this.imageEditor,1),this.updatePositionOfAllCorners(),S.preventDefault())};
_.M.onUp=function(S){this.imageEditor&&this.setFocusInImageEditor()&&(NSA(this.imageEditor,2),this.updatePositionOfAllCorners(),S.preventDefault())};
_.M.onDown=function(S){this.imageEditor&&this.setFocusInImageEditor()&&(NSA(this.imageEditor,3),this.updatePositionOfAllCorners(),S.preventDefault())};
_.M.beforeRegister=function(){this.ironA11yKeysBehavior.keyBindings={left:"onLeft",right:"onRight",up:"onUp",down:"onDown"}};
_.M.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.M.detached=function(){this.removeEventListeners();this.cleanupFocusListener();this.fileSelectorFocusListener=null};
_.$u.Object.defineProperties(zz.prototype,{outputMimeType:{configurable:!0,enumerable:!0,get:function(){return this.mimeType&&Om5.includes(this.mimeType)?this.mimeType:"image/jpeg"}},
imageChecker:{configurable:!0,enumerable:!0,get:function(){var S,p,U;((p=this.data)==null?0:p.imageRatio)&&((U=this.data)==null?0:U.minImageCropWidth)?S={maxFileSizeMB:15,minWidth:this.data.minImageCropWidth,minHeight:this.data.minImageCropWidth/this.data.imageRatio}:S=WiP;return new wcT(S)}}});
zz.prototype.updatePositionOfAllCorners=zz.prototype.updatePositionOfAllCorners;zz.prototype.dataChanged=zz.prototype.dataChanged;_.x([_.F(_.Aj.YtActionHandlerBehavior),_.E("design:type",Object)],zz.prototype,"ytActionHandlerBehavior",void 0);_.x([_.F(_.eL.YtComponentBehavior),_.E("design:type",Object)],zz.prototype,"ytComponentBehavior",void 0);_.x([_.F(_.H$),_.E("design:type",Object)],zz.prototype,"ironA11yKeysBehavior",void 0);
_.x([_.O2("#canvas"),_.E("design:type",HTMLCanvasElement)],zz.prototype,"canvasElement",void 0);_.x([_.O2("#file-selector"),_.E("design:type",HTMLInputElement)],zz.prototype,"fileSelector",void 0);_.x([_.O2("#top-left-corner"),_.E("design:type",HTMLDivElement)],zz.prototype,"topLeftCorner",void 0);_.x([_.O2("#top-right-corner"),_.E("design:type",HTMLDivElement)],zz.prototype,"topRightCorner",void 0);
_.x([_.O2("#bottom-left-corner"),_.E("design:type",HTMLDivElement)],zz.prototype,"bottomLeftCorner",void 0);_.x([_.O2("#bottom-right-corner"),_.E("design:type",HTMLDivElement)],zz.prototype,"bottomRightCorner",void 0);_.x([_.g(),_.E("design:type",Object)],zz.prototype,"data",void 0);_.x([_.g(),_.E("design:type",Object)],zz.prototype,"errorMessage",void 0);_.x([_.g(),_.E("design:type",Object)],zz.prototype,"isLoading",void 0);_.x([_.g(),_.E("design:type",Object)],zz.prototype,"hideContainer",void 0);
_.x([_.g({reflectToAttribute:!0,computed:"computePlaylistThumbnail(data.imageType)"}),_.E("design:type",Boolean)],zz.prototype,"isPlaylistThumbnail",void 0);_.x([_.z4("data"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype",Promise)],zz.prototype,"dataChanged",null);_.x([_.Vd("image-updated"),_.Vd("yt-refit"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],zz.prototype,"updatePositionOfAllCorners",null);
zz=_.x([_.FB({is:"yt-image-editor-renderer",disableElementRegistration:!0})],zz);
_.C(zz,"yt-image-editor-renderer",function(){if(gys===void 0){var S=document.createElement("template");_.h(S,'\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');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);var p=S.content,U=p.insertBefore;ePY===void 0&&(ePY=document.createElement("template"));var Y=ePY;U.call(p,Y.content.cloneNode(!0),S.content.firstChild);gys=S}S=gys;return S},{mode:2});var kgq;var Hmo;var QW=function(){return _.w.apply(this,arguments)||this};
_.r(QW,_.w);QW.prototype.updateMinutesFromBinding=function(S){this.handleMinutesChanged&&this.handleMinutesChanged(S)};
QW.prototype.updateSecondsFromBinding=function(S){this.handleSecondsChanged&&this.handleSecondsChanged(S)};
QW.prototype.updateDescriptionFromBinding=function(S){this.handleDescriptionChanged&&this.handleDescriptionChanged(S)};
_.x([_.F(_.eL.YtComponentBehavior),_.E("design:type",Object)],QW.prototype,"ytComponentBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],QW.prototype,"data",void 0);_.x([_.g(),_.E("design:type",String)],QW.prototype,"minutes",void 0);_.x([_.g(),_.E("design:type",String)],QW.prototype,"seconds",void 0);_.x([_.g(),_.E("design:type",String)],QW.prototype,"description",void 0);_.x([_.g(),_.E("design:type",Function)],QW.prototype,"handleMinutesChanged",void 0);
_.x([_.g(),_.E("design:type",Function)],QW.prototype,"handleSecondsChanged",void 0);_.x([_.g(),_.E("design:type",Function)],QW.prototype,"handleDescriptionChanged",void 0);_.x([_.g(),_.E("design:type",Number)],QW.prototype,"characterLimit",void 0);_.x([_.g(),_.E("design:type",Number)],QW.prototype,"textNumRows",void 0);QW=_.x([_.FB({is:"yt-report-details-form-content",disableElementRegistration:!0})],QW);
_.C(QW,"yt-report-details-form-content",function(){if(Hmo===void 0){var S=document.createElement("template");_.h(S,'\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>');
S.content.insertBefore(_.t().content.cloneNode(!0),S.content.firstChild);var p=S.content,U=p.insertBefore;kgq===void 0&&(kgq=document.createElement("template"));var Y=kgq;U.call(p,Y.content.cloneNode(!0),S.content.firstChild);Hmo=S}S=Hmo;return S},{mode:2});var DQA;var zpd;var nM=function(){var S=_.w.apply(this,arguments)||this;S.updateMinutesFromBinding=function(p){S.minutes=p.detail.value};
S.updateSecondsFromBinding=function(p){S.seconds=p.detail.value};
S.updateDescriptionFromBinding=function(p){S.description=p.detail.value};
return S};
_.r(nM,_.w);_.M=nM.prototype;_.M.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.isMusic&&(this.seconds=this.minutes="0")};
_.M.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"}}}};
_.M.ready=function(){_.tB(this.hostElement).querySelector("#submit-button").addEventListener("yt-action",this.onSubmitYtAction.bind(this))};
_.M.onSubmitYtAction=function(S){var p=S.detail;p.actionName==="yt-service-request"&&(p=p.args[1],p.flagEndpoint&&(S.stopPropagation(),this.refireAction(p)))};
_.M.refireAction=function(S){var p={text:this.description,minutes:Number(this.minutes),seconds:Number(this.seconds)};this.vssId&&(p.vss_id=this.vssId);_.Yd(this.hostElement,[S,p]);this.submitDisabled=!0};
_.M.dataChanged=function(){var S=this;this.seconds=this.minutes="";this.isMusic&&(this.seconds=this.minutes="0");this.vssId=this.description="";this.submitDisabled=!1;var p=_.$L();p&&p.getPlayerPromise().then(function(U){var Y=U.getOption("cc","track")||U.getOption("captions","track");Y&&(S.vssId=Y.vss_id);U=U.getCurrentTime();S.minutes=Math.floor(U/60).toString();S.seconds=(Math.floor(U)%60).toString()})};
_.M.updateSubmitButtonState=function(){var S;((S=this.data)==null?0:S.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==="")};
_.M.onYtServiceRequestCompleted=function(){_.St(this.hostElement,"yt-close-popup-action")};
_.M.onYtServiceRequestError=function(){this.submitDisabled=!1};
_.$u.Object.defineProperties(nM.prototype,{characterLimit:{configurable:!0,enumerable:!0,get:function(){var S;return((S=this.data)==null?void 0:S.characterLimit)||500}},
textNumRows:{configurable:!0,enumerable:!0,get:function(){var S;return((S=this.data)==null?void 0:S.textNumRows)||4}}});
nM.prototype.onYtServiceRequestError=nM.prototype.onYtServiceRequestError;nM.prototype.onYtServiceRequestCompleted=nM.prototype.onYtServiceRequestCompleted;nM.prototype.updateSubmitButtonState=nM.prototype.updateSubmitButtonState;_.x([_.F(_.qH.YtRendererstamperBehavior),_.E("design:type",Object)],nM.prototype,"ytRendererstamperBehavior",void 0);_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],nM.prototype,"ytRendererBehavior",void 0);
_.x([_.g({observer:"dataChanged"}),_.E("design:type",Object)],nM.prototype,"data",void 0);_.x([_.g(),_.E("design:type",Boolean)],nM.prototype,"submitDisabled",void 0);_.x([_.g(),_.E("design:type",String)],nM.prototype,"minutes",void 0);_.x([_.g(),_.E("design:type",String)],nM.prototype,"seconds",void 0);_.x([_.g(),_.E("design:type",String)],nM.prototype,"description",void 0);_.x([_.g(),_.E("design:type",String)],nM.prototype,"vssId",void 0);
_.x([_.g({value:_.g7("INNERTUBE_CLIENT_NAME")==="WEB_REMIX",reflectToAttribute:!0}),_.E("design:type",Boolean)],nM.prototype,"isMusic",void 0);_.x([_.e("data"),_.E("design:type",Number),_.E("design:paramtypes",[])],nM.prototype,"characterLimit",null);_.x([_.e("data"),_.E("design:type",Number),_.E("design:paramtypes",[])],nM.prototype,"textNumRows",null);
_.x([_.z4("minutes","seconds","description","submitDisabled"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],nM.prototype,"updateSubmitButtonState",null);_.x([_.Vd("yt-service-request-completed"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],nM.prototype,"onYtServiceRequestCompleted",null);
_.x([_.Vd("yt-service-request-error"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],nM.prototype,"onYtServiceRequestError",null);nM=_.x([_.FB({is:"yt-report-details-form-renderer",disableElementRegistration:!0})],nM);
_.C(nM,"yt-report-details-form-renderer",function(){if(zpd===void 0){var S=document.createElement("template");_.h(S,'\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');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);var p=S.content,U=p.insertBefore;DQA===void 0&&(DQA=document.createElement("template"));var Y=DQA;U.call(p,Y.content.cloneNode(!0),S.content.firstChild);zpd=S}S=zpd;return S});var Q0o;var n0J;var Jgt;var ygt;var Jp=function(){return _.w.apply(this,arguments)||this};
_.r(Jp,_.w);
Jp.prototype.onCheckedChanged_=function(){if(this.data){var S=_.tB(this.hostElement).querySelector("#checkbox").checked;this.data.identifier==="yt-external-links-checkbox"?_.St(this.hostElement,"yt-additional-detail-checkbox-update",[S]):this.data.identifier==="yt-hide-user-checkbox"?_.St(this.hostElement,"yt-hide-user-checkbox-update",[S]):S&&this.data.enableCommand?_.St(this.hostElement,"yt-modify-report-form-command",[_.b(this.data.enableCommand,sXt)]):!S&&this.data.disableCommand&&_.St(this.hostElement,
"yt-modify-report-form-command",[_.b(this.data.enableCommand,sXt)])}};
Jp.prototype.onLabelTap_=function(S){S.target.tagName!="A"&&(_.tB(this.hostElement).querySelector("#checkbox").checked=!_.tB(this.hostElement).querySelector("#checkbox").checked)};
_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],Jp.prototype,"ytRendererBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],Jp.prototype,"data",void 0);Jp=_.x([_.FB({is:"yt-boolean-form-field-v2-renderer",disableElementRegistration:!0})],Jp);
_.C(Jp,"yt-boolean-form-field-v2-renderer",function(){if(ygt===void 0){var S=document.createElement("template");_.h(S,'\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');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);var p=S.content,U=p.insertBefore;Jgt===void 0&&(Jgt=document.createElement("template"));var Y=Jgt;U.call(p,Y.content.cloneNode(!0),S.content.firstChild);ygt=S}S=ygt;return S});var yW=function(){var S=_.w.apply(this,arguments)||this;S.canShowAdditionalDetailCheckbox=!1;S.canShowCheckbox=!1;S.keepDropdownFocusedAfterSelection=!0;return S};
_.r(yW,_.w);yW.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}}}}};
_.x([_.F(_.qH.YtRendererstamperBehavior),_.E("design:type",Object)],yW.prototype,"ytRendererstamperBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],yW.prototype,"data",void 0);_.x([_.g(),_.E("design:type",Object)],yW.prototype,"canShowAdditionalDetailCheckbox",void 0);_.x([_.g(),_.E("design:type",Object)],yW.prototype,"canShowCheckbox",void 0);_.x([_.g(),_.E("design:type",Object)],yW.prototype,"keepDropdownFocusedAfterSelection",void 0);
yW=_.x([_.FB({is:"yt-report-form-modal-content",disableElementRegistration:!0})],yW);
_.C(yW,"yt-report-form-modal-content",function(){if(n0J===void 0){var S=document.createElement("template");_.h(S,'\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>');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);var p=S.content,U=p.insertBefore;Q0o===void 0&&(Q0o=document.createElement("template"));var Y=Q0o;U.call(p,Y.content.cloneNode(!0),S.content.firstChild);n0J=S}S=n0J;return S},{mode:2});var KiL;var bmn;var KM=function(){var S=_.w.apply(this,arguments)||this;S.submitting=!1;S.submitButtonDisabled=!0;S.command=null;S.canShowCheckbox=!1;S.canShowAdditionalDetailCheckbox=!1;S.canShowNextButton=!1;S.additionalDetailCheckboxChecked=!1;S.refitJob=0;S.keepDropdownFocusedAfterSelection=!0;S.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 S};
_.r(KM,_.w);_.M=KM.prototype;_.M.created=function(){this.refitJob=0};
_.M.attached=function(){this.JSC$18603_scroller&&(this.JSC$18603_scroller.dialogElement=this.hostElement.parentNode,this.JSC$18603_scroller.attached&&typeof this.JSC$18603_scroller.attached==="function"&&this.JSC$18603_scroller.attached());this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.M.dataChanged=function(S){S&&(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,S.legalReportCheckbox&&this.set("data.legalReportCheckbox.booleanFormFieldV2Renderer.value",
!1),S.additionalDetailCheckbox&&this.set("data.additionalDetailCheckbox.booleanFormFieldV2Renderer.value",!1),this.updateDialogStyling())};
_.M.onYtPopupOpened=function(){var S=_.$L();S&&S.getPlayerPromise().then(function(p){p.pauseVideo()})};
_.M.onYtNavigate=function(S){_.b(S.detail.endpoint,_.GUd)&&(S.stopPropagation(),this.hideReportForm=!0)};
_.M.onYtServiceRequestSent=function(){this.toggleSubmitButton(!0)};
_.M.onYtServiceRequestCompleted=function(S,p){var U=p.actions;if(U){if(U.length===1&&_.b(U[0],_.I2)){var Y;U=((Y=_.b(U[0],_.I2))==null?void 0:Y.commands)||[]}Y=0;for(var L=U.length;Y<L;Y++)_.b(U[Y],_.KQ)&&(S.stopPropagation(),this.hostElement.parentElement.close(),this.openPopupBehavior.openPopup(U[Y]))}if(p.data&&(S=this.get("feedbackResponses",p.data)))for(p=0;p<S.length;p++)if(S[p].isThumbnailReporting){this.hostElement.parentElement.close();break}};
_.M.onYtServiceRequestError=function(){this.toggleSubmitButton(!1)};
_.M._onDescendantIronResize=function(S){S.stopPropagation();return!1};
_.M.handleReportFormEndpointUpdateAction=function(S){if(S.submitEndpoint){var p=this.command=S.submitEndpoint;p=_.b(p,_.O0q);if(p==null?0:p.additionalDetailCheckboxChecked)p.additionalDetailCheckboxChecked=this.additionalDetailCheckboxChecked;this.toggleSubmitButton(!1)}else S.submitNavigationEndpoint?(this.command=S.submitNavigationEndpoint,this.toggleSubmitButton(!1)):S.confirmDialog?(this.command={confirmDialogEndpoint:{content:{confirmDialogRenderer:S.confirmDialog.confirmDialogRenderer}}},this.toggleSubmitButton(!1)):
this.command=null;S.disableSubmitButton&&this.toggleSubmitButton(!0);this.handleModifyReportFormCommand(this.get("clickCommands.0.modifyReportFormCommand",S));this.refit()};
_.M.handleConfirmDialogCloseAction=function(S){S.confirmed?this.hostElement.parentElement.close():this.hideReportForm=!1};
_.M.submitButtonDisabledChanged=function(){var S=this.hostElement.parentElement;S&&S.invalidateTabbables&&S.invalidateTabbables()};
_.M.handleModifyReportFormCommand=function(S){S=this.get("action",S);S==="REPORT_FORM_ACTION_LEGAL_CHECKBOX_HIDE"?this.canShowCheckbox=!1:S==="REPORT_FORM_ACTION_LEGAL_CHECKBOX_SHOW"?this.canShowCheckbox=!0:S==="REPORT_FORM_ACTION_ADDITIONAL_DETAIL_CHECKBOX_HIDE"?this.canShowAdditionalDetailCheckbox=!1:S==="REPORT_FORM_ACTION_ADDITIONAL_DETAIL_CHECKBOX_SHOW"?this.canShowAdditionalDetailCheckbox=!0:S==="REPORT_FORM_ACTION_SUBMIT_BUTTON_SHOW"?this.canShowNextButton=!1:S==="REPORT_FORM_ACTION_NEXT_BUTTON_SHOW"&&
(this.canShowNextButton=!0);this.refit()};
_.M.updateDialogStyling=function(){var S,p,U,Y,L,I=((L=(S=this.data)==null?void 0:(p=S.optionsSupportedRenderers)==null?void 0:(U=p.optionsRenderer)==null?void 0:(Y=U.items)==null?void 0:Y.length)!=null?L:0)<=2?0:240;_.Ms(this.hostElement,{"--yt-report-form-modal-renderer-min-width":I+"px"})};
_.M.toggleSubmitButton=function(S){this.submitButtonDisabled=!S;this.submitButtonDisabled=S};
_.M.computeSubmitButtonData=function(S,p){var U={};_.b(p,_.GUd)?U.navigationEndpoint=p:U.command=p||void 0;S&&S.buttonRenderer&&_.h9.extend(U,S.buttonRenderer);return U};
_.M.computeNextButtonData=function(S,p){var U={};if(!S||!S.buttonRenderer)return U;_.h9.extend(U,S.buttonRenderer);if(!p)return U;if(_.b(p,_.GUd))U.navigationEndpoint=$sT(p);else if(U.command=$sT(p),S=_.b(U.command,_.O0q))S.legalCheckboxChecked=!0;return U};
_.M.computeShowNextButton=function(S,p,U){return!!S&&p&&U};
_.M.refit=function(){var S=this;this.refitJob||(this.refitJob=_.PA.addLowPriorityJob(function(){_.cv(S.hostElement,"yt-refit");S.refitJob=0}))};
_.M.handleAdditionalDetailCheckboxUpdateAction=function(S){this.additionalDetailCheckboxChecked=S;_.b(this.command,_.O0q).additionalDetailCheckboxChecked=S};
_.$u.Object.defineProperties(KM,{template:{configurable:!0,enumerable:!0,get:function(){if(bmn===void 0){var S=document.createElement("template");_.h(S,'\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');
S.content.insertBefore(_.t().content.cloneNode(!0),S.content.firstChild);var p=S.content,U=p.insertBefore;KiL===void 0&&(KiL=document.createElement("template"));var Y=KiL;U.call(p,Y.content.cloneNode(!0),S.content.firstChild);bmn=S}S=bmn;return S}}});
KM.prototype.onYtServiceRequestError=KM.prototype.onYtServiceRequestError;KM.prototype.onYtServiceRequestCompleted=KM.prototype.onYtServiceRequestCompleted;KM.prototype.onYtServiceRequestSent=KM.prototype.onYtServiceRequestSent;KM.prototype.onYtNavigate=KM.prototype.onYtNavigate;KM.prototype.onYtPopupOpened=KM.prototype.onYtPopupOpened;_.x([_.F(_.dW.YtOpenPopupBehavior),_.E("design:type",Object)],KM.prototype,"openPopupBehavior",void 0);
_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],KM.prototype,"ytRendererBehavior",void 0);_.x([_.F(_.Aj.YtActionHandlerBehavior),_.E("design:type",Object)],KM.prototype,"ytActionHandlerBehavior",void 0);_.x([_.F(_.kP.YtEventForwardingBehavior),_.E("design:type",Object)],KM.prototype,"eventForwardingBehavior",void 0);_.x([_.F(_.ji),_.E("design:type",Object)],KM.prototype,"ironResizableBehavior",void 0);_.x([_.g({observer:"dataChanged"}),_.E("design:type",Object)],KM.prototype,"data",void 0);
_.x([_.g(),_.E("design:type",Object)],KM.prototype,"submitting",void 0);_.x([_.g({observer:"submitButtonDisabledChanged"}),_.E("design:type",Object)],KM.prototype,"submitButtonDisabled",void 0);_.x([_.g(),_.E("design:type",Object)],KM.prototype,"command",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Boolean)],KM.prototype,"hideReportForm",void 0);_.x([_.g(),_.E("design:type",Object)],KM.prototype,"canShowCheckbox",void 0);
_.x([_.g(),_.E("design:type",Object)],KM.prototype,"canShowAdditionalDetailCheckbox",void 0);_.x([_.g(),_.E("design:type",Object)],KM.prototype,"canShowNextButton",void 0);_.x([_.g(),_.E("design:type",Object)],KM.prototype,"additionalDetailCheckboxChecked",void 0);_.x([_.g(),_.E("design:type",Object)],KM.prototype,"refitJob",void 0);_.x([_.g(),_.E("design:type",Object)],KM.prototype,"keepDropdownFocusedAfterSelection",void 0);
_.x([_.O2("#scroller"),_.E("design:type",Object)],KM.prototype,"JSC$18603_scroller",void 0);_.x([_.Vd("yt-popup-opened"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],KM.prototype,"onYtPopupOpened",null);_.x([_.Vd("yt-navigate"),_.E("design:type",Function),_.E("design:paramtypes",[CustomEvent]),_.E("design:returntype")],KM.prototype,"onYtNavigate",null);
_.x([_.Vd("yt-service-request-sent"),_.E("design:type",Function),_.E("design:paramtypes",[CustomEvent,_.eM]),_.E("design:returntype")],KM.prototype,"onYtServiceRequestSent",null);_.x([_.Vd("yt-service-request-completed"),_.E("design:type",Function),_.E("design:paramtypes",[CustomEvent,_.xL]),_.E("design:returntype")],KM.prototype,"onYtServiceRequestCompleted",null);
_.x([_.Vd("yt-service-request-error"),_.E("design:type",Function),_.E("design:paramtypes",[CustomEvent]),_.E("design:returntype")],KM.prototype,"onYtServiceRequestError",null);KM=_.x([_.FB({is:"yt-report-form-modal-renderer",notifyObserversOnUndefined:!1,noInjection:!0})],KM);var j0J;var rgX;var bw=function(){return _.w.apply(this,arguments)||this};
_.r(bw,_.w);_.M=bw.prototype;_.M.attached=function(){this.isDarkTheme=!!document.documentElement.hasAttribute("dark");this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.hostElement.id="mealbar-promo-renderer"};
_.M.onVisible=function(){if(_.y("web_ephemeral_actions_focus")){var S,p;(p=_.tW().resolve(_.AW(_.Tt)))==null||p.enqueue({label:_.mA((S=this.data)==null?void 0:S.messageTitle),elementToFocus:this.hostElement})}};
_.M.onThumbnailLoaded=function(){_.cv(this.hostElement,"yt-refit")};
_.M.onDismissTap=function(){_.St(this.hostElement,"yt-close-popup-action",["yt-mealbar-promo-renderer"])};
_.M.computeAlternateIcon=function(S){return S?S==="BACKSTAGE_ARTWORK"?"backstage:artwork":S:null};
_.M.computeFontFamily=function(S){return S==="PROMO_FONT_FAMILY_YOUTUBE_SANS_BOLD"};
_.M.computeBackgroundStyle=function(S,p){if(S=this.computeBackgroundImage(S,p))if(S=_.tS(S.thumbnails))return'background-image: url("'+S+'");'};
_.M.computeHasFullHeightImage=function(S){return!(!(S&&S.thumbnails&&S.thumbnails.length>0)||this.modern)};
_.M.isModernStyle=function(S){return S.style==="STYLE_MODERN"};
_.M.computeIcon=function(S,p){if(S&&S.icon)return p?S.iconDark:S.icon};
_.M.computeBackgroundImage=function(S,p){if(S&&S.backgroundImage)return p?S.backgroundImageDark:S.backgroundImage};
_.M.computeLogo=function(S,p){if(S&&S.logo)return p?S.logoDark:S.logo};
_.M.computeShouldShowModernIcon=function(S,p){return S&&!!p};
_.M.getLogoContainerClassName=function(S){return this.logoWithPadding(S)?"yt-mealbar-promo-renderer-logo-with-padding":"yt-mealbar-promo-renderer-logo"};
_.M.getLogoImageId=function(S){return this.logoWithPadding(S)?"mealbar-logo-with-padding":"mealbar-logo"};
_.M.logoWithPadding=function(S){var p,U,Y;return(S=(p=this.computeLogo(S,this.isDarkTheme))==null?void 0:(U=p.thumbnails)==null?void 0:(Y=U[0])==null?void 0:Y.height)&&S%31===0?!0:!1};
bw.prototype.onThumbnailLoaded=bw.prototype.onThumbnailLoaded;_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],bw.prototype,"ytRendererBehavior",void 0);_.x([_.g({}),_.E("design:type",Object)],bw.prototype,"data",void 0);_.x([_.g({reflectToAttribute:!0,computed:"isModernStyle(data)"}),_.E("design:type",Boolean)],bw.prototype,"modern",void 0);_.x([_.g({value:!1}),_.E("design:type",Boolean)],bw.prototype,"isDarkTheme",void 0);
_.x([_.g({computed:"computeIcon(data, isDarkTheme)"}),_.E("design:type",Object)],bw.prototype,"icon",void 0);_.x([_.g({computed:"computeLogo(data, isDarkTheme)"}),_.E("design:type",Object)],bw.prototype,"logo",void 0);_.x([_.g({computed:"computeBackgroundStyle(data, isDarkTheme)"}),_.E("design:type",Object)],bw.prototype,"backgroundStyle",void 0);_.x([_.g({computed:"computeAlternateIcon(data.alternateIcon.iconType)"}),_.E("design:type",Object)],bw.prototype,"alternateIcon",void 0);
_.x([_.g({reflectToAttribute:!0,computed:"computeHasFullHeightImage(data.icon)"}),_.E("design:type",Boolean)],bw.prototype,"hasFullHeightImage",void 0);_.x([_.g({reflectToAttribute:!0,computed:"computeFontFamily(data.font)"}),_.E("design:type",Boolean)],bw.prototype,"useYoutubeSans",void 0);_.x([_.g({computed:"computeShouldShowModernIcon(modern, icon)"}),_.E("design:type",Boolean)],bw.prototype,"shouldShowModernIcon",void 0);
_.x([_.Vd("yt-img-shadow-loaded"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],bw.prototype,"onThumbnailLoaded",null);bw=_.x([_.FB({is:"yt-mealbar-promo-renderer",disableElementRegistration:!0})],bw);
_.C(bw,"yt-mealbar-promo-renderer",function(){if(rgX===void 0){var S=document.createElement("template");_.h(S,'\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');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);var p=S.content,U=p.insertBefore;j0J===void 0&&(j0J=document.createElement("template"));var Y=j0J;U.call(p,Y.content.cloneNode(!0),S.content.firstChild);rgX=S}S=rgX;return S},{mode:2});var GgA;var hpo;var j1=function(){return _.w.apply(this,arguments)||this};
_.r(j1,_.w);_.M=j1.prototype;_.M.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]]"}}}}}};
_.M.computeHasButtons_=function(S){return!(!S.dismissButton&&!S.acceptButton)};
_.M.computeStyle_=function(S){return S||"BUBBLE_HINT_STYLE_UNKNOWN"};
_.M.observeImpressionEndpoints_=function(){var S=this;this.data&&this.data.promoConfig&&this.data.promoConfig.impressionEndpoints&&this.data.promoConfig.impressionEndpoints.forEach(function(p){p.clickTrackingParams&&delete p.clickTrackingParams;_.Yd(S.hostElement,[p])})};
_.M.onTap_=function(){_.St(this.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"])};
j1.prototype.observeImpressionEndpoints_=j1.prototype.observeImpressionEndpoints_;_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],j1.prototype,"ytRendererBehavior",void 0);_.x([_.F(_.kP.YtEventForwardingBehavior),_.E("design:type",Object)],j1.prototype,"ytEventForwardingBehavior",void 0);_.x([_.F(_.qH.YtRendererstamperBehavior),_.E("design:type",Object)],j1.prototype,"ytRendererstamperBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],j1.prototype,"data",void 0);
_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],j1.prototype,"positionType",void 0);_.x([_.g({value:!1,reflectToAttribute:!0,computed:"computeHasButtons_(data)"}),_.E("design:type",Boolean)],j1.prototype,"hasButtons_",void 0);_.x([_.g({value:function(){return this.onTap_.bind(this)}}),
_.E("design:type",Function)],j1.prototype,"boundOnTap_",void 0);_.x([_.g({value:{style:"mono-inverse"}}),_.E("design:type",Object)],j1.prototype,"buttonOverride",void 0);_.x([_.T4("data.promoConfig.impressionEndpoints"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],j1.prototype,"observeImpressionEndpoints_",null);j1=_.x([_.FB({is:"yt-tooltip-renderer",disableElementRegistration:!0})],j1);
_.C(j1,"yt-tooltip-renderer",function(){if(hpo===void 0){var S=document.createElement("template");_.h(S,'\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');
S.content.insertBefore(_.t().content.cloneNode(!0),S.content.firstChild);var p=S.content,U=p.insertBefore;GgA===void 0&&(GgA=document.createElement("template"));var Y=GgA;U.call(p,Y.content.cloneNode(!0),S.content.firstChild);hpo=S}S=hpo;return S},{mode:2});var RpX;var FiL;var XnT={},Pqn=(XnT.WEB_REMIX="music.youtube.com",XnT),rD=function(){var S=_.w.apply(this,arguments)||this;S.actionMap={"yt-signal-action-copy-share-embed-url":"handleSignalActionCopyShareEmbedUrl_","yt-share-panel-set-timestamp-action":"handleSetTimestamp_"};return S};
_.r(rD,_.w);_.M=rD.prototype;_.M.configureRendererStamper=function(){return{"data.actionButtons":{id:"action-buttons",mapping:{buttonRenderer:"yt-button-renderer"}},"data.startAt":{id:"start-at",mapping:{startAtRenderer:"yt-start-at-renderer"}}}};
_.M.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.M.created=function(){this.embedHost_=Pqn[_.g7("INNERTUBE_CLIENT_NAME")]||"www.youtube.com"};
_.M.ready=function(){_.tB(this.hostElement).querySelector("#embed-code").addEventListener("tap",this.onEmbedCode_.bind(this))};
_.M.computeEmbedCode_=function(S,p,U,Y,L){if(!S)return"";var I=S.videoId,V=S.fullListId,W=[];S.attributionId&&W.push("si="+S.attributionId);Y||W.push("controls=0");U&&Number(p)>0&&W.push("start="+p);V&&(I="videoseries",W.push("list="+V));U="https://"+(L?"www.youtube-nocookie.com":this.embedHost_)+"/embed/"+I;S.clipId&&(W.push("clip="+S.clipId),W.push("clipt="+S.clipTiming));p=W.length>0?U+"?"+W.join("&amp;"):U;S.encryptedEmbedConfig&&W.push("embed_config="+JSON.stringify({enc:S.encryptedEmbedConfig}));
W=W.length>0?U+"?"+W.join("&amp;"):U;_.y("web_sharing_embed_preview_killswitch")?_.tB(this.videoPreviewContainer).innerHTML=this.getEmbedCode_(W,S.previewWidth||854,S.previewHeight||480):(_.K0(this.videoPreviewContainer),_.tB(this.videoPreviewContainer).appendChild(this.buildIframeElement(W)));return this.getEmbedCode_(p,S.width||560,S.height||315)};
_.M.buildIframeElement=function(S){var p=document.createElement("iframe"),U,Y;p.width=""+((Y=(U=this.data)==null?void 0:U.previewWidth)!=null?Y:854);var L,I;p.height=""+((I=(L=this.data)==null?void 0:L.previewHeight)!=null?I:480);_.yir(p,2,S);p.title="YouTube video player";p.frameBorder="0";p.allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share";p.referrerPolicy="strict-origin-when-cross-origin";p.allowFullscreen=!0;return p};
_.M.computeIsSquareAspectRatio_=function(S){return S.previewHeight&&S.previewWidth?S.previewHeight==S.previewWidth:!1};
_.M.computeShowEmbedOptions_=function(S){return!!S.enablePrivacyModeOptionLabel||!!S.showPlayerControlsOptionLabel};
_.M.getEmbedCode_=function(S,p,U){return'<iframe width="'+p+'" height="'+U+'" src="'+S+'" 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>'};
_.M.handleSignalActionCopyShareEmbedUrl_=function(){_.tB(this.hostElement).querySelector("#embed-code").inputElement.textarea.select();document.execCommand("copy");this.trackEmbedCopyUrl_()};
_.M.handleSetTimestamp_=function(S){this.startAtTimeStamp_=(this.startAtChecked_=S.isSet)?S.timestamp:0};
_.M.closePanel_=function(){_.St(this.hostElement,"yt-close-popup-action",["yt-sharing-embed-renderer"])};
_.M.onEmbedCode_=function(){_.tB(this.hostElement).querySelector("#embed-code").inputElement.textarea.select();this.trackEmbedCopyUrl_()};
_.M.onYtPopupClosed_=function(){_.K0(_.tB(this.hostElement).querySelector("#video-preview"))};
_.M.trackEmbedCopyUrl_=function(){this&&this.data&&this.data.actionButtons&&this.data.actionButtons.length>0&&_.b(this.data.actionButtons[0],_.XT)&&this.ytRendererBehavior.logExplicitClick(_.b(this.data.actionButtons[0],_.XT))};
rD.prototype.onYtPopupClosed_=rD.prototype.onYtPopupClosed_;_.x([_.F(_.qH.YtRendererstamperBehavior),_.E("design:type",Object)],rD.prototype,"ytRendererstamperBehavior",void 0);_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],rD.prototype,"ytRendererBehavior",void 0);_.x([_.F(_.Aj.YtActionHandlerBehavior),_.E("design:type",Object)],rD.prototype,"ytActionHandlerBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],rD.prototype,"data",void 0);
_.x([_.g({computed:"computeEmbedCode_(data, startAtTimeStamp_, startAtChecked_, isPlayerControlsOptionChecked_, isPrivacyModeOptionChecked_)"}),_.E("design:type",String)],rD.prototype,"embedCode_",void 0);_.x([_.g({value:!0}),_.E("design:type",Boolean)],rD.prototype,"isPlayerControlsOptionChecked_",void 0);_.x([_.g({value:!1}),_.E("design:type",Boolean)],rD.prototype,"isPrivacyModeOptionChecked_",void 0);_.x([_.g({value:!1,notify:!0}),_.E("design:type",Boolean)],rD.prototype,"startAtChecked_",void 0);
_.x([_.g({value:0}),_.E("design:type",Number)],rD.prototype,"startAtTimeStamp_",void 0);_.x([_.g({computed:"computeIsSquareAspectRatio_(data)",reflectToAttribute:!0}),_.E("design:type",Boolean)],rD.prototype,"isSquareAspectRatio_",void 0);_.x([_.O2("#video-preview"),_.E("design:type",HTMLElement)],rD.prototype,"videoPreviewContainer",void 0);_.x([_.Vd("yt-popup-closed"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],rD.prototype,"onYtPopupClosed_",null);
rD=_.x([_.FB({is:"yt-sharing-embed-renderer",disableElementRegistration:!0})],rD);
_.C(rD,"yt-sharing-embed-renderer",function(){if(FiL===void 0){var S=document.createElement("template");_.h(S,'\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');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);var p=S.content,U=p.insertBefore;RpX===void 0&&(RpX=document.createElement("template"));var Y=RpX;U.call(p,Y.content.cloneNode(!0),S.content.firstChild);FiL=S}S=FiL;return S},{mode:2});var Zmn={};
Zmn.YtUnlimitedFamilyInterstitialBehavior=[_.dW.YtOpenPopupBehavior,_.Aj.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(S){S=_.irQ(_.mF(S),"yt-button-renderer");return S?S.hasAttribute("footer-button")?(this.hostElement.parentElement.close(),!0):!1:!1},
pushToHistory:function(S){this.dialogHistory_.push(S)},
popFromHistory:function(){return this.dialogHistory_.pop()},
handleSignalActionShowPreviousFamilyDialog_:function(){var S=this.popFromHistory();if(S){var p={openPopupAction:{popupType:"DIALOG",popup:{}}};p.openPopupAction.popup[S.renderer]=S.data;this.showingPreviousDialog_=!0;this.openPopup(p)}},
handleOpenPopupAction_:function(S){if(this.showingPreviousDialog_)this.showingPreviousDialog_=!1;else{var p=["unlimitedFamilyMessageInterstitialRenderer","unlimitedFamilyProfileInterstitialRenderer"].some(function(Y){return!!S.openPopupAction.popup[Y]}),U=this.getElementName_();
p&&this.data&&(this.pushToHistory({renderer:U,data:this.data}),this.hostElement.parentElement.close())}},
handleUnlimitedCreateFamilyEndpoint_:function(S){if(S=_.b(S,MiY))this.loading=!0,_.St(this.hostElement,"yt-open-create-family-dialog",[S,this.unicornReadyCallback_.bind(this)])},
getElementName_:function(){var S=this.hostElement.nodeName.split("-").slice(1).map(function(p){return""+p[0].toUpperCase()+p.slice(1).toLowerCase()}).join("");
return S[0].toLowerCase()+S.slice(1)},
unicornReadyCallback_:function(){this.hostElement.parentElement.close&&this.hostElement.parentElement.close();this.loading=!1}}];var s0i;var epP;var Gz=function(){return _.w.apply(this,arguments)||this};
_.r(Gz,_.w);_.M=Gz.prototype;_.M.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}}}}}};
_.M.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");_.St(this.hostElement,"yt-register-create-family-dialog");_.tB(this.hostElement).querySelector("#thumbnail").onShow()};
_.M.fireOnCloseCommand_=function(){var S;((S=this.data)==null?0:S.onCloseCommand)&&_.Lp(this.hostElement,[this.data.onCloseCommand],this.hostElement)};
_.M.onYtServiceRequestSent_=function(S,p){p&&p.endpoint&&_.b(p.endpoint,_.TI)||(this.loading=!0)};
_.M.onYtServiceRequestCompleted_=function(){var S=this.hostElement.parentElement;S.close&&S.close();this.loading=!1};
_.M.openPopupHandler_=function(S){if(S.detail==this){var p;((p=this.data)==null?0:p.onOpenCommands)&&_.Lp(this.hostElement,this.data.onOpenCommands,this.hostElement)}};
_.M.closePopupHandler_=function(S,p){this.fireOnCloseCommand_();if(p&&p.canceled===!0||p&&p.canceled===!1&&p.confirmed===!1){var U;((U=this.data)==null?0:U.onDismissCommands)&&_.Lp(this.hostElement,this.data.onDismissCommands,this.hostElement)}};
_.M.dataChanged_=function(){this.loading=!1};
Gz.prototype.dataChanged_=Gz.prototype.dataChanged_;Gz.prototype.closePopupHandler_=Gz.prototype.closePopupHandler_;Gz.prototype.openPopupHandler_=Gz.prototype.openPopupHandler_;Gz.prototype.onYtServiceRequestCompleted_=Gz.prototype.onYtServiceRequestCompleted_;Gz.prototype.onYtServiceRequestSent_=Gz.prototype.onYtServiceRequestSent_;_.x([_.F(_.kP.YtEventForwardingBehavior),_.E("design:type",Object)],Gz.prototype,"ytEventForwardingBehavior",void 0);
_.x([_.F(_.qH.YtRendererstamperBehavior),_.E("design:type",Object)],Gz.prototype,"ytRendererstamperBehavior",void 0);_.x([_.F(Zmn.YtUnlimitedFamilyInterstitialBehavior),_.E("design:type",Object)],Gz.prototype,"ytUnlimitedFamilyInterstitialBehavior",void 0);_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],Gz.prototype,"ytRendererBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],Gz.prototype,"data",void 0);
_.x([_.g({reflectToAttribute:!0,value:!1}),_.E("design:type",Boolean)],Gz.prototype,"loading",void 0);_.x([_.Vd("yt-service-request-sent"),_.E("design:type",Function),_.E("design:paramtypes",[CustomEvent,_.eM]),_.E("design:returntype")],Gz.prototype,"onYtServiceRequestSent_",null);_.x([_.Vd("yt-service-request-completed"),_.E("design:type",Function),_.E("design:paramtypes",[CustomEvent,_.xL]),_.E("design:returntype")],Gz.prototype,"onYtServiceRequestCompleted_",null);
_.x([_.Vd("yt-popup-opened"),_.E("design:type",Function),_.E("design:paramtypes",[CustomEvent,Object]),_.E("design:returntype")],Gz.prototype,"openPopupHandler_",null);_.x([_.Vd("yt-popup-closed"),_.E("design:type",Function),_.E("design:paramtypes",[CustomEvent,Object]),_.E("design:returntype")],Gz.prototype,"closePopupHandler_",null);_.x([_.T4("data"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],Gz.prototype,"dataChanged_",null);
Gz=_.x([_.FB({is:"yt-unlimited-family-message-interstitial-renderer",disableElementRegistration:!0})],Gz);
_.C(Gz,"yt-unlimited-family-message-interstitial-renderer",function(){if(epP===void 0){var S=document.createElement("template");_.h(S,'\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');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);var p=S.content,U=p.insertBefore;s0i===void 0&&(s0i=document.createElement("template"));var Y=s0i;U.call(p,Y.content.cloneNode(!0),S.content.firstChild);epP=S}S=epP;return S},{mode:2});var g0n;var uWi;var hp=function(){return _.w.apply(this,arguments)||this};
_.r(hp,_.w);hp.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"}}}};
hp.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");_.tB(this.hostElement).querySelectorAll(".secondary-thumbnail").forEach(function(S){S.onShow()});
_.tB(this.hostElement).querySelector("#main-thumbnail").onShow()};
hp.prototype.onButtonTap_=function(S){this.ytUnlimitedFamilyInterstitialBehavior.maybeCloseDialogOnFooterButtonTap(S)};
hp.prototype.computeMainThumbnailWidth_=function(S){return S&&S.length!==0?72:96};
_.x([_.F(_.qH.YtRendererstamperBehavior),_.E("design:type",Object)],hp.prototype,"ytRendererstamperBehavior",void 0);_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],hp.prototype,"ytRendererBehavior",void 0);_.x([_.F(Zmn.YtUnlimitedFamilyInterstitialBehavior),_.E("design:type",Object)],hp.prototype,"ytUnlimitedFamilyInterstitialBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],hp.prototype,"data",void 0);
_.x([_.g({computed:"computeMainThumbnailWidth_(data.secondaryThumbnails)"}),_.E("design:type",Number)],hp.prototype,"mainThumbnailWidth_",void 0);_.x([_.g({value:function(){return this.onButtonTap_.bind(this)}}),
_.E("design:type",Function)],hp.prototype,"boundButtonTap_",void 0);hp=_.x([_.FB({is:"yt-unlimited-family-profile-interstitial-renderer",disableElementRegistration:!0})],hp);
_.C(hp,"yt-unlimited-family-profile-interstitial-renderer",function(){if(uWi===void 0){var S=document.createElement("template");_.h(S,'\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>');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);var p=S.content,U=p.insertBefore;g0n===void 0&&(g0n=document.createElement("template"));var Y=g0n;U.call(p,Y.content.cloneNode(!0),S.content.firstChild);uWi=S}S=uWi;return S},{mode:2});var wn5;var lRT;var R_=function(){var S=_.w.apply(this,arguments)||this;S.sliderAriaValueText_=null;S.selectedIndex_=0;S.messages={PAUSE_SLIDER:_.Oh("PAUSE_SLIDER",void 0,"Pause Duration")};return S};
_.r(R_,_.w);_.M=R_.prototype;_.M.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_]]"}}}}}};
_.M.onPopupOpened_=function(S){S.detail==this&&_.y("enable_premium_voluntary_pause")&&(_.St(this.hostElement,"yt-close-popup-action",["yt-confirm-dialog-renderer"]),this.handleOnOpenCommands_())};
_.M.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.M.setDialogData=function(S){this.data=S;this.resetSlider_()};
_.M.dataChanged_=function(){this.data&&this.resetSlider_()};
_.M.onSubmitTap_=function(){if(this.data.confirmCommand){var S=this.data.confirmCommand;_.b(S,_.h2E)&&_.Yd(this.hostElement,[S,{resume_time_ms:parseInt(this.selectedData_.resumeTimeMs,10)}])}};
_.M.onExitButtonTap_=function(){_.St(this.hostElement,"yt-close-popup-action",["yt-unplugged-pause-membership-dialog-renderer"])};
_.M.closePopupHandler_=function(S,p){(p&&p.canceled===!0||p.canceled===!1&&p.confirmed===!1)&&this.handleOnDismissCommands_()};
_.M.onSliderChange_=function(){this.selectedIndex_=_.tB(this.hostElement).querySelector("#id-pause-slider").immediateValue;this.updateUiState_()};
_.M.updateUiState_=function(){this.data&&(this.selectedData_=this.data.endOptions[this.selectedIndex_],this.setSliderAriaValueText_())};
_.M.setSliderAriaValueText_=function(){this.selectedData_&&(this.sliderAriaValueText_=this.selectedData_.accessibilityData.label)};
_.M.resetSlider_=function(){if(this.data){var S=this.data.defaultEndOptionIndex||0,p=_.tB(this.hostElement).querySelector("#id-pause-slider");if(p.immediateValue<S)for(;p.immediateValue!=S;)p.increment();else if(S<p.immediateValue)for(;p.immediateValue!=S;)p.decrement();this.selectedIndex_=S;this.selectIndexMax_=this.data.endOptions.length-1;this.updateUiState_()}};
_.M.handleOnOpenCommands_=function(){this.data&&this.data.onOpenCommands&&this.data.onOpenCommands&&_.Lp(this.hostElement,this.data.onOpenCommands,this.hostElement)};
_.M.handleOnDismissCommands_=function(){this.data&&this.data.onDismissCommands&&this.data.onDismissCommands&&_.Lp(this.hostElement,this.data.onDismissCommands,this.hostElement)};
_.M.onYtServiceRequestSent=function(){this.loading=!0};
_.M.onYtServiceRequestCompleted=function(){this.hostElement.parentElement.close&&this.hostElement.parentElement.close();this.loading=!1};
R_.prototype.onYtServiceRequestCompleted=R_.prototype.onYtServiceRequestCompleted;R_.prototype.onYtServiceRequestSent=R_.prototype.onYtServiceRequestSent;R_.prototype.closePopupHandler_=R_.prototype.closePopupHandler_;R_.prototype.dataChanged_=R_.prototype.dataChanged_;R_.prototype.onPopupOpened_=R_.prototype.onPopupOpened_;_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],R_.prototype,"ytRendererBehavior",void 0);
_.x([_.F(_.qH.YtRendererstamperBehavior),_.E("design:type",Object)],R_.prototype,"ytRendererstamperBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],R_.prototype,"data",void 0);_.x([_.g({reflectToAttribute:!0,value:!1}),_.E("design:type",Boolean)],R_.prototype,"loading",void 0);_.x([_.g(),_.E("design:type",Number)],R_.prototype,"selectIndexMax_",void 0);_.x([_.g(),_.E("design:type",Object)],R_.prototype,"selectedData_",void 0);
_.x([_.g(),_.E("design:type",Object)],R_.prototype,"sliderAriaValueText_",void 0);_.x([_.g({value:function(){return this.onSubmitTap_.bind(this)}}),
_.E("design:type",Function)],R_.prototype,"onButtonTap_",void 0);_.x([_.g({value:function(){return this.onExitButtonTap_.bind(this)}}),
_.E("design:type",Function)],R_.prototype,"onSecondaryTap_",void 0);_.x([_.g(),_.E("design:type",Object)],R_.prototype,"messages",void 0);_.x([_.Vd("yt-popup-opened"),_.E("design:type",Function),_.E("design:paramtypes",[CustomEvent,Object]),_.E("design:returntype")],R_.prototype,"onPopupOpened_",null);_.x([_.T4("data"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],R_.prototype,"dataChanged_",null);
_.x([_.Vd("yt-popup-closed"),_.E("design:type",Function),_.E("design:paramtypes",[CustomEvent,Object]),_.E("design:returntype")],R_.prototype,"closePopupHandler_",null);_.x([_.Vd("yt-service-request-sent"),_.E("design:type",Function),_.E("design:paramtypes",[CustomEvent,_.eM]),_.E("design:returntype")],R_.prototype,"onYtServiceRequestSent",null);
_.x([_.Vd("yt-service-request-completed"),_.E("design:type",Function),_.E("design:paramtypes",[CustomEvent,_.xL]),_.E("design:returntype")],R_.prototype,"onYtServiceRequestCompleted",null);R_=_.x([_.FB({is:"yt-unplugged-pause-membership-dialog-renderer",disableElementRegistration:!0})],R_);
_.C(R_,"yt-unplugged-pause-membership-dialog-renderer",function(){if(lRT===void 0){var S=document.createElement("template");_.h(S,'\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>');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);var p=S.content,U=p.insertBefore;wn5===void 0&&(wn5=document.createElement("template"));var Y=wn5;U.call(p,Y.content.cloneNode(!0),S.content.firstChild);lRT=S}S=lRT;return S},{mode:2});var aRo;var fR5;var Fw=function(){return _.w.apply(this,arguments)||this};
_.r(Fw,_.w);Fw.prototype.configureRendererStamper=function(){return{"data.vcBalance":{id:"vc-balance",mapping:_.Fc("vcBalanceRenderer")}}};
_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],Fw.prototype,"ytRendererBehavior",void 0);_.x([_.F(_.qH.YtRendererstamperBehavior),_.E("design:type",Object)],Fw.prototype,"ytRendererstamperBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],Fw.prototype,"data",void 0);Fw=_.x([_.FB({is:"yt-vc-offer-layout-header-renderer",disableElementRegistration:!0})],Fw);
_.C(Fw,"yt-vc-offer-layout-header-renderer",function(){if(fR5===void 0){var S=document.createElement("template");_.h(S,'\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');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);var p=S.content,U=p.insertBefore;aRo===void 0&&(aRo=document.createElement("template"));var Y=aRo;U.call(p,Y.content.cloneNode(!0),S.content.firstChild);fR5=S}S=fR5;return S},{mode:2});var Cqn;var xQt;var E0n;var mQo;var Xw=function(){return _.w.apply(this,arguments)||this};
_.r(Xw,_.w);Xw.prototype.configureRendererStamper=function(){return{"data.vcIcon":{id:"vc-icon",mapping:{themedImageRenderer:{component:"yt-themed-image-renderer"}}}}};
_.$u.Object.defineProperties(Xw.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)}}});
_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],Xw.prototype,"ytRendererBehavior",void 0);_.x([_.F(_.qH.YtRendererstamperBehavior),_.E("design:type",Object)],Xw.prototype,"ytRendererstamperBehavior",void 0);_.x([_.F(_.yXe.YtTappableItemBehavior),_.E("design:type",Object)],Xw.prototype,"ytTappableItemBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],Xw.prototype,"data",void 0);
_.x([_.g({reflectToAttribute:!0}),_.e("data.accessibilityText"),_.E("design:type",String),_.E("design:paramtypes",[])],Xw.prototype,"ariaLabel",null);_.x([_.g({reflectToAttribute:!0}),_.e("data.style"),_.E("design:type",String),_.E("design:paramtypes",[])],Xw.prototype,"vcOfferStyle",null);_.x([_.e("data.style","data.titleText"),_.E("design:type",Boolean),_.E("design:paramtypes",[])],Xw.prototype,"showTitleText",null);Xw=_.x([_.FB({is:"yt-vc-offer-renderer",disableElementRegistration:!0})],Xw);
_.C(Xw,"yt-vc-offer-renderer",function(){if(mQo===void 0){var S=document.createElement("template");_.h(S,'\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');
S.content.insertBefore(_.t().content.cloneNode(!0),S.content.firstChild);var p=S.content,U=p.insertBefore;E0n===void 0&&(E0n=document.createElement("template"));var Y=E0n;U.call(p,Y.content.cloneNode(!0),S.content.firstChild);mQo=S}S=mQo;return S},{mode:2});var P_=function(){return _.w.apply(this,arguments)||this};
_.r(P_,_.w);P_.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}}}}}};
_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],P_.prototype,"ytRendererBehavior",void 0);_.x([_.F(_.qH.YtRendererstamperBehavior),_.E("design:type",Object)],P_.prototype,"ytRendererstamperBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],P_.prototype,"data",void 0);P_=_.x([_.FB({is:"yt-vc-offer-layout-renderer",disableElementRegistration:!0})],P_);
_.C(P_,"yt-vc-offer-layout-renderer",function(){if(xQt===void 0){var S=document.createElement("template");_.h(S,'\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');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);var p=S.content,U=p.insertBefore;Cqn===void 0&&(Cqn=document.createElement("template"));var Y=Cqn;U.call(p,Y.content.cloneNode(!0),S.content.firstChild);xQt=S}S=xQt;return S},{mode:2});var o0d;var v0s;var $QJ;var imi;var Zi=function(){return _.w.apply(this,arguments)||this};
_.r(Zi,_.w);Zi.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}}}}}};
_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],Zi.prototype,"ytRendererBehavior",void 0);_.x([_.F(_.qH.YtRendererstamperBehavior),_.E("design:type",Object)],Zi.prototype,"ytRendererstamperBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],Zi.prototype,"data",void 0);Zi=_.x([_.FB({is:"yt-ypc-offers-modal-top-bar-renderer",disableElementRegistration:!0})],Zi);
_.C(Zi,"yt-ypc-offers-modal-top-bar-renderer",function(){if(imi===void 0){var S=document.createElement("template");_.h(S,'\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');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);var p=S.content,U=p.insertBefore;$QJ===void 0&&($QJ=document.createElement("template"));var Y=$QJ;U.call(p,Y.content.cloneNode(!0),S.content.firstChild);imi=S}S=imi;return S},{mode:2});var sU=function(){return _.w.apply(this,arguments)||this};
_.r(sU,_.w);sU.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"}}}}};
sU.prototype.ready=function(){this.hostElement.setAttribute("dialog","")};
sU.prototype.attached=function(){this.scrollable.dialogElement=this.hostElement.parentNode;var S=this.scrollable;S.attached&&typeof S.attached==="function"&&S.attached()};
_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],sU.prototype,"ytRendererBehavior",void 0);_.x([_.F(_.qH.YtRendererstamperBehavior),_.E("design:type",Object)],sU.prototype,"ytRendererstamperBehavior",void 0);_.x([_.O2("#scrollable"),_.E("design:type",Object)],sU.prototype,"scrollable",void 0);_.x([_.g(),_.E("design:type",Object)],sU.prototype,"data",void 0);sU=_.x([_.FB({is:"yt-ypc-offers-modal-renderer",disableElementRegistration:!0})],sU);
_.C(sU,"yt-ypc-offers-modal-renderer",function(){if(v0s===void 0){var S=document.createElement("template");_.h(S,'\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');
S.content.insertBefore(_.t().content.cloneNode(!0),S.content.firstChild);var p=S.content,U=p.insertBefore;o0d===void 0&&(o0d=document.createElement("template"));var Y=o0d;U.call(p,Y.content.cloneNode(!0),S.content.firstChild);v0s=S}S=v0s;return S},{mode:2});var Nys;var Byd;var e1=function(){return _.w.apply(this,arguments)||this};
_.r(e1,_.w);_.M=e1.prototype;_.M.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}}}}}};
_.M.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");_.tB(this.hostElement).querySelector("#scrollable").dialogElement=this.hostElement.parentNode};
_.M.onYtServiceRequestCompleted_=function(){this.set("showSpinner",!1);_.St(this.hostElement,"yt-close-popup-action",["yt-ypc-upgrade-dialog-renderer"])};
_.M.onYtPopupOpened_=function(S,p){(p==null?void 0:p.is)==="yt-ypc-upgrade-dialog-renderer"&&this.data.onOpenCommands&&_.Lp(this.hostElement,this.data.onOpenCommands,this.hostElement)};
_.M.onYtPopupClosed_=function(S,p){this.continueButtonTapped||p&&(p.canceled===!0||p.canceled===!1&&p.confirmed===!1)&&this.data.onDismissCommands&&_.Lp(this.hostElement,this.data.onDismissCommands,this.hostElement)};
_.M.onYtServiceRequestError_=function(S){this.set("showSpinner",!1);_.An(this.hostElement,S.detail.error.message)};
_.M.onContinueTapped_=function(){this.set("continueButtonTapped",!0);_.y("enable_ypc_spinners")?_.St(this.hostElement,"yt-close-popup-action",["yt-ypc-upgrade-dialog-renderer"]):this.set("showSpinner",!0)};
e1.prototype.onYtServiceRequestError_=e1.prototype.onYtServiceRequestError_;e1.prototype.onYtPopupClosed_=e1.prototype.onYtPopupClosed_;e1.prototype.onYtPopupOpened_=e1.prototype.onYtPopupOpened_;e1.prototype.onYtServiceRequestCompleted_=e1.prototype.onYtServiceRequestCompleted_;_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],e1.prototype,"ytRendererBehavior",void 0);_.x([_.F(_.qH.YtRendererstamperBehavior),_.E("design:type",Object)],e1.prototype,"ytRendererstamperBehavior",void 0);
_.x([_.g(),_.E("design:type",Object)],e1.prototype,"data",void 0);_.x([_.g({value:!1}),_.E("design:type",Boolean)],e1.prototype,"showSpinner",void 0);_.x([_.g({value:!1}),_.E("design:type",Boolean)],e1.prototype,"continueButtonTapped",void 0);_.x([_.g({value:function(){return this.onContinueTapped_.bind(this)}}),
_.E("design:type",Function)],e1.prototype,"bindOnContinueTapped_",void 0);_.x([_.Vd("yt-service-request-completed"),_.E("design:type",Function),_.E("design:paramtypes",[CustomEvent]),_.E("design:returntype")],e1.prototype,"onYtServiceRequestCompleted_",null);_.x([_.Vd("yt-popup-opened"),_.E("design:type",Function),_.E("design:paramtypes",[CustomEvent,Object]),_.E("design:returntype")],e1.prototype,"onYtPopupOpened_",null);
_.x([_.Vd("yt-popup-closed"),_.E("design:type",Function),_.E("design:paramtypes",[CustomEvent,Object]),_.E("design:returntype")],e1.prototype,"onYtPopupClosed_",null);_.x([_.Vd("yt-service-request-error"),_.E("design:type",Function),_.E("design:paramtypes",[CustomEvent]),_.E("design:returntype")],e1.prototype,"onYtServiceRequestError_",null);e1=_.x([_.FB({is:"yt-ypc-upgrade-dialog-renderer",disableElementRegistration:!0})],e1);
_.C(e1,"yt-ypc-upgrade-dialog-renderer",function(){if(Byd===void 0){var S=document.createElement("template");_.h(S,'\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');
S.content.insertBefore(_.t().content.cloneNode(!0),S.content.firstChild);var p=S.content,U=p.insertBefore;Nys===void 0&&(Nys=document.createElement("template"));var Y=Nys;U.call(p,Y.content.cloneNode(!0),S.content.firstChild);Byd=S}S=Byd;return S},{mode:2});var qiJ;var AgT;var gD=function(){return _.w.apply(this,arguments)||this};
_.r(gD,_.w);gD.prototype.configureRendererStamper=function(){return{"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.confirmButton":{id:"accept-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
gD.prototype.computeHasButtons_=function(S){return!(!S.dismissButton&&!S.confirmButton)};
gD.prototype.computeStyle_=function(S){return S||"BUBBLE_HINT_STYLE_UNKNOWN"};
_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],gD.prototype,"ytRendererBehavior",void 0);_.x([_.F(_.kP.YtEventForwardingBehavior),_.E("design:type",Object)],gD.prototype,"ytEventForwardingBehavior",void 0);_.x([_.F(_.qH.YtRendererstamperBehavior),_.E("design:type",Object)],gD.prototype,"ytRendererstamperBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],gD.prototype,"data",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],gD.prototype,"positionType",void 0);
_.x([_.g({value:!1,reflectToAttribute:!0,computed:"computeHasButtons_(data)"}),_.E("design:type",Boolean)],gD.prototype,"hasButtons_",void 0);_.x([_.g({computed:"computeStyle_(data.style)",reflectToAttribute:!0}),_.E("design:type",Boolean)],gD.prototype,"style_",void 0);gD=_.x([_.FB({is:"yt-bubble-hint-renderer",disableElementRegistration:!0})],gD);
_.C(gD,"yt-bubble-hint-renderer",function(){if(AgT===void 0){var S=document.createElement("template");_.h(S,'\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');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);var p=S.content,U=p.insertBefore;qiJ===void 0&&(qiJ=document.createElement("template"));var Y=qiJ;U.call(p,Y.content.cloneNode(!0),S.content.firstChild);AgT=S}S=AgT;return S},{mode:2});var tDA;var cgn;var uw=function(){var S=_.iN.apply(this,arguments)||this;S.actionMap={"yt-hide-user-checkbox-update":"handleCheckBoxUpdateAction_"};return S};
_.r(uw,_.iN);_.M=uw.prototype;_.M.configureRendererStamper=function(){return{"data.checkbox":{id:"checkbox-container",mapping:{booleanFormFieldV2Renderer:{component:"yt-boolean-form-field-v2-renderer",noInjection:!0}}}}};
_.M.attached=function(){var S=this;this.hasAttribute("dialog")||this.setAttribute("dialog","true");this.$.scroller.dialogElement=this.parentNode;window.requestAnimationFrame(function(){S.$.thumbnail.onShow();S.$["header-image"].onShow()})};
_.M.handleCheckBoxUpdateAction_=function(S){this.canShowCheckboxEnabledConfirmButton=S};
_.M.computeUseOverlayForSpinner_=function(S,p){return!!S&&p};
_.M.computeShowSpinner_=function(S,p){return S||!!p};
_.M.fireOnCloseActions_=function(){var S,p=_.d(((S=this.data)==null?void 0:S.onClosedActions)||[]);for(S=p.next();!S.done;S=p.next())this.ytRendererBehavior.resolveCommand(S.value)};
_.M.fireOnOpenCommands_=function(S){var p,U=(p=this.data)==null?void 0:p.onOpenCommands;if(U)for(S.stopImmediatePropagation(),S=_.d(U),p=S.next();!p.done;p=S.next())this.ytRendererBehavior.resolveCommand(p.value)};
_.M.fireOnDismissCommands_=function(S){var p,U=(p=this.data)==null?void 0:p.onDismissCommands;if(U)for(S.stopImmediatePropagation(),S=_.d(U),p=S.next();!p.done;p=S.next())this.ytRendererBehavior.resolveCommand(p.value)};
_.M.openPopupHandler_=function(S){S.detail==this&&this.fireOnOpenCommands_(S)};
_.M.closePopupHandler_=function(S,p){_.pp(this,"yt-confirm-dialog-close-action",[p]);this.fireOnCloseActions_();(p&&p.canceled===!0||p&&p.canceled===!1&&p.confirmed===!1)&&this.fireOnDismissCommands_(S)};
_.M.onHeaderImageChanged_=function(){var S;((S=this.data)==null?0:S.headerImage)?this.setAttribute("dialog-with-header-image",""):this.removeAttribute("dialog-with-header-image")};
_.M.computeHasHeaderImageWidth_=function(S){return S!=void 0};
_.M.computeHasLoadingMessage=function(S){return!!S};
_.M.onHeaderImageWidthChanged_=function(){var S,p=(S=this.data)==null?void 0:S.headerImageWidth;if(p){if(S=1.25*p*2+p,this.$.main.style.width=S+"px",p=this.$.scroller.firstElementChild)p.style.minWidth=S+"px"}else this.$.main.style.width="100%"};
_.M.onThumbnailChanged_=function(){var S;((S=this.data)==null?0:S.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")};
_.M.onYtNavigate_=function(S){S=_.mF(S);S instanceof Node&&_.p3(this.$["confirm-button"]).contains(S)&&this.parentElement&&this.parentElement.close&&this.parentElement.close()};
_.M.computePrimaryIsCancel_=function(S){return S};
_.M.computeIsCancelButtonHidden_=function(S){return S.skipCancelButton||!S.cancelButton};
_.M.computeIsCheckboxHidden_=function(S){return!S.checkbox};
_.M.onThumbnailLoaded_=function(){this.parentElement&&this.parentElement.fit&&this.parentElement.fit()};
_.M.onYtServiceRequestSent_=function(){this.isActionInProgress_=!0};
_.M.onYtServiceRequestCompleted_=function(){var S;((S=this.data)==null?0:S.showLoadingSpinnerOnAction)&&this.parentElement&&this.parentElement.close&&this.parentElement.opened&&this.parentElement.close();this.isActionInProgress_=!1};
_.$u.Object.defineProperties(uw,{template:{configurable:!0,enumerable:!0,get:function(){if(cgn===void 0){var S=document.createElement("template");_.h(S,'\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');
S.content.insertBefore(_.t().content.cloneNode(!0),S.content.firstChild);var p=S.content,U=p.insertBefore;tDA===void 0&&(tDA=document.createElement("template"));var Y=tDA;U.call(p,Y.content.cloneNode(!0),S.content.firstChild);cgn=S}S=cgn;return S}}});
uw.prototype.onYtServiceRequestCompleted_=uw.prototype.onYtServiceRequestCompleted_;uw.prototype.onYtServiceRequestSent_=uw.prototype.onYtServiceRequestSent_;uw.prototype.onThumbnailLoaded_=uw.prototype.onThumbnailLoaded_;uw.prototype.onYtNavigate_=uw.prototype.onYtNavigate_;uw.prototype.onThumbnailChanged_=uw.prototype.onThumbnailChanged_;uw.prototype.onHeaderImageWidthChanged_=uw.prototype.onHeaderImageWidthChanged_;uw.prototype.onHeaderImageChanged_=uw.prototype.onHeaderImageChanged_;
uw.prototype.closePopupHandler_=uw.prototype.closePopupHandler_;uw.prototype.openPopupHandler_=uw.prototype.openPopupHandler_;_.x([_.F(_.Aj.YtActionHandlerBehavior),_.E("design:type",Object)],uw.prototype,"ytActionHandlerBehavior",void 0);_.x([_.F(_.qH.YtRendererstamperBehavior),_.E("design:type",Object)],uw.prototype,"ytRendererstamperBehavior",void 0);_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],uw.prototype,"ytRendererBehavior",void 0);
_.x([_.F(_.kP.YtEventForwardingBehavior),_.E("design:type",Object)],uw.prototype,"ytEventForwardingBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],uw.prototype,"data",void 0);_.x([_.g({computed:"computePrimaryIsCancel_(data.primaryIsCancel)",reflectToAttribute:!0,readOnly:!0}),_.E("design:type",Boolean)],uw.prototype,"primaryIsCancel",void 0);_.x([_.g({computed:"computeIsCancelButtonHidden_(data)",readOnly:!0}),_.E("design:type",Boolean)],uw.prototype,"isCancelButtonHidden",void 0);
_.x([_.g({computed:"computeIsCheckboxHidden_(data)",readOnly:!0}),_.E("design:type",Boolean)],uw.prototype,"isCheckboxHidden",void 0);_.x([_.g({value:!1,reflectToAttribute:!0}),_.E("design:type",Boolean)],uw.prototype,"canShowCheckboxEnabledConfirmButton",void 0);_.x([_.g({value:!1,computed:"computeUseOverlayForSpinner_(data.showLoadingSpinnerOnAction, isActionInProgress_)",reflectToAttribute:!0}),_.E("design:type",Boolean)],uw.prototype,"useOverlayForSpinner_",void 0);
_.x([_.g({value:!1,computed:"computeShowSpinner_(useOverlayForSpinner_, data.showLoadingSpinner)"}),_.E("design:type",Boolean)],uw.prototype,"showSpinner_",void 0);_.x([_.g({value:!1}),_.E("design:type",Boolean)],uw.prototype,"isActionInProgress_",void 0);_.x([_.g({value:!1,reflectToAttribute:!0,computed:"computeHasHeaderImageWidth_(data.headerImageWidth)"}),_.E("design:type",Boolean)],uw.prototype,"hasHeaderImageWidth_",void 0);
_.x([_.g({value:!1,reflectToAttribute:!0,computed:"computeHasLoadingMessage(data.loadingMessage)"}),_.E("design:type",Boolean)],uw.prototype,"hasLoadingMessage",void 0);_.x([_.Vd("yt-popup-opened"),_.E("design:type",Function),_.E("design:paramtypes",[CustomEvent,Object]),_.E("design:returntype")],uw.prototype,"openPopupHandler_",null);_.x([_.Vd("yt-popup-closed"),_.E("design:type",Function),_.E("design:paramtypes",[CustomEvent,Object]),_.E("design:returntype")],uw.prototype,"closePopupHandler_",null);
_.x([_.T4("data.headerImage"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],uw.prototype,"onHeaderImageChanged_",null);_.x([_.T4("data.headerImageWidth"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],uw.prototype,"onHeaderImageWidthChanged_",null);_.x([_.T4("data.thumbnail"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],uw.prototype,"onThumbnailChanged_",null);
_.x([_.Vd("yt-navigate"),_.E("design:type",Function),_.E("design:paramtypes",[CustomEvent]),_.E("design:returntype")],uw.prototype,"onYtNavigate_",null);_.x([_.Vd("yt-img-shadow-loaded"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],uw.prototype,"onThumbnailLoaded_",null);_.x([_.Vd("yt-service-request-sent"),_.E("design:type",Function),_.E("design:paramtypes",[CustomEvent,_.eM]),_.E("design:returntype")],uw.prototype,"onYtServiceRequestSent_",null);
_.x([_.Vd("yt-service-request-completed"),_.E("design:type",Function),_.E("design:paramtypes",[CustomEvent,_.xL]),_.E("design:returntype")],uw.prototype,"onYtServiceRequestCompleted_",null);uw=_.x([_.FB({is:"yt-confirm-dialog-renderer",noInjection:!0})],uw);var S6X;var pyE;var wD=function(){return _.w.apply(this,arguments)||this};
_.r(wD,_.w);wD.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");_.tB(this.hostElement).querySelector("#scroller").dialogElement=this.hostElement.parentNode};
wD.prototype.computeConfirmButton_=function(S){var p={text:S.confirmLabel,size:"SIZE_DEFAULT",style:"STYLE_BLUE_TEXT"};S.confirmNavigationEndpoint?p.navigationEndpoint=S.confirmNavigationEndpoint:S.confirmServiceEndpoint&&(p.serviceEndpoint=S.confirmServiceEndpoint);return p};
wD.prototype.computeShowTitle_=function(S){return!(S==null||!S.title)};
_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],wD.prototype,"ytRendererBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],wD.prototype,"data",void 0);_.x([_.g({computed:"computeShowTitle_(data)"}),_.E("design:type",Boolean)],wD.prototype,"showTitle",void 0);wD=_.x([_.FB({is:"yt-fancy-dismissible-dialog-renderer",disableElementRegistration:!0})],wD);
_.C(wD,"yt-fancy-dismissible-dialog-renderer",function(){if(pyE===void 0){var S=document.createElement("template");_.h(S,'\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');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);var p=S.content,U=p.insertBefore;S6X===void 0&&(S6X=document.createElement("template"));var Y=S6X;U.call(p,Y.content.cloneNode(!0),S.content.firstChild);pyE=S}S=pyE;return S});var Urt;var Y65;var lw=function(){var S=_.w.apply(this,arguments)||this;S.spinnerActive=!1;return S};
_.r(lw,_.w);lw.prototype.created=function(){GvX(2201)};
lw.prototype.onIronOverlayOpened=function(){this.spinnerActive=!0};
lw.prototype.onIronOverlayClosed=function(){this.spinnerActive=!1};
lw.prototype.onIronOverlayClosed=lw.prototype.onIronOverlayClosed;lw.prototype.onIronOverlayOpened=lw.prototype.onIronOverlayOpened;_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],lw.prototype,"ytRendererBehavior",void 0);_.x([_.F(_.aU),_.E("design:type",Object)],lw.prototype,"tpYtIronOverlayBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],lw.prototype,"data",void 0);_.x([_.g(),_.E("design:type",Object)],lw.prototype,"spinnerActive",void 0);
_.x([_.Vd("iron-overlay-opened"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],lw.prototype,"onIronOverlayOpened",null);_.x([_.Vd("iron-overlay-closed"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],lw.prototype,"onIronOverlayClosed",null);lw=_.x([_.FB({is:"yt-loading-renderer",disableElementRegistration:!0})],lw);
_.C(lw,"yt-loading-renderer",function(){if(Y65===void 0){var S=document.createElement("template");_.h(S,'\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');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);var p=S.content,U=p.insertBefore;Urt===void 0&&(Urt=document.createElement("template"));var Y=Urt;U.call(p,Y.content.cloneNode(!0),S.content.firstChild);Y65=S}S=Y65;return S},{mode:2});var L3J;var M7E;var a_=function(){var S=_.w.apply(this,arguments)||this;S.closeOnDismissButton_=new Set(["UPSELL_DIALOG_DISMISS_STRATEGY_UNKNOWN","UPSELL_DIALOG_DISMISS_STRATEGY_ONLY_DISMISS_BUTTON_TAP"]);S.closeOnAcceptButton_=new Set(["UPSELL_DIALOG_DISMISS_STRATEGY_UNKNOWN","UPSELL_DIALOG_DISMISS_STRATEGY_ONLY_ACTION_BUTTON_TAP"]);S.defaultDismissStrategy_="UPSELL_DIALOG_DISMISS_STRATEGY_UNKNOWN";S.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return S};
_.r(a_,_.w);_.M=a_.prototype;_.M.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
_.M.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.isDarkTheme=!!document.documentElement.hasAttribute("dark")};
_.M.onDarkModeToggledAction=function(S){this.isDarkTheme=S};
_.M.dataChanged_=function(){this.data&&(this.hostElement.hidden=!this.data.isVisible,this.data.isVisible||this.ytRendererBehavior.impressionLog())};
_.M.openPopupHandler_=function(S){S.detail===this.hostElement&&this.hostElement.hidden&&_.St(this.hostElement,"yt-close-popup-action",["yt-upsell-dialog-renderer"])};
_.M.onDismissButtonTap_=function(){var S;this.closeOnDismissButton_.has(((S=this.data)==null?void 0:S.dismissStrategy)||this.defaultDismissStrategy_)&&(this.set("data.isVisible",!1),_.St(this.hostElement,"yt-close-popup-action",["yt-upsell-dialog-renderer"]))};
_.M.onAcceptButtonTap_=function(){var S;this.closeOnAcceptButton_.has(((S=this.data)==null?void 0:S.dismissStrategy)||this.defaultDismissStrategy_)&&(this.set("data.isVisible",!1),_.St(this.hostElement,"yt-close-popup-action",["yt-upsell-dialog-renderer"]))};
_.M.computeHasHeader_=function(S){return!!S.headerBackgroundImage};
_.M.computeLayoutStyle_=function(S){return S};
_.M.computePopupSize_=function(S){return S};
_.M.computeIconType_=function(S){return S.dialogIcon&&S.dialogIcon.iconType?S.dialogIcon.iconType==="YOUTUBE_LOGO"?"yt-logos-ext:yt-logo-updated":S.dialogIcon.iconType==="YOUTUBE_PREMIUM_LOGO"?"yt-logos-ext:yt-logo-red-updated":S.dialogIcon.iconType:""};
_.M.computeIsLogo_=function(S){return!!S.dialogIcon&&!!S.dialogIcon.iconType&&(S.dialogIcon.iconType==="YOUTUBE_LOGO"||S.dialogIcon.iconType==="YOUTUBE_PREMIUM_LOGO"||S.dialogIcon.iconType==="YOUTUBE_MUSIC_LOGO_SHORT")};
_.M.computeHasCustomLogo=function(S){return!(S==null||!S.headerForegroundImage)};
_.M.computeCustomLogo=function(S,p){if(S!=null&&S.headerForegroundImage)return S.headerForegroundImageDark?p?S.headerForegroundImageDark:S.headerForegroundImage:S.headerForegroundImage};
_.M.computeHeaderBackgroundImage=function(S,p){if(S!=null&&S.headerBackgroundImage)return p&&(S==null?0:S.headerBackgroundImageDark)?S.headerBackgroundImageDark:S.headerBackgroundImage};
_.M.shouldShowIconContainer=function(S,p){return S&&!p};
_.M.shouldShowNonYouTubeIcon=function(S,p){return!S&&!p};
_.M.getLogoImageId=function(S){var p,U,Y;return(S=(p=this.computeCustomLogo(S,this.isDarkTheme))==null?void 0:(U=p.thumbnails)==null?void 0:(Y=U[0])==null?void 0:Y.height)&&S%31===0?"custom-logo-with-padding":"custom-logo"};
a_.prototype.openPopupHandler_=a_.prototype.openPopupHandler_;a_.prototype.dataChanged_=a_.prototype.dataChanged_;_.x([_.F(_.qH.YtRendererstamperBehavior),_.E("design:type",Object)],a_.prototype,"ytRendererstamperBehavior",void 0);_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],a_.prototype,"ytRendererBehavior",void 0);_.x([_.g(),_.E("design:type",Boolean)],a_.prototype,"isDarkTheme",void 0);
_.x([_.g({computed:"computeCustomLogo(data, isDarkTheme)"}),_.E("design:type",Object)],a_.prototype,"customLogo",void 0);_.x([_.g({computed:"computeHeaderBackgroundImage(data, isDarkTheme)"}),_.E("design:type",Object)],a_.prototype,"headerBackgroundImage",void 0);_.x([_.g(),_.E("design:type",Object)],a_.prototype,"data",void 0);_.x([_.g({computed:"computeHasHeader_(data)"}),_.E("design:type",Boolean)],a_.prototype,"hasHeader",void 0);
_.x([_.g({computed:"computeLayoutStyle_(data.layout)",reflectToAttribute:!0}),_.E("design:type",Object)],a_.prototype,"layoutStyle",void 0);_.x([_.g({computed:"computePopupSize_(data.popupSize)",reflectToAttribute:!0}),_.E("design:type",Object)],a_.prototype,"popupSize",void 0);_.x([_.g({computed:"computeIsLogo_(data)",reflectToAttribute:!0}),_.E("design:type",Boolean)],a_.prototype,"hasLogo",void 0);
_.x([_.g({computed:"computeHasCustomLogo(data)",reflectToAttribute:!0}),_.E("design:type",Boolean)],a_.prototype,"hasCustomLogo",void 0);_.x([_.T4("data"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],a_.prototype,"dataChanged_",null);_.x([_.Vd("yt-popup-opened"),_.E("design:type",Function),_.E("design:paramtypes",[CustomEvent]),_.E("design:returntype")],a_.prototype,"openPopupHandler_",null);
a_=_.x([_.FB({is:"yt-upsell-dialog-renderer",disableElementRegistration:!0})],a_);
_.C(a_,"yt-upsell-dialog-renderer",function(){if(M7E===void 0){var S=document.createElement("template");_.h(S,'\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');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);var p=S.content,U=p.insertBefore;L3J===void 0&&(L3J=document.createElement("template"));var Y=L3J;U.call(p,Y.content.cloneNode(!0),S.content.firstChild);M7E=S}S=M7E;return S},{mode:2});var IM5=_.$k(function(S){return _.H("div",{class:"mini-app-game-info-dialog-view-model-wiz__game-info-dialog-header"},_.H(_.n,{cond:S.title,then:function(p){return _.H("h2",{class:"mini-app-game-info-dialog-view-model-wiz__header-title"},p)}}))},"sg"),drA=_.$k(function(S){return _.H("div",{class:"mini-app-game-info-dialog-view-model-wiz__game-info-dialog-footer"},_.H(_.yP,{data:S.closeButton},{buttonViewModel:function(p){return _.H("div",null,_.H(_.PG,{data:p.data}))}}))},"tg"),V7o=_.$k(function(S){var p=
S.data;
return _.H(_.U0,null,_.H("div",{class:"mini-app-game-info-dialog-view-model-wiz__primary-game-info-details"},_.H("div",{class:"mini-app-game-info-dialog-view-model-wiz__game-image-wrapper"},_.H(_.n,{cond:function(){return!!p().image&&!!p().title},
then:function(){return _.H(_.of,{data:function(){return p().image},
alt:"",contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"})}})),_.H("div",{class:"mini-app-game-info-dialog-view-model-wiz__primary-game-info"},_.H(_.n,{cond:function(){return p().title},
then:function(U){return _.H("h3",{class:"mini-app-game-info-dialog-view-model-wiz__title"},U)}}),_.H(_.n,{cond:function(){return p().primaryGenre},
then:function(U){return _.H("span",{class:"mini-app-game-info-dialog-view-model-wiz__genre"},U)}}))),_.H(_.n,{cond:function(){var U=p().description;
return U&&U.length<=150},
then:function(){return _.H("div",{class:"mini-app-game-info-dialog-view-model-wiz__game-description-wrapper"},_.H("span",{class:"mini-app-game-info-dialog-view-model-wiz__game-description"},function(){return p().description}))}}))},"ug"),T$q=_.$k(function(S){S=S.infoRows;
var p=_.tW().resolve(_.e3),U=_.y("enable_displaying_ppn");return _.H("div",{class:"mini-app-game-info-dialog-view-model-wiz__game-info-rows-wrapper"},_.H(_.KU,{each:S},function(Y){return _.H("div",{class:"mini-app-game-info-dialog-view-model-wiz__game-info-row"},_.H(_.n,{cond:function(){return Y.label},
then:function(L){return _.H("span",{class:"mini-app-game-info-dialog-view-model-wiz__info-label"},L)}}),_.H(_.n,{cond:function(){return Y.attributedLabel},
then:function(L){return _.H("span",{class:"mini-app-game-info-dialog-view-model-wiz__info-label"},_.H(_.i6,{text:L,noPreWrap:!0}))}}),_.H(_.n,{cond:function(){return Y.value},
then:function(L){return _.H("span",{class:"mini-app-game-info-dialog-view-model-wiz__info-value"},L)}}),_.H(_.n,{cond:function(){return Y.attributedValue},
then:function(L){return _.H("span",{class:"mini-app-game-info-dialog-view-model-wiz__info-value"},_.H(_.i6,{text:L,noPreWrap:!0}))}}))}),_.H(_.n,{cond:function(){return U&&p.clientData.has("post_play_nonce")},
then:function(){return _.H("div",{class:"mini-app-game-info-dialog-view-model-wiz__game-info-row"},_.H("span",{class:"mini-app-game-info-dialog-view-model-wiz__info-label"},"Post Play Nonce"),_.H("span",{class:"mini-app-game-info-dialog-view-model-wiz__info-value"},p.getData("post_play_nonce")))}}))},"vg"),W3P=_.$k(function(S){var p=S.data;
return _.H("yt-mini-app-game-info-dialog-view-model",{class:"mini-app-game-info-dialog-view-model-wiz"},_.H(IM5,{title:function(){return p().dialogTitle}}),_.H(V7o,{data:p}),_.H(_.n,{cond:function(){return p().infoRow},
then:function(U){return _.H(T$q,{infoRows:U})}}),_.H(drA,{closeButton:function(){return p().closeButton}}))},"wg");
W3P.idomCompat=!0;_.qm(W3P,"yt-mini-app-game-info-dialog-view-model",{props:{data:_.x2}});_.qm(_.$k(function(S){var p=S.data;return _.H("yt-gulp-triggering-dialog-view-model",{class:"ytGulpTriggeringDialogViewModelHost"},_.H(_.of,{data:function(){return p().headerImage},
alt:"",className:"ytGulpTriggeringDialogViewModelHostImage"}),_.H("div",{class:"ytGulpTriggeringDialogViewModelHostDialog"},_.H("div",{class:"ytGulpTriggeringDialogViewModelHostIconDiv"},_.H(_.n,{cond:function(){var U=p().ytLogo;return U?U.iconType:null},
then:function(U){return _.H(_.QD,{icon:U,className:"ytGulpTriggeringDialogViewModelHostIcon"})}})),_.H("div",{class:"ytGulpTriggeringDialogViewModelHostContent"},_.H("p",{class:"ytGulpTriggeringDialogViewModelHostTitle"},_.H(_.i6,{text:function(){return p().title}})),_.H("p",{class:"ytGulpTriggeringDialogViewModelHostParagraph"},_.H(_.i6,{text:function(){return p().body}})),_.H("p",{class:"ytGulpTriggeringDialogViewModelHostLastParagraph"},_.H(_.i6,{text:function(){return p().verifyStateText}}))),
_.H("div",{class:"ytGulpTriggeringDialogViewModelHostButtonRow"},_.H("div",null,_.H(_.yP,{data:function(){return p().dismissButton}},{buttonViewModel:_.PG})),_.H("div",null,_.H(_.yP,{data:function(){return p().linkParentButton}},{buttonViewModel:_.PG})))))},"xg"),"yt-gulp-triggering-dialog-view-model",{props:{data:_.x2}});var OP5=_.$k(function(S){var p=S.data;return _.H("installment-agreements-view-model",{class:_.VD("ytInstallmentAgreementsViewModelHost")},_.H(_.KU,{each:_.os(function(){return p().agreements},[])},function(U){return _.H("div",{class:"ytInstallmentAgreementsViewModelAgreementRow"},_.H("div",{class:"ytInstallmentAgreementsViewModelAgreementLabel"},_.H(_.i6,{text:U.label})),_.H("div",{class:"ytInstallmentAgreementsViewModelAgreementButton"},_.H(_.yP,{data:function(){return U.openButton}},{buttonViewModel:_.PG})))}))},
"yg");
OP5.idomCompat=!0;var kJY=_.$k(function(S){return _.H("collaborative-playlist-invite-message-view-model",{class:"ytCollaborativePlaylistInviteMessageViewModelHost"},_.H("div",{class:"ytCollaborativePlaylistInviteMessageViewModelInviteMessageWrapper"},_.H(_.i6,{text:function(){return S.data().inviteMessage}})),_.H("div",{class:"ytCollaborativePlaylistInviteMessageViewModelAccountSectionHeaderText"},_.H(_.i6,{text:function(){return S.data().attributedAccountSectionHeaderText}})),_.H("div",{class:"ytCollaborativePlaylistInviteMessageViewModelAccountWrapper"},
_.H(_.yP,{data:function(){return S.data().accountAvatar}},{avatarViewModel:_.bS}),_.H("div",{class:"ytCollaborativePlaylistInviteMessageViewModelAccountText"},_.H(_.i6,{text:function(){return S.data().accountName}}),_.H("div",{class:"ytCollaborativePlaylistInviteMessageViewModelHandle"},_.H(_.i6,{text:function(){return S.data().handle}}))),_.H(_.yP,{data:function(){return S.data().trailingButton}},{buttonViewModel:_.PG})),_.H("div",{class:"ytCollaborativePlaylistInviteMessageViewModelTermsOfService"},
_.H(_.i6,{text:function(){return S.data().termsOfService}})))},"zg");var HPq=_.$k(function(S){var p=_.d(_.Dt(function(){var q,TG;return((q=S.data().createPlaylistDialogFormSchema)==null?0:(TG=q.initialValues)==null?0:TG.title)?S.data().createPlaylistDialogFormSchema.initialValues.title:""})),U=p.next().value,Y=p.next().value;
p=_.d(_.Dt(function(){S.data();return!1}));
var L=p.next().value,I=p.next().value;p=_.d(_.Dt(function(){S.data();return!1}));
var V=p.next().value,W=p.next().value;p=_.d(_.Dt(function(){var q,TG;return(q=S.data().createPlaylistDialogFormSchema)==null?void 0:(TG=q.initialValues)==null?void 0:TG.visibility}));
var O=p.next().value,D=p.next().value;p=_.d(_.Dt(function(){S.data();return!1}));
var z=p.next().value,Q=p.next().value;p=_.d(_.Dt(function(){var q,TG;return(q=S.data().createPlaylistDialogFormSchema)==null?void 0:(TG=q.initialValues)==null?void 0:TG.isCollaborative}));
var J=p.next().value,K=p.next().value,G=_.vH();_.R8(function(){var q=G.value.querySelector("textarea");q&&(q.value=U())});
_.FM(function(){var q;_.loL((q=S.data().createPlaylistDialogFormSchema)==null?void 0:q.id,{onSubmit:function(){var TG=U();var Je=O(),GG=J(),Zw=S.data();TG={commandExecutorCommand:{commands:[{createPlaylistServiceEndpoint:{title:TG,privacyStatus:Je,videoIds:Zw.videoIds,sourcePlaylistId:Zw.sourcePlaylistId,params:GG?Zw.createPlaylistParamsCollaborationEnabled:Zw.createPlaylistParamsCollaborationDisabled}},{dismissDialogEndpoint:{}}]}};_.tW().resolve(_.cQ).resolveCommand(TG)},
isValid:function(){return L()&&!V()&&!z()}})});
var X=function(q){if(q!==void 0&&(Y(q),!L()&&q.length>0&&I(!0),L())){var TG=wds(S.data());if(TG){var Je=TG.minLength;TG=TG.maxLength;Je&&q.length<Je?W(!0):TG&&q.length>TG?W(!0):W(!1)}}},Z=function(){var q=!(!J()||O()!=="PRIVATE");
Q(q)},l=function(q){q!==void 0&&(D(q),Z())},a=function(){if(z())return a9i(S.data())},N=function(){K(!J());
Z()},m=function(){return{validate:function(q){if(L()){var TG=wds(S.data());
if(TG){var Je=TG.minLength;TG=TG.translations;if(Je&&q.length<Je)return TG==null?void 0:TG.minLengthErrorMessage}}}}},A=function(){var q=wds(S.data()),TG=q==null?void 0:q.maxLength,Je;
q=q==null?void 0:(Je=q.translations)==null?void 0:Je.maxLengthErrorMessage;if(TG&&q)return{maxChars:TG,errorMessage:q}};
return _.H("yt-create-playlist-dialog-form-view-model",{class:"ytCreatePlaylistDialogFormViewModelHost"},_.H("div",{class:"ytCreatePlaylistDialogFormViewModelTitleField",el:G},_.H(_.yP,{data:function(){return S.data().playlistTitle}},{textFormFieldViewModel:function(q){return _.H(_.yyJ,{data:q.data,
text:U,onInput:X,validation:m,characterLimit:A})},
textFieldViewModel:function(q){return _.H(_.JyY,{data:q.data,text:U,onInput:X,validation:m,characterLimit:A})}})),_.H("div",{class:"ytCreatePlaylistDialogFormViewModelVisibilityField"},_.H(_.yP,{data:function(){return S.data().playlistVisibility}},{dropdownViewModel:function(q){return _.H(_.s8i,{data:q.data,
onSelected:l,error:a})}})),_.H(_.n,{cond:function(){return!!S.data().playlistCollaborate},
then:function(){return _.H("div",null,_.H(_.yP,{data:function(){return S.data().playlistCollaborate}},{switchListItemViewModel:function(q){return _.H(_.X6e,{data:q.data,
onTap:N})}}))}}))},"Ag");var DrP=_.$k(function(S){var p=_.os(S.noPadding,!1),U=function(){var L,I;return(I=(L=S.data().logo.accessibilityData)==null?void 0:L.label)!=null?I:""},Y={};
return _.H("upsell-view-model",{class:_.VD("ytUpsellViewModelHost",(Y.ytUpsellViewModelHostNoPadding=function(){return p()},Y))},_.H("div",{class:"ytUpsellViewModelHostUpsellLogo"},_.H(_.n,{cond:function(){return _.$O(S.data().logo)},
then:function(L){return _.H(_.of,{data:L,contentMode:"CONTENT_MODE_SCALE_ASPECT_FIT",alt:U})}})),_.H("div",{class:"ytUpsellViewModelHostUpsellTitle"},_.H(_.i6,{text:function(){return S.data().title}})),_.H("div",{class:"ytUpsellViewModelHostUpsellSubtitleSection"},_.H(_.KU,{each:function(){var L;
return(L=S.data().subtitles)!=null?L:[]},
keyBy:"INDEX"},function(L){return _.H("div",{class:"ytUpsellViewModelHostUpsellSubtitleSectionSubtitle"},_.H(_.i6,{text:L}))})),_.H("div",{class:"ytUpsellViewModelHostUpsellBenefitInfoSection"},_.H(_.KU,{each:function(){var L;
return(L=S.data().benefitInfos)!=null?L:[]},
keyBy:"INDEX"},function(L){return _.H(_.n,{cond:function(){return L().info},
then:function(I){return _.H("div",{class:"ytUpsellViewModelHostUpsellBenefitInfoSectionBenefitInfo"},_.H(_.QD,{icon:"CHECK_CIRCLE_FILLED",className:"ytUpsellViewModelHostUpsellBenefitInfoSectionIcon"}),_.H(_.i6,{text:I}))}})})),_.H("div",{class:"ytUpsellViewModelHostUpsellLegalInfoSection"},_.H(_.KU,{each:function(){var L;
return(L=S.data().legalInfos)!=null?L:[]},
keyBy:"INDEX"},function(L){return _.H("div",{class:"ytUpsellViewModelHostUpsellLegalInfoSectionLegalInfo"},_.H(_.i6,{text:L}))})))},"Bg");var zmi=_.$k(function(S){var p=S.data;S={};S=(S.ytMiniAppScoreChallengeViewModelScoreRadial=!0,S.ytMiniAppScoreChallengeViewModelDarkScoreRadial=f9d(),S);return _.H("yt-mini-app-score-challenge-view-model",{class:"ytMiniAppScoreChallengeViewModelHost"},_.H("div",{class:"ytMiniAppScoreChallengeViewModelTitle"},function(){return p().title}),_.H("div",{class:"ytMiniAppScoreChallengeViewModelSubtitle"},function(){return p().subtitle}),_.H("div",{class:_.W7(S)},_.H("div",{class:"ytMiniAppScoreChallengeViewModelScore"},
function(){return p().score})),_.H("div",{class:"ytMiniAppScoreChallengeViewModelPrompt"},function(){return p().prompt}))},"Cg");var QBi=function(){this.store=_.xk();this.formId=""};var n_L=_.$k(function(S){function p(W){if(W&&(W=_.b(W,_.kO)))return Object.assign({},W,{isSelected:I()})}
var U=_.d(_.Dt(function(){var W,O;return(O=(W=_.b(S.data().option,_.kO))==null?void 0:W.isSelected)!=null?O:!1})),Y=U.next().value,L=U.next().value,I=Y;
_.FM(function(){var W;_.loL((W=S.data().formSchema)==null?void 0:W.id,{onSubmit:function(){var O=_.tW().resolve(_.cQ),D=!!S.data().selectedCommand,z=!!S.data().unselectedCommand;if(I()){if(D)var Q=S.data().selectedCommand}else z&&(Q=S.data().unselectedCommand);Q=_.sW(Q);p(S.data().option)&&!Q?(O="",!D&&z?O="selected ":D&&!z&&(O="unselected "),D=new _.y7("No "+O+"command found for SelectionListItemFormViewModel"),_.ZP(D)):Q&&O.resolveCommand(Q)},
isValid:function(){return!0}})});
var V=function(){L(!I())};
_.FG(function(){var W,O,D=(W=S.data())==null?void 0:(O=W.formSchema)==null?void 0:O.id;D&&_.u5E()().delete(D)});
return _.H("yt-selection-list-item-form-view-model",{class:"ytSelectionListItemFormViewModelHost"},_.H("div",{class:"ytSelectionListItemFormViewModelParagraph"},_.H(_.i6,{text:function(){return S.data().paragraph}})),_.H(_.n,{cond:function(){return p(S.data().option)},
then:function(W){return _.H(_.h5,{data:W,isCompact:!0,hideSelectionTextChevron:!0,onTap:V,disableHorizontalPadding:!0})}}))},"Dg");var JRs=_.$k(function(S){var p=S.data;var U=S.disablePadding;var Y=S.className;var L=_.vH(),I=function(){var W=p().imageBanner;a:switch(p().assetContainerPaddingStyle){case "DIALOG_HEADER_ASSET_PADDING_STYLE_INSET":var O="CONTENT_PREVIEW_IMAGE_STYLE_CUSTOM_ASPECT_RATIO";break a;default:O="CONTENT_PREVIEW_IMAGE_STYLE_DEFAULT"}return{themedImage:W,style:O,layoutMode:"CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_FULL_WIDTH"}},V=function(){return p().assetContainerPaddingStyle!=="DIALOG_HEADER_ASSET_PADDING_STYLE_INSET"};
_.FM(function(){var W=function(){_.St(L.value,"yt-refit-popups-action")},O;
(O=L.value)==null||O.addEventListener("image-loaded",W);_.FG(function(){var D;(D=L.value)==null||D.removeEventListener("image-loaded",W)})});
S={};return _.H("yt-dialog-header-view-model",{el:L,class:_.VD(Y,(S.ytDialogHeaderViewModelHost=!0,S.ytDialogHeaderViewModelHostDisablePadding=U,S))},_.H(_.n,{cond:function(){return p().imageBanner},
then:function(){var W={};return _.H("div",{class:_.VD(Y,(W.ytDialogHeaderViewModelBanner=!0,W.ytDialogHeaderViewModelBannerFullBleed=V,W)),style:_.zw({"max-height":function(){return p().assetContainerMaxHeight!==void 0?p().assetContainerMaxHeight+"px":void 0}})},_.H(_.qf,{data:I,
className:"ytDialogHeaderViewModelBannerImage",notifyOnLoaded:!0}))}}),_.H(_.n,{cond:function(){return p().headerBlock},
then:function(){return _.H("div",{class:"ytDialogHeaderViewModelHeaderBlock"},_.H(_.yP,{data:function(){return p().headerBlock}},{contentPreviewImageViewModel:function(W){return _.H(_.qf,{data:W.data,
notifyOnLoaded:!0})}}))}}),_.H(_.n,{cond:function(){return p().customAssetContainer},
then:function(W){return _.H("div",{class:"ytDialogHeaderViewModelCustomAssetContainer"},_.H(_.yP,{data:W},{avatarStackViewModel:_.ra}))}}),_.H(_.n,{cond:function(){return p().customBanner},
then:function(W){return _.H("div",{class:"ytDialogHeaderViewModelCustomAssetContainer"},_.H(_.yP,{data:W},{avatarStackViewModel:_.ra}))}}),_.H(_.n,{cond:function(){return p().headline},
then:function(W){return _.H("h2",null,_.H(_.i6,{text:W,className:"ytDialogHeaderViewModelText"}))}}))},"Eg");
JRs.idomCompat=!0;var yRs=_.$k(function(S){var p=_.aoX(function(){return S.data().formId}),U=p.onSubmit,Y=p.isValid;
return _.H("yt-form-panel-footer-view-model",{class:"ytFormPanelFooterViewModelHost"},_.H(_.yP,{data:function(){return S.data().panelFooter}},{panelFooterViewModel:function(L){return _.H(_.Cl,{data:L.data,
disablePadding:!0,disablePrimaryButton:function(){return!Y()},
onClickPrimaryButton:function(){U()}})}}))},"Fg");var K3X=_.$k(function(S){var p=function(){var U,Y;return(Y=(U=_.b(S.data().rendererContext,_.Hj))==null?void 0:U.label)!=null?Y:""};
return _.H("yt-dialog-image-content-view-model",{class:_.VD("ytDialogImageContentViewModelHost",S.className)},_.H(_.n,{cond:function(){return _.$O(S.data().image)},
then:function(U){return _.H(_.of,{data:U,alt:p,className:"ytDialogImageContentViewModelImage",contentMode:"CONTENT_MODE_SCALE_ASPECT_FIT"})}}),_.H(_.i6,{text:function(){return S.data().description},
className:"ytDialogImageContentViewModelDescription"}))},"Gg");var rRd=_.$k(function(S){var p=_.vT(S,{headerPosition:0,buttonLayout:0,buttonStyle:0,contentAlignment:0,maxHeight:0,isFullscreen:!1,isHeaderWizDefined:!1,isFooterWizDefined:!1}),U=p.elRefCallback;S=p.iconWiz;var Y=p.assetWiz,L=p.assetType,I=p.titleWiz,V=p.leadingActionHeaderWiz,W=p.trailingActionHeaderWiz,O=p.headerPosition,D=p.contentWiz,z=p.buttonLayout,Q=p.buttonStyle,J=p.primaryButtonWiz,K=p.secondaryButtonWiz,G=p.contentAlignment,X=p.isFullscreen,Z=p.width,l=p.maxHeight,a=p.isHeaderWizDefined,
N=p.headerWiz,m=p.isFooterWizDefined,A=p.footerWiz;p=_.vH(function(au){U==null||U(au)});
var q=Y?function(){return Y({className:"yt-spec-dialog-layout__dialog-layout-asset-item"})}:void 0,TG=J?function(){var au={};
return J({buttonOverrides:function(){return{style:(Q==null?void 0:Q())===1?"call-to-action":"mono",type:"filled",state:"active",size:"M"}},
className:_.VD((au["yt-spec-dialog-layout__dialog-layout-button"]=!0,au["yt-spec-dialog-layout__dialog-layout-button--dialog-buttons-inline-stretched"]=function(){return(z==null?void 0:z())===0||(z==null?void 0:z())===2},au))})}:void 0,Je=K?function(){var au={};
return K({buttonOverrides:{style:"mono",type:"outline",state:"active",size:"M"},className:_.VD((au["yt-spec-dialog-layout__dialog-layout-button"]=!0,au["yt-spec-dialog-layout__dialog-layout-button--dialog-buttons-inline-stretched"]=function(){return(z==null?void 0:z())===0||(z==null?void 0:z())===2},au))})}:void 0,GG=function(){return(!!I||!!V||!!W)&&O()===0},Zw={},Ru={},sX={},mq={};
return _.H("dialog-layout",{el:p,class:_.VD((Zw["yt-spec-dialog-layout"]=!0,Zw["yt-spec-dialog-layout--dialog-layout-fullscreen"]=X,Zw["yt-spec-dialog-layout--dialog-layout-responsive"]=function(){return!X()},Zw["yt-spec-dialog-layout--dialog-layout-extended-max-height"]=function(){return l()===1},Zw["yt-spec-dialog-layout--dialog-layout-asset-inset"]=function(){return(L==null?void 0:L())===1},Zw)),
style:function(){return(Z==null?void 0:Z())!==void 0?"width: "+Z+"px;":""}},S?_.H("div",{class:_.VD((Ru["yt-spec-dialog-layout__dialog-layout-icon"]=!0,Ru["yt-spec-dialog-layout__dialog-layout-icon--dialog-layout-icon-above-media"]=function(){return!!Y&&O()===1},Ru["yt-spec-dialog-layout__dialog-layout-icon--dialog-layout-icon-center-align"]=function(){return G()===1},Ru))},_.H(S,null)):null,_.H(_.n,{cond:a,
then:function(){return N?_.H("div",{class:"yt-spec-dialog-layout__dialog-header-container"},_.H(N,null)):null},
else:function(){return _.H(_.U0,null,_.H(_.n,{cond:GG,then:function(){return _.H(bPo,{contentAlignment:G,LeadingActionHeader:V,TrailingActionHeader:W,Title:I,isAboveAsset:!!q})}}),q?_.H("div",{class:"yt-spec-dialog-layout__dialog-layout-asset"},_.H(q,null)):null)}}),_.H("div",{class:_.VD((sX["yt-spec-dialog-layout__dialog-layout-container"]=!0,sX["yt-spec-dialog-layout--dialog-layout-center-align"]=function(){return(G==null?void 0:G())===1},sX["yt-spec-dialog-layout__dialog-layout-container--dialog-layout-container-top-padding"]=
function(){return!I&&!N||!!q&&(O==null?void 0:O())===0},sX))},_.H(_.n,{cond:function(){return I&&!N&&(O==null?void 0:O())===1},
then:function(){return _.H(bPo,{contentAlignment:G,LeadingActionHeader:V,TrailingActionHeader:W,Title:I,isAboveAsset:!1})}}),D?_.H("div",{class:"yt-spec-dialog-layout__dialog-layout-content"},_.H("div",{class:"yt-spec-dialog-layout__dialog-layout-content-inner"},_.H(D,null))):null,_.H(_.n,{cond:m,
then:function(){return A?_.H("div",{class:"yt-spec-dialog-layout__dialog-layout-footer-container"},_.H(A,null)):null}}),TG||Je?_.H(jBd,{footerClasses:_.VD((mq["yt-spec-dialog-layout__dialog-layout-footer-container"]=!0,mq["yt-spec-dialog-layout__dialog-layout-footer"]=!0,mq["yt-spec-dialog-layout--dialog-buttons-stacked"]=function(){return(z==null?void 0:z())===2},mq["yt-spec-dialog-layout__dialog-layout-footer--dialog-buttons-inline-end"]=function(){return(z==null?void 0:z())===1},mq)),
PrimaryButton:TG,SecondaryButton:Je}):null))},"Hg"),bPo=_.$k(function(S){var p=_.vT(S,{isAboveAsset:!1,
enableLeadingActionHeader:!0}),U=p.contentAlignment,Y=p.LeadingActionHeader;S=p.Title;var L=p.TrailingActionHeader,I=p.isAboveAsset,V=p.enableLeadingActionHeader;p={};return _.H("div",{class:_.VD((p["yt-spec-dialog-layout__dialog-header-container"]=!0,p["yt-spec-dialog-layout__dialog-header"]=!0,p["yt-spec-dialog-layout__dialog-header--dialog-header-above-asset"]=I,p["yt-spec-dialog-layout--dialog-layout-center-align"]=function(){return(U==null?void 0:U())===1&&V()},p))},_.H(_.n,{cond:function(){return V()},
then:function(){return Y?_.H("div",{class:"yt-spec-dialog-layout__dialog-leading-action-header"},_.H(Y,null)):null}}),S?_.H("h2",{class:"yt-spec-dialog-layout__dialog-layout-title"},_.H(S,null)):null,L?_.H("div",null,_.H(L,null)):null)},"Ig"),jBd=_.$k(function(S){var p=S.footerClasses;
var U=S.PrimaryButton;S=S.SecondaryButton;return _.H("div",{class:p},S?_.H(S,null):null,U?_.H(U,null):null)},"Jg");var GJY=_.$k(function(S){var p=S.data;return _.H("ytfz-fanzone-scheduled-info-view-model",{class:"ytfzFanzoneScheduledInfoViewModelHost"},_.H("div",{class:"ytfzFanzoneScheduledInfoViewModelAvatar"},_.H(_.yP,{data:function(){return p().avatar}},{avatarViewModel:_.bS})),_.H("h2",{class:"ytfzFanzoneScheduledInfoViewModelTitle"},_.H(_.i6,{text:function(){return p().title}})),_.H(_.i6,{text:function(){return p().description},
className:"ytfzFanzoneScheduledInfoViewModelDescription"}))},"Kg");var hmo=_.$k(function(S){var p=S.data;return _.H("yt-access-confirmation-view-model",{class:"ytAccessConfirmationViewModelHost"},_.H("div",{class:"ytAccessConfirmationViewModelContent"},_.H(_.yP,{data:function(){return p().dualAvatar}},{dualAvatarViewModel:function(U){return _.H("div",{class:"ytAccessConfirmationViewModelDualAvatar"},_.H(_.L8m,{data:U.data}))}}),_.H("h2",{class:"ytAccessConfirmationViewModelTitle"},_.H(_.i6,{text:function(){return p().title}})),_.H(_.i6,{text:function(){return p().subtitle},
className:"ytAccessConfirmationViewModelSubtitle"})))},"Lg");var RmL=_.$k(function(S){var p=S.data;var U=void 0;S=_.d(_.kj("",void 0,"bj3Bbf"));var Y=S.next().value,L=S.next().value,I,V=function(){L("");var D;(D=U)!=null&&D.store.dispatch(_.S4({type:"RESET_COMMAND_MAP"}))};
_.FM(function(){U=new QBi;window.addEventListener("yt-popup-closed",V)});
_.R8(function(){if(U&&I!==p().formId){var D=U,z=p();z.formId&&(D.formId=z.formId,D.store.dispatch(_.S4({type:"SET_CURRENT_FORM_ID",payload:{formId:D.formId}})));I=p().formId}});
_.FG(function(){window.removeEventListener("yt-popup-closed",V)});
var W=function(D,z,Q){z.key&&Q&&z.key!==Y()&&(L(z.key),U&&z.command&&U.store.dispatch(_.S4({type:"SET_COMMAND_FOR_GROUP_ID",payload:{groupId:Q,command:z.command}})))},O=function(){if(_.b(p().content,_.Sro))return!(Y==null?0:Y())};
return _.H("yt-dialog-view-model",{class:_.VD("ytDialogViewModelHost","ytDialogViewModelResetSpacing"),dialog:!0},_.H(rRd,{headerWiz:function(){return _.H("span",{skip:!0},_.H(_.yP,{data:function(){return p().header}},{dialogHeaderViewModel:function(D){return _.H(JRs,{data:D.data,
disablePadding:!0})}}))},
isHeaderWizDefined:function(){return!!p().header},
contentWiz:function(){return _.H("span",{skip:!0},_.H(_.yP,{data:function(){return p().customContent?p().customContent:p().content}},{basicContentViewModel:_.x8H,
createPlaylistDialogFormViewModel:HPq,collaborativePlaylistInviteMessageViewModel:kJY,miniAppScoreChallengeViewModel:zmi,radioButtonGroupViewModel:function(D){return _.H(_.Xzn,{data:D.data,selectedKey:Y,onSelected:W})},
selectionListItemFormViewModel:n_L,upsellViewModel:function(D){return _.H(DrP,{data:D.data,noPadding:!0})},
fanzoneScheduledInfoViewModel:GJY,installmentAgreementsViewModel:OP5,accessConfirmationViewModel:hmo,listViewModel:function(D){return _.H(_.w6c,{data:D.data,disableHorizontalPadding:!0})},
dialogImageContentViewModel:K3X}))},
footerWiz:function(){return _.H("span",{skip:!0},_.H(_.yP,{data:function(){return p().footer}},{panelFooterViewModel:function(D){return _.H(_.Cl,{data:D.data,
disablePadding:!0,disablePrimaryButton:O})},
formPanelFooterViewModel:yRs,formFooterViewModel:function(D){return _.H(_.zTL,{data:D.data,disablePadding:!0})}}))},
isFooterWizDefined:function(){return!!p().footer}}))},"Mg");
RmL.idomCompat=!0;_.qm(RmL,"yt-dialog-view-model",{props:{data:_.x2},unsafeExternallySettableAttributes:new Set(["tabindex","style"])});var F3q=_.$k(function(S){var p=S.data;S={};return _.H("yt-panel-header-view-model",{class:_.VD("yt-panel-header-view-model-wiz",(S["yt-panel-header-view-model-wiz--hide-divider"]=function(){return!!p().shouldHideDivider},S["yt-panel-header-view-model-wiz--compact"]=function(){return!!p().subtitle},S))},_.H("div",{class:"yt-panel-header-view-model-wiz__title-wrapper"},_.H(_.n,{cond:function(){return p().title},
then:function(U){return _.H(_.i6,{text:U,className:"yt-panel-header-view-model-wiz__title"})}}),_.H(_.n,{cond:function(){return p().subtitle},
then:function(U){return _.H(_.i6,{text:U,className:"yt-panel-header-view-model-wiz__subtitle"})}})),_.H("div",{class:"yt-panel-header-view-model-wiz__trailing-buttons"},_.H(_.yP,{data:function(){return p().trailingButtons}},{buttonViewModel:function(U){return _.H(_.PG,{data:U.data,
className:"yt-panel-header-view-model-wiz__button"})}})))},"Ng");
F3q.idomCompat=!0;var XyX=_.$k(function(S){var p=_.kL(function(I){var V;if((V=S.skipContentClick)==null?0:V.call(S))return!1;S.onContentWrapperClick(I);return!0}),U,Y,L;
return _.H("div",{class:_.VD("yt-spec-bottom-sheet-layout","yt-spec-bottom-sheet-layout__bottom-sheet-renderer-container","yt-spec-bottom-sheet-layout--modern"),style:function(){return S.isAnimating()?"transform: translateY("+S.currentY()+"px);transition: 0.2s":""}},(U=S.header)==null?void 0:U.call(S),_.H("div",{id:S.contentWrapperId,
class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-content-wrapper",style:_.zw({"max-height":(0,_.rq)(S.maxHeightForContentWrapper)}),"on:scroll":mwi(S.onScroll),"on:touchmove":mwi(function(I){return void I.stopPropagation()})},_.H("div",{el:{onRender:S.contentWrapperEl},
class:"yt-spec-bottom-sheet-layout__bottom-sheet-content","on:click":p},(Y=S.body)==null?void 0:Y.call(S))),(L=S.footer)==null?void 0:L.call(S))},"Og");
XyX.idomCompat={callbacks:{onScroll:!0,contentWrapperEl:!0,onContentWrapperClick:!0}};var P8t=_.$k(function(S){var p=_.os(S.leadingLabel),U=_.os(S.trailingLabel),Y=_.os(S.footerButtonType),L=function(){return p()||U()||S.hasPrimaryButton()||S.hasSecondaryButton()},I={},V=_.VD("yt-spec-bottom-sheet-layout__primary-button",(I["yt-spec-bottom-sheet-layout__primary-button--default"]=function(){return Y()===0&&S.hasPrimaryButton()},I["yt-spec-bottom-sheet-layout__primary-button--trailing-pair"]=function(){return Y()===1&&S.hasPrimaryButton()},I["yt-spec-bottom-sheet-layout__primary-button--split-pair"]=
function(){return Y()===2&&S.hasPrimaryButton()},I["yt-spec-bottom-sheet-layout__primary-button--primary-split-pair"]=function(){return Y()===3&&S.hasPrimaryButton()},I));
I={};var W=_.VD("yt-spec-bottom-sheet-layout__secondary-button",(I["yt-spec-bottom-sheet-layout__secondary-button--secondary-button-trailing-pair"]=function(){return Y()===1&&S.hasSecondaryButton()},I["yt-spec-bottom-sheet-layout__secondary-button--secondary-button-split-pair"]=function(){return Y()===2&&S.hasSecondaryButton()},I["yt-spec-bottom-sheet-layout__secondary-button--secondary-button-primary-split-pair"]=function(){return Y()===3&&S.hasPrimaryButton()},I));
return _.H(_.n,{cond:S.hasFooterOverride,then:function(){var O;return _.H(_.U0,null,(O=S.footerOverride)==null?void 0:O.call(S))},
else:function(){return _.H(_.n,{cond:L,then:function(){return _.H("div",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-footer-wrapper"},_.H(_.n,{cond:function(){return p()||U()},
then:function(){var O={};return _.H("div",{class:_.VD("yt-spec-bottom-sheet-layout__footer-label-wrapper",(O["yt-spec-bottom-sheet-layout__footer-label-wrapper--without-buttons"]=function(){return!S.hasPrimaryButton()},O))},_.H(_.n,{cond:p,
then:function(){return _.H("div",{class:"yt-spec-bottom-sheet-layout__leading-label"},p)}}),_.H(_.n,{cond:U,
then:function(){return _.H("div",{class:"yt-spec-bottom-sheet-layout__trailing-label"},U)}}))}}),_.H(_.n,{cond:function(){return S.hasPrimaryButton()||S.hasSecondaryButton()},
then:function(){var O={};return _.H("div",{class:_.VD("yt-spec-bottom-sheet-layout__footer-button-wrapper",(O["yt-spec-bottom-sheet-layout__footer-button-wrapper--landscape-button-wrapper"]=_.Byq,O))},_.H(_.n,{cond:function(){return S.hasSecondaryButton()&&Y()!==0},
then:function(){var D;return _.H("div",{class:W},(D=S.secondaryButton)==null?void 0:D.call(S))}}),_.H(_.n,{cond:S.hasPrimaryButton,
then:function(){var D;return _.H("div",{class:V},(D=S.primaryButton)==null?void 0:D.call(S))}}))}}))}})}})},"Pg");
P8t.idomCompat={callbacks:{primaryButton:!0,secondaryButton:!0,footerOverride:!0}};var ZPL=_.$k(function(S){var p=_.os(S.title),U=_.os(S.subtitle);return _.H("div",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-header-wrapper",id:S.headerId,"on:touchstart":_.kL(function(Y){var L;(L=S.touchstart)==null||L.call(S,Y);return!1}),
"on:touchmove":_.kL(function(Y){var L;(L=S.touchmove)==null||L.call(S,Y);return!1}),
"on:touchend":_.kL(function(Y){var L;(L=S.touchend)==null||L.call(S,Y);return!1})},_.H("div",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-drag-line"}),_.H(_.n,{cond:S.hasHeaderOverride,
then:function(){var Y;return _.H(_.U0,null,(Y=S.headerOverride)==null?void 0:Y.call(S))},
else:function(){var Y={};return _.H("div",{class:_.VD((Y["yt-spec-bottom-sheet-layout__bottom-sheet-layout-header"]=!0,Y["yt-spec-bottom-sheet-layout__bottom-sheet-layout-header--with-title"]=p,Y))},_.H("div",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-header-title-wrapper"},_.H(_.n,{cond:p,then:function(){return _.H(_.U0,null,_.H("h2",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-title"},p),_.H(_.n,{cond:U,then:function(){return _.H("h3",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-subtitle"},
U)}}))}})),_.H(_.n,{cond:function(){return p()&&S.hasActionHeader()},
then:function(){var L;return _.H("div",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-action-header"},(L=S.actionHeader)==null?void 0:L.call(S))}}))}}))},"Qg");
ZPL.idomCompat={callbacks:{touchstart:!0,touchmove:!0,touchend:!0,actionHeader:!0,headerOverride:!0}};_.$k(function(S){function p(q){if(!l&&typeof MutationObserver!=="undefined"){var TG={childList:!0};"MutationObserver"in window&&(l=new MutationObserver(U.bind(void 0,q)),l.observe(q,TG))}}
function U(q){typeof l!=="undefined"&&(a["content-wrapper"]===void 0&&(a["content-wrapper"]=q.children[0].clientHeight),K(a["content-wrapper"]),J()>G()||X(J()))}
function Y(){Q(window.innerHeight);J()>G()||X(J());N.isFullScreen[0]()&&J()>G()?m().dispatch("Snap To Full Screen",{maxHeight:Z()}):m().dispatch("Snap To Neutral Position",{maxHeight:G()})}
function L(q){document.body.style.overscrollBehavior="none";q.preventDefault();m().dispatch("Touch Start",{event:q})}
function I(q){q.preventDefault();m().dispatch("Touch Move",{event:q,contentScrollable:J()>G(),fullContentWrapperHeight:Z(),contentWrapperHeight:G(),contentHeightMap:a,contentWrapperId:"content-wrapper",header:vdq(S),footer:vdq(S)})}
function V(){document.body.style.overscrollBehavior="";N.isFullScreen[0]()?N.currentY[0]()>=60?m().dispatch("Snap To Neutral Position",{maxHeight:G()}):m().dispatch("Snap To Full Screen",{maxHeight:Z()}):N.currentY[0]()>=60?W():N.currentY[0]()<=-60&&J()>G()?m().dispatch("Snap To Full Screen",{maxHeight:Z()}):m().dispatch("Snap To Neutral Position",{maxHeight:G()})}
function W(){m().dispatch("Close Sheet",{clientHeight:z(),maxHeight:0});setTimeout(function(){odP()},250)}
var O=_.d(_.kj(window.innerHeight,void 0,"NWeFS")),D=O.next().value;O=O.next().value;var z=D,Q=O;O=_.d(_.kj(0,void 0,"oxfm4"));D=O.next().value;O=O.next().value;var J=D,K=O;O=_.d(_.Dt(function(){var q=vdq(S);return.6*z()-C5i(q)-xw5(q)}));
D=O.next().value;O=O.next().value;var G=D,X=O,Z=function(){var q=vdq(S);return z()-C5i(q)-xw5(q)-24-24},l=null,a={},N={initialY:_.kj(0,void 0,"cYBE5c"),
currentY:_.kj(0,void 0,"RndqHc"),isAnimating:_.kj(!1,void 0,"vO9DVd"),isFullScreen:_.kj(!1,void 0,"UOfBcf"),maxHeightForContentWrapper:_.Dt(G)},m=function(){var q=null;return function(){if(!q){var TG={initialY:N.initialY[0](),currentY:N.currentY[0](),isAnimating:N.isAnimating[0](),isFullScreen:N.isFullScreen[0](),maxHeightForContentWrapper:N.maxHeightForContentWrapper[0]()};q=Edd(TG)}return q}}();
_.FM(function(){window.addEventListener("resize",Y);m().subscribe(function(q){N.initialY[1](q.initialY);N.currentY[1](q.currentY);N.isAnimating[1](q.isAnimating);N.isFullScreen[1](q.isFullScreen);N.maxHeightForContentWrapper[1](q.maxHeightForContentWrapper)})});
_.FG(function(){window.removeEventListener("resize",Y);l&&(l.disconnect(),l=null)});
var A=_.VD({"bottom-sheet-content-without-icon":function(){var q;return!((q=S.shouldShowIcons)==null?0:q.call(S))}});
return _.H("bottom-sheet-layout",null,_.H(XyX,{contentWrapperId:"content-wrapper",isAnimating:function(){return N.isAnimating[0]()},
currentY:function(){return N.currentY[0]()},
maxHeightForContentWrapper:function(){return N.maxHeightForContentWrapper[0]()},
shouldShowIcons:S.shouldShowIcons,skipContentClick:S.skipContentClick,onScroll:function(){var q=document.getElementById("header-wrapper"),TG=document.getElementById("content-wrapper");if(q&&TG){var Je={};Je=(Je["yt-spec-bottom-sheet-layout__bottom-sheet-layout-header-wrapper"]=!0,Je["yt-spec-bottom-sheet-layout__bottom-sheet-layout-header-wrapper--bottom-border"]=!0,Je);q.className=TG.scrollTop>1?_.W7(Je):"yt-spec-bottom-sheet-layout__bottom-sheet-layout-header-wrapper"}},
onContentWrapperClick:odP,contentWrapperEl:function(q){p(q);requestAnimationFrame(function(){U(q)})},
header:function(){return _.H(ZPL,{touchstart:L,touchmove:I,touchend:V,title:S.headerTitle,subtitle:S.headerSubtitle,headerId:"header-wrapper",headerOverride:S.headerFn,hasHeaderOverride:S.hasHeaderFn,actionHeader:S.headerActionHeader,hasActionHeader:S.hasHeaderActionHeader})},
footer:function(){return _.H(P8t,{footerButtonType:S.footerButtonType,leadingLabel:S.footerLeadingLabel,trailingLabel:S.footerTrailingLabel,primaryButton:S.footerPrimaryButton,hasPrimaryButton:S.hasFooterPrimaryButton,secondaryButton:S.footerSecondaryButton,hasSecondaryButton:S.hasFooterSecondaryButton,footerOverride:S.footerFn,hasFooterOverride:S.hasFooterFn})},
body:function(){return _.H(_.n,{cond:S.hasContentFn,then:function(){var q;return _.H("div",{class:A},(q=S.contentFn)==null?void 0:q.call(S))}})}}))},"Rg").idomCompat={callbacks:{headerActionHeader:!0,
headerFn:!0,contentFn:!0,footerFn:!0,footerPrimaryButton:!0,footerSecondaryButton:!0}};var sBJ=_.$k(function(S){var p=_.tW().resolve(_.K7);return _.H("yt-contextual-sheet-layout",{class:"yt-contextual-sheet-layout-wiz","on:click":_.kL(function(){return void p.closeSheet()})},_.H(_.n,{cond:function(){return!!S.header},
then:function(){return _.H("div",{class:"yt-contextual-sheet-layout-wiz__header-container"},S.header())}}),_.H(_.n,{cond:function(){return!!S.content},
then:function(){return _.H("div",{class:"yt-contextual-sheet-layout-wiz__content-container"},S.content())}}),_.H(_.n,{cond:function(){return!!S.footer},
then:function(){return _.H("div",{class:"yt-contextual-sheet-layout-wiz__footer-container"},S.footer())}}))},"Sg");
sBJ.idomCompat={callbacks:{header:!0,content:!0,footer:!0}};var emo=_.$k(function(S){S=S.data;var p=_.vH(function(Y){if(_.y("web_focus_first_element_sheet"))return Y.addEventListener("focus",function(){PgJ(Y)}),function(){Y.removeEventListener("focus",function(){PgJ(Y)})}}),U={};
return _.H("yt-sheet-view-model",{class:_.VD("yt-sheet-view-model-wiz",(U["yt-sheet-view-model-wiz--contextual"]=!0,U["yt-sheet-view-model-wiz--disable-backdrop-filter"]=_.y("web_disable_backdrop_filter"),U)),el:p,tabindex:-1},_.H(_.n,{cond:S,then:function(Y){return _.H(sBJ,{header:function(){return _.H(_.yP,{data:function(){return Y().header}},{panelHeaderViewModel:F3q})},
content:function(){return _.H(_.yP,{data:function(){return Y().content}},{listViewModel:function(L){return _.H(_.w6c,{data:L.data,
isCompact:!0,inPopup:!0})},
upsellViewModel:DrP,miniAppScoreChallengeViewModel:zmi})},
footer:function(){return _.H(_.yP,{data:function(){return Y().footer}},{panelFooterViewModel:_.Cl})}})}}))},"Tg");
emo.idomCompat=!0;_.qm(emo,"yt-sheet-view-model",{props:{data:_.x2}});var uQn=_.$k(function(S){var p=function(){var U;return(U=S.data().enableDebuggingFeatures)!=null?U:!1};
return _.H("yt-stories-sticker-layer-view-model",{class:"ytStoriesStickerLayerViewModelHost"},_.H(_.KU,{each:function(){var U;return(U=S.data().stickers)!=null?U:[]}},function(U){return _.H(g_n,{data:function(){return U},
debugMode:p})}))},"Ug"),g_n=_.$k(function(S){var p=_.vT(S,{debugMode:!1}).debugMode,U=_.os(function(){var O;
return(O=S.data().region)==null?void 0:O.w},0),Y=_.os(function(){var O;
return(O=S.data().region)==null?void 0:O.h},0),L=_.os(function(){var O;
return(O=S.data().region)==null?void 0:O.x},0),I=_.os(function(){var O;
return(O=S.data().region)==null?void 0:O.y},0),V=_.kL(function(){var O=S.data().onTap;
O&&_.wx(O)}),W={};
return _.H("div",{class:_.VD("ytStoriesStickerLayerViewModelSticker",(W.ytStoriesStickerLayerViewModelDebugMode=p,W)),style:_.zw({width:function(){return 100*U()+"%"},
height:function(){return 100*Y()+"%"},
left:function(){return 100*L()+"%"},
top:function(){return 100*I()+"%"},
"flex-direction":function(){return $wL(S.data().flexDirection)},
"justify-content":function(){return ipi(S.data().justifyContent)},
"align-items":function(){return NBn(S.data().alignItems)}}),
"on:click":V},_.H(_.yP,{data:function(){return S.data().button||S.data().toggleButton}},{buttonViewModel:function(O){return _.H(_.PG,{data:O.data,
className:"ytStoriesStickerLayerViewModelButton"})},
toggleButtonViewModel:function(O){return _.H(_.jS,{data:O.data,className:"ytStoriesStickerLayerViewModelButton"})}}))},"Vg");var lMX=_.$k(function(S){var p=function(){return S.data()},U=_.os(function(){return p().backgroundColor},0),Y=_.os(function(){return p().actionButtons},[]),L=_.os(function(){return p().stickerLayer},{}),I={},V=function(){var O,D;
return{animationRef:I,animationConfig:{autoplay:!1,loop:!1,path:(D=(O=p().foregroundAnimation)==null?void 0:O.url)!=null?D:"",name:"stories_item_foreground_animation"},listeners:{complete:function(){S.navigateToNextItemOnLottieComplete()}}}},W=function(){var O,D,z,Q,J,K,G,X;
return{animationConfig:{autoplay:(K=(O=p().backgroundAnimation)==null?void 0:(D=O.settings)==null?void 0:D.autoplay)!=null?K:!1,loop:(G=(z=p().backgroundAnimation)==null?void 0:(Q=z.settings)==null?void 0:Q.loop)!=null?G:!1,path:(X=(J=p().backgroundAnimation)==null?void 0:J.url)!=null?X:"",name:"stories_item_background_animation"}}};
_.R8(function(){if(S.isVisible()){var O;(O=I.lottieEl)==null||O.play()}else{var D;(D=I.lottieEl)==null||D.stop()}});
return _.H("yt-stories-item-view-model",{class:"ytStoriesItemViewModelHost",style:_.zw({"background-color":function(){return _.ev(U())+";"}})},_.H("div",{class:"ytStoriesItemViewModelAssetContent"},_.H(_.n,{cond:function(){return!!p().backgroundAnimation},
then:function(){return _.H(_.Tw,{data:W,animationName:function(){return W().animationConfig.name},
className:"ytStoriesItemViewModelLottieAnimation"})}}),_.H(_.n,{cond:function(){return!!p().backgroundImage},
then:function(){return _.H(_.of,{data:function(){return p().backgroundImage},
className:"ytStoriesItemViewModelImage",alt:"background image"})}}),_.H(_.n,{cond:function(){return!!p().foregroundAnimation},
then:function(){return _.H(_.Tw,{data:V,animationName:function(){return V().animationConfig.name},
className:"ytStoriesItemViewModelLottieAnimation"})}}),_.H(_.n,{cond:function(){return!!p().foregroundImage},
then:function(){return _.H(_.of,{data:function(){return p().foregroundImage},
className:"ytStoriesItemViewModelImage",alt:"foreground image"})}}),_.H("div",{class:"ytStoriesItemViewModelTopShadow"}),_.H(_.yP,{data:function(){return L()}},{storiesStickerLayerViewModel:uQn})),_.H("div",{class:"ytStoriesItemViewModelBottomShadow"},_.H("div",{class:"ytStoriesItemViewModelActionButtonWrapper",
"on:click":_.kL(S.pauseAutoNavigation)},_.H(_.KU,{each:Y},function(O){return _.H(wyn,{data:function(){return O}})}))))},"Wg"),wyn=_.$k(function(S){var p={};
return _.H("div",{class:_.VD("ytStoriesItemViewModelActionButton",(p.ytStoriesItemViewModelStretchedActionButton=function(){return S.data().size==="STORIES_BUTTON_SIZE_STRETCH"},p))},_.H(_.yP,{data:function(){return S.data().button}},{buttonViewModel:function(U){return _.H(_.PG,{data:U.data,
className:"ytStoriesItemViewModelButton"})}}))},"Xg");_.qm(_.$k(function(S){var p=_.d(_.Dt(function(){var a;return(a=S.data().startIndex)!=null?a:0})),U=p.next().value,Y=p.next().value;
p=_.d(_.kj(!1,void 0,"klmjc"));var L=p.next().value,I=p.next().value,V=function(){var a;return(a=S.data().storyItems)!=null?a:[]},W=function(){return S.data().dismissButton},O=function(){var a;
return _.b((a=_.b(W(),_.K6))==null?void 0:a.onTap,_.Z$)},D=_.vH(),z,Q=function(){var a;
(a=z)==null||a.cancel();z=J(U()).animate([{width:"0%"},{width:"100%"}],{duration:9E3,easing:"linear"});z.onfinish=function(){J(U()).style.width="100%";var N=_.b(V()[U()],CpA),m,A;N!=null&&N.foregroundAnimation&&((N==null?0:(m=N.foregroundAnimation)==null?0:m.url)||(N==null?0:(A=N.foregroundAnimation)==null?0:A.payload))||(U()!==V().length-1?(Y(U()+1),Q()):O()&&_.eV(O()))}},J=function(a){return D.value.children[a].children[0]},K=function(){for(var a=0;a<U();a++)J(a).style.width="100%"};
p=_.kL(function(){L()?I(!1):(U()===V().length-1&&O()&&_.eV(O()),J(U()).style.width="100%",U()!==V().length-1&&(Y(U()+1),Q()))});
var G=_.kL(function(){L()?I(!1):(J(U()).style.width="0%",U()!==0?Y(U()-1):Y(U()),Q())}),X=function(){I(!0)},Z=function(){J(U()).style.width="100%";
U()!==V().length-1?(Y(U()+1),Q()):O()&&_.eV(O())},l=_.kL(function(){var a;
(a=z)==null||a.pause()});
_.R8(function(){if(L()){var a;(a=z)==null||a.pause()}else{var N;(N=z)==null||N.play()}});
_.R8(function(){K();U()===S.data().startIndex&&Q()});
_.FM(function(){K();Q()});
return _.H("yt-stories-viewer-view-model",{class:_.VD("ytStoriesViewerViewModelHost","ytStoriesViewerViewModelResetSpacing"),dialog:!0},_.H("div",{class:"ytStoriesViewerViewModelNavigationContainer"},_.H("div",{class:"ytStoriesViewerViewModelPreviousNavigation","on:click":G,"on:mousedown":l}),_.H("div",{class:"ytStoriesViewerViewModelNextNavigation","on:click":p,"on:mousedown":l})),_.H(_.yP,{data:V},{storiesItemViewModel:function(a,N){var m=a.data;return _.H(_.n,{cond:function(){return Math.abs(N()-
U())<=1},
then:function(){var A={};return _.H("div",{class:_.VD("ytStoriesViewerViewModelStoryItem",(A.ytStoriesViewerViewModelHiddenStoryItem=function(){return N()!==U()},A))},_.H(lMX,{data:m,
pauseAutoNavigation:X,navigateToNextItemOnLottieComplete:Z,isVisible:function(){return N()===U()}}))}})}}),_.H("div",{class:"ytStoriesViewerViewModelProgressBarsContainer",
el:D},_.H(_.KU,{each:V},function(){return _.H("div",{class:"ytStoriesViewerViewModelProgressBar"},_.H("div",{class:"ytStoriesViewerViewModelProgress"}))})),_.H("div",{class:"ytStoriesViewerViewModelActionButtonsContainer"},_.H(_.yP,{data:W},{buttonViewModel:_.PG})))},"Yg"),"yt-stories-viewer-view-model",{props:{data:_.x2}});_.qm(_.$k(function(S){var p=S.data;var U=_.vH(),Y=[];return _.H("yt-gen-ai-feedback-form-view-model",{el:U,class:"ytGenAiFeedbackFormViewModelHost"},_.H(_.i6,{text:function(){return p().title},
className:"ytGenAiFeedbackFormViewModelTitle"}),_.H("div",{class:"ytGenAiFeedbackFormViewModelChipsContainer"},_.H(_.yP,{data:function(){return p().feedbackChips}},{toggleButtonViewModel:function(L){var I=L.data;
return _.H(_.jS,{data:I,className:"ytGenAiFeedbackFormViewModelFeedbackChip",onToggle:function(V){var W=I();W=_.b(W,_.b6);W=_.b(W==null?void 0:W.defaultButtonViewModel,_.K6).trackingParams;V?Y.push(W):(V=Y.indexOf(W),V>-1&&Y.splice(V,1))}})}})),_.H(_.i6,{text:function(){return p().disclaimer},
className:"ytGenAiFeedbackFormViewModelDisclaimer"}),_.H("div",{class:"ytGenAiFeedbackFormViewModelBottomButtonsContainer"},_.H(_.yP,{data:function(){return p().submitButton}},{buttonViewModel:function(L){return _.H(_.PG,{data:L.data,
className:"ytGenAiFeedbackFormViewModelSubmitButton",onClick:function(){BBE(U.value,Y,p().uniqueId)}})}}),_.H(_.yP,{data:function(){return p().moreFeedbackButton}},{buttonViewModel:function(L){return _.H(_.PG,{data:L.data,
className:"ytGenAiFeedbackFormViewModelMoreFeedbackButton"})}})))},"Zg"),"yt-gen-ai-feedback-form-view-model",{props:{data:_.x2},
unsafeExternallySettableAttributes:new Set(["tabindex"])});var fM=function(){return _.w.apply(this,arguments)||this};
_.r(fM,_.w);fM.prototype.created=function(){GvX(2200);this.ytPopupContainerBehavior.initPopupContainerBehavior(MLq);var S=_.tW().resolve(_.byw);S&&(S.container=this.ytPopupContainerBehavior);if(S=_.tW().resolve(_.K7))S.container=this.ytPopupContainerBehavior;if(S=_.tW().resolve(_.bA)){var p=this.ytPopupContainerBehavior;S.containerWasInjected?_.eP(Error("aj")):S.container=p}};
fM.prototype.ensurePopupBelowPlayer=function(S,p){var U=_.tW().resolve(_.AW(_.oy));if(!U||!U.isOnWatch()||!_.$L())return!1;U=U.getCurrentPage().getPlayerContainer().getBoundingClientRect().bottom;_.zv().height>U+this.getPopupHeight(S,p)?(S.style.top="auto",S.style.bottom="0px"):(S.style.top=U+"px",S.style.bottom="auto");return!0};
fM.prototype.getPopupHeight=function(S,p){p&&(S.cachedPopupHeight=0);if(!S.cachedPopupHeight){p=0;var U=S.clientHeight,Y=window.getComputedStyle(S);p+=parseInt(Y.marginTop,10);p+=parseInt(Y.marginBottom,10);S.cachedPopupHeight=U+p}return S.cachedPopupHeight};
fM.prototype.getElement=function(S){return document.createElement(S)};
_.x([_.F(XcA.YtPopupContainerBehavior),_.E("design:type",Object)],fM.prototype,"ytPopupContainerBehavior",void 0);_.x([_.F(_.eL.YtComponentBehavior),_.E("design:type",Object)],fM.prototype,"ytComponentBehavior",void 0);fM=_.x([_.f({disableElementRegistration:!0,is:"ytd-popup-container"})],fM);
_.C(fM,"ytd-popup-container",function(){if(JuJ!==void 0)return JuJ;var S=document.createElement("template");_.h(S,"\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");S.content.insertBefore(_.t().content.cloneNode(!0),S.content.firstChild);return JuJ=S},{mode:1});var aMX;var fMs={};fMs.YtLogYpcFlowCommandsBehavior=[_.Aj.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(S){_.b(S,LwP)&&(S=_.b(S,LwP))&&(S.serializedTransactionFlowLoggingParams?_.GWG(S.serializedTransactionFlowLoggingParams):S.serializedYpcCancelFlowLoggingParams?(S=S.serializedYpcCancelFlowLoggingParams)&&_.Pp("ypcCancelFlowStarted","serializedYpcCancelFlowLoggingParams",S):S.serializedYpcResumeFlowLoggingParams?(S=S.serializedYpcResumeFlowLoggingParams)&&_.Pp("ypcResumeFlowStarted","serializedYpcResumeFlowLoggingParams",S):S.serializedYpcPauseFlowLoggingParams?(S=S.serializedYpcPauseFlowLoggingParams)&&
_.Pp("ypcPauseFlowStarted","serializedYpcPauseFlowLoggingParams",S):S.serializedYpcRefundFlowLoggingParams?(S=S.serializedYpcRefundFlowLoggingParams)&&VaJ("YPC_EVENT_TYPE_START",S):S.serializedYpcDeactivateFlowLoggingParams?(S=S.serializedYpcDeactivateFlowLoggingParams)&&_.Pp("ypcDeactivateFlowStarted","serializedYpcDeactivateFlowLoggingParams",S):S.serializedYpcCancelFlowGoToPaymentProcessorLoggingParams&&(S=S.serializedYpcCancelFlowGoToPaymentProcessorLoggingParams)&&_.Pp("ypcCancelFlowGoToPaymentProcessor",
"serializedYpcCancelFlowGoToPaymentProcessorLoggingParams",S))},
handleLogYpcFlowDismiss_:function(S){_.b(S,YSq)&&(S=_.b(S,YSq),S.serializedTransactionFlowLoggingParams?_.hWG(S.serializedTransactionFlowLoggingParams):S.serializedYpcCancelFlowLoggingParams?(S=S.serializedYpcCancelFlowLoggingParams)&&_.Pp("ypcCancelFlowCancelled","serializedYpcCancelFlowLoggingParams",S):S.serializedYpcResumeFlowLoggingParams?(S=S.serializedYpcResumeFlowLoggingParams)&&_.Pp("ypcResumeFlowCancelled","serializedYpcResumeFlowLoggingParams",S):S.serializedYpcPauseFlowLoggingParams?(S=
S.serializedYpcPauseFlowLoggingParams)&&_.Pp("ypcPauseFlowCancelled","serializedYpcPauseFlowLoggingParams",S):S.serializedYpcRefundFlowLoggingParams&&(S=S.serializedYpcRefundFlowLoggingParams)&&VaJ("YPC_EVENT_TYPE_CANCEL",S))}}];var C8q={};C8q.YtCancelRecurrenceBehavior=[_.eL.YtComponentBehavior,_.w8P,{attached:function(){var S=this;VpT(this,function(p,U){return S.ypcCancelRecurrenceHandler(p,U)})},
ypcCancelRecurrenceHandler:function(S,p){var U=this;if(!p||!p.ypcCancelRecurrenceEndpoint)return!1;if(!p.ypcCancelRecurrenceEndpoint.params)return _.w7(Error("tl")),!0;_.fJ(this.hostElement);var Y=_.uZ.instance,L=_.tW().resolve(_.AW(_.RS));Y&&_.wY(Y,p)?_.lZ(Y,p).then(function(I){U.ypcCancelRecurrenceSuccess_(S,p,{data:I})},function(I){U.ypcCancelRecurrenceFailure_(S,p,I)}).thenCatch(function(){_.w7(Error("ul"))}):L?L.requestDataForServiceEndpoint(p).then(function(I){U.ypcCancelRecurrenceSuccess_(S,
p,I)},function(I){U.ypcCancelRecurrenceFailure_(S,p,I)}).thenCatch(function(){_.w7(Error("ul"))}):_.w7(Error("vl"));
return!0},
ypcCancelRecurrenceSuccess_:function(S,p,U){_.CJ(this.hostElement);U.data||(U={data:U});U.data&&U.data.actions&&_.Lp(this.hostElement,U.data.actions,this.hostElement);U.data.messageRenderer?WjP(p.ypcCancelRecurrenceEndpoint.serializedYpcCancelFlowLoggingParams):(p=p.ypcCancelRecurrenceEndpoint.serializedYpcCancelFlowLoggingParams)&&_.Pp("ypcCancelFlowSucceeded","serializedYpcCancelFlowLoggingParams",p);_.cv(S,"yt-service-request-completed",U)},
ypcCancelRecurrenceFailure_:function(S,p,U){_.CJ(this.hostElement);WjP(p.ypcCancelRecurrenceEndpoint.serializedYpcCancelFlowLoggingParams);_.cv(S,"yt-service-request-error",{error:U,params:[S,p]})}}];var xrE=function(S,p){_.Sw.call(this,p)};
_.r(xrE,eMi);var E_X={};E_X.YtCompleteTransactionBehavior=[_.eL.YtComponentBehavior,_.w8P,{attached:function(){var S=this;VpT(this,function(p,U){return S.ypcCompleteTransactionHandler(p,U)})},
completeTransaction:function(S,p){var U=this;p={payments_payload:window.btoa(p.integratorData),buybucket_params:S.data.buybucketParams,offer_params:S.data.offerParams};var Y=_.tW().resolve(_.RS),L=S.data.completeTransactionEndpoint,I=this.get("ypcCompleteTransactionEndpoint.actions",L);I&&_.Lp(this.hostElement,I,this.hostElement);return(I=_.uZ.instance)&&_.wY(I,L)?_.lZ(I,L,p).then(function(V){return!V||(V==null?0:V.error)?(V=U.get("data.serializedTransactionFlowLoggingParams",S),_.jV(new S2("TRANSACTION_ERROR_TYPE_YPC_COMPLETE_TRANSACTION_RPC_FAILURE",
V))):{data:V}}).then(function(V){return U.handleCompleteTransactionSuccess_(V,S)},function(){return U.handleCompleteTransactionFailure_(S)}):Y.requestDataForServiceEndpoint(L,p).then(function(V){return U.handleCompleteTransactionSuccess_(V,S)},function(){return U.handleCompleteTransactionFailure_(S)})},
handleCompleteTransactionSuccess_:function(S,p){S.data||(S={data:S});if(S.data.messageRenderer)return _.jV(new xrE(S.data.messageRenderer));if(S.data.trackingParams){var U=_.X$(),Y=_.F$();U&&Y&&_.wB(U,Y,_.JS(S.data.trackingParams))}p=this.get("data.serializedTransactionFlowLoggingParams",p);T6s(p);return _.Mw(S)},
handleCompleteTransactionFailure_:function(S){S=this.get("data.serializedTransactionFlowLoggingParams",S);_.CH("TRANSACTION_ERROR_TYPE_YPC_COMPLETE_TRANSACTION_RPC_FAILURE",S);return _.jV(new S2("TRANSACTION_ERROR_TYPE_YPC_COMPLETE_TRANSACTION_RPC_FAILURE",S))},
ypcCompleteTransactionHandler:function(S,p){var U=this;if(!p.ypcCompleteTransactionEndpoint)return!1;if(!p.ypcCompleteTransactionEndpoint.transactionParams)return _.w7(Error("wl")),!0;p.ypcCompleteTransactionEndpoint&&p.ypcCompleteTransactionEndpoint.gtmData&&_.ya(p.ypcCompleteTransactionEndpoint.gtmData);var Y=_.tW().resolve(_.AW(_.RS));if(Y){_.fJ(this.hostElement);var L=_.uZ.instance;L&&_.wY(L,p)?_.lZ(L,p).then(function(I){return!I||(I==null?0:I.error)?(I=U.get("ypcCompleteTransactionEndpoint.serializedTransactionFlowLoggingParams",
p),_.jV(new S2("TRANSACTION_ERROR_TYPE_YPC_COMPLETE_TRANSACTION_RPC_FAILURE",I))):{data:I}}).then(function(I){_.cv(S,"yt-service-request-completed");
U.ypcCompleteTransactionSuccess_(p,I)},function(){return U.ypcCompleteTransactionFailure_(p)}):Y.requestDataForServiceEndpoint(p).then(function(I){_.cv(S,"yt-service-request-completed");
U.ypcCompleteTransactionSuccess_(p,I)},function(){return U.ypcCompleteTransactionFailure_(p)})}return!0},
ypcCompleteTransactionSuccess_:function(S,p){_.CJ(this.hostElement);p.data||(p={data:p});_.St(this.hostElement,"yt-close-popup-action",["yt-loading-renderer"]);p.data.messageRenderer||p.data.ypcResponseCode==="YPC_RESPONSE_CODE_ERROR"?this.ypcCompleteTransactionFailure_(S):(_.ya('{"event": "purchase", "eventParams" : {"purchaseStatus": "success"}}'),this.logTransactionEvent_("transactionFlowSucceeded",S));p.data.actions&&(S=r8E(p.data.actions),p=G0L(p.data.actions),S.length&&_.Yd(this.hostElement,
S),p.length&&_.Lp(this.hostElement,p,this.hostElement))},
ypcCompleteTransactionFailure_:function(S){_.CJ(this.hostElement);_.St(this.hostElement,"yt-close-popup-action",["yt-loading-renderer"]);this.logTransactionEvent_("transactionFlowFailed",S,"TRANSACTION_ERROR_TYPE_YPC_COMPLETE_TRANSACTION_RPC_FAILURE")},
logTransactionEvent_:function(S,p,U){if(p=this.get("ypcCompleteTransactionEndpoint.serializedTransactionFlowLoggingParams",p))p={serializedTransactionFlowLoggingParams:p},U&&(p.errorType=U),_.RV(S,p),_.Fr()}}];var mrL={};mrL.YtEndpointHandlerWithYpcBehavior=[_.w8P,_.Aj.YtActionHandlerBehavior,[{openWalletDialog:function(S,p,U,Y,L,I,V){var W=this,O=_.ay();p=p.replace(/-/g,"+").replace(/_/g,"/");var D=_.D9().get("hl");_.Smd(_.p4(_.xM),p,O.resolve,L,function(z){I&&I();O.reject(z)},D,function(z){return W.onServerBackendAnalyticEvent_(S,U,z)},this.onDialogClose_.bind(this),Y,V);
return O.promise},
openFixFlowDialog:function(S,p,U,Y){S=S.replace(/-/g,"+").replace(/_/g,"/");_.p4(_.xM).openFixFlowDialog(S,p,U,Y)},
onDialogClose_:function(){_.St(this,"yt-wallet-dialog-closed")},
onServerBackendAnalyticEvent_:function(S,p,U){_.cv(S,"yt-commerce-action-init-done");p&&_.Yd(this.hostElement,[p,{backend_analytics:U}])}}],
_.dW.YtOpenPopupBehavior,[{listeners:{"yt-service-request-completed":"onUpdateFopServiceRequestCompleted_"},onUpdateFopServiceRequestCompleted_:function(S,p){S=this.get("data.nativeFlowEndpoint",p);p=this.get("data.fallbackEndpoint",p);S?_.Yd(this.hostElement,[S]):p&&_.cv(this.hostElement,"yt-navigate",{endpoint:p})}}],
C8q.YtCancelRecurrenceBehavior,E_X.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 S=this;VpT(this,function(p,U,Y){return S.handleYPCEndpoint(p,U,Y)});
this.ypcRegisterActionMapJobId_=_.bQ(_.PA,function(){S.registerActionMap(S.buyFlowActionMap_)})},
detached:function(){var S=this;_.PA.cancelJob(this.ypcRegisterActionMapJobId_);_.bQ(_.PA,function(){S.unregisterActionMap(S.buyFlowActionMap_)})},
handleYPCEndpoint:function(S,p,U){var Y=p.ypcGetCartEndpoint;if(Y){_.R2("commerce_transaction");var L=Y.gtmId;L&&_.Jj(L);(Y=Y.gtmData)&&_.ya(Y)}return this.get("ypcGetCartEndpoint.prefetchConfig.ypcGetCartPrefetchResponseDataConfig.encryptedPurchaseParams",p)!=null?(this.handleYPCGetCartEndpointWithPrefetch_(S,p),!0):this.get("ypcFixInstrumentEndpoint.encryptedFixInstrumentParameters",p)!=null?(this.handleYPCFixInstrumentEndpoint_(S,p),!0):p.ypcPauseSubscriptionCommand?(LAP(this.hostElement,S,p,U),
!0):p.ypcResumeSubscriptionCommand?(d9E(this.hostElement,S,p),!0):p.getPaymentInstrumentsParamsCommand?(pJq(this.hostElement,S,p),!0):p.ypcHandleTransactionEndpoint?(caE(this.hostElement,S,p,U),!0):!1},
handleYPCGetCartEndpointWithPrefetch_:function(S,p){var U=this;_.Fg("ttcr",void 0,"commerce_transaction");p=p.ypcGetCartEndpoint;var Y=p.prefetchConfig.ypcGetCartPrefetchResponseDataConfig,L=Y.encryptedPurchaseParams,I=Y.serializedTransactionFlowLoggingParams,V=Y.serializedPaymentsClientParams,W=this.createGetCartResponseFromParams_(Y,p.offerParams,I);this.changeButtonState(S,!0);_.zB(this.openWalletDialog(S,L,Y.ypcLogWalletAnalyticDataEndpoint,I,function(){U.changeButtonState(S,!1)},function(){U.changeButtonState(S,
!1)},V).then(function(O){return U.handleBuyFlowCompleteCallback_(S,W,O)},function(){return U.handleOnLoadError(W)}).then(function(O){return void U.handlePostPurchaseSuccess_(S,W,O)},function(O){return void U.handlePostPurchaseError_(O)}),function(){U.changeButtonState(S,!1);
S instanceof Element&&_.cv(S,"yt-commerce-action-done")})},
createGetCartResponseFromParams_:function(S,p,U){var Y=S.completeTransactionEndpoint,L=S.handleTransactionEndpoint;p={data:{offerParams:window.btoa(p),serializedTransactionFlowLoggingParams:U}};L?p.data.handleTransactionEndpoint=L:p.data.completeTransactionEndpoint=Y;S.onCartDismissCommand&&(p.data.onCartDismissCommand=S.onCartDismissCommand);return p},
onGetCartServiceRequestCompleted_:function(S,p){var U=this,Y=S.target;if(p&&p.data&&p.data.messageRenderer)_.CJ(this.hostElement),this.handleMessageRenderer_(p.data.messageRenderer),this.changeButtonState(Y,!1);else{var L=this.get("data.encryptedPurchaseParams",p),I=this.get("data.upgradeDialogRenderer.ypcUpgradeDialogRenderer",p),V=this.get("data.ypcLogWalletAnalyticDataEndpoint",p),W=this.get("data.serializedPaymentsClientParams",p),O=this.getLoggingParams_(p);if(O||L||I)S.stopPropagation(),_.Fg("ttcr",
void 0,"commerce_transaction"),L||_.CJ(this.hostElement),this.changeButtonState(Y,!1),I?_.St(this.hostElement,"yt-open-popup-action",[{openPopupAction:{popupType:_.g7("openPopupConfig").popupTypeMap.ypcUpgradeDialogRenderer,popup:{ypcUpgradeDialogRenderer:I}}},this]):L&&(this.changeButtonState(Y,!0),S=null,S=this.openWalletDialog(Y,L,V,O,function(){_.CJ(U.hostElement);U.changeButtonState(Y,!1)},function(){_.CJ(U.hostElement);
U.changeButtonState(Y,!1)},W),_.zB(S.then(function(D){return U.handleBuyFlowCompleteCallback_(Y,p,D)},function(){return U.handleOnLoadError(p)}).then(function(D){return U.handlePostPurchaseSuccess_(Y,p,D)},function(D){return U.handlePostPurchaseError_(D)}),function(){U.changeButtonState(Y,!1);
_.cv(Y,"yt-commerce-action-done")}))}},
onServiceRequestSent_:function(S,p){p&&p.endpoint&&p.endpoint.ypcGetCartEndpoint&&!p.endpoint.ypcGetCartEndpoint.prefetchConfig&&(this.get("commandLifeCycleConfig.onStartCommand",p.endpoint.ypcGetCartEndpoint)&&_.Lp(this.hostElement,[this.get("commandLifeCycleConfig.onStartCommand",p.endpoint.ypcGetCartEndpoint)],S.target),_.fJ(this.hostElement),this.changeButtonState(S.target,!0))},
onServiceRequestError_:function(S,p){if(p&&p.params&&p.params.length){p=_.d(p.params);for(var U=p.next();!U.done;U=p.next())if((U=U.value)&&U.ypcGetCartEndpoint){this.get("commandLifeCycleConfig.onFailureCommand",U.ypcGetCartEndpoint)&&_.Lp(this.hostElement,[this.get("commandLifeCycleConfig.onFailureCommand",U.ypcGetCartEndpoint)],S.target);_.CJ(this.hostElement);this.changeButtonState(S.target,!1);break}}},
handleBuyFlowCompleteCallback_:function(S,p,U){var Y=U.integratorData;return Y==null||Y===""||U.error!=null?(Y=this.getLoggingParams_(p),String(U.error)==="-1"?(p.data.onCartDismissCommand&&_.Lp(this.hostElement,[p.data.onCartDismissCommand],S),_.jV(new S2("TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_COMPLETE_FAILURE",Y,!0))):_.jV(new S2("TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_COMPLETE_FAILURE",Y))):p.data.handleTransactionEndpoint?ScE(this.hostElement,p.data.handleTransactionEndpoint,{payments_payload:Y,funds_guarantee_callback_client_data:U.integratorClientCallbackData}):
this.completeTransaction(p,U)},
handlePostPurchaseSuccess_:function(S,p,U){p=U.data;var Y=!1,L,I;if(p&&((L=p.command)==null?0:(I=L.commandExecutorCommand)==null?0:I.commands)){var V,W;L=(V=p.command)==null?void 0:(W=V.commandExecutorCommand)==null?void 0:W.commands;for(V=0;V<L.length;V++)if(_.b(L[V],_.r1m)){Y=!0;break}}Y||(p&&p.gtmDatas&&p.gtmDatas.length?_.ya(p.gtmDatas[0]):_.ya('{"event": "purchase", "eventParams" : {"purchaseStatus": "success"}}'));U.data&&U.data.actions&&(p=r8E(U.data.actions),U=G0L(U.data.actions),p.length&&
_.Yd(this.hostElement,p),U.length&&_.Lp(this.hostElement,U,S))},
handlePostPurchaseError_:function(S){S&&S.payload&&S.payload.isUserDismiss||_.ZP(Error("yl"))},
handleOnLoadError:function(S){S=this.getLoggingParams_(S);return _.jV(new S2("TRANSACTION_ERROR_TYPE_LOAD_FAILURE",S))},
getLoggingParams_:function(S){return this.get("data.serializedTransactionFlowLoggingParams",S)},
handleMessageRenderer_:function(S){var p=_.ZC(S,"renderer"),U=_.g7("openPopupConfig");p==="confirmDialogRenderer"&&U&&_.St(this.hostElement,"yt-open-popup-action",[{openPopupAction:{popupType:U.popupTypeMap[p],popup:S}},this])},
handleYPCFixInstrumentEndpoint_:function(S,p){var U=this,Y=p.ypcFixInstrumentEndpoint;p=Y.encryptedFixInstrumentParameters;this.logFixFopEvent_(Y,"FIX_FOP_EVENT_TYPE_START");this.changeButtonState(S,!0);this.openFixFlowDialog(p,function(L,I){U.onFixFlowCompleteCallback_(Y,L,I)},function(){return U.changeButtonState(S,!1)},function(){U.changeButtonState(S,!1);
U.logFixFopEvent_(Y,"FIX_FOP_EVENT_TYPE_FAILURE","FIX_FOP_ERROR_TYPE_LOAD_FAILURE")})},
onFixFlowCompleteCallback_:function(S,p,U){var Y=_.ad("payments.business.integration.scenario.FixInstrument");if(p==Y.IntegratorCallbackType.ON_COMPLETE){p="FIX_FOP_EVENT_TYPE_CANCEL";var L=null;U.error!=null?U.error!=Y.OnCompleteCallbackError.USER_CANCELLED&&(_.Lp(this.hostElement,[S.errorAction],this.hostElement),p="FIX_FOP_EVENT_TYPE_FAILURE",L="FIX_FOP_ERROR_TYPE_UNSPECIFIED"):(_.Lp(this.hostElement,[S.successAction],this.hostElement),p="FIX_FOP_EVENT_TYPE_SUCCESS");_.Lp(this.hostElement,[S.onFinishAction],
this.hostElement);this.logFixFopEvent_(S,p,L)}},
logFixFopEvent_:function(S,p,U){(S=S.serializedFixFopLoggingParams)?(p={eventType:p,serializedFixFopLoggingParams:S},U!=null&&(p.errorType=U),_.RV("fixFopFlow",p),_.Fr()):_.ZP(Error("zl"))},
changeButtonState:function(S,p){_.y("enable_ypc_spinners")&&S&&(S.is==="yt-button-renderer"||S.is==="ytd-button-renderer")&&(S.disabled=p)}}];var o_n=function(S){this.JSC$28760_clientRoot=S;this.feedbackCollectorActionMap={"yt-help-dialog-requested":Ttd,"yt-feedback-dialog-requested":V4Y,"yt-signal-action-help":WAq,"yt-signal-action-send-feedback":OKE,"yt-send-feedback-action":HKd,"yt-user-feedback-endpoint":D9t};_.E9(_.xv.getInstance(),this.feedbackCollectorActionMap,this.JSC$28760_clientRoot)},v_s;var $rA=function(S){this.JSC$28765_clientRoot=S;this.downloadManagerActionMap={"yt-signal-action-delete-all-downloads-prompt":z$o.bind(null,this.JSC$28765_clientRoot),"yt-signal-action-delete-all-downloads":nls,"yt-signal-action-delete-download":JZi,"yt-signal-action-delete-playlist-download":KAY,"yt-signal-action-install-pwa":R$T,"yt-signal-action-refresh-downloads":GfX,"yt-offline-video-endpoint":XJd,"yt-offline-playlist-endpoint":ZKP,"yt-update-local-app-setting-command":e$J,"yt-offline-orchestration-action-command":u1i,
"yt-signal-action-undo-delete-download":j4P,"yt-local-watch-history-command":a4L};_.E9(_.xv.getInstance(),this.downloadManagerActionMap,this.JSC$28765_clientRoot);_.rz.instance=new _.rz},iPo;var CM=function(){var S=_.w.apply(this,arguments)||this;S.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_"};S.remoteApi_=null;return S};
_.r(CM,_.w);_.M=CM.prototype;
_.M.ready=function(){_.y("polymer_enable_mdx")&&(M8t({device:"Desktop",app:"youtube-desktop",appId:this.appId,loadCastApiSetupScript:_.y("mdx_load_cast_api_bootstrap_script"),enableDialLoungeToken:_.y("enable_dial_short_lived_lounge_token"),enableCastLoungeToken:_.y("enable_cast_short_lived_lounge_token")}),_.MW("yt-remote-connection-change",this.handleConnectionChange_,this),_.MW("yt-remote-receiver-availability-change",this.handleReceiverAvailabilityChange_,this),(this.remoteApi_=kEd())&&this.remoteApi_.subscribe("remoteQueueChange",
this.handleRemoteQueueChange_,this))};
_.M.handleGetMdxStatus_=function(){return{connected:this.mdxConnected,receiverAvailable:this.receiverAvailable,receiverName:this.receiverName}};
_.M.handleConnectionChange_=function(S){(this.mdxConnected=S)?(S=V8o(),!S&&VmE()&&TnY()&&(S={key:"cast-selector-receiver",name:TnY()}),S=S.name):S=null;this.receiverName=S;_.t9(this.remoteApi_);(this.remoteApi_=kEd())&&this.remoteApi_.subscribe("remoteQueueChange",this.handleRemoteQueueChange_,this)};
_.M.handleReceiverAvailabilityChange_=function(){var S=duJ();VmE()&&_.Uz("yt-remote-cast-available")&&S.push({key:"cast-selector-receiver",name:"Cast..."});this.receiverAvailable=S.length>0};
_.M.handleRemoteQueueChange_=function(){var S=this.currentVideoId_,p=this.currentListId_,U=Iv(this.remoteApi_);this.currentVideoId_=U.videoId;this.currentListId_=U.listId;this.currentVideoId_&&_.St(this.hostElement,"yt-sync-with-remote-video",[this.currentVideoId_,_.y("polymer_enable_mdx_queue")?this.currentListId_:null,S,p])};
_.M.handleAddToQueueAction_=function(S){S=_.b(S,xDP);this.remoteApi_&&(S.videoId?this.remoteApi_.addVideo(S.videoId):S.playlistId&&this.remoteApi_.addPlaylist(S.playlistId))};
_.M.handleClearQueueAction_=function(){this.remoteApi_&&this.remoteApi_.clearPlaylist()};
_.M.handleInsertInQueueAction_=function(S){S=_.b(S,EiP);this.remoteApi_&&S.videoId&&this.remoteApi_.JSC$17554_insertVideo(S.videoId)};
_.M.handleRemoveFromQueueAction_=function(S){S=_.b(S,mDn);this.remoteApi_&&S.videoId&&this.remoteApi_.JSC$17554_removeVideo(S.videoId)};
_.x([_.F(_.Aj.YtActionHandlerBehavior),_.E("design:type",Object)],CM.prototype,"ytActionHandlerBehavior",void 0);_.x([_.g(),_.E("design:type",Object)],CM.prototype,"appId",void 0);_.x([_.g(),_.E("design:type",Boolean)],CM.prototype,"mdxConnected",void 0);_.x([_.g(),_.E("design:type",Boolean)],CM.prototype,"receiverAvailable",void 0);_.x([_.g(),_.E("design:type",Object)],CM.prototype,"receiverName",void 0);_.x([_.g(),_.E("design:type",Object)],CM.prototype,"currentVideoId_",void 0);
_.x([_.g(),_.E("design:type",Object)],CM.prototype,"currentListId_",void 0);CM=_.x([_.FB({is:"yt-mdx-manager",disableElementRegistration:!0})],CM);_.C(CM,"yt-mdx-manager",void 0,{mode:2});var N$t;var B$J;var xJ=function(){var S=_.w.apply(this,arguments)||this;S.APP_IDS={ytr:3,ytm:5};S.JSC$18793_timeoutId_=0;S.actionMap={"yt-open-create-family-dialog":"open"};return S};
_.r(xJ,_.w);_.M=xJ.prototype;_.M.created=function(){GvX(2200)};
_.M.detached=function(){this.observer_&&this.observer_.disconnect()};
_.M.open=function(S,p){var U=this,Y=S.serializedYpcFamilyCreateLoggingParams;this.JSC$18793_timeoutId_=setTimeout(this.abort_.bind(this,S.postFlowErrorEndpoint,Y),3E4);p&&(this.onReadyCallback_=p);var L=_.tB(this.hostElement).querySelector("#unicorn-iframe");Y&&Y&&dzd("ypcFamilyCreateFlowStarted",Y);_.k9e("family_creation",function(){var I=_.ad("gapi.family_creation.render");_.ad("gapi.config.update")("iframes/family_creation/url",U.getFamilyCreationUrlWithUnicornParams_());var V=3;S.appId&&S.appId in
U.APP_IDS&&(V=U.APP_IDS[S.appId]);V={authUser:_.g7("SESSION_INDEX")||0,clientId:V,darkmode:document.documentElement.hasAttribute("dark")?1:0,hl:_.g7("HL"),initialflow:[4,5,6,7],m:U.isMobile?1:0,onFlowComplete:U.onUnicornFlowComplete_.bind(U,S.postFlowSuccessEndpoint,Y),onError:U.onUnicornFlowError_.bind(U,S.postFlowErrorEndpoint,Y),onReady:U.onUnicornFlowReady_.bind(U,S.referencePcidParams)};I(L,V)})};
_.M.close=function(){_.tB(this.hostElement).querySelector("#dialog").close();this.observer_&&this.observer_.disconnect()};
_.M.onUnicornFlowComplete_=function(S,p){this.close();p&&p&&dzd("ypcFamilyCreateFlowSucceeded",p);_.cv(this.hostElement,"yt-navigate",{endpoint:S})};
_.M.onUnicornFlowError_=function(S,p){this.close();p&&dzd("ypcFamilyCreateFlowCancelled",p);_.cv(this.hostElement,"yt-navigate",{endpoint:S})};
_.M.onUnicornFlowReady_=function(S){var p=this;this.clearTimeout_();if(this.onReadyCallback_)this.onReadyCallback_();S&&_.ad("gapi.family_creation.setConfig")(0,S);this.observer_=new MutationObserver(function(){_.tB(p.hostElement).querySelector("#dialog").fit()});
this.observer_.observe(_.tB(this.hostElement).querySelector("#unicorn-iframe").querySelector("iframe"),{atttributes:!0,attributeFilter:["style"]});_.tB(this.hostElement).querySelector("#dialog").open()};
_.M.getFamilyCreationUrlWithUnicornParams_=function(){return _.g7("YTR_FAMILY_CREATION_URL")};
_.M.getCurrentUrl_=function(){return document.location.href};
_.M.abort_=function(S,p){this.clearTimeout_();this.onUnicornFlowError_(S,p)};
_.M.clearTimeout_=function(){clearTimeout(this.JSC$18793_timeoutId_)};
_.x([_.F(_.Aj.YtActionHandlerBehavior),_.E("design:type",Object)],xJ.prototype,"ytActionHandlerBehavior",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Boolean)],xJ.prototype,"isMobile",void 0);_.x([_.g(),_.E("design:type",Object)],xJ.prototype,"onReadyCallback_",void 0);_.x([_.g(),_.E("design:type",Object)],xJ.prototype,"observer_",void 0);xJ=_.x([_.FB({is:"yt-create-family-dialog",disableElementRegistration:!0})],xJ);
_.C(xJ,"yt-create-family-dialog",function(){if(B$J===void 0){var S=document.createElement("template");_.h(S,'\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');
S.content.insertBefore(_.t().content.cloneNode(!0),S.content.firstChild);var p=S.content,U=p.insertBefore;N$t===void 0&&(N$t=document.createElement("template"));var Y=N$t;U.call(p,Y.content.cloneNode(!0),S.content.firstChild);B$J=S}S=B$J;return S},{mode:2});var q6J;var ARA;var EU=function(){var S=_.w.apply(this,arguments)||this;S.STEP=1;S.BLOCK_ON=80;S.MIN_PROGESS=0;S.MAX_PROGESS=100;return S};
_.r(EU,_.w);_.M=EU.prototype;_.M.created=function(){this.boundNextProgress_=this.nextProgress_.bind(this)};
_.M.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));_.tW().addProvider({provide:EVq,useValue:this})};
_.M.start=function(){this.progress=this.MIN_PROGESS;this.hostElement.hidden=!1;window.requestAnimationFrame(this.boundNextProgress_)};
_.M.finish=function(){var S=this;this.progress=this.MAX_PROGESS;f45(function(){S.progress==S.MAX_PROGESS&&(S.hostElement.hidden=!0)})};
_.M.nextProgress_=function(){this.progress>=this.BLOCK_ON||(this.progress+=this.STEP,window.requestAnimationFrame(this.boundNextProgress_))};
_.$u.Object.defineProperties(EU.prototype,{progress:{configurable:!0,enumerable:!0,set:function(S){this.progress_=S;var p="scaleX("+S/this.MAX_PROGESS+")",U=_.tB(this.hostElement).querySelector("#progress").style;U.transform=p;U.webkitTransform=p;this.hostElement.setAttribute("aria-valuenow",String(S))},
get:function(){return this.progress_}}});
_.x([_.F(_.eL.YtComponentBehavior),_.E("design:type",Object)],EU.prototype,"ytComponentBehavior",void 0);EU=_.x([_.FB({is:"yt-page-navigation-progress",disableElementRegistration:!0})],EU);
_.C(EU,"yt-page-navigation-progress",function(){if(ARA===void 0){var S=document.createElement("template");_.h(S,'\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');S.content.insertBefore(_.t().content.cloneNode(!0),
S.content.firstChild);var p=S.content,U=p.insertBefore;q6J===void 0&&(q6J=document.createElement("template"));var Y=q6J;U.call(p,Y.content.cloneNode(!0),S.content.firstChild);ARA=S}S=ARA;return S},{mode:2});var t7o={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"},cRq={"font-size":"12px","font-style":"italic"},SMo={padding:"8px 0","font-size":"14px","font-weight":"bold",color:"#f00"};_.m9J=function(){return _.T(function(S){_.OV(S)})};_.qm(_.$k(function(){var S=_.Xc(_.rDk);return _.H("yt-ephemeral-actions",{class:"ytEphemeralActionsHost","aria-live":"polite","aria-atomic":"true"},function(){var p;return(p=S())==null?void 0:p.announcement})},"$g"),"yt-ephemeral-actions");var dIJ=new Map;var xZL=function(S,p){var U=this;this.handleError=S;this.logEventInternal=p;this.hasUnloaded=!1;self.document===void 0||self.addEventListener("beforeunload",function(){U.hasUnloaded=!0});
this.shouldLogTransactionEndedThisSession=Math.random()<=.2};
xZL.prototype.logError=function(S){this.handleError(S)};
xZL.prototype.logEvent=function(S,p){switch(S){case "IDB_DATA_CORRUPTED":_.y("idb_data_corrupted_killswitch")||this.logEventInternal("idbDataCorrupted",p);break;case "IDB_UNEXPECTEDLY_CLOSED":this.logEventInternal("idbUnexpectedlyClosed",p);break;case "IS_SUPPORTED_COMPLETED":_.y("idb_is_supported_completed_killswitch")||this.logEventInternal("idbIsSupportedCompleted",p);break;case "QUOTA_EXCEEDED":pxY(this,p);break;case "TRANSACTION_ENDED":this.shouldLogTransactionEndedThisSession&&Math.random()<=
.1&&this.logEventInternal("idbTransactionEnded",p);break;case "TRANSACTION_UNEXPECTEDLY_ABORTED":S=Object.assign({},p,{hasWindowUnloaded:this.hasUnloaded}),this.logEventInternal("idbTransactionAborted",S)}};
var pxY=function(S,p){_.Oa.getInstance().estimate().then(function(U){U=Object.assign({},p,{isSw:self.document===void 0,isIframe:self!==self.top,deviceStorageUsageMbytes:Tzi(U==null?void 0:U.usage),deviceStorageQuotaMbytes:Tzi(U==null?void 0:U.quota)});S.logEventInternal("idbQuotaExceeded",U)})};var mk=function(){var S=_.w.apply(this,arguments)||this;S.tabGesturesIsActive=!1;S.deprecateFullerscreenUi=_.y("web_watch_fullerscreen_deprecation_ui");S.hasDelegation=!1;S.darkerDarkTheme=_.y("web_darker_dark_theme");S.isFrostedGlassInitialized=!1;S.frostedGlassExp=_.y("web_frosted_glass");S.mastheadHiddenFocusWithinKillswitch=_.y("web_masthead_hidden_focus_within_killswitch");S.ephemeralActionsEnabled=_.y("web_ephemeral_actions");S.scrollAtTop=!0;S.guideScrollTop=0;S.isTheaterModeSession=_.ub("START_IN_THEATER_MODE");
S.iMaxTheaterMode=_.y("web_watch_imax_theater_mode");S.isFullWindowSession=_.ub("START_IN_FULL_WINDOW_MODE");S.hasCreateFamilyDialog=!1;S.mastheadHeight=56;S.networkStatusManager=new _.EP;S.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"};S.dynamicActionMap={"yt-run-attestation-command":function(p){var U=_.S_w.instance,Y=_.b(p,_.mPm);return Y?_.y("use_rta_manager_for_async")&&
hwt()?DsL(U,Y,p.clickTrackingParams):H3T(U,Y,p.clickTrackingParams):_.jV(Error("ki"))}};
S.isFrostedGlassDisabled=!1;S.isChannelOrPlaylistPage=!1;return S};
_.r(mk,_.w);_.M=mk.prototype;_.M.created=function(){var S=_.tW();_.y("kevlar_clear_duplicate_pref_cookie")&&_.bQ(_.PA,function(){var p=_.D5.get("PREF");p&&!/f\d=/.test(p)&&(p=_.Ug("kevlar_duplicate_pref_cookie_domain_override"),document.cookie=p?"PREF=null;domain="+p+";expires=Thu, 01 Jan 1970 00:00:01 GMT":"PREF=null;domain=.www.youtube.com;expires=Thu, 01 Jan 1970 00:00:01 GMT")});
_.y("gzip_gel_with_worker")&&_.PMw();_.y("jspb_serialize_with_worker")&&AWn();_.y("web_worker_availability_check")&&VvE();_.y("nwl_init_killswitch")||B7q().then(function(){_.PA.addLowPriorityJob(z0Y)});
this.pageManagerAttachedPromise=_.ay();this.ytdAppBehavior.loadDepsPromise=_.DS([this.ytdAppBehavior.loadDepsPromise,this.pageManagerAttachedPromise.promise]);this.scrollThrottle=new _.NB(this.onThrottledScroll,200,this);_.y("external_fullscreen")&&(this.fullscreen=!1);this.boundOnTouchStart=this.onTouchStart.bind(this);EsP();ZzY=!!_.ad("ytappsettings.initialized");Ta=_.ad("ytappsettings.previousValue");Gpq=_.ad("ytappsettings.previousSnapshotTime");ZzY||(ZzY=!0,h8A());b95();j9T();_.en("DEFERRED_DETACH",
_.y("kevlar_tuner_should_defer_detach"));_.en("REUSE_COMPONENTS",!0);_.en("STAMPER_STABLE_LIST",!0);_.en("SCHEDULED_LAZY_LIST",!0);_.en("openPopupConfig",LVn);_.en("useClickHandler",!0);_.y("kevlar_shell_cleanup")&&_.PA.addLowPriorityJob(e8t.bind(this,_.UX.caches));_.ub("IS_SHELL_LOAD")&&_.ha({shellStartupDurationMs:Math.round((0,_.AI)()-_.Ja())});iKX(this.networkStatusManager);_.y("kevlar_is_hiring")&&(console.log("%cYouTube.com is hiring!",CMJ(t7o)),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!",
CMJ(cRq)),console.log("%cVisit http://go/join-youtube-web to apply today.",CMJ(SMo)));_.oEd(S.resolve(_.dC),1E3)};
_.M.ready=function(){this.guide.addEventListener("transitionend",this.processDrawerIronSelect.bind(this));this.guideInnerContent.addEventListener("scroll",this.ytRendererBehavior.markDirty.bind(this));var S=dTJ();S&&!_.y("external_fullscreen_killswitch")&&document.addEventListener(S,this.setFullscreen.bind(this));(S=window.matchMedia("(prefers-color-scheme: dark)"))&&S.addEventListener&&S.addEventListener("change",this.onDeviceThemeChanged.bind(this));this.onDeviceThemeChanged()};
_.M.attached=function(){var S=this;_.Pt().processSignal("ci");_.y("kevlar_passive_event_listeners")?this.hostElement.addEventListener("touchstart",this.boundOnTouchStart,_.jiw?{passive:!0}:void 0):this.hostElement.addEventListener("touchstart",this.boundOnTouchStart);_.TU(_.eBr(),"SUCCESS");this.updateIconSet();_.A8(this.guideInnerContent,!1);_.Dq().initVisibilityObserver();this.guideService.guideElement=this.guide;var p=document.createElement("ytd-miniplayer"),U=_.tB(this.hostElement).querySelector("#content");
_.tB(this.hostElement).insertBefore(p,U);_.Pt().processSignal("ma");_.tW().resolve(_.eC).init(p);_.ub("IS_SHELL_LOAD")&&(U=document.createElement("ytd-network-status-banner"),_.tB(this.hostElement).insertBefore(U,p));_.y("kevlar_right_click_on_lockups")&&_.wH._onCaptureClick&&document.addEventListener("contextmenu",_.wH._onCaptureClick.bind(_.wH),!0);var Y=function(){var L=_.ij("yt-page-navigation-progress");_.tB(S.hostElement).appendChild(L)};
setTimeout(function(){_.Pt().parkOrScheduleJob(Y,0,"eocs",16)},0);
_.y("service_worker_push_enabled")&&_.bQ(_.PA,IuT);_.E9(_.xv.getInstance(),this.dynamicActionMap,this.hostElement);_.cv(this.hostElement,"ytd-app-attached");_.Pt().processSignal("aa");rIs(this.hostElement);_.NT("gapi.load",_.k9e);this.networkStatusManager.listen("publicytnetworkstatus-online",this.onlineHandler.bind(this));this.networkStatusManager.listen("publicytnetworkstatus-offline",this.offlineHandler.bind(this));this.networkStatusManager.isNetworkAvailable()||this.offlineHandler();_.bQ(_.PA,
function(){var L=document.createElement("ytd-video-preview");_.tB(_.tB(S.hostElement).querySelector("#video-preview")).appendChild(L)});
this.updateIsInlinePreviewDisabled();this.scheduleFrostedGlassInitialization();_.bQ(_.PA,function(){olt();S.registerViewTransitionTasks()});
if(_.jv()&&this.isAppDarkTheme()!==_.KH())this.onDarkModeToggledAction();else p=_.bE()==="USER_INTERFACE_THEME_DARK",this.isAppDarkTheme()!==p&&(_.y("enable_dark_theme_only_on_shorts")?_.lE(_.y("enable_dark_theme_only_on_shorts_control")?window.location.href:_.od(window.location.href,{theme:"dark"})):_.eP(new _.y7("Theme was not applied",this.getThemeSettingsToLog()))),this.standalone||(VLA=new dHL(this.hostElement)),iPo=new $rA(this.hostElement),v_s=new o_n(this.hostElement),FVX=new R_A(this.hostElement)};
_.M.getThemeSettingsToLog=function(){var S=_.bE()==="USER_INTERFACE_THEME_DARK";S=_.jv()?_.KH()?"os-dark":"os-light":S?"dark":"light";return{appTheme:this.isAppDarkTheme()?"dark":"light",prefsTheme:S,cookiesEnabled:_.Q7()}};
_.M.detached=function(){_.t8(this.guideInnerContent);_.PA.cancelJob(I$);I$=0;_.PA.cancelJob(V3);V3=0;_.mIG(jxo);jxo.length=0;yIi=_.LgX=null;_.Dq().dispose();_.y("kevlar_passive_event_listeners")&&this.hostElement.removeEventListener("touchstart",this.boundOnTouchStart);_.me(_.xv.getInstance(),VLA.playlistHandlerActionMap,VLA.JSC$28461_clientRoot);_.me(_.xv.getInstance(),iPo.downloadManagerActionMap,iPo.JSC$28765_clientRoot);_.me(_.xv.getInstance(),v_s.feedbackCollectorActionMap,v_s.JSC$28760_clientRoot);
for(var S=_.d(FVX.eventListeners),p=S.next();!p.done;p=S.next()){var U=_.d(p.value);p=U.next().value;U=U.next().value;U=_.d(U);for(var Y=U.next();!Y.done;Y=U.next()){var L=_.d(Y.value);Y=L.next().value;L=L.next().value;p.removeEventListener(Y,L)}}_.me(_.xv.getInstance(),FVX.autonavPauseActionMap,FVX.JSC$17739_clientRoot)};
_.M.updateIsInlinePreviewDisabled=function(){this.isInlinePreviewDisabled=_.D9().getFlag(186)};
_.M.computeIsInlinePreviewEnabled=function(S,p,U){return!U&&_.CIP({miniplayerIsActive:S,miniplayerPlaybackState:p})};
_.M.dispatchFrostedGlassMode=function(){this.ytdReduxBehavior.dispatch(_.S4({type:"SET_FROSTED_GLASS_MODE",payload:!_.y("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"}))};
_.M.computeIsFrostedGlassDisabled=function(S,p,U,Y){return S||p||U||Y&&_.y("web_frosted_glass_disable_watch")};
_.M.isWatchPageChanged=function(){this.getCurrentPageScrollableElementType()&&(_.y("web_watch_update_scroll_killswitch")||this.updateScrollAndMasthead(!(!this.isWatchPage||!this.fullscreen),!(!this.isMiniAppPage||!this.fullscreen),!(!this.isShortsPage||!this.fullscreen),this.isWatchPage&&this.isTheaterMode()))};
_.M.computeIsHomePage=function(S,p){if(!S||p==null||!p.endpoint)return!1;var U;return((U=_.b(p.endpoint,_.kM))==null?void 0:U.browseId)==="FEwhat_to_watch"};
_.M.updateIsChannelOrPlaylistPage=function(){if(_.y("web_frosted_glass")){var S,p,U=(p=(S=_.tW().resolve(_.AW(_.oy)))==null?void 0:S.getCurrentPage())==null?void 0:p.pageSubtype;this.isChannelOrPlaylistPage=U?["channel","channels","playlist"].includes(U):!1}};
_.M.scheduleFrostedGlassInitialization=function(){var S=this;_.y("web_frosted_glass")&&_.Pt().parkOrScheduleJob(function(){S.isFrostedGlassInitialized=!0},0,_.ZT(["eocs",
"cr"]),300)};
_.M.isInlinePreviewEnabledChanged=function(){this.ytdReduxBehavior.dispatch(_.KxQ(this.isInlinePreviewEnabled));this.ytdReduxBehavior.dispatch(_.S4({type:"SET_SHARED_INLINE_PREVIEW_ENABLED",payload:this.isInlinePreviewEnabled}));this.ytdReduxBehavior.dispatch(_.S4({type:"SET_SHARED_ANIMATED_THUMBNAIL_ENABLED",payload:!this.isInlinePreviewDisabled}))};
_.M.onlineHandler=function(){this.ytdReduxBehavior.store.dispatch(bzE(!0))};
_.M.onYtSignalActionRequestPersistentStorage=function(){if(!_.y("request_persistent_storage_killswitch")){var S=_.tW().resolve(_.waE);S.cachedPersistStatePromise||(S.cachedPersistStatePromise=CKX())}};
_.M.handleYtChannelCreationFormEndpoints=function(S){S&&this.ytComponentBehavior.resolveCommand(S)};
_.M.handleShowEngagementPanelEndpoint=function(S){S&&this.ytComponentBehavior.resolveCommand(S)};
_.M.offlineHandler=function(){this.ytdReduxBehavior.store.dispatch(bzE(!1))};
_.M.initIconDefs=function(S,p,U){var Y=document.createElement("iron-iconset-svg");Y.name=S;S=document.createElementNS("http://www.w3.org/2000/svg","svg");Y.appendChild(S);S.appendChild(p);if(U)for(var L in U)Y[L]=U[L];document.body.appendChild(Y);return Y};
_.M.onWindowResized=function(){_.St(this.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"]);var S=_.Z7Q.getInstance();S.documentWidth_=document.body.clientWidth;xIP(S)};
_.M.onWindowScrolled=function(){var S=_.tW().resolve(_.oy).getCurrentPage();if(S!=null&&S.getScrollTop){var p=this.ytdReduxBehavior,U=p.dispatch;S=S.getScrollTop()<=0;U.call(p,_.S4({type:"SET_SCROLL_AT_TOP",payload:S}))}};
_.M.guideIsVisibleButNotPersistentSelectorChanged=function(){var S=_.tW().resolve(_.oy).getCurrentPage();this.getCurrentPageScrollableElementType()==="HTML"&&this.guideIsVisibleButNotPersistent?(document.body.style.overflowY="scroll",this.guideScrollTop=S.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"),
S.setScrollTop(this.guideScrollTop));_.pp(this.hostElement,"yt-rich-grid-layout-refreshed")};
_.M.getCurrentPageScrollableElementType=function(){var S=_.tW().resolve(_.oy).getCurrentPage();if(S&&S.getPageScrollingElement())return S.getPageScrollingElement().nodeName};
_.M.observeGuideVisibility=function(){var S=_.Z7Q.getInstance(),p=this.miniGuideVisible;S.guidePersistentAndVisible_=this.guidePersistentAndVisible;S.miniGuideVisible_=p;xIP(S)};
_.M.handleEduDismissAction=function(S){S&&S.eduDismissAction&&(_.St(this.hostElement,"yt-close-popup-action",["yt-bubble-hint-renderer"]),_.hIt.getInstance(),_.mt.set(S.eduDismissAction.key+"-dismissed",!0))};
_.M.handleEduImpressionAction=function(S){if(S&&S.eduImpressionAction){var p=_.hIt.getInstance();S=S.eduImpressionAction.key;p.JSC$10903_eduDisplayedThisLoad_[_.GFP[S].setKey||S]=!0;_.mt.set(S+"-impression",parseInt(_.mt.get(S+"-impression")||0,10)+1)}};
_.M.onYtSignalActionConfirmMentionsEdu=function(){_.St(this.hostElement,"yt-close-popup-action",["yt-bubble-hint-renderer"]);_.$V.getInstance();_.vt.set("edu-dismissed",!0)};
_.M.onYtSignalActionRecordMentionsEduImpression=function(){_.$V.getInstance();var S=_.vt.set,p=parseInt(_.vt.get("edu-impressions"),10);S.call(_.vt,"edu-impressions",(isFinite(p)?p:0)+1)};
_.M.onYtPageManagerAttached=function(S){var p;((p=_.mF(S))==null?void 0:p.id)==="page-manager"&&this.pageManagerAttachedPromise.resolve()};
_.M.onInvokeInstrumentManagerAction=function(S,p){HHq(p,S)};
_.M.updateIconSet=function(){var S=this.hostElement.querySelector("#masthead");if(S){var p=_.p3(S),U=p.querySelector("g#yt-logo-updated");U&&(S=document.createElementNS("http://www.w3.org/2000/svg","defs"),S.appendChild(U.cloneNode(!0)),(p=p.querySelector("g#yt-logo-red-updated"))&&S.appendChild(p.cloneNode(!0)),this.initIconDefs("yt-logos-ext",S))}};
_.M.updateMastheadData=function(){var S=this,p,U,Y,L,I;return _.T(function(V){if(V.nextAddress==1){p=S.data;U=S.hostElement.querySelector("#masthead");if(!U)return V.return();_.oH(S,function(){U.data=S.topbarData});
if(!S.get("response.topbar",p)||S.get("response.topbar.responseContext.maxAgeSeconds",p)===0)return V.jumpTo(0);if(Y=_.tW().resolve(_.Ey))return _.k(V,Y(),6);L=_.tW().resolve(_.UQ);return _.k(V,L.put("service:topbar:fallback",new _.YB({innertubeResponse:S.get("response.topbar",p)})),0)}return(I=V.yieldResult)?_.k(V,I.put("service:topbar:fallback",new _.YB({innertubeResponse:S.get("response.topbar",p)})),0):V.jumpTo(0)})};
_.M.computeTopbarData=function(S){if(!S)return null;var p;return this.isShortsPage&&this.topbarData&&!_.b((p=S.response)==null?void 0:p.topbar,FlJ)?this.topbarData:S.response&&"topbar"in S.response?_.b(S.response.topbar,FlJ)||null:null};
_.M.onSetTheaterModeEnabled=function(S,p){this.isTheaterModeSession=p.enabled;this.setTheaterModeStyles(p.enabled)};
_.M.setTheaterModeStyles=function(){this.setMastheadTheme();this.iMaxTheaterMode&&this.updateScrollAndMasthead(!(!this.isWatchPage||!this.fullscreen),!(!this.isMiniAppPage||!this.fullscreen),!(!this.isShortsPage||!this.fullscreen),this.isWatchPage&&this.isTheaterMode())};
_.M.onDarkModeToggledAction=function(){var S=_.Tp(window.location.href);if(!_.zZw(S)){(S=!!_.mc(window.location.href).themeRefresh)&&_.eP(new _.y7("themeRefresh param is in url.",this.getThemeSettingsToLog()));if(!S){h8A();S={themeRefresh:1};var p=_.tW().resolve(_.oy);if(p.isOnWatch()){var U,Y;p=((U=p.getPlayerFromWatch())==null?void 0:(Y=U.getPlayer())==null?void 0:Y.getCurrentTime())||0;p>=1&&(S.time_continue=Math.floor(p))}_.Q7()||_.bE()!=="USER_INTERFACE_THEME_DARK"||(S.theme="dark");_.lE(_.od(window.location.href,
S))}_.y("web_appshell_refresh_trigger")&&_.UX.caches&&this.refreshAppShellResponse();U=_.lL(window.location.href);_.Ir(_.tW().resolve(_.ds),_.iL(U,"theme"))}};
_.M.onYtSignalActionToggleRestrictedModeOnAction=function(){this.setRestrictedMode(!0)};
_.M.onYtSignalActionToggleRestrictedModeOffAction=function(){this.setRestrictedMode(!1)};
_.M.onPlayerFullscreen=function(S){_.Bv();this.playerFullscreen=S};
_.M.setRestrictedMode=function(S){var p=_.D9();_.zI(0,58,S);p.save();_.tW().resolve(_.Hl).reload()};
_.M.onPageChanged=function(S){S.detail.newPageType==="ytd-watch-flexy"||S.detail.newPageType==="ytd-watch-fixie"||S.detail.newPageType==="ytd-watch-grid"?this.ytdReduxBehavior.dispatch(_.rI("WEB_PAGE_TYPE_WATCH")):S.detail.newPageType==="ytd-shorts"?this.ytdReduxBehavior.dispatch(_.rI("WEB_PAGE_TYPE_SHORTS")):S.detail.newPageType==="ytd-browse"&&S.detail.newPageSubtype==="mini_app"?this.ytdReduxBehavior.dispatch(_.rI("WEB_PAGE_TYPE_MINI_APP")):_.y("web_frosted_glass")&&S.detail.newPageType==="ytd-browse"?
this.ytdReduxBehavior.dispatch(_.rI("WEB_PAGE_TYPE_BROWSE")):this.ytdReduxBehavior.dispatch(_.rI("WEB_PAGE_TYPE_UNKNOWN"));S.detail.oldPageType&&this.setMastheadTheme();this.isFullWindowSession&&this.setFullscreen();this.updateIsInlinePreviewDisabled()};
_.M.onPageDataUpdated=function(){this.updateIsChannelOrPlaylistPage()};
_.M.onGuideToggleTap=function(){_.cv(this.hostElement,"yt-guide-toggle")};
_.M.onGuideToggleHover=function(){_.cv(this.hostElement,"yt-guide-hover")};
_.M.isTheaterMode=function(){return this.isWatchPage&&this.isTheaterModeSession};
_.M.isAppDarkTheme=function(){return document.documentElement.hasAttribute("dark")};
_.M.setMastheadTheme=function(){var S=_.p3(this.hostElement).querySelector("#masthead");S&&(S.dark=S.isDarkThemeForced||this.isTheaterMode()||this.isAppDarkTheme(),S.isDarkThemeForced=!1)};
_.M.onRequestPanelModeChange=function(S,p){this.hideHeaderShadow=p.mode!=="seamed"};
_.M.onGuideOpenButtonHover=function(){this.renderGuide=!0};
_.M.onDrawerIronSelect=function(S){_.mF(S).id==="guide"&&this.processDrawerIronSelect()};
_.M.processDrawerIronSelect=function(){this.ytRendererBehavior.markDirty();var S="closed";this.guide.opened&&(this.renderGuide=!0,this.guide.persistent||(S="opened"));_.cv(this.hostElement,"yt-autonav-pause-guide-"+S)};
_.M.onAddElementToApp=function(S){_.tB(this.hostElement).appendChild(S.detail)};
_.M.onThrottledScroll=function(){var S=_.tW().resolve(_.oy).getCurrentPage();S&&(this.scrollAtTop=S.getScrollTop()<=0);this.mastheadHidden=this.canHideMasthead()};
_.M.canHideMasthead=function(){return this.scrollAtTop&&!!this.fullscreen};
_.M.setFullscreen=function(){if(_.y("external_fullscreen")||!this.isWatchPage){var S=_.y("kevlar_fullerscreen_root_only_killswitch")?!!_.Bv():!!_.Bv()&&_.Bv()===document.documentElement;S=(this.isWatchPage||_.y("web_fullscreen_shorts")&&this.isShortsPage||this.isMiniAppPage)&&(S||this.isFullWindowSession);this.fullscreen!==S&&((this.fullscreen=S)&&_.pp(this.hostElement,"yt-close-all-popups-action"),this.isShortsPage&&(_.vJ().dispatch(_.bUX(this.fullscreen)),this.setFullscreenLoggingForShorts(this.fullscreen)),
this.updateScrollAndMasthead(this.isWatchPage&&this.fullscreen,this.isMiniAppPage&&this.fullscreen,this.isShortsPage&&this.fullscreen,this.isWatchPage&&this.isTheaterMode()),_.St(this.hostElement,"yt-fullscreen-change-action",[this.fullscreen]))}};
_.M.setFullscreenLoggingForShorts=function(S){var p,U,Y;return _.T(function(L){if(L.nextAddress==1)return _.k(L,(p=_.$L())==null?void 0:p.getPlayerPromise(),2);U=L.yieldResult;(Y=U)==null||Y.setAppFullscreen(S);_.OV(L)})};
_.M.updateMastheadCssHeight=function(){var S=this.mastheadHeight;this.fullscreen&&(S=0);_.Ms(this.hostElement,{"--ytd-masthead-height":S+"px","--ytd-masthead-height-absolute":this.mastheadHeight+"px"})};
_.M.updateNetworkStatusBannerDisplayStatus=function(){var S="unset";this.fullscreen&&(S="none");_.Ms(this.hostElement,{"--ytd-network-status-banner-display":S})};
_.M.updateNetworkStatusBannerCssHeight=function(){var S="unset";this.fullscreen&&(S="0px");_.Ms(this.hostElement,{"--ytd-network-status-banner-max-height":S})};
_.M.updateScrollAndMasthead=function(S,p,U,Y){this.iMaxTheaterMode||(Y=!1);var L=_.tW().resolve(_.oy).getCurrentPage();S||p||Y?(document.body.classList.add("no-scroll"),L.pageScrollElement=this.hostElement,this.scrolling=!0,this.hostElement.addEventListener("scroll",_.d9(this,this.onScroll)),L.setScrollTop(0),_.Ms(this.hostElement,{"--ytd-app-fullerscreen-scrollbar-width":_.FK()+"px"})):U?_.cv(this.hostElement,"yt-guide-close"):(this.isShortsPage&&_.cv(this.hostElement,"yt-guide-show"),document.body.classList.remove("no-scroll"),
L.pageScrollElement=null,this.scrolling=!1,this.hostElement.removeEventListener("scroll",_.d9(this,this.onScroll)));this.mastheadHidden=S||p||U;this.updateMastheadCssHeight();_.y("network_status_banner_display_none")?this.updateNetworkStatusBannerDisplayStatus():this.updateNetworkStatusBannerCssHeight()};
_.M.onScroll=function(){this.ytRendererBehavior.markDirty();this.scrollThrottle.fire()};
_.M.onYtNavigateAction=function(S){S=this.get("navigateAction.endpoint",S);_.cv(this.hostElement,"yt-navigate",{endpoint:S})};
_.M.onYtRegisterCreateFamilyDialog=function(){if(!this.hasCreateFamilyDialog){var S=document.createElement("yt-create-family-dialog");_.tB(this.hostElement).appendChild(S);this.hasCreateFamilyDialog=!0}};
_.M.onSetPushNotificationsEnabledCommand=function(S){var p=this,U=_.b(S,RDL);U&&typeof U.enabled==="boolean"&&(Notification.permission!=="granted"?pAE().then(function(){Notification.permission==="granted"?(Ciq(!U.enabled).then(mTT),U.successAction&&_.Yd(p.hostElement,[U.successAction])):U.failureAction&&_.Yd(p.hostElement,[U.failureAction])}):(Ciq(!U.enabled).then(mTT),U.successAction&&_.Yd(this.hostElement,[U.successAction])))};
_.M.onYtSignalActionEnableChromeNotifications=function(){UzJ(!0)};
_.M.onOpenHotkeyDialog=function(){this.topbarData.hotkeyDialog&&this.ytOpenPopupBehavior.openPopup({openPopupAction:{popupType:"DIALOG",popup:{hotkeyDialogRenderer:_.b(this.topbarData.hotkeyDialog,ZCt)}}})};
_.M.onYtSignalActionShowKeyboardShortcutDialog=function(){_.St(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"]);this.onOpenHotkeyDialog()};
_.M.onYtEndpointChangeHandler=function(S,p){var U=_.p4(_.k2);U.pendingPrefetchJob_&&(p=!(!p||p.autonav!="1"),U.pendingPrefetchJob_.resolve(S&&_.MNG(S)?_.ImG(S,p):""),U.pendingPrefetchJob_=null);_.St(this.hostElement,"yt-pause-active-page-context");_.St(this.hostElement,"ytd-log-youthere-nav");_.St(this.hostElement,"yt-prepare-page-dispose")};
_.M.handleCommandWithCommandHandler=function(S,p){_.VO.instance.resolveCommand(S,{form:{element:p}})};
_.M.onYtTimedCommand=function(S){var p=this;S=_.b(S,zDP);var U=S.command;U&&_.Jn(_.PA,function(){var Y=_.b(U,_.NlI);Y?(_.VO.instance.resolveCommand(U),p.maybeLogGetAnswerRequestTick(Y)):_.Lp(p.hostElement,[U],p.hostElement)},S.timeoutMs||0)};
_.M.maybeLogGetAnswerRequestTick=function(S){S&&S.isFirstRequest&&(_.R2("search_overview_answer"),_.Fg("so_rq",void 0,"search_overview_answer"))};
_.M.onYtSignalActionSkipNavigation=function(){var S=_.tW().resolve(_.oy).getCurrentPage();_.Nz(S)};
_.M.onYtSignalActionCopyDebugData=function(){zCt()};
_.M.handleEntityUpdateCommand=function(S){_.Oc(_.b(S,_.Ake).entityBatchUpdate,this.ytdReduxBehavior.store)};
_.M.logFlowLoggingEventCommand=function(S){if(S=_.b(S,_.iPq))if(S.eventType==="FLOW_LOGGING_EVENT_CLASSIFICATION_START_EVENT"){var p=S.flowEventNamespace,U=S.flowEventType,Y=S.flowType;Y&&p&&U&&_.tLe(_.IS(p,U,S.flowEventMetadata),Y)}else{p=_.VX();U=S.flowEventNamespace;Y=S.flowEventType;var L=S.flowType;L&&U&&Y&&_.dz(p,_.IS(U,Y,S.flowEventMetadata),L,S.flowNonce)}};
_.M.onGuideTouchStart=function(){this.guideScrolledByTouch=!0};
_.M.onGuideTouchEnd=function(){this.guideScrolledByTouch=!1};
_.M.onTouchStart=function(){var S=_.zs();_.X$()&&_.gY(S.JSC$11130_screenManager,{visualElement:S.ve})};
_.M.handleSelectLanguageCommand=function(S){if(S=_.b(S,rKi).hl){var p=_.D9();p.set("hl",S);p.save();_.tW().resolve(_.Hl).reload()}};
_.M.handleConfirmDialogEndpoint=function(S){(S=this.ytOpenPopupBehavior.getNavigationEndpointPopupAction(S))&&this.ytOpenPopupBehavior.openPopup(S)};
_.M.handleOpenPopupNavigationEndpoints=function(S,p){_.y("web_button_rework")&&(S=this.ytOpenPopupBehavior.getNavigationEndpointPopupAction(S))&&this.ytOpenPopupBehavior.openPopup(S,p)};
_.M.handleSaveCommandToSessionStorage=function(S){if(S=_.b(S,_.BbI)){var p=S.key;p&&S.command&&window.sessionStorage.setItem(p,JSON.stringify(S.command))}};
_.M.refreshAppShellResponse=function(){navigator.serviceWorker&&navigator.serviceWorker.ready.then(function(S){S&&S.active&&S.active.postMessage({type:"refresh_shell"})}).catch(function(S){S.name!=="SecurityError"&&_.ZP(S)})};
_.M.onDeviceThemeChanged=function(){var S=_.KH();_.zI(_.D9(),185,S);_.D9().save()};
_.M.handleYtRegisterPromoCommand=function(S){if(_.b(S,hDs)){var p=_.tW().resolve(_.oy).getCurrentPage()||this.hostElement;wtq().registerPromoCommand(_.b(S,hDs),p)}};
_.M.onYtNavigateHomeAction=function(){if(!_.y("kevlar_miniplayer_navigate_home_from_app_killswitch")){var S,p,U,Y,L=(Y=(S=this.topbarData)==null?void 0:(p=S.logo)==null?void 0:(U=p.topbarLogoRenderer)==null?void 0:U.endpoint)!=null?Y:_.TE;this.ytComponentBehavior.resolveCommand(L)}};
_.M.onYtLocationCollectionCommand=function(S){Eld(_.b(S,fFY))};
_.M.onYtGetLocationCommand=function(S){XvA(_.b(S,aFq),this)};
_.M.updateRenderGuideFromBinding=function(S){this.renderGuide=S.detail.value};
_.M.updateGuidePersistentAndVisibleFromBinding=function(S){this.guidePersistentAndVisible=S.detail.value};
_.M.updateMiniGuideVisibleFromBinding=function(S){this.miniGuideVisible=S.detail.value};
_.M.onThemeSelected=function(S,p){var U=_.D9(),Y=S||p?S:_.KH(),L=(Y&&this.getCurrentTheme()!=="USER_INTERFACE_THEME_DARK"||!Y&&this.getCurrentTheme()!=="USER_INTERFACE_THEME_LIGHT")&&!_.zZw(_.Tp(window.location.href));_.zI(0,165,S);_.zI(0,174,p);U.save();L&&_.St(this.hostElement,"yt-dark-mode-toggled-action",[Y]);_.St(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"])};
_.M.getCurrentTheme=function(){return _.jv()?this.isAppDarkTheme()?"USER_INTERFACE_THEME_DARK":"USER_INTERFACE_THEME_LIGHT":_.bE()};
_.M.handleSignalActionToggleDarkThemeOn=function(){this.onThemeSelected(!0,!1)};
_.M.handleSignalActionToggleDarkThemeOff=function(){this.onThemeSelected(!1,!0)};
_.M.handleSignalActionToggleDarkThemeDevice=function(){this.onThemeSelected(!1,!1)};
_.M.handleShowConsentPrimitive=function(S){var p=this,U,Y;return _.T(function(L){if(L.nextAddress==1){try{U=(Y=_.$L())==null?void 0:Y.getPlayerPromise()}catch(I){}return _.k(L,IGt(S,U),2)}_.St(p.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"]);_.OV(L)})};
_.M.handleSelectActiveIdentityEndpointInternal=function(S){_.uE();S=_.b(S,_.HLl);if(S!=null&&S.supportedTokens){S=_.d(S.supportedTokens);for(var p=S.next();!p.done;p=S.next())p=p.value,p.accountSigninToken&&_.lE(p.accountSigninToken.signinUrl,void 0,void 0,window.top)}};
_.M.handleUpdatePermissionRoleCommand=function(S){if(S=_.b(S,_.ODt)){var p;this.hasDelegation=!((p=_.b(S.renderer,_.WZe))==null||!p.status)}};
_.M.registerViewTransitionTasks=function(){var S=this,p=_.tW().resolve(_.AW(_.nO));if(p){var U,Y=(U=this.guide)==null?void 0:U.querySelector("#scrim"),L,I=(L=this.guide)==null?void 0:L.querySelector("#contentContainer");Y&&I&&(U={beforeTransition:function(){var V;(V=S.guide)!=null&&V.persistent||(Y.style.viewTransitionName="app-drawer-scrim",I.style.viewTransitionName="app-drawer-container")},
afterTransition:function(){var V;(V=S.guide)!=null&&V.persistent||(Y.style.viewTransitionName="",I.style.viewTransitionName="")}},qy(p,"slide",U),qy(p,"zoom",U))}};
_.$u.Object.defineProperties(mk.prototype,{csiServiceName:{configurable:!0,enumerable:!0,get:function(){return"youtube"}},
applyFrostedGlassToChipBar:{configurable:!0,enumerable:!0,get:function(){return _.y("web_frosted_glass")&&this.isHomePage&&this.chipBarIsSticky}}});
_.$u.Object.defineProperties(mk,{template:{configurable:!0,enumerable:!0,get:function(){if(aMX===void 0){var S=document.createElement("template");_.h(S,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-app--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-guide-manager id="guide-service" disabled="[[standalone]]" guide-persistent-and-visible="[[guidePersistentAndVisible]]" mini-guide-visible="[[miniGuideVisible]]" render-guide="[[renderGuide]]" on-guide-persistent-and-visible-changed="updateGuidePersistentAndVisibleFromBinding" on-mini-guide-visible-changed="updateMiniGuideVisibleFromBinding" on-render-guide-changed="updateRenderGuideFromBinding" class="style-scope ytd-app">\n</yt-guide-manager>\n<yt-mdx-manager class="style-scope ytd-app"></yt-mdx-manager>\n<yt-playlist-manager class="style-scope ytd-app"></yt-playlist-manager>\n<yt-hotkey-manager class="style-scope ytd-app"></yt-hotkey-manager>\n<div id="content" class="style-scope ytd-app">\n  <div id="frosted-glass" class$="[[frostedGlassMode]] style-scope ytd-app"></div>\n  <div id="masthead-container" class="style-scope ytd-app">\n    <slot name="masthead" class="style-scope ytd-app"></slot>\n  </div>\n  <tp-yt-app-drawer id="guide" align="start" role="navigation" class="style-scope ytd-app">\n    <div id="guide-wrapper" class="style-scope ytd-app">\n      <div id="guide-spacer" class="style-scope ytd-app"></div>\n      <div id="guide-content" class="style-scope ytd-app">\n        <div id="header" hidden="[[guidePersistentAndVisible]]" class="style-scope ytd-app">\n          \n          <yt-icon-button id="guide-button" aria-label$="[[menuStrings.GUIDE_ALT_LABEL]]" pressed="true" toggleable="true" on-mouseenter="onGuideToggleHover" on-tap="onGuideToggleTap" class="style-scope ytd-app">\n            <yt-icon id="guide-icon" icon="yt-icons:menu" class="style-scope ytd-app"></yt-icon>\n          </yt-icon-button>\n          <ytd-topbar-logo-renderer country-code="[[topbarData.countryCode]]" data="[[topbarData.logo.topbarLogoRenderer]]" disable-upgrade$="[[guideIsVisibleButNotPersistent]]" class="style-scope ytd-app">\n          </ytd-topbar-logo-renderer>\n        </div>\n        <div id="guide-inner-content" on-touchstart="onGuideTouchStart" on-touchend="onGuideTouchEnd" class="style-scope ytd-app">\n          <template is="dom-if" if="[[renderGuide]]" class="style-scope ytd-app">\n            <ytd-guide-renderer id="guide-renderer" class="style-scope ytd-app">\n              <slot name="guide-links-primary" slot="guide-links-primary" class="style-scope ytd-app"></slot>\n              <slot name="guide-links-secondary" slot="guide-links-secondary" class="style-scope ytd-app"></slot>\n              <slot name="vat-notice" slot="vat-notice" class="style-scope ytd-app"></slot>\n              <slot name="copyright" slot="copyright" class="style-scope ytd-app"></slot>\n            </ytd-guide-renderer>\n          </template>\n        </div>\n      </div>\n    </div>\n  </tp-yt-app-drawer>\n  <ytd-mini-guide-renderer disable-upgrade$="[[!miniGuideVisible]]" hidden="[[!miniGuideVisible]]" visible="[[miniGuideVisible]]" class="style-scope ytd-app">\n  </ytd-mini-guide-renderer>\n  <ytd-page-manager id="page-manager" class="style-scope ytd-app"></ytd-page-manager>\n</div>\n<ytd-permission-role-bottom-bar-renderer class="style-scope ytd-app"></ytd-permission-role-bottom-bar-renderer>\n<ytd-popup-container class="style-scope ytd-app"></ytd-popup-container>\n<ytd-third-party-manager class="style-scope ytd-app"></ytd-third-party-manager>\n<div id="video-preview" class="style-scope ytd-app"></div>\n<template is="dom-if" if="[[ephemeralActionsEnabled]]" class="style-scope ytd-app">\n  <yt-ephemeral-actions class="style-scope ytd-app"></yt-ephemeral-actions>\n</template>\n');
S.content.insertBefore(_.t().content.cloneNode(!0),S.content.firstChild);aMX=S}S=aMX;return S}}});
mk.prototype.onOpenHotkeyDialog=mk.prototype.onOpenHotkeyDialog;mk.prototype.setFullscreen=mk.prototype.setFullscreen;mk.prototype.onAddElementToApp=mk.prototype.onAddElementToApp;mk.prototype.onDrawerIronSelect=mk.prototype.onDrawerIronSelect;mk.prototype.onGuideOpenButtonHover=mk.prototype.onGuideOpenButtonHover;mk.prototype.onRequestPanelModeChange=mk.prototype.onRequestPanelModeChange;mk.prototype.onPageDataUpdated=mk.prototype.onPageDataUpdated;mk.prototype.onPageChanged=mk.prototype.onPageChanged;
mk.prototype.onSetTheaterModeEnabled=mk.prototype.onSetTheaterModeEnabled;mk.prototype.updateMastheadData=mk.prototype.updateMastheadData;mk.prototype.onYtPageManagerAttached=mk.prototype.onYtPageManagerAttached;mk.prototype.observeGuideVisibility=mk.prototype.observeGuideVisibility;mk.prototype.guideIsVisibleButNotPersistentSelectorChanged=mk.prototype.guideIsVisibleButNotPersistentSelectorChanged;mk.prototype.isInlinePreviewEnabledChanged=mk.prototype.isInlinePreviewEnabledChanged;
mk.prototype.isWatchPageChanged=mk.prototype.isWatchPageChanged;mk.prototype.dispatchFrostedGlassMode=mk.prototype.dispatchFrostedGlassMode;_.x([_.F(_.Xh),_.E("design:type",Object)],mk.prototype,"ytdReduxBehavior",void 0);_.x([_.F(_.kP.YtEventForwardingBehavior),_.E("design:type",Object)],mk.prototype,"ytEventForwardingBehavior",void 0);_.x([_.F(_.dW.YtOpenPopupBehavior),_.E("design:type",Object)],mk.prototype,"ytOpenPopupBehavior",void 0);
_.x([_.F(_.Aj.YtActionHandlerBehavior),_.E("design:type",Object)],mk.prototype,"ytActionHandlerBehavior",void 0);_.x([_.F({_noAccessors:!0,actionRouterIsRoot:!1,created:function(){this.actionRouter_=_.xv.getInstance();this.actionRouterNode=this.actionRouterIsRoot?document.body:this;this.onYtActionBoundListener_=this.onYtAction_.bind(this);this.actionRouterListenersRegistered_=!1;_.y("action_router_attached_only_killswitch")&&this.registerActionRouterEventListeners_()},
attached:function(){this.registerActionRouterEventListeners_()},
detached:function(){this.unregisterActionRouterEventListeners_()},
registerActionRouterEventListeners_:function(){if(!this.actionRouterListenersRegistered_){this.actionRouterListenersRegistered_=!0;var S;((S=this.actionRouterNode.hostElement)!=null?S:this.actionRouterNode).addEventListener("yt-action",this.onYtActionBoundListener_)}},
unregisterActionRouterEventListeners_:function(){this.actionRouterListenersRegistered_=!1;var S;((S=this.actionRouterNode.hostElement)!=null?S:this.actionRouterNode).removeEventListener("yt-action",this.onYtActionBoundListener_)},
onYtAction_:function(S){this.actionRouter_.handleAction(S.detail)}}),
_.E("design:type",Object)],mk.prototype,"ytActionRouterBehavior",void 0);_.x([_.F(oV5.YtdAppBehavior),_.E("design:type",Object)],mk.prototype,"ytdAppBehavior",void 0);_.x([_.F(_.WV.YtEndpointBehavior),_.E("design:type",Object)],mk.prototype,"ytEndpointBehavior",void 0);_.x([_.F(mrL.YtEndpointHandlerWithYpcBehavior),_.E("design:type",Object)],mk.prototype,"ytEndpointHandlerWithYpcBehavior",void 0);
_.x([_.F(fMs.YtLogYpcFlowCommandsBehavior),_.E("design:type",Object)],mk.prototype,"ytLogYpcFlowCommandsBehavior",void 0);_.x([_.F(_.c.YtRendererBehavior),_.E("design:type",Object)],mk.prototype,"ytRendererBehavior",void 0);_.x([_.F(_.eL.YtComponentBehavior),_.E("design:type",Object)],mk.prototype,"ytComponentBehavior",void 0);_.x([_.g({selector:_.yAs}),_.E("design:type",Object)],mk.prototype,"tabGesturesIsActive",void 0);_.x([_.g(),_.E("design:type",Boolean)],mk.prototype,"renderGuide",void 0);
_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Boolean)],mk.prototype,"guidePersistentAndVisible",void 0);_.x([_.g({selector:_.JAt}),_.E("design:type",Boolean)],mk.prototype,"guideIsVisibleButNotPersistent",void 0);_.x([_.g({value:!1,reflectToAttribute:!0}),_.E("design:type",Boolean)],mk.prototype,"standalone",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Boolean)],mk.prototype,"miniGuideVisible",void 0);
_.x([_.g({selector:_.QgG}),_.E("design:type",Number)],mk.prototype,"miniplayerPlaybackState",void 0);_.x([_.g({selector:_.F1,reflectToAttribute:!0}),_.E("design:type",Boolean)],mk.prototype,"miniplayerIsActive",void 0);_.x([_.g({computed:"computeIsInlinePreviewEnabled(miniplayerIsActive, miniplayerPlaybackState, isInlinePreviewDisabled)"}),_.E("design:type",Boolean)],mk.prototype,"isInlinePreviewEnabled",void 0);_.x([_.g(),_.E("design:type",Boolean)],mk.prototype,"isInlinePreviewDisabled",void 0);
_.x([_.g({reflectToAttribute:!0,value:function(){return _.ub("START_IN_FULL_WINDOW_MODE")}}),
_.E("design:type",Boolean)],mk.prototype,"mastheadHidden",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Boolean)],mk.prototype,"playerFullscreen",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],mk.prototype,"deprecateFullerscreenUi",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Boolean)],mk.prototype,"fullscreen",void 0);_.x([_.g({value:!1,reflectToAttribute:!0}),_.E("design:type",Boolean)],mk.prototype,"hideHeaderShadow",void 0);
_.x([_.g({value:{GUIDE_ALT_LABEL:_.Oh("GUIDE_ALT_LABEL",void 0,"Guide")}}),_.E("design:type",Object)],mk.prototype,"menuStrings",void 0);_.x([_.g({computed:"computeTopbarData(data)"}),_.E("design:type",Object)],mk.prototype,"topbarData",void 0);_.x([_.g({selector:_.PJ}),_.E("design:type",Boolean)],mk.prototype,"isWatchPage",void 0);_.x([_.g({selector:_.HQX,reflectToAttribute:!0}),_.E("design:type",Boolean)],mk.prototype,"isShortsPage",void 0);
_.x([_.g({selector:function(S){return S.ui.currentPageType==="WEB_PAGE_TYPE_MINI_APP"}}),
_.E("design:type",Boolean)],mk.prototype,"isMiniAppPage",void 0);_.x([_.g({selector:function(S){return S.ui.currentPageType==="WEB_PAGE_TYPE_BROWSE"}}),
_.E("design:type",Boolean)],mk.prototype,"isBrowsePage",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Boolean)],mk.prototype,"scrolling",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],mk.prototype,"hasDelegation",void 0);_.x([_.g({reflectToAttribute:!0,value:!1}),_.E("design:type",Boolean)],mk.prototype,"guideScrolledByTouch",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],mk.prototype,"darkerDarkTheme",void 0);
_.x([_.g(),_.E("design:type",Object)],mk.prototype,"isFrostedGlassInitialized",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],mk.prototype,"frostedGlassExp",void 0);_.x([_.g({selector:function(S){return S.ui.chipBarIsSticky}}),
_.E("design:type",Boolean)],mk.prototype,"chipBarIsSticky",void 0);_.x([_.g({computed:"computeIsHomePage(isBrowsePage, data)"}),_.E("design:type",Boolean)],mk.prototype,"isHomePage",void 0);_.x([_.g({reflectToAttribute:!0}),_.E("design:type",Object)],mk.prototype,"mastheadHiddenFocusWithinKillswitch",void 0);_.x([_.g(),_.E("design:type",Object)],mk.prototype,"ephemeralActionsEnabled",void 0);_.x([_.BN("guide"),_.E("design:type",Object)],mk.prototype,"guide",void 0);
_.x([_.BN("guide-service"),_.E("design:type",Z$d)],mk.prototype,"guideService",void 0);_.x([_.BN("guide-inner-content"),_.E("design:type",HTMLDivElement)],mk.prototype,"guideInnerContent",void 0);_.x([_.g({selector:_.J1k}),_.E("design:type",String)],mk.prototype,"frostedGlassMode",void 0);
_.x([_.T4("isFrostedGlassDisabled","isFrostedGlassInitialized","applyFrostedGlassToChipBar"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],mk.prototype,"dispatchFrostedGlassMode",null);_.x([_.g({computed:"computeIsFrostedGlassDisabled(isShortsPage, isMiniAppPage, isChannelOrPlaylistPage, isWatchPage)"}),_.E("design:type",Object)],mk.prototype,"isFrostedGlassDisabled",void 0);
_.x([_.T4("isWatchPage"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],mk.prototype,"isWatchPageChanged",null);_.x([_.e("isHomePage","chipBarIsSticky"),_.E("design:type",Boolean),_.E("design:paramtypes",[])],mk.prototype,"applyFrostedGlassToChipBar",null);_.x([_.g(),_.E("design:type",Object)],mk.prototype,"isChannelOrPlaylistPage",void 0);
_.x([_.z4("isInlinePreviewEnabled"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],mk.prototype,"isInlinePreviewEnabledChanged",null);_.x([_.T4("guideIsVisibleButNotPersistent"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],mk.prototype,"guideIsVisibleButNotPersistentSelectorChanged",null);
_.x([_.T4("guidePersistentAndVisible","miniGuideVisible"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],mk.prototype,"observeGuideVisibility",null);_.x([_.Vd("attached"),_.E("design:type",Function),_.E("design:paramtypes",[Event]),_.E("design:returntype")],mk.prototype,"onYtPageManagerAttached",null);_.x([_.T4("data"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype",Promise)],mk.prototype,"updateMastheadData",null);
_.x([_.Vd("yt-set-theater-mode-enabled"),_.E("design:type",Function),_.E("design:paramtypes",[CustomEvent,Object]),_.E("design:returntype")],mk.prototype,"onSetTheaterModeEnabled",null);_.x([_.Vd("yt-page-type-changed"),_.E("design:type",Function),_.E("design:paramtypes",[CustomEvent]),_.E("design:returntype")],mk.prototype,"onPageChanged",null);_.x([_.Vd("yt-page-data-updated"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],mk.prototype,"onPageDataUpdated",null);
_.x([_.Vd("yt-request-panel-mode-change"),_.E("design:type",Function),_.E("design:paramtypes",[Event,Object]),_.E("design:returntype")],mk.prototype,"onRequestPanelModeChange",null);_.x([_.Vd("yt-guide-hover"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],mk.prototype,"onGuideOpenButtonHover",null);_.x([_.Vd("app-drawer-transitioned"),_.E("design:type",Function),_.E("design:paramtypes",[Event]),_.E("design:returntype")],mk.prototype,"onDrawerIronSelect",null);
_.x([_.Vd("yt-add-element-to-app"),_.E("design:type",Function),_.E("design:paramtypes",[CustomEvent]),_.E("design:returntype")],mk.prototype,"onAddElementToApp",null);_.x([_.Vd("yt-set-fullerscreen-styles"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],mk.prototype,"setFullscreen",null);_.x([_.Vd("yt-open-hotkey-dialog"),_.E("design:type",Function),_.E("design:paramtypes",[]),_.E("design:returntype")],mk.prototype,"onOpenHotkeyDialog",null);
mk=_.x([_.f({is:"ytd-app"})],mk);_.Pt().processSignal("eor");
_.g5();
}catch(e){_._DumpException(e)}
}).call(this,this.default_kevlar_base);
// Google Inc.
